causantic 0.8.0 → 0.8.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 (72) hide show
  1. package/dist/cli/commands/hook.d.ts.map +1 -1
  2. package/dist/cli/commands/hook.js +8 -6
  3. package/dist/cli/commands/hook.js.map +1 -1
  4. package/dist/dashboard/client/assets/index-D1oEM16n.js +17 -0
  5. package/dist/dashboard/client/index.html +1 -1
  6. package/dist/dashboard/routes/timeline.js +2 -2
  7. package/dist/dashboard/routes/timeline.js.map +1 -1
  8. package/dist/hooks/claudemd-generator.d.ts +2 -0
  9. package/dist/hooks/claudemd-generator.d.ts.map +1 -1
  10. package/dist/hooks/claudemd-generator.js +6 -4
  11. package/dist/hooks/claudemd-generator.js.map +1 -1
  12. package/dist/hooks/hook-utils.d.ts +8 -0
  13. package/dist/hooks/hook-utils.d.ts.map +1 -1
  14. package/dist/hooks/hook-utils.js +38 -2
  15. package/dist/hooks/hook-utils.js.map +1 -1
  16. package/dist/hooks/pre-compact.d.ts.map +1 -1
  17. package/dist/hooks/pre-compact.js +2 -25
  18. package/dist/hooks/pre-compact.js.map +1 -1
  19. package/dist/hooks/session-end.d.ts.map +1 -1
  20. package/dist/hooks/session-end.js +2 -25
  21. package/dist/hooks/session-end.js.map +1 -1
  22. package/dist/ingest/ingest-session.d.ts.map +1 -1
  23. package/dist/ingest/ingest-session.js +2 -1
  24. package/dist/ingest/ingest-session.js.map +1 -1
  25. package/dist/mcp/server.d.ts.map +1 -1
  26. package/dist/mcp/server.js +10 -9
  27. package/dist/mcp/server.js.map +1 -1
  28. package/dist/mcp/tools.d.ts.map +1 -1
  29. package/dist/mcp/tools.js +2 -1
  30. package/dist/mcp/tools.js.map +1 -1
  31. package/dist/parser/session-reader.d.ts.map +1 -1
  32. package/dist/parser/session-reader.js +5 -3
  33. package/dist/parser/session-reader.js.map +1 -1
  34. package/dist/storage/archive.js +7 -7
  35. package/dist/storage/archive.js.map +1 -1
  36. package/dist/storage/chunk-store.d.ts.map +1 -1
  37. package/dist/storage/chunk-store.js +4 -15
  38. package/dist/storage/chunk-store.js.map +1 -1
  39. package/dist/storage/db.d.ts +6 -0
  40. package/dist/storage/db.d.ts.map +1 -1
  41. package/dist/storage/db.js +8 -0
  42. package/dist/storage/db.js.map +1 -1
  43. package/dist/storage/edge-store.d.ts.map +1 -1
  44. package/dist/storage/edge-store.js +4 -14
  45. package/dist/storage/edge-store.js.map +1 -1
  46. package/dist/storage/embedding-cache.js +3 -3
  47. package/dist/storage/embedding-cache.js.map +1 -1
  48. package/dist/storage/feedback-store.js +2 -2
  49. package/dist/storage/feedback-store.js.map +1 -1
  50. package/dist/storage/index.d.ts +1 -1
  51. package/dist/storage/index.d.ts.map +1 -1
  52. package/dist/storage/index.js +1 -1
  53. package/dist/storage/index.js.map +1 -1
  54. package/dist/storage/keyword-store.d.ts.map +1 -1
  55. package/dist/storage/keyword-store.js +2 -2
  56. package/dist/storage/keyword-store.js.map +1 -1
  57. package/dist/storage/migrations.d.ts.map +1 -1
  58. package/dist/storage/migrations.js +8 -7
  59. package/dist/storage/migrations.js.map +1 -1
  60. package/dist/storage/vector-store.js +6 -6
  61. package/dist/storage/vector-store.js.map +1 -1
  62. package/dist/utils/errors.d.ts +6 -0
  63. package/dist/utils/errors.d.ts.map +1 -1
  64. package/dist/utils/errors.js +10 -2
  65. package/dist/utils/errors.js.map +1 -1
  66. package/dist/utils/project-path.d.ts +24 -0
  67. package/dist/utils/project-path.d.ts.map +1 -0
  68. package/dist/utils/project-path.js +135 -0
  69. package/dist/utils/project-path.js.map +1 -0
  70. package/package.json +1 -1
  71. package/src/dashboard/client/package.json +1 -1
  72. package/dist/dashboard/client/assets/index-Bv5lFW-1.js +0 -17
@@ -0,0 +1,17 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.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 r(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=r(c);fetch(c.href,f)}})();var Os={exports:{}},Li={};var I0;function Nb(){if(I0)return Li;I0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(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 g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:n,type:u,key:d,ref:c!==void 0?c:null,props:f}}return Li.Fragment=a,Li.jsx=r,Li.jsxs=r,Li}var P0;function zb(){return P0||(P0=1,Os.exports=Nb()),Os.exports}var S=zb(),Us={exports:{}},vt={};var tg;function Rb(){if(tg)return vt;tg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=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"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function T(_){return _===null||typeof _!="object"?null:(_=b&&_[b]||_["@@iterator"],typeof _=="function"?_:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function N(_,z,I){this.props=_,this.context=z,this.refs=A,this.updater=I||D}N.prototype.isReactComponent={},N.prototype.setState=function(_,z){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,z,"setState")},N.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function Q(){}Q.prototype=N.prototype;function G(_,z,I){this.props=_,this.context=z,this.refs=A,this.updater=I||D}var nt=G.prototype=new Q;nt.constructor=G,j(nt,N.prototype),nt.isPureReactComponent=!0;var it=Array.isArray;function X(){}var K={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function dt(_,z,I){var V=I.ref;return{$$typeof:n,type:_,key:z,ref:V!==void 0?V:null,props:I}}function Tt(_,z){return dt(_.type,z,_.props)}function st(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function lt(_){var z={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(I){return z[I]})}var bt=/\/+/g;function O(_,z){return typeof _=="object"&&_!==null&&_.key!=null?lt(""+_.key):z.toString(36)}function F(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(X,X):(_.status="pending",_.then(function(z){_.status==="pending"&&(_.status="fulfilled",_.value=z)},function(z){_.status==="pending"&&(_.status="rejected",_.reason=z)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function w(_,z,I,V,et){var at=typeof _;(at==="undefined"||at==="boolean")&&(_=null);var mt=!1;if(_===null)mt=!0;else switch(at){case"bigint":case"string":case"number":mt=!0;break;case"object":switch(_.$$typeof){case n:case a:mt=!0;break;case v:return mt=_._init,w(mt(_._payload),z,I,V,et)}}if(mt)return et=et(_),mt=V===""?"."+O(_,0):V,it(et)?(I="",mt!=null&&(I=mt.replace(bt,"$&/")+"/"),w(et,z,I,"",function(pt){return pt})):et!=null&&(st(et)&&(et=Tt(et,I+(et.key==null||_&&_.key===et.key?"":(""+et.key).replace(bt,"$&/")+"/")+mt)),z.push(et)),1;mt=0;var zt=V===""?".":V+":";if(it(_))for(var J=0;J<_.length;J++)V=_[J],at=zt+O(V,J),mt+=w(V,z,I,at,et);else if(J=T(_),typeof J=="function")for(_=J.call(_),J=0;!(V=_.next()).done;)V=V.value,at=zt+O(V,J++),mt+=w(V,z,I,at,et);else if(at==="object"){if(typeof _.then=="function")return w(F(_),z,I,V,et);throw z=String(_),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return mt}function Y(_,z,I){if(_==null)return _;var V=[],et=0;return w(_,V,"","",function(at){return z.call(I,at,et++)}),V}function tt(_){if(_._status===-1){var z=_._result;z=z(),z.then(function(I){(_._status===0||_._status===-1)&&(_._status=1,_._result=I)},function(I){(_._status===0||_._status===-1)&&(_._status=2,_._result=I)}),_._status===-1&&(_._status=0,_._result=z)}if(_._status===1)return _._result.default;throw _._result}var rt=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},H={map:Y,forEach:function(_,z,I){Y(_,function(){z.apply(this,arguments)},I)},count:function(_){var z=0;return Y(_,function(){z++}),z},toArray:function(_){return Y(_,function(z){return z})||[]},only:function(_){if(!st(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return vt.Activity=y,vt.Children=H,vt.Component=N,vt.Fragment=r,vt.Profiler=c,vt.PureComponent=G,vt.StrictMode=u,vt.Suspense=m,vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,vt.__COMPILER_RUNTIME={__proto__:null,c:function(_){return K.H.useMemoCache(_)}},vt.cache=function(_){return function(){return _.apply(null,arguments)}},vt.cacheSignal=function(){return null},vt.cloneElement=function(_,z,I){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var V=j({},_.props),et=_.key;if(z!=null)for(at in z.key!==void 0&&(et=""+z.key),z)!P.call(z,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&z.ref===void 0||(V[at]=z[at]);var at=arguments.length-2;if(at===1)V.children=I;else if(1<at){for(var mt=Array(at),zt=0;zt<at;zt++)mt[zt]=arguments[zt+2];V.children=mt}return dt(_.type,et,V)},vt.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},vt.createElement=function(_,z,I){var V,et={},at=null;if(z!=null)for(V in z.key!==void 0&&(at=""+z.key),z)P.call(z,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(et[V]=z[V]);var mt=arguments.length-2;if(mt===1)et.children=I;else if(1<mt){for(var zt=Array(mt),J=0;J<mt;J++)zt[J]=arguments[J+2];et.children=zt}if(_&&_.defaultProps)for(V in mt=_.defaultProps,mt)et[V]===void 0&&(et[V]=mt[V]);return dt(_,at,et)},vt.createRef=function(){return{current:null}},vt.forwardRef=function(_){return{$$typeof:g,render:_}},vt.isValidElement=st,vt.lazy=function(_){return{$$typeof:v,_payload:{_status:-1,_result:_},_init:tt}},vt.memo=function(_,z){return{$$typeof:h,type:_,compare:z===void 0?null:z}},vt.startTransition=function(_){var z=K.T,I={};K.T=I;try{var V=_(),et=K.S;et!==null&&et(I,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(X,rt)}catch(at){rt(at)}finally{z!==null&&I.types!==null&&(z.types=I.types),K.T=z}},vt.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},vt.use=function(_){return K.H.use(_)},vt.useActionState=function(_,z,I){return K.H.useActionState(_,z,I)},vt.useCallback=function(_,z){return K.H.useCallback(_,z)},vt.useContext=function(_){return K.H.useContext(_)},vt.useDebugValue=function(){},vt.useDeferredValue=function(_,z){return K.H.useDeferredValue(_,z)},vt.useEffect=function(_,z){return K.H.useEffect(_,z)},vt.useEffectEvent=function(_){return K.H.useEffectEvent(_)},vt.useId=function(){return K.H.useId()},vt.useImperativeHandle=function(_,z,I){return K.H.useImperativeHandle(_,z,I)},vt.useInsertionEffect=function(_,z){return K.H.useInsertionEffect(_,z)},vt.useLayoutEffect=function(_,z){return K.H.useLayoutEffect(_,z)},vt.useMemo=function(_,z){return K.H.useMemo(_,z)},vt.useOptimistic=function(_,z){return K.H.useOptimistic(_,z)},vt.useReducer=function(_,z,I){return K.H.useReducer(_,z,I)},vt.useRef=function(_){return K.H.useRef(_)},vt.useState=function(_){return K.H.useState(_)},vt.useSyncExternalStore=function(_,z,I){return K.H.useSyncExternalStore(_,z,I)},vt.useTransition=function(){return K.H.useTransition()},vt.version="19.2.4",vt}var eg;function Tf(){return eg||(eg=1,Us.exports=Rb()),Us.exports}var R=Tf(),js={exports:{}},Yi={},ks={exports:{}},Hs={};var ng;function Db(){return ng||(ng=1,(function(n){function a(w,Y){var tt=w.length;w.push(Y);t:for(;0<tt;){var rt=tt-1>>>1,H=w[rt];if(0<c(H,Y))w[rt]=Y,w[tt]=H,tt=rt;else break t}}function r(w){return w.length===0?null:w[0]}function u(w){if(w.length===0)return null;var Y=w[0],tt=w.pop();if(tt!==Y){w[0]=tt;t:for(var rt=0,H=w.length,_=H>>>1;rt<_;){var z=2*(rt+1)-1,I=w[z],V=z+1,et=w[V];if(0>c(I,tt))V<H&&0>c(et,I)?(w[rt]=et,w[V]=tt,rt=V):(w[rt]=I,w[z]=tt,rt=z);else if(V<H&&0>c(et,tt))w[rt]=et,w[V]=tt,rt=V;else break t}}return Y}function c(w,Y){var tt=w.sortIndex-Y.sortIndex;return tt!==0?tt:w.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();n.unstable_now=function(){return d.now()-g}}var m=[],h=[],v=1,y=null,b=3,T=!1,D=!1,j=!1,A=!1,N=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function nt(w){for(var Y=r(h);Y!==null;){if(Y.callback===null)u(h);else if(Y.startTime<=w)u(h),Y.sortIndex=Y.expirationTime,a(m,Y);else break;Y=r(h)}}function it(w){if(j=!1,nt(w),!D)if(r(m)!==null)D=!0,X||(X=!0,lt());else{var Y=r(h);Y!==null&&F(it,Y.startTime-w)}}var X=!1,K=-1,P=5,dt=-1;function Tt(){return A?!0:!(n.unstable_now()-dt<P)}function st(){if(A=!1,X){var w=n.unstable_now();dt=w;var Y=!0;try{t:{D=!1,j&&(j=!1,Q(K),K=-1),T=!0;var tt=b;try{e:{for(nt(w),y=r(m);y!==null&&!(y.expirationTime>w&&Tt());){var rt=y.callback;if(typeof rt=="function"){y.callback=null,b=y.priorityLevel;var H=rt(y.expirationTime<=w);if(w=n.unstable_now(),typeof H=="function"){y.callback=H,nt(w),Y=!0;break e}y===r(m)&&u(m),nt(w)}else u(m);y=r(m)}if(y!==null)Y=!0;else{var _=r(h);_!==null&&F(it,_.startTime-w),Y=!1}}break t}finally{y=null,b=tt,T=!1}Y=void 0}}finally{Y?lt():X=!1}}}var lt;if(typeof G=="function")lt=function(){G(st)};else if(typeof MessageChannel<"u"){var bt=new MessageChannel,O=bt.port2;bt.port1.onmessage=st,lt=function(){O.postMessage(null)}}else lt=function(){N(st,0)};function F(w,Y){K=N(function(){w(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(w){w.callback=null},n.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<w?Math.floor(1e3/w):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(w){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var tt=b;b=Y;try{return w()}finally{b=tt}},n.unstable_requestPaint=function(){A=!0},n.unstable_runWithPriority=function(w,Y){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var tt=b;b=w;try{return Y()}finally{b=tt}},n.unstable_scheduleCallback=function(w,Y,tt){var rt=n.unstable_now();switch(typeof tt=="object"&&tt!==null?(tt=tt.delay,tt=typeof tt=="number"&&0<tt?rt+tt:rt):tt=rt,w){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=tt+H,w={id:v++,callback:Y,priorityLevel:w,startTime:tt,expirationTime:H,sortIndex:-1},tt>rt?(w.sortIndex=tt,a(h,w),r(m)===null&&w===r(h)&&(j?(Q(K),K=-1):j=!0,F(it,tt-rt))):(w.sortIndex=H,a(m,w),D||T||(D=!0,X||(X=!0,lt()))),w},n.unstable_shouldYield=Tt,n.unstable_wrapCallback=function(w){var Y=b;return function(){var tt=b;b=Y;try{return w.apply(this,arguments)}finally{b=tt}}}})(Hs)),Hs}var lg;function Ob(){return lg||(lg=1,ks.exports=Db()),ks.exports}var Ls={exports:{}},me={};var ag;function Ub(){if(ag)return me;ag=1;var n=Tf();function a(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(m,h,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:m,containerInfo:h,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,me.createPortal=function(m,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(a(299));return f(m,h,null,v)},me.flushSync=function(m){var h=d.T,v=u.p;try{if(d.T=null,u.p=2,m)return m()}finally{d.T=h,u.p=v,u.d.f()}},me.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,u.d.C(m,h))},me.prefetchDNS=function(m){typeof m=="string"&&u.d.D(m)},me.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var v=h.as,y=g(v,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,T=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?u.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:T}):v==="script"&&u.d.X(m,{crossOrigin:y,integrity:b,fetchPriority:T,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},me.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=g(h.as,h.crossOrigin);u.d.M(m,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&u.d.M(m)},me.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,y=g(v,h.crossOrigin);u.d.L(m,v,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},me.preloadModule=function(m,h){if(typeof m=="string")if(h){var v=g(h.as,h.crossOrigin);u.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else u.d.m(m)},me.requestFormReset=function(m){u.d.r(m)},me.unstable_batchedUpdates=function(m,h){return m(h)},me.useFormState=function(m,h,v){return d.H.useFormState(m,h,v)},me.useFormStatus=function(){return d.H.useHostTransitionStatus()},me.version="19.2.4",me}var ig;function jb(){if(ig)return Ls.exports;ig=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Ls.exports=Ub(),Ls.exports}var rg;function kb(){if(rg)return Yi;rg=1;var n=Ob(),a=Tf(),r=jb();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(f(t)!==t)throw Error(u(188))}function h(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(u(188));return e!==t?null:t}for(var l=t,i=e;;){var o=l.return;if(o===null)break;var s=o.alternate;if(s===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===l)return m(o),t;if(s===i)return m(o),e;s=s.sibling}throw Error(u(188))}if(l.return!==i.return)l=o,i=s;else{for(var p=!1,x=o.child;x;){if(x===l){p=!0,l=o,i=s;break}if(x===i){p=!0,i=o,l=s;break}x=x.sibling}if(!p){for(x=s.child;x;){if(x===l){p=!0,l=s,i=o;break}if(x===i){p=!0,i=s,l=o;break}x=x.sibling}if(!p)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),nt=Symbol.for("react.forward_ref"),it=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),dt=Symbol.for("react.activity"),Tt=Symbol.for("react.memo_cache_sentinel"),st=Symbol.iterator;function lt(t){return t===null||typeof t!="object"?null:(t=st&&t[st]||t["@@iterator"],typeof t=="function"?t:null)}var bt=Symbol.for("react.client.reference");function O(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===bt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case it:return"Suspense";case X:return"SuspenseList";case dt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case D:return"Portal";case G:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case nt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K:return e=t.displayName||null,e!==null?e:O(t.type)||"Memo";case P:e=t._payload,t=t._init;try{return O(t(e))}catch{}}return null}var F=Array.isArray,w=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt={pending:!1,data:null,method:null,action:null},rt=[],H=-1;function _(t){return{current:t}}function z(t){0>H||(t.current=rt[H],rt[H]=null,H--)}function I(t,e){H++,rt[H]=t.current,t.current=e}var V=_(null),et=_(null),at=_(null),mt=_(null);function zt(t,e){switch(I(at,e),I(et,t),I(V,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?S0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=S0(e),t=_0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}z(V),I(V,t)}function J(){z(V),z(et),z(at)}function pt(t){t.memoizedState!==null&&I(mt,t);var e=V.current,l=_0(e,t.type);e!==l&&(I(et,t),I(V,l))}function yt(t){et.current===t&&(z(V),z(et)),mt.current===t&&(z(mt),Ui._currentValue=tt)}var W,Bt;function xt(t){if(W===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);W=e&&e[1]||"",Bt=-1<l.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+W+t+Bt}var Gt=!1;function $t(t,e){if(!t||Gt)return"";Gt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(B){var L=B}Reflect.construct(t,[],$)}else{try{$.call()}catch(B){L=B}t.call($.prototype)}}else{try{throw Error()}catch(B){L=B}($=t())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(B){if(B&&L&&typeof B.stack=="string")return[B.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=i.DetermineComponentFrameRoot(),p=s[0],x=s[1];if(p&&x){var M=p.split(`
4
+ `),k=x.split(`
5
+ `);for(o=i=0;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;for(;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;if(i===M.length||o===k.length)for(i=M.length-1,o=k.length-1;1<=i&&0<=o&&M[i]!==k[o];)o--;for(;1<=i&&0<=o;i--,o--)if(M[i]!==k[o]){if(i!==1||o!==1)do if(i--,o--,0>o||M[i]!==k[o]){var q=`
6
+ `+M[i].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=i&&0<=o);break}}}finally{Gt=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?xt(l):""}function Me(t,e){switch(t.tag){case 26:case 27:case 5:return xt(t.type);case 16:return xt("Lazy");case 13:return t.child!==e&&e!==null?xt("Suspense Fallback"):xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return $t(t.type,!1);case 11:return $t(t.type.render,!1);case 1:return $t(t.type,!0);case 31:return xt("Activity");default:return""}}function Gn(t){try{var e="",l=null;do e+=Me(t,l),l=t,t=t.return;while(t);return e}catch(i){return`
7
+ Error generating stack: `+i.message+`
8
+ `+i.stack}}var Xn=Object.prototype.hasOwnProperty,Qa=n.unstable_scheduleCallback,xo=n.unstable_cancelCallback,uv=n.unstable_shouldYield,ov=n.unstable_requestPaint,Ee=n.unstable_now,cv=n.unstable_getCurrentPriorityLevel,Pf=n.unstable_ImmediatePriority,td=n.unstable_UserBlockingPriority,dr=n.unstable_NormalPriority,sv=n.unstable_LowPriority,ed=n.unstable_IdlePriority,fv=n.log,dv=n.unstable_setDisableYieldValue,Za=null,Ae=null;function Vn(t){if(typeof fv=="function"&&dv(t),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(Za,t)}catch{}}var Ce=Math.clz32?Math.clz32:gv,hv=Math.log,mv=Math.LN2;function gv(t){return t>>>=0,t===0?32:31-(hv(t)/mv|0)|0}var hr=256,mr=262144,gr=4194304;function bl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function pr(t,e,l){var i=t.pendingLanes;if(i===0)return 0;var o=0,s=t.suspendedLanes,p=t.pingedLanes;t=t.warmLanes;var x=i&134217727;return x!==0?(i=x&~s,i!==0?o=bl(i):(p&=x,p!==0?o=bl(p):l||(l=x&~t,l!==0&&(o=bl(l))))):(x=i&~s,x!==0?o=bl(x):p!==0?o=bl(p):l||(l=i&~t,l!==0&&(o=bl(l)))),o===0?0:e!==0&&e!==o&&(e&s)===0&&(s=o&-o,l=e&-e,s>=l||s===32&&(l&4194048)!==0)?e:o}function $a(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function pv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 nd(){var t=gr;return gr<<=1,(gr&62914560)===0&&(gr=4194304),t}function So(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ka(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function yv(t,e,l,i,o,s){var p=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var x=t.entanglements,M=t.expirationTimes,k=t.hiddenUpdates;for(l=p&~l;0<l;){var q=31-Ce(l),$=1<<q;x[q]=0,M[q]=-1;var L=k[q];if(L!==null)for(k[q]=null,q=0;q<L.length;q++){var B=L[q];B!==null&&(B.lane&=-536870913)}l&=~$}i!==0&&ld(t,i,0),s!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=s&~(p&~e))}function ld(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Ce(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|l&261930}function ad(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var i=31-Ce(l),o=1<<i;o&e|t[i]&e&&(t[i]|=e),l&=~o}}function id(t,e){var l=e&-e;return l=(l&42)!==0?1:_o(l),(l&(t.suspendedLanes|e))!==0?0:l}function _o(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function wo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function rd(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Q0(t.type))}function ud(t,e){var l=Y.p;try{return Y.p=t,e()}finally{Y.p=l}}var Qn=Math.random().toString(36).slice(2),ce="__reactFiber$"+Qn,ye="__reactProps$"+Qn,Jl="__reactContainer$"+Qn,To="__reactEvents$"+Qn,vv="__reactListeners$"+Qn,bv="__reactHandles$"+Qn,od="__reactResources$"+Qn,Ja="__reactMarker$"+Qn;function Mo(t){delete t[ce],delete t[ye],delete t[To],delete t[vv],delete t[bv]}function Fl(t){var e=t[ce];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Jl]||l[ce]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=N0(t);t!==null;){if(l=t[ce])return l;t=N0(t)}return e}t=l,l=t.parentNode}return null}function Wl(t){if(t=t[ce]||t[Jl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Fa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function Il(t){var e=t[od];return e||(e=t[od]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ie(t){t[Ja]=!0}var cd=new Set,sd={};function xl(t,e){Pl(t,e),Pl(t+"Capture",e)}function Pl(t,e){for(sd[t]=e,t=0;t<e.length;t++)cd.add(e[t])}var xv=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]*$"),fd={},dd={};function Sv(t){return Xn.call(dd,t)?!0:Xn.call(fd,t)?!1:xv.test(t)?dd[t]=!0:(fd[t]=!0,!1)}function yr(t,e,l){if(Sv(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function vr(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function gn(t,e,l,i){if(i===null)t.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+i)}}function Le(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function hd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _v(t,e,l){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,s=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(p){l=""+p,s.call(this,p)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(p){l=""+p},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Eo(t){if(!t._valueTracker){var e=hd(t)?"checked":"value";t._valueTracker=_v(t,e,""+t[e])}}function md(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),i="";return t&&(i=hd(t)?t.checked?"true":"false":t.value),t=i,t!==l?(e.setValue(t),!0):!1}function br(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var wv=/[\n"\\]/g;function Ye(t){return t.replace(wv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ao(t,e,l,i,o,s,p,x){t.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.type=p:t.removeAttribute("type"),e!=null?p==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Le(e)):t.value!==""+Le(e)&&(t.value=""+Le(e)):p!=="submit"&&p!=="reset"||t.removeAttribute("value"),e!=null?Co(t,p,Le(e)):l!=null?Co(t,p,Le(l)):i!=null&&t.removeAttribute("value"),o==null&&s!=null&&(t.defaultChecked=!!s),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Le(x):t.removeAttribute("name")}function gd(t,e,l,i,o,s,p,x){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){Eo(t);return}l=l!=null?""+Le(l):"",e=e!=null?""+Le(e):l,x||e===t.value||(t.value=e),t.defaultValue=e}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=x?t.checked:!!i,t.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.name=p),Eo(t)}function Co(t,e,l){e==="number"&&br(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function ta(t,e,l,i){if(t=t.options,e){e={};for(var o=0;o<l.length;o++)e["$"+l[o]]=!0;for(l=0;l<t.length;l++)o=e.hasOwnProperty("$"+t[l].value),t[l].selected!==o&&(t[l].selected=o),o&&i&&(t[l].defaultSelected=!0)}else{for(l=""+Le(l),e=null,o=0;o<t.length;o++){if(t[o].value===l){t[o].selected=!0,i&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function pd(t,e,l){if(e!=null&&(e=""+Le(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Le(l):""}function yd(t,e,l,i){if(e==null){if(i!=null){if(l!=null)throw Error(u(92));if(F(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),e=l}l=Le(e),t.defaultValue=l,i=t.textContent,i===l&&i!==""&&i!==null&&(t.value=i),Eo(t)}function ea(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Tv=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 vd(t,e,l){var i=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,l):typeof l!="number"||l===0||Tv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function bd(t,e,l){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var o in e)i=e[o],e.hasOwnProperty(o)&&l[o]!==i&&vd(t,o,i)}else for(var s in e)e.hasOwnProperty(s)&&vd(t,s,e[s])}function No(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Mv=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"]]),Ev=/^[\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 xr(t){return Ev.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function pn(){}var zo=null;function Ro(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var na=null,la=null;function xd(t){var e=Wl(t);if(e&&(t=e.stateNode)){var l=t[ye]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ao(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ye(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var i=l[e];if(i!==t&&i.form===t.form){var o=i[ye]||null;if(!o)throw Error(u(90));Ao(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<l.length;e++)i=l[e],i.form===t.form&&md(i)}break t;case"textarea":pd(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&ta(t,!!l.multiple,e,!1)}}}var Do=!1;function Sd(t,e,l){if(Do)return t(e,l);Do=!0;try{var i=t(e);return i}finally{if(Do=!1,(na!==null||la!==null)&&(uu(),na&&(e=na,t=la,la=na=null,xd(e),t)))for(e=0;e<t.length;e++)xd(t[e])}}function Wa(t,e){var l=t.stateNode;if(l===null)return null;var i=l[ye]||null;if(i===null)return null;l=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(u(231,e,typeof l));return l}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=!1;if(yn)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{Oo=!1}var Zn=null,Uo=null,Sr=null;function _d(){if(Sr)return Sr;var t,e=Uo,l=e.length,i,o="value"in Zn?Zn.value:Zn.textContent,s=o.length;for(t=0;t<l&&e[t]===o[t];t++);var p=l-t;for(i=1;i<=p&&e[l-i]===o[s-i];i++);return Sr=o.slice(t,1<i?1-i:void 0)}function _r(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function wr(){return!0}function wd(){return!1}function ve(t){function e(l,i,o,s,p){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=s,this.target=p,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(l=t[x],this[x]=l?l(s):s[x]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?wr:wd,this.isPropagationStopped=wd,this}return y(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=wr)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=wr)},persist:function(){},isPersistent:wr}),e}var Sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tr=ve(Sl),Pa=y({},Sl,{view:0,detail:0}),Av=ve(Pa),jo,ko,ti,Mr=y({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lo,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ti&&(ti&&t.type==="mousemove"?(jo=t.screenX-ti.screenX,ko=t.screenY-ti.screenY):ko=jo=0,ti=t),jo)},movementY:function(t){return"movementY"in t?t.movementY:ko}}),Td=ve(Mr),Cv=y({},Mr,{dataTransfer:0}),Nv=ve(Cv),zv=y({},Pa,{relatedTarget:0}),Ho=ve(zv),Rv=y({},Sl,{animationName:0,elapsedTime:0,pseudoElement:0}),Dv=ve(Rv),Ov=y({},Sl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Uv=ve(Ov),jv=y({},Sl,{data:0}),Md=ve(jv),kv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hv={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"},Lv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Lv[t])?!!e[t]:!1}function Lo(){return Yv}var Bv=y({},Pa,{key:function(t){if(t.key){var e=kv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=_r(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lo,charCode:function(t){return t.type==="keypress"?_r(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_r(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qv=ve(Bv),Gv=y({},Mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ed=ve(Gv),Xv=y({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lo}),Vv=ve(Xv),Qv=y({},Sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zv=ve(Qv),$v=y({},Mr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Kv=ve($v),Jv=y({},Sl,{newState:0,oldState:0}),Fv=ve(Jv),Wv=[9,13,27,32],Yo=yn&&"CompositionEvent"in window,ei=null;yn&&"documentMode"in document&&(ei=document.documentMode);var Iv=yn&&"TextEvent"in window&&!ei,Ad=yn&&(!Yo||ei&&8<ei&&11>=ei),Cd=" ",Nd=!1;function zd(t,e){switch(t){case"keyup":return Wv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var aa=!1;function Pv(t,e){switch(t){case"compositionend":return Rd(e);case"keypress":return e.which!==32?null:(Nd=!0,Cd);case"textInput":return t=e.data,t===Cd&&Nd?null:t;default:return null}}function t1(t,e){if(aa)return t==="compositionend"||!Yo&&zd(t,e)?(t=_d(),Sr=Uo=Zn=null,aa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Ad&&e.locale!=="ko"?null:e.data;default:return null}}var e1={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 Dd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!e1[t.type]:e==="textarea"}function Od(t,e,l,i){na?la?la.push(i):la=[i]:na=i,e=mu(e,"onChange"),0<e.length&&(l=new Tr("onChange","change",null,l,i),t.push({event:l,listeners:e}))}var ni=null,li=null;function n1(t){g0(t,0)}function Er(t){var e=Fa(t);if(md(e))return t}function Ud(t,e){if(t==="change")return e}var jd=!1;if(yn){var Bo;if(yn){var qo="oninput"in document;if(!qo){var kd=document.createElement("div");kd.setAttribute("oninput","return;"),qo=typeof kd.oninput=="function"}Bo=qo}else Bo=!1;jd=Bo&&(!document.documentMode||9<document.documentMode)}function Hd(){ni&&(ni.detachEvent("onpropertychange",Ld),li=ni=null)}function Ld(t){if(t.propertyName==="value"&&Er(li)){var e=[];Od(e,li,t,Ro(t)),Sd(n1,e)}}function l1(t,e,l){t==="focusin"?(Hd(),ni=e,li=l,ni.attachEvent("onpropertychange",Ld)):t==="focusout"&&Hd()}function a1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Er(li)}function i1(t,e){if(t==="click")return Er(e)}function r1(t,e){if(t==="input"||t==="change")return Er(e)}function u1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ne=typeof Object.is=="function"?Object.is:u1;function ai(t,e){if(Ne(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),i=Object.keys(e);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!Xn.call(e,o)||!Ne(t[o],e[o]))return!1}return!0}function Yd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bd(t,e){var l=Yd(t);t=0;for(var i;l;){if(l.nodeType===3){if(i=t+l.textContent.length,t<=e&&i>=e)return{node:l,offset:e-t};t=i}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Yd(l)}}function qd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Gd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=br(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=br(t.document)}return e}function Go(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var o1=yn&&"documentMode"in document&&11>=document.documentMode,ia=null,Xo=null,ii=null,Vo=!1;function Xd(t,e,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vo||ia==null||ia!==br(i)||(i=ia,"selectionStart"in i&&Go(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ii&&ai(ii,i)||(ii=i,i=mu(Xo,"onSelect"),0<i.length&&(e=new Tr("onSelect","select",null,e,l),t.push({event:e,listeners:i}),e.target=ia)))}function _l(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ra={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionrun:_l("Transition","TransitionRun"),transitionstart:_l("Transition","TransitionStart"),transitioncancel:_l("Transition","TransitionCancel"),transitionend:_l("Transition","TransitionEnd")},Qo={},Vd={};yn&&(Vd=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function wl(t){if(Qo[t])return Qo[t];if(!ra[t])return t;var e=ra[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Vd)return Qo[t]=e[l];return t}var Qd=wl("animationend"),Zd=wl("animationiteration"),$d=wl("animationstart"),c1=wl("transitionrun"),s1=wl("transitionstart"),f1=wl("transitioncancel"),Kd=wl("transitionend"),Jd=new Map,Zo="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(" ");Zo.push("scrollEnd");function Fe(t,e){Jd.set(t,e),xl(e,[t])}var Ar=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Be=[],ua=0,$o=0;function Cr(){for(var t=ua,e=$o=ua=0;e<t;){var l=Be[e];Be[e++]=null;var i=Be[e];Be[e++]=null;var o=Be[e];Be[e++]=null;var s=Be[e];if(Be[e++]=null,i!==null&&o!==null){var p=i.pending;p===null?o.next=o:(o.next=p.next,p.next=o),i.pending=o}s!==0&&Fd(l,o,s)}}function Nr(t,e,l,i){Be[ua++]=t,Be[ua++]=e,Be[ua++]=l,Be[ua++]=i,$o|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Ko(t,e,l,i){return Nr(t,e,l,i),zr(t)}function Tl(t,e){return Nr(t,null,null,e),zr(t)}function Fd(t,e,l){t.lanes|=l;var i=t.alternate;i!==null&&(i.lanes|=l);for(var o=!1,s=t.return;s!==null;)s.childLanes|=l,i=s.alternate,i!==null&&(i.childLanes|=l),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(o=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,o&&e!==null&&(o=31-Ce(l),t=s.hiddenUpdates,i=t[o],i===null?t[o]=[e]:i.push(e),e.lane=l|536870912),s):null}function zr(t){if(50<Ai)throw Ai=0,ls=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var oa={};function d1(t,e,l,i){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(t,e,l,i){return new d1(t,e,l,i)}function Jo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vn(t,e){var l=t.alternate;return l===null?(l=ze(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Wd(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Rr(t,e,l,i,o,s){var p=0;if(i=t,typeof t=="function")Jo(t)&&(p=1);else if(typeof t=="string")p=yb(t,l,V.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case dt:return t=ze(31,l,e,o),t.elementType=dt,t.lanes=s,t;case j:return Ml(l.children,o,s,e);case A:p=8,o|=24;break;case N:return t=ze(12,l,e,o|2),t.elementType=N,t.lanes=s,t;case it:return t=ze(13,l,e,o),t.elementType=it,t.lanes=s,t;case X:return t=ze(19,l,e,o),t.elementType=X,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:p=10;break t;case Q:p=9;break t;case nt:p=11;break t;case K:p=14;break t;case P:p=16,i=null;break t}p=29,l=Error(u(130,t===null?"null":typeof t,"")),i=null}return e=ze(p,l,e,o),e.elementType=t,e.type=i,e.lanes=s,e}function Ml(t,e,l,i){return t=ze(7,t,i,e),t.lanes=l,t}function Fo(t,e,l){return t=ze(6,t,null,e),t.lanes=l,t}function Id(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function Wo(t,e,l){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Pd=new WeakMap;function qe(t,e){if(typeof t=="object"&&t!==null){var l=Pd.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Gn(e)},Pd.set(t,e),e)}return{value:t,source:e,stack:Gn(e)}}var ca=[],sa=0,Dr=null,ri=0,Ge=[],Xe=0,$n=null,rn=1,un="";function bn(t,e){ca[sa++]=ri,ca[sa++]=Dr,Dr=t,ri=e}function th(t,e,l){Ge[Xe++]=rn,Ge[Xe++]=un,Ge[Xe++]=$n,$n=t;var i=rn;t=un;var o=32-Ce(i)-1;i&=~(1<<o),l+=1;var s=32-Ce(e)+o;if(30<s){var p=o-o%5;s=(i&(1<<p)-1).toString(32),i>>=p,o-=p,rn=1<<32-Ce(e)+o|l<<o|i,un=s+t}else rn=1<<s|l<<o|i,un=t}function Io(t){t.return!==null&&(bn(t,1),th(t,1,0))}function Po(t){for(;t===Dr;)Dr=ca[--sa],ca[sa]=null,ri=ca[--sa],ca[sa]=null;for(;t===$n;)$n=Ge[--Xe],Ge[Xe]=null,un=Ge[--Xe],Ge[Xe]=null,rn=Ge[--Xe],Ge[Xe]=null}function eh(t,e){Ge[Xe++]=rn,Ge[Xe++]=un,Ge[Xe++]=$n,rn=e.id,un=e.overflow,$n=t}var se=null,Xt=null,Nt=!1,Kn=null,Ve=!1,tc=Error(u(519));function Jn(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ui(qe(e,t)),tc}function nh(t){var e=t.stateNode,l=t.type,i=t.memoizedProps;switch(e[ce]=t,e[ye]=i,l){case"dialog":Et("cancel",e),Et("close",e);break;case"iframe":case"object":case"embed":Et("load",e);break;case"video":case"audio":for(l=0;l<Ni.length;l++)Et(Ni[l],e);break;case"source":Et("error",e);break;case"img":case"image":case"link":Et("error",e),Et("load",e);break;case"details":Et("toggle",e);break;case"input":Et("invalid",e),gd(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Et("invalid",e);break;case"textarea":Et("invalid",e),yd(e,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||i.suppressHydrationWarning===!0||b0(e.textContent,l)?(i.popover!=null&&(Et("beforetoggle",e),Et("toggle",e)),i.onScroll!=null&&Et("scroll",e),i.onScrollEnd!=null&&Et("scrollend",e),i.onClick!=null&&(e.onclick=pn),e=!0):e=!1,e||Jn(t,!0)}function lh(t){for(se=t.return;se;)switch(se.tag){case 5:case 31:case 13:Ve=!1;return;case 27:case 3:Ve=!0;return;default:se=se.return}}function fa(t){if(t!==se)return!1;if(!Nt)return lh(t),Nt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||vs(t.type,t.memoizedProps)),l=!l),l&&Xt&&Jn(t),lh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Xt=C0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Xt=C0(t)}else e===27?(e=Xt,cl(t.type)?(t=ws,ws=null,Xt=t):Xt=e):Xt=se?Ze(t.stateNode.nextSibling):null;return!0}function El(){Xt=se=null,Nt=!1}function ec(){var t=Kn;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),Kn=null),t}function ui(t){Kn===null?Kn=[t]:Kn.push(t)}var nc=_(null),Al=null,xn=null;function Fn(t,e,l){I(nc,e._currentValue),e._currentValue=l}function Sn(t){t._currentValue=nc.current,z(nc)}function lc(t,e,l){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===l)break;t=t.return}}function ac(t,e,l,i){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){var p=o.child;s=s.firstContext;t:for(;s!==null;){var x=s;s=o;for(var M=0;M<e.length;M++)if(x.context===e[M]){s.lanes|=l,x=s.alternate,x!==null&&(x.lanes|=l),lc(s.return,l,t),i||(p=null);break t}s=x.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(u(341));p.lanes|=l,s=p.alternate,s!==null&&(s.lanes|=l),lc(p,l,t),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===t){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function da(t,e,l,i){t=null;for(var o=e,s=!1;o!==null;){if(!s){if((o.flags&524288)!==0)s=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(u(387));if(p=p.memoizedProps,p!==null){var x=o.type;Ne(o.pendingProps.value,p.value)||(t!==null?t.push(x):t=[x])}}else if(o===mt.current){if(p=o.alternate,p===null)throw Error(u(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Ui):t=[Ui])}o=o.return}t!==null&&ac(e,t,l,i),e.flags|=262144}function Or(t){for(t=t.firstContext;t!==null;){if(!Ne(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Cl(t){Al=t,xn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return ah(Al,t)}function Ur(t,e){return Al===null&&Cl(t),ah(t,e)}function ah(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},xn===null){if(t===null)throw Error(u(308));xn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else xn=xn.next=e;return l}var h1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},m1=n.unstable_scheduleCallback,g1=n.unstable_NormalPriority,It={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new h1,data:new Map,refCount:0}}function oi(t){t.refCount--,t.refCount===0&&m1(g1,function(){t.controller.abort()})}var ci=null,rc=0,ha=0,ma=null;function p1(t,e){if(ci===null){var l=ci=[];rc=0,ha=cs(),ma={status:"pending",value:void 0,then:function(i){l.push(i)}}}return rc++,e.then(ih,ih),e}function ih(){if(--rc===0&&ci!==null){ma!==null&&(ma.status="fulfilled");var t=ci;ci=null,ha=0,ma=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function y1(t,e){var l=[],i={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var o=0;o<l.length;o++)(0,l[o])(e)},function(o){for(i.status="rejected",i.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),i}var rh=w.S;w.S=function(t,e){Xm=Ee(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&p1(t,e),rh!==null&&rh(t,e)};var Nl=_(null);function uc(){var t=Nl.current;return t!==null?t:qt.pooledCache}function jr(t,e){e===null?I(Nl,Nl.current):I(Nl,e.pool)}function uh(){var t=uc();return t===null?null:{parent:It._currentValue,pool:t}}var ga=Error(u(460)),oc=Error(u(474)),kr=Error(u(542)),Hr={then:function(){}};function oh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ch(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(pn,pn),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,fh(t),t;default:if(typeof e.status=="string")e.then(pn,pn);else{if(t=qt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=i}},function(i){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,fh(t),t}throw Rl=e,ga}}function zl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Rl=l,ga):l}}var Rl=null;function sh(){if(Rl===null)throw Error(u(459));var t=Rl;return Rl=null,t}function fh(t){if(t===ga||t===kr)throw Error(u(483))}var pa=null,si=0;function Lr(t){var e=si;return si+=1,pa===null&&(pa=[]),ch(pa,t,e)}function fi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Yr(t,e){throw e.$$typeof===b?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function dh(t){function e(C,E){if(t){var U=C.deletions;U===null?(C.deletions=[E],C.flags|=16):U.push(E)}}function l(C,E){if(!t)return null;for(;E!==null;)e(C,E),E=E.sibling;return null}function i(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function o(C,E){return C=vn(C,E),C.index=0,C.sibling=null,C}function s(C,E,U){return C.index=U,t?(U=C.alternate,U!==null?(U=U.index,U<E?(C.flags|=67108866,E):U):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function p(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function x(C,E,U,Z){return E===null||E.tag!==6?(E=Fo(U,C.mode,Z),E.return=C,E):(E=o(E,U),E.return=C,E)}function M(C,E,U,Z){var ht=U.type;return ht===j?q(C,E,U.props.children,Z,U.key):E!==null&&(E.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===P&&zl(ht)===E.type)?(E=o(E,U.props),fi(E,U),E.return=C,E):(E=Rr(U.type,U.key,U.props,null,C.mode,Z),fi(E,U),E.return=C,E)}function k(C,E,U,Z){return E===null||E.tag!==4||E.stateNode.containerInfo!==U.containerInfo||E.stateNode.implementation!==U.implementation?(E=Wo(U,C.mode,Z),E.return=C,E):(E=o(E,U.children||[]),E.return=C,E)}function q(C,E,U,Z,ht){return E===null||E.tag!==7?(E=Ml(U,C.mode,Z,ht),E.return=C,E):(E=o(E,U),E.return=C,E)}function $(C,E,U){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Fo(""+E,C.mode,U),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case T:return U=Rr(E.type,E.key,E.props,null,C.mode,U),fi(U,E),U.return=C,U;case D:return E=Wo(E,C.mode,U),E.return=C,E;case P:return E=zl(E),$(C,E,U)}if(F(E)||lt(E))return E=Ml(E,C.mode,U,null),E.return=C,E;if(typeof E.then=="function")return $(C,Lr(E),U);if(E.$$typeof===G)return $(C,Ur(C,E),U);Yr(C,E)}return null}function L(C,E,U,Z){var ht=E!==null?E.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ht!==null?null:x(C,E,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case T:return U.key===ht?M(C,E,U,Z):null;case D:return U.key===ht?k(C,E,U,Z):null;case P:return U=zl(U),L(C,E,U,Z)}if(F(U)||lt(U))return ht!==null?null:q(C,E,U,Z,null);if(typeof U.then=="function")return L(C,E,Lr(U),Z);if(U.$$typeof===G)return L(C,E,Ur(C,U),Z);Yr(C,U)}return null}function B(C,E,U,Z,ht){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return C=C.get(U)||null,x(E,C,""+Z,ht);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case T:return C=C.get(Z.key===null?U:Z.key)||null,M(E,C,Z,ht);case D:return C=C.get(Z.key===null?U:Z.key)||null,k(E,C,Z,ht);case P:return Z=zl(Z),B(C,E,U,Z,ht)}if(F(Z)||lt(Z))return C=C.get(U)||null,q(E,C,Z,ht,null);if(typeof Z.then=="function")return B(C,E,U,Lr(Z),ht);if(Z.$$typeof===G)return B(C,E,U,Ur(E,Z),ht);Yr(E,Z)}return null}function ut(C,E,U,Z){for(var ht=null,Rt=null,ft=E,_t=E=0,Ct=null;ft!==null&&_t<U.length;_t++){ft.index>_t?(Ct=ft,ft=null):Ct=ft.sibling;var Dt=L(C,ft,U[_t],Z);if(Dt===null){ft===null&&(ft=Ct);break}t&&ft&&Dt.alternate===null&&e(C,ft),E=s(Dt,E,_t),Rt===null?ht=Dt:Rt.sibling=Dt,Rt=Dt,ft=Ct}if(_t===U.length)return l(C,ft),Nt&&bn(C,_t),ht;if(ft===null){for(;_t<U.length;_t++)ft=$(C,U[_t],Z),ft!==null&&(E=s(ft,E,_t),Rt===null?ht=ft:Rt.sibling=ft,Rt=ft);return Nt&&bn(C,_t),ht}for(ft=i(ft);_t<U.length;_t++)Ct=B(ft,C,_t,U[_t],Z),Ct!==null&&(t&&Ct.alternate!==null&&ft.delete(Ct.key===null?_t:Ct.key),E=s(Ct,E,_t),Rt===null?ht=Ct:Rt.sibling=Ct,Rt=Ct);return t&&ft.forEach(function(ml){return e(C,ml)}),Nt&&bn(C,_t),ht}function gt(C,E,U,Z){if(U==null)throw Error(u(151));for(var ht=null,Rt=null,ft=E,_t=E=0,Ct=null,Dt=U.next();ft!==null&&!Dt.done;_t++,Dt=U.next()){ft.index>_t?(Ct=ft,ft=null):Ct=ft.sibling;var ml=L(C,ft,Dt.value,Z);if(ml===null){ft===null&&(ft=Ct);break}t&&ft&&ml.alternate===null&&e(C,ft),E=s(ml,E,_t),Rt===null?ht=ml:Rt.sibling=ml,Rt=ml,ft=Ct}if(Dt.done)return l(C,ft),Nt&&bn(C,_t),ht;if(ft===null){for(;!Dt.done;_t++,Dt=U.next())Dt=$(C,Dt.value,Z),Dt!==null&&(E=s(Dt,E,_t),Rt===null?ht=Dt:Rt.sibling=Dt,Rt=Dt);return Nt&&bn(C,_t),ht}for(ft=i(ft);!Dt.done;_t++,Dt=U.next())Dt=B(ft,C,_t,Dt.value,Z),Dt!==null&&(t&&Dt.alternate!==null&&ft.delete(Dt.key===null?_t:Dt.key),E=s(Dt,E,_t),Rt===null?ht=Dt:Rt.sibling=Dt,Rt=Dt);return t&&ft.forEach(function(Cb){return e(C,Cb)}),Nt&&bn(C,_t),ht}function Yt(C,E,U,Z){if(typeof U=="object"&&U!==null&&U.type===j&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case T:t:{for(var ht=U.key;E!==null;){if(E.key===ht){if(ht=U.type,ht===j){if(E.tag===7){l(C,E.sibling),Z=o(E,U.props.children),Z.return=C,C=Z;break t}}else if(E.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===P&&zl(ht)===E.type){l(C,E.sibling),Z=o(E,U.props),fi(Z,U),Z.return=C,C=Z;break t}l(C,E);break}else e(C,E);E=E.sibling}U.type===j?(Z=Ml(U.props.children,C.mode,Z,U.key),Z.return=C,C=Z):(Z=Rr(U.type,U.key,U.props,null,C.mode,Z),fi(Z,U),Z.return=C,C=Z)}return p(C);case D:t:{for(ht=U.key;E!==null;){if(E.key===ht)if(E.tag===4&&E.stateNode.containerInfo===U.containerInfo&&E.stateNode.implementation===U.implementation){l(C,E.sibling),Z=o(E,U.children||[]),Z.return=C,C=Z;break t}else{l(C,E);break}else e(C,E);E=E.sibling}Z=Wo(U,C.mode,Z),Z.return=C,C=Z}return p(C);case P:return U=zl(U),Yt(C,E,U,Z)}if(F(U))return ut(C,E,U,Z);if(lt(U)){if(ht=lt(U),typeof ht!="function")throw Error(u(150));return U=ht.call(U),gt(C,E,U,Z)}if(typeof U.then=="function")return Yt(C,E,Lr(U),Z);if(U.$$typeof===G)return Yt(C,E,Ur(C,U),Z);Yr(C,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,E!==null&&E.tag===6?(l(C,E.sibling),Z=o(E,U),Z.return=C,C=Z):(l(C,E),Z=Fo(U,C.mode,Z),Z.return=C,C=Z),p(C)):l(C,E)}return function(C,E,U,Z){try{si=0;var ht=Yt(C,E,U,Z);return pa=null,ht}catch(ft){if(ft===ga||ft===kr)throw ft;var Rt=ze(29,ft,null,C.mode);return Rt.lanes=Z,Rt.return=C,Rt}}}var Dl=dh(!0),hh=dh(!1),Wn=!1;function cc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function In(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(t,e,l){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Ut&2)!==0){var o=i.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),i.pending=e,e=zr(t),Fd(t,null,l),e}return Nr(t,i,e,l),zr(t)}function di(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,l|=i,e.lanes=l,ad(t,l)}}function fc(t,e){var l=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var p={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?o=s=p:s=s.next=p,l=l.next}while(l!==null);s===null?o=s=e:s=s.next=e}else o=s=e;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:i.shared,callbacks:i.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var dc=!1;function hi(){if(dc){var t=ma;if(t!==null)throw t}}function mi(t,e,l,i){dc=!1;var o=t.updateQueue;Wn=!1;var s=o.firstBaseUpdate,p=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var M=x,k=M.next;M.next=null,p===null?s=k:p.next=k,p=M;var q=t.alternate;q!==null&&(q=q.updateQueue,x=q.lastBaseUpdate,x!==p&&(x===null?q.firstBaseUpdate=k:x.next=k,q.lastBaseUpdate=M))}if(s!==null){var $=o.baseState;p=0,q=k=M=null,x=s;do{var L=x.lane&-536870913,B=L!==x.lane;if(B?(At&L)===L:(i&L)===L){L!==0&&L===ha&&(dc=!0),q!==null&&(q=q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var ut=t,gt=x;L=e;var Yt=l;switch(gt.tag){case 1:if(ut=gt.payload,typeof ut=="function"){$=ut.call(Yt,$,L);break t}$=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=gt.payload,L=typeof ut=="function"?ut.call(Yt,$,L):ut,L==null)break t;$=y({},$,L);break t;case 2:Wn=!0}}L=x.callback,L!==null&&(t.flags|=64,B&&(t.flags|=8192),B=o.callbacks,B===null?o.callbacks=[L]:B.push(L))}else B={lane:L,tag:x.tag,payload:x.payload,callback:x.callback,next:null},q===null?(k=q=B,M=$):q=q.next=B,p|=L;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;B=x,x=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);q===null&&(M=$),o.baseState=M,o.firstBaseUpdate=k,o.lastBaseUpdate=q,s===null&&(o.shared.lanes=0),al|=p,t.lanes=p,t.memoizedState=$}}function mh(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function gh(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)mh(l[t],e)}var ya=_(null),Br=_(0);function ph(t,e){t=zn,I(Br,t),I(ya,e),zn=t|e.baseLanes}function hc(){I(Br,zn),I(ya,ya.current)}function mc(){zn=Br.current,z(ya),z(Br)}var Re=_(null),Qe=null;function tl(t){var e=t.alternate;I(Ft,Ft.current&1),I(Re,t),Qe===null&&(e===null||ya.current!==null||e.memoizedState!==null)&&(Qe=t)}function gc(t){I(Ft,Ft.current),I(Re,t),Qe===null&&(Qe=t)}function yh(t){t.tag===22?(I(Ft,Ft.current),I(Re,t),Qe===null&&(Qe=t)):el()}function el(){I(Ft,Ft.current),I(Re,Re.current)}function De(t){z(Re),Qe===t&&(Qe=null),z(Ft)}var Ft=_(0);function qr(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ss(l)||_s(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var _n=0,St=null,Ht=null,Pt=null,Gr=!1,va=!1,Ol=!1,Xr=0,gi=0,ba=null,v1=0;function Kt(){throw Error(u(321))}function pc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!Ne(t[l],e[l]))return!1;return!0}function yc(t,e,l,i,o,s){return _n=s,St=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,w.H=t===null||t.memoizedState===null?tm:Dc,Ol=!1,s=l(i,o),Ol=!1,va&&(s=bh(e,l,i,o)),vh(t),s}function vh(t){w.H=vi;var e=Ht!==null&&Ht.next!==null;if(_n=0,Pt=Ht=St=null,Gr=!1,gi=0,ba=null,e)throw Error(u(300));t===null||te||(t=t.dependencies,t!==null&&Or(t)&&(te=!0))}function bh(t,e,l,i){St=t;var o=0;do{if(va&&(ba=null),gi=0,va=!1,25<=o)throw Error(u(301));if(o+=1,Pt=Ht=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}w.H=em,s=e(l,i)}while(va);return s}function b1(){var t=w.H,e=t.useState()[0];return e=typeof e.then=="function"?pi(e):e,t=t.useState()[0],(Ht!==null?Ht.memoizedState:null)!==t&&(St.flags|=1024),e}function vc(){var t=Xr!==0;return Xr=0,t}function bc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function xc(t){if(Gr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Gr=!1}_n=0,Pt=Ht=St=null,va=!1,gi=Xr=0,ba=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?St.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function Wt(){if(Ht===null){var t=St.alternate;t=t!==null?t.memoizedState:null}else t=Ht.next;var e=Pt===null?St.memoizedState:Pt.next;if(e!==null)Pt=e,Ht=t;else{if(t===null)throw St.alternate===null?Error(u(467)):Error(u(310));Ht=t,t={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},Pt===null?St.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Vr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pi(t){var e=gi;return gi+=1,ba===null&&(ba=[]),t=ch(ba,t,e),e=St,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,w.H=e===null||e.memoizedState===null?tm:Dc),t}function Qr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return pi(t);if(t.$$typeof===G)return fe(t)}throw Error(u(438,String(t)))}function Sc(t){var e=null,l=St.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var i=St.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Vr(),St.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),i=0;i<t;i++)l[i]=Tt;return e.index++,l}function wn(t,e){return typeof e=="function"?e(t):e}function Zr(t){var e=Wt();return _c(e,Ht,t)}function _c(t,e,l){var i=t.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var o=t.baseQueue,s=i.pending;if(s!==null){if(o!==null){var p=o.next;o.next=s.next,s.next=p}e.baseQueue=o=s,i.pending=null}if(s=t.baseState,o===null)t.memoizedState=s;else{e=o.next;var x=p=null,M=null,k=e,q=!1;do{var $=k.lane&-536870913;if($!==k.lane?(At&$)===$:(_n&$)===$){var L=k.revertLane;if(L===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),$===ha&&(q=!0);else if((_n&L)===L){k=k.next,L===ha&&(q=!0);continue}else $={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},M===null?(x=M=$,p=s):M=M.next=$,St.lanes|=L,al|=L;$=k.action,Ol&&l(s,$),s=k.hasEagerState?k.eagerState:l(s,$)}else L={lane:$,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},M===null?(x=M=L,p=s):M=M.next=L,St.lanes|=$,al|=$;k=k.next}while(k!==null&&k!==e);if(M===null?p=s:M.next=x,!Ne(s,t.memoizedState)&&(te=!0,q&&(l=ma,l!==null)))throw l;t.memoizedState=s,t.baseState=p,t.baseQueue=M,i.lastRenderedState=s}return o===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function wc(t){var e=Wt(),l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=t;var i=l.dispatch,o=l.pending,s=e.memoizedState;if(o!==null){l.pending=null;var p=o=o.next;do s=t(s,p.action),p=p.next;while(p!==o);Ne(s,e.memoizedState)||(te=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),l.lastRenderedState=s}return[s,i]}function xh(t,e,l){var i=St,o=Wt(),s=Nt;if(s){if(l===void 0)throw Error(u(407));l=l()}else l=e();var p=!Ne((Ht||o).memoizedState,l);if(p&&(o.memoizedState=l,te=!0),o=o.queue,Ec(wh.bind(null,i,o,t),[t]),o.getSnapshot!==e||p||Pt!==null&&Pt.memoizedState.tag&1){if(i.flags|=2048,xa(9,{destroy:void 0},_h.bind(null,i,o,l,e),null),qt===null)throw Error(u(349));s||(_n&127)!==0||Sh(i,e,l)}return l}function Sh(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=St.updateQueue,e===null?(e=Vr(),St.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function _h(t,e,l,i){e.value=l,e.getSnapshot=i,Th(e)&&Mh(t)}function wh(t,e,l){return l(function(){Th(e)&&Mh(t)})}function Th(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!Ne(t,l)}catch{return!0}}function Mh(t){var e=Tl(t,2);e!==null&&we(e,t,2)}function Tc(t){var e=pe();if(typeof t=="function"){var l=t;if(t=l(),Ol){Vn(!0);try{l()}finally{Vn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:t},e}function Eh(t,e,l,i){return t.baseState=l,_c(t,Ht,typeof i=="function"?i:wn)}function x1(t,e,l,i,o){if(Jr(t))throw Error(u(485));if(t=e.action,t!==null){var s={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){s.listeners.push(p)}};w.T!==null?l(!0):s.isTransition=!1,i(s),l=e.pending,l===null?(s.next=e.pending=s,Ah(e,s)):(s.next=l.next,e.pending=l.next=s)}}function Ah(t,e){var l=e.action,i=e.payload,o=t.state;if(e.isTransition){var s=w.T,p={};w.T=p;try{var x=l(o,i),M=w.S;M!==null&&M(p,x),Ch(t,e,x)}catch(k){Mc(t,e,k)}finally{s!==null&&p.types!==null&&(s.types=p.types),w.T=s}}else try{s=l(o,i),Ch(t,e,s)}catch(k){Mc(t,e,k)}}function Ch(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){Nh(t,e,i)},function(i){return Mc(t,e,i)}):Nh(t,e,l)}function Nh(t,e,l){e.status="fulfilled",e.value=l,zh(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Ah(t,l)))}function Mc(t,e,l){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=l,zh(e),e=e.next;while(e!==i)}t.action=null}function zh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Rh(t,e){return e}function Dh(t,e){if(Nt){var l=qt.formState;if(l!==null){t:{var i=St;if(Nt){if(Xt){e:{for(var o=Xt,s=Ve;o.nodeType!==8;){if(!s){o=null;break e}if(o=Ze(o.nextSibling),o===null){o=null;break e}}s=o.data,o=s==="F!"||s==="F"?o:null}if(o){Xt=Ze(o.nextSibling),i=o.data==="F!";break t}}Jn(i)}i=!1}i&&(e=l[0])}}return l=pe(),l.memoizedState=l.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rh,lastRenderedState:e},l.queue=i,l=Wh.bind(null,St,i),i.dispatch=l,i=Tc(!1),s=Rc.bind(null,St,!1,i.queue),i=pe(),o={state:e,dispatch:null,action:t,pending:null},i.queue=o,l=x1.bind(null,St,o,s,l),o.dispatch=l,i.memoizedState=t,[e,l,!1]}function Oh(t){var e=Wt();return Uh(e,Ht,t)}function Uh(t,e,l){if(e=_c(t,e,Rh)[0],t=Zr(wn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=pi(e)}catch(p){throw p===ga?kr:p}else i=e;e=Wt();var o=e.queue,s=o.dispatch;return l!==e.memoizedState&&(St.flags|=2048,xa(9,{destroy:void 0},S1.bind(null,o,l),null)),[i,s,t]}function S1(t,e){t.action=e}function jh(t){var e=Wt(),l=Ht;if(l!==null)return Uh(e,l,t);Wt(),e=e.memoizedState,l=Wt();var i=l.queue.dispatch;return l.memoizedState=t,[e,i,!1]}function xa(t,e,l,i){return t={tag:t,create:l,deps:i,inst:e,next:null},e=St.updateQueue,e===null&&(e=Vr(),St.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(i=l.next,l.next=t,t.next=i,e.lastEffect=t),t}function kh(){return Wt().memoizedState}function $r(t,e,l,i){var o=pe();St.flags|=t,o.memoizedState=xa(1|e,{destroy:void 0},l,i===void 0?null:i)}function Kr(t,e,l,i){var o=Wt();i=i===void 0?null:i;var s=o.memoizedState.inst;Ht!==null&&i!==null&&pc(i,Ht.memoizedState.deps)?o.memoizedState=xa(e,s,l,i):(St.flags|=t,o.memoizedState=xa(1|e,s,l,i))}function Hh(t,e){$r(8390656,8,t,e)}function Ec(t,e){Kr(2048,8,t,e)}function _1(t){St.flags|=4;var e=St.updateQueue;if(e===null)e=Vr(),St.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Lh(t){var e=Wt().memoizedState;return _1({ref:e,nextImpl:t}),function(){if((Ut&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function Yh(t,e){return Kr(4,2,t,e)}function Bh(t,e){return Kr(4,4,t,e)}function qh(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Gh(t,e,l){l=l!=null?l.concat([t]):null,Kr(4,4,qh.bind(null,e,t),l)}function Ac(){}function Xh(t,e){var l=Wt();e=e===void 0?null:e;var i=l.memoizedState;return e!==null&&pc(e,i[1])?i[0]:(l.memoizedState=[t,e],t)}function Vh(t,e){var l=Wt();e=e===void 0?null:e;var i=l.memoizedState;if(e!==null&&pc(e,i[1]))return i[0];if(i=t(),Ol){Vn(!0);try{t()}finally{Vn(!1)}}return l.memoizedState=[i,e],i}function Cc(t,e,l){return l===void 0||(_n&1073741824)!==0&&(At&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Qm(),St.lanes|=t,al|=t,l)}function Qh(t,e,l,i){return Ne(l,e)?l:ya.current!==null?(t=Cc(t,l,i),Ne(t,e)||(te=!0),t):(_n&42)===0||(_n&1073741824)!==0&&(At&261930)===0?(te=!0,t.memoizedState=l):(t=Qm(),St.lanes|=t,al|=t,e)}function Zh(t,e,l,i,o){var s=Y.p;Y.p=s!==0&&8>s?s:8;var p=w.T,x={};w.T=x,Rc(t,!1,e,l);try{var M=o(),k=w.S;if(k!==null&&k(x,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var q=y1(M,i);yi(t,e,q,je(t))}else yi(t,e,i,je(t))}catch($){yi(t,e,{then:function(){},status:"rejected",reason:$},je())}finally{Y.p=s,p!==null&&x.types!==null&&(p.types=x.types),w.T=p}}function w1(){}function Nc(t,e,l,i){if(t.tag!==5)throw Error(u(476));var o=$h(t).queue;Zh(t,o,e,tt,l===null?w1:function(){return Kh(t),l(i)})}function $h(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:tt,baseState:tt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:tt},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wn,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Kh(t){var e=$h(t);e.next===null&&(e=t.alternate.memoizedState),yi(t,e.next.queue,{},je())}function zc(){return fe(Ui)}function Jh(){return Wt().memoizedState}function Fh(){return Wt().memoizedState}function T1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=je();t=In(l);var i=Pn(e,t,l);i!==null&&(we(i,e,l),di(i,e,l)),e={cache:ic()},t.payload=e;return}e=e.return}}function M1(t,e,l){var i=je();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Jr(t)?Ih(e,l):(l=Ko(t,e,l,i),l!==null&&(we(l,t,i),Ph(l,e,i)))}function Wh(t,e,l){var i=je();yi(t,e,l,i)}function yi(t,e,l,i){var o={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Jr(t))Ih(e,o);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var p=e.lastRenderedState,x=s(p,l);if(o.hasEagerState=!0,o.eagerState=x,Ne(x,p))return Nr(t,e,o,0),qt===null&&Cr(),!1}catch{}if(l=Ko(t,e,o,i),l!==null)return we(l,t,i),Ph(l,e,i),!0}return!1}function Rc(t,e,l,i){if(i={lane:2,revertLane:cs(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Jr(t)){if(e)throw Error(u(479))}else e=Ko(t,l,i,2),e!==null&&we(e,t,2)}function Jr(t){var e=t.alternate;return t===St||e!==null&&e===St}function Ih(t,e){va=Gr=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Ph(t,e,l){if((l&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,l|=i,e.lanes=l,ad(t,l)}}var vi={readContext:fe,use:Qr,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useLayoutEffect:Kt,useInsertionEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useSyncExternalStore:Kt,useId:Kt,useHostTransitionStatus:Kt,useFormState:Kt,useActionState:Kt,useOptimistic:Kt,useMemoCache:Kt,useCacheRefresh:Kt};vi.useEffectEvent=Kt;var tm={readContext:fe,use:Qr,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:Hh,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,$r(4194308,4,qh.bind(null,e,t),l)},useLayoutEffect:function(t,e){return $r(4194308,4,t,e)},useInsertionEffect:function(t,e){$r(4,2,t,e)},useMemo:function(t,e){var l=pe();e=e===void 0?null:e;var i=t();if(Ol){Vn(!0);try{t()}finally{Vn(!1)}}return l.memoizedState=[i,e],i},useReducer:function(t,e,l){var i=pe();if(l!==void 0){var o=l(e);if(Ol){Vn(!0);try{l(e)}finally{Vn(!1)}}}else o=e;return i.memoizedState=i.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},i.queue=t,t=t.dispatch=M1.bind(null,St,t),[i.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Tc(t);var e=t.queue,l=Wh.bind(null,St,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Ac,useDeferredValue:function(t,e){var l=pe();return Cc(l,t,e)},useTransition:function(){var t=Tc(!1);return t=Zh.bind(null,St,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var i=St,o=pe();if(Nt){if(l===void 0)throw Error(u(407));l=l()}else{if(l=e(),qt===null)throw Error(u(349));(At&127)!==0||Sh(i,e,l)}o.memoizedState=l;var s={value:l,getSnapshot:e};return o.queue=s,Hh(wh.bind(null,i,s,t),[t]),i.flags|=2048,xa(9,{destroy:void 0},_h.bind(null,i,s,l,e),null),l},useId:function(){var t=pe(),e=qt.identifierPrefix;if(Nt){var l=un,i=rn;l=(i&~(1<<32-Ce(i)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Xr++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=v1++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:zc,useFormState:Dh,useActionState:Dh,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Rc.bind(null,St,!0,l),l.dispatch=e,[t,e]},useMemoCache:Sc,useCacheRefresh:function(){return pe().memoizedState=T1.bind(null,St)},useEffectEvent:function(t){var e=pe(),l={impl:t};return e.memoizedState=l,function(){if((Ut&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Dc={readContext:fe,use:Qr,useCallback:Xh,useContext:fe,useEffect:Ec,useImperativeHandle:Gh,useInsertionEffect:Yh,useLayoutEffect:Bh,useMemo:Vh,useReducer:Zr,useRef:kh,useState:function(){return Zr(wn)},useDebugValue:Ac,useDeferredValue:function(t,e){var l=Wt();return Qh(l,Ht.memoizedState,t,e)},useTransition:function(){var t=Zr(wn)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:pi(t),e]},useSyncExternalStore:xh,useId:Jh,useHostTransitionStatus:zc,useFormState:Oh,useActionState:Oh,useOptimistic:function(t,e){var l=Wt();return Eh(l,Ht,t,e)},useMemoCache:Sc,useCacheRefresh:Fh};Dc.useEffectEvent=Lh;var em={readContext:fe,use:Qr,useCallback:Xh,useContext:fe,useEffect:Ec,useImperativeHandle:Gh,useInsertionEffect:Yh,useLayoutEffect:Bh,useMemo:Vh,useReducer:wc,useRef:kh,useState:function(){return wc(wn)},useDebugValue:Ac,useDeferredValue:function(t,e){var l=Wt();return Ht===null?Cc(l,t,e):Qh(l,Ht.memoizedState,t,e)},useTransition:function(){var t=wc(wn)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:pi(t),e]},useSyncExternalStore:xh,useId:Jh,useHostTransitionStatus:zc,useFormState:jh,useActionState:jh,useOptimistic:function(t,e){var l=Wt();return Ht!==null?Eh(l,Ht,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Sc,useCacheRefresh:Fh};em.useEffectEvent=Lh;function Oc(t,e,l,i){e=t.memoizedState,l=l(i,e),l=l==null?e:y({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Uc={enqueueSetState:function(t,e,l){t=t._reactInternals;var i=je(),o=In(i);o.payload=e,l!=null&&(o.callback=l),e=Pn(t,o,i),e!==null&&(we(e,t,i),di(e,t,i))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var i=je(),o=In(i);o.tag=1,o.payload=e,l!=null&&(o.callback=l),e=Pn(t,o,i),e!==null&&(we(e,t,i),di(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=je(),i=In(l);i.tag=2,e!=null&&(i.callback=e),e=Pn(t,i,l),e!==null&&(we(e,t,l),di(e,t,l))}};function nm(t,e,l,i,o,s,p){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,s,p):e.prototype&&e.prototype.isPureReactComponent?!ai(l,i)||!ai(o,s):!0}function lm(t,e,l,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,i),e.state!==t&&Uc.enqueueReplaceState(e,e.state,null)}function Ul(t,e){var l=e;if("ref"in e){l={};for(var i in e)i!=="ref"&&(l[i]=e[i])}if(t=t.defaultProps){l===e&&(l=y({},l));for(var o in t)l[o]===void 0&&(l[o]=t[o])}return l}function am(t){Ar(t)}function im(t){console.error(t)}function rm(t){Ar(t)}function Fr(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function um(t,e,l){try{var i=t.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function jc(t,e,l){return l=In(l),l.tag=3,l.payload={element:null},l.callback=function(){Fr(t,e)},l}function om(t){return t=In(t),t.tag=3,t}function cm(t,e,l,i){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var s=i.value;t.payload=function(){return o(s)},t.callback=function(){um(e,l,i)}}var p=l.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(t.callback=function(){um(e,l,i),typeof o!="function"&&(il===null?il=new Set([this]):il.add(this));var x=i.stack;this.componentDidCatch(i.value,{componentStack:x!==null?x:""})})}function E1(t,e,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=l.alternate,e!==null&&da(e,l,o,!0),l=Re.current,l!==null){switch(l.tag){case 31:case 13:return Qe===null?ou():l.alternate===null&&Jt===0&&(Jt=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===Hr?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([i]):e.add(i),rs(t,i,o)),!1;case 22:return l.flags|=65536,i===Hr?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([i]):l.add(i)),rs(t,i,o)),!1}throw Error(u(435,l.tag))}return rs(t,i,o),ou(),!1}if(Nt)return e=Re.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,i!==tc&&(t=Error(u(422),{cause:i}),ui(qe(t,l)))):(i!==tc&&(e=Error(u(423),{cause:i}),ui(qe(e,l))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,i=qe(i,l),o=jc(t.stateNode,i,o),fc(t,o),Jt!==4&&(Jt=2)),!1;var s=Error(u(520),{cause:i});if(s=qe(s,l),Ei===null?Ei=[s]:Ei.push(s),Jt!==4&&(Jt=2),e===null)return!0;i=qe(i,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=o&-o,l.lanes|=t,t=jc(l.stateNode,i,t),fc(l,t),!1;case 1:if(e=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(il===null||!il.has(s))))return l.flags|=65536,o&=-o,l.lanes|=o,o=om(o),cm(o,t,l,i),fc(l,o),!1}l=l.return}while(l!==null);return!1}var kc=Error(u(461)),te=!1;function de(t,e,l,i){e.child=t===null?hh(e,null,l,i):Dl(e,t.child,l,i)}function sm(t,e,l,i,o){l=l.render;var s=e.ref;if("ref"in i){var p={};for(var x in i)x!=="ref"&&(p[x]=i[x])}else p=i;return Cl(e),i=yc(t,e,l,p,s,o),x=vc(),t!==null&&!te?(bc(t,e,o),Tn(t,e,o)):(Nt&&x&&Io(e),e.flags|=1,de(t,e,i,o),e.child)}function fm(t,e,l,i,o){if(t===null){var s=l.type;return typeof s=="function"&&!Jo(s)&&s.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=s,dm(t,e,s,i,o)):(t=Rr(l.type,null,i,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!Vc(t,o)){var p=s.memoizedProps;if(l=l.compare,l=l!==null?l:ai,l(p,i)&&t.ref===e.ref)return Tn(t,e,o)}return e.flags|=1,t=vn(s,i),t.ref=e.ref,t.return=e,e.child=t}function dm(t,e,l,i,o){if(t!==null){var s=t.memoizedProps;if(ai(s,i)&&t.ref===e.ref)if(te=!1,e.pendingProps=i=s,Vc(t,o))(t.flags&131072)!==0&&(te=!0);else return e.lanes=t.lanes,Tn(t,e,o)}return Hc(t,e,l,i,o)}function hm(t,e,l,i){var o=i.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,t!==null){for(i=e.child=t.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~s}else i=0,e.child=null;return mm(t,e,s,l,i)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&jr(e,s!==null?s.cachePool:null),s!==null?ph(e,s):hc(),yh(e);else return i=e.lanes=536870912,mm(t,e,s!==null?s.baseLanes|l:l,l,i)}else s!==null?(jr(e,s.cachePool),ph(e,s),el(),e.memoizedState=null):(t!==null&&jr(e,null),hc(),el());return de(t,e,o,l),e.child}function bi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function mm(t,e,l,i,o){var s=uc();return s=s===null?null:{parent:It._currentValue,pool:s},e.memoizedState={baseLanes:l,cachePool:s},t!==null&&jr(e,null),hc(),yh(e),t!==null&&da(t,e,i,!0),e.childLanes=o,null}function Wr(t,e){return e=Pr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function gm(t,e,l){return Dl(e,t.child,null,l),t=Wr(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function A1(t,e,l){var i=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Nt){if(i.mode==="hidden")return t=Wr(e,i),e.lanes=536870912,bi(null,t);if(gc(e),(t=Xt)?(t=A0(t,Ve),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:$n!==null?{id:rn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},l=Id(t),l.return=e,e.child=l,se=e,Xt=null)):t=null,t===null)throw Jn(e);return e.lanes=536870912,null}return Wr(e,i)}var s=t.memoizedState;if(s!==null){var p=s.dehydrated;if(gc(e),o)if(e.flags&256)e.flags&=-257,e=gm(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(te||da(t,e,l,!1),o=(l&t.childLanes)!==0,te||o){if(i=qt,i!==null&&(p=id(i,l),p!==0&&p!==s.retryLane))throw s.retryLane=p,Tl(t,p),we(i,t,p),kc;ou(),e=gm(t,e,l)}else t=s.treeContext,Xt=Ze(p.nextSibling),se=e,Nt=!0,Kn=null,Ve=!1,t!==null&&eh(e,t),e=Wr(e,i),e.flags|=4096;return e}return t=vn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ir(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Hc(t,e,l,i,o){return Cl(e),l=yc(t,e,l,i,void 0,o),i=vc(),t!==null&&!te?(bc(t,e,o),Tn(t,e,o)):(Nt&&i&&Io(e),e.flags|=1,de(t,e,l,o),e.child)}function pm(t,e,l,i,o,s){return Cl(e),e.updateQueue=null,l=bh(e,i,l,o),vh(t),i=vc(),t!==null&&!te?(bc(t,e,s),Tn(t,e,s)):(Nt&&i&&Io(e),e.flags|=1,de(t,e,l,s),e.child)}function ym(t,e,l,i,o){if(Cl(e),e.stateNode===null){var s=oa,p=l.contextType;typeof p=="object"&&p!==null&&(s=fe(p)),s=new l(i,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Uc,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=i,s.state=e.memoizedState,s.refs={},cc(e),p=l.contextType,s.context=typeof p=="object"&&p!==null?fe(p):oa,s.state=e.memoizedState,p=l.getDerivedStateFromProps,typeof p=="function"&&(Oc(e,l,p,i),s.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(p=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),p!==s.state&&Uc.enqueueReplaceState(s,s.state,null),mi(e,i,s,o),hi(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){s=e.stateNode;var x=e.memoizedProps,M=Ul(l,x);s.props=M;var k=s.context,q=l.contextType;p=oa,typeof q=="object"&&q!==null&&(p=fe(q));var $=l.getDerivedStateFromProps;q=typeof $=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,q||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||k!==p)&&lm(e,s,i,p),Wn=!1;var L=e.memoizedState;s.state=L,mi(e,i,s,o),hi(),k=e.memoizedState,x||L!==k||Wn?(typeof $=="function"&&(Oc(e,l,$,i),k=e.memoizedState),(M=Wn||nm(e,l,M,i,L,k,p))?(q||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=k),s.props=i,s.state=k,s.context=p,i=M):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{s=e.stateNode,sc(t,e),p=e.memoizedProps,q=Ul(l,p),s.props=q,$=e.pendingProps,L=s.context,k=l.contextType,M=oa,typeof k=="object"&&k!==null&&(M=fe(k)),x=l.getDerivedStateFromProps,(k=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(p!==$||L!==M)&&lm(e,s,i,M),Wn=!1,L=e.memoizedState,s.state=L,mi(e,i,s,o),hi();var B=e.memoizedState;p!==$||L!==B||Wn||t!==null&&t.dependencies!==null&&Or(t.dependencies)?(typeof x=="function"&&(Oc(e,l,x,i),B=e.memoizedState),(q=Wn||nm(e,l,q,i,L,B,M)||t!==null&&t.dependencies!==null&&Or(t.dependencies))?(k||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,B,M),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,B,M)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||p===t.memoizedProps&&L===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&L===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=B),s.props=i,s.state=B,s.context=M,i=q):(typeof s.componentDidUpdate!="function"||p===t.memoizedProps&&L===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&L===t.memoizedState||(e.flags|=1024),i=!1)}return s=i,Ir(t,e),i=(e.flags&128)!==0,s||i?(s=e.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&i?(e.child=Dl(e,t.child,null,o),e.child=Dl(e,null,l,o)):de(t,e,l,o),e.memoizedState=s.state,t=e.child):t=Tn(t,e,o),t}function vm(t,e,l,i){return El(),e.flags|=256,de(t,e,l,i),e.child}var Lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(t){return{baseLanes:t,cachePool:uh()}}function Bc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ue),t}function bm(t,e,l){var i=e.pendingProps,o=!1,s=(e.flags&128)!==0,p;if((p=s)||(p=t!==null&&t.memoizedState===null?!1:(Ft.current&2)!==0),p&&(o=!0,e.flags&=-129),p=(e.flags&32)!==0,e.flags&=-33,t===null){if(Nt){if(o?tl(e):el(),(t=Xt)?(t=A0(t,Ve),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:$n!==null?{id:rn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},l=Id(t),l.return=e,e.child=l,se=e,Xt=null)):t=null,t===null)throw Jn(e);return _s(t)?e.lanes=32:e.lanes=536870912,null}var x=i.children;return i=i.fallback,o?(el(),o=e.mode,x=Pr({mode:"hidden",children:x},o),i=Ml(i,o,l,null),x.return=e,i.return=e,x.sibling=i,e.child=x,i=e.child,i.memoizedState=Yc(l),i.childLanes=Bc(t,p,l),e.memoizedState=Lc,bi(null,i)):(tl(e),qc(e,x))}var M=t.memoizedState;if(M!==null&&(x=M.dehydrated,x!==null)){if(s)e.flags&256?(tl(e),e.flags&=-257,e=Gc(t,e,l)):e.memoizedState!==null?(el(),e.child=t.child,e.flags|=128,e=null):(el(),x=i.fallback,o=e.mode,i=Pr({mode:"visible",children:i.children},o),x=Ml(x,o,l,null),x.flags|=2,i.return=e,x.return=e,i.sibling=x,e.child=i,Dl(e,t.child,null,l),i=e.child,i.memoizedState=Yc(l),i.childLanes=Bc(t,p,l),e.memoizedState=Lc,e=bi(null,i));else if(tl(e),_s(x)){if(p=x.nextSibling&&x.nextSibling.dataset,p)var k=p.dgst;p=k,i=Error(u(419)),i.stack="",i.digest=p,ui({value:i,source:null,stack:null}),e=Gc(t,e,l)}else if(te||da(t,e,l,!1),p=(l&t.childLanes)!==0,te||p){if(p=qt,p!==null&&(i=id(p,l),i!==0&&i!==M.retryLane))throw M.retryLane=i,Tl(t,i),we(p,t,i),kc;Ss(x)||ou(),e=Gc(t,e,l)}else Ss(x)?(e.flags|=192,e.child=t.child,e=null):(t=M.treeContext,Xt=Ze(x.nextSibling),se=e,Nt=!0,Kn=null,Ve=!1,t!==null&&eh(e,t),e=qc(e,i.children),e.flags|=4096);return e}return o?(el(),x=i.fallback,o=e.mode,M=t.child,k=M.sibling,i=vn(M,{mode:"hidden",children:i.children}),i.subtreeFlags=M.subtreeFlags&65011712,k!==null?x=vn(k,x):(x=Ml(x,o,l,null),x.flags|=2),x.return=e,i.return=e,i.sibling=x,e.child=i,bi(null,i),i=e.child,x=t.child.memoizedState,x===null?x=Yc(l):(o=x.cachePool,o!==null?(M=It._currentValue,o=o.parent!==M?{parent:M,pool:M}:o):o=uh(),x={baseLanes:x.baseLanes|l,cachePool:o}),i.memoizedState=x,i.childLanes=Bc(t,p,l),e.memoizedState=Lc,bi(t.child,i)):(tl(e),l=t.child,t=l.sibling,l=vn(l,{mode:"visible",children:i.children}),l.return=e,l.sibling=null,t!==null&&(p=e.deletions,p===null?(e.deletions=[t],e.flags|=16):p.push(t)),e.child=l,e.memoizedState=null,l)}function qc(t,e){return e=Pr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Pr(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function Gc(t,e,l){return Dl(e,t.child,null,l),t=qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function xm(t,e,l){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),lc(t.return,e,l)}function Xc(t,e,l,i,o,s){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o,treeForkCount:s}:(p.isBackwards=e,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=l,p.tailMode=o,p.treeForkCount=s)}function Sm(t,e,l){var i=e.pendingProps,o=i.revealOrder,s=i.tail;i=i.children;var p=Ft.current,x=(p&2)!==0;if(x?(p=p&1|2,e.flags|=128):p&=1,I(Ft,p),de(t,e,i,l),i=Nt?ri:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xm(t,l,e);else if(t.tag===19)xm(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(l=e.child,o=null;l!==null;)t=l.alternate,t!==null&&qr(t)===null&&(o=l),l=l.sibling;l=o,l===null?(o=e.child,e.child=null):(o=l.sibling,l.sibling=null),Xc(e,!1,o,l,s,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&qr(t)===null){e.child=o;break}t=o.sibling,o.sibling=l,l=o,o=t}Xc(e,!0,l,null,s,i);break;case"together":Xc(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function Tn(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),al|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(da(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,l=vn(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=vn(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Vc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Or(t)))}function C1(t,e,l){switch(e.tag){case 3:zt(e,e.stateNode.containerInfo),Fn(e,It,t.memoizedState.cache),El();break;case 27:case 5:pt(e);break;case 4:zt(e,e.stateNode.containerInfo);break;case 10:Fn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,gc(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(tl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?bm(t,e,l):(tl(e),t=Tn(t,e,l),t!==null?t.sibling:null);tl(e);break;case 19:var o=(t.flags&128)!==0;if(i=(l&e.childLanes)!==0,i||(da(t,e,l,!1),i=(l&e.childLanes)!==0),o){if(i)return Sm(t,e,l);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(Ft,Ft.current),i)break;return null;case 22:return e.lanes=0,hm(t,e,l,e.pendingProps);case 24:Fn(e,It,t.memoizedState.cache)}return Tn(t,e,l)}function _m(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)te=!0;else{if(!Vc(t,l)&&(e.flags&128)===0)return te=!1,C1(t,e,l);te=(t.flags&131072)!==0}else te=!1,Nt&&(e.flags&1048576)!==0&&th(e,ri,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=zl(e.elementType),e.type=t,typeof t=="function")Jo(t)?(i=Ul(t,i),e.tag=1,e=ym(null,e,t,i,l)):(e.tag=0,e=Hc(null,e,t,i,l));else{if(t!=null){var o=t.$$typeof;if(o===nt){e.tag=11,e=sm(null,e,t,i,l);break t}else if(o===K){e.tag=14,e=fm(null,e,t,i,l);break t}}throw e=O(t)||t,Error(u(306,e,""))}}return e;case 0:return Hc(t,e,e.type,e.pendingProps,l);case 1:return i=e.type,o=Ul(i,e.pendingProps),ym(t,e,i,o,l);case 3:t:{if(zt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));i=e.pendingProps;var s=e.memoizedState;o=s.element,sc(t,e),mi(e,i,null,l);var p=e.memoizedState;if(i=p.cache,Fn(e,It,i),i!==s.cache&&ac(e,[It],l,!0),hi(),i=p.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:p.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=vm(t,e,i,l);break t}else if(i!==o){o=qe(Error(u(424)),e),ui(o),e=vm(t,e,i,l);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Xt=Ze(t.firstChild),se=e,Nt=!0,Kn=null,Ve=!0,l=hh(e,null,i,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(El(),i===o){e=Tn(t,e,l);break t}de(t,e,i,l)}e=e.child}return e;case 26:return Ir(t,e),t===null?(l=O0(e.type,null,e.pendingProps,null))?e.memoizedState=l:Nt||(l=e.type,t=e.pendingProps,i=gu(at.current).createElement(l),i[ce]=e,i[ye]=t,he(i,l,t),ie(i),e.stateNode=i):e.memoizedState=O0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pt(e),t===null&&Nt&&(i=e.stateNode=z0(e.type,e.pendingProps,at.current),se=e,Ve=!0,o=Xt,cl(e.type)?(ws=o,Xt=Ze(i.firstChild)):Xt=o),de(t,e,e.pendingProps.children,l),Ir(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Nt&&((o=i=Xt)&&(i=ab(i,e.type,e.pendingProps,Ve),i!==null?(e.stateNode=i,se=e,Xt=Ze(i.firstChild),Ve=!1,o=!0):o=!1),o||Jn(e)),pt(e),o=e.type,s=e.pendingProps,p=t!==null?t.memoizedProps:null,i=s.children,vs(o,s)?i=null:p!==null&&vs(o,p)&&(e.flags|=32),e.memoizedState!==null&&(o=yc(t,e,b1,null,null,l),Ui._currentValue=o),Ir(t,e),de(t,e,i,l),e.child;case 6:return t===null&&Nt&&((t=l=Xt)&&(l=ib(l,e.pendingProps,Ve),l!==null?(e.stateNode=l,se=e,Xt=null,t=!0):t=!1),t||Jn(e)),null;case 13:return bm(t,e,l);case 4:return zt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Dl(e,null,i,l):de(t,e,i,l),e.child;case 11:return sm(t,e,e.type,e.pendingProps,l);case 7:return de(t,e,e.pendingProps,l),e.child;case 8:return de(t,e,e.pendingProps.children,l),e.child;case 12:return de(t,e,e.pendingProps.children,l),e.child;case 10:return i=e.pendingProps,Fn(e,e.type,i.value),de(t,e,i.children,l),e.child;case 9:return o=e.type._context,i=e.pendingProps.children,Cl(e),o=fe(o),i=i(o),e.flags|=1,de(t,e,i,l),e.child;case 14:return fm(t,e,e.type,e.pendingProps,l);case 15:return dm(t,e,e.type,e.pendingProps,l);case 19:return Sm(t,e,l);case 31:return A1(t,e,l);case 22:return hm(t,e,l,e.pendingProps);case 24:return Cl(e),i=fe(It),t===null?(o=uc(),o===null&&(o=qt,s=ic(),o.pooledCache=s,s.refCount++,s!==null&&(o.pooledCacheLanes|=l),o=s),e.memoizedState={parent:i,cache:o},cc(e),Fn(e,It,o)):((t.lanes&l)!==0&&(sc(t,e),mi(e,null,null,l),hi()),o=t.memoizedState,s=e.memoizedState,o.parent!==i?(o={parent:i,cache:i},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Fn(e,It,i)):(i=s.cache,Fn(e,It,i),i!==o.cache&&ac(e,[It],l,!0))),de(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Mn(t){t.flags|=4}function Qc(t,e,l,i,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Jm())t.flags|=8192;else throw Rl=Hr,oc}else t.flags&=-16777217}function wm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!L0(e))if(Jm())t.flags|=8192;else throw Rl=Hr,oc}function tu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?nd():536870912,t.lanes|=e,Ta|=e)}function xi(t,e){if(!Nt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Vt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,i=0;if(e)for(var o=t.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=i,t.childLanes=l,e}function N1(t,e,l){var i=e.pendingProps;switch(Po(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(e),null;case 1:return Vt(e),null;case 3:return l=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),Sn(It),J(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(fa(e)?Mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ec())),Vt(e),null;case 26:var o=e.type,s=e.memoizedState;return t===null?(Mn(e),s!==null?(Vt(e),wm(e,s)):(Vt(e),Qc(e,o,null,i,l))):s?s!==t.memoizedState?(Mn(e),Vt(e),wm(e,s)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&Mn(e),Vt(e),Qc(e,o,t,i,l)),null;case 27:if(yt(e),l=at.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Mn(e);else{if(!i){if(e.stateNode===null)throw Error(u(166));return Vt(e),null}t=V.current,fa(e)?nh(e):(t=z0(o,i,l),e.stateNode=t,Mn(e))}return Vt(e),null;case 5:if(yt(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&Mn(e);else{if(!i){if(e.stateNode===null)throw Error(u(166));return Vt(e),null}if(s=V.current,fa(e))nh(e);else{var p=gu(at.current);switch(s){case 1:s=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:s=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":s=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":s=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":s=p.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?s.multiple=!0:i.size&&(s.size=i.size);break;default:s=typeof i.is=="string"?p.createElement(o,{is:i.is}):p.createElement(o)}}s[ce]=e,s[ye]=i;t:for(p=e.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break t;for(;p.sibling===null;){if(p.return===null||p.return===e)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}e.stateNode=s;t:switch(he(s,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&Mn(e)}}return Vt(e),Qc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&Mn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(u(166));if(t=at.current,fa(e)){if(t=e.stateNode,l=e.memoizedProps,i=null,o=se,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}t[ce]=e,t=!!(t.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||b0(t.nodeValue,l)),t||Jn(e,!0)}else t=gu(t).createTextNode(i),t[ce]=e,e.stateNode=t}return Vt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(i=fa(e),l!==null){if(t===null){if(!i)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[ce]=e}else El(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else l=ec(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(De(e),e):(De(e),null);if((e.flags&128)!==0)throw Error(u(558))}return Vt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=fa(e),i!==null&&i.dehydrated!==null){if(t===null){if(!o)throw Error(u(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ce]=e}else El(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),o=!1}else o=ec(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(De(e),e):(De(e),null)}return De(e),(e.flags&128)!==0?(e.lanes=l,e):(l=i!==null,t=t!==null&&t.memoizedState!==null,l&&(i=e.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(i.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),tu(e,e.updateQueue),Vt(e),null);case 4:return J(),t===null&&hs(e.stateNode.containerInfo),Vt(e),null;case 10:return Sn(e.type),Vt(e),null;case 19:if(z(Ft),i=e.memoizedState,i===null)return Vt(e),null;if(o=(e.flags&128)!==0,s=i.rendering,s===null)if(o)xi(i,!1);else{if(Jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=qr(t),s!==null){for(e.flags|=128,xi(i,!1),t=s.updateQueue,e.updateQueue=t,tu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Wd(l,t),l=l.sibling;return I(Ft,Ft.current&1|2),Nt&&bn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Ee()>iu&&(e.flags|=128,o=!0,xi(i,!1),e.lanes=4194304)}else{if(!o)if(t=qr(s),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,tu(e,t),xi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Nt)return Vt(e),null}else 2*Ee()-i.renderingStartTime>iu&&l!==536870912&&(e.flags|=128,o=!0,xi(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(t=i.last,t!==null?t.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ee(),t.sibling=null,l=Ft.current,I(Ft,o?l&1|2:l&1),Nt&&bn(e,i.treeForkCount),t):(Vt(e),null);case 22:case 23:return De(e),mc(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(l&536870912)!==0&&(e.flags&128)===0&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),l=e.updateQueue,l!==null&&tu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==l&&(e.flags|=2048),t!==null&&z(Nl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Sn(It),Vt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function z1(t,e){switch(Po(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Sn(It),J(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return yt(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(u(340));El()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(De(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));El()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return z(Ft),null;case 4:return J(),null;case 10:return Sn(e.type),null;case 22:case 23:return De(e),mc(),t!==null&&z(Nl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Sn(It),null;case 25:return null;default:return null}}function Tm(t,e){switch(Po(e),e.tag){case 3:Sn(It),J();break;case 26:case 27:case 5:yt(e);break;case 4:J();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:z(Ft);break;case 10:Sn(e.type);break;case 22:case 23:De(e),mc(),t!==null&&z(Nl);break;case 24:Sn(It)}}function Si(t,e){try{var l=e.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&t)===t){i=void 0;var s=l.create,p=l.inst;i=s(),p.destroy=i}l=l.next}while(l!==o)}}catch(x){kt(e,e.return,x)}}function nl(t,e,l){try{var i=e.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var s=o.next;i=s;do{if((i.tag&t)===t){var p=i.inst,x=p.destroy;if(x!==void 0){p.destroy=void 0,o=e;var M=l,k=x;try{k()}catch(q){kt(o,M,q)}}}i=i.next}while(i!==s)}}catch(q){kt(e,e.return,q)}}function Mm(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{gh(e,l)}catch(i){kt(t,t.return,i)}}}function Em(t,e,l){l.props=Ul(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(i){kt(t,e,i)}}function _i(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof l=="function"?t.refCleanup=l(i):l.current=i}}catch(o){kt(t,e,o)}}function on(t,e){var l=t.ref,i=t.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(o){kt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){kt(t,e,o)}else l.current=null}function Am(t){var e=t.type,l=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break t;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(o){kt(t,t.return,o)}}function Zc(t,e,l){try{var i=t.stateNode;I1(i,t.type,l,e),i[ye]=e}catch(o){kt(t,t.return,o)}}function Cm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&cl(t.type)||t.tag===4}function $c(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Cm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&cl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Kc(t,e,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=pn));else if(i!==4&&(i===27&&cl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Kc(t,e,l),t=t.sibling;t!==null;)Kc(t,e,l),t=t.sibling}function eu(t,e,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(i!==4&&(i===27&&cl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(eu(t,e,l),t=t.sibling;t!==null;)eu(t,e,l),t=t.sibling}function Nm(t){var e=t.stateNode,l=t.memoizedProps;try{for(var i=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);he(e,i,l),e[ce]=t,e[ye]=l}catch(s){kt(t,t.return,s)}}var En=!1,ee=!1,Jc=!1,zm=typeof WeakSet=="function"?WeakSet:Set,re=null;function R1(t,e){if(t=t.containerInfo,ps=_u,t=Gd(t),Go(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break t}var p=0,x=-1,M=-1,k=0,q=0,$=t,L=null;e:for(;;){for(var B;$!==l||o!==0&&$.nodeType!==3||(x=p+o),$!==s||i!==0&&$.nodeType!==3||(M=p+i),$.nodeType===3&&(p+=$.nodeValue.length),(B=$.firstChild)!==null;)L=$,$=B;for(;;){if($===t)break e;if(L===l&&++k===o&&(x=p),L===s&&++q===i&&(M=p),(B=$.nextSibling)!==null)break;$=L,L=$.parentNode}$=B}l=x===-1||M===-1?null:{start:x,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(ys={focusedElem:t,selectionRange:l},_u=!1,re=e;re!==null;)if(e=re,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,re=t;else for(;re!==null;){switch(e=re,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)o=t[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,l=e,o=s.memoizedProps,s=s.memoizedState,i=l.stateNode;try{var ut=Ul(l.type,o);t=i.getSnapshotBeforeUpdate(ut,s),i.__reactInternalSnapshotBeforeUpdate=t}catch(gt){kt(l,l.return,gt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)xs(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":xs(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(u(163))}if(t=e.sibling,t!==null){t.return=e.return,re=t;break}re=e.return}}function Rm(t,e,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Cn(t,l),i&4&&Si(5,l);break;case 1:if(Cn(t,l),i&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(p){kt(l,l.return,p)}else{var o=Ul(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(p){kt(l,l.return,p)}}i&64&&Mm(l),i&512&&_i(l,l.return);break;case 3:if(Cn(t,l),i&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{gh(t,e)}catch(p){kt(l,l.return,p)}}break;case 27:e===null&&i&4&&Nm(l);case 26:case 5:Cn(t,l),e===null&&i&4&&Am(l),i&512&&_i(l,l.return);break;case 12:Cn(t,l);break;case 31:Cn(t,l),i&4&&Um(t,l);break;case 13:Cn(t,l),i&4&&jm(t,l),i&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=B1.bind(null,l),rb(t,l))));break;case 22:if(i=l.memoizedState!==null||En,!i){e=e!==null&&e.memoizedState!==null||ee,o=En;var s=ee;En=i,(ee=e)&&!s?Nn(t,l,(l.subtreeFlags&8772)!==0):Cn(t,l),En=o,ee=s}break;case 30:break;default:Cn(t,l)}}function Dm(t){var e=t.alternate;e!==null&&(t.alternate=null,Dm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Mo(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Qt=null,be=!1;function An(t,e,l){for(l=l.child;l!==null;)Om(t,e,l),l=l.sibling}function Om(t,e,l){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(Za,l)}catch{}switch(l.tag){case 26:ee||on(l,e),An(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ee||on(l,e);var i=Qt,o=be;cl(l.type)&&(Qt=l.stateNode,be=!1),An(t,e,l),Ri(l.stateNode),Qt=i,be=o;break;case 5:ee||on(l,e);case 6:if(i=Qt,o=be,Qt=null,An(t,e,l),Qt=i,be=o,Qt!==null)if(be)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(l.stateNode)}catch(s){kt(l,e,s)}else try{Qt.removeChild(l.stateNode)}catch(s){kt(l,e,s)}break;case 18:Qt!==null&&(be?(t=Qt,M0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Da(t)):M0(Qt,l.stateNode));break;case 4:i=Qt,o=be,Qt=l.stateNode.containerInfo,be=!0,An(t,e,l),Qt=i,be=o;break;case 0:case 11:case 14:case 15:nl(2,l,e),ee||nl(4,l,e),An(t,e,l);break;case 1:ee||(on(l,e),i=l.stateNode,typeof i.componentWillUnmount=="function"&&Em(l,e,i)),An(t,e,l);break;case 21:An(t,e,l);break;case 22:ee=(i=ee)||l.memoizedState!==null,An(t,e,l),ee=i;break;default:An(t,e,l)}}function Um(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Da(t)}catch(l){kt(e,e.return,l)}}}function jm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Da(t)}catch(l){kt(e,e.return,l)}}function D1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new zm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new zm),e;default:throw Error(u(435,t.tag))}}function nu(t,e){var l=D1(t);e.forEach(function(i){if(!l.has(i)){l.add(i);var o=q1.bind(null,t,i);i.then(o,o)}})}function xe(t,e){var l=e.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i],s=t,p=e,x=p;t:for(;x!==null;){switch(x.tag){case 27:if(cl(x.type)){Qt=x.stateNode,be=!1;break t}break;case 5:Qt=x.stateNode,be=!1;break t;case 3:case 4:Qt=x.stateNode.containerInfo,be=!0;break t}x=x.return}if(Qt===null)throw Error(u(160));Om(s,p,o),Qt=null,be=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)km(e,t),e=e.sibling}var We=null;function km(t,e){var l=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),Se(t),i&4&&(nl(3,t,t.return),Si(3,t),nl(5,t,t.return));break;case 1:xe(e,t),Se(t),i&512&&(ee||l===null||on(l,l.return)),i&64&&En&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var o=We;if(xe(e,t),Se(t),i&512&&(ee||l===null||on(l,l.return)),i&4){var s=l!==null?l.memoizedState:null;if(i=t.memoizedState,l===null)if(i===null)if(t.stateNode===null){t:{i=t.type,l=t.memoizedProps,o=o.ownerDocument||o;e:switch(i){case"title":s=o.getElementsByTagName("title")[0],(!s||s[Ja]||s[ce]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=o.createElement(i),o.head.insertBefore(s,o.querySelector("head > title"))),he(s,i,l),s[ce]=t,ie(s),i=s;break t;case"link":var p=k0("link","href",o).get(i+(l.href||""));if(p){for(var x=0;x<p.length;x++)if(s=p[x],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){p.splice(x,1);break e}}s=o.createElement(i),he(s,i,l),o.head.appendChild(s);break;case"meta":if(p=k0("meta","content",o).get(i+(l.content||""))){for(x=0;x<p.length;x++)if(s=p[x],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){p.splice(x,1);break e}}s=o.createElement(i),he(s,i,l),o.head.appendChild(s);break;default:throw Error(u(468,i))}s[ce]=t,ie(s),i=s}t.stateNode=i}else H0(o,t.type,t.stateNode);else t.stateNode=j0(o,i,t.memoizedProps);else s!==i?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,i===null?H0(o,t.type,t.stateNode):j0(o,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Zc(t,t.memoizedProps,l.memoizedProps)}break;case 27:xe(e,t),Se(t),i&512&&(ee||l===null||on(l,l.return)),l!==null&&i&4&&Zc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(xe(e,t),Se(t),i&512&&(ee||l===null||on(l,l.return)),t.flags&32){o=t.stateNode;try{ea(o,"")}catch(ut){kt(t,t.return,ut)}}i&4&&t.stateNode!=null&&(o=t.memoizedProps,Zc(t,o,l!==null?l.memoizedProps:o)),i&1024&&(Jc=!0);break;case 6:if(xe(e,t),Se(t),i&4){if(t.stateNode===null)throw Error(u(162));i=t.memoizedProps,l=t.stateNode;try{l.nodeValue=i}catch(ut){kt(t,t.return,ut)}}break;case 3:if(vu=null,o=We,We=pu(e.containerInfo),xe(e,t),We=o,Se(t),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Da(e.containerInfo)}catch(ut){kt(t,t.return,ut)}Jc&&(Jc=!1,Hm(t));break;case 4:i=We,We=pu(t.stateNode.containerInfo),xe(e,t),Se(t),We=i;break;case 12:xe(e,t),Se(t);break;case 31:xe(e,t),Se(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,nu(t,i)));break;case 13:xe(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(au=Ee()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,nu(t,i)));break;case 22:o=t.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,k=En,q=ee;if(En=k||o,ee=q||M,xe(e,t),ee=q,En=k,Se(t),i&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(l===null||M||En||ee||jl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){M=l=e;try{if(s=M.stateNode,o)p=s.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{x=M.stateNode;var $=M.memoizedProps.style,L=$!=null&&$.hasOwnProperty("display")?$.display:null;x.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ut){kt(M,M.return,ut)}}}else if(e.tag===6){if(l===null){M=e;try{M.stateNode.nodeValue=o?"":M.memoizedProps}catch(ut){kt(M,M.return,ut)}}}else if(e.tag===18){if(l===null){M=e;try{var B=M.stateNode;o?E0(B,!0):E0(M.stateNode,!1)}catch(ut){kt(M,M.return,ut)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,nu(t,l))));break;case 19:xe(e,t),Se(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,nu(t,i)));break;case 30:break;case 21:break;default:xe(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var l,i=t.return;i!==null;){if(Cm(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,s=$c(t);eu(t,s,o);break;case 5:var p=l.stateNode;l.flags&32&&(ea(p,""),l.flags&=-33);var x=$c(t);eu(t,x,p);break;case 3:case 4:var M=l.stateNode.containerInfo,k=$c(t);Kc(t,k,M);break;default:throw Error(u(161))}}catch(q){kt(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Hm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Hm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Cn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Rm(t,e.alternate,e),e=e.sibling}function jl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:nl(4,e,e.return),jl(e);break;case 1:on(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Em(e,e.return,l),jl(e);break;case 27:Ri(e.stateNode);case 26:case 5:on(e,e.return),jl(e);break;case 22:e.memoizedState===null&&jl(e);break;case 30:jl(e);break;default:jl(e)}t=t.sibling}}function Nn(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,o=t,s=e,p=s.flags;switch(s.tag){case 0:case 11:case 15:Nn(o,s,l),Si(4,s);break;case 1:if(Nn(o,s,l),i=s,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){kt(i,i.return,k)}if(i=s,o=i.updateQueue,o!==null){var x=i.stateNode;try{var M=o.shared.hiddenCallbacks;if(M!==null)for(o.shared.hiddenCallbacks=null,o=0;o<M.length;o++)mh(M[o],x)}catch(k){kt(i,i.return,k)}}l&&p&64&&Mm(s),_i(s,s.return);break;case 27:Nm(s);case 26:case 5:Nn(o,s,l),l&&i===null&&p&4&&Am(s),_i(s,s.return);break;case 12:Nn(o,s,l);break;case 31:Nn(o,s,l),l&&p&4&&Um(o,s);break;case 13:Nn(o,s,l),l&&p&4&&jm(o,s);break;case 22:s.memoizedState===null&&Nn(o,s,l),_i(s,s.return);break;case 30:break;default:Nn(o,s,l)}e=e.sibling}}function Fc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&oi(l))}function Wc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&oi(t))}function Ie(t,e,l,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lm(t,e,l,i),e=e.sibling}function Lm(t,e,l,i){var o=e.flags;switch(e.tag){case 0:case 11:case 15:Ie(t,e,l,i),o&2048&&Si(9,e);break;case 1:Ie(t,e,l,i);break;case 3:Ie(t,e,l,i),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&oi(t)));break;case 12:if(o&2048){Ie(t,e,l,i),t=e.stateNode;try{var s=e.memoizedProps,p=s.id,x=s.onPostCommit;typeof x=="function"&&x(p,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(M){kt(e,e.return,M)}}else Ie(t,e,l,i);break;case 31:Ie(t,e,l,i);break;case 13:Ie(t,e,l,i);break;case 23:break;case 22:s=e.stateNode,p=e.alternate,e.memoizedState!==null?s._visibility&2?Ie(t,e,l,i):wi(t,e):s._visibility&2?Ie(t,e,l,i):(s._visibility|=2,Sa(t,e,l,i,(e.subtreeFlags&10256)!==0||!1)),o&2048&&Fc(p,e);break;case 24:Ie(t,e,l,i),o&2048&&Wc(e.alternate,e);break;default:Ie(t,e,l,i)}}function Sa(t,e,l,i,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,p=e,x=l,M=i,k=p.flags;switch(p.tag){case 0:case 11:case 15:Sa(s,p,x,M,o),Si(8,p);break;case 23:break;case 22:var q=p.stateNode;p.memoizedState!==null?q._visibility&2?Sa(s,p,x,M,o):wi(s,p):(q._visibility|=2,Sa(s,p,x,M,o)),o&&k&2048&&Fc(p.alternate,p);break;case 24:Sa(s,p,x,M,o),o&&k&2048&&Wc(p.alternate,p);break;default:Sa(s,p,x,M,o)}e=e.sibling}}function wi(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,i=e,o=i.flags;switch(i.tag){case 22:wi(l,i),o&2048&&Fc(i.alternate,i);break;case 24:wi(l,i),o&2048&&Wc(i.alternate,i);break;default:wi(l,i)}e=e.sibling}}var Ti=8192;function _a(t,e,l){if(t.subtreeFlags&Ti)for(t=t.child;t!==null;)Ym(t,e,l),t=t.sibling}function Ym(t,e,l){switch(t.tag){case 26:_a(t,e,l),t.flags&Ti&&t.memoizedState!==null&&vb(l,We,t.memoizedState,t.memoizedProps);break;case 5:_a(t,e,l);break;case 3:case 4:var i=We;We=pu(t.stateNode.containerInfo),_a(t,e,l),We=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Ti,Ti=16777216,_a(t,e,l),Ti=i):_a(t,e,l));break;default:_a(t,e,l)}}function Bm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Mi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var i=e[l];re=i,Gm(i,t)}Bm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qm(t),t=t.sibling}function qm(t){switch(t.tag){case 0:case 11:case 15:Mi(t),t.flags&2048&&nl(9,t,t.return);break;case 3:Mi(t);break;case 12:Mi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,lu(t)):Mi(t);break;default:Mi(t)}}function lu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var i=e[l];re=i,Gm(i,t)}Bm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:nl(8,e,e.return),lu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,lu(e));break;default:lu(e)}t=t.sibling}}function Gm(t,e){for(;re!==null;){var l=re;switch(l.tag){case 0:case 11:case 15:nl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:oi(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,re=i;else t:for(l=t;re!==null;){i=re;var o=i.sibling,s=i.return;if(Dm(i),i===l){re=null;break t}if(o!==null){o.return=s,re=o;break t}re=s}}}var O1={getCacheForType:function(t){var e=fe(It),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return fe(It).controller.signal}},U1=typeof WeakMap=="function"?WeakMap:Map,Ut=0,qt=null,Mt=null,At=0,jt=0,Oe=null,ll=!1,wa=!1,Ic=!1,zn=0,Jt=0,al=0,kl=0,Pc=0,Ue=0,Ta=0,Ei=null,_e=null,ts=!1,au=0,Xm=0,iu=1/0,ru=null,il=null,ne=0,rl=null,Ma=null,Rn=0,es=0,ns=null,Vm=null,Ai=0,ls=null;function je(){return(Ut&2)!==0&&At!==0?At&-At:w.T!==null?cs():rd()}function Qm(){if(Ue===0)if((At&536870912)===0||Nt){var t=mr;mr<<=1,(mr&3932160)===0&&(mr=262144),Ue=t}else Ue=536870912;return t=Re.current,t!==null&&(t.flags|=32),Ue}function we(t,e,l){(t===qt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(Ea(t,0),ul(t,At,Ue,!1)),Ka(t,l),((Ut&2)===0||t!==qt)&&(t===qt&&((Ut&2)===0&&(kl|=l),Jt===4&&ul(t,At,Ue,!1)),cn(t))}function Zm(t,e,l){if((Ut&6)!==0)throw Error(u(327));var i=!l&&(e&127)===0&&(e&t.expiredLanes)===0||$a(t,e),o=i?H1(t,e):is(t,e,!0),s=i;do{if(o===0){wa&&!i&&ul(t,e,0,!1);break}else{if(l=t.current.alternate,s&&!j1(l)){o=is(t,e,!1),s=!1;continue}if(o===2){if(s=e,t.errorRecoveryDisabledLanes&s)var p=0;else p=t.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){e=p;t:{var x=t;o=Ei;var M=x.current.memoizedState.isDehydrated;if(M&&(Ea(x,p).flags|=256),p=is(x,p,!1),p!==2){if(Ic&&!M){x.errorRecoveryDisabledLanes|=s,kl|=s,o=4;break t}s=_e,_e=o,s!==null&&(_e===null?_e=s:_e.push.apply(_e,s))}o=p}if(s=!1,o!==2)continue}}if(o===1){Ea(t,0),ul(t,e,0,!0);break}t:{switch(i=t,s=o,s){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:ul(i,e,Ue,!ll);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(o=au+300-Ee(),10<o)){if(ul(i,e,Ue,!ll),pr(i,0,!0)!==0)break t;Rn=e,i.timeoutHandle=w0($m.bind(null,i,l,_e,ru,ts,e,Ue,kl,Ta,ll,s,"Throttled",-0,0),o);break t}$m(i,l,_e,ru,ts,e,Ue,kl,Ta,ll,s,null,-0,0)}}break}while(!0);cn(t)}function $m(t,e,l,i,o,s,p,x,M,k,q,$,L,B){if(t.timeoutHandle=-1,$=e.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},Ym(e,s,$);var ut=(s&62914560)===s?au-Ee():(s&4194048)===s?Xm-Ee():0;if(ut=bb($,ut),ut!==null){Rn=s,t.cancelPendingCommit=ut(e0.bind(null,t,e,s,l,i,o,p,x,M,q,$,null,L,B)),ul(t,s,p,!k);return}}e0(t,e,s,l,i,o,p,x,M)}function j1(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var o=l[i],s=o.getSnapshot;o=o.value;try{if(!Ne(s(),o))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ul(t,e,l,i){e&=~Pc,e&=~kl,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var o=e;0<o;){var s=31-Ce(o),p=1<<s;i[s]=-1,o&=~p}l!==0&&ld(t,l,e)}function uu(){return(Ut&6)===0?(Ci(0),!1):!0}function as(){if(Mt!==null){if(jt===0)var t=Mt.return;else t=Mt,xn=Al=null,xc(t),pa=null,si=0,t=Mt;for(;t!==null;)Tm(t.alternate,t),t=t.return;Mt=null}}function Ea(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,eb(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Rn=0,as(),qt=t,Mt=l=vn(t.current,null),At=e,jt=0,Oe=null,ll=!1,wa=$a(t,e),Ic=!1,Ta=Ue=Pc=kl=al=Jt=0,_e=Ei=null,ts=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var o=31-Ce(i),s=1<<o;e|=t[o],i&=~s}return zn=e,Cr(),l}function Km(t,e){St=null,w.H=vi,e===ga||e===kr?(e=sh(),jt=3):e===oc?(e=sh(),jt=4):jt=e===kc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Oe=e,Mt===null&&(Jt=1,Fr(t,qe(e,t.current)))}function Jm(){var t=Re.current;return t===null?!0:(At&4194048)===At?Qe===null:(At&62914560)===At||(At&536870912)!==0?t===Qe:!1}function Fm(){var t=w.H;return w.H=vi,t===null?vi:t}function Wm(){var t=w.A;return w.A=O1,t}function ou(){Jt=4,ll||(At&4194048)!==At&&Re.current!==null||(wa=!0),(al&134217727)===0&&(kl&134217727)===0||qt===null||ul(qt,At,Ue,!1)}function is(t,e,l){var i=Ut;Ut|=2;var o=Fm(),s=Wm();(qt!==t||At!==e)&&(ru=null,Ea(t,e)),e=!1;var p=Jt;t:do try{if(jt!==0&&Mt!==null){var x=Mt,M=Oe;switch(jt){case 8:as(),p=6;break t;case 3:case 2:case 9:case 6:Re.current===null&&(e=!0);var k=jt;if(jt=0,Oe=null,Aa(t,x,M,k),l&&wa){p=0;break t}break;default:k=jt,jt=0,Oe=null,Aa(t,x,M,k)}}k1(),p=Jt;break}catch(q){Km(t,q)}while(!0);return e&&t.shellSuspendCounter++,xn=Al=null,Ut=i,w.H=o,w.A=s,Mt===null&&(qt=null,At=0,Cr()),p}function k1(){for(;Mt!==null;)Im(Mt)}function H1(t,e){var l=Ut;Ut|=2;var i=Fm(),o=Wm();qt!==t||At!==e?(ru=null,iu=Ee()+500,Ea(t,e)):wa=$a(t,e);t:do try{if(jt!==0&&Mt!==null){e=Mt;var s=Oe;e:switch(jt){case 1:jt=0,Oe=null,Aa(t,e,s,1);break;case 2:case 9:if(oh(s)){jt=0,Oe=null,Pm(e);break}e=function(){jt!==2&&jt!==9||qt!==t||(jt=7),cn(t)},s.then(e,e);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:oh(s)?(jt=0,Oe=null,Pm(e)):(jt=0,Oe=null,Aa(t,e,s,7));break;case 5:var p=null;switch(Mt.tag){case 26:p=Mt.memoizedState;case 5:case 27:var x=Mt;if(p?L0(p):x.stateNode.complete){jt=0,Oe=null;var M=x.sibling;if(M!==null)Mt=M;else{var k=x.return;k!==null?(Mt=k,cu(k)):Mt=null}break e}}jt=0,Oe=null,Aa(t,e,s,5);break;case 6:jt=0,Oe=null,Aa(t,e,s,6);break;case 8:as(),Jt=6;break t;default:throw Error(u(462))}}L1();break}catch(q){Km(t,q)}while(!0);return xn=Al=null,w.H=i,w.A=o,Ut=l,Mt!==null?0:(qt=null,At=0,Cr(),Jt)}function L1(){for(;Mt!==null&&!uv();)Im(Mt)}function Im(t){var e=_m(t.alternate,t,zn);t.memoizedProps=t.pendingProps,e===null?cu(t):Mt=e}function Pm(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=pm(l,e,e.pendingProps,e.type,void 0,At);break;case 11:e=pm(l,e,e.pendingProps,e.type.render,e.ref,At);break;case 5:xc(e);default:Tm(l,e),e=Mt=Wd(e,zn),e=_m(l,e,zn)}t.memoizedProps=t.pendingProps,e===null?cu(t):Mt=e}function Aa(t,e,l,i){xn=Al=null,xc(e),pa=null,si=0;var o=e.return;try{if(E1(t,o,e,l,At)){Jt=1,Fr(t,qe(l,t.current)),Mt=null;return}}catch(s){if(o!==null)throw Mt=o,s;Jt=1,Fr(t,qe(l,t.current)),Mt=null;return}e.flags&32768?(Nt||i===1?t=!0:wa||(At&536870912)!==0?t=!1:(ll=t=!0,(i===2||i===9||i===3||i===6)&&(i=Re.current,i!==null&&i.tag===13&&(i.flags|=16384))),t0(e,t)):cu(e)}function cu(t){var e=t;do{if((e.flags&32768)!==0){t0(e,ll);return}t=e.return;var l=N1(e.alternate,e,zn);if(l!==null){Mt=l;return}if(e=e.sibling,e!==null){Mt=e;return}Mt=e=t}while(e!==null);Jt===0&&(Jt=5)}function t0(t,e){do{var l=z1(t.alternate,t);if(l!==null){l.flags&=32767,Mt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){Mt=t;return}Mt=t=l}while(t!==null);Jt=6,Mt=null}function e0(t,e,l,i,o,s,p,x,M){t.cancelPendingCommit=null;do su();while(ne!==0);if((Ut&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(s=e.lanes|e.childLanes,s|=$o,yv(t,l,s,p,x,M),t===qt&&(Mt=qt=null,At=0),Ma=e,rl=t,Rn=l,es=s,ns=o,Vm=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,G1(dr,function(){return r0(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=w.T,w.T=null,o=Y.p,Y.p=2,p=Ut,Ut|=4;try{R1(t,e,l)}finally{Ut=p,Y.p=o,w.T=i}}ne=1,n0(),l0(),a0()}}function n0(){if(ne===1){ne=0;var t=rl,e=Ma,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=w.T,w.T=null;var i=Y.p;Y.p=2;var o=Ut;Ut|=4;try{km(e,t);var s=ys,p=Gd(t.containerInfo),x=s.focusedElem,M=s.selectionRange;if(p!==x&&x&&x.ownerDocument&&qd(x.ownerDocument.documentElement,x)){if(M!==null&&Go(x)){var k=M.start,q=M.end;if(q===void 0&&(q=k),"selectionStart"in x)x.selectionStart=k,x.selectionEnd=Math.min(q,x.value.length);else{var $=x.ownerDocument||document,L=$&&$.defaultView||window;if(L.getSelection){var B=L.getSelection(),ut=x.textContent.length,gt=Math.min(M.start,ut),Yt=M.end===void 0?gt:Math.min(M.end,ut);!B.extend&&gt>Yt&&(p=Yt,Yt=gt,gt=p);var C=Bd(x,gt),E=Bd(x,Yt);if(C&&E&&(B.rangeCount!==1||B.anchorNode!==C.node||B.anchorOffset!==C.offset||B.focusNode!==E.node||B.focusOffset!==E.offset)){var U=$.createRange();U.setStart(C.node,C.offset),B.removeAllRanges(),gt>Yt?(B.addRange(U),B.extend(E.node,E.offset)):(U.setEnd(E.node,E.offset),B.addRange(U))}}}}for($=[],B=x;B=B.parentNode;)B.nodeType===1&&$.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<$.length;x++){var Z=$[x];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}_u=!!ps,ys=ps=null}finally{Ut=o,Y.p=i,w.T=l}}t.current=e,ne=2}}function l0(){if(ne===2){ne=0;var t=rl,e=Ma,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=w.T,w.T=null;var i=Y.p;Y.p=2;var o=Ut;Ut|=4;try{Rm(t,e.alternate,e)}finally{Ut=o,Y.p=i,w.T=l}}ne=3}}function a0(){if(ne===4||ne===3){ne=0,ov();var t=rl,e=Ma,l=Rn,i=Vm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ne=5:(ne=0,Ma=rl=null,i0(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(il=null),wo(l),e=e.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(Za,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=w.T,o=Y.p,Y.p=2,w.T=null;try{for(var s=t.onRecoverableError,p=0;p<i.length;p++){var x=i[p];s(x.value,{componentStack:x.stack})}}finally{w.T=e,Y.p=o}}(Rn&3)!==0&&su(),cn(t),o=t.pendingLanes,(l&261930)!==0&&(o&42)!==0?t===ls?Ai++:(Ai=0,ls=t):Ai=0,Ci(0)}}function i0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,oi(e)))}function su(){return n0(),l0(),a0(),r0()}function r0(){if(ne!==5)return!1;var t=rl,e=es;es=0;var l=wo(Rn),i=w.T,o=Y.p;try{Y.p=32>l?32:l,w.T=null,l=ns,ns=null;var s=rl,p=Rn;if(ne=0,Ma=rl=null,Rn=0,(Ut&6)!==0)throw Error(u(331));var x=Ut;if(Ut|=4,qm(s.current),Lm(s,s.current,p,l),Ut=x,Ci(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(Za,s)}catch{}return!0}finally{Y.p=o,w.T=i,i0(t,e)}}function u0(t,e,l){e=qe(l,e),e=jc(t.stateNode,e,2),t=Pn(t,e,2),t!==null&&(Ka(t,2),cn(t))}function kt(t,e,l){if(t.tag===3)u0(t,t,l);else for(;e!==null;){if(e.tag===3){u0(e,t,l);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(il===null||!il.has(i))){t=qe(l,t),l=om(2),i=Pn(e,l,2),i!==null&&(cm(l,i,e,t),Ka(i,2),cn(i));break}}e=e.return}}function rs(t,e,l){var i=t.pingCache;if(i===null){i=t.pingCache=new U1;var o=new Set;i.set(e,o)}else o=i.get(e),o===void 0&&(o=new Set,i.set(e,o));o.has(l)||(Ic=!0,o.add(l),t=Y1.bind(null,t,e,l),e.then(t,t))}function Y1(t,e,l){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,qt===t&&(At&l)===l&&(Jt===4||Jt===3&&(At&62914560)===At&&300>Ee()-au?(Ut&2)===0&&Ea(t,0):Pc|=l,Ta===At&&(Ta=0)),cn(t)}function o0(t,e){e===0&&(e=nd()),t=Tl(t,e),t!==null&&(Ka(t,e),cn(t))}function B1(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),o0(t,l)}function q1(t,e){var l=0;switch(t.tag){case 31:case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(e),o0(t,l)}function G1(t,e){return Qa(t,e)}var fu=null,Ca=null,us=!1,du=!1,os=!1,ol=0;function cn(t){t!==Ca&&t.next===null&&(Ca===null?fu=Ca=t:Ca=Ca.next=t),du=!0,us||(us=!0,V1())}function Ci(t,e){if(!os&&du){os=!0;do for(var l=!1,i=fu;i!==null;){if(t!==0){var o=i.pendingLanes;if(o===0)var s=0;else{var p=i.suspendedLanes,x=i.pingedLanes;s=(1<<31-Ce(42|t)+1)-1,s&=o&~(p&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,d0(i,s))}else s=At,s=pr(i,i===qt?s:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(s&3)===0||$a(i,s)||(l=!0,d0(i,s));i=i.next}while(l);os=!1}}function X1(){c0()}function c0(){du=us=!1;var t=0;ol!==0&&tb()&&(t=ol);for(var e=Ee(),l=null,i=fu;i!==null;){var o=i.next,s=s0(i,e);s===0?(i.next=null,l===null?fu=o:l.next=o,o===null&&(Ca=l)):(l=i,(t!==0||(s&3)!==0)&&(du=!0)),i=o}ne!==0&&ne!==5||Ci(t),ol!==0&&(ol=0)}function s0(t,e){for(var l=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var p=31-Ce(s),x=1<<p,M=o[p];M===-1?((x&l)===0||(x&i)!==0)&&(o[p]=pv(x,e)):M<=e&&(t.expiredLanes|=x),s&=~x}if(e=qt,l=At,l=pr(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,l===0||t===e&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&xo(i),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||$a(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(i!==null&&xo(i),wo(l)){case 2:case 8:l=td;break;case 32:l=dr;break;case 268435456:l=ed;break;default:l=dr}return i=f0.bind(null,t),l=Qa(l,i),t.callbackPriority=e,t.callbackNode=l,e}return i!==null&&i!==null&&xo(i),t.callbackPriority=2,t.callbackNode=null,2}function f0(t,e){if(ne!==0&&ne!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(su()&&t.callbackNode!==l)return null;var i=At;return i=pr(t,t===qt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(Zm(t,i,e),s0(t,Ee()),t.callbackNode!=null&&t.callbackNode===l?f0.bind(null,t):null)}function d0(t,e){if(su())return null;Zm(t,e,!0)}function V1(){nb(function(){(Ut&6)!==0?Qa(Pf,X1):c0()})}function cs(){if(ol===0){var t=ha;t===0&&(t=hr,hr<<=1,(hr&261888)===0&&(hr=256)),ol=t}return ol}function h0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:xr(""+t)}function m0(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Q1(t,e,l,i,o){if(e==="submit"&&l&&l.stateNode===o){var s=h0((o[ye]||null).action),p=i.submitter;p&&(e=(e=p[ye]||null)?h0(e.formAction):p.getAttribute("formAction"),e!==null&&(s=e,p=null));var x=new Tr("action","action",null,i,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ol!==0){var M=p?m0(o,p):new FormData(o);Nc(l,{pending:!0,data:M,method:o.method,action:s},null,M)}}else typeof s=="function"&&(x.preventDefault(),M=p?m0(o,p):new FormData(o),Nc(l,{pending:!0,data:M,method:o.method,action:s},s,M))},currentTarget:o}]})}}for(var ss=0;ss<Zo.length;ss++){var fs=Zo[ss],Z1=fs.toLowerCase(),$1=fs[0].toUpperCase()+fs.slice(1);Fe(Z1,"on"+$1)}Fe(Qd,"onAnimationEnd"),Fe(Zd,"onAnimationIteration"),Fe($d,"onAnimationStart"),Fe("dblclick","onDoubleClick"),Fe("focusin","onFocus"),Fe("focusout","onBlur"),Fe(c1,"onTransitionRun"),Fe(s1,"onTransitionStart"),Fe(f1,"onTransitionCancel"),Fe(Kd,"onTransitionEnd"),Pl("onMouseEnter",["mouseout","mouseover"]),Pl("onMouseLeave",["mouseout","mouseover"]),Pl("onPointerEnter",["pointerout","pointerover"]),Pl("onPointerLeave",["pointerout","pointerover"]),xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ni="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(" "),K1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ni));function g0(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var i=t[l],o=i.event;i=i.listeners;t:{var s=void 0;if(e)for(var p=i.length-1;0<=p;p--){var x=i[p],M=x.instance,k=x.currentTarget;if(x=x.listener,M!==s&&o.isPropagationStopped())break t;s=x,o.currentTarget=k;try{s(o)}catch(q){Ar(q)}o.currentTarget=null,s=M}else for(p=0;p<i.length;p++){if(x=i[p],M=x.instance,k=x.currentTarget,x=x.listener,M!==s&&o.isPropagationStopped())break t;s=x,o.currentTarget=k;try{s(o)}catch(q){Ar(q)}o.currentTarget=null,s=M}}}}function Et(t,e){var l=e[To];l===void 0&&(l=e[To]=new Set);var i=t+"__bubble";l.has(i)||(p0(e,t,2,!1),l.add(i))}function ds(t,e,l){var i=0;e&&(i|=4),p0(l,t,i,e)}var hu="_reactListening"+Math.random().toString(36).slice(2);function hs(t){if(!t[hu]){t[hu]=!0,cd.forEach(function(l){l!=="selectionchange"&&(K1.has(l)||ds(l,!1,t),ds(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[hu]||(e[hu]=!0,ds("selectionchange",!1,e))}}function p0(t,e,l,i){switch(Q0(e)){case 2:var o=_b;break;case 8:o=wb;break;default:o=Cs}l=o.bind(null,e,l,t),o=void 0,!Oo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),i?o!==void 0?t.addEventListener(e,l,{capture:!0,passive:o}):t.addEventListener(e,l,!0):o!==void 0?t.addEventListener(e,l,{passive:o}):t.addEventListener(e,l,!1)}function ms(t,e,l,i,o){var s=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var p=i.tag;if(p===3||p===4){var x=i.stateNode.containerInfo;if(x===o)break;if(p===4)for(p=i.return;p!==null;){var M=p.tag;if((M===3||M===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;x!==null;){if(p=Fl(x),p===null)return;if(M=p.tag,M===5||M===6||M===26||M===27){i=s=p;continue t}x=x.parentNode}}i=i.return}Sd(function(){var k=s,q=Ro(l),$=[];t:{var L=Jd.get(t);if(L!==void 0){var B=Tr,ut=t;switch(t){case"keypress":if(_r(l)===0)break t;case"keydown":case"keyup":B=qv;break;case"focusin":ut="focus",B=Ho;break;case"focusout":ut="blur",B=Ho;break;case"beforeblur":case"afterblur":B=Ho;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Td;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Nv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Vv;break;case Qd:case Zd:case $d:B=Dv;break;case Kd:B=Zv;break;case"scroll":case"scrollend":B=Av;break;case"wheel":B=Kv;break;case"copy":case"cut":case"paste":B=Uv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Ed;break;case"toggle":case"beforetoggle":B=Fv}var gt=(e&4)!==0,Yt=!gt&&(t==="scroll"||t==="scrollend"),C=gt?L!==null?L+"Capture":null:L;gt=[];for(var E=k,U;E!==null;){var Z=E;if(U=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||U===null||C===null||(Z=Wa(E,C),Z!=null&&gt.push(zi(E,Z,U))),Yt)break;E=E.return}0<gt.length&&(L=new B(L,ut,null,l,q),$.push({event:L,listeners:gt}))}}if((e&7)===0){t:{if(L=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",L&&l!==zo&&(ut=l.relatedTarget||l.fromElement)&&(Fl(ut)||ut[Jl]))break t;if((B||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,B?(ut=l.relatedTarget||l.toElement,B=k,ut=ut?Fl(ut):null,ut!==null&&(Yt=f(ut),gt=ut.tag,ut!==Yt||gt!==5&&gt!==27&&gt!==6)&&(ut=null)):(B=null,ut=k),B!==ut)){if(gt=Td,Z="onMouseLeave",C="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(gt=Ed,Z="onPointerLeave",C="onPointerEnter",E="pointer"),Yt=B==null?L:Fa(B),U=ut==null?L:Fa(ut),L=new gt(Z,E+"leave",B,l,q),L.target=Yt,L.relatedTarget=U,Z=null,Fl(q)===k&&(gt=new gt(C,E+"enter",ut,l,q),gt.target=U,gt.relatedTarget=Yt,Z=gt),Yt=Z,B&&ut)e:{for(gt=J1,C=B,E=ut,U=0,Z=C;Z;Z=gt(Z))U++;Z=0;for(var ht=E;ht;ht=gt(ht))Z++;for(;0<U-Z;)C=gt(C),U--;for(;0<Z-U;)E=gt(E),Z--;for(;U--;){if(C===E||E!==null&&C===E.alternate){gt=C;break e}C=gt(C),E=gt(E)}gt=null}else gt=null;B!==null&&y0($,L,B,gt,!1),ut!==null&&Yt!==null&&y0($,Yt,ut,gt,!0)}}t:{if(L=k?Fa(k):window,B=L.nodeName&&L.nodeName.toLowerCase(),B==="select"||B==="input"&&L.type==="file")var Rt=Ud;else if(Dd(L))if(jd)Rt=r1;else{Rt=a1;var ft=l1}else B=L.nodeName,!B||B.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?k&&No(k.elementType)&&(Rt=Ud):Rt=i1;if(Rt&&(Rt=Rt(t,k))){Od($,Rt,l,q);break t}ft&&ft(t,L,k),t==="focusout"&&k&&L.type==="number"&&k.memoizedProps.value!=null&&Co(L,"number",L.value)}switch(ft=k?Fa(k):window,t){case"focusin":(Dd(ft)||ft.contentEditable==="true")&&(ia=ft,Xo=k,ii=null);break;case"focusout":ii=Xo=ia=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,Xd($,l,q);break;case"selectionchange":if(o1)break;case"keydown":case"keyup":Xd($,l,q)}var _t;if(Yo)t:{switch(t){case"compositionstart":var Ct="onCompositionStart";break t;case"compositionend":Ct="onCompositionEnd";break t;case"compositionupdate":Ct="onCompositionUpdate";break t}Ct=void 0}else aa?zd(t,l)&&(Ct="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Ct="onCompositionStart");Ct&&(Ad&&l.locale!=="ko"&&(aa||Ct!=="onCompositionStart"?Ct==="onCompositionEnd"&&aa&&(_t=_d()):(Zn=q,Uo="value"in Zn?Zn.value:Zn.textContent,aa=!0)),ft=mu(k,Ct),0<ft.length&&(Ct=new Md(Ct,t,null,l,q),$.push({event:Ct,listeners:ft}),_t?Ct.data=_t:(_t=Rd(l),_t!==null&&(Ct.data=_t)))),(_t=Iv?Pv(t,l):t1(t,l))&&(Ct=mu(k,"onBeforeInput"),0<Ct.length&&(ft=new Md("onBeforeInput","beforeinput",null,l,q),$.push({event:ft,listeners:Ct}),ft.data=_t)),Q1($,t,k,l,q)}g0($,e)})}function zi(t,e,l){return{instance:t,listener:e,currentTarget:l}}function mu(t,e){for(var l=e+"Capture",i=[];t!==null;){var o=t,s=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||s===null||(o=Wa(t,l),o!=null&&i.unshift(zi(t,o,s)),o=Wa(t,e),o!=null&&i.push(zi(t,o,s))),t.tag===3)return i;t=t.return}return[]}function J1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function y0(t,e,l,i,o){for(var s=e._reactName,p=[];l!==null&&l!==i;){var x=l,M=x.alternate,k=x.stateNode;if(x=x.tag,M!==null&&M===i)break;x!==5&&x!==26&&x!==27||k===null||(M=k,o?(k=Wa(l,s),k!=null&&p.unshift(zi(l,k,M))):o||(k=Wa(l,s),k!=null&&p.push(zi(l,k,M)))),l=l.return}p.length!==0&&t.push({event:e,listeners:p})}var F1=/\r\n?/g,W1=/\u0000|\uFFFD/g;function v0(t){return(typeof t=="string"?t:""+t).replace(F1,`
9
+ `).replace(W1,"")}function b0(t,e){return e=v0(e),v0(t)===e}function Lt(t,e,l,i,o,s){switch(l){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||ea(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&ea(t,""+i);break;case"className":vr(t,"class",i);break;case"tabIndex":vr(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":vr(t,l,i);break;case"style":bd(t,i,s);break;case"data":if(e!=="object"){vr(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(l);break}i=xr(""+i),t.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(l,"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 s=="function"&&(l==="formAction"?(e!=="input"&&Lt(t,e,"name",o.name,o,null),Lt(t,e,"formEncType",o.formEncType,o,null),Lt(t,e,"formMethod",o.formMethod,o,null),Lt(t,e,"formTarget",o.formTarget,o,null)):(Lt(t,e,"encType",o.encType,o,null),Lt(t,e,"method",o.method,o,null),Lt(t,e,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(l);break}i=xr(""+i),t.setAttribute(l,i);break;case"onClick":i!=null&&(t.onclick=pn);break;case"onScroll":i!=null&&Et("scroll",t);break;case"onScrollEnd":i!=null&&Et("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));t.innerHTML=l}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}l=xr(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(l,""+i):t.removeAttribute(l);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":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":i===!0?t.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(l,i):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(l,i):t.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(l):t.setAttribute(l,i);break;case"popover":Et("beforetoggle",t),Et("toggle",t),yr(t,"popover",i);break;case"xlinkActuate":gn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":gn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":gn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":gn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":gn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":gn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":gn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":gn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":gn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":yr(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Mv.get(l)||l,yr(t,l,i))}}function gs(t,e,l,i,o,s){switch(l){case"style":bd(t,i,s);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));t.innerHTML=l}}break;case"children":typeof i=="string"?ea(t,i):(typeof i=="number"||typeof i=="bigint")&&ea(t,""+i);break;case"onScroll":i!=null&&Et("scroll",t);break;case"onScrollEnd":i!=null&&Et("scrollend",t);break;case"onClick":i!=null&&(t.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sd.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),e=l.slice(2,o?l.length-7:void 0),s=t[ye]||null,s=s!=null?s[l]:null,typeof s=="function"&&t.removeEventListener(e,s,o),typeof i=="function")){typeof s!="function"&&s!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,i,o);break t}l in t?t[l]=i:i===!0?t.setAttribute(l,""):yr(t,l,i)}}}function he(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",t),Et("load",t);var i=!1,o=!1,s;for(s in l)if(l.hasOwnProperty(s)){var p=l[s];if(p!=null)switch(s){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Lt(t,e,s,p,l,null)}}o&&Lt(t,e,"srcSet",l.srcSet,l,null),i&&Lt(t,e,"src",l.src,l,null);return;case"input":Et("invalid",t);var x=s=p=o=null,M=null,k=null;for(i in l)if(l.hasOwnProperty(i)){var q=l[i];if(q!=null)switch(i){case"name":o=q;break;case"type":p=q;break;case"checked":M=q;break;case"defaultChecked":k=q;break;case"value":s=q;break;case"defaultValue":x=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,e));break;default:Lt(t,e,i,q,l,null)}}gd(t,s,x,M,k,p,o,!1);return;case"select":Et("invalid",t),i=p=s=null;for(o in l)if(l.hasOwnProperty(o)&&(x=l[o],x!=null))switch(o){case"value":s=x;break;case"defaultValue":p=x;break;case"multiple":i=x;default:Lt(t,e,o,x,l,null)}e=s,l=p,t.multiple=!!i,e!=null?ta(t,!!i,e,!1):l!=null&&ta(t,!!i,l,!0);return;case"textarea":Et("invalid",t),s=o=i=null;for(p in l)if(l.hasOwnProperty(p)&&(x=l[p],x!=null))switch(p){case"value":i=x;break;case"defaultValue":o=x;break;case"children":s=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:Lt(t,e,p,x,l,null)}yd(t,i,o,s);return;case"option":for(M in l)l.hasOwnProperty(M)&&(i=l[M],i!=null)&&(M==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":Lt(t,e,M,i,l,null));return;case"dialog":Et("beforetoggle",t),Et("toggle",t),Et("cancel",t),Et("close",t);break;case"iframe":case"object":Et("load",t);break;case"video":case"audio":for(i=0;i<Ni.length;i++)Et(Ni[i],t);break;case"image":Et("error",t),Et("load",t);break;case"details":Et("toggle",t);break;case"embed":case"source":case"link":Et("error",t),Et("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in l)if(l.hasOwnProperty(k)&&(i=l[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Lt(t,e,k,i,l,null)}return;default:if(No(e)){for(q in l)l.hasOwnProperty(q)&&(i=l[q],i!==void 0&&gs(t,e,q,i,l,void 0));return}}for(x in l)l.hasOwnProperty(x)&&(i=l[x],i!=null&&Lt(t,e,x,i,l,null))}function I1(t,e,l,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,s=null,p=null,x=null,M=null,k=null,q=null;for(B in l){var $=l[B];if(l.hasOwnProperty(B)&&$!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":M=$;default:i.hasOwnProperty(B)||Lt(t,e,B,null,i,$)}}for(var L in i){var B=i[L];if($=l[L],i.hasOwnProperty(L)&&(B!=null||$!=null))switch(L){case"type":s=B;break;case"name":o=B;break;case"checked":k=B;break;case"defaultChecked":q=B;break;case"value":p=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,e));break;default:B!==$&&Lt(t,e,L,B,i,$)}}Ao(t,p,x,M,k,q,s,o);return;case"select":B=p=x=L=null;for(s in l)if(M=l[s],l.hasOwnProperty(s)&&M!=null)switch(s){case"value":break;case"multiple":B=M;default:i.hasOwnProperty(s)||Lt(t,e,s,null,i,M)}for(o in i)if(s=i[o],M=l[o],i.hasOwnProperty(o)&&(s!=null||M!=null))switch(o){case"value":L=s;break;case"defaultValue":x=s;break;case"multiple":p=s;default:s!==M&&Lt(t,e,o,s,i,M)}e=x,l=p,i=B,L!=null?ta(t,!!l,L,!1):!!i!=!!l&&(e!=null?ta(t,!!l,e,!0):ta(t,!!l,l?[]:"",!1));return;case"textarea":B=L=null;for(x in l)if(o=l[x],l.hasOwnProperty(x)&&o!=null&&!i.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Lt(t,e,x,null,i,o)}for(p in i)if(o=i[p],s=l[p],i.hasOwnProperty(p)&&(o!=null||s!=null))switch(p){case"value":L=o;break;case"defaultValue":B=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==s&&Lt(t,e,p,o,i,s)}pd(t,L,B);return;case"option":for(var ut in l)L=l[ut],l.hasOwnProperty(ut)&&L!=null&&!i.hasOwnProperty(ut)&&(ut==="selected"?t.selected=!1:Lt(t,e,ut,null,i,L));for(M in i)L=i[M],B=l[M],i.hasOwnProperty(M)&&L!==B&&(L!=null||B!=null)&&(M==="selected"?t.selected=L&&typeof L!="function"&&typeof L!="symbol":Lt(t,e,M,L,i,B));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 gt in l)L=l[gt],l.hasOwnProperty(gt)&&L!=null&&!i.hasOwnProperty(gt)&&Lt(t,e,gt,null,i,L);for(k in i)if(L=i[k],B=l[k],i.hasOwnProperty(k)&&L!==B&&(L!=null||B!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,e));break;default:Lt(t,e,k,L,i,B)}return;default:if(No(e)){for(var Yt in l)L=l[Yt],l.hasOwnProperty(Yt)&&L!==void 0&&!i.hasOwnProperty(Yt)&&gs(t,e,Yt,void 0,i,L);for(q in i)L=i[q],B=l[q],!i.hasOwnProperty(q)||L===B||L===void 0&&B===void 0||gs(t,e,q,L,i,B);return}}for(var C in l)L=l[C],l.hasOwnProperty(C)&&L!=null&&!i.hasOwnProperty(C)&&Lt(t,e,C,null,i,L);for($ in i)L=i[$],B=l[$],!i.hasOwnProperty($)||L===B||L==null&&B==null||Lt(t,e,$,L,i,B)}function x0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function P1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var o=l[i],s=o.transferSize,p=o.initiatorType,x=o.duration;if(s&&x&&x0(p)){for(p=0,x=o.responseEnd,i+=1;i<l.length;i++){var M=l[i],k=M.startTime;if(k>x)break;var q=M.transferSize,$=M.initiatorType;q&&x0($)&&(M=M.responseEnd,p+=q*(M<x?1:(x-k)/(M-k)))}if(--i,e+=8*(s+p)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ps=null,ys=null;function gu(t){return t.nodeType===9?t:t.ownerDocument}function S0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function vs(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var bs=null;function tb(){var t=window.event;return t&&t.type==="popstate"?t===bs?!1:(bs=t,!0):(bs=null,!1)}var w0=typeof setTimeout=="function"?setTimeout:void 0,eb=typeof clearTimeout=="function"?clearTimeout:void 0,T0=typeof Promise=="function"?Promise:void 0,nb=typeof queueMicrotask=="function"?queueMicrotask:typeof T0<"u"?function(t){return T0.resolve(null).then(t).catch(lb)}:w0;function lb(t){setTimeout(function(){throw t})}function cl(t){return t==="head"}function M0(t,e){var l=e,i=0;do{var o=l.nextSibling;if(t.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(i===0){t.removeChild(o),Da(e);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Ri(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Ri(l);for(var s=l.firstChild;s;){var p=s.nextSibling,x=s.nodeName;s[Ja]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=p}}else l==="body"&&Ri(t.ownerDocument.body);l=o}while(l);Da(e)}function E0(t,e){var l=t;t=0;do{var i=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=i}while(l)}function xs(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":xs(l),Mo(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function ab(t,e,l,i){for(;t.nodeType===1;){var o=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[Ja])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function ib(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ze(t.nextSibling),t===null))return null;return t}function A0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function Ss(t){return t.data==="$?"||t.data==="$~"}function _s(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function rb(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var i=function(){e(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Ze(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ws=null;function C0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ze(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function N0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function z0(t,e,l){switch(e=gu(l),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function Ri(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Mo(t)}var $e=new Map,R0=new Set;function pu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Dn=Y.d;Y.d={f:ub,r:ob,D:cb,C:sb,L:fb,m:db,X:mb,S:hb,M:gb};function ub(){var t=Dn.f(),e=uu();return t||e}function ob(t){var e=Wl(t);e!==null&&e.tag===5&&e.type==="form"?Kh(e):Dn.r(t)}var Na=typeof document>"u"?null:document;function D0(t,e,l){var i=Na;if(i&&typeof e=="string"&&e){var o=Ye(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),R0.has(o)||(R0.add(o),t={rel:t,crossOrigin:l,href:e},i.querySelector(o)===null&&(e=i.createElement("link"),he(e,"link",t),ie(e),i.head.appendChild(e)))}}function cb(t){Dn.D(t),D0("dns-prefetch",t,null)}function sb(t,e){Dn.C(t,e),D0("preconnect",t,e)}function fb(t,e,l){Dn.L(t,e,l);var i=Na;if(i&&t&&e){var o='link[rel="preload"][as="'+Ye(e)+'"]';e==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Ye(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Ye(l.imageSizes)+'"]')):o+='[href="'+Ye(t)+'"]';var s=o;switch(e){case"style":s=za(t);break;case"script":s=Ra(t)}$e.has(s)||(t=y({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),$e.set(s,t),i.querySelector(o)!==null||e==="style"&&i.querySelector(Di(s))||e==="script"&&i.querySelector(Oi(s))||(e=i.createElement("link"),he(e,"link",t),ie(e),i.head.appendChild(e)))}}function db(t,e){Dn.m(t,e);var l=Na;if(l&&t){var i=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Ye(i)+'"][href="'+Ye(t)+'"]',s=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Ra(t)}if(!$e.has(s)&&(t=y({rel:"modulepreload",href:t},e),$e.set(s,t),l.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Oi(s)))return}i=l.createElement("link"),he(i,"link",t),ie(i),l.head.appendChild(i)}}}function hb(t,e,l){Dn.S(t,e,l);var i=Na;if(i&&t){var o=Il(i).hoistableStyles,s=za(t);e=e||"default";var p=o.get(s);if(!p){var x={loading:0,preload:null};if(p=i.querySelector(Di(s)))x.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":e},l),(l=$e.get(s))&&Ts(t,l);var M=p=i.createElement("link");ie(M),he(M,"link",t),M._p=new Promise(function(k,q){M.onload=k,M.onerror=q}),M.addEventListener("load",function(){x.loading|=1}),M.addEventListener("error",function(){x.loading|=2}),x.loading|=4,yu(p,e,i)}p={type:"stylesheet",instance:p,count:1,state:x},o.set(s,p)}}}function mb(t,e){Dn.X(t,e);var l=Na;if(l&&t){var i=Il(l).hoistableScripts,o=Ra(t),s=i.get(o);s||(s=l.querySelector(Oi(o)),s||(t=y({src:t,async:!0},e),(e=$e.get(o))&&Ms(t,e),s=l.createElement("script"),ie(s),he(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(o,s))}}function gb(t,e){Dn.M(t,e);var l=Na;if(l&&t){var i=Il(l).hoistableScripts,o=Ra(t),s=i.get(o);s||(s=l.querySelector(Oi(o)),s||(t=y({src:t,async:!0,type:"module"},e),(e=$e.get(o))&&Ms(t,e),s=l.createElement("script"),ie(s),he(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(o,s))}}function O0(t,e,l,i){var o=(o=at.current)?pu(o):null;if(!o)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=za(l.href),l=Il(o).hoistableStyles,i=l.get(e),i||(i={type:"style",instance:null,count:0,state:null},l.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=za(l.href);var s=Il(o).hoistableStyles,p=s.get(t);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,p),(s=o.querySelector(Di(t)))&&!s._p&&(p.instance=s,p.state.loading=5),$e.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},$e.set(t,l),s||pb(o,t,l,p.state))),e&&i===null)throw Error(u(528,""));return p}if(e&&i!==null)throw Error(u(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ra(l),l=Il(o).hoistableScripts,i=l.get(e),i||(i={type:"script",instance:null,count:0,state:null},l.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function za(t){return'href="'+Ye(t)+'"'}function Di(t){return'link[rel="stylesheet"]['+t+"]"}function U0(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function pb(t,e,l,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),he(e,"link",l),ie(e),t.head.appendChild(e))}function Ra(t){return'[src="'+Ye(t)+'"]'}function Oi(t){return"script[async]"+t}function j0(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Ye(l.href)+'"]');if(i)return e.instance=i,ie(i),i;var o=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),ie(i),he(i,"style",o),yu(i,l.precedence,t),e.instance=i;case"stylesheet":o=za(l.href);var s=t.querySelector(Di(o));if(s)return e.state.loading|=4,e.instance=s,ie(s),s;i=U0(l),(o=$e.get(o))&&Ts(i,o),s=(t.ownerDocument||t).createElement("link"),ie(s);var p=s;return p._p=new Promise(function(x,M){p.onload=x,p.onerror=M}),he(s,"link",i),e.state.loading|=4,yu(s,l.precedence,t),e.instance=s;case"script":return s=Ra(l.src),(o=t.querySelector(Oi(s)))?(e.instance=o,ie(o),o):(i=l,(o=$e.get(s))&&(i=y({},l),Ms(i,o)),t=t.ownerDocument||t,o=t.createElement("script"),ie(o),he(o,"link",i),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,yu(i,l.precedence,t));return e.instance}function yu(t,e,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,s=o,p=0;p<i.length;p++){var x=i[p];if(x.dataset.precedence===e)s=x;else if(s!==o)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Ts(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ms(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vu=null;function k0(t,e,l){if(vu===null){var i=new Map,o=vu=new Map;o.set(l,i)}else o=vu,i=o.get(l),i||(i=new Map,o.set(l,i));if(i.has(t))return i;for(i.set(t,null),l=l.getElementsByTagName(t),o=0;o<l.length;o++){var s=l[o];if(!(s[Ja]||s[ce]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var p=s.getAttribute(e)||"";p=t+p;var x=i.get(p);x?x.push(s):i.set(p,[s])}}return i}function H0(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function yb(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function L0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function vb(t,e,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=za(i.href),s=e.querySelector(Di(o));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=bu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=s,ie(s);return}s=e.ownerDocument||e,i=U0(i),(o=$e.get(o))&&Ts(i,o),s=s.createElement("link"),ie(s);var p=s;p._p=new Promise(function(x,M){p.onload=x,p.onerror=M}),he(s,"link",i),l.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=bu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Es=0;function bb(t,e){return t.stylesheets&&t.count===0&&Su(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var i=setTimeout(function(){if(t.stylesheets&&Su(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&Es===0&&(Es=62500*P1());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Su(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>Es?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Su(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var xu=null;function Su(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,xu=new Map,e.forEach(xb,t),xu=null,bu.call(t))}function xb(t,e){if(!(e.state.loading&4)){var l=xu.get(t);if(l)var i=l.get(null);else{l=new Map,xu.set(t,l);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<o.length;s++){var p=o[s];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(l.set(p.dataset.precedence,p),i=p)}i&&l.set(null,i)}o=e.instance,p=o.getAttribute("data-precedence"),s=l.get(p)||i,s===i&&l.set(null,o),l.set(p,o),this.count++,i=bu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),s?s.parentNode.insertBefore(o,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var Ui={$$typeof:G,Provider:null,Consumer:null,_currentValue:tt,_currentValue2:tt,_threadCount:0};function Sb(t,e,l,i,o,s,p,x,M){this.tag=1,this.containerInfo=t,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=So(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=So(0),this.hiddenUpdates=So(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=s,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function Y0(t,e,l,i,o,s,p,x,M,k,q,$){return t=new Sb(t,e,l,p,M,k,q,$,x),e=1,s===!0&&(e|=24),s=ze(3,null,null,e),t.current=s,s.stateNode=t,e=ic(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:i,isDehydrated:l,cache:e},cc(s),t}function B0(t){return t?(t=oa,t):oa}function q0(t,e,l,i,o,s){o=B0(o),i.context===null?i.context=o:i.pendingContext=o,i=In(e),i.payload={element:l},s=s===void 0?null:s,s!==null&&(i.callback=s),l=Pn(t,i,e),l!==null&&(we(l,t,e),di(l,t,e))}function G0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function As(t,e){G0(t,e),(t=t.alternate)&&G0(t,e)}function X0(t){if(t.tag===13||t.tag===31){var e=Tl(t,67108864);e!==null&&we(e,t,67108864),As(t,67108864)}}function V0(t){if(t.tag===13||t.tag===31){var e=je();e=_o(e);var l=Tl(t,e);l!==null&&we(l,t,e),As(t,e)}}var _u=!0;function _b(t,e,l,i){var o=w.T;w.T=null;var s=Y.p;try{Y.p=2,Cs(t,e,l,i)}finally{Y.p=s,w.T=o}}function wb(t,e,l,i){var o=w.T;w.T=null;var s=Y.p;try{Y.p=8,Cs(t,e,l,i)}finally{Y.p=s,w.T=o}}function Cs(t,e,l,i){if(_u){var o=Ns(i);if(o===null)ms(t,e,i,wu,l),Z0(t,i);else if(Mb(o,t,e,l,i))i.stopPropagation();else if(Z0(t,i),e&4&&-1<Tb.indexOf(t)){for(;o!==null;){var s=Wl(o);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var p=bl(s.pendingLanes);if(p!==0){var x=s;for(x.pendingLanes|=2,x.entangledLanes|=2;p;){var M=1<<31-Ce(p);x.entanglements[1]|=M,p&=~M}cn(s),(Ut&6)===0&&(iu=Ee()+500,Ci(0))}}break;case 31:case 13:x=Tl(s,2),x!==null&&we(x,s,2),uu(),As(s,2)}if(s=Ns(i),s===null&&ms(t,e,i,wu,l),s===o)break;o=s}o!==null&&i.stopPropagation()}else ms(t,e,i,null,l)}}function Ns(t){return t=Ro(t),zs(t)}var wu=null;function zs(t){if(wu=null,t=Fl(t),t!==null){var e=f(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=d(e),t!==null)return t;t=null}else if(l===31){if(t=g(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return wu=t,null}function Q0(t){switch(t){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(cv()){case Pf:return 2;case td:return 8;case dr:case sv:return 32;case ed:return 268435456;default:return 32}default:return 32}}var Rs=!1,sl=null,fl=null,dl=null,ji=new Map,ki=new Map,hl=[],Tb="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 Z0(t,e){switch(t){case"focusin":case"focusout":sl=null;break;case"dragenter":case"dragleave":fl=null;break;case"mouseover":case"mouseout":dl=null;break;case"pointerover":case"pointerout":ji.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(e.pointerId)}}function Hi(t,e,l,i,o,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:l,eventSystemFlags:i,nativeEvent:s,targetContainers:[o]},e!==null&&(e=Wl(e),e!==null&&X0(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Mb(t,e,l,i,o){switch(e){case"focusin":return sl=Hi(sl,t,e,l,i,o),!0;case"dragenter":return fl=Hi(fl,t,e,l,i,o),!0;case"mouseover":return dl=Hi(dl,t,e,l,i,o),!0;case"pointerover":var s=o.pointerId;return ji.set(s,Hi(ji.get(s)||null,t,e,l,i,o)),!0;case"gotpointercapture":return s=o.pointerId,ki.set(s,Hi(ki.get(s)||null,t,e,l,i,o)),!0}return!1}function $0(t){var e=Fl(t.target);if(e!==null){var l=f(e);if(l!==null){if(e=l.tag,e===13){if(e=d(l),e!==null){t.blockedOn=e,ud(t.priority,function(){V0(l)});return}}else if(e===31){if(e=g(l),e!==null){t.blockedOn=e,ud(t.priority,function(){V0(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Tu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Ns(t.nativeEvent);if(l===null){l=t.nativeEvent;var i=new l.constructor(l.type,l);zo=i,l.target.dispatchEvent(i),zo=null}else return e=Wl(l),e!==null&&X0(e),t.blockedOn=l,!1;e.shift()}return!0}function K0(t,e,l){Tu(t)&&l.delete(e)}function Eb(){Rs=!1,sl!==null&&Tu(sl)&&(sl=null),fl!==null&&Tu(fl)&&(fl=null),dl!==null&&Tu(dl)&&(dl=null),ji.forEach(K0),ki.forEach(K0)}function Mu(t,e){t.blockedOn===e&&(t.blockedOn=null,Rs||(Rs=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Eb)))}var Eu=null;function J0(t){Eu!==t&&(Eu=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Eu===t&&(Eu=null);for(var e=0;e<t.length;e+=3){var l=t[e],i=t[e+1],o=t[e+2];if(typeof i!="function"){if(zs(i||l)===null)continue;break}var s=Wl(l);s!==null&&(t.splice(e,3),e-=3,Nc(s,{pending:!0,data:o,method:l.method,action:i},i,o))}}))}function Da(t){function e(M){return Mu(M,t)}sl!==null&&Mu(sl,t),fl!==null&&Mu(fl,t),dl!==null&&Mu(dl,t),ji.forEach(e),ki.forEach(e);for(var l=0;l<hl.length;l++){var i=hl[l];i.blockedOn===t&&(i.blockedOn=null)}for(;0<hl.length&&(l=hl[0],l.blockedOn===null);)$0(l),l.blockedOn===null&&hl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var o=l[i],s=l[i+1],p=o[ye]||null;if(typeof s=="function")p||J0(l);else if(p){var x=null;if(s&&s.hasAttribute("formAction")){if(o=s,p=s[ye]||null)x=p.formAction;else if(zs(o)!==null)continue}else x=p.action;typeof x=="function"?l[i+1]=x:(l.splice(i,3),i-=3),J0(l)}}}function F0(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Ds(t){this._internalRoot=t}Au.prototype.render=Ds.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var l=e.current,i=je();q0(l,i,t,e,null,null)},Au.prototype.unmount=Ds.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;q0(t.current,2,null,t,null,null),uu(),e[Jl]=null}};function Au(t){this._internalRoot=t}Au.prototype.unstable_scheduleHydration=function(t){if(t){var e=rd();t={blockedOn:null,target:t,priority:e};for(var l=0;l<hl.length&&e!==0&&e<hl[l].priority;l++);hl.splice(l,0,t),l===0&&$0(t)}};var W0=a.version;if(W0!=="19.2.4")throw Error(u(527,W0,"19.2.4"));Y.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=h(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Ab={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{Za=Cu.inject(Ab),Ae=Cu}catch{}}return Yi.createRoot=function(t,e){if(!c(t))throw Error(u(299));var l=!1,i="",o=am,s=im,p=rm;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(p=e.onRecoverableError)),e=Y0(t,1,!1,null,null,l,i,null,o,s,p,F0),t[Jl]=e.current,hs(t),new Ds(e)},Yi.hydrateRoot=function(t,e,l){if(!c(t))throw Error(u(299));var i=!1,o="",s=am,p=im,x=rm,M=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(p=l.onCaughtError),l.onRecoverableError!==void 0&&(x=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),e=Y0(t,1,!0,e,l??null,i,o,M,s,p,x,F0),e.context=B0(null),l=e.current,i=je(),i=_o(i),o=In(i),o.callback=null,Pn(l,o,i),l=i,e.current.lanes=l,Ka(e,l),cn(e),t[Jl]=e.current,hs(t),new Au(e)},Yi.version="19.2.4",Yi}var ug;function Hb(){if(ug)return js.exports;ug=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),js.exports=kb(),js.exports}var Lb=Hb();var og="popstate";function cg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Yb(n={}){function a(u,c){let f=c.state?.masked,{pathname:d,search:g,hash:m}=f||u.location;return lf("",{pathname:d,search:g,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default",f?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function r(u,c){return typeof c=="string"?c:Ii(c)}return qb(a,r,null,n)}function Zt(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function dn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Bb(){return Math.random().toString(36).substring(2,10)}function sg(n,a){return{usr:n.state,key:n.key,idx:a,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function lf(n,a,r=null,u,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Xa(a):a,state:r,key:a&&a.key||u||Bb(),unstable_mask:c}}function Ii({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Xa(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let u=n.indexOf("?");u>=0&&(a.search=n.substring(u),n=n.substring(0,u)),n&&(a.pathname=n)}return a}function qb(n,a,r,u={}){let{window:c=document.defaultView,v5Compat:f=!1}=u,d=c.history,g="POP",m=null,h=v();h==null&&(h=0,d.replaceState({...d.state,idx:h},""));function v(){return(d.state||{idx:null}).idx}function y(){g="POP";let A=v(),N=A==null?null:A-h;h=A,m&&m({action:g,location:j.location,delta:N})}function b(A,N){g="PUSH";let Q=cg(A)?A:lf(j.location,A,N);h=v()+1;let G=sg(Q,h),nt=j.createHref(Q.unstable_mask||Q);try{d.pushState(G,"",nt)}catch(it){if(it instanceof DOMException&&it.name==="DataCloneError")throw it;c.location.assign(nt)}f&&m&&m({action:g,location:j.location,delta:1})}function T(A,N){g="REPLACE";let Q=cg(A)?A:lf(j.location,A,N);h=v();let G=sg(Q,h),nt=j.createHref(Q.unstable_mask||Q);d.replaceState(G,"",nt),f&&m&&m({action:g,location:j.location,delta:0})}function D(A){return Gb(A)}let j={get action(){return g},get location(){return n(c,d)},listen(A){if(m)throw new Error("A history only accepts one active listener");return c.addEventListener(og,y),m=A,()=>{c.removeEventListener(og,y),m=null}},createHref(A){return a(c,A)},createURL:D,encodeLocation(A){let N=D(A);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:b,replace:T,go(A){return d.go(A)}};return j}function Gb(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Zt(r,"No window.location.(origin|href) available to create URL");let u=typeof n=="string"?n:Ii(n);return u=u.replace(/ $/,"%20"),!a&&u.startsWith("//")&&(u=r+u),new URL(u,r)}function _p(n,a,r="/"){return Xb(n,a,r,!1)}function Xb(n,a,r,u){let c=typeof a=="string"?Xa(a):a,f=Ln(c.pathname||"/",r);if(f==null)return null;let d=wp(n);Vb(d);let g=null;for(let m=0;g==null&&m<d.length;++m){let h=ex(f);g=Pb(d[m],h,u)}return g}function wp(n,a=[],r=[],u="",c=!1){let f=(d,g,m=c,h)=>{let v={relativePath:h===void 0?d.path||"":h,caseSensitive:d.caseSensitive===!0,childrenIndex:g,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(u)&&m)return;Zt(v.relativePath.startsWith(u),`Absolute route path "${v.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(u.length)}let y=sn([u,v.relativePath]),b=r.concat(v);d.children&&d.children.length>0&&(Zt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),wp(d.children,a,b,y,m)),!(d.path==null&&!d.index)&&a.push({path:y,score:Wb(y,d.index),routesMeta:b})};return n.forEach((d,g)=>{if(d.path===""||!d.path?.includes("?"))f(d,g);else for(let m of Tp(d.path))f(d,g,!0,m)}),a}function Tp(n){let a=n.split("/");if(a.length===0)return[];let[r,...u]=a,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(u.length===0)return c?[f,""]:[f];let d=Tp(u.join("/")),g=[];return g.push(...d.map(m=>m===""?f:[f,m].join("/"))),c&&g.push(...d),g.map(m=>n.startsWith("/")&&m===""?"/":m)}function Vb(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:Ib(a.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var Qb=/^:[\w-]+$/,Zb=3,$b=2,Kb=1,Jb=10,Fb=-2,fg=n=>n==="*";function Wb(n,a){let r=n.split("/"),u=r.length;return r.some(fg)&&(u+=Fb),a&&(u+=$b),r.filter(c=>!fg(c)).reduce((c,f)=>c+(Qb.test(f)?Zb:f===""?Kb:Jb),u)}function Ib(n,a){return n.length===a.length&&n.slice(0,-1).every((u,c)=>u===a[c])?n[n.length-1]-a[a.length-1]:0}function Pb(n,a,r=!1){let{routesMeta:u}=n,c={},f="/",d=[];for(let g=0;g<u.length;++g){let m=u[g],h=g===u.length-1,v=f==="/"?a:a.slice(f.length)||"/",y=Ku({path:m.relativePath,caseSensitive:m.caseSensitive,end:h},v),b=m.route;if(!y&&h&&r&&!u[u.length-1].route.index&&(y=Ku({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!y)return null;Object.assign(c,y.params),d.push({params:c,pathname:sn([f,y.pathname]),pathnameBase:ix(sn([f,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(f=sn([f,y.pathnameBase]))}return d}function Ku(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,u]=tx(n.path,n.caseSensitive,n.end),c=a.match(r);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:u.reduce((h,{paramName:v,isOptional:y},b)=>{if(v==="*"){let D=g[b]||"";d=f.slice(0,f.length-D.length).replace(/(.)\/+$/,"$1")}const T=g[b];return y&&!T?h[v]=void 0:h[v]=(T||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:d,pattern:n}}function tx(n,a=!1,r=!0){dn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let u=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,g,m,h,v)=>{if(u.push({paramName:g,isOptional:m!=null}),m){let y=v.charAt(h+d.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(u.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),u]}function ex(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return dn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Ln(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,u=n.charAt(r);return u&&u!=="/"?null:n.slice(r)||"/"}var nx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function lx(n,a="/"){let{pathname:r,search:u="",hash:c=""}=typeof n=="string"?Xa(n):n,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=dg(r.substring(1),"/"):f=dg(r,a)):f=a,{pathname:f,search:rx(u),hash:ux(c)}}function dg(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function Ys(n,a,r,u){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ax(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Mp(n){let a=ax(n);return a.map((r,u)=>u===a.length-1?r.pathname:r.pathnameBase)}function Mf(n,a,r,u=!1){let c;typeof n=="string"?c=Xa(n):(c={...n},Zt(!c.pathname||!c.pathname.includes("?"),Ys("?","pathname","search",c)),Zt(!c.pathname||!c.pathname.includes("#"),Ys("#","pathname","hash",c)),Zt(!c.search||!c.search.includes("#"),Ys("#","search","hash",c)));let f=n===""||c.pathname==="",d=f?"/":c.pathname,g;if(d==null)g=r;else{let y=a.length-1;if(!u&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),y-=1;c.pathname=b.join("/")}g=y>=0?a[y]:"/"}let m=lx(c,g),h=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(h||v)&&(m.pathname+="/"),m}var sn=n=>n.join("/").replace(/\/\/+/g,"/"),ix=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),rx=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,ux=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,ox=class{constructor(n,a,r,u=!1){this.status=n,this.statusText=a||"",this.internal=u,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function cx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function sx(n){return n.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ep=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ap(n,a){let r=n;if(typeof r!="string"||!nx.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,c=!1;if(Ep)try{let f=new URL(window.location.href),d=r.startsWith("//")?new URL(f.protocol+r):new URL(r),g=Ln(d.pathname,a);d.origin===f.origin&&g!=null?r=g+d.search+d.hash:c=!0}catch{dn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:c,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Cp=["POST","PUT","PATCH","DELETE"];new Set(Cp);var fx=["GET",...Cp];new Set(fx);var Va=R.createContext(null);Va.displayName="DataRouter";var ho=R.createContext(null);ho.displayName="DataRouterState";var dx=R.createContext(!1),Np=R.createContext({isTransitioning:!1});Np.displayName="ViewTransition";var hx=R.createContext(new Map);hx.displayName="Fetchers";var mx=R.createContext(null);mx.displayName="Await";var Je=R.createContext(null);Je.displayName="Navigation";var ir=R.createContext(null);ir.displayName="Location";var hn=R.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var Ef=R.createContext(null);Ef.displayName="RouteError";var zp="REACT_ROUTER_ERROR",gx="REDIRECT",px="ROUTE_ERROR_RESPONSE";function yx(n){if(n.startsWith(`${zp}:${gx}:{`))try{let a=JSON.parse(n.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function vx(n){if(n.startsWith(`${zp}:${px}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new ox(a.status,a.statusText,a.data)}catch{}}function bx(n,{relative:a}={}){Zt(rr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=R.useContext(Je),{hash:c,pathname:f,search:d}=ur(n,{relative:a}),g=f;return r!=="/"&&(g=f==="/"?r:sn([r,f])),u.createHref({pathname:g,search:d,hash:c})}function rr(){return R.useContext(ir)!=null}function yl(){return Zt(rr(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(ir).location}var Rp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dp(n){R.useContext(Je).static||R.useLayoutEffect(n)}function xx(){let{isDataRoute:n}=R.useContext(hn);return n?jx():Sx()}function Sx(){Zt(rr(),"useNavigate() may be used only in the context of a <Router> component.");let n=R.useContext(Va),{basename:a,navigator:r}=R.useContext(Je),{matches:u}=R.useContext(hn),{pathname:c}=yl(),f=JSON.stringify(Mp(u)),d=R.useRef(!1);return Dp(()=>{d.current=!0}),R.useCallback((m,h={})=>{if(dn(d.current,Rp),!d.current)return;if(typeof m=="number"){r.go(m);return}let v=Mf(m,JSON.parse(f),c,h.relative==="path");n==null&&a!=="/"&&(v.pathname=v.pathname==="/"?a:sn([a,v.pathname])),(h.replace?r.replace:r.push)(v,h.state,h)},[a,r,f,c,n])}var _x=R.createContext(null);function wx(n){let a=R.useContext(hn).outlet;return R.useMemo(()=>a&&R.createElement(_x.Provider,{value:n},a),[a,n])}function ur(n,{relative:a}={}){let{matches:r}=R.useContext(hn),{pathname:u}=yl(),c=JSON.stringify(Mp(r));return R.useMemo(()=>Mf(n,JSON.parse(c),u,a==="path"),[n,c,u,a])}function Tx(n,a){return Op(n,a)}function Op(n,a,r){Zt(rr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=R.useContext(Je),{matches:c}=R.useContext(hn),f=c[c.length-1],d=f?f.params:{},g=f?f.pathname:"/",m=f?f.pathnameBase:"/",h=f&&f.route;{let A=h&&h.path||"";jp(g,!h||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${A}">) 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.
10
+
11
+ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let v=yl(),y;if(a){let A=typeof a=="string"?Xa(a):a;Zt(m==="/"||A.pathname?.startsWith(m),`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 "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=v;let b=y.pathname||"/",T=b;if(m!=="/"){let A=m.replace(/^\//,"").split("/");T="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let D=_p(n,{pathname:T});dn(h||D!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),dn(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 j=Nx(D&&D.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:sn([m,u.encodeLocation?u.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:sn([m,u.encodeLocation?u.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,r);return a&&j?R.createElement(ir.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},j):j}function Mx(){let n=Ux(),a=cx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.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:",n),d=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:f},"ErrorBoundary")," or"," ",R.createElement("code",{style:f},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},a),r?R.createElement("pre",{style:c},r):null,d)}var Ex=R.createElement(Mx,null),Up=class extends R.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=vx(n.digest);r&&(n=r)}let a=n!==void 0?R.createElement(hn.Provider,{value:this.props.routeContext},R.createElement(Ef.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?R.createElement(Ax,{error:n},a):a}};Up.contextType=dx;var Bs=new WeakMap;function Ax({children:n,error:a}){let{basename:r}=R.useContext(Je);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let u=yx(a.digest);if(u){let c=Bs.get(a);if(c)throw c;let f=Ap(u.location,r);if(Ep&&!Bs.get(a))if(f.isExternal||u.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:u.replace}));throw Bs.set(a,d),d}return R.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function Cx({routeContext:n,match:a,children:r}){let u=R.useContext(Va);return u&&u.static&&u.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=a.route.id),R.createElement(hn.Provider,{value:n},r)}function Nx(n,a=[],r){let u=r?.state;if(n==null){if(!u)return null;if(u.errors)n=u.matches;else if(a.length===0&&!u.initialized&&u.matches.length>0)n=u.matches;else return null}let c=n,f=u?.errors;if(f!=null){let v=c.findIndex(y=>y.route.id&&f?.[y.route.id]!==void 0);Zt(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,v+1))}let d=!1,g=-1;if(r&&u){d=u.renderFallback;for(let v=0;v<c.length;v++){let y=c[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=v),y.route.id){let{loaderData:b,errors:T}=u,D=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!T||T[y.route.id]===void 0);if(y.route.lazy||D){r.isStatic&&(d=!0),g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}}let m=r?.onError,h=u&&m?(v,y)=>{m(v,{location:u.location,params:u.matches?.[0]?.params??{},unstable_pattern:sx(u.matches),errorInfo:y})}:void 0;return c.reduceRight((v,y,b)=>{let T,D=!1,j=null,A=null;u&&(T=f&&y.route.id?f[y.route.id]:void 0,j=y.route.errorElement||Ex,d&&(g<0&&b===0?(jp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,A=null):g===b&&(D=!0,A=y.route.hydrateFallbackElement||null)));let N=a.concat(c.slice(0,b+1)),Q=()=>{let G;return T?G=j:D?G=A:y.route.Component?G=R.createElement(y.route.Component,null):y.route.element?G=y.route.element:G=v,R.createElement(Cx,{match:y,routeContext:{outlet:v,matches:N,isDataRoute:u!=null},children:G})};return u&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?R.createElement(Up,{location:u.location,revalidation:u.revalidation,component:j,error:T,children:Q(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:h}):Q()},null)}function Af(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zx(n){let a=R.useContext(Va);return Zt(a,Af(n)),a}function Rx(n){let a=R.useContext(ho);return Zt(a,Af(n)),a}function Dx(n){let a=R.useContext(hn);return Zt(a,Af(n)),a}function Cf(n){let a=Dx(n),r=a.matches[a.matches.length-1];return Zt(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Ox(){return Cf("useRouteId")}function Ux(){let n=R.useContext(Ef),a=Rx("useRouteError"),r=Cf("useRouteError");return n!==void 0?n:a.errors?.[r]}function jx(){let{router:n}=zx("useNavigate"),a=Cf("useNavigate"),r=R.useRef(!1);return Dp(()=>{r.current=!0}),R.useCallback(async(c,f={})=>{dn(r.current,Rp),r.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:a,...f}))},[n,a])}var hg={};function jp(n,a,r){!a&&!hg[n]&&(hg[n]=!0,dn(!1,r))}R.memo(kx);function kx({routes:n,future:a,state:r,isStatic:u,onError:c}){return Op(n,void 0,{state:r,isStatic:u,onError:c})}function Hx(n){return wx(n.context)}function Yl(n){Zt(!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 Lx({basename:n="/",children:a=null,location:r,navigationType:u="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){Zt(!rr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),m=R.useMemo(()=>({basename:g,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[g,c,f,d]);typeof r=="string"&&(r=Xa(r));let{pathname:h="/",search:v="",hash:y="",state:b=null,key:T="default",unstable_mask:D}=r,j=R.useMemo(()=>{let A=Ln(h,g);return A==null?null:{location:{pathname:A,search:v,hash:y,state:b,key:T,unstable_mask:D},navigationType:u}},[g,h,v,y,b,T,u,D]);return dn(j!=null,`<Router basename="${g}"> is not able to match the URL "${h}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:R.createElement(Je.Provider,{value:m},R.createElement(ir.Provider,{children:a,value:j}))}function Yx({children:n,location:a}){return Tx(af(n),a)}function af(n,a=[]){let r=[];return R.Children.forEach(n,(u,c)=>{if(!R.isValidElement(u))return;let f=[...a,c];if(u.type===R.Fragment){r.push.apply(r,af(u.props.children,f));return}Zt(u.type===Yl,`[${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>`),Zt(!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=af(u.props.children,f)),r.push(d)}),r}var qu="get",Gu="application/x-www-form-urlencoded";function mo(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Bx(n){return mo(n)&&n.tagName.toLowerCase()==="button"}function qx(n){return mo(n)&&n.tagName.toLowerCase()==="form"}function Gx(n){return mo(n)&&n.tagName.toLowerCase()==="input"}function Xx(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Vx(n,a){return n.button===0&&(!a||a==="_self")&&!Xx(n)}var Nu=null;function Qx(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var Zx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qs(n){return n!=null&&!Zx.has(n)?(dn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gu}"`),null):n}function $x(n,a){let r,u,c,f,d;if(qx(n)){let g=n.getAttribute("action");u=g?Ln(g,a):null,r=n.getAttribute("method")||qu,c=qs(n.getAttribute("enctype"))||Gu,f=new FormData(n)}else if(Bx(n)||Gx(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=n.getAttribute("formaction")||g.getAttribute("action");if(u=m?Ln(m,a):null,r=n.getAttribute("formmethod")||g.getAttribute("method")||qu,c=qs(n.getAttribute("formenctype"))||qs(g.getAttribute("enctype"))||Gu,f=new FormData(g,n),!Qx()){let{name:h,type:v,value:y}=n;if(v==="image"){let b=h?`${h}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else h&&f.append(h,y)}}else{if(mo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=qu,u=null,c=Gu,d=n}return f&&c==="text/plain"&&(d=f,f=void 0),{action:u,method:r.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Nf(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Kx(n,a,r,u){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${u}`:c.pathname=`${c.pathname}.${u}`:c.pathname==="/"?c.pathname=`_root.${u}`:a&&Ln(c.pathname,a)==="/"?c.pathname=`${a.replace(/\/$/,"")}/_root.${u}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${u}`,c}async function Jx(n,a){if(n.id in a)return a[n.id];try{let r=await import(n.module);return a[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Fx(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function Wx(n,a,r){let u=await Promise.all(n.map(async c=>{let f=a.routes[c.route.id];if(f){let d=await Jx(f,r);return d.links?d.links():[]}return[]}));return e2(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 mg(n,a,r,u,c,f){let d=(m,h)=>r[h]?m.route.id!==r[h].route.id:!0,g=(m,h)=>r[h].pathname!==m.pathname||r[h].route.path?.endsWith("*")&&r[h].params["*"]!==m.params["*"];return f==="assets"?a.filter((m,h)=>d(m,h)||g(m,h)):f==="data"?a.filter((m,h)=>{let v=u.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(d(m,h)||g(m,h))return!0;if(m.route.shouldRevalidate){let y=m.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Ix(n,a,{includeHydrateFallback:r}={}){return Px(n.map(u=>{let c=a.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)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function Px(n){return[...new Set(n)]}function t2(n){let a={},r=Object.keys(n).sort();for(let u of r)a[u]=n[u];return a}function e2(n,a){let r=new Set;return new Set(a),n.reduce((u,c)=>{let f=JSON.stringify(t2(c));return r.has(f)||(r.add(f),u.push({key:f,link:c})),u},[])}function kp(){let n=R.useContext(Va);return Nf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function n2(){let n=R.useContext(ho);return Nf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var zf=R.createContext(void 0);zf.displayName="FrameworkContext";function Hp(){let n=R.useContext(zf);return Nf(n,"You must render this element inside a <HydratedRouter> element"),n}function l2(n,a){let r=R.useContext(zf),[u,c]=R.useState(!1),[f,d]=R.useState(!1),{onFocus:g,onBlur:m,onMouseEnter:h,onMouseLeave:v,onTouchStart:y}=a,b=R.useRef(null);R.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let j=N=>{N.forEach(Q=>{d(Q.isIntersecting)})},A=new IntersectionObserver(j,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[n]),R.useEffect(()=>{if(u){let j=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(j)}}},[u]);let T=()=>{c(!0)},D=()=>{c(!1),d(!1)};return r?n!=="intent"?[f,b,{}]:[f,b,{onFocus:Bi(g,T),onBlur:Bi(m,D),onMouseEnter:Bi(h,T),onMouseLeave:Bi(v,D),onTouchStart:Bi(y,T)}]:[!1,b,{}]}function Bi(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function a2({page:n,...a}){let{router:r}=kp(),u=R.useMemo(()=>_p(r.routes,n,r.basename),[r.routes,n,r.basename]);return u?R.createElement(r2,{page:n,matches:u,...a}):null}function i2(n){let{manifest:a,routeModules:r}=Hp(),[u,c]=R.useState([]);return R.useEffect(()=>{let f=!1;return Wx(n,a,r).then(d=>{f||c(d)}),()=>{f=!0}},[n,a,r]),u}function r2({page:n,matches:a,...r}){let u=yl(),{future:c,manifest:f,routeModules:d}=Hp(),{basename:g}=kp(),{loaderData:m,matches:h}=n2(),v=R.useMemo(()=>mg(n,a,h,f,u,"data"),[n,a,h,f,u]),y=R.useMemo(()=>mg(n,a,h,f,u,"assets"),[n,a,h,f,u]),b=R.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let j=new Set,A=!1;if(a.forEach(Q=>{let G=f.routes[Q.route.id];!G||!G.hasLoader||(!v.some(nt=>nt.route.id===Q.route.id)&&Q.route.id in m&&d[Q.route.id]?.shouldRevalidate||G.hasClientLoader?A=!0:j.add(Q.route.id))}),j.size===0)return[];let N=Kx(n,g,c.unstable_trailingSlashAwareDataRequests,"data");return A&&j.size>0&&N.searchParams.set("_routes",a.filter(Q=>j.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[N.pathname+N.search]},[g,c.unstable_trailingSlashAwareDataRequests,m,u,f,v,a,n,d]),T=R.useMemo(()=>Ix(y,f),[y,f]),D=i2(y);return R.createElement(R.Fragment,null,b.map(j=>R.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),T.map(j=>R.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),D.map(({key:j,link:A})=>R.createElement("link",{key:j,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function u2(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var o2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{o2&&(window.__reactRouterVersion="7.13.1")}catch{}function c2({basename:n,children:a,unstable_useTransitions:r,window:u}){let c=R.useRef();c.current==null&&(c.current=Yb({window:u,v5Compat:!0}));let f=c.current,[d,g]=R.useState({action:f.action,location:f.location}),m=R.useCallback(h=>{r===!1?g(h):R.startTransition(()=>g(h))},[r]);return R.useLayoutEffect(()=>f.listen(m),[f,m]),R.createElement(Lx,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:r})}var Lp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yp=R.forwardRef(function({onClick:a,discover:r="render",prefetch:u="none",relative:c,reloadDocument:f,replace:d,unstable_mask:g,state:m,target:h,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:T,...D},j){let{basename:A,navigator:N,unstable_useTransitions:Q}=R.useContext(Je),G=typeof v=="string"&&Lp.test(v),nt=Ap(v,A);v=nt.to;let it=bx(v,{relative:c}),X=yl(),K=null;if(g){let F=Mf(g,[],X.unstable_mask?X.unstable_mask.pathname:"/",!0);A!=="/"&&(F.pathname=F.pathname==="/"?A:sn([A,F.pathname])),K=N.createHref(F)}let[P,dt,Tt]=l2(u,D),st=d2(v,{replace:d,unstable_mask:g,state:m,target:h,preventScrollReset:y,relative:c,viewTransition:b,unstable_defaultShouldRevalidate:T,unstable_useTransitions:Q});function lt(F){a&&a(F),F.defaultPrevented||st(F)}let bt=!(nt.isExternal||f),O=R.createElement("a",{...D,...Tt,href:(bt?K:void 0)||nt.absoluteURL||it,onClick:bt?lt:a,ref:u2(j,dt),target:h,"data-discover":!G&&r==="render"?"true":void 0});return P&&!G?R.createElement(R.Fragment,null,O,R.createElement(a2,{page:it})):O});Yp.displayName="Link";var Bp=R.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:u="",end:c=!1,style:f,to:d,viewTransition:g,children:m,...h},v){let y=ur(d,{relative:h.relative}),b=yl(),T=R.useContext(ho),{navigator:D,basename:j}=R.useContext(Je),A=T!=null&&y2(y)&&g===!0,N=D.encodeLocation?D.encodeLocation(y).pathname:y.pathname,Q=b.pathname,G=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;r||(Q=Q.toLowerCase(),G=G?G.toLowerCase():null,N=N.toLowerCase()),G&&j&&(G=Ln(G,j)||G);const nt=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let it=Q===N||!c&&Q.startsWith(N)&&Q.charAt(nt)==="/",X=G!=null&&(G===N||!c&&G.startsWith(N)&&G.charAt(N.length)==="/"),K={isActive:it,isPending:X,isTransitioning:A},P=it?a:void 0,dt;typeof u=="function"?dt=u(K):dt=[u,it?"active":null,X?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let Tt=typeof f=="function"?f(K):f;return R.createElement(Yp,{...h,"aria-current":P,className:dt,ref:v,style:Tt,to:d,viewTransition:g},typeof m=="function"?m(K):m)});Bp.displayName="NavLink";var s2=R.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:u,replace:c,state:f,method:d=qu,action:g,onSubmit:m,relative:h,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,...T},D)=>{let{unstable_useTransitions:j}=R.useContext(Je),A=g2(),N=p2(g,{relative:h}),Q=d.toLowerCase()==="get"?"get":"post",G=typeof g=="string"&&Lp.test(g),nt=it=>{if(m&&m(it),it.defaultPrevented)return;it.preventDefault();let X=it.nativeEvent.submitter,K=X?.getAttribute("formmethod")||d,P=()=>A(X||it.currentTarget,{fetcherKey:a,method:K,navigate:r,replace:c,state:f,relative:h,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});j&&r!==!1?R.startTransition(()=>P()):P()};return R.createElement("form",{ref:D,method:Q,action:N,onSubmit:u?m:nt,...T,"data-discover":!G&&n==="render"?"true":void 0})});s2.displayName="Form";function f2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qp(n){let a=R.useContext(Va);return Zt(a,f2(n)),a}function d2(n,{target:a,replace:r,unstable_mask:u,state:c,preventScrollReset:f,relative:d,viewTransition:g,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h}={}){let v=xx(),y=yl(),b=ur(n,{relative:d});return R.useCallback(T=>{if(Vx(T,a)){T.preventDefault();let D=r!==void 0?r:Ii(y)===Ii(b),j=()=>v(n,{replace:D,unstable_mask:u,state:c,preventScrollReset:f,relative:d,viewTransition:g,unstable_defaultShouldRevalidate:m});h?R.startTransition(()=>j()):j()}},[y,v,b,r,u,c,a,n,f,d,g,m,h])}var h2=0,m2=()=>`__${String(++h2)}__`;function g2(){let{router:n}=qp("useSubmit"),{basename:a}=R.useContext(Je),r=Ox(),u=n.fetch,c=n.navigate;return R.useCallback(async(f,d={})=>{let{action:g,method:m,encType:h,formData:v,body:y}=$x(f,a);if(d.navigate===!1){let b=d.fetcherKey||m2();await u(b,r,d.action||g,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:y,formMethod:d.method||m,formEncType:d.encType||h,flushSync:d.flushSync})}else await c(d.action||g,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:y,formMethod:d.method||m,formEncType:d.encType||h,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[u,c,a,r])}function p2(n,{relative:a}={}){let{basename:r}=R.useContext(Je),u=R.useContext(hn);Zt(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),f={...ur(n||".",{relative:a})},d=yl();if(n==null){f.search=d.search;let g=new URLSearchParams(f.search),m=g.getAll("index");if(m.some(v=>v==="")){g.delete("index"),m.filter(y=>y).forEach(y=>g.append("index",y));let v=g.toString();f.search=v?`?${v}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:sn([r,f.pathname])),Ii(f)}function y2(n,{relative:a}={}){let r=R.useContext(Np);Zt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=qp("useViewTransitionState"),c=ur(n,{relative:a});if(!r.isTransitioning)return!1;let f=Ln(r.currentLocation.pathname,u)||r.currentLocation.pathname,d=Ln(r.nextLocation.pathname,u)||r.nextLocation.pathname;return Ku(c.pathname,d)!=null||Ku(c.pathname,f)!=null}const Gp=(...n)=>n.filter((a,r,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===r).join(" ").trim();const v2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const b2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,u)=>u?u.toUpperCase():r.toLowerCase());const gg=n=>{const a=b2(n);return a.charAt(0).toUpperCase()+a.slice(1)};var x2={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"};const S2=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};const _2=R.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:d,...g},m)=>R.createElement("svg",{ref:m,...x2,width:a,height:a,stroke:n,strokeWidth:u?Number(r)*24/Number(a):r,className:Gp("lucide",c),...!f&&!S2(g)&&{"aria-hidden":"true"},...g},[...d.map(([h,v])=>R.createElement(h,v)),...Array.isArray(f)?f:[f]]));const ge=(n,a)=>{const r=R.forwardRef(({className:u,...c},f)=>R.createElement(_2,{ref:f,iconNode:a,className:Gp(`lucide-${v2(gg(n))}`,`lucide-${n}`,u),...c}));return r.displayName=gg(n),r};const w2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],T2=ge("arrow-left",w2);const M2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],E2=ge("arrow-right",M2);const A2=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Xp=ge("boxes",A2);const C2=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],N2=ge("brain",C2);const z2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],R2=ge("chevron-down",z2);const D2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],O2=ge("chevron-up",D2);const U2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Vp=ge("clock",U2);const j2=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],k2=ge("folder-open",j2);const H2=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],L2=ge("git-branch",H2);const Y2=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],B2=ge("layers",Y2);const q2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],G2=ge("layout-dashboard",q2);const X2=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],V2=ge("menu",X2);const Q2=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Z2=ge("moon",Q2);const $2=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Qp=ge("search",$2);const K2=[["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"}]],J2=ge("sun",K2);const F2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],W2=ge("x",F2);function I2(){const[n,a]=R.useState(()=>typeof window>"u"?"dark":localStorage.getItem("causantic-theme")??"dark");R.useEffect(()=>{const u=document.documentElement;n==="light"?u.classList.add("light"):u.classList.remove("light"),localStorage.setItem("causantic-theme",n)},[n]);const r=R.useCallback(()=>{a(u=>u==="dark"?"light":"dark")},[]);return{theme:n,toggle:r}}function P2(){const{theme:n,toggle:a}=I2();return S.jsx("button",{onClick:a,className:"rounded-md p-2 hover:bg-muted transition-colors","aria-label":"Toggle theme",children:n==="dark"?S.jsx(J2,{className:"h-5 w-5"}):S.jsx(Z2,{className:"h-5 w-5"})})}function Zp(n){var a,r,u="";if(typeof n=="string"||typeof n=="number")u+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(a=0;a<c;a++)n[a]&&(r=Zp(n[a]))&&(u&&(u+=" "),u+=r)}else for(r in n)n[r]&&(u&&(u+=" "),u+=r);return u}function $p(){for(var n,a,r=0,u="",c=arguments.length;r<c;r++)(n=arguments[r])&&(a=Zp(n))&&(u&&(u+=" "),u+=a);return u}const tS=(n,a)=>{const r=new Array(n.length+a.length);for(let u=0;u<n.length;u++)r[u]=n[u];for(let u=0;u<a.length;u++)r[n.length+u]=a[u];return r},eS=(n,a)=>({classGroupId:n,validator:a}),Kp=(n=new Map,a=null,r)=>({nextPart:n,validators:a,classGroupId:r}),Ju="-",pg=[],nS="arbitrary..",lS=n=>{const a=iS(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:u}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return aS(d);const g=d.split(Ju),m=g[0]===""&&g.length>1?1:0;return Jp(g,m,a)},getConflictingClassGroupIds:(d,g)=>{if(g){const m=u[d],h=r[d];return m?h?tS(h,m):m:h||pg}return r[d]||pg}}},Jp=(n,a,r)=>{if(n.length-a===0)return r.classGroupId;const c=n[a],f=r.nextPart.get(c);if(f){const h=Jp(n,a+1,f);if(h)return h}const d=r.validators;if(d===null)return;const g=a===0?n.join(Ju):n.slice(a).join(Ju),m=d.length;for(let h=0;h<m;h++){const v=d[h];if(v.validator(g))return v.classGroupId}},aS=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=n.slice(1,-1),r=a.indexOf(":"),u=a.slice(0,r);return u?nS+u:void 0})(),iS=n=>{const{theme:a,classGroups:r}=n;return rS(r,a)},rS=(n,a)=>{const r=Kp();for(const u in n){const c=n[u];Rf(c,r,u,a)}return r},Rf=(n,a,r,u)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];uS(d,a,r,u)}},uS=(n,a,r,u)=>{if(typeof n=="string"){oS(n,a,r);return}if(typeof n=="function"){cS(n,a,r,u);return}sS(n,a,r,u)},oS=(n,a,r)=>{const u=n===""?a:Fp(a,n);u.classGroupId=r},cS=(n,a,r,u)=>{if(fS(n)){Rf(n(u),a,r,u);return}a.validators===null&&(a.validators=[]),a.validators.push(eS(r,n))},sS=(n,a,r,u)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[g,m]=c[d];Rf(m,Fp(a,g),r,u)}},Fp=(n,a)=>{let r=n;const u=a.split(Ju),c=u.length;for(let f=0;f<c;f++){const d=u[f];let g=r.nextPart.get(d);g||(g=Kp(),r.nextPart.set(d,g)),r=g}return r},fS=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,dS=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=Object.create(null),u=Object.create(null);const c=(f,d)=>{r[f]=d,a++,a>n&&(a=0,u=r,r=Object.create(null))};return{get(f){let d=r[f];if(d!==void 0)return d;if((d=u[f])!==void 0)return c(f,d),d},set(f,d){f in r?r[f]=d:c(f,d)}}},rf="!",yg=":",hS=[],vg=(n,a,r,u,c)=>({modifiers:n,hasImportantModifier:a,baseClassName:r,maybePostfixModifierPosition:u,isExternal:c}),mS=n=>{const{prefix:a,experimentalParseClassName:r}=n;let u=c=>{const f=[];let d=0,g=0,m=0,h;const v=c.length;for(let j=0;j<v;j++){const A=c[j];if(d===0&&g===0){if(A===yg){f.push(c.slice(m,j)),m=j+1;continue}if(A==="/"){h=j;continue}}A==="["?d++:A==="]"?d--:A==="("?g++:A===")"&&g--}const y=f.length===0?c:c.slice(m);let b=y,T=!1;y.endsWith(rf)?(b=y.slice(0,-1),T=!0):y.startsWith(rf)&&(b=y.slice(1),T=!0);const D=h&&h>m?h-m:void 0;return vg(f,T,b,D)};if(a){const c=a+yg,f=u;u=d=>d.startsWith(c)?f(d.slice(c.length)):vg(hS,!1,d,void 0,!0)}if(r){const c=u;u=f=>r({className:f,parseClassName:c})}return u},gS=n=>{const a=new Map;return n.orderSensitiveModifiers.forEach((r,u)=>{a.set(r,1e6+u)}),r=>{const u=[];let c=[];for(let f=0;f<r.length;f++){const d=r[f],g=d[0]==="[",m=a.has(d);g||m?(c.length>0&&(c.sort(),u.push(...c),c=[]),u.push(d)):c.push(d)}return c.length>0&&(c.sort(),u.push(...c)),u}},pS=n=>({cache:dS(n.cacheSize),parseClassName:mS(n),sortModifiers:gS(n),...lS(n)}),yS=/\s+/,vS=(n,a)=>{const{parseClassName:r,getClassGroupId:u,getConflictingClassGroupIds:c,sortModifiers:f}=a,d=[],g=n.trim().split(yS);let m="";for(let h=g.length-1;h>=0;h-=1){const v=g[h],{isExternal:y,modifiers:b,hasImportantModifier:T,baseClassName:D,maybePostfixModifierPosition:j}=r(v);if(y){m=v+(m.length>0?" "+m:m);continue}let A=!!j,N=u(A?D.substring(0,j):D);if(!N){if(!A){m=v+(m.length>0?" "+m:m);continue}if(N=u(D),!N){m=v+(m.length>0?" "+m:m);continue}A=!1}const Q=b.length===0?"":b.length===1?b[0]:f(b).join(":"),G=T?Q+rf:Q,nt=G+N;if(d.indexOf(nt)>-1)continue;d.push(nt);const it=c(N,A);for(let X=0;X<it.length;++X){const K=it[X];d.push(G+K)}m=v+(m.length>0?" "+m:m)}return m},bS=(...n)=>{let a=0,r,u,c="";for(;a<n.length;)(r=n[a++])&&(u=Wp(r))&&(c&&(c+=" "),c+=u);return c},Wp=n=>{if(typeof n=="string")return n;let a,r="";for(let u=0;u<n.length;u++)n[u]&&(a=Wp(n[u]))&&(r&&(r+=" "),r+=a);return r},xS=(n,...a)=>{let r,u,c,f;const d=m=>{const h=a.reduce((v,y)=>y(v),n());return r=pS(h),u=r.cache.get,c=r.cache.set,f=g,g(m)},g=m=>{const h=u(m);if(h)return h;const v=vS(m,r);return c(m,v),v};return f=d,(...m)=>f(bS(...m))},SS=[],le=n=>{const a=r=>r[n]||SS;return a.isThemeGetter=!0,a},Ip=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_S=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TS=/\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$/,MS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ES=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gl=n=>_S.test(n),wt=n=>!!n&&!Number.isNaN(Number(n)),pl=n=>!!n&&Number.isInteger(Number(n)),Gs=n=>n.endsWith("%")&&wt(n.slice(0,-1)),On=n=>wS.test(n),ty=()=>!0,CS=n=>TS.test(n)&&!MS.test(n),Df=()=>!1,NS=n=>ES.test(n),zS=n=>AS.test(n),RS=n=>!ot(n)&&!ct(n),DS=n=>vl(n,ly,Df),ot=n=>Ip.test(n),Hl=n=>vl(n,ay,CS),bg=n=>vl(n,BS,wt),OS=n=>vl(n,ry,ty),US=n=>vl(n,iy,Df),xg=n=>vl(n,ey,Df),jS=n=>vl(n,ny,zS),zu=n=>vl(n,uy,NS),ct=n=>Pp.test(n),qi=n=>Zl(n,ay),kS=n=>Zl(n,iy),Sg=n=>Zl(n,ey),HS=n=>Zl(n,ly),LS=n=>Zl(n,ny),Ru=n=>Zl(n,uy,!0),YS=n=>Zl(n,ry,!0),vl=(n,a,r)=>{const u=Ip.exec(n);return u?u[1]?a(u[1]):r(u[2]):!1},Zl=(n,a,r=!1)=>{const u=Pp.exec(n);return u?u[1]?a(u[1]):r:!1},ey=n=>n==="position"||n==="percentage",ny=n=>n==="image"||n==="url",ly=n=>n==="length"||n==="size"||n==="bg-size",ay=n=>n==="length",BS=n=>n==="number",iy=n=>n==="family-name",ry=n=>n==="number"||n==="weight",uy=n=>n==="shadow",qS=()=>{const n=le("color"),a=le("font"),r=le("text"),u=le("font-weight"),c=le("tracking"),f=le("leading"),d=le("breakpoint"),g=le("container"),m=le("spacing"),h=le("radius"),v=le("shadow"),y=le("inset-shadow"),b=le("text-shadow"),T=le("drop-shadow"),D=le("blur"),j=le("perspective"),A=le("aspect"),N=le("ease"),Q=le("animate"),G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],nt=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],it=()=>[...nt(),ct,ot],X=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],P=()=>[ct,ot,m],dt=()=>[gl,"full","auto",...P()],Tt=()=>[pl,"none","subgrid",ct,ot],st=()=>["auto",{span:["full",pl,ct,ot]},pl,ct,ot],lt=()=>[pl,"auto",ct,ot],bt=()=>["auto","min","max","fr",ct,ot],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],w=()=>["auto",...P()],Y=()=>[gl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],tt=()=>[gl,"screen","full","dvw","lvw","svw","min","max","fit",...P()],rt=()=>[gl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],H=()=>[n,ct,ot],_=()=>[...nt(),Sg,xg,{position:[ct,ot]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",HS,DS,{size:[ct,ot]}],V=()=>[Gs,qi,Hl],et=()=>["","none","full",h,ct,ot],at=()=>["",wt,qi,Hl],mt=()=>["solid","dashed","dotted","double"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[wt,Gs,Sg,xg],pt=()=>["","none",D,ct,ot],yt=()=>["none",wt,ct,ot],W=()=>["none",wt,ct,ot],Bt=()=>[wt,ct,ot],xt=()=>[gl,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[On],breakpoint:[On],color:[ty],container:[On],"drop-shadow":[On],ease:["in","out","in-out"],font:[RS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[On],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[On],shadow:[On],spacing:["px",wt],text:[On],"text-shadow":[On],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gl,ot,ct,A]}],container:["container"],columns:[{columns:[wt,ot,ct,g]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:it()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:dt()}],"inset-x":[{"inset-x":dt()}],"inset-y":[{"inset-y":dt()}],start:[{"inset-s":dt(),start:dt()}],end:[{"inset-e":dt(),end:dt()}],"inset-bs":[{"inset-bs":dt()}],"inset-be":[{"inset-be":dt()}],top:[{top:dt()}],right:[{right:dt()}],bottom:[{bottom:dt()}],left:[{left:dt()}],visibility:["visible","invisible","collapse"],z:[{z:[pl,"auto",ct,ot]}],basis:[{basis:[gl,"full","auto",g,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[wt,gl,"auto","initial","none",ot]}],grow:[{grow:["",wt,ct,ot]}],shrink:[{shrink:["",wt,ct,ot]}],order:[{order:[pl,"first","last","none",ct,ot]}],"grid-cols":[{"grid-cols":Tt()}],"col-start-end":[{col:st()}],"col-start":[{"col-start":lt()}],"col-end":[{"col-end":lt()}],"grid-rows":[{"grid-rows":Tt()}],"row-start-end":[{row:st()}],"row-start":[{"row-start":lt()}],"row-end":[{"row-end":lt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":bt()}],"auto-rows":[{"auto-rows":bt()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mbs:[{mbs:w()}],mbe:[{mbe:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...tt()]}],"min-inline-size":[{"min-inline":["auto",...tt()]}],"max-inline-size":[{"max-inline":["none",...tt()]}],"block-size":[{block:["auto",...rt()]}],"min-block-size":[{"min-block":["auto",...rt()]}],"max-block-size":[{"max-block":["none",...rt()]}],w:[{w:[g,"screen",...Y()]}],"min-w":[{"min-w":[g,"screen","none",...Y()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[d]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",r,qi,Hl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,YS,OS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gs,ot]}],"font-family":[{font:[kS,US,a]}],"font-features":[{"font-features":[ot]}],"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:[c,ct,ot]}],"line-clamp":[{"line-clamp":[wt,"none",ct,bg]}],leading:[{leading:[f,...P()]}],"list-image":[{"list-image":["none",ct,ot]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ct,ot]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:[wt,"from-font","auto",ct,Hl]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[wt,"auto",ct,ot]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ct,ot]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ct,ot]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pl,ct,ot],radial:["",ct,ot],conic:[pl,ct,ot]},LS,jS]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:et()}],"rounded-s":[{"rounded-s":et()}],"rounded-e":[{"rounded-e":et()}],"rounded-t":[{"rounded-t":et()}],"rounded-r":[{"rounded-r":et()}],"rounded-b":[{"rounded-b":et()}],"rounded-l":[{"rounded-l":et()}],"rounded-ss":[{"rounded-ss":et()}],"rounded-se":[{"rounded-se":et()}],"rounded-ee":[{"rounded-ee":et()}],"rounded-es":[{"rounded-es":et()}],"rounded-tl":[{"rounded-tl":et()}],"rounded-tr":[{"rounded-tr":et()}],"rounded-br":[{"rounded-br":et()}],"rounded-bl":[{"rounded-bl":et()}],"border-w":[{border:at()}],"border-w-x":[{"border-x":at()}],"border-w-y":[{"border-y":at()}],"border-w-s":[{"border-s":at()}],"border-w-e":[{"border-e":at()}],"border-w-bs":[{"border-bs":at()}],"border-w-be":[{"border-be":at()}],"border-w-t":[{"border-t":at()}],"border-w-r":[{"border-r":at()}],"border-w-b":[{"border-b":at()}],"border-w-l":[{"border-l":at()}],"divide-x":[{"divide-x":at()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":at()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...mt(),"hidden","none"]}],"divide-style":[{divide:[...mt(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-bs":[{"border-bs":H()}],"border-color-be":[{"border-be":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...mt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[wt,ct,ot]}],"outline-w":[{outline:["",wt,qi,Hl]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",v,Ru,zu]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",y,Ru,zu]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:at()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[wt,Hl]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":at()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",b,Ru,zu]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[wt,ct,ot]}],"mix-blend":[{"mix-blend":[...zt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":zt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[wt]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[ct,ot]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":nt()}],"mask-image-conic-pos":[{"mask-conic":[wt]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ct,ot]}],filter:[{filter:["","none",ct,ot]}],blur:[{blur:pt()}],brightness:[{brightness:[wt,ct,ot]}],contrast:[{contrast:[wt,ct,ot]}],"drop-shadow":[{"drop-shadow":["","none",T,Ru,zu]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",wt,ct,ot]}],"hue-rotate":[{"hue-rotate":[wt,ct,ot]}],invert:[{invert:["",wt,ct,ot]}],saturate:[{saturate:[wt,ct,ot]}],sepia:[{sepia:["",wt,ct,ot]}],"backdrop-filter":[{"backdrop-filter":["","none",ct,ot]}],"backdrop-blur":[{"backdrop-blur":pt()}],"backdrop-brightness":[{"backdrop-brightness":[wt,ct,ot]}],"backdrop-contrast":[{"backdrop-contrast":[wt,ct,ot]}],"backdrop-grayscale":[{"backdrop-grayscale":["",wt,ct,ot]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[wt,ct,ot]}],"backdrop-invert":[{"backdrop-invert":["",wt,ct,ot]}],"backdrop-opacity":[{"backdrop-opacity":[wt,ct,ot]}],"backdrop-saturate":[{"backdrop-saturate":[wt,ct,ot]}],"backdrop-sepia":[{"backdrop-sepia":["",wt,ct,ot]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ct,ot]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[wt,"initial",ct,ot]}],ease:[{ease:["linear","initial",N,ct,ot]}],delay:[{delay:[wt,ct,ot]}],animate:[{animate:["none",Q,ct,ot]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,ct,ot]}],"perspective-origin":[{"perspective-origin":it()}],rotate:[{rotate:yt()}],"rotate-x":[{"rotate-x":yt()}],"rotate-y":[{"rotate-y":yt()}],"rotate-z":[{"rotate-z":yt()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:Bt()}],"skew-x":[{"skew-x":Bt()}],"skew-y":[{"skew-y":Bt()}],transform:[{transform:[ct,ot,"","none","gpu","cpu"]}],"transform-origin":[{origin:it()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ct,ot]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",ct,ot]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[wt,qi,Hl,bg]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},GS=xS(qS);function nn(...n){return GS($p(n))}const XS=[{to:"/",icon:G2,label:"Overview"},{to:"/timeline",icon:Vp,label:"Timeline"},{to:"/clusters",icon:Xp,label:"Clusters"},{to:"/search",icon:Qp,label:"Search"},{to:"/projects",icon:k2,label:"Projects"}];function VS(){const[n,a]=R.useState(!1);return S.jsxs("div",{className:"flex h-screen overflow-hidden",children:[n&&S.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 lg:hidden",onClick:()=>a(!1)}),S.jsxs("aside",{className:nn("fixed inset-y-0 left-0 z-50 flex w-64 flex-col border-r border-border bg-card transition-transform lg:static lg:translate-x-0",n?"translate-x-0":"-translate-x-full"),children:[S.jsxs("div",{className:"flex h-16 items-center gap-2 border-b border-border px-6",children:[S.jsx(N2,{className:"h-6 w-6 text-accent"}),S.jsx("span",{className:"text-lg font-bold",children:"Causantic"}),S.jsx("span",{className:"text-sm text-muted-foreground",children:"Dashboard"})]}),S.jsx("nav",{className:"flex-1 space-y-1 p-4",children:XS.map(r=>S.jsxs(Bp,{to:r.to,end:r.to==="/",onClick:()=>a(!1),className:({isActive:u})=>nn("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",u?"bg-accent/10 text-accent":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[S.jsx(r.icon,{className:"h-4 w-4"}),r.label]},r.to))}),S.jsx("div",{className:"border-t border-border p-4 text-xs text-muted-foreground",children:"Causantic"})]}),S.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[S.jsxs("header",{className:"flex h-16 items-center justify-between border-b border-border px-6",children:[S.jsx("button",{className:"rounded-md p-2 hover:bg-muted lg:hidden",onClick:()=>a(!0),children:S.jsx(V2,{className:"h-5 w-5"})}),S.jsx("div",{className:"flex-1"}),S.jsx(P2,{})]}),S.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:S.jsx(Hx,{})})]})]})}const _g=new Map,QS=3e4;function en(n){const[a,r]=R.useState(null),[u,c]=R.useState(!0),[f,d]=R.useState(null),g=R.useRef(null),m=R.useCallback(()=>{if(!n){c(!1);return}const h=_g.get(n);if(h&&Date.now()-h.ts<QS){r(h.data),c(!1);return}g.current?.abort();const v=new AbortController;g.current=v,c(!0),d(null),fetch(n,{signal:v.signal}).then(y=>{if(!y.ok)throw new Error(`HTTP ${y.status}`);return y.json()}).then(y=>{_g.set(n,{data:y,ts:Date.now()}),r(y),c(!1)}).catch(y=>{y.name!=="AbortError"&&(d(y.message),c(!1))})},[n]);return R.useEffect(()=>(m(),()=>g.current?.abort()),[m]),{data:a,loading:u,error:f,refetch:m}}function or({className:n}){return S.jsx("div",{className:nn("flex items-center justify-center p-8",n),children:S.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted border-t-accent"})})}function Pi({className:n,...a}){return S.jsx("div",{className:nn("rounded-lg border border-border bg-card text-card-foreground shadow-sm",n),...a})}function uf({className:n,...a}){return S.jsx("div",{className:nn("flex flex-col space-y-1.5 p-6",n),...a})}function of({className:n,...a}){return S.jsx("h3",{className:nn("text-lg font-semibold leading-none tracking-tight",n),...a})}function ZS({className:n,...a}){return S.jsx("p",{className:nn("text-sm text-muted-foreground",n),...a})}function tr({className:n,...a}){return S.jsx("div",{className:nn("p-6 pt-0",n),...a})}function Du({label:n,value:a,icon:r}){const[u,c]=R.useState(0);return R.useEffect(()=>{if(a===0)return;const f=600,d=30,g=a/d;let m=0;const h=setInterval(()=>{m+=g,m>=a?(c(a),clearInterval(h)):c(Math.floor(m))},f/d);return()=>clearInterval(h)},[a]),S.jsx(Pi,{children:S.jsxs(tr,{className:"flex items-center gap-4 p-6",children:[S.jsx("div",{className:"rounded-lg bg-accent/10 p-3 text-accent",children:r}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm text-muted-foreground",children:n}),S.jsx("p",{className:"text-3xl font-bold tabular-nums",children:u.toLocaleString()})]})]})})}function Xu(n,a){return n==null||a==null?NaN:n<a?-1:n>a?1:n>=a?0:NaN}function $S(n,a){return n==null||a==null?NaN:a<n?-1:a>n?1:a>=n?0:NaN}function Of(n){let a,r,u;n.length!==2?(a=Xu,r=(g,m)=>Xu(n(g),m),u=(g,m)=>n(g)-m):(a=n===Xu||n===$S?n:KS,r=n,u=n);function c(g,m,h=0,v=g.length){if(h<v){if(a(m,m)!==0)return v;do{const y=h+v>>>1;r(g[y],m)<0?h=y+1:v=y}while(h<v)}return h}function f(g,m,h=0,v=g.length){if(h<v){if(a(m,m)!==0)return v;do{const y=h+v>>>1;r(g[y],m)<=0?h=y+1:v=y}while(h<v)}return h}function d(g,m,h=0,v=g.length){const y=c(g,m,h,v-1);return y>h&&u(g[y-1],m)>-u(g[y],m)?y-1:y}return{left:c,center:d,right:f}}function KS(){return 0}function JS(n){return n===null?NaN:+n}const FS=Of(Xu),WS=FS.right;Of(JS).center;function IS(n,a){let r,u;if(a===void 0)for(const c of n)c!=null&&(r===void 0?c>=c&&(r=u=c):(r>c&&(r=c),u<c&&(u=c)));else{let c=-1;for(let f of n)(f=a(f,++c,n))!=null&&(r===void 0?f>=f&&(r=u=f):(r>f&&(r=f),u<f&&(u=f)))}return[r,u]}class wg extends Map{constructor(a,r=e_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),a!=null)for(const[u,c]of a)this.set(u,c)}get(a){return super.get(Tg(this,a))}has(a){return super.has(Tg(this,a))}set(a,r){return super.set(PS(this,a),r)}delete(a){return super.delete(t_(this,a))}}function Tg({_intern:n,_key:a},r){const u=a(r);return n.has(u)?n.get(u):r}function PS({_intern:n,_key:a},r){const u=a(r);return n.has(u)?n.get(u):(n.set(u,r),r)}function t_({_intern:n,_key:a},r){const u=a(r);return n.has(u)&&(r=n.get(u),n.delete(u)),r}function e_(n){return n!==null&&typeof n=="object"?n.valueOf():n}const n_=Math.sqrt(50),l_=Math.sqrt(10),a_=Math.sqrt(2);function Fu(n,a,r){const u=(a-n)/Math.max(0,r),c=Math.floor(Math.log10(u)),f=u/Math.pow(10,c),d=f>=n_?10:f>=l_?5:f>=a_?2:1;let g,m,h;return c<0?(h=Math.pow(10,-c)/d,g=Math.round(n*h),m=Math.round(a*h),g/h<n&&++g,m/h>a&&--m,h=-h):(h=Math.pow(10,c)*d,g=Math.round(n/h),m=Math.round(a/h),g*h<n&&++g,m*h>a&&--m),m<g&&.5<=r&&r<2?Fu(n,a,r*2):[g,m,h]}function i_(n,a,r){if(a=+a,n=+n,r=+r,!(r>0))return[];if(n===a)return[n];const u=a<n,[c,f,d]=u?Fu(a,n,r):Fu(n,a,r);if(!(f>=c))return[];const g=f-c+1,m=new Array(g);if(u)if(d<0)for(let h=0;h<g;++h)m[h]=(f-h)/-d;else for(let h=0;h<g;++h)m[h]=(f-h)*d;else if(d<0)for(let h=0;h<g;++h)m[h]=(c+h)/-d;else for(let h=0;h<g;++h)m[h]=(c+h)*d;return m}function cf(n,a,r){return a=+a,n=+n,r=+r,Fu(n,a,r)[2]}function sf(n,a,r){a=+a,n=+n,r=+r;const u=a<n,c=u?cf(a,n,r):cf(n,a,r);return(u?-1:1)*(c<0?1/-c:c)}function r_(n,a){let r;if(a===void 0)for(const u of n)u!=null&&(r<u||r===void 0&&u>=u)&&(r=u);else{let u=-1;for(let c of n)(c=a(c,++u,n))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function u_(n,a,r){n=+n,a=+a,r=(c=arguments.length)<2?(a=n,n=0,1):c<3?1:+r;for(var u=-1,c=Math.max(0,Math.ceil((a-n)/r))|0,f=new Array(c);++u<c;)f[u]=n+u*r;return f}function o_(n){return n}var Xs=1,Vs=2,ff=3,Ki=4,Mg=1e-6;function c_(n){return"translate("+n+",0)"}function s_(n){return"translate(0,"+n+")"}function f_(n){return a=>+n(a)}function d_(n,a){return a=Math.max(0,n.bandwidth()-a*2)/2,n.round()&&(a=Math.round(a)),r=>+n(r)+a}function h_(){return!this.__axis}function oy(n,a){var r=[],u=null,c=null,f=6,d=6,g=3,m=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=n===Xs||n===Ki?-1:1,v=n===Ki||n===Vs?"x":"y",y=n===Xs||n===ff?c_:s_;function b(T){var D=u??(a.ticks?a.ticks.apply(a,r):a.domain()),j=c??(a.tickFormat?a.tickFormat.apply(a,r):o_),A=Math.max(f,0)+g,N=a.range(),Q=+N[0]+m,G=+N[N.length-1]+m,nt=(a.bandwidth?d_:f_)(a.copy(),m),it=T.selection?T.selection():T,X=it.selectAll(".domain").data([null]),K=it.selectAll(".tick").data(D,a).order(),P=K.exit(),dt=K.enter().append("g").attr("class","tick"),Tt=K.select("line"),st=K.select("text");X=X.merge(X.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),K=K.merge(dt),Tt=Tt.merge(dt.append("line").attr("stroke","currentColor").attr(v+"2",h*f)),st=st.merge(dt.append("text").attr("fill","currentColor").attr(v,h*A).attr("dy",n===Xs?"0em":n===ff?"0.71em":"0.32em")),T!==it&&(X=X.transition(T),K=K.transition(T),Tt=Tt.transition(T),st=st.transition(T),P=P.transition(T).attr("opacity",Mg).attr("transform",function(lt){return isFinite(lt=nt(lt))?y(lt+m):this.getAttribute("transform")}),dt.attr("opacity",Mg).attr("transform",function(lt){var bt=this.parentNode.__axis;return y((bt&&isFinite(bt=bt(lt))?bt:nt(lt))+m)})),P.remove(),X.attr("d",n===Ki||n===Vs?d?"M"+h*d+","+Q+"H"+m+"V"+G+"H"+h*d:"M"+m+","+Q+"V"+G:d?"M"+Q+","+h*d+"V"+m+"H"+G+"V"+h*d:"M"+Q+","+m+"H"+G),K.attr("opacity",1).attr("transform",function(lt){return y(nt(lt)+m)}),Tt.attr(v+"2",h*f),st.attr(v,h*A).text(j),it.filter(h_).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===Vs?"start":n===Ki?"end":"middle"),it.each(function(){this.__axis=nt})}return b.scale=function(T){return arguments.length?(a=T,b):a},b.ticks=function(){return r=Array.from(arguments),b},b.tickArguments=function(T){return arguments.length?(r=T==null?[]:Array.from(T),b):r.slice()},b.tickValues=function(T){return arguments.length?(u=T==null?null:Array.from(T),b):u&&u.slice()},b.tickFormat=function(T){return arguments.length?(c=T,b):c},b.tickSize=function(T){return arguments.length?(f=d=+T,b):f},b.tickSizeInner=function(T){return arguments.length?(f=+T,b):f},b.tickSizeOuter=function(T){return arguments.length?(d=+T,b):d},b.tickPadding=function(T){return arguments.length?(g=+T,b):g},b.offset=function(T){return arguments.length?(m=+T,b):m},b}function er(n){return oy(ff,n)}function cy(n){return oy(Ki,n)}var m_={value:()=>{}};function Uf(){for(var n=0,a=arguments.length,r={},u;n<a;++n){if(!(u=arguments[n]+"")||u in r||/[\s.]/.test(u))throw new Error("illegal type: "+u);r[u]=[]}return new Vu(r)}function Vu(n){this._=n}function g_(n,a){return n.trim().split(/^|\s+/).map(function(r){var u="",c=r.indexOf(".");if(c>=0&&(u=r.slice(c+1),r=r.slice(0,c)),r&&!a.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:u}})}Vu.prototype=Uf.prototype={constructor:Vu,on:function(n,a){var r=this._,u=g_(n+"",r),c,f=-1,d=u.length;if(arguments.length<2){for(;++f<d;)if((c=(n=u[f]).type)&&(c=p_(r[c],n.name)))return c;return}if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++f<d;)if(c=(n=u[f]).type)r[c]=Eg(r[c],n.name,a);else if(a==null)for(c in r)r[c]=Eg(r[c],n.name,null);return this},copy:function(){var n={},a=this._;for(var r in a)n[r]=a[r].slice();return new Vu(n)},call:function(n,a){if((c=arguments.length-2)>0)for(var r=new Array(c),u=0,c,f;u<c;++u)r[u]=arguments[u+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(f=this._[n],u=0,c=f.length;u<c;++u)f[u].value.apply(a,r)},apply:function(n,a,r){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var u=this._[n],c=0,f=u.length;c<f;++c)u[c].value.apply(a,r)}};function p_(n,a){for(var r=0,u=n.length,c;r<u;++r)if((c=n[r]).name===a)return c.value}function Eg(n,a,r){for(var u=0,c=n.length;u<c;++u)if(n[u].name===a){n[u]=m_,n=n.slice(0,u).concat(n.slice(u+1));break}return r!=null&&n.push({name:a,value:r}),n}var df="http://www.w3.org/1999/xhtml";const Ag={svg:"http://www.w3.org/2000/svg",xhtml:df,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function go(n){var a=n+="",r=a.indexOf(":");return r>=0&&(a=n.slice(0,r))!=="xmlns"&&(n=n.slice(r+1)),Ag.hasOwnProperty(a)?{space:Ag[a],local:n}:n}function y_(n){return function(){var a=this.ownerDocument,r=this.namespaceURI;return r===df&&a.documentElement.namespaceURI===df?a.createElement(n):a.createElementNS(r,n)}}function v_(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function sy(n){var a=go(n);return(a.local?v_:y_)(a)}function b_(){}function jf(n){return n==null?b_:function(){return this.querySelector(n)}}function x_(n){typeof n!="function"&&(n=jf(n));for(var a=this._groups,r=a.length,u=new Array(r),c=0;c<r;++c)for(var f=a[c],d=f.length,g=u[c]=new Array(d),m,h,v=0;v<d;++v)(m=f[v])&&(h=n.call(m,m.__data__,v,f))&&("__data__"in m&&(h.__data__=m.__data__),g[v]=h);return new He(u,this._parents)}function S_(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function __(){return[]}function fy(n){return n==null?__:function(){return this.querySelectorAll(n)}}function w_(n){return function(){return S_(n.apply(this,arguments))}}function T_(n){typeof n=="function"?n=w_(n):n=fy(n);for(var a=this._groups,r=a.length,u=[],c=[],f=0;f<r;++f)for(var d=a[f],g=d.length,m,h=0;h<g;++h)(m=d[h])&&(u.push(n.call(m,m.__data__,h,d)),c.push(m));return new He(u,c)}function dy(n){return function(){return this.matches(n)}}function hy(n){return function(a){return a.matches(n)}}var M_=Array.prototype.find;function E_(n){return function(){return M_.call(this.children,n)}}function A_(){return this.firstElementChild}function C_(n){return this.select(n==null?A_:E_(typeof n=="function"?n:hy(n)))}var N_=Array.prototype.filter;function z_(){return Array.from(this.children)}function R_(n){return function(){return N_.call(this.children,n)}}function D_(n){return this.selectAll(n==null?z_:R_(typeof n=="function"?n:hy(n)))}function O_(n){typeof n!="function"&&(n=dy(n));for(var a=this._groups,r=a.length,u=new Array(r),c=0;c<r;++c)for(var f=a[c],d=f.length,g=u[c]=[],m,h=0;h<d;++h)(m=f[h])&&n.call(m,m.__data__,h,f)&&g.push(m);return new He(u,this._parents)}function my(n){return new Array(n.length)}function U_(){return new He(this._enter||this._groups.map(my),this._parents)}function Wu(n,a){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=a}Wu.prototype={constructor:Wu,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,a){return this._parent.insertBefore(n,a)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};function j_(n){return function(){return n}}function k_(n,a,r,u,c,f){for(var d=0,g,m=a.length,h=f.length;d<h;++d)(g=a[d])?(g.__data__=f[d],u[d]=g):r[d]=new Wu(n,f[d]);for(;d<m;++d)(g=a[d])&&(c[d]=g)}function H_(n,a,r,u,c,f,d){var g,m,h=new Map,v=a.length,y=f.length,b=new Array(v),T;for(g=0;g<v;++g)(m=a[g])&&(b[g]=T=d.call(m,m.__data__,g,a)+"",h.has(T)?c[g]=m:h.set(T,m));for(g=0;g<y;++g)T=d.call(n,f[g],g,f)+"",(m=h.get(T))?(u[g]=m,m.__data__=f[g],h.delete(T)):r[g]=new Wu(n,f[g]);for(g=0;g<v;++g)(m=a[g])&&h.get(b[g])===m&&(c[g]=m)}function L_(n){return n.__data__}function Y_(n,a){if(!arguments.length)return Array.from(this,L_);var r=a?H_:k_,u=this._parents,c=this._groups;typeof n!="function"&&(n=j_(n));for(var f=c.length,d=new Array(f),g=new Array(f),m=new Array(f),h=0;h<f;++h){var v=u[h],y=c[h],b=y.length,T=B_(n.call(v,v&&v.__data__,h,u)),D=T.length,j=g[h]=new Array(D),A=d[h]=new Array(D),N=m[h]=new Array(b);r(v,y,j,A,N,T,a);for(var Q=0,G=0,nt,it;Q<D;++Q)if(nt=j[Q]){for(Q>=G&&(G=Q+1);!(it=A[G])&&++G<D;);nt._next=it||null}}return d=new He(d,u),d._enter=g,d._exit=m,d}function B_(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function q_(){return new He(this._exit||this._groups.map(my),this._parents)}function G_(n,a,r){var u=this.enter(),c=this,f=this.exit();return typeof n=="function"?(u=n(u),u&&(u=u.selection())):u=u.append(n+""),a!=null&&(c=a(c),c&&(c=c.selection())),r==null?f.remove():r(f),u&&c?u.merge(c).order():c}function X_(n){for(var a=n.selection?n.selection():n,r=this._groups,u=a._groups,c=r.length,f=u.length,d=Math.min(c,f),g=new Array(c),m=0;m<d;++m)for(var h=r[m],v=u[m],y=h.length,b=g[m]=new Array(y),T,D=0;D<y;++D)(T=h[D]||v[D])&&(b[D]=T);for(;m<c;++m)g[m]=r[m];return new He(g,this._parents)}function V_(){for(var n=this._groups,a=-1,r=n.length;++a<r;)for(var u=n[a],c=u.length-1,f=u[c],d;--c>=0;)(d=u[c])&&(f&&d.compareDocumentPosition(f)^4&&f.parentNode.insertBefore(d,f),f=d);return this}function Q_(n){n||(n=Z_);function a(y,b){return y&&b?n(y.__data__,b.__data__):!y-!b}for(var r=this._groups,u=r.length,c=new Array(u),f=0;f<u;++f){for(var d=r[f],g=d.length,m=c[f]=new Array(g),h,v=0;v<g;++v)(h=d[v])&&(m[v]=h);m.sort(a)}return new He(c,this._parents).order()}function Z_(n,a){return n<a?-1:n>a?1:n>=a?0:NaN}function $_(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function K_(){return Array.from(this)}function J_(){for(var n=this._groups,a=0,r=n.length;a<r;++a)for(var u=n[a],c=0,f=u.length;c<f;++c){var d=u[c];if(d)return d}return null}function F_(){let n=0;for(const a of this)++n;return n}function W_(){return!this.node()}function I_(n){for(var a=this._groups,r=0,u=a.length;r<u;++r)for(var c=a[r],f=0,d=c.length,g;f<d;++f)(g=c[f])&&n.call(g,g.__data__,f,c);return this}function P_(n){return function(){this.removeAttribute(n)}}function tw(n){return function(){this.removeAttributeNS(n.space,n.local)}}function ew(n,a){return function(){this.setAttribute(n,a)}}function nw(n,a){return function(){this.setAttributeNS(n.space,n.local,a)}}function lw(n,a){return function(){var r=a.apply(this,arguments);r==null?this.removeAttribute(n):this.setAttribute(n,r)}}function aw(n,a){return function(){var r=a.apply(this,arguments);r==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,r)}}function iw(n,a){var r=go(n);if(arguments.length<2){var u=this.node();return r.local?u.getAttributeNS(r.space,r.local):u.getAttribute(r)}return this.each((a==null?r.local?tw:P_:typeof a=="function"?r.local?aw:lw:r.local?nw:ew)(r,a))}function gy(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function rw(n){return function(){this.style.removeProperty(n)}}function uw(n,a,r){return function(){this.style.setProperty(n,a,r)}}function ow(n,a,r){return function(){var u=a.apply(this,arguments);u==null?this.style.removeProperty(n):this.style.setProperty(n,u,r)}}function cw(n,a,r){return arguments.length>1?this.each((a==null?rw:typeof a=="function"?ow:uw)(n,a,r??"")):Ha(this.node(),n)}function Ha(n,a){return n.style.getPropertyValue(a)||gy(n).getComputedStyle(n,null).getPropertyValue(a)}function sw(n){return function(){delete this[n]}}function fw(n,a){return function(){this[n]=a}}function dw(n,a){return function(){var r=a.apply(this,arguments);r==null?delete this[n]:this[n]=r}}function hw(n,a){return arguments.length>1?this.each((a==null?sw:typeof a=="function"?dw:fw)(n,a)):this.node()[n]}function py(n){return n.trim().split(/^|\s+/)}function kf(n){return n.classList||new yy(n)}function yy(n){this._node=n,this._names=py(n.getAttribute("class")||"")}yy.prototype={add:function(n){var a=this._names.indexOf(n);a<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var a=this._names.indexOf(n);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function vy(n,a){for(var r=kf(n),u=-1,c=a.length;++u<c;)r.add(a[u])}function by(n,a){for(var r=kf(n),u=-1,c=a.length;++u<c;)r.remove(a[u])}function mw(n){return function(){vy(this,n)}}function gw(n){return function(){by(this,n)}}function pw(n,a){return function(){(a.apply(this,arguments)?vy:by)(this,n)}}function yw(n,a){var r=py(n+"");if(arguments.length<2){for(var u=kf(this.node()),c=-1,f=r.length;++c<f;)if(!u.contains(r[c]))return!1;return!0}return this.each((typeof a=="function"?pw:a?mw:gw)(r,a))}function vw(){this.textContent=""}function bw(n){return function(){this.textContent=n}}function xw(n){return function(){var a=n.apply(this,arguments);this.textContent=a??""}}function Sw(n){return arguments.length?this.each(n==null?vw:(typeof n=="function"?xw:bw)(n)):this.node().textContent}function _w(){this.innerHTML=""}function ww(n){return function(){this.innerHTML=n}}function Tw(n){return function(){var a=n.apply(this,arguments);this.innerHTML=a??""}}function Mw(n){return arguments.length?this.each(n==null?_w:(typeof n=="function"?Tw:ww)(n)):this.node().innerHTML}function Ew(){this.nextSibling&&this.parentNode.appendChild(this)}function Aw(){return this.each(Ew)}function Cw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Nw(){return this.each(Cw)}function zw(n){var a=typeof n=="function"?n:sy(n);return this.select(function(){return this.appendChild(a.apply(this,arguments))})}function Rw(){return null}function Dw(n,a){var r=typeof n=="function"?n:sy(n),u=a==null?Rw:typeof a=="function"?a:jf(a);return this.select(function(){return this.insertBefore(r.apply(this,arguments),u.apply(this,arguments)||null)})}function Ow(){var n=this.parentNode;n&&n.removeChild(this)}function Uw(){return this.each(Ow)}function jw(){var n=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function kw(){var n=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(n,this.nextSibling):n}function Hw(n){return this.select(n?kw:jw)}function Lw(n){return arguments.length?this.property("__data__",n):this.node().__data__}function Yw(n){return function(a){n.call(this,a,this.__data__)}}function Bw(n){return n.trim().split(/^|\s+/).map(function(a){var r="",u=a.indexOf(".");return u>=0&&(r=a.slice(u+1),a=a.slice(0,u)),{type:a,name:r}})}function qw(n){return function(){var a=this.__on;if(a){for(var r=0,u=-1,c=a.length,f;r<c;++r)f=a[r],(!n.type||f.type===n.type)&&f.name===n.name?this.removeEventListener(f.type,f.listener,f.options):a[++u]=f;++u?a.length=u:delete this.__on}}}function Gw(n,a,r){return function(){var u=this.__on,c,f=Yw(a);if(u){for(var d=0,g=u.length;d<g;++d)if((c=u[d]).type===n.type&&c.name===n.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=f,c.options=r),c.value=a;return}}this.addEventListener(n.type,f,r),c={type:n.type,name:n.name,value:a,listener:f,options:r},u?u.push(c):this.__on=[c]}}function Xw(n,a,r){var u=Bw(n+""),c,f=u.length,d;if(arguments.length<2){var g=this.node().__on;if(g){for(var m=0,h=g.length,v;m<h;++m)for(c=0,v=g[m];c<f;++c)if((d=u[c]).type===v.type&&d.name===v.name)return v.value}return}for(g=a?Gw:qw,c=0;c<f;++c)this.each(g(u[c],a,r));return this}function xy(n,a,r){var u=gy(n),c=u.CustomEvent;typeof c=="function"?c=new c(a,r):(c=u.document.createEvent("Event"),r?(c.initEvent(a,r.bubbles,r.cancelable),c.detail=r.detail):c.initEvent(a,!1,!1)),n.dispatchEvent(c)}function Vw(n,a){return function(){return xy(this,n,a)}}function Qw(n,a){return function(){return xy(this,n,a.apply(this,arguments))}}function Zw(n,a){return this.each((typeof a=="function"?Qw:Vw)(n,a))}function*$w(){for(var n=this._groups,a=0,r=n.length;a<r;++a)for(var u=n[a],c=0,f=u.length,d;c<f;++c)(d=u[c])&&(yield d)}var Sy=[null];function He(n,a){this._groups=n,this._parents=a}function cr(){return new He([[document.documentElement]],Sy)}function Kw(){return this}He.prototype=cr.prototype={constructor:He,select:x_,selectAll:T_,selectChild:C_,selectChildren:D_,filter:O_,data:Y_,enter:U_,exit:q_,join:G_,merge:X_,selection:Kw,order:V_,sort:Q_,call:$_,nodes:K_,node:J_,size:F_,empty:W_,each:I_,attr:iw,style:cw,property:hw,classed:yw,text:Sw,html:Mw,raise:Aw,lower:Nw,append:zw,insert:Dw,remove:Uw,clone:Hw,datum:Lw,on:Xw,dispatch:Zw,[Symbol.iterator]:$w};function ke(n){return typeof n=="string"?new He([[document.querySelector(n)]],[document.documentElement]):new He([[n]],Sy)}function Jw(n){let a;for(;a=n.sourceEvent;)n=a;return n}function Ll(n,a){if(n=Jw(n),a===void 0&&(a=n.currentTarget),a){var r=a.ownerSVGElement||a;if(r.createSVGPoint){var u=r.createSVGPoint();return u.x=n.clientX,u.y=n.clientY,u=u.matrixTransform(a.getScreenCTM().inverse()),[u.x,u.y]}if(a.getBoundingClientRect){var c=a.getBoundingClientRect();return[n.clientX-c.left-a.clientLeft,n.clientY-c.top-a.clientTop]}}return[n.pageX,n.pageY]}const hf={capture:!0,passive:!1};function mf(n){n.preventDefault(),n.stopImmediatePropagation()}function Fw(n){var a=n.document.documentElement,r=ke(n).on("dragstart.drag",mf,hf);"onselectstart"in a?r.on("selectstart.drag",mf,hf):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function Ww(n,a){var r=n.document.documentElement,u=ke(n).on("dragstart.drag",null);a&&(u.on("click.drag",mf,hf),setTimeout(function(){u.on("click.drag",null)},0)),"onselectstart"in r?u.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function Hf(n,a,r){n.prototype=a.prototype=r,r.constructor=n}function _y(n,a){var r=Object.create(n.prototype);for(var u in a)r[u]=a[u];return r}function sr(){}var nr=.7,Iu=1/nr,ka="\\s*([+-]?\\d+)\\s*",lr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Iw=/^#([0-9a-f]{3,8})$/,Pw=new RegExp(`^rgb\\(${ka},${ka},${ka}\\)$`),t3=new RegExp(`^rgb\\(${fn},${fn},${fn}\\)$`),e3=new RegExp(`^rgba\\(${ka},${ka},${ka},${lr}\\)$`),n3=new RegExp(`^rgba\\(${fn},${fn},${fn},${lr}\\)$`),l3=new RegExp(`^hsl\\(${lr},${fn},${fn}\\)$`),a3=new RegExp(`^hsla\\(${lr},${fn},${fn},${lr}\\)$`),Cg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Hf(sr,Xl,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:Ng,formatHex:Ng,formatHex8:i3,formatHsl:r3,formatRgb:zg,toString:zg});function Ng(){return this.rgb().formatHex()}function i3(){return this.rgb().formatHex8()}function r3(){return wy(this).formatHsl()}function zg(){return this.rgb().formatRgb()}function Xl(n){var a,r;return n=(n+"").trim().toLowerCase(),(a=Iw.exec(n))?(r=a[1].length,a=parseInt(a[1],16),r===6?Rg(a):r===3?new Te(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):r===8?Ou(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):r===4?Ou(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=Pw.exec(n))?new Te(a[1],a[2],a[3],1):(a=t3.exec(n))?new Te(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=e3.exec(n))?Ou(a[1],a[2],a[3],a[4]):(a=n3.exec(n))?Ou(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=l3.exec(n))?Ug(a[1],a[2]/100,a[3]/100,1):(a=a3.exec(n))?Ug(a[1],a[2]/100,a[3]/100,a[4]):Cg.hasOwnProperty(n)?Rg(Cg[n]):n==="transparent"?new Te(NaN,NaN,NaN,0):null}function Rg(n){return new Te(n>>16&255,n>>8&255,n&255,1)}function Ou(n,a,r,u){return u<=0&&(n=a=r=NaN),new Te(n,a,r,u)}function u3(n){return n instanceof sr||(n=Xl(n)),n?(n=n.rgb(),new Te(n.r,n.g,n.b,n.opacity)):new Te}function gf(n,a,r,u){return arguments.length===1?u3(n):new Te(n,a,r,u??1)}function Te(n,a,r,u){this.r=+n,this.g=+a,this.b=+r,this.opacity=+u}Hf(Te,gf,_y(sr,{brighter(n){return n=n==null?Iu:Math.pow(Iu,n),new Te(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?nr:Math.pow(nr,n),new Te(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Te(Gl(this.r),Gl(this.g),Gl(this.b),Pu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Dg,formatHex:Dg,formatHex8:o3,formatRgb:Og,toString:Og}));function Dg(){return`#${ql(this.r)}${ql(this.g)}${ql(this.b)}`}function o3(){return`#${ql(this.r)}${ql(this.g)}${ql(this.b)}${ql((isNaN(this.opacity)?1:this.opacity)*255)}`}function Og(){const n=Pu(this.opacity);return`${n===1?"rgb(":"rgba("}${Gl(this.r)}, ${Gl(this.g)}, ${Gl(this.b)}${n===1?")":`, ${n})`}`}function Pu(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Gl(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function ql(n){return n=Gl(n),(n<16?"0":"")+n.toString(16)}function Ug(n,a,r,u){return u<=0?n=a=r=NaN:r<=0||r>=1?n=a=NaN:a<=0&&(n=NaN),new tn(n,a,r,u)}function wy(n){if(n instanceof tn)return new tn(n.h,n.s,n.l,n.opacity);if(n instanceof sr||(n=Xl(n)),!n)return new tn;if(n instanceof tn)return n;n=n.rgb();var a=n.r/255,r=n.g/255,u=n.b/255,c=Math.min(a,r,u),f=Math.max(a,r,u),d=NaN,g=f-c,m=(f+c)/2;return g?(a===f?d=(r-u)/g+(r<u)*6:r===f?d=(u-a)/g+2:d=(a-r)/g+4,g/=m<.5?f+c:2-f-c,d*=60):g=m>0&&m<1?0:d,new tn(d,g,m,n.opacity)}function c3(n,a,r,u){return arguments.length===1?wy(n):new tn(n,a,r,u??1)}function tn(n,a,r,u){this.h=+n,this.s=+a,this.l=+r,this.opacity=+u}Hf(tn,c3,_y(sr,{brighter(n){return n=n==null?Iu:Math.pow(Iu,n),new tn(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?nr:Math.pow(nr,n),new tn(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,a=isNaN(n)||isNaN(this.s)?0:this.s,r=this.l,u=r+(r<.5?r:1-r)*a,c=2*r-u;return new Te(Qs(n>=240?n-240:n+120,c,u),Qs(n,c,u),Qs(n<120?n+240:n-120,c,u),this.opacity)},clamp(){return new tn(jg(this.h),Uu(this.s),Uu(this.l),Pu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=Pu(this.opacity);return`${n===1?"hsl(":"hsla("}${jg(this.h)}, ${Uu(this.s)*100}%, ${Uu(this.l)*100}%${n===1?")":`, ${n})`}`}}));function jg(n){return n=(n||0)%360,n<0?n+360:n}function Uu(n){return Math.max(0,Math.min(1,n||0))}function Qs(n,a,r){return(n<60?a+(r-a)*n/60:n<180?r:n<240?a+(r-a)*(240-n)/60:a)*255}const Lf=n=>()=>n;function s3(n,a){return function(r){return n+r*a}}function f3(n,a,r){return n=Math.pow(n,r),a=Math.pow(a,r)-n,r=1/r,function(u){return Math.pow(n+u*a,r)}}function d3(n){return(n=+n)==1?Ty:function(a,r){return r-a?f3(a,r,n):Lf(isNaN(a)?r:a)}}function Ty(n,a){var r=a-n;return r?s3(n,r):Lf(isNaN(n)?a:n)}const to=(function n(a){var r=d3(a);function u(c,f){var d=r((c=gf(c)).r,(f=gf(f)).r),g=r(c.g,f.g),m=r(c.b,f.b),h=Ty(c.opacity,f.opacity);return function(v){return c.r=d(v),c.g=g(v),c.b=m(v),c.opacity=h(v),c+""}}return u.gamma=n,u})(1);function h3(n,a){a||(a=[]);var r=n?Math.min(a.length,n.length):0,u=a.slice(),c;return function(f){for(c=0;c<r;++c)u[c]=n[c]*(1-f)+a[c]*f;return u}}function m3(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function g3(n,a){var r=a?a.length:0,u=n?Math.min(r,n.length):0,c=new Array(u),f=new Array(r),d;for(d=0;d<u;++d)c[d]=Yf(n[d],a[d]);for(;d<r;++d)f[d]=a[d];return function(g){for(d=0;d<u;++d)f[d]=c[d](g);return f}}function p3(n,a){var r=new Date;return n=+n,a=+a,function(u){return r.setTime(n*(1-u)+a*u),r}}function Pe(n,a){return n=+n,a=+a,function(r){return n*(1-r)+a*r}}function y3(n,a){var r={},u={},c;(n===null||typeof n!="object")&&(n={}),(a===null||typeof a!="object")&&(a={});for(c in a)c in n?r[c]=Yf(n[c],a[c]):u[c]=a[c];return function(f){for(c in r)u[c]=r[c](f);return u}}var pf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zs=new RegExp(pf.source,"g");function v3(n){return function(){return n}}function b3(n){return function(a){return n(a)+""}}function My(n,a){var r=pf.lastIndex=Zs.lastIndex=0,u,c,f,d=-1,g=[],m=[];for(n=n+"",a=a+"";(u=pf.exec(n))&&(c=Zs.exec(a));)(f=c.index)>r&&(f=a.slice(r,f),g[d]?g[d]+=f:g[++d]=f),(u=u[0])===(c=c[0])?g[d]?g[d]+=c:g[++d]=c:(g[++d]=null,m.push({i:d,x:Pe(u,c)})),r=Zs.lastIndex;return r<a.length&&(f=a.slice(r),g[d]?g[d]+=f:g[++d]=f),g.length<2?m[0]?b3(m[0].x):v3(a):(a=m.length,function(h){for(var v=0,y;v<a;++v)g[(y=m[v]).i]=y.x(h);return g.join("")})}function Yf(n,a){var r=typeof a,u;return a==null||r==="boolean"?Lf(a):(r==="number"?Pe:r==="string"?(u=Xl(a))?(a=u,to):My:a instanceof Xl?to:a instanceof Date?p3:m3(a)?h3:Array.isArray(a)?g3:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?y3:Pe)(n,a)}function x3(n,a){return n=+n,a=+a,function(r){return Math.round(n*(1-r)+a*r)}}var kg=180/Math.PI,yf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ey(n,a,r,u,c,f){var d,g,m;return(d=Math.sqrt(n*n+a*a))&&(n/=d,a/=d),(m=n*r+a*u)&&(r-=n*m,u-=a*m),(g=Math.sqrt(r*r+u*u))&&(r/=g,u/=g,m/=g),n*u<a*r&&(n=-n,a=-a,m=-m,d=-d),{translateX:c,translateY:f,rotate:Math.atan2(a,n)*kg,skewX:Math.atan(m)*kg,scaleX:d,scaleY:g}}var ju;function S3(n){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return a.isIdentity?yf:Ey(a.a,a.b,a.c,a.d,a.e,a.f)}function _3(n){return n==null||(ju||(ju=document.createElementNS("http://www.w3.org/2000/svg","g")),ju.setAttribute("transform",n),!(n=ju.transform.baseVal.consolidate()))?yf:(n=n.matrix,Ey(n.a,n.b,n.c,n.d,n.e,n.f))}function Ay(n,a,r,u){function c(h){return h.length?h.pop()+" ":""}function f(h,v,y,b,T,D){if(h!==y||v!==b){var j=T.push("translate(",null,a,null,r);D.push({i:j-4,x:Pe(h,y)},{i:j-2,x:Pe(v,b)})}else(y||b)&&T.push("translate("+y+a+b+r)}function d(h,v,y,b){h!==v?(h-v>180?v+=360:v-h>180&&(h+=360),b.push({i:y.push(c(y)+"rotate(",null,u)-2,x:Pe(h,v)})):v&&y.push(c(y)+"rotate("+v+u)}function g(h,v,y,b){h!==v?b.push({i:y.push(c(y)+"skewX(",null,u)-2,x:Pe(h,v)}):v&&y.push(c(y)+"skewX("+v+u)}function m(h,v,y,b,T,D){if(h!==y||v!==b){var j=T.push(c(T)+"scale(",null,",",null,")");D.push({i:j-4,x:Pe(h,y)},{i:j-2,x:Pe(v,b)})}else(y!==1||b!==1)&&T.push(c(T)+"scale("+y+","+b+")")}return function(h,v){var y=[],b=[];return h=n(h),v=n(v),f(h.translateX,h.translateY,v.translateX,v.translateY,y,b),d(h.rotate,v.rotate,y,b),g(h.skewX,v.skewX,y,b),m(h.scaleX,h.scaleY,v.scaleX,v.scaleY,y,b),h=v=null,function(T){for(var D=-1,j=b.length,A;++D<j;)y[(A=b[D]).i]=A.x(T);return y.join("")}}}var w3=Ay(S3,"px, ","px)","deg)"),T3=Ay(_3,", ",")",")"),M3=1e-12;function Hg(n){return((n=Math.exp(n))+1/n)/2}function E3(n){return((n=Math.exp(n))-1/n)/2}function A3(n){return((n=Math.exp(2*n))-1)/(n+1)}const C3=(function n(a,r,u){function c(f,d){var g=f[0],m=f[1],h=f[2],v=d[0],y=d[1],b=d[2],T=v-g,D=y-m,j=T*T+D*D,A,N;if(j<M3)N=Math.log(b/h)/a,A=function(K){return[g+K*T,m+K*D,h*Math.exp(a*K*N)]};else{var Q=Math.sqrt(j),G=(b*b-h*h+u*j)/(2*h*r*Q),nt=(b*b-h*h-u*j)/(2*b*r*Q),it=Math.log(Math.sqrt(G*G+1)-G),X=Math.log(Math.sqrt(nt*nt+1)-nt);N=(X-it)/a,A=function(K){var P=K*N,dt=Hg(it),Tt=h/(r*Q)*(dt*A3(a*P+it)-E3(it));return[g+Tt*T,m+Tt*D,h*dt/Hg(a*P+it)]}}return A.duration=N*1e3*a/Math.SQRT2,A}return c.rho=function(f){var d=Math.max(.001,+f),g=d*d,m=g*g;return n(d,g,m)},c})(Math.SQRT2,2,4);var La=0,Ji=0,Gi=0,Cy=1e3,eo,Fi,no=0,Vl=0,po=0,ar=typeof performance=="object"&&performance.now?performance:Date,Ny=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function Bf(){return Vl||(Ny(N3),Vl=ar.now()+po)}function N3(){Vl=0}function lo(){this._call=this._time=this._next=null}lo.prototype=zy.prototype={constructor:lo,restart:function(n,a,r){if(typeof n!="function")throw new TypeError("callback is not a function");r=(r==null?Bf():+r)+(a==null?0:+a),!this._next&&Fi!==this&&(Fi?Fi._next=this:eo=this,Fi=this),this._call=n,this._time=r,vf()},stop:function(){this._call&&(this._call=null,this._time=1/0,vf())}};function zy(n,a,r){var u=new lo;return u.restart(n,a,r),u}function z3(){Bf(),++La;for(var n=eo,a;n;)(a=Vl-n._time)>=0&&n._call.call(void 0,a),n=n._next;--La}function Lg(){Vl=(no=ar.now())+po,La=Ji=0;try{z3()}finally{La=0,D3(),Vl=0}}function R3(){var n=ar.now(),a=n-no;a>Cy&&(po-=a,no=n)}function D3(){for(var n,a=eo,r,u=1/0;a;)a._call?(u>a._time&&(u=a._time),n=a,a=a._next):(r=a._next,a._next=null,a=n?n._next=r:eo=r);Fi=n,vf(u)}function vf(n){if(!La){Ji&&(Ji=clearTimeout(Ji));var a=n-Vl;a>24?(n<1/0&&(Ji=setTimeout(Lg,n-ar.now()-po)),Gi&&(Gi=clearInterval(Gi))):(Gi||(no=ar.now(),Gi=setInterval(R3,Cy)),La=1,Ny(Lg))}}function Yg(n,a,r){var u=new lo;return a=a==null?0:+a,u.restart(c=>{u.stop(),n(c+a)},a,r),u}var O3=Uf("start","end","cancel","interrupt"),U3=[],Ry=0,Bg=1,bf=2,Qu=3,qg=4,xf=5,Zu=6;function yo(n,a,r,u,c,f){var d=n.__transition;if(!d)n.__transition={};else if(r in d)return;j3(n,r,{name:a,index:u,group:c,on:O3,tween:U3,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:Ry})}function qf(n,a){var r=an(n,a);if(r.state>Ry)throw new Error("too late; already scheduled");return r}function mn(n,a){var r=an(n,a);if(r.state>Qu)throw new Error("too late; already running");return r}function an(n,a){var r=n.__transition;if(!r||!(r=r[a]))throw new Error("transition not found");return r}function j3(n,a,r){var u=n.__transition,c;u[a]=r,r.timer=zy(f,0,r.time);function f(h){r.state=Bg,r.timer.restart(d,r.delay,r.time),r.delay<=h&&d(h-r.delay)}function d(h){var v,y,b,T;if(r.state!==Bg)return m();for(v in u)if(T=u[v],T.name===r.name){if(T.state===Qu)return Yg(d);T.state===qg?(T.state=Zu,T.timer.stop(),T.on.call("interrupt",n,n.__data__,T.index,T.group),delete u[v]):+v<a&&(T.state=Zu,T.timer.stop(),T.on.call("cancel",n,n.__data__,T.index,T.group),delete u[v])}if(Yg(function(){r.state===Qu&&(r.state=qg,r.timer.restart(g,r.delay,r.time),g(h))}),r.state=bf,r.on.call("start",n,n.__data__,r.index,r.group),r.state===bf){for(r.state=Qu,c=new Array(b=r.tween.length),v=0,y=-1;v<b;++v)(T=r.tween[v].value.call(n,n.__data__,r.index,r.group))&&(c[++y]=T);c.length=y+1}}function g(h){for(var v=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(m),r.state=xf,1),y=-1,b=c.length;++y<b;)c[y].call(n,v);r.state===xf&&(r.on.call("end",n,n.__data__,r.index,r.group),m())}function m(){r.state=Zu,r.timer.stop(),delete u[a];for(var h in u)return;delete n.__transition}}function $u(n,a){var r=n.__transition,u,c,f=!0,d;if(r){a=a==null?null:a+"";for(d in r){if((u=r[d]).name!==a){f=!1;continue}c=u.state>bf&&u.state<xf,u.state=Zu,u.timer.stop(),u.on.call(c?"interrupt":"cancel",n,n.__data__,u.index,u.group),delete r[d]}f&&delete n.__transition}}function k3(n){return this.each(function(){$u(this,n)})}function H3(n,a){var r,u;return function(){var c=mn(this,n),f=c.tween;if(f!==r){u=r=f;for(var d=0,g=u.length;d<g;++d)if(u[d].name===a){u=u.slice(),u.splice(d,1);break}}c.tween=u}}function L3(n,a,r){var u,c;if(typeof r!="function")throw new Error;return function(){var f=mn(this,n),d=f.tween;if(d!==u){c=(u=d).slice();for(var g={name:a,value:r},m=0,h=c.length;m<h;++m)if(c[m].name===a){c[m]=g;break}m===h&&c.push(g)}f.tween=c}}function Y3(n,a){var r=this._id;if(n+="",arguments.length<2){for(var u=an(this.node(),r).tween,c=0,f=u.length,d;c<f;++c)if((d=u[c]).name===n)return d.value;return null}return this.each((a==null?H3:L3)(r,n,a))}function Gf(n,a,r){var u=n._id;return n.each(function(){var c=mn(this,u);(c.value||(c.value={}))[a]=r.apply(this,arguments)}),function(c){return an(c,u).value[a]}}function Dy(n,a){var r;return(typeof a=="number"?Pe:a instanceof Xl?to:(r=Xl(a))?(a=r,to):My)(n,a)}function B3(n){return function(){this.removeAttribute(n)}}function q3(n){return function(){this.removeAttributeNS(n.space,n.local)}}function G3(n,a,r){var u,c=r+"",f;return function(){var d=this.getAttribute(n);return d===c?null:d===u?f:f=a(u=d,r)}}function X3(n,a,r){var u,c=r+"",f;return function(){var d=this.getAttributeNS(n.space,n.local);return d===c?null:d===u?f:f=a(u=d,r)}}function V3(n,a,r){var u,c,f;return function(){var d,g=r(this),m;return g==null?void this.removeAttribute(n):(d=this.getAttribute(n),m=g+"",d===m?null:d===u&&m===c?f:(c=m,f=a(u=d,g)))}}function Q3(n,a,r){var u,c,f;return function(){var d,g=r(this),m;return g==null?void this.removeAttributeNS(n.space,n.local):(d=this.getAttributeNS(n.space,n.local),m=g+"",d===m?null:d===u&&m===c?f:(c=m,f=a(u=d,g)))}}function Z3(n,a){var r=go(n),u=r==="transform"?T3:Dy;return this.attrTween(n,typeof a=="function"?(r.local?Q3:V3)(r,u,Gf(this,"attr."+n,a)):a==null?(r.local?q3:B3)(r):(r.local?X3:G3)(r,u,a))}function $3(n,a){return function(r){this.setAttribute(n,a.call(this,r))}}function K3(n,a){return function(r){this.setAttributeNS(n.space,n.local,a.call(this,r))}}function J3(n,a){var r,u;function c(){var f=a.apply(this,arguments);return f!==u&&(r=(u=f)&&K3(n,f)),r}return c._value=a,c}function F3(n,a){var r,u;function c(){var f=a.apply(this,arguments);return f!==u&&(r=(u=f)&&$3(n,f)),r}return c._value=a,c}function W3(n,a){var r="attr."+n;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(a==null)return this.tween(r,null);if(typeof a!="function")throw new Error;var u=go(n);return this.tween(r,(u.local?J3:F3)(u,a))}function I3(n,a){return function(){qf(this,n).delay=+a.apply(this,arguments)}}function P3(n,a){return a=+a,function(){qf(this,n).delay=a}}function tT(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?I3:P3)(a,n)):an(this.node(),a).delay}function eT(n,a){return function(){mn(this,n).duration=+a.apply(this,arguments)}}function nT(n,a){return a=+a,function(){mn(this,n).duration=a}}function lT(n){var a=this._id;return arguments.length?this.each((typeof n=="function"?eT:nT)(a,n)):an(this.node(),a).duration}function aT(n,a){if(typeof a!="function")throw new Error;return function(){mn(this,n).ease=a}}function iT(n){var a=this._id;return arguments.length?this.each(aT(a,n)):an(this.node(),a).ease}function rT(n,a){return function(){var r=a.apply(this,arguments);if(typeof r!="function")throw new Error;mn(this,n).ease=r}}function uT(n){if(typeof n!="function")throw new Error;return this.each(rT(this._id,n))}function oT(n){typeof n!="function"&&(n=dy(n));for(var a=this._groups,r=a.length,u=new Array(r),c=0;c<r;++c)for(var f=a[c],d=f.length,g=u[c]=[],m,h=0;h<d;++h)(m=f[h])&&n.call(m,m.__data__,h,f)&&g.push(m);return new Yn(u,this._parents,this._name,this._id)}function cT(n){if(n._id!==this._id)throw new Error;for(var a=this._groups,r=n._groups,u=a.length,c=r.length,f=Math.min(u,c),d=new Array(u),g=0;g<f;++g)for(var m=a[g],h=r[g],v=m.length,y=d[g]=new Array(v),b,T=0;T<v;++T)(b=m[T]||h[T])&&(y[T]=b);for(;g<u;++g)d[g]=a[g];return new Yn(d,this._parents,this._name,this._id)}function sT(n){return(n+"").trim().split(/^|\s+/).every(function(a){var r=a.indexOf(".");return r>=0&&(a=a.slice(0,r)),!a||a==="start"})}function fT(n,a,r){var u,c,f=sT(a)?qf:mn;return function(){var d=f(this,n),g=d.on;g!==u&&(c=(u=g).copy()).on(a,r),d.on=c}}function dT(n,a){var r=this._id;return arguments.length<2?an(this.node(),r).on.on(n):this.each(fT(r,n,a))}function hT(n){return function(){var a=this.parentNode;for(var r in this.__transition)if(+r!==n)return;a&&a.removeChild(this)}}function mT(){return this.on("end.remove",hT(this._id))}function gT(n){var a=this._name,r=this._id;typeof n!="function"&&(n=jf(n));for(var u=this._groups,c=u.length,f=new Array(c),d=0;d<c;++d)for(var g=u[d],m=g.length,h=f[d]=new Array(m),v,y,b=0;b<m;++b)(v=g[b])&&(y=n.call(v,v.__data__,b,g))&&("__data__"in v&&(y.__data__=v.__data__),h[b]=y,yo(h[b],a,r,b,h,an(v,r)));return new Yn(f,this._parents,a,r)}function pT(n){var a=this._name,r=this._id;typeof n!="function"&&(n=fy(n));for(var u=this._groups,c=u.length,f=[],d=[],g=0;g<c;++g)for(var m=u[g],h=m.length,v,y=0;y<h;++y)if(v=m[y]){for(var b=n.call(v,v.__data__,y,m),T,D=an(v,r),j=0,A=b.length;j<A;++j)(T=b[j])&&yo(T,a,r,j,b,D);f.push(b),d.push(v)}return new Yn(f,d,a,r)}var yT=cr.prototype.constructor;function vT(){return new yT(this._groups,this._parents)}function bT(n,a){var r,u,c;return function(){var f=Ha(this,n),d=(this.style.removeProperty(n),Ha(this,n));return f===d?null:f===r&&d===u?c:c=a(r=f,u=d)}}function Oy(n){return function(){this.style.removeProperty(n)}}function xT(n,a,r){var u,c=r+"",f;return function(){var d=Ha(this,n);return d===c?null:d===u?f:f=a(u=d,r)}}function ST(n,a,r){var u,c,f;return function(){var d=Ha(this,n),g=r(this),m=g+"";return g==null&&(m=g=(this.style.removeProperty(n),Ha(this,n))),d===m?null:d===u&&m===c?f:(c=m,f=a(u=d,g))}}function _T(n,a){var r,u,c,f="style."+a,d="end."+f,g;return function(){var m=mn(this,n),h=m.on,v=m.value[f]==null?g||(g=Oy(a)):void 0;(h!==r||c!==v)&&(u=(r=h).copy()).on(d,c=v),m.on=u}}function wT(n,a,r){var u=(n+="")=="transform"?w3:Dy;return a==null?this.styleTween(n,bT(n,u)).on("end.style."+n,Oy(n)):typeof a=="function"?this.styleTween(n,ST(n,u,Gf(this,"style."+n,a))).each(_T(this._id,n)):this.styleTween(n,xT(n,u,a),r).on("end.style."+n,null)}function TT(n,a,r){return function(u){this.style.setProperty(n,a.call(this,u),r)}}function MT(n,a,r){var u,c;function f(){var d=a.apply(this,arguments);return d!==c&&(u=(c=d)&&TT(n,d,r)),u}return f._value=a,f}function ET(n,a,r){var u="style."+(n+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(a==null)return this.tween(u,null);if(typeof a!="function")throw new Error;return this.tween(u,MT(n,a,r??""))}function AT(n){return function(){this.textContent=n}}function CT(n){return function(){var a=n(this);this.textContent=a??""}}function NT(n){return this.tween("text",typeof n=="function"?CT(Gf(this,"text",n)):AT(n==null?"":n+""))}function zT(n){return function(a){this.textContent=n.call(this,a)}}function RT(n){var a,r;function u(){var c=n.apply(this,arguments);return c!==r&&(a=(r=c)&&zT(c)),a}return u._value=n,u}function DT(n){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,RT(n))}function OT(){for(var n=this._name,a=this._id,r=Uy(),u=this._groups,c=u.length,f=0;f<c;++f)for(var d=u[f],g=d.length,m,h=0;h<g;++h)if(m=d[h]){var v=an(m,a);yo(m,n,r,h,d,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Yn(u,this._parents,n,r)}function UT(){var n,a,r=this,u=r._id,c=r.size();return new Promise(function(f,d){var g={value:d},m={value:function(){--c===0&&f()}};r.each(function(){var h=mn(this,u),v=h.on;v!==n&&(a=(n=v).copy(),a._.cancel.push(g),a._.interrupt.push(g),a._.end.push(m)),h.on=a}),c===0&&f()})}var jT=0;function Yn(n,a,r,u){this._groups=n,this._parents=a,this._name=r,this._id=u}function Uy(){return++jT}var Un=cr.prototype;Yn.prototype={constructor:Yn,select:gT,selectAll:pT,selectChild:Un.selectChild,selectChildren:Un.selectChildren,filter:oT,merge:cT,selection:vT,transition:OT,call:Un.call,nodes:Un.nodes,node:Un.node,size:Un.size,empty:Un.empty,each:Un.each,on:dT,attr:Z3,attrTween:W3,style:wT,styleTween:ET,text:NT,textTween:DT,remove:mT,tween:Y3,delay:tT,duration:lT,ease:iT,easeVarying:uT,end:UT,[Symbol.iterator]:Un[Symbol.iterator]};function kT(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var HT={time:null,delay:0,duration:250,ease:kT};function LT(n,a){for(var r;!(r=n.__transition)||!(r=r[a]);)if(!(n=n.parentNode))throw new Error(`transition ${a} not found`);return r}function YT(n){var a,r;n instanceof Yn?(a=n._id,n=n._name):(a=Uy(),(r=HT).time=Bf(),n=n==null?null:n+"");for(var u=this._groups,c=u.length,f=0;f<c;++f)for(var d=u[f],g=d.length,m,h=0;h<g;++h)(m=d[h])&&yo(m,n,a,h,d,r||LT(m,a));return new Yn(u,this._parents,n,a)}cr.prototype.interrupt=k3;cr.prototype.transition=YT;const Sf=Math.PI,_f=2*Sf,Bl=1e-6,BT=_f-Bl;function jy(n){this._+=n[0];for(let a=1,r=n.length;a<r;++a)this._+=arguments[a]+n[a]}function qT(n){let a=Math.floor(n);if(!(a>=0))throw new Error(`invalid digits: ${n}`);if(a>15)return jy;const r=10**a;return function(u){this._+=u[0];for(let c=1,f=u.length;c<f;++c)this._+=Math.round(arguments[c]*r)/r+u[c]}}class GT{constructor(a){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=a==null?jy:qT(a)}moveTo(a,r){this._append`M${this._x0=this._x1=+a},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(a,r){this._append`L${this._x1=+a},${this._y1=+r}`}quadraticCurveTo(a,r,u,c){this._append`Q${+a},${+r},${this._x1=+u},${this._y1=+c}`}bezierCurveTo(a,r,u,c,f,d){this._append`C${+a},${+r},${+u},${+c},${this._x1=+f},${this._y1=+d}`}arcTo(a,r,u,c,f){if(a=+a,r=+r,u=+u,c=+c,f=+f,f<0)throw new Error(`negative radius: ${f}`);let d=this._x1,g=this._y1,m=u-a,h=c-r,v=d-a,y=g-r,b=v*v+y*y;if(this._x1===null)this._append`M${this._x1=a},${this._y1=r}`;else if(b>Bl)if(!(Math.abs(y*m-h*v)>Bl)||!f)this._append`L${this._x1=a},${this._y1=r}`;else{let T=u-d,D=c-g,j=m*m+h*h,A=T*T+D*D,N=Math.sqrt(j),Q=Math.sqrt(b),G=f*Math.tan((Sf-Math.acos((j+b-A)/(2*N*Q)))/2),nt=G/Q,it=G/N;Math.abs(nt-1)>Bl&&this._append`L${a+nt*v},${r+nt*y}`,this._append`A${f},${f},0,0,${+(y*T>v*D)},${this._x1=a+it*m},${this._y1=r+it*h}`}}arc(a,r,u,c,f,d){if(a=+a,r=+r,u=+u,d=!!d,u<0)throw new Error(`negative radius: ${u}`);let g=u*Math.cos(c),m=u*Math.sin(c),h=a+g,v=r+m,y=1^d,b=d?c-f:f-c;this._x1===null?this._append`M${h},${v}`:(Math.abs(this._x1-h)>Bl||Math.abs(this._y1-v)>Bl)&&this._append`L${h},${v}`,u&&(b<0&&(b=b%_f+_f),b>BT?this._append`A${u},${u},0,1,${y},${a-g},${r-m}A${u},${u},0,1,${y},${this._x1=h},${this._y1=v}`:b>Bl&&this._append`A${u},${u},0,${+(b>=Sf)},${y},${this._x1=a+u*Math.cos(f)},${this._y1=r+u*Math.sin(f)}`)}rect(a,r,u,c){this._append`M${this._x0=this._x1=+a},${this._y0=this._y1=+r}h${u=+u}v${+c}h${-u}Z`}toString(){return this._}}function XT(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function ao(n,a){if(!isFinite(n)||n===0)return null;var r=(n=a?n.toExponential(a-1):n.toExponential()).indexOf("e"),u=n.slice(0,r);return[u.length>1?u[0]+u.slice(2):u,+n.slice(r+1)]}function Ya(n){return n=ao(Math.abs(n)),n?n[1]:NaN}function VT(n,a){return function(r,u){for(var c=r.length,f=[],d=0,g=n[0],m=0;c>0&&g>0&&(m+g+1>u&&(g=Math.max(1,u-m)),f.push(r.substring(c-=g,c+g)),!((m+=g+1)>u));)g=n[d=(d+1)%n.length];return f.reverse().join(a)}}function QT(n){return function(a){return a.replace(/[0-9]/g,function(r){return n[+r]})}}var ZT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function io(n){if(!(a=ZT.exec(n)))throw new Error("invalid format: "+n);var a;return new Xf({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}io.prototype=Xf.prototype;function Xf(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}Xf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $T(n){t:for(var a=n.length,r=1,u=-1,c;r<a;++r)switch(n[r]){case".":u=c=r;break;case"0":u===0&&(u=r),c=r;break;default:if(!+n[r])break t;u>0&&(u=0);break}return u>0?n.slice(0,u)+n.slice(c+1):n}var ro;function KT(n,a){var r=ao(n,a);if(!r)return ro=void 0,n.toPrecision(a);var u=r[0],c=r[1],f=c-(ro=Math.max(-8,Math.min(8,Math.floor(c/3)))*3)+1,d=u.length;return f===d?u:f>d?u+new Array(f-d+1).join("0"):f>0?u.slice(0,f)+"."+u.slice(f):"0."+new Array(1-f).join("0")+ao(n,Math.max(0,a+f-1))[0]}function Gg(n,a){var r=ao(n,a);if(!r)return n+"";var u=r[0],c=r[1];return c<0?"0."+new Array(-c).join("0")+u:u.length>c+1?u.slice(0,c+1)+"."+u.slice(c+1):u+new Array(c-u.length+2).join("0")}const Xg={"%":(n,a)=>(n*100).toFixed(a),b:n=>Math.round(n).toString(2),c:n=>n+"",d:XT,e:(n,a)=>n.toExponential(a),f:(n,a)=>n.toFixed(a),g:(n,a)=>n.toPrecision(a),o:n=>Math.round(n).toString(8),p:(n,a)=>Gg(n*100,a),r:Gg,s:KT,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Vg(n){return n}var Qg=Array.prototype.map,Zg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function JT(n){var a=n.grouping===void 0||n.thousands===void 0?Vg:VT(Qg.call(n.grouping,Number),n.thousands+""),r=n.currency===void 0?"":n.currency[0]+"",u=n.currency===void 0?"":n.currency[1]+"",c=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?Vg:QT(Qg.call(n.numerals,String)),d=n.percent===void 0?"%":n.percent+"",g=n.minus===void 0?"−":n.minus+"",m=n.nan===void 0?"NaN":n.nan+"";function h(y,b){y=io(y);var T=y.fill,D=y.align,j=y.sign,A=y.symbol,N=y.zero,Q=y.width,G=y.comma,nt=y.precision,it=y.trim,X=y.type;X==="n"?(G=!0,X="g"):Xg[X]||(nt===void 0&&(nt=12),it=!0,X="g"),(N||T==="0"&&D==="=")&&(N=!0,T="0",D="=");var K=(b&&b.prefix!==void 0?b.prefix:"")+(A==="$"?r:A==="#"&&/[boxX]/.test(X)?"0"+X.toLowerCase():""),P=(A==="$"?u:/[%p]/.test(X)?d:"")+(b&&b.suffix!==void 0?b.suffix:""),dt=Xg[X],Tt=/[defgprs%]/.test(X);nt=nt===void 0?6:/[gprs]/.test(X)?Math.max(1,Math.min(21,nt)):Math.max(0,Math.min(20,nt));function st(lt){var bt=K,O=P,F,w,Y;if(X==="c")O=dt(lt)+O,lt="";else{lt=+lt;var tt=lt<0||1/lt<0;if(lt=isNaN(lt)?m:dt(Math.abs(lt),nt),it&&(lt=$T(lt)),tt&&+lt==0&&j!=="+"&&(tt=!1),bt=(tt?j==="("?j:g:j==="-"||j==="("?"":j)+bt,O=(X==="s"&&!isNaN(lt)&&ro!==void 0?Zg[8+ro/3]:"")+O+(tt&&j==="("?")":""),Tt){for(F=-1,w=lt.length;++F<w;)if(Y=lt.charCodeAt(F),48>Y||Y>57){O=(Y===46?c+lt.slice(F+1):lt.slice(F))+O,lt=lt.slice(0,F);break}}}G&&!N&&(lt=a(lt,1/0));var rt=bt.length+lt.length+O.length,H=rt<Q?new Array(Q-rt+1).join(T):"";switch(G&&N&&(lt=a(H+lt,H.length?Q-O.length:1/0),H=""),D){case"<":lt=bt+lt+O+H;break;case"=":lt=bt+H+lt+O;break;case"^":lt=H.slice(0,rt=H.length>>1)+bt+lt+O+H.slice(rt);break;default:lt=H+bt+lt+O;break}return f(lt)}return st.toString=function(){return y+""},st}function v(y,b){var T=Math.max(-8,Math.min(8,Math.floor(Ya(b)/3)))*3,D=Math.pow(10,-T),j=h((y=io(y),y.type="f",y),{suffix:Zg[8+T/3]});return function(A){return j(D*A)}}return{format:h,formatPrefix:v}}var ku,ky,Hy;FT({thousands:",",grouping:[3],currency:["$",""]});function FT(n){return ku=JT(n),ky=ku.format,Hy=ku.formatPrefix,ku}function WT(n){return Math.max(0,-Ya(Math.abs(n)))}function IT(n,a){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ya(a)/3)))*3-Ya(Math.abs(n)))}function PT(n,a){return n=Math.abs(n),a=Math.abs(a)-n,Math.max(0,Ya(a)-Ya(n))+1}function tM(n){var a=0,r=n.children,u=r&&r.length;if(!u)a=1;else for(;--u>=0;)a+=r[u].value;n.value=a}function eM(){return this.eachAfter(tM)}function nM(n,a){let r=-1;for(const u of this)n.call(a,u,++r,this);return this}function lM(n,a){for(var r=this,u=[r],c,f,d=-1;r=u.pop();)if(n.call(a,r,++d,this),c=r.children)for(f=c.length-1;f>=0;--f)u.push(c[f]);return this}function aM(n,a){for(var r=this,u=[r],c=[],f,d,g,m=-1;r=u.pop();)if(c.push(r),f=r.children)for(d=0,g=f.length;d<g;++d)u.push(f[d]);for(;r=c.pop();)n.call(a,r,++m,this);return this}function iM(n,a){let r=-1;for(const u of this)if(n.call(a,u,++r,this))return u}function rM(n){return this.eachAfter(function(a){for(var r=+n(a.data)||0,u=a.children,c=u&&u.length;--c>=0;)r+=u[c].value;a.value=r})}function uM(n){return this.eachBefore(function(a){a.children&&a.children.sort(n)})}function oM(n){for(var a=this,r=cM(a,n),u=[a];a!==r;)a=a.parent,u.push(a);for(var c=u.length;n!==r;)u.splice(c,0,n),n=n.parent;return u}function cM(n,a){if(n===a)return n;var r=n.ancestors(),u=a.ancestors(),c=null;for(n=r.pop(),a=u.pop();n===a;)c=n,n=r.pop(),a=u.pop();return c}function sM(){for(var n=this,a=[n];n=n.parent;)a.push(n);return a}function fM(){return Array.from(this)}function dM(){var n=[];return this.eachBefore(function(a){a.children||n.push(a)}),n}function hM(){var n=this,a=[];return n.each(function(r){r!==n&&a.push({source:r.parent,target:r})}),a}function*mM(){var n=this,a,r=[n],u,c,f;do for(a=r.reverse(),r=[];n=a.pop();)if(yield n,u=n.children)for(c=0,f=u.length;c<f;++c)r.push(u[c]);while(r.length)}function Vf(n,a){n instanceof Map?(n=[void 0,n],a===void 0&&(a=yM)):a===void 0&&(a=pM);for(var r=new uo(n),u,c=[r],f,d,g,m;u=c.pop();)if((d=a(u.data))&&(m=(d=Array.from(d)).length))for(u.children=d,g=m-1;g>=0;--g)c.push(f=d[g]=new uo(d[g])),f.parent=u,f.depth=u.depth+1;return r.eachBefore(bM)}function gM(){return Vf(this).eachBefore(vM)}function pM(n){return n.children}function yM(n){return Array.isArray(n)?n[1]:null}function vM(n){n.data.value!==void 0&&(n.value=n.data.value),n.data=n.data.data}function bM(n){var a=0;do n.height=a;while((n=n.parent)&&n.height<++a)}function uo(n){this.data=n,this.depth=this.height=0,this.parent=null}uo.prototype=Vf.prototype={constructor:uo,count:eM,each:nM,eachAfter:aM,eachBefore:lM,find:iM,sum:rM,sort:uM,path:oM,ancestors:sM,descendants:fM,leaves:dM,links:hM,copy:gM,[Symbol.iterator]:mM};function xM(n){return n==null?null:SM(n)}function SM(n){if(typeof n!="function")throw new Error;return n}function $g(){return 0}function _M(n){return function(){return n}}const wM=1664525,TM=1013904223,Kg=4294967296;function MM(){let n=1;return()=>(n=(wM*n+TM)%Kg)/Kg}function EM(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function AM(n,a){let r=n.length,u,c;for(;r;)c=a()*r--|0,u=n[r],n[r]=n[c],n[c]=u;return n}function CM(n,a){for(var r=0,u=(n=AM(Array.from(n),a)).length,c=[],f,d;r<u;)f=n[r],d&&Ly(d,f)?++r:(d=zM(c=NM(c,f)),r=0);return d}function NM(n,a){var r,u;if($s(a,n))return[a];for(r=0;r<n.length;++r)if(Hu(a,n[r])&&$s(Wi(n[r],a),n))return[n[r],a];for(r=0;r<n.length-1;++r)for(u=r+1;u<n.length;++u)if(Hu(Wi(n[r],n[u]),a)&&Hu(Wi(n[r],a),n[u])&&Hu(Wi(n[u],a),n[r])&&$s(Yy(n[r],n[u],a),n))return[n[r],n[u],a];throw new Error}function Hu(n,a){var r=n.r-a.r,u=a.x-n.x,c=a.y-n.y;return r<0||r*r<u*u+c*c}function Ly(n,a){var r=n.r-a.r+Math.max(n.r,a.r,1)*1e-9,u=a.x-n.x,c=a.y-n.y;return r>0&&r*r>u*u+c*c}function $s(n,a){for(var r=0;r<a.length;++r)if(!Ly(n,a[r]))return!1;return!0}function zM(n){switch(n.length){case 1:return RM(n[0]);case 2:return Wi(n[0],n[1]);case 3:return Yy(n[0],n[1],n[2])}}function RM(n){return{x:n.x,y:n.y,r:n.r}}function Wi(n,a){var r=n.x,u=n.y,c=n.r,f=a.x,d=a.y,g=a.r,m=f-r,h=d-u,v=g-c,y=Math.sqrt(m*m+h*h);return{x:(r+f+m/y*v)/2,y:(u+d+h/y*v)/2,r:(y+c+g)/2}}function Yy(n,a,r){var u=n.x,c=n.y,f=n.r,d=a.x,g=a.y,m=a.r,h=r.x,v=r.y,y=r.r,b=u-d,T=u-h,D=c-g,j=c-v,A=m-f,N=y-f,Q=u*u+c*c-f*f,G=Q-d*d-g*g+m*m,nt=Q-h*h-v*v+y*y,it=T*D-b*j,X=(D*nt-j*G)/(it*2)-u,K=(j*A-D*N)/it,P=(T*G-b*nt)/(it*2)-c,dt=(b*N-T*A)/it,Tt=K*K+dt*dt-1,st=2*(f+X*K+P*dt),lt=X*X+P*P-f*f,bt=-(Math.abs(Tt)>1e-6?(st+Math.sqrt(st*st-4*Tt*lt))/(2*Tt):lt/st);return{x:u+X+K*bt,y:c+P+dt*bt,r:bt}}function Jg(n,a,r){var u=n.x-a.x,c,f,d=n.y-a.y,g,m,h=u*u+d*d;h?(f=a.r+r.r,f*=f,m=n.r+r.r,m*=m,f>m?(c=(h+m-f)/(2*h),g=Math.sqrt(Math.max(0,m/h-c*c)),r.x=n.x-c*u-g*d,r.y=n.y-c*d+g*u):(c=(h+f-m)/(2*h),g=Math.sqrt(Math.max(0,f/h-c*c)),r.x=a.x+c*u-g*d,r.y=a.y+c*d+g*u)):(r.x=a.x+r.r,r.y=a.y)}function Fg(n,a){var r=n.r+a.r-1e-6,u=a.x-n.x,c=a.y-n.y;return r>0&&r*r>u*u+c*c}function Wg(n){var a=n._,r=n.next._,u=a.r+r.r,c=(a.x*r.r+r.x*a.r)/u,f=(a.y*r.r+r.y*a.r)/u;return c*c+f*f}function Lu(n){this._=n,this.next=null,this.previous=null}function DM(n,a){if(!(f=(n=EM(n)).length))return 0;var r,u,c,f,d,g,m,h,v,y,b;if(r=n[0],r.x=0,r.y=0,!(f>1))return r.r;if(u=n[1],r.x=-u.r,u.x=r.r,u.y=0,!(f>2))return r.r+u.r;Jg(u,r,c=n[2]),r=new Lu(r),u=new Lu(u),c=new Lu(c),r.next=c.previous=u,u.next=r.previous=c,c.next=u.previous=r;t:for(m=3;m<f;++m){Jg(r._,u._,c=n[m]),c=new Lu(c),h=u.next,v=r.previous,y=u._.r,b=r._.r;do if(y<=b){if(Fg(h._,c._)){u=h,r.next=u,u.previous=r,--m;continue t}y+=h._.r,h=h.next}else{if(Fg(v._,c._)){r=v,r.next=u,u.previous=r,--m;continue t}b+=v._.r,v=v.previous}while(h!==v.next);for(c.previous=r,c.next=u,r.next=u.previous=u=c,d=Wg(r);(c=c.next)!==u;)(g=Wg(c))<d&&(r=c,d=g);u=r.next}for(r=[u._],c=u;(c=c.next)!==u;)r.push(c._);for(c=CM(r,a),m=0;m<f;++m)r=n[m],r.x-=c.x,r.y-=c.y;return c.r}function OM(n){return Math.sqrt(n.value)}function UM(){var n=null,a=1,r=1,u=$g;function c(f){const d=MM();return f.x=a/2,f.y=r/2,n?f.eachBefore(Ig(n)).eachAfter(Ks(u,.5,d)).eachBefore(Pg(1)):f.eachBefore(Ig(OM)).eachAfter(Ks($g,1,d)).eachAfter(Ks(u,f.r/Math.min(a,r),d)).eachBefore(Pg(Math.min(a,r)/(2*f.r))),f}return c.radius=function(f){return arguments.length?(n=xM(f),c):n},c.size=function(f){return arguments.length?(a=+f[0],r=+f[1],c):[a,r]},c.padding=function(f){return arguments.length?(u=typeof f=="function"?f:_M(+f),c):u},c}function Ig(n){return function(a){a.children||(a.r=Math.max(0,+n(a)||0))}}function Ks(n,a,r){return function(u){if(c=u.children){var c,f,d=c.length,g=n(u)*a||0,m;if(g)for(f=0;f<d;++f)c[f].r+=g;if(m=DM(c,r),g)for(f=0;f<d;++f)c[f].r-=g;u.r=m+g}}}function Pg(n){return function(a){var r=a.parent;a.r*=n,r&&(a.x=r.x+n*a.x,a.y=r.y+n*a.y)}}function vo(n,a){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(a).domain(n);break}return this}const tp=Symbol("implicit");function By(){var n=new wg,a=[],r=[],u=tp;function c(f){let d=n.get(f);if(d===void 0){if(u!==tp)return u;n.set(f,d=a.push(f)-1)}return r[d%r.length]}return c.domain=function(f){if(!arguments.length)return a.slice();a=[],n=new wg;for(const d of f)n.has(d)||n.set(d,a.push(d)-1);return c},c.range=function(f){return arguments.length?(r=Array.from(f),c):r.slice()},c.unknown=function(f){return arguments.length?(u=f,c):u},c.copy=function(){return By(a,r).unknown(u)},vo.apply(c,arguments),c}function Qf(){var n=By().unknown(void 0),a=n.domain,r=n.range,u=0,c=1,f,d,g=!1,m=0,h=0,v=.5;delete n.unknown;function y(){var b=a().length,T=c<u,D=T?c:u,j=T?u:c;f=(j-D)/Math.max(1,b-m+h*2),g&&(f=Math.floor(f)),D+=(j-D-f*(b-m))*v,d=f*(1-m),g&&(D=Math.round(D),d=Math.round(d));var A=u_(b).map(function(N){return D+f*N});return r(T?A.reverse():A)}return n.domain=function(b){return arguments.length?(a(b),y()):a()},n.range=function(b){return arguments.length?([u,c]=b,u=+u,c=+c,y()):[u,c]},n.rangeRound=function(b){return[u,c]=b,u=+u,c=+c,g=!0,y()},n.bandwidth=function(){return d},n.step=function(){return f},n.round=function(b){return arguments.length?(g=!!b,y()):g},n.padding=function(b){return arguments.length?(m=Math.min(1,h=+b),y()):m},n.paddingInner=function(b){return arguments.length?(m=Math.min(1,b),y()):m},n.paddingOuter=function(b){return arguments.length?(h=+b,y()):h},n.align=function(b){return arguments.length?(v=Math.max(0,Math.min(1,b)),y()):v},n.copy=function(){return Qf(a(),[u,c]).round(g).paddingInner(m).paddingOuter(h).align(v)},vo.apply(y(),arguments)}function jM(n){return function(){return n}}function kM(n){return+n}var ep=[0,1];function Ua(n){return n}function wf(n,a){return(a-=n=+n)?function(r){return(r-n)/a}:jM(isNaN(a)?NaN:.5)}function HM(n,a){var r;return n>a&&(r=n,n=a,a=r),function(u){return Math.max(n,Math.min(a,u))}}function LM(n,a,r){var u=n[0],c=n[1],f=a[0],d=a[1];return c<u?(u=wf(c,u),f=r(d,f)):(u=wf(u,c),f=r(f,d)),function(g){return f(u(g))}}function YM(n,a,r){var u=Math.min(n.length,a.length)-1,c=new Array(u),f=new Array(u),d=-1;for(n[u]<n[0]&&(n=n.slice().reverse(),a=a.slice().reverse());++d<u;)c[d]=wf(n[d],n[d+1]),f[d]=r(a[d],a[d+1]);return function(g){var m=WS(n,g,1,u)-1;return f[m](c[m](g))}}function qy(n,a){return a.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function BM(){var n=ep,a=ep,r=Yf,u,c,f,d=Ua,g,m,h;function v(){var b=Math.min(n.length,a.length);return d!==Ua&&(d=HM(n[0],n[b-1])),g=b>2?YM:LM,m=h=null,y}function y(b){return b==null||isNaN(b=+b)?f:(m||(m=g(n.map(u),a,r)))(u(d(b)))}return y.invert=function(b){return d(c((h||(h=g(a,n.map(u),Pe)))(b)))},y.domain=function(b){return arguments.length?(n=Array.from(b,kM),v()):n.slice()},y.range=function(b){return arguments.length?(a=Array.from(b),v()):a.slice()},y.rangeRound=function(b){return a=Array.from(b),r=x3,v()},y.clamp=function(b){return arguments.length?(d=b?!0:Ua,v()):d!==Ua},y.interpolate=function(b){return arguments.length?(r=b,v()):r},y.unknown=function(b){return arguments.length?(f=b,y):f},function(b,T){return u=b,c=T,v()}}function Gy(){return BM()(Ua,Ua)}function qM(n,a,r,u){var c=sf(n,a,r),f;switch(u=io(u??",f"),u.type){case"s":{var d=Math.max(Math.abs(n),Math.abs(a));return u.precision==null&&!isNaN(f=IT(c,d))&&(u.precision=f),Hy(u,d)}case"":case"e":case"g":case"p":case"r":{u.precision==null&&!isNaN(f=PT(c,Math.max(Math.abs(n),Math.abs(a))))&&(u.precision=f-(u.type==="e"));break}case"f":case"%":{u.precision==null&&!isNaN(f=WT(c))&&(u.precision=f-(u.type==="%")*2);break}}return ky(u)}function GM(n){var a=n.domain;return n.ticks=function(r){var u=a();return i_(u[0],u[u.length-1],r??10)},n.tickFormat=function(r,u){var c=a();return qM(c[0],c[c.length-1],r??10,u)},n.nice=function(r){r==null&&(r=10);var u=a(),c=0,f=u.length-1,d=u[c],g=u[f],m,h,v=10;for(g<d&&(h=d,d=g,g=h,h=c,c=f,f=h);v-- >0;){if(h=cf(d,g,r),h===m)return u[c]=d,u[f]=g,a(u);if(h>0)d=Math.floor(d/h)*h,g=Math.ceil(g/h)*h;else if(h<0)d=Math.ceil(d*h)/h,g=Math.floor(g*h)/h;else break;m=h}return n},n}function Xy(){var n=Gy();return n.copy=function(){return qy(n,Xy())},vo.apply(n,arguments),GM(n)}function XM(n,a){n=n.slice();var r=0,u=n.length-1,c=n[r],f=n[u],d;return f<c&&(d=r,r=u,u=d,d=c,c=f,f=d),n[r]=a.floor(c),n[u]=a.ceil(f),n}const Js=new Date,Fs=new Date;function ae(n,a,r,u){function c(f){return n(f=arguments.length===0?new Date:new Date(+f)),f}return c.floor=f=>(n(f=new Date(+f)),f),c.ceil=f=>(n(f=new Date(f-1)),a(f,1),n(f),f),c.round=f=>{const d=c(f),g=c.ceil(f);return f-d<g-f?d:g},c.offset=(f,d)=>(a(f=new Date(+f),d==null?1:Math.floor(d)),f),c.range=(f,d,g)=>{const m=[];if(f=c.ceil(f),g=g==null?1:Math.floor(g),!(f<d)||!(g>0))return m;let h;do m.push(h=new Date(+f)),a(f,g),n(f);while(h<f&&f<d);return m},c.filter=f=>ae(d=>{if(d>=d)for(;n(d),!f(d);)d.setTime(d-1)},(d,g)=>{if(d>=d)if(g<0)for(;++g<=0;)for(;a(d,-1),!f(d););else for(;--g>=0;)for(;a(d,1),!f(d););}),r&&(c.count=(f,d)=>(Js.setTime(+f),Fs.setTime(+d),n(Js),n(Fs),Math.floor(r(Js,Fs))),c.every=f=>(f=Math.floor(f),!isFinite(f)||!(f>0)?null:f>1?c.filter(u?d=>u(d)%f===0:d=>c.count(0,d)%f===0):c)),c}const oo=ae(()=>{},(n,a)=>{n.setTime(+n+a)},(n,a)=>a-n);oo.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?ae(a=>{a.setTime(Math.floor(a/n)*n)},(a,r)=>{a.setTime(+a+r*n)},(a,r)=>(r-a)/n):oo);oo.range;const jn=1e3,Ke=jn*60,kn=Ke*60,Bn=kn*24,Zf=Bn*7,np=Bn*30,Ws=Bn*365,ja=ae(n=>{n.setTime(n-n.getMilliseconds())},(n,a)=>{n.setTime(+n+a*jn)},(n,a)=>(a-n)/jn,n=>n.getUTCSeconds());ja.range;const $f=ae(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*jn)},(n,a)=>{n.setTime(+n+a*Ke)},(n,a)=>(a-n)/Ke,n=>n.getMinutes());$f.range;const VM=ae(n=>{n.setUTCSeconds(0,0)},(n,a)=>{n.setTime(+n+a*Ke)},(n,a)=>(a-n)/Ke,n=>n.getUTCMinutes());VM.range;const Kf=ae(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*jn-n.getMinutes()*Ke)},(n,a)=>{n.setTime(+n+a*kn)},(n,a)=>(a-n)/kn,n=>n.getHours());Kf.range;const QM=ae(n=>{n.setUTCMinutes(0,0,0)},(n,a)=>{n.setTime(+n+a*kn)},(n,a)=>(a-n)/kn,n=>n.getUTCHours());QM.range;const fr=ae(n=>n.setHours(0,0,0,0),(n,a)=>n.setDate(n.getDate()+a),(n,a)=>(a-n-(a.getTimezoneOffset()-n.getTimezoneOffset())*Ke)/Bn,n=>n.getDate()-1);fr.range;const Jf=ae(n=>{n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCDate(n.getUTCDate()+a)},(n,a)=>(a-n)/Bn,n=>n.getUTCDate()-1);Jf.range;const ZM=ae(n=>{n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCDate(n.getUTCDate()+a)},(n,a)=>(a-n)/Bn,n=>Math.floor(n/Bn));ZM.range;function $l(n){return ae(a=>{a.setDate(a.getDate()-(a.getDay()+7-n)%7),a.setHours(0,0,0,0)},(a,r)=>{a.setDate(a.getDate()+r*7)},(a,r)=>(r-a-(r.getTimezoneOffset()-a.getTimezoneOffset())*Ke)/Zf)}const bo=$l(0),co=$l(1),$M=$l(2),KM=$l(3),Ba=$l(4),JM=$l(5),FM=$l(6);bo.range;co.range;$M.range;KM.range;Ba.range;JM.range;FM.range;function Kl(n){return ae(a=>{a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-n)%7),a.setUTCHours(0,0,0,0)},(a,r)=>{a.setUTCDate(a.getUTCDate()+r*7)},(a,r)=>(r-a)/Zf)}const Vy=Kl(0),so=Kl(1),WM=Kl(2),IM=Kl(3),qa=Kl(4),PM=Kl(5),t4=Kl(6);Vy.range;so.range;WM.range;IM.range;qa.range;PM.range;t4.range;const Ff=ae(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,a)=>{n.setMonth(n.getMonth()+a)},(n,a)=>a.getMonth()-n.getMonth()+(a.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Ff.range;const e4=ae(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCMonth(n.getUTCMonth()+a)},(n,a)=>a.getUTCMonth()-n.getUTCMonth()+(a.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());e4.range;const qn=ae(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,a)=>{n.setFullYear(n.getFullYear()+a)},(n,a)=>a.getFullYear()-n.getFullYear(),n=>n.getFullYear());qn.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:ae(a=>{a.setFullYear(Math.floor(a.getFullYear()/n)*n),a.setMonth(0,1),a.setHours(0,0,0,0)},(a,r)=>{a.setFullYear(a.getFullYear()+r*n)});qn.range;const Ql=ae(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,a)=>{n.setUTCFullYear(n.getUTCFullYear()+a)},(n,a)=>a.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());Ql.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:ae(a=>{a.setUTCFullYear(Math.floor(a.getUTCFullYear()/n)*n),a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},(a,r)=>{a.setUTCFullYear(a.getUTCFullYear()+r*n)});Ql.range;function n4(n,a,r,u,c,f){const d=[[ja,1,jn],[ja,5,5*jn],[ja,15,15*jn],[ja,30,30*jn],[f,1,Ke],[f,5,5*Ke],[f,15,15*Ke],[f,30,30*Ke],[c,1,kn],[c,3,3*kn],[c,6,6*kn],[c,12,12*kn],[u,1,Bn],[u,2,2*Bn],[r,1,Zf],[a,1,np],[a,3,3*np],[n,1,Ws]];function g(h,v,y){const b=v<h;b&&([h,v]=[v,h]);const T=y&&typeof y.range=="function"?y:m(h,v,y),D=T?T.range(h,+v+1):[];return b?D.reverse():D}function m(h,v,y){const b=Math.abs(v-h)/y,T=Of(([,,A])=>A).right(d,b);if(T===d.length)return n.every(sf(h/Ws,v/Ws,y));if(T===0)return oo.every(Math.max(sf(h,v,y),1));const[D,j]=d[b/d[T-1][2]<d[T][2]/b?T-1:T];return D.every(j)}return[g,m]}const[l4,a4]=n4(qn,Ff,bo,fr,Kf,$f);function Is(n){if(0<=n.y&&n.y<100){var a=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return a.setFullYear(n.y),a}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Ps(n){if(0<=n.y&&n.y<100){var a=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return a.setUTCFullYear(n.y),a}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Xi(n,a,r){return{y:n,m:a,d:r,H:0,M:0,S:0,L:0}}function i4(n){var a=n.dateTime,r=n.date,u=n.time,c=n.periods,f=n.days,d=n.shortDays,g=n.months,m=n.shortMonths,h=Vi(c),v=Qi(c),y=Vi(f),b=Qi(f),T=Vi(d),D=Qi(d),j=Vi(g),A=Qi(g),N=Vi(m),Q=Qi(m),G={a:Y,A:tt,b:rt,B:H,c:null,d:op,e:op,f:C4,g:L4,G:B4,H:M4,I:E4,j:A4,L:Qy,m:N4,M:z4,p:_,q:z,Q:fp,s:dp,S:R4,u:D4,U:O4,V:U4,w:j4,W:k4,x:null,X:null,y:H4,Y:Y4,Z:q4,"%":sp},nt={a:I,A:V,b:et,B:at,c:null,d:cp,e:cp,f:Q4,g:eE,G:lE,H:G4,I:X4,j:V4,L:$y,m:Z4,M:$4,p:mt,q:zt,Q:fp,s:dp,S:K4,u:J4,U:F4,V:W4,w:I4,W:P4,x:null,X:null,y:tE,Y:nE,Z:aE,"%":sp},it={a:Tt,A:st,b:lt,B:bt,c:O,d:rp,e:rp,f:S4,g:ip,G:ap,H:up,I:up,j:y4,L:x4,m:p4,M:v4,p:dt,q:g4,Q:w4,s:T4,S:b4,u:s4,U:f4,V:d4,w:c4,W:h4,x:F,X:w,y:ip,Y:ap,Z:m4,"%":_4};G.x=X(r,G),G.X=X(u,G),G.c=X(a,G),nt.x=X(r,nt),nt.X=X(u,nt),nt.c=X(a,nt);function X(J,pt){return function(yt){var W=[],Bt=-1,xt=0,Gt=J.length,$t,Me,Gn;for(yt instanceof Date||(yt=new Date(+yt));++Bt<Gt;)J.charCodeAt(Bt)===37&&(W.push(J.slice(xt,Bt)),(Me=lp[$t=J.charAt(++Bt)])!=null?$t=J.charAt(++Bt):Me=$t==="e"?" ":"0",(Gn=pt[$t])&&($t=Gn(yt,Me)),W.push($t),xt=Bt+1);return W.push(J.slice(xt,Bt)),W.join("")}}function K(J,pt){return function(yt){var W=Xi(1900,void 0,1),Bt=P(W,J,yt+="",0),xt,Gt;if(Bt!=yt.length)return null;if("Q"in W)return new Date(W.Q);if("s"in W)return new Date(W.s*1e3+("L"in W?W.L:0));if(pt&&!("Z"in W)&&(W.Z=0),"p"in W&&(W.H=W.H%12+W.p*12),W.m===void 0&&(W.m="q"in W?W.q:0),"V"in W){if(W.V<1||W.V>53)return null;"w"in W||(W.w=1),"Z"in W?(xt=Ps(Xi(W.y,0,1)),Gt=xt.getUTCDay(),xt=Gt>4||Gt===0?so.ceil(xt):so(xt),xt=Jf.offset(xt,(W.V-1)*7),W.y=xt.getUTCFullYear(),W.m=xt.getUTCMonth(),W.d=xt.getUTCDate()+(W.w+6)%7):(xt=Is(Xi(W.y,0,1)),Gt=xt.getDay(),xt=Gt>4||Gt===0?co.ceil(xt):co(xt),xt=fr.offset(xt,(W.V-1)*7),W.y=xt.getFullYear(),W.m=xt.getMonth(),W.d=xt.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),Gt="Z"in W?Ps(Xi(W.y,0,1)).getUTCDay():Is(Xi(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(Gt+5)%7:W.w+W.U*7-(Gt+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,Ps(W)):Is(W)}}function P(J,pt,yt,W){for(var Bt=0,xt=pt.length,Gt=yt.length,$t,Me;Bt<xt;){if(W>=Gt)return-1;if($t=pt.charCodeAt(Bt++),$t===37){if($t=pt.charAt(Bt++),Me=it[$t in lp?pt.charAt(Bt++):$t],!Me||(W=Me(J,yt,W))<0)return-1}else if($t!=yt.charCodeAt(W++))return-1}return W}function dt(J,pt,yt){var W=h.exec(pt.slice(yt));return W?(J.p=v.get(W[0].toLowerCase()),yt+W[0].length):-1}function Tt(J,pt,yt){var W=T.exec(pt.slice(yt));return W?(J.w=D.get(W[0].toLowerCase()),yt+W[0].length):-1}function st(J,pt,yt){var W=y.exec(pt.slice(yt));return W?(J.w=b.get(W[0].toLowerCase()),yt+W[0].length):-1}function lt(J,pt,yt){var W=N.exec(pt.slice(yt));return W?(J.m=Q.get(W[0].toLowerCase()),yt+W[0].length):-1}function bt(J,pt,yt){var W=j.exec(pt.slice(yt));return W?(J.m=A.get(W[0].toLowerCase()),yt+W[0].length):-1}function O(J,pt,yt){return P(J,a,pt,yt)}function F(J,pt,yt){return P(J,r,pt,yt)}function w(J,pt,yt){return P(J,u,pt,yt)}function Y(J){return d[J.getDay()]}function tt(J){return f[J.getDay()]}function rt(J){return m[J.getMonth()]}function H(J){return g[J.getMonth()]}function _(J){return c[+(J.getHours()>=12)]}function z(J){return 1+~~(J.getMonth()/3)}function I(J){return d[J.getUTCDay()]}function V(J){return f[J.getUTCDay()]}function et(J){return m[J.getUTCMonth()]}function at(J){return g[J.getUTCMonth()]}function mt(J){return c[+(J.getUTCHours()>=12)]}function zt(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var pt=X(J+="",G);return pt.toString=function(){return J},pt},parse:function(J){var pt=K(J+="",!1);return pt.toString=function(){return J},pt},utcFormat:function(J){var pt=X(J+="",nt);return pt.toString=function(){return J},pt},utcParse:function(J){var pt=K(J+="",!0);return pt.toString=function(){return J},pt}}}var lp={"-":"",_:" ",0:"0"},oe=/^\s*\d+/,r4=/^%/,u4=/[\\^$*+?|[\]().{}]/g;function Ot(n,a,r){var u=n<0?"-":"",c=(u?-n:n)+"",f=c.length;return u+(f<r?new Array(r-f+1).join(a)+c:c)}function o4(n){return n.replace(u4,"\\$&")}function Vi(n){return new RegExp("^(?:"+n.map(o4).join("|")+")","i")}function Qi(n){return new Map(n.map((a,r)=>[a.toLowerCase(),r]))}function c4(n,a,r){var u=oe.exec(a.slice(r,r+1));return u?(n.w=+u[0],r+u[0].length):-1}function s4(n,a,r){var u=oe.exec(a.slice(r,r+1));return u?(n.u=+u[0],r+u[0].length):-1}function f4(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.U=+u[0],r+u[0].length):-1}function d4(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.V=+u[0],r+u[0].length):-1}function h4(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.W=+u[0],r+u[0].length):-1}function ap(n,a,r){var u=oe.exec(a.slice(r,r+4));return u?(n.y=+u[0],r+u[0].length):-1}function ip(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.y=+u[0]+(+u[0]>68?1900:2e3),r+u[0].length):-1}function m4(n,a,r){var u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(r,r+6));return u?(n.Z=u[1]?0:-(u[2]+(u[3]||"00")),r+u[0].length):-1}function g4(n,a,r){var u=oe.exec(a.slice(r,r+1));return u?(n.q=u[0]*3-3,r+u[0].length):-1}function p4(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.m=u[0]-1,r+u[0].length):-1}function rp(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.d=+u[0],r+u[0].length):-1}function y4(n,a,r){var u=oe.exec(a.slice(r,r+3));return u?(n.m=0,n.d=+u[0],r+u[0].length):-1}function up(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.H=+u[0],r+u[0].length):-1}function v4(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.M=+u[0],r+u[0].length):-1}function b4(n,a,r){var u=oe.exec(a.slice(r,r+2));return u?(n.S=+u[0],r+u[0].length):-1}function x4(n,a,r){var u=oe.exec(a.slice(r,r+3));return u?(n.L=+u[0],r+u[0].length):-1}function S4(n,a,r){var u=oe.exec(a.slice(r,r+6));return u?(n.L=Math.floor(u[0]/1e3),r+u[0].length):-1}function _4(n,a,r){var u=r4.exec(a.slice(r,r+1));return u?r+u[0].length:-1}function w4(n,a,r){var u=oe.exec(a.slice(r));return u?(n.Q=+u[0],r+u[0].length):-1}function T4(n,a,r){var u=oe.exec(a.slice(r));return u?(n.s=+u[0],r+u[0].length):-1}function op(n,a){return Ot(n.getDate(),a,2)}function M4(n,a){return Ot(n.getHours(),a,2)}function E4(n,a){return Ot(n.getHours()%12||12,a,2)}function A4(n,a){return Ot(1+fr.count(qn(n),n),a,3)}function Qy(n,a){return Ot(n.getMilliseconds(),a,3)}function C4(n,a){return Qy(n,a)+"000"}function N4(n,a){return Ot(n.getMonth()+1,a,2)}function z4(n,a){return Ot(n.getMinutes(),a,2)}function R4(n,a){return Ot(n.getSeconds(),a,2)}function D4(n){var a=n.getDay();return a===0?7:a}function O4(n,a){return Ot(bo.count(qn(n)-1,n),a,2)}function Zy(n){var a=n.getDay();return a>=4||a===0?Ba(n):Ba.ceil(n)}function U4(n,a){return n=Zy(n),Ot(Ba.count(qn(n),n)+(qn(n).getDay()===4),a,2)}function j4(n){return n.getDay()}function k4(n,a){return Ot(co.count(qn(n)-1,n),a,2)}function H4(n,a){return Ot(n.getFullYear()%100,a,2)}function L4(n,a){return n=Zy(n),Ot(n.getFullYear()%100,a,2)}function Y4(n,a){return Ot(n.getFullYear()%1e4,a,4)}function B4(n,a){var r=n.getDay();return n=r>=4||r===0?Ba(n):Ba.ceil(n),Ot(n.getFullYear()%1e4,a,4)}function q4(n){var a=n.getTimezoneOffset();return(a>0?"-":(a*=-1,"+"))+Ot(a/60|0,"0",2)+Ot(a%60,"0",2)}function cp(n,a){return Ot(n.getUTCDate(),a,2)}function G4(n,a){return Ot(n.getUTCHours(),a,2)}function X4(n,a){return Ot(n.getUTCHours()%12||12,a,2)}function V4(n,a){return Ot(1+Jf.count(Ql(n),n),a,3)}function $y(n,a){return Ot(n.getUTCMilliseconds(),a,3)}function Q4(n,a){return $y(n,a)+"000"}function Z4(n,a){return Ot(n.getUTCMonth()+1,a,2)}function $4(n,a){return Ot(n.getUTCMinutes(),a,2)}function K4(n,a){return Ot(n.getUTCSeconds(),a,2)}function J4(n){var a=n.getUTCDay();return a===0?7:a}function F4(n,a){return Ot(Vy.count(Ql(n)-1,n),a,2)}function Ky(n){var a=n.getUTCDay();return a>=4||a===0?qa(n):qa.ceil(n)}function W4(n,a){return n=Ky(n),Ot(qa.count(Ql(n),n)+(Ql(n).getUTCDay()===4),a,2)}function I4(n){return n.getUTCDay()}function P4(n,a){return Ot(so.count(Ql(n)-1,n),a,2)}function tE(n,a){return Ot(n.getUTCFullYear()%100,a,2)}function eE(n,a){return n=Ky(n),Ot(n.getUTCFullYear()%100,a,2)}function nE(n,a){return Ot(n.getUTCFullYear()%1e4,a,4)}function lE(n,a){var r=n.getUTCDay();return n=r>=4||r===0?qa(n):qa.ceil(n),Ot(n.getUTCFullYear()%1e4,a,4)}function aE(){return"+0000"}function sp(){return"%"}function fp(n){return+n}function dp(n){return Math.floor(+n/1e3)}var Oa,Wf,Jy;iE({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function iE(n){return Oa=i4(n),Wf=Oa.format,Jy=Oa.parse,Oa.utcFormat,Oa.utcParse,Oa}function rE(n){return new Date(n)}function uE(n){return n instanceof Date?+n:+new Date(+n)}function Fy(n,a,r,u,c,f,d,g,m,h){var v=Gy(),y=v.invert,b=v.domain,T=h(".%L"),D=h(":%S"),j=h("%I:%M"),A=h("%I %p"),N=h("%a %d"),Q=h("%b %d"),G=h("%B"),nt=h("%Y");function it(X){return(m(X)<X?T:g(X)<X?D:d(X)<X?j:f(X)<X?A:u(X)<X?c(X)<X?N:Q:r(X)<X?G:nt)(X)}return v.invert=function(X){return new Date(y(X))},v.domain=function(X){return arguments.length?b(Array.from(X,uE)):b().map(rE)},v.ticks=function(X){var K=b();return n(K[0],K[K.length-1],X??10)},v.tickFormat=function(X,K){return K==null?it:h(K)},v.nice=function(X){var K=b();return(!X||typeof X.range!="function")&&(X=a(K[0],K[K.length-1],X??10)),X?b(XM(K,X)):v},v.copy=function(){return qy(v,Fy(n,a,r,u,c,f,d,g,m,h))},v}function If(){return vo.apply(Fy(l4,a4,qn,Ff,bo,fr,Kf,$f,ja,Wf).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ue(n){return function(){return n}}function Wy(n){let a=3;return n.digits=function(r){if(!arguments.length)return a;if(r==null)a=null;else{const u=Math.floor(r);if(!(u>=0))throw new RangeError(`invalid digits: ${r}`);a=u}return n},()=>new GT(a)}function Iy(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function Py(n){this._context=n}Py.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){switch(n=+n,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;default:this._context.lineTo(n,a);break}}};function tv(n){return new Py(n)}function ev(n){return n[0]}function nv(n){return n[1]}function lv(n,a){var r=ue(!0),u=null,c=tv,f=null,d=Wy(g);n=typeof n=="function"?n:n===void 0?ev:ue(n),a=typeof a=="function"?a:a===void 0?nv:ue(a);function g(m){var h,v=(m=Iy(m)).length,y,b=!1,T;for(u==null&&(f=c(T=d())),h=0;h<=v;++h)!(h<v&&r(y=m[h],h,m))===b&&((b=!b)?f.lineStart():f.lineEnd()),b&&f.point(+n(y,h,m),+a(y,h,m));if(T)return f=null,T+""||null}return g.x=function(m){return arguments.length?(n=typeof m=="function"?m:ue(+m),g):n},g.y=function(m){return arguments.length?(a=typeof m=="function"?m:ue(+m),g):a},g.defined=function(m){return arguments.length?(r=typeof m=="function"?m:ue(!!m),g):r},g.curve=function(m){return arguments.length?(c=m,u!=null&&(f=c(u)),g):c},g.context=function(m){return arguments.length?(m==null?u=f=null:f=c(u=m),g):u},g}function oE(n,a,r){var u=null,c=ue(!0),f=null,d=tv,g=null,m=Wy(h);n=typeof n=="function"?n:n===void 0?ev:ue(+n),a=typeof a=="function"?a:ue(a===void 0?0:+a),r=typeof r=="function"?r:r===void 0?nv:ue(+r);function h(y){var b,T,D,j=(y=Iy(y)).length,A,N=!1,Q,G=new Array(j),nt=new Array(j);for(f==null&&(g=d(Q=m())),b=0;b<=j;++b){if(!(b<j&&c(A=y[b],b,y))===N)if(N=!N)T=b,g.areaStart(),g.lineStart();else{for(g.lineEnd(),g.lineStart(),D=b-1;D>=T;--D)g.point(G[D],nt[D]);g.lineEnd(),g.areaEnd()}N&&(G[b]=+n(A,b,y),nt[b]=+a(A,b,y),g.point(u?+u(A,b,y):G[b],r?+r(A,b,y):nt[b]))}if(Q)return g=null,Q+""||null}function v(){return lv().defined(c).curve(d).context(f)}return h.x=function(y){return arguments.length?(n=typeof y=="function"?y:ue(+y),u=null,h):n},h.x0=function(y){return arguments.length?(n=typeof y=="function"?y:ue(+y),h):n},h.x1=function(y){return arguments.length?(u=y==null?null:typeof y=="function"?y:ue(+y),h):u},h.y=function(y){return arguments.length?(a=typeof y=="function"?y:ue(+y),r=null,h):a},h.y0=function(y){return arguments.length?(a=typeof y=="function"?y:ue(+y),h):a},h.y1=function(y){return arguments.length?(r=y==null?null:typeof y=="function"?y:ue(+y),h):r},h.lineX0=h.lineY0=function(){return v().x(n).y(a)},h.lineY1=function(){return v().x(n).y(r)},h.lineX1=function(){return v().x(u).y(a)},h.defined=function(y){return arguments.length?(c=typeof y=="function"?y:ue(!!y),h):c},h.curve=function(y){return arguments.length?(d=y,f!=null&&(g=d(f)),h):d},h.context=function(y){return arguments.length?(y==null?f=g=null:g=d(f=y),h):f},h}function hp(n){return n<0?-1:1}function mp(n,a,r){var u=n._x1-n._x0,c=a-n._x1,f=(n._y1-n._y0)/(u||c<0&&-0),d=(r-n._y1)/(c||u<0&&-0),g=(f*c+d*u)/(u+c);return(hp(f)+hp(d))*Math.min(Math.abs(f),Math.abs(d),.5*Math.abs(g))||0}function gp(n,a){var r=n._x1-n._x0;return r?(3*(n._y1-n._y0)/r-a)/2:a}function tf(n,a,r){var u=n._x0,c=n._y0,f=n._x1,d=n._y1,g=(f-u)/3;n._context.bezierCurveTo(u+g,c+g*a,f-g,d-g*r,f,d)}function fo(n){this._context=n}fo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:tf(this,this._t0,gp(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,a){var r=NaN;if(n=+n,a=+a,!(n===this._x1&&a===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 1:this._point=2;break;case 2:this._point=3,tf(this,gp(this,r=mp(this,n,a)),r);break;default:tf(this,this._t0,r=mp(this,n,a));break}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=a,this._t0=r}}};Object.create(fo.prototype).point=function(n,a){fo.prototype.point.call(this,a,n)};function pp(n){return new fo(n)}const Yu=n=>()=>n;function cE(n,{sourceEvent:a,target:r,transform:u,dispatch:c}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function Hn(n,a,r){this.k=n,this.x=a,this.y=r}Hn.prototype={constructor:Hn,scale:function(n){return n===1?this:new Hn(this.k*n,this.x,this.y)},translate:function(n,a){return n===0&a===0?this:new Hn(this.k,this.x+this.k*n,this.y+this.k*a)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var av=new Hn(1,0,0);Hn.prototype;function ef(n){n.stopImmediatePropagation()}function Zi(n){n.preventDefault(),n.stopImmediatePropagation()}function sE(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function fE(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function yp(){return this.__zoom||av}function dE(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function hE(){return navigator.maxTouchPoints||"ontouchstart"in this}function mE(n,a,r){var u=n.invertX(a[0][0])-r[0][0],c=n.invertX(a[1][0])-r[1][0],f=n.invertY(a[0][1])-r[0][1],d=n.invertY(a[1][1])-r[1][1];return n.translate(c>u?(u+c)/2:Math.min(0,u)||Math.max(0,c),d>f?(f+d)/2:Math.min(0,f)||Math.max(0,d))}function iv(){var n=sE,a=fE,r=mE,u=dE,c=hE,f=[0,1/0],d=[[-1/0,-1/0],[1/0,1/0]],g=250,m=C3,h=Uf("start","zoom","end"),v,y,b,T=500,D=150,j=0,A=10;function N(O){O.property("__zoom",yp).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",dt).on("dblclick.zoom",Tt).filter(c).on("touchstart.zoom",st).on("touchmove.zoom",lt).on("touchend.zoom touchcancel.zoom",bt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(O,F,w,Y){var tt=O.selection?O.selection():O;tt.property("__zoom",yp),O!==tt?it(O,F,w,Y):tt.interrupt().each(function(){X(this,arguments).event(Y).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},N.scaleBy=function(O,F,w,Y){N.scaleTo(O,function(){var tt=this.__zoom.k,rt=typeof F=="function"?F.apply(this,arguments):F;return tt*rt},w,Y)},N.scaleTo=function(O,F,w,Y){N.transform(O,function(){var tt=a.apply(this,arguments),rt=this.__zoom,H=w==null?nt(tt):typeof w=="function"?w.apply(this,arguments):w,_=rt.invert(H),z=typeof F=="function"?F.apply(this,arguments):F;return r(G(Q(rt,z),H,_),tt,d)},w,Y)},N.translateBy=function(O,F,w,Y){N.transform(O,function(){return r(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof w=="function"?w.apply(this,arguments):w),a.apply(this,arguments),d)},null,Y)},N.translateTo=function(O,F,w,Y,tt){N.transform(O,function(){var rt=a.apply(this,arguments),H=this.__zoom,_=Y==null?nt(rt):typeof Y=="function"?Y.apply(this,arguments):Y;return r(av.translate(_[0],_[1]).scale(H.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof w=="function"?-w.apply(this,arguments):-w),rt,d)},Y,tt)};function Q(O,F){return F=Math.max(f[0],Math.min(f[1],F)),F===O.k?O:new Hn(F,O.x,O.y)}function G(O,F,w){var Y=F[0]-w[0]*O.k,tt=F[1]-w[1]*O.k;return Y===O.x&&tt===O.y?O:new Hn(O.k,Y,tt)}function nt(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function it(O,F,w,Y){O.on("start.zoom",function(){X(this,arguments).event(Y).start()}).on("interrupt.zoom end.zoom",function(){X(this,arguments).event(Y).end()}).tween("zoom",function(){var tt=this,rt=arguments,H=X(tt,rt).event(Y),_=a.apply(tt,rt),z=w==null?nt(_):typeof w=="function"?w.apply(tt,rt):w,I=Math.max(_[1][0]-_[0][0],_[1][1]-_[0][1]),V=tt.__zoom,et=typeof F=="function"?F.apply(tt,rt):F,at=m(V.invert(z).concat(I/V.k),et.invert(z).concat(I/et.k));return function(mt){if(mt===1)mt=et;else{var zt=at(mt),J=I/zt[2];mt=new Hn(J,z[0]-zt[0]*J,z[1]-zt[1]*J)}H.zoom(null,mt)}})}function X(O,F,w){return!w&&O.__zooming||new K(O,F)}function K(O,F){this.that=O,this.args=F,this.active=0,this.sourceEvent=null,this.extent=a.apply(O,F),this.taps=0}K.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,F){return this.mouse&&O!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var F=ke(this.that).datum();h.call(O,this.that,new cE(O,{sourceEvent:this.sourceEvent,target:N,transform:this.that.__zoom,dispatch:h}),F)}};function P(O,...F){if(!n.apply(this,arguments))return;var w=X(this,F).event(O),Y=this.__zoom,tt=Math.max(f[0],Math.min(f[1],Y.k*Math.pow(2,u.apply(this,arguments)))),rt=Ll(O);if(w.wheel)(w.mouse[0][0]!==rt[0]||w.mouse[0][1]!==rt[1])&&(w.mouse[1]=Y.invert(w.mouse[0]=rt)),clearTimeout(w.wheel);else{if(Y.k===tt)return;w.mouse=[rt,Y.invert(rt)],$u(this),w.start()}Zi(O),w.wheel=setTimeout(H,D),w.zoom("mouse",r(G(Q(Y,tt),w.mouse[0],w.mouse[1]),w.extent,d));function H(){w.wheel=null,w.end()}}function dt(O,...F){if(b||!n.apply(this,arguments))return;var w=O.currentTarget,Y=X(this,F,!0).event(O),tt=ke(O.view).on("mousemove.zoom",z,!0).on("mouseup.zoom",I,!0),rt=Ll(O,w),H=O.clientX,_=O.clientY;Fw(O.view),ef(O),Y.mouse=[rt,this.__zoom.invert(rt)],$u(this),Y.start();function z(V){if(Zi(V),!Y.moved){var et=V.clientX-H,at=V.clientY-_;Y.moved=et*et+at*at>j}Y.event(V).zoom("mouse",r(G(Y.that.__zoom,Y.mouse[0]=Ll(V,w),Y.mouse[1]),Y.extent,d))}function I(V){tt.on("mousemove.zoom mouseup.zoom",null),Ww(V.view,Y.moved),Zi(V),Y.event(V).end()}}function Tt(O,...F){if(n.apply(this,arguments)){var w=this.__zoom,Y=Ll(O.changedTouches?O.changedTouches[0]:O,this),tt=w.invert(Y),rt=w.k*(O.shiftKey?.5:2),H=r(G(Q(w,rt),Y,tt),a.apply(this,F),d);Zi(O),g>0?ke(this).transition().duration(g).call(it,H,Y,O):ke(this).call(N.transform,H,Y,O)}}function st(O,...F){if(n.apply(this,arguments)){var w=O.touches,Y=w.length,tt=X(this,F,O.changedTouches.length===Y).event(O),rt,H,_,z;for(ef(O),H=0;H<Y;++H)_=w[H],z=Ll(_,this),z=[z,this.__zoom.invert(z),_.identifier],tt.touch0?!tt.touch1&&tt.touch0[2]!==z[2]&&(tt.touch1=z,tt.taps=0):(tt.touch0=z,rt=!0,tt.taps=1+!!v);v&&(v=clearTimeout(v)),rt&&(tt.taps<2&&(y=z[0],v=setTimeout(function(){v=null},T)),$u(this),tt.start())}}function lt(O,...F){if(this.__zooming){var w=X(this,F).event(O),Y=O.changedTouches,tt=Y.length,rt,H,_,z;for(Zi(O),rt=0;rt<tt;++rt)H=Y[rt],_=Ll(H,this),w.touch0&&w.touch0[2]===H.identifier?w.touch0[0]=_:w.touch1&&w.touch1[2]===H.identifier&&(w.touch1[0]=_);if(H=w.that.__zoom,w.touch1){var I=w.touch0[0],V=w.touch0[1],et=w.touch1[0],at=w.touch1[1],mt=(mt=et[0]-I[0])*mt+(mt=et[1]-I[1])*mt,zt=(zt=at[0]-V[0])*zt+(zt=at[1]-V[1])*zt;H=Q(H,Math.sqrt(mt/zt)),_=[(I[0]+et[0])/2,(I[1]+et[1])/2],z=[(V[0]+at[0])/2,(V[1]+at[1])/2]}else if(w.touch0)_=w.touch0[0],z=w.touch0[1];else return;w.zoom("touch",r(G(H,_,z),w.extent,d))}}function bt(O,...F){if(this.__zooming){var w=X(this,F).event(O),Y=O.changedTouches,tt=Y.length,rt,H;for(ef(O),b&&clearTimeout(b),b=setTimeout(function(){b=null},T),rt=0;rt<tt;++rt)H=Y[rt],w.touch0&&w.touch0[2]===H.identifier?delete w.touch0:w.touch1&&w.touch1[2]===H.identifier&&delete w.touch1;if(w.touch1&&!w.touch0&&(w.touch0=w.touch1,delete w.touch1),w.touch0)w.touch0[1]=this.__zoom.invert(w.touch0[0]);else if(w.end(),w.taps===2&&(H=Ll(H,this),Math.hypot(y[0]-H[0],y[1]-H[1])<A)){var _=ke(this).on("dblclick.zoom");_&&_.apply(this,arguments)}}}return N.wheelDelta=function(O){return arguments.length?(u=typeof O=="function"?O:Yu(+O),N):u},N.filter=function(O){return arguments.length?(n=typeof O=="function"?O:Yu(!!O),N):n},N.touchable=function(O){return arguments.length?(c=typeof O=="function"?O:Yu(!!O),N):c},N.extent=function(O){return arguments.length?(a=typeof O=="function"?O:Yu([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),N):a},N.scaleExtent=function(O){return arguments.length?(f[0]=+O[0],f[1]=+O[1],N):[f[0],f[1]]},N.translateExtent=function(O){return arguments.length?(d[0][0]=+O[0][0],d[1][0]=+O[1][0],d[0][1]=+O[0][1],d[1][1]=+O[1][1],N):[[d[0][0],d[0][1]],[d[1][0],d[1][1]]]},N.constrain=function(O){return arguments.length?(r=O,N):r},N.duration=function(O){return arguments.length?(g=+O,N):g},N.interpolate=function(O){return arguments.length?(m=O,N):m},N.on=function(){var O=h.on.apply(h,arguments);return O===h?N:O},N.clickDistance=function(O){return arguments.length?(j=(O=+O)*O,N):Math.sqrt(j)},N.tapDistance=function(O){return arguments.length?(A=+O,N):A},N}function gE({data:n}){const a=R.useRef(null);return R.useEffect(()=>{if(!a.current||n.length===0)return;const r=ke(a.current);r.selectAll("*").remove();const u=a.current.parentElement;if(!u)return;const c=u.clientWidth,f=250,d={top:20,right:20,bottom:40,left:50},g=c-d.left-d.right,m=f-d.top-d.bottom;r.attr("width",c).attr("height",f);const h=r.append("g").attr("transform",`translate(${d.left},${d.top})`),v=Jy("%Y-%m-%d"),y=n.map(K=>({date:v(K.week),count:K.count})),[b,T]=IS(y,K=>K.date),D=b.getTime()===T.getTime()?10080*60*1e3:0,j=If().domain([new Date(b.getTime()-D),new Date(T.getTime()+D)]).range([0,g]),A=Xy().domain([0,r_(y,K=>K.count)??0]).nice().range([m,0]),N=getComputedStyle(document.documentElement),Q=N.getPropertyValue("--muted-fg").trim()||"#94a3b8",G=N.getPropertyValue("--accent-color").trim()||"#10b981",nt=N.getPropertyValue("--border-color").trim()||"#334155";h.append("g").attr("transform",`translate(0,${m})`).call(er(j).ticks(6).tickFormat(Wf("%b %y"))).attr("color",Q).selectAll("line").attr("stroke",nt),h.append("g").call(cy(A).ticks(5)).attr("color",Q).selectAll("line").attr("stroke",nt);const it=oE().x(K=>j(K.date)).y0(m).y1(K=>A(K.count)).curve(pp);h.append("path").datum(y).attr("fill",G).attr("fill-opacity",.15).attr("d",it);const X=lv().x(K=>j(K.date)).y(K=>A(K.count)).curve(pp);h.append("path").datum(y).attr("fill","none").attr("stroke",G).attr("stroke-width",2).attr("d",X)},[n]),S.jsx("svg",{ref:a,className:"w-full"})}const vp=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,bp=$p,pE=(n,a)=>r=>{var u;if(a?.variants==null)return bp(n,r?.class,r?.className);const{variants:c,defaultVariants:f}=a,d=Object.keys(c).map(h=>{const v=r?.[h],y=f?.[h];if(v===null)return null;const b=vp(v)||vp(y);return c[h][b]}),g=r&&Object.entries(r).reduce((h,v)=>{let[y,b]=v;return b===void 0||(h[y]=b),h},{}),m=a==null||(u=a.compoundVariants)===null||u===void 0?void 0:u.reduce((h,v)=>{let{class:y,className:b,...T}=v;return Object.entries(T).every(D=>{let[j,A]=D;return Array.isArray(A)?A.includes({...f,...g}[j]):{...f,...g}[j]===A})?[...h,y,b]:h},[]);return bp(n,d,m,r?.class,r?.className)},yE=pE("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors",{variants:{variant:{default:"border-transparent bg-accent text-accent-foreground",secondary:"border-transparent bg-muted text-muted-foreground",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}});function ln({className:n,variant:a,...r}){return S.jsx("div",{className:nn(yE({variant:a}),n),...r})}function vE(){const{data:n,loading:a}=en("/api/stats"),{data:r}=en("/api/chunks?limit=10");return a||!n?S.jsx(or,{}):S.jsxs("div",{className:"space-y-6 animate-fade-in",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Overview"}),S.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[S.jsx(Du,{label:"Chunks",value:n.chunks,icon:S.jsx(B2,{className:"h-5 w-5"})}),S.jsx(Du,{label:"Edges",value:n.edges,icon:S.jsx(L2,{className:"h-5 w-5"})}),S.jsx(Du,{label:"Clusters",value:n.clusters,icon:S.jsx(Xp,{className:"h-5 w-5"})}),S.jsx(Du,{label:"Sessions",value:n.sessions,icon:S.jsx(Vp,{className:"h-5 w-5"})})]}),n.chunkTimeSeries.length>0&&S.jsxs(Pi,{children:[S.jsx(uf,{children:S.jsx(of,{children:"Chunks Over Time"})}),S.jsx(tr,{children:S.jsx(gE,{data:n.chunkTimeSeries})})]}),r?.chunks&&r.chunks.length>0&&S.jsxs(Pi,{children:[S.jsx(uf,{children:S.jsx(of,{children:"Recent Activity"})}),S.jsx(tr,{children:S.jsx("div",{className:"space-y-3",children:r.chunks.map(u=>S.jsxs("div",{className:"flex items-start gap-3 rounded-md border border-border p-3",children:[S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[S.jsx(ln,{variant:"secondary",children:u.sessionSlug}),S.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(u.startTime).toLocaleDateString()})]}),S.jsx("p",{className:"text-sm text-muted-foreground truncate",children:u.preview})]}),S.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[u.tokenCount," tokens"]})]},u.id))})})]})]})}function bE({className:n,options:a,placeholder:r,...u}){return S.jsxs("select",{className:nn("flex h-10 w-full rounded-md border border-border bg-background px-3 py-2 text-sm","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n),...u,children:[r&&S.jsx("option",{value:"",children:r}),a.map(c=>S.jsx("option",{value:c.value,children:c.label},c.value))]})}const Ga=["#10b981","#06b6d4","#8b5cf6","#f59e0b","#ef4444","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#0ea5e9","#d946ef","#22c55e","#eab308","#a855f7"];function xE({chunks:n,edges:a,timeRange:r,onChunkClick:u,selectedChunkId:c,clusters:f}){const d=R.useRef(null),g=[...new Set(n.map(b=>b.clusterId).filter(Boolean))],m=new Map((f??[]).map(b=>[b.id,b])),h=g.map(b=>({id:b,info:m.get(b)})).sort((b,T)=>(T.info?.memberCount??0)-(b.info?.memberCount??0)),v=new Map(h.map((b,T)=>[b.id,T]));function y(b){if(!b)return"#64748b";const T=v.get(b);return T===void 0?"#64748b":Ga[T%Ga.length]}return R.useEffect(()=>{const b=ke(d.current);if(b.selectAll("*").remove(),n.length===0||!r.earliest||!r.latest)return;const T=d.current?.parentElement,D=T?.clientWidth??800,j=T?.clientHeight??400,A={top:30,right:30,bottom:40,left:160},N=D-A.left-A.right,Q=j-A.top-A.bottom,G=[...new Set(n.map(st=>st.sessionSlug))],nt=If().domain([new Date(r.earliest),new Date(r.latest)]).range([0,N]),it=Qf().domain(G).range([0,Q]).padding(.3);b.attr("width",D).attr("height",j),b.append("defs").append("clipPath").attr("id","timeline-clip").append("rect").attr("width",N).attr("height",Q);const X=b.append("g").attr("transform",`translate(${A.left},${A.top})`),K=iv().scaleExtent([.5,20]).translateExtent([[-100,0],[N+100,j]]).on("zoom",st=>{const lt=st.transform.rescaleX(nt);P.call(er(lt).ticks(8)),Tt.attr("x",bt=>lt(new Date(bt.startTime))).attr("width",bt=>{const O=lt(new Date(bt.endTime))-lt(new Date(bt.startTime));return Math.max(4,O)})});b.call(K);const P=X.append("g").attr("transform",`translate(0,${Q})`).call(er(nt).ticks(8)).attr("class","timeline-axis");X.append("g").call(cy(it)).attr("class","timeline-axis").selectAll("text").style("font-size","11px"),X.selectAll(".timeline-axis line, .timeline-axis path").attr("stroke","var(--border-color, #334155)"),X.selectAll(".timeline-axis text").attr("fill","var(--muted-foreground, #94a3b8)");const Tt=X.append("g").attr("clip-path","url(#timeline-clip)").append("g").selectAll("rect").data(n).join("rect").attr("x",st=>nt(new Date(st.startTime))).attr("y",st=>it(st.sessionSlug)??0).attr("width",st=>{const lt=nt(new Date(st.endTime))-nt(new Date(st.startTime));return Math.max(4,lt)}).attr("height",it.bandwidth()).attr("rx",2).attr("fill",st=>y(st.clusterId)).attr("fill-opacity",st=>st.id===c?1:.7).attr("stroke",st=>st.id===c?"#ffffff":"none").attr("stroke-width",2).attr("cursor","pointer").on("click",(st,lt)=>u(lt.id)).on("mouseenter",function(){ke(this).attr("fill-opacity",1)}).on("mouseleave",function(st,lt){ke(this).attr("fill-opacity",lt.id===c?1:.7)});Tt.append("title").text(st=>{const bt=(st.clusterId?m.get(st.clusterId):null)?.name??(st.clusterId?"Unknown cluster":"Unclustered");return`${st.sessionSlug}
12
+ ${bt}
13
+ ${st.preview.slice(0,100)}...
14
+ ${new Date(st.startTime).toLocaleString()}`})},[n,r,u,c,f,h,v,m]),S.jsx("div",{className:"w-full h-full",children:S.jsx("svg",{ref:d,className:"w-full h-full"})})}const nf=36e5,xp=20;function SE(n,a){if(n.length<=1)return{longestStreak:n.length===1?{cluster:a(n[0].clusterId),count:1,durationMs:0}:null,mostSwitches:null,focusScore:1};let r={cluster:n[0].clusterId,count:1,startIdx:0,endIdx:0},u={cluster:n[0].clusterId,count:1,startIdx:0};for(let m=1;m<n.length;m++){const h=n[m].clusterId??"__unclustered",v=u.cluster??"__unclustered";h===v?u.count++:(u.count>r.count&&(r={...u,endIdx:m-1}),u={cluster:n[m].clusterId,count:1,startIdx:m})}u.count>r.count&&(r={...u,endIdx:n.length-1});const c=new Date(n[r.endIdx].endTime).getTime()-new Date(n[r.startIdx].startTime).getTime(),f=new Map;let d=0;for(let m=1;m<n.length;m++){const h=n[m-1].clusterId??"__unclustered",v=n[m].clusterId??"__unclustered";if(h!==v){d++;const y=[h,v].sort().join("|"),b=f.get(y);b?b.count++:f.set(y,{from:h,to:v,count:1})}}let g=null;for(const m of f.values())(!g||m.count>g.count)&&(g={from:a(m.from==="__unclustered"?null:m.from),to:a(m.to==="__unclustered"?null:m.to),count:m.count});return{longestStreak:{cluster:a(r.cluster),count:r.count,durationMs:c},mostSwitches:g,focusScore:1-d/(n.length-1)}}function _E(n){if(n<6e4)return"<1m";const a=Math.round(n/6e4);if(a<60)return`${a}m`;const r=Math.floor(a/60),u=a%60;return u>0?`${r}h ${u}m`:`${r}h`}function wE({chunks:n,edges:a,timeRange:r,onChunkClick:u,selectedChunkId:c,clusters:f}){const d=R.useRef(null),g=R.useMemo(()=>new Map((f??[]).map(A=>[A.id,A])),[f]),m=R.useMemo(()=>[...n].sort((A,N)=>new Date(A.startTime).getTime()-new Date(N.startTime).getTime()),[n]),h=R.useMemo(()=>{const A=[],N=new Set;for(const Q of m){const G=Q.clusterId??"__unclustered";N.has(G)||(N.add(G),G!=="__unclustered"&&A.push(G))}return N.has("__unclustered")&&A.push("__unclustered"),A},[m]),v=R.useMemo(()=>{const N=[...h.filter(Q=>Q!=="__unclustered")].map(Q=>({id:Q,info:g.get(Q)})).sort((Q,G)=>(G.info?.memberCount??0)-(Q.info?.memberCount??0));return new Map(N.map((Q,G)=>[Q.id,G]))},[h,g]);function y(A){if(!A||A==="__unclustered")return"#64748b";const N=v.get(A);return N===void 0?"#64748b":Ga[N%Ga.length]}function b(A){return!A||A==="__unclustered"?"Unclustered":g.get(A)?.name??`Topic ${(v.get(A)??0)+1}`}const T=R.useMemo(()=>SE(m,b),[m,g,v]),D=R.useMemo(()=>{const A=new Map;for(const N of m){const Q=N.clusterId??"__unclustered",G=A.get(Q);G?(G.count++,G.tokens+=N.approxTokens):A.set(Q,{count:1,tokens:N.approxTokens})}return A},[m]),j=R.useMemo(()=>{const A=new Map;for(const Q of m)A.has(Q.sessionId)||A.set(Q.sessionId,new Date(Q.startTime).getTime());return[...A.entries()].sort((Q,G)=>Q[1]-G[1]).slice(1).map(([Q,G])=>{const nt=m.find(it=>it.sessionId===Q);return{time:G,slug:nt?.sessionSlug??Q.slice(0,8)}})},[m]);return R.useEffect(()=>{const A=ke(d.current);if(A.selectAll("*").remove(),m.length===0||!r.earliest||!r.latest)return;const N=d.current?.parentElement,Q=N?.clientWidth??800,G=N?.clientHeight??400,nt={top:30,right:30,bottom:40,left:220},it=Q-nt.left-nt.right,X=G-nt.top-nt.bottom,K=If().domain([new Date(r.earliest),new Date(r.latest)]).range([0,it]),P=Qf().domain(h).range([0,X]).padding(.25),dt=P.bandwidth();A.attr("width",Q).attr("height",G);const Tt=A.append("defs");Tt.append("clipPath").attr("id","topicflow-clip").append("rect").attr("width",it).attr("height",X);const st=new Set;for(let H=0;H<m.length-1;H++){const _=m[H].clusterId??"__unclustered",z=m[H+1].clusterId??"__unclustered";_!==z&&st.add(`${_}||${z}`)}for(const H of st){const[_,z]=H.split("||"),I=`grad-${_}-${z}`.replace(/[^a-zA-Z0-9-]/g,"_"),V=Tt.append("linearGradient").attr("id",I).attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");V.append("stop").attr("offset","0%").attr("stop-color",y(_==="__unclustered"?null:_)).attr("stop-opacity",.3),V.append("stop").attr("offset","100%").attr("stop-color",y(z==="__unclustered"?null:z)).attr("stop-opacity",.3)}const lt=A.append("g").attr("transform",`translate(${nt.left},${nt.top})`),bt=lt.append("g").attr("transform",`translate(0,${X})`).call(er(K).ticks(8)).attr("class","topicflow-axis"),O=lt.append("g").attr("class","topicflow-axis");for(const H of h){const _=(P(H)??0)+dt/2,z=b(H==="__unclustered"?null:H),I=D.get(H),V=I?I.tokens>=1e3?`${Math.round(I.tokens/1e3)}k`:`${I.tokens}`:"0",et=I?`${z} (${I.count}, ${V} tok)`:z,at=et.length>30?et.slice(0,28)+"…":et;O.append("text").attr("x",-8).attr("y",_).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","var(--muted-foreground, #94a3b8)").attr("font-size","11px").text(at).append("title").text(et)}O.append("line").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",X).attr("stroke","var(--border-color, #334155)"),lt.selectAll(".topicflow-axis line, .topicflow-axis path").attr("stroke","var(--border-color, #334155)"),lt.selectAll(".topicflow-axis text").attr("fill","var(--muted-foreground, #94a3b8)");const F=lt.append("g").attr("clip-path","url(#topicflow-clip)");function w(H){F.selectAll("*").remove();const _=F.append("g").attr("class","session-boundaries");for(const V of j){const et=H(new Date(V.time));_.append("line").attr("x1",et).attr("y1",0).attr("x2",et).attr("y2",X).attr("stroke","#475569").attr("stroke-width",1).attr("stroke-dasharray","4,4").attr("stroke-opacity",.3),_.append("text").attr("x",et+4).attr("y",10).attr("fill","var(--muted-foreground, #94a3b8)").attr("font-size","9px").attr("fill-opacity",.5).text(V.slug.length>12?V.slug.slice(0,10)+"…":V.slug)}const z=F.append("g").attr("class","ribbons");for(let V=0;V<m.length-1;V++){const et=m[V],at=m[V+1],mt=new Date(et.endTime).getTime();if(new Date(at.startTime).getTime()-mt>nf){const Gt=(H(new Date(et.endTime))+H(new Date(at.startTime)))/2,$t=X/2;z.append("text").attr("class","gap-indicator").attr("x",Gt).attr("y",$t).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("fill","var(--muted-foreground, #94a3b8)").attr("font-size","12px").attr("fill-opacity",.5).text("⋯");continue}const pt=et.clusterId??"__unclustered",yt=at.clusterId??"__unclustered",W=H(new Date(et.endTime)),Bt=H(new Date(at.startTime)),xt=dt*.5;if(pt===yt){const Gt=(P(pt)??0)+dt*.25;z.append("rect").attr("class",`ribbon ribbon-${V}`).attr("x",Math.min(W,Bt)).attr("y",Gt).attr("width",Math.max(1,Math.abs(Bt-W))).attr("height",xt).attr("fill",y(et.clusterId)).attr("fill-opacity",.15)}else{const Gt=(P(pt)??0)+dt*.25,$t=Gt+xt,Me=(P(yt)??0)+dt*.25,Gn=Me+xt,Xn=(W+Bt)/2,Qa=`grad-${pt}-${yt}`.replace(/[^a-zA-Z0-9-]/g,"_");z.append("path").attr("class",`ribbon ribbon-${V}`).attr("d",[`M${W},${Gt}`,`C${Xn},${Gt} ${Xn},${Me} ${Bt},${Me}`,`L${Bt},${Gn}`,`C${Xn},${Gn} ${Xn},${$t} ${W},${$t}`,"Z"].join(" ")).attr("fill",`url(#${Qa})`).attr("stroke","none")}}const I=F.append("g").attr("class","chunks");I.selectAll("rect").data(m).join("rect").attr("class",(V,et)=>`chunk chunk-${et}`).attr("x",V=>H(new Date(V.startTime))).attr("y",V=>{const et=V.clusterId??"__unclustered";return(P(et)??0)+dt*.15}).attr("width",V=>{const et=H(new Date(V.endTime))-H(new Date(V.startTime));return Math.max(4,et)}).attr("height",dt*.7).attr("rx",2).attr("fill",V=>y(V.clusterId)).attr("fill-opacity",V=>V.id===c?1:.7).attr("stroke",V=>V.id===c?"#ffffff":"none").attr("stroke-width",2).attr("cursor","pointer").on("click",(V,et)=>u(et.id)).on("mouseenter",function(V,et){const at=m.indexOf(et);Y(at)}).on("mouseleave",function(){tt()}),I.selectAll("rect").append("title").text((V,et)=>{const at=m[et];return`${(at.clusterId?g.get(at.clusterId):null)?.name??(at.clusterId?"Unknown cluster":"Unclustered")}
15
+ ${at.preview.slice(0,100)}…
16
+ ${new Date(at.startTime).toLocaleString()}`})}function Y(H){const _=new Set;_.add(H);for(let z=H-1;z>=0&&_.size<xp&&!(new Date(m[z+1].startTime).getTime()-new Date(m[z].endTime).getTime()>nf);z--)_.add(z);for(let z=H+1;z<m.length&&_.size<xp&&!(new Date(m[z].startTime).getTime()-new Date(m[z-1].endTime).getTime()>nf);z++)_.add(z);F.selectAll(".chunk").attr("fill-opacity",.1),F.selectAll(".ribbon").attr("opacity",.1),F.selectAll(".gap-indicator").attr("fill-opacity",.1);for(const z of _)F.select(`.chunk-${z}`).attr("fill-opacity",1);for(const z of _)_.has(z+1)&&F.select(`.ribbon-${z}`).attr("opacity",1)}function tt(){F.selectAll(".chunk").attr("fill-opacity",H=>H.id===c?1:.7),F.selectAll(".ribbon").attr("opacity",1),F.selectAll(".gap-indicator").attr("fill-opacity",.5)}w(K);const rt=iv().scaleExtent([.5,20]).translateExtent([[-100,0],[it+100,G]]).on("zoom",H=>{const _=H.transform.rescaleX(K);bt.call(er(_).ticks(8)),w(_)});A.call(rt)},[m,r,u,c,h,g,v,D,j]),S.jsxs("div",{className:"w-full h-full flex flex-col",children:[m.length>1&&S.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 text-xs text-muted-foreground border-b border-border shrink-0",children:[T.longestStreak&&S.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-muted/30 rounded",children:[S.jsx("span",{className:"font-medium text-foreground",children:"Longest streak:"}),S.jsxs("span",{className:"tabular-nums",children:[T.longestStreak.cluster," (",T.longestStreak.count," chunks,"," ",_E(T.longestStreak.durationMs),")"]})]}),S.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-muted/30 rounded",children:[S.jsx("span",{className:"font-medium text-foreground",children:"Most switches:"}),S.jsx("span",{className:"tabular-nums",children:T.mostSwitches?`${T.mostSwitches.from} ↔ ${T.mostSwitches.to} (${T.mostSwitches.count}×)`:"—"})]}),S.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-muted/30 rounded",children:[S.jsx("span",{className:"font-medium text-foreground",children:"Focus:"}),S.jsxs("span",{className:"tabular-nums",children:[Math.round(T.focusScore*100),"%"]})]})]}),S.jsx("div",{className:"flex-1 min-h-0",children:S.jsx("svg",{ref:d,className:"w-full h-full"})})]})}function TE({clusters:n,activeClusterIds:a,unclusteredCount:r}){const u=R.useRef(null),[c,f]=R.useState({visible:!1,cluster:null,anchorRect:null}),d=new Map(n.map(D=>[D.id,D])),m=[...a.map(D=>({id:D,info:d.get(D)})).sort((D,j)=>(j.info?.memberCount??0)-(D.info?.memberCount??0)).map((D,j)=>({key:D.id,color:Ga[j%Ga.length],name:D.info?.name??`Topic ${j+1}`,count:D.info?.memberCount??0,info:D.info??null})),...r>0?[{key:"_unclustered",color:"#64748b",name:"Unclustered",count:r,info:null}]:[]],h=(D,j)=>{const A=D.currentTarget.getBoundingClientRect();f({visible:!0,cluster:j,anchorRect:A})},v=()=>{f({visible:!1,cluster:null,anchorRect:null})},y=u.current?.getBoundingClientRect(),b=c.anchorRect&&y?Math.min(c.anchorRect.left-y.left,y.width-296):0,T=c.anchorRect&&y?c.anchorRect.bottom-y.top+6:0;return S.jsxs("div",{ref:u,className:"relative rounded-lg border border-border bg-card px-4 py-2.5",children:[S.jsx("div",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-wider mb-2",children:"Topic Clusters"}),S.jsx("div",{className:"grid gap-x-6 gap-y-1",style:{gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))"},children:m.map(D=>S.jsxs("div",{className:"flex items-center gap-2 text-xs cursor-default hover:bg-muted/50 rounded px-1.5 py-0.5 transition-colors min-w-0",onMouseEnter:D.info?j=>h(j,D.info):void 0,onMouseLeave:v,children:[S.jsx("span",{className:"inline-block w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:D.color}}),S.jsx("span",{className:"text-foreground truncate",children:D.name}),S.jsx("span",{className:"text-muted-foreground tabular-nums ml-auto shrink-0",children:D.count})]},D.key))}),c.visible&&c.cluster&&S.jsxs("div",{className:"absolute z-50 rounded-md border border-border/80 bg-card/50 backdrop-blur-md px-3 py-2.5 text-xs shadow-lg w-72 pointer-events-none",style:{left:Math.max(0,b),top:T},children:[S.jsx("div",{className:"font-semibold text-foreground mb-1",children:c.cluster.name??"Unnamed"}),c.cluster.description&&S.jsx("p",{className:"text-muted-foreground mb-2 leading-relaxed",children:c.cluster.description}),S.jsx("div",{className:"flex gap-4 text-muted-foreground",children:S.jsxs("div",{children:["Members:"," ",S.jsx("span",{className:"text-foreground tabular-nums",children:c.cluster.memberCount})]})})]})]})}function ME({chunkId:n,onClose:a,onWalkChain:r}){const{data:u}=en(`/api/chunks?chunkId=${n}`),{data:c}=en(`/api/edges?chunkId=${n}&limit=20`),f=u?.chunks?.[0];return S.jsxs("div",{className:"flex flex-col gap-3 h-full",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h3",{className:"text-sm font-semibold",children:"Chunk Inspector"}),S.jsx("button",{onClick:a,className:"rounded p-1 hover:bg-muted",children:S.jsx(W2,{className:"h-4 w-4"})})]}),f?S.jsxs("div",{className:"space-y-3 text-sm overflow-y-auto flex-1",children:[S.jsxs("div",{className:"space-y-1",children:[S.jsxs("div",{children:[S.jsx("span",{className:"text-muted-foreground",children:"ID: "}),S.jsxs("code",{className:"text-xs",children:[f.id.slice(0,12),"..."]})]}),S.jsxs("div",{children:[S.jsx("span",{className:"text-muted-foreground",children:"Project: "}),S.jsx(ln,{variant:"secondary",children:f.sessionSlug})]}),S.jsxs("div",{children:[S.jsx("span",{className:"text-muted-foreground",children:"Time: "}),new Date(f.startTime).toLocaleString()]}),S.jsxs("div",{children:[S.jsx("span",{className:"text-muted-foreground",children:"Tokens: "}),f.approxTokens]})]}),S.jsx("div",{className:"border-t border-border pt-2",children:S.jsx("p",{className:"text-xs text-muted-foreground line-clamp-6 whitespace-pre-wrap",children:f.content.slice(0,500)})}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("button",{onClick:()=>r(n,"backward"),className:"flex flex-1 items-center justify-center gap-1 rounded-md border border-border px-3 py-2 text-xs hover:bg-muted transition-colors",children:[S.jsx(T2,{className:"h-3 w-3"}),"Walk Backward"]}),S.jsxs("button",{onClick:()=>r(n,"forward"),className:"flex flex-1 items-center justify-center gap-1 rounded-md border border-border px-3 py-2 text-xs hover:bg-muted transition-colors",children:["Walk Forward",S.jsx(E2,{className:"h-3 w-3"})]})]}),c&&c.edges.length>0&&S.jsxs("div",{className:"space-y-1 border-t border-border pt-2",children:[S.jsxs("h4",{className:"text-xs font-medium",children:["Edges (",c.total,")"]}),S.jsx("div",{className:"space-y-1 max-h-32 overflow-y-auto",children:c.edges.map(d=>S.jsxs("div",{className:"flex items-center gap-2 text-[10px]",children:[S.jsx(ln,{variant:d.type==="backward"?"default":"outline",className:"text-[9px]",children:d.type}),d.referenceType&&S.jsx("span",{className:"text-muted-foreground",children:d.referenceType}),S.jsx("span",{className:"ml-auto tabular-nums",children:d.weight.toFixed(2)})]},d.id))})]})]}):S.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading chunk..."})]})}function EE({chunkId:n,direction:a,onDirectionChange:r}){const{data:u,loading:c}=en(`/api/chain/walk?chunkId=${n}&direction=${a}`);return S.jsxs("div",{className:"flex flex-col gap-3 h-full",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h3",{className:"text-sm font-semibold",children:"Chain Walk"}),S.jsxs("div",{className:"flex gap-1",children:[S.jsx("button",{onClick:()=>r("backward"),className:`rounded px-2 py-1 text-xs transition-colors ${a==="backward"?"bg-accent/20 text-accent":"text-muted-foreground hover:bg-muted"}`,children:"Backward"}),S.jsx("button",{onClick:()=>r("forward"),className:`rounded px-2 py-1 text-xs transition-colors ${a==="forward"?"bg-accent/20 text-accent":"text-muted-foreground hover:bg-muted"}`,children:"Forward"})]})]}),c&&S.jsx(or,{}),u&&u.chain.length===0&&S.jsxs("p",{className:"text-sm text-muted-foreground",children:["No chain found — this chunk has no connected edges in the ",a," direction."]}),u&&S.jsxs("div",{className:"flex-1 overflow-y-auto space-y-2",children:[S.jsx(Sp,{chunk:u.seed,position:0,total:u.chain.length+1,isSeed:!0}),u.chain.map((f,d)=>S.jsx(Sp,{chunk:f,position:d+1,total:u.chain.length+1},f.id)),u.chain.length>0&&S.jsxs("div",{className:"text-xs text-muted-foreground pt-1",children:["Total: ",u.totalTokens.toLocaleString()," tokens"]})]})]})}function Sp({chunk:n,position:a,total:r,isSeed:u=!1}){return S.jsxs("div",{className:`rounded-md border p-3 text-sm space-y-1 ${u?"border-accent bg-accent/5":"border-border bg-card"}`,children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[u&&S.jsx(ln,{variant:"default",className:"text-[10px]",children:"Seed"}),S.jsx(ln,{variant:"secondary",className:"text-[10px]",children:n.sessionSlug})]}),S.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[a+1,"/",r]})]}),S.jsx("p",{className:"text-xs text-muted-foreground line-clamp-3",children:n.preview}),S.jsxs("div",{className:"text-[10px] text-muted-foreground",children:[new Date(n.startTime).toLocaleString()," · ",n.approxTokens," tokens"]})]})}function AE(){const[n,a]=R.useState(""),[r,u]=R.useState(null),[c,f]=R.useState(null),[d,g]=R.useState("backward"),{data:m}=en("/api/projects"),{data:h}=en("/api/clusters"),v=`/api/timeline?limit=500${n?`&project=${n}`:""}`,{data:y,loading:b}=en(v),T=(m?.projects??[]).map(N=>({value:N.slug,label:`${N.slug} (${N.chunkCount})`})),D=R.useCallback(N=>{u(N)},[]),j=R.useCallback((N,Q)=>{f(N),g(Q)},[]),A=r||c;return S.jsxs("div",{className:"flex h-[calc(100vh-8rem)] flex-col gap-4 animate-fade-in",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Timeline"}),S.jsx(bE,{value:n,onChange:N=>{a(N.target.value),u(null),f(null)},options:T,placeholder:"All projects",className:"w-60"})]}),h&&y&&y.chunks.length>0&&S.jsx(TE,{clusters:h.clusters,activeClusterIds:[...new Set(y.chunks.map(N=>N.clusterId).filter(Boolean))],unclusteredCount:y.chunks.filter(N=>!N.clusterId).length}),S.jsx("div",{className:`rounded-lg border border-border bg-card overflow-hidden relative ${A?"flex-1 min-h-[200px]":"flex-1"}`,children:b?S.jsx(or,{}):y&&y.chunks.length>0?n?S.jsx(wE,{chunks:y.chunks,edges:y.edges,timeRange:y.timeRange,onChunkClick:D,selectedChunkId:r,clusters:h?.clusters}):S.jsx(xE,{chunks:y.chunks,edges:y.edges,timeRange:y.timeRange,onChunkClick:D,selectedChunkId:r,clusters:h?.clusters}):S.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:"No timeline data available"})}),A&&S.jsxs("div",{className:"flex gap-4 h-72 min-h-[200px]",children:[r&&S.jsx("div",{className:"w-80 shrink-0 rounded-lg border border-border bg-card p-4 overflow-y-auto",children:S.jsx(ME,{chunkId:r,onClose:()=>u(null),onWalkChain:j})}),c&&S.jsx("div",{className:"flex-1 rounded-lg border border-border bg-card p-4 overflow-y-auto",children:S.jsx(EE,{chunkId:c,direction:d,onDirectionChange:g})})]})]})}const Bu=["#10b981","#06b6d4","#8b5cf6","#f59e0b","#ef4444","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#0ea5e9","#d946ef","#22c55e","#eab308","#a855f7"];function CE({clusters:n}){const a=R.useRef(null);return R.useEffect(()=>{if(!a.current||n.length===0)return;const r=ke(a.current);r.selectAll("*").remove();const u=a.current.parentElement;if(!u)return;const c=u.clientWidth,f=u.clientHeight||360;r.attr("width",c).attr("height",f);const d=UM().size([c,f]).padding(6),g=Vf({children:n}).sum(b=>"memberCount"in b?b.memberCount:0),m=d(g),v=getComputedStyle(document.documentElement).getPropertyValue("--fg").trim()||"#e2e8f0",y=r.selectAll("g").data(m.leaves()).join("g").attr("transform",b=>`translate(${b.x},${b.y})`);y.append("circle").attr("r",b=>b.r).attr("fill",(b,T)=>Bu[T%Bu.length]).attr("fill-opacity",.7).attr("stroke",(b,T)=>Bu[T%Bu.length]).attr("stroke-width",1),y.filter(b=>b.r>30).append("text").attr("text-anchor","middle").attr("dy","-0.3em").attr("fill",v).attr("font-size",b=>Math.min(14,b.r/3)).attr("font-weight",600).text(b=>b.data.name?.slice(0,20)??b.data.id.slice(0,8)),y.filter(b=>b.r>30).append("text").attr("text-anchor","middle").attr("dy","1.1em").attr("fill",v).attr("fill-opacity",.7).attr("font-size",b=>Math.min(11,b.r/4)).text(b=>`${b.data.memberCount} chunks`),y.append("title").text(b=>{const T=b.data;return`${T.name??T.id}
17
+ ${T.memberCount} chunks`})},[n]),S.jsx("svg",{ref:a,className:"w-full h-full"})}function NE({cluster:n}){const[a,r]=R.useState(!1);return S.jsxs(Pi,{children:[S.jsxs(uf,{className:"cursor-pointer",onClick:()=>r(!a),children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx(of,{className:"text-base",children:n.name??n.id.slice(0,12)}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs(ln,{variant:"secondary",children:[n.memberCount," chunks"]}),a?S.jsx(O2,{className:"h-4 w-4"}):S.jsx(R2,{className:"h-4 w-4"})]})]}),n.description&&S.jsx(ZS,{className:"line-clamp-2",children:n.description})]}),a&&S.jsxs(tr,{children:[S.jsx("div",{className:"mb-3 h-2 rounded-full bg-muted overflow-hidden",children:S.jsx("div",{className:"h-full rounded-full bg-accent transition-all",style:{width:`${Math.min(100,n.memberCount*2)}%`}})}),n.exemplarPreviews.length>0&&S.jsxs("div",{className:"space-y-2",children:[S.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Exemplar Chunks"}),n.exemplarPreviews.map(u=>S.jsxs("div",{className:"rounded border border-border p-2 text-xs text-muted-foreground",children:[S.jsx("code",{className:"text-[10px]",children:u.id.slice(0,8)}),S.jsx("p",{className:"mt-1 line-clamp-2",children:u.preview})]},u.id))]})]})]})}function zE(){const{data:n,loading:a}=en("/api/clusters");if(a||!n)return S.jsx(or,{});const r=n.clusters;return S.jsxs("div",{className:"space-y-6 animate-fade-in",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Clusters"}),r.length===0?S.jsx("div",{className:"text-muted-foreground",children:"No clusters found. Run clustering first."}):S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"rounded-lg border border-border bg-card p-4",style:{height:400},children:S.jsx(CE,{clusters:r})}),S.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:r.map(u=>S.jsx(NE,{cluster:u},u.id))})]})]})}function RE({className:n,...a}){return S.jsx("input",{className:nn("flex h-10 w-full rounded-md border border-border bg-background px-3 py-2 text-sm","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",n),...a})}function DE({onSearch:n,debounceMs:a=400}){const[r,u]=R.useState(""),c=R.useRef(null);return R.useEffect(()=>(c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{n(r)},a),()=>{c.current&&clearTimeout(c.current)}),[r,a,n]),S.jsxs("div",{className:"relative max-w-xl",children:[S.jsx(Qp,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),S.jsx(RE,{value:r,onChange:f=>u(f.target.value),placeholder:"Search memory...",className:"pl-10"})]})}const rv={vector:"#8b5cf6",keyword:"#06b6d4",cluster:"#f59e0b"};function OE({source:n}){const a=rv[n]??"#6b7280";return S.jsxs(ln,{variant:"outline",className:"text-[10px] px-1.5 py-0 gap-1",children:[S.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{backgroundColor:a}}),n]})}function UE({breakdown:n}){return S.jsx("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:["vector","keyword","cluster"].map(a=>S.jsxs(ln,{variant:"outline",className:"text-[10px] px-1.5 py-0 gap-1",children:[S.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{backgroundColor:rv[a]}}),n[a]," ",a]},a))})}function $i({title:n,results:a,color:r,allIds:u,showSourceBadge:c,header:f}){const d=g=>{let m=0;return u.has(`v:${g}`)&&m++,u.has(`k:${g}`)&&m++,m};return S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsxs("h3",{className:"mb-3 text-sm font-semibold",style:{color:r},children:[n,S.jsxs("span",{className:"ml-2 text-muted-foreground font-normal",children:["(",a.length,")"]})]}),f,S.jsxs("div",{className:"space-y-2",children:[a.map((g,m)=>{const h=d(g.id);return S.jsxs("div",{className:"rounded-md border border-border p-3 space-y-1",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("span",{className:"text-xs font-medium text-muted-foreground",children:["#",m+1]}),S.jsx("span",{className:"text-xs tabular-nums font-mono",style:{color:r},children:g.score.toFixed(4)}),c&&g.source&&S.jsx(OE,{source:g.source}),!c&&h>1&&S.jsx(ln,{variant:"default",className:"text-[10px] px-1.5 py-0",children:"boosted"}),S.jsx(ln,{variant:"secondary",className:"text-[10px] ml-auto",children:g.sessionSlug})]}),S.jsx("p",{className:"text-xs text-muted-foreground line-clamp-3",children:g.preview})]},g.id)}),a.length===0&&S.jsx("div",{className:"text-sm text-muted-foreground italic",children:"No results"})]})]})}function jE({data:n,fullPipeline:a,fullPipelineNoClusters:r,sourceBreakdown:u}){const c=new Set;n.vector.forEach(g=>c.add(`v:${g.id}`)),n.keyword.forEach(g=>c.add(`k:${g.id}`));const f=r&&r.length>0,d=f?"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 xl:grid-cols-5":"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4";return S.jsxs("div",{className:d,children:[S.jsx($i,{title:"Vector",results:n.vector,color:"#8b5cf6",allIds:c}),S.jsx($i,{title:"Keyword (BM25)",results:n.keyword,color:"#06b6d4",allIds:c}),S.jsx($i,{title:"Fused (RRF)",results:n.fused,color:"#10b981",allIds:c}),S.jsx($i,{title:"Full Pipeline (MMR)",results:a,color:"#f59e0b",allIds:c,showSourceBadge:!0,header:S.jsx(UE,{breakdown:u})}),f&&S.jsx($i,{title:"No Clusters",results:r,color:"#6b7280",allIds:c,showSourceBadge:!0})]})}function kE(){const[n,a]=R.useState(""),[r,u]=R.useState(!1),[c,f]=R.useState(null),{data:d,loading:g}=en(c),m=R.useRef(""),h=R.useCallback(y=>{if(a(y),m.current=y,y.trim()){const b=new URLSearchParams({q:y.trim()});r&&b.set("skipClusters","true"),f(`/api/search/compare?${b.toString()}`)}else f(null)},[r]),v=R.useCallback(()=>{u(y=>{const b=!y;if(m.current.trim()){const T=new URLSearchParams({q:m.current.trim()});b&&T.set("skipClusters","true"),f(`/api/search/compare?${T.toString()}`)}return b})},[]);return S.jsxs("div",{className:"space-y-6 animate-fade-in",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Hybrid Search Pipeline"}),S.jsx("p",{className:"text-muted-foreground",children:"Compare vector, keyword (BM25), fused (RRF), and full pipeline (clusters + MMR) search results side by side."}),S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(DE,{onSearch:h}),S.jsxs("label",{className:"flex items-center gap-2 text-sm text-muted-foreground whitespace-nowrap cursor-pointer",children:[S.jsx("input",{type:"checkbox",checked:r,onChange:v,className:"rounded border-border"}),"Skip clusters (A/B)"]})]}),g&&S.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[S.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-muted border-t-accent"}),"Searching..."]}),d&&S.jsx(jE,{data:d,fullPipeline:d.fullPipeline,fullPipelineNoClusters:d.fullPipelineNoClusters,sourceBreakdown:d.sourceBreakdown}),!d&&!g&&n&&S.jsx("div",{className:"text-muted-foreground",children:"No results found."})]})}function HE(){const{data:n,loading:a}=en("/api/projects");return a||!n?S.jsx(or,{}):S.jsxs("div",{className:"space-y-6 animate-fade-in",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Projects"}),n.projects.length===0?S.jsx("div",{className:"text-muted-foreground",children:"No projects found."}):S.jsx(Pi,{children:S.jsx(tr,{className:"p-0",children:S.jsx("div",{className:"overflow-x-auto",children:S.jsxs("table",{className:"w-full text-sm",children:[S.jsx("thead",{children:S.jsxs("tr",{className:"border-b border-border",children:[S.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"Project"}),S.jsx("th",{className:"px-4 py-3 text-right font-medium text-muted-foreground",children:"Chunks"}),S.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"First Seen"}),S.jsx("th",{className:"px-4 py-3 text-left font-medium text-muted-foreground",children:"Last Seen"})]})}),S.jsx("tbody",{children:n.projects.map(r=>S.jsxs("tr",{className:"border-b border-border last:border-0 hover:bg-muted/50 transition-colors",children:[S.jsx("td",{className:"px-4 py-3",children:S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"font-medium",children:r.slug}),r.path&&S.jsx("span",{className:"text-xs text-muted-foreground truncate max-w-[200px]",children:r.path})]})}),S.jsx("td",{className:"px-4 py-3 text-right",children:S.jsx(ln,{variant:"secondary",children:r.chunkCount})}),S.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:new Date(r.firstSeen).toLocaleDateString()}),S.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:new Date(r.lastSeen).toLocaleDateString()})]},r.slug))})]})})})})]})}function LE(){return S.jsx(c2,{children:S.jsx(Yx,{children:S.jsxs(Yl,{element:S.jsx(VS,{}),children:[S.jsx(Yl,{path:"/",element:S.jsx(vE,{})}),S.jsx(Yl,{path:"/timeline",element:S.jsx(AE,{})}),S.jsx(Yl,{path:"/clusters",element:S.jsx(zE,{})}),S.jsx(Yl,{path:"/search",element:S.jsx(kE,{})}),S.jsx(Yl,{path:"/projects",element:S.jsx(HE,{})})]})})})}Lb.createRoot(document.getElementById("root")).render(S.jsx(R.StrictMode,{children:S.jsx(LE,{})}));