@caddis/cli 0.4.95 → 0.4.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +2 -0
  2. package/bundles/antigravity-plugin/plugin.json +1 -1
  3. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
  4. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
  5. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
  6. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
  7. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
  8. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
  9. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
  10. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
  11. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
  12. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
  13. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
  14. package/bundles/antigravity-plugin/scripts/caddis_fleet.py +31 -21
  15. package/bundles/antigravity-plugin/scripts/caddis_gate.py +19 -2
  16. package/bundles/antigravity-plugin/scripts/caddis_guide.json +2 -2
  17. package/bundles/antigravity-plugin/scripts/caddis_hub_collect.py +51 -10
  18. package/bundles/antigravity-plugin/scripts/caddis_lanes.py +154 -130
  19. package/bundles/antigravity-plugin/scripts/caddis_todo.py +180 -3
  20. package/bundles/antigravity-plugin/scripts/schemas/hub-collect.schema.json +57 -0
  21. package/bundles/antigravity-plugin/scripts/schemas/hub-plans.schema.json +57 -0
  22. package/bundles/antigravity-plugin/scripts/setup_project_ai.py +13 -1
  23. package/bundles/antigravity-plugin/scripts/templates/coordinator.md +3 -3
  24. package/bundles/antigravity-plugin/skills/coordinate/SKILL.md +4 -1
  25. package/bundles/antigravity-plugin/skills/handoff/SKILL.md +21 -8
  26. package/bundles/manifest.json +2 -2
  27. package/dist/cli.js +214 -71
  28. package/dist/export/assets/{export-CMtV-slT.css → export-B5Lzo-9e.css} +1 -1
  29. package/dist/export/assets/{export-DtlDFN4L.js → export-PF4z_ff4.js} +29 -29
  30. package/dist/export/index.html +2 -2
  31. package/dist/ui/assets/{Activity-BDjet2xd.js → Activity-DN1XBfsH.js} +1 -1
  32. package/dist/ui/assets/{Guide-Czn5sK0f.js → Guide-D-lZVEKf.js} +1 -1
  33. package/dist/ui/assets/{RoadmapTab-Bd8geyQx.js → RoadmapTab-tqQd2sYq.js} +7 -7
  34. package/dist/ui/assets/{index-CmngQ8Mk.js → index-CWslZIzV.js} +44 -44
  35. package/dist/ui/assets/{index-Bd0Z4jR8.css → index-CwgRPpjT.css} +1 -1
  36. package/dist/ui/index.html +2 -2
  37. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RoadmapTab-Bd8geyQx.js","assets/time-D00tu2ZP.js","assets/Guide-Czn5sK0f.js","assets/Guide-D-Zy4cUT.css","assets/Activity-BDjet2xd.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RoadmapTab-tqQd2sYq.js","assets/time-D00tu2ZP.js","assets/Guide-D-lZVEKf.js","assets/Guide-D-Zy4cUT.css","assets/Activity-DN1XBfsH.js"])))=>i.map(i=>d[i]);
2
2
  var Zs={exports:{}},Lr={},Js={exports:{}},ee={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -7,7 +7,7 @@ var Zs={exports:{}},Lr={},Js={exports:{}},ee={};/**
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var mc;function bp(){if(mc)return ee;mc=1;var l=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),R=Symbol.iterator;function C(k){return k===null||typeof k!="object"?null:(k=R&&k[R]||k["@@iterator"],typeof k=="function"?k:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,V={};function A(k,T,b){this.props=k,this.context=T,this.refs=V,this.updater=b||D}A.prototype.isReactComponent={},A.prototype.setState=function(k,T){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,T,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function B(){}B.prototype=A.prototype;function ce(k,T,b){this.props=k,this.context=T,this.refs=V,this.updater=b||D}var Ee=ce.prototype=new B;Ee.constructor=ce,_(Ee,A.prototype),Ee.isPureReactComponent=!0;var O=Array.isArray,de=Object.prototype.hasOwnProperty,fe={current:null},Ne={key:!0,ref:!0,__self:!0,__source:!0};function G(k,T,b){var te,oe={},le=null,pe=null;if(T!=null)for(te in T.ref!==void 0&&(pe=T.ref),T.key!==void 0&&(le=""+T.key),T)de.call(T,te)&&!Ne.hasOwnProperty(te)&&(oe[te]=T[te]);var ie=arguments.length-2;if(ie===1)oe.children=b;else if(1<ie){for(var ye=Array(ie),Je=0;Je<ie;Je++)ye[Je]=arguments[Je+2];oe.children=ye}if(k&&k.defaultProps)for(te in ie=k.defaultProps,ie)oe[te]===void 0&&(oe[te]=ie[te]);return{$$typeof:l,type:k,key:le,ref:pe,props:oe,_owner:fe.current}}function ne(k,T){return{$$typeof:l,type:k.type,key:T,ref:k.ref,props:k.props,_owner:k._owner}}function Ce(k){return typeof k=="object"&&k!==null&&k.$$typeof===l}function wt(k){var T={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(b){return T[b]})}var Ve=/\/+/g;function Oe(k,T){return typeof k=="object"&&k!==null&&k.key!=null?wt(""+k.key):T.toString(36)}function dt(k,T,b,te,oe){var le=typeof k;(le==="undefined"||le==="boolean")&&(k=null);var pe=!1;if(k===null)pe=!0;else switch(le){case"string":case"number":pe=!0;break;case"object":switch(k.$$typeof){case l:case i:pe=!0}}if(pe)return pe=k,oe=oe(pe),k=te===""?"."+Oe(pe,0):te,O(oe)?(b="",k!=null&&(b=k.replace(Ve,"$&/")+"/"),dt(oe,T,b,"",function(Je){return Je})):oe!=null&&(Ce(oe)&&(oe=ne(oe,b+(!oe.key||pe&&pe.key===oe.key?"":(""+oe.key).replace(Ve,"$&/")+"/")+k)),T.push(oe)),1;if(pe=0,te=te===""?".":te+":",O(k))for(var ie=0;ie<k.length;ie++){le=k[ie];var ye=te+Oe(le,ie);pe+=dt(le,T,b,ye,oe)}else if(ye=C(k),typeof ye=="function")for(k=ye.call(k),ie=0;!(le=k.next()).done;)le=le.value,ye=te+Oe(le,ie++),pe+=dt(le,T,b,ye,oe);else if(le==="object")throw T=String(k),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.");return pe}function kt(k,T,b){if(k==null)return k;var te=[],oe=0;return dt(k,te,"","",function(le){return T.call(b,le,oe++)}),te}function qe(k){if(k._status===-1){var T=k._result;T=T(),T.then(function(b){(k._status===0||k._status===-1)&&(k._status=1,k._result=b)},function(b){(k._status===0||k._status===-1)&&(k._status=2,k._result=b)}),k._status===-1&&(k._status=0,k._result=T)}if(k._status===1)return k._result.default;throw k._result}var xe={current:null},M={transition:null},X={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:M,ReactCurrentOwner:fe};function U(){throw Error("act(...) is not supported in production builds of React.")}return ee.Children={map:kt,forEach:function(k,T,b){kt(k,function(){T.apply(this,arguments)},b)},count:function(k){var T=0;return kt(k,function(){T++}),T},toArray:function(k){return kt(k,function(T){return T})||[]},only:function(k){if(!Ce(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},ee.Component=A,ee.Fragment=a,ee.Profiler=f,ee.PureComponent=ce,ee.StrictMode=c,ee.Suspense=g,ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,ee.act=U,ee.cloneElement=function(k,T,b){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var te=_({},k.props),oe=k.key,le=k.ref,pe=k._owner;if(T!=null){if(T.ref!==void 0&&(le=T.ref,pe=fe.current),T.key!==void 0&&(oe=""+T.key),k.type&&k.type.defaultProps)var ie=k.type.defaultProps;for(ye in T)de.call(T,ye)&&!Ne.hasOwnProperty(ye)&&(te[ye]=T[ye]===void 0&&ie!==void 0?ie[ye]:T[ye])}var ye=arguments.length-2;if(ye===1)te.children=b;else if(1<ye){ie=Array(ye);for(var Je=0;Je<ye;Je++)ie[Je]=arguments[Je+2];te.children=ie}return{$$typeof:l,type:k.type,key:oe,ref:le,props:te,_owner:pe}},ee.createContext=function(k){return k={$$typeof:y,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:p,_context:k},k.Consumer=k},ee.createElement=G,ee.createFactory=function(k){var T=G.bind(null,k);return T.type=k,T},ee.createRef=function(){return{current:null}},ee.forwardRef=function(k){return{$$typeof:w,render:k}},ee.isValidElement=Ce,ee.lazy=function(k){return{$$typeof:j,_payload:{_status:-1,_result:k},_init:qe}},ee.memo=function(k,T){return{$$typeof:E,type:k,compare:T===void 0?null:T}},ee.startTransition=function(k){var T=M.transition;M.transition={};try{k()}finally{M.transition=T}},ee.unstable_act=U,ee.useCallback=function(k,T){return xe.current.useCallback(k,T)},ee.useContext=function(k){return xe.current.useContext(k)},ee.useDebugValue=function(){},ee.useDeferredValue=function(k){return xe.current.useDeferredValue(k)},ee.useEffect=function(k,T){return xe.current.useEffect(k,T)},ee.useId=function(){return xe.current.useId()},ee.useImperativeHandle=function(k,T,b){return xe.current.useImperativeHandle(k,T,b)},ee.useInsertionEffect=function(k,T){return xe.current.useInsertionEffect(k,T)},ee.useLayoutEffect=function(k,T){return xe.current.useLayoutEffect(k,T)},ee.useMemo=function(k,T){return xe.current.useMemo(k,T)},ee.useReducer=function(k,T,b){return xe.current.useReducer(k,T,b)},ee.useRef=function(k){return xe.current.useRef(k)},ee.useState=function(k){return xe.current.useState(k)},ee.useSyncExternalStore=function(k,T,b){return xe.current.useSyncExternalStore(k,T,b)},ee.useTransition=function(){return xe.current.useTransition()},ee.version="18.3.1",ee}var gc;function fi(){return gc||(gc=1,Js.exports=bp()),Js.exports}/**
10
+ */var mc;function eh(){if(mc)return ee;mc=1;var l=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),R=Symbol.iterator;function C(k){return k===null||typeof k!="object"?null:(k=R&&k[R]||k["@@iterator"],typeof k=="function"?k:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,V={};function A(k,P,b){this.props=k,this.context=P,this.refs=V,this.updater=b||D}A.prototype.isReactComponent={},A.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")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function B(){}B.prototype=A.prototype;function ce(k,P,b){this.props=k,this.context=P,this.refs=V,this.updater=b||D}var Ce=ce.prototype=new B;Ce.constructor=ce,_(Ce,A.prototype),Ce.isPureReactComponent=!0;var O=Array.isArray,de=Object.prototype.hasOwnProperty,fe={current:null},Ne={key:!0,ref:!0,__self:!0,__source:!0};function G(k,P,b){var te,oe={},le=null,pe=null;if(P!=null)for(te in P.ref!==void 0&&(pe=P.ref),P.key!==void 0&&(le=""+P.key),P)de.call(P,te)&&!Ne.hasOwnProperty(te)&&(oe[te]=P[te]);var ie=arguments.length-2;if(ie===1)oe.children=b;else if(1<ie){for(var ye=Array(ie),Je=0;Je<ie;Je++)ye[Je]=arguments[Je+2];oe.children=ye}if(k&&k.defaultProps)for(te in ie=k.defaultProps,ie)oe[te]===void 0&&(oe[te]=ie[te]);return{$$typeof:l,type:k,key:le,ref:pe,props:oe,_owner:fe.current}}function ne(k,P){return{$$typeof:l,type:k.type,key:P,ref:k.ref,props:k.props,_owner:k._owner}}function $e(k){return typeof k=="object"&&k!==null&&k.$$typeof===l}function wt(k){var P={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(b){return P[b]})}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,b,te,oe){var le=typeof k;(le==="undefined"||le==="boolean")&&(k=null);var pe=!1;if(k===null)pe=!0;else switch(le){case"string":case"number":pe=!0;break;case"object":switch(k.$$typeof){case l:case i:pe=!0}}if(pe)return pe=k,oe=oe(pe),k=te===""?"."+Oe(pe,0):te,O(oe)?(b="",k!=null&&(b=k.replace(Ve,"$&/")+"/"),dt(oe,P,b,"",function(Je){return Je})):oe!=null&&($e(oe)&&(oe=ne(oe,b+(!oe.key||pe&&pe.key===oe.key?"":(""+oe.key).replace(Ve,"$&/")+"/")+k)),P.push(oe)),1;if(pe=0,te=te===""?".":te+":",O(k))for(var ie=0;ie<k.length;ie++){le=k[ie];var ye=te+Oe(le,ie);pe+=dt(le,P,b,ye,oe)}else if(ye=C(k),typeof ye=="function")for(k=ye.call(k),ie=0;!(le=k.next()).done;)le=le.value,ye=te+Oe(le,ie++),pe+=dt(le,P,b,ye,oe);else if(le==="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 pe}function kt(k,P,b){if(k==null)return k;var te=[],oe=0;return dt(k,te,"","",function(le){return P.call(b,le,oe++)}),te}function qe(k){if(k._status===-1){var P=k._result;P=P(),P.then(function(b){(k._status===0||k._status===-1)&&(k._status=1,k._result=b)},function(b){(k._status===0||k._status===-1)&&(k._status=2,k._result=b)}),k._status===-1&&(k._status=0,k._result=P)}if(k._status===1)return k._result.default;throw k._result}var xe={current:null},M={transition:null},X={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:M,ReactCurrentOwner:fe};function U(){throw Error("act(...) is not supported in production builds of React.")}return ee.Children={map:kt,forEach:function(k,P,b){kt(k,function(){P.apply(this,arguments)},b)},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(!$e(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},ee.Component=A,ee.Fragment=a,ee.Profiler=f,ee.PureComponent=ce,ee.StrictMode=c,ee.Suspense=g,ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,ee.act=U,ee.cloneElement=function(k,P,b){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var te=_({},k.props),oe=k.key,le=k.ref,pe=k._owner;if(P!=null){if(P.ref!==void 0&&(le=P.ref,pe=fe.current),P.key!==void 0&&(oe=""+P.key),k.type&&k.type.defaultProps)var ie=k.type.defaultProps;for(ye in P)de.call(P,ye)&&!Ne.hasOwnProperty(ye)&&(te[ye]=P[ye]===void 0&&ie!==void 0?ie[ye]:P[ye])}var ye=arguments.length-2;if(ye===1)te.children=b;else if(1<ye){ie=Array(ye);for(var Je=0;Je<ye;Je++)ie[Je]=arguments[Je+2];te.children=ie}return{$$typeof:l,type:k.type,key:oe,ref:le,props:te,_owner:pe}},ee.createContext=function(k){return k={$$typeof:y,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:p,_context:k},k.Consumer=k},ee.createElement=G,ee.createFactory=function(k){var P=G.bind(null,k);return P.type=k,P},ee.createRef=function(){return{current:null}},ee.forwardRef=function(k){return{$$typeof:w,render:k}},ee.isValidElement=$e,ee.lazy=function(k){return{$$typeof:j,_payload:{_status:-1,_result:k},_init:qe}},ee.memo=function(k,P){return{$$typeof:E,type:k,compare:P===void 0?null:P}},ee.startTransition=function(k){var P=M.transition;M.transition={};try{k()}finally{M.transition=P}},ee.unstable_act=U,ee.useCallback=function(k,P){return xe.current.useCallback(k,P)},ee.useContext=function(k){return xe.current.useContext(k)},ee.useDebugValue=function(){},ee.useDeferredValue=function(k){return xe.current.useDeferredValue(k)},ee.useEffect=function(k,P){return xe.current.useEffect(k,P)},ee.useId=function(){return xe.current.useId()},ee.useImperativeHandle=function(k,P,b){return xe.current.useImperativeHandle(k,P,b)},ee.useInsertionEffect=function(k,P){return xe.current.useInsertionEffect(k,P)},ee.useLayoutEffect=function(k,P){return xe.current.useLayoutEffect(k,P)},ee.useMemo=function(k,P){return xe.current.useMemo(k,P)},ee.useReducer=function(k,P,b){return xe.current.useReducer(k,P,b)},ee.useRef=function(k){return xe.current.useRef(k)},ee.useState=function(k){return xe.current.useState(k)},ee.useSyncExternalStore=function(k,P,b){return xe.current.useSyncExternalStore(k,P,b)},ee.useTransition=function(){return xe.current.useTransition()},ee.version="18.3.1",ee}var gc;function fi(){return gc||(gc=1,Js.exports=eh()),Js.exports}/**
11
11
  * @license React
12
12
  * react-jsx-runtime.production.min.js
13
13
  *
@@ -15,7 +15,7 @@ var Zs={exports:{}},Lr={},Js={exports:{}},ee={};/**
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var yc;function eh(){if(yc)return Lr;yc=1;var l=fi(),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=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 y(w,g,E){var j,R={},C=null,D=null;E!==void 0&&(C=""+E),g.key!==void 0&&(C=""+g.key),g.ref!==void 0&&(D=g.ref);for(j in g)c.call(g,j)&&!p.hasOwnProperty(j)&&(R[j]=g[j]);if(w&&w.defaultProps)for(j in g=w.defaultProps,g)R[j]===void 0&&(R[j]=g[j]);return{$$typeof:i,type:w,key:C,ref:D,props:R,_owner:f.current}}return Lr.Fragment=a,Lr.jsx=y,Lr.jsxs=y,Lr}var vc;function th(){return vc||(vc=1,Zs.exports=eh()),Zs.exports}var d=th(),Y=fi(),Xo={},bs={exports:{}},Ze={},ei={exports:{}},ti={};/**
18
+ */var yc;function th(){if(yc)return Lr;yc=1;var l=fi(),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=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 y(w,g,E){var j,R={},C=null,D=null;E!==void 0&&(C=""+E),g.key!==void 0&&(C=""+g.key),g.ref!==void 0&&(D=g.ref);for(j in g)c.call(g,j)&&!p.hasOwnProperty(j)&&(R[j]=g[j]);if(w&&w.defaultProps)for(j in g=w.defaultProps,g)R[j]===void 0&&(R[j]=g[j]);return{$$typeof:i,type:w,key:C,ref:D,props:R,_owner:f.current}}return Lr.Fragment=a,Lr.jsx=y,Lr.jsxs=y,Lr}var vc;function nh(){return vc||(vc=1,Zs.exports=th()),Zs.exports}var d=nh(),Y=fi(),Xo={},bs={exports:{}},Ze={},ei={exports:{}},ti={};/**
19
19
  * @license React
20
20
  * scheduler.production.min.js
21
21
  *
@@ -23,7 +23,7 @@ var Zs={exports:{}},Lr={},Js={exports:{}},ee={};/**
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var wc;function nh(){return wc||(wc=1,(function(l){function i(M,X){var U=M.length;M.push(X);e:for(;0<U;){var k=U-1>>>1,T=M[k];if(0<f(T,X))M[k]=X,M[U]=T,U=k;else break e}}function a(M){return M.length===0?null:M[0]}function c(M){if(M.length===0)return null;var X=M[0],U=M.pop();if(U!==X){M[0]=U;e:for(var k=0,T=M.length,b=T>>>1;k<b;){var te=2*(k+1)-1,oe=M[te],le=te+1,pe=M[le];if(0>f(oe,U))le<T&&0>f(pe,oe)?(M[k]=pe,M[le]=U,k=le):(M[k]=oe,M[te]=U,k=te);else if(le<T&&0>f(pe,U))M[k]=pe,M[le]=U,k=le;else break e}}return X}function f(M,X){var U=M.sortIndex-X.sortIndex;return U!==0?U:M.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;l.unstable_now=function(){return p.now()}}else{var y=Date,w=y.now();l.unstable_now=function(){return y.now()-w}}var g=[],E=[],j=1,R=null,C=3,D=!1,_=!1,V=!1,A=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ee(M){for(var X=a(E);X!==null;){if(X.callback===null)c(E);else if(X.startTime<=M)c(E),X.sortIndex=X.expirationTime,i(g,X);else break;X=a(E)}}function O(M){if(V=!1,Ee(M),!_)if(a(g)!==null)_=!0,qe(de);else{var X=a(E);X!==null&&xe(O,X.startTime-M)}}function de(M,X){_=!1,V&&(V=!1,B(G),G=-1),D=!0;var U=C;try{for(Ee(X),R=a(g);R!==null&&(!(R.expirationTime>X)||M&&!wt());){var k=R.callback;if(typeof k=="function"){R.callback=null,C=R.priorityLevel;var T=k(R.expirationTime<=X);X=l.unstable_now(),typeof T=="function"?R.callback=T:R===a(g)&&c(g),Ee(X)}else c(g);R=a(g)}if(R!==null)var b=!0;else{var te=a(E);te!==null&&xe(O,te.startTime-X),b=!1}return b}finally{R=null,C=U,D=!1}}var fe=!1,Ne=null,G=-1,ne=5,Ce=-1;function wt(){return!(l.unstable_now()-Ce<ne)}function Ve(){if(Ne!==null){var M=l.unstable_now();Ce=M;var X=!0;try{X=Ne(!0,M)}finally{X?Oe():(fe=!1,Ne=null)}}else fe=!1}var Oe;if(typeof ce=="function")Oe=function(){ce(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(){A(Ve,0)};function qe(M){Ne=M,fe||(fe=!0,Oe())}function xe(M,X){G=A(function(){M(l.unstable_now())},X)}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(M){M.callback=null},l.unstable_continueExecution=function(){_||D||(_=!0,qe(de))},l.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<M?Math.floor(1e3/M):5},l.unstable_getCurrentPriorityLevel=function(){return C},l.unstable_getFirstCallbackNode=function(){return a(g)},l.unstable_next=function(M){switch(C){case 1:case 2:case 3:var X=3;break;default:X=C}var U=C;C=X;try{return M()}finally{C=U}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(M,X){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var U=C;C=M;try{return X()}finally{C=U}},l.unstable_scheduleCallback=function(M,X,U){var k=l.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?k+U:k):U=k,M){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=U+T,M={id:j++,callback:X,priorityLevel:M,startTime:U,expirationTime:T,sortIndex:-1},U>k?(M.sortIndex=U,i(E,M),a(g)===null&&M===a(E)&&(V?(B(G),G=-1):V=!0,xe(O,U-k))):(M.sortIndex=T,i(g,M),_||D||(_=!0,qe(de))),M},l.unstable_shouldYield=wt,l.unstable_wrapCallback=function(M){var X=C;return function(){var U=C;C=X;try{return M.apply(this,arguments)}finally{C=U}}}})(ti)),ti}var kc;function rh(){return kc||(kc=1,ei.exports=nh()),ei.exports}/**
26
+ */var wc;function rh(){return wc||(wc=1,(function(l){function i(M,X){var U=M.length;M.push(X);e:for(;0<U;){var k=U-1>>>1,P=M[k];if(0<f(P,X))M[k]=X,M[U]=P,U=k;else break e}}function a(M){return M.length===0?null:M[0]}function c(M){if(M.length===0)return null;var X=M[0],U=M.pop();if(U!==X){M[0]=U;e:for(var k=0,P=M.length,b=P>>>1;k<b;){var te=2*(k+1)-1,oe=M[te],le=te+1,pe=M[le];if(0>f(oe,U))le<P&&0>f(pe,oe)?(M[k]=pe,M[le]=U,k=le):(M[k]=oe,M[te]=U,k=te);else if(le<P&&0>f(pe,U))M[k]=pe,M[le]=U,k=le;else break e}}return X}function f(M,X){var U=M.sortIndex-X.sortIndex;return U!==0?U:M.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;l.unstable_now=function(){return p.now()}}else{var y=Date,w=y.now();l.unstable_now=function(){return y.now()-w}}var g=[],E=[],j=1,R=null,C=3,D=!1,_=!1,V=!1,A=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ce(M){for(var X=a(E);X!==null;){if(X.callback===null)c(E);else if(X.startTime<=M)c(E),X.sortIndex=X.expirationTime,i(g,X);else break;X=a(E)}}function O(M){if(V=!1,Ce(M),!_)if(a(g)!==null)_=!0,qe(de);else{var X=a(E);X!==null&&xe(O,X.startTime-M)}}function de(M,X){_=!1,V&&(V=!1,B(G),G=-1),D=!0;var U=C;try{for(Ce(X),R=a(g);R!==null&&(!(R.expirationTime>X)||M&&!wt());){var k=R.callback;if(typeof k=="function"){R.callback=null,C=R.priorityLevel;var P=k(R.expirationTime<=X);X=l.unstable_now(),typeof P=="function"?R.callback=P:R===a(g)&&c(g),Ce(X)}else c(g);R=a(g)}if(R!==null)var b=!0;else{var te=a(E);te!==null&&xe(O,te.startTime-X),b=!1}return b}finally{R=null,C=U,D=!1}}var fe=!1,Ne=null,G=-1,ne=5,$e=-1;function wt(){return!(l.unstable_now()-$e<ne)}function Ve(){if(Ne!==null){var M=l.unstable_now();$e=M;var X=!0;try{X=Ne(!0,M)}finally{X?Oe():(fe=!1,Ne=null)}}else fe=!1}var Oe;if(typeof ce=="function")Oe=function(){ce(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(){A(Ve,0)};function qe(M){Ne=M,fe||(fe=!0,Oe())}function xe(M,X){G=A(function(){M(l.unstable_now())},X)}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(M){M.callback=null},l.unstable_continueExecution=function(){_||D||(_=!0,qe(de))},l.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<M?Math.floor(1e3/M):5},l.unstable_getCurrentPriorityLevel=function(){return C},l.unstable_getFirstCallbackNode=function(){return a(g)},l.unstable_next=function(M){switch(C){case 1:case 2:case 3:var X=3;break;default:X=C}var U=C;C=X;try{return M()}finally{C=U}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(M,X){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var U=C;C=M;try{return X()}finally{C=U}},l.unstable_scheduleCallback=function(M,X,U){var k=l.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?k+U:k):U=k,M){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=U+P,M={id:j++,callback:X,priorityLevel:M,startTime:U,expirationTime:P,sortIndex:-1},U>k?(M.sortIndex=U,i(E,M),a(g)===null&&M===a(E)&&(V?(B(G),G=-1):V=!0,xe(O,U-k))):(M.sortIndex=P,i(g,M),_||D||(_=!0,qe(de))),M},l.unstable_shouldYield=wt,l.unstable_wrapCallback=function(M){var X=C;return function(){var U=C;C=X;try{return M.apply(this,arguments)}finally{C=U}}}})(ti)),ti}var kc;function oh(){return kc||(kc=1,ei.exports=rh()),ei.exports}/**
27
27
  * @license React
28
28
  * react-dom.production.min.js
29
29
  *
@@ -31,34 +31,34 @@ var Zs={exports:{}},Lr={},Js={exports:{}},ee={};/**
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var xc;function oh(){if(xc)return Ze;xc=1;var l=fi(),i=rh();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 c=new Set,f={};function p(e,t){y(e,t),y(e+"Capture",t)}function y(e,t){for(f[e]=t,e=0;e<t.length;e++)c.add(t[e])}var w=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,E=/^[: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]*$/,j={},R={};function C(e){return g.call(R,e)?!0:g.call(j,e)?!1:E.test(e)?R[e]=!0:(j[e]=!0,!1)}function D(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"||D(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 V(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 A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){A[e]=new V(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];A[t]=new V(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){A[e]=new V(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){A[e]=new V(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){A[e]=new V(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){A[e]=new V(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){A[e]=new V(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){A[e]=new V(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){A[e]=new V(e,5,!1,e.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function ce(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(B,ce);A[t]=new V(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(B,ce);A[t]=new V(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(B,ce);A[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){A[e]=new V(e,1,!1,e.toLowerCase(),null,!1,!1)}),A.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){A[e]=new V(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ee(e,t,n,r){var o=A.hasOwnProperty(t)?A[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 O=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,de=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),Ce=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"),xe=Symbol.for("react.offscreen"),M=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=M&&e[M]||e["@@iterator"],typeof e=="function"?e:null)}var U=Object.assign,k;function T(e){if(k===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
34
+ */var xc;function lh(){if(xc)return Ze;xc=1;var l=fi(),i=oh();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 c=new Set,f={};function p(e,t){y(e,t),y(e+"Capture",t)}function y(e,t){for(f[e]=t,e=0;e<t.length;e++)c.add(t[e])}var w=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,E=/^[: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]*$/,j={},R={};function C(e){return g.call(R,e)?!0:g.call(j,e)?!1:E.test(e)?R[e]=!0:(j[e]=!0,!1)}function D(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"||D(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 V(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 A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){A[e]=new V(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];A[t]=new V(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){A[e]=new V(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){A[e]=new V(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){A[e]=new V(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){A[e]=new V(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){A[e]=new V(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){A[e]=new V(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){A[e]=new V(e,5,!1,e.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function ce(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(B,ce);A[t]=new V(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(B,ce);A[t]=new V(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(B,ce);A[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){A[e]=new V(e,1,!1,e.toLowerCase(),null,!1,!1)}),A.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){A[e]=new V(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ce(e,t,n,r){var o=A.hasOwnProperty(t)?A[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 O=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,de=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),$e=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"),xe=Symbol.for("react.offscreen"),M=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=M&&e[M]||e["@@iterator"],typeof e=="function"?e:null)}var U=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
35
  `+k+e}var b=!1;function te(e,t){if(!e||b)return"";b=!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
36
  `),s=r.stack.split(`
37
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 m=`
38
- `+o[u].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=u&&0<=h);break}}}finally{b=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?T(e):""}function oe(e){switch(e.tag){case 5:return T(e.type);case 16:return T("Lazy");case 13:return T("Suspense");case 19:return T("SuspenseList");case 0:case 2:case 15:return e=te(e.type,!1),e;case 11:return e=te(e.type.render,!1),e;case 1:return e=te(e.type,!0),e;default:return""}}function le(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 Ne:return"Fragment";case fe:return"Portal";case ne:return"Profiler";case G: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 Ce: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:le(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}function pe(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 le(t);case 8:return t===G?"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 ie(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=ye(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 Fr(e){e._valueTracker||(e._valueTracker=Je(e))}function xi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ur(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 ol(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Si(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ie(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 Ni(e,t){t=t.checked,t!=null&&Ee(e,"checked",t,!1)}function ll(e,t){Ni(e,t);var n=ie(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")?sl(e,t.type,n):t.hasOwnProperty("defaultValue")&&sl(e,t.type,ie(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _i(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 sl(e,t,n){(t!=="number"||Ur(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yn=Array.isArray;function xn(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=""+ie(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 il(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ji(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(Yn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ie(n)}}function Ei(e,t){var n=ie(t.value),r=ie(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 Ci(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $i(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 al(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$i(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hr,Ti=(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(Hr=Hr||document.createElement("div"),Hr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hr.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},nf=["Webkit","ms","Moz","O"];Object.keys(Xn).forEach(function(e){nf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xn[t]=Xn[e]})});function Pi(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 zi(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Pi(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var rf=U({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 ul(e,t){if(t){if(rf[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 cl(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 dl=null;function fl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pl=null,Sn=null,Nn=null;function Ri(e){if(e=vr(e)){if(typeof pl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=co(t),pl(e.stateNode,e.type,t))}}function Li(e){Sn?Nn?Nn.push(e):Nn=[e]:Sn=e}function Di(){if(Sn){var e=Sn,t=Nn;if(Nn=Sn=null,Ri(e),t)for(e=0;e<t.length;e++)Ri(t[e])}}function Oi(e,t){return e(t)}function Mi(){}var hl=!1;function Ii(e,t,n){if(hl)return e(t,n);hl=!0;try{return Oi(e,t,n)}finally{hl=!1,(Sn!==null||Nn!==null)&&(Mi(),Di())}}function Zn(e,t){var n=e.stateNode;if(n===null)return null;var r=co(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 ml=!1;if(w)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){ml=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{ml=!1}function of(e,t,n,r,o,s,u,h,m){var N=Array.prototype.slice.call(arguments,3);try{t.apply(n,N)}catch(P){this.onError(P)}}var bn=!1,Br=null,Wr=!1,gl=null,lf={onError:function(e){bn=!0,Br=e}};function sf(e,t,n,r,o,s,u,h,m){bn=!1,Br=null,of.apply(lf,arguments)}function af(e,t,n,r,o,s,u,h,m){if(sf.apply(this,arguments),bn){if(bn){var N=Br;bn=!1,Br=null}else throw Error(a(198));Wr||(Wr=!0,gl=N)}}function on(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 Ai(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 Fi(e){if(on(e)!==e)throw Error(a(188))}function uf(e){var t=e.alternate;if(!t){if(t=on(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 Fi(o),e;if(s===r)return Fi(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 Ui(e){return e=uf(e),e!==null?Hi(e):null}function Hi(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Hi(e);if(t!==null)return t;e=e.sibling}return null}var Bi=i.unstable_scheduleCallback,Wi=i.unstable_cancelCallback,cf=i.unstable_shouldYield,df=i.unstable_requestPaint,_e=i.unstable_now,ff=i.unstable_getCurrentPriorityLevel,yl=i.unstable_ImmediatePriority,Vi=i.unstable_UserBlockingPriority,Vr=i.unstable_NormalPriority,pf=i.unstable_LowPriority,qi=i.unstable_IdlePriority,qr=null,xt=null;function hf(e){if(xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(qr,e,void 0,(e.current.flags&128)===128)}catch{}}var ft=Math.clz32?Math.clz32:yf,mf=Math.log,gf=Math.LN2;function yf(e){return e>>>=0,e===0?32:31-(mf(e)/gf|0)|0}var Qr=64,Kr=4194304;function er(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 Yr(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=er(h):(s&=u,s!==0&&(r=er(s)))}else u=n&~o,u!==0?r=er(u):s!==0&&(r=er(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 vf(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 wf(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,m=o[u];m===-1?((h&n)===0||(h&r)!==0)&&(o[u]=vf(h,t)):m<=t&&(e.expiredLanes|=h),s&=~h}}function vl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Qi(){var e=Qr;return Qr<<=1,(Qr&4194240)===0&&(Qr=64),e}function wl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tr(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 kf(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 kl(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 ae=0;function Ki(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Yi,xl,Gi,Xi,Zi,Sl=!1,Gr=[],Mt=null,It=null,At=null,nr=new Map,rr=new Map,Ft=[],xf="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 Ji(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(t.pointerId)}}function or(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=vr(t),t!==null&&xl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Sf(e,t,n,r,o){switch(t){case"focusin":return Mt=or(Mt,e,t,n,r,o),!0;case"dragenter":return It=or(It,e,t,n,r,o),!0;case"mouseover":return At=or(At,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return nr.set(s,or(nr.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,rr.set(s,or(rr.get(s)||null,e,t,n,r,o)),!0}return!1}function bi(e){var t=ln(e.target);if(t!==null){var n=on(t);if(n!==null){if(t=n.tag,t===13){if(t=Ai(n),t!==null){e.blockedOn=t,Zi(e.priority,function(){Gi(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 Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_l(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dl=r,n.target.dispatchEvent(r),dl=null}else return t=vr(n),t!==null&&xl(t),e.blockedOn=n,!1;t.shift()}return!0}function ea(e,t,n){Xr(e)&&n.delete(t)}function Nf(){Sl=!1,Mt!==null&&Xr(Mt)&&(Mt=null),It!==null&&Xr(It)&&(It=null),At!==null&&Xr(At)&&(At=null),nr.forEach(ea),rr.forEach(ea)}function lr(e,t){e.blockedOn===t&&(e.blockedOn=null,Sl||(Sl=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Nf)))}function sr(e){function t(o){return lr(o,e)}if(0<Gr.length){lr(Gr[0],e);for(var n=1;n<Gr.length;n++){var r=Gr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mt!==null&&lr(Mt,e),It!==null&&lr(It,e),At!==null&&lr(At,e),nr.forEach(t),rr.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)bi(n),n.blockedOn===null&&Ft.shift()}var _n=O.ReactCurrentBatchConfig,Zr=!0;function _f(e,t,n,r){var o=ae,s=_n.transition;_n.transition=null;try{ae=1,Nl(e,t,n,r)}finally{ae=o,_n.transition=s}}function jf(e,t,n,r){var o=ae,s=_n.transition;_n.transition=null;try{ae=4,Nl(e,t,n,r)}finally{ae=o,_n.transition=s}}function Nl(e,t,n,r){if(Zr){var o=_l(e,t,n,r);if(o===null)Hl(e,t,r,Jr,n),Ji(e,r);else if(Sf(o,e,t,n,r))r.stopPropagation();else if(Ji(e,r),t&4&&-1<xf.indexOf(e)){for(;o!==null;){var s=vr(o);if(s!==null&&Yi(s),s=_l(e,t,n,r),s===null&&Hl(e,t,r,Jr,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Hl(e,t,r,null,n)}}var Jr=null;function _l(e,t,n,r){if(Jr=null,e=fl(r),e=ln(e),e!==null)if(t=on(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ai(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 Jr=e,null}function ta(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(ff()){case yl:return 1;case Vi:return 4;case Vr:case pf:return 16;case qi:return 536870912;default:return 16}default:return 16}}var Ut=null,jl=null,br=null;function na(){if(br)return br;var e,t=jl,n=t.length,r,o="value"in Ut?Ut.value:Ut.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 br=o.slice(e,1<r?1-r:void 0)}function eo(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 to(){return!0}function ra(){return!1}function be(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)?to:ra,this.isPropagationStopped=ra,this}return U(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=to)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=to)},persist:function(){},isPersistent:to}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},El=be(jn),ir=U({},jn,{view:0,detail:0}),Ef=be(ir),Cl,$l,ar,no=U({},ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pl,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!==ar&&(ar&&e.type==="mousemove"?(Cl=e.screenX-ar.screenX,$l=e.screenY-ar.screenY):$l=Cl=0,ar=e),Cl)},movementY:function(e){return"movementY"in e?e.movementY:$l}}),oa=be(no),Cf=U({},no,{dataTransfer:0}),$f=be(Cf),Tf=U({},ir,{relatedTarget:0}),Tl=be(Tf),Pf=U({},jn,{animationName:0,elapsedTime:0,pseudoElement:0}),zf=be(Pf),Rf=U({},jn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lf=be(Rf),Df=U({},jn,{data:0}),la=be(Df),Of={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mf={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"},If={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Af(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=If[e])?!!t[e]:!1}function Pl(){return Af}var Ff=U({},ir,{key:function(e){if(e.key){var t=Of[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pl,charCode:function(e){return e.type==="keypress"?eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Uf=be(Ff),Hf=U({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sa=be(Hf),Bf=U({},ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pl}),Wf=be(Bf),Vf=U({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),qf=be(Vf),Qf=U({},no,{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}),Kf=be(Qf),Yf=[9,13,27,32],zl=w&&"CompositionEvent"in window,ur=null;w&&"documentMode"in document&&(ur=document.documentMode);var Gf=w&&"TextEvent"in window&&!ur,ia=w&&(!zl||ur&&8<ur&&11>=ur),aa=" ",ua=!1;function ca(e,t){switch(e){case"keyup":return Yf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function da(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function Xf(e,t){switch(e){case"compositionend":return da(t);case"keypress":return t.which!==32?null:(ua=!0,aa);case"textInput":return e=t.data,e===aa&&ua?null:e;default:return null}}function Zf(e,t){if(En)return e==="compositionend"||!zl&&ca(e,t)?(e=na(),br=jl=Ut=null,En=!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 ia&&t.locale!=="ko"?null:t.data;default:return null}}var Jf={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 fa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jf[e.type]:t==="textarea"}function pa(e,t,n,r){Li(r),t=io(t,"onChange"),0<t.length&&(n=new El("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var cr=null,dr=null;function bf(e){za(e,0)}function ro(e){var t=zn(e);if(xi(t))return e}function ep(e,t){if(e==="change")return t}var ha=!1;if(w){var Rl;if(w){var Ll="oninput"in document;if(!Ll){var ma=document.createElement("div");ma.setAttribute("oninput","return;"),Ll=typeof ma.oninput=="function"}Rl=Ll}else Rl=!1;ha=Rl&&(!document.documentMode||9<document.documentMode)}function ga(){cr&&(cr.detachEvent("onpropertychange",ya),dr=cr=null)}function ya(e){if(e.propertyName==="value"&&ro(dr)){var t=[];pa(t,dr,e,fl(e)),Ii(bf,t)}}function tp(e,t,n){e==="focusin"?(ga(),cr=t,dr=n,cr.attachEvent("onpropertychange",ya)):e==="focusout"&&ga()}function np(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ro(dr)}function rp(e,t){if(e==="click")return ro(t)}function op(e,t){if(e==="input"||e==="change")return ro(t)}function lp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:lp;function fr(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(!g.call(t,o)||!pt(e[o],t[o]))return!1}return!0}function va(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wa(e,t){var n=va(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=va(n)}}function ka(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ka(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xa(){for(var e=window,t=Ur();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ur(e.document)}return t}function Dl(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 sp(e){var t=xa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ka(n.ownerDocument.documentElement,n)){if(r!==null&&Dl(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=wa(n,s);var u=wa(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 ip=w&&"documentMode"in document&&11>=document.documentMode,Cn=null,Ol=null,pr=null,Ml=!1;function Sa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ml||Cn==null||Cn!==Ur(r)||(r=Cn,"selectionStart"in r&&Dl(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}),pr&&fr(pr,r)||(pr=r,r=io(Ol,"onSelect"),0<r.length&&(t=new El("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cn)))}function oo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $n={animationend:oo("Animation","AnimationEnd"),animationiteration:oo("Animation","AnimationIteration"),animationstart:oo("Animation","AnimationStart"),transitionend:oo("Transition","TransitionEnd")},Il={},Na={};w&&(Na=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 lo(e){if(Il[e])return Il[e];if(!$n[e])return e;var t=$n[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Na)return Il[e]=t[n];return e}var _a=lo("animationend"),ja=lo("animationiteration"),Ea=lo("animationstart"),Ca=lo("transitionend"),$a=new Map,Ta="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 Ht(e,t){$a.set(e,t),p(t,[e])}for(var Al=0;Al<Ta.length;Al++){var Fl=Ta[Al],ap=Fl.toLowerCase(),up=Fl[0].toUpperCase()+Fl.slice(1);Ht(ap,"on"+up)}Ht(_a,"onAnimationEnd"),Ht(ja,"onAnimationIteration"),Ht(Ea,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Ca,"onTransitionEnd"),y("onMouseEnter",["mouseout","mouseover"]),y("onMouseLeave",["mouseout","mouseover"]),y("onPointerEnter",["pointerout","pointerover"]),y("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 hr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cp=new Set("cancel close invalid load scroll toggle".split(" ").concat(hr));function Pa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,af(r,t,void 0,e),e.currentTarget=null}function za(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],m=h.instance,N=h.currentTarget;if(h=h.listener,m!==s&&o.isPropagationStopped())break e;Pa(o,h,N),s=m}else for(u=0;u<r.length;u++){if(h=r[u],m=h.instance,N=h.currentTarget,h=h.listener,m!==s&&o.isPropagationStopped())break e;Pa(o,h,N),s=m}}}if(Wr)throw e=gl,Wr=!1,gl=null,e}function me(e,t){var n=t[Kl];n===void 0&&(n=t[Kl]=new Set);var r=e+"__bubble";n.has(r)||(Ra(t,e,2,!1),n.add(r))}function Ul(e,t,n){var r=0;t&&(r|=4),Ra(n,e,r,t)}var so="_reactListening"+Math.random().toString(36).slice(2);function mr(e){if(!e[so]){e[so]=!0,c.forEach(function(n){n!=="selectionchange"&&(cp.has(n)||Ul(n,!1,e),Ul(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[so]||(t[so]=!0,Ul("selectionchange",!1,t))}}function Ra(e,t,n,r){switch(ta(t)){case 1:var o=_f;break;case 4:o=jf;break;default:o=Nl}n=o.bind(null,t,n,e),o=void 0,!ml||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 Hl(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 m=u.tag;if((m===3||m===4)&&(m=u.stateNode.containerInfo,m===o||m.nodeType===8&&m.parentNode===o))return;u=u.return}for(;h!==null;){if(u=ln(h),u===null)return;if(m=u.tag,m===5||m===6){r=s=u;continue e}h=h.parentNode}}r=r.return}Ii(function(){var N=s,P=fl(n),z=[];e:{var $=$a.get(e);if($!==void 0){var I=El,H=e;switch(e){case"keypress":if(eo(n)===0)break e;case"keydown":case"keyup":I=Uf;break;case"focusin":H="focus",I=Tl;break;case"focusout":H="blur",I=Tl;break;case"beforeblur":case"afterblur":I=Tl;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":I=oa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=$f;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=Wf;break;case _a:case ja:case Ea:I=zf;break;case Ca:I=qf;break;case"scroll":I=Ef;break;case"wheel":I=Kf;break;case"copy":case"cut":case"paste":I=Lf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=sa}var W=(t&4)!==0,je=!W&&e==="scroll",x=W?$!==null?$+"Capture":null:$;W=[];for(var v=N,S;v!==null;){S=v;var L=S.stateNode;if(S.tag===5&&L!==null&&(S=L,x!==null&&(L=Zn(v,x),L!=null&&W.push(gr(v,L,S)))),je)break;v=v.return}0<W.length&&($=new I($,H,null,n,P),z.push({event:$,listeners:W}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",$&&n!==dl&&(H=n.relatedTarget||n.fromElement)&&(ln(H)||H[Ct]))break e;if((I||$)&&($=P.window===P?P:($=P.ownerDocument)?$.defaultView||$.parentWindow:window,I?(H=n.relatedTarget||n.toElement,I=N,H=H?ln(H):null,H!==null&&(je=on(H),H!==je||H.tag!==5&&H.tag!==6)&&(H=null)):(I=null,H=N),I!==H)){if(W=oa,L="onMouseLeave",x="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(W=sa,L="onPointerLeave",x="onPointerEnter",v="pointer"),je=I==null?$:zn(I),S=H==null?$:zn(H),$=new W(L,v+"leave",I,n,P),$.target=je,$.relatedTarget=S,L=null,ln(P)===N&&(W=new W(x,v+"enter",H,n,P),W.target=S,W.relatedTarget=je,L=W),je=L,I&&H)t:{for(W=I,x=H,v=0,S=W;S;S=Tn(S))v++;for(S=0,L=x;L;L=Tn(L))S++;for(;0<v-S;)W=Tn(W),v--;for(;0<S-v;)x=Tn(x),S--;for(;v--;){if(W===x||x!==null&&W===x.alternate)break t;W=Tn(W),x=Tn(x)}W=null}else W=null;I!==null&&La(z,$,I,W,!1),H!==null&&je!==null&&La(z,je,H,W,!0)}}e:{if($=N?zn(N):window,I=$.nodeName&&$.nodeName.toLowerCase(),I==="select"||I==="input"&&$.type==="file")var q=ep;else if(fa($))if(ha)q=op;else{q=np;var Q=tp}else(I=$.nodeName)&&I.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(q=rp);if(q&&(q=q(e,N))){pa(z,q,n,P);break e}Q&&Q(e,$,N),e==="focusout"&&(Q=$._wrapperState)&&Q.controlled&&$.type==="number"&&sl($,"number",$.value)}switch(Q=N?zn(N):window,e){case"focusin":(fa(Q)||Q.contentEditable==="true")&&(Cn=Q,Ol=N,pr=null);break;case"focusout":pr=Ol=Cn=null;break;case"mousedown":Ml=!0;break;case"contextmenu":case"mouseup":case"dragend":Ml=!1,Sa(z,n,P);break;case"selectionchange":if(ip)break;case"keydown":case"keyup":Sa(z,n,P)}var K;if(zl)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else En?ca(e,n)&&(Z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(ia&&n.locale!=="ko"&&(En||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&En&&(K=na()):(Ut=P,jl="value"in Ut?Ut.value:Ut.textContent,En=!0)),Q=io(N,Z),0<Q.length&&(Z=new la(Z,e,null,n,P),z.push({event:Z,listeners:Q}),K?Z.data=K:(K=da(n),K!==null&&(Z.data=K)))),(K=Gf?Xf(e,n):Zf(e,n))&&(N=io(N,"onBeforeInput"),0<N.length&&(P=new la("onBeforeInput","beforeinput",null,n,P),z.push({event:P,listeners:N}),P.data=K))}za(z,t)})}function gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function io(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(gr(e,s,o)),s=Zn(e,t),s!=null&&r.push(gr(e,s,o))),e=e.return}return r}function Tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function La(e,t,n,r,o){for(var s=t._reactName,u=[];n!==null&&n!==r;){var h=n,m=h.alternate,N=h.stateNode;if(m!==null&&m===r)break;h.tag===5&&N!==null&&(h=N,o?(m=Zn(n,s),m!=null&&u.unshift(gr(n,m,h))):o||(m=Zn(n,s),m!=null&&u.push(gr(n,m,h)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var dp=/\r\n?/g,fp=/\u0000|\uFFFD/g;function Da(e){return(typeof e=="string"?e:""+e).replace(dp,`
39
- `).replace(fp,"")}function ao(e,t,n){if(t=Da(t),Da(e)!==t&&n)throw Error(a(425))}function uo(){}var Bl=null,Wl=null;function Vl(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 ql=typeof setTimeout=="function"?setTimeout:void 0,pp=typeof clearTimeout=="function"?clearTimeout:void 0,Oa=typeof Promise=="function"?Promise:void 0,hp=typeof queueMicrotask=="function"?queueMicrotask:typeof Oa<"u"?function(e){return Oa.resolve(null).then(e).catch(mp)}:ql;function mp(e){setTimeout(function(){throw e})}function Ql(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),sr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);sr(t)}function Bt(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 Ma(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 Pn=Math.random().toString(36).slice(2),St="__reactFiber$"+Pn,yr="__reactProps$"+Pn,Ct="__reactContainer$"+Pn,Kl="__reactEvents$"+Pn,gp="__reactListeners$"+Pn,yp="__reactHandles$"+Pn;function ln(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ma(e);e!==null;){if(n=e[St])return n;e=Ma(e)}return t}e=n,n=e.parentNode}return null}function vr(e){return e=e[St]||e[Ct],!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 co(e){return e[yr]||null}var Yl=[],Rn=-1;function Wt(e){return{current:e}}function ge(e){0>Rn||(e.current=Yl[Rn],Yl[Rn]=null,Rn--)}function he(e,t){Rn++,Yl[Rn]=e.current,e.current=t}var Vt={},Ae=Wt(Vt),Qe=Wt(!1),sn=Vt;function Ln(e,t){var n=e.type.contextTypes;if(!n)return Vt;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 fo(){ge(Qe),ge(Ae)}function Ia(e,t,n){if(Ae.current!==Vt)throw Error(a(168));he(Ae,t),he(Qe,n)}function Aa(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,pe(e)||"Unknown",o));return U({},n,r)}function po(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vt,sn=Ae.current,he(Ae,e),he(Qe,Qe.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Aa(e,t,sn),r.__reactInternalMemoizedMergedChildContext=e,ge(Qe),ge(Ae),he(Ae,e)):ge(Qe),he(Qe,n)}var $t=null,ho=!1,Gl=!1;function Ua(e){$t===null?$t=[e]:$t.push(e)}function vp(e){ho=!0,Ua(e)}function qt(){if(!Gl&&$t!==null){Gl=!0;var e=0,t=ae;try{var n=$t;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$t=null,ho=!1}catch(o){throw $t!==null&&($t=$t.slice(e+1)),Bi(yl,qt),o}finally{ae=t,Gl=!1}}return null}var Dn=[],On=0,mo=null,go=0,ot=[],lt=0,an=null,Tt=1,Pt="";function un(e,t){Dn[On++]=go,Dn[On++]=mo,mo=e,go=t}function Ha(e,t,n){ot[lt++]=Tt,ot[lt++]=Pt,ot[lt++]=an,an=e;var r=Tt;e=Pt;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,Tt=1<<32-ft(t)+o|n<<o|r,Pt=s+e}else Tt=1<<s|n<<o|r,Pt=e}function Xl(e){e.return!==null&&(un(e,1),Ha(e,1,0))}function Zl(e){for(;e===mo;)mo=Dn[--On],Dn[On]=null,go=Dn[--On],Dn[On]=null;for(;e===an;)an=ot[--lt],ot[lt]=null,Pt=ot[--lt],ot[lt]=null,Tt=ot[--lt],ot[lt]=null}var et=null,tt=null,ve=!1,ht=null;function Ba(e,t){var n=ut(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 Wa(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,et=e,tt=Bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,et=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=an!==null?{id:Tt,overflow:Pt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,et=e,tt=null,!0):!1;default:return!1}}function Jl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bl(e){if(ve){var t=tt;if(t){var n=t;if(!Wa(e,t)){if(Jl(e))throw Error(a(418));t=Bt(n.nextSibling);var r=et;t&&Wa(e,t)?Ba(r,n):(e.flags=e.flags&-4097|2,ve=!1,et=e)}}else{if(Jl(e))throw Error(a(418));e.flags=e.flags&-4097|2,ve=!1,et=e}}}function Va(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;et=e}function yo(e){if(e!==et)return!1;if(!ve)return Va(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vl(e.type,e.memoizedProps)),t&&(t=tt)){if(Jl(e))throw qa(),Error(a(418));for(;t;)Ba(e,t),t=Bt(t.nextSibling)}if(Va(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){tt=Bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}tt=null}}else tt=et?Bt(e.stateNode.nextSibling):null;return!0}function qa(){for(var e=tt;e;)e=Bt(e.nextSibling)}function Mn(){tt=et=null,ve=!1}function es(e){ht===null?ht=[e]:ht.push(e)}var wp=O.ReactCurrentBatchConfig;function wr(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 vo(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){var t=e._init;return t(e._payload)}function Ka(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=bt(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,L){return v===null||v.tag!==6?(v=qs(S,x.mode,L),v.return=x,v):(v=o(v,S),v.return=x,v)}function m(x,v,S,L){var q=S.type;return q===Ne?P(x,v,S.props.children,L,S.key):v!==null&&(v.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===qe&&Qa(q)===v.type)?(L=o(v,S.props),L.ref=wr(x,v,S),L.return=x,L):(L=Bo(S.type,S.key,S.props,null,x.mode,L),L.ref=wr(x,v,S),L.return=x,L)}function N(x,v,S,L){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Qs(S,x.mode,L),v.return=x,v):(v=o(v,S.children||[]),v.return=x,v)}function P(x,v,S,L,q){return v===null||v.tag!==7?(v=yn(S,x.mode,L,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=qs(""+v,x.mode,S),v.return=x,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case de:return S=Bo(v.type,v.key,v.props,null,x.mode,S),S.ref=wr(x,null,v),S.return=x,S;case fe:return v=Qs(v,x.mode,S),v.return=x,v;case qe:var L=v._init;return z(x,L(v._payload),S)}if(Yn(v)||X(v))return v=yn(v,x.mode,S,null),v.return=x,v;vo(x,v)}return null}function $(x,v,S,L){var q=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return q!==null?null:h(x,v,""+S,L);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case de:return S.key===q?m(x,v,S,L):null;case fe:return S.key===q?N(x,v,S,L):null;case qe:return q=S._init,$(x,v,q(S._payload),L)}if(Yn(S)||X(S))return q!==null?null:P(x,v,S,L,null);vo(x,S)}return null}function I(x,v,S,L,q){if(typeof L=="string"&&L!==""||typeof L=="number")return x=x.get(S)||null,h(v,x,""+L,q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case de:return x=x.get(L.key===null?S:L.key)||null,m(v,x,L,q);case fe:return x=x.get(L.key===null?S:L.key)||null,N(v,x,L,q);case qe:var Q=L._init;return I(x,v,S,Q(L._payload),q)}if(Yn(L)||X(L))return x=x.get(S)||null,P(v,x,L,q,null);vo(v,L)}return null}function H(x,v,S,L){for(var q=null,Q=null,K=v,Z=v=0,De=null;K!==null&&Z<S.length;Z++){K.index>Z?(De=K,K=null):De=K.sibling;var se=$(x,K,S[Z],L);if(se===null){K===null&&(K=De);break}e&&K&&se.alternate===null&&t(x,K),v=s(se,v,Z),Q===null?q=se:Q.sibling=se,Q=se,K=De}if(Z===S.length)return n(x,K),ve&&un(x,Z),q;if(K===null){for(;Z<S.length;Z++)K=z(x,S[Z],L),K!==null&&(v=s(K,v,Z),Q===null?q=K:Q.sibling=K,Q=K);return ve&&un(x,Z),q}for(K=r(x,K);Z<S.length;Z++)De=I(K,x,Z,S[Z],L),De!==null&&(e&&De.alternate!==null&&K.delete(De.key===null?Z:De.key),v=s(De,v,Z),Q===null?q=De:Q.sibling=De,Q=De);return e&&K.forEach(function(en){return t(x,en)}),ve&&un(x,Z),q}function W(x,v,S,L){var q=X(S);if(typeof q!="function")throw Error(a(150));if(S=q.call(S),S==null)throw Error(a(151));for(var Q=q=null,K=v,Z=v=0,De=null,se=S.next();K!==null&&!se.done;Z++,se=S.next()){K.index>Z?(De=K,K=null):De=K.sibling;var en=$(x,K,se.value,L);if(en===null){K===null&&(K=De);break}e&&K&&en.alternate===null&&t(x,K),v=s(en,v,Z),Q===null?q=en:Q.sibling=en,Q=en,K=De}if(se.done)return n(x,K),ve&&un(x,Z),q;if(K===null){for(;!se.done;Z++,se=S.next())se=z(x,se.value,L),se!==null&&(v=s(se,v,Z),Q===null?q=se:Q.sibling=se,Q=se);return ve&&un(x,Z),q}for(K=r(x,K);!se.done;Z++,se=S.next())se=I(K,x,Z,se.value,L),se!==null&&(e&&se.alternate!==null&&K.delete(se.key===null?Z:se.key),v=s(se,v,Z),Q===null?q=se:Q.sibling=se,Q=se);return e&&K.forEach(function(Jp){return t(x,Jp)}),ve&&un(x,Z),q}function je(x,v,S,L){if(typeof S=="object"&&S!==null&&S.type===Ne&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case de:e:{for(var q=S.key,Q=v;Q!==null;){if(Q.key===q){if(q=S.type,q===Ne){if(Q.tag===7){n(x,Q.sibling),v=o(Q,S.props.children),v.return=x,x=v;break e}}else if(Q.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===qe&&Qa(q)===Q.type){n(x,Q.sibling),v=o(Q,S.props),v.ref=wr(x,Q,S),v.return=x,x=v;break e}n(x,Q);break}else t(x,Q);Q=Q.sibling}S.type===Ne?(v=yn(S.props.children,x.mode,L,S.key),v.return=x,x=v):(L=Bo(S.type,S.key,S.props,null,x.mode,L),L.ref=wr(x,v,S),L.return=x,x=L)}return u(x);case fe:e:{for(Q=S.key;v!==null;){if(v.key===Q)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=Qs(S,x.mode,L),v.return=x,x=v}return u(x);case qe:return Q=S._init,je(x,v,Q(S._payload),L)}if(Yn(S))return H(x,v,S,L);if(X(S))return W(x,v,S,L);vo(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=qs(S,x.mode,L),v.return=x,x=v),u(x)):n(x,v)}return je}var In=Ka(!0),Ya=Ka(!1),wo=Wt(null),ko=null,An=null,ts=null;function ns(){ts=An=ko=null}function rs(e){var t=wo.current;ge(wo),e._currentValue=t}function os(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 Fn(e,t){ko=e,ts=An=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ye=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(ts!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(ko===null)throw Error(a(308));An=e,ko.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var cn=null;function ls(e){cn===null?cn=[e]:cn.push(e)}function Ga(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ls(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 Qt=!1;function ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xa(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 Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(re&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,ls(r)):(t.next=o.next,o.next=t),r.interleaved=t,zt(e,n)}function xo(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,kl(e,n)}}function Za(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 So(e,t,n,r){var o=e.updateQueue;Qt=!1;var s=o.firstBaseUpdate,u=o.lastBaseUpdate,h=o.shared.pending;if(h!==null){o.shared.pending=null;var m=h,N=m.next;m.next=null,u===null?s=N:u.next=N,u=m;var P=e.alternate;P!==null&&(P=P.updateQueue,h=P.lastBaseUpdate,h!==u&&(h===null?P.firstBaseUpdate=N:h.next=N,P.lastBaseUpdate=m))}if(s!==null){var z=o.baseState;u=0,P=N=m=null,h=s;do{var $=h.lane,I=h.eventTime;if((r&$)===$){P!==null&&(P=P.next={eventTime:I,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var H=e,W=h;switch($=t,I=n,W.tag){case 1:if(H=W.payload,typeof H=="function"){z=H.call(I,z,$);break e}z=H;break e;case 3:H.flags=H.flags&-65537|128;case 0:if(H=W.payload,$=typeof H=="function"?H.call(I,z,$):H,$==null)break e;z=U({},z,$);break e;case 2:Qt=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,$=o.effects,$===null?o.effects=[h]:$.push(h))}else I={eventTime:I,lane:$,tag:h.tag,payload:h.payload,callback:h.callback,next:null},P===null?(N=P=I,m=z):P=P.next=I,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(P===null&&(m=z),o.baseState=m,o.firstBaseUpdate=N,o.lastBaseUpdate=P,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);pn|=u,e.lanes=u,e.memoizedState=z}}function Ja(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 kr={},Nt=Wt(kr),xr=Wt(kr),Sr=Wt(kr);function dn(e){if(e===kr)throw Error(a(174));return e}function is(e,t){switch(he(Sr,t),he(xr,e),he(Nt,kr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:al(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=al(t,e)}ge(Nt),he(Nt,t)}function Un(){ge(Nt),ge(xr),ge(Sr)}function ba(e){dn(Sr.current);var t=dn(Nt.current),n=al(t,e.type);t!==n&&(he(xr,e),he(Nt,n))}function as(e){xr.current===e&&(ge(Nt),ge(xr))}var we=Wt(0);function No(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||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 us=[];function cs(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var _o=O.ReactCurrentDispatcher,ds=O.ReactCurrentBatchConfig,fn=0,ke=null,Te=null,Re=null,jo=!1,Nr=!1,_r=0,kp=0;function Fe(){throw Error(a(321))}function fs(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 ps(e,t,n,r,o,s){if(fn=s,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_o.current=e===null||e.memoizedState===null?_p:jp,e=n(r,o),Nr){s=0;do{if(Nr=!1,_r=0,25<=s)throw Error(a(301));s+=1,Re=Te=null,t.updateQueue=null,_o.current=Ep,e=n(r,o)}while(Nr)}if(_o.current=$o,t=Te!==null&&Te.next!==null,fn=0,Re=Te=ke=null,jo=!1,t)throw Error(a(300));return e}function hs(){var e=_r!==0;return _r=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?ke.memoizedState=Re=e:Re=Re.next=e,Re}function it(){if(Te===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Re===null?ke.memoizedState:Re.next;if(t!==null)Re=t,Te=e;else{if(e===null)throw Error(a(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Re===null?ke.memoizedState=Re=e:Re=Re.next=e}return Re}function jr(e,t){return typeof t=="function"?t(e):t}function ms(e){var t=it(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Te,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,m=null,N=s;do{var P=N.lane;if((fn&P)===P)m!==null&&(m=m.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:P,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};m===null?(h=m=z,u=r):m=m.next=z,ke.lanes|=P,pn|=P}N=N.next}while(N!==null&&N!==s);m===null?u=r:m.next=h,pt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=m,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,ke.lanes|=s,pn|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gs(e){var t=it(),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 eu(){}function tu(e,t){var n=ke,r=it(),o=t(),s=!pt(r.memoizedState,o);if(s&&(r.memoizedState=o,Ye=!0),r=r.queue,ys(ou.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,Er(9,ru.bind(null,n,r,o,t),void 0,null),Le===null)throw Error(a(349));(fn&30)!==0||nu(n,t,o)}return o}function nu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ru(e,t,n,r){t.value=n,t.getSnapshot=r,lu(t)&&su(e)}function ou(e,t,n){return n(function(){lu(t)&&su(e)})}function lu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pt(e,n)}catch{return!0}}function su(e){var t=zt(e,1);t!==null&&vt(t,e,1,-1)}function iu(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:jr,lastRenderedState:e},t.queue=e,e=e.dispatch=Np.bind(null,ke,e),[t.memoizedState,e]}function Er(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.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 au(){return it().memoizedState}function Eo(e,t,n,r){var o=_t();ke.flags|=e,o.memoizedState=Er(1|t,n,void 0,r===void 0?null:r)}function Co(e,t,n,r){var o=it();r=r===void 0?null:r;var s=void 0;if(Te!==null){var u=Te.memoizedState;if(s=u.destroy,r!==null&&fs(r,u.deps)){o.memoizedState=Er(t,n,s,r);return}}ke.flags|=e,o.memoizedState=Er(1|t,n,s,r)}function uu(e,t){return Eo(8390656,8,e,t)}function ys(e,t){return Co(2048,8,e,t)}function cu(e,t){return Co(4,2,e,t)}function du(e,t){return Co(4,4,e,t)}function fu(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 pu(e,t,n){return n=n!=null?n.concat([e]):null,Co(4,4,fu.bind(null,t,e),n)}function vs(){}function hu(e,t){var n=it();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mu(e,t){var n=it();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gu(e,t,n){return(fn&21)===0?(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n):(pt(n,t)||(n=Qi(),ke.lanes|=n,pn|=n,e.baseState=!0),t)}function xp(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{ae=n,ds.transition=r}}function yu(){return it().memoizedState}function Sp(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vu(e))wu(t,n);else if(n=Ga(e,t,n,r),n!==null){var o=We();vt(n,e,r,o),ku(n,t,r)}}function Np(e,t,n){var r=Zt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vu(e))wu(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 m=t.interleaved;m===null?(o.next=o,ls(t)):(o.next=m.next,m.next=o),t.interleaved=o;return}}catch{}finally{}n=Ga(e,t,o,r),n!==null&&(o=We(),vt(n,e,r,o),ku(n,t,r))}}function vu(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function wu(e,t){Nr=jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ku(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kl(e,n)}}var $o={readContext:st,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},_p={readContext:st,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4194308,4,fu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Eo(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=Sp.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:iu,useDebugValue:vs,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=iu(!1),t=e[0];return e=xp.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=_t();if(ve){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Le===null)throw Error(a(349));(fn&30)!==0||nu(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,uu(ou.bind(null,r,s,e),[e]),r.flags|=2048,Er(9,ru.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=_t(),t=Le.identifierPrefix;if(ve){var n=Pt,r=Tt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_r++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jp={readContext:st,useCallback:hu,useContext:st,useEffect:ys,useImperativeHandle:pu,useInsertionEffect:cu,useLayoutEffect:du,useMemo:mu,useReducer:ms,useRef:au,useState:function(){return ms(jr)},useDebugValue:vs,useDeferredValue:function(e){var t=it();return gu(t,Te.memoizedState,e)},useTransition:function(){var e=ms(jr)[0],t=it().memoizedState;return[e,t]},useMutableSource:eu,useSyncExternalStore:tu,useId:yu,unstable_isNewReconciler:!1},Ep={readContext:st,useCallback:hu,useContext:st,useEffect:ys,useImperativeHandle:pu,useInsertionEffect:cu,useLayoutEffect:du,useMemo:mu,useReducer:gs,useRef:au,useState:function(){return gs(jr)},useDebugValue:vs,useDeferredValue:function(e){var t=it();return Te===null?t.memoizedState=e:gu(t,Te.memoizedState,e)},useTransition:function(){var e=gs(jr)[0],t=it().memoizedState;return[e,t]},useMutableSource:eu,useSyncExternalStore:tu,useId:yu,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=U({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:U({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var To={isMounted:function(e){return(e=e._reactInternals)?on(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),s=Rt(r,o);s.payload=t,n!=null&&(s.callback=n),t=Kt(e,s,o),t!==null&&(vt(t,e,o,r),xo(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),s=Rt(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Kt(e,s,o),t!==null&&(vt(t,e,o,r),xo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=Zt(e),o=Rt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Kt(e,o,r),t!==null&&(vt(t,e,r,n),xo(t,e,r))}};function xu(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?!fr(n,r)||!fr(o,s):!0}function Su(e,t,n){var r=!1,o=Vt,s=t.contextType;return typeof s=="object"&&s!==null?s=st(s):(o=Ke(t)?sn:Ae.current,r=t.contextTypes,s=(r=r!=null)?Ln(e,o):Vt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=To,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Nu(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&&To.enqueueReplaceState(t,t.state,null)}function ks(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ss(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=st(s):(s=Ke(t)?sn:Ae.current,o.context=Ln(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ws(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&&To.enqueueReplaceState(o,o.state,null),So(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Hn(e,t){try{var n="",r=t;do n+=oe(r),r=r.return;while(r);var o=n}catch(s){o=`
38
+ `+o[u].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=u&&0<=h);break}}}finally{b=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?P(e):""}function oe(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=te(e.type,!1),e;case 11:return e=te(e.type.render,!1),e;case 1:return e=te(e.type,!0),e;default:return""}}function le(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 Ne:return"Fragment";case fe:return"Portal";case ne:return"Profiler";case G: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 $e: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:le(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}function pe(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 le(t);case 8:return t===G?"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 ie(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=ye(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 Fr(e){e._valueTracker||(e._valueTracker=Je(e))}function xi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ur(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 ol(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Si(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ie(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 Ni(e,t){t=t.checked,t!=null&&Ce(e,"checked",t,!1)}function ll(e,t){Ni(e,t);var n=ie(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")?sl(e,t.type,n):t.hasOwnProperty("defaultValue")&&sl(e,t.type,ie(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _i(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 sl(e,t,n){(t!=="number"||Ur(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yn=Array.isArray;function xn(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=""+ie(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 il(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ji(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(Yn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ie(n)}}function Ei(e,t){var n=ie(t.value),r=ie(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 Ci(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $i(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 al(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$i(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hr,Pi=(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(Hr=Hr||document.createElement("div"),Hr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hr.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},rf=["Webkit","ms","Moz","O"];Object.keys(Xn).forEach(function(e){rf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xn[t]=Xn[e]})});function Ti(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 zi(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ti(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var of=U({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 ul(e,t){if(t){if(of[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 cl(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 dl=null;function fl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pl=null,Sn=null,Nn=null;function Ri(e){if(e=vr(e)){if(typeof pl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=co(t),pl(e.stateNode,e.type,t))}}function Li(e){Sn?Nn?Nn.push(e):Nn=[e]:Sn=e}function Di(){if(Sn){var e=Sn,t=Nn;if(Nn=Sn=null,Ri(e),t)for(e=0;e<t.length;e++)Ri(t[e])}}function Oi(e,t){return e(t)}function Mi(){}var hl=!1;function Ii(e,t,n){if(hl)return e(t,n);hl=!0;try{return Oi(e,t,n)}finally{hl=!1,(Sn!==null||Nn!==null)&&(Mi(),Di())}}function Zn(e,t){var n=e.stateNode;if(n===null)return null;var r=co(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 ml=!1;if(w)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){ml=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{ml=!1}function lf(e,t,n,r,o,s,u,h,m){var N=Array.prototype.slice.call(arguments,3);try{t.apply(n,N)}catch(T){this.onError(T)}}var bn=!1,Br=null,Wr=!1,gl=null,sf={onError:function(e){bn=!0,Br=e}};function af(e,t,n,r,o,s,u,h,m){bn=!1,Br=null,lf.apply(sf,arguments)}function uf(e,t,n,r,o,s,u,h,m){if(af.apply(this,arguments),bn){if(bn){var N=Br;bn=!1,Br=null}else throw Error(a(198));Wr||(Wr=!0,gl=N)}}function on(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 Ai(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 Fi(e){if(on(e)!==e)throw Error(a(188))}function cf(e){var t=e.alternate;if(!t){if(t=on(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 Fi(o),e;if(s===r)return Fi(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 Ui(e){return e=cf(e),e!==null?Hi(e):null}function Hi(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Hi(e);if(t!==null)return t;e=e.sibling}return null}var Bi=i.unstable_scheduleCallback,Wi=i.unstable_cancelCallback,df=i.unstable_shouldYield,ff=i.unstable_requestPaint,_e=i.unstable_now,pf=i.unstable_getCurrentPriorityLevel,yl=i.unstable_ImmediatePriority,Vi=i.unstable_UserBlockingPriority,Vr=i.unstable_NormalPriority,hf=i.unstable_LowPriority,qi=i.unstable_IdlePriority,qr=null,xt=null;function mf(e){if(xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(qr,e,void 0,(e.current.flags&128)===128)}catch{}}var ft=Math.clz32?Math.clz32:vf,gf=Math.log,yf=Math.LN2;function vf(e){return e>>>=0,e===0?32:31-(gf(e)/yf|0)|0}var Qr=64,Kr=4194304;function er(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 Yr(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=er(h):(s&=u,s!==0&&(r=er(s)))}else u=n&~o,u!==0?r=er(u):s!==0&&(r=er(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 wf(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 kf(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,m=o[u];m===-1?((h&n)===0||(h&r)!==0)&&(o[u]=wf(h,t)):m<=t&&(e.expiredLanes|=h),s&=~h}}function vl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Qi(){var e=Qr;return Qr<<=1,(Qr&4194240)===0&&(Qr=64),e}function wl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tr(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 xf(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 kl(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 ae=0;function Ki(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Yi,xl,Gi,Xi,Zi,Sl=!1,Gr=[],Mt=null,It=null,At=null,nr=new Map,rr=new Map,Ft=[],Sf="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 Ji(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(t.pointerId)}}function or(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=vr(t),t!==null&&xl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Nf(e,t,n,r,o){switch(t){case"focusin":return Mt=or(Mt,e,t,n,r,o),!0;case"dragenter":return It=or(It,e,t,n,r,o),!0;case"mouseover":return At=or(At,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return nr.set(s,or(nr.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,rr.set(s,or(rr.get(s)||null,e,t,n,r,o)),!0}return!1}function bi(e){var t=ln(e.target);if(t!==null){var n=on(t);if(n!==null){if(t=n.tag,t===13){if(t=Ai(n),t!==null){e.blockedOn=t,Zi(e.priority,function(){Gi(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 Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_l(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dl=r,n.target.dispatchEvent(r),dl=null}else return t=vr(n),t!==null&&xl(t),e.blockedOn=n,!1;t.shift()}return!0}function ea(e,t,n){Xr(e)&&n.delete(t)}function _f(){Sl=!1,Mt!==null&&Xr(Mt)&&(Mt=null),It!==null&&Xr(It)&&(It=null),At!==null&&Xr(At)&&(At=null),nr.forEach(ea),rr.forEach(ea)}function lr(e,t){e.blockedOn===t&&(e.blockedOn=null,Sl||(Sl=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_f)))}function sr(e){function t(o){return lr(o,e)}if(0<Gr.length){lr(Gr[0],e);for(var n=1;n<Gr.length;n++){var r=Gr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mt!==null&&lr(Mt,e),It!==null&&lr(It,e),At!==null&&lr(At,e),nr.forEach(t),rr.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)bi(n),n.blockedOn===null&&Ft.shift()}var _n=O.ReactCurrentBatchConfig,Zr=!0;function jf(e,t,n,r){var o=ae,s=_n.transition;_n.transition=null;try{ae=1,Nl(e,t,n,r)}finally{ae=o,_n.transition=s}}function Ef(e,t,n,r){var o=ae,s=_n.transition;_n.transition=null;try{ae=4,Nl(e,t,n,r)}finally{ae=o,_n.transition=s}}function Nl(e,t,n,r){if(Zr){var o=_l(e,t,n,r);if(o===null)Hl(e,t,r,Jr,n),Ji(e,r);else if(Nf(o,e,t,n,r))r.stopPropagation();else if(Ji(e,r),t&4&&-1<Sf.indexOf(e)){for(;o!==null;){var s=vr(o);if(s!==null&&Yi(s),s=_l(e,t,n,r),s===null&&Hl(e,t,r,Jr,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Hl(e,t,r,null,n)}}var Jr=null;function _l(e,t,n,r){if(Jr=null,e=fl(r),e=ln(e),e!==null)if(t=on(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ai(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 Jr=e,null}function ta(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(pf()){case yl:return 1;case Vi:return 4;case Vr:case hf:return 16;case qi:return 536870912;default:return 16}default:return 16}}var Ut=null,jl=null,br=null;function na(){if(br)return br;var e,t=jl,n=t.length,r,o="value"in Ut?Ut.value:Ut.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 br=o.slice(e,1<r?1-r:void 0)}function eo(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 to(){return!0}function ra(){return!1}function be(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)?to:ra,this.isPropagationStopped=ra,this}return U(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=to)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=to)},persist:function(){},isPersistent:to}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},El=be(jn),ir=U({},jn,{view:0,detail:0}),Cf=be(ir),Cl,$l,ar,no=U({},ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tl,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!==ar&&(ar&&e.type==="mousemove"?(Cl=e.screenX-ar.screenX,$l=e.screenY-ar.screenY):$l=Cl=0,ar=e),Cl)},movementY:function(e){return"movementY"in e?e.movementY:$l}}),oa=be(no),$f=U({},no,{dataTransfer:0}),Pf=be($f),Tf=U({},ir,{relatedTarget:0}),Pl=be(Tf),zf=U({},jn,{animationName:0,elapsedTime:0,pseudoElement:0}),Rf=be(zf),Lf=U({},jn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Df=be(Lf),Of=U({},jn,{data:0}),la=be(Of),Mf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},If={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"},Af={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ff(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Af[e])?!!t[e]:!1}function Tl(){return Ff}var Uf=U({},ir,{key:function(e){if(e.key){var t=Mf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?If[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tl,charCode:function(e){return e.type==="keypress"?eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hf=be(Uf),Bf=U({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sa=be(Bf),Wf=U({},ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tl}),Vf=be(Wf),qf=U({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qf=be(qf),Kf=U({},no,{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}),Yf=be(Kf),Gf=[9,13,27,32],zl=w&&"CompositionEvent"in window,ur=null;w&&"documentMode"in document&&(ur=document.documentMode);var Xf=w&&"TextEvent"in window&&!ur,ia=w&&(!zl||ur&&8<ur&&11>=ur),aa=" ",ua=!1;function ca(e,t){switch(e){case"keyup":return Gf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function da(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function Zf(e,t){switch(e){case"compositionend":return da(t);case"keypress":return t.which!==32?null:(ua=!0,aa);case"textInput":return e=t.data,e===aa&&ua?null:e;default:return null}}function Jf(e,t){if(En)return e==="compositionend"||!zl&&ca(e,t)?(e=na(),br=jl=Ut=null,En=!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 ia&&t.locale!=="ko"?null:t.data;default:return null}}var bf={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 fa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bf[e.type]:t==="textarea"}function pa(e,t,n,r){Li(r),t=io(t,"onChange"),0<t.length&&(n=new El("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var cr=null,dr=null;function ep(e){za(e,0)}function ro(e){var t=zn(e);if(xi(t))return e}function tp(e,t){if(e==="change")return t}var ha=!1;if(w){var Rl;if(w){var Ll="oninput"in document;if(!Ll){var ma=document.createElement("div");ma.setAttribute("oninput","return;"),Ll=typeof ma.oninput=="function"}Rl=Ll}else Rl=!1;ha=Rl&&(!document.documentMode||9<document.documentMode)}function ga(){cr&&(cr.detachEvent("onpropertychange",ya),dr=cr=null)}function ya(e){if(e.propertyName==="value"&&ro(dr)){var t=[];pa(t,dr,e,fl(e)),Ii(ep,t)}}function np(e,t,n){e==="focusin"?(ga(),cr=t,dr=n,cr.attachEvent("onpropertychange",ya)):e==="focusout"&&ga()}function rp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ro(dr)}function op(e,t){if(e==="click")return ro(t)}function lp(e,t){if(e==="input"||e==="change")return ro(t)}function sp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:sp;function fr(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(!g.call(t,o)||!pt(e[o],t[o]))return!1}return!0}function va(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wa(e,t){var n=va(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=va(n)}}function ka(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ka(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xa(){for(var e=window,t=Ur();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ur(e.document)}return t}function Dl(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 ip(e){var t=xa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ka(n.ownerDocument.documentElement,n)){if(r!==null&&Dl(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=wa(n,s);var u=wa(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 ap=w&&"documentMode"in document&&11>=document.documentMode,Cn=null,Ol=null,pr=null,Ml=!1;function Sa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ml||Cn==null||Cn!==Ur(r)||(r=Cn,"selectionStart"in r&&Dl(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}),pr&&fr(pr,r)||(pr=r,r=io(Ol,"onSelect"),0<r.length&&(t=new El("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cn)))}function oo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $n={animationend:oo("Animation","AnimationEnd"),animationiteration:oo("Animation","AnimationIteration"),animationstart:oo("Animation","AnimationStart"),transitionend:oo("Transition","TransitionEnd")},Il={},Na={};w&&(Na=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 lo(e){if(Il[e])return Il[e];if(!$n[e])return e;var t=$n[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Na)return Il[e]=t[n];return e}var _a=lo("animationend"),ja=lo("animationiteration"),Ea=lo("animationstart"),Ca=lo("transitionend"),$a=new Map,Pa="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 Ht(e,t){$a.set(e,t),p(t,[e])}for(var Al=0;Al<Pa.length;Al++){var Fl=Pa[Al],up=Fl.toLowerCase(),cp=Fl[0].toUpperCase()+Fl.slice(1);Ht(up,"on"+cp)}Ht(_a,"onAnimationEnd"),Ht(ja,"onAnimationIteration"),Ht(Ea,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Ca,"onTransitionEnd"),y("onMouseEnter",["mouseout","mouseover"]),y("onMouseLeave",["mouseout","mouseover"]),y("onPointerEnter",["pointerout","pointerover"]),y("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 hr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),dp=new Set("cancel close invalid load scroll toggle".split(" ").concat(hr));function Ta(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uf(r,t,void 0,e),e.currentTarget=null}function za(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],m=h.instance,N=h.currentTarget;if(h=h.listener,m!==s&&o.isPropagationStopped())break e;Ta(o,h,N),s=m}else for(u=0;u<r.length;u++){if(h=r[u],m=h.instance,N=h.currentTarget,h=h.listener,m!==s&&o.isPropagationStopped())break e;Ta(o,h,N),s=m}}}if(Wr)throw e=gl,Wr=!1,gl=null,e}function me(e,t){var n=t[Kl];n===void 0&&(n=t[Kl]=new Set);var r=e+"__bubble";n.has(r)||(Ra(t,e,2,!1),n.add(r))}function Ul(e,t,n){var r=0;t&&(r|=4),Ra(n,e,r,t)}var so="_reactListening"+Math.random().toString(36).slice(2);function mr(e){if(!e[so]){e[so]=!0,c.forEach(function(n){n!=="selectionchange"&&(dp.has(n)||Ul(n,!1,e),Ul(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[so]||(t[so]=!0,Ul("selectionchange",!1,t))}}function Ra(e,t,n,r){switch(ta(t)){case 1:var o=jf;break;case 4:o=Ef;break;default:o=Nl}n=o.bind(null,t,n,e),o=void 0,!ml||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 Hl(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 m=u.tag;if((m===3||m===4)&&(m=u.stateNode.containerInfo,m===o||m.nodeType===8&&m.parentNode===o))return;u=u.return}for(;h!==null;){if(u=ln(h),u===null)return;if(m=u.tag,m===5||m===6){r=s=u;continue e}h=h.parentNode}}r=r.return}Ii(function(){var N=s,T=fl(n),z=[];e:{var $=$a.get(e);if($!==void 0){var I=El,H=e;switch(e){case"keypress":if(eo(n)===0)break e;case"keydown":case"keyup":I=Hf;break;case"focusin":H="focus",I=Pl;break;case"focusout":H="blur",I=Pl;break;case"beforeblur":case"afterblur":I=Pl;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":I=oa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=Pf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=Vf;break;case _a:case ja:case Ea:I=Rf;break;case Ca:I=Qf;break;case"scroll":I=Cf;break;case"wheel":I=Yf;break;case"copy":case"cut":case"paste":I=Df;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=sa}var W=(t&4)!==0,je=!W&&e==="scroll",x=W?$!==null?$+"Capture":null:$;W=[];for(var v=N,S;v!==null;){S=v;var L=S.stateNode;if(S.tag===5&&L!==null&&(S=L,x!==null&&(L=Zn(v,x),L!=null&&W.push(gr(v,L,S)))),je)break;v=v.return}0<W.length&&($=new I($,H,null,n,T),z.push({event:$,listeners:W}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",$&&n!==dl&&(H=n.relatedTarget||n.fromElement)&&(ln(H)||H[Ct]))break e;if((I||$)&&($=T.window===T?T:($=T.ownerDocument)?$.defaultView||$.parentWindow:window,I?(H=n.relatedTarget||n.toElement,I=N,H=H?ln(H):null,H!==null&&(je=on(H),H!==je||H.tag!==5&&H.tag!==6)&&(H=null)):(I=null,H=N),I!==H)){if(W=oa,L="onMouseLeave",x="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(W=sa,L="onPointerLeave",x="onPointerEnter",v="pointer"),je=I==null?$:zn(I),S=H==null?$:zn(H),$=new W(L,v+"leave",I,n,T),$.target=je,$.relatedTarget=S,L=null,ln(T)===N&&(W=new W(x,v+"enter",H,n,T),W.target=S,W.relatedTarget=je,L=W),je=L,I&&H)t:{for(W=I,x=H,v=0,S=W;S;S=Pn(S))v++;for(S=0,L=x;L;L=Pn(L))S++;for(;0<v-S;)W=Pn(W),v--;for(;0<S-v;)x=Pn(x),S--;for(;v--;){if(W===x||x!==null&&W===x.alternate)break t;W=Pn(W),x=Pn(x)}W=null}else W=null;I!==null&&La(z,$,I,W,!1),H!==null&&je!==null&&La(z,je,H,W,!0)}}e:{if($=N?zn(N):window,I=$.nodeName&&$.nodeName.toLowerCase(),I==="select"||I==="input"&&$.type==="file")var q=tp;else if(fa($))if(ha)q=lp;else{q=rp;var Q=np}else(I=$.nodeName)&&I.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(q=op);if(q&&(q=q(e,N))){pa(z,q,n,T);break e}Q&&Q(e,$,N),e==="focusout"&&(Q=$._wrapperState)&&Q.controlled&&$.type==="number"&&sl($,"number",$.value)}switch(Q=N?zn(N):window,e){case"focusin":(fa(Q)||Q.contentEditable==="true")&&(Cn=Q,Ol=N,pr=null);break;case"focusout":pr=Ol=Cn=null;break;case"mousedown":Ml=!0;break;case"contextmenu":case"mouseup":case"dragend":Ml=!1,Sa(z,n,T);break;case"selectionchange":if(ap)break;case"keydown":case"keyup":Sa(z,n,T)}var K;if(zl)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else En?ca(e,n)&&(Z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(ia&&n.locale!=="ko"&&(En||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&En&&(K=na()):(Ut=T,jl="value"in Ut?Ut.value:Ut.textContent,En=!0)),Q=io(N,Z),0<Q.length&&(Z=new la(Z,e,null,n,T),z.push({event:Z,listeners:Q}),K?Z.data=K:(K=da(n),K!==null&&(Z.data=K)))),(K=Xf?Zf(e,n):Jf(e,n))&&(N=io(N,"onBeforeInput"),0<N.length&&(T=new la("onBeforeInput","beforeinput",null,n,T),z.push({event:T,listeners:N}),T.data=K))}za(z,t)})}function gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function io(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(gr(e,s,o)),s=Zn(e,t),s!=null&&r.push(gr(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 La(e,t,n,r,o){for(var s=t._reactName,u=[];n!==null&&n!==r;){var h=n,m=h.alternate,N=h.stateNode;if(m!==null&&m===r)break;h.tag===5&&N!==null&&(h=N,o?(m=Zn(n,s),m!=null&&u.unshift(gr(n,m,h))):o||(m=Zn(n,s),m!=null&&u.push(gr(n,m,h)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var fp=/\r\n?/g,pp=/\u0000|\uFFFD/g;function Da(e){return(typeof e=="string"?e:""+e).replace(fp,`
39
+ `).replace(pp,"")}function ao(e,t,n){if(t=Da(t),Da(e)!==t&&n)throw Error(a(425))}function uo(){}var Bl=null,Wl=null;function Vl(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 ql=typeof setTimeout=="function"?setTimeout:void 0,hp=typeof clearTimeout=="function"?clearTimeout:void 0,Oa=typeof Promise=="function"?Promise:void 0,mp=typeof queueMicrotask=="function"?queueMicrotask:typeof Oa<"u"?function(e){return Oa.resolve(null).then(e).catch(gp)}:ql;function gp(e){setTimeout(function(){throw e})}function Ql(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),sr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);sr(t)}function Bt(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 Ma(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 Tn=Math.random().toString(36).slice(2),St="__reactFiber$"+Tn,yr="__reactProps$"+Tn,Ct="__reactContainer$"+Tn,Kl="__reactEvents$"+Tn,yp="__reactListeners$"+Tn,vp="__reactHandles$"+Tn;function ln(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ma(e);e!==null;){if(n=e[St])return n;e=Ma(e)}return t}e=n,n=e.parentNode}return null}function vr(e){return e=e[St]||e[Ct],!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 co(e){return e[yr]||null}var Yl=[],Rn=-1;function Wt(e){return{current:e}}function ge(e){0>Rn||(e.current=Yl[Rn],Yl[Rn]=null,Rn--)}function he(e,t){Rn++,Yl[Rn]=e.current,e.current=t}var Vt={},Ae=Wt(Vt),Qe=Wt(!1),sn=Vt;function Ln(e,t){var n=e.type.contextTypes;if(!n)return Vt;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 fo(){ge(Qe),ge(Ae)}function Ia(e,t,n){if(Ae.current!==Vt)throw Error(a(168));he(Ae,t),he(Qe,n)}function Aa(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,pe(e)||"Unknown",o));return U({},n,r)}function po(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vt,sn=Ae.current,he(Ae,e),he(Qe,Qe.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Aa(e,t,sn),r.__reactInternalMemoizedMergedChildContext=e,ge(Qe),ge(Ae),he(Ae,e)):ge(Qe),he(Qe,n)}var $t=null,ho=!1,Gl=!1;function Ua(e){$t===null?$t=[e]:$t.push(e)}function wp(e){ho=!0,Ua(e)}function qt(){if(!Gl&&$t!==null){Gl=!0;var e=0,t=ae;try{var n=$t;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$t=null,ho=!1}catch(o){throw $t!==null&&($t=$t.slice(e+1)),Bi(yl,qt),o}finally{ae=t,Gl=!1}}return null}var Dn=[],On=0,mo=null,go=0,lt=[],st=0,an=null,Pt=1,Tt="";function un(e,t){Dn[On++]=go,Dn[On++]=mo,mo=e,go=t}function Ha(e,t,n){lt[st++]=Pt,lt[st++]=Tt,lt[st++]=an,an=e;var r=Pt;e=Tt;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,Tt=s+e}else Pt=1<<s|n<<o|r,Tt=e}function Xl(e){e.return!==null&&(un(e,1),Ha(e,1,0))}function Zl(e){for(;e===mo;)mo=Dn[--On],Dn[On]=null,go=Dn[--On],Dn[On]=null;for(;e===an;)an=lt[--st],lt[st]=null,Tt=lt[--st],lt[st]=null,Pt=lt[--st],lt[st]=null}var et=null,tt=null,ve=!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 Wa(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,et=e,tt=Bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,et=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=an!==null?{id:Pt,overflow:Tt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,et=e,tt=null,!0):!1;default:return!1}}function Jl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bl(e){if(ve){var t=tt;if(t){var n=t;if(!Wa(e,t)){if(Jl(e))throw Error(a(418));t=Bt(n.nextSibling);var r=et;t&&Wa(e,t)?Ba(r,n):(e.flags=e.flags&-4097|2,ve=!1,et=e)}}else{if(Jl(e))throw Error(a(418));e.flags=e.flags&-4097|2,ve=!1,et=e}}}function Va(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;et=e}function yo(e){if(e!==et)return!1;if(!ve)return Va(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vl(e.type,e.memoizedProps)),t&&(t=tt)){if(Jl(e))throw qa(),Error(a(418));for(;t;)Ba(e,t),t=Bt(t.nextSibling)}if(Va(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){tt=Bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}tt=null}}else tt=et?Bt(e.stateNode.nextSibling):null;return!0}function qa(){for(var e=tt;e;)e=Bt(e.nextSibling)}function Mn(){tt=et=null,ve=!1}function es(e){ht===null?ht=[e]:ht.push(e)}var kp=O.ReactCurrentBatchConfig;function wr(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 vo(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){var t=e._init;return t(e._payload)}function Ka(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=bt(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,L){return v===null||v.tag!==6?(v=qs(S,x.mode,L),v.return=x,v):(v=o(v,S),v.return=x,v)}function m(x,v,S,L){var q=S.type;return q===Ne?T(x,v,S.props.children,L,S.key):v!==null&&(v.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===qe&&Qa(q)===v.type)?(L=o(v,S.props),L.ref=wr(x,v,S),L.return=x,L):(L=Bo(S.type,S.key,S.props,null,x.mode,L),L.ref=wr(x,v,S),L.return=x,L)}function N(x,v,S,L){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Qs(S,x.mode,L),v.return=x,v):(v=o(v,S.children||[]),v.return=x,v)}function T(x,v,S,L,q){return v===null||v.tag!==7?(v=yn(S,x.mode,L,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=qs(""+v,x.mode,S),v.return=x,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case de:return S=Bo(v.type,v.key,v.props,null,x.mode,S),S.ref=wr(x,null,v),S.return=x,S;case fe:return v=Qs(v,x.mode,S),v.return=x,v;case qe:var L=v._init;return z(x,L(v._payload),S)}if(Yn(v)||X(v))return v=yn(v,x.mode,S,null),v.return=x,v;vo(x,v)}return null}function $(x,v,S,L){var q=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return q!==null?null:h(x,v,""+S,L);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case de:return S.key===q?m(x,v,S,L):null;case fe:return S.key===q?N(x,v,S,L):null;case qe:return q=S._init,$(x,v,q(S._payload),L)}if(Yn(S)||X(S))return q!==null?null:T(x,v,S,L,null);vo(x,S)}return null}function I(x,v,S,L,q){if(typeof L=="string"&&L!==""||typeof L=="number")return x=x.get(S)||null,h(v,x,""+L,q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case de:return x=x.get(L.key===null?S:L.key)||null,m(v,x,L,q);case fe:return x=x.get(L.key===null?S:L.key)||null,N(v,x,L,q);case qe:var Q=L._init;return I(x,v,S,Q(L._payload),q)}if(Yn(L)||X(L))return x=x.get(S)||null,T(v,x,L,q,null);vo(v,L)}return null}function H(x,v,S,L){for(var q=null,Q=null,K=v,Z=v=0,De=null;K!==null&&Z<S.length;Z++){K.index>Z?(De=K,K=null):De=K.sibling;var se=$(x,K,S[Z],L);if(se===null){K===null&&(K=De);break}e&&K&&se.alternate===null&&t(x,K),v=s(se,v,Z),Q===null?q=se:Q.sibling=se,Q=se,K=De}if(Z===S.length)return n(x,K),ve&&un(x,Z),q;if(K===null){for(;Z<S.length;Z++)K=z(x,S[Z],L),K!==null&&(v=s(K,v,Z),Q===null?q=K:Q.sibling=K,Q=K);return ve&&un(x,Z),q}for(K=r(x,K);Z<S.length;Z++)De=I(K,x,Z,S[Z],L),De!==null&&(e&&De.alternate!==null&&K.delete(De.key===null?Z:De.key),v=s(De,v,Z),Q===null?q=De:Q.sibling=De,Q=De);return e&&K.forEach(function(en){return t(x,en)}),ve&&un(x,Z),q}function W(x,v,S,L){var q=X(S);if(typeof q!="function")throw Error(a(150));if(S=q.call(S),S==null)throw Error(a(151));for(var Q=q=null,K=v,Z=v=0,De=null,se=S.next();K!==null&&!se.done;Z++,se=S.next()){K.index>Z?(De=K,K=null):De=K.sibling;var en=$(x,K,se.value,L);if(en===null){K===null&&(K=De);break}e&&K&&en.alternate===null&&t(x,K),v=s(en,v,Z),Q===null?q=en:Q.sibling=en,Q=en,K=De}if(se.done)return n(x,K),ve&&un(x,Z),q;if(K===null){for(;!se.done;Z++,se=S.next())se=z(x,se.value,L),se!==null&&(v=s(se,v,Z),Q===null?q=se:Q.sibling=se,Q=se);return ve&&un(x,Z),q}for(K=r(x,K);!se.done;Z++,se=S.next())se=I(K,x,Z,se.value,L),se!==null&&(e&&se.alternate!==null&&K.delete(se.key===null?Z:se.key),v=s(se,v,Z),Q===null?q=se:Q.sibling=se,Q=se);return e&&K.forEach(function(bp){return t(x,bp)}),ve&&un(x,Z),q}function je(x,v,S,L){if(typeof S=="object"&&S!==null&&S.type===Ne&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case de:e:{for(var q=S.key,Q=v;Q!==null;){if(Q.key===q){if(q=S.type,q===Ne){if(Q.tag===7){n(x,Q.sibling),v=o(Q,S.props.children),v.return=x,x=v;break e}}else if(Q.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===qe&&Qa(q)===Q.type){n(x,Q.sibling),v=o(Q,S.props),v.ref=wr(x,Q,S),v.return=x,x=v;break e}n(x,Q);break}else t(x,Q);Q=Q.sibling}S.type===Ne?(v=yn(S.props.children,x.mode,L,S.key),v.return=x,x=v):(L=Bo(S.type,S.key,S.props,null,x.mode,L),L.ref=wr(x,v,S),L.return=x,x=L)}return u(x);case fe:e:{for(Q=S.key;v!==null;){if(v.key===Q)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=Qs(S,x.mode,L),v.return=x,x=v}return u(x);case qe:return Q=S._init,je(x,v,Q(S._payload),L)}if(Yn(S))return H(x,v,S,L);if(X(S))return W(x,v,S,L);vo(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=qs(S,x.mode,L),v.return=x,x=v),u(x)):n(x,v)}return je}var In=Ka(!0),Ya=Ka(!1),wo=Wt(null),ko=null,An=null,ts=null;function ns(){ts=An=ko=null}function rs(e){var t=wo.current;ge(wo),e._currentValue=t}function os(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 Fn(e,t){ko=e,ts=An=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(ts!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(ko===null)throw Error(a(308));An=e,ko.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var cn=null;function ls(e){cn===null?cn=[e]:cn.push(e)}function Ga(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ls(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 Qt=!1;function ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xa(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 Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(re&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,ls(r)):(t.next=o.next,o.next=t),r.interleaved=t,zt(e,n)}function xo(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,kl(e,n)}}function Za(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 So(e,t,n,r){var o=e.updateQueue;Qt=!1;var s=o.firstBaseUpdate,u=o.lastBaseUpdate,h=o.shared.pending;if(h!==null){o.shared.pending=null;var m=h,N=m.next;m.next=null,u===null?s=N:u.next=N,u=m;var T=e.alternate;T!==null&&(T=T.updateQueue,h=T.lastBaseUpdate,h!==u&&(h===null?T.firstBaseUpdate=N:h.next=N,T.lastBaseUpdate=m))}if(s!==null){var z=o.baseState;u=0,T=N=m=null,h=s;do{var $=h.lane,I=h.eventTime;if((r&$)===$){T!==null&&(T=T.next={eventTime:I,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var H=e,W=h;switch($=t,I=n,W.tag){case 1:if(H=W.payload,typeof H=="function"){z=H.call(I,z,$);break e}z=H;break e;case 3:H.flags=H.flags&-65537|128;case 0:if(H=W.payload,$=typeof H=="function"?H.call(I,z,$):H,$==null)break e;z=U({},z,$);break e;case 2:Qt=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,$=o.effects,$===null?o.effects=[h]:$.push(h))}else I={eventTime:I,lane:$,tag:h.tag,payload:h.payload,callback:h.callback,next:null},T===null?(N=T=I,m=z):T=T.next=I,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(T===null&&(m=z),o.baseState=m,o.firstBaseUpdate=N,o.lastBaseUpdate=T,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);pn|=u,e.lanes=u,e.memoizedState=z}}function Ja(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 kr={},Nt=Wt(kr),xr=Wt(kr),Sr=Wt(kr);function dn(e){if(e===kr)throw Error(a(174));return e}function is(e,t){switch(he(Sr,t),he(xr,e),he(Nt,kr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:al(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=al(t,e)}ge(Nt),he(Nt,t)}function Un(){ge(Nt),ge(xr),ge(Sr)}function ba(e){dn(Sr.current);var t=dn(Nt.current),n=al(t,e.type);t!==n&&(he(xr,e),he(Nt,n))}function as(e){xr.current===e&&(ge(Nt),ge(xr))}var we=Wt(0);function No(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||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 us=[];function cs(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var _o=O.ReactCurrentDispatcher,ds=O.ReactCurrentBatchConfig,fn=0,ke=null,Te=null,Re=null,jo=!1,Nr=!1,_r=0,xp=0;function Fe(){throw Error(a(321))}function fs(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 ps(e,t,n,r,o,s){if(fn=s,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_o.current=e===null||e.memoizedState===null?jp:Ep,e=n(r,o),Nr){s=0;do{if(Nr=!1,_r=0,25<=s)throw Error(a(301));s+=1,Re=Te=null,t.updateQueue=null,_o.current=Cp,e=n(r,o)}while(Nr)}if(_o.current=$o,t=Te!==null&&Te.next!==null,fn=0,Re=Te=ke=null,jo=!1,t)throw Error(a(300));return e}function hs(){var e=_r!==0;return _r=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?ke.memoizedState=Re=e:Re=Re.next=e,Re}function at(){if(Te===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Re===null?ke.memoizedState:Re.next;if(t!==null)Re=t,Te=e;else{if(e===null)throw Error(a(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Re===null?ke.memoizedState=Re=e:Re=Re.next=e}return Re}function jr(e,t){return typeof t=="function"?t(e):t}function ms(e){var t=at(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Te,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,m=null,N=s;do{var T=N.lane;if((fn&T)===T)m!==null&&(m=m.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:T,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};m===null?(h=m=z,u=r):m=m.next=z,ke.lanes|=T,pn|=T}N=N.next}while(N!==null&&N!==s);m===null?u=r:m.next=h,pt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=m,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,ke.lanes|=s,pn|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gs(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 eu(){}function tu(e,t){var n=ke,r=at(),o=t(),s=!pt(r.memoizedState,o);if(s&&(r.memoizedState=o,Ye=!0),r=r.queue,ys(ou.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,Er(9,ru.bind(null,n,r,o,t),void 0,null),Le===null)throw Error(a(349));(fn&30)!==0||nu(n,t,o)}return o}function nu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ru(e,t,n,r){t.value=n,t.getSnapshot=r,lu(t)&&su(e)}function ou(e,t,n){return n(function(){lu(t)&&su(e)})}function lu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pt(e,n)}catch{return!0}}function su(e){var t=zt(e,1);t!==null&&vt(t,e,1,-1)}function iu(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:jr,lastRenderedState:e},t.queue=e,e=e.dispatch=_p.bind(null,ke,e),[t.memoizedState,e]}function Er(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.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 au(){return at().memoizedState}function Eo(e,t,n,r){var o=_t();ke.flags|=e,o.memoizedState=Er(1|t,n,void 0,r===void 0?null:r)}function Co(e,t,n,r){var o=at();r=r===void 0?null:r;var s=void 0;if(Te!==null){var u=Te.memoizedState;if(s=u.destroy,r!==null&&fs(r,u.deps)){o.memoizedState=Er(t,n,s,r);return}}ke.flags|=e,o.memoizedState=Er(1|t,n,s,r)}function uu(e,t){return Eo(8390656,8,e,t)}function ys(e,t){return Co(2048,8,e,t)}function cu(e,t){return Co(4,2,e,t)}function du(e,t){return Co(4,4,e,t)}function fu(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 pu(e,t,n){return n=n!=null?n.concat([e]):null,Co(4,4,fu.bind(null,t,e),n)}function vs(){}function hu(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mu(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gu(e,t,n){return(fn&21)===0?(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n):(pt(n,t)||(n=Qi(),ke.lanes|=n,pn|=n,e.baseState=!0),t)}function Sp(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{ae=n,ds.transition=r}}function yu(){return at().memoizedState}function Np(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vu(e))wu(t,n);else if(n=Ga(e,t,n,r),n!==null){var o=We();vt(n,e,r,o),ku(n,t,r)}}function _p(e,t,n){var r=Zt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vu(e))wu(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 m=t.interleaved;m===null?(o.next=o,ls(t)):(o.next=m.next,m.next=o),t.interleaved=o;return}}catch{}finally{}n=Ga(e,t,o,r),n!==null&&(o=We(),vt(n,e,r,o),ku(n,t,r))}}function vu(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function wu(e,t){Nr=jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ku(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kl(e,n)}}var $o={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},jp={readContext:it,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4194308,4,fu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Eo(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=Np.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:iu,useDebugValue:vs,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=iu(!1),t=e[0];return e=Sp.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=_t();if(ve){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Le===null)throw Error(a(349));(fn&30)!==0||nu(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,uu(ou.bind(null,r,s,e),[e]),r.flags|=2048,Er(9,ru.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=_t(),t=Le.identifierPrefix;if(ve){var n=Tt,r=Pt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_r++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=xp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ep={readContext:it,useCallback:hu,useContext:it,useEffect:ys,useImperativeHandle:pu,useInsertionEffect:cu,useLayoutEffect:du,useMemo:mu,useReducer:ms,useRef:au,useState:function(){return ms(jr)},useDebugValue:vs,useDeferredValue:function(e){var t=at();return gu(t,Te.memoizedState,e)},useTransition:function(){var e=ms(jr)[0],t=at().memoizedState;return[e,t]},useMutableSource:eu,useSyncExternalStore:tu,useId:yu,unstable_isNewReconciler:!1},Cp={readContext:it,useCallback:hu,useContext:it,useEffect:ys,useImperativeHandle:pu,useInsertionEffect:cu,useLayoutEffect:du,useMemo:mu,useReducer:gs,useRef:au,useState:function(){return gs(jr)},useDebugValue:vs,useDeferredValue:function(e){var t=at();return Te===null?t.memoizedState=e:gu(t,Te.memoizedState,e)},useTransition:function(){var e=gs(jr)[0],t=at().memoizedState;return[e,t]},useMutableSource:eu,useSyncExternalStore:tu,useId:yu,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=U({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:U({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Po={isMounted:function(e){return(e=e._reactInternals)?on(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),s=Rt(r,o);s.payload=t,n!=null&&(s.callback=n),t=Kt(e,s,o),t!==null&&(vt(t,e,o,r),xo(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),s=Rt(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Kt(e,s,o),t!==null&&(vt(t,e,o,r),xo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=Zt(e),o=Rt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Kt(e,o,r),t!==null&&(vt(t,e,r,n),xo(t,e,r))}};function xu(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?!fr(n,r)||!fr(o,s):!0}function Su(e,t,n){var r=!1,o=Vt,s=t.contextType;return typeof s=="object"&&s!==null?s=it(s):(o=Ke(t)?sn:Ae.current,r=t.contextTypes,s=(r=r!=null)?Ln(e,o):Vt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Po,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Nu(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&&Po.enqueueReplaceState(t,t.state,null)}function ks(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ss(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=it(s):(s=Ke(t)?sn:Ae.current,o.context=Ln(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ws(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&&Po.enqueueReplaceState(o,o.state,null),So(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Hn(e,t){try{var n="",r=t;do n+=oe(r),r=r.return;while(r);var o=n}catch(s){o=`
40
40
  Error generating stack: `+s.message+`
41
- `+s.stack}return{value:e,source:t,stack:o,digest:null}}function xs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ss(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Cp=typeof WeakMap=="function"?WeakMap:Map;function _u(e,t,n){n=Rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mo||(Mo=!0,Is=r),Ss(e,t)},n}function ju(e,t,n){n=Rt(-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(){Ss(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ss(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 Eu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Cp;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=Hp.bind(null,e,t,n),t.then(e,e))}function Cu(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 $u(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=Rt(-1,1),t.tag=2,Kt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var $p=O.ReactCurrentOwner,Ye=!1;function Be(e,t,n,r){t.child=e===null?Ya(t,null,n,r):In(t,e.child,n,r)}function Tu(e,t,n,r,o){n=n.render;var s=t.ref;return Fn(t,o),r=ps(e,t,n,r,s,o),n=hs(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lt(e,t,o)):(ve&&n&&Xl(t),t.flags|=1,Be(e,t,r,o),t.child)}function Pu(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Vs(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,zu(e,t,s,r,o)):(e=Bo(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:fr,n(u,r)&&e.ref===t.ref)return Lt(e,t,o)}return t.flags|=1,e=bt(s,r),e.ref=t.ref,e.return=t,t.child=e}function zu(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(fr(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,Lt(e,t,o)}return Ns(e,t,n,r,o)}function Ru(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},he(Wn,nt),nt|=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,he(Wn,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,he(Wn,nt),nt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,he(Wn,nt),nt|=r;return Be(e,t,o,n),t.child}function Lu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ns(e,t,n,r,o){var s=Ke(n)?sn:Ae.current;return s=Ln(t,s),Fn(t,o),n=ps(e,t,n,r,s,o),r=hs(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lt(e,t,o)):(ve&&r&&Xl(t),t.flags|=1,Be(e,t,n,o),t.child)}function Du(e,t,n,r,o){if(Ke(n)){var s=!0;po(t)}else s=!1;if(Fn(t,o),t.stateNode===null)zo(e,t),Su(t,n,r),ks(t,n,r,o),r=!0;else if(e===null){var u=t.stateNode,h=t.memoizedProps;u.props=h;var m=u.context,N=n.contextType;typeof N=="object"&&N!==null?N=st(N):(N=Ke(n)?sn:Ae.current,N=Ln(t,N));var P=n.getDerivedStateFromProps,z=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function";z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==r||m!==N)&&Nu(t,u,r,N),Qt=!1;var $=t.memoizedState;u.state=$,So(t,r,u,o),m=t.memoizedState,h!==r||$!==m||Qe.current||Qt?(typeof P=="function"&&(ws(t,n,P,r),m=t.memoizedState),(h=Qt||xu(t,n,h,r,$,m,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=m),u.props=r,u.state=m,u.context=N,r=h):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Xa(e,t),h=t.memoizedProps,N=t.type===t.elementType?h:mt(t.type,h),u.props=N,z=t.pendingProps,$=u.context,m=n.contextType,typeof m=="object"&&m!==null?m=st(m):(m=Ke(n)?sn:Ae.current,m=Ln(t,m));var I=n.getDerivedStateFromProps;(P=typeof I=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==z||$!==m)&&Nu(t,u,r,m),Qt=!1,$=t.memoizedState,u.state=$,So(t,r,u,o);var H=t.memoizedState;h!==z||$!==H||Qe.current||Qt?(typeof I=="function"&&(ws(t,n,I,r),H=t.memoizedState),(N=Qt||xu(t,n,N,r,$,H,m)||!1)?(P||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,H,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,H,m)),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=H),u.props=r,u.state=H,u.context=m,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 _s(e,t,n,r,s,o)}function _s(e,t,n,r,o,s){Lu(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return o&&Fa(t,n,!1),Lt(e,t,s);r=t.stateNode,$p.current=t;var h=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=In(t,e.child,null,s),t.child=In(t,null,h,s)):Be(e,t,h,s),t.memoizedState=r.state,o&&Fa(t,n,!0),t.child}function Ou(e){var t=e.stateNode;t.pendingContext?Ia(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ia(e,t.context,!1),is(e,t.containerInfo)}function Mu(e,t,n,r,o){return Mn(),es(o),t.flags|=256,Be(e,t,n,r),t.child}var js={dehydrated:null,treeContext:null,retryLane:0};function Es(e){return{baseLanes:e,cachePool:null,transitions:null}}function Iu(e,t,n){var r=t.pendingProps,o=we.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),he(we,o&1),e===null)return bl(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=Wo(u,r,0,null),e=yn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Es(n),t.memoizedState=js,e):Cs(t,u));if(o=e.memoizedState,o!==null&&(h=o.dehydrated,h!==null))return Tp(e,t,u,r,h,o,n);if(s){s=r.fallback,u=t.mode,o=e.child,h=o.sibling;var m={mode:"hidden",children:r.children};return(u&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=m,t.deletions=null):(r=bt(o,m),r.subtreeFlags=o.subtreeFlags&14680064),h!==null?s=bt(h,s):(s=yn(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?Es(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=js,r}return s=e.child,e=s.sibling,r=bt(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 Cs(e,t){return t=Wo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Po(e,t,n,r){return r!==null&&es(r),In(t,e.child,null,n),e=Cs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tp(e,t,n,r,o,s,u){if(n)return t.flags&256?(t.flags&=-257,r=xs(Error(a(422))),Po(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Wo({mode:"visible",children:r.children},o,0,null),s=yn(s,o,u,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,(t.mode&1)!==0&&In(t,e.child,null,u),t.child.memoizedState=Es(u),t.memoizedState=js,s);if((t.mode&1)===0)return Po(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=xs(s,r,void 0),Po(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 Ws(),r=xs(Error(a(421))),Po(e,t,u,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Bp.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,tt=Bt(o.nextSibling),et=t,ve=!0,ht=null,e!==null&&(ot[lt++]=Tt,ot[lt++]=Pt,ot[lt++]=an,Tt=e.id,Pt=e.overflow,an=t),t=Cs(t,r.children),t.flags|=4096,t)}function Au(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),os(e.return,t,n)}function $s(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 Fu(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Be(e,t,r.children,n),r=we.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&&Au(e,n,t);else if(e.tag===19)Au(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(he(we,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&&No(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(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&&No(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,s);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pn|=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=bt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pp(e,t,n){switch(t.tag){case 3:Ou(t),Mn();break;case 5:ba(t);break;case 1:Ke(t.type)&&po(t);break;case 4:is(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;he(wo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(he(we,we.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Iu(e,t,n):(he(we,we.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);he(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Fu(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),he(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,Ru(e,t,n)}return Lt(e,t,n)}var Uu,Ts,Hu,Bu;Uu=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}},Ts=function(){},Hu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,dn(Nt.current);var s=null;switch(n){case"input":o=ol(e,o),r=ol(e,r),s=[];break;case"select":o=U({},o,{value:void 0}),r=U({},r,{value:void 0}),s=[];break;case"textarea":o=il(e,o),r=il(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=uo)}ul(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 m=r[N];if(h=o!=null?o[N]:void 0,r.hasOwnProperty(N)&&m!==h&&(m!=null||h!=null))if(N==="style")if(h){for(u in h)!h.hasOwnProperty(u)||m&&m.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in m)m.hasOwnProperty(u)&&h[u]!==m[u]&&(n||(n={}),n[u]=m[u])}else n||(s||(s=[]),s.push(N,n)),n=m;else N==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,h=h?h.__html:void 0,m!=null&&h!==m&&(s=s||[]).push(N,m)):N==="children"?typeof m!="string"&&typeof m!="number"||(s=s||[]).push(N,""+m):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(f.hasOwnProperty(N)?(m!=null&&N==="onScroll"&&me("scroll",e),s||h===m||(s=[])):(s=s||[]).push(N,m))}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 Cr(e,t){if(!ve)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 zp(e,t,n){var r=t.pendingProps;switch(Zl(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)&&fo(),Ue(t),null;case 3:return r=t.stateNode,Un(),ge(Qe),ge(Ae),cs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ht!==null&&(Us(ht),ht=null))),Ts(e,t),Ue(t),null;case 5:as(t);var o=dn(Sr.current);if(n=t.type,e!==null&&t.stateNode!=null)Hu(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=dn(Nt.current),yo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[St]=t,r[yr]=s,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(o=0;o<hr.length;o++)me(hr[o],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":Si(r,s),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},me("invalid",r);break;case"textarea":ji(r,s),me("invalid",r)}ul(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&&ao(r.textContent,h,e),o=["children",h]):typeof h=="number"&&r.textContent!==""+h&&(s.suppressHydrationWarning!==!0&&ao(r.textContent,h,e),o=["children",""+h]):f.hasOwnProperty(u)&&h!=null&&u==="onScroll"&&me("scroll",r)}switch(n){case"input":Fr(r),_i(r,s,!0);break;case"textarea":Fr(r),Ci(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=uo)}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=$i(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[yr]=r,Uu(e,t,!1,!1),t.stateNode=e;e:{switch(u=cl(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;o<hr.length;o++)me(hr[o],e);o=r;break;case"source":me("error",e),o=r;break;case"img":case"image":case"link":me("error",e),me("load",e),o=r;break;case"details":me("toggle",e),o=r;break;case"input":Si(e,r),o=ol(e,r),me("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=U({},r,{value:void 0}),me("invalid",e);break;case"textarea":ji(e,r),o=il(e,r),me("invalid",e);break;default:o=r}ul(n,o),h=o;for(s in h)if(h.hasOwnProperty(s)){var m=h[s];s==="style"?zi(e,m):s==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,m!=null&&Ti(e,m)):s==="children"?typeof m=="string"?(n!=="textarea"||m!=="")&&Gn(e,m):typeof m=="number"&&Gn(e,""+m):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(f.hasOwnProperty(s)?m!=null&&s==="onScroll"&&me("scroll",e):m!=null&&Ee(e,s,m,u))}switch(n){case"input":Fr(e),_i(e,r,!1);break;case"textarea":Fr(e),Ci(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ie(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?xn(e,!!r.multiple,s,!1):r.defaultValue!=null&&xn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=uo)}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=dn(Sr.current),dn(Nt.current),yo(t)){if(r=t.stateNode,n=t.memoizedProps,r[St]=t,(s=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:ao(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ao(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(ge(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&tt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)qa(),Mn(),t.flags|=98560,s=!1;else if(s=yo(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 Mn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else ht!==null&&(Us(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||(we.current&1)!==0?Pe===0&&(Pe=3):Ws())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return Un(),Ts(e,t),e===null&&mr(t.stateNode.containerInfo),Ue(t),null;case 10:return rs(t.type._context),Ue(t),null;case 17:return Ke(t.type)&&fo(),Ue(t),null;case 19:if(ge(we),s=t.memoizedState,s===null)return Ue(t),null;if(r=(t.flags&128)!==0,u=s.rendering,u===null)if(r)Cr(s,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=No(e),u!==null){for(t.flags|=128,Cr(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 he(we,we.current&1|2),t.child}e=e.sibling}s.tail!==null&&_e()>Vn&&(t.flags|=128,r=!0,Cr(s,!1),t.lanes=4194304)}else{if(!r)if(e=No(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!ve)return Ue(t),null}else 2*_e()-s.renderingStartTime>Vn&&n!==1073741824&&(t.flags|=128,r=!0,Cr(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=_e(),t.sibling=null,n=we.current,he(we,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return Bs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(nt&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 Rp(e,t){switch(Zl(t),t.tag){case 1:return Ke(t.type)&&fo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),ge(Qe),ge(Ae),cs(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return as(t),null;case 13:if(ge(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(we),null;case 4:return Un(),null;case 10:return rs(t.type._context),null;case 22:case 23:return Bs(),null;case 24:return null;default:return null}}var Ro=!1,He=!1,Lp=typeof WeakSet=="function"?WeakSet:Set,F=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function Ps(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Wu=!1;function Dp(e,t){if(Bl=Zr,e=xa(),Dl(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,m=-1,N=0,P=0,z=e,$=null;t:for(;;){for(var I;z!==n||o!==0&&z.nodeType!==3||(h=u+o),z!==s||r!==0&&z.nodeType!==3||(m=u+r),z.nodeType===3&&(u+=z.nodeValue.length),(I=z.firstChild)!==null;)$=z,z=I;for(;;){if(z===e)break t;if($===n&&++N===o&&(h=u),$===s&&++P===r&&(m=u),(I=z.nextSibling)!==null)break;z=$,$=z.parentNode}z=I}n=h===-1||m===-1?null:{start:h,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wl={focusedElem:e,selectionRange:n},Zr=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var H=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(H!==null){var W=H.memoizedProps,je=H.memoizedState,x=t.stateNode,v=x.getSnapshotBeforeUpdate(t.elementType===t.type?W:mt(t.type,W),je);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(L){Se(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return H=Wu,Wu=!1,H}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&&Ps(t,n,s)}o=o.next}while(o!==r)}}function Lo(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 zs(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 Vu(e){var t=e.alternate;t!==null&&(e.alternate=null,Vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[yr],delete t[Kl],delete t[gp],delete t[yp])),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 qu(e){return e.tag===5||e.tag===3||e.tag===4}function Qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qu(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 Rs(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=uo));else if(r!==4&&(e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}function Ls(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(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}var Me=null,gt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)Ku(e,t,n),n=n.sibling}function Ku(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(qr,n)}catch{}switch(n.tag){case 5:He||Bn(n,t);case 6:var r=Me,o=gt;Me=null,Yt(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?Ql(e.parentNode,n):e.nodeType===1&&Ql(e,n),sr(e)):Ql(Me,n.stateNode));break;case 4:r=Me,o=gt,Me=n.stateNode.containerInfo,gt=!0,Yt(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)&&Ps(n,t,u),o=o.next}while(o!==r)}Yt(e,t,n);break;case 1:if(!He&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(h){Se(n,t,h)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Yt(e,t,n),He=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function Yu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lp),t.forEach(function(r){var o=Wp.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));Ku(s,u,o),Me=null,gt=!1;var m=o.alternate;m!==null&&(m.return=null),o.return=null}catch(N){Se(o,t,N)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Gu(t,e),t=t.sibling}function Gu(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),Lo(3,e)}catch(W){Se(e,e.return,W)}try{$r(5,e,e.return)}catch(W){Se(e,e.return,W)}}break;case 1:yt(t,e),jt(e),r&512&&n!==null&&Bn(n,n.return);break;case 5:if(yt(t,e),jt(e),r&512&&n!==null&&Bn(n,n.return),e.flags&32){var o=e.stateNode;try{Gn(o,"")}catch(W){Se(e,e.return,W)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,u=n!==null?n.memoizedProps:s,h=e.type,m=e.updateQueue;if(e.updateQueue=null,m!==null)try{h==="input"&&s.type==="radio"&&s.name!=null&&Ni(o,s),cl(h,u);var N=cl(h,s);for(u=0;u<m.length;u+=2){var P=m[u],z=m[u+1];P==="style"?zi(o,z):P==="dangerouslySetInnerHTML"?Ti(o,z):P==="children"?Gn(o,z):Ee(o,P,z,N)}switch(h){case"input":ll(o,s);break;case"textarea":Ei(o,s);break;case"select":var $=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var I=s.value;I!=null?xn(o,!!s.multiple,I,!1):$!==!!s.multiple&&(s.defaultValue!=null?xn(o,!!s.multiple,s.defaultValue,!0):xn(o,!!s.multiple,s.multiple?[]:"",!1))}o[yr]=s}catch(W){Se(e,e.return,W)}}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(W){Se(e,e.return,W)}}break;case 3:if(yt(t,e),jt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{sr(t.containerInfo)}catch(W){Se(e,e.return,W)}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||(Ms=_e())),r&4&&Yu(e);break;case 22:if(P=n!==null&&n.memoizedState!==null,e.mode&1?(He=(N=He)||P,yt(t,e),He=N):yt(t,e),jt(e),r&8192){if(N=e.memoizedState!==null,(e.stateNode.isHidden=N)&&!P&&(e.mode&1)!==0)for(F=e,P=e.child;P!==null;){for(z=F=P;F!==null;){switch($=F,I=$.child,$.tag){case 0:case 11:case 14:case 15:$r(4,$,$.return);break;case 1:Bn($,$.return);var H=$.stateNode;if(typeof H.componentWillUnmount=="function"){r=$,n=$.return;try{t=r,H.props=t.memoizedProps,H.state=t.memoizedState,H.componentWillUnmount()}catch(W){Se(r,n,W)}}break;case 5:Bn($,$.return);break;case 22:if($.memoizedState!==null){Ju(z);continue}}I!==null?(I.return=$,F=I):Ju(z)}P=P.sibling}e:for(P=null,z=e;;){if(z.tag===5){if(P===null){P=z;try{o=z.stateNode,N?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(h=z.stateNode,m=z.memoizedProps.style,u=m!=null&&m.hasOwnProperty("display")?m.display:null,h.style.display=Pi("display",u))}catch(W){Se(e,e.return,W)}}}else if(z.tag===6){if(P===null)try{z.stateNode.nodeValue=N?"":z.memoizedProps}catch(W){Se(e,e.return,W)}}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;P===z&&(P=null),z=z.return}P===z&&(P=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:yt(t,e),jt(e),r&4&&Yu(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(qu(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=Qu(e);Ls(e,s,o);break;case 3:case 4:var u=r.stateNode.containerInfo,h=Qu(e);Rs(e,h,u);break;default:throw Error(a(161))}}catch(m){Se(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Op(e,t,n){F=e,Xu(e)}function Xu(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,s=o.child;if(o.tag===22&&r){var u=o.memoizedState!==null||Ro;if(!u){var h=o.alternate,m=h!==null&&h.memoizedState!==null||He;h=Ro;var N=He;if(Ro=u,(He=m)&&!N)for(F=o;F!==null;)u=F,m=u.child,u.tag===22&&u.memoizedState!==null?bu(o):m!==null?(m.return=u,F=m):bu(o);for(;s!==null;)F=s,Xu(s),s=s.sibling;F=o,Ro=h,He=N}Zu(e)}else(o.subtreeFlags&8772)!==0&&s!==null?(s.return=o,F=s):Zu(e)}}function Zu(e){for(;F!==null;){var t=F;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||Lo(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&&Ja(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}Ja(t,u,n)}break;case 5:var h=t.stateNode;if(n===null&&t.flags&4){n=h;var m=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":m.autoFocus&&n.focus();break;case"img":m.src&&(n.src=m.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 P=N.memoizedState;if(P!==null){var z=P.dehydrated;z!==null&&sr(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}He||t.flags&512&&zs(t)}catch($){Se(t,t.return,$)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Ju(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function bu(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Lo(4,t)}catch(m){Se(t,n,m)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(m){Se(t,o,m)}}var s=t.return;try{zs(t)}catch(m){Se(t,s,m)}break;case 5:var u=t.return;try{zs(t)}catch(m){Se(t,u,m)}}}catch(m){Se(t,t.return,m)}if(t===e){F=null;break}var h=t.sibling;if(h!==null){h.return=t.return,F=h;break}F=t.return}}var Mp=Math.ceil,Do=O.ReactCurrentDispatcher,Ds=O.ReactCurrentOwner,at=O.ReactCurrentBatchConfig,re=0,Le=null,$e=null,Ie=0,nt=0,Wn=Wt(0),Pe=0,Tr=null,pn=0,Oo=0,Os=0,Pr=null,Ge=null,Ms=0,Vn=1/0,Dt=null,Mo=!1,Is=null,Gt=null,Io=!1,Xt=null,Ao=0,zr=0,As=null,Fo=-1,Uo=0;function We(){return(re&6)!==0?_e():Fo!==-1?Fo:Fo=_e()}function Zt(e){return(e.mode&1)===0?1:(re&2)!==0&&Ie!==0?Ie&-Ie:wp.transition!==null?(Uo===0&&(Uo=Qi()),Uo):(e=ae,e!==0||(e=window.event,e=e===void 0?16:ta(e.type)),e)}function vt(e,t,n,r){if(50<zr)throw zr=0,As=null,Error(a(185));tr(e,n,r),((re&2)===0||e!==Le)&&(e===Le&&((re&2)===0&&(Oo|=n),Pe===4&&Jt(e,Ie)),Xe(e,r),n===1&&re===0&&(t.mode&1)===0&&(Vn=_e()+500,ho&&qt()))}function Xe(e,t){var n=e.callbackNode;wf(e,t);var r=Yr(e,e===Le?Ie:0);if(r===0)n!==null&&Wi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Wi(n),t===1)e.tag===0?vp(tc.bind(null,e)):Ua(tc.bind(null,e)),hp(function(){(re&6)===0&&qt()}),n=null;else{switch(Ki(r)){case 1:n=yl;break;case 4:n=Vi;break;case 16:n=Vr;break;case 536870912:n=qi;break;default:n=Vr}n=uc(n,ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ec(e,t){if(Fo=-1,Uo=0,(re&6)!==0)throw Error(a(327));var n=e.callbackNode;if(qn()&&e.callbackNode!==n)return null;var r=Yr(e,e===Le?Ie:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Ho(e,r);else{t=r;var o=re;re|=2;var s=rc();(Le!==e||Ie!==t)&&(Dt=null,Vn=_e()+500,mn(e,t));do try{Fp();break}catch(h){nc(e,h)}while(!0);ns(),Do.current=s,re=o,$e!==null?t=0:(Le=null,Ie=0,t=Pe)}if(t!==0){if(t===2&&(o=vl(e),o!==0&&(r=o,t=Fs(e,o))),t===1)throw n=Tr,mn(e,0),Jt(e,r),Xe(e,_e()),n;if(t===6)Jt(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Ip(o)&&(t=Ho(e,r),t===2&&(s=vl(e),s!==0&&(r=s,t=Fs(e,s))),t===1))throw n=Tr,mn(e,0),Jt(e,r),Xe(e,_e()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:gn(e,Ge,Dt);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=Ms+500-_e(),10<t)){if(Yr(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ql(gn.bind(null,e,Ge,Dt),t);break}gn(e,Ge,Dt);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=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mp(r/1960))-r,10<r){e.timeoutHandle=ql(gn.bind(null,e,Ge,Dt),r);break}gn(e,Ge,Dt);break;case 5:gn(e,Ge,Dt);break;default:throw Error(a(329))}}}return Xe(e,_e()),e.callbackNode===n?ec.bind(null,e):null}function Fs(e,t){var n=Pr;return e.current.memoizedState.isDehydrated&&(mn(e,t).flags|=256),e=Ho(e,t),e!==2&&(t=Ge,Ge=n,t!==null&&Us(t)),e}function Us(e){Ge===null?Ge=e:Ge.push.apply(Ge,e)}function Ip(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&=~Os,t&=~Oo,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 tc(e){if((re&6)!==0)throw Error(a(327));qn();var t=Yr(e,0);if((t&1)===0)return Xe(e,_e()),null;var n=Ho(e,t);if(e.tag!==0&&n===2){var r=vl(e);r!==0&&(t=r,n=Fs(e,r))}if(n===1)throw n=Tr,mn(e,0),Jt(e,t),Xe(e,_e()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gn(e,Ge,Dt),Xe(e,_e()),null}function Hs(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Vn=_e()+500,ho&&qt())}}function hn(e){Xt!==null&&Xt.tag===0&&(re&6)===0&&qn();var t=re;re|=1;var n=at.transition,r=ae;try{if(at.transition=null,ae=1,e)return e()}finally{ae=r,at.transition=n,re=t,(re&6)===0&&qt()}}function Bs(){nt=Wn.current,ge(Wn)}function mn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,pp(n)),$e!==null)for(n=$e.return;n!==null;){var r=n;switch(Zl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fo();break;case 3:Un(),ge(Qe),ge(Ae),cs();break;case 5:as(r);break;case 4:Un();break;case 13:ge(we);break;case 19:ge(we);break;case 10:rs(r.type._context);break;case 22:case 23:Bs()}n=n.return}if(Le=e,$e=e=bt(e.current,null),Ie=nt=t,Pe=0,Tr=null,Os=Oo=pn=0,Ge=Pr=null,cn!==null){for(t=0;t<cn.length;t++)if(n=cn[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}cn=null}return e}function nc(e,t){do{var n=$e;try{if(ns(),_o.current=$o,jo){for(var r=ke.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}jo=!1}if(fn=0,Re=Te=ke=null,Nr=!1,_r=0,Ds.current=null,n===null||n.return===null){Pe=1,Tr=t,$e=null;break}e:{var s=e,u=n.return,h=n,m=t;if(t=Ie,h.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){var N=m,P=h,z=P.tag;if((P.mode&1)===0&&(z===0||z===11||z===15)){var $=P.alternate;$?(P.updateQueue=$.updateQueue,P.memoizedState=$.memoizedState,P.lanes=$.lanes):(P.updateQueue=null,P.memoizedState=null)}var I=Cu(u);if(I!==null){I.flags&=-257,$u(I,u,h,s,t),I.mode&1&&Eu(s,N,t),t=I,m=N;var H=t.updateQueue;if(H===null){var W=new Set;W.add(m),t.updateQueue=W}else H.add(m);break e}else{if((t&1)===0){Eu(s,N,t),Ws();break e}m=Error(a(426))}}else if(ve&&h.mode&1){var je=Cu(u);if(je!==null){(je.flags&65536)===0&&(je.flags|=256),$u(je,u,h,s,t),es(Hn(m,h));break e}}s=m=Hn(m,h),Pe!==4&&(Pe=2),Pr===null?Pr=[s]:Pr.push(s),s=u;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var x=_u(s,m,t);Za(s,x);break e;case 1:h=m;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 L=ju(s,h,t);Za(s,L);break e}}s=s.return}while(s!==null)}lc(n)}catch(q){t=q,$e===n&&n!==null&&($e=n=n.return);continue}break}while(!0)}function rc(){var e=Do.current;return Do.current=$o,e===null?$o:e}function Ws(){(Pe===0||Pe===3||Pe===2)&&(Pe=4),Le===null||(pn&268435455)===0&&(Oo&268435455)===0||Jt(Le,Ie)}function Ho(e,t){var n=re;re|=2;var r=rc();(Le!==e||Ie!==t)&&(Dt=null,mn(e,t));do try{Ap();break}catch(o){nc(e,o)}while(!0);if(ns(),re=n,Do.current=r,$e!==null)throw Error(a(261));return Le=null,Ie=0,Pe}function Ap(){for(;$e!==null;)oc($e)}function Fp(){for(;$e!==null&&!cf();)oc($e)}function oc(e){var t=ac(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?lc(e):$e=t,Ds.current=null}function lc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=zp(n,t,nt),n!==null){$e=n;return}}else{if(n=Rp(n,t),n!==null){n.flags&=32767,$e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pe=6,$e=null;return}}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Pe===0&&(Pe=5)}function gn(e,t,n){var r=ae,o=at.transition;try{at.transition=null,ae=1,Up(e,t,n,r)}finally{at.transition=o,ae=r}return null}function Up(e,t,n,r){do qn();while(Xt!==null);if((re&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(kf(e,s),e===Le&&($e=Le=null,Ie=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Io||(Io=!0,uc(Vr,function(){return qn(),null})),s=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||s){s=at.transition,at.transition=null;var u=ae;ae=1;var h=re;re|=4,Ds.current=null,Dp(e,n),Gu(n,e),sp(Wl),Zr=!!Bl,Wl=Bl=null,e.current=n,Op(n),df(),re=h,ae=u,at.transition=s}else e.current=n;if(Io&&(Io=!1,Xt=e,Ao=o),s=e.pendingLanes,s===0&&(Gt=null),hf(n.stateNode),Xe(e,_e()),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(Mo)throw Mo=!1,e=Is,Is=null,e;return(Ao&1)!==0&&e.tag!==0&&qn(),s=e.pendingLanes,(s&1)!==0?e===As?zr++:(zr=0,As=e):zr=0,qt(),null}function qn(){if(Xt!==null){var e=Ki(Ao),t=at.transition,n=ae;try{if(at.transition=null,ae=16>e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Ao=0,(re&6)!==0)throw Error(a(331));var o=re;for(re|=4,F=e.current;F!==null;){var s=F,u=s.child;if((F.flags&16)!==0){var h=s.deletions;if(h!==null){for(var m=0;m<h.length;m++){var N=h[m];for(F=N;F!==null;){var P=F;switch(P.tag){case 0:case 11:case 15:$r(8,P,s)}var z=P.child;if(z!==null)z.return=P,F=z;else for(;F!==null;){P=F;var $=P.sibling,I=P.return;if(Vu(P),P===N){F=null;break}if($!==null){$.return=I,F=$;break}F=I}}}var H=s.alternate;if(H!==null){var W=H.child;if(W!==null){H.child=null;do{var je=W.sibling;W.sibling=null,W=je}while(W!==null)}}F=s}}if((s.subtreeFlags&2064)!==0&&u!==null)u.return=s,F=u;else e:for(;F!==null;){if(s=F,(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,F=x;break e}F=s.return}}var v=e.current;for(F=v;F!==null;){u=F;var S=u.child;if((u.subtreeFlags&2064)!==0&&S!==null)S.return=u,F=S;else e:for(u=v;F!==null;){if(h=F,(h.flags&2048)!==0)try{switch(h.tag){case 0:case 11:case 15:Lo(9,h)}}catch(q){Se(h,h.return,q)}if(h===u){F=null;break e}var L=h.sibling;if(L!==null){L.return=h.return,F=L;break e}F=h.return}}if(re=o,qt(),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(qr,e)}catch{}r=!0}return r}finally{ae=n,at.transition=t}}return!1}function sc(e,t,n){t=Hn(n,t),t=_u(e,t,1),e=Kt(e,t,1),t=We(),e!==null&&(tr(e,1,t),Xe(e,t))}function Se(e,t,n){if(e.tag===3)sc(e,e,n);else for(;t!==null;){if(t.tag===3){sc(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=Hn(n,e),e=ju(t,e,1),t=Kt(t,e,1),e=We(),t!==null&&(tr(t,1,e),Xe(t,e));break}}t=t.return}}function Hp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Ie&n)===n&&(Pe===4||Pe===3&&(Ie&130023424)===Ie&&500>_e()-Ms?mn(e,0):Os|=n),Xe(e,t)}function ic(e,t){t===0&&((e.mode&1)===0?t=1:(t=Kr,Kr<<=1,(Kr&130023424)===0&&(Kr=4194304)));var n=We();e=zt(e,t),e!==null&&(tr(e,t,n),Xe(e,n))}function Bp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ic(e,n)}function Wp(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),ic(e,n)}var ac;ac=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,Pp(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,ve&&(t.flags&1048576)!==0&&Ha(t,go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zo(e,t),e=t.pendingProps;var o=Ln(t,Ae.current);Fn(t,n),o=ps(null,t,r,e,o,n);var s=hs();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,po(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ss(t),o.updater=To,t.stateNode=o,o._reactInternals=t,ks(t,r,e,n),t=_s(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&Xl(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=qp(r),e=mt(r,e),o){case 0:t=Ns(null,t,r,e,n);break e;case 1:t=Du(null,t,r,e,n);break e;case 11:t=Tu(null,t,r,e,n);break e;case 14:t=Pu(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),Ns(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Du(e,t,r,o,n);case 3:e:{if(Ou(t),e===null)throw Error(a(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Xa(e,t),So(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=Hn(Error(a(423)),t),t=Mu(e,t,r,n,o);break e}else if(r!==o){o=Hn(Error(a(424)),t),t=Mu(e,t,r,n,o);break e}else for(tt=Bt(t.stateNode.containerInfo.firstChild),et=t,ve=!0,ht=null,n=Ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===o){t=Lt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return ba(t),e===null&&bl(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,u=o.children,Vl(r,o)?u=null:s!==null&&Vl(r,s)&&(t.flags|=32),Lu(e,t),Be(e,t,u,n),t.child;case 6:return e===null&&bl(t),null;case 13:return Iu(e,t,n);case 4:return is(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=In(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),Tu(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,he(wo,r._currentValue),r._currentValue=u,s!==null)if(pt(s.value,u)){if(s.children===o.children&&!Qe.current){t=Lt(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 m=h.firstContext;m!==null;){if(m.context===r){if(s.tag===1){m=Rt(-1,n&-n),m.tag=2;var N=s.updateQueue;if(N!==null){N=N.shared;var P=N.pending;P===null?m.next=m:(m.next=P.next,P.next=m),N.pending=m}}s.lanes|=n,m=s.alternate,m!==null&&(m.lanes|=n),os(s.return,n,t),h.lanes|=n;break}m=m.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),os(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,Fn(t,n),o=st(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),Pu(e,t,r,o,n);case 15:return zu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),zo(e,t),t.tag=1,Ke(r)?(e=!0,po(t)):e=!1,Fn(t,n),Su(t,r,o),ks(t,r,o,n),_s(null,t,r,!0,e,n);case 19:return Fu(e,t,n);case 22:return Ru(e,t,n)}throw Error(a(156,t.tag))};function uc(e,t){return Bi(e,t)}function Vp(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 ut(e,t,n,r){return new Vp(e,t,n,r)}function Vs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qp(e){if(typeof e=="function")return Vs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ve)return 11;if(e===kt)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&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 Bo(e,t,n,r,o,s){var u=2;if(r=e,typeof e=="function")Vs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Ne:return yn(n.children,o,s,t);case G:u=8,o|=8;break;case ne:return e=ut(12,n,t,o|2),e.elementType=ne,e.lanes=s,e;case Oe:return e=ut(13,n,t,o),e.elementType=Oe,e.lanes=s,e;case dt:return e=ut(19,n,t,o),e.elementType=dt,e.lanes=s,e;case xe:return Wo(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ce: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=ut(u,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function yn(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function Wo(e,t,n,r){return e=ut(22,e,r,t),e.elementType=xe,e.lanes=n,e.stateNode={isHidden:!1},e}function qs(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Qs(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qp(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=wl(0),this.expirationTimes=wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ks(e,t,n,r,o,s,u,h,m){return e=new Qp(e,t,n,h,m),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ut(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ss(s),e}function Kp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fe,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function cc(e){if(!e)return Vt;e=e._reactInternals;e:{if(on(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 Aa(e,n,t)}return t}function dc(e,t,n,r,o,s,u,h,m){return e=Ks(n,r,!0,e,o,s,u,h,m),e.context=cc(null),n=e.current,r=We(),o=Zt(n),s=Rt(r,o),s.callback=t??null,Kt(n,s,o),e.current.lanes=o,tr(e,o,r),Xe(e,r),e}function Vo(e,t,n,r){var o=t.current,s=We(),u=Zt(o);return n=cc(n),t.context===null?t.context=n:t.pendingContext=n,t=Rt(s,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Kt(o,t,u),e!==null&&(vt(e,o,u,s),xo(e,o,u)),u}function qo(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 fc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ys(e,t){fc(e,t),(e=e.alternate)&&fc(e,t)}function Yp(){return null}var pc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gs(e){this._internalRoot=e}Qo.prototype.render=Gs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Vo(e,t,null,null)},Qo.prototype.unmount=Gs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hn(function(){Vo(null,e,null,null)}),t[Ct]=null}};function Qo(e){this._internalRoot=e}Qo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&bi(e)}};function Xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ko(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hc(){}function Gp(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var N=qo(u);s.call(N)}}var u=dc(t,r,e,0,null,!1,!1,"",hc);return e._reactRootContainer=u,e[Ct]=u.current,mr(e.nodeType===8?e.parentNode:e),hn(),u}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var h=r;r=function(){var N=qo(m);h.call(N)}}var m=Ks(e,0,!1,null,null,!1,!1,"",hc);return e._reactRootContainer=m,e[Ct]=m.current,mr(e.nodeType===8?e.parentNode:e),hn(function(){Vo(t,m,n,r)}),m}function Yo(e,t,n,r,o){var s=n._reactRootContainer;if(s){var u=s;if(typeof o=="function"){var h=o;o=function(){var m=qo(u);h.call(m)}}Vo(t,u,e,o)}else u=Gp(n,t,e,o,r);return qo(u)}Yi=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=er(t.pendingLanes);n!==0&&(kl(t,n|1),Xe(t,_e()),(re&6)===0&&(Vn=_e()+500,qt()))}break;case 13:hn(function(){var r=zt(e,1);if(r!==null){var o=We();vt(r,e,1,o)}}),Ys(e,1)}},xl=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=We();vt(t,e,134217728,n)}Ys(e,134217728)}},Gi=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)}Ys(e,t)}},Xi=function(){return ae},Zi=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}},pl=function(e,t,n){switch(t){case"input":if(ll(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=co(r);if(!o)throw Error(a(90));xi(r),ll(r,o)}}}break;case"textarea":Ei(e,n);break;case"select":t=n.value,t!=null&&xn(e,!!n.multiple,t,!1)}},Oi=Hs,Mi=hn;var Xp={usingClientEntryPoint:!1,Events:[vr,zn,co,Li,Di,Hs]},Rr={findFiberByHostInstance:ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zp={bundleType:Rr.bundleType,version:Rr.version,rendererPackageName:Rr.rendererPackageName,rendererConfig:Rr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ui(e),e===null?null:e.stateNode},findFiberByHostInstance:Rr.findFiberByHostInstance||Yp,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 Go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Go.isDisabled&&Go.supportsFiber)try{qr=Go.inject(Zp),xt=Go}catch{}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xp,Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xs(t))throw Error(a(200));return Kp(e,t,null,n)},Ze.createRoot=function(e,t){if(!Xs(e))throw Error(a(299));var n=!1,r="",o=pc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ks(e,1,!1,null,null,n,!1,r,o),e[Ct]=t.current,mr(e.nodeType===8?e.parentNode:e),new Gs(t)},Ze.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=Ui(t),e=e===null?null:e.stateNode,e},Ze.flushSync=function(e){return hn(e)},Ze.hydrate=function(e,t,n){if(!Ko(t))throw Error(a(200));return Yo(null,e,t,!0,n)},Ze.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(a(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",u=pc;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=dc(t,null,e,1,n??null,o,!1,s,u),e[Ct]=t.current,mr(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 Qo(t)},Ze.render=function(e,t,n){if(!Ko(t))throw Error(a(200));return Yo(null,e,t,!1,n)},Ze.unmountComponentAtNode=function(e){if(!Ko(e))throw Error(a(40));return e._reactRootContainer?(hn(function(){Yo(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1},Ze.unstable_batchedUpdates=Hs,Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ko(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Yo(e,t,n,!1,r)},Ze.version="18.3.1-next-f1338f8080-20240426",Ze}var Sc;function lh(){if(Sc)return bs.exports;Sc=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(),bs.exports=oh(),bs.exports}var Nc;function sh(){if(Nc)return Xo;Nc=1;var l=lh();return Xo.createRoot=l.createRoot,Xo.hydrateRoot=l.hydrateRoot,Xo}var ih=sh();const ah=(function(){const i=typeof document<"u"&&document.createElement("link").relList;return i&&i.supports&&i.supports("modulepreload")?"modulepreload":"preload"})(),uh=function(l){return"/"+l},_c={},pi=function(i,a,c){let f=Promise.resolve();if(a&&a.length>0){let y=function(E){return Promise.all(E.map(j=>Promise.resolve(j).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};document.getElementsByTagName("link");const w=document.querySelector("meta[property=csp-nonce]"),g=(w==null?void 0:w.nonce)||(w==null?void 0:w.getAttribute("nonce"));f=y(a.map(E=>{if(E=uh(E),E in _c)return;_c[E]=!0;const j=E.endsWith(".css"),R=j?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${E}"]${R}`))return;const C=document.createElement("link");if(C.rel=j?"stylesheet":ah,j||(C.as="script"),C.crossOrigin="",C.href=E,g&&C.setAttribute("nonce",g),document.head.appendChild(C),j)return new Promise((D,_)=>{C.addEventListener("load",D),C.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${E}`)))})}))}function p(y){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=y,window.dispatchEvent(w),!w.defaultPrevented)throw y}return f.then(y=>{for(const w of y||[])w.status==="rejected"&&p(w.reason);return i().catch(p)})},Vc="caddis-hub-tab",ch="X-Caddis-Hub-Tab",dh="X-CSRF-Token";class ii extends Error{constructor(i,a){super(a),this.status=i}}function qc(){try{return window.localStorage}catch{return null}}let ai=null;function fh(l=window.location,i=window.history,a=qc()){const c=/(?:^#|&)tab=([^&]+)/.exec(l.hash);if(!(c!=null&&c[1]))return;let f;try{f=decodeURIComponent(c[1])}catch{return}ai=f;try{a==null||a.setItem(Vc,f)}catch{}i.replaceState(null,"",l.pathname+l.search)}function Qc(l=qc()){try{return(l==null?void 0:l.getItem(Vc))||ai}catch{return ai}}function Kc(l,i){const a={Accept:"application/json"};return l&&(a[ch]=l),i&&(a[dh]=i),a}async function hi(l){const i=Qc();if(!i)throw new ii(401,"no tab token");const a=await fetch(l,{headers:Kc(i),credentials:"same-origin",cache:"no-store"});if(!a.ok)throw new ii(a.status,`${l} answered ${a.status}`);return await a.json()}const ph=()=>hi("/api/session"),hh=()=>hi("/api/state"),mh=(l,i,a)=>hi("/api/plan-phase?repo="+encodeURIComponent(l)+"&plan="+encodeURIComponent(i)+"&key="+encodeURIComponent(a));let Jo=null;async function gh(){return Jo||(Jo=(await ph()).csrf_token),Jo}async function yh(l){const i=Qc();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:{...Kc(i,await gh()),"Content-Type":"application/json"},body:JSON.stringify(l),credentials:"same-origin",cache:"no-store"});try{let c=await a();c.status===403&&(Jo=null,c=await a());const f=await c.json().catch(()=>({}));return c.status===202&&f.request&&typeof f.request=="object"?{ok:!0,request:f.request}:{ok:!1,status:c.status,error:typeof f.error=="string"?f.error:"failed",reason:typeof f.reason=="string"?f.reason:`The hub answered ${c.status}.`}}catch{return{ok:!1,status:0,error:"network",reason:"The hub did not answer."}}}function vh(l){const[i,a]=Y.useState({}),c=(p,y)=>a(w=>({...w,[p]:y})),f=Y.useCallback(p=>{c(p.key,{status:"sending",reason:null,requestId:null,at:Date.now()}),yh(p.body).then(y=>{y.ok?c(p.key,{status:"sent",reason:null,requestId:y.request.id,at:Date.now()}):c(p.key,{status:"refused",reason:y.reason,requestId:null,at:Date.now()}),l()})},[l]);return{local:i,run:f}}/**
41
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function xs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ss(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $p=typeof WeakMap=="function"?WeakMap:Map;function _u(e,t,n){n=Rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mo||(Mo=!0,Is=r),Ss(e,t)},n}function ju(e,t,n){n=Rt(-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(){Ss(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ss(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 Eu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $p;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=Bp.bind(null,e,t,n),t.then(e,e))}function Cu(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 $u(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=Rt(-1,1),t.tag=2,Kt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Pp=O.ReactCurrentOwner,Ye=!1;function Be(e,t,n,r){t.child=e===null?Ya(t,null,n,r):In(t,e.child,n,r)}function Pu(e,t,n,r,o){n=n.render;var s=t.ref;return Fn(t,o),r=ps(e,t,n,r,s,o),n=hs(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lt(e,t,o)):(ve&&n&&Xl(t),t.flags|=1,Be(e,t,r,o),t.child)}function Tu(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Vs(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,zu(e,t,s,r,o)):(e=Bo(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:fr,n(u,r)&&e.ref===t.ref)return Lt(e,t,o)}return t.flags|=1,e=bt(s,r),e.ref=t.ref,e.return=t,t.child=e}function zu(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(fr(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,Lt(e,t,o)}return Ns(e,t,n,r,o)}function Ru(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},he(Wn,nt),nt|=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,he(Wn,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,he(Wn,nt),nt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,he(Wn,nt),nt|=r;return Be(e,t,o,n),t.child}function Lu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ns(e,t,n,r,o){var s=Ke(n)?sn:Ae.current;return s=Ln(t,s),Fn(t,o),n=ps(e,t,n,r,s,o),r=hs(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lt(e,t,o)):(ve&&r&&Xl(t),t.flags|=1,Be(e,t,n,o),t.child)}function Du(e,t,n,r,o){if(Ke(n)){var s=!0;po(t)}else s=!1;if(Fn(t,o),t.stateNode===null)zo(e,t),Su(t,n,r),ks(t,n,r,o),r=!0;else if(e===null){var u=t.stateNode,h=t.memoizedProps;u.props=h;var m=u.context,N=n.contextType;typeof N=="object"&&N!==null?N=it(N):(N=Ke(n)?sn:Ae.current,N=Ln(t,N));var T=n.getDerivedStateFromProps,z=typeof T=="function"||typeof u.getSnapshotBeforeUpdate=="function";z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==r||m!==N)&&Nu(t,u,r,N),Qt=!1;var $=t.memoizedState;u.state=$,So(t,r,u,o),m=t.memoizedState,h!==r||$!==m||Qe.current||Qt?(typeof T=="function"&&(ws(t,n,T,r),m=t.memoizedState),(h=Qt||xu(t,n,h,r,$,m,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=m),u.props=r,u.state=m,u.context=N,r=h):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Xa(e,t),h=t.memoizedProps,N=t.type===t.elementType?h:mt(t.type,h),u.props=N,z=t.pendingProps,$=u.context,m=n.contextType,typeof m=="object"&&m!==null?m=it(m):(m=Ke(n)?sn:Ae.current,m=Ln(t,m));var I=n.getDerivedStateFromProps;(T=typeof I=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==z||$!==m)&&Nu(t,u,r,m),Qt=!1,$=t.memoizedState,u.state=$,So(t,r,u,o);var H=t.memoizedState;h!==z||$!==H||Qe.current||Qt?(typeof I=="function"&&(ws(t,n,I,r),H=t.memoizedState),(N=Qt||xu(t,n,N,r,$,H,m)||!1)?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,H,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,H,m)),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=H),u.props=r,u.state=H,u.context=m,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 _s(e,t,n,r,s,o)}function _s(e,t,n,r,o,s){Lu(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return o&&Fa(t,n,!1),Lt(e,t,s);r=t.stateNode,Pp.current=t;var h=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=In(t,e.child,null,s),t.child=In(t,null,h,s)):Be(e,t,h,s),t.memoizedState=r.state,o&&Fa(t,n,!0),t.child}function Ou(e){var t=e.stateNode;t.pendingContext?Ia(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ia(e,t.context,!1),is(e,t.containerInfo)}function Mu(e,t,n,r,o){return Mn(),es(o),t.flags|=256,Be(e,t,n,r),t.child}var js={dehydrated:null,treeContext:null,retryLane:0};function Es(e){return{baseLanes:e,cachePool:null,transitions:null}}function Iu(e,t,n){var r=t.pendingProps,o=we.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),he(we,o&1),e===null)return bl(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=Wo(u,r,0,null),e=yn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Es(n),t.memoizedState=js,e):Cs(t,u));if(o=e.memoizedState,o!==null&&(h=o.dehydrated,h!==null))return Tp(e,t,u,r,h,o,n);if(s){s=r.fallback,u=t.mode,o=e.child,h=o.sibling;var m={mode:"hidden",children:r.children};return(u&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=m,t.deletions=null):(r=bt(o,m),r.subtreeFlags=o.subtreeFlags&14680064),h!==null?s=bt(h,s):(s=yn(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?Es(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=js,r}return s=e.child,e=s.sibling,r=bt(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 Cs(e,t){return t=Wo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function To(e,t,n,r){return r!==null&&es(r),In(t,e.child,null,n),e=Cs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tp(e,t,n,r,o,s,u){if(n)return t.flags&256?(t.flags&=-257,r=xs(Error(a(422))),To(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Wo({mode:"visible",children:r.children},o,0,null),s=yn(s,o,u,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,(t.mode&1)!==0&&In(t,e.child,null,u),t.child.memoizedState=Es(u),t.memoizedState=js,s);if((t.mode&1)===0)return To(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=xs(s,r,void 0),To(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 Ws(),r=xs(Error(a(421))),To(e,t,u,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Wp.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,tt=Bt(o.nextSibling),et=t,ve=!0,ht=null,e!==null&&(lt[st++]=Pt,lt[st++]=Tt,lt[st++]=an,Pt=e.id,Tt=e.overflow,an=t),t=Cs(t,r.children),t.flags|=4096,t)}function Au(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),os(e.return,t,n)}function $s(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 Fu(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Be(e,t,r.children,n),r=we.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&&Au(e,n,t);else if(e.tag===19)Au(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(he(we,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&&No(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(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&&No(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,s);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pn|=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=bt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zp(e,t,n){switch(t.tag){case 3:Ou(t),Mn();break;case 5:ba(t);break;case 1:Ke(t.type)&&po(t);break;case 4:is(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;he(wo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(he(we,we.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Iu(e,t,n):(he(we,we.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);he(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Fu(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),he(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,Ru(e,t,n)}return Lt(e,t,n)}var Uu,Ps,Hu,Bu;Uu=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}},Ps=function(){},Hu=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,dn(Nt.current);var s=null;switch(n){case"input":o=ol(e,o),r=ol(e,r),s=[];break;case"select":o=U({},o,{value:void 0}),r=U({},r,{value:void 0}),s=[];break;case"textarea":o=il(e,o),r=il(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=uo)}ul(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 m=r[N];if(h=o!=null?o[N]:void 0,r.hasOwnProperty(N)&&m!==h&&(m!=null||h!=null))if(N==="style")if(h){for(u in h)!h.hasOwnProperty(u)||m&&m.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in m)m.hasOwnProperty(u)&&h[u]!==m[u]&&(n||(n={}),n[u]=m[u])}else n||(s||(s=[]),s.push(N,n)),n=m;else N==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,h=h?h.__html:void 0,m!=null&&h!==m&&(s=s||[]).push(N,m)):N==="children"?typeof m!="string"&&typeof m!="number"||(s=s||[]).push(N,""+m):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(f.hasOwnProperty(N)?(m!=null&&N==="onScroll"&&me("scroll",e),s||h===m||(s=[])):(s=s||[]).push(N,m))}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 Cr(e,t){if(!ve)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 Rp(e,t,n){var r=t.pendingProps;switch(Zl(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)&&fo(),Ue(t),null;case 3:return r=t.stateNode,Un(),ge(Qe),ge(Ae),cs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ht!==null&&(Us(ht),ht=null))),Ps(e,t),Ue(t),null;case 5:as(t);var o=dn(Sr.current);if(n=t.type,e!==null&&t.stateNode!=null)Hu(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=dn(Nt.current),yo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[St]=t,r[yr]=s,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(o=0;o<hr.length;o++)me(hr[o],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":Si(r,s),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},me("invalid",r);break;case"textarea":ji(r,s),me("invalid",r)}ul(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&&ao(r.textContent,h,e),o=["children",h]):typeof h=="number"&&r.textContent!==""+h&&(s.suppressHydrationWarning!==!0&&ao(r.textContent,h,e),o=["children",""+h]):f.hasOwnProperty(u)&&h!=null&&u==="onScroll"&&me("scroll",r)}switch(n){case"input":Fr(r),_i(r,s,!0);break;case"textarea":Fr(r),Ci(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=uo)}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=$i(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[yr]=r,Uu(e,t,!1,!1),t.stateNode=e;e:{switch(u=cl(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;o<hr.length;o++)me(hr[o],e);o=r;break;case"source":me("error",e),o=r;break;case"img":case"image":case"link":me("error",e),me("load",e),o=r;break;case"details":me("toggle",e),o=r;break;case"input":Si(e,r),o=ol(e,r),me("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=U({},r,{value:void 0}),me("invalid",e);break;case"textarea":ji(e,r),o=il(e,r),me("invalid",e);break;default:o=r}ul(n,o),h=o;for(s in h)if(h.hasOwnProperty(s)){var m=h[s];s==="style"?zi(e,m):s==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,m!=null&&Pi(e,m)):s==="children"?typeof m=="string"?(n!=="textarea"||m!=="")&&Gn(e,m):typeof m=="number"&&Gn(e,""+m):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(f.hasOwnProperty(s)?m!=null&&s==="onScroll"&&me("scroll",e):m!=null&&Ce(e,s,m,u))}switch(n){case"input":Fr(e),_i(e,r,!1);break;case"textarea":Fr(e),Ci(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ie(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?xn(e,!!r.multiple,s,!1):r.defaultValue!=null&&xn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=uo)}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=dn(Sr.current),dn(Nt.current),yo(t)){if(r=t.stateNode,n=t.memoizedProps,r[St]=t,(s=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:ao(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ao(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(ge(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&tt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)qa(),Mn(),t.flags|=98560,s=!1;else if(s=yo(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 Mn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else ht!==null&&(Us(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||(we.current&1)!==0?ze===0&&(ze=3):Ws())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return Un(),Ps(e,t),e===null&&mr(t.stateNode.containerInfo),Ue(t),null;case 10:return rs(t.type._context),Ue(t),null;case 17:return Ke(t.type)&&fo(),Ue(t),null;case 19:if(ge(we),s=t.memoizedState,s===null)return Ue(t),null;if(r=(t.flags&128)!==0,u=s.rendering,u===null)if(r)Cr(s,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=No(e),u!==null){for(t.flags|=128,Cr(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 he(we,we.current&1|2),t.child}e=e.sibling}s.tail!==null&&_e()>Vn&&(t.flags|=128,r=!0,Cr(s,!1),t.lanes=4194304)}else{if(!r)if(e=No(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!ve)return Ue(t),null}else 2*_e()-s.renderingStartTime>Vn&&n!==1073741824&&(t.flags|=128,r=!0,Cr(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=_e(),t.sibling=null,n=we.current,he(we,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return Bs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(nt&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 Lp(e,t){switch(Zl(t),t.tag){case 1:return Ke(t.type)&&fo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),ge(Qe),ge(Ae),cs(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return as(t),null;case 13:if(ge(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(we),null;case 4:return Un(),null;case 10:return rs(t.type._context),null;case 22:case 23:return Bs(),null;case 24:return null;default:return null}}var Ro=!1,He=!1,Dp=typeof WeakSet=="function"?WeakSet:Set,F=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function Ts(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Wu=!1;function Op(e,t){if(Bl=Zr,e=xa(),Dl(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,m=-1,N=0,T=0,z=e,$=null;t:for(;;){for(var I;z!==n||o!==0&&z.nodeType!==3||(h=u+o),z!==s||r!==0&&z.nodeType!==3||(m=u+r),z.nodeType===3&&(u+=z.nodeValue.length),(I=z.firstChild)!==null;)$=z,z=I;for(;;){if(z===e)break t;if($===n&&++N===o&&(h=u),$===s&&++T===r&&(m=u),(I=z.nextSibling)!==null)break;z=$,$=z.parentNode}z=I}n=h===-1||m===-1?null:{start:h,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wl={focusedElem:e,selectionRange:n},Zr=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var H=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(H!==null){var W=H.memoizedProps,je=H.memoizedState,x=t.stateNode,v=x.getSnapshotBeforeUpdate(t.elementType===t.type?W:mt(t.type,W),je);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(L){Se(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return H=Wu,Wu=!1,H}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&&Ts(t,n,s)}o=o.next}while(o!==r)}}function Lo(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 zs(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 Vu(e){var t=e.alternate;t!==null&&(e.alternate=null,Vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[yr],delete t[Kl],delete t[yp],delete t[vp])),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 qu(e){return e.tag===5||e.tag===3||e.tag===4}function Qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qu(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 Rs(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=uo));else if(r!==4&&(e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}function Ls(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(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}var Me=null,gt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)Ku(e,t,n),n=n.sibling}function Ku(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(qr,n)}catch{}switch(n.tag){case 5:He||Bn(n,t);case 6:var r=Me,o=gt;Me=null,Yt(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?Ql(e.parentNode,n):e.nodeType===1&&Ql(e,n),sr(e)):Ql(Me,n.stateNode));break;case 4:r=Me,o=gt,Me=n.stateNode.containerInfo,gt=!0,Yt(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)&&Ts(n,t,u),o=o.next}while(o!==r)}Yt(e,t,n);break;case 1:if(!He&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(h){Se(n,t,h)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Yt(e,t,n),He=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function Yu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dp),t.forEach(function(r){var o=Vp.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));Ku(s,u,o),Me=null,gt=!1;var m=o.alternate;m!==null&&(m.return=null),o.return=null}catch(N){Se(o,t,N)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Gu(t,e),t=t.sibling}function Gu(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),Lo(3,e)}catch(W){Se(e,e.return,W)}try{$r(5,e,e.return)}catch(W){Se(e,e.return,W)}}break;case 1:yt(t,e),jt(e),r&512&&n!==null&&Bn(n,n.return);break;case 5:if(yt(t,e),jt(e),r&512&&n!==null&&Bn(n,n.return),e.flags&32){var o=e.stateNode;try{Gn(o,"")}catch(W){Se(e,e.return,W)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,u=n!==null?n.memoizedProps:s,h=e.type,m=e.updateQueue;if(e.updateQueue=null,m!==null)try{h==="input"&&s.type==="radio"&&s.name!=null&&Ni(o,s),cl(h,u);var N=cl(h,s);for(u=0;u<m.length;u+=2){var T=m[u],z=m[u+1];T==="style"?zi(o,z):T==="dangerouslySetInnerHTML"?Pi(o,z):T==="children"?Gn(o,z):Ce(o,T,z,N)}switch(h){case"input":ll(o,s);break;case"textarea":Ei(o,s);break;case"select":var $=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var I=s.value;I!=null?xn(o,!!s.multiple,I,!1):$!==!!s.multiple&&(s.defaultValue!=null?xn(o,!!s.multiple,s.defaultValue,!0):xn(o,!!s.multiple,s.multiple?[]:"",!1))}o[yr]=s}catch(W){Se(e,e.return,W)}}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(W){Se(e,e.return,W)}}break;case 3:if(yt(t,e),jt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{sr(t.containerInfo)}catch(W){Se(e,e.return,W)}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||(Ms=_e())),r&4&&Yu(e);break;case 22:if(T=n!==null&&n.memoizedState!==null,e.mode&1?(He=(N=He)||T,yt(t,e),He=N):yt(t,e),jt(e),r&8192){if(N=e.memoizedState!==null,(e.stateNode.isHidden=N)&&!T&&(e.mode&1)!==0)for(F=e,T=e.child;T!==null;){for(z=F=T;F!==null;){switch($=F,I=$.child,$.tag){case 0:case 11:case 14:case 15:$r(4,$,$.return);break;case 1:Bn($,$.return);var H=$.stateNode;if(typeof H.componentWillUnmount=="function"){r=$,n=$.return;try{t=r,H.props=t.memoizedProps,H.state=t.memoizedState,H.componentWillUnmount()}catch(W){Se(r,n,W)}}break;case 5:Bn($,$.return);break;case 22:if($.memoizedState!==null){Ju(z);continue}}I!==null?(I.return=$,F=I):Ju(z)}T=T.sibling}e:for(T=null,z=e;;){if(z.tag===5){if(T===null){T=z;try{o=z.stateNode,N?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(h=z.stateNode,m=z.memoizedProps.style,u=m!=null&&m.hasOwnProperty("display")?m.display:null,h.style.display=Ti("display",u))}catch(W){Se(e,e.return,W)}}}else if(z.tag===6){if(T===null)try{z.stateNode.nodeValue=N?"":z.memoizedProps}catch(W){Se(e,e.return,W)}}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;T===z&&(T=null),z=z.return}T===z&&(T=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:yt(t,e),jt(e),r&4&&Yu(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(qu(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=Qu(e);Ls(e,s,o);break;case 3:case 4:var u=r.stateNode.containerInfo,h=Qu(e);Rs(e,h,u);break;default:throw Error(a(161))}}catch(m){Se(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mp(e,t,n){F=e,Xu(e)}function Xu(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,s=o.child;if(o.tag===22&&r){var u=o.memoizedState!==null||Ro;if(!u){var h=o.alternate,m=h!==null&&h.memoizedState!==null||He;h=Ro;var N=He;if(Ro=u,(He=m)&&!N)for(F=o;F!==null;)u=F,m=u.child,u.tag===22&&u.memoizedState!==null?bu(o):m!==null?(m.return=u,F=m):bu(o);for(;s!==null;)F=s,Xu(s),s=s.sibling;F=o,Ro=h,He=N}Zu(e)}else(o.subtreeFlags&8772)!==0&&s!==null?(s.return=o,F=s):Zu(e)}}function Zu(e){for(;F!==null;){var t=F;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||Lo(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&&Ja(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}Ja(t,u,n)}break;case 5:var h=t.stateNode;if(n===null&&t.flags&4){n=h;var m=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":m.autoFocus&&n.focus();break;case"img":m.src&&(n.src=m.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 T=N.memoizedState;if(T!==null){var z=T.dehydrated;z!==null&&sr(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}He||t.flags&512&&zs(t)}catch($){Se(t,t.return,$)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Ju(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function bu(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Lo(4,t)}catch(m){Se(t,n,m)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(m){Se(t,o,m)}}var s=t.return;try{zs(t)}catch(m){Se(t,s,m)}break;case 5:var u=t.return;try{zs(t)}catch(m){Se(t,u,m)}}}catch(m){Se(t,t.return,m)}if(t===e){F=null;break}var h=t.sibling;if(h!==null){h.return=t.return,F=h;break}F=t.return}}var Ip=Math.ceil,Do=O.ReactCurrentDispatcher,Ds=O.ReactCurrentOwner,ut=O.ReactCurrentBatchConfig,re=0,Le=null,Pe=null,Ie=0,nt=0,Wn=Wt(0),ze=0,Pr=null,pn=0,Oo=0,Os=0,Tr=null,Ge=null,Ms=0,Vn=1/0,Dt=null,Mo=!1,Is=null,Gt=null,Io=!1,Xt=null,Ao=0,zr=0,As=null,Fo=-1,Uo=0;function We(){return(re&6)!==0?_e():Fo!==-1?Fo:Fo=_e()}function Zt(e){return(e.mode&1)===0?1:(re&2)!==0&&Ie!==0?Ie&-Ie:kp.transition!==null?(Uo===0&&(Uo=Qi()),Uo):(e=ae,e!==0||(e=window.event,e=e===void 0?16:ta(e.type)),e)}function vt(e,t,n,r){if(50<zr)throw zr=0,As=null,Error(a(185));tr(e,n,r),((re&2)===0||e!==Le)&&(e===Le&&((re&2)===0&&(Oo|=n),ze===4&&Jt(e,Ie)),Xe(e,r),n===1&&re===0&&(t.mode&1)===0&&(Vn=_e()+500,ho&&qt()))}function Xe(e,t){var n=e.callbackNode;kf(e,t);var r=Yr(e,e===Le?Ie:0);if(r===0)n!==null&&Wi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Wi(n),t===1)e.tag===0?wp(tc.bind(null,e)):Ua(tc.bind(null,e)),mp(function(){(re&6)===0&&qt()}),n=null;else{switch(Ki(r)){case 1:n=yl;break;case 4:n=Vi;break;case 16:n=Vr;break;case 536870912:n=qi;break;default:n=Vr}n=uc(n,ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ec(e,t){if(Fo=-1,Uo=0,(re&6)!==0)throw Error(a(327));var n=e.callbackNode;if(qn()&&e.callbackNode!==n)return null;var r=Yr(e,e===Le?Ie:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Ho(e,r);else{t=r;var o=re;re|=2;var s=rc();(Le!==e||Ie!==t)&&(Dt=null,Vn=_e()+500,mn(e,t));do try{Up();break}catch(h){nc(e,h)}while(!0);ns(),Do.current=s,re=o,Pe!==null?t=0:(Le=null,Ie=0,t=ze)}if(t!==0){if(t===2&&(o=vl(e),o!==0&&(r=o,t=Fs(e,o))),t===1)throw n=Pr,mn(e,0),Jt(e,r),Xe(e,_e()),n;if(t===6)Jt(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Ap(o)&&(t=Ho(e,r),t===2&&(s=vl(e),s!==0&&(r=s,t=Fs(e,s))),t===1))throw n=Pr,mn(e,0),Jt(e,r),Xe(e,_e()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:gn(e,Ge,Dt);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=Ms+500-_e(),10<t)){if(Yr(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ql(gn.bind(null,e,Ge,Dt),t);break}gn(e,Ge,Dt);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=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ip(r/1960))-r,10<r){e.timeoutHandle=ql(gn.bind(null,e,Ge,Dt),r);break}gn(e,Ge,Dt);break;case 5:gn(e,Ge,Dt);break;default:throw Error(a(329))}}}return Xe(e,_e()),e.callbackNode===n?ec.bind(null,e):null}function Fs(e,t){var n=Tr;return e.current.memoizedState.isDehydrated&&(mn(e,t).flags|=256),e=Ho(e,t),e!==2&&(t=Ge,Ge=n,t!==null&&Us(t)),e}function Us(e){Ge===null?Ge=e:Ge.push.apply(Ge,e)}function Ap(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&=~Os,t&=~Oo,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 tc(e){if((re&6)!==0)throw Error(a(327));qn();var t=Yr(e,0);if((t&1)===0)return Xe(e,_e()),null;var n=Ho(e,t);if(e.tag!==0&&n===2){var r=vl(e);r!==0&&(t=r,n=Fs(e,r))}if(n===1)throw n=Pr,mn(e,0),Jt(e,t),Xe(e,_e()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gn(e,Ge,Dt),Xe(e,_e()),null}function Hs(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Vn=_e()+500,ho&&qt())}}function hn(e){Xt!==null&&Xt.tag===0&&(re&6)===0&&qn();var t=re;re|=1;var n=ut.transition,r=ae;try{if(ut.transition=null,ae=1,e)return e()}finally{ae=r,ut.transition=n,re=t,(re&6)===0&&qt()}}function Bs(){nt=Wn.current,ge(Wn)}function mn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hp(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Zl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fo();break;case 3:Un(),ge(Qe),ge(Ae),cs();break;case 5:as(r);break;case 4:Un();break;case 13:ge(we);break;case 19:ge(we);break;case 10:rs(r.type._context);break;case 22:case 23:Bs()}n=n.return}if(Le=e,Pe=e=bt(e.current,null),Ie=nt=t,ze=0,Pr=null,Os=Oo=pn=0,Ge=Tr=null,cn!==null){for(t=0;t<cn.length;t++)if(n=cn[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}cn=null}return e}function nc(e,t){do{var n=Pe;try{if(ns(),_o.current=$o,jo){for(var r=ke.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}jo=!1}if(fn=0,Re=Te=ke=null,Nr=!1,_r=0,Ds.current=null,n===null||n.return===null){ze=1,Pr=t,Pe=null;break}e:{var s=e,u=n.return,h=n,m=t;if(t=Ie,h.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){var N=m,T=h,z=T.tag;if((T.mode&1)===0&&(z===0||z===11||z===15)){var $=T.alternate;$?(T.updateQueue=$.updateQueue,T.memoizedState=$.memoizedState,T.lanes=$.lanes):(T.updateQueue=null,T.memoizedState=null)}var I=Cu(u);if(I!==null){I.flags&=-257,$u(I,u,h,s,t),I.mode&1&&Eu(s,N,t),t=I,m=N;var H=t.updateQueue;if(H===null){var W=new Set;W.add(m),t.updateQueue=W}else H.add(m);break e}else{if((t&1)===0){Eu(s,N,t),Ws();break e}m=Error(a(426))}}else if(ve&&h.mode&1){var je=Cu(u);if(je!==null){(je.flags&65536)===0&&(je.flags|=256),$u(je,u,h,s,t),es(Hn(m,h));break e}}s=m=Hn(m,h),ze!==4&&(ze=2),Tr===null?Tr=[s]:Tr.push(s),s=u;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var x=_u(s,m,t);Za(s,x);break e;case 1:h=m;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 L=ju(s,h,t);Za(s,L);break e}}s=s.return}while(s!==null)}lc(n)}catch(q){t=q,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function rc(){var e=Do.current;return Do.current=$o,e===null?$o:e}function Ws(){(ze===0||ze===3||ze===2)&&(ze=4),Le===null||(pn&268435455)===0&&(Oo&268435455)===0||Jt(Le,Ie)}function Ho(e,t){var n=re;re|=2;var r=rc();(Le!==e||Ie!==t)&&(Dt=null,mn(e,t));do try{Fp();break}catch(o){nc(e,o)}while(!0);if(ns(),re=n,Do.current=r,Pe!==null)throw Error(a(261));return Le=null,Ie=0,ze}function Fp(){for(;Pe!==null;)oc(Pe)}function Up(){for(;Pe!==null&&!df();)oc(Pe)}function oc(e){var t=ac(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?lc(e):Pe=t,Ds.current=null}function lc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Rp(n,t,nt),n!==null){Pe=n;return}}else{if(n=Lp(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Pe=null;return}}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);ze===0&&(ze=5)}function gn(e,t,n){var r=ae,o=ut.transition;try{ut.transition=null,ae=1,Hp(e,t,n,r)}finally{ut.transition=o,ae=r}return null}function Hp(e,t,n,r){do qn();while(Xt!==null);if((re&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(xf(e,s),e===Le&&(Pe=Le=null,Ie=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Io||(Io=!0,uc(Vr,function(){return qn(),null})),s=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||s){s=ut.transition,ut.transition=null;var u=ae;ae=1;var h=re;re|=4,Ds.current=null,Op(e,n),Gu(n,e),ip(Wl),Zr=!!Bl,Wl=Bl=null,e.current=n,Mp(n),ff(),re=h,ae=u,ut.transition=s}else e.current=n;if(Io&&(Io=!1,Xt=e,Ao=o),s=e.pendingLanes,s===0&&(Gt=null),mf(n.stateNode),Xe(e,_e()),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(Mo)throw Mo=!1,e=Is,Is=null,e;return(Ao&1)!==0&&e.tag!==0&&qn(),s=e.pendingLanes,(s&1)!==0?e===As?zr++:(zr=0,As=e):zr=0,qt(),null}function qn(){if(Xt!==null){var e=Ki(Ao),t=ut.transition,n=ae;try{if(ut.transition=null,ae=16>e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Ao=0,(re&6)!==0)throw Error(a(331));var o=re;for(re|=4,F=e.current;F!==null;){var s=F,u=s.child;if((F.flags&16)!==0){var h=s.deletions;if(h!==null){for(var m=0;m<h.length;m++){var N=h[m];for(F=N;F!==null;){var T=F;switch(T.tag){case 0:case 11:case 15:$r(8,T,s)}var z=T.child;if(z!==null)z.return=T,F=z;else for(;F!==null;){T=F;var $=T.sibling,I=T.return;if(Vu(T),T===N){F=null;break}if($!==null){$.return=I,F=$;break}F=I}}}var H=s.alternate;if(H!==null){var W=H.child;if(W!==null){H.child=null;do{var je=W.sibling;W.sibling=null,W=je}while(W!==null)}}F=s}}if((s.subtreeFlags&2064)!==0&&u!==null)u.return=s,F=u;else e:for(;F!==null;){if(s=F,(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,F=x;break e}F=s.return}}var v=e.current;for(F=v;F!==null;){u=F;var S=u.child;if((u.subtreeFlags&2064)!==0&&S!==null)S.return=u,F=S;else e:for(u=v;F!==null;){if(h=F,(h.flags&2048)!==0)try{switch(h.tag){case 0:case 11:case 15:Lo(9,h)}}catch(q){Se(h,h.return,q)}if(h===u){F=null;break e}var L=h.sibling;if(L!==null){L.return=h.return,F=L;break e}F=h.return}}if(re=o,qt(),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(qr,e)}catch{}r=!0}return r}finally{ae=n,ut.transition=t}}return!1}function sc(e,t,n){t=Hn(n,t),t=_u(e,t,1),e=Kt(e,t,1),t=We(),e!==null&&(tr(e,1,t),Xe(e,t))}function Se(e,t,n){if(e.tag===3)sc(e,e,n);else for(;t!==null;){if(t.tag===3){sc(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=Hn(n,e),e=ju(t,e,1),t=Kt(t,e,1),e=We(),t!==null&&(tr(t,1,e),Xe(t,e));break}}t=t.return}}function Bp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Ie&n)===n&&(ze===4||ze===3&&(Ie&130023424)===Ie&&500>_e()-Ms?mn(e,0):Os|=n),Xe(e,t)}function ic(e,t){t===0&&((e.mode&1)===0?t=1:(t=Kr,Kr<<=1,(Kr&130023424)===0&&(Kr=4194304)));var n=We();e=zt(e,t),e!==null&&(tr(e,t,n),Xe(e,n))}function Wp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ic(e,n)}function Vp(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),ic(e,n)}var ac;ac=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,zp(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,ve&&(t.flags&1048576)!==0&&Ha(t,go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zo(e,t),e=t.pendingProps;var o=Ln(t,Ae.current);Fn(t,n),o=ps(null,t,r,e,o,n);var s=hs();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,po(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ss(t),o.updater=Po,t.stateNode=o,o._reactInternals=t,ks(t,r,e,n),t=_s(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&Xl(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Qp(r),e=mt(r,e),o){case 0:t=Ns(null,t,r,e,n);break e;case 1:t=Du(null,t,r,e,n);break e;case 11:t=Pu(null,t,r,e,n);break e;case 14:t=Tu(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),Ns(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Du(e,t,r,o,n);case 3:e:{if(Ou(t),e===null)throw Error(a(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Xa(e,t),So(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=Hn(Error(a(423)),t),t=Mu(e,t,r,n,o);break e}else if(r!==o){o=Hn(Error(a(424)),t),t=Mu(e,t,r,n,o);break e}else for(tt=Bt(t.stateNode.containerInfo.firstChild),et=t,ve=!0,ht=null,n=Ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===o){t=Lt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return ba(t),e===null&&bl(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,u=o.children,Vl(r,o)?u=null:s!==null&&Vl(r,s)&&(t.flags|=32),Lu(e,t),Be(e,t,u,n),t.child;case 6:return e===null&&bl(t),null;case 13:return Iu(e,t,n);case 4:return is(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=In(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),Pu(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,he(wo,r._currentValue),r._currentValue=u,s!==null)if(pt(s.value,u)){if(s.children===o.children&&!Qe.current){t=Lt(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 m=h.firstContext;m!==null;){if(m.context===r){if(s.tag===1){m=Rt(-1,n&-n),m.tag=2;var N=s.updateQueue;if(N!==null){N=N.shared;var T=N.pending;T===null?m.next=m:(m.next=T.next,T.next=m),N.pending=m}}s.lanes|=n,m=s.alternate,m!==null&&(m.lanes|=n),os(s.return,n,t),h.lanes|=n;break}m=m.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),os(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,Fn(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),Tu(e,t,r,o,n);case 15:return zu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),zo(e,t),t.tag=1,Ke(r)?(e=!0,po(t)):e=!1,Fn(t,n),Su(t,r,o),ks(t,r,o,n),_s(null,t,r,!0,e,n);case 19:return Fu(e,t,n);case 22:return Ru(e,t,n)}throw Error(a(156,t.tag))};function uc(e,t){return Bi(e,t)}function qp(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 qp(e,t,n,r)}function Vs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qp(e){if(typeof e=="function")return Vs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ve)return 11;if(e===kt)return 14}return 2}function bt(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 Bo(e,t,n,r,o,s){var u=2;if(r=e,typeof e=="function")Vs(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Ne:return yn(n.children,o,s,t);case G:u=8,o|=8;break;case ne:return e=ct(12,n,t,o|2),e.elementType=ne,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 xe:return Wo(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $e: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 yn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function Wo(e,t,n,r){return e=ct(22,e,r,t),e.elementType=xe,e.lanes=n,e.stateNode={isHidden:!1},e}function qs(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Qs(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 Kp(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=wl(0),this.expirationTimes=wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ks(e,t,n,r,o,s,u,h,m){return e=new Kp(e,t,n,h,m),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},ss(s),e}function Yp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fe,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function cc(e){if(!e)return Vt;e=e._reactInternals;e:{if(on(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 Aa(e,n,t)}return t}function dc(e,t,n,r,o,s,u,h,m){return e=Ks(n,r,!0,e,o,s,u,h,m),e.context=cc(null),n=e.current,r=We(),o=Zt(n),s=Rt(r,o),s.callback=t??null,Kt(n,s,o),e.current.lanes=o,tr(e,o,r),Xe(e,r),e}function Vo(e,t,n,r){var o=t.current,s=We(),u=Zt(o);return n=cc(n),t.context===null?t.context=n:t.pendingContext=n,t=Rt(s,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Kt(o,t,u),e!==null&&(vt(e,o,u,s),xo(e,o,u)),u}function qo(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 fc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ys(e,t){fc(e,t),(e=e.alternate)&&fc(e,t)}function Gp(){return null}var pc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gs(e){this._internalRoot=e}Qo.prototype.render=Gs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Vo(e,t,null,null)},Qo.prototype.unmount=Gs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hn(function(){Vo(null,e,null,null)}),t[Ct]=null}};function Qo(e){this._internalRoot=e}Qo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&bi(e)}};function Xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ko(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hc(){}function Xp(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var N=qo(u);s.call(N)}}var u=dc(t,r,e,0,null,!1,!1,"",hc);return e._reactRootContainer=u,e[Ct]=u.current,mr(e.nodeType===8?e.parentNode:e),hn(),u}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var h=r;r=function(){var N=qo(m);h.call(N)}}var m=Ks(e,0,!1,null,null,!1,!1,"",hc);return e._reactRootContainer=m,e[Ct]=m.current,mr(e.nodeType===8?e.parentNode:e),hn(function(){Vo(t,m,n,r)}),m}function Yo(e,t,n,r,o){var s=n._reactRootContainer;if(s){var u=s;if(typeof o=="function"){var h=o;o=function(){var m=qo(u);h.call(m)}}Vo(t,u,e,o)}else u=Xp(n,t,e,o,r);return qo(u)}Yi=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=er(t.pendingLanes);n!==0&&(kl(t,n|1),Xe(t,_e()),(re&6)===0&&(Vn=_e()+500,qt()))}break;case 13:hn(function(){var r=zt(e,1);if(r!==null){var o=We();vt(r,e,1,o)}}),Ys(e,1)}},xl=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=We();vt(t,e,134217728,n)}Ys(e,134217728)}},Gi=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)}Ys(e,t)}},Xi=function(){return ae},Zi=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}},pl=function(e,t,n){switch(t){case"input":if(ll(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=co(r);if(!o)throw Error(a(90));xi(r),ll(r,o)}}}break;case"textarea":Ei(e,n);break;case"select":t=n.value,t!=null&&xn(e,!!n.multiple,t,!1)}},Oi=Hs,Mi=hn;var Zp={usingClientEntryPoint:!1,Events:[vr,zn,co,Li,Di,Hs]},Rr={findFiberByHostInstance:ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Jp={bundleType:Rr.bundleType,version:Rr.version,rendererPackageName:Rr.rendererPackageName,rendererConfig:Rr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ui(e),e===null?null:e.stateNode},findFiberByHostInstance:Rr.findFiberByHostInstance||Gp,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 Go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Go.isDisabled&&Go.supportsFiber)try{qr=Go.inject(Jp),xt=Go}catch{}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zp,Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xs(t))throw Error(a(200));return Yp(e,t,null,n)},Ze.createRoot=function(e,t){if(!Xs(e))throw Error(a(299));var n=!1,r="",o=pc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ks(e,1,!1,null,null,n,!1,r,o),e[Ct]=t.current,mr(e.nodeType===8?e.parentNode:e),new Gs(t)},Ze.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=Ui(t),e=e===null?null:e.stateNode,e},Ze.flushSync=function(e){return hn(e)},Ze.hydrate=function(e,t,n){if(!Ko(t))throw Error(a(200));return Yo(null,e,t,!0,n)},Ze.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(a(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",u=pc;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=dc(t,null,e,1,n??null,o,!1,s,u),e[Ct]=t.current,mr(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 Qo(t)},Ze.render=function(e,t,n){if(!Ko(t))throw Error(a(200));return Yo(null,e,t,!1,n)},Ze.unmountComponentAtNode=function(e){if(!Ko(e))throw Error(a(40));return e._reactRootContainer?(hn(function(){Yo(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1},Ze.unstable_batchedUpdates=Hs,Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ko(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Yo(e,t,n,!1,r)},Ze.version="18.3.1-next-f1338f8080-20240426",Ze}var Sc;function sh(){if(Sc)return bs.exports;Sc=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(),bs.exports=lh(),bs.exports}var Nc;function ih(){if(Nc)return Xo;Nc=1;var l=sh();return Xo.createRoot=l.createRoot,Xo.hydrateRoot=l.hydrateRoot,Xo}var ah=ih();const uh=(function(){const i=typeof document<"u"&&document.createElement("link").relList;return i&&i.supports&&i.supports("modulepreload")?"modulepreload":"preload"})(),ch=function(l){return"/"+l},_c={},pi=function(i,a,c){let f=Promise.resolve();if(a&&a.length>0){let y=function(E){return Promise.all(E.map(j=>Promise.resolve(j).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};document.getElementsByTagName("link");const w=document.querySelector("meta[property=csp-nonce]"),g=(w==null?void 0:w.nonce)||(w==null?void 0:w.getAttribute("nonce"));f=y(a.map(E=>{if(E=ch(E),E in _c)return;_c[E]=!0;const j=E.endsWith(".css"),R=j?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${E}"]${R}`))return;const C=document.createElement("link");if(C.rel=j?"stylesheet":uh,j||(C.as="script"),C.crossOrigin="",C.href=E,g&&C.setAttribute("nonce",g),document.head.appendChild(C),j)return new Promise((D,_)=>{C.addEventListener("load",D),C.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${E}`)))})}))}function p(y){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=y,window.dispatchEvent(w),!w.defaultPrevented)throw y}return f.then(y=>{for(const w of y||[])w.status==="rejected"&&p(w.reason);return i().catch(p)})},qc="caddis-hub-tab",dh="X-Caddis-Hub-Tab",fh="X-CSRF-Token";class ii extends Error{constructor(i,a){super(a),this.status=i}}function Qc(){try{return window.localStorage}catch{return null}}let ai=null;function ph(l=window.location,i=window.history,a=Qc()){const c=/(?:^#|&)tab=([^&]+)/.exec(l.hash);if(!(c!=null&&c[1]))return;let f;try{f=decodeURIComponent(c[1])}catch{return}ai=f;try{a==null||a.setItem(qc,f)}catch{}i.replaceState(null,"",l.pathname+l.search)}function Kc(l=Qc()){try{return(l==null?void 0:l.getItem(qc))||ai}catch{return ai}}function Yc(l,i){const a={Accept:"application/json"};return l&&(a[dh]=l),i&&(a[fh]=i),a}async function hi(l){const i=Kc();if(!i)throw new ii(401,"no tab token");const a=await fetch(l,{headers:Yc(i),credentials:"same-origin",cache:"no-store"});if(!a.ok)throw new ii(a.status,`${l} answered ${a.status}`);return await a.json()}const hh=()=>hi("/api/session"),mh=()=>hi("/api/state"),gh=(l,i,a)=>hi("/api/plan-phase?repo="+encodeURIComponent(l)+"&plan="+encodeURIComponent(i)+"&key="+encodeURIComponent(a));let Jo=null;async function yh(){return Jo||(Jo=(await hh()).csrf_token),Jo}async function vh(l){const i=Kc();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:{...Yc(i,await yh()),"Content-Type":"application/json"},body:JSON.stringify(l),credentials:"same-origin",cache:"no-store"});try{let c=await a();c.status===403&&(Jo=null,c=await a());const f=await c.json().catch(()=>({}));return c.status===202&&f.request&&typeof f.request=="object"?{ok:!0,request:f.request}:{ok:!1,status:c.status,error:typeof f.error=="string"?f.error:"failed",reason:typeof f.reason=="string"?f.reason:`The hub answered ${c.status}.`}}catch{return{ok:!1,status:0,error:"network",reason:"The hub did not answer."}}}function wh(l){const[i,a]=Y.useState({}),c=(p,y)=>a(w=>({...w,[p]:y})),f=Y.useCallback(p=>{c(p.key,{status:"sending",reason:null,requestId:null,at:Date.now()}),vh(p.body).then(y=>{y.ok?c(p.key,{status:"sent",reason:null,requestId:y.request.id,at:Date.now()}):c(p.key,{status:"refused",reason:y.reason,requestId:null,at:Date.now()}),l()})},[l]);return{local:i,run:f}}/**
42
42
  * @license lucide-react v1.61.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const wh=l=>l==null?void 0:l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
46
+ */const kh=l=>l==null?void 0:l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
47
47
  * @license lucide-react v1.61.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */function kh(l,i,a=[]){if(i==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:wh(l),size:24,node:i,...a.length>0?{aliases:a}:{}}}/**
51
+ */function xh(l,i,a=[]){if(i==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:kh(l),size:24,node:i,...a.length>0?{aliases:a}:{}}}/**
52
52
  * @license lucide-react v1.61.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const xh=l=>{let i="",a=!1;for(const c of l){if(c==="-"||c==="_"||c<=" "){a=i.length>0;continue}i.length===0?i+=c.toLowerCase():i+=a?c.toUpperCase():c,a=!1}return i};/**
56
+ */const Sh=l=>{let i="",a=!1;for(const c of l){if(c==="-"||c==="_"||c<=" "){a=i.length>0;continue}i.length===0?i+=c.toLowerCase():i+=a?c.toUpperCase():c,a=!1}return i};/**
57
57
  * @license lucide-react v1.61.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const Sh=l=>{const i=xh(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
61
+ */const Nh=l=>{const i=Sh(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
62
62
  * @license lucide-react v1.61.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
@@ -73,159 +73,159 @@ Error generating stack: `+s.message+`
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */function ni(l){return l!=null}function Nh(l,i={}){var C,D;const a=i.attributeNames??{},c=_=>a[_]??_,f=l.size??l.width??vn.width,p=l.size??l.height??vn.height,y=((C=l.aliases)==null?void 0:C.filter(_=>typeof _=="string"&&_.trim()!=="").map(_=>`lucide-${_}`))??[],w=[...l.name?[`lucide-${l.name}`]:[],...y],g=((D=i.className)==null?void 0:D.split(" ").filter(Boolean))??[],E=i.includeDefaultClasses===!1?ui(...g):ui("lucide",...w,...g),j=i.absoluteStrokeWidth?Number(i.strokeWidth??vn["stroke-width"])*Number(l.size??l.width??vn.width)/Number(i.size??i.width??vn.width):i.strokeWidth??vn["stroke-width"];return["svg",{...Object.entries(vn).reduce((_,[V,A])=>(_[c(V)]=A,_),{}),..."color"in i&&i.color&&{[c("stroke")]:i.color},..."size"in i&&ni(i.size)&&{[c("width")]:i.size,[c("height")]:i.size},..."width"in i&&ni(i.width)&&{[c("width")]:i.width},..."height"in i&&ni(i.height)&&{[c("height")]:i.height},[c("stroke-width")]:j,...E&&{[c("class")]:E},[c("viewBox")]:`0 0 ${f} ${p}`,...i.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},l.node.map(_=>{const[V,A,B]=_,ce=i.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...A}:A;return B?[V,ce,B]:[V,ce]})]}/**
76
+ */function ni(l){return l!=null}function _h(l,i={}){var C,D;const a=i.attributeNames??{},c=_=>a[_]??_,f=l.size??l.width??vn.width,p=l.size??l.height??vn.height,y=((C=l.aliases)==null?void 0:C.filter(_=>typeof _=="string"&&_.trim()!=="").map(_=>`lucide-${_}`))??[],w=[...l.name?[`lucide-${l.name}`]:[],...y],g=((D=i.className)==null?void 0:D.split(" ").filter(Boolean))??[],E=i.includeDefaultClasses===!1?ui(...g):ui("lucide",...w,...g),j=i.absoluteStrokeWidth?Number(i.strokeWidth??vn["stroke-width"])*Number(l.size??l.width??vn.width)/Number(i.size??i.width??vn.width):i.strokeWidth??vn["stroke-width"];return["svg",{...Object.entries(vn).reduce((_,[V,A])=>(_[c(V)]=A,_),{}),..."color"in i&&i.color&&{[c("stroke")]:i.color},..."size"in i&&ni(i.size)&&{[c("width")]:i.size,[c("height")]:i.size},..."width"in i&&ni(i.width)&&{[c("width")]:i.width},..."height"in i&&ni(i.height)&&{[c("height")]:i.height},[c("stroke-width")]:j,...E&&{[c("class")]:E},[c("viewBox")]:`0 0 ${f} ${p}`,...i.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},l.node.map(_=>{const[V,A,B]=_,ce=i.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...A}:A;return B?[V,ce,B]:[V,ce]})]}/**
77
77
  * @license lucide-react v1.61.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */function _h(l,i={}){return Nh(l,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
81
+ */function jh(l,i={}){return _h(l,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
82
82
  * @license lucide-react v1.61.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const jh=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Eh=Y.createContext({}),Ch=()=>Y.useContext(Eh),$h=Y.forwardRef(({color:l,size:i,width:a,height:c,strokeWidth:f,absoluteStrokeWidth:p,nonScalingStroke:y,className:w="",children:g,iconNode:E=[],icon:j={node:E,aliases:[],size:24},...R},C)=>{const{size:D=24,strokeWidth:_=2,absoluteStrokeWidth:V=!1,nonScalingStroke:A=!1,color:B="currentColor",className:ce=""}=Ch()??{},Ee=!!g||jh(R),[O,de,fe=[]]=_h(j,{color:l??B,width:a??i??D,height:c??i??D,strokeWidth:f??_,absoluteStrokeWidth:p??V,nonScalingStroke:y??A,className:ui(ce,w),hasA11yProp:Ee,attributes:R});return Y.createElement(O,{ref:C,...de},[...fe.map(([Ne,G])=>Y.createElement(Ne,G)),...Array.isArray(g)?g:[g]])});/**
86
+ */const Eh=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Ch=Y.createContext({}),$h=()=>Y.useContext(Ch),Ph=Y.forwardRef(({color:l,size:i,width:a,height:c,strokeWidth:f,absoluteStrokeWidth:p,nonScalingStroke:y,className:w="",children:g,iconNode:E=[],icon:j={node:E,aliases:[],size:24},...R},C)=>{const{size:D=24,strokeWidth:_=2,absoluteStrokeWidth:V=!1,nonScalingStroke:A=!1,color:B="currentColor",className:ce=""}=$h()??{},Ce=!!g||Eh(R),[O,de,fe=[]]=jh(j,{color:l??B,width:a??i??D,height:c??i??D,strokeWidth:f??_,absoluteStrokeWidth:p??V,nonScalingStroke:y??A,className:ui(ce,w),hasA11yProp:Ce,attributes:R});return Y.createElement(O,{ref:C,...de},[...fe.map(([Ne,G])=>Y.createElement(Ne,G)),...Array.isArray(g)?g:[g]])});/**
87
87
  * @license lucide-react v1.61.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */function ue(l,i=[],a=[]){const c=typeof l=="string"?kh(l,i,a):l,f=Y.forwardRef(({className:p,...y},w)=>Y.createElement($h,{ref:w,icon:c,className:p,...y}));return c.name&&(f.displayName=Sh(c.name)),f}/**
91
+ */function ue(l,i=[],a=[]){const c=typeof l=="string"?xh(l,i,a):l,f=Y.forwardRef(({className:p,...y},w)=>Y.createElement(Ph,{ref:w,icon:c,className:p,...y}));return c.name&&(f.displayName=Nh(c.name)),f}/**
92
92
  * @license lucide-react v1.61.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const Yc={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"}]]};Yc.node;const Th=ue(Yc);/**
96
+ */const Gc={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"}]]};Gc.node;const Th=ue(Gc);/**
97
97
  * @license lucide-react v1.61.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const Gc={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"}]]};Gc.node;const Ph=ue(Gc);/**
101
+ */const Xc={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"}]]};Xc.node;const zh=ue(Xc);/**
102
102
  * @license lucide-react v1.61.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const Xc={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Xc.node;const zh=ue(Xc);/**
106
+ */const Zc={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Zc.node;const Rh=ue(Zc);/**
107
107
  * @license lucide-react v1.61.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const Zc={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"}]]};Zc.node;const Rh=ue(Zc);/**
111
+ */const Jc={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"}]]};Jc.node;const Lh=ue(Jc);/**
112
112
  * @license lucide-react v1.61.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const Jc={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"}]]};Jc.node;const bc=ue(Jc);/**
116
+ */const bc={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"}]]};bc.node;const ed=ue(bc);/**
117
117
  * @license lucide-react v1.61.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const ed={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"}]]};ed.node;const Lh=ue(ed);/**
121
+ */const td={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"}]]};td.node;const Dh=ue(td);/**
122
122
  * @license lucide-react v1.61.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const td={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};td.node;const Dh=ue(td);/**
126
+ */const nd={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};nd.node;const Oh=ue(nd);/**
127
127
  * @license lucide-react v1.61.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const nd={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};nd.node;const Oh=ue(nd);/**
131
+ */const rd={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};rd.node;const Mh=ue(rd);/**
132
132
  * @license lucide-react v1.61.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const rd={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};rd.node;const Mh=ue(rd);/**
136
+ */const od={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};od.node;const Ih=ue(od);/**
137
137
  * @license lucide-react v1.61.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const od={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"}]]};od.node;const ld=ue(od);/**
141
+ */const ld={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"}]]};ld.node;const sd=ue(ld);/**
142
142
  * @license lucide-react v1.61.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const sd={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"}]]};sd.node;const Ih=ue(sd);/**
146
+ */const id={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"}]]};id.node;const Ah=ue(id);/**
147
147
  * @license lucide-react v1.61.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const id={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"}]]};id.node;const Ah=ue(id);/**
151
+ */const ad={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"}]]};ad.node;const Fh=ue(ad);/**
152
152
  * @license lucide-react v1.61.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const ad={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"}]]};ad.node;const Fh=ue(ad);/**
156
+ */const ud={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"}]]};ud.node;const Uh=ue(ud);/**
157
157
  * @license lucide-react v1.61.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const ud={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"}]]};ud.node;const Uh=ue(ud);/**
161
+ */const cd={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"}]]};cd.node;const Hh=ue(cd);/**
162
162
  * @license lucide-react v1.61.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const cd={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};cd.node;const Hh=ue(cd);/**
166
+ */const dd={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};dd.node;const Bh=ue(dd);/**
167
167
  * @license lucide-react v1.61.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const dd={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"}]]};dd.node;const Bh=ue(dd);/**
171
+ */const fd={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"}]]};fd.node;const Wh=ue(fd);/**
172
172
  * @license lucide-react v1.61.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const fd={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"}]]};fd.node;const Wh=ue(fd);/**
176
+ */const pd={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"}]]};pd.node;const Vh=ue(pd);/**
177
177
  * @license lucide-react v1.61.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const pd={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"]};pd.node;const Vh=ue(pd);/**
181
+ */const hd={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"]};hd.node;const qh=ue(hd);/**
182
182
  * @license lucide-react v1.61.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const hd={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"}]]};hd.node;const qh=ue(hd);/**
186
+ */const md={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"}]]};md.node;const Qh=ue(md);/**
187
187
  * @license lucide-react v1.61.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const md={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"}]]};md.node;const Qh=ue(md);/**
191
+ */const gd={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"}]]};gd.node;const Kh=ue(gd);/**
192
192
  * @license lucide-react v1.61.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const gd={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"}]]};gd.node;const Kh=ue(gd);/**
196
+ */const yd={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"}]]};yd.node;const Yh=ue(yd);/**
197
197
  * @license lucide-react v1.61.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const yd={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"}]]};yd.node;const Yh=ue(yd);/**
201
+ */const vd={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"}]]};vd.node;const Gh=ue(vd);/**
202
202
  * @license lucide-react v1.61.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const vd={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"}]]};vd.node;const Gh=ue(vd);/**
206
+ */const wd={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"}]]};wd.node;const Xh=ue(wd);/**
207
207
  * @license lucide-react v1.61.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const wd={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"}]]};wd.node;const Xh=ue(wd);/**
211
+ */const kd={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"}]]};kd.node;const Zh=ue(kd);/**
212
212
  * @license lucide-react v1.61.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const kd={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};kd.node;const xd=ue(kd);/**
216
+ */const xd={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};xd.node;const Sd=ue(xd);/**
217
217
  * @license lucide-react v1.61.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const Sd={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"]};Sd.node;const Zh=ue(Sd);/**
221
+ */const Nd={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"]};Nd.node;const Jh=ue(Nd);/**
222
222
  * @license lucide-react v1.61.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
- */const Nd={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"}]]};Nd.node;const Jh=ue(Nd);/**
226
+ */const _d={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"}]]};_d.node;const bh=ue(_d);/**
227
227
  * @license lucide-react v1.61.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
- */const _d={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};_d.node;const bh=ue(_d),mi={hotfix:"Mark hotfix",unhotfix:"Unmark hotfix",hold:"Hold",release:"Release",approve:"Approve",decline:"Decline"},bo={hotfix:"hotfix",unhotfix:"hotfix",hold:"hold",release:"hold",approve:"approve",decline:"approve"},jd=l=>l.repo_id??null,Ed=(l,i,a)=>`${l}:${bo[i]}:${a}`;function gi(l,i){const a=jd(l),c=$d(l,i.pr)??i.headSha;if(!a||!c)return[];const f=p=>({key:Ed(a,p,i.pr),label:mi[p],body:{repo_id:a,action:p,pr:i.pr,head_sha:c}});return[f(i.hotfix?"unhotfix":"hotfix"),f(i.held?"release":"hold")]}function Cd(l,i){const a=jd(l);if(!a)return[];const c=i.pr!==null?$d(l,i.pr)??i.head_sha:null;return["approve","decline"].map(f=>({key:Ed(a,f,i.what),label:mi[f],body:{repo_id:a,action:f,pr:i.pr,head_sha:c,what:i.what}}))}function $d(l,i){var a,c,f;return((f=(c=(a=l.github)==null?void 0:a.prs)==null?void 0:c.find(p=>p.number===i))==null?void 0:f.head_sha)??null}function Td(l){return l.actions?l.actions.enabled?null:l.actions.reason??"Actions need a live coordinator.":"Actions need a live coordinator."}function Pd(l,i){var f;const a=Td(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 em(l,i){var f;const a=((f=l.coordinator)==null?void 0:f.requests)??[],c=bo[i.body.action];for(let p=a.length-1;p>=0;p--){const y=a[p],w=y.action;if(!(!(w in bo)||bo[w]!==c)&&(i.body.what!==void 0?y.what===i.body.what&&y.pr===i.body.pr:y.pr===i.body.pr))return y}return null}function zd(l){const i=mi[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 Rd=l=>l==="done"?"good":l==="requested"?"muted":l==="not_picked_up"?"warn":"bad";function tm(l,i,a){const c=em(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"&&(!c||c.id!==a.requestId)?{text:`${i.label}: requested. Waiting for the coordinator.`,tone:"muted"}:c?{text:zd(c),tone:Rd(c.status)}:null}function nl({repo:l,specs:i,act:a,compact:c=!1,reason:f}){if(i.length===0)return null;const p=f!==void 0?f:Td(l),y=new Set,w=[];for(const g of i){if(y.has(g.key))continue;y.add(g.key);const E=tm(l,g,a.local[g.key]);E&&w.push({key:g.key,...E})}return d.jsxs("div",{className:`action-row${c?" compact":""}`,"data-testid":"actions",children:[d.jsx("div",{className:"action-buttons",children:i.map(g=>{var E;return d.jsx("button",{type:"button",className:"btn btn-act",disabled:p!==null||((E=a.local[g.key])==null?void 0:E.status)==="sending",title:p??void 0,onClick:()=>a.run(g),"data-testid":`act-${g.body.action}`,children:g.label},`${g.key}:${g.body.action}`)})}),p&&!c&&d.jsx("span",{className:"action-reason","data-testid":"action-reason",children:p}),w.map(g=>d.jsx("span",{className:`request-status tone-${g.tone}`,"data-testid":"request-status",role:"status",children:g.text},g.key))]})}function Ld({item:l}){const i=l.recommendation,a=l.from?`from ${l.from}`:l.source==="coordinator"?"from the coordinator":"from the asking session";return d.jsxs("div",{className:"detail-block recommendation","data-testid":"recommendation",children:[d.jsxs("span",{className:"detail-label",children:["Recommendation, ",a]}),i?d.jsxs(d.Fragment,{children:[d.jsxs("span",{children:[d.jsx("strong",{className:`rec-${i.decision}`,children:i.decision==="approve"?"Approve":"Hold"}),i.reason?`: ${i.reason}`:""]}),i.evidence&&d.jsxs("span",{className:"rec-evidence",children:["Evidence: ",i.evidence]})]}):d.jsx("span",{children:"No recommendation was recorded. Read the source before you decide."}),d.jsx("span",{className:"rec-note",children:"A recommendation is not an approval. Only your click approves."})]})}const jc="caddis hub";function nm(l){return l>0?`(${l}) ${jc}`:jc}function tn(l,i){if(!l)return"unknown";const a=Date.parse(l);if(Number.isNaN(a))return"unknown";const c=Math.max(0,Math.round((i-a)/1e3));if(c<5)return"just now";if(c<60)return`${c} s ago`;const f=Math.floor(c/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 rm=(l,i)=>`Updated ${tn(l,i)}`;function Mr(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 om(l){const i=Number(l==null?void 0:l.cap_eur),a=Number(l==null?void 0:l.committed_eur),c=(l==null?void 0:l.configured)===!0&&Number.isFinite(i)&&i>0,f=Number.isFinite(a)?a:0;return{configured:c,capEur:c?i:0,committedEur:f,pct:c?Math.min(100,Math.max(0,f/i*100)):0}}const ci=l=>Object.values(l.sources??{}).some(i=>!i.ok||i.stale),lm=500;function Dd(l){const i=l==null?void 0:l.github_rate;if(!i||typeof i!="object")return null;let a=null;for(const[c,f]of Object.entries(i)){const p=f,y=typeof(p==null?void 0:p.remaining)=="number"&&Number.isFinite(p.remaining)?p.remaining:NaN;Number.isNaN(y)||(!a||y<a.remaining)&&(a={account:c,remaining:y,resetAt:typeof(p==null?void 0:p.reset_at)=="string"?p.reset_at:null})}return a}function sm(l){const i=Dd(l);return i&&i.remaining<lm?i:null}const ct=l=>Array.isArray(l)?l:[],im={todo:"to do","in-progress":"in progress",done:"done",moved:"moved",blocked:"blocked"},nn=new Set(["done","not-needed"]),Yg="No roadmap or plan",Gg="/caddis:roadmap",Xg=[{key:"todo",label:"To do"},{key:"in-progress",label:"In progress"},{key:"blocked",label:"Blocked"},{key:"done",label:"Done"}];function am(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 Zg(l){const i=am(l),a=l.rows.length,c=i.done.length;return{total:a,done:c,inProgress:i["in-progress"].length,blocked:i.blocked.length,todo:i.todo.length,pct:a===0?0:Math.round(c/a*100)}}function Jg(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 ze=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{},J=l=>typeof l=="string"?l:"",Ot=l=>typeof l=="string"&&l?l:null,el=l=>typeof l=="number"&&Number.isInteger(l)?l:0,Od=new Set(["todo","in-progress","done","moved","blocked"]);function Md(l,i){const a=l.github;return[...new Set(ct(i).filter(c=>typeof c=="number"&&Number.isInteger(c)))].map(c=>{var y,w;const f=(y=a==null?void 0:a.prs)==null?void 0:y.find(g=>g.number===c),p=((w=a==null?void 0:a.merges)==null?void 0:w.some(g=>g.number===c))??!1;return{number:c,url:a!=null&&a.repo?`https://github.com/${a.repo}/pull/${c}`:null,stage:f?"in review":p?"merged":null,detail:f?`required checks ${f.required_state}`:null}})}function Id(l,i){const a=l.filter(c=>c.stage).map(c=>`#${c.number} ${c.stage}${c.detail?` (${c.detail})`:""}`);return a.length?a.join(", "):im[i]}function bg(l){return[l.model&&`model ${l.model}`,l.lane&&`lane ${l.lane.split(" ")[0]}`,l.risk&&`risk ${l.risk}`].filter(Boolean).join(" · ")}function um(l,i){const a=ze(i),c=J(a.ref),f=c.lastIndexOf("#"),p=J(a.state),y=Od.has(J(a.tile))?J(a.tile):p==="done"?"done":"todo",w=J(a.risk),g=Md(l,a.prs);return{ref:c,plan:J(a.plan)||(f>0?c.slice(0,f):""),num:el(a.num)||f>0&&Number(c.slice(f+1))||0,name:J(a.name)||c,model:J(a.model),lane:J(a.lane),risk:w,highRisk:w.toLowerCase().includes("high"),tracker:J(a.tracker),tile:y,prs:g,stage:Id(g,y)}}const Ec=(l,i)=>{const a=ze(i);return{milestone:l,type:J(a.type),reason:J(a.reason),check:J(a.check)}};function Ad(l,i){return nn.has(l)?"done":i.some(a=>a.type==="owner-gate")?"wait":i.length||l==="blocked"?"block":l==="in-progress"?"prog":"todo"}const wn=l=>l==="done"||l==="moved";function cm(l,i){const a=ze(l),c=ze(a.lock),f=ze(a.stale_lock),p=ze(a.last_stop);let y=null;return J(p.reason)==="running"?y="running now":J(p.reason)&&(y=`${J(p.reason)}${p.exit!==void 0&&p.exit!==null?` (exit ${String(p.exit)})`:""}`),{running:Object.keys(c).length?{batch:String(c.batch??""),since:Ot(c.started_utc),host:Ot(c.host),pid:c.pid===void 0?null:String(c.pid)}:null,staleBatch:Object.keys(f).length?String(f.batch??""):null,lastStop:y,lastStopAt:Ot(p.utc),stopReason:J(p.reason)||null,errors:ct(a.errors).map(String),next:i}}function Fd(l){const i=new Map(l.map(c=>[c.id,c.status])),a={now:[],next:[],later:[]};for(const c of l){if(nn.has(c.status))continue;const f=c.depends.every(p=>nn.has(i.get(p)??""));c.status==="in-progress"||f&&c.blockers.length===0?a.now.push(c):c.depends.some(p=>a.now.some(y=>y.id===p))?a.next.push(c):a.later.push(c)}return a}function dm(l,i){const a=ze(i),c=ct(a.milestones).map(j=>{const R=ze(j),C=J(R.id),D=ct(R.blockers).map(A=>Ec(C,A)),_=ct(R.phases).map(A=>um(l,A)),V=J(R.status);return{id:C,status:V,owner:J(R.owner)||"runner",target:Ot(R.target),depends:ct(R.depends).map(String),phases:_,blockers:D,done:_.filter(A=>wn(A.tile)).length,total:_.length,tone:Ad(V,D)}}),f=c.flatMap(j=>j.phases),p=ze(a.next),y=Object.keys(p).length?`${J(p.milestone)} ${J(p.plan)}#${String(p.phase)}`:null,w=(ct(a.lanes).length?ct(a.lanes).map(String):[...new Set(f.map(j=>j.plan))]).map(j=>({plan:j,done:f.filter(R=>R.plan===j&&wn(R.tile)).length,total:f.filter(R=>R.plan===j).length})),g=c.flatMap(j=>j.blockers),E=Array.isArray(a.waiting)?ct(a.waiting).map(j=>Ec(J(ze(j).milestone),{...ze(j),type:"owner-gate"})):c.filter(j=>!nn.has(j.status)).flatMap(j=>j.blockers.filter(R=>R.type==="owner-gate"));return{slug:J(a.roadmap),kind:"roadmap",branch:Ot(a.branch),originCommit:Ot(a.origin_commit),milestones:c,lanes:w,gates:E,blockers:g,kpis:{phasesDone:f.filter(j=>wn(j.tile)).length,phasesTotal:f.length,milestonesDone:el(a.done)||c.filter(j=>nn.has(j.status)).length,milestonesTotal:el(a.total)||c.length,inProgress:f.filter(j=>j.tile==="in-progress").map(j=>j.ref),highRisk:f.filter(j=>j.highRisk).length,next:y??"none ready"},board:Fd(c),runner:cm(a.runner,y),detailError:Ot(a.detail_error)}}const fm=l=>typeof l=="string"&&Od.has(l)?l:"todo",Ud=l=>{var i;return((i=l.trim().split(/\s+/)[0])==null?void 0:i.toLowerCase())??""};function yi(l){return(l.split("/").pop()??"").replace(/\.md$/,"")}function ey(l,i){var j,R;const a=yi(i.path),c=[];let f=!1;for(const C of i.rows){const D=((j=C.milestone)==null?void 0:j.trim())||null;D?c.includes(D)||c.push(D):f=!0}(f||c.length===0)&&(c.includes("Phases")||c.push("Phases"));const p=new Map(c.map(C=>[C,[]])),y=i.rows.map((C,D)=>{var O,de;const _=C.key||Ud(C.phase),V=Array.from(C.status.matchAll(/#(\d+)/g),fe=>Number(fe[1])),A=Md(l,V),B=C.state,ce={ref:`${a}#${_}`,plan:a,num:D+1,name:C.phase,model:"",lane:"",risk:"",highRisk:!1,tracker:C.status,tile:B,prs:A,stage:Id(A,B)},Ee=((O=C.milestone)==null?void 0:O.trim())||"Phases";return(de=p.get(Ee))==null||de.push(ce),ce}),w=c.map((C,D)=>{const _=p.get(C)??[],V=_.filter(ce=>wn(ce.tile)).length,A=_.length,B=A>0&&V===A?"done":_.some(ce=>ce.tile==="in-progress"||wn(ce.tile))?"in-progress":"todo";return{id:C,status:B,owner:"",target:null,depends:D>0?[c[D-1]]:[],phases:_,blockers:[],done:V,total:A,tone:Ad(B,[])}}),g=y.filter(C=>wn(C.tile)).length,E=y.length;return{slug:a,kind:"plan",branch:null,originCommit:null,milestones:w,lanes:[{plan:a,done:g,total:E}],gates:[],blockers:[],kpis:{phasesDone:g,phasesTotal:E,milestonesDone:w.filter(C=>nn.has(C.status)).length,milestonesTotal:w.length,inProgress:y.filter(C=>C.tile==="in-progress").map(C=>C.ref),highRisk:0,next:((R=y.find(C=>!wn(C.tile)))==null?void 0:R.name)??""},board:Fd(w),runner:{running:null,staleBatch:null,lastStop:null,lastStopAt:null,stopReason:null,errors:[],next:null},detailError:null}}function ty(l,i,a){const c=l.milestones.flatMap(E=>E.phases).find(E=>E.ref===a);if(!c)return null;const f=i.find(E=>yi(E.path)===c.plan),p=a.lastIndexOf("#"),y=(p>=0?a.slice(p+1):a).toLowerCase(),w=!!(f!=null&&f.phases&&Object.prototype.hasOwnProperty.call(f.phases,y)),g=w?f==null?void 0:f.phases[y]:void 0;return{title:g!=null&&g.title?g.title:c.name,text:typeof(g==null?void 0:g.text)=="string"&&g.text.length>0?g.text:null,hasSection:w,planPath:(f==null?void 0:f.path)??null,key:y,phase:c}}function pm(l){return ct(ze(l).plans).map(i=>ze(i)).filter(i=>!i.error&&!["done","closed","archived"].includes(J(i.status).toLowerCase())).map(i=>{const a={};for(const[c,f]of Object.entries(ze(i.phases))){const p=ze(f);a[c]=typeof p.text=="string"?{title:J(p.title),text:p.text}:{title:J(p.title)}}return{path:J(i.path),title:J(i.title)||J(i.path),rows:ct(i.tracker).map(c=>{const f=ze(c),p=J(f.phase);return{phase:p,status:J(f.status),state:fm(f.state),key:J(f.key)||Ud(p),milestone:J(f.milestone).trim()||null}}),phases:a,open:el(i.open_rows),changedAt:typeof i.changed_at=="number"&&Number.isFinite(i.changed_at)?i.changed_at:null}})}function Hd(l){const i=ze(l.roadmaps),a=Ot(l.error)??Ot(i.error),c=[],f=[];for(const E of ct(i.roadmaps)){const j=ze(E);J(j.error)?f.push({slug:J(j.roadmap),error:J(j.error)}):J(j.roadmap)&&c.push(dm(l,j))}const p=pm(l.plans),y=new Set(c.flatMap(E=>E.lanes.map(j=>j.plan))),w=p.filter(E=>E.rows.length>0&&E.open>0&&!y.has(yi(E.path))),g={roadmaps:c,errors:f,plans:p,otherPlans:w,repoError:a};return c.length||f.length?{mode:"roadmaps",...g}:a&&!l.roadmaps&&!l.plans?{mode:"error",...g}:p.length?{mode:"plans",...g}:{mode:a?"error":"none",...g}}const ny=l=>l.mode==="roadmaps"&&l.roadmaps.length===1&&l.errors.length===0;function ry(l){const i=l.milestones.flatMap(y=>y.phases).filter(y=>y.tile==="blocked").length,{phasesDone:a,phasesTotal:c}=l.kpis,f=l.gates.length?"wait":i?"block":c&&a>=c?"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:c,pct:c?Math.round(100*a/c):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(y=>({id:y.id,status:y.status})),tone:f}}function hm(l){const i=[];for(const a of Hd(l).roadmaps){const c=new Map(a.milestones.map(f=>[f.id,f.status]));for(const f of a.milestones)nn.has(f.status)||!f.depends.every(p=>nn.has(c.get(p)??""))||f.blockers.filter(p=>p.type==="owner-gate").forEach((p,y)=>i.push({roadmap:a.slug,milestone:f.id,reason:p.reason,check:p.check,id:`${a.slug}:${f.id}:${y}`}))}return i}const mm=l=>l.roadmaps.reduce((i,a)=>i+a.gates.length,0),Cc=(l,i)=>l.toLowerCase().includes(i);function oy(l,i){const a=i.trim().toLowerCase();if(!a)return null;const c={milestones:new Set,phases:new Set,count:0};for(const f of l.milestones){const p=Cc([f.id,f.status,f.owner,f.target??""].join(" "),a);let y=!1;for(const w of f.phases){const g=Cc([w.ref,w.name,w.model,w.lane,w.risk,w.tracker,w.prs.map(E=>`#${E.number}`).join(" ")].join(" "),a);(g||p)&&(c.phases.add(w.ref),y=!0),g&&(c.count+=1)}p&&(c.count+=1),(p||y)&&c.milestones.add(f.id)}return c}function gm(l){const i=mm(Hd(l));return i>0?`Roadmap · ${i} gate${i===1?"":"s"}`:"Roadmap"}const ym=l=>!l.sources.collector.ok||l.sources.collector.stale,vm=24*3600;function ly(l,i){const a=ze(l),c=J(a.source);if(!c)return null;if(c==="working-tree")return{text:"Plans from the working tree (no origin branch found)",old:!1};const f=J(a.commit).slice(0,7),p=typeof a.commit_at=="number"?a.commit_at:null,y=typeof a.fetched_at=="number"?a.fetched_at:null;return{text:`Plans from ${c}`+(f?` @ ${f}`:"")+(p!==null?` · commit ${tn(new Date(p*1e3).toISOString(),i)}`:"")+(y===null?" · fetch time unknown":` · last fetch ${tn(new Date(y*1e3).toISOString(),i)}`),old:y!==null&&i/1e3-y>vm}}const Bd="caddis.hub.roadmapView";function sy(l){if(!l)return"timeline";try{return l.getItem(Bd)==="board"?"board":"timeline"}catch{return"timeline"}}function iy(l,i){if(l)try{l.setItem(Bd,i)}catch{}}const $c={waiting:"Waiting","owner-gate":"Owner gate",blocked:"Blocked","blocked-merge":"Blocked merge",coordinator:"Coordinator",hub:"Hub"},wm={collector:"Roadmap and relay data",agents:"Session list",github:"GitHub data",coordinator:"Coordinator data"},Qn=l=>Array.isArray(l)?l:[],Et=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{},rt=l=>typeof l=="string"&&l?l:null,Kn=l=>typeof l=="number"&&Number.isFinite(l)?l:null,Ir=l=>{var i;return((i=l.github)==null?void 0:i.repo)??l.name},Tc=l=>l.replace(/\\/g,"/").replace(/\/+$/,"").toLowerCase(),rl=l=>l.agent&&l.agent!=="claude"?l.agent:null,kn=(l,i)=>!!l&&!!i&&Tc(l)===Tc(i);function Wd(l){var a;const i=[];for(const c of Qn((a=l.relays)==null?void 0:a.relays)){const f=Et(c),p=rt(f.name),y=rt(f.status);!p||!y||i.push({name:p,status:y,statusArg:rt(f.status_arg)??"",updatedAt:rt(f.updated_at),nextStep:rt(f.next_step)})}return i}function Vd(l){return Array.isArray(l.owner_items)?l.owner_items:Wd(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 Ar(l){var a;const i=[];for(const c of Qn((a=l.coordinator)==null?void 0:a.queue)){const f=Et(c),p=Kn(f.pr);if(p===null)continue;const y=[];for(const w of Qn(f.waits_on)){const g=Et(w),E=Kn(g.pr);E!==null&&y.push({repo:rt(g.repo)??"",pr:E})}i.push({pr:p,headSha:rt(f.head_sha)??"",title:rt(f.title)??"",state:rt(f.state)??"waiting",whyWaiting:rt(f.why_waiting)??"",waitsOn:y,hotfix:f.hotfix===!0,held:f.held===!0,since:rt(f.entered_ready_at)})}return i}function qd(l){var a;const i=(a=l.coordinator)==null?void 0:a.merging_now;return Kn(i)??Kn(Et(i).pr)}function km(l){const i=new Set,a=[];for(const c of l)c.waiting_class!=="owner"||i.has(c.session_id)||(i.add(c.session_id),a.push(c));return a}function xm(l,i){var p,y;let a=null;for(const w of l.repos){const g=Ir(w);for(const E of Qn((p=w.coordinator)==null?void 0:p.deploy_checks)){const j=Et(E),R=Date.parse(rt(j.at)??""),C=Kn(j.pr);if(Number.isNaN(R)||C===null)continue;const D=rt(j.health);(!a||R>a.at)&&(a={at:R,label:`${g} #${C}`,ok:D==="ok"?!0:D==="failed"?!1:null,how:`health ${D??"unknown"}`})}for(const E of((y=w.github)==null?void 0:y.merges)??[]){const j=Date.parse(E.merged_at);if(Number.isNaN(j)||a&&a.at>=j)continue;const R=E.runs??[],C=R.some(_=>_.conclusion==="failure"),D=R.length>0&&R.every(_=>_.conclusion==="success");a={at:j,label:`${g} #${E.number}`,ok:C?!1:D?!0:null,how:C?"deploy failed":D?"deploy pass":"merged"}}}if(!a)return null;const c=Math.max(0,Math.round((i-a.at)/6e4)),f=c<60?`${c} min ago`:c<1440?`${Math.floor(c/60)} h ago`:`${Math.floor(c/1440)} d ago`;return{label:a.label,sub:`${f} · ${a.how}`,ok:a.ok}}function Sm(l,i,a){var p;let c=0;for(const y of l.repos)(p=y.coordinator)!=null&&p.responding&&(c+=Ar(y).filter(w=>w.state!=="blocked").length);const f=l.sessions.filter(y=>!["idle","done","unknown"].includes(y.status)).length;return{waitingOnYou:a.filter(y=>y.folder==="needs").length,blockedMerges:a.filter(y=>y.kind==="blocked-merge").length,inQueue:c,workingSessions:f,lastDeploy:xm(l,i)}}function Nm(l){const i=new Date(l);return Number.isNaN(i.getTime())?"unknown":i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const Pc=(l,i)=>{var a;return(a=l.github)!=null&&a.repo?`gh pr checks ${i} -R ${l.github.repo}`:`gh pr checks ${i}`};function _m(l,i){var y,w;const a=[],c=new Set,f=g=>{c.has(g.id)||(c.add(g.id),a.push(g))},p=g=>l.repos.find(E=>kn(E.path,g));for(const g of km(l.sessions)){const E=p(g.repo_path),j=g.name??g.session_id.slice(0,8),R=rl(g);f({id:`waiting:${g.session_id}`,kind:"waiting",folder:"needs",repo:E?Ir(E):"no repo",title:`${j}${R?` (${R})`:""} waits on ${g.waiting_for??"you"}`,why:"The session cannot continue until you answer.",next:"Open the session and answer.",cmd:j,since:g.waiting_since,source:"agents"})}for(const g of l.repos){const E=Ir(g),j=Wd(g);for(const _ of Vd(g)){const V=_.relay?j.find(B=>B.name===_.relay):void 0,A=_.source==="relay"?(y=/^owner gate (\S+) /.exec(_.what))==null?void 0:y[1]:void 0;f({id:`owner:${g.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:E,repoPath:g.path,title:A?`Gate ${A}: 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:(V==null?void 0:V.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 hm(g))f({id:`rmgate:${g.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:E,repoPath:g.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 j)_.status==="BLOCKED"&&_.statusArg.toLowerCase().startsWith("owner")&&f({id:`blocked:${g.path}:${_.name}`,kind:"blocked",folder:"needs",repo:E,repoPath:g.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 R=!!g.coordinator&&g.coordinator.responding;for(const _ of Ar(g))_.state==="blocked"&&f({id:`merge:${g.path}:${_.pr}`,kind:"blocked-merge",folder:"blocked",repo:E,repoPath:g.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:Pc(g,_.pr),since:_.since,queue:{pr:_.pr,headSha:_.headSha,hotfix:_.hotfix,held:_.held},source:"coordinator"});const C=new Map(Ar(g).map(_=>[_.pr,_]));for(const _ of((w=g.github)==null?void 0:w.prs)??[]){if(_.draft||_.required_state!=="fail")continue;const V=_.checks.filter(B=>B.required&&B.conclusion==="failure").map(B=>B.name),A=C.get(_.number);f({id:`merge:${g.path}:${_.number}`,kind:"blocked-merge",folder:"blocked",repo:E,repoPath:g.path,title:`PR #${_.number}: required check ${V.length>0?`${V.join(", ")} `:""}failed`,why:R?"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:Pc(g,_.number),since:_.updated_at,...A?{queue:{pr:A.pr,headSha:A.headSha,hotfix:A.hotfix,held:A.held}}:{},source:"github"})}const D=g.coordinator;D&&!D.responding&&D.heartbeat_at&&D.status!=="stopped"&&f({id:`coordinator:${g.path}`,kind:"coordinator",folder:"needs",repo:E,repoPath:g.path,title:`Coordinator not responding since ${Nm(D.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:D.heartbeat_at,source:"coordinator"})}for(const g of["collector","agents","github","coordinator"]){const E=l.sources[g];E.ok||!E.stale||f({id:`hub:${g}`,kind:"hub",folder:"needs",repo:"hub",title:`${wm[g]} has failed for over 3 min`,why:E.last_error??"The source has not answered.",next:"Read the error. The hub keeps the last good data.",cmd:"caddis hub status",since:E.last_ok_at})}return{items:a,tiles:Sm(l,i,a)}}const jm=24*36e5,Em=()=>({open:{},resolved:[]}),Cm=(l,i)=>{var c;const a=(c=l.sources)==null?void 0:c[i];return!!a&&(!a.ok||a.stale)};function $m(l,i){var c;if(!i.repoPath)return!1;const a=(c=l.repos)==null?void 0:c.find(f=>kn(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=Et(a.relays);return(typeof a.error=="string"||typeof f.error=="string")&&!Array.isArray(f.relays)}return!1}function zc(l,i,a){const c=new Set(i.map(p=>p.id)),f=i.map(p=>p.stale?{...p,stale:!1}:p);for(const[p,y]of Object.entries(l))c.has(p)||!y.source||!Cm(a,y.source)&&!$m(a,y)||f.push({...y,stale:!0});return f}function Tm(l,i,a){const c=new Map(i.map(p=>[p.id,p])),f=l.resolved.filter(p=>a-p.resolvedAt<jm&&!c.has(p.item.id));for(const[p,y]of Object.entries(l.open))!c.has(p)&&!f.some(w=>w.item.id===p)&&f.push({item:y,resolvedAt:a});return f.sort((p,y)=>y.resolvedAt-p.resolvedAt),{open:Object.fromEntries(c),resolved:f}}function Rc(l){const i=Et(l);return typeof i.id=="string"&&typeof i.title=="string"&&typeof i.kind=="string"&&typeof i.folder=="string"}function Pm(l){const i=Et(l),a={};for(const[f,p]of Object.entries(Et(i.open)))Rc(p)&&(a[f]=p);const c=[];for(const f of Qn(i.resolved)){const p=Et(f),y=Kn(p.resolvedAt);Rc(p.item)&&y!==null&&c.push({item:p.item,resolvedAt:y})}return{open:a,resolved:c}}const Lc="Start a session in the folder: the hub adds it.";function Qd(){return d.jsxs("section",{className:"first-run","data-testid":"first-run","aria-label":"Get started",children:[d.jsx("h2",{children:"No repos yet"}),d.jsxs("p",{children:[d.jsx(xd,{size:16,"aria-hidden":"true"})," Start a Claude Code session in a repo. The hub finds it by itself."]}),d.jsx("p",{children:"Or add a folder. The hub checks that it is a git repo."}),d.jsxs("button",{type:"button",className:"btn",disabled:!0,title:Lc,"data-testid":"add-folder",children:[d.jsx(Ih,{size:16,"aria-hidden":"true"}),"Add a folder"]}),d.jsxs("span",{className:"first-run-reason",children:[" ",Lc]})]})}const Dr={size:15,"aria-hidden":!0};function Kd({tiles:l,stale:i=!1}){const a=l.lastDeploy;return d.jsxs("div",{className:`kpi-strip${i?" stale":""}`,"data-testid":"tiles","data-stale":i?"true":void 0,children:[d.jsxs("div",{className:`kpi-tile${l.waitingOnYou>0?" urgent":""}`,children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(Jh,{...Dr}),"Waiting on you"]}),d.jsx("span",{className:"kpi-num accent","data-testid":"tile-waiting",children:l.waitingOnYou})]}),d.jsxs("div",{className:`kpi-tile${l.blockedMerges>0?" danger":""}`,children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(Rh,{...Dr}),"Blocked merges"]}),d.jsx("span",{className:"kpi-num bad","data-testid":"tile-blocked",children:l.blockedMerges})]}),d.jsxs("div",{className:"kpi-tile",children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(Ah,{...Dr}),"In merge queue"]}),d.jsx("span",{className:"kpi-num","data-testid":"tile-queue",children:l.inQueue})]}),d.jsxs("div",{className:"kpi-tile",children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(xd,{...Dr}),"Working sessions"]}),d.jsx("span",{className:"kpi-num","data-testid":"tile-working",children:l.workingSessions})]}),d.jsxs("div",{className:"kpi-tile deploy",children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(Kh,{...Dr}),"Last prod deploy"]}),a?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:`kpi-val ${a.ok===!0?"tone-good":a.ok===!1?"tone-bad":""}`,children:a.label}),d.jsx("span",{className:"kpi-sub tone-muted",children:a.sub})]}):d.jsx("span",{className:"kpi-val tone-muted",children:"No deploy yet"})]})]})}const zm=[{id:"needs",label:"Needs you",Icon:bc},{id:"approvals",label:"Approvals",Icon:Yh},{id:"blocked",label:"Blocked",Icon:Gh},{id:"resolved",label:"Resolved, 24 h",Icon:Ph}],Dc=(l,i)=>l?tn(l,i).replace(/ ago$/,""):"unknown";function Rm(l){var i;try{(i=navigator.clipboard)==null||i.writeText(l)}catch{}}function Lm(l,i){return l?i.owner?Cd(l,i.owner):i.queue?gi(l,i.queue):[]:[]}function Dm({state:l,nowMs:i,api:a,act:c}){const[f,p]=Y.useState("needs"),[y,w]=Y.useState(null),[g,E]=Y.useState(!1),[j,R]=Y.useState(!1),{model:C,resolved:D,read:_}=a,V={needs:C.items.filter(O=>O.folder==="needs").length,approvals:C.items.filter(O=>O.folder==="approvals").length,blocked:C.items.filter(O=>O.folder==="blocked").length,resolved:D.length},A=f==="resolved"?D.map(O=>({item:O.item,resolved:!0,since:new Date(O.resolvedAt).toISOString()})):C.items.filter(O=>O.folder===f).map(O=>({item:O,resolved:!1,since:O.since})),B=A.find(O=>O.item.id===y)??A[0]??null,ce=O=>{p(O),w(null),E(!1)},Ee=O=>{w(O.item.id),E(!0),O.resolved||a.markRead(O.item.id)};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"page-header",children:[d.jsx("h1",{className:"page-title",children:"Inbox"}),d.jsxs("span",{className:"page-subtitle",children:[l.repos.length," repos · ",l.sessions.length," sessions"]})]}),l.repos.length===0&&d.jsx(Qd,{}),d.jsx(Kd,{tiles:C.tiles,stale:ci(l)}),a.notify.supported&&d.jsxs("div",{className:"notify-row",children:[d.jsxs("button",{type:"button",className:"btn",onClick:a.notify.enable,disabled:a.notify.enabled,children:[d.jsx(bc,{size:16,"aria-hidden":"true"}),a.notify.enabled?"Notifications on":"Notify me"]}),d.jsx("span",{children:a.notify.enabled?"One browser notification per new item.":"Opt in to a browser notification for each new item."})]}),d.jsxs("div",{className:`mailbox${g&&B?" show-detail":""}`,children:[d.jsx("div",{className:"mailbox-folders",role:"tablist","aria-label":"Folders",children:zm.map(({id:O,label:de,Icon:fe})=>d.jsxs("button",{type:"button",role:"tab","aria-selected":f===O,className:`folder-btn${f===O?" sel":""}`,onClick:()=>ce(O),"data-testid":`folder-${O}`,children:[d.jsx(fe,{size:16,"aria-hidden":"true"}),d.jsx("span",{children:de}),d.jsx("strong",{children:V[O]})]},O))}),d.jsxs("div",{className:"mailbox-list","data-testid":"inbox-list",children:[A.map(O=>{const de=!O.resolved&&!_.has(O.item.id);return d.jsxs("button",{type:"button",className:`item-btn${(B==null?void 0:B.item.id)===O.item.id?" sel":""}`,onClick:()=>Ee(O),"data-testid":"inbox-item",children:[d.jsx("span",{className:`unread-dot${de?" on":""}`,role:"img","aria-label":de?"Unread":"Read"}),d.jsxs("span",{className:"item-main",children:[d.jsxs("span",{className:"item-meta",children:[d.jsx("span",{className:`chip chip-${O.resolved?"resolved":O.item.kind}`,children:O.resolved?"Resolved":$c[O.item.kind]}),d.jsx("span",{className:"mono",children:O.item.repo}),d.jsxs("span",{children:["· ",Dc(O.since,i)]}),!O.resolved&&O.item.stale&&d.jsx("span",{className:"chip chip-stale","data-testid":"stale-chip",title:"Its source is failing. Last good data is shown.",children:"stale"})]}),d.jsx("span",{className:"item-title",children:O.item.title})]})]},O.item.id)}),A.length===0&&d.jsxs("div",{className:"list-empty","data-testid":"inbox-empty",children:[d.jsx("strong",{children:f==="resolved"?"Nothing resolved in the last 24 h":"Nothing needs you"}),d.jsxs("div",{children:["Last check ",tn(l.generated_at,i),"."]})]})]}),B&&d.jsxs("article",{className:"mailbox-detail","data-testid":"inbox-detail","aria-label":"Item detail",children:[d.jsxs("button",{type:"button",className:"btn back-btn",onClick:()=>E(!1),children:[d.jsx(zh,{size:16,"aria-hidden":"true"}),"Back"]}),d.jsxs("span",{className:"item-meta",children:[d.jsx("span",{className:`chip chip-${B.resolved?"resolved":B.item.kind}`,children:B.resolved?"Resolved":$c[B.item.kind]}),d.jsx("span",{className:"mono",children:B.item.repo}),d.jsxs("span",{children:["· ",B.resolved?"resolved":"since"," ",Dc(B.since,i)]}),!B.resolved&&B.item.stale&&d.jsx("span",{className:"chip chip-stale",children:"stale"})]}),d.jsx("h2",{children:B.item.title}),d.jsxs("div",{className:"detail-block",children:[d.jsx("span",{className:"detail-label",children:"Why it matters"}),d.jsx("span",{children:B.resolved?"The source cleared. No action is needed.":B.item.why})]}),!B.resolved&&B.item.owner&&d.jsx(Ld,{item:B.item.owner}),d.jsxs("div",{className:"detail-block",children:[d.jsx("span",{className:"detail-label",children:"Next step"}),d.jsx("span",{children:B.resolved?"Nothing.":B.item.next}),d.jsx("code",{className:"cmd",children:B.item.cmd})]}),d.jsx("div",{className:"detail-actions",children:d.jsxs("button",{type:"button",className:"btn",onClick:()=>{Rm(B.item.cmd),R(!0),window.setTimeout(()=>R(!1),1500)},children:[j?d.jsx(Dh,{size:16,"aria-hidden":"true"}):d.jsx(ld,{size:16,"aria-hidden":"true"}),B.item.kind==="waiting"?"Copy session name":"Copy command"]})}),!B.resolved&&(()=>{const O=l.repos.find(Ne=>kn(Ne.path,B.item.repoPath)),de=Lm(O,B.item);if(!O||de.length===0)return null;const fe=B.item.owner?Pd(O,B.item.owner):void 0;return d.jsx(nl,{repo:O,specs:de,act:c,reason:fe})})()]})]})]})}const Yd="caddis-hub-inbox-history",Oc="caddis-hub-inbox-read",Zo="caddis-hub-inbox-notified",Mc="caddis-hub-inbox-notify",Gd="caddis-hub-lanes-folded";function rn(){try{return window.localStorage}catch{return null}}function vi(l,i){try{const a=i==null?void 0:i.getItem(l);return a?JSON.parse(a):null}catch{return null}}function wi(l,i,a){try{a==null||a.setItem(l,JSON.stringify(i))}catch{}}const Om=(l=rn())=>{const i=vi(Yd,l);return i?Pm(i):Em()},Mm=(l,i=rn())=>wi(Yd,l,i);function ri(l,i=rn()){const a=vi(l,i);return new Set(Array.isArray(a)?a.filter(c=>typeof c=="string"):[])}function oi(l,i,a=rn()){wi(l,[...i].slice(-500),a)}const Im={items:[],tiles:{waitingOnYou:0,blockedMerges:0,inQueue:0,workingSessions:0,lastDeploy:null}},li=()=>typeof window<"u"&&"Notification"in window;function Am(l,i){const a=Y.useMemo(()=>l?_m(l,i):Im,[l,i]),[c,f]=Y.useState(()=>Om()),p=Y.useMemo(()=>{if(!l)return a;const C=zc(c.open,a.items,l),D=_=>C.filter(_).length;return{items:C,tiles:{...a.tiles,waitingOnYou:D(_=>_.folder==="needs"),blockedMerges:D(_=>_.kind==="blocked-merge")}}},[l,a,c.open]),[y,w]=Y.useState(()=>ri(Oc)),[g,E]=Y.useState(()=>{var C;try{return li()&&((C=rn())==null?void 0:C.getItem(Mc))==="1"&&Notification.permission==="granted"}catch{return!1}});Y.useEffect(()=>{l&&f(C=>{const D=Tm(C,zc(C.open,a.items,l),Date.now());return Mm(D),D})},[l,a]),Y.useEffect(()=>{if(!g||!l)return;const C=ri(Zo);let D=!1;for(const _ of p.items)if(!C.has(_.id)){C.add(_.id),D=!0;try{new Notification(`caddis hub: ${_.repo}`,{body:_.title,tag:_.id})}catch{}}D&&oi(Zo,C)},[g,l,p]);const j=Y.useCallback(C=>{w(D=>{if(D.has(C))return D;const _=new Set(D).add(C);return oi(Oc,_),_})},[]),R=Y.useCallback(()=>{li()&&Notification.requestPermission().then(C=>{var _;if(C!=="granted")return;try{(_=rn())==null||_.setItem(Mc,"1")}catch{}const D=ri(Zo);for(const V of p.items)D.add(V.id);oi(Zo,D),E(!0)})},[p]);return{model:p,resolved:c.resolved,read:y,markRead:j,notify:{supported:li(),enabled:g,enable:R}}}const Ic="No coordinator: each session merges its own PRs.",Fm="/caddis:coordinate",Um="gh auth login -h github.com",Xd=l=>{const i=l?new Date(l):null;return i&&!Number.isNaN(i.getTime())?i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"unknown"},Ac=l=>`Coordinator not responding since ${Xd(l)}`,Fc=l=>`Coordinator stopped at ${Xd(l)}`;function Hm(l,i){const a=l?Date.parse(l):NaN;if(Number.isNaN(a))return"unknown";const c=Math.max(0,Math.round((i-a)/6e4));return c<60?`${c} min ago`:c<1440?`${Math.floor(c/60)} h ago`:`${Math.floor(c/1440)} d ago`}const Bm=(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"},si=(l,i)=>{const a=l.whyWaiting||l.state,c=[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":c.join(" · "),tone:l.hotfix||l.held?"warn":"muted",grey:i,queue:{pr:l.pr,headSha:l.headSha,hotfix:l.hotfix,held:l.held}}};function Wm(l,i,a){var Ee,O,de,fe,Ne;const c=i.coordinator,f=c?c.status==="stopped"?"stopped":c.responding?"coordinator":"down":"none",p=Ir(i),y=l.sessions.filter(G=>kn(G.repo_path,i.path)).map(G=>{const ne=Bm(G.status,G.waiting_for,G.waiting_class),Ce=rl(G);return{key:`s${G.session_id}`,title:G.name??G.session_id.slice(0,8),sub:Ce?`${Ce} · ${ne.sub}`:ne.sub,tone:ne.tone}}),w=[],g=new Set;for(const G of((Ee=i.github)==null?void 0:Ee.prs)??[]){if(G.draft||G.required_state!=="fail")continue;const ne=G.checks.filter(Ce=>Ce.required&&Ce.conclusion==="failure").map(Ce=>Ce.name);g.add(G.number),w.push({key:`b${G.number}`,title:`#${G.number} ${G.title}`,sub:ne.length>0?`${ne.join(", ")} failed`:"required check failed",tone:"bad"})}const E=Ar(i),j=[],R=[];if(f==="coordinator"){const G=qd(i);for(const ne of E)ne.state==="blocked"?g.has(ne.pr)||(g.add(ne.pr),w.push({key:`b${ne.pr}`,title:`#${ne.pr} ${ne.title}`.trim(),sub:ne.whyWaiting||"blocked",tone:"bad"})):ne.state==="merging"||ne.pr===G?R.push(si(ne,!1)):j.push(si(ne,!1))}else if(f==="down"||f==="stopped")for(const G of E)G.state!=="blocked"&&j.push(si(G,!0));const C=(((O=i.github)==null?void 0:O.merges)??[]).slice().sort((G,ne)=>Date.parse(ne.merged_at)-Date.parse(G.merged_at)).slice(0,3).map(G=>{const ne=G.runs??[],Ce=ne.some(Oe=>Oe.conclusion==="failure"),wt=ne.length>0&&ne.every(Oe=>Oe.conclusion==="success"),Ve=Hm(G.merged_at,a);return{key:`d${G.number}`,title:`#${G.number} ${G.title}`,sub:Ce?`deploy failed · ${Ve}`:wt?`deployed ${Ve}`:`merged ${Ve}`,tone:Ce?"bad":wt?"good":"muted"}});let D=null;f==="none"?D=`${Ic} Start one with ${Fm}.`:f==="down"?D=`${Ac((c==null?void 0:c.heartbeat_at)??null)}. The lane shows GitHub data; the last known queue is greyed.`:f==="stopped"&&(D=`${Fc((c==null?void 0:c.stopped_at)??null)}. Each session merges its own PRs until one starts again (/caddis:coordinate). The last known queue is greyed.`);const _=(de=l.sources)!=null&&de.agents?!l.sources.agents.ok:!1,V=(fe=i.github)!=null&&fe.error?{account:i.github.account??null,error:i.github.error,command:Um}:null;let A;f==="down"?A=Ac((c==null?void 0:c.heartbeat_at)??null):f==="stopped"?A=Fc((c==null?void 0:c.stopped_at)??null):A=[f==="none"?"No coordinator":"",_?"sessions unknown":y.length>0?`${y.length} session${y.length===1?"":"s"}`:"no sessions running",w.length>0?`${w.length} blocked`:"",j.length>0?`${j.length} waiting`:"",R.length>0?`${R.length} merging`:"",C.length>0?`${C.length} deployed`:""].filter(Boolean).join(" · ");const B=l.sessions.some(G=>kn(G.repo_path,i.path)&&G.waiting_class==="owner"),ce=f==="down"||i.error||(Ne=i.github)!=null&&Ne.error?"blocked":B?"attention":f==="none"||f==="stopped"?"idle":"ok";return{id:i.path,name:p,mode:f,tone:ce,note:D,github:V,summary:A,columns:[{id:"sessions",title:"Sessions",cards:y,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:j,emptyText:f==="none"?Ic:"None"},{id:"merging",title:"Merging now",cards:R,emptyText:"None"},{id:"done",title:"Done and deployed",cards:C,emptyText:"None"}]}}const Vm=(l,i)=>l.repos.map(a=>Wm(l,a,i)),qm={ok:"var(--green)",attention:"var(--mk-warn)",blocked:"var(--mk-bad)",idle:"var(--text-dim)"};function Qm(){const l=vi(Gd,rn());return l&&typeof l=="object"&&!Array.isArray(l)?l:{}}function Km({state:l,nowMs:i,api:a,act:c}){const[f,p]=Y.useState(()=>Qm()),y=Vm(l,i),w=g=>{p(E=>{const j={...E,[g]:!E[g]};return wi(Gd,j,rn()),j})};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"page-header",children:[d.jsx("h1",{className:"page-title",children:"Overview"}),d.jsxs("span",{className:"page-subtitle",children:[l.repos.length," repos · ",l.sessions.length," sessions"]})]}),l.repos.length===0&&d.jsx(Qd,{}),d.jsx(Kd,{tiles:a.model.tiles,stale:ci(l)}),d.jsx("div",{className:`lanes${ci(l)?" stale":""}`,"data-testid":"lanes",children:y.map(g=>{const E=!f[g.id],j=l.repos.find(R=>kn(R.path,g.id));return d.jsxs("section",{className:`lane ${g.mode}`,"data-testid":"lane","aria-label":g.name,children:[d.jsxs("button",{type:"button",className:"lane-head","aria-expanded":E,onClick:()=>w(g.id),children:[d.jsx("span",{"aria-hidden":"true",style:{width:9,height:9,borderRadius:"50%",background:qm[g.tone],flexShrink:0}}),d.jsx("span",{className:"lane-name",children:g.name}),d.jsx("span",{className:"lane-summary","data-testid":"lane-summary",children:g.summary}),d.jsx(Oh,{className:"chev",size:18,"aria-hidden":"true",style:{transform:E?"rotate(180deg)":"none"}})]}),E&&d.jsxs("div",{className:"lane-body",children:[g.github&&d.jsxs("div",{className:"lane-note gh-fail","data-testid":"gh-fail",role:"status",children:["GitHub access failed for ",g.github.account?`account ${g.github.account}`:"this repo",g.github.error?` (${g.github.error})`:"",". Sign in again with"," ",d.jsx("code",{className:"cmd",children:g.github.command})]}),g.note&&d.jsx("div",{className:"lane-note","data-testid":"lane-note",children:g.note}),d.jsx("div",{className:"lane-cols",children:g.columns.map(R=>d.jsxs("div",{className:"lane-col","data-testid":`col-${R.id}`,children:[d.jsxs("span",{className:"col-title",children:[R.title," · ",R.cards.length]}),R.cards.map(C=>d.jsxs("div",{className:`card${C.grey?" grey":""}`,"data-testid":"lane-card",children:[d.jsx("span",{className:"card-title",children:C.title}),d.jsx("span",{className:`card-sub tone-${C.tone}`,children:C.sub}),j&&C.queue&&d.jsx(nl,{repo:j,specs:gi(j,C.queue),act:c,compact:!0})]},C.key)),R.cards.length===0&&d.jsx("span",{className:"col-empty",children:R.emptyText})]},R.id))})]})]},g.id)})})]})}function Ym(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 c=i[1]==="details"||i[1]==="wall"||i[1]==="map"?i[1]:"poster",f=i[2]?decodeURIComponent(i[2]):null;return{page:"guide",tab:c,item:f}}catch{return{page:"inbox"}}if(a==="repo"&&i[1])try{const c=i[2]==="roadmap"||i[2]==="sessions"?i[2]:"flow",f=c==="roadmap"&&i[3]?decodeURIComponent(i[3]):null;return{page:"repo",id:decodeURIComponent(i[1]),tab:c,roadmap:f}}catch{return{page:"inbox"}}return{page:"inbox"}}const ki=l=>l.repo_id??l.path,di=l=>`#/repo/${encodeURIComponent(l)}`;function Gm(l,i,a){return i==="flow"?di(l):`${di(l)}/${i}${i==="roadmap"&&a?`/${encodeURIComponent(a)}`:""}`}function Xm(l,i){return l==="poster"?"#/guide":l==="wall"?"#/guide/wall":l==="map"?"#/guide/map":`#/guide/details${i?`/${encodeURIComponent(i)}`:""}`}const Zm=["D1","D2","D3","D4","D5"],tl=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{};function Jm(l){const i=(a,c)=>{if(a.state==="merging")return[0,0,0,"",c];const f=a.hotfix?1:2;return a.state==="ready"&&!a.held?[f,0,a.since?0:1,a.since??"",c]:[f,1,0,"",c]};return l.map((a,c)=>({q:a,r:i(a,c)})).sort((a,c)=>{for(let f=0;f<a.r.length;f++){const p=a.r[f],y=c.r[f];if(p<y)return-1;if(p>y)return 1}return 0}).map(a=>a.q)}function Zd(l){const i=l.coordinator;return i?i.status==="stopped"?"stopped":i.responding?"live":"down":"none"}function bm(l){const i=l.coordinator,a=typeof tl(i==null?void 0:i.coordinator_session).name=="string"?String(tl(i==null?void 0:i.coordinator_session).name):null;switch(Zd(l)){case"none":return"No coordinator: each session merges its own PRs. Start one with /caddis:coordinate.";case"stopped":return`Coordinator stopped at ${Mr(i==null?void 0:i.stopped_at)}. The last known queue is greyed.`;case"down":return`Coordinator not responding since ${Mr(i==null?void 0:i.heartbeat_at)}. The last known queue is greyed.`;case"live":return`Coordinator ${a??""} live, heartbeat ${Mr(i==null?void 0:i.heartbeat_at)}.`.replace(" "," ")}}function eg(l){var a;const i=[];for(const c of Qn((a=l.coordinator)==null?void 0:a.deploy_checks)){const f=tl(c);if(typeof f.pr!="number")continue;const p=tl(f.checks),y=Object.keys(p).length?Zm.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:y,reason:typeof f.reason=="string"&&f.reason?f.reason:null})}return i.reverse()}function tg(l,i){var y,w;const a=Zd(i),c=qd(i),f=Jm(Ar(i)),p=new Set(f.map(g=>g.pr));return{mode:a,statusText:bm(i),grey:a==="stopped"||a==="down",merging:a==="live"?c:null,queue:f.map((g,E)=>({...g,position:E+1,merging:g.state==="merging"||g.pr===c})),deploys:eg(i),owner:Vd(i),unqueued:(((y=i.github)==null?void 0:y.prs)??[]).filter(g=>!g.draft&&!p.has(g.number)).map(g=>({number:g.number,title:g.title,requiredState:g.required_state,headSha:g.head_sha})),requests:[...((w=i.coordinator)==null?void 0:w.requests)??[]].reverse()}}const ng=Y.createContext(null),Uc={waiting:0,busy:1,working:1,idle:2},rg=l=>({key:l.key,name:l.name??l.session_id,kind:l.kind,agent:rl(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 og(l,i){const a=l.sources.agents,c=!a.ok&&a.last_ok_at===null,f=l.sessions.filter(y=>kn(y.repo_path,i.path)&&(!c||rl(y)!==null)).map(rg).sort((y,w)=>+(w.waitingClass==="owner")-+(y.waitingClass==="owner")||(Uc[y.status]??3)-(Uc[w.status]??3)||y.name.localeCompare(w.name));return{unknown:c&&f.length===0,error:a.ok?null:a.last_error,rows:f}}async function lg(l){try{return await navigator.clipboard.writeText(l),!0}catch{return!1}}const sg={owner:"you",peer:"a peer session"};function ig({state:l,repo:i,nowMs:a}){const c=og(l,i),[f,p]=Y.useState(null),y=async(w,g)=>{await lg(g)&&(p(w),window.setTimeout(()=>p(E=>E===w?null:E),2e3))};return d.jsxs("div",{className:"flow","data-testid":"sessions",children:[c.error&&d.jsxs("div",{className:"lane-note","data-testid":"sessions-error",children:[c.unknown?"Sessions unknown: ":"The last sessions read failed: ",c.error]}),c.unknown?d.jsx("p",{className:"col-empty",children:"The hub could not read the session list. PRs and deploys are on the Flow tab."}):c.rows.length===0?d.jsx("p",{className:"col-empty","data-testid":"sessions-empty",children:"No sessions running. PRs and deploys are on the Flow tab."}):d.jsx("ul",{className:"flow-list","data-testid":"sessions-table","aria-label":"Sessions of this repo",children:c.rows.map(w=>d.jsxs("li",{className:"flow-row","data-testid":"session-row",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsx("span",{className:"flow-title mono",children:w.name}),w.agent&&d.jsx("span",{className:"chip tone-muted","data-testid":"session-agent",children:w.agent}),d.jsx("span",{className:`chip tone-${w.status==="waiting"?"warn":w.status==="busy"||w.status==="working"?"good":"muted"}`,children:w.status}),w.copyWarning&&d.jsx("span",{className:"chip tone-bad","data-testid":"session-copies",children:w.copyWarning}),d.jsxs("button",{type:"button",className:"btn btn-act",onClick:()=>void y(w.key,w.name),"aria-label":`Copy session name ${w.name}`,children:[d.jsx(ld,{size:14,"aria-hidden":"true"}),f===w.key?"Copied":"Copy name"]})]}),d.jsxs("span",{className:"flow-why",children:[w.kind,w.waitingFor?` · waiting for ${w.waitingClass?sg[w.waitingClass]:"an answer"}: ${w.waitingFor}`:"",w.since?` · since ${tn(w.since,a)}`:""]}),w.copyWarning&&d.jsxs("span",{className:"flow-why tone-bad",children:["The same session runs in ",w.copies," windows. Close the extra copy."]})]},w.key))})]})}const ag=Y.lazy(()=>pi(()=>import("./RoadmapTab-Bd8geyQx.js"),__vite__mapDeps([0,1]))),ug=[{id:"flow",label:"Flow"},{id:"roadmap",label:"Roadmap"},{id:"sessions",label:"Sessions"}],cg={ready:"good",merging:"good",blocked:"bad",held:"warn",ci:"muted",waiting:"muted"};function dg({repo:l,item:i,grey:a,act:c}){return d.jsxs("li",{className:`flow-row${a?" grey":""}`,"data-testid":"queue-item",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsx("span",{className:"flow-pos mono",children:i.position}),d.jsxs("span",{className:"flow-title",children:["#",i.pr," ",i.title]})]}),d.jsxs("div",{className:"flow-flags",children:[d.jsx("span",{className:`chip tone-${cg[i.state]??"muted"}`,children:i.state}),i.merging&&d.jsx("span",{className:"chip tone-good",children:"merging now"}),i.hotfix&&d.jsx("span",{className:"chip tone-warn","data-testid":"flag-hotfix",children:"hotfix"}),i.held&&d.jsx("span",{className:"chip tone-warn","data-testid":"flag-held",children:"held"})]}),i.whyWaiting&&d.jsx("span",{className:"flow-why",children:i.whyWaiting}),i.waitsOn.length>0&&d.jsxs("span",{className:"flow-why",children:["Waits on ",i.waitsOn.map(f=>`${f.repo.replace("__","/")}#${f.pr}`).join(", ")]}),d.jsx(nl,{repo:l,specs:gi(l,{pr:i.pr,headSha:i.headSha,hotfix:i.hotfix,held:i.held}),act:c})]})}function fg({state:l,repo:i,nowMs:a,act:c}){const f=tg(l,i);return d.jsxs("div",{className:"flow","data-testid":"flow",children:[d.jsx("div",{className:`lane-note flow-status ${f.mode}`,"data-testid":"flow-status",children:f.statusText}),f.owner.length>0&&d.jsxs("section",{className:"flow-section","aria-label":"Owner approvals",children:[d.jsxs("h2",{className:"flow-h",children:["Needs your approval · ",f.owner.length]}),d.jsx("ul",{className:"flow-list",children:f.owner.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"owner-item",children:[d.jsxs("span",{className:"flow-title",children:[p.pr!==null?`#${p.pr} `:"",p.what]}),d.jsx(Ld,{item:p}),d.jsx(nl,{repo:i,specs:Cd(i,p),act:c,reason:Pd(i,p)})]},p.id))})]}),d.jsxs("section",{className:"flow-section","aria-label":"Merge queue",children:[d.jsxs("h2",{className:"flow-h",children:["Merge queue · ",f.queue.length,f.grey?" · last known":""]}),f.mode==="none"?d.jsx("p",{className:"col-empty",children:"No queue: this repo has no coordinator."}):f.queue.length===0?d.jsx("p",{className:"col-empty",children:"The queue is empty."}):d.jsx("ol",{className:"flow-list",children:f.queue.map(p=>d.jsx(dg,{repo:i,item:p,grey:f.grey,act:c},p.pr))})]}),d.jsxs("section",{className:"flow-section","aria-label":"Deploy checks",children:[d.jsx("h2",{className:"flow-h",children:"Deploy checks"}),f.deploys.length===0?d.jsx("p",{className:"col-empty",children:"No deploy check recorded."}):d.jsx("ul",{className:"flow-list",children:f.deploys.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"deploy-check",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsxs("span",{className:"flow-title",children:["#",p.pr," ",d.jsx("span",{className:"mono",children:p.mergeSha})]}),d.jsxs("span",{className:`chip tone-${p.health==="ok"?"good":p.health==="failed"?"bad":"muted"}`,children:["health ",p.health]})]}),p.checks&&d.jsx("div",{className:"flow-flags","data-testid":"deploy-marks",children:p.checks.map(y=>d.jsxs("span",{className:`chip tone-${y.mark==="pass"?"good":y.mark==="fail"?"bad":"muted"}`,children:[y.name," ",y.mark]},y.name))}),d.jsxs("span",{className:"flow-why",children:[p.run!==null?`run ${p.run} · `:"",tn(p.at,a),p.reason?` · ${p.reason}`:""]})]},`${p.pr}-${p.mergeSha}`))})]}),f.unqueued.length>0&&d.jsxs("section",{className:"flow-section","aria-label":"Open PRs not in the queue",children:[d.jsxs("h2",{className:"flow-h",children:["Open PRs not in the queue · ",f.unqueued.length]}),d.jsx("ul",{className:"flow-list",children:f.unqueued.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"unqueued-pr",children:[d.jsxs("span",{className:"flow-title",children:["#",p.number," ",p.title]}),d.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&&d.jsxs("section",{className:"flow-section","aria-label":"Your requests",children:[d.jsx("h2",{className:"flow-h",children:"Your requests"}),d.jsx("ul",{className:"flow-list",children:f.requests.slice(0,10).map(p=>d.jsxs("li",{className:"flow-row","data-testid":"request-log",children:[d.jsx("span",{className:`tone-${Rd(p.status)}`,children:zd(p)}),d.jsxs("span",{className:"flow-why",children:[p.pr!==null?`PR #${p.pr}`:p.what," · ",tn(p.created_at,a)]})]},p.id))})]})]})}function pg({state:l,repo:i,nowMs:a,act:c,tab:f,roadmap:p}){const y=ki(i);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"page-header",children:[d.jsx("h1",{className:"page-title",children:Ir(i)}),d.jsx("span",{className:"page-subtitle",children:i.name})]}),d.jsx("nav",{className:"repo-tabs",role:"tablist","aria-label":"Repo views",children:ug.map(w=>d.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:Gm(y,w.id),"data-testid":`tab-${w.id}`,children:w.id==="roadmap"?gm(i):w.label},w.id))}),f==="flow"&&d.jsx(fg,{state:l,repo:i,nowMs:a,act:c}),f==="roadmap"&&d.jsx(Y.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(ng.Provider,{value:mh,children:d.jsx(ag,{repo:i,slug:p,stale:ym(l),lastOkAt:l.sources.collector.last_ok_at},p??"")})}),f==="sessions"&&d.jsx(ig,{state:l,repo:i,nowMs:a})]})}const hg=1,Hc={collector:"Plans and roadmaps",agents:"Claude sessions",github:"GitHub",coordinator:"Coordinator"};function mg(l){var c,f;const i=[];(l.schema>hg||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=(c=l.sources)==null?void 0:c.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(Hc)){const y=(f=l.sources)==null?void 0:f[p];y!=null&&y.stale&&(p==="agents"&&!y.ok||i.push({id:`stale-${p}`,tone:"warn",text:`${Hc[p]} data is stale. Last good read: ${y.last_ok_at?Mr(y.last_ok_at):"never"}.`}))}return i}function gg({state:l}){const i=mg(l);return i.length===0?null:d.jsx("div",{className:"banners",role:"region","aria-label":"Warnings",children:i.map(a=>d.jsxs("div",{className:`banner ${a.tone}`,role:"status","data-testid":`banner-${a.id}`,children:[a.tone==="bad"?d.jsx(Vh,{size:16,"aria-hidden":"true"}):d.jsx(Zh,{size:16,"aria-hidden":"true"}),d.jsxs("span",{children:[a.text,a.command&&d.jsxs(d.Fragment,{children:[" ",d.jsx("code",{className:"cmd",children:a.command})]})]})]},a.id))})}const Jd="caddis-hub-motion",yg=["on","off"];function bd(){try{return window.localStorage}catch{return null}}function vg(l=bd()){try{return(l==null?void 0:l.getItem(Jd))==="off"?"off":"on"}catch{return"on"}}function wg(l,i=bd()){try{i==null||i.setItem(Jd,l)}catch{}}const ef="caddis-hub-theme",kg=["dark","light","system"];function tf(){try{return window.localStorage}catch{return null}}function xg(l=tf()){try{const i=l==null?void 0:l.getItem(ef);return i==="dark"||i==="light"||i==="system"?i:"system"}catch{return"system"}}function Sg(l,i=tf()){try{i==null||i.setItem(ef,l)}catch{}}function Ng(l,i){return l==="system"?i?"dark":"light":l}const _g={dark:Wh,light:Xh,system:Bh},jg={on:Qh,off:qh},Eg={on:"motion",off:"still"};function Cg({state:l,nowMs:i,theme:a,onTheme:c,motion:f,onMotion:p}){const y=om(l==null?void 0:l.spend),w=l==null?void 0:l.versions,g=sm(l),E=Dd(l);return d.jsxs("footer",{className:"sidebar-footer",children:[d.jsxs("div",{className:"footer-meta",children:[d.jsxs("div",{className:"updated-line",children:[d.jsx(Mh,{size:14,"aria-hidden":"true"}),d.jsx("span",{"data-testid":"data-age",children:l?rm(l.generated_at,i):"Waiting for data"})]}),d.jsxs("div",{className:"spend-box",children:[d.jsxs("div",{className:"spend-row",children:[d.jsx("span",{children:"agy spend (24 h)"}),d.jsx("span",{className:"mono",children:y.configured?`${y.committedEur.toFixed(2)} / ${y.capEur.toFixed(0)} EUR`:"no cap set"})]}),d.jsx("div",{className:"meter-track",role:"progressbar","aria-label":"agy spend","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(y.pct),children:d.jsx("div",{className:`meter-fill${y.pct>=80?" hot":""}`,style:{width:`${y.pct}%`}})})]}),E&&!g&&d.jsxs("div",{className:"quota-line mono","data-testid":"quota",children:["GitHub quota ",E.remaining," left (",E.account,")"]}),g&&d.jsxs("div",{className:"quota-low","data-testid":"quota-low",role:"status",children:["GitHub quota low: ",g.remaining," left (",g.account,")",g.resetAt?`, resets ${Mr(g.resetAt)}`:"",". Polling slows."]}),w&&d.jsxs("div",{className:"versions mono",children:["hub ",w.hub," | pool ",w.pool??"-"," | plugin ",w.plugin??"-"]})]}),d.jsx("div",{className:"theme-switch",role:"group","aria-label":"Theme",children:kg.map(j=>{const R=_g[j];return d.jsxs("button",{type:"button",className:`theme-btn${a===j?" active":""}`,"aria-pressed":a===j,title:j,onClick:()=>c(j),children:[d.jsx(R,{size:15,"aria-hidden":"true"}),d.jsx("span",{children:j})]},j)})}),d.jsx("div",{className:"theme-switch",role:"group","aria-label":"Logo animation",children:yg.map(j=>{const R=jg[j];return d.jsxs("button",{type:"button",className:`theme-btn${f===j?" active":""}`,"aria-pressed":f===j,title:j==="on"?"Animate the logo":"Stop the logo animation",onClick:()=>p(j),children:[d.jsx(R,{size:15,"aria-hidden":"true"}),d.jsx("span",{children:Eg[j]})]},j)})})]})}const $g="/assets/mark-anim-DZa95SHo.webp",Tg="/assets/mark-still-CcPgBc_-.png",Pg="/assets/wordmark-CD0s2ofS.svg";function Bc(){return d.jsxs("span",{className:"brand-logo",children:[d.jsx("img",{src:$g,alt:"",width:36,height:36,className:"brand-mark brand-mark-anim"}),d.jsx("img",{src:Tg,alt:"",width:36,height:36,className:"brand-mark brand-mark-still"}),d.jsxs("span",{className:"brand-stack",children:[d.jsx("img",{src:Pg,alt:"CADDIS",width:100,height:20,className:"brand-wordmark"}),d.jsx("span",{className:"brand-sub",children:"hub"})]})]})}const zg=[["poster","Poster"],["details","Details"],["wall","Wall poster"],["map","Map"]];function Rg(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 Or({href:l,active:i,icon:a,label:c,badge:f,onGo:p}){return d.jsx("li",{children:d.jsxs("a",{className:`nav-link${i?" active":""}`,href:l,"aria-current":i?"page":void 0,onClick:p,children:[d.jsxs("span",{className:"nav-link-left",children:[a,d.jsx("span",{className:"nav-text",children:c})]}),f]})})}function Lg({route:l,state:i,inbox:a,open:c,onToggle:f,children:p}){const y=()=>f(!1);return d.jsxs(d.Fragment,{children:[d.jsxs("header",{className:"mobile-topbar",children:[d.jsxs("button",{type:"button",className:"menu-btn","aria-label":"Open navigation menu","aria-expanded":c,"aria-controls":"app-sidebar",onClick:()=>f(!c),children:[c?d.jsx(bh,{size:18}):d.jsx(Hh,{size:18}),d.jsx("span",{children:"Menu"})]}),d.jsx(Bc,{})]}),d.jsx("div",{className:`drawer-backdrop${c?" open":""}`,onClick:y,"aria-hidden":"true"}),d.jsxs("aside",{className:`sidebar${c?" drawer-open":""}`,id:"app-sidebar",children:[d.jsxs("nav",{className:"sidebar-top","aria-label":"Main",children:[d.jsx("div",{className:"brand-row",children:d.jsx(Bc,{})}),d.jsxs("ul",{className:"nav-list",children:[d.jsx(Or,{href:"#/inbox",active:l.page==="inbox",icon:d.jsx(Fh,{size:18}),label:"Inbox",badge:a>0?d.jsx("span",{className:"inbox-badge",children:a}):void 0,onGo:y}),d.jsx(Or,{href:"#/overview",active:l.page==="overview",icon:d.jsx(Uh,{size:18}),label:"Overview",onGo:y})]}),d.jsx("div",{className:"nav-section-label",children:"Repos"}),d.jsxs("ul",{className:"nav-list",children:[(i==null?void 0:i.repos.length)===0&&d.jsx("li",{className:"nav-empty",children:"No repos yet"}),i==null?void 0:i.repos.map(w=>{const g=ki(w),E=l.page==="repo"&&l.id===g;return d.jsx(Or,{href:di(g),active:E,icon:d.jsx("span",{className:`repo-dot ${Rg(w,i)}`,"aria-hidden":"true"}),label:w.name,onGo:y},w.path)})]}),d.jsx("div",{className:"nav-section-label",children:"More"}),d.jsxs("ul",{className:"nav-list",children:[d.jsx(Or,{href:"#/activity",active:l.page==="activity",icon:d.jsx(Th,{size:18}),label:"Activity",onGo:y}),d.jsx(Or,{href:"#/guide",active:l.page==="guide",icon:d.jsx(Lh,{size:18}),label:"caddis guide",onGo:y}),d.jsx("li",{children:d.jsx("ul",{className:"nav-sublist","aria-label":"caddis guide pages",children:zg.map(([w,g])=>{const E=l.page==="guide"&&l.tab===w;return d.jsx("li",{children:d.jsx("a",{className:`nav-link nav-sublink${E?" active":""}`,href:Xm(w),"aria-current":E?"true":void 0,onClick:y,children:d.jsx("span",{className:"nav-text",children:g})})},w)})})})]})]}),p]})]})}const Dg="/assets/favicon-DtHQyAC1.svg",Og="/assets/favicon-dot-DHAVYP15.svg",Mg=l=>l?Og:Dg;function Ig(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=Mg(l)}const Ag=()=>{var l;return((l=window.matchMedia)==null?void 0:l.call(window,"(prefers-color-scheme: dark)").matches)??!0};function Fg(){const[l,i]=Y.useState(()=>xg());return Y.useEffect(()=>{const a=()=>{document.documentElement.dataset.theme=Ng(l,Ag())};if(a(),l!=="system"||!window.matchMedia)return;const c=window.matchMedia("(prefers-color-scheme: dark)");return c.addEventListener("change",a),()=>c.removeEventListener("change",a)},[l]),[l,a=>{Sg(a),i(a)}]}function Ug(){const[l,i]=Y.useState(()=>vg());return Y.useEffect(()=>{document.documentElement.dataset.motion=l},[l]),[l,a=>{wg(a),i(a)}]}const Hg=1e4;function Bg(){const[l,i]=Y.useState(null),[a,c]=Y.useState(null),[f,p]=Y.useState(!0),y=Y.useRef(void 0),w=Y.useRef(!0),g=Y.useCallback(async()=>{try{const j=await hh();if(!w.current)return;i(j),c(null)}catch(j){if(!w.current)return;c(j instanceof ii&&j.status===401?"unauthorized":"network")}finally{w.current&&p(!1)}},[]);Y.useEffect(()=>{w.current=!0;const j=()=>window.clearInterval(y.current),R=()=>{j(),y.current=window.setInterval(()=>void g(),Hg)},C=()=>{document.hidden?j():(g(),R())};return g(),document.hidden||R(),document.addEventListener("visibilitychange",C),()=>{w.current=!1,j(),document.removeEventListener("visibilitychange",C)}},[g]);const E=Y.useCallback(()=>void g(),[g]);return{state:l,error:a,loading:f,refresh:E}}const Wg=Y.lazy(()=>pi(()=>import("./Guide-Czn5sK0f.js"),__vite__mapDeps([2,3])).then(l=>({default:l.Guide}))),Vg=Y.lazy(()=>pi(()=>import("./Activity-BDjet2xd.js"),__vite__mapDeps([4,1])));function qg(l){const[i,a]=Y.useState(()=>Date.now());return Y.useEffect(()=>{const c=window.setInterval(()=>a(Date.now()),l);return()=>window.clearInterval(c)},[l]),i}function Qg(){const[l,i]=Y.useState(()=>window.location.hash);return Y.useEffect(()=>{const a=()=>i(window.location.hash);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),Ym(l)}function Kg(){const{state:l,error:i,loading:a,refresh:c}=Bg(),f=vh(c),p=qg(5e3),y=Qg(),[w,g]=Fg(),[E,j]=Ug(),[R,C]=Y.useState(!1),D=Am(l,p),_=D.model.items.length;Y.useEffect(()=>{document.title=nm(_),Ig(_>0)},[_]);let V;if(i==="unauthorized")V=d.jsxs("div",{className:"notice","data-testid":"signin",children:[d.jsx("h1",{className:"page-title",children:"Signed out"}),d.jsxs("p",{children:["Run ",d.jsx("code",{className:"cmd",children:"caddis hub open"})," to sign in."]})]});else if(!l)V=d.jsx("p",{className:"page-subtitle",children:a?"Loading...":"The hub did not answer. Retrying."});else if(y.page==="inbox")V=d.jsx(Dm,{state:l,nowMs:p,api:D,act:f});else if(y.page==="overview")V=d.jsx(Km,{state:l,nowMs:p,api:D,act:f});else if(y.page==="repo"){const A=l.repos.find(B=>ki(B)===y.id);V=A?d.jsx(pg,{state:l,repo:A,nowMs:p,act:f,tab:y.tab,roadmap:y.roadmap},y.id):d.jsxs("div",{className:"notice",children:[d.jsx("h1",{className:"page-title",children:y.id}),d.jsx("p",{children:"This repo is not in the hub registry."})]})}else y.page==="guide"?V=d.jsx(Y.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(Wg,{guide:l.guide,versions:l.versions,tab:y.tab,item:y.item})}):V=d.jsx(Y.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(Vg,{state:l})});return d.jsxs("div",{className:"app-shell",children:[d.jsx(Lg,{route:y,state:l,inbox:_,open:R,onToggle:C,children:d.jsx(Cg,{state:l,nowMs:p,theme:w,onTheme:g,motion:E,onMotion:j})}),d.jsx("main",{className:"main-area",id:"main-content",children:d.jsxs("div",{className:"page-wrap",children:[l&&d.jsx(gg,{state:l}),i==="network"&&l&&d.jsx("div",{className:"banner warn",role:"status",children:"The hub did not answer. Showing the last data."}),V]})})]})}fh();const Wc=document.getElementById("root");Wc&&ih.createRoot(Wc).render(d.jsx(Y.StrictMode,{children:d.jsx(Kg,{})}));export{Zm as D,Yg as N,ng as P,im as T,Qn as a,ki as b,ue as c,Ir as d,Gm as e,sy as f,Xm as g,ty as h,Zg as i,d as j,am as k,ry as l,Xg as m,Jg as n,ey as o,bg as p,Hd as q,Y as r,Mr as s,ly as t,ny as u,oy as v,iy as w,Gg as x,ym as y};
231
+ */const jd={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};jd.node;const em=ue(jd),mi={hotfix:"Mark hotfix",unhotfix:"Unmark hotfix",hold:"Hold",release:"Release",approve:"Approve",decline:"Decline"},bo={hotfix:"hotfix",unhotfix:"hotfix",hold:"hold",release:"hold",approve:"approve",decline:"approve"},Ed=l=>l.repo_id??null,Cd=(l,i,a)=>`${l}:${bo[i]}:${a}`;function gi(l,i){const a=Ed(l),c=Pd(l,i.pr)??i.headSha;if(!a||!c)return[];const f=p=>({key:Cd(a,p,i.pr),label:mi[p],body:{repo_id:a,action:p,pr:i.pr,head_sha:c}});return[f(i.hotfix?"unhotfix":"hotfix"),f(i.held?"release":"hold")]}function $d(l,i){const a=Ed(l);if(!a)return[];const c=i.pr!==null?Pd(l,i.pr)??i.head_sha:null;return["approve","decline"].map(f=>({key:Cd(a,f,i.what),label:mi[f],body:{repo_id:a,action:f,pr:i.pr,head_sha:c,what:i.what}}))}function Pd(l,i){var a,c,f;return((f=(c=(a=l.github)==null?void 0:a.prs)==null?void 0:c.find(p=>p.number===i))==null?void 0:f.head_sha)??null}function Td(l){return l.actions?l.actions.enabled?null:l.actions.reason??"Actions need a live coordinator.":"Actions need a live coordinator."}function zd(l,i){var f;const a=Td(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 tm(l,i){var f;const a=((f=l.coordinator)==null?void 0:f.requests)??[],c=bo[i.body.action];for(let p=a.length-1;p>=0;p--){const y=a[p],w=y.action;if(!(!(w in bo)||bo[w]!==c)&&(i.body.what!==void 0?y.what===i.body.what&&y.pr===i.body.pr:y.pr===i.body.pr))return y}return null}function Rd(l){const i=mi[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 Ld=l=>l==="done"?"good":l==="requested"?"muted":l==="not_picked_up"?"warn":"bad";function nm(l,i,a){const c=tm(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"&&(!c||c.id!==a.requestId)?{text:`${i.label}: requested. Waiting for the coordinator.`,tone:"muted"}:c?{text:Rd(c),tone:Ld(c.status)}:null}function nl({repo:l,specs:i,act:a,compact:c=!1,reason:f}){if(i.length===0)return null;const p=f!==void 0?f:Td(l),y=new Set,w=[];for(const g of i){if(y.has(g.key))continue;y.add(g.key);const E=nm(l,g,a.local[g.key]);E&&w.push({key:g.key,...E})}return d.jsxs("div",{className:`action-row${c?" compact":""}`,"data-testid":"actions",children:[d.jsx("div",{className:"action-buttons",children:i.map(g=>{var E;return d.jsx("button",{type:"button",className:"btn btn-act",disabled:p!==null||((E=a.local[g.key])==null?void 0:E.status)==="sending",title:p??void 0,onClick:()=>a.run(g),"data-testid":`act-${g.body.action}`,children:g.label},`${g.key}:${g.body.action}`)})}),p&&!c&&d.jsx("span",{className:"action-reason","data-testid":"action-reason",children:p}),w.map(g=>d.jsx("span",{className:`request-status tone-${g.tone}`,"data-testid":"request-status",role:"status",children:g.text},g.key))]})}function Dd({item:l}){const i=l.recommendation,a=l.from?`from ${l.from}`:l.source==="coordinator"?"from the coordinator":"from the asking session";return d.jsxs("div",{className:"detail-block recommendation","data-testid":"recommendation",children:[d.jsxs("span",{className:"detail-label",children:["Recommendation, ",a]}),i?d.jsxs(d.Fragment,{children:[d.jsxs("span",{children:[d.jsx("strong",{className:`rec-${i.decision}`,children:i.decision==="approve"?"Approve":"Hold"}),i.reason?`: ${i.reason}`:""]}),i.evidence&&d.jsxs("span",{className:"rec-evidence",children:["Evidence: ",i.evidence]})]}):d.jsx("span",{children:"No recommendation was recorded. Read the source before you decide."}),d.jsx("span",{className:"rec-note",children:"A recommendation is not an approval. Only your click approves."})]})}const jc="caddis hub";function rm(l){return l>0?`(${l}) ${jc}`:jc}function tn(l,i){if(!l)return"unknown";const a=Date.parse(l);if(Number.isNaN(a))return"unknown";const c=Math.max(0,Math.round((i-a)/1e3));if(c<5)return"just now";if(c<60)return`${c} s ago`;const f=Math.floor(c/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 om=(l,i)=>`Updated ${tn(l,i)}`;function Mr(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 lm(l){const i=Number(l==null?void 0:l.cap_eur),a=Number(l==null?void 0:l.committed_eur),c=(l==null?void 0:l.configured)===!0&&Number.isFinite(i)&&i>0,f=Number.isFinite(a)?a:0;return{configured:c,capEur:c?i:0,committedEur:f,pct:c?Math.min(100,Math.max(0,f/i*100)):0}}const ci=l=>Object.values(l.sources??{}).some(i=>!i.ok||i.stale),sm=500;function Od(l){const i=l==null?void 0:l.github_rate;if(!i||typeof i!="object")return null;let a=null;for(const[c,f]of Object.entries(i)){const p=f,y=typeof(p==null?void 0:p.remaining)=="number"&&Number.isFinite(p.remaining)?p.remaining:NaN;Number.isNaN(y)||(!a||y<a.remaining)&&(a={account:c,remaining:y,resetAt:typeof(p==null?void 0:p.reset_at)=="string"?p.reset_at:null})}return a}function im(l){const i=Od(l);return i&&i.remaining<sm?i:null}const rt=l=>Array.isArray(l)?l:[],am={todo:"to do","in-progress":"in progress",done:"done",moved:"moved",blocked:"blocked"},nn=new Set(["done","not-needed"]),Zg="No roadmap or plan",Jg="/caddis:roadmap";function bg(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 Ec=l=>typeof l=="number"&&Number.isInteger(l)&&l>0;function um(l){const i=Ee(l);return Ec(i.pr)?{pr:i.pr,draft:i.draft===!0,also:rt(i.also).filter(Ec)}:null}const ey=[{key:"todo",label:"To do"},{key:"in-progress",label:"In progress"},{key:"blocked",label:"Blocked"},{key:"done",label:"Done"}];function cm(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 ty(l){const i=cm(l),a=l.rows.length,c=i.done.length;return{total:a,done:c,inProgress:i["in-progress"].length,blocked:i.blocked.length,todo:i.todo.length,pct:a===0?0:Math.round(c/a*100)}}function ny(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 Ee=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{},J=l=>typeof l=="string"?l:"",Ot=l=>typeof l=="string"&&l?l:null,el=l=>typeof l=="number"&&Number.isInteger(l)?l:0,Md=new Set(["todo","in-progress","done","moved","blocked"]);function Id(l,i){const a=l.github;return[...new Set(rt(i).filter(c=>typeof c=="number"&&Number.isInteger(c)))].map(c=>{var y,w;const f=(y=a==null?void 0:a.prs)==null?void 0:y.find(g=>g.number===c),p=((w=a==null?void 0:a.merges)==null?void 0:w.some(g=>g.number===c))??!1;return{number:c,url:a!=null&&a.repo?`https://github.com/${a.repo}/pull/${c}`:null,stage:f?"in review":p?"merged":null,detail:f?`required checks ${f.required_state}`:null}})}function Ad(l,i){const a=l.filter(c=>c.stage).map(c=>`#${c.number} ${c.stage}${c.detail?` (${c.detail})`:""}`);return a.length?a.join(", "):am[i]}function ry(l){return[l.model&&`model ${l.model}`,l.lane&&`lane ${l.lane.split(" ")[0]}`,l.risk&&`risk ${l.risk}`].filter(Boolean).join(" · ")}function dm(l,i){const a=Ee(i),c=J(a.ref),f=c.lastIndexOf("#"),p=J(a.state),y=Md.has(J(a.tile))?J(a.tile):p==="done"?"done":"todo",w=J(a.risk),g=Id(l,a.prs);return{ref:c,plan:J(a.plan)||(f>0?c.slice(0,f):""),num:el(a.num)||f>0&&Number(c.slice(f+1))||0,name:J(a.name)||c,model:J(a.model),lane:J(a.lane),risk:w,highRisk:w.toLowerCase().includes("high"),tracker:J(a.tracker),tile:y,prs:g,stage:Ad(g,y)}}const Cc=(l,i)=>{const a=Ee(i);return{milestone:l,type:J(a.type),reason:J(a.reason),check:J(a.check)}};function Fd(l,i){return nn.has(l)?"done":i.some(a=>a.type==="owner-gate")?"wait":i.length||l==="blocked"?"block":l==="in-progress"?"prog":"todo"}const wn=l=>l==="done"||l==="moved";function fm(l,i){const a=Ee(l),c=Ee(a.lock),f=Ee(a.stale_lock),p=Ee(a.last_stop);let y=null;return J(p.reason)==="running"?y="running now":J(p.reason)&&(y=`${J(p.reason)}${p.exit!==void 0&&p.exit!==null?` (exit ${String(p.exit)})`:""}`),{running:Object.keys(c).length?{batch:String(c.batch??""),since:Ot(c.started_utc),host:Ot(c.host),pid:c.pid===void 0?null:String(c.pid)}:null,staleBatch:Object.keys(f).length?String(f.batch??""):null,lastStop:y,lastStopAt:Ot(p.utc),stopReason:J(p.reason)||null,errors:rt(a.errors).map(String),next:i}}function Ud(l){const i=new Map(l.map(c=>[c.id,c.status])),a={now:[],next:[],later:[]};for(const c of l){if(nn.has(c.status))continue;const f=c.depends.every(p=>nn.has(i.get(p)??""));c.status==="in-progress"||f&&c.blockers.length===0?a.now.push(c):c.depends.some(p=>a.now.some(y=>y.id===p))?a.next.push(c):a.later.push(c)}return a}function pm(l,i){const a=Ee(i),c=rt(a.milestones).map(j=>{const R=Ee(j),C=J(R.id),D=rt(R.blockers).map(A=>Cc(C,A)),_=rt(R.phases).map(A=>dm(l,A)),V=J(R.status);return{id:C,status:V,owner:J(R.owner)||"runner",target:Ot(R.target),depends:rt(R.depends).map(String),phases:_,blockers:D,done:_.filter(A=>wn(A.tile)).length,total:_.length,tone:Fd(V,D)}}),f=c.flatMap(j=>j.phases),p=Ee(a.next),y=Object.keys(p).length?`${J(p.milestone)} ${J(p.plan)}#${String(p.phase)}`:null,w=(rt(a.lanes).length?rt(a.lanes).map(String):[...new Set(f.map(j=>j.plan))]).map(j=>({plan:j,done:f.filter(R=>R.plan===j&&wn(R.tile)).length,total:f.filter(R=>R.plan===j).length})),g=c.flatMap(j=>j.blockers),E=Array.isArray(a.waiting)?rt(a.waiting).map(j=>Cc(J(Ee(j).milestone),{...Ee(j),type:"owner-gate"})):c.filter(j=>!nn.has(j.status)).flatMap(j=>j.blockers.filter(R=>R.type==="owner-gate"));return{slug:J(a.roadmap),kind:"roadmap",branch:Ot(a.branch),originCommit:Ot(a.origin_commit),milestones:c,lanes:w,gates:E,blockers:g,kpis:{phasesDone:f.filter(j=>wn(j.tile)).length,phasesTotal:f.length,milestonesDone:el(a.done)||c.filter(j=>nn.has(j.status)).length,milestonesTotal:el(a.total)||c.length,inProgress:f.filter(j=>j.tile==="in-progress").map(j=>j.ref),highRisk:f.filter(j=>j.highRisk).length,next:y??"none ready"},board:Ud(c),runner:fm(a.runner,y),detailError:Ot(a.detail_error)}}const hm=l=>typeof l=="string"&&Md.has(l)?l:"todo",Hd=l=>{var i;return((i=l.trim().split(/\s+/)[0])==null?void 0:i.toLowerCase())??""};function yi(l){return(l.split("/").pop()??"").replace(/\.md$/,"")}function oy(l,i){var j,R;const a=yi(i.path),c=[];let f=!1;for(const C of i.rows){const D=((j=C.milestone)==null?void 0:j.trim())||null;D?c.includes(D)||c.push(D):f=!0}(f||c.length===0)&&(c.includes("Phases")||c.push("Phases"));const p=new Map(c.map(C=>[C,[]])),y=i.rows.map((C,D)=>{var O,de;const _=C.key||Hd(C.phase),V=Array.from(C.status.matchAll(/#(\d+)/g),fe=>Number(fe[1])),A=Id(l,V),B=C.state,ce={ref:`${a}#${_}`,plan:a,num:D+1,name:C.phase,model:"",lane:"",risk:"",highRisk:!1,tracker:C.status,tile:B,prs:A,stage:Ad(A,B)},Ce=((O=C.milestone)==null?void 0:O.trim())||"Phases";return(de=p.get(Ce))==null||de.push(ce),ce}),w=c.map((C,D)=>{const _=p.get(C)??[],V=_.filter(ce=>wn(ce.tile)).length,A=_.length,B=A>0&&V===A?"done":_.some(ce=>ce.tile==="in-progress"||wn(ce.tile))?"in-progress":"todo";return{id:C,status:B,owner:"",target:null,depends:D>0?[c[D-1]]:[],phases:_,blockers:[],done:V,total:A,tone:Fd(B,[])}}),g=y.filter(C=>wn(C.tile)).length,E=y.length;return{slug:a,kind:"plan",branch:null,originCommit:null,milestones:w,lanes:[{plan:a,done:g,total:E}],gates:[],blockers:[],kpis:{phasesDone:g,phasesTotal:E,milestonesDone:w.filter(C=>nn.has(C.status)).length,milestonesTotal:w.length,inProgress:y.filter(C=>C.tile==="in-progress").map(C=>C.ref),highRisk:0,next:((R=y.find(C=>!wn(C.tile)))==null?void 0:R.name)??""},board:Ud(w),runner:{running:null,staleBatch:null,lastStop:null,lastStopAt:null,stopReason:null,errors:[],next:null},detailError:null}}function ly(l,i,a){const c=l.milestones.flatMap(E=>E.phases).find(E=>E.ref===a);if(!c)return null;const f=i.find(E=>yi(E.path)===c.plan),p=a.lastIndexOf("#"),y=(p>=0?a.slice(p+1):a).toLowerCase(),w=!!(f!=null&&f.phases&&Object.prototype.hasOwnProperty.call(f.phases,y)),g=w?f==null?void 0:f.phases[y]:void 0;return{title:g!=null&&g.title?g.title:c.name,text:typeof(g==null?void 0:g.text)=="string"&&g.text.length>0?g.text:null,hasSection:w,planPath:(f==null?void 0:f.path)??null,key:y,phase:c}}function mm(l){return rt(Ee(l).plans).map(i=>Ee(i)).filter(i=>!i.error&&!["done","closed","archived"].includes(J(i.status).toLowerCase())).map(i=>{const a={};for(const[c,f]of Object.entries(Ee(i.phases))){const p=Ee(f);a[c]=typeof p.text=="string"?{title:J(p.title),text:p.text}:{title:J(p.title)}}return{path:J(i.path),title:J(i.title)||J(i.path),rows:rt(i.tracker).map(c=>{const f=Ee(c),p=J(f.phase);return{phase:p,status:J(f.status),state:hm(f.state),key:J(f.key)||Hd(p),milestone:J(f.milestone).trim()||null}}),phases:a,open:el(i.open_rows),changedAt:typeof i.changed_at=="number"&&Number.isFinite(i.changed_at)?i.changed_at:null,overlay:um(i.overlay)}})}function Bd(l){const i=Ee(l.roadmaps),a=Ot(l.error)??Ot(i.error),c=[],f=[];for(const E of rt(i.roadmaps)){const j=Ee(E);J(j.error)?f.push({slug:J(j.roadmap),error:J(j.error)}):J(j.roadmap)&&c.push(pm(l,j))}const p=mm(l.plans),y=new Set(c.flatMap(E=>E.lanes.map(j=>j.plan))),w=p.filter(E=>E.rows.length>0&&E.open>0&&!y.has(yi(E.path))),g={roadmaps:c,errors:f,plans:p,otherPlans:w,repoError:a};return c.length||f.length?{mode:"roadmaps",...g}:a&&!l.roadmaps&&!l.plans?{mode:"error",...g}:p.length?{mode:"plans",...g}:{mode:a?"error":"none",...g}}const sy=l=>l.mode==="roadmaps"&&l.roadmaps.length===1&&l.errors.length===0;function iy(l){const i=l.milestones.flatMap(y=>y.phases).filter(y=>y.tile==="blocked").length,{phasesDone:a,phasesTotal:c}=l.kpis,f=l.gates.length?"wait":i?"block":c&&a>=c?"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:c,pct:c?Math.round(100*a/c):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(y=>({id:y.id,status:y.status})),tone:f}}function gm(l){const i=[];for(const a of Bd(l).roadmaps){const c=new Map(a.milestones.map(f=>[f.id,f.status]));for(const f of a.milestones)nn.has(f.status)||!f.depends.every(p=>nn.has(c.get(p)??""))||f.blockers.filter(p=>p.type==="owner-gate").forEach((p,y)=>i.push({roadmap:a.slug,milestone:f.id,reason:p.reason,check:p.check,id:`${a.slug}:${f.id}:${y}`}))}return i}const ym=l=>l.roadmaps.reduce((i,a)=>i+a.gates.length,0),$c=(l,i)=>l.toLowerCase().includes(i);function ay(l,i){const a=i.trim().toLowerCase();if(!a)return null;const c={milestones:new Set,phases:new Set,count:0};for(const f of l.milestones){const p=$c([f.id,f.status,f.owner,f.target??""].join(" "),a);let y=!1;for(const w of f.phases){const g=$c([w.ref,w.name,w.model,w.lane,w.risk,w.tracker,w.prs.map(E=>`#${E.number}`).join(" ")].join(" "),a);(g||p)&&(c.phases.add(w.ref),y=!0),g&&(c.count+=1)}p&&(c.count+=1),(p||y)&&c.milestones.add(f.id)}return c}function vm(l){const i=ym(Bd(l));return i>0?`Roadmap · ${i} gate${i===1?"":"s"}`:"Roadmap"}const wm=l=>!l.sources.collector.ok||l.sources.collector.stale,km=24*3600;function xm(l){if(!l)return"";const i=Ee(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 (${J(i.reason)||"unknown"})`:""}function uy(l,i){const a=Ee(l),c=J(a.source);if(!c)return null;if(c==="working-tree")return{text:"Plans from the working tree (no origin branch found)",old:!1};const f=J(a.commit).slice(0,7),p=typeof a.commit_at=="number"?a.commit_at:null,y=typeof a.fetched_at=="number"?a.fetched_at:null;return{text:`Plans from ${c}`+(f?` @ ${f}`:"")+(p!==null?` · commit ${tn(new Date(p*1e3).toISOString(),i)}`:"")+(y===null?" · fetch time unknown":` · last fetch ${tn(new Date(y*1e3).toISOString(),i)}`)+xm(a.overlay),old:y!==null&&i/1e3-y>km}}const Wd="caddis.hub.roadmapView";function cy(l){if(!l)return"timeline";try{return l.getItem(Wd)==="board"?"board":"timeline"}catch{return"timeline"}}function dy(l,i){if(l)try{l.setItem(Wd,i)}catch{}}const Pc={waiting:"Waiting","owner-gate":"Owner gate",blocked:"Blocked","blocked-merge":"Blocked merge",coordinator:"Coordinator",hub:"Hub"},Sm={collector:"Roadmap and relay data",agents:"Session list",github:"GitHub data",coordinator:"Coordinator data"},Qn=l=>Array.isArray(l)?l:[],Et=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{},ot=l=>typeof l=="string"&&l?l:null,Kn=l=>typeof l=="number"&&Number.isFinite(l)?l:null,Ir=l=>{var i;return((i=l.github)==null?void 0:i.repo)??l.name},Tc=l=>l.replace(/\\/g,"/").replace(/\/+$/,"").toLowerCase(),rl=l=>l.agent&&l.agent!=="claude"?l.agent:null,kn=(l,i)=>!!l&&!!i&&Tc(l)===Tc(i);function Vd(l){var a;const i=[];for(const c of Qn((a=l.relays)==null?void 0:a.relays)){const f=Et(c),p=ot(f.name),y=ot(f.status);!p||!y||i.push({name:p,status:y,statusArg:ot(f.status_arg)??"",updatedAt:ot(f.updated_at),nextStep:ot(f.next_step)})}return i}function qd(l){return Array.isArray(l.owner_items)?l.owner_items:Vd(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 Ar(l){var a;const i=[];for(const c of Qn((a=l.coordinator)==null?void 0:a.queue)){const f=Et(c),p=Kn(f.pr);if(p===null)continue;const y=[];for(const w of Qn(f.waits_on)){const g=Et(w),E=Kn(g.pr);E!==null&&y.push({repo:ot(g.repo)??"",pr:E})}i.push({pr:p,headSha:ot(f.head_sha)??"",title:ot(f.title)??"",state:ot(f.state)??"waiting",whyWaiting:ot(f.why_waiting)??"",waitsOn:y,hotfix:f.hotfix===!0,held:f.held===!0,since:ot(f.entered_ready_at)})}return i}function Qd(l){var a;const i=(a=l.coordinator)==null?void 0:a.merging_now;return Kn(i)??Kn(Et(i).pr)}function Nm(l){const i=new Set,a=[];for(const c of l)c.waiting_class!=="owner"||i.has(c.session_id)||(i.add(c.session_id),a.push(c));return a}function _m(l,i){var p,y;let a=null;for(const w of l.repos){const g=Ir(w);for(const E of Qn((p=w.coordinator)==null?void 0:p.deploy_checks)){const j=Et(E),R=Date.parse(ot(j.at)??""),C=Kn(j.pr);if(Number.isNaN(R)||C===null)continue;const D=ot(j.health);(!a||R>a.at)&&(a={at:R,label:`${g} #${C}`,ok:D==="ok"?!0:D==="failed"?!1:null,how:`health ${D??"unknown"}`})}for(const E of((y=w.github)==null?void 0:y.merges)??[]){const j=Date.parse(E.merged_at);if(Number.isNaN(j)||a&&a.at>=j)continue;const R=E.runs??[],C=R.some(_=>_.conclusion==="failure"),D=R.length>0&&R.every(_=>_.conclusion==="success");a={at:j,label:`${g} #${E.number}`,ok:C?!1:D?!0:null,how:C?"deploy failed":D?"deploy pass":"merged"}}}if(!a)return null;const c=Math.max(0,Math.round((i-a.at)/6e4)),f=c<60?`${c} min ago`:c<1440?`${Math.floor(c/60)} h ago`:`${Math.floor(c/1440)} d ago`;return{label:a.label,sub:`${f} · ${a.how}`,ok:a.ok}}function jm(l,i,a){var p;let c=0;for(const y of l.repos)(p=y.coordinator)!=null&&p.responding&&(c+=Ar(y).filter(w=>w.state!=="blocked").length);const f=l.sessions.filter(y=>!["idle","done","unknown"].includes(y.status)).length;return{waitingOnYou:a.filter(y=>y.folder==="needs").length,blockedMerges:a.filter(y=>y.kind==="blocked-merge").length,inQueue:c,workingSessions:f,lastDeploy:_m(l,i)}}function Em(l){const i=new Date(l);return Number.isNaN(i.getTime())?"unknown":i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const zc=(l,i)=>{var a;return(a=l.github)!=null&&a.repo?`gh pr checks ${i} -R ${l.github.repo}`:`gh pr checks ${i}`};function Cm(l,i){var y,w;const a=[],c=new Set,f=g=>{c.has(g.id)||(c.add(g.id),a.push(g))},p=g=>l.repos.find(E=>kn(E.path,g));for(const g of Nm(l.sessions)){const E=p(g.repo_path),j=g.name??g.session_id.slice(0,8),R=rl(g);f({id:`waiting:${g.session_id}`,kind:"waiting",folder:"needs",repo:E?Ir(E):"no repo",title:`${j}${R?` (${R})`:""} waits on ${g.waiting_for??"you"}`,why:"The session cannot continue until you answer.",next:"Open the session and answer.",cmd:j,since:g.waiting_since,source:"agents"})}for(const g of l.repos){const E=Ir(g),j=Vd(g);for(const _ of qd(g)){const V=_.relay?j.find(B=>B.name===_.relay):void 0,A=_.source==="relay"?(y=/^owner gate (\S+) /.exec(_.what))==null?void 0:y[1]:void 0;f({id:`owner:${g.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:E,repoPath:g.path,title:A?`Gate ${A}: 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:(V==null?void 0:V.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 gm(g))f({id:`rmgate:${g.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:E,repoPath:g.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 j)_.status==="BLOCKED"&&_.statusArg.toLowerCase().startsWith("owner")&&f({id:`blocked:${g.path}:${_.name}`,kind:"blocked",folder:"needs",repo:E,repoPath:g.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 R=!!g.coordinator&&g.coordinator.responding;for(const _ of Ar(g))_.state==="blocked"&&f({id:`merge:${g.path}:${_.pr}`,kind:"blocked-merge",folder:"blocked",repo:E,repoPath:g.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:zc(g,_.pr),since:_.since,queue:{pr:_.pr,headSha:_.headSha,hotfix:_.hotfix,held:_.held},source:"coordinator"});const C=new Map(Ar(g).map(_=>[_.pr,_]));for(const _ of((w=g.github)==null?void 0:w.prs)??[]){if(_.draft||_.required_state!=="fail")continue;const V=_.checks.filter(B=>B.required&&B.conclusion==="failure").map(B=>B.name),A=C.get(_.number);f({id:`merge:${g.path}:${_.number}`,kind:"blocked-merge",folder:"blocked",repo:E,repoPath:g.path,title:`PR #${_.number}: required check ${V.length>0?`${V.join(", ")} `:""}failed`,why:R?"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:zc(g,_.number),since:_.updated_at,...A?{queue:{pr:A.pr,headSha:A.headSha,hotfix:A.hotfix,held:A.held}}:{},source:"github"})}const D=g.coordinator;D&&!D.responding&&D.heartbeat_at&&D.status!=="stopped"&&f({id:`coordinator:${g.path}`,kind:"coordinator",folder:"needs",repo:E,repoPath:g.path,title:`Coordinator not responding since ${Em(D.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:D.heartbeat_at,source:"coordinator"})}for(const g of["collector","agents","github","coordinator"]){const E=l.sources[g];E.ok||!E.stale||f({id:`hub:${g}`,kind:"hub",folder:"needs",repo:"hub",title:`${Sm[g]} has failed for over 3 min`,why:E.last_error??"The source has not answered.",next:"Read the error. The hub keeps the last good data.",cmd:"caddis hub status",since:E.last_ok_at})}return{items:a,tiles:jm(l,i,a)}}const $m=24*36e5,Pm=()=>({open:{},resolved:[]}),Tm=(l,i)=>{var c;const a=(c=l.sources)==null?void 0:c[i];return!!a&&(!a.ok||a.stale)};function zm(l,i){var c;if(!i.repoPath)return!1;const a=(c=l.repos)==null?void 0:c.find(f=>kn(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=Et(a.relays);return(typeof a.error=="string"||typeof f.error=="string")&&!Array.isArray(f.relays)}return!1}function Rc(l,i,a){const c=new Set(i.map(p=>p.id)),f=i.map(p=>p.stale?{...p,stale:!1}:p);for(const[p,y]of Object.entries(l))c.has(p)||!y.source||!Tm(a,y.source)&&!zm(a,y)||f.push({...y,stale:!0});return f}function Rm(l,i,a){const c=new Map(i.map(p=>[p.id,p])),f=l.resolved.filter(p=>a-p.resolvedAt<$m&&!c.has(p.item.id));for(const[p,y]of Object.entries(l.open))!c.has(p)&&!f.some(w=>w.item.id===p)&&f.push({item:y,resolvedAt:a});return f.sort((p,y)=>y.resolvedAt-p.resolvedAt),{open:Object.fromEntries(c),resolved:f}}function Lc(l){const i=Et(l);return typeof i.id=="string"&&typeof i.title=="string"&&typeof i.kind=="string"&&typeof i.folder=="string"}function Lm(l){const i=Et(l),a={};for(const[f,p]of Object.entries(Et(i.open)))Lc(p)&&(a[f]=p);const c=[];for(const f of Qn(i.resolved)){const p=Et(f),y=Kn(p.resolvedAt);Lc(p.item)&&y!==null&&c.push({item:p.item,resolvedAt:y})}return{open:a,resolved:c}}const Dc="Start a session in the folder: the hub adds it.";function Kd(){return d.jsxs("section",{className:"first-run","data-testid":"first-run","aria-label":"Get started",children:[d.jsx("h2",{children:"No repos yet"}),d.jsxs("p",{children:[d.jsx(Sd,{size:16,"aria-hidden":"true"})," Start a Claude Code session in a repo. The hub finds it by itself."]}),d.jsx("p",{children:"Or add a folder. The hub checks that it is a git repo."}),d.jsxs("button",{type:"button",className:"btn",disabled:!0,title:Dc,"data-testid":"add-folder",children:[d.jsx(Ah,{size:16,"aria-hidden":"true"}),"Add a folder"]}),d.jsxs("span",{className:"first-run-reason",children:[" ",Dc]})]})}const Dr={size:15,"aria-hidden":!0};function Yd({tiles:l,stale:i=!1}){const a=l.lastDeploy;return d.jsxs("div",{className:`kpi-strip${i?" stale":""}`,"data-testid":"tiles","data-stale":i?"true":void 0,children:[d.jsxs("div",{className:`kpi-tile${l.waitingOnYou>0?" urgent":""}`,children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(bh,{...Dr}),"Waiting on you"]}),d.jsx("span",{className:"kpi-num accent","data-testid":"tile-waiting",children:l.waitingOnYou})]}),d.jsxs("div",{className:`kpi-tile${l.blockedMerges>0?" danger":""}`,children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(Lh,{...Dr}),"Blocked merges"]}),d.jsx("span",{className:"kpi-num bad","data-testid":"tile-blocked",children:l.blockedMerges})]}),d.jsxs("div",{className:"kpi-tile",children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(Fh,{...Dr}),"In merge queue"]}),d.jsx("span",{className:"kpi-num","data-testid":"tile-queue",children:l.inQueue})]}),d.jsxs("div",{className:"kpi-tile",children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(Sd,{...Dr}),"Working sessions"]}),d.jsx("span",{className:"kpi-num","data-testid":"tile-working",children:l.workingSessions})]}),d.jsxs("div",{className:"kpi-tile deploy",children:[d.jsxs("span",{className:"kpi-label",children:[d.jsx(Yh,{...Dr}),"Last prod deploy"]}),a?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:`kpi-val ${a.ok===!0?"tone-good":a.ok===!1?"tone-bad":""}`,children:a.label}),d.jsx("span",{className:"kpi-sub tone-muted",children:a.sub})]}):d.jsx("span",{className:"kpi-val tone-muted",children:"No deploy yet"})]})]})}const Dm=[{id:"needs",label:"Needs you",Icon:ed},{id:"approvals",label:"Approvals",Icon:Gh},{id:"blocked",label:"Blocked",Icon:Xh},{id:"resolved",label:"Resolved, 24 h",Icon:zh}],Oc=(l,i)=>l?tn(l,i).replace(/ ago$/,""):"unknown";function Om(l){var i;try{(i=navigator.clipboard)==null||i.writeText(l)}catch{}}function Mm(l,i){return l?i.owner?$d(l,i.owner):i.queue?gi(l,i.queue):[]:[]}function Im({state:l,nowMs:i,api:a,act:c}){const[f,p]=Y.useState("needs"),[y,w]=Y.useState(null),[g,E]=Y.useState(!1),[j,R]=Y.useState(!1),{model:C,resolved:D,read:_}=a,V={needs:C.items.filter(O=>O.folder==="needs").length,approvals:C.items.filter(O=>O.folder==="approvals").length,blocked:C.items.filter(O=>O.folder==="blocked").length,resolved:D.length},A=f==="resolved"?D.map(O=>({item:O.item,resolved:!0,since:new Date(O.resolvedAt).toISOString()})):C.items.filter(O=>O.folder===f).map(O=>({item:O,resolved:!1,since:O.since})),B=A.find(O=>O.item.id===y)??A[0]??null,ce=O=>{p(O),w(null),E(!1)},Ce=O=>{w(O.item.id),E(!0),O.resolved||a.markRead(O.item.id)};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"page-header",children:[d.jsx("h1",{className:"page-title",children:"Inbox"}),d.jsxs("span",{className:"page-subtitle",children:[l.repos.length," repos · ",l.sessions.length," sessions"]})]}),l.repos.length===0&&d.jsx(Kd,{}),d.jsx(Yd,{tiles:C.tiles,stale:ci(l)}),a.notify.supported&&d.jsxs("div",{className:"notify-row",children:[d.jsxs("button",{type:"button",className:"btn",onClick:a.notify.enable,disabled:a.notify.enabled,children:[d.jsx(ed,{size:16,"aria-hidden":"true"}),a.notify.enabled?"Notifications on":"Notify me"]}),d.jsx("span",{children:a.notify.enabled?"One browser notification per new item.":"Opt in to a browser notification for each new item."})]}),d.jsxs("div",{className:`mailbox${g&&B?" show-detail":""}`,children:[d.jsx("div",{className:"mailbox-folders",role:"tablist","aria-label":"Folders",children:Dm.map(({id:O,label:de,Icon:fe})=>d.jsxs("button",{type:"button",role:"tab","aria-selected":f===O,className:`folder-btn${f===O?" sel":""}`,onClick:()=>ce(O),"data-testid":`folder-${O}`,children:[d.jsx(fe,{size:16,"aria-hidden":"true"}),d.jsx("span",{children:de}),d.jsx("strong",{children:V[O]})]},O))}),d.jsxs("div",{className:"mailbox-list","data-testid":"inbox-list",children:[A.map(O=>{const de=!O.resolved&&!_.has(O.item.id);return d.jsxs("button",{type:"button",className:`item-btn${(B==null?void 0:B.item.id)===O.item.id?" sel":""}`,onClick:()=>Ce(O),"data-testid":"inbox-item",children:[d.jsx("span",{className:`unread-dot${de?" on":""}`,role:"img","aria-label":de?"Unread":"Read"}),d.jsxs("span",{className:"item-main",children:[d.jsxs("span",{className:"item-meta",children:[d.jsx("span",{className:`chip chip-${O.resolved?"resolved":O.item.kind}`,children:O.resolved?"Resolved":Pc[O.item.kind]}),d.jsx("span",{className:"mono",children:O.item.repo}),d.jsxs("span",{children:["· ",Oc(O.since,i)]}),!O.resolved&&O.item.stale&&d.jsx("span",{className:"chip chip-stale","data-testid":"stale-chip",title:"Its source is failing. Last good data is shown.",children:"stale"})]}),d.jsx("span",{className:"item-title",children:O.item.title})]})]},O.item.id)}),A.length===0&&d.jsxs("div",{className:"list-empty","data-testid":"inbox-empty",children:[d.jsx("strong",{children:f==="resolved"?"Nothing resolved in the last 24 h":"Nothing needs you"}),d.jsxs("div",{children:["Last check ",tn(l.generated_at,i),"."]})]})]}),B&&d.jsxs("article",{className:"mailbox-detail","data-testid":"inbox-detail","aria-label":"Item detail",children:[d.jsxs("button",{type:"button",className:"btn back-btn",onClick:()=>E(!1),children:[d.jsx(Rh,{size:16,"aria-hidden":"true"}),"Back"]}),d.jsxs("span",{className:"item-meta",children:[d.jsx("span",{className:`chip chip-${B.resolved?"resolved":B.item.kind}`,children:B.resolved?"Resolved":Pc[B.item.kind]}),d.jsx("span",{className:"mono",children:B.item.repo}),d.jsxs("span",{children:["· ",B.resolved?"resolved":"since"," ",Oc(B.since,i)]}),!B.resolved&&B.item.stale&&d.jsx("span",{className:"chip chip-stale",children:"stale"})]}),d.jsx("h2",{children:B.item.title}),d.jsxs("div",{className:"detail-block",children:[d.jsx("span",{className:"detail-label",children:"Why it matters"}),d.jsx("span",{children:B.resolved?"The source cleared. No action is needed.":B.item.why})]}),!B.resolved&&B.item.owner&&d.jsx(Dd,{item:B.item.owner}),d.jsxs("div",{className:"detail-block",children:[d.jsx("span",{className:"detail-label",children:"Next step"}),d.jsx("span",{children:B.resolved?"Nothing.":B.item.next}),d.jsx("code",{className:"cmd",children:B.item.cmd})]}),d.jsx("div",{className:"detail-actions",children:d.jsxs("button",{type:"button",className:"btn",onClick:()=>{Om(B.item.cmd),R(!0),window.setTimeout(()=>R(!1),1500)},children:[j?d.jsx(Oh,{size:16,"aria-hidden":"true"}):d.jsx(sd,{size:16,"aria-hidden":"true"}),B.item.kind==="waiting"?"Copy session name":"Copy command"]})}),!B.resolved&&(()=>{const O=l.repos.find(Ne=>kn(Ne.path,B.item.repoPath)),de=Mm(O,B.item);if(!O||de.length===0)return null;const fe=B.item.owner?zd(O,B.item.owner):void 0;return d.jsx(nl,{repo:O,specs:de,act:c,reason:fe})})()]})]})]})}const Gd="caddis-hub-inbox-history",Mc="caddis-hub-inbox-read",Zo="caddis-hub-inbox-notified",Ic="caddis-hub-inbox-notify",Xd="caddis-hub-lanes-folded";function rn(){try{return window.localStorage}catch{return null}}function vi(l,i){try{const a=i==null?void 0:i.getItem(l);return a?JSON.parse(a):null}catch{return null}}function wi(l,i,a){try{a==null||a.setItem(l,JSON.stringify(i))}catch{}}const Am=(l=rn())=>{const i=vi(Gd,l);return i?Lm(i):Pm()},Fm=(l,i=rn())=>wi(Gd,l,i);function ri(l,i=rn()){const a=vi(l,i);return new Set(Array.isArray(a)?a.filter(c=>typeof c=="string"):[])}function oi(l,i,a=rn()){wi(l,[...i].slice(-500),a)}const Um={items:[],tiles:{waitingOnYou:0,blockedMerges:0,inQueue:0,workingSessions:0,lastDeploy:null}},li=()=>typeof window<"u"&&"Notification"in window;function Hm(l,i){const a=Y.useMemo(()=>l?Cm(l,i):Um,[l,i]),[c,f]=Y.useState(()=>Am()),p=Y.useMemo(()=>{if(!l)return a;const C=Rc(c.open,a.items,l),D=_=>C.filter(_).length;return{items:C,tiles:{...a.tiles,waitingOnYou:D(_=>_.folder==="needs"),blockedMerges:D(_=>_.kind==="blocked-merge")}}},[l,a,c.open]),[y,w]=Y.useState(()=>ri(Mc)),[g,E]=Y.useState(()=>{var C;try{return li()&&((C=rn())==null?void 0:C.getItem(Ic))==="1"&&Notification.permission==="granted"}catch{return!1}});Y.useEffect(()=>{l&&f(C=>{const D=Rm(C,Rc(C.open,a.items,l),Date.now());return Fm(D),D})},[l,a]),Y.useEffect(()=>{if(!g||!l)return;const C=ri(Zo);let D=!1;for(const _ of p.items)if(!C.has(_.id)){C.add(_.id),D=!0;try{new Notification(`caddis hub: ${_.repo}`,{body:_.title,tag:_.id})}catch{}}D&&oi(Zo,C)},[g,l,p]);const j=Y.useCallback(C=>{w(D=>{if(D.has(C))return D;const _=new Set(D).add(C);return oi(Mc,_),_})},[]),R=Y.useCallback(()=>{li()&&Notification.requestPermission().then(C=>{var _;if(C!=="granted")return;try{(_=rn())==null||_.setItem(Ic,"1")}catch{}const D=ri(Zo);for(const V of p.items)D.add(V.id);oi(Zo,D),E(!0)})},[p]);return{model:p,resolved:c.resolved,read:y,markRead:j,notify:{supported:li(),enabled:g,enable:R}}}const Ac="No coordinator: each session merges its own PRs.",Bm="/caddis:coordinate",Wm="gh auth login -h github.com",Zd=l=>{const i=l?new Date(l):null;return i&&!Number.isNaN(i.getTime())?i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"unknown"},Fc=l=>`Coordinator not responding since ${Zd(l)}`,Uc=l=>`Coordinator stopped at ${Zd(l)}`;function Vm(l,i){const a=l?Date.parse(l):NaN;if(Number.isNaN(a))return"unknown";const c=Math.max(0,Math.round((i-a)/6e4));return c<60?`${c} min ago`:c<1440?`${Math.floor(c/60)} h ago`:`${Math.floor(c/1440)} d ago`}const qm=(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"},si=(l,i)=>{const a=l.whyWaiting||l.state,c=[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":c.join(" · "),tone:l.hotfix||l.held?"warn":"muted",grey:i,queue:{pr:l.pr,headSha:l.headSha,hotfix:l.hotfix,held:l.held}}};function Qm(l,i,a){var Ce,O,de,fe,Ne;const c=i.coordinator,f=c?c.status==="stopped"?"stopped":c.responding?"coordinator":"down":"none",p=Ir(i),y=l.sessions.filter(G=>kn(G.repo_path,i.path)).map(G=>{const ne=qm(G.status,G.waiting_for,G.waiting_class),$e=rl(G);return{key:`s${G.session_id}`,title:G.name??G.session_id.slice(0,8),sub:$e?`${$e} · ${ne.sub}`:ne.sub,tone:ne.tone}}),w=[],g=new Set;for(const G of((Ce=i.github)==null?void 0:Ce.prs)??[]){if(G.draft||G.required_state!=="fail")continue;const ne=G.checks.filter($e=>$e.required&&$e.conclusion==="failure").map($e=>$e.name);g.add(G.number),w.push({key:`b${G.number}`,title:`#${G.number} ${G.title}`,sub:ne.length>0?`${ne.join(", ")} failed`:"required check failed",tone:"bad"})}const E=Ar(i),j=[],R=[];if(f==="coordinator"){const G=Qd(i);for(const ne of E)ne.state==="blocked"?g.has(ne.pr)||(g.add(ne.pr),w.push({key:`b${ne.pr}`,title:`#${ne.pr} ${ne.title}`.trim(),sub:ne.whyWaiting||"blocked",tone:"bad"})):ne.state==="merging"||ne.pr===G?R.push(si(ne,!1)):j.push(si(ne,!1))}else if(f==="down"||f==="stopped")for(const G of E)G.state!=="blocked"&&j.push(si(G,!0));const C=(((O=i.github)==null?void 0:O.merges)??[]).slice().sort((G,ne)=>Date.parse(ne.merged_at)-Date.parse(G.merged_at)).slice(0,3).map(G=>{const ne=G.runs??[],$e=ne.some(Oe=>Oe.conclusion==="failure"),wt=ne.length>0&&ne.every(Oe=>Oe.conclusion==="success"),Ve=Vm(G.merged_at,a);return{key:`d${G.number}`,title:`#${G.number} ${G.title}`,sub:$e?`deploy failed · ${Ve}`:wt?`deployed ${Ve}`:`merged ${Ve}`,tone:$e?"bad":wt?"good":"muted"}});let D=null;f==="none"?D=`${Ac} Start one with ${Bm}.`:f==="down"?D=`${Fc((c==null?void 0:c.heartbeat_at)??null)}. The lane shows GitHub data; the last known queue is greyed.`:f==="stopped"&&(D=`${Uc((c==null?void 0:c.stopped_at)??null)}. Each session merges its own PRs until one starts again (/caddis:coordinate). The last known queue is greyed.`);const _=(de=l.sources)!=null&&de.agents?!l.sources.agents.ok:!1,V=(fe=i.github)!=null&&fe.error?{account:i.github.account??null,error:i.github.error,command:Wm}:null;let A;f==="down"?A=Fc((c==null?void 0:c.heartbeat_at)??null):f==="stopped"?A=Uc((c==null?void 0:c.stopped_at)??null):A=[f==="none"?"No coordinator":"",_?"sessions unknown":y.length>0?`${y.length} session${y.length===1?"":"s"}`:"no sessions running",w.length>0?`${w.length} blocked`:"",j.length>0?`${j.length} waiting`:"",R.length>0?`${R.length} merging`:"",C.length>0?`${C.length} deployed`:""].filter(Boolean).join(" · ");const B=l.sessions.some(G=>kn(G.repo_path,i.path)&&G.waiting_class==="owner"),ce=f==="down"||i.error||(Ne=i.github)!=null&&Ne.error?"blocked":B?"attention":f==="none"||f==="stopped"?"idle":"ok";return{id:i.path,name:p,mode:f,tone:ce,note:D,github:V,summary:A,columns:[{id:"sessions",title:"Sessions",cards:y,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:j,emptyText:f==="none"?Ac:"None"},{id:"merging",title:"Merging now",cards:R,emptyText:"None"},{id:"done",title:"Done and deployed",cards:C,emptyText:"None"}]}}const Km=(l,i)=>l.repos.map(a=>Qm(l,a,i)),Ym={ok:"var(--green)",attention:"var(--mk-warn)",blocked:"var(--mk-bad)",idle:"var(--text-dim)"};function Gm(){const l=vi(Xd,rn());return l&&typeof l=="object"&&!Array.isArray(l)?l:{}}function Xm({state:l,nowMs:i,api:a,act:c}){const[f,p]=Y.useState(()=>Gm()),y=Km(l,i),w=g=>{p(E=>{const j={...E,[g]:!E[g]};return wi(Xd,j,rn()),j})};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"page-header",children:[d.jsx("h1",{className:"page-title",children:"Overview"}),d.jsxs("span",{className:"page-subtitle",children:[l.repos.length," repos · ",l.sessions.length," sessions"]})]}),l.repos.length===0&&d.jsx(Kd,{}),d.jsx(Yd,{tiles:a.model.tiles,stale:ci(l)}),d.jsx("div",{className:`lanes${ci(l)?" stale":""}`,"data-testid":"lanes",children:y.map(g=>{const E=!f[g.id],j=l.repos.find(R=>kn(R.path,g.id));return d.jsxs("section",{className:`lane ${g.mode}`,"data-testid":"lane","aria-label":g.name,children:[d.jsxs("button",{type:"button",className:"lane-head","aria-expanded":E,onClick:()=>w(g.id),children:[d.jsx("span",{"aria-hidden":"true",style:{width:9,height:9,borderRadius:"50%",background:Ym[g.tone],flexShrink:0}}),d.jsx("span",{className:"lane-name",children:g.name}),d.jsx("span",{className:"lane-summary","data-testid":"lane-summary",children:g.summary}),d.jsx(Mh,{className:"chev",size:18,"aria-hidden":"true",style:{transform:E?"rotate(180deg)":"none"}})]}),E&&d.jsxs("div",{className:"lane-body",children:[g.github&&d.jsxs("div",{className:"lane-note gh-fail","data-testid":"gh-fail",role:"status",children:["GitHub access failed for ",g.github.account?`account ${g.github.account}`:"this repo",g.github.error?` (${g.github.error})`:"",". Sign in again with"," ",d.jsx("code",{className:"cmd",children:g.github.command})]}),g.note&&d.jsx("div",{className:"lane-note","data-testid":"lane-note",children:g.note}),d.jsx("div",{className:"lane-cols",children:g.columns.map(R=>d.jsxs("div",{className:"lane-col","data-testid":`col-${R.id}`,children:[d.jsxs("span",{className:"col-title",children:[R.title," · ",R.cards.length]}),R.cards.map(C=>d.jsxs("div",{className:`card${C.grey?" grey":""}`,"data-testid":"lane-card",children:[d.jsx("span",{className:"card-title",children:C.title}),d.jsx("span",{className:`card-sub tone-${C.tone}`,children:C.sub}),j&&C.queue&&d.jsx(nl,{repo:j,specs:gi(j,C.queue),act:c,compact:!0})]},C.key)),R.cards.length===0&&d.jsx("span",{className:"col-empty",children:R.emptyText})]},R.id))})]})]},g.id)})})]})}function Zm(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 c=i[1]==="details"||i[1]==="wall"||i[1]==="map"?i[1]:"poster",f=i[2]?decodeURIComponent(i[2]):null;return{page:"guide",tab:c,item:f}}catch{return{page:"inbox"}}if(a==="repo"&&i[1])try{const c=i[2]==="roadmap"||i[2]==="sessions"?i[2]:"flow",f=c==="roadmap"&&i[3]?decodeURIComponent(i[3]):null;return{page:"repo",id:decodeURIComponent(i[1]),tab:c,roadmap:f}}catch{return{page:"inbox"}}return{page:"inbox"}}const ki=l=>l.repo_id??l.path,di=l=>`#/repo/${encodeURIComponent(l)}`;function Jm(l,i,a){return i==="flow"?di(l):`${di(l)}/${i}${i==="roadmap"&&a?`/${encodeURIComponent(a)}`:""}`}function bm(l,i){return l==="poster"?"#/guide":l==="wall"?"#/guide/wall":l==="map"?"#/guide/map":`#/guide/details${i?`/${encodeURIComponent(i)}`:""}`}const eg=["D1","D2","D3","D4","D5"],tl=l=>l&&typeof l=="object"&&!Array.isArray(l)?l:{};function tg(l){const i=(a,c)=>{if(a.state==="merging")return[0,0,0,"",c];const f=a.hotfix?1:2;return a.state==="ready"&&!a.held?[f,0,a.since?0:1,a.since??"",c]:[f,1,0,"",c]};return l.map((a,c)=>({q:a,r:i(a,c)})).sort((a,c)=>{for(let f=0;f<a.r.length;f++){const p=a.r[f],y=c.r[f];if(p<y)return-1;if(p>y)return 1}return 0}).map(a=>a.q)}function Jd(l){const i=l.coordinator;return i?i.status==="stopped"?"stopped":i.responding?"live":"down":"none"}function ng(l){const i=l.coordinator,a=typeof tl(i==null?void 0:i.coordinator_session).name=="string"?String(tl(i==null?void 0:i.coordinator_session).name):null;switch(Jd(l)){case"none":return"No coordinator: each session merges its own PRs. Start one with /caddis:coordinate.";case"stopped":return`Coordinator stopped at ${Mr(i==null?void 0:i.stopped_at)}. The last known queue is greyed.`;case"down":return`Coordinator not responding since ${Mr(i==null?void 0:i.heartbeat_at)}. The last known queue is greyed.`;case"live":return`Coordinator ${a??""} live, heartbeat ${Mr(i==null?void 0:i.heartbeat_at)}.`.replace(" "," ")}}function rg(l){var a;const i=[];for(const c of Qn((a=l.coordinator)==null?void 0:a.deploy_checks)){const f=tl(c);if(typeof f.pr!="number")continue;const p=tl(f.checks),y=Object.keys(p).length?eg.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:y,reason:typeof f.reason=="string"&&f.reason?f.reason:null})}return i.reverse()}function og(l,i){var y,w;const a=Jd(i),c=Qd(i),f=tg(Ar(i)),p=new Set(f.map(g=>g.pr));return{mode:a,statusText:ng(i),grey:a==="stopped"||a==="down",merging:a==="live"?c:null,queue:f.map((g,E)=>({...g,position:E+1,merging:g.state==="merging"||g.pr===c})),deploys:rg(i),owner:qd(i),unqueued:(((y=i.github)==null?void 0:y.prs)??[]).filter(g=>!g.draft&&!p.has(g.number)).map(g=>({number:g.number,title:g.title,requiredState:g.required_state,headSha:g.head_sha})),requests:[...((w=i.coordinator)==null?void 0:w.requests)??[]].reverse()}}const lg=Y.createContext(null),Hc={waiting:0,busy:1,working:1,idle:2},sg=l=>({key:l.key,name:l.name??l.session_id,kind:l.kind,agent:rl(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 ig(l,i){const a=l.sources.agents,c=!a.ok&&a.last_ok_at===null,f=l.sessions.filter(y=>kn(y.repo_path,i.path)&&(!c||rl(y)!==null)).map(sg).sort((y,w)=>+(w.waitingClass==="owner")-+(y.waitingClass==="owner")||(Hc[y.status]??3)-(Hc[w.status]??3)||y.name.localeCompare(w.name));return{unknown:c&&f.length===0,error:a.ok?null:a.last_error,rows:f}}async function ag(l){try{return await navigator.clipboard.writeText(l),!0}catch{return!1}}const ug={owner:"you",peer:"a peer session"};function cg({state:l,repo:i,nowMs:a}){const c=ig(l,i),[f,p]=Y.useState(null),y=async(w,g)=>{await ag(g)&&(p(w),window.setTimeout(()=>p(E=>E===w?null:E),2e3))};return d.jsxs("div",{className:"flow","data-testid":"sessions",children:[c.error&&d.jsxs("div",{className:"lane-note","data-testid":"sessions-error",children:[c.unknown?"Sessions unknown: ":"The last sessions read failed: ",c.error]}),c.unknown?d.jsx("p",{className:"col-empty",children:"The hub could not read the session list. PRs and deploys are on the Flow tab."}):c.rows.length===0?d.jsx("p",{className:"col-empty","data-testid":"sessions-empty",children:"No sessions running. PRs and deploys are on the Flow tab."}):d.jsx("ul",{className:"flow-list","data-testid":"sessions-table","aria-label":"Sessions of this repo",children:c.rows.map(w=>d.jsxs("li",{className:"flow-row","data-testid":"session-row",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsx("span",{className:"flow-title mono",children:w.name}),w.agent&&d.jsx("span",{className:"chip tone-muted","data-testid":"session-agent",children:w.agent}),d.jsx("span",{className:`chip tone-${w.status==="waiting"?"warn":w.status==="busy"||w.status==="working"?"good":"muted"}`,children:w.status}),w.copyWarning&&d.jsx("span",{className:"chip tone-bad","data-testid":"session-copies",children:w.copyWarning}),d.jsxs("button",{type:"button",className:"btn btn-act",onClick:()=>void y(w.key,w.name),"aria-label":`Copy session name ${w.name}`,children:[d.jsx(sd,{size:14,"aria-hidden":"true"}),f===w.key?"Copied":"Copy name"]})]}),d.jsxs("span",{className:"flow-why",children:[w.kind,w.waitingFor?` · waiting for ${w.waitingClass?ug[w.waitingClass]:"an answer"}: ${w.waitingFor}`:"",w.since?` · since ${tn(w.since,a)}`:""]}),w.copyWarning&&d.jsxs("span",{className:"flow-why tone-bad",children:["The same session runs in ",w.copies," windows. Close the extra copy."]})]},w.key))})]})}const dg=Y.lazy(()=>pi(()=>import("./RoadmapTab-tqQd2sYq.js"),__vite__mapDeps([0,1]))),fg=[{id:"flow",label:"Flow"},{id:"roadmap",label:"Roadmap"},{id:"sessions",label:"Sessions"}],pg={ready:"good",merging:"good",blocked:"bad",held:"warn",ci:"muted",waiting:"muted"};function hg({repo:l,item:i,grey:a,act:c}){return d.jsxs("li",{className:`flow-row${a?" grey":""}`,"data-testid":"queue-item",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsx("span",{className:"flow-pos mono",children:i.position}),d.jsxs("span",{className:"flow-title",children:["#",i.pr," ",i.title]})]}),d.jsxs("div",{className:"flow-flags",children:[d.jsx("span",{className:`chip tone-${pg[i.state]??"muted"}`,children:i.state}),i.merging&&d.jsx("span",{className:"chip tone-good",children:"merging now"}),i.hotfix&&d.jsx("span",{className:"chip tone-warn","data-testid":"flag-hotfix",children:"hotfix"}),i.held&&d.jsx("span",{className:"chip tone-warn","data-testid":"flag-held",children:"held"})]}),i.whyWaiting&&d.jsx("span",{className:"flow-why",children:i.whyWaiting}),i.waitsOn.length>0&&d.jsxs("span",{className:"flow-why",children:["Waits on ",i.waitsOn.map(f=>`${f.repo.replace("__","/")}#${f.pr}`).join(", ")]}),d.jsx(nl,{repo:l,specs:gi(l,{pr:i.pr,headSha:i.headSha,hotfix:i.hotfix,held:i.held}),act:c})]})}function mg({state:l,repo:i,nowMs:a,act:c}){const f=og(l,i);return d.jsxs("div",{className:"flow","data-testid":"flow",children:[d.jsx("div",{className:`lane-note flow-status ${f.mode}`,"data-testid":"flow-status",children:f.statusText}),f.owner.length>0&&d.jsxs("section",{className:"flow-section","aria-label":"Owner approvals",children:[d.jsxs("h2",{className:"flow-h",children:["Needs your approval · ",f.owner.length]}),d.jsx("ul",{className:"flow-list",children:f.owner.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"owner-item",children:[d.jsxs("span",{className:"flow-title",children:[p.pr!==null?`#${p.pr} `:"",p.what]}),d.jsx(Dd,{item:p}),d.jsx(nl,{repo:i,specs:$d(i,p),act:c,reason:zd(i,p)})]},p.id))})]}),d.jsxs("section",{className:"flow-section","aria-label":"Merge queue",children:[d.jsxs("h2",{className:"flow-h",children:["Merge queue · ",f.queue.length,f.grey?" · last known":""]}),f.mode==="none"?d.jsx("p",{className:"col-empty",children:"No queue: this repo has no coordinator."}):f.queue.length===0?d.jsx("p",{className:"col-empty",children:"The queue is empty."}):d.jsx("ol",{className:"flow-list",children:f.queue.map(p=>d.jsx(hg,{repo:i,item:p,grey:f.grey,act:c},p.pr))})]}),d.jsxs("section",{className:"flow-section","aria-label":"Deploy checks",children:[d.jsx("h2",{className:"flow-h",children:"Deploy checks"}),f.deploys.length===0?d.jsx("p",{className:"col-empty",children:"No deploy check recorded."}):d.jsx("ul",{className:"flow-list",children:f.deploys.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"deploy-check",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsxs("span",{className:"flow-title",children:["#",p.pr," ",d.jsx("span",{className:"mono",children:p.mergeSha})]}),d.jsxs("span",{className:`chip tone-${p.health==="ok"?"good":p.health==="failed"?"bad":"muted"}`,children:["health ",p.health]})]}),p.checks&&d.jsx("div",{className:"flow-flags","data-testid":"deploy-marks",children:p.checks.map(y=>d.jsxs("span",{className:`chip tone-${y.mark==="pass"?"good":y.mark==="fail"?"bad":"muted"}`,children:[y.name," ",y.mark]},y.name))}),d.jsxs("span",{className:"flow-why",children:[p.run!==null?`run ${p.run} · `:"",tn(p.at,a),p.reason?` · ${p.reason}`:""]})]},`${p.pr}-${p.mergeSha}`))})]}),f.unqueued.length>0&&d.jsxs("section",{className:"flow-section","aria-label":"Open PRs not in the queue",children:[d.jsxs("h2",{className:"flow-h",children:["Open PRs not in the queue · ",f.unqueued.length]}),d.jsx("ul",{className:"flow-list",children:f.unqueued.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"unqueued-pr",children:[d.jsxs("span",{className:"flow-title",children:["#",p.number," ",p.title]}),d.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&&d.jsxs("section",{className:"flow-section","aria-label":"Your requests",children:[d.jsx("h2",{className:"flow-h",children:"Your requests"}),d.jsx("ul",{className:"flow-list",children:f.requests.slice(0,10).map(p=>d.jsxs("li",{className:"flow-row","data-testid":"request-log",children:[d.jsx("span",{className:`tone-${Ld(p.status)}`,children:Rd(p)}),d.jsxs("span",{className:"flow-why",children:[p.pr!==null?`PR #${p.pr}`:p.what," · ",tn(p.created_at,a)]})]},p.id))})]})]})}function gg({state:l,repo:i,nowMs:a,act:c,tab:f,roadmap:p}){const y=ki(i);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"page-header",children:[d.jsx("h1",{className:"page-title",children:Ir(i)}),d.jsx("span",{className:"page-subtitle",children:i.name})]}),d.jsx("nav",{className:"repo-tabs",role:"tablist","aria-label":"Repo views",children:fg.map(w=>d.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:Jm(y,w.id),"data-testid":`tab-${w.id}`,children:w.id==="roadmap"?vm(i):w.label},w.id))}),f==="flow"&&d.jsx(mg,{state:l,repo:i,nowMs:a,act:c}),f==="roadmap"&&d.jsx(Y.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(lg.Provider,{value:gh,children:d.jsx(dg,{repo:i,slug:p,stale:wm(l),lastOkAt:l.sources.collector.last_ok_at},p??"")})}),f==="sessions"&&d.jsx(cg,{state:l,repo:i,nowMs:a})]})}const yg=1,Bc={collector:"Plans and roadmaps",agents:"Claude sessions",github:"GitHub",coordinator:"Coordinator"};function vg(l){var c,f;const i=[];(l.schema>yg||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=(c=l.sources)==null?void 0:c.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(Bc)){const y=(f=l.sources)==null?void 0:f[p];y!=null&&y.stale&&(p==="agents"&&!y.ok||i.push({id:`stale-${p}`,tone:"warn",text:`${Bc[p]} data is stale. Last good read: ${y.last_ok_at?Mr(y.last_ok_at):"never"}.`}))}return i}function wg({state:l}){const i=vg(l);return i.length===0?null:d.jsx("div",{className:"banners",role:"region","aria-label":"Warnings",children:i.map(a=>d.jsxs("div",{className:`banner ${a.tone}`,role:"status","data-testid":`banner-${a.id}`,children:[a.tone==="bad"?d.jsx(qh,{size:16,"aria-hidden":"true"}):d.jsx(Jh,{size:16,"aria-hidden":"true"}),d.jsxs("span",{children:[a.text,a.command&&d.jsxs(d.Fragment,{children:[" ",d.jsx("code",{className:"cmd",children:a.command})]})]})]},a.id))})}const bd="caddis-hub-motion",kg=["on","off"];function ef(){try{return window.localStorage}catch{return null}}function xg(l=ef()){try{return(l==null?void 0:l.getItem(bd))==="off"?"off":"on"}catch{return"on"}}function Sg(l,i=ef()){try{i==null||i.setItem(bd,l)}catch{}}const tf="caddis-hub-theme",Ng=["dark","light","system"];function nf(){try{return window.localStorage}catch{return null}}function _g(l=nf()){try{const i=l==null?void 0:l.getItem(tf);return i==="dark"||i==="light"||i==="system"?i:"system"}catch{return"system"}}function jg(l,i=nf()){try{i==null||i.setItem(tf,l)}catch{}}function Eg(l,i){return l==="system"?i?"dark":"light":l}const Cg={dark:Vh,light:Zh,system:Wh},$g={on:Kh,off:Qh},Pg={on:"motion",off:"still"};function Tg({state:l,nowMs:i,theme:a,onTheme:c,motion:f,onMotion:p}){const y=lm(l==null?void 0:l.spend),w=l==null?void 0:l.versions,g=im(l),E=Od(l);return d.jsxs("footer",{className:"sidebar-footer",children:[d.jsxs("div",{className:"footer-meta",children:[d.jsxs("div",{className:"updated-line",children:[d.jsx(Ih,{size:14,"aria-hidden":"true"}),d.jsx("span",{"data-testid":"data-age",children:l?om(l.generated_at,i):"Waiting for data"})]}),d.jsxs("div",{className:"spend-box",children:[d.jsxs("div",{className:"spend-row",children:[d.jsx("span",{children:"agy spend (24 h)"}),d.jsx("span",{className:"mono",children:y.configured?`${y.committedEur.toFixed(2)} / ${y.capEur.toFixed(0)} EUR`:"no cap set"})]}),d.jsx("div",{className:"meter-track",role:"progressbar","aria-label":"agy spend","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(y.pct),children:d.jsx("div",{className:`meter-fill${y.pct>=80?" hot":""}`,style:{width:`${y.pct}%`}})})]}),E&&!g&&d.jsxs("div",{className:"quota-line mono","data-testid":"quota",children:["GitHub quota ",E.remaining," left (",E.account,")"]}),g&&d.jsxs("div",{className:"quota-low","data-testid":"quota-low",role:"status",children:["GitHub quota low: ",g.remaining," left (",g.account,")",g.resetAt?`, resets ${Mr(g.resetAt)}`:"",". Polling slows."]}),w&&d.jsxs("div",{className:"versions mono",children:["hub ",w.hub," | pool ",w.pool??"-"," | plugin ",w.plugin??"-"]})]}),d.jsx("div",{className:"theme-switch",role:"group","aria-label":"Theme",children:Ng.map(j=>{const R=Cg[j];return d.jsxs("button",{type:"button",className:`theme-btn${a===j?" active":""}`,"aria-pressed":a===j,title:j,onClick:()=>c(j),children:[d.jsx(R,{size:15,"aria-hidden":"true"}),d.jsx("span",{children:j})]},j)})}),d.jsx("div",{className:"theme-switch",role:"group","aria-label":"Logo animation",children:kg.map(j=>{const R=$g[j];return d.jsxs("button",{type:"button",className:`theme-btn${f===j?" active":""}`,"aria-pressed":f===j,title:j==="on"?"Animate the logo":"Stop the logo animation",onClick:()=>p(j),children:[d.jsx(R,{size:15,"aria-hidden":"true"}),d.jsx("span",{children:Pg[j]})]},j)})})]})}const zg="/assets/mark-anim-DZa95SHo.webp",Rg="/assets/mark-still-CcPgBc_-.png",Lg="/assets/wordmark-CD0s2ofS.svg";function Wc(){return d.jsxs("span",{className:"brand-logo",children:[d.jsx("img",{src:zg,alt:"",width:36,height:36,className:"brand-mark brand-mark-anim"}),d.jsx("img",{src:Rg,alt:"",width:36,height:36,className:"brand-mark brand-mark-still"}),d.jsxs("span",{className:"brand-stack",children:[d.jsx("img",{src:Lg,alt:"CADDIS",width:100,height:20,className:"brand-wordmark"}),d.jsx("span",{className:"brand-sub",children:"hub"})]})]})}const Dg=[["poster","Poster"],["details","Details"],["wall","Wall poster"],["map","Map"]];function Og(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 Or({href:l,active:i,icon:a,label:c,badge:f,onGo:p}){return d.jsx("li",{children:d.jsxs("a",{className:`nav-link${i?" active":""}`,href:l,"aria-current":i?"page":void 0,onClick:p,children:[d.jsxs("span",{className:"nav-link-left",children:[a,d.jsx("span",{className:"nav-text",children:c})]}),f]})})}function Mg({route:l,state:i,inbox:a,open:c,onToggle:f,children:p}){const y=()=>f(!1);return d.jsxs(d.Fragment,{children:[d.jsxs("header",{className:"mobile-topbar",children:[d.jsxs("button",{type:"button",className:"menu-btn","aria-label":"Open navigation menu","aria-expanded":c,"aria-controls":"app-sidebar",onClick:()=>f(!c),children:[c?d.jsx(em,{size:18}):d.jsx(Bh,{size:18}),d.jsx("span",{children:"Menu"})]}),d.jsx(Wc,{})]}),d.jsx("div",{className:`drawer-backdrop${c?" open":""}`,onClick:y,"aria-hidden":"true"}),d.jsxs("aside",{className:`sidebar${c?" drawer-open":""}`,id:"app-sidebar",children:[d.jsxs("nav",{className:"sidebar-top","aria-label":"Main",children:[d.jsx("div",{className:"brand-row",children:d.jsx(Wc,{})}),d.jsxs("ul",{className:"nav-list",children:[d.jsx(Or,{href:"#/inbox",active:l.page==="inbox",icon:d.jsx(Uh,{size:18}),label:"Inbox",badge:a>0?d.jsx("span",{className:"inbox-badge",children:a}):void 0,onGo:y}),d.jsx(Or,{href:"#/overview",active:l.page==="overview",icon:d.jsx(Hh,{size:18}),label:"Overview",onGo:y})]}),d.jsx("div",{className:"nav-section-label",children:"Repos"}),d.jsxs("ul",{className:"nav-list",children:[(i==null?void 0:i.repos.length)===0&&d.jsx("li",{className:"nav-empty",children:"No repos yet"}),i==null?void 0:i.repos.map(w=>{const g=ki(w),E=l.page==="repo"&&l.id===g;return d.jsx(Or,{href:di(g),active:E,icon:d.jsx("span",{className:`repo-dot ${Og(w,i)}`,"aria-hidden":"true"}),label:w.name,onGo:y},w.path)})]}),d.jsx("div",{className:"nav-section-label",children:"More"}),d.jsxs("ul",{className:"nav-list",children:[d.jsx(Or,{href:"#/activity",active:l.page==="activity",icon:d.jsx(Th,{size:18}),label:"Activity",onGo:y}),d.jsx(Or,{href:"#/guide",active:l.page==="guide",icon:d.jsx(Dh,{size:18}),label:"caddis guide",onGo:y}),d.jsx("li",{children:d.jsx("ul",{className:"nav-sublist","aria-label":"caddis guide pages",children:Dg.map(([w,g])=>{const E=l.page==="guide"&&l.tab===w;return d.jsx("li",{children:d.jsx("a",{className:`nav-link nav-sublink${E?" active":""}`,href:bm(w),"aria-current":E?"true":void 0,onClick:y,children:d.jsx("span",{className:"nav-text",children:g})})},w)})})})]})]}),p]})]})}const Ig="/assets/favicon-DtHQyAC1.svg",Ag="/assets/favicon-dot-DHAVYP15.svg",Fg=l=>l?Ag:Ig;function Ug(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=Fg(l)}const Hg=()=>{var l;return((l=window.matchMedia)==null?void 0:l.call(window,"(prefers-color-scheme: dark)").matches)??!0};function Bg(){const[l,i]=Y.useState(()=>_g());return Y.useEffect(()=>{const a=()=>{document.documentElement.dataset.theme=Eg(l,Hg())};if(a(),l!=="system"||!window.matchMedia)return;const c=window.matchMedia("(prefers-color-scheme: dark)");return c.addEventListener("change",a),()=>c.removeEventListener("change",a)},[l]),[l,a=>{jg(a),i(a)}]}function Wg(){const[l,i]=Y.useState(()=>xg());return Y.useEffect(()=>{document.documentElement.dataset.motion=l},[l]),[l,a=>{Sg(a),i(a)}]}const Vg=1e4;function qg(){const[l,i]=Y.useState(null),[a,c]=Y.useState(null),[f,p]=Y.useState(!0),y=Y.useRef(void 0),w=Y.useRef(!0),g=Y.useCallback(async()=>{try{const j=await mh();if(!w.current)return;i(j),c(null)}catch(j){if(!w.current)return;c(j instanceof ii&&j.status===401?"unauthorized":"network")}finally{w.current&&p(!1)}},[]);Y.useEffect(()=>{w.current=!0;const j=()=>window.clearInterval(y.current),R=()=>{j(),y.current=window.setInterval(()=>void g(),Vg)},C=()=>{document.hidden?j():(g(),R())};return g(),document.hidden||R(),document.addEventListener("visibilitychange",C),()=>{w.current=!1,j(),document.removeEventListener("visibilitychange",C)}},[g]);const E=Y.useCallback(()=>void g(),[g]);return{state:l,error:a,loading:f,refresh:E}}const Qg=Y.lazy(()=>pi(()=>import("./Guide-D-lZVEKf.js"),__vite__mapDeps([2,3])).then(l=>({default:l.Guide}))),Kg=Y.lazy(()=>pi(()=>import("./Activity-DN1XBfsH.js"),__vite__mapDeps([4,1])));function Yg(l){const[i,a]=Y.useState(()=>Date.now());return Y.useEffect(()=>{const c=window.setInterval(()=>a(Date.now()),l);return()=>window.clearInterval(c)},[l]),i}function Gg(){const[l,i]=Y.useState(()=>window.location.hash);return Y.useEffect(()=>{const a=()=>i(window.location.hash);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),Zm(l)}function Xg(){const{state:l,error:i,loading:a,refresh:c}=qg(),f=wh(c),p=Yg(5e3),y=Gg(),[w,g]=Bg(),[E,j]=Wg(),[R,C]=Y.useState(!1),D=Hm(l,p),_=D.model.items.length;Y.useEffect(()=>{document.title=rm(_),Ug(_>0)},[_]);let V;if(i==="unauthorized")V=d.jsxs("div",{className:"notice","data-testid":"signin",children:[d.jsx("h1",{className:"page-title",children:"Signed out"}),d.jsxs("p",{children:["Run ",d.jsx("code",{className:"cmd",children:"caddis hub open"})," to sign in."]})]});else if(!l)V=d.jsx("p",{className:"page-subtitle",children:a?"Loading...":"The hub did not answer. Retrying."});else if(y.page==="inbox")V=d.jsx(Im,{state:l,nowMs:p,api:D,act:f});else if(y.page==="overview")V=d.jsx(Xm,{state:l,nowMs:p,api:D,act:f});else if(y.page==="repo"){const A=l.repos.find(B=>ki(B)===y.id);V=A?d.jsx(gg,{state:l,repo:A,nowMs:p,act:f,tab:y.tab,roadmap:y.roadmap},y.id):d.jsxs("div",{className:"notice",children:[d.jsx("h1",{className:"page-title",children:y.id}),d.jsx("p",{children:"This repo is not in the hub registry."})]})}else y.page==="guide"?V=d.jsx(Y.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(Qg,{guide:l.guide,versions:l.versions,tab:y.tab,item:y.item})}):V=d.jsx(Y.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(Kg,{state:l})});return d.jsxs("div",{className:"app-shell",children:[d.jsx(Mg,{route:y,state:l,inbox:_,open:R,onToggle:C,children:d.jsx(Tg,{state:l,nowMs:p,theme:w,onTheme:g,motion:E,onMotion:j})}),d.jsx("main",{className:"main-area",id:"main-content",children:d.jsxs("div",{className:"page-wrap",children:[l&&d.jsx(wg,{state:l}),i==="network"&&l&&d.jsx("div",{className:"banner warn",role:"status",children:"The hub did not answer. Showing the last data."}),V]})})]})}ph();const Vc=document.getElementById("root");Vc&&ah.createRoot(Vc).render(d.jsx(Y.StrictMode,{children:d.jsx(Xg,{})}));export{eg as D,Zg as N,lg as P,am as T,Qn as a,ki as b,ue as c,Ir as d,Jm as e,cy as f,bm as g,ly as h,ty as i,d as j,cm as k,iy as l,ey as m,ny as n,bg as o,ry as p,oy as q,Y as r,Bd as s,Mr as t,uy as u,sy as v,dy as w,ay as x,Jg as y,wm as z};