@caddis/cli 0.4.99 → 0.4.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/caddis_guide.json +2 -2
- package/bundles/manifest.json +2 -2
- package/dist/allowed-urls.txt +2 -1
- package/dist/export/assets/export-Cb3BXZCo.js +150 -0
- package/dist/export/assets/export-or4yLaQm.css +1 -0
- package/dist/export/fonts/jetbrains-mono-400.69ae33df.woff2 +0 -0
- package/dist/export/fonts/jetbrains-mono-500.347650fa.woff2 +0 -0
- package/dist/export/fonts/jetbrains-mono-700.7de821f9.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-400.9b3aa900.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-500.91dc7710.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-600.7689b278.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-700.55a58633.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-800.66e135bf.woff2 +0 -0
- package/dist/export/index.html +2 -2
- package/dist/export/licenses/{OFL-IBMPlexMono.txt → OFL-JetBrainsMono.txt} +3 -3
- package/dist/{ui/licenses/OFL-IBMPlexMono.txt → export/licenses/OFL-PlusJakartaSans.txt} +3 -3
- package/dist/ui/assets/Activity-BH0Scw-H.js +1 -0
- package/dist/ui/assets/Guide-Bict51LS.css +1 -0
- package/dist/ui/assets/{Guide-BUXTwb19.js → Guide-f5f2DrlU.js} +2 -2
- package/dist/ui/assets/Palette-BIlBqNvr.css +1 -0
- package/dist/ui/assets/Palette-cTwLWgn4.js +11 -0
- package/dist/ui/assets/RoadmapTab-BqLBt4fW.js +21 -0
- package/dist/ui/assets/external-link-BFMu4CXk.js +6 -0
- package/dist/ui/assets/index-39J2d1qv.js +226 -0
- package/dist/ui/assets/index-h1dmppYX.css +1 -0
- package/dist/ui/fonts/jetbrains-mono-400.69ae33df.woff2 +0 -0
- package/dist/ui/fonts/jetbrains-mono-500.347650fa.woff2 +0 -0
- package/dist/ui/fonts/jetbrains-mono-700.7de821f9.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-400.9b3aa900.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-500.91dc7710.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-600.7689b278.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-700.55a58633.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-800.66e135bf.woff2 +0 -0
- package/dist/ui/index.html +2 -2
- package/dist/{export/licenses/OFL-IBMPlexSans.txt → ui/licenses/OFL-JetBrainsMono.txt} +3 -3
- package/dist/ui/licenses/{OFL-IBMPlexSans.txt → OFL-PlusJakartaSans.txt} +3 -3
- package/package.json +1 -1
- package/dist/export/assets/export-B3cUoxL1.js +0 -150
- package/dist/export/assets/export-DQss44R1.css +0 -1
- package/dist/export/fonts/ibm-plex-mono-400.6d569bb7.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-mono-700.9f478677.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-sans-400.17fc1ce7.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-sans-500.dcc69acf.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-sans-600.d4dad061.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-sans-700.40d9a530.woff2 +0 -0
- package/dist/ui/assets/Activity-D69HiVjS.js +0 -6
- package/dist/ui/assets/Guide-DTd261-c.css +0 -1
- package/dist/ui/assets/RoadmapTab-CjYa5fye.js +0 -31
- package/dist/ui/assets/index--fRgH-8i.js +0 -236
- package/dist/ui/assets/index-9pdDzLVp.css +0 -1
- package/dist/ui/fonts/ibm-plex-mono-400.6d569bb7.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-mono-700.9f478677.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-sans-400.17fc1ce7.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-sans-500.dcc69acf.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-sans-600.d4dad061.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-sans-700.40d9a530.woff2 +0 -0
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Guide-BUXTwb19.js","assets/Guide-DTd261-c.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var ri={exports:{}},Dr={},oi={exports:{}},te={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Sc;function ch(){if(Sc)return te;Sc=1;var l=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.iterator;function C(k){return k===null||typeof k!="object"?null:(k=T&&k[T]||k["@@iterator"],typeof k=="function"?k:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,F={};function M(k,P,ee){this.props=k,this.context=P,this.refs=F,this.updater=ee||O}M.prototype.isReactComponent={},M.prototype.setState=function(k,P){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,P,"setState")},M.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function I(){}I.prototype=M.prototype;function ue(k,P,ee){this.props=k,this.context=P,this.refs=F,this.updater=ee||O}var J=ue.prototype=new I;J.constructor=ue,_(J,M.prototype),J.isPureReactComponent=!0;var L=Array.isArray,ae=Object.prototype.hasOwnProperty,pe={current:null},je={key:!0,ref:!0,__self:!0,__source:!0};function b(k,P,ee){var ne,le={},se=null,he=null;if(P!=null)for(ne in P.ref!==void 0&&(he=P.ref),P.key!==void 0&&(se=""+P.key),P)ae.call(P,ne)&&!je.hasOwnProperty(ne)&&(le[ne]=P[ne]);var ce=arguments.length-2;if(ce===1)le.children=ee;else if(1<ce){for(var ve=Array(ce),Je=0;Je<ce;Je++)ve[Je]=arguments[Je+2];le.children=ve}if(k&&k.defaultProps)for(ne in ce=k.defaultProps,ce)le[ne]===void 0&&(le[ne]=ce[ne]);return{$$typeof:l,type:k,key:se,ref:he,props:le,_owner:pe.current}}function re(k,P){return{$$typeof:l,type:k.type,key:P,ref:k.ref,props:k.props,_owner:k._owner}}function Te(k){return typeof k=="object"&&k!==null&&k.$$typeof===l}function wt(k){var P={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ee){return P[ee]})}var Ve=/\/+/g;function Oe(k,P){return typeof k=="object"&&k!==null&&k.key!=null?wt(""+k.key):P.toString(36)}function dt(k,P,ee,ne,le){var se=typeof k;(se==="undefined"||se==="boolean")&&(k=null);var he=!1;if(k===null)he=!0;else switch(se){case"string":case"number":he=!0;break;case"object":switch(k.$$typeof){case l:case i:he=!0}}if(he)return he=k,le=le(he),k=ne===""?"."+Oe(he,0):ne,L(le)?(ee="",k!=null&&(ee=k.replace(Ve,"$&/")+"/"),dt(le,P,ee,"",function(Je){return Je})):le!=null&&(Te(le)&&(le=re(le,ee+(!le.key||he&&he.key===le.key?"":(""+le.key).replace(Ve,"$&/")+"/")+k)),P.push(le)),1;if(he=0,ne=ne===""?".":ne+":",L(k))for(var ce=0;ce<k.length;ce++){se=k[ce];var ve=ne+Oe(se,ce);he+=dt(se,P,ee,ve,le)}else if(ve=C(k),typeof ve=="function")for(k=ve.call(k),ce=0;!(se=k.next()).done;)se=se.value,ve=ne+Oe(se,ce++),he+=dt(se,P,ee,ve,le);else if(se==="object")throw P=String(k),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.");return he}function kt(k,P,ee){if(k==null)return k;var ne=[],le=0;return dt(k,ne,"","",function(se){return P.call(ee,se,le++)}),ne}function qe(k){if(k._status===-1){var P=k._result;P=P(),P.then(function(ee){(k._status===0||k._status===-1)&&(k._status=1,k._result=ee)},function(ee){(k._status===0||k._status===-1)&&(k._status=2,k._result=ee)}),k._status===-1&&(k._status=0,k._result=P)}if(k._status===1)return k._result.default;throw k._result}var Ne={current:null},A={transition:null},G={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:A,ReactCurrentOwner:pe};function W(){throw Error("act(...) is not supported in production builds of React.")}return te.Children={map:kt,forEach:function(k,P,ee){kt(k,function(){P.apply(this,arguments)},ee)},count:function(k){var P=0;return kt(k,function(){P++}),P},toArray:function(k){return kt(k,function(P){return P})||[]},only:function(k){if(!Te(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},te.Component=M,te.Fragment=a,te.Profiler=f,te.PureComponent=ue,te.StrictMode=d,te.Suspense=m,te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,te.act=W,te.cloneElement=function(k,P,ee){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var ne=_({},k.props),le=k.key,se=k.ref,he=k._owner;if(P!=null){if(P.ref!==void 0&&(se=P.ref,he=pe.current),P.key!==void 0&&(le=""+P.key),k.type&&k.type.defaultProps)var ce=k.type.defaultProps;for(ve in P)ae.call(P,ve)&&!je.hasOwnProperty(ve)&&(ne[ve]=P[ve]===void 0&&ce!==void 0?ce[ve]:P[ve])}var ve=arguments.length-2;if(ve===1)ne.children=ee;else if(1<ve){ce=Array(ve);for(var Je=0;Je<ve;Je++)ce[Je]=arguments[Je+2];ne.children=ce}return{$$typeof:l,type:k.type,key:le,ref:se,props:ne,_owner:he}},te.createContext=function(k){return k={$$typeof:g,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:p,_context:k},k.Consumer=k},te.createElement=b,te.createFactory=function(k){var P=b.bind(null,k);return P.type=k,P},te.createRef=function(){return{current:null}},te.forwardRef=function(k){return{$$typeof:w,render:k}},te.isValidElement=Te,te.lazy=function(k){return{$$typeof:E,_payload:{_status:-1,_result:k},_init:qe}},te.memo=function(k,P){return{$$typeof:j,type:k,compare:P===void 0?null:P}},te.startTransition=function(k){var P=A.transition;A.transition={};try{k()}finally{A.transition=P}},te.unstable_act=W,te.useCallback=function(k,P){return Ne.current.useCallback(k,P)},te.useContext=function(k){return Ne.current.useContext(k)},te.useDebugValue=function(){},te.useDeferredValue=function(k){return Ne.current.useDeferredValue(k)},te.useEffect=function(k,P){return Ne.current.useEffect(k,P)},te.useId=function(){return Ne.current.useId()},te.useImperativeHandle=function(k,P,ee){return Ne.current.useImperativeHandle(k,P,ee)},te.useInsertionEffect=function(k,P){return Ne.current.useInsertionEffect(k,P)},te.useLayoutEffect=function(k,P){return Ne.current.useLayoutEffect(k,P)},te.useMemo=function(k,P){return Ne.current.useMemo(k,P)},te.useReducer=function(k,P,ee){return Ne.current.useReducer(k,P,ee)},te.useRef=function(k){return Ne.current.useRef(k)},te.useState=function(k){return Ne.current.useState(k)},te.useSyncExternalStore=function(k,P,ee){return Ne.current.useSyncExternalStore(k,P,ee)},te.useTransition=function(){return Ne.current.useTransition()},te.version="18.3.1",te}var Nc;function wi(){return Nc||(Nc=1,oi.exports=ch()),oi.exports}/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var _c;function dh(){if(_c)return Dr;_c=1;var l=wi(),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,f=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function g(w,m,j){var E,T={},C=null,O=null;j!==void 0&&(C=""+j),m.key!==void 0&&(C=""+m.key),m.ref!==void 0&&(O=m.ref);for(E in m)d.call(m,E)&&!p.hasOwnProperty(E)&&(T[E]=m[E]);if(w&&w.defaultProps)for(E in m=w.defaultProps,m)T[E]===void 0&&(T[E]=m[E]);return{$$typeof:i,type:w,key:C,ref:O,props:T,_owner:f.current}}return Dr.Fragment=a,Dr.jsx=g,Dr.jsxs=g,Dr}var jc;function fh(){return jc||(jc=1,ri.exports=dh()),ri.exports}var c=fh(),H=wi(),Zo={},li={exports:{}},Xe={},si={exports:{}},ii={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var Ec;function ph(){return Ec||(Ec=1,(function(l){function i(A,G){var W=A.length;A.push(G);e:for(;0<W;){var k=W-1>>>1,P=A[k];if(0<f(P,G))A[k]=G,A[W]=P,W=k;else break e}}function a(A){return A.length===0?null:A[0]}function d(A){if(A.length===0)return null;var G=A[0],W=A.pop();if(W!==G){A[0]=W;e:for(var k=0,P=A.length,ee=P>>>1;k<ee;){var ne=2*(k+1)-1,le=A[ne],se=ne+1,he=A[se];if(0>f(le,W))se<P&&0>f(he,le)?(A[k]=he,A[se]=W,k=se):(A[k]=le,A[ne]=W,k=ne);else if(se<P&&0>f(he,W))A[k]=he,A[se]=W,k=se;else break e}}return G}function f(A,G){var W=A.sortIndex-G.sortIndex;return W!==0?W:A.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;l.unstable_now=function(){return p.now()}}else{var g=Date,w=g.now();l.unstable_now=function(){return g.now()-w}}var m=[],j=[],E=1,T=null,C=3,O=!1,_=!1,F=!1,M=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function J(A){for(var G=a(j);G!==null;){if(G.callback===null)d(j);else if(G.startTime<=A)d(j),G.sortIndex=G.expirationTime,i(m,G);else break;G=a(j)}}function L(A){if(F=!1,J(A),!_)if(a(m)!==null)_=!0,qe(ae);else{var G=a(j);G!==null&&Ne(L,G.startTime-A)}}function ae(A,G){_=!1,F&&(F=!1,I(b),b=-1),O=!0;var W=C;try{for(J(G),T=a(m);T!==null&&(!(T.expirationTime>G)||A&&!wt());){var k=T.callback;if(typeof k=="function"){T.callback=null,C=T.priorityLevel;var P=k(T.expirationTime<=G);G=l.unstable_now(),typeof P=="function"?T.callback=P:T===a(m)&&d(m),J(G)}else d(m);T=a(m)}if(T!==null)var ee=!0;else{var ne=a(j);ne!==null&&Ne(L,ne.startTime-G),ee=!1}return ee}finally{T=null,C=W,O=!1}}var pe=!1,je=null,b=-1,re=5,Te=-1;function wt(){return!(l.unstable_now()-Te<re)}function Ve(){if(je!==null){var A=l.unstable_now();Te=A;var G=!0;try{G=je(!0,A)}finally{G?Oe():(pe=!1,je=null)}}else pe=!1}var Oe;if(typeof ue=="function")Oe=function(){ue(Ve)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,kt=dt.port2;dt.port1.onmessage=Ve,Oe=function(){kt.postMessage(null)}}else Oe=function(){M(Ve,0)};function qe(A){je=A,pe||(pe=!0,Oe())}function Ne(A,G){b=M(function(){A(l.unstable_now())},G)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(A){A.callback=null},l.unstable_continueExecution=function(){_||O||(_=!0,qe(ae))},l.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<A?Math.floor(1e3/A):5},l.unstable_getCurrentPriorityLevel=function(){return C},l.unstable_getFirstCallbackNode=function(){return a(m)},l.unstable_next=function(A){switch(C){case 1:case 2:case 3:var G=3;break;default:G=C}var W=C;C=G;try{return A()}finally{C=W}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(A,G){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var W=C;C=A;try{return G()}finally{C=W}},l.unstable_scheduleCallback=function(A,G,W){var k=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?k+W:k):W=k,A){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=W+P,A={id:E++,callback:G,priorityLevel:A,startTime:W,expirationTime:P,sortIndex:-1},W>k?(A.sortIndex=W,i(j,A),a(m)===null&&A===a(j)&&(F?(I(b),b=-1):F=!0,Ne(L,W-k))):(A.sortIndex=P,i(m,A),_||O||(_=!0,qe(ae))),A},l.unstable_shouldYield=wt,l.unstable_wrapCallback=function(A){var G=C;return function(){var W=C;C=G;try{return A.apply(this,arguments)}finally{C=W}}}})(ii)),ii}var Cc;function hh(){return Cc||(Cc=1,si.exports=ph()),si.exports}/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Tc;function mh(){if(Tc)return Xe;Tc=1;var l=wi(),i=hh();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=new Set,f={};function p(e,t){g(e,t),g(e+"Capture",t)}function g(e,t){for(f[e]=t,e=0;e<t.length;e++)d.add(t[e])}var w=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,j=/^[: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]*$/,E={},T={};function C(e){return m.call(T,e)?!0:m.call(E,e)?!1:j.test(e)?T[e]=!0:(E[e]=!0,!1)}function O(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,n,r){if(t===null||typeof t>"u"||O(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function F(e,t,n,r,o,s,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=u}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new F(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new F(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new F(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new F(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new F(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new F(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new F(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new F(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new F(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function ue(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I,ue);M[t]=new F(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I,ue);M[t]=new F(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I,ue);M[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new F(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new F(e,1,!1,e.toLowerCase(),null,!0,!0)});function J(e,t,n,r){var o=M.hasOwnProperty(t)?M[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,n,o,r)&&(n=null),r||o===null?C(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var L=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ae=Symbol.for("react.element"),pe=Symbol.for("react.portal"),je=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),Te=Symbol.for("react.provider"),wt=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),A=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,k;function P(e){if(k===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
|
|
35
|
-
`+k+e}var ee=!1;function ne(e,t){if(!e||ee)return"";ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(N){var r=N}Reflect.construct(e,[],t)}else{try{t.call()}catch(N){r=N}e.call(t.prototype)}else{try{throw Error()}catch(N){r=N}e()}}catch(N){if(N&&r&&typeof N.stack=="string"){for(var o=N.stack.split(`
|
|
36
|
-
`),s=r.stack.split(`
|
|
37
|
-
`),u=o.length-1,h=s.length-1;1<=u&&0<=h&&o[u]!==s[h];)h--;for(;1<=u&&0<=h;u--,h--)if(o[u]!==s[h]){if(u!==1||h!==1)do if(u--,h--,0>h||o[u]!==s[h]){var y=`
|
|
38
|
-
`+o[u].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=u&&0<=h);break}}}finally{ee=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?P(e):""}function le(e){switch(e.tag){case 5:return P(e.type);case 16:return P("Lazy");case 13:return P("Suspense");case 19:return P("SuspenseList");case 0:case 2:case 15:return e=ne(e.type,!1),e;case 11:return e=ne(e.type.render,!1),e;case 1:return e=ne(e.type,!0),e;default:return""}}function se(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case je:return"Fragment";case pe:return"Portal";case re:return"Profiler";case b:return"StrictMode";case Oe:return"Suspense";case dt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wt:return(e.displayName||"Context")+".Consumer";case Te:return(e._context.displayName||"Context")+".Provider";case Ve:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kt:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function he(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return se(t);case 8:return t===b?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(u){r=""+u,s.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hr(e){e._valueTracker||(e._valueTracker=Je(e))}function Ti(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ve(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Br(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function cl(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $i(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ce(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Pi(e,t){t=t.checked,t!=null&&J(e,"checked",t,!1)}function dl(e,t){Pi(e,t);var n=ce(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fl(e,t.type,n):t.hasOwnProperty("defaultValue")&&fl(e,t.type,ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ri(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fl(e,t,n){(t!=="number"||Br(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bn=Array.isArray;function Sn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ce(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function pl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(a(92));if(bn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ce(n)}}function Li(e,t){var n=ce(t.value),r=ce(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Di(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Oi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function hl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Oi(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wr,Mi=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wr=Wr||document.createElement("div"),Wr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hf=["Webkit","ms","Moz","O"];Object.keys(Xn).forEach(function(e){hf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xn[t]=Xn[e]})});function Ii(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xn.hasOwnProperty(e)&&Xn[e]?(""+t).trim():t+"px"}function Ai(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ii(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mf=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ml(e,t){if(t){if(mf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function gl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yl=null;function vl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wl=null,Nn=null,_n=null;function Fi(e){if(e=wr(e)){if(typeof wl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=po(t),wl(e.stateNode,e.type,t))}}function Ui(e){Nn?_n?_n.push(e):_n=[e]:Nn=e}function Hi(){if(Nn){var e=Nn,t=_n;if(_n=Nn=null,Fi(e),t)for(e=0;e<t.length;e++)Fi(t[e])}}function Bi(e,t){return e(t)}function Wi(){}var kl=!1;function Vi(e,t,n){if(kl)return e(t,n);kl=!0;try{return Bi(e,t,n)}finally{kl=!1,(Nn!==null||_n!==null)&&(Wi(),Hi())}}function Zn(e,t){var n=e.stateNode;if(n===null)return null;var r=po(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(a(231,t,typeof n));return n}var xl=!1;if(w)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){xl=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{xl=!1}function gf(e,t,n,r,o,s,u,h,y){var N=Array.prototype.slice.call(arguments,3);try{t.apply(n,N)}catch(R){this.onError(R)}}var er=!1,Vr=null,qr=!1,Sl=null,yf={onError:function(e){er=!0,Vr=e}};function vf(e,t,n,r,o,s,u,h,y){er=!1,Vr=null,gf.apply(yf,arguments)}function wf(e,t,n,r,o,s,u,h,y){if(vf.apply(this,arguments),er){if(er){var N=Vr;er=!1,Vr=null}else throw Error(a(198));qr||(qr=!0,Sl=N)}}function ln(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function qi(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Qi(e){if(ln(e)!==e)throw Error(a(188))}function kf(e){var t=e.alternate;if(!t){if(t=ln(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Qi(o),e;if(s===r)return Qi(o),t;s=s.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=s;else{for(var u=!1,h=o.child;h;){if(h===n){u=!0,n=o,r=s;break}if(h===r){u=!0,r=o,n=s;break}h=h.sibling}if(!u){for(h=s.child;h;){if(h===n){u=!0,n=s,r=o;break}if(h===r){u=!0,r=s,n=o;break}h=h.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function Ki(e){return e=kf(e),e!==null?Yi(e):null}function Yi(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yi(e);if(t!==null)return t;e=e.sibling}return null}var bi=i.unstable_scheduleCallback,Gi=i.unstable_cancelCallback,xf=i.unstable_shouldYield,Sf=i.unstable_requestPaint,Ee=i.unstable_now,Nf=i.unstable_getCurrentPriorityLevel,Nl=i.unstable_ImmediatePriority,Xi=i.unstable_UserBlockingPriority,Qr=i.unstable_NormalPriority,_f=i.unstable_LowPriority,Zi=i.unstable_IdlePriority,Kr=null,xt=null;function jf(e){if(xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Kr,e,void 0,(e.current.flags&128)===128)}catch{}}var ft=Math.clz32?Math.clz32:Tf,Ef=Math.log,Cf=Math.LN2;function Tf(e){return e>>>=0,e===0?32:31-(Ef(e)/Cf|0)|0}var Yr=64,br=4194304;function tr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,u=n&268435455;if(u!==0){var h=u&~o;h!==0?r=tr(h):(s&=u,s!==0&&(r=tr(s)))}else u=n&~o,u!==0?r=tr(u):s!==0&&(r=tr(s));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ft(t),o=1<<n,r|=e[n],t&=~o;return r}function $f(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-ft(s),h=1<<u,y=o[u];y===-1?((h&n)===0||(h&r)!==0)&&(o[u]=$f(h,t)):y<=t&&(e.expiredLanes|=h),s&=~h}}function _l(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ji(){var e=Yr;return Yr<<=1,(Yr&4194240)===0&&(Yr=64),e}function jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function Rf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ft(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function El(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ft(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var de=0;function ea(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ta,Cl,na,ra,oa,Tl=!1,Xr=[],It=null,At=null,Ft=null,rr=new Map,or=new Map,Ut=[],zf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function la(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":rr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function lr(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=wr(t),t!==null&&Cl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Lf(e,t,n,r,o){switch(t){case"focusin":return It=lr(It,e,t,n,r,o),!0;case"dragenter":return At=lr(At,e,t,n,r,o),!0;case"mouseover":return Ft=lr(Ft,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return rr.set(s,lr(rr.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,or.set(s,lr(or.get(s)||null,e,t,n,r,o)),!0}return!1}function sa(e){var t=sn(e.target);if(t!==null){var n=ln(t);if(n!==null){if(t=n.tag,t===13){if(t=qi(n),t!==null){e.blockedOn=t,oa(e.priority,function(){na(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yl=r,n.target.dispatchEvent(r),yl=null}else return t=wr(n),t!==null&&Cl(t),e.blockedOn=n,!1;t.shift()}return!0}function ia(e,t,n){Zr(e)&&n.delete(t)}function Df(){Tl=!1,It!==null&&Zr(It)&&(It=null),At!==null&&Zr(At)&&(At=null),Ft!==null&&Zr(Ft)&&(Ft=null),rr.forEach(ia),or.forEach(ia)}function sr(e,t){e.blockedOn===t&&(e.blockedOn=null,Tl||(Tl=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Df)))}function ir(e){function t(o){return sr(o,e)}if(0<Xr.length){sr(Xr[0],e);for(var n=1;n<Xr.length;n++){var r=Xr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(It!==null&&sr(It,e),At!==null&&sr(At,e),Ft!==null&&sr(Ft,e),rr.forEach(t),or.forEach(t),n=0;n<Ut.length;n++)r=Ut[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ut.length&&(n=Ut[0],n.blockedOn===null);)sa(n),n.blockedOn===null&&Ut.shift()}var jn=L.ReactCurrentBatchConfig,Jr=!0;function Of(e,t,n,r){var o=de,s=jn.transition;jn.transition=null;try{de=1,$l(e,t,n,r)}finally{de=o,jn.transition=s}}function Mf(e,t,n,r){var o=de,s=jn.transition;jn.transition=null;try{de=4,$l(e,t,n,r)}finally{de=o,jn.transition=s}}function $l(e,t,n,r){if(Jr){var o=Pl(e,t,n,r);if(o===null)Kl(e,t,r,eo,n),la(e,r);else if(Lf(o,e,t,n,r))r.stopPropagation();else if(la(e,r),t&4&&-1<zf.indexOf(e)){for(;o!==null;){var s=wr(o);if(s!==null&&ta(s),s=Pl(e,t,n,r),s===null&&Kl(e,t,r,eo,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Kl(e,t,r,null,n)}}var eo=null;function Pl(e,t,n,r){if(eo=null,e=vl(r),e=sn(e),e!==null)if(t=ln(e),t===null)e=null;else if(n=t.tag,n===13){if(e=qi(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return eo=e,null}function aa(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Nf()){case Nl:return 1;case Xi:return 4;case Qr:case _f:return 16;case Zi:return 536870912;default:return 16}default:return 16}}var Ht=null,Rl=null,to=null;function ua(){if(to)return to;var e,t=Rl,n=t.length,r,o="value"in Ht?Ht.value:Ht.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===o[s-r];r++);return to=o.slice(e,1<r?1-r:void 0)}function no(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ro(){return!0}function ca(){return!1}function et(e){function t(n,r,o,s,u){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=u,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(n=e[h],this[h]=n?n(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ro:ca,this.isPropagationStopped=ca,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zl=et(En),ar=W({},En,{view:0,detail:0}),If=et(ar),Ll,Dl,ur,oo=W({},ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ml,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ur&&(ur&&e.type==="mousemove"?(Ll=e.screenX-ur.screenX,Dl=e.screenY-ur.screenY):Dl=Ll=0,ur=e),Ll)},movementY:function(e){return"movementY"in e?e.movementY:Dl}}),da=et(oo),Af=W({},oo,{dataTransfer:0}),Ff=et(Af),Uf=W({},ar,{relatedTarget:0}),Ol=et(Uf),Hf=W({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),Bf=et(Hf),Wf=W({},En,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vf=et(Wf),qf=W({},En,{data:0}),fa=et(qf),Qf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kf={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"},Yf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yf[e])?!!t[e]:!1}function Ml(){return bf}var Gf=W({},ar,{key:function(e){if(e.key){var t=Qf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=no(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ml,charCode:function(e){return e.type==="keypress"?no(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?no(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xf=et(Gf),Zf=W({},oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pa=et(Zf),Jf=W({},ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ml}),ep=et(Jf),tp=W({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),np=et(tp),rp=W({},oo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),op=et(rp),lp=[9,13,27,32],Il=w&&"CompositionEvent"in window,cr=null;w&&"documentMode"in document&&(cr=document.documentMode);var sp=w&&"TextEvent"in window&&!cr,ha=w&&(!Il||cr&&8<cr&&11>=cr),ma=" ",ga=!1;function ya(e,t){switch(e){case"keyup":return lp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function va(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function ip(e,t){switch(e){case"compositionend":return va(t);case"keypress":return t.which!==32?null:(ga=!0,ma);case"textInput":return e=t.data,e===ma&&ga?null:e;default:return null}}function ap(e,t){if(Cn)return e==="compositionend"||!Il&&ya(e,t)?(e=ua(),to=Rl=Ht=null,Cn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ha&&t.locale!=="ko"?null:t.data;default:return null}}var up={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 wa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!up[e.type]:t==="textarea"}function ka(e,t,n,r){Ui(r),t=uo(t,"onChange"),0<t.length&&(n=new zl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var dr=null,fr=null;function cp(e){Aa(e,0)}function lo(e){var t=zn(e);if(Ti(t))return e}function dp(e,t){if(e==="change")return t}var xa=!1;if(w){var Al;if(w){var Fl="oninput"in document;if(!Fl){var Sa=document.createElement("div");Sa.setAttribute("oninput","return;"),Fl=typeof Sa.oninput=="function"}Al=Fl}else Al=!1;xa=Al&&(!document.documentMode||9<document.documentMode)}function Na(){dr&&(dr.detachEvent("onpropertychange",_a),fr=dr=null)}function _a(e){if(e.propertyName==="value"&&lo(fr)){var t=[];ka(t,fr,e,vl(e)),Vi(cp,t)}}function fp(e,t,n){e==="focusin"?(Na(),dr=t,fr=n,dr.attachEvent("onpropertychange",_a)):e==="focusout"&&Na()}function pp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lo(fr)}function hp(e,t){if(e==="click")return lo(t)}function mp(e,t){if(e==="input"||e==="change")return lo(t)}function gp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:gp;function pr(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!m.call(t,o)||!pt(e[o],t[o]))return!1}return!0}function ja(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ea(e,t){var n=ja(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ja(n)}}function Ca(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ca(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ta(){for(var e=window,t=Br();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Br(e.document)}return t}function Ul(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function yp(e){var t=Ta(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ca(n.ownerDocument.documentElement,n)){if(r!==null&&Ul(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Ea(n,s);var u=Ea(n,r);o&&u&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vp=w&&"documentMode"in document&&11>=document.documentMode,Tn=null,Hl=null,hr=null,Bl=!1;function $a(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bl||Tn==null||Tn!==Br(r)||(r=Tn,"selectionStart"in r&&Ul(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hr&&pr(hr,r)||(hr=r,r=uo(Hl,"onSelect"),0<r.length&&(t=new zl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Tn)))}function so(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $n={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},Wl={},Pa={};w&&(Pa=document.createElement("div").style,"AnimationEvent"in window||(delete $n.animationend.animation,delete $n.animationiteration.animation,delete $n.animationstart.animation),"TransitionEvent"in window||delete $n.transitionend.transition);function io(e){if(Wl[e])return Wl[e];if(!$n[e])return e;var t=$n[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pa)return Wl[e]=t[n];return e}var Ra=io("animationend"),za=io("animationiteration"),La=io("animationstart"),Da=io("transitionend"),Oa=new Map,Ma="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Bt(e,t){Oa.set(e,t),p(t,[e])}for(var Vl=0;Vl<Ma.length;Vl++){var ql=Ma[Vl],wp=ql.toLowerCase(),kp=ql[0].toUpperCase()+ql.slice(1);Bt(wp,"on"+kp)}Bt(Ra,"onAnimationEnd"),Bt(za,"onAnimationIteration"),Bt(La,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Da,"onTransitionEnd"),g("onMouseEnter",["mouseout","mouseover"]),g("onMouseLeave",["mouseout","mouseover"]),g("onPointerEnter",["pointerout","pointerover"]),g("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mr="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(" "),xp=new Set("cancel close invalid load scroll toggle".split(" ").concat(mr));function Ia(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,wf(r,t,void 0,e),e.currentTarget=null}function Aa(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var u=r.length-1;0<=u;u--){var h=r[u],y=h.instance,N=h.currentTarget;if(h=h.listener,y!==s&&o.isPropagationStopped())break e;Ia(o,h,N),s=y}else for(u=0;u<r.length;u++){if(h=r[u],y=h.instance,N=h.currentTarget,h=h.listener,y!==s&&o.isPropagationStopped())break e;Ia(o,h,N),s=y}}}if(qr)throw e=Sl,qr=!1,Sl=null,e}function ge(e,t){var n=t[Jl];n===void 0&&(n=t[Jl]=new Set);var r=e+"__bubble";n.has(r)||(Fa(t,e,2,!1),n.add(r))}function Ql(e,t,n){var r=0;t&&(r|=4),Fa(n,e,r,t)}var ao="_reactListening"+Math.random().toString(36).slice(2);function gr(e){if(!e[ao]){e[ao]=!0,d.forEach(function(n){n!=="selectionchange"&&(xp.has(n)||Ql(n,!1,e),Ql(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ao]||(t[ao]=!0,Ql("selectionchange",!1,t))}}function Fa(e,t,n,r){switch(aa(t)){case 1:var o=Of;break;case 4:o=Mf;break;default:o=$l}n=o.bind(null,t,n,e),o=void 0,!xl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Kl(e,t,n,r,o){var s=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var h=r.stateNode.containerInfo;if(h===o||h.nodeType===8&&h.parentNode===o)break;if(u===4)for(u=r.return;u!==null;){var y=u.tag;if((y===3||y===4)&&(y=u.stateNode.containerInfo,y===o||y.nodeType===8&&y.parentNode===o))return;u=u.return}for(;h!==null;){if(u=sn(h),u===null)return;if(y=u.tag,y===5||y===6){r=s=u;continue e}h=h.parentNode}}r=r.return}Vi(function(){var N=s,R=vl(n),z=[];e:{var $=Oa.get(e);if($!==void 0){var U=zl,V=e;switch(e){case"keypress":if(no(n)===0)break e;case"keydown":case"keyup":U=Xf;break;case"focusin":V="focus",U=Ol;break;case"focusout":V="blur",U=Ol;break;case"beforeblur":case"afterblur":U=Ol;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=da;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Ff;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=ep;break;case Ra:case za:case La:U=Bf;break;case Da:U=np;break;case"scroll":U=If;break;case"wheel":U=op;break;case"copy":case"cut":case"paste":U=Vf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=pa}var q=(t&4)!==0,Ce=!q&&e==="scroll",x=q?$!==null?$+"Capture":null:$;q=[];for(var v=N,S;v!==null;){S=v;var D=S.stateNode;if(S.tag===5&&D!==null&&(S=D,x!==null&&(D=Zn(v,x),D!=null&&q.push(yr(v,D,S)))),Ce)break;v=v.return}0<q.length&&($=new U($,V,null,n,R),z.push({event:$,listeners:q}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",$&&n!==yl&&(V=n.relatedTarget||n.fromElement)&&(sn(V)||V[Tt]))break e;if((U||$)&&($=R.window===R?R:($=R.ownerDocument)?$.defaultView||$.parentWindow:window,U?(V=n.relatedTarget||n.toElement,U=N,V=V?sn(V):null,V!==null&&(Ce=ln(V),V!==Ce||V.tag!==5&&V.tag!==6)&&(V=null)):(U=null,V=N),U!==V)){if(q=da,D="onMouseLeave",x="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(q=pa,D="onPointerLeave",x="onPointerEnter",v="pointer"),Ce=U==null?$:zn(U),S=V==null?$:zn(V),$=new q(D,v+"leave",U,n,R),$.target=Ce,$.relatedTarget=S,D=null,sn(R)===N&&(q=new q(x,v+"enter",V,n,R),q.target=S,q.relatedTarget=Ce,D=q),Ce=D,U&&V)t:{for(q=U,x=V,v=0,S=q;S;S=Pn(S))v++;for(S=0,D=x;D;D=Pn(D))S++;for(;0<v-S;)q=Pn(q),v--;for(;0<S-v;)x=Pn(x),S--;for(;v--;){if(q===x||x!==null&&q===x.alternate)break t;q=Pn(q),x=Pn(x)}q=null}else q=null;U!==null&&Ua(z,$,U,q,!1),V!==null&&Ce!==null&&Ua(z,Ce,V,q,!0)}}e:{if($=N?zn(N):window,U=$.nodeName&&$.nodeName.toLowerCase(),U==="select"||U==="input"&&$.type==="file")var Q=dp;else if(wa($))if(xa)Q=mp;else{Q=pp;var K=fp}else(U=$.nodeName)&&U.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(Q=hp);if(Q&&(Q=Q(e,N))){ka(z,Q,n,R);break e}K&&K(e,$,N),e==="focusout"&&(K=$._wrapperState)&&K.controlled&&$.type==="number"&&fl($,"number",$.value)}switch(K=N?zn(N):window,e){case"focusin":(wa(K)||K.contentEditable==="true")&&(Tn=K,Hl=N,hr=null);break;case"focusout":hr=Hl=Tn=null;break;case"mousedown":Bl=!0;break;case"contextmenu":case"mouseup":case"dragend":Bl=!1,$a(z,n,R);break;case"selectionchange":if(vp)break;case"keydown":case"keyup":$a(z,n,R)}var Y;if(Il)e:{switch(e){case"compositionstart":var X="onCompositionStart";break e;case"compositionend":X="onCompositionEnd";break e;case"compositionupdate":X="onCompositionUpdate";break e}X=void 0}else Cn?ya(e,n)&&(X="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(X="onCompositionStart");X&&(ha&&n.locale!=="ko"&&(Cn||X!=="onCompositionStart"?X==="onCompositionEnd"&&Cn&&(Y=ua()):(Ht=R,Rl="value"in Ht?Ht.value:Ht.textContent,Cn=!0)),K=uo(N,X),0<K.length&&(X=new fa(X,e,null,n,R),z.push({event:X,listeners:K}),Y?X.data=Y:(Y=va(n),Y!==null&&(X.data=Y)))),(Y=sp?ip(e,n):ap(e,n))&&(N=uo(N,"onBeforeInput"),0<N.length&&(R=new fa("onBeforeInput","beforeinput",null,n,R),z.push({event:R,listeners:N}),R.data=Y))}Aa(z,t)})}function yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uo(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Zn(e,n),s!=null&&r.unshift(yr(e,s,o)),s=Zn(e,t),s!=null&&r.push(yr(e,s,o))),e=e.return}return r}function Pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ua(e,t,n,r,o){for(var s=t._reactName,u=[];n!==null&&n!==r;){var h=n,y=h.alternate,N=h.stateNode;if(y!==null&&y===r)break;h.tag===5&&N!==null&&(h=N,o?(y=Zn(n,s),y!=null&&u.unshift(yr(n,y,h))):o||(y=Zn(n,s),y!=null&&u.push(yr(n,y,h)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var Sp=/\r\n?/g,Np=/\u0000|\uFFFD/g;function Ha(e){return(typeof e=="string"?e:""+e).replace(Sp,`
|
|
39
|
-
`).replace(Np,"")}function co(e,t,n){if(t=Ha(t),Ha(e)!==t&&n)throw Error(a(425))}function fo(){}var Yl=null,bl=null;function Gl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xl=typeof setTimeout=="function"?setTimeout:void 0,_p=typeof clearTimeout=="function"?clearTimeout:void 0,Ba=typeof Promise=="function"?Promise:void 0,jp=typeof queueMicrotask=="function"?queueMicrotask:typeof Ba<"u"?function(e){return Ba.resolve(null).then(e).catch(Ep)}:Xl;function Ep(e){setTimeout(function(){throw e})}function Zl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ir(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ir(t)}function Wt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Wa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Rn=Math.random().toString(36).slice(2),St="__reactFiber$"+Rn,vr="__reactProps$"+Rn,Tt="__reactContainer$"+Rn,Jl="__reactEvents$"+Rn,Cp="__reactListeners$"+Rn,Tp="__reactHandles$"+Rn;function sn(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wa(e);e!==null;){if(n=e[St])return n;e=Wa(e)}return t}e=n,n=e.parentNode}return null}function wr(e){return e=e[St]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function po(e){return e[vr]||null}var es=[],Ln=-1;function Vt(e){return{current:e}}function ye(e){0>Ln||(e.current=es[Ln],es[Ln]=null,Ln--)}function me(e,t){Ln++,es[Ln]=e.current,e.current=t}var qt={},Ae=Vt(qt),Qe=Vt(!1),an=qt;function Dn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ke(e){return e=e.childContextTypes,e!=null}function ho(){ye(Qe),ye(Ae)}function Va(e,t,n){if(Ae.current!==qt)throw Error(a(168));me(Ae,t),me(Qe,n)}function qa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(a(108,he(e)||"Unknown",o));return W({},n,r)}function mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,an=Ae.current,me(Ae,e),me(Qe,Qe.current),!0}function Qa(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=qa(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,ye(Qe),ye(Ae),me(Ae,e)):ye(Qe),me(Qe,n)}var $t=null,go=!1,ts=!1;function Ka(e){$t===null?$t=[e]:$t.push(e)}function $p(e){go=!0,Ka(e)}function Qt(){if(!ts&&$t!==null){ts=!0;var e=0,t=de;try{var n=$t;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$t=null,go=!1}catch(o){throw $t!==null&&($t=$t.slice(e+1)),bi(Nl,Qt),o}finally{de=t,ts=!1}}return null}var On=[],Mn=0,yo=null,vo=0,lt=[],st=0,un=null,Pt=1,Rt="";function cn(e,t){On[Mn++]=vo,On[Mn++]=yo,yo=e,vo=t}function Ya(e,t,n){lt[st++]=Pt,lt[st++]=Rt,lt[st++]=un,un=e;var r=Pt;e=Rt;var o=32-ft(r)-1;r&=~(1<<o),n+=1;var s=32-ft(t)+o;if(30<s){var u=o-o%5;s=(r&(1<<u)-1).toString(32),r>>=u,o-=u,Pt=1<<32-ft(t)+o|n<<o|r,Rt=s+e}else Pt=1<<s|n<<o|r,Rt=e}function ns(e){e.return!==null&&(cn(e,1),Ya(e,1,0))}function rs(e){for(;e===yo;)yo=On[--Mn],On[Mn]=null,vo=On[--Mn],On[Mn]=null;for(;e===un;)un=lt[--st],lt[st]=null,Rt=lt[--st],lt[st]=null,Pt=lt[--st],lt[st]=null}var tt=null,nt=null,we=!1,ht=null;function ba(e,t){var n=ct(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ga(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,tt=e,nt=Wt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tt=e,nt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=un!==null?{id:Pt,overflow:Rt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,tt=e,nt=null,!0):!1;default:return!1}}function os(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ls(e){if(we){var t=nt;if(t){var n=t;if(!Ga(e,t)){if(os(e))throw Error(a(418));t=Wt(n.nextSibling);var r=tt;t&&Ga(e,t)?ba(r,n):(e.flags=e.flags&-4097|2,we=!1,tt=e)}}else{if(os(e))throw Error(a(418));e.flags=e.flags&-4097|2,we=!1,tt=e}}}function Xa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tt=e}function wo(e){if(e!==tt)return!1;if(!we)return Xa(e),we=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gl(e.type,e.memoizedProps)),t&&(t=nt)){if(os(e))throw Za(),Error(a(418));for(;t;)ba(e,t),t=Wt(t.nextSibling)}if(Xa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nt=Wt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nt=null}}else nt=tt?Wt(e.stateNode.nextSibling):null;return!0}function Za(){for(var e=nt;e;)e=Wt(e.nextSibling)}function In(){nt=tt=null,we=!1}function ss(e){ht===null?ht=[e]:ht.push(e)}var Pp=L.ReactCurrentBatchConfig;function kr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(u){var h=o.refs;u===null?delete h[s]:h[s]=u},t._stringRef=s,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ko(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ja(e){var t=e._init;return t(e._payload)}function eu(e){function t(x,v){if(e){var S=x.deletions;S===null?(x.deletions=[v],x.flags|=16):S.push(v)}}function n(x,v){if(!e)return null;for(;v!==null;)t(x,v),v=v.sibling;return null}function r(x,v){for(x=new Map;v!==null;)v.key!==null?x.set(v.key,v):x.set(v.index,v),v=v.sibling;return x}function o(x,v){return x=en(x,v),x.index=0,x.sibling=null,x}function s(x,v,S){return x.index=S,e?(S=x.alternate,S!==null?(S=S.index,S<v?(x.flags|=2,v):S):(x.flags|=2,v)):(x.flags|=1048576,v)}function u(x){return e&&x.alternate===null&&(x.flags|=2),x}function h(x,v,S,D){return v===null||v.tag!==6?(v=Xs(S,x.mode,D),v.return=x,v):(v=o(v,S),v.return=x,v)}function y(x,v,S,D){var Q=S.type;return Q===je?R(x,v,S.props.children,D,S.key):v!==null&&(v.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===qe&&Ja(Q)===v.type)?(D=o(v,S.props),D.ref=kr(x,v,S),D.return=x,D):(D=Vo(S.type,S.key,S.props,null,x.mode,D),D.ref=kr(x,v,S),D.return=x,D)}function N(x,v,S,D){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Zs(S,x.mode,D),v.return=x,v):(v=o(v,S.children||[]),v.return=x,v)}function R(x,v,S,D,Q){return v===null||v.tag!==7?(v=vn(S,x.mode,D,Q),v.return=x,v):(v=o(v,S),v.return=x,v)}function z(x,v,S){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Xs(""+v,x.mode,S),v.return=x,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ae:return S=Vo(v.type,v.key,v.props,null,x.mode,S),S.ref=kr(x,null,v),S.return=x,S;case pe:return v=Zs(v,x.mode,S),v.return=x,v;case qe:var D=v._init;return z(x,D(v._payload),S)}if(bn(v)||G(v))return v=vn(v,x.mode,S,null),v.return=x,v;ko(x,v)}return null}function $(x,v,S,D){var Q=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return Q!==null?null:h(x,v,""+S,D);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ae:return S.key===Q?y(x,v,S,D):null;case pe:return S.key===Q?N(x,v,S,D):null;case qe:return Q=S._init,$(x,v,Q(S._payload),D)}if(bn(S)||G(S))return Q!==null?null:R(x,v,S,D,null);ko(x,S)}return null}function U(x,v,S,D,Q){if(typeof D=="string"&&D!==""||typeof D=="number")return x=x.get(S)||null,h(v,x,""+D,Q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case ae:return x=x.get(D.key===null?S:D.key)||null,y(v,x,D,Q);case pe:return x=x.get(D.key===null?S:D.key)||null,N(v,x,D,Q);case qe:var K=D._init;return U(x,v,S,K(D._payload),Q)}if(bn(D)||G(D))return x=x.get(S)||null,R(v,x,D,Q,null);ko(v,D)}return null}function V(x,v,S,D){for(var Q=null,K=null,Y=v,X=v=0,De=null;Y!==null&&X<S.length;X++){Y.index>X?(De=Y,Y=null):De=Y.sibling;var ie=$(x,Y,S[X],D);if(ie===null){Y===null&&(Y=De);break}e&&Y&&ie.alternate===null&&t(x,Y),v=s(ie,v,X),K===null?Q=ie:K.sibling=ie,K=ie,Y=De}if(X===S.length)return n(x,Y),we&&cn(x,X),Q;if(Y===null){for(;X<S.length;X++)Y=z(x,S[X],D),Y!==null&&(v=s(Y,v,X),K===null?Q=Y:K.sibling=Y,K=Y);return we&&cn(x,X),Q}for(Y=r(x,Y);X<S.length;X++)De=U(Y,x,X,S[X],D),De!==null&&(e&&De.alternate!==null&&Y.delete(De.key===null?X:De.key),v=s(De,v,X),K===null?Q=De:K.sibling=De,K=De);return e&&Y.forEach(function(tn){return t(x,tn)}),we&&cn(x,X),Q}function q(x,v,S,D){var Q=G(S);if(typeof Q!="function")throw Error(a(150));if(S=Q.call(S),S==null)throw Error(a(151));for(var K=Q=null,Y=v,X=v=0,De=null,ie=S.next();Y!==null&&!ie.done;X++,ie=S.next()){Y.index>X?(De=Y,Y=null):De=Y.sibling;var tn=$(x,Y,ie.value,D);if(tn===null){Y===null&&(Y=De);break}e&&Y&&tn.alternate===null&&t(x,Y),v=s(tn,v,X),K===null?Q=tn:K.sibling=tn,K=tn,Y=De}if(ie.done)return n(x,Y),we&&cn(x,X),Q;if(Y===null){for(;!ie.done;X++,ie=S.next())ie=z(x,ie.value,D),ie!==null&&(v=s(ie,v,X),K===null?Q=ie:K.sibling=ie,K=ie);return we&&cn(x,X),Q}for(Y=r(x,Y);!ie.done;X++,ie=S.next())ie=U(Y,x,X,ie.value,D),ie!==null&&(e&&ie.alternate!==null&&Y.delete(ie.key===null?X:ie.key),v=s(ie,v,X),K===null?Q=ie:K.sibling=ie,K=ie);return e&&Y.forEach(function(uh){return t(x,uh)}),we&&cn(x,X),Q}function Ce(x,v,S,D){if(typeof S=="object"&&S!==null&&S.type===je&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ae:e:{for(var Q=S.key,K=v;K!==null;){if(K.key===Q){if(Q=S.type,Q===je){if(K.tag===7){n(x,K.sibling),v=o(K,S.props.children),v.return=x,x=v;break e}}else if(K.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===qe&&Ja(Q)===K.type){n(x,K.sibling),v=o(K,S.props),v.ref=kr(x,K,S),v.return=x,x=v;break e}n(x,K);break}else t(x,K);K=K.sibling}S.type===je?(v=vn(S.props.children,x.mode,D,S.key),v.return=x,x=v):(D=Vo(S.type,S.key,S.props,null,x.mode,D),D.ref=kr(x,v,S),D.return=x,x=D)}return u(x);case pe:e:{for(K=S.key;v!==null;){if(v.key===K)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(x,v.sibling),v=o(v,S.children||[]),v.return=x,x=v;break e}else{n(x,v);break}else t(x,v);v=v.sibling}v=Zs(S,x.mode,D),v.return=x,x=v}return u(x);case qe:return K=S._init,Ce(x,v,K(S._payload),D)}if(bn(S))return V(x,v,S,D);if(G(S))return q(x,v,S,D);ko(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(x,v.sibling),v=o(v,S),v.return=x,x=v):(n(x,v),v=Xs(S,x.mode,D),v.return=x,x=v),u(x)):n(x,v)}return Ce}var An=eu(!0),tu=eu(!1),xo=Vt(null),So=null,Fn=null,is=null;function as(){is=Fn=So=null}function us(e){var t=xo.current;ye(xo),e._currentValue=t}function cs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Un(e,t){So=e,is=Fn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ye=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(is!==e)if(e={context:e,memoizedValue:t,next:null},Fn===null){if(So===null)throw Error(a(308));Fn=e,So.dependencies={lanes:0,firstContext:e}}else Fn=Fn.next=e;return t}var dn=null;function ds(e){dn===null?dn=[e]:dn.push(e)}function nu(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ds(t)):(n.next=o.next,o.next=n),t.interleaved=n,zt(e,r)}function zt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kt=!1;function fs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ru(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(oe&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zt(e,n)}return o=r.interleaved,o===null?(t.next=t,ds(r)):(t.next=o.next,o.next=t),r.interleaved=t,zt(e,n)}function No(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,El(e,n)}}function ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=u:s=s.next=u,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _o(e,t,n,r){var o=e.updateQueue;Kt=!1;var s=o.firstBaseUpdate,u=o.lastBaseUpdate,h=o.shared.pending;if(h!==null){o.shared.pending=null;var y=h,N=y.next;y.next=null,u===null?s=N:u.next=N,u=y;var R=e.alternate;R!==null&&(R=R.updateQueue,h=R.lastBaseUpdate,h!==u&&(h===null?R.firstBaseUpdate=N:h.next=N,R.lastBaseUpdate=y))}if(s!==null){var z=o.baseState;u=0,R=N=y=null,h=s;do{var $=h.lane,U=h.eventTime;if((r&$)===$){R!==null&&(R=R.next={eventTime:U,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var V=e,q=h;switch($=t,U=n,q.tag){case 1:if(V=q.payload,typeof V=="function"){z=V.call(U,z,$);break e}z=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=q.payload,$=typeof V=="function"?V.call(U,z,$):V,$==null)break e;z=W({},z,$);break e;case 2:Kt=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,$=o.effects,$===null?o.effects=[h]:$.push(h))}else U={eventTime:U,lane:$,tag:h.tag,payload:h.payload,callback:h.callback,next:null},R===null?(N=R=U,y=z):R=R.next=U,u|=$;if(h=h.next,h===null){if(h=o.shared.pending,h===null)break;$=h,h=$.next,$.next=null,o.lastBaseUpdate=$,o.shared.pending=null}}while(!0);if(R===null&&(y=z),o.baseState=y,o.firstBaseUpdate=N,o.lastBaseUpdate=R,t=o.shared.interleaved,t!==null){o=t;do u|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);hn|=u,e.lanes=u,e.memoizedState=z}}function lu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(a(191,o));o.call(r)}}}var xr={},Nt=Vt(xr),Sr=Vt(xr),Nr=Vt(xr);function fn(e){if(e===xr)throw Error(a(174));return e}function ps(e,t){switch(me(Nr,t),me(Sr,e),me(Nt,xr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hl(t,e)}ye(Nt),me(Nt,t)}function Hn(){ye(Nt),ye(Sr),ye(Nr)}function su(e){fn(Nr.current);var t=fn(Nt.current),n=hl(t,e.type);t!==n&&(me(Sr,e),me(Nt,n))}function hs(e){Sr.current===e&&(ye(Nt),ye(Sr))}var xe=Vt(0);function jo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ms=[];function gs(){for(var e=0;e<ms.length;e++)ms[e]._workInProgressVersionPrimary=null;ms.length=0}var Eo=L.ReactCurrentDispatcher,ys=L.ReactCurrentBatchConfig,pn=0,Se=null,Pe=null,ze=null,Co=!1,_r=!1,jr=0,Rp=0;function Fe(){throw Error(a(321))}function vs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pt(e[n],t[n]))return!1;return!0}function ws(e,t,n,r,o,s){if(pn=s,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eo.current=e===null||e.memoizedState===null?Op:Mp,e=n(r,o),_r){s=0;do{if(_r=!1,jr=0,25<=s)throw Error(a(301));s+=1,ze=Pe=null,t.updateQueue=null,Eo.current=Ip,e=n(r,o)}while(_r)}if(Eo.current=Po,t=Pe!==null&&Pe.next!==null,pn=0,ze=Pe=Se=null,Co=!1,t)throw Error(a(300));return e}function ks(){var e=jr!==0;return jr=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?Se.memoizedState=ze=e:ze=ze.next=e,ze}function at(){if(Pe===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=ze===null?Se.memoizedState:ze.next;if(t!==null)ze=t,Pe=e;else{if(e===null)throw Error(a(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},ze===null?Se.memoizedState=ze=e:ze=ze.next=e}return ze}function Er(e,t){return typeof t=="function"?t(e):t}function xs(e){var t=at(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Pe,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var u=o.next;o.next=s.next,s.next=u}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var h=u=null,y=null,N=s;do{var R=N.lane;if((pn&R)===R)y!==null&&(y=y.next={lane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),r=N.hasEagerState?N.eagerState:e(r,N.action);else{var z={lane:R,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};y===null?(h=y=z,u=r):y=y.next=z,Se.lanes|=R,hn|=R}N=N.next}while(N!==null&&N!==s);y===null?u=r:y.next=h,pt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=y,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Se.lanes|=s,hn|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ss(e){var t=at(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var u=o=o.next;do s=e(s,u.action),u=u.next;while(u!==o);pt(s,t.memoizedState)||(Ye=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function iu(){}function au(e,t){var n=Se,r=at(),o=t(),s=!pt(r.memoizedState,o);if(s&&(r.memoizedState=o,Ye=!0),r=r.queue,Ns(du.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,Cr(9,cu.bind(null,n,r,o,t),void 0,null),Le===null)throw Error(a(349));(pn&30)!==0||uu(n,t,o)}return o}function uu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cu(e,t,n,r){t.value=n,t.getSnapshot=r,fu(t)&&pu(e)}function du(e,t,n){return n(function(){fu(t)&&pu(e)})}function fu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pt(e,n)}catch{return!0}}function pu(e){var t=zt(e,1);t!==null&&vt(t,e,1,-1)}function hu(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:e},t.queue=e,e=e.dispatch=Dp.bind(null,Se,e),[t.memoizedState,e]}function Cr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function mu(){return at().memoizedState}function To(e,t,n,r){var o=_t();Se.flags|=e,o.memoizedState=Cr(1|t,n,void 0,r===void 0?null:r)}function $o(e,t,n,r){var o=at();r=r===void 0?null:r;var s=void 0;if(Pe!==null){var u=Pe.memoizedState;if(s=u.destroy,r!==null&&vs(r,u.deps)){o.memoizedState=Cr(t,n,s,r);return}}Se.flags|=e,o.memoizedState=Cr(1|t,n,s,r)}function gu(e,t){return To(8390656,8,e,t)}function Ns(e,t){return $o(2048,8,e,t)}function yu(e,t){return $o(4,2,e,t)}function vu(e,t){return $o(4,4,e,t)}function wu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ku(e,t,n){return n=n!=null?n.concat([e]):null,$o(4,4,wu.bind(null,t,e),n)}function _s(){}function xu(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Su(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Nu(e,t,n){return(pn&21)===0?(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n):(pt(n,t)||(n=Ji(),Se.lanes|=n,hn|=n,e.baseState=!0),t)}function zp(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=ys.transition;ys.transition={};try{e(!1),t()}finally{de=n,ys.transition=r}}function _u(){return at().memoizedState}function Lp(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ju(e))Eu(t,n);else if(n=nu(e,t,n,r),n!==null){var o=We();vt(n,e,r,o),Cu(n,t,r)}}function Dp(e,t,n){var r=Zt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ju(e))Eu(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var u=t.lastRenderedState,h=s(u,n);if(o.hasEagerState=!0,o.eagerState=h,pt(h,u)){var y=t.interleaved;y===null?(o.next=o,ds(t)):(o.next=y.next,y.next=o),t.interleaved=o;return}}catch{}finally{}n=nu(e,t,o,r),n!==null&&(o=We(),vt(n,e,r,o),Cu(n,t,r))}}function ju(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Eu(e,t){_r=Co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cu(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,El(e,n)}}var Po={readContext:it,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Op={readContext:it,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:gu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,To(4194308,4,wu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){return To(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Lp.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:hu,useDebugValue:_s,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=hu(!1),t=e[0];return e=zp.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=_t();if(we){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Le===null)throw Error(a(349));(pn&30)!==0||uu(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,gu(du.bind(null,r,s,e),[e]),r.flags|=2048,Cr(9,cu.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=_t(),t=Le.identifierPrefix;if(we){var n=Rt,r=Pt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Rp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mp={readContext:it,useCallback:xu,useContext:it,useEffect:Ns,useImperativeHandle:ku,useInsertionEffect:yu,useLayoutEffect:vu,useMemo:Su,useReducer:xs,useRef:mu,useState:function(){return xs(Er)},useDebugValue:_s,useDeferredValue:function(e){var t=at();return Nu(t,Pe.memoizedState,e)},useTransition:function(){var e=xs(Er)[0],t=at().memoizedState;return[e,t]},useMutableSource:iu,useSyncExternalStore:au,useId:_u,unstable_isNewReconciler:!1},Ip={readContext:it,useCallback:xu,useContext:it,useEffect:Ns,useImperativeHandle:ku,useInsertionEffect:yu,useLayoutEffect:vu,useMemo:Su,useReducer:Ss,useRef:mu,useState:function(){return Ss(Er)},useDebugValue:_s,useDeferredValue:function(e){var t=at();return Pe===null?t.memoizedState=e:Nu(t,Pe.memoizedState,e)},useTransition:function(){var e=Ss(Er)[0],t=at().memoizedState;return[e,t]},useMutableSource:iu,useSyncExternalStore:au,useId:_u,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function js(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ro={isMounted:function(e){return(e=e._reactInternals)?ln(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),s=Lt(r,o);s.payload=t,n!=null&&(s.callback=n),t=Yt(e,s,o),t!==null&&(vt(t,e,o,r),No(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),s=Lt(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Yt(e,s,o),t!==null&&(vt(t,e,o,r),No(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=Zt(e),o=Lt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Yt(e,o,r),t!==null&&(vt(t,e,r,n),No(t,e,r))}};function Tu(e,t,n,r,o,s,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,u):t.prototype&&t.prototype.isPureReactComponent?!pr(n,r)||!pr(o,s):!0}function $u(e,t,n){var r=!1,o=qt,s=t.contextType;return typeof s=="object"&&s!==null?s=it(s):(o=Ke(t)?an:Ae.current,r=t.contextTypes,s=(r=r!=null)?Dn(e,o):qt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ro,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Pu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ro.enqueueReplaceState(t,t.state,null)}function Es(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},fs(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=it(s):(s=Ke(t)?an:Ae.current,o.context=Dn(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(js(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ro.enqueueReplaceState(o,o.state,null),_o(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Bn(e,t){try{var n="",r=t;do n+=le(r),r=r.return;while(r);var o=n}catch(s){o=`
|
|
40
|
-
Error generating stack: `+s.message+`
|
|
41
|
-
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Cs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ts(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ap=typeof WeakMap=="function"?WeakMap:Map;function Ru(e,t,n){n=Lt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ao||(Ao=!0,Ws=r),Ts(e,t)},n}function zu(e,t,n){n=Lt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ts(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ts(e,t),typeof r!="function"&&(Gt===null?Gt=new Set([this]):Gt.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function Lu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ap;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Zp.bind(null,e,t,n),t.then(e,e))}function Du(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ou(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Lt(-1,1),t.tag=2,Yt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Fp=L.ReactCurrentOwner,Ye=!1;function Be(e,t,n,r){t.child=e===null?tu(t,null,n,r):An(t,e.child,n,r)}function Mu(e,t,n,r,o){n=n.render;var s=t.ref;return Un(t,o),r=ws(e,t,n,r,s,o),n=ks(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Dt(e,t,o)):(we&&n&&ns(t),t.flags|=1,Be(e,t,r,o),t.child)}function Iu(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Gs(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Au(e,t,s,r,o)):(e=Vo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,(e.lanes&o)===0){var u=s.memoizedProps;if(n=n.compare,n=n!==null?n:pr,n(u,r)&&e.ref===t.ref)return Dt(e,t,o)}return t.flags|=1,e=en(s,r),e.ref=t.ref,e.return=t,t.child=e}function Au(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(pr(s,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=s,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,Dt(e,t,o)}return $s(e,t,n,r,o)}function Fu(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(Vn,rt),rt|=n;else{if((n&1073741824)===0)return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(Vn,rt),rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,me(Vn,rt),rt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,me(Vn,rt),rt|=r;return Be(e,t,o,n),t.child}function Uu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $s(e,t,n,r,o){var s=Ke(n)?an:Ae.current;return s=Dn(t,s),Un(t,o),n=ws(e,t,n,r,s,o),r=ks(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Dt(e,t,o)):(we&&r&&ns(t),t.flags|=1,Be(e,t,n,o),t.child)}function Hu(e,t,n,r,o){if(Ke(n)){var s=!0;mo(t)}else s=!1;if(Un(t,o),t.stateNode===null)Lo(e,t),$u(t,n,r),Es(t,n,r,o),r=!0;else if(e===null){var u=t.stateNode,h=t.memoizedProps;u.props=h;var y=u.context,N=n.contextType;typeof N=="object"&&N!==null?N=it(N):(N=Ke(n)?an:Ae.current,N=Dn(t,N));var R=n.getDerivedStateFromProps,z=typeof R=="function"||typeof u.getSnapshotBeforeUpdate=="function";z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==r||y!==N)&&Pu(t,u,r,N),Kt=!1;var $=t.memoizedState;u.state=$,_o(t,r,u,o),y=t.memoizedState,h!==r||$!==y||Qe.current||Kt?(typeof R=="function"&&(js(t,n,R,r),y=t.memoizedState),(h=Kt||Tu(t,n,h,r,$,y,N))?(z||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=y),u.props=r,u.state=y,u.context=N,r=h):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,ru(e,t),h=t.memoizedProps,N=t.type===t.elementType?h:mt(t.type,h),u.props=N,z=t.pendingProps,$=u.context,y=n.contextType,typeof y=="object"&&y!==null?y=it(y):(y=Ke(n)?an:Ae.current,y=Dn(t,y));var U=n.getDerivedStateFromProps;(R=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==z||$!==y)&&Pu(t,u,r,y),Kt=!1,$=t.memoizedState,u.state=$,_o(t,r,u,o);var V=t.memoizedState;h!==z||$!==V||Qe.current||Kt?(typeof U=="function"&&(js(t,n,U,r),V=t.memoizedState),(N=Kt||Tu(t,n,N,r,$,V,y)||!1)?(R||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,V,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,V,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=V),u.props=r,u.state=V,u.context=y,r=N):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,s,o)}function Ps(e,t,n,r,o,s){Uu(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return o&&Qa(t,n,!1),Dt(e,t,s);r=t.stateNode,Fp.current=t;var h=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=An(t,e.child,null,s),t.child=An(t,null,h,s)):Be(e,t,h,s),t.memoizedState=r.state,o&&Qa(t,n,!0),t.child}function Bu(e){var t=e.stateNode;t.pendingContext?Va(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Va(e,t.context,!1),ps(e,t.containerInfo)}function Wu(e,t,n,r,o){return In(),ss(o),t.flags|=256,Be(e,t,n,r),t.child}var Rs={dehydrated:null,treeContext:null,retryLane:0};function zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Vu(e,t,n){var r=t.pendingProps,o=xe.current,s=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(o&2)!==0),h?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),me(xe,o&1),e===null)return ls(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(u=r.children,e=r.fallback,s?(r=t.mode,s=t.child,u={mode:"hidden",children:u},(r&1)===0&&s!==null?(s.childLanes=0,s.pendingProps=u):s=qo(u,r,0,null),e=vn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(n),t.memoizedState=Rs,e):Ls(t,u));if(o=e.memoizedState,o!==null&&(h=o.dehydrated,h!==null))return Up(e,t,u,r,h,o,n);if(s){s=r.fallback,u=t.mode,o=e.child,h=o.sibling;var y={mode:"hidden",children:r.children};return(u&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=y,t.deletions=null):(r=en(o,y),r.subtreeFlags=o.subtreeFlags&14680064),h!==null?s=en(h,s):(s=vn(s,u,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,u=e.child.memoizedState,u=u===null?zs(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Rs,r}return s=e.child,e=s.sibling,r=en(s,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ls(e,t){return t=qo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zo(e,t,n,r){return r!==null&&ss(r),An(t,e.child,null,n),e=Ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Up(e,t,n,r,o,s,u){if(n)return t.flags&256?(t.flags&=-257,r=Cs(Error(a(422))),zo(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=qo({mode:"visible",children:r.children},o,0,null),s=vn(s,o,u,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,(t.mode&1)!==0&&An(t,e.child,null,u),t.child.memoizedState=zs(u),t.memoizedState=Rs,s);if((t.mode&1)===0)return zo(e,t,u,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var h=r.dgst;return r=h,s=Error(a(419)),r=Cs(s,r,void 0),zo(e,t,u,r)}if(h=(u&e.childLanes)!==0,Ye||h){if(r=Le,r!==null){switch(u&-u){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|u))!==0?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,zt(e,o),vt(r,e,o,-1))}return bs(),r=Cs(Error(a(421))),zo(e,t,u,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Jp.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,nt=Wt(o.nextSibling),tt=t,we=!0,ht=null,e!==null&&(lt[st++]=Pt,lt[st++]=Rt,lt[st++]=un,Pt=e.id,Rt=e.overflow,un=t),t=Ls(t,r.children),t.flags|=4096,t)}function qu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),cs(e.return,t,n)}function Ds(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Qu(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Be(e,t,r.children,n),r=xe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qu(e,n,t);else if(e.tag===19)qu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(me(xe,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&jo(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ds(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&jo(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ds(t,!0,n,null,s);break;case"together":Ds(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Lo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Dt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=en(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=en(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hp(e,t,n){switch(t.tag){case 3:Bu(t),In();break;case 5:su(t);break;case 1:Ke(t.type)&&mo(t);break;case 4:ps(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;me(xo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(xe,xe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Vu(e,t,n):(me(xe,xe.current&1),e=Dt(e,t,n),e!==null?e.sibling:null);me(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Qu(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),me(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,Fu(e,t,n)}return Dt(e,t,n)}var Ku,Os,Yu,bu;Ku=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(){},Yu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,fn(Nt.current);var s=null;switch(n){case"input":o=cl(e,o),r=cl(e,r),s=[];break;case"select":o=W({},o,{value:void 0}),r=W({},r,{value:void 0}),s=[];break;case"textarea":o=pl(e,o),r=pl(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fo)}ml(n,r);var u;n=null;for(N in o)if(!r.hasOwnProperty(N)&&o.hasOwnProperty(N)&&o[N]!=null)if(N==="style"){var h=o[N];for(u in h)h.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else N!=="dangerouslySetInnerHTML"&&N!=="children"&&N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(f.hasOwnProperty(N)?s||(s=[]):(s=s||[]).push(N,null));for(N in r){var y=r[N];if(h=o!=null?o[N]:void 0,r.hasOwnProperty(N)&&y!==h&&(y!=null||h!=null))if(N==="style")if(h){for(u in h)!h.hasOwnProperty(u)||y&&y.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in y)y.hasOwnProperty(u)&&h[u]!==y[u]&&(n||(n={}),n[u]=y[u])}else n||(s||(s=[]),s.push(N,n)),n=y;else N==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,h=h?h.__html:void 0,y!=null&&h!==y&&(s=s||[]).push(N,y)):N==="children"?typeof y!="string"&&typeof y!="number"||(s=s||[]).push(N,""+y):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(f.hasOwnProperty(N)?(y!=null&&N==="onScroll"&&ge("scroll",e),s||h===y||(s=[])):(s=s||[]).push(N,y))}n&&(s=s||[]).push("style",n);var N=s;(t.updateQueue=N)&&(t.flags|=4)}},bu=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tr(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bp(e,t,n){var r=t.pendingProps;switch(rs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ke(t.type)&&ho(),Ue(t),null;case 3:return r=t.stateNode,Hn(),ye(Qe),ye(Ae),gs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ht!==null&&(Qs(ht),ht=null))),Os(e,t),Ue(t),null;case 5:hs(t);var o=fn(Nr.current);if(n=t.type,e!==null&&t.stateNode!=null)Yu(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Ue(t),null}if(e=fn(Nt.current),wo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[St]=t,r[vr]=s,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(o=0;o<mr.length;o++)ge(mr[o],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":$i(r,s),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ge("invalid",r);break;case"textarea":zi(r,s),ge("invalid",r)}ml(n,s),o=null;for(var u in s)if(s.hasOwnProperty(u)){var h=s[u];u==="children"?typeof h=="string"?r.textContent!==h&&(s.suppressHydrationWarning!==!0&&co(r.textContent,h,e),o=["children",h]):typeof h=="number"&&r.textContent!==""+h&&(s.suppressHydrationWarning!==!0&&co(r.textContent,h,e),o=["children",""+h]):f.hasOwnProperty(u)&&h!=null&&u==="onScroll"&&ge("scroll",r)}switch(n){case"input":Hr(r),Ri(r,s,!0);break;case"textarea":Hr(r),Di(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=fo)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Oi(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[St]=t,e[vr]=r,Ku(e,t,!1,!1),t.stateNode=e;e:{switch(u=gl(n,r),n){case"dialog":ge("cancel",e),ge("close",e),o=r;break;case"iframe":case"object":case"embed":ge("load",e),o=r;break;case"video":case"audio":for(o=0;o<mr.length;o++)ge(mr[o],e);o=r;break;case"source":ge("error",e),o=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),o=r;break;case"details":ge("toggle",e),o=r;break;case"input":$i(e,r),o=cl(e,r),ge("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=W({},r,{value:void 0}),ge("invalid",e);break;case"textarea":zi(e,r),o=pl(e,r),ge("invalid",e);break;default:o=r}ml(n,o),h=o;for(s in h)if(h.hasOwnProperty(s)){var y=h[s];s==="style"?Ai(e,y):s==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,y!=null&&Mi(e,y)):s==="children"?typeof y=="string"?(n!=="textarea"||y!=="")&&Gn(e,y):typeof y=="number"&&Gn(e,""+y):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(f.hasOwnProperty(s)?y!=null&&s==="onScroll"&&ge("scroll",e):y!=null&&J(e,s,y,u))}switch(n){case"input":Hr(e),Ri(e,r,!1);break;case"textarea":Hr(e),Di(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ce(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Sn(e,!!r.multiple,s,!1):r.defaultValue!=null&&Sn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=fo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ue(t),null;case 6:if(e&&t.stateNode!=null)bu(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(a(166));if(n=fn(Nr.current),fn(Nt.current),wo(t)){if(r=t.stateNode,n=t.memoizedProps,r[St]=t,(s=r.nodeValue!==n)&&(e=tt,e!==null))switch(e.tag){case 3:co(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&co(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[St]=t,t.stateNode=r}return Ue(t),null;case 13:if(ye(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(we&&nt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Za(),In(),t.flags|=98560,s=!1;else if(s=wo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(a(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(a(317));s[St]=t}else In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else ht!==null&&(Qs(ht),ht=null),s=!0;if(!s)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(xe.current&1)!==0?Re===0&&(Re=3):bs())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return Hn(),Os(e,t),e===null&&gr(t.stateNode.containerInfo),Ue(t),null;case 10:return us(t.type._context),Ue(t),null;case 17:return Ke(t.type)&&ho(),Ue(t),null;case 19:if(ye(xe),s=t.memoizedState,s===null)return Ue(t),null;if(r=(t.flags&128)!==0,u=s.rendering,u===null)if(r)Tr(s,!1);else{if(Re!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=jo(e),u!==null){for(t.flags|=128,Tr(s,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,u=s.alternate,u===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(xe,xe.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ee()>qn&&(t.flags|=128,r=!0,Tr(s,!1),t.lanes=4194304)}else{if(!r)if(e=jo(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!we)return Ue(t),null}else 2*Ee()-s.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,Tr(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(n=s.last,n!==null?n.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ee(),t.sibling=null,n=xe.current,me(xe,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return Ys(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(rt&1073741824)!==0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Wp(e,t){switch(rs(t),t.tag){case 1:return Ke(t.type)&&ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(),ye(Qe),ye(Ae),gs(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return hs(t),null;case 13:if(ye(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(xe),null;case 4:return Hn(),null;case 10:return us(t.type._context),null;case 22:case 23:return Ys(),null;case 24:return null;default:return null}}var Do=!1,He=!1,Vp=typeof WeakSet=="function"?WeakSet:Set,B=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Ms(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Gu=!1;function qp(e,t){if(Yl=Jr,e=Ta(),Ul(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var u=0,h=-1,y=-1,N=0,R=0,z=e,$=null;t:for(;;){for(var U;z!==n||o!==0&&z.nodeType!==3||(h=u+o),z!==s||r!==0&&z.nodeType!==3||(y=u+r),z.nodeType===3&&(u+=z.nodeValue.length),(U=z.firstChild)!==null;)$=z,z=U;for(;;){if(z===e)break t;if($===n&&++N===o&&(h=u),$===s&&++R===r&&(y=u),(U=z.nextSibling)!==null)break;z=$,$=z.parentNode}z=U}n=h===-1||y===-1?null:{start:h,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(bl={focusedElem:e,selectionRange:n},Jr=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var V=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(V!==null){var q=V.memoizedProps,Ce=V.memoizedState,x=t.stateNode,v=x.getSnapshotBeforeUpdate(t.elementType===t.type?q:mt(t.type,q),Ce);x.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(D){_e(t,t.return,D)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return V=Gu,Gu=!1,V}function $r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ms(t,n,s)}o=o.next}while(o!==r)}}function Oo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Is(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Xu(e){var t=e.alternate;t!==null&&(e.alternate=null,Xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[vr],delete t[Jl],delete t[Cp],delete t[Tp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zu(e){return e.tag===5||e.tag===3||e.tag===4}function Ju(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function As(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fo));else if(r!==4&&(e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}function Fs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fs(e,t,n),e=e.sibling;e!==null;)Fs(e,t,n),e=e.sibling}var Me=null,gt=!1;function bt(e,t,n){for(n=n.child;n!==null;)ec(e,t,n),n=n.sibling}function ec(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Kr,n)}catch{}switch(n.tag){case 5:He||Wn(n,t);case 6:var r=Me,o=gt;Me=null,bt(e,t,n),Me=r,gt=o,Me!==null&&(gt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(gt?(e=Me,n=n.stateNode,e.nodeType===8?Zl(e.parentNode,n):e.nodeType===1&&Zl(e,n),ir(e)):Zl(Me,n.stateNode));break;case 4:r=Me,o=gt,Me=n.stateNode.containerInfo,gt=!0,bt(e,t,n),Me=r,gt=o;break;case 0:case 11:case 14:case 15:if(!He&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,u=s.destroy;s=s.tag,u!==void 0&&((s&2)!==0||(s&4)!==0)&&Ms(n,t,u),o=o.next}while(o!==r)}bt(e,t,n);break;case 1:if(!He&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(h){_e(n,t,h)}bt(e,t,n);break;case 21:bt(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,bt(e,t,n),He=r):bt(e,t,n);break;default:bt(e,t,n)}}function tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vp),t.forEach(function(r){var o=eh.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,u=t,h=u;e:for(;h!==null;){switch(h.tag){case 5:Me=h.stateNode,gt=!1;break e;case 3:Me=h.stateNode.containerInfo,gt=!0;break e;case 4:Me=h.stateNode.containerInfo,gt=!0;break e}h=h.return}if(Me===null)throw Error(a(160));ec(s,u,o),Me=null,gt=!1;var y=o.alternate;y!==null&&(y.return=null),o.return=null}catch(N){_e(o,t,N)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)nc(t,e),t=t.sibling}function nc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yt(t,e),jt(e),r&4){try{$r(3,e,e.return),Oo(3,e)}catch(q){_e(e,e.return,q)}try{$r(5,e,e.return)}catch(q){_e(e,e.return,q)}}break;case 1:yt(t,e),jt(e),r&512&&n!==null&&Wn(n,n.return);break;case 5:if(yt(t,e),jt(e),r&512&&n!==null&&Wn(n,n.return),e.flags&32){var o=e.stateNode;try{Gn(o,"")}catch(q){_e(e,e.return,q)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,u=n!==null?n.memoizedProps:s,h=e.type,y=e.updateQueue;if(e.updateQueue=null,y!==null)try{h==="input"&&s.type==="radio"&&s.name!=null&&Pi(o,s),gl(h,u);var N=gl(h,s);for(u=0;u<y.length;u+=2){var R=y[u],z=y[u+1];R==="style"?Ai(o,z):R==="dangerouslySetInnerHTML"?Mi(o,z):R==="children"?Gn(o,z):J(o,R,z,N)}switch(h){case"input":dl(o,s);break;case"textarea":Li(o,s);break;case"select":var $=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var U=s.value;U!=null?Sn(o,!!s.multiple,U,!1):$!==!!s.multiple&&(s.defaultValue!=null?Sn(o,!!s.multiple,s.defaultValue,!0):Sn(o,!!s.multiple,s.multiple?[]:"",!1))}o[vr]=s}catch(q){_e(e,e.return,q)}}break;case 6:if(yt(t,e),jt(e),r&4){if(e.stateNode===null)throw Error(a(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(q){_e(e,e.return,q)}}break;case 3:if(yt(t,e),jt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ir(t.containerInfo)}catch(q){_e(e,e.return,q)}break;case 4:yt(t,e),jt(e);break;case 13:yt(t,e),jt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Bs=Ee())),r&4&&tc(e);break;case 22:if(R=n!==null&&n.memoizedState!==null,e.mode&1?(He=(N=He)||R,yt(t,e),He=N):yt(t,e),jt(e),r&8192){if(N=e.memoizedState!==null,(e.stateNode.isHidden=N)&&!R&&(e.mode&1)!==0)for(B=e,R=e.child;R!==null;){for(z=B=R;B!==null;){switch($=B,U=$.child,$.tag){case 0:case 11:case 14:case 15:$r(4,$,$.return);break;case 1:Wn($,$.return);var V=$.stateNode;if(typeof V.componentWillUnmount=="function"){r=$,n=$.return;try{t=r,V.props=t.memoizedProps,V.state=t.memoizedState,V.componentWillUnmount()}catch(q){_e(r,n,q)}}break;case 5:Wn($,$.return);break;case 22:if($.memoizedState!==null){lc(z);continue}}U!==null?(U.return=$,B=U):lc(z)}R=R.sibling}e:for(R=null,z=e;;){if(z.tag===5){if(R===null){R=z;try{o=z.stateNode,N?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(h=z.stateNode,y=z.memoizedProps.style,u=y!=null&&y.hasOwnProperty("display")?y.display:null,h.style.display=Ii("display",u))}catch(q){_e(e,e.return,q)}}}else if(z.tag===6){if(R===null)try{z.stateNode.nodeValue=N?"":z.memoizedProps}catch(q){_e(e,e.return,q)}}else if((z.tag!==22&&z.tag!==23||z.memoizedState===null||z===e)&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===e)break e;for(;z.sibling===null;){if(z.return===null||z.return===e)break e;R===z&&(R=null),z=z.return}R===z&&(R=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:yt(t,e),jt(e),r&4&&tc(e);break;case 21:break;default:yt(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Zu(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Gn(o,""),r.flags&=-33);var s=Ju(e);Fs(e,s,o);break;case 3:case 4:var u=r.stateNode.containerInfo,h=Ju(e);As(e,h,u);break;default:throw Error(a(161))}}catch(y){_e(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qp(e,t,n){B=e,rc(e)}function rc(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var o=B,s=o.child;if(o.tag===22&&r){var u=o.memoizedState!==null||Do;if(!u){var h=o.alternate,y=h!==null&&h.memoizedState!==null||He;h=Do;var N=He;if(Do=u,(He=y)&&!N)for(B=o;B!==null;)u=B,y=u.child,u.tag===22&&u.memoizedState!==null?sc(o):y!==null?(y.return=u,B=y):sc(o);for(;s!==null;)B=s,rc(s),s=s.sibling;B=o,Do=h,He=N}oc(e)}else(o.subtreeFlags&8772)!==0&&s!==null?(s.return=o,B=s):oc(e)}}function oc(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:He||Oo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!He)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&lu(t,s,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}lu(t,u,n)}break;case 5:var h=t.stateNode;if(n===null&&t.flags&4){n=h;var y=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":y.autoFocus&&n.focus();break;case"img":y.src&&(n.src=y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var N=t.alternate;if(N!==null){var R=N.memoizedState;if(R!==null){var z=R.dehydrated;z!==null&&ir(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}He||t.flags&512&&Is(t)}catch($){_e(t,t.return,$)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function lc(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function sc(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Oo(4,t)}catch(y){_e(t,n,y)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(y){_e(t,o,y)}}var s=t.return;try{Is(t)}catch(y){_e(t,s,y)}break;case 5:var u=t.return;try{Is(t)}catch(y){_e(t,u,y)}}}catch(y){_e(t,t.return,y)}if(t===e){B=null;break}var h=t.sibling;if(h!==null){h.return=t.return,B=h;break}B=t.return}}var Kp=Math.ceil,Mo=L.ReactCurrentDispatcher,Us=L.ReactCurrentOwner,ut=L.ReactCurrentBatchConfig,oe=0,Le=null,$e=null,Ie=0,rt=0,Vn=Vt(0),Re=0,Pr=null,hn=0,Io=0,Hs=0,Rr=null,be=null,Bs=0,qn=1/0,Ot=null,Ao=!1,Ws=null,Gt=null,Fo=!1,Xt=null,Uo=0,zr=0,Vs=null,Ho=-1,Bo=0;function We(){return(oe&6)!==0?Ee():Ho!==-1?Ho:Ho=Ee()}function Zt(e){return(e.mode&1)===0?1:(oe&2)!==0&&Ie!==0?Ie&-Ie:Pp.transition!==null?(Bo===0&&(Bo=Ji()),Bo):(e=de,e!==0||(e=window.event,e=e===void 0?16:aa(e.type)),e)}function vt(e,t,n,r){if(50<zr)throw zr=0,Vs=null,Error(a(185));nr(e,n,r),((oe&2)===0||e!==Le)&&(e===Le&&((oe&2)===0&&(Io|=n),Re===4&&Jt(e,Ie)),Ge(e,r),n===1&&oe===0&&(t.mode&1)===0&&(qn=Ee()+500,go&&Qt()))}function Ge(e,t){var n=e.callbackNode;Pf(e,t);var r=Gr(e,e===Le?Ie:0);if(r===0)n!==null&&Gi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Gi(n),t===1)e.tag===0?$p(ac.bind(null,e)):Ka(ac.bind(null,e)),jp(function(){(oe&6)===0&&Qt()}),n=null;else{switch(ea(r)){case 1:n=Nl;break;case 4:n=Xi;break;case 16:n=Qr;break;case 536870912:n=Zi;break;default:n=Qr}n=gc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Ho=-1,Bo=0,(oe&6)!==0)throw Error(a(327));var n=e.callbackNode;if(Qn()&&e.callbackNode!==n)return null;var r=Gr(e,e===Le?Ie:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Wo(e,r);else{t=r;var o=oe;oe|=2;var s=cc();(Le!==e||Ie!==t)&&(Ot=null,qn=Ee()+500,gn(e,t));do try{Gp();break}catch(h){uc(e,h)}while(!0);as(),Mo.current=s,oe=o,$e!==null?t=0:(Le=null,Ie=0,t=Re)}if(t!==0){if(t===2&&(o=_l(e),o!==0&&(r=o,t=qs(e,o))),t===1)throw n=Pr,gn(e,0),Jt(e,r),Ge(e,Ee()),n;if(t===6)Jt(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Yp(o)&&(t=Wo(e,r),t===2&&(s=_l(e),s!==0&&(r=s,t=qs(e,s))),t===1))throw n=Pr,gn(e,0),Jt(e,r),Ge(e,Ee()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:yn(e,be,Ot);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=Bs+500-Ee(),10<t)){if(Gr(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Xl(yn.bind(null,e,be,Ot),t);break}yn(e,be,Ot);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-ft(r);s=1<<u,u=t[u],u>o&&(o=u),r&=~s}if(r=o,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kp(r/1960))-r,10<r){e.timeoutHandle=Xl(yn.bind(null,e,be,Ot),r);break}yn(e,be,Ot);break;case 5:yn(e,be,Ot);break;default:throw Error(a(329))}}}return Ge(e,Ee()),e.callbackNode===n?ic.bind(null,e):null}function qs(e,t){var n=Rr;return e.current.memoizedState.isDehydrated&&(gn(e,t).flags|=256),e=Wo(e,t),e!==2&&(t=be,be=n,t!==null&&Qs(t)),e}function Qs(e){be===null?be=e:be.push.apply(be,e)}function Yp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!pt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jt(e,t){for(t&=~Hs,t&=~Io,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ft(t),r=1<<n;e[n]=-1,t&=~r}}function ac(e){if((oe&6)!==0)throw Error(a(327));Qn();var t=Gr(e,0);if((t&1)===0)return Ge(e,Ee()),null;var n=Wo(e,t);if(e.tag!==0&&n===2){var r=_l(e);r!==0&&(t=r,n=qs(e,r))}if(n===1)throw n=Pr,gn(e,0),Jt(e,t),Ge(e,Ee()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yn(e,be,Ot),Ge(e,Ee()),null}function Ks(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(qn=Ee()+500,go&&Qt())}}function mn(e){Xt!==null&&Xt.tag===0&&(oe&6)===0&&Qn();var t=oe;oe|=1;var n=ut.transition,r=de;try{if(ut.transition=null,de=1,e)return e()}finally{de=r,ut.transition=n,oe=t,(oe&6)===0&&Qt()}}function Ys(){rt=Vn.current,ye(Vn)}function gn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_p(n)),$e!==null)for(n=$e.return;n!==null;){var r=n;switch(rs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ho();break;case 3:Hn(),ye(Qe),ye(Ae),gs();break;case 5:hs(r);break;case 4:Hn();break;case 13:ye(xe);break;case 19:ye(xe);break;case 10:us(r.type._context);break;case 22:case 23:Ys()}n=n.return}if(Le=e,$e=e=en(e.current,null),Ie=rt=t,Re=0,Pr=null,Hs=Io=hn=0,be=Rr=null,dn!==null){for(t=0;t<dn.length;t++)if(n=dn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var u=s.next;s.next=o,r.next=u}n.pending=r}dn=null}return e}function uc(e,t){do{var n=$e;try{if(as(),Eo.current=Po,Co){for(var r=Se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Co=!1}if(pn=0,ze=Pe=Se=null,_r=!1,jr=0,Us.current=null,n===null||n.return===null){Re=1,Pr=t,$e=null;break}e:{var s=e,u=n.return,h=n,y=t;if(t=Ie,h.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var N=y,R=h,z=R.tag;if((R.mode&1)===0&&(z===0||z===11||z===15)){var $=R.alternate;$?(R.updateQueue=$.updateQueue,R.memoizedState=$.memoizedState,R.lanes=$.lanes):(R.updateQueue=null,R.memoizedState=null)}var U=Du(u);if(U!==null){U.flags&=-257,Ou(U,u,h,s,t),U.mode&1&&Lu(s,N,t),t=U,y=N;var V=t.updateQueue;if(V===null){var q=new Set;q.add(y),t.updateQueue=q}else V.add(y);break e}else{if((t&1)===0){Lu(s,N,t),bs();break e}y=Error(a(426))}}else if(we&&h.mode&1){var Ce=Du(u);if(Ce!==null){(Ce.flags&65536)===0&&(Ce.flags|=256),Ou(Ce,u,h,s,t),ss(Bn(y,h));break e}}s=y=Bn(y,h),Re!==4&&(Re=2),Rr===null?Rr=[s]:Rr.push(s),s=u;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var x=Ru(s,y,t);ou(s,x);break e;case 1:h=y;var v=s.type,S=s.stateNode;if((s.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Gt===null||!Gt.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var D=zu(s,h,t);ou(s,D);break e}}s=s.return}while(s!==null)}fc(n)}catch(Q){t=Q,$e===n&&n!==null&&($e=n=n.return);continue}break}while(!0)}function cc(){var e=Mo.current;return Mo.current=Po,e===null?Po:e}function bs(){(Re===0||Re===3||Re===2)&&(Re=4),Le===null||(hn&268435455)===0&&(Io&268435455)===0||Jt(Le,Ie)}function Wo(e,t){var n=oe;oe|=2;var r=cc();(Le!==e||Ie!==t)&&(Ot=null,gn(e,t));do try{bp();break}catch(o){uc(e,o)}while(!0);if(as(),oe=n,Mo.current=r,$e!==null)throw Error(a(261));return Le=null,Ie=0,Re}function bp(){for(;$e!==null;)dc($e)}function Gp(){for(;$e!==null&&!xf();)dc($e)}function dc(e){var t=mc(e.alternate,e,rt);e.memoizedProps=e.pendingProps,t===null?fc(e):$e=t,Us.current=null}function fc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Bp(n,t,rt),n!==null){$e=n;return}}else{if(n=Wp(n,t),n!==null){n.flags&=32767,$e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,$e=null;return}}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Re===0&&(Re=5)}function yn(e,t,n){var r=de,o=ut.transition;try{ut.transition=null,de=1,Xp(e,t,n,r)}finally{ut.transition=o,de=r}return null}function Xp(e,t,n,r){do Qn();while(Xt!==null);if((oe&6)!==0)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Rf(e,s),e===Le&&($e=Le=null,Ie=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Fo||(Fo=!0,gc(Qr,function(){return Qn(),null})),s=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||s){s=ut.transition,ut.transition=null;var u=de;de=1;var h=oe;oe|=4,Us.current=null,qp(e,n),nc(n,e),yp(bl),Jr=!!Yl,bl=Yl=null,e.current=n,Qp(n),Sf(),oe=h,de=u,ut.transition=s}else e.current=n;if(Fo&&(Fo=!1,Xt=e,Uo=o),s=e.pendingLanes,s===0&&(Gt=null),jf(n.stateNode),Ge(e,Ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ao)throw Ao=!1,e=Ws,Ws=null,e;return(Uo&1)!==0&&e.tag!==0&&Qn(),s=e.pendingLanes,(s&1)!==0?e===Vs?zr++:(zr=0,Vs=e):zr=0,Qt(),null}function Qn(){if(Xt!==null){var e=ea(Uo),t=ut.transition,n=de;try{if(ut.transition=null,de=16>e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Uo=0,(oe&6)!==0)throw Error(a(331));var o=oe;for(oe|=4,B=e.current;B!==null;){var s=B,u=s.child;if((B.flags&16)!==0){var h=s.deletions;if(h!==null){for(var y=0;y<h.length;y++){var N=h[y];for(B=N;B!==null;){var R=B;switch(R.tag){case 0:case 11:case 15:$r(8,R,s)}var z=R.child;if(z!==null)z.return=R,B=z;else for(;B!==null;){R=B;var $=R.sibling,U=R.return;if(Xu(R),R===N){B=null;break}if($!==null){$.return=U,B=$;break}B=U}}}var V=s.alternate;if(V!==null){var q=V.child;if(q!==null){V.child=null;do{var Ce=q.sibling;q.sibling=null,q=Ce}while(q!==null)}}B=s}}if((s.subtreeFlags&2064)!==0&&u!==null)u.return=s,B=u;else e:for(;B!==null;){if(s=B,(s.flags&2048)!==0)switch(s.tag){case 0:case 11:case 15:$r(9,s,s.return)}var x=s.sibling;if(x!==null){x.return=s.return,B=x;break e}B=s.return}}var v=e.current;for(B=v;B!==null;){u=B;var S=u.child;if((u.subtreeFlags&2064)!==0&&S!==null)S.return=u,B=S;else e:for(u=v;B!==null;){if(h=B,(h.flags&2048)!==0)try{switch(h.tag){case 0:case 11:case 15:Oo(9,h)}}catch(Q){_e(h,h.return,Q)}if(h===u){B=null;break e}var D=h.sibling;if(D!==null){D.return=h.return,B=D;break e}B=h.return}}if(oe=o,Qt(),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Kr,e)}catch{}r=!0}return r}finally{de=n,ut.transition=t}}return!1}function pc(e,t,n){t=Bn(n,t),t=Ru(e,t,1),e=Yt(e,t,1),t=We(),e!==null&&(nr(e,1,t),Ge(e,t))}function _e(e,t,n){if(e.tag===3)pc(e,e,n);else for(;t!==null;){if(t.tag===3){pc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gt===null||!Gt.has(r))){e=Bn(n,e),e=zu(t,e,1),t=Yt(t,e,1),e=We(),t!==null&&(nr(t,1,e),Ge(t,e));break}}t=t.return}}function Zp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Ie&n)===n&&(Re===4||Re===3&&(Ie&130023424)===Ie&&500>Ee()-Bs?gn(e,0):Hs|=n),Ge(e,t)}function hc(e,t){t===0&&((e.mode&1)===0?t=1:(t=br,br<<=1,(br&130023424)===0&&(br=4194304)));var n=We();e=zt(e,t),e!==null&&(nr(e,t,n),Ge(e,n))}function Jp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hc(e,n)}function eh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),hc(e,n)}var mc;mc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ye=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ye=!1,Hp(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,we&&(t.flags&1048576)!==0&&Ya(t,vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Lo(e,t),e=t.pendingProps;var o=Dn(t,Ae.current);Un(t,n),o=ws(null,t,r,e,o,n);var s=ks();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(s=!0,mo(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,fs(t),o.updater=Ro,t.stateNode=o,o._reactInternals=t,Es(t,r,e,n),t=Ps(null,t,r,!0,s,n)):(t.tag=0,we&&s&&ns(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Lo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=nh(r),e=mt(r,e),o){case 0:t=$s(null,t,r,e,n);break e;case 1:t=Hu(null,t,r,e,n);break e;case 11:t=Mu(null,t,r,e,n);break e;case 14:t=Iu(null,t,r,mt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),$s(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Hu(e,t,r,o,n);case 3:e:{if(Bu(t),e===null)throw Error(a(387));r=t.pendingProps,s=t.memoizedState,o=s.element,ru(e,t),_o(t,r,null,n);var u=t.memoizedState;if(r=u.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Bn(Error(a(423)),t),t=Wu(e,t,r,n,o);break e}else if(r!==o){o=Bn(Error(a(424)),t),t=Wu(e,t,r,n,o);break e}else for(nt=Wt(t.stateNode.containerInfo.firstChild),tt=t,we=!0,ht=null,n=tu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(In(),r===o){t=Dt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return su(t),e===null&&ls(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,u=o.children,Gl(r,o)?u=null:s!==null&&Gl(r,s)&&(t.flags|=32),Uu(e,t),Be(e,t,u,n),t.child;case 6:return e===null&&ls(t),null;case 13:return Vu(e,t,n);case 4:return ps(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=An(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Mu(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,u=o.value,me(xo,r._currentValue),r._currentValue=u,s!==null)if(pt(s.value,u)){if(s.children===o.children&&!Qe.current){t=Dt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var h=s.dependencies;if(h!==null){u=s.child;for(var y=h.firstContext;y!==null;){if(y.context===r){if(s.tag===1){y=Lt(-1,n&-n),y.tag=2;var N=s.updateQueue;if(N!==null){N=N.shared;var R=N.pending;R===null?y.next=y:(y.next=R.next,R.next=y),N.pending=y}}s.lanes|=n,y=s.alternate,y!==null&&(y.lanes|=n),cs(s.return,n,t),h.lanes|=n;break}y=y.next}}else if(s.tag===10)u=s.type===t.type?null:s.child;else if(s.tag===18){if(u=s.return,u===null)throw Error(a(341));u.lanes|=n,h=u.alternate,h!==null&&(h.lanes|=n),cs(u,n,t),u=s.sibling}else u=s.child;if(u!==null)u.return=s;else for(u=s;u!==null;){if(u===t){u=null;break}if(s=u.sibling,s!==null){s.return=u.return,u=s;break}u=u.return}s=u}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Un(t,n),o=it(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),Iu(e,t,r,o,n);case 15:return Au(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Lo(e,t),t.tag=1,Ke(r)?(e=!0,mo(t)):e=!1,Un(t,n),$u(t,r,o),Es(t,r,o,n),Ps(null,t,r,!0,e,n);case 19:return Qu(e,t,n);case 22:return Fu(e,t,n)}throw Error(a(156,t.tag))};function gc(e,t){return bi(e,t)}function th(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,n,r){return new th(e,t,n,r)}function Gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nh(e){if(typeof e=="function")return Gs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ve)return 11;if(e===kt)return 14}return 2}function en(e,t){var n=e.alternate;return n===null?(n=ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vo(e,t,n,r,o,s){var u=2;if(r=e,typeof e=="function")Gs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case je:return vn(n.children,o,s,t);case b:u=8,o|=8;break;case re:return e=ct(12,n,t,o|2),e.elementType=re,e.lanes=s,e;case Oe:return e=ct(13,n,t,o),e.elementType=Oe,e.lanes=s,e;case dt:return e=ct(19,n,t,o),e.elementType=dt,e.lanes=s,e;case Ne:return qo(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Te:u=10;break e;case wt:u=9;break e;case Ve:u=11;break e;case kt:u=14;break e;case qe:u=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=ct(u,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function vn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function qo(e,t,n,r){return e=ct(22,e,r,t),e.elementType=Ne,e.lanes=n,e.stateNode={isHidden:!1},e}function Xs(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Zs(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jl(0),this.expirationTimes=jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Js(e,t,n,r,o,s,u,h,y){return e=new rh(e,t,n,h,y),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ct(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fs(s),e}function oh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pe,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function yc(e){if(!e)return qt;e=e._reactInternals;e:{if(ln(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(Ke(n))return qa(e,n,t)}return t}function vc(e,t,n,r,o,s,u,h,y){return e=Js(n,r,!0,e,o,s,u,h,y),e.context=yc(null),n=e.current,r=We(),o=Zt(n),s=Lt(r,o),s.callback=t??null,Yt(n,s,o),e.current.lanes=o,nr(e,o,r),Ge(e,r),e}function Qo(e,t,n,r){var o=t.current,s=We(),u=Zt(o);return n=yc(n),t.context===null?t.context=n:t.pendingContext=n,t=Lt(s,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yt(o,t,u),e!==null&&(vt(e,o,u,s),No(e,o,u)),u}function Ko(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function wc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ei(e,t){wc(e,t),(e=e.alternate)&&wc(e,t)}function lh(){return null}var kc=typeof reportError=="function"?reportError:function(e){console.error(e)};function ti(e){this._internalRoot=e}Yo.prototype.render=ti.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Qo(e,t,null,null)},Yo.prototype.unmount=ti.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mn(function(){Qo(null,e,null,null)}),t[Tt]=null}};function Yo(e){this._internalRoot=e}Yo.prototype.unstable_scheduleHydration=function(e){if(e){var t=ra();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ut.length&&t!==0&&t<Ut[n].priority;n++);Ut.splice(n,0,e),n===0&&sa(e)}};function ni(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function xc(){}function sh(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var N=Ko(u);s.call(N)}}var u=vc(t,r,e,0,null,!1,!1,"",xc);return e._reactRootContainer=u,e[Tt]=u.current,gr(e.nodeType===8?e.parentNode:e),mn(),u}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var h=r;r=function(){var N=Ko(y);h.call(N)}}var y=Js(e,0,!1,null,null,!1,!1,"",xc);return e._reactRootContainer=y,e[Tt]=y.current,gr(e.nodeType===8?e.parentNode:e),mn(function(){Qo(t,y,n,r)}),y}function Go(e,t,n,r,o){var s=n._reactRootContainer;if(s){var u=s;if(typeof o=="function"){var h=o;o=function(){var y=Ko(u);h.call(y)}}Qo(t,u,e,o)}else u=sh(n,t,e,o,r);return Ko(u)}ta=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tr(t.pendingLanes);n!==0&&(El(t,n|1),Ge(t,Ee()),(oe&6)===0&&(qn=Ee()+500,Qt()))}break;case 13:mn(function(){var r=zt(e,1);if(r!==null){var o=We();vt(r,e,1,o)}}),ei(e,1)}},Cl=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=We();vt(t,e,134217728,n)}ei(e,134217728)}},na=function(e){if(e.tag===13){var t=Zt(e),n=zt(e,t);if(n!==null){var r=We();vt(n,e,t,r)}ei(e,t)}},ra=function(){return de},oa=function(e,t){var n=de;try{return de=e,t()}finally{de=n}},wl=function(e,t,n){switch(t){case"input":if(dl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=po(r);if(!o)throw Error(a(90));Ti(r),dl(r,o)}}}break;case"textarea":Li(e,n);break;case"select":t=n.value,t!=null&&Sn(e,!!n.multiple,t,!1)}},Bi=Ks,Wi=mn;var ih={usingClientEntryPoint:!1,Events:[wr,zn,po,Ui,Hi,Ks]},Lr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ah={bundleType:Lr.bundleType,version:Lr.version,rendererPackageName:Lr.rendererPackageName,rendererConfig:Lr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ki(e),e===null?null:e.stateNode},findFiberByHostInstance:Lr.findFiberByHostInstance||lh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xo.isDisabled&&Xo.supportsFiber)try{Kr=Xo.inject(ah),xt=Xo}catch{}}return Xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ih,Xe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ni(t))throw Error(a(200));return oh(e,t,null,n)},Xe.createRoot=function(e,t){if(!ni(e))throw Error(a(299));var n=!1,r="",o=kc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Js(e,1,!1,null,null,n,!1,r,o),e[Tt]=t.current,gr(e.nodeType===8?e.parentNode:e),new ti(t)},Xe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=Ki(t),e=e===null?null:e.stateNode,e},Xe.flushSync=function(e){return mn(e)},Xe.hydrate=function(e,t,n){if(!bo(t))throw Error(a(200));return Go(null,e,t,!0,n)},Xe.hydrateRoot=function(e,t,n){if(!ni(e))throw Error(a(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",u=kc;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=vc(t,null,e,1,n??null,o,!1,s,u),e[Tt]=t.current,gr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yo(t)},Xe.render=function(e,t,n){if(!bo(t))throw Error(a(200));return Go(null,e,t,!1,n)},Xe.unmountComponentAtNode=function(e){if(!bo(e))throw Error(a(40));return e._reactRootContainer?(mn(function(){Go(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1},Xe.unstable_batchedUpdates=Ks,Xe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bo(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Go(e,t,n,!1,r)},Xe.version="18.3.1-next-f1338f8080-20240426",Xe}var $c;function Jc(){if($c)return li.exports;$c=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),li.exports=mh(),li.exports}var Pc;function gh(){if(Pc)return Zo;Pc=1;var l=Jc();return Zo.createRoot=l.createRoot,Zo.hydrateRoot=l.hydrateRoot,Zo}var yh=gh();const vh=(function(){const i=typeof document<"u"&&document.createElement("link").relList;return i&&i.supports&&i.supports("modulepreload")?"modulepreload":"preload"})(),wh=function(l){return"/"+l},Rc={},ki=function(i,a,d){let f=Promise.resolve();if(a&&a.length>0){let g=function(j){return Promise.all(j.map(E=>Promise.resolve(E).then(T=>({status:"fulfilled",value:T}),T=>({status:"rejected",reason:T}))))};document.getElementsByTagName("link");const w=document.querySelector("meta[property=csp-nonce]"),m=(w==null?void 0:w.nonce)||(w==null?void 0:w.getAttribute("nonce"));f=g(a.map(j=>{if(j=wh(j),j in Rc)return;Rc[j]=!0;const E=j.endsWith(".css"),T=E?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${j}"]${T}`))return;const C=document.createElement("link");if(C.rel=E?"stylesheet":vh,E||(C.as="script"),C.crossOrigin="",C.href=j,m&&C.setAttribute("nonce",m),document.head.appendChild(C),E)return new Promise((O,_)=>{C.addEventListener("load",O),C.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${j}`)))})}))}function p(g){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=g,window.dispatchEvent(w),!w.defaultPrevented)throw g}return f.then(g=>{for(const w of g||[])w.status==="rejected"&&p(w.reason);return i().catch(p)})},ed="caddis-hub-tab",kh="X-Caddis-Hub-Tab",xh="X-CSRF-Token";class pi extends Error{constructor(i,a){super(a),this.status=i}}function td(){try{return window.localStorage}catch{return null}}let hi=null;function Sh(l=window.location,i=window.history,a=td()){const d=/(?:^#|&)tab=([^&]+)/.exec(l.hash);if(!(d!=null&&d[1]))return;let f;try{f=decodeURIComponent(d[1])}catch{return}hi=f;try{a==null||a.setItem(ed,f)}catch{}i.replaceState(null,"",l.pathname+l.search)}function nd(l=td()){try{return(l==null?void 0:l.getItem(ed))||hi}catch{return hi}}function rd(l,i){const a={Accept:"application/json"};return l&&(a[kh]=l),i&&(a[xh]=i),a}async function xi(l){const i=nd();if(!i)throw new pi(401,"no tab token");const a=await fetch(l,{headers:rd(i),credentials:"same-origin",cache:"no-store"});if(!a.ok)throw new pi(a.status,`${l} answered ${a.status}`);return await a.json()}const Nh=()=>xi("/api/session"),_h=()=>xi("/api/state"),jh=(l,i,a)=>xi("/api/plan-phase?repo="+encodeURIComponent(l)+"&plan="+encodeURIComponent(i)+"&key="+encodeURIComponent(a));let rl=null;async function Eh(){return rl||(rl=(await Nh()).csrf_token),rl}async function Ch(l){const i=nd();if(!i)return{ok:!1,status:401,error:"unauthorized",reason:"Signed out. Run caddis hub open."};const a=async()=>fetch("/api/actions",{method:"POST",headers:{...rd(i,await Eh()),"Content-Type":"application/json"},body:JSON.stringify(l),credentials:"same-origin",cache:"no-store"});try{let d=await a();d.status===403&&(rl=null,d=await a());const f=await d.json().catch(()=>({}));return d.status===202&&f.request&&typeof f.request=="object"?{ok:!0,request:f.request}:{ok:!1,status:d.status,error:typeof f.error=="string"?f.error:"failed",reason:typeof f.reason=="string"?f.reason:`The hub answered ${d.status}.`}}catch{return{ok:!1,status:0,error:"network",reason:"The hub did not answer."}}}function Th(l){const[i,a]=H.useState({}),d=(p,g)=>a(w=>({...w,[p]:g})),f=H.useCallback(p=>{d(p.key,{status:"sending",reason:null,requestId:null,at:Date.now()}),Ch(p.body).then(g=>{g.ok?d(p.key,{status:"sent",reason:null,requestId:g.request.id,at:Date.now()}):d(p.key,{status:"refused",reason:g.reason,requestId:null,at:Date.now()}),l()})},[l]);return{local:i,run:f}}/**
|
|
42
|
-
* @license lucide-react v1.61.0 - ISC
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the ISC license.
|
|
45
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const $h=l=>l==null?void 0:l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
47
|
-
* @license lucide-react v1.61.0 - ISC
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the ISC license.
|
|
50
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/function Ph(l,i,a=[]){if(i==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:$h(l),size:24,node:i,...a.length>0?{aliases:a}:{}}}/**
|
|
52
|
-
* @license lucide-react v1.61.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const Rh=l=>{let i="",a=!1;for(const d of l){if(d==="-"||d==="_"||d<=" "){a=i.length>0;continue}i.length===0?i+=d.toLowerCase():i+=a?d.toUpperCase():d,a=!1}return i};/**
|
|
57
|
-
* @license lucide-react v1.61.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const zh=l=>{const i=Rh(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
|
|
62
|
-
* @license lucide-react v1.61.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const mi=(...l)=>l.filter((i,a,d)=>!!i&&i.trim()!==""&&d.indexOf(i)===a).join(" ").trim();/**
|
|
67
|
-
* @license lucide-react v1.61.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const wn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
72
|
-
* @license lucide-react v1.61.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/function ai(l){return l!=null}function Lh(l,i={}){var C,O;const a=i.attributeNames??{},d=_=>a[_]??_,f=l.size??l.width??wn.width,p=l.size??l.height??wn.height,g=((C=l.aliases)==null?void 0:C.filter(_=>typeof _=="string"&&_.trim()!=="").map(_=>`lucide-${_}`))??[],w=[...l.name?[`lucide-${l.name}`]:[],...g],m=((O=i.className)==null?void 0:O.split(" ").filter(Boolean))??[],j=i.includeDefaultClasses===!1?mi(...m):mi("lucide",...w,...m),E=i.absoluteStrokeWidth?Number(i.strokeWidth??wn["stroke-width"])*Number(l.size??l.width??wn.width)/Number(i.size??i.width??wn.width):i.strokeWidth??wn["stroke-width"];return["svg",{...Object.entries(wn).reduce((_,[F,M])=>(_[d(F)]=M,_),{}),..."color"in i&&i.color&&{[d("stroke")]:i.color},..."size"in i&&ai(i.size)&&{[d("width")]:i.size,[d("height")]:i.size},..."width"in i&&ai(i.width)&&{[d("width")]:i.width},..."height"in i&&ai(i.height)&&{[d("height")]:i.height},[d("stroke-width")]:E,...j&&{[d("class")]:j},[d("viewBox")]:`0 0 ${f} ${p}`,...i.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},l.node.map(_=>{const[F,M,I]=_,ue=i.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...M}:M;return I?[F,ue,I]:[F,ue]})]}/**
|
|
77
|
-
* @license lucide-react v1.61.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/function Dh(l,i={}){return Lh(l,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
|
|
82
|
-
* @license lucide-react v1.61.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const Oh=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Mh=H.createContext({}),Ih=()=>H.useContext(Mh),Ah=H.forwardRef(({color:l,size:i,width:a,height:d,strokeWidth:f,absoluteStrokeWidth:p,nonScalingStroke:g,className:w="",children:m,iconNode:j=[],icon:E={node:j,aliases:[],size:24},...T},C)=>{const{size:O=24,strokeWidth:_=2,absoluteStrokeWidth:F=!1,nonScalingStroke:M=!1,color:I="currentColor",className:ue=""}=Ih()??{},J=!!m||Oh(T),[L,ae,pe=[]]=Dh(E,{color:l??I,width:a??i??O,height:d??i??O,strokeWidth:f??_,absoluteStrokeWidth:p??F,nonScalingStroke:g??M,className:mi(ue,w),hasA11yProp:J,attributes:T});return H.createElement(L,{ref:C,...ae},[...pe.map(([je,b])=>H.createElement(je,b)),...Array.isArray(m)?m:[m]])});/**
|
|
87
|
-
* @license lucide-react v1.61.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/function fe(l,i=[],a=[]){const d=typeof l=="string"?Ph(l,i,a):l,f=H.forwardRef(({className:p,...g},w)=>H.createElement(Ah,{ref:w,icon:d,className:p,...g}));return d.name&&(f.displayName=zh(d.name)),f}/**
|
|
92
|
-
* @license lucide-react v1.61.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const od={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};od.node;const Fh=fe(od);/**
|
|
97
|
-
* @license lucide-react v1.61.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const ld={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};ld.node;const Uh=fe(ld);/**
|
|
102
|
-
* @license lucide-react v1.61.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const sd={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};sd.node;const Hh=fe(sd);/**
|
|
107
|
-
* @license lucide-react v1.61.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const id={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};id.node;const Bh=fe(id);/**
|
|
112
|
-
* @license lucide-react v1.61.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const ad={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};ad.node;const ud=fe(ad);/**
|
|
117
|
-
* @license lucide-react v1.61.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const cd={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};cd.node;const Wh=fe(cd);/**
|
|
122
|
-
* @license lucide-react v1.61.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const dd={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};dd.node;const Vh=fe(dd);/**
|
|
127
|
-
* @license lucide-react v1.61.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const fd={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};fd.node;const qh=fe(fd);/**
|
|
132
|
-
* @license lucide-react v1.61.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const pd={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};pd.node;const Qh=fe(pd);/**
|
|
137
|
-
* @license lucide-react v1.61.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const hd={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};hd.node;const md=fe(hd);/**
|
|
142
|
-
* @license lucide-react v1.61.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const gd={name:"folder-plus",size:24,node:[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};gd.node;const Kh=fe(gd);/**
|
|
147
|
-
* @license lucide-react v1.61.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const yd={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]};yd.node;const Yh=fe(yd);/**
|
|
152
|
-
* @license lucide-react v1.61.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const vd={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};vd.node;const bh=fe(vd);/**
|
|
157
|
-
* @license lucide-react v1.61.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const wd={name:"layout-dashboard",size:24,node:[["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"}]]};wd.node;const Gh=fe(wd);/**
|
|
162
|
-
* @license lucide-react v1.61.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const kd={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};kd.node;const Xh=fe(kd);/**
|
|
167
|
-
* @license lucide-react v1.61.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const xd={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};xd.node;const Zh=fe(xd);/**
|
|
172
|
-
* @license lucide-react v1.61.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const Sd={name:"moon",size:24,node:[["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"}]]};Sd.node;const Jh=fe(Sd);/**
|
|
177
|
-
* @license lucide-react v1.61.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const Nd={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};Nd.node;const em=fe(Nd);/**
|
|
182
|
-
* @license lucide-react v1.61.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const _d={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};_d.node;const tm=fe(_d);/**
|
|
187
|
-
* @license lucide-react v1.61.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const jd={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};jd.node;const nm=fe(jd);/**
|
|
192
|
-
* @license lucide-react v1.61.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const Ed={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};Ed.node;const rm=fe(Ed);/**
|
|
197
|
-
* @license lucide-react v1.61.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const Cd={name:"rocket",size:24,node:[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]};Cd.node;const om=fe(Cd);/**
|
|
202
|
-
* @license lucide-react v1.61.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const Td={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};Td.node;const lm=fe(Td);/**
|
|
207
|
-
* @license lucide-react v1.61.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const $d={name:"shield-off",size:24,node:[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]};$d.node;const sm=fe($d);/**
|
|
212
|
-
* @license lucide-react v1.61.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const Pd={name:"sun",size:24,node:[["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"}]]};Pd.node;const im=fe(Pd);/**
|
|
217
|
-
* @license lucide-react v1.61.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const Rd={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};Rd.node;const zd=fe(Rd);/**
|
|
222
|
-
* @license lucide-react v1.61.0 - ISC
|
|
223
|
-
*
|
|
224
|
-
* This source code is licensed under the ISC license.
|
|
225
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const Ld={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};Ld.node;const am=fe(Ld);/**
|
|
227
|
-
* @license lucide-react v1.61.0 - ISC
|
|
228
|
-
*
|
|
229
|
-
* This source code is licensed under the ISC license.
|
|
230
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const Dd={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};Dd.node;const um=fe(Dd);/**
|
|
232
|
-
* @license lucide-react v1.61.0 - ISC
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the ISC license.
|
|
235
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const Od={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Od.node;const cm=fe(Od),Si={hotfix:"Mark hotfix",unhotfix:"Unmark hotfix",hold:"Hold",release:"Release",approve:"Approve",decline:"Decline"},ol={hotfix:"hotfix",unhotfix:"hotfix",hold:"hold",release:"hold",approve:"approve",decline:"approve"},Md=l=>l.repo_id??null,Id=(l,i,a)=>`${l}:${ol[i]}:${a}`;function Ni(l,i){const a=Md(l),d=Fd(l,i.pr)??i.headSha;if(!a||!d)return[];const f=p=>({key:Id(a,p,i.pr),label:Si[p],body:{repo_id:a,action:p,pr:i.pr,head_sha:d}});return[f(i.hotfix?"unhotfix":"hotfix"),f(i.held?"release":"hold")]}function Ad(l,i){const a=Md(l);if(!a)return[];const d=i.pr!==null?Fd(l,i.pr)??i.head_sha:null;return["approve","decline"].map(f=>({key:Id(a,f,i.what),label:Si[f],body:{repo_id:a,action:f,pr:i.pr,head_sha:d,what:i.what}}))}function Fd(l,i){var a,d,f;return((f=(d=(a=l.github)==null?void 0:a.prs)==null?void 0:d.find(p=>p.number===i))==null?void 0:f.head_sha)??null}function Ud(l){return l.actions?l.actions.enabled?null:l.actions.reason??"Actions need a live coordinator.":"Actions need a live coordinator."}function Hd(l,i){var f;const a=Ud(l);return a||i.pr===null?a:(((f=l.coordinator)==null?void 0:f.queue)??[]).some(p=>(p==null?void 0:p.pr)===i.pr)?null:`PR #${i.pr} is not in the coordinator queue.`}function dm(l,i){var f;const a=((f=l.coordinator)==null?void 0:f.requests)??[],d=ol[i.body.action];for(let p=a.length-1;p>=0;p--){const g=a[p],w=g.action;if(!(!(w in ol)||ol[w]!==d)&&(i.body.what!==void 0?g.what===i.body.what&&g.pr===i.body.pr:g.pr===i.body.pr))return g}return null}function Bd(l){const i=Si[l.action]??l.action;switch(l.status){case"requested":return`${i}: requested. Waiting for the coordinator.`;case"done":return`${i}: done.`;case"rejected":return`${i}: rejected${l.reason?`: ${l.reason}`:""}.`;case"expired":return`${i}: expired before the coordinator read it.`;case"not_picked_up":return`${i}: not picked up. The coordinator has not read requests for 2 min.`}}const Wd=l=>l==="done"?"good":l==="requested"?"muted":l==="not_picked_up"?"warn":"bad";function fm(l,i,a){const d=dm(l,i);return(a==null?void 0:a.status)==="sending"?{text:`${i.label}: sending...`,tone:"muted"}:(a==null?void 0:a.status)==="refused"?{text:`${i.label}: refused. ${a.reason??""}`.trim(),tone:"bad"}:(a==null?void 0:a.status)==="sent"&&(!d||d.id!==a.requestId)?{text:`${i.label}: requested. Waiting for the coordinator.`,tone:"muted"}:d?{text:Bd(d),tone:Wd(d.status)}:null}function il({repo:l,specs:i,act:a,compact:d=!1,reason:f}){if(i.length===0)return null;const p=f!==void 0?f:Ud(l),g=new Set,w=[];for(const m of i){if(g.has(m.key))continue;g.add(m.key);const j=fm(l,m,a.local[m.key]);j&&w.push({key:m.key,...j})}return c.jsxs("div",{className:`action-row${d?" compact":""}`,"data-testid":"actions",children:[c.jsx("div",{className:"action-buttons",children:i.map(m=>{var j;return c.jsx("button",{type:"button",className:"btn btn-act",disabled:p!==null||((j=a.local[m.key])==null?void 0:j.status)==="sending",title:p??void 0,onClick:()=>a.run(m),"data-testid":`act-${m.body.action}`,children:m.label},`${m.key}:${m.body.action}`)})}),p&&!d&&c.jsx("span",{className:"action-reason","data-testid":"action-reason",children:p}),w.map(m=>c.jsx("span",{className:`request-status tone-${m.tone}`,"data-testid":"request-status",role:"status",children:m.text},m.key))]})}function Vd({item:l}){const i=l.recommendation,a=l.from?`from ${l.from}`:l.source==="coordinator"?"from the coordinator":"from the asking session";return c.jsxs("div",{className:"detail-block recommendation","data-testid":"recommendation",children:[c.jsxs("span",{className:"detail-label",children:["Recommendation, ",a]}),i?c.jsxs(c.Fragment,{children:[c.jsxs("span",{children:[c.jsx("strong",{className:`rec-${i.decision}`,children:i.decision==="approve"?"Approve":"Hold"}),i.reason?`: ${i.reason}`:""]}),i.evidence&&c.jsxs("span",{className:"rec-evidence",children:["Evidence: ",i.evidence]})]}):c.jsx("span",{children:"No recommendation was recorded. Read the source before you decide."}),c.jsx("span",{className:"rec-note",children:"A recommendation is not an approval. Only your click approves."})]})}const zc="caddis hub";function pm(l){return l>0?`(${l}) ${zc}`:zc}function nn(l,i){if(!l)return"unknown";const a=Date.parse(l);if(Number.isNaN(a))return"unknown";const d=Math.max(0,Math.round((i-a)/1e3));if(d<5)return"just now";if(d<60)return`${d} s ago`;const f=Math.floor(d/60);if(f<60)return`${f} min ago`;const p=Math.floor(f/60);return p<24?`${p} h ago`:`${Math.floor(p/24)} d ago`}const hm=(l,i)=>`Updated ${nn(l,i)}`;function Ir(l){if(!l)return"unknown";const i=new Date(l);return Number.isNaN(i.getTime())?"unknown":i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function mm(l){const i=Number(l==null?void 0:l.cap_eur),a=Number(l==null?void 0:l.committed_eur),d=(l==null?void 0:l.configured)===!0&&Number.isFinite(i)&&i>0,f=Number.isFinite(a)?a:0;return{configured:d,capEur:d?i:0,committedEur:f,pct:d?Math.min(100,Math.max(0,f/i*100)):0}}const gi=l=>Object.values(l.sources??{}).some(i=>!i.ok||i.stale),gm=500;function qd(l){const i=l==null?void 0:l.github_rate;if(!i||typeof i!="object")return null;let a=null;for(const[d,f]of Object.entries(i)){const p=f,g=typeof(p==null?void 0:p.remaining)=="number"&&Number.isFinite(p.remaining)?p.remaining:NaN;Number.isNaN(g)||(!a||g<a.remaining)&&(a={account:d,remaining:g,resetAt:typeof(p==null?void 0:p.reset_at)=="string"?p.reset_at:null})}return a}function ym(l){const i=qd(l);return i&&i.remaining<gm?i:null}var vm=Jc();const wm=150,km=100,Jo=8,el=8;function xm(l,i,a){const d=l.bottom+Jo+i.height<=a.height-el,f=l.top-Jo-i.height>=el,p=d||!f?"below":"above",g=p==="below"?l.bottom+Jo:l.top-Jo-i.height,w=Math.max(0,Math.min(g,a.height-i.height)),m=Math.max(0,a.width-i.width-el),j=Math.max(el,Math.min(l.left,m));return{top:w,left:Math.min(j,m),placement:p}}const Sm=l=>l==null||l===!1||l==="";function Et({content:l,children:i}){const a=H.useId(),d=Sm(l),[f,p]=H.useState(!1),[g,w]=H.useState(null),m=H.useRef(null),j=H.useRef(null),E=H.useRef(void 0),T=H.useCallback(()=>{window.clearTimeout(E.current),E.current=void 0},[]),C=H.useCallback(J=>{J&&(m.current=J),T(),E.current=window.setTimeout(()=>p(!0),wm)},[T]),O=H.useCallback(()=>{T(),E.current=window.setTimeout(()=>p(!1),km)},[T]),_=H.useCallback(()=>{T(),p(!0)},[T]),F=f&&!d;H.useEffect(()=>T,[T]),H.useEffect(()=>{d&&(T(),p(!1))},[d,T]),H.useEffect(()=>{if(!F)return;const J=L=>{L.key==="Escape"&&(T(),p(!1))};return document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)},[F,T]);const M=H.useCallback(()=>{const J=m.current,L=j.current;if(!J||!L)return;const ae=L.getBoundingClientRect();w(xm(J.getBoundingClientRect(),{width:ae.width,height:ae.height},{width:window.innerWidth,height:window.innerHeight}))},[]);if(H.useLayoutEffect(()=>{if(!F){w(null);return}return M(),window.addEventListener("resize",M),window.addEventListener("scroll",M,!0),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,!0)}},[F,l,M]),d)return i;const I=i.props,ue=H.cloneElement(i,{onPointerEnter:J=>{var L;(L=I.onPointerEnter)==null||L.call(I,J),f?_():C(J.currentTarget)},onPointerLeave:J=>{var L;(L=I.onPointerLeave)==null||L.call(I,J),O()},onFocus:J=>{var L;(L=I.onFocus)==null||L.call(I,J),f?_():C(J.currentTarget)},onBlur:J=>{var L;(L=I.onBlur)==null||L.call(I,J),O()},"aria-describedby":F?a:I["aria-describedby"]});return c.jsxs(c.Fragment,{children:[ue,F&&vm.createPortal(c.jsx("div",{ref:j,id:a,role:"tooltip",className:"tip","data-testid":"tip","data-placement":g==null?void 0:g.placement,style:{position:"fixed",top:(g==null?void 0:g.top)??0,left:(g==null?void 0:g.left)??0,visibility:g?"visible":"hidden"},onPointerEnter:_,onPointerLeave:O,children:l}),document.body)]})}function Qd(l,i,a){if(!l)return"unknown";const d=new Date(l);if(Number.isNaN(d.getTime()))return"unknown";try{return new Intl.DateTimeFormat(i,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23",timeZone:a,timeZoneName:"short"}).format(d)}catch{return d.toISOString()}}const Ze=l=>Array.isArray(l)?l:[],Nm={todo:"to do","in-progress":"in progress",done:"done",moved:"moved",blocked:"blocked"},rn=new Set(["done","not-needed"]),ky="No roadmap or plan",xy="/caddis:roadmap";function Sy(l){const i=l.also.length>0?`; also ${l.also.map(a=>`#${a}`).join(", ")}`:"";return`on branch (${l.draft?"draft ":""}PR #${l.pr}${i})`}const Lc=l=>typeof l=="number"&&Number.isInteger(l)&&l>0;function _m(l){const i=ke(l);return Lc(i.pr)?{pr:i.pr,draft:i.draft===!0,also:Ze(i.also).filter(Lc)}:null}const Ny=[{key:"todo",label:"To do"},{key:"in-progress",label:"In progress"},{key:"blocked",label:"Blocked"},{key:"done",label:"Done"}];function jm(l){const i={todo:[],"in-progress":[],blocked:[],done:[]};for(const a of l.rows)i[a.state==="moved"?"done":a.state].push(a);return i}function _y(l){const i=jm(l),a=l.rows.length,d=i.done.length;return{total:a,done:d,inProgress:i["in-progress"].length,blocked:i.blocked.length,todo:i.todo.length,pct:a===0?0:Math.round(d/a*100)}}function jy(l){let i=null;for(const a of l)a.open===0||a.rows.length===0||(!i||(a.changedAt??-1)>(i.changedAt??-1))&&(i=a);return i?i.path:null}const Ey=10,ke=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{},Z=l=>typeof l=="string"?l:"",Mt=l=>typeof l=="string"&&l?l:null,Ar=l=>typeof l=="number"&&Number.isInteger(l)?l:0,Kd=new Set(["todo","in-progress","done","moved","blocked"]);function _i(l,i){const a=l.github;return[...new Set(Ze(i).filter(d=>typeof d=="number"&&Number.isInteger(d)))].map(d=>{var g,w;const f=(g=a==null?void 0:a.prs)==null?void 0:g.find(m=>m.number===d),p=((w=a==null?void 0:a.merges)==null?void 0:w.some(m=>m.number===d))??!1;return{number:d,url:a!=null&&a.repo?`https://github.com/${a.repo}/pull/${d}`:null,stage:f?"in review":p?"merged":null,detail:f?`required checks ${f.required_state}`:null}})}function Yd(l,i){const a=l.filter(d=>d.stage).map(d=>`#${d.number} ${d.stage}${d.detail?` (${d.detail})`:""}`);return a.length?a.join(", "):Nm[i]}function Cy(l){return[l.model&&`model ${l.model}`,l.lane&&`lane ${l.lane.split(" ")[0]}`,l.risk&&`risk ${l.risk}`].filter(Boolean).join(" · ")}function Em(l,i){const a=ke(i),d=Z(a.ref),f=d.lastIndexOf("#"),p=Z(a.state),g=Kd.has(Z(a.tile))?Z(a.tile):p==="done"?"done":"todo",w=Z(a.risk),m=_i(l,a.prs);return{ref:d,plan:Z(a.plan)||(f>0?d.slice(0,f):""),num:Ar(a.num)||f>0&&Number(d.slice(f+1))||0,name:Z(a.name)||d,model:Z(a.model),lane:Z(a.lane),risk:w,highRisk:w.toLowerCase().includes("high"),tracker:Z(a.tracker),tile:g,prs:m,stage:Yd(m,g)}}const Dc=(l,i)=>{const a=ke(i);return{milestone:l,type:Z(a.type),reason:Z(a.reason),check:Z(a.check)}};function bd(l,i){return rn.has(l)?"done":i.some(a=>a.type==="owner-gate")?"wait":i.length||l==="blocked"?"block":l==="in-progress"?"prog":"todo"}const kn=l=>l==="done"||l==="moved";function Cm(l,i){const a=ke(l),d=ke(a.lock),f=ke(a.stale_lock),p=ke(a.last_stop);let g=null;return Z(p.reason)==="running"?g="running now":Z(p.reason)&&(g=`${Z(p.reason)}${p.exit!==void 0&&p.exit!==null?` (exit ${String(p.exit)})`:""}`),{running:Object.keys(d).length?{batch:String(d.batch??""),since:Mt(d.started_utc),host:Mt(d.host),pid:d.pid===void 0?null:String(d.pid)}:null,staleBatch:Object.keys(f).length?String(f.batch??""):null,lastStop:g,lastStopAt:Mt(p.utc),stopReason:Z(p.reason)||null,errors:Ze(a.errors).map(String),next:i}}function Gd(l){const i=new Map(l.map(d=>[d.id,d.status])),a={now:[],next:[],later:[]};for(const d of l){if(rn.has(d.status))continue;const f=d.depends.every(p=>rn.has(i.get(p)??""));d.status==="in-progress"||f&&d.blockers.length===0?a.now.push(d):d.depends.some(p=>a.now.some(g=>g.id===p))?a.next.push(d):a.later.push(d)}return a}function Tm(l,i){const a=ke(i),d=Ze(a.milestones).map(E=>{const T=ke(E),C=Z(T.id),O=Ze(T.blockers).map(M=>Dc(C,M)),_=Ze(T.phases).map(M=>Em(l,M)),F=Z(T.status);return{id:C,status:F,owner:Z(T.owner)||"runner",target:Mt(T.target),depends:Ze(T.depends).map(String),phases:_,blockers:O,done:_.filter(M=>kn(M.tile)).length,total:_.length,tone:bd(F,O)}}),f=d.flatMap(E=>E.phases),p=ke(a.next),g=Object.keys(p).length?`${Z(p.milestone)} ${Z(p.plan)}#${String(p.phase)}`:null,w=(Ze(a.lanes).length?Ze(a.lanes).map(String):[...new Set(f.map(E=>E.plan))]).map(E=>({plan:E,done:f.filter(T=>T.plan===E&&kn(T.tile)).length,total:f.filter(T=>T.plan===E).length})),m=d.flatMap(E=>E.blockers),j=Array.isArray(a.waiting)?Ze(a.waiting).map(E=>Dc(Z(ke(E).milestone),{...ke(E),type:"owner-gate"})):d.filter(E=>!rn.has(E.status)).flatMap(E=>E.blockers.filter(T=>T.type==="owner-gate"));return{slug:Z(a.roadmap),kind:"roadmap",branch:Mt(a.branch),originCommit:Mt(a.origin_commit),milestones:d,lanes:w,gates:j,blockers:m,kpis:{phasesDone:f.filter(E=>kn(E.tile)).length,phasesTotal:f.length,milestonesDone:Ar(a.done)||d.filter(E=>rn.has(E.status)).length,milestonesTotal:Ar(a.total)||d.length,inProgress:f.filter(E=>E.tile==="in-progress").map(E=>E.ref),highRisk:f.filter(E=>E.highRisk).length,next:g??"none ready"},board:Gd(d),runner:Cm(a.runner,g),detailError:Mt(a.detail_error)}}const $m=l=>typeof l=="string"&&Kd.has(l)?l:"todo",Xd=l=>{var i;return((i=l.trim().split(/\s+/)[0])==null?void 0:i.toLowerCase())??""};function ji(l){return(l.split("/").pop()??"").replace(/\.md$/,"")}function Ty(l,i){var E,T;const a=ji(i.path),d=[];let f=!1;for(const C of i.rows){const O=((E=C.milestone)==null?void 0:E.trim())||null;O?d.includes(O)||d.push(O):f=!0}(f||d.length===0)&&(d.includes("Phases")||d.push("Phases"));const p=new Map(d.map(C=>[C,[]])),g=i.rows.map((C,O)=>{var L,ae;const _=C.key||Xd(C.phase),F=Array.from(C.status.matchAll(/#(\d+)/g),pe=>Number(pe[1])),M=_i(l,F),I=C.state,ue={ref:`${a}#${_}`,plan:a,num:O+1,name:C.phase,model:"",lane:"",risk:"",highRisk:!1,tracker:C.status,tile:I,prs:M,stage:Yd(M,I)},J=((L=C.milestone)==null?void 0:L.trim())||"Phases";return(ae=p.get(J))==null||ae.push(ue),ue}),w=d.map((C,O)=>{const _=p.get(C)??[],F=_.filter(ue=>kn(ue.tile)).length,M=_.length,I=M>0&&F===M?"done":_.some(ue=>ue.tile==="in-progress"||kn(ue.tile))?"in-progress":"todo";return{id:C,status:I,owner:"",target:null,depends:O>0?[d[O-1]]:[],phases:_,blockers:[],done:F,total:M,tone:bd(I,[])}}),m=g.filter(C=>kn(C.tile)).length,j=g.length;return{slug:a,kind:"plan",branch:null,originCommit:null,milestones:w,lanes:[{plan:a,done:m,total:j}],gates:[],blockers:[],kpis:{phasesDone:m,phasesTotal:j,milestonesDone:w.filter(C=>rn.has(C.status)).length,milestonesTotal:w.length,inProgress:g.filter(C=>C.tile==="in-progress").map(C=>C.ref),highRisk:0,next:((T=g.find(C=>!kn(C.tile)))==null?void 0:T.name)??""},board:Gd(w),runner:{running:null,staleBatch:null,lastStop:null,lastStopAt:null,stopReason:null,errors:[],next:null},detailError:null}}function $y(l,i,a){const d=l.milestones.flatMap(j=>j.phases).find(j=>j.ref===a);if(!d)return null;const f=i.find(j=>ji(j.path)===d.plan),p=a.lastIndexOf("#"),g=(p>=0?a.slice(p+1):a).toLowerCase(),w=!!(f!=null&&f.phases&&Object.prototype.hasOwnProperty.call(f.phases,g)),m=w?f==null?void 0:f.phases[g]:void 0;return{title:m!=null&&m.title?m.title:d.name,text:typeof(m==null?void 0:m.text)=="string"&&m.text.length>0?m.text:null,hasSection:w,planPath:(f==null?void 0:f.path)??null,key:g,phase:d}}function Pm(l){return Ze(ke(l).plans).map(i=>ke(i)).filter(i=>!i.error&&!["done","closed","archived"].includes(Z(i.status).toLowerCase())).map(i=>{const a={};for(const[d,f]of Object.entries(ke(i.phases))){const p=ke(f);a[d]=typeof p.text=="string"?{title:Z(p.title),text:p.text}:{title:Z(p.title)}}return{path:Z(i.path),title:Z(i.title)||Z(i.path),rows:Ze(i.tracker).map(d=>{const f=ke(d),p=Z(f.phase);return{phase:p,status:Z(f.status),state:$m(f.state),key:Z(f.key)||Xd(p),milestone:Z(f.milestone).trim()||null}}),phases:a,open:Ar(i.open_rows),changedAt:typeof i.changed_at=="number"&&Number.isFinite(i.changed_at)?i.changed_at:null,overlay:_m(i.overlay)}})}function Rm(l){return Ze(ke(ke(l.plans).done).plans).map(i=>ke(i)).filter(i=>!i.error&&Z(i.path)).map(i=>({path:Z(i.path),title:Z(i.title)||Z(i.path),closedAt:typeof i.closed_at=="number"&&Number.isFinite(i.closed_at)?i.closed_at:null,phases:Ar(i.phases),pr:typeof i.pr=="number"&&Number.isInteger(i.pr)&&i.pr>0?_i(l,[i.pr])[0]??null:null}))}function Zd(l){const i=ke(l.roadmaps),a=Mt(l.error)??Mt(i.error),d=[],f=[];for(const j of Ze(i.roadmaps)){const E=ke(j);Z(E.error)?f.push({slug:Z(E.roadmap),error:Z(E.error)}):Z(E.roadmap)&&d.push(Tm(l,E))}const p=Pm(l.plans),g=new Set(d.flatMap(j=>j.lanes.map(E=>E.plan))),w=p.filter(j=>j.rows.length>0&&j.open>0&&!g.has(ji(j.path))),m={roadmaps:d,errors:f,plans:p,otherPlans:w,repoError:a,done:Rm(l)};return d.length||f.length?{mode:"roadmaps",...m}:a&&!l.roadmaps&&!l.plans?{mode:"error",...m}:p.length?{mode:"plans",...m}:{mode:a?"error":"none",...m}}const Py=l=>l.mode==="roadmaps"&&l.roadmaps.length===1&&l.errors.length===0;function Ry(l){const i=l.milestones.flatMap(g=>g.phases).filter(g=>g.tile==="blocked").length,{phasesDone:a,phasesTotal:d}=l.kpis,f=l.gates.length?"wait":i?"block":d&&a>=d?"done":l.kpis.inProgress.length||a?"prog":"todo",p=l.runner;return{slug:l.slug,branch:l.branch,milestonesDone:l.kpis.milestonesDone,milestonesTotal:l.kpis.milestonesTotal,phasesDone:a,phasesTotal:d,pct:d?Math.round(100*a/d):0,next:l.runner.next??"none ready",runner:p.running||p.stopReason==="running"?"running":p.stopReason?`stopped: ${p.stopReason}`:"idle",gates:l.gates.length,dots:l.milestones.map(g=>({id:g.id,status:g.status})),tone:f}}function zm(l){const i=[];for(const a of Zd(l).roadmaps){const d=new Map(a.milestones.map(f=>[f.id,f.status]));for(const f of a.milestones)rn.has(f.status)||!f.depends.every(p=>rn.has(d.get(p)??""))||f.blockers.filter(p=>p.type==="owner-gate").forEach((p,g)=>i.push({roadmap:a.slug,milestone:f.id,reason:p.reason,check:p.check,id:`${a.slug}:${f.id}:${g}`}))}return i}const Lm=l=>l.roadmaps.reduce((i,a)=>i+a.gates.length,0),Oc=(l,i)=>l.toLowerCase().includes(i);function zy(l,i){const a=i.trim().toLowerCase();if(!a)return null;const d={milestones:new Set,phases:new Set,count:0};for(const f of l.milestones){const p=Oc([f.id,f.status,f.owner,f.target??""].join(" "),a);let g=!1;for(const w of f.phases){const m=Oc([w.ref,w.name,w.model,w.lane,w.risk,w.tracker,w.prs.map(j=>`#${j.number}`).join(" ")].join(" "),a);(m||p)&&(d.phases.add(w.ref),g=!0),m&&(d.count+=1)}p&&(d.count+=1),(p||g)&&d.milestones.add(f.id)}return d}function Dm(l){const i=Lm(Zd(l));return i>0?`Roadmap · ${i} gate${i===1?"":"s"}`:"Roadmap"}const Om=l=>!l.sources.collector.ok||l.sources.collector.stale,Mm=24*3600;function Im(l){if(!l)return"";const i=ke(l),a=typeof i.count=="number"?i.count:0;return i.state==="on"?a===1?" · 1 plan from a PR branch":a>1?` · ${a} plans from PR branches`:"":i.state==="off"?` · branch progress off (${Z(i.reason)||"unknown"})`:""}function Ly(l,i){const a=ke(l),d=Z(a.source);if(!d)return null;if(d==="working-tree")return{text:"Plans from the working tree (no origin branch found)",old:!1};const f=Z(a.commit).slice(0,7),p=typeof a.commit_at=="number"?a.commit_at:null,g=typeof a.fetched_at=="number"?a.fetched_at:null;return{text:`Plans from ${d}`+(f?` @ ${f}`:"")+(p!==null?` · commit ${nn(new Date(p*1e3).toISOString(),i)}`:"")+(g===null?" · fetch time unknown":` · last fetch ${nn(new Date(g*1e3).toISOString(),i)}`)+Im(a.overlay),old:g!==null&&i/1e3-g>Mm}}const Jd="caddis.hub.roadmapView";function Dy(l){if(!l)return"timeline";try{return l.getItem(Jd)==="board"?"board":"timeline"}catch{return"timeline"}}function Oy(l,i){if(l)try{l.setItem(Jd,i)}catch{}}const Mc={waiting:"Waiting","owner-gate":"Owner gate",blocked:"Blocked","blocked-merge":"Blocked merge",coordinator:"Coordinator",hub:"Hub"},Am={collector:"Roadmap and relay data",agents:"Session list",github:"GitHub data",coordinator:"Coordinator data"},Kn=l=>Array.isArray(l)?l:[],Ct=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{},ot=l=>typeof l=="string"&&l?l:null,Yn=l=>typeof l=="number"&&Number.isFinite(l)?l:null,Fr=l=>{var i;return((i=l.github)==null?void 0:i.repo)??l.name},Ic=l=>l.replace(/\\/g,"/").replace(/\/+$/,"").toLowerCase(),al=l=>l.agent&&l.agent!=="claude"?l.agent:null,xn=(l,i)=>!!l&&!!i&&Ic(l)===Ic(i);function ef(l){var a;const i=[];for(const d of Kn((a=l.relays)==null?void 0:a.relays)){const f=Ct(d),p=ot(f.name),g=ot(f.status);!p||!g||i.push({name:p,status:g,statusArg:ot(f.status_arg)??"",updatedAt:ot(f.updated_at),nextStep:ot(f.next_step)})}return i}function tf(l){return Array.isArray(l.owner_items)?l.owner_items:ef(l).filter(i=>i.status==="OWNER-GATE"&&i.statusArg).map(i=>({id:`gate:${i.name}:${i.statusArg}`,what:`owner gate ${i.statusArg} (${i.name})`,pr:null,head_sha:null,source:"relay",recommendation:null,from:i.name,since:i.updatedAt,relay:i.name}))}function Ur(l){var a;const i=[];for(const d of Kn((a=l.coordinator)==null?void 0:a.queue)){const f=Ct(d),p=Yn(f.pr);if(p===null)continue;const g=[];for(const w of Kn(f.waits_on)){const m=Ct(w),j=Yn(m.pr);j!==null&&g.push({repo:ot(m.repo)??"",pr:j})}i.push({pr:p,headSha:ot(f.head_sha)??"",title:ot(f.title)??"",state:ot(f.state)??"waiting",whyWaiting:ot(f.why_waiting)??"",waitsOn:g,hotfix:f.hotfix===!0,held:f.held===!0,since:ot(f.entered_ready_at)})}return i}function nf(l){var a;const i=(a=l.coordinator)==null?void 0:a.merging_now;return Yn(i)??Yn(Ct(i).pr)}function Fm(l){const i=new Set,a=[];for(const d of l)d.waiting_class!=="owner"||i.has(d.session_id)||(i.add(d.session_id),a.push(d));return a}function Um(l,i){var p,g;let a=null;for(const w of l.repos){const m=Fr(w);for(const j of Kn((p=w.coordinator)==null?void 0:p.deploy_checks)){const E=Ct(j),T=Date.parse(ot(E.at)??""),C=Yn(E.pr);if(Number.isNaN(T)||C===null)continue;const O=ot(E.health);(!a||T>a.at)&&(a={at:T,label:`${m} #${C}`,ok:O==="ok"?!0:O==="failed"?!1:null,how:`health ${O??"unknown"}`})}for(const j of((g=w.github)==null?void 0:g.merges)??[]){const E=Date.parse(j.merged_at);if(Number.isNaN(E)||a&&a.at>=E)continue;const T=j.runs??[],C=T.some(_=>_.conclusion==="failure"),O=T.length>0&&T.every(_=>_.conclusion==="success");a={at:E,label:`${m} #${j.number}`,ok:C?!1:O?!0:null,how:C?"deploy failed":O?"deploy pass":"merged"}}}if(!a)return null;const d=Math.max(0,Math.round((i-a.at)/6e4)),f=d<60?`${d} min ago`:d<1440?`${Math.floor(d/60)} h ago`:`${Math.floor(d/1440)} d ago`;return{label:a.label,sub:`${f} · ${a.how}`,ok:a.ok}}function Hm(l,i,a){var p;let d=0;for(const g of l.repos)(p=g.coordinator)!=null&&p.responding&&(d+=Ur(g).filter(w=>w.state!=="blocked").length);const f=l.sessions.filter(g=>!["idle","done","unknown"].includes(g.status)).length;return{waitingOnYou:a.filter(g=>g.folder==="needs").length,blockedMerges:a.filter(g=>g.kind==="blocked-merge").length,inQueue:d,workingSessions:f,lastDeploy:Um(l,i)}}function Bm(l){const i=new Date(l);return Number.isNaN(i.getTime())?"unknown":i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const Ac=(l,i)=>{var a;return(a=l.github)!=null&&a.repo?`gh pr checks ${i} -R ${l.github.repo}`:`gh pr checks ${i}`};function Wm(l,i){var g,w;const a=[],d=new Set,f=m=>{d.has(m.id)||(d.add(m.id),a.push(m))},p=m=>l.repos.find(j=>xn(j.path,m));for(const m of Fm(l.sessions)){const j=p(m.repo_path),E=m.name??m.session_id.slice(0,8),T=al(m);f({id:`waiting:${m.session_id}`,kind:"waiting",folder:"needs",repo:j?Fr(j):"no repo",title:`${E}${T?` (${T})`:""} waits on ${m.waiting_for??"you"}`,why:"The session cannot continue until you answer.",next:"Open the session and answer.",cmd:E,since:m.waiting_since,source:"agents"})}for(const m of l.repos){const j=Fr(m),E=ef(m);for(const _ of tf(m)){const F=_.relay?E.find(I=>I.name===_.relay):void 0,M=_.source==="relay"?(g=/^owner gate (\S+) /.exec(_.what))==null?void 0:g[1]:void 0;f({id:`owner:${m.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:j,repoPath:m.path,title:M?`Gate ${M}: owner approval needed`:`${_.pr!==null?`PR #${_.pr}: `:""}${_.what}`,why:_.source==="relay"?"The plan stops at this owner gate. The next phase cannot start without you.":"This is on the owner-only list. Only your click approves it.",next:(F==null?void 0:F.nextStep)??(_.source==="relay"?"Read the relay, then decide.":"Read the recommendation, then decide."),cmd:_.relay?`.caddis/relay/${_.relay}.md`:_.what,since:_.since,owner:_,source:_.source==="relay"?"collector":"coordinator"})}for(const _ of zm(m))f({id:`rmgate:${m.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:j,repoPath:m.path,title:`Roadmap ${_.roadmap}, gate ${_.milestone}: ${_.reason}`,why:`Milestone ${_.milestone} of roadmap ${_.roadmap} waits for you. Everything before it is done.`,next:"Decide, then record the gate in the roadmap with /caddis:roadmap (a docs PR).",cmd:_.check||"/caddis:roadmap",since:null,source:"collector"});for(const _ of E)_.status==="BLOCKED"&&_.statusArg.toLowerCase().startsWith("owner")&&f({id:`blocked:${m.path}:${_.name}`,kind:"blocked",folder:"needs",repo:j,repoPath:m.path,title:`Relay ${_.name}: STATUS: BLOCKED owner`,why:"The relay says the owner must decide before the next step.",next:_.nextStep??"Read the relay and decide.",cmd:`.caddis/relay/${_.name}.md`,since:_.updatedAt,source:"collector"});const T=!!m.coordinator&&m.coordinator.responding;for(const _ of Ur(m))_.state==="blocked"&&f({id:`merge:${m.path}:${_.pr}`,kind:"blocked-merge",folder:"blocked",repo:j,repoPath:m.path,title:`PR #${_.pr}${_.title?` ${_.title}`:""}: blocked`,why:_.whyWaiting||"The coordinator skips it until it is unblocked.",next:"Ask the PR session to fix it, or hold the PR.",cmd:Ac(m,_.pr),since:_.since,queue:{pr:_.pr,headSha:_.headSha,hotfix:_.hotfix,held:_.held},source:"coordinator"});const C=new Map(Ur(m).map(_=>[_.pr,_]));for(const _ of((w=m.github)==null?void 0:w.prs)??[]){if(_.draft||_.required_state!=="fail")continue;const F=_.checks.filter(I=>I.required&&I.conclusion==="failure").map(I=>I.name),M=C.get(_.number);f({id:`merge:${m.path}:${_.number}`,kind:"blocked-merge",folder:"blocked",repo:j,repoPath:m.path,title:`PR #${_.number}: required check ${F.length>0?`${F.join(", ")} `:""}failed`,why:T?"The coordinator skips it until the check passes at the head.":"This repo has no live coordinator, so its session merges its own PRs.",next:"Fix the check in the PR session.",cmd:Ac(m,_.number),since:_.updated_at,...M?{queue:{pr:M.pr,headSha:M.headSha,hotfix:M.hotfix,held:M.held}}:{},source:"github"})}const O=m.coordinator;O&&!O.responding&&O.heartbeat_at&&O.status!=="stopped"&&f({id:`coordinator:${m.path}`,kind:"coordinator",folder:"needs",repo:j,repoPath:m.path,title:`Coordinator not responding since ${Bm(O.heartbeat_at)}`,why:"No heartbeat for 3 min. Its queue is frozen; the lane shows GitHub data.",next:"Check the coordinator session, then restart it.",cmd:"/caddis:coordinate",since:O.heartbeat_at,source:"coordinator"})}for(const m of["collector","agents","github","coordinator"]){const j=l.sources[m];j.ok||!j.stale||f({id:`hub:${m}`,kind:"hub",folder:"needs",repo:"hub",title:`${Am[m]} has failed for over 3 min`,why:j.last_error??"The source has not answered.",next:"Read the error. The hub keeps the last good data.",cmd:"caddis hub status",since:j.last_ok_at})}return{items:a,tiles:Hm(l,i,a)}}const Vm=24*36e5,qm=()=>({open:{},resolved:[]}),Qm=(l,i)=>{var d;const a=(d=l.sources)==null?void 0:d[i];return!!a&&(!a.ok||a.stale)};function Km(l,i){var d;if(!i.repoPath)return!1;const a=(d=l.repos)==null?void 0:d.find(f=>xn(f.path,i.repoPath));if(!a)return!1;if(i.source==="github"){const f=a.github;return!!f&&typeof f.error=="string"&&!Array.isArray(f.prs)}if(i.source==="collector"){const f=Ct(a.relays);return(typeof a.error=="string"||typeof f.error=="string")&&!Array.isArray(f.relays)}return!1}function Fc(l,i,a){const d=new Set(i.map(p=>p.id)),f=i.map(p=>p.stale?{...p,stale:!1}:p);for(const[p,g]of Object.entries(l))d.has(p)||!g.source||!Qm(a,g.source)&&!Km(a,g)||f.push({...g,stale:!0});return f}function Ym(l,i,a){const d=new Map(i.map(p=>[p.id,p])),f=l.resolved.filter(p=>a-p.resolvedAt<Vm&&!d.has(p.item.id));for(const[p,g]of Object.entries(l.open))!d.has(p)&&!f.some(w=>w.item.id===p)&&f.push({item:g,resolvedAt:a});return f.sort((p,g)=>g.resolvedAt-p.resolvedAt),{open:Object.fromEntries(d),resolved:f}}function Uc(l){const i=Ct(l);return typeof i.id=="string"&&typeof i.title=="string"&&typeof i.kind=="string"&&typeof i.folder=="string"}function bm(l){const i=Ct(l),a={};for(const[f,p]of Object.entries(Ct(i.open)))Uc(p)&&(a[f]=p);const d=[];for(const f of Kn(i.resolved)){const p=Ct(f),g=Yn(p.resolvedAt);Uc(p.item)&&g!==null&&d.push({item:p.item,resolvedAt:g})}return{open:a,resolved:d}}const Hc="Start a session in the folder: the hub adds it.";function rf(){return c.jsxs("section",{className:"first-run","data-testid":"first-run","aria-label":"Get started",children:[c.jsx("h2",{children:"No repos yet"}),c.jsxs("p",{children:[c.jsx(zd,{size:16,"aria-hidden":"true"})," Start a Claude Code session in a repo. The hub finds it by itself."]}),c.jsx("p",{children:"Or add a folder. The hub checks that it is a git repo."}),c.jsxs("button",{type:"button",className:"btn",disabled:!0,title:Hc,"data-testid":"add-folder",children:[c.jsx(Kh,{size:16,"aria-hidden":"true"}),"Add a folder"]}),c.jsxs("span",{className:"first-run-reason",children:[" ",Hc]})]})}const Or={size:15,"aria-hidden":!0};function of({tiles:l,stale:i=!1}){const a=l.lastDeploy,d=a?a.ok===!0?"ok":a.ok===!1?"failed":"unknown":null;return c.jsxs("div",{className:`kpi-strip${i?" stale":""}`,"data-testid":"tiles","data-stale":i?"true":void 0,children:[c.jsx(Et,{content:`${l.waitingOnYou}: items in Needs you that wait on your answer`,children:c.jsxs("div",{className:`kpi-tile${l.waitingOnYou>0?" urgent":""}`,tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(um,{...Or}),"Waiting on you"]}),c.jsx("span",{className:"kpi-num accent","data-testid":"tile-waiting",children:l.waitingOnYou})]})}),c.jsx(Et,{content:`${l.blockedMerges}: PRs with a failed required check or blocked in the queue`,children:c.jsxs("div",{className:`kpi-tile${l.blockedMerges>0?" danger":""}`,tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(Bh,{...Or}),"Blocked merges"]}),c.jsx("span",{className:"kpi-num bad","data-testid":"tile-blocked",children:l.blockedMerges})]})}),c.jsx(Et,{content:`${l.inQueue}: PRs in the merge queue`,children:c.jsxs("div",{className:"kpi-tile",tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(Yh,{...Or}),"In merge queue"]}),c.jsx("span",{className:"kpi-num","data-testid":"tile-queue",children:l.inQueue})]})}),c.jsx(Et,{content:`${l.workingSessions}: sessions that are working now`,children:c.jsxs("div",{className:"kpi-tile",tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(zd,{...Or}),"Working sessions"]}),c.jsx("span",{className:"kpi-num","data-testid":"tile-working",children:l.workingSessions})]})}),c.jsx(Et,{content:a?`Last prod deploy: ${a.label}. ${a.sub}. State: ${d}`:"No prod deploy is known yet",children:c.jsxs("div",{className:"kpi-tile deploy",tabIndex:0,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(om,{...Or}),"Last prod deploy"]}),a?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:`kpi-val ${a.ok===!0?"tone-good":a.ok===!1?"tone-bad":""}`,children:a.label}),c.jsx("span",{className:"kpi-sub tone-muted",children:a.sub})]}):c.jsx("span",{className:"kpi-val tone-muted",children:"No deploy yet"})]})})]})}const Gm=[{id:"needs",label:"Needs you",Icon:ud},{id:"approvals",label:"Approvals",Icon:lm},{id:"blocked",label:"Blocked",Icon:sm},{id:"resolved",label:"Resolved, 24 h",Icon:Uh}];function Bc({iso:l,nowMs:i,focusable:a=!1}){const d=Xm(l,i);return l?c.jsx(Et,{content:Qd(l),children:c.jsx("time",{dateTime:l,tabIndex:a?0:void 0,children:d})}):c.jsx(c.Fragment,{children:d})}const Xm=(l,i)=>l?nn(l,i).replace(/ ago$/,""):"unknown";function Zm(l){var i;try{(i=navigator.clipboard)==null||i.writeText(l)}catch{}}function Jm(l,i){return l?i.owner?Ad(l,i.owner):i.queue?Ni(l,i.queue):[]:[]}function eg({state:l,nowMs:i,api:a,act:d}){const[f,p]=H.useState("needs"),[g,w]=H.useState(null),[m,j]=H.useState(!1),[E,T]=H.useState(!1),{model:C,resolved:O,read:_}=a,F={needs:C.items.filter(L=>L.folder==="needs").length,approvals:C.items.filter(L=>L.folder==="approvals").length,blocked:C.items.filter(L=>L.folder==="blocked").length,resolved:O.length},M=f==="resolved"?O.map(L=>({item:L.item,resolved:!0,since:new Date(L.resolvedAt).toISOString()})):C.items.filter(L=>L.folder===f).map(L=>({item:L,resolved:!1,since:L.since})),I=M.find(L=>L.item.id===g)??M[0]??null,ue=L=>{p(L),w(null),j(!1)},J=L=>{w(L.item.id),j(!0),L.resolved||a.markRead(L.item.id)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"Inbox"}),c.jsxs("span",{className:"page-subtitle",children:[l.repos.length," repos · ",l.sessions.length," sessions"]})]}),l.repos.length===0&&c.jsx(rf,{}),c.jsx(of,{tiles:C.tiles,stale:gi(l)}),a.notify.supported&&c.jsxs("div",{className:"notify-row",children:[c.jsxs("button",{type:"button",className:"btn",onClick:a.notify.enable,disabled:a.notify.enabled,children:[c.jsx(ud,{size:16,"aria-hidden":"true"}),a.notify.enabled?"Notifications on":"Notify me"]}),c.jsx("span",{children:a.notify.enabled?"One browser notification per new item.":"Opt in to a browser notification for each new item."})]}),c.jsxs("div",{className:`mailbox${m&&I?" show-detail":""}`,children:[c.jsx("div",{className:"mailbox-folders",role:"tablist","aria-label":"Folders",children:Gm.map(({id:L,label:ae,Icon:pe})=>c.jsxs("button",{type:"button",role:"tab","aria-selected":f===L,className:`folder-btn${f===L?" sel":""}`,onClick:()=>ue(L),"data-testid":`folder-${L}`,children:[c.jsx(pe,{size:16,"aria-hidden":"true"}),c.jsx("span",{children:ae}),c.jsx("strong",{children:F[L]})]},L))}),c.jsxs("div",{className:"mailbox-list","data-testid":"inbox-list",children:[M.map(L=>{const ae=!L.resolved&&!_.has(L.item.id);return c.jsxs("button",{type:"button",className:`item-btn${(I==null?void 0:I.item.id)===L.item.id?" sel":""}`,onClick:()=>J(L),"data-testid":"inbox-item",children:[c.jsx("span",{className:`unread-dot${ae?" on":""}`,role:"img","aria-label":ae?"Unread":"Read"}),c.jsxs("span",{className:"item-main",children:[c.jsxs("span",{className:"item-meta",children:[c.jsx("span",{className:`chip chip-${L.resolved?"resolved":L.item.kind}`,children:L.resolved?"Resolved":Mc[L.item.kind]}),c.jsx("span",{className:"mono",children:L.item.repo}),c.jsxs("span",{children:["· ",c.jsx(Bc,{iso:L.since,nowMs:i})]}),!L.resolved&&L.item.stale&&c.jsx("span",{className:"chip chip-stale","data-testid":"stale-chip",title:"Its source is failing. Last good data is shown.",children:"stale"})]}),c.jsx("span",{className:"item-title",children:L.item.title})]})]},L.item.id)}),M.length===0&&c.jsxs("div",{className:"list-empty","data-testid":"inbox-empty",children:[c.jsx("strong",{children:f==="resolved"?"Nothing resolved in the last 24 h":"Nothing needs you"}),c.jsxs("div",{children:["Last check ",nn(l.generated_at,i),"."]})]})]}),I&&c.jsxs("article",{className:"mailbox-detail","data-testid":"inbox-detail","aria-label":"Item detail",children:[c.jsxs("button",{type:"button",className:"btn back-btn",onClick:()=>j(!1),children:[c.jsx(Hh,{size:16,"aria-hidden":"true"}),"Back"]}),c.jsxs("span",{className:"item-meta",children:[c.jsx("span",{className:`chip chip-${I.resolved?"resolved":I.item.kind}`,children:I.resolved?"Resolved":Mc[I.item.kind]}),c.jsx("span",{className:"mono",children:I.item.repo}),c.jsxs("span",{children:["· ",I.resolved?"resolved":"since"," ",c.jsx(Bc,{iso:I.since,nowMs:i,focusable:!0})]}),!I.resolved&&I.item.stale&&c.jsx("span",{className:"chip chip-stale",children:"stale"})]}),c.jsx("h2",{children:I.item.title}),c.jsxs("div",{className:"detail-block",children:[c.jsx("span",{className:"detail-label",children:"Why it matters"}),c.jsx("span",{children:I.resolved?"The source cleared. No action is needed.":I.item.why})]}),!I.resolved&&I.item.owner&&c.jsx(Vd,{item:I.item.owner}),c.jsxs("div",{className:"detail-block",children:[c.jsx("span",{className:"detail-label",children:"Next step"}),c.jsx("span",{children:I.resolved?"Nothing.":I.item.next}),c.jsx("code",{className:"cmd",children:I.item.cmd})]}),c.jsx("div",{className:"detail-actions",children:c.jsxs("button",{type:"button",className:"btn",onClick:()=>{Zm(I.item.cmd),T(!0),window.setTimeout(()=>T(!1),1500)},children:[E?c.jsx(Vh,{size:16,"aria-hidden":"true"}):c.jsx(md,{size:16,"aria-hidden":"true"}),I.item.kind==="waiting"?"Copy session name":"Copy command"]})}),!I.resolved&&(()=>{const L=l.repos.find(je=>xn(je.path,I.item.repoPath)),ae=Jm(L,I.item);if(!L||ae.length===0)return null;const pe=I.item.owner?Hd(L,I.item.owner):void 0;return c.jsx(il,{repo:L,specs:ae,act:d,reason:pe})})()]})]})]})}const lf="caddis-hub-inbox-history",Wc="caddis-hub-inbox-read",tl="caddis-hub-inbox-notified",Vc="caddis-hub-inbox-notify",sf="caddis-hub-lanes-folded";function on(){try{return window.localStorage}catch{return null}}function Ei(l,i){try{const a=i==null?void 0:i.getItem(l);return a?JSON.parse(a):null}catch{return null}}function Ci(l,i,a){try{a==null||a.setItem(l,JSON.stringify(i))}catch{}}const tg=(l=on())=>{const i=Ei(lf,l);return i?bm(i):qm()},ng=(l,i=on())=>Ci(lf,l,i);function ui(l,i=on()){const a=Ei(l,i);return new Set(Array.isArray(a)?a.filter(d=>typeof d=="string"):[])}function ci(l,i,a=on()){Ci(l,[...i].slice(-500),a)}const rg={items:[],tiles:{waitingOnYou:0,blockedMerges:0,inQueue:0,workingSessions:0,lastDeploy:null}},di=()=>typeof window<"u"&&"Notification"in window;function og(l,i){const a=H.useMemo(()=>l?Wm(l,i):rg,[l,i]),[d,f]=H.useState(()=>tg()),p=H.useMemo(()=>{if(!l)return a;const C=Fc(d.open,a.items,l),O=_=>C.filter(_).length;return{items:C,tiles:{...a.tiles,waitingOnYou:O(_=>_.folder==="needs"),blockedMerges:O(_=>_.kind==="blocked-merge")}}},[l,a,d.open]),[g,w]=H.useState(()=>ui(Wc)),[m,j]=H.useState(()=>{var C;try{return di()&&((C=on())==null?void 0:C.getItem(Vc))==="1"&&Notification.permission==="granted"}catch{return!1}});H.useEffect(()=>{l&&f(C=>{const O=Ym(C,Fc(C.open,a.items,l),Date.now());return ng(O),O})},[l,a]),H.useEffect(()=>{if(!m||!l)return;const C=ui(tl);let O=!1;for(const _ of p.items)if(!C.has(_.id)){C.add(_.id),O=!0;try{new Notification(`caddis hub: ${_.repo}`,{body:_.title,tag:_.id})}catch{}}O&&ci(tl,C)},[m,l,p]);const E=H.useCallback(C=>{w(O=>{if(O.has(C))return O;const _=new Set(O).add(C);return ci(Wc,_),_})},[]),T=H.useCallback(()=>{di()&&Notification.requestPermission().then(C=>{var _;if(C!=="granted")return;try{(_=on())==null||_.setItem(Vc,"1")}catch{}const O=ui(tl);for(const F of p.items)O.add(F.id);ci(tl,O),j(!0)})},[p]);return{model:p,resolved:d.resolved,read:g,markRead:E,notify:{supported:di(),enabled:m,enable:T}}}function lg(l){const i=l.replace(/^#\/?/,"").split("/"),a=i[0];if(a==="overview")return{page:"overview"};if(a==="activity")return{page:"activity"};if(a==="guide")try{const d=i[1]==="details"||i[1]==="wall"||i[1]==="map"?i[1]:"poster",f=i[2]?decodeURIComponent(i[2]):null;return{page:"guide",tab:d,item:f}}catch{return{page:"inbox"}}if(a==="repo"&&i[1])try{const d=i[2]==="roadmap"||i[2]==="sessions"?i[2]:"flow",f=d==="roadmap"&&i[3]?decodeURIComponent(i[3]):null;return{page:"repo",id:decodeURIComponent(i[1]),tab:d,roadmap:f}}catch{return{page:"inbox"}}return{page:"inbox"}}const ul=l=>l.repo_id??l.path,ll=l=>`#/repo/${encodeURIComponent(l)}`;function sg(l,i,a){return i==="flow"?ll(l):`${ll(l)}/${i}${i==="roadmap"&&a?`/${encodeURIComponent(a)}`:""}`}function ig(l,i){return l==="poster"?"#/guide":l==="wall"?"#/guide/wall":l==="map"?"#/guide/map":`#/guide/details${i?`/${encodeURIComponent(i)}`:""}`}const qc="No coordinator: each session merges its own PRs.",ag="/caddis:coordinate",ug="gh auth login -h github.com",af=l=>{const i=l?new Date(l):null;return i&&!Number.isNaN(i.getTime())?i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"unknown"},Qc=l=>`Coordinator not responding since ${af(l)}`,Kc=l=>`Coordinator stopped at ${af(l)}`;function cg(l,i){const a=l?Date.parse(l):NaN;if(Number.isNaN(a))return"unknown";const d=Math.max(0,Math.round((i-a)/6e4));return d<60?`${d} min ago`:d<1440?`${Math.floor(d/60)} h ago`:`${Math.floor(d/1440)} d ago`}const dg=(l,i,a)=>l==="waiting"?{sub:`waiting: ${i??"unknown"}`,tone:a==="peer"?"muted":"warn"}:l==="busy"||l==="running"||l==="working"?{sub:"busy",tone:"good"}:{sub:l,tone:"muted"},fi=(l,i)=>{const a=l.whyWaiting||l.state,d=[l.hotfix?"hotfix":"",l.held&&!a.includes("held")?"held":"",a].filter(Boolean);return{key:`q${l.pr}`,title:`#${l.pr} ${l.title}`.trim(),sub:i?"last known queue":d.join(" · "),tone:l.hotfix||l.held?"warn":"muted",grey:i,queue:{pr:l.pr,headSha:l.headSha,hotfix:l.hotfix,held:l.held}}};function fg(l,i,a){var J,L,ae,pe,je;const d=i.coordinator,f=d?d.status==="stopped"?"stopped":d.responding?"coordinator":"down":"none",p=Fr(i),g=l.sessions.filter(b=>xn(b.repo_path,i.path)).map(b=>{const re=dg(b.status,b.waiting_for,b.waiting_class),Te=al(b);return{key:`s${b.session_id}`,title:b.name??b.session_id.slice(0,8),sub:Te?`${Te} · ${re.sub}`:re.sub,tone:re.tone}}),w=[],m=new Set;for(const b of((J=i.github)==null?void 0:J.prs)??[]){if(b.draft||b.required_state!=="fail")continue;const re=b.checks.filter(Te=>Te.required&&Te.conclusion==="failure").map(Te=>Te.name);m.add(b.number),w.push({key:`b${b.number}`,title:`#${b.number} ${b.title}`,sub:re.length>0?`${re.join(", ")} failed`:"required check failed",tone:"bad"})}const j=Ur(i),E=[],T=[];if(f==="coordinator"){const b=nf(i);for(const re of j)re.state==="blocked"?m.has(re.pr)||(m.add(re.pr),w.push({key:`b${re.pr}`,title:`#${re.pr} ${re.title}`.trim(),sub:re.whyWaiting||"blocked",tone:"bad"})):re.state==="merging"||re.pr===b?T.push(fi(re,!1)):E.push(fi(re,!1))}else if(f==="down"||f==="stopped")for(const b of j)b.state!=="blocked"&&E.push(fi(b,!0));const C=(((L=i.github)==null?void 0:L.merges)??[]).slice().sort((b,re)=>Date.parse(re.merged_at)-Date.parse(b.merged_at)).slice(0,3).map(b=>{const re=b.runs??[],Te=re.some(Oe=>Oe.conclusion==="failure"),wt=re.length>0&&re.every(Oe=>Oe.conclusion==="success"),Ve=cg(b.merged_at,a);return{key:`d${b.number}`,title:`#${b.number} ${b.title}`,sub:Te?`deploy failed · ${Ve}`:wt?`deployed ${Ve}`:`merged ${Ve}`,tone:Te?"bad":wt?"good":"muted"}});let O=null;f==="none"?O=`${qc} Start one with ${ag}.`:f==="down"?O=`${Qc((d==null?void 0:d.heartbeat_at)??null)}. The lane shows GitHub data; the last known queue is greyed.`:f==="stopped"&&(O=`${Kc((d==null?void 0:d.stopped_at)??null)}. Each session merges its own PRs until one starts again (/caddis:coordinate). The last known queue is greyed.`);const _=(ae=l.sources)!=null&&ae.agents?!l.sources.agents.ok:!1,F=(pe=i.github)!=null&&pe.error?{account:i.github.account??null,error:i.github.error,command:ug}:null;let M;f==="down"?M=Qc((d==null?void 0:d.heartbeat_at)??null):f==="stopped"?M=Kc((d==null?void 0:d.stopped_at)??null):M=[f==="none"?"No coordinator":"",_?"sessions unknown":g.length>0?`${g.length} session${g.length===1?"":"s"}`:"no sessions running",w.length>0?`${w.length} blocked`:"",E.length>0?`${E.length} waiting`:"",T.length>0?`${T.length} merging`:"",C.length>0?`${C.length} deployed`:""].filter(Boolean).join(" · ");const I=l.sessions.some(b=>xn(b.repo_path,i.path)&&b.waiting_class==="owner"),ue=f==="down"||i.error||(je=i.github)!=null&&je.error?"blocked":I?"attention":f==="none"||f==="stopped"?"idle":"ok";return{id:i.path,name:p,mode:f,tone:ue,note:O,github:F,summary:M,columns:[{id:"sessions",title:"Sessions",cards:g,emptyText:_?'Sessions unknown: "claude agents" failed':"No sessions running"},{id:"blocked",title:"Blocked",cards:w,emptyText:"None"},{id:"waiting",title:"Waiting for its turn",cards:E,emptyText:f==="none"?qc:"None"},{id:"merging",title:"Merging now",cards:T,emptyText:"None"},{id:"done",title:"Done and deployed",cards:C,emptyText:"None"}]}}const pg=(l,i)=>l.repos.map(a=>fg(l,a,i)),hg={ok:"ok: nothing needs attention",attention:"attention: something waits on an answer",blocked:"blocked: a merge or check is failing",idle:"idle: no sessions or PRs are active"};function mg(l){const i=l.queue;return c.jsxs(c.Fragment,{children:[c.jsx("strong",{children:l.title}),c.jsx("span",{children:l.sub}),i&&c.jsxs("span",{className:"mono",children:["#",i.pr," · head ",i.headSha.slice(0,7),i.hotfix?" · hotfix":"",i.held?" · held":""]})]})}const gg="None",nl=l=>l.cards.length===0&&l.emptyText===gg,yg={ok:"var(--green)",attention:"var(--mk-warn)",blocked:"var(--mk-bad)",idle:"var(--text-dim)"};function vg(){const l=Ei(sf,on());return l&&typeof l=="object"&&!Array.isArray(l)?l:{}}function wg({state:l,nowMs:i,api:a,act:d}){const[f,p]=H.useState(()=>vg()),g=pg(l,i),w=m=>{p(j=>{const E={...j,[m]:!j[m]};return Ci(sf,E,on()),E})};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"Overview"}),c.jsxs("span",{className:"page-subtitle",children:[l.repos.length," repos · ",l.sessions.length," sessions"]})]}),l.repos.length===0&&c.jsx(rf,{}),c.jsx(of,{tiles:a.model.tiles,stale:gi(l)}),c.jsx("div",{className:`lanes${gi(l)?" stale":""}`,"data-testid":"lanes",children:g.map(m=>{const j=!f[m.id],E=l.repos.find(T=>xn(T.path,m.id));return c.jsxs("section",{className:`lane ${m.mode}`,"data-testid":"lane","aria-label":m.name,children:[c.jsxs("div",{className:"lane-headrow",children:[c.jsx(Et,{content:hg[m.tone],children:c.jsxs("button",{type:"button",className:"lane-head","aria-expanded":j,onClick:()=>w(m.id),children:[c.jsx("span",{"aria-hidden":"true",style:{width:9,height:9,borderRadius:"50%",background:yg[m.tone],flexShrink:0}}),c.jsx("span",{className:"lane-name",children:m.name}),c.jsx("span",{className:"lane-summary","data-testid":"lane-summary",children:m.summary}),c.jsx(qh,{className:"chev",size:18,"aria-hidden":"true",style:{transform:j?"rotate(180deg)":"none"}})]})}),E&&c.jsx("a",{className:"lane-open",href:ll(ul(E)),children:"Open repo"})]}),j&&c.jsxs("div",{className:"lane-body",children:[m.github&&c.jsxs("div",{className:"lane-note gh-fail","data-testid":"gh-fail",role:"status",children:["GitHub access failed for ",m.github.account?`account ${m.github.account}`:"this repo",m.github.error?` (${m.github.error})`:"",". Sign in again with"," ",c.jsx("code",{className:"cmd",children:m.github.command})]}),m.note&&c.jsx("div",{className:"lane-note","data-testid":"lane-note",children:m.note}),c.jsx("div",{className:"lane-cols",children:m.columns.map(T=>c.jsxs("div",{className:`lane-col${nl(T)?" empty":""}`,"data-testid":`col-${T.id}`,children:[c.jsxs("span",{className:"col-title",children:[T.title," · ",T.cards.length]}),T.cards.map(C=>c.jsx(Et,{content:mg(C),children:c.jsxs("div",{className:`card${C.grey?" grey":""}`,"data-testid":"lane-card",tabIndex:0,children:[c.jsx("span",{className:"card-title",children:C.title}),c.jsx("span",{className:`card-sub tone-${C.tone}`,children:C.sub}),E&&C.queue&&c.jsx(il,{repo:E,specs:Ni(E,C.queue),act:d,compact:!0})]})},C.key)),T.cards.length===0&&!nl(T)&&c.jsx("span",{className:"col-empty",children:T.emptyText})]},T.id))}),m.columns.some(nl)&&c.jsxs("span",{className:"lane-empty-line","data-testid":"lane-empty-line",children:["Empty: ",m.columns.filter(nl).map(T=>T.title).join(", ")]})]})]},m.id)})})]})}const kg=["D1","D2","D3","D4","D5"],sl=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{};function xg(l){const i=(a,d)=>{if(a.state==="merging")return[0,0,0,"",d];const f=a.hotfix?1:2;return a.state==="ready"&&!a.held?[f,0,a.since?0:1,a.since??"",d]:[f,1,0,"",d]};return l.map((a,d)=>({q:a,r:i(a,d)})).sort((a,d)=>{for(let f=0;f<a.r.length;f++){const p=a.r[f],g=d.r[f];if(p<g)return-1;if(p>g)return 1}return 0}).map(a=>a.q)}function uf(l){const i=l.coordinator;return i?i.status==="stopped"?"stopped":i.responding?"live":"down":"none"}function Sg(l){const i=l.coordinator,a=typeof sl(i==null?void 0:i.coordinator_session).name=="string"?String(sl(i==null?void 0:i.coordinator_session).name):null;switch(uf(l)){case"none":return"No coordinator: each session merges its own PRs. Start one with /caddis:coordinate.";case"stopped":return`Coordinator stopped at ${Ir(i==null?void 0:i.stopped_at)}. The last known queue is greyed.`;case"down":return`Coordinator not responding since ${Ir(i==null?void 0:i.heartbeat_at)}. The last known queue is greyed.`;case"live":return`Coordinator ${a??""} live, heartbeat ${Ir(i==null?void 0:i.heartbeat_at)}.`.replace(" "," ")}}function Ng(l){var a;const i=[];for(const d of Kn((a=l.coordinator)==null?void 0:a.deploy_checks)){const f=sl(d);if(typeof f.pr!="number")continue;const p=sl(f.checks),g=Object.keys(p).length?kg.map(w=>({name:w,mark:typeof p[w]=="string"?String(p[w]):"skip"})):null;i.push({pr:f.pr,mergeSha:typeof f.merge_sha=="string"?f.merge_sha.slice(0,10):"",run:typeof f.deploy_run=="number"?f.deploy_run:null,health:typeof f.health=="string"?f.health:"unknown",at:typeof f.at=="string"?f.at:null,checks:g,reason:typeof f.reason=="string"&&f.reason?f.reason:null})}return i.reverse()}function _g(l,i){var g,w;const a=uf(i),d=nf(i),f=xg(Ur(i)),p=new Set(f.map(m=>m.pr));return{mode:a,statusText:Sg(i),grey:a==="stopped"||a==="down",merging:a==="live"?d:null,queue:f.map((m,j)=>({...m,position:j+1,merging:m.state==="merging"||m.pr===d})),deploys:Ng(i),owner:tf(i),unqueued:(((g=i.github)==null?void 0:g.prs)??[]).filter(m=>!m.draft&&!p.has(m.number)).map(m=>({number:m.number,title:m.title,requiredState:m.required_state,headSha:m.head_sha})),requests:[...((w=i.coordinator)==null?void 0:w.requests)??[]].reverse()}}const jg=H.createContext(null),Yc={waiting:0,busy:1,working:1,idle:2},Eg=l=>({key:l.key,name:l.name??l.session_id,kind:l.kind,agent:al(l),status:l.status,waitingFor:l.waiting_for,waitingClass:l.waiting_class,since:l.waiting_since,copies:l.copies,copyWarning:l.copies>1?`${l.copies} copies`:null});function Cg(l,i){const a=l.sources.agents,d=!a.ok&&a.last_ok_at===null,f=l.sessions.filter(g=>xn(g.repo_path,i.path)&&(!d||al(g)!==null)).map(Eg).sort((g,w)=>+(w.waitingClass==="owner")-+(g.waitingClass==="owner")||(Yc[g.status]??3)-(Yc[w.status]??3)||g.name.localeCompare(w.name));return{unknown:d&&f.length===0,error:a.ok?null:a.last_error,rows:f}}async function Tg(l){try{return await navigator.clipboard.writeText(l),!0}catch{return!1}}const bc={owner:"you",peer:"a peer session"};function $g({state:l,repo:i,nowMs:a}){const d=Cg(l,i),[f,p]=H.useState(null),g=async(w,m)=>{await Tg(m)&&(p(w),window.setTimeout(()=>p(j=>j===w?null:j),2e3))};return c.jsxs("div",{className:"flow","data-testid":"sessions",children:[d.error&&c.jsxs("div",{className:"lane-note","data-testid":"sessions-error",children:[d.unknown?"Sessions unknown: ":"The last sessions read failed: ",d.error]}),d.unknown?c.jsx("p",{className:"col-empty",children:"The hub could not read the session list. PRs and deploys are on the Flow tab."}):d.rows.length===0?c.jsx("p",{className:"col-empty","data-testid":"sessions-empty",children:"No sessions running. PRs and deploys are on the Flow tab."}):c.jsx("ul",{className:"flow-list","data-testid":"sessions-table","aria-label":"Sessions of this repo",children:d.rows.map(w=>c.jsxs("li",{className:"flow-row","data-testid":"session-row",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsx("span",{className:"flow-title mono",children:w.name}),w.agent&&c.jsx("span",{className:"chip tone-muted","data-testid":"session-agent",children:w.agent}),c.jsx(Et,{content:w.waitingFor?`${w.status}: waiting for ${w.waitingClass?bc[w.waitingClass]:"an answer"}: ${w.waitingFor}`:w.status,children:c.jsx("span",{className:`chip tone-${w.status==="waiting"?"warn":w.status==="busy"||w.status==="working"?"good":"muted"}`,tabIndex:0,children:w.status})}),w.copyWarning&&c.jsx("span",{className:"chip tone-bad","data-testid":"session-copies",children:w.copyWarning}),c.jsxs("button",{type:"button",className:"btn btn-act",onClick:()=>void g(w.key,w.name),"aria-label":`Copy session name ${w.name}`,children:[c.jsx(md,{size:14,"aria-hidden":"true"}),f===w.key?"Copied":"Copy name"]})]}),c.jsxs("span",{className:"flow-why",children:[w.kind,w.waitingFor?` · waiting for ${w.waitingClass?bc[w.waitingClass]:"an answer"}: ${w.waitingFor}`:"",w.since&&c.jsxs(c.Fragment,{children:[" · since ",c.jsx(Et,{content:Qd(w.since),children:c.jsx("time",{dateTime:w.since,tabIndex:0,children:nn(w.since,a)})})]})]}),w.copyWarning&&c.jsxs("span",{className:"flow-why tone-bad",children:["The same session runs in ",w.copies," windows. Close the extra copy."]})]},w.key))})]})}const Pg=H.lazy(()=>ki(()=>import("./RoadmapTab-CjYa5fye.js"),[])),Rg=[{id:"flow",label:"Flow"},{id:"roadmap",label:"Roadmap"},{id:"sessions",label:"Sessions"}],zg={ready:"good",merging:"good",blocked:"bad",held:"warn",ci:"muted",waiting:"muted"};function Lg({repo:l,item:i,grey:a,act:d}){return c.jsxs("li",{className:`flow-row${a?" grey":""}`,"data-testid":"queue-item",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsx("span",{className:"flow-pos mono",children:i.position}),c.jsxs("span",{className:"flow-title",children:["#",i.pr," ",i.title]})]}),c.jsxs("div",{className:"flow-flags",children:[c.jsx("span",{className:`chip tone-${zg[i.state]??"muted"}`,children:i.state}),i.merging&&c.jsx("span",{className:"chip tone-good",children:"merging now"}),i.hotfix&&c.jsx("span",{className:"chip tone-warn","data-testid":"flag-hotfix",children:"hotfix"}),i.held&&c.jsx("span",{className:"chip tone-warn","data-testid":"flag-held",children:"held"})]}),i.whyWaiting&&c.jsx("span",{className:"flow-why",children:i.whyWaiting}),i.waitsOn.length>0&&c.jsxs("span",{className:"flow-why",children:["Waits on ",i.waitsOn.map(f=>`${f.repo.replace("__","/")}#${f.pr}`).join(", ")]}),c.jsx(il,{repo:l,specs:Ni(l,{pr:i.pr,headSha:i.headSha,hotfix:i.hotfix,held:i.held}),act:d})]})}function Dg({state:l,repo:i,nowMs:a,act:d}){const f=_g(l,i);return c.jsxs("div",{className:"flow","data-testid":"flow",children:[c.jsx("div",{className:`lane-note flow-status ${f.mode}`,"data-testid":"flow-status",children:f.statusText}),f.owner.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Owner approvals",children:[c.jsxs("h2",{className:"flow-h",children:["Needs your approval · ",f.owner.length]}),c.jsx("ul",{className:"flow-list",children:f.owner.map(p=>c.jsxs("li",{className:"flow-row","data-testid":"owner-item",children:[c.jsxs("span",{className:"flow-title",children:[p.pr!==null?`#${p.pr} `:"",p.what]}),c.jsx(Vd,{item:p}),c.jsx(il,{repo:i,specs:Ad(i,p),act:d,reason:Hd(i,p)})]},p.id))})]}),c.jsxs("section",{className:"flow-section","aria-label":"Merge queue",children:[c.jsxs("h2",{className:"flow-h",children:["Merge queue · ",f.queue.length,f.grey?" · last known":""]}),f.mode==="none"?c.jsx("p",{className:"col-empty",children:"No queue: this repo has no coordinator."}):f.queue.length===0?c.jsx("p",{className:"col-empty",children:"The queue is empty."}):c.jsx("ol",{className:"flow-list",children:f.queue.map(p=>c.jsx(Lg,{repo:i,item:p,grey:f.grey,act:d},p.pr))})]}),c.jsxs("section",{className:"flow-section","aria-label":"Deploy checks",children:[c.jsx("h2",{className:"flow-h",children:"Deploy checks"}),f.deploys.length===0?c.jsx("p",{className:"col-empty",children:"No deploy check recorded."}):c.jsx("ul",{className:"flow-list",children:f.deploys.map(p=>c.jsxs("li",{className:"flow-row","data-testid":"deploy-check",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsxs("span",{className:"flow-title",children:["#",p.pr," ",c.jsx("span",{className:"mono",children:p.mergeSha})]}),c.jsxs("span",{className:`chip tone-${p.health==="ok"?"good":p.health==="failed"?"bad":"muted"}`,children:["health ",p.health]})]}),p.checks&&c.jsx("div",{className:"flow-flags","data-testid":"deploy-marks",children:p.checks.map(g=>c.jsxs("span",{className:`chip tone-${g.mark==="pass"?"good":g.mark==="fail"?"bad":"muted"}`,children:[g.name," ",g.mark]},g.name))}),c.jsxs("span",{className:"flow-why",children:[p.run!==null?`run ${p.run} · `:"",nn(p.at,a),p.reason?` · ${p.reason}`:""]})]},`${p.pr}-${p.mergeSha}`))})]}),f.unqueued.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Open PRs not in the queue",children:[c.jsxs("h2",{className:"flow-h",children:["Open PRs not in the queue · ",f.unqueued.length]}),c.jsx("ul",{className:"flow-list",children:f.unqueued.map(p=>c.jsxs("li",{className:"flow-row","data-testid":"unqueued-pr",children:[c.jsxs("span",{className:"flow-title",children:["#",p.number," ",p.title]}),c.jsxs("span",{className:`flow-why tone-${p.requiredState==="fail"?"bad":p.requiredState==="pass"?"good":"muted"}`,children:["required checks ",p.requiredState]})]},p.number))})]}),f.requests.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Your requests",children:[c.jsx("h2",{className:"flow-h",children:"Your requests"}),c.jsx("ul",{className:"flow-list",children:f.requests.slice(0,10).map(p=>c.jsxs("li",{className:"flow-row","data-testid":"request-log",children:[c.jsx("span",{className:`tone-${Wd(p.status)}`,children:Bd(p)}),c.jsxs("span",{className:"flow-why",children:[p.pr!==null?`PR #${p.pr}`:p.what," · ",nn(p.created_at,a)]})]},p.id))})]})]})}function Og({state:l,repo:i,nowMs:a,act:d,tab:f,roadmap:p}){const g=ul(i);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:Fr(i)}),c.jsx("span",{className:"page-subtitle",children:i.name})]}),c.jsx("nav",{className:"repo-tabs",role:"tablist","aria-label":"Repo views",children:Rg.map(w=>c.jsx("a",{role:"tab","aria-selected":f===w.id,"aria-current":f===w.id?"page":void 0,className:`folder-btn${f===w.id?" sel":""}`,href:sg(g,w.id),"data-testid":`tab-${w.id}`,children:w.id==="roadmap"?Dm(i):w.label},w.id))}),f==="flow"&&c.jsx(Dg,{state:l,repo:i,nowMs:a,act:d}),f==="roadmap"&&c.jsx(H.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(jg.Provider,{value:jh,children:c.jsx(Pg,{repo:i,slug:p,stale:Om(l),lastOkAt:l.sources.collector.last_ok_at},p??"")})}),f==="sessions"&&c.jsx($g,{state:l,repo:i,nowMs:a})]})}const Mg=1e4,Ig=2e3;function Ag(l,i){return l&&i&&i!==l?i:null}let yi=null;const vi=new Set,Fg=l=>(vi.add(l),()=>vi.delete(l));function Ug(){return H.useSyncExternalStore(Fg,()=>yi)}function Hg(){const[l,i]=H.useState(null),[a,d]=H.useState(null),[f,p]=H.useState(!0),g=H.useRef(void 0),w=H.useRef(!0),m=H.useRef(null),j=H.useCallback(async()=>{var T,C;try{const O=await _h();if(!w.current)return;i(O),d(null),m.current??(m.current=((T=O.versions)==null?void 0:T.hub)||null);const _=Ag(m.current,(C=O.versions)==null?void 0:C.hub);_&&yi===null&&(yi=_,vi.forEach(F=>F()),window.setTimeout(()=>window.location.reload(),Ig))}catch(O){if(!w.current)return;d(O instanceof pi&&O.status===401?"unauthorized":"network")}finally{w.current&&p(!1)}},[]);H.useEffect(()=>{w.current=!0;const T=()=>window.clearInterval(g.current),C=()=>{T(),g.current=window.setInterval(()=>void j(),Mg)},O=()=>{document.hidden?T():(j(),C())};return j(),document.hidden||C(),document.addEventListener("visibilitychange",O),()=>{w.current=!1,T(),document.removeEventListener("visibilitychange",O)}},[j]);const E=H.useCallback(()=>void j(),[j]);return{state:l,error:a,loading:f,refresh:E}}const Bg=1,Gc={collector:"Plans and roadmaps",agents:"Claude sessions",github:"GitHub",coordinator:"Coordinator"};function Wg(l){var d,f;const i=[];(l.schema>Bg||l.update_needed)&&i.push({id:"schema",tone:"bad",text:"This hub is older than its data. Update the hub:",command:"npm i -g @caddis/cli@latest"});const a=(d=l.sources)==null?void 0:d.agents;a&&!a.ok&&i.push({id:"agents-failed",tone:"bad",text:`Session list unavailable: "claude agents" failed${a.last_error?` (${a.last_error})`:""}.`});for(const p of Object.keys(Gc)){const g=(f=l.sources)==null?void 0:f[p];g!=null&&g.stale&&(p==="agents"&&!g.ok||i.push({id:`stale-${p}`,tone:"warn",text:`${Gc[p]} data is stale. Last good read: ${g.last_ok_at?Ir(g.last_ok_at):"never"}.`}))}return i}function Vg({state:l}){const i=Wg(l),a=Ug();return i.length===0&&!a?null:c.jsxs("div",{className:"banners",role:"region","aria-label":"Warnings",children:[a&&c.jsxs("div",{className:"banner warn",role:"status","data-testid":"banner-hub-updated",children:[c.jsx(rm,{size:16,"aria-hidden":"true"}),c.jsxs("span",{children:["caddis hub updated to ",a,", reloading"]})]}),i.map(d=>c.jsxs("div",{className:`banner ${d.tone}`,role:"status","data-testid":`banner-${d.id}`,children:[d.tone==="bad"?c.jsx(em,{size:16,"aria-hidden":"true"}):c.jsx(am,{size:16,"aria-hidden":"true"}),c.jsxs("span",{children:[d.text,d.command&&c.jsxs(c.Fragment,{children:[" ",c.jsx("code",{className:"cmd",children:d.command})]})]})]},d.id))]})}const cf="caddis-hub-motion",qg=["on","off"];function df(){try{return window.localStorage}catch{return null}}function Qg(l=df()){try{return(l==null?void 0:l.getItem(cf))==="off"?"off":"on"}catch{return"on"}}function Kg(l,i=df()){try{i==null||i.setItem(cf,l)}catch{}}const ff="caddis-hub-theme",Yg=["dark","light","system"];function pf(){try{return window.localStorage}catch{return null}}function bg(l=pf()){try{const i=l==null?void 0:l.getItem(ff);return i==="dark"||i==="light"||i==="system"?i:"system"}catch{return"system"}}function Gg(l,i=pf()){try{i==null||i.setItem(ff,l)}catch{}}function Xg(l,i){return l==="system"?i?"dark":"light":l}const Zg={dark:Jh,light:im,system:Zh},Jg={on:nm,off:tm},ey={on:"motion",off:"still"};function ty({state:l,nowMs:i,theme:a,onTheme:d,motion:f,onMotion:p}){const g=mm(l==null?void 0:l.spend),w=l==null?void 0:l.versions,m=ym(l),j=qd(l);return c.jsxs("footer",{className:"sidebar-footer",children:[c.jsxs("div",{className:"footer-meta",children:[c.jsxs("div",{className:"updated-line",children:[c.jsx(Qh,{size:14,"aria-hidden":"true"}),c.jsx("span",{"data-testid":"data-age",children:l?hm(l.generated_at,i):"Waiting for data"})]}),c.jsxs("div",{className:"spend-box",children:[c.jsxs("div",{className:"spend-row",children:[c.jsx("span",{className:"spend-label",children:"agy spend · 24 h"}),c.jsx("span",{className:"mono spend-amount",children:g.configured?`${g.committedEur.toFixed(2)} / ${g.capEur.toFixed(0)} EUR`:"no cap set"})]}),c.jsx("div",{className:"meter-track",role:"progressbar","aria-label":"agy spend","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(g.pct),children:c.jsx("div",{className:`meter-fill${g.pct>=80?" hot":""}`,style:{width:`${g.pct}%`}})})]}),j&&!m&&c.jsxs("div",{className:"quota-line mono","data-testid":"quota",children:["GitHub quota ",j.remaining," left (",j.account,")"]}),m&&c.jsxs("div",{className:"quota-low","data-testid":"quota-low",role:"status",children:["GitHub quota low: ",m.remaining," left (",m.account,")",m.resetAt?`, resets ${Ir(m.resetAt)}`:"",". Polling slows."]}),w&&c.jsxs("div",{className:"versions mono",children:[c.jsxs("span",{className:"versions-item",children:["hub ",w.hub]}),c.jsxs("span",{className:"versions-item",children:["pool ",w.pool??"-"]}),c.jsxs("span",{className:"versions-item",children:["plugin ",w.plugin??"-"]})]})]}),c.jsx("div",{className:"theme-switch",role:"group","aria-label":"Theme",children:Yg.map(E=>{const T=Zg[E];return c.jsxs("button",{type:"button",className:`theme-btn${a===E?" active":""}`,"aria-pressed":a===E,title:E,onClick:()=>d(E),children:[c.jsx(T,{size:15,"aria-hidden":"true"}),c.jsx("span",{children:E})]},E)})}),c.jsx("div",{className:"theme-switch",role:"group","aria-label":"Logo animation",children:qg.map(E=>{const T=Jg[E];return c.jsxs("button",{type:"button",className:`theme-btn${f===E?" active":""}`,"aria-pressed":f===E,title:E==="on"?"Animate the logo":"Stop the logo animation",onClick:()=>p(E),children:[c.jsx(T,{size:15,"aria-hidden":"true"}),c.jsx("span",{children:ey[E]})]},E)})})]})}const ny="/assets/mark-anim-DZa95SHo.webp",ry="/assets/mark-still-CcPgBc_-.png",oy="/assets/wordmark-CD0s2ofS.svg";function Xc(){return c.jsxs("span",{className:"brand-logo",children:[c.jsx("img",{src:ny,alt:"",width:36,height:36,className:"brand-mark brand-mark-anim"}),c.jsx("img",{src:ry,alt:"",width:36,height:36,className:"brand-mark brand-mark-still"}),c.jsxs("span",{className:"brand-stack",children:[c.jsx("img",{src:oy,alt:"CADDIS",width:100,height:20,className:"brand-wordmark"}),c.jsx("span",{className:"brand-sub",children:"hub"})]})]})}const ly=[["poster","Poster"],["details","Details"],["wall","Wall poster"],["map","Map"]];function sy(l,i){var f;return l.error||(f=l.github)!=null&&f.error?"blocked":i.sessions.some(p=>p.repo_path===l.path&&p.waiting_class==="owner")||l.coordinator&&i.sources.coordinator.stale?"attention":!l.coordinator&&!i.sessions.some(p=>p.repo_path===l.path)?"idle":"ok"}function Mr({href:l,active:i,icon:a,label:d,badge:f,onGo:p}){return c.jsx("li",{children:c.jsxs("a",{className:`nav-link${i?" active":""}`,href:l,"aria-current":i?"page":void 0,onClick:p,children:[c.jsxs("span",{className:"nav-link-left",children:[a,c.jsx("span",{className:"nav-text",children:d})]}),f]})})}function iy({route:l,state:i,inbox:a,open:d,onToggle:f,children:p}){const g=()=>f(!1);return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"mobile-topbar",children:[c.jsxs("button",{type:"button",className:"menu-btn","aria-label":"Open navigation menu","aria-expanded":d,"aria-controls":"app-sidebar",onClick:()=>f(!d),children:[d?c.jsx(cm,{size:18}):c.jsx(Xh,{size:18}),c.jsx("span",{children:"Menu"})]}),c.jsx(Xc,{})]}),c.jsx("div",{className:`drawer-backdrop${d?" open":""}`,onClick:g,"aria-hidden":"true"}),c.jsxs("aside",{className:`sidebar${d?" drawer-open":""}`,id:"app-sidebar",children:[c.jsxs("nav",{className:"sidebar-top","aria-label":"Main",children:[c.jsx("div",{className:"brand-row",children:c.jsx(Xc,{})}),c.jsxs("ul",{className:"nav-list",children:[c.jsx(Mr,{href:"#/inbox",active:l.page==="inbox",icon:c.jsx(bh,{size:18}),label:"Inbox",badge:a>0?c.jsx("span",{className:"inbox-badge",children:a}):void 0,onGo:g}),c.jsx(Mr,{href:"#/overview",active:l.page==="overview",icon:c.jsx(Gh,{size:18}),label:"Overview",onGo:g})]}),c.jsx("div",{className:"nav-section-label",children:"Repos"}),c.jsxs("ul",{className:"nav-list",children:[(i==null?void 0:i.repos.length)===0&&c.jsx("li",{className:"nav-empty",children:"No repos yet"}),i==null?void 0:i.repos.map(w=>{const m=ul(w),j=l.page==="repo"&&l.id===m;return c.jsx(Mr,{href:ll(m),active:j,icon:c.jsx("span",{className:`repo-dot ${sy(w,i)}`,"aria-hidden":"true"}),label:w.name,onGo:g},w.path)})]}),c.jsx("div",{className:"nav-section-label",children:"More"}),c.jsxs("ul",{className:"nav-list",children:[c.jsx(Mr,{href:"#/activity",active:l.page==="activity",icon:c.jsx(Fh,{size:18}),label:"Activity",onGo:g}),c.jsx(Mr,{href:"#/guide",active:l.page==="guide",icon:c.jsx(Wh,{size:18}),label:"caddis guide",onGo:g}),c.jsx("li",{children:c.jsx("ul",{className:"nav-sublist","aria-label":"caddis guide pages",children:ly.map(([w,m])=>{const j=l.page==="guide"&&l.tab===w;return c.jsx("li",{children:c.jsx("a",{className:`nav-link nav-sublink${j?" active":""}`,href:ig(w),"aria-current":j?"true":void 0,onClick:g,children:c.jsx("span",{className:"nav-text",children:m})})},w)})})})]})]}),p]})]})}const ay="/assets/favicon-DtHQyAC1.svg",uy="/assets/favicon-dot-DHAVYP15.svg",cy=l=>l?uy:ay;function dy(l){let i=document.querySelector('link[rel="icon"]');i||(i=document.createElement("link"),i.rel="icon",document.head.appendChild(i)),i.type="image/svg+xml",i.href=cy(l)}const fy=()=>{var l;return((l=window.matchMedia)==null?void 0:l.call(window,"(prefers-color-scheme: dark)").matches)??!0};function py(){const[l,i]=H.useState(()=>bg());return H.useEffect(()=>{const a=()=>{document.documentElement.dataset.theme=Xg(l,fy())};if(a(),l!=="system"||!window.matchMedia)return;const d=window.matchMedia("(prefers-color-scheme: dark)");return d.addEventListener("change",a),()=>d.removeEventListener("change",a)},[l]),[l,a=>{Gg(a),i(a)}]}function hy(){const[l,i]=H.useState(()=>Qg());return H.useEffect(()=>{document.documentElement.dataset.motion=l},[l]),[l,a=>{Kg(a),i(a)}]}const my=H.lazy(()=>ki(()=>import("./Guide-BUXTwb19.js"),__vite__mapDeps([0,1])).then(l=>({default:l.Guide}))),gy=H.lazy(()=>ki(()=>import("./Activity-D69HiVjS.js"),[]));function yy(l){const[i,a]=H.useState(()=>Date.now());return H.useEffect(()=>{const d=window.setInterval(()=>a(Date.now()),l);return()=>window.clearInterval(d)},[l]),i}function vy(){const[l,i]=H.useState(()=>window.location.hash);return H.useEffect(()=>{const a=()=>i(window.location.hash);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),lg(l)}function wy(){const{state:l,error:i,loading:a,refresh:d}=Hg(),f=Th(d),p=yy(5e3),g=vy(),[w,m]=py(),[j,E]=hy(),[T,C]=H.useState(!1),O=og(l,p),_=O.model.items.length;H.useEffect(()=>{document.title=pm(_),dy(_>0)},[_]);let F;if(i==="unauthorized")F=c.jsxs("div",{className:"notice","data-testid":"signin",children:[c.jsx("h1",{className:"page-title",children:"Signed out"}),c.jsxs("p",{children:["Run ",c.jsx("code",{className:"cmd",children:"caddis hub open"})," to sign in."]})]});else if(!l)F=c.jsx("p",{className:"page-subtitle",children:a?"Loading...":"The hub did not answer. Retrying."});else if(g.page==="inbox")F=c.jsx(eg,{state:l,nowMs:p,api:O,act:f});else if(g.page==="overview")F=c.jsx(wg,{state:l,nowMs:p,api:O,act:f});else if(g.page==="repo"){const M=l.repos.find(I=>ul(I)===g.id);F=M?c.jsx(Og,{state:l,repo:M,nowMs:p,act:f,tab:g.tab,roadmap:g.roadmap},g.id):c.jsxs("div",{className:"notice",children:[c.jsx("h1",{className:"page-title",children:g.id}),c.jsx("p",{children:"This repo is not in the hub registry."})]})}else g.page==="guide"?F=c.jsx(H.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(my,{guide:l.guide,versions:l.versions,tab:g.tab,item:g.item})}):F=c.jsx(H.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(gy,{state:l})});return c.jsxs("div",{className:"app-shell",children:[c.jsx(iy,{route:g,state:l,inbox:_,open:T,onToggle:C,children:c.jsx(ty,{state:l,nowMs:p,theme:w,onTheme:m,motion:j,onMotion:E})}),c.jsx("main",{className:"main-area",id:"main-content",children:c.jsxs("div",{className:"page-wrap",children:[l&&c.jsx(Vg,{state:l}),i==="network"&&l&&c.jsx("div",{className:"banner warn",role:"status",children:"The hub did not answer. Showing the last data."}),F]})})]})}Sh();const Zc=document.getElementById("root");Zc&&yh.createRoot(Zc).render(c.jsx(H.StrictMode,{children:c.jsx(wy,{})}));export{zy as A,xy as B,Om as C,kg as D,ky as N,jg as P,Et as T,Kn as a,ul as b,fe as c,Fr as d,sg as e,Dy as f,ig as g,$y as h,Nm as i,c as j,Ry as k,Qd as l,Ey as m,_y as n,jm as o,Cy as p,Ny as q,H as r,jy as s,Sy as t,Ty as u,Zd as v,Oy as w,Ir as x,Ly as y,Py as z};
|