@elizaos/cli 1.0.0-alpha.36 → 1.0.0-alpha.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-Ka2FGGBH.js +271 -0
- package/dist/assets/index-Ka2FGGBH.js.br +0 -0
- package/dist/{chunk-D3FOKNN4.js → chunk-2YBOBFL3.js} +3 -3
- package/dist/{chunk-4HW55F7F.js → chunk-4MSGGDIJ.js} +2 -2
- package/dist/{chunk-WSCG6IEI.js → chunk-62NGXD2H.js} +1 -1
- package/dist/chunk-7OHGIA7W.js +47 -0
- package/dist/{chunk-HIAXMGB7.js → chunk-7XQFUIVA.js} +1 -1
- package/dist/{chunk-CO2MJCNG.js → chunk-GFW27SHE.js} +3 -3
- package/dist/{chunk-LG2ODFCF.js → chunk-GVFCAFEM.js} +98 -4
- package/dist/{chunk-WR73EMWK.js → chunk-IH2B43ZL.js} +3 -3
- package/dist/{chunk-B33MPKDF.js → chunk-LO4GBOAQ.js} +2 -2
- package/dist/{chunk-XAEWVCZ6.js → chunk-LRZCZHYZ.js} +3 -3
- package/dist/{chunk-BOQFOJXS.js → chunk-MMHSIUCK.js} +2 -2
- package/dist/{chunk-XKZV4EU7.js → chunk-NLDKKSQE.js} +6 -34
- package/dist/{chunk-O627NZN5.js → chunk-TICHKOSY.js} +10 -5
- package/dist/{chunk-ZPHK3XTU.js → chunk-WAMMJSX7.js} +3 -3
- package/dist/{chunk-4WR4LFP6.js → chunk-XQEC6UZP.js} +3 -3
- package/dist/commands/agent.js +3 -3
- package/dist/commands/create.js +4 -4
- package/dist/commands/dev.js +4 -4
- package/dist/commands/env.js +3 -3
- package/dist/commands/plugin.js +4 -4
- package/dist/commands/project.js +5 -4
- package/dist/commands/start.js +8 -5
- package/dist/commands/tee.js +2 -2
- package/dist/commands/test.js +4 -4
- package/dist/commands/update.js +4 -4
- package/dist/index.html +1 -1
- package/dist/index.js +17 -16
- package/dist/{registry-KEFNLDGG.js → registry-BOPEDJPK.js} +2 -2
- package/package.json +6 -6
- package/templates/plugin-starter/package.json +4 -4
- package/templates/project-starter/package.json +7 -7
- package/dist/assets/index-BKdSVdhZ.js +0 -271
- package/dist/assets/index-BKdSVdhZ.js.br +0 -0
- package/dist/{chunk-KI77FV37.js → chunk-VJU4PD7H.js} +3 -3
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
var yA=Object.defineProperty;var Nb=t=>{throw TypeError(t)};var bA=(t,r,a)=>r in t?yA(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a;var Nl=(t,r,a)=>bA(t,typeof r!="symbol"?r+"":r,a),Yd=(t,r,a)=>r.has(t)||Nb("Cannot "+a);var P=(t,r,a)=>(Yd(t,r,"read from private field"),a?a.call(t):r.get(t)),be=(t,r,a)=>r.has(t)?Nb("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,a),ue=(t,r,a,i)=>(Yd(t,r,"write to private field"),i?i.call(t,a):r.set(t,a),a),Ne=(t,r,a)=>(Yd(t,r,"access private method"),a);var wc=(t,r,a,i)=>({set _(o){ue(t,r,o,a)},get _(){return P(t,r,i)}});function xA(t,r){for(var a=0;a<r.length;a++){const i=r[a];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=a(o);fetch(o.href,c)}})();function cs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gd={exports:{}},Ol={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ob;function wA(){if(Ob)return Ol;Ob=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(i,o,c){var f=null;if(c!==void 0&&(f=""+c),o.key!==void 0&&(f=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:t,type:i,key:f,ref:o!==void 0?o:null,props:c}}return Ol.Fragment=r,Ol.jsx=a,Ol.jsxs=a,Ol}var jb;function SA(){return jb||(jb=1,Gd.exports=wA()),Gd.exports}var v=SA(),Fd={exports:{}},Te={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Mb;function EA(){if(Mb)return Te;Mb=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=b&&j[b]||j["@@iterator"],typeof j=="function"?j:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,S={};function w(j,G,te){this.props=j,this.context=G,this.refs=S,this.updater=te||E}w.prototype.isReactComponent={},w.prototype.setState=function(j,G){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,G,"setState")},w.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function C(){}C.prototype=w.prototype;function A(j,G,te){this.props=j,this.context=G,this.refs=S,this.updater=te||E}var N=A.prototype=new C;N.constructor=A,R(N,w.prototype),N.isPureReactComponent=!0;var L=Array.isArray,_={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function I(j,G,te,se,ae,oe){return te=oe.ref,{$$typeof:t,type:j,key:G,ref:te!==void 0?te:null,props:oe}}function Y(j,G){return I(j.type,G,void 0,void 0,void 0,j.props)}function H(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function K(j){var G={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(te){return G[te]})}var Z=/\/+/g;function ne(j,G){return typeof j=="object"&&j!==null&&j.key!=null?K(""+j.key):G.toString(36)}function ce(){}function $(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(ce,ce):(j.status="pending",j.then(function(G){j.status==="pending"&&(j.status="fulfilled",j.value=G)},function(G){j.status==="pending"&&(j.status="rejected",j.reason=G)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function U(j,G,te,se,ae){var oe=typeof j;(oe==="undefined"||oe==="boolean")&&(j=null);var pe=!1;if(j===null)pe=!0;else switch(oe){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(j.$$typeof){case t:case r:pe=!0;break;case g:return pe=j._init,U(pe(j._payload),G,te,se,ae)}}if(pe)return ae=ae(j),pe=se===""?"."+ne(j,0):se,L(ae)?(te="",pe!=null&&(te=pe.replace(Z,"$&/")+"/"),U(ae,G,te,"",function(Ee){return Ee})):ae!=null&&(H(ae)&&(ae=Y(ae,te+(ae.key==null||j&&j.key===ae.key?"":(""+ae.key).replace(Z,"$&/")+"/")+pe)),G.push(ae)),1;pe=0;var fe=se===""?".":se+":";if(L(j))for(var me=0;me<j.length;me++)se=j[me],oe=fe+ne(se,me),pe+=U(se,G,te,oe,ae);else if(me=x(j),typeof me=="function")for(j=me.call(j),me=0;!(se=j.next()).done;)se=se.value,oe=fe+ne(se,me++),pe+=U(se,G,te,oe,ae);else if(oe==="object"){if(typeof j.then=="function")return U($(j),G,te,se,ae);throw G=String(j),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return pe}function M(j,G,te){if(j==null)return j;var se=[],ae=0;return U(j,se,"","",function(oe){return G.call(te,oe,ae++)}),se}function q(j){if(j._status===-1){var G=j._result;G=G(),G.then(function(te){(j._status===0||j._status===-1)&&(j._status=1,j._result=te)},function(te){(j._status===0||j._status===-1)&&(j._status=2,j._result=te)}),j._status===-1&&(j._status=0,j._result=G)}if(j._status===1)return j._result.default;throw j._result}var z=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)};function Q(){}return Te.Children={map:M,forEach:function(j,G,te){M(j,function(){G.apply(this,arguments)},te)},count:function(j){var G=0;return M(j,function(){G++}),G},toArray:function(j){return M(j,function(G){return G})||[]},only:function(j){if(!H(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Te.Component=w,Te.Fragment=a,Te.Profiler=o,Te.PureComponent=A,Te.StrictMode=i,Te.Suspense=h,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,Te.act=function(){throw Error("act(...) is not supported in production builds of React.")},Te.cache=function(j){return function(){return j.apply(null,arguments)}},Te.cloneElement=function(j,G,te){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var se=R({},j.props),ae=j.key,oe=void 0;if(G!=null)for(pe in G.ref!==void 0&&(oe=void 0),G.key!==void 0&&(ae=""+G.key),G)!k.call(G,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&G.ref===void 0||(se[pe]=G[pe]);var pe=arguments.length-2;if(pe===1)se.children=te;else if(1<pe){for(var fe=Array(pe),me=0;me<pe;me++)fe[me]=arguments[me+2];se.children=fe}return I(j.type,ae,void 0,void 0,oe,se)},Te.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:c,_context:j},j},Te.createElement=function(j,G,te){var se,ae={},oe=null;if(G!=null)for(se in G.key!==void 0&&(oe=""+G.key),G)k.call(G,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ae[se]=G[se]);var pe=arguments.length-2;if(pe===1)ae.children=te;else if(1<pe){for(var fe=Array(pe),me=0;me<pe;me++)fe[me]=arguments[me+2];ae.children=fe}if(j&&j.defaultProps)for(se in pe=j.defaultProps,pe)ae[se]===void 0&&(ae[se]=pe[se]);return I(j,oe,void 0,void 0,null,ae)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(j){return{$$typeof:d,render:j}},Te.isValidElement=H,Te.lazy=function(j){return{$$typeof:g,_payload:{_status:-1,_result:j},_init:q}},Te.memo=function(j,G){return{$$typeof:p,type:j,compare:G===void 0?null:G}},Te.startTransition=function(j){var G=_.T,te={};_.T=te;try{var se=j(),ae=_.S;ae!==null&&ae(te,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(Q,z)}catch(oe){z(oe)}finally{_.T=G}},Te.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},Te.use=function(j){return _.H.use(j)},Te.useActionState=function(j,G,te){return _.H.useActionState(j,G,te)},Te.useCallback=function(j,G){return _.H.useCallback(j,G)},Te.useContext=function(j){return _.H.useContext(j)},Te.useDebugValue=function(){},Te.useDeferredValue=function(j,G){return _.H.useDeferredValue(j,G)},Te.useEffect=function(j,G){return _.H.useEffect(j,G)},Te.useId=function(){return _.H.useId()},Te.useImperativeHandle=function(j,G,te){return _.H.useImperativeHandle(j,G,te)},Te.useInsertionEffect=function(j,G){return _.H.useInsertionEffect(j,G)},Te.useLayoutEffect=function(j,G){return _.H.useLayoutEffect(j,G)},Te.useMemo=function(j,G){return _.H.useMemo(j,G)},Te.useOptimistic=function(j,G){return _.H.useOptimistic(j,G)},Te.useReducer=function(j,G,te){return _.H.useReducer(j,G,te)},Te.useRef=function(j){return _.H.useRef(j)},Te.useState=function(j){return _.H.useState(j)},Te.useSyncExternalStore=function(j,G,te){return _.H.useSyncExternalStore(j,G,te)},Te.useTransition=function(){return _.H.useTransition()},Te.version="19.0.0",Te}var Db;function Kl(){return Db||(Db=1,Fd.exports=EA()),Fd.exports}var y=Kl();const hr=cs(y),RA=xA({__proto__:null,default:hr},[y]);var Qd={exports:{}},jl={},Xd={exports:{}},Wd={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var _b;function TA(){return _b||(_b=1,function(t){function r(M,q){var z=M.length;M.push(q);e:for(;0<z;){var Q=z-1>>>1,j=M[Q];if(0<o(j,q))M[Q]=q,M[z]=j,z=Q;else break e}}function a(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var q=M[0],z=M.pop();if(z!==q){M[0]=z;e:for(var Q=0,j=M.length,G=j>>>1;Q<G;){var te=2*(Q+1)-1,se=M[te],ae=te+1,oe=M[ae];if(0>o(se,z))ae<j&&0>o(oe,se)?(M[Q]=oe,M[ae]=z,Q=ae):(M[Q]=se,M[te]=z,Q=te);else if(ae<j&&0>o(oe,z))M[Q]=oe,M[ae]=z,Q=ae;else break e}}return q}function o(M,q){var z=M.sortIndex-q.sortIndex;return z!==0?z:M.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();t.unstable_now=function(){return f.now()-d}}var h=[],p=[],g=1,b=null,x=3,E=!1,R=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function N(M){for(var q=a(p);q!==null;){if(q.callback===null)i(p);else if(q.startTime<=M)i(p),q.sortIndex=q.expirationTime,r(h,q);else break;q=a(p)}}function L(M){if(S=!1,N(M),!R)if(a(h)!==null)R=!0,$();else{var q=a(p);q!==null&&U(L,q.startTime-M)}}var _=!1,k=-1,I=5,Y=-1;function H(){return!(t.unstable_now()-Y<I)}function K(){if(_){var M=t.unstable_now();Y=M;var q=!0;try{e:{R=!1,S&&(S=!1,C(k),k=-1),E=!0;var z=x;try{t:{for(N(M),b=a(h);b!==null&&!(b.expirationTime>M&&H());){var Q=b.callback;if(typeof Q=="function"){b.callback=null,x=b.priorityLevel;var j=Q(b.expirationTime<=M);if(M=t.unstable_now(),typeof j=="function"){b.callback=j,N(M),q=!0;break t}b===a(h)&&i(h),N(M)}else i(h);b=a(h)}if(b!==null)q=!0;else{var G=a(p);G!==null&&U(L,G.startTime-M),q=!1}}break e}finally{b=null,x=z,E=!1}q=void 0}}finally{q?Z():_=!1}}}var Z;if(typeof A=="function")Z=function(){A(K)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ce=ne.port2;ne.port1.onmessage=K,Z=function(){ce.postMessage(null)}}else Z=function(){w(K,0)};function $(){_||(_=!0,Z())}function U(M,q){k=w(function(){M(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(M){M.callback=null},t.unstable_continueExecution=function(){R||E||(R=!0,$())},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return a(h)},t.unstable_next=function(M){switch(x){case 1:case 2:case 3:var q=3;break;default:q=x}var z=x;x=q;try{return M()}finally{x=z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(M,q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var z=x;x=M;try{return q()}finally{x=z}},t.unstable_scheduleCallback=function(M,q,z){var Q=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Q+z:Q):z=Q,M){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=z+j,M={id:g++,callback:q,priorityLevel:M,startTime:z,expirationTime:j,sortIndex:-1},z>Q?(M.sortIndex=z,r(p,M),a(h)===null&&M===a(p)&&(S?(C(k),k=-1):S=!0,U(L,z-Q))):(M.sortIndex=j,r(h,M),R||E||(R=!0,$())),M},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(M){var q=x;return function(){var z=x;x=q;try{return M.apply(this,arguments)}finally{x=z}}}}(Wd)),Wd}var Lb;function CA(){return Lb||(Lb=1,Xd.exports=TA()),Xd.exports}var Kd={exports:{}},wt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var zb;function AA(){if(zb)return wt;zb=1;var t=Kl();function r(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,p,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:h,containerInfo:p,implementation:g}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,wt.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return c(h,p,null,g)},wt.flushSync=function(h){var p=f.T,g=i.p;try{if(f.T=null,i.p=2,h)return h()}finally{f.T=p,i.p=g,i.d.f()}},wt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},wt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},wt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,b=d(g,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:E}):g==="script"&&i.d.X(h,{crossOrigin:b,integrity:x,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},wt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},wt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,b=d(g,p.crossOrigin);i.d.L(h,g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},wt.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=d(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},wt.requestFormReset=function(h){i.d.r(h)},wt.unstable_batchedUpdates=function(h,p){return h(p)},wt.useFormState=function(h,p,g){return f.H.useFormState(h,p,g)},wt.useFormStatus=function(){return f.H.useHostTransitionStatus()},wt.version="19.0.0",wt}var Pb;function Xx(){if(Pb)return Kd.exports;Pb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Kd.exports=AA(),Kd.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var kb;function NA(){if(kb)return jl;kb=1;var t=CA(),r=Kl(),a=Xx();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)n+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var c=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),L=Symbol.for("react.memo_cache_sentinel"),_=Symbol.iterator;function k(e){return e===null||typeof e!="object"?null:(e=_&&e[_]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function Y(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h:return"Fragment";case d:return"Portal";case g:return"Profiler";case p:return"StrictMode";case S:return"Suspense";case w:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case R:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case C:return n=e.displayName||null,n!==null?n:Y(e.type)||"Memo";case A:n=e._payload,e=e._init;try{return Y(e(n))}catch{}}return null}var H=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.assign,Z,ne;function ce(e){if(Z===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);Z=n&&n[1]||"",ne=-1<s.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Z+e+ne}var $=!1;function U(e,n){if(!e||$)return"";$=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(J){var W=J}Reflect.construct(e,[],ie)}else{try{ie.call()}catch(J){W=J}e.call(ie.prototype)}}else{try{throw Error()}catch(J){W=J}(ie=e())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(J){if(J&&W&&typeof J.stack=="string")return[J.stack,W.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),T=m[0],O=m[1];if(T&&O){var D=T.split(`
|
|
44
|
+
`),V=O.split(`
|
|
45
|
+
`);for(u=l=0;l<D.length&&!D[l].includes("DetermineComponentFrameRoot");)l++;for(;u<V.length&&!V[u].includes("DetermineComponentFrameRoot");)u++;if(l===D.length||u===V.length)for(l=D.length-1,u=V.length-1;1<=l&&0<=u&&D[l]!==V[u];)u--;for(;1<=l&&0<=u;l--,u--)if(D[l]!==V[u]){if(l!==1||u!==1)do if(l--,u--,0>u||D[l]!==V[u]){var ee=`
|
|
46
|
+
`+D[l].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),ee}while(1<=l&&0<=u);break}}}finally{$=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?ce(s):""}function M(e){switch(e.tag){case 26:case 27:case 5:return ce(e.type);case 16:return ce("Lazy");case 13:return ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return e=U(e.type,!1),e;case 11:return e=U(e.type.render,!1),e;case 1:return e=U(e.type,!0),e;default:return""}}function q(e){try{var n="";do n+=M(e),e=e.return;while(e);return n}catch(s){return`
|
|
47
|
+
Error generating stack: `+s.message+`
|
|
48
|
+
`+s.stack}}function z(e){var n=e,s=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(s=n.return),e=n.return;while(e)}return n.tag===3?s:null}function Q(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function j(e){if(z(e)!==e)throw Error(i(188))}function G(e){var n=e.alternate;if(!n){if(n=z(e),n===null)throw Error(i(188));return n!==e?null:e}for(var s=e,l=n;;){var u=s.return;if(u===null)break;var m=u.alternate;if(m===null){if(l=u.return,l!==null){s=l;continue}break}if(u.child===m.child){for(m=u.child;m;){if(m===s)return j(u),e;if(m===l)return j(u),n;m=m.sibling}throw Error(i(188))}if(s.return!==l.return)s=u,l=m;else{for(var T=!1,O=u.child;O;){if(O===s){T=!0,s=u,l=m;break}if(O===l){T=!0,l=u,s=m;break}O=O.sibling}if(!T){for(O=m.child;O;){if(O===s){T=!0,s=m,l=u;break}if(O===l){T=!0,l=m,s=u;break}O=O.sibling}if(!T)throw Error(i(189))}}if(s.alternate!==l)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?e:n}function te(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=te(e),n!==null)return n;e=e.sibling}return null}var se=Array.isArray,ae=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},pe=[],fe=-1;function me(e){return{current:e}}function Ee(e){0>fe||(e.current=pe[fe],pe[fe]=null,fe--)}function de(e,n){fe++,pe[fe]=e.current,e.current=n}var we=me(null),Ae=me(null),Ve=me(null),Rt=me(null);function Rn(e,n){switch(de(Ve,n),de(Ae,e),de(we,null),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?rb(n):0;break;default:if(e=e===8?n.parentNode:n,n=e.tagName,e=e.namespaceURI)e=rb(e),n=ab(e,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Ee(we),de(we,n)}function Vt(){Ee(we),Ee(Ae),Ee(Ve)}function Fn(e){e.memoizedState!==null&&de(Rt,e);var n=we.current,s=ab(n,e.type);n!==s&&(de(Ae,e),de(we,s))}function ds(e){Ae.current===e&&(Ee(we),Ee(Ae)),Rt.current===e&&(Ee(Rt),El._currentValue=oe)}var Cr=Object.prototype.hasOwnProperty,ku=t.unstable_scheduleCallback,Uu=t.unstable_cancelCallback,WR=t.unstable_shouldYield,KR=t.unstable_requestPaint,Tn=t.unstable_now,ZR=t.unstable_getCurrentPriorityLevel,Gp=t.unstable_ImmediatePriority,Fp=t.unstable_UserBlockingPriority,co=t.unstable_NormalPriority,JR=t.unstable_LowPriority,Qp=t.unstable_IdlePriority,eT=t.log,tT=t.unstable_setDisableYieldValue,Di=null,zt=null;function nT(e){if(zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Di,e,void 0,(e.current.flags&128)===128)}catch{}}function Ar(e){if(typeof eT=="function"&&tT(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(Di,e)}catch{}}var Pt=Math.clz32?Math.clz32:sT,rT=Math.log,aT=Math.LN2;function sT(e){return e>>>=0,e===0?32:31-(rT(e)/aT|0)|0}var uo=128,fo=4194304;function ba(e){var n=e&42;if(n!==0)return n;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: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&4194176;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 ho(e,n){var s=e.pendingLanes;if(s===0)return 0;var l=0,u=e.suspendedLanes,m=e.pingedLanes,T=e.warmLanes;e=e.finishedLanes!==0;var O=s&134217727;return O!==0?(s=O&~u,s!==0?l=ba(s):(m&=O,m!==0?l=ba(m):e||(T=O&~T,T!==0&&(l=ba(T))))):(O=s&~u,O!==0?l=ba(O):m!==0?l=ba(m):e||(T=s&~T,T!==0&&(l=ba(T)))),l===0?0:n!==0&&n!==l&&(n&u)===0&&(u=l&-l,T=n&-n,u>=T||u===32&&(T&4194176)!==0)?n:l}function _i(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function iT(e,n){switch(e){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+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 Xp(){var e=uo;return uo<<=1,(uo&4194176)===0&&(uo=128),e}function Wp(){var e=fo;return fo<<=1,(fo&62914560)===0&&(fo=4194304),e}function $u(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function Li(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lT(e,n,s,l,u,m){var T=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var O=e.entanglements,D=e.expirationTimes,V=e.hiddenUpdates;for(s=T&~s;0<s;){var ee=31-Pt(s),ie=1<<ee;O[ee]=0,D[ee]=-1;var W=V[ee];if(W!==null)for(V[ee]=null,ee=0;ee<W.length;ee++){var J=W[ee];J!==null&&(J.lane&=-536870913)}s&=~ie}l!==0&&Kp(e,l,0),m!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=m&~(T&~n))}function Kp(e,n,s){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Pt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|s&4194218}function Zp(e,n){var s=e.entangledLanes|=n;for(e=e.entanglements;s;){var l=31-Pt(s),u=1<<l;u&n|e[l]&n&&(e[l]|=n),s&=~u}}function Jp(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ev(){var e=ae.p;return e!==0?e:(e=window.event,e===void 0?32:Sb(e.type))}function oT(e,n){var s=ae.p;try{return ae.p=e,n()}finally{ae.p=s}}var Nr=Math.random().toString(36).slice(2),bt="__reactFiber$"+Nr,jt="__reactProps$"+Nr,hs="__reactContainer$"+Nr,Hu="__reactEvents$"+Nr,cT="__reactListeners$"+Nr,uT="__reactHandles$"+Nr,tv="__reactResources$"+Nr,zi="__reactMarker$"+Nr;function qu(e){delete e[bt],delete e[jt],delete e[Hu],delete e[cT],delete e[uT]}function xa(e){var n=e[bt];if(n)return n;for(var s=e.parentNode;s;){if(n=s[hs]||s[bt]){if(s=n.alternate,n.child!==null||s!==null&&s.child!==null)for(e=lb(e);e!==null;){if(s=e[bt])return s;e=lb(e)}return n}e=s,s=e.parentNode}return null}function ms(e){if(e=e[bt]||e[hs]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Pi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function ps(e){var n=e[tv];return n||(n=e[tv]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function dt(e){e[zi]=!0}var nv=new Set,rv={};function wa(e,n){vs(e,n),vs(e+"Capture",n)}function vs(e,n){for(rv[e]=n,e=0;e<n.length;e++)nv.add(n[e])}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fT=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]*$"),av={},sv={};function dT(e){return Cr.call(sv,e)?!0:Cr.call(av,e)?!1:fT.test(e)?sv[e]=!0:(av[e]=!0,!1)}function mo(e,n,s){if(dT(n))if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+s)}}function po(e,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+s)}}function Xn(e,n,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(n,s,""+l)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function iv(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function hT(e){var n=iv(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,m=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(T){l=""+T,m.call(this,T)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(T){l=""+T},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function vo(e){e._valueTracker||(e._valueTracker=hT(e))}function lv(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),l="";return e&&(l=iv(e)?e.checked?"true":"false":e.value),e=l,e!==s?(n.setValue(e),!0):!1}function go(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 mT=/[\n"\\]/g;function Gt(e){return e.replace(mT,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Bu(e,n,s,l,u,m,T,O){e.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.type=T:e.removeAttribute("type"),n!=null?T==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Yt(n)):e.value!==""+Yt(n)&&(e.value=""+Yt(n)):T!=="submit"&&T!=="reset"||e.removeAttribute("value"),n!=null?Iu(e,T,Yt(n)):s!=null?Iu(e,T,Yt(s)):l!=null&&e.removeAttribute("value"),u==null&&m!=null&&(e.defaultChecked=!!m),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?e.name=""+Yt(O):e.removeAttribute("name")}function ov(e,n,s,l,u,m,T,O){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||s!=null){if(!(m!=="submit"&&m!=="reset"||n!=null))return;s=s!=null?""+Yt(s):"",n=n!=null?""+Yt(n):s,O||n===e.value||(e.value=n),e.defaultValue=n}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=O?e.checked:!!l,e.defaultChecked=!!l,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(e.name=T)}function Iu(e,n,s){n==="number"&&go(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function gs(e,n,s,l){if(e=e.options,n){n={};for(var u=0;u<s.length;u++)n["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=n.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&l&&(e[s].defaultSelected=!0)}else{for(s=""+Yt(s),n=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function cv(e,n,s){if(n!=null&&(n=""+Yt(n),n!==e.value&&(e.value=n),s==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=s!=null?""+Yt(s):""}function uv(e,n,s,l){if(n==null){if(l!=null){if(s!=null)throw Error(i(92));if(se(l)){if(1<l.length)throw Error(i(93));l=l[0]}s=l}s==null&&(s=""),n=s}s=Yt(n),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l)}function ys(e,n){if(n){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=n;return}}e.textContent=n}var pT=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 fv(e,n,s){var l=n.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,s):typeof s!="number"||s===0||pT.has(n)?n==="float"?e.cssFloat=s:e[n]=(""+s).trim():e[n]=s+"px"}function dv(e,n,s){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in n)l=n[u],n.hasOwnProperty(u)&&s[u]!==l&&fv(e,u,l)}else for(var m in n)n.hasOwnProperty(m)&&fv(e,m,n[m])}function Vu(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 vT=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"]]),gT=/^[\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 yo(e){return gT.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Yu=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bs=null,xs=null;function hv(e){var n=ms(e);if(n&&(e=n.stateNode)){var s=e[jt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Bu(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),n=s.name,s.type==="radio"&&n!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Gt(""+n)+'"][type="radio"]'),n=0;n<s.length;n++){var l=s[n];if(l!==e&&l.form===e.form){var u=l[jt]||null;if(!u)throw Error(i(90));Bu(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<s.length;n++)l=s[n],l.form===e.form&&lv(l)}break e;case"textarea":cv(e,s.value,s.defaultValue);break e;case"select":n=s.value,n!=null&&gs(e,!!s.multiple,n,!1)}}}var Fu=!1;function mv(e,n,s){if(Fu)return e(n,s);Fu=!0;try{var l=e(n);return l}finally{if(Fu=!1,(bs!==null||xs!==null)&&(tc(),bs&&(n=bs,e=xs,xs=bs=null,hv(n),e)))for(n=0;n<e.length;n++)hv(e[n])}}function ki(e,n){var s=e.stateNode;if(s===null)return null;var l=s[jt]||null;if(l===null)return null;s=l[n];e:switch(n){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(s&&typeof s!="function")throw Error(i(231,n,typeof s));return s}var Qu=!1;if(Qn)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){Qu=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{Qu=!1}var Or=null,Xu=null,bo=null;function pv(){if(bo)return bo;var e,n=Xu,s=n.length,l,u="value"in Or?Or.value:Or.textContent,m=u.length;for(e=0;e<s&&n[e]===u[e];e++);var T=s-e;for(l=1;l<=T&&n[s-l]===u[m-l];l++);return bo=u.slice(e,1<l?1-l:void 0)}function xo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function wo(){return!0}function vv(){return!1}function Mt(e){function n(s,l,u,m,T){this._reactName=s,this._targetInst=u,this.type=l,this.nativeEvent=m,this.target=T,this.currentTarget=null;for(var O in e)e.hasOwnProperty(O)&&(s=e[O],this[O]=s?s(m):m[O]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?wo:vv,this.isPropagationStopped=vv,this}return K(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=wo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=wo)},persist:function(){},isPersistent:wo}),n}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},So=Mt(Sa),$i=K({},Sa,{view:0,detail:0}),yT=Mt($i),Wu,Ku,Hi,Eo=K({},$i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ju,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!==Hi&&(Hi&&e.type==="mousemove"?(Wu=e.screenX-Hi.screenX,Ku=e.screenY-Hi.screenY):Ku=Wu=0,Hi=e),Wu)},movementY:function(e){return"movementY"in e?e.movementY:Ku}}),gv=Mt(Eo),bT=K({},Eo,{dataTransfer:0}),xT=Mt(bT),wT=K({},$i,{relatedTarget:0}),Zu=Mt(wT),ST=K({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),ET=Mt(ST),RT=K({},Sa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TT=Mt(RT),CT=K({},Sa,{data:0}),yv=Mt(CT),AT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NT={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"},OT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jT(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=OT[e])?!!n[e]:!1}function Ju(){return jT}var MT=K({},$i,{key:function(e){if(e.key){var n=AT[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=xo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?NT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ju,charCode:function(e){return e.type==="keypress"?xo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),DT=Mt(MT),_T=K({},Eo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bv=Mt(_T),LT=K({},$i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ju}),zT=Mt(LT),PT=K({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),kT=Mt(PT),UT=K({},Eo,{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}),$T=Mt(UT),HT=K({},Sa,{newState:0,oldState:0}),qT=Mt(HT),BT=[9,13,27,32],ef=Qn&&"CompositionEvent"in window,qi=null;Qn&&"documentMode"in document&&(qi=document.documentMode);var IT=Qn&&"TextEvent"in window&&!qi,xv=Qn&&(!ef||qi&&8<qi&&11>=qi),wv=" ",Sv=!1;function Ev(e,n){switch(e){case"keyup":return BT.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ws=!1;function VT(e,n){switch(e){case"compositionend":return Rv(n);case"keypress":return n.which!==32?null:(Sv=!0,wv);case"textInput":return e=n.data,e===wv&&Sv?null:e;default:return null}}function YT(e,n){if(ws)return e==="compositionend"||!ef&&Ev(e,n)?(e=pv(),bo=Xu=Or=null,ws=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return xv&&n.locale!=="ko"?null:n.data;default:return null}}var GT={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 Tv(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!GT[e.type]:n==="textarea"}function Cv(e,n,s,l){bs?xs?xs.push(l):xs=[l]:bs=l,n=ic(n,"onChange"),0<n.length&&(s=new So("onChange","change",null,s,l),e.push({event:s,listeners:n}))}var Bi=null,Ii=null;function FT(e){Zy(e,0)}function Ro(e){var n=Pi(e);if(lv(n))return e}function Av(e,n){if(e==="change")return n}var Nv=!1;if(Qn){var tf;if(Qn){var nf="oninput"in document;if(!nf){var Ov=document.createElement("div");Ov.setAttribute("oninput","return;"),nf=typeof Ov.oninput=="function"}tf=nf}else tf=!1;Nv=tf&&(!document.documentMode||9<document.documentMode)}function jv(){Bi&&(Bi.detachEvent("onpropertychange",Mv),Ii=Bi=null)}function Mv(e){if(e.propertyName==="value"&&Ro(Ii)){var n=[];Cv(n,Ii,e,Gu(e)),mv(FT,n)}}function QT(e,n,s){e==="focusin"?(jv(),Bi=n,Ii=s,Bi.attachEvent("onpropertychange",Mv)):e==="focusout"&&jv()}function XT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ro(Ii)}function WT(e,n){if(e==="click")return Ro(n)}function KT(e,n){if(e==="input"||e==="change")return Ro(n)}function ZT(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var kt=typeof Object.is=="function"?Object.is:ZT;function Vi(e,n){if(kt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var s=Object.keys(e),l=Object.keys(n);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var u=s[l];if(!Cr.call(n,u)||!kt(e[u],n[u]))return!1}return!0}function Dv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _v(e,n){var s=Dv(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=n&&l>=n)return{node:s,offset:n-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Dv(s)}}function Lv(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Lv(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function zv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=go(e.document);n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=go(e.document)}return n}function rf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function JT(e,n){var s=zv(n);n=e.focusedElem;var l=e.selectionRange;if(s!==n&&n&&n.ownerDocument&&Lv(n.ownerDocument.documentElement,n)){if(l!==null&&rf(n)){if(e=l.start,s=l.end,s===void 0&&(s=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(s,n.value.length);else if(s=(e=n.ownerDocument||document)&&e.defaultView||window,s.getSelection){s=s.getSelection();var u=n.textContent.length,m=Math.min(l.start,u);l=l.end===void 0?m:Math.min(l.end,u),!s.extend&&m>l&&(u=l,l=m,m=u),u=_v(n,m);var T=_v(n,l);u&&T&&(s.rangeCount!==1||s.anchorNode!==u.node||s.anchorOffset!==u.offset||s.focusNode!==T.node||s.focusOffset!==T.offset)&&(e=e.createRange(),e.setStart(u.node,u.offset),s.removeAllRanges(),m>l?(s.addRange(e),s.extend(T.node,T.offset)):(e.setEnd(T.node,T.offset),s.addRange(e)))}}for(e=[],s=n;s=s.parentNode;)s.nodeType===1&&e.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)s=e[n],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var eC=Qn&&"documentMode"in document&&11>=document.documentMode,Ss=null,af=null,Yi=null,sf=!1;function Pv(e,n,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;sf||Ss==null||Ss!==go(l)||(l=Ss,"selectionStart"in l&&rf(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}),Yi&&Vi(Yi,l)||(Yi=l,l=ic(af,"onSelect"),0<l.length&&(n=new So("onSelect","select",null,n,s),e.push({event:n,listeners:l}),n.target=Ss)))}function Ea(e,n){var s={};return s[e.toLowerCase()]=n.toLowerCase(),s["Webkit"+e]="webkit"+n,s["Moz"+e]="moz"+n,s}var Es={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionrun:Ea("Transition","TransitionRun"),transitionstart:Ea("Transition","TransitionStart"),transitioncancel:Ea("Transition","TransitionCancel"),transitionend:Ea("Transition","TransitionEnd")},lf={},kv={};Qn&&(kv=document.createElement("div").style,"AnimationEvent"in window||(delete Es.animationend.animation,delete Es.animationiteration.animation,delete Es.animationstart.animation),"TransitionEvent"in window||delete Es.transitionend.transition);function Ra(e){if(lf[e])return lf[e];if(!Es[e])return e;var n=Es[e],s;for(s in n)if(n.hasOwnProperty(s)&&s in kv)return lf[e]=n[s];return e}var Uv=Ra("animationend"),$v=Ra("animationiteration"),Hv=Ra("animationstart"),tC=Ra("transitionrun"),nC=Ra("transitionstart"),rC=Ra("transitioncancel"),qv=Ra("transitionend"),Bv=new Map,Iv="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 scrollEnd toggle touchMove waiting wheel".split(" ");function cn(e,n){Bv.set(e,n),wa(n,[e])}var Ft=[],Rs=0,of=0;function To(){for(var e=Rs,n=of=Rs=0;n<e;){var s=Ft[n];Ft[n++]=null;var l=Ft[n];Ft[n++]=null;var u=Ft[n];Ft[n++]=null;var m=Ft[n];if(Ft[n++]=null,l!==null&&u!==null){var T=l.pending;T===null?u.next=u:(u.next=T.next,T.next=u),l.pending=u}m!==0&&Vv(s,u,m)}}function Co(e,n,s,l){Ft[Rs++]=e,Ft[Rs++]=n,Ft[Rs++]=s,Ft[Rs++]=l,of|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function cf(e,n,s,l){return Co(e,n,s,l),Ao(e)}function jr(e,n){return Co(e,null,null,n),Ao(e)}function Vv(e,n,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var u=!1,m=e.return;m!==null;)m.childLanes|=s,l=m.alternate,l!==null&&(l.childLanes|=s),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(u=!0)),e=m,m=m.return;u&&n!==null&&e.tag===3&&(m=e.stateNode,u=31-Pt(s),m=m.hiddenUpdates,e=m[u],e===null?m[u]=[n]:e.push(n),n.lane=s|536870912)}function Ao(e){if(50<vl)throw vl=0,pd=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Ts={},Yv=new WeakMap;function Qt(e,n){if(typeof e=="object"&&e!==null){var s=Yv.get(e);return s!==void 0?s:(n={value:e,source:n,stack:q(n)},Yv.set(e,n),n)}return{value:e,source:n,stack:q(n)}}var Cs=[],As=0,No=null,Oo=0,Xt=[],Wt=0,Ta=null,Wn=1,Kn="";function Ca(e,n){Cs[As++]=Oo,Cs[As++]=No,No=e,Oo=n}function Gv(e,n,s){Xt[Wt++]=Wn,Xt[Wt++]=Kn,Xt[Wt++]=Ta,Ta=e;var l=Wn;e=Kn;var u=32-Pt(l)-1;l&=~(1<<u),s+=1;var m=32-Pt(n)+u;if(30<m){var T=u-u%5;m=(l&(1<<T)-1).toString(32),l>>=T,u-=T,Wn=1<<32-Pt(n)+u|s<<u|l,Kn=m+e}else Wn=1<<m|s<<u|l,Kn=e}function uf(e){e.return!==null&&(Ca(e,1),Gv(e,1,0))}function ff(e){for(;e===No;)No=Cs[--As],Cs[As]=null,Oo=Cs[--As],Cs[As]=null;for(;e===Ta;)Ta=Xt[--Wt],Xt[Wt]=null,Kn=Xt[--Wt],Xt[Wt]=null,Wn=Xt[--Wt],Xt[Wt]=null}var Tt=null,vt=null,ze=!1,un=null,Cn=!1,df=Error(i(519));function Aa(e){var n=Error(i(418,""));throw Qi(Qt(n,e)),df}function Fv(e){var n=e.stateNode,s=e.type,l=e.memoizedProps;switch(n[bt]=e,n[jt]=l,s){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(s=0;s<yl.length;s++)De(yl[s],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":De("invalid",n),ov(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),vo(n);break;case"select":De("invalid",n);break;case"textarea":De("invalid",n),uv(n,l.value,l.defaultValue,l.children),vo(n)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||n.textContent===""+s||l.suppressHydrationWarning===!0||nb(n.textContent,s)?(l.popover!=null&&(De("beforetoggle",n),De("toggle",n)),l.onScroll!=null&&De("scroll",n),l.onScrollEnd!=null&&De("scrollend",n),l.onClick!=null&&(n.onclick=lc),n=!0):n=!1,n||Aa(e)}function Qv(e){for(Tt=e.return;Tt;)switch(Tt.tag){case 3:case 27:Cn=!0;return;case 5:case 13:Cn=!1;return;default:Tt=Tt.return}}function Gi(e){if(e!==Tt)return!1;if(!ze)return Qv(e),ze=!0,!1;var n=!1,s;if((s=e.tag!==3&&e.tag!==27)&&((s=e.tag===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||Dd(e.type,e.memoizedProps)),s=!s),s&&(n=!0),n&&vt&&Aa(e),Qv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(s=e.data,s==="/$"){if(n===0){vt=dn(e.nextSibling);break e}n--}else s!=="$"&&s!=="$!"&&s!=="$?"||n++;e=e.nextSibling}vt=null}}else vt=Tt?dn(e.stateNode.nextSibling):null;return!0}function Fi(){vt=Tt=null,ze=!1}function Qi(e){un===null?un=[e]:un.push(e)}var Xi=Error(i(460)),Xv=Error(i(474)),hf={then:function(){}};function Wv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jo(){}function Kv(e,n,s){switch(s=e[s],s===void 0?e.push(n):s!==n&&(n.then(jo,jo),n=s),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,e===Xi?Error(i(483)):e;default:if(typeof n.status=="string")n.then(jo,jo);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=l}},function(l){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,e===Xi?Error(i(483)):e}throw Wi=n,Xi}}var Wi=null;function Zv(){if(Wi===null)throw Error(i(459));var e=Wi;return Wi=null,e}var Ns=null,Ki=0;function Mo(e){var n=Ki;return Ki+=1,Ns===null&&(Ns=[]),Kv(Ns,e,n)}function Zi(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Do(e,n){throw n.$$typeof===c?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Jv(e){var n=e._init;return n(e._payload)}function eg(e){function n(F,B){if(e){var X=F.deletions;X===null?(F.deletions=[B],F.flags|=16):X.push(B)}}function s(F,B){if(!e)return null;for(;B!==null;)n(F,B),B=B.sibling;return null}function l(F){for(var B=new Map;F!==null;)F.key!==null?B.set(F.key,F):B.set(F.index,F),F=F.sibling;return B}function u(F,B){return F=Br(F,B),F.index=0,F.sibling=null,F}function m(F,B,X){return F.index=X,e?(X=F.alternate,X!==null?(X=X.index,X<B?(F.flags|=33554434,B):X):(F.flags|=33554434,B)):(F.flags|=1048576,B)}function T(F){return e&&F.alternate===null&&(F.flags|=33554434),F}function O(F,B,X,re){return B===null||B.tag!==6?(B=ld(X,F.mode,re),B.return=F,B):(B=u(B,X),B.return=F,B)}function D(F,B,X,re){var he=X.type;return he===h?ee(F,B,X.props.children,re,X.key):B!==null&&(B.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===A&&Jv(he)===B.type)?(B=u(B,X.props),Zi(B,X),B.return=F,B):(B=Wo(X.type,X.key,X.props,null,F.mode,re),Zi(B,X),B.return=F,B)}function V(F,B,X,re){return B===null||B.tag!==4||B.stateNode.containerInfo!==X.containerInfo||B.stateNode.implementation!==X.implementation?(B=od(X,F.mode,re),B.return=F,B):(B=u(B,X.children||[]),B.return=F,B)}function ee(F,B,X,re,he){return B===null||B.tag!==7?(B=ka(X,F.mode,re,he),B.return=F,B):(B=u(B,X),B.return=F,B)}function ie(F,B,X){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=ld(""+B,F.mode,X),B.return=F,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case f:return X=Wo(B.type,B.key,B.props,null,F.mode,X),Zi(X,B),X.return=F,X;case d:return B=od(B,F.mode,X),B.return=F,B;case A:var re=B._init;return B=re(B._payload),ie(F,B,X)}if(se(B)||k(B))return B=ka(B,F.mode,X,null),B.return=F,B;if(typeof B.then=="function")return ie(F,Mo(B),X);if(B.$$typeof===E)return ie(F,Fo(F,B),X);Do(F,B)}return null}function W(F,B,X,re){var he=B!==null?B.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return he!==null?null:O(F,B,""+X,re);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case f:return X.key===he?D(F,B,X,re):null;case d:return X.key===he?V(F,B,X,re):null;case A:return he=X._init,X=he(X._payload),W(F,B,X,re)}if(se(X)||k(X))return he!==null?null:ee(F,B,X,re,null);if(typeof X.then=="function")return W(F,B,Mo(X),re);if(X.$$typeof===E)return W(F,B,Fo(F,X),re);Do(F,X)}return null}function J(F,B,X,re,he){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return F=F.get(X)||null,O(B,F,""+re,he);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case f:return F=F.get(re.key===null?X:re.key)||null,D(B,F,re,he);case d:return F=F.get(re.key===null?X:re.key)||null,V(B,F,re,he);case A:var je=re._init;return re=je(re._payload),J(F,B,X,re,he)}if(se(re)||k(re))return F=F.get(X)||null,ee(B,F,re,he,null);if(typeof re.then=="function")return J(F,B,X,Mo(re),he);if(re.$$typeof===E)return J(F,B,X,Fo(B,re),he);Do(B,re)}return null}function ve(F,B,X,re){for(var he=null,je=null,ye=B,xe=B=0,pt=null;ye!==null&&xe<X.length;xe++){ye.index>xe?(pt=ye,ye=null):pt=ye.sibling;var Pe=W(F,ye,X[xe],re);if(Pe===null){ye===null&&(ye=pt);break}e&&ye&&Pe.alternate===null&&n(F,ye),B=m(Pe,B,xe),je===null?he=Pe:je.sibling=Pe,je=Pe,ye=pt}if(xe===X.length)return s(F,ye),ze&&Ca(F,xe),he;if(ye===null){for(;xe<X.length;xe++)ye=ie(F,X[xe],re),ye!==null&&(B=m(ye,B,xe),je===null?he=ye:je.sibling=ye,je=ye);return ze&&Ca(F,xe),he}for(ye=l(ye);xe<X.length;xe++)pt=J(ye,F,xe,X[xe],re),pt!==null&&(e&&pt.alternate!==null&&ye.delete(pt.key===null?xe:pt.key),B=m(pt,B,xe),je===null?he=pt:je.sibling=pt,je=pt);return e&&ye.forEach(function(Xr){return n(F,Xr)}),ze&&Ca(F,xe),he}function Re(F,B,X,re){if(X==null)throw Error(i(151));for(var he=null,je=null,ye=B,xe=B=0,pt=null,Pe=X.next();ye!==null&&!Pe.done;xe++,Pe=X.next()){ye.index>xe?(pt=ye,ye=null):pt=ye.sibling;var Xr=W(F,ye,Pe.value,re);if(Xr===null){ye===null&&(ye=pt);break}e&&ye&&Xr.alternate===null&&n(F,ye),B=m(Xr,B,xe),je===null?he=Xr:je.sibling=Xr,je=Xr,ye=pt}if(Pe.done)return s(F,ye),ze&&Ca(F,xe),he;if(ye===null){for(;!Pe.done;xe++,Pe=X.next())Pe=ie(F,Pe.value,re),Pe!==null&&(B=m(Pe,B,xe),je===null?he=Pe:je.sibling=Pe,je=Pe);return ze&&Ca(F,xe),he}for(ye=l(ye);!Pe.done;xe++,Pe=X.next())Pe=J(ye,F,xe,Pe.value,re),Pe!==null&&(e&&Pe.alternate!==null&&ye.delete(Pe.key===null?xe:Pe.key),B=m(Pe,B,xe),je===null?he=Pe:je.sibling=Pe,je=Pe);return e&&ye.forEach(function(gA){return n(F,gA)}),ze&&Ca(F,xe),he}function et(F,B,X,re){if(typeof X=="object"&&X!==null&&X.type===h&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case f:e:{for(var he=X.key;B!==null;){if(B.key===he){if(he=X.type,he===h){if(B.tag===7){s(F,B.sibling),re=u(B,X.props.children),re.return=F,F=re;break e}}else if(B.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===A&&Jv(he)===B.type){s(F,B.sibling),re=u(B,X.props),Zi(re,X),re.return=F,F=re;break e}s(F,B);break}else n(F,B);B=B.sibling}X.type===h?(re=ka(X.props.children,F.mode,re,X.key),re.return=F,F=re):(re=Wo(X.type,X.key,X.props,null,F.mode,re),Zi(re,X),re.return=F,F=re)}return T(F);case d:e:{for(he=X.key;B!==null;){if(B.key===he)if(B.tag===4&&B.stateNode.containerInfo===X.containerInfo&&B.stateNode.implementation===X.implementation){s(F,B.sibling),re=u(B,X.children||[]),re.return=F,F=re;break e}else{s(F,B);break}else n(F,B);B=B.sibling}re=od(X,F.mode,re),re.return=F,F=re}return T(F);case A:return he=X._init,X=he(X._payload),et(F,B,X,re)}if(se(X))return ve(F,B,X,re);if(k(X)){if(he=k(X),typeof he!="function")throw Error(i(150));return X=he.call(X),Re(F,B,X,re)}if(typeof X.then=="function")return et(F,B,Mo(X),re);if(X.$$typeof===E)return et(F,B,Fo(F,X),re);Do(F,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,B!==null&&B.tag===6?(s(F,B.sibling),re=u(B,X),re.return=F,F=re):(s(F,B),re=ld(X,F.mode,re),re.return=F,F=re),T(F)):s(F,B)}return function(F,B,X,re){try{Ki=0;var he=et(F,B,X,re);return Ns=null,he}catch(ye){if(ye===Xi)throw ye;var je=en(29,ye,null,F.mode);return je.lanes=re,je.return=F,je}finally{}}}var Na=eg(!0),tg=eg(!1),Os=me(null),_o=me(0);function ng(e,n){e=or,de(_o,e),de(Os,n),or=e|n.baseLanes}function mf(){de(_o,or),de(Os,Os.current)}function pf(){or=_o.current,Ee(Os),Ee(_o)}var Kt=me(null),An=null;function Mr(e){var n=e.alternate;de(lt,lt.current&1),de(Kt,e),An===null&&(n===null||Os.current!==null||n.memoizedState!==null)&&(An=e)}function rg(e){if(e.tag===22){if(de(lt,lt.current),de(Kt,e),An===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(An=e)}}else Dr()}function Dr(){de(lt,lt.current),de(Kt,Kt.current)}function Zn(e){Ee(Kt),An===e&&(An=null),Ee(lt)}var lt=me(0);function Lo(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var aC=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(s){return s()})}},sC=t.unstable_scheduleCallback,iC=t.unstable_NormalPriority,ot={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vf(){return{controller:new aC,data:new Map,refCount:0}}function Ji(e){e.refCount--,e.refCount===0&&sC(iC,function(){e.controller.abort()})}var el=null,gf=0,js=0,Ms=null;function lC(e,n){if(el===null){var s=el=[];gf=0,js=Ed(),Ms={status:"pending",value:void 0,then:function(l){s.push(l)}}}return gf++,n.then(ag,ag),n}function ag(){if(--gf===0&&el!==null){Ms!==null&&(Ms.status="fulfilled");var e=el;el=null,js=0,Ms=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function oC(e,n){var s=[],l={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var u=0;u<s.length;u++)(0,s[u])(n)},function(u){for(l.status="rejected",l.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),l}var sg=H.S;H.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&lC(e,n),sg!==null&&sg(e,n)};var Oa=me(null);function yf(){var e=Oa.current;return e!==null?e:Ge.pooledCache}function zo(e,n){n===null?de(Oa,Oa.current):de(Oa,n.pool)}function ig(){var e=yf();return e===null?null:{parent:ot._currentValue,pool:e}}var _r=0,Oe=null,qe=null,at=null,Po=!1,Ds=!1,ja=!1,ko=0,tl=0,_s=null,cC=0;function rt(){throw Error(i(321))}function bf(e,n){if(n===null)return!1;for(var s=0;s<n.length&&s<e.length;s++)if(!kt(e[s],n[s]))return!1;return!0}function xf(e,n,s,l,u,m){return _r=m,Oe=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,H.H=e===null||e.memoizedState===null?Ma:Lr,ja=!1,m=s(l,u),ja=!1,Ds&&(m=og(n,s,l,u)),lg(e),m}function lg(e){H.H=Nn;var n=qe!==null&&qe.next!==null;if(_r=0,at=qe=Oe=null,Po=!1,tl=0,_s=null,n)throw Error(i(300));e===null||ht||(e=e.dependencies,e!==null&&Go(e)&&(ht=!0))}function og(e,n,s,l){Oe=e;var u=0;do{if(Ds&&(_s=null),tl=0,Ds=!1,25<=u)throw Error(i(301));if(u+=1,at=qe=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}H.H=Da,m=n(s,l)}while(Ds);return m}function uC(){var e=H.H,n=e.useState()[0];return n=typeof n.then=="function"?nl(n):n,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Oe.flags|=1024),n}function wf(){var e=ko!==0;return ko=0,e}function Sf(e,n,s){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~s}function Ef(e){if(Po){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Po=!1}_r=0,at=qe=Oe=null,Ds=!1,tl=ko=0,_s=null}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?Oe.memoizedState=at=e:at=at.next=e,at}function st(){if(qe===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var n=at===null?Oe.memoizedState:at.next;if(n!==null)at=n,qe=e;else{if(e===null)throw Oe.alternate===null?Error(i(467)):Error(i(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},at===null?Oe.memoizedState=at=e:at=at.next=e}return at}var Uo;Uo=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function nl(e){var n=tl;return tl+=1,_s===null&&(_s=[]),e=Kv(_s,e,n),n=Oe,(at===null?n.memoizedState:at.next)===null&&(n=n.alternate,H.H=n===null||n.memoizedState===null?Ma:Lr),e}function $o(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nl(e);if(e.$$typeof===E)return xt(e)}throw Error(i(438,String(e)))}function Rf(e){var n=null,s=Oe.updateQueue;if(s!==null&&(n=s.memoCache),n==null){var l=Oe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),s===null&&(s=Uo(),Oe.updateQueue=s),s.memoCache=n,s=n.data[n.index],s===void 0)for(s=n.data[n.index]=Array(e),l=0;l<e;l++)s[l]=L;return n.index++,s}function Jn(e,n){return typeof n=="function"?n(e):n}function Ho(e){var n=st();return Tf(n,qe,e)}function Tf(e,n,s){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=s;var u=e.baseQueue,m=l.pending;if(m!==null){if(u!==null){var T=u.next;u.next=m.next,m.next=T}n.baseQueue=u=m,l.pending=null}if(m=e.baseState,u===null)e.memoizedState=m;else{n=u.next;var O=T=null,D=null,V=n,ee=!1;do{var ie=V.lane&-536870913;if(ie!==V.lane?(Le&ie)===ie:(_r&ie)===ie){var W=V.revertLane;if(W===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),ie===js&&(ee=!0);else if((_r&W)===W){V=V.next,W===js&&(ee=!0);continue}else ie={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},D===null?(O=D=ie,T=m):D=D.next=ie,Oe.lanes|=W,Ir|=W;ie=V.action,ja&&s(m,ie),m=V.hasEagerState?V.eagerState:s(m,ie)}else W={lane:ie,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},D===null?(O=D=W,T=m):D=D.next=W,Oe.lanes|=ie,Ir|=ie;V=V.next}while(V!==null&&V!==n);if(D===null?T=m:D.next=O,!kt(m,e.memoizedState)&&(ht=!0,ee&&(s=Ms,s!==null)))throw s;e.memoizedState=m,e.baseState=T,e.baseQueue=D,l.lastRenderedState=m}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Cf(e){var n=st(),s=n.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=e;var l=s.dispatch,u=s.pending,m=n.memoizedState;if(u!==null){s.pending=null;var T=u=u.next;do m=e(m,T.action),T=T.next;while(T!==u);kt(m,n.memoizedState)||(ht=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),s.lastRenderedState=m}return[m,l]}function cg(e,n,s){var l=Oe,u=st(),m=ze;if(m){if(s===void 0)throw Error(i(407));s=s()}else s=n();var T=!kt((qe||u).memoizedState,s);if(T&&(u.memoizedState=s,ht=!0),u=u.queue,Of(dg.bind(null,l,u,e),[e]),u.getSnapshot!==n||T||at!==null&&at.memoizedState.tag&1){if(l.flags|=2048,Ls(9,fg.bind(null,l,u,s,n),{destroy:void 0},null),Ge===null)throw Error(i(349));m||(_r&60)!==0||ug(l,n,s)}return s}function ug(e,n,s){e.flags|=16384,e={getSnapshot:n,value:s},n=Oe.updateQueue,n===null?(n=Uo(),Oe.updateQueue=n,n.stores=[e]):(s=n.stores,s===null?n.stores=[e]:s.push(e))}function fg(e,n,s,l){n.value=s,n.getSnapshot=l,hg(n)&&mg(e)}function dg(e,n,s){return s(function(){hg(n)&&mg(e)})}function hg(e){var n=e.getSnapshot;e=e.value;try{var s=n();return!kt(e,s)}catch{return!0}}function mg(e){var n=jr(e,2);n!==null&&Ct(n,e,2)}function Af(e){var n=Dt();if(typeof e=="function"){var s=e;if(e=s(),ja){Ar(!0);try{s()}finally{Ar(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},n}function pg(e,n,s,l){return e.baseState=s,Tf(e,qe,typeof l=="function"?l:Jn)}function fC(e,n,s,l,u){if(Io(e))throw Error(i(485));if(e=n.action,e!==null){var m={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){m.listeners.push(T)}};H.T!==null?s(!0):m.isTransition=!1,l(m),s=n.pending,s===null?(m.next=n.pending=m,vg(n,m)):(m.next=s.next,n.pending=s.next=m)}}function vg(e,n){var s=n.action,l=n.payload,u=e.state;if(n.isTransition){var m=H.T,T={};H.T=T;try{var O=s(u,l),D=H.S;D!==null&&D(T,O),gg(e,n,O)}catch(V){Nf(e,n,V)}finally{H.T=m}}else try{m=s(u,l),gg(e,n,m)}catch(V){Nf(e,n,V)}}function gg(e,n,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){yg(e,n,l)},function(l){return Nf(e,n,l)}):yg(e,n,s)}function yg(e,n,s){n.status="fulfilled",n.value=s,bg(n),e.state=s,n=e.pending,n!==null&&(s=n.next,s===n?e.pending=null:(s=s.next,n.next=s,vg(e,s)))}function Nf(e,n,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=s,bg(n),n=n.next;while(n!==l)}e.action=null}function bg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function xg(e,n){return n}function wg(e,n){if(ze){var s=Ge.formState;if(s!==null){e:{var l=Oe;if(ze){if(vt){t:{for(var u=vt,m=Cn;u.nodeType!==8;){if(!m){u=null;break t}if(u=dn(u.nextSibling),u===null){u=null;break t}}m=u.data,u=m==="F!"||m==="F"?u:null}if(u){vt=dn(u.nextSibling),l=u.data==="F!";break e}}Aa(l)}l=!1}l&&(n=s[0])}}return s=Dt(),s.memoizedState=s.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xg,lastRenderedState:n},s.queue=l,s=$g.bind(null,Oe,l),l.dispatch=s,l=Af(!1),m=Lf.bind(null,Oe,!1,l.queue),l=Dt(),u={state:n,dispatch:null,action:e,pending:null},l.queue=u,s=fC.bind(null,Oe,u,m,s),u.dispatch=s,l.memoizedState=e,[n,s,!1]}function Sg(e){var n=st();return Eg(n,qe,e)}function Eg(e,n,s){n=Tf(e,n,xg)[0],e=Ho(Jn)[0],n=typeof n=="object"&&n!==null&&typeof n.then=="function"?nl(n):n;var l=st(),u=l.queue,m=u.dispatch;return s!==l.memoizedState&&(Oe.flags|=2048,Ls(9,dC.bind(null,u,s),{destroy:void 0},null)),[n,m,e]}function dC(e,n){e.action=n}function Rg(e){var n=st(),s=qe;if(s!==null)return Eg(n,s,e);st(),n=n.memoizedState,s=st();var l=s.queue.dispatch;return s.memoizedState=e,[n,l,!1]}function Ls(e,n,s,l){return e={tag:e,create:n,inst:s,deps:l,next:null},n=Oe.updateQueue,n===null&&(n=Uo(),Oe.updateQueue=n),s=n.lastEffect,s===null?n.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,n.lastEffect=e),e}function Tg(){return st().memoizedState}function qo(e,n,s,l){var u=Dt();Oe.flags|=e,u.memoizedState=Ls(1|n,s,{destroy:void 0},l===void 0?null:l)}function Bo(e,n,s,l){var u=st();l=l===void 0?null:l;var m=u.memoizedState.inst;qe!==null&&l!==null&&bf(l,qe.memoizedState.deps)?u.memoizedState=Ls(n,s,m,l):(Oe.flags|=e,u.memoizedState=Ls(1|n,s,m,l))}function Cg(e,n){qo(8390656,8,e,n)}function Of(e,n){Bo(2048,8,e,n)}function Ag(e,n){return Bo(4,2,e,n)}function Ng(e,n){return Bo(4,4,e,n)}function Og(e,n){if(typeof n=="function"){e=e();var s=n(e);return function(){typeof s=="function"?s():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function jg(e,n,s){s=s!=null?s.concat([e]):null,Bo(4,4,Og.bind(null,n,e),s)}function jf(){}function Mg(e,n){var s=st();n=n===void 0?null:n;var l=s.memoizedState;return n!==null&&bf(n,l[1])?l[0]:(s.memoizedState=[e,n],e)}function Dg(e,n){var s=st();n=n===void 0?null:n;var l=s.memoizedState;if(n!==null&&bf(n,l[1]))return l[0];if(l=e(),ja){Ar(!0);try{e()}finally{Ar(!1)}}return s.memoizedState=[l,n],l}function Mf(e,n,s){return s===void 0||(_r&1073741824)!==0?e.memoizedState=n:(e.memoizedState=s,e=Ly(),Oe.lanes|=e,Ir|=e,s)}function _g(e,n,s,l){return kt(s,n)?s:Os.current!==null?(e=Mf(e,s,l),kt(e,n)||(ht=!0),e):(_r&42)===0?(ht=!0,e.memoizedState=s):(e=Ly(),Oe.lanes|=e,Ir|=e,n)}function Lg(e,n,s,l,u){var m=ae.p;ae.p=m!==0&&8>m?m:8;var T=H.T,O={};H.T=O,Lf(e,!1,n,s);try{var D=u(),V=H.S;if(V!==null&&V(O,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var ee=oC(D,l);rl(e,n,ee,qt(e))}else rl(e,n,l,qt(e))}catch(ie){rl(e,n,{then:function(){},status:"rejected",reason:ie},qt())}finally{ae.p=m,H.T=T}}function hC(){}function Df(e,n,s,l){if(e.tag!==5)throw Error(i(476));var u=zg(e).queue;Lg(e,u,n,oe,s===null?hC:function(){return Pg(e),s(l)})}function zg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:oe},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:s},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Pg(e){var n=zg(e).next.queue;rl(e,n,{},qt())}function _f(){return xt(El)}function kg(){return st().memoizedState}function Ug(){return st().memoizedState}function mC(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=qt();e=kr(s);var l=Ur(n,e,s);l!==null&&(Ct(l,n,s),il(l,n,s)),n={cache:vf()},e.payload=n;return}n=n.return}}function pC(e,n,s){var l=qt();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},Io(e)?Hg(n,s):(s=cf(e,n,s,l),s!==null&&(Ct(s,e,l),qg(s,n,l)))}function $g(e,n,s){var l=qt();rl(e,n,s,l)}function rl(e,n,s,l){var u={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Io(e))Hg(n,u);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var T=n.lastRenderedState,O=m(T,s);if(u.hasEagerState=!0,u.eagerState=O,kt(O,T))return Co(e,n,u,0),Ge===null&&To(),!1}catch{}finally{}if(s=cf(e,n,u,l),s!==null)return Ct(s,e,l),qg(s,n,l),!0}return!1}function Lf(e,n,s,l){if(l={lane:2,revertLane:Ed(),action:l,hasEagerState:!1,eagerState:null,next:null},Io(e)){if(n)throw Error(i(479))}else n=cf(e,s,l,2),n!==null&&Ct(n,e,2)}function Io(e){var n=e.alternate;return e===Oe||n!==null&&n===Oe}function Hg(e,n){Ds=Po=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function qg(e,n,s){if((s&4194176)!==0){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,Zp(e,s)}}var Nn={readContext:xt,use:$o,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt};Nn.useCacheRefresh=rt,Nn.useMemoCache=rt,Nn.useHostTransitionStatus=rt,Nn.useFormState=rt,Nn.useActionState=rt,Nn.useOptimistic=rt;var Ma={readContext:xt,use:$o,useCallback:function(e,n){return Dt().memoizedState=[e,n===void 0?null:n],e},useContext:xt,useEffect:Cg,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,qo(4194308,4,Og.bind(null,n,e),s)},useLayoutEffect:function(e,n){return qo(4194308,4,e,n)},useInsertionEffect:function(e,n){qo(4,2,e,n)},useMemo:function(e,n){var s=Dt();n=n===void 0?null:n;var l=e();if(ja){Ar(!0);try{e()}finally{Ar(!1)}}return s.memoizedState=[l,n],l},useReducer:function(e,n,s){var l=Dt();if(s!==void 0){var u=s(n);if(ja){Ar(!0);try{s(n)}finally{Ar(!1)}}}else u=n;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=pC.bind(null,Oe,e),[l.memoizedState,e]},useRef:function(e){var n=Dt();return e={current:e},n.memoizedState=e},useState:function(e){e=Af(e);var n=e.queue,s=$g.bind(null,Oe,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:jf,useDeferredValue:function(e,n){var s=Dt();return Mf(s,e,n)},useTransition:function(){var e=Af(!1);return e=Lg.bind(null,Oe,e.queue,!0,!1),Dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var l=Oe,u=Dt();if(ze){if(s===void 0)throw Error(i(407));s=s()}else{if(s=n(),Ge===null)throw Error(i(349));(Le&60)!==0||ug(l,n,s)}u.memoizedState=s;var m={value:s,getSnapshot:n};return u.queue=m,Cg(dg.bind(null,l,m,e),[e]),l.flags|=2048,Ls(9,fg.bind(null,l,m,s,n),{destroy:void 0},null),s},useId:function(){var e=Dt(),n=Ge.identifierPrefix;if(ze){var s=Kn,l=Wn;s=(l&~(1<<32-Pt(l)-1)).toString(32)+s,n=":"+n+"R"+s,s=ko++,0<s&&(n+="H"+s.toString(32)),n+=":"}else s=cC++,n=":"+n+"r"+s.toString(32)+":";return e.memoizedState=n},useCacheRefresh:function(){return Dt().memoizedState=mC.bind(null,Oe)}};Ma.useMemoCache=Rf,Ma.useHostTransitionStatus=_f,Ma.useFormState=wg,Ma.useActionState=wg,Ma.useOptimistic=function(e){var n=Dt();n.memoizedState=n.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=s,n=Lf.bind(null,Oe,!0,s),s.dispatch=n,[e,n]};var Lr={readContext:xt,use:$o,useCallback:Mg,useContext:xt,useEffect:Of,useImperativeHandle:jg,useInsertionEffect:Ag,useLayoutEffect:Ng,useMemo:Dg,useReducer:Ho,useRef:Tg,useState:function(){return Ho(Jn)},useDebugValue:jf,useDeferredValue:function(e,n){var s=st();return _g(s,qe.memoizedState,e,n)},useTransition:function(){var e=Ho(Jn)[0],n=st().memoizedState;return[typeof e=="boolean"?e:nl(e),n]},useSyncExternalStore:cg,useId:kg};Lr.useCacheRefresh=Ug,Lr.useMemoCache=Rf,Lr.useHostTransitionStatus=_f,Lr.useFormState=Sg,Lr.useActionState=Sg,Lr.useOptimistic=function(e,n){var s=st();return pg(s,qe,e,n)};var Da={readContext:xt,use:$o,useCallback:Mg,useContext:xt,useEffect:Of,useImperativeHandle:jg,useInsertionEffect:Ag,useLayoutEffect:Ng,useMemo:Dg,useReducer:Cf,useRef:Tg,useState:function(){return Cf(Jn)},useDebugValue:jf,useDeferredValue:function(e,n){var s=st();return qe===null?Mf(s,e,n):_g(s,qe.memoizedState,e,n)},useTransition:function(){var e=Cf(Jn)[0],n=st().memoizedState;return[typeof e=="boolean"?e:nl(e),n]},useSyncExternalStore:cg,useId:kg};Da.useCacheRefresh=Ug,Da.useMemoCache=Rf,Da.useHostTransitionStatus=_f,Da.useFormState=Rg,Da.useActionState=Rg,Da.useOptimistic=function(e,n){var s=st();return qe!==null?pg(s,qe,e,n):(s.baseState=e,[e,s.queue.dispatch])};function zf(e,n,s,l){n=e.memoizedState,s=s(l,n),s=s==null?n:K({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Pf={isMounted:function(e){return(e=e._reactInternals)?z(e)===e:!1},enqueueSetState:function(e,n,s){e=e._reactInternals;var l=qt(),u=kr(l);u.payload=n,s!=null&&(u.callback=s),n=Ur(e,u,l),n!==null&&(Ct(n,e,l),il(n,e,l))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var l=qt(),u=kr(l);u.tag=1,u.payload=n,s!=null&&(u.callback=s),n=Ur(e,u,l),n!==null&&(Ct(n,e,l),il(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=qt(),l=kr(s);l.tag=2,n!=null&&(l.callback=n),n=Ur(e,l,s),n!==null&&(Ct(n,e,s),il(n,e,s))}};function Bg(e,n,s,l,u,m,T){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,m,T):n.prototype&&n.prototype.isPureReactComponent?!Vi(s,l)||!Vi(u,m):!0}function Ig(e,n,s,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,l),n.state!==e&&Pf.enqueueReplaceState(n,n.state,null)}function _a(e,n){var s=n;if("ref"in n){s={};for(var l in n)l!=="ref"&&(s[l]=n[l])}if(e=e.defaultProps){s===n&&(s=K({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}var Vo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Vg(e){Vo(e)}function Yg(e){console.error(e)}function Gg(e){Vo(e)}function Yo(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function Fg(e,n,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function kf(e,n,s){return s=kr(s),s.tag=3,s.payload={element:null},s.callback=function(){Yo(e,n)},s}function Qg(e){return e=kr(e),e.tag=3,e}function Xg(e,n,s,l){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var m=l.value;e.payload=function(){return u(m)},e.callback=function(){Fg(n,s,l)}}var T=s.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(e.callback=function(){Fg(n,s,l),typeof u!="function"&&(Vr===null?Vr=new Set([this]):Vr.add(this));var O=l.stack;this.componentDidCatch(l.value,{componentStack:O!==null?O:""})})}function vC(e,n,s,l,u){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=s.alternate,n!==null&&sl(n,s,u,!0),s=Kt.current,s!==null){switch(s.tag){case 13:return An===null?yd():s.alternate===null&&Je===0&&(Je=3),s.flags&=-257,s.flags|=65536,s.lanes=u,l===hf?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([l]):n.add(l),xd(e,l,u)),!1;case 22:return s.flags|=65536,l===hf?s.flags|=16384:(n=s.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=n):(s=n.retryQueue,s===null?n.retryQueue=new Set([l]):s.add(l)),xd(e,l,u)),!1}throw Error(i(435,s.tag))}return xd(e,l,u),yd(),!1}if(ze)return n=Kt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,l!==df&&(e=Error(i(422),{cause:l}),Qi(Qt(e,s)))):(l!==df&&(n=Error(i(423),{cause:l}),Qi(Qt(n,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Qt(l,s),u=kf(e.stateNode,l,u),Zf(e,u),Je!==4&&(Je=2)),!1;var m=Error(i(520),{cause:l});if(m=Qt(m,s),ml===null?ml=[m]:ml.push(m),Je!==4&&(Je=2),n===null)return!0;l=Qt(l,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=kf(s.stateNode,l,e),Zf(s,e),!1;case 1:if(n=s.type,m=s.stateNode,(s.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Vr===null||!Vr.has(m))))return s.flags|=65536,u&=-u,s.lanes|=u,u=Qg(u),Xg(u,e,s,l),Zf(s,u),!1}s=s.return}while(s!==null);return!1}var Wg=Error(i(461)),ht=!1;function gt(e,n,s,l){n.child=e===null?tg(n,null,s,l):Na(n,e.child,s,l)}function Kg(e,n,s,l,u){s=s.render;var m=n.ref;if("ref"in l){var T={};for(var O in l)O!=="ref"&&(T[O]=l[O])}else T=l;return za(n),l=xf(e,n,s,T,m,u),O=wf(),e!==null&&!ht?(Sf(e,n,u),er(e,n,u)):(ze&&O&&uf(n),n.flags|=1,gt(e,n,l,u),n.child)}function Zg(e,n,s,l,u){if(e===null){var m=s.type;return typeof m=="function"&&!id(m)&&m.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=m,Jg(e,n,m,l,u)):(e=Wo(s.type,null,l,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Gf(e,u)){var T=m.memoizedProps;if(s=s.compare,s=s!==null?s:Vi,s(T,l)&&e.ref===n.ref)return er(e,n,u)}return n.flags|=1,e=Br(m,l),e.ref=n.ref,e.return=n,n.child=e}function Jg(e,n,s,l,u){if(e!==null){var m=e.memoizedProps;if(Vi(m,l)&&e.ref===n.ref)if(ht=!1,n.pendingProps=l=m,Gf(e,u))(e.flags&131072)!==0&&(ht=!0);else return n.lanes=e.lanes,er(e,n,u)}return Uf(e,n,s,l,u)}function ey(e,n,s){var l=n.pendingProps,u=l.children,m=(n.stateNode._pendingVisibility&2)!==0,T=e!==null?e.memoizedState:null;if(al(e,n),l.mode==="hidden"||m){if((n.flags&128)!==0){if(l=T!==null?T.baseLanes|s:s,e!==null){for(u=n.child=e.child,m=0;u!==null;)m=m|u.lanes|u.childLanes,u=u.sibling;n.childLanes=m&~l}else n.childLanes=0,n.child=null;return ty(e,n,l,s)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&zo(n,T!==null?T.cachePool:null),T!==null?ng(n,T):mf(),rg(n);else return n.lanes=n.childLanes=536870912,ty(e,n,T!==null?T.baseLanes|s:s,s)}else T!==null?(zo(n,T.cachePool),ng(n,T),Dr(),n.memoizedState=null):(e!==null&&zo(n,null),mf(),Dr());return gt(e,n,u,s),n.child}function ty(e,n,s,l){var u=yf();return u=u===null?null:{parent:ot._currentValue,pool:u},n.memoizedState={baseLanes:s,cachePool:u},e!==null&&zo(n,null),mf(),rg(n),e!==null&&sl(e,n,l,!0),null}function al(e,n){var s=n.ref;if(s===null)e!==null&&e.ref!==null&&(n.flags|=2097664);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(e===null||e.ref!==s)&&(n.flags|=2097664)}}function Uf(e,n,s,l,u){return za(n),s=xf(e,n,s,l,void 0,u),l=wf(),e!==null&&!ht?(Sf(e,n,u),er(e,n,u)):(ze&&l&&uf(n),n.flags|=1,gt(e,n,s,u),n.child)}function ny(e,n,s,l,u,m){return za(n),n.updateQueue=null,s=og(n,l,s,u),lg(e),l=wf(),e!==null&&!ht?(Sf(e,n,m),er(e,n,m)):(ze&&l&&uf(n),n.flags|=1,gt(e,n,s,m),n.child)}function ry(e,n,s,l,u){if(za(n),n.stateNode===null){var m=Ts,T=s.contextType;typeof T=="object"&&T!==null&&(m=xt(T)),m=new s(l,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Pf,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=l,m.state=n.memoizedState,m.refs={},Wf(n),T=s.contextType,m.context=typeof T=="object"&&T!==null?xt(T):Ts,m.state=n.memoizedState,T=s.getDerivedStateFromProps,typeof T=="function"&&(zf(n,s,T,l),m.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(T=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),T!==m.state&&Pf.enqueueReplaceState(m,m.state,null),ol(n,l,m,u),ll(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){m=n.stateNode;var O=n.memoizedProps,D=_a(s,O);m.props=D;var V=m.context,ee=s.contextType;T=Ts,typeof ee=="object"&&ee!==null&&(T=xt(ee));var ie=s.getDerivedStateFromProps;ee=typeof ie=="function"||typeof m.getSnapshotBeforeUpdate=="function",O=n.pendingProps!==O,ee||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(O||V!==T)&&Ig(n,m,l,T),Pr=!1;var W=n.memoizedState;m.state=W,ol(n,l,m,u),ll(),V=n.memoizedState,O||W!==V||Pr?(typeof ie=="function"&&(zf(n,s,ie,l),V=n.memoizedState),(D=Pr||Bg(n,s,D,l,W,V,T))?(ee||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=V),m.props=l,m.state=V,m.context=T,l=D):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{m=n.stateNode,Kf(e,n),T=n.memoizedProps,ee=_a(s,T),m.props=ee,ie=n.pendingProps,W=m.context,V=s.contextType,D=Ts,typeof V=="object"&&V!==null&&(D=xt(V)),O=s.getDerivedStateFromProps,(V=typeof O=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T!==ie||W!==D)&&Ig(n,m,l,D),Pr=!1,W=n.memoizedState,m.state=W,ol(n,l,m,u),ll();var J=n.memoizedState;T!==ie||W!==J||Pr||e!==null&&e.dependencies!==null&&Go(e.dependencies)?(typeof O=="function"&&(zf(n,s,O,l),J=n.memoizedState),(ee=Pr||Bg(n,s,ee,l,W,J,D)||e!==null&&e.dependencies!==null&&Go(e.dependencies))?(V||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,J,D),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,J,D)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||T===e.memoizedProps&&W===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&W===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=J),m.props=l,m.state=J,m.context=D,l=ee):(typeof m.componentDidUpdate!="function"||T===e.memoizedProps&&W===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&W===e.memoizedState||(n.flags|=1024),l=!1)}return m=l,al(e,n),l=(n.flags&128)!==0,m||l?(m=n.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&l?(n.child=Na(n,e.child,null,u),n.child=Na(n,null,s,u)):gt(e,n,s,u),n.memoizedState=m.state,e=n.child):e=er(e,n,u),e}function ay(e,n,s,l){return Fi(),n.flags|=256,gt(e,n,s,l),n.child}var $f={dehydrated:null,treeContext:null,retryLane:0};function Hf(e){return{baseLanes:e,cachePool:ig()}}function qf(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=tn),e}function sy(e,n,s){var l=n.pendingProps,u=!1,m=(n.flags&128)!==0,T;if((T=m)||(T=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),T&&(u=!0,n.flags&=-129),T=(n.flags&32)!==0,n.flags&=-33,e===null){if(ze){if(u?Mr(n):Dr(),ze){var O=vt,D;if(D=O){e:{for(D=O,O=Cn;D.nodeType!==8;){if(!O){O=null;break e}if(D=dn(D.nextSibling),D===null){O=null;break e}}O=D}O!==null?(n.memoizedState={dehydrated:O,treeContext:Ta!==null?{id:Wn,overflow:Kn}:null,retryLane:536870912},D=en(18,null,null,0),D.stateNode=O,D.return=n,n.child=D,Tt=n,vt=null,D=!0):D=!1}D||Aa(n)}if(O=n.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return O.data==="$!"?n.lanes=16:n.lanes=536870912,null;Zn(n)}return O=l.children,l=l.fallback,u?(Dr(),u=n.mode,O=If({mode:"hidden",children:O},u),l=ka(l,u,s,null),O.return=n,l.return=n,O.sibling=l,n.child=O,u=n.child,u.memoizedState=Hf(s),u.childLanes=qf(e,T,s),n.memoizedState=$f,l):(Mr(n),Bf(n,O))}if(D=e.memoizedState,D!==null&&(O=D.dehydrated,O!==null)){if(m)n.flags&256?(Mr(n),n.flags&=-257,n=Vf(e,n,s)):n.memoizedState!==null?(Dr(),n.child=e.child,n.flags|=128,n=null):(Dr(),u=l.fallback,O=n.mode,l=If({mode:"visible",children:l.children},O),u=ka(u,O,s,null),u.flags|=2,l.return=n,u.return=n,l.sibling=u,n.child=l,Na(n,e.child,null,s),l=n.child,l.memoizedState=Hf(s),l.childLanes=qf(e,T,s),n.memoizedState=$f,n=u);else if(Mr(n),O.data==="$!"){if(T=O.nextSibling&&O.nextSibling.dataset,T)var V=T.dgst;T=V,l=Error(i(419)),l.stack="",l.digest=T,Qi({value:l,source:null,stack:null}),n=Vf(e,n,s)}else if(ht||sl(e,n,s,!1),T=(s&e.childLanes)!==0,ht||T){if(T=Ge,T!==null){if(l=s&-s,(l&42)!==0)l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(l=(l&(T.suspendedLanes|s))!==0?0:l,l!==0&&l!==D.retryLane)throw D.retryLane=l,jr(e,l),Ct(T,e,l),Wg}O.data==="$?"||yd(),n=Vf(e,n,s)}else O.data==="$?"?(n.flags|=128,n.child=e.child,n=MC.bind(null,e),O._reactRetry=n,n=null):(e=D.treeContext,vt=dn(O.nextSibling),Tt=n,ze=!0,un=null,Cn=!1,e!==null&&(Xt[Wt++]=Wn,Xt[Wt++]=Kn,Xt[Wt++]=Ta,Wn=e.id,Kn=e.overflow,Ta=n),n=Bf(n,l.children),n.flags|=4096);return n}return u?(Dr(),u=l.fallback,O=n.mode,D=e.child,V=D.sibling,l=Br(D,{mode:"hidden",children:l.children}),l.subtreeFlags=D.subtreeFlags&31457280,V!==null?u=Br(V,u):(u=ka(u,O,s,null),u.flags|=2),u.return=n,l.return=n,l.sibling=u,n.child=l,l=u,u=n.child,O=e.child.memoizedState,O===null?O=Hf(s):(D=O.cachePool,D!==null?(V=ot._currentValue,D=D.parent!==V?{parent:V,pool:V}:D):D=ig(),O={baseLanes:O.baseLanes|s,cachePool:D}),u.memoizedState=O,u.childLanes=qf(e,T,s),n.memoizedState=$f,l):(Mr(n),s=e.child,e=s.sibling,s=Br(s,{mode:"visible",children:l.children}),s.return=n,s.sibling=null,e!==null&&(T=n.deletions,T===null?(n.deletions=[e],n.flags|=16):T.push(e)),n.child=s,n.memoizedState=null,s)}function Bf(e,n){return n=If({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function If(e,n){return My(e,n,0,null)}function Vf(e,n,s){return Na(n,e.child,null,s),e=Bf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function iy(e,n,s){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),Qf(e.return,n,s)}function Yf(e,n,s,l,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:u}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=s,m.tailMode=u)}function ly(e,n,s){var l=n.pendingProps,u=l.revealOrder,m=l.tail;if(gt(e,n,l.children,s),l=lt.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&iy(e,s,n);else if(e.tag===19)iy(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(de(lt,l),u){case"forwards":for(s=n.child,u=null;s!==null;)e=s.alternate,e!==null&&Lo(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=n.child,n.child=null):(u=s.sibling,s.sibling=null),Yf(n,!1,u,s,m);break;case"backwards":for(s=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&Lo(e)===null){n.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}Yf(n,!0,s,null,m);break;case"together":Yf(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function er(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),Ir|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(sl(e,n,s,!1),(s&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,s=Br(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=Br(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function Gf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Go(e)))}function gC(e,n,s){switch(n.tag){case 3:Rn(n,n.stateNode.containerInfo),zr(n,ot,e.memoizedState.cache),Fi();break;case 27:case 5:Fn(n);break;case 4:Rn(n,n.stateNode.containerInfo);break;case 10:zr(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(Mr(n),n.flags|=128,null):(s&n.child.childLanes)!==0?sy(e,n,s):(Mr(n),e=er(e,n,s),e!==null?e.sibling:null);Mr(n);break;case 19:var u=(e.flags&128)!==0;if(l=(s&n.childLanes)!==0,l||(sl(e,n,s,!1),l=(s&n.childLanes)!==0),u){if(l)return ly(e,n,s);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),de(lt,lt.current),l)break;return null;case 22:case 23:return n.lanes=0,ey(e,n,s);case 24:zr(n,ot,e.memoizedState.cache)}return er(e,n,s)}function oy(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)ht=!0;else{if(!Gf(e,s)&&(n.flags&128)===0)return ht=!1,gC(e,n,s);ht=(e.flags&131072)!==0}else ht=!1,ze&&(n.flags&1048576)!==0&&Gv(n,Oo,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var l=n.elementType,u=l._init;if(l=u(l._payload),n.type=l,typeof l=="function")id(l)?(e=_a(l,e),n.tag=1,n=ry(null,n,l,e,s)):(n.tag=0,n=Uf(null,n,l,e,s));else{if(l!=null){if(u=l.$$typeof,u===R){n.tag=11,n=Kg(null,n,l,e,s);break e}else if(u===C){n.tag=14,n=Zg(null,n,l,e,s);break e}}throw n=Y(l)||l,Error(i(306,n,""))}}return n;case 0:return Uf(e,n,n.type,n.pendingProps,s);case 1:return l=n.type,u=_a(l,n.pendingProps),ry(e,n,l,u,s);case 3:e:{if(Rn(n,n.stateNode.containerInfo),e===null)throw Error(i(387));var m=n.pendingProps;u=n.memoizedState,l=u.element,Kf(e,n),ol(n,m,null,s);var T=n.memoizedState;if(m=T.cache,zr(n,ot,m),m!==u.cache&&Xf(n,[ot],s,!0),ll(),m=T.element,u.isDehydrated)if(u={element:m,isDehydrated:!1,cache:T.cache},n.updateQueue.baseState=u,n.memoizedState=u,n.flags&256){n=ay(e,n,m,s);break e}else if(m!==l){l=Qt(Error(i(424)),n),Qi(l),n=ay(e,n,m,s);break e}else for(vt=dn(n.stateNode.containerInfo.firstChild),Tt=n,ze=!0,un=null,Cn=!0,s=tg(n,null,m,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Fi(),m===l){n=er(e,n,s);break e}gt(e,n,m,s)}n=n.child}return n;case 26:return al(e,n),e===null?(s=fb(n.type,null,n.pendingProps,null))?n.memoizedState=s:ze||(s=n.type,e=n.pendingProps,l=oc(Ve.current).createElement(s),l[bt]=n,l[jt]=e,yt(l,s,e),dt(l),n.stateNode=l):n.memoizedState=fb(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Fn(n),e===null&&ze&&(l=n.stateNode=ob(n.type,n.pendingProps,Ve.current),Tt=n,Cn=!0,vt=dn(l.firstChild)),l=n.pendingProps.children,e!==null||ze?gt(e,n,l,s):n.child=Na(n,null,l,s),al(e,n),n.child;case 5:return e===null&&ze&&((u=l=vt)&&(l=FC(l,n.type,n.pendingProps,Cn),l!==null?(n.stateNode=l,Tt=n,vt=dn(l.firstChild),Cn=!1,u=!0):u=!1),u||Aa(n)),Fn(n),u=n.type,m=n.pendingProps,T=e!==null?e.memoizedProps:null,l=m.children,Dd(u,m)?l=null:T!==null&&Dd(u,T)&&(n.flags|=32),n.memoizedState!==null&&(u=xf(e,n,uC,null,null,s),El._currentValue=u),al(e,n),gt(e,n,l,s),n.child;case 6:return e===null&&ze&&((e=s=vt)&&(s=QC(s,n.pendingProps,Cn),s!==null?(n.stateNode=s,Tt=n,vt=null,e=!0):e=!1),e||Aa(n)),null;case 13:return sy(e,n,s);case 4:return Rn(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Na(n,null,l,s):gt(e,n,l,s),n.child;case 11:return Kg(e,n,n.type,n.pendingProps,s);case 7:return gt(e,n,n.pendingProps,s),n.child;case 8:return gt(e,n,n.pendingProps.children,s),n.child;case 12:return gt(e,n,n.pendingProps.children,s),n.child;case 10:return l=n.pendingProps,zr(n,n.type,l.value),gt(e,n,l.children,s),n.child;case 9:return u=n.type._context,l=n.pendingProps.children,za(n),u=xt(u),l=l(u),n.flags|=1,gt(e,n,l,s),n.child;case 14:return Zg(e,n,n.type,n.pendingProps,s);case 15:return Jg(e,n,n.type,n.pendingProps,s);case 19:return ly(e,n,s);case 22:return ey(e,n,s);case 24:return za(n),l=xt(ot),e===null?(u=yf(),u===null&&(u=Ge,m=vf(),u.pooledCache=m,m.refCount++,m!==null&&(u.pooledCacheLanes|=s),u=m),n.memoizedState={parent:l,cache:u},Wf(n),zr(n,ot,u)):((e.lanes&s)!==0&&(Kf(e,n),ol(n,null,null,s),ll()),u=e.memoizedState,m=n.memoizedState,u.parent!==l?(u={parent:l,cache:l},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),zr(n,ot,l)):(l=m.cache,zr(n,ot,l),l!==u.cache&&Xf(n,[ot],s,!0))),gt(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}var Ff=me(null),La=null,tr=null;function zr(e,n,s){de(Ff,n._currentValue),n._currentValue=s}function nr(e){e._currentValue=Ff.current,Ee(Ff)}function Qf(e,n,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===s)break;e=e.return}}function Xf(e,n,s,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var m=u.dependencies;if(m!==null){var T=u.child;m=m.firstContext;e:for(;m!==null;){var O=m;m=u;for(var D=0;D<n.length;D++)if(O.context===n[D]){m.lanes|=s,O=m.alternate,O!==null&&(O.lanes|=s),Qf(m.return,s,e),l||(T=null);break e}m=O.next}}else if(u.tag===18){if(T=u.return,T===null)throw Error(i(341));T.lanes|=s,m=T.alternate,m!==null&&(m.lanes|=s),Qf(T,s,e),T=null}else T=u.child;if(T!==null)T.return=u;else for(T=u;T!==null;){if(T===e){T=null;break}if(u=T.sibling,u!==null){u.return=T.return,T=u;break}T=T.return}u=T}}function sl(e,n,s,l){e=null;for(var u=n,m=!1;u!==null;){if(!m){if((u.flags&524288)!==0)m=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var T=u.alternate;if(T===null)throw Error(i(387));if(T=T.memoizedProps,T!==null){var O=u.type;kt(u.pendingProps.value,T.value)||(e!==null?e.push(O):e=[O])}}else if(u===Rt.current){if(T=u.alternate,T===null)throw Error(i(387));T.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(El):e=[El])}u=u.return}e!==null&&Xf(n,e,s,l),n.flags|=262144}function Go(e){for(e=e.firstContext;e!==null;){if(!kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function za(e){La=e,tr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return cy(La,e)}function Fo(e,n){return La===null&&za(e),cy(e,n)}function cy(e,n){var s=n._currentValue;if(n={context:n,memoizedValue:s,next:null},tr===null){if(e===null)throw Error(i(308));tr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else tr=tr.next=n;return s}var Pr=!1;function Wf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kf(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ur(e,n,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(We&2)!==0){var u=l.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),l.pending=n,n=Ao(e),Vv(e,null,s),n}return Co(e,l,n,s),Ao(e)}function il(e,n,s){if(n=n.updateQueue,n!==null&&(n=n.shared,(s&4194176)!==0)){var l=n.lanes;l&=e.pendingLanes,s|=l,n.lanes=s,Zp(e,s)}}function Zf(e,n){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var u=null,m=null;if(s=s.firstBaseUpdate,s!==null){do{var T={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};m===null?u=m=T:m=m.next=T,s=s.next}while(s!==null);m===null?u=m=n:m=m.next=n}else u=m=n;s={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=n:e.next=n,s.lastBaseUpdate=n}var Jf=!1;function ll(){if(Jf){var e=Ms;if(e!==null)throw e}}function ol(e,n,s,l){Jf=!1;var u=e.updateQueue;Pr=!1;var m=u.firstBaseUpdate,T=u.lastBaseUpdate,O=u.shared.pending;if(O!==null){u.shared.pending=null;var D=O,V=D.next;D.next=null,T===null?m=V:T.next=V,T=D;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,O=ee.lastBaseUpdate,O!==T&&(O===null?ee.firstBaseUpdate=V:O.next=V,ee.lastBaseUpdate=D))}if(m!==null){var ie=u.baseState;T=0,ee=V=D=null,O=m;do{var W=O.lane&-536870913,J=W!==O.lane;if(J?(Le&W)===W:(l&W)===W){W!==0&&W===js&&(Jf=!0),ee!==null&&(ee=ee.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var ve=e,Re=O;W=n;var et=s;switch(Re.tag){case 1:if(ve=Re.payload,typeof ve=="function"){ie=ve.call(et,ie,W);break e}ie=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Re.payload,W=typeof ve=="function"?ve.call(et,ie,W):ve,W==null)break e;ie=K({},ie,W);break e;case 2:Pr=!0}}W=O.callback,W!==null&&(e.flags|=64,J&&(e.flags|=8192),J=u.callbacks,J===null?u.callbacks=[W]:J.push(W))}else J={lane:W,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ee===null?(V=ee=J,D=ie):ee=ee.next=J,T|=W;if(O=O.next,O===null){if(O=u.shared.pending,O===null)break;J=O,O=J.next,J.next=null,u.lastBaseUpdate=J,u.shared.pending=null}}while(!0);ee===null&&(D=ie),u.baseState=D,u.firstBaseUpdate=V,u.lastBaseUpdate=ee,m===null&&(u.shared.lanes=0),Ir|=T,e.lanes=T,e.memoizedState=ie}}function uy(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function fy(e,n){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)uy(s[e],n)}function cl(e,n){try{var s=n.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var u=l.next;s=u;do{if((s.tag&e)===e){l=void 0;var m=s.create,T=s.inst;l=m(),T.destroy=l}s=s.next}while(s!==u)}}catch(O){Ye(n,n.return,O)}}function $r(e,n,s){try{var l=n.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var m=u.next;l=m;do{if((l.tag&e)===e){var T=l.inst,O=T.destroy;if(O!==void 0){T.destroy=void 0,u=n;var D=s;try{O()}catch(V){Ye(u,D,V)}}}l=l.next}while(l!==m)}}catch(V){Ye(n,n.return,V)}}function dy(e){var n=e.updateQueue;if(n!==null){var s=e.stateNode;try{fy(n,s)}catch(l){Ye(e,e.return,l)}}}function hy(e,n,s){s.props=_a(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){Ye(e,n,l)}}function Pa(e,n){try{var s=e.ref;if(s!==null){var l=e.stateNode;switch(e.tag){case 26:case 27:case 5:var u=l;break;default:u=l}typeof s=="function"?e.refCleanup=s(u):s.current=u}}catch(m){Ye(e,n,m)}}function Ut(e,n){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(u){Ye(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){Ye(e,n,u)}else s.current=null}function my(e){var n=e.type,s=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(u){Ye(e,e.return,u)}}function py(e,n,s){try{var l=e.stateNode;BC(l,e.type,s,n),l[jt]=n}catch(u){Ye(e,e.return,u)}}function vy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function ed(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function td(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?s.nodeType===8?s.parentNode.insertBefore(e,n):s.insertBefore(e,n):(s.nodeType===8?(n=s.parentNode,n.insertBefore(e,s)):(n=s,n.appendChild(e)),s=s._reactRootContainer,s!=null||n.onclick!==null||(n.onclick=lc));else if(l!==4&&l!==27&&(e=e.child,e!==null))for(td(e,n,s),e=e.sibling;e!==null;)td(e,n,s),e=e.sibling}function Qo(e,n,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?s.insertBefore(e,n):s.appendChild(e);else if(l!==4&&l!==27&&(e=e.child,e!==null))for(Qo(e,n,s),e=e.sibling;e!==null;)Qo(e,n,s),e=e.sibling}var rr=!1,Ze=!1,nd=!1,gy=typeof WeakSet=="function"?WeakSet:Set,mt=null,yy=!1;function yC(e,n){if(e=e.containerInfo,jd=mc,e=zv(e),rf(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var u=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{s.nodeType,m.nodeType}catch{s=null;break e}var T=0,O=-1,D=-1,V=0,ee=0,ie=e,W=null;t:for(;;){for(var J;ie!==s||u!==0&&ie.nodeType!==3||(O=T+u),ie!==m||l!==0&&ie.nodeType!==3||(D=T+l),ie.nodeType===3&&(T+=ie.nodeValue.length),(J=ie.firstChild)!==null;)W=ie,ie=J;for(;;){if(ie===e)break t;if(W===s&&++V===u&&(O=T),W===m&&++ee===l&&(D=T),(J=ie.nextSibling)!==null)break;ie=W,W=ie.parentNode}ie=J}s=O===-1||D===-1?null:{start:O,end:D}}else s=null}s=s||{start:0,end:0}}else s=null;for(Md={focusedElem:e,selectionRange:s},mc=!1,mt=n;mt!==null;)if(n=mt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mt=e;else for(;mt!==null;){switch(n=mt,m=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,s=n,u=m.memoizedProps,m=m.memoizedState,l=s.stateNode;try{var ve=_a(s.type,u,s.elementType===s.type);e=l.getSnapshotBeforeUpdate(ve,m),l.__reactInternalSnapshotBeforeUpdate=e}catch(Re){Ye(s,s.return,Re)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,s=e.nodeType,s===9)zd(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zd(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=n.sibling,e!==null){e.return=n.return,mt=e;break}mt=n.return}return ve=yy,yy=!1,ve}function by(e,n,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:sr(e,s),l&4&&cl(5,s);break;case 1:if(sr(e,s),l&4)if(e=s.stateNode,n===null)try{e.componentDidMount()}catch(O){Ye(s,s.return,O)}else{var u=_a(s.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(O){Ye(s,s.return,O)}}l&64&&dy(s),l&512&&Pa(s,s.return);break;case 3:if(sr(e,s),l&64&&(l=s.updateQueue,l!==null)){if(e=null,s.child!==null)switch(s.child.tag){case 27:case 5:e=s.child.stateNode;break;case 1:e=s.child.stateNode}try{fy(l,e)}catch(O){Ye(s,s.return,O)}}break;case 26:sr(e,s),l&512&&Pa(s,s.return);break;case 27:case 5:sr(e,s),n===null&&l&4&&my(s),l&512&&Pa(s,s.return);break;case 12:sr(e,s);break;case 13:sr(e,s),l&4&&Sy(e,s);break;case 22:if(u=s.memoizedState!==null||rr,!u){n=n!==null&&n.memoizedState!==null||Ze;var m=rr,T=Ze;rr=u,(Ze=n)&&!T?Hr(e,s,(s.subtreeFlags&8772)!==0):sr(e,s),rr=m,Ze=T}l&512&&(s.memoizedProps.mode==="manual"?Pa(s,s.return):Ut(s,s.return));break;default:sr(e,s)}}function xy(e){var n=e.alternate;n!==null&&(e.alternate=null,xy(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&qu(n)),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 it=null,$t=!1;function ar(e,n,s){for(s=s.child;s!==null;)wy(e,n,s),s=s.sibling}function wy(e,n,s){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Di,s)}catch{}switch(s.tag){case 26:Ze||Ut(s,n),ar(e,n,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Ze||Ut(s,n);var l=it,u=$t;for(it=s.stateNode,ar(e,n,s),s=s.stateNode,n=s.attributes;n.length;)s.removeAttributeNode(n[0]);qu(s),it=l,$t=u;break;case 5:Ze||Ut(s,n);case 6:u=it;var m=$t;if(it=null,ar(e,n,s),it=u,$t=m,it!==null)if($t)try{e=it,l=s.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)}catch(T){Ye(s,n,T)}else try{it.removeChild(s.stateNode)}catch(T){Ye(s,n,T)}break;case 18:it!==null&&($t?(n=it,s=s.stateNode,n.nodeType===8?Ld(n.parentNode,s):n.nodeType===1&&Ld(n,s),Al(n)):Ld(it,s.stateNode));break;case 4:l=it,u=$t,it=s.stateNode.containerInfo,$t=!0,ar(e,n,s),it=l,$t=u;break;case 0:case 11:case 14:case 15:Ze||$r(2,s,n),Ze||$r(4,s,n),ar(e,n,s);break;case 1:Ze||(Ut(s,n),l=s.stateNode,typeof l.componentWillUnmount=="function"&&hy(s,n,l)),ar(e,n,s);break;case 21:ar(e,n,s);break;case 22:Ze||Ut(s,n),Ze=(l=Ze)||s.memoizedState!==null,ar(e,n,s),Ze=l;break;default:ar(e,n,s)}}function Sy(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Al(e)}catch(s){Ye(n,n.return,s)}}function bC(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new gy),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new gy),n;default:throw Error(i(435,e.tag))}}function rd(e,n){var s=bC(e);n.forEach(function(l){var u=DC.bind(null,e,l);s.has(l)||(s.add(l),l.then(u,u))})}function Zt(e,n){var s=n.deletions;if(s!==null)for(var l=0;l<s.length;l++){var u=s[l],m=e,T=n,O=T;e:for(;O!==null;){switch(O.tag){case 27:case 5:it=O.stateNode,$t=!1;break e;case 3:it=O.stateNode.containerInfo,$t=!0;break e;case 4:it=O.stateNode.containerInfo,$t=!0;break e}O=O.return}if(it===null)throw Error(i(160));wy(m,T,u),it=null,$t=!1,m=u.alternate,m!==null&&(m.return=null),u.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Ey(n,e),n=n.sibling}var fn=null;function Ey(e,n){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zt(n,e),Jt(e),l&4&&($r(3,e,e.return),cl(3,e),$r(5,e,e.return));break;case 1:Zt(n,e),Jt(e),l&512&&(Ze||s===null||Ut(s,s.return)),l&64&&rr&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var u=fn;if(Zt(n,e),Jt(e),l&512&&(Ze||s===null||Ut(s,s.return)),l&4){var m=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){e:{l=e.type,s=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":m=u.getElementsByTagName("title")[0],(!m||m[zi]||m[bt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=u.createElement(l),u.head.insertBefore(m,u.querySelector("head > title"))),yt(m,l,s),m[bt]=e,dt(m),l=m;break e;case"link":var T=mb("link","href",u).get(l+(s.href||""));if(T){for(var O=0;O<T.length;O++)if(m=T[O],m.getAttribute("href")===(s.href==null?null:s.href)&&m.getAttribute("rel")===(s.rel==null?null:s.rel)&&m.getAttribute("title")===(s.title==null?null:s.title)&&m.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){T.splice(O,1);break t}}m=u.createElement(l),yt(m,l,s),u.head.appendChild(m);break;case"meta":if(T=mb("meta","content",u).get(l+(s.content||""))){for(O=0;O<T.length;O++)if(m=T[O],m.getAttribute("content")===(s.content==null?null:""+s.content)&&m.getAttribute("name")===(s.name==null?null:s.name)&&m.getAttribute("property")===(s.property==null?null:s.property)&&m.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&m.getAttribute("charset")===(s.charSet==null?null:s.charSet)){T.splice(O,1);break t}}m=u.createElement(l),yt(m,l,s),u.head.appendChild(m);break;default:throw Error(i(468,l))}m[bt]=e,dt(m),l=m}e.stateNode=l}else pb(u,e.type,e.stateNode);else e.stateNode=hb(u,l,e.memoizedProps);else m!==l?(m===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):m.count--,l===null?pb(u,e.type,e.stateNode):hb(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&py(e,e.memoizedProps,s.memoizedProps)}break;case 27:if(l&4&&e.alternate===null){u=e.stateNode,m=e.memoizedProps;try{for(var D=u.firstChild;D;){var V=D.nextSibling,ee=D.nodeName;D[zi]||ee==="HEAD"||ee==="BODY"||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&D.rel.toLowerCase()==="stylesheet"||u.removeChild(D),D=V}for(var ie=e.type,W=u.attributes;W.length;)u.removeAttributeNode(W[0]);yt(u,ie,m),u[bt]=e,u[jt]=m}catch(ve){Ye(e,e.return,ve)}}case 5:if(Zt(n,e),Jt(e),l&512&&(Ze||s===null||Ut(s,s.return)),e.flags&32){u=e.stateNode;try{ys(u,"")}catch(ve){Ye(e,e.return,ve)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,py(e,u,s!==null?s.memoizedProps:u)),l&1024&&(nd=!0);break;case 6:if(Zt(n,e),Jt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(ve){Ye(e,e.return,ve)}}break;case 3:if(fc=null,u=fn,fn=cc(n.containerInfo),Zt(n,e),fn=u,Jt(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Al(n.containerInfo)}catch(ve){Ye(e,e.return,ve)}nd&&(nd=!1,Ry(e));break;case 4:l=fn,fn=cc(e.stateNode.containerInfo),Zt(n,e),Jt(e),fn=l;break;case 12:Zt(n,e),Jt(e);break;case 13:Zt(n,e),Jt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(dd=Tn()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rd(e,l)));break;case 22:if(l&512&&(Ze||s===null||Ut(s,s.return)),D=e.memoizedState!==null,V=s!==null&&s.memoizedState!==null,ee=rr,ie=Ze,rr=ee||D,Ze=ie||V,Zt(n,e),Ze=ie,rr=ee,Jt(e),n=e.stateNode,n._current=e,n._visibility&=-3,n._visibility|=n._pendingVisibility&2,l&8192&&(n._visibility=D?n._visibility&-2:n._visibility|1,D&&(n=rr||Ze,s===null||V||n||zs(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(s=null,n=e;;){if(n.tag===5||n.tag===26||n.tag===27){if(s===null){V=s=n;try{if(u=V.stateNode,D)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{T=V.stateNode,O=V.memoizedProps.style;var J=O!=null&&O.hasOwnProperty("display")?O.display:null;T.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(ve){Ye(V,V.return,ve)}}}else if(n.tag===6){if(s===null){V=n;try{V.stateNode.nodeValue=D?"":V.memoizedProps}catch(ve){Ye(V,V.return,ve)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;s===n&&(s=null),n=n.return}s===n&&(s=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,rd(e,s))));break;case 19:Zt(n,e),Jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rd(e,l)));break;case 21:break;default:Zt(n,e),Jt(e)}}function Jt(e){var n=e.flags;if(n&2){try{if(e.tag!==27){e:{for(var s=e.return;s!==null;){if(vy(s)){var l=s;break e}s=s.return}throw Error(i(160))}switch(l.tag){case 27:var u=l.stateNode,m=ed(e);Qo(e,m,u);break;case 5:var T=l.stateNode;l.flags&32&&(ys(T,""),l.flags&=-33);var O=ed(e);Qo(e,O,T);break;case 3:case 4:var D=l.stateNode.containerInfo,V=ed(e);td(e,V,D);break;default:throw Error(i(161))}}}catch(ee){Ye(e,e.return,ee)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ry(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Ry(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function sr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)by(e,n.alternate,n),n=n.sibling}function zs(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:$r(4,n,n.return),zs(n);break;case 1:Ut(n,n.return);var s=n.stateNode;typeof s.componentWillUnmount=="function"&&hy(n,n.return,s),zs(n);break;case 26:case 27:case 5:Ut(n,n.return),zs(n);break;case 22:Ut(n,n.return),n.memoizedState===null&&zs(n);break;default:zs(n)}e=e.sibling}}function Hr(e,n,s){for(s=s&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,u=e,m=n,T=m.flags;switch(m.tag){case 0:case 11:case 15:Hr(u,m,s),cl(4,m);break;case 1:if(Hr(u,m,s),l=m,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(V){Ye(l,l.return,V)}if(l=m,u=l.updateQueue,u!==null){var O=l.stateNode;try{var D=u.shared.hiddenCallbacks;if(D!==null)for(u.shared.hiddenCallbacks=null,u=0;u<D.length;u++)uy(D[u],O)}catch(V){Ye(l,l.return,V)}}s&&T&64&&dy(m),Pa(m,m.return);break;case 26:case 27:case 5:Hr(u,m,s),s&&l===null&&T&4&&my(m),Pa(m,m.return);break;case 12:Hr(u,m,s);break;case 13:Hr(u,m,s),s&&T&4&&Sy(u,m);break;case 22:m.memoizedState===null&&Hr(u,m,s),Pa(m,m.return);break;default:Hr(u,m,s)}n=n.sibling}}function ad(e,n){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Ji(s))}function sd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ji(e))}function qr(e,n,s,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ty(e,n,s,l),n=n.sibling}function Ty(e,n,s,l){var u=n.flags;switch(n.tag){case 0:case 11:case 15:qr(e,n,s,l),u&2048&&cl(9,n);break;case 3:qr(e,n,s,l),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ji(e)));break;case 12:if(u&2048){qr(e,n,s,l),e=n.stateNode;try{var m=n.memoizedProps,T=m.id,O=m.onPostCommit;typeof O=="function"&&O(T,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(D){Ye(n,n.return,D)}}else qr(e,n,s,l);break;case 23:break;case 22:m=n.stateNode,n.memoizedState!==null?m._visibility&4?qr(e,n,s,l):ul(e,n):m._visibility&4?qr(e,n,s,l):(m._visibility|=4,Ps(e,n,s,l,(n.subtreeFlags&10256)!==0)),u&2048&&ad(n.alternate,n);break;case 24:qr(e,n,s,l),u&2048&&sd(n.alternate,n);break;default:qr(e,n,s,l)}}function Ps(e,n,s,l,u){for(u=u&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var m=e,T=n,O=s,D=l,V=T.flags;switch(T.tag){case 0:case 11:case 15:Ps(m,T,O,D,u),cl(8,T);break;case 23:break;case 22:var ee=T.stateNode;T.memoizedState!==null?ee._visibility&4?Ps(m,T,O,D,u):ul(m,T):(ee._visibility|=4,Ps(m,T,O,D,u)),u&&V&2048&&ad(T.alternate,T);break;case 24:Ps(m,T,O,D,u),u&&V&2048&&sd(T.alternate,T);break;default:Ps(m,T,O,D,u)}n=n.sibling}}function ul(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var s=e,l=n,u=l.flags;switch(l.tag){case 22:ul(s,l),u&2048&&ad(l.alternate,l);break;case 24:ul(s,l),u&2048&&sd(l.alternate,l);break;default:ul(s,l)}n=n.sibling}}var fl=8192;function ks(e){if(e.subtreeFlags&fl)for(e=e.child;e!==null;)Cy(e),e=e.sibling}function Cy(e){switch(e.tag){case 26:ks(e),e.flags&fl&&e.memoizedState!==null&&lA(fn,e.memoizedState,e.memoizedProps);break;case 5:ks(e);break;case 3:case 4:var n=fn;fn=cc(e.stateNode.containerInfo),ks(e),fn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=fl,fl=16777216,ks(e),fl=n):ks(e));break;default:ks(e)}}function Ay(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function dl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];mt=l,Oy(l,e)}Ay(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ny(e),e=e.sibling}function Ny(e){switch(e.tag){case 0:case 11:case 15:dl(e),e.flags&2048&&$r(9,e,e.return);break;case 3:dl(e);break;case 12:dl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&4&&(e.return===null||e.return.tag!==13)?(n._visibility&=-5,Xo(e)):dl(e);break;default:dl(e)}}function Xo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];mt=l,Oy(l,e)}Ay(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:$r(8,n,n.return),Xo(n);break;case 22:s=n.stateNode,s._visibility&4&&(s._visibility&=-5,Xo(n));break;default:Xo(n)}e=e.sibling}}function Oy(e,n){for(;mt!==null;){var s=mt;switch(s.tag){case 0:case 11:case 15:$r(8,s,n);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ji(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,mt=l;else e:for(s=e;mt!==null;){l=mt;var u=l.sibling,m=l.return;if(xy(l),l===s){mt=null;break e}if(u!==null){u.return=m,mt=u;break e}mt=m}}}function xC(e,n,s,l){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,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 en(e,n,s,l){return new xC(e,n,s,l)}function id(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Br(e,n){var s=e.alternate;return s===null?(s=en(e.tag,n,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=n,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&31457280,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,n=e.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function jy(e,n){e.flags&=31457282;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,n=s.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Wo(e,n,s,l,u,m){var T=0;if(l=e,typeof e=="function")id(e)&&(T=1);else if(typeof e=="string")T=sA(e,s,we.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case h:return ka(s.children,u,m,n);case p:T=8,u|=24;break;case g:return e=en(12,s,n,u|2),e.elementType=g,e.lanes=m,e;case S:return e=en(13,s,n,u),e.elementType=S,e.lanes=m,e;case w:return e=en(19,s,n,u),e.elementType=w,e.lanes=m,e;case N:return My(s,u,m,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b:case E:T=10;break e;case x:T=9;break e;case R:T=11;break e;case C:T=14;break e;case A:T=16,l=null;break e}T=29,s=Error(i(130,e===null?"null":typeof e,"")),l=null}return n=en(T,s,n,u),n.elementType=e,n.type=l,n.lanes=m,n}function ka(e,n,s,l){return e=en(7,e,l,n),e.lanes=s,e}function My(e,n,s,l){e=en(22,e,l,n),e.elementType=N,e.lanes=s;var u={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var m=u._current;if(m===null)throw Error(i(456));if((u._pendingVisibility&2)===0){var T=jr(m,2);T!==null&&(u._pendingVisibility|=2,Ct(T,m,2))}},attach:function(){var m=u._current;if(m===null)throw Error(i(456));if((u._pendingVisibility&2)!==0){var T=jr(m,2);T!==null&&(u._pendingVisibility&=-3,Ct(T,m,2))}}};return e.stateNode=u,e}function ld(e,n,s){return e=en(6,e,null,n),e.lanes=s,e}function od(e,n,s){return n=en(4,e.children!==null?e.children:[],e.key,n),n.lanes=s,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ir(e){e.flags|=4}function Dy(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vb(n)){if(n=Kt.current,n!==null&&((Le&4194176)===Le?An!==null:(Le&62914560)!==Le&&(Le&536870912)===0||n!==An))throw Wi=hf,Xv;e.flags|=8192}}function Ko(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Wp():536870912,e.lanes|=n,$s|=n)}function hl(e,n){if(!ze)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Xe(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(n)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags&31457280,l|=u.flags&31457280,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=s,n}function wC(e,n,s){var l=n.pendingProps;switch(ff(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(n),null;case 1:return Xe(n),null;case 3:return s=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),nr(ot),Vt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Gi(n)?ir(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,un!==null&&(vd(un),un=null))),Xe(n),null;case 26:return s=n.memoizedState,e===null?(ir(n),s!==null?(Xe(n),Dy(n,s)):(Xe(n),n.flags&=-16777217)):s?s!==e.memoizedState?(ir(n),Xe(n),Dy(n,s)):(Xe(n),n.flags&=-16777217):(e.memoizedProps!==l&&ir(n),Xe(n),n.flags&=-16777217),null;case 27:ds(n),s=Ve.current;var u=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&ir(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Xe(n),null}e=we.current,Gi(n)?Fv(n):(e=ob(u,l,s),n.stateNode=e,ir(n))}return Xe(n),null;case 5:if(ds(n),s=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&ir(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return Xe(n),null}if(e=we.current,Gi(n))Fv(n);else{switch(u=oc(Ve.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(s,{is:l.is}):u.createElement(s)}}e[bt]=n,e[jt]=l;e:for(u=n.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===n)break e;for(;u.sibling===null;){if(u.return===null||u.return===n)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}n.stateNode=e;e:switch(yt(e,s,l),s){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ir(n)}}return Xe(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&ir(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(i(166));if(e=Ve.current,Gi(n)){if(e=n.stateNode,s=n.memoizedProps,l=null,u=Tt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[bt]=n,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||nb(e.nodeValue,s)),e||Aa(n)}else e=oc(e).createTextNode(l),e[bt]=n,n.stateNode=e}return Xe(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Gi(n),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[bt]=n}else Fi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Xe(n),u=!1}else un!==null&&(vd(un),un=null),u=!0;if(!u)return n.flags&256?(Zn(n),n):(Zn(n),null)}if(Zn(n),(n.flags&128)!==0)return n.lanes=s,n;if(s=l!==null,e=e!==null&&e.memoizedState!==null,s){l=n.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var m=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==u&&(l.flags|=2048)}return s!==e&&s&&(n.child.flags|=8192),Ko(n,n.updateQueue),Xe(n),null;case 4:return Vt(),e===null&&Ad(n.stateNode.containerInfo),Xe(n),null;case 10:return nr(n.type),Xe(n),null;case 19:if(Ee(lt),u=n.memoizedState,u===null)return Xe(n),null;if(l=(n.flags&128)!==0,m=u.rendering,m===null)if(l)hl(u,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=Lo(e),m!==null){for(n.flags|=128,hl(u,!1),e=m.updateQueue,n.updateQueue=e,Ko(n,e),n.subtreeFlags=0,e=s,s=n.child;s!==null;)jy(s,e),s=s.sibling;return de(lt,lt.current&1|2),n.child}e=e.sibling}u.tail!==null&&Tn()>Zo&&(n.flags|=128,l=!0,hl(u,!1),n.lanes=4194304)}else{if(!l)if(e=Lo(m),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,Ko(n,e),hl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!ze)return Xe(n),null}else 2*Tn()-u.renderingStartTime>Zo&&s!==536870912&&(n.flags|=128,l=!0,hl(u,!1),n.lanes=4194304);u.isBackwards?(m.sibling=n.child,n.child=m):(e=u.last,e!==null?e.sibling=m:n.child=m,u.last=m)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=Tn(),n.sibling=null,e=lt.current,de(lt,l?e&1|2:e&1),n):(Xe(n),null);case 22:case 23:return Zn(n),pf(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(s&536870912)!==0&&(n.flags&128)===0&&(Xe(n),n.subtreeFlags&6&&(n.flags|=8192)):Xe(n),s=n.updateQueue,s!==null&&Ko(n,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==s&&(n.flags|=2048),e!==null&&Ee(Oa),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),nr(ot),Xe(n),null;case 25:return null}throw Error(i(156,n.tag))}function SC(e,n){switch(ff(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return nr(ot),Vt(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ds(n),null;case 13:if(Zn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Fi()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ee(lt),null;case 4:return Vt(),null;case 10:return nr(n.type),null;case 22:case 23:return Zn(n),pf(),e!==null&&Ee(Oa),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return nr(ot),null;case 25:return null;default:return null}}function _y(e,n){switch(ff(n),n.tag){case 3:nr(ot),Vt();break;case 26:case 27:case 5:ds(n);break;case 4:Vt();break;case 13:Zn(n);break;case 19:Ee(lt);break;case 10:nr(n.type);break;case 22:case 23:Zn(n),pf(),e!==null&&Ee(Oa);break;case 24:nr(ot)}}var EC={getCacheForType:function(e){var n=xt(ot),s=n.data.get(e);return s===void 0&&(s=e(),n.data.set(e,s)),s}},RC=typeof WeakMap=="function"?WeakMap:Map,We=0,Ge=null,Me=null,Le=0,Fe=0,Ht=null,lr=!1,Us=!1,cd=!1,or=0,Je=0,Ir=0,Ua=0,ud=0,tn=0,$s=0,ml=null,On=null,fd=!1,dd=0,Zo=1/0,Jo=null,Vr=null,ec=!1,$a=null,pl=0,hd=0,md=null,vl=0,pd=null;function qt(){if((We&2)!==0&&Le!==0)return Le&-Le;if(H.T!==null){var e=js;return e!==0?e:Ed()}return ev()}function Ly(){tn===0&&(tn=(Le&536870912)===0||ze?Xp():536870912);var e=Kt.current;return e!==null&&(e.flags|=32),tn}function Ct(e,n,s){(e===Ge&&Fe===2||e.cancelPendingCommit!==null)&&(Hs(e,0),cr(e,Le,tn,!1)),Li(e,s),((We&2)===0||e!==Ge)&&(e===Ge&&((We&2)===0&&(Ua|=s),Je===4&&cr(e,Le,tn,!1)),jn(e))}function zy(e,n,s){if((We&6)!==0)throw Error(i(327));var l=!s&&(n&60)===0&&(n&e.expiredLanes)===0||_i(e,n),u=l?AC(e,n):bd(e,n,!0),m=l;do{if(u===0){Us&&!l&&cr(e,n,0,!1);break}else if(u===6)cr(e,n,0,!lr);else{if(s=e.current.alternate,m&&!TC(s)){u=bd(e,n,!1),m=!1;continue}if(u===2){if(m=n,e.errorRecoveryDisabledLanes&m)var T=0;else T=e.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){n=T;e:{var O=e;u=ml;var D=O.current.memoizedState.isDehydrated;if(D&&(Hs(O,T).flags|=256),T=bd(O,T,!1),T!==2){if(cd&&!D){O.errorRecoveryDisabledLanes|=m,Ua|=m,u=4;break e}m=On,On=u,m!==null&&vd(m)}u=T}if(m=!1,u!==2)continue}}if(u===1){Hs(e,0),cr(e,n,0,!0);break}e:{switch(l=e,u){case 0:case 1:throw Error(i(345));case 4:if((n&4194176)===n){cr(l,n,tn,!lr);break e}break;case 2:On=null;break;case 3:case 5:break;default:throw Error(i(329))}if(l.finishedWork=s,l.finishedLanes=n,(n&62914560)===n&&(m=dd+300-Tn(),10<m)){if(cr(l,n,tn,!lr),ho(l,0)!==0)break e;l.timeoutHandle=sb(Py.bind(null,l,s,On,Jo,fd,n,tn,Ua,$s,lr,2,-0,0),m);break e}Py(l,s,On,Jo,fd,n,tn,Ua,$s,lr,0,-0,0)}}break}while(!0);jn(e)}function vd(e){On===null?On=e:On.push.apply(On,e)}function Py(e,n,s,l,u,m,T,O,D,V,ee,ie,W){var J=n.subtreeFlags;if((J&8192||(J&16785408)===16785408)&&(Sl={stylesheets:null,count:0,unsuspend:iA},Cy(n),n=oA(),n!==null)){e.cancelPendingCommit=n(Iy.bind(null,e,s,l,u,T,O,D,1,ie,W)),cr(e,m,T,!V);return}Iy(e,s,l,u,T,O,D,ee,ie,W)}function TC(e){for(var n=e;;){var s=n.tag;if((s===0||s===11||s===15)&&n.flags&16384&&(s=n.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var u=s[l],m=u.getSnapshot;u=u.value;try{if(!kt(m(),u))return!1}catch{return!1}}if(s=n.child,n.subtreeFlags&16384&&s!==null)s.return=n,n=s;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function cr(e,n,s,l){n&=~ud,n&=~Ua,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var u=n;0<u;){var m=31-Pt(u),T=1<<m;l[m]=-1,u&=~T}s!==0&&Kp(e,s,n)}function tc(){return(We&6)===0?(gl(0),!1):!0}function gd(){if(Me!==null){if(Fe===0)var e=Me.return;else e=Me,tr=La=null,Ef(e),Ns=null,Ki=0,e=Me;for(;e!==null;)_y(e.alternate,e),e=e.return;Me=null}}function Hs(e,n){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,VC(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),gd(),Ge=e,Me=s=Br(e.current,null),Le=n,Fe=0,Ht=null,lr=!1,Us=_i(e,n),cd=!1,$s=tn=ud=Ua=Ir=Je=0,On=ml=null,fd=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var u=31-Pt(l),m=1<<u;n|=e[u],l&=~m}return or=n,To(),s}function ky(e,n){Oe=null,H.H=Nn,n===Xi?(n=Zv(),Fe=3):n===Xv?(n=Zv(),Fe=4):Fe=n===Wg?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Ht=n,Me===null&&(Je=1,Yo(e,Qt(n,e.current)))}function Uy(){var e=H.H;return H.H=Nn,e===null?Nn:e}function $y(){var e=H.A;return H.A=EC,e}function yd(){Je=4,lr||(Le&4194176)!==Le&&Kt.current!==null||(Us=!0),(Ir&134217727)===0&&(Ua&134217727)===0||Ge===null||cr(Ge,Le,tn,!1)}function bd(e,n,s){var l=We;We|=2;var u=Uy(),m=$y();(Ge!==e||Le!==n)&&(Jo=null,Hs(e,n)),n=!1;var T=Je;e:do try{if(Fe!==0&&Me!==null){var O=Me,D=Ht;switch(Fe){case 8:gd(),T=6;break e;case 3:case 2:case 6:Kt.current===null&&(n=!0);var V=Fe;if(Fe=0,Ht=null,qs(e,O,D,V),s&&Us){T=0;break e}break;default:V=Fe,Fe=0,Ht=null,qs(e,O,D,V)}}CC(),T=Je;break}catch(ee){ky(e,ee)}while(!0);return n&&e.shellSuspendCounter++,tr=La=null,We=l,H.H=u,H.A=m,Me===null&&(Ge=null,Le=0,To()),T}function CC(){for(;Me!==null;)Hy(Me)}function AC(e,n){var s=We;We|=2;var l=Uy(),u=$y();Ge!==e||Le!==n?(Jo=null,Zo=Tn()+500,Hs(e,n)):Us=_i(e,n);e:do try{if(Fe!==0&&Me!==null){n=Me;var m=Ht;t:switch(Fe){case 1:Fe=0,Ht=null,qs(e,n,m,1);break;case 2:if(Wv(m)){Fe=0,Ht=null,qy(n);break}n=function(){Fe===2&&Ge===e&&(Fe=7),jn(e)},m.then(n,n);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Wv(m)?(Fe=0,Ht=null,qy(n)):(Fe=0,Ht=null,qs(e,n,m,7));break;case 5:var T=null;switch(Me.tag){case 26:T=Me.memoizedState;case 5:case 27:var O=Me;if(!T||vb(T)){Fe=0,Ht=null;var D=O.sibling;if(D!==null)Me=D;else{var V=O.return;V!==null?(Me=V,nc(V)):Me=null}break t}}Fe=0,Ht=null,qs(e,n,m,5);break;case 6:Fe=0,Ht=null,qs(e,n,m,6);break;case 8:gd(),Je=6;break e;default:throw Error(i(462))}}NC();break}catch(ee){ky(e,ee)}while(!0);return tr=La=null,H.H=l,H.A=u,We=s,Me!==null?0:(Ge=null,Le=0,To(),Je)}function NC(){for(;Me!==null&&!WR();)Hy(Me)}function Hy(e){var n=oy(e.alternate,e,or);e.memoizedProps=e.pendingProps,n===null?nc(e):Me=n}function qy(e){var n=e,s=n.alternate;switch(n.tag){case 15:case 0:n=ny(s,n,n.pendingProps,n.type,void 0,Le);break;case 11:n=ny(s,n,n.pendingProps,n.type.render,n.ref,Le);break;case 5:Ef(n);default:_y(s,n),n=Me=jy(n,or),n=oy(s,n,or)}e.memoizedProps=e.pendingProps,n===null?nc(e):Me=n}function qs(e,n,s,l){tr=La=null,Ef(n),Ns=null,Ki=0;var u=n.return;try{if(vC(e,u,n,s,Le)){Je=1,Yo(e,Qt(s,e.current)),Me=null;return}}catch(m){if(u!==null)throw Me=u,m;Je=1,Yo(e,Qt(s,e.current)),Me=null;return}n.flags&32768?(ze||l===1?e=!0:Us||(Le&536870912)!==0?e=!1:(lr=e=!0,(l===2||l===3||l===6)&&(l=Kt.current,l!==null&&l.tag===13&&(l.flags|=16384))),By(n,e)):nc(n)}function nc(e){var n=e;do{if((n.flags&32768)!==0){By(n,lr);return}e=n.return;var s=wC(n.alternate,n,or);if(s!==null){Me=s;return}if(n=n.sibling,n!==null){Me=n;return}Me=n=e}while(n!==null);Je===0&&(Je=5)}function By(e,n){do{var s=SC(e.alternate,e);if(s!==null){s.flags&=32767,Me=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!n&&(e=e.sibling,e!==null)){Me=e;return}Me=e=s}while(e!==null);Je=6,Me=null}function Iy(e,n,s,l,u,m,T,O,D,V){var ee=H.T,ie=ae.p;try{ae.p=2,H.T=null,OC(e,n,s,l,ie,u,m,T,O,D,V)}finally{H.T=ee,ae.p=ie}}function OC(e,n,s,l,u,m,T,O){do Bs();while($a!==null);if((We&6)!==0)throw Error(i(327));var D=e.finishedWork;if(l=e.finishedLanes,D===null)return null;if(e.finishedWork=null,e.finishedLanes=0,D===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var V=D.lanes|D.childLanes;if(V|=of,lT(e,l,V,m,T,O),e===Ge&&(Me=Ge=null,Le=0),(D.subtreeFlags&10256)===0&&(D.flags&10256)===0||ec||(ec=!0,hd=V,md=s,_C(co,function(){return Bs(),null})),s=(D.flags&15990)!==0,(D.subtreeFlags&15990)!==0||s?(s=H.T,H.T=null,m=ae.p,ae.p=2,T=We,We|=4,yC(e,D),Ey(D,e),JT(Md,e.containerInfo),mc=!!jd,Md=jd=null,e.current=D,by(e,D.alternate,D),KR(),We=T,ae.p=m,H.T=s):e.current=D,ec?(ec=!1,$a=e,pl=l):Vy(e,V),V=e.pendingLanes,V===0&&(Vr=null),nT(D.stateNode),jn(e),n!==null)for(u=e.onRecoverableError,D=0;D<n.length;D++)V=n[D],u(V.value,{componentStack:V.stack});return(pl&3)!==0&&Bs(),V=e.pendingLanes,(l&4194218)!==0&&(V&42)!==0?e===pd?vl++:(vl=0,pd=e):vl=0,gl(0),null}function Vy(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Ji(n)))}function Bs(){if($a!==null){var e=$a,n=hd;hd=0;var s=Jp(pl),l=H.T,u=ae.p;try{if(ae.p=32>s?32:s,H.T=null,$a===null)var m=!1;else{s=md,md=null;var T=$a,O=pl;if($a=null,pl=0,(We&6)!==0)throw Error(i(331));var D=We;if(We|=4,Ny(T.current),Ty(T,T.current,O,s),We=D,gl(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Di,T)}catch{}m=!0}return m}finally{ae.p=u,H.T=l,Vy(e,n)}}return!1}function Yy(e,n,s){n=Qt(s,n),n=kf(e.stateNode,n,2),e=Ur(e,n,2),e!==null&&(Li(e,2),jn(e))}function Ye(e,n,s){if(e.tag===3)Yy(e,e,s);else for(;n!==null;){if(n.tag===3){Yy(n,e,s);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Vr===null||!Vr.has(l))){e=Qt(s,e),s=Qg(2),l=Ur(n,s,2),l!==null&&(Xg(s,l,n,e),Li(l,2),jn(l));break}}n=n.return}}function xd(e,n,s){var l=e.pingCache;if(l===null){l=e.pingCache=new RC;var u=new Set;l.set(n,u)}else u=l.get(n),u===void 0&&(u=new Set,l.set(n,u));u.has(s)||(cd=!0,u.add(s),e=jC.bind(null,e,n,s),n.then(e,e))}function jC(e,n,s){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ge===e&&(Le&s)===s&&(Je===4||Je===3&&(Le&62914560)===Le&&300>Tn()-dd?(We&2)===0&&Hs(e,0):ud|=s,$s===Le&&($s=0)),jn(e)}function Gy(e,n){n===0&&(n=Wp()),e=jr(e,n),e!==null&&(Li(e,n),jn(e))}function MC(e){var n=e.memoizedState,s=0;n!==null&&(s=n.retryLane),Gy(e,s)}function DC(e,n){var s=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(n),Gy(e,s)}function _C(e,n){return ku(e,n)}var rc=null,Is=null,wd=!1,ac=!1,Sd=!1,Ha=0;function jn(e){e!==Is&&e.next===null&&(Is===null?rc=Is=e:Is=Is.next=e),ac=!0,wd||(wd=!0,zC(LC))}function gl(e,n){if(!Sd&&ac){Sd=!0;do for(var s=!1,l=rc;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var m=0;else{var T=l.suspendedLanes,O=l.pingedLanes;m=(1<<31-Pt(42|e)+1)-1,m&=u&~(T&~O),m=m&201326677?m&201326677|1:m?m|2:0}m!==0&&(s=!0,Xy(l,m))}else m=Le,m=ho(l,l===Ge?m:0),(m&3)===0||_i(l,m)||(s=!0,Xy(l,m));l=l.next}while(s);Sd=!1}}function LC(){ac=wd=!1;var e=0;Ha!==0&&(IC()&&(e=Ha),Ha=0);for(var n=Tn(),s=null,l=rc;l!==null;){var u=l.next,m=Fy(l,n);m===0?(l.next=null,s===null?rc=u:s.next=u,u===null&&(Is=s)):(s=l,(e!==0||(m&3)!==0)&&(ac=!0)),l=u}gl(e)}function Fy(e,n){for(var s=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var T=31-Pt(m),O=1<<T,D=u[T];D===-1?((O&s)===0||(O&l)!==0)&&(u[T]=iT(O,n)):D<=n&&(e.expiredLanes|=O),m&=~O}if(n=Ge,s=Le,s=ho(e,e===n?s:0),l=e.callbackNode,s===0||e===n&&Fe===2||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Uu(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||_i(e,s)){if(n=s&-s,n===e.callbackPriority)return n;switch(l!==null&&Uu(l),Jp(s)){case 2:case 8:s=Fp;break;case 32:s=co;break;case 268435456:s=Qp;break;default:s=co}return l=Qy.bind(null,e),s=ku(s,l),e.callbackPriority=n,e.callbackNode=s,n}return l!==null&&l!==null&&Uu(l),e.callbackPriority=2,e.callbackNode=null,2}function Qy(e,n){var s=e.callbackNode;if(Bs()&&e.callbackNode!==s)return null;var l=Le;return l=ho(e,e===Ge?l:0),l===0?null:(zy(e,l,n),Fy(e,Tn()),e.callbackNode!=null&&e.callbackNode===s?Qy.bind(null,e):null)}function Xy(e,n){if(Bs())return null;zy(e,n,!0)}function zC(e){YC(function(){(We&6)!==0?ku(Gp,e):e()})}function Ed(){return Ha===0&&(Ha=Xp()),Ha}function Wy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yo(""+e)}function Ky(e,n){var s=n.ownerDocument.createElement("input");return s.name=n.name,s.value=n.value,e.id&&s.setAttribute("form",e.id),n.parentNode.insertBefore(s,n),e=new FormData(e),s.parentNode.removeChild(s),e}function PC(e,n,s,l,u){if(n==="submit"&&s&&s.stateNode===u){var m=Wy((u[jt]||null).action),T=l.submitter;T&&(n=(n=T[jt]||null)?Wy(n.formAction):T.getAttribute("formAction"),n!==null&&(m=n,T=null));var O=new So("action","action",null,l,u);e.push({event:O,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ha!==0){var D=T?Ky(u,T):new FormData(u);Df(s,{pending:!0,data:D,method:u.method,action:m},null,D)}}else typeof m=="function"&&(O.preventDefault(),D=T?Ky(u,T):new FormData(u),Df(s,{pending:!0,data:D,method:u.method,action:m},m,D))},currentTarget:u}]})}}for(var Rd=0;Rd<Iv.length;Rd++){var Td=Iv[Rd],kC=Td.toLowerCase(),UC=Td[0].toUpperCase()+Td.slice(1);cn(kC,"on"+UC)}cn(Uv,"onAnimationEnd"),cn($v,"onAnimationIteration"),cn(Hv,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(tC,"onTransitionRun"),cn(nC,"onTransitionStart"),cn(rC,"onTransitionCancel"),cn(qv,"onTransitionEnd"),vs("onMouseEnter",["mouseout","mouseover"]),vs("onMouseLeave",["mouseout","mouseover"]),vs("onPointerEnter",["pointerout","pointerover"]),vs("onPointerLeave",["pointerout","pointerover"]),wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yl="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(" "),$C=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yl));function Zy(e,n){n=(n&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],u=l.event;l=l.listeners;e:{var m=void 0;if(n)for(var T=l.length-1;0<=T;T--){var O=l[T],D=O.instance,V=O.currentTarget;if(O=O.listener,D!==m&&u.isPropagationStopped())break e;m=O,u.currentTarget=V;try{m(u)}catch(ee){Vo(ee)}u.currentTarget=null,m=D}else for(T=0;T<l.length;T++){if(O=l[T],D=O.instance,V=O.currentTarget,O=O.listener,D!==m&&u.isPropagationStopped())break e;m=O,u.currentTarget=V;try{m(u)}catch(ee){Vo(ee)}u.currentTarget=null,m=D}}}}function De(e,n){var s=n[Hu];s===void 0&&(s=n[Hu]=new Set);var l=e+"__bubble";s.has(l)||(Jy(n,e,2,!1),s.add(l))}function Cd(e,n,s){var l=0;n&&(l|=4),Jy(s,e,l,n)}var sc="_reactListening"+Math.random().toString(36).slice(2);function Ad(e){if(!e[sc]){e[sc]=!0,nv.forEach(function(s){s!=="selectionchange"&&($C.has(s)||Cd(s,!1,e),Cd(s,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[sc]||(n[sc]=!0,Cd("selectionchange",!1,n))}}function Jy(e,n,s,l){switch(Sb(n)){case 2:var u=fA;break;case 8:u=dA;break;default:u=Hd}s=u.bind(null,n,s,e),u=void 0,!Qu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(n,s,{capture:!0,passive:u}):e.addEventListener(n,s,!0):u!==void 0?e.addEventListener(n,s,{passive:u}):e.addEventListener(n,s,!1)}function Nd(e,n,s,l,u){var m=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var T=l.tag;if(T===3||T===4){var O=l.stateNode.containerInfo;if(O===u||O.nodeType===8&&O.parentNode===u)break;if(T===4)for(T=l.return;T!==null;){var D=T.tag;if((D===3||D===4)&&(D=T.stateNode.containerInfo,D===u||D.nodeType===8&&D.parentNode===u))return;T=T.return}for(;O!==null;){if(T=xa(O),T===null)return;if(D=T.tag,D===5||D===6||D===26||D===27){l=m=T;continue e}O=O.parentNode}}l=l.return}mv(function(){var V=m,ee=Gu(s),ie=[];e:{var W=Bv.get(e);if(W!==void 0){var J=So,ve=e;switch(e){case"keypress":if(xo(s)===0)break e;case"keydown":case"keyup":J=DT;break;case"focusin":ve="focus",J=Zu;break;case"focusout":ve="blur",J=Zu;break;case"beforeblur":case"afterblur":J=Zu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=gv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=xT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=zT;break;case Uv:case $v:case Hv:J=ET;break;case qv:J=kT;break;case"scroll":case"scrollend":J=yT;break;case"wheel":J=$T;break;case"copy":case"cut":case"paste":J=TT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=bv;break;case"toggle":case"beforetoggle":J=qT}var Re=(n&4)!==0,et=!Re&&(e==="scroll"||e==="scrollend"),F=Re?W!==null?W+"Capture":null:W;Re=[];for(var B=V,X;B!==null;){var re=B;if(X=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||X===null||F===null||(re=ki(B,F),re!=null&&Re.push(bl(B,re,X))),et)break;B=B.return}0<Re.length&&(W=new J(W,ve,null,s,ee),ie.push({event:W,listeners:Re}))}}if((n&7)===0){e:{if(W=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",W&&s!==Yu&&(ve=s.relatedTarget||s.fromElement)&&(xa(ve)||ve[hs]))break e;if((J||W)&&(W=ee.window===ee?ee:(W=ee.ownerDocument)?W.defaultView||W.parentWindow:window,J?(ve=s.relatedTarget||s.toElement,J=V,ve=ve?xa(ve):null,ve!==null&&(et=z(ve),Re=ve.tag,ve!==et||Re!==5&&Re!==27&&Re!==6)&&(ve=null)):(J=null,ve=V),J!==ve)){if(Re=gv,re="onMouseLeave",F="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(Re=bv,re="onPointerLeave",F="onPointerEnter",B="pointer"),et=J==null?W:Pi(J),X=ve==null?W:Pi(ve),W=new Re(re,B+"leave",J,s,ee),W.target=et,W.relatedTarget=X,re=null,xa(ee)===V&&(Re=new Re(F,B+"enter",ve,s,ee),Re.target=X,Re.relatedTarget=et,re=Re),et=re,J&&ve)t:{for(Re=J,F=ve,B=0,X=Re;X;X=Vs(X))B++;for(X=0,re=F;re;re=Vs(re))X++;for(;0<B-X;)Re=Vs(Re),B--;for(;0<X-B;)F=Vs(F),X--;for(;B--;){if(Re===F||F!==null&&Re===F.alternate)break t;Re=Vs(Re),F=Vs(F)}Re=null}else Re=null;J!==null&&eb(ie,W,J,Re,!1),ve!==null&&et!==null&&eb(ie,et,ve,Re,!0)}}e:{if(W=V?Pi(V):window,J=W.nodeName&&W.nodeName.toLowerCase(),J==="select"||J==="input"&&W.type==="file")var he=Av;else if(Tv(W))if(Nv)he=KT;else{he=XT;var je=QT}else J=W.nodeName,!J||J.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?V&&Vu(V.elementType)&&(he=Av):he=WT;if(he&&(he=he(e,V))){Cv(ie,he,s,ee);break e}je&&je(e,W,V),e==="focusout"&&V&&W.type==="number"&&V.memoizedProps.value!=null&&Iu(W,"number",W.value)}switch(je=V?Pi(V):window,e){case"focusin":(Tv(je)||je.contentEditable==="true")&&(Ss=je,af=V,Yi=null);break;case"focusout":Yi=af=Ss=null;break;case"mousedown":sf=!0;break;case"contextmenu":case"mouseup":case"dragend":sf=!1,Pv(ie,s,ee);break;case"selectionchange":if(eC)break;case"keydown":case"keyup":Pv(ie,s,ee)}var ye;if(ef)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else ws?Ev(e,s)&&(xe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(xe="onCompositionStart");xe&&(xv&&s.locale!=="ko"&&(ws||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&ws&&(ye=pv()):(Or=ee,Xu="value"in Or?Or.value:Or.textContent,ws=!0)),je=ic(V,xe),0<je.length&&(xe=new yv(xe,e,null,s,ee),ie.push({event:xe,listeners:je}),ye?xe.data=ye:(ye=Rv(s),ye!==null&&(xe.data=ye)))),(ye=IT?VT(e,s):YT(e,s))&&(xe=ic(V,"onBeforeInput"),0<xe.length&&(je=new yv("onBeforeInput","beforeinput",null,s,ee),ie.push({event:je,listeners:xe}),je.data=ye)),PC(ie,e,V,s,ee)}Zy(ie,n)})}function bl(e,n,s){return{instance:e,listener:n,currentTarget:s}}function ic(e,n){for(var s=n+"Capture",l=[];e!==null;){var u=e,m=u.stateNode;u=u.tag,u!==5&&u!==26&&u!==27||m===null||(u=ki(e,s),u!=null&&l.unshift(bl(e,u,m)),u=ki(e,n),u!=null&&l.push(bl(e,u,m))),e=e.return}return l}function Vs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function eb(e,n,s,l,u){for(var m=n._reactName,T=[];s!==null&&s!==l;){var O=s,D=O.alternate,V=O.stateNode;if(O=O.tag,D!==null&&D===l)break;O!==5&&O!==26&&O!==27||V===null||(D=V,u?(V=ki(s,m),V!=null&&T.unshift(bl(s,V,D))):u||(V=ki(s,m),V!=null&&T.push(bl(s,V,D)))),s=s.return}T.length!==0&&e.push({event:n,listeners:T})}var HC=/\r\n?/g,qC=/\u0000|\uFFFD/g;function tb(e){return(typeof e=="string"?e:""+e).replace(HC,`
|
|
49
|
+
`).replace(qC,"")}function nb(e,n){return n=tb(n),tb(e)===n}function lc(){}function Be(e,n,s,l,u,m){switch(s){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||ys(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&ys(e,""+l);break;case"className":po(e,"class",l);break;case"tabIndex":po(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":po(e,s,l);break;case"style":dv(e,l,m);break;case"data":if(n!=="object"){po(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=yo(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(s,"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 m=="function"&&(s==="formAction"?(n!=="input"&&Be(e,n,"name",u.name,u,null),Be(e,n,"formEncType",u.formEncType,u,null),Be(e,n,"formMethod",u.formMethod,u,null),Be(e,n,"formTarget",u.formTarget,u,null)):(Be(e,n,"encType",u.encType,u,null),Be(e,n,"method",u.method,u,null),Be(e,n,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=yo(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=lc);break;case"onScroll":l!=null&&De("scroll",e);break;case"onScrollEnd":l!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(s=l.__html,s!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=s}}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}s=yo(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);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(s,""+l):e.removeAttribute(s);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(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":De("beforetoggle",e),De("toggle",e),mo(e,"popover",l);break;case"xlinkActuate":Xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Xn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Xn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Xn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Xn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":mo(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=vT.get(s)||s,mo(e,s,l))}}function Od(e,n,s,l,u,m){switch(s){case"style":dv(e,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(s=l.__html,s!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=s}}break;case"children":typeof l=="string"?ys(e,l):(typeof l=="number"||typeof l=="bigint")&&ys(e,""+l);break;case"onScroll":l!=null&&De("scroll",e);break;case"onScrollEnd":l!=null&&De("scrollend",e);break;case"onClick":l!=null&&(e.onclick=lc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rv.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),n=s.slice(2,u?s.length-7:void 0),m=e[jt]||null,m=m!=null?m[s]:null,typeof m=="function"&&e.removeEventListener(n,m,u),typeof l=="function")){typeof m!="function"&&m!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(n,l,u);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):mo(e,s,l)}}}function yt(e,n,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var l=!1,u=!1,m;for(m in s)if(s.hasOwnProperty(m)){var T=s[m];if(T!=null)switch(m){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Be(e,n,m,T,s,null)}}u&&Be(e,n,"srcSet",s.srcSet,s,null),l&&Be(e,n,"src",s.src,s,null);return;case"input":De("invalid",e);var O=m=T=u=null,D=null,V=null;for(l in s)if(s.hasOwnProperty(l)){var ee=s[l];if(ee!=null)switch(l){case"name":u=ee;break;case"type":T=ee;break;case"checked":D=ee;break;case"defaultChecked":V=ee;break;case"value":m=ee;break;case"defaultValue":O=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,n));break;default:Be(e,n,l,ee,s,null)}}ov(e,m,O,D,V,T,u,!1),vo(e);return;case"select":De("invalid",e),l=T=m=null;for(u in s)if(s.hasOwnProperty(u)&&(O=s[u],O!=null))switch(u){case"value":m=O;break;case"defaultValue":T=O;break;case"multiple":l=O;default:Be(e,n,u,O,s,null)}n=m,s=T,e.multiple=!!l,n!=null?gs(e,!!l,n,!1):s!=null&&gs(e,!!l,s,!0);return;case"textarea":De("invalid",e),m=u=l=null;for(T in s)if(s.hasOwnProperty(T)&&(O=s[T],O!=null))switch(T){case"value":l=O;break;case"defaultValue":u=O;break;case"children":m=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:Be(e,n,T,O,s,null)}uv(e,l,u,m),vo(e);return;case"option":for(D in s)if(s.hasOwnProperty(D)&&(l=s[D],l!=null))switch(D){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Be(e,n,D,l,s,null)}return;case"dialog":De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(l=0;l<yl.length;l++)De(yl[l],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("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(V in s)if(s.hasOwnProperty(V)&&(l=s[V],l!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Be(e,n,V,l,s,null)}return;default:if(Vu(n)){for(ee in s)s.hasOwnProperty(ee)&&(l=s[ee],l!==void 0&&Od(e,n,ee,l,s,void 0));return}}for(O in s)s.hasOwnProperty(O)&&(l=s[O],l!=null&&Be(e,n,O,l,s,null))}function BC(e,n,s,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,m=null,T=null,O=null,D=null,V=null,ee=null;for(J in s){var ie=s[J];if(s.hasOwnProperty(J)&&ie!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":D=ie;default:l.hasOwnProperty(J)||Be(e,n,J,null,l,ie)}}for(var W in l){var J=l[W];if(ie=s[W],l.hasOwnProperty(W)&&(J!=null||ie!=null))switch(W){case"type":m=J;break;case"name":u=J;break;case"checked":V=J;break;case"defaultChecked":ee=J;break;case"value":T=J;break;case"defaultValue":O=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,n));break;default:J!==ie&&Be(e,n,W,J,l,ie)}}Bu(e,T,O,D,V,ee,m,u);return;case"select":J=T=O=W=null;for(m in s)if(D=s[m],s.hasOwnProperty(m)&&D!=null)switch(m){case"value":break;case"multiple":J=D;default:l.hasOwnProperty(m)||Be(e,n,m,null,l,D)}for(u in l)if(m=l[u],D=s[u],l.hasOwnProperty(u)&&(m!=null||D!=null))switch(u){case"value":W=m;break;case"defaultValue":O=m;break;case"multiple":T=m;default:m!==D&&Be(e,n,u,m,l,D)}n=O,s=T,l=J,W!=null?gs(e,!!s,W,!1):!!l!=!!s&&(n!=null?gs(e,!!s,n,!0):gs(e,!!s,s?[]:"",!1));return;case"textarea":J=W=null;for(O in s)if(u=s[O],s.hasOwnProperty(O)&&u!=null&&!l.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Be(e,n,O,null,l,u)}for(T in l)if(u=l[T],m=s[T],l.hasOwnProperty(T)&&(u!=null||m!=null))switch(T){case"value":W=u;break;case"defaultValue":J=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(i(91));break;default:u!==m&&Be(e,n,T,u,l,m)}cv(e,W,J);return;case"option":for(var ve in s)if(W=s[ve],s.hasOwnProperty(ve)&&W!=null&&!l.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:Be(e,n,ve,null,l,W)}for(D in l)if(W=l[D],J=s[D],l.hasOwnProperty(D)&&W!==J&&(W!=null||J!=null))switch(D){case"selected":e.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:Be(e,n,D,W,l,J)}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 Re in s)W=s[Re],s.hasOwnProperty(Re)&&W!=null&&!l.hasOwnProperty(Re)&&Be(e,n,Re,null,l,W);for(V in l)if(W=l[V],J=s[V],l.hasOwnProperty(V)&&W!==J&&(W!=null||J!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,n));break;default:Be(e,n,V,W,l,J)}return;default:if(Vu(n)){for(var et in s)W=s[et],s.hasOwnProperty(et)&&W!==void 0&&!l.hasOwnProperty(et)&&Od(e,n,et,void 0,l,W);for(ee in l)W=l[ee],J=s[ee],!l.hasOwnProperty(ee)||W===J||W===void 0&&J===void 0||Od(e,n,ee,W,l,J);return}}for(var F in s)W=s[F],s.hasOwnProperty(F)&&W!=null&&!l.hasOwnProperty(F)&&Be(e,n,F,null,l,W);for(ie in l)W=l[ie],J=s[ie],!l.hasOwnProperty(ie)||W===J||W==null&&J==null||Be(e,n,ie,W,l,J)}var jd=null,Md=null;function oc(e){return e.nodeType===9?e:e.ownerDocument}function rb(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 ab(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Dd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var _d=null;function IC(){var e=window.event;return e&&e.type==="popstate"?e===_d?!1:(_d=e,!0):(_d=null,!1)}var sb=typeof setTimeout=="function"?setTimeout:void 0,VC=typeof clearTimeout=="function"?clearTimeout:void 0,ib=typeof Promise=="function"?Promise:void 0,YC=typeof queueMicrotask=="function"?queueMicrotask:typeof ib<"u"?function(e){return ib.resolve(null).then(e).catch(GC)}:sb;function GC(e){setTimeout(function(){throw e})}function Ld(e,n){var s=n,l=0;do{var u=s.nextSibling;if(e.removeChild(s),u&&u.nodeType===8)if(s=u.data,s==="/$"){if(l===0){e.removeChild(u),Al(n);return}l--}else s!=="$"&&s!=="$?"&&s!=="$!"||l++;s=u}while(s);Al(n)}function zd(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var s=n;switch(n=n.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":zd(s),qu(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function FC(e,n,s,l){for(;e.nodeType===1;){var u=s;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[zi])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==u.rel||e.getAttribute("href")!==(u.href==null?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function QC(e,n,s){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=dn(e.nextSibling),e===null))return null;return e}function dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}function lb(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(n===0)return e;n--}else s==="/$"&&n++}e=e.previousSibling}return null}function ob(e,n,s){switch(n=oc(s),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}var nn=new Map,cb=new Set;function cc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var ur=ae.d;ae.d={f:XC,r:WC,D:KC,C:ZC,L:JC,m:eA,X:nA,S:tA,M:rA};function XC(){var e=ur.f(),n=tc();return e||n}function WC(e){var n=ms(e);n!==null&&n.tag===5&&n.type==="form"?Pg(n):ur.r(e)}var Ys=typeof document>"u"?null:document;function ub(e,n,s){var l=Ys;if(l&&typeof n=="string"&&n){var u=Gt(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),cb.has(u)||(cb.add(u),e={rel:e,crossOrigin:s,href:n},l.querySelector(u)===null&&(n=l.createElement("link"),yt(n,"link",e),dt(n),l.head.appendChild(n)))}}function KC(e){ur.D(e),ub("dns-prefetch",e,null)}function ZC(e,n){ur.C(e,n),ub("preconnect",e,n)}function JC(e,n,s){ur.L(e,n,s);var l=Ys;if(l&&e&&n){var u='link[rel="preload"][as="'+Gt(n)+'"]';n==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+Gt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+Gt(s.imageSizes)+'"]')):u+='[href="'+Gt(e)+'"]';var m=u;switch(n){case"style":m=Gs(e);break;case"script":m=Fs(e)}nn.has(m)||(e=K({rel:"preload",href:n==="image"&&s&&s.imageSrcSet?void 0:e,as:n},s),nn.set(m,e),l.querySelector(u)!==null||n==="style"&&l.querySelector(xl(m))||n==="script"&&l.querySelector(wl(m))||(n=l.createElement("link"),yt(n,"link",e),dt(n),l.head.appendChild(n)))}}function eA(e,n){ur.m(e,n);var s=Ys;if(s&&e){var l=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Gt(l)+'"][href="'+Gt(e)+'"]',m=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Fs(e)}if(!nn.has(m)&&(e=K({rel:"modulepreload",href:e},n),nn.set(m,e),s.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(wl(m)))return}l=s.createElement("link"),yt(l,"link",e),dt(l),s.head.appendChild(l)}}}function tA(e,n,s){ur.S(e,n,s);var l=Ys;if(l&&e){var u=ps(l).hoistableStyles,m=Gs(e);n=n||"default";var T=u.get(m);if(!T){var O={loading:0,preload:null};if(T=l.querySelector(xl(m)))O.loading=5;else{e=K({rel:"stylesheet",href:e,"data-precedence":n},s),(s=nn.get(m))&&Pd(e,s);var D=T=l.createElement("link");dt(D),yt(D,"link",e),D._p=new Promise(function(V,ee){D.onload=V,D.onerror=ee}),D.addEventListener("load",function(){O.loading|=1}),D.addEventListener("error",function(){O.loading|=2}),O.loading|=4,uc(T,n,l)}T={type:"stylesheet",instance:T,count:1,state:O},u.set(m,T)}}}function nA(e,n){ur.X(e,n);var s=Ys;if(s&&e){var l=ps(s).hoistableScripts,u=Fs(e),m=l.get(u);m||(m=s.querySelector(wl(u)),m||(e=K({src:e,async:!0},n),(n=nn.get(u))&&kd(e,n),m=s.createElement("script"),dt(m),yt(m,"link",e),s.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(u,m))}}function rA(e,n){ur.M(e,n);var s=Ys;if(s&&e){var l=ps(s).hoistableScripts,u=Fs(e),m=l.get(u);m||(m=s.querySelector(wl(u)),m||(e=K({src:e,async:!0,type:"module"},n),(n=nn.get(u))&&kd(e,n),m=s.createElement("script"),dt(m),yt(m,"link",e),s.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(u,m))}}function fb(e,n,s,l){var u=(u=Ve.current)?cc(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(n=Gs(s.href),s=ps(u).hoistableStyles,l=s.get(n),l||(l={type:"style",instance:null,count:0,state:null},s.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Gs(s.href);var m=ps(u).hoistableStyles,T=m.get(e);if(T||(u=u.ownerDocument||u,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,T),(m=u.querySelector(xl(e)))&&!m._p&&(T.instance=m,T.state.loading=5),nn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},nn.set(e,s),m||aA(u,e,s,T.state))),n&&l===null)throw Error(i(528,""));return T}if(n&&l!==null)throw Error(i(529,""));return null;case"script":return n=s.async,s=s.src,typeof s=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Fs(s),s=ps(u).hoistableScripts,l=s.get(n),l||(l={type:"script",instance:null,count:0,state:null},s.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Gs(e){return'href="'+Gt(e)+'"'}function xl(e){return'link[rel="stylesheet"]['+e+"]"}function db(e){return K({},e,{"data-precedence":e.precedence,precedence:null})}function aA(e,n,s,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),yt(n,"link",s),dt(n),e.head.appendChild(n))}function Fs(e){return'[src="'+Gt(e)+'"]'}function wl(e){return"script[async]"+e}function hb(e,n,s){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+Gt(s.href)+'"]');if(l)return n.instance=l,dt(l),l;var u=K({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),dt(l),yt(l,"style",u),uc(l,s.precedence,e),n.instance=l;case"stylesheet":u=Gs(s.href);var m=e.querySelector(xl(u));if(m)return n.state.loading|=4,n.instance=m,dt(m),m;l=db(s),(u=nn.get(u))&&Pd(l,u),m=(e.ownerDocument||e).createElement("link"),dt(m);var T=m;return T._p=new Promise(function(O,D){T.onload=O,T.onerror=D}),yt(m,"link",l),n.state.loading|=4,uc(m,s.precedence,e),n.instance=m;case"script":return m=Fs(s.src),(u=e.querySelector(wl(m)))?(n.instance=u,dt(u),u):(l=s,(u=nn.get(m))&&(l=K({},s),kd(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),dt(u),yt(u,"link",l),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,uc(l,s.precedence,e));return n.instance}function uc(e,n,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,m=u,T=0;T<l.length;T++){var O=l[T];if(O.dataset.precedence===n)m=O;else if(m!==u)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=s.nodeType===9?s.head:s,n.insertBefore(e,n.firstChild))}function Pd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function kd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var fc=null;function mb(e,n,s){if(fc===null){var l=new Map,u=fc=new Map;u.set(s,l)}else u=fc,l=u.get(s),l||(l=new Map,u.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),u=0;u<s.length;u++){var m=s[u];if(!(m[zi]||m[bt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var T=m.getAttribute(n)||"";T=e+T;var O=l.get(T);O?O.push(m):l.set(T,[m])}}return l}function pb(e,n,s){e=e.ownerDocument||e,e.head.insertBefore(s,n==="title"?e.querySelector("head > title"):null)}function sA(e,n,s){if(s===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function vb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Sl=null;function iA(){}function lA(e,n,s){if(Sl===null)throw Error(i(475));var l=Sl;if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Gs(s.href),m=e.querySelector(xl(u));if(m){e=m._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=dc.bind(l),e.then(l,l)),n.state.loading|=4,n.instance=m,dt(m);return}m=e.ownerDocument||e,s=db(s),(u=nn.get(u))&&Pd(s,u),m=m.createElement("link"),dt(m);var T=m;T._p=new Promise(function(O,D){T.onload=O,T.onerror=D}),yt(m,"link",s),n.instance=m}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=dc.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function oA(){if(Sl===null)throw Error(i(475));var e=Sl;return e.stylesheets&&e.count===0&&Ud(e,e.stylesheets),0<e.count?function(n){var s=setTimeout(function(){if(e.stylesheets&&Ud(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s)}}:null}function dc(){if(this.count--,this.count===0){if(this.stylesheets)Ud(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hc=null;function Ud(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hc=new Map,n.forEach(cA,e),hc=null,dc.call(e))}function cA(e,n){if(!(n.state.loading&4)){var s=hc.get(e);if(s)var l=s.get(null);else{s=new Map,hc.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<u.length;m++){var T=u[m];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(s.set(T.dataset.precedence,T),l=T)}l&&s.set(null,l)}u=n.instance,T=u.getAttribute("data-precedence"),m=s.get(T)||l,m===l&&s.set(null,u),s.set(T,u),this.count++,l=dc.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),m?m.parentNode.insertBefore(u,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var El={$$typeof:E,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function uA(e,n,s,l,u,m,T,O){this.tag=1,this.containerInfo=e,this.finishedWork=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=$u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.hiddenUpdates=$u(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=m,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function gb(e,n,s,l,u,m,T,O,D,V,ee,ie){return e=new uA(e,n,s,T,O,D,V,ie),n=1,m===!0&&(n|=24),m=en(3,null,null,n),e.current=m,m.stateNode=e,n=vf(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:l,isDehydrated:s,cache:n},Wf(m),e}function yb(e){return e?(e=Ts,e):Ts}function bb(e,n,s,l,u,m){u=yb(u),l.context===null?l.context=u:l.pendingContext=u,l=kr(n),l.payload={element:s},m=m===void 0?null:m,m!==null&&(l.callback=m),s=Ur(e,l,n),s!==null&&(Ct(s,e,n),il(s,e,n))}function xb(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<n?s:n}}function $d(e,n){xb(e,n),(e=e.alternate)&&xb(e,n)}function wb(e){if(e.tag===13){var n=jr(e,67108864);n!==null&&Ct(n,e,67108864),$d(e,67108864)}}var mc=!0;function fA(e,n,s,l){var u=H.T;H.T=null;var m=ae.p;try{ae.p=2,Hd(e,n,s,l)}finally{ae.p=m,H.T=u}}function dA(e,n,s,l){var u=H.T;H.T=null;var m=ae.p;try{ae.p=8,Hd(e,n,s,l)}finally{ae.p=m,H.T=u}}function Hd(e,n,s,l){if(mc){var u=qd(l);if(u===null)Nd(e,n,l,pc,s),Eb(e,l);else if(mA(u,e,n,s,l))l.stopPropagation();else if(Eb(e,l),n&4&&-1<hA.indexOf(e)){for(;u!==null;){var m=ms(u);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var T=ba(m.pendingLanes);if(T!==0){var O=m;for(O.pendingLanes|=2,O.entangledLanes|=2;T;){var D=1<<31-Pt(T);O.entanglements[1]|=D,T&=~D}jn(m),(We&6)===0&&(Zo=Tn()+500,gl(0))}}break;case 13:O=jr(m,2),O!==null&&Ct(O,m,2),tc(),$d(m,2)}if(m=qd(l),m===null&&Nd(e,n,l,pc,s),m===u)break;u=m}u!==null&&l.stopPropagation()}else Nd(e,n,l,null,s)}}function qd(e){return e=Gu(e),Bd(e)}var pc=null;function Bd(e){if(pc=null,e=xa(e),e!==null){var n=z(e);if(n===null)e=null;else{var s=n.tag;if(s===13){if(e=Q(n),e!==null)return e;e=null}else if(s===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return pc=e,null}function Sb(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(ZR()){case Gp:return 2;case Fp:return 8;case co:case JR:return 32;case Qp:return 268435456;default:return 32}default:return 32}}var Id=!1,Yr=null,Gr=null,Fr=null,Rl=new Map,Tl=new Map,Qr=[],hA="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 Eb(e,n){switch(e){case"focusin":case"focusout":Yr=null;break;case"dragenter":case"dragleave":Gr=null;break;case"mouseover":case"mouseout":Fr=null;break;case"pointerover":case"pointerout":Rl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tl.delete(n.pointerId)}}function Cl(e,n,s,l,u,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:s,eventSystemFlags:l,nativeEvent:m,targetContainers:[u]},n!==null&&(n=ms(n),n!==null&&wb(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function mA(e,n,s,l,u){switch(n){case"focusin":return Yr=Cl(Yr,e,n,s,l,u),!0;case"dragenter":return Gr=Cl(Gr,e,n,s,l,u),!0;case"mouseover":return Fr=Cl(Fr,e,n,s,l,u),!0;case"pointerover":var m=u.pointerId;return Rl.set(m,Cl(Rl.get(m)||null,e,n,s,l,u)),!0;case"gotpointercapture":return m=u.pointerId,Tl.set(m,Cl(Tl.get(m)||null,e,n,s,l,u)),!0}return!1}function Rb(e){var n=xa(e.target);if(n!==null){var s=z(n);if(s!==null){if(n=s.tag,n===13){if(n=Q(s),n!==null){e.blockedOn=n,oT(e.priority,function(){if(s.tag===13){var l=qt(),u=jr(s,l);u!==null&&Ct(u,s,l),$d(s,l)}});return}}else if(n===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var s=qd(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Yu=l,s.target.dispatchEvent(l),Yu=null}else return n=ms(s),n!==null&&wb(n),e.blockedOn=s,!1;n.shift()}return!0}function Tb(e,n,s){vc(e)&&s.delete(n)}function pA(){Id=!1,Yr!==null&&vc(Yr)&&(Yr=null),Gr!==null&&vc(Gr)&&(Gr=null),Fr!==null&&vc(Fr)&&(Fr=null),Rl.forEach(Tb),Tl.forEach(Tb)}function gc(e,n){e.blockedOn===n&&(e.blockedOn=null,Id||(Id=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,pA)))}var yc=null;function Cb(e){yc!==e&&(yc=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){yc===e&&(yc=null);for(var n=0;n<e.length;n+=3){var s=e[n],l=e[n+1],u=e[n+2];if(typeof l!="function"){if(Bd(l||s)===null)continue;break}var m=ms(s);m!==null&&(e.splice(n,3),n-=3,Df(m,{pending:!0,data:u,method:s.method,action:l},l,u))}}))}function Al(e){function n(D){return gc(D,e)}Yr!==null&&gc(Yr,e),Gr!==null&&gc(Gr,e),Fr!==null&&gc(Fr,e),Rl.forEach(n),Tl.forEach(n);for(var s=0;s<Qr.length;s++){var l=Qr[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Qr.length&&(s=Qr[0],s.blockedOn===null);)Rb(s),s.blockedOn===null&&Qr.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var u=s[l],m=s[l+1],T=u[jt]||null;if(typeof m=="function")T||Cb(s);else if(T){var O=null;if(m&&m.hasAttribute("formAction")){if(u=m,T=m[jt]||null)O=T.formAction;else if(Bd(u)!==null)continue}else O=T.action;typeof O=="function"?s[l+1]=O:(s.splice(l,3),l-=3),Cb(s)}}}function Vd(e){this._internalRoot=e}bc.prototype.render=Vd.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var s=n.current,l=qt();bb(s,l,e,n,null,null)},bc.prototype.unmount=Vd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;e.tag===0&&Bs(),bb(e.current,2,null,e,null,null),tc(),n[hs]=null}};function bc(e){this._internalRoot=e}bc.prototype.unstable_scheduleHydration=function(e){if(e){var n=ev();e={blockedOn:null,target:e,priority:n};for(var s=0;s<Qr.length&&n!==0&&n<Qr[s].priority;s++);Qr.splice(s,0,e),s===0&&Rb(e)}};var Ab=r.version;if(Ab!=="19.0.0")throw Error(i(527,Ab,"19.0.0"));ae.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=G(n),e=e!==null?te(e):null,e=e===null?null:e.stateNode,e};var vA={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:H,findFiberByHostInstance:xa,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xc.isDisabled&&xc.supportsFiber)try{Di=xc.inject(vA),zt=xc}catch{}}return jl.createRoot=function(e,n){if(!o(e))throw Error(i(299));var s=!1,l="",u=Vg,m=Yg,T=Gg,O=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(T=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(O=n.unstable_transitionCallbacks)),n=gb(e,1,!1,null,null,s,l,u,m,T,O,null),e[hs]=n.current,Ad(e.nodeType===8?e.parentNode:e),new Vd(n)},jl.hydrateRoot=function(e,n,s){if(!o(e))throw Error(i(299));var l=!1,u="",m=Vg,T=Yg,O=Gg,D=null,V=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(m=s.onUncaughtError),s.onCaughtError!==void 0&&(T=s.onCaughtError),s.onRecoverableError!==void 0&&(O=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(D=s.unstable_transitionCallbacks),s.formState!==void 0&&(V=s.formState)),n=gb(e,1,!0,n,s??null,l,u,m,T,O,D,V),n.context=yb(null),s=n.current,l=qt(),u=kr(l),u.callback=null,Ur(s,u,l),n.current.lanes=l,Li(n,l),jn(n),e[hs]=n.current,Ad(e),new bc(n)},jl.version="19.0.0",jl}var Ub;function OA(){if(Ub)return Qd.exports;Ub=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Qd.exports=NA(),Qd.exports}var jA=OA();function $b(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function Wx(...t){return r=>{let a=!1;const i=t.map(o=>{const c=$b(o,r);return!a&&typeof c=="function"&&(a=!0),c});if(a)return()=>{for(let o=0;o<i.length;o++){const c=i[o];typeof c=="function"?c():$b(t[o],null)}}}}function ke(...t){return y.useCallback(Wx(...t),t)}var sn=y.forwardRef((t,r)=>{const{children:a,...i}=t,o=y.Children.toArray(a),c=o.find(MA);if(c){const f=c.props.children,d=o.map(h=>h===c?y.Children.count(f)>1?y.Children.only(null):y.isValidElement(f)?f.props.children:null:h);return v.jsx(cm,{...i,ref:r,children:y.isValidElement(f)?y.cloneElement(f,void 0,d):null})}return v.jsx(cm,{...i,ref:r,children:a})});sn.displayName="Slot";var cm=y.forwardRef((t,r)=>{const{children:a,...i}=t;if(y.isValidElement(a)){const o=_A(a),c=DA(i,a.props);return a.type!==y.Fragment&&(c.ref=r?Wx(r,o):o),y.cloneElement(a,c)}return y.Children.count(a)>1?y.Children.only(null):null});cm.displayName="SlotClone";var Kx=({children:t})=>v.jsx(v.Fragment,{children:t});function MA(t){return y.isValidElement(t)&&t.type===Kx}function DA(t,r){const a={...r};for(const i in r){const o=t[i],c=r[i];/^on[A-Z]/.test(i)?o&&c?a[i]=(...d)=>{c(...d),o(...d)}:o&&(a[i]=o):i==="style"?a[i]={...o,...c}:i==="className"&&(a[i]=[o,c].filter(Boolean).join(" "))}return{...t,...a}}function _A(t){var i,o;let r=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?t.ref:(r=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}function Zx(t){var r,a,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(a=Zx(t[r]))&&(i&&(i+=" "),i+=a)}else for(a in t)t[a]&&(i&&(i+=" "),i+=a);return i}function Jx(){for(var t,r,a=0,i="",o=arguments.length;a<o;a++)(t=arguments[a])&&(r=Zx(t))&&(i&&(i+=" "),i+=r);return i}const Hb=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,qb=Jx,pa=(t,r)=>a=>{var i;if((r==null?void 0:r.variants)==null)return qb(t,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:o,defaultVariants:c}=r,f=Object.keys(o).map(p=>{const g=a==null?void 0:a[p],b=c==null?void 0:c[p];if(g===null)return null;const x=Hb(g)||Hb(b);return o[p][x]}),d=a&&Object.entries(a).reduce((p,g)=>{let[b,x]=g;return x===void 0||(p[b]=x),p},{}),h=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((p,g)=>{let{class:b,className:x,...E}=g;return Object.entries(E).every(R=>{let[S,w]=R;return Array.isArray(w)?w.includes({...c,...d}[S]):{...c,...d}[S]===w})?[...p,b,x]:p},[]);return qb(t,f,h,a==null?void 0:a.class,a==null?void 0:a.className)};var _c={exports:{}},LA=_c.exports,Bb;function zA(){return Bb||(Bb=1,function(t,r){(function(a,i){t.exports=i()})(LA,function(){var a=1e3,i=6e4,o=36e5,c="millisecond",f="second",d="minute",h="hour",p="day",g="week",b="month",x="quarter",E="year",R="date",S="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var U=["th","st","nd","rd"],M=$%100;return"["+$+(U[(M-20)%10]||U[M]||U[0])+"]"}},N=function($,U,M){var q=String($);return!q||q.length>=U?$:""+Array(U+1-q.length).join(M)+$},L={s:N,z:function($){var U=-$.utcOffset(),M=Math.abs(U),q=Math.floor(M/60),z=M%60;return(U<=0?"+":"-")+N(q,2,"0")+":"+N(z,2,"0")},m:function $(U,M){if(U.date()<M.date())return-$(M,U);var q=12*(M.year()-U.year())+(M.month()-U.month()),z=U.clone().add(q,b),Q=M-z<0,j=U.clone().add(q+(Q?-1:1),b);return+(-(q+(M-z)/(Q?z-j:j-z))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:b,y:E,w:g,d:p,D:R,h,m:d,s:f,ms:c,Q:x}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},_="en",k={};k[_]=A;var I="$isDayjsObject",Y=function($){return $ instanceof ne||!(!$||!$[I])},H=function $(U,M,q){var z;if(!U)return _;if(typeof U=="string"){var Q=U.toLowerCase();k[Q]&&(z=Q),M&&(k[Q]=M,z=Q);var j=U.split("-");if(!z&&j.length>1)return $(j[0])}else{var G=U.name;k[G]=U,z=G}return!q&&z&&(_=z),z||!q&&_},K=function($,U){if(Y($))return $.clone();var M=typeof U=="object"?U:{};return M.date=$,M.args=arguments,new ne(M)},Z=L;Z.l=H,Z.i=Y,Z.w=function($,U){return K($,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var ne=function(){function $(M){this.$L=H(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[I]=!0}var U=$.prototype;return U.parse=function(M){this.$d=function(q){var z=q.date,Q=q.utc;if(z===null)return new Date(NaN);if(Z.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var j=z.match(w);if(j){var G=j[2]-1||0,te=(j[7]||"0").substring(0,3);return Q?new Date(Date.UTC(j[1],G,j[3]||1,j[4]||0,j[5]||0,j[6]||0,te)):new Date(j[1],G,j[3]||1,j[4]||0,j[5]||0,j[6]||0,te)}}return new Date(z)}(M),this.init()},U.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},U.$utils=function(){return Z},U.isValid=function(){return this.$d.toString()!==S},U.isSame=function(M,q){var z=K(M);return this.startOf(q)<=z&&z<=this.endOf(q)},U.isAfter=function(M,q){return K(M)<this.startOf(q)},U.isBefore=function(M,q){return this.endOf(q)<K(M)},U.$g=function(M,q,z){return Z.u(M)?this[q]:this.set(z,M)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(M,q){var z=this,Q=!!Z.u(q)||q,j=Z.p(M),G=function(Ee,de){var we=Z.w(z.$u?Date.UTC(z.$y,de,Ee):new Date(z.$y,de,Ee),z);return Q?we:we.endOf(p)},te=function(Ee,de){return Z.w(z.toDate()[Ee].apply(z.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(de)),z)},se=this.$W,ae=this.$M,oe=this.$D,pe="set"+(this.$u?"UTC":"");switch(j){case E:return Q?G(1,0):G(31,11);case b:return Q?G(1,ae):G(0,ae+1);case g:var fe=this.$locale().weekStart||0,me=(se<fe?se+7:se)-fe;return G(Q?oe-me:oe+(6-me),ae);case p:case R:return te(pe+"Hours",0);case h:return te(pe+"Minutes",1);case d:return te(pe+"Seconds",2);case f:return te(pe+"Milliseconds",3);default:return this.clone()}},U.endOf=function(M){return this.startOf(M,!1)},U.$set=function(M,q){var z,Q=Z.p(M),j="set"+(this.$u?"UTC":""),G=(z={},z[p]=j+"Date",z[R]=j+"Date",z[b]=j+"Month",z[E]=j+"FullYear",z[h]=j+"Hours",z[d]=j+"Minutes",z[f]=j+"Seconds",z[c]=j+"Milliseconds",z)[Q],te=Q===p?this.$D+(q-this.$W):q;if(Q===b||Q===E){var se=this.clone().set(R,1);se.$d[G](te),se.init(),this.$d=se.set(R,Math.min(this.$D,se.daysInMonth())).$d}else G&&this.$d[G](te);return this.init(),this},U.set=function(M,q){return this.clone().$set(M,q)},U.get=function(M){return this[Z.p(M)]()},U.add=function(M,q){var z,Q=this;M=Number(M);var j=Z.p(q),G=function(ae){var oe=K(Q);return Z.w(oe.date(oe.date()+Math.round(ae*M)),Q)};if(j===b)return this.set(b,this.$M+M);if(j===E)return this.set(E,this.$y+M);if(j===p)return G(1);if(j===g)return G(7);var te=(z={},z[d]=i,z[h]=o,z[f]=a,z)[j]||1,se=this.$d.getTime()+M*te;return Z.w(se,this)},U.subtract=function(M,q){return this.add(-1*M,q)},U.format=function(M){var q=this,z=this.$locale();if(!this.isValid())return z.invalidDate||S;var Q=M||"YYYY-MM-DDTHH:mm:ssZ",j=Z.z(this),G=this.$H,te=this.$m,se=this.$M,ae=z.weekdays,oe=z.months,pe=z.meridiem,fe=function(de,we,Ae,Ve){return de&&(de[we]||de(q,Q))||Ae[we].slice(0,Ve)},me=function(de){return Z.s(G%12||12,de,"0")},Ee=pe||function(de,we,Ae){var Ve=de<12?"AM":"PM";return Ae?Ve.toLowerCase():Ve};return Q.replace(C,function(de,we){return we||function(Ae){switch(Ae){case"YY":return String(q.$y).slice(-2);case"YYYY":return Z.s(q.$y,4,"0");case"M":return se+1;case"MM":return Z.s(se+1,2,"0");case"MMM":return fe(z.monthsShort,se,oe,3);case"MMMM":return fe(oe,se);case"D":return q.$D;case"DD":return Z.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return fe(z.weekdaysMin,q.$W,ae,2);case"ddd":return fe(z.weekdaysShort,q.$W,ae,3);case"dddd":return ae[q.$W];case"H":return String(G);case"HH":return Z.s(G,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return Ee(G,te,!0);case"A":return Ee(G,te,!1);case"m":return String(te);case"mm":return Z.s(te,2,"0");case"s":return String(q.$s);case"ss":return Z.s(q.$s,2,"0");case"SSS":return Z.s(q.$ms,3,"0");case"Z":return j}return null}(de)||j.replace(":","")})},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(M,q,z){var Q,j=this,G=Z.p(q),te=K(M),se=(te.utcOffset()-this.utcOffset())*i,ae=this-te,oe=function(){return Z.m(j,te)};switch(G){case E:Q=oe()/12;break;case b:Q=oe();break;case x:Q=oe()/3;break;case g:Q=(ae-se)/6048e5;break;case p:Q=(ae-se)/864e5;break;case h:Q=ae/o;break;case d:Q=ae/i;break;case f:Q=ae/a;break;default:Q=ae}return z?Q:Z.a(Q)},U.daysInMonth=function(){return this.endOf(b).$D},U.$locale=function(){return k[this.$L]},U.locale=function(M,q){if(!M)return this.$L;var z=this.clone(),Q=H(M,q,!0);return Q&&(z.$L=Q),z},U.clone=function(){return Z.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},$}(),ce=ne.prototype;return K.prototype=ce,[["$ms",c],["$s",f],["$m",d],["$H",h],["$W",p],["$M",b],["$y",E],["$D",R]].forEach(function($){ce[$[1]]=function(U){return this.$g(U,$[0],$[1])}}),K.extend=function($,U){return $.$i||($(U,ne,K),$.$i=!0),K},K.locale=H,K.isDayjs=Y,K.unix=function($){return K(1e3*$)},K.en=k[_],K.Ls=k,K.p={},K})}(_c)),_c.exports}var PA=zA();const ew=cs(PA);var Lc={exports:{}},kA=Lc.exports,Ib;function UA(){return Ib||(Ib=1,function(t,r){(function(a,i){t.exports=i()})(kA,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(i,o,c){var f=o.prototype,d=f.format;c.en.formats=a,f.format=function(h){h===void 0&&(h="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,g=function(b,x){return b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,R,S){var w=S&&S.toUpperCase();return R||x[S]||a[S]||x[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,A,N){return A||N.slice(1)})})}(h,p===void 0?{}:p);return d.call(this,g)}}})}(Lc)),Lc.exports}var $A=UA();const HA=cs($A),Km="-",qA=t=>{const r=IA(t),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:f=>{const d=f.split(Km);return d[0]===""&&d.length!==1&&d.shift(),tw(d,r)||BA(f)},getConflictingClassGroupIds:(f,d)=>{const h=a[f]||[];return d&&i[f]?[...h,...i[f]]:h}}},tw=(t,r)=>{var f;if(t.length===0)return r.classGroupId;const a=t[0],i=r.nextPart.get(a),o=i?tw(t.slice(1),i):void 0;if(o)return o;if(r.validators.length===0)return;const c=t.join(Km);return(f=r.validators.find(({validator:d})=>d(c)))==null?void 0:f.classGroupId},Vb=/^\[(.+)\]$/,BA=t=>{if(Vb.test(t)){const r=Vb.exec(t)[1],a=r==null?void 0:r.substring(0,r.indexOf(":"));if(a)return"arbitrary.."+a}},IA=t=>{const{theme:r,prefix:a}=t,i={nextPart:new Map,validators:[]};return YA(Object.entries(t.classGroups),a).forEach(([c,f])=>{um(f,i,c,r)}),i},um=(t,r,a,i)=>{t.forEach(o=>{if(typeof o=="string"){const c=o===""?r:Yb(r,o);c.classGroupId=a;return}if(typeof o=="function"){if(VA(o)){um(o(i),r,a,i);return}r.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([c,f])=>{um(f,Yb(r,c),a,i)})})},Yb=(t,r)=>{let a=t;return r.split(Km).forEach(i=>{a.nextPart.has(i)||a.nextPart.set(i,{nextPart:new Map,validators:[]}),a=a.nextPart.get(i)}),a},VA=t=>t.isThemeGetter,YA=(t,r)=>r?t.map(([a,i])=>{const o=i.map(c=>typeof c=="string"?r+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([f,d])=>[r+f,d])):c);return[a,o]}):t,GA=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,a=new Map,i=new Map;const o=(c,f)=>{a.set(c,f),r++,r>t&&(r=0,i=a,a=new Map)};return{get(c){let f=a.get(c);if(f!==void 0)return f;if((f=i.get(c))!==void 0)return o(c,f),f},set(c,f){a.has(c)?a.set(c,f):o(c,f)}}},nw="!",FA=t=>{const{separator:r,experimentalParseClassName:a}=t,i=r.length===1,o=r[0],c=r.length,f=d=>{const h=[];let p=0,g=0,b;for(let w=0;w<d.length;w++){let C=d[w];if(p===0){if(C===o&&(i||d.slice(w,w+c)===r)){h.push(d.slice(g,w)),g=w+c;continue}if(C==="/"){b=w;continue}}C==="["?p++:C==="]"&&p--}const x=h.length===0?d:d.substring(g),E=x.startsWith(nw),R=E?x.substring(1):x,S=b&&b>g?b-g:void 0;return{modifiers:h,hasImportantModifier:E,baseClassName:R,maybePostfixModifierPosition:S}};return a?d=>a({className:d,parseClassName:f}):f},QA=t=>{if(t.length<=1)return t;const r=[];let a=[];return t.forEach(i=>{i[0]==="["?(r.push(...a.sort(),i),a=[]):a.push(i)}),r.push(...a.sort()),r},XA=t=>({cache:GA(t.cacheSize),parseClassName:FA(t),...qA(t)}),WA=/\s+/,KA=(t,r)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:o}=r,c=[],f=t.trim().split(WA);let d="";for(let h=f.length-1;h>=0;h-=1){const p=f[h],{modifiers:g,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:E}=a(p);let R=!!E,S=i(R?x.substring(0,E):x);if(!S){if(!R){d=p+(d.length>0?" "+d:d);continue}if(S=i(x),!S){d=p+(d.length>0?" "+d:d);continue}R=!1}const w=QA(g).join(":"),C=b?w+nw:w,A=C+S;if(c.includes(A))continue;c.push(A);const N=o(S,R);for(let L=0;L<N.length;++L){const _=N[L];c.push(C+_)}d=p+(d.length>0?" "+d:d)}return d};function ZA(){let t=0,r,a,i="";for(;t<arguments.length;)(r=arguments[t++])&&(a=rw(r))&&(i&&(i+=" "),i+=a);return i}const rw=t=>{if(typeof t=="string")return t;let r,a="";for(let i=0;i<t.length;i++)t[i]&&(r=rw(t[i]))&&(a&&(a+=" "),a+=r);return a};function JA(t,...r){let a,i,o,c=f;function f(h){const p=r.reduce((g,b)=>b(g),t());return a=XA(p),i=a.cache.get,o=a.cache.set,c=d,d(h)}function d(h){const p=i(h);if(p)return p;const g=KA(h,a);return o(h,g),g}return function(){return c(ZA.apply(null,arguments))}}const Qe=t=>{const r=a=>a[t]||[];return r.isThemeGetter=!0,r},aw=/^\[(?:([a-z-]+):)?(.+)\]$/i,eN=/^\d+\/\d+$/,tN=new Set(["px","full","screen"]),nN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rN=/\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$/,aN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,sN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fr=t=>ti(t)||tN.has(t)||eN.test(t),Wr=t=>Si(t,"length",mN),ti=t=>!!t&&!Number.isNaN(Number(t)),Zd=t=>Si(t,"number",ti),Ml=t=>!!t&&Number.isInteger(Number(t)),lN=t=>t.endsWith("%")&&ti(t.slice(0,-1)),Ce=t=>aw.test(t),Kr=t=>nN.test(t),oN=new Set(["length","size","percentage"]),cN=t=>Si(t,oN,sw),uN=t=>Si(t,"position",sw),fN=new Set(["image","url"]),dN=t=>Si(t,fN,vN),hN=t=>Si(t,"",pN),Dl=()=>!0,Si=(t,r,a)=>{const i=aw.exec(t);return i?i[1]?typeof r=="string"?i[1]===r:r.has(i[1]):a(i[2]):!1},mN=t=>rN.test(t)&&!aN.test(t),sw=()=>!1,pN=t=>sN.test(t),vN=t=>iN.test(t),gN=()=>{const t=Qe("colors"),r=Qe("spacing"),a=Qe("blur"),i=Qe("brightness"),o=Qe("borderColor"),c=Qe("borderRadius"),f=Qe("borderSpacing"),d=Qe("borderWidth"),h=Qe("contrast"),p=Qe("grayscale"),g=Qe("hueRotate"),b=Qe("invert"),x=Qe("gap"),E=Qe("gradientColorStops"),R=Qe("gradientColorStopPositions"),S=Qe("inset"),w=Qe("margin"),C=Qe("opacity"),A=Qe("padding"),N=Qe("saturate"),L=Qe("scale"),_=Qe("sepia"),k=Qe("skew"),I=Qe("space"),Y=Qe("translate"),H=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",Ce,r],ne=()=>[Ce,r],ce=()=>["",fr,Wr],$=()=>["auto",ti,Ce],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",Ce],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[ti,Ce];return{cacheSize:500,separator:":",theme:{colors:[Dl],spacing:[fr,Wr],blur:["none","",Kr,Ce],brightness:G(),borderColor:[t],borderRadius:["none","","full",Kr,Ce],borderSpacing:ne(),borderWidth:ce(),contrast:G(),grayscale:Q(),hueRotate:G(),invert:Q(),gap:ne(),gradientColorStops:[t],gradientColorStopPositions:[lN,Wr],inset:Z(),margin:Z(),opacity:G(),padding:ne(),saturate:G(),scale:G(),sepia:Q(),skew:G(),space:ne(),translate:ne()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[Kr]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),Ce]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ml,Ce]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",Ml,Ce]}],"grid-cols":[{"grid-cols":[Dl]}],"col-start-end":[{col:["auto",{span:["full",Ml,Ce]},Ce]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Dl]}],"row-start-end":[{row:["auto",{span:[Ml,Ce]},Ce]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,r]}],"min-w":[{"min-w":[Ce,r,"min","max","fit"]}],"max-w":[{"max-w":[Ce,r,"none","full","min","max","fit","prose",{screen:[Kr]},Kr]}],h:[{h:[Ce,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Kr,Wr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zd]}],"font-family":[{font:[Dl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",ti,Zd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fr,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fr,Wr]}],"underline-offset":[{"underline-offset":["auto",fr,Ce]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ne()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),uN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dN]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[E]}],"gradient-via":[{via:[E]}],"gradient-to":[{to:[E]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:M()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[fr,Ce]}],"outline-w":[{outline:[fr,Wr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[fr,Wr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Kr,hN]}],"shadow-color":[{shadow:[Dl]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[i]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Kr,Ce]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[b]}],saturate:[{saturate:[N]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[Ml,Ce]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ne()}],"scroll-mx":[{"scroll-mx":ne()}],"scroll-my":[{"scroll-my":ne()}],"scroll-ms":[{"scroll-ms":ne()}],"scroll-me":[{"scroll-me":ne()}],"scroll-mt":[{"scroll-mt":ne()}],"scroll-mr":[{"scroll-mr":ne()}],"scroll-mb":[{"scroll-mb":ne()}],"scroll-ml":[{"scroll-ml":ne()}],"scroll-p":[{"scroll-p":ne()}],"scroll-px":[{"scroll-px":ne()}],"scroll-py":[{"scroll-py":ne()}],"scroll-ps":[{"scroll-ps":ne()}],"scroll-pe":[{"scroll-pe":ne()}],"scroll-pt":[{"scroll-pt":ne()}],"scroll-pr":[{"scroll-pr":ne()}],"scroll-pb":[{"scroll-pb":ne()}],"scroll-pl":[{"scroll-pl":ne()}],"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",Ce]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[fr,Wr,Zd]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},yN=JA(gN);function le(...t){return yN(Jx(t))}ew.extend(HA);const bN=ew,Yc=t=>t.substring(0,2);function xN(){const t="elizaos-client-user-id",r=localStorage.getItem(t);if(r)return r;const a=crypto.randomUUID();return localStorage.setItem(t,a),a}const wN=pa("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"size-[30px] rounded-md"}},defaultVariants:{variant:"default",size:"default"}}),Ie=y.forwardRef(({className:t,variant:r,size:a,asChild:i=!1,...o},c)=>{const f=i?sn:"button";return v.jsx(f,{type:"button",className:le(wN({variant:r,size:a,className:t})),ref:c,...o})});Ie.displayName="Button";const gr=y.forwardRef(({className:t,type:r,...a},i)=>v.jsx("input",{type:r,className:le("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:i,...a}));gr.displayName="Input";var Ei=Xx();const SN=cs(Ei);var EN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Se=EN.reduce((t,r)=>{const a=y.forwardRef((i,o)=>{const{asChild:c,...f}=i,d=c?sn:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(d,{...f,ref:o})});return a.displayName=`Primitive.${r}`,{...t,[r]:a}},{});function iw(t,r){t&&Ei.flushSync(()=>t.dispatchEvent(r))}var RN="Separator",Gb="horizontal",TN=["horizontal","vertical"],lw=y.forwardRef((t,r)=>{const{decorative:a,orientation:i=Gb,...o}=t,c=CN(i)?i:Gb,d=a?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return v.jsx(Se.div,{"data-orientation":c,...d,...o,ref:r})});lw.displayName=RN;function CN(t){return TN.includes(t)}var ow=lw;const cw=y.forwardRef(({className:t,orientation:r="horizontal",decorative:a=!0,...i},o)=>v.jsx(ow,{ref:o,decorative:a,orientation:r,className:le("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...i}));cw.displayName=ow.displayName;function ge(t,r,{checkForDefaultPrevented:a=!0}={}){return function(o){if(t==null||t(o),a===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}function AN(t,r){const a=y.createContext(r),i=c=>{const{children:f,...d}=c,h=y.useMemo(()=>d,Object.values(d));return v.jsx(a.Provider,{value:h,children:f})};i.displayName=t+"Provider";function o(c){const f=y.useContext(a);if(f)return f;if(r!==void 0)return r;throw new Error(`\`${c}\` must be used within \`${t}\``)}return[i,o]}function Hn(t,r=[]){let a=[];function i(c,f){const d=y.createContext(f),h=a.length;a=[...a,f];const p=b=>{var C;const{scope:x,children:E,...R}=b,S=((C=x==null?void 0:x[t])==null?void 0:C[h])||d,w=y.useMemo(()=>R,Object.values(R));return v.jsx(S.Provider,{value:w,children:E})};p.displayName=c+"Provider";function g(b,x){var S;const E=((S=x==null?void 0:x[t])==null?void 0:S[h])||d,R=y.useContext(E);if(R)return R;if(f!==void 0)return f;throw new Error(`\`${b}\` must be used within \`${c}\``)}return[p,g]}const o=()=>{const c=a.map(f=>y.createContext(f));return function(d){const h=(d==null?void 0:d[t])||c;return y.useMemo(()=>({[`__scope${t}`]:{...d,[t]:h}}),[d,h])}};return o.scopeName=t,[i,NN(o,...r)]}function NN(...t){const r=t[0];if(t.length===1)return r;const a=()=>{const i=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const f=i.reduce((d,{useScope:h,scopeName:p})=>{const b=h(c)[`__scope${p}`];return{...d,...b}},{});return y.useMemo(()=>({[`__scope${r.scopeName}`]:f}),[f])}};return a.scopeName=r.scopeName,a}var ft=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},ON=RA.useId||(()=>{}),jN=0;function yr(t){const[r,a]=y.useState(ON());return ft(()=>{a(i=>i??String(jN++))},[t]),r?`radix-${r}`:""}function nt(t){const r=y.useRef(t);return y.useEffect(()=>{r.current=t}),y.useMemo(()=>(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)},[])}function rs({prop:t,defaultProp:r,onChange:a=()=>{}}){const[i,o]=MN({defaultProp:r,onChange:a}),c=t!==void 0,f=c?t:i,d=nt(a),h=y.useCallback(p=>{if(c){const b=typeof p=="function"?p(t):p;b!==t&&d(b)}else o(p)},[c,t,o,d]);return[f,h]}function MN({defaultProp:t,onChange:r}){const a=y.useState(t),[i]=a,o=y.useRef(i),c=nt(r);return y.useEffect(()=>{o.current!==i&&(c(i),o.current=i)},[i,o,c]),a}function DN(t,r=globalThis==null?void 0:globalThis.document){const a=nt(t);y.useEffect(()=>{const i=o=>{o.key==="Escape"&&a(o)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[a,r])}var _N="DismissableLayer",fm="dismissableLayer.update",LN="dismissableLayer.pointerDownOutside",zN="dismissableLayer.focusOutside",Fb,uw=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zl=y.forwardRef((t,r)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...h}=t,p=y.useContext(uw),[g,b]=y.useState(null),x=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=y.useState({}),R=ke(r,I=>b(I)),S=Array.from(p.layers),[w]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(w),A=g?S.indexOf(g):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,L=A>=C,_=kN(I=>{const Y=I.target,H=[...p.branches].some(K=>K.contains(Y));!L||H||(o==null||o(I),f==null||f(I),I.defaultPrevented||d==null||d())},x),k=UN(I=>{const Y=I.target;[...p.branches].some(K=>K.contains(Y))||(c==null||c(I),f==null||f(I),I.defaultPrevented||d==null||d())},x);return DN(I=>{A===p.layers.size-1&&(i==null||i(I),!I.defaultPrevented&&d&&(I.preventDefault(),d()))},x),y.useEffect(()=>{if(g)return a&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Fb=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),Qb(),()=>{a&&p.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Fb)}},[g,x,a,p]),y.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),Qb())},[g,p]),y.useEffect(()=>{const I=()=>E({});return document.addEventListener(fm,I),()=>document.removeEventListener(fm,I)},[]),v.jsx(Se.div,{...h,ref:R,style:{pointerEvents:N?L?"auto":"none":void 0,...t.style},onFocusCapture:ge(t.onFocusCapture,k.onFocusCapture),onBlurCapture:ge(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ge(t.onPointerDownCapture,_.onPointerDownCapture)})});Zl.displayName=_N;var PN="DismissableLayerBranch",fw=y.forwardRef((t,r)=>{const a=y.useContext(uw),i=y.useRef(null),o=ke(r,i);return y.useEffect(()=>{const c=i.current;if(c)return a.branches.add(c),()=>{a.branches.delete(c)}},[a.branches]),v.jsx(Se.div,{...t,ref:o})});fw.displayName=PN;function kN(t,r=globalThis==null?void 0:globalThis.document){const a=nt(t),i=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const c=d=>{if(d.target&&!i.current){let h=function(){dw(LN,a,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(r.removeEventListener("click",o.current),o.current=h,r.addEventListener("click",o.current,{once:!0})):h()}else r.removeEventListener("click",o.current);i.current=!1},f=window.setTimeout(()=>{r.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),r.removeEventListener("pointerdown",c),r.removeEventListener("click",o.current)}},[r,a]),{onPointerDownCapture:()=>i.current=!0}}function UN(t,r=globalThis==null?void 0:globalThis.document){const a=nt(t),i=y.useRef(!1);return y.useEffect(()=>{const o=c=>{c.target&&!i.current&&dw(zN,a,{originalEvent:c},{discrete:!1})};return r.addEventListener("focusin",o),()=>r.removeEventListener("focusin",o)},[r,a]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Qb(){const t=new CustomEvent(fm);document.dispatchEvent(t)}function dw(t,r,a,{discrete:i}){const o=a.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:a});r&&o.addEventListener(t,r,{once:!0}),i?iw(o,c):o.dispatchEvent(c)}var $N=Zl,HN=fw,Jd="focusScope.autoFocusOnMount",eh="focusScope.autoFocusOnUnmount",Xb={bubbles:!1,cancelable:!0},qN="FocusScope",Zm=y.forwardRef((t,r)=>{const{loop:a=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...f}=t,[d,h]=y.useState(null),p=nt(o),g=nt(c),b=y.useRef(null),x=ke(r,S=>h(S)),E=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let S=function(N){if(E.paused||!d)return;const L=N.target;d.contains(L)?b.current=L:Jr(b.current,{select:!0})},w=function(N){if(E.paused||!d)return;const L=N.relatedTarget;L!==null&&(d.contains(L)||Jr(b.current,{select:!0}))},C=function(N){if(document.activeElement===document.body)for(const _ of N)_.removedNodes.length>0&&Jr(d)};document.addEventListener("focusin",S),document.addEventListener("focusout",w);const A=new MutationObserver(C);return d&&A.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",w),A.disconnect()}}},[i,d,E.paused]),y.useEffect(()=>{if(d){Kb.add(E);const S=document.activeElement;if(!d.contains(S)){const C=new CustomEvent(Jd,Xb);d.addEventListener(Jd,p),d.dispatchEvent(C),C.defaultPrevented||(BN(FN(hw(d)),{select:!0}),document.activeElement===S&&Jr(d))}return()=>{d.removeEventListener(Jd,p),setTimeout(()=>{const C=new CustomEvent(eh,Xb);d.addEventListener(eh,g),d.dispatchEvent(C),C.defaultPrevented||Jr(S??document.body,{select:!0}),d.removeEventListener(eh,g),Kb.remove(E)},0)}}},[d,p,g,E]);const R=y.useCallback(S=>{if(!a&&!i||E.paused)return;const w=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,C=document.activeElement;if(w&&C){const A=S.currentTarget,[N,L]=IN(A);N&&L?!S.shiftKey&&C===L?(S.preventDefault(),a&&Jr(N,{select:!0})):S.shiftKey&&C===N&&(S.preventDefault(),a&&Jr(L,{select:!0})):C===A&&S.preventDefault()}},[a,i,E.paused]);return v.jsx(Se.div,{tabIndex:-1,...f,ref:x,onKeyDown:R})});Zm.displayName=qN;function BN(t,{select:r=!1}={}){const a=document.activeElement;for(const i of t)if(Jr(i,{select:r}),document.activeElement!==a)return}function IN(t){const r=hw(t),a=Wb(r,t),i=Wb(r.reverse(),t);return[a,i]}function hw(t){const r=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)r.push(a.currentNode);return r}function Wb(t,r){for(const a of t)if(!VN(a,{upTo:r}))return a}function VN(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function YN(t){return t instanceof HTMLInputElement&&"select"in t}function Jr(t,{select:r=!1}={}){if(t&&t.focus){const a=document.activeElement;t.focus({preventScroll:!0}),t!==a&&YN(t)&&r&&t.select()}}var Kb=GN();function GN(){let t=[];return{add(r){const a=t[0];r!==a&&(a==null||a.pause()),t=Zb(t,r),t.unshift(r)},remove(r){var a;t=Zb(t,r),(a=t[0])==null||a.resume()}}}function Zb(t,r){const a=[...t],i=a.indexOf(r);return i!==-1&&a.splice(i,1),a}function FN(t){return t.filter(r=>r.tagName!=="A")}var QN="Portal",Jl=y.forwardRef((t,r)=>{var d;const{container:a,...i}=t,[o,c]=y.useState(!1);ft(()=>c(!0),[]);const f=a||o&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return f?SN.createPortal(v.jsx(Se.div,{...i,ref:r}),f):null});Jl.displayName=QN;function XN(t,r){return y.useReducer((a,i)=>r[a][i]??a,t)}var ln=t=>{const{present:r,children:a}=t,i=WN(r),o=typeof a=="function"?a({present:i.isPresent}):y.Children.only(a),c=ke(i.ref,KN(o));return typeof a=="function"||i.isPresent?y.cloneElement(o,{ref:c}):null};ln.displayName="Presence";function WN(t){const[r,a]=y.useState(),i=y.useRef({}),o=y.useRef(t),c=y.useRef("none"),f=t?"mounted":"unmounted",[d,h]=XN(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const p=Sc(i.current);c.current=d==="mounted"?p:"none"},[d]),ft(()=>{const p=i.current,g=o.current;if(g!==t){const x=c.current,E=Sc(p);t?h("MOUNT"):E==="none"||(p==null?void 0:p.display)==="none"?h("UNMOUNT"):h(g&&x!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,h]),ft(()=>{if(r){let p;const g=r.ownerDocument.defaultView??window,b=E=>{const S=Sc(i.current).includes(E.animationName);if(E.target===r&&S&&(h("ANIMATION_END"),!o.current)){const w=r.style.animationFillMode;r.style.animationFillMode="forwards",p=g.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=w)})}},x=E=>{E.target===r&&(c.current=Sc(i.current))};return r.addEventListener("animationstart",x),r.addEventListener("animationcancel",b),r.addEventListener("animationend",b),()=>{g.clearTimeout(p),r.removeEventListener("animationstart",x),r.removeEventListener("animationcancel",b),r.removeEventListener("animationend",b)}}else h("ANIMATION_END")},[r,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:y.useCallback(p=>{p&&(i.current=getComputedStyle(p)),a(p)},[])}}function Sc(t){return(t==null?void 0:t.animationName)||"none"}function KN(t){var i,o;let r=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?t.ref:(r=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}var th=0;function mw(){y.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Jb()),document.body.insertAdjacentElement("beforeend",t[1]??Jb()),th++,()=>{th===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),th--}},[])}function Jb(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var zn=function(){return zn=Object.assign||function(r){for(var a,i=1,o=arguments.length;i<o;i++){a=arguments[i];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(r[c]=a[c])}return r},zn.apply(this,arguments)};function pw(t,r){var a={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.indexOf(i)<0&&(a[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(a[i[o]]=t[i[o]]);return a}function ZN(t,r,a){if(a||arguments.length===2)for(var i=0,o=r.length,c;i<o;i++)(c||!(i in r))&&(c||(c=Array.prototype.slice.call(r,0,i)),c[i]=r[i]);return t.concat(c||Array.prototype.slice.call(r))}var zc="right-scroll-bar-position",Pc="width-before-scroll-bar",JN="with-scroll-bars-hidden",eO="--removed-body-scroll-bar-size";function nh(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function tO(t,r){var a=y.useState(function(){return{value:t,callback:r,facade:{get current(){return a.value},set current(i){var o=a.value;o!==i&&(a.value=i,a.callback(i,o))}}}})[0];return a.callback=r,a.facade}var nO=typeof window<"u"?y.useLayoutEffect:y.useEffect,e0=new WeakMap;function rO(t,r){var a=tO(null,function(i){return t.forEach(function(o){return nh(o,i)})});return nO(function(){var i=e0.get(a);if(i){var o=new Set(i),c=new Set(t),f=a.current;o.forEach(function(d){c.has(d)||nh(d,null)}),c.forEach(function(d){o.has(d)||nh(d,f)})}e0.set(a,t)},[t]),a}function aO(t){return t}function sO(t,r){r===void 0&&(r=aO);var a=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:t},useMedium:function(c){var f=r(c,i);return a.push(f),function(){a=a.filter(function(d){return d!==f})}},assignSyncMedium:function(c){for(i=!0;a.length;){var f=a;a=[],f.forEach(c)}a={push:function(d){return c(d)},filter:function(){return a}}},assignMedium:function(c){i=!0;var f=[];if(a.length){var d=a;a=[],d.forEach(c),f=a}var h=function(){var g=f;f=[],g.forEach(c)},p=function(){return Promise.resolve().then(h)};p(),a={push:function(g){f.push(g),p()},filter:function(g){return f=f.filter(g),a}}}};return o}function iO(t){t===void 0&&(t={});var r=sO(null);return r.options=zn({async:!0,ssr:!1},t),r}var vw=function(t){var r=t.sideCar,a=pw(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return y.createElement(i,zn({},a))};vw.isSideCarExport=!0;function lO(t,r){return t.useMedium(r),vw}var gw=iO(),rh=function(){},su=y.forwardRef(function(t,r){var a=y.useRef(null),i=y.useState({onScrollCapture:rh,onWheelCapture:rh,onTouchMoveCapture:rh}),o=i[0],c=i[1],f=t.forwardProps,d=t.children,h=t.className,p=t.removeScrollBar,g=t.enabled,b=t.shards,x=t.sideCar,E=t.noIsolation,R=t.inert,S=t.allowPinchZoom,w=t.as,C=w===void 0?"div":w,A=t.gapMode,N=pw(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=x,_=rO([a,r]),k=zn(zn({},N),o);return y.createElement(y.Fragment,null,g&&y.createElement(L,{sideCar:gw,removeScrollBar:p,shards:b,noIsolation:E,inert:R,setCallbacks:c,allowPinchZoom:!!S,lockRef:a,gapMode:A}),f?y.cloneElement(y.Children.only(d),zn(zn({},k),{ref:_})):y.createElement(C,zn({},k,{className:h,ref:_}),d))});su.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};su.classNames={fullWidth:Pc,zeroRight:zc};var oO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cO(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=oO();return r&&t.setAttribute("nonce",r),t}function uO(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function fO(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var dO=function(){var t=0,r=null;return{add:function(a){t==0&&(r=cO())&&(uO(r,a),fO(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},hO=function(){var t=dO();return function(r,a){y.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&a])}},yw=function(){var t=hO(),r=function(a){var i=a.styles,o=a.dynamic;return t(i,o),null};return r},mO={left:0,top:0,right:0,gap:0},ah=function(t){return parseInt(t||"",10)||0},pO=function(t){var r=window.getComputedStyle(document.body),a=r[t==="padding"?"paddingLeft":"marginLeft"],i=r[t==="padding"?"paddingTop":"marginTop"],o=r[t==="padding"?"paddingRight":"marginRight"];return[ah(a),ah(i),ah(o)]},vO=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return mO;var r=pO(t),a=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-a+r[2]-r[0])}},gO=yw(),ni="data-scroll-locked",yO=function(t,r,a,i){var o=t.left,c=t.top,f=t.right,d=t.gap;return a===void 0&&(a="margin"),`
|
|
50
|
+
.`.concat(JN,` {
|
|
51
|
+
overflow: hidden `).concat(i,`;
|
|
52
|
+
padding-right: `).concat(d,"px ").concat(i,`;
|
|
53
|
+
}
|
|
54
|
+
body[`).concat(ni,`] {
|
|
55
|
+
overflow: hidden `).concat(i,`;
|
|
56
|
+
overscroll-behavior: contain;
|
|
57
|
+
`).concat([r&&"position: relative ".concat(i,";"),a==="margin"&&`
|
|
58
|
+
padding-left: `.concat(o,`px;
|
|
59
|
+
padding-top: `).concat(c,`px;
|
|
60
|
+
padding-right: `).concat(f,`px;
|
|
61
|
+
margin-left:0;
|
|
62
|
+
margin-top:0;
|
|
63
|
+
margin-right: `).concat(d,"px ").concat(i,`;
|
|
64
|
+
`),a==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.`).concat(zc,` {
|
|
68
|
+
right: `).concat(d,"px ").concat(i,`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.`).concat(Pc,` {
|
|
72
|
+
margin-right: `).concat(d,"px ").concat(i,`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.`).concat(zc," .").concat(zc,` {
|
|
76
|
+
right: 0 `).concat(i,`;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.`).concat(Pc," .").concat(Pc,` {
|
|
80
|
+
margin-right: 0 `).concat(i,`;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
body[`).concat(ni,`] {
|
|
84
|
+
`).concat(eO,": ").concat(d,`px;
|
|
85
|
+
}
|
|
86
|
+
`)},t0=function(){var t=parseInt(document.body.getAttribute(ni)||"0",10);return isFinite(t)?t:0},bO=function(){y.useEffect(function(){return document.body.setAttribute(ni,(t0()+1).toString()),function(){var t=t0()-1;t<=0?document.body.removeAttribute(ni):document.body.setAttribute(ni,t.toString())}},[])},xO=function(t){var r=t.noRelative,a=t.noImportant,i=t.gapMode,o=i===void 0?"margin":i;bO();var c=y.useMemo(function(){return vO(o)},[o]);return y.createElement(gO,{styles:yO(c,!r,o,a?"":"!important")})},dm=!1;if(typeof window<"u")try{var Ec=Object.defineProperty({},"passive",{get:function(){return dm=!0,!0}});window.addEventListener("test",Ec,Ec),window.removeEventListener("test",Ec,Ec)}catch{dm=!1}var Qs=dm?{passive:!1}:!1,wO=function(t){return t.tagName==="TEXTAREA"},bw=function(t,r){if(!(t instanceof Element))return!1;var a=window.getComputedStyle(t);return a[r]!=="hidden"&&!(a.overflowY===a.overflowX&&!wO(t)&&a[r]==="visible")},SO=function(t){return bw(t,"overflowY")},EO=function(t){return bw(t,"overflowX")},n0=function(t,r){var a=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=xw(t,i);if(o){var c=ww(t,i),f=c[1],d=c[2];if(f>d)return!0}i=i.parentNode}while(i&&i!==a.body);return!1},RO=function(t){var r=t.scrollTop,a=t.scrollHeight,i=t.clientHeight;return[r,a,i]},TO=function(t){var r=t.scrollLeft,a=t.scrollWidth,i=t.clientWidth;return[r,a,i]},xw=function(t,r){return t==="v"?SO(r):EO(r)},ww=function(t,r){return t==="v"?RO(r):TO(r)},CO=function(t,r){return t==="h"&&r==="rtl"?-1:1},AO=function(t,r,a,i,o){var c=CO(t,window.getComputedStyle(r).direction),f=c*i,d=a.target,h=r.contains(d),p=!1,g=f>0,b=0,x=0;do{var E=ww(t,d),R=E[0],S=E[1],w=E[2],C=S-w-c*R;(R||C)&&xw(t,d)&&(b+=C,x+=R),d instanceof ShadowRoot?d=d.host:d=d.parentNode}while(!h&&d!==document.body||h&&(r.contains(d)||r===d));return(g&&Math.abs(b)<1||!g&&Math.abs(x)<1)&&(p=!0),p},Rc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},r0=function(t){return[t.deltaX,t.deltaY]},a0=function(t){return t&&"current"in t?t.current:t},NO=function(t,r){return t[0]===r[0]&&t[1]===r[1]},OO=function(t){return`
|
|
87
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
88
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
89
|
+
`)},jO=0,Xs=[];function MO(t){var r=y.useRef([]),a=y.useRef([0,0]),i=y.useRef(),o=y.useState(jO++)[0],c=y.useState(yw)[0],f=y.useRef(t);y.useEffect(function(){f.current=t},[t]),y.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var S=ZN([t.lockRef.current],(t.shards||[]).map(a0),!0).filter(Boolean);return S.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var d=y.useCallback(function(S,w){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!f.current.allowPinchZoom;var C=Rc(S),A=a.current,N="deltaX"in S?S.deltaX:A[0]-C[0],L="deltaY"in S?S.deltaY:A[1]-C[1],_,k=S.target,I=Math.abs(N)>Math.abs(L)?"h":"v";if("touches"in S&&I==="h"&&k.type==="range")return!1;var Y=n0(I,k);if(!Y)return!0;if(Y?_=I:(_=I==="v"?"h":"v",Y=n0(I,k)),!Y)return!1;if(!i.current&&"changedTouches"in S&&(N||L)&&(i.current=_),!_)return!0;var H=i.current||_;return AO(H,w,S,H==="h"?N:L)},[]),h=y.useCallback(function(S){var w=S;if(!(!Xs.length||Xs[Xs.length-1]!==c)){var C="deltaY"in w?r0(w):Rc(w),A=r.current.filter(function(_){return _.name===w.type&&(_.target===w.target||w.target===_.shadowParent)&&NO(_.delta,C)})[0];if(A&&A.should){w.cancelable&&w.preventDefault();return}if(!A){var N=(f.current.shards||[]).map(a0).filter(Boolean).filter(function(_){return _.contains(w.target)}),L=N.length>0?d(w,N[0]):!f.current.noIsolation;L&&w.cancelable&&w.preventDefault()}}},[]),p=y.useCallback(function(S,w,C,A){var N={name:S,delta:w,target:C,should:A,shadowParent:DO(C)};r.current.push(N),setTimeout(function(){r.current=r.current.filter(function(L){return L!==N})},1)},[]),g=y.useCallback(function(S){a.current=Rc(S),i.current=void 0},[]),b=y.useCallback(function(S){p(S.type,r0(S),S.target,d(S,t.lockRef.current))},[]),x=y.useCallback(function(S){p(S.type,Rc(S),S.target,d(S,t.lockRef.current))},[]);y.useEffect(function(){return Xs.push(c),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:x}),document.addEventListener("wheel",h,Qs),document.addEventListener("touchmove",h,Qs),document.addEventListener("touchstart",g,Qs),function(){Xs=Xs.filter(function(S){return S!==c}),document.removeEventListener("wheel",h,Qs),document.removeEventListener("touchmove",h,Qs),document.removeEventListener("touchstart",g,Qs)}},[]);var E=t.removeScrollBar,R=t.inert;return y.createElement(y.Fragment,null,R?y.createElement(c,{styles:OO(o)}):null,E?y.createElement(xO,{gapMode:t.gapMode}):null)}function DO(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const _O=lO(gw,MO);var Jm=y.forwardRef(function(t,r){return y.createElement(su,zn({},t,{ref:r,sideCar:_O}))});Jm.classNames=su.classNames;var LO=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},Ws=new WeakMap,Tc=new WeakMap,Cc={},sh=0,Sw=function(t){return t&&(t.host||Sw(t.parentNode))},zO=function(t,r){return r.map(function(a){if(t.contains(a))return a;var i=Sw(a);return i&&t.contains(i)?i:(console.error("aria-hidden",a,"in not contained inside",t,". Doing nothing"),null)}).filter(function(a){return!!a})},PO=function(t,r,a,i){var o=zO(r,Array.isArray(t)?t:[t]);Cc[a]||(Cc[a]=new WeakMap);var c=Cc[a],f=[],d=new Set,h=new Set(o),p=function(b){!b||d.has(b)||(d.add(b),p(b.parentNode))};o.forEach(p);var g=function(b){!b||h.has(b)||Array.prototype.forEach.call(b.children,function(x){if(d.has(x))g(x);else try{var E=x.getAttribute(i),R=E!==null&&E!=="false",S=(Ws.get(x)||0)+1,w=(c.get(x)||0)+1;Ws.set(x,S),c.set(x,w),f.push(x),S===1&&R&&Tc.set(x,!0),w===1&&x.setAttribute(a,"true"),R||x.setAttribute(i,"true")}catch(C){console.error("aria-hidden: cannot operate on ",x,C)}})};return g(r),d.clear(),sh++,function(){f.forEach(function(b){var x=Ws.get(b)-1,E=c.get(b)-1;Ws.set(b,x),c.set(b,E),x||(Tc.has(b)||b.removeAttribute(i),Tc.delete(b)),E||b.removeAttribute(a)}),sh--,sh||(Ws=new WeakMap,Ws=new WeakMap,Tc=new WeakMap,Cc={})}},Ew=function(t,r,a){a===void 0&&(a="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),o=LO(t);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),PO(i,o,a,"aria-hidden")):function(){return null}},ep="Dialog",[Rw,jz]=Hn(ep),[kO,xn]=Rw(ep),Tw=t=>{const{__scopeDialog:r,children:a,open:i,defaultOpen:o,onOpenChange:c,modal:f=!0}=t,d=y.useRef(null),h=y.useRef(null),[p=!1,g]=rs({prop:i,defaultProp:o,onChange:c});return v.jsx(kO,{scope:r,triggerRef:d,contentRef:h,contentId:yr(),titleId:yr(),descriptionId:yr(),open:p,onOpenChange:g,onOpenToggle:y.useCallback(()=>g(b=>!b),[g]),modal:f,children:a})};Tw.displayName=ep;var Cw="DialogTrigger",Aw=y.forwardRef((t,r)=>{const{__scopeDialog:a,...i}=t,o=xn(Cw,a),c=ke(r,o.triggerRef);return v.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":rp(o.open),...i,ref:c,onClick:ge(t.onClick,o.onOpenToggle)})});Aw.displayName=Cw;var tp="DialogPortal",[UO,Nw]=Rw(tp,{forceMount:void 0}),Ow=t=>{const{__scopeDialog:r,forceMount:a,children:i,container:o}=t,c=xn(tp,r);return v.jsx(UO,{scope:r,forceMount:a,children:y.Children.map(i,f=>v.jsx(ln,{present:a||c.open,children:v.jsx(Jl,{asChild:!0,container:o,children:f})}))})};Ow.displayName=tp;var Gc="DialogOverlay",jw=y.forwardRef((t,r)=>{const a=Nw(Gc,t.__scopeDialog),{forceMount:i=a.forceMount,...o}=t,c=xn(Gc,t.__scopeDialog);return c.modal?v.jsx(ln,{present:i||c.open,children:v.jsx($O,{...o,ref:r})}):null});jw.displayName=Gc;var $O=y.forwardRef((t,r)=>{const{__scopeDialog:a,...i}=t,o=xn(Gc,a);return v.jsx(Jm,{as:sn,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(Se.div,{"data-state":rp(o.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),as="DialogContent",Mw=y.forwardRef((t,r)=>{const a=Nw(as,t.__scopeDialog),{forceMount:i=a.forceMount,...o}=t,c=xn(as,t.__scopeDialog);return v.jsx(ln,{present:i||c.open,children:c.modal?v.jsx(HO,{...o,ref:r}):v.jsx(qO,{...o,ref:r})})});Mw.displayName=as;var HO=y.forwardRef((t,r)=>{const a=xn(as,t.__scopeDialog),i=y.useRef(null),o=ke(r,a.contentRef,i);return y.useEffect(()=>{const c=i.current;if(c)return Ew(c)},[]),v.jsx(Dw,{...t,ref:o,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(t.onCloseAutoFocus,c=>{var f;c.preventDefault(),(f=a.triggerRef.current)==null||f.focus()}),onPointerDownOutside:ge(t.onPointerDownOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0;(f.button===2||d)&&c.preventDefault()}),onFocusOutside:ge(t.onFocusOutside,c=>c.preventDefault())})}),qO=y.forwardRef((t,r)=>{const a=xn(as,t.__scopeDialog),i=y.useRef(!1),o=y.useRef(!1);return v.jsx(Dw,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,d;(f=t.onCloseAutoFocus)==null||f.call(t,c),c.defaultPrevented||(i.current||(d=a.triggerRef.current)==null||d.focus(),c.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:c=>{var h,p;(h=t.onInteractOutside)==null||h.call(t,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const f=c.target;((p=a.triggerRef.current)==null?void 0:p.contains(f))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),Dw=y.forwardRef((t,r)=>{const{__scopeDialog:a,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:c,...f}=t,d=xn(as,a),h=y.useRef(null),p=ke(r,h);return mw(),v.jsxs(v.Fragment,{children:[v.jsx(Zm,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:c,children:v.jsx(Zl,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":rp(d.open),...f,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(BO,{titleId:d.titleId}),v.jsx(VO,{contentRef:h,descriptionId:d.descriptionId})]})]})}),np="DialogTitle",_w=y.forwardRef((t,r)=>{const{__scopeDialog:a,...i}=t,o=xn(np,a);return v.jsx(Se.h2,{id:o.titleId,...i,ref:r})});_w.displayName=np;var Lw="DialogDescription",zw=y.forwardRef((t,r)=>{const{__scopeDialog:a,...i}=t,o=xn(Lw,a);return v.jsx(Se.p,{id:o.descriptionId,...i,ref:r})});zw.displayName=Lw;var Pw="DialogClose",kw=y.forwardRef((t,r)=>{const{__scopeDialog:a,...i}=t,o=xn(Pw,a);return v.jsx(Se.button,{type:"button",...i,ref:r,onClick:ge(t.onClick,()=>o.onOpenChange(!1))})});kw.displayName=Pw;function rp(t){return t?"open":"closed"}var Uw="DialogTitleWarning",[Mz,$w]=AN(Uw,{contentName:as,titleName:np,docsSlug:"dialog"}),BO=({titleId:t})=>{const r=$w(Uw),a=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
90
|
+
|
|
91
|
+
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
92
|
+
|
|
93
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return y.useEffect(()=>{t&&(document.getElementById(t)||console.error(a))},[a,t]),null},IO="DialogDescriptionWarning",VO=({contentRef:t,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$w(IO).contentName}}.`;return y.useEffect(()=>{var c;const o=(c=t.current)==null?void 0:c.getAttribute("aria-describedby");r&&o&&(document.getElementById(r)||console.warn(i))},[i,t,r]),null},Hw=Tw,YO=Aw,qw=Ow,iu=jw,lu=Mw,ou=_w,cu=zw,Bw=kw;/**
|
|
94
|
+
* @license lucide-react v0.469.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const GO=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Iw=(...t)=>t.filter((r,a,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===a).join(" ").trim();/**
|
|
99
|
+
* @license lucide-react v0.469.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/var FO={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"};/**
|
|
104
|
+
* @license lucide-react v0.469.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const QO=y.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:f,...d},h)=>y.createElement("svg",{ref:h,...FO,width:r,height:r,stroke:t,strokeWidth:i?Number(a)*24/Number(r):a,className:Iw("lucide",o),...d},[...f.map(([p,g])=>y.createElement(p,g)),...Array.isArray(c)?c:[c]]));/**
|
|
109
|
+
* @license lucide-react v0.469.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const He=(t,r)=>{const a=y.forwardRef(({className:i,...o},c)=>y.createElement(QO,{ref:c,iconNode:r,className:Iw(`lucide-${GO(t)}`,i),...o}));return a.displayName=`${t}`,a};/**
|
|
114
|
+
* @license lucide-react v0.469.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const XO=He("Activity",[["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"}]]);/**
|
|
119
|
+
* @license lucide-react v0.469.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const WO=He("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
124
|
+
* @license lucide-react v0.469.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const KO=He("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/**
|
|
129
|
+
* @license lucide-react v0.469.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const ap=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
134
|
+
* @license lucide-react v0.469.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const Vw=He("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
139
|
+
* @license lucide-react v0.469.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const ZO=He("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
144
|
+
* @license lucide-react v0.469.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const JO=He("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
149
|
+
* @license lucide-react v0.469.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const sp=He("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
|
|
154
|
+
* @license lucide-react v0.469.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const e2=He("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
159
|
+
* @license lucide-react v0.469.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const t2=He("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
|
164
|
+
* @license lucide-react v0.469.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const ip=He("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
169
|
+
* @license lucide-react v0.469.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const n2=He("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
174
|
+
* @license lucide-react v0.469.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const r2=He("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
179
|
+
* @license lucide-react v0.469.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const a2=He("Image",[["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"}]]);/**
|
|
184
|
+
* @license lucide-react v0.469.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const s0=He("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
189
|
+
* @license lucide-react v0.469.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const s2=He("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
194
|
+
* @license lucide-react v0.469.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const i2=He("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
|
|
199
|
+
* @license lucide-react v0.469.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const l2=He("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
204
|
+
* @license lucide-react v0.469.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const o2=He("Paperclip",[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]]);/**
|
|
209
|
+
* @license lucide-react v0.469.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const c2=He("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
214
|
+
* @license lucide-react v0.469.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const u2=He("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
219
|
+
* @license lucide-react v0.469.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const f2=He("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
224
|
+
* @license lucide-react v0.469.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const d2=He("Scroll",[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
|
|
229
|
+
* @license lucide-react v0.469.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const Yw=He("Send",[["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"}]]);/**
|
|
234
|
+
* @license lucide-react v0.469.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const h2=He("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
239
|
+
* @license lucide-react v0.469.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const m2=He("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
|
|
244
|
+
* @license lucide-react v0.469.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const p2=He("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
249
|
+
* @license lucide-react v0.469.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const v2=He("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
|
|
254
|
+
* @license lucide-react v0.469.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const us=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),g2=Hw,y2=qw,Gw=y.forwardRef(({className:t,...r},a)=>v.jsx(iu,{className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:a}));Gw.displayName=iu.displayName;const b2=pa("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Fw=y.forwardRef(({side:t="right",className:r,children:a,...i},o)=>v.jsxs(y2,{children:[v.jsx(Gw,{}),v.jsxs(lu,{ref:o,className:le(b2({side:t}),r),...i,children:[v.jsxs(Bw,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[v.jsx(us,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));Fw.displayName=lu.displayName;const x2=y.forwardRef(({className:t,...r},a)=>v.jsx(ou,{ref:a,className:le("text-lg font-semibold text-foreground",t),...r}));x2.displayName=ou.displayName;const w2=y.forwardRef(({className:t,...r},a)=>v.jsx(cu,{ref:a,className:le("text-sm text-muted-foreground",t),...r}));w2.displayName=cu.displayName;function i0({className:t,...r}){return v.jsx("div",{className:le("animate-pulse rounded-md bg-primary/10",t),...r})}const S2=["top","right","bottom","left"],fa=Math.min,Bt=Math.max,Fc=Math.round,Ac=Math.floor,Pn=t=>({x:t,y:t}),E2={left:"right",right:"left",bottom:"top",top:"bottom"},R2={start:"end",end:"start"};function hm(t,r,a){return Bt(t,fa(r,a))}function Er(t,r){return typeof t=="function"?t(r):t}function Rr(t){return t.split("-")[0]}function Ri(t){return t.split("-")[1]}function lp(t){return t==="x"?"y":"x"}function op(t){return t==="y"?"height":"width"}function da(t){return["top","bottom"].includes(Rr(t))?"y":"x"}function cp(t){return lp(da(t))}function T2(t,r,a){a===void 0&&(a=!1);const i=Ri(t),o=cp(t),c=op(o);let f=o==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[c]>r.floating[c]&&(f=Qc(f)),[f,Qc(f)]}function C2(t){const r=Qc(t);return[mm(t),r,mm(r)]}function mm(t){return t.replace(/start|end/g,r=>R2[r])}function A2(t,r,a){const i=["left","right"],o=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return a?r?o:i:r?i:o;case"left":case"right":return r?c:f;default:return[]}}function N2(t,r,a,i){const o=Ri(t);let c=A2(Rr(t),a==="start",i);return o&&(c=c.map(f=>f+"-"+o),r&&(c=c.concat(c.map(mm)))),c}function Qc(t){return t.replace(/left|right|bottom|top/g,r=>E2[r])}function O2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Qw(t){return typeof t!="number"?O2(t):{top:t,right:t,bottom:t,left:t}}function Xc(t){const{x:r,y:a,width:i,height:o}=t;return{width:i,height:o,top:a,left:r,right:r+i,bottom:a+o,x:r,y:a}}function l0(t,r,a){let{reference:i,floating:o}=t;const c=da(r),f=cp(r),d=op(f),h=Rr(r),p=c==="y",g=i.x+i.width/2-o.width/2,b=i.y+i.height/2-o.height/2,x=i[d]/2-o[d]/2;let E;switch(h){case"top":E={x:g,y:i.y-o.height};break;case"bottom":E={x:g,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:b};break;case"left":E={x:i.x-o.width,y:b};break;default:E={x:i.x,y:i.y}}switch(Ri(r)){case"start":E[f]-=x*(a&&p?-1:1);break;case"end":E[f]+=x*(a&&p?-1:1);break}return E}const j2=async(t,r,a)=>{const{placement:i="bottom",strategy:o="absolute",middleware:c=[],platform:f}=a,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(r));let p=await f.getElementRects({reference:t,floating:r,strategy:o}),{x:g,y:b}=l0(p,i,h),x=i,E={},R=0;for(let S=0;S<d.length;S++){const{name:w,fn:C}=d[S],{x:A,y:N,data:L,reset:_}=await C({x:g,y:b,initialPlacement:i,placement:x,strategy:o,middlewareData:E,rects:p,platform:f,elements:{reference:t,floating:r}});g=A??g,b=N??b,E={...E,[w]:{...E[w],...L}},_&&R<=50&&(R++,typeof _=="object"&&(_.placement&&(x=_.placement),_.rects&&(p=_.rects===!0?await f.getElementRects({reference:t,floating:r,strategy:o}):_.rects),{x:g,y:b}=l0(p,x,h)),S=-1)}return{x:g,y:b,placement:x,strategy:o,middlewareData:E}};async function Bl(t,r){var a;r===void 0&&(r={});const{x:i,y:o,platform:c,rects:f,elements:d,strategy:h}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:x=!1,padding:E=0}=Er(r,t),R=Qw(E),w=d[x?b==="floating"?"reference":"floating":b],C=Xc(await c.getClippingRect({element:(a=await(c.isElement==null?void 0:c.isElement(w)))==null||a?w:w.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),A=b==="floating"?{x:i,y:o,width:f.floating.width,height:f.floating.height}:f.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),L=await(c.isElement==null?void 0:c.isElement(N))?await(c.getScale==null?void 0:c.getScale(N))||{x:1,y:1}:{x:1,y:1},_=Xc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:N,strategy:h}):A);return{top:(C.top-_.top+R.top)/L.y,bottom:(_.bottom-C.bottom+R.bottom)/L.y,left:(C.left-_.left+R.left)/L.x,right:(_.right-C.right+R.right)/L.x}}const M2=t=>({name:"arrow",options:t,async fn(r){const{x:a,y:i,placement:o,rects:c,platform:f,elements:d,middlewareData:h}=r,{element:p,padding:g=0}=Er(t,r)||{};if(p==null)return{};const b=Qw(g),x={x:a,y:i},E=cp(o),R=op(E),S=await f.getDimensions(p),w=E==="y",C=w?"top":"left",A=w?"bottom":"right",N=w?"clientHeight":"clientWidth",L=c.reference[R]+c.reference[E]-x[E]-c.floating[R],_=x[E]-c.reference[E],k=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let I=k?k[N]:0;(!I||!await(f.isElement==null?void 0:f.isElement(k)))&&(I=d.floating[N]||c.floating[R]);const Y=L/2-_/2,H=I/2-S[R]/2-1,K=fa(b[C],H),Z=fa(b[A],H),ne=K,ce=I-S[R]-Z,$=I/2-S[R]/2+Y,U=hm(ne,$,ce),M=!h.arrow&&Ri(o)!=null&&$!==U&&c.reference[R]/2-($<ne?K:Z)-S[R]/2<0,q=M?$<ne?$-ne:$-ce:0;return{[E]:x[E]+q,data:{[E]:U,centerOffset:$-U-q,...M&&{alignmentOffset:q}},reset:M}}}),D2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var a,i;const{placement:o,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=r,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:S=!0,...w}=Er(t,r);if((a=c.arrow)!=null&&a.alignmentOffset)return{};const C=Rr(o),A=da(d),N=Rr(d)===d,L=await(h.isRTL==null?void 0:h.isRTL(p.floating)),_=x||(N||!S?[Qc(d)]:C2(d)),k=R!=="none";!x&&k&&_.push(...N2(d,S,R,L));const I=[d,..._],Y=await Bl(r,w),H=[];let K=((i=c.flip)==null?void 0:i.overflows)||[];if(g&&H.push(Y[C]),b){const $=T2(o,f,L);H.push(Y[$[0]],Y[$[1]])}if(K=[...K,{placement:o,overflows:H}],!H.every($=>$<=0)){var Z,ne;const $=(((Z=c.flip)==null?void 0:Z.index)||0)+1,U=I[$];if(U)return{data:{index:$,overflows:K},reset:{placement:U}};let M=(ne=K.filter(q=>q.overflows[0]<=0).sort((q,z)=>q.overflows[1]-z.overflows[1])[0])==null?void 0:ne.placement;if(!M)switch(E){case"bestFit":{var ce;const q=(ce=K.filter(z=>{if(k){const Q=da(z.placement);return Q===A||Q==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(Q=>Q>0).reduce((Q,j)=>Q+j,0)]).sort((z,Q)=>z[1]-Q[1])[0])==null?void 0:ce[0];q&&(M=q);break}case"initialPlacement":M=d;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function o0(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function c0(t){return S2.some(r=>t[r]>=0)}const _2=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:a}=r,{strategy:i="referenceHidden",...o}=Er(t,r);switch(i){case"referenceHidden":{const c=await Bl(r,{...o,elementContext:"reference"}),f=o0(c,a.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:c0(f)}}}case"escaped":{const c=await Bl(r,{...o,altBoundary:!0}),f=o0(c,a.floating);return{data:{escapedOffsets:f,escaped:c0(f)}}}default:return{}}}}};async function L2(t,r){const{placement:a,platform:i,elements:o}=t,c=await(i.isRTL==null?void 0:i.isRTL(o.floating)),f=Rr(a),d=Ri(a),h=da(a)==="y",p=["left","top"].includes(f)?-1:1,g=c&&h?-1:1,b=Er(r,t);let{mainAxis:x,crossAxis:E,alignmentAxis:R}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof R=="number"&&(E=d==="end"?R*-1:R),h?{x:E*g,y:x*p}:{x:x*p,y:E*g}}const z2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var a,i;const{x:o,y:c,placement:f,middlewareData:d}=r,h=await L2(r,t);return f===((a=d.offset)==null?void 0:a.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:c+h.y,data:{...h,placement:f}}}}},P2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:a,y:i,placement:o}=r,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:w=>{let{x:C,y:A}=w;return{x:C,y:A}}},...h}=Er(t,r),p={x:a,y:i},g=await Bl(r,h),b=da(Rr(o)),x=lp(b);let E=p[x],R=p[b];if(c){const w=x==="y"?"top":"left",C=x==="y"?"bottom":"right",A=E+g[w],N=E-g[C];E=hm(A,E,N)}if(f){const w=b==="y"?"top":"left",C=b==="y"?"bottom":"right",A=R+g[w],N=R-g[C];R=hm(A,R,N)}const S=d.fn({...r,[x]:E,[b]:R});return{...S,data:{x:S.x-a,y:S.y-i,enabled:{[x]:c,[b]:f}}}}}},k2=function(t){return t===void 0&&(t={}),{options:t,fn(r){const{x:a,y:i,placement:o,rects:c,middlewareData:f}=r,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=Er(t,r),g={x:a,y:i},b=da(o),x=lp(b);let E=g[x],R=g[b];const S=Er(d,r),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const N=x==="y"?"height":"width",L=c.reference[x]-c.floating[N]+w.mainAxis,_=c.reference[x]+c.reference[N]-w.mainAxis;E<L?E=L:E>_&&(E=_)}if(p){var C,A;const N=x==="y"?"width":"height",L=["top","left"].includes(Rr(o)),_=c.reference[b]-c.floating[N]+(L&&((C=f.offset)==null?void 0:C[b])||0)+(L?0:w.crossAxis),k=c.reference[b]+c.reference[N]+(L?0:((A=f.offset)==null?void 0:A[b])||0)-(L?w.crossAxis:0);R<_?R=_:R>k&&(R=k)}return{[x]:E,[b]:R}}}},U2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var a,i;const{placement:o,rects:c,platform:f,elements:d}=r,{apply:h=()=>{},...p}=Er(t,r),g=await Bl(r,p),b=Rr(o),x=Ri(o),E=da(o)==="y",{width:R,height:S}=c.floating;let w,C;b==="top"||b==="bottom"?(w=b,C=x===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(C=b,w=x==="end"?"top":"bottom");const A=S-g.top-g.bottom,N=R-g.left-g.right,L=fa(S-g[w],A),_=fa(R-g[C],N),k=!r.middlewareData.shift;let I=L,Y=_;if((a=r.middlewareData.shift)!=null&&a.enabled.x&&(Y=N),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(I=A),k&&!x){const K=Bt(g.left,0),Z=Bt(g.right,0),ne=Bt(g.top,0),ce=Bt(g.bottom,0);E?Y=R-2*(K!==0||Z!==0?K+Z:Bt(g.left,g.right)):I=S-2*(ne!==0||ce!==0?ne+ce:Bt(g.top,g.bottom))}await h({...r,availableWidth:Y,availableHeight:I});const H=await f.getDimensions(d.floating);return R!==H.width||S!==H.height?{reset:{rects:!0}}:{}}}};function uu(){return typeof window<"u"}function Ti(t){return Xw(t)?(t.nodeName||"").toLowerCase():"#document"}function It(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function qn(t){var r;return(r=(Xw(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Xw(t){return uu()?t instanceof Node||t instanceof It(t).Node:!1}function yn(t){return uu()?t instanceof Element||t instanceof It(t).Element:!1}function Un(t){return uu()?t instanceof HTMLElement||t instanceof It(t).HTMLElement:!1}function u0(t){return!uu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof It(t).ShadowRoot}function eo(t){const{overflow:r,overflowX:a,overflowY:i,display:o}=bn(t);return/auto|scroll|overlay|hidden|clip/.test(r+i+a)&&!["inline","contents"].includes(o)}function $2(t){return["table","td","th"].includes(Ti(t))}function fu(t){return[":popover-open",":modal"].some(r=>{try{return t.matches(r)}catch{return!1}})}function up(t){const r=fp(),a=yn(t)?bn(t):t;return["transform","translate","scale","rotate","perspective"].some(i=>a[i]?a[i]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!r&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!r&&(a.filter?a.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function H2(t){let r=ha(t);for(;Un(r)&&!bi(r);){if(up(r))return r;if(fu(r))return null;r=ha(r)}return null}function fp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bi(t){return["html","body","#document"].includes(Ti(t))}function bn(t){return It(t).getComputedStyle(t)}function du(t){return yn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ha(t){if(Ti(t)==="html")return t;const r=t.assignedSlot||t.parentNode||u0(t)&&t.host||qn(t);return u0(r)?r.host:r}function Ww(t){const r=ha(t);return bi(r)?t.ownerDocument?t.ownerDocument.body:t.body:Un(r)&&eo(r)?r:Ww(r)}function Il(t,r,a){var i;r===void 0&&(r=[]),a===void 0&&(a=!0);const o=Ww(t),c=o===((i=t.ownerDocument)==null?void 0:i.body),f=It(o);if(c){const d=pm(f);return r.concat(f,f.visualViewport||[],eo(o)?o:[],d&&a?Il(d):[])}return r.concat(o,Il(o,[],a))}function pm(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kw(t){const r=bn(t);let a=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const o=Un(t),c=o?t.offsetWidth:a,f=o?t.offsetHeight:i,d=Fc(a)!==c||Fc(i)!==f;return d&&(a=c,i=f),{width:a,height:i,$:d}}function dp(t){return yn(t)?t:t.contextElement}function ri(t){const r=dp(t);if(!Un(r))return Pn(1);const a=r.getBoundingClientRect(),{width:i,height:o,$:c}=Kw(r);let f=(c?Fc(a.width):a.width)/i,d=(c?Fc(a.height):a.height)/o;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const q2=Pn(0);function Zw(t){const r=It(t);return!fp()||!r.visualViewport?q2:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function B2(t,r,a){return r===void 0&&(r=!1),!a||r&&a!==It(t)?!1:r}function ss(t,r,a,i){r===void 0&&(r=!1),a===void 0&&(a=!1);const o=t.getBoundingClientRect(),c=dp(t);let f=Pn(1);r&&(i?yn(i)&&(f=ri(i)):f=ri(t));const d=B2(c,a,i)?Zw(c):Pn(0);let h=(o.left+d.x)/f.x,p=(o.top+d.y)/f.y,g=o.width/f.x,b=o.height/f.y;if(c){const x=It(c),E=i&&yn(i)?It(i):i;let R=x,S=pm(R);for(;S&&i&&E!==R;){const w=ri(S),C=S.getBoundingClientRect(),A=bn(S),N=C.left+(S.clientLeft+parseFloat(A.paddingLeft))*w.x,L=C.top+(S.clientTop+parseFloat(A.paddingTop))*w.y;h*=w.x,p*=w.y,g*=w.x,b*=w.y,h+=N,p+=L,R=It(S),S=pm(R)}}return Xc({width:g,height:b,x:h,y:p})}function hp(t,r){const a=du(t).scrollLeft;return r?r.left+a:ss(qn(t)).left+a}function Jw(t,r,a){a===void 0&&(a=!1);const i=t.getBoundingClientRect(),o=i.left+r.scrollLeft-(a?0:hp(t,i)),c=i.top+r.scrollTop;return{x:o,y:c}}function I2(t){let{elements:r,rect:a,offsetParent:i,strategy:o}=t;const c=o==="fixed",f=qn(i),d=r?fu(r.floating):!1;if(i===f||d&&c)return a;let h={scrollLeft:0,scrollTop:0},p=Pn(1);const g=Pn(0),b=Un(i);if((b||!b&&!c)&&((Ti(i)!=="body"||eo(f))&&(h=du(i)),Un(i))){const E=ss(i);p=ri(i),g.x=E.x+i.clientLeft,g.y=E.y+i.clientTop}const x=f&&!b&&!c?Jw(f,h,!0):Pn(0);return{width:a.width*p.x,height:a.height*p.y,x:a.x*p.x-h.scrollLeft*p.x+g.x+x.x,y:a.y*p.y-h.scrollTop*p.y+g.y+x.y}}function V2(t){return Array.from(t.getClientRects())}function Y2(t){const r=qn(t),a=du(t),i=t.ownerDocument.body,o=Bt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),c=Bt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let f=-a.scrollLeft+hp(t);const d=-a.scrollTop;return bn(i).direction==="rtl"&&(f+=Bt(r.clientWidth,i.clientWidth)-o),{width:o,height:c,x:f,y:d}}function G2(t,r){const a=It(t),i=qn(t),o=a.visualViewport;let c=i.clientWidth,f=i.clientHeight,d=0,h=0;if(o){c=o.width,f=o.height;const p=fp();(!p||p&&r==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:c,height:f,x:d,y:h}}function F2(t,r){const a=ss(t,!0,r==="fixed"),i=a.top+t.clientTop,o=a.left+t.clientLeft,c=Un(t)?ri(t):Pn(1),f=t.clientWidth*c.x,d=t.clientHeight*c.y,h=o*c.x,p=i*c.y;return{width:f,height:d,x:h,y:p}}function f0(t,r,a){let i;if(r==="viewport")i=G2(t,a);else if(r==="document")i=Y2(qn(t));else if(yn(r))i=F2(r,a);else{const o=Zw(t);i={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return Xc(i)}function eS(t,r){const a=ha(t);return a===r||!yn(a)||bi(a)?!1:bn(a).position==="fixed"||eS(a,r)}function Q2(t,r){const a=r.get(t);if(a)return a;let i=Il(t,[],!1).filter(d=>yn(d)&&Ti(d)!=="body"),o=null;const c=bn(t).position==="fixed";let f=c?ha(t):t;for(;yn(f)&&!bi(f);){const d=bn(f),h=up(f);!h&&d.position==="fixed"&&(o=null),(c?!h&&!o:!h&&d.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||eo(f)&&!h&&eS(t,f))?i=i.filter(g=>g!==f):o=d,f=ha(f)}return r.set(t,i),i}function X2(t){let{element:r,boundary:a,rootBoundary:i,strategy:o}=t;const f=[...a==="clippingAncestors"?fu(r)?[]:Q2(r,this._c):[].concat(a),i],d=f[0],h=f.reduce((p,g)=>{const b=f0(r,g,o);return p.top=Bt(b.top,p.top),p.right=fa(b.right,p.right),p.bottom=fa(b.bottom,p.bottom),p.left=Bt(b.left,p.left),p},f0(r,d,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function W2(t){const{width:r,height:a}=Kw(t);return{width:r,height:a}}function K2(t,r,a){const i=Un(r),o=qn(r),c=a==="fixed",f=ss(t,!0,c,r);let d={scrollLeft:0,scrollTop:0};const h=Pn(0);if(i||!i&&!c)if((Ti(r)!=="body"||eo(o))&&(d=du(r)),i){const x=ss(r,!0,c,r);h.x=x.x+r.clientLeft,h.y=x.y+r.clientTop}else o&&(h.x=hp(o));const p=o&&!i&&!c?Jw(o,d):Pn(0),g=f.left+d.scrollLeft-h.x-p.x,b=f.top+d.scrollTop-h.y-p.y;return{x:g,y:b,width:f.width,height:f.height}}function ih(t){return bn(t).position==="static"}function d0(t,r){if(!Un(t)||bn(t).position==="fixed")return null;if(r)return r(t);let a=t.offsetParent;return qn(t)===a&&(a=a.ownerDocument.body),a}function tS(t,r){const a=It(t);if(fu(t))return a;if(!Un(t)){let o=ha(t);for(;o&&!bi(o);){if(yn(o)&&!ih(o))return o;o=ha(o)}return a}let i=d0(t,r);for(;i&&$2(i)&&ih(i);)i=d0(i,r);return i&&bi(i)&&ih(i)&&!up(i)?a:i||H2(t)||a}const Z2=async function(t){const r=this.getOffsetParent||tS,a=this.getDimensions,i=await a(t.floating);return{reference:K2(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function J2(t){return bn(t).direction==="rtl"}const ej={convertOffsetParentRelativeRectToViewportRelativeRect:I2,getDocumentElement:qn,getClippingRect:X2,getOffsetParent:tS,getElementRects:Z2,getClientRects:V2,getDimensions:W2,getScale:ri,isElement:yn,isRTL:J2};function nS(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function tj(t,r){let a=null,i;const o=qn(t);function c(){var d;clearTimeout(i),(d=a)==null||d.disconnect(),a=null}function f(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),c();const p=t.getBoundingClientRect(),{left:g,top:b,width:x,height:E}=p;if(d||r(),!x||!E)return;const R=Ac(b),S=Ac(o.clientWidth-(g+x)),w=Ac(o.clientHeight-(b+E)),C=Ac(g),N={rootMargin:-R+"px "+-S+"px "+-w+"px "+-C+"px",threshold:Bt(0,fa(1,h))||1};let L=!0;function _(k){const I=k[0].intersectionRatio;if(I!==h){if(!L)return f();I?f(!1,I):i=setTimeout(()=>{f(!1,1e-7)},1e3)}I===1&&!nS(p,t.getBoundingClientRect())&&f(),L=!1}try{a=new IntersectionObserver(_,{...N,root:o.ownerDocument})}catch{a=new IntersectionObserver(_,N)}a.observe(t)}return f(!0),c}function nj(t,r,a,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,p=dp(t),g=o||c?[...p?Il(p):[],...Il(r)]:[];g.forEach(C=>{o&&C.addEventListener("scroll",a,{passive:!0}),c&&C.addEventListener("resize",a)});const b=p&&d?tj(p,a):null;let x=-1,E=null;f&&(E=new ResizeObserver(C=>{let[A]=C;A&&A.target===p&&E&&(E.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=E)==null||N.observe(r)})),a()}),p&&!h&&E.observe(p),E.observe(r));let R,S=h?ss(t):null;h&&w();function w(){const C=ss(t);S&&!nS(S,C)&&a(),S=C,R=requestAnimationFrame(w)}return a(),()=>{var C;g.forEach(A=>{o&&A.removeEventListener("scroll",a),c&&A.removeEventListener("resize",a)}),b==null||b(),(C=E)==null||C.disconnect(),E=null,h&&cancelAnimationFrame(R)}}const rj=z2,aj=P2,sj=D2,ij=U2,lj=_2,h0=M2,oj=k2,cj=(t,r,a)=>{const i=new Map,o={platform:ej,...a},c={...o.platform,_c:i};return j2(t,r,{...o,platform:c})};var kc=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Wc(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let a,i,o;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(a=t.length,a!==r.length)return!1;for(i=a;i--!==0;)if(!Wc(t[i],r[i]))return!1;return!0}if(o=Object.keys(t),a=o.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!{}.hasOwnProperty.call(r,o[i]))return!1;for(i=a;i--!==0;){const c=o[i];if(!(c==="_owner"&&t.$$typeof)&&!Wc(t[c],r[c]))return!1}return!0}return t!==t&&r!==r}function rS(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function m0(t,r){const a=rS(t);return Math.round(r*a)/a}function lh(t){const r=y.useRef(t);return kc(()=>{r.current=t}),r}function uj(t){t===void 0&&(t={});const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o,elements:{reference:c,floating:f}={},transform:d=!0,whileElementsMounted:h,open:p}=t,[g,b]=y.useState({x:0,y:0,strategy:a,placement:r,middlewareData:{},isPositioned:!1}),[x,E]=y.useState(i);Wc(x,i)||E(i);const[R,S]=y.useState(null),[w,C]=y.useState(null),A=y.useCallback(z=>{z!==k.current&&(k.current=z,S(z))},[]),N=y.useCallback(z=>{z!==I.current&&(I.current=z,C(z))},[]),L=c||R,_=f||w,k=y.useRef(null),I=y.useRef(null),Y=y.useRef(g),H=h!=null,K=lh(h),Z=lh(o),ne=lh(p),ce=y.useCallback(()=>{if(!k.current||!I.current)return;const z={placement:r,strategy:a,middleware:x};Z.current&&(z.platform=Z.current),cj(k.current,I.current,z).then(Q=>{const j={...Q,isPositioned:ne.current!==!1};$.current&&!Wc(Y.current,j)&&(Y.current=j,Ei.flushSync(()=>{b(j)}))})},[x,r,a,Z,ne]);kc(()=>{p===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,b(z=>({...z,isPositioned:!1})))},[p]);const $=y.useRef(!1);kc(()=>($.current=!0,()=>{$.current=!1}),[]),kc(()=>{if(L&&(k.current=L),_&&(I.current=_),L&&_){if(K.current)return K.current(L,_,ce);ce()}},[L,_,ce,K,H]);const U=y.useMemo(()=>({reference:k,floating:I,setReference:A,setFloating:N}),[A,N]),M=y.useMemo(()=>({reference:L,floating:_}),[L,_]),q=y.useMemo(()=>{const z={position:a,left:0,top:0};if(!M.floating)return z;const Q=m0(M.floating,g.x),j=m0(M.floating,g.y);return d?{...z,transform:"translate("+Q+"px, "+j+"px)",...rS(M.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:Q,top:j}},[a,d,M.floating,g.x,g.y]);return y.useMemo(()=>({...g,update:ce,refs:U,elements:M,floatingStyles:q}),[g,ce,U,M,q])}const fj=t=>{function r(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:t,fn(a){const{element:i,padding:o}=typeof t=="function"?t(a):t;return i&&r(i)?i.current!=null?h0({element:i.current,padding:o}).fn(a):{}:i?h0({element:i,padding:o}).fn(a):{}}}},dj=(t,r)=>({...rj(t),options:[t,r]}),hj=(t,r)=>({...aj(t),options:[t,r]}),mj=(t,r)=>({...oj(t),options:[t,r]}),pj=(t,r)=>({...sj(t),options:[t,r]}),vj=(t,r)=>({...ij(t),options:[t,r]}),gj=(t,r)=>({...lj(t),options:[t,r]}),yj=(t,r)=>({...fj(t),options:[t,r]});var bj="Arrow",aS=y.forwardRef((t,r)=>{const{children:a,width:i=10,height:o=5,...c}=t;return v.jsx(Se.svg,{...c,ref:r,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?a:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});aS.displayName=bj;var xj=aS;function wj(t){const[r,a]=y.useState(void 0);return ft(()=>{if(t){a({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let f,d;if("borderBoxSize"in c){const h=c.borderBoxSize,p=Array.isArray(h)?h[0]:h;f=p.inlineSize,d=p.blockSize}else f=t.offsetWidth,d=t.offsetHeight;a({width:f,height:d})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else a(void 0)},[t]),r}var mp="Popper",[sS,hu]=Hn(mp),[Sj,iS]=sS(mp),lS=t=>{const{__scopePopper:r,children:a}=t,[i,o]=y.useState(null);return v.jsx(Sj,{scope:r,anchor:i,onAnchorChange:o,children:a})};lS.displayName=mp;var oS="PopperAnchor",cS=y.forwardRef((t,r)=>{const{__scopePopper:a,virtualRef:i,...o}=t,c=iS(oS,a),f=y.useRef(null),d=ke(r,f);return y.useEffect(()=>{c.onAnchorChange((i==null?void 0:i.current)||f.current)}),i?null:v.jsx(Se.div,{...o,ref:d})});cS.displayName=oS;var pp="PopperContent",[Ej,Rj]=sS(pp),uS=y.forwardRef((t,r)=>{var fe,me,Ee,de,we,Ae;const{__scopePopper:a,side:i="bottom",sideOffset:o=0,align:c="center",alignOffset:f=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:g=0,sticky:b="partial",hideWhenDetached:x=!1,updatePositionStrategy:E="optimized",onPlaced:R,...S}=t,w=iS(pp,a),[C,A]=y.useState(null),N=ke(r,Ve=>A(Ve)),[L,_]=y.useState(null),k=wj(L),I=(k==null?void 0:k.width)??0,Y=(k==null?void 0:k.height)??0,H=i+(c!=="center"?"-"+c:""),K=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},Z=Array.isArray(p)?p:[p],ne=Z.length>0,ce={padding:K,boundary:Z.filter(Cj),altBoundary:ne},{refs:$,floatingStyles:U,placement:M,isPositioned:q,middlewareData:z}=uj({strategy:"fixed",placement:H,whileElementsMounted:(...Ve)=>nj(...Ve,{animationFrame:E==="always"}),elements:{reference:w.anchor},middleware:[dj({mainAxis:o+Y,alignmentAxis:f}),h&&hj({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?mj():void 0,...ce}),h&&pj({...ce}),vj({...ce,apply:({elements:Ve,rects:Rt,availableWidth:Rn,availableHeight:Vt})=>{const{width:Fn,height:ds}=Rt.reference,Cr=Ve.floating.style;Cr.setProperty("--radix-popper-available-width",`${Rn}px`),Cr.setProperty("--radix-popper-available-height",`${Vt}px`),Cr.setProperty("--radix-popper-anchor-width",`${Fn}px`),Cr.setProperty("--radix-popper-anchor-height",`${ds}px`)}}),L&&yj({element:L,padding:d}),Aj({arrowWidth:I,arrowHeight:Y}),x&&gj({strategy:"referenceHidden",...ce})]}),[Q,j]=hS(M),G=nt(R);ft(()=>{q&&(G==null||G())},[q,G]);const te=(fe=z.arrow)==null?void 0:fe.x,se=(me=z.arrow)==null?void 0:me.y,ae=((Ee=z.arrow)==null?void 0:Ee.centerOffset)!==0,[oe,pe]=y.useState();return ft(()=>{C&&pe(window.getComputedStyle(C).zIndex)},[C]),v.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:q?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(de=z.transformOrigin)==null?void 0:de.x,(we=z.transformOrigin)==null?void 0:we.y].join(" "),...((Ae=z.hide)==null?void 0:Ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:v.jsx(Ej,{scope:a,placedSide:Q,onArrowChange:_,arrowX:te,arrowY:se,shouldHideArrow:ae,children:v.jsx(Se.div,{"data-side":Q,"data-align":j,...S,ref:N,style:{...S.style,animation:q?void 0:"none"}})})})});uS.displayName=pp;var fS="PopperArrow",Tj={top:"bottom",right:"left",bottom:"top",left:"right"},dS=y.forwardRef(function(r,a){const{__scopePopper:i,...o}=r,c=Rj(fS,i),f=Tj[c.placedSide];return v.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:v.jsx(xj,{...o,ref:a,style:{...o.style,display:"block"}})})});dS.displayName=fS;function Cj(t){return t!==null}var Aj=t=>({name:"transformOrigin",options:t,fn(r){var w,C,A;const{placement:a,rects:i,middlewareData:o}=r,f=((w=o.arrow)==null?void 0:w.centerOffset)!==0,d=f?0:t.arrowWidth,h=f?0:t.arrowHeight,[p,g]=hS(a),b={start:"0%",center:"50%",end:"100%"}[g],x=(((C=o.arrow)==null?void 0:C.x)??0)+d/2,E=(((A=o.arrow)==null?void 0:A.y)??0)+h/2;let R="",S="";return p==="bottom"?(R=f?b:`${x}px`,S=`${-h}px`):p==="top"?(R=f?b:`${x}px`,S=`${i.floating.height+h}px`):p==="right"?(R=`${-h}px`,S=f?b:`${E}px`):p==="left"&&(R=`${i.floating.width+h}px`,S=f?b:`${E}px`),{data:{x:R,y:S}}}});function hS(t){const[r,a="center"]=t.split("-");return[r,a]}var mS=lS,pS=cS,vS=uS,gS=dS,Nj="VisuallyHidden",to=y.forwardRef((t,r)=>v.jsx(Se.span,{...t,ref:r,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));to.displayName=Nj;var Oj=to,[mu,Dz]=Hn("Tooltip",[hu]),pu=hu(),yS="TooltipProvider",jj=700,vm="tooltip.open",[Mj,vp]=mu(yS),bS=t=>{const{__scopeTooltip:r,delayDuration:a=jj,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:c}=t,[f,d]=y.useState(!0),h=y.useRef(!1),p=y.useRef(0);return y.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),v.jsx(Mj,{scope:r,isOpenDelayed:f,delayDuration:a,onOpen:y.useCallback(()=>{window.clearTimeout(p.current),d(!1)},[]),onClose:y.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d(!0),i)},[i]),isPointerInTransitRef:h,onPointerInTransitChange:y.useCallback(g=>{h.current=g},[]),disableHoverableContent:o,children:c})};bS.displayName=yS;var vu="Tooltip",[Dj,no]=mu(vu),xS=t=>{const{__scopeTooltip:r,children:a,open:i,defaultOpen:o=!1,onOpenChange:c,disableHoverableContent:f,delayDuration:d}=t,h=vp(vu,t.__scopeTooltip),p=pu(r),[g,b]=y.useState(null),x=yr(),E=y.useRef(0),R=f??h.disableHoverableContent,S=d??h.delayDuration,w=y.useRef(!1),[C=!1,A]=rs({prop:i,defaultProp:o,onChange:I=>{I?(h.onOpen(),document.dispatchEvent(new CustomEvent(vm))):h.onClose(),c==null||c(I)}}),N=y.useMemo(()=>C?w.current?"delayed-open":"instant-open":"closed",[C]),L=y.useCallback(()=>{window.clearTimeout(E.current),E.current=0,w.current=!1,A(!0)},[A]),_=y.useCallback(()=>{window.clearTimeout(E.current),E.current=0,A(!1)},[A]),k=y.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>{w.current=!0,A(!0),E.current=0},S)},[S,A]);return y.useEffect(()=>()=>{E.current&&(window.clearTimeout(E.current),E.current=0)},[]),v.jsx(mS,{...p,children:v.jsx(Dj,{scope:r,contentId:x,open:C,stateAttribute:N,trigger:g,onTriggerChange:b,onTriggerEnter:y.useCallback(()=>{h.isOpenDelayed?k():L()},[h.isOpenDelayed,k,L]),onTriggerLeave:y.useCallback(()=>{R?_():(window.clearTimeout(E.current),E.current=0)},[_,R]),onOpen:L,onClose:_,disableHoverableContent:R,children:a})})};xS.displayName=vu;var gm="TooltipTrigger",wS=y.forwardRef((t,r)=>{const{__scopeTooltip:a,...i}=t,o=no(gm,a),c=vp(gm,a),f=pu(a),d=y.useRef(null),h=ke(r,d,o.onTriggerChange),p=y.useRef(!1),g=y.useRef(!1),b=y.useCallback(()=>p.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),v.jsx(pS,{asChild:!0,...f,children:v.jsx(Se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:h,onPointerMove:ge(t.onPointerMove,x=>{x.pointerType!=="touch"&&!g.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:ge(t.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:ge(t.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ge(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:ge(t.onBlur,o.onClose),onClick:ge(t.onClick,o.onClose)})})});wS.displayName=gm;var gp="TooltipPortal",[_j,Lj]=mu(gp,{forceMount:void 0}),SS=t=>{const{__scopeTooltip:r,forceMount:a,children:i,container:o}=t,c=no(gp,r);return v.jsx(_j,{scope:r,forceMount:a,children:v.jsx(ln,{present:a||c.open,children:v.jsx(Jl,{asChild:!0,container:o,children:i})})})};SS.displayName=gp;var xi="TooltipContent",ES=y.forwardRef((t,r)=>{const a=Lj(xi,t.__scopeTooltip),{forceMount:i=a.forceMount,side:o="top",...c}=t,f=no(xi,t.__scopeTooltip);return v.jsx(ln,{present:i||f.open,children:f.disableHoverableContent?v.jsx(RS,{side:o,...c,ref:r}):v.jsx(zj,{side:o,...c,ref:r})})}),zj=y.forwardRef((t,r)=>{const a=no(xi,t.__scopeTooltip),i=vp(xi,t.__scopeTooltip),o=y.useRef(null),c=ke(r,o),[f,d]=y.useState(null),{trigger:h,onClose:p}=a,g=o.current,{onPointerInTransitChange:b}=i,x=y.useCallback(()=>{d(null),b(!1)},[b]),E=y.useCallback((R,S)=>{const w=R.currentTarget,C={x:R.clientX,y:R.clientY},A=$j(C,w.getBoundingClientRect()),N=Hj(C,A),L=qj(S.getBoundingClientRect()),_=Ij([...N,...L]);d(_),b(!0)},[b]);return y.useEffect(()=>()=>x(),[x]),y.useEffect(()=>{if(h&&g){const R=w=>E(w,g),S=w=>E(w,h);return h.addEventListener("pointerleave",R),g.addEventListener("pointerleave",S),()=>{h.removeEventListener("pointerleave",R),g.removeEventListener("pointerleave",S)}}},[h,g,E,x]),y.useEffect(()=>{if(f){const R=S=>{const w=S.target,C={x:S.clientX,y:S.clientY},A=(h==null?void 0:h.contains(w))||(g==null?void 0:g.contains(w)),N=!Bj(C,f);A?x():N&&(x(),p())};return document.addEventListener("pointermove",R),()=>document.removeEventListener("pointermove",R)}},[h,g,f,p,x]),v.jsx(RS,{...t,ref:c})}),[Pj,kj]=mu(vu,{isInside:!1}),RS=y.forwardRef((t,r)=>{const{__scopeTooltip:a,children:i,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:f,...d}=t,h=no(xi,a),p=pu(a),{onClose:g}=h;return y.useEffect(()=>(document.addEventListener(vm,g),()=>document.removeEventListener(vm,g)),[g]),y.useEffect(()=>{if(h.trigger){const b=x=>{const E=x.target;E!=null&&E.contains(h.trigger)&&g()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[h.trigger,g]),v.jsx(Zl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:b=>b.preventDefault(),onDismiss:g,children:v.jsxs(vS,{"data-state":h.stateAttribute,...p,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(Kx,{children:i}),v.jsx(Pj,{scope:a,isInside:!0,children:v.jsx(Oj,{id:h.contentId,role:"tooltip",children:o||i})})]})})});ES.displayName=xi;var TS="TooltipArrow",Uj=y.forwardRef((t,r)=>{const{__scopeTooltip:a,...i}=t,o=pu(a);return kj(TS,a).isInside?null:v.jsx(gS,{...o,...i,ref:r})});Uj.displayName=TS;function $j(t,r){const a=Math.abs(r.top-t.y),i=Math.abs(r.bottom-t.y),o=Math.abs(r.right-t.x),c=Math.abs(r.left-t.x);switch(Math.min(a,i,o,c)){case c:return"left";case o:return"right";case a:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function Hj(t,r,a=5){const i=[];switch(r){case"top":i.push({x:t.x-a,y:t.y+a},{x:t.x+a,y:t.y+a});break;case"bottom":i.push({x:t.x-a,y:t.y-a},{x:t.x+a,y:t.y-a});break;case"left":i.push({x:t.x+a,y:t.y-a},{x:t.x+a,y:t.y+a});break;case"right":i.push({x:t.x-a,y:t.y-a},{x:t.x-a,y:t.y+a});break}return i}function qj(t){const{top:r,right:a,bottom:i,left:o}=t;return[{x:o,y:r},{x:a,y:r},{x:a,y:i},{x:o,y:i}]}function Bj(t,r){const{x:a,y:i}=t;let o=!1;for(let c=0,f=r.length-1;c<r.length;f=c++){const d=r[c].x,h=r[c].y,p=r[f].x,g=r[f].y;h>i!=g>i&&a<(p-d)*(i-h)/(g-h)+d&&(o=!o)}return o}function Ij(t){const r=t.slice();return r.sort((a,i)=>a.x<i.x?-1:a.x>i.x?1:a.y<i.y?-1:a.y>i.y?1:0),Vj(r)}function Vj(t){if(t.length<=1)return t.slice();const r=[];for(let i=0;i<t.length;i++){const o=t[i];for(;r.length>=2;){const c=r[r.length-1],f=r[r.length-2];if((c.x-f.x)*(o.y-f.y)>=(c.y-f.y)*(o.x-f.x))r.pop();else break}r.push(o)}r.pop();const a=[];for(let i=t.length-1;i>=0;i--){const o=t[i];for(;a.length>=2;){const c=a[a.length-1],f=a[a.length-2];if((c.x-f.x)*(o.y-f.y)>=(c.y-f.y)*(o.x-f.x))a.pop();else break}a.push(o)}return a.pop(),r.length===1&&a.length===1&&r[0].x===a[0].x&&r[0].y===a[0].y?r:r.concat(a)}var Yj=bS,Gj=xS,Fj=wS,Qj=SS,CS=ES;const AS=Yj,br=Gj,xr=Fj,kn=y.forwardRef(({className:t,sideOffset:r=4,...a},i)=>v.jsx(Qj,{children:v.jsx(CS,{ref:i,sideOffset:r,className:le("z-50 overflow-hidden select-none rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})}));kn.displayName=CS.displayName;const oh=768;function Xj(){const[t,r]=y.useState(void 0);return y.useEffect(()=>{const a=window.matchMedia(`(max-width: ${oh-1}px)`),i=()=>{r(window.innerWidth<oh)};return a.addEventListener("change",i),r(window.innerWidth<oh),()=>a.removeEventListener("change",i)},[]),!!t}const Wj="sidebar:state",Kj=60*60*24*7,Zj="16rem",Jj="18rem",eM="3rem",tM="b",NS=y.createContext(null);function gu(){const t=y.useContext(NS);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}const OS=y.forwardRef(({defaultOpen:t=!0,open:r,onOpenChange:a,className:i,style:o,children:c,...f},d)=>{const h=Xj(),[p,g]=y.useState(!1),[b,x]=y.useState(t),E=r??b,R=y.useCallback(A=>{const N=typeof A=="function"?A(E):A;a?a(N):x(N),document.cookie=`${Wj}=${N}; path=/; max-age=${Kj}`},[a,E]),S=y.useCallback(()=>h?g(A=>!A):R(A=>!A),[h,R,g]);y.useEffect(()=>{const A=N=>{N.key===tM&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),S())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[S]);const w=E?"expanded":"collapsed",C=y.useMemo(()=>({state:w,open:E,setOpen:R,isMobile:h,openMobile:p,setOpenMobile:g,toggleSidebar:S}),[w,E,R,h,p,g,S]);return v.jsx(NS.Provider,{value:C,children:v.jsx(AS,{delayDuration:0,children:v.jsx("div",{style:{"--sidebar-width":Zj,"--sidebar-width-icon":eM,...o},className:le("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-card",i),ref:d,...f,children:c})})})});OS.displayName="SidebarProvider";const jS=y.forwardRef(({side:t="left",variant:r="sidebar",collapsible:a="offcanvas",className:i,children:o,...c},f)=>{const{isMobile:d,state:h,openMobile:p,setOpenMobile:g}=gu();return a==="none"?v.jsx("div",{className:le("flex h-full w-[--sidebar-width] flex-col bg-card text-sidebar-foreground",i),ref:f,...c,children:o}):d?v.jsx(g2,{open:p,onOpenChange:g,...c,children:v.jsx(Fw,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-card p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Jj},side:t,children:v.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):v.jsxs("div",{ref:f,className:"group peer hidden md:block text-sidebar-foreground","data-state":h,"data-collapsible":h==="collapsed"?a:"","data-variant":r,"data-side":t,children:[v.jsx("div",{className:le("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",r==="floating"||r==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),v.jsx("div",{className:le("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",r==="floating"||r==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...c,children:v.jsx("div",{"data-sidebar":"sidebar",className:"flex m-4 rounded-md border w-full flex-col bg-card group-data-[variant=floating]:rounded-md group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});jS.displayName="Sidebar";const nM=y.forwardRef(({className:t,onClick:r,...a},i)=>{const{toggleSidebar:o}=gu();return v.jsxs(Ie,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:le("h-7 w-7",t),onClick:c=>{r==null||r(c),o()},...a,children:[v.jsx(l2,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});nM.displayName="SidebarTrigger";const rM=y.forwardRef(({className:t,...r},a)=>{const{toggleSidebar:i}=gu();return v.jsx("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:le("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-card-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-card","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...r})});rM.displayName="SidebarRail";const MS=y.forwardRef(({className:t,...r},a)=>v.jsx("main",{ref:a,className:le("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t),...r}));MS.displayName="SidebarInset";const aM=y.forwardRef(({className:t,...r},a)=>v.jsx(gr,{ref:a,"data-sidebar":"input",className:le("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",t),...r}));aM.displayName="SidebarInput";const DS=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,"data-sidebar":"header",className:le("flex flex-col gap-2 p-2",t),...r}));DS.displayName="SidebarHeader";const _S=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,"data-sidebar":"footer",className:le("flex flex-col gap-2 p-2",t),...r}));_S.displayName="SidebarFooter";const sM=y.forwardRef(({className:t,...r},a)=>v.jsx(cw,{ref:a,"data-sidebar":"separator",className:le("mx-2 w-auto bg-card-border",t),...r}));sM.displayName="SidebarSeparator";const LS=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,"data-sidebar":"content",className:le("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...r}));LS.displayName="SidebarContent";const zS=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,"data-sidebar":"group",className:le("relative flex w-full min-w-0 flex-col p-2",t),...r}));zS.displayName="SidebarGroup";const PS=y.forwardRef(({className:t,asChild:r=!1,...a},i)=>{const o=r?sn:"div";return v.jsx(o,{ref:i,"data-sidebar":"group-label",className:le("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...a})});PS.displayName="SidebarGroupLabel";const iM=y.forwardRef(({className:t,asChild:r=!1,...a},i)=>{const o=r?sn:"button";return v.jsx(o,{ref:i,"data-sidebar":"group-action",className:le("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-card-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),...a})});iM.displayName="SidebarGroupAction";const kS=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,"data-sidebar":"group-content",className:le("w-full text-sm",t),...r}));kS.displayName="SidebarGroupContent";const Uc=y.forwardRef(({className:t,...r},a)=>v.jsx("ul",{ref:a,"data-sidebar":"menu",className:le("flex w-full min-w-0 flex-col gap-1",t),...r}));Uc.displayName="SidebarMenu";const mr=y.forwardRef(({className:t,...r},a)=>v.jsx("li",{ref:a,"data-sidebar":"menu-item",className:le("group/menu-item relative",t),...r}));mr.displayName="SidebarMenuItem";const lM=pa("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Va=y.forwardRef(({asChild:t=!1,isActive:r=!1,variant:a="default",size:i="default",tooltip:o,className:c,...f},d)=>{const h=t?sn:"button",{isMobile:p,state:g}=gu(),b=v.jsx(h,{ref:d,"data-sidebar":"menu-button","data-size":i,"data-active":r,className:le(lM({variant:a,size:i}),c),...f});return o?(typeof o=="string"&&(o={children:o}),v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:b}),v.jsx(kn,{side:"right",align:"center",hidden:g!=="collapsed"||p,...o})]})):b});Va.displayName="SidebarMenuButton";const oM=y.forwardRef(({className:t,asChild:r=!1,showOnHover:a=!1,...i},o)=>{const c=r?sn:"button";return v.jsx(c,{ref:o,"data-sidebar":"menu-action",className:le("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-card-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",t),...i})});oM.displayName="SidebarMenuAction";const cM=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,"data-sidebar":"menu-badge",className:le("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),...r}));cM.displayName="SidebarMenuBadge";const US=y.forwardRef(({className:t,showIcon:r=!1,...a},i)=>{const o=y.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:le("rounded-md h-8 flex gap-2 px-2 items-center",t),...a,children:[r&&v.jsx(i0,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx(i0,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});US.displayName="SidebarMenuSkeleton";const uM=y.forwardRef(({className:t,...r},a)=>v.jsx("ul",{ref:a,"data-sidebar":"menu-sub",className:le("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...r}));uM.displayName="SidebarMenuSub";const fM=y.forwardRef(({...t},r)=>v.jsx("li",{ref:r,...t}));fM.displayName="SidebarMenuSubItem";const dM=y.forwardRef(({asChild:t=!1,size:r="md",isActive:a,className:i,...o},c)=>{const f=t?sn:"a";return v.jsx(f,{ref:c,"data-sidebar":"menu-sub-button","data-size":r,"data-active":a,className:le("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-card-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-card-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-card-accent data-[active=true]:text-sidebar-accent-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...o})});dM.displayName="SidebarMenuSubButton";var Ci=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},is=typeof window>"u"||"Deno"in globalThis;function an(){}function hM(t,r){return typeof t=="function"?t(r):t}function ym(t){return typeof t=="number"&&t>=0&&t!==1/0}function $S(t,r){return Math.max(t+(r||0)-Date.now(),0)}function ai(t,r){return typeof t=="function"?t(r):t}function vn(t,r){return typeof t=="function"?t(r):t}function p0(t,r){const{type:a="all",exact:i,fetchStatus:o,predicate:c,queryKey:f,stale:d}=t;if(f){if(i){if(r.queryHash!==yp(f,r.options))return!1}else if(!Vl(r.queryKey,f))return!1}if(a!=="all"){const h=r.isActive();if(a==="active"&&!h||a==="inactive"&&h)return!1}return!(typeof d=="boolean"&&r.isStale()!==d||o&&o!==r.state.fetchStatus||c&&!c(r))}function v0(t,r){const{exact:a,status:i,predicate:o,mutationKey:c}=t;if(c){if(!r.options.mutationKey)return!1;if(a){if(ls(r.options.mutationKey)!==ls(c))return!1}else if(!Vl(r.options.mutationKey,c))return!1}return!(i&&r.state.status!==i||o&&!o(r))}function yp(t,r){return((r==null?void 0:r.queryKeyHashFn)||ls)(t)}function ls(t){return JSON.stringify(t,(r,a)=>bm(a)?Object.keys(a).sort().reduce((i,o)=>(i[o]=a[o],i),{}):a)}function Vl(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?!Object.keys(r).some(a=>!Vl(t[a],r[a])):!1}function HS(t,r){if(t===r)return t;const a=g0(t)&&g0(r);if(a||bm(t)&&bm(r)){const i=a?t:Object.keys(t),o=i.length,c=a?r:Object.keys(r),f=c.length,d=a?[]:{};let h=0;for(let p=0;p<f;p++){const g=a?p:c[p];(!a&&i.includes(g)||a)&&t[g]===void 0&&r[g]===void 0?(d[g]=void 0,h++):(d[g]=HS(t[g],r[g]),d[g]===t[g]&&t[g]!==void 0&&h++)}return o===f&&h===o?t:d}return r}function Kc(t,r){if(!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const a in t)if(t[a]!==r[a])return!1;return!0}function g0(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function bm(t){if(!y0(t))return!1;const r=t.constructor;if(r===void 0)return!0;const a=r.prototype;return!(!y0(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function y0(t){return Object.prototype.toString.call(t)==="[object Object]"}function mM(t){return new Promise(r=>{setTimeout(r,t)})}function xm(t,r,a){return typeof a.structuralSharing=="function"?a.structuralSharing(t,r):a.structuralSharing!==!1?HS(t,r):r}function pM(t,r,a=0){const i=[...t,r];return a&&i.length>a?i.slice(1):i}function vM(t,r,a=0){const i=[r,...t];return a&&i.length>a?i.slice(0,-1):i}var bp=Symbol();function qS(t,r){return!t.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!t.queryFn||t.queryFn===bp?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Fa,na,ii,$x,gM=($x=class extends Ci{constructor(){super();be(this,Fa);be(this,na);be(this,ii);ue(this,ii,r=>{if(!is&&window.addEventListener){const a=()=>r();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){P(this,na)||this.setEventListener(P(this,ii))}onUnsubscribe(){var r;this.hasListeners()||((r=P(this,na))==null||r.call(this),ue(this,na,void 0))}setEventListener(r){var a;ue(this,ii,r),(a=P(this,na))==null||a.call(this),ue(this,na,r(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(r){P(this,Fa)!==r&&(ue(this,Fa,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(a=>{a(r)})}isFocused(){var r;return typeof P(this,Fa)=="boolean"?P(this,Fa):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Fa=new WeakMap,na=new WeakMap,ii=new WeakMap,$x),xp=new gM,li,ra,oi,Hx,yM=(Hx=class extends Ci{constructor(){super();be(this,li,!0);be(this,ra);be(this,oi);ue(this,oi,r=>{if(!is&&window.addEventListener){const a=()=>r(!0),i=()=>r(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}})}onSubscribe(){P(this,ra)||this.setEventListener(P(this,oi))}onUnsubscribe(){var r;this.hasListeners()||((r=P(this,ra))==null||r.call(this),ue(this,ra,void 0))}setEventListener(r){var a;ue(this,oi,r),(a=P(this,ra))==null||a.call(this),ue(this,ra,r(this.setOnline.bind(this)))}setOnline(r){P(this,li)!==r&&(ue(this,li,r),this.listeners.forEach(i=>{i(r)}))}isOnline(){return P(this,li)}},li=new WeakMap,ra=new WeakMap,oi=new WeakMap,Hx),Zc=new yM;function wm(){let t,r;const a=new Promise((o,c)=>{t=o,r=c});a.status="pending",a.catch(()=>{});function i(o){Object.assign(a,o),delete a.resolve,delete a.reject}return a.resolve=o=>{i({status:"fulfilled",value:o}),t(o)},a.reject=o=>{i({status:"rejected",reason:o}),r(o)},a}function bM(t){return Math.min(1e3*2**t,3e4)}function BS(t){return(t??"online")==="online"?Zc.isOnline():!0}var IS=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function ch(t){return t instanceof IS}function VS(t){let r=!1,a=0,i=!1,o;const c=wm(),f=S=>{var w;i||(x(new IS(S)),(w=t.abort)==null||w.call(t))},d=()=>{r=!0},h=()=>{r=!1},p=()=>xp.isFocused()&&(t.networkMode==="always"||Zc.isOnline())&&t.canRun(),g=()=>BS(t.networkMode)&&t.canRun(),b=S=>{var w;i||(i=!0,(w=t.onSuccess)==null||w.call(t,S),o==null||o(),c.resolve(S))},x=S=>{var w;i||(i=!0,(w=t.onError)==null||w.call(t,S),o==null||o(),c.reject(S))},E=()=>new Promise(S=>{var w;o=C=>{(i||p())&&S(C)},(w=t.onPause)==null||w.call(t)}).then(()=>{var S;o=void 0,i||(S=t.onContinue)==null||S.call(t)}),R=()=>{if(i)return;let S;const w=a===0?t.initialPromise:void 0;try{S=w??t.fn()}catch(C){S=Promise.reject(C)}Promise.resolve(S).then(b).catch(C=>{var k;if(i)return;const A=t.retry??(is?0:3),N=t.retryDelay??bM,L=typeof N=="function"?N(a,C):N,_=A===!0||typeof A=="number"&&a<A||typeof A=="function"&&A(a,C);if(r||!_){x(C);return}a++,(k=t.onFail)==null||k.call(t,a,C),mM(L).then(()=>p()?void 0:E()).then(()=>{r?x(C):R()})})};return{promise:c,cancel:f,continue:()=>(o==null||o(),c),cancelRetry:d,continueRetry:h,canStart:g,start:()=>(g()?R():E().then(R),c)}}function xM(){let t=[],r=0,a=d=>{d()},i=d=>{d()},o=d=>setTimeout(d,0);const c=d=>{r?t.push(d):o(()=>{a(d)})},f=()=>{const d=t;t=[],d.length&&o(()=>{i(()=>{d.forEach(h=>{a(h)})})})};return{batch:d=>{let h;r++;try{h=d()}finally{r--,r||f()}return h},batchCalls:d=>(...h)=>{c(()=>{d(...h)})},schedule:c,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{o=d}}}var ut=xM(),Qa,qx,YS=(qx=class{constructor(){be(this,Qa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ym(this.gcTime)&&ue(this,Qa,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(is?1/0:5*60*1e3))}clearGcTimeout(){P(this,Qa)&&(clearTimeout(P(this,Qa)),ue(this,Qa,void 0))}},Qa=new WeakMap,qx),ci,ui,rn,Xa,St,Fl,Wa,mn,dr,Bx,wM=(Bx=class extends YS{constructor(r){super();be(this,mn);be(this,ci);be(this,ui);be(this,rn);be(this,Xa);be(this,St);be(this,Fl);be(this,Wa);ue(this,Wa,!1),ue(this,Fl,r.defaultOptions),this.setOptions(r.options),this.observers=[],ue(this,Xa,r.client),ue(this,rn,P(this,Xa).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,ue(this,ci,SM(this.options)),this.state=r.state??P(this,ci),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=P(this,St))==null?void 0:r.promise}setOptions(r){this.options={...P(this,Fl),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,rn).remove(this)}setData(r,a){const i=xm(this.state.data,r,this.options);return Ne(this,mn,dr).call(this,{data:i,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),i}setState(r,a){Ne(this,mn,dr).call(this,{type:"setState",state:r,setStateOptions:a})}cancel(r){var i,o;const a=(i=P(this,St))==null?void 0:i.promise;return(o=P(this,St))==null||o.cancel(r),a?a.then(an).catch(an):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,ci))}isActive(){return this.observers.some(r=>vn(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===bp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!$S(this.state.dataUpdatedAt,r)}onFocus(){var a;const r=this.observers.find(i=>i.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(a=P(this,St))==null||a.continue()}onOnline(){var a;const r=this.observers.find(i=>i.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(a=P(this,St))==null||a.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),P(this,rn).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(a=>a!==r),this.observers.length||(P(this,St)&&(P(this,Wa)?P(this,St).cancel({revert:!0}):P(this,St).cancelRetry()),this.scheduleGc()),P(this,rn).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,mn,dr).call(this,{type:"invalidate"})}fetch(r,a){var h,p,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(P(this,St))return P(this,St).continueRetry(),P(this,St).promise}if(r&&this.setOptions(r),!this.options.queryFn){const b=this.observers.find(x=>x.options.queryFn);b&&this.setOptions(b.options)}const i=new AbortController,o=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(ue(this,Wa,!0),i.signal)})},c=()=>{const b=qS(this.options,a),x={client:P(this,Xa),queryKey:this.queryKey,meta:this.meta};return o(x),ue(this,Wa,!1),this.options.persister?this.options.persister(b,x,this):b(x)},f={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:P(this,Xa),state:this.state,fetchFn:c};o(f),(h=this.options.behavior)==null||h.onFetch(f,this),ue(this,ui,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=f.fetchOptions)==null?void 0:p.meta))&&Ne(this,mn,dr).call(this,{type:"fetch",meta:(g=f.fetchOptions)==null?void 0:g.meta});const d=b=>{var x,E,R,S;ch(b)&&b.silent||Ne(this,mn,dr).call(this,{type:"error",error:b}),ch(b)||((E=(x=P(this,rn).config).onError)==null||E.call(x,b,this),(S=(R=P(this,rn).config).onSettled)==null||S.call(R,this.state.data,b,this)),this.scheduleGc()};return ue(this,St,VS({initialPromise:a==null?void 0:a.initialPromise,fn:f.fetchFn,abort:i.abort.bind(i),onSuccess:b=>{var x,E,R,S;if(b===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(w){d(w);return}(E=(x=P(this,rn).config).onSuccess)==null||E.call(x,b,this),(S=(R=P(this,rn).config).onSettled)==null||S.call(R,b,this.state.error,this),this.scheduleGc()},onError:d,onFail:(b,x)=>{Ne(this,mn,dr).call(this,{type:"failed",failureCount:b,error:x})},onPause:()=>{Ne(this,mn,dr).call(this,{type:"pause"})},onContinue:()=>{Ne(this,mn,dr).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),P(this,St).start()}},ci=new WeakMap,ui=new WeakMap,rn=new WeakMap,Xa=new WeakMap,St=new WeakMap,Fl=new WeakMap,Wa=new WeakMap,mn=new WeakSet,dr=function(r){const a=i=>{switch(r.type){case"failed":return{...i,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...GS(i.data,this.options),fetchMeta:r.meta??null};case"success":return{...i,data:r.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=r.error;return ch(o)&&o.revert&&P(this,ui)?{...P(this,ui),fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...r.state}}};this.state=a(this.state),ut.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),P(this,rn).notify({query:this,type:"updated",action:r})})},Bx);function GS(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:BS(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function SM(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,a=r!==void 0,i=a?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Mn,Ix,EM=(Ix=class extends Ci{constructor(r={}){super();be(this,Mn);this.config=r,ue(this,Mn,new Map)}build(r,a,i){const o=a.queryKey,c=a.queryHash??yp(o,a);let f=this.get(c);return f||(f=new wM({client:r,queryKey:o,queryHash:c,options:r.defaultQueryOptions(a),state:i,defaultOptions:r.getQueryDefaults(o)}),this.add(f)),f}add(r){P(this,Mn).has(r.queryHash)||(P(this,Mn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const a=P(this,Mn).get(r.queryHash);a&&(r.destroy(),a===r&&P(this,Mn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){ut.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return P(this,Mn).get(r)}getAll(){return[...P(this,Mn).values()]}find(r){const a={exact:!0,...r};return this.getAll().find(i=>p0(a,i))}findAll(r={}){const a=this.getAll();return Object.keys(r).length>0?a.filter(i=>p0(r,i)):a}notify(r){ut.batch(()=>{this.listeners.forEach(a=>{a(r)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Mn=new WeakMap,Ix),Dn,At,Ka,_n,ea,Vx,RM=(Vx=class extends YS{constructor(r){super();be(this,_n);be(this,Dn);be(this,At);be(this,Ka);this.mutationId=r.mutationId,ue(this,At,r.mutationCache),ue(this,Dn,[]),this.state=r.state||FS(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){P(this,Dn).includes(r)||(P(this,Dn).push(r),this.clearGcTimeout(),P(this,At).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){ue(this,Dn,P(this,Dn).filter(a=>a!==r)),this.scheduleGc(),P(this,At).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){P(this,Dn).length||(this.state.status==="pending"?this.scheduleGc():P(this,At).remove(this))}continue(){var r;return((r=P(this,Ka))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var o,c,f,d,h,p,g,b,x,E,R,S,w,C,A,N,L,_,k,I;ue(this,Ka,VS({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(Y,H)=>{Ne(this,_n,ea).call(this,{type:"failed",failureCount:Y,error:H})},onPause:()=>{Ne(this,_n,ea).call(this,{type:"pause"})},onContinue:()=>{Ne(this,_n,ea).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,At).canRun(this)}));const a=this.state.status==="pending",i=!P(this,Ka).canStart();try{if(!a){Ne(this,_n,ea).call(this,{type:"pending",variables:r,isPaused:i}),await((c=(o=P(this,At).config).onMutate)==null?void 0:c.call(o,r,this));const H=await((d=(f=this.options).onMutate)==null?void 0:d.call(f,r));H!==this.state.context&&Ne(this,_n,ea).call(this,{type:"pending",context:H,variables:r,isPaused:i})}const Y=await P(this,Ka).start();return await((p=(h=P(this,At).config).onSuccess)==null?void 0:p.call(h,Y,r,this.state.context,this)),await((b=(g=this.options).onSuccess)==null?void 0:b.call(g,Y,r,this.state.context)),await((E=(x=P(this,At).config).onSettled)==null?void 0:E.call(x,Y,null,this.state.variables,this.state.context,this)),await((S=(R=this.options).onSettled)==null?void 0:S.call(R,Y,null,r,this.state.context)),Ne(this,_n,ea).call(this,{type:"success",data:Y}),Y}catch(Y){try{throw await((C=(w=P(this,At).config).onError)==null?void 0:C.call(w,Y,r,this.state.context,this)),await((N=(A=this.options).onError)==null?void 0:N.call(A,Y,r,this.state.context)),await((_=(L=P(this,At).config).onSettled)==null?void 0:_.call(L,void 0,Y,this.state.variables,this.state.context,this)),await((I=(k=this.options).onSettled)==null?void 0:I.call(k,void 0,Y,r,this.state.context)),Y}finally{Ne(this,_n,ea).call(this,{type:"error",error:Y})}}finally{P(this,At).runNext(this)}}},Dn=new WeakMap,At=new WeakMap,Ka=new WeakMap,_n=new WeakSet,ea=function(r){const a=i=>{switch(r.type){case"failed":return{...i,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...i,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:r.error,failureCount:i.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=a(this.state),ut.batch(()=>{P(this,Dn).forEach(i=>{i.onMutationUpdate(r)}),P(this,At).notify({mutation:this,type:"updated",action:r})})},Vx);function FS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pr,pn,Ql,Yx,TM=(Yx=class extends Ci{constructor(r={}){super();be(this,pr);be(this,pn);be(this,Ql);this.config=r,ue(this,pr,new Set),ue(this,pn,new Map),ue(this,Ql,0)}build(r,a,i){const o=new RM({mutationCache:this,mutationId:++wc(this,Ql)._,options:r.defaultMutationOptions(a),state:i});return this.add(o),o}add(r){P(this,pr).add(r);const a=Nc(r);if(typeof a=="string"){const i=P(this,pn).get(a);i?i.push(r):P(this,pn).set(a,[r])}this.notify({type:"added",mutation:r})}remove(r){if(P(this,pr).delete(r)){const a=Nc(r);if(typeof a=="string"){const i=P(this,pn).get(a);if(i)if(i.length>1){const o=i.indexOf(r);o!==-1&&i.splice(o,1)}else i[0]===r&&P(this,pn).delete(a)}}this.notify({type:"removed",mutation:r})}canRun(r){const a=Nc(r);if(typeof a=="string"){const i=P(this,pn).get(a),o=i==null?void 0:i.find(c=>c.state.status==="pending");return!o||o===r}else return!0}runNext(r){var i;const a=Nc(r);if(typeof a=="string"){const o=(i=P(this,pn).get(a))==null?void 0:i.find(c=>c!==r&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ut.batch(()=>{P(this,pr).forEach(r=>{this.notify({type:"removed",mutation:r})}),P(this,pr).clear(),P(this,pn).clear()})}getAll(){return Array.from(P(this,pr))}find(r){const a={exact:!0,...r};return this.getAll().find(i=>v0(a,i))}findAll(r={}){return this.getAll().filter(a=>v0(r,a))}notify(r){ut.batch(()=>{this.listeners.forEach(a=>{a(r)})})}resumePausedMutations(){const r=this.getAll().filter(a=>a.state.isPaused);return ut.batch(()=>Promise.all(r.map(a=>a.continue().catch(an))))}},pr=new WeakMap,pn=new WeakMap,Ql=new WeakMap,Yx);function Nc(t){var r;return(r=t.options.scope)==null?void 0:r.id}function b0(t){return{onFetch:(r,a)=>{var g,b,x,E,R;const i=r.options,o=(x=(b=(g=r.fetchOptions)==null?void 0:g.meta)==null?void 0:b.fetchMore)==null?void 0:x.direction,c=((E=r.state.data)==null?void 0:E.pages)||[],f=((R=r.state.data)==null?void 0:R.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let S=!1;const w=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(r.signal.aborted?S=!0:r.signal.addEventListener("abort",()=>{S=!0}),r.signal)})},C=qS(r.options,r.fetchOptions),A=async(N,L,_)=>{if(S)return Promise.reject();if(L==null&&N.pages.length)return Promise.resolve(N);const k={client:r.client,queryKey:r.queryKey,pageParam:L,direction:_?"backward":"forward",meta:r.options.meta};w(k);const I=await C(k),{maxPages:Y}=r.options,H=_?vM:pM;return{pages:H(N.pages,I,Y),pageParams:H(N.pageParams,L,Y)}};if(o&&c.length){const N=o==="backward",L=N?CM:x0,_={pages:c,pageParams:f},k=L(i,_);d=await A(_,k,N)}else{const N=t??c.length;do{const L=h===0?f[0]??i.initialPageParam:x0(i,d);if(h>0&&L==null)break;d=await A(d,L),h++}while(h<N)}return d};r.options.persister?r.fetchFn=()=>{var S,w;return(w=(S=r.options).persister)==null?void 0:w.call(S,p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},a)}:r.fetchFn=p}}}function x0(t,{pages:r,pageParams:a}){const i=r.length-1;return r.length>0?t.getNextPageParam(r[i],r,a[i],a):void 0}function CM(t,{pages:r,pageParams:a}){var i;return r.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,r[0],r,a[0],a):void 0}var tt,aa,sa,fi,di,ia,hi,mi,Gx,AM=(Gx=class{constructor(t={}){be(this,tt);be(this,aa);be(this,sa);be(this,fi);be(this,di);be(this,ia);be(this,hi);be(this,mi);ue(this,tt,t.queryCache||new EM),ue(this,aa,t.mutationCache||new TM),ue(this,sa,t.defaultOptions||{}),ue(this,fi,new Map),ue(this,di,new Map),ue(this,ia,0)}mount(){wc(this,ia)._++,P(this,ia)===1&&(ue(this,hi,xp.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,tt).onFocus())})),ue(this,mi,Zc.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,tt).onOnline())})))}unmount(){var t,r;wc(this,ia)._--,P(this,ia)===0&&((t=P(this,hi))==null||t.call(this),ue(this,hi,void 0),(r=P(this,mi))==null||r.call(this),ue(this,mi,void 0))}isFetching(t){return P(this,tt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return P(this,aa).findAll({...t,status:"pending"}).length}getQueryData(t){var a;const r=this.defaultQueryOptions({queryKey:t});return(a=P(this,tt).get(r.queryHash))==null?void 0:a.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),a=P(this,tt).build(this,r),i=a.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&a.isStaleByTime(ai(r.staleTime,a))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(t){return P(this,tt).findAll(t).map(({queryKey:r,state:a})=>{const i=a.data;return[r,i]})}setQueryData(t,r,a){const i=this.defaultQueryOptions({queryKey:t}),o=P(this,tt).get(i.queryHash),c=o==null?void 0:o.state.data,f=hM(r,c);if(f!==void 0)return P(this,tt).build(this,i).setData(f,{...a,manual:!0})}setQueriesData(t,r,a){return ut.batch(()=>P(this,tt).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,a)]))}getQueryState(t){var a;const r=this.defaultQueryOptions({queryKey:t});return(a=P(this,tt).get(r.queryHash))==null?void 0:a.state}removeQueries(t){const r=P(this,tt);ut.batch(()=>{r.findAll(t).forEach(a=>{r.remove(a)})})}resetQueries(t,r){const a=P(this,tt);return ut.batch(()=>(a.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const a={revert:!0,...r},i=ut.batch(()=>P(this,tt).findAll(t).map(o=>o.cancel(a)));return Promise.all(i).then(an).catch(an)}invalidateQueries(t,r={}){return ut.batch(()=>(P(this,tt).findAll(t).forEach(a=>{a.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},r)))}refetchQueries(t,r={}){const a={...r,cancelRefetch:r.cancelRefetch??!0},i=ut.batch(()=>P(this,tt).findAll(t).filter(o=>!o.isDisabled()).map(o=>{let c=o.fetch(void 0,a);return a.throwOnError||(c=c.catch(an)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(an)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const a=P(this,tt).build(this,r);return a.isStaleByTime(ai(r.staleTime,a))?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(an).catch(an)}fetchInfiniteQuery(t){return t.behavior=b0(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(an).catch(an)}ensureInfiniteQueryData(t){return t.behavior=b0(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Zc.isOnline()?P(this,aa).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,tt)}getMutationCache(){return P(this,aa)}getDefaultOptions(){return P(this,sa)}setDefaultOptions(t){ue(this,sa,t)}setQueryDefaults(t,r){P(this,fi).set(ls(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...P(this,fi).values()],a={};return r.forEach(i=>{Vl(t,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(t,r){P(this,di).set(ls(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...P(this,di).values()],a={};return r.forEach(i=>{Vl(t,i.mutationKey)&&Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(t){if(t._defaulted)return t;const r={...P(this,sa).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=yp(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===bp&&(r.enabled=!1),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...P(this,sa).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){P(this,tt).clear(),P(this,aa).clear()}},tt=new WeakMap,aa=new WeakMap,sa=new WeakMap,fi=new WeakMap,di=new WeakMap,ia=new WeakMap,hi=new WeakMap,mi=new WeakMap,Gx),_t,_e,Xl,Nt,Za,pi,la,Ln,Wl,vi,gi,Ja,es,oa,yi,Ue,$l,Sm,Em,Rm,Tm,Cm,Am,Nm,QS,Fx,NM=(Fx=class extends Ci{constructor(r,a){super();be(this,Ue);be(this,_t);be(this,_e);be(this,Xl);be(this,Nt);be(this,Za);be(this,pi);be(this,la);be(this,Ln);be(this,Wl);be(this,vi);be(this,gi);be(this,Ja);be(this,es);be(this,oa);be(this,yi,new Set);this.options=a,ue(this,_t,r),ue(this,Ln,null),ue(this,la,wm()),this.options.experimental_prefetchInRender||P(this,la).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,_e).addObserver(this),w0(P(this,_e),this.options)?Ne(this,Ue,$l).call(this):this.updateResult(),Ne(this,Ue,Tm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Om(P(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Om(P(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ne(this,Ue,Cm).call(this),Ne(this,Ue,Am).call(this),P(this,_e).removeObserver(this)}setOptions(r,a){const i=this.options,o=P(this,_e);if(this.options=P(this,_t).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vn(this.options.enabled,P(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ne(this,Ue,Nm).call(this),P(this,_e).setOptions(this.options),i._defaulted&&!Kc(this.options,i)&&P(this,_t).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,_e),observer:this});const c=this.hasListeners();c&&S0(P(this,_e),o,this.options,i)&&Ne(this,Ue,$l).call(this),this.updateResult(a),c&&(P(this,_e)!==o||vn(this.options.enabled,P(this,_e))!==vn(i.enabled,P(this,_e))||ai(this.options.staleTime,P(this,_e))!==ai(i.staleTime,P(this,_e)))&&Ne(this,Ue,Sm).call(this);const f=Ne(this,Ue,Em).call(this);c&&(P(this,_e)!==o||vn(this.options.enabled,P(this,_e))!==vn(i.enabled,P(this,_e))||f!==P(this,oa))&&Ne(this,Ue,Rm).call(this,f)}getOptimisticResult(r){const a=P(this,_t).getQueryCache().build(P(this,_t),r),i=this.createResult(a,r);return jM(this,i)&&(ue(this,Nt,i),ue(this,pi,this.options),ue(this,Za,P(this,_e).state)),i}getCurrentResult(){return P(this,Nt)}trackResult(r,a){const i={};return Object.keys(r).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),a==null||a(o),r[o])})}),i}trackProp(r){P(this,yi).add(r)}getCurrentQuery(){return P(this,_e)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const a=P(this,_t).defaultQueryOptions(r),i=P(this,_t).getQueryCache().build(P(this,_t),a);return i.fetch().then(()=>this.createResult(i,a))}fetch(r){return Ne(this,Ue,$l).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,Nt)))}createResult(r,a){var Y;const i=P(this,_e),o=this.options,c=P(this,Nt),f=P(this,Za),d=P(this,pi),p=r!==i?r.state:P(this,Xl),{state:g}=r;let b={...g},x=!1,E;if(a._optimisticResults){const H=this.hasListeners(),K=!H&&w0(r,a),Z=H&&S0(r,i,a,o);(K||Z)&&(b={...b,...GS(g.data,r.options)}),a._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:R,errorUpdatedAt:S,status:w}=b;if(a.select&&b.data!==void 0)if(c&&b.data===(f==null?void 0:f.data)&&a.select===P(this,Wl))E=P(this,vi);else try{ue(this,Wl,a.select),E=a.select(b.data),E=xm(c==null?void 0:c.data,E,a),ue(this,vi,E),ue(this,Ln,null)}catch(H){ue(this,Ln,H)}else E=b.data;if(a.placeholderData!==void 0&&E===void 0&&w==="pending"){let H;if(c!=null&&c.isPlaceholderData&&a.placeholderData===(d==null?void 0:d.placeholderData))H=c.data;else if(H=typeof a.placeholderData=="function"?a.placeholderData((Y=P(this,gi))==null?void 0:Y.state.data,P(this,gi)):a.placeholderData,a.select&&H!==void 0)try{H=a.select(H),ue(this,Ln,null)}catch(K){ue(this,Ln,K)}H!==void 0&&(w="success",E=xm(c==null?void 0:c.data,H,a),x=!0)}P(this,Ln)&&(R=P(this,Ln),E=P(this,vi),S=Date.now(),w="error");const C=b.fetchStatus==="fetching",A=w==="pending",N=w==="error",L=A&&C,_=E!==void 0,I={status:w,fetchStatus:b.fetchStatus,isPending:A,isSuccess:w==="success",isError:N,isInitialLoading:L,isLoading:L,data:E,dataUpdatedAt:b.dataUpdatedAt,error:R,errorUpdatedAt:S,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:C,isRefetching:C&&!A,isLoadingError:N&&!_,isPaused:b.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:N&&_,isStale:wp(r,a),refetch:this.refetch,promise:P(this,la)};if(this.options.experimental_prefetchInRender){const H=ne=>{I.status==="error"?ne.reject(I.error):I.data!==void 0&&ne.resolve(I.data)},K=()=>{const ne=ue(this,la,I.promise=wm());H(ne)},Z=P(this,la);switch(Z.status){case"pending":r.queryHash===i.queryHash&&H(Z);break;case"fulfilled":(I.status==="error"||I.data!==Z.value)&&K();break;case"rejected":(I.status!=="error"||I.error!==Z.reason)&&K();break}}return I}updateResult(r){const a=P(this,Nt),i=this.createResult(P(this,_e),this.options);if(ue(this,Za,P(this,_e).state),ue(this,pi,this.options),P(this,Za).data!==void 0&&ue(this,gi,P(this,_e)),Kc(i,a))return;ue(this,Nt,i);const o={},c=()=>{if(!a)return!0;const{notifyOnChangeProps:f}=this.options,d=typeof f=="function"?f():f;if(d==="all"||!d&&!P(this,yi).size)return!0;const h=new Set(d??P(this,yi));return this.options.throwOnError&&h.add("error"),Object.keys(P(this,Nt)).some(p=>{const g=p;return P(this,Nt)[g]!==a[g]&&h.has(g)})};(r==null?void 0:r.listeners)!==!1&&c()&&(o.listeners=!0),Ne(this,Ue,QS).call(this,{...o,...r})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ne(this,Ue,Tm).call(this)}},_t=new WeakMap,_e=new WeakMap,Xl=new WeakMap,Nt=new WeakMap,Za=new WeakMap,pi=new WeakMap,la=new WeakMap,Ln=new WeakMap,Wl=new WeakMap,vi=new WeakMap,gi=new WeakMap,Ja=new WeakMap,es=new WeakMap,oa=new WeakMap,yi=new WeakMap,Ue=new WeakSet,$l=function(r){Ne(this,Ue,Nm).call(this);let a=P(this,_e).fetch(this.options,r);return r!=null&&r.throwOnError||(a=a.catch(an)),a},Sm=function(){Ne(this,Ue,Cm).call(this);const r=ai(this.options.staleTime,P(this,_e));if(is||P(this,Nt).isStale||!ym(r))return;const i=$S(P(this,Nt).dataUpdatedAt,r)+1;ue(this,Ja,setTimeout(()=>{P(this,Nt).isStale||this.updateResult()},i))},Em=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,_e)):this.options.refetchInterval)??!1},Rm=function(r){Ne(this,Ue,Am).call(this),ue(this,oa,r),!(is||vn(this.options.enabled,P(this,_e))===!1||!ym(P(this,oa))||P(this,oa)===0)&&ue(this,es,setInterval(()=>{(this.options.refetchIntervalInBackground||xp.isFocused())&&Ne(this,Ue,$l).call(this)},P(this,oa)))},Tm=function(){Ne(this,Ue,Sm).call(this),Ne(this,Ue,Rm).call(this,Ne(this,Ue,Em).call(this))},Cm=function(){P(this,Ja)&&(clearTimeout(P(this,Ja)),ue(this,Ja,void 0))},Am=function(){P(this,es)&&(clearInterval(P(this,es)),ue(this,es,void 0))},Nm=function(){const r=P(this,_t).getQueryCache().build(P(this,_t),this.options);if(r===P(this,_e))return;const a=P(this,_e);ue(this,_e,r),ue(this,Xl,r.state),this.hasListeners()&&(a==null||a.removeObserver(this),r.addObserver(this))},QS=function(r){ut.batch(()=>{r.listeners&&this.listeners.forEach(a=>{a(P(this,Nt))}),P(this,_t).getQueryCache().notify({query:P(this,_e),type:"observerResultsUpdated"})})},Fx);function OM(t,r){return vn(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function w0(t,r){return OM(t,r)||t.state.data!==void 0&&Om(t,r,r.refetchOnMount)}function Om(t,r,a){if(vn(r.enabled,t)!==!1){const i=typeof a=="function"?a(t):a;return i==="always"||i!==!1&&wp(t,r)}return!1}function S0(t,r,a,i){return(t!==r||vn(i.enabled,t)===!1)&&(!a.suspense||t.state.status!=="error")&&wp(t,a)}function wp(t,r){return vn(r.enabled,t)!==!1&&t.isStaleByTime(ai(r.staleTime,t))}function jM(t,r){return!Kc(t.getCurrentResult(),r)}var ca,ua,Lt,vr,Sr,$c,jm,Qx,MM=(Qx=class extends Ci{constructor(a,i){super();be(this,Sr);be(this,ca);be(this,ua);be(this,Lt);be(this,vr);ue(this,ca,a),this.setOptions(i),this.bindMethods(),Ne(this,Sr,$c).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var o;const i=this.options;this.options=P(this,ca).defaultMutationOptions(a),Kc(this.options,i)||P(this,ca).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(this,Lt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&ls(i.mutationKey)!==ls(this.options.mutationKey)?this.reset():((o=P(this,Lt))==null?void 0:o.state.status)==="pending"&&P(this,Lt).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=P(this,Lt))==null||a.removeObserver(this)}onMutationUpdate(a){Ne(this,Sr,$c).call(this),Ne(this,Sr,jm).call(this,a)}getCurrentResult(){return P(this,ua)}reset(){var a;(a=P(this,Lt))==null||a.removeObserver(this),ue(this,Lt,void 0),Ne(this,Sr,$c).call(this),Ne(this,Sr,jm).call(this)}mutate(a,i){var o;return ue(this,vr,i),(o=P(this,Lt))==null||o.removeObserver(this),ue(this,Lt,P(this,ca).getMutationCache().build(P(this,ca),this.options)),P(this,Lt).addObserver(this),P(this,Lt).execute(a)}},ca=new WeakMap,ua=new WeakMap,Lt=new WeakMap,vr=new WeakMap,Sr=new WeakSet,$c=function(){var i;const a=((i=P(this,Lt))==null?void 0:i.state)??FS();ue(this,ua,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},jm=function(a){ut.batch(()=>{var i,o,c,f,d,h,p,g;if(P(this,vr)&&this.hasListeners()){const b=P(this,ua).variables,x=P(this,ua).context;(a==null?void 0:a.type)==="success"?((o=(i=P(this,vr)).onSuccess)==null||o.call(i,a.data,b,x),(f=(c=P(this,vr)).onSettled)==null||f.call(c,a.data,null,b,x)):(a==null?void 0:a.type)==="error"&&((h=(d=P(this,vr)).onError)==null||h.call(d,a.error,b,x),(g=(p=P(this,vr)).onSettled)==null||g.call(p,void 0,a.error,b,x))}this.listeners.forEach(b=>{b(P(this,ua))})})},Qx),XS=y.createContext(void 0),Bn=t=>{const r=y.useContext(XS);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},DM=({client:t,children:r})=>(y.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),v.jsx(XS.Provider,{value:t,children:r})),WS=y.createContext(!1),_M=()=>y.useContext(WS);WS.Provider;function LM(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var zM=y.createContext(LM()),PM=()=>y.useContext(zM);function KS(t,r){return typeof t=="function"?t(...r):!!t}function Mm(){}var kM=(t,r)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(r.isReset()||(t.retryOnMount=!1))},UM=t=>{y.useEffect(()=>{t.clearReset()},[t])},$M=({result:t,errorResetBoundary:r,throwOnError:a,query:i,suspense:o})=>t.isError&&!r.isReset()&&!t.isFetching&&i&&(o&&t.data===void 0||KS(a,[t.error,i])),HM=t=>{const r=t.staleTime;t.suspense&&(t.staleTime=typeof r=="function"?(...a)=>Math.max(r(...a),1e3):Math.max(r??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},qM=(t,r)=>t.isLoading&&t.isFetching&&!r,BM=(t,r)=>(t==null?void 0:t.suspense)&&r.isPending,E0=(t,r,a)=>r.fetchOptimistic(t).catch(()=>{a.clearReset()});function IM(t,r,a){var b,x,E,R,S;const i=Bn(),o=_M(),c=PM(),f=i.defaultQueryOptions(t);(x=(b=i.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||x.call(b,f),f._optimisticResults=o?"isRestoring":"optimistic",HM(f),kM(f,c),UM(c);const d=!i.getQueryCache().get(f.queryHash),[h]=y.useState(()=>new r(i,f)),p=h.getOptimisticResult(f),g=!o&&t.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(w=>{const C=g?h.subscribe(ut.batchCalls(w)):Mm;return h.updateResult(),C},[h,g]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),y.useEffect(()=>{h.setOptions(f,{listeners:!1})},[f,h]),BM(f,p))throw E0(f,h,c);if($M({result:p,errorResetBoundary:c,throwOnError:f.throwOnError,query:i.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw p.error;if((R=(E=i.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||R.call(E,f,p),f.experimental_prefetchInRender&&!is&&qM(p,o)){const w=d?E0(f,h,c):(S=i.getQueryCache().get(f.queryHash))==null?void 0:S.promise;w==null||w.catch(Mm).finally(()=>{h.updateResult()})}return f.notifyOnChangeProps?p:h.trackResult(p)}function fs(t,r){return IM(t,NM)}function yu(t,r){const a=Bn(),[i]=y.useState(()=>new MM(a,t));y.useEffect(()=>{i.setOptions(t)},[i,t]);const o=y.useSyncExternalStore(y.useCallback(f=>i.subscribe(ut.batchCalls(f)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=y.useCallback((f,d)=>{i.mutate(f,d).catch(Mm)},[i]);if(o.error&&KS(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var _l={},R0;function VM(){if(R0)return _l;R0=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.parse=f,_l.serialize=p;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,c=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function f(x,E){const R=new c,S=x.length;if(S<2)return R;const w=(E==null?void 0:E.decode)||g;let C=0;do{const A=x.indexOf("=",C);if(A===-1)break;const N=x.indexOf(";",C),L=N===-1?S:N;if(A>L){C=x.lastIndexOf(";",A-1)+1;continue}const _=d(x,C,A),k=h(x,A,_),I=x.slice(_,k);if(R[I]===void 0){let Y=d(x,A+1,L),H=h(x,L,Y);const K=w(x.slice(Y,H));R[I]=K}C=L+1}while(C<S);return R}function d(x,E,R){do{const S=x.charCodeAt(E);if(S!==32&&S!==9)return E}while(++E<R);return R}function h(x,E,R){for(;E>R;){const S=x.charCodeAt(--E);if(S!==32&&S!==9)return E+1}return R}function p(x,E,R){const S=(R==null?void 0:R.encode)||encodeURIComponent;if(!t.test(x))throw new TypeError(`argument name is invalid: ${x}`);const w=S(E);if(!r.test(w))throw new TypeError(`argument val is invalid: ${E}`);let C=x+"="+w;if(!R)return C;if(R.maxAge!==void 0){if(!Number.isInteger(R.maxAge))throw new TypeError(`option maxAge is invalid: ${R.maxAge}`);C+="; Max-Age="+R.maxAge}if(R.domain){if(!a.test(R.domain))throw new TypeError(`option domain is invalid: ${R.domain}`);C+="; Domain="+R.domain}if(R.path){if(!i.test(R.path))throw new TypeError(`option path is invalid: ${R.path}`);C+="; Path="+R.path}if(R.expires){if(!b(R.expires)||!Number.isFinite(R.expires.valueOf()))throw new TypeError(`option expires is invalid: ${R.expires}`);C+="; Expires="+R.expires.toUTCString()}if(R.httpOnly&&(C+="; HttpOnly"),R.secure&&(C+="; Secure"),R.partitioned&&(C+="; Partitioned"),R.priority)switch(typeof R.priority=="string"?R.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${R.priority}`)}if(R.sameSite)switch(typeof R.sameSite=="string"?R.sameSite.toLowerCase():R.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${R.sameSite}`)}return C}function g(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function b(x){return o.call(x)==="[object Date]"}return _l}VM();/**
|
|
259
|
+
* react-router v7.3.0
|
|
260
|
+
*
|
|
261
|
+
* Copyright (c) Remix Software Inc.
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the MIT license found in the
|
|
264
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
265
|
+
*
|
|
266
|
+
* @license MIT
|
|
267
|
+
*/var T0="popstate";function YM(t={}){function r(i,o){let{pathname:c,search:f,hash:d}=i.location;return Dm("",{pathname:c,search:f,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(i,o){return typeof o=="string"?o:Yl(o)}return FM(r,a,null,t)}function Ke(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function $n(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function GM(){return Math.random().toString(36).substring(2,10)}function C0(t,r){return{usr:t.state,key:t.key,idx:r}}function Dm(t,r,a=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?Ai(r):r,state:a,key:r&&r.key||i||GM()}}function Yl({pathname:t="/",search:r="",hash:a=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function Ai(t){let r={};if(t){let a=t.indexOf("#");a>=0&&(r.hash=t.substring(a),t=t.substring(0,a));let i=t.indexOf("?");i>=0&&(r.search=t.substring(i),t=t.substring(0,i)),t&&(r.pathname=t)}return r}function FM(t,r,a,i={}){let{window:o=document.defaultView,v5Compat:c=!1}=i,f=o.history,d="POP",h=null,p=g();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function g(){return(f.state||{idx:null}).idx}function b(){d="POP";let w=g(),C=w==null?null:w-p;p=w,h&&h({action:d,location:S.location,delta:C})}function x(w,C){d="PUSH";let A=Dm(S.location,w,C);p=g()+1;let N=C0(A,p),L=S.createHref(A);try{f.pushState(N,"",L)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(L)}c&&h&&h({action:d,location:S.location,delta:1})}function E(w,C){d="REPLACE";let A=Dm(S.location,w,C);p=g();let N=C0(A,p),L=S.createHref(A);f.replaceState(N,"",L),c&&h&&h({action:d,location:S.location,delta:0})}function R(w){let C=o.location.origin!=="null"?o.location.origin:o.location.href,A=typeof w=="string"?w:Yl(w);return A=A.replace(/ $/,"%20"),Ke(C,`No window.location.(origin|href) available to create URL for href: ${A}`),new URL(A,C)}let S={get action(){return d},get location(){return t(o,f)},listen(w){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(T0,b),h=w,()=>{o.removeEventListener(T0,b),h=null}},createHref(w){return r(o,w)},createURL:R,encodeLocation(w){let C=R(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:x,replace:E,go(w){return f.go(w)}};return S}function ZS(t,r,a="/"){return QM(t,r,a,!1)}function QM(t,r,a,i){let o=typeof r=="string"?Ai(r):r,c=Tr(o.pathname||"/",a);if(c==null)return null;let f=JS(t);XM(f);let d=null;for(let h=0;d==null&&h<f.length;++h){let p=iD(c);d=aD(f[h],p,i)}return d}function JS(t,r=[],a=[],i=""){let o=(c,f,d)=>{let h={relativePath:d===void 0?c.path||"":d,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};h.relativePath.startsWith("/")&&(Ke(h.relativePath.startsWith(i),`Absolute route path "${h.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(i.length));let p=wr([i,h.relativePath]),g=a.concat(h);c.children&&c.children.length>0&&(Ke(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),JS(c.children,r,g,p)),!(c.path==null&&!c.index)&&r.push({path:p,score:nD(p,c.index),routesMeta:g})};return t.forEach((c,f)=>{var d;if(c.path===""||!((d=c.path)!=null&&d.includes("?")))o(c,f);else for(let h of eE(c.path))o(c,f,h)}),r}function eE(t){let r=t.split("/");if(r.length===0)return[];let[a,...i]=r,o=a.endsWith("?"),c=a.replace(/\?$/,"");if(i.length===0)return o?[c,""]:[c];let f=eE(i.join("/")),d=[];return d.push(...f.map(h=>h===""?c:[c,h].join("/"))),o&&d.push(...f),d.map(h=>t.startsWith("/")&&h===""?"/":h)}function XM(t){t.sort((r,a)=>r.score!==a.score?a.score-r.score:rD(r.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var WM=/^:[\w-]+$/,KM=3,ZM=2,JM=1,eD=10,tD=-2,A0=t=>t==="*";function nD(t,r){let a=t.split("/"),i=a.length;return a.some(A0)&&(i+=tD),r&&(i+=ZM),a.filter(o=>!A0(o)).reduce((o,c)=>o+(WM.test(c)?KM:c===""?JM:eD),i)}function rD(t,r){return t.length===r.length&&t.slice(0,-1).every((i,o)=>i===r[o])?t[t.length-1]-r[r.length-1]:0}function aD(t,r,a=!1){let{routesMeta:i}=t,o={},c="/",f=[];for(let d=0;d<i.length;++d){let h=i[d],p=d===i.length-1,g=c==="/"?r:r.slice(c.length)||"/",b=Jc({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),x=h.route;if(!b&&p&&a&&!i[i.length-1].route.index&&(b=Jc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!b)return null;Object.assign(o,b.params),f.push({params:o,pathname:wr([c,b.pathname]),pathnameBase:uD(wr([c,b.pathnameBase])),route:x}),b.pathnameBase!=="/"&&(c=wr([c,b.pathnameBase]))}return f}function Jc(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[a,i]=sD(t.path,t.caseSensitive,t.end),o=r.match(a);if(!o)return null;let c=o[0],f=c.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:i.reduce((p,{paramName:g,isOptional:b},x)=>{if(g==="*"){let R=d[x]||"";f=c.slice(0,c.length-R.length).replace(/(.)\/+$/,"$1")}const E=d[x];return b&&!E?p[g]=void 0:p[g]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:f,pattern:t}}function sD(t,r=!1,a=!0){$n(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,d,h)=>(i.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,r?void 0:"i"),i]}function iD(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return $n(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),t}}function Tr(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let a=r.endsWith("/")?r.length-1:r.length,i=t.charAt(a);return i&&i!=="/"?null:t.slice(a)||"/"}function lD(t,r="/"){let{pathname:a,search:i="",hash:o=""}=typeof t=="string"?Ai(t):t;return{pathname:a?a.startsWith("/")?a:oD(a,r):r,search:fD(i),hash:dD(o)}}function oD(t,r){let a=r.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function uh(t,r,a,i){return`Cannot include a '${t}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function cD(t){return t.filter((r,a)=>a===0||r.route.path&&r.route.path.length>0)}function tE(t){let r=cD(t);return r.map((a,i)=>i===r.length-1?a.pathname:a.pathnameBase)}function nE(t,r,a,i=!1){let o;typeof t=="string"?o=Ai(t):(o={...t},Ke(!o.pathname||!o.pathname.includes("?"),uh("?","pathname","search",o)),Ke(!o.pathname||!o.pathname.includes("#"),uh("#","pathname","hash",o)),Ke(!o.search||!o.search.includes("#"),uh("#","search","hash",o)));let c=t===""||o.pathname==="",f=c?"/":o.pathname,d;if(f==null)d=a;else{let b=r.length-1;if(!i&&f.startsWith("..")){let x=f.split("/");for(;x[0]==="..";)x.shift(),b-=1;o.pathname=x.join("/")}d=b>=0?r[b]:"/"}let h=lD(o,d),p=f&&f!=="/"&&f.endsWith("/"),g=(c||f===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var wr=t=>t.join("/").replace(/\/\/+/g,"/"),uD=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),fD=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dD=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function hD(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var rE=["POST","PUT","PATCH","DELETE"];new Set(rE);var mD=["GET",...rE];new Set(mD);var Ni=y.createContext(null);Ni.displayName="DataRouter";var bu=y.createContext(null);bu.displayName="DataRouterState";var aE=y.createContext({isTransitioning:!1});aE.displayName="ViewTransition";var pD=y.createContext(new Map);pD.displayName="Fetchers";var vD=y.createContext(null);vD.displayName="Await";var In=y.createContext(null);In.displayName="Navigation";var ro=y.createContext(null);ro.displayName="Location";var Vn=y.createContext({outlet:null,matches:[],isDataRoute:!1});Vn.displayName="Route";var Sp=y.createContext(null);Sp.displayName="RouteError";function gD(t,{relative:r}={}){Ke(ao(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=y.useContext(In),{hash:o,pathname:c,search:f}=so(t,{relative:r}),d=c;return a!=="/"&&(d=c==="/"?a:wr([a,c])),i.createHref({pathname:d,search:f,hash:o})}function ao(){return y.useContext(ro)!=null}function va(){return Ke(ao(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(ro).location}var sE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function iE(t){y.useContext(In).static||y.useLayoutEffect(t)}function Oi(){let{isDataRoute:t}=y.useContext(Vn);return t?jD():yD()}function yD(){Ke(ao(),"useNavigate() may be used only in the context of a <Router> component.");let t=y.useContext(Ni),{basename:r,navigator:a}=y.useContext(In),{matches:i}=y.useContext(Vn),{pathname:o}=va(),c=JSON.stringify(tE(i)),f=y.useRef(!1);return iE(()=>{f.current=!0}),y.useCallback((h,p={})=>{if($n(f.current,sE),!f.current)return;if(typeof h=="number"){a.go(h);return}let g=nE(h,JSON.parse(c),o,p.relative==="path");t==null&&r!=="/"&&(g.pathname=g.pathname==="/"?r:wr([r,g.pathname])),(p.replace?a.replace:a.push)(g,p.state,p)},[r,a,c,o,t])}y.createContext(null);function lE(){let{matches:t}=y.useContext(Vn),r=t[t.length-1];return r?r.params:{}}function so(t,{relative:r}={}){let{matches:a}=y.useContext(Vn),{pathname:i}=va(),o=JSON.stringify(tE(a));return y.useMemo(()=>nE(t,JSON.parse(o),i,r==="path"),[t,o,i,r])}function bD(t,r){return oE(t,r)}function oE(t,r,a,i){var A;Ke(ao(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:c}=y.useContext(In),{matches:f}=y.useContext(Vn),d=f[f.length-1],h=d?d.params:{},p=d?d.pathname:"/",g=d?d.pathnameBase:"/",b=d&&d.route;{let N=b&&b.path||"";cE(p,!b||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
268
|
+
|
|
269
|
+
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let x=va(),E;if(r){let N=typeof r=="string"?Ai(r):r;Ke(g==="/"||((A=N.pathname)==null?void 0:A.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${N.pathname}" was given in the \`location\` prop.`),E=N}else E=x;let R=E.pathname||"/",S=R;if(g!=="/"){let N=g.replace(/^\//,"").split("/");S="/"+R.replace(/^\//,"").split("/").slice(N.length).join("/")}let w=!c&&a&&a.matches&&a.matches.length>0?a.matches:ZS(t,{pathname:S});$n(b||w!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),$n(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=RD(w&&w.map(N=>Object.assign({},N,{params:Object.assign({},h,N.params),pathname:wr([g,o.encodeLocation?o.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?g:wr([g,o.encodeLocation?o.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),f,a,i);return r&&C?y.createElement(ro.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},C):C}function xD(){let t=OD(),r=hD(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:c},"ErrorBoundary")," or"," ",y.createElement("code",{style:c},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},r),a?y.createElement("pre",{style:o},a):null,f)}var wD=y.createElement(xD,null),SD=class extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?y.createElement(Vn.Provider,{value:this.props.routeContext},y.createElement(Sp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ED({routeContext:t,match:r,children:a}){let i=y.useContext(Ni);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),y.createElement(Vn.Provider,{value:t},a)}function RD(t,r=[],a=null,i=null){if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(r.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let o=t,c=a==null?void 0:a.errors;if(c!=null){let h=o.findIndex(p=>p.route.id&&(c==null?void 0:c[p.route.id])!==void 0);Ke(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let f=!1,d=-1;if(a)for(let h=0;h<o.length;h++){let p=o[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=h),p.route.id){let{loaderData:g,errors:b}=a,x=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||x){f=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((h,p,g)=>{let b,x=!1,E=null,R=null;a&&(b=c&&p.route.id?c[p.route.id]:void 0,E=p.route.errorElement||wD,f&&(d<0&&g===0?(cE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,R=null):d===g&&(x=!0,R=p.route.hydrateFallbackElement||null)));let S=r.concat(o.slice(0,g+1)),w=()=>{let C;return b?C=E:x?C=R:p.route.Component?C=y.createElement(p.route.Component,null):p.route.element?C=p.route.element:C=h,y.createElement(ED,{match:p,routeContext:{outlet:h,matches:S,isDataRoute:a!=null},children:C})};return a&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?y.createElement(SD,{location:a.location,revalidation:a.revalidation,component:E,error:b,children:w(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):w()},null)}function Ep(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TD(t){let r=y.useContext(Ni);return Ke(r,Ep(t)),r}function CD(t){let r=y.useContext(bu);return Ke(r,Ep(t)),r}function AD(t){let r=y.useContext(Vn);return Ke(r,Ep(t)),r}function Rp(t){let r=AD(t),a=r.matches[r.matches.length-1];return Ke(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}function ND(){return Rp("useRouteId")}function OD(){var i;let t=y.useContext(Sp),r=CD("useRouteError"),a=Rp("useRouteError");return t!==void 0?t:(i=r.errors)==null?void 0:i[a]}function jD(){let{router:t}=TD("useNavigate"),r=Rp("useNavigate"),a=y.useRef(!1);return iE(()=>{a.current=!0}),y.useCallback(async(o,c={})=>{$n(a.current,sE),a.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:r,...c}))},[t,r])}var N0={};function cE(t,r,a){!r&&!N0[t]&&(N0[t]=!0,$n(!1,a))}y.memo(MD);function MD({routes:t,future:r,state:a}){return oE(t,void 0,a,r)}function Ba(t){Ke(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function DD({basename:t="/",children:r=null,location:a,navigationType:i="POP",navigator:o,static:c=!1}){Ke(!ao(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=t.replace(/^\/*/,"/"),d=y.useMemo(()=>({basename:f,navigator:o,static:c,future:{}}),[f,o,c]);typeof a=="string"&&(a=Ai(a));let{pathname:h="/",search:p="",hash:g="",state:b=null,key:x="default"}=a,E=y.useMemo(()=>{let R=Tr(h,f);return R==null?null:{location:{pathname:R,search:p,hash:g,state:b,key:x},navigationType:i}},[f,h,p,g,b,x,i]);return $n(E!=null,`<Router basename="${f}"> is not able to match the URL "${h}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:y.createElement(In.Provider,{value:d},y.createElement(ro.Provider,{children:r,value:E}))}function _D({children:t,location:r}){return bD(_m(t),r)}function _m(t,r=[]){let a=[];return y.Children.forEach(t,(i,o)=>{if(!y.isValidElement(i))return;let c=[...r,o];if(i.type===y.Fragment){a.push.apply(a,_m(i.props.children,c));return}Ke(i.type===Ba,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ke(!i.props.index||!i.props.children,"An index route cannot have child routes.");let f={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(f.children=_m(i.props.children,c)),a.push(f)}),a}var Hc="get",qc="application/x-www-form-urlencoded";function xu(t){return t!=null&&typeof t.tagName=="string"}function LD(t){return xu(t)&&t.tagName.toLowerCase()==="button"}function zD(t){return xu(t)&&t.tagName.toLowerCase()==="form"}function PD(t){return xu(t)&&t.tagName.toLowerCase()==="input"}function kD(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function UD(t,r){return t.button===0&&(!r||r==="_self")&&!kD(t)}var Oc=null;function $D(){if(Oc===null)try{new FormData(document.createElement("form"),0),Oc=!1}catch{Oc=!0}return Oc}var HD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fh(t){return t!=null&&!HD.has(t)?($n(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qc}"`),null):t}function qD(t,r){let a,i,o,c,f;if(zD(t)){let d=t.getAttribute("action");i=d?Tr(d,r):null,a=t.getAttribute("method")||Hc,o=fh(t.getAttribute("enctype"))||qc,c=new FormData(t)}else if(LD(t)||PD(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=t.getAttribute("formaction")||d.getAttribute("action");if(i=h?Tr(h,r):null,a=t.getAttribute("formmethod")||d.getAttribute("method")||Hc,o=fh(t.getAttribute("formenctype"))||fh(d.getAttribute("enctype"))||qc,c=new FormData(d,t),!$D()){let{name:p,type:g,value:b}=t;if(g==="image"){let x=p?`${p}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else p&&c.append(p,b)}}else{if(xu(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Hc,i=null,o=qc,f=t}return c&&o==="text/plain"&&(f=c,c=void 0),{action:i,method:a.toLowerCase(),encType:o,formData:c,body:f}}function Tp(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}async function BD(t,r){if(t.id in r)return r[t.id];try{let a=await import(t.module);return r[t.id]=a,a}catch(a){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ID(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function VD(t,r,a){let i=await Promise.all(t.map(async o=>{let c=r.routes[o.route.id];if(c){let f=await BD(c,a);return f.links?f.links():[]}return[]}));return QD(i.flat(1).filter(ID).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function O0(t,r,a,i,o,c){let f=(h,p)=>a[p]?h.route.id!==a[p].route.id:!0,d=(h,p)=>{var g;return a[p].pathname!==h.pathname||((g=a[p].route.path)==null?void 0:g.endsWith("*"))&&a[p].params["*"]!==h.params["*"]};return c==="assets"?r.filter((h,p)=>f(h,p)||d(h,p)):c==="data"?r.filter((h,p)=>{var b;let g=i.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(f(h,p)||d(h,p))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=a[0])==null?void 0:b.params)||{},nextUrl:new URL(t,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function YD(t,r,{includeHydrateFallback:a}={}){return GD(t.map(i=>{let o=r.routes[i.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function GD(t){return[...new Set(t)]}function FD(t){let r={},a=Object.keys(t).sort();for(let i of a)r[i]=t[i];return r}function QD(t,r){let a=new Set;return new Set(r),t.reduce((i,o)=>{let c=JSON.stringify(FD(o));return a.has(c)||(a.add(c),i.push({key:c,link:o})),i},[])}function XD(t,r){let a=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return a.pathname==="/"?a.pathname="_root.data":r&&Tr(a.pathname,r)==="/"?a.pathname=`${r.replace(/\/$/,"")}/_root.data`:a.pathname=`${a.pathname.replace(/\/$/,"")}.data`,a}function uE(){let t=y.useContext(Ni);return Tp(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function WD(){let t=y.useContext(bu);return Tp(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Cp=y.createContext(void 0);Cp.displayName="FrameworkContext";function fE(){let t=y.useContext(Cp);return Tp(t,"You must render this element inside a <HydratedRouter> element"),t}function KD(t,r){let a=y.useContext(Cp),[i,o]=y.useState(!1),[c,f]=y.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:b}=r,x=y.useRef(null);y.useEffect(()=>{if(t==="render"&&f(!0),t==="viewport"){let S=C=>{C.forEach(A=>{f(A.isIntersecting)})},w=new IntersectionObserver(S,{threshold:.5});return x.current&&w.observe(x.current),()=>{w.disconnect()}}},[t]),y.useEffect(()=>{if(i){let S=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(S)}}},[i]);let E=()=>{o(!0)},R=()=>{o(!1),f(!1)};return a?t!=="intent"?[c,x,{}]:[c,x,{onFocus:Ll(d,E),onBlur:Ll(h,R),onMouseEnter:Ll(p,E),onMouseLeave:Ll(g,R),onTouchStart:Ll(b,E)}]:[!1,x,{}]}function Ll(t,r){return a=>{t&&t(a),a.defaultPrevented||r(a)}}function ZD({page:t,...r}){let{router:a}=uE(),i=y.useMemo(()=>ZS(a.routes,t,a.basename),[a.routes,t,a.basename]);return i?y.createElement(e_,{page:t,matches:i,...r}):null}function JD(t){let{manifest:r,routeModules:a}=fE(),[i,o]=y.useState([]);return y.useEffect(()=>{let c=!1;return VD(t,r,a).then(f=>{c||o(f)}),()=>{c=!0}},[t,r,a]),i}function e_({page:t,matches:r,...a}){let i=va(),{manifest:o,routeModules:c}=fE(),{basename:f}=uE(),{loaderData:d,matches:h}=WD(),p=y.useMemo(()=>O0(t,r,h,o,i,"data"),[t,r,h,o,i]),g=y.useMemo(()=>O0(t,r,h,o,i,"assets"),[t,r,h,o,i]),b=y.useMemo(()=>{if(t===i.pathname+i.search+i.hash)return[];let R=new Set,S=!1;if(r.forEach(C=>{var N;let A=o.routes[C.route.id];!A||!A.hasLoader||(!p.some(L=>L.route.id===C.route.id)&&C.route.id in d&&((N=c[C.route.id])!=null&&N.shouldRevalidate)||A.hasClientLoader?S=!0:R.add(C.route.id))}),R.size===0)return[];let w=XD(t,f);return S&&R.size>0&&w.searchParams.set("_routes",r.filter(C=>R.has(C.route.id)).map(C=>C.route.id).join(",")),[w.pathname+w.search]},[f,d,i,o,p,r,t,c]),x=y.useMemo(()=>YD(g,o),[g,o]),E=JD(g);return y.createElement(y.Fragment,null,b.map(R=>y.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...a})),x.map(R=>y.createElement("link",{key:R,rel:"modulepreload",href:R,...a})),E.map(({key:R,link:S})=>y.createElement("link",{key:R,...S})))}function t_(...t){return r=>{t.forEach(a=>{typeof a=="function"?a(r):a!=null&&(a.current=r)})}}var dE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dE&&(window.__reactRouterVersion="7.3.0")}catch{}function n_({basename:t,children:r,window:a}){let i=y.useRef();i.current==null&&(i.current=YM({window:a,v5Compat:!0}));let o=i.current,[c,f]=y.useState({action:o.action,location:o.location}),d=y.useCallback(h=>{y.startTransition(()=>f(h))},[f]);return y.useLayoutEffect(()=>o.listen(d),[o,d]),y.createElement(DD,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:o})}var hE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mE=y.forwardRef(function({onClick:r,discover:a="render",prefetch:i="none",relative:o,reloadDocument:c,replace:f,state:d,target:h,to:p,preventScrollReset:g,viewTransition:b,...x},E){let{basename:R}=y.useContext(In),S=typeof p=="string"&&hE.test(p),w,C=!1;if(typeof p=="string"&&S&&(w=p,dE))try{let H=new URL(window.location.href),K=p.startsWith("//")?new URL(H.protocol+p):new URL(p),Z=Tr(K.pathname,R);K.origin===H.origin&&Z!=null?p=Z+K.search+K.hash:C=!0}catch{$n(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=gD(p,{relative:o}),[N,L,_]=KD(i,x),k=s_(p,{replace:f,state:d,target:h,preventScrollReset:g,relative:o,viewTransition:b});function I(H){r&&r(H),H.defaultPrevented||k(H)}let Y=y.createElement("a",{...x,..._,href:w||A,onClick:C||c?r:I,ref:t_(E,L),target:h,"data-discover":!S&&a==="render"?"true":void 0});return N&&!S?y.createElement(y.Fragment,null,Y,y.createElement(ZD,{page:A})):Y});mE.displayName="Link";var Ya=y.forwardRef(function({"aria-current":r="page",caseSensitive:a=!1,className:i="",end:o=!1,style:c,to:f,viewTransition:d,children:h,...p},g){let b=so(f,{relative:p.relative}),x=va(),E=y.useContext(bu),{navigator:R,basename:S}=y.useContext(In),w=E!=null&&u_(b)&&d===!0,C=R.encodeLocation?R.encodeLocation(b).pathname:b.pathname,A=x.pathname,N=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;a||(A=A.toLowerCase(),N=N?N.toLowerCase():null,C=C.toLowerCase()),N&&S&&(N=Tr(N,S)||N);const L=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let _=A===C||!o&&A.startsWith(C)&&A.charAt(L)==="/",k=N!=null&&(N===C||!o&&N.startsWith(C)&&N.charAt(C.length)==="/"),I={isActive:_,isPending:k,isTransitioning:w},Y=_?r:void 0,H;typeof i=="function"?H=i(I):H=[i,_?"active":null,k?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let K=typeof c=="function"?c(I):c;return y.createElement(mE,{...p,"aria-current":Y,className:H,ref:g,style:K,to:f,viewTransition:d},typeof h=="function"?h(I):h)});Ya.displayName="NavLink";var r_=y.forwardRef(({discover:t="render",fetcherKey:r,navigate:a,reloadDocument:i,replace:o,state:c,method:f=Hc,action:d,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:b,...x},E)=>{let R=o_(),S=c_(d,{relative:p}),w=f.toLowerCase()==="get"?"get":"post",C=typeof d=="string"&&hE.test(d),A=N=>{if(h&&h(N),N.defaultPrevented)return;N.preventDefault();let L=N.nativeEvent.submitter,_=(L==null?void 0:L.getAttribute("formmethod"))||f;R(L||N.currentTarget,{fetcherKey:r,method:_,navigate:a,replace:o,state:c,relative:p,preventScrollReset:g,viewTransition:b})};return y.createElement("form",{ref:E,method:w,action:S,onSubmit:i?h:A,...x,"data-discover":!C&&t==="render"?"true":void 0})});r_.displayName="Form";function a_(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pE(t){let r=y.useContext(Ni);return Ke(r,a_(t)),r}function s_(t,{target:r,replace:a,state:i,preventScrollReset:o,relative:c,viewTransition:f}={}){let d=Oi(),h=va(),p=so(t,{relative:c});return y.useCallback(g=>{if(UD(g,r)){g.preventDefault();let b=a!==void 0?a:Yl(h)===Yl(p);d(t,{replace:b,state:i,preventScrollReset:o,relative:c,viewTransition:f})}},[h,d,p,a,i,r,t,o,c,f])}var i_=0,l_=()=>`__${String(++i_)}__`;function o_(){let{router:t}=pE("useSubmit"),{basename:r}=y.useContext(In),a=ND();return y.useCallback(async(i,o={})=>{let{action:c,method:f,encType:d,formData:h,body:p}=qD(i,r);if(o.navigate===!1){let g=o.fetcherKey||l_();await t.fetch(g,a,o.action||c,{preventScrollReset:o.preventScrollReset,formData:h,body:p,formMethod:o.method||f,formEncType:o.encType||d,flushSync:o.flushSync})}else await t.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:h,body:p,formMethod:o.method||f,formEncType:o.encType||d,replace:o.replace,state:o.state,fromRouteId:a,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,r,a])}function c_(t,{relative:r}={}){let{basename:a}=y.useContext(In),i=y.useContext(Vn);Ke(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),c={...so(t||".",{relative:r})},f=va();if(t==null){c.search=f.search;let d=new URLSearchParams(c.search),h=d.getAll("index");if(h.some(g=>g==="")){d.delete("index"),h.filter(b=>b).forEach(b=>d.append("index",b));let g=d.toString();c.search=g?`?${g}`:""}}return(!t||t===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:wr([a,c.pathname])),Yl(c)}function u_(t,r={}){let a=y.useContext(aE);Ke(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=pE("useViewTransitionState"),o=so(t,{relative:r.relative});if(!a.isTransitioning)return!1;let c=Tr(a.currentLocation.pathname,i)||a.currentLocation.pathname,f=Tr(a.nextLocation.pathname,i)||a.nextLocation.pathname;return Jc(o.pathname,f)!=null||Jc(o.pathname,c)!=null}new TextEncoder;const f_=pa("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs 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 Lm({className:t,variant:r,...a}){return v.jsx("div",{className:le(f_({variant:r}),t),...a})}var d_="Label",vE=y.forwardRef((t,r)=>v.jsx(Se.label,{...t,ref:r,onMouseDown:a=>{var o;a.target.closest("button, input, select, textarea")||((o=t.onMouseDown)==null||o.call(t,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));vE.displayName=d_;var gE=vE;const h_=pa("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),eu=y.forwardRef(({className:t,...r},a)=>v.jsx(gE,{ref:a,className:le(h_(),t),...r}));eu.displayName=gE.displayName;const m_=({tag:t,onRemove:r})=>v.jsxs(Lm,{variant:"outline",className:"flex items-center gap-1.5 pr-1.5 text-sm py-1 px-2 transition-colors hover:bg-white hover:text-black dark:hover:text-black",children:[t,v.jsxs(Ie,{type:"button",variant:"ghost",size:"icon",onClick:()=>r(t),className:"hover:bg-muted/20 rounded-full p-0.5 transition-colors h-auto w-auto min-w-0 min-h-0",children:[v.jsx(us,{className:"h-3 w-3"}),v.jsxs("span",{className:"sr-only",children:["Remove ",t]})]})]}),p_=({tags:t,onRemove:r})=>v.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:t.map(a=>v.jsx(m_,{tag:a,onRemove:r},a))}),v_=({value:t,onChange:r,onKeyDown:a})=>v.jsx(gr,{value:t,onChange:r,onKeyDown:a,placeholder:"Type and press Enter to add...",className:le("bg-background",!t&&"text-muted-foreground")});function g_({title:t,data:r,onChange:a}){const[i,o]=y.useState(""),c=d=>{if(d.key==="Enter"){d.preventDefault();const h=i.trim();h&&!r.includes(h)&&(a([...r,h]),o(""))}},f=d=>{a(r.filter(h=>h!==d))};return v.jsxs("div",{className:"space-y-2",children:[v.jsx(eu,{children:t}),v.jsxs("div",{className:"p-2 bg-card rounded-md border",children:[v.jsx(p_,{tags:r,onRemove:f}),v.jsx(v_,{value:i,onChange:d=>o(d.target.value),onKeyDown:c})]})]})}const io=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,className:le("rounded-xl border bg-card text-card-foreground shadow",t),...r}));io.displayName="Card";const yE=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,className:le("flex flex-col space-y-1.5 p-6",t),...r}));yE.displayName="CardHeader";const bE=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,className:le("font-semibold leading-none tracking-tight",t),...r}));bE.displayName="CardTitle";const y_=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,className:le("text-sm text-muted-foreground",t),...r}));y_.displayName="CardDescription";const wu=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,className:le("p-6 pt-0",t),...r}));wu.displayName="CardContent";const xE=y.forwardRef(({className:t,...r},a)=>v.jsx("div",{ref:a,className:le("flex items-center p-6 pt-0",t),...r}));xE.displayName="CardFooter";function Ap(t){const r=t+"CollectionProvider",[a,i]=Hn(r),[o,c]=a(r,{collectionRef:{current:null},itemMap:new Map}),f=E=>{const{scope:R,children:S}=E,w=hr.useRef(null),C=hr.useRef(new Map).current;return v.jsx(o,{scope:R,itemMap:C,collectionRef:w,children:S})};f.displayName=r;const d=t+"CollectionSlot",h=hr.forwardRef((E,R)=>{const{scope:S,children:w}=E,C=c(d,S),A=ke(R,C.collectionRef);return v.jsx(sn,{ref:A,children:w})});h.displayName=d;const p=t+"CollectionItemSlot",g="data-radix-collection-item",b=hr.forwardRef((E,R)=>{const{scope:S,children:w,...C}=E,A=hr.useRef(null),N=ke(R,A),L=c(p,S);return hr.useEffect(()=>(L.itemMap.set(A,{ref:A,...C}),()=>void L.itemMap.delete(A))),v.jsx(sn,{[g]:"",ref:N,children:w})});b.displayName=p;function x(E){const R=c(t+"CollectionConsumer",E);return hr.useCallback(()=>{const w=R.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${g}]`));return Array.from(R.itemMap.values()).sort((L,_)=>C.indexOf(L.ref.current)-C.indexOf(_.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:f,Slot:h,ItemSlot:b},x,i]}var b_=y.createContext(void 0);function Su(t){const r=y.useContext(b_);return t||r||"ltr"}var dh="rovingFocusGroup.onEntryFocus",x_={bubbles:!1,cancelable:!0},Eu="RovingFocusGroup",[zm,wE,w_]=Ap(Eu),[S_,SE]=Hn(Eu,[w_]),[E_,R_]=S_(Eu),EE=y.forwardRef((t,r)=>v.jsx(zm.Provider,{scope:t.__scopeRovingFocusGroup,children:v.jsx(zm.Slot,{scope:t.__scopeRovingFocusGroup,children:v.jsx(T_,{...t,ref:r})})}));EE.displayName=Eu;var T_=y.forwardRef((t,r)=>{const{__scopeRovingFocusGroup:a,orientation:i,loop:o=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:p,preventScrollOnEntryFocus:g=!1,...b}=t,x=y.useRef(null),E=ke(r,x),R=Su(c),[S=null,w]=rs({prop:f,defaultProp:d,onChange:h}),[C,A]=y.useState(!1),N=nt(p),L=wE(a),_=y.useRef(!1),[k,I]=y.useState(0);return y.useEffect(()=>{const Y=x.current;if(Y)return Y.addEventListener(dh,N),()=>Y.removeEventListener(dh,N)},[N]),v.jsx(E_,{scope:a,orientation:i,dir:R,loop:o,currentTabStopId:S,onItemFocus:y.useCallback(Y=>w(Y),[w]),onItemShiftTab:y.useCallback(()=>A(!0),[]),onFocusableItemAdd:y.useCallback(()=>I(Y=>Y+1),[]),onFocusableItemRemove:y.useCallback(()=>I(Y=>Y-1),[]),children:v.jsx(Se.div,{tabIndex:C||k===0?-1:0,"data-orientation":i,...b,ref:E,style:{outline:"none",...t.style},onMouseDown:ge(t.onMouseDown,()=>{_.current=!0}),onFocus:ge(t.onFocus,Y=>{const H=!_.current;if(Y.target===Y.currentTarget&&H&&!C){const K=new CustomEvent(dh,x_);if(Y.currentTarget.dispatchEvent(K),!K.defaultPrevented){const Z=L().filter(M=>M.focusable),ne=Z.find(M=>M.active),ce=Z.find(M=>M.id===S),U=[ne,ce,...Z].filter(Boolean).map(M=>M.ref.current);CE(U,g)}}_.current=!1}),onBlur:ge(t.onBlur,()=>A(!1))})})}),RE="RovingFocusGroupItem",TE=y.forwardRef((t,r)=>{const{__scopeRovingFocusGroup:a,focusable:i=!0,active:o=!1,tabStopId:c,...f}=t,d=yr(),h=c||d,p=R_(RE,a),g=p.currentTabStopId===h,b=wE(a),{onFocusableItemAdd:x,onFocusableItemRemove:E}=p;return y.useEffect(()=>{if(i)return x(),()=>E()},[i,x,E]),v.jsx(zm.ItemSlot,{scope:a,id:h,focusable:i,active:o,children:v.jsx(Se.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...f,ref:r,onMouseDown:ge(t.onMouseDown,R=>{i?p.onItemFocus(h):R.preventDefault()}),onFocus:ge(t.onFocus,()=>p.onItemFocus(h)),onKeyDown:ge(t.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){p.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const S=N_(R,p.orientation,p.dir);if(S!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let C=b().filter(A=>A.focusable).map(A=>A.ref.current);if(S==="last")C.reverse();else if(S==="prev"||S==="next"){S==="prev"&&C.reverse();const A=C.indexOf(R.currentTarget);C=p.loop?O_(C,A+1):C.slice(A+1)}setTimeout(()=>CE(C))}})})})});TE.displayName=RE;var C_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A_(t,r){return r!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function N_(t,r,a){const i=A_(t.key,a);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return C_[i]}function CE(t,r=!1){const a=document.activeElement;for(const i of t)if(i===a||(i.focus({preventScroll:r}),document.activeElement!==a))return}function O_(t,r){return t.map((a,i)=>t[(r+i)%t.length])}var j_=EE,M_=TE,Np="Tabs",[D_,Lz]=Hn(Np,[SE]),AE=SE(),[__,Op]=D_(Np),NE=y.forwardRef((t,r)=>{const{__scopeTabs:a,value:i,onValueChange:o,defaultValue:c,orientation:f="horizontal",dir:d,activationMode:h="automatic",...p}=t,g=Su(d),[b,x]=rs({prop:i,onChange:o,defaultProp:c});return v.jsx(__,{scope:a,baseId:yr(),value:b,onValueChange:x,orientation:f,dir:g,activationMode:h,children:v.jsx(Se.div,{dir:g,"data-orientation":f,...p,ref:r})})});NE.displayName=Np;var OE="TabsList",jE=y.forwardRef((t,r)=>{const{__scopeTabs:a,loop:i=!0,...o}=t,c=Op(OE,a),f=AE(a);return v.jsx(j_,{asChild:!0,...f,orientation:c.orientation,dir:c.dir,loop:i,children:v.jsx(Se.div,{role:"tablist","aria-orientation":c.orientation,...o,ref:r})})});jE.displayName=OE;var ME="TabsTrigger",DE=y.forwardRef((t,r)=>{const{__scopeTabs:a,value:i,disabled:o=!1,...c}=t,f=Op(ME,a),d=AE(a),h=zE(f.baseId,i),p=PE(f.baseId,i),g=i===f.value;return v.jsx(M_,{asChild:!0,...d,focusable:!o,active:g,children:v.jsx(Se.button,{type:"button",role:"tab","aria-selected":g,"aria-controls":p,"data-state":g?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...c,ref:r,onMouseDown:ge(t.onMouseDown,b=>{!o&&b.button===0&&b.ctrlKey===!1?f.onValueChange(i):b.preventDefault()}),onKeyDown:ge(t.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&f.onValueChange(i)}),onFocus:ge(t.onFocus,()=>{const b=f.activationMode!=="manual";!g&&!o&&b&&f.onValueChange(i)})})})});DE.displayName=ME;var _E="TabsContent",LE=y.forwardRef((t,r)=>{const{__scopeTabs:a,value:i,forceMount:o,children:c,...f}=t,d=Op(_E,a),h=zE(d.baseId,i),p=PE(d.baseId,i),g=i===d.value,b=y.useRef(g);return y.useEffect(()=>{const x=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(x)},[]),v.jsx(ln,{present:o||g,children:({present:x})=>v.jsx(Se.div,{"data-state":g?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":h,hidden:!x,id:p,tabIndex:0,...f,ref:r,style:{...t.style,animationDuration:b.current?"0s":void 0},children:x&&c})})});LE.displayName=_E;function zE(t,r){return`${t}-trigger-${r}`}function PE(t,r){return`${t}-content-${r}`}var L_=NE,kE=jE,UE=DE,$E=LE;const z_=L_,HE=y.forwardRef(({className:t,...r},a)=>v.jsx(kE,{ref:a,className:le("inline-flex h-9 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...r}));HE.displayName=kE.displayName;const Pm=y.forwardRef(({className:t,...r},a)=>v.jsx(UE,{ref:a,className:le("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",t),...r}));Pm.displayName=UE.displayName;const km=y.forwardRef(({className:t,...r},a)=>v.jsx($E,{ref:a,className:le("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...r}));km.displayName=$E.displayName;const jp=y.forwardRef(({className:t,...r},a)=>v.jsx("textarea",{className:le("flex min-h-[60px] select-none w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a,...r}));jp.displayName="Textarea";const P_=1,k_=1e6;let hh=0;function U_(){return hh=(hh+1)%Number.MAX_SAFE_INTEGER,hh.toString()}const mh=new Map,j0=t=>{if(mh.has(t))return;const r=setTimeout(()=>{mh.delete(t),ql({type:"REMOVE_TOAST",toastId:t})},k_);mh.set(t,r)},$_=(t,r)=>{switch(r.type){case"ADD_TOAST":return{...t,toasts:[r.toast,...t.toasts].slice(0,P_)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(a=>a.id===r.toast.id?{...a,...r.toast}:a)};case"DISMISS_TOAST":{const{toastId:a}=r;if(a)j0(a);else for(const i of t.toasts)j0(i.id);return{...t,toasts:t.toasts.map(i=>i.id===a||a===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return r.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(a=>a.id!==r.toastId)}}},Bc=[];let Ic={toasts:[]};function ql(t){Ic=$_(Ic,t);for(const r of Bc)r(Ic)}function H_({...t}){const r=U_(),a=o=>ql({type:"UPDATE_TOAST",toast:{...o,id:r}}),i=()=>ql({type:"DISMISS_TOAST",toastId:r});return ql({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:o=>{o||i()}}}),{id:r,dismiss:i,update:a}}function Yn(){const[t,r]=y.useState(Ic);return y.useEffect(()=>(Bc.push(r),()=>{const a=Bc.indexOf(r);a>-1&&Bc.splice(a,1)}),[]),{...t,toast:H_,dismiss:a=>ql({type:"DISMISS_TOAST",toastId:a})}}const M0=[{sectionTitle:"Basic Info",sectionValue:"basic",sectionType:"input",fields:[{title:"Name",name:"name",description:"The display name of your character",fieldType:"text",getValue:t=>t.name||""},{title:"Username",name:"username",description:"Unique identifier for your character",fieldType:"text",getValue:t=>t.username||""},{title:"System",name:"system",description:"System prompt for character behavior",fieldType:"textarea",getValue:t=>t.system||""},{title:"Voice Model",name:"settings.voice.model",description:"Voice model used for speech synthesis",fieldType:"text",getValue:t=>{var r,a;return((a=(r=t.settings)==null?void 0:r.voice)==null?void 0:a.model)||""}}]},{sectionTitle:"Content",sectionValue:"content",sectionType:"array",fields:[{title:"Bio",description:"Key information about your character",path:"bio",getData:t=>Array.isArray(t.bio)?t.bio:[]},{title:"Topics",description:"Topics your character is knowledgeable about",path:"topics",getData:t=>t.topics||[]},{title:"Adjectives",description:"Words that describe your character's personality",path:"adjectives",getData:t=>t.adjectives||[]}]},{sectionTitle:"Style",sectionValue:"style",sectionType:"array",fields:[{title:"All",description:"Style rules applied to all interactions",path:"style.all",getData:t=>{var r;return((r=t.style)==null?void 0:r.all)||[]}},{title:"Chat",description:"Style rules for chat interactions",path:"style.chat",getData:t=>{var r;return((r=t.style)==null?void 0:r.chat)||[]}},{title:"Post",description:"Style rules for social media posts",path:"style.post",getData:t=>{var r;return((r=t.style)==null?void 0:r.post)||[]}}]}];function qE({characterValue:t,setCharacterValue:r,title:a,description:i,onSubmit:o,onDelete:c,onReset:f,customComponents:d=[]}){const{toast:h}=Yn(),[p,g]=y.useState(!1),b=w=>{const{name:C,value:A,type:N}=w.target,L=w.target.checked;if(C.includes(".")){const _=C.split(".");r(k=>{const I={...k};let Y=I;for(let H=0;H<_.length-1;H++)Y[_[H]]||(Y[_[H]]={}),Y=Y[_[H]];return Y[_[_.length-1]]=N==="checkbox"?L:A,I})}else r(_=>({..._,[C]:N==="checkbox"?L:A}))},x=(w,C)=>{r(A=>{const N={...A},L=w.split(".");let _=N;for(let k=0;k<L.length-1;k++){const I=L[k];(!_[I]||typeof _[I]!="object")&&(_[I]={}),_=_[I]}return _[L[L.length-1]]=C,N})},E=async w=>{w.preventDefault(),g(!0);try{await o(t)}catch(C){h({title:"Error",description:C instanceof Error?C.message:"Failed to update",variant:"destructive"})}finally{g(!1)}},R=w=>v.jsxs("div",{className:"space-y-2",children:[v.jsx(eu,{htmlFor:w.name,children:w.title}),w.description&&v.jsx("p",{className:"text-sm text-muted-foreground",children:w.description}),w.fieldType==="textarea"?v.jsx(jp,{id:w.name,name:w.name,value:w.getValue(t),onChange:b,className:"min-h-[120px] resize-y"}):w.fieldType==="checkbox"?v.jsx(gr,{id:w.name,name:w.name,type:"checkbox",checked:t[w.name]==="true",onChange:b}):v.jsx(gr,{id:w.name,name:w.name,type:w.fieldType,value:w.getValue(t),onChange:b})]},w.name),S=w=>v.jsxs("div",{className:"space-y-2",children:[v.jsx(eu,{htmlFor:w.path,children:w.title}),w.description&&v.jsx("p",{className:"text-sm text-muted-foreground",children:w.description}),v.jsx(g_,{data:w.getData(t),onChange:C=>x(w.path,C)})]},w.path);return v.jsxs("div",{className:"container max-w-4xl mx-auto p-6",children:[v.jsx("div",{className:"flex items-center justify-between mb-6",children:v.jsxs("div",{children:[v.jsx("h1",{className:"text-3xl font-bold",children:a}),v.jsx("p",{className:"text-muted-foreground mt-1",children:i})]})}),v.jsxs("form",{onSubmit:E,children:[v.jsxs(z_,{defaultValue:"basic",className:"w-full",children:[v.jsxs(HE,{className:"grid w-full mb-6",style:{gridTemplateColumns:`repeat(${d.length+3}, minmax(0, 1fr))`},children:[M0.map(w=>v.jsx(Pm,{value:w.sectionValue,children:w.sectionTitle},w.sectionValue)),d.map(w=>v.jsx(Pm,{value:`custom-${w.name}`,children:w.name},`custom-${w.name}`))]}),v.jsx(io,{children:v.jsxs(wu,{className:"p-6",children:[M0.map(w=>v.jsx(km,{value:w.sectionValue,className:"space-y-6",children:w.sectionType==="input"?w.fields.map(R):w.fields.map(S)},w.sectionValue)),d.map(w=>v.jsx(km,{value:`custom-${w.name}`,children:w.component},`custom-${w.name}`))]})})]}),v.jsxs("div",{className:"flex justify-between gap-4 mt-6",children:[v.jsx("div",{className:"flex gap-4 text-red-500",children:v.jsx(Ie,{type:"button",variant:"outline",onClick:()=>{c==null||c()},children:"Delete Character"})}),v.jsxs("div",{className:"flex gap-4",children:[v.jsx(Ie,{type:"button",variant:"outline",onClick:()=>{f==null||f()},children:"Reset Changes"}),v.jsx(Ie,{type:"submit",disabled:p,children:p?"Saving...":"Save Changes"})]})]})]})]})}const ph="elizaos-world-id",ts={getWorldId:()=>{const t=localStorage.getItem(ph);if(t)return t;const r=crypto.randomUUID();return localStorage.setItem(ph,r),r},resetWorldId:()=>{const t=crypto.randomUUID();return localStorage.setItem(ph,t),t},getRoomStorageKey:t=>`room-${ts.getWorldId()}-${t}`},q_="http://localhost:3000",ct=async({url:t,method:r,body:a,headers:i})=>{const o={method:r??"GET",headers:i||{Accept:"application/json","Content-Type":"application/json"}};return(r==="POST"||r==="PUT"||r==="PATCH")&&(a instanceof FormData?(o.headers&&typeof o.headers=="object"&&(o.headers=Object.fromEntries(Object.entries(o.headers).filter(([c])=>c!=="Content-Type"))),o.body=a):o.body=JSON.stringify(a)),fetch(`${q_}${t}`,o).then(async c=>{if(c.headers.get("Content-Type")==="audio/mpeg")return await c.blob();if(!c.ok){const d=await c.text();console.error("Error: ",d);let h="An error occurred.";try{h=JSON.parse(d).message||h}catch{h=d||h}throw new Error(h)}try{return await c.json()}catch(d){return console.error("JSON Parse Error:",d),null}})},Et={getAgents:()=>ct({url:"/agents"}),getAgent:t=>ct({url:`/agents/${t}`}),tts:(t,r)=>ct({url:`/agents/${t}/speech/generate`,method:"POST",body:{text:r},headers:{"Content-Type":"application/json",Accept:"audio/mpeg","Transfer-Encoding":"chunked"}}),whisper:async(t,r)=>{const a=new FormData;return a.append("file",r,"recording.wav"),ct({url:`/agents/${t}/transcriptions`,method:"POST",body:a})},sendAudioMessage:async(t,r,a)=>{const i=new FormData;if(i.append("file",r,"recording.wav"),a)for(const[o,c]of Object.entries(a))c&&i.append(o,c);return ct({url:`/agents/${t}/audio-messages`,method:"POST",body:i})},speechConversation:async(t,r,a)=>ct({url:`/agents/${t}/speech/conversation`,method:"POST",body:{text:r,...a},headers:{"Content-Type":"application/json",Accept:"audio/mpeg","Transfer-Encoding":"chunked"}}),deleteAgent:t=>ct({url:`/agents/${t}`,method:"DELETE"}),updateAgent:(t,r)=>ct({url:`/agents/${t}`,method:"PATCH",body:r}),createAgent:t=>ct({url:"/agents/",method:"POST",body:t}),startAgent:t=>ct({url:`/agents/${t}`,method:"POST",body:{start:!0}}),stopAgent:t=>ct({url:`/agents/${t}`,method:"PUT"}),getMemories:(t,r,a)=>{const o={worldId:ts.getWorldId()};return a!=null&&a.limit&&(o.limit=a.limit),a!=null&&a.before&&(o.end=a.before),ct({url:`/agents/${t}/rooms/${r}/memories`,method:"GET",body:o})},getRooms:t=>{const r=ts.getWorldId();return ct({url:`/agents/${t}/rooms`,method:"GET",body:{worldId:r}})},createRoom:(t,r)=>{const a=ts.getWorldId();return ct({url:`/agents/${t}/rooms`,method:"POST",body:{name:r,worldId:a}})},getRoom:(t,r)=>ct({url:`/agents/${t}/rooms/${r}`,method:"GET"}),updateRoom:(t,r,a)=>ct({url:`/agents/${t}/rooms/${r}`,method:"PATCH",body:a}),deleteRoom:(t,r)=>ct({url:`/agents/${t}/rooms/${r}`,method:"DELETE"}),getLogs:t=>ct({url:`/logs?level=${t}`,method:"GET"}),getAgentCompletion:(t,r,a,i,o)=>ct({url:`/agents/${t}/message`,method:"POST",body:{text:a,roomId:i,senderId:r,source:o}})};function BE({characterValue:t,setCharacterValue:r}){var f;const[a,i]=y.useState(((f=t==null?void 0:t.settings)==null?void 0:f.avatar)||null),o=y.useRef(null),c=d=>{var p;const h=(p=d.target.files)==null?void 0:p[0];if(h){const g=new FileReader;g.onload=b=>{var x;if((x=b.target)!=null&&x.result){const E=new Image;E.src=b.target.result,E.onload=()=>{const R=document.createElement("canvas"),S=300;let w=E.width,C=E.height;w>C?w>S&&(C*=S/w,w=S):C>S&&(w*=S/C,C=S),R.width=w,R.height=C;const A=R.getContext("2d");A==null||A.drawImage(E,0,0,w,C);const N=R.toDataURL("image/jpeg",.8);i(N)}}},g.readAsDataURL(h)}};return y.useEffect(()=>{r(d=>({...d,settings:{...d.settings,avatar:a}}))},[a,r]),v.jsxs("div",{className:"rounded-lg w-full",children:[v.jsx("h2",{className:"text-xl font-bold mb-4 pb-5 ml-1",children:"Avatar Settings"}),v.jsxs("div",{className:"flex flex-col items-center gap-4 pb-4",children:[a?v.jsxs("div",{className:"relative w-64 h-64",children:[v.jsx("img",{src:a,alt:"Character Avatar",className:"object-cover rounded-lg border"}),v.jsx("button",{className:"absolute -top-2 -right-2 bg-white p-1 rounded-full shadow-md",onClick:()=>i(null),type:"button",children:v.jsx(us,{className:"w-5 h-5 text-card"})})]}):v.jsx("div",{className:"w-64 h-64 flex items-center justify-center border border-dashed rounded-lg text-gray-500",children:v.jsx(a2,{className:"w-10 h-10"})}),v.jsx("input",{type:"file",accept:"image/*",className:"hidden",ref:o,onChange:c}),v.jsxs(Ie,{className:"flex items-center gap-2",onClick:()=>{var d;return(d=o.current)==null?void 0:d.click()},children:[v.jsx(p2,{className:"w-5 h-5"})," Upload Avatar"]})]})]})}const B_=Hw,I_=YO,V_=qw,IE=y.forwardRef(({className:t,...r},a)=>v.jsx(iu,{ref:a,className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r}));IE.displayName=iu.displayName;const VE=y.forwardRef(({className:t,children:r,...a},i)=>v.jsxs(V_,{children:[v.jsx(IE,{}),v.jsxs(lu,{ref:i,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...a,children:[r,v.jsxs(Bw,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[v.jsx(us,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));VE.displayName=lu.displayName;const YE=({className:t,...r})=>v.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",t),...r});YE.displayName="DialogHeader";const GE=y.forwardRef(({className:t,...r},a)=>v.jsx(ou,{ref:a,className:le("text-lg font-semibold leading-none tracking-tight",t),...r}));GE.displayName=ou.displayName;const Y_=y.forwardRef(({className:t,...r},a)=>v.jsx(cu,{ref:a,className:le("text-sm text-muted-foreground",t),...r}));Y_.displayName=cu.displayName;function G_(){return fs({queryKey:["plugins"],queryFn:async()=>(await fetch("https://raw.githubusercontent.com/elizaos/registry/refs/heads/main/index.json")).json()})}function FE({characterValue:t,setCharacterValue:r}){const{data:a,error:i}=G_(),[o,c]=y.useState(""),[f,d]=y.useState(!1),h=y.useMemo(()=>a?Object.keys(a).map(x=>x.replace(/^@elizaos-plugins\//,"@elizaos/")):[],[a]),p=y.useMemo(()=>Array.isArray(t==null?void 0:t.plugins)?t.plugins:[],[t==null?void 0:t.plugins]),g=y.useMemo(()=>h.filter(x=>!p.includes(x)).filter(x=>x.toLowerCase().includes(o.toLowerCase())),[h,p,o]),b=x=>{r(E=>{const R=Array.isArray(E.plugins)?E.plugins:[],S=R.includes(x)?R.filter(w=>w!==x):[...R,x];return{...E,plugins:S}})};return v.jsx("div",{className:"space-y-6",children:v.jsx("div",{className:"space-y-4",children:v.jsxs("div",{children:[v.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Plugins"}),i?v.jsxs("p",{className:"text-destructive",children:["Failed to load plugins: ",i.message]}):v.jsxs("div",{className:"space-y-4",children:[p.length>0&&v.jsxs("div",{className:"rounded-md bg-muted p-4",children:[v.jsx("h4",{className:"text-sm font-medium mb-2",children:"Currently Enabled"}),v.jsx("div",{className:"flex flex-wrap gap-2",children:p.map(x=>v.jsxs(Ie,{type:"button",variant:"ghost",size:"sm",className:"inline-flex items-center rounded-full bg-primary/10 px-2.5 py-0.5 text-xs font-medium text-primary hover:bg-primary/20 h-auto",onClick:()=>b(x),children:[x," ×"]},x))})]}),v.jsx("div",{className:"space-y-2",children:v.jsxs(B_,{open:f,onOpenChange:d,children:[v.jsx(I_,{asChild:!0,children:v.jsx(Ie,{variant:"outline",className:"w-full justify-start",children:"Search and add plugins..."})}),v.jsxs(VE,{className:"max-w-[400px]",children:[v.jsx(YE,{children:v.jsx(GE,{children:"Add Plugins"})}),v.jsxs("div",{className:"space-y-4 py-4",children:[v.jsx("div",{className:"space-y-2",children:v.jsx(gr,{type:"search",placeholder:"Search plugins...",value:o,onChange:x=>c(x.target.value)})}),v.jsx("div",{className:"max-h-[300px] overflow-y-auto space-y-2",children:g.length===0?v.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins found."}):g.map(x=>v.jsx(Ie,{variant:"ghost",className:"w-full justify-start font-normal",onClick:()=>{b(x),c(""),d(!1)},children:x},x))})]})]})]})})]})]})})})}function QE({characterValue:t,setCharacterValue:r}){var _;const[a,i]=y.useState(Object.entries(((_=t==null?void 0:t.settings)==null?void 0:_.secrets)||{}).map(([k,I])=>({name:k,value:String(I)}))),[o,c]=y.useState(""),[f,d]=y.useState(""),[h,p]=y.useState(!1),[g,b]=y.useState(null),[x,E]=y.useState(null),[R,S]=y.useState(""),w=y.useRef(null),C=()=>{o&&f&&(i([...a,{name:o,value:f}]),c(""),d(""))},A=k=>{E(k),S(a[k].value),b(null)},N=k=>{const I=[...a];I[k].value=R,i(I),E(null)},L=k=>{i(a.filter((I,Y)=>Y!==k)),b(null),E(null)};return y.useEffect(()=>{const k=I=>{w.current&&!w.current.contains(I.target)&&b(null)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),y.useEffect(()=>{r(k=>({...k,settings:{...k.settings,secrets:Object.fromEntries(a.map(({name:I,value:Y})=>[I,Y]))}}))},[a,r]),v.jsxs("div",{className:"rounded-lg w-full",children:[v.jsx("h2",{className:"text-xl font-bold mb-4 pb-5 ml-1",children:"Environment Settings"}),v.jsxs("div",{className:"grid grid-cols-[1fr_2fr_auto] gap-4 items-end w-full pb-4",children:[v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsx("label",{htmlFor:"secret-name",className:"ml-2 text-xs font-medium text-gray-400",children:"NAME"}),v.jsx(gr,{id:"secret-name",placeholder:"VARIABLE_NAME",value:o,onChange:k=>c(k.target.value)})]}),v.jsxs("div",{className:"flex flex-col gap-1 relative",children:[v.jsx("label",{htmlFor:"secret-value",className:"ml-2 text-xs font-medium text-gray-400",children:"VALUE"}),v.jsxs("div",{className:"relative",children:[v.jsx(gr,{id:"secret-value",type:h?"text":"password",placeholder:"i9ju23nfsdf56",value:f,onChange:k=>d(k.target.value),className:"pr-10"}),v.jsx("div",{className:"absolute inset-y-0 right-3 flex items-center cursor-pointer text-gray-500",onClick:()=>p(!h),onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&p(!h)},children:h?v.jsx(n2,{}):v.jsx(r2,{})})]})]}),v.jsx(Ie,{className:"shrink-0",onClick:C,children:"Add"})]}),a.length>0&&v.jsxs("div",{className:"grid grid-cols-[1fr_2fr_auto] gap-4 mt-6 font-medium text-gray-400 border-b pb-2 ml-1",children:[v.jsx("div",{children:"Name"}),v.jsx("div",{children:"Value"}),v.jsx("div",{children:"Action"})]}),v.jsx("div",{className:"mt-2",children:a.map((k,I)=>v.jsxs("div",{className:"grid grid-cols-[1fr_2fr_auto] gap-4 items-center border-b py-2 ml-1 relative",children:[v.jsx("div",{children:k.name}),v.jsx("div",{children:x===I?v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(gr,{value:R,onChange:Y=>S(Y.target.value),className:"w-full"}),v.jsx(Ie,{variant:"ghost",onClick:()=>N(I),children:v.jsx(ap,{className:"w-5 h-5 text-green-500"})}),v.jsx(Ie,{variant:"ghost",onClick:()=>E(null),children:v.jsx(us,{className:"w-5 h-5 text-red-500"})})]}):v.jsx("div",{className:"truncate text-gray-500",children:"Encrypted"})}),v.jsxs("div",{className:"relative",children:[v.jsx(Ie,{variant:"ghost",className:"p-2 text-gray-500",onClick:()=>b(g===I?null:I),children:v.jsx(t2,{className:"w-5 h-5"})}),g===I&&v.jsxs("div",{className:"absolute right-0 -top-2 mt-2 w-24 bg-muted border rounded shadow-md z-10",ref:w,children:[v.jsx("button",{className:"w-full px-4 py-2 text-left hover:opacity-50",onClick:()=>A(I),type:"button",children:"Edit"}),v.jsx("div",{className:"w-full px-4 py-2 text-left text-red-500 hover:opacity-50 cursor-pointer",onClick:()=>L(I),children:"Remove"})]})]})]},I))})]})}const D0={name:"",username:"",system:"",bio:[],topics:[],adjectives:[]};function XE(){const t=Oi(),{toast:r}=Yn(),a=Bn(),[i,o]=y.useState({...D0}),c=d=>{var h,p,g;return{...d,bio:d.bio??[],messageExamples:d.messageExamples??[],postExamples:d.postExamples??[],topics:d.topics??[],adjectives:d.adjectives??[],plugins:d.plugins??[],style:{all:((h=d.style)==null?void 0:h.all)??[],chat:((p=d.style)==null?void 0:p.chat)??[],post:((g=d.style)==null?void 0:g.post)??[]}}},f=async d=>{try{const h=c(d);await Et.createAgent({characterJson:h}),a.invalidateQueries({queryKey:["characters"]}),r({title:"Success",description:"Character created successfully!"}),a.invalidateQueries({queryKey:["agents"]}),t("/")}catch(h){r({title:"Error",description:h instanceof Error?h.message:"Failed to create character",variant:"destructive"})}};return v.jsx(qE,{characterValue:i,setCharacterValue:o,title:"Character Settings",description:"Configure your AI character's behavior and capabilities",onSubmit:f,onReset:()=>o(D0),onDelete:()=>{t("/")},isAgent:!0,customComponents:[{name:"Plugins",component:v.jsx(FE,{characterValue:i,setCharacterValue:o})},{name:"Secret",component:v.jsx(QE,{characterValue:i,setCharacterValue:o})},{name:"Avatar",component:v.jsx(BE,{characterValue:i,setCharacterValue:o})}]})}const ns="user",gn={FREQUENT:30*1e3,STANDARD:2*60*1e3,RARE:10*60*1e3,NEVER:Number.POSITIVE_INFINITY},WE=()=>{const t=typeof navigator<"u"&&"connection"in navigator?navigator.connection:null;return{isOffline:typeof navigator<"u"&&!navigator.onLine,effectiveType:(t==null?void 0:t.effectiveType)||"unknown",saveData:(t==null?void 0:t.saveData)||!1}};function KE(t={}){const r=WE();return fs({queryKey:["agents"],queryFn:()=>Et.getAgents(),staleTime:gn.FREQUENT,refetchInterval:r.isOffline?!1:gn.FREQUENT,refetchIntervalInBackground:!1,...!r.isOffline&&r.effectiveType==="slow-2g"&&{refetchInterval:gn.STANDARD},...t})}function F_(t,r={}){const a=WE();return fs({queryKey:["agent",t],queryFn:()=>Et.getAgent(t||""),staleTime:gn.FREQUENT,enabled:!!t,refetchInterval:!a.isOffline&&t?gn.FREQUENT:!1,refetchIntervalInBackground:!1,...!a.isOffline&&a.effectiveType==="slow-2g"&&{refetchInterval:gn.STANDARD},...r})}function Q_(){const t=Bn(),{toast:r}=Yn();return yu({mutationFn:async a=>{try{return await Et.startAgent(a)}catch(i){if(i instanceof Error){if(i.message.includes("network"))throw new Error("Network error: Please check your connection and try again.");if(i.message.includes("already running"))throw new Error("Agent is already running.")}throw i}},onMutate:async a=>(r({title:"Starting Agent",description:"Initializing agent..."}),{agentId:a}),onSuccess:a=>{t.invalidateQueries({queryKey:["agents"]}),t.invalidateQueries({queryKey:["active-agents"]}),a!=null&&a.id&&t.invalidateQueries({queryKey:["agent",a.id]}),r({title:"Agent Started",description:`${(a==null?void 0:a.name)||"Agent"} is now running`})},onError:a=>{const i=a instanceof Error?a.message:"Failed to start agent";r({title:"Error Starting Agent",description:`${i}. Please try again.`,variant:"destructive"})}})}function X_(){const t=Bn(),{toast:r}=Yn();return yu({mutationFn:a=>Et.stopAgent(a),onMutate:async a=>{const i=t.getQueryData(["agent",a]);i&&r({title:"Stopping Agent",description:`Stopping ${i.name}...`})},onSuccess:(a,i)=>{t.invalidateQueries({queryKey:["agents"]}),t.invalidateQueries({queryKey:["agent",i]}),r({title:"Agent Stopped",description:"The agent has been successfully stopped"})},onError:(a,i)=>{t.invalidateQueries({queryKey:["agents"]}),t.invalidateQueries({queryKey:["agent",i]}),r({title:"Error",description:a instanceof Error?a.message:"Failed to stop agent",variant:"destructive"})}})}function W_(t,r){const a=Bn(),i=ts.getWorldId(),[o,c]=y.useState(null),[f,d]=y.useState(!0),[h,p]=y.useState(!1);return{...fs({queryKey:["messages",t,r,i],queryFn:async()=>(await Et.getMemories(t,r)).data.memories.map(E=>({text:E.content.text,user:E.entityId===t?"agent":ns,name:E.entityId===t?"agent":ns,createdAt:E.createdAt,attachments:E.content.attachments,source:E.content.source,worldId:E.worldId||i,id:E.id})).sort((E,R)=>E.createdAt-R.createdAt),enabled:!!(t&&r),staleTime:gn.FREQUENT}),loadOlderMessages:async()=>{if(!o||!f||h)return!1;try{p(!0);const x=await Et.getMemories(t,r,{before:o,limit:20});if(x!=null&&x.memories&&x.memories.length>0){const E=x.memories.map(A=>A.createdAt),R=Math.min(...E);c(R);const S=a.getQueryData(["messages",t,r,i])||[],w=new Map;S.forEach(A=>{w.set(A.id,A)}),x.memories.forEach(A=>{w.set(A.id,A)});const C=Array.from(w.values());return C.sort((A,N)=>A.createdAt-N.createdAt),a.setQueryData(["messages",t,r,i],C),d(x.memories.length>=20),!0}return d(!1),!1}catch(x){return console.error("Error loading older messages:",x),!1}finally{p(!1)}},hasOlderMessages:f,isLoadingMore:h}}const K_="1.0.0-alpha.36",si={version:K_};var Vc=(t=>(t[t.ROOM_JOINING=1]="ROOM_JOINING",t[t.SEND_MESSAGE=2]="SEND_MESSAGE",t))(Vc||{}),ta=(t=>(t.ACTIVE="active",t.INACTIVE="inactive",t))(ta||{});function Z_(){const[t,r]=y.useState(null),[a,i]=y.useState(!0),[o,c]=y.useState(typeof navigator<"u"?navigator.onLine:!0),[f,d]=y.useState(!1),h=Bn(),[p,g]=y.useState(Date.now()),b=y.useRef(0),x=y.useRef(Date.now());y.useEffect(()=>{const k=()=>{i(document.visibilityState==="visible"),document.visibilityState==="visible"&&(b.current=0,Date.now()-p>1e4&&h.invalidateQueries({queryKey:["status"]}))},I=()=>{c(navigator.onLine),navigator.onLine&&(b.current=0,h.invalidateQueries({queryKey:["status"]}))};return document.addEventListener("visibilitychange",k),window.addEventListener("online",I),window.addEventListener("offline",I),i(document.visibilityState==="visible"),()=>{document.removeEventListener("visibilitychange",k),window.removeEventListener("online",I),window.removeEventListener("offline",I)}},[h,p]);const R=fs({queryKey:["status"],queryFn:async()=>{try{const k=performance.now(),I=await Et.getAgents(),Y=performance.now();return b.current=0,x.current=Date.now(),r(Y-k),g(Date.now()),I}catch(k){throw b.current+=1,console.error("Connection check failed:",k),k}},refetchInterval:o?b.current>0?Math.min(5e3*2**(b.current-1),6e4):a?3e3:15e3:!1,retry:3,retryDelay:k=>Math.min(1e3*1.5**k,1e4),refetchOnWindowFocus:!0,refetchOnReconnect:!0,staleTime:500,gcTime:gn.STANDARD}),S=(R==null?void 0:R.isSuccess)&&!(R!=null&&R.isError),w=(R==null?void 0:R.isRefetching)||(R==null?void 0:R.isPending),C=S===!1&&b.current>5&&Date.now()-x.current>6e4,A=()=>o?C?"bg-yellow-600":w?"bg-muted-foreground":S?"bg-green-600":"bg-red-600":"bg-orange-600",N=()=>o?C?"Reconnecting...":w?"Connecting...":S?"Connected":"Disconnected":"Offline",L=()=>o?C?"text-yellow-600":w?"text-muted-foreground":S?"text-green-600":"text-red-600":"text-orange-600",_=()=>{b.current=0,h.invalidateQueries({queryKey:["agents"]}),h.invalidateQueries({queryKey:["status"]})};return v.jsx(mr,{children:v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:v.jsx(Va,{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onClick:_,children:v.jsx("div",{className:"flex flex-col gap-1 select-none transition-all duration-200",children:v.jsxs("div",{className:"flex items-center gap-1",children:[f?v.jsx(f2,{className:"h-3.5 w-3.5 text-muted-foreground animate-pulse"}):v.jsx("div",{className:le(["h-2.5 w-2.5 rounded-full",A()])}),v.jsx("span",{className:le(["text-xs",f?"text-muted-foreground":L()]),children:f?"Refresh":N()})]})})})}),S&&!f?v.jsx(kn,{side:"top",children:v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx(XO,{className:"size-4"}),v.jsxs("span",{children:[t==null?void 0:t.toFixed(2)," ms"]})]})}):null]})})}function J_(){const t=va(),{data:{data:r}={},isPending:a}=KE();return v.jsxs(jS,{className:"bg-background",children:[v.jsx(DS,{className:"pb-4",children:v.jsx(Uc,{children:v.jsx(mr,{children:v.jsx(Va,{size:"lg",asChild:!0,children:v.jsxs(Ya,{to:"/",className:"px-6 py-4",children:[v.jsx("img",{alt:"elizaos-icon",src:"/elizaos-icon.png",width:"100%",height:"100%",className:"size-9"}),v.jsxs("div",{className:"flex flex-col leading-none ",children:[v.jsx("span",{className:"font-semibold text-lg",children:"ElizaOS"}),v.jsxs("span",{className:"text-sm -mt-0.5 text-muted-foreground",children:["v",si==null?void 0:si.version]})]})]})})})})}),v.jsx(LS,{children:v.jsxs(zS,{children:[v.jsx(PS,{className:"px-6 py-2 text-sm font-medium text-muted-foreground",children:v.jsx(Ya,{to:"/",children:"AGENTS"})}),v.jsx(kS,{className:"px-2",children:v.jsx(Uc,{children:a?v.jsx("div",{children:Array.from({length:5}).map((i,o)=>v.jsx(mr,{children:v.jsx(US,{})},`skeleton-item-${o}`))}):v.jsx("div",{children:(()=>{const i=[...(r==null?void 0:r.agents)||[]].sort((f,d)=>f.status===ta.ACTIVE&&d.status!==ta.ACTIVE?-1:f.status!==ta.ACTIVE&&d.status===ta.ACTIVE?1:f.name.localeCompare(d.name)),o=i.filter(f=>f.status===ta.ACTIVE),c=i.filter(f=>f.status===ta.INACTIVE);return v.jsxs(v.Fragment,{children:[o.length>0&&v.jsx("div",{className:"px-4 py-1 mt-4",children:v.jsxs("div",{className:"flex items-center space-x-2",children:[v.jsx("div",{className:"size-2.5 rounded-full bg-green-500"}),v.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Online"})]})}),o.map(f=>{var d,h;return v.jsx(mr,{children:v.jsx(Ya,{to:`/chat/${f.id}`,children:v.jsx(Va,{isActive:t.pathname.includes(f.id),className:"transition-colors px-4 my-4 rounded-md",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"w-8 h-8 flex justify-center items-center",children:v.jsx("div",{className:"relative bg-muted rounded-full w-full h-full",children:f&&v.jsxs("div",{className:"text-sm rounded-full h-full w-full flex justify-center items-center overflow-hidden",children:[(d=f.settings)!=null&&d.avatar?v.jsx("img",{src:(h=f.settings)==null?void 0:h.avatar,alt:"Agent Avatar",className:"w-full h-full object-contain"}):Yc(f.name),v.jsx("div",{className:"absolute bottom-0 right-0 w-2 h-2 rounded-full border-[1px] border-white bg-green-500"})]})})}),v.jsx("span",{className:"text-base",children:f.name})]})})})},f.id)}),c.length>0&&v.jsx("div",{className:"px-4 py-1 mt-12",children:v.jsxs("div",{className:"flex items-center space-x-2",children:[v.jsx("div",{className:"size-2.5 rounded-full bg-muted-foreground/50"}),v.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Offline"})]})}),c.map(f=>{var d;return v.jsx(mr,{children:v.jsx("div",{className:"transition-colors px-4 my-4 rounded-md",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"w-8 h-8 flex justify-center items-center",children:v.jsx("div",{className:"relative bg-muted rounded-full w-full h-full",children:f&&v.jsxs("div",{className:"text-sm rounded-full h-full w-full flex justify-center items-center overflow-hidden",children:[(d=f.settings)!=null&&d.avatar?v.jsx("img",{src:f.settings.avatar,alt:"Agent Avatar",className:"w-full h-full object-contain"}):Yc(f.name),v.jsx("div",{className:"absolute bottom-0 right-0 w-2 h-2 rounded-full border-[1px] border-white bg-muted-foreground"})]})})}),v.jsx("span",{className:"text-base truncate max-w-24",children:f.name})]})})},f.id)})]})})()})})})]})}),v.jsx(_S,{className:"px-4 py-4",children:v.jsxs(Uc,{children:[v.jsx(mr,{children:v.jsx(Ya,{to:"https://elizaos.github.io/eliza/docs/intro/",target:"_blank",children:v.jsxs(Va,{className:"text-muted-foreground rounded-md",children:[v.jsx(KO,{className:"size-5"}),v.jsx("span",{children:"Documentation"})]})})}),v.jsx(mr,{children:v.jsx(Ya,{to:"/logs",children:v.jsxs(Va,{className:"text-muted-foreground rounded-md",children:[v.jsx(d2,{className:"size-5"}),v.jsx("span",{children:"Logs"})]})})}),v.jsx(mr,{children:v.jsxs(Va,{disabled:!0,className:"text-muted-foreground/50 rounded-md",children:[v.jsx(sp,{className:"size-5"}),v.jsx("span",{children:"Settings"})]})}),v.jsx(Z_,{})]})})]})}const ZE=6048e5,eL=864e5,_0=Symbol.for("constructDateFrom");function ma(t,r){return typeof t=="function"?t(r):t&&typeof t=="object"&&_0 in t?t[_0](r):t instanceof Date?new t.constructor(r):new Date(r)}function wn(t,r){return ma(r||t,t)}let tL={};function Ru(){return tL}function Gl(t,r){var d,h,p,g;const a=Ru(),i=(r==null?void 0:r.weekStartsOn)??((h=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??a.weekStartsOn??((g=(p=a.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??0,o=wn(t,r==null?void 0:r.in),c=o.getDay(),f=(c<i?7:0)+c-i;return o.setDate(o.getDate()-f),o.setHours(0,0,0,0),o}function tu(t,r){return Gl(t,{...r,weekStartsOn:1})}function JE(t,r){const a=wn(t,r==null?void 0:r.in),i=a.getFullYear(),o=ma(a,0);o.setFullYear(i+1,0,4),o.setHours(0,0,0,0);const c=tu(o),f=ma(a,0);f.setFullYear(i,0,4),f.setHours(0,0,0,0);const d=tu(f);return a.getTime()>=c.getTime()?i+1:a.getTime()>=d.getTime()?i:i-1}function L0(t){const r=wn(t),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),+t-+a}function nL(t,...r){const a=ma.bind(null,r.find(i=>typeof i=="object"));return r.map(a)}function z0(t,r){const a=wn(t,r==null?void 0:r.in);return a.setHours(0,0,0,0),a}function rL(t,r,a){const[i,o]=nL(a==null?void 0:a.in,t,r),c=z0(i),f=z0(o),d=+c-L0(c),h=+f-L0(f);return Math.round((d-h)/eL)}function aL(t,r){const a=JE(t,r),i=ma(t,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),tu(i)}function sL(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function iL(t){return!(!sL(t)&&typeof t!="number"||isNaN(+wn(t)))}function lL(t,r){const a=wn(t,r==null?void 0:r.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}const oL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cL=(t,r,a)=>{let i;const o=oL[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+i:i+" ago":i};function vh(t){return(r={})=>{const a=r.width?String(r.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}const uL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hL={date:vh({formats:uL,defaultWidth:"full"}),time:vh({formats:fL,defaultWidth:"full"}),dateTime:vh({formats:dL,defaultWidth:"full"})},mL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pL=(t,r,a,i)=>mL[t];function zl(t){return(r,a)=>{const i=a!=null&&a.context?String(a.context):"standalone";let o;if(i==="formatting"&&t.formattingValues){const f=t.defaultFormattingWidth||t.defaultWidth,d=a!=null&&a.width?String(a.width):f;o=t.formattingValues[d]||t.formattingValues[f]}else{const f=t.defaultWidth,d=a!=null&&a.width?String(a.width):t.defaultWidth;o=t.values[d]||t.values[f]}const c=t.argumentCallback?t.argumentCallback(r):r;return o[c]}}const vL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SL=(t,r)=>{const a=Number(t),i=a%100;if(i>20||i<10)switch(i%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},EL={ordinalNumber:SL,era:zl({values:vL,defaultWidth:"wide"}),quarter:zl({values:gL,defaultWidth:"wide",argumentCallback:t=>t-1}),month:zl({values:yL,defaultWidth:"wide"}),day:zl({values:bL,defaultWidth:"wide"}),dayPeriod:zl({values:xL,defaultWidth:"wide",formattingValues:wL,defaultFormattingWidth:"wide"})};function Pl(t){return(r,a={})=>{const i=a.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],c=r.match(o);if(!c)return null;const f=c[0],d=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(d)?TL(d,b=>b.test(f)):RL(d,b=>b.test(f));let p;p=t.valueCallback?t.valueCallback(h):h,p=a.valueCallback?a.valueCallback(p):p;const g=r.slice(f.length);return{value:p,rest:g}}}function RL(t,r){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&r(t[a]))return a}function TL(t,r){for(let a=0;a<t.length;a++)if(r(t[a]))return a}function CL(t){return(r,a={})=>{const i=r.match(t.matchPattern);if(!i)return null;const o=i[0],c=r.match(t.parsePattern);if(!c)return null;let f=t.valueCallback?t.valueCallback(c[0]):c[0];f=a.valueCallback?a.valueCallback(f):f;const d=r.slice(o.length);return{value:f,rest:d}}}const AL=/^(\d+)(th|st|nd|rd)?/i,NL=/\d+/i,OL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},jL={any:[/^b/i,/^(a|c)/i]},ML={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},DL={any:[/1/i,/2/i,/3/i,/4/i]},_L={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},LL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},PL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},UL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$L={ordinalNumber:CL({matchPattern:AL,parsePattern:NL,valueCallback:t=>parseInt(t,10)}),era:Pl({matchPatterns:OL,defaultMatchWidth:"wide",parsePatterns:jL,defaultParseWidth:"any"}),quarter:Pl({matchPatterns:ML,defaultMatchWidth:"wide",parsePatterns:DL,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Pl({matchPatterns:_L,defaultMatchWidth:"wide",parsePatterns:LL,defaultParseWidth:"any"}),day:Pl({matchPatterns:zL,defaultMatchWidth:"wide",parsePatterns:PL,defaultParseWidth:"any"}),dayPeriod:Pl({matchPatterns:kL,defaultMatchWidth:"any",parsePatterns:UL,defaultParseWidth:"any"})},HL={code:"en-US",formatDistance:cL,formatLong:hL,formatRelative:pL,localize:EL,match:$L,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qL(t,r){const a=wn(t,r==null?void 0:r.in);return rL(a,lL(a))+1}function BL(t,r){const a=wn(t,r==null?void 0:r.in),i=+tu(a)-+aL(a);return Math.round(i/ZE)+1}function e1(t,r){var g,b,x,E;const a=wn(t,r==null?void 0:r.in),i=a.getFullYear(),o=Ru(),c=(r==null?void 0:r.firstWeekContainsDate)??((b=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:b.firstWeekContainsDate)??o.firstWeekContainsDate??((E=(x=o.locale)==null?void 0:x.options)==null?void 0:E.firstWeekContainsDate)??1,f=ma((r==null?void 0:r.in)||t,0);f.setFullYear(i+1,0,c),f.setHours(0,0,0,0);const d=Gl(f,r),h=ma((r==null?void 0:r.in)||t,0);h.setFullYear(i,0,c),h.setHours(0,0,0,0);const p=Gl(h,r);return+a>=+d?i+1:+a>=+p?i:i-1}function IL(t,r){var d,h,p,g;const a=Ru(),i=(r==null?void 0:r.firstWeekContainsDate)??((h=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??a.firstWeekContainsDate??((g=(p=a.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=e1(t,r),c=ma((r==null?void 0:r.in)||t,0);return c.setFullYear(o,0,i),c.setHours(0,0,0,0),Gl(c,r)}function VL(t,r){const a=wn(t,r==null?void 0:r.in),i=+Gl(a,r)-+IL(a,r);return Math.round(i/ZE)+1}function $e(t,r){const a=t<0?"-":"",i=Math.abs(t).toString().padStart(r,"0");return a+i}const Zr={y(t,r){const a=t.getFullYear(),i=a>0?a:1-a;return $e(r==="yy"?i%100:i,r.length)},M(t,r){const a=t.getMonth();return r==="M"?String(a+1):$e(a+1,2)},d(t,r){return $e(t.getDate(),r.length)},a(t,r){const a=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(t,r){return $e(t.getHours()%12||12,r.length)},H(t,r){return $e(t.getHours(),r.length)},m(t,r){return $e(t.getMinutes(),r.length)},s(t,r){return $e(t.getSeconds(),r.length)},S(t,r){const a=r.length,i=t.getMilliseconds(),o=Math.trunc(i*Math.pow(10,a-3));return $e(o,r.length)}},Ks={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},P0={G:function(t,r,a){const i=t.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})}},y:function(t,r,a){if(r==="yo"){const i=t.getFullYear(),o=i>0?i:1-i;return a.ordinalNumber(o,{unit:"year"})}return Zr.y(t,r)},Y:function(t,r,a,i){const o=e1(t,i),c=o>0?o:1-o;if(r==="YY"){const f=c%100;return $e(f,2)}return r==="Yo"?a.ordinalNumber(c,{unit:"year"}):$e(c,r.length)},R:function(t,r){const a=JE(t);return $e(a,r.length)},u:function(t,r){const a=t.getFullYear();return $e(a,r.length)},Q:function(t,r,a){const i=Math.ceil((t.getMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return $e(i,2);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,a){const i=Math.ceil((t.getMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return $e(i,2);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,a){const i=t.getMonth();switch(r){case"M":case"MM":return Zr.M(t,r);case"Mo":return a.ordinalNumber(i+1,{unit:"month"});case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,a){const i=t.getMonth();switch(r){case"L":return String(i+1);case"LL":return $e(i+1,2);case"Lo":return a.ordinalNumber(i+1,{unit:"month"});case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,a,i){const o=VL(t,i);return r==="wo"?a.ordinalNumber(o,{unit:"week"}):$e(o,r.length)},I:function(t,r,a){const i=BL(t);return r==="Io"?a.ordinalNumber(i,{unit:"week"}):$e(i,r.length)},d:function(t,r,a){return r==="do"?a.ordinalNumber(t.getDate(),{unit:"date"}):Zr.d(t,r)},D:function(t,r,a){const i=qL(t);return r==="Do"?a.ordinalNumber(i,{unit:"dayOfYear"}):$e(i,r.length)},E:function(t,r,a){const i=t.getDay();switch(r){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,a,i){const o=t.getDay(),c=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(c);case"ee":return $e(c,2);case"eo":return a.ordinalNumber(c,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,a,i){const o=t.getDay(),c=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(c);case"cc":return $e(c,r.length);case"co":return a.ordinalNumber(c,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,a){const i=t.getDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return $e(o,r.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(i,{width:"short",context:"formatting"});case"iiii":default:return a.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,a){const o=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,a){const i=t.getHours();let o;switch(i===12?o=Ks.noon:i===0?o=Ks.midnight:o=i/12>=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,a){const i=t.getHours();let o;switch(i>=17?o=Ks.evening:i>=12?o=Ks.afternoon:i>=4?o=Ks.morning:o=Ks.night,r){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,a){if(r==="ho"){let i=t.getHours()%12;return i===0&&(i=12),a.ordinalNumber(i,{unit:"hour"})}return Zr.h(t,r)},H:function(t,r,a){return r==="Ho"?a.ordinalNumber(t.getHours(),{unit:"hour"}):Zr.H(t,r)},K:function(t,r,a){const i=t.getHours()%12;return r==="Ko"?a.ordinalNumber(i,{unit:"hour"}):$e(i,r.length)},k:function(t,r,a){let i=t.getHours();return i===0&&(i=24),r==="ko"?a.ordinalNumber(i,{unit:"hour"}):$e(i,r.length)},m:function(t,r,a){return r==="mo"?a.ordinalNumber(t.getMinutes(),{unit:"minute"}):Zr.m(t,r)},s:function(t,r,a){return r==="so"?a.ordinalNumber(t.getSeconds(),{unit:"second"}):Zr.s(t,r)},S:function(t,r){return Zr.S(t,r)},X:function(t,r,a){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return U0(i);case"XXXX":case"XX":return Ia(i);case"XXXXX":case"XXX":default:return Ia(i,":")}},x:function(t,r,a){const i=t.getTimezoneOffset();switch(r){case"x":return U0(i);case"xxxx":case"xx":return Ia(i);case"xxxxx":case"xxx":default:return Ia(i,":")}},O:function(t,r,a){const i=t.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+k0(i,":");case"OOOO":default:return"GMT"+Ia(i,":")}},z:function(t,r,a){const i=t.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+k0(i,":");case"zzzz":default:return"GMT"+Ia(i,":")}},t:function(t,r,a){const i=Math.trunc(+t/1e3);return $e(i,r.length)},T:function(t,r,a){return $e(+t,r.length)}};function k0(t,r=""){const a=t>0?"-":"+",i=Math.abs(t),o=Math.trunc(i/60),c=i%60;return c===0?a+String(o):a+String(o)+r+$e(c,2)}function U0(t,r){return t%60===0?(t>0?"-":"+")+$e(Math.abs(t)/60,2):Ia(t,r)}function Ia(t,r=""){const a=t>0?"-":"+",i=Math.abs(t),o=$e(Math.trunc(i/60),2),c=$e(i%60,2);return a+o+r+c}const $0=(t,r)=>{switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},t1=(t,r)=>{switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},YL=(t,r)=>{const a=t.match(/(P+)(p+)?/)||[],i=a[1],o=a[2];if(!o)return $0(t,r);let c;switch(i){case"P":c=r.dateTime({width:"short"});break;case"PP":c=r.dateTime({width:"medium"});break;case"PPP":c=r.dateTime({width:"long"});break;case"PPPP":default:c=r.dateTime({width:"full"});break}return c.replace("{{date}}",$0(i,r)).replace("{{time}}",t1(o,r))},GL={p:t1,P:YL},FL=/^D+$/,QL=/^Y+$/,XL=["D","DD","YY","YYYY"];function WL(t){return FL.test(t)}function KL(t){return QL.test(t)}function ZL(t,r,a){const i=JL(t,r,a);if(console.warn(i),XL.includes(t))throw new RangeError(i)}function JL(t,r,a){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${r}\`) for formatting ${i} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const e4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,t4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n4=/^'([^]*?)'?$/,r4=/''/g,a4=/[a-zA-Z]/;function s4(t,r,a){var g,b,x,E;const i=Ru(),o=i.locale??HL,c=i.firstWeekContainsDate??((b=(g=i.locale)==null?void 0:g.options)==null?void 0:b.firstWeekContainsDate)??1,f=i.weekStartsOn??((E=(x=i.locale)==null?void 0:x.options)==null?void 0:E.weekStartsOn)??0,d=wn(t,a==null?void 0:a.in);if(!iL(d))throw new RangeError("Invalid time value");let h=r.match(t4).map(R=>{const S=R[0];if(S==="p"||S==="P"){const w=GL[S];return w(R,o.formatLong)}return R}).join("").match(e4).map(R=>{if(R==="''")return{isToken:!1,value:"'"};const S=R[0];if(S==="'")return{isToken:!1,value:i4(R)};if(P0[S])return{isToken:!0,value:R};if(S.match(a4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:R}});o.localize.preprocessor&&(h=o.localize.preprocessor(d,h));const p={firstWeekContainsDate:c,weekStartsOn:f,locale:o};return h.map(R=>{if(!R.isToken)return R.value;const S=R.value;(KL(S)||WL(S))&&ZL(S,r,String(t));const w=P0[S[0]];return w(d,S,o.localize,p)}).join("")}function i4(t){const r=t.match(n4);return r?r[1].replace(r4,"'"):t}function n1({title:t,subtitle:r}){return v.jsxs("div",{className:"space-y-0.5",children:[v.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:t}),r?v.jsx("p",{className:"text-muted-foreground",children:r}):null]})}function Um(t,[r,a]){return Math.min(a,Math.max(r,t))}function l4(t,r){return y.useReducer((a,i)=>r[a][i]??a,t)}var Mp="ScrollArea",[r1,zz]=Hn(Mp),[o4,on]=r1(Mp),a1=y.forwardRef((t,r)=>{const{__scopeScrollArea:a,type:i="hover",dir:o,scrollHideDelay:c=600,...f}=t,[d,h]=y.useState(null),[p,g]=y.useState(null),[b,x]=y.useState(null),[E,R]=y.useState(null),[S,w]=y.useState(null),[C,A]=y.useState(0),[N,L]=y.useState(0),[_,k]=y.useState(!1),[I,Y]=y.useState(!1),H=ke(r,Z=>h(Z)),K=Su(o);return v.jsx(o4,{scope:a,type:i,dir:K,scrollHideDelay:c,scrollArea:d,viewport:p,onViewportChange:g,content:b,onContentChange:x,scrollbarX:E,onScrollbarXChange:R,scrollbarXEnabled:_,onScrollbarXEnabledChange:k,scrollbarY:S,onScrollbarYChange:w,scrollbarYEnabled:I,onScrollbarYEnabledChange:Y,onCornerWidthChange:A,onCornerHeightChange:L,children:v.jsx(Se.div,{dir:K,...f,ref:H,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":N+"px",...t.style}})})});a1.displayName=Mp;var s1="ScrollAreaViewport",i1=y.forwardRef((t,r)=>{const{__scopeScrollArea:a,children:i,nonce:o,...c}=t,f=on(s1,a),d=y.useRef(null),h=ke(r,d,f.onViewportChange);return v.jsxs(v.Fragment,{children:[v.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:o}),v.jsx(Se.div,{"data-radix-scroll-area-viewport":"",...c,ref:h,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...t.style},children:v.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});i1.displayName=s1;var Gn="ScrollAreaScrollbar",Dp=y.forwardRef((t,r)=>{const{forceMount:a,...i}=t,o=on(Gn,t.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:f}=o,d=t.orientation==="horizontal";return y.useEffect(()=>(d?c(!0):f(!0),()=>{d?c(!1):f(!1)}),[d,c,f]),o.type==="hover"?v.jsx(c4,{...i,ref:r,forceMount:a}):o.type==="scroll"?v.jsx(u4,{...i,ref:r,forceMount:a}):o.type==="auto"?v.jsx(l1,{...i,ref:r,forceMount:a}):o.type==="always"?v.jsx(_p,{...i,ref:r}):null});Dp.displayName=Gn;var c4=y.forwardRef((t,r)=>{const{forceMount:a,...i}=t,o=on(Gn,t.__scopeScrollArea),[c,f]=y.useState(!1);return y.useEffect(()=>{const d=o.scrollArea;let h=0;if(d){const p=()=>{window.clearTimeout(h),f(!0)},g=()=>{h=window.setTimeout(()=>f(!1),o.scrollHideDelay)};return d.addEventListener("pointerenter",p),d.addEventListener("pointerleave",g),()=>{window.clearTimeout(h),d.removeEventListener("pointerenter",p),d.removeEventListener("pointerleave",g)}}},[o.scrollArea,o.scrollHideDelay]),v.jsx(ln,{present:a||c,children:v.jsx(l1,{"data-state":c?"visible":"hidden",...i,ref:r})})}),u4=y.forwardRef((t,r)=>{const{forceMount:a,...i}=t,o=on(Gn,t.__scopeScrollArea),c=t.orientation==="horizontal",f=Cu(()=>h("SCROLL_END"),100),[d,h]=l4("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(d==="idle"){const p=window.setTimeout(()=>h("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[d,o.scrollHideDelay,h]),y.useEffect(()=>{const p=o.viewport,g=c?"scrollLeft":"scrollTop";if(p){let b=p[g];const x=()=>{const E=p[g];b!==E&&(h("SCROLL"),f()),b=E};return p.addEventListener("scroll",x),()=>p.removeEventListener("scroll",x)}},[o.viewport,c,h,f]),v.jsx(ln,{present:a||d!=="hidden",children:v.jsx(_p,{"data-state":d==="hidden"?"hidden":"visible",...i,ref:r,onPointerEnter:ge(t.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:ge(t.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),l1=y.forwardRef((t,r)=>{const a=on(Gn,t.__scopeScrollArea),{forceMount:i,...o}=t,[c,f]=y.useState(!1),d=t.orientation==="horizontal",h=Cu(()=>{if(a.viewport){const p=a.viewport.offsetWidth<a.viewport.scrollWidth,g=a.viewport.offsetHeight<a.viewport.scrollHeight;f(d?p:g)}},10);return wi(a.viewport,h),wi(a.content,h),v.jsx(ln,{present:i||c,children:v.jsx(_p,{"data-state":c?"visible":"hidden",...o,ref:r})})}),_p=y.forwardRef((t,r)=>{const{orientation:a="vertical",...i}=t,o=on(Gn,t.__scopeScrollArea),c=y.useRef(null),f=y.useRef(0),[d,h]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=d1(d.viewport,d.content),g={...i,sizes:d,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:x=>c.current=x,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:x=>f.current=x};function b(x,E){return v4(x,f.current,d,E)}return a==="horizontal"?v.jsx(f4,{...g,ref:r,onThumbPositionChange:()=>{if(o.viewport&&c.current){const x=o.viewport.scrollLeft,E=H0(x,d,o.dir);c.current.style.transform=`translate3d(${E}px, 0, 0)`}},onWheelScroll:x=>{o.viewport&&(o.viewport.scrollLeft=x)},onDragScroll:x=>{o.viewport&&(o.viewport.scrollLeft=b(x,o.dir))}}):a==="vertical"?v.jsx(d4,{...g,ref:r,onThumbPositionChange:()=>{if(o.viewport&&c.current){const x=o.viewport.scrollTop,E=H0(x,d);c.current.style.transform=`translate3d(0, ${E}px, 0)`}},onWheelScroll:x=>{o.viewport&&(o.viewport.scrollTop=x)},onDragScroll:x=>{o.viewport&&(o.viewport.scrollTop=b(x))}}):null}),f4=y.forwardRef((t,r)=>{const{sizes:a,onSizesChange:i,...o}=t,c=on(Gn,t.__scopeScrollArea),[f,d]=y.useState(),h=y.useRef(null),p=ke(r,h,c.onScrollbarXChange);return y.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),v.jsx(c1,{"data-orientation":"horizontal",...o,ref:p,sizes:a,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Tu(a)+"px",...t.style},onThumbPointerDown:g=>t.onThumbPointerDown(g.x),onDragScroll:g=>t.onDragScroll(g.x),onWheelScroll:(g,b)=>{if(c.viewport){const x=c.viewport.scrollLeft+g.deltaX;t.onWheelScroll(x),m1(x,b)&&g.preventDefault()}},onResize:()=>{h.current&&c.viewport&&f&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:ru(f.paddingLeft),paddingEnd:ru(f.paddingRight)}})}})}),d4=y.forwardRef((t,r)=>{const{sizes:a,onSizesChange:i,...o}=t,c=on(Gn,t.__scopeScrollArea),[f,d]=y.useState(),h=y.useRef(null),p=ke(r,h,c.onScrollbarYChange);return y.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),v.jsx(c1,{"data-orientation":"vertical",...o,ref:p,sizes:a,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Tu(a)+"px",...t.style},onThumbPointerDown:g=>t.onThumbPointerDown(g.y),onDragScroll:g=>t.onDragScroll(g.y),onWheelScroll:(g,b)=>{if(c.viewport){const x=c.viewport.scrollTop+g.deltaY;t.onWheelScroll(x),m1(x,b)&&g.preventDefault()}},onResize:()=>{h.current&&c.viewport&&f&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:ru(f.paddingTop),paddingEnd:ru(f.paddingBottom)}})}})}),[h4,o1]=r1(Gn),c1=y.forwardRef((t,r)=>{const{__scopeScrollArea:a,sizes:i,hasThumb:o,onThumbChange:c,onThumbPointerUp:f,onThumbPointerDown:d,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:g,onResize:b,...x}=t,E=on(Gn,a),[R,S]=y.useState(null),w=ke(r,H=>S(H)),C=y.useRef(null),A=y.useRef(""),N=E.viewport,L=i.content-i.viewport,_=nt(g),k=nt(h),I=Cu(b,10);function Y(H){if(C.current){const K=H.clientX-C.current.left,Z=H.clientY-C.current.top;p({x:K,y:Z})}}return y.useEffect(()=>{const H=K=>{const Z=K.target;(R==null?void 0:R.contains(Z))&&_(K,L)};return document.addEventListener("wheel",H,{passive:!1}),()=>document.removeEventListener("wheel",H,{passive:!1})},[N,R,L,_]),y.useEffect(k,[i,k]),wi(R,I),wi(E.content,I),v.jsx(h4,{scope:a,scrollbar:R,hasThumb:o,onThumbChange:nt(c),onThumbPointerUp:nt(f),onThumbPositionChange:k,onThumbPointerDown:nt(d),children:v.jsx(Se.div,{...x,ref:w,style:{position:"absolute",...x.style},onPointerDown:ge(t.onPointerDown,H=>{H.button===0&&(H.target.setPointerCapture(H.pointerId),C.current=R.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E.viewport&&(E.viewport.style.scrollBehavior="auto"),Y(H))}),onPointerMove:ge(t.onPointerMove,Y),onPointerUp:ge(t.onPointerUp,H=>{const K=H.target;K.hasPointerCapture(H.pointerId)&&K.releasePointerCapture(H.pointerId),document.body.style.webkitUserSelect=A.current,E.viewport&&(E.viewport.style.scrollBehavior=""),C.current=null})})})}),nu="ScrollAreaThumb",u1=y.forwardRef((t,r)=>{const{forceMount:a,...i}=t,o=o1(nu,t.__scopeScrollArea);return v.jsx(ln,{present:a||o.hasThumb,children:v.jsx(m4,{ref:r,...i})})}),m4=y.forwardRef((t,r)=>{const{__scopeScrollArea:a,style:i,...o}=t,c=on(nu,a),f=o1(nu,a),{onThumbPositionChange:d}=f,h=ke(r,b=>f.onThumbChange(b)),p=y.useRef(void 0),g=Cu(()=>{p.current&&(p.current(),p.current=void 0)},100);return y.useEffect(()=>{const b=c.viewport;if(b){const x=()=>{if(g(),!p.current){const E=g4(b,d);p.current=E,d()}};return d(),b.addEventListener("scroll",x),()=>b.removeEventListener("scroll",x)}},[c.viewport,g,d]),v.jsx(Se.div,{"data-state":f.hasThumb?"visible":"hidden",...o,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ge(t.onPointerDownCapture,b=>{const E=b.target.getBoundingClientRect(),R=b.clientX-E.left,S=b.clientY-E.top;f.onThumbPointerDown({x:R,y:S})}),onPointerUp:ge(t.onPointerUp,f.onThumbPointerUp)})});u1.displayName=nu;var Lp="ScrollAreaCorner",f1=y.forwardRef((t,r)=>{const a=on(Lp,t.__scopeScrollArea),i=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&i?v.jsx(p4,{...t,ref:r}):null});f1.displayName=Lp;var p4=y.forwardRef((t,r)=>{const{__scopeScrollArea:a,...i}=t,o=on(Lp,a),[c,f]=y.useState(0),[d,h]=y.useState(0),p=!!(c&&d);return wi(o.scrollbarX,()=>{var b;const g=((b=o.scrollbarX)==null?void 0:b.offsetHeight)||0;o.onCornerHeightChange(g),h(g)}),wi(o.scrollbarY,()=>{var b;const g=((b=o.scrollbarY)==null?void 0:b.offsetWidth)||0;o.onCornerWidthChange(g),f(g)}),p?v.jsx(Se.div,{...i,ref:r,style:{width:c,height:d,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function ru(t){return t?parseInt(t,10):0}function d1(t,r){const a=t/r;return isNaN(a)?0:a}function Tu(t){const r=d1(t.viewport,t.content),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=(t.scrollbar.size-a)*r;return Math.max(i,18)}function v4(t,r,a,i="ltr"){const o=Tu(a),c=o/2,f=r||c,d=o-f,h=a.scrollbar.paddingStart+f,p=a.scrollbar.size-a.scrollbar.paddingEnd-d,g=a.content-a.viewport,b=i==="ltr"?[0,g]:[g*-1,0];return h1([h,p],b)(t)}function H0(t,r,a="ltr"){const i=Tu(r),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,c=r.scrollbar.size-o,f=r.content-r.viewport,d=c-i,h=a==="ltr"?[0,f]:[f*-1,0],p=Um(t,h);return h1([0,f],[0,d])(p)}function h1(t,r){return a=>{if(t[0]===t[1]||r[0]===r[1])return r[0];const i=(r[1]-r[0])/(t[1]-t[0]);return r[0]+i*(a-t[0])}}function m1(t,r){return t>0&&t<r}var g4=(t,r=()=>{})=>{let a={left:t.scrollLeft,top:t.scrollTop},i=0;return function o(){const c={left:t.scrollLeft,top:t.scrollTop},f=a.left!==c.left,d=a.top!==c.top;(f||d)&&r(),a=c,i=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(i)};function Cu(t,r){const a=nt(t),i=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),y.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(a,r)},[a,r])}function wi(t,r){const a=nt(r);ft(()=>{let i=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(a)});return o.observe(t),()=>{window.cancelAnimationFrame(i),o.unobserve(t)}}},[t,a])}var p1=a1,y4=i1,b4=f1;const v1=y.forwardRef(({className:t,children:r,...a},i)=>v.jsxs(p1,{ref:i,className:le("relative overflow-hidden",t),...a,children:[v.jsx(y4,{className:"h-full w-full rounded-[inherit]",children:r}),v.jsx(g1,{}),v.jsx(b4,{})]}));v1.displayName=p1.displayName;const g1=y.forwardRef(({className:t,orientation:r="vertical",...a},i)=>v.jsx(Dp,{ref:i,orientation:r,className:le("flex touch-none select-none transition-colors",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...a,children:v.jsx(u1,{className:"relative flex-1 rounded-full bg-border"})}));g1.displayName=Dp.displayName;function x4(t){const r=y.useRef({value:t,previous:t});return y.useMemo(()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous),[t])}var w4=[" ","Enter","ArrowUp","ArrowDown"],S4=[" ","Enter"],lo="Select",[Au,Nu,E4]=Ap(lo),[ji,Pz]=Hn(lo,[E4,hu]),Ou=hu(),[R4,ga]=ji(lo),[T4,C4]=ji(lo),y1=t=>{const{__scopeSelect:r,children:a,open:i,defaultOpen:o,onOpenChange:c,value:f,defaultValue:d,onValueChange:h,dir:p,name:g,autoComplete:b,disabled:x,required:E,form:R}=t,S=Ou(r),[w,C]=y.useState(null),[A,N]=y.useState(null),[L,_]=y.useState(!1),k=Su(p),[I=!1,Y]=rs({prop:i,defaultProp:o,onChange:c}),[H,K]=rs({prop:f,defaultProp:d,onChange:h}),Z=y.useRef(null),ne=w?R||!!w.closest("form"):!0,[ce,$]=y.useState(new Set),U=Array.from(ce).map(M=>M.props.value).join(";");return v.jsx(mS,{...S,children:v.jsxs(R4,{required:E,scope:r,trigger:w,onTriggerChange:C,valueNode:A,onValueNodeChange:N,valueNodeHasChildren:L,onValueNodeHasChildrenChange:_,contentId:yr(),value:H,onValueChange:K,open:I,onOpenChange:Y,dir:k,triggerPointerDownPosRef:Z,disabled:x,children:[v.jsx(Au.Provider,{scope:r,children:v.jsx(T4,{scope:t.__scopeSelect,onNativeOptionAdd:y.useCallback(M=>{$(q=>new Set(q).add(M))},[]),onNativeOptionRemove:y.useCallback(M=>{$(q=>{const z=new Set(q);return z.delete(M),z})},[]),children:a})}),ne?v.jsxs(I1,{"aria-hidden":!0,required:E,tabIndex:-1,name:g,autoComplete:b,value:H,onChange:M=>K(M.target.value),disabled:x,form:R,children:[H===void 0?v.jsx("option",{value:""}):null,Array.from(ce)]},U):null]})})};y1.displayName=lo;var b1="SelectTrigger",x1=y.forwardRef((t,r)=>{const{__scopeSelect:a,disabled:i=!1,...o}=t,c=Ou(a),f=ga(b1,a),d=f.disabled||i,h=ke(r,f.onTriggerChange),p=Nu(a),g=y.useRef("touch"),[b,x,E]=V1(S=>{const w=p().filter(N=>!N.disabled),C=w.find(N=>N.value===f.value),A=Y1(w,S,C);A!==void 0&&f.onValueChange(A.value)}),R=S=>{d||(f.onOpenChange(!0),E()),S&&(f.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return v.jsx(pS,{asChild:!0,...c,children:v.jsx(Se.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":B1(f.value)?"":void 0,...o,ref:h,onClick:ge(o.onClick,S=>{S.currentTarget.focus(),g.current!=="mouse"&&R(S)}),onPointerDown:ge(o.onPointerDown,S=>{g.current=S.pointerType;const w=S.target;w.hasPointerCapture(S.pointerId)&&w.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(R(S),S.preventDefault())}),onKeyDown:ge(o.onKeyDown,S=>{const w=b.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&x(S.key),!(w&&S.key===" ")&&w4.includes(S.key)&&(R(),S.preventDefault())})})})});x1.displayName=b1;var w1="SelectValue",S1=y.forwardRef((t,r)=>{const{__scopeSelect:a,className:i,style:o,children:c,placeholder:f="",...d}=t,h=ga(w1,a),{onValueNodeHasChildrenChange:p}=h,g=c!==void 0,b=ke(r,h.onValueNodeChange);return ft(()=>{p(g)},[p,g]),v.jsx(Se.span,{...d,ref:b,style:{pointerEvents:"none"},children:B1(h.value)?v.jsx(v.Fragment,{children:f}):c})});S1.displayName=w1;var A4="SelectIcon",E1=y.forwardRef((t,r)=>{const{__scopeSelect:a,children:i,...o}=t;return v.jsx(Se.span,{"aria-hidden":!0,...o,ref:r,children:i||"▼"})});E1.displayName=A4;var N4="SelectPortal",R1=t=>v.jsx(Jl,{asChild:!0,...t});R1.displayName=N4;var os="SelectContent",T1=y.forwardRef((t,r)=>{const a=ga(os,t.__scopeSelect),[i,o]=y.useState();if(ft(()=>{o(new DocumentFragment)},[]),!a.open){const c=i;return c?Ei.createPortal(v.jsx(C1,{scope:t.__scopeSelect,children:v.jsx(Au.Slot,{scope:t.__scopeSelect,children:v.jsx("div",{children:t.children})})}),c):null}return v.jsx(A1,{...t,ref:r})});T1.displayName=os;var hn=10,[C1,ya]=ji(os),O4="SelectContentImpl",A1=y.forwardRef((t,r)=>{const{__scopeSelect:a,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:f,side:d,sideOffset:h,align:p,alignOffset:g,arrowPadding:b,collisionBoundary:x,collisionPadding:E,sticky:R,hideWhenDetached:S,avoidCollisions:w,...C}=t,A=ga(os,a),[N,L]=y.useState(null),[_,k]=y.useState(null),I=ke(r,fe=>L(fe)),[Y,H]=y.useState(null),[K,Z]=y.useState(null),ne=Nu(a),[ce,$]=y.useState(!1),U=y.useRef(!1);y.useEffect(()=>{if(N)return Ew(N)},[N]),mw();const M=y.useCallback(fe=>{const[me,...Ee]=ne().map(Ae=>Ae.ref.current),[de]=Ee.slice(-1),we=document.activeElement;for(const Ae of fe)if(Ae===we||(Ae==null||Ae.scrollIntoView({block:"nearest"}),Ae===me&&_&&(_.scrollTop=0),Ae===de&&_&&(_.scrollTop=_.scrollHeight),Ae==null||Ae.focus(),document.activeElement!==we))return},[ne,_]),q=y.useCallback(()=>M([Y,N]),[M,Y,N]);y.useEffect(()=>{ce&&q()},[ce,q]);const{onOpenChange:z,triggerPointerDownPosRef:Q}=A;y.useEffect(()=>{if(N){let fe={x:0,y:0};const me=de=>{var we,Ae;fe={x:Math.abs(Math.round(de.pageX)-(((we=Q.current)==null?void 0:we.x)??0)),y:Math.abs(Math.round(de.pageY)-(((Ae=Q.current)==null?void 0:Ae.y)??0))}},Ee=de=>{fe.x<=10&&fe.y<=10?de.preventDefault():N.contains(de.target)||z(!1),document.removeEventListener("pointermove",me),Q.current=null};return Q.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",Ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",Ee,{capture:!0})}}},[N,z,Q]),y.useEffect(()=>{const fe=()=>z(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[z]);const[j,G]=V1(fe=>{const me=ne().filter(we=>!we.disabled),Ee=me.find(we=>we.ref.current===document.activeElement),de=Y1(me,fe,Ee);de&&setTimeout(()=>de.ref.current.focus())}),te=y.useCallback((fe,me,Ee)=>{const de=!U.current&&!Ee;(A.value!==void 0&&A.value===me||de)&&(H(fe),de&&(U.current=!0))},[A.value]),se=y.useCallback(()=>N==null?void 0:N.focus(),[N]),ae=y.useCallback((fe,me,Ee)=>{const de=!U.current&&!Ee;(A.value!==void 0&&A.value===me||de)&&Z(fe)},[A.value]),oe=i==="popper"?$m:N1,pe=oe===$m?{side:d,sideOffset:h,align:p,alignOffset:g,arrowPadding:b,collisionBoundary:x,collisionPadding:E,sticky:R,hideWhenDetached:S,avoidCollisions:w}:{};return v.jsx(C1,{scope:a,content:N,viewport:_,onViewportChange:k,itemRefCallback:te,selectedItem:Y,onItemLeave:se,itemTextRefCallback:ae,focusSelectedItem:q,selectedItemText:K,position:i,isPositioned:ce,searchRef:j,children:v.jsx(Jm,{as:sn,allowPinchZoom:!0,children:v.jsx(Zm,{asChild:!0,trapped:A.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:ge(o,fe=>{var me;(me=A.trigger)==null||me.focus({preventScroll:!0}),fe.preventDefault()}),children:v.jsx(Zl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:v.jsx(oe,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:fe=>fe.preventDefault(),...C,...pe,onPlaced:()=>$(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:ge(C.onKeyDown,fe=>{const me=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!me&&fe.key.length===1&&G(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let de=ne().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const we=fe.target,Ae=de.indexOf(we);de=de.slice(Ae+1)}setTimeout(()=>M(de)),fe.preventDefault()}})})})})})})});A1.displayName=O4;var j4="SelectItemAlignedPosition",N1=y.forwardRef((t,r)=>{const{__scopeSelect:a,onPlaced:i,...o}=t,c=ga(os,a),f=ya(os,a),[d,h]=y.useState(null),[p,g]=y.useState(null),b=ke(r,I=>g(I)),x=Nu(a),E=y.useRef(!1),R=y.useRef(!0),{viewport:S,selectedItem:w,selectedItemText:C,focusSelectedItem:A}=f,N=y.useCallback(()=>{if(c.trigger&&c.valueNode&&d&&p&&S&&w&&C){const I=c.trigger.getBoundingClientRect(),Y=p.getBoundingClientRect(),H=c.valueNode.getBoundingClientRect(),K=C.getBoundingClientRect();if(c.dir!=="rtl"){const we=K.left-Y.left,Ae=H.left-we,Ve=I.left-Ae,Rt=I.width+Ve,Rn=Math.max(Rt,Y.width),Vt=window.innerWidth-hn,Fn=Um(Ae,[hn,Math.max(hn,Vt-Rn)]);d.style.minWidth=Rt+"px",d.style.left=Fn+"px"}else{const we=Y.right-K.right,Ae=window.innerWidth-H.right-we,Ve=window.innerWidth-I.right-Ae,Rt=I.width+Ve,Rn=Math.max(Rt,Y.width),Vt=window.innerWidth-hn,Fn=Um(Ae,[hn,Math.max(hn,Vt-Rn)]);d.style.minWidth=Rt+"px",d.style.right=Fn+"px"}const Z=x(),ne=window.innerHeight-hn*2,ce=S.scrollHeight,$=window.getComputedStyle(p),U=parseInt($.borderTopWidth,10),M=parseInt($.paddingTop,10),q=parseInt($.borderBottomWidth,10),z=parseInt($.paddingBottom,10),Q=U+M+ce+z+q,j=Math.min(w.offsetHeight*5,Q),G=window.getComputedStyle(S),te=parseInt(G.paddingTop,10),se=parseInt(G.paddingBottom,10),ae=I.top+I.height/2-hn,oe=ne-ae,pe=w.offsetHeight/2,fe=w.offsetTop+pe,me=U+M+fe,Ee=Q-me;if(me<=ae){const we=Z.length>0&&w===Z[Z.length-1].ref.current;d.style.bottom="0px";const Ae=p.clientHeight-S.offsetTop-S.offsetHeight,Ve=Math.max(oe,pe+(we?se:0)+Ae+q),Rt=me+Ve;d.style.height=Rt+"px"}else{const we=Z.length>0&&w===Z[0].ref.current;d.style.top="0px";const Ve=Math.max(ae,U+S.offsetTop+(we?te:0)+pe)+Ee;d.style.height=Ve+"px",S.scrollTop=me-ae+S.offsetTop}d.style.margin=`${hn}px 0`,d.style.minHeight=j+"px",d.style.maxHeight=ne+"px",i==null||i(),requestAnimationFrame(()=>E.current=!0)}},[x,c.trigger,c.valueNode,d,p,S,w,C,c.dir,i]);ft(()=>N(),[N]);const[L,_]=y.useState();ft(()=>{p&&_(window.getComputedStyle(p).zIndex)},[p]);const k=y.useCallback(I=>{I&&R.current===!0&&(N(),A==null||A(),R.current=!1)},[N,A]);return v.jsx(D4,{scope:a,contentWrapper:d,shouldExpandOnScrollRef:E,onScrollButtonChange:k,children:v.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:v.jsx(Se.div,{...o,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});N1.displayName=j4;var M4="SelectPopperPosition",$m=y.forwardRef((t,r)=>{const{__scopeSelect:a,align:i="start",collisionPadding:o=hn,...c}=t,f=Ou(a);return v.jsx(vS,{...f,...c,ref:r,align:i,collisionPadding:o,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});$m.displayName=M4;var[D4,zp]=ji(os,{}),Hm="SelectViewport",O1=y.forwardRef((t,r)=>{const{__scopeSelect:a,nonce:i,...o}=t,c=ya(Hm,a),f=zp(Hm,a),d=ke(r,c.onViewportChange),h=y.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),v.jsx(Au.Slot,{scope:a,children:v.jsx(Se.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ge(o.onScroll,p=>{const g=p.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:x}=f;if(x!=null&&x.current&&b){const E=Math.abs(h.current-g.scrollTop);if(E>0){const R=window.innerHeight-hn*2,S=parseFloat(b.style.minHeight),w=parseFloat(b.style.height),C=Math.max(S,w);if(C<R){const A=C+E,N=Math.min(R,A),L=A-N;b.style.height=N+"px",b.style.bottom==="0px"&&(g.scrollTop=L>0?L:0,b.style.justifyContent="flex-end")}}}h.current=g.scrollTop})})})]})});O1.displayName=Hm;var j1="SelectGroup",[_4,L4]=ji(j1),z4=y.forwardRef((t,r)=>{const{__scopeSelect:a,...i}=t,o=yr();return v.jsx(_4,{scope:a,id:o,children:v.jsx(Se.div,{role:"group","aria-labelledby":o,...i,ref:r})})});z4.displayName=j1;var M1="SelectLabel",D1=y.forwardRef((t,r)=>{const{__scopeSelect:a,...i}=t,o=L4(M1,a);return v.jsx(Se.div,{id:o.id,...i,ref:r})});D1.displayName=M1;var au="SelectItem",[P4,_1]=ji(au),L1=y.forwardRef((t,r)=>{const{__scopeSelect:a,value:i,disabled:o=!1,textValue:c,...f}=t,d=ga(au,a),h=ya(au,a),p=d.value===i,[g,b]=y.useState(c??""),[x,E]=y.useState(!1),R=ke(r,A=>{var N;return(N=h.itemRefCallback)==null?void 0:N.call(h,A,i,o)}),S=yr(),w=y.useRef("touch"),C=()=>{o||(d.onValueChange(i),d.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(P4,{scope:a,value:i,disabled:o,textId:S,isSelected:p,onItemTextChange:y.useCallback(A=>{b(N=>N||((A==null?void 0:A.textContent)??"").trim())},[]),children:v.jsx(Au.ItemSlot,{scope:a,value:i,disabled:o,textValue:g,children:v.jsx(Se.div,{role:"option","aria-labelledby":S,"data-highlighted":x?"":void 0,"aria-selected":p&&x,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...f,ref:R,onFocus:ge(f.onFocus,()=>E(!0)),onBlur:ge(f.onBlur,()=>E(!1)),onClick:ge(f.onClick,()=>{w.current!=="mouse"&&C()}),onPointerUp:ge(f.onPointerUp,()=>{w.current==="mouse"&&C()}),onPointerDown:ge(f.onPointerDown,A=>{w.current=A.pointerType}),onPointerMove:ge(f.onPointerMove,A=>{var N;w.current=A.pointerType,o?(N=h.onItemLeave)==null||N.call(h):w.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ge(f.onPointerLeave,A=>{var N;A.currentTarget===document.activeElement&&((N=h.onItemLeave)==null||N.call(h))}),onKeyDown:ge(f.onKeyDown,A=>{var L;((L=h.searchRef)==null?void 0:L.current)!==""&&A.key===" "||(S4.includes(A.key)&&C(),A.key===" "&&A.preventDefault())})})})})});L1.displayName=au;var Hl="SelectItemText",z1=y.forwardRef((t,r)=>{const{__scopeSelect:a,className:i,style:o,...c}=t,f=ga(Hl,a),d=ya(Hl,a),h=_1(Hl,a),p=C4(Hl,a),[g,b]=y.useState(null),x=ke(r,C=>b(C),h.onItemTextChange,C=>{var A;return(A=d.itemTextRefCallback)==null?void 0:A.call(d,C,h.value,h.disabled)}),E=g==null?void 0:g.textContent,R=y.useMemo(()=>v.jsx("option",{value:h.value,disabled:h.disabled,children:E},h.value),[h.disabled,h.value,E]),{onNativeOptionAdd:S,onNativeOptionRemove:w}=p;return ft(()=>(S(R),()=>w(R)),[S,w,R]),v.jsxs(v.Fragment,{children:[v.jsx(Se.span,{id:h.textId,...c,ref:x}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Ei.createPortal(c.children,f.valueNode):null]})});z1.displayName=Hl;var P1="SelectItemIndicator",k1=y.forwardRef((t,r)=>{const{__scopeSelect:a,...i}=t;return _1(P1,a).isSelected?v.jsx(Se.span,{"aria-hidden":!0,...i,ref:r}):null});k1.displayName=P1;var qm="SelectScrollUpButton",U1=y.forwardRef((t,r)=>{const a=ya(qm,t.__scopeSelect),i=zp(qm,t.__scopeSelect),[o,c]=y.useState(!1),f=ke(r,i.onScrollButtonChange);return ft(()=>{if(a.viewport&&a.isPositioned){let d=function(){const p=h.scrollTop>0;c(p)};const h=a.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[a.viewport,a.isPositioned]),o?v.jsx(H1,{...t,ref:f,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=a;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null});U1.displayName=qm;var Bm="SelectScrollDownButton",$1=y.forwardRef((t,r)=>{const a=ya(Bm,t.__scopeSelect),i=zp(Bm,t.__scopeSelect),[o,c]=y.useState(!1),f=ke(r,i.onScrollButtonChange);return ft(()=>{if(a.viewport&&a.isPositioned){let d=function(){const p=h.scrollHeight-h.clientHeight,g=Math.ceil(h.scrollTop)<p;c(g)};const h=a.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[a.viewport,a.isPositioned]),o?v.jsx(H1,{...t,ref:f,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=a;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null});$1.displayName=Bm;var H1=y.forwardRef((t,r)=>{const{__scopeSelect:a,onAutoScroll:i,...o}=t,c=ya("SelectScrollButton",a),f=y.useRef(null),d=Nu(a),h=y.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return y.useEffect(()=>()=>h(),[h]),ft(()=>{var g;const p=d().find(b=>b.ref.current===document.activeElement);(g=p==null?void 0:p.ref.current)==null||g.scrollIntoView({block:"nearest"})},[d]),v.jsx(Se.div,{"aria-hidden":!0,...o,ref:r,style:{flexShrink:0,...o.style},onPointerDown:ge(o.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(i,50))}),onPointerMove:ge(o.onPointerMove,()=>{var p;(p=c.onItemLeave)==null||p.call(c),f.current===null&&(f.current=window.setInterval(i,50))}),onPointerLeave:ge(o.onPointerLeave,()=>{h()})})}),k4="SelectSeparator",q1=y.forwardRef((t,r)=>{const{__scopeSelect:a,...i}=t;return v.jsx(Se.div,{"aria-hidden":!0,...i,ref:r})});q1.displayName=k4;var Im="SelectArrow",U4=y.forwardRef((t,r)=>{const{__scopeSelect:a,...i}=t,o=Ou(a),c=ga(Im,a),f=ya(Im,a);return c.open&&f.position==="popper"?v.jsx(gS,{...o,...i,ref:r}):null});U4.displayName=Im;function B1(t){return t===""||t===void 0}var I1=y.forwardRef((t,r)=>{const{value:a,...i}=t,o=y.useRef(null),c=ke(r,o),f=x4(a);return y.useEffect(()=>{const d=o.current,h=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==a&&g){const b=new Event("change",{bubbles:!0});g.call(d,a),d.dispatchEvent(b)}},[f,a]),v.jsx(to,{asChild:!0,children:v.jsx("select",{...i,ref:c,defaultValue:a})})});I1.displayName="BubbleSelect";function V1(t){const r=nt(t),a=y.useRef(""),i=y.useRef(0),o=y.useCallback(f=>{const d=a.current+f;r(d),function h(p){a.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>h(""),1e3))}(d)},[r]),c=y.useCallback(()=>{a.current="",window.clearTimeout(i.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),[a,o,c]}function Y1(t,r,a){const o=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,c=a?t.indexOf(a):-1;let f=$4(t,Math.max(c,0));o.length===1&&(f=f.filter(p=>p!==a));const h=f.find(p=>p.textValue.toLowerCase().startsWith(o.toLowerCase()));return h!==a?h:void 0}function $4(t,r){return t.map((a,i)=>t[(r+i)%t.length])}var H4=y1,G1=x1,q4=S1,B4=E1,I4=R1,F1=T1,V4=O1,Q1=D1,X1=L1,Y4=z1,G4=k1,W1=U1,K1=$1,Z1=q1;const F4=H4,Q4=q4,J1=y.forwardRef(({className:t,children:r,...a},i)=>v.jsxs(G1,{ref:i,className:le("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...a,children:[r,v.jsx(B4,{asChild:!0,children:v.jsx(Vw,{className:"h-4 w-4 opacity-50"})})]}));J1.displayName=G1.displayName;const eR=y.forwardRef(({className:t,...r},a)=>v.jsx(W1,{ref:a,className:le("flex cursor-default items-center justify-center py-1",t),...r,children:v.jsx(ZO,{className:"h-4 w-4"})}));eR.displayName=W1.displayName;const tR=y.forwardRef(({className:t,...r},a)=>v.jsx(K1,{ref:a,className:le("flex cursor-default items-center justify-center py-1",t),...r,children:v.jsx(Vw,{className:"h-4 w-4"})}));tR.displayName=K1.displayName;const nR=y.forwardRef(({className:t,children:r,position:a="popper",...i},o)=>v.jsx(I4,{children:v.jsxs(F1,{ref:o,className:le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...i,children:[v.jsx(eR,{}),v.jsx(V4,{className:le("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),v.jsx(tR,{})]})}));nR.displayName=F1.displayName;const X4=y.forwardRef(({className:t,...r},a)=>v.jsx(Q1,{ref:a,className:le("px-2 py-1.5 text-sm font-semibold",t),...r}));X4.displayName=Q1.displayName;const Vm=y.forwardRef(({className:t,children:r,...a},i)=>v.jsxs(X1,{ref:i,className:le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[v.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:v.jsx(G4,{children:v.jsx(ap,{className:"h-4 w-4"})})}),v.jsx(Y4,{children:r})]}));Vm.displayName=X1.displayName;const W4=y.forwardRef(({className:t,...r},a)=>v.jsx(Z1,{ref:a,className:le("-mx-1 my-1 h-px bg-muted",t),...r}));W4.displayName=Z1.displayName;const K4={10:"TRACE",20:"DEBUG",27:"SUCCESS",28:"PROGRESS",29:"LOG",30:"INFO",40:"WARN",50:"ERROR",60:"FATAL"},Z4={10:"text-gray-400",20:"text-blue-400",27:"text-green-600",28:"text-purple-400",29:"text-gray-300",30:"text-emerald-400",40:"text-yellow-400",50:"text-red-400",60:"text-red-600"};function J4(){const[t,r]=y.useState("all"),[a,i]=y.useState(!0),o=y.useRef(null),c=y.useRef(!1),f=y.useRef(""),{data:d,error:h,isLoading:p}=fs({queryKey:["logs",t],queryFn:()=>Et.getLogs(t==="all"?"":t),refetchInterval:1e3,staleTime:1e3}),g=()=>{if(!o.current)return;const w=o.current,C=w.scrollHeight,A=w.clientHeight;w.scrollTo({top:C-A,behavior:"instant"})};y.useEffect(()=>{var A;if(!((A=d==null?void 0:d.logs)!=null&&A.length))return;const w=d.logs[d.logs.length-1],C=`${w.time}-${w.msg}`;a&&C!==f.current&&(setTimeout(g,0),f.current=C)},[d==null?void 0:d.logs,a]);const b=w=>{if(c.current)return;const{scrollTop:C,scrollHeight:A,clientHeight:N}=w.currentTarget,_=A-(C+N)<100;i(_),c.current=!0,setTimeout(()=>{c.current=!1},150)},x=()=>{i(!0),g()};y.useEffect(()=>{setTimeout(g,100)},[d==null?void 0:d.logs]);const E=w=>K4[w]||"UNKNOWN",R=w=>Z4[w]||"text-gray-400",S=w=>{const C=s4(w.time,"yyyy-MM-dd HH:mm:ss"),A=E(w.level),N=Object.entries(w).filter(([_])=>!Number.isNaN(Number(_))).sort((_,k)=>Number(_[0])-Number(k[0])),L=N.length>0?`
|
|
270
|
+
${N.map(([_,k])=>k).join(`
|
|
271
|
+
`)}`:"";return v.jsxs("div",{className:"whitespace-pre-wrap font-mono",children:[v.jsxs("span",{className:"text-gray-500",children:["[",C,"]"]})," ",v.jsxs("span",{className:R(w.level),children:[A,":"]})," ",v.jsx("span",{className:"text-white",children:w.msg}),v.jsx("span",{className:"text-gray-300",children:L})]},`${w.time}-${w.msg}`)};return v.jsxs("div",{className:"p-4",children:[v.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[v.jsx(n1,{title:"System Logs"}),v.jsxs("div",{className:"flex items-center gap-4",children:[!a&&v.jsx("button",{type:"button",onClick:x,className:"text-xs text-gray-400 hover:text-white transition-colors",children:"Resume auto-scroll"}),v.jsxs(F4,{value:t,onValueChange:r,children:[v.jsx(J1,{className:"w-32",children:v.jsx(Q4,{placeholder:"Select level"})}),v.jsxs(nR,{children:[v.jsx(Vm,{value:"all",children:"ALL"}),d==null?void 0:d.levels.map(w=>v.jsx(Vm,{value:w,children:w.toUpperCase()},w))]})]})]})]}),p?v.jsx("div",{className:"font-mono p-4",children:"Loading logs..."}):h?v.jsx("div",{className:"text-red-500 font-mono p-4",children:h instanceof Error?h.message:"Failed to fetch logs"}):v.jsx(v1,{className:"h-[600px] rounded-md border bg-black",children:v.jsx("div",{ref:o,onScroll:b,className:"p-4 text-sm space-y-1 h-full overflow-auto",children:(d==null?void 0:d.logs.length)===0?v.jsxs("div",{className:"text-gray-500 font-mono",children:["No ",t==="all"?"":t.toUpperCase()," ","logs found"]}):d==null?void 0:d.logs.map(w=>S(w))})})]})}var Pp="ToastProvider",[kp,e3,t3]=Ap("Toast"),[rR,kz]=Hn("Toast",[t3]),[n3,ju]=rR(Pp),aR=t=>{const{__scopeToast:r,label:a="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:c=50,children:f}=t,[d,h]=y.useState(null),[p,g]=y.useState(0),b=y.useRef(!1),x=y.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${Pp}\`. Expected non-empty \`string\`.`),v.jsx(kp.Provider,{scope:r,children:v.jsx(n3,{scope:r,label:a,duration:i,swipeDirection:o,swipeThreshold:c,toastCount:p,viewport:d,onViewportChange:h,onToastAdd:y.useCallback(()=>g(E=>E+1),[]),onToastRemove:y.useCallback(()=>g(E=>E-1),[]),isFocusedToastEscapeKeyDownRef:b,isClosePausedRef:x,children:f})})};aR.displayName=Pp;var sR="ToastViewport",r3=["F8"],Ym="toast.viewportPause",Gm="toast.viewportResume",iR=y.forwardRef((t,r)=>{const{__scopeToast:a,hotkey:i=r3,label:o="Notifications ({hotkey})",...c}=t,f=ju(sR,a),d=e3(a),h=y.useRef(null),p=y.useRef(null),g=y.useRef(null),b=y.useRef(null),x=ke(r,b,f.onViewportChange),E=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.toastCount>0;y.useEffect(()=>{const w=C=>{var N;i.length!==0&&i.every(L=>C[L]||C.code===L)&&((N=b.current)==null||N.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[i]),y.useEffect(()=>{const w=h.current,C=b.current;if(R&&w&&C){const A=()=>{if(!f.isClosePausedRef.current){const k=new CustomEvent(Ym);C.dispatchEvent(k),f.isClosePausedRef.current=!0}},N=()=>{if(f.isClosePausedRef.current){const k=new CustomEvent(Gm);C.dispatchEvent(k),f.isClosePausedRef.current=!1}},L=k=>{!w.contains(k.relatedTarget)&&N()},_=()=>{w.contains(document.activeElement)||N()};return w.addEventListener("focusin",A),w.addEventListener("focusout",L),w.addEventListener("pointermove",A),w.addEventListener("pointerleave",_),window.addEventListener("blur",A),window.addEventListener("focus",N),()=>{w.removeEventListener("focusin",A),w.removeEventListener("focusout",L),w.removeEventListener("pointermove",A),w.removeEventListener("pointerleave",_),window.removeEventListener("blur",A),window.removeEventListener("focus",N)}}},[R,f.isClosePausedRef]);const S=y.useCallback(({tabbingDirection:w})=>{const A=d().map(N=>{const L=N.ref.current,_=[L,...v3(L)];return w==="forwards"?_:_.reverse()});return(w==="forwards"?A.reverse():A).flat()},[d]);return y.useEffect(()=>{const w=b.current;if(w){const C=A=>{var _,k,I;const N=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!N){const Y=document.activeElement,H=A.shiftKey;if(A.target===w&&H){(_=p.current)==null||_.focus();return}const ne=S({tabbingDirection:H?"backwards":"forwards"}),ce=ne.findIndex($=>$===Y);gh(ne.slice(ce+1))?A.preventDefault():H?(k=p.current)==null||k.focus():(I=g.current)==null||I.focus()}};return w.addEventListener("keydown",C),()=>w.removeEventListener("keydown",C)}},[d,S]),v.jsxs(HN,{ref:h,role:"region","aria-label":o.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&v.jsx(Fm,{ref:p,onFocusFromOutsideViewport:()=>{const w=S({tabbingDirection:"forwards"});gh(w)}}),v.jsx(kp.Slot,{scope:a,children:v.jsx(Se.ol,{tabIndex:-1,...c,ref:x})}),R&&v.jsx(Fm,{ref:g,onFocusFromOutsideViewport:()=>{const w=S({tabbingDirection:"backwards"});gh(w)}})]})});iR.displayName=sR;var lR="ToastFocusProxy",Fm=y.forwardRef((t,r)=>{const{__scopeToast:a,onFocusFromOutsideViewport:i,...o}=t,c=ju(lR,a);return v.jsx(to,{"aria-hidden":!0,tabIndex:0,...o,ref:r,style:{position:"fixed"},onFocus:f=>{var p;const d=f.relatedTarget;!((p=c.viewport)!=null&&p.contains(d))&&i()}})});Fm.displayName=lR;var Mu="Toast",a3="toast.swipeStart",s3="toast.swipeMove",i3="toast.swipeCancel",l3="toast.swipeEnd",oR=y.forwardRef((t,r)=>{const{forceMount:a,open:i,defaultOpen:o,onOpenChange:c,...f}=t,[d=!0,h]=rs({prop:i,defaultProp:o,onChange:c});return v.jsx(ln,{present:a||d,children:v.jsx(u3,{open:d,...f,ref:r,onClose:()=>h(!1),onPause:nt(t.onPause),onResume:nt(t.onResume),onSwipeStart:ge(t.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ge(t.onSwipeMove,p=>{const{x:g,y:b}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${g}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${b}px`)}),onSwipeCancel:ge(t.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ge(t.onSwipeEnd,p=>{const{x:g,y:b}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${g}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${b}px`),h(!1)})})})});oR.displayName=Mu;var[o3,c3]=rR(Mu,{onClose(){}}),u3=y.forwardRef((t,r)=>{const{__scopeToast:a,type:i="foreground",duration:o,open:c,onClose:f,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:g,onSwipeMove:b,onSwipeCancel:x,onSwipeEnd:E,...R}=t,S=ju(Mu,a),[w,C]=y.useState(null),A=ke(r,$=>C($)),N=y.useRef(null),L=y.useRef(null),_=o||S.duration,k=y.useRef(0),I=y.useRef(_),Y=y.useRef(0),{onToastAdd:H,onToastRemove:K}=S,Z=nt(()=>{var U;(w==null?void 0:w.contains(document.activeElement))&&((U=S.viewport)==null||U.focus()),f()}),ne=y.useCallback($=>{!$||$===1/0||(window.clearTimeout(Y.current),k.current=new Date().getTime(),Y.current=window.setTimeout(Z,$))},[Z]);y.useEffect(()=>{const $=S.viewport;if($){const U=()=>{ne(I.current),p==null||p()},M=()=>{const q=new Date().getTime()-k.current;I.current=I.current-q,window.clearTimeout(Y.current),h==null||h()};return $.addEventListener(Ym,M),$.addEventListener(Gm,U),()=>{$.removeEventListener(Ym,M),$.removeEventListener(Gm,U)}}},[S.viewport,_,h,p,ne]),y.useEffect(()=>{c&&!S.isClosePausedRef.current&&ne(_)},[c,_,S.isClosePausedRef,ne]),y.useEffect(()=>(H(),()=>K()),[H,K]);const ce=y.useMemo(()=>w?pR(w):null,[w]);return S.viewport?v.jsxs(v.Fragment,{children:[ce&&v.jsx(f3,{__scopeToast:a,role:"status","aria-live":i==="foreground"?"assertive":"polite","aria-atomic":!0,children:ce}),v.jsx(o3,{scope:a,onClose:Z,children:Ei.createPortal(v.jsx(kp.ItemSlot,{scope:a,children:v.jsx($N,{asChild:!0,onEscapeKeyDown:ge(d,()=>{S.isFocusedToastEscapeKeyDownRef.current||Z(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(Se.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":S.swipeDirection,...R,ref:A,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ge(t.onKeyDown,$=>{$.key==="Escape"&&(d==null||d($.nativeEvent),$.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,Z()))}),onPointerDown:ge(t.onPointerDown,$=>{$.button===0&&(N.current={x:$.clientX,y:$.clientY})}),onPointerMove:ge(t.onPointerMove,$=>{if(!N.current)return;const U=$.clientX-N.current.x,M=$.clientY-N.current.y,q=!!L.current,z=["left","right"].includes(S.swipeDirection),Q=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,j=z?Q(0,U):0,G=z?0:Q(0,M),te=$.pointerType==="touch"?10:2,se={x:j,y:G},ae={originalEvent:$,delta:se};q?(L.current=se,jc(s3,b,ae,{discrete:!1})):q0(se,S.swipeDirection,te)?(L.current=se,jc(a3,g,ae,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(U)>te||Math.abs(M)>te)&&(N.current=null)}),onPointerUp:ge(t.onPointerUp,$=>{const U=L.current,M=$.target;if(M.hasPointerCapture($.pointerId)&&M.releasePointerCapture($.pointerId),L.current=null,N.current=null,U){const q=$.currentTarget,z={originalEvent:$,delta:U};q0(U,S.swipeDirection,S.swipeThreshold)?jc(l3,E,z,{discrete:!0}):jc(i3,x,z,{discrete:!0}),q.addEventListener("click",Q=>Q.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),f3=t=>{const{__scopeToast:r,children:a,...i}=t,o=ju(Mu,r),[c,f]=y.useState(!1),[d,h]=y.useState(!1);return m3(()=>f(!0)),y.useEffect(()=>{const p=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(p)},[]),d?null:v.jsx(Jl,{asChild:!0,children:v.jsx(to,{...i,children:c&&v.jsxs(v.Fragment,{children:[o.label," ",a]})})})},d3="ToastTitle",cR=y.forwardRef((t,r)=>{const{__scopeToast:a,...i}=t;return v.jsx(Se.div,{...i,ref:r})});cR.displayName=d3;var h3="ToastDescription",uR=y.forwardRef((t,r)=>{const{__scopeToast:a,...i}=t;return v.jsx(Se.div,{...i,ref:r})});uR.displayName=h3;var fR="ToastAction",dR=y.forwardRef((t,r)=>{const{altText:a,...i}=t;return a.trim()?v.jsx(mR,{altText:a,asChild:!0,children:v.jsx(Up,{...i,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${fR}\`. Expected non-empty \`string\`.`),null)});dR.displayName=fR;var hR="ToastClose",Up=y.forwardRef((t,r)=>{const{__scopeToast:a,...i}=t,o=c3(hR,a);return v.jsx(mR,{asChild:!0,children:v.jsx(Se.button,{type:"button",...i,ref:r,onClick:ge(t.onClick,o.onClose)})})});Up.displayName=hR;var mR=y.forwardRef((t,r)=>{const{__scopeToast:a,altText:i,...o}=t;return v.jsx(Se.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:r})});function pR(t){const r=[];return Array.from(t.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&r.push(i.textContent),p3(i)){const o=i.ariaHidden||i.hidden||i.style.display==="none",c=i.dataset.radixToastAnnounceExclude==="";if(!o)if(c){const f=i.dataset.radixToastAnnounceAlt;f&&r.push(f)}else r.push(...pR(i))}}),r}function jc(t,r,a,{discrete:i}){const o=a.originalEvent.currentTarget,c=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:a});r&&o.addEventListener(t,r,{once:!0}),i?iw(o,c):o.dispatchEvent(c)}var q0=(t,r,a=0)=>{const i=Math.abs(t.x),o=Math.abs(t.y),c=i>o;return r==="left"||r==="right"?c&&i>a:!c&&o>a};function m3(t=()=>{}){const r=nt(t);ft(()=>{let a=0,i=0;return a=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(r)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(i)}},[r])}function p3(t){return t.nodeType===t.ELEMENT_NODE}function v3(t){const r=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)r.push(a.currentNode);return r}function gh(t){const r=document.activeElement;return t.some(a=>a===r?!0:(a.focus(),document.activeElement!==r))}var g3=aR,vR=iR,gR=oR,yR=cR,bR=uR,xR=dR,wR=Up;const y3=g3,SR=y.forwardRef(({className:t,...r},a)=>v.jsx(vR,{ref:a,className:le("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...r}));SR.displayName=vR.displayName;const b3=pa("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ER=y.forwardRef(({className:t,variant:r,...a},i)=>v.jsx(gR,{ref:i,className:le(b3({variant:r}),t),...a}));ER.displayName=gR.displayName;const RR=y.forwardRef(({className:t,...r},a)=>v.jsx(xR,{ref:a,className:le("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...r}));RR.displayName=xR.displayName;const TR=y.forwardRef(({className:t,...r},a)=>v.jsx(wR,{ref:a,className:le("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...r,children:v.jsx(us,{className:"h-4 w-4"})}));TR.displayName=wR.displayName;const CR=y.forwardRef(({className:t,...r},a)=>v.jsx(yR,{ref:a,className:le("text-sm font-semibold [&+div]:text-xs",t),...r}));CR.displayName=yR.displayName;const AR=y.forwardRef(({className:t,...r},a)=>v.jsx(bR,{ref:a,className:le("text-sm opacity-90",t),...r}));AR.displayName=bR.displayName;function x3(){const{toasts:t}=Yn();return v.jsxs(y3,{children:[t.map(({id:r,title:a,description:i,action:o,...c})=>v.jsxs(ER,{...c,children:[v.jsxs("div",{className:"grid gap-1",children:[a&&v.jsx(CR,{children:a}),i&&v.jsx(AR,{children:i})]}),o,v.jsx(TR,{})]},r)),v.jsx(SR,{})]})}var Mc={exports:{}},yh,B0;function Du(){if(B0)return yh;B0=1;const t="2.0.0",r=256,a=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,o=r-6;return yh={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:a,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},yh}var bh,I0;function _u(){if(I0)return bh;I0=1;var t={};return bh=typeof process=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{},bh}var V0;function oo(){return V0||(V0=1,function(t,r){const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=Du(),c=_u();r=t.exports={};const f=r.re=[],d=r.safeRe=[],h=r.src=[],p=r.safeSrc=[],g=r.t={};let b=0;const x="[a-zA-Z0-9-]",E=[["\\s",1],["\\d",o],[x,i]],R=w=>{for(const[C,A]of E)w=w.split(`${C}*`).join(`${C}{0,${A}}`).split(`${C}+`).join(`${C}{1,${A}}`);return w},S=(w,C,A)=>{const N=R(C),L=b++;c(w,L,C),g[w]=L,h[L]=C,p[L]=N,f[L]=new RegExp(C,A?"g":void 0),d[L]=new RegExp(N,A?"g":void 0)};S("NUMERICIDENTIFIER","0|[1-9]\\d*"),S("NUMERICIDENTIFIERLOOSE","\\d+"),S("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${x}*`),S("MAINVERSION",`(${h[g.NUMERICIDENTIFIER]})\\.(${h[g.NUMERICIDENTIFIER]})\\.(${h[g.NUMERICIDENTIFIER]})`),S("MAINVERSIONLOOSE",`(${h[g.NUMERICIDENTIFIERLOOSE]})\\.(${h[g.NUMERICIDENTIFIERLOOSE]})\\.(${h[g.NUMERICIDENTIFIERLOOSE]})`),S("PRERELEASEIDENTIFIER",`(?:${h[g.NUMERICIDENTIFIER]}|${h[g.NONNUMERICIDENTIFIER]})`),S("PRERELEASEIDENTIFIERLOOSE",`(?:${h[g.NUMERICIDENTIFIERLOOSE]}|${h[g.NONNUMERICIDENTIFIER]})`),S("PRERELEASE",`(?:-(${h[g.PRERELEASEIDENTIFIER]}(?:\\.${h[g.PRERELEASEIDENTIFIER]})*))`),S("PRERELEASELOOSE",`(?:-?(${h[g.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[g.PRERELEASEIDENTIFIERLOOSE]})*))`),S("BUILDIDENTIFIER",`${x}+`),S("BUILD",`(?:\\+(${h[g.BUILDIDENTIFIER]}(?:\\.${h[g.BUILDIDENTIFIER]})*))`),S("FULLPLAIN",`v?${h[g.MAINVERSION]}${h[g.PRERELEASE]}?${h[g.BUILD]}?`),S("FULL",`^${h[g.FULLPLAIN]}$`),S("LOOSEPLAIN",`[v=\\s]*${h[g.MAINVERSIONLOOSE]}${h[g.PRERELEASELOOSE]}?${h[g.BUILD]}?`),S("LOOSE",`^${h[g.LOOSEPLAIN]}$`),S("GTLT","((?:<|>)?=?)"),S("XRANGEIDENTIFIERLOOSE",`${h[g.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),S("XRANGEIDENTIFIER",`${h[g.NUMERICIDENTIFIER]}|x|X|\\*`),S("XRANGEPLAIN",`[v=\\s]*(${h[g.XRANGEIDENTIFIER]})(?:\\.(${h[g.XRANGEIDENTIFIER]})(?:\\.(${h[g.XRANGEIDENTIFIER]})(?:${h[g.PRERELEASE]})?${h[g.BUILD]}?)?)?`),S("XRANGEPLAINLOOSE",`[v=\\s]*(${h[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[g.XRANGEIDENTIFIERLOOSE]})(?:${h[g.PRERELEASELOOSE]})?${h[g.BUILD]}?)?)?`),S("XRANGE",`^${h[g.GTLT]}\\s*${h[g.XRANGEPLAIN]}$`),S("XRANGELOOSE",`^${h[g.GTLT]}\\s*${h[g.XRANGEPLAINLOOSE]}$`),S("COERCEPLAIN",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?`),S("COERCE",`${h[g.COERCEPLAIN]}(?:$|[^\\d])`),S("COERCEFULL",h[g.COERCEPLAIN]+`(?:${h[g.PRERELEASE]})?(?:${h[g.BUILD]})?(?:$|[^\\d])`),S("COERCERTL",h[g.COERCE],!0),S("COERCERTLFULL",h[g.COERCEFULL],!0),S("LONETILDE","(?:~>?)"),S("TILDETRIM",`(\\s*)${h[g.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",S("TILDE",`^${h[g.LONETILDE]}${h[g.XRANGEPLAIN]}$`),S("TILDELOOSE",`^${h[g.LONETILDE]}${h[g.XRANGEPLAINLOOSE]}$`),S("LONECARET","(?:\\^)"),S("CARETTRIM",`(\\s*)${h[g.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",S("CARET",`^${h[g.LONECARET]}${h[g.XRANGEPLAIN]}$`),S("CARETLOOSE",`^${h[g.LONECARET]}${h[g.XRANGEPLAINLOOSE]}$`),S("COMPARATORLOOSE",`^${h[g.GTLT]}\\s*(${h[g.LOOSEPLAIN]})$|^$`),S("COMPARATOR",`^${h[g.GTLT]}\\s*(${h[g.FULLPLAIN]})$|^$`),S("COMPARATORTRIM",`(\\s*)${h[g.GTLT]}\\s*(${h[g.LOOSEPLAIN]}|${h[g.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",S("HYPHENRANGE",`^\\s*(${h[g.XRANGEPLAIN]})\\s+-\\s+(${h[g.XRANGEPLAIN]})\\s*$`),S("HYPHENRANGELOOSE",`^\\s*(${h[g.XRANGEPLAINLOOSE]})\\s+-\\s+(${h[g.XRANGEPLAINLOOSE]})\\s*$`),S("STAR","(<|>)?=?\\s*\\*"),S("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),S("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Mc,Mc.exports)),Mc.exports}var xh,Y0;function $p(){if(Y0)return xh;Y0=1;const t=Object.freeze({loose:!0}),r=Object.freeze({});return xh=i=>i?typeof i!="object"?t:i:r,xh}var wh,G0;function NR(){if(G0)return wh;G0=1;const t=/^[0-9]+$/,r=(i,o)=>{const c=t.test(i),f=t.test(o);return c&&f&&(i=+i,o=+o),i===o?0:c&&!f?-1:f&&!c?1:i<o?-1:1};return wh={compareIdentifiers:r,rcompareIdentifiers:(i,o)=>r(o,i)},wh}var Sh,F0;function Ot(){if(F0)return Sh;F0=1;const t=_u(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:a}=Du(),{safeRe:i,safeSrc:o,t:c}=oo(),f=$p(),{compareIdentifiers:d}=NR();class h{constructor(g,b){if(b=f(b),g instanceof h){if(g.loose===!!b.loose&&g.includePrerelease===!!b.includePrerelease)return g;g=g.version}else if(typeof g!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof g}".`);if(g.length>r)throw new TypeError(`version is longer than ${r} characters`);t("SemVer",g,b),this.options=b,this.loose=!!b.loose,this.includePrerelease=!!b.includePrerelease;const x=g.trim().match(b.loose?i[c.LOOSE]:i[c.FULL]);if(!x)throw new TypeError(`Invalid Version: ${g}`);if(this.raw=g,this.major=+x[1],this.minor=+x[2],this.patch=+x[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");x[4]?this.prerelease=x[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const R=+E;if(R>=0&&R<a)return R}return E}):this.prerelease=[],this.build=x[5]?x[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(g){if(t("SemVer.compare",this.version,this.options,g),!(g instanceof h)){if(typeof g=="string"&&g===this.version)return 0;g=new h(g,this.options)}return g.version===this.version?0:this.compareMain(g)||this.comparePre(g)}compareMain(g){return g instanceof h||(g=new h(g,this.options)),d(this.major,g.major)||d(this.minor,g.minor)||d(this.patch,g.patch)}comparePre(g){if(g instanceof h||(g=new h(g,this.options)),this.prerelease.length&&!g.prerelease.length)return-1;if(!this.prerelease.length&&g.prerelease.length)return 1;if(!this.prerelease.length&&!g.prerelease.length)return 0;let b=0;do{const x=this.prerelease[b],E=g.prerelease[b];if(t("prerelease compare",b,x,E),x===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(x===void 0)return-1;if(x===E)continue;return d(x,E)}while(++b)}compareBuild(g){g instanceof h||(g=new h(g,this.options));let b=0;do{const x=this.build[b],E=g.build[b];if(t("build compare",b,x,E),x===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(x===void 0)return-1;if(x===E)continue;return d(x,E)}while(++b)}inc(g,b,x){if(g.startsWith("pre")){if(!b&&x===!1)throw new Error("invalid increment argument: identifier is empty");if(b){const E=new RegExp(`^${this.options.loose?o[c.PRERELEASELOOSE]:o[c.PRERELEASE]}$`),R=`-${b}`.match(E);if(!R||R[1]!==b)throw new Error(`invalid identifier: ${b}`)}}switch(g){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",b,x);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",b,x);break;case"prepatch":this.prerelease.length=0,this.inc("patch",b,x),this.inc("pre",b,x);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",b,x),this.inc("pre",b,x);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const E=Number(x)?1:0;if(this.prerelease.length===0)this.prerelease=[E];else{let R=this.prerelease.length;for(;--R>=0;)typeof this.prerelease[R]=="number"&&(this.prerelease[R]++,R=-2);if(R===-1){if(b===this.prerelease.join(".")&&x===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(E)}}if(b){let R=[b,E];x===!1&&(R=[b]),d(this.prerelease[0],b)===0?isNaN(this.prerelease[1])&&(this.prerelease=R):this.prerelease=R}break}default:throw new Error(`invalid increment argument: ${g}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Sh=h,Sh}var Eh,Q0;function Mi(){if(Q0)return Eh;Q0=1;const t=Ot();return Eh=(a,i,o=!1)=>{if(a instanceof t)return a;try{return new t(a,i)}catch(c){if(!o)return null;throw c}},Eh}var Rh,X0;function w3(){if(X0)return Rh;X0=1;const t=Mi();return Rh=(a,i)=>{const o=t(a,i);return o?o.version:null},Rh}var Th,W0;function S3(){if(W0)return Th;W0=1;const t=Mi();return Th=(a,i)=>{const o=t(a.trim().replace(/^[=v]+/,""),i);return o?o.version:null},Th}var Ch,K0;function E3(){if(K0)return Ch;K0=1;const t=Ot();return Ch=(a,i,o,c,f)=>{typeof o=="string"&&(f=c,c=o,o=void 0);try{return new t(a instanceof t?a.version:a,o).inc(i,c,f).version}catch{return null}},Ch}var Ah,Z0;function R3(){if(Z0)return Ah;Z0=1;const t=Mi();return Ah=(a,i)=>{const o=t(a,null,!0),c=t(i,null,!0),f=o.compare(c);if(f===0)return null;const d=f>0,h=d?o:c,p=d?c:o,g=!!h.prerelease.length;if(!!p.prerelease.length&&!g){if(!p.patch&&!p.minor)return"major";if(p.compareMain(h)===0)return p.minor&&!p.patch?"minor":"patch"}const x=g?"pre":"";return o.major!==c.major?x+"major":o.minor!==c.minor?x+"minor":o.patch!==c.patch?x+"patch":"prerelease"},Ah}var Nh,J0;function T3(){if(J0)return Nh;J0=1;const t=Ot();return Nh=(a,i)=>new t(a,i).major,Nh}var Oh,ex;function C3(){if(ex)return Oh;ex=1;const t=Ot();return Oh=(a,i)=>new t(a,i).minor,Oh}var jh,tx;function A3(){if(tx)return jh;tx=1;const t=Ot();return jh=(a,i)=>new t(a,i).patch,jh}var Mh,nx;function N3(){if(nx)return Mh;nx=1;const t=Mi();return Mh=(a,i)=>{const o=t(a,i);return o&&o.prerelease.length?o.prerelease:null},Mh}var Dh,rx;function Sn(){if(rx)return Dh;rx=1;const t=Ot();return Dh=(a,i,o)=>new t(a,o).compare(new t(i,o)),Dh}var _h,ax;function O3(){if(ax)return _h;ax=1;const t=Sn();return _h=(a,i,o)=>t(i,a,o),_h}var Lh,sx;function j3(){if(sx)return Lh;sx=1;const t=Sn();return Lh=(a,i)=>t(a,i,!0),Lh}var zh,ix;function Hp(){if(ix)return zh;ix=1;const t=Ot();return zh=(a,i,o)=>{const c=new t(a,o),f=new t(i,o);return c.compare(f)||c.compareBuild(f)},zh}var Ph,lx;function M3(){if(lx)return Ph;lx=1;const t=Hp();return Ph=(a,i)=>a.sort((o,c)=>t(o,c,i)),Ph}var kh,ox;function D3(){if(ox)return kh;ox=1;const t=Hp();return kh=(a,i)=>a.sort((o,c)=>t(c,o,i)),kh}var Uh,cx;function Lu(){if(cx)return Uh;cx=1;const t=Sn();return Uh=(a,i,o)=>t(a,i,o)>0,Uh}var $h,ux;function qp(){if(ux)return $h;ux=1;const t=Sn();return $h=(a,i,o)=>t(a,i,o)<0,$h}var Hh,fx;function OR(){if(fx)return Hh;fx=1;const t=Sn();return Hh=(a,i,o)=>t(a,i,o)===0,Hh}var qh,dx;function jR(){if(dx)return qh;dx=1;const t=Sn();return qh=(a,i,o)=>t(a,i,o)!==0,qh}var Bh,hx;function Bp(){if(hx)return Bh;hx=1;const t=Sn();return Bh=(a,i,o)=>t(a,i,o)>=0,Bh}var Ih,mx;function Ip(){if(mx)return Ih;mx=1;const t=Sn();return Ih=(a,i,o)=>t(a,i,o)<=0,Ih}var Vh,px;function MR(){if(px)return Vh;px=1;const t=OR(),r=jR(),a=Lu(),i=Bp(),o=qp(),c=Ip();return Vh=(d,h,p,g)=>{switch(h){case"===":return typeof d=="object"&&(d=d.version),typeof p=="object"&&(p=p.version),d===p;case"!==":return typeof d=="object"&&(d=d.version),typeof p=="object"&&(p=p.version),d!==p;case"":case"=":case"==":return t(d,p,g);case"!=":return r(d,p,g);case">":return a(d,p,g);case">=":return i(d,p,g);case"<":return o(d,p,g);case"<=":return c(d,p,g);default:throw new TypeError(`Invalid operator: ${h}`)}},Vh}var Yh,vx;function _3(){if(vx)return Yh;vx=1;const t=Ot(),r=Mi(),{safeRe:a,t:i}=oo();return Yh=(c,f)=>{if(c instanceof t)return c;if(typeof c=="number"&&(c=String(c)),typeof c!="string")return null;f=f||{};let d=null;if(!f.rtl)d=c.match(f.includePrerelease?a[i.COERCEFULL]:a[i.COERCE]);else{const E=f.includePrerelease?a[i.COERCERTLFULL]:a[i.COERCERTL];let R;for(;(R=E.exec(c))&&(!d||d.index+d[0].length!==c.length);)(!d||R.index+R[0].length!==d.index+d[0].length)&&(d=R),E.lastIndex=R.index+R[1].length+R[2].length;E.lastIndex=-1}if(d===null)return null;const h=d[2],p=d[3]||"0",g=d[4]||"0",b=f.includePrerelease&&d[5]?`-${d[5]}`:"",x=f.includePrerelease&&d[6]?`+${d[6]}`:"";return r(`${h}.${p}.${g}${b}${x}`,f)},Yh}var Gh,gx;function L3(){if(gx)return Gh;gx=1;class t{constructor(){this.max=1e3,this.map=new Map}get(a){const i=this.map.get(a);if(i!==void 0)return this.map.delete(a),this.map.set(a,i),i}delete(a){return this.map.delete(a)}set(a,i){if(!this.delete(a)&&i!==void 0){if(this.map.size>=this.max){const c=this.map.keys().next().value;this.delete(c)}this.map.set(a,i)}return this}}return Gh=t,Gh}var Fh,yx;function En(){if(yx)return Fh;yx=1;const t=/\s+/g;class r{constructor(U,M){if(M=o(M),U instanceof r)return U.loose===!!M.loose&&U.includePrerelease===!!M.includePrerelease?U:new r(U.raw,M);if(U instanceof c)return this.raw=U.value,this.set=[[U]],this.formatted=void 0,this;if(this.options=M,this.loose=!!M.loose,this.includePrerelease=!!M.includePrerelease,this.raw=U.trim().replace(t," "),this.set=this.raw.split("||").map(q=>this.parseRange(q.trim())).filter(q=>q.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const q=this.set[0];if(this.set=this.set.filter(z=>!S(z[0])),this.set.length===0)this.set=[q];else if(this.set.length>1){for(const z of this.set)if(z.length===1&&w(z[0])){this.set=[z];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let U=0;U<this.set.length;U++){U>0&&(this.formatted+="||");const M=this.set[U];for(let q=0;q<M.length;q++)q>0&&(this.formatted+=" "),this.formatted+=M[q].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(U){const q=((this.options.includePrerelease&&E)|(this.options.loose&&R))+":"+U,z=i.get(q);if(z)return z;const Q=this.options.loose,j=Q?h[p.HYPHENRANGELOOSE]:h[p.HYPHENRANGE];U=U.replace(j,ne(this.options.includePrerelease)),f("hyphen replace",U),U=U.replace(h[p.COMPARATORTRIM],g),f("comparator trim",U),U=U.replace(h[p.TILDETRIM],b),f("tilde trim",U),U=U.replace(h[p.CARETTRIM],x),f("caret trim",U);let G=U.split(" ").map(oe=>A(oe,this.options)).join(" ").split(/\s+/).map(oe=>Z(oe,this.options));Q&&(G=G.filter(oe=>(f("loose invalid filter",oe,this.options),!!oe.match(h[p.COMPARATORLOOSE])))),f("range list",G);const te=new Map,se=G.map(oe=>new c(oe,this.options));for(const oe of se){if(S(oe))return[oe];te.set(oe.value,oe)}te.size>1&&te.has("")&&te.delete("");const ae=[...te.values()];return i.set(q,ae),ae}intersects(U,M){if(!(U instanceof r))throw new TypeError("a Range is required");return this.set.some(q=>C(q,M)&&U.set.some(z=>C(z,M)&&q.every(Q=>z.every(j=>Q.intersects(j,M)))))}test(U){if(!U)return!1;if(typeof U=="string")try{U=new d(U,this.options)}catch{return!1}for(let M=0;M<this.set.length;M++)if(ce(this.set[M],U,this.options))return!0;return!1}}Fh=r;const a=L3(),i=new a,o=$p(),c=zu(),f=_u(),d=Ot(),{safeRe:h,t:p,comparatorTrimReplace:g,tildeTrimReplace:b,caretTrimReplace:x}=oo(),{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:R}=Du(),S=$=>$.value==="<0.0.0-0",w=$=>$.value==="",C=($,U)=>{let M=!0;const q=$.slice();let z=q.pop();for(;M&&q.length;)M=q.every(Q=>z.intersects(Q,U)),z=q.pop();return M},A=($,U)=>(f("comp",$,U),$=k($,U),f("caret",$),$=L($,U),f("tildes",$),$=Y($,U),f("xrange",$),$=K($,U),f("stars",$),$),N=$=>!$||$.toLowerCase()==="x"||$==="*",L=($,U)=>$.trim().split(/\s+/).map(M=>_(M,U)).join(" "),_=($,U)=>{const M=U.loose?h[p.TILDELOOSE]:h[p.TILDE];return $.replace(M,(q,z,Q,j,G)=>{f("tilde",$,q,z,Q,j,G);let te;return N(z)?te="":N(Q)?te=`>=${z}.0.0 <${+z+1}.0.0-0`:N(j)?te=`>=${z}.${Q}.0 <${z}.${+Q+1}.0-0`:G?(f("replaceTilde pr",G),te=`>=${z}.${Q}.${j}-${G} <${z}.${+Q+1}.0-0`):te=`>=${z}.${Q}.${j} <${z}.${+Q+1}.0-0`,f("tilde return",te),te})},k=($,U)=>$.trim().split(/\s+/).map(M=>I(M,U)).join(" "),I=($,U)=>{f("caret",$,U);const M=U.loose?h[p.CARETLOOSE]:h[p.CARET],q=U.includePrerelease?"-0":"";return $.replace(M,(z,Q,j,G,te)=>{f("caret",$,z,Q,j,G,te);let se;return N(Q)?se="":N(j)?se=`>=${Q}.0.0${q} <${+Q+1}.0.0-0`:N(G)?Q==="0"?se=`>=${Q}.${j}.0${q} <${Q}.${+j+1}.0-0`:se=`>=${Q}.${j}.0${q} <${+Q+1}.0.0-0`:te?(f("replaceCaret pr",te),Q==="0"?j==="0"?se=`>=${Q}.${j}.${G}-${te} <${Q}.${j}.${+G+1}-0`:se=`>=${Q}.${j}.${G}-${te} <${Q}.${+j+1}.0-0`:se=`>=${Q}.${j}.${G}-${te} <${+Q+1}.0.0-0`):(f("no pr"),Q==="0"?j==="0"?se=`>=${Q}.${j}.${G}${q} <${Q}.${j}.${+G+1}-0`:se=`>=${Q}.${j}.${G}${q} <${Q}.${+j+1}.0-0`:se=`>=${Q}.${j}.${G} <${+Q+1}.0.0-0`),f("caret return",se),se})},Y=($,U)=>(f("replaceXRanges",$,U),$.split(/\s+/).map(M=>H(M,U)).join(" ")),H=($,U)=>{$=$.trim();const M=U.loose?h[p.XRANGELOOSE]:h[p.XRANGE];return $.replace(M,(q,z,Q,j,G,te)=>{f("xRange",$,q,z,Q,j,G,te);const se=N(Q),ae=se||N(j),oe=ae||N(G),pe=oe;return z==="="&&pe&&(z=""),te=U.includePrerelease?"-0":"",se?z===">"||z==="<"?q="<0.0.0-0":q="*":z&&pe?(ae&&(j=0),G=0,z===">"?(z=">=",ae?(Q=+Q+1,j=0,G=0):(j=+j+1,G=0)):z==="<="&&(z="<",ae?Q=+Q+1:j=+j+1),z==="<"&&(te="-0"),q=`${z+Q}.${j}.${G}${te}`):ae?q=`>=${Q}.0.0${te} <${+Q+1}.0.0-0`:oe&&(q=`>=${Q}.${j}.0${te} <${Q}.${+j+1}.0-0`),f("xRange return",q),q})},K=($,U)=>(f("replaceStars",$,U),$.trim().replace(h[p.STAR],"")),Z=($,U)=>(f("replaceGTE0",$,U),$.trim().replace(h[U.includePrerelease?p.GTE0PRE:p.GTE0],"")),ne=$=>(U,M,q,z,Q,j,G,te,se,ae,oe,pe)=>(N(q)?M="":N(z)?M=`>=${q}.0.0${$?"-0":""}`:N(Q)?M=`>=${q}.${z}.0${$?"-0":""}`:j?M=`>=${M}`:M=`>=${M}${$?"-0":""}`,N(se)?te="":N(ae)?te=`<${+se+1}.0.0-0`:N(oe)?te=`<${se}.${+ae+1}.0-0`:pe?te=`<=${se}.${ae}.${oe}-${pe}`:$?te=`<${se}.${ae}.${+oe+1}-0`:te=`<=${te}`,`${M} ${te}`.trim()),ce=($,U,M)=>{for(let q=0;q<$.length;q++)if(!$[q].test(U))return!1;if(U.prerelease.length&&!M.includePrerelease){for(let q=0;q<$.length;q++)if(f($[q].semver),$[q].semver!==c.ANY&&$[q].semver.prerelease.length>0){const z=$[q].semver;if(z.major===U.major&&z.minor===U.minor&&z.patch===U.patch)return!0}return!1}return!0};return Fh}var Qh,bx;function zu(){if(bx)return Qh;bx=1;const t=Symbol("SemVer ANY");class r{static get ANY(){return t}constructor(g,b){if(b=a(b),g instanceof r){if(g.loose===!!b.loose)return g;g=g.value}g=g.trim().split(/\s+/).join(" "),f("comparator",g,b),this.options=b,this.loose=!!b.loose,this.parse(g),this.semver===t?this.value="":this.value=this.operator+this.semver.version,f("comp",this)}parse(g){const b=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],x=g.match(b);if(!x)throw new TypeError(`Invalid comparator: ${g}`);this.operator=x[1]!==void 0?x[1]:"",this.operator==="="&&(this.operator=""),x[2]?this.semver=new d(x[2],this.options.loose):this.semver=t}toString(){return this.value}test(g){if(f("Comparator.test",g,this.options.loose),this.semver===t||g===t)return!0;if(typeof g=="string")try{g=new d(g,this.options)}catch{return!1}return c(g,this.operator,this.semver,this.options)}intersects(g,b){if(!(g instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new h(g.value,b).test(this.value):g.operator===""?g.value===""?!0:new h(this.value,b).test(g.semver):(b=a(b),b.includePrerelease&&(this.value==="<0.0.0-0"||g.value==="<0.0.0-0")||!b.includePrerelease&&(this.value.startsWith("<0.0.0")||g.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&g.operator.startsWith(">")||this.operator.startsWith("<")&&g.operator.startsWith("<")||this.semver.version===g.semver.version&&this.operator.includes("=")&&g.operator.includes("=")||c(this.semver,"<",g.semver,b)&&this.operator.startsWith(">")&&g.operator.startsWith("<")||c(this.semver,">",g.semver,b)&&this.operator.startsWith("<")&&g.operator.startsWith(">")))}}Qh=r;const a=$p(),{safeRe:i,t:o}=oo(),c=MR(),f=_u(),d=Ot(),h=En();return Qh}var Xh,xx;function Pu(){if(xx)return Xh;xx=1;const t=En();return Xh=(a,i,o)=>{try{i=new t(i,o)}catch{return!1}return i.test(a)},Xh}var Wh,wx;function z3(){if(wx)return Wh;wx=1;const t=En();return Wh=(a,i)=>new t(a,i).set.map(o=>o.map(c=>c.value).join(" ").trim().split(" ")),Wh}var Kh,Sx;function P3(){if(Sx)return Kh;Sx=1;const t=Ot(),r=En();return Kh=(i,o,c)=>{let f=null,d=null,h=null;try{h=new r(o,c)}catch{return null}return i.forEach(p=>{h.test(p)&&(!f||d.compare(p)===-1)&&(f=p,d=new t(f,c))}),f},Kh}var Zh,Ex;function k3(){if(Ex)return Zh;Ex=1;const t=Ot(),r=En();return Zh=(i,o,c)=>{let f=null,d=null,h=null;try{h=new r(o,c)}catch{return null}return i.forEach(p=>{h.test(p)&&(!f||d.compare(p)===1)&&(f=p,d=new t(f,c))}),f},Zh}var Jh,Rx;function U3(){if(Rx)return Jh;Rx=1;const t=Ot(),r=En(),a=Lu();return Jh=(o,c)=>{o=new r(o,c);let f=new t("0.0.0");if(o.test(f)||(f=new t("0.0.0-0"),o.test(f)))return f;f=null;for(let d=0;d<o.set.length;++d){const h=o.set[d];let p=null;h.forEach(g=>{const b=new t(g.semver.version);switch(g.operator){case">":b.prerelease.length===0?b.patch++:b.prerelease.push(0),b.raw=b.format();case"":case">=":(!p||a(b,p))&&(p=b);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${g.operator}`)}}),p&&(!f||a(f,p))&&(f=p)}return f&&o.test(f)?f:null},Jh}var em,Tx;function $3(){if(Tx)return em;Tx=1;const t=En();return em=(a,i)=>{try{return new t(a,i).range||"*"}catch{return null}},em}var tm,Cx;function Vp(){if(Cx)return tm;Cx=1;const t=Ot(),r=zu(),{ANY:a}=r,i=En(),o=Pu(),c=Lu(),f=qp(),d=Ip(),h=Bp();return tm=(g,b,x,E)=>{g=new t(g,E),b=new i(b,E);let R,S,w,C,A;switch(x){case">":R=c,S=d,w=f,C=">",A=">=";break;case"<":R=f,S=h,w=c,C="<",A="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(g,b,E))return!1;for(let N=0;N<b.set.length;++N){const L=b.set[N];let _=null,k=null;if(L.forEach(I=>{I.semver===a&&(I=new r(">=0.0.0")),_=_||I,k=k||I,R(I.semver,_.semver,E)?_=I:w(I.semver,k.semver,E)&&(k=I)}),_.operator===C||_.operator===A||(!k.operator||k.operator===C)&&S(g,k.semver))return!1;if(k.operator===A&&w(g,k.semver))return!1}return!0},tm}var nm,Ax;function H3(){if(Ax)return nm;Ax=1;const t=Vp();return nm=(a,i,o)=>t(a,i,">",o),nm}var rm,Nx;function q3(){if(Nx)return rm;Nx=1;const t=Vp();return rm=(a,i,o)=>t(a,i,"<",o),rm}var am,Ox;function B3(){if(Ox)return am;Ox=1;const t=En();return am=(a,i,o)=>(a=new t(a,o),i=new t(i,o),a.intersects(i,o)),am}var sm,jx;function I3(){if(jx)return sm;jx=1;const t=Pu(),r=Sn();return sm=(a,i,o)=>{const c=[];let f=null,d=null;const h=a.sort((x,E)=>r(x,E,o));for(const x of h)t(x,i,o)?(d=x,f||(f=x)):(d&&c.push([f,d]),d=null,f=null);f&&c.push([f,null]);const p=[];for(const[x,E]of c)x===E?p.push(x):!E&&x===h[0]?p.push("*"):E?x===h[0]?p.push(`<=${E}`):p.push(`${x} - ${E}`):p.push(`>=${x}`);const g=p.join(" || "),b=typeof i.raw=="string"?i.raw:String(i);return g.length<b.length?g:i},sm}var im,Mx;function V3(){if(Mx)return im;Mx=1;const t=En(),r=zu(),{ANY:a}=r,i=Pu(),o=Sn(),c=(b,x,E={})=>{if(b===x)return!0;b=new t(b,E),x=new t(x,E);let R=!1;e:for(const S of b.set){for(const w of x.set){const C=h(S,w,E);if(R=R||C!==null,C)continue e}if(R)return!1}return!0},f=[new r(">=0.0.0-0")],d=[new r(">=0.0.0")],h=(b,x,E)=>{if(b===x)return!0;if(b.length===1&&b[0].semver===a){if(x.length===1&&x[0].semver===a)return!0;E.includePrerelease?b=f:b=d}if(x.length===1&&x[0].semver===a){if(E.includePrerelease)return!0;x=d}const R=new Set;let S,w;for(const Y of b)Y.operator===">"||Y.operator===">="?S=p(S,Y,E):Y.operator==="<"||Y.operator==="<="?w=g(w,Y,E):R.add(Y.semver);if(R.size>1)return null;let C;if(S&&w){if(C=o(S.semver,w.semver,E),C>0)return null;if(C===0&&(S.operator!==">="||w.operator!=="<="))return null}for(const Y of R){if(S&&!i(Y,String(S),E)||w&&!i(Y,String(w),E))return null;for(const H of x)if(!i(Y,String(H),E))return!1;return!0}let A,N,L,_,k=w&&!E.includePrerelease&&w.semver.prerelease.length?w.semver:!1,I=S&&!E.includePrerelease&&S.semver.prerelease.length?S.semver:!1;k&&k.prerelease.length===1&&w.operator==="<"&&k.prerelease[0]===0&&(k=!1);for(const Y of x){if(_=_||Y.operator===">"||Y.operator===">=",L=L||Y.operator==="<"||Y.operator==="<=",S){if(I&&Y.semver.prerelease&&Y.semver.prerelease.length&&Y.semver.major===I.major&&Y.semver.minor===I.minor&&Y.semver.patch===I.patch&&(I=!1),Y.operator===">"||Y.operator===">="){if(A=p(S,Y,E),A===Y&&A!==S)return!1}else if(S.operator===">="&&!i(S.semver,String(Y),E))return!1}if(w){if(k&&Y.semver.prerelease&&Y.semver.prerelease.length&&Y.semver.major===k.major&&Y.semver.minor===k.minor&&Y.semver.patch===k.patch&&(k=!1),Y.operator==="<"||Y.operator==="<="){if(N=g(w,Y,E),N===Y&&N!==w)return!1}else if(w.operator==="<="&&!i(w.semver,String(Y),E))return!1}if(!Y.operator&&(w||S)&&C!==0)return!1}return!(S&&L&&!w&&C!==0||w&&_&&!S&&C!==0||I||k)},p=(b,x,E)=>{if(!b)return x;const R=o(b.semver,x.semver,E);return R>0?b:R<0||x.operator===">"&&b.operator===">="?x:b},g=(b,x,E)=>{if(!b)return x;const R=o(b.semver,x.semver,E);return R<0?b:R>0||x.operator==="<"&&b.operator==="<="?x:b};return im=c,im}var lm,Dx;function Y3(){if(Dx)return lm;Dx=1;const t=oo(),r=Du(),a=Ot(),i=NR(),o=Mi(),c=w3(),f=S3(),d=E3(),h=R3(),p=T3(),g=C3(),b=A3(),x=N3(),E=Sn(),R=O3(),S=j3(),w=Hp(),C=M3(),A=D3(),N=Lu(),L=qp(),_=OR(),k=jR(),I=Bp(),Y=Ip(),H=MR(),K=_3(),Z=zu(),ne=En(),ce=Pu(),$=z3(),U=P3(),M=k3(),q=U3(),z=$3(),Q=Vp(),j=H3(),G=q3(),te=B3(),se=I3(),ae=V3();return lm={parse:o,valid:c,clean:f,inc:d,diff:h,major:p,minor:g,patch:b,prerelease:x,compare:E,rcompare:R,compareLoose:S,compareBuild:w,sort:C,rsort:A,gt:N,lt:L,eq:_,neq:k,gte:I,lte:Y,cmp:H,coerce:K,Comparator:Z,Range:ne,satisfies:ce,toComparators:$,maxSatisfying:U,minSatisfying:M,minVersion:q,validRange:z,outside:Q,gtr:j,ltr:G,intersects:te,simplifyRange:se,subset:ae,SemVer:a,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers},lm}var G3=Y3();const F3=cs(G3);function Q3(){const{toast:t}=Yn();async function r(i){const o=`https://api.github.com/repos/${i}/releases/latest`;try{const c=await fetch(o,{headers:{Accept:"application/vnd.github.v3+json","User-Agent":"fetch-latest-release"}});if(!c.ok)throw new Error(`Failed to fetch latest release: ${c.status} ${c.statusText}`);return(await c.json()).tag_name}catch{}}const a=async()=>{try{const i=await r("elizaos/eliza"),o=si==null?void 0:si.version;i&&o&&F3.gt(i.replace("v",""),o.replace("v",""))&&t({variant:"default",title:`New version ${i} is available.`,description:"Visit GitHub for more information.",action:v.jsx(Ya,{to:"https://github.com/elizaos/eliza/releases",target:"_blank",children:v.jsx(RR,{altText:"Update",children:"Update"})})})}catch(i){console.error(`Unable to retrieve latest version from GitHub: ${i}`)}};return y.useEffect(()=>{a()},[a]),null}var Yp="Avatar",[X3,Uz]=Hn(Yp),[W3,DR]=X3(Yp),_R=y.forwardRef((t,r)=>{const{__scopeAvatar:a,...i}=t,[o,c]=y.useState("idle");return v.jsx(W3,{scope:a,imageLoadingStatus:o,onImageLoadingStatusChange:c,children:v.jsx(Se.span,{...i,ref:r})})});_R.displayName=Yp;var LR="AvatarImage",zR=y.forwardRef((t,r)=>{const{__scopeAvatar:a,src:i,onLoadingStatusChange:o=()=>{},...c}=t,f=DR(LR,a),d=K3(i,c.referrerPolicy),h=nt(p=>{o(p),f.onImageLoadingStatusChange(p)});return ft(()=>{d!=="idle"&&h(d)},[d,h]),d==="loaded"?v.jsx(Se.img,{...c,ref:r,src:i}):null});zR.displayName=LR;var PR="AvatarFallback",kR=y.forwardRef((t,r)=>{const{__scopeAvatar:a,delayMs:i,...o}=t,c=DR(PR,a),[f,d]=y.useState(i===void 0);return y.useEffect(()=>{if(i!==void 0){const h=window.setTimeout(()=>d(!0),i);return()=>window.clearTimeout(h)}},[i]),f&&c.imageLoadingStatus!=="loaded"?v.jsx(Se.span,{...o,ref:r}):null});kR.displayName=PR;function K3(t,r){const[a,i]=y.useState("idle");return ft(()=>{if(!t){i("error");return}let o=!0;const c=new window.Image,f=d=>()=>{o&&i(d)};return i("loading"),c.onload=f("loaded"),c.onerror=f("error"),c.src=t,r&&(c.referrerPolicy=r),()=>{o=!1}},[t,r]),a}var UR=_R,$R=zR,HR=kR;const Qm=y.forwardRef(({className:t,...r},a)=>v.jsx(UR,{ref:a,className:le("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-md",t),...r}));Qm.displayName=UR.displayName;const Xm=y.forwardRef(({className:t,...r},a)=>v.jsx($R,{ref:a,className:le("aspect-square h-full w-full",t),...r}));Xm.displayName=$R.displayName;const qR=y.forwardRef(({className:t,...r},a)=>v.jsx(HR,{ref:a,className:le("flex h-full w-full items-center justify-center rounded-md bg-muted",t),...r}));qR.displayName=HR.displayName;function Z3(){return v.jsxs("svg",{role:"img","aria-label":"Loading animation",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"text-foreground",children:[v.jsx("circle",{cx:"4",cy:"12",r:"2",fill:"currentColor",children:v.jsx("animate",{id:"spinner_qFRN",begin:"0;spinner_OcgL.end+0.25s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),v.jsx("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",children:v.jsx("animate",{begin:"spinner_qFRN.begin+0.1s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),v.jsx("circle",{cx:"20",cy:"12",r:"2",fill:"currentColor",children:v.jsx("animate",{id:"spinner_OcgL",begin:"spinner_qFRN.begin+0.2s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})})]})}const J3=pa("flex gap-2 max-w-[60%] items-end relative group",{variants:{variant:{received:"self-start",sent:"self-end flex-row-reverse"},layout:{default:"",ai:"max-w-full w-full items-center"}},defaultVariants:{variant:"received",layout:"default"}}),BR=y.forwardRef(({className:t,variant:r,layout:a,children:i,...o},c)=>v.jsx("div",{className:le(J3({variant:r,layout:a,className:t}),"relative group"),ref:c,...o,children:y.Children.map(i,f=>y.isValidElement(f)&&typeof f.type!="string"&&f.type!==y.Fragment?y.cloneElement(f,{variant:r,layout:a}):f)}));BR.displayName="ChatBubble";const ez=pa("p-4",{variants:{variant:{received:"bg-secondary text-secondary-foreground rounded-lg rounded-bl-none",sent:"bg-primary text-primary-foreground rounded-lg rounded-br-none"},layout:{default:"",ai:"border-t w-full rounded-none bg-transparent"}},defaultVariants:{variant:"received",layout:"default"}}),IR=y.forwardRef(({className:t,variant:r,layout:a,isLoading:i=!1,children:o,...c},f)=>v.jsx("div",{className:le(ez({variant:r,layout:a,className:t}),"break-words max-w-full whitespace-pre-wrap"),ref:f,...c,children:i?v.jsx("div",{className:"flex items-center space-x-2",children:v.jsx(Z3,{})}):o}));IR.displayName="ChatBubbleMessage";const tz=({timestamp:t,className:r,...a})=>v.jsx("div",{className:le("text-xs text-right select-none",r),...a,children:t}),nz=y.forwardRef(({variant:t,className:r,children:a,...i},o)=>v.jsx("div",{ref:o,className:le("absolute top-1/2 -translate-y-1/2 flex opacity-0 group-hover:opacity-100 transition-opacity duration-200",t==="sent"?"-left-1 -translate-x-full flex-row-reverse":"-right-1 translate-x-full",r),...i,children:a}));nz.displayName="ChatBubbleActionWrapper";const VR=y.forwardRef(({className:t,...r},a)=>v.jsx(jp,{autoComplete:"off",ref:a,name:"message",className:le("max-h-12 px-4 py-3 bg-background text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 w-full rounded-md flex items-center h-16 resize-none",t),...r}));VR.displayName="ChatInput";const YR=y.forwardRef(({className:t,children:r,scrollRef:a,isAtBottom:i,scrollToBottom:o,disableAutoScroll:c,...f},d)=>v.jsxs("div",{className:"relative w-full h-full",children:[v.jsx("div",{className:`flex flex-col w-full h-full p-4 overflow-y-auto ${t}`,ref:a,onWheel:c,onTouchMove:c,...f,children:v.jsx("div",{className:"flex flex-col gap-6",children:r})}),!i&&v.jsx(Ie,{onClick:()=>{o()},size:"icon",variant:"outline",className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 inline-flex rounded-full shadow-md",children:v.jsx(WO,{className:"h-4 w-4"})})]}));YR.displayName="ChatMessageList";var om={exports:{}},_x;function rz(){return _x||(_x=1,function(t){var r=Object.prototype.hasOwnProperty,a="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(a=!1));function o(h,p,g){this.fn=h,this.context=p,this.once=g||!1}function c(h,p,g,b,x){if(typeof g!="function")throw new TypeError("The listener must be a function");var E=new o(g,b||h,x),R=a?a+p:p;return h._events[R]?h._events[R].fn?h._events[R]=[h._events[R],E]:h._events[R].push(E):(h._events[R]=E,h._eventsCount++),h}function f(h,p){--h._eventsCount===0?h._events=new i:delete h._events[p]}function d(){this._events=new i,this._eventsCount=0}d.prototype.eventNames=function(){var p=[],g,b;if(this._eventsCount===0)return p;for(b in g=this._events)r.call(g,b)&&p.push(a?b.slice(1):b);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(g)):p},d.prototype.listeners=function(p){var g=a?a+p:p,b=this._events[g];if(!b)return[];if(b.fn)return[b.fn];for(var x=0,E=b.length,R=new Array(E);x<E;x++)R[x]=b[x].fn;return R},d.prototype.listenerCount=function(p){var g=a?a+p:p,b=this._events[g];return b?b.fn?1:b.length:0},d.prototype.emit=function(p,g,b,x,E,R){var S=a?a+p:p;if(!this._events[S])return!1;var w=this._events[S],C=arguments.length,A,N;if(w.fn){switch(w.once&&this.removeListener(p,w.fn,void 0,!0),C){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,g),!0;case 3:return w.fn.call(w.context,g,b),!0;case 4:return w.fn.call(w.context,g,b,x),!0;case 5:return w.fn.call(w.context,g,b,x,E),!0;case 6:return w.fn.call(w.context,g,b,x,E,R),!0}for(N=1,A=new Array(C-1);N<C;N++)A[N-1]=arguments[N];w.fn.apply(w.context,A)}else{var L=w.length,_;for(N=0;N<L;N++)switch(w[N].once&&this.removeListener(p,w[N].fn,void 0,!0),C){case 1:w[N].fn.call(w[N].context);break;case 2:w[N].fn.call(w[N].context,g);break;case 3:w[N].fn.call(w[N].context,g,b);break;case 4:w[N].fn.call(w[N].context,g,b,x);break;default:if(!A)for(_=1,A=new Array(C-1);_<C;_++)A[_-1]=arguments[_];w[N].fn.apply(w[N].context,A)}}return!0},d.prototype.on=function(p,g,b){return c(this,p,g,b,!1)},d.prototype.once=function(p,g,b){return c(this,p,g,b,!0)},d.prototype.removeListener=function(p,g,b,x){var E=a?a+p:p;if(!this._events[E])return this;if(!g)return f(this,E),this;var R=this._events[E];if(R.fn)R.fn===g&&(!x||R.once)&&(!b||R.context===b)&&f(this,E);else{for(var S=0,w=[],C=R.length;S<C;S++)(R[S].fn!==g||x&&!R[S].once||b&&R[S].context!==b)&&w.push(R[S]);w.length?this._events[E]=w.length===1?w[0]:w:f(this,E)}return this},d.prototype.removeAllListeners=function(p){var g;return p?(g=a?a+p:p,this._events[g]&&f(this,g)):(this._events=new i,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=a,d.EventEmitter=d,t.exports=d}(om)),om.exports}var az=rz();const sz=cs(az),iz="ws://localhost:3000",Ga=class Ga extends sz{constructor(){super();Nl(this,"sockets");Nl(this,"readyPromises");Nl(this,"resolveReadyMap");this.sockets=new Map,this.readyPromises=new Map,this.resolveReadyMap=new Map}static getInstance(){return Ga.instance||(Ga.instance=new Ga),Ga.instance}connect(a,i){if(this.sockets.has(a)){console.warn(`[WebSocket Client] WebSocket for agent ${a} already exists.`);return}const o=new WebSocket(iz),c=new Promise(f=>{this.resolveReadyMap.set(a,f)});this.readyPromises.set(a,c),o.onopen=()=>{var d;console.log(`[WebSocket Client] WebSocket connected for agent ${a}`),(d=this.resolveReadyMap.get(a))==null||d();const f={type:Vc.ROOM_JOINING,payload:{agentId:a,roomId:i}};this.sendMessage(a,f)},o.onmessage=async f=>{var p,g,b;const d=JSON.parse(f.data);console.log(`[WebSocket Client] Message for agent ${a}:`,d,d.type);const h=d.payload;if(d.type===Vc.SEND_MESSAGE){const x=await Et.getAgentCompletion(a,h.senderId,h.message,h.roomId,h.source);(g=(p=x==null?void 0:x.data)==null?void 0:p.message)!=null&&g.text&&this.handleBroadcastMessage(a,(b=x==null?void 0:x.data)==null?void 0:b.name,x.data.message.text,x.data.roomId,x.data.source)}},o.onerror=f=>{console.error(`[WebSocket Client] WebSocket error for agent ${a}:`,f)},o.onclose=f=>{console.log(`[WebSocket Client] WebSocket closed for agent ${a}. Reason:`,f.reason),this.sockets.has(a)?(console.warn(`[WebSocket Client] Unexpected WebSocket closure for agent ${a}, attempting to reconnect...`),this.cleanupWebSocket(a),setTimeout(()=>{this.connect(a,i)},3e3)):this.cleanupWebSocket(a)},this.sockets.set(a,o)}async sendMessage(a,i){const o=this.sockets.get(a),c=this.readyPromises.get(a);if(!o){console.warn(`[WebSocket Client] Cannot send message, WebSocket for agent ${a} does not exist.`);return}await c,o.readyState===WebSocket.OPEN?o.send(JSON.stringify(i)):console.warn(`[WebSocket Client] WebSocket for agent ${a} is not open.`)}cleanupWebSocket(a){this.sockets.delete(a),this.readyPromises.delete(a),this.resolveReadyMap.delete(a)}handleBroadcastMessage(a,i,o,c,f){console.log(`[WebSocket Client] broadcast: ${a} broadcast ${o} to ${c}`),this.emit("messageBroadcast",{senderId:a,senderName:i,text:o,roomId:c,createdAt:Date.now()}),this.sendMessage(a,{type:Vc.SEND_MESSAGE,payload:{senderId:a,senderName:i,message:o,roomId:c,worldId:ts.getWorldId(),source:f}})}disconnect(a){const i=this.sockets.get(a);i?(i.close(),this.sockets.delete(a),this.readyPromises.delete(a),this.resolveReadyMap.delete(a),console.log(`[WebSocket Client] WebSocket for agent ${a} disconnected.`)):console.warn(`[WebSocket Client] No WebSocket found for agent ${a}.`)}disconnectAll(){this.sockets.forEach((a,i)=>{console.log(`[WebSocket Client] Closing WebSocket for agent ${i}`),a.readyState===WebSocket.OPEN?(this.cleanupWebSocket(i),a.close()):console.warn(`[WebSocket Client] WebSocket for agent ${i} is already closed or closing.`)})}};Nl(Ga,"instance",null);let Wm=Ga;var Zs={},Js={},ei={},Lx;function lz(){if(Lx)return ei;Lx=1;var t=ei&&ei.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ei,"__esModule",{value:!0});var r=t(Kl()),a=function(i,o){var c=r.default.useRef(null),f=r.default.useRef(i);return r.default.useEffect(function(){f.current=i},[i]),r.default.useEffect(function(){var d=function(){return f.current()};if(typeof o=="number")return c.current=window.setInterval(d,o),function(){return window.clearInterval(c.current)}},[o]),c};return ei.default=a,ei}var qa={},zx;function oz(){if(zx)return qa;zx=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.getCurrentNodeOverflow=qa.getStringPosition=void 0;var t=function(a,i,o){return a.split(i,o).join(" ").length};qa.getStringPosition=t;var r=function(a,i){for(var o=0,c=0,f=0;f<a.length&&!(o+a[f]>i);f++)c++,o=o+a[f];return[c,i-o]};return qa.getCurrentNodeOverflow=r,qa}var Px;function cz(){if(Px)return Js;Px=1;var t=Js&&Js.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Js,"__esModule",{value:!0});var r=t(Kl()),a=t(lz()),i=oz(),o=r.default.memo(function(c){var f=c.children,d=c.delay,h=d===void 0?25:d,p=c.onEnd,g=p===void 0?function(){}:p,b=r.default.useState(0),x=b[0],E=b[1],R=r.default.useMemo(function(){var C=[],A=function(N){var L,_=(L=N==null?void 0:N.props)===null||L===void 0?void 0:L.children;return Array.isArray(N)&&N.forEach(function(k){typeof k=="object"?A(k):typeof k=="string"&&C.push(k.split(" ").length)}),_===void 0&&typeof N=="string"&&C.push(N.split(" ").length),typeof _=="object"&&A(_),typeof _=="string"&&C.push(_.split(" ").length),C};return A(f)},[f]),S=r.default.useMemo(function(){return R.reduce(function(C,A){return C+A},0)},[R]),w=r.default.useMemo(function(){var C=0,A=0,N=function(L){var _;if(C>x)return null;var k=(_=L==null?void 0:L.props)===null||_===void 0?void 0:_.children;if(Array.isArray(L)){var I=[];return L.forEach(function(ne){if(typeof ne=="object")I.push(N(ne));else if(typeof ne=="string"){C+=ne.split(" ").length,A++;var ce=(0,i.getCurrentNodeOverflow)(R,x),$=ce[0],U=ce[1];$<A&&I.push(ne.slice(0,(0,i.getStringPosition)(ne," ",U))),I.push(ne)}}),I}if(k===void 0&&typeof L=="string"){C+=L.split(" ").length,A++;var Y=(0,i.getCurrentNodeOverflow)(R,x),H=Y[0],K=Y[1];return H<A?L.slice(0,(0,i.getStringPosition)(L," ",K)):L}if(typeof k=="object")return r.default.createElement(L.type,L==null?void 0:L.props,N(k));if(typeof k=="string"){C+=k.split(" ").length,A++;var Z=(0,i.getCurrentNodeOverflow)(R,x),H=Z[0],K=Z[1];return H<A?r.default.createElement(L.type,L==null?void 0:L.props,k.slice(0,(0,i.getStringPosition)(k," ",K))):L}};return N(f)},[f,x,R]);return(0,a.default)(function(){E(function(C){return C+1>=S&&g(),C+1})},S>x?h:null),r.default.useEffect(function(){console.log("hmmm"),E(0)},[f]),w});return o.displayName="AIWriter",Js.default=o,Js}var kx;function uz(){if(kx)return Zs;kx=1;var t=Zs&&Zs.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Zs,"__esModule",{value:!0});var r=t(cz());return Zs.default=r.default,Zs}var fz=uz();const dz=cs(fz);let kl,Ul=[],Dc;const Ux=(t,r)=>String(t).padStart(r,"0"),hz=({className:t,timerClassName:r,agentId:a,onChange:i})=>{const{toast:o}=Yn(),[c,f]=y.useState(!1),[d,h]=y.useState(!1),[p,g]=y.useState(0),[b,x]=y.useState({id:-1,name:"",file:null}),E=Math.floor(p%3600/60),R=p%60,[S,w]=y.useMemo(()=>Ux(E,2).split(""),[E]),[C,A]=y.useMemo(()=>Ux(R,2).split(""),[R]),N=y.useRef({stream:null,analyser:null,mediaRecorder:null,audioContext:null}),L=yu({mutationKey:["whisper"],mutationFn:H=>Et.whisper(a,H),onSuccess:H=>{var K;(K=H==null?void 0:H.data)!=null&&K.text&&i(H.data.text)},onError:H=>{o({variant:"destructive",title:"Unable to start recording",description:H.message}),console.log(H)}});function _(){var H;(H=navigator.mediaDevices)!=null&&H.getUserMedia&&navigator.mediaDevices.getUserMedia({audio:!0}).then(K=>{f(!0);const Z=window.AudioContext,ne=new Z,ce=ne.createAnalyser();ne.createMediaStreamSource(K).connect(ce),N.current={stream:K,analyser:ce,mediaRecorder:null,audioContext:ne};const M={mimeType:MediaRecorder.isTypeSupported("audio/mpeg")?"audio/mpeg":MediaRecorder.isTypeSupported("audio/webm")?"audio/webm":"audio/wav"};N.current.mediaRecorder=new MediaRecorder(K,M),N.current.mediaRecorder.start(),Ul=[],kl=new MediaRecorder(K),kl.start(),kl.ondataavailable=q=>{Ul.push(q.data)}}).catch(K=>{o({variant:"destructive",title:"Unable to start recording",description:K.message}),console.log(K)})}function k(){kl.onstop=()=>{const H=new Blob(Ul,{type:"audio/wav"});L.mutate(H),x({...b,file:window.URL.createObjectURL(H)}),Ul=[]},kl.stop(),f(!1),h(!0),g(0),clearTimeout(Dc)}function I(){const{mediaRecorder:H,stream:K,analyser:Z,audioContext:ne}=N.current;if(H&&(H.onstop=()=>{Ul=[]},H.stop()),Z&&Z.disconnect(),K)for(const ce of K.getTracks())ce.stop();ne&&ne.close(),f(!1),h(!0),g(0),clearTimeout(Dc)}const Y=()=>{k()};return y.useEffect(()=>(c&&(Dc=setTimeout(()=>{g(p+1)},1e3)),()=>clearTimeout(Dc)),[c,p]),L!=null&&L.isPending?v.jsx(Ie,{variant:"ghost",disabled:!0,size:"icon",children:v.jsx(ip,{className:"size-4"})}):v.jsxs("div",{className:le("flex items-center justify-center gap-2 border-l border-l-transparent border-opacity-0 transition-all duration-300",{"border-opacity-100 border-l-border pl-2":c},t),children:[c?v.jsxs("div",{className:"flex gap-1 items-center",children:[v.jsx("div",{className:"bg-red-500 rounded-full h-2.5 w-2.5 animate-pulse"}),v.jsx(GR,{minuteLeft:S,minuteRight:w,secondLeft:C,secondRight:A,timerClassName:r})]}):null,v.jsxs("div",{className:"flex items-center",children:[c?v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:v.jsx(Ie,{onClick:I,size:"icon",variant:"ghost",children:v.jsx(m2,{className:"size-4"})})}),v.jsx(kn,{className:"m-2",children:v.jsx("span",{children:" Reset recording"})})]}):null,v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:c?v.jsx(Ie,{onClick:Y,variant:"ghost",size:"icon",children:v.jsx(Yw,{className:"size-4"})}):v.jsxs(Ie,{variant:"ghost",size:"icon",onClick:()=>_(),children:[v.jsx(i2,{className:"size-4"}),v.jsx("span",{className:"sr-only",children:"Use Microphone"})]})}),v.jsx(kn,{side:"right",children:v.jsxs("span",{children:[c?"Send":"Start"," "]})})]})]})]})},GR=hr.memo(({minuteLeft:t,minuteRight:r,secondLeft:a,secondRight:i,timerClassName:o})=>v.jsx("div",{className:le("text-sm animate-in duration-1000 fade-in-0 select-none",o),children:v.jsxs("p",{children:[t,r,":",a,i]})}));GR.displayName="Timer";const mz=({text:t})=>{const[r,a]=y.useState(!1),i=()=>{navigator.clipboard.writeText(t).then(()=>{a(!0),setTimeout(()=>a(!1),2e3)})};return v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:v.jsx(Ie,{onClick:i,variant:"ghost",size:"icon",className:"flex items-center space-x-2 text-muted-foreground",children:r?v.jsx(ap,{className:"size-4"}):v.jsx(e2,{className:"size-4"})})}),v.jsx(kn,{side:"bottom",children:v.jsx("p",{children:"Copy"})})]})};function pz({agentId:t,text:r}){const{toast:a}=Yn(),[i,o]=y.useState(!1),[c,f]=y.useState(null),d=y.useRef(null),h=yu({mutationKey:["tts",r],mutationFn:()=>Et.tts(t,r),onSuccess:E=>{f(E),p()},onError:E=>{a({variant:"destructive",title:"Unable to read message aloud",description:E.message})}}),p=()=>{d.current&&d.current.play().catch(E=>{console.error("Error playing audio:",E)}),o(!0)},g=()=>{d.current&&(d.current.pause(),d.current.currentTime=0),o(!1)},b=()=>{if(!(h!=null&&h.isPending)){if(i){g();return}if(c){p();return}}},x="text-muted-foreground size-4";return v.jsxs("div",{children:[c?v.jsxs("audio",{crossOrigin:"anonymous",playsInline:!0,ref:d,onEnded:()=>{o(!1)},autoPlay:!0,children:[v.jsx("source",{src:URL.createObjectURL(c),type:"audio/mpeg"}),v.jsx("track",{kind:"captions",src:"",label:"English captions"}),"Your browser does not support the audio element."]}):null,v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:v.jsx(Ie,{size:"icon",variant:"ghost",type:"button",onClick:()=>b(),disabled:h==null?void 0:h.isPending,children:h!=null&&h.isPending?v.jsx(ip,{className:x}):i?v.jsx(JO,{className:x}):v.jsx(v2,{className:x})})}),v.jsx(kn,{side:"bottom",children:v.jsx("p",{children:i?"Stop":"Read aloud"})})]})]})}function vz(t={}){const{offset:r=20,smooth:a=!1}=t,i=y.useRef(null),o=y.useRef(0),c=y.useRef(!1),[f,d]=y.useState({isAtBottom:!0,autoScrollEnabled:!0}),h=y.useCallback(x=>{const{scrollTop:E,scrollHeight:R,clientHeight:S}=x;return Math.abs(R-E-S)<=r},[r]),p=y.useCallback(x=>{if(!i.current)return;const E=i.current.scrollHeight-i.current.clientHeight;x?i.current.scrollTop=E:i.current.scrollTo({top:E,behavior:a?"smooth":"auto"}),d({isAtBottom:!0,autoScrollEnabled:!0}),c.current=!1},[a]),g=y.useCallback(()=>{if(!i.current)return;const x=h(i.current);d(E=>({isAtBottom:x,autoScrollEnabled:x?!0:E.autoScrollEnabled}))},[h]);y.useEffect(()=>{const x=i.current;if(x)return x.addEventListener("scroll",g,{passive:!0}),()=>x.removeEventListener("scroll",g)},[g]),y.useEffect(()=>{const x=i.current;if(!x)return;const E=x.scrollHeight;E!==o.current&&(f.autoScrollEnabled&&requestAnimationFrame(()=>{p(o.current===0)}),o.current=E)},[f.autoScrollEnabled,p]),y.useEffect(()=>{const x=i.current;if(!x)return;const E=new ResizeObserver(()=>{f.autoScrollEnabled&&p(!0)});return E.observe(x),()=>E.disconnect()},[f.autoScrollEnabled,p]);const b=y.useCallback(()=>{(i.current?h(i.current):!1)||(c.current=!0,d(E=>({...E,autoScrollEnabled:!1})))},[h]);return{scrollRef:i,isAtBottom:f.isAtBottom,autoScrollEnabled:f.autoScrollEnabled,scrollToBottom:()=>p(!1),disableAutoScroll:b}}const gz="client_chat";function yz({message:t,agentId:r}){var a;return v.jsxs("div",{className:"flex flex-col",children:[v.jsxs(IR,{isLoading:t.isLoading,...t.name===ns?{variant:"sent"}:{},children:[t.name===ns?t.text:v.jsx(dz,{children:t.text}),v.jsx("div",{children:(a=t.attachments)==null?void 0:a.map(i=>v.jsxs("div",{className:"flex flex-col gap-1 mt-2",children:[v.jsx("img",{alt:"attachment",src:i.url,width:"100%",height:"100%",className:"w-64 rounded-md"}),v.jsxs("div",{className:"flex items-center justify-between gap-4",children:[v.jsx("span",{}),v.jsx("span",{})]})]},`${i.url}-${i.title}`))})]}),v.jsxs("div",{className:"flex items-center gap-4 justify-between w-full mt-1",children:[t.text&&!t.isLoading?v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx(mz,{text:t.text}),v.jsx(pz,{agentId:r,text:t.text})]}):null,v.jsxs("div",{className:le([t.isLoading?"mt-2":"","flex items-center justify-between gap-4 select-none"]),children:[t.source?v.jsx(Lm,{variant:"outline",children:t.source}):null,t.actions?v.jsx(Lm,{variant:"outline",children:t.actions.join(", ")}):null,t.createdAt?v.jsx(tz,{timestamp:bN(t.createdAt).format("LT")}):null]})]})]})}function bz({agentId:t}){var I,Y,H,K;const[r,a]=y.useState(null),[i,o]=y.useState(""),c=y.useRef(null),f=y.useRef(null),d=y.useRef(null),h=Bn(),p=ts.getWorldId(),g=(Y=(I=F_(t))==null?void 0:I.data)==null?void 0:Y.data,b=xN(),x=t,{data:E=[]}=W_(t,x),R=Wm.getInstance();y.useEffect(()=>{R.connect(t,x),R.connect(b,x);const Z=ne=>{h.setQueryData(["messages",t,x,p],(ce=[])=>[...ce,{...ne,name:ne.senderName}])};return R.on("messageBroadcast",Z),()=>{R.disconnectAll(),R.off("messageBroadcast",Z)}},[x]);const S=Z=>Z!==ns?"received":"sent",{scrollRef:w,isAtBottom:C,scrollToBottom:A,disableAutoScroll:N}=vz({smooth:!0});y.useEffect(()=>{A()},[h.getQueryData(["messages",t,x,p])]),y.useEffect(()=>{A()},[]);const L=Z=>{if(Z.key==="Enter"&&!Z.shiftKey){if(Z.preventDefault(),Z.nativeEvent.isComposing)return;_(Z)}},_=Z=>{var ne;Z.preventDefault(),i&&(R.handleBroadcastMessage(b,ns,i,x,gz),a(null),o(""),(ne=d.current)==null||ne.reset())};y.useEffect(()=>{c.current&&c.current.focus()},[]);const k=Z=>{var ce;const ne=(ce=Z.target.files)==null?void 0:ce[0];ne!=null&&ne.type.startsWith("image/")&&a(ne)};return v.jsxs("div",{className:"flex flex-col w-full h-[calc(100dvh)] p-4",children:[v.jsx("div",{className:"flex items-center justify-between mb-4 p-3 bg-card rounded-lg border",children:v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(Qm,{className:"size-10 border rounded-full",children:v.jsx(Xm,{src:(H=g==null?void 0:g.settings)!=null&&H.avatar?(K=g==null?void 0:g.settings)==null?void 0:K.avatar:"/elizaos-icon.png"})}),v.jsxs("div",{className:"flex flex-col",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("h2",{className:"font-semibold text-lg",children:(g==null?void 0:g.name)||"Agent"}),(g==null?void 0:g.status)===ta.ACTIVE?v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:v.jsx("div",{className:"size-2.5 rounded-full bg-green-500 ring-2 ring-green-500/20 animate-pulse"})}),v.jsx(kn,{side:"right",children:v.jsx("p",{children:"Agent is active"})})]}):v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:v.jsx("div",{className:"size-2.5 rounded-full bg-gray-300 ring-2 ring-gray-300/20"})}),v.jsx(kn,{side:"right",children:v.jsx("p",{children:"Agent is inactive"})})]})]}),(g==null?void 0:g.bio)&&v.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:Array.isArray(g.bio)?g.bio[0]:g.bio})]})]})}),v.jsx(YR,{scrollRef:w,isAtBottom:C,scrollToBottom:A,disableAutoScroll:N,children:E.map(Z=>{var ce,$;const ne=Z.name===ns;return v.jsx("div",{className:`flex flex-column gap-1 p-1 ${ne?"justify-end":""}`,children:v.jsxs(BR,{variant:S(Z.name),className:`flex flex-row items-center gap-2 ${ne?"flex-row-reverse":""}`,children:[v.jsxs(Qm,{className:"size-8 border rounded-full select-none",children:[v.jsx(Xm,{src:ne?"/user-icon.png":(ce=g==null?void 0:g.settings)!=null&&ce.avatar?($=g==null?void 0:g.settings)==null?void 0:$.avatar:"/elizaos-icon.png"}),ne&&v.jsx(qR,{children:"U"})]}),v.jsx(yz,{message:Z,agentId:t})]})},Z.name+Z.createdAt)})}),v.jsx("div",{className:"px-4 pb-4",children:v.jsxs("form",{ref:d,onSubmit:_,className:"relative rounded-md border bg-card",children:[r?v.jsx("div",{className:"p-3 flex",children:v.jsxs("div",{className:"relative rounded-md border p-2",children:[v.jsx(Ie,{onClick:()=>a(null),className:"absolute -right-2 -top-2 size-[22px] ring-2 ring-background",variant:"outline",size:"icon",children:v.jsx(us,{})}),v.jsx("img",{alt:"Selected file",src:URL.createObjectURL(r),height:"100%",width:"100%",className:"aspect-square object-contain w-16"})]})}):null,v.jsx(VR,{ref:c,onKeyDown:L,value:i,onChange:({target:Z})=>o(Z.value),placeholder:"Type your message here...",className:"min-h-12 resize-none rounded-md bg-card border-0 p-3 shadow-none focus-visible:ring-0"}),v.jsxs("div",{className:"flex items-center p-3 pt-0",children:[v.jsxs(br,{children:[v.jsx(xr,{asChild:!0,children:v.jsxs("div",{children:[v.jsxs(Ie,{variant:"ghost",size:"icon",onClick:()=>{f.current&&f.current.click()},children:[v.jsx(o2,{className:"size-4"}),v.jsx("span",{className:"sr-only",children:"Attach file"})]}),v.jsx("input",{type:"file",ref:f,onChange:k,accept:"image/*",className:"hidden"})]})}),v.jsx(kn,{side:"left",children:v.jsx("p",{children:"Attach file"})})]}),v.jsx(hz,{agentId:t,onChange:Z=>o(Z)}),v.jsx(Ie,{type:"submit",size:"sm",className:"ml-auto gap-1.5 h-[30px]",children:v.jsx(Yw,{className:"size-3.5"})})]})]})})]})}function xz(){const{agentId:t}=lE();return t?v.jsx(bz,{agentId:t}):v.jsx("div",{children:"No data."})}function wz(){return v.jsx(XE,{})}function Sz({title:t,content:r,buttons:a}){return v.jsxs(io,{className:"h-full",children:[v.jsx(yE,{className:"pb-2 pt-3",children:v.jsx(bE,{className:"text-base truncate max-w-48",children:t})}),v.jsx(wu,{className:"p-3",children:v.jsx("div",{className:"rounded-md bg-muted w-full mb-3 overflow-hidden",style:{aspectRatio:"1 / 1"},children:v.jsx("div",{className:"flex items-center justify-center h-full",children:v.jsx("div",{className:"text-4xl font-bold uppercase h-full flex items-center justify-center w-full",children:r})})})}),v.jsx(xE,{className:"p-3 pb-4",children:v.jsx("div",{className:"flex items-center gap-2 w-full justify-center",children:a.map(({label:i,icon:o,action:c,className:f,variant:d,size:h,disabled:p},g)=>v.jsxs(Ie,{variant:d,className:f,onClick:c,size:h,disabled:p,children:[o,i&&v.jsx("span",{children:i})]},g))})})]})}function Ez(){Oi();const t=Bn(),{toast:r}=Yn(),a=Q_(),i=X_(),[o,c]=y.useState([]),[f,d]=y.useState([]);return{startAgent:async x=>{if(!x.id){r({title:"Error",description:"Agent ID is missing",variant:"destructive"});return}const E=x.id;if(!o.includes(E))try{c(R=>[...R,E]),await a.mutateAsync(E),t.invalidateQueries({queryKey:["active-agents"]})}catch(R){console.error("Failed to start agent:",R),r({title:"Error Starting Agent",description:R instanceof Error?R.message:"Failed to start agent",variant:"destructive"})}finally{c(R=>R.filter(S=>S!==E))}},stopAgent:async x=>{if(!x.id){r({title:"Error",description:"Agent ID is missing",variant:"destructive"});return}const E=x.id;if(!f.includes(E))try{d(R=>[...R,E]),await i.mutateAsync(E),t.invalidateQueries({queryKey:["active-agents"]}),r({title:"Agent Stopped",description:`${x.name} has been stopped`})}catch(R){console.error("Failed to stop agent:",R),r({title:"Error Stopping Agent",description:R instanceof Error?R.message:"Failed to stop agent",variant:"destructive"})}finally{d(R=>R.filter(S=>S!==E))}},isAgentStarting:x=>x?o.includes(x):!1,isAgentStopping:x=>x?f.includes(x):!1,startingAgents:o,stoppingAgents:f}}function Rz({isOpen:t,onClose:r,agent:a}){var C;if(!t)return null;const{startAgent:i,stopAgent:o,isAgentStarting:c,isAgentStopping:f}=Ez(),d=Oi(),h=a.status==="active",p=c(a.id),g=f(a.id),b=p||g,x=y.useRef(null),[E,R]=y.useState(!1);let S="Start",w=v.jsx(c2,{});return p?(S="Starting...",w=v.jsx(s0,{className:"animate-spin"})):g?(S="Stopping...",w=v.jsx(s0,{className:"animate-spin"})):h&&(S="Stop",w=v.jsx(h2,{fill:"#EF4444",size:16})),y.useEffect(()=>{const A=N=>{x.current&&!x.current.contains(N.target)&&R(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[]),v.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-80 flex items-center justify-center z-50",onClick:r,children:v.jsxs(io,{className:"flex flex-col items-center justify-between h-[70vh] w-[70vh]",onClick:A=>A.stopPropagation(),children:[v.jsx("div",{className:"p-3 h-[30%] w-full flex items-end",children:v.jsxs("div",{className:"flex w-full h-full justify-between items-end",children:[v.jsxs("div",{className:"flex flex-col gap-2",children:[v.jsxs("div",{className:"w-20 h-20 flex justify-center items-center relative",children:[a&&v.jsx("div",{className:"text-4xl bg-muted rounded-full h-full w-full flex justify-center items-center overflow-hidden",children:(C=a.settings)!=null&&C.avatar?v.jsx("img",{src:a.settings.avatar,alt:"Agent Avatar",className:"w-full h-full object-contain"}):Yc(a.name)}),v.jsx("div",{className:`absolute bottom-1 right-1 w-4 h-4 rounded-full border-2 border-white ${h?"bg-green-500":"bg-muted-foreground"}`})]}),v.jsx("div",{className:"flex justify-center items-center mr-4 font-bold",children:a&&v.jsx("div",{className:"text-xl truncate max-w-48",children:a.name})})]}),v.jsxs("div",{className:"flex flex-col items-end justify-between h-full",children:[v.jsxs("div",{className:"relative ",children:[v.jsx(ip,{className:"w-5 h-5 cursor-pointer",onClick:()=>{R(!0)}}),E&&v.jsx("div",{className:"absolute right-0 -top-1 mt-2 w-30 bg-muted border rounded shadow-md z-10",ref:x,children:v.jsxs(Ie,{variant:"ghost",className:"w-full px-4 py-2 text-left opacity-50 hover:opacity-100 cursor-pointer flex items-center gap-1",onClick:()=>{R(!1),d(`/settings/${a.id}`)},children:[v.jsx("div",{children:v.jsx(sp,{className:"w-4 h-4"})}),v.jsx("div",{children:"Setting"})]})})]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsxs(Ie,{variant:"secondary",className:"mr-4",onClick:()=>{h&&d(`/chat/${a.id}`)},size:"default",disabled:!h,children:[v.jsx(s2,{className:"w-10 h-10 rounded-full",style:{height:14,width:14}}),"Message"]}),v.jsxs(Ie,{variant:"secondary",className:`mr-4 ${h?"text-red-500":""}`,onClick:()=>{b||(h?o(a):i(a))},size:"default",disabled:b,children:[w,S]})]})]})]})}),v.jsx(wu,{className:"p-3 h-[70%] w-full",children:v.jsx("div",{className:"rounded-md bg-muted h-full w-full mb-3",children:v.jsx("div",{className:"flex h-full",children:v.jsx("div",{className:"p-6 overflow-scroll flex flex-col gap-2",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-light",children:"About Me"}),a&&v.jsx("p",{className:"font-light text-sm text-gray-500",children:a==null?void 0:a.system})]})})})})})]})})}function Tz(){const{data:{data:t}={},isLoading:r,isError:a,error:i}=KE(),o=Oi(),c=(t==null?void 0:t.agents)||[],[f,d]=y.useState(!1),[h,p]=y.useState(null),g=x=>{p(x),d(!0)},b=()=>{p(null),d(!1)};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex flex-col gap-4 h-full p-4",children:[v.jsx("div",{className:"flex items-center justify-between",children:v.jsx(n1,{title:"Agents"})}),r&&v.jsx("div",{className:"text-center py-8",children:"Loading agents..."}),a&&v.jsxs("div",{className:"text-center py-8 text-destructive",children:["Error loading agents:"," ",i instanceof Error?i.message:"Unknown error"]}),c.length===0&&!r&&v.jsx("div",{className:"text-center py-8 flex flex-col items-center gap-4",children:v.jsx("p",{className:"text-muted-foreground",children:"No agents currently running. Start a character to begin."})}),!r&&!a&&v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 p-3",children:[c==null?void 0:c.sort((x,E)=>Number(E==null?void 0:E.enabled)-Number(x==null?void 0:x.enabled)).map(x=>{var E;return v.jsx(Sz,{title:x.name,content:v.jsx("div",{className:"cursor-pointer h-full w-full flex items-center justify-center",onClick:()=>g(x),children:(E=x.settings)!=null&&E.avatar?v.jsx("img",{src:x.settings.avatar,alt:"Agent Avatar",className:"w-full h-full object-contain"}):Yc(x.name)}),buttons:[{label:"View",action:()=>{g(x)},className:"w-[80%]",variant:"default"},{icon:v.jsx(sp,{style:{height:16,width:16}}),className:"w-10 h-10 rounded-full",action:()=>o(`/settings/${x.id}`),variant:"outline"}]},x.id)}),v.jsx(io,{className:"flex flex-col items-center justify-center h-full cursor-pointer hover:bg-accent/50 transition-colors",onClick:()=>o("/create"),children:v.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 p-8",children:[v.jsx(u2,{size:40,className:"text-muted-foreground"}),v.jsx("span",{className:"text-muted-foreground whitespace-nowrap",children:"Create New Agent"})]})})]})]}),v.jsx(Rz,{isOpen:f,onClose:b,agent:c.find(x=>x.id===(h==null?void 0:h.id))||h,agents:c})]})}function Cz({agent:t,agentId:r}){const{toast:a}=Yn(),i=Oi(),o=Bn(),[c,f]=y.useState(t),d=async p=>{try{if(!r)throw new Error("Agent ID is missing");const g={...p,plugins:c.plugins};await Et.updateAgent(r,g),o.invalidateQueries({queryKey:["agent",r]}),o.invalidateQueries({queryKey:["agents"]}),i("/"),a({title:"Success",description:"Agent updated and restarted successfully"})}catch(g){throw a({title:"Error",description:g instanceof Error?g.message:"Failed to update agent",variant:"destructive"}),g}},h=async p=>{try{await Et.deleteAgent(p.id),o.invalidateQueries({queryKey:["agents"]}),i("/")}catch(g){console.error("Error deleting agent:",g)}};return v.jsx(qE,{characterValue:c,setCharacterValue:f,title:"Character Settings",description:"Configure your AI character's behavior and capabilities",onSubmit:d,onReset:()=>f(t),onDelete:()=>h(t),isAgent:!0,customComponents:[{name:"Plugins",component:v.jsx(FE,{characterValue:c,setCharacterValue:f})},{name:"Secret",component:v.jsx(QE,{characterValue:c,setCharacterValue:f})},{name:"Avatar",component:v.jsx(BE,{characterValue:c,setCharacterValue:f})}]})}function Az(){var i;const{agentId:t}=lE(),r=fs({queryKey:["agent",t],queryFn:()=>Et.getAgent(t??""),staleTime:gn.FREQUENT,refetchInterval:5e3,enabled:!!t});if(!t)return v.jsx("div",{children:"No data."});const a=(i=r==null?void 0:r.data)==null?void 0:i.data;return a?v.jsx(Cz,{agent:a,agentId:t}):null}const FR=new AM({defaultOptions:{queries:{staleTime:gn.STANDARD,refetchInterval:!1,retry:3,retryDelay:t=>Math.min(1e3*2**t,3e4),refetchOnWindowFocus:!0,refetchOnReconnect:!0},mutations:{retry:3,retryDelay:t=>Math.min(1e3*2**t,3e4)}}}),QR=async()=>{try{await FR.prefetchQuery({queryKey:["agents"],queryFn:()=>Et.getAgents(),staleTime:gn.FREQUENT})}catch(t){console.error("Error prefetching initial data:",t)}};QR();function Nz(){return Q3(),y.useEffect(()=>{QR()},[]),v.jsx(DM,{client:FR,children:v.jsx("div",{className:"dark antialiased",style:{colorScheme:"dark"},children:v.jsx(n_,{children:v.jsxs(AS,{delayDuration:0,children:[v.jsxs(OS,{children:[v.jsx(J_,{}),v.jsx(MS,{children:v.jsx("div",{className:"flex flex-1 flex-col gap-4 size-full container",children:v.jsxs(_D,{children:[v.jsx(Ba,{path:"/",element:v.jsx(Tz,{})}),v.jsx(Ba,{path:"chat/:agentId",element:v.jsx(xz,{})}),v.jsx(Ba,{path:"settings/:agentId",element:v.jsx(Az,{})}),v.jsx(Ba,{path:"agents/new",element:v.jsx(wz,{})}),v.jsx(Ba,{path:"/create",element:v.jsx(XE,{})}),v.jsx(Ba,{path:"/logs",element:v.jsx(J4,{})})]})})})]}),v.jsx(x3,{})]})})})})}const XR=document.getElementById("root");if(!XR)throw new Error("Root element not found");jA.createRoot(XR).render(v.jsx(y.StrictMode,{children:v.jsx(Nz,{})}));
|