@vibeflow-tools/cli 0.1.0

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 (91) hide show
  1. package/README.md +141 -0
  2. package/dist/chunk-43MUGU6Z.js +67 -0
  3. package/dist/chunk-4Y62J4KR.js +438 -0
  4. package/dist/chunk-6ABTC7IA.js +482 -0
  5. package/dist/chunk-7K2VHAWF.js +569 -0
  6. package/dist/chunk-F57OXWVU.js +33 -0
  7. package/dist/chunk-I2OSZY66.js +803 -0
  8. package/dist/chunk-JKC6MUZ4.js +558 -0
  9. package/dist/chunk-KJ5LYG6A.js +2 -0
  10. package/dist/chunk-KKBXVPTJ.js +2 -0
  11. package/dist/chunk-LK3IGDR6.js +438 -0
  12. package/dist/chunk-MKOKIWTN.js +569 -0
  13. package/dist/chunk-MW4OS3IK.js +438 -0
  14. package/dist/chunk-NRPOXSY6.js +568 -0
  15. package/dist/chunk-NUM3G22J.js +569 -0
  16. package/dist/chunk-O564QSMS.js +569 -0
  17. package/dist/chunk-OAGEPYIT.js +535 -0
  18. package/dist/chunk-PHBHAIHA.js +33 -0
  19. package/dist/chunk-PK737AKV.js +560 -0
  20. package/dist/chunk-TWAAPROG.js +822 -0
  21. package/dist/chunk-XF2CNPE4.js +803 -0
  22. package/dist/cli/chunk-43MUGU6Z.js +67 -0
  23. package/dist/cli/chunk-4Y62J4KR.js +438 -0
  24. package/dist/cli/chunk-6ABTC7IA.js +482 -0
  25. package/dist/cli/chunk-7K2VHAWF.js +569 -0
  26. package/dist/cli/chunk-F57OXWVU.js +33 -0
  27. package/dist/cli/chunk-I2OSZY66.js +803 -0
  28. package/dist/cli/chunk-JKC6MUZ4.js +558 -0
  29. package/dist/cli/chunk-KJ5LYG6A.js +2 -0
  30. package/dist/cli/chunk-KKBXVPTJ.js +2 -0
  31. package/dist/cli/chunk-LK3IGDR6.js +438 -0
  32. package/dist/cli/chunk-MKOKIWTN.js +569 -0
  33. package/dist/cli/chunk-MW4OS3IK.js +438 -0
  34. package/dist/cli/chunk-NRPOXSY6.js +568 -0
  35. package/dist/cli/chunk-NUM3G22J.js +569 -0
  36. package/dist/cli/chunk-O564QSMS.js +569 -0
  37. package/dist/cli/chunk-OAGEPYIT.js +535 -0
  38. package/dist/cli/chunk-PHBHAIHA.js +33 -0
  39. package/dist/cli/chunk-PK737AKV.js +560 -0
  40. package/dist/cli/chunk-TWAAPROG.js +822 -0
  41. package/dist/cli/chunk-XF2CNPE4.js +803 -0
  42. package/dist/cli/files-27OYPA7W.js +20 -0
  43. package/dist/cli/files-2TK74THO.js +22 -0
  44. package/dist/cli/files-7275M2PW.js +20 -0
  45. package/dist/cli/files-D3YPV7QT.js +20 -0
  46. package/dist/cli/files-FER4UZ4X.js +22 -0
  47. package/dist/cli/files-H4FRDKJV.js +22 -0
  48. package/dist/cli/files-IJZVMROA.js +22 -0
  49. package/dist/cli/files-KH3UEFN7.js +20 -0
  50. package/dist/cli/files-LTDT5ZFT.js +22 -0
  51. package/dist/cli/files-OYO6A6MZ.js +22 -0
  52. package/dist/cli/files-R6QHQBH4.js +22 -0
  53. package/dist/cli/files-UCALOYWZ.js +22 -0
  54. package/dist/cli/files-UWZP7P6B.js +2 -0
  55. package/dist/cli/files-VIDLQM7Y.js +20 -0
  56. package/dist/cli/files-X2RDLF3W.js +22 -0
  57. package/dist/cli/files-XVDNOAZB.js +22 -0
  58. package/dist/cli/index.d.ts +2 -0
  59. package/dist/cli/index.js +29252 -0
  60. package/dist/cli/workspace-KGOQ67YV.js +2 -0
  61. package/dist/cli/workspace-NB6BACZA.js +12 -0
  62. package/dist/cli/workspace-X2NGGGTQ.js +12 -0
  63. package/dist/cli/workspace-X4QXECQQ.js +12 -0
  64. package/dist/client/kanban-browser.js +96 -0
  65. package/dist/client/kanban.css +2 -0
  66. package/dist/client/overlay-browser.js +1635 -0
  67. package/dist/files-27OYPA7W.js +20 -0
  68. package/dist/files-2TK74THO.js +22 -0
  69. package/dist/files-7275M2PW.js +20 -0
  70. package/dist/files-D3YPV7QT.js +20 -0
  71. package/dist/files-FER4UZ4X.js +22 -0
  72. package/dist/files-H4FRDKJV.js +22 -0
  73. package/dist/files-IJZVMROA.js +22 -0
  74. package/dist/files-KH3UEFN7.js +20 -0
  75. package/dist/files-LTDT5ZFT.js +22 -0
  76. package/dist/files-OYO6A6MZ.js +22 -0
  77. package/dist/files-R6QHQBH4.js +22 -0
  78. package/dist/files-UCALOYWZ.js +22 -0
  79. package/dist/files-UWZP7P6B.js +2 -0
  80. package/dist/files-VIDLQM7Y.js +20 -0
  81. package/dist/files-X2RDLF3W.js +22 -0
  82. package/dist/files-XVDNOAZB.js +22 -0
  83. package/dist/index.d.ts +2 -0
  84. package/dist/index.js +29252 -0
  85. package/dist/overlay-host.css +14 -0
  86. package/dist/overlay.css +1530 -0
  87. package/dist/workspace-KGOQ67YV.js +2 -0
  88. package/dist/workspace-NB6BACZA.js +12 -0
  89. package/dist/workspace-X2NGGGTQ.js +12 -0
  90. package/dist/workspace-X4QXECQQ.js +12 -0
  91. package/package.json +92 -0
@@ -0,0 +1,1635 @@
1
+ "use strict";(()=>{var bp=Object.create;var gs=Object.defineProperty;var Lp=Object.getOwnPropertyDescriptor;var Sp=Object.getOwnPropertyNames;var Cp=Object.getPrototypeOf,wp=Object.prototype.hasOwnProperty;var et=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ip=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sp(t))!wp.call(e,o)&&o!==a&&gs(e,o,{get:()=>t[o],enumerable:!(r=Lp(t,o))||r.enumerable});return e};var I=(e,t,a)=>(a=e!=null?bp(Cp(e)):{},Ip(t||!e||!e.__esModule?gs(a,"default",{value:e,enumerable:!0}):a,e));var Ks=et(O=>{"use strict";var Ba=Symbol.for("react.element"),jp=Symbol.for("react.portal"),Kp=Symbol.for("react.fragment"),Xp=Symbol.for("react.strict_mode"),Yp=Symbol.for("react.profiler"),Qp=Symbol.for("react.provider"),Zp=Symbol.for("react.context"),Jp=Symbol.for("react.forward_ref"),em=Symbol.for("react.suspense"),tm=Symbol.for("react.memo"),am=Symbol.for("react.lazy"),Ns=Symbol.iterator;function rm(e){return e===null||typeof e!="object"?null:(e=Ns&&e[Ns]||e["@@iterator"],typeof e=="function"?e:null)}var _s={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Us=Object.assign,qs={};function ra(e,t,a){this.props=e,this.context=t,this.refs=qs,this.updater=a||_s}ra.prototype.isReactComponent={};ra.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ra.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ws(){}Ws.prototype=ra.prototype;function Mn(e,t,a){this.props=e,this.context=t,this.refs=qs,this.updater=a||_s}var An=Mn.prototype=new Ws;An.constructor=Mn;Us(An,ra.prototype);An.isPureReactComponent=!0;var zs=Array.isArray,$s=Object.prototype.hasOwnProperty,Dn={current:null},Vs={key:!0,ref:!0,__self:!0,__source:!0};function Gs(e,t,a){var r,o={},n=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(n=""+t.key),t)$s.call(t,r)&&!Vs.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=a;else if(1<i){for(var s=Array(i),u=0;u<i;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:Ba,type:e,key:n,ref:l,props:o,_owner:Dn.current}}function om(e,t){return{$$typeof:Ba,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Fn(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ba}function nm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Hs=/\/+/g;function En(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nm(""+e.key):t.toString(36)}function Yr(e,t,a,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(n){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Ba:case jp:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+En(l,0):r,zs(o)?(a="",e!=null&&(a=e.replace(Hs,"$&/")+"/"),Yr(o,t,a,"",function(u){return u})):o!=null&&(Fn(o)&&(o=om(o,a+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Hs,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",zs(e))for(var i=0;i<e.length;i++){n=e[i];var s=r+En(n,i);l+=Yr(n,t,a,s,o)}else if(s=rm(e),typeof s=="function")for(e=s.call(e),i=0;!(n=e.next()).done;)n=n.value,s=r+En(n,i++),l+=Yr(n,t,a,s,o);else if(n==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Xr(e,t,a){if(e==null)return e;var r=[],o=0;return Yr(e,r,"","",function(n){return t.call(a,n,o++)}),r}function lm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var me={current:null},Qr={transition:null},im={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:Qr,ReactCurrentOwner:Dn};function js(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:Xr,forEach:function(e,t,a){Xr(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Xr(e,function(){t++}),t},toArray:function(e){return Xr(e,function(t){return t})||[]},only:function(e){if(!Fn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=ra;O.Fragment=Kp;O.Profiler=Yp;O.PureComponent=Mn;O.StrictMode=Xp;O.Suspense=em;O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=im;O.act=js;O.cloneElement=function(e,t,a){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Us({},e.props),o=e.key,n=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,l=Dn.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)$s.call(t,s)&&!Vs.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&i!==void 0?i[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=a;else if(1<s){i=Array(s);for(var u=0;u<s;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:Ba,type:e.type,key:o,ref:n,props:r,_owner:l}};O.createContext=function(e){return e={$$typeof:Zp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qp,_context:e},e.Consumer=e};O.createElement=Gs;O.createFactory=function(e){var t=Gs.bind(null,e);return t.type=e,t};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:Jp,render:e}};O.isValidElement=Fn;O.lazy=function(e){return{$$typeof:am,_payload:{_status:-1,_result:e},_init:lm}};O.memo=function(e,t){return{$$typeof:tm,type:e,compare:t===void 0?null:t}};O.startTransition=function(e){var t=Qr.transition;Qr.transition={};try{e()}finally{Qr.transition=t}};O.unstable_act=js;O.useCallback=function(e,t){return me.current.useCallback(e,t)};O.useContext=function(e){return me.current.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e){return me.current.useDeferredValue(e)};O.useEffect=function(e,t){return me.current.useEffect(e,t)};O.useId=function(){return me.current.useId()};O.useImperativeHandle=function(e,t,a){return me.current.useImperativeHandle(e,t,a)};O.useInsertionEffect=function(e,t){return me.current.useInsertionEffect(e,t)};O.useLayoutEffect=function(e,t){return me.current.useLayoutEffect(e,t)};O.useMemo=function(e,t){return me.current.useMemo(e,t)};O.useReducer=function(e,t,a){return me.current.useReducer(e,t,a)};O.useRef=function(e){return me.current.useRef(e)};O.useState=function(e){return me.current.useState(e)};O.useSyncExternalStore=function(e,t,a){return me.current.useSyncExternalStore(e,t,a)};O.useTransition=function(){return me.current.useTransition()};O.version="18.3.1"});var H=et((Xx,Xs)=>{"use strict";Xs.exports=Ks()});var Qs=et(Zr=>{"use strict";var sm=H(),um=Symbol.for("react.element"),dm=Symbol.for("react.fragment"),fm=Object.prototype.hasOwnProperty,cm=sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pm={key:!0,ref:!0,__self:!0,__source:!0};function Ys(e,t,a){var r,o={},n=null,l=null;a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)fm.call(t,r)&&!pm.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:um,type:e,key:n,ref:l,props:o,_owner:cm.current}}Zr.Fragment=dm;Zr.jsx=Ys;Zr.jsxs=Ys});var M=et((Qx,Zs)=>{"use strict";Zs.exports=Qs()});var bu=et(_=>{"use strict";function Un(e,t){var a=e.length;e.push(t);e:for(;0<a;){var r=a-1>>>1,o=e[r];if(0<oo(o,t))e[r]=t,e[a]=o,a=r;else break e}}function Ne(e){return e.length===0?null:e[0]}function lo(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var r=0,o=e.length,n=o>>>1;r<n;){var l=2*(r+1)-1,i=e[l],s=l+1,u=e[s];if(0>oo(i,a))s<o&&0>oo(u,i)?(e[r]=u,e[s]=a,r=s):(e[r]=i,e[l]=a,r=l);else if(s<o&&0>oo(u,a))e[r]=u,e[s]=a,r=s;else break e}}return t}function oo(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(fu=performance,_.unstable_now=function(){return fu.now()}):(zn=Date,cu=zn.now(),_.unstable_now=function(){return zn.now()-cu});var fu,zn,cu,je=[],ht=[],Lm=1,Ee=null,ue=3,io=!1,_t=!1,Xa=!1,gu=typeof setTimeout=="function"?setTimeout:null,hu=typeof clearTimeout=="function"?clearTimeout:null,pu=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function qn(e){for(var t=Ne(ht);t!==null;){if(t.callback===null)lo(ht);else if(t.startTime<=e)lo(ht),t.sortIndex=t.expirationTime,Un(je,t);else break;t=Ne(ht)}}function Wn(e){if(Xa=!1,qn(e),!_t)if(Ne(je)!==null)_t=!0,Vn($n);else{var t=Ne(ht);t!==null&&Gn(Wn,t.startTime-e)}}function $n(e,t){_t=!1,Xa&&(Xa=!1,hu(Ya),Ya=-1),io=!0;var a=ue;try{for(qn(t),Ee=Ne(je);Ee!==null&&(!(Ee.expirationTime>t)||e&&!yu());){var r=Ee.callback;if(typeof r=="function"){Ee.callback=null,ue=Ee.priorityLevel;var o=r(Ee.expirationTime<=t);t=_.unstable_now(),typeof o=="function"?Ee.callback=o:Ee===Ne(je)&&lo(je),qn(t)}else lo(je);Ee=Ne(je)}if(Ee!==null)var n=!0;else{var l=Ne(ht);l!==null&&Gn(Wn,l.startTime-t),n=!1}return n}finally{Ee=null,ue=a,io=!1}}var so=!1,no=null,Ya=-1,xu=5,vu=-1;function yu(){return!(_.unstable_now()-vu<xu)}function Hn(){if(no!==null){var e=_.unstable_now();vu=e;var t=!0;try{t=no(!0,e)}finally{t?Ka():(so=!1,no=null)}}else so=!1}var Ka;typeof pu=="function"?Ka=function(){pu(Hn)}:typeof MessageChannel<"u"?(_n=new MessageChannel,mu=_n.port2,_n.port1.onmessage=Hn,Ka=function(){mu.postMessage(null)}):Ka=function(){gu(Hn,0)};var _n,mu;function Vn(e){no=e,so||(so=!0,Ka())}function Gn(e,t){Ya=gu(function(){e(_.unstable_now())},t)}_.unstable_IdlePriority=5;_.unstable_ImmediatePriority=1;_.unstable_LowPriority=4;_.unstable_NormalPriority=3;_.unstable_Profiling=null;_.unstable_UserBlockingPriority=2;_.unstable_cancelCallback=function(e){e.callback=null};_.unstable_continueExecution=function(){_t||io||(_t=!0,Vn($n))};_.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xu=0<e?Math.floor(1e3/e):5};_.unstable_getCurrentPriorityLevel=function(){return ue};_.unstable_getFirstCallbackNode=function(){return Ne(je)};_.unstable_next=function(e){switch(ue){case 1:case 2:case 3:var t=3;break;default:t=ue}var a=ue;ue=t;try{return e()}finally{ue=a}};_.unstable_pauseExecution=function(){};_.unstable_requestPaint=function(){};_.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=ue;ue=e;try{return t()}finally{ue=a}};_.unstable_scheduleCallback=function(e,t,a){var r=_.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?r+a:r):a=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:Lm++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>r?(e.sortIndex=a,Un(ht,e),Ne(je)===null&&e===Ne(ht)&&(Xa?(hu(Ya),Ya=-1):Xa=!0,Gn(Wn,a-r))):(e.sortIndex=o,Un(je,e),_t||io||(_t=!0,Vn($n))),e};_.unstable_shouldYield=yu;_.unstable_wrapCallback=function(e){var t=ue;return function(){var a=ue;ue=t;try{return e.apply(this,arguments)}finally{ue=a}}}});var Su=et((Vv,Lu)=>{"use strict";Lu.exports=bu()});var Tc=et(Re=>{"use strict";var Sm=H(),Te=Su();function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);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 Rd=new Set,vr={};function Jt(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(vr[e]=t,e=0;e<t.length;e++)Rd.add(t[e])}var it=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gl=Object.prototype.hasOwnProperty,Cm=/^[: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]*$/,Cu={},wu={};function wm(e){return gl.call(wu,e)?!0:gl.call(Cu,e)?!1:Cm.test(e)?wu[e]=!0:(Cu[e]=!0,!1)}function Im(e,t,a,r){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function km(e,t,a,r){if(t===null||typeof t>"u"||Im(e,t,a,r))return!0;if(r)return!1;if(a!==null)switch(a.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 xe(e,t,a,r,o,n,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=n,this.removeEmptyString=l}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new xe(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){le[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ii=/[\-:]([a-z])/g;function si(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(ii,si);le[t]=new xe(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(ii,si);le[t]=new xe(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(ii,si);le[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ui(e,t,a,r){var o=le.hasOwnProperty(t)?le[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(km(t,a,o,r)&&(a=null),r||o===null?wm(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):o.mustUseProperty?e[o.propertyName]=a===null?o.type===3?!1:"":a:(t=o.attributeName,r=o.attributeNamespace,a===null?e.removeAttribute(t):(o=o.type,a=o===3||o===4&&a===!0?"":""+a,r?e.setAttributeNS(r,t,a):e.setAttribute(t,a))))}var ft=Sm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,uo=Symbol.for("react.element"),la=Symbol.for("react.portal"),ia=Symbol.for("react.fragment"),di=Symbol.for("react.strict_mode"),hl=Symbol.for("react.profiler"),Ed=Symbol.for("react.provider"),Md=Symbol.for("react.context"),fi=Symbol.for("react.forward_ref"),xl=Symbol.for("react.suspense"),vl=Symbol.for("react.suspense_list"),ci=Symbol.for("react.memo"),vt=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Ad=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Iu=Symbol.iterator;function Qa(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}var X=Object.assign,jn;function nr(e){if(jn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);jn=t&&t[1]||""}return`
2
+ `+jn+e}var Kn=!1;function Xn(e,t){if(!e||Kn)return"";Kn=!0;var a=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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
3
+ `),n=r.stack.split(`
4
+ `),l=o.length-1,i=n.length-1;1<=l&&0<=i&&o[l]!==n[i];)i--;for(;1<=l&&0<=i;l--,i--)if(o[l]!==n[i]){if(l!==1||i!==1)do if(l--,i--,0>i||o[l]!==n[i]){var s=`
5
+ `+o[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=i);break}}}finally{Kn=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?nr(e):""}function Tm(e){switch(e.tag){case 5:return nr(e.type);case 16:return nr("Lazy");case 13:return nr("Suspense");case 19:return nr("SuspenseList");case 0:case 2:case 15:return e=Xn(e.type,!1),e;case 11:return e=Xn(e.type.render,!1),e;case 1:return e=Xn(e.type,!0),e;default:return""}}function yl(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 ia:return"Fragment";case la:return"Portal";case hl:return"Profiler";case di:return"StrictMode";case xl:return"Suspense";case vl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Md:return(e.displayName||"Context")+".Consumer";case Ed:return(e._context.displayName||"Context")+".Provider";case fi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ci:return t=e.displayName||null,t!==null?t:yl(e.type)||"Memo";case vt:t=e._payload,e=e._init;try{return yl(e(t))}catch{}}return null}function Pm(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 yl(t);case 8:return t===di?"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 At(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rm(e){var t=Dd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,n=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,n.call(this,l)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fo(e){e._valueTracker||(e._valueTracker=Rm(e))}function Fd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Dd(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Ho(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 bl(e,t){var a=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function ku(e,t){var a=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;a=At(t.value!=null?t.value:a),e._wrapperState={initialChecked:r,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Od(e,t){t=t.checked,t!=null&&ui(e,"checked",t,!1)}function Ll(e,t){Od(e,t);var a=At(t.value),r=t.type;if(a!=null)r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Sl(e,t.type,a):t.hasOwnProperty("defaultValue")&&Sl(e,t.type,At(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tu(e,t,a){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,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function Sl(e,t,a){(t!=="number"||Ho(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var lr=Array.isArray;function va(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+At(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Cl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return X({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pu(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(S(92));if(lr(a)){if(1<a.length)throw Error(S(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:At(a)}}function Bd(e,t){var a=At(t.value),r=At(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),r!=null&&(e.defaultValue=""+r)}function Ru(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nd(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 wl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var co,zd=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,a,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(co=co||document.createElement("div"),co.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=co.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ur={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},Em=["Webkit","ms","Moz","O"];Object.keys(ur).forEach(function(e){Em.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ur[t]=ur[e]})});function Hd(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||ur.hasOwnProperty(e)&&ur[e]?(""+t).trim():t+"px"}function _d(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0,o=Hd(a,t[a],r);a==="float"&&(a="cssFloat"),r?e.setProperty(a,o):e[a]=o}}var Mm=X({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 Il(e,t){if(t){if(Mm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function kl(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 Tl=null;function pi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pl=null,ya=null,ba=null;function Eu(e){if(e=Nr(e)){if(typeof Pl!="function")throw Error(S(280));var t=e.stateNode;t&&(t=mn(t),Pl(e.stateNode,e.type,t))}}function Ud(e){ya?ba?ba.push(e):ba=[e]:ya=e}function qd(){if(ya){var e=ya,t=ba;if(ba=ya=null,Eu(e),t)for(e=0;e<t.length;e++)Eu(t[e])}}function Wd(e,t){return e(t)}function $d(){}var Yn=!1;function Vd(e,t,a){if(Yn)return e(t,a);Yn=!0;try{return Wd(e,t,a)}finally{Yn=!1,(ya!==null||ba!==null)&&($d(),qd())}}function br(e,t){var a=e.stateNode;if(a===null)return null;var r=mn(a);if(r===null)return null;a=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(a&&typeof a!="function")throw Error(S(231,t,typeof a));return a}var Rl=!1;if(it)try{oa={},Object.defineProperty(oa,"passive",{get:function(){Rl=!0}}),window.addEventListener("test",oa,oa),window.removeEventListener("test",oa,oa)}catch{Rl=!1}var oa;function Am(e,t,a,r,o,n,l,i,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(a,u)}catch(c){this.onError(c)}}var dr=!1,_o=null,Uo=!1,El=null,Dm={onError:function(e){dr=!0,_o=e}};function Fm(e,t,a,r,o,n,l,i,s){dr=!1,_o=null,Am.apply(Dm,arguments)}function Om(e,t,a,r,o,n,l,i,s){if(Fm.apply(this,arguments),dr){if(dr){var u=_o;dr=!1,_o=null}else throw Error(S(198));Uo||(Uo=!0,El=u)}}function ea(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Gd(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 Mu(e){if(ea(e)!==e)throw Error(S(188))}function Bm(e){var t=e.alternate;if(!t){if(t=ea(e),t===null)throw Error(S(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var n=o.alternate;if(n===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===n.child){for(n=o.child;n;){if(n===a)return Mu(o),e;if(n===r)return Mu(o),t;n=n.sibling}throw Error(S(188))}if(a.return!==r.return)a=o,r=n;else{for(var l=!1,i=o.child;i;){if(i===a){l=!0,a=o,r=n;break}if(i===r){l=!0,r=o,a=n;break}i=i.sibling}if(!l){for(i=n.child;i;){if(i===a){l=!0,a=n,r=o;break}if(i===r){l=!0,r=n,a=o;break}i=i.sibling}if(!l)throw Error(S(189))}}if(a.alternate!==r)throw Error(S(190))}if(a.tag!==3)throw Error(S(188));return a.stateNode.current===a?e:t}function jd(e){return e=Bm(e),e!==null?Kd(e):null}function Kd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Kd(e);if(t!==null)return t;e=e.sibling}return null}var Xd=Te.unstable_scheduleCallback,Au=Te.unstable_cancelCallback,Nm=Te.unstable_shouldYield,zm=Te.unstable_requestPaint,Z=Te.unstable_now,Hm=Te.unstable_getCurrentPriorityLevel,mi=Te.unstable_ImmediatePriority,Yd=Te.unstable_UserBlockingPriority,qo=Te.unstable_NormalPriority,_m=Te.unstable_LowPriority,Qd=Te.unstable_IdlePriority,dn=null,Qe=null;function Um(e){if(Qe&&typeof Qe.onCommitFiberRoot=="function")try{Qe.onCommitFiberRoot(dn,e,void 0,(e.current.flags&128)===128)}catch{}}var qe=Math.clz32?Math.clz32:$m,qm=Math.log,Wm=Math.LN2;function $m(e){return e>>>=0,e===0?32:31-(qm(e)/Wm|0)|0}var po=64,mo=4194304;function ir(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 Wo(e,t){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,n=e.pingedLanes,l=a&268435455;if(l!==0){var i=l&~o;i!==0?r=ir(i):(n&=l,n!==0&&(r=ir(n)))}else l=a&~o,l!==0?r=ir(l):n!==0&&(r=ir(n));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===16&&(n&4194240)!==0))return t;if((r&4)!==0&&(r|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)a=31-qe(t),o=1<<a,r|=e[a],t&=~o;return r}function Vm(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 Gm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,n=e.pendingLanes;0<n;){var l=31-qe(n),i=1<<l,s=o[l];s===-1?((i&a)===0||(i&r)!==0)&&(o[l]=Vm(i,t)):s<=t&&(e.expiredLanes|=i),n&=~i}}function Ml(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zd(){var e=po;return po<<=1,(po&4194240)===0&&(po=64),e}function Qn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Or(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qe(t),e[t]=a}function jm(e,t){var a=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<a;){var o=31-qe(a),n=1<<o;t[o]=0,r[o]=-1,e[o]=-1,a&=~n}}function gi(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-qe(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}var z=0;function Jd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ef,hi,tf,af,rf,Al=!1,go=[],wt=null,It=null,kt=null,Lr=new Map,Sr=new Map,bt=[],Km="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 Du(e,t){switch(e){case"focusin":case"focusout":wt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Lr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sr.delete(t.pointerId)}}function Za(e,t,a,r,o,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:n,targetContainers:[o]},t!==null&&(t=Nr(t),t!==null&&hi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Xm(e,t,a,r,o){switch(t){case"focusin":return wt=Za(wt,e,t,a,r,o),!0;case"dragenter":return It=Za(It,e,t,a,r,o),!0;case"mouseover":return kt=Za(kt,e,t,a,r,o),!0;case"pointerover":var n=o.pointerId;return Lr.set(n,Za(Lr.get(n)||null,e,t,a,r,o)),!0;case"gotpointercapture":return n=o.pointerId,Sr.set(n,Za(Sr.get(n)||null,e,t,a,r,o)),!0}return!1}function of(e){var t=Wt(e.target);if(t!==null){var a=ea(t);if(a!==null){if(t=a.tag,t===13){if(t=Gd(a),t!==null){e.blockedOn=t,rf(e.priority,function(){tf(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Dl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Tl=r,a.target.dispatchEvent(r),Tl=null}else return t=Nr(a),t!==null&&hi(t),e.blockedOn=a,!1;t.shift()}return!0}function Fu(e,t,a){Ro(e)&&a.delete(t)}function Ym(){Al=!1,wt!==null&&Ro(wt)&&(wt=null),It!==null&&Ro(It)&&(It=null),kt!==null&&Ro(kt)&&(kt=null),Lr.forEach(Fu),Sr.forEach(Fu)}function Ja(e,t){e.blockedOn===t&&(e.blockedOn=null,Al||(Al=!0,Te.unstable_scheduleCallback(Te.unstable_NormalPriority,Ym)))}function Cr(e){function t(o){return Ja(o,e)}if(0<go.length){Ja(go[0],e);for(var a=1;a<go.length;a++){var r=go[a];r.blockedOn===e&&(r.blockedOn=null)}}for(wt!==null&&Ja(wt,e),It!==null&&Ja(It,e),kt!==null&&Ja(kt,e),Lr.forEach(t),Sr.forEach(t),a=0;a<bt.length;a++)r=bt[a],r.blockedOn===e&&(r.blockedOn=null);for(;0<bt.length&&(a=bt[0],a.blockedOn===null);)of(a),a.blockedOn===null&&bt.shift()}var La=ft.ReactCurrentBatchConfig,$o=!0;function Qm(e,t,a,r){var o=z,n=La.transition;La.transition=null;try{z=1,xi(e,t,a,r)}finally{z=o,La.transition=n}}function Zm(e,t,a,r){var o=z,n=La.transition;La.transition=null;try{z=4,xi(e,t,a,r)}finally{z=o,La.transition=n}}function xi(e,t,a,r){if($o){var o=Dl(e,t,a,r);if(o===null)ol(e,t,r,Vo,a),Du(e,r);else if(Xm(o,e,t,a,r))r.stopPropagation();else if(Du(e,r),t&4&&-1<Km.indexOf(e)){for(;o!==null;){var n=Nr(o);if(n!==null&&ef(n),n=Dl(e,t,a,r),n===null&&ol(e,t,r,Vo,a),n===o)break;o=n}o!==null&&r.stopPropagation()}else ol(e,t,r,null,a)}}var Vo=null;function Dl(e,t,a,r){if(Vo=null,e=pi(r),e=Wt(e),e!==null)if(t=ea(e),t===null)e=null;else if(a=t.tag,a===13){if(e=Gd(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vo=e,null}function nf(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(Hm()){case mi:return 1;case Yd:return 4;case qo:case _m:return 16;case Qd:return 536870912;default:return 16}default:return 16}}var St=null,vi=null,Eo=null;function lf(){if(Eo)return Eo;var e,t=vi,a=t.length,r,o="value"in St?St.value:St.textContent,n=o.length;for(e=0;e<a&&t[e]===o[e];e++);var l=a-e;for(r=1;r<=l&&t[a-r]===o[n-r];r++);return Eo=o.slice(e,1<r?1-r:void 0)}function Mo(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 ho(){return!0}function Ou(){return!1}function Pe(e){function t(a,r,o,n,l){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=n,this.target=l,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(n):n[i]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?ho:Ou,this.isPropagationStopped=Ou,this}return X(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ho)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ho)},persist:function(){},isPersistent:ho}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yi=Pe(Ma),Br=X({},Ma,{view:0,detail:0}),Jm=Pe(Br),Zn,Jn,er,fn=X({},Br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bi,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!==er&&(er&&e.type==="mousemove"?(Zn=e.screenX-er.screenX,Jn=e.screenY-er.screenY):Jn=Zn=0,er=e),Zn)},movementY:function(e){return"movementY"in e?e.movementY:Jn}}),Bu=Pe(fn),eg=X({},fn,{dataTransfer:0}),tg=Pe(eg),ag=X({},Br,{relatedTarget:0}),el=Pe(ag),rg=X({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),og=Pe(rg),ng=X({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lg=Pe(ng),ig=X({},Ma,{data:0}),Nu=Pe(ig),sg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ug={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"},dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dg[e])?!!t[e]:!1}function bi(){return fg}var cg=X({},Br,{key:function(e){if(e.key){var t=sg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ug[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bi,charCode:function(e){return e.type==="keypress"?Mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pg=Pe(cg),mg=X({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zu=Pe(mg),gg=X({},Br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bi}),hg=Pe(gg),xg=X({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),vg=Pe(xg),yg=X({},fn,{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}),bg=Pe(yg),Lg=[9,13,27,32],Li=it&&"CompositionEvent"in window,fr=null;it&&"documentMode"in document&&(fr=document.documentMode);var Sg=it&&"TextEvent"in window&&!fr,sf=it&&(!Li||fr&&8<fr&&11>=fr),Hu=" ",_u=!1;function uf(e,t){switch(e){case"keyup":return Lg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function Cg(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(_u=!0,Hu);case"textInput":return e=t.data,e===Hu&&_u?null:e;default:return null}}function wg(e,t){if(sa)return e==="compositionend"||!Li&&uf(e,t)?(e=lf(),Eo=vi=St=null,sa=!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 sf&&t.locale!=="ko"?null:t.data;default:return null}}var Ig={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 Uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ig[e.type]:t==="textarea"}function ff(e,t,a,r){Ud(r),t=Go(t,"onChange"),0<t.length&&(a=new yi("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var cr=null,wr=null;function kg(e){Sf(e,0)}function cn(e){var t=fa(e);if(Fd(t))return e}function Tg(e,t){if(e==="change")return t}var cf=!1;it&&(it?(vo="oninput"in document,vo||(tl=document.createElement("div"),tl.setAttribute("oninput","return;"),vo=typeof tl.oninput=="function"),xo=vo):xo=!1,cf=xo&&(!document.documentMode||9<document.documentMode));var xo,vo,tl;function qu(){cr&&(cr.detachEvent("onpropertychange",pf),wr=cr=null)}function pf(e){if(e.propertyName==="value"&&cn(wr)){var t=[];ff(t,wr,e,pi(e)),Vd(kg,t)}}function Pg(e,t,a){e==="focusin"?(qu(),cr=t,wr=a,cr.attachEvent("onpropertychange",pf)):e==="focusout"&&qu()}function Rg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cn(wr)}function Eg(e,t){if(e==="click")return cn(t)}function Mg(e,t){if(e==="input"||e==="change")return cn(t)}function Ag(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $e=typeof Object.is=="function"?Object.is:Ag;function Ir(e,t){if($e(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!gl.call(t,o)||!$e(e[o],t[o]))return!1}return!0}function Wu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $u(e,t){var a=Wu(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Wu(a)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gf(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ho(e.document)}return t}function Si(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 Dg(e){var t=gf(),a=e.focusedElem,r=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&mf(a.ownerDocument.documentElement,a)){if(r!==null&&Si(a)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=a.textContent.length,n=Math.min(r.start,o);r=r.end===void 0?n:Math.min(r.end,o),!e.extend&&n>r&&(o=r,r=n,n=o),o=$u(a,n);var l=$u(a,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),n>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Fg=it&&"documentMode"in document&&11>=document.documentMode,ua=null,Fl=null,pr=null,Ol=!1;function Vu(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ol||ua==null||ua!==Ho(r)||(r=ua,"selectionStart"in r&&Si(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&&Ir(pr,r)||(pr=r,r=Go(Fl,"onSelect"),0<r.length&&(t=new yi("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=ua)))}function yo(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var da={animationend:yo("Animation","AnimationEnd"),animationiteration:yo("Animation","AnimationIteration"),animationstart:yo("Animation","AnimationStart"),transitionend:yo("Transition","TransitionEnd")},al={},hf={};it&&(hf=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function pn(e){if(al[e])return al[e];if(!da[e])return e;var t=da[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in hf)return al[e]=t[a];return e}var xf=pn("animationend"),vf=pn("animationiteration"),yf=pn("animationstart"),bf=pn("transitionend"),Lf=new Map,Gu="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 Ft(e,t){Lf.set(e,t),Jt(t,[e])}for(bo=0;bo<Gu.length;bo++)Lo=Gu[bo],ju=Lo.toLowerCase(),Ku=Lo[0].toUpperCase()+Lo.slice(1),Ft(ju,"on"+Ku);var Lo,ju,Ku,bo;Ft(xf,"onAnimationEnd");Ft(vf,"onAnimationIteration");Ft(yf,"onAnimationStart");Ft("dblclick","onDoubleClick");Ft("focusin","onFocus");Ft("focusout","onBlur");Ft(bf,"onTransitionEnd");wa("onMouseEnter",["mouseout","mouseover"]);wa("onMouseLeave",["mouseout","mouseover"]);wa("onPointerEnter",["pointerout","pointerover"]);wa("onPointerLeave",["pointerout","pointerover"]);Jt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Jt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Jt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Jt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Jt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Jt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sr="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(" "),Og=new Set("cancel close invalid load scroll toggle".split(" ").concat(sr));function Xu(e,t,a){var r=e.type||"unknown-event";e.currentTarget=a,Om(r,t,void 0,e),e.currentTarget=null}function Sf(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var n=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],s=i.instance,u=i.currentTarget;if(i=i.listener,s!==n&&o.isPropagationStopped())break e;Xu(o,i,u),n=s}else for(l=0;l<r.length;l++){if(i=r[l],s=i.instance,u=i.currentTarget,i=i.listener,s!==n&&o.isPropagationStopped())break e;Xu(o,i,u),n=s}}}if(Uo)throw e=El,Uo=!1,El=null,e}function W(e,t){var a=t[_l];a===void 0&&(a=t[_l]=new Set);var r=e+"__bubble";a.has(r)||(Cf(t,e,2,!1),a.add(r))}function rl(e,t,a){var r=0;t&&(r|=4),Cf(a,e,r,t)}var So="_reactListening"+Math.random().toString(36).slice(2);function kr(e){if(!e[So]){e[So]=!0,Rd.forEach(function(a){a!=="selectionchange"&&(Og.has(a)||rl(a,!1,e),rl(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[So]||(t[So]=!0,rl("selectionchange",!1,t))}}function Cf(e,t,a,r){switch(nf(t)){case 1:var o=Qm;break;case 4:o=Zm;break;default:o=xi}a=o.bind(null,t,a,e),o=void 0,!Rl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function ol(e,t,a,r,o){var n=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;l=l.return}for(;i!==null;){if(l=Wt(i),l===null)return;if(s=l.tag,s===5||s===6){r=n=l;continue e}i=i.parentNode}}r=r.return}Vd(function(){var u=n,c=pi(a),p=[];e:{var x=Lf.get(e);if(x!==void 0){var v=yi,h=e;switch(e){case"keypress":if(Mo(a)===0)break e;case"keydown":case"keyup":v=pg;break;case"focusin":h="focus",v=el;break;case"focusout":h="blur",v=el;break;case"beforeblur":case"afterblur":v=el;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Bu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=tg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=hg;break;case xf:case vf:case yf:v=og;break;case bf:v=vg;break;case"scroll":v=Jm;break;case"wheel":v=bg;break;case"copy":case"cut":case"paste":v=lg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=zu}var y=(t&4)!==0,E=!y&&e==="scroll",f=y?x!==null?x+"Capture":null:x;y=[];for(var d=u,m;d!==null;){m=d;var L=m.stateNode;if(m.tag===5&&L!==null&&(m=L,f!==null&&(L=br(d,f),L!=null&&y.push(Tr(d,L,m)))),E)break;d=d.return}0<y.length&&(x=new v(x,h,null,a,c),p.push({event:x,listeners:y}))}}if((t&7)===0){e:{if(x=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",x&&a!==Tl&&(h=a.relatedTarget||a.fromElement)&&(Wt(h)||h[st]))break e;if((v||x)&&(x=c.window===c?c:(x=c.ownerDocument)?x.defaultView||x.parentWindow:window,v?(h=a.relatedTarget||a.toElement,v=u,h=h?Wt(h):null,h!==null&&(E=ea(h),h!==E||h.tag!==5&&h.tag!==6)&&(h=null)):(v=null,h=u),v!==h)){if(y=Bu,L="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(y=zu,L="onPointerLeave",f="onPointerEnter",d="pointer"),E=v==null?x:fa(v),m=h==null?x:fa(h),x=new y(L,d+"leave",v,a,c),x.target=E,x.relatedTarget=m,L=null,Wt(c)===u&&(y=new y(f,d+"enter",h,a,c),y.target=m,y.relatedTarget=E,L=y),E=L,v&&h)t:{for(y=v,f=h,d=0,m=y;m;m=na(m))d++;for(m=0,L=f;L;L=na(L))m++;for(;0<d-m;)y=na(y),d--;for(;0<m-d;)f=na(f),m--;for(;d--;){if(y===f||f!==null&&y===f.alternate)break t;y=na(y),f=na(f)}y=null}else y=null;v!==null&&Yu(p,x,v,y,!1),h!==null&&E!==null&&Yu(p,E,h,y,!0)}}e:{if(x=u?fa(u):window,v=x.nodeName&&x.nodeName.toLowerCase(),v==="select"||v==="input"&&x.type==="file")var C=Tg;else if(Uu(x))if(cf)C=Mg;else{C=Rg;var w=Pg}else(v=x.nodeName)&&v.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(C=Eg);if(C&&(C=C(e,u))){ff(p,C,a,c);break e}w&&w(e,x,u),e==="focusout"&&(w=x._wrapperState)&&w.controlled&&x.type==="number"&&Sl(x,"number",x.value)}switch(w=u?fa(u):window,e){case"focusin":(Uu(w)||w.contentEditable==="true")&&(ua=w,Fl=u,pr=null);break;case"focusout":pr=Fl=ua=null;break;case"mousedown":Ol=!0;break;case"contextmenu":case"mouseup":case"dragend":Ol=!1,Vu(p,a,c);break;case"selectionchange":if(Fg)break;case"keydown":case"keyup":Vu(p,a,c)}var k;if(Li)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else sa?uf(e,a)&&(P="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(P="onCompositionStart");P&&(sf&&a.locale!=="ko"&&(sa||P!=="onCompositionStart"?P==="onCompositionEnd"&&sa&&(k=lf()):(St=c,vi="value"in St?St.value:St.textContent,sa=!0)),w=Go(u,P),0<w.length&&(P=new Nu(P,e,null,a,c),p.push({event:P,listeners:w}),k?P.data=k:(k=df(a),k!==null&&(P.data=k)))),(k=Sg?Cg(e,a):wg(e,a))&&(u=Go(u,"onBeforeInput"),0<u.length&&(c=new Nu("onBeforeInput","beforeinput",null,a,c),p.push({event:c,listeners:u}),c.data=k))}Sf(p,t)})}function Tr(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Go(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,n=o.stateNode;o.tag===5&&n!==null&&(o=n,n=br(e,a),n!=null&&r.unshift(Tr(e,n,o)),n=br(e,t),n!=null&&r.push(Tr(e,n,o))),e=e.return}return r}function na(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Yu(e,t,a,r,o){for(var n=t._reactName,l=[];a!==null&&a!==r;){var i=a,s=i.alternate,u=i.stateNode;if(s!==null&&s===r)break;i.tag===5&&u!==null&&(i=u,o?(s=br(a,n),s!=null&&l.unshift(Tr(a,s,i))):o||(s=br(a,n),s!=null&&l.push(Tr(a,s,i)))),a=a.return}l.length!==0&&e.push({event:t,listeners:l})}var Bg=/\r\n?/g,Ng=/\u0000|\uFFFD/g;function Qu(e){return(typeof e=="string"?e:""+e).replace(Bg,`
6
+ `).replace(Ng,"")}function Co(e,t,a){if(t=Qu(t),Qu(e)!==t&&a)throw Error(S(425))}function jo(){}var Bl=null,Nl=null;function zl(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 Hl=typeof setTimeout=="function"?setTimeout:void 0,zg=typeof clearTimeout=="function"?clearTimeout:void 0,Zu=typeof Promise=="function"?Promise:void 0,Hg=typeof queueMicrotask=="function"?queueMicrotask:typeof Zu<"u"?function(e){return Zu.resolve(null).then(e).catch(_g)}:Hl;function _g(e){setTimeout(function(){throw e})}function nl(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(r===0){e.removeChild(o),Cr(t);return}r--}else a!=="$"&&a!=="$?"&&a!=="$!"||r++;a=o}while(a);Cr(t)}function Tt(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 Ju(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var Aa=Math.random().toString(36).slice(2),Ye="__reactFiber$"+Aa,Pr="__reactProps$"+Aa,st="__reactContainer$"+Aa,_l="__reactEvents$"+Aa,Ug="__reactListeners$"+Aa,qg="__reactHandles$"+Aa;function Wt(e){var t=e[Ye];if(t)return t;for(var a=e.parentNode;a;){if(t=a[st]||a[Ye]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ju(e);e!==null;){if(a=e[Ye])return a;e=Ju(e)}return t}e=a,a=e.parentNode}return null}function Nr(e){return e=e[Ye]||e[st],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function mn(e){return e[Pr]||null}var Ul=[],ca=-1;function Ot(e){return{current:e}}function $(e){0>ca||(e.current=Ul[ca],Ul[ca]=null,ca--)}function U(e,t){ca++,Ul[ca]=e.current,e.current=t}var Dt={},pe=Ot(Dt),Le=Ot(!1),Kt=Dt;function Ia(e,t){var a=e.type.contextTypes;if(!a)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},n;for(n in a)o[n]=t[n];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Se(e){return e=e.childContextTypes,e!=null}function Ko(){$(Le),$(pe)}function ed(e,t,a){if(pe.current!==Dt)throw Error(S(168));U(pe,t),U(Le,a)}function wf(e,t,a){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return a;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(S(108,Pm(e)||"Unknown",o));return X({},a,r)}function Xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Kt=pe.current,U(pe,e),U(Le,Le.current),!0}function td(e,t,a){var r=e.stateNode;if(!r)throw Error(S(169));a?(e=wf(e,t,Kt),r.__reactInternalMemoizedMergedChildContext=e,$(Le),$(pe),U(pe,e)):$(Le),U(Le,a)}var rt=null,gn=!1,ll=!1;function If(e){rt===null?rt=[e]:rt.push(e)}function Wg(e){gn=!0,If(e)}function Bt(){if(!ll&&rt!==null){ll=!0;var e=0,t=z;try{var a=rt;for(z=1;e<a.length;e++){var r=a[e];do r=r(!0);while(r!==null)}rt=null,gn=!1}catch(o){throw rt!==null&&(rt=rt.slice(e+1)),Xd(mi,Bt),o}finally{z=t,ll=!1}}return null}var pa=[],ma=0,Yo=null,Qo=0,Me=[],Ae=0,Xt=null,ot=1,nt="";function Ut(e,t){pa[ma++]=Qo,pa[ma++]=Yo,Yo=e,Qo=t}function kf(e,t,a){Me[Ae++]=ot,Me[Ae++]=nt,Me[Ae++]=Xt,Xt=e;var r=ot;e=nt;var o=32-qe(r)-1;r&=~(1<<o),a+=1;var n=32-qe(t)+o;if(30<n){var l=o-o%5;n=(r&(1<<l)-1).toString(32),r>>=l,o-=l,ot=1<<32-qe(t)+o|a<<o|r,nt=n+e}else ot=1<<n|a<<o|r,nt=e}function Ci(e){e.return!==null&&(Ut(e,1),kf(e,1,0))}function wi(e){for(;e===Yo;)Yo=pa[--ma],pa[ma]=null,Qo=pa[--ma],pa[ma]=null;for(;e===Xt;)Xt=Me[--Ae],Me[Ae]=null,nt=Me[--Ae],Me[Ae]=null,ot=Me[--Ae],Me[Ae]=null}var ke=null,Ie=null,V=!1,Ue=null;function Tf(e,t){var a=De(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function ad(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ke=e,Ie=Tt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ke=e,Ie=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=Xt!==null?{id:ot,overflow:nt}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=De(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,ke=e,Ie=null,!0):!1;default:return!1}}function ql(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Wl(e){if(V){var t=Ie;if(t){var a=t;if(!ad(e,t)){if(ql(e))throw Error(S(418));t=Tt(a.nextSibling);var r=ke;t&&ad(e,t)?Tf(r,a):(e.flags=e.flags&-4097|2,V=!1,ke=e)}}else{if(ql(e))throw Error(S(418));e.flags=e.flags&-4097|2,V=!1,ke=e}}}function rd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ke=e}function wo(e){if(e!==ke)return!1;if(!V)return rd(e),V=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zl(e.type,e.memoizedProps)),t&&(t=Ie)){if(ql(e))throw Pf(),Error(S(418));for(;t;)Tf(e,t),t=Tt(t.nextSibling)}if(rd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){Ie=Tt(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}Ie=null}}else Ie=ke?Tt(e.stateNode.nextSibling):null;return!0}function Pf(){for(var e=Ie;e;)e=Tt(e.nextSibling)}function ka(){Ie=ke=null,V=!1}function Ii(e){Ue===null?Ue=[e]:Ue.push(e)}var $g=ft.ReactCurrentBatchConfig;function tr(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(S(309));var r=a.stateNode}if(!r)throw Error(S(147,e));var o=r,n=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===n?t.ref:(t=function(l){var i=o.refs;l===null?delete i[n]:i[n]=l},t._stringRef=n,t)}if(typeof e!="string")throw Error(S(284));if(!a._owner)throw Error(S(290,e))}return e}function Io(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function od(e){var t=e._init;return t(e._payload)}function Rf(e){function t(f,d){if(e){var m=f.deletions;m===null?(f.deletions=[d],f.flags|=16):m.push(d)}}function a(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function o(f,d){return f=Mt(f,d),f.index=0,f.sibling=null,f}function n(f,d,m){return f.index=m,e?(m=f.alternate,m!==null?(m=m.index,m<d?(f.flags|=2,d):m):(f.flags|=2,d)):(f.flags|=1048576,d)}function l(f){return e&&f.alternate===null&&(f.flags|=2),f}function i(f,d,m,L){return d===null||d.tag!==6?(d=pl(m,f.mode,L),d.return=f,d):(d=o(d,m),d.return=f,d)}function s(f,d,m,L){var C=m.type;return C===ia?c(f,d,m.props.children,L,m.key):d!==null&&(d.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===vt&&od(C)===d.type)?(L=o(d,m.props),L.ref=tr(f,d,m),L.return=f,L):(L=zo(m.type,m.key,m.props,null,f.mode,L),L.ref=tr(f,d,m),L.return=f,L)}function u(f,d,m,L){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=ml(m,f.mode,L),d.return=f,d):(d=o(d,m.children||[]),d.return=f,d)}function c(f,d,m,L,C){return d===null||d.tag!==7?(d=jt(m,f.mode,L,C),d.return=f,d):(d=o(d,m),d.return=f,d)}function p(f,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=pl(""+d,f.mode,m),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case uo:return m=zo(d.type,d.key,d.props,null,f.mode,m),m.ref=tr(f,null,d),m.return=f,m;case la:return d=ml(d,f.mode,m),d.return=f,d;case vt:var L=d._init;return p(f,L(d._payload),m)}if(lr(d)||Qa(d))return d=jt(d,f.mode,m,null),d.return=f,d;Io(f,d)}return null}function x(f,d,m,L){var C=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:i(f,d,""+m,L);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case uo:return m.key===C?s(f,d,m,L):null;case la:return m.key===C?u(f,d,m,L):null;case vt:return C=m._init,x(f,d,C(m._payload),L)}if(lr(m)||Qa(m))return C!==null?null:c(f,d,m,L,null);Io(f,m)}return null}function v(f,d,m,L,C){if(typeof L=="string"&&L!==""||typeof L=="number")return f=f.get(m)||null,i(d,f,""+L,C);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case uo:return f=f.get(L.key===null?m:L.key)||null,s(d,f,L,C);case la:return f=f.get(L.key===null?m:L.key)||null,u(d,f,L,C);case vt:var w=L._init;return v(f,d,m,w(L._payload),C)}if(lr(L)||Qa(L))return f=f.get(m)||null,c(d,f,L,C,null);Io(d,L)}return null}function h(f,d,m,L){for(var C=null,w=null,k=d,P=d=0,F=null;k!==null&&P<m.length;P++){k.index>P?(F=k,k=null):F=k.sibling;var A=x(f,k,m[P],L);if(A===null){k===null&&(k=F);break}e&&k&&A.alternate===null&&t(f,k),d=n(A,d,P),w===null?C=A:w.sibling=A,w=A,k=F}if(P===m.length)return a(f,k),V&&Ut(f,P),C;if(k===null){for(;P<m.length;P++)k=p(f,m[P],L),k!==null&&(d=n(k,d,P),w===null?C=k:w.sibling=k,w=k);return V&&Ut(f,P),C}for(k=r(f,k);P<m.length;P++)F=v(k,f,P,m[P],L),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?P:F.key),d=n(F,d,P),w===null?C=F:w.sibling=F,w=F);return e&&k.forEach(function(G){return t(f,G)}),V&&Ut(f,P),C}function y(f,d,m,L){var C=Qa(m);if(typeof C!="function")throw Error(S(150));if(m=C.call(m),m==null)throw Error(S(151));for(var w=C=null,k=d,P=d=0,F=null,A=m.next();k!==null&&!A.done;P++,A=m.next()){k.index>P?(F=k,k=null):F=k.sibling;var G=x(f,k,A.value,L);if(G===null){k===null&&(k=F);break}e&&k&&G.alternate===null&&t(f,k),d=n(G,d,P),w===null?C=G:w.sibling=G,w=G,k=F}if(A.done)return a(f,k),V&&Ut(f,P),C;if(k===null){for(;!A.done;P++,A=m.next())A=p(f,A.value,L),A!==null&&(d=n(A,d,P),w===null?C=A:w.sibling=A,w=A);return V&&Ut(f,P),C}for(k=r(f,k);!A.done;P++,A=m.next())A=v(k,f,P,A.value,L),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?P:A.key),d=n(A,d,P),w===null?C=A:w.sibling=A,w=A);return e&&k.forEach(function(ie){return t(f,ie)}),V&&Ut(f,P),C}function E(f,d,m,L){if(typeof m=="object"&&m!==null&&m.type===ia&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case uo:e:{for(var C=m.key,w=d;w!==null;){if(w.key===C){if(C=m.type,C===ia){if(w.tag===7){a(f,w.sibling),d=o(w,m.props.children),d.return=f,f=d;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===vt&&od(C)===w.type){a(f,w.sibling),d=o(w,m.props),d.ref=tr(f,w,m),d.return=f,f=d;break e}a(f,w);break}else t(f,w);w=w.sibling}m.type===ia?(d=jt(m.props.children,f.mode,L,m.key),d.return=f,f=d):(L=zo(m.type,m.key,m.props,null,f.mode,L),L.ref=tr(f,d,m),L.return=f,f=L)}return l(f);case la:e:{for(w=m.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){a(f,d.sibling),d=o(d,m.children||[]),d.return=f,f=d;break e}else{a(f,d);break}else t(f,d);d=d.sibling}d=ml(m,f.mode,L),d.return=f,f=d}return l(f);case vt:return w=m._init,E(f,d,w(m._payload),L)}if(lr(m))return h(f,d,m,L);if(Qa(m))return y(f,d,m,L);Io(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(a(f,d.sibling),d=o(d,m),d.return=f,f=d):(a(f,d),d=pl(m,f.mode,L),d.return=f,f=d),l(f)):a(f,d)}return E}var Ta=Rf(!0),Ef=Rf(!1),Zo=Ot(null),Jo=null,ga=null,ki=null;function Ti(){ki=ga=Jo=null}function Pi(e){var t=Zo.current;$(Zo),e._currentValue=t}function $l(e,t,a){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===a)break;e=e.return}}function Sa(e,t){Jo=e,ki=ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(be=!0),e.firstContext=null)}function Oe(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},ga===null){if(Jo===null)throw Error(S(308));ga=e,Jo.dependencies={lanes:0,firstContext:e}}else ga=ga.next=e;return t}var $t=null;function Ri(e){$t===null?$t=[e]:$t.push(e)}function Mf(e,t,a,r){var o=t.interleaved;return o===null?(a.next=a,Ri(t)):(a.next=o.next,o.next=a),t.interleaved=a,ut(e,r)}function ut(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var yt=!1;function Ei(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Af(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pt(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(B&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ut(e,a)}return o=r.interleaved,o===null?(t.next=t,Ri(r)):(t.next=o.next,o.next=t),r.interleaved=t,ut(e,a)}function Ao(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,gi(e,a)}}function nd(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var l={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};n===null?o=n=l:n=n.next=l,a=a.next}while(a!==null);n===null?o=n=t:n=n.next=t}else o=n=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:n,shared:r.shared,effects:r.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function en(e,t,a,r){var o=e.updateQueue;yt=!1;var n=o.firstBaseUpdate,l=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var s=i,u=s.next;s.next=null,l===null?n=u:l.next=u,l=s;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==l&&(i===null?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=s))}if(n!==null){var p=o.baseState;l=0,c=u=s=null,i=n;do{var x=i.lane,v=i.eventTime;if((r&x)===x){c!==null&&(c=c.next={eventTime:v,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,y=i;switch(x=t,v=a,y.tag){case 1:if(h=y.payload,typeof h=="function"){p=h.call(v,p,x);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,x=typeof h=="function"?h.call(v,p,x):h,x==null)break e;p=X({},p,x);break e;case 2:yt=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,x=o.effects,x===null?o.effects=[i]:x.push(i))}else v={eventTime:v,lane:x,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=v,s=p):c=c.next=v,l|=x;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;x=i,i=x.next,x.next=null,o.lastBaseUpdate=x,o.shared.pending=null}}while(!0);if(c===null&&(s=p),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else n===null&&(o.shared.lanes=0);Qt|=l,e.lanes=l,e.memoizedState=p}}function ld(e,t,a){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=a,typeof o!="function")throw Error(S(191,o));o.call(r)}}}var zr={},Ze=Ot(zr),Rr=Ot(zr),Er=Ot(zr);function Vt(e){if(e===zr)throw Error(S(174));return e}function Mi(e,t){switch(U(Er,t),U(Rr,e),U(Ze,zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wl(t,e)}$(Ze),U(Ze,t)}function Pa(){$(Ze),$(Rr),$(Er)}function Df(e){Vt(Er.current);var t=Vt(Ze.current),a=wl(t,e.type);t!==a&&(U(Rr,e),U(Ze,a))}function Ai(e){Rr.current===e&&($(Ze),$(Rr))}var j=Ot(0);function tn(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.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 il=[];function Di(){for(var e=0;e<il.length;e++)il[e]._workInProgressVersionPrimary=null;il.length=0}var Do=ft.ReactCurrentDispatcher,sl=ft.ReactCurrentBatchConfig,Yt=0,K=null,ee=null,ae=null,an=!1,mr=!1,Mr=0,Vg=0;function de(){throw Error(S(321))}function Fi(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!$e(e[a],t[a]))return!1;return!0}function Oi(e,t,a,r,o,n){if(Yt=n,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Do.current=e===null||e.memoizedState===null?Xg:Yg,e=a(r,o),mr){n=0;do{if(mr=!1,Mr=0,25<=n)throw Error(S(301));n+=1,ae=ee=null,t.updateQueue=null,Do.current=Qg,e=a(r,o)}while(mr)}if(Do.current=rn,t=ee!==null&&ee.next!==null,Yt=0,ae=ee=K=null,an=!1,t)throw Error(S(300));return e}function Bi(){var e=Mr!==0;return Mr=0,e}function Xe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?K.memoizedState=ae=e:ae=ae.next=e,ae}function Be(){if(ee===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=ee.next;var t=ae===null?K.memoizedState:ae.next;if(t!==null)ae=t,ee=e;else{if(e===null)throw Error(S(310));ee=e,e={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},ae===null?K.memoizedState=ae=e:ae=ae.next=e}return ae}function Ar(e,t){return typeof t=="function"?t(e):t}function ul(e){var t=Be(),a=t.queue;if(a===null)throw Error(S(311));a.lastRenderedReducer=e;var r=ee,o=r.baseQueue,n=a.pending;if(n!==null){if(o!==null){var l=o.next;o.next=n.next,n.next=l}r.baseQueue=o=n,a.pending=null}if(o!==null){n=o.next,r=r.baseState;var i=l=null,s=null,u=n;do{var c=u.lane;if((Yt&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(i=s=p,l=r):s=s.next=p,K.lanes|=c,Qt|=c}u=u.next}while(u!==null&&u!==n);s===null?l=r:s.next=i,$e(r,t.memoizedState)||(be=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,a.lastRenderedState=r}if(e=a.interleaved,e!==null){o=e;do n=o.lane,K.lanes|=n,Qt|=n,o=o.next;while(o!==e)}else o===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function dl(e){var t=Be(),a=t.queue;if(a===null)throw Error(S(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,n=t.memoizedState;if(o!==null){a.pending=null;var l=o=o.next;do n=e(n,l.action),l=l.next;while(l!==o);$e(n,t.memoizedState)||(be=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,r]}function Ff(){}function Of(e,t){var a=K,r=Be(),o=t(),n=!$e(r.memoizedState,o);if(n&&(r.memoizedState=o,be=!0),r=r.queue,Ni(zf.bind(null,a,r,e),[e]),r.getSnapshot!==t||n||ae!==null&&ae.memoizedState.tag&1){if(a.flags|=2048,Dr(9,Nf.bind(null,a,r,o,t),void 0,null),re===null)throw Error(S(349));(Yt&30)!==0||Bf(a,t,o)}return o}function Bf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Nf(e,t,a,r){t.value=a,t.getSnapshot=r,Hf(t)&&_f(e)}function zf(e,t,a){return a(function(){Hf(t)&&_f(e)})}function Hf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!$e(e,a)}catch{return!0}}function _f(e){var t=ut(e,1);t!==null&&We(t,e,1,-1)}function id(e){var t=Xe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:e},t.queue=e,e=e.dispatch=Kg.bind(null,K,e),[t.memoizedState,e]}function Dr(e,t,a,r){return e={tag:e,create:t,destroy:a,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e)),e}function Uf(){return Be().memoizedState}function Fo(e,t,a,r){var o=Xe();K.flags|=e,o.memoizedState=Dr(1|t,a,void 0,r===void 0?null:r)}function hn(e,t,a,r){var o=Be();r=r===void 0?null:r;var n=void 0;if(ee!==null){var l=ee.memoizedState;if(n=l.destroy,r!==null&&Fi(r,l.deps)){o.memoizedState=Dr(t,a,n,r);return}}K.flags|=e,o.memoizedState=Dr(1|t,a,n,r)}function sd(e,t){return Fo(8390656,8,e,t)}function Ni(e,t){return hn(2048,8,e,t)}function qf(e,t){return hn(4,2,e,t)}function Wf(e,t){return hn(4,4,e,t)}function $f(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 Vf(e,t,a){return a=a!=null?a.concat([e]):null,hn(4,4,$f.bind(null,t,e),a)}function zi(){}function Gf(e,t){var a=Be();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Fi(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function jf(e,t){var a=Be();t=t===void 0?null:t;var r=a.memoizedState;return r!==null&&t!==null&&Fi(t,r[1])?r[0]:(e=e(),a.memoizedState=[e,t],e)}function Kf(e,t,a){return(Yt&21)===0?(e.baseState&&(e.baseState=!1,be=!0),e.memoizedState=a):($e(a,t)||(a=Zd(),K.lanes|=a,Qt|=a,e.baseState=!0),t)}function Gg(e,t){var a=z;z=a!==0&&4>a?a:4,e(!0);var r=sl.transition;sl.transition={};try{e(!1),t()}finally{z=a,sl.transition=r}}function Xf(){return Be().memoizedState}function jg(e,t,a){var r=Et(e);if(a={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null},Yf(e))Qf(t,a);else if(a=Mf(e,t,a,r),a!==null){var o=he();We(a,e,r,o),Zf(a,t,r)}}function Kg(e,t,a){var r=Et(e),o={lane:r,action:a,hasEagerState:!1,eagerState:null,next:null};if(Yf(e))Qf(t,o);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var l=t.lastRenderedState,i=n(l,a);if(o.hasEagerState=!0,o.eagerState=i,$e(i,l)){var s=t.interleaved;s===null?(o.next=o,Ri(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}a=Mf(e,t,o,r),a!==null&&(o=he(),We(a,e,r,o),Zf(a,t,r))}}function Yf(e){var t=e.alternate;return e===K||t!==null&&t===K}function Qf(e,t){mr=an=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Zf(e,t,a){if((a&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,gi(e,a)}}var rn={readContext:Oe,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Xg={readContext:Oe,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:sd,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Fo(4194308,4,$f.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Fo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fo(4,2,e,t)},useMemo:function(e,t){var a=Xe();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var r=Xe();return t=a!==void 0?a(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=jg.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:id,useDebugValue:zi,useDeferredValue:function(e){return Xe().memoizedState=e},useTransition:function(){var e=id(!1),t=e[0];return e=Gg.bind(null,e[1]),Xe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var r=K,o=Xe();if(V){if(a===void 0)throw Error(S(407));a=a()}else{if(a=t(),re===null)throw Error(S(349));(Yt&30)!==0||Bf(r,t,a)}o.memoizedState=a;var n={value:a,getSnapshot:t};return o.queue=n,sd(zf.bind(null,r,n,e),[e]),r.flags|=2048,Dr(9,Nf.bind(null,r,n,a,t),void 0,null),a},useId:function(){var e=Xe(),t=re.identifierPrefix;if(V){var a=nt,r=ot;a=(r&~(1<<32-qe(r)-1)).toString(32)+a,t=":"+t+"R"+a,a=Mr++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=Vg++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Yg={readContext:Oe,useCallback:Gf,useContext:Oe,useEffect:Ni,useImperativeHandle:Vf,useInsertionEffect:qf,useLayoutEffect:Wf,useMemo:jf,useReducer:ul,useRef:Uf,useState:function(){return ul(Ar)},useDebugValue:zi,useDeferredValue:function(e){var t=Be();return Kf(t,ee.memoizedState,e)},useTransition:function(){var e=ul(Ar)[0],t=Be().memoizedState;return[e,t]},useMutableSource:Ff,useSyncExternalStore:Of,useId:Xf,unstable_isNewReconciler:!1},Qg={readContext:Oe,useCallback:Gf,useContext:Oe,useEffect:Ni,useImperativeHandle:Vf,useInsertionEffect:qf,useLayoutEffect:Wf,useMemo:jf,useReducer:dl,useRef:Uf,useState:function(){return dl(Ar)},useDebugValue:zi,useDeferredValue:function(e){var t=Be();return ee===null?t.memoizedState=e:Kf(t,ee.memoizedState,e)},useTransition:function(){var e=dl(Ar)[0],t=Be().memoizedState;return[e,t]},useMutableSource:Ff,useSyncExternalStore:Of,useId:Xf,unstable_isNewReconciler:!1};function He(e,t){if(e&&e.defaultProps){t=X({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function Vl(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:X({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var xn={isMounted:function(e){return(e=e._reactInternals)?ea(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var r=he(),o=Et(e),n=lt(r,o);n.payload=t,a!=null&&(n.callback=a),t=Pt(e,n,o),t!==null&&(We(t,e,o,r),Ao(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=he(),o=Et(e),n=lt(r,o);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Pt(e,n,o),t!==null&&(We(t,e,o,r),Ao(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=he(),r=Et(e),o=lt(a,r);o.tag=2,t!=null&&(o.callback=t),t=Pt(e,o,r),t!==null&&(We(t,e,r,a),Ao(t,e,r))}};function ud(e,t,a,r,o,n,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,n,l):t.prototype&&t.prototype.isPureReactComponent?!Ir(a,r)||!Ir(o,n):!0}function Jf(e,t,a){var r=!1,o=Dt,n=t.contextType;return typeof n=="object"&&n!==null?n=Oe(n):(o=Se(t)?Kt:pe.current,r=t.contextTypes,n=(r=r!=null)?Ia(e,o):Dt),t=new t(a,n),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xn,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=n),t}function dd(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&xn.enqueueReplaceState(t,t.state,null)}function Gl(e,t,a,r){var o=e.stateNode;o.props=a,o.state=e.memoizedState,o.refs={},Ei(e);var n=t.contextType;typeof n=="object"&&n!==null?o.context=Oe(n):(n=Se(t)?Kt:pe.current,o.context=Ia(e,n)),o.state=e.memoizedState,n=t.getDerivedStateFromProps,typeof n=="function"&&(Vl(e,t,n,a),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&&xn.enqueueReplaceState(o,o.state,null),en(e,a,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ra(e,t){try{var a="",r=t;do a+=Tm(r),r=r.return;while(r);var o=a}catch(n){o=`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}return{value:e,source:t,stack:o,digest:null}}function fl(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function jl(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var Zg=typeof WeakMap=="function"?WeakMap:Map;function ec(e,t,a){a=lt(-1,a),a.tag=3,a.payload={element:null};var r=t.value;return a.callback=function(){nn||(nn=!0,ri=r),jl(e,t)},a}function tc(e,t,a){a=lt(-1,a),a.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;a.payload=function(){return r(o)},a.callback=function(){jl(e,t)}}var n=e.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(a.callback=function(){jl(e,t),typeof r!="function"&&(Rt===null?Rt=new Set([this]):Rt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),a}function fd(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new Zg;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(a)||(o.add(a),e=ch.bind(null,e,t,a),t.then(e,e))}function cd(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 pd(e,t,a,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=lt(-1,1),t.tag=2,Pt(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Jg=ft.ReactCurrentOwner,be=!1;function ge(e,t,a,r){t.child=e===null?Ef(t,null,a,r):Ta(t,e.child,a,r)}function md(e,t,a,r,o){a=a.render;var n=t.ref;return Sa(t,o),r=Oi(e,t,a,r,n,o),a=Bi(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,dt(e,t,o)):(V&&a&&Ci(t),t.flags|=1,ge(e,t,r,o),t.child)}function gd(e,t,a,r,o){if(e===null){var n=a.type;return typeof n=="function"&&!Gi(n)&&n.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=n,ac(e,t,n,r,o)):(e=zo(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,(e.lanes&o)===0){var l=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ir,a(l,r)&&e.ref===t.ref)return dt(e,t,o)}return t.flags|=1,e=Mt(n,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,a,r,o){if(e!==null){var n=e.memoizedProps;if(Ir(n,r)&&e.ref===t.ref)if(be=!1,t.pendingProps=r=n,(e.lanes&o)!==0)(e.flags&131072)!==0&&(be=!0);else return t.lanes=e.lanes,dt(e,t,o)}return Kl(e,t,a,r,o)}function rc(e,t,a){var r=t.pendingProps,o=r.children,n=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(xa,we),we|=a;else{if((a&1073741824)===0)return e=n!==null?n.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(xa,we),we|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=n!==null?n.baseLanes:a,U(xa,we),we|=r}else n!==null?(r=n.baseLanes|a,t.memoizedState=null):r=a,U(xa,we),we|=r;return ge(e,t,o,a),t.child}function oc(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function Kl(e,t,a,r,o){var n=Se(a)?Kt:pe.current;return n=Ia(t,n),Sa(t,o),a=Oi(e,t,a,r,n,o),r=Bi(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,dt(e,t,o)):(V&&r&&Ci(t),t.flags|=1,ge(e,t,a,o),t.child)}function hd(e,t,a,r,o){if(Se(a)){var n=!0;Xo(t)}else n=!1;if(Sa(t,o),t.stateNode===null)Oo(e,t),Jf(t,a,r),Gl(t,a,r,o),r=!0;else if(e===null){var l=t.stateNode,i=t.memoizedProps;l.props=i;var s=l.context,u=a.contextType;typeof u=="object"&&u!==null?u=Oe(u):(u=Se(a)?Kt:pe.current,u=Ia(t,u));var c=a.getDerivedStateFromProps,p=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";p||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==r||s!==u)&&dd(t,l,r,u),yt=!1;var x=t.memoizedState;l.state=x,en(t,r,l,o),s=t.memoizedState,i!==r||x!==s||Le.current||yt?(typeof c=="function"&&(Vl(t,a,c,r),s=t.memoizedState),(i=yt||ud(t,a,i,r,x,s,u))?(p||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=i):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Af(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:He(t.type,i),l.props=u,p=t.pendingProps,x=l.context,s=a.contextType,typeof s=="object"&&s!==null?s=Oe(s):(s=Se(a)?Kt:pe.current,s=Ia(t,s));var v=a.getDerivedStateFromProps;(c=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==p||x!==s)&&dd(t,l,r,s),yt=!1,x=t.memoizedState,l.state=x,en(t,r,l,o);var h=t.memoizedState;i!==p||x!==h||Le.current||yt?(typeof v=="function"&&(Vl(t,a,v,r),h=t.memoizedState),(u=yt||ud(t,a,u,r,x,h,s)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=u):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),r=!1)}return Xl(e,t,a,r,n,o)}function Xl(e,t,a,r,o,n){oc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&td(t,a,!1),dt(e,t,n);r=t.stateNode,Jg.current=t;var i=l&&typeof a.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ta(t,e.child,null,n),t.child=Ta(t,null,i,n)):ge(e,t,i,n),t.memoizedState=r.state,o&&td(t,a,!0),t.child}function nc(e){var t=e.stateNode;t.pendingContext?ed(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ed(e,t.context,!1),Mi(e,t.containerInfo)}function xd(e,t,a,r,o){return ka(),Ii(o),t.flags|=256,ge(e,t,a,r),t.child}var Yl={dehydrated:null,treeContext:null,retryLane:0};function Ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function lc(e,t,a){var r=t.pendingProps,o=j.current,n=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(n=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),U(j,o&1),e===null)return Wl(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):(l=r.children,e=r.fallback,n?(r=t.mode,n=t.child,l={mode:"hidden",children:l},(r&1)===0&&n!==null?(n.childLanes=0,n.pendingProps=l):n=bn(l,r,0,null),e=jt(e,r,a,null),n.return=t,e.return=t,n.sibling=e,t.child=n,t.child.memoizedState=Ql(a),t.memoizedState=Yl,e):Hi(t,l));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return eh(e,t,l,r,i,o,a);if(n){n=r.fallback,l=t.mode,o=e.child,i=o.sibling;var s={mode:"hidden",children:r.children};return(l&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Mt(o,s),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?n=Mt(i,n):(n=jt(n,l,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,r=n,n=t.child,l=e.child.memoizedState,l=l===null?Ql(a):{baseLanes:l.baseLanes|a,cachePool:null,transitions:l.transitions},n.memoizedState=l,n.childLanes=e.childLanes&~a,t.memoizedState=Yl,r}return n=e.child,e=n.sibling,r=Mt(n,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=a),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r}function Hi(e,t){return t=bn({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ko(e,t,a,r){return r!==null&&Ii(r),Ta(t,e.child,null,a),e=Hi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eh(e,t,a,r,o,n,l){if(a)return t.flags&256?(t.flags&=-257,r=fl(Error(S(422))),ko(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(n=r.fallback,o=t.mode,r=bn({mode:"visible",children:r.children},o,0,null),n=jt(n,o,l,null),n.flags|=2,r.return=t,n.return=t,r.sibling=n,t.child=r,(t.mode&1)!==0&&Ta(t,e.child,null,l),t.child.memoizedState=Ql(l),t.memoizedState=Yl,n);if((t.mode&1)===0)return ko(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,n=Error(S(419)),r=fl(n,r,void 0),ko(e,t,l,r)}if(i=(l&e.childLanes)!==0,be||i){if(r=re,r!==null){switch(l&-l){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|l))!==0?0:o,o!==0&&o!==n.retryLane&&(n.retryLane=o,ut(e,o),We(r,e,o,-1))}return Vi(),r=fl(Error(S(421))),ko(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=ph.bind(null,e),o._reactRetry=t,null):(e=n.treeContext,Ie=Tt(o.nextSibling),ke=t,V=!0,Ue=null,e!==null&&(Me[Ae++]=ot,Me[Ae++]=nt,Me[Ae++]=Xt,ot=e.id,nt=e.overflow,Xt=t),t=Hi(t,r.children),t.flags|=4096,t)}function vd(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$l(e.return,t,a)}function cl(e,t,a,r,o){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=a,n.tailMode=o)}function ic(e,t,a){var r=t.pendingProps,o=r.revealOrder,n=r.tail;if(ge(e,t,r.children,a),r=j.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&&vd(e,a,t);else if(e.tag===19)vd(e,a,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(U(j,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&tn(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),cl(t,!1,o,a,n);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&tn(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}cl(t,!0,a,null,n);break;case"together":cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dt(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Qt|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,a=Mt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Mt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function th(e,t,a){switch(t.tag){case 3:nc(t),ka();break;case 5:Df(t);break;case 1:Se(t.type)&&Xo(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;U(Zo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(j,j.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?lc(e,t,a):(U(j,j.current&1),e=dt(e,t,a),e!==null?e.sibling:null);U(j,j.current&1);break;case 19:if(r=(a&t.childLanes)!==0,(e.flags&128)!==0){if(r)return ic(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),U(j,j.current),r)break;return null;case 22:case 23:return t.lanes=0,rc(e,t,a)}return dt(e,t,a)}var sc,Zl,uc,dc;sc=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};Zl=function(){};uc=function(e,t,a,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Vt(Ze.current);var n=null;switch(a){case"input":o=bl(e,o),r=bl(e,r),n=[];break;case"select":o=X({},o,{value:void 0}),r=X({},r,{value:void 0}),n=[];break;case"textarea":o=Cl(e,o),r=Cl(e,r),n=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jo)}Il(a,r);var l;a=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var i=o[u];for(l in i)i.hasOwnProperty(l)&&(a||(a={}),a[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(vr.hasOwnProperty(u)?n||(n=[]):(n=n||[]).push(u,null));for(u in r){var s=r[u];if(i=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==i&&(s!=null||i!=null))if(u==="style")if(i){for(l in i)!i.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(a||(a={}),a[l]="");for(l in s)s.hasOwnProperty(l)&&i[l]!==s[l]&&(a||(a={}),a[l]=s[l])}else a||(n||(n=[]),n.push(u,a)),a=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(n=n||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(n=n||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(vr.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&W("scroll",e),n||i===s||(n=[])):(n=n||[]).push(u,s))}a&&(n=n||[]).push("style",a);var u=n;(t.updateQueue=u)&&(t.flags|=4)}};dc=function(e,t,a,r){a!==r&&(t.flags|=4)};function ar(e,t){if(!V)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=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;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function ah(e,t,a){var r=t.pendingProps;switch(wi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(t),null;case 1:return Se(t.type)&&Ko(),fe(t),null;case 3:return r=t.stateNode,Pa(),$(Le),$(pe),Di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ue!==null&&(li(Ue),Ue=null))),Zl(e,t),fe(t),null;case 5:Ai(t);var o=Vt(Er.current);if(a=t.type,e!==null&&t.stateNode!=null)uc(e,t,a,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return fe(t),null}if(e=Vt(Ze.current),wo(t)){r=t.stateNode,a=t.type;var n=t.memoizedProps;switch(r[Ye]=t,r[Pr]=n,e=(t.mode&1)!==0,a){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(o=0;o<sr.length;o++)W(sr[o],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":ku(r,n),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!n.multiple},W("invalid",r);break;case"textarea":Pu(r,n),W("invalid",r)}Il(a,n),o=null;for(var l in n)if(n.hasOwnProperty(l)){var i=n[l];l==="children"?typeof i=="string"?r.textContent!==i&&(n.suppressHydrationWarning!==!0&&Co(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(n.suppressHydrationWarning!==!0&&Co(r.textContent,i,e),o=["children",""+i]):vr.hasOwnProperty(l)&&i!=null&&l==="onScroll"&&W("scroll",r)}switch(a){case"input":fo(r),Tu(r,n,!0);break;case"textarea":fo(r),Ru(r);break;case"select":case"option":break;default:typeof n.onClick=="function"&&(r.onclick=jo)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Nd(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(a,{is:r.is}):(e=l.createElement(a),a==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,a),e[Ye]=t,e[Pr]=r,sc(e,t,!1,!1),t.stateNode=e;e:{switch(l=kl(a,r),a){case"dialog":W("cancel",e),W("close",e),o=r;break;case"iframe":case"object":case"embed":W("load",e),o=r;break;case"video":case"audio":for(o=0;o<sr.length;o++)W(sr[o],e);o=r;break;case"source":W("error",e),o=r;break;case"img":case"image":case"link":W("error",e),W("load",e),o=r;break;case"details":W("toggle",e),o=r;break;case"input":ku(e,r),o=bl(e,r),W("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=X({},r,{value:void 0}),W("invalid",e);break;case"textarea":Pu(e,r),o=Cl(e,r),W("invalid",e);break;default:o=r}Il(a,o),i=o;for(n in i)if(i.hasOwnProperty(n)){var s=i[n];n==="style"?_d(e,s):n==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&zd(e,s)):n==="children"?typeof s=="string"?(a!=="textarea"||s!=="")&&yr(e,s):typeof s=="number"&&yr(e,""+s):n!=="suppressContentEditableWarning"&&n!=="suppressHydrationWarning"&&n!=="autoFocus"&&(vr.hasOwnProperty(n)?s!=null&&n==="onScroll"&&W("scroll",e):s!=null&&ui(e,n,s,l))}switch(a){case"input":fo(e),Tu(e,r,!1);break;case"textarea":fo(e),Ru(e);break;case"option":r.value!=null&&e.setAttribute("value",""+At(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,n!=null?va(e,!!r.multiple,n,!1):r.defaultValue!=null&&va(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=jo)}switch(a){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 fe(t),null;case 6:if(e&&t.stateNode!=null)dc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(a=Vt(Er.current),Vt(Ze.current),wo(t)){if(r=t.stateNode,a=t.memoizedProps,r[Ye]=t,(n=r.nodeValue!==a)&&(e=ke,e!==null))switch(e.tag){case 3:Co(r.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Co(r.nodeValue,a,(e.mode&1)!==0)}n&&(t.flags|=4)}else r=(a.nodeType===9?a:a.ownerDocument).createTextNode(r),r[Ye]=t,t.stateNode=r}return fe(t),null;case 13:if($(j),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&Ie!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Pf(),ka(),t.flags|=98560,n=!1;else if(n=wo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error(S(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(S(317));n[Ye]=t}else ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;fe(t),n=!1}else Ue!==null&&(li(Ue),Ue=null),n=!0;if(!n)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(j.current&1)!==0?te===0&&(te=3):Vi())),t.updateQueue!==null&&(t.flags|=4),fe(t),null);case 4:return Pa(),Zl(e,t),e===null&&kr(t.stateNode.containerInfo),fe(t),null;case 10:return Pi(t.type._context),fe(t),null;case 17:return Se(t.type)&&Ko(),fe(t),null;case 19:if($(j),n=t.memoizedState,n===null)return fe(t),null;if(r=(t.flags&128)!==0,l=n.rendering,l===null)if(r)ar(n,!1);else{if(te!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=tn(e),l!==null){for(t.flags|=128,ar(n,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=a,a=t.child;a!==null;)n=a,e=r,n.flags&=14680066,l=n.alternate,l===null?(n.childLanes=0,n.lanes=e,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,e=l.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return U(j,j.current&1|2),t.child}e=e.sibling}n.tail!==null&&Z()>Ea&&(t.flags|=128,r=!0,ar(n,!1),t.lanes=4194304)}else{if(!r)if(e=tn(l),e!==null){if(t.flags|=128,r=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),ar(n,!0),n.tail===null&&n.tailMode==="hidden"&&!l.alternate&&!V)return fe(t),null}else 2*Z()-n.renderingStartTime>Ea&&a!==1073741824&&(t.flags|=128,r=!0,ar(n,!1),t.lanes=4194304);n.isBackwards?(l.sibling=t.child,t.child=l):(a=n.last,a!==null?a.sibling=l:t.child=l,n.last=l)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Z(),t.sibling=null,a=j.current,U(j,r?a&1|2:a&1),t):(fe(t),null);case 22:case 23:return $i(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(we&1073741824)!==0&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function rh(e,t){switch(wi(t),t.tag){case 1:return Se(t.type)&&Ko(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pa(),$(Le),$(pe),Di(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ai(t),null;case 13:if($(j),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(j),null;case 4:return Pa(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return $i(),null;case 24:return null;default:return null}}var To=!1,ce=!1,oh=typeof WeakSet=="function"?WeakSet:Set,R=null;function ha(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(r){Y(e,t,r)}else a.current=null}function Jl(e,t,a){try{a()}catch(r){Y(e,t,r)}}var yd=!1;function nh(e,t){if(Bl=$o,e=gf(),Si(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,n=r.focusNode;r=r.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break e}var l=0,i=-1,s=-1,u=0,c=0,p=e,x=null;t:for(;;){for(var v;p!==a||o!==0&&p.nodeType!==3||(i=l+o),p!==n||r!==0&&p.nodeType!==3||(s=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(v=p.firstChild)!==null;)x=p,p=v;for(;;){if(p===e)break t;if(x===a&&++u===o&&(i=l),x===n&&++c===r&&(s=l),(v=p.nextSibling)!==null)break;p=x,x=p.parentNode}p=v}a=i===-1||s===-1?null:{start:i,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(Nl={focusedElem:e,selectionRange:a},$o=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;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 y=h.memoizedProps,E=h.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:He(t.type,y),E);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(L){Y(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return h=yd,yd=!1,h}function gr(e,t,a){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 n=o.destroy;o.destroy=void 0,n!==void 0&&Jl(t,a,n)}o=o.next}while(o!==r)}}function vn(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var r=a.create;a.destroy=r()}a=a.next}while(a!==t)}}function ei(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof t=="function"?t(e):t.current=e}}function fc(e){var t=e.alternate;t!==null&&(e.alternate=null,fc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[Pr],delete t[_l],delete t[Ug],delete t[qg])),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 cc(e){return e.tag===5||e.tag===3||e.tag===4}function bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cc(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 ti(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=jo));else if(r!==4&&(e=e.child,e!==null))for(ti(e,t,a),e=e.sibling;e!==null;)ti(e,t,a),e=e.sibling}function ai(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ai(e,t,a),e=e.sibling;e!==null;)ai(e,t,a),e=e.sibling}var oe=null,_e=!1;function xt(e,t,a){for(a=a.child;a!==null;)pc(e,t,a),a=a.sibling}function pc(e,t,a){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 5:ce||ha(a,t);case 6:var r=oe,o=_e;oe=null,xt(e,t,a),oe=r,_e=o,oe!==null&&(_e?(e=oe,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):oe.removeChild(a.stateNode));break;case 18:oe!==null&&(_e?(e=oe,a=a.stateNode,e.nodeType===8?nl(e.parentNode,a):e.nodeType===1&&nl(e,a),Cr(e)):nl(oe,a.stateNode));break;case 4:r=oe,o=_e,oe=a.stateNode.containerInfo,_e=!0,xt(e,t,a),oe=r,_e=o;break;case 0:case 11:case 14:case 15:if(!ce&&(r=a.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var n=o,l=n.destroy;n=n.tag,l!==void 0&&((n&2)!==0||(n&4)!==0)&&Jl(a,t,l),o=o.next}while(o!==r)}xt(e,t,a);break;case 1:if(!ce&&(ha(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=a.memoizedProps,r.state=a.memoizedState,r.componentWillUnmount()}catch(i){Y(a,t,i)}xt(e,t,a);break;case 21:xt(e,t,a);break;case 22:a.mode&1?(ce=(r=ce)||a.memoizedState!==null,xt(e,t,a),ce=r):xt(e,t,a);break;default:xt(e,t,a)}}function Ld(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new oh),t.forEach(function(r){var o=mh.bind(null,e,r);a.has(r)||(a.add(r),r.then(o,o))})}}function ze(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r];try{var n=e,l=t,i=l;e:for(;i!==null;){switch(i.tag){case 5:oe=i.stateNode,_e=!1;break e;case 3:oe=i.stateNode.containerInfo,_e=!0;break e;case 4:oe=i.stateNode.containerInfo,_e=!0;break e}i=i.return}if(oe===null)throw Error(S(160));pc(n,l,o),oe=null,_e=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){Y(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)mc(t,e),t=t.sibling}function mc(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ze(t,e),Ke(e),r&4){try{gr(3,e,e.return),vn(3,e)}catch(y){Y(e,e.return,y)}try{gr(5,e,e.return)}catch(y){Y(e,e.return,y)}}break;case 1:ze(t,e),Ke(e),r&512&&a!==null&&ha(a,a.return);break;case 5:if(ze(t,e),Ke(e),r&512&&a!==null&&ha(a,a.return),e.flags&32){var o=e.stateNode;try{yr(o,"")}catch(y){Y(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var n=e.memoizedProps,l=a!==null?a.memoizedProps:n,i=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{i==="input"&&n.type==="radio"&&n.name!=null&&Od(o,n),kl(i,l);var u=kl(i,n);for(l=0;l<s.length;l+=2){var c=s[l],p=s[l+1];c==="style"?_d(o,p):c==="dangerouslySetInnerHTML"?zd(o,p):c==="children"?yr(o,p):ui(o,c,p,u)}switch(i){case"input":Ll(o,n);break;case"textarea":Bd(o,n);break;case"select":var x=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!n.multiple;var v=n.value;v!=null?va(o,!!n.multiple,v,!1):x!==!!n.multiple&&(n.defaultValue!=null?va(o,!!n.multiple,n.defaultValue,!0):va(o,!!n.multiple,n.multiple?[]:"",!1))}o[Pr]=n}catch(y){Y(e,e.return,y)}}break;case 6:if(ze(t,e),Ke(e),r&4){if(e.stateNode===null)throw Error(S(162));o=e.stateNode,n=e.memoizedProps;try{o.nodeValue=n}catch(y){Y(e,e.return,y)}}break;case 3:if(ze(t,e),Ke(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Cr(t.containerInfo)}catch(y){Y(e,e.return,y)}break;case 4:ze(t,e),Ke(e);break;case 13:ze(t,e),Ke(e),o=e.child,o.flags&8192&&(n=o.memoizedState!==null,o.stateNode.isHidden=n,!n||o.alternate!==null&&o.alternate.memoizedState!==null||(qi=Z())),r&4&&Ld(e);break;case 22:if(c=a!==null&&a.memoizedState!==null,e.mode&1?(ce=(u=ce)||c,ze(t,e),ce=u):ze(t,e),Ke(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&(e.mode&1)!==0)for(R=e,c=e.child;c!==null;){for(p=R=c;R!==null;){switch(x=R,v=x.child,x.tag){case 0:case 11:case 14:case 15:gr(4,x,x.return);break;case 1:ha(x,x.return);var h=x.stateNode;if(typeof h.componentWillUnmount=="function"){r=x,a=x.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(y){Y(r,a,y)}}break;case 5:ha(x,x.return);break;case 22:if(x.memoizedState!==null){Cd(p);continue}}v!==null?(v.return=x,R=v):Cd(p)}c=c.sibling}e:for(c=null,p=e;;){if(p.tag===5){if(c===null){c=p;try{o=p.stateNode,u?(n=o.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"):(i=p.stateNode,s=p.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=Hd("display",l))}catch(y){Y(e,e.return,y)}}}else if(p.tag===6){if(c===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(y){Y(e,e.return,y)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;c===p&&(c=null),p=p.return}c===p&&(c=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ze(t,e),Ke(e),r&4&&Ld(e);break;case 21:break;default:ze(t,e),Ke(e)}}function Ke(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(cc(a)){var r=a;break e}a=a.return}throw Error(S(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(yr(o,""),r.flags&=-33);var n=bd(e);ai(e,n,o);break;case 3:case 4:var l=r.stateNode.containerInfo,i=bd(e);ti(e,i,l);break;default:throw Error(S(161))}}catch(s){Y(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lh(e,t,a){R=e,gc(e,t,a)}function gc(e,t,a){for(var r=(e.mode&1)!==0;R!==null;){var o=R,n=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||To;if(!l){var i=o.alternate,s=i!==null&&i.memoizedState!==null||ce;i=To;var u=ce;if(To=l,(ce=s)&&!u)for(R=o;R!==null;)l=R,s=l.child,l.tag===22&&l.memoizedState!==null?wd(o):s!==null?(s.return=l,R=s):wd(o);for(;n!==null;)R=n,gc(n,t,a),n=n.sibling;R=o,To=i,ce=u}Sd(e,t,a)}else(o.subtreeFlags&8772)!==0&&n!==null?(n.return=o,R=n):Sd(e,t,a)}}function Sd(e){for(;R!==null;){var t=R;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ce||vn(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ce)if(a===null)r.componentDidMount();else{var o=t.elementType===t.type?a.memoizedProps:He(t.type,a.memoizedProps);r.componentDidUpdate(o,a.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var n=t.updateQueue;n!==null&&ld(t,n,r);break;case 3:var l=t.updateQueue;if(l!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}ld(t,l,a)}break;case 5:var i=t.stateNode;if(a===null&&t.flags&4){a=i;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&a.focus();break;case"img":s.src&&(a.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var p=c.dehydrated;p!==null&&Cr(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}ce||t.flags&512&&ei(t)}catch(x){Y(t,t.return,x)}}if(t===e){R=null;break}if(a=t.sibling,a!==null){a.return=t.return,R=a;break}R=t.return}}function Cd(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var a=t.sibling;if(a!==null){a.return=t.return,R=a;break}R=t.return}}function wd(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{vn(4,t)}catch(s){Y(t,a,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Y(t,o,s)}}var n=t.return;try{ei(t)}catch(s){Y(t,n,s)}break;case 5:var l=t.return;try{ei(t)}catch(s){Y(t,l,s)}}}catch(s){Y(t,t.return,s)}if(t===e){R=null;break}var i=t.sibling;if(i!==null){i.return=t.return,R=i;break}R=t.return}}var ih=Math.ceil,on=ft.ReactCurrentDispatcher,_i=ft.ReactCurrentOwner,Fe=ft.ReactCurrentBatchConfig,B=0,re=null,J=null,ne=0,we=0,xa=Ot(0),te=0,Fr=null,Qt=0,yn=0,Ui=0,hr=null,ye=null,qi=0,Ea=1/0,at=null,nn=!1,ri=null,Rt=null,Po=!1,Ct=null,ln=0,xr=0,oi=null,Bo=-1,No=0;function he(){return(B&6)!==0?Z():Bo!==-1?Bo:Bo=Z()}function Et(e){return(e.mode&1)===0?1:(B&2)!==0&&ne!==0?ne&-ne:$g.transition!==null?(No===0&&(No=Zd()),No):(e=z,e!==0||(e=window.event,e=e===void 0?16:nf(e.type)),e)}function We(e,t,a,r){if(50<xr)throw xr=0,oi=null,Error(S(185));Or(e,a,r),((B&2)===0||e!==re)&&(e===re&&((B&2)===0&&(yn|=a),te===4&&Lt(e,ne)),Ce(e,r),a===1&&B===0&&(t.mode&1)===0&&(Ea=Z()+500,gn&&Bt()))}function Ce(e,t){var a=e.callbackNode;Gm(e,t);var r=Wo(e,e===re?ne:0);if(r===0)a!==null&&Au(a),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(a!=null&&Au(a),t===1)e.tag===0?Wg(Id.bind(null,e)):If(Id.bind(null,e)),Hg(function(){(B&6)===0&&Bt()}),a=null;else{switch(Jd(r)){case 1:a=mi;break;case 4:a=Yd;break;case 16:a=qo;break;case 536870912:a=Qd;break;default:a=qo}a=Cc(a,hc.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function hc(e,t){if(Bo=-1,No=0,(B&6)!==0)throw Error(S(327));var a=e.callbackNode;if(Ca()&&e.callbackNode!==a)return null;var r=Wo(e,e===re?ne:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=sn(e,r);else{t=r;var o=B;B|=2;var n=vc();(re!==e||ne!==t)&&(at=null,Ea=Z()+500,Gt(e,t));do try{dh();break}catch(i){xc(e,i)}while(!0);Ti(),on.current=n,B=o,J!==null?t=0:(re=null,ne=0,t=te)}if(t!==0){if(t===2&&(o=Ml(e),o!==0&&(r=o,t=ni(e,o))),t===1)throw a=Fr,Gt(e,0),Lt(e,r),Ce(e,Z()),a;if(t===6)Lt(e,r);else{if(o=e.current.alternate,(r&30)===0&&!sh(o)&&(t=sn(e,r),t===2&&(n=Ml(e),n!==0&&(r=n,t=ni(e,n))),t===1))throw a=Fr,Gt(e,0),Lt(e,r),Ce(e,Z()),a;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:qt(e,ye,at);break;case 3:if(Lt(e,r),(r&130023424)===r&&(t=qi+500-Z(),10<t)){if(Wo(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){he(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Hl(qt.bind(null,e,ye,at),t);break}qt(e,ye,at);break;case 4:if(Lt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-qe(r);n=1<<l,l=t[l],l>o&&(o=l),r&=~n}if(r=o,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ih(r/1960))-r,10<r){e.timeoutHandle=Hl(qt.bind(null,e,ye,at),r);break}qt(e,ye,at);break;case 5:qt(e,ye,at);break;default:throw Error(S(329))}}}return Ce(e,Z()),e.callbackNode===a?hc.bind(null,e):null}function ni(e,t){var a=hr;return e.current.memoizedState.isDehydrated&&(Gt(e,t).flags|=256),e=sn(e,t),e!==2&&(t=ye,ye=a,t!==null&&li(t)),e}function li(e){ye===null?ye=e:ye.push.apply(ye,e)}function sh(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var r=0;r<a.length;r++){var o=a[r],n=o.getSnapshot;o=o.value;try{if(!$e(n(),o))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Lt(e,t){for(t&=~Ui,t&=~yn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-qe(t),r=1<<a;e[a]=-1,t&=~r}}function Id(e){if((B&6)!==0)throw Error(S(327));Ca();var t=Wo(e,0);if((t&1)===0)return Ce(e,Z()),null;var a=sn(e,t);if(e.tag!==0&&a===2){var r=Ml(e);r!==0&&(t=r,a=ni(e,r))}if(a===1)throw a=Fr,Gt(e,0),Lt(e,t),Ce(e,Z()),a;if(a===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,qt(e,ye,at),Ce(e,Z()),null}function Wi(e,t){var a=B;B|=1;try{return e(t)}finally{B=a,B===0&&(Ea=Z()+500,gn&&Bt())}}function Zt(e){Ct!==null&&Ct.tag===0&&(B&6)===0&&Ca();var t=B;B|=1;var a=Fe.transition,r=z;try{if(Fe.transition=null,z=1,e)return e()}finally{z=r,Fe.transition=a,B=t,(B&6)===0&&Bt()}}function $i(){we=xa.current,$(xa)}function Gt(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,zg(a)),J!==null)for(a=J.return;a!==null;){var r=a;switch(wi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ko();break;case 3:Pa(),$(Le),$(pe),Di();break;case 5:Ai(r);break;case 4:Pa();break;case 13:$(j);break;case 19:$(j);break;case 10:Pi(r.type._context);break;case 22:case 23:$i()}a=a.return}if(re=e,J=e=Mt(e.current,null),ne=we=t,te=0,Fr=null,Ui=yn=Qt=0,ye=hr=null,$t!==null){for(t=0;t<$t.length;t++)if(a=$t[t],r=a.interleaved,r!==null){a.interleaved=null;var o=r.next,n=a.pending;if(n!==null){var l=n.next;n.next=o,r.next=l}a.pending=r}$t=null}return e}function xc(e,t){do{var a=J;try{if(Ti(),Do.current=rn,an){for(var r=K.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}an=!1}if(Yt=0,ae=ee=K=null,mr=!1,Mr=0,_i.current=null,a===null||a.return===null){te=1,Fr=t,J=null;break}e:{var n=e,l=a.return,i=a,s=t;if(t=ne,i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=i,p=c.tag;if((c.mode&1)===0&&(p===0||p===11||p===15)){var x=c.alternate;x?(c.updateQueue=x.updateQueue,c.memoizedState=x.memoizedState,c.lanes=x.lanes):(c.updateQueue=null,c.memoizedState=null)}var v=cd(l);if(v!==null){v.flags&=-257,pd(v,l,i,n,t),v.mode&1&&fd(n,u,t),t=v,s=u;var h=t.updateQueue;if(h===null){var y=new Set;y.add(s),t.updateQueue=y}else h.add(s);break e}else{if((t&1)===0){fd(n,u,t),Vi();break e}s=Error(S(426))}}else if(V&&i.mode&1){var E=cd(l);if(E!==null){(E.flags&65536)===0&&(E.flags|=256),pd(E,l,i,n,t),Ii(Ra(s,i));break e}}n=s=Ra(s,i),te!==4&&(te=2),hr===null?hr=[n]:hr.push(n),n=l;do{switch(n.tag){case 3:n.flags|=65536,t&=-t,n.lanes|=t;var f=ec(n,s,t);nd(n,f);break e;case 1:i=s;var d=n.type,m=n.stateNode;if((n.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Rt===null||!Rt.has(m)))){n.flags|=65536,t&=-t,n.lanes|=t;var L=tc(n,i,t);nd(n,L);break e}}n=n.return}while(n!==null)}bc(a)}catch(C){t=C,J===a&&a!==null&&(J=a=a.return);continue}break}while(!0)}function vc(){var e=on.current;return on.current=rn,e===null?rn:e}function Vi(){(te===0||te===3||te===2)&&(te=4),re===null||(Qt&268435455)===0&&(yn&268435455)===0||Lt(re,ne)}function sn(e,t){var a=B;B|=2;var r=vc();(re!==e||ne!==t)&&(at=null,Gt(e,t));do try{uh();break}catch(o){xc(e,o)}while(!0);if(Ti(),B=a,on.current=r,J!==null)throw Error(S(261));return re=null,ne=0,te}function uh(){for(;J!==null;)yc(J)}function dh(){for(;J!==null&&!Nm();)yc(J)}function yc(e){var t=Sc(e.alternate,e,we);e.memoizedProps=e.pendingProps,t===null?bc(e):J=t,_i.current=null}function bc(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=ah(a,t,we),a!==null){J=a;return}}else{if(a=rh(a,t),a!==null){a.flags&=32767,J=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{te=6,J=null;return}}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);te===0&&(te=5)}function qt(e,t,a){var r=z,o=Fe.transition;try{Fe.transition=null,z=1,fh(e,t,a,r)}finally{Fe.transition=o,z=r}return null}function fh(e,t,a,r){do Ca();while(Ct!==null);if((B&6)!==0)throw Error(S(327));a=e.finishedWork;var o=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(S(177));e.callbackNode=null,e.callbackPriority=0;var n=a.lanes|a.childLanes;if(jm(e,n),e===re&&(J=re=null,ne=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Po||(Po=!0,Cc(qo,function(){return Ca(),null})),n=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||n){n=Fe.transition,Fe.transition=null;var l=z;z=1;var i=B;B|=4,_i.current=null,nh(e,a),mc(a,e),Dg(Nl),$o=!!Bl,Nl=Bl=null,e.current=a,lh(a,e,o),zm(),B=i,z=l,Fe.transition=n}else e.current=a;if(Po&&(Po=!1,Ct=e,ln=o),n=e.pendingLanes,n===0&&(Rt=null),Um(a.stateNode,r),Ce(e,Z()),t!==null)for(r=e.onRecoverableError,a=0;a<t.length;a++)o=t[a],r(o.value,{componentStack:o.stack,digest:o.digest});if(nn)throw nn=!1,e=ri,ri=null,e;return(ln&1)!==0&&e.tag!==0&&Ca(),n=e.pendingLanes,(n&1)!==0?e===oi?xr++:(xr=0,oi=e):xr=0,Bt(),null}function Ca(){if(Ct!==null){var e=Jd(ln),t=Fe.transition,a=z;try{if(Fe.transition=null,z=16>e?16:e,Ct===null)var r=!1;else{if(e=Ct,Ct=null,ln=0,(B&6)!==0)throw Error(S(331));var o=B;for(B|=4,R=e.current;R!==null;){var n=R,l=n.child;if((R.flags&16)!==0){var i=n.deletions;if(i!==null){for(var s=0;s<i.length;s++){var u=i[s];for(R=u;R!==null;){var c=R;switch(c.tag){case 0:case 11:case 15:gr(8,c,n)}var p=c.child;if(p!==null)p.return=c,R=p;else for(;R!==null;){c=R;var x=c.sibling,v=c.return;if(fc(c),c===u){R=null;break}if(x!==null){x.return=v,R=x;break}R=v}}}var h=n.alternate;if(h!==null){var y=h.child;if(y!==null){h.child=null;do{var E=y.sibling;y.sibling=null,y=E}while(y!==null)}}R=n}}if((n.subtreeFlags&2064)!==0&&l!==null)l.return=n,R=l;else e:for(;R!==null;){if(n=R,(n.flags&2048)!==0)switch(n.tag){case 0:case 11:case 15:gr(9,n,n.return)}var f=n.sibling;if(f!==null){f.return=n.return,R=f;break e}R=n.return}}var d=e.current;for(R=d;R!==null;){l=R;var m=l.child;if((l.subtreeFlags&2064)!==0&&m!==null)m.return=l,R=m;else e:for(l=d;R!==null;){if(i=R,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:vn(9,i)}}catch(C){Y(i,i.return,C)}if(i===l){R=null;break e}var L=i.sibling;if(L!==null){L.return=i.return,R=L;break e}R=i.return}}if(B=o,Bt(),Qe&&typeof Qe.onPostCommitFiberRoot=="function")try{Qe.onPostCommitFiberRoot(dn,e)}catch{}r=!0}return r}finally{z=a,Fe.transition=t}}return!1}function kd(e,t,a){t=Ra(a,t),t=ec(e,t,1),e=Pt(e,t,1),t=he(),e!==null&&(Or(e,1,t),Ce(e,t))}function Y(e,t,a){if(e.tag===3)kd(e,e,a);else for(;t!==null;){if(t.tag===3){kd(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Rt===null||!Rt.has(r))){e=Ra(a,e),e=tc(t,e,1),t=Pt(t,e,1),e=he(),t!==null&&(Or(t,1,e),Ce(t,e));break}}t=t.return}}function ch(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),t=he(),e.pingedLanes|=e.suspendedLanes&a,re===e&&(ne&a)===a&&(te===4||te===3&&(ne&130023424)===ne&&500>Z()-qi?Gt(e,0):Ui|=a),Ce(e,t)}function Lc(e,t){t===0&&((e.mode&1)===0?t=1:(t=mo,mo<<=1,(mo&130023424)===0&&(mo=4194304)));var a=he();e=ut(e,t),e!==null&&(Or(e,t,a),Ce(e,a))}function ph(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Lc(e,a)}function mh(e,t){var a=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Lc(e,a)}var Sc;Sc=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)be=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return be=!1,th(e,t,a);be=(e.flags&131072)!==0}else be=!1,V&&(t.flags&1048576)!==0&&kf(t,Qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oo(e,t),e=t.pendingProps;var o=Ia(t,pe.current);Sa(t,a),o=Oi(null,t,r,e,o,a);var n=Bi();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,Se(r)?(n=!0,Xo(t)):n=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ei(t),o.updater=xn,t.stateNode=o,o._reactInternals=t,Gl(t,r,e,a),t=Xl(null,t,r,!0,n,a)):(t.tag=0,V&&n&&Ci(t),ge(null,t,o,a),t=t.child),t;case 16:r=t.elementType;e:{switch(Oo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=hh(r),e=He(r,e),o){case 0:t=Kl(null,t,r,e,a);break e;case 1:t=hd(null,t,r,e,a);break e;case 11:t=md(null,t,r,e,a);break e;case 14:t=gd(null,t,r,He(r.type,e),a);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Kl(e,t,r,o,a);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),hd(e,t,r,o,a);case 3:e:{if(nc(t),e===null)throw Error(S(387));r=t.pendingProps,n=t.memoizedState,o=n.element,Af(e,t),en(t,r,null,a);var l=t.memoizedState;if(r=l.element,n.isDehydrated)if(n={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){o=Ra(Error(S(423)),t),t=xd(e,t,r,a,o);break e}else if(r!==o){o=Ra(Error(S(424)),t),t=xd(e,t,r,a,o);break e}else for(Ie=Tt(t.stateNode.containerInfo.firstChild),ke=t,V=!0,Ue=null,a=Ef(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ka(),r===o){t=dt(e,t,a);break e}ge(e,t,r,a)}t=t.child}return t;case 5:return Df(t),e===null&&Wl(t),r=t.type,o=t.pendingProps,n=e!==null?e.memoizedProps:null,l=o.children,zl(r,o)?l=null:n!==null&&zl(r,n)&&(t.flags|=32),oc(e,t),ge(e,t,l,a),t.child;case 6:return e===null&&Wl(t),null;case 13:return lc(e,t,a);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ta(t,null,r,a):ge(e,t,r,a),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),md(e,t,r,o,a);case 7:return ge(e,t,t.pendingProps,a),t.child;case 8:return ge(e,t,t.pendingProps.children,a),t.child;case 12:return ge(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,n=t.memoizedProps,l=o.value,U(Zo,r._currentValue),r._currentValue=l,n!==null)if($e(n.value,l)){if(n.children===o.children&&!Le.current){t=dt(e,t,a);break e}}else for(n=t.child,n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){l=n.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(n.tag===1){s=lt(-1,a&-a),s.tag=2;var u=n.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}n.lanes|=a,s=n.alternate,s!==null&&(s.lanes|=a),$l(n.return,a,t),i.lanes|=a;break}s=s.next}}else if(n.tag===10)l=n.type===t.type?null:n.child;else if(n.tag===18){if(l=n.return,l===null)throw Error(S(341));l.lanes|=a,i=l.alternate,i!==null&&(i.lanes|=a),$l(l,a,t),l=n.sibling}else l=n.child;if(l!==null)l.return=n;else for(l=n;l!==null;){if(l===t){l=null;break}if(n=l.sibling,n!==null){n.return=l.return,l=n;break}l=l.return}n=l}ge(e,t,o.children,a),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sa(t,a),o=Oe(o),r=r(o),t.flags|=1,ge(e,t,r,a),t.child;case 14:return r=t.type,o=He(r,t.pendingProps),o=He(r.type,o),gd(e,t,r,o,a);case 15:return ac(e,t,t.type,t.pendingProps,a);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Oo(e,t),t.tag=1,Se(r)?(e=!0,Xo(t)):e=!1,Sa(t,a),Jf(t,r,o),Gl(t,r,o,a),Xl(null,t,r,!0,e,a);case 19:return ic(e,t,a);case 22:return rc(e,t,a)}throw Error(S(156,t.tag))};function Cc(e,t){return Xd(e,t)}function gh(e,t,a,r){this.tag=e,this.key=a,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 De(e,t,a,r){return new gh(e,t,a,r)}function Gi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hh(e){if(typeof e=="function")return Gi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fi)return 11;if(e===ci)return 14}return 2}function Mt(e,t){var a=e.alternate;return a===null?(a=De(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function zo(e,t,a,r,o,n){var l=2;if(r=e,typeof e=="function")Gi(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ia:return jt(a.children,o,n,t);case di:l=8,o|=8;break;case hl:return e=De(12,a,t,o|2),e.elementType=hl,e.lanes=n,e;case xl:return e=De(13,a,t,o),e.elementType=xl,e.lanes=n,e;case vl:return e=De(19,a,t,o),e.elementType=vl,e.lanes=n,e;case Ad:return bn(a,o,n,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ed:l=10;break e;case Md:l=9;break e;case fi:l=11;break e;case ci:l=14;break e;case vt:l=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=De(l,a,t,o),t.elementType=e,t.type=r,t.lanes=n,t}function jt(e,t,a,r){return e=De(7,e,r,t),e.lanes=a,e}function bn(e,t,a,r){return e=De(22,e,r,t),e.elementType=Ad,e.lanes=a,e.stateNode={isHidden:!1},e}function pl(e,t,a){return e=De(6,e,null,t),e.lanes=a,e}function ml(e,t,a){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xh(e,t,a,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=Qn(0),this.expirationTimes=Qn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ji(e,t,a,r,o,n,l,i,s){return e=new xh(e,t,a,i,s),t===1?(t=1,n===!0&&(t|=8)):t=0,n=De(3,null,null,t),e.current=n,n.stateNode=e,n.memoizedState={element:r,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ei(n),e}function vh(e,t,a){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:la,key:r==null?null:""+r,children:e,containerInfo:t,implementation:a}}function wc(e){if(!e)return Dt;e=e._reactInternals;e:{if(ea(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Se(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var a=e.type;if(Se(a))return wf(e,a,t)}return t}function Ic(e,t,a,r,o,n,l,i,s){return e=ji(a,r,!0,e,o,n,l,i,s),e.context=wc(null),a=e.current,r=he(),o=Et(a),n=lt(r,o),n.callback=t??null,Pt(a,n,o),e.current.lanes=o,Or(e,o,r),Ce(e,r),e}function Ln(e,t,a,r){var o=t.current,n=he(),l=Et(o);return a=wc(a),t.context===null?t.context=a:t.pendingContext=a,t=lt(n,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pt(o,t,l),e!==null&&(We(e,o,l,n),Ao(e,o,l)),l}function un(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 Td(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ki(e,t){Td(e,t),(e=e.alternate)&&Td(e,t)}function yh(){return null}var kc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xi(e){this._internalRoot=e}Sn.prototype.render=Xi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));Ln(e,t,null,null)};Sn.prototype.unmount=Xi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zt(function(){Ln(null,e,null,null)}),t[st]=null}};function Sn(e){this._internalRoot=e}Sn.prototype.unstable_scheduleHydration=function(e){if(e){var t=af();e={blockedOn:null,target:e,priority:t};for(var a=0;a<bt.length&&t!==0&&t<bt[a].priority;a++);bt.splice(a,0,e),a===0&&of(e)}};function Yi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cn(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pd(){}function bh(e,t,a,r,o){if(o){if(typeof r=="function"){var n=r;r=function(){var u=un(l);n.call(u)}}var l=Ic(t,r,e,0,null,!1,!1,"",Pd);return e._reactRootContainer=l,e[st]=l.current,kr(e.nodeType===8?e.parentNode:e),Zt(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var u=un(s);i.call(u)}}var s=ji(e,0,!1,null,null,!1,!1,"",Pd);return e._reactRootContainer=s,e[st]=s.current,kr(e.nodeType===8?e.parentNode:e),Zt(function(){Ln(t,s,a,r)}),s}function wn(e,t,a,r,o){var n=a._reactRootContainer;if(n){var l=n;if(typeof o=="function"){var i=o;o=function(){var s=un(l);i.call(s)}}Ln(t,l,e,o)}else l=bh(a,t,e,o,r);return un(l)}ef=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=ir(t.pendingLanes);a!==0&&(gi(t,a|1),Ce(t,Z()),(B&6)===0&&(Ea=Z()+500,Bt()))}break;case 13:Zt(function(){var r=ut(e,1);if(r!==null){var o=he();We(r,e,1,o)}}),Ki(e,1)}};hi=function(e){if(e.tag===13){var t=ut(e,134217728);if(t!==null){var a=he();We(t,e,134217728,a)}Ki(e,134217728)}};tf=function(e){if(e.tag===13){var t=Et(e),a=ut(e,t);if(a!==null){var r=he();We(a,e,t,r)}Ki(e,t)}};af=function(){return z};rf=function(e,t){var a=z;try{return z=e,t()}finally{z=a}};Pl=function(e,t,a){switch(t){case"input":if(Ll(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=mn(r);if(!o)throw Error(S(90));Fd(r),Ll(r,o)}}}break;case"textarea":Bd(e,a);break;case"select":t=a.value,t!=null&&va(e,!!a.multiple,t,!1)}};Wd=Wi;$d=Zt;var Lh={usingClientEntryPoint:!1,Events:[Nr,fa,mn,Ud,qd,Wi]},rr={findFiberByHostInstance:Wt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Sh={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:ft.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=jd(e),e===null?null:e.stateNode},findFiberByHostInstance:rr.findFiberByHostInstance||yh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(or=__REACT_DEVTOOLS_GLOBAL_HOOK__,!or.isDisabled&&or.supportsFiber))try{dn=or.inject(Sh),Qe=or}catch{}var or;Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lh;Re.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yi(t))throw Error(S(200));return vh(e,t,null,a)};Re.createRoot=function(e,t){if(!Yi(e))throw Error(S(299));var a=!1,r="",o=kc;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ji(e,1,!1,null,null,a,!1,r,o),e[st]=t.current,kr(e.nodeType===8?e.parentNode:e),new Xi(t)};Re.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(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=jd(t),e=e===null?null:e.stateNode,e};Re.flushSync=function(e){return Zt(e)};Re.hydrate=function(e,t,a){if(!Cn(t))throw Error(S(200));return wn(null,e,t,!0,a)};Re.hydrateRoot=function(e,t,a){if(!Yi(e))throw Error(S(405));var r=a!=null&&a.hydratedSources||null,o=!1,n="",l=kc;if(a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onRecoverableError!==void 0&&(l=a.onRecoverableError)),t=Ic(t,null,e,1,a??null,o,!1,n,l),e[st]=t.current,kr(e),r)for(e=0;e<r.length;e++)a=r[e],o=a._getVersion,o=o(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,o]:t.mutableSourceEagerHydrationData.push(a,o);return new Sn(t)};Re.render=function(e,t,a){if(!Cn(t))throw Error(S(200));return wn(null,e,t,!1,a)};Re.unmountComponentAtNode=function(e){if(!Cn(e))throw Error(S(40));return e._reactRootContainer?(Zt(function(){wn(null,null,e,!1,function(){e._reactRootContainer=null,e[st]=null})}),!0):!1};Re.unstable_batchedUpdates=Wi;Re.unstable_renderSubtreeIntoContainer=function(e,t,a,r){if(!Cn(a))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return wn(e,t,a,!1,r)};Re.version="18.3.1-next-f1338f8080-20240426"});var Hr=et((jv,Rc)=>{"use strict";function Pc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Pc)}catch(e){console.error(e)}}Pc(),Rc.exports=Tc()});var xp=et(ds=>{"use strict";var hp=Hr();ds.createRoot=hp.createRoot,ds.hydrateRoot=hp.hydrateRoot;var lL});var g={tasks:[],theme:"dark",annotationMode:!1,sidebar:null,popover:null,contextMenu:null,editModal:null,sidebarPinned:!1,activeTooltip:null,indicatorRafId:null,indicatorsVisible:!1,sidebarShowDone:!0,showAllPages:!1,tooltipPinned:!1,hoverTarget:null,annotateHighlightTarget:null,currentHref:"",host:null,root:null,status:null,indicatorContainer:null,edgeTrigger:null,pageSwitcher:null,pages:[],ws:null,reconnectAttempt:0,reconnectTimer:null,pingInterval:null,projectName:null,onTasksFetched:null,onTasksUpdatedMessage:null},hs="vibeflow-studio-prefs",xs=1e3,vs=3e4,ys=25e3;var $r=` :host {
9
+ all: initial;
10
+ display: block;
11
+ position: fixed;
12
+ inset: 0;
13
+ pointer-events: none;
14
+ z-index: 2147483647;
15
+ font-family: 'Inter', system-ui, -apple-system, sans-serif;
16
+ font-size: 14px;
17
+ line-height: 1.5;
18
+ color: #e2e8f0;
19
+ --vibeflow-text-primary: #e2e8f0;
20
+ --vibeflow-text-secondary: #cbd5e1;
21
+ --vibeflow-text-muted: #475569;
22
+ --vibeflow-border-strong: #1e293b;
23
+ --vibeflow-border-subtle: #0a1628;
24
+ --vibeflow-surface-elevated: #050d1a;
25
+ --vibeflow-surface-hover: #1e293b;
26
+ --vibeflow-accent-soft: rgba(59, 130, 246, 0.08);
27
+ --vibeflow-accent-border: rgba(59, 130, 246, 0.2);
28
+ --vibeflow-accent-strong: #2563eb;
29
+ }
30
+
31
+ *, *::before, *::after {
32
+ box-sizing: border-box;
33
+ margin: 0;
34
+ padding: 0;
35
+ }
36
+
37
+ /* \u2500\u2500 Annotation popover \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
38
+ .vibeflow-popover {
39
+ position: fixed;
40
+ background: #060d1a;
41
+ color: #e2e8f0;
42
+ border: 1px solid #1e293b;
43
+ border-radius: 12px;
44
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);
45
+ padding: 0;
46
+ min-width: 480px;
47
+ max-width: 600px;
48
+ pointer-events: auto;
49
+ overflow: hidden;
50
+ }
51
+
52
+ .popover-header {
53
+ display: flex;
54
+ align-items: center;
55
+ gap: 8px;
56
+ padding: 10px 14px;
57
+ background: #080f1e;
58
+ border-bottom: 1px solid #1e293b;
59
+ }
60
+
61
+ .popover-target-icon {
62
+ width: 22px;
63
+ height: 22px;
64
+ background: #1e3a5f;
65
+ border: 1px solid #2563eb40;
66
+ border-radius: 5px;
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: center;
70
+ font-size: 12px;
71
+ flex-shrink: 0;
72
+ }
73
+
74
+ .popover-target-name {
75
+ font-size: 12px;
76
+ font-weight: 600;
77
+ color: #93c5fd;
78
+ white-space: nowrap;
79
+ overflow: hidden;
80
+ text-overflow: ellipsis;
81
+ max-width: 280px;
82
+ }
83
+
84
+ .popover-drag-handle {
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ font-size: 16px;
89
+ color: #334155;
90
+ margin-left: auto;
91
+ line-height: 1;
92
+ cursor: grab;
93
+ padding: 2px 4px;
94
+ border-radius: 4px;
95
+ transition: color .15s, background .15s;
96
+ flex-shrink: 0;
97
+ user-select: none;
98
+ }
99
+ .popover-drag-handle:hover {
100
+ color: #60a5fa;
101
+ background: rgba(96, 165, 250, 0.1);
102
+ }
103
+ .vibeflow-popover.popover-dragging .popover-drag-handle { cursor: grabbing; }
104
+ .vibeflow-popover.popover-dragging { user-select: none; }
105
+
106
+
107
+
108
+ .popover-body {
109
+ padding: 14px 16px 12px;
110
+ }
111
+
112
+ .popover-title-row {
113
+ display: flex;
114
+ align-items: center;
115
+ gap: 8px;
116
+ margin-bottom: 8px;
117
+ }
118
+
119
+ .popover-label {
120
+ font-size: 12px;
121
+ color: #94a3b8;
122
+ margin-bottom: 10px;
123
+ }
124
+
125
+ .popover-label strong {
126
+ color: #e2e8f0;
127
+ font-weight: 600;
128
+ }
129
+
130
+ .vibeflow-popover input[type="text"] {
131
+ display: block;
132
+ width: 100%;
133
+ padding: 7px 10px;
134
+ min-height: 34px;
135
+ border: 1px solid #1e3a5f;
136
+ border-radius: 8px;
137
+ background: #050d1a;
138
+ color: #e2e8f0;
139
+ font-size: 13px;
140
+ font-family: inherit;
141
+ }
142
+
143
+ .vibeflow-popover input[type="text"]:focus {
144
+ outline: 2px solid #3b82f6;
145
+ outline-offset: 1px;
146
+ border-color: #3b82f6;
147
+ }
148
+
149
+ .vibeflow-popover input[type="text"]::placeholder { color: #64748b; }
150
+
151
+ .vibeflow-popover select {
152
+ display: block;
153
+ width: 100%;
154
+ padding: 6px 8px;
155
+ margin-bottom: 8px;
156
+ border: 1px solid #1e3a5f;
157
+ border-radius: 6px;
158
+ background: #050d1a;
159
+ color: #e2e8f0;
160
+ font-size: 14px;
161
+ font-family: system-ui, sans-serif;
162
+ cursor: pointer;
163
+ appearance: auto;
164
+ -webkit-appearance: auto;
165
+ }
166
+
167
+ .vibeflow-popover select:focus {
168
+ outline: 2px solid #3b82f6;
169
+ outline-offset: 1px;
170
+ border-color: #3b82f6;
171
+ }
172
+
173
+ .vibeflow-popover textarea {
174
+ display: block;
175
+ width: 100%;
176
+ min-height: 100px;
177
+ padding: 8px 10px;
178
+ margin-bottom: 10px;
179
+ border: 1px solid #1e3a5f;
180
+ border-radius: 8px;
181
+ background: #050d1a;
182
+ color: #e2e8f0;
183
+ font-size: 12px;
184
+ font-family: monospace;
185
+ line-height: 1.6;
186
+ resize: vertical;
187
+ }
188
+
189
+ .vibeflow-popover textarea:focus {
190
+ outline: 2px solid #3b82f6;
191
+ outline-offset: 1px;
192
+ border-color: #3b82f6;
193
+ }
194
+
195
+ .vibeflow-popover textarea::placeholder { color: #64748b; }
196
+
197
+ .type-picker {
198
+ position: relative;
199
+ display: inline-block;
200
+ flex-shrink: 0;
201
+ }
202
+
203
+ .type-picker-trigger {
204
+ display: inline-flex;
205
+ align-items: center;
206
+ gap: 5px;
207
+ padding: 3px 8px;
208
+ border-radius: 6px;
209
+ border: 1px solid rgba(255,255,255,0.08);
210
+ background: rgba(255,255,255,0.05);
211
+ color: rgba(255,255,255,0.7);
212
+ font-size: 12px;
213
+ cursor: pointer;
214
+ white-space: nowrap;
215
+ }
216
+
217
+ .type-picker-trigger:hover {
218
+ border-color: rgba(255,255,255,0.15);
219
+ color: #fff;
220
+ }
221
+
222
+ .type-picker-icon { font-size: 13px; line-height: 1; }
223
+
224
+ .type-picker-dropdown {
225
+ display: none;
226
+ position: absolute;
227
+ top: calc(100% + 4px);
228
+ left: 0;
229
+ background: #1e293b;
230
+ border: 1px solid rgba(255,255,255,0.12);
231
+ border-radius: 8px;
232
+ padding: 4px 0;
233
+ z-index: 200;
234
+ min-width: 140px;
235
+ box-shadow: 0 8px 24px rgba(0,0,0,0.4);
236
+ }
237
+
238
+ .type-picker-dropdown.open {
239
+ display: block;
240
+ }
241
+
242
+ .type-picker-dropdown .type-picker-option {
243
+ display: flex;
244
+ align-items: center;
245
+ gap: 8px;
246
+ width: 100%;
247
+ padding: 6px 12px;
248
+ border: none;
249
+ border-radius: 0;
250
+ background: transparent;
251
+ color: rgba(255,255,255,0.55);
252
+ font-size: 12px;
253
+ font-weight: 400;
254
+ cursor: pointer;
255
+ text-align: left;
256
+ }
257
+
258
+ .type-picker-dropdown .type-picker-option:hover {
259
+ background: rgba(255,255,255,0.06);
260
+ color: #fff;
261
+ }
262
+
263
+ .type-picker-dropdown .type-picker-option--active {
264
+ background: rgba(59,130,246,0.15);
265
+ color: #93c5fd;
266
+ font-weight: 500;
267
+ }
268
+
269
+ .popover-actions {
270
+ display: flex;
271
+ gap: 8px;
272
+ padding: 0 16px 14px;
273
+ margin-top: 0;
274
+ align-items: center;
275
+ }
276
+
277
+ .popover-actions-spacer { flex: 1; }
278
+
279
+ .vibeflow-popover button {
280
+ padding: 7px 16px;
281
+ border-radius: 7px;
282
+ font-size: 13px;
283
+ font-family: system-ui, sans-serif;
284
+ font-weight: 500;
285
+ line-height: 1.4;
286
+ cursor: pointer;
287
+ border: 1px solid #334155;
288
+ background: #1e293b;
289
+ color: #94a3b8;
290
+ transition: background 0.12s, color 0.12s;
291
+ }
292
+
293
+ .vibeflow-popover button:hover { background: #334155; color: #e2e8f0; }
294
+ .vibeflow-popover button.btn-primary { background: #2563eb; color: #fff; border-color: #1d4ed8; font-weight: 600; }
295
+ .vibeflow-popover button.btn-primary:hover { background: #1d4ed8; }
296
+ .vibeflow-popover button.btn-ghost { background: transparent; border-color: #334155; color: #64748b; font-size: 12px; }
297
+ .vibeflow-popover button.btn-ghost:hover { background: #1e293b; color: #94a3b8; }
298
+ .vibeflow-popover button.btn-capture,
299
+ .vibeflow-popover button.btn-screenshot { background: transparent; border-color: #334155; color: #64748b; font-size: 12px; padding: 6px 10px; }
300
+ .vibeflow-popover button.btn-capture:hover,
301
+ .vibeflow-popover button.btn-screenshot:hover { background: #1e293b; color: #94a3b8; }
302
+ .vibeflow-popover button:disabled,
303
+ .modal-footer button:disabled {
304
+ opacity: 0.45;
305
+ cursor: not-allowed;
306
+ }
307
+
308
+ /* \u2500\u2500 Corner trigger button (bottom-right icon) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
309
+ /* Design reference: v2/docs/design-proposal/overlay.html (.ps-trigger) */
310
+ .vibeflow-corner-trigger {
311
+ position: fixed;
312
+ bottom: 20px;
313
+ right: 20px;
314
+ width: 44px;
315
+ height: 44px;
316
+ background: #2563eb;
317
+ color: #ffffff;
318
+ border: none;
319
+ border-radius: 12px;
320
+ font-size: 20px;
321
+ line-height: 1;
322
+ cursor: pointer;
323
+ pointer-events: auto;
324
+ display: flex;
325
+ align-items: center;
326
+ justify-content: center;
327
+ box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
328
+ transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
329
+ user-select: none;
330
+ }
331
+
332
+ .vibeflow-corner-trigger:hover {
333
+ background: #2563eb;
334
+ box-shadow: 0 6px 24px rgba(37, 99, 235, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
335
+ transform: translateY(-1px);
336
+ }
337
+
338
+ .vibeflow-corner-trigger:active {
339
+ transform: translateY(0);
340
+ }
341
+
342
+ .vibeflow-corner-trigger.annotating {
343
+ background: #d97706;
344
+ box-shadow: 0 4px 20px rgba(217, 119, 6, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
345
+ }
346
+
347
+ .vibeflow-corner-trigger.annotating:hover {
348
+ background: #b45309;
349
+ box-shadow: 0 6px 24px rgba(217, 119, 6, 0.8), 0 2px 8px rgba(0, 0, 0, 0.4);
350
+ }
351
+
352
+ .vibeflow-corner-trigger.saved-flash {
353
+ background: #16a34a;
354
+ box-shadow: 0 4px 20px rgba(22, 163, 74, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
355
+ }
356
+
357
+ .vibeflow-corner-trigger.disconnected {
358
+ background: #374151;
359
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
360
+ }
361
+
362
+ .vibeflow-corner-trigger.disconnected:hover {
363
+ background: #4b5563;
364
+ }
365
+
366
+ /* Holding (long-press unlocks drag) \u2014 pulsing ring animation */
367
+ .vibeflow-corner-trigger.trigger-holding {
368
+ cursor: grab;
369
+ box-shadow: 0 0 0 3px rgba(99, 132, 241, 0.6), 0 4px 20px rgba(37, 99, 235, 0.5);
370
+ animation: trigger-hold-pulse 0.6s ease-out;
371
+ }
372
+
373
+ @keyframes trigger-hold-pulse {
374
+ 0% { box-shadow: 0 0 0 0 rgba(99, 132, 241, 0.8), 0 4px 20px rgba(37, 99, 235, 0.5); }
375
+ 100% { box-shadow: 0 0 0 8px rgba(99, 132, 241, 0), 0 4px 20px rgba(37, 99, 235, 0.5); }
376
+ }
377
+
378
+ /* Dragging \u2014 no hover effects, move cursor, full-opacity with bright glow */
379
+ .vibeflow-corner-trigger.trigger-dragging {
380
+ cursor: grabbing !important;
381
+ transform: scale(1.15);
382
+ background: #3b82f6;
383
+ box-shadow: 0 0 0 3px #fff, 0 8px 32px rgba(37, 99, 235, 0.9), 0 4px 16px rgba(0, 0, 0, 0.5);
384
+ transition: none;
385
+ opacity: 1;
386
+ }
387
+
388
+ /* Task count badge on the corner trigger */
389
+ .vibeflow-trigger-badge {
390
+ position: absolute;
391
+ top: -6px;
392
+ right: -6px;
393
+ min-width: 18px;
394
+ height: 18px;
395
+ background: #ef4444;
396
+ color: #fff;
397
+ font-size: 10px;
398
+ font-weight: 700;
399
+ border-radius: 9px;
400
+ display: flex;
401
+ align-items: center;
402
+ justify-content: center;
403
+ padding: 0 4px;
404
+ border: 2px solid #0f172a;
405
+ pointer-events: none;
406
+ }
407
+
408
+ /* \u2500\u2500 Sidebar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
409
+ .vibeflow-sidebar {
410
+ position: fixed;
411
+ right: 0;
412
+ top: 0;
413
+ width: 360px;
414
+ height: 100vh;
415
+ background: #060d1a;
416
+ color: #e2e8f0;
417
+ border-left: 1px solid #1e293b;
418
+ overflow-y: auto;
419
+ padding: 16px;
420
+ box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
421
+ pointer-events: auto;
422
+ transform: translateX(100%);
423
+ transition: transform 0.2s ease;
424
+ }
425
+
426
+ .vibeflow-sidebar.open { transform: translateX(0); }
427
+
428
+ .vibeflow-sidebar h3 {
429
+ margin: 0 0 12px;
430
+ font-size: 16px;
431
+ font-weight: 600;
432
+ color: #f1f5f9;
433
+ display: flex;
434
+ align-items: center;
435
+ justify-content: space-between;
436
+ }
437
+
438
+ .sidebar-close {
439
+ background: none;
440
+ border: none;
441
+ color: #94a3b8;
442
+ font-size: 18px;
443
+ cursor: pointer;
444
+ padding: 2px 6px;
445
+ border-radius: 4px;
446
+ }
447
+
448
+ .sidebar-close:hover { background: #1e293b; color: #e2e8f0; }
449
+
450
+ /* Project name label shown below the sidebar heading \u2014 source: sidebar.ts \u2192 refreshSidebar() */
451
+ .sidebar-project-name {
452
+ font-size: 11px;
453
+ font-weight: 500;
454
+ color: #60a5fa;
455
+ margin: -8px 0 10px;
456
+ white-space: nowrap;
457
+ overflow: hidden;
458
+ text-overflow: ellipsis;
459
+ }
460
+
461
+ .sidebar-add-btn {
462
+ background: #1e3a5f;
463
+ border: 1px solid #2563eb50;
464
+ color: #60a5fa;
465
+ font-size: 16px;
466
+ font-weight: 700;
467
+ line-height: 1;
468
+ width: 24px;
469
+ height: 24px;
470
+ border-radius: 6px;
471
+ cursor: pointer;
472
+ display: flex;
473
+ align-items: center;
474
+ justify-content: center;
475
+ flex-shrink: 0;
476
+ margin-left: auto;
477
+ transition: background 0.15s, border-color 0.15s;
478
+ }
479
+
480
+ .sidebar-add-btn:hover {
481
+ background: #1e40af;
482
+ border-color: #3b82f6;
483
+ }
484
+
485
+ .empty-msg { color: #64748b; font-size: 14px; padding: 8px 0; }
486
+
487
+ .task-card {
488
+ margin: 8px 0;
489
+ padding: 11px 13px;
490
+ border: 1px solid #1e293b;
491
+ border-radius: 10px;
492
+ background: #0d1829;
493
+ cursor: pointer;
494
+ transition: border-color 0.12s, background 0.12s, box-shadow 0.12s, transform 0.12s;
495
+ position: relative;
496
+ display: flex;
497
+ flex-direction: column;
498
+ gap: 7px;
499
+ }
500
+
501
+ .task-card:hover {
502
+ border-color: #1e3a5f;
503
+ background: #0f1f35;
504
+ box-shadow: 0 4px 16px rgba(0,0,0,0.3);
505
+ transform: translateY(-1px);
506
+ }
507
+
508
+ .task-card-header {
509
+ display: flex;
510
+ align-items: center;
511
+ gap: 6px;
512
+ margin-bottom: 4px;
513
+ }
514
+
515
+ /* Status badges \u2014 showcase: overlay-showcase.html \u2192 [data-vibeflow-id="showcase-status-badges"] */
516
+ .status-badge {
517
+ display: inline-block;
518
+ padding: 1px 6px;
519
+ border-radius: 3px;
520
+ font-size: 10px;
521
+ font-weight: 600;
522
+ text-transform: uppercase;
523
+ border: 1px solid;
524
+ }
525
+
526
+ .status-todo { color: #f59e0b; border-color: #f59e0b; background: rgba(245,158,11,0.1); }
527
+ .status-in-progress { color: #3b82f6; border-color: #3b82f6; background: rgba(59,130,246,0.1); }
528
+ .status-done { color: #22c55e; border-color: #22c55e; background: rgba(34,197,94,0.1); }
529
+ .status-backlog { color: #94a3b8; border-color: #94a3b8; background: rgba(148,163,184,0.1); }
530
+ .status-review { color: #a855f7; border-color: #a855f7; background: rgba(168,85,247,0.1); }
531
+
532
+ /* Type badges \u2014 showcase: overlay-showcase.html \u2192 [data-vibeflow-id="showcase-status-badges"] */
533
+ .type-badge {
534
+ display: inline-block;
535
+ padding: 1px 5px;
536
+ border-radius: 3px;
537
+ font-size: 9px;
538
+ font-weight: 700;
539
+ letter-spacing: 0.04em;
540
+ text-transform: uppercase;
541
+ border: 1px solid;
542
+ flex-shrink: 0;
543
+ line-height: 1.5;
544
+ }
545
+
546
+ .type-badge-task { color: #94a3b8; border-color: rgba(148,163,184,0.2); background: rgba(148,163,184,0.1); }
547
+ .type-badge-bug { color: #f87171; border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.12); }
548
+ .type-badge-research { color: #c084fc; border-color: rgba(139,92,246,0.2); background: rgba(192,132,252,0.12); }
549
+
550
+ .task-title {
551
+ font-size: 12px;
552
+ font-weight: 600;
553
+ color: #ffffff;
554
+ margin: 4px 0 2px;
555
+ }
556
+
557
+ .task-selector {
558
+ font-size: 11px;
559
+ color: #64748b;
560
+ font-family: 'SF Mono', 'Fira Code', monospace;
561
+ }
562
+
563
+ .task-url-badge {
564
+ font-size: 10px;
565
+ color: #64748b;
566
+ background: #1e293b;
567
+ border: 1px solid #334155;
568
+ border-radius: 3px;
569
+ padding: 1px 5px;
570
+ margin-left: auto;
571
+ font-family: 'SF Mono', 'Fira Code', monospace;
572
+ }
573
+
574
+ .task-description {
575
+ margin: 6px 0 0;
576
+ font-size: 10px;
577
+ color: #64748b;
578
+ line-height: 1.5;
579
+ display: -webkit-box;
580
+ -webkit-line-clamp: 2;
581
+ -webkit-box-orient: vertical;
582
+ overflow: hidden;
583
+ text-overflow: ellipsis;
584
+ }
585
+
586
+ .task-card .task-actions {
587
+ display: flex;
588
+ gap: 5px;
589
+ margin-top: 8px;
590
+ }
591
+
592
+ .task-watermark {
593
+ position: absolute;
594
+ top: 4px;
595
+ right: 8px;
596
+ font-size: 16px;
597
+ opacity: 0.3;
598
+ pointer-events: none;
599
+ user-select: none;
600
+ }
601
+
602
+ .task-card .task-actions button {
603
+ padding: 2px 8px;
604
+ font-size: 11px;
605
+ border-radius: 4px;
606
+ background: #334155;
607
+ border: 1px solid #475569;
608
+ color: #cbd5e1;
609
+ cursor: pointer;
610
+ }
611
+
612
+ .task-card .task-actions button:hover { background: #475569; }
613
+ .task-card .task-actions button.done-btn { color: #4ade80; border-color: #4ade80; }
614
+ .task-card .task-actions button.delete-btn { color: #f87171; border-color: #f87171; }
615
+ .task-card .task-actions button.edit-btn { color: #93c5fd; border-color: #93c5fd; }
616
+
617
+ /* \u2500\u2500 Context menu \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
618
+ .vibeflow-context-menu {
619
+ position: fixed;
620
+ background: #1e293b;
621
+ border: 1px solid #334155;
622
+ border-radius: 8px;
623
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
624
+ min-width: 200px;
625
+ pointer-events: auto;
626
+ padding: 4px;
627
+ }
628
+
629
+ .vibeflow-context-menu button {
630
+ display: block;
631
+ width: 100%;
632
+ text-align: left;
633
+ padding: 8px 12px;
634
+ border: none;
635
+ background: none;
636
+ color: #e2e8f0;
637
+ font-size: 13px;
638
+ font-family: system-ui, sans-serif;
639
+ cursor: pointer;
640
+ border-radius: 4px;
641
+ }
642
+
643
+ .vibeflow-context-menu button:hover { background: #334155; }
644
+
645
+ .vibeflow-context-menu .menu-icon {
646
+ display: inline-block;
647
+ width: 18px;
648
+ text-align: center;
649
+ margin-right: 8px;
650
+ }
651
+
652
+ /* \u2500\u2500 Screenshot preview in popover \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
653
+ .screenshot-preview img {
654
+ display: block;
655
+ max-width: 100%;
656
+ border-radius: 4px;
657
+ margin-top: 6px;
658
+ margin-bottom: 6px;
659
+ border: 1px solid #334155;
660
+ }
661
+
662
+ /* \u2500\u2500 Task indicators (badges on annotated elements) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
663
+ .vibeflow-indicators {
664
+ position: fixed;
665
+ inset: 0;
666
+ pointer-events: none;
667
+ z-index: 5;
668
+ }
669
+
670
+ .vibeflow-task-indicator {
671
+ position: fixed;
672
+ width: 20px;
673
+ height: 20px;
674
+ border-radius: 50%;
675
+ background: #ef4444;
676
+ color: #fff;
677
+ font-size: 10px;
678
+ font-weight: 700;
679
+ display: flex;
680
+ align-items: center;
681
+ justify-content: center;
682
+ pointer-events: auto;
683
+ cursor: pointer;
684
+ border: 2px solid #0f172a;
685
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
686
+ transform-origin: center;
687
+ transition: transform 0.15s;
688
+ user-select: none;
689
+ line-height: 1;
690
+ }
691
+
692
+ .vibeflow-task-indicator.all-done {
693
+ background: #22c55e;
694
+ font-size: 12px;
695
+ }
696
+
697
+ .vibeflow-task-indicator:hover { transform: scale(1.3); }
698
+
699
+ /* \u2500\u2500 Task indicator tooltip \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
700
+ .vibeflow-task-tooltip {
701
+ position: fixed;
702
+ background: #1e293b;
703
+ border: 1px solid #334155;
704
+ border-radius: 10px;
705
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
706
+ padding: 8px;
707
+ min-width: 240px;
708
+ max-width: 320px;
709
+ max-height: 400px;
710
+ overflow-y: auto;
711
+ pointer-events: auto;
712
+ z-index: 20;
713
+ }
714
+
715
+ .vibeflow-task-tooltip .task-card {
716
+ margin: 4px 0;
717
+ }
718
+
719
+ .vibeflow-task-tooltip .task-card:first-child {
720
+ margin-top: 0;
721
+ }
722
+
723
+ /* \u2500\u2500 Tooltip close button (shown when tooltip is pinned) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
724
+ .tooltip-close-btn {
725
+ position: absolute;
726
+ top: 6px;
727
+ right: 6px;
728
+ background: none;
729
+ border: none;
730
+ color: #64748b;
731
+ font-size: 14px;
732
+ cursor: pointer;
733
+ padding: 2px 5px;
734
+ border-radius: 3px;
735
+ line-height: 1;
736
+ pointer-events: auto;
737
+ }
738
+
739
+ .tooltip-close-btn:hover { background: #334155; color: #e2e8f0; }
740
+
741
+ .vibeflow-task-tooltip { position: relative; }
742
+
743
+ /* \u2500\u2500 Sidebar legend / filter toggles \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
744
+ .sidebar-legend {
745
+ display: flex;
746
+ gap: 6px;
747
+ flex-wrap: wrap;
748
+ margin-bottom: 12px;
749
+ padding-bottom: 10px;
750
+ border-bottom: 1px solid #1e293b;
751
+ }
752
+
753
+ .legend-toggle {
754
+ display: flex;
755
+ align-items: center;
756
+ gap: 4px;
757
+ padding: 3px 10px;
758
+ border-radius: 4px;
759
+ font-size: 11px;
760
+ font-weight: 500;
761
+ cursor: pointer;
762
+ border: 1px solid #334155;
763
+ background: #0f172a;
764
+ color: #64748b;
765
+ transition: all 0.1s;
766
+ pointer-events: auto;
767
+ line-height: 1.4;
768
+ }
769
+
770
+ .legend-toggle.active {
771
+ background: #1e293b;
772
+ color: #e2e8f0;
773
+ border-color: #475569;
774
+ }
775
+
776
+ .legend-toggle:hover { background: #1e293b; color: #cbd5e1; }
777
+
778
+ /* \u2500\u2500 Page / variant switcher \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
779
+ .vibeflow-page-switcher {
780
+ position: fixed;
781
+ bottom: 16px;
782
+ left: 50%;
783
+ transform: translateX(-50%);
784
+ display: flex;
785
+ align-items: center;
786
+ gap: 4px;
787
+ background: #0f172a;
788
+ border: 1px solid #1e293b;
789
+ border-radius: 8px;
790
+ padding: 5px 10px;
791
+ font-size: 12px;
792
+ pointer-events: auto;
793
+ user-select: none;
794
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
795
+ max-width: 80vw;
796
+ overflow-x: auto;
797
+ }
798
+
799
+ .page-switcher-label {
800
+ color: #64748b;
801
+ margin-right: 4px;
802
+ flex-shrink: 0;
803
+ }
804
+
805
+ .page-tab {
806
+ color: #94a3b8;
807
+ text-decoration: none;
808
+ padding: 3px 8px;
809
+ border-radius: 5px;
810
+ white-space: nowrap;
811
+ transition: background 0.15s, color 0.15s;
812
+ }
813
+
814
+ .page-tab:hover { background: #1e293b; color: #e2e8f0; }
815
+
816
+ .page-tab.active {
817
+ background: #1e40af;
818
+ color: #e2e8f0;
819
+ font-weight: 600;
820
+ }
821
+
822
+ /* \u2500\u2500 Full-screen edit modal \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
823
+ .vibeflow-modal-backdrop {
824
+ position: fixed;
825
+ inset: 0;
826
+ background: rgba(0, 0, 0, 0.7);
827
+ display: flex;
828
+ align-items: center;
829
+ justify-content: center;
830
+ pointer-events: auto;
831
+ z-index: 10;
832
+ }
833
+
834
+ .vibeflow-modal {
835
+ background: #060d18;
836
+ border: 1px solid #1e293b;
837
+ border-radius: 12px;
838
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
839
+ width: min(860px, 92vw);
840
+ height: min(620px, 88vh);
841
+ display: flex;
842
+ flex-direction: column;
843
+ pointer-events: auto;
844
+ overflow: hidden;
845
+ }
846
+
847
+ /* Narrower modal for the overlay add task (kanban-style) */
848
+ .vibeflow-modal.overlay-add-modal {
849
+ width: min(540px, 92vw);
850
+ height: auto;
851
+ max-height: min(600px, 88vh);
852
+ }
853
+
854
+ .overlay-modal-header {
855
+ background: #060d18;
856
+ border-bottom: 1px solid #1e293b;
857
+ }
858
+
859
+ .modal-header {
860
+ display: flex;
861
+ align-items: center;
862
+ gap: 10px;
863
+ padding: 12px 16px 10px;
864
+ border-bottom: 1px solid #1e293b;
865
+ flex-shrink: 0;
866
+ background: #060d18;
867
+ }
868
+
869
+ .modal-header input[type="text"] {
870
+ flex: 1;
871
+ padding: 6px 10px;
872
+ background: #0f172a;
873
+ border: 1px solid #1e293b;
874
+ border-radius: 6px;
875
+ color: #e2e8f0;
876
+ font-size: 15px;
877
+ font-weight: 500;
878
+ font-family: system-ui, sans-serif;
879
+ text-align: center;
880
+ }
881
+
882
+ .modal-header input[type="text"]:focus {
883
+ outline: none;
884
+ border-color: #3b82f6;
885
+ box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
886
+ }
887
+
888
+ .modal-header select {
889
+ padding: 6px 8px;
890
+ background: #0f172a;
891
+ border: 1px solid #1e293b;
892
+ border-radius: 6px;
893
+ color: #e2e8f0;
894
+ font-size: 13px;
895
+ font-family: system-ui, sans-serif;
896
+ cursor: pointer;
897
+ }
898
+
899
+ .modal-tabs {
900
+ display: flex;
901
+ gap: 0;
902
+ padding: 0 16px;
903
+ border-bottom: 1px solid #334155;
904
+ flex-shrink: 0;
905
+ }
906
+
907
+ .modal-tab {
908
+ padding: 8px 16px;
909
+ font-size: 13px;
910
+ color: #64748b;
911
+ border-bottom: 2px solid transparent;
912
+ cursor: pointer;
913
+ user-select: none;
914
+ margin-bottom: -1px;
915
+ }
916
+
917
+ .modal-tab:hover { color: #94a3b8; }
918
+
919
+ .modal-tab.active {
920
+ color: #60a5fa;
921
+ border-bottom-color: #3b82f6;
922
+ font-weight: 500;
923
+ }
924
+
925
+ .modal-body {
926
+ flex: 1;
927
+ display: flex;
928
+ flex-direction: column;
929
+ overflow: hidden;
930
+ padding: 12px 16px;
931
+ gap: 8px;
932
+ }
933
+
934
+ .modal-editor-pane,
935
+ .modal-preview-pane {
936
+ flex: 1;
937
+ overflow: auto;
938
+ }
939
+
940
+ .modal-editor-pane textarea {
941
+ width: 100%;
942
+ height: 100%;
943
+ min-height: 0;
944
+ background: #0f172a;
945
+ border: 1px solid #334155;
946
+ border-radius: 6px;
947
+ color: #e2e8f0;
948
+ font-size: 13px;
949
+ font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
950
+ line-height: 1.6;
951
+ padding: 12px;
952
+ resize: none;
953
+ outline: none;
954
+ }
955
+
956
+ .modal-editor-pane textarea:focus {
957
+ border-color: #3b82f6;
958
+ box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
959
+ }
960
+
961
+ .modal-preview-pane {
962
+ background: #0f172a;
963
+ border: 1px solid #334155;
964
+ border-radius: 6px;
965
+ padding: 16px;
966
+ color: #e2e8f0;
967
+ font-size: 14px;
968
+ line-height: 1.7;
969
+ }
970
+
971
+ .modal-preview-pane h1,
972
+ .modal-preview-pane h2,
973
+ .modal-preview-pane h3 { font-weight: 700; margin: 0.8em 0 0.3em; }
974
+ .modal-preview-pane h1 { font-size: 1.4em; color: #f1f5f9; }
975
+ .modal-preview-pane h2 { font-size: 1.2em; color: #f1f5f9; }
976
+ .modal-preview-pane h3 { font-size: 1.05em; color: #cbd5e1; }
977
+ .modal-preview-pane p { margin: 0.5em 0; }
978
+ .modal-preview-pane strong { font-weight: 700; color: #f1f5f9; }
979
+ .modal-preview-pane em { font-style: italic; color: #94a3b8; }
980
+ .modal-preview-pane code {
981
+ font-family: 'Menlo', monospace;
982
+ font-size: 12px;
983
+ background: #1e293b;
984
+ padding: 1px 5px;
985
+ border-radius: 3px;
986
+ color: #7dd3fc;
987
+ }
988
+ .modal-preview-pane pre {
989
+ background: #1e293b;
990
+ border-radius: 6px;
991
+ padding: 10px 12px;
992
+ overflow-x: auto;
993
+ margin: 0.6em 0;
994
+ }
995
+ .modal-preview-pane pre code {
996
+ background: none;
997
+ padding: 0;
998
+ color: #93c5fd;
999
+ font-size: 12px;
1000
+ line-height: 1.5;
1001
+ }
1002
+ .modal-preview-pane ul, .modal-preview-pane ol {
1003
+ padding-left: 20px;
1004
+ margin: 0.4em 0;
1005
+ }
1006
+ .modal-preview-pane li { margin: 0.2em 0; }
1007
+ .modal-preview-pane hr {
1008
+ border: none;
1009
+ border-top: 1px solid #334155;
1010
+ margin: 0.8em 0;
1011
+ }
1012
+ .modal-preview-empty {
1013
+ color: #475569;
1014
+ font-style: italic;
1015
+ }
1016
+
1017
+ .modal-footer {
1018
+ display: flex;
1019
+ align-items: center;
1020
+ justify-content: space-between;
1021
+ gap: 8px;
1022
+ padding: 10px 16px 14px;
1023
+ border-top: 1px solid #334155;
1024
+ flex-shrink: 0;
1025
+ }
1026
+
1027
+ .modal-footer-left { display: flex; gap: 8px; align-items: center; }
1028
+ .modal-footer-right { display: flex; gap: 8px; align-items: center; }
1029
+
1030
+ /* Modal footer buttons */
1031
+ .modal-footer button {
1032
+ padding: 7px 18px;
1033
+ border-radius: 7px;
1034
+ font-size: 13px;
1035
+ font-family: system-ui, sans-serif;
1036
+ font-weight: 500;
1037
+ cursor: pointer;
1038
+ border: 1px solid #334155;
1039
+ background: #1e293b;
1040
+ color: #cbd5e1;
1041
+ transition: background 0.12s, border-color 0.12s;
1042
+ }
1043
+
1044
+ .modal-footer button:hover { background: #334155; }
1045
+
1046
+ /* Button variants \u2014 showcase: overlay-showcase.html \u2192 [data-vibeflow-id="showcase-buttons"] */
1047
+ .modal-footer button.btn-primary {
1048
+ background: #2563eb;
1049
+ color: #fff;
1050
+ border-color: #1d4ed8;
1051
+ padding: 7px 24px;
1052
+ }
1053
+ .modal-footer button.btn-primary:hover { background: #1d4ed8; }
1054
+
1055
+ .modal-footer button.btn-ghost {
1056
+ background: transparent;
1057
+ border-color: #334155;
1058
+ color: #64748b;
1059
+ }
1060
+ .modal-footer button.btn-ghost:hover { background: #1e293b; color: #94a3b8; border-color: #475569; }
1061
+
1062
+ .modal-footer button.btn-screenshot {
1063
+ font-size: 12px;
1064
+ padding: 6px 14px;
1065
+ background: transparent;
1066
+ border: 1px dashed #334155;
1067
+ color: #64748b;
1068
+ }
1069
+ .modal-footer button.btn-screenshot:hover { border-color: #475569; color: #94a3b8; background: #1e293b; }
1070
+
1071
+ /* \u2500\u2500 Screenshot section in edit modal \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1072
+ .modal-screenshot-section {
1073
+ padding: 0 16px 10px;
1074
+ flex-shrink: 0;
1075
+ }
1076
+
1077
+ /* Screenshot components \u2014 showcase: overlay-showcase.html \u2192 [data-vibeflow-id="showcase-screenshots"] */
1078
+ .screenshot-container {
1079
+ position: relative;
1080
+ display: inline-flex;
1081
+ border-radius: 8px;
1082
+ overflow: hidden;
1083
+ border: 1px solid #334155;
1084
+ background: #0f172a;
1085
+ max-width: 100%;
1086
+ }
1087
+
1088
+ .screenshot-container img {
1089
+ display: block;
1090
+ max-width: 100%;
1091
+ max-height: 140px;
1092
+ object-fit: contain;
1093
+ }
1094
+
1095
+ .screenshot-remove-overlay {
1096
+ position: absolute;
1097
+ inset: 0;
1098
+ background: rgba(0, 0, 0, 0.55);
1099
+ opacity: 0;
1100
+ transition: opacity 0.15s;
1101
+ display: flex;
1102
+ align-items: center;
1103
+ justify-content: center;
1104
+ pointer-events: none;
1105
+ }
1106
+
1107
+ .screenshot-container:hover .screenshot-remove-overlay { opacity: 1; pointer-events: auto; }
1108
+
1109
+ .screenshot-remove-overlay button {
1110
+ background: rgba(239, 68, 68, 0.9);
1111
+ border: none;
1112
+ color: #fff;
1113
+ padding: 5px 12px;
1114
+ border-radius: 6px;
1115
+ font-size: 12px;
1116
+ font-weight: 500;
1117
+ cursor: pointer;
1118
+ }
1119
+
1120
+ .screenshot-remove-overlay button:hover { background: #ef4444; }
1121
+
1122
+ /* \u2500\u2500 Screenshot thumbnail in sidebar task cards \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1123
+ .task-screenshot-thumb {
1124
+ margin-top: 6px;
1125
+ border-radius: 5px;
1126
+ overflow: hidden;
1127
+ border: 1px solid #1e293b;
1128
+ position: relative;
1129
+ }
1130
+
1131
+ .task-screenshot-thumb img {
1132
+ display: block;
1133
+ width: 100%;
1134
+ max-height: 72px;
1135
+ object-fit: cover;
1136
+ object-position: top;
1137
+ }
1138
+
1139
+ .task-screenshot-thumb:hover .screenshot-remove-overlay { opacity: 1; pointer-events: auto; }
1140
+
1141
+ /* \u2500\u2500 In-progress task card \u2014 blue highlight + spinner \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1142
+ .task-card.in-progress {
1143
+ border-color: rgba(59, 130, 246, 0.4);
1144
+ background: rgba(59, 130, 246, 0.08);
1145
+ }
1146
+
1147
+ .task-card.in-progress:hover {
1148
+ border-color: rgba(59, 130, 246, 0.6);
1149
+ background: rgba(59, 130, 246, 0.12);
1150
+ }
1151
+
1152
+ @keyframes vibeflow-spin {
1153
+ to { transform: rotate(360deg); }
1154
+ }
1155
+
1156
+ .task-spinner {
1157
+ display: inline-block;
1158
+ width: 11px;
1159
+ height: 11px;
1160
+ border: 2px solid rgba(59, 130, 246, 0.25);
1161
+ border-top-color: #3b82f6;
1162
+ border-radius: 50%;
1163
+ animation: vibeflow-spin 0.7s linear infinite;
1164
+ flex-shrink: 0;
1165
+ }
1166
+
1167
+ /* \u2500\u2500 Other-pages hint in sidebar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1168
+ .other-pages-hint {
1169
+ text-align: center;
1170
+ font-size: 11px;
1171
+ color: #475569;
1172
+ padding: 8px 0 4px;
1173
+ border-top: 1px solid #1e293b;
1174
+ margin-top: 8px;
1175
+ }
1176
+
1177
+ /* \u2500\u2500 Source pointer row in popover \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1178
+ /* Shown below the popover header when Tier 1 source info is available. */
1179
+ .popover-source {
1180
+ display: flex;
1181
+ align-items: center;
1182
+ gap: 6px;
1183
+ padding: 4px 14px;
1184
+ background: #0a1628;
1185
+ border-bottom: 1px solid #1e293b;
1186
+ font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
1187
+ font-size: 10px;
1188
+ color: #4b6584;
1189
+ min-height: 0;
1190
+ line-height: 1.4;
1191
+ }
1192
+
1193
+ .popover-source:empty { display: none; }
1194
+
1195
+ .popover-source a {
1196
+ color: #38bdf8;
1197
+ text-decoration: none;
1198
+ }
1199
+
1200
+ .popover-source a:hover { text-decoration: underline; }
1201
+
1202
+ .popover-source-sep {
1203
+ color: #334155;
1204
+ }
1205
+
1206
+ /* \u2500\u2500 Source row in modal footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1207
+ /* Minimalistic file:line label between the left and right footer groups. */
1208
+ .modal-source-row {
1209
+ flex: 1;
1210
+ display: flex;
1211
+ align-items: center;
1212
+ justify-content: center;
1213
+ gap: 4px;
1214
+ font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
1215
+ font-size: 10px;
1216
+ color: #475569;
1217
+ overflow: hidden;
1218
+ }
1219
+
1220
+ .modal-source-label {
1221
+ white-space: nowrap;
1222
+ overflow: hidden;
1223
+ text-overflow: ellipsis;
1224
+ max-width: 220px;
1225
+ }
1226
+
1227
+ .modal-source-link {
1228
+ color: #38bdf8;
1229
+ text-decoration: none;
1230
+ font-size: 11px;
1231
+ flex-shrink: 0;
1232
+ }
1233
+
1234
+ .modal-source-link:hover { opacity: 0.75; }
1235
+
1236
+ /* \u2500\u2500 Inspect Element Modal \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1237
+ .vibeflow-inspect-modal {
1238
+ background: #060d1a;
1239
+ border: 1px solid #1e293b;
1240
+ border-radius: 14px;
1241
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
1242
+ width: min(640px, 92vw);
1243
+ display: flex;
1244
+ flex-direction: column;
1245
+ pointer-events: auto;
1246
+ overflow: hidden;
1247
+ max-height: 80vh;
1248
+ }
1249
+
1250
+ .inspect-header {
1251
+ display: flex;
1252
+ align-items: center;
1253
+ justify-content: space-between;
1254
+ padding: 12px 16px;
1255
+ background: #080f1e;
1256
+ border-bottom: 1px solid #1e293b;
1257
+ flex-shrink: 0;
1258
+ }
1259
+
1260
+ .inspect-heading {
1261
+ display: flex;
1262
+ align-items: center;
1263
+ gap: 8px;
1264
+ }
1265
+
1266
+ .inspect-tag {
1267
+ font-family: 'Menlo', 'Monaco', monospace;
1268
+ font-size: 12px;
1269
+ color: #7dd3fc;
1270
+ background: rgba(56, 189, 248, 0.08);
1271
+ border: 1px solid rgba(56, 189, 248, 0.2);
1272
+ border-radius: 4px;
1273
+ padding: 1px 6px;
1274
+ }
1275
+
1276
+ .inspect-title {
1277
+ font-size: 12px;
1278
+ font-weight: 600;
1279
+ color: #cbd5e1;
1280
+ }
1281
+
1282
+ .inspect-close {
1283
+ background: none;
1284
+ border: none;
1285
+ color: #64748b;
1286
+ font-size: 14px;
1287
+ cursor: pointer;
1288
+ padding: 2px 6px;
1289
+ border-radius: 4px;
1290
+ line-height: 1;
1291
+ transition: background 0.1s, color 0.1s;
1292
+ }
1293
+
1294
+ .inspect-close:hover { background: #334155; color: #e2e8f0; }
1295
+
1296
+ .inspect-rows {
1297
+ padding: 10px 14px;
1298
+ display: flex;
1299
+ flex-direction: column;
1300
+ gap: 5px;
1301
+ overflow-y: auto;
1302
+ flex: 1;
1303
+ }
1304
+
1305
+ .inspect-row {
1306
+ display: flex;
1307
+ align-items: baseline;
1308
+ gap: 8px;
1309
+ padding: 4px 0;
1310
+ border-bottom: 1px solid rgba(30, 41, 59, 0.55);
1311
+ }
1312
+
1313
+ .inspect-row:last-child { border-bottom: none; }
1314
+
1315
+ .inspect-row-label {
1316
+ font-size: 10px;
1317
+ font-weight: 600;
1318
+ color: #475569;
1319
+ text-transform: uppercase;
1320
+ letter-spacing: 0.04em;
1321
+ min-width: 82px;
1322
+ flex-shrink: 0;
1323
+ }
1324
+
1325
+ .inspect-row-value {
1326
+ font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
1327
+ font-size: 10px;
1328
+ color: #cbd5e1;
1329
+ word-break: break-all;
1330
+ flex: 1;
1331
+ line-height: 1.5;
1332
+ background: rgba(5, 13, 26, 0.9);
1333
+ border: 1px solid #1e293b;
1334
+ border-radius: 3px;
1335
+ padding: 2px 6px;
1336
+ }
1337
+
1338
+ .inspect-copy-btn,
1339
+ .vibeflow-inspect-modal a.inspect-copy-btn {
1340
+ background: none;
1341
+ border: 1px solid #334155;
1342
+ color: #64748b;
1343
+ font-size: 11px;
1344
+ padding: 2px 6px;
1345
+ border-radius: 4px;
1346
+ cursor: pointer;
1347
+ line-height: 1.4;
1348
+ flex-shrink: 0;
1349
+ text-decoration: none;
1350
+ transition: background 0.1s, color 0.1s;
1351
+ }
1352
+
1353
+ .inspect-copy-btn:hover,
1354
+ .vibeflow-inspect-modal a.inspect-copy-btn:hover { background: #334155; color: #e2e8f0; }
1355
+
1356
+ .inspect-footer {
1357
+ padding: 10px 14px;
1358
+ border-top: 1px solid #1e293b;
1359
+ flex-shrink: 0;
1360
+ display: flex;
1361
+ justify-content: flex-end;
1362
+ }
1363
+
1364
+ .inspect-copy-all-btn {
1365
+ background: #2563eb;
1366
+ border: 1px solid #1d4ed8;
1367
+ color: #ffffff;
1368
+ font-size: 12px;
1369
+ font-weight: 500;
1370
+ padding: 5px 14px;
1371
+ border-radius: 6px;
1372
+ cursor: pointer;
1373
+ transition: background 0.12s, border-color 0.12s;
1374
+ }
1375
+
1376
+ .inspect-copy-all-btn:hover { background: #1d4ed8; border-color: #1e40af; }
1377
+
1378
+ /* \u2500\u2500 React Quality Badge (\u26A0 replaces drag-grip icon; color range by quality) \u2500\u2500\u2500\u2500 */
1379
+ @keyframes rq-pulse {
1380
+ 0%, 100% { opacity: 1; }
1381
+ 50% { opacity: 0.55; }
1382
+ }
1383
+
1384
+ /* 'none' \u2192 red: production React build, no fiber context */
1385
+ .popover-drag-handle--quality-none {
1386
+ color: #ef4444;
1387
+ cursor: pointer;
1388
+ animation: rq-pulse 2s ease-in-out infinite;
1389
+ }
1390
+ .popover-drag-handle--quality-none:hover { color: #fca5a5; background: rgba(239, 68, 68, 0.12); animation: none; }
1391
+
1392
+ /* 'partial' \u2192 amber: React with component name only, no source file */
1393
+ .popover-drag-handle--quality-partial {
1394
+ color: #f59e0b;
1395
+ cursor: pointer;
1396
+ animation: rq-pulse 3s ease-in-out infinite;
1397
+ }
1398
+ .popover-drag-handle--quality-partial:hover { color: #fcd34d; background: rgba(245, 158, 11, 0.12); animation: none; }
1399
+
1400
+ /* \u2500\u2500 React Quality Modal \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1401
+ .vibeflow-rq-overlay {
1402
+ position: fixed;
1403
+ inset: 0;
1404
+ background: rgba(2, 12, 27, 0.75);
1405
+ backdrop-filter: blur(6px);
1406
+ display: flex;
1407
+ align-items: center;
1408
+ justify-content: center;
1409
+ z-index: 10000;
1410
+ pointer-events: all;
1411
+ padding: 20px;
1412
+ }
1413
+ .vibeflow-rq-modal {
1414
+ background: #1e293b;
1415
+ border: 1px solid rgba(255,255,255,0.1);
1416
+ border-radius: 16px;
1417
+ width: 480px;
1418
+ max-width: 100%;
1419
+ max-height: 80vh;
1420
+ overflow-y: auto;
1421
+ position: relative;
1422
+ box-shadow: 0 24px 64px rgba(0,0,0,0.6);
1423
+ font-size: 13px;
1424
+ color: #e2e8f0;
1425
+ }
1426
+ .rq-close {
1427
+ position: absolute;
1428
+ top: 14px;
1429
+ right: 14px;
1430
+ background: transparent;
1431
+ border: none;
1432
+ color: rgba(255,255,255,0.4);
1433
+ cursor: pointer;
1434
+ font-size: 15px;
1435
+ line-height: 1;
1436
+ padding: 4px;
1437
+ }
1438
+ .rq-close:hover { color: rgba(255,255,255,0.8); }
1439
+ .rq-header { padding: 24px 24px 0; }
1440
+ .rq-heading {
1441
+ font-size: 15px;
1442
+ font-weight: 700;
1443
+ color: #f1f5f9;
1444
+ margin-bottom: 16px;
1445
+ }
1446
+ .rq-levels {
1447
+ display: flex;
1448
+ gap: 8px;
1449
+ margin-bottom: 0;
1450
+ }
1451
+ .rq-level {
1452
+ flex: 1;
1453
+ padding: 10px;
1454
+ border-radius: 10px;
1455
+ text-align: center;
1456
+ border: 1px solid rgba(255,255,255,0.06);
1457
+ background: rgba(255,255,255,0.02);
1458
+ }
1459
+ .rq-level--active {
1460
+ border-color: rgba(245,158,11,0.4);
1461
+ background: rgba(245,158,11,0.06);
1462
+ }
1463
+ .rq-level-icon { font-size: 18px; margin-bottom: 4px; }
1464
+ .rq-level-label { font-size: 11px; font-weight: 700; margin-bottom: 3px; }
1465
+ .rq-level-desc { font-size: 10px; color: rgba(255,255,255,0.45); line-height: 1.4; }
1466
+ .rq-body { padding: 16px 24px 4px; }
1467
+ .rq-section-title {
1468
+ font-size: 10px;
1469
+ font-weight: 700;
1470
+ color: rgba(255,255,255,0.35);
1471
+ text-transform: uppercase;
1472
+ letter-spacing: 0.06em;
1473
+ margin: 12px 0 8px;
1474
+ }
1475
+ .rq-feature {
1476
+ display: flex;
1477
+ align-items: flex-start;
1478
+ gap: 10px;
1479
+ margin-bottom: 8px;
1480
+ }
1481
+ .rq-feature-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
1482
+ .rq-feature-text strong { color: #f1f5f9; }
1483
+ .rq-feature-text span { color: rgba(255,255,255,0.55); }
1484
+ .rq-note {
1485
+ font-size: 12px;
1486
+ color: rgba(255,255,255,0.55);
1487
+ line-height: 1.6;
1488
+ background: rgba(255,255,255,0.03);
1489
+ border: 1px solid rgba(255,255,255,0.06);
1490
+ border-radius: 8px;
1491
+ padding: 10px 12px;
1492
+ margin: 8px 0;
1493
+ }
1494
+ .rq-note--amber {
1495
+ background: rgba(245,158,11,0.06);
1496
+ border-color: rgba(245,158,11,0.2);
1497
+ color: rgba(252,211,77,0.85);
1498
+ }
1499
+ .rq-note--success {
1500
+ background: rgba(74,222,128,0.06);
1501
+ border-color: rgba(74,222,128,0.2);
1502
+ color: rgba(74,222,128,0.9);
1503
+ }
1504
+ .rq-codeblock {
1505
+ background: #0f172a;
1506
+ border: 1px solid rgba(255,255,255,0.08);
1507
+ border-radius: 8px;
1508
+ padding: 12px 14px;
1509
+ margin: 8px 0;
1510
+ overflow-x: auto;
1511
+ font-family: 'SF Mono', 'Menlo', monospace;
1512
+ font-size: 11px;
1513
+ color: #7dd3fc;
1514
+ line-height: 1.7;
1515
+ white-space: pre;
1516
+ }
1517
+ .rq-footer {
1518
+ padding: 16px 24px;
1519
+ border-top: 1px solid rgba(255,255,255,0.06);
1520
+ display: flex;
1521
+ gap: 10px;
1522
+ justify-content: flex-end;
1523
+ }
1524
+ .rq-btn {
1525
+ padding: 9px 18px;
1526
+ border-radius: 8px;
1527
+ border: none;
1528
+ font-size: 13px;
1529
+ font-weight: 600;
1530
+ cursor: pointer;
1531
+ transition: background 0.12s;
1532
+ }
1533
+ .rq-btn-secondary {
1534
+ background: #334155;
1535
+ color: rgba(255,255,255,0.7);
1536
+ }
1537
+ .rq-btn-secondary:hover { background: #475569; }
1538
+ `,Vr=` .vibeflow-overlay-active * {
1539
+ cursor: crosshair !important;
1540
+ }
1541
+ .vibeflow-overlay-active .vibeflow-hover-highlight,
1542
+ .vibeflow-overlay-active [data-vibeflow-id]:hover,
1543
+ .vibeflow-overlay-active [data-testid]:hover {
1544
+ outline: 2px solid #3b82f6 !important;
1545
+ outline-offset: 2px !important;
1546
+ }
1547
+ .vibeflow-annotate-highlight {
1548
+ outline: 2px solid #f59e0b !important;
1549
+ outline-offset: 2px !important;
1550
+ background-color: rgba(245, 158, 11, 0.08) !important;
1551
+ }`;function bs(){let e=document.createElement("div");e.id="vibeflow-studio-root",e.style.pointerEvents="none",document.body.appendChild(e);let t=e.attachShadow({mode:"open"}),a=document.createElement("style");a.textContent=$r,t.appendChild(a);let r=document.createElement("style");return r.textContent=Vr,document.head.appendChild(r),{host:e,root:t}}function Ls(){try{let e=JSON.parse(localStorage.getItem(hs)??"{}");g.indicatorsVisible=e.indicatorsVisible===!0,g.sidebarShowDone=e.sidebarShowDone!==!1,g.showAllPages=e.showAllPages===!0,g.theme="dark",kp(g.theme)}catch{}}function kp(e){g.theme=e,g.host&&g.host.setAttribute("data-theme",e)}function Ss(e){document.addEventListener("mouseover",t=>ws(t,e),!0),document.addEventListener("mouseout",Is,!0)}function Cs(e){if(document.removeEventListener("mouseover",t=>ws(t,e),!0),document.removeEventListener("mouseout",Is,!0),g.hoverTarget){try{g.hoverTarget.classList.remove("vibeflow-hover-highlight")}catch{}g.hoverTarget=null}}function ws(e,t){let a=e.target;if(!(!a||a===document.documentElement||a===document.body)&&e.composedPath().indexOf(t)===-1&&g.hoverTarget!==a){if(g.hoverTarget)try{g.hoverTarget.classList.remove("vibeflow-hover-highlight")}catch{}g.hoverTarget=a;try{a.classList.add("vibeflow-hover-highlight")}catch{}}}function Is(e){let t=e.target;if(t===g.hoverTarget){try{t.classList.remove("vibeflow-hover-highlight")}catch{}g.hoverTarget=null}}function ks(e){if(zt(),!!e){g.annotateHighlightTarget=e;try{e.classList.add("vibeflow-annotate-highlight")}catch{}}}function zt(){if(g.annotateHighlightTarget){try{g.annotateHighlightTarget.classList.remove("vibeflow-annotate-highlight")}catch{}g.annotateHighlightTarget=null}}function b(e,t,...a){let r=document.createElement(e);if(t)for(let o of Object.keys(t))o==="className"?r.className=t[o]:o==="placeholder"?r.placeholder=t[o]:o==="type"?r.type=t[o]:o==="value"?r.value=t[o]:r.setAttribute(o,t[o]);for(let o of a)o!=null&&r.appendChild(typeof o=="string"?document.createTextNode(o):o);return r}function Gr(){if(PROTO_CONFIG.wsUrl){g.reconnectTimer&&(clearTimeout(g.reconnectTimer),g.reconnectTimer=null);try{g.ws=new WebSocket(PROTO_CONFIG.wsUrl)}catch{Ts();return}g.ws.onopen=()=>{g.reconnectAttempt=0,g.pingInterval&&clearInterval(g.pingInterval),g.pingInterval=setInterval(()=>{var e;((e=g.ws)==null?void 0:e.readyState)===WebSocket.OPEN&&g.ws.send(JSON.stringify({type:"ping"}))},ys)},g.ws.onmessage=e=>{var a,r,o,n;let t;try{t=JSON.parse(e.data)}catch{return}t.type!=="pong"&&(t.type==="reload"&&location.reload(),t.type==="tasks-updated"&&((r=(a=g).onTasksUpdatedMessage)==null||r.call(a)),(t.type==="task-changed"||t.type==="task-deleted")&&((n=(o=g).onTasksUpdatedMessage)==null||n.call(o)))},g.ws.onclose=()=>{g.pingInterval&&(clearInterval(g.pingInterval),g.pingInterval=null),Ts()},g.ws.onerror=()=>{var e;(e=g.ws)==null||e.close()}}}function Ts(){let e=Math.min(xs*Math.pow(2,g.reconnectAttempt),vs);g.reconnectAttempt++,g.reconnectTimer=setTimeout(Gr,e)}function Ps(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&(!g.ws||g.ws.readyState!==WebSocket.OPEN)&&(g.reconnectAttempt=0,Gr())})}function pt(){let e=PROTO_CONFIG.boardId?`${PROTO_CONFIG.apiUrl}?boardId=${encodeURIComponent(PROTO_CONFIG.boardId)}`:PROTO_CONFIG.apiUrl;fetch(e).then(t=>t.json()).then(t=>{var a,r;g.tasks=t.tasks??[],(r=(a=g).onTasksFetched)==null||r.call(a,g.tasks)}).catch(()=>{})}function jr(e,t,a,r,o,n,l,i){fetch(PROTO_CONFIG.apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:a,description:r,selector:e,cssSelector:t||null,url:location.pathname,status:o||void 0,file:(n==null?void 0:n.file)??null,line:(n==null?void 0:n.line)??null,col:(n==null?void 0:n.col)??null,component:(n==null?void 0:n.component)??null,type:l||null,annotatedElementText:i||null,...PROTO_CONFIG.boardId?{boardId:PROTO_CONFIG.boardId}:{}})}).then(s=>s.json()).then(s=>{s.success&&pt()}).catch(s=>console.error("[Vibeflow Studio]",s))}var Rs=PROTO_CONFIG.pagesUrl;function Es(){Rs&&fetch(Rs).then(e=>e.json()).then(e=>{g.pages=e.pages??[],Tp()}).catch(()=>{})}function Tp(){if(g.pageSwitcher&&(g.pageSwitcher.remove(),g.pageSwitcher=null),!g.root||g.pages.length<2)return;let e=location.pathname,t=b("div",{className:"vibeflow-page-switcher"});t.appendChild(b("span",{className:"page-switcher-label"},"Pages:"));for(let a of g.pages){let o=b("a",{className:"page-tab"+(a===e||e==="/"&&a==="/index.html"?" active":""),href:a},a.replace(/^\//,"").replace(/\.html$/,""));t.appendChild(o)}g.root.appendChild(t),g.pageSwitcher=t}var Ds=["data-testid","data-test","data-cy","data-test-id","data-task-id","data-id"];function Oa(e){let t=[],a=e,r=0;for(;a&&a!==document.body&&r<6;){let o=Rp(a);if(o){t.unshift(`#${o}`);break}let n=null,l=null;for(let c of Ds){let p=a.getAttribute(c);if(p){n=c,l=p;break}}if(n&&l){t.unshift(`[${n}="${l}"]`);break}let i=a.tagName.toLowerCase(),s=Array.from(a.classList).filter(c=>!/^[0-9a-f]{5,}/.test(c)&&!c.startsWith("vibeflow-")).slice(0,2);s.length>0&&(i+=`.${s.join(".")}`);let u=a.parentElement;if(u){let c=Array.from(u.children);c.filter(x=>x.tagName===a.tagName).length>1&&(i+=`:nth-child(${c.indexOf(a)+1})`)}t.unshift(i),a=a.parentElement,r++}return t.join(" > ")}function Pp(e){let t=Ds,a=e;for(;a&&a!==document.body;){for(let o of t){let n=a.getAttribute(o);if(n)return{attr:o,value:n}}let r=a.getAttribute("id");if(r&&Fs(r))return{attr:"id",value:r};a=a.parentElement}return null}function Fs(e){return!/^[0-9a-f-]{8,}$/i.test(e)&&!/^\d+$/.test(e)}function Rp(e){let t=e.getAttribute("id");return t&&Fs(t)?t:null}function Ep(e){let t=/^(react-stack|jsxDEV|renderWith|Object\.|_callee)/i;for(let a of e.split(`
1552
+ `)){let r=a.match(/^\s*at\s+([A-Z][A-Za-z0-9._$]*)\s+\(/);if(r&&!t.test(r[1]))return r[1]}return null}function Mp(e){let t=/^(react-stack|jsxDEV|renderWith|Object\.|_callee)/i;for(let a of e.split(`
1553
+ `)){let r=a.match(/^\s*at\s+([A-Za-z_$][A-Za-z0-9._$]*)\s+\(/);if(r&&!t.test(r[1]))return r[1]}return null}function Ap(e){var i,s,u,c,p,x,v,h,y,E,f,d,m,L,C,w,k,P,F;let t=Object.keys(e).find(A=>A.startsWith("__reactFiber")||A.startsWith("__reactInternalInstance"));if(!t)return null;let a=e[t],r={},o,n,l=0;for(;a&&l<20;){if(a._debugSource&&!r.file&&(r.file=a._debugSource.fileName,r.line=a._debugSource.lineNumber,r.col=a._debugSource.columnNumber),!r.component){let A=((s=(i=a._debugOwner)==null?void 0:i.type)==null?void 0:s.displayName)??((c=(u=a._debugOwner)==null?void 0:u.type)==null?void 0:c.name);A&&!o&&(o=A);let G=((h=(v=(x=(p=a._debugOwner)==null?void 0:p.return)==null?void 0:x._debugOwner)==null?void 0:v.type)==null?void 0:h.displayName)??((d=(f=(E=(y=a._debugOwner)==null?void 0:y.return)==null?void 0:E._debugOwner)==null?void 0:f.type)==null?void 0:d.name)??((C=(L=(m=a._debugOwner)==null?void 0:m._debugOwner)==null?void 0:L.type)==null?void 0:C.displayName)??((P=(k=(w=a._debugOwner)==null?void 0:w._debugOwner)==null?void 0:k.type)==null?void 0:P.name);G&&G!==A&&!n&&(n=G)}if(!r.component){let A=(F=a._debugStack)==null?void 0:F.stack;if(A){let G=Ep(A);G&&!o&&(o=G);let ie=Mp(A);ie&&(r.functionName=ie)}}if((r.file||r.component)&&l>0)break;a=a.return,l++}return o&&(r.component=n?`${n} > ${o}`:o),r.file!=null||r.component!=null?r:null}function Dp(e){var a,r,o;let t=e;for(;t;){let n=t.__vueParentComponent;if(n)return{file:((a=n.type)==null?void 0:a.__file)??void 0,component:((r=n.type)==null?void 0:r.name)??((o=n.type)==null?void 0:o.__name)??void 0};t=t.parentElement}return null}function Fp(e){var a,r;let t=e;for(;t;){let o=t.__vue__;if(o)return{file:((a=o.$options)==null?void 0:a.__file)??void 0,component:((r=o.$options)==null?void 0:r.name)??void 0};t=t.parentElement}return null}function Op(e){var r;let t=window.ng;if(!t)return null;let a=e;for(;a;){try{let o=t.getComponent(a);if(o)return{component:((r=o.constructor)==null?void 0:r.name)??void 0}}catch{}a=a.parentElement}return null}function Bp(e){var l,i,s,u;let t=e,a=((l=t.__P)==null?void 0:l.__k)??[],r=new Set(["Object","VNode","VNode2"]);for(let c of a){if(!c||typeof c!="object")continue;let p=c,x=(i=p==null?void 0:p.type)==null?void 0:i.name,v=(s=p==null?void 0:p.constructor)==null?void 0:s.name,h=v&&!r.has(v)?v:void 0,y=x??h??void 0;if(y)return{component:y}}let o=t.__preactattr__;if(!o)return null;let n=(u=o==null?void 0:o.type)==null?void 0:u.name;return n?{component:n}:null}function Np(e){return Ap(e)??Dp(e)??Fp(e)??Op(e)??Bp(e)}function Rn(e){let t=Oa(e),a={selector:t,display:t},r=Np(e);r&&(r.file!=null&&(a.file=r.file),r.line!=null&&(a.line=r.line),r.col!=null&&(a.col=r.col),r.component!=null&&(a.component=r.component),r.functionName!=null&&(a.functionName=r.functionName));let o=e.getAttribute("data-vibeflow-id");if(o)return a.selector=`[data-vibeflow-id="${o}"]`,a.display=o,a;let n=Pp(e);if(n&&(a.test_id=n.value),a.file){let l=a.file.replace(/\\/g,"/").split("/").pop()??a.file;a.selector=a.line!=null?`${a.file}:${a.line}`:a.file,a.display=a.line!=null?`${l}:${a.line}`:l}else a.component?(a.selector=a.component,a.display=a.component):a.functionName?(a.selector=a.functionName,a.display=a.functionName):n&&(a.selector=n.attr==="id"?`#${n.value}`:`[${n.attr}="${n.value}"]`,a.display=`${n.attr}:${n.value}`);return a}var Ms="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Os={};for(let e=0;e<Ms.length;e++)Os[Ms.charCodeAt(e)]=e;function zp(e,t){let a=0,r=0,o=0;do o=Os[e.charCodeAt(t++)]??0,a|=(o&31)<<r,r+=5;while(o&32);return[a&1?-(a>>1):a>>1,t]}function Hp(e){let t=[],a=0;for(;a<e.length;){let[r,o]=zp(e,a);t.push(r),a=o}return t}function _p(e,t,a){if(!e.mappings||!e.sources)return null;let r=e.mappings.split(";"),o=0,n=0,l=0,i=null;for(let s=0;s<r.length;s++){let u=0;for(let c of r[s].split(",")){if(!c)continue;let p=Hp(c);if(!(p.length<1)&&(u+=p[0],p.length>=4&&(o+=p[1],n+=p[2],l+=p[3],s===t&&u<=a&&(i={source:e.sources[o]??"",line:n+1,col:l+1}),s===t&&u>a)))break}if(s>t)break}return i}function Bs(e,t,a){if(e.sections){let r=null;for(let l of e.sections)(l.offset.line<t||l.offset.line===t&&l.offset.column<=a)&&(r=l);if(!r)return null;let o=t-r.offset.line,n=o===0?a-r.offset.column:a;return Bs(r.map,o,n)}return _p(e,t,a)}var As=new Map;function Up(e){let t=As.get(e);return t||(t=fetch(`${e}.map`).then(a=>a.ok?a.json():null).catch(()=>null),As.set(e,t)),t}var qp=/node_modules|_next\/dist|react-stack-top-frame|jsxDEV|react_stack_bottom_frame|fakeJSXCallSite|initializeElement/;function Wp(e){for(let t of e.split(`
1554
+ `)){let a=t.match(/at [^(]+ \((https?:\/\/[^)]+):(\d+):(\d+)\)/);if(!a)continue;let[,r,o,n]=a;if(!qp.test(r))return{chunkUrl:r,line:parseInt(o,10),col:parseInt(n,10)}}return null}function $p(e){var r;let t=Object.keys(e).find(o=>o.startsWith("__reactFiber")||o.startsWith("__reactInternalInstance"));if(!t)return null;let a=e[t];return((r=a==null?void 0:a._debugStack)==null?void 0:r.stack)??null}function Vp(e){return e.replace(/^file:\/\/\/app\//,"").replace(/^file:\/\/\//,"").replace(/\[project\]\//g,"").replace(/%28/g,"(").replace(/%29/g,")").replace(/%20/g," ")}async function Gp(e){let t=$p(e);if(!t)return null;let a=Wp(t);if(!a)return null;let r=await Up(a.chunkUrl);if(!r)return null;let o=Bs(r,a.line-1,a.col-1);return o?{file:Vp(o.source),line:o.line,col:o.col}:null}async function Kr(e){let t=Rn(e);if(t.file)return t;let a=await Gp(e);if(!a)return t;t.file=a.file,t.line=a.line,t.col=a.col;let r=a.file.replace(/\\/g,"/").split("/").pop()??a.file;return t.selector=`${a.file}:${a.line}`,t.display=`${r}:${a.line}`,t}var Q=I(H(),1);var Js=I(M(),1);var gm=I(H(),1);var eo=I(H());var eu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jr=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();var Na=I(H());var tu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var au=(0,Na.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:n,iconNode:l,...i},s)=>(0,Na.createElement)("svg",{ref:s,...tu,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:Jr("lucide",o),...i},[...l.map(([u,c])=>(0,Na.createElement)(u,c)),...Array.isArray(n)?n:[n]]));var Ve=(e,t)=>{let a=(0,eo.forwardRef)(({className:r,...o},n)=>(0,eo.createElement)(au,{ref:n,iconNode:t,className:Jr(`lucide-${eu(e)}`,r),...o}));return a.displayName=`${e}`,a};var mt=Ve("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var za=Ve("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var Ha=Ve("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var _a=Ve("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);var Ua=Ve("Paperclip",[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]]);var ou=I(M(),1),ru={Bug:{background:"rgba(239,68,68,0.12)",color:"#f87171",border:"rgba(239,68,68,0.25)"},Research:{background:"rgba(192,132,252,0.12)",color:"#c084fc",border:"rgba(139,92,246,0.2)"},Task:{background:"rgba(148,163,184,0.1)",color:"#94a3b8",border:"rgba(148,163,184,0.2)"}};function to({type:e,style:t}){let a=typeof e=="string"&&e.trim()&&e!=="[object Object]"&&ru[e]?e:"Task",r=ru[a];return(0,ou.jsx)("span",{style:{fontSize:9,fontWeight:700,letterSpacing:"0.04em",padding:"1px 5px",borderRadius:3,flexShrink:0,textTransform:"uppercase",background:r.background,color:r.color,border:`1px solid ${r.border}`,lineHeight:"1.5",...t},children:a})}var lu=I(M(),1),nu={Critical:{background:"rgba(239,68,68,0.15)",color:"#f87171",border:"rgba(239,68,68,0.3)"},High:{background:"rgba(249,115,22,0.12)",color:"#fb923c",border:"rgba(249,115,22,0.25)"},Medium:{background:"rgba(234,179,8,0.12)",color:"#facc15",border:"rgba(234,179,8,0.25)"},Low:{background:"rgba(148,163,184,0.1)",color:"#94a3b8",border:"rgba(148,163,184,0.2)"}};function qa({priority:e,style:t}){if(!e||!nu[e])return null;let a=nu[e];return(0,lu.jsx)("span",{style:{fontSize:9,fontWeight:700,letterSpacing:"0.04em",padding:"1px 5px",borderRadius:3,flexShrink:0,textTransform:"uppercase",background:a.background,color:a.color,border:`1px solid ${a.border}`,lineHeight:"1.5",...t},children:e})}var iu=I(M(),1);var su=I(M(),1);var vm=I(H(),1);var ro=I(H(),1);var ve=[{value:"Task",icon:"\u2611",label:"Task",css:"type-task",tooltip:"A general task or feature to implement."},{value:"Bug",icon:"\u{1F41E}",label:"Bug",css:"type-bug",tooltip:"A defect \u2014 annotator collects page errors and console logs to help reproduce it."},{value:"Research",icon:"\u{1F52C}",label:"Research",css:"type-research",tooltip:"A research task \u2014 agent will NOT write code but must attach a findings report."}],On=ve.map(e=>e.value),Wa=Object.fromEntries(ve.map(e=>[e.value,e.icon])),uu=Object.fromEntries(ve.map(e=>[e.value,e.css])),ao={Task:"#94a3b8",Bug:"#ef4444",Research:"#a855f7"};function $a(e){return Wa[e??"Task"]??"\u2611"}function Va(e){return ao[e??"Task"]??ao.Task}var Ge=I(M(),1);function Ht({id:e,value:t,onChange:a,disabled:r}){let[o,n]=ro.default.useState(!1),l=ro.default.useRef(null),i=ve.find(s=>s.value===t)??ve[0];return ro.default.useEffect(()=>{let s=u=>{var c;(c=l.current)!=null&&c.contains(u.target)||n(!1)};return document.addEventListener("click",s),()=>document.removeEventListener("click",s)},[]),(0,Ge.jsxs)("div",{id:e,ref:l,style:{position:"relative",display:"inline-block"},children:[(0,Ge.jsxs)("button",{type:"button",title:i==null?void 0:i.tooltip,onClick:s=>{s.preventDefault(),r||n(u=>!u)},style:{display:"inline-flex",alignItems:"center",gap:5,padding:"3px 8px",borderRadius:6,border:"1px solid var(--p-border, rgba(255,255,255,0.08))",background:"var(--p-hover, rgba(255,255,255,0.05))",color:"var(--p-text-m, rgba(255,255,255,0.7))",fontSize:12,cursor:"pointer",whiteSpace:"nowrap"},children:[(0,Ge.jsx)("span",{style:{fontSize:13},children:i==null?void 0:i.icon}),(0,Ge.jsx)("span",{children:i==null?void 0:i.label})]}),o&&(0,Ge.jsx)("div",{style:{position:"absolute",top:"100%",left:0,marginTop:4,background:"var(--p-card, #1e293b)",border:"1px solid var(--p-border-s, rgba(255,255,255,0.12))",borderRadius:8,padding:"4px 0",zIndex:200,minWidth:140,boxShadow:"0 8px 24px rgba(0,0,0,0.4)"},children:ve.map(s=>(0,Ge.jsxs)("button",{type:"button",title:s.tooltip,onClick:()=>{a(s.value),n(!1)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"6px 12px",border:"none",background:s.value===t?"var(--p-hover, rgba(255,255,255,0.06))":"transparent",color:s.value===t?"var(--p-text, #fff)":"var(--p-text-f, rgba(255,255,255,0.55))",fontSize:12,cursor:"pointer",textAlign:"left"},children:[(0,Ge.jsx)("span",{style:{fontSize:14,lineHeight:1},children:s.icon}),(0,Ge.jsx)("span",{children:s.label})]},s.value))})]})}var ja=I(H(),1);function du(e){return e.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(a=>a.trim())}function hm(e){return/^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?\s*$/.test(e)}function xm(e){let t=e.split(`
1555
+ `),a=[],r=0;for(;r<t.length;){let o=t[r]??"",n=t[r+1]??"";if(o.includes("|")&&hm(n)){let l=du(o),i=[];for(r+=2;r<t.length&&t[r].includes("|")&&t[r].trim()!=="";)i.push(du(t[r])),r+=1;let s=`<tr>${l.map(c=>`<th style="text-align:left;padding:7px 10px;border:1px solid #334155;color:#e2e8f0;background:#0f172a;">${c}</th>`).join("")}</tr>`,u=i.map(c=>`<tr>${c.map(p=>`<td style="padding:7px 10px;border:1px solid #334155;color:#cbd5e1;vertical-align:top;">${p}</td>`).join("")}</tr>`).join("");a.push(`<div style="overflow-x:auto;margin:0.65em 0;"><table style="border-collapse:collapse;min-width:360px;width:100%;font-size:12px;"><thead>${s}</thead><tbody>${u}</tbody></table></div>`);continue}a.push(t[r]),r+=1}return a.join(`
1556
+ `)}function Ga(e){if(!e)return'<span style="color:#475569;font-style:italic;">No description yet</span>';let t=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return xm(t).replace(/^### (.+)$/gm,'<h3 style="font-weight:700;margin:0.8em 0 0.3em;font-size:1.05em;color:#cbd5e1;">$1</h3>').replace(/^## (.+)$/gm,'<h2 style="font-weight:700;margin:0.8em 0 0.3em;font-size:1.2em;color:#f1f5f9;">$1</h2>').replace(/^# (.+)$/gm,'<h1 style="font-weight:700;margin:0.8em 0 0.3em;font-size:1.4em;color:#f1f5f9;">$1</h1>').replace(/[*][*]([^\n]+?)[*][*]/g,'<strong style="font-weight:700;color:#f1f5f9;">$1</strong>').replace(/__([^\n]+?)__/g,'<strong style="font-weight:700;color:#f1f5f9;">$1</strong>').replace(/[*]([^\n*]+?)[*]/g,'<em style="font-style:italic;color:#94a3b8;">$1</em>').replace(/(?<![a-zA-Z0-9])_([^_\n]+?)_(?![a-zA-Z0-9])/g,'<em style="font-style:italic;color:#94a3b8;">$1</em>').replace(/`(.+?)`/g,'<code style="font-family:Menlo,monospace;font-size:12px;background:#1e293b;padding:1px 5px;border-radius:3px;color:#7dd3fc;">$1</code>').replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer" style="color:#60a5fa;text-decoration:underline;">$1</a>').replace(/(^|[\s(>])((https?:\/\/)[^\s<>"']+)/g,'$1<a href="$2" target="_blank" rel="noopener noreferrer" style="color:#60a5fa;text-decoration:underline;word-break:break-all;">$2</a>').replace(/(^|[^\w])#([a-f0-9]{30})(?![a-f0-9])/gi,'$1<a href="#task-$2" data-task-ref="$2" style="color:#60a5fa;text-decoration:underline;font-family:Menlo,monospace;">#$2</a>').replace(/^[-*] (.+)$/gm,'<li style="margin:0.2em 0;display:list-item;">$1</li>').replace(/^---$/gm,'<hr style="border:none;border-top:1px solid #334155;margin:0.8em 0;">').replace(/(<li[^>]*>[\s\S]*?<\/li>\n?)+/g,r=>`<ul style="padding-left:1.5em;margin:0.4em 0;list-style-type:disc;">${r}</ul>`).replace(/^(?!<[a-z]|$).+$/gm,r=>`<p style="margin:0.5em 0;">${r}</p>`)}var gt=I(M(),1);function tt({markdown:e,className:t,style:a}){let r=ja.default.useRef(null),o=ja.default.useRef({}),[n,l]=ja.default.useState(null);return ja.default.useEffect(()=>{let i=r.current;if(!i)return;function s(){l(null)}async function u(p){let x=p.target,v=x==null?void 0:x.closest("a[data-task-ref]");if(!v){s();return}p.preventDefault();let h=v.getAttribute("data-task-ref");if(!h)return;let y=v.getBoundingClientRect(),E=o.current[h];if(E){l({id:h,title:E.title,status:E.status,x:y.left,y:y.bottom+6});return}try{let d=await(await fetch(`/api/tasks/${h}`)).json(),m={title:d.title??`Task ${h}`,status:d.status??"unknown"};o.current[h]=m,l({id:h,title:m.title,status:m.status,x:y.left,y:y.bottom+6})}catch{l({id:h,title:`Task ${h}`,status:"unknown",x:y.left,y:y.bottom+6})}}function c(p){var h,y;let x=(y=(h=p.target)==null?void 0:h.closest)==null?void 0:y.call(h,"a[data-task-ref]");if(!x)return;let v=x.getAttribute("data-task-ref");v&&window.dispatchEvent(new CustomEvent("vibeflow-task-ref-click",{detail:{refId:v}}))}return i.addEventListener("mouseover",u),i.addEventListener("mouseleave",s),i.addEventListener("click",c),()=>{i.removeEventListener("mouseover",u),i.removeEventListener("mouseleave",s),i.removeEventListener("click",c)}},[]),(0,gt.jsxs)("div",{style:{position:"relative"},children:[(0,gt.jsx)("div",{ref:r,className:t,style:a,dangerouslySetInnerHTML:{__html:Ga(e)}}),n&&(0,gt.jsxs)("div",{style:{position:"fixed",left:n.x,top:n.y,background:"#0f172a",border:"1px solid rgba(59,130,246,0.4)",color:"#e2e8f0",borderRadius:8,padding:"8px 10px",fontSize:11,boxShadow:"0 10px 24px rgba(2,6,23,0.55)",zIndex:60,pointerEvents:"none",minWidth:180},children:[(0,gt.jsxs)("div",{style:{color:"#60a5fa",fontFamily:"Menlo,monospace",marginBottom:3},children:["#",n.id]}),(0,gt.jsx)("div",{style:{fontWeight:600,marginBottom:3},children:n.title}),(0,gt.jsxs)("div",{style:{color:"#94a3b8"},children:["status: ",n.status]})]})]})}var Bn=I(M(),1);var ym=I(M(),1);var bm="proto-comments-seen";function Nn(e,t){try{let a=localStorage.getItem(bm),r=a?JSON.parse(a):{};return t>(r[e]??0)}catch{return!1}}var zh=I(H(),1);var Da=I(H(),1),Mc=I(Hr(),1);var N=I(M(),1);function Ch(e){return/\.(png|jpe?g|gif|webp|svg|avif)$/i.test(e)}function Ac(e,t){if(!/^#[0-9a-fA-F]{6}$/.test(e))return;let a=Math.max(0,Math.min(1,t)),r=Math.round(a*255).toString(16).padStart(2,"0");return`${e}${r}`}function Dc(e,t){return Ac(e,t==="Critical"?.36:t==="High"?.3:.24)??"color-mix(in srgb, var(--p-text-g) 40%, transparent)"}function wh(e){return Ac(e,.05)??"transparent"}var Ih={padding:"7px 8px",gap:4,opacity:.45,userSelect:"none"},kh={display:"flex",alignItems:"center",gap:5},Th={width:12,height:12,color:"color-mix(in srgb, var(--p-green) 55%, transparent)",flexShrink:0},Ph={fontSize:11.5,fontWeight:600,color:"var(--p-text-g)",textDecoration:"line-through",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},Rh={display:"flex",alignItems:"center",gap:5,minWidth:0},Eh={flexShrink:0},Mh={fontSize:11.5,fontWeight:600,color:"var(--p-text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},Ah={display:"flex",alignItems:"flex-start",gap:8},Dh={fontSize:10,color:"var(--p-text-g)",lineHeight:"1.45",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,flex:1,minWidth:0},Fh={position:"relative",flexShrink:0},Oh={width:52,height:34,borderRadius:6,objectFit:"cover",border:"1px solid color-mix(in srgb, var(--p-border) 90%, transparent)",display:"block",cursor:"pointer"},Bh={display:"flex",alignItems:"center",gap:2,marginTop:1},Nh={flex:1},Fc=Da.default.memo(function({task:t,col:a,liveActivity:r,onOpen:o,onDragStart:n}){var k;let l=a.id==="in-progress",i=a.id==="done",[s,u]=Da.default.useState(!1),[c,p]=Da.default.useState(null),x=Da.default.useRef(null),v=t.commentCount??0,h=t.fileCount??0,y=v>0&&Nn(t.id,v),E=Dc(a.color,t.priority),f=Va(t.type),d=wh(f),m=(k=t.files)==null?void 0:k.find(P=>Ch(P.name)),L=m?`/api/tasks/${t.id}/files/${encodeURIComponent(m.name)}`:null;function C(P){n(P,t.id),P.currentTarget.classList.add("dragging")}function w(P){P.currentTarget.classList.remove("dragging")}return i?(0,N.jsx)("article",{className:"task-card",draggable:!0,"data-task-id":t.id,style:Ih,onDragStart:C,onDragEnd:w,onClick:()=>o(t),children:(0,N.jsxs)("div",{style:kh,children:[(0,N.jsx)(mt,{style:Th}),(0,N.jsx)("span",{style:Ph,children:t.title})]})}):(0,N.jsxs)("article",{className:`task-card${r?" task-live-edit":""}`,draggable:!0,"data-task-id":t.id,style:{padding:"7px 8px",gap:4,userSelect:"none",background:r?"rgba(59,130,246,0.08)":d,...r?{borderColor:"rgba(59,130,246,0.5)",boxShadow:"0 0 0 2px rgba(59,130,246,0.14)"}:E?{borderColor:E}:{}},onDragStart:C,onDragEnd:w,onClick:()=>o(t),children:[(0,N.jsxs)("div",{style:Rh,children:[l&&(0,N.jsx)("span",{className:"spinner",style:Eh}),(0,N.jsx)("span",{style:Mh,children:t.title})]}),(t.description||L)&&(0,N.jsxs)("div",{style:Ah,children:[t.description&&(0,N.jsx)("div",{style:Dh,children:t.description}),L&&(0,N.jsxs)("div",{style:Fh,onMouseEnter:()=>{if(x.current){let P=x.current.getBoundingClientRect();p({top:P.top,right:P.right})}u(!0)},onMouseLeave:()=>{u(!1),p(null)},children:[(0,N.jsx)("img",{ref:x,src:L,alt:"Task screenshot","data-role":"task-thumb",style:Oh}),s&&c&&Mc.default.createPortal((0,N.jsx)("img",{src:L,alt:"Task screenshot enlarged preview","data-role":"task-thumb-preview",style:{position:"fixed",right:window.innerWidth-c.right,bottom:window.innerHeight-c.top+8,width:220,height:138,borderRadius:8,objectFit:"cover",border:"1px solid color-mix(in srgb, var(--p-border) 96%, transparent)",boxShadow:"0 10px 24px color-mix(in srgb, var(--p-bg) 75%, transparent)",pointerEvents:"none",zIndex:9999,background:"var(--p-bg)"}}),document.body)]})]}),(0,N.jsxs)("div",{className:"flex items-center",style:Bh,children:[(0,N.jsx)(to,{type:t.type}),t.priority&&(0,N.jsx)(qa,{priority:t.priority}),l&&t.assigneeName&&(0,N.jsx)("span",{style:{fontSize:10,fontWeight:600,padding:"1px 6px",borderRadius:6,background:"rgba(59,130,246,0.12)",color:"#60a5fa",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:80},children:t.assigneeName}),(0,N.jsx)("div",{style:Nh}),r&&(0,N.jsx)(Oc,{activity:r}),(0,N.jsx)(Ec,{icon:(0,N.jsx)(_a,{style:{width:9,height:9}}),label:v>0?String(v):"",color:y?"var(--p-purple)":v>0?"var(--p-text-m)":"var(--p-border-t)",hoverColor:y?"var(--p-purple-300)":"var(--p-text)",title:v>0?`${v} comment(s)`:"Add comment",badge:y,badgeColor:"var(--p-purple)",onClick:P=>{P.stopPropagation(),o(t,"comments")}}),(0,N.jsx)(Ec,{icon:(0,N.jsx)(Ua,{style:{width:9,height:9}}),label:h>0?String(h):"",color:h>0?"var(--p-blue-300)":"var(--p-border-t)",hoverColor:h>0?"var(--p-cyan-300)":"var(--p-text-sub)",title:h>0?`${h} file(s) attached`:"Files",onClick:P=>{P.stopPropagation(),o(t,"files")}})]})]})});function Ec({icon:e,label:t,color:a,hoverColor:r,title:o,badge:n,badgeColor:l,onClick:i}){let[s,u]=Da.default.useState(!1);return(0,N.jsxs)("button",{style:{display:"inline-flex",alignItems:"center",gap:2,padding:"2px 3px",borderRadius:3,border:"none",background:s?"color-mix(in srgb, var(--p-text-m) 10%, transparent)":"transparent",cursor:"pointer",fontSize:9,color:s?r:a,transition:"color .1s, background .1s"},title:o,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onClick:i,children:[e,t&&(0,N.jsx)("span",{children:t}),n&&(0,N.jsx)("span",{style:{width:4,height:4,background:l??a,borderRadius:"50%",flexShrink:0}})]})}function Oc({activity:e}){let t=e.state==="locked"||e.state==="editing",a=t?(0,N.jsx)(Ha,{style:{width:8,height:8}}):(0,N.jsx)(za,{style:{width:8,height:8}}),r=t?`Locked by ${e.user}`:`${e.user} viewing`;return(0,N.jsxs)("span",{style:t?{display:"inline-flex",alignItems:"center",gap:3,borderRadius:999,padding:"1px 5px",fontSize:9,fontWeight:600,border:"1px solid rgba(244,114,182,0.35)",color:"#f9a8d4",background:"rgba(157,23,77,0.28)",flexShrink:0,maxWidth:110,overflow:"hidden",whiteSpace:"nowrap",flexWrap:"nowrap"}:{display:"inline-flex",alignItems:"center",gap:3,borderRadius:999,padding:"1px 5px",fontSize:9,fontWeight:600,border:"1px solid rgba(59,130,246,0.35)",color:"#93c5fd",background:"rgba(30,58,138,0.28)",flexShrink:0,maxWidth:110,overflow:"hidden",whiteSpace:"nowrap",flexWrap:"nowrap"},title:r,"data-testid":"live-activity-badge",children:[a,(0,N.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",minWidth:0,flex:"1 1 0"},children:e.user})]})}var Qi=I(M(),1);var Hh=I(H(),1);var Bc=I(M(),1);var qh=I(H(),1);var Nc=I(M(),1);var Zi=I(M(),1);var ox=I(H(),1);var Kh=I(H(),1);var _r=I(H(),1),zc=I(M(),1),ta=_r.default.forwardRef(function({value:t,onChange:a,baseRows:r=4,maxRows:o,style:n,...l},i){let s=_r.default.useRef(null),u=o??r*2,c=_r.default.useCallback(()=>{let p=s.current;if(!p)return;p.style.height="auto";let x=window.getComputedStyle(p),v=Number.parseFloat(x.lineHeight||"0")||18,h=Number.parseFloat(x.paddingTop||"0")+Number.parseFloat(x.paddingBottom||"0"),y=Number.parseFloat(x.borderTopWidth||"0")+Number.parseFloat(x.borderBottomWidth||"0"),E=r*v+h+y,f=u*v+h+y,d=Math.max(E,Math.min(p.scrollHeight,f));p.style.height=`${d}px`,p.style.overflowY=p.scrollHeight>f?"auto":"hidden"},[r,u]);return _r.default.useLayoutEffect(()=>{c()},[t,c]),(0,zc.jsx)("textarea",{...l,ref:p=>{s.current=p,typeof i=="function"?i(p):i&&(i.current=p)},rows:r,value:t,onChange:p=>a(p.target.value),style:{...n,resize:"none"}})});var Vh=I(H(),1);var Wh=I(H(),1),$h=I(Hr(),1),Hc=I(M(),1);var es=I(M(),1);var _c=I(M(),1);var Uc=I(M(),1);var Xh=I(H(),1);var qc=I(M(),1);var Zh=I(H(),1);var Yh=I(H(),1),Qh=I(Hr(),1);var Wc=I(M(),1);var Vc=I(M(),1);var Jh=I(M(),1);var as=I(M(),1);var jy=5*1024*1024;var nx=I(H(),1);var Gc=I(M(),1);var ix=I(H(),1);var jc=I(M(),1);var sx=I(H(),1);var rs=I(M(),1);var dx=[/Error evaluating Node\.js code/i,/nextjs-portal/i],Nt=[],Kc=!1;function kn(e,t){let a=t.map(r=>{if(typeof r=="string")return r;if(r instanceof Error)return r.message;try{return JSON.stringify(r)}catch{return String(r)}}).join(" ").slice(0,500);!a||dx.some(r=>r.test(a))||(Nt.push({level:e,message:a,timestamp:new Date().toISOString()}),Nt.length>50&&Nt.splice(0,Nt.length-50))}function Xc(){if(Kc)return;Kc=!0;let e=console.error.bind(console);console.error=(...a)=>{kn("error",a),e(...a)};let t=console.warn.bind(console);console.warn=(...a)=>{kn("warn",a),t(...a)},window.addEventListener("error",a=>{let r=a.filename?` (${a.filename.split("/").pop()}:${a.lineno})`:"";kn("error",[`${a.message}${r}`])}),window.addEventListener("unhandledrejection",a=>{let r=a.reason instanceof Error?a.reason.message:String(a.reason??"Unhandled promise rejection");kn("error",[`Unhandled rejection: ${r}`])})}function Tn(){if(Nt.length===0)return"";let e=Nt.map(t=>{let a=t.level==="error"?"\u{1F534}":"\u{1F7E1}",r=t.timestamp.slice(11,19);return`- ${a} \`${r}\` ${t.message}`});return`
1557
+
1558
+ ---
1559
+ **Console logs** (${Nt.length} entr${Nt.length===1?"y":"ies"})
1560
+ ${e.join(`
1561
+ `)}`}var D=I(M(),1),Yc=null,Ur=null;function fx(e=2200){let t=document.head,a=t.querySelector('link[rel*="icon"]'),r=(a==null?void 0:a.href)??"";a&&a.remove();let o=document.createElement("link");o.rel="icon",o.type="image/svg+xml";let n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" fill="none"><rect width="18" height="18" rx="4" fill="#2563eb"/><rect x="2.5" y="5" width="2" height="8" rx="1" fill="white" opacity=".7"><animate attributeName="height" values="3;13;3" dur="0.8s" repeatCount="3" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1" begin="0s"/><animate attributeName="y" values="7.5;2.5;7.5" dur="0.8s" repeatCount="3" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1" begin="0s"/></rect><rect x="6.5" y="2" width="2" height="14" rx="1" fill="white"><animate attributeName="height" values="3;15;3" dur="0.8s" repeatCount="3" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1" begin="0.15s"/><animate attributeName="y" values="7.5;1.5;7.5" dur="0.8s" repeatCount="3" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1" begin="0.15s"/></rect><rect x="10.5" y="6" width="2" height="6" rx="1" fill="white" opacity=".7"><animate attributeName="height" values="3;12;3" dur="0.8s" repeatCount="3" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1" begin="0.3s"/><animate attributeName="y" values="7.5;3;7.5" dur="0.8s" repeatCount="3" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1" begin="0.3s"/></rect><rect x="14.5" y="4" width="2" height="10" rx="1" fill="white" opacity=".85"><animate attributeName="height" values="3;13;3" dur="0.8s" repeatCount="3" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1" begin="0.45s"/><animate attributeName="y" values="7.5;2.5;7.5" dur="0.8s" repeatCount="3" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1" begin="0.45s"/></rect></svg>';o.href=`data:image/svg+xml,${encodeURIComponent(n)}`,t.appendChild(o),window.setTimeout(()=>{if(o.remove(),r){let l=document.createElement("link");l.rel="icon",l.type="image/svg+xml",l.href=r,t.appendChild(l)}},e)}function Qc(){Ur==null||Ur()}function cx({onClick:e,flashing:t}){let a=(0,D.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[(0,D.jsx)("rect",{x:"2.5",y:"5",width:"2",height:"8",rx:"1",fill:"currentColor",opacity:"0.7"}),(0,D.jsx)("rect",{x:"6.5",y:"2",width:"2",height:"14",rx:"1",fill:"currentColor"}),(0,D.jsx)("rect",{x:"10.5",y:"6",width:"2",height:"6",rx:"1",fill:"currentColor",opacity:"0.7"}),(0,D.jsx)("rect",{x:"14.5",y:"4",width:"2",height:"10",rx:"1",fill:"currentColor",opacity:"0.85"})]}),[r,o]=Q.default.useState(null),[n,l]=Q.default.useState(!1),[i,s]=Q.default.useState(!1),u=Q.default.useRef(null),c=Q.default.useRef(null),p=Q.default.useRef(!1),x=Q.default.useRef(null),v=Q.default.useRef(null);v.current=r;function h(w){let k=w.getBoundingClientRect();return{x:k.left,y:k.top}}function y(w){let k=w.currentTarget,P=w.pointerId,F=w.clientX,A=w.clientY;p.current=!1,c.current=window.setTimeout(()=>{s(!0);let G=v.current??h(k);u.current={mouseX:F,mouseY:A,posX:G.x,posY:G.y},k.setPointerCapture(P)},300)}function E(w){if(!u.current)return;let k=w.clientX-u.current.mouseX,P=w.clientY-u.current.mouseY;!n&&(Math.abs(k)>3||Math.abs(P)>3)&&l(!0),p.current=!0;let F=window.innerWidth,A=window.innerHeight,G=Math.max(8,Math.min(F-64,u.current.posX+k)),ie=Math.max(8,Math.min(A-64,u.current.posY+P));o({x:G,y:ie})}function f(w){c.current!==null&&(window.clearTimeout(c.current),c.current=null);let k=p.current;u.current=null,l(!1),s(!1),p.current=!1,k||e()}function d(){c.current!==null&&(window.clearTimeout(c.current),c.current=null),u.current=null,l(!1),s(!1),p.current=!1}let m=r!==null?{position:"fixed",left:r.x,top:r.y,bottom:"auto",right:"auto"}:{},L=["vibeflow-corner-trigger",t?"saved-flash":"",i?"trigger-holding":"",n?"trigger-dragging":""].filter(Boolean).join(" ");return(0,D.jsx)("button",{ref:x,className:L,title:n?"Drag to reposition":i?"Drag to reposition \xB7 Release to open":"Open Kanban board \xB7 Hold to drag",style:m,onPointerDown:y,onPointerMove:E,onPointerUp:f,onPointerCancel:d,"data-vibeflow-ignore":"true",children:a})}var px=["backlog","todo","in-progress","review","done"],mx={backlog:{background:"rgba(100,116,139,0.2)",borderColor:"rgba(100,116,139,0.5)",color:"#94a3b8"},todo:{background:"rgba(245,158,11,0.15)",borderColor:"rgba(245,158,11,0.4)",color:"#fcd34d"},"in-progress":{background:"rgba(59,130,246,0.15)",borderColor:"rgba(59,130,246,0.4)",color:"#93c5fd"},review:{background:"rgba(139,92,246,0.15)",borderColor:"rgba(139,92,246,0.4)",color:"#c4b5fd"},done:{background:"rgba(52,211,153,0.12)",borderColor:"rgba(52,211,153,0.4)",color:"#6ee7b7"}};function gx({opts:e,onClose:t,onSubmit:a}){let[r,o]=Q.default.useState(e.initialTitle??""),[n,l]=Q.default.useState(e.initialDescription??""),[i,s]=Q.default.useState("todo"),[u,c]=Q.default.useState("Task"),[p,x]=Q.default.useState(!1),v=Q.default.useRef(null),[h,y]=Q.default.useState(null),[E,f]=Q.default.useState(!1),d=Q.default.useRef(null);function m(T){if(T.target.closest("button, input, select, textarea, a"))return;T.currentTarget.setPointerCapture(T.pointerId);let q=(h==null?void 0:h.x)??window.innerWidth/2-270,se=(h==null?void 0:h.y)??window.innerHeight/2-200;d.current={mouseX:T.clientX,mouseY:T.clientY,posX:q,posY:se},f(!0)}function L(T){if(!d.current)return;let q=T.clientX-d.current.mouseX,se=T.clientY-d.current.mouseY;y({x:d.current.posX+q,y:d.current.posY+se})}function C(){d.current=null,f(!1)}Q.default.useEffect(()=>{setTimeout(()=>{var T;return(T=v.current)==null?void 0:T.focus()},50)},[]);function w(T){T.target===T.currentTarget&&t()}function k(T){T.key==="Escape"&&t(),(T.ctrlKey||T.metaKey)&&T.key==="Enter"&&P()}function P(){var se;let T=r.trim();if(!T){(se=v.current)==null||se.focus();return}let q=n.trim()||T;if(u==="Bug"){let ct=Tn();ct&&(q+=ct)}a(e.selector??location.pathname,e.cssSelector??location.pathname,T,q,i,u,{file:e.file,line:e.line,col:e.col,component:e.component}),t()}let F={padding:"2px 8px",borderRadius:4,fontSize:11,cursor:"pointer",border:"1px solid var(--vibeflow-border-strong)",background:"transparent",color:"var(--vibeflow-text-muted)",fontFamily:"inherit",fontWeight:500,transition:"all .12s"},A=h!==null?{position:"fixed",left:h.x,top:h.y,margin:0}:{};return(0,D.jsx)("div",{className:"vibeflow-modal-backdrop",onClick:w,onKeyDown:k,children:(0,D.jsxs)("div",{className:"vibeflow-modal overlay-add-modal",role:"dialog","aria-modal":"true",style:A,children:[(0,D.jsxs)("div",{className:"modal-header overlay-modal-header",style:{cursor:E?"grabbing":"grab",userSelect:"none"},onPointerDown:m,onPointerMove:L,onPointerUp:C,children:[(0,D.jsx)("span",{title:"Drag to move",style:{display:"flex",alignItems:"center",color:"var(--vibeflow-text-muted)",opacity:.5,flexShrink:0,pointerEvents:"none"},children:(0,D.jsxs)("svg",{width:"12",height:"16",viewBox:"0 0 12 16",fill:"currentColor","aria-hidden":"true",children:[(0,D.jsx)("circle",{cx:"3",cy:"3",r:"1.5"}),(0,D.jsx)("circle",{cx:"9",cy:"3",r:"1.5"}),(0,D.jsx)("circle",{cx:"3",cy:"8",r:"1.5"}),(0,D.jsx)("circle",{cx:"9",cy:"8",r:"1.5"}),(0,D.jsx)("circle",{cx:"3",cy:"13",r:"1.5"}),(0,D.jsx)("circle",{cx:"9",cy:"13",r:"1.5"})]})}),(0,D.jsx)(Ht,{value:u,onChange:c}),(0,D.jsx)("input",{ref:v,type:"text",placeholder:"Task title\u2026",value:r,onChange:T=>o(T.target.value),style:{flex:1,fontSize:14,fontWeight:600,padding:"4px 8px",border:"1px solid transparent",borderRadius:6,background:"transparent",color:"var(--vibeflow-text-primary)",fontFamily:"inherit",outline:"none",cursor:"text"},onFocus:T=>{T.currentTarget.style.borderColor="var(--vibeflow-accent-strong)",T.currentTarget.style.background="var(--vibeflow-surface-elevated)"},onBlur:T=>{T.currentTarget.style.borderColor="transparent",T.currentTarget.style.background="transparent"},onKeyDown:T=>{T.key==="Enter"&&P(),T.key==="Escape"&&t()}}),(0,D.jsx)("button",{type:"button",onClick:t,style:{width:26,height:26,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:6,border:"none",background:"transparent",color:"var(--vibeflow-text-muted)",cursor:"pointer"},onMouseOver:T=>{T.currentTarget.style.background="var(--vibeflow-surface-hover)",T.currentTarget.style.color="var(--vibeflow-text-secondary)"},onMouseOut:T=>{T.currentTarget.style.background="transparent",T.currentTarget.style.color="var(--vibeflow-text-muted)"},"aria-label":"Close",children:"\u2715"})]}),(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"8px 16px",borderBottom:"1px solid var(--vibeflow-border-strong)"},children:[(0,D.jsx)("span",{style:{fontSize:10,color:"var(--vibeflow-text-muted)",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.04em",flexShrink:0},children:"Status"}),px.map(T=>(0,D.jsx)("button",{type:"button",style:{...F,...T===i?mx[T]:{}},onClick:()=>s(T),onMouseOver:q=>{T!==i&&(q.currentTarget.style.background="var(--vibeflow-surface-hover)",q.currentTarget.style.color="var(--vibeflow-text-secondary)")},onMouseOut:q=>{T!==i&&(q.currentTarget.style.background="transparent",q.currentTarget.style.color="var(--vibeflow-text-muted)")},children:T},T))]}),(e.file||e.component)&&(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 16px",background:"var(--vibeflow-surface-elevated)",borderBottom:"1px solid var(--vibeflow-border-subtle)",fontSize:11,color:"var(--vibeflow-text-muted)"},children:[e.file&&(0,D.jsxs)("a",{href:`vscode://file${e.file}${e.line!=null?`:${e.line}`:""}`,target:"_blank",rel:"noreferrer",style:{display:"inline-flex",alignItems:"center",gap:4,padding:"2px 6px",borderRadius:4,background:"var(--vibeflow-accent-soft)",border:"1px solid var(--vibeflow-accent-border)",color:"var(--vibeflow-accent-strong)",textDecoration:"none",fontSize:11},children:["\u{1F5CE} ",e.file.split("/").slice(-2).join("/"),e.line!=null?`:${e.line}`:""]}),e.component&&(0,D.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:4,padding:"2px 6px",borderRadius:4,background:"rgba(139,92,246,0.08)",border:"1px solid rgba(139,92,246,0.25)",color:"#8b5cf6",fontSize:11},children:["\u2B21 ",e.component]})]}),(0,D.jsxs)("div",{className:"modal-tabs",children:[(0,D.jsx)("div",{className:`modal-tab${p?"":" active"}`,onClick:()=>x(!1),children:"Edit"}),(0,D.jsx)("div",{className:`modal-tab${p?" active":""}`,onClick:()=>x(!0),children:"Preview"})]}),(0,D.jsx)("div",{className:"modal-body",children:p?(0,D.jsx)(tt,{markdown:n,className:"modal-preview-pane"}):(0,D.jsx)("div",{className:"modal-editor-pane",children:(0,D.jsx)(ta,{className:"dp-textarea",placeholder:"Description (markdown supported)\u2026",value:n,onChange:l,baseRows:5,maxRows:14})})}),u==="Bug"&&(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"6px 16px",background:"rgba(239,68,68,0.06)",borderTop:"1px solid rgba(239,68,68,0.18)",fontSize:11,color:"rgba(239,68,68,0.75)"},children:[(0,D.jsx)("span",{children:"\u{1F534}"}),(0,D.jsx)("span",{children:"Console errors & warnings will be attached to this report"})]}),(0,D.jsxs)("div",{className:"modal-footer",children:[(0,D.jsxs)("div",{className:"modal-footer-left",children:[(0,D.jsx)("button",{type:"button",className:"btn-primary",onClick:P,children:"Add Task"}),(0,D.jsx)("button",{type:"button",className:"btn-ghost",onClick:t,children:"Cancel"})]}),(0,D.jsx)("div",{className:"modal-footer-center"})]})]})})}function Zc({onOpenKanban:e,onSubmitTask:t}){let[a,r]=Q.default.useState(null),[o,n]=Q.default.useState(!1);Q.default.useEffect(()=>(Yc=i=>r(i),Ur=()=>{n(!0),window.setTimeout(()=>n(!1),1500),fx()},()=>{Yc=null,Ur=null}),[]);let l=typeof document<"u"&&document.body.hasAttribute("data-vibeflow-cli-kanban");return(0,D.jsxs)(D.Fragment,{children:[!l&&(0,D.jsx)(cx,{onClick:e,flashing:o}),a!==null&&(0,D.jsx)(gx,{opts:a,onClose:()=>r(null),onSubmit:(i,s,u,c,p,x,v)=>{t(i,s,u,c,p,x,v),r(null)}})]})}function Pn(e="Task"){let t=e,a=ve,r=()=>a.find(s=>s.value===t)??a[0],o=b("div",{className:"type-picker"}),n=b("button",{className:"type-picker-trigger",type:"button"}),l=b("div",{className:"type-picker-dropdown"}),i=()=>{let s=r();n.title=(s==null?void 0:s.tooltip)??"",n.replaceChildren(b("span",{className:"type-picker-icon"},(s==null?void 0:s.icon)??""),b("span",{className:"type-picker-label"},(s==null?void 0:s.label)??"")),l.replaceChildren();for(let u of a){let c=b("button",{className:u.value===t?"type-picker-option type-picker-option--active":"type-picker-option",type:"button",title:u.tooltip},b("span",{className:"type-picker-icon"},u.icon),b("span",{className:"type-picker-label"},u.label));c.addEventListener("click",p=>{p.preventDefault(),p.stopPropagation(),t=u.value,i(),l.classList.remove("open")}),l.appendChild(c)}};return n.addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),l.classList.toggle("open")}),i(),o.append(n,l),{el:o,getValue:()=>t,setValue:s=>{t=s,i()}}}function hx(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/^### (.+)$/gm,"<h3>$1</h3>").replace(/^## (.+)$/gm,"<h2>$1</h2>").replace(/^# (.+)$/gm,"<h1>$1</h1>").replace(/[*][*](.+?)[*][*]/g,"<strong>$1</strong>").replace(/__(.+?)__/g,"<strong>$1</strong>").replace(/[*](.+?)[*]/g,"<em>$1</em>").replace(/_([^_]+?)_/g,"<em>$1</em>").replace(new RegExp("`(.+?)`","g"),"<code>$1</code>").replace(/^[-*] (.+)$/gm,"<li>$1</li>").replace(/^---$/gm,"<hr>").replace(/(<li>[\s\S]*?<\/li>\n?)+/g,a=>`<ul>${a}</ul>`).replace(/^(?!<[a-z]|$).+$/gm,a=>`<p>${a}</p>`):'<span class="modal-preview-empty">No description yet</span>'}function os(e){if(!g.root)return;g.editModal&&(g.editModal.remove(),g.editModal=null);let t=b("input",{type:"text",placeholder:"Task title..."});t.value=e.title??"";let a=b("select");for(let C of["backlog","todo","in-progress","review","done"]){let w=b("option",{value:C},C);C===e.status&&(w.selected=!0),a.appendChild(w)}let r=Pn(e.type??"Task"),o=b("div",{className:"modal-header"},t,r.el,a),n=b("div",{className:"modal-tab active"},"Edit"),l=b("div",{className:"modal-tab"},"Preview"),i=b("div",{className:"modal-tabs"},n,l),s=b("textarea",{placeholder:"Description (markdown supported)..."});s.value=e.description??"";let u=b("div",{className:"modal-editor-pane"},s),c=b("div",{className:"modal-preview-pane"});c.style.display="none";let p=()=>{c.innerHTML=hx(s.value)},x=b("div",{className:"modal-body"},u,c);n.addEventListener("click",()=>{n.classList.add("active"),l.classList.remove("active"),u.style.display="",c.style.display="none"}),l.addEventListener("click",C=>{C.isTrusted&&(l.classList.add("active"),n.classList.remove("active"),u.style.display="none",c.style.display="",p())});let v=b("button",{className:"btn-primary"},"Save"),h=b("button",{className:"btn-ghost"},"Cancel"),y=b("div",{className:"modal-footer-left"},v,h),E=b("div",{className:"modal-footer-right"}),f=vx({file:e.file,line:e.line,col:e.col,component:e.component}),d=b("div",{className:"modal-footer"},y,f,E),m=b("div",{className:"vibeflow-modal"},o,i,x,d),L=b("div",{className:"vibeflow-modal-backdrop"},m);g.editModal=L,g.root.appendChild(L),t.focus(),L.addEventListener("click",C=>{C.target===L&&(L.remove(),g.editModal=null)}),v.addEventListener("click",()=>{let C=t.value.trim();if(!C)return;let w=PROTO_CONFIG.boardId?`${PROTO_CONFIG.apiUrl}/${e.id}?boardId=${encodeURIComponent(PROTO_CONFIG.boardId)}`:`${PROTO_CONFIG.apiUrl}/${e.id}`;fetch(w,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:C,status:a.value,type:r.getValue(),description:s.value.trim()})}).then(k=>k.json()).then(k=>{k.success&&xx()}).catch(k=>console.error("[Vibeflow Studio]",k)),L.remove(),g.editModal=null}),h.addEventListener("click",()=>{L.remove(),g.editModal=null}),document.addEventListener("keydown",function C(w){if(!g.editModal){document.removeEventListener("keydown",C);return}w.key==="Escape"&&(L.remove(),g.editModal=null,document.removeEventListener("keydown",C)),(w.ctrlKey||w.metaKey)&&w.key==="Enter"&&(v.click(),document.removeEventListener("keydown",C))})}function xx(){pt()}function vx(e){let t=b("div",{className:"modal-source-row"});if(!e.file&&!e.component)return t;let a="";e.file?(a=e.file.replace(/\\/g,"/").split("/").slice(-2).join("/"),e.line!=null&&(a+=`:${e.line}`),e.col!=null&&(a+=`:${e.col}`)):e.component&&(a=`\u2B21 ${e.component}`),e.component&&e.file&&(a+=` \xB7 \u2B21 ${e.component}`);let r=b("span",{className:"modal-source-label",title:e.file??""},a);if(e.file&&e.line!=null){let o=b("a",{className:"modal-source-link",title:"Open in editor",href:`vscode://file${e.file}:${e.line}`,target:"_blank"},"\u2197");t.append(r,o)}else t.append(r);return t}function Jc(e,t){if(!g.root)return;g.editModal&&(g.editModal.remove(),g.editModal=null);let a=Oa(e),r=e.tagName.toLowerCase(),o=e.getAttribute("id"),n=Array.from(e.classList).filter(h=>!h.startsWith("vibeflow-")),l=Array.from(e.attributes).filter(h=>h.name.startsWith("data-")&&!h.name.startsWith("data-proto")).map(h=>({name:h.name,value:h.value})),i=b("div",{className:"inspect-heading"},b("span",{className:"inspect-tag"},`<${r}>`),b("span",{className:"inspect-title"},"Element Inspector")),s=b("button",{className:"inspect-close"},"\u2715");function u(h,y,E=!0){let f=b("div",{className:"inspect-row"}),d=b("span",{className:"inspect-row-label"},h),m=b("code",{className:"inspect-row-value"},y||"\u2014");if(f.append(d,m),E&&y){let L=b("button",{className:"inspect-copy-btn",title:"Copy"},"\u2398");L.addEventListener("click",()=>{var C;(C=navigator.clipboard)==null||C.writeText(y).catch(()=>{}),L.textContent="\u2713",setTimeout(()=>{L.textContent="\u2398"},1200)}),f.appendChild(L)}return f}let c=b("div",{className:"inspect-rows"});if(c.appendChild(u("Selector",t.selector)),a!==t.selector&&c.appendChild(u("CSS selector",a)),t.test_id&&c.appendChild(u("Test ID",t.test_id)),o&&c.appendChild(u("id",o)),n.length>0&&c.appendChild(u("Classes",n.join(" "))),t.file){let h=t.file+(t.line!=null?`:${t.line}`:"")+(t.col!=null?`:${t.col}`:""),y=u("Source file",h);if(t.line!=null){let E=b("a",{className:"inspect-copy-btn",title:"Open in VS Code",href:`vscode://file${t.file}:${t.line}`,target:"_blank"},"\u2197");y.appendChild(E)}c.appendChild(y)}t.component&&c.appendChild(u("Component",t.component));for(let h of l)c.appendChild(u(h.name,h.value));let p=b("button",{className:"inspect-copy-all-btn"},"\u2398 Copy all");p.addEventListener("click",()=>{var y;let h=[];t.file&&h.push(`Source: ${t.file}${t.line!=null?`:${t.line}`:""}${t.col!=null?`:${t.col}`:""}`),t.component&&h.push(`Component: ${t.component}`),t.test_id&&h.push(`TestID: ${t.test_id}`),h.push(`Selector: ${t.selector}`),a!==t.selector&&h.push(`CSS selector: ${a}`),o&&h.push(`id: ${o}`),n.length>0&&h.push(`Classes: ${n.join(" ")}`),(y=navigator.clipboard)==null||y.writeText(h.join(`
1562
+ `)).catch(()=>{}),p.textContent="\u2713 Copied!",setTimeout(()=>{p.textContent="\u2398 Copy all"},1500)});let x=b("div",{className:"vibeflow-inspect-modal"},b("div",{className:"inspect-header"},i,s),c,b("div",{className:"inspect-footer"},p)),v=b("div",{className:"vibeflow-modal-backdrop"},x);g.editModal=v,g.root.appendChild(v),s.addEventListener("click",()=>{v.remove(),g.editModal=null}),v.addEventListener("click",h=>{h.target===v&&(v.remove(),g.editModal=null)}),document.addEventListener("keydown",function h(y){if(!g.editModal){document.removeEventListener("keydown",h);return}y.key==="Escape"&&(v.remove(),g.editModal=null,document.removeEventListener("keydown",h))})}function yx(e){var t;return((t=ve.find(a=>a.value===(e??"Task")))==null?void 0:t.tooltip)??""}function ep(e,t){let{currentPath:a,onOpen:r,onDone:o,onDelete:n,showSelector:l=!0,showDescription:i=!0,showActions:s=!1}=t,u=b("span",{className:`status-badge status-${e.status.replace(" ","-")}`},e.status),c=e.type??"Task",p=b("span",{className:`type-badge type-badge-${c.toLowerCase()}`,title:yx(c)},c),x=b("div",{className:"task-card-header"},u,p);e.status==="in-progress"&&x.appendChild(b("span",{className:"task-spinner"})),e.url&&e.url!==a&&x.appendChild(b("span",{className:"task-url-badge"},e.url));let v=$a(e.type),h=b("div",{className:e.status==="in-progress"?"task-card in-progress":"task-card"},b("span",{className:"task-watermark",title:`Type: ${e.type??"Task"}`},v),x,b("div",{className:"task-title"},e.title??"Untitled"));if(l&&h.appendChild(b("div",{className:"task-selector"},e.selector)),i&&e.description&&h.appendChild(b("div",{className:"task-description"},e.description)),h.addEventListener("click",y=>{var E,f;(f=(E=y.target).closest)!=null&&f.call(E,".task-actions")||r(e)}),s){let y=b("div",{className:"task-actions"});if(e.status!=="done"&&o){let E=b("button",{className:"done-btn"},"\u2713 Done");E.addEventListener("click",f=>{f.stopPropagation(),o(e)}),y.appendChild(E)}if(n){let E=b("button",{className:"delete-btn"},"\u2715");E.addEventListener("click",f=>{f.stopPropagation(),n(e)}),y.appendChild(E)}h.appendChild(y)}return h}function qr(){if(!g.indicatorContainer||(g.indicatorContainer.replaceChildren(),Fa(),!g.indicatorsVisible||g.tasks.length===0))return;let e=location.pathname,t=g.tasks.filter(n=>!n.url||n.url===e);if(t.length===0)return;let a={};for(let n of t){let l=n.cssSelector||n.selector;a[l]||(a[l]=[]),a[l].push(n)}let r=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight;for(let n of Object.keys(a)){let l=a[n],i;try{i=document.querySelector(n)}catch{continue}if(!i)continue;let s=i.getBoundingClientRect();if(s.width===0&&s.height===0||s.bottom<0||s.top>o||s.right<0||s.left>r)continue;let u=l.filter(h=>h.status!=="done"),c=u.length===0;if(c&&!g.sidebarShowDone)continue;let p=b("div",{className:"vibeflow-task-indicator"+(c?" all-done":"")});p.textContent=c?"\u2713":String(u.length),p.style.left=`${s.right-10}px`,p.style.top=`${s.top-10}px`;let x=l,v=c;p.addEventListener("mouseenter",()=>{g.tooltipPinned||ap(p,x)}),p.addEventListener("mouseleave",h=>{if(g.tooltipPinned)return;let y=h.relatedTarget;g.activeTooltip&&y&&(y===g.activeTooltip||g.activeTooltip.contains(y))||ns()}),p.addEventListener("click",h=>{h.stopPropagation(),x.length===1?(Fa(),os(x[0])):(Fa(),ap(p,x),g.tooltipPinned=!0)}),g.indicatorContainer.appendChild(p)}}function tp(){g.indicatorRafId||(g.indicatorRafId=requestAnimationFrame(()=>{g.indicatorRafId=null,qr()}))}function ns(){g.tooltipPinned||g.activeTooltip&&(g.activeTooltip.remove(),g.activeTooltip=null)}function Fa(){g.tooltipPinned=!1,g.activeTooltip&&(g.activeTooltip.remove(),g.activeTooltip=null)}function ap(e,t){if(!g.root)return;ns();let a=b("div",{className:"vibeflow-task-tooltip"}),r=b("button",{className:"tooltip-close-btn"},"\u2715");r.addEventListener("click",n=>{n.stopPropagation(),Fa()}),a.appendChild(r);for(let n of t){let l=ep(n,{currentPath:location.pathname,showSelector:!1,showDescription:!0,showActions:!1,onOpen:i=>{Fa(),os(i)}});a.appendChild(l)}let o=e.getBoundingClientRect();a.style.left=`${Math.min(o.right+6,window.innerWidth-330)}px`,a.style.top=`${Math.max(4,Math.min(o.top-8,window.innerHeight-420))}px`,a.addEventListener("mouseleave",ns),g.root.appendChild(a),g.activeTooltip=a}function rp(){window.addEventListener("scroll",tp,!0),window.addEventListener("resize",tp)}function op(e){let t=null;function a(r){r.composedPath().indexOf(e)===-1&&(t&&clearTimeout(t),t=setTimeout(()=>{t=null,qr()},150))}document.addEventListener("click",a,!0),document.addEventListener("keyup",a,!0)}function np(e){document.addEventListener("click",t=>{!g.tooltipPinned||!g.activeTooltip||(t.composedPath?t.composedPath():[t.target]).includes(e)||Fa()},!0)}function lp(e=document){let t=Array.from(e.querySelectorAll("*")).slice(0,50),a=!1,r=!1,o=!1;for(let n of t){for(let l of Object.keys(n)){if(!l.startsWith("__reactFiber$")&&!l.startsWith("__reactInternalInstance"))continue;a=!0;let i=n[l];if(i!=null&&i._debugSource){r=!0;break}if(i!=null&&i._debugStack){r=!0;break}i!=null&&i._debugOwner&&(o=!0)}if(r)break}return a?r?"full":o?"partial":"none":"not-react"}var sp="vibeflow-react-quality-shown";function up(){try{return!!localStorage.getItem(sp)}catch{return!1}}function is(){try{localStorage.setItem(sp,"1")}catch{}}function ss(e){if(!g.root)return;bx(),is();let a=[{icon:"\u{1F7E2}",label:"Full context",color:"#4ade80",desc:"React dev mode + source maps. Component name + source file + line.",active:e==="full"},{icon:"\u{1F7E1}",label:"Partial",color:"#fbbf24",desc:"React dev mode, but no debug stack found. Component name only.",active:e==="partial"},{icon:"\u{1F534}",label:"No context",color:"#f87171",desc:"Production build. DOM selectors only \u2014 no component or source info.",active:e==="none"}].map(y=>{let E=b("div",{className:"rq-level"+(y.active?" rq-level--active":"")});return E.appendChild(b("div",{className:"rq-level-icon"},y.icon)),E.appendChild(Object.assign(b("div",{className:"rq-level-label"},y.label),{style:`color:${y.color}`})),E.appendChild(b("div",{className:"rq-level-desc"},y.desc)),E}),r=b("div",{className:"rq-levels"},...a),n=b("div",{className:"rq-heading"},{full:"You have full context",partial:"You have partial context",none:"No React context available","not-react":"React not detected"}[e]??"React context"),l=Lx(e),i=b("div",{className:"rq-header"},n,r),s=b("div",{className:"rq-body"},...l),u=b("button",{className:"rq-close",title:"Close","aria-label":"Close"},"\u2715"),c=b("button",{className:"rq-btn rq-btn-secondary"},"Continue annotating"),p=b("div",{className:"rq-footer"},c),x=b("div",{className:"vibeflow-rq-modal",id:"vibeflow-rq-modal"},u,i,s,p),v=b("div",{className:"vibeflow-rq-overlay",id:"vibeflow-rq-overlay"},x);function h(){v.remove()}u.addEventListener("click",h),c.addEventListener("click",h),v.addEventListener("click",y=>{y.target===v&&h()}),g.root.appendChild(v)}function bx(){var e,t;(t=(e=g.root)==null?void 0:e.querySelector("#vibeflow-rq-overlay"))==null||t.remove()}function aa(e,t,a){let r=b("div",{className:"rq-feature"});r.appendChild(b("span",{className:"rq-feature-icon"},e));let o=b("div",{className:"rq-feature-text"});return o.appendChild(b("strong",null,t)),o.appendChild(b("span",null," \u2014 "+a)),r.appendChild(o),r}function ip(e){let t=b("pre",{className:"rq-codeblock"});return t.appendChild(b("code",null,e)),t}function ls(e){return b("div",{className:"rq-section-title"},e)}function Lx(e){let t=[];return t.push(ls("What is captured now")),t.push(aa("\u2705","CSS selector","always available \u2014 stable element targeting")),e==="full"?(t.push(aa("\u2705","Component name","from React fiber (_debugOwner)")),t.push(aa("\u2705","Source file + line","resolved via source maps (React 18.3+ _debugStack or legacy _debugSource)")),t.push(b("div",{className:"rq-note rq-note--success"},"You have the best possible context. Your agent receives component name, source file, and line number for each annotation.")),t):(e==="partial"&&(t.push(aa("\u2705","Component name","from React fiber (_debugOwner)")),t.push(aa("\u274C","Source file + line","no debug stack found on React fibers")),t.push(ls("How to get source file + line")),t.push(b("div",{className:"rq-note rq-note--amber"},"Source file resolution requires React dev mode with debug stacks (_debugStack / _debugSource) and source maps served by your bundler. Both are enabled by default when running in development mode.")),t.push(ip(`# Next.js
1563
+ next dev (or: npm run dev)
1564
+
1565
+ # Vite
1566
+ npm run dev (NODE_ENV=development)
1567
+
1568
+ # Ensure source maps are not disabled in your config`)),t.push(b("div",{className:"rq-note"},"No Babel plugins or additional setup needed \u2014 source maps shipped by your dev server are sufficient."))),e==="none"&&(t.push(aa("\u274C","Component name","not available \u2014 production build strips React dev info")),t.push(aa("\u274C","Source file + line","not available \u2014 requires dev mode with source maps")),t.push(ls("How to fix")),t.push(b("div",{className:"rq-note rq-note--amber"},"Restart your app in development mode:")),t.push(ip(`# Next.js
1569
+ next dev (or: npm run dev)
1570
+
1571
+ # Vite
1572
+ npm run dev (NODE_ENV=development)`)),t.push(b("div",{className:"rq-note"},"Dev mode enables React debug stacks (_debugStack) and source maps. No Babel plugins or extra config required \u2014 file + line are resolved automatically via source maps."))),t)}async function us(e,t,a){if(!g.root)return;g.popover&&(g.popover.remove(),g.popover=null);let r=await Kr(e),o=r.selector,n=Oa(e),l=r.display,i=b("div",{className:"popover-target-icon"},"\u2B21"),s=b("div",{className:"popover-target-name"},l.slice(0,50)),u=lp(),c=u!=="not-react"&&u!=="full",p={none:"React production build \u2014 no component context available (click to learn more)",partial:"React partial context \u2014 component name only, no source file (click to learn more)",full:"Drag to move","not-react":"Drag to move"},x=c?`popover-drag-handle popover-drag-handle--quality-${u}`:"popover-drag-handle",v=b("div",{className:x,title:p[u]??"Drag to move"});if(c)v.appendChild(document.createTextNode("\u26A0"));else{let T=document.createElementNS("http://www.w3.org/2000/svg","svg");T.setAttribute("width","12"),T.setAttribute("height","16"),T.setAttribute("viewBox","0 0 12 16"),T.setAttribute("fill","currentColor"),T.setAttribute("aria-hidden","true");let q=[[3,3],[9,3],[3,8],[9,8],[3,13],[9,13]];for(let[se,ct]of q){let Je=document.createElementNS("http://www.w3.org/2000/svg","circle");Je.setAttribute("cx",String(se)),Je.setAttribute("cy",String(ct)),Je.setAttribute("r","1.5"),T.appendChild(Je)}v.appendChild(T)}let h=b("div",{className:"popover-header"},i,s,v),y=b("div",{className:"popover-source"});if(r.file){let q=r.file.replace(/\\/g,"/").split("/").slice(-2).join("/")+(r.line!=null?`:${r.line}`:""),se=b("a",{href:`vscode://file${r.file}${r.line!=null?`:${r.line}`:""}`,target:"_blank",title:r.file},q);r.component?y.append(se,b("span",{className:"popover-source-sep"}," \xB7 \u2B21 "+r.component)):y.appendChild(se)}else r.component&&y.appendChild(b("span",null,"\u2B21 "+r.component));let E=b("input",{type:"text",placeholder:"Task title..."}),f=b("textarea",{placeholder:"Describe your feedback..."}),d=Pn("Task"),m=b("div",{className:"popover-title-row"},d.el,E),L=b("div",{className:"popover-body"},m,f),C=b("button",{className:"btn-primary"},"Save"),w=b("button",null,"Cancel"),k=b("div",{className:"popover-actions-spacer"}),P=b("div",{className:"popover-actions"},C,w,k),F=b("div",{className:"vibeflow-popover"},h,y,L,P);g.popover=F,c&&!up()&&(is(),window.setTimeout(()=>ss(u),200)),c&&v.addEventListener("click",T=>{T.stopPropagation(),ss(u)}),F.addEventListener("click",T=>{var q;T.target.closest(".type-picker")||(q=F.querySelector(".type-picker-dropdown"))==null||q.classList.remove("open")});let A=t!==void 0?t:e.getBoundingClientRect().left,G=a!==void 0?a:e.getBoundingClientRect().bottom+8;F.style.left=`${Math.min(A,window.innerWidth-620)}px`,F.style.top=`${Math.min(G,window.innerHeight-350)}px`;let ie=null;v.addEventListener("pointerdown",T=>{T.preventDefault(),v.setPointerCapture(T.pointerId),ie={startX:T.clientX,startY:T.clientY,origLeft:parseInt(F.style.left,10)||0,origTop:parseInt(F.style.top,10)||0},F.classList.add("popover-dragging")}),v.addEventListener("pointermove",T=>{if(!ie)return;let q=T.clientX-ie.startX,se=T.clientY-ie.startY,ct=window.innerWidth-(F.offsetWidth||480),Je=window.innerHeight-(F.offsetHeight||250);F.style.left=`${Math.max(0,Math.min(ct,ie.origLeft+q))}px`,F.style.top=`${Math.max(0,Math.min(Je,ie.origTop+se))}px`}),v.addEventListener("pointerup",()=>{ie=null,F.classList.remove("popover-dragging")}),v.addEventListener("pointercancel",()=>{ie=null,F.classList.remove("popover-dragging")}),g.root.appendChild(F),E.focus(),C.addEventListener("click",()=>{var cs,ps;let T=f.value.trim(),q=E.value.trim()||T.slice(0,80)||"Untitled";if(!T&&!q)return;let se=((cs=e.innerText)==null?void 0:cs.trim())??"",ct=se?se.slice(0,300):void 0,Je=d.getValue(),fs=T||q;if(Je==="Bug"){let ms=Tn();ms&&(fs+=ms)}jr(o,n,q,fs,void 0,{file:r.file,line:r.line,col:r.col,component:r.component},Je||void 0,ct),(ps=g.popover)==null||ps.remove(),g.popover=null,zt(),Qc()}),w.addEventListener("click",()=>{var T;(T=g.popover)==null||T.remove(),g.popover=null,zt()})}function dp(){pt()}function Cx(e,t,a){Wr();let o=Rn(e).display;if(ks(e),!g.root)return;let n=b("div",{className:"vibeflow-context-menu"});n.style.left=`${Math.min(t,window.innerWidth-220)}px`,n.style.top=`${Math.min(a,window.innerHeight-200)}px`;let l=b("button",null,b("span",{className:"menu-icon"},"\u{1F4DD}"),`Annotate "${o.slice(0,30)}"`);l.addEventListener("click",()=>{Wr(!0),us(e,t,a)}),n.appendChild(l);let i=b("button",null,b("span",{className:"menu-icon"},"\u{1F50D}"),"Inspect selector");i.addEventListener("click",()=>{Wr(),Kr(e).then(s=>Jc(e,s))}),n.appendChild(i),g.contextMenu=n,g.root.appendChild(n),setTimeout(()=>{document.addEventListener("click",function s(){Wr(),document.removeEventListener("click",s)},{once:!0})},0)}function Wr(e){g.contextMenu&&(g.contextMenu.remove(),g.contextMenu=null),e||zt()}function cp(e){document.addEventListener("keydown",t=>{t.altKey&&t.key==="a"&&(t.preventDefault(),fp(e)),t.altKey&&t.key==="s"&&(t.preventDefault(),dp()),t.key==="Escape"&&(g.contextMenu?Wr():g.popover?(g.popover.remove(),g.popover=null,zt()):g.annotationMode?fp(e):g.sidebarPinned&&void 0)},!0)}function fp(e){g.annotationMode=!g.annotationMode,document.body.classList.toggle("vibeflow-overlay-active",g.annotationMode),g.annotationMode,g.annotationMode?Ss(e):(Cs(e),g.popover&&(g.popover.remove(),g.popover=null))}function pp(e){document.addEventListener("contextmenu",t=>{let a=t.target;!a||a===document.body||a===document.documentElement||t.composedPath().indexOf(e)===-1&&(t.preventDefault(),Cx(a,t.clientX,t.clientY))},!0)}function mp(e){document.addEventListener("click",t=>{if(!g.annotationMode||t.composedPath().indexOf(e)!==-1)return;let a=t.target;!a||a===document.body||a===document.documentElement||(t.preventDefault(),t.stopPropagation(),us(a,t.clientX,t.clientY))},!0)}function gp(e){let t=history.pushState.bind(history);history.pushState=(...r)=>{t(...r),e()};let a=history.replaceState.bind(history);history.replaceState=(...r)=>{a(...r),e()},window.addEventListener("popstate",e),window.addEventListener("hashchange",e)}var vp=I(H(),1),yp=I(xp(),1);function wx(){Xc();let e=document.querySelector("script[data-board-id]")??document.querySelector('script[src*="vibeflow-overlay"]');e&&!e.hasAttribute("data-vibeflow-overlay")&&e.setAttribute("data-vibeflow-overlay",""),e!=null&&e.dataset.boardId&&!PROTO_CONFIG.boardId&&(PROTO_CONFIG.boardId=e.dataset.boardId);let t=window.__PROTO_BOARD_ID;if(t&&!PROTO_CONFIG.boardId&&(PROTO_CONFIG.boardId=t),e!=null&&e.dataset.overlayApiKey&&!PROTO_CONFIG.overlayApiKey&&(PROTO_CONFIG.overlayApiKey=e.dataset.overlayApiKey),document.getElementById("vibeflow-studio-root"))return;let{host:a,root:r}=bs();g.host=a,g.root=r,Ls();let o=b("div",{className:"vibeflow-indicators"});g.indicatorContainer=o,r.appendChild(o);let n=document.createElement("div");n.className="vibeflow-react-root",r.appendChild(n),(0,yp.createRoot)(n).render(vp.default.createElement(Zc,{onOpenKanban:()=>{if(PROTO_CONFIG.boardId){let i=new URL(PROTO_CONFIG.apiUrl).origin;window.open(`${i}/kanban?board=${encodeURIComponent(PROTO_CONFIG.boardId)}`,"_blank","noopener")}else if(PROTO_CONFIG.wsUrl){let i=PROTO_CONFIG.apiUrl.replace("/api/tasks","/kanban");window.open(i,"_blank","noopener")}},onSubmitTask:(i,s,u,c,p,x,v)=>{jr(i,s,u,c,p,v,x)}})),g.onTasksFetched=()=>{qr()},g.onTasksUpdatedMessage=pt,Gr(),Ps(),pt(),Es(),cp(a),pp(a),mp(a),rp(),op(a),np(a),gp(()=>{location.href!==g.currentHref&&(g.currentHref=location.href,qr())})}wx();})();
1573
+ /*! Bundled license information:
1574
+
1575
+ react/cjs/react.production.min.js:
1576
+ (**
1577
+ * @license React
1578
+ * react.production.min.js
1579
+ *
1580
+ * Copyright (c) Facebook, Inc. and its affiliates.
1581
+ *
1582
+ * This source code is licensed under the MIT license found in the
1583
+ * LICENSE file in the root directory of this source tree.
1584
+ *)
1585
+
1586
+ react/cjs/react-jsx-runtime.production.min.js:
1587
+ (**
1588
+ * @license React
1589
+ * react-jsx-runtime.production.min.js
1590
+ *
1591
+ * Copyright (c) Facebook, Inc. and its affiliates.
1592
+ *
1593
+ * This source code is licensed under the MIT license found in the
1594
+ * LICENSE file in the root directory of this source tree.
1595
+ *)
1596
+
1597
+ scheduler/cjs/scheduler.production.min.js:
1598
+ (**
1599
+ * @license React
1600
+ * scheduler.production.min.js
1601
+ *
1602
+ * Copyright (c) Facebook, Inc. and its affiliates.
1603
+ *
1604
+ * This source code is licensed under the MIT license found in the
1605
+ * LICENSE file in the root directory of this source tree.
1606
+ *)
1607
+
1608
+ react-dom/cjs/react-dom.production.min.js:
1609
+ (**
1610
+ * @license React
1611
+ * react-dom.production.min.js
1612
+ *
1613
+ * Copyright (c) Facebook, Inc. and its affiliates.
1614
+ *
1615
+ * This source code is licensed under the MIT license found in the
1616
+ * LICENSE file in the root directory of this source tree.
1617
+ *)
1618
+
1619
+ lucide-react/dist/esm/shared/src/utils.js:
1620
+ lucide-react/dist/esm/defaultAttributes.js:
1621
+ lucide-react/dist/esm/Icon.js:
1622
+ lucide-react/dist/esm/createLucideIcon.js:
1623
+ lucide-react/dist/esm/icons/circle-check-big.js:
1624
+ lucide-react/dist/esm/icons/eye.js:
1625
+ lucide-react/dist/esm/icons/lock.js:
1626
+ lucide-react/dist/esm/icons/message-circle.js:
1627
+ lucide-react/dist/esm/icons/paperclip.js:
1628
+ lucide-react/dist/esm/lucide-react.js:
1629
+ (**
1630
+ * @license lucide-react v0.468.0 - ISC
1631
+ *
1632
+ * This source code is licensed under the ISC license.
1633
+ * See the LICENSE file in the root directory of this source tree.
1634
+ *)
1635
+ */