@getvision/core 0.0.1 → 0.0.2

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.
Files changed (55) hide show
  1. package/dist/index.js +5 -14
  2. package/dist/server/websocket.d.ts +0 -6
  3. package/dist/server/websocket.d.ts.map +1 -1
  4. package/dist/server/websocket.js +3 -117
  5. package/package.json +20 -8
  6. package/dist/__tests__/core.test.d.ts +0 -2
  7. package/dist/__tests__/core.test.d.ts.map +0 -1
  8. package/dist/__tests__/core.test.js +0 -88
  9. package/dist/__tests__/tracing.test.d.ts +0 -2
  10. package/dist/__tests__/tracing.test.d.ts.map +0 -1
  11. package/dist/__tests__/tracing.test.js +0 -108
  12. package/dist/ui/assets/index-5t7c-m29.js +0 -243
  13. package/dist/ui/assets/index-9ueE5-_1.js +0 -228
  14. package/dist/ui/assets/index-B2zDhd4y.js +0 -228
  15. package/dist/ui/assets/index-B6PCTRWI.js +0 -228
  16. package/dist/ui/assets/index-BAqOyMpS.js +0 -228
  17. package/dist/ui/assets/index-BBPymjIY.css +0 -1
  18. package/dist/ui/assets/index-BFZ9LDLI.js +0 -228
  19. package/dist/ui/assets/index-BK3A49yO.js +0 -243
  20. package/dist/ui/assets/index-BVC9j-JL.css +0 -1
  21. package/dist/ui/assets/index-BWzGTXsJ.js +0 -228
  22. package/dist/ui/assets/index-BZaQlF2p.js +0 -228
  23. package/dist/ui/assets/index-BbYLBWtj.css +0 -1
  24. package/dist/ui/assets/index-Bgf_12ju.js +0 -243
  25. package/dist/ui/assets/index-Bhxve5KF.css +0 -1
  26. package/dist/ui/assets/index-Bj-CWu-L.js +0 -228
  27. package/dist/ui/assets/index-BlJwGFyg.js +0 -243
  28. package/dist/ui/assets/index-BnD39P39.js +0 -228
  29. package/dist/ui/assets/index-C9X3l8Qf.js +0 -228
  30. package/dist/ui/assets/index-C9wDB-pp.js +0 -228
  31. package/dist/ui/assets/index-CAONCZtM.js +0 -243
  32. package/dist/ui/assets/index-CCtH3nj-.js +0 -243
  33. package/dist/ui/assets/index-CKzeeZJS.js +0 -228
  34. package/dist/ui/assets/index-Cctg6X14.js +0 -243
  35. package/dist/ui/assets/index-Ch3Kvj5x.js +0 -228
  36. package/dist/ui/assets/index-CkV-qXIH.css +0 -1
  37. package/dist/ui/assets/index-Cl2VKig8.js +0 -228
  38. package/dist/ui/assets/index-CoKjAtkW.css +0 -1
  39. package/dist/ui/assets/index-D4C4VyHp.css +0 -1
  40. package/dist/ui/assets/index-DHQw82rB.js +0 -228
  41. package/dist/ui/assets/index-DIfw1ZVL.css +0 -1
  42. package/dist/ui/assets/index-DJJX2zqa.js +0 -228
  43. package/dist/ui/assets/index-D_D2XkaS.js +0 -228
  44. package/dist/ui/assets/index-De-GZ9-w.js +0 -228
  45. package/dist/ui/assets/index-DoWtvKFs.js +0 -228
  46. package/dist/ui/assets/index-Dyseuj-Z.js +0 -223
  47. package/dist/ui/assets/index-ErxJEkTC.js +0 -243
  48. package/dist/ui/assets/index-HIUv_thh.css +0 -1
  49. package/dist/ui/assets/index-HhqjfP8c.js +0 -228
  50. package/dist/ui/assets/index-eUFXMYOK.js +0 -221
  51. package/dist/ui/assets/index-jabSppNC.js +0 -228
  52. package/dist/ui/assets/index-t88G2D4Q.js +0 -228
  53. package/dist/ui/assets/index-tl7-KOr9.css +0 -1
  54. package/dist/ui/assets/index-uyOJY0cv.js +0 -228
  55. package/dist/ui/assets/index-wmKPAJzR.js +0 -243
@@ -1,228 +0,0 @@
1
- var e1=Object.defineProperty;var rp=l=>{throw TypeError(l)};var t1=(l,r,i)=>r in l?e1(l,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):l[r]=i;var Bn=(l,r,i)=>t1(l,typeof r!="symbol"?r+"":r,i),Pc=(l,r,i)=>r.has(l)||rp("Cannot "+i);var T=(l,r,i)=>(Pc(l,r,"read from private field"),i?i.call(l):r.get(l)),ie=(l,r,i)=>r.has(l)?rp("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(l):r.set(l,i),ee=(l,r,i,u)=>(Pc(l,r,"write to private field"),u?u.call(l,i):r.set(l,i),i),ye=(l,r,i)=>(Pc(l,r,"access private method"),i);var os=(l,r,i,u)=>({set _(c){ee(l,r,c,i)},get _(){return T(l,r,u)}});(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function sy(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Ic={exports:{}},xi={};/**
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 ip;function n1(){if(ip)return xi;ip=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(u,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:l,type:u,key:d,ref:c!==void 0?c:null,props:f}}return xi.Fragment=r,xi.jsx=i,xi.jsxs=i,xi}var up;function l1(){return up||(up=1,Ic.exports=n1()),Ic.exports}var _f=l1();const Kn=_f.Fragment,p=_f.jsx,A=_f.jsxs;var ef={exports:{}},de={};/**
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 sp;function a1(){if(sp)return de;sp=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),w=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=w&&E[w]||E["@@iterator"],typeof E=="function"?E:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,z={};function q(E,B,P){this.props=E,this.context=B,this.refs=z,this.updater=P||Y}q.prototype.isReactComponent={},q.prototype.setState=function(E,B){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,B,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Q(){}Q.prototype=q.prototype;function k(E,B,P){this.props=E,this.context=B,this.refs=z,this.updater=P||Y}var V=k.prototype=new Q;V.constructor=k,M(V,q.prototype),V.isPureReactComponent=!0;var G=Array.isArray;function H(){}var J={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function W(E,B,P){var te=P.ref;return{$$typeof:l,type:E,key:B,ref:te!==void 0?te:null,props:P}}function $(E,B){return W(E.type,B,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function se(E){var B={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(P){return B[P]})}var He=/\/+/g;function Ve(E,B){return typeof E=="object"&&E!==null&&E.key!=null?se(""+E.key):B.toString(36)}function ae(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(H,H):(E.status="pending",E.then(function(B){E.status==="pending"&&(E.status="fulfilled",E.value=B)},function(B){E.status==="pending"&&(E.status="rejected",E.reason=B)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,B,P,te,fe){var ve=typeof E;(ve==="undefined"||ve==="boolean")&&(E=null);var Re=!1;if(E===null)Re=!0;else switch(ve){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(E.$$typeof){case l:case r:Re=!0;break;case x:return Re=E._init,D(Re(E._payload),B,P,te,fe)}}if(Re)return fe=fe(E),Re=te===""?"."+Ve(E,0):te,G(fe)?(P="",Re!=null&&(P=Re.replace(He,"$&/")+"/"),D(fe,B,P,"",function(Ar){return Ar})):fe!=null&&(ce(fe)&&(fe=$(fe,P+(fe.key==null||E&&E.key===fe.key?"":(""+fe.key).replace(He,"$&/")+"/")+Re)),B.push(fe)),1;Re=0;var ht=te===""?".":te+":";if(G(E))for(var $e=0;$e<E.length;$e++)te=E[$e],ve=ht+Ve(te,$e),Re+=D(te,B,P,ve,fe);else if($e=R(E),typeof $e=="function")for(E=$e.call(E),$e=0;!(te=E.next()).done;)te=te.value,ve=ht+Ve(te,$e++),Re+=D(te,B,P,ve,fe);else if(ve==="object"){if(typeof E.then=="function")return D(ae(E),B,P,te,fe);throw B=String(E),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Re}function F(E,B,P){if(E==null)return E;var te=[],fe=0;return D(E,te,"","",function(ve){return B.call(P,ve,fe++)}),te}function re(E){if(E._status===-1){var B=E._result;B=B(),B.then(function(P){(E._status===0||E._status===-1)&&(E._status=1,E._result=P)},function(P){(E._status===0||E._status===-1)&&(E._status=2,E._result=P)}),E._status===-1&&(E._status=0,E._result=B)}if(E._status===1)return E._result.default;throw E._result}var pe=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=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(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Te={map:F,forEach:function(E,B,P){F(E,function(){B.apply(this,arguments)},P)},count:function(E){var B=0;return F(E,function(){B++}),B},toArray:function(E){return F(E,function(B){return B})||[]},only:function(E){if(!ce(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return de.Activity=S,de.Children=Te,de.Component=q,de.Fragment=i,de.Profiler=c,de.PureComponent=k,de.StrictMode=u,de.Suspense=y,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,de.__COMPILER_RUNTIME={__proto__:null,c:function(E){return J.H.useMemoCache(E)}},de.cache=function(E){return function(){return E.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(E,B,P){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var te=M({},E.props),fe=E.key;if(B!=null)for(ve in B.key!==void 0&&(fe=""+B.key),B)!I.call(B,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&B.ref===void 0||(te[ve]=B[ve]);var ve=arguments.length-2;if(ve===1)te.children=P;else if(1<ve){for(var Re=Array(ve),ht=0;ht<ve;ht++)Re[ht]=arguments[ht+2];te.children=Re}return W(E.type,fe,te)},de.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},de.createElement=function(E,B,P){var te,fe={},ve=null;if(B!=null)for(te in B.key!==void 0&&(ve=""+B.key),B)I.call(B,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(fe[te]=B[te]);var Re=arguments.length-2;if(Re===1)fe.children=P;else if(1<Re){for(var ht=Array(Re),$e=0;$e<Re;$e++)ht[$e]=arguments[$e+2];fe.children=ht}if(E&&E.defaultProps)for(te in Re=E.defaultProps,Re)fe[te]===void 0&&(fe[te]=Re[te]);return W(E,ve,fe)},de.createRef=function(){return{current:null}},de.forwardRef=function(E){return{$$typeof:m,render:E}},de.isValidElement=ce,de.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:re}},de.memo=function(E,B){return{$$typeof:g,type:E,compare:B===void 0?null:B}},de.startTransition=function(E){var B=J.T,P={};J.T=P;try{var te=E(),fe=J.S;fe!==null&&fe(P,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(H,pe)}catch(ve){pe(ve)}finally{B!==null&&P.types!==null&&(B.types=P.types),J.T=B}},de.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},de.use=function(E){return J.H.use(E)},de.useActionState=function(E,B,P){return J.H.useActionState(E,B,P)},de.useCallback=function(E,B){return J.H.useCallback(E,B)},de.useContext=function(E){return J.H.useContext(E)},de.useDebugValue=function(){},de.useDeferredValue=function(E,B){return J.H.useDeferredValue(E,B)},de.useEffect=function(E,B){return J.H.useEffect(E,B)},de.useEffectEvent=function(E){return J.H.useEffectEvent(E)},de.useId=function(){return J.H.useId()},de.useImperativeHandle=function(E,B,P){return J.H.useImperativeHandle(E,B,P)},de.useInsertionEffect=function(E,B){return J.H.useInsertionEffect(E,B)},de.useLayoutEffect=function(E,B){return J.H.useLayoutEffect(E,B)},de.useMemo=function(E,B){return J.H.useMemo(E,B)},de.useOptimistic=function(E,B){return J.H.useOptimistic(E,B)},de.useReducer=function(E,B,P){return J.H.useReducer(E,B,P)},de.useRef=function(E){return J.H.useRef(E)},de.useState=function(E){return J.H.useState(E)},de.useSyncExternalStore=function(E,B,P){return J.H.useSyncExternalStore(E,B,P)},de.useTransition=function(){return J.H.useTransition()},de.version="19.2.0",de}var op;function Uf(){return op||(op=1,ef.exports=a1()),ef.exports}var b=Uf();const ha=sy(b);var tf={exports:{}},Si={},nf={exports:{}},lf={};/**
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 cp;function r1(){return cp||(cp=1,(function(l){function r(D,F){var re=D.length;D.push(F);e:for(;0<re;){var pe=re-1>>>1,Te=D[pe];if(0<c(Te,F))D[pe]=F,D[re]=Te,re=pe;else break e}}function i(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var F=D[0],re=D.pop();if(re!==F){D[0]=re;e:for(var pe=0,Te=D.length,E=Te>>>1;pe<E;){var B=2*(pe+1)-1,P=D[B],te=B+1,fe=D[te];if(0>c(P,re))te<Te&&0>c(fe,P)?(D[pe]=fe,D[te]=re,pe=te):(D[pe]=P,D[B]=re,pe=B);else if(te<Te&&0>c(fe,re))D[pe]=fe,D[te]=re,pe=te;else break e}}return F}function c(D,F){var re=D.sortIndex-F.sortIndex;return re!==0?re:D.id-F.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();l.unstable_now=function(){return d.now()-m}}var y=[],g=[],x=1,S=null,w=3,R=!1,Y=!1,M=!1,z=!1,q=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function V(D){for(var F=i(g);F!==null;){if(F.callback===null)u(g);else if(F.startTime<=D)u(g),F.sortIndex=F.expirationTime,r(y,F);else break;F=i(g)}}function G(D){if(M=!1,V(D),!Y)if(i(y)!==null)Y=!0,H||(H=!0,se());else{var F=i(g);F!==null&&ae(G,F.startTime-D)}}var H=!1,J=-1,I=5,W=-1;function $(){return z?!0:!(l.unstable_now()-W<I)}function ce(){if(z=!1,H){var D=l.unstable_now();W=D;var F=!0;try{e:{Y=!1,M&&(M=!1,Q(J),J=-1),R=!0;var re=w;try{t:{for(V(D),S=i(y);S!==null&&!(S.expirationTime>D&&$());){var pe=S.callback;if(typeof pe=="function"){S.callback=null,w=S.priorityLevel;var Te=pe(S.expirationTime<=D);if(D=l.unstable_now(),typeof Te=="function"){S.callback=Te,V(D),F=!0;break t}S===i(y)&&u(y),V(D)}else u(y);S=i(y)}if(S!==null)F=!0;else{var E=i(g);E!==null&&ae(G,E.startTime-D),F=!1}}break e}finally{S=null,w=re,R=!1}F=void 0}}finally{F?se():H=!1}}}var se;if(typeof k=="function")se=function(){k(ce)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Ve=He.port2;He.port1.onmessage=ce,se=function(){Ve.postMessage(null)}}else se=function(){q(ce,0)};function ae(D,F){J=q(function(){D(l.unstable_now())},F)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(D){switch(w){case 1:case 2:case 3:var F=3;break;default:F=w}var re=w;w=F;try{return D()}finally{w=re}},l.unstable_requestPaint=function(){z=!0},l.unstable_runWithPriority=function(D,F){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var re=w;w=D;try{return F()}finally{w=re}},l.unstable_scheduleCallback=function(D,F,re){var pe=l.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?pe+re:pe):re=pe,D){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=re+Te,D={id:x++,callback:F,priorityLevel:D,startTime:re,expirationTime:Te,sortIndex:-1},re>pe?(D.sortIndex=re,r(g,D),i(y)===null&&D===i(g)&&(M?(Q(J),J=-1):M=!0,ae(G,re-pe))):(D.sortIndex=Te,r(y,D),Y||R||(Y=!0,H||(H=!0,se()))),D},l.unstable_shouldYield=$,l.unstable_wrapCallback=function(D){var F=w;return function(){var re=w;w=F;try{return D.apply(this,arguments)}finally{w=re}}}})(lf)),lf}var fp;function i1(){return fp||(fp=1,nf.exports=r1()),nf.exports}var af={exports:{}},dt={};/**
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 dp;function u1(){if(dp)return dt;dp=1;var l=Uf();function r(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,g,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:y,containerInfo:g,implementation:x}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,dt.createPortal=function(y,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return f(y,g,null,x)},dt.flushSync=function(y){var g=d.T,x=u.p;try{if(d.T=null,u.p=2,y)return y()}finally{d.T=g,u.p=x,u.d.f()}},dt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(y,g))},dt.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},dt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var x=g.as,S=m(x,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,R=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?u.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:R}):x==="script"&&u.d.X(y,{crossOrigin:S,integrity:w,fetchPriority:R,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},dt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);u.d.M(y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&u.d.M(y)},dt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,S=m(x,g.crossOrigin);u.d.L(y,x,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},dt.preloadModule=function(y,g){if(typeof y=="string")if(g){var x=m(g.as,g.crossOrigin);u.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else u.d.m(y)},dt.requestFormReset=function(y){u.d.r(y)},dt.unstable_batchedUpdates=function(y,g){return y(g)},dt.useFormState=function(y,g,x){return d.H.useFormState(y,g,x)},dt.useFormStatus=function(){return d.H.useHostTransitionStatus()},dt.version="19.2.0",dt}var hp;function oy(){if(hp)return af.exports;hp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),af.exports=u1(),af.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 mp;function s1(){if(mp)return Si;mp=1;var l=i1(),r=Uf(),i=oy();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(u(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return y(s),e;if(o===a)return y(s),t;o=o.sibling}throw Error(u(188))}if(n.return!==a.return)n=s,a=o;else{for(var h=!1,v=s.child;v;){if(v===n){h=!0,n=s,a=o;break}if(v===a){h=!0,a=s,n=o;break}v=v.sibling}if(!h){for(v=o.child;v;){if(v===n){h=!0,n=o,a=s;break}if(v===a){h=!0,a=o,n=s;break}v=v.sibling}if(!h)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,w=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),k=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var He=Symbol.for("react.client.reference");function Ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===He?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case q:return"Profiler";case z:return"StrictMode";case G:return"Suspense";case H:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case k:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:Ve(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return Ve(e(t))}catch{}}return null}var ae=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},pe=[],Te=-1;function E(e){return{current:e}}function B(e){0>Te||(e.current=pe[Te],pe[Te]=null,Te--)}function P(e,t){Te++,pe[Te]=e.current,e.current=t}var te=E(null),fe=E(null),ve=E(null),Re=E(null);function ht(e,t){switch(P(ve,t),P(fe,e),P(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Og(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Og(t),e=Rg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(te),P(te,e)}function $e(){B(te),B(fe),B(ve)}function Ar(e){e.memoizedState!==null&&P(Re,e);var t=te.current,n=Rg(t,e.type);t!==n&&(P(fe,e),P(te,n))}function Xi(e){fe.current===e&&(B(te),B(fe)),Re.current===e&&(B(Re),pi._currentValue=re)}var _s,ad;function jl(e){if(_s===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_s=t&&t[1]||"",ad=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+_s+e+ad}var Us=!1;function Ls(e,t){if(!e||Us)return"";Us=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(j){var L=j}Reflect.construct(e,[],K)}else{try{K.call()}catch(j){L=j}e.call(K.prototype)}}else{try{throw Error()}catch(j){L=j}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(j){if(j&&L&&typeof j.stack=="string")return[j.stack,L.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),h=o[0],v=o[1];if(h&&v){var N=h.split(`
44
- `),U=v.split(`
45
- `);for(s=a=0;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(a===N.length||s===U.length)for(a=N.length-1,s=U.length-1;1<=a&&0<=s&&N[a]!==U[s];)s--;for(;1<=a&&0<=s;a--,s--)if(N[a]!==U[s]){if(a!==1||s!==1)do if(a--,s--,0>s||N[a]!==U[s]){var X=`
46
- `+N[a].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=a&&0<=s);break}}}finally{Us=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?jl(n):""}function z0(e,t){switch(e.tag){case 26:case 27:case 5:return jl(e.type);case 16:return jl("Lazy");case 13:return e.child!==t&&t!==null?jl("Suspense Fallback"):jl("Suspense");case 19:return jl("SuspenseList");case 0:case 15:return Ls(e.type,!1);case 11:return Ls(e.type.render,!1);case 1:return Ls(e.type,!0);case 31:return jl("Activity");default:return""}}function rd(e){try{var t="",n=null;do t+=z0(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var qs=Object.prototype.hasOwnProperty,js=l.unstable_scheduleCallback,Hs=l.unstable_cancelCallback,D0=l.unstable_shouldYield,_0=l.unstable_requestPaint,Mt=l.unstable_now,U0=l.unstable_getCurrentPriorityLevel,id=l.unstable_ImmediatePriority,ud=l.unstable_UserBlockingPriority,Zi=l.unstable_NormalPriority,L0=l.unstable_LowPriority,sd=l.unstable_IdlePriority,q0=l.log,j0=l.unstable_setDisableYieldValue,Or=null,zt=null;function Wn(e){if(typeof q0=="function"&&j0(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(Or,e)}catch{}}var Dt=Math.clz32?Math.clz32:k0,H0=Math.log,B0=Math.LN2;function k0(e){return e>>>=0,e===0?32:31-(H0(e)/B0|0)|0}var Ki=256,Ji=262144,$i=4194304;function Hl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 Fi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,o=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~o,a!==0?s=Hl(a):(h&=v,h!==0?s=Hl(h):n||(n=v&~e,n!==0&&(s=Hl(n))))):(v=a&~o,v!==0?s=Hl(v):h!==0?s=Hl(h):n||(n=a&~e,n!==0&&(s=Hl(n)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:s}function Rr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Q0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function od(){var e=$i;return $i<<=1,($i&62914560)===0&&($i=4194304),e}function Bs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Y0(e,t,n,a,s,o){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,N=e.expirationTimes,U=e.hiddenUpdates;for(n=h&~n;0<n;){var X=31-Dt(n),K=1<<X;v[X]=0,N[X]=-1;var L=U[X];if(L!==null)for(U[X]=null,X=0;X<L.length;X++){var j=L[X];j!==null&&(j.lane&=-536870913)}n&=~K}a!==0&&cd(e,a,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(h&~t))}function cd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function fd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Dt(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function dd(e,t){var n=t&-t;return n=(n&42)!==0?1:ks(n),(n&(e.suspendedLanes|t))!==0?0:n}function ks(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Qs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hd(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Pg(e.type))}function md(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Pn=Math.random().toString(36).slice(2),ut="__reactFiber$"+Pn,bt="__reactProps$"+Pn,ba="__reactContainer$"+Pn,Ys="__reactEvents$"+Pn,G0="__reactListeners$"+Pn,V0="__reactHandles$"+Pn,gd="__reactResources$"+Pn,zr="__reactMarker$"+Pn;function Gs(e){delete e[ut],delete e[bt],delete e[Ys],delete e[G0],delete e[V0]}function xa(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ba]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=qg(e);e!==null;){if(n=e[ut])return n;e=qg(e)}return t}e=n,n=e.parentNode}return null}function Sa(e){if(e=e[ut]||e[ba]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Ea(e){var t=e[gd];return t||(t=e[gd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[zr]=!0}var pd=new Set,yd={};function Bl(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(yd[e]=t,e=0;e<t.length;e++)pd.add(t[e])}var X0=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]*$"),vd={},bd={};function Z0(e){return qs.call(bd,e)?!0:qs.call(vd,e)?!1:X0.test(e)?bd[e]=!0:(vd[e]=!0,!1)}function Wi(e,t,n){if(Z0(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Pi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Sn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function K0(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(h){n=""+h,o.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vs(e){if(!e._valueTracker){var t=xd(e)?"checked":"value";e._valueTracker=K0(e,t,""+e[t])}}function Sd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=xd(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ii(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 J0=/[\n"\\]/g;function Xt(e){return e.replace(J0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xs(e,t,n,a,s,o,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Zs(e,h,Vt(t)):n!=null?Zs(e,h,Vt(n)):a!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Vt(v):e.removeAttribute("name")}function Ed(e,t,n,a,s,o,h,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Vs(e);return}n=n!=null?""+Vt(n):"",t=t!=null?""+Vt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Vs(e)}function Zs(e,t,n){t==="number"&&Ii(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Na(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Vt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function wd(e,t,n){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Vt(n):""}function Nd(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(ae(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Vt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Vs(e)}function Ta(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $0=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 Td(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||$0.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Cd(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Td(e,s,a)}else for(var o in t)t.hasOwnProperty(o)&&Td(e,o,t[o])}function Ks(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 F0=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"]]),W0=/^[\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 eu(e){return W0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var Js=null;function $s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,Aa=null;function Ad(e){var t=Sa(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Xt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[bt]||null;if(!s)throw Error(u(90));Xs(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Sd(a)}break e;case"textarea":wd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Na(e,!!n.multiple,t,!1)}}}var Fs=!1;function Od(e,t,n){if(Fs)return e(t,n);Fs=!0;try{var a=e(t);return a}finally{if(Fs=!1,(Ca!==null||Aa!==null)&&(Qu(),Ca&&(t=Ca,e=Aa,Aa=Ca=null,Ad(t),e)))for(t=0;t<e.length;t++)Ad(e[t])}}function _r(e,t){var n=e.stateNode;if(n===null)return null;var a=n[bt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ws=!1;if(wn)try{var Ur={};Object.defineProperty(Ur,"passive",{get:function(){Ws=!0}}),window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{Ws=!1}var In=null,Ps=null,tu=null;function Rd(){if(tu)return tu;var e,t=Ps,n=t.length,a,s="value"in In?In.value:In.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===s[o-a];a++);return tu=s.slice(e,1<a?1-a:void 0)}function nu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function lu(){return!0}function Md(){return!1}function xt(e){function t(n,a,s,o,h){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=o,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?lu:Md,this.isPropagationStopped=Md,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=lu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lu)},persist:function(){},isPersistent:lu}),t}var kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},au=xt(kl),Lr=S({},kl,{view:0,detail:0}),P0=xt(Lr),Is,eo,qr,ru=S({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:no,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!==qr&&(qr&&e.type==="mousemove"?(Is=e.screenX-qr.screenX,eo=e.screenY-qr.screenY):eo=Is=0,qr=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:eo}}),zd=xt(ru),I0=S({},ru,{dataTransfer:0}),ev=xt(I0),tv=S({},Lr,{relatedTarget:0}),to=xt(tv),nv=S({},kl,{animationName:0,elapsedTime:0,pseudoElement:0}),lv=xt(nv),av=S({},kl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rv=xt(av),iv=S({},kl,{data:0}),Dd=xt(iv),uv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sv={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"},ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ov[e])?!!t[e]:!1}function no(){return cv}var fv=S({},Lr,{key:function(e){if(e.key){var t=uv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:no,charCode:function(e){return e.type==="keypress"?nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dv=xt(fv),hv=S({},ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_d=xt(hv),mv=S({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:no}),gv=xt(mv),pv=S({},kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),yv=xt(pv),vv=S({},ru,{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}),bv=xt(vv),xv=S({},kl,{newState:0,oldState:0}),Sv=xt(xv),Ev=[9,13,27,32],lo=wn&&"CompositionEvent"in window,jr=null;wn&&"documentMode"in document&&(jr=document.documentMode);var wv=wn&&"TextEvent"in window&&!jr,Ud=wn&&(!lo||jr&&8<jr&&11>=jr),Ld=" ",qd=!1;function jd(e,t){switch(e){case"keyup":return Ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oa=!1;function Nv(e,t){switch(e){case"compositionend":return Hd(t);case"keypress":return t.which!==32?null:(qd=!0,Ld);case"textInput":return e=t.data,e===Ld&&qd?null:e;default:return null}}function Tv(e,t){if(Oa)return e==="compositionend"||!lo&&jd(e,t)?(e=Rd(),tu=Ps=In=null,Oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ud&&t.locale!=="ko"?null:t.data;default:return null}}var Cv={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 Bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cv[e.type]:t==="textarea"}function kd(e,t,n,a){Ca?Aa?Aa.push(a):Aa=[a]:Ca=a,t=Ju(t,"onChange"),0<t.length&&(n=new au("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Hr=null,Br=null;function Av(e){Eg(e,0)}function iu(e){var t=Dr(e);if(Sd(t))return e}function Qd(e,t){if(e==="change")return t}var Yd=!1;if(wn){var ao;if(wn){var ro="oninput"in document;if(!ro){var Gd=document.createElement("div");Gd.setAttribute("oninput","return;"),ro=typeof Gd.oninput=="function"}ao=ro}else ao=!1;Yd=ao&&(!document.documentMode||9<document.documentMode)}function Vd(){Hr&&(Hr.detachEvent("onpropertychange",Xd),Br=Hr=null)}function Xd(e){if(e.propertyName==="value"&&iu(Br)){var t=[];kd(t,Br,e,$s(e)),Od(Av,t)}}function Ov(e,t,n){e==="focusin"?(Vd(),Hr=t,Br=n,Hr.attachEvent("onpropertychange",Xd)):e==="focusout"&&Vd()}function Rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(Br)}function Mv(e,t){if(e==="click")return iu(t)}function zv(e,t){if(e==="input"||e==="change")return iu(t)}function Dv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Dv;function kr(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!qs.call(t,s)||!_t(e[s],t[s]))return!1}return!0}function Zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kd(e,t){var n=Zd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zd(n)}}function Jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $d(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ii(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ii(e.document)}return t}function io(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var _v=wn&&"documentMode"in document&&11>=document.documentMode,Ra=null,uo=null,Qr=null,so=!1;function Fd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;so||Ra==null||Ra!==Ii(a)||(a=Ra,"selectionStart"in a&&io(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Qr&&kr(Qr,a)||(Qr=a,a=Ju(uo,"onSelect"),0<a.length&&(t=new au("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ra)))}function Ql(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ma={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionrun:Ql("Transition","TransitionRun"),transitionstart:Ql("Transition","TransitionStart"),transitioncancel:Ql("Transition","TransitionCancel"),transitionend:Ql("Transition","TransitionEnd")},oo={},Wd={};wn&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function Yl(e){if(oo[e])return oo[e];if(!Ma[e])return e;var t=Ma[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wd)return oo[e]=t[n];return e}var Pd=Yl("animationend"),Id=Yl("animationiteration"),eh=Yl("animationstart"),Uv=Yl("transitionrun"),Lv=Yl("transitionstart"),qv=Yl("transitioncancel"),th=Yl("transitionend"),nh=new Map,co="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");co.push("scrollEnd");function rn(e,t){nh.set(e,t),Bl(t,[e])}var uu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Zt=[],za=0,fo=0;function su(){for(var e=za,t=fo=za=0;t<e;){var n=Zt[t];Zt[t++]=null;var a=Zt[t];Zt[t++]=null;var s=Zt[t];Zt[t++]=null;var o=Zt[t];if(Zt[t++]=null,a!==null&&s!==null){var h=a.pending;h===null?s.next=s:(s.next=h.next,h.next=s),a.pending=s}o!==0&&lh(n,s,o)}}function ou(e,t,n,a){Zt[za++]=e,Zt[za++]=t,Zt[za++]=n,Zt[za++]=a,fo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ho(e,t,n,a){return ou(e,t,n,a),cu(e)}function Gl(e,t){return ou(e,null,null,t),cu(e)}function lh(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-Dt(n),e=o.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),o):null}function cu(e){if(50<oi)throw oi=0,Ec=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Da={};function jv(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,a){return new jv(e,t,n,a)}function mo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var n=e.alternate;return n===null?(n=Ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ah(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fu(e,t,n,a,s,o){var h=0;if(a=e,typeof e=="function")mo(e)&&(h=1);else if(typeof e=="string")h=Yb(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Ut(31,n,t,s),e.elementType=W,e.lanes=o,e;case M:return Vl(n.children,s,o,t);case z:h=8,s|=24;break;case q:return e=Ut(12,n,t,s|2),e.elementType=q,e.lanes=o,e;case G:return e=Ut(13,n,t,s),e.elementType=G,e.lanes=o,e;case H:return e=Ut(19,n,t,s),e.elementType=H,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:h=10;break e;case Q:h=9;break e;case V:h=11;break e;case J:h=14;break e;case I:h=16,a=null;break e}h=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Ut(h,n,t,s),t.elementType=e,t.type=a,t.lanes=o,t}function Vl(e,t,n,a){return e=Ut(7,e,a,t),e.lanes=n,e}function go(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function rh(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function po(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ih=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var n=ih.get(e);return n!==void 0?n:(t={value:e,source:t,stack:rd(t)},ih.set(e,t),t)}return{value:e,source:t,stack:rd(t)}}var _a=[],Ua=0,du=null,Yr=0,Jt=[],$t=0,el=null,hn=1,mn="";function Tn(e,t){_a[Ua++]=Yr,_a[Ua++]=du,du=e,Yr=t}function uh(e,t,n){Jt[$t++]=hn,Jt[$t++]=mn,Jt[$t++]=el,el=e;var a=hn;e=mn;var s=32-Dt(a)-1;a&=~(1<<s),n+=1;var o=32-Dt(t)+s;if(30<o){var h=s-s%5;o=(a&(1<<h)-1).toString(32),a>>=h,s-=h,hn=1<<32-Dt(t)+s|n<<s|a,mn=o+e}else hn=1<<o|n<<s|a,mn=e}function yo(e){e.return!==null&&(Tn(e,1),uh(e,1,0))}function vo(e){for(;e===du;)du=_a[--Ua],_a[Ua]=null,Yr=_a[--Ua],_a[Ua]=null;for(;e===el;)el=Jt[--$t],Jt[$t]=null,mn=Jt[--$t],Jt[$t]=null,hn=Jt[--$t],Jt[$t]=null}function sh(e,t){Jt[$t++]=hn,Jt[$t++]=mn,Jt[$t++]=el,hn=t.id,mn=t.overflow,el=e}var st=null,Be=null,we=!1,tl=null,Ft=!1,bo=Error(u(519));function nl(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gr(Kt(t,e)),bo}function oh(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ut]=e,t[bt]=a,n){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(n=0;n<fi.length;n++)xe(fi[n],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Ed(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Nd(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Cg(t.textContent,n)?(a.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),a.onScroll!=null&&xe("scroll",t),a.onScrollEnd!=null&&xe("scrollend",t),a.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||nl(e,!0)}function ch(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:st=st.return}}function La(e){if(e!==st)return!1;if(!we)return ch(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||jc(e.type,e.memoizedProps)),n=!n),n&&Be&&nl(e),ch(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Be=Lg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Be=Lg(e)}else t===27?(t=Be,pl(e.type)?(e=Yc,Yc=null,Be=e):Be=t):Be=st?Pt(e.stateNode.nextSibling):null;return!0}function Xl(){Be=st=null,we=!1}function xo(){var e=tl;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),tl=null),e}function Gr(e){tl===null?tl=[e]:tl.push(e)}var So=E(null),Zl=null,Cn=null;function ll(e,t,n){P(So,t._currentValue),t._currentValue=n}function An(e){e._currentValue=So.current,B(So)}function Eo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function wo(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var h=s.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=s;for(var N=0;N<t.length;N++)if(v.context===t[N]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Eo(o.return,n,e),a||(h=null);break e}o=v.next}}else if(s.tag===18){if(h=s.return,h===null)throw Error(u(341));h.lanes|=n,o=h.alternate,o!==null&&(o.lanes|=n),Eo(h,n,e),h=null}else h=s.child;if(h!==null)h.return=s;else for(h=s;h!==null;){if(h===e){h=null;break}if(s=h.sibling,s!==null){s.return=h.return,h=s;break}h=h.return}s=h}}function qa(e,t,n,a){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var h=s.alternate;if(h===null)throw Error(u(387));if(h=h.memoizedProps,h!==null){var v=s.type;_t(s.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(s===Re.current){if(h=s.alternate,h===null)throw Error(u(387));h.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(pi):e=[pi])}s=s.return}e!==null&&wo(t,e,n,a),t.flags|=262144}function hu(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){Zl=e,Cn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return fh(Zl,e)}function mu(e,t){return Zl===null&&Kl(e),fh(e,t)}function fh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Cn===null){if(e===null)throw Error(u(308));Cn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Cn=Cn.next=t;return n}var Hv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Bv=l.unstable_scheduleCallback,kv=l.unstable_NormalPriority,Pe={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function No(){return{controller:new Hv,data:new Map,refCount:0}}function Vr(e){e.refCount--,e.refCount===0&&Bv(kv,function(){e.controller.abort()})}var Xr=null,To=0,ja=0,Ha=null;function Qv(e,t){if(Xr===null){var n=Xr=[];To=0,ja=Oc(),Ha={status:"pending",value:void 0,then:function(a){n.push(a)}}}return To++,t.then(dh,dh),t}function dh(){if(--To===0&&Xr!==null){Ha!==null&&(Ha.status="fulfilled");var e=Xr;Xr=null,ja=0,Ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var hh=D.S;D.S=function(e,t){Fm=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qv(e,t),hh!==null&&hh(e,t)};var Jl=E(null);function Co(){var e=Jl.current;return e!==null?e:qe.pooledCache}function gu(e,t){t===null?P(Jl,Jl.current):P(Jl,t.pool)}function mh(){var e=Co();return e===null?null:{parent:Pe._currentValue,pool:e}}var Ba=Error(u(460)),Ao=Error(u(474)),pu=Error(u(542)),yu={then:function(){}};function gh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ph(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vh(e),e;default:if(typeof t.status=="string")t.then(En,En);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vh(e),e}throw Fl=t,Ba}}function $l(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Fl=n,Ba):n}}var Fl=null;function yh(){if(Fl===null)throw Error(u(459));var e=Fl;return Fl=null,e}function vh(e){if(e===Ba||e===pu)throw Error(u(483))}var ka=null,Zr=0;function vu(e){var t=Zr;return Zr+=1,ka===null&&(ka=[]),ph(ka,e,t)}function Kr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bu(e,t){throw t.$$typeof===w?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function bh(e){function t(O,C){if(e){var _=O.deletions;_===null?(O.deletions=[C],O.flags|=16):_.push(C)}}function n(O,C){if(!e)return null;for(;C!==null;)t(O,C),C=C.sibling;return null}function a(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function s(O,C){return O=Nn(O,C),O.index=0,O.sibling=null,O}function o(O,C,_){return O.index=_,e?(_=O.alternate,_!==null?(_=_.index,_<C?(O.flags|=67108866,C):_):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function h(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,C,_,Z){return C===null||C.tag!==6?(C=go(_,O.mode,Z),C.return=O,C):(C=s(C,_),C.return=O,C)}function N(O,C,_,Z){var ue=_.type;return ue===M?X(O,C,_.props.children,Z,_.key):C!==null&&(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&$l(ue)===C.type)?(C=s(C,_.props),Kr(C,_),C.return=O,C):(C=fu(_.type,_.key,_.props,null,O.mode,Z),Kr(C,_),C.return=O,C)}function U(O,C,_,Z){return C===null||C.tag!==4||C.stateNode.containerInfo!==_.containerInfo||C.stateNode.implementation!==_.implementation?(C=po(_,O.mode,Z),C.return=O,C):(C=s(C,_.children||[]),C.return=O,C)}function X(O,C,_,Z,ue){return C===null||C.tag!==7?(C=Vl(_,O.mode,Z,ue),C.return=O,C):(C=s(C,_),C.return=O,C)}function K(O,C,_){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=go(""+C,O.mode,_),C.return=O,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case R:return _=fu(C.type,C.key,C.props,null,O.mode,_),Kr(_,C),_.return=O,_;case Y:return C=po(C,O.mode,_),C.return=O,C;case I:return C=$l(C),K(O,C,_)}if(ae(C)||se(C))return C=Vl(C,O.mode,_,null),C.return=O,C;if(typeof C.then=="function")return K(O,vu(C),_);if(C.$$typeof===k)return K(O,mu(O,C),_);bu(O,C)}return null}function L(O,C,_,Z){var ue=C!==null?C.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ue!==null?null:v(O,C,""+_,Z);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case R:return _.key===ue?N(O,C,_,Z):null;case Y:return _.key===ue?U(O,C,_,Z):null;case I:return _=$l(_),L(O,C,_,Z)}if(ae(_)||se(_))return ue!==null?null:X(O,C,_,Z,null);if(typeof _.then=="function")return L(O,C,vu(_),Z);if(_.$$typeof===k)return L(O,C,mu(O,_),Z);bu(O,_)}return null}function j(O,C,_,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return O=O.get(_)||null,v(C,O,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case R:return O=O.get(Z.key===null?_:Z.key)||null,N(C,O,Z,ue);case Y:return O=O.get(Z.key===null?_:Z.key)||null,U(C,O,Z,ue);case I:return Z=$l(Z),j(O,C,_,Z,ue)}if(ae(Z)||se(Z))return O=O.get(_)||null,X(C,O,Z,ue,null);if(typeof Z.then=="function")return j(O,C,_,vu(Z),ue);if(Z.$$typeof===k)return j(O,C,_,mu(C,Z),ue);bu(C,Z)}return null}function ne(O,C,_,Z){for(var ue=null,Ce=null,le=C,me=C=0,Ee=null;le!==null&&me<_.length;me++){le.index>me?(Ee=le,le=null):Ee=le.sibling;var Ae=L(O,le,_[me],Z);if(Ae===null){le===null&&(le=Ee);break}e&&le&&Ae.alternate===null&&t(O,le),C=o(Ae,C,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae,le=Ee}if(me===_.length)return n(O,le),we&&Tn(O,me),ue;if(le===null){for(;me<_.length;me++)le=K(O,_[me],Z),le!==null&&(C=o(le,C,me),Ce===null?ue=le:Ce.sibling=le,Ce=le);return we&&Tn(O,me),ue}for(le=a(le);me<_.length;me++)Ee=j(le,O,me,_[me],Z),Ee!==null&&(e&&Ee.alternate!==null&&le.delete(Ee.key===null?me:Ee.key),C=o(Ee,C,me),Ce===null?ue=Ee:Ce.sibling=Ee,Ce=Ee);return e&&le.forEach(function(Sl){return t(O,Sl)}),we&&Tn(O,me),ue}function oe(O,C,_,Z){if(_==null)throw Error(u(151));for(var ue=null,Ce=null,le=C,me=C=0,Ee=null,Ae=_.next();le!==null&&!Ae.done;me++,Ae=_.next()){le.index>me?(Ee=le,le=null):Ee=le.sibling;var Sl=L(O,le,Ae.value,Z);if(Sl===null){le===null&&(le=Ee);break}e&&le&&Sl.alternate===null&&t(O,le),C=o(Sl,C,me),Ce===null?ue=Sl:Ce.sibling=Sl,Ce=Sl,le=Ee}if(Ae.done)return n(O,le),we&&Tn(O,me),ue;if(le===null){for(;!Ae.done;me++,Ae=_.next())Ae=K(O,Ae.value,Z),Ae!==null&&(C=o(Ae,C,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return we&&Tn(O,me),ue}for(le=a(le);!Ae.done;me++,Ae=_.next())Ae=j(le,O,me,Ae.value,Z),Ae!==null&&(e&&Ae.alternate!==null&&le.delete(Ae.key===null?me:Ae.key),C=o(Ae,C,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return e&&le.forEach(function(Ib){return t(O,Ib)}),we&&Tn(O,me),ue}function Le(O,C,_,Z){if(typeof _=="object"&&_!==null&&_.type===M&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case R:e:{for(var ue=_.key;C!==null;){if(C.key===ue){if(ue=_.type,ue===M){if(C.tag===7){n(O,C.sibling),Z=s(C,_.props.children),Z.return=O,O=Z;break e}}else if(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&$l(ue)===C.type){n(O,C.sibling),Z=s(C,_.props),Kr(Z,_),Z.return=O,O=Z;break e}n(O,C);break}else t(O,C);C=C.sibling}_.type===M?(Z=Vl(_.props.children,O.mode,Z,_.key),Z.return=O,O=Z):(Z=fu(_.type,_.key,_.props,null,O.mode,Z),Kr(Z,_),Z.return=O,O=Z)}return h(O);case Y:e:{for(ue=_.key;C!==null;){if(C.key===ue)if(C.tag===4&&C.stateNode.containerInfo===_.containerInfo&&C.stateNode.implementation===_.implementation){n(O,C.sibling),Z=s(C,_.children||[]),Z.return=O,O=Z;break e}else{n(O,C);break}else t(O,C);C=C.sibling}Z=po(_,O.mode,Z),Z.return=O,O=Z}return h(O);case I:return _=$l(_),Le(O,C,_,Z)}if(ae(_))return ne(O,C,_,Z);if(se(_)){if(ue=se(_),typeof ue!="function")throw Error(u(150));return _=ue.call(_),oe(O,C,_,Z)}if(typeof _.then=="function")return Le(O,C,vu(_),Z);if(_.$$typeof===k)return Le(O,C,mu(O,_),Z);bu(O,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,C!==null&&C.tag===6?(n(O,C.sibling),Z=s(C,_),Z.return=O,O=Z):(n(O,C),Z=go(_,O.mode,Z),Z.return=O,O=Z),h(O)):n(O,C)}return function(O,C,_,Z){try{Zr=0;var ue=Le(O,C,_,Z);return ka=null,ue}catch(le){if(le===Ba||le===pu)throw le;var Ce=Ut(29,le,null,O.mode);return Ce.lanes=Z,Ce.return=O,Ce}finally{}}}var Wl=bh(!0),xh=bh(!1),al=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function rl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function il(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Oe&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=cu(e),lh(e,null,n),t}return ou(e,a,t,n),cu(e)}function Jr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,fd(e,n)}}function Mo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=h:o=o.next=h,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var zo=!1;function $r(){if(zo){var e=Ha;if(e!==null)throw e}}function Fr(e,t,n,a){zo=!1;var s=e.updateQueue;al=!1;var o=s.firstBaseUpdate,h=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var N=v,U=N.next;N.next=null,h===null?o=U:h.next=U,h=N;var X=e.alternate;X!==null&&(X=X.updateQueue,v=X.lastBaseUpdate,v!==h&&(v===null?X.firstBaseUpdate=U:v.next=U,X.lastBaseUpdate=N))}if(o!==null){var K=s.baseState;h=0,X=U=N=null,v=o;do{var L=v.lane&-536870913,j=L!==v.lane;if(j?(Se&L)===L:(a&L)===L){L!==0&&L===ja&&(zo=!0),X!==null&&(X=X.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ne=e,oe=v;L=t;var Le=n;switch(oe.tag){case 1:if(ne=oe.payload,typeof ne=="function"){K=ne.call(Le,K,L);break e}K=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=oe.payload,L=typeof ne=="function"?ne.call(Le,K,L):ne,L==null)break e;K=S({},K,L);break e;case 2:al=!0}}L=v.callback,L!==null&&(e.flags|=64,j&&(e.flags|=8192),j=s.callbacks,j===null?s.callbacks=[L]:j.push(L))}else j={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},X===null?(U=X=j,N=K):X=X.next=j,h|=L;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;j=v,v=j.next,j.next=null,s.lastBaseUpdate=j,s.shared.pending=null}}while(!0);X===null&&(N=K),s.baseState=N,s.firstBaseUpdate=U,s.lastBaseUpdate=X,o===null&&(s.shared.lanes=0),fl|=h,e.lanes=h,e.memoizedState=K}}function Sh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Eh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Sh(n[e],t)}var Qa=E(null),xu=E(0);function wh(e,t){e=qn,P(xu,e),P(Qa,t),qn=e|t.baseLanes}function Do(){P(xu,qn),P(Qa,Qa.current)}function _o(){qn=xu.current,B(Qa),B(xu)}var Lt=E(null),Wt=null;function ul(e){var t=e.alternate;P(Fe,Fe.current&1),P(Lt,e),Wt===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(Wt=e)}function Uo(e){P(Fe,Fe.current),P(Lt,e),Wt===null&&(Wt=e)}function Nh(e){e.tag===22?(P(Fe,Fe.current),P(Lt,e),Wt===null&&(Wt=e)):sl()}function sl(){P(Fe,Fe.current),P(Lt,Lt.current)}function qt(e){B(Lt),Wt===e&&(Wt=null),B(Fe)}var Fe=E(0);function Su(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||kc(n)||Qc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var On=0,he=null,_e=null,Ie=null,Eu=!1,Ya=!1,Pl=!1,wu=0,Wr=0,Ga=null,Gv=0;function Ze(){throw Error(u(321))}function Lo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function qo(e,t,n,a,s,o){return On=o,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?um:Wo,Pl=!1,o=n(a,s),Pl=!1,Ya&&(o=Ch(t,n,a,s)),Th(e),o}function Th(e){D.H=ei;var t=_e!==null&&_e.next!==null;if(On=0,Ie=_e=he=null,Eu=!1,Wr=0,Ga=null,t)throw Error(u(300));e===null||et||(e=e.dependencies,e!==null&&hu(e)&&(et=!0))}function Ch(e,t,n,a){he=e;var s=0;do{if(Ya&&(Ga=null),Wr=0,Ya=!1,25<=s)throw Error(u(301));if(s+=1,Ie=_e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=sm,o=t(n,a)}while(Ya);return o}function Vv(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Pr(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(he.flags|=1024),t}function jo(){var e=wu!==0;return wu=0,e}function Ho(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Bo(e){if(Eu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Eu=!1}On=0,Ie=_e=he=null,Ya=!1,Wr=wu=0,Ga=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?he.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function We(){if(_e===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ie===null?he.memoizedState:Ie.next;if(t!==null)Ie=t,_e=e;else{if(e===null)throw he.alternate===null?Error(u(467)):Error(u(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ie===null?he.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pr(e){var t=Wr;return Wr+=1,Ga===null&&(Ga=[]),e=ph(Ga,e,t),t=he,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?um:Wo),e}function Tu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Pr(e);if(e.$$typeof===k)return ot(e)}throw Error(u(438,String(e)))}function ko(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Nu(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=$;return t.index++,n}function Rn(e,t){return typeof t=="function"?t(e):t}function Cu(e){var t=We();return Qo(t,_e,e)}function Qo(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var s=e.baseQueue,o=a.pending;if(o!==null){if(s!==null){var h=s.next;s.next=o.next,o.next=h}t.baseQueue=s=o,a.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var v=h=null,N=null,U=t,X=!1;do{var K=U.lane&-536870913;if(K!==U.lane?(Se&K)===K:(On&K)===K){var L=U.revertLane;if(L===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),K===ja&&(X=!0);else if((On&L)===L){U=U.next,L===ja&&(X=!0);continue}else K={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},N===null?(v=N=K,h=o):N=N.next=K,he.lanes|=L,fl|=L;K=U.action,Pl&&n(o,K),o=U.hasEagerState?U.eagerState:n(o,K)}else L={lane:K,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},N===null?(v=N=L,h=o):N=N.next=L,he.lanes|=K,fl|=K;U=U.next}while(U!==null&&U!==t);if(N===null?h=o:N.next=v,!_t(o,e.memoizedState)&&(et=!0,X&&(n=Ha,n!==null)))throw n;e.memoizedState=o,e.baseState=h,e.baseQueue=N,a.lastRenderedState=o}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Yo(e){var t=We(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var h=s=s.next;do o=e(o,h.action),h=h.next;while(h!==s);_t(o,t.memoizedState)||(et=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Ah(e,t,n){var a=he,s=We(),o=we;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var h=!_t((_e||s).memoizedState,n);if(h&&(s.memoizedState=n,et=!0),s=s.queue,Xo(Mh.bind(null,a,s,e),[e]),s.getSnapshot!==t||h||Ie!==null&&Ie.memoizedState.tag&1){if(a.flags|=2048,Va(9,{destroy:void 0},Rh.bind(null,a,s,n,t),null),qe===null)throw Error(u(349));o||(On&127)!==0||Oh(a,t,n)}return n}function Oh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=Nu(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Rh(e,t,n,a){t.value=n,t.getSnapshot=a,zh(t)&&Dh(e)}function Mh(e,t,n){return n(function(){zh(t)&&Dh(e)})}function zh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function Dh(e){var t=Gl(e,2);t!==null&&Tt(t,e,2)}function Go(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),Pl){Wn(!0);try{n()}finally{Wn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:e},t}function _h(e,t,n,a){return e.baseState=n,Qo(e,_e,typeof a=="function"?a:Rn)}function Xv(e,t,n,a,s){if(Ru(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){o.listeners.push(h)}};D.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Uh(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Uh(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var o=D.T,h={};D.T=h;try{var v=n(s,a),N=D.S;N!==null&&N(h,v),Lh(e,t,v)}catch(U){Vo(e,t,U)}finally{o!==null&&h.types!==null&&(o.types=h.types),D.T=o}}else try{o=n(s,a),Lh(e,t,o)}catch(U){Vo(e,t,U)}}function Lh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){qh(e,t,a)},function(a){return Vo(e,t,a)}):qh(e,t,n)}function qh(e,t,n){t.status="fulfilled",t.value=n,jh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Uh(e,n)))}function Vo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,jh(t),t=t.next;while(t!==a)}e.action=null}function jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Hh(e,t){return t}function Bh(e,t){if(we){var n=qe.formState;if(n!==null){e:{var a=he;if(we){if(Be){t:{for(var s=Be,o=Ft;s.nodeType!==8;){if(!o){s=null;break t}if(s=Pt(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Be=Pt(s.nextSibling),a=s.data==="F!";break e}}nl(a)}a=!1}a&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hh,lastRenderedState:t},n.queue=a,n=am.bind(null,he,a),a.dispatch=n,a=Go(!1),o=Fo.bind(null,he,!1,a.queue),a=mt(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=Xv.bind(null,he,s,o,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function kh(e){var t=We();return Qh(t,_e,e)}function Qh(e,t,n){if(t=Qo(e,t,Hh)[0],e=Cu(Rn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Pr(t)}catch(h){throw h===Ba?pu:h}else a=t;t=We();var s=t.queue,o=s.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Va(9,{destroy:void 0},Zv.bind(null,s,n),null)),[a,o,e]}function Zv(e,t){e.action=t}function Yh(e){var t=We(),n=_e;if(n!==null)return Qh(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Va(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=Nu(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Gh(){return We().memoizedState}function Au(e,t,n,a){var s=mt();he.flags|=e,s.memoizedState=Va(1|t,{destroy:void 0},n,a===void 0?null:a)}function Ou(e,t,n,a){var s=We();a=a===void 0?null:a;var o=s.memoizedState.inst;_e!==null&&a!==null&&Lo(a,_e.memoizedState.deps)?s.memoizedState=Va(t,o,n,a):(he.flags|=e,s.memoizedState=Va(1|t,o,n,a))}function Vh(e,t){Au(8390656,8,e,t)}function Xo(e,t){Ou(2048,8,e,t)}function Kv(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=Nu(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Xh(e){var t=We().memoizedState;return Kv({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Zh(e,t){return Ou(4,2,e,t)}function Kh(e,t){return Ou(4,4,e,t)}function Jh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $h(e,t,n){n=n!=null?n.concat([e]):null,Ou(4,4,Jh.bind(null,t,e),n)}function Zo(){}function Fh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Lo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Wh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Lo(t,a[1]))return a[0];if(a=e(),Pl){Wn(!0);try{e()}finally{Wn(!1)}}return n.memoizedState=[a,t],a}function Ko(e,t,n){return n===void 0||(On&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Pm(),he.lanes|=e,fl|=e,n)}function Ph(e,t,n,a){return _t(n,t)?n:Qa.current!==null?(e=Ko(e,n,a),_t(e,t)||(et=!0),e):(On&42)===0||(On&1073741824)!==0&&(Se&261930)===0?(et=!0,e.memoizedState=n):(e=Pm(),he.lanes|=e,fl|=e,t)}function Ih(e,t,n,a,s){var o=F.p;F.p=o!==0&&8>o?o:8;var h=D.T,v={};D.T=v,Fo(e,!1,t,n);try{var N=s(),U=D.S;if(U!==null&&U(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var X=Yv(N,a);Ir(e,t,X,Bt(e))}else Ir(e,t,a,Bt(e))}catch(K){Ir(e,t,{then:function(){},status:"rejected",reason:K},Bt())}finally{F.p=o,h!==null&&v.types!==null&&(h.types=v.types),D.T=h}}function Jv(){}function Jo(e,t,n,a){if(e.tag!==5)throw Error(u(476));var s=em(e).queue;Ih(e,s,t,re,n===null?Jv:function(){return tm(e),n(a)})}function em(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tm(e){var t=em(e);t.next===null&&(t=e.alternate.memoizedState),Ir(e,t.next.queue,{},Bt())}function $o(){return ot(pi)}function nm(){return We().memoizedState}function lm(){return We().memoizedState}function $v(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Bt();e=rl(n);var a=il(t,e,n);a!==null&&(Tt(a,t,n),Jr(a,t,n)),t={cache:No()},e.payload=t;return}t=t.return}}function Fv(e,t,n){var a=Bt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ru(e)?rm(t,n):(n=ho(e,t,n,a),n!==null&&(Tt(n,e,a),im(n,t,a)))}function am(e,t,n){var a=Bt();Ir(e,t,n,a)}function Ir(e,t,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ru(e))rm(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var h=t.lastRenderedState,v=o(h,n);if(s.hasEagerState=!0,s.eagerState=v,_t(v,h))return ou(e,t,s,0),qe===null&&su(),!1}catch{}finally{}if(n=ho(e,t,s,a),n!==null)return Tt(n,e,a),im(n,t,a),!0}return!1}function Fo(e,t,n,a){if(a={lane:2,revertLane:Oc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ru(e)){if(t)throw Error(u(479))}else t=ho(e,n,a,2),t!==null&&Tt(t,e,2)}function Ru(e){var t=e.alternate;return e===he||t!==null&&t===he}function rm(e,t){Ya=Eu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function im(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,fd(e,n)}}var ei={readContext:ot,use:Tu,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};ei.useEffectEvent=Ze;var um={readContext:ot,use:Tu,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:Vh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Au(4194308,4,Jh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Au(4194308,4,e,t)},useInsertionEffect:function(e,t){Au(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var a=e();if(Pl){Wn(!0);try{e()}finally{Wn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=mt();if(n!==void 0){var s=n(t);if(Pl){Wn(!0);try{n(t)}finally{Wn(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=Fv.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Go(e);var t=e.queue,n=am.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Zo,useDeferredValue:function(e,t){var n=mt();return Ko(n,e,t)},useTransition:function(){var e=Go(!1);return e=Ih.bind(null,he,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=he,s=mt();if(we){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),qe===null)throw Error(u(349));(Se&127)!==0||Oh(a,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Vh(Mh.bind(null,a,o,e),[e]),a.flags|=2048,Va(9,{destroy:void 0},Rh.bind(null,a,o,n,t),null),n},useId:function(){var e=mt(),t=qe.identifierPrefix;if(we){var n=mn,a=hn;n=(a&~(1<<32-Dt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=wu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Gv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$o,useFormState:Bh,useActionState:Bh,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fo.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:ko,useCacheRefresh:function(){return mt().memoizedState=$v.bind(null,he)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Wo={readContext:ot,use:Tu,useCallback:Fh,useContext:ot,useEffect:Xo,useImperativeHandle:$h,useInsertionEffect:Zh,useLayoutEffect:Kh,useMemo:Wh,useReducer:Cu,useRef:Gh,useState:function(){return Cu(Rn)},useDebugValue:Zo,useDeferredValue:function(e,t){var n=We();return Ph(n,_e.memoizedState,e,t)},useTransition:function(){var e=Cu(Rn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Pr(e),t]},useSyncExternalStore:Ah,useId:nm,useHostTransitionStatus:$o,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var n=We();return _h(n,_e,e,t)},useMemoCache:ko,useCacheRefresh:lm};Wo.useEffectEvent=Xh;var sm={readContext:ot,use:Tu,useCallback:Fh,useContext:ot,useEffect:Xo,useImperativeHandle:$h,useInsertionEffect:Zh,useLayoutEffect:Kh,useMemo:Wh,useReducer:Yo,useRef:Gh,useState:function(){return Yo(Rn)},useDebugValue:Zo,useDeferredValue:function(e,t){var n=We();return _e===null?Ko(n,e,t):Ph(n,_e.memoizedState,e,t)},useTransition:function(){var e=Yo(Rn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Pr(e),t]},useSyncExternalStore:Ah,useId:nm,useHostTransitionStatus:$o,useFormState:Yh,useActionState:Yh,useOptimistic:function(e,t){var n=We();return _e!==null?_h(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ko,useCacheRefresh:lm};sm.useEffectEvent=Xh;function Po(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Io={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Bt(),s=rl(a);s.payload=t,n!=null&&(s.callback=n),t=il(e,s,a),t!==null&&(Tt(t,e,a),Jr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Bt(),s=rl(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=il(e,s,a),t!==null&&(Tt(t,e,a),Jr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Bt(),a=rl(n);a.tag=2,t!=null&&(a.callback=t),t=il(e,a,n),t!==null&&(Tt(t,e,n),Jr(t,e,n))}};function om(e,t,n,a,s,o,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,h):t.prototype&&t.prototype.isPureReactComponent?!kr(n,a)||!kr(s,o):!0}function cm(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Io.enqueueReplaceState(t,t.state,null)}function Il(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function fm(e){uu(e)}function dm(e){console.error(e)}function hm(e){uu(e)}function Mu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function mm(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function ec(e,t,n){return n=rl(n),n.tag=3,n.payload={element:null},n.callback=function(){Mu(e,t)},n}function gm(e){return e=rl(e),e.tag=3,e}function pm(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=a.value;e.payload=function(){return s(o)},e.callback=function(){mm(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){mm(t,n,a),typeof s!="function"&&(dl===null?dl=new Set([this]):dl.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Wv(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&qa(t,n,s,!0),n=Lt.current,n!==null){switch(n.tag){case 31:case 13:return Wt===null?Yu():n.alternate===null&&Ke===0&&(Ke=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===yu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Tc(e,a,s)),!1;case 22:return n.flags|=65536,a===yu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Tc(e,a,s)),!1}throw Error(u(435,n.tag))}return Tc(e,a,s),Yu(),!1}if(we)return t=Lt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==bo&&(e=Error(u(422),{cause:a}),Gr(Kt(e,n)))):(a!==bo&&(t=Error(u(423),{cause:a}),Gr(Kt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Kt(a,n),s=ec(e.stateNode,a,s),Mo(e,s),Ke!==4&&(Ke=2)),!1;var o=Error(u(520),{cause:a});if(o=Kt(o,n),si===null?si=[o]:si.push(o),Ke!==4&&(Ke=2),t===null)return!0;a=Kt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=ec(n.stateNode,a,e),Mo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(dl===null||!dl.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=gm(s),pm(s,e,n,a),Mo(n,s),!1}n=n.return}while(n!==null);return!1}var tc=Error(u(461)),et=!1;function ct(e,t,n,a){t.child=e===null?xh(t,null,n,a):Wl(t,e.child,n,a)}function ym(e,t,n,a,s){n=n.render;var o=t.ref;if("ref"in a){var h={};for(var v in a)v!=="ref"&&(h[v]=a[v])}else h=a;return Kl(t),a=qo(e,t,n,h,o,s),v=jo(),e!==null&&!et?(Ho(e,t,s),Mn(e,t,s)):(we&&v&&yo(t),t.flags|=1,ct(e,t,a,s),t.child)}function vm(e,t,n,a,s){if(e===null){var o=n.type;return typeof o=="function"&&!mo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,bm(e,t,o,a,s)):(e=fu(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!oc(e,s)){var h=o.memoizedProps;if(n=n.compare,n=n!==null?n:kr,n(h,a)&&e.ref===t.ref)return Mn(e,t,s)}return t.flags|=1,e=Nn(o,a),e.ref=t.ref,e.return=t,t.child=e}function bm(e,t,n,a,s){if(e!==null){var o=e.memoizedProps;if(kr(o,a)&&e.ref===t.ref)if(et=!1,t.pendingProps=a=o,oc(e,s))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Mn(e,t,s)}return nc(e,t,n,a,s)}function xm(e,t,n,a){var s=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~o}else a=0,t.child=null;return Sm(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gu(t,o!==null?o.cachePool:null),o!==null?wh(t,o):Do(),Nh(t);else return a=t.lanes=536870912,Sm(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(gu(t,o.cachePool),wh(t,o),sl(),t.memoizedState=null):(e!==null&&gu(t,null),Do(),sl());return ct(e,t,s,n),t.child}function ti(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Sm(e,t,n,a,s){var o=Co();return o=o===null?null:{parent:Pe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&gu(t,null),Do(),Nh(t),e!==null&&qa(e,t,a,!0),t.childLanes=s,null}function zu(e,t){return t=_u({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Em(e,t,n){return Wl(t,e.child,null,n),e=zu(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function Pv(e,t,n){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(a.mode==="hidden")return e=zu(t,a),t.lanes=536870912,ti(null,e);if(Uo(t),(e=Be)?(e=Ug(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:el!==null?{id:hn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},n=rh(e),n.return=t,t.child=n,st=t,Be=null)):e=null,e===null)throw nl(t);return t.lanes=536870912,null}return zu(t,a)}var o=e.memoizedState;if(o!==null){var h=o.dehydrated;if(Uo(t),s)if(t.flags&256)t.flags&=-257,t=Em(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(et||qa(e,t,n,!1),s=(n&e.childLanes)!==0,et||s){if(a=qe,a!==null&&(h=dd(a,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,Gl(e,h),Tt(a,e,h),tc;Yu(),t=Em(e,t,n)}else e=o.treeContext,Be=Pt(h.nextSibling),st=t,we=!0,tl=null,Ft=!1,e!==null&&sh(t,e),t=zu(t,a),t.flags|=4096;return t}return e=Nn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Du(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function nc(e,t,n,a,s){return Kl(t),n=qo(e,t,n,a,void 0,s),a=jo(),e!==null&&!et?(Ho(e,t,s),Mn(e,t,s)):(we&&a&&yo(t),t.flags|=1,ct(e,t,n,s),t.child)}function wm(e,t,n,a,s,o){return Kl(t),t.updateQueue=null,n=Ch(t,a,n,s),Th(e),a=jo(),e!==null&&!et?(Ho(e,t,o),Mn(e,t,o)):(we&&a&&yo(t),t.flags|=1,ct(e,t,n,o),t.child)}function Nm(e,t,n,a,s){if(Kl(t),t.stateNode===null){var o=Da,h=n.contextType;typeof h=="object"&&h!==null&&(o=ot(h)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Io,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Oo(t),h=n.contextType,o.context=typeof h=="object"&&h!==null?ot(h):Da,o.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Po(t,n,h,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(h=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&Io.enqueueReplaceState(o,o.state,null),Fr(t,a,o,s),$r(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,N=Il(n,v);o.props=N;var U=o.context,X=n.contextType;h=Da,typeof X=="object"&&X!==null&&(h=ot(X));var K=n.getDerivedStateFromProps;X=typeof K=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,X||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||U!==h)&&cm(t,o,a,h),al=!1;var L=t.memoizedState;o.state=L,Fr(t,a,o,s),$r(),U=t.memoizedState,v||L!==U||al?(typeof K=="function"&&(Po(t,n,K,a),U=t.memoizedState),(N=al||om(t,n,N,a,L,U,h))?(X||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=U),o.props=a,o.state=U,o.context=h,a=N):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Ro(e,t),h=t.memoizedProps,X=Il(n,h),o.props=X,K=t.pendingProps,L=o.context,U=n.contextType,N=Da,typeof U=="object"&&U!==null&&(N=ot(U)),v=n.getDerivedStateFromProps,(U=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==K||L!==N)&&cm(t,o,a,N),al=!1,L=t.memoizedState,o.state=L,Fr(t,a,o,s),$r();var j=t.memoizedState;h!==K||L!==j||al||e!==null&&e.dependencies!==null&&hu(e.dependencies)?(typeof v=="function"&&(Po(t,n,v,a),j=t.memoizedState),(X=al||om(t,n,X,a,L,j,N)||e!==null&&e.dependencies!==null&&hu(e.dependencies))?(U||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,j,N),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,j,N)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),o.props=a,o.state=j,o.context=N,a=X):(typeof o.componentDidUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Du(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=Wl(t,e.child,null,s),t.child=Wl(t,null,n,s)):ct(e,t,n,s),t.memoizedState=o.state,e=t.child):e=Mn(e,t,s),e}function Tm(e,t,n,a){return Xl(),t.flags|=256,ct(e,t,n,a),t.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ac(e){return{baseLanes:e,cachePool:mh()}}function rc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ht),e}function Cm(e,t,n){var a=t.pendingProps,s=!1,o=(t.flags&128)!==0,h;if((h=o)||(h=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),h&&(s=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(s?ul(t):sl(),(e=Be)?(e=Ug(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:el!==null?{id:hn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},n=rh(e),n.return=t,t.child=n,st=t,Be=null)):e=null,e===null)throw nl(t);return Qc(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,s?(sl(),s=t.mode,v=_u({mode:"hidden",children:v},s),a=Vl(a,s,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=ac(n),a.childLanes=rc(e,h,n),t.memoizedState=lc,ti(null,a)):(ul(t),ic(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(o)t.flags&256?(ul(t),t.flags&=-257,t=uc(e,t,n)):t.memoizedState!==null?(sl(),t.child=e.child,t.flags|=128,t=null):(sl(),v=a.fallback,s=t.mode,a=_u({mode:"visible",children:a.children},s),v=Vl(v,s,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,Wl(t,e.child,null,n),a=t.child,a.memoizedState=ac(n),a.childLanes=rc(e,h,n),t.memoizedState=lc,t=ti(null,a));else if(ul(t),Qc(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var U=h.dgst;h=U,a=Error(u(419)),a.stack="",a.digest=h,Gr({value:a,source:null,stack:null}),t=uc(e,t,n)}else if(et||qa(e,t,n,!1),h=(n&e.childLanes)!==0,et||h){if(h=qe,h!==null&&(a=dd(h,n),a!==0&&a!==N.retryLane))throw N.retryLane=a,Gl(e,a),Tt(h,e,a),tc;kc(v)||Yu(),t=uc(e,t,n)}else kc(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Be=Pt(v.nextSibling),st=t,we=!0,tl=null,Ft=!1,e!==null&&sh(t,e),t=ic(t,a.children),t.flags|=4096);return t}return s?(sl(),v=a.fallback,s=t.mode,N=e.child,U=N.sibling,a=Nn(N,{mode:"hidden",children:a.children}),a.subtreeFlags=N.subtreeFlags&65011712,U!==null?v=Nn(U,v):(v=Vl(v,s,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,ti(null,a),a=t.child,v=e.child.memoizedState,v===null?v=ac(n):(s=v.cachePool,s!==null?(N=Pe._currentValue,s=s.parent!==N?{parent:N,pool:N}:s):s=mh(),v={baseLanes:v.baseLanes|n,cachePool:s}),a.memoizedState=v,a.childLanes=rc(e,h,n),t.memoizedState=lc,ti(e.child,a)):(ul(t),n=e.child,e=n.sibling,n=Nn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function ic(e,t){return t=_u({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _u(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function uc(e,t,n){return Wl(t,e.child,null,n),e=ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Am(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Eo(e.return,t,n)}function sc(e,t,n,a,s,o){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:o}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=s,h.treeForkCount=o)}function Om(e,t,n){var a=t.pendingProps,s=a.revealOrder,o=a.tail;a=a.children;var h=Fe.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,P(Fe,h),ct(e,t,a,n),a=we?Yr:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Am(e,n,t);else if(e.tag===19)Am(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Su(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),sc(t,!1,s,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Su(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}sc(t,!0,n,null,o,a);break;case"together":sc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hu(e)))}function Iv(e,t,n){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),ll(t,Pe,e.memoizedState.cache),Xl();break;case 27:case 5:Ar(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:ll(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Uo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ul(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Cm(e,t,n):(ul(t),e=Mn(e,t,n),e!==null?e.sibling:null);ul(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(qa(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Om(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),P(Fe,Fe.current),a)break;return null;case 22:return t.lanes=0,xm(e,t,n,t.pendingProps);case 24:ll(t,Pe,e.memoizedState.cache)}return Mn(e,t,n)}function Rm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!oc(e,n)&&(t.flags&128)===0)return et=!1,Iv(e,t,n);et=(e.flags&131072)!==0}else et=!1,we&&(t.flags&1048576)!==0&&uh(t,Yr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$l(t.elementType),t.type=e,typeof e=="function")mo(e)?(a=Il(e,a),t.tag=1,t=Nm(null,t,e,a,n)):(t.tag=0,t=nc(null,t,e,a,n));else{if(e!=null){var s=e.$$typeof;if(s===V){t.tag=11,t=ym(null,t,e,a,n);break e}else if(s===J){t.tag=14,t=vm(null,t,e,a,n);break e}}throw t=Ve(e)||e,Error(u(306,t,""))}}return t;case 0:return nc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=Il(a,t.pendingProps),Nm(e,t,a,s,n);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var o=t.memoizedState;s=o.element,Ro(e,t),Fr(t,a,null,n);var h=t.memoizedState;if(a=h.cache,ll(t,Pe,a),a!==o.cache&&wo(t,[Pe],n,!0),$r(),a=h.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Tm(e,t,a,n);break e}else if(a!==s){s=Kt(Error(u(424)),t),Gr(s),t=Tm(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Be=Pt(e.firstChild),st=t,we=!0,tl=null,Ft=!0,n=xh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Xl(),a===s){t=Mn(e,t,n);break e}ct(e,t,a,n)}t=t.child}return t;case 26:return Du(e,t),e===null?(n=kg(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,a=$u(ve.current).createElement(n),a[ut]=t,a[bt]=e,ft(a,n,e),at(a),t.stateNode=a):t.memoizedState=kg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ar(t),e===null&&we&&(a=t.stateNode=jg(t.type,t.pendingProps,ve.current),st=t,Ft=!0,s=Be,pl(t.type)?(Yc=s,Be=Pt(a.firstChild)):Be=s),ct(e,t,t.pendingProps.children,n),Du(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((s=a=Be)&&(a=Rb(a,t.type,t.pendingProps,Ft),a!==null?(t.stateNode=a,st=t,Be=Pt(a.firstChild),Ft=!1,s=!0):s=!1),s||nl(t)),Ar(t),s=t.type,o=t.pendingProps,h=e!==null?e.memoizedProps:null,a=o.children,jc(s,o)?a=null:h!==null&&jc(s,h)&&(t.flags|=32),t.memoizedState!==null&&(s=qo(e,t,Vv,null,null,n),pi._currentValue=s),Du(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&we&&((e=n=Be)&&(n=Mb(n,t.pendingProps,Ft),n!==null?(t.stateNode=n,st=t,Be=null,e=!0):e=!1),e||nl(t)),null;case 13:return Cm(e,t,n);case 4:return ht(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Wl(t,null,a,n):ct(e,t,a,n),t.child;case 11:return ym(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ll(t,t.type,a.value),ct(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Kl(t),s=ot(s),a=a(s),t.flags|=1,ct(e,t,a,n),t.child;case 14:return vm(e,t,t.type,t.pendingProps,n);case 15:return bm(e,t,t.type,t.pendingProps,n);case 19:return Om(e,t,n);case 31:return Pv(e,t,n);case 22:return xm(e,t,n,t.pendingProps);case 24:return Kl(t),a=ot(Pe),e===null?(s=Co(),s===null&&(s=qe,o=No(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),t.memoizedState={parent:a,cache:s},Oo(t),ll(t,Pe,s)):((e.lanes&n)!==0&&(Ro(e,t),Fr(t,null,null,n),$r()),s=e.memoizedState,o=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),ll(t,Pe,a)):(a=o.cache,ll(t,Pe,a),a!==s.cache&&wo(t,[Pe],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function zn(e){e.flags|=4}function cc(e,t,n,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(ng())e.flags|=8192;else throw Fl=yu,Ao}else e.flags&=-16777217}function Mm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Xg(t))if(ng())e.flags|=8192;else throw Fl=yu,Ao}function Uu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?od():536870912,e.lanes|=t,Ja|=t)}function ni(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function eb(e,t,n){var a=t.pendingProps;switch(vo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),An(Pe),$e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(La(t)?zn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xo())),ke(t),null;case 26:var s=t.type,o=t.memoizedState;return e===null?(zn(t),o!==null?(ke(t),Mm(t,o)):(ke(t),cc(t,s,null,a,n))):o?o!==e.memoizedState?(zn(t),ke(t),Mm(t,o)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&zn(t),ke(t),cc(t,s,e,a,n)),null;case 27:if(Xi(t),n=ve.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&zn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return ke(t),null}e=te.current,La(t)?oh(t):(e=jg(s,a,n),t.stateNode=e,zn(t))}return ke(t),null;case 5:if(Xi(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&zn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return ke(t),null}if(o=te.current,La(t))oh(t);else{var h=$u(ve.current);switch(o){case 1:o=h.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=h.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=h.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?h.createElement(s,{is:a.is}):h.createElement(s)}}o[ut]=t,o[bt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=o;e:switch(ft(o,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&zn(t)}}return ke(t),cc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&zn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=ve.current,La(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=st,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Cg(e.nodeValue,n)),e||nl(t,!0)}else e=$u(e).createTextNode(a),e[ut]=t,t.stateNode=e}return ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=La(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ut]=t}else Xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else n=xo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ke(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=La(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ut]=t}else Xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),s=!1}else s=xo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==s&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Uu(t,t.updateQueue),ke(t),null);case 4:return $e(),e===null&&Dc(t.stateNode.containerInfo),ke(t),null;case 10:return An(t.type),ke(t),null;case 19:if(B(Fe),a=t.memoizedState,a===null)return ke(t),null;if(s=(t.flags&128)!==0,o=a.rendering,o===null)if(s)ni(a,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Su(e),o!==null){for(t.flags|=128,ni(a,!1),e=o.updateQueue,t.updateQueue=e,Uu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ah(n,e),n=n.sibling;return P(Fe,Fe.current&1|2),we&&Tn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Mt()>Bu&&(t.flags|=128,s=!0,ni(a,!1),t.lanes=4194304)}else{if(!s)if(e=Su(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Uu(t,e),ni(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!we)return ke(t),null}else 2*Mt()-a.renderingStartTime>Bu&&n!==536870912&&(t.flags|=128,s=!0,ni(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Mt(),e.sibling=null,n=Fe.current,P(Fe,s?n&1|2:n&1),we&&Tn(t,a.treeForkCount),e):(ke(t),null);case 22:case 23:return qt(t),_o(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),n=t.updateQueue,n!==null&&Uu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&B(Jl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),An(Pe),ke(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function tb(e,t){switch(vo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return An(Pe),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Xi(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));Xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Fe),null;case 4:return $e(),null;case 10:return An(t.type),null;case 22:case 23:return qt(t),_o(),e!==null&&B(Jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return An(Pe),null;case 25:return null;default:return null}}function zm(e,t){switch(vo(t),t.tag){case 3:An(Pe),$e();break;case 26:case 27:case 5:Xi(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:B(Fe);break;case 10:An(t.type);break;case 22:case 23:qt(t),_o(),e!==null&&B(Jl);break;case 24:An(Pe)}}function li(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var o=n.create,h=n.inst;a=o(),h.destroy=a}n=n.next}while(n!==s)}}catch(v){De(t,t.return,v)}}function ol(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){var h=a.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,s=t;var N=n,U=v;try{U()}catch(X){De(s,N,X)}}}a=a.next}while(a!==o)}}catch(X){De(t,t.return,X)}}function Dm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Eh(t,n)}catch(a){De(e,e.return,a)}}}function _m(e,t,n){n.props=Il(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){De(e,t,a)}}function ai(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){De(e,t,s)}}function gn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){De(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){De(e,t,s)}else n.current=null}function Um(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){De(e,e.return,s)}}function fc(e,t,n){try{var a=e.stateNode;wb(a,e.type,n,t),a[bt]=t}catch(s){De(e,e.return,s)}}function Lm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pl(e.type)||e.tag===4}function dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&pl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=En));else if(a!==4&&(a===27&&pl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(hc(e,t,n),e=e.sibling;e!==null;)hc(e,t,n),e=e.sibling}function Lu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&pl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}function qm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ft(t,a,n),t[ut]=e,t[bt]=n}catch(o){De(e,e.return,o)}}var Dn=!1,tt=!1,mc=!1,jm=typeof WeakSet=="function"?WeakSet:Set,rt=null;function nb(e,t){if(e=e.containerInfo,Lc=ns,e=$d(e),io(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var h=0,v=-1,N=-1,U=0,X=0,K=e,L=null;t:for(;;){for(var j;K!==n||s!==0&&K.nodeType!==3||(v=h+s),K!==o||a!==0&&K.nodeType!==3||(N=h+a),K.nodeType===3&&(h+=K.nodeValue.length),(j=K.firstChild)!==null;)L=K,K=j;for(;;){if(K===e)break t;if(L===n&&++U===s&&(v=h),L===o&&++X===a&&(N=h),(j=K.nextSibling)!==null)break;K=L,L=K.parentNode}K=j}n=v===-1||N===-1?null:{start:v,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(qc={focusedElem:e,selectionRange:n},ns=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,s=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ne=Il(n.type,s);e=a.getSnapshotBeforeUpdate(ne,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(oe){De(n,n.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Bc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bc(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function Hm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),a&4&&li(5,n);break;case 1:if(Un(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){De(n,n.return,h)}else{var s=Il(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){De(n,n.return,h)}}a&64&&Dm(n),a&512&&ai(n,n.return);break;case 3:if(Un(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Eh(e,t)}catch(h){De(n,n.return,h)}}break;case 27:t===null&&a&4&&qm(n);case 26:case 5:Un(e,n),t===null&&a&4&&Um(n),a&512&&ai(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),a&4&&Qm(e,n);break;case 13:Un(e,n),a&4&&Ym(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=fb.bind(null,n),zb(e,n))));break;case 22:if(a=n.memoizedState!==null||Dn,!a){t=t!==null&&t.memoizedState!==null||tt,s=Dn;var o=tt;Dn=a,(tt=t)&&!o?Ln(e,n,(n.subtreeFlags&8772)!==0):Un(e,n),Dn=s,tt=o}break;case 30:break;default:Un(e,n)}}function Bm(e){var t=e.alternate;t!==null&&(e.alternate=null,Bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,St=!1;function _n(e,t,n){for(n=n.child;n!==null;)km(e,t,n),n=n.sibling}function km(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Or,n)}catch{}switch(n.tag){case 26:tt||gn(n,t),_n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tt||gn(n,t);var a=Ye,s=St;pl(n.type)&&(Ye=n.stateNode,St=!1),_n(e,t,n),hi(n.stateNode),Ye=a,St=s;break;case 5:tt||gn(n,t);case 6:if(a=Ye,s=St,Ye=null,_n(e,t,n),Ye=a,St=s,Ye!==null)if(St)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(n.stateNode)}catch(o){De(n,t,o)}else try{Ye.removeChild(n.stateNode)}catch(o){De(n,t,o)}break;case 18:Ye!==null&&(St?(e=Ye,Dg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),nr(e)):Dg(Ye,n.stateNode));break;case 4:a=Ye,s=St,Ye=n.stateNode.containerInfo,St=!0,_n(e,t,n),Ye=a,St=s;break;case 0:case 11:case 14:case 15:ol(2,n,t),tt||ol(4,n,t),_n(e,t,n);break;case 1:tt||(gn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&_m(n,t,a)),_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:tt=(a=tt)||n.memoizedState!==null,_n(e,t,n),tt=a;break;default:_n(e,t,n)}}function Qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nr(e)}catch(n){De(t,t.return,n)}}}function Ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nr(e)}catch(n){De(t,t.return,n)}}function lb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jm),t;default:throw Error(u(435,e.tag))}}function qu(e,t){var n=lb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var s=db.bind(null,e,a);a.then(s,s)}})}function Et(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],o=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(pl(v.type)){Ye=v.stateNode,St=!1;break e}break;case 5:Ye=v.stateNode,St=!1;break e;case 3:case 4:Ye=v.stateNode.containerInfo,St=!0;break e}v=v.return}if(Ye===null)throw Error(u(160));km(o,h,s),Ye=null,St=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Gm(t,e),t=t.sibling}var un=null;function Gm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),wt(e),a&4&&(ol(3,e,e.return),li(3,e),ol(5,e,e.return));break;case 1:Et(t,e),wt(e),a&512&&(tt||n===null||gn(n,n.return)),a&64&&Dn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=un;if(Et(t,e),wt(e),a&512&&(tt||n===null||gn(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":o=s.getElementsByTagName("title")[0],(!o||o[zr]||o[ut]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(a),s.head.insertBefore(o,s.querySelector("head > title"))),ft(o,a,n),o[ut]=e,at(o),a=o;break e;case"link":var h=Gg("link","href",s).get(a+(n.href||""));if(h){for(var v=0;v<h.length;v++)if(o=h[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(v,1);break t}}o=s.createElement(a),ft(o,a,n),s.head.appendChild(o);break;case"meta":if(h=Gg("meta","content",s).get(a+(n.content||""))){for(v=0;v<h.length;v++)if(o=h[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(v,1);break t}}o=s.createElement(a),ft(o,a,n),s.head.appendChild(o);break;default:throw Error(u(468,a))}o[ut]=e,at(o),a=o}e.stateNode=a}else Vg(s,e.type,e.stateNode);else e.stateNode=Yg(s,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Vg(s,e.type,e.stateNode):Yg(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&fc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Et(t,e),wt(e),a&512&&(tt||n===null||gn(n,n.return)),n!==null&&a&4&&fc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Et(t,e),wt(e),a&512&&(tt||n===null||gn(n,n.return)),e.flags&32){s=e.stateNode;try{Ta(s,"")}catch(ne){De(e,e.return,ne)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,fc(e,s,n!==null?n.memoizedProps:s)),a&1024&&(mc=!0);break;case 6:if(Et(t,e),wt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){De(e,e.return,ne)}}break;case 3:if(Pu=null,s=un,un=Fu(t.containerInfo),Et(t,e),un=s,wt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{nr(t.containerInfo)}catch(ne){De(e,e.return,ne)}mc&&(mc=!1,Vm(e));break;case 4:a=un,un=Fu(e.stateNode.containerInfo),Et(t,e),wt(e),un=a;break;case 12:Et(t,e),wt(e);break;case 31:Et(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 13:Et(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Hu=Mt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 22:s=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,U=Dn,X=tt;if(Dn=U||s,tt=X||N,Et(t,e),tt=X,Dn=U,wt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||N||Dn||tt||ea(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(o=N.stateNode,s)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=N.stateNode;var K=N.memoizedProps.style,L=K!=null&&K.hasOwnProperty("display")?K.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ne){De(N,N.return,ne)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=s?"":N.memoizedProps}catch(ne){De(N,N.return,ne)}}}else if(t.tag===18){if(n===null){N=t;try{var j=N.stateNode;s?_g(j,!0):_g(N.stateNode,!1)}catch(ne){De(N,N.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,qu(e,n))));break;case 19:Et(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qu(e,a)));break;case 30:break;case 21:break;default:Et(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Lm(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,o=dc(e);Lu(e,o,s);break;case 5:var h=n.stateNode;n.flags&32&&(Ta(h,""),n.flags&=-33);var v=dc(e);Lu(e,v,h);break;case 3:case 4:var N=n.stateNode.containerInfo,U=dc(e);hc(e,U,N);break;default:throw Error(u(161))}}catch(X){De(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hm(e,t.alternate,t),t=t.sibling}function ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ol(4,t,t.return),ea(t);break;case 1:gn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&_m(t,t.return,n),ea(t);break;case 27:hi(t.stateNode);case 26:case 5:gn(t,t.return),ea(t);break;case 22:t.memoizedState===null&&ea(t);break;case 30:ea(t);break;default:ea(t)}e=e.sibling}}function Ln(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,o=t,h=o.flags;switch(o.tag){case 0:case 11:case 15:Ln(s,o,n),li(4,o);break;case 1:if(Ln(s,o,n),a=o,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){De(a,a.return,U)}if(a=o,s=a.updateQueue,s!==null){var v=a.stateNode;try{var N=s.shared.hiddenCallbacks;if(N!==null)for(s.shared.hiddenCallbacks=null,s=0;s<N.length;s++)Sh(N[s],v)}catch(U){De(a,a.return,U)}}n&&h&64&&Dm(o),ai(o,o.return);break;case 27:qm(o);case 26:case 5:Ln(s,o,n),n&&a===null&&h&4&&Um(o),ai(o,o.return);break;case 12:Ln(s,o,n);break;case 31:Ln(s,o,n),n&&h&4&&Qm(s,o);break;case 13:Ln(s,o,n),n&&h&4&&Ym(s,o);break;case 22:o.memoizedState===null&&Ln(s,o,n),ai(o,o.return);break;case 30:break;default:Ln(s,o,n)}t=t.sibling}}function gc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Vr(n))}function pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vr(e))}function sn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xm(e,t,n,a),t=t.sibling}function Xm(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:sn(e,t,n,a),s&2048&&li(9,t);break;case 1:sn(e,t,n,a);break;case 3:sn(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vr(e)));break;case 12:if(s&2048){sn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,h=o.id,v=o.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){De(t,t.return,N)}}else sn(e,t,n,a);break;case 31:sn(e,t,n,a);break;case 13:sn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,h=t.alternate,t.memoizedState!==null?o._visibility&2?sn(e,t,n,a):ri(e,t):o._visibility&2?sn(e,t,n,a):(o._visibility|=2,Xa(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&gc(h,t);break;case 24:sn(e,t,n,a),s&2048&&pc(t.alternate,t);break;default:sn(e,t,n,a)}}function Xa(e,t,n,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,h=t,v=n,N=a,U=h.flags;switch(h.tag){case 0:case 11:case 15:Xa(o,h,v,N,s),li(8,h);break;case 23:break;case 22:var X=h.stateNode;h.memoizedState!==null?X._visibility&2?Xa(o,h,v,N,s):ri(o,h):(X._visibility|=2,Xa(o,h,v,N,s)),s&&U&2048&&gc(h.alternate,h);break;case 24:Xa(o,h,v,N,s),s&&U&2048&&pc(h.alternate,h);break;default:Xa(o,h,v,N,s)}t=t.sibling}}function ri(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:ri(n,a),s&2048&&gc(a.alternate,a);break;case 24:ri(n,a),s&2048&&pc(a.alternate,a);break;default:ri(n,a)}t=t.sibling}}var ii=8192;function Za(e,t,n){if(e.subtreeFlags&ii)for(e=e.child;e!==null;)Zm(e,t,n),e=e.sibling}function Zm(e,t,n){switch(e.tag){case 26:Za(e,t,n),e.flags&ii&&e.memoizedState!==null&&Gb(n,un,e.memoizedState,e.memoizedProps);break;case 5:Za(e,t,n);break;case 3:case 4:var a=un;un=Fu(e.stateNode.containerInfo),Za(e,t,n),un=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ii,ii=16777216,Za(e,t,n),ii=a):Za(e,t,n));break;default:Za(e,t,n)}}function Km(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ui(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rt=a,$m(a,e)}Km(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jm(e),e=e.sibling}function Jm(e){switch(e.tag){case 0:case 11:case 15:ui(e),e.flags&2048&&ol(9,e,e.return);break;case 3:ui(e);break;case 12:ui(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ju(e)):ui(e);break;default:ui(e)}}function ju(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rt=a,$m(a,e)}Km(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ol(8,t,t.return),ju(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ju(t));break;default:ju(t)}e=e.sibling}}function $m(e,t){for(;rt!==null;){var n=rt;switch(n.tag){case 0:case 11:case 15:ol(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Vr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,rt=a;else e:for(n=e;rt!==null;){a=rt;var s=a.sibling,o=a.return;if(Bm(a),a===n){rt=null;break e}if(s!==null){s.return=o,rt=s;break e}rt=o}}}var ab={getCacheForType:function(e){var t=ot(Pe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot(Pe).controller.signal}},rb=typeof WeakMap=="function"?WeakMap:Map,Oe=0,qe=null,be=null,Se=0,ze=0,jt=null,cl=!1,Ka=!1,yc=!1,qn=0,Ke=0,fl=0,ta=0,vc=0,Ht=0,Ja=0,si=null,Nt=null,bc=!1,Hu=0,Fm=0,Bu=1/0,ku=null,dl=null,nt=0,hl=null,$a=null,jn=0,xc=0,Sc=null,Wm=null,oi=0,Ec=null;function Bt(){return(Oe&2)!==0&&Se!==0?Se&-Se:D.T!==null?Oc():hd()}function Pm(){if(Ht===0)if((Se&536870912)===0||we){var e=Ji;Ji<<=1,(Ji&3932160)===0&&(Ji=262144),Ht=e}else Ht=536870912;return e=Lt.current,e!==null&&(e.flags|=32),Ht}function Tt(e,t,n){(e===qe&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),ml(e,Se,Ht,!1)),Mr(e,n),((Oe&2)===0||e!==qe)&&(e===qe&&((Oe&2)===0&&(ta|=n),Ke===4&&ml(e,Se,Ht,!1)),pn(e))}function Im(e,t,n){if((Oe&6)!==0)throw Error(u(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Rr(e,t),s=a?sb(e,t):Nc(e,t,!0),o=a;do{if(s===0){Ka&&!a&&ml(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ib(n)){s=Nc(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;s=si;var N=v.current.memoizedState.isDehydrated;if(N&&(Fa(v,h).flags|=256),h=Nc(v,h,!1),h!==2){if(yc&&!N){v.errorRecoveryDisabledLanes|=o,ta|=o,s=4;break e}o=Nt,Nt=s,o!==null&&(Nt===null?Nt=o:Nt.push.apply(Nt,o))}s=h}if(o=!1,s!==2)continue}}if(s===1){Fa(e,0),ml(e,t,0,!0);break}e:{switch(a=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:ml(a,t,Ht,!cl);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=Hu+300-Mt(),10<s)){if(ml(a,t,Ht,!cl),Fi(a,0,!0)!==0)break e;jn=t,a.timeoutHandle=Mg(eg.bind(null,a,n,Nt,ku,bc,t,Ht,ta,Ja,cl,o,"Throttled",-0,0),s);break e}eg(a,n,Nt,ku,bc,t,Ht,ta,Ja,cl,o,null,-0,0)}}break}while(!0);pn(e)}function eg(e,t,n,a,s,o,h,v,N,U,X,K,L,j){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Zm(t,o,K);var ne=(o&62914560)===o?Hu-Mt():(o&4194048)===o?Fm-Mt():0;if(ne=Vb(K,ne),ne!==null){jn=o,e.cancelPendingCommit=ne(sg.bind(null,e,t,o,n,a,s,h,v,N,X,K,null,L,j)),ml(e,o,h,!U);return}}sg(e,t,o,n,a,s,h,v,N)}function ib(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],o=s.getSnapshot;s=s.value;try{if(!_t(o(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ml(e,t,n,a){t&=~vc,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var o=31-Dt(s),h=1<<o;a[o]=-1,s&=~h}n!==0&&cd(e,n,t)}function Qu(){return(Oe&6)===0?(ci(0),!1):!0}function wc(){if(be!==null){if(ze===0)var e=be.return;else e=be,Cn=Zl=null,Bo(e),ka=null,Zr=0,e=be;for(;e!==null;)zm(e.alternate,e),e=e.return;be=null}}function Fa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Cb(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jn=0,wc(),qe=e,be=n=Nn(e.current,null),Se=t,ze=0,jt=null,cl=!1,Ka=Rr(e,t),yc=!1,Ja=Ht=vc=ta=fl=Ke=0,Nt=si=null,bc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Dt(a),o=1<<s;t|=e[s],a&=~o}return qn=t,su(),n}function tg(e,t){he=null,D.H=ei,t===Ba||t===pu?(t=yh(),ze=3):t===Ao?(t=yh(),ze=4):ze=t===tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,be===null&&(Ke=1,Mu(e,Kt(t,e.current)))}function ng(){var e=Lt.current;return e===null?!0:(Se&4194048)===Se?Wt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Wt:!1}function lg(){var e=D.H;return D.H=ei,e===null?ei:e}function ag(){var e=D.A;return D.A=ab,e}function Yu(){Ke=4,cl||(Se&4194048)!==Se&&Lt.current!==null||(Ka=!0),(fl&134217727)===0&&(ta&134217727)===0||qe===null||ml(qe,Se,Ht,!1)}function Nc(e,t,n){var a=Oe;Oe|=2;var s=lg(),o=ag();(qe!==e||Se!==t)&&(ku=null,Fa(e,t)),t=!1;var h=Ke;e:do try{if(ze!==0&&be!==null){var v=be,N=jt;switch(ze){case 8:wc(),h=6;break e;case 3:case 2:case 9:case 6:Lt.current===null&&(t=!0);var U=ze;if(ze=0,jt=null,Wa(e,v,N,U),n&&Ka){h=0;break e}break;default:U=ze,ze=0,jt=null,Wa(e,v,N,U)}}ub(),h=Ke;break}catch(X){tg(e,X)}while(!0);return t&&e.shellSuspendCounter++,Cn=Zl=null,Oe=a,D.H=s,D.A=o,be===null&&(qe=null,Se=0,su()),h}function ub(){for(;be!==null;)rg(be)}function sb(e,t){var n=Oe;Oe|=2;var a=lg(),s=ag();qe!==e||Se!==t?(ku=null,Bu=Mt()+500,Fa(e,t)):Ka=Rr(e,t);e:do try{if(ze!==0&&be!==null){t=be;var o=jt;t:switch(ze){case 1:ze=0,jt=null,Wa(e,t,o,1);break;case 2:case 9:if(gh(o)){ze=0,jt=null,ig(t);break}t=function(){ze!==2&&ze!==9||qe!==e||(ze=7),pn(e)},o.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:gh(o)?(ze=0,jt=null,ig(t)):(ze=0,jt=null,Wa(e,t,o,7));break;case 5:var h=null;switch(be.tag){case 26:h=be.memoizedState;case 5:case 27:var v=be;if(h?Xg(h):v.stateNode.complete){ze=0,jt=null;var N=v.sibling;if(N!==null)be=N;else{var U=v.return;U!==null?(be=U,Gu(U)):be=null}break t}}ze=0,jt=null,Wa(e,t,o,5);break;case 6:ze=0,jt=null,Wa(e,t,o,6);break;case 8:wc(),Ke=6;break e;default:throw Error(u(462))}}ob();break}catch(X){tg(e,X)}while(!0);return Cn=Zl=null,D.H=a,D.A=s,Oe=n,be!==null?0:(qe=null,Se=0,su(),Ke)}function ob(){for(;be!==null&&!D0();)rg(be)}function rg(e){var t=Rm(e.alternate,e,qn);e.memoizedProps=e.pendingProps,t===null?Gu(e):be=t}function ig(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=wm(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=wm(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Bo(t);default:zm(n,t),t=be=ah(t,qn),t=Rm(n,t,qn)}e.memoizedProps=e.pendingProps,t===null?Gu(e):be=t}function Wa(e,t,n,a){Cn=Zl=null,Bo(t),ka=null,Zr=0;var s=t.return;try{if(Wv(e,s,t,n,Se)){Ke=1,Mu(e,Kt(n,e.current)),be=null;return}}catch(o){if(s!==null)throw be=s,o;Ke=1,Mu(e,Kt(n,e.current)),be=null;return}t.flags&32768?(we||a===1?e=!0:Ka||(Se&536870912)!==0?e=!1:(cl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Lt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ug(t,e)):Gu(t)}function Gu(e){var t=e;do{if((t.flags&32768)!==0){ug(t,cl);return}e=t.return;var n=eb(t.alternate,t,qn);if(n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ke===0&&(Ke=5)}function ug(e,t){do{var n=tb(e.alternate,e);if(n!==null){n.flags&=32767,be=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=n}while(e!==null);Ke=6,be=null}function sg(e,t,n,a,s,o,h,v,N){e.cancelPendingCommit=null;do Vu();while(nt!==0);if((Oe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=fo,Y0(e,n,o,h,v,N),e===qe&&(be=qe=null,Se=0),$a=t,hl=e,jn=n,xc=o,Sc=s,Wm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hb(Zi,function(){return hg(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,s=F.p,F.p=2,h=Oe,Oe|=4;try{nb(e,t,n)}finally{Oe=h,F.p=s,D.T=a}}nt=1,og(),cg(),fg()}}function og(){if(nt===1){nt=0;var e=hl,t=$a,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=F.p;F.p=2;var s=Oe;Oe|=4;try{Gm(t,e);var o=qc,h=$d(e.containerInfo),v=o.focusedElem,N=o.selectionRange;if(h!==v&&v&&v.ownerDocument&&Jd(v.ownerDocument.documentElement,v)){if(N!==null&&io(v)){var U=N.start,X=N.end;if(X===void 0&&(X=U),"selectionStart"in v)v.selectionStart=U,v.selectionEnd=Math.min(X,v.value.length);else{var K=v.ownerDocument||document,L=K&&K.defaultView||window;if(L.getSelection){var j=L.getSelection(),ne=v.textContent.length,oe=Math.min(N.start,ne),Le=N.end===void 0?oe:Math.min(N.end,ne);!j.extend&&oe>Le&&(h=Le,Le=oe,oe=h);var O=Kd(v,oe),C=Kd(v,Le);if(O&&C&&(j.rangeCount!==1||j.anchorNode!==O.node||j.anchorOffset!==O.offset||j.focusNode!==C.node||j.focusOffset!==C.offset)){var _=K.createRange();_.setStart(O.node,O.offset),j.removeAllRanges(),oe>Le?(j.addRange(_),j.extend(C.node,C.offset)):(_.setEnd(C.node,C.offset),j.addRange(_))}}}}for(K=[],j=v;j=j.parentNode;)j.nodeType===1&&K.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<K.length;v++){var Z=K[v];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}ns=!!Lc,qc=Lc=null}finally{Oe=s,F.p=a,D.T=n}}e.current=t,nt=2}}function cg(){if(nt===2){nt=0;var e=hl,t=$a,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=F.p;F.p=2;var s=Oe;Oe|=4;try{Hm(e,t.alternate,t)}finally{Oe=s,F.p=a,D.T=n}}nt=3}}function fg(){if(nt===4||nt===3){nt=0,_0();var e=hl,t=$a,n=jn,a=Wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,$a=hl=null,dg(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(dl=null),Qs(n),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Or,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,s=F.p,F.p=2,D.T=null;try{for(var o=e.onRecoverableError,h=0;h<a.length;h++){var v=a[h];o(v.value,{componentStack:v.stack})}}finally{D.T=t,F.p=s}}(jn&3)!==0&&Vu(),pn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Ec?oi++:(oi=0,Ec=e):oi=0,ci(0)}}function dg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vr(t)))}function Vu(){return og(),cg(),fg(),hg()}function hg(){if(nt!==5)return!1;var e=hl,t=xc;xc=0;var n=Qs(jn),a=D.T,s=F.p;try{F.p=32>n?32:n,D.T=null,n=Sc,Sc=null;var o=hl,h=jn;if(nt=0,$a=hl=null,jn=0,(Oe&6)!==0)throw Error(u(331));var v=Oe;if(Oe|=4,Jm(o.current),Xm(o,o.current,h,n),Oe=v,ci(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Or,o)}catch{}return!0}finally{F.p=s,D.T=a,dg(e,t)}}function mg(e,t,n){t=Kt(n,t),t=ec(e.stateNode,t,2),e=il(e,t,2),e!==null&&(Mr(e,2),pn(e))}function De(e,t,n){if(e.tag===3)mg(e,e,n);else for(;t!==null;){if(t.tag===3){mg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(dl===null||!dl.has(a))){e=Kt(n,e),n=gm(2),a=il(t,n,2),a!==null&&(pm(n,a,t,e),Mr(a,2),pn(a));break}}t=t.return}}function Tc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new rb;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(yc=!0,s.add(n),e=cb.bind(null,e,t,n),t.then(e,e))}function cb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,qe===e&&(Se&n)===n&&(Ke===4||Ke===3&&(Se&62914560)===Se&&300>Mt()-Hu?(Oe&2)===0&&Fa(e,0):vc|=n,Ja===Se&&(Ja=0)),pn(e)}function gg(e,t){t===0&&(t=od()),e=Gl(e,t),e!==null&&(Mr(e,t),pn(e))}function fb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gg(e,n)}function db(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),gg(e,n)}function hb(e,t){return js(e,t)}var Xu=null,Pa=null,Cc=!1,Zu=!1,Ac=!1,gl=0;function pn(e){e!==Pa&&e.next===null&&(Pa===null?Xu=Pa=e:Pa=Pa.next=e),Zu=!0,Cc||(Cc=!0,gb())}function ci(e,t){if(!Ac&&Zu){Ac=!0;do for(var n=!1,a=Xu;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var o=0;else{var h=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-Dt(42|e)+1)-1,o&=s&~(h&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,bg(a,o))}else o=Se,o=Fi(a,a===qe?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Rr(a,o)||(n=!0,bg(a,o));a=a.next}while(n);Ac=!1}}function mb(){pg()}function pg(){Zu=Cc=!1;var e=0;gl!==0&&Tb()&&(e=gl);for(var t=Mt(),n=null,a=Xu;a!==null;){var s=a.next,o=yg(a,t);o===0?(a.next=null,n===null?Xu=s:n.next=s,s===null&&(Pa=n)):(n=a,(e!==0||(o&3)!==0)&&(Zu=!0)),a=s}nt!==0&&nt!==5||ci(e),gl!==0&&(gl=0)}function yg(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var h=31-Dt(o),v=1<<h,N=s[h];N===-1?((v&n)===0||(v&a)!==0)&&(s[h]=Q0(v,t)):N<=t&&(e.expiredLanes|=v),o&=~v}if(t=qe,n=Se,n=Fi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Hs(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Rr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Hs(a),Qs(n)){case 2:case 8:n=ud;break;case 32:n=Zi;break;case 268435456:n=sd;break;default:n=Zi}return a=vg.bind(null,e),n=js(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Hs(a),e.callbackPriority=2,e.callbackNode=null,2}function vg(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Vu()&&e.callbackNode!==n)return null;var a=Se;return a=Fi(e,e===qe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Im(e,a,t),yg(e,Mt()),e.callbackNode!=null&&e.callbackNode===n?vg.bind(null,e):null)}function bg(e,t){if(Vu())return null;Im(e,t,!0)}function gb(){Ab(function(){(Oe&6)!==0?js(id,mb):pg()})}function Oc(){if(gl===0){var e=ja;e===0&&(e=Ki,Ki<<=1,(Ki&261888)===0&&(Ki=256)),gl=e}return gl}function xg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:eu(""+e)}function Sg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pb(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var o=xg((s[bt]||null).action),h=a.submitter;h&&(t=(t=h[bt]||null)?xg(t.formAction):h.getAttribute("formAction"),t!==null&&(o=t,h=null));var v=new au("action","action",null,a,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(gl!==0){var N=h?Sg(s,h):new FormData(s);Jo(n,{pending:!0,data:N,method:s.method,action:o},null,N)}}else typeof o=="function"&&(v.preventDefault(),N=h?Sg(s,h):new FormData(s),Jo(n,{pending:!0,data:N,method:s.method,action:o},o,N))},currentTarget:s}]})}}for(var Rc=0;Rc<co.length;Rc++){var Mc=co[Rc],yb=Mc.toLowerCase(),vb=Mc[0].toUpperCase()+Mc.slice(1);rn(yb,"on"+vb)}rn(Pd,"onAnimationEnd"),rn(Id,"onAnimationIteration"),rn(eh,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(Uv,"onTransitionRun"),rn(Lv,"onTransitionStart"),rn(qv,"onTransitionCancel"),rn(th,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),bb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function Eg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var h=a.length-1;0<=h;h--){var v=a[h],N=v.instance,U=v.currentTarget;if(v=v.listener,N!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=U;try{o(s)}catch(X){uu(X)}s.currentTarget=null,o=N}else for(h=0;h<a.length;h++){if(v=a[h],N=v.instance,U=v.currentTarget,v=v.listener,N!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=U;try{o(s)}catch(X){uu(X)}s.currentTarget=null,o=N}}}}function xe(e,t){var n=t[Ys];n===void 0&&(n=t[Ys]=new Set);var a=e+"__bubble";n.has(a)||(wg(t,e,2,!1),n.add(a))}function zc(e,t,n){var a=0;t&&(a|=4),wg(n,e,a,t)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function Dc(e){if(!e[Ku]){e[Ku]=!0,pd.forEach(function(n){n!=="selectionchange"&&(bb.has(n)||zc(n,!1,e),zc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ku]||(t[Ku]=!0,zc("selectionchange",!1,t))}}function wg(e,t,n,a){switch(Pg(t)){case 2:var s=Kb;break;case 8:s=Jb;break;default:s=Kc}n=s.bind(null,t,n,e),s=void 0,!Ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function _c(e,t,n,a,s){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var v=a.stateNode.containerInfo;if(v===s)break;if(h===4)for(h=a.return;h!==null;){var N=h.tag;if((N===3||N===4)&&h.stateNode.containerInfo===s)return;h=h.return}for(;v!==null;){if(h=xa(v),h===null)return;if(N=h.tag,N===5||N===6||N===26||N===27){a=o=h;continue e}v=v.parentNode}}a=a.return}Od(function(){var U=o,X=$s(n),K=[];e:{var L=nh.get(e);if(L!==void 0){var j=au,ne=e;switch(e){case"keypress":if(nu(n)===0)break e;case"keydown":case"keyup":j=dv;break;case"focusin":ne="focus",j=to;break;case"focusout":ne="blur",j=to;break;case"beforeblur":case"afterblur":j=to;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=gv;break;case Pd:case Id:case eh:j=lv;break;case th:j=yv;break;case"scroll":case"scrollend":j=P0;break;case"wheel":j=bv;break;case"copy":case"cut":case"paste":j=rv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=_d;break;case"toggle":case"beforetoggle":j=Sv}var oe=(t&4)!==0,Le=!oe&&(e==="scroll"||e==="scrollend"),O=oe?L!==null?L+"Capture":null:L;oe=[];for(var C=U,_;C!==null;){var Z=C;if(_=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||_===null||O===null||(Z=_r(C,O),Z!=null&&oe.push(di(C,Z,_))),Le)break;C=C.return}0<oe.length&&(L=new j(L,ne,null,n,X),K.push({event:L,listeners:oe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",L&&n!==Js&&(ne=n.relatedTarget||n.fromElement)&&(xa(ne)||ne[ba]))break e;if((j||L)&&(L=X.window===X?X:(L=X.ownerDocument)?L.defaultView||L.parentWindow:window,j?(ne=n.relatedTarget||n.toElement,j=U,ne=ne?xa(ne):null,ne!==null&&(Le=f(ne),oe=ne.tag,ne!==Le||oe!==5&&oe!==27&&oe!==6)&&(ne=null)):(j=null,ne=U),j!==ne)){if(oe=zd,Z="onMouseLeave",O="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(oe=_d,Z="onPointerLeave",O="onPointerEnter",C="pointer"),Le=j==null?L:Dr(j),_=ne==null?L:Dr(ne),L=new oe(Z,C+"leave",j,n,X),L.target=Le,L.relatedTarget=_,Z=null,xa(X)===U&&(oe=new oe(O,C+"enter",ne,n,X),oe.target=_,oe.relatedTarget=Le,Z=oe),Le=Z,j&&ne)t:{for(oe=xb,O=j,C=ne,_=0,Z=O;Z;Z=oe(Z))_++;Z=0;for(var ue=C;ue;ue=oe(ue))Z++;for(;0<_-Z;)O=oe(O),_--;for(;0<Z-_;)C=oe(C),Z--;for(;_--;){if(O===C||C!==null&&O===C.alternate){oe=O;break t}O=oe(O),C=oe(C)}oe=null}else oe=null;j!==null&&Ng(K,L,j,oe,!1),ne!==null&&Le!==null&&Ng(K,Le,ne,oe,!0)}}e:{if(L=U?Dr(U):window,j=L.nodeName&&L.nodeName.toLowerCase(),j==="select"||j==="input"&&L.type==="file")var Ce=Qd;else if(Bd(L))if(Yd)Ce=zv;else{Ce=Rv;var le=Ov}else j=L.nodeName,!j||j.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?U&&Ks(U.elementType)&&(Ce=Qd):Ce=Mv;if(Ce&&(Ce=Ce(e,U))){kd(K,Ce,n,X);break e}le&&le(e,L,U),e==="focusout"&&U&&L.type==="number"&&U.memoizedProps.value!=null&&Zs(L,"number",L.value)}switch(le=U?Dr(U):window,e){case"focusin":(Bd(le)||le.contentEditable==="true")&&(Ra=le,uo=U,Qr=null);break;case"focusout":Qr=uo=Ra=null;break;case"mousedown":so=!0;break;case"contextmenu":case"mouseup":case"dragend":so=!1,Fd(K,n,X);break;case"selectionchange":if(_v)break;case"keydown":case"keyup":Fd(K,n,X)}var me;if(lo)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else Oa?jd(e,n)&&(Ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ee="onCompositionStart");Ee&&(Ud&&n.locale!=="ko"&&(Oa||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&Oa&&(me=Rd()):(In=X,Ps="value"in In?In.value:In.textContent,Oa=!0)),le=Ju(U,Ee),0<le.length&&(Ee=new Dd(Ee,e,null,n,X),K.push({event:Ee,listeners:le}),me?Ee.data=me:(me=Hd(n),me!==null&&(Ee.data=me)))),(me=wv?Nv(e,n):Tv(e,n))&&(Ee=Ju(U,"onBeforeInput"),0<Ee.length&&(le=new Dd("onBeforeInput","beforeinput",null,n,X),K.push({event:le,listeners:Ee}),le.data=me)),pb(K,e,U,n,X)}Eg(K,t)})}function di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ju(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=_r(e,n),s!=null&&a.unshift(di(e,s,o)),s=_r(e,t),s!=null&&a.push(di(e,s,o))),e.tag===3)return a;e=e.return}return[]}function xb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ng(e,t,n,a,s){for(var o=t._reactName,h=[];n!==null&&n!==a;){var v=n,N=v.alternate,U=v.stateNode;if(v=v.tag,N!==null&&N===a)break;v!==5&&v!==26&&v!==27||U===null||(N=U,s?(U=_r(n,o),U!=null&&h.unshift(di(n,U,N))):s||(U=_r(n,o),U!=null&&h.push(di(n,U,N)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Sb=/\r\n?/g,Eb=/\u0000|\uFFFD/g;function Tg(e){return(typeof e=="string"?e:""+e).replace(Sb,`
49
- `).replace(Eb,"")}function Cg(e,t){return t=Tg(t),Tg(e)===t}function Ue(e,t,n,a,s,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ta(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ta(e,""+a);break;case"className":Pi(e,"class",a);break;case"tabIndex":Pi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Pi(e,n,a);break;case"style":Cd(e,a,o);break;case"data":if(t!=="object"){Pi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=eu(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Ue(e,t,"name",s.name,s,null),Ue(e,t,"formEncType",s.formEncType,s,null),Ue(e,t,"formMethod",s.formMethod,s,null),Ue(e,t,"formTarget",s.formTarget,s,null)):(Ue(e,t,"encType",s.encType,s,null),Ue(e,t,"method",s.method,s,null),Ue(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=eu(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=En);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=eu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Wi(e,"popover",a);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Wi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=F0.get(n)||n,Wi(e,n,a))}}function Uc(e,t,n,a,s,o){switch(n){case"style":Cd(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ta(e,a):(typeof a=="number"||typeof a=="bigint")&&Ta(e,""+a);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=En);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),o=e[bt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Wi(e,n,a)}}}function ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var a=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var h=n[o];if(h!=null)switch(o){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,o,h,n,null)}}s&&Ue(e,t,"srcSet",n.srcSet,n,null),a&&Ue(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var v=o=h=s=null,N=null,U=null;for(a in n)if(n.hasOwnProperty(a)){var X=n[a];if(X!=null)switch(a){case"name":s=X;break;case"type":h=X;break;case"checked":N=X;break;case"defaultChecked":U=X;break;case"value":o=X;break;case"defaultValue":v=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(u(137,t));break;default:Ue(e,t,a,X,n,null)}}Ed(e,o,v,N,U,h,s,!1);return;case"select":xe("invalid",e),a=h=o=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":o=v;break;case"defaultValue":h=v;break;case"multiple":a=v;default:Ue(e,t,s,v,n,null)}t=o,n=h,e.multiple=!!a,t!=null?Na(e,!!a,t,!1):n!=null&&Na(e,!!a,n,!0);return;case"textarea":xe("invalid",e),o=s=a=null;for(h in n)if(n.hasOwnProperty(h)&&(v=n[h],v!=null))switch(h){case"value":a=v;break;case"defaultValue":s=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ue(e,t,h,v,n,null)}Nd(e,a,s,o);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(a=n[N],a!=null))switch(N){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ue(e,t,N,a,n,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(a=0;a<fi.length;a++)xe(fi[a],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(U in n)if(n.hasOwnProperty(U)&&(a=n[U],a!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,U,a,n,null)}return;default:if(Ks(t)){for(X in n)n.hasOwnProperty(X)&&(a=n[X],a!==void 0&&Uc(e,t,X,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ue(e,t,v,a,n,null))}function wb(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,h=null,v=null,N=null,U=null,X=null;for(j in n){var K=n[j];if(n.hasOwnProperty(j)&&K!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":N=K;default:a.hasOwnProperty(j)||Ue(e,t,j,null,a,K)}}for(var L in a){var j=a[L];if(K=n[L],a.hasOwnProperty(L)&&(j!=null||K!=null))switch(L){case"type":o=j;break;case"name":s=j;break;case"checked":U=j;break;case"defaultChecked":X=j;break;case"value":h=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:j!==K&&Ue(e,t,L,j,a,K)}}Xs(e,h,v,N,U,X,o,s);return;case"select":j=h=v=L=null;for(o in n)if(N=n[o],n.hasOwnProperty(o)&&N!=null)switch(o){case"value":break;case"multiple":j=N;default:a.hasOwnProperty(o)||Ue(e,t,o,null,a,N)}for(s in a)if(o=a[s],N=n[s],a.hasOwnProperty(s)&&(o!=null||N!=null))switch(s){case"value":L=o;break;case"defaultValue":v=o;break;case"multiple":h=o;default:o!==N&&Ue(e,t,s,o,a,N)}t=v,n=h,a=j,L!=null?Na(e,!!n,L,!1):!!a!=!!n&&(t!=null?Na(e,!!n,t,!0):Na(e,!!n,n?[]:"",!1));return;case"textarea":j=L=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,a,s)}for(h in a)if(s=a[h],o=n[h],a.hasOwnProperty(h)&&(s!=null||o!=null))switch(h){case"value":L=s;break;case"defaultValue":j=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&Ue(e,t,h,s,a,o)}wd(e,L,j);return;case"option":for(var ne in n)if(L=n[ne],n.hasOwnProperty(ne)&&L!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Ue(e,t,ne,null,a,L)}for(N in a)if(L=a[N],j=n[N],a.hasOwnProperty(N)&&L!==j&&(L!=null||j!=null))switch(N){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Ue(e,t,N,L,a,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 oe in n)L=n[oe],n.hasOwnProperty(oe)&&L!=null&&!a.hasOwnProperty(oe)&&Ue(e,t,oe,null,a,L);for(U in a)if(L=a[U],j=n[U],a.hasOwnProperty(U)&&L!==j&&(L!=null||j!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:Ue(e,t,U,L,a,j)}return;default:if(Ks(t)){for(var Le in n)L=n[Le],n.hasOwnProperty(Le)&&L!==void 0&&!a.hasOwnProperty(Le)&&Uc(e,t,Le,void 0,a,L);for(X in a)L=a[X],j=n[X],!a.hasOwnProperty(X)||L===j||L===void 0&&j===void 0||Uc(e,t,X,L,a,j);return}}for(var O in n)L=n[O],n.hasOwnProperty(O)&&L!=null&&!a.hasOwnProperty(O)&&Ue(e,t,O,null,a,L);for(K in a)L=a[K],j=n[K],!a.hasOwnProperty(K)||L===j||L==null&&j==null||Ue(e,t,K,L,a,j)}function Ag(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],o=s.transferSize,h=s.initiatorType,v=s.duration;if(o&&v&&Ag(h)){for(h=0,v=s.responseEnd,a+=1;a<n.length;a++){var N=n[a],U=N.startTime;if(U>v)break;var X=N.transferSize,K=N.initiatorType;X&&Ag(K)&&(N=N.responseEnd,h+=X*(N<v?1:(v-U)/(N-U)))}if(--a,t+=8*(o+h)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Lc=null,qc=null;function $u(e){return e.nodeType===9?e:e.ownerDocument}function Og(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 Rg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function jc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hc=null;function Tb(){var e=window.event;return e&&e.type==="popstate"?e===Hc?!1:(Hc=e,!0):(Hc=null,!1)}var Mg=typeof setTimeout=="function"?setTimeout:void 0,Cb=typeof clearTimeout=="function"?clearTimeout:void 0,zg=typeof Promise=="function"?Promise:void 0,Ab=typeof queueMicrotask=="function"?queueMicrotask:typeof zg<"u"?function(e){return zg.resolve(null).then(e).catch(Ob)}:Mg;function Ob(e){setTimeout(function(){throw e})}function pl(e){return e==="head"}function Dg(e,t){var n=t,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(s),nr(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")hi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,hi(n);for(var o=n.firstChild;o;){var h=o.nextSibling,v=o.nodeName;o[zr]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=h}}else n==="body"&&hi(e.ownerDocument.body);n=s}while(n);nr(t)}function _g(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Bc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Bc(n),Gs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Rb(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[zr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function Mb(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pt(e.nextSibling),e===null))return null;return e}function Ug(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function kc(e){return e.data==="$?"||e.data==="$~"}function Qc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function zb(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Pt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Yc=null;function Lg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Pt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function qg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function jg(e,t,n){switch(t=$u(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function hi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gs(e)}var It=new Map,Hg=new Set;function Fu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=F.d;F.d={f:Db,r:_b,D:Ub,C:Lb,L:qb,m:jb,X:Bb,S:Hb,M:kb};function Db(){var e=Hn.f(),t=Qu();return e||t}function _b(e){var t=Sa(e);t!==null&&t.tag===5&&t.type==="form"?tm(t):Hn.r(e)}var Ia=typeof document>"u"?null:document;function Bg(e,t,n){var a=Ia;if(a&&typeof t=="string"&&t){var s=Xt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Hg.has(s)||(Hg.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function Ub(e){Hn.D(e),Bg("dns-prefetch",e,null)}function Lb(e,t){Hn.C(e,t),Bg("preconnect",e,t)}function qb(e,t,n){Hn.L(e,t,n);var a=Ia;if(a&&e&&t){var s='link[rel="preload"][as="'+Xt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Xt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Xt(n.imageSizes)+'"]')):s+='[href="'+Xt(e)+'"]';var o=s;switch(t){case"style":o=er(e);break;case"script":o=tr(e)}It.has(o)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),It.set(o,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(mi(o))||t==="script"&&a.querySelector(gi(o))||(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function jb(e,t){Hn.m(e,t);var n=Ia;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Xt(a)+'"][href="'+Xt(e)+'"]',o=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=tr(e)}if(!It.has(o)&&(e=S({rel:"modulepreload",href:e},t),It.set(o,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gi(o)))return}a=n.createElement("link"),ft(a,"link",e),at(a),n.head.appendChild(a)}}}function Hb(e,t,n){Hn.S(e,t,n);var a=Ia;if(a&&e){var s=Ea(a).hoistableStyles,o=er(e);t=t||"default";var h=s.get(o);if(!h){var v={loading:0,preload:null};if(h=a.querySelector(mi(o)))v.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=It.get(o))&&Gc(e,n);var N=h=a.createElement("link");at(N),ft(N,"link",e),N._p=new Promise(function(U,X){N.onload=U,N.onerror=X}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Wu(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:v},s.set(o,h)}}}function Bb(e,t){Hn.X(e,t);var n=Ia;if(n&&e){var a=Ea(n).hoistableScripts,s=tr(e),o=a.get(s);o||(o=n.querySelector(gi(s)),o||(e=S({src:e,async:!0},t),(t=It.get(s))&&Vc(e,t),o=n.createElement("script"),at(o),ft(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(s,o))}}function kb(e,t){Hn.M(e,t);var n=Ia;if(n&&e){var a=Ea(n).hoistableScripts,s=tr(e),o=a.get(s);o||(o=n.querySelector(gi(s)),o||(e=S({src:e,async:!0,type:"module"},t),(t=It.get(s))&&Vc(e,t),o=n.createElement("script"),at(o),ft(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(s,o))}}function kg(e,t,n,a){var s=(s=ve.current)?Fu(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=er(n.href),n=Ea(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=er(n.href);var o=Ea(s).hoistableStyles,h=o.get(e);if(h||(s=s.ownerDocument||s,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,h),(o=s.querySelector(mi(e)))&&!o._p&&(h.instance=o,h.state.loading=5),It.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},It.set(e,n),o||Qb(s,e,n,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tr(n),n=Ea(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function er(e){return'href="'+Xt(e)+'"'}function mi(e){return'link[rel="stylesheet"]['+e+"]"}function Qg(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Qb(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ft(t,"link",n),at(t),e.head.appendChild(t))}function tr(e){return'[src="'+Xt(e)+'"]'}function gi(e){return"script[async]"+e}function Yg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Xt(n.href)+'"]');if(a)return t.instance=a,at(a),a;var s=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),ft(a,"style",s),Wu(a,n.precedence,e),t.instance=a;case"stylesheet":s=er(n.href);var o=e.querySelector(mi(s));if(o)return t.state.loading|=4,t.instance=o,at(o),o;a=Qg(n),(s=It.get(s))&&Gc(a,s),o=(e.ownerDocument||e).createElement("link"),at(o);var h=o;return h._p=new Promise(function(v,N){h.onload=v,h.onerror=N}),ft(o,"link",a),t.state.loading|=4,Wu(o,n.precedence,e),t.instance=o;case"script":return o=tr(n.src),(s=e.querySelector(gi(o)))?(t.instance=s,at(s),s):(a=n,(s=It.get(o))&&(a=S({},n),Vc(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),at(s),ft(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Wu(a,n.precedence,e));return t.instance}function Wu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,o=s,h=0;h<a.length;h++){var v=a[h];if(v.dataset.precedence===t)o=v;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pu=null;function Gg(e,t,n){if(Pu===null){var a=new Map,s=Pu=new Map;s.set(n,a)}else s=Pu,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var o=n[s];if(!(o[zr]||o[ut]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var h=o.getAttribute(t)||"";h=e+h;var v=a.get(h);v?v.push(o):a.set(h,[o])}}return a}function Vg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Yb(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Xg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Gb(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=er(a.href),o=t.querySelector(mi(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Iu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,a=Qg(a),(s=It.get(s))&&Gc(a,s),o=o.createElement("link"),at(o);var h=o;h._p=new Promise(function(v,N){h.onload=v,h.onerror=N}),ft(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Iu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Xc=0;function Vb(e,t){return e.stylesheets&&e.count===0&&ts(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&ts(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Xc===0&&(Xc=62500*Nb());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ts(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Xc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ts(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var es=null;function ts(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,es=new Map,t.forEach(Xb,e),es=null,Iu.call(e))}function Xb(e,t){if(!(t.state.loading&4)){var n=es.get(e);if(n)var a=n.get(null);else{n=new Map,es.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var h=s[o];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}s=t.instance,h=s.getAttribute("data-precedence"),o=n.get(h)||a,o===a&&n.set(null,s),n.set(h,s),this.count++,a=Iu.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var pi={$$typeof:k,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Zb(e,t,n,a,s,o,h,v,N){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bs(0),this.hiddenUpdates=Bs(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Zg(e,t,n,a,s,o,h,v,N,U,X,K){return e=new Zb(e,t,n,h,N,U,X,K,v),t=1,o===!0&&(t|=24),o=Ut(3,null,null,t),e.current=o,o.stateNode=e,t=No(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Oo(o),e}function Kg(e){return e?(e=Da,e):Da}function Jg(e,t,n,a,s,o){s=Kg(s),a.context===null?a.context=s:a.pendingContext=s,a=rl(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=il(e,a,t),n!==null&&(Tt(n,e,t),Jr(n,e,t))}function $g(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zc(e,t){$g(e,t),(e=e.alternate)&&$g(e,t)}function Fg(e){if(e.tag===13||e.tag===31){var t=Gl(e,67108864);t!==null&&Tt(t,e,67108864),Zc(e,67108864)}}function Wg(e){if(e.tag===13||e.tag===31){var t=Bt();t=ks(t);var n=Gl(e,t);n!==null&&Tt(n,e,t),Zc(e,t)}}var ns=!0;function Kb(e,t,n,a){var s=D.T;D.T=null;var o=F.p;try{F.p=2,Kc(e,t,n,a)}finally{F.p=o,D.T=s}}function Jb(e,t,n,a){var s=D.T;D.T=null;var o=F.p;try{F.p=8,Kc(e,t,n,a)}finally{F.p=o,D.T=s}}function Kc(e,t,n,a){if(ns){var s=Jc(a);if(s===null)_c(e,t,a,ls,n),Ig(e,a);else if(Fb(s,e,t,n,a))a.stopPropagation();else if(Ig(e,a),t&4&&-1<$b.indexOf(e)){for(;s!==null;){var o=Sa(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var h=Hl(o.pendingLanes);if(h!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var N=1<<31-Dt(h);v.entanglements[1]|=N,h&=~N}pn(o),(Oe&6)===0&&(Bu=Mt()+500,ci(0))}}break;case 31:case 13:v=Gl(o,2),v!==null&&Tt(v,o,2),Qu(),Zc(o,2)}if(o=Jc(a),o===null&&_c(e,t,a,ls,n),o===s)break;s=o}s!==null&&a.stopPropagation()}else _c(e,t,a,null,n)}}function Jc(e){return e=$s(e),$c(e)}var ls=null;function $c(e){if(ls=null,e=xa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ls=e,null}function Pg(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(U0()){case id:return 2;case ud:return 8;case Zi:case L0:return 32;case sd:return 268435456;default:return 32}default:return 32}}var Fc=!1,yl=null,vl=null,bl=null,yi=new Map,vi=new Map,xl=[],$b="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 Ig(e,t){switch(e){case"focusin":case"focusout":yl=null;break;case"dragenter":case"dragleave":vl=null;break;case"mouseover":case"mouseout":bl=null;break;case"pointerover":case"pointerout":yi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vi.delete(t.pointerId)}}function bi(e,t,n,a,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Sa(t),t!==null&&Fg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Fb(e,t,n,a,s){switch(t){case"focusin":return yl=bi(yl,e,t,n,a,s),!0;case"dragenter":return vl=bi(vl,e,t,n,a,s),!0;case"mouseover":return bl=bi(bl,e,t,n,a,s),!0;case"pointerover":var o=s.pointerId;return yi.set(o,bi(yi.get(o)||null,e,t,n,a,s)),!0;case"gotpointercapture":return o=s.pointerId,vi.set(o,bi(vi.get(o)||null,e,t,n,a,s)),!0}return!1}function ep(e){var t=xa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,md(e.priority,function(){Wg(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,md(e.priority,function(){Wg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function as(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Js=a,n.target.dispatchEvent(a),Js=null}else return t=Sa(n),t!==null&&Fg(t),e.blockedOn=n,!1;t.shift()}return!0}function tp(e,t,n){as(e)&&n.delete(t)}function Wb(){Fc=!1,yl!==null&&as(yl)&&(yl=null),vl!==null&&as(vl)&&(vl=null),bl!==null&&as(bl)&&(bl=null),yi.forEach(tp),vi.forEach(tp)}function rs(e,t){e.blockedOn===t&&(e.blockedOn=null,Fc||(Fc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Wb)))}var is=null;function np(e){is!==e&&(is=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){is===e&&(is=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if($c(a||n)===null)continue;break}var o=Sa(n);o!==null&&(e.splice(t,3),t-=3,Jo(o,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function nr(e){function t(N){return rs(N,e)}yl!==null&&rs(yl,e),vl!==null&&rs(vl,e),bl!==null&&rs(bl,e),yi.forEach(t),vi.forEach(t);for(var n=0;n<xl.length;n++){var a=xl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<xl.length&&(n=xl[0],n.blockedOn===null);)ep(n),n.blockedOn===null&&xl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],o=n[a+1],h=s[bt]||null;if(typeof o=="function")h||np(n);else if(h){var v=null;if(o&&o.hasAttribute("formAction")){if(s=o,h=o[bt]||null)v=h.formAction;else if($c(s)!==null)continue}else v=h.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),np(n)}}}function lp(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(h){return s=h})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Wc(e){this._internalRoot=e}us.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=Bt();Jg(n,a,e,t,null,null)},us.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jg(e.current,2,null,e,null,null),Qu(),t[ba]=null}};function us(e){this._internalRoot=e}us.prototype.unstable_scheduleHydration=function(e){if(e){var t=hd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xl.length&&t!==0&&t<xl[n].priority;n++);xl.splice(n,0,e),n===0&&ep(e)}};var ap=r.version;if(ap!=="19.2.0")throw Error(u(527,ap,"19.2.0"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Pb={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{Or=ss.inject(Pb),zt=ss}catch{}}return Si.createRoot=function(e,t){if(!c(e))throw Error(u(299));var n=!1,a="",s=fm,o=dm,h=hm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Zg(e,1,!1,null,null,n,a,null,s,o,h,lp),e[ba]=t.current,Dc(e),new Wc(t)},Si.hydrateRoot=function(e,t,n){if(!c(e))throw Error(u(299));var a=!1,s="",o=fm,h=dm,v=hm,N=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=Zg(e,1,!0,t,n??null,a,s,N,o,h,v,lp),t.context=Kg(null),n=t.current,a=Bt(),a=ks(a),s=rl(a),s.callback=null,il(n,s,a),n=a,t.current.lanes=n,Mr(t,n),pn(t),e[ba]=t.current,Dc(e),new us(t)},Si.version="19.2.0",Si}var gp;function o1(){if(gp)return tf.exports;gp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),tf.exports=s1(),tf.exports}var c1=o1();const f1=sy(c1);var xr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},d1={setTimeout:(l,r)=>setTimeout(l,r),clearTimeout:l=>clearTimeout(l),setInterval:(l,r)=>setInterval(l,r),clearInterval:l=>clearInterval(l)},Tl,Df,Wp,h1=(Wp=class{constructor(){ie(this,Tl,d1);ie(this,Df,!1)}setTimeoutProvider(l){ee(this,Tl,l)}setTimeout(l,r){return T(this,Tl).setTimeout(l,r)}clearTimeout(l){T(this,Tl).clearTimeout(l)}setInterval(l,r){return T(this,Tl).setInterval(l,r)}clearInterval(l){T(this,Tl).clearInterval(l)}},Tl=new WeakMap,Df=new WeakMap,Wp),la=new h1;function m1(l){setTimeout(l,0)}var ga=typeof window>"u"||"Deno"in globalThis;function yt(){}function g1(l,r){return typeof l=="function"?l(r):l}function hf(l){return typeof l=="number"&&l>=0&&l!==1/0}function cy(l,r){return Math.max(l+(r||0)-Date.now(),0)}function Ul(l,r){return typeof l=="function"?l(r):l}function tn(l,r){return typeof l=="function"?l(r):l}function pp(l,r){const{type:i="all",exact:u,fetchStatus:c,predicate:f,queryKey:d,stale:m}=l;if(d){if(u){if(r.queryHash!==Lf(d,r.options))return!1}else if(!Mi(r.queryKey,d))return!1}if(i!=="all"){const y=r.isActive();if(i==="active"&&!y||i==="inactive"&&y)return!1}return!(typeof m=="boolean"&&r.isStale()!==m||c&&c!==r.state.fetchStatus||f&&!f(r))}function yp(l,r){const{exact:i,status:u,predicate:c,mutationKey:f}=l;if(f){if(!r.options.mutationKey)return!1;if(i){if(pa(r.options.mutationKey)!==pa(f))return!1}else if(!Mi(r.options.mutationKey,f))return!1}return!(u&&r.state.status!==u||c&&!c(r))}function Lf(l,r){return((r==null?void 0:r.queryKeyHashFn)||pa)(l)}function pa(l){return JSON.stringify(l,(r,i)=>mf(i)?Object.keys(i).sort().reduce((u,c)=>(u[c]=i[c],u),{}):i)}function Mi(l,r){return l===r?!0:typeof l!=typeof r?!1:l&&r&&typeof l=="object"&&typeof r=="object"?Object.keys(r).every(i=>Mi(l[i],r[i])):!1}var p1=Object.prototype.hasOwnProperty;function fy(l,r){if(l===r)return l;const i=vp(l)&&vp(r);if(!i&&!(mf(l)&&mf(r)))return r;const c=(i?l:Object.keys(l)).length,f=i?r:Object.keys(r),d=f.length,m=i?new Array(d):{};let y=0;for(let g=0;g<d;g++){const x=i?g:f[g],S=l[x],w=r[x];if(S===w){m[x]=S,(i?g<c:p1.call(l,x))&&y++;continue}if(S===null||w===null||typeof S!="object"||typeof w!="object"){m[x]=w;continue}const R=fy(S,w);m[x]=R,R===S&&y++}return c===d&&y===c?l:m}function bs(l,r){if(!r||Object.keys(l).length!==Object.keys(r).length)return!1;for(const i in l)if(l[i]!==r[i])return!1;return!0}function vp(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function mf(l){if(!bp(l))return!1;const r=l.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!bp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function bp(l){return Object.prototype.toString.call(l)==="[object Object]"}function y1(l){return new Promise(r=>{la.setTimeout(r,l)})}function gf(l,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(l,r):i.structuralSharing!==!1?fy(l,r):r}function v1(l,r,i=0){const u=[...l,r];return i&&u.length>i?u.slice(1):u}function b1(l,r,i=0){const u=[r,...l];return i&&u.length>i?u.slice(0,-1):u}var qf=Symbol();function dy(l,r){return!l.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!l.queryFn||l.queryFn===qf?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function hy(l,r){return typeof l=="function"?l(...r):!!l}var aa,Cl,ur,Pp,x1=(Pp=class extends xr{constructor(){super();ie(this,aa);ie(this,Cl);ie(this,ur);ee(this,ur,r=>{if(!ga&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){T(this,Cl)||this.setEventListener(T(this,ur))}onUnsubscribe(){var r;this.hasListeners()||((r=T(this,Cl))==null||r.call(this),ee(this,Cl,void 0))}setEventListener(r){var i;ee(this,ur,r),(i=T(this,Cl))==null||i.call(this),ee(this,Cl,r(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(r){T(this,aa)!==r&&(ee(this,aa,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof T(this,aa)=="boolean"?T(this,aa):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},aa=new WeakMap,Cl=new WeakMap,ur=new WeakMap,Pp),jf=new x1;function pf(){let l,r;const i=new Promise((c,f)=>{l=c,r=f});i.status="pending",i.catch(()=>{});function u(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{u({status:"fulfilled",value:c}),l(c)},i.reject=c=>{u({status:"rejected",reason:c}),r(c)},i}var S1=m1;function E1(){let l=[],r=0,i=m=>{m()},u=m=>{m()},c=S1;const f=m=>{r?l.push(m):c(()=>{i(m)})},d=()=>{const m=l;l=[],m.length&&c(()=>{u(()=>{m.forEach(y=>{i(y)})})})};return{batch:m=>{let y;r++;try{y=m()}finally{r--,r||d()}return y},batchCalls:m=>(...y)=>{f(()=>{m(...y)})},schedule:f,setNotifyFunction:m=>{i=m},setBatchNotifyFunction:m=>{u=m},setScheduler:m=>{c=m}}}var lt=E1(),sr,Al,or,Ip,w1=(Ip=class extends xr{constructor(){super();ie(this,sr,!0);ie(this,Al);ie(this,or);ee(this,or,r=>{if(!ga&&window.addEventListener){const i=()=>r(!0),u=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",u)}}})}onSubscribe(){T(this,Al)||this.setEventListener(T(this,or))}onUnsubscribe(){var r;this.hasListeners()||((r=T(this,Al))==null||r.call(this),ee(this,Al,void 0))}setEventListener(r){var i;ee(this,or,r),(i=T(this,Al))==null||i.call(this),ee(this,Al,r(this.setOnline.bind(this)))}setOnline(r){T(this,sr)!==r&&(ee(this,sr,r),this.listeners.forEach(u=>{u(r)}))}isOnline(){return T(this,sr)}},sr=new WeakMap,Al=new WeakMap,or=new WeakMap,Ip),xs=new w1;function N1(l){return Math.min(1e3*2**l,3e4)}function my(l){return(l??"online")==="online"?xs.isOnline():!0}var yf=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function gy(l){let r=!1,i=0,u;const c=pf(),f=()=>c.status!=="pending",d=M=>{var z;if(!f()){const q=new yf(M);w(q),(z=l.onCancel)==null||z.call(l,q)}},m=()=>{r=!0},y=()=>{r=!1},g=()=>jf.isFocused()&&(l.networkMode==="always"||xs.isOnline())&&l.canRun(),x=()=>my(l.networkMode)&&l.canRun(),S=M=>{f()||(u==null||u(),c.resolve(M))},w=M=>{f()||(u==null||u(),c.reject(M))},R=()=>new Promise(M=>{var z;u=q=>{(f()||g())&&M(q)},(z=l.onPause)==null||z.call(l)}).then(()=>{var M;u=void 0,f()||(M=l.onContinue)==null||M.call(l)}),Y=()=>{if(f())return;let M;const z=i===0?l.initialPromise:void 0;try{M=z??l.fn()}catch(q){M=Promise.reject(q)}Promise.resolve(M).then(S).catch(q=>{var H;if(f())return;const Q=l.retry??(ga?0:3),k=l.retryDelay??N1,V=typeof k=="function"?k(i,q):k,G=Q===!0||typeof Q=="number"&&i<Q||typeof Q=="function"&&Q(i,q);if(r||!G){w(q);return}i++,(H=l.onFail)==null||H.call(l,i,q),y1(V).then(()=>g()?void 0:R()).then(()=>{r?w(q):Y()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(u==null||u(),c),cancelRetry:m,continueRetry:y,canStart:x,start:()=>(x()?Y():R().then(Y),c)}}var ra,ey,py=(ey=class{constructor(){ie(this,ra)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hf(this.gcTime)&&ee(this,ra,la.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(ga?1/0:300*1e3))}clearGcTimeout(){T(this,ra)&&(la.clearTimeout(T(this,ra)),ee(this,ra,void 0))}},ra=new WeakMap,ey),ia,cr,en,ua,it,Ui,sa,on,Qn,ty,T1=(ty=class extends py{constructor(r){super();ie(this,on);ie(this,ia);ie(this,cr);ie(this,en);ie(this,ua);ie(this,it);ie(this,Ui);ie(this,sa);ee(this,sa,!1),ee(this,Ui,r.defaultOptions),this.setOptions(r.options),this.observers=[],ee(this,ua,r.client),ee(this,en,T(this,ua).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,ee(this,ia,xp(this.options)),this.state=r.state??T(this,ia),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=T(this,it))==null?void 0:r.promise}setOptions(r){if(this.options={...T(this,Ui),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=xp(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),ee(this,ia,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,en).remove(this)}setData(r,i){const u=gf(this.state.data,r,this.options);return ye(this,on,Qn).call(this,{data:u,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),u}setState(r,i){ye(this,on,Qn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var u,c;const i=(u=T(this,it))==null?void 0:u.promise;return(c=T(this,it))==null||c.cancel(r),i?i.then(yt).catch(yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,ia))}isActive(){return this.observers.some(r=>tn(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>Ul(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!cy(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(u=>u.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=T(this,it))==null||i.continue()}onOnline(){var i;const r=this.observers.find(u=>u.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=T(this,it))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),T(this,en).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(T(this,it)&&(T(this,sa)?T(this,it).cancel({revert:!0}):T(this,it).cancelRetry()),this.scheduleGc()),T(this,en).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ye(this,on,Qn).call(this,{type:"invalidate"})}async fetch(r,i){var y,g,x,S,w,R,Y,M,z,q,Q,k;if(this.state.fetchStatus!=="idle"&&((y=T(this,it))==null?void 0:y.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(T(this,it))return T(this,it).continueRetry(),T(this,it).promise}if(r&&this.setOptions(r),!this.options.queryFn){const V=this.observers.find(G=>G.options.queryFn);V&&this.setOptions(V.options)}const u=new AbortController,c=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(ee(this,sa,!0),u.signal)})},f=()=>{const V=dy(this.options,i),H=(()=>{const J={client:T(this,ua),queryKey:this.queryKey,meta:this.meta};return c(J),J})();return ee(this,sa,!1),this.options.persister?this.options.persister(V,H,this):V(H)},m=(()=>{const V={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:T(this,ua),state:this.state,fetchFn:f};return c(V),V})();(g=this.options.behavior)==null||g.onFetch(m,this),ee(this,cr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&ye(this,on,Qn).call(this,{type:"fetch",meta:(S=m.fetchOptions)==null?void 0:S.meta}),ee(this,it,gy({initialPromise:i==null?void 0:i.initialPromise,fn:m.fetchFn,onCancel:V=>{V instanceof yf&&V.revert&&this.setState({...T(this,cr),fetchStatus:"idle"}),u.abort()},onFail:(V,G)=>{ye(this,on,Qn).call(this,{type:"failed",failureCount:V,error:G})},onPause:()=>{ye(this,on,Qn).call(this,{type:"pause"})},onContinue:()=>{ye(this,on,Qn).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const V=await T(this,it).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(R=(w=T(this,en).config).onSuccess)==null||R.call(w,V,this),(M=(Y=T(this,en).config).onSettled)==null||M.call(Y,V,this.state.error,this),V}catch(V){if(V instanceof yf){if(V.silent)return T(this,it).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw ye(this,on,Qn).call(this,{type:"error",error:V}),(q=(z=T(this,en).config).onError)==null||q.call(z,V,this),(k=(Q=T(this,en).config).onSettled)==null||k.call(Q,this.state.data,V,this),V}finally{this.scheduleGc()}}},ia=new WeakMap,cr=new WeakMap,en=new WeakMap,ua=new WeakMap,it=new WeakMap,Ui=new WeakMap,sa=new WeakMap,on=new WeakSet,Qn=function(r){const i=u=>{switch(r.type){case"failed":return{...u,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...yy(u.data,this.options),fetchMeta:r.meta??null};case"success":const c={...u,data:r.data,dataUpdateCount:u.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,cr,r.manual?c:void 0),c;case"error":const f=r.error;return{...u,error:f,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...r.state}}};this.state=i(this.state),lt.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),T(this,en).notify({query:this,type:"updated",action:r})})},ty);function yy(l,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:my(r.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function xp(l){const r=typeof l.initialData=="function"?l.initialData():l.initialData,i=r!==void 0,u=i?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Ct,Ne,Li,gt,oa,fr,Gn,Ol,qi,dr,hr,ca,fa,Rl,mr,Me,Ti,vf,bf,xf,Sf,Ef,wf,Nf,vy,ny,C1=(ny=class extends xr{constructor(r,i){super();ie(this,Me);ie(this,Ct);ie(this,Ne);ie(this,Li);ie(this,gt);ie(this,oa);ie(this,fr);ie(this,Gn);ie(this,Ol);ie(this,qi);ie(this,dr);ie(this,hr);ie(this,ca);ie(this,fa);ie(this,Rl);ie(this,mr,new Set);this.options=i,ee(this,Ct,r),ee(this,Ol,null),ee(this,Gn,pf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Ne).addObserver(this),Sp(T(this,Ne),this.options)?ye(this,Me,Ti).call(this):this.updateResult(),ye(this,Me,Sf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tf(T(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tf(T(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,Me,Ef).call(this),ye(this,Me,wf).call(this),T(this,Ne).removeObserver(this)}setOptions(r){const i=this.options,u=T(this,Ne);if(this.options=T(this,Ct).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tn(this.options.enabled,T(this,Ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ye(this,Me,Nf).call(this),T(this,Ne).setOptions(this.options),i._defaulted&&!bs(this.options,i)&&T(this,Ct).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Ne),observer:this});const c=this.hasListeners();c&&Ep(T(this,Ne),u,this.options,i)&&ye(this,Me,Ti).call(this),this.updateResult(),c&&(T(this,Ne)!==u||tn(this.options.enabled,T(this,Ne))!==tn(i.enabled,T(this,Ne))||Ul(this.options.staleTime,T(this,Ne))!==Ul(i.staleTime,T(this,Ne)))&&ye(this,Me,vf).call(this);const f=ye(this,Me,bf).call(this);c&&(T(this,Ne)!==u||tn(this.options.enabled,T(this,Ne))!==tn(i.enabled,T(this,Ne))||f!==T(this,Rl))&&ye(this,Me,xf).call(this,f)}getOptimisticResult(r){const i=T(this,Ct).getQueryCache().build(T(this,Ct),r),u=this.createResult(i,r);return O1(this,u)&&(ee(this,gt,u),ee(this,fr,this.options),ee(this,oa,T(this,Ne).state)),u}getCurrentResult(){return T(this,gt)}trackResult(r,i){return new Proxy(r,{get:(u,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&!this.options.experimental_prefetchInRender&&T(this,Gn).status==="pending"&&T(this,Gn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(u,c))})}trackProp(r){T(this,mr).add(r)}getCurrentQuery(){return T(this,Ne)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=T(this,Ct).defaultQueryOptions(r),u=T(this,Ct).getQueryCache().build(T(this,Ct),i);return u.fetch().then(()=>this.createResult(u,i))}fetch(r){return ye(this,Me,Ti).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,gt)))}createResult(r,i){var W;const u=T(this,Ne),c=this.options,f=T(this,gt),d=T(this,oa),m=T(this,fr),g=r!==u?r.state:T(this,Li),{state:x}=r;let S={...x},w=!1,R;if(i._optimisticResults){const $=this.hasListeners(),ce=!$&&Sp(r,i),se=$&&Ep(r,u,i,c);(ce||se)&&(S={...S,...yy(x.data,r.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:Y,errorUpdatedAt:M,status:z}=S;R=S.data;let q=!1;if(i.placeholderData!==void 0&&R===void 0&&z==="pending"){let $;f!=null&&f.isPlaceholderData&&i.placeholderData===(m==null?void 0:m.placeholderData)?($=f.data,q=!0):$=typeof i.placeholderData=="function"?i.placeholderData((W=T(this,hr))==null?void 0:W.state.data,T(this,hr)):i.placeholderData,$!==void 0&&(z="success",R=gf(f==null?void 0:f.data,$,i),w=!0)}if(i.select&&R!==void 0&&!q)if(f&&R===(d==null?void 0:d.data)&&i.select===T(this,qi))R=T(this,dr);else try{ee(this,qi,i.select),R=i.select(R),R=gf(f==null?void 0:f.data,R,i),ee(this,dr,R),ee(this,Ol,null)}catch($){ee(this,Ol,$)}T(this,Ol)&&(Y=T(this,Ol),R=T(this,dr),M=Date.now(),z="error");const Q=S.fetchStatus==="fetching",k=z==="pending",V=z==="error",G=k&&Q,H=R!==void 0,I={status:z,fetchStatus:S.fetchStatus,isPending:k,isSuccess:z==="success",isError:V,isInitialLoading:G,isLoading:G,data:R,dataUpdatedAt:S.dataUpdatedAt,error:Y,errorUpdatedAt:M,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>g.dataUpdateCount||S.errorUpdateCount>g.errorUpdateCount,isFetching:Q,isRefetching:Q&&!k,isLoadingError:V&&!H,isPaused:S.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:V&&H,isStale:Hf(r,i),refetch:this.refetch,promise:T(this,Gn),isEnabled:tn(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const $=He=>{I.status==="error"?He.reject(I.error):I.data!==void 0&&He.resolve(I.data)},ce=()=>{const He=ee(this,Gn,I.promise=pf());$(He)},se=T(this,Gn);switch(se.status){case"pending":r.queryHash===u.queryHash&&$(se);break;case"fulfilled":(I.status==="error"||I.data!==se.value)&&ce();break;case"rejected":(I.status!=="error"||I.error!==se.reason)&&ce();break}}return I}updateResult(){const r=T(this,gt),i=this.createResult(T(this,Ne),this.options);if(ee(this,oa,T(this,Ne).state),ee(this,fr,this.options),T(this,oa).data!==void 0&&ee(this,hr,T(this,Ne)),bs(i,r))return;ee(this,gt,i);const u=()=>{if(!r)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!T(this,mr).size)return!0;const d=new Set(f??T(this,mr));return this.options.throwOnError&&d.add("error"),Object.keys(T(this,gt)).some(m=>{const y=m;return T(this,gt)[y]!==r[y]&&d.has(y)})};ye(this,Me,vy).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,Me,Sf).call(this)}},Ct=new WeakMap,Ne=new WeakMap,Li=new WeakMap,gt=new WeakMap,oa=new WeakMap,fr=new WeakMap,Gn=new WeakMap,Ol=new WeakMap,qi=new WeakMap,dr=new WeakMap,hr=new WeakMap,ca=new WeakMap,fa=new WeakMap,Rl=new WeakMap,mr=new WeakMap,Me=new WeakSet,Ti=function(r){ye(this,Me,Nf).call(this);let i=T(this,Ne).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(yt)),i},vf=function(){ye(this,Me,Ef).call(this);const r=Ul(this.options.staleTime,T(this,Ne));if(ga||T(this,gt).isStale||!hf(r))return;const u=cy(T(this,gt).dataUpdatedAt,r)+1;ee(this,ca,la.setTimeout(()=>{T(this,gt).isStale||this.updateResult()},u))},bf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Ne)):this.options.refetchInterval)??!1},xf=function(r){ye(this,Me,wf).call(this),ee(this,Rl,r),!(ga||tn(this.options.enabled,T(this,Ne))===!1||!hf(T(this,Rl))||T(this,Rl)===0)&&ee(this,fa,la.setInterval(()=>{(this.options.refetchIntervalInBackground||jf.isFocused())&&ye(this,Me,Ti).call(this)},T(this,Rl)))},Sf=function(){ye(this,Me,vf).call(this),ye(this,Me,xf).call(this,ye(this,Me,bf).call(this))},Ef=function(){T(this,ca)&&(la.clearTimeout(T(this,ca)),ee(this,ca,void 0))},wf=function(){T(this,fa)&&(la.clearInterval(T(this,fa)),ee(this,fa,void 0))},Nf=function(){const r=T(this,Ct).getQueryCache().build(T(this,Ct),this.options);if(r===T(this,Ne))return;const i=T(this,Ne);ee(this,Ne,r),ee(this,Li,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},vy=function(r){lt.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(T(this,gt))}),T(this,Ct).getQueryCache().notify({query:T(this,Ne),type:"observerResultsUpdated"})})},ny);function A1(l,r){return tn(r.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&r.retryOnMount===!1)}function Sp(l,r){return A1(l,r)||l.state.data!==void 0&&Tf(l,r,r.refetchOnMount)}function Tf(l,r,i){if(tn(r.enabled,l)!==!1&&Ul(r.staleTime,l)!=="static"){const u=typeof i=="function"?i(l):i;return u==="always"||u!==!1&&Hf(l,r)}return!1}function Ep(l,r,i,u){return(l!==r||tn(u.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&Hf(l,i)}function Hf(l,r){return tn(r.enabled,l)!==!1&&l.isStaleByTime(Ul(r.staleTime,l))}function O1(l,r){return!bs(l.getCurrentResult(),r)}function wp(l){return{onFetch:(r,i)=>{var x,S,w,R,Y;const u=r.options,c=(w=(S=(x=r.fetchOptions)==null?void 0:x.meta)==null?void 0:S.fetchMore)==null?void 0:w.direction,f=((R=r.state.data)==null?void 0:R.pages)||[],d=((Y=r.state.data)==null?void 0:Y.pageParams)||[];let m={pages:[],pageParams:[]},y=0;const g=async()=>{let M=!1;const z=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(r.signal.aborted?M=!0:r.signal.addEventListener("abort",()=>{M=!0}),r.signal)})},q=dy(r.options,r.fetchOptions),Q=async(k,V,G)=>{if(M)return Promise.reject();if(V==null&&k.pages.length)return Promise.resolve(k);const J=(()=>{const ce={client:r.client,queryKey:r.queryKey,pageParam:V,direction:G?"backward":"forward",meta:r.options.meta};return z(ce),ce})(),I=await q(J),{maxPages:W}=r.options,$=G?b1:v1;return{pages:$(k.pages,I,W),pageParams:$(k.pageParams,V,W)}};if(c&&f.length){const k=c==="backward",V=k?R1:Np,G={pages:f,pageParams:d},H=V(u,G);m=await Q(G,H,k)}else{const k=l??f.length;do{const V=y===0?d[0]??u.initialPageParam:Np(u,m);if(y>0&&V==null)break;m=await Q(m,V),y++}while(y<k)}return m};r.options.persister?r.fetchFn=()=>{var M,z;return(z=(M=r.options).persister)==null?void 0:z.call(M,g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=g}}}function Np(l,{pages:r,pageParams:i}){const u=r.length-1;return r.length>0?l.getNextPageParam(r[u],r,i[u],i):void 0}function R1(l,{pages:r,pageParams:i}){var u;return r.length>0?(u=l.getPreviousPageParam)==null?void 0:u.call(l,r[0],r,i[0],i):void 0}var ji,yn,pt,da,vn,Nl,ly,M1=(ly=class extends py{constructor(r){super();ie(this,vn);ie(this,ji);ie(this,yn);ie(this,pt);ie(this,da);ee(this,ji,r.client),this.mutationId=r.mutationId,ee(this,pt,r.mutationCache),ee(this,yn,[]),this.state=r.state||by(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){T(this,yn).includes(r)||(T(this,yn).push(r),this.clearGcTimeout(),T(this,pt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){ee(this,yn,T(this,yn).filter(i=>i!==r)),this.scheduleGc(),T(this,pt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){T(this,yn).length||(this.state.status==="pending"?this.scheduleGc():T(this,pt).remove(this))}continue(){var r;return((r=T(this,da))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var d,m,y,g,x,S,w,R,Y,M,z,q,Q,k,V,G,H,J,I,W;const i=()=>{ye(this,vn,Nl).call(this,{type:"continue"})},u={client:T(this,ji),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,da,gy({fn:()=>this.options.mutationFn?this.options.mutationFn(r,u):Promise.reject(new Error("No mutationFn found")),onFail:($,ce)=>{ye(this,vn,Nl).call(this,{type:"failed",failureCount:$,error:ce})},onPause:()=>{ye(this,vn,Nl).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,pt).canRun(this)}));const c=this.state.status==="pending",f=!T(this,da).canStart();try{if(c)i();else{ye(this,vn,Nl).call(this,{type:"pending",variables:r,isPaused:f}),await((m=(d=T(this,pt).config).onMutate)==null?void 0:m.call(d,r,this,u));const ce=await((g=(y=this.options).onMutate)==null?void 0:g.call(y,r,u));ce!==this.state.context&&ye(this,vn,Nl).call(this,{type:"pending",context:ce,variables:r,isPaused:f})}const $=await T(this,da).start();return await((S=(x=T(this,pt).config).onSuccess)==null?void 0:S.call(x,$,r,this.state.context,this,u)),await((R=(w=this.options).onSuccess)==null?void 0:R.call(w,$,r,this.state.context,u)),await((M=(Y=T(this,pt).config).onSettled)==null?void 0:M.call(Y,$,null,this.state.variables,this.state.context,this,u)),await((q=(z=this.options).onSettled)==null?void 0:q.call(z,$,null,r,this.state.context,u)),ye(this,vn,Nl).call(this,{type:"success",data:$}),$}catch($){try{throw await((k=(Q=T(this,pt).config).onError)==null?void 0:k.call(Q,$,r,this.state.context,this,u)),await((G=(V=this.options).onError)==null?void 0:G.call(V,$,r,this.state.context,u)),await((J=(H=T(this,pt).config).onSettled)==null?void 0:J.call(H,void 0,$,this.state.variables,this.state.context,this,u)),await((W=(I=this.options).onSettled)==null?void 0:W.call(I,void 0,$,r,this.state.context,u)),$}finally{ye(this,vn,Nl).call(this,{type:"error",error:$})}}finally{T(this,pt).runNext(this)}}},ji=new WeakMap,yn=new WeakMap,pt=new WeakMap,da=new WeakMap,vn=new WeakSet,Nl=function(r){const i=u=>{switch(r.type){case"failed":return{...u,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,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{...u,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:r.error,failureCount:u.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),lt.batch(()=>{T(this,yn).forEach(u=>{u.onMutationUpdate(r)}),T(this,pt).notify({mutation:this,type:"updated",action:r})})},ly);function by(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,cn,Hi,ay,z1=(ay=class extends xr{constructor(r={}){super();ie(this,Vn);ie(this,cn);ie(this,Hi);this.config=r,ee(this,Vn,new Set),ee(this,cn,new Map),ee(this,Hi,0)}build(r,i,u){const c=new M1({client:r,mutationCache:this,mutationId:++os(this,Hi)._,options:r.defaultMutationOptions(i),state:u});return this.add(c),c}add(r){T(this,Vn).add(r);const i=cs(r);if(typeof i=="string"){const u=T(this,cn).get(i);u?u.push(r):T(this,cn).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(T(this,Vn).delete(r)){const i=cs(r);if(typeof i=="string"){const u=T(this,cn).get(i);if(u)if(u.length>1){const c=u.indexOf(r);c!==-1&&u.splice(c,1)}else u[0]===r&&T(this,cn).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=cs(r);if(typeof i=="string"){const u=T(this,cn).get(i),c=u==null?void 0:u.find(f=>f.state.status==="pending");return!c||c===r}else return!0}runNext(r){var u;const i=cs(r);if(typeof i=="string"){const c=(u=T(this,cn).get(i))==null?void 0:u.find(f=>f!==r&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){lt.batch(()=>{T(this,Vn).forEach(r=>{this.notify({type:"removed",mutation:r})}),T(this,Vn).clear(),T(this,cn).clear()})}getAll(){return Array.from(T(this,Vn))}find(r){const i={exact:!0,...r};return this.getAll().find(u=>yp(i,u))}findAll(r={}){return this.getAll().filter(i=>yp(r,i))}notify(r){lt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return lt.batch(()=>Promise.all(r.map(i=>i.continue().catch(yt))))}},Vn=new WeakMap,cn=new WeakMap,Hi=new WeakMap,ay);function cs(l){var r;return(r=l.options.scope)==null?void 0:r.id}var Xn,Ml,At,Zn,$n,ps,Cf,ry,D1=(ry=class extends xr{constructor(i,u){super();ie(this,$n);ie(this,Xn);ie(this,Ml);ie(this,At);ie(this,Zn);ee(this,Xn,i),this.setOptions(u),this.bindMethods(),ye(this,$n,ps).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const u=this.options;this.options=T(this,Xn).defaultMutationOptions(i),bs(this.options,u)||T(this,Xn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,At),observer:this}),u!=null&&u.mutationKey&&this.options.mutationKey&&pa(u.mutationKey)!==pa(this.options.mutationKey)?this.reset():((c=T(this,At))==null?void 0:c.state.status)==="pending"&&T(this,At).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=T(this,At))==null||i.removeObserver(this)}onMutationUpdate(i){ye(this,$n,ps).call(this),ye(this,$n,Cf).call(this,i)}getCurrentResult(){return T(this,Ml)}reset(){var i;(i=T(this,At))==null||i.removeObserver(this),ee(this,At,void 0),ye(this,$n,ps).call(this),ye(this,$n,Cf).call(this)}mutate(i,u){var c;return ee(this,Zn,u),(c=T(this,At))==null||c.removeObserver(this),ee(this,At,T(this,Xn).getMutationCache().build(T(this,Xn),this.options)),T(this,At).addObserver(this),T(this,At).execute(i)}},Xn=new WeakMap,Ml=new WeakMap,At=new WeakMap,Zn=new WeakMap,$n=new WeakSet,ps=function(){var u;const i=((u=T(this,At))==null?void 0:u.state)??by();ee(this,Ml,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Cf=function(i){lt.batch(()=>{var u,c,f,d,m,y,g,x;if(T(this,Zn)&&this.hasListeners()){const S=T(this,Ml).variables,w=T(this,Ml).context,R={client:T(this,Xn),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((c=(u=T(this,Zn)).onSuccess)==null||c.call(u,i.data,S,w,R),(d=(f=T(this,Zn)).onSettled)==null||d.call(f,i.data,null,S,w,R)):(i==null?void 0:i.type)==="error"&&((y=(m=T(this,Zn)).onError)==null||y.call(m,i.error,S,w,R),(x=(g=T(this,Zn)).onSettled)==null||x.call(g,void 0,i.error,S,w,R))}this.listeners.forEach(S=>{S(T(this,Ml))})})},ry),bn,iy,_1=(iy=class extends xr{constructor(r={}){super();ie(this,bn);this.config=r,ee(this,bn,new Map)}build(r,i,u){const c=i.queryKey,f=i.queryHash??Lf(c,i);let d=this.get(f);return d||(d=new T1({client:r,queryKey:c,queryHash:f,options:r.defaultQueryOptions(i),state:u,defaultOptions:r.getQueryDefaults(c)}),this.add(d)),d}add(r){T(this,bn).has(r.queryHash)||(T(this,bn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=T(this,bn).get(r.queryHash);i&&(r.destroy(),i===r&&T(this,bn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){lt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return T(this,bn).get(r)}getAll(){return[...T(this,bn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(u=>pp(i,u))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(u=>pp(r,u)):i}notify(r){lt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){lt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){lt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},bn=new WeakMap,iy),Je,zl,Dl,gr,pr,_l,yr,vr,uy,U1=(uy=class{constructor(l={}){ie(this,Je);ie(this,zl);ie(this,Dl);ie(this,gr);ie(this,pr);ie(this,_l);ie(this,yr);ie(this,vr);ee(this,Je,l.queryCache||new _1),ee(this,zl,l.mutationCache||new z1),ee(this,Dl,l.defaultOptions||{}),ee(this,gr,new Map),ee(this,pr,new Map),ee(this,_l,0)}mount(){os(this,_l)._++,T(this,_l)===1&&(ee(this,yr,jf.subscribe(async l=>{l&&(await this.resumePausedMutations(),T(this,Je).onFocus())})),ee(this,vr,xs.subscribe(async l=>{l&&(await this.resumePausedMutations(),T(this,Je).onOnline())})))}unmount(){var l,r;os(this,_l)._--,T(this,_l)===0&&((l=T(this,yr))==null||l.call(this),ee(this,yr,void 0),(r=T(this,vr))==null||r.call(this),ee(this,vr,void 0))}isFetching(l){return T(this,Je).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return T(this,zl).findAll({...l,status:"pending"}).length}getQueryData(l){var i;const r=this.defaultQueryOptions({queryKey:l});return(i=T(this,Je).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(l){const r=this.defaultQueryOptions(l),i=T(this,Je).build(this,r),u=i.state.data;return u===void 0?this.fetchQuery(l):(l.revalidateIfStale&&i.isStaleByTime(Ul(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(u))}getQueriesData(l){return T(this,Je).findAll(l).map(({queryKey:r,state:i})=>{const u=i.data;return[r,u]})}setQueryData(l,r,i){const u=this.defaultQueryOptions({queryKey:l}),c=T(this,Je).get(u.queryHash),f=c==null?void 0:c.state.data,d=g1(r,f);if(d!==void 0)return T(this,Je).build(this,u).setData(d,{...i,manual:!0})}setQueriesData(l,r,i){return lt.batch(()=>T(this,Je).findAll(l).map(({queryKey:u})=>[u,this.setQueryData(u,r,i)]))}getQueryState(l){var i;const r=this.defaultQueryOptions({queryKey:l});return(i=T(this,Je).get(r.queryHash))==null?void 0:i.state}removeQueries(l){const r=T(this,Je);lt.batch(()=>{r.findAll(l).forEach(i=>{r.remove(i)})})}resetQueries(l,r){const i=T(this,Je);return lt.batch(()=>(i.findAll(l).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...l},r)))}cancelQueries(l,r={}){const i={revert:!0,...r},u=lt.batch(()=>T(this,Je).findAll(l).map(c=>c.cancel(i)));return Promise.all(u).then(yt).catch(yt)}invalidateQueries(l,r={}){return lt.batch(()=>(T(this,Je).findAll(l).forEach(i=>{i.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},r)))}refetchQueries(l,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},u=lt.batch(()=>T(this,Je).findAll(l).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(yt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(u).then(yt)}fetchQuery(l){const r=this.defaultQueryOptions(l);r.retry===void 0&&(r.retry=!1);const i=T(this,Je).build(this,r);return i.isStaleByTime(Ul(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(yt).catch(yt)}fetchInfiniteQuery(l){return l.behavior=wp(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(yt).catch(yt)}ensureInfiniteQueryData(l){return l.behavior=wp(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return xs.isOnline()?T(this,zl).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Je)}getMutationCache(){return T(this,zl)}getDefaultOptions(){return T(this,Dl)}setDefaultOptions(l){ee(this,Dl,l)}setQueryDefaults(l,r){T(this,gr).set(pa(l),{queryKey:l,defaultOptions:r})}getQueryDefaults(l){const r=[...T(this,gr).values()],i={};return r.forEach(u=>{Mi(l,u.queryKey)&&Object.assign(i,u.defaultOptions)}),i}setMutationDefaults(l,r){T(this,pr).set(pa(l),{mutationKey:l,defaultOptions:r})}getMutationDefaults(l){const r=[...T(this,pr).values()],i={};return r.forEach(u=>{Mi(l,u.mutationKey)&&Object.assign(i,u.defaultOptions)}),i}defaultQueryOptions(l){if(l._defaulted)return l;const r={...T(this,Dl).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return r.queryHash||(r.queryHash=Lf(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===qf&&(r.enabled=!1),r}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...T(this,Dl).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){T(this,Je).clear(),T(this,zl).clear()}},Je=new WeakMap,zl=new WeakMap,Dl=new WeakMap,gr=new WeakMap,pr=new WeakMap,_l=new WeakMap,yr=new WeakMap,vr=new WeakMap,uy),xy=b.createContext(void 0),Sr=l=>{const r=b.useContext(xy);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},L1=({client:l,children:r})=>(b.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),p(xy.Provider,{value:l,children:r})),Sy=b.createContext(!1),q1=()=>b.useContext(Sy);Sy.Provider;function j1(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var H1=b.createContext(j1()),B1=()=>b.useContext(H1),k1=(l,r)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(r.isReset()||(l.retryOnMount=!1))},Q1=l=>{b.useEffect(()=>{l.clearReset()},[l])},Y1=({result:l,errorResetBoundary:r,throwOnError:i,query:u,suspense:c})=>l.isError&&!r.isReset()&&!l.isFetching&&u&&(c&&l.data===void 0||hy(i,[l.error,u])),G1=l=>{if(l.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),u=l.staleTime;l.staleTime=typeof u=="function"?(...c)=>i(u(...c)):i(u),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},V1=(l,r)=>l.isLoading&&l.isFetching&&!r,X1=(l,r)=>(l==null?void 0:l.suspense)&&r.isPending,Tp=(l,r,i)=>r.fetchOptimistic(l).catch(()=>{i.clearReset()});function Z1(l,r,i){var S,w,R,Y,M;const u=q1(),c=B1(),f=Sr(),d=f.defaultQueryOptions(l);(w=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||w.call(S,d),d._optimisticResults=u?"isRestoring":"optimistic",G1(d),k1(d,c),Q1(c);const m=!f.getQueryCache().get(d.queryHash),[y]=b.useState(()=>new r(f,d)),g=y.getOptimisticResult(d),x=!u&&l.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(z=>{const q=x?y.subscribe(lt.batchCalls(z)):yt;return y.updateResult(),q},[y,x]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),b.useEffect(()=>{y.setOptions(d)},[d,y]),X1(d,g))throw Tp(d,y,c);if(Y1({result:g,errorResetBoundary:c,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw g.error;if((Y=(R=f.getDefaultOptions().queries)==null?void 0:R._experimental_afterQuery)==null||Y.call(R,d,g),d.experimental_prefetchInRender&&!ga&&V1(g,u)){const z=m?Tp(d,y,c):(M=f.getQueryCache().get(d.queryHash))==null?void 0:M.promise;z==null||z.catch(yt).finally(()=>{y.updateResult()})}return d.notifyOnChangeProps?g:y.trackResult(g)}function Er(l,r){return Z1(l,C1)}function Ts(l,r){const i=Sr(),[u]=b.useState(()=>new D1(i,l));b.useEffect(()=>{u.setOptions(l)},[u,l]);const c=b.useSyncExternalStore(b.useCallback(d=>u.subscribe(lt.batchCalls(d)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f=b.useCallback((d,m)=>{u.mutate(d,m).catch(yt)},[u]);if(c.error&&hy(u.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}/**
50
- * react-router v7.9.4
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var Cp="popstate";function K1(l={}){function r(u,c){let{pathname:f,search:d,hash:m}=u.location;return Af("",{pathname:f,search:d,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function i(u,c){return typeof c=="string"?c:zi(c)}return $1(r,i,null,l)}function Ge(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function fn(l,r){if(!l){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function J1(){return Math.random().toString(36).substring(2,10)}function Ap(l,r){return{usr:l.state,key:l.key,idx:r}}function Af(l,r,i=null,u){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof r=="string"?wr(r):r,state:i,key:r&&r.key||u||J1()}}function zi({pathname:l="/",search:r="",hash:i=""}){return r&&r!=="?"&&(l+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(l+=i.charAt(0)==="#"?i:"#"+i),l}function wr(l){let r={};if(l){let i=l.indexOf("#");i>=0&&(r.hash=l.substring(i),l=l.substring(0,i));let u=l.indexOf("?");u>=0&&(r.search=l.substring(u),l=l.substring(0,u)),l&&(r.pathname=l)}return r}function $1(l,r,i,u={}){let{window:c=document.defaultView,v5Compat:f=!1}=u,d=c.history,m="POP",y=null,g=x();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function x(){return(d.state||{idx:null}).idx}function S(){m="POP";let z=x(),q=z==null?null:z-g;g=z,y&&y({action:m,location:M.location,delta:q})}function w(z,q){m="PUSH";let Q=Af(M.location,z,q);g=x()+1;let k=Ap(Q,g),V=M.createHref(Q);try{d.pushState(k,"",V)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;c.location.assign(V)}f&&y&&y({action:m,location:M.location,delta:1})}function R(z,q){m="REPLACE";let Q=Af(M.location,z,q);g=x();let k=Ap(Q,g),V=M.createHref(Q);d.replaceState(k,"",V),f&&y&&y({action:m,location:M.location,delta:0})}function Y(z){return F1(z)}let M={get action(){return m},get location(){return l(c,d)},listen(z){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(Cp,S),y=z,()=>{c.removeEventListener(Cp,S),y=null}},createHref(z){return r(c,z)},createURL:Y,encodeLocation(z){let q=Y(z);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:w,replace:R,go(z){return d.go(z)}};return M}function F1(l,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ge(i,"No window.location.(origin|href) available to create URL");let u=typeof l=="string"?l:zi(l);return u=u.replace(/ $/,"%20"),!r&&u.startsWith("//")&&(u=i+u),new URL(u,i)}function Ey(l,r,i="/"){return W1(l,r,i,!1)}function W1(l,r,i,u){let c=typeof r=="string"?wr(r):r,f=Fn(c.pathname||"/",i);if(f==null)return null;let d=wy(l);P1(d);let m=null;for(let y=0;m==null&&y<d.length;++y){let g=ox(f);m=ux(d[y],g,u)}return m}function wy(l,r=[],i=[],u="",c=!1){let f=(d,m,y=c,g)=>{let x={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(u)&&y)return;Ge(x.relativePath.startsWith(u),`Absolute route path "${x.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(u.length)}let S=Jn([u,x.relativePath]),w=i.concat(x);d.children&&d.children.length>0&&(Ge(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),wy(d.children,r,w,S,y)),!(d.path==null&&!d.index)&&r.push({path:S,score:rx(S,d.index),routesMeta:w})};return l.forEach((d,m)=>{var y;if(d.path===""||!((y=d.path)!=null&&y.includes("?")))f(d,m);else for(let g of Ny(d.path))f(d,m,!0,g)}),r}function Ny(l){let r=l.split("/");if(r.length===0)return[];let[i,...u]=r,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(u.length===0)return c?[f,""]:[f];let d=Ny(u.join("/")),m=[];return m.push(...d.map(y=>y===""?f:[f,y].join("/"))),c&&m.push(...d),m.map(y=>l.startsWith("/")&&y===""?"/":y)}function P1(l){l.sort((r,i)=>r.score!==i.score?i.score-r.score:ix(r.routesMeta.map(u=>u.childrenIndex),i.routesMeta.map(u=>u.childrenIndex)))}var I1=/^:[\w-]+$/,ex=3,tx=2,nx=1,lx=10,ax=-2,Op=l=>l==="*";function rx(l,r){let i=l.split("/"),u=i.length;return i.some(Op)&&(u+=ax),r&&(u+=tx),i.filter(c=>!Op(c)).reduce((c,f)=>c+(I1.test(f)?ex:f===""?nx:lx),u)}function ix(l,r){return l.length===r.length&&l.slice(0,-1).every((u,c)=>u===r[c])?l[l.length-1]-r[r.length-1]:0}function ux(l,r,i=!1){let{routesMeta:u}=l,c={},f="/",d=[];for(let m=0;m<u.length;++m){let y=u[m],g=m===u.length-1,x=f==="/"?r:r.slice(f.length)||"/",S=Ss({path:y.relativePath,caseSensitive:y.caseSensitive,end:g},x),w=y.route;if(!S&&g&&i&&!u[u.length-1].route.index&&(S=Ss({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!S)return null;Object.assign(c,S.params),d.push({params:c,pathname:Jn([f,S.pathname]),pathnameBase:hx(Jn([f,S.pathnameBase])),route:w}),S.pathnameBase!=="/"&&(f=Jn([f,S.pathnameBase]))}return d}function Ss(l,r){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,u]=sx(l.path,l.caseSensitive,l.end),c=r.match(i);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:u.reduce((g,{paramName:x,isOptional:S},w)=>{if(x==="*"){let Y=m[w]||"";d=f.slice(0,f.length-Y.length).replace(/(.)\/+$/,"$1")}const R=m[w];return S&&!R?g[x]=void 0:g[x]=(R||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:d,pattern:l}}function sx(l,r=!1,i=!0){fn(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let u=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,y)=>(u.push({paramName:m,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(u.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),u]}function ox(l){try{return l.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return fn(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),l}}function Fn(l,r){if(r==="/")return l;if(!l.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,u=l.charAt(i);return u&&u!=="/"?null:l.slice(i)||"/"}function cx(l,r="/"){let{pathname:i,search:u="",hash:c=""}=typeof l=="string"?wr(l):l;return{pathname:i?i.startsWith("/")?i:fx(i,r):r,search:mx(u),hash:gx(c)}}function fx(l,r){let i=r.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function rf(l,r,i,u){return`Cannot include a '${l}' character in a manually specified \`to.${r}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function dx(l){return l.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Bf(l){let r=dx(l);return r.map((i,u)=>u===r.length-1?i.pathname:i.pathnameBase)}function kf(l,r,i,u=!1){let c;typeof l=="string"?c=wr(l):(c={...l},Ge(!c.pathname||!c.pathname.includes("?"),rf("?","pathname","search",c)),Ge(!c.pathname||!c.pathname.includes("#"),rf("#","pathname","hash",c)),Ge(!c.search||!c.search.includes("#"),rf("#","search","hash",c)));let f=l===""||c.pathname==="",d=f?"/":c.pathname,m;if(d==null)m=i;else{let S=r.length-1;if(!u&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),S-=1;c.pathname=w.join("/")}m=S>=0?r[S]:"/"}let y=cx(c,m),g=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&i.endsWith("/");return!y.pathname.endsWith("/")&&(g||x)&&(y.pathname+="/"),y}var Jn=l=>l.join("/").replace(/\/\/+/g,"/"),hx=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),mx=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,gx=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function px(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Ty=["POST","PUT","PATCH","DELETE"];new Set(Ty);var yx=["GET",...Ty];new Set(yx);var Nr=b.createContext(null);Nr.displayName="DataRouter";var Cs=b.createContext(null);Cs.displayName="DataRouterState";b.createContext(!1);var Cy=b.createContext({isTransitioning:!1});Cy.displayName="ViewTransition";var vx=b.createContext(new Map);vx.displayName="Fetchers";var bx=b.createContext(null);bx.displayName="Await";var dn=b.createContext(null);dn.displayName="Navigation";var Bi=b.createContext(null);Bi.displayName="Location";var ln=b.createContext({outlet:null,matches:[],isDataRoute:!1});ln.displayName="Route";var Qf=b.createContext(null);Qf.displayName="RouteError";function xx(l,{relative:r}={}){Ge(Tr(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:u}=b.useContext(dn),{hash:c,pathname:f,search:d}=Qi(l,{relative:r}),m=f;return i!=="/"&&(m=f==="/"?i:Jn([i,f])),u.createHref({pathname:m,search:d,hash:c})}function Tr(){return b.useContext(Bi)!=null}function ql(){return Ge(Tr(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Bi).location}var Ay="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Oy(l){b.useContext(dn).static||b.useLayoutEffect(l)}function ki(){let{isDataRoute:l}=b.useContext(ln);return l?Lx():Sx()}function Sx(){Ge(Tr(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(Nr),{basename:r,navigator:i}=b.useContext(dn),{matches:u}=b.useContext(ln),{pathname:c}=ql(),f=JSON.stringify(Bf(u)),d=b.useRef(!1);return Oy(()=>{d.current=!0}),b.useCallback((y,g={})=>{if(fn(d.current,Ay),!d.current)return;if(typeof y=="number"){i.go(y);return}let x=kf(y,JSON.parse(f),c,g.relative==="path");l==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Jn([r,x.pathname])),(g.replace?i.replace:i.push)(x,g.state,g)},[r,i,f,c,l])}var Ex=b.createContext(null);function wx(l){let r=b.useContext(ln).outlet;return b.useMemo(()=>r&&b.createElement(Ex.Provider,{value:l},r),[r,l])}function Yf(){let{matches:l}=b.useContext(ln),r=l[l.length-1];return r?r.params:{}}function Qi(l,{relative:r}={}){let{matches:i}=b.useContext(ln),{pathname:u}=ql(),c=JSON.stringify(Bf(i));return b.useMemo(()=>kf(l,JSON.parse(c),u,r==="path"),[l,c,u,r])}function Nx(l,r){return Ry(l,r)}function Ry(l,r,i,u,c){var Q;Ge(Tr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=b.useContext(dn),{matches:d}=b.useContext(ln),m=d[d.length-1],y=m?m.params:{},g=m?m.pathname:"/",x=m?m.pathnameBase:"/",S=m&&m.route;{let k=S&&S.path||"";My(g,!S||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${k}">) 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.
59
-
60
- Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let w=ql(),R;if(r){let k=typeof r=="string"?wr(r):r;Ge(x==="/"||((Q=k.pathname)==null?void 0:Q.startsWith(x)),`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 "${x}" but pathname "${k.pathname}" was given in the \`location\` prop.`),R=k}else R=w;let Y=R.pathname||"/",M=Y;if(x!=="/"){let k=x.replace(/^\//,"").split("/");M="/"+Y.replace(/^\//,"").split("/").slice(k.length).join("/")}let z=Ey(l,{pathname:M});fn(S||z!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),fn(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.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 q=Rx(z&&z.map(k=>Object.assign({},k,{params:Object.assign({},y,k.params),pathname:Jn([x,f.encodeLocation?f.encodeLocation(k.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?x:Jn([x,f.encodeLocation?f.encodeLocation(k.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),d,i,u,c);return r&&q?b.createElement(Bi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...R},navigationType:"POP"}},q):q}function Tx(){let l=Ux(),r=px(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},r),i?b.createElement("pre",{style:c},i):null,d)}var Cx=b.createElement(Tx,null),Ax=class extends b.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,r){return r.location!==l.location||r.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:r.error,location:r.location,revalidation:l.revalidation||r.revalidation}}componentDidCatch(l,r){this.props.unstable_onError?this.props.unstable_onError(l,r):console.error("React Router caught the following error during render",l)}render(){return this.state.error!==void 0?b.createElement(ln.Provider,{value:this.props.routeContext},b.createElement(Qf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ox({routeContext:l,match:r,children:i}){let u=b.useContext(Nr);return u&&u.static&&u.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(ln.Provider,{value:l},i)}function Rx(l,r=[],i=null,u=null,c=null){if(l==null){if(!i)return null;if(i.errors)l=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)l=i.matches;else return null}let f=l,d=i==null?void 0:i.errors;if(d!=null){let g=f.findIndex(x=>x.route.id&&(d==null?void 0:d[x.route.id])!==void 0);Ge(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let m=!1,y=-1;if(i)for(let g=0;g<f.length;g++){let x=f[g];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(y=g),x.route.id){let{loaderData:S,errors:w}=i,R=x.route.loader&&!S.hasOwnProperty(x.route.id)&&(!w||w[x.route.id]===void 0);if(x.route.lazy||R){m=!0,y>=0?f=f.slice(0,y+1):f=[f[0]];break}}}return f.reduceRight((g,x,S)=>{let w,R=!1,Y=null,M=null;i&&(w=d&&x.route.id?d[x.route.id]:void 0,Y=x.route.errorElement||Cx,m&&(y<0&&S===0?(My("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,M=null):y===S&&(R=!0,M=x.route.hydrateFallbackElement||null)));let z=r.concat(f.slice(0,S+1)),q=()=>{let Q;return w?Q=Y:R?Q=M:x.route.Component?Q=b.createElement(x.route.Component,null):x.route.element?Q=x.route.element:Q=g,b.createElement(Ox,{match:x,routeContext:{outlet:g,matches:z,isDataRoute:i!=null},children:Q})};return i&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?b.createElement(Ax,{location:i.location,revalidation:i.revalidation,component:Y,error:w,children:q(),routeContext:{outlet:null,matches:z,isDataRoute:!0},unstable_onError:u}):q()},null)}function Gf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mx(l){let r=b.useContext(Nr);return Ge(r,Gf(l)),r}function zx(l){let r=b.useContext(Cs);return Ge(r,Gf(l)),r}function Dx(l){let r=b.useContext(ln);return Ge(r,Gf(l)),r}function Vf(l){let r=Dx(l),i=r.matches[r.matches.length-1];return Ge(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function _x(){return Vf("useRouteId")}function Ux(){var u;let l=b.useContext(Qf),r=zx("useRouteError"),i=Vf("useRouteError");return l!==void 0?l:(u=r.errors)==null?void 0:u[i]}function Lx(){let{router:l}=Mx("useNavigate"),r=Vf("useNavigate"),i=b.useRef(!1);return Oy(()=>{i.current=!0}),b.useCallback(async(c,f={})=>{fn(i.current,Ay),i.current&&(typeof c=="number"?l.navigate(c):await l.navigate(c,{fromRouteId:r,...f}))},[l,r])}var Rp={};function My(l,r,i){!r&&!Rp[l]&&(Rp[l]=!0,fn(!1,i))}b.memo(qx);function qx({routes:l,future:r,state:i,unstable_onError:u}){return Ry(l,void 0,i,u,r)}function jx({to:l,replace:r,state:i,relative:u}){Ge(Tr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=b.useContext(dn);fn(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=b.useContext(ln),{pathname:d}=ql(),m=ki(),y=kf(l,Bf(f),d,u==="path"),g=JSON.stringify(y);return b.useEffect(()=>{m(JSON.parse(g),{replace:r,state:i,relative:u})},[m,g,u,r,i]),null}function zy(l){return wx(l.context)}function Yn(l){Ge(!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 Hx({basename:l="/",children:r=null,location:i,navigationType:u="POP",navigator:c,static:f=!1}){Ge(!Tr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=l.replace(/^\/*/,"/"),m=b.useMemo(()=>({basename:d,navigator:c,static:f,future:{}}),[d,c,f]);typeof i=="string"&&(i=wr(i));let{pathname:y="/",search:g="",hash:x="",state:S=null,key:w="default"}=i,R=b.useMemo(()=>{let Y=Fn(y,d);return Y==null?null:{location:{pathname:Y,search:g,hash:x,state:S,key:w},navigationType:u}},[d,y,g,x,S,w,u]);return fn(R!=null,`<Router basename="${d}"> is not able to match the URL "${y}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:b.createElement(dn.Provider,{value:m},b.createElement(Bi.Provider,{children:r,value:R}))}function Bx({children:l,location:r}){return Nx(Of(l),r)}function Of(l,r=[]){let i=[];return b.Children.forEach(l,(u,c)=>{if(!b.isValidElement(u))return;let f=[...r,c];if(u.type===b.Fragment){i.push.apply(i,Of(u.props.children,f));return}Ge(u.type===Yn,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ge(!u.props.index||!u.props.children,"An index route cannot have child routes.");let d={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(d.children=Of(u.props.children,f)),i.push(d)}),i}var ys="get",vs="application/x-www-form-urlencoded";function As(l){return l!=null&&typeof l.tagName=="string"}function kx(l){return As(l)&&l.tagName.toLowerCase()==="button"}function Qx(l){return As(l)&&l.tagName.toLowerCase()==="form"}function Yx(l){return As(l)&&l.tagName.toLowerCase()==="input"}function Gx(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Vx(l,r){return l.button===0&&(!r||r==="_self")&&!Gx(l)}var fs=null;function Xx(){if(fs===null)try{new FormData(document.createElement("form"),0),fs=!1}catch{fs=!0}return fs}var Zx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function uf(l){return l!=null&&!Zx.has(l)?(fn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vs}"`),null):l}function Kx(l,r){let i,u,c,f,d;if(Qx(l)){let m=l.getAttribute("action");u=m?Fn(m,r):null,i=l.getAttribute("method")||ys,c=uf(l.getAttribute("enctype"))||vs,f=new FormData(l)}else if(kx(l)||Yx(l)&&(l.type==="submit"||l.type==="image")){let m=l.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=l.getAttribute("formaction")||m.getAttribute("action");if(u=y?Fn(y,r):null,i=l.getAttribute("formmethod")||m.getAttribute("method")||ys,c=uf(l.getAttribute("formenctype"))||uf(m.getAttribute("enctype"))||vs,f=new FormData(m,l),!Xx()){let{name:g,type:x,value:S}=l;if(x==="image"){let w=g?`${g}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else g&&f.append(g,S)}}else{if(As(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=ys,u=null,c=vs,d=l}return f&&c==="text/plain"&&(d=f,f=void 0),{action:u,method:i.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Xf(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function Jx(l,r,i){let u=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u.pathname==="/"?u.pathname=`_root.${i}`:r&&Fn(u.pathname,r)==="/"?u.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function $x(l,r){if(l.id in r)return r[l.id];try{let i=await import(l.module);return r[l.id]=i,i}catch(i){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Fx(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Wx(l,r,i){let u=await Promise.all(l.map(async c=>{let f=r.routes[c.route.id];if(f){let d=await $x(f,i);return d.links?d.links():[]}return[]}));return tS(u.flat(1).filter(Fx).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Mp(l,r,i,u,c,f){let d=(y,g)=>i[g]?y.route.id!==i[g].route.id:!0,m=(y,g)=>{var x;return i[g].pathname!==y.pathname||((x=i[g].route.path)==null?void 0:x.endsWith("*"))&&i[g].params["*"]!==y.params["*"]};return f==="assets"?r.filter((y,g)=>d(y,g)||m(y,g)):f==="data"?r.filter((y,g)=>{var S;let x=u.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(d(y,g)||m(y,g))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=i[0])==null?void 0:S.params)||{},nextUrl:new URL(l,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Px(l,r,{includeHydrateFallback:i}={}){return Ix(l.map(u=>{let c=r.routes[u.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function Ix(l){return[...new Set(l)]}function eS(l){let r={},i=Object.keys(l).sort();for(let u of i)r[u]=l[u];return r}function tS(l,r){let i=new Set;return new Set(r),l.reduce((u,c)=>{let f=JSON.stringify(eS(c));return i.has(f)||(i.add(f),u.push({key:f,link:c})),u},[])}function Dy(){let l=b.useContext(Nr);return Xf(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function nS(){let l=b.useContext(Cs);return Xf(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Zf=b.createContext(void 0);Zf.displayName="FrameworkContext";function _y(){let l=b.useContext(Zf);return Xf(l,"You must render this element inside a <HydratedRouter> element"),l}function lS(l,r){let i=b.useContext(Zf),[u,c]=b.useState(!1),[f,d]=b.useState(!1),{onFocus:m,onBlur:y,onMouseEnter:g,onMouseLeave:x,onTouchStart:S}=r,w=b.useRef(null);b.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let M=q=>{q.forEach(Q=>{d(Q.isIntersecting)})},z=new IntersectionObserver(M,{threshold:.5});return w.current&&z.observe(w.current),()=>{z.disconnect()}}},[l]),b.useEffect(()=>{if(u){let M=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(M)}}},[u]);let R=()=>{c(!0)},Y=()=>{c(!1),d(!1)};return i?l!=="intent"?[f,w,{}]:[f,w,{onFocus:Ei(m,R),onBlur:Ei(y,Y),onMouseEnter:Ei(g,R),onMouseLeave:Ei(x,Y),onTouchStart:Ei(S,R)}]:[!1,w,{}]}function Ei(l,r){return i=>{l&&l(i),i.defaultPrevented||r(i)}}function aS({page:l,...r}){let{router:i}=Dy(),u=b.useMemo(()=>Ey(i.routes,l,i.basename),[i.routes,l,i.basename]);return u?b.createElement(iS,{page:l,matches:u,...r}):null}function rS(l){let{manifest:r,routeModules:i}=_y(),[u,c]=b.useState([]);return b.useEffect(()=>{let f=!1;return Wx(l,r,i).then(d=>{f||c(d)}),()=>{f=!0}},[l,r,i]),u}function iS({page:l,matches:r,...i}){let u=ql(),{manifest:c,routeModules:f}=_y(),{basename:d}=Dy(),{loaderData:m,matches:y}=nS(),g=b.useMemo(()=>Mp(l,r,y,c,u,"data"),[l,r,y,c,u]),x=b.useMemo(()=>Mp(l,r,y,c,u,"assets"),[l,r,y,c,u]),S=b.useMemo(()=>{if(l===u.pathname+u.search+u.hash)return[];let Y=new Set,M=!1;if(r.forEach(q=>{var k;let Q=c.routes[q.route.id];!Q||!Q.hasLoader||(!g.some(V=>V.route.id===q.route.id)&&q.route.id in m&&((k=f[q.route.id])!=null&&k.shouldRevalidate)||Q.hasClientLoader?M=!0:Y.add(q.route.id))}),Y.size===0)return[];let z=Jx(l,d,"data");return M&&Y.size>0&&z.searchParams.set("_routes",r.filter(q=>Y.has(q.route.id)).map(q=>q.route.id).join(",")),[z.pathname+z.search]},[d,m,u,c,g,r,l,f]),w=b.useMemo(()=>Px(x,c),[x,c]),R=rS(x);return b.createElement(b.Fragment,null,S.map(Y=>b.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...i})),w.map(Y=>b.createElement("link",{key:Y,rel:"modulepreload",href:Y,...i})),R.map(({key:Y,link:M})=>b.createElement("link",{key:Y,nonce:i.nonce,...M})))}function uS(...l){return r=>{l.forEach(i=>{typeof i=="function"?i(r):i!=null&&(i.current=r)})}}var Uy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Uy&&(window.__reactRouterVersion="7.9.4")}catch{}function sS({basename:l,children:r,window:i}){let u=b.useRef();u.current==null&&(u.current=K1({window:i,v5Compat:!0}));let c=u.current,[f,d]=b.useState({action:c.action,location:c.location}),m=b.useCallback(y=>{b.startTransition(()=>d(y))},[d]);return b.useLayoutEffect(()=>c.listen(m),[c,m]),b.createElement(Hx,{basename:l,children:r,location:f.location,navigationType:f.action,navigator:c})}var Ly=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Os=b.forwardRef(function({onClick:r,discover:i="render",prefetch:u="none",relative:c,reloadDocument:f,replace:d,state:m,target:y,to:g,preventScrollReset:x,viewTransition:S,...w},R){let{basename:Y}=b.useContext(dn),M=typeof g=="string"&&Ly.test(g),z,q=!1;if(typeof g=="string"&&M&&(z=g,Uy))try{let W=new URL(window.location.href),$=g.startsWith("//")?new URL(W.protocol+g):new URL(g),ce=Fn($.pathname,Y);$.origin===W.origin&&ce!=null?g=ce+$.search+$.hash:q=!0}catch{fn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Q=xx(g,{relative:c}),[k,V,G]=lS(u,w),H=fS(g,{replace:d,state:m,target:y,preventScrollReset:x,relative:c,viewTransition:S});function J(W){r&&r(W),W.defaultPrevented||H(W)}let I=b.createElement("a",{...w,...G,href:z||Q,onClick:q||f?r:J,ref:uS(R,V),target:y,"data-discover":!M&&i==="render"?"true":void 0});return k&&!M?b.createElement(b.Fragment,null,I,b.createElement(aS,{page:Q})):I});Os.displayName="Link";var ar=b.forwardRef(function({"aria-current":r="page",caseSensitive:i=!1,className:u="",end:c=!1,style:f,to:d,viewTransition:m,children:y,...g},x){let S=Qi(d,{relative:g.relative}),w=ql(),R=b.useContext(Cs),{navigator:Y,basename:M}=b.useContext(dn),z=R!=null&&pS(S)&&m===!0,q=Y.encodeLocation?Y.encodeLocation(S).pathname:S.pathname,Q=w.pathname,k=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;i||(Q=Q.toLowerCase(),k=k?k.toLowerCase():null,q=q.toLowerCase()),k&&M&&(k=Fn(k,M)||k);const V=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let G=Q===q||!c&&Q.startsWith(q)&&Q.charAt(V)==="/",H=k!=null&&(k===q||!c&&k.startsWith(q)&&k.charAt(q.length)==="/"),J={isActive:G,isPending:H,isTransitioning:z},I=G?r:void 0,W;typeof u=="function"?W=u(J):W=[u,G?"active":null,H?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let $=typeof f=="function"?f(J):f;return b.createElement(Os,{...g,"aria-current":I,className:W,ref:x,style:$,to:d,viewTransition:m},typeof y=="function"?y(J):y)});ar.displayName="NavLink";var oS=b.forwardRef(({discover:l="render",fetcherKey:r,navigate:i,reloadDocument:u,replace:c,state:f,method:d=ys,action:m,onSubmit:y,relative:g,preventScrollReset:x,viewTransition:S,...w},R)=>{let Y=mS(),M=gS(m,{relative:g}),z=d.toLowerCase()==="get"?"get":"post",q=typeof m=="string"&&Ly.test(m),Q=k=>{if(y&&y(k),k.defaultPrevented)return;k.preventDefault();let V=k.nativeEvent.submitter,G=(V==null?void 0:V.getAttribute("formmethod"))||d;Y(V||k.currentTarget,{fetcherKey:r,method:G,navigate:i,replace:c,state:f,relative:g,preventScrollReset:x,viewTransition:S})};return b.createElement("form",{ref:R,method:z,action:M,onSubmit:u?y:Q,...w,"data-discover":!q&&l==="render"?"true":void 0})});oS.displayName="Form";function cS(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qy(l){let r=b.useContext(Nr);return Ge(r,cS(l)),r}function fS(l,{target:r,replace:i,state:u,preventScrollReset:c,relative:f,viewTransition:d}={}){let m=ki(),y=ql(),g=Qi(l,{relative:f});return b.useCallback(x=>{if(Vx(x,r)){x.preventDefault();let S=i!==void 0?i:zi(y)===zi(g);m(l,{replace:S,state:u,preventScrollReset:c,relative:f,viewTransition:d})}},[y,m,g,i,u,r,l,c,f,d])}var dS=0,hS=()=>`__${String(++dS)}__`;function mS(){let{router:l}=qy("useSubmit"),{basename:r}=b.useContext(dn),i=_x();return b.useCallback(async(u,c={})=>{let{action:f,method:d,encType:m,formData:y,body:g}=Kx(u,r);if(c.navigate===!1){let x=c.fetcherKey||hS();await l.fetch(x,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||d,formEncType:c.encType||m,flushSync:c.flushSync})}else await l.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||d,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,r,i])}function gS(l,{relative:r}={}){let{basename:i}=b.useContext(dn),u=b.useContext(ln);Ge(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),f={...Qi(l||".",{relative:r})},d=ql();if(l==null){f.search=d.search;let m=new URLSearchParams(f.search),y=m.getAll("index");if(y.some(x=>x==="")){m.delete("index"),y.filter(S=>S).forEach(S=>m.append("index",S));let x=m.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:Jn([i,f.pathname])),zi(f)}function pS(l,{relative:r}={}){let i=b.useContext(Cy);Ge(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=qy("useViewTransitionState"),c=Qi(l,{relative:r});if(!i.isTransitioning)return!1;let f=Fn(i.currentLocation.pathname,u)||i.currentLocation.pathname,d=Fn(i.nextLocation.pathname,u)||i.nextLocation.pathname;return Ss(c.pathname,d)!=null||Ss(c.pathname,f)!=null}var yS=oy();/**
61
- * @license lucide-react v0.468.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const vS=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jy=(...l)=>l.filter((r,i,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===i).join(" ").trim();/**
66
- * @license lucide-react v0.468.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */var bS={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"};/**
71
- * @license lucide-react v0.468.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const xS=b.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:d,...m},y)=>b.createElement("svg",{ref:y,...bS,width:r,height:r,stroke:l,strokeWidth:u?Number(i)*24/Number(r):i,className:jy("lucide",c),...m},[...d.map(([g,x])=>b.createElement(g,x)),...Array.isArray(f)?f:[f]]));/**
76
- * @license lucide-react v0.468.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const Xe=(l,r)=>{const i=b.forwardRef(({className:u,...c},f)=>b.createElement(xS,{ref:f,iconNode:r,className:jy(`lucide-${vS(l)}`,u),...c}));return i.displayName=`${l}`,i};/**
81
- * @license lucide-react v0.468.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const SS=Xe("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"}]]);/**
86
- * @license lucide-react v0.468.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const ES=Xe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
91
- * @license lucide-react v0.468.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const wS=Xe("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/**
96
- * @license lucide-react v0.468.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const NS=Xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
101
- * @license lucide-react v0.468.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const Hy=Xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
106
- * @license lucide-react v0.468.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const By=Xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
111
- * @license lucide-react v0.468.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const Rf=Xe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
116
- * @license lucide-react v0.468.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const Kf=Xe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
121
- * @license lucide-react v0.468.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const ky=Xe("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"}]]);/**
126
- * @license lucide-react v0.468.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const Jf=Xe("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
131
- * @license lucide-react v0.468.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const TS=Xe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
136
- * @license lucide-react v0.468.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const Qy=Xe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
141
- * @license lucide-react v0.468.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const CS=Xe("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
146
- * @license lucide-react v0.468.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const zp=Xe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
151
- * @license lucide-react v0.468.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const AS=Xe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
156
- * @license lucide-react v0.468.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const OS=Xe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
161
- * @license lucide-react v0.468.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const RS=Xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
166
- * @license lucide-react v0.468.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const Dp=Xe("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
171
- * @license lucide-react v0.468.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const MS=Xe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
176
- * @license lucide-react v0.468.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const Yy=Xe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
181
- * @license lucide-react v0.468.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const zS=Xe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
186
- * @license lucide-react v0.468.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const DS=Xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
191
- * @license lucide-react v0.468.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const Yi=Xe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);class _S{constructor(r){Bn(this,"ws",null);Bn(this,"url");Bn(this,"reconnectAttempts",0);Bn(this,"maxReconnectAttempts",5);Bn(this,"reconnectDelay",1e3);Bn(this,"messageId",0);Bn(this,"pendingRequests",new Map);Bn(this,"eventHandlers",new Map);if(r)this.url=r;else{const i=window.location.protocol==="https:"?"wss:":"ws:",u=window.location.host||"localhost:9500";this.url=`${i}//${u}/ws`}}connect(){return new Promise((r,i)=>{try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("🔌 Connected to Vision Dashboard"),this.reconnectAttempts=0,r()},this.ws.onmessage=u=>{this.handleMessage(u.data)},this.ws.onerror=u=>{console.error("WebSocket error:",u),i(u)},this.ws.onclose=()=>{console.log("🔌 Disconnected from Vision Dashboard"),this.handleReconnect()}}catch(u){i(u)}})}handleMessage(r){try{const i=JSON.parse(r);if("result"in i||"error"in i){const u=i,c=this.pendingRequests.get(u.id);c&&(u.error?c.reject(new Error(u.error.message)):c.resolve(u.result),this.pendingRequests.delete(u.id))}else if("method"in i&&!("id"in i)){const u=i;this.emitEvent(u.method,u.params)}}catch(i){console.error("Failed to parse message:",i)}}handleReconnect(){if(this.reconnectAttempts<this.maxReconnectAttempts){this.reconnectAttempts++;const r=this.reconnectDelay*this.reconnectAttempts;console.log(`Reconnecting in ${r}ms (attempt ${this.reconnectAttempts}/${this.maxReconnectAttempts})`),setTimeout(()=>{this.connect().catch(console.error)},r)}}async call(r,i){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("WebSocket is not connected");const u=++this.messageId,c={jsonrpc:"2.0",method:r,params:i,id:u};return new Promise((f,d)=>{this.pendingRequests.set(u,{resolve:f,reject:d}),this.ws.send(JSON.stringify(c)),setTimeout(()=>{this.pendingRequests.has(u)&&(this.pendingRequests.delete(u),d(new Error("Request timeout")))},3e4)})}on(r,i){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Set),this.eventHandlers.get(r).add(i),()=>{const u=this.eventHandlers.get(r);u&&u.delete(i)}}emitEvent(r,i){const u=this.eventHandlers.get(r);u&&u.forEach(c=>c(i))}close(){this.ws&&(this.ws.close(),this.ws=null),this.pendingRequests.clear(),this.eventHandlers.clear()}isConnected(){var r;return((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN}}let sf=null;function Ot(){return sf||(sf=new _S),sf}function US(){const[l,r]=b.useState(!1),[i,u]=b.useState(null);return b.useEffect(()=>{const c=Ot();return c.connect().then(()=>r(!0)).catch(f=>u(f)),()=>{c.close()}},[]),{connected:l,error:i}}function $f(){return Er({queryKey:["app-status"],queryFn:async()=>await Ot().call("status"),refetchInterval:5e3})}function Gy(l){const r=Sr();return b.useEffect(()=>Ot().on("trace.new",c=>{r.setQueryData(["traces",l],(f=[])=>[c,...f].slice(0,(l==null?void 0:l.limit)??100))}),[r,l]),Er({queryKey:["traces",l],queryFn:async()=>await Ot().call("traces/list",l)})}function LS(l){return Er({queryKey:["trace",l],queryFn:async()=>l?await Ot().call("traces/get",{traceId:l}):null,enabled:!!l})}function qS(){const l=Sr();return Ts({mutationFn:async()=>await Ot().call("traces/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]}),l.invalidateQueries({queryKey:["trace"]})}})}function jS(){return Ts({mutationFn:async l=>await Ot().call("traces/export",l)})}function Vy(){const l=Sr();return Ts({mutationFn:async r=>await Ot().call("traces/addClientMetrics",r),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]})}})}function HS(l){const[r,i]=b.useState([]);b.useEffect(()=>{const c=Ot(),f=d=>{i(m=>[d,...m].slice(0,(l==null?void 0:l.limit)||100))};return c.on("log.entry",f),()=>{var m;const d=(m=c.eventHandlers)==null?void 0:m.get("log.entry");d&&d.delete(f)}},[l==null?void 0:l.limit]);const u=Er({queryKey:["logs",l],queryFn:async()=>await Ot().call("logs/list",l)});return b.useEffect(()=>{u.data&&i(u.data)},[u.data]),{data:r,isLoading:u.isLoading,error:u.error,refetch:u.refetch}}function BS(){const l=Sr();return Ts({mutationFn:async()=>await Ot().call("logs/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["logs"]})}})}function kS(){return Er({queryKey:["routes"],queryFn:async()=>await Ot().call("routes/list")})}function QS(){return Er({queryKey:["services"],queryFn:async()=>await Ot().call("services/list")})}function Xy(l){var r,i,u="";if(typeof l=="string"||typeof l=="number")u+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(r=0;r<c;r++)l[r]&&(i=Xy(l[r]))&&(u&&(u+=" "),u+=i)}else for(i in l)l[i]&&(u&&(u+=" "),u+=i);return u}function Zy(){for(var l,r,i=0,u="",c=arguments.length;i<c;i++)(l=arguments[i])&&(r=Xy(l))&&(u&&(u+=" "),u+=r);return u}const _p=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,Up=Zy,Ff=(l,r)=>i=>{var u;if((r==null?void 0:r.variants)==null)return Up(l,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=r,d=Object.keys(c).map(g=>{const x=i==null?void 0:i[g],S=f==null?void 0:f[g];if(x===null)return null;const w=_p(x)||_p(S);return c[g][w]}),m=i&&Object.entries(i).reduce((g,x)=>{let[S,w]=x;return w===void 0||(g[S]=w),g},{}),y=r==null||(u=r.compoundVariants)===null||u===void 0?void 0:u.reduce((g,x)=>{let{class:S,className:w,...R}=x;return Object.entries(R).every(Y=>{let[M,z]=Y;return Array.isArray(z)?z.includes({...f,...m}[M]):{...f,...m}[M]===z})?[...g,S,w]:g},[]);return Up(l,d,y,i==null?void 0:i.class,i==null?void 0:i.className)},Wf="-",YS=l=>{const r=VS(l),{conflictingClassGroups:i,conflictingClassGroupModifiers:u}=l;return{getClassGroupId:d=>{const m=d.split(Wf);return m[0]===""&&m.length!==1&&m.shift(),Ky(m,r)||GS(d)},getConflictingClassGroupIds:(d,m)=>{const y=i[d]||[];return m&&u[d]?[...y,...u[d]]:y}}},Ky=(l,r)=>{var d;if(l.length===0)return r.classGroupId;const i=l[0],u=r.nextPart.get(i),c=u?Ky(l.slice(1),u):void 0;if(c)return c;if(r.validators.length===0)return;const f=l.join(Wf);return(d=r.validators.find(({validator:m})=>m(f)))==null?void 0:d.classGroupId},Lp=/^\[(.+)\]$/,GS=l=>{if(Lp.test(l)){const r=Lp.exec(l)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},VS=l=>{const{theme:r,prefix:i}=l,u={nextPart:new Map,validators:[]};return ZS(Object.entries(l.classGroups),i).forEach(([f,d])=>{Mf(d,u,f,r)}),u},Mf=(l,r,i,u)=>{l.forEach(c=>{if(typeof c=="string"){const f=c===""?r:qp(r,c);f.classGroupId=i;return}if(typeof c=="function"){if(XS(c)){Mf(c(u),r,i,u);return}r.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,d])=>{Mf(d,qp(r,f),i,u)})})},qp=(l,r)=>{let i=l;return r.split(Wf).forEach(u=>{i.nextPart.has(u)||i.nextPart.set(u,{nextPart:new Map,validators:[]}),i=i.nextPart.get(u)}),i},XS=l=>l.isThemeGetter,ZS=(l,r)=>r?l.map(([i,u])=>{const c=u.map(f=>typeof f=="string"?r+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,m])=>[r+d,m])):f);return[i,c]}):l,KS=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,u=new Map;const c=(f,d)=>{i.set(f,d),r++,r>l&&(r=0,u=i,i=new Map)};return{get(f){let d=i.get(f);if(d!==void 0)return d;if((d=u.get(f))!==void 0)return c(f,d),d},set(f,d){i.has(f)?i.set(f,d):c(f,d)}}},Jy="!",JS=l=>{const{separator:r,experimentalParseClassName:i}=l,u=r.length===1,c=r[0],f=r.length,d=m=>{const y=[];let g=0,x=0,S;for(let z=0;z<m.length;z++){let q=m[z];if(g===0){if(q===c&&(u||m.slice(z,z+f)===r)){y.push(m.slice(x,z)),x=z+f;continue}if(q==="/"){S=z;continue}}q==="["?g++:q==="]"&&g--}const w=y.length===0?m:m.substring(x),R=w.startsWith(Jy),Y=R?w.substring(1):w,M=S&&S>x?S-x:void 0;return{modifiers:y,hasImportantModifier:R,baseClassName:Y,maybePostfixModifierPosition:M}};return i?m=>i({className:m,parseClassName:d}):d},$S=l=>{if(l.length<=1)return l;const r=[];let i=[];return l.forEach(u=>{u[0]==="["?(r.push(...i.sort(),u),i=[]):i.push(u)}),r.push(...i.sort()),r},FS=l=>({cache:KS(l.cacheSize),parseClassName:JS(l),...YS(l)}),WS=/\s+/,PS=(l,r)=>{const{parseClassName:i,getClassGroupId:u,getConflictingClassGroupIds:c}=r,f=[],d=l.trim().split(WS);let m="";for(let y=d.length-1;y>=0;y-=1){const g=d[y],{modifiers:x,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:R}=i(g);let Y=!!R,M=u(Y?w.substring(0,R):w);if(!M){if(!Y){m=g+(m.length>0?" "+m:m);continue}if(M=u(w),!M){m=g+(m.length>0?" "+m:m);continue}Y=!1}const z=$S(x).join(":"),q=S?z+Jy:z,Q=q+M;if(f.includes(Q))continue;f.push(Q);const k=c(M,Y);for(let V=0;V<k.length;++V){const G=k[V];f.push(q+G)}m=g+(m.length>0?" "+m:m)}return m};function IS(){let l=0,r,i,u="";for(;l<arguments.length;)(r=arguments[l++])&&(i=$y(r))&&(u&&(u+=" "),u+=i);return u}const $y=l=>{if(typeof l=="string")return l;let r,i="";for(let u=0;u<l.length;u++)l[u]&&(r=$y(l[u]))&&(i&&(i+=" "),i+=r);return i};function e2(l,...r){let i,u,c,f=d;function d(y){const g=r.reduce((x,S)=>S(x),l());return i=FS(g),u=i.cache.get,c=i.cache.set,f=m,m(y)}function m(y){const g=u(y);if(g)return g;const x=PS(y,i);return c(y,x),x}return function(){return f(IS.apply(null,arguments))}}const Qe=l=>{const r=i=>i[l]||[];return r.isThemeGetter=!0,r},Fy=/^\[(?:([a-z-]+):)?(.+)\]$/i,t2=/^\d+\/\d+$/,n2=new Set(["px","full","screen"]),l2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,a2=/\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$/,r2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,i2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kn=l=>ir(l)||n2.has(l)||t2.test(l),El=l=>Cr(l,"length",g2),ir=l=>!!l&&!Number.isNaN(Number(l)),of=l=>Cr(l,"number",ir),wi=l=>!!l&&Number.isInteger(Number(l)),s2=l=>l.endsWith("%")&&ir(l.slice(0,-1)),ge=l=>Fy.test(l),wl=l=>l2.test(l),o2=new Set(["length","size","percentage"]),c2=l=>Cr(l,o2,Wy),f2=l=>Cr(l,"position",Wy),d2=new Set(["image","url"]),h2=l=>Cr(l,d2,y2),m2=l=>Cr(l,"",p2),Ni=()=>!0,Cr=(l,r,i)=>{const u=Fy.exec(l);return u?u[1]?typeof r=="string"?u[1]===r:r.has(u[1]):i(u[2]):!1},g2=l=>a2.test(l)&&!r2.test(l),Wy=()=>!1,p2=l=>i2.test(l),y2=l=>u2.test(l),v2=()=>{const l=Qe("colors"),r=Qe("spacing"),i=Qe("blur"),u=Qe("brightness"),c=Qe("borderColor"),f=Qe("borderRadius"),d=Qe("borderSpacing"),m=Qe("borderWidth"),y=Qe("contrast"),g=Qe("grayscale"),x=Qe("hueRotate"),S=Qe("invert"),w=Qe("gap"),R=Qe("gradientColorStops"),Y=Qe("gradientColorStopPositions"),M=Qe("inset"),z=Qe("margin"),q=Qe("opacity"),Q=Qe("padding"),k=Qe("saturate"),V=Qe("scale"),G=Qe("sepia"),H=Qe("skew"),J=Qe("space"),I=Qe("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",ge,r],se=()=>[ge,r],He=()=>["",kn,El],Ve=()=>["auto",ir,ge],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],pe=()=>["","0",ge],Te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[ir,ge];return{cacheSize:500,separator:":",theme:{colors:[Ni],spacing:[kn,El],blur:["none","",wl,ge],brightness:E(),borderColor:[l],borderRadius:["none","","full",wl,ge],borderSpacing:se(),borderWidth:He(),contrast:E(),grayscale:pe(),hueRotate:E(),invert:pe(),gap:se(),gradientColorStops:[l],gradientColorStopPositions:[s2,El],inset:ce(),margin:ce(),opacity:E(),padding:se(),saturate:E(),scale:E(),sepia:pe(),skew:E(),space:se(),translate:se()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[wl]}],"break-after":[{"break-after":Te()}],"break-before":[{"break-before":Te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ae(),ge]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wi,ge]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",wi,ge]}],"grid-cols":[{"grid-cols":[Ni]}],"col-start-end":[{col:["auto",{span:["full",wi,ge]},ge]}],"col-start":[{"col-start":Ve()}],"col-end":[{"col-end":Ve()}],"grid-rows":[{"grid-rows":[Ni]}],"row-start-end":[{row:["auto",{span:[wi,ge]},ge]}],"row-start":[{"row-start":Ve()}],"row-end":[{"row-end":Ve()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Q]}],px:[{px:[Q]}],py:[{py:[Q]}],ps:[{ps:[Q]}],pe:[{pe:[Q]}],pt:[{pt:[Q]}],pr:[{pr:[Q]}],pb:[{pb:[Q]}],pl:[{pl:[Q]}],m:[{m:[z]}],mx:[{mx:[z]}],my:[{my:[z]}],ms:[{ms:[z]}],me:[{me:[z]}],mt:[{mt:[z]}],mr:[{mr:[z]}],mb:[{mb:[z]}],ml:[{ml:[z]}],"space-x":[{"space-x":[J]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[J]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,r]}],"min-w":[{"min-w":[ge,r,"min","max","fit"]}],"max-w":[{"max-w":[ge,r,"none","full","min","max","fit","prose",{screen:[wl]},wl]}],h:[{h:[ge,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,r,"auto","min","max","fit"]}],"font-size":[{text:["base",wl,El]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",of]}],"font-family":[{font:[Ni]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",ir,of]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kn,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[l]}],"placeholder-opacity":[{"placeholder-opacity":[q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[l]}],"text-opacity":[{"text-opacity":[q]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kn,El]}],"underline-offset":[{"underline-offset":["auto",kn,ge]}],"text-decoration-color":[{decoration:[l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:se()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[q]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),f2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",c2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},h2]}],"bg-color":[{bg:[l]}],"gradient-from-pos":[{from:[Y]}],"gradient-via-pos":[{via:[Y]}],"gradient-to-pos":[{to:[Y]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[q]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[q]}],"divide-style":[{divide:D()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[kn,ge]}],"outline-w":[{outline:[kn,El]}],"outline-color":[{outline:[l]}],"ring-w":[{ring:He()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[l]}],"ring-opacity":[{"ring-opacity":[q]}],"ring-offset-w":[{"ring-offset":[kn,El]}],"ring-offset-color":[{"ring-offset":[l]}],shadow:[{shadow:["","inner","none",wl,m2]}],"shadow-color":[{shadow:[Ni]}],opacity:[{opacity:[q]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[u]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",wl,ge]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[S]}],saturate:[{saturate:[k]}],sepia:[{sepia:[G]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[u]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[q]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[wi,ge]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",l]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge]}],"caret-color":[{caret:[l]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":se()}],"scroll-mx":[{"scroll-mx":se()}],"scroll-my":[{"scroll-my":se()}],"scroll-ms":[{"scroll-ms":se()}],"scroll-me":[{"scroll-me":se()}],"scroll-mt":[{"scroll-mt":se()}],"scroll-mr":[{"scroll-mr":se()}],"scroll-mb":[{"scroll-mb":se()}],"scroll-ml":[{"scroll-ml":se()}],"scroll-p":[{"scroll-p":se()}],"scroll-px":[{"scroll-px":se()}],"scroll-py":[{"scroll-py":se()}],"scroll-ps":[{"scroll-ps":se()}],"scroll-pe":[{"scroll-pe":se()}],"scroll-pt":[{"scroll-pt":se()}],"scroll-pr":[{"scroll-pr":se()}],"scroll-pb":[{"scroll-pb":se()}],"scroll-pl":[{"scroll-pl":se()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[l,"none"]}],"stroke-w":[{stroke:[kn,El,of]}],stroke:[{stroke:[l,"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"]}}},b2=e2(v2);function Rt(...l){return b2(Zy(l))}const x2=Ff("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function je({className:l,variant:r,...i}){return p("div",{className:Rt(x2({variant:r}),l),...i})}const vt=b.forwardRef(({className:l,variant:r="default",size:i="default",...u},c)=>p("button",{className:Rt("inline-flex items-center justify-center rounded-md font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",{"bg-primary text-primary-foreground hover:bg-primary/90":r==="default","bg-secondary text-secondary-foreground hover:bg-secondary/80":r==="secondary","border border-input bg-background hover:bg-accent hover:text-accent-foreground":r==="outline","hover:bg-accent hover:text-accent-foreground":r==="ghost"},{"h-10 px-4 py-2":i==="default","h-9 rounded-md px-3":i==="sm","h-11 rounded-md px-8":i==="lg"},l),ref:c,...u}));vt.displayName="Button";function jp(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function Py(...l){return r=>{let i=!1;const u=l.map(c=>{const f=jp(c,r);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let c=0;c<u.length;c++){const f=u[c];typeof f=="function"?f():jp(l[c],null)}}}}function ya(...l){return b.useCallback(Py(...l),l)}function S2(l){const r=E2(l),i=b.forwardRef((u,c)=>{const{children:f,...d}=u,m=b.Children.toArray(f),y=m.find(N2);if(y){const g=y.props.children,x=m.map(S=>S===y?b.Children.count(g)>1?b.Children.only(null):b.isValidElement(g)?g.props.children:null:S);return p(r,{...d,ref:c,children:b.isValidElement(g)?b.cloneElement(g,void 0,x):null})}return p(r,{...d,ref:c,children:f})});return i.displayName=`${l}.Slot`,i}function E2(l){const r=b.forwardRef((i,u)=>{const{children:c,...f}=i;if(b.isValidElement(c)){const d=C2(c),m=T2(f,c.props);return c.type!==b.Fragment&&(m.ref=u?Py(u,d):d),b.cloneElement(c,m)}return b.Children.count(c)>1?b.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var w2=Symbol("radix.slottable");function N2(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===w2}function T2(l,r){const i={...r};for(const u in r){const c=l[u],f=r[u];/^on[A-Z]/.test(u)?c&&f?i[u]=(...m)=>{const y=f(...m);return c(...m),y}:c&&(i[u]=c):u==="style"?i[u]={...c,...f}:u==="className"&&(i[u]=[c,f].filter(Boolean).join(" "))}return{...l,...i}}function C2(l){var u,c;let r=(u=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:u.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?l.ref:(r=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?l.props.ref:l.props.ref||l.ref)}var A2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],va=A2.reduce((l,r)=>{const i=S2(`Primitive.${r}`),u=b.forwardRef((c,f)=>{const{asChild:d,...m}=c,y=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p(y,{...m,ref:f})});return u.displayName=`Primitive.${r}`,{...l,[r]:u}},{}),O2="Separator",Hp="horizontal",R2=["horizontal","vertical"],Iy=b.forwardRef((l,r)=>{const{decorative:i,orientation:u=Hp,...c}=l,f=M2(u)?u:Hp,m=i?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return p(va.div,{"data-orientation":f,...m,...c,ref:r})});Iy.displayName=O2;function M2(l){return R2.includes(l)}var e0=Iy;const Rs=b.forwardRef(({className:l,orientation:r="horizontal",decorative:i=!0,...u},c)=>p(e0,{ref:c,decorative:i,orientation:r,className:Rt("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",l),...u}));Rs.displayName=e0.displayName;function z2(){var u,c;const{data:l}=$f(),[r,i]=b.useState(()=>localStorage.getItem("vision.theme")||"light");return b.useEffect(()=>{const f=document.documentElement;r==="dark"?f.classList.add("dark"):f.classList.remove("dark"),localStorage.setItem("vision.theme",r)},[r]),A("div",{className:"h-screen flex flex-col bg-background text-foreground",children:[A("nav",{className:"bg-black dark:bg-black text-white px-6 py-3 flex items-center justify-between border-b border-border",children:[A("div",{className:"flex items-center gap-6",children:[A("div",{className:"flex items-center gap-3",children:[p("span",{className:"text-base font-semibold",children:(l==null?void 0:l.name)||"Vision Dashboard"}),p(je,{variant:l!=null&&l.running?"default":"secondary",className:l!=null&&l.running?"bg-green-600 hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700":"",children:l!=null&&l.running?"Running":"Stopped"})]}),p(Rs,{orientation:"vertical",className:"h-6 bg-border"}),A("div",{className:"flex gap-1",children:[p(ar,{to:"/api-explorer",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"API Explorer"}),p(ar,{to:"/traces",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Traces"}),p(ar,{to:"/logs",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Logs"}),p(ar,{to:"/services",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Services"}),((c=(u=l==null?void 0:l.metadata)==null?void 0:u.drizzle)==null?void 0:c.detected)&&p(ar,{to:"/database",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Database"})]})]}),A(vt,{variant:"ghost",size:"sm",onClick:()=>i(r==="dark"?"light":"dark"),className:"text-gray-400 hover:text-white hover:bg-gray-800 dark:hover:bg-gray-800",children:[r==="dark"?p(MS,{className:"w-4 h-4"}):p(AS,{className:"w-4 h-4"}),p("span",{className:"ml-2 text-sm font-medium hidden sm:inline",children:r==="dark"?"Light":"Dark"})]})]}),p("main",{className:"flex-1 overflow-hidden",children:p(zy,{})})]})}function D2(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function Bp(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(l);r&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(l,c).enumerable})),i.push.apply(i,u)}return i}function kp(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Bp(Object(i),!0).forEach(function(u){D2(l,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):Bp(Object(i)).forEach(function(u){Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(i,u))})}return l}function _2(l,r){if(l==null)return{};var i={},u=Object.keys(l),c,f;for(f=0;f<u.length;f++)c=u[f],!(r.indexOf(c)>=0)&&(i[c]=l[c]);return i}function U2(l,r){if(l==null)return{};var i=_2(l,r),u,c;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(c=0;c<f.length;c++)u=f[c],!(r.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(l,u)&&(i[u]=l[u])}return i}function L2(l,r){return q2(l)||j2(l,r)||H2(l,r)||B2()}function q2(l){if(Array.isArray(l))return l}function j2(l,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(l)))){var i=[],u=!0,c=!1,f=void 0;try{for(var d=l[Symbol.iterator](),m;!(u=(m=d.next()).done)&&(i.push(m.value),!(r&&i.length===r));u=!0);}catch(y){c=!0,f=y}finally{try{!u&&d.return!=null&&d.return()}finally{if(c)throw f}}return i}}function H2(l,r){if(l){if(typeof l=="string")return Qp(l,r);var i=Object.prototype.toString.call(l).slice(8,-1);if(i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set")return Array.from(l);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Qp(l,r)}}function Qp(l,r){(r==null||r>l.length)&&(r=l.length);for(var i=0,u=new Array(r);i<r;i++)u[i]=l[i];return u}function B2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
196
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k2(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function Yp(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(l);r&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(l,c).enumerable})),i.push.apply(i,u)}return i}function Gp(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Yp(Object(i),!0).forEach(function(u){k2(l,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):Yp(Object(i)).forEach(function(u){Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(i,u))})}return l}function Q2(){for(var l=arguments.length,r=new Array(l),i=0;i<l;i++)r[i]=arguments[i];return function(u){return r.reduceRight(function(c,f){return f(c)},u)}}function Ci(l){return function r(){for(var i=this,u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return c.length>=l.length?l.apply(this,c):function(){for(var d=arguments.length,m=new Array(d),y=0;y<d;y++)m[y]=arguments[y];return r.apply(i,[].concat(c,m))}}}function Es(l){return{}.toString.call(l).includes("Object")}function Y2(l){return!Object.keys(l).length}function Di(l){return typeof l=="function"}function G2(l,r){return Object.prototype.hasOwnProperty.call(l,r)}function V2(l,r){return Es(r)||Ll("changeType"),Object.keys(r).some(function(i){return!G2(l,i)})&&Ll("changeField"),r}function X2(l){Di(l)||Ll("selectorType")}function Z2(l){Di(l)||Es(l)||Ll("handlerType"),Es(l)&&Object.values(l).some(function(r){return!Di(r)})&&Ll("handlersType")}function K2(l){l||Ll("initialIsRequired"),Es(l)||Ll("initialType"),Y2(l)&&Ll("initialContent")}function J2(l,r){throw new Error(l[r]||l.default)}var $2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Ll=Ci(J2)($2),ds={changes:V2,selector:X2,handler:Z2,initial:K2};function F2(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ds.initial(l),ds.handler(r);var i={current:l},u=Ci(I2)(i,r),c=Ci(P2)(i),f=Ci(ds.changes)(l),d=Ci(W2)(i);function m(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(x){return x};return ds.selector(g),g(i.current)}function y(g){Q2(u,c,f,d)(g)}return[m,y]}function W2(l,r){return Di(r)?r(l.current):r}function P2(l,r){return l.current=Gp(Gp({},l.current),r),r}function I2(l,r,i){return Di(r)?r(l.current):Object.keys(i).forEach(function(u){var c;return(c=r[u])===null||c===void 0?void 0:c.call(r,l.current[u])}),i}var eE={create:F2},tE={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function nE(l){return function r(){for(var i=this,u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return c.length>=l.length?l.apply(this,c):function(){for(var d=arguments.length,m=new Array(d),y=0;y<d;y++)m[y]=arguments[y];return r.apply(i,[].concat(c,m))}}}function lE(l){return{}.toString.call(l).includes("Object")}function aE(l){return l||Vp("configIsRequired"),lE(l)||Vp("configType"),l.urls?(rE(),{paths:{vs:l.urls.monacoBase}}):l}function rE(){console.warn(t0.deprecation)}function iE(l,r){throw new Error(l[r]||l.default)}var t0={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
197
- You are using deprecated way of configuration.
198
-
199
- Instead of using
200
- monaco.config({ urls: { monacoBase: '...' } })
201
- use
202
- monaco.config({ paths: { vs: '...' } })
203
-
204
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
205
- `},Vp=nE(iE)(t0),uE={config:aE},sE=function(){for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return function(c){return i.reduceRight(function(f,d){return d(f)},c)}};function n0(l,r){return Object.keys(r).forEach(function(i){r[i]instanceof Object&&l[i]&&Object.assign(r[i],n0(l[i],r[i]))}),kp(kp({},l),r)}var oE={type:"cancelation",msg:"operation is manually canceled"};function cf(l){var r=!1,i=new Promise(function(u,c){l.then(function(f){return r?c(oE):u(f)}),l.catch(c)});return i.cancel=function(){return r=!0},i}var cE=eE.create({config:tE,isInitialized:!1,resolve:null,reject:null,monaco:null}),l0=L2(cE,2),Gi=l0[0],Ms=l0[1];function fE(l){var r=uE.config(l),i=r.monaco,u=U2(r,["monaco"]);Ms(function(c){return{config:n0(c.config,u),monaco:i}})}function dE(){var l=Gi(function(r){var i=r.monaco,u=r.isInitialized,c=r.resolve;return{monaco:i,isInitialized:u,resolve:c}});if(!l.isInitialized){if(Ms({isInitialized:!0}),l.monaco)return l.resolve(l.monaco),cf(ff);if(window.monaco&&window.monaco.editor)return a0(window.monaco),l.resolve(window.monaco),cf(ff);sE(hE,gE)(pE)}return cf(ff)}function hE(l){return document.body.appendChild(l)}function mE(l){var r=document.createElement("script");return l&&(r.src=l),r}function gE(l){var r=Gi(function(u){var c=u.config,f=u.reject;return{config:c,reject:f}}),i=mE("".concat(r.config.paths.vs,"/loader.js"));return i.onload=function(){return l()},i.onerror=r.reject,i}function pE(){var l=Gi(function(i){var u=i.config,c=i.resolve,f=i.reject;return{config:u,resolve:c,reject:f}}),r=window.require;r.config(l.config),r(["vs/editor/editor.main"],function(i){a0(i),l.resolve(i)},function(i){l.reject(i)})}function a0(l){Gi().monaco||Ms({monaco:l})}function yE(){return Gi(function(l){var r=l.monaco;return r})}var ff=new Promise(function(l,r){return Ms({resolve:l,reject:r})}),r0={config:fE,init:dE,__getMonacoInstance:yE},vE={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},df=vE,bE={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},xE=bE;function SE({children:l}){return ha.createElement("div",{style:xE.container},l)}var EE=SE,wE=EE;function NE({width:l,height:r,isEditorReady:i,loading:u,_ref:c,className:f,wrapperProps:d}){return ha.createElement("section",{style:{...df.wrapper,width:l,height:r},...d},!i&&ha.createElement(wE,null,u),ha.createElement("div",{ref:c,style:{...df.fullWidth,...!i&&df.hide},className:f}))}var TE=NE,i0=b.memo(TE);function CE(l){b.useEffect(l,[])}var u0=CE;function AE(l,r,i=!0){let u=b.useRef(!0);b.useEffect(u.current||!i?()=>{u.current=!1}:l,r)}var kt=AE;function Ri(){}function rr(l,r,i,u){return OE(l,u)||RE(l,r,i,u)}function OE(l,r){return l.editor.getModel(s0(l,r))}function RE(l,r,i,u){return l.editor.createModel(r,i,u?s0(l,u):void 0)}function s0(l,r){return l.Uri.parse(r)}function ME({original:l,modified:r,language:i,originalLanguage:u,modifiedLanguage:c,originalModelPath:f,modifiedModelPath:d,keepCurrentOriginalModel:m=!1,keepCurrentModifiedModel:y=!1,theme:g="light",loading:x="Loading...",options:S={},height:w="100%",width:R="100%",className:Y,wrapperProps:M={},beforeMount:z=Ri,onMount:q=Ri}){let[Q,k]=b.useState(!1),[V,G]=b.useState(!0),H=b.useRef(null),J=b.useRef(null),I=b.useRef(null),W=b.useRef(q),$=b.useRef(z),ce=b.useRef(!1);u0(()=>{let ae=r0.init();return ae.then(D=>(J.current=D)&&G(!1)).catch(D=>(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>H.current?Ve():ae.cancel()}),kt(()=>{if(H.current&&J.current){let ae=H.current.getOriginalEditor(),D=rr(J.current,l||"",u||i||"text",f||"");D!==ae.getModel()&&ae.setModel(D)}},[f],Q),kt(()=>{if(H.current&&J.current){let ae=H.current.getModifiedEditor(),D=rr(J.current,r||"",c||i||"text",d||"");D!==ae.getModel()&&ae.setModel(D)}},[d],Q),kt(()=>{let ae=H.current.getModifiedEditor();ae.getOption(J.current.editor.EditorOption.readOnly)?ae.setValue(r||""):r!==ae.getValue()&&(ae.executeEdits("",[{range:ae.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),ae.pushUndoStop())},[r],Q),kt(()=>{var ae,D;(D=(ae=H.current)==null?void 0:ae.getModel())==null||D.original.setValue(l||"")},[l],Q),kt(()=>{let{original:ae,modified:D}=H.current.getModel();J.current.editor.setModelLanguage(ae,u||i||"text"),J.current.editor.setModelLanguage(D,c||i||"text")},[i,u,c],Q),kt(()=>{var ae;(ae=J.current)==null||ae.editor.setTheme(g)},[g],Q),kt(()=>{var ae;(ae=H.current)==null||ae.updateOptions(S)},[S],Q);let se=b.useCallback(()=>{var F;if(!J.current)return;$.current(J.current);let ae=rr(J.current,l||"",u||i||"text",f||""),D=rr(J.current,r||"",c||i||"text",d||"");(F=H.current)==null||F.setModel({original:ae,modified:D})},[i,r,c,l,u,f,d]),He=b.useCallback(()=>{var ae;!ce.current&&I.current&&(H.current=J.current.editor.createDiffEditor(I.current,{automaticLayout:!0,...S}),se(),(ae=J.current)==null||ae.editor.setTheme(g),k(!0),ce.current=!0)},[S,g,se]);b.useEffect(()=>{Q&&W.current(H.current,J.current)},[Q]),b.useEffect(()=>{!V&&!Q&&He()},[V,Q,He]);function Ve(){var D,F,re,pe;let ae=(D=H.current)==null?void 0:D.getModel();m||((F=ae==null?void 0:ae.original)==null||F.dispose()),y||((re=ae==null?void 0:ae.modified)==null||re.dispose()),(pe=H.current)==null||pe.dispose()}return ha.createElement(i0,{width:R,height:w,isEditorReady:Q,loading:x,_ref:I,className:Y,wrapperProps:M})}var zE=ME;b.memo(zE);function DE(l){let r=b.useRef();return b.useEffect(()=>{r.current=l},[l]),r.current}var _E=DE,hs=new Map;function UE({defaultValue:l,defaultLanguage:r,defaultPath:i,value:u,language:c,path:f,theme:d="light",line:m,loading:y="Loading...",options:g={},overrideServices:x={},saveViewState:S=!0,keepCurrentModel:w=!1,width:R="100%",height:Y="100%",className:M,wrapperProps:z={},beforeMount:q=Ri,onMount:Q=Ri,onChange:k,onValidate:V=Ri}){let[G,H]=b.useState(!1),[J,I]=b.useState(!0),W=b.useRef(null),$=b.useRef(null),ce=b.useRef(null),se=b.useRef(Q),He=b.useRef(q),Ve=b.useRef(),ae=b.useRef(u),D=_E(f),F=b.useRef(!1),re=b.useRef(!1);u0(()=>{let E=r0.init();return E.then(B=>(W.current=B)&&I(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>$.current?Te():E.cancel()}),kt(()=>{var B,P,te,fe;let E=rr(W.current,l||u||"",r||c||"",f||i||"");E!==((B=$.current)==null?void 0:B.getModel())&&(S&&hs.set(D,(P=$.current)==null?void 0:P.saveViewState()),(te=$.current)==null||te.setModel(E),S&&((fe=$.current)==null||fe.restoreViewState(hs.get(f))))},[f],G),kt(()=>{var E;(E=$.current)==null||E.updateOptions(g)},[g],G),kt(()=>{!$.current||u===void 0||($.current.getOption(W.current.editor.EditorOption.readOnly)?$.current.setValue(u):u!==$.current.getValue()&&(re.current=!0,$.current.executeEdits("",[{range:$.current.getModel().getFullModelRange(),text:u,forceMoveMarkers:!0}]),$.current.pushUndoStop(),re.current=!1))},[u],G),kt(()=>{var B,P;let E=(B=$.current)==null?void 0:B.getModel();E&&c&&((P=W.current)==null||P.editor.setModelLanguage(E,c))},[c],G),kt(()=>{var E;m!==void 0&&((E=$.current)==null||E.revealLine(m))},[m],G),kt(()=>{var E;(E=W.current)==null||E.editor.setTheme(d)},[d],G);let pe=b.useCallback(()=>{var E;if(!(!ce.current||!W.current)&&!F.current){He.current(W.current);let B=f||i,P=rr(W.current,u||l||"",r||c||"",B||"");$.current=(E=W.current)==null?void 0:E.editor.create(ce.current,{model:P,automaticLayout:!0,...g},x),S&&$.current.restoreViewState(hs.get(B)),W.current.editor.setTheme(d),m!==void 0&&$.current.revealLine(m),H(!0),F.current=!0}},[l,r,i,u,c,f,g,x,S,d,m]);b.useEffect(()=>{G&&se.current($.current,W.current)},[G]),b.useEffect(()=>{!J&&!G&&pe()},[J,G,pe]),ae.current=u,b.useEffect(()=>{var E,B;G&&k&&((E=Ve.current)==null||E.dispose(),Ve.current=(B=$.current)==null?void 0:B.onDidChangeModelContent(P=>{re.current||k($.current.getValue(),P)}))},[G,k]),b.useEffect(()=>{if(G){let E=W.current.editor.onDidChangeMarkers(B=>{var te;let P=(te=$.current.getModel())==null?void 0:te.uri;if(P&&B.find(fe=>fe.path===P.path)){let fe=W.current.editor.getModelMarkers({resource:P});V==null||V(fe)}});return()=>{E==null||E.dispose()}}return()=>{}},[G,V]);function Te(){var E,B;(E=Ve.current)==null||E.dispose(),w?S&&hs.set(f,$.current.saveViewState()):(B=$.current.getModel())==null||B.dispose(),$.current.dispose()}return ha.createElement(i0,{width:R,height:Y,isEditorReady:G,loading:y,_ref:ce,className:M,wrapperProps:z})}var LE=UE,qE=b.memo(LE),o0=qE;const Qt=b.forwardRef(({className:l,...r},i)=>p("div",{ref:i,className:Rt("rounded-lg border bg-card text-card-foreground shadow-sm",l),...r}));Qt.displayName="Card";const Yt=b.forwardRef(({className:l,...r},i)=>p("div",{ref:i,className:Rt("flex flex-col space-y-1.5 p-6",l),...r}));Yt.displayName="CardHeader";const nn=b.forwardRef(({className:l,...r},i)=>p("h3",{ref:i,className:Rt("text-2xl font-semibold leading-none tracking-tight",l),...r}));nn.displayName="CardTitle";const Gt=b.forwardRef(({className:l,...r},i)=>p("div",{ref:i,className:Rt("p-6 pt-0",l),...r}));Gt.displayName="CardContent";const Pf=b.forwardRef(({className:l,type:r,...i},u)=>p("input",{type:r,className:Rt("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",l),ref:u,...i}));Pf.displayName="Input";var jE="Label",c0=b.forwardRef((l,r)=>p(va.label,{...l,ref:r,onMouseDown:i=>{var c;i.target.closest("button, input, select, textarea")||((c=l.onMouseDown)==null||c.call(l,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));c0.displayName=jE;var f0=c0;const HE=Ff("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ai=b.forwardRef(({className:l,...r},i)=>p(f0,{ref:i,className:Rt(HE(),l),...r}));Ai.displayName=f0.displayName;var zf=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{};function BE(l,r){return b.useReducer((i,u)=>r[i][u]??i,l)}var Vi=l=>{const{present:r,children:i}=l,u=kE(r),c=typeof i=="function"?i({present:u.isPresent}):b.Children.only(i),f=ya(u.ref,QE(c));return typeof i=="function"||u.isPresent?b.cloneElement(c,{ref:f}):null};Vi.displayName="Presence";function kE(l){const[r,i]=b.useState(),u=b.useRef(null),c=b.useRef(l),f=b.useRef("none"),d=l?"mounted":"unmounted",[m,y]=BE(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const g=ms(u.current);f.current=m==="mounted"?g:"none"},[m]),zf(()=>{const g=u.current,x=c.current;if(x!==l){const w=f.current,R=ms(g);l?y("MOUNT"):R==="none"||(g==null?void 0:g.display)==="none"?y("UNMOUNT"):y(x&&w!==R?"ANIMATION_OUT":"UNMOUNT"),c.current=l}},[l,y]),zf(()=>{if(r){let g;const x=r.ownerDocument.defaultView??window,S=R=>{const M=ms(u.current).includes(CSS.escape(R.animationName));if(R.target===r&&M&&(y("ANIMATION_END"),!c.current)){const z=r.style.animationFillMode;r.style.animationFillMode="forwards",g=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=z)})}},w=R=>{R.target===r&&(f.current=ms(u.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",S),r.addEventListener("animationend",S),()=>{x.clearTimeout(g),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",S),r.removeEventListener("animationend",S)}}else y("ANIMATION_END")},[r,y]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(g=>{u.current=g?getComputedStyle(g):null,i(g)},[])}}function ms(l){return(l==null?void 0:l.animationName)||"none"}function QE(l){var u,c;let r=(u=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:u.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?l.ref:(r=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?l.props.ref:l.props.ref||l.ref)}function YE(l,r=[]){let i=[];function u(f,d){const m=b.createContext(d),y=i.length;i=[...i,d];const g=S=>{var q;const{scope:w,children:R,...Y}=S,M=((q=w==null?void 0:w[l])==null?void 0:q[y])||m,z=b.useMemo(()=>Y,Object.values(Y));return p(M.Provider,{value:z,children:R})};g.displayName=f+"Provider";function x(S,w){var M;const R=((M=w==null?void 0:w[l])==null?void 0:M[y])||m,Y=b.useContext(R);if(Y)return Y;if(d!==void 0)return d;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[g,x]}const c=()=>{const f=i.map(d=>b.createContext(d));return function(m){const y=(m==null?void 0:m[l])||f;return b.useMemo(()=>({[`__scope${l}`]:{...m,[l]:y}}),[m,y])}};return c.scopeName=l,[u,GE(c,...r)]}function GE(...l){const r=l[0];if(l.length===1)return r;const i=()=>{const u=l.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const d=u.reduce((m,{useScope:y,scopeName:g})=>{const S=y(f)[`__scope${g}`];return{...m,...S}},{});return b.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return i.scopeName=r.scopeName,i}function na(l){const r=b.useRef(l);return b.useEffect(()=>{r.current=l}),b.useMemo(()=>(...i)=>{var u;return(u=r.current)==null?void 0:u.call(r,...i)},[])}var VE=b.createContext(void 0);function XE(l){const r=b.useContext(VE);return l||r||"ltr"}function ZE(l,[r,i]){return Math.min(i,Math.max(r,l))}function ma(l,r,{checkForDefaultPrevented:i=!0}={}){return function(c){if(l==null||l(c),i===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function KE(l,r){return b.useReducer((i,u)=>r[i][u]??i,l)}var If="ScrollArea",[d0]=YE(If),[JE,an]=d0(If),h0=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,type:u="hover",dir:c,scrollHideDelay:f=600,...d}=l,[m,y]=b.useState(null),[g,x]=b.useState(null),[S,w]=b.useState(null),[R,Y]=b.useState(null),[M,z]=b.useState(null),[q,Q]=b.useState(0),[k,V]=b.useState(0),[G,H]=b.useState(!1),[J,I]=b.useState(!1),W=ya(r,ce=>y(ce)),$=XE(c);return p(JE,{scope:i,type:u,dir:$,scrollHideDelay:f,scrollArea:m,viewport:g,onViewportChange:x,content:S,onContentChange:w,scrollbarX:R,onScrollbarXChange:Y,scrollbarXEnabled:G,onScrollbarXEnabledChange:H,scrollbarY:M,onScrollbarYChange:z,scrollbarYEnabled:J,onScrollbarYEnabledChange:I,onCornerWidthChange:Q,onCornerHeightChange:V,children:p(va.div,{dir:$,...d,ref:W,style:{position:"relative","--radix-scroll-area-corner-width":q+"px","--radix-scroll-area-corner-height":k+"px",...l.style}})})});h0.displayName=If;var m0="ScrollAreaViewport",g0=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,children:u,nonce:c,...f}=l,d=an(m0,i),m=b.useRef(null),y=ya(r,m,d.onViewportChange);return A(Kn,{children:[p("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:c}),p(va.div,{"data-radix-scroll-area-viewport":"",...f,ref:y,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...l.style},children:p("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:u})})]})});g0.displayName=m0;var xn="ScrollAreaScrollbar",ed=b.forwardRef((l,r)=>{const{forceMount:i,...u}=l,c=an(xn,l.__scopeScrollArea),{onScrollbarXEnabledChange:f,onScrollbarYEnabledChange:d}=c,m=l.orientation==="horizontal";return b.useEffect(()=>(m?f(!0):d(!0),()=>{m?f(!1):d(!1)}),[m,f,d]),c.type==="hover"?p($E,{...u,ref:r,forceMount:i}):c.type==="scroll"?p(FE,{...u,ref:r,forceMount:i}):c.type==="auto"?p(p0,{...u,ref:r,forceMount:i}):c.type==="always"?p(td,{...u,ref:r}):null});ed.displayName=xn;var $E=b.forwardRef((l,r)=>{const{forceMount:i,...u}=l,c=an(xn,l.__scopeScrollArea),[f,d]=b.useState(!1);return b.useEffect(()=>{const m=c.scrollArea;let y=0;if(m){const g=()=>{window.clearTimeout(y),d(!0)},x=()=>{y=window.setTimeout(()=>d(!1),c.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",x),()=>{window.clearTimeout(y),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",x)}}},[c.scrollArea,c.scrollHideDelay]),p(Vi,{present:i||f,children:p(p0,{"data-state":f?"visible":"hidden",...u,ref:r})})}),FE=b.forwardRef((l,r)=>{const{forceMount:i,...u}=l,c=an(xn,l.__scopeScrollArea),f=l.orientation==="horizontal",d=Ds(()=>y("SCROLL_END"),100),[m,y]=KE("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 b.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>y("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,c.scrollHideDelay,y]),b.useEffect(()=>{const g=c.viewport,x=f?"scrollLeft":"scrollTop";if(g){let S=g[x];const w=()=>{const R=g[x];S!==R&&(y("SCROLL"),d()),S=R};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[c.viewport,f,y,d]),p(Vi,{present:i||m!=="hidden",children:p(td,{"data-state":m==="hidden"?"hidden":"visible",...u,ref:r,onPointerEnter:ma(l.onPointerEnter,()=>y("POINTER_ENTER")),onPointerLeave:ma(l.onPointerLeave,()=>y("POINTER_LEAVE"))})})}),p0=b.forwardRef((l,r)=>{const i=an(xn,l.__scopeScrollArea),{forceMount:u,...c}=l,[f,d]=b.useState(!1),m=l.orientation==="horizontal",y=Ds(()=>{if(i.viewport){const g=i.viewport.offsetWidth<i.viewport.scrollWidth,x=i.viewport.offsetHeight<i.viewport.scrollHeight;d(m?g:x)}},10);return br(i.viewport,y),br(i.content,y),p(Vi,{present:u||f,children:p(td,{"data-state":f?"visible":"hidden",...c,ref:r})})}),td=b.forwardRef((l,r)=>{const{orientation:i="vertical",...u}=l,c=an(xn,l.__scopeScrollArea),f=b.useRef(null),d=b.useRef(0),[m,y]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=S0(m.viewport,m.content),x={...u,sizes:m,onSizesChange:y,hasThumb:g>0&&g<1,onThumbChange:w=>f.current=w,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:w=>d.current=w};function S(w,R){return nw(w,d.current,m,R)}return i==="horizontal"?p(WE,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const w=c.viewport.scrollLeft,R=Xp(w,m,c.dir);f.current.style.transform=`translate3d(${R}px, 0, 0)`}},onWheelScroll:w=>{c.viewport&&(c.viewport.scrollLeft=w)},onDragScroll:w=>{c.viewport&&(c.viewport.scrollLeft=S(w,c.dir))}}):i==="vertical"?p(PE,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const w=c.viewport.scrollTop,R=Xp(w,m);f.current.style.transform=`translate3d(0, ${R}px, 0)`}},onWheelScroll:w=>{c.viewport&&(c.viewport.scrollTop=w)},onDragScroll:w=>{c.viewport&&(c.viewport.scrollTop=S(w))}}):null}),WE=b.forwardRef((l,r)=>{const{sizes:i,onSizesChange:u,...c}=l,f=an(xn,l.__scopeScrollArea),[d,m]=b.useState(),y=b.useRef(null),g=ya(r,y,f.onScrollbarXChange);return b.useEffect(()=>{y.current&&m(getComputedStyle(y.current))},[y]),p(v0,{"data-orientation":"horizontal",...c,ref:g,sizes:i,style:{bottom:0,left:f.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:f.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":zs(i)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.x),onDragScroll:x=>l.onDragScroll(x.x),onWheelScroll:(x,S)=>{if(f.viewport){const w=f.viewport.scrollLeft+x.deltaX;l.onWheelScroll(w),w0(w,S)&&x.preventDefault()}},onResize:()=>{y.current&&f.viewport&&d&&u({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:y.current.clientWidth,paddingStart:Ns(d.paddingLeft),paddingEnd:Ns(d.paddingRight)}})}})}),PE=b.forwardRef((l,r)=>{const{sizes:i,onSizesChange:u,...c}=l,f=an(xn,l.__scopeScrollArea),[d,m]=b.useState(),y=b.useRef(null),g=ya(r,y,f.onScrollbarYChange);return b.useEffect(()=>{y.current&&m(getComputedStyle(y.current))},[y]),p(v0,{"data-orientation":"vertical",...c,ref:g,sizes:i,style:{top:0,right:f.dir==="ltr"?0:void 0,left:f.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":zs(i)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.y),onDragScroll:x=>l.onDragScroll(x.y),onWheelScroll:(x,S)=>{if(f.viewport){const w=f.viewport.scrollTop+x.deltaY;l.onWheelScroll(w),w0(w,S)&&x.preventDefault()}},onResize:()=>{y.current&&f.viewport&&d&&u({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:y.current.clientHeight,paddingStart:Ns(d.paddingTop),paddingEnd:Ns(d.paddingBottom)}})}})}),[IE,y0]=d0(xn),v0=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,sizes:u,hasThumb:c,onThumbChange:f,onThumbPointerUp:d,onThumbPointerDown:m,onThumbPositionChange:y,onDragScroll:g,onWheelScroll:x,onResize:S,...w}=l,R=an(xn,i),[Y,M]=b.useState(null),z=ya(r,W=>M(W)),q=b.useRef(null),Q=b.useRef(""),k=R.viewport,V=u.content-u.viewport,G=na(x),H=na(y),J=Ds(S,10);function I(W){if(q.current){const $=W.clientX-q.current.left,ce=W.clientY-q.current.top;g({x:$,y:ce})}}return b.useEffect(()=>{const W=$=>{const ce=$.target;(Y==null?void 0:Y.contains(ce))&&G($,V)};return document.addEventListener("wheel",W,{passive:!1}),()=>document.removeEventListener("wheel",W,{passive:!1})},[k,Y,V,G]),b.useEffect(H,[u,H]),br(Y,J),br(R.content,J),p(IE,{scope:i,scrollbar:Y,hasThumb:c,onThumbChange:na(f),onThumbPointerUp:na(d),onThumbPositionChange:H,onThumbPointerDown:na(m),children:p(va.div,{...w,ref:z,style:{position:"absolute",...w.style},onPointerDown:ma(l.onPointerDown,W=>{W.button===0&&(W.target.setPointerCapture(W.pointerId),q.current=Y.getBoundingClientRect(),Q.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",R.viewport&&(R.viewport.style.scrollBehavior="auto"),I(W))}),onPointerMove:ma(l.onPointerMove,I),onPointerUp:ma(l.onPointerUp,W=>{const $=W.target;$.hasPointerCapture(W.pointerId)&&$.releasePointerCapture(W.pointerId),document.body.style.webkitUserSelect=Q.current,R.viewport&&(R.viewport.style.scrollBehavior=""),q.current=null})})})}),ws="ScrollAreaThumb",b0=b.forwardRef((l,r)=>{const{forceMount:i,...u}=l,c=y0(ws,l.__scopeScrollArea);return p(Vi,{present:i||c.hasThumb,children:p(ew,{ref:r,...u})})}),ew=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,style:u,...c}=l,f=an(ws,i),d=y0(ws,i),{onThumbPositionChange:m}=d,y=ya(r,S=>d.onThumbChange(S)),g=b.useRef(void 0),x=Ds(()=>{g.current&&(g.current(),g.current=void 0)},100);return b.useEffect(()=>{const S=f.viewport;if(S){const w=()=>{if(x(),!g.current){const R=lw(S,m);g.current=R,m()}};return m(),S.addEventListener("scroll",w),()=>S.removeEventListener("scroll",w)}},[f.viewport,x,m]),p(va.div,{"data-state":d.hasThumb?"visible":"hidden",...c,ref:y,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...u},onPointerDownCapture:ma(l.onPointerDownCapture,S=>{const R=S.target.getBoundingClientRect(),Y=S.clientX-R.left,M=S.clientY-R.top;d.onThumbPointerDown({x:Y,y:M})}),onPointerUp:ma(l.onPointerUp,d.onThumbPointerUp)})});b0.displayName=ws;var nd="ScrollAreaCorner",x0=b.forwardRef((l,r)=>{const i=an(nd,l.__scopeScrollArea),u=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&u?p(tw,{...l,ref:r}):null});x0.displayName=nd;var tw=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,...u}=l,c=an(nd,i),[f,d]=b.useState(0),[m,y]=b.useState(0),g=!!(f&&m);return br(c.scrollbarX,()=>{var S;const x=((S=c.scrollbarX)==null?void 0:S.offsetHeight)||0;c.onCornerHeightChange(x),y(x)}),br(c.scrollbarY,()=>{var S;const x=((S=c.scrollbarY)==null?void 0:S.offsetWidth)||0;c.onCornerWidthChange(x),d(x)}),g?p(va.div,{...u,ref:r,style:{width:f,height:m,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...l.style}}):null});function Ns(l){return l?parseInt(l,10):0}function S0(l,r){const i=l/r;return isNaN(i)?0:i}function zs(l){const r=S0(l.viewport,l.content),i=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,u=(l.scrollbar.size-i)*r;return Math.max(u,18)}function nw(l,r,i,u="ltr"){const c=zs(i),f=c/2,d=r||f,m=c-d,y=i.scrollbar.paddingStart+d,g=i.scrollbar.size-i.scrollbar.paddingEnd-m,x=i.content-i.viewport,S=u==="ltr"?[0,x]:[x*-1,0];return E0([y,g],S)(l)}function Xp(l,r,i="ltr"){const u=zs(r),c=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,f=r.scrollbar.size-c,d=r.content-r.viewport,m=f-u,y=i==="ltr"?[0,d]:[d*-1,0],g=ZE(l,y);return E0([0,d],[0,m])(g)}function E0(l,r){return i=>{if(l[0]===l[1]||r[0]===r[1])return r[0];const u=(r[1]-r[0])/(l[1]-l[0]);return r[0]+u*(i-l[0])}}function w0(l,r){return l>0&&l<r}var lw=(l,r=()=>{})=>{let i={left:l.scrollLeft,top:l.scrollTop},u=0;return(function c(){const f={left:l.scrollLeft,top:l.scrollTop},d=i.left!==f.left,m=i.top!==f.top;(d||m)&&r(),i=f,u=window.requestAnimationFrame(c)})(),()=>window.cancelAnimationFrame(u)};function Ds(l,r){const i=na(l),u=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(u.current),[]),b.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(i,r)},[i,r])}function br(l,r){const i=na(r);zf(()=>{let u=0;if(l){const c=new ResizeObserver(()=>{cancelAnimationFrame(u),u=window.requestAnimationFrame(i)});return c.observe(l),()=>{window.cancelAnimationFrame(u),c.unobserve(l)}}},[l,i])}var N0=h0,aw=g0,rw=x0;const _i=b.forwardRef(({className:l,children:r,...i},u)=>A(N0,{ref:u,className:Rt("relative overflow-hidden",l),...i,children:[p(aw,{className:"h-full w-full rounded-[inherit]",children:r}),p(T0,{}),p(rw,{})]}));_i.displayName=N0.displayName;const T0=b.forwardRef(({className:l,orientation:r="vertical",...i},u)=>p(ed,{ref:u,orientation:r,className:Rt("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]",l),...i,children:p(b0,{className:"relative flex-1 rounded-full bg-border"})}));T0.displayName=ed.displayName;function iw({sessionId:l}){const{data:r=[]}=Gy({limit:50}),i=l?r.filter(d=>{var m;return((m=d.metadata)==null?void 0:m.sessionId)===l}):r,{traceId:u}=Yf(),c=b.useRef(null),f=b.useRef(i.length);return b.useEffect(()=>{i.length>f.current&&c.current&&(c.current.scrollTop=0),f.current=i.length},[i.length]),A("div",{className:"w-80 border-l bg-muted flex flex-col",children:[p("div",{className:"px-4 py-3 border-b bg-background",children:A("div",{className:"flex items-center justify-between",children:[p("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Traces"}),p(je,{variant:"secondary",className:"text-xs",children:i.length})]})}),p(_i,{className:"flex-1",ref:c,children:p("div",{className:"p-3 space-y-2",children:r.length===0?A("div",{className:"text-center py-12 text-muted-foreground",children:[p(Yi,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),p("p",{className:"text-sm",children:"Traces will appear here"}),p("p",{className:"text-xs mt-1",children:"after making API calls"})]}):i.map((d,m)=>A("div",{children:[p(Os,{to:`/traces/${d.id}`,children:p(uw,{trace:d,isActive:d.id===u})}),m<i.length-1&&p(Rs,{className:"my-2"})]},d.id))})})]})}function uw({trace:l,isActive:r}){const i=d=>d?d>=200&&d<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":d>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",u=d=>d==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900":d==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":d==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":d==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"",c=d=>d==null?"-":d<1?"< 1ms":d<1e3?`${Math.round(d)}ms`:`${(d/1e3).toFixed(2)}s`,f=d=>new Date(d).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});return A("div",{className:`w-full text-left bg-background rounded-md p-2.5 border transition-all cursor-pointer ${r?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"}`,children:[A("div",{className:"flex items-center gap-1.5 mb-2",children:[p(je,{className:`text-[10px] font-mono px-1.5 py-0 ${u(l.method)}`,children:l.method}),p(je,{className:`text-[10px] font-mono px-1.5 py-0 ${i(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&A("span",{className:"text-[10px] text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),p("div",{className:"text-xs font-mono text-foreground truncate mb-2",children:l.path}),A("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[A("div",{className:"flex items-center gap-1",children:[p(Kf,{className:"w-3 h-3"}),p("span",{children:f(l.timestamp)})]}),A("div",{className:"flex items-center gap-1",children:[p(Yi,{className:"w-3 h-3"}),p("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function Oi({data:l,title:r,height:i="400px"}){const[u,c]=b.useState(!1),f=()=>{navigator.clipboard.writeText(JSON.stringify(l,null,2)),c(!0),setTimeout(()=>c(!1),2e3)},d=JSON.stringify(l,null,2);return A("div",{className:"relative",children:[r&&A("div",{className:"flex items-center justify-between mb-2",children:[p("h3",{className:"text-sm font-medium",children:r}),p(vt,{variant:"ghost",size:"sm",onClick:f,className:"text-xs",children:u?A(Kn,{children:[p(NS,{className:"w-3 h-3 mr-1"}),"Copied"]}):A(Kn,{children:[p(ky,{className:"w-3 h-3 mr-1"}),"Copy"]})})]}),p("div",{className:"border rounded-md overflow-hidden",children:p(o0,{height:i,language:"json",value:d,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,fontSize:14,glyphMargin:!1,folding:!0,lineDecorationsWidth:0,lineNumbersMinChars:0,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}})})]})}const C0=b.createContext(null);function sw({children:l}){const[r,i]=b.useState([]),u=b.useCallback((f,d="info",m)=>{const y=Math.random().toString(36).slice(2),g={id:y,message:f,type:d,duration:m};return i(x=>[...x,g]),y},[]),c=b.useCallback(f=>{i(d=>d.filter(m=>m.id!==f))},[]);return p(C0.Provider,{value:{toasts:r,addToast:u,removeToast:c},children:l})}function ld(){const l=b.useContext(C0);if(!l)throw new Error("useToast must be used within ToastProvider");return l}function gs(){return Math.random().toString(36).slice(2)+Date.now().toString(36)}function ow(){var k,V,G;const{data:l=[]}=kS(),{addToast:r}=ld(),i=Vy(),u=b.useMemo(()=>({id:gs(),title:"New tab",sessionId:gs(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null}),[]),[c,f]=b.useState([u]),[d,m]=b.useState(u.id),[y,g]=b.useState(!1),x="vision.apiExplorer.tabs",S="vision.apiExplorer.activeTabId";b.useEffect(()=>{try{const H=localStorage.getItem(x),J=localStorage.getItem(S);if(H){const I=JSON.parse(H);Array.isArray(I)&&I.length>0&&(f(I),J&&I.some(W=>W.id===J)?m(J):m(I[0].id))}}catch{}},[]),b.useEffect(()=>{try{localStorage.setItem(x,JSON.stringify(c)),localStorage.setItem(S,d)}catch{}},[c,d]);const w=c.find(H=>H.id===d)||c[0],R=H=>{var I;const J=((I=H.requestBody)==null?void 0:I.template)||"";f(W=>W.map($=>$.id===d?{...$,route:H,title:H.path,response:null,requestTime:null,urlParams:{},requestBody:J}:$))},Y=async()=>{const H=w;if(!H.route)return;g(!0),f(I=>I.map(W=>W.id===d?{...W,response:null}:W));const J=Date.now();try{let I=H.route.path;Object.entries(H.urlParams).forEach(([D,F])=>{I=I.replace(`:${D}`,F)});const W=`http://localhost:3000${I}`,$={method:H.route.method,headers:{"Content-Type":"application/json","X-Vision-Session":H.sessionId}};if(["POST","PUT","PATCH"].includes(H.route.method)&&H.requestBody)try{const D=H.requestBody.split(`
206
- `).map(F=>F.replace(/\/\/.*$/,"").trim()).filter(F=>F.length>0).join(`
207
- `);$.body=JSON.stringify(JSON.parse(D))}catch{$.body=H.requestBody}const ce=await fetch(W,$),se=await ce.json(),He=Date.now()-J,Ve={};ce.headers.forEach((D,F)=>{Ve[F]=D}),f(D=>D.map(F=>F.id===d?{...F,response:{status:ce.status,data:se,headers:Ve},requestTime:He}:F)),r(`API call completed in ${He}ms`,"success");const ae=ce.headers.get("X-Vision-Trace-Id");console.log("📊 Trace ID from header:",ae,"Client duration:",He),ae&&i.mutate({traceId:ae,clientDuration:He})}catch(I){f(W=>W.map($=>$.id===d?{...$,response:{status:0,error:I instanceof Error?I.message:"Unknown error"}}:$)),r(I instanceof Error?I.message:"API call failed","error")}finally{g(!1)}},M=(H,J)=>{f(I=>I.map(W=>W.id===d?{...W,urlParams:{...W.urlParams,[H]:J}}:W))},z=H=>{f(J=>J.map(I=>I.id===d?{...I,requestBody:H}:I))},q=()=>{const H={id:gs(),title:"New tab",sessionId:gs(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null};f(J=>[...J,H]),m(H.id)},Q=H=>{f(J=>{if(J.length<=1)return J;const I=J.filter(W=>W.id!==H);if(d===H){const W=I[I.length-1];m(W.id)}return I})};return A("div",{className:"flex h-full",children:[p("div",{className:"w-64 border-r bg-muted overflow-y-auto flex-shrink-0",children:A("div",{className:"p-4",children:[p("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:"Endpoints"}),p("div",{className:"space-y-1",children:l.map((H,J)=>p("button",{onClick:()=>R(H),className:`w-full text-left py-2 rounded-md text-sm font-medium transition-colors
208
- ${w.route===H?"bg-primary text-primary-foreground":"hover:bg-accent text-foreground"}`,children:A("div",{className:"flex items-center gap-2",children:[p(je,{className:`text-xs font-mono w-3/12
209
- ${H.method==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900":""}
210
- ${H.method==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":""}
211
- ${H.method==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":""}
212
- ${H.method==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":""}
213
- `,children:H.method}),p("span",{className:"font-mono text-xs truncate",children:H.path})]})},J))})]})}),A("div",{className:"flex-1 overflow-y-auto",children:[p("div",{className:"px-6 pt-3 border-b bg-muted",children:A("div",{className:"flex items-center gap-1 overflow-x-auto whitespace-nowrap pb-0",children:[c.map(H=>A("button",{className:`relative flex-none inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium transition-all ${H.id===d?"bg-background text-foreground rounded-t-md border-t border-x border-border":"text-muted-foreground hover:text-foreground hover:bg-accent/50 rounded-t-md"}`,onClick:()=>m(H.id),children:[p("span",{className:"font-mono text-sm truncate max-w-[200px]",children:H.title}),c.length>1&&p("button",{className:"ml-1 text-muted-foreground hover:text-foreground hover:bg-accent rounded-sm p-0.5 -mr-1",onClick:J=>{J.stopPropagation(),Q(H.id)},children:p("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),H.id===d&&p("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary"})]},H.id)),A(vt,{variant:"ghost",size:"sm",className:"flex-none ml-2 text-sm font-medium text-muted-foreground hover:text-foreground",onClick:q,children:[p("svg",{className:"w-4 h-4 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New tab"]})]})}),p("div",{className:"p-6 max-w-4xl",children:w.route?A("div",{className:"space-y-4",children:[A(Qt,{children:[p(Yt,{children:p(nn,{className:"text-base font-semibold",children:"API Caller"})}),A(Gt,{className:"space-y-4",children:[A("div",{children:[p(Ai,{className:"text-sm font-medium mb-2 block",children:"Endpoint"}),A("div",{className:"flex gap-2",children:[A("div",{className:"flex-1 bg-muted rounded-md p-3 font-mono text-sm border",children:[p("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:w.route.method})," ",p("span",{className:"text-foreground",children:w.route.path})]}),p(vt,{onClick:Y,disabled:y,className:"bg-blue-600 dark:bg-blue-600 hover:bg-blue-700 dark:hover:bg-blue-700 text-white",children:y?A("span",{className:"flex items-center gap-2",children:[p("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),p("span",{className:"text-sm font-medium",children:"Calling..."})]}):A("span",{className:"flex items-center gap-2",children:[p(OS,{className:"w-4 h-4"}),p("span",{className:"text-sm font-medium",children:"Call API"})]})})]})]}),w.route.path.includes(":")&&A("div",{children:[p(Ai,{className:"text-sm font-medium mb-2 block",children:"URL Parameters"}),p("div",{className:"space-y-3",children:(k=w.route.path.match(/:[^/]+/g))==null?void 0:k.map(H=>{const J=H.slice(1);return A("div",{className:"grid grid-cols-4 gap-3 items-center",children:[p(Ai,{htmlFor:J,className:"text-sm text-muted-foreground",children:J}),p(Pf,{id:J,type:"text",value:w.urlParams[J]||"",onChange:I=>M(J,I.target.value),placeholder:`Enter ${J}`,className:"col-span-3 text-sm"})]},J)})})]}),["POST","PUT","PATCH"].includes(w.route.method)&&A("div",{children:[p(Ai,{className:"text-sm font-medium mb-2 block",children:"Request Body (JSON)"}),p("div",{className:"border rounded-md overflow-hidden",children:p(o0,{height:"200px",language:"json",value:w.requestBody,onChange:H=>z(H||""),theme:"vs-dark",options:{readOnly:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,fontSize:14,glyphMargin:!1,folding:!0,lineDecorationsWidth:0,lineNumbersMinChars:3,renderLineHighlight:"all",tabSize:2,insertSpaces:!0,scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}})})]})]})]}),w.response&&A(Qt,{children:[p(Yt,{children:A("div",{className:"flex items-center justify-between",children:[A("div",{className:"flex items-center gap-3",children:[p(nn,{className:"text-base font-semibold",children:"Response"}),p(je,{className:`text-xs font-mono
214
- ${w.response.status>=200&&w.response.status<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":""}
215
- ${w.response.status>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":""}
216
- `,children:w.response.status||"ERROR"}),w.requestTime&&A("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[p(Kf,{className:"w-3 h-3"}),w.requestTime,"ms"]})]}),p(vt,{variant:"ghost",size:"sm",onClick:()=>navigator.clipboard.writeText(JSON.stringify(w.response.data,null,2)),children:p(ky,{className:"w-4 h-4"})})]})}),p(Gt,{children:p(Oi,{data:w.response.data||w.response.error})})]}),w.response&&A(Qt,{children:[p(Yt,{children:p(nn,{className:"text-base font-semibold",children:"Request Logs"})}),p(Gt,{children:A("div",{className:"bg-gray-900 dark:bg-gray-950 rounded-md p-4 font-mono text-xs space-y-1 border",children:[A("div",{className:"text-blue-400 dark:text-blue-300",children:["INF starting request endpoint=",(V=w.route)==null?void 0:V.path," service=",(G=w.route)==null?void 0:G.handler]}),A("div",{className:"text-green-400 dark:text-green-300",children:["INF request completed code=",w.response.status," duration=",w.requestTime,"ms"]})]})})]})]}):p("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:p("p",{className:"text-sm",children:"Select an endpoint from the sidebar to get started"})})})]}),p(iw,{sessionId:w.sessionId})]})}function cw(l){const r=[...l].sort((c,f)=>c.startTime-f.startTime),i=new Map(r.map(c=>[c.id,{...c,children:[]}])),u=[];for(const c of r){const f=i.get(c.id);if(c.parentId){const d=i.get(c.parentId);d?d.children.push(f):u.push(f)}else u.push(f)}for(const[c,f]of i)f.children&&f.children.length>1&&f.children.sort((d,m)=>d.startTime-m.startTime);return u}function fw(l){return l.startsWith("http.")?{bg:"bg-gradient-to-r from-blue-500/90 to-blue-600/90",border:"border-blue-500/30",text:"text-blue-50"}:l.startsWith("db.")?{bg:"bg-gradient-to-r from-purple-500/90 to-purple-600/90",border:"border-purple-500/30",text:"text-purple-50"}:{bg:"bg-gradient-to-r from-emerald-500/90 to-emerald-600/90",border:"border-emerald-500/30",text:"text-emerald-50"}}function dw(l){return l.startsWith("http.")?p(CS,{className:"w-3.5 h-3.5"}):l.startsWith("db.")?p(Jf,{className:"w-3.5 h-3.5"}):p(Yi,{className:"w-3.5 h-3.5"})}function A0({span:l,depth:r,totalDuration:i,t0:u,formatDuration:c}){var M;const[f,d]=b.useState(!0),m=(((M=l.children)==null?void 0:M.length)||0)>0,y=(l.startTime-u)/i*100,g=(l.duration||0)/i*100,x=l.attributes&&Object.keys(l.attributes).length>0,[S,w]=b.useState(!1),R=fw(l.name),Y=dw(l.name);return A(Kn,{children:[p("div",{className:"group hover:bg-muted/50 transition-colors rounded-lg",children:A("div",{className:"flex items-start gap-3 p-3",children:[A("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",style:{paddingLeft:`${r*20}px`},children:[m?p("button",{onClick:()=>d(!f),className:"p-0.5 hover:bg-muted rounded transition-colors",children:f?p(Hy,{className:"w-3.5 h-3.5 text-muted-foreground"}):p(By,{className:"w-3.5 h-3.5 text-muted-foreground"})}):p("div",{className:"w-4"}),p("div",{className:`p-1.5 rounded-md ${R.bg.replace("/90","/20")} ${R.border} border`,children:Y})]}),A("div",{className:"flex-1 min-w-0 space-y-2.5",children:[A("div",{className:"flex items-center justify-between gap-4",children:[A("div",{className:"flex items-center gap-3 min-w-0",children:[p("span",{className:"text-sm font-semibold font-mono truncate",children:l.name}),x&&A("button",{onClick:()=>w(!S),className:"text-xs px-2 py-0.5 rounded-full bg-muted hover:bg-muted/80 transition-colors font-medium",children:[Object.keys(l.attributes||{}).length," attrs"]})]}),p("div",{className:"flex items-center gap-2 flex-shrink-0",children:p("span",{className:"text-sm font-mono font-semibold tabular-nums",children:c(l.duration)})})]}),p("div",{className:"relative h-8 bg-muted/50 rounded-lg overflow-hidden border border-border/50",children:p("div",{className:`absolute h-full ${R.bg} ${R.border} border-2 flex items-center px-2.5 shadow-lg transition-all duration-200 group-hover:shadow-xl`,style:{left:`${y}%`,width:`${Math.max(g,.5)}%`},children:p("span",{className:`text-xs font-mono font-semibold ${R.text} truncate drop-shadow-sm`,children:l.name})})}),S&&x&&p("div",{className:"mt-2 p-3 bg-muted/30 rounded-lg border border-border/50 space-y-1.5",children:Object.entries(l.attributes||{}).map(([z,q])=>z==="http.request"||z==="http.response"?null:typeof q=="object"&&q!==null?A("div",{className:"font-mono text-xs flex items-start gap-2",children:[A("span",{className:"text-muted-foreground font-semibold",children:[z,":"]}),p("span",{className:"text-muted-foreground italic",children:"[object]"})]},z):A("div",{className:"font-mono text-xs flex items-start gap-2",children:[A("span",{className:"text-muted-foreground font-semibold min-w-[120px]",children:[z,":"]}),p("span",{className:"text-foreground break-all",children:String(q)})]},z))})]})]})}),f&&m&&p("div",{className:"space-y-1",children:l.children.map(z=>p(A0,{span:z,depth:r+1,totalDuration:i,t0:u,formatDuration:c},z.id))})]})}function hw({spans:l,formatDuration:r}){if(l.length===0)return p("div",{className:"text-center py-12 text-sm text-muted-foreground",children:"No spans recorded"});const i=Math.min(...l.map(d=>d.startTime)),c=Math.max(...l.map(d=>d.endTime||d.startTime))-i||1,f=cw(l);return console.log("[SpansWaterfall] Tree:",f.map(d=>{var m;return{name:d.name,id:d.id.slice(0,8),parentId:(m=d.parentId)==null?void 0:m.slice(0,8),duration:d.duration}})),console.log("[SpansWaterfall] All spans:",l.map(d=>{var m;return{name:d.name,id:d.id.slice(0,8),parentId:(m=d.parentId)==null?void 0:m.slice(0,8),duration:d.duration}})),A("div",{className:"space-y-3",children:[A("div",{className:"flex justify-between items-center px-4 py-2 bg-muted/30 rounded-lg border border-border/50",children:[A("div",{className:"flex items-center gap-2",children:[p("span",{className:"text-xs font-semibold text-muted-foreground",children:"Timeline"}),A("span",{className:"text-xs px-2 py-0.5 rounded-full bg-primary/10 text-primary font-mono font-semibold",children:[l.length," ",l.length===1?"span":"spans"]})]}),A("div",{className:"flex items-center gap-4 text-xs font-mono font-semibold tabular-nums",children:[p("span",{className:"text-muted-foreground",children:"0ms"}),p("div",{className:"w-px h-4 bg-border"}),p("span",{className:"text-foreground",children:r(c)})]})]}),p("div",{className:"space-y-1",children:f.map(d=>p(A0,{span:d,depth:0,totalDuration:c,t0:i,formatDuration:r},d.id))})]})}function mw({trace:l,formatDuration:r}){var d,m,y,g;const i=l.spans.find(x=>x.name==="http.request"),u=((d=l.metadata)==null?void 0:d.request)||((m=i==null?void 0:i.attributes)==null?void 0:m["http.request"]),c=((y=l.metadata)==null?void 0:y.response)||((g=i==null?void 0:i.attributes)==null?void 0:g["http.response"]),f=x=>x?x>=200&&x<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":x>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400";return A("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[A(Qt,{children:[p(Yt,{className:"bg-muted",children:p(nn,{className:"text-base font-semibold",children:"Request"})}),p(Gt,{className:"pt-4",children:A("div",{className:"space-y-3",children:[A("div",{className:"text-sm",children:[p(je,{className:"font-mono text-xs mr-2",children:l.method}),p("span",{className:"font-mono text-sm break-all",children:(u==null?void 0:u.url)||l.path})]}),(u==null?void 0:u.headers)&&A("div",{children:[p("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),p(Oi,{data:u.headers})]}),(u==null?void 0:u.body)!==void 0&&A("div",{children:[p("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),p(Oi,{data:u.body})]})]})})]}),A(Qt,{children:[p(Yt,{className:"bg-muted",children:p(nn,{className:"text-base font-semibold",children:"Response"})}),p(Gt,{className:"pt-4",children:A("div",{className:"space-y-3",children:[A("div",{className:"flex items-center gap-2 text-sm",children:[p(je,{className:`font-mono text-xs ${f(l.statusCode)}`,children:l.statusCode||(c==null?void 0:c.status)||"-"}),p("span",{className:"text-xs text-muted-foreground",children:r(l.duration)})]}),(c==null?void 0:c.headers)&&A("div",{children:[p("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),p(Oi,{data:c.headers})]}),(c==null?void 0:c.body)!==void 0&&A("div",{children:[p("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),p(Oi,{data:c.body})]})]})})]})]})}function gw(){const{data:l=[]}=Gy({limit:100}),r=qS(),i=jS(),{traceId:u}=Yf(),{addToast:c}=ld(),f=b.useRef(null),d=b.useRef(l.length);b.useEffect(()=>{l.length>d.current&&f.current&&(f.current.scrollTop=0),d.current=l.length},[l.length]);const m=async()=>{if(!(l.length===0||!window.confirm(`Remove ${l.length} trace${l.length===1?"":"s"}?`)))try{await r.mutateAsync()}catch(x){console.error("Failed to clear traces:",x),c("Failed to clear traces","error")}};return A("div",{className:"h-full grid grid-cols-12 gap-0",children:[A("div",{className:"col-span-4 border-r bg-muted h-full flex flex-col",children:[p("div",{className:"px-6 py-4 border-b bg-background",children:A("div",{className:"flex items-center justify-between gap-3",children:[A("div",{children:[p("h1",{className:"text-lg font-semibold",children:"Traces"}),p("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Recent requests"})]}),A("div",{className:"flex gap-2",children:[A(vt,{variant:"outline",size:"sm",onClick:async()=>{try{const g=await i.mutateAsync({format:"json"}),x=typeof g=="string"?g:JSON.stringify(g,null,2),S=new Blob([x],{type:"application/json"}),w=URL.createObjectURL(S),R=document.createElement("a");R.href=w;const Y=new Date().toISOString().replace(/[:.]/g,"-");R.download=`vision-traces-${Y}.json`,document.body.appendChild(R),R.click(),document.body.removeChild(R),URL.revokeObjectURL(w)}catch(g){console.error("Failed to export traces:",g),c("Failed to export traces","error")}},disabled:i.isPending||l.length===0,className:"text-sm",children:[p(TS,{className:"w-4 h-4 mr-1.5"}),"Export"]}),A(vt,{variant:"outline",size:"sm",onClick:m,disabled:r.isPending||l.length===0,className:"text-sm",children:[p(Yy,{className:"w-4 h-4 mr-1.5"}),"Clear"]})]})]})}),p(_i,{className:"flex-1",ref:f,children:l.length===0?A("div",{className:"flex flex-col items-center justify-center py-20 px-6 text-muted-foreground",children:[p(Yi,{className:"w-12 h-12 mb-4 opacity-30"}),p("p",{className:"text-sm",children:"No traces yet"}),p("p",{className:"text-xs mt-1",children:"Make some API calls to see traces here"})]}):p("div",{className:"p-4 space-y-2",children:l.map((g,x)=>A("div",{children:[p(Os,{to:`/traces/${g.id}`,children:p(pw,{trace:g,isActive:g.id===u})}),x<l.length-1&&p(Rs,{className:"my-2"})]},g.id))})})]}),p("div",{className:"col-span-8 h-full overflow-y-auto p-6",children:p(zy,{})})]})}function pw({trace:l,isActive:r}){const i=d=>{switch(d){case"GET":return"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900";case"POST":return"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900";case"PUT":return"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900";case"DELETE":return"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900";default:return"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300"}},u=d=>d?d>=200&&d<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":d>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",c=d=>d==null?"-":d<1?"< 1ms":d<1e3?`${Math.round(d)}ms`:`${(d/1e3).toFixed(2)}s`,f=d=>new Date(d).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return A("div",{className:`w-full bg-background rounded-md border p-3 transition-all text-left cursor-pointer ${r?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"}`,children:[A("div",{className:"flex items-center gap-2 mb-2",children:[p(je,{className:`text-xs font-mono px-1.5 py-0 ${i(l.method)}`,children:l.method}),p(je,{className:`text-xs font-mono px-1.5 py-0 ${u(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&A("span",{className:"text-xs text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),p("div",{className:"font-mono text-sm text-foreground truncate mb-2",children:l.path}),A("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[A("div",{className:"flex items-center gap-1",children:[p(Kf,{className:"w-3 h-3"}),p("span",{children:f(l.timestamp)})]}),A("div",{className:"flex items-center gap-1",children:[p(Yi,{className:"w-3 h-3"}),p("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function yw({trace:l,onBack:r}){var y;const i=ki(),u=Vy(),c=async()=>{var g;try{const x=l.spans.find(V=>{var G;return V.name==="http.request"||!!((G=V.attributes)!=null&&G["http.url"])}),S=((g=x==null?void 0:x.attributes)==null?void 0:g["http.url"])||l.path,w=Date.now();let R;try{new URL(S),R=S}catch{R=`http://localhost:3000${S.startsWith("/")?"":"/"}${S}`}const M=Ot().on("trace.new",V=>{V.method===l.method&&V.timestamp>=w&&(i(`/traces/${V.id}`),M())}),z=Date.now(),q=await fetch(R,{method:l.method,headers:{"Content-Type":"application/json"}}),Q=Date.now()-z,k=q.headers.get("X-Vision-Trace-Id");k&&u.mutate({traceId:k,clientDuration:Q})}catch(x){console.error("Failed to replay request:",x)}},f=g=>g?g<1?"< 1ms":g<1e3?`${Math.round(g)}ms`:`${(g/1e3).toFixed(2)}s`:"-",d=g=>new Date(g).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,hour12:!1}),m=g=>g?g>=200&&g<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":g>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400";return A("div",{className:"max-w-5xl",children:[A("div",{className:"flex items-center justify-between mb-6",children:[r&&A(vt,{variant:"ghost",size:"sm",onClick:r,className:"text-sm font-medium",children:[p(ES,{className:"w-4 h-4 mr-2"}),"Back to Traces"]}),p(vt,{onClick:c,size:"sm",className:"text-sm font-medium",children:"Replay Request"})]}),A("div",{className:"space-y-4",children:[A(Qt,{children:[p(Yt,{children:p(nn,{className:"text-base font-semibold",children:"Request Overview"})}),p(Gt,{children:A("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[A("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Method"}),p("p",{className:"font-mono text-sm font-medium",children:l.method})]}),A("div",{className:"col-span-2",children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Path"}),p("p",{className:"font-mono text-sm font-medium truncate",children:l.path})]}),A("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),p(je,{className:`text-xs font-mono ${m(l.statusCode)}`,children:l.statusCode||"Pending"})]}),A("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Duration"}),(y=l.metadata)!=null&&y.clientDuration?A("div",{className:"space-y-1",children:[A("div",{className:"flex items-center gap-2",children:[p("span",{className:"text-xs text-muted-foreground",children:"Server:"}),p("span",{className:"font-mono text-sm",children:f(l.duration)})]}),A("div",{className:"flex items-center gap-2",children:[p("span",{className:"text-xs text-muted-foreground",children:"Total:"}),p("span",{className:"font-mono text-sm font-medium",children:f(l.metadata.clientDuration)})]}),A("div",{className:"flex items-center gap-2",children:[p("span",{className:"text-xs text-muted-foreground",children:"Network:"}),p("span",{className:"font-mono text-sm text-blue-600 dark:text-blue-400",children:f(l.metadata.clientDuration-(l.duration||0))})]})]}):p("p",{className:`font-mono text-sm font-medium ${l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400":""}`,children:f(l.duration)})]}),A("div",{className:"col-span-2",children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Timestamp"}),p("p",{className:"font-mono text-sm",children:d(l.timestamp)})]}),A("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Trace ID"}),p("p",{className:"font-mono text-xs text-muted-foreground",children:l.id})]})]})})]}),p(mw,{trace:l,formatDuration:f}),l.spans.length>0&&A(Qt,{children:[p(Yt,{children:A(nn,{className:"text-base font-semibold",children:["Spans Timeline (",l.spans.length,")"]})}),p(Gt,{children:p(hw,{spans:l.spans,formatDuration:f})})]})]})]})}function lr(l,r,i){let u=i.initialDeps??[],c;function f(){var d,m,y,g;let x;i.key&&((d=i.debug)!=null&&d.call(i))&&(x=Date.now());const S=l();if(!(S.length!==u.length||S.some((Y,M)=>u[M]!==Y)))return c;u=S;let R;if(i.key&&((m=i.debug)!=null&&m.call(i))&&(R=Date.now()),c=r(...S),i.key&&((y=i.debug)!=null&&y.call(i))){const Y=Math.round((Date.now()-x)*100)/100,M=Math.round((Date.now()-R)*100)/100,z=M/16,q=(Q,k)=>{for(Q=String(Q);Q.length<k;)Q=" "+Q;return Q};console.info(`%c⏱ ${q(M,5)} /${q(Y,5)} ms`,`
217
- font-size: .6rem;
218
- font-weight: bold;
219
- color: hsl(${Math.max(0,Math.min(120-120*z,120))}deg 100% 31%);`,i==null?void 0:i.key)}return(g=i==null?void 0:i.onChange)==null||g.call(i,c),c}return f.updateDeps=d=>{u=d},f}function Zp(l,r){if(l===void 0)throw new Error("Unexpected undefined");return l}const vw=(l,r)=>Math.abs(l-r)<1.01,bw=(l,r,i)=>{let u;return function(...c){l.clearTimeout(u),u=l.setTimeout(()=>r.apply(this,c),i)}},Kp=l=>{const{offsetWidth:r,offsetHeight:i}=l;return{width:r,height:i}},xw=l=>l,Sw=l=>{const r=Math.max(l.startIndex-l.overscan,0),i=Math.min(l.endIndex+l.overscan,l.count-1),u=[];for(let c=r;c<=i;c++)u.push(c);return u},Ew=(l,r)=>{const i=l.scrollElement;if(!i)return;const u=l.targetWindow;if(!u)return;const c=d=>{const{width:m,height:y}=d;r({width:Math.round(m),height:Math.round(y)})};if(c(Kp(i)),!u.ResizeObserver)return()=>{};const f=new u.ResizeObserver(d=>{const m=()=>{const y=d[0];if(y!=null&&y.borderBoxSize){const g=y.borderBoxSize[0];if(g){c({width:g.inlineSize,height:g.blockSize});return}}c(Kp(i))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(m):m()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},Jp={passive:!0},$p=typeof window>"u"?!0:"onscrollend"in window,ww=(l,r)=>{const i=l.scrollElement;if(!i)return;const u=l.targetWindow;if(!u)return;let c=0;const f=l.options.useScrollendEvent&&$p?()=>{}:bw(u,()=>{r(c,!1)},l.options.isScrollingResetDelay),d=x=>()=>{const{horizontal:S,isRtl:w}=l.options;c=S?i.scrollLeft*(w&&-1||1):i.scrollTop,f(),r(c,x)},m=d(!0),y=d(!1);y(),i.addEventListener("scroll",m,Jp);const g=l.options.useScrollendEvent&&$p;return g&&i.addEventListener("scrollend",y,Jp),()=>{i.removeEventListener("scroll",m),g&&i.removeEventListener("scrollend",y)}},Nw=(l,r,i)=>{if(r!=null&&r.borderBoxSize){const u=r.borderBoxSize[0];if(u)return Math.round(u[i.options.horizontal?"inlineSize":"blockSize"])}return l[i.options.horizontal?"offsetWidth":"offsetHeight"]},Tw=(l,{adjustments:r=0,behavior:i},u)=>{var c,f;const d=l+r;(f=(c=u.scrollElement)==null?void 0:c.scrollTo)==null||f.call(c,{[u.options.horizontal?"left":"top"]:d,behavior:i})};class Cw{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const u=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(c=>{c.forEach(f=>{const d=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var c;(c=u())==null||c.disconnect(),i=null},observe:c=>{var f;return(f=u())==null?void 0:f.observe(c,{box:"border-box"})},unobserve:c=>{var f;return(f=u())==null?void 0:f.unobserve(c)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([u,c])=>{typeof c>"u"&&delete i[u]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:xw,rangeExtractor:Sw,onChange:()=>{},measureElement:Nw,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var u,c;(c=(u=this.options).onChange)==null||c.call(u,this,i)},this.maybeNotify=lr(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const u=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==u){if(this.cleanup(),!u){this.maybeNotify();return}this.scrollElement=u,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(c=>{this.observer.observe(c)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,c=>{this.scrollRect=c,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(c,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<c?"forward":"backward":null,this.scrollOffset=c,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,u)=>{const c=new Map,f=new Map;for(let d=u-1;d>=0;d--){const m=i[d];if(c.has(m.lane))continue;const y=f.get(m.lane);if(y==null||m.end>y.end?f.set(m.lane,m):m.end<y.end&&c.set(m.lane,!0),c.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((d,m)=>d.end===m.end?d.index-m.index:d.end-m.end)[0]:void 0},this.getMeasurementOptions=lr(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,u,c,f,d)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:u,scrollMargin:c,getItemKey:f,enabled:d}),{key:!1}),this.getMeasurements=lr(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:u,scrollMargin:c,getItemKey:f,enabled:d},m)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(x=>{this.itemSizeCache.set(x.key,x.size)}));const y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const g=this.measurementsCache.slice(0,y);for(let x=y;x<i;x++){const S=f(x),w=this.options.lanes===1?g[x-1]:this.getFurthestMeasurement(g,x),R=w?w.end+this.options.gap:u+c,Y=m.get(S),M=typeof Y=="number"?Y:this.options.estimateSize(x),z=R+M,q=w?w.lane:x%this.options.lanes;g[x]={index:x,start:R,size:M,end:z,key:S,lane:q}}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=lr(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,c,f)=>this.range=i.length>0&&u>0?Aw({measurements:i,outerSize:u,scrollOffset:c,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=lr(()=>{let i=null,u=null;const c=this.calculateRange();return c&&(i=c.startIndex,u=c.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,u]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,u]},(i,u,c,f,d)=>f===null||d===null?[]:i({startIndex:f,endIndex:d,overscan:u,count:c}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const u=this.options.indexAttribute,c=i.getAttribute(u);return c?parseInt(c,10):(console.warn(`Missing attribute name '${u}={index}' on measured element.`),-1)},this._measureElement=(i,u)=>{const c=this.indexFromElement(i),f=this.measurementsCache[c];if(!f)return;const d=f.key,m=this.elementsCache.get(d);m!==i&&(m&&this.observer.unobserve(m),this.observer.observe(i),this.elementsCache.set(d,i)),i.isConnected&&this.resizeItem(c,this.options.measureElement(i,u,this))},this.resizeItem=(i,u)=>{const c=this.measurementsCache[i];if(!c)return;const f=this.itemSizeCache.get(c.key)??c.size,d=u-f;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(c,d,this):c.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(c.index),this.itemSizeCache=new Map(this.itemSizeCache.set(c.key,u)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((u,c)=>{u.isConnected||(this.observer.unobserve(u),this.elementsCache.delete(c))});return}this._measureElement(i,void 0)},this.getVirtualItems=lr(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,u)=>{const c=[];for(let f=0,d=i.length;f<d;f++){const m=i[f],y=u[m];c.push(y)}return c},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const u=this.getMeasurements();if(u.length!==0)return Zp(u[O0(0,u.length-1,c=>Zp(u[c]).start,i)])},this.getOffsetForAlignment=(i,u,c=0)=>{const f=this.getSize(),d=this.getScrollOffset();u==="auto"&&(u=i>=d+f?"end":"start"),u==="center"?i+=(c-f)/2:u==="end"&&(i-=f);const m=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(m,i),0)},this.getOffsetForIndex=(i,u="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const c=this.measurementsCache[i];if(!c)return;const f=this.getSize(),d=this.getScrollOffset();if(u==="auto")if(c.end>=d+f-this.options.scrollPaddingEnd)u="end";else if(c.start<=d+this.options.scrollPaddingStart)u="start";else return[d,u];const m=u==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(m,u,c.size),u]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:u="start",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,u),{adjustments:void 0,behavior:c})},this.scrollToIndex=(i,{align:u="auto",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1));let f=0;const d=10,m=g=>{if(!this.targetWindow)return;const x=this.getOffsetForIndex(i,g);if(!x){console.warn("Failed to get offset for index:",i);return}const[S,w]=x;this._scrollToOffset(S,{adjustments:void 0,behavior:c}),this.targetWindow.requestAnimationFrame(()=>{const R=this.getScrollOffset(),Y=this.getOffsetForIndex(i,w);if(!Y){console.warn("Failed to get offset for index:",i);return}vw(Y[0],R)||y(w)})},y=g=>{this.targetWindow&&(f++,f<d?this.targetWindow.requestAnimationFrame(()=>m(g)):console.warn(`Failed to scroll to index ${i} after ${d} attempts.`))};m(u)},this.scrollBy=(i,{behavior:u}={})=>{u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:u})},this.getTotalSize=()=>{var i;const u=this.getMeasurements();let c;if(u.length===0)c=this.options.paddingStart;else if(this.options.lanes===1)c=((i=u[u.length-1])==null?void 0:i.end)??0;else{const f=Array(this.options.lanes).fill(null);let d=u.length-1;for(;d>=0&&f.some(m=>m===null);){const m=u[d];f[m.lane]===null&&(f[m.lane]=m.end),d--}c=Math.max(...f.filter(m=>m!==null))}return Math.max(c-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:u,behavior:c})=>{this.options.scrollToFn(i,{behavior:c,adjustments:u},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}}const O0=(l,r,i,u)=>{for(;l<=r;){const c=(l+r)/2|0,f=i(c);if(f<u)l=c+1;else if(f>u)r=c-1;else return c}return l>0?l-1:0};function Aw({measurements:l,outerSize:r,scrollOffset:i,lanes:u}){const c=l.length-1,f=y=>l[y].start;if(l.length<=u)return{startIndex:0,endIndex:c};let d=O0(0,c,f,i),m=d;if(u===1)for(;m<c&&l[m].end<i+r;)m++;else if(u>1){const y=Array(u).fill(0);for(;m<c&&y.some(x=>x<i+r);){const x=l[m];y[x.lane]=x.end,m++}const g=Array(u).fill(i+r);for(;d>=0&&g.some(x=>x>=i);){const x=l[d];g[x.lane]=x.start,d--}d=Math.max(0,d-d%u),m=Math.min(c,m+(u-1-m%u))}return{startIndex:d,endIndex:m}}const Fp=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Ow(l){const r=b.useReducer(()=>({}),{})[1],i={...l,onChange:(c,f)=>{var d;f?yS.flushSync(r):r(),(d=l.onChange)==null||d.call(l,c,f)}},[u]=b.useState(()=>new Cw(i));return u.setOptions(i),Fp(()=>u._didMount(),[]),Fp(()=>u._willUpdate()),u}function Rw(l){return Ow({observeElementRect:Ew,observeElementOffset:ww,scrollToFn:Tw,...l})}function Mw(){const[l,r]=b.useState("all"),[i,u]=b.useState(""),c=BS(),f=ki(),{data:d=[]}=HS({limit:1e4,level:l==="all"?void 0:l,search:i||void 0}),m=b.useRef(null),y=Rw({count:d.length,getScrollElement:()=>m.current,estimateSize:()=>72,overscan:8,measureElement:M=>M.getBoundingClientRect().height}),g=()=>{confirm("Clear all logs?")&&c.mutate()},x=M=>{var k;const q=(M.message||"").match(/traceId=([^\s]+)/);if(q)return q[1];const Q=(k=M==null?void 0:M.args)==null?void 0:k.find(V=>V&&typeof V=="object"&&"traceId"in V);return Q==null?void 0:Q.traceId},S=M=>{const z=M.message||"",q=/(\w+)=([^\s]+)/g,Q=[...z.matchAll(q)];if(Q.length===0)return;const k={};return Q.forEach(([,V,G])=>{if(G.startsWith("{")||G.startsWith("["))try{k[V]=JSON.parse(G)}catch{k[V]=G}else k[V]=G}),Object.keys(k).length?k:void 0},w=M=>{switch(M){case"error":return p(Rf,{className:"w-4 h-4 text-red-500"});case"warn":return p(zS,{className:"w-4 h-4 text-yellow-500"});case"info":return p(zp,{className:"w-4 h-4 text-blue-500"});case"debug":return p(wS,{className:"w-4 h-4 text-gray-500"});default:return p(zp,{className:"w-4 h-4 text-gray-400"})}},R=M=>{switch(M){case"error":return"bg-red-50 dark:bg-red-950 border-red-200 dark:border-red-800";case"warn":return"bg-yellow-50 dark:bg-yellow-950 border-yellow-200 dark:border-yellow-800";case"info":return"bg-blue-50 dark:bg-blue-950 border-blue-200 dark:border-blue-800";case"debug":return"bg-gray-50 dark:bg-gray-900 border-gray-200 dark:border-gray-800";default:return"bg-background border-border"}},Y=M=>new Date(M).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return A("div",{className:"h-full flex flex-col",children:[A("div",{className:"bg-background border-b px-6 py-4",children:[A("div",{className:"flex items-center justify-between mb-4",children:[p("h1",{className:"text-lg font-semibold",children:"Logs"}),p("div",{className:"flex gap-2",children:A(vt,{variant:"outline",size:"sm",onClick:g,className:"text-sm font-medium",children:[p(Yy,{className:"w-4 h-4 mr-1.5"}),"Clear All"]})})]}),A("div",{className:"flex gap-4",children:[p("div",{className:"flex gap-1",children:["all","log","info","warn","error","debug"].map(M=>p(vt,{variant:l===M?"default":"outline",size:"sm",onClick:()=>r(M),className:"text-sm font-medium",children:M.charAt(0).toUpperCase()+M.slice(1)},M))}),A("div",{className:"flex-1 max-w-md relative",children:[p(RS,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),p(Pf,{type:"text",placeholder:"Search logs...",value:i,onChange:M=>u(M.target.value),className:"pl-10 text-sm"})]}),A(je,{variant:"secondary",className:"text-sm",children:[d.length.toLocaleString()," entries"]})]})]}),p("div",{ref:m,className:"flex-1 overflow-auto bg-muted px-6 py-4",children:d.length===0?A(Qt,{children:[p(Yt,{children:p(nn,{children:"No logs yet"})}),p(Gt,{children:p("p",{className:"text-sm text-gray-600",children:"Logs will appear here as your application runs. Try making some API calls or use console.log() in your code."})})]}):p("div",{style:{height:`${y.getTotalSize()}px`,width:"100%",position:"relative"},children:y.getVirtualItems().map(M=>{const z=d[M.index],q=x(z),Q=S(z);return p("div",{"data-index":M.index,ref:y.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${M.start}px)`},children:p("div",{className:`mb-2 p-3 border rounded-lg ${R(z.level)}`,children:A("div",{className:"flex items-start gap-3",children:[p("div",{className:"mt-0.5",children:w(z.level)}),p("div",{className:"text-xs font-mono text-muted-foreground w-24 flex-shrink-0 mt-0.5",children:Y(z.timestamp)}),A("div",{className:"flex-1 min-w-0",children:[A("div",{className:"flex items-start gap-2",children:[p("div",{className:"flex-1",children:A("div",{className:"flex items-center gap-2 flex-wrap",children:[p("span",{className:"text-sm font-mono",children:z.message}),Q&&A(Kn,{children:[Q.method&&p(je,{className:"font-mono text-xs",children:Q.method}),Q.endpoint&&p(je,{variant:"secondary",className:"font-mono text-xs",children:Q.endpoint}),Q.code!==void 0&&A(je,{variant:"secondary",className:"font-mono text-xs",children:["code=",Q.code]}),Q.duration&&A(je,{variant:"secondary",className:"font-mono text-xs",children:["duration=",Q.duration]}),Q.sessionId&&A(je,{variant:"outline",className:"font-mono text-xs",children:["session=",Q.sessionId]}),Q.params&&typeof Q.params=="object"&&p(Kn,{children:Object.entries(Q.params).map(([k,V])=>A(je,{variant:"outline",className:"font-mono text-xs",children:[k,"=",String(V)]},k))}),Q.query&&typeof Q.query=="object"&&p(Kn,{children:Object.entries(Q.query).map(([k,V])=>A(je,{variant:"outline",className:"font-mono text-xs",children:[k,"=",String(V)]},k))})]})]})}),q&&p(vt,{variant:"outline",size:"sm",onClick:()=>f(`/traces/${q}`),className:"text-xs font-medium",children:"Go to trace"})]}),z.stack&&A("details",{className:"mt-2",onToggle:k=>{const V=k.currentTarget.closest("[data-index]")||void 0;V&&y.measureElement(V)},children:[p("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"Stack trace"}),p("pre",{className:"mt-2 text-xs bg-background p-2 rounded border overflow-auto whitespace-pre-wrap select-text",children:z.stack})]})]})]})})},M.key)})})})]})}function zw(){var Q,k,V;const{data:l}=$f(),{data:r=[]}=QS(),i=ki(),[u,c]=b.useState(null),[f,d]=b.useState(new Set),m=(Q=l==null?void 0:l.metadata)==null?void 0:Q.integrations,y=G=>{const H=new Set(f);H.has(G)?H.delete(G):H.add(G),d(H)},g=(G,H,J)=>{c({service:G,method:H,path:J})},x=()=>{u&&i(`/api-explorer?method=${u.method}&path=${u.path}`)},S=r.reduce((G,H)=>G+H.routes.length,0),w=u?(k=r.find(G=>G.name===u.service))==null?void 0:k.routes.find(G=>G.method===u.method&&G.path===u.path):null,R=G=>{const H=G==null?void 0:G.match(/:(\w+)/g);return H?H.map(J=>J.slice(1)):[]},Y=G=>{switch(G){case"GET":return"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300";case"POST":return"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300";case"PUT":return"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300";case"DELETE":return"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300";case"PATCH":return"bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300";default:return"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300"}},M=G=>G.includes("database")||G.includes("postgres")||G.includes("mysql")?p(Jf,{className:"w-4 h-4"}):p(Dp,{className:"w-4 h-4"}),z=G=>{try{const H=new URL(G);return H.password&&(H.password="***"),H.toString()}catch{return G}},q=R(u==null?void 0:u.path);return A("div",{className:"h-full flex bg-background",children:[A("div",{className:"w-80 border-r bg-muted flex flex-col",children:[p("div",{className:"px-4 py-3 border-b bg-background",children:A("div",{className:"flex items-center justify-between",children:[p("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Services"}),p(je,{variant:"secondary",className:"text-xs",children:r.length})]})}),p(_i,{className:"flex-1",children:p("div",{className:"p-3",children:r.length===0?A("div",{className:"text-center text-sm text-muted-foreground py-12",children:[p(Dp,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),p("p",{className:"text-sm",children:"No services discovered yet"})]}):p("div",{className:"space-y-2",children:r.map(G=>A("div",{children:[A("button",{className:"w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left hover:bg-gray-100 rounded",onClick:()=>y(G.name),children:[f.has(G.name)?p(Hy,{className:"w-4 h-4 flex-shrink-0"}):p(By,{className:"w-4 h-4 flex-shrink-0"}),p("span",{className:"font-medium",children:G.name}),p("span",{className:"text-xs text-gray-500 ml-auto",children:G.routes.length})]}),f.has(G.name)&&p("div",{className:"ml-6 mt-1 space-y-0.5",children:G.routes.map((H,J)=>A("button",{className:`w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left rounded ${(u==null?void 0:u.service)===G.name&&(u==null?void 0:u.method)===H.method&&(u==null?void 0:u.path)===H.path?"bg-blue-50 text-blue-700":"hover:bg-gray-50"}`,onClick:()=>g(G.name,H.method,H.path),children:[p(je,{className:`text-[10px] font-mono px-1.5 py-0 ${Y(H.method)}`,children:H.method}),p("span",{className:"font-mono text-xs truncate",children:H.path})]},`${H.method}-${H.path}-${J}`))})]},G.name))})})})]}),p(_i,{className:"flex-1",children:A("div",{className:"p-6",children:[p("h1",{className:"text-lg font-semibold mb-6",children:"Service Catalog"}),A(Qt,{className:"mb-6",children:[p(Yt,{children:A(nn,{className:"flex items-center gap-2 text-base font-semibold",children:[p(SS,{className:"w-5 h-5"}),(l==null?void 0:l.name)||"Unknown Service"]})}),A(Gt,{children:[A("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[A("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Version"}),p("p",{className:"text-sm font-medium",children:(l==null?void 0:l.version)||"N/A"})]}),A("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Framework"}),p("p",{className:"text-sm font-medium",children:((V=l==null?void 0:l.metadata)==null?void 0:V.framework)||"N/A"})]}),A("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),p(je,{variant:l!=null&&l.running?"default":"secondary",className:l!=null&&l.running?"bg-green-600":"",children:l!=null&&l.running?"Running":"Stopped"})]}),A("div",{children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Endpoints"}),p("p",{className:"text-sm font-medium",children:S})]})]}),(l==null?void 0:l.description)&&A("div",{className:"mt-4 pt-4 border-t",children:[p("p",{className:"text-xs text-muted-foreground mb-1",children:"Description"}),p("p",{className:"text-sm",children:l.description})]})]})]}),m&&Object.keys(m).length>0&&A(Qt,{className:"mb-6",children:[p(Yt,{children:p(nn,{className:"text-base font-semibold",children:"Integrations"})}),p(Gt,{children:p("div",{className:"space-y-3",children:Object.entries(m).map(([G,H])=>A("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[p("div",{className:"mt-0.5",children:M(G)}),A("div",{className:"flex-1 min-w-0",children:[p("p",{className:"text-sm font-medium capitalize",children:G}),p("p",{className:"text-xs text-muted-foreground font-mono truncate",title:H,children:z(H)})]})]},G))})})]}),u&&A(Qt,{children:[p(Yt,{className:"border-b",children:A("div",{className:"flex items-center justify-between",children:[A("div",{className:"flex items-center gap-3",children:[p(je,{className:`text-xs font-mono ${Y(u.method)}`,children:u.method}),A("div",{children:[p("div",{className:"font-mono text-lg font-semibold",children:u.path}),A("div",{className:"text-sm text-muted-foreground mt-0.5",children:[u.service," service"]})]})]}),A(vt,{onClick:x,className:"bg-blue-600 hover:bg-blue-700 text-white text-xs",size:"sm",children:[p(Qy,{className:"w-4 h-4 mr-2"}),"Test in API Explorer"]})]})}),p(Gt,{className:"pt-6",children:A("div",{className:"space-y-6",children:[q.length>0?A("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Path Parameters"}),p("div",{className:"space-y-2",children:q.map(G=>A("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[p("code",{className:"text-sm font-mono font-semibold text-primary",children:G}),p("span",{className:"text-xs text-muted-foreground mt-0.5",children:"string"})]},G))})]}):null,u.method==="GET"&&A("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Query Parameters"}),p("div",{className:"p-4 bg-muted rounded-lg border",children:p("p",{className:"text-sm text-muted-foreground",children:"Optional query parameters can be added in API Explorer"})})]}),["POST","PUT","PATCH"].includes(u.method)&&A("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Request Body Schema"}),w!=null&&w.requestBody?A("div",{className:"space-y-3",children:[p("div",{className:"space-y-2",children:w.requestBody.fields.map(G=>p("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:A("div",{className:"flex-1",children:[A("div",{className:"flex items-center gap-2",children:[p("code",{className:"text-sm font-mono font-semibold",children:G.name}),p(je,{variant:"outline",className:"text-xs",children:G.type}),G.required&&p(je,{variant:"destructive",className:"text-xs",children:"required"})]}),G.description&&p("p",{className:"text-xs text-muted-foreground mt-1",children:G.description})]})},G.name))}),p("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]}):p("div",{className:"p-4 bg-muted rounded-lg border",children:p("p",{className:"text-sm text-muted-foreground",children:"No schema defined. Configure request body in API Explorer"})})]}),(w==null?void 0:w.handler)&&w.handler!=="anonymous"&&A("div",{children:[p("h3",{className:"text-sm font-semibold mb-3",children:"Handler"}),p("code",{className:"text-sm bg-muted px-3 py-1.5 rounded border inline-block",children:w.handler})]})]})})]})]})})]})}const Dw=Ff("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),R0=b.forwardRef(({className:l,variant:r,...i},u)=>p("div",{ref:u,role:"alert",className:Rt(Dw({variant:r}),l),...i}));R0.displayName="Alert";const _w=b.forwardRef(({className:l,...r},i)=>p("h5",{ref:i,className:Rt("mb-1 font-medium leading-none tracking-tight",l),...r}));_w.displayName="AlertTitle";const M0=b.forwardRef(({className:l,...r},i)=>p("div",{ref:i,className:Rt("text-sm [&_p]:leading-relaxed",l),...r}));M0.displayName="AlertDescription";function Uw(){var u,c,f;const{data:l}=$f(),r=(u=l==null?void 0:l.metadata)==null?void 0:u.drizzle;if(!(r!=null&&r.detected))return p("div",{className:"h-full flex items-center justify-center bg-muted p-6",children:A(Qt,{className:"max-w-lg",children:[p(Yt,{children:A(nn,{className:"flex items-center gap-2 text-base",children:[p(Rf,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-500"}),"No Database Detected"]})}),A(Gt,{className:"space-y-4",children:[p("p",{className:"text-sm text-muted-foreground",children:"Vision couldn't detect a Drizzle configuration file."}),A("div",{className:"space-y-3",children:[p("p",{className:"text-sm font-medium",children:"To enable database features:"}),A("ol",{className:"list-decimal list-inside space-y-2 text-sm text-muted-foreground",children:[A("li",{children:["Create ",p("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono border",children:"drizzle.config.ts"})]}),p("li",{children:"Enable auto-start in Vision config:"})]}),p("pre",{className:"bg-gray-900 dark:bg-gray-950 text-gray-300 dark:text-gray-400 p-4 rounded-md text-xs overflow-x-auto font-mono border",children:`app.use('*', visionAdapter({
220
- drizzle: {
221
- autoStart: true, // Auto-start Drizzle Studio
222
- port: 4983 // Optional, default: 4983
223
- }
224
- }))`})]})]})]})});const i=r.studioUrl;return A("div",{className:"h-full flex flex-col bg-background",children:[p("div",{className:"border-b px-6 py-4 bg-muted",children:A("div",{className:"flex items-center justify-between",children:[A("div",{className:"flex items-center gap-3",children:[p(Jf,{className:"w-5 h-5 text-blue-600 dark:text-blue-500"}),A("div",{className:"flex items-center gap-3",children:[p("h1",{className:"text-lg font-semibold",children:"Drizzle Studio"}),A("div",{className:"flex items-center gap-2 mt-1",children:[p(je,{variant:r.autoStarted?"default":"secondary",className:r.autoStarted?"bg-green-600 hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700 text-xs":"text-xs",children:r.autoStarted?"Running":"Stopped"}),p("span",{className:"text-xs text-muted-foreground",children:r.autoStarted?"Auto-started":"Manual start required"})]})]})]}),p("div",{className:"flex items-center gap-2",children:i&&A(vt,{variant:"outline",size:"sm",onClick:()=>window.open(i,"_blank"),children:[p(Qy,{className:"w-4 h-4 mr-2"}),p("span",{className:"text-sm font-medium",children:"Open in New Tab"})]})})]})}),!r.autoStarted&&p("div",{className:"p-6",children:A(R0,{className:"border-yellow-200 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-950",children:[p(Rf,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-500"}),p(M0,{children:A("div",{className:"space-y-3",children:[p("p",{className:"text-sm font-medium",children:"Drizzle Studio is not running"}),p("p",{className:"text-sm text-muted-foreground",children:"Start Drizzle Studio manually or enable auto-start:"}),p("pre",{className:"bg-gray-900 dark:bg-gray-950 text-gray-300 dark:text-gray-400 p-4 rounded-md text-xs overflow-x-auto font-mono border",children:`# Start manually:
225
- npx drizzle-kit studio --port ${((f=(c=r.studioUrl)==null?void 0:c.match(/:(\d+)/))==null?void 0:f[1])||4983}
226
-
227
- # Or enable auto-start:
228
- drizzle: { autoStart: true }`})]})})]})}),i&&r.autoStarted&&p("div",{className:"flex-1 relative",children:p("iframe",{src:i,className:"absolute inset-0 w-full h-full border-0",title:"Drizzle Studio",allow:"cross-origin-isolated"})})]})}function Lw({toasts:l,removeToast:r}){return p("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none",children:l.map(i=>p(qw,{toast:i,onClose:()=>r(i.id)},i.id))})}function qw({toast:l,onClose:r}){const[i,u]=b.useState(!1);b.useEffect(()=>{const f=l.duration??3e3,d=setTimeout(()=>{u(!0),setTimeout(r,300)},f);return()=>clearTimeout(d)},[l.duration,r]);const c={success:"bg-green-600",error:"bg-red-600",info:"bg-blue-600"}[l.type??"info"];return A("div",{className:`pointer-events-auto flex items-center gap-3 ${c} text-white px-4 py-3 rounded-lg shadow-lg min-w-[300px] max-w-[400px] transition-all duration-300 ${i?"opacity-0 translate-x-full":"opacity-100 translate-x-0"}`,children:[p("span",{className:"flex-1 text-sm",children:l.message}),p("button",{onClick:()=>{u(!0),setTimeout(r,300)},className:"text-white/80 hover:text-white transition-colors","aria-label":"Close",children:p(DS,{className:"w-4 h-4"})})]})}const jw=new U1;function Hw({children:l}){const{connected:r,error:i}=US();return i?p("div",{className:"flex items-center justify-center h-screen",children:A("div",{className:"text-center",children:[p("h1",{className:"text-2xl font-bold text-red-600 mb-2",children:"Connection Error"}),p("p",{className:"text-gray-600",children:i.message})]})}):r?p(Kn,{children:l}):p("div",{className:"flex items-center justify-center h-screen",children:A("div",{className:"text-center",children:[p("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),p("p",{className:"text-gray-600",children:"Connecting to Vision Dashboard..."})]})})}function Bw(){const{traceId:l}=Yf(),{data:r}=LS(l||"");return r?p(yw,{trace:r}):p("div",{className:"text-gray-500",children:"Loading trace..."})}function kw(){return p(sw,{children:p(Qw,{})})}function Qw(){const{toasts:l,removeToast:r}=ld();return A(Kn,{children:[p(sS,{children:p(Hw,{children:p(Bx,{children:A(Yn,{path:"/",element:p(z2,{}),children:[p(Yn,{index:!0,element:p(jx,{to:"/api-explorer",replace:!0})}),p(Yn,{path:"api-explorer",element:p(ow,{})}),p(Yn,{path:"traces",element:p(gw,{}),children:p(Yn,{path:":traceId",element:p(Bw,{})})}),p(Yn,{path:"logs",element:p(Mw,{})}),p(Yn,{path:"services",element:p(zw,{})}),p(Yn,{path:"database",element:p(Uw,{})})]})})})}),p(Lw,{toasts:l,removeToast:r})]})}f1.createRoot(document.getElementById("app")).render(p(ha.StrictMode,{children:p(L1,{client:jw,children:p(kw,{})})}));