@eforge-build/eforge-plan 0.8.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 (112) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +466 -0
  3. package/dist/backlog-curation-source-provider.d.ts +62 -0
  4. package/dist/backlog-curation-source-provider.js +495 -0
  5. package/dist/index.d.ts +7 -0
  6. package/dist/index.js +589 -0
  7. package/package.json +72 -0
  8. package/prompts/eforge-plan-backlog-curation-item-audit.md +71 -0
  9. package/prompts/eforge-plan-backlog-curation-reducer.md +61 -0
  10. package/prompts/eforge-plan-planning-draft.md +125 -0
  11. package/workstation-assets/plans/assets/abnfDiagram-VRR7QNED-78B0yOEK.js +1 -0
  12. package/workstation-assets/plans/assets/arc-XmhKxjV7.js +1 -0
  13. package/workstation-assets/plans/assets/architecture-TIHT7OUA-NvwveMWr.js +1 -0
  14. package/workstation-assets/plans/assets/architectureDiagram-ZJ3FMSHR-DwWqL5gE.js +36 -0
  15. package/workstation-assets/plans/assets/array-BifhSqXX.js +1 -0
  16. package/workstation-assets/plans/assets/blockDiagram-677ZJIJ3-DKTnUbdw.js +132 -0
  17. package/workstation-assets/plans/assets/c4Diagram-LMCZKHZV-X42ysI10.js +10 -0
  18. package/workstation-assets/plans/assets/channel-D_5qxKhT.js +1 -0
  19. package/workstation-assets/plans/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  20. package/workstation-assets/plans/assets/chunk-32BRIVSS-CC-cwjI2.js +1 -0
  21. package/workstation-assets/plans/assets/chunk-52WLFC77-C5jMuCNv.js +10 -0
  22. package/workstation-assets/plans/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  23. package/workstation-assets/plans/assets/chunk-7BUUIJ7U-Bb538aSH.js +1 -0
  24. package/workstation-assets/plans/assets/chunk-C7G6YPKG-QJOKf7JR.js +1 -0
  25. package/workstation-assets/plans/assets/chunk-EX3LRPZG-BC6hcB7L.js +231 -0
  26. package/workstation-assets/plans/assets/chunk-FWX5IMBZ-DjGANnm8.js +2 -0
  27. package/workstation-assets/plans/assets/chunk-HOUHSVGY-CTvTF8P_.js +1 -0
  28. package/workstation-assets/plans/assets/chunk-ICXQ74PX-BnobhCjQ.js +2 -0
  29. package/workstation-assets/plans/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  30. package/workstation-assets/plans/assets/chunk-KEIR6QF5-Dj-OpFgW.js +161 -0
  31. package/workstation-assets/plans/assets/chunk-MOJQB5TN-Dwkjcsly.js +88 -0
  32. package/workstation-assets/plans/assets/chunk-OGEWGWER-CFMxH_hz.js +1 -0
  33. package/workstation-assets/plans/assets/chunk-PUDLZKDR-Dor57faH.js +156 -0
  34. package/workstation-assets/plans/assets/chunk-Q4XR5HBZ-D-IK7DlL.js +70 -0
  35. package/workstation-assets/plans/assets/chunk-RYQCIY6F-DpTa04be.js +1 -0
  36. package/workstation-assets/plans/assets/chunk-V7JOEXUC-CFqzUdj4.js +206 -0
  37. package/workstation-assets/plans/assets/chunk-VAUOI2AC-BbIlIF2a.js +1 -0
  38. package/workstation-assets/plans/assets/chunk-VR4S4FIN-CFMVg8B3.js +1 -0
  39. package/workstation-assets/plans/assets/chunk-WYO6CB5R-BlOpSQhB.js +125 -0
  40. package/workstation-assets/plans/assets/chunk-XXDRQBXY-BTV-IdbV.js +1 -0
  41. package/workstation-assets/plans/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  42. package/workstation-assets/plans/assets/chunk-ZGVPDNZ5-DughZ6NH.js +62 -0
  43. package/workstation-assets/plans/assets/chunk-ZIRB5QZD-C6fEPe3t.js +32 -0
  44. package/workstation-assets/plans/assets/classDiagram-OUVF2IWQ-BDFCV_Gu.js +1 -0
  45. package/workstation-assets/plans/assets/classDiagram-v2-EOCWNBFH-BDFCV_Gu.js +1 -0
  46. package/workstation-assets/plans/assets/cose-bilkent-JH36ORCC-DBeM55MZ.js +1 -0
  47. package/workstation-assets/plans/assets/cynefin-VYW2F7L2-DNQDl6J7.js +1 -0
  48. package/workstation-assets/plans/assets/cynefinDiagram-TSTJHNR4-7rwTPI0P.js +62 -0
  49. package/workstation-assets/plans/assets/cytoscape.esm-CQFVGiJu.js +321 -0
  50. package/workstation-assets/plans/assets/dagre-VKFMJZFB-w4kYnfcE.js +4 -0
  51. package/workstation-assets/plans/assets/dagre-dpRSp0QF.js +1 -0
  52. package/workstation-assets/plans/assets/defaultLocale-C8Fc0cco.js +1 -0
  53. package/workstation-assets/plans/assets/diagram-FQU43EPY-CYlyxHIb.js +3 -0
  54. package/workstation-assets/plans/assets/diagram-G47NLZAW-BTQ2Ih7M.js +24 -0
  55. package/workstation-assets/plans/assets/diagram-NH7WQ7WH-CzVwXQzn.js +24 -0
  56. package/workstation-assets/plans/assets/diagram-OA4YK3LP-DZyMdlgd.js +30 -0
  57. package/workstation-assets/plans/assets/diagram-WEI45ONY-CPKPEidU.js +41 -0
  58. package/workstation-assets/plans/assets/dist-BN7f1r-d.js +1 -0
  59. package/workstation-assets/plans/assets/ebnfDiagram-CCIWWBDH-CedQkhiI.js +1 -0
  60. package/workstation-assets/plans/assets/erDiagram-Q63AITRT--f4SojKJ.js +85 -0
  61. package/workstation-assets/plans/assets/eventmodeling-45OFAUF4-Dmd0oPLe.js +1 -0
  62. package/workstation-assets/plans/assets/flowDiagram-23GEKE2U-Bk0_NpAg.js +1 -0
  63. package/workstation-assets/plans/assets/ganttDiagram-NO4QXBWP-BD2wDR3D.js +292 -0
  64. package/workstation-assets/plans/assets/gitGraph-TEB2WS4Q-Cu5uXxdQ.js +1 -0
  65. package/workstation-assets/plans/assets/gitGraphDiagram-IHSO6WYX-VyFjgVvS.js +106 -0
  66. package/workstation-assets/plans/assets/graphlib-DS17s2tU.js +1 -0
  67. package/workstation-assets/plans/assets/info-DKCQHKI2-BbwvhFJT.js +1 -0
  68. package/workstation-assets/plans/assets/infoDiagram-FWYZ7A6U-CtgDgw_G.js +2 -0
  69. package/workstation-assets/plans/assets/init-D6jRqBbL.js +1 -0
  70. package/workstation-assets/plans/assets/ishikawaDiagram-FXEZZL3T-4xM3fMGV.js +70 -0
  71. package/workstation-assets/plans/assets/journeyDiagram-5HDEW3XC-Bo-Wurg9.js +139 -0
  72. package/workstation-assets/plans/assets/kanban-definition-HUTT4EX6-9bumG_hJ.js +89 -0
  73. package/workstation-assets/plans/assets/katex-B7rAX3Vi.js +257 -0
  74. package/workstation-assets/plans/assets/line-BuQmF8pC.js +1 -0
  75. package/workstation-assets/plans/assets/linear-RuFdJ2n1.js +1 -0
  76. package/workstation-assets/plans/assets/map-BaFkSB1l.js +1 -0
  77. package/workstation-assets/plans/assets/mermaid-parser.core-Z7aCdDC3.js +7 -0
  78. package/workstation-assets/plans/assets/mermaid.core-7qPnBf_x.js +11 -0
  79. package/workstation-assets/plans/assets/mindmap-definition-LN4V7U3C-CzdKkzT7.js +96 -0
  80. package/workstation-assets/plans/assets/ordinal-hYBb2elL.js +1 -0
  81. package/workstation-assets/plans/assets/packet-7NZHBO7P-Bjesbb-N.js +1 -0
  82. package/workstation-assets/plans/assets/path-BWPyau1x.js +1 -0
  83. package/workstation-assets/plans/assets/pegDiagram-2B236MQR-D1f0OGd_.js +1 -0
  84. package/workstation-assets/plans/assets/pie-RZYD4A2V-BHdG1B1p.js +1 -0
  85. package/workstation-assets/plans/assets/pieDiagram-ENE6RG2P-Da5uhg-w.js +39 -0
  86. package/workstation-assets/plans/assets/quadrantDiagram-ABIIQ3AL-Cxs3S7y0.js +7 -0
  87. package/workstation-assets/plans/assets/radar-I7S5WNFK-u6N10cFf.js +1 -0
  88. package/workstation-assets/plans/assets/railroad-3IZDKUUU-BzfIqZiM.js +1 -0
  89. package/workstation-assets/plans/assets/railroad-abnf-AHOZXSZD-DGhviTe2.js +1 -0
  90. package/workstation-assets/plans/assets/railroad-ebnf-EBAXGLYW-C-Tn21vK.js +1 -0
  91. package/workstation-assets/plans/assets/railroad-peg-LSFZ7HO6-DIdilv2h.js +1 -0
  92. package/workstation-assets/plans/assets/railroadDiagram-RFXS5EU6-DNtNT7hD.js +1 -0
  93. package/workstation-assets/plans/assets/requirementDiagram-TGXJPOKE-raVb_23e.js +84 -0
  94. package/workstation-assets/plans/assets/rough.esm-CSKSodPl.js +1 -0
  95. package/workstation-assets/plans/assets/sankeyDiagram-HTMAVEWB-CeV_C-V-.js +40 -0
  96. package/workstation-assets/plans/assets/sequenceDiagram-DBY2YBRQ-COqLefWL.js +162 -0
  97. package/workstation-assets/plans/assets/sizeCapture-X5ZJPWSS-B0uUizjq.js +1 -0
  98. package/workstation-assets/plans/assets/src-YX8hbnqp.js +1 -0
  99. package/workstation-assets/plans/assets/stateDiagram-2N3HPSRC-hFzKGo6t.js +1 -0
  100. package/workstation-assets/plans/assets/stateDiagram-v2-6OUMAXLB-B0mmwSp9.js +1 -0
  101. package/workstation-assets/plans/assets/swimlanes-5IMT3BWC-8GwDMK58.js +2 -0
  102. package/workstation-assets/plans/assets/swimlanesDiagram-G3AALYLV-CZI5CzhY.js +8 -0
  103. package/workstation-assets/plans/assets/timeline-definition-FHXFAJF6-9eSt4R4I.js +120 -0
  104. package/workstation-assets/plans/assets/treeView-QDETBFTQ-D8MgMJ8g.js +1 -0
  105. package/workstation-assets/plans/assets/treemap-6X3UGDF4-CrzhEgHE.js +1 -0
  106. package/workstation-assets/plans/assets/vennDiagram-L72KCM5P-D8jY-Ckx.js +34 -0
  107. package/workstation-assets/plans/assets/wardley-OPB4EBWU-C6HBA56t.js +1 -0
  108. package/workstation-assets/plans/assets/wardleyDiagram-EHGQE667-DScKs1nw.js +78 -0
  109. package/workstation-assets/plans/assets/xychartDiagram-FW5EYKEG-CMdUL3S6.js +7 -0
  110. package/workstation-assets/plans/index.html +13 -0
  111. package/workstation-assets/plans/index.js +381 -0
  112. package/workstation-assets/plans/style.css +3 -0
@@ -0,0 +1,381 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-7qPnBf_x.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-YX8hbnqp.js","assets/chunk-WYO6CB5R-BlOpSQhB.js","assets/chunk-ICXQ74PX-BnobhCjQ.js","assets/dist-BN7f1r-d.js","assets/chunk-VAUOI2AC-BbIlIF2a.js","assets/chunk-HOUHSVGY-CTvTF8P_.js","assets/chunk-Q4XR5HBZ-D-IK7DlL.js","assets/chunk-7BUUIJ7U-Bb538aSH.js","assets/chunk-OGEWGWER-CFMxH_hz.js","assets/chunk-C7G6YPKG-QJOKf7JR.js","assets/chunk-ZGVPDNZ5-DughZ6NH.js","assets/rough.esm-CSKSodPl.js","assets/chunk-52WLFC77-C5jMuCNv.js","assets/line-BuQmF8pC.js","assets/path-BWPyau1x.js","assets/array-BifhSqXX.js","assets/chunk-FWX5IMBZ-DjGANnm8.js","assets/chunk-ZIRB5QZD-C6fEPe3t.js"])))=>i.map(i=>d[i]);
2
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o(((e,t)=>{(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=ge&&e[ge]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;_e[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),_e[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=ye,this.updater=n||ve}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=ye,this.updater=n||ve}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ae:return`Fragment`;case se:return`Profiler`;case oe:return`StrictMode`;case de:return`Suspense`;case fe:return`SuspenseList`;case he:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case j:return`Portal`;case le:return e.displayName||`Context`;case ce:return(e._context.displayName||`Context`)+`.Consumer`;case ue:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case pe:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case me:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===ae)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===me)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=N.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(Ce.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){Te||(Te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function _(){var e=d(this.type);return De[e]||(De[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:ie,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===me&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===ie}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case ie:case j:s=!0;break;case me:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return xe(a)?(n=``,c!=null&&(n=c.replace(je,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(je,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,xe(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(Ae||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Ae=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);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 s}function ee(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function E(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
3
+
4
+ Your code should look like:
5
+ const MyComponent = lazy(() => import('./MyComponent'))
6
+
7
+ Did you accidentally put curly braces around the import?`,t),`default`in t||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
8
+
9
+ Your code should look like:
10
+ const MyComponent = lazy(() => import('./MyComponent'))`,t),t.default;throw e._result}function D(){var e=N.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
11
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
12
+ 2. You might be breaking the Rules of Hooks
13
+ 3. You might have more than one copy of React in the same app
14
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function te(){N.asyncTransitions--}function O(e){if(Pe===null)try{var n=(`require`+Math.random()).slice(0,7);Pe=(t&&t[n]).call(t,`timers`).setImmediate}catch{Pe=function(e){!1===Ne&&(Ne=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Pe(e)}function ne(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function k(e,t){t!==Fe-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Fe=t}function A(e,t,n){var r=N.actQueue;if(r!==null)if(r.length!==0)try{re(r),O(function(){return A(e,t,n)});return}catch(e){N.thrownErrors.push(e)}else N.actQueue=null;0<N.thrownErrors.length?(r=ne(N.thrownErrors),N.thrownErrors.length=0,n(r)):t(e)}function re(e){if(!Le){Le=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{N.didUsePromise=!1;var r=n(!1);if(r!==null){if(N.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),N.thrownErrors.push(n)}finally{Le=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ie=Symbol.for(`react.transitional.element`),j=Symbol.for(`react.portal`),ae=Symbol.for(`react.fragment`),oe=Symbol.for(`react.strict_mode`),se=Symbol.for(`react.profiler`),ce=Symbol.for(`react.consumer`),le=Symbol.for(`react.context`),ue=Symbol.for(`react.forward_ref`),de=Symbol.for(`react.suspense`),fe=Symbol.for(`react.suspense_list`),pe=Symbol.for(`react.memo`),me=Symbol.for(`react.lazy`),he=Symbol.for(`react.activity`),ge=Symbol.iterator,_e={},ve={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},M=Object.assign,ye={};Object.freeze(ye),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var be={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(ze in be)be.hasOwnProperty(ze)&&n(ze,be[ze]);o.prototype=a.prototype,be=s.prototype=new o,be.constructor=s,M(be,a.prototype),be.isPureReactComponent=!0;var xe=Array.isArray,Se=Symbol.for(`react.client.reference`),N={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ce=Object.prototype.hasOwnProperty,we=console.createTask?console.createTask:function(){return null};be={react_stack_bottom_frame:function(e){return e()}};var Te,Ee,De={},Oe=be.react_stack_bottom_frame.bind(be,m)(),ke=we(f(m)),Ae=!1,je=/\/+/g,Me=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ne=!1,Pe=null,Fe=0,Ie=!1,Le=!1,Re=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:O;be=Object.freeze({__proto__:null,c:function(e){return D().useMemoCache(e)}});var ze={map:ee,forEach:function(e,t,n){ee(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ee(e,function(){t++}),t},toArray:function(e){return ee(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=he,e.Children=ze,e.Component=a,e.Fragment=ae,e.Profiler=se,e.PureComponent=s,e.StrictMode=oe,e.Suspense=de,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,e.__COMPILER_RUNTIME=be,e.act=function(e){var t=N.actQueue,n=Fe;Fe++;var r=N.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){N.thrownErrors.push(e)}if(0<N.thrownErrors.length)throw k(t,n),e=ne(N.thrownErrors),N.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Re(function(){i||Ie||(Ie=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(k(t,n),n===0){try{re(r),O(function(){return A(i,e,a)})}catch(e){N.thrownErrors.push(e)}if(0<N.thrownErrors.length){var o=ne(N.thrownErrors);N.thrownErrors.length=0,a(o)}}else e(i)},function(e){k(t,n),0<N.thrownErrors.length?(e=ne(N.thrownErrors),N.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(k(t,n),n===0&&(re(r),r.length!==0&&Re(function(){i||Ie||(Ie=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),N.actQueue=null),0<N.thrownErrors.length)throw e=ne(N.thrownErrors),N.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(N.actQueue=r,O(function(){return A(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=N.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=M({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(Ce.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!Ce.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:le,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ce,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in Ee||!(`__self`in t)||`key`in t||(Ee=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)Ce.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>N.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):Oe,c?we(f(e)):ke)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===pe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:ue,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:me,_payload:e,_init:E},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:pe,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=N.T,n={};n._updatedFibers=new Set,N.T=n;try{var r=e(),i=N.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(N.asyncTransitions++,r.then(te,te),r.then(c,Me))}catch(e){Me(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),N.T=t}},e.unstable_useCacheRefresh=function(){return D().useCacheRefresh()},e.use=function(e){return D().use(e)},e.useActionState=function(e,t,n){return D().useActionState(e,t,n)},e.useCallback=function(e,t){return D().useCallback(e,t)},e.useContext=function(e){var t=D();return e.$$typeof===ce&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return D().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return D().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),D().useEffect(e,t)},e.useEffectEvent=function(e){return D().useEffectEvent(e)},e.useId=function(){return D().useId()},e.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),D().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),D().useLayoutEffect(e,t)},e.useMemo=function(e,t){return D().useMemo(e,t)},e.useOptimistic=function(e,t){return D().useOptimistic(e,t)},e.useReducer=function(e,t,n){return D().useReducer(e,t,n)},e.useRef=function(e){return D().useRef(e)},e.useState=function(e){return D().useState(e)},e.useSyncExternalStore=function(e,t,n){return D().useSyncExternalStore(e,t,n)},e.useTransition=function(){return D().useTransition()},e.version=`19.2.7`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{(function(){function t(){if(x=!1,T){var t=e.unstable_now();D=t;var n=!0;try{a:{y=!1,b&&(b=!1,C(ee),ee=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?te():T=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y)if(r(p)!==null)y=!0,T||(T=!0,te());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}function c(){return x?!0:!(e.unstable_now()-D<E)}function l(t,n){ee=S(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout==`function`?setTimeout:null,C=typeof clearTimeout==`function`?clearTimeout:null,w=typeof setImmediate<`u`?setImmediate:null,T=!1,ee=-1,E=5,D=-1;if(typeof w==`function`)var te=function(){w(t)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,ne=O.port2;O.port1.onmessage=t,te=function(){ne.postMessage(null)}}else te=function(){S(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(C(ee),ee=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,T||(T=!0,te()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=f.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
15
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
16
+ 2. You might be breaking the Rules of Hooks
17
+ 3. You might have more than one copy of React in the same app
18
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=d(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),f=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=f.T,n=l.p;try{if(f.T=null,l.p=2,e)return e()}finally{f.T=t,l.p=n,l.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.7`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),h=o(((e,t)=>{t.exports=m()})),g=o((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Gf(e)?e.slice():Df({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Gf(e)?e.slice():Df({},e);return r+1===t.length?(o[n[r]]=o[a],Gf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Gf(e)?e.slice():Df({},e);return n+1===t.length?(Gf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function l(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function u(){}function f(){}function m(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function g(e,t,n,r){return new mr(e,t,n,r)}function _(e,t){e.context===Ng&&(Zd(e.current,2,t,e,null,null),tl())}function v(e,t){if(Pg!==null){var n=t.staleFamilies;t=t.updatedFamilies,Dl(),pr(e.current,t,n),tl()}}function y(e){Pg=e}function b(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function S(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 C(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function w(e){if(x(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function T(e){var t=e.alternate;if(!t){if(t=x(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return w(i),e;if(a===r)return w(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function ee(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ee(e),t!==null)return t;e=e.sibling}return null}function E(e){return typeof e!=`object`||!e?null:(e=Uf&&e[Uf]||e[`@@iterator`],typeof e==`function`?e:null)}function D(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Wf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case jf:return`Fragment`;case Nf:return`Profiler`;case Mf:return`StrictMode`;case Lf:return`Suspense`;case Rf:return`SuspenseList`;case Vf:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case Af:return`Portal`;case Ff:return e.displayName||`Context`;case Pf:return(e._context.displayName||`Context`)+`.Consumer`;case If:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case zf:return t=e.displayName||null,t===null?D(e.type)||`Memo`:t;case Bf:t=e._payload,e=e._init;try{return D(e(t))}catch{}}return null}function te(e){return typeof e.tag==`number`?O(e):typeof e.name==`string`?e.name:null}function O(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return D(t);case 8:return t===Mf?`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 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return O(e.return)}return null}function ne(e){return{current:e}}function k(e,t){0>Xf?console.error(`Unexpected pop.`):(t!==Yf[Xf]&&console.error(`Unexpected Fiber popped.`),e.current=Jf[Xf],Jf[Xf]=null,Yf[Xf]=null,Xf--)}function A(e,t,n){Xf++,Jf[Xf]=e.current,Yf[Xf]=n,e.current=t}function re(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function ie(e,t){A($f,t,e),A(Qf,e,e),A(Zf,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Lu(t):XS;break;default:if(n=t.tagName,t=t.namespaceURI)t=Lu(t),t=Ru(t,n);else switch(n){case`svg`:t=ZS;break;case`math`:t=QS;break;default:t=XS}}n=n.toLowerCase(),n=Bt(null,n),n={context:t,ancestorInfo:n},k(Zf,e),A(Zf,n,e)}function j(e){k(Zf,e),k(Qf,e),k($f,e)}function ae(){return re(Zf.current)}function oe(e){e.memoizedState!==null&&A(ep,e,e);var t=re(Zf.current),n=e.type,r=Ru(t.context,n);n=Bt(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(A(Qf,e,e),A(Zf,r,e))}function se(e){Qf.current===e&&(k(Zf,e),k(Qf,e)),ep.current===e&&(k(ep,e),DC._currentValue=EC)}function ce(){}function le(){if(tp===0){np=console.log,rp=console.info,ip=console.warn,W=console.error,ap=console.group,op=console.groupCollapsed,sp=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}tp++}function ue(){if(tp--,tp===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Df({},e,{value:np}),info:Df({},e,{value:rp}),warn:Df({},e,{value:ip}),error:Df({},e,{value:W}),group:Df({},e,{value:ap}),groupCollapsed:Df({},e,{value:op}),groupEnd:Df({},e,{value:sp})})}0>tp&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function de(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
19
+ `)&&(e=e.slice(29)),t=e.indexOf(`
20
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
21
+ `,t)),t!==-1)e=e.slice(0,t);else return``;return e}function fe(e){if(cp===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);cp=t&&t[1]||``,lp=-1<e.stack.indexOf(`
22
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
23
+ `+cp+e+lp}function pe(e,t){if(!e||up)return``;var n=dp.get(e);if(n!==void 0)return n;up=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=U.H,U.H=null,le();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
24
+ `),u=c.split(`
25
+ `);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
26
+ `+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&dp.set(e,d),d}while(1<=a&&0<=o);break}}}finally{up=!1,U.H=r,ue(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?fe(l):``,typeof e==`function`&&dp.set(e,l),l}function me(e,t){switch(e.tag){case 26:case 27:case 5:return fe(e.type);case 16:return fe(`Lazy`);case 13:return e.child!==t&&t!==null?fe(`Suspense Fallback`):fe(`Suspense`);case 19:return fe(`SuspenseList`);case 0:case 15:return pe(e.type,!1);case 11:return pe(e.type.render,!1);case 1:return pe(e.type,!0);case 31:return fe(`Activity`);default:return``}}function he(e){try{var t=``,n=null;do{t+=me(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=de(l),d=u.lastIndexOf(`
27
+ `),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
28
+ `+f;break a}}p=fe(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
29
+ Error generating stack: `+e.message+`
30
+ `+e.stack}}function ge(e){return(e=e?e.displayName||e.name:``)?fe(e):``}function _e(){if(fp===null)return null;var e=fp._debugOwner;return e==null?null:te(e)}function ve(){if(fp===null)return``;var e=fp;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=fe(e.type);break;case 13:t+=fe(`Suspense`);break;case 19:t+=fe(`SuspenseList`);break;case 31:t+=fe(`Activity`);break;case 30:case 0:case 15:case 1:e._debugOwner||t!==``||(t+=ge(e.type));break;case 11:e._debugOwner||t!==``||(t+=ge(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=de(r);i!==``&&(t+=`
31
+ `+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
32
+ `+de(a))}else break;var o=t}catch(e){o=`
33
+ Error generating stack: `+e.message+`
34
+ `+e.stack}return o}function M(e,t,n,r,i,a,o){var s=fp;ye(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{ye(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function ye(e){U.getCurrentStack=e===null?null:ve,pp=!1,fp=e}function be(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function xe(e){try{return Se(e),!1}catch{return!0}}function Se(e){return``+e}function N(e,t){if(xe(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,be(e)),Se(e)}function Ce(e,t){if(xe(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,be(e)),Se(e)}function we(e){if(xe(e))return console.error(`Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.`,be(e)),Se(e)}function Te(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Op=t.inject(e),kp=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function Ee(e){if(typeof Ep==`function`&&Dp(e),kp&&typeof kp.setStrictMode==`function`)try{kp.setStrictMode(Op,e)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function De(e){return e>>>=0,e===0?32:31-(Np(e)/Pp|0)|0}function Oe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(`Should have found matching lanes. This is a bug in React.`),e}}function ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Oe(n))):i=Oe(o):i=Oe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Oe(n))):i=Oe(o)):i=Oe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ae(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function Me(){var e=Lp;return Lp<<=1,!(Lp&62914560)&&(Lp=4194304),e}function Ne(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Mp(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ie(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Mp(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Le(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mp(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Re(e,t){var n=t&-t;return n=n&42?1:ze(n),(n&(e.suspendedLanes|t))===0?n:0}function ze(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Be(e,t,n){if(jp)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Mp(n),i=1<<r;e[r].add(t),n&=~i}}function Ve(e,t){if(jp)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Mp(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function He(e){return e&=-e,Rp!==0&&Rp<e?zp!==0&&zp<e?e&134217727?Bp:Vp:zp:Rp}function Ue(){var e=Kf.p;return e===0?(e=window.event,e===void 0?Bp:lf(e.type)):e}function We(e,t){var n=Kf.p;try{return Kf.p=e,t()}finally{Kf.p=n}}function Ge(e){delete e[Up],delete e[Wp],delete e[Kp],delete e[qp],delete e[Jp]}function Ke(e){var t=e[Up];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gp]||n[Up]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vd(e);e!==null;){if(n=e[Up])return n;e=vd(e)}return t}e=n,n=e.parentNode}return null}function qe(e){if(e=e[Up]||e[Gp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Je(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function Ye(e){var t=e[Yp];return t||=e[Yp]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Xe(e){e[Xp]=!0}function Ze(e,t){Qe(e,t),Qe(e+`Capture`,t)}function Qe(e,t){Qp[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Qp[e]=t;var n=e.toLowerCase();for($p[n]=e,e===`onDoubleClick`&&($p.ondblclick=e),e=0;e<t.length;e++)Zp.add(t[e])}function $e(e,t){em[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function et(e){return mp.call(rm,e)?!0:mp.call(nm,e)?!1:tm.test(e)?rm[e]=!0:(nm[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function tt(e,t,n){if(et(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===``&&!0===n?!0:(N(n,t),e===``+n?n:e)}}function nt(e,t,n){if(et(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}N(n,t),e.setAttribute(t,``+n)}}function rt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}N(n,t),e.setAttribute(t,``+n)}}function it(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}N(r,n),e.setAttributeNS(t,n,``+r)}}function at(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return we(e),e;default:return``}}function ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function st(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){we(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){we(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ct(e){if(!e._valueTracker){var t=ot(e)?`checked`:`value`;e._valueTracker=st(e,t,``+e[t])}}function lt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ot(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function ut(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function dt(e){return e.replace(im,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function ft(e,t){t.checked===void 0||t.defaultChecked===void 0||om||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,_e()||`A component`,t.type),om=!0),t.value===void 0||t.defaultValue===void 0||am||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,_e()||`A component`,t.type),am=!0)}function pt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(N(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+at(t)):e.value!==``+at(t)&&(e.value=``+at(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):ht(e,o,at(n)):ht(e,o,at(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(N(s,`name`),e.name=``+at(s)):e.removeAttribute(`name`)}function mt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(N(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){ct(e);return}n=n==null?``:``+at(n),t=t==null?n:``+at(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(N(o,`name`),e.name=o),ct(e)}function ht(e,t,n){t===`number`&&ut(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function gt(e,t){t.value??(typeof t.children==`object`&&t.children!==null?Tf.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||cm||(cm=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||lm||(lm=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||sm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),sm=!0)}function _t(){var e=_e();return e?`
35
+
36
+ Check the render method of \``+e+"`.":``}function vt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+at(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function yt(e,t){for(e=0;e<dm.length;e++){var n=dm[e];if(t[n]!=null){var r=Gf(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,_t()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,_t())}}t.value===void 0||t.defaultValue===void 0||um||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),um=!0)}function bt(e,t){t.value===void 0||t.defaultValue===void 0||fm||(console.error(`%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`,_e()||`A component`),fm=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function xt(e,t,n){if(t!=null&&(t=``+at(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+at(n)}function St(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Gf(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=at(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),ct(e)}function Ct(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ct(e.children[0],t):e}function wt(e){return` `+` `.repeat(e)}function Tt(e){return`+ `+` `.repeat(e)}function Et(e){return`- `+` `.repeat(e)}function Dt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Ot(e,t){return pm.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function kt(e,t,n){var r=120-2*n;if(t===null)return Tt(n)+Ot(e,r)+`
37
+ `;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),Tt(n)+Ot(e,r)+`
38
+ `+Et(n)+Ot(t,r)+`
39
+ `}return wt(n)+Ot(e,r)+`
40
+ `}function At(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function jt(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Gf(e))return`[...]`;if(e.$$typeof===kf)return(t=D(e.type))?`<`+t+`>`:`<...>`;var n=At(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=jt(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function Mt(e,t){return typeof e!=`string`||pm.test(e)?`{`+jt(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function Nt(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=Mt(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
41
+ `:0<r?n+`<`+e+` `+i.join(` `)+`>
42
+ `:n+`<`+e+`
43
+ `+n+` `+i.join(`
44
+ `+n+` `)+`
45
+ `+n+`>
46
+ `}function Pt(e,t,n){var r=``,i=Df({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=jt(e[a],o);t.hasOwnProperty(a)?(o=jt(t[a],o),r+=Tt(n)+a+`: `+s+`
47
+ `,r+=Et(n)+a+`: `+o+`
48
+ `):r+=Tt(n)+a+`: `+s+`
49
+ `}for(var c in i)i.hasOwnProperty(c)&&(e=jt(i[c],120-2*n-c.length-2),r+=Et(n)+c+`: `+e+`
50
+ `);return r}function Ft(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=Nt(e,t,wt(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=Mt(l,s);s=Mt(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&At(l)===`Object`&&At(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=wt(r+1)+o+`={{
51
+ `+Pt(l,c,r+2)+wt(r+1)+`}}
52
+ `:(i+=Tt(r+1)+o+`=`+u+`
53
+ `,i+=Et(r+1)+o+`=`+s+`
54
+ `)}else i+=wt(r+1)+o+`=`+Mt(t[o],s)+`
55
+ `}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=Et(r+1)+e+`=`+Mt(n[e],t)+`
56
+ `}}),i=i===``?wt(r)+`<`+e+`>
57
+ `:wt(r)+`<`+e+`
58
+ `+i+wt(r)+`>
59
+ `}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=kt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+kt(``+t,null,r+1):i+kt(``+t,void 0,r+1)),i}function It(e,t){var n=Dt(e);if(n===null){for(n=``,e=e.child;e;)n+=It(e,t),e=e.sibling;return n}return wt(t)+`<`+n+`>
60
+ `}function Lt(e,t){var n=Ct(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return wt(t)+`...
61
+ `+Lt(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=wt(t)+`<`+a+`>
62
+ `,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=kt(i,e.serverProps,t),t++;else if(a=Dt(e.fiber),a!==null)if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=Mt(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=wt(r)+`<`+a+s+`>
63
+ `,t++}else e.serverProps===null?(r=Nt(a,i,Tt(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=Ft(a,i,e.serverProps,t),t++);var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=Lt(o,t),a++):l+=It(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=wt(t)+`...
64
+ `),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(Et(t)+Ot(a,120-2*t)+`
65
+ `):l+Nt(a.type,a.props,Et(t));return n+r+l}function Rt(e){try{return`
66
+
67
+ `+Lt(e,0)}catch{return``}}function zt(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:Rt(i).replaceAll(/^[+-]/gm,`>`)}function Bt(e,t){var n=Df({},e||vm),r={tag:t};return hm.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),gm.indexOf(t)!==-1&&(n.pTagInButtonScope=null),mm.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Vt(e,t,n){switch(t){case`select`:return e===`hr`||e===`option`||e===`optgroup`||e===`script`||e===`template`||e===`#text`;case`optgroup`:return e===`option`||e===`#text`;case`option`:return e===`#text`;case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return _m.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function Ht(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function Ut(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Wt(e,t){t||=vm;var n=t.current;if(t=(n=Vt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:Ht(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,ym[t])return!1;ym[t]=!0;var i=(t=fp)?Ut(t.return,r):null,a=t!==null&&i!==null?zt(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.`),console.error(`In HTML, %s cannot be a child of <%s>.%s
68
+ This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
69
+ This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||M(i,function(){console.error(`<%s> cannot contain a nested %s.
70
+ See this log for the ancestor stack trace.`,r,o)})),!1}function Gt(e,t,n){if(n||Vt(`#text`,t,!1))return!0;if(n=`#text|`+t,ym[n])return!1;ym[n]=!0;var r=(n=fp)?Ut(n,t):null;return n=n!==null&&r!==null?zt(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
71
+ This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
72
+ This will cause a hydration error.%s`,t,n),!1}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function qt(e){return e.replace(Tm,function(e,t){return t.toUpperCase()})}function Jt(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?Dm.hasOwnProperty(t)&&Dm[t]||(Dm[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,qt(t.replace(wm,`ms-`)))):Cm.test(t)?Dm.hasOwnProperty(t)&&Dm[t]||(Dm[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!Em.test(n)||Om.hasOwnProperty(n)&&Om[n]||(Om[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Em,``))),typeof n==`number`&&(isNaN(n)?km||(km=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Am||(Am=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||jm.has(t)?t===`float`?e.cssFloat=n:(Ce(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function P(e,t,n){if(t!=null&&typeof t!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=bm[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=bm[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=bm[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&Jt(e,f,l)}else for(r in t)t.hasOwnProperty(r)&&Jt(e,r,t[r])}function Yt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function Xt(e){return Pm.get(e)||e}function Zt(e,t){if(mp.call(Lm,t)&&Lm[t])return!0;if(zm.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Im.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Lm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Lm[t]=!0}if(Rm.test(t)){if(e=t.toLowerCase(),e=Im.hasOwnProperty(e)?e:null,e==null)return Lm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Lm[t]=!0)}return!0}function Qt(e,t){var n=[],r;for(r in t)Zt(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function $t(e,t,n,r){if(mp.call(Vm,t)&&Vm[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Vm[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Vm[t]=!0;if(Hm.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Vm[t]=!0}else if(Hm.test(t))return Um.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Vm[t]=!0;if(Wm.test(t)||Gm.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Vm[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Vm[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Vm[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Vm[t]=!0;if(Fm.hasOwnProperty(i)){if(i=Fm[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Vm[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Vm[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
73
+
74
+ If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
75
+
76
+ If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Vm[t]=!0)}case`function`:case`symbol`:return Vm[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Vm[t]=!0}}return!0}function en(e,t,n){var r=[],i;for(i in t)$t(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function tn(e){return Km.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function F(){}function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function rn(e){var t=qe(e);if(t&&(e=t.stateNode)){var n=e[Wp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(pt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(N(t,`name`),n=n.querySelectorAll(`input[name="`+dt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Wp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");pt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&lt(r)}break a;case`textarea`:xt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&vt(e,!!n.multiple,t,!1)}}}function an(e,t,n){if(Xm)return e(t,n);Xm=!0;try{return e(t)}finally{if(Xm=!1,(Jm!==null||Ym!==null)&&(tl(),Jm&&(t=Jm,e=Ym,Ym=Jm=null,rn(t),e)))for(t=0;t<e.length;t++)rn(e[t])}}function on(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Wp]||null;if(r===null)return null;n=r[t];a: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 a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function sn(){if(nh)return nh;var e,t=th,n=t.length,r,i=`value`in eh?eh.value:eh.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return nh=i.slice(e,1<r?1-r:void 0)}function cn(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 ln(){return!0}function un(){return!1}function dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?ln:un,this.isPropagationStopped=un,this}return Df(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}function fn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bh[e])?!!t[e]:!1}function pn(){return fn}function mn(e,t){switch(e){case`keyup`:return Dh.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Oh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function gn(e,t){switch(e){case`compositionend`:return hn(t);case`keypress`:return t.which===Nh?(Fh=!0,Ph):null;case`textInput`:return e=t.data,e===Ph&&Fh?null:e;default:return null}}function _n(e,t){if(Ih)return e===`compositionend`||!kh&&mn(e,t)?(e=sn(),nh=th=eh=null,Ih=!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 Mh&&t.locale!==`ko`?null:t.data;default:return null}}function vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Lh[e.type]:t===`textarea`}function yn(e){if(!Zm)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function bn(e,t,n,r){Jm?Ym?Ym.push(r):Ym=[r]:Jm=r,t=uu(t,`onChange`),0<t.length&&(n=new ih(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function xn(e){ru(e,0)}function Sn(e){if(lt(Je(e)))return e}function I(e,t){if(e===`change`)return t}function Cn(){Rh&&(Rh.detachEvent(`onpropertychange`,wn),zh=Rh=null)}function wn(e){if(e.propertyName===`value`&&Sn(zh)){var t=[];bn(t,zh,e,nn(e)),an(xn,t)}}function Tn(e,t,n){e===`focusin`?(Cn(),Rh=t,zh=n,Rh.attachEvent(`onpropertychange`,wn)):e===`focusout`&&Cn()}function En(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sn(zh)}function Dn(e,t){if(e===`click`)return Sn(t)}function On(e,t){if(e===`input`||e===`change`)return Sn(t)}function kn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function An(e,t){if(Vh(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!mp.call(t,i)||!Vh(e[i],t[i]))return!1}return!0}function jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mn(e,t){var n=jn(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=jn(n)}}function Nn(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nn(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ut(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ut(e.document)}return t}function Fn(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 In(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kh||Uh==null||Uh!==ut(r)||(r=Uh,`selectionStart`in r&&Fn(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}),Gh&&An(Gh,r)||(Gh=r,r=uu(Wh,`onSelect`),0<r.length&&(t=new ih(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Uh)))}function Ln(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function Rn(e){if(Jh[e])return Jh[e];if(!qh[e])return e;var t=qh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yh)return Jh[e]=t[n];return e}function zn(e,t){rg.set(e,t),Ze(t,[e])}function Bn(e){for(var t=dg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r)if(Gf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==dg&&t!==mg)return fg;t=mg}else return fg;else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==dg&&t!==pg)return fg;t=pg}}return t}function Vn(e,t,n,r){for(var i in e)mp.call(e,i)&&i[0]!==`_`&&Hn(i,e[i],t,n,r)}function Hn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}else{if(t.$$typeof===kf){var a=D(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&Hn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Gf(t.children)||0<t.children.length)&&(e=!0):mp.call(t,l)&&l[0]!==`_`&&Hn(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=Bn(t),l===pg||l===dg){t=JSON.stringify(t);break}else if(l===mg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Hn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Hn(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,Hn(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&Vn(t,n,r+1,i);return}case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===ug?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function Un(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([hg+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([hg+i,`…`],[gg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof)if(s.$$typeof===kf){if(o.type===s.type&&o.key===s.key){o=D(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([hg+i,o],[gg+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[_g+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,Un(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([_g+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Hn(a,o,n,r,hg),Hn(a,s,n,r,gg)}i=!1}}else n.push([gg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function Wn(e){xg=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function L(e,t,n,r){vg&&(wg.start=t,wg.end=n,Cg.color=`warning`,Cg.tooltipText=r,Cg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,wg)):performance.measure(r,wg))}function Gn(e,t,n){L(e,t,n,`Reconnect`)}function Kn(e,t,n,r,i){var a=O(e);if(a!==null&&vg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Tg],l=Un(o.memoizedProps,l,c,0),1<c.length&&(l&&!Sg&&(o.lanes&i)===0&&100<e.actualDuration?(Sg=!0,c[0]=Dg,Cg.color=`warning`,Cg.tooltipText=Eg):(Cg.color=r,Cg.tooltipText=a),Cg.properties=c,wg.start=t,wg.end=n,s==null?performance.measure(`​`+a,wg):s.run(performance.measure.bind(performance,`​`+a,wg)))):s==null?console.timeStamp(a,t,n,yg,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,yg,void 0,r))}}function qn(e,t,n,r){if(vg){var i=O(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&Hn(`key`,e.key,o,0,``),e.memoizedProps!==null&&Vn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:yg,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,`​`+i,e)):performance.measure(`​`+i,e)}}}function Jn(e,t,n,r,i){if(i!==null){if(vg){var a=O(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&Hn(`key`,e.key,r,0,``),e.memoizedProps!==null&&Vn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:yg,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,`​`+a,t)):performance.measure(`​`+a,t)}}}else a=O(e),a!==null&&vg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,yg,void 0,i)):console.timeStamp(a,t,n,yg,void 0,i))}function Yn(e,t,n,r){if(vg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,xg,bg,i)):console.timeStamp(n,e,t,xg,bg,i)}}function Xn(e,t,n,r){!vg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,xg,bg,n)):console.timeStamp(`Prewarm`,e,t,xg,bg,n))}function Zn(e,t,n,r){!vg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,xg,bg,n)):console.timeStamp(`Suspended`,e,t,xg,bg,n))}function Qn(e,t,n,r,i,a){if(vg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:xg,trackGroup:bg,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function $n(e,t,n,r){!vg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,xg,bg,`error`)):console.timeStamp(`Errored`,e,t,xg,bg,`error`))}function er(e,t,n,r){!vg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,xg,bg,`secondary-light`)):console.timeStamp(n,e,t,xg,bg,`secondary-light`))}function tr(e,t,n,r,i){if(vg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:xg,trackGroup:bg,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function nr(e,t,n){!vg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,xg,bg,`secondary-dark`)):console.timeStamp(`Animating`,e,t,xg,bg,`secondary-dark`))}function rr(){for(var e=jg,t=Mg=jg=0;t<e;){var n=Ag[t];Ag[t++]=null;var r=Ag[t];Ag[t++]=null;var i=Ag[t];Ag[t++]=null;var a=Ag[t];if(Ag[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&sr(n,i,a)}}function ir(e,t,n,r){Ag[jg++]=e,Ag[jg++]=t,Ag[jg++]=n,Ag[jg++]=r,Mg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ar(e,t,n,r){return ir(e,t,n,r),cr(e)}function or(e,t){return ir(e,null,null,t),cr(e)}function sr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Og||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Mp(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function cr(e){if($x>Qx)throw iS=$x=0,aS=eS=null,Error(`Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.`);iS>rS&&(iS=0,aS=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&zl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&zl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function lr(e){if(Pg===null)return e;var t=Pg(e);return t===void 0?e:t.current}function ur(e){if(Pg===null)return e;var t=Pg(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=lr(e.render),e.render!==t)?(t={$$typeof:If,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function dr(e,t){if(Pg===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Bf)&&(r=!0);break;case 11:(i===If||i===Bf)&&(r=!0);break;case 14:case 15:(i===zf||i===Bf)&&(r=!0);break;default:return!1}return!!(r&&(e=Pg(n),e!==void 0&&e===Pg(t)))}function fr(e){Pg!==null&&typeof WeakSet==`function`&&(Fg===null&&(Fg=new WeakSet),Fg.add(e))}function pr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(Pg===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Pg(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Fg!==null&&(Fg.has(e)||i!==null&&Fg.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=or(e,2),i!==null&&Xc(i,e,2)),a===null||r||pr(a,t,n),o===null)break;e=o}while(1)}function mr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Hg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function hr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gr(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=lr(e.type);break;case 1:n.type=lr(e.type);break;case 11:n.type=ur(e.type)}return n}function _r(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function vr(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)hr(e)&&(o=1),s=lr(s);else if(typeof e==`string`)o=ae(),o=Vd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Vf:return t=g(31,n,t,i),t.elementType=Vf,t.lanes=a,t;case jf:return br(n.children,i,a,t);case Mf:o=8,i|=zg,i|=Bg;break;case Nf:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,r|Rg),t.elementType=Nf,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Lf:return t=g(13,n,t,i),t.elementType=Lf,t.lanes=a,t;case Rf:return t=g(19,n,t,i),t.elementType=Rf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Ff:o=10;break a;case Pf:o=9;break a;case If:o=11,s=ur(s);break a;case zf:o=14;break a;case Bf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:Gf(e)?n=`array`:e!==void 0&&e.$$typeof===kf?(n=`<`+(D(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?te(r):null)&&(s+=`
77
+
78
+ Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=g(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function yr(e,t,n){return t=vr(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function br(e,t,n,r){return e=g(7,e,r,t),e.lanes=n,e}function xr(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function Sr(e){var t=g(18,null,null,Ig);return t.stateNode=e,t}function Cr(e,t,n){return t=g(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wr(e,t){if(typeof e==`object`&&e){var n=Ug.get(e);return n===void 0?(t={value:e,source:t,stack:he(t)},Ug.set(e,t),t):n}return{value:e,source:t,stack:he(t)}}function Tr(e,t){jr(),Wg[Gg++]=qg,Wg[Gg++]=Kg,Kg=e,qg=t}function Er(e,t,n){jr(),Jg[Yg++]=Zg,Jg[Yg++]=Qg,Jg[Yg++]=Xg,Xg=e;var r=Zg;e=Qg;var i=32-Mp(r)-1;r&=~(1<<i),n+=1;var a=32-Mp(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Zg=1<<32-Mp(t)+i|n<<i|r,Qg=a+e}else Zg=1<<a|n<<i|r,Qg=e}function Dr(e){jr(),e.return!==null&&(Tr(e,1),Er(e,1,0))}function Or(e){for(;e===Kg;)Kg=Wg[--Gg],Wg[Gg]=null,qg=Wg[--Gg],Wg[Gg]=null;for(;e===Xg;)Xg=Jg[--Yg],Jg[Yg]=null,Qg=Jg[--Yg],Jg[Yg]=null,Zg=Jg[--Yg],Jg[Yg]=null}function kr(){return jr(),Xg===null?null:{id:Zg,overflow:Qg}}function Ar(e,t){jr(),Jg[Yg++]=Zg,Jg[Yg++]=Qg,Jg[Yg++]=Xg,Zg=t.id,Qg=t.overflow,Xg=e}function jr(){t_||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Mr(e,t){if(e.return===null){if(r_===null)r_={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(r_.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);r_.distanceFromLeaf>t&&(r_.distanceFromLeaf=t)}return r_}var n=Mr(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Nr(){t_&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function R(e,t){n_||(e=Mr(e,0),e.serverProps=null,t!==null&&(t=hd(t),e.serverTail.push(t)))}function Pr(e){var t=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=``,r=r_;throw r!==null&&(r_=null,n=Rt(r)),zr(wr(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
+
80
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
81
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
+ - Date formatting in a user's locale which doesn't match the server.
83
+ - External changing data without sending a snapshot of it along with the HTML.
84
+ - Invalid HTML tag nesting.
85
+
86
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
+
88
+ https://react.dev/link/hydration-mismatch`+n),e)),o_}function Fr(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Up]=e,t[Wp]=r,pu(n,r),n){case`dialog`:iu(`cancel`,t),iu(`close`,t);break;case`iframe`:case`object`:case`embed`:iu(`load`,t);break;case`video`:case`audio`:for(n=0;n<yS.length;n++)iu(yS[n],t);break;case`source`:iu(`error`,t);break;case`img`:case`image`:case`link`:iu(`error`,t),iu(`load`,t);break;case`details`:iu(`toggle`,t);break;case`input`:$e(`input`,r),iu(`invalid`,t),ft(t,r),mt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:gt(t,r);break;case`select`:$e(`select`,r),iu(`invalid`,t),yt(t,r);break;case`textarea`:$e(`textarea`,r),iu(`invalid`,t),bt(t,r),St(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||yu(t.textContent,n)?(r.popover!=null&&(iu(`beforetoggle`,t),iu(`toggle`,t)),r.onScroll!=null&&iu(`scroll`,t),r.onScrollEnd!=null&&iu(`scrollend`,t),r.onClick!=null&&(t.onclick=F),t=!0):t=!1,t||Pr(e,!0)}function Ir(e){for($g=e.return;$g;)switch($g.tag){case 5:case 31:case 13:a_=!1;return;case 27:case 3:a_=!0;return;default:$g=$g.return}}function Lr(e){if(e!==$g)return!1;if(!t_)return Ir(e),t_=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||zu(e.type,e.memoizedProps)),n=!n),n&&e_){for(n=e_;n;){var r=Mr(e,0),i=hd(n);r.serverTail.push(i),n=i.type===`Suspense`?_d(n):md(n.nextSibling)}Pr(e)}if(Ir(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);e_=_d(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);e_=_d(e)}else t===27?(t=e_,Xu(e.type)?(e=lC,lC=null,e_=e):e_=t):e_=$g?md(e.stateNode.nextSibling):null;return!0}function Rr(){e_=$g=null,n_=t_=!1}function z(){var e=i_;return e!==null&&(xx===null?xx=e:xx.push.apply(xx,e),i_=null),e}function zr(e){i_===null?i_=[e]:i_.push(e)}function Br(){var e=r_;if(e!==null){r_=null;for(var t=Rt(e);0<e.children.length;)e=e.children[0];M(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
+
90
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
91
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
+ - Date formatting in a user's locale which doesn't match the server.
93
+ - External changing data without sending a snapshot of it along with the HTML.
94
+ - Invalid HTML tag nesting.
95
+
96
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
+
98
+ %s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Vr(){d_=u_=null,f_=!1}function Hr(e,t,n){A(s_,t._currentValue,e),t._currentValue=n,A(c_,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==l_&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=l_}function Ur(e,t){e._currentValue=s_.current;var n=c_.current;k(c_,t),e._currentRenderer=n,k(s_,t)}function Wr(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function Gr(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Wr(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Wr(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Kr(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;Vh(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===ep.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[DC]:e.push(DC))}i=i.return}e!==null&&Gr(t,e,n,r),t.flags|=262144}function qr(e){for(e=e.firstContext;e!==null;){if(!Vh(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jr(e){u_=e,d_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yr(e){return f_&&console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),Zr(u_,e)}function Xr(e,t){return u_===null&&Jr(e),Zr(e,t)}function Zr(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},d_===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);d_=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else d_=d_.next=t;return n}function Qr(){return{controller:new p_,data:new Map,refCount:0}}function $r(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function ei(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&m_(h_,function(){e.controller.abort()})}function ti(e,t,n){e&127?0>M_&&(M_=__(),N_=v_(t),F_=t,n!=null&&(I_=O(n)),(Jb&(zb|Bb))!==Rb&&(A_=!0,P_=y_),e=Hu(),t=Vu(),e!==z_||t!==R_?z_=-1.1:t!==null&&(P_=y_),L_=e,R_=t):e&4194048&&0>U_&&(U_=__(),G_=v_(t),K_=t,n!=null&&(q_=O(n)),0>H_)&&(e=Hu(),t=Vu(),(e!==X_||t!==Y_)&&(X_=-1.1),J_=e,Y_=t)}function ni(e){if(0>M_){M_=__(),N_=e._debugTask==null?null:e._debugTask,(Jb&(zb|Bb))!==Rb&&(P_=y_);var t=Hu(),n=Vu();t!==z_||n!==R_?z_=-1.1:n!==null&&(P_=y_),L_=t,R_=n}0>U_&&(U_=__(),G_=e._debugTask==null?null:e._debugTask,0>H_)&&(e=Hu(),t=Vu(),(e!==X_||t!==Y_)&&(X_=-1.1),J_=e,Y_=t)}function ri(){var e=E_;return E_=0,e}function ii(e){var t=E_;return E_=e,t}function ai(e){var t=E_;return E_+=e,t}function oi(){O_=G=-1.1}function si(){var e=G;return G=-1.1,e}function ci(e){0<=e&&(G=e)}function li(){var e=D_;return D_=-0,e}function ui(e){0<=e&&(D_=e)}function di(){var e=k_;return k_=null,e}function fi(){var e=A_;return A_=!1,e}function pi(e){T_=__(),0>e.actualStartTime&&(e.actualStartTime=T_)}function mi(e){if(0<=T_){var t=__()-T_;e.actualDuration+=t,e.selfBaseDuration=t,T_=-1}}function hi(e){if(0<=T_){var t=__()-T_;e.actualDuration+=t,T_=-1}}function gi(){if(0<=T_){var e=__(),t=e-T_;T_=-1,E_+=t,D_+=t,O_=e}}function _i(e){k_===null&&(k_=[]),k_.push(e),w_===null&&(w_=[]),w_.push(e)}function vi(){T_=__(),0>G&&(G=T_)}function yi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function bi(e,t){if(ov===null){var n=ov=[];sv=0,cv=Ql(),lv={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return sv++,t.then(xi,xi),t}function xi(){if(--sv===0&&(-1<U_||(H_=-1.1),ov!==null)){lv!==null&&(lv.status=`fulfilled`);var e=ov;ov=null,cv=0,lv=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Si(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Ci(){var e=dv.current;return e===null?Yb.pooledCache:e}function wi(e,t){t===null?A(dv,dv.current,e):A(dv,t.pool,e)}function Ti(){var e=Ci();return e===null?null:{parent:g_._currentValue,pool:e}}function Ei(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Di(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Oi(e,t,n){U.actQueue!==null&&(U.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(F,F),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ji(e),e;default:if(typeof t.status==`string`)t.then(F,F);else{if(e=Yb,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ji(e),e}throw Wv=t,Gv=!0,Bv}}function ki(e){try{return zv(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Wv=e,Gv=!0,Bv):e}}function Ai(){if(Wv===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Wv;return Wv=null,Gv=!1,e}function ji(e){if(e===Bv||e===Hv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Mi(e){var t=Jv;return e!=null&&(Jv=t===null?e:t.concat(e)),t}function Ni(){var e=Jv;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Pi(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=yr(e,n.mode,0),t._debugInfo=Jv,t.return=n),M(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function Fi(e){var t=qv;return qv+=1,Kv===null&&(Kv=Ei()),Oi(Kv,e,t)}function Ii(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Li(e,t){throw t.$$typeof===Of?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
+ - Multiple copies of the "react" package is used.
100
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function Ri(e,t){var n=Ni();n===null?Li(e,t):n.run(Li.bind(null,e,t))}function zi(e,t){var n=O(e)||`Component`;Qv[n]||(Qv[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
+ <%s>{%s}</%s>`,t,t,n,t,n))}function Bi(e,t){var n=Ni();n===null?zi(e,t):n.run(zi.bind(null,e,t))}function Vi(e,t){var n=O(e)||`Component`;$v[n]||($v[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
104
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
105
+ <%s>%s</%s>`,n,t,n))}function Hi(e,t){var n=Ni();n===null?Vi(e,t):n.run(Vi.bind(null,e,t))}function Ui(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=gr(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=xr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Jv,t):(t=i(t,n),t.return=e,t._debugInfo=Jv,t)}function c(e,t,n,r){var a=n.type;return a===jf?(t=u(e,t,n.props.children,r,n.key),Pi(n,t,e),t):t!==null&&(t.elementType===a||dr(t,n)||typeof a==`object`&&a&&a.$$typeof===Bf&&ki(a)===t.type)?(t=i(t,n.props),Ii(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Jv,t):(t=yr(n,e.mode,r),Ii(t,n),t.return=e,t._debugInfo=Jv,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Cr(n,e.mode,r),t.return=e,t._debugInfo=Jv,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Jv,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=br(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Jv,t):(t=i(t,n),t.return=e,t._debugInfo=Jv,t)}function d(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=xr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Jv,t;if(typeof t==`object`&&t){switch(t.$$typeof){case kf:return n=yr(t,e.mode,n),Ii(n,t),n.return=e,e=Mi(t._debugInfo),n._debugInfo=Jv,Jv=e,n;case Af:return t=Cr(t,e.mode,n),t.return=e,t._debugInfo=Jv,t;case Bf:var r=Mi(t._debugInfo);return t=ki(t),e=d(e,t,n),Jv=r,e}if(Gf(t)||E(t))return n=br(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Mi(t._debugInfo),n._debugInfo=Jv,Jv=e,n;if(typeof t.then==`function`)return r=Mi(t._debugInfo),e=d(e,Fi(t),n),Jv=r,e;if(t.$$typeof===Ff)return d(e,Xr(e,t),n);Ri(e,t)}return typeof t==`function`&&Bi(e,t),typeof t==`symbol`&&Hi(e,t),null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case kf:return n.key===i?(i=Mi(n._debugInfo),e=c(e,t,n,r),Jv=i,e):null;case Af:return n.key===i?l(e,t,n,r):null;case Bf:return i=Mi(n._debugInfo),n=ki(n),e=p(e,t,n,r),Jv=i,e}if(Gf(n)||E(n))return i===null?(i=Mi(n._debugInfo),e=u(e,t,n,r,null),Jv=i,e):null;if(typeof n.then==`function`)return i=Mi(n._debugInfo),e=p(e,t,Fi(n),r),Jv=i,e;if(n.$$typeof===Ff)return p(e,t,Xr(e,n),r);Ri(e,n)}return typeof n==`function`&&Bi(e,n),typeof n==`symbol`&&Hi(e,n),null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case kf:return n=e.get(r.key===null?n:r.key)||null,e=Mi(r._debugInfo),t=c(t,n,r,i),Jv=e,t;case Af:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Bf:var a=Mi(r._debugInfo);return r=ki(r),t=m(e,t,n,r,i),Jv=a,t}if(Gf(r)||E(r))return n=e.get(n)||null,e=Mi(r._debugInfo),t=u(t,n,r,i,null),Jv=e,t;if(typeof r.then==`function`)return a=Mi(r._debugInfo),t=m(e,t,n,Fi(r),i),Jv=a,t;if(r.$$typeof===Ff)return m(e,t,n,Xr(t,r),i);Ri(t,r)}return typeof r==`function`&&Bi(t,r),typeof r==`symbol`&&Hi(t,r),null}function h(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case kf:case Af:f(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}M(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",i)});break;case Bf:n=ki(n),h(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,f=null,g=o,_=o=0,v=null;g!==null&&_<s.length;_++){g.index>_?(v=g,g=null):v=g.sibling;var y=p(i,g,s[_],c);if(y===null){g===null&&(g=v);break}l=h(i,y,s[_],l),e&&g&&y.alternate===null&&t(i,g),o=a(y,o,_),f===null?u=y:f.sibling=y,f=y,g=v}if(_===s.length)return n(i,g),t_&&Tr(i,_),u;if(g===null){for(;_<s.length;_++)g=d(i,s[_],c),g!==null&&(l=h(i,g,s[_],l),o=a(g,o,_),f===null?u=g:f.sibling=g,f=g);return t_&&Tr(i,_),u}for(g=r(g);_<s.length;_++)v=m(g,i,_,s[_],c),v!==null&&(l=h(i,v,s[_],l),e&&v.alternate!==null&&g.delete(v.key===null?_:v.key),o=a(v,o,_),f===null?u=v:f.sibling=v,f=v);return e&&g.forEach(function(e){return t(i,e)}),t_&&Tr(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,f=o,g=o=0,_=null,v=null,y=s.next();f!==null&&!y.done;g++,y=s.next()){f.index>g?(_=f,f=null):_=f.sibling;var b=p(i,f,y.value,c);if(b===null){f===null&&(f=_);break}v=h(i,b,y.value,v),e&&f&&b.alternate===null&&t(i,f),o=a(b,o,g),u===null?l=b:u.sibling=b,u=b,f=_}if(y.done)return n(i,f),t_&&Tr(i,g),l;if(f===null){for(;!y.done;g++,y=s.next())f=d(i,y.value,c),f!==null&&(v=h(i,f,y.value,v),o=a(f,o,g),u===null?l=f:u.sibling=f,u=f);return t_&&Tr(i,g),l}for(f=r(f);!y.done;g++,y=s.next())_=m(f,i,g,y.value,c),_!==null&&(v=h(i,_,y.value,v),e&&_.alternate!==null&&f.delete(_.key===null?g:_.key),o=a(_,o,g),u===null?l=_:u.sibling=_,u=_);return e&&f.forEach(function(e){return t(i,e)}),t_&&Tr(i,g),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===jf&&a.key===null&&(Pi(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case kf:var c=Mi(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===jf){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Jv,Pi(a,s,e),e=s;break a}}else if(r.elementType===l||dr(r,a)||typeof l==`object`&&l&&l.$$typeof===Bf&&ki(l)===r.type){n(e,r.sibling),s=i(r,a.props),Ii(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Jv,e=s;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===jf?(s=br(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Jv,Pi(a,s,e),e=s):(s=yr(a,e.mode,s),Ii(s,a),s.return=e,s._debugInfo=Jv,e=s)}return e=o(e),Jv=c,e;case Af:a:{for(c=a,a=c.key;r!==null;){if(r.key===a)if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}else{n(e,r);break}else t(e,r);r=r.sibling}s=Cr(c,e.mode,s),s.return=e,e=s}return o(e);case Bf:return c=Mi(a._debugInfo),a=ki(a),e=y(e,r,a,s),Jv=c,e}if(Gf(a))return c=Mi(a._debugInfo),e=_(e,r,a,s),Jv=c,e;if(E(a)){if(c=Mi(a._debugInfo),l=E(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(Xv||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Xv=!0):a.entries!==l||Yv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Yv=!0),e=v(e,r,u,s),Jv=c,e}if(typeof a.then==`function`)return c=Mi(a._debugInfo),e=y(e,r,Fi(a),s),Jv=c,e;if(a.$$typeof===Ff)return y(e,r,Xr(e,a),s);Ri(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=xr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Jv,e=s),o(e)):(typeof a==`function`&&Bi(e,a),typeof a==`symbol`&&Hi(e,a),n(e,r))}return function(e,t,n,r){var i=Jv;Jv=null;try{qv=0;var a=y(e,t,n,r);return Kv=null,a}catch(t){if(t===Bv||t===Hv)throw t;var o=g(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Jv;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{Jv=i}}}function Wi(e,t){var n=Gf(e);return e=!n&&typeof E(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Gi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ki(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qi(e){return{lane:e,tag:ny,payload:null,callback:null,next:null}}function Ji(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,cy===r&&!sy){var i=O(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
+
107
+ Please update the following component: %s`,i),sy=!0}return(Jb&zb)===Rb?(ir(e,r,t,n),cr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=cr(e),sr(e,null,n),t)}function Yi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Le(e,n)}}function Xi(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zi(){if(ly){var e=lv;if(e!==null)throw e}}function Qi(e,t,n,r){ly=!1;var i=e.updateQueue;oy=!1,cy=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Zb&f)===f:(r&f)===f){f!==0&&f===cv&&(ly=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case ry:if(m=m.payload,typeof m==`function`){f_=!0;var _=m.call(g,d,h);if(f.mode&zg){Ee(!0);try{m.call(g,d,h)}finally{Ee(!1)}}f_=!1,d=_;break a}d=m;break a;case ay:f.flags=f.flags&-65537|128;case ny:if(_=m.payload,typeof _==`function`){if(f_=!0,m=_.call(g,d,h),f.mode&zg){Ee(!0);try{_.call(g,d,h)}finally{Ee(!1)}}f_=!1}else m=_;if(m==null)break a;d=Df({},d,m);break a;case iy:oy=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),hx|=o,e.lanes=o,e.memoizedState=d}cy=null}function $i(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function ea(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)$i(n[e],t)}function ta(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$i(n[e],t)}function na(e,t){var n=px;A(dy,n,e),A(uy,t,e),px=n|t.baseLanes}function ra(e){A(dy,px,e),A(uy,uy.current,e)}function ia(e){px=dy.current,k(uy,e),k(dy,e)}function aa(e){var t=e.alternate;A(gy,gy.current&my,e),A(fy,e,e),py===null&&(t===null||uy.current!==null||t.memoizedState!==null)&&(py=e)}function oa(e){A(gy,gy.current,e),A(fy,e,e),py===null&&(py=e)}function sa(e){e.tag===22?(A(gy,gy.current,e),A(fy,e,e),py===null&&(py=e)):ca(e)}function ca(e){A(gy,gy.current,e),A(fy,fy.current,e)}function la(e){k(fy,e),py===e&&(py=null),k(gy,e)}function ua(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||dd(n)||fd(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)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}function B(){var e=K;zy===null?zy=[e]:zy.push(e)}function V(){var e=K;if(zy!==null&&(By++,zy[By]!==e)){var t=O(Oy);if(!Cy.has(t)&&(Cy.add(t),zy!==null)){for(var n=``,r=0;r<=By;r++){var i=zy[r],a=r===By?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
108
+ `,n+=i}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
+
110
+ Previous render Next render
111
+ ------------------------------------------------------
112
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ `,t,n)}}}function da(e){e==null||Gf(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",K,typeof e)}function fa(){var e=O(Oy);Ey.has(e)||(Ey.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function pa(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
114
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
115
+ 2. You might be breaking the Rules of Hooks
116
+ 3. You might have more than one copy of React in the same app
117
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ma(e,t){if(Vy)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,K),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
118
+
119
+ Previous: %s
120
+ Incoming: %s`,K,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Vh(e[n],t[n]))return!1;return!0}function ha(e,t,n,r,i,a){Dy=a,Oy=t,zy=e===null?null:e._debugHookTypes,By=-1,Vy=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=O(Oy),Ty.has(a)||(Ty.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e!==null&&e.memoizedState!==null?Gy:zy===null?Uy:Wy,Ny=a=(t.mode&zg)!==Ig;var o=Cv(n,r,i);if(Ny=!1,My&&(o=_a(t,n,r,i)),a){Ee(!0);try{o=_a(t,n,r,i)}finally{Ee(!1)}}return ga(e,t),o}function ga(e,t){t._debugHookTypes=zy,t.dependencies===null?Iy!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Iy}):t.dependencies._debugThenableState=Iy,U.H=Hy;var n=ky!==null&&ky.next!==null;if(Dy=0,zy=K=Ay=ky=Oy=null,By=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),jy=!1,Fy=0,Iy=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||db||(e=e.dependencies,e!==null&&qr(e)&&(db=!0)),Gv?(Gv=!1,e=!0):e=!1,e&&(t=O(t)||`Unknown`,wy.has(t)||Ty.has(t)||(wy.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function _a(e,t,n,r){Oy=e;var i=0;do{if(My&&(Iy=null),Fy=0,My=!1,i>=Ry)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Vy=!1,Ay=ky=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}By=-1,U.H=Ky,a=Cv(t,n,r)}while(My);return a}function va(){var e=U.H,t=e.useState()[0];return t=typeof t.then==`function`?Ta(t):t,e=e.useState()[0],(ky===null?null:ky.memoizedState)!==e&&(Oy.flags|=1024),t}function ya(){var e=Py!==0;return Py=0,e}function ba(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Bg)===Ig?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function xa(e){if(jy){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jy=!1}Dy=0,zy=Ay=ky=Oy=null,By=-1,K=null,My=!1,Fy=Py=0,Iy=null}function Sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ay===null?Oy.memoizedState=Ay=e:Ay=Ay.next=e,Ay}function Ca(){if(ky===null){var e=Oy.alternate;e=e===null?null:e.memoizedState}else e=ky.next;var t=Ay===null?Oy.memoizedState:Ay.next;if(t!==null)Ay=t,ky=e;else{if(e===null)throw Oy.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);ky=e,e={memoizedState:ky.memoizedState,baseState:ky.baseState,baseQueue:ky.baseQueue,queue:ky.queue,next:null},Ay===null?Oy.memoizedState=Ay=e:Ay=Ay.next=e}return Ay}function wa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ta(e){var t=Fy;return Fy+=1,Iy===null&&(Iy=Ei()),e=Oi(Iy,e,t),t=Oy,(Ay===null?t.memoizedState:Ay.next)===null&&(t=t.alternate,U.H=t!==null&&t.memoizedState!==null?Gy:Uy),e}function Ea(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ta(e);if(e.$$typeof===Ff)return Yr(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function Da(e){var t=null,n=Oy.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Oy.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=wa(),Oy.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Vy)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Hf;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function Oa(e,t){return typeof t==`function`?t(e):t}function ka(e,t,n){var r=Sa();if(n!==void 0){var i=n(t);if(Ny){Ee(!0);try{n(t)}finally{Ee(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ro.bind(null,Oy,e),[r.memoizedState,e]}function Aa(e){return ja(Ca(),ky,e)}function ja(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Dy&d)===d:(Zb&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===cv&&(u=!0);else if((Dy&f)===f){l=l.next,f===cv&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,Oy.lanes|=f,hx|=f;d=l.action,Ny&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,Oy.lanes|=d,hx|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!Vh(a,e.memoizedState)&&(db=!0,u&&(n=lv,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ma(e){var t=Ca(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Vh(a,t.memoizedState)||(db=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Na(e,t,n){var r=Oy,i=Sa();if(t_){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();Sy||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),Sy=!0)}else{if(a=t(),Sy||(n=t(),Vh(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),Sy=!0)),Yb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);Zb&127||Fa(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,co(La.bind(null,r,n,e),[e]),r.flags|=2048,io(vy|xy,{destroy:void 0},Ia.bind(null,r,n,a,t),null),a}function Pa(e,t,n){var r=Oy,i=Ca(),a=t_;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!Sy){var o=t();Vh(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),Sy=!0)}if((o=!Vh((ky||i).memoizedState,n))&&(i.memoizedState=n,db=!0),i=i.queue,so(2048,xy,La.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||Ay!==null&&Ay.memoizedState.tag&vy){if(r.flags|=2048,io(vy|xy,{destroy:void 0},Ia.bind(null,r,i,n,t),null),Yb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Dy&127||Fa(r,t,n)}return n}function Fa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oy.updateQueue,t===null?(t=wa(),Oy.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ia(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&za(e)}function La(e,t,n){return n(function(){Ra(t)&&(ti(2,`updateSyncExternalStore()`,e),za(e))})}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vh(e,n)}catch{return!0}}function za(e){var t=or(e,2);t!==null&&Xc(t,e,2)}function Ba(e){var t=Sa();if(typeof e==`function`){var n=e;if(e=n(),Ny){Ee(!0);try{n()}finally{Ee(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:e},t}function Va(e){e=Ba(e);var t=e.queue,n=zo.bind(null,Oy,t);return t.dispatch=n,[e.memoizedState,n]}function Ha(e){var t=Sa();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vo.bind(null,Oy,!0,n),n.dispatch=t,[e,t]}function Ua(e,t){return Wa(Ca(),ky,e,t)}function Wa(e,t,n,r){return e.baseState=n,ja(e,ky,typeof r==`function`?r:Oa)}function Ga(e,t){var n=Ca();return ky===null?(n.baseState=e,[e,n.queue.dispatch]):Wa(n,ky,e,t)}function Ka(e,t,n,r,i){if(Ho(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};U.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,qa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function qa(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=U.T,o={};o._updatedFibers=new Set,U.T=o;try{var s=n(i,r),c=U.S;c!==null&&c(o,s),Ja(e,t,s)}catch(n){Xa(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),U.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),Ja(e,t,o)}catch(n){Xa(e,t,n)}}function Ja(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(U.asyncTransitions++,n.then(Eo,Eo),n.then(function(n){Ya(e,t,n)},function(n){return Xa(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ya(e,t,n)}function Ya(e,t,n){t.status=`fulfilled`,t.value=n,Za(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qa(e,n)))}function Xa(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Za(t),t=t.next;while(t!==r)}e.action=null}function Za(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qa(e,t){return t}function $a(e,t){if(t_){var n=Yb.formState;if(n!==null){a:{var r=Oy;if(t_){if(e_){b:{for(var i=e_,a=a_;i.nodeType!==8;){if(!a){i=null;break b}if(i=md(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===KS||a===qS?i:null}if(i){e_=md(i.nextSibling),r=i.data===KS;break a}}Pr(r)}r=!1}r&&(t=n[0])}}return n=Sa(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:t},n.queue=r,n=zo.bind(null,Oy,r),r.dispatch=n,r=Ba(!1),a=Vo.bind(null,Oy,!1,r.queue),r=Sa(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ka.bind(null,Oy,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function eo(e){return to(Ca(),ky,e)}function to(e,t,n){if(t=ja(e,t,Qa)[0],e=Aa(Oa)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ta(t)}catch(e){throw e===Bv?Hv:e}else r=t;t=Ca();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Oy.flags|=2048,io(vy|xy,{destroy:void 0},no.bind(null,i,n),null)),[r,a,e]}function no(e,t){e.action=t}function ro(e){var t=Ca(),n=ky;if(n!==null)return to(t,n,e);Ca(),t=t.memoizedState,n=Ca();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function io(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Oy.updateQueue,t===null&&(t=wa(),Oy.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ao(e){var t=Sa();return e={current:e},t.memoizedState=e}function oo(e,t,n,r){var i=Sa();Oy.flags|=e,i.memoizedState=io(vy|t,{destroy:void 0},n,r===void 0?null:r)}function so(e,t,n,r){var i=Ca();r=r===void 0?null:r;var a=i.memoizedState.inst;ky!==null&&r!==null&&ma(r,ky.memoizedState.deps)?i.memoizedState=io(t,a,n,r):(Oy.flags|=e,i.memoizedState=io(vy|t,a,n,r))}function co(e,t){(Oy.mode&Bg)===Ig?oo(8390656,xy,e,t):oo(276826112,xy,e,t)}function lo(e){Oy.flags|=4;var t=Oy.updateQueue;if(t===null)t=wa(),Oy.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function uo(e){var t=Sa(),n={impl:e};return t.memoizedState=n,function(){if((Jb&zb)!==Rb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function fo(e){var t=Ca().memoizedState;return lo({ref:t,nextImpl:e}),function(){if((Jb&zb)!==Rb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function po(e,t){var n=4194308;return(Oy.mode&Bg)!==Ig&&(n|=134217728),oo(n,by,e,t)}function mo(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function ho(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(Oy.mode&Bg)!==Ig&&(r|=134217728),oo(r,by,mo.bind(null,t,e),n)}function go(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),so(4,by,mo.bind(null,t,e),n)}function _o(e,t){return Sa().memoizedState=[e,t===void 0?null:t],e}function vo(e,t){var n=Ca();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function yo(e,t){var n=Sa();t=t===void 0?null:t;var r=e();if(Ny){Ee(!0);try{e()}finally{Ee(!1)}}return n.memoizedState=[r,t],r}function bo(e,t){var n=Ca();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ma(t,r[1]))return r[0];if(r=e(),Ny){Ee(!0);try{e()}finally{Ee(!1)}}return n.memoizedState=[r,t],r}function xo(e,t){return wo(Sa(),e,t)}function So(e,t){return To(Ca(),ky.memoizedState,e,t)}function Co(e,t){var n=Ca();return ky===null?wo(n,e,t):To(n,ky.memoizedState,e,t)}function wo(e,t,n){return n===void 0||Dy&1073741824&&!(Zb&261930)?e.memoizedState=t:(e.memoizedState=n,e=Yc(),Oy.lanes|=e,hx|=e,n)}function To(e,t,n,r){return Vh(n,t)?n:uy.current===null?!(Dy&42)||Dy&1073741824&&!(Zb&261930)?(db=!0,e.memoizedState=n):(e=Yc(),Oy.lanes|=e,hx|=e,t):(e=wo(e,n,r),Vh(e,t)||(db=!0),e)}function Eo(){U.asyncTransitions--}function Do(e,t,n,r,i){var a=Kf.p;Kf.p=a!==0&&a<zp?a:zp;var o=U.T,s={};s._updatedFibers=new Set,U.T=s,Vo(e,!1,t,n);try{var c=i(),l=U.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){U.asyncTransitions++,c.then(Eo,Eo);var u=Si(c,r);Bo(e,t,u,Jc(e))}else Bo(e,t,r,Jc(e))}catch(n){Bo(e,t,{then:function(){},status:`rejected`,reason:n},Jc(e))}finally{Kf.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),U.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function Oo(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=ko(e).queue;ni(e),Do(e,i,t,EC,n===null?u:function(){return Ao(e),n(r)})}function ko(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:EC,baseState:EC,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:EC},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ao(e){U.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=ko(e);t.next===null&&(t=e.alternate.memoizedState),Bo(e,t.next.queue,{},Jc(e))}function jo(){var e=Ba(!1);return e=Do.bind(null,Oy,e.queue,!0,!1),Sa().memoizedState=e,[!1,e]}function Mo(){var e=Aa(Oa)[0],t=Ca().memoizedState;return[typeof e==`boolean`?e:Ta(e),t]}function No(){var e=Ma(Oa)[0],t=Ca().memoizedState;return[typeof e==`boolean`?e:Ta(e),t]}function Po(){return Yr(DC)}function Fo(){var e=Sa(),t=Yb.identifierPrefix;if(t_){var n=Qg,r=Zg;n=(r&~(1<<32-Mp(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Py++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Ly++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function Io(){return Sa().memoizedState=Lo.bind(null,Oy)}function Lo(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Jc(n),i=qi(r),a=Ji(n,i,r);a!==null&&(ti(r,`refresh()`,e),Xc(a,n,r),Yi(a,n,r)),e=Qr(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Ro(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=Jc(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Ho(e)?Uo(t,i):(i=ar(e,t,i,r),i!==null&&(ti(r,`dispatch()`,e),Xc(i,e,r),Wo(i,t,r)))}function zo(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=Jc(e),Bo(e,t,n,r)&&ti(r,`setState()`,e)}function Bo(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ho(e))Uo(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=U.H;U.H=Jy;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,Vh(c,s))return ir(e,t,i,0),Yb===null&&rr(),!1}catch{}finally{U.H=o}}if(n=ar(e,t,i,r),n!==null)return Xc(n,e,r),Wo(n,t,r),!0}return!1}function Vo(e,t,n,r){if(U.T===null&&cv===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:Ql(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ho(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=ar(e,n,r,2),t!==null&&(ti(2,`setOptimistic()`,e),Xc(t,e,2))}function Ho(e){var t=e.alternate;return e===Oy||t!==null&&t===Oy}function Uo(e,t){My=jy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wo(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Le(e,n)}}function Go(e){if(e!==null&&typeof e!=`function`){var t=String(e);ob.has(t)||(ob.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ko(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&zg){Ee(!0);try{a=n(r,i)}finally{Ee(!1)}}a===void 0&&(t=D(t)||`Component`,nb.has(t)||(nb.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:Df({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function qo(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&zg){Ee(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{Ee(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,D(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!An(n,r)||!An(i,a):!0}function Jo(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=O(e)||`Component`,Zy.has(e)||(Zy.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),sb.enqueueReplaceState(t,t.state,null))}function Yo(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=Df({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Xo(e){lg(e),console.warn(`%s
121
+
122
+ %s
123
+ `,cb?`An error occurred in the <`+cb+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
124
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Zo(e){var t=cb?`The above error occurred in the <`+cb+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((lb||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,OC+` `+e[0],kC,jC+r+jC,AC):e.splice(0,0,OC,kC,jC+r+jC,AC),e.unshift(console),r=MC.apply(console.error,e),r()}else console.error(`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,t,n)}function Qo(e){lg(e)}function $o(e,t){try{cb=t.source?O(t.source):null,lb=null;var n=t.value;if(U.actQueue!==null)U.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function es(e,t,n){try{cb=n.source?O(n.source):null,lb=O(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ts(e,t,n){return n=qi(n),n.tag=ay,n.payload={element:null},n.callback=function(){M(t.source,$o,e,t)},n}function ns(e){return e=qi(e),e.tag=ay,e}function rs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){fr(n),M(r.source,es,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){fr(n),M(r.source,es,t,n,r),typeof i!=`function`&&(Ax===null?Ax=new Set([this]):Ax.add(this)),jv(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,O(n)||`Unknown`)})}function is(e,t,n,r,i){if(n.flags|=32768,jp&&Bl(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Kr(t,n,i,!0),t_&&(n_=!0),n=fy.current,n!==null){switch(n.tag){case 31:case 13:return py===null?ul():n.alternate===null&&mx===Vb&&(mx=Wb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Uv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),jl(e,r,i)),!1;case 22:return n.flags|=65536,r===Uv?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),jl(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return jl(e,r,i),ul(),!1}if(t_)return n_=!0,t=fy.current,t===null?(r!==o_&&zr(wr(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=wr(r,n),i=ts(e.stateNode,r,i),Xi(e,i),mx!==Gb&&(mx=Ub)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==o_&&zr(wr(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=wr(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(bx===null?bx=[a]:bx.push(a),mx!==Gb&&(mx=Ub),t===null)return!0;r=wr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ts(n.stateNode,r,e),Xi(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Ax===null||!Ax.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ns(i),rs(i,e,n,r),Xi(n,i),!1}n=n.return}while(n!==null);return!1}function as(e,t,n,r){t.child=e===null?ty(t,null,n,r):ey(t,e.child,n,r)}function os(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Jr(t),r=ha(e,t,n,o,a,i),s=ya(),e!==null&&!db?(ba(e,t,i),As(e,t,i)):(t_&&s&&Dr(t),t.flags|=1,as(e,t,r,i),t.child)}function ss(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!hr(a)&&a.defaultProps===void 0&&n.compare===null?(n=lr(a),t.tag=15,t.type=n,bs(t,a),cs(e,t,n,r,i)):(e=vr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!js(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?An:n,n(o,r)&&e.ref===t.ref)return As(e,t,i)}return t.flags|=1,e=gr(a,r),e.ref=t.ref,e.return=t,t.child=e}function cs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(An(a,r)&&e.ref===t.ref&&t.type===e.type)if(db=!1,t.pendingProps=r=a,js(e,i))e.flags&131072&&(db=!0);else return t.lanes=e.lanes,As(e,t,i)}return gs(e,t,n,r,i)}function ls(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Og,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ds(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wi(t,a===null?null:a.cachePool),a===null?ra(t):na(t,a),sa(t);else return r=t.lanes=536870912,ds(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wi(t,null),ra(t),ca(t)):(wi(t,a.cachePool),na(t,a),ca(t),t.memoizedState=null);return as(e,t,i,n),t.child}function us(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Og,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ds(e,t,n,r,i){var a=Ci();return a=a===null?null:{parent:g_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wi(t,null),ra(t),sa(t),e!==null&&Kr(e,t,r,!0),t.childLanes=i,null}function fs(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
+ - <Activity %s>
136
+ + <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Ts({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ps(e,t,n){return ey(t,e.child,null,n),e=fs(t,t.pendingProps),e.flags|=2,la(t),t.memoizedState=null,e}function ms(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(t_){if(r.mode===`hidden`)return e=fs(t,r),t.lanes=536870912,us(null,e);if(oa(t),(e=e_)?(n=ud(e,a_),n=n!==null&&n.data===IS?n:null,n!==null&&(r={dehydrated:n,treeContext:kr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Sr(n),r.return=t,t.child=r,$g=t,e_=null)):n=null,n===null)throw R(t,e),Pr(t);return t.lanes=536870912,null}return fs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(oa(t),i)if(t.flags&256)t.flags&=-257,t=ps(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`);else if(Nr(),n&536870912&&ll(t),db||Kr(e,t,n,!1),i=(n&e.childLanes)!==0,db||i){if(r=Yb,r!==null&&(o=Re(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,or(e,o),Xc(r,e,o),ub;ul(),t=ps(e,t,n)}else e=a.treeContext,e_=md(o.nextSibling),$g=t,t_=!0,i_=null,n_=!1,r_=null,a_=!1,e!==null&&Ar(t,e),t=fs(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&ll(t),e=gr(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function hs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gs(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=D(n)||`Unknown`;fb[a]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,a,a),fb[a]=!0)}return t.mode&zg&&fv.recordLegacyContextWarning(t,null),e===null&&(bs(t,t.type),n.contextTypes&&(a=D(n)||`Unknown`,mb[a]||(mb[a]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,a)))),Jr(t),n=ha(e,t,n,r,void 0,i),r=ya(),e!==null&&!db?(ba(e,t,i),As(e,t,i)):(t_&&r&&Dr(t),t.flags|=1,as(e,t,n,i),t.child)}function _s(e,t,n,r,i,a){return Jr(t),By=-1,Vy=e!==null&&e.type!==t.type,t.updateQueue=null,n=_a(t,r,n,i),ga(e,t),r=ya(),e!==null&&!db?(ba(e,t,a),As(e,t,a)):(t_&&r&&Dr(t),t.flags|=1,as(e,t,n,a),t.child)}function vs(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=Yb,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=ns(c),rs(c,o,t,wr(a,t)),Xi(t,c)}if(Jr(t),t.stateNode===null){if(o=Ng,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Ff)&&!ab.has(n)&&(ab.add(n),c=a===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof a==`object`?a.$$typeof===Pf?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,D(n)||`Component`,c)),typeof a==`object`&&a&&(o=Yr(a)),a=new n(r,o),t.mode&zg){Ee(!0);try{a=new n(r,o)}finally{Ee(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=sb,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=Xy,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=D(n)||`Component`,Qy.has(o)||(Qy.add(o),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=D(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;eb.has(a)||(eb.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
137
+
138
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
139
+
140
+ The above lifecycles should be removed. Learn more about this warning here:
141
+ https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
142
+ `+o,c===null?``:`
143
+ `+c,l===null?``:`
144
+ `+l))}}a=t.stateNode,o=D(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!ib.has(n)&&(ib.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!rb.has(n)&&(rb.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,D(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||$y.has(n)||($y.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,D(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Gf(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Gi(t),o=n.contextType,a.context=typeof o==`object`&&o?Yr(o):Ng,a.state===r&&(o=D(n)||`Component`,tb.has(o)||(tb.add(o),console.error(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,o))),t.mode&zg&&fv.recordLegacyContextWarning(t,a),fv.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ko(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,O(t)||`Component`),sb.enqueueReplaceState(a,a.state,null)),Qi(t,r,a,i),Zi(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Bg)!==Ig&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=Yo(n,d),a.props=c;var f=a.context;l=n.contextType,o=Ng,typeof l==`object`&&l&&(o=Yr(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&Jo(t,a,r,o),oy=!1;var p=t.memoizedState;a.state=p,Qi(t,r,a,i),Zi(),f=t.memoizedState,d||p!==f||oy?(typeof u==`function`&&(Ko(t,n,u,r),f=t.memoizedState),(c=oy||qo(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Bg)!==Ig&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Bg)!==Ig&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Bg)!==Ig&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,Ki(e,t),o=t.memoizedProps,l=Yo(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=Ng,typeof f==`object`&&f&&(c=Yr(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&Jo(t,a,r,c),oy=!1,p=t.memoizedState,a.state=p,Qi(t,r,a,i),Zi();var m=t.memoizedState;o!==u||p!==m||oy||e!==null&&e.dependencies!==null&&qr(e.dependencies)?(typeof d==`function`&&(Ko(t,n,d,r),m=t.memoizedState),(l=oy||qo(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&qr(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,hs(e,t),o=(t.flags&128)!=0,c||o){if(c=t.stateNode,ye(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,T_=-1;else if(n=Tv(c),t.mode&zg){Ee(!0);try{Tv(c)}finally{Ee(!1)}}t.flags|=1,e!==null&&o?(t.child=ey(t,e.child,null,i),t.child=ey(t,null,n,i)):as(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=As(e,t,i);return i=t.stateNode,a&&i.props!==r&&(gb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",O(t)||`a component`),gb=!0),e}function ys(e,t,n,r){return Rr(),t.flags|=256,as(e,t,n,r),t.child}function bs(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
+ %s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=D(t)||`Unknown`,hb[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),hb[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=D(t)||`Unknown`,pb[t]||(console.error(`%s: Function components do not support contextType.`,t),pb[t]=!0))}function xs(e){return{baseLanes:e,cachePool:Ti()}}function Ss(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=vx),e}function Cs(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=(t.flags&128)!=0;if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(gy.current&hy)!==0),r&&(a=!0,t.flags&=-129),r=(t.flags&32)!=0,t.flags&=-33,e===null){if(t_){if(a?aa(t):ca(t),(e=e_)?(n=ud(e,a_),n=n!==null&&n.data!==IS?n:null,n!==null&&(r={dehydrated:n,treeContext:kr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Sr(n),r.return=t,t.child=r,$g=t,e_=null)):n=null,n===null)throw R(t,e),Pr(t);return fd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){ca(t);var l=t.mode;return c=Ts({mode:`hidden`,children:c},l),i=br(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=xs(n),i.childLanes=Ss(e,r,n),t.memoizedState=yb,us(null,i)}return aa(t),ws(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(aa(t),t.flags&=-257,t=Es(e,t,n)):t.memoizedState===null?(ca(t),c=i.fallback,l=t.mode,i=Ts({mode:`visible`,children:i.children},l),c=br(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,ey(t,e.child,null,n),i=t.child,i.memoizedState=xs(n),i.childLanes=Ss(e,r,n),t.memoizedState=yb,t=us(null,i)):(ca(t),t.child=e.child,t.flags|=128,t=null);else if(aa(t),Nr(),n&536870912&&ll(t),fd(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Ug.set(c,i),zr(i),t=Es(e,t,n)}else if(db||Kr(e,t,n,!1),r=(n&e.childLanes)!==0,db||r){if(r=Yb,r!==null&&(i=Re(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,or(e,i),Xc(r,e,i),ub;dd(d)||ul(),t=Es(e,t,n)}else dd(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,e_=md(d.nextSibling),$g=t,t_=!0,i_=null,n_=!1,r_=null,a_=!1,e!==null&&Ar(t,e),t=ws(t,i.children),t.flags|=4096);return t}}return a?(ca(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=gr(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=br(c,l,n,null),c.flags|=2):c=gr(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,us(null,i),i=t.child,c=e.child.memoizedState,c===null?c=xs(n):(l=c.cachePool,l===null?l=Ti():(p=g_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=Ss(e,r,n),t.memoizedState=yb,us(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&ll(t),aa(t),n=e.child,e=n.sibling,n=gr(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function ws(e,t){return t=Ts({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ts(e,t){return e=g(22,e,null,t),e.lanes=0,e}function Es(e,t,n){return ey(t,e.child,null,n),e=ws(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ds(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wr(e.return,t,n)}function Os(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ks(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=gy.current;if((r=(s&hy)!==0)?(s=s&my|hy,t.flags|=128):s&=my,A(gy,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!_b[s])if(_b[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i);s=a??`null`,vb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(vb[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(vb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(vb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o)if(Gf(o)){for(s=0;s<o.length;s++)if(!Wi(o[s],s))break a}else if(s=E(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Wi(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i);if(as(e,t,o,n),t_?(jr(),o=qg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ds(e,n,t);else if(e.tag===19)Ds(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ua(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Os(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ua(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Os(t,!0,n,null,a,o);break;case`together`:Os(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function As(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),T_=-1,hx|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Kr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function js(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&qr(e))):!0}function Ms(e,t,n){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),Hr(t,g_,e.memoizedState.cache),Rr();break;case 27:case 5:oe(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:Hr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,oa(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(aa(t),e=As(e,t,n),e===null?null:e.sibling):Cs(e,t,n):(aa(t),t.flags|=128,null);aa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Kr(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ks(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(gy,gy.current,t),r)break;return null;case 22:return t.lanes=0,ls(e,t,n,t.pendingProps);case 24:Hr(t,g_,e.memoizedState.cache)}return As(e,t,n)}function Ns(e,t,n){if(t._debugNeedsRemount&&e!==null){n=vr(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)db=!0;else{if(!js(e,n)&&!(t.flags&128))return db=!1,Ms(e,t,n);db=!!(e.flags&131072)}else db=!1,(r=t_)&&(jr(),r=(t.flags&1048576)!=0),r&&(r=t.index,jr(),Er(t,qg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=ki(t.elementType),t.type=e,typeof e==`function`)hr(e)?(r=Yo(e,r),t.tag=1,t.type=e=lr(e),t=vs(null,t,e,r,n)):(t.tag=0,bs(t,e),t.type=e=lr(e),t=gs(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===If){t.tag=11,t.type=e=ur(e),t=os(null,t,e,r,n);break a}else if(i===zf){t.tag=14,t=ss(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Bf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=D(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return gs(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Yo(r,t.pendingProps),vs(e,t,r,i,n);case 3:a:{if(ie(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Ki(e,t),Qi(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Hr(t,g_,r),r!==a.cache&&Gr(t,[g_],n,!0),Zi(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=ys(e,t,r,n);break a}else if(r!==i){i=wr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),zr(i),t=ys(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(e_=md(e.firstChild),$g=t,t_=!0,i_=null,n_=!1,r_=null,a_=!0,n=ty(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Rr(),r===i){t=As(e,t,n);break a}as(e,t,r,n)}t=t.child}return t;case 26:return hs(e,t),e===null?(n=Dd(t.type,null,t.pendingProps,null))?t.memoizedState=n:t_||(n=t.type,e=t.pendingProps,r=re($f.current),r=Iu(r).createElement(n),r[Up]=t,r[Wp]=e,Su(r,n,e),Xe(r),t.stateNode=r):t.memoizedState=Dd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return oe(t),e===null&&t_&&(r=re($f.current),i=ae(),r=t.stateNode=Sd(t.type,t.pendingProps,r,i,!1),n_||(i=Mu(r,t.type,t.pendingProps,i),i!==null&&(Mr(t,0).serverProps=i)),$g=t,a_=!0,i=e_,Xu(t.type)?(lC=i,e_=md(r.firstChild)):e_=i),as(e,t,t.pendingProps.children,n),hs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&t_&&(a=ae(),r=Wt(t.type,a.ancestorInfo),i=e_,(o=!i)||(o=cd(i,t.type,t.pendingProps,a_),o===null?a=!1:(t.stateNode=o,n_||(a=Mu(o,t.type,t.pendingProps,a),a!==null&&(Mr(t,0).serverProps=a)),$g=t,e_=md(o.firstChild),a_=!1,a=!0),o=!a),o&&(r&&R(t,i),Pr(t))),oe(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,zu(i,a)?r=null:o!==null&&zu(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=ha(e,t,va,null,null,n),DC._currentValue=i),hs(e,t),as(e,t,r,n),t.child;case 6:return e===null&&t_&&(n=t.pendingProps,e=ae(),r=e.ancestorInfo.current,n=r==null||Gt(n,r.tag,e.ancestorInfo.implicitRootScope),e=e_,(r=!e)||(r=ld(e,t.pendingProps,a_),r===null?r=!1:(t.stateNode=r,$g=t,e_=null,r=!0),r=!r),r&&(n&&R(t,e),Pr(t))),null;case 13:return Cs(e,t,n);case 4:return ie(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ey(t,null,r,n):as(e,t,r,n),t.child;case 11:return os(e,t,t.type,t.pendingProps,n);case 7:return as(e,t,t.pendingProps,n),t.child;case 8:return as(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,as(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||bb||(bb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Hr(t,r,a),as(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Jr(t),i=Yr(i),r=Cv(r,i,void 0),t.flags|=1,as(e,t,r,n),t.child;case 14:return ss(e,t,t.type,t.pendingProps,n);case 15:return cs(e,t,t.type,t.pendingProps,n);case 19:return ks(e,t,n);case 31:return ms(e,t,n);case 22:return ls(e,t,n,t.pendingProps);case 24:return Jr(t),r=Yr(g_),e===null?(i=Ci(),i===null&&(i=Yb,a=Qr(),i.pooledCache=a,$r(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Gi(t),Hr(t,g_,i)):((e.lanes&n)!==0&&(Ki(e,t),Qi(t,null,null,n),Zi()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Hr(t,g_,r),r!==i.cache&&Gr(t,[g_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Hr(t,g_,r))),as(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Ps(e){e.flags|=4}function Fs(e,t,n,r,i){if((t=(e.mode&Vg)!==Ig)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ol())e.flags|=8192;else throw Wv=Uv,Vv}else e.flags&=-16777217}function Is(e,t){if(t.type!==`stylesheet`||(t.state.loading&mC)!==uC)e.flags&=-16777217;else if(e.flags|=16777216,!Hd(t))if(ol())e.flags|=8192;else throw Wv=Uv,Vv}function Ls(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Me(),e.lanes|=t,yx|=t)}function Rs(e,t){if(!t_)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zs(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&Rg)!==Ig){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else if((e.mode&Rg)!==Ig){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bs(e,t,n){var r=t.pendingProps;switch(Or(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zs(t),null;case 1:return zs(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ur(g_,t),j(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Lr(t)?(Br(),Ps(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,z())),zs(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Ps(t),a===null?(zs(t),Fs(t,i,null,r,n)):(zs(t),Is(t,a))):a?a===e.memoizedState?(zs(t),t.flags&=-16777217):(Ps(t),zs(t),Is(t,a)):(e=e.memoizedProps,e!==r&&Ps(t),zs(t),Fs(t,i,e,r,n)),null;case 27:if(se(t),n=re($f.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ps(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return zs(t),null}e=ae(),Lr(t)?Fr(t,e):(e=Sd(i,r,n,e,!0),t.stateNode=e,Ps(t))}return zs(t),null;case 5:if(se(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ps(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return zs(t),null}var o=ae();if(Lr(t))Fr(t,o);else{switch(a=re($f.current),Wt(i,o.ancestorInfo),o=o.context,a=Iu(a),o){case ZS:a=a.createElementNS(Nm,i);break;case QS:a=a.createElementNS(Mm,i);break;default:switch(i){case`svg`:a=a.createElementNS(Nm,i);break;case`math`:a=a.createElementNS(Mm,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||mp.call(tC,i)||(tC[i]=!0,console.error(`The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.`,i)))}}a[Up]=t,a[Wp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Su(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ps(t)}}return zs(t),Fs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ps(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=re($f.current),n=ae(),Lr(t)){if(e=t.stateNode,n=t.memoizedProps,i=!n_,r=null,a=$g,a!==null)switch(a.tag){case 3:i&&(i=gd(e,n,r),i!==null&&(Mr(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=gd(e,n,r),i!==null&&(Mr(t,0).serverProps=i))}e[Up]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||yu(e.nodeValue,n)),e||Pr(t,!0)}else i=n.ancestorInfo.current,i!=null&&Gt(r,i.tag,n.ancestorInfo.implicitRootScope),e=Iu(e).createTextNode(r),e[Up]=t,t.stateNode=e}return zs(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Lr(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[Up]=t,zs(t),(t.mode&Rg)!==Ig&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Br(),Rr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,zs(t),(t.mode&Rg)!==Ig&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=z(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(la(t),t):(la(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return zs(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Lr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[Up]=t,zs(t),(t.mode&Rg)!==Ig&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Br(),Rr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,zs(t),(t.mode&Rg)!==Ig&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=z(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(la(t),t):(la(t),null)}return la(t),t.flags&128?(t.lanes=n,(t.mode&Rg)!==Ig&&yi(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ls(t,t.updateQueue),zs(t),(t.mode&Rg)!==Ig&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return j(t),e===null&&ou(t.stateNode.containerInfo),zs(t),null;case 10:return Ur(t.type,t),zs(t),null;case 19:if(k(gy,t),r=t.memoizedState,r===null)return zs(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Rs(r,!1);else{if(mx!==Vb||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ua(e),a!==null){for(t.flags|=128,Rs(r,!1),e=a.updateQueue,t.updateQueue=e,Ls(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_r(n,e),n=n.sibling;return A(gy,gy.current&my|hy,t),t_&&Tr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&yp()>Ex&&(t.flags|=128,i=!0,Rs(r,!1),t.lanes=4194304)}else{if(!i)if(e=ua(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ls(t,e),Rs(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!t_)return zs(t),null}else 2*yp()-r.renderingStartTime>Ex&&n!==536870912&&(t.flags|=128,i=!0,Rs(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(zs(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=yp(),e.sibling=null,n=gy.current,n=i?n&my|hy:n&my,A(gy,n,t),t_&&Tr(t,r.treeForkCount),e);case 22:case 23:return la(t),ia(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zs(t),t.subtreeFlags&6&&(t.flags|=8192)):zs(t),n=t.updateQueue,n!==null&&Ls(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&k(dv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ur(g_,t),zs(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Vs(e,t){switch(Or(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Rg)!==Ig&&yi(t),t):null;case 3:return Ur(g_,t),j(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return se(t),null;case 31:if(t.memoizedState!==null){if(la(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Rg)!==Ig&&yi(t),t):null;case 13:if(la(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Rg)!==Ig&&yi(t),t):null;case 19:return k(gy,t),null;case 4:return j(t),null;case 10:return Ur(t.type,t),null;case 22:case 23:return la(t),ia(t),e!==null&&k(dv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Rg)!==Ig&&yi(t),t):null;case 24:return Ur(g_,t),null;case 25:return null;default:return null}}function Hs(e,t){switch(Or(t),t.tag){case 3:Ur(g_,t),j(t);break;case 26:case 27:case 5:se(t);break;case 4:j(t);break;case 31:t.memoizedState!==null&&la(t);break;case 13:la(t);break;case 19:k(gy,t);break;case 10:Ur(t.type,t);break;case 22:case 23:la(t),ia(t),e!==null&&k(dv,t);break;case 24:Ur(g_,t)}}function Us(e){return(e.mode&Rg)!==Ig}function Ws(e,t){Us(e)?(vi(),Ks(t,e),gi()):Ks(t,e)}function Gs(e,t,n){Us(e)?(vi(),qs(n,e,t),gi()):qs(n,e,t)}function Ks(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&yy)!==_y&&(oS=!0),r=M(t,Fv,n),(e&yy)!==_y&&(oS=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&by)===0?(n.tag&yy)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
146
+
147
+ It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
+
149
+ `+a+`(() => {
150
+ async function fetchData() {
151
+ // You can await here
152
+ const response = await MyAPI.getData(someId);
153
+ // ...
154
+ }
155
+ fetchData();
156
+ }, [someId]); // Or [] if effect doesn't need props or state
157
+
158
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,M(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){Al(t,t.return,e)}}function qs(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&yy)!==_y&&(oS=!0),i=t,M(i,Lv,i,n,s),(e&yy)!==_y&&(oS=!1))}r=r.next}while(r!==a)}}catch(e){Al(t,t.return,e)}}function Js(e,t){Us(e)?(vi(),Ks(t,e),gi()):Ks(t,e)}function Ys(e,t,n){Us(e)?(vi(),qs(n,e,t),gi()):qs(n,e,t)}function Xs(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||gb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(e)||`instance`));try{M(e,ta,t,n)}catch(t){Al(e,e.return,t)}}}function Zs(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Qs(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||gb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(e)||`instance`));try{var i=Yo(e.type,n),a=M(e,Zs,t,i,r);n=xb,a!==void 0||n.has(e.type)||(n.add(e.type),M(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,O(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){Al(e,e.return,t)}}function $s(e,t,n){n.props=Yo(e.type,e.memoizedProps),n.state=e.memoizedState,Us(e)?(vi(),M(e,Nv,e,t,n),gi()):M(e,Nv,e,t,n)}function ec(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(Us(e))try{vi(),e.refCleanup=t(n)}finally{gi()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,O(e)),t.current=n}}function tc(e,t){try{M(e,ec,e)}catch(n){Al(e,t,n)}}function nc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(Us(e))try{vi(),M(e,r)}finally{gi(e)}else M(e,r)}catch(n){Al(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Us(e))try{vi(),M(e,n,null)}finally{gi(e)}else M(e,n,null)}catch(n){Al(e,t,n)}else n.current=null}function rc(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,iv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function ic(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,iv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function ac(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{M(e,Wu,r,t,n,e)}catch(t){Al(e,e.return,t)}}function oc(e,t,n){try{M(e,Ku,e.stateNode,e.type,n,t,e)}catch(t){Al(e,e.return,t)}}function sc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xu(e.type)||e.tag===4}function cc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xu(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Yu(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Yu(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=F));else if(r!==4&&(r===27&&Xu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}function uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Xu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(uc(e,t,n),e=e.sibling;e!==null;)uc(e,t,n),e=e.sibling}function dc(e){for(var t,n=e.return;n!==null;){if(sc(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=cc(e),uc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(qu(n),t.flags&=-33),t=cc(e),uc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=cc(e),lc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function fc(e){var t=e.stateNode,n=e.memoizedProps;try{M(e,Cd,e.type,n,t,e)}catch(t){Al(e,e.return,t)}}function pc(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3&&e.memoizedState.isDehydrated&&(t.flags&256)==0}function mc(e,t){if(e=e.containerInfo,$S=WC,e=Pn(e),Fn(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(eC={focusedElem:e,selectionRange:n},WC=!1,Eb=t;Eb!==null;)if(t=Eb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Eb=e;else for(;Eb!==null;){switch(e=t=Eb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&Qs(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)sd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:sd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(e=t.sibling,e!==null){e.return=t.return,Eb=e;break}Eb=t.return}}function hc(e,t,n){var r=si(),i=li(),a=di(),o=fi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Dc(e,n),s&4&&Ws(n,by|vy);break;case 1:if(Dc(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||gb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(n)||`instance`)),Us(n)?(vi(),M(n,Dv,n,e),gi()):M(n,Dv,n,e);else{var c=Yo(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||gb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(n)||`instance`)),Us(n)?(vi(),M(n,kv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),gi()):M(n,kv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&Xs(n),s&512&&tc(n,n.return);break;case 3:if(t=ri(),Dc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{M(n,ta,s,c)}catch(e){Al(n,n.return,e)}}e.effectDuration+=ii(t);break;case 27:t===null&&s&4&&fc(n);case 26:case 5:if(Dc(e,n),t===null){if(s&4)ac(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{M(n,Gu,c,e,t,n)}catch(e){Al(n,n.return,e)}}}s&512&&tc(n,n.return);break;case 12:if(s&4){s=ri(),Dc(e,n),e=n.stateNode,e.effectDuration+=ai(s);try{M(n,rc,n,t,S_,e.effectDuration)}catch(e){Al(n,n.return,e)}}else Dc(e,n);break;case 31:Dc(e,n),s&4&&yc(e,n);break;case 13:Dc(e,n),s&4&&bc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Pl.bind(null,n),pd(e,s))));break;case 22:if(s=n.memoizedState!==null||Sb,!s){t=t!==null&&t.memoizedState!==null||Cb,c=Sb;var l=Cb;Sb=s,(Cb=t)&&!l?(jc(e,n,(n.subtreeFlags&8772)!=0),(n.mode&Rg)!==Ig&&0<=G&&0<=O_&&.05<O_-G&&Gn(n,G,O_)):Dc(e,n),Sb=c,Cb=l}break;case 30:break;default:Dc(e,n)}(n.mode&Rg)!==Ig&&0<=G&&0<=O_&&((A_||.05<D_)&&Jn(n,G,O_,D_,k_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<O_-G&&(pc(n.return.alternate,n.return)||L(n,G,O_,`Mount`))),ci(r),ui(i),k_=a,A_=o}function gc(e){var t=e.alternate;t!==null&&(e.alternate=null,gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ge(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _c(e,t,n){for(n=n.child;n!==null;)vc(e,t,n),n=n.sibling}function vc(e,t,n){if(kp&&typeof kp.onCommitFiberUnmount==`function`)try{kp.onCommitFiberUnmount(Op,n)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=si(),i=li(),a=di(),o=fi();switch(n.tag){case 26:Cb||nc(n,t),_c(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:Cb||nc(n,t);var s=kb,c=Ab;Xu(n.type)&&(kb=n.stateNode,Ab=!1),_c(e,t,n),M(n,wd,n.stateNode),kb=s,Ab=c;break;case 5:Cb||nc(n,t);case 6:if(s=kb,c=Ab,kb=null,_c(e,t,n),kb=s,Ab=c,kb!==null)if(Ab)try{M(n,Qu,kb,n.stateNode)}catch(e){Al(n,t,e)}else try{M(n,Zu,kb,n.stateNode)}catch(e){Al(n,t,e)}break;case 18:kb!==null&&(Ab?(e=kb,$u(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),yf(e)):$u(kb,n.stateNode));break;case 4:s=kb,c=Ab,kb=n.stateNode.containerInfo,Ab=!0,_c(e,t,n),kb=s,Ab=c;break;case 0:case 11:case 14:case 15:qs(yy,n,t),Cb||Gs(n,t,by),_c(e,t,n);break;case 1:Cb||(nc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&$s(n,t,s)),_c(e,t,n);break;case 21:_c(e,t,n);break;case 22:Cb=(s=Cb)||n.memoizedState!==null,_c(e,t,n),Cb=s;break;default:_c(e,t,n)}(n.mode&Rg)!==Ig&&0<=G&&0<=O_&&(A_||.05<D_)&&Jn(n,G,O_,D_,k_),ci(r),ui(i),k_=a,A_=o}function yc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{M(t,bd,e)}catch(e){Al(t,t.return,e)}}}function bc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{M(t,xd,e)}catch(e){Al(t,t.return,e)}}function xc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Tb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Tb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function Sc(e,t){var n=xc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),jp)if(Db!==null&&Ob!==null)Bl(Ob,Db);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=Fl.bind(null,e,t);t.then(r,r)}})}function Cc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=si(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(Xu(c.type)){kb=c.stateNode,Ab=!1;break a}break;case 5:kb=c.stateNode,Ab=!1;break a;case 3:case 4:kb=c.stateNode.containerInfo,Ab=!0;break a}c=c.return}if(kb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);vc(i,a,o),kb=null,Ab=!1,(o.mode&Rg)!==Ig&&0<=G&&0<=O_&&.05<O_-G&&L(o,G,O_,`Unmount`),ci(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wc(t,e),t=t.sibling}function wc(e,t){var n=si(),r=li(),i=di(),a=fi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Cc(t,e),Tc(e),s&4&&(qs(yy|vy,e,e.return),Ks(yy|vy,e),Gs(e,e.return,by|vy));break;case 1:if(Cc(t,e),Tc(e),s&512&&(Cb||o===null||nc(o,o.return)),s&64&&Sb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=jb,Cc(t,e),Tc(e),s&512&&(Cb||o===null||nc(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[Xp]||l[Up]||l.namespaceURI===Nm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),Su(l,s,o),l[Up]=e,Xe(l),s=l;break a;case`link`:var u=zd(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),Su(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=zd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],N(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),Su(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Up]=e,Xe(l),s=l}e.stateNode=s}else Bd(c,e.type,e.stateNode);else e.stateNode=Fd(c,s,e.memoizedProps);else l===s?s===null&&e.stateNode!==null&&oc(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Bd(c,e.type,e.stateNode):Fd(c,s,e.memoizedProps))}break;case 27:Cc(t,e),Tc(e),s&512&&(Cb||o===null||nc(o,o.return)),o!==null&&s&4&&oc(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Cc(t,e),Tc(e),s&512&&(Cb||o===null||nc(o,o.return)),e.flags&32){c=e.stateNode;try{M(e,qu,c)}catch(t){Al(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,oc(e,c,o===null?c:o.memoizedProps)),s&1024&&(wb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(Cc(t,e),Tc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{M(e,Ju,c,o,s)}catch(t){Al(e,e.return,t)}}break;case 3:if(c=ri(),yC=null,l=jb,jb=Td(t.containerInfo),Cc(t,e),jb=l,Tc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{M(e,yd,t.containerInfo)}catch(t){Al(e,e.return,t)}wb&&(wb=!1,Ec(e)),t.effectDuration+=ii(c);break;case 4:s=jb,jb=Td(e.stateNode.containerInfo),Cc(t,e),Tc(e),jb=s;break;case 12:s=ri(),Cc(t,e),Tc(e),e.stateNode.effectDuration+=ai(s);break;case 31:Cc(t,e),Tc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Sc(e,s)));break;case 13:Cc(t,e),Tc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Cx=yp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Sc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=Sb,m=Cb;if(Sb=p||c,Cb=m||f,Cc(t,e),Cb=m,Sb=p,f&&!c&&!p&&!m&&(e.mode&Rg)!==Ig&&0<=G&&0<=O_&&.05<O_-G&&Gn(e,G,O_),Tc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Og:t._visibility|Og,!c||o===null||f||Sb||Cb||(kc(e),(e.mode&Rg)!==Ig&&0<=G&&0<=O_&&.05<O_-G&&L(e,G,O_,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?M(f,nd,l):M(f,ad,f.stateNode,f.memoizedProps)}catch(e){Al(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?M(f,rd,u):M(f,od,u,f.memoizedProps)}catch(e){Al(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?M(f,td,d):M(f,id,f.stateNode)}catch(e){Al(f,f.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,Sc(e,o))));break;case 19:Cc(t,e),Tc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Sc(e,s)));break;case 30:break;case 21:break;default:Cc(t,e),Tc(e)}(e.mode&Rg)!==Ig&&0<=G&&0<=O_&&((A_||.05<D_)&&Jn(e,G,O_,D_,k_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<O_-G&&(pc(e.return.alternate,e.return)||L(e,G,O_,`Mount`))),ci(n),ui(r),k_=i,A_=a}function Tc(e){var t=e.flags;if(t&2){try{M(e,dc,e)}catch(t){Al(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ec(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ec(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hc(e,t.alternate,t),t=t.sibling}function Oc(e){var t=si(),n=li(),r=di(),i=fi();switch(e.tag){case 0:case 11:case 14:case 15:Gs(e,e.return,by),kc(e);break;case 1:nc(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&$s(e,e.return,a),kc(e);break;case 27:M(e,wd,e.stateNode);case 26:case 5:nc(e,e.return),kc(e);break;case 22:e.memoizedState===null&&kc(e);break;case 30:kc(e);break;default:kc(e)}(e.mode&Rg)!==Ig&&0<=G&&0<=O_&&(A_||.05<D_)&&Jn(e,G,O_,D_,k_),ci(t),ui(n),k_=r,A_=i}function kc(e){for(e=e.child;e!==null;)Oc(e),e=e.sibling}function Ac(e,t,n,r){var i=si(),a=li(),o=di(),s=fi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:jc(e,n,r),Ws(n,by);break;case 1:if(jc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&M(n,Dv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{M(n,ea,t,e)}catch(e){Al(n,n.return,e)}}r&&c&64&&Xs(n),tc(n,n.return);break;case 27:fc(n);case 26:case 5:jc(e,n,r),r&&t===null&&c&4&&ac(n),tc(n,n.return);break;case 12:if(r&&c&4){c=ri(),jc(e,n,r),r=n.stateNode,r.effectDuration+=ai(c);try{M(n,rc,n,t,S_,r.effectDuration)}catch(e){Al(n,n.return,e)}}else jc(e,n,r);break;case 31:jc(e,n,r),r&&c&4&&yc(e,n);break;case 13:jc(e,n,r),r&&c&4&&bc(e,n);break;case 22:n.memoizedState===null&&jc(e,n,r),tc(n,n.return);break;case 30:break;default:jc(e,n,r)}(n.mode&Rg)!==Ig&&0<=G&&0<=O_&&(A_||.05<D_)&&Jn(n,G,O_,D_,k_),ci(i),ui(a),k_=o,A_=s}function jc(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)Ac(e,t.alternate,t,n),t=t.sibling}function Mc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&$r(e),n!=null&&ei(n))}function Nc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&($r(t),e!=null&&ei(e))}function Pc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Fc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Fc(e,t,n,r,i){var a=si(),o=li(),s=di(),c=fi(),l=Sg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Rg)!==Ig&&0<t.actualStartTime&&t.flags&1&&Kn(t,t.actualStartTime,i,Mb,n),Pc(e,t,n,r,i),u&2048&&Js(t,xy|vy);break;case 1:(t.mode&Rg)!==Ig&&0<t.actualStartTime&&(t.flags&128?qn(t,t.actualStartTime,i,[]):t.flags&1&&Kn(t,t.actualStartTime,i,Mb,n)),Pc(e,t,n,r,i);break;case 3:var d=ri(),f=Mb;Mb=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,Pc(e,t,n,r,i),Mb=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&($r(r),n!=null&&ei(n))),e.passiveEffectDuration+=ii(d);break;case 12:if(u&2048){u=ri(),Pc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=ai(u);try{M(t,ic,t,t.alternate,S_,e.passiveEffectDuration)}catch(e){Al(t,t.return,e)}}else Pc(e,t,n,r,i);break;case 31:u=Mb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Mb=!1,d=d.hydrationErrors,d!==null&&qn(t,t.actualStartTime,i,d)):Mb=!0):Mb=!1,Pc(e,t,n,r,i),Mb=u;break;case 13:u=Mb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?Mb=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Mb=!1,d=d.hydrationErrors,d!==null&&qn(t,t.actualStartTime,i,d)):Mb=!0),Pc(e,t,n,r,i),Mb=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&kg?Pc(e,t,n,r,i):(f._visibility|=kg,Ic(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&Rg)===Ig||Mb||(e=t.actualStartTime,0<=e&&.05<i-e&&Gn(t,e,i),0<=G&&0<=O_&&.05<O_-G&&Gn(t,G,O_))):f._visibility&kg?Pc(e,t,n,r,i):Rc(e,t,n,r,i),u&2048&&Mc(d,t);break;case 24:Pc(e,t,n,r,i),u&2048&&Nc(t.alternate,t);break;default:Pc(e,t,n,r,i)}(t.mode&Rg)!==Ig&&((e=!Mb&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&L(t,n,i,`Mount`)),0<=G&&0<=O_&&((A_||.05<D_)&&Jn(t,G,O_,D_,k_),e&&.05<O_-G&&L(t,G,O_,`Mount`))),ci(a),ui(o),k_=s,A_=c,Sg=l}function Ic(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Lc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Lc(e,t,n,r,i,a){var o=si(),s=li(),c=di(),l=fi(),u=Sg;i&&(t.mode&Rg)!==Ig&&0<t.actualStartTime&&t.flags&1&&Kn(t,t.actualStartTime,a,Mb,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Ic(e,t,n,r,i,a),Js(t,xy);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=kg,Ic(e,t,n,r,i,a)):f._visibility&kg?Ic(e,t,n,r,i,a):Rc(e,t,n,r,a),i&&d&2048&&Mc(t.alternate,t);break;case 24:Ic(e,t,n,r,i,a),i&&d&2048&&Nc(t.alternate,t);break;default:Ic(e,t,n,r,i,a)}(t.mode&Rg)!==Ig&&0<=G&&0<=O_&&(A_||.05<D_)&&Jn(t,G,O_,D_,k_),ci(o),ui(s),k_=c,A_=l,Sg=u}function Rc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=Sg;(a.mode&Rg)!==Ig&&0<a.actualStartTime&&a.flags&1&&Kn(a,a.actualStartTime,l,Mb,s);var d=a.flags;switch(a.tag){case 22:Rc(o,a,s,c,l),d&2048&&Mc(a.alternate,a);break;case 24:Rc(o,a,s,c,l),d&2048&&Nc(a.alternate,a);break;default:Rc(o,a,s,c,l)}Sg=u,a=t}}function zc(e,t,n){if(e.subtreeFlags&Nb)for(e=e.child;e!==null;)Bc(e,t,n),e=e.sibling}function Bc(e,t,n){switch(e.tag){case 26:zc(e,t,n),e.flags&Nb&&e.memoizedState!==null&&Ud(n,jb,e.memoizedState,e.memoizedProps);break;case 5:zc(e,t,n);break;case 3:case 4:var r=jb;jb=Td(e.stateNode.containerInfo),zc(e,t,n),jb=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Nb,Nb=16777216,zc(e,t,n),Nb=r):zc(e,t,n));break;default:zc(e,t,n)}}function Vc(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=si();Eb=r,Kc(r,e),(r.mode&Rg)!==Ig&&0<=G&&0<=O_&&.05<O_-G&&L(r,G,O_,`Unmount`),ci(i)}Vc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Uc(e),e=e.sibling}function Uc(e){var t=si(),n=li(),r=di(),i=fi();switch(e.tag){case 0:case 11:case 15:Hc(e),e.flags&2048&&Ys(e,e.return,xy|vy);break;case 3:var a=ri();Hc(e),e.stateNode.passiveEffectDuration+=ii(a);break;case 12:a=ri(),Hc(e),e.stateNode.passiveEffectDuration+=ai(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&kg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~kg,Wc(e),(e.mode&Rg)!==Ig&&0<=G&&0<=O_&&.05<O_-G&&L(e,G,O_,`Disconnect`)):Hc(e);break;default:Hc(e)}(e.mode&Rg)!==Ig&&0<=G&&0<=O_&&(A_||.05<D_)&&Jn(e,G,O_,D_,k_),ci(t),ui(n),A_=i,k_=r}function Wc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=si();Eb=r,Kc(r,e),(r.mode&Rg)!==Ig&&0<=G&&0<=O_&&.05<O_-G&&L(r,G,O_,`Unmount`),ci(i)}Vc(e)}for(e=e.child;e!==null;)Gc(e),e=e.sibling}function Gc(e){var t=si(),n=li(),r=di(),i=fi();switch(e.tag){case 0:case 11:case 15:Ys(e,e.return,xy),Wc(e);break;case 22:var a=e.stateNode;a._visibility&kg&&(a._visibility&=~kg,Wc(e));break;default:Wc(e)}(e.mode&Rg)!==Ig&&0<=G&&0<=O_&&(A_||.05<D_)&&Jn(e,G,O_,D_,k_),ci(t),ui(n),A_=i,k_=r}function Kc(e,t){for(;Eb!==null;){var n=Eb,r=n,i=t,a=si(),o=li(),s=di(),c=fi();switch(r.tag){case 0:case 11:case 15:Ys(r,i,xy);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&$r(i));break;case 24:ei(r.memoizedState.cache)}if((r.mode&Rg)!==Ig&&0<=G&&0<=O_&&(A_||.05<D_)&&Jn(r,G,O_,D_,k_),ci(a),ui(o),A_=c,k_=s,r=n.child,r!==null)r.return=n,Eb=r;else a:for(n=e;Eb!==null;){if(r=Eb,a=r.sibling,o=r.return,gc(r),r===n){Eb=null;break a}if(a!==null){a.return=o,Eb=a;break a}Eb=o}}}function H(){Ib.forEach(function(e){return e()})}function qc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||U.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function Jc(e){if((Jb&zb)!==Rb&&Zb!==0)return Zb&-Zb;var t=U.T;return t===null?Ue():(t._updatedFibers||=new Set,t._updatedFibers.add(e),Ql())}function Yc(){if(vx===0)if(!(Zb&536870912)||t_){var e=Ip;Ip<<=1,!(Ip&3932160)&&(Ip=262144),vx=e}else vx=536870912;return e=fy.current,e!==null&&(e.flags|=32),vx}function Xc(e,t,n){if(oS&&console.error(`useInsertionEffect must not schedule updates.`),tS&&(nS=!0),(e===Yb&&(cx===ex||cx===sx)||e.cancelPendingCommit!==null)&&(il(e,0),el(e,Zb,vx,!1)),Pe(e,n),(Jb&zb)!==Rb&&e===Yb){if(pp)switch(t.tag){case 0:case 11:case 15:e=Xb&&O(Xb)||`Unknown`,lS.has(e)||(lS.add(e),t=O(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:cS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else jp&&Be(e,t,n),Hl(t),e===Yb&&((Jb&zb)===Rb&&(gx|=n),mx===Gb&&el(e,Zb,vx,!1)),Ul(e)}function Zc(e,t,n){if((Jb&(zb|Bb))!==Rb)throw Error(`Should not already be working.`);if(Zb!==0&&Xb!==null){var r=Xb,i=yp();switch(nv){case tx:case ex:var a=rv;vg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,yg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,yg,void 0,`primary-light`));break;case sx:a=rv,vg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,yg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,yg,void 0,`primary-light`));break;default:vg&&(r=i-rv,3>r||console.timeStamp(`Blocked`,rv,i,yg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ae(e,t))?pl(e,t):dl(e,t,!0);var o=n;do{if(a===Vb){dx&&!n&&el(e,t,0,!1),t=cx,rv=__(),nv=t;break}else{if(r=yp(),i=e.current.alternate,o&&!$c(i)){Wn(t),i=x_,a=r,!vg||a<=i||(kx?kx.run(console.timeStamp.bind(console,`Teared Render`,i,a,xg,bg,`error`)):console.timeStamp(`Teared Render`,i,a,xg,bg,`error`)),rl(t,r),a=dl(e,t,!1),o=!1;continue}if(a===Ub){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Wn(t),$n(x_,r,t,kx),rl(t,r),t=s;a:{r=e,a=o,o=bx;var c=r.current.memoizedState.isDehydrated;if(c&&(il(r,s).flags|=256),s=dl(r,s,!1),s!==Ub){if(fx&&!c){r.errorRecoveryDisabledLanes|=a,gx|=a,a=Gb;break a}r=xx,xx=o,r!==null&&(xx===null?xx=r:xx.push.apply(xx,r))}a=s}if(o=!1,a!==Ub)continue;r=yp()}}if(a===Hb){Wn(t),$n(x_,r,t,kx),rl(t,r),il(e,0),el(e,t,0,!0);break}a:{switch(n=e,a){case Vb:case Hb:throw Error(`Root did not complete. This is a bug in React.`);case Gb:if((t&4194048)!==t)break;case Kb:Wn(t),Xn(x_,r,t,kx),rl(t,r),i=t,i&127?B_=r:i&4194048&&(Z_=r),el(n,t,vx,!ux);break a;case Ub:xx=null;break;case Wb:case qb:break;default:throw Error(`Unknown root exit status.`)}if(U.actQueue!==null)xl(n,i,t,xx,Ox,Sx,vx,gx,yx,a,null,null,x_,r);else{if((t&62914560)===t&&(o=Cx+Tx-yp(),10<o)){if(el(n,t,vx,!ux),ke(n,0,!0)!==0)break a;Wx=t,n.timeoutHandle=iC(Qc.bind(null,n,i,xx,Ox,Sx,t,vx,gx,yx,ux,a,`Throttled`,x_,r),o);break a}Qc(n,i,xx,Ox,Sx,t,vx,gx,yx,ux,a,null,x_,r)}}}break}while(1);Ul(e)}function Qc(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=oC;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:F},Bc(t,a,h),m=(a&62914560)===a?Cx-yp():(a&4194048)===a?wx-yp():0,m=Wd(h,m),m!==null)){Wx=a,e.cancelPendingCommit=m(xl.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),el(e,a,o,!l);return}xl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function $c(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Vh(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function el(e,t,n,r){t&=~_x,t&=~gx,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Mp(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ie(e,n,t)}function tl(){return(Jb&(zb|Bb))===Rb?(Wl(0,!1),!1):!0}function nl(){if(Xb!==null){if(cx===Qb)var e=Xb.return;else e=Xb,Vr(),xa(e),Kv=null,qv=0,e=Xb;for(;e!==null;)Hs(e.alternate,e),e=e.return;Xb=null}}function rl(e,t){e&127&&(j_=t),e&4194048&&(V_=t),e&62914560&&(Q_=t),e&2080374784&&($_=t)}function il(e,t){vg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,bg,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,bg,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,bg,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,bg,`primary-light`));var n=x_;if(x_=__(),Zb!==0&&0<n){if(Wn(Zb),mx===Wb||mx===Gb)Xn(n,x_,t,kx);else{var r=x_,i=kx;if(vg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,xg,bg,a)):console.timeStamp(o,n,r,xg,bg,a)}}rl(Zb,x_)}if(n=kx,kx=null,t&127){kx=N_,i=0<=M_&&M_<j_?j_:M_,r=0<=L_&&L_<j_?j_:L_,a=0<=r?r:0<=i?i:x_,0<=B_?(Wn(2),Zn(B_,a,t,n)):ev&127&&(Wn(2),nr(j_,a,tv)),n=i;var s=r,c=R_,l=0<z_,u=P_===y_,d=P_===b_;if(i=x_,r=N_,a=F_,o=I_,vg){if(xg=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,xg,bg,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,xg,bg,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:xg,trackGroup:bg,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}M_=-1.1,P_=0,I_=F_=null,B_=-1.1,z_=L_,L_=-1.1,j_=__()}if(t&4194048&&(kx=G_,i=0<=H_&&H_<V_?V_:H_,n=0<=U_&&U_<V_?V_:U_,r=0<=J_&&J_<V_?V_:J_,a=0<=r?r:0<=n?n:x_,0<=Z_?(Wn(256),Zn(Z_,a,t,kx)):ev&4194048&&(Wn(256),nr(V_,a,tv)),d=r,s=Y_,c=0<X_,l=W_===b_,a=x_,r=G_,o=K_,u=q_,vg&&(xg=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,xg,bg,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,xg,bg,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,xg,bg,`primary-dark`)):console.timeStamp(`Action`,i,n,xg,bg,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:xg,trackGroup:bg,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),U_=H_=-1.1,W_=0,Z_=-1.1,X_=J_,J_=-1.1,V_=__()),t&62914560&&ev&62914560&&(Wn(4194304),nr(Q_,x_,tv)),t&2080374784&&ev&2080374784&&(Wn(268435456),nr($_,x_,tv)),n=e.timeoutHandle,n!==oC&&(e.timeoutHandle=oC,aC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Wx=0,nl(),Yb=e,Xb=n=gr(e.current,null),Zb=t,cx=Qb,lx=null,ux=!1,dx=Ae(e,t),fx=!1,mx=Vb,yx=vx=_x=gx=hx=0,xx=bx=null,Sx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Mp(r),a=1<<i,t|=e[i],r&=~a;return px=t,rr(),e=sg(),1e3<e-ag&&(U.recentlyCreatedOwnerStacks=0,ag=e),fv.discardPendingWarnings(),n}function al(e,t){Oy=null,U.H=Hy,U.getCurrentStack=null,pp=!1,fp=null,t===Bv||t===Hv?(t=Ai(),cx=tx):t===Vv?(t=Ai(),cx=nx):cx=t===ub?ox:typeof t==`object`&&t&&typeof t.then==`function`?ix:$b,lx=t;var n=Xb;n===null?(mx=Hb,$o(e,wr(t,e.current))):n.mode&Rg&&mi(n)}function ol(){var e=fy.current;return e===null?!0:(Zb&4194048)===Zb?py===null:(Zb&62914560)===Zb||Zb&536870912?e===py:!1}function sl(){var e=U.H;return U.H=Hy,e===null?Hy:e}function cl(){var e=U.A;return U.A=Pb,e}function ll(e){kx===null&&(kx=e._debugTask==null?null:e._debugTask)}function ul(){mx=Gb,ux||(Zb&4194048)!==Zb&&fy.current!==null||(dx=!0),!(hx&134217727)&&!(gx&134217727)||Yb===null||el(Yb,Zb,vx,!1)}function dl(e,t,n){var r=Jb;Jb|=zb;var i=sl(),a=cl();if(Yb!==e||Zb!==t){if(jp){var o=e.memoizedUpdaters;0<o.size&&(Bl(e,Zb),o.clear()),Ve(e,t)}Ox=null,il(e,t)}t=!1,o=mx;a:do try{if(cx!==Qb&&Xb!==null){var s=Xb,c=lx;switch(cx){case ox:nl(),o=Kb;break a;case tx:case ex:case sx:case ix:fy.current===null&&(t=!0);var l=cx;if(cx=Qb,lx=null,vl(e,s,c,l),n&&dx){o=Vb;break a}break;default:l=cx,cx=Qb,lx=null,vl(e,s,c,l)}}fl(),o=mx;break}catch(t){al(e,t)}while(1);return t&&e.shellSuspendCounter++,Vr(),Jb=r,U.H=i,U.A=a,Xb===null&&(Yb=null,Zb=0,rr()),o}function fl(){for(;Xb!==null;)hl(Xb)}function pl(e,t){var n=Jb;Jb|=zb;var r=sl(),i=cl();if(Yb!==e||Zb!==t){if(jp){var a=e.memoizedUpdaters;0<a.size&&(Bl(e,Zb),a.clear()),Ve(e,t)}Ox=null,Ex=yp()+Dx,il(e,t)}else dx=Ae(e,t);a:do try{if(cx!==Qb&&Xb!==null)b:switch(t=Xb,a=lx,cx){case $b:cx=Qb,lx=null,vl(e,t,a,$b);break;case ex:case sx:if(Di(a)){cx=Qb,lx=null,gl(t);break}t=function(){cx!==ex&&cx!==sx||Yb!==e||(cx=ax),Ul(e)},a.then(t,t);break a;case tx:cx=ax;break a;case nx:cx=rx;break a;case ax:Di(a)?(cx=Qb,lx=null,gl(t)):(cx=Qb,lx=null,vl(e,t,a,ax));break;case rx:var o=null;switch(Xb.tag){case 26:o=Xb.memoizedState;case 5:case 27:var s=Xb;if(o?Hd(o):s.stateNode.complete){cx=Qb,lx=null;var c=s.sibling;if(c!==null)Xb=c;else{var l=s.return;l===null?Xb=null:(Xb=l,yl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}cx=Qb,lx=null,vl(e,t,a,rx);break;case ix:cx=Qb,lx=null,vl(e,t,a,ix);break;case ox:nl(),mx=Kb;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}U.actQueue===null?ml():fl();break}catch(t){al(e,t)}while(1);return Vr(),U.H=r,U.A=i,Jb=n,Xb===null?(Yb=null,Zb=0,rr(),mx):Vb}function ml(){for(;Xb!==null&&!_p();)hl(Xb)}function hl(e){var t=e.alternate;(e.mode&Rg)===Ig?t=M(e,Ns,t,e,px):(pi(e),t=M(e,Ns,t,e,px),mi(e)),e.memoizedProps=e.pendingProps,t===null?yl(e):Xb=t}function gl(e){var t=M(e,_l,e);e.memoizedProps=e.pendingProps,t===null?yl(e):Xb=t}function _l(e){var t=e.alternate,n=(e.mode&Rg)!==Ig;switch(n&&pi(e),e.tag){case 15:case 0:t=_s(t,e,e.pendingProps,e.type,void 0,Zb);break;case 11:t=_s(t,e,e.pendingProps,e.type.render,e.ref,Zb);break;case 5:xa(e);default:Hs(t,e),e=Xb=_r(e,px),t=Ns(t,e,px)}return n&&mi(e),t}function vl(e,t,n,r){Vr(),xa(t),Kv=null,qv=0;var i=t.return;try{if(is(e,i,t,n,Zb)){mx=Hb,$o(e,wr(n,e.current)),Xb=null;return}}catch(t){if(i!==null)throw Xb=i,t;mx=Hb,$o(e,wr(n,e.current)),Xb=null;return}t.flags&32768?(t_||r===$b?e=!0:dx||Zb&536870912?e=!1:(ux=e=!0,(r===ex||r===sx||r===tx||r===ix)&&(r=fy.current,r!==null&&r.tag===13&&(r.flags|=16384))),bl(t,e)):yl(t)}function yl(e){var t=e;do{if(t.flags&32768){bl(t,ux);return}var n=t.alternate;if(e=t.return,pi(t),n=M(t,Bs,n,t,px),(t.mode&Rg)!==Ig&&hi(t),n!==null){Xb=n;return}if(t=t.sibling,t!==null){Xb=t;return}Xb=t=e}while(t!==null);mx===Vb&&(mx=qb)}function bl(e,t){do{var n=Vs(e.alternate,e);if(n!==null){n.flags&=32767,Xb=n;return}if((e.mode&Rg)!==Ig){hi(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Xb=e;return}Xb=e=n}while(e!==null);mx=Kb,Xb=null}function xl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Dl();while(Vx!==Fx);if(fv.flushLegacyContextWarning(),fv.flushPendingUnsafeLifecycleWarnings(),(Jb&(zb|Bb))!==Rb)throw Error(`Should not already be working.`);if(Wn(n),l===Ub?$n(f,p,n,kx):r===null?Yn(f,p,n,kx):Qn(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,kx),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Mg,Fe(e,n,a,o,s,c),e===Yb&&(Xb=Yb=null,Zb=0),Ux=t,Hx=e,Wx=n,Gx=a,qx=i,Jx=r,Kx=p,Yx=d,Xx=jx,Zx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Vl(Cp,function(){return rC=window.event,Xx===jx&&(Xx=Nx),Ol(),null})):(e.callbackNode=null,e.callbackPriority=0),w_=null,S_=__(),d!==null&&er(p,S_,d,kx),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=U.T,U.T=null,i=Kf.p,Kf.p=Rp,o=Jb,Jb|=Bb;try{mc(e,t,n)}finally{Jb=o,Kf.p=i,U.T=r}}Vx=Ix,Sl(),Cl(),wl()}}function Sl(){if(Vx===Ix){Vx=Fx;var e=Hx,t=Ux,n=Wx,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=U.T,U.T=null;var i=Kf.p;Kf.p=Rp;var a=Jb;Jb|=Bb;try{Db=n,Ob=e,oi(),wc(t,e),Ob=Db=null,n=eC;var o=Pn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Nn(s.ownerDocument.documentElement,s)){if(c!==null&&Fn(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Mn(s,h),v=Mn(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}WC=!!$S,eC=$S=null}finally{Jb=a,Kf.p=i,U.T=r}}e.current=t,Vx=Lx}}function Cl(){if(Vx===Lx){Vx=Fx;var e=Zx;if(e!==null){S_=__();var t=C_,n=S_;!vg||n<=t||(tv?tv.run(console.timeStamp.bind(console,e,t,n,xg,bg,`secondary-light`)):console.timeStamp(e,t,n,xg,bg,`secondary-light`))}e=Hx,t=Ux,n=Wx;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=U.T,U.T=null;var i=Kf.p;Kf.p=Rp;var a=Jb;Jb|=Bb;try{Db=n,Ob=e,oi(),hc(e,t.alternate,t),Ob=Db=null}finally{Jb=a,Kf.p=i,U.T=r}}e=Kx,t=Yx,C_=__(),e=t===null?e:S_,t=C_,n=Xx===Mx,r=kx,w_===null?!vg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,xg,bg,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,xg,bg,n?`error`:`secondary-dark`)):tr(e,t,w_,!1,r),Vx=Rx}}function wl(){if(Vx===zx||Vx===Rx){if(Vx===zx){var e=C_;C_=__();var t=C_,n=Xx===Mx;!vg||t<=e||(tv?tv.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,xg,bg,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,xg,bg,n?` error`:`secondary-light`)),Xx!==Mx&&(Xx=Px)}Vx=Fx,vp(),e=Hx;var r=Ux;t=Wx,n=Jx;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?Vx=Bx:(Vx=Fx,Ux=Hx=null,El(e,e.pendingLanes),iS=0,aS=null);var a=e.pendingLanes;if(a===0&&(Ax=null),i||Rl(e),a=He(t),r=r.stateNode,kp&&typeof kp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Rp:var s=xp;break;case zp:s=Sp;break;case Bp:s=Cp;break;case Vp:s=Tp;break;default:s=Cp}kp.onCommitFiberRoot(Op,r,s,o)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(jp&&e.memoizedUpdaters.clear(),H(),n!==null){o=U.T,s=Kf.p,Kf.p=Rp,U.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=Tl(l.stack);M(l.source,c,l.value,u)}}finally{U.T=o,Kf.p=s}}Wx&3&&Dl(),Ul(e),a=e.pendingLanes,t&261930&&a&42?(av=!0,e===eS?$x++:($x=0,eS=e)):$x=0,i||rl(t,C_),Wl(0,!1)}}function Tl(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function El(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ei(t)))}function Dl(){return Sl(),Cl(),wl(),Ol()}function Ol(){if(Vx!==Bx)return!1;var e=Hx,t=Gx;Gx=0;var n=He(Wx),r=Bp===0||Bp>n?Bp:n;n=U.T;var i=Kf.p;try{Kf.p=r,U.T=null;var a=qx;qx=null,r=Hx;var o=Wx;if(Vx=Fx,Ux=Hx=null,Wx=0,(Jb&(zb|Bb))!==Rb)throw Error(`Cannot flush passive effects while already rendering.`);Wn(o),tS=!0,nS=!1;var s=0;if(w_=null,s=yp(),Xx===Px)nr(C_,s,tv);else{var c=C_,l=s,u=Xx===Nx;!vg||l<=c||(kx?kx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,xg,bg,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,xg,bg,`secondary-light`))}c=Jb,Jb|=Bb;var d=r.current;oi(),Uc(d);var f=r.current;d=Kx,oi(),Fc(r,f,o,a,d),Rl(r),Jb=c;var p=yp();if(f=s,d=kx,w_===null?!vg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,xg,bg,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,xg,bg,`secondary-dark`)):tr(f,p,w_,!0,d),rl(o,p),Wl(0,!1),nS?r===aS?iS++:(iS=0,aS=r):iS=0,nS=tS=!1,kp&&typeof kp.onPostCommitFiberRoot==`function`)try{kp.onPostCommitFiberRoot(Op,r)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Kf.p=i,U.T=n,El(e,t)}}function kl(e,t,n){t=wr(n,t),_i(t),t=ts(e.stateNode,t,2),e=Ji(e,t,2),e!==null&&(Pe(e,2),Ul(e))}function Al(e,t,n){if(oS=!1,e.tag===3)kl(e,e,n);else{for(;t!==null;){if(t.tag===3){kl(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Ax===null||!Ax.has(r))){e=wr(n,e),_i(e),n=ns(2),r=Ji(t,n,2),r!==null&&(rs(n,r,t,e),Pe(r,2),Ul(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
+
160
+ Error message:
161
+
162
+ %s`,n)}}function jl(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Lb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(fx=!0,i.add(n),r=Ml.bind(null,e,t,n),jp&&Bl(e,n),t.then(r,r))}function Ml(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>M_&&(j_=M_=__(),N_=v_(`Promise Resolved`),P_=b_):n&4194048&&0>U_&&(V_=U_=__(),G_=v_(`Promise Resolved`),W_=b_),qc()&&U.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
+
164
+ When testing, code that resolves suspended data should be wrapped into act(...):
165
+
166
+ act(() => {
167
+ /* finish loading suspended data */
168
+ });
169
+ /* assert on the output */
170
+
171
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Yb===e&&(Zb&n)===n&&(mx===Gb||mx===Wb&&(Zb&62914560)===Zb&&yp()-Cx<Tx?(Jb&zb)===Rb&&il(e,0):_x|=n,yx===Zb&&(yx=0)),Ul(e)}function Nl(e,t){t===0&&(t=Me()),e=or(e,t),e!==null&&(Pe(e,t),Ul(e))}function Pl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nl(e,n)}function Fl(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Nl(e,n)}function Il(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===Mf;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?M(i,Ll,r,i):i.subtreeFlags&67108864&&M(i,Il,r,i,a)):i.flags&67108864?a&&M(i,Ll,r,i):Il(r,i,a),t=t.sibling}}function Ll(e,t){Ee(!0);try{Oc(t),Gc(t),Ac(e,t.alternate,t,!1),Lc(e,t,0,null,!1,0)}finally{Ee(!1)}}function Rl(e){var t=!0;e.current.mode&(zg|Bg)||(t=!1),Il(e,e.current,t)}function zl(e){if((Jb&zb)===Rb){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=O(e)||`ReactComponent`,sS!==null){if(sS.has(t))return;sS.add(t)}else sS=new Set([t]);M(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function Bl(e,t){jp&&e.memoizedUpdaters.forEach(function(n){Be(e,n,t)})}function Vl(e,t){var n=U.actQueue;return n===null?hp(e,t):(n.push(t),uS)}function Hl(e){qc()&&U.actQueue===null&&M(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
+
173
+ When testing, code that causes React state updates should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* fire events that update state */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,O(e))})}function Ul(e){e!==fS&&e.next===null&&(fS===null?dS=fS=e:fS=fS.next=e),hS=!0,U.actQueue===null?pS||(pS=!0,Zl()):mS||(mS=!0,Zl())}function Wl(e,t){if(!gS&&hS){gS=!0;do for(var n=!1,r=dS;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Mp(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Yl(r,a))}else a=Zb,a=ke(r,r===Yb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==oC),!(a&3)||Ae(r,a)||(n=!0,Yl(r,a));r=r.next}while(n);gS=!1}}function Gl(){rC=window.event,Kl()}function Kl(){hS=mS=pS=!1;var e=0;_S!==0&&Bu()&&(e=_S);for(var t=yp(),n=null,r=dS;r!==null;){var i=r.next,a=ql(r,t);a===0?(r.next=null,n===null?dS=i:n.next=i,i===null&&(fS=n)):(n=r,(e!==0||a&3)&&(hS=!0)),r=i}Vx!==Fx&&Vx!==Bx||Wl(e,!1),_S!==0&&(_S=0)}function ql(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Mp(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Yb,n=Zb,n=ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==oC),r=e.callbackNode,n===0||e===t&&(cx===ex||cx===sx)||e.cancelPendingCommit!==null)return r!==null&&Xl(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ae(e,n)){if(t=n&-n,t!==e.callbackPriority||U.actQueue!==null&&r!==vS)Xl(r);else return t;switch(He(n)){case Rp:case zp:n=Sp;break;case Bp:n=Cp;break;case Vp:n=Tp;break;default:n=Cp}return r=Jl.bind(null,e),U.actQueue===null?n=hp(n,r):(U.actQueue.push(r),n=vS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&Xl(r),e.callbackPriority=2,e.callbackNode=null,2}function Jl(e,t){if(av=iv=!1,rC=window.event,Vx!==Fx&&Vx!==Bx)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xx===jx&&(Xx=Nx),Dl()&&e.callbackNode!==n)return null;var r=Zb;return r=ke(e,e===Yb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==oC),r===0?null:(Zc(e,r,t),ql(e,yp()),e.callbackNode!=null&&e.callbackNode===n?Jl.bind(null,e):null)}function Yl(e,t){if(Dl())return null;iv=av,av=!1,Zc(e,t,!0)}function Xl(e){e!==vS&&e!==null&&gp(e)}function Zl(){U.actQueue!==null&&U.actQueue.push(function(){return Kl(),null}),cC(function(){(Jb&(zb|Bb))===Rb?Kl():hp(xp,Gl)})}function Ql(){if(_S===0){var e=cv;e===0&&(e=Fp,Fp<<=1,!(Fp&261888)&&(Fp=256)),_S=e}return _S}function $l(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(N(e,`action`),tn(``+e))}function eu(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function tu(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=$l((i[Wp]||null).action),o=r.submitter;o&&(t=(t=o[Wp]||null)?$l(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ih(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(_S!==0){var e=o?eu(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),Oo(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?eu(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),Oo(n,t,a,e))},currentTarget:i}]})}}function nu(e,t,n){e.currentTarget=n;try{t(e)}catch(e){lg(e)}e.currentTarget=null}function ru(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?nu(a,s,l):M(c,nu,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?nu(a,s,l):M(c,nu,a,s,l),i=c}}}}function iu(e,t){bS.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Kp];n===void 0&&(n=t[Kp]=new Set);var r=e+`__bubble`;n.has(r)||(su(t,e,2,!1),n.add(r))}function au(e,t,n){bS.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),su(n,e,r,t)}function ou(e){if(!e[xS]){e[xS]=!0,Zp.forEach(function(t){t!==`selectionchange`&&(bS.has(t)||au(t,!1,e),au(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xS]||(t[xS]=!0,au(`selectionchange`,!1,t))}}function su(e,t,n,r){switch(lf(t)){case Rp:var i=rf;break;case zp:i=af;break;default:i=of}n=i.bind(null,t,n,e),i=void 0,!Qm||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function cu(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Ke(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}an(function(){var r=a,i=nn(n),o=[];a:{var s=rg.get(e);if(s!==void 0){var c=ih,l=e;switch(e){case`keypress`:if(cn(n)===0)break a;case`keydown`:case`keyup`:c=xh;break;case`focusin`:l=`focus`,c=ph;break;case`focusout`:l=`blur`,c=ph;break;case`beforeblur`:case`afterblur`:c=ph;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=dh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=fh;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Ch;break;case Xh:case Zh:case Qh:c=mh;break;case ng:c=wh;break;case`scroll`:case`scrollend`:c=oh;break;case`wheel`:c=Th;break;case`copy`:case`cut`:case`paste`:c=hh;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Sh;break;case`toggle`:case`beforetoggle`:c=Eh}var u=(t&4)!=0,d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=on(p,f),h!=null&&u.push(lu(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==qm&&(l=n.relatedTarget||n.fromElement)&&(Ke(l)||l[Gp]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ke(l):null,l!==null&&(d=x(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=dh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Sh,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Je(c),m=l==null?s:Je(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ke(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=du,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&fu(o,s,c,u,!1),l!==null&&d!==null&&fu(o,d,l,u,!0)}}a:{if(s=r?Je(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=I;else if(vn(s))if(Bh)_=On;else{_=En;var v=Tn}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Yt(r.elementType)&&(_=I):_=Dn;if(_&&=_(e,r)){bn(o,_,n,i);break a}v&&v(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&ht(s,`number`,s.value)}switch(v=r?Je(r):window,e){case`focusin`:(vn(v)||v.contentEditable===`true`)&&(Uh=v,Wh=r,Gh=null);break;case`focusout`:Gh=Wh=Uh=null;break;case`mousedown`:Kh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kh=!1,In(o,n,i);break;case`selectionchange`:if(Hh)break;case`keydown`:case`keyup`:In(o,n,i)}var y;if(kh)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Ih?mn(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===Oh&&(b=`onCompositionStart`);b&&(Mh&&n.locale!==`ko`&&(Ih||b!==`onCompositionStart`?b===`onCompositionEnd`&&Ih&&(y=sn()):(eh=i,th=`value`in eh?eh.value:eh.textContent,Ih=!0)),v=uu(r,b),0<v.length&&(b=new gh(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=hn(n),y!==null&&(b.data=y)))),(y=jh?gn(e,n):_n(e,n))&&(b=uu(r,`onBeforeInput`),0<b.length&&(v=new _h(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),tu(o,e,r,n,i)}ru(o,t)})}function lu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function uu(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=on(e,n),i!=null&&r.unshift(lu(e,i,a)),i=on(e,t),i!=null&&r.push(lu(e,i,a))),e.tag===3)return r;e=e.return}return[]}function du(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fu(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=on(n,a),l!=null&&o.unshift(lu(n,l,c))):i||(l=on(n,a),l!=null&&o.push(lu(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function pu(e,t){Qt(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Bm||(Bm=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Qp,possibleRegistrationNames:$p};Yt(e)||typeof t.is==`string`||en(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function mu(e,t,n,r){t!==n&&(n=vu(n),vu(t)!==n&&(r[e]=t))}function hu(e,t,n){t.forEach(function(t){n[wu(t)]=t===`style`?Tu(e):e.getAttribute(t)})}function gu(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function _u(e,t){return e=e.namespaceURI===Mm||e.namespaceURI===Nm?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function vu(e){return xe(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,be(e)),Se(e)),(typeof e==`string`?e:``+e).replace(AS,`
181
+ `).replace(jS,``)}function yu(e,t){return t=vu(t),vu(e)===t}function bu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(Gt(r,t,!1),t===`body`||t===`textarea`&&r===``||Kt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(Gt(``+r,t,!1),t!==`body`&&Kt(e,``+r));break;case`className`:rt(e,`class`,r);break;case`tabIndex`:rt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:rt(e,n,r);break;case`style`:P(e,r,a);break;case`data`:if(t!==`object`){rt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}N(r,n),r=tn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||DS||(DS=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||ES||(ES=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||wS?t!==`button`||i.type==null||i.type===`submit`||wS?typeof r==`function`&&(i.name==null||TS||(TS=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||DS||(DS=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||ES||(ES=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(wS=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(wS=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&bu(e,t,`name`,i.name,i,null),bu(e,t,`formEncType`,i.formEncType,i,null),bu(e,t,`formMethod`,i.formMethod,i,null),bu(e,t,`formTarget`,i.formTarget,i,null)):(bu(e,t,`encType`,i.encType,i,null),bu(e,t,`method`,i.method,i,null),bu(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}N(r,n),r=tn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&gu(n,r),e.onclick=F);break;case`onScroll`:r!=null&&(typeof r!=`function`&&gu(n,r),iu(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&gu(n,r),iu(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}N(r,n),n=tn(``+r),e.setAttributeNS(MS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(N(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||kS[n]||(kS[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(N(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(N(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(N(r,n),e.setAttribute(n,r));break;case`popover`:iu(`beforetoggle`,e),iu(`toggle`,e),nt(e,`popover`,r);break;case`xlinkActuate`:it(e,MS,`xlink:actuate`,r);break;case`xlinkArcrole`:it(e,MS,`xlink:arcrole`,r);break;case`xlinkRole`:it(e,MS,`xlink:role`,r);break;case`xlinkShow`:it(e,MS,`xlink:show`,r);break;case`xlinkTitle`:it(e,MS,`xlink:title`,r);break;case`xlinkType`:it(e,MS,`xlink:type`,r);break;case`xmlBase`:it(e,NS,`xml:base`,r);break;case`xmlLang`:it(e,NS,`xml:lang`,r);break;case`xmlSpace`:it(e,NS,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),nt(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:OS||typeof r!=`object`||!r||(OS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=Xt(n),nt(e,n,r)):Qp.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&gu(n,r)}}function xu(e,t,n,r,i,a){switch(n){case`style`:P(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&gu(n,r),iu(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&gu(n,r),iu(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&gu(n,r),e.onclick=F);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(Qp.hasOwnProperty(n))r!=null&&typeof r!=`function`&&gu(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[Wp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):nt(e,n,r)}}}function Su(e,t,n){switch(pu(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:iu(`error`,e),iu(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:bu(e,t,a,o,n,null)}}i&&bu(e,t,`srcSet`,n.srcSet,n,null),r&&bu(e,t,`src`,n.src,n,null);return;case`input`:$e(`input`,n),iu(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:bu(e,t,r,u,n,null)}}ft(e,n),mt(e,a,s,c,l,o,i,!1);return;case`select`:for(i in $e(`select`,n),iu(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:bu(e,t,i,s,n,null)}yt(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&vt(e,!!r,n,!0):vt(e,!!r,t,!1);return;case`textarea`:for(o in $e(`textarea`,n),iu(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:bu(e,t,o,s,n,null)}bt(e,n),St(e,r,i,a);return;case`option`:for(c in gt(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:bu(e,t,c,r,n,null)}return;case`dialog`:iu(`beforetoggle`,e),iu(`toggle`,e),iu(`cancel`,e),iu(`close`,e);break;case`iframe`:case`object`:iu(`load`,e);break;case`video`:case`audio`:for(r=0;r<yS.length;r++)iu(yS[r],e);break;case`image`:iu(`error`,e),iu(`load`,e);break;case`details`:iu(`toggle`,e);break;case`embed`:case`source`:case`link`:iu(`error`,e),iu(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:bu(e,t,l,r,n,null)}return;default:if(Yt(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&xu(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&bu(e,t,s,r,n,null))}function Cu(e,t,n,r){switch(pu(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||bu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&bu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||CS||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),CS=!0),!t||r||SS||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),SS=!0),pt(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||bu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&bu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?vt(e,!!t,t?[]:``,!1):vt(e,!!t,r,!0)):vt(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:bu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&bu(e,t,o,i,r,a)}xt(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:bu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:bu(e,t,c,f,r,p)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&bu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:bu(e,t,l,f,r,p)}return;default:if(Yt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&xu(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||xu(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&bu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||bu(e,t,d,f,r,p)}function wu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function Tu(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Eu(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(Ce(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||jm.has(a)?(Ce(o,a),r+=i+a.replace(xm,`-$1`).toLowerCase().replace(Sm,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(xm,`-$1`).toLowerCase().replace(Sm,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=vu(r),vu(t)!==r&&(n.style=Tu(e)))}}function Du(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(N(r,t),e===``+r)return}mu(t,e,r,a)}function Ou(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}mu(t,e,r,a)}function ku(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(N(r,n),e===``+r)return}mu(t,e,r,a)}function Au(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(N(r,t),e===``+r))return}mu(t,e,r,a)}function ju(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(N(r,t),n=tn(``+r),e===n)return}mu(t,e,r,a)}function Mu(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if(Yt(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(Qp.hasOwnProperty(c))typeof l!=`function`&&gu(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||mu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=_u(e,l),mu(c,o,l,i));continue;case`style`:a.delete(c),Eu(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=tt(e,`class`,l),mu(`className`,o,l,i);continue;default:r.context===XS&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=tt(e,c,l),mu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(Qp.hasOwnProperty(l))typeof c!=`function`&&gu(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||mu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=_u(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Du(e,l,`class`,c,a,i);continue;case`tabIndex`:Du(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),Eu(e,c,i);continue;case`multiple`:a.delete(l),mu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),mu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),mu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),mu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}ju(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}else if(o===PS){a.delete(l.toLowerCase()),mu(l,`function`,c,i);continue}ju(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:ju(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:ku(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:ku(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:ku(e,l,l,c,a,i);continue;case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:Ou(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(N(c,o),s===``+c)break a}mu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(N(c,o),s===``+c))break a}mu(o,s,c,d)}continue;case`rowSpan`:Au(e,l,`rowspan`,c,a,i);continue;case`start`:Au(e,l,l,c,a,i);continue;case`xHeight`:Du(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Du(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Du(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Du(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Du(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Du(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Du(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Du(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Du(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Du(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||kS[l]||(kS[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),Ou(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=Xt(l),o=!1,r.context===XS&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Fm.hasOwnProperty(u)&&Fm[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,et(d))if(u.hasAttribute(d))u=u.getAttribute(d),N(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}else s=void 0;o||mu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&hu(e,a,i),Object.keys(i).length===0?null:i}function Nu(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function Pu(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Fu(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Pu(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Pu(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Iu(e){return e.nodeType===9?e:e.ownerDocument}function Lu(e){switch(e){case Nm:return ZS;case Mm:return QS;default:return XS}}function Ru(e,t){if(e===XS)switch(t){case`svg`:return ZS;case`math`:return QS;default:return XS}return e===ZS&&t===`foreignObject`?XS:e}function zu(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Bu(){var e=window.event;return e&&e.type===`popstate`?e===nC?!1:(nC=e,!0):(nC=null,!1)}function Vu(){var e=window.event;return e&&e!==rC?e.type:null}function Hu(){var e=window.event;return e&&e!==rC?e.timeStamp:-1.1}function Uu(e){setTimeout(function(){throw e})}function Wu(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Gu(){}function Ku(e,t,n,r){Cu(e,t,n,r),e[Wp]=r}function qu(e){Kt(e,``)}function Ju(e,t,n){e.nodeValue=n}function Yu(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Wp]||null;if(t!==null){var n=qe(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,M(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,M(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Xu(e){return e===`head`}function Zu(e,t){e.removeChild(t)}function Qu(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function $u(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===zS||n===LS){if(r===0){e.removeChild(i),yf(t);return}r--}else if(n===RS||n===BS||n===VS||n===HS||n===IS)r++;else if(n===US)wd(e.ownerDocument.documentElement);else if(n===GS){n=e.ownerDocument.head,wd(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Xp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===WS&&wd(e.ownerDocument.body);n=i}while(n);yf(t)}function ed(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===zS){if(e===0)break;e--}else n!==RS&&n!==BS&&n!==VS&&n!==HS||e++;n=r}while(n)}function td(e){ed(e,!0)}function nd(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function rd(e){e.nodeValue=``}function id(e){ed(e,!1)}function ad(e,t){t=t[YS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function od(e,t){e.nodeValue=t}function sd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:sd(n),Ge(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){N(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[Xp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=md(e.nextSibling),e===null)break}return null}function ld(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=md(e.nextSibling),e===null))return null;return e}function ud(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=md(e.nextSibling),e===null))return null;return e}function dd(e){return e.data===BS||e.data===VS}function fd(e){return e.data===HS||e.data===BS&&e.ownerDocument.readyState!==JS}function pd(e,t){var n=e.ownerDocument;if(e.data===VS)e._reactRetry=t;else if(e.data!==BS||n.readyState!==JS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function md(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===RS||t===HS||t===BS||t===VS||t===IS||t===KS||t===qS)break;if(t===zS||t===LS)return null}}return e}function hd(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[wu(a.name)]=a.name.toLowerCase()===`style`?Tu(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===IS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function gd(e,t,n){return n===null||!0!==n[FS]?(e.nodeValue===t?e=null:(t=vu(t),e=vu(e.nodeValue)===t?null:e.nodeValue),e):null}function _d(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===zS||n===LS){if(t===0)return md(e.nextSibling);t--}else n!==RS&&n!==HS&&n!==BS&&n!==VS&&n!==IS||t++}e=e.nextSibling}return null}function vd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===RS||n===HS||n===BS||n===VS||n===IS){if(t===0)return e;t--}else n!==zS&&n!==LS||t++}e=e.previousSibling}return null}function yd(e){yf(e)}function bd(e){yf(e)}function xd(e){yf(e)}function Sd(e,t,n,r,i){switch(i&&Wt(e,r.ancestorInfo),t=Iu(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function Cd(e,t,n,r){if(!n[Gp]&&qe(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Su(n,e,t),n[Up]=r,n[Wp]=t}function wd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ge(e)}function Td(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Ed(e,t,n){var r=vC;if(r&&typeof t==`string`&&t){var i=dt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gC.has(i)||(gC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Su(t,`link`,e),Xe(t),r.head.appendChild(t)))}}function Dd(e,t,n,r){var i=(i=$f.current)?Td(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=kd(n.href),t=Ye(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=kd(n.href);var a=Ye(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:uC,preload:null}},a.set(e,o),(a=i.querySelector(Ad(e)))&&!a._p&&(o.instance=a,o.state.loading=dC|mC),!hC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};hC.set(e,s),a||Md(i,e,s,o.state)}if(t&&r===null)throw n=`
182
+
183
+ - `+Od(t)+`
184
+ + `+Od(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
185
+
186
+ - `+Od(t)+`
187
+ + `+Od(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Nd(n),t=Ye(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function Od(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):mp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):mp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):mp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function kd(e){return`href="`+dt(e)+`"`}function Ad(e){return`link[rel="stylesheet"][`+e+`]`}function jd(e){return Df({},e,{"data-precedence":e.precedence,precedence:null})}function Md(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=dC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=dC}),t.addEventListener(`error`,function(){return r.loading|=fC}),Su(t,`link`,n),Xe(t),e.head.appendChild(t))}function Nd(e){return`[src="`+dt(e)+`"]`}function Pd(e){return`script[async]`+e}function Fd(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+dt(n.href)+`"]`);if(r)return t.instance=r,Xe(r),r;var i=Df({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Xe(r),Su(r,`style`,i),Id(r,n.precedence,e),t.instance=r;case`stylesheet`:i=kd(n.href);var a=e.querySelector(Ad(i));if(a)return t.state.loading|=mC,t.instance=a,Xe(a),a;r=jd(n),(i=hC.get(i))&&Ld(r,i),a=(e.ownerDocument||e).createElement(`link`),Xe(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Su(a,`link`,r),t.state.loading|=mC,Id(a,n.precedence,e),t.instance=a;case`script`:return a=Nd(n.src),(i=e.querySelector(Pd(a)))?(t.instance=i,Xe(i),i):(r=n,(i=hC.get(a))&&(r=Df({},n),Rd(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Xe(i),Su(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&mC)===uC&&(r=t.instance,t.state.loading|=mC,Id(r,n.precedence,e));return t.instance}function Id(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ld(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Rd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function zd(e,t,n){if(yC===null){var r=new Map,i=yC=new Map;i.set(n,r)}else i=yC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Xp]||a[Up]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Nm){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Bd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Vd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===ZS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Nu(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Hd(e){return!(e.type===`stylesheet`&&(e.state.loading&pC)===uC)}function Ud(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&mC)===uC){if(n.instance===null){var i=kd(r.href),a=t.querySelector(Ad(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Gd.bind(e),t.then(e,e)),n.state.loading|=mC,n.instance=a,Xe(a);return}a=t.ownerDocument||t,r=jd(r),(i=hC.get(i))&&Ld(r,i),a=a.createElement(`link`),Xe(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Su(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&pC)===uC&&(e.count++,n=Gd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Wd(e,t){return e.stylesheets&&e.count===0&&Kd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Kd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},bC+t);0<e.imgBytes&&CC===0&&(CC=125*Fu()*SC);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>CC?50:xC)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Gd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Kd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,TC=new Map,t.forEach(qd,e),TC=null,Gd.call(e))}function qd(e,t){if(!(t.state.loading&mC)){var n=TC.get(e);if(n)var r=n.get(wC);else{n=new Map,TC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(wC,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(wC,i),n.set(o,i),this.count++,r=Gd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=mC}}function Jd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=oC,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ne(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ne(0),this.hiddenUpdates=Ne(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Yd(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Jd(e,t,n,o,c,l,u,d,s),t=Lg,!0===a&&(t|=zg|Bg),t|=Rg,a=g(3,null,null,t),e.current=a,a.stateNode=e,t=Qr(),$r(t),e.pooledCache=t,$r(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Gi(a),e}function Xd(e){return e?(e=Ng,e):Ng}function Zd(e,t,n,r,i,a){if(kp&&typeof kp.onScheduleFiberRoot==`function`)try{kp.onScheduleFiberRoot(Op,r,n)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Xd(i),r.context===null?r.context=i:r.pendingContext=i,pp&&fp!==null&&!NC&&(NC=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
188
+
189
+ Check the render method of %s.`,O(fp)||`Unknown`)),r=qi(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=Ji(e,r,t),n!==null&&(ti(t,`root.render()`,null),Xc(n,e,t),Yi(n,e,t))}function Qd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $d(e,t){Qd(e,t),(e=e.alternate)&&Qd(e,t)}function ef(e){if(e.tag===13||e.tag===31){var t=or(e,67108864);t!==null&&Xc(t,e,67108864),$d(e,67108864)}}function tf(e){if(e.tag===13||e.tag===31){var t=Jc(e);t=ze(t);var n=or(e,t);n!==null&&Xc(n,e,t),$d(e,t)}}function nf(){return fp}function rf(e,t,n,r){var i=U.T;U.T=null;var a=Kf.p;try{Kf.p=Rp,of(e,t,n,r)}finally{Kf.p=a,U.T=i}}function af(e,t,n,r){var i=U.T;U.T=null;var a=Kf.p;try{Kf.p=zp,of(e,t,n,r)}finally{Kf.p=a,U.T=i}}function of(e,t,n,r){if(WC){var i=sf(r);if(i===null)cu(e,t,r,GC,n),uf(e,r);else if(ff(i,e,t,n,r))r.stopPropagation();else if(uf(e,r),t&4&&-1<$C.indexOf(e)){for(;i!==null;){var a=qe(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Oe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Mp(o);s.entanglements[1]|=c,o&=~c}Ul(a),(Jb&(zb|Bb))===Rb&&(Ex=yp()+Dx,Wl(0,!1))}}break;case 31:case 13:s=or(a,2),s!==null&&Xc(s,a,2),tl(),$d(a,2)}if(a=sf(r),a===null&&cu(e,t,r,GC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else cu(e,t,r,null,n)}}function sf(e){return e=nn(e),cf(e)}function cf(e){if(GC=null,e=Ke(e),e!==null){var t=x(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=S(t),e!==null)return e;e=null}else if(n===31){if(e=C(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return GC=e,null}function lf(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return Rp;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return zp;case`message`:switch(bp()){case xp:return Rp;case Sp:return zp;case Cp:case wp:return Bp;case Tp:return Vp;default:return Bp}default:return Bp}}function uf(e,t){switch(e){case`focusin`:case`focusout`:qC=null;break;case`dragenter`:case`dragleave`:JC=null;break;case`mouseover`:case`mouseout`:YC=null;break;case`pointerover`:case`pointerout`:XC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:ZC.delete(t.pointerId)}}function df(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=qe(t),t!==null&&ef(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ff(e,t,n,r,i){switch(t){case`focusin`:return qC=df(qC,e,t,n,r,i),!0;case`dragenter`:return JC=df(JC,e,t,n,r,i),!0;case`mouseover`:return YC=df(YC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return XC.set(a,df(XC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,ZC.set(a,df(ZC.get(a)||null,e,t,n,r,i)),!0}return!1}function pf(e){var t=Ke(e.target);if(t!==null){var n=x(t);if(n!==null){if(t=n.tag,t===13){if(t=S(n),t!==null){e.blockedOn=t,We(e.priority,function(){tf(n)});return}}else if(t===31){if(t=C(n),t!==null){e.blockedOn=t,We(e.priority,function(){tf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sf(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;qm!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),qm=i,n.target.dispatchEvent(r),qm===null&&console.error(`Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.`),qm=null}else return t=qe(n),t!==null&&ef(t),e.blockedOn=n,!1;t.shift()}return!0}function hf(e,t,n){mf(e)&&n.delete(t)}function gf(){KC=!1,qC!==null&&mf(qC)&&(qC=null),JC!==null&&mf(JC)&&(JC=null),YC!==null&&mf(YC)&&(YC=null),XC.forEach(hf),ZC.forEach(hf)}function _f(e,t){e.blockedOn===t&&(e.blockedOn=null,KC||(KC=!0,wf.unstable_scheduleCallback(wf.unstable_NormalPriority,gf)))}function vf(e){ew!==e&&(ew=e,wf.unstable_scheduleCallback(wf.unstable_NormalPriority,function(){ew===e&&(ew=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(cf(r||n)===null)continue;break}var a=qe(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),Oo(a,n,r,i))}}))}function yf(e){function t(t){return _f(t,e)}qC!==null&&_f(qC,e),JC!==null&&_f(JC,e),YC!==null&&_f(YC,e),XC.forEach(t),ZC.forEach(t);for(var n=0;n<QC.length;n++){var r=QC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<QC.length&&(n=QC[0],n.blockedOn===null);)pf(n),n.blockedOn===null&&QC.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Wp]||null;if(typeof a==`function`)o||vf(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Wp]||null)s=o.formAction;else if(cf(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),vf(n)}}}function bf(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function xf(e){this._internalRoot=e}function Sf(e){this._internalRoot=e}function Cf(e){e[Gp]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var wf=p(),Tf=d(),Ef=h(),Df=Object.assign,Of=Symbol.for(`react.element`),kf=Symbol.for(`react.transitional.element`),Af=Symbol.for(`react.portal`),jf=Symbol.for(`react.fragment`),Mf=Symbol.for(`react.strict_mode`),Nf=Symbol.for(`react.profiler`),Pf=Symbol.for(`react.consumer`),Ff=Symbol.for(`react.context`),If=Symbol.for(`react.forward_ref`),Lf=Symbol.for(`react.suspense`),Rf=Symbol.for(`react.suspense_list`),zf=Symbol.for(`react.memo`),Bf=Symbol.for(`react.lazy`),Vf=Symbol.for(`react.activity`),Hf=Symbol.for(`react.memo_cache_sentinel`),Uf=Symbol.iterator,Wf=Symbol.for(`react.client.reference`),Gf=Array.isArray,U=Tf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kf=Ef.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qf=Object.freeze({pending:!1,data:null,method:null,action:null}),Jf=[],Yf=[],Xf=-1,Zf=ne(null),Qf=ne(null),$f=ne(null),ep=ne(null),tp=0,np,rp,ip,W,ap,op,sp;ce.__reactDisabledLog=!0;var cp,lp,up=!1,dp=new(typeof WeakMap==`function`?WeakMap:Map),fp=null,pp=!1,mp=Object.prototype.hasOwnProperty,hp=wf.unstable_scheduleCallback,gp=wf.unstable_cancelCallback,_p=wf.unstable_shouldYield,vp=wf.unstable_requestPaint,yp=wf.unstable_now,bp=wf.unstable_getCurrentPriorityLevel,xp=wf.unstable_ImmediatePriority,Sp=wf.unstable_UserBlockingPriority,Cp=wf.unstable_NormalPriority,wp=wf.unstable_LowPriority,Tp=wf.unstable_IdlePriority,Ep=wf.log,Dp=wf.unstable_setDisableYieldValue,Op=null,kp=null,Ap=!1,jp=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Mp=Math.clz32?Math.clz32:De,Np=Math.log,Pp=Math.LN2,Fp=256,Ip=262144,Lp=4194304,Rp=2,zp=8,Bp=32,Vp=268435456,Hp=Math.random().toString(36).slice(2),Up=`__reactFiber$`+Hp,Wp=`__reactProps$`+Hp,Gp=`__reactContainer$`+Hp,Kp=`__reactEvents$`+Hp,qp=`__reactListeners$`+Hp,Jp=`__reactHandles$`+Hp,Yp=`__reactResources$`+Hp,Xp=`__reactMarker$`+Hp,Zp=new Set,Qp={},$p={},em={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},tm=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),nm={},rm={},im=/[\n"\\]/g,am=!1,om=!1,sm=!1,cm=!1,lm=!1,um=!1,dm=[`value`,`defaultValue`],fm=!1,pm=/["'&<>\n\t]|^\s|\s$/,mm=`address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp`.split(` `),hm=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),gm=hm.concat([`button`]),_m=`dd dt li option optgroup p rp rt`.split(` `),vm={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ym={},bm={animation:`animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction`.split(` `),background:`backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize`.split(` `),backgroundPosition:[`backgroundPositionX`,`backgroundPositionY`],border:`borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth`.split(` `),borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderLeft:[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`],borderRadius:[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`],borderRight:[`borderRightColor`,`borderRightStyle`,`borderRightWidth`],borderStyle:[`borderBottomStyle`,`borderLeftStyle`,`borderRightStyle`,`borderTopStyle`],borderTop:[`borderTopColor`,`borderTopStyle`,`borderTopWidth`],borderWidth:[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],flex:[`flexBasis`,`flexGrow`,`flexShrink`],flexFlow:[`flexDirection`,`flexWrap`],font:`fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight`.split(` `),fontVariant:`fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition`.split(` `),gap:[`columnGap`,`rowGap`],grid:`gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows`.split(` `),gridArea:[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`],gridColumn:[`gridColumnEnd`,`gridColumnStart`],gridColumnGap:[`columnGap`],gridGap:[`columnGap`,`rowGap`],gridRow:[`gridRowEnd`,`gridRowStart`],gridRowGap:[`rowGap`],gridTemplate:[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],transition:[`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],wordWrap:[`overflowWrap`]},xm=/([A-Z])/g,Sm=/^ms-/,Cm=/^(?:webkit|moz|o)[A-Z]/,wm=/^-ms-/,Tm=/-(.)/g,Em=/;\s*$/,Dm={},Om={},km=!1,Am=!1,jm=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `)),Mm=`http://www.w3.org/1998/Math/MathML`,Nm=`http://www.w3.org/2000/svg`,Pm=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Fm={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},Im={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Lm={},Rm=RegExp(`^(aria)-[: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]*$`),zm=RegExp(`^(aria)[A-Z][: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]*$`),Bm=!1,Vm={},Hm=/^on./,Um=/^on[^A-Z]/,Wm=RegExp(`^(aria)-[: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]*$`),Gm=RegExp(`^(aria)[A-Z][: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]*$`),Km=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,qm=null,Jm=null,Ym=null,Xm=!1,Zm=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Qm=!1;if(Zm)try{var $m={};Object.defineProperty($m,"passive",{get:function(){Qm=!0}}),window.addEventListener(`test`,$m,$m),window.removeEventListener(`test`,$m,$m)}catch{Qm=!1}var eh=null,th=null,nh=null,rh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ih=dn(rh),ah=Df({},rh,{view:0,detail:0}),oh=dn(ah),sh,ch,lh,uh=Df({},ah,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pn,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!==lh&&(lh&&e.type===`mousemove`?(sh=e.screenX-lh.screenX,ch=e.screenY-lh.screenY):ch=sh=0,lh=e),sh)},movementY:function(e){return`movementY`in e?e.movementY:ch}}),dh=dn(uh),fh=dn(Df({},uh,{dataTransfer:0})),ph=dn(Df({},ah,{relatedTarget:0})),mh=dn(Df({},rh,{animationName:0,elapsedTime:0,pseudoElement:0})),hh=dn(Df({},rh,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),gh=dn(Df({},rh,{data:0})),_h=gh,vh={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},yh={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`},bh={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},xh=dn(Df({},ah,{key:function(e){if(e.key){var t=vh[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?yh[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pn,charCode:function(e){return e.type===`keypress`?cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Sh=dn(Df({},uh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ch=dn(Df({},ah,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pn})),wh=dn(Df({},rh,{propertyName:0,elapsedTime:0,pseudoElement:0})),Th=dn(Df({},uh,{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})),Eh=dn(Df({},rh,{newState:0,oldState:0})),Dh=[9,13,27,32],Oh=229,kh=Zm&&`CompositionEvent`in window,Ah=null;Zm&&`documentMode`in document&&(Ah=document.documentMode);var jh=Zm&&`TextEvent`in window&&!Ah,Mh=Zm&&(!kh||Ah&&8<Ah&&11>=Ah),Nh=32,Ph=String.fromCharCode(Nh),Fh=!1,Ih=!1,Lh={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},Rh=null,zh=null,Bh=!1;Zm&&(Bh=yn(`input`)&&(!document.documentMode||9<document.documentMode));var Vh=typeof Object.is==`function`?Object.is:kn,Hh=Zm&&`documentMode`in document&&11>=document.documentMode,Uh=null,Wh=null,Gh=null,Kh=!1,qh={animationend:Ln(`Animation`,`AnimationEnd`),animationiteration:Ln(`Animation`,`AnimationIteration`),animationstart:Ln(`Animation`,`AnimationStart`),transitionrun:Ln(`Transition`,`TransitionRun`),transitionstart:Ln(`Transition`,`TransitionStart`),transitioncancel:Ln(`Transition`,`TransitionCancel`),transitionend:Ln(`Transition`,`TransitionEnd`)},Jh={},Yh={};Zm&&(Yh=document.createElement(`div`).style,`AnimationEvent`in window||(delete qh.animationend.animation,delete qh.animationiteration.animation,delete qh.animationstart.animation),`TransitionEvent`in window||delete qh.transitionend.transition);var Xh=Rn(`animationend`),Zh=Rn(`animationiteration`),Qh=Rn(`animationstart`),$h=Rn(`transitionrun`),eg=Rn(`transitionstart`),tg=Rn(`transitioncancel`),ng=Rn(`transitionend`),rg=new Map,ig=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ig.push(`scrollEnd`);var ag=0;if(typeof performance==`object`&&typeof performance.now==`function`)var og=performance,sg=function(){return og.now()};else{var cg=Date;sg=function(){return cg.now()}}var lg=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ug=`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`,dg=0,fg=1,pg=2,mg=3,hg=`–\xA0`,gg=`+\xA0`,_g=` \xA0`,vg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,yg=`Components ⚛`,bg=`Scheduler ⚛`,xg=`Blocking`,Sg=!1,Cg={color:`primary`,properties:null,tooltipText:``,track:yg},wg={start:-0,end:-0,detail:{devtools:Cg}},Tg=[`Changed Props`,``],Eg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Dg=[`Changed Props`,Eg],Og=1,kg=2,Ag=[],jg=0,Mg=0,Ng={};Object.freeze(Ng);var Pg=null,Fg=null,Ig=0,Lg=1,Rg=2,zg=8,Bg=16,Vg=32,Hg=!1;try{Object.preventExtensions({})}catch{Hg=!0}var Ug=new WeakMap,Wg=[],Gg=0,Kg=null,qg=0,Jg=[],Yg=0,Xg=null,Zg=1,Qg=``,$g=null,e_=null,t_=!1,n_=!1,r_=null,i_=null,a_=!1,o_=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),s_=ne(null),c_=ne(null),l_={},u_=null,d_=null,f_=!1,p_=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},m_=wf.unstable_scheduleCallback,h_=wf.unstable_NormalPriority,g_={$$typeof:Ff,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},__=wf.unstable_now,v_=console.createTask?console.createTask:function(){return null},y_=1,b_=2,x_=-0,S_=-0,C_=-0,w_=null,T_=-1.1,E_=-0,D_=-0,G=-1.1,O_=-1.1,k_=null,A_=!1,j_=-0,M_=-1.1,N_=null,P_=0,F_=null,I_=null,L_=-1.1,R_=null,z_=-1.1,B_=-1.1,V_=-0,H_=-1.1,U_=-1.1,W_=0,G_=null,K_=null,q_=null,J_=-1.1,Y_=null,X_=-1.1,Z_=-1.1,Q_=-0,$_=-0,ev=0,tv=null,nv=0,rv=-1.1,iv=!1,av=!1,ov=null,sv=0,cv=0,lv=null,uv=U.S;U.S=function(e,t){if(wx=yp(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>H_&&0>U_){H_=__();var n=Hu(),r=Vu();(n!==X_||r!==Y_)&&(X_=-1.1),J_=n,Y_=r}bi(e,t)}uv!==null&&uv(e,t)};var dv=ne(null),fv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},pv=[],mv=[],hv=[],gv=[],_v=[],vv=[],yv=new Set;fv.recordUnsafeLifecycleWarnings=function(e,t){yv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&pv.push(e),e.mode&zg&&typeof t.UNSAFE_componentWillMount==`function`&&mv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&hv.push(e),e.mode&zg&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&gv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&_v.push(e),e.mode&zg&&typeof t.UNSAFE_componentWillUpdate==`function`&&vv.push(e))},fv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<pv.length&&(pv.forEach(function(t){e.add(O(t)||`Component`),yv.add(t.type)}),pv=[]);var t=new Set;0<mv.length&&(mv.forEach(function(e){t.add(O(e)||`Component`),yv.add(e.type)}),mv=[]);var n=new Set;0<hv.length&&(hv.forEach(function(e){n.add(O(e)||`Component`),yv.add(e.type)}),hv=[]);var r=new Set;0<gv.length&&(gv.forEach(function(e){r.add(O(e)||`Component`),yv.add(e.type)}),gv=[]);var i=new Set;0<_v.length&&(_v.forEach(function(e){i.add(O(e)||`Component`),yv.add(e.type)}),_v=[]);var a=new Set;if(0<vv.length&&(vv.forEach(function(e){a.add(O(e)||`Component`),yv.add(e.type)}),vv=[]),0<t.size){var o=m(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
190
+
191
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
192
+
193
+ Please update the following components: %s`,o)}0<r.size&&(o=m(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
197
+
198
+ Please update the following components: %s`,o)),0<a.size&&(o=m(a),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+
202
+ Please update the following components: %s`,o)),0<e.size&&(o=m(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
205
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
206
+
207
+ Please update the following components: %s`,o)),0<n.size&&(o=m(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,o)),0<i.size&&(o=m(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,o))};var bv=new Map,xv=new Set;fv.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&zg&&(n=r),r=r.return;n===null?console.error(`Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.`):!xv.has(e.type)&&(r=bv.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],bv.set(n,r)),r.push(e))},fv.flushLegacyContextWarning=function(){bv.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(O(e)||`Component`),xv.add(e.type)});var r=m(n);M(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
+
220
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
+
222
+ Please update the following components: %s
223
+
224
+ Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},fv.discardPendingWarnings=function(){pv=[],mv=[],hv=[],gv=[],_v=[],vv=[],bv=new Map};var Sv={react_stack_bottom_frame:function(e,t,n){var r=pp;pp=!0;try{return e(t,n)}finally{pp=r}}},Cv=Sv.react_stack_bottom_frame.bind(Sv),wv={react_stack_bottom_frame:function(e){var t=pp;pp=!0;try{return e.render()}finally{pp=t}}},Tv=wv.react_stack_bottom_frame.bind(wv),Ev={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){Al(e,e.return,t)}}},Dv=Ev.react_stack_bottom_frame.bind(Ev),Ov={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){Al(e,e.return,t)}}},kv=Ov.react_stack_bottom_frame.bind(Ov),Av={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},jv=Av.react_stack_bottom_frame.bind(Av),Mv={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){Al(e,t,n)}}},Nv=Mv.react_stack_bottom_frame.bind(Mv),Pv={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Fv=Pv.react_stack_bottom_frame.bind(Pv),Iv={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){Al(e,t,n)}}},Lv=Iv.react_stack_bottom_frame.bind(Iv),Rv={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},zv=Rv.react_stack_bottom_frame.bind(Rv),Bv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Vv=Error(`Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),Hv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Uv={then:function(){console.error(`Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.`)}},Wv=null,Gv=!1,Kv=null,qv=0,Jv=null,Yv,Xv=Yv=!1,Zv={},Qv={},$v={};f=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=O(e),i=r||`null`;if(!Zv[i]){Zv[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=O(e))&&(a=`
225
+
226
+ Check the render method of \``+i+"`."),a||r&&(a=`
227
+
228
+ Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=O(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),M(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var ey=Ui(!0),ty=Ui(!1),ny=0,ry=1,iy=2,ay=3,oy=!1,sy=!1,cy=null,ly=!1,uy=ne(null),dy=ne(0),fy=ne(null),py=null,my=1,hy=2,gy=ne(0),_y=0,vy=1,yy=2,by=4,xy=8,Sy,Cy=new Set,wy=new Set,Ty=new Set,Ey=new Set,Dy=0,Oy=null,ky=null,Ay=null,jy=!1,My=!1,Ny=!1,Py=0,Fy=0,Iy=null,Ly=0,Ry=25,K=null,zy=null,By=-1,Vy=!1,Hy={readContext:Yr,use:Ea,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useLayoutEffect:pa,useInsertionEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useSyncExternalStore:pa,useId:pa,useHostTransitionStatus:pa,useFormState:pa,useActionState:pa,useOptimistic:pa,useMemoCache:pa,useCacheRefresh:pa};Hy.useEffectEvent=pa;var Uy=null,Wy=null,Gy=null,Ky=null,qy=null,Jy=null,Yy=null;Uy={readContext:function(e){return Yr(e)},use:Ea,useCallback:function(e,t){return K=`useCallback`,B(),da(t),_o(e,t)},useContext:function(e){return K=`useContext`,B(),Yr(e)},useEffect:function(e,t){return K=`useEffect`,B(),da(t),co(e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,B(),da(n),ho(e,t,n)},useInsertionEffect:function(e,t){K=`useInsertionEffect`,B(),da(t),oo(4,yy,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,B(),da(t),po(e,t)},useMemo:function(e,t){K=`useMemo`,B(),da(t);var n=U.H;U.H=qy;try{return yo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){K=`useReducer`,B();var r=U.H;U.H=qy;try{return ka(e,t,n)}finally{U.H=r}},useRef:function(e){return K=`useRef`,B(),ao(e)},useState:function(e){K=`useState`,B();var t=U.H;U.H=qy;try{return Va(e)}finally{U.H=t}},useDebugValue:function(){K=`useDebugValue`,B()},useDeferredValue:function(e,t){return K=`useDeferredValue`,B(),xo(e,t)},useTransition:function(){return K=`useTransition`,B(),jo()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,B(),Na(e,t,n)},useId:function(){return K=`useId`,B(),Fo()},useFormState:function(e,t){return K=`useFormState`,B(),fa(),$a(e,t)},useActionState:function(e,t){return K=`useActionState`,B(),$a(e,t)},useOptimistic:function(e){return K=`useOptimistic`,B(),Ha(e)},useHostTransitionStatus:Po,useMemoCache:Da,useCacheRefresh:function(){return K=`useCacheRefresh`,B(),Io()},useEffectEvent:function(e){return K=`useEffectEvent`,B(),uo(e)}},Wy={readContext:function(e){return Yr(e)},use:Ea,useCallback:function(e,t){return K=`useCallback`,V(),_o(e,t)},useContext:function(e){return K=`useContext`,V(),Yr(e)},useEffect:function(e,t){return K=`useEffect`,V(),co(e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,V(),ho(e,t,n)},useInsertionEffect:function(e,t){K=`useInsertionEffect`,V(),oo(4,yy,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,V(),po(e,t)},useMemo:function(e,t){K=`useMemo`,V();var n=U.H;U.H=qy;try{return yo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){K=`useReducer`,V();var r=U.H;U.H=qy;try{return ka(e,t,n)}finally{U.H=r}},useRef:function(e){return K=`useRef`,V(),ao(e)},useState:function(e){K=`useState`,V();var t=U.H;U.H=qy;try{return Va(e)}finally{U.H=t}},useDebugValue:function(){K=`useDebugValue`,V()},useDeferredValue:function(e,t){return K=`useDeferredValue`,V(),xo(e,t)},useTransition:function(){return K=`useTransition`,V(),jo()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,V(),Na(e,t,n)},useId:function(){return K=`useId`,V(),Fo()},useActionState:function(e,t){return K=`useActionState`,V(),$a(e,t)},useFormState:function(e,t){return K=`useFormState`,V(),fa(),$a(e,t)},useOptimistic:function(e){return K=`useOptimistic`,V(),Ha(e)},useHostTransitionStatus:Po,useMemoCache:Da,useCacheRefresh:function(){return K=`useCacheRefresh`,V(),Io()},useEffectEvent:function(e){return K=`useEffectEvent`,V(),uo(e)}},Gy={readContext:function(e){return Yr(e)},use:Ea,useCallback:function(e,t){return K=`useCallback`,V(),vo(e,t)},useContext:function(e){return K=`useContext`,V(),Yr(e)},useEffect:function(e,t){K=`useEffect`,V(),so(2048,xy,e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,V(),go(e,t,n)},useInsertionEffect:function(e,t){return K=`useInsertionEffect`,V(),so(4,yy,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,V(),so(4,by,e,t)},useMemo:function(e,t){K=`useMemo`,V();var n=U.H;U.H=Jy;try{return bo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){K=`useReducer`,V();var r=U.H;U.H=Jy;try{return Aa(e,t,n)}finally{U.H=r}},useRef:function(){return K=`useRef`,V(),Ca().memoizedState},useState:function(){K=`useState`,V();var e=U.H;U.H=Jy;try{return Aa(Oa)}finally{U.H=e}},useDebugValue:function(){K=`useDebugValue`,V()},useDeferredValue:function(e,t){return K=`useDeferredValue`,V(),So(e,t)},useTransition:function(){return K=`useTransition`,V(),Mo()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,V(),Pa(e,t,n)},useId:function(){return K=`useId`,V(),Ca().memoizedState},useFormState:function(e){return K=`useFormState`,V(),fa(),eo(e)},useActionState:function(e){return K=`useActionState`,V(),eo(e)},useOptimistic:function(e,t){return K=`useOptimistic`,V(),Ua(e,t)},useHostTransitionStatus:Po,useMemoCache:Da,useCacheRefresh:function(){return K=`useCacheRefresh`,V(),Ca().memoizedState},useEffectEvent:function(e){return K=`useEffectEvent`,V(),fo(e)}},Ky={readContext:function(e){return Yr(e)},use:Ea,useCallback:function(e,t){return K=`useCallback`,V(),vo(e,t)},useContext:function(e){return K=`useContext`,V(),Yr(e)},useEffect:function(e,t){K=`useEffect`,V(),so(2048,xy,e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,V(),go(e,t,n)},useInsertionEffect:function(e,t){return K=`useInsertionEffect`,V(),so(4,yy,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,V(),so(4,by,e,t)},useMemo:function(e,t){K=`useMemo`,V();var n=U.H;U.H=Yy;try{return bo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){K=`useReducer`,V();var r=U.H;U.H=Yy;try{return Ma(e,t,n)}finally{U.H=r}},useRef:function(){return K=`useRef`,V(),Ca().memoizedState},useState:function(){K=`useState`,V();var e=U.H;U.H=Yy;try{return Ma(Oa)}finally{U.H=e}},useDebugValue:function(){K=`useDebugValue`,V()},useDeferredValue:function(e,t){return K=`useDeferredValue`,V(),Co(e,t)},useTransition:function(){return K=`useTransition`,V(),No()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,V(),Pa(e,t,n)},useId:function(){return K=`useId`,V(),Ca().memoizedState},useFormState:function(e){return K=`useFormState`,V(),fa(),ro(e)},useActionState:function(e){return K=`useActionState`,V(),ro(e)},useOptimistic:function(e,t){return K=`useOptimistic`,V(),Ga(e,t)},useHostTransitionStatus:Po,useMemoCache:Da,useCacheRefresh:function(){return K=`useCacheRefresh`,V(),Ca().memoizedState},useEffectEvent:function(e){return K=`useEffectEvent`,V(),fo(e)}},qy={readContext:function(e){return l(),Yr(e)},use:function(e){return c(),Ea(e)},useCallback:function(e,t){return K=`useCallback`,c(),B(),_o(e,t)},useContext:function(e){return K=`useContext`,c(),B(),Yr(e)},useEffect:function(e,t){return K=`useEffect`,c(),B(),co(e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,c(),B(),ho(e,t,n)},useInsertionEffect:function(e,t){K=`useInsertionEffect`,c(),B(),oo(4,yy,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,c(),B(),po(e,t)},useMemo:function(e,t){K=`useMemo`,c(),B();var n=U.H;U.H=qy;try{return yo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){K=`useReducer`,c(),B();var r=U.H;U.H=qy;try{return ka(e,t,n)}finally{U.H=r}},useRef:function(e){return K=`useRef`,c(),B(),ao(e)},useState:function(e){K=`useState`,c(),B();var t=U.H;U.H=qy;try{return Va(e)}finally{U.H=t}},useDebugValue:function(){K=`useDebugValue`,c(),B()},useDeferredValue:function(e,t){return K=`useDeferredValue`,c(),B(),xo(e,t)},useTransition:function(){return K=`useTransition`,c(),B(),jo()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,c(),B(),Na(e,t,n)},useId:function(){return K=`useId`,c(),B(),Fo()},useFormState:function(e,t){return K=`useFormState`,c(),B(),$a(e,t)},useActionState:function(e,t){return K=`useActionState`,c(),B(),$a(e,t)},useOptimistic:function(e){return K=`useOptimistic`,c(),B(),Ha(e)},useMemoCache:function(e){return c(),Da(e)},useHostTransitionStatus:Po,useCacheRefresh:function(){return K=`useCacheRefresh`,B(),Io()},useEffectEvent:function(e){return K=`useEffectEvent`,c(),B(),uo(e)}},Jy={readContext:function(e){return l(),Yr(e)},use:function(e){return c(),Ea(e)},useCallback:function(e,t){return K=`useCallback`,c(),V(),vo(e,t)},useContext:function(e){return K=`useContext`,c(),V(),Yr(e)},useEffect:function(e,t){K=`useEffect`,c(),V(),so(2048,xy,e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,c(),V(),go(e,t,n)},useInsertionEffect:function(e,t){return K=`useInsertionEffect`,c(),V(),so(4,yy,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,c(),V(),so(4,by,e,t)},useMemo:function(e,t){K=`useMemo`,c(),V();var n=U.H;U.H=Jy;try{return bo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){K=`useReducer`,c(),V();var r=U.H;U.H=Jy;try{return Aa(e,t,n)}finally{U.H=r}},useRef:function(){return K=`useRef`,c(),V(),Ca().memoizedState},useState:function(){K=`useState`,c(),V();var e=U.H;U.H=Jy;try{return Aa(Oa)}finally{U.H=e}},useDebugValue:function(){K=`useDebugValue`,c(),V()},useDeferredValue:function(e,t){return K=`useDeferredValue`,c(),V(),So(e,t)},useTransition:function(){return K=`useTransition`,c(),V(),Mo()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,c(),V(),Pa(e,t,n)},useId:function(){return K=`useId`,c(),V(),Ca().memoizedState},useFormState:function(e){return K=`useFormState`,c(),V(),eo(e)},useActionState:function(e){return K=`useActionState`,c(),V(),eo(e)},useOptimistic:function(e,t){return K=`useOptimistic`,c(),V(),Ua(e,t)},useMemoCache:function(e){return c(),Da(e)},useHostTransitionStatus:Po,useCacheRefresh:function(){return K=`useCacheRefresh`,V(),Ca().memoizedState},useEffectEvent:function(e){return K=`useEffectEvent`,c(),V(),fo(e)}},Yy={readContext:function(e){return l(),Yr(e)},use:function(e){return c(),Ea(e)},useCallback:function(e,t){return K=`useCallback`,c(),V(),vo(e,t)},useContext:function(e){return K=`useContext`,c(),V(),Yr(e)},useEffect:function(e,t){K=`useEffect`,c(),V(),so(2048,xy,e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,c(),V(),go(e,t,n)},useInsertionEffect:function(e,t){return K=`useInsertionEffect`,c(),V(),so(4,yy,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,c(),V(),so(4,by,e,t)},useMemo:function(e,t){K=`useMemo`,c(),V();var n=U.H;U.H=Jy;try{return bo(e,t)}finally{U.H=n}},useReducer:function(e,t,n){K=`useReducer`,c(),V();var r=U.H;U.H=Jy;try{return Ma(e,t,n)}finally{U.H=r}},useRef:function(){return K=`useRef`,c(),V(),Ca().memoizedState},useState:function(){K=`useState`,c(),V();var e=U.H;U.H=Jy;try{return Ma(Oa)}finally{U.H=e}},useDebugValue:function(){K=`useDebugValue`,c(),V()},useDeferredValue:function(e,t){return K=`useDeferredValue`,c(),V(),Co(e,t)},useTransition:function(){return K=`useTransition`,c(),V(),No()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,c(),V(),Pa(e,t,n)},useId:function(){return K=`useId`,c(),V(),Ca().memoizedState},useFormState:function(e){return K=`useFormState`,c(),V(),ro(e)},useActionState:function(e){return K=`useActionState`,c(),V(),ro(e)},useOptimistic:function(e,t){return K=`useOptimistic`,c(),V(),Ga(e,t)},useMemoCache:function(e){return c(),Da(e)},useHostTransitionStatus:Po,useCacheRefresh:function(){return K=`useCacheRefresh`,V(),Ca().memoizedState},useEffectEvent:function(e){return K=`useEffectEvent`,c(),V(),fo(e)}};var Xy={},Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set,nb=new Set,rb=new Set,ib=new Set,ab=new Set,ob=new Set;Object.freeze(Xy);var sb={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Jc(e),i=qi(r);i.payload=t,n!=null&&(Go(n),i.callback=n),t=Ji(e,i,r),t!==null&&(ti(r,`this.setState()`,e),Xc(t,e,r),Yi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Jc(e),i=qi(r);i.tag=ry,i.payload=t,n!=null&&(Go(n),i.callback=n),t=Ji(e,i,r),t!==null&&(ti(r,`this.replaceState()`,e),Xc(t,e,r),Yi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jc(e),r=qi(n);r.tag=iy,t!=null&&(Go(t),r.callback=t),t=Ji(e,r,n),t!==null&&(ti(n,`this.forceUpdate()`,e),Xc(t,e,n),Yi(t,e,n))}},cb=null,lb=null,ub=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),db=!1,fb={},pb={},mb={},hb={},gb=!1,_b={},vb={},yb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},bb=!1,xb=null;xb=new Set;var Sb=!1,Cb=!1,wb=!1,Tb=typeof WeakSet==`function`?WeakSet:Set,Eb=null,Db=null,Ob=null,kb=null,Ab=!1,jb=null,Mb=!1,Nb=8192,Pb={getCacheForType:function(e){var t=Yr(g_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Yr(g_).controller.signal},getOwner:function(){return fp}};if(typeof Symbol==`function`&&Symbol.for){var Fb=Symbol.for;Fb(`selector.component`),Fb(`selector.has_pseudo_class`),Fb(`selector.role`),Fb(`selector.test_id`),Fb(`selector.text`)}var Ib=[],Lb=typeof WeakMap==`function`?WeakMap:Map,Rb=0,zb=2,Bb=4,Vb=0,Hb=1,Ub=2,Wb=3,Gb=4,Kb=6,qb=5,Jb=Rb,Yb=null,Xb=null,Zb=0,Qb=0,$b=1,ex=2,tx=3,nx=4,rx=5,ix=6,ax=7,ox=8,sx=9,cx=Qb,lx=null,ux=!1,dx=!1,fx=!1,px=0,mx=Vb,hx=0,gx=0,_x=0,vx=0,yx=0,bx=null,xx=null,Sx=!1,Cx=0,wx=0,Tx=300,Ex=1/0,Dx=500,Ox=null,kx=null,Ax=null,jx=0,Mx=1,Nx=2,Px=3,Fx=0,Ix=1,Lx=2,Rx=3,zx=4,Bx=5,Vx=0,Hx=null,Ux=null,Wx=0,Gx=0,Kx=-0,qx=null,Jx=null,Yx=null,Xx=jx,Zx=null,Qx=50,$x=0,eS=null,tS=!1,nS=!1,rS=50,iS=0,aS=null,oS=!1,sS=null,cS=!1,lS=new Set,uS={},dS=null,fS=null,pS=!1,mS=!1,hS=!1,gS=!1,_S=0,vS={};(function(){for(var e=0;e<ig.length;e++){var t=ig[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),zn(n,`on`+t)}zn(Xh,`onAnimationEnd`),zn(Zh,`onAnimationIteration`),zn(Qh,`onAnimationStart`),zn(`dblclick`,`onDoubleClick`),zn(`focusin`,`onFocus`),zn(`focusout`,`onBlur`),zn($h,`onTransitionRun`),zn(eg,`onTransitionStart`),zn(tg,`onTransitionCancel`),zn(ng,`onTransitionEnd`)})(),Qe(`onMouseEnter`,[`mouseout`,`mouseover`]),Qe(`onMouseLeave`,[`mouseout`,`mouseover`]),Qe(`onPointerEnter`,[`pointerout`,`pointerover`]),Qe(`onPointerLeave`,[`pointerout`,`pointerover`]),Ze(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ze(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ze(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ze(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ze(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ze(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yS=`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(` `),bS=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yS)),xS=`_reactListening`+Math.random().toString(36).slice(2),SS=!1,CS=!1,wS=!1,TS=!1,ES=!1,DS=!1,OS=!1,kS={},AS=/\r\n?/g,jS=/\u0000|\uFFFD/g,MS=`http://www.w3.org/1999/xlink`,NS=`http://www.w3.org/XML/1998/namespace`,PS=`javascript:throw new Error('React form unexpectedly submitted.')`,FS=`suppressHydrationWarning`,IS=`&`,LS=`/&`,RS=`$`,zS=`/$`,BS=`$?`,VS=`$~`,HS=`$!`,US=`html`,WS=`body`,GS=`head`,KS=`F!`,qS=`F`,JS=`loading`,YS=`style`,XS=0,ZS=1,QS=2,$S=null,eC=null,tC={dialog:!0,webview:!0},nC=null,rC=void 0,iC=typeof setTimeout==`function`?setTimeout:void 0,aC=typeof clearTimeout==`function`?clearTimeout:void 0,oC=-1,sC=typeof Promise==`function`?Promise:void 0,cC=typeof queueMicrotask==`function`?queueMicrotask:sC===void 0?iC:function(e){return sC.resolve(null).then(e).catch(Uu)},lC=null,uC=0,dC=1,fC=2,pC=3,mC=4,hC=new Map,gC=new Set,_C=Kf.d;Kf.d={f:function(){var e=_C.f(),t=tl();return e||t},r:function(e){var t=qe(e);t!==null&&t.tag===5&&t.type===`form`?Ao(t):_C.r(e)},D:function(e){_C.D(e),Ed(`dns-prefetch`,e,null)},C:function(e,t){_C.C(e,t),Ed(`preconnect`,e,t)},L:function(e,t,n){_C.L(e,t,n);var r=vC;if(r&&e&&t){var i=`link[rel="preload"][as="`+dt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+dt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+dt(n.imageSizes)+`"]`)):i+=`[href="`+dt(e)+`"]`;var a=i;switch(t){case`style`:a=kd(e);break;case`script`:a=Nd(e)}hC.has(a)||(e=Df({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ad(a))||t===`script`&&r.querySelector(Pd(a))||(t=r.createElement(`link`),Su(t,`link`,e),Xe(t),r.head.appendChild(t)))}},m:function(e,t){_C.m(e,t);var n=vC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+dt(r)+`"][href="`+dt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Nd(e)}if(!hC.has(a)&&(e=Df({rel:`modulepreload`,href:e},t),hC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Pd(a)))return}r=n.createElement(`link`),Su(r,`link`,e),Xe(r),n.head.appendChild(r)}}},X:function(e,t){_C.X(e,t);var n=vC;if(n&&e){var r=Ye(n).hoistableScripts,i=Nd(e),a=r.get(i);a||(a=n.querySelector(Pd(i)),a||(e=Df({src:e,async:!0},t),(t=hC.get(i))&&Rd(e,t),a=n.createElement(`script`),Xe(a),Su(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){_C.S(e,t,n);var r=vC;if(r&&e){var i=Ye(r).hoistableStyles,a=kd(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:uC,preload:null};if(o=r.querySelector(Ad(a)))s.loading=dC|mC;else{e=Df({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hC.get(a))&&Ld(e,n);var c=o=r.createElement(`link`);Xe(c),Su(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=dC}),c.addEventListener(`error`,function(){s.loading|=fC}),s.loading|=mC,Id(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){_C.M(e,t);var n=vC;if(n&&e){var r=Ye(n).hoistableScripts,i=Nd(e),a=r.get(i);a||(a=n.querySelector(Pd(i)),a||(e=Df({src:e,async:!0,type:`module`},t),(t=hC.get(i))&&Rd(e,t),a=n.createElement(`script`),Xe(a),Su(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var vC=typeof document>`u`?null:document,yC=null,bC=6e4,xC=800,SC=500,CC=0,wC=null,TC=null,EC=qf,DC={$$typeof:Ff,Provider:null,Consumer:null,_currentValue:EC,_currentValue2:EC,_threadCount:0},OC=`%c%s%c`,kC=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,AC=``,jC=` `,MC=Function.prototype.bind,NC=!1,PC=null,FC=null,IC=null,LC=null,RC=null,zC=null,BC=null,VC=null,HC=null,UC=null;PC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=Df({},e.memoizedProps),i=or(e,2),i!==null&&Xc(i,e,2))},FC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=Df({},e.memoizedProps),r=or(e,2),r!==null&&Xc(r,e,2))},IC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=Df({},e.memoizedProps),i=or(e,2),i!==null&&Xc(i,e,2))},LC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=or(e,2),t!==null&&Xc(t,e,2)},RC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=or(e,2),t!==null&&Xc(t,e,2)},zC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=or(e,2),t!==null&&Xc(t,e,2)},BC=function(e){var t=or(e,2);t!==null&&Xc(t,e,2)},VC=function(e){var t=Me(),n=or(e,t);n!==null&&Xc(n,e,t)},HC=function(e){s=e},UC=function(e){o=e};var WC=!0,GC=null,KC=!1,qC=null,JC=null,YC=null,XC=new Map,ZC=new Map,QC=[],$C=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `),ew=null;if(Sf.prototype.render=xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):b(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Zd(r,Jc(r),n,t,null,null)},Sf.prototype.unmount=xf.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Jb&(zb|Bb))!==Rb&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),Zd(e.current,2,null,e,null,null),tl(),t[Gp]=null}},Sf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ue();e={blockedOn:null,target:e,priority:t};for(var n=0;n<QC.length&&t!==0&&t<QC[n].priority;n++);QC.splice(n,0,e),n===0&&pf(e)}},(function(){var e=Tf.version;if(e!==`19.2.7`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
+ - react: `+(e+`
230
+ - react-dom: 19.2.7
231
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills`),Kf.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=T(t),e=e===null?null:ee(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:U,reconcilerVersion:`19.2.7`};return e.overrideHookState=PC,e.overrideHookStateDeletePath=FC,e.overrideHookStateRenamePath=IC,e.overrideProps=LC,e.overridePropsDeletePath=RC,e.overridePropsRenamePath=zC,e.scheduleUpdate=BC,e.scheduleRetry=VC,e.setErrorHandler=HC,e.setSuspenseHandler=UC,e.scheduleRefresh=v,e.scheduleRoot=_,e.setRefreshHandler=y,e.getCurrentFiber=nf,Te(e)})()&&Zm&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var tw=window.location.protocol;/^(https?|file):$/.test(tw)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(tw===`file:`?`
232
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!b(e))throw Error(`Target container is not a DOM element.`);Cf(e);var n=!1,r=``,i=Xo,a=Zo,o=Qo;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===kf&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
+
234
+ let root = createRoot(domContainer);
235
+ root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Yd(e,1,!1,null,null,n,r,null,i,a,o,bf),e[Gp]=t.current,ou(e),new xf(t)},e.hydrateRoot=function(e,t,n){if(!b(e))throw Error(`Target container is not a DOM element.`);Cf(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=Xo,o=Zo,s=Qo,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Yd(e,1,!0,t,n??null,r,i,c,a,o,s,bf),t.context=Xd(null),n=t.current,r=Jc(n),r=ze(r),i=qi(r),i.callback=null,Ji(n,i,r),ti(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,Pe(t,n),Ul(t),e[Gp]=t.current,ou(e),new Sf(t)},e.version=`19.2.7`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),_=o(((e,t)=>{t.exports=g()})),v=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),y=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),b=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),x=e=>{let t=b(e);return t.charAt(0).toUpperCase()+t.slice(1)},S={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`},C=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},w=l(d(),1),T=(0,w.createContext)({}),ee=()=>(0,w.useContext)(T),E=(0,w.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=ee()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,w.createElement)(`svg`,{ref:c,...S,width:t??l??S.width,height:t??l??S.height,stroke:e??f,strokeWidth:m,className:v(`lucide`,p,i),...!a&&!C(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,w.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),D=(e,t)=>{let n=(0,w.forwardRef)(({className:n,...r},i)=>(0,w.createElement)(E,{ref:i,iconNode:t,className:v(`lucide-${y(x(e))}`,`lucide-${e}`,n),...r}));return n.displayName=x(e),n},te=D(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),O=D(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),ne=D(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),k=D(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),A=D(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),re=D(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),ie=D(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),j=D(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ae=D(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),oe=D(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),se=D(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ce=D(`circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]),le=D(`circle-minus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),ue=D(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),de=D(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),fe=D(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),pe=D(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),me=D(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),he=D(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),ge=D(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),_e=D(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),ve=D(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),M=D(`git-fork`,[[`circle`,{cx:`12`,cy:`18`,r:`3`,key:`1mpf1b`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`path`,{d:`M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9`,key:`1uq4wg`}],[`path`,{d:`M12 12v3`,key:`158kv8`}]]),ye=D(`git-merge`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 21V9a9 9 0 0 0 9 9`,key:`7kw0sc`}]]),be=D(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),xe=D(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),Se=D(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),N=D(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Ce=D(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),we=D(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),Te=D(`message-square-text`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),Ee=D(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]),De=D(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Oe=D(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),ke=D(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Ae=D(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),je=D(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),Me=D(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Ne=D(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Pe=D(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]),Fe=D(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Ie=D(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),Le=D(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),Re=D(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),ze=D(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Be=D(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),Ve=D(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),He=_();function Ue(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ue(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function We(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ue(e))&&(r&&(r+=` `),r+=t);return r}var Ge=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ke=We,qe=(e,t)=>n=>{if(t?.variants==null)return Ke(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ge(t)||Ge(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ke(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Je=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ye=(e,t)=>({classGroupId:e,validator:t}),Xe=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ze=`-`,Qe=[],$e=`arbitrary..`,et=e=>{let t=rt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return nt(e);let n=e.split(Ze);return tt(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Je(i,t):t:i||Qe}return n[e]||Qe}}},tt=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=tt(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Ze):e.slice(t).join(Ze),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},nt=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?$e+r:void 0})(),rt=e=>{let{theme:t,classGroups:n}=e;return it(n,t)},it=(e,t)=>{let n=Xe();for(let r in e){let i=e[r];at(i,n,r,t)}return n},at=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ot(i,t,n,r)}},ot=(e,t,n,r)=>{if(typeof e==`string`){st(e,t,n);return}if(typeof e==`function`){ct(e,t,n,r);return}lt(e,t,n,r)},st=(e,t,n)=>{let r=e===``?t:ut(t,e);r.classGroupId=n},ct=(e,t,n,r)=>{if(dt(e)){at(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ye(n,e))},lt=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];at(o,ut(t,a),n,r)}},ut=(e,t)=>{let n=e,r=t.split(Ze),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Xe(),n.nextPart.set(t,i)),n=i}return n},dt=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ft=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},pt=`!`,mt=`:`,ht=[],gt=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),_t=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===mt){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(pt)?(c=s.slice(0,-1),l=!0):s.startsWith(pt)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return gt(t,l,c,u)};if(t){let e=t+mt,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):gt(ht,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},vt=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},yt=e=>({cache:ft(e.cacheSize),parseClassName:_t(e),sortModifiers:vt(e),postfixLookupClassGroupIds:bt(e),...et(e)}),bt=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},xt=/\s+/,St=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(xt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+pt:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ct=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=wt(n))&&(i&&(i+=` `),i+=r);return i},wt=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=wt(e[r]))&&(n&&(n+=` `),n+=t);return n},Tt=(e,...t)=>{let n,r,i,a,o=o=>(n=yt(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=St(e,n);return i(e,a),a};return a=o,(...e)=>a(Ct(...e))},Et=[],Dt=e=>{let t=t=>t[e]||Et;return t.isThemeGetter=!0,t},Ot=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,At=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,jt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ft=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>At.test(e),Lt=e=>!!e&&!Number.isNaN(Number(e)),Rt=e=>!!e&&Number.isInteger(Number(e)),zt=e=>e.endsWith(`%`)&&Lt(e.slice(0,-1)),Bt=e=>jt.test(e),Vt=()=>!0,Ht=e=>Mt.test(e)&&!Nt.test(e),Ut=()=>!1,Wt=e=>Pt.test(e),Gt=e=>Ft.test(e),Kt=e=>!P(e)&&!F(e),qt=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Jt=e=>un(e,mn,Ut),P=e=>Ot.test(e),Yt=e=>un(e,hn,Ht),Xt=e=>un(e,gn,Lt),Zt=e=>un(e,vn,Vt),Qt=e=>un(e,_n,Ut),$t=e=>un(e,fn,Ut),en=e=>un(e,pn,Gt),tn=e=>un(e,yn,Wt),F=e=>kt.test(e),nn=e=>dn(e,hn),rn=e=>dn(e,_n),an=e=>dn(e,fn),on=e=>dn(e,mn),sn=e=>dn(e,pn),cn=e=>dn(e,yn,!0),ln=e=>dn(e,vn,!0),un=(e,t,n)=>{let r=Ot.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},dn=(e,t,n=!1)=>{let r=kt.exec(e);return r?r[1]?t(r[1]):n:!1},fn=e=>e===`position`||e===`percentage`,pn=e=>e===`image`||e===`url`,mn=e=>e===`length`||e===`size`||e===`bg-size`,hn=e=>e===`length`,gn=e=>e===`number`,_n=e=>e===`family-name`,vn=e=>e===`number`||e===`weight`,yn=e=>e===`shadow`,bn=Tt(()=>{let e=Dt(`color`),t=Dt(`font`),n=Dt(`text`),r=Dt(`font-weight`),i=Dt(`tracking`),a=Dt(`leading`),o=Dt(`breakpoint`),s=Dt(`container`),c=Dt(`spacing`),l=Dt(`radius`),u=Dt(`shadow`),d=Dt(`inset-shadow`),f=Dt(`text-shadow`),p=Dt(`drop-shadow`),m=Dt(`blur`),h=Dt(`perspective`),g=Dt(`aspect`),_=Dt(`ease`),v=Dt(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),F,P],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[F,P,c],T=()=>[It,`full`,`auto`,...w()],ee=()=>[Rt,`none`,`subgrid`,F,P],E=()=>[`auto`,{span:[`full`,Rt,F,P]},Rt,F,P],D=()=>[Rt,`auto`,F,P],te=()=>[`auto`,`min`,`max`,`fr`,F,P],O=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[It,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[It,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[It,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,F,P],ae=()=>[...b(),an,$t,{position:[F,P]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,on,Jt,{size:[F,P]}],ce=()=>[zt,nn,Yt],le=()=>[``,`none`,`full`,l,F,P],ue=()=>[``,Lt,nn,Yt],de=()=>[`solid`,`dashed`,`dotted`,`double`],fe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],pe=()=>[Lt,zt,an,$t],me=()=>[``,`none`,m,F,P],he=()=>[`none`,Lt,F,P],ge=()=>[`none`,Lt,F,P],_e=()=>[Lt,F,P],ve=()=>[It,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Bt],breakpoint:[Bt],color:[Vt],container:[Bt],"drop-shadow":[Bt],ease:[`in`,`out`,`in-out`],font:[Kt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Bt],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Bt],shadow:[Bt],spacing:[`px`,Lt],text:[Bt],"text-shadow":[Bt],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,It,P,F,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,F,P]}],"container-named":[qt],columns:[{columns:[Lt,P,F,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Rt,`auto`,F,P]}],basis:[{basis:[It,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Lt,It,`auto`,`initial`,`none`,P]}],grow:[{grow:[``,Lt,F,P]}],shrink:[{shrink:[``,Lt,F,P]}],order:[{order:[Rt,`first`,`last`,`none`,F,P]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...O(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...O()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,nn,Yt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ln,Zt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,zt,P]}],"font-family":[{font:[rn,Qt,t]}],"font-features":[{"font-features":[P]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,F,P]}],"line-clamp":[{"line-clamp":[Lt,`none`,F,Xt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,F,P]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,F,P]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...de(),`wavy`]}],"text-decoration-thickness":[{decoration:[Lt,`from-font`,`auto`,F,Yt]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Lt,`auto`,F,P]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Rt,F,P]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,F,P]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,F,P]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Rt,F,P],radial:[``,F,P],conic:[Rt,F,P]},sn,en]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...de(),`hidden`,`none`]}],"divide-style":[{divide:[...de(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...de(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Lt,F,P]}],"outline-w":[{outline:[``,Lt,nn,Yt]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,cn,tn]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,cn,tn]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ue()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Lt,Yt]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,cn,tn]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Lt,F,P]}],"mix-blend":[{"mix-blend":[...fe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Lt]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[F,P]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Lt]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,F,P]}],filter:[{filter:[``,`none`,F,P]}],blur:[{blur:me()}],brightness:[{brightness:[Lt,F,P]}],contrast:[{contrast:[Lt,F,P]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,cn,tn]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,Lt,F,P]}],"hue-rotate":[{"hue-rotate":[Lt,F,P]}],invert:[{invert:[``,Lt,F,P]}],saturate:[{saturate:[Lt,F,P]}],sepia:[{sepia:[``,Lt,F,P]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,F,P]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[Lt,F,P]}],"backdrop-contrast":[{"backdrop-contrast":[Lt,F,P]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Lt,F,P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Lt,F,P]}],"backdrop-invert":[{"backdrop-invert":[``,Lt,F,P]}],"backdrop-opacity":[{"backdrop-opacity":[Lt,F,P]}],"backdrop-saturate":[{"backdrop-saturate":[Lt,F,P]}],"backdrop-sepia":[{"backdrop-sepia":[``,Lt,F,P]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,F,P]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Lt,`initial`,F,P]}],ease:[{ease:[`linear`,`initial`,_,F,P]}],delay:[{delay:[Lt,F,P]}],animate:[{animate:[`none`,v,F,P]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,F,P]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":[`scale-3d`],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[F,P,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":[`translate-none`],zoom:[{zoom:[Rt,F,P]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,F,P]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,F,P]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[Lt,nn,Yt,Xt]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function xn(...e){return bn(We(e))}var Sn=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=O.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(ne.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return ie[e]||(ie[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,o,l,d){var f=n.children;if(f!==void 0)if(o)if(k(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(ne.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,oe[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
236
+ let props = %s;
237
+ <%s {...props} />
238
+ React keys must be passed directly to JSX without using spread:
239
+ let props = %s;
240
+ <%s key={someKey} {...props} />`,o,f,m,f),oe[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=d(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),te=Symbol.for(`react.client.reference`),O=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.prototype.hasOwnProperty,k=Array.isArray,A=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var re,ie={},j=h.react_stack_bottom_frame.bind(h,o)(),ae=A(i(o)),oe={};e.Fragment=v,e.jsxDEV=function(e,t,n,r){var a=1e4>O.recentlyCreatedOwnerStacks++;return f(e,t,n,r,a?Error(`react-stack-top-frame`):j,a?A(i(e)):ae)}})()})),I=o(((e,t)=>{t.exports=Sn()}))(),Cn=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/badge.tsx`,wn=qe(`inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground`,secondary:`border-transparent bg-secondary text-secondary-foreground`,destructive:`border-transparent bg-destructive text-destructive-foreground`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function Tn({className:e,variant:t,...n}){return(0,I.jsxDEV)(`div`,{className:xn(wn({variant:t}),e),...n},void 0,!1,{fileName:Cn,lineNumber:20,columnNumber:10},this)}function En(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Dn(...e){return t=>{let n=!1,r=e.map(e=>{let r=En(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():En(e[t],null)}}}}function On(...e){return w.useCallback(Dn(...e),e)}function kn(e){let t=w.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Rn(r)&&typeof Hn==`function`&&(r=Hn(r._payload)),w.Children.forEach(r,e=>{if(In(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Rn(n)&&typeof Hn==`function`&&(n=Hn(n._payload)),a=Nn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=w.cloneElement(a,void 0,s):!o&&w.Children.count(r)===1&&w.isValidElement(r)&&(a=r);let c=a?Fn(a):void 0,l=On(n,c);if(!a){if(r||r===0)throw Error(o?Vn(e):Bn(e));return r}let u=Pn(i,a.props??{});return a.type!==w.Fragment&&(u.ref=n?l:c),w.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var An=kn(`Slot`),jn=Symbol.for(`radix.slottable`);function Mn(e){let t=e=>`child`in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=jn,t}var Nn=(e,t)=>{if(`child`in e.props){let t=e.props.child;return w.isValidElement(t)?w.cloneElement(t,void 0,e.props.children(t.props.children)):null}return w.isValidElement(t)?t:null};function Pn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Fn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function In(e){return w.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===jn}var Ln=Symbol.for(`react.lazy`);function Rn(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Ln&&`_payload`in e&&zn(e._payload)}function zn(e){return typeof e==`object`&&!!e&&`then`in e}var Bn=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Vn=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Hn=w.use,Un=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/button.tsx`,Wn=qe(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 cursor-pointer`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,ghost:`hover:bg-accent hover:text-accent-foreground`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,xs:`h-6 rounded-md px-2 text-2xs`,icon:`h-9 w-9`,"icon-xs":`h-6 w-6`}},defaultVariants:{variant:`default`,size:`default`}}),L=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,I.jsxDEV)(r?An:`button`,{className:xn(Wn({variant:t,size:n,className:e})),ref:a,...i},void 0,!1,{fileName:Un,lineNumber:29,columnNumber:10},void 0));L.displayName=`Button`;var Gn=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/error-box.tsx`;function Kn({className:e,children:t}){return(0,I.jsxDEV)(`p`,{className:xn(`rounded border border-destructive/40 bg-destructive/10 p-2 text-xs text-destructive-foreground`,e),children:t},void 0,!1,{fileName:Gn,lineNumber:9,columnNumber:10},this)}var qn=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/spinner.tsx`;function Jn({className:e}){return(0,I.jsxDEV)(N,{className:xn(`h-4 w-4 animate-spin`,e),"aria-hidden":`true`},void 0,!1,{fileName:qn,lineNumber:11,columnNumber:10},this)}var Yn=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/toast.tsx`,Xn=w.createContext(null),Zn={info:`border-border bg-card text-foreground`,success:`border-primary/50 bg-card text-text-bright`,error:`border-destructive/60 bg-card text-destructive-foreground`};function Qn({children:e}){let[t,n]=w.useState([]),r=w.useRef(0),i=w.useCallback(e=>n(t=>t.filter(t=>t.id!==e)),[]),a=w.useCallback((e,t=`info`)=>{r.current+=1;let a=r.current;n(n=>[...n,{id:a,message:e,tone:t}]),setTimeout(()=>i(a),4500)},[i]),o=w.useMemo(()=>({push:a}),[a]);return(0,I.jsxDEV)(Xn.Provider,{value:o,children:[e,(0,I.jsxDEV)(`div`,{className:`pointer-events-none fixed bottom-4 right-4 z-50 flex w-80 flex-col gap-2`,children:t.map(e=>(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>i(e.id),className:`pointer-events-auto rounded-md border px-3 py-2 text-left text-sm shadow-2xl ring-1 ring-background/80 transition-opacity ${Zn[e.tone]}`,children:e.message},e.id,!1,{fileName:Yn,lineNumber:43,columnNumber:11},this))},void 0,!1,{fileName:Yn,lineNumber:41,columnNumber:7},this)]},void 0,!0,{fileName:Yn,lineNumber:39,columnNumber:5},this)}function $n(){let e=w.useContext(Xn);if(!e)throw Error(`useToast must be used within ToastProvider`);return e}function er(e){return lr(e)&&!tr(e)&&!pr(e)&&Symbol.asyncIterator in e}function tr(e){return Array.isArray(e)}function nr(e){return typeof e==`bigint`}function rr(e){return typeof e==`boolean`}function ir(e){return e instanceof globalThis.Date}function ar(e){return typeof e==`function`}function or(e){return lr(e)&&!tr(e)&&!pr(e)&&Symbol.iterator in e}function sr(e){return e===null}function cr(e){return typeof e==`number`}function lr(e){return typeof e==`object`&&!!e}function ur(e){return e instanceof globalThis.RegExp}function dr(e){return typeof e==`string`}function fr(e){return typeof e==`symbol`}function pr(e){return e instanceof globalThis.Uint8Array}function mr(e){return e===void 0}function hr(e){return e.map(e=>br(e))}function gr(e){return new Date(e.getTime())}function _r(e){return new Uint8Array(e)}function vr(e){return new RegExp(e.source,e.flags)}function yr(e){let t={};for(let n of Object.getOwnPropertyNames(e))t[n]=br(e[n]);for(let n of Object.getOwnPropertySymbols(e))t[n]=br(e[n]);return t}function br(e){return tr(e)?hr(e):ir(e)?gr(e):pr(e)?_r(e):ur(e)?vr(e):lr(e)?yr(e):e}function xr(e){return br(e)}function Sr(e,t){return xr(t===void 0?e:{...t,...e})}function Cr(e){return typeof e==`object`&&!!e}function wr(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Tr(e){return e===void 0}function Er(e){return typeof e==`number`}var Dr;(function(e){e.InstanceMode=`default`,e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(t,n){return e.ExactOptionalPropertyTypes?n in t:t[n]!==void 0}e.IsExactOptionalProperty=t;function n(t){let n=Cr(t);return e.AllowArrayObject?n:n&&!wr(t)}e.IsObjectLike=n;function r(e){return n(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=r;function i(t){return e.AllowNaN?Er(t):Number.isFinite(t)}e.IsNumberLike=i;function a(t){let n=Tr(t);return e.AllowNullVoid?n||t===null:n}e.IsVoidLike=a})(Dr||={});function Or(e){return globalThis.Object.freeze(e).map(e=>Nr(e))}function kr(e){return e}function Ar(e){return e}function jr(e){return e}function Mr(e){let t={};for(let n of Object.getOwnPropertyNames(e))t[n]=Nr(e[n]);for(let n of Object.getOwnPropertySymbols(e))t[n]=Nr(e[n]);return globalThis.Object.freeze(t)}function Nr(e){return tr(e)?Or(e):ir(e)?kr(e):pr(e)?Ar(e):ur(e)?jr(e):lr(e)?Mr(e):e}function R(e,t){let n=t===void 0?e:{...t,...e};switch(Dr.InstanceMode){case`freeze`:return Nr(n);case`clone`:return xr(n);default:return n}}var Pr=class extends Error{constructor(e){super(e)}},Fr=Symbol.for(`TypeBox.Transform`),Ir=Symbol.for(`TypeBox.Readonly`),Lr=Symbol.for(`TypeBox.Optional`),Rr=Symbol.for(`TypeBox.Hint`),z=Symbol.for(`TypeBox.Kind`);function zr(e){return lr(e)&&e[Ir]===`Readonly`}function Br(e){return lr(e)&&e[Lr]===`Optional`}function Vr(e){return ei(e,`Any`)}function Hr(e){return ei(e,`Argument`)}function Ur(e){return ei(e,`Array`)}function Wr(e){return ei(e,`AsyncIterator`)}function Gr(e){return ei(e,`BigInt`)}function Kr(e){return ei(e,`Boolean`)}function qr(e){return ei(e,`Computed`)}function Jr(e){return ei(e,`Constructor`)}function Yr(e){return ei(e,`Date`)}function Xr(e){return ei(e,`Function`)}function Zr(e){return ei(e,`Integer`)}function Qr(e){return ei(e,`Intersect`)}function $r(e){return ei(e,`Iterator`)}function ei(e,t){return lr(e)&&z in e&&e[z]===t}function ti(e){return rr(e)||cr(e)||dr(e)}function ni(e){return ei(e,`Literal`)}function ri(e){return ei(e,`MappedKey`)}function ii(e){return ei(e,`MappedResult`)}function ai(e){return ei(e,`Never`)}function oi(e){return ei(e,`Not`)}function si(e){return ei(e,`Null`)}function ci(e){return ei(e,`Number`)}function li(e){return ei(e,`Object`)}function ui(e){return ei(e,`Promise`)}function di(e){return ei(e,`Record`)}function fi(e){return ei(e,`Ref`)}function pi(e){return ei(e,`RegExp`)}function mi(e){return ei(e,`String`)}function hi(e){return ei(e,`Symbol`)}function gi(e){return ei(e,`TemplateLiteral`)}function _i(e){return ei(e,`This`)}function vi(e){return lr(e)&&Fr in e}function yi(e){return ei(e,`Tuple`)}function bi(e){return ei(e,`Undefined`)}function xi(e){return ei(e,`Union`)}function Si(e){return ei(e,`Uint8Array`)}function Ci(e){return ei(e,`Unknown`)}function wi(e){return ei(e,`Unsafe`)}function Ti(e){return ei(e,`Void`)}function Ei(e){return lr(e)&&z in e&&dr(e[z])}function Di(e){return Vr(e)||Hr(e)||Ur(e)||Kr(e)||Gr(e)||Wr(e)||qr(e)||Jr(e)||Yr(e)||Xr(e)||Zr(e)||Qr(e)||$r(e)||ni(e)||ri(e)||ii(e)||ai(e)||oi(e)||si(e)||ci(e)||li(e)||ui(e)||di(e)||fi(e)||pi(e)||mi(e)||hi(e)||gi(e)||_i(e)||yi(e)||bi(e)||xi(e)||Si(e)||Ci(e)||wi(e)||Ti(e)||Ei(e)}var Oi=`Argument.Any.Array.AsyncIterator.BigInt.Boolean.Computed.Constructor.Date.Enum.Function.Integer.Intersect.Iterator.Literal.MappedKey.MappedResult.Not.Null.Number.Object.Promise.Record.Ref.RegExp.String.Symbol.TemplateLiteral.This.Tuple.Undefined.Union.Uint8Array.Unknown.Void`.split(`.`);function ki(e){try{return new RegExp(e),!0}catch{return!1}}function Ai(e){if(!dr(e))return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n>=7&&n<=13||n===27||n===127)return!1}return!0}function ji(e){return Pi(e)||Oa(e)}function Mi(e){return mr(e)||nr(e)}function Ni(e){return mr(e)||cr(e)}function Pi(e){return mr(e)||rr(e)}function Fi(e){return mr(e)||dr(e)}function Ii(e){return mr(e)||dr(e)&&Ai(e)&&ki(e)}function Li(e){return mr(e)||dr(e)&&Ai(e)}function Ri(e){return mr(e)||Oa(e)}function zi(e){return lr(e)&&e[Lr]===`Optional`}function Bi(e){return ea(e,`Any`)&&Fi(e.$id)}function Vi(e){return ea(e,`Argument`)&&cr(e.index)}function Hi(e){return ea(e,`Array`)&&e.type===`array`&&Fi(e.$id)&&Oa(e.items)&&Ni(e.minItems)&&Ni(e.maxItems)&&Pi(e.uniqueItems)&&Ri(e.contains)&&Ni(e.minContains)&&Ni(e.maxContains)}function Ui(e){return ea(e,`AsyncIterator`)&&e.type===`AsyncIterator`&&Fi(e.$id)&&Oa(e.items)}function Wi(e){return ea(e,`BigInt`)&&e.type===`bigint`&&Fi(e.$id)&&Mi(e.exclusiveMaximum)&&Mi(e.exclusiveMinimum)&&Mi(e.maximum)&&Mi(e.minimum)&&Mi(e.multipleOf)}function Gi(e){return ea(e,`Boolean`)&&e.type===`boolean`&&Fi(e.$id)}function Ki(e){return ea(e,`Computed`)&&dr(e.target)&&tr(e.parameters)&&e.parameters.every(e=>Oa(e))}function qi(e){return ea(e,`Constructor`)&&e.type===`Constructor`&&Fi(e.$id)&&tr(e.parameters)&&e.parameters.every(e=>Oa(e))&&Oa(e.returns)}function Ji(e){return ea(e,`Date`)&&e.type===`Date`&&Fi(e.$id)&&Ni(e.exclusiveMaximumTimestamp)&&Ni(e.exclusiveMinimumTimestamp)&&Ni(e.maximumTimestamp)&&Ni(e.minimumTimestamp)&&Ni(e.multipleOfTimestamp)}function Yi(e){return ea(e,`Function`)&&e.type===`Function`&&Fi(e.$id)&&tr(e.parameters)&&e.parameters.every(e=>Oa(e))&&Oa(e.returns)}function Xi(e){return ea(e,`Integer`)&&e.type===`integer`&&Fi(e.$id)&&Ni(e.exclusiveMaximum)&&Ni(e.exclusiveMinimum)&&Ni(e.maximum)&&Ni(e.minimum)&&Ni(e.multipleOf)}function Zi(e){return lr(e)&&Object.entries(e).every(([e,t])=>Ai(e)&&Oa(t))}function Qi(e){return ea(e,`Intersect`)&&!(dr(e.type)&&e.type!==`object`)&&tr(e.allOf)&&e.allOf.every(e=>Oa(e)&&!ya(e))&&Fi(e.type)&&(Pi(e.unevaluatedProperties)||Ri(e.unevaluatedProperties))&&Fi(e.$id)}function $i(e){return ea(e,`Iterator`)&&e.type===`Iterator`&&Fi(e.$id)&&Oa(e.items)}function ea(e,t){return lr(e)&&z in e&&e[z]===t}function ta(e){return ia(e)&&dr(e.const)}function na(e){return ia(e)&&cr(e.const)}function ra(e){return ia(e)&&rr(e.const)}function ia(e){return ea(e,`Literal`)&&Fi(e.$id)&&aa(e.const)}function aa(e){return rr(e)||cr(e)||dr(e)}function oa(e){return ea(e,`MappedKey`)&&tr(e.keys)&&e.keys.every(e=>cr(e)||dr(e))}function sa(e){return ea(e,`MappedResult`)&&Zi(e.properties)}function ca(e){return ea(e,`Never`)&&lr(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function la(e){return ea(e,`Not`)&&Oa(e.not)}function ua(e){return ea(e,`Null`)&&e.type===`null`&&Fi(e.$id)}function B(e){return ea(e,`Number`)&&e.type===`number`&&Fi(e.$id)&&Ni(e.exclusiveMaximum)&&Ni(e.exclusiveMinimum)&&Ni(e.maximum)&&Ni(e.minimum)&&Ni(e.multipleOf)}function V(e){return ea(e,`Object`)&&e.type===`object`&&Fi(e.$id)&&Zi(e.properties)&&ji(e.additionalProperties)&&Ni(e.minProperties)&&Ni(e.maxProperties)}function da(e){return ea(e,`Promise`)&&e.type===`Promise`&&Fi(e.$id)&&Oa(e.item)}function fa(e){return ea(e,`Record`)&&e.type===`object`&&Fi(e.$id)&&ji(e.additionalProperties)&&lr(e.patternProperties)&&(e=>{let t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&ki(t[0])&&lr(e.patternProperties)&&Oa(e.patternProperties[t[0]])})(e)}function pa(e){return ea(e,`Ref`)&&Fi(e.$id)&&dr(e.$ref)}function ma(e){return ea(e,`RegExp`)&&Fi(e.$id)&&dr(e.source)&&dr(e.flags)&&Ni(e.maxLength)&&Ni(e.minLength)}function ha(e){return ea(e,`String`)&&e.type===`string`&&Fi(e.$id)&&Ni(e.minLength)&&Ni(e.maxLength)&&Ii(e.pattern)&&Li(e.format)}function ga(e){return ea(e,`Symbol`)&&e.type===`symbol`&&Fi(e.$id)}function _a(e){return ea(e,`TemplateLiteral`)&&e.type===`string`&&dr(e.pattern)&&e.pattern[0]===`^`&&e.pattern[e.pattern.length-1]===`$`}function va(e){return ea(e,`This`)&&Fi(e.$id)&&dr(e.$ref)}function ya(e){return lr(e)&&Fr in e}function ba(e){return ea(e,`Tuple`)&&e.type===`array`&&Fi(e.$id)&&cr(e.minItems)&&cr(e.maxItems)&&e.minItems===e.maxItems&&(mr(e.items)&&mr(e.additionalItems)&&e.minItems===0||tr(e.items)&&e.items.every(e=>Oa(e)))}function xa(e){return ea(e,`Undefined`)&&e.type===`undefined`&&Fi(e.$id)}function Sa(e){return ea(e,`Union`)&&Fi(e.$id)&&lr(e)&&tr(e.anyOf)&&e.anyOf.every(e=>Oa(e))}function Ca(e){return ea(e,`Uint8Array`)&&e.type===`Uint8Array`&&Fi(e.$id)&&Ni(e.minByteLength)&&Ni(e.maxByteLength)}function wa(e){return ea(e,`Unknown`)&&Fi(e.$id)}function Ta(e){return ea(e,`Unsafe`)}function Ea(e){return ea(e,`Void`)&&e.type===`void`&&Fi(e.$id)}function Da(e){return lr(e)&&z in e&&dr(e[z])&&!Oi.includes(e[z])}function Oa(e){return lr(e)&&(Bi(e)||Vi(e)||Hi(e)||Gi(e)||Wi(e)||Ui(e)||Ki(e)||qi(e)||Ji(e)||Yi(e)||Xi(e)||Qi(e)||$i(e)||ia(e)||oa(e)||sa(e)||ca(e)||la(e)||ua(e)||B(e)||V(e)||da(e)||fa(e)||pa(e)||ma(e)||ha(e)||ga(e)||_a(e)||va(e)||ba(e)||xa(e)||Sa(e)||Ca(e)||wa(e)||Ta(e)||Ea(e)||Da(e))}var ka=`(true|false)`,Aa=`(0|[1-9][0-9]*)`,ja=`(.*)`,Ma=`(?!.*)`;`${ka}`;var Na=`^${Aa}$`,Pa=`^${ja}$`,Fa=`^${Ma}$`,Ia=new Map;function La(e,t){Ia.set(e,t)}function Ra(e,t){return e.includes(t)}function za(e){return[...new Set(e)]}function Ba(e,t){return e.filter(e=>t.includes(e))}function Va(e,t){return e.reduce((e,t)=>Ba(e,t),t)}function Ha(e){return e.length===1?e[0]:e.length>1?Va(e.slice(1),e[0]):[]}function Ua(e){let t=[];for(let n of e)t.push(...n);return t}function Wa(e){return R({[z]:`Any`},e)}function Ga(e,t){return R({[z]:`Array`,type:`array`,items:e},t)}function Ka(e){return R({[z]:`Argument`,index:e})}function qa(e,t){return R({[z]:`AsyncIterator`,type:`AsyncIterator`,items:e},t)}function Ja(e,t,n){return R({[z]:`Computed`,target:e,parameters:t},n)}function Ya(e,t){let{[t]:n,...r}=e;return r}function Xa(e,t){return t.reduce((e,t)=>Ya(e,t),e)}function Za(e){return R({[z]:`Never`,not:{}},e)}function Qa(e){return R({[z]:`MappedResult`,properties:e})}function $a(e,t,n){return R({[z]:`Constructor`,type:`Constructor`,parameters:e,returns:t},n)}function eo(e,t,n){return R({[z]:`Function`,type:`Function`,parameters:e,returns:t},n)}function to(e,t){return R({[z]:`Union`,anyOf:e},t)}function no(e){return e.some(e=>Br(e))}function ro(e){return e.map(e=>Br(e)?io(e):e)}function io(e){return Xa(e,[Lr])}function ao(e,t){return no(e)?Ks(to(ro(e),t)):to(ro(e),t)}function oo(e,t){return e.length===1?R(e[0],t):e.length===0?Za(t):ao(e,t)}function so(e,t){return e.length===0?Za(t):e.length===1?R(e[0],t):to(e,t)}var co=class extends Pr{};function lo(e){return e.replace(/\\\$/g,`$`).replace(/\\\*/g,`*`).replace(/\\\^/g,`^`).replace(/\\\|/g,`|`).replace(/\\\(/g,`(`).replace(/\\\)/g,`)`)}function uo(e,t,n){return e[t]===n&&e.charCodeAt(t-1)!==92}function fo(e,t){return uo(e,t,`(`)}function po(e,t){return uo(e,t,`)`)}function mo(e,t){return uo(e,t,`|`)}function ho(e){if(!(fo(e,0)&&po(e,e.length-1)))return!1;let t=0;for(let n=0;n<e.length;n++)if(fo(e,n)&&(t+=1),po(e,n)&&--t,t===0&&n!==e.length-1)return!1;return!0}function go(e){return e.slice(1,e.length-1)}function _o(e){let t=0;for(let n=0;n<e.length;n++)if(fo(e,n)&&(t+=1),po(e,n)&&--t,mo(e,n)&&t===0)return!0;return!1}function vo(e){for(let t=0;t<e.length;t++)if(fo(e,t))return!0;return!1}function yo(e){let[t,n]=[0,0],r=[];for(let i=0;i<e.length;i++)if(fo(e,i)&&(t+=1),po(e,i)&&--t,mo(e,i)&&t===0){let t=e.slice(n,i);t.length>0&&r.push(xo(t)),n=i+1}let i=e.slice(n);return i.length>0&&r.push(xo(i)),r.length===0?{type:`const`,const:``}:r.length===1?r[0]:{type:`or`,expr:r}}function bo(e){function t(e,t){if(!fo(e,t))throw new co(`TemplateLiteralParser: Index must point to open parens`);let n=0;for(let r=t;r<e.length;r++)if(fo(e,r)&&(n+=1),po(e,r)&&--n,n===0)return[t,r];throw new co(`TemplateLiteralParser: Unclosed group parens in expression`)}function n(e,t){for(let n=t;n<e.length;n++)if(fo(e,n))return[t,n];return[t,e.length]}let r=[];for(let i=0;i<e.length;i++)if(fo(e,i)){let[n,a]=t(e,i),o=e.slice(n,a+1);r.push(xo(o)),i=a}else{let[t,a]=n(e,i),o=e.slice(t,a);o.length>0&&r.push(xo(o)),i=a-1}return r.length===0?{type:`const`,const:``}:r.length===1?r[0]:{type:`and`,expr:r}}function xo(e){return ho(e)?xo(go(e)):_o(e)?yo(e):vo(e)?bo(e):{type:`const`,const:lo(e)}}function So(e){return xo(e.slice(1,e.length-1))}var Co=class extends Pr{};function wo(e){return e.type===`or`&&e.expr.length===2&&e.expr[0].type===`const`&&e.expr[0].const===`0`&&e.expr[1].type===`const`&&e.expr[1].const===`[1-9][0-9]*`}function To(e){return e.type===`or`&&e.expr.length===2&&e.expr[0].type===`const`&&e.expr[0].const===`true`&&e.expr[1].type===`const`&&e.expr[1].const===`false`}function Eo(e){return e.type===`const`&&e.const===`.*`}function Do(e){return wo(e)||Eo(e)?!1:To(e)?!0:e.type===`and`||e.type===`or`?e.expr.every(e=>Do(e)):e.type===`const`||(()=>{throw new Co(`Unknown expression type`)})()}function Oo(e){return Do(So(e.pattern))}var ko=class extends Pr{};function*Ao(e){if(e.length===1)return yield*e[0];for(let t of e[0])for(let n of Ao(e.slice(1)))yield`${t}${n}`}function*jo(e){return yield*Ao(e.expr.map(e=>[...Po(e)]))}function*Mo(e){for(let t of e.expr)yield*Po(t)}function*No(e){return yield e.const}function*Po(e){return e.type===`and`?yield*jo(e):e.type===`or`?yield*Mo(e):e.type===`const`?yield*No(e):(()=>{throw new ko(`Unknown expression`)})()}function Fo(e){let t=So(e.pattern);return Do(t)?[...Po(t)]:[]}function Io(e,t){return R({[z]:`Literal`,const:e,type:typeof e},t)}function Lo(e){return R({[z]:`Boolean`,type:`boolean`},e)}function Ro(e){return R({[z]:`BigInt`,type:`bigint`},e)}function zo(e){return R({[z]:`Number`,type:`number`},e)}function Bo(e){return R({[z]:`String`,type:`string`},e)}function*Vo(e){let t=e.trim().replace(/"|'/g,``);return t===`boolean`?yield Lo():t===`number`?yield zo():t===`bigint`?yield Ro():t===`string`?yield Bo():yield(()=>{let e=t.split(`|`).map(e=>Io(e.trim()));return e.length===0?Za():e.length===1?e[0]:oo(e)})()}function*Ho(e){if(e[1]!==`{`)return yield*[Io(`$`),...Uo(e.slice(1))];for(let t=2;t<e.length;t++)if(e[t]===`}`){let n=Vo(e.slice(2,t)),r=Uo(e.slice(t+1));return yield*[...n,...r]}yield Io(e)}function*Uo(e){for(let t=0;t<e.length;t++)if(e[t]===`$`)return yield*[Io(e.slice(0,t)),...Ho(e.slice(t))];yield Io(e)}function Wo(e){return[...Uo(e)]}var Go=class extends Pr{};function Ko(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function qo(e,t){return gi(e)?e.pattern.slice(1,e.pattern.length-1):xi(e)?`(${e.anyOf.map(e=>qo(e,t)).join(`|`)})`:ci(e)||Zr(e)||Gr(e)?`${t}${Aa}`:mi(e)?`${t}${ja}`:ni(e)?`${t}${Ko(e.const.toString())}`:Kr(e)?`${t}${ka}`:(()=>{throw new Go(`Unexpected Kind '${e[z]}'`)})()}function Jo(e){return`^${e.map(e=>qo(e,``)).join(``)}\$`}function Yo(e){return oo(Fo(e).map(e=>Io(e)))}function Xo(e,t){let n=dr(e)?Jo(Wo(e)):Jo(e);return R({[z]:`TemplateLiteral`,type:`string`,pattern:n},t)}function Zo(e){return Fo(e).map(e=>e.toString())}function Qo(e){let t=[];for(let n of e)t.push(...es(n));return t}function $o(e){return[e.toString()]}function es(e){return[...new Set(gi(e)?Zo(e):xi(e)?Qo(e.anyOf):ni(e)?$o(e.const):ci(e)||Zr(e)?[`[number]`]:[])]}function ts(e,t,n){let r={};for(let i of Object.getOwnPropertyNames(t))r[i]=hs(e,es(t[i]),n);return r}function ns(e,t,n){return ts(e,t.properties,n)}function rs(e,t,n){return Qa(ns(e,t,n))}function is(e,t){return e.map(e=>fs(e,t))}function as(e){return e.filter(e=>!ai(e))}function os(e,t){return tc(as(is(e,t)))}function ss(e){return e.some(e=>ai(e))?[]:e}function cs(e,t){return oo(ss(is(e,t)))}function ls(e,t){return t in e?e[t]:t===`[number]`?oo(e):Za()}function us(e,t){return t===`[number]`?e:Za()}function ds(e,t){return t in e?e[t]:Za()}function fs(e,t){return Qr(e)?os(e.allOf,t):xi(e)?cs(e.anyOf,t):yi(e)?ls(e.items??[],t):Ur(e)?us(e.items,t):li(e)?ds(e.properties,t):Za()}function ps(e,t){return t.map(t=>fs(e,t))}function ms(e,t){return oo(ps(e,t))}function hs(e,t,n){if(fi(e)||fi(t)){if(!Di(e)||!Di(t))throw new Pr(`Index types using Ref parameters require both Type and Key to be of TSchema`);return Ja(`Index`,[e,t])}return ii(t)?rs(e,t,n):ri(t)?ys(e,t,n):R(Di(t)?ms(e,es(t)):ms(e,t),n)}function gs(e,t,n){return{[t]:hs(e,[t],xr(n))}}function _s(e,t,n){return t.reduce((t,r)=>({...t,...gs(e,r,n)}),{})}function vs(e,t,n){return _s(e,t.keys,n)}function ys(e,t,n){return Qa(vs(e,t,n))}function bs(e,t){return R({[z]:`Iterator`,type:`Iterator`,items:e},t)}function xs(e){return globalThis.Object.keys(e).filter(t=>!Br(e[t]))}function Ss(e,t){let n=xs(e);return R(n.length>0?{[z]:`Object`,type:`object`,required:n,properties:e}:{[z]:`Object`,type:`object`,properties:e},t)}var Cs=Ss;function ws(e,t){return R({[z]:`Promise`,type:`Promise`,item:e},t)}function Ts(e){return R(Xa(e,[Ir]))}function Es(e){return R({...e,[Ir]:`Readonly`})}function Ds(e,t){return t===!1?Ts(e):Es(e)}function Os(e,t){let n=t??!0;return ii(e)?js(e,n):Ds(e,n)}function ks(e,t){let n={};for(let r of globalThis.Object.getOwnPropertyNames(e))n[r]=Os(e[r],t);return n}function As(e,t){return ks(e.properties,t)}function js(e,t){return Qa(As(e,t))}function Ms(e,t){return R(e.length>0?{[z]:`Tuple`,type:`array`,items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[z]:`Tuple`,type:`array`,minItems:e.length,maxItems:e.length},t)}function Ns(e,t){return e in t?Bs(e,t[e]):Qa(t)}function Ps(e){return{[e]:Io(e)}}function Fs(e){let t={};for(let n of e)t[n]=Io(n);return t}function Is(e,t){return Ra(t,e)?Ps(e):Fs(t)}function Ls(e,t){return Ns(e,Is(e,t))}function Rs(e,t){return t.map(t=>Bs(e,t))}function zs(e,t){let n={};for(let r of globalThis.Object.getOwnPropertyNames(t))n[r]=Bs(e,t[r]);return n}function Bs(e,t){let n={...t};return Br(t)?Ks(Bs(e,Xa(t,[Lr]))):zr(t)?Os(Bs(e,Xa(t,[Ir]))):ii(t)?Ns(e,t.properties):ri(t)?Ls(e,t.keys):Jr(t)?$a(Rs(e,t.parameters),Bs(e,t.returns),n):Xr(t)?eo(Rs(e,t.parameters),Bs(e,t.returns),n):Wr(t)?qa(Bs(e,t.items),n):$r(t)?bs(Bs(e,t.items),n):Qr(t)?nc(Rs(e,t.allOf),n):xi(t)?so(Rs(e,t.anyOf),n):yi(t)?Ms(Rs(e,t.items??[]),n):li(t)?Cs(zs(e,t.properties),n):Ur(t)?Ga(Bs(e,t.items),n):ui(t)?ws(Bs(e,t.item),n):t}function Vs(e,t){let n={};for(let r of e)n[r]=Bs(r,t);return n}function Hs(e,t,n){let r=Di(e)?es(e):e;return Cs(Vs(r,t({[z]:`MappedKey`,keys:r})),n)}function Us(e){return R(Xa(e,[Lr]))}function Ws(e){return R({...e,[Lr]:`Optional`})}function Gs(e,t){return t===!1?Us(e):Ws(e)}function Ks(e,t){let n=t??!0;return ii(e)?Ys(e,n):Gs(e,n)}function qs(e,t){let n={};for(let r of globalThis.Object.getOwnPropertyNames(e))n[r]=Ks(e[r],t);return n}function Js(e,t){return qs(e.properties,t)}function Ys(e,t){return Qa(Js(e,t))}function Xs(e,t={}){let n=e.every(e=>li(e)),r=Di(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return R(t.unevaluatedProperties===!1||Di(t.unevaluatedProperties)||n?{...r,[z]:`Intersect`,type:`object`,allOf:e}:{...r,[z]:`Intersect`,allOf:e},t)}function Zs(e){return e.every(e=>Br(e))}function Qs(e){return Xa(e,[Lr])}function $s(e){return e.map(e=>Br(e)?Qs(e):e)}function ec(e,t){return Zs(e)?Ks(Xs($s(e),t)):Xs($s(e),t)}function tc(e,t={}){if(e.length===1)return R(e[0],t);if(e.length===0)return Za(t);if(e.some(e=>vi(e)))throw Error(`Cannot intersect transform types`);return ec(e,t)}function nc(e,t){if(e.length===1)return R(e[0],t);if(e.length===0)return Za(t);if(e.some(e=>vi(e)))throw Error(`Cannot intersect transform types`);return Xs(e,t)}function rc(...e){let[t,n]=typeof e[0]==`string`?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!=`string`)throw new Pr(`Ref: $ref must be a string`);return R({[z]:`Ref`,$ref:t},n)}function ic(e,t){return Ja(`Awaited`,[Ja(e,t)])}function ac(e){return Ja(`Awaited`,[rc(e)])}function oc(e){return nc(lc(e))}function sc(e){return so(lc(e))}function cc(e){return uc(e)}function lc(e){return e.map(e=>uc(e))}function uc(e,t){return R(qr(e)?ic(e.target,e.parameters):Qr(e)?oc(e.allOf):xi(e)?sc(e.anyOf):ui(e)?cc(e.item):fi(e)?ac(e.$ref):e,t)}function dc(e){let t=[];for(let n of e)t.push(vc(n));return t}function fc(e){return Ua(dc(e))}function pc(e){return Ha(dc(e))}function mc(e){return e.map((e,t)=>t.toString())}function hc(e){return[`[number]`]}function gc(e){return globalThis.Object.getOwnPropertyNames(e)}function _c(e){return yc?globalThis.Object.getOwnPropertyNames(e).map(e=>e[0]===`^`&&e[e.length-1]===`$`?e.slice(1,e.length-1):e):[]}function vc(e){return Qr(e)?fc(e.allOf):xi(e)?pc(e.anyOf):yi(e)?mc(e.items??[]):Ur(e)?hc(e.items):li(e)?gc(e.properties):di(e)?_c(e.patternProperties):[]}var yc=!1;function bc(e,t){return Ja(`KeyOf`,[Ja(e,t)])}function xc(e){return Ja(`KeyOf`,[rc(e)])}function Sc(e,t){return R(oo(Cc(vc(e))),t)}function Cc(e){return e.map(e=>e===`[number]`?zo():Io(e))}function wc(e,t){return qr(e)?bc(e.target,e.parameters):fi(e)?xc(e.$ref):ii(e)?Dc(e,t):Sc(e,t)}function Tc(e,t){let n={};for(let r of globalThis.Object.getOwnPropertyNames(e))n[r]=wc(e[r],xr(t));return n}function Ec(e,t){return Tc(e.properties,t)}function Dc(e,t){return Qa(Ec(e,t))}function Oc(e){let t=[];for(let n of e)t.push(...vc(n));return za(t)}function kc(e){return e.filter(e=>!ai(e))}function Ac(e,t){let n=[];for(let r of e)n.push(...ps(r,[t]));return kc(n)}function jc(e,t){let n={};for(let r of t)n[r]=tc(Ac(e,r));return n}function Mc(e,t){return Cs(jc(e,Oc(e)),t)}function Nc(e){return R({[z]:`Date`,type:`Date`},e)}function Pc(e){return R({[z]:`Null`,type:`null`},e)}function Fc(e){return R({[z]:`Symbol`,type:`symbol`},e)}function Ic(e){return R({[z]:`Undefined`,type:`undefined`},e)}function Lc(e){return R({[z]:`Uint8Array`,type:`Uint8Array`},e)}function Rc(e){return R({[z]:`Unknown`},e)}function zc(e){return e.map(e=>Hc(e,!1))}function Bc(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=Os(Hc(e[n],!1));return t}function Vc(e,t){return t===!0?e:Os(e)}function Hc(e,t){return er(e)||or(e)?Vc(Wa(),t):tr(e)?Os(Ms(zc(e))):pr(e)?Lc():ir(e)?Nc():lr(e)?Vc(Cs(Bc(e)),t):ar(e)?Vc(eo([],Rc()),t):mr(e)?Ic():sr(e)?Pc():fr(e)?Fc():nr(e)?Ro():cr(e)||rr(e)||dr(e)?Io(e):Cs({})}function Uc(e,t){return R(Hc(e,!0),t)}function Wc(e,t){return Jr(e)?Ms(e.parameters,t):Za(t)}function Gc(e,t){if(mr(e))throw Error(`Enum undefined or empty`);let n=globalThis.Object.getOwnPropertyNames(e).filter(e=>isNaN(e)).map(t=>e[t]);return so([...new Set(n)].map(e=>Io(e)),{...t,[Rr]:`Enum`})}var Kc=class extends Pr{},H;(function(e){e[e.Union=0]=`Union`,e[e.True=1]=`True`,e[e.False=2]=`False`})(H||={});function qc(e){return e===H.False?e:H.True}function Jc(e){throw new Kc(e)}function Yc(e){return ca(e)||Qi(e)||Sa(e)||wa(e)||Bi(e)}function Xc(e,t){return ca(t)?ml(e,t):Qi(t)?ul(e,t):Sa(t)?Zl(e,t):wa(t)?$l(e,t):Bi(t)?Zc(e,t):Jc(`StructuralRight`)}function Zc(e,t){return H.True}function Qc(e,t){return Qi(t)?ul(e,t):Sa(t)&&t.anyOf.some(e=>Bi(e)||wa(e))?H.True:Sa(t)?H.Union:wa(t)||Bi(t)?H.True:H.Union}function $c(e,t){return wa(e)?H.False:Bi(e)?H.Union:ca(e)?H.True:H.False}function el(e,t){return V(t)&&jl(t)?H.True:Yc(t)?Xc(e,t):Hi(t)?qc(ru(e.items,t.items)):H.False}function tl(e,t){return Yc(t)?Xc(e,t):Ui(t)?qc(ru(e.items,t.items)):H.False}function nl(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):Wi(t)?H.True:H.False}function rl(e,t){return ra(e)||Gi(e)?H.True:H.False}function il(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):Gi(t)?H.True:H.False}function al(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):qi(t)?e.parameters.length>t.parameters.length?H.False:e.parameters.every((e,n)=>qc(ru(t.parameters[n],e))===H.True)?qc(ru(e.returns,t.returns)):H.False:H.False}function ol(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):Ji(t)?H.True:H.False}function sl(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):Yi(t)?e.parameters.length>t.parameters.length?H.False:e.parameters.every((e,n)=>qc(ru(t.parameters[n],e))===H.True)?qc(ru(e.returns,t.returns)):H.False:H.False}function cl(e,t){return ia(e)&&cr(e.const)||B(e)||Xi(e)?H.True:H.False}function ll(e,t){return Xi(t)||B(t)?H.True:Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):H.False}function ul(e,t){return t.allOf.every(t=>ru(e,t)===H.True)?H.True:H.False}function dl(e,t){return e.allOf.some(e=>ru(e,t)===H.True)?H.True:H.False}function fl(e,t){return Yc(t)?Xc(e,t):$i(t)?qc(ru(e.items,t.items)):H.False}function pl(e,t){return ia(t)&&t.const===e.const?H.True:Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):ha(t)?Hl(e,t):B(t)?yl(e,t):Xi(t)?cl(e,t):Gi(t)?rl(e,t):H.False}function ml(e,t){return H.False}function hl(e,t){return H.True}function gl(e){let[t,n]=[e,0];for(;la(t);)t=t.not,n+=1;return n%2==0?t:Rc()}function _l(e,t){return la(e)?ru(gl(e),t):la(t)?ru(e,gl(t)):Jc(`Invalid fallthrough for Not`)}function vl(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):ua(t)?H.True:H.False}function yl(e,t){return na(e)||B(e)||Xi(e)?H.True:H.False}function bl(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):Xi(t)||B(t)?H.True:H.False}function xl(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function Sl(e){return jl(e)}function Cl(e){return xl(e,0)||xl(e,1)&&`description`in e.properties&&Sa(e.properties.description)&&e.properties.description.anyOf.length===2&&(ha(e.properties.description.anyOf[0])&&xa(e.properties.description.anyOf[1])||ha(e.properties.description.anyOf[1])&&xa(e.properties.description.anyOf[0]))}function wl(e){return xl(e,0)}function Tl(e){return xl(e,0)}function El(e){return xl(e,0)}function Dl(e){return xl(e,0)}function Ol(e){return jl(e)}function kl(e){let t=zo();return xl(e,0)||xl(e,1)&&`length`in e.properties&&qc(ru(e.properties.length,t))===H.True}function Al(e){return xl(e,0)}function jl(e){let t=zo();return xl(e,0)||xl(e,1)&&`length`in e.properties&&qc(ru(e.properties.length,t))===H.True}function Ml(e){let t=eo([Wa()],Wa());return xl(e,0)||xl(e,1)&&`then`in e.properties&&qc(ru(e.properties.then,t))===H.True}function Nl(e,t){return ru(e,t)===H.False||zi(e)&&!zi(t)?H.False:H.True}function Pl(e,t){return wa(e)?H.False:Bi(e)?H.Union:ca(e)||ta(e)&&Sl(t)||na(e)&&wl(t)||ra(e)&&Tl(t)||ga(e)&&Cl(t)||Wi(e)&&El(t)||ha(e)&&Sl(t)||ga(e)&&Cl(t)||B(e)&&wl(t)||Xi(e)&&wl(t)||Gi(e)&&Tl(t)||Ca(e)&&Ol(t)||Ji(e)&&Dl(t)||qi(e)&&Al(t)||Yi(e)&&kl(t)?H.True:fa(e)&&ha(Ll(e))?t[Rr]===`Record`?H.True:H.False:fa(e)&&B(Ll(e))&&xl(t,0)?H.True:H.False}function Fl(e,t){return Yc(t)?Xc(e,t):fa(t)?zl(e,t):V(t)?(()=>{for(let n of Object.getOwnPropertyNames(t.properties)){if(!(n in e.properties)&&!zi(t.properties[n]))return H.False;if(zi(t.properties[n]))return H.True;if(Nl(e.properties[n],t.properties[n])===H.False)return H.False}return H.True})():H.False}function Il(e,t){return Yc(t)?Xc(e,t):V(t)&&Ml(t)?H.True:da(t)?qc(ru(e.item,t.item)):H.False}function Ll(e){return Na in e.patternProperties?zo():Pa in e.patternProperties?Bo():Jc(`Unknown record key pattern`)}function Rl(e){return Na in e.patternProperties?e.patternProperties[Na]:Pa in e.patternProperties?e.patternProperties[Pa]:Jc(`Unable to get record value schema`)}function zl(e,t){let[n,r]=[Ll(t),Rl(t)];return ta(e)&&B(n)&&qc(ru(e,r))===H.True?H.True:Ca(e)&&B(n)||ha(e)&&B(n)||Hi(e)&&B(n)?ru(e,r):V(e)?(()=>{for(let t of Object.getOwnPropertyNames(e.properties))if(Nl(r,e.properties[t])===H.False)return H.False;return H.True})():H.False}function Bl(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?ru(Rl(e),Rl(t)):H.False}function Vl(e,t){return ru(ma(e)?Bo():e,ma(t)?Bo():t)}function Hl(e,t){return ia(e)&&dr(e.const)||ha(e)?H.True:H.False}function Ul(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):ha(t)?H.True:H.False}function Wl(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):ga(t)?H.True:H.False}function Gl(e,t){return _a(e)?ru(Yo(e),t):_a(t)?ru(e,Yo(t)):Jc(`Invalid fallthrough for TemplateLiteral`)}function Kl(e,t){return Hi(t)&&e.items!==void 0&&e.items.every(e=>ru(e,t.items)===H.True)}function ql(e,t){return ca(e)?H.True:wa(e)?H.False:Bi(e)?H.Union:H.False}function Jl(e,t){return Yc(t)?Xc(e,t):V(t)&&jl(t)||Hi(t)&&Kl(e,t)?H.True:ba(t)?mr(e.items)&&!mr(t.items)||!mr(e.items)&&mr(t.items)?H.False:mr(e.items)&&!mr(t.items)||e.items.every((e,n)=>ru(e,t.items[n])===H.True)?H.True:H.False:H.False}function Yl(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):Ca(t)?H.True:H.False}function Xl(e,t){return Yc(t)?Xc(e,t):V(t)?Pl(e,t):fa(t)?zl(e,t):Ea(t)?tu(e,t):xa(t)?H.True:H.False}function Zl(e,t){return t.anyOf.some(t=>ru(e,t)===H.True)?H.True:H.False}function Ql(e,t){return e.anyOf.every(e=>ru(e,t)===H.True)?H.True:H.False}function $l(e,t){return H.True}function eu(e,t){return ca(t)?ml(e,t):Qi(t)?ul(e,t):Sa(t)?Zl(e,t):Bi(t)?Zc(e,t):ha(t)?Hl(e,t):B(t)?yl(e,t):Xi(t)?cl(e,t):Gi(t)?rl(e,t):Hi(t)?$c(e,t):ba(t)?ql(e,t):V(t)?Pl(e,t):wa(t)?H.True:H.False}function tu(e,t){return xa(e)||xa(e)?H.True:H.False}function nu(e,t){return Qi(t)?ul(e,t):Sa(t)?Zl(e,t):wa(t)?$l(e,t):Bi(t)?Zc(e,t):V(t)?Pl(e,t):Ea(t)?H.True:H.False}function ru(e,t){return _a(e)||_a(t)?Gl(e,t):ma(e)||ma(t)?Vl(e,t):la(e)||la(t)?_l(e,t):Bi(e)?Qc(e,t):Hi(e)?el(e,t):Wi(e)?nl(e,t):Gi(e)?il(e,t):Ui(e)?tl(e,t):qi(e)?al(e,t):Ji(e)?ol(e,t):Yi(e)?sl(e,t):Xi(e)?ll(e,t):Qi(e)?dl(e,t):$i(e)?fl(e,t):ia(e)?pl(e,t):ca(e)?hl(e,t):ua(e)?vl(e,t):B(e)?bl(e,t):V(e)?Fl(e,t):fa(e)?Bl(e,t):ha(e)?Ul(e,t):ga(e)?Wl(e,t):ba(e)?Jl(e,t):da(e)?Il(e,t):Ca(e)?Yl(e,t):xa(e)?Xl(e,t):Sa(e)?Ql(e,t):wa(e)?eu(e,t):Ea(e)?nu(e,t):Jc(`Unknown left type operand '${e[z]}'`)}function iu(e,t){return ru(e,t)}function au(e,t,n,r,i){let a={};for(let o of globalThis.Object.getOwnPropertyNames(e))a[o]=lu(e[o],t,n,r,xr(i));return a}function ou(e,t,n,r,i){return au(e.properties,t,n,r,i)}function su(e,t,n,r,i){return Qa(ou(e,t,n,r,i))}function cu(e,t,n,r){let i=iu(e,t);return i===H.Union?so([n,r]):i===H.True?n:r}function lu(e,t,n,r,i){return ii(e)?su(e,t,n,r,i):ri(e)?R(pu(e,t,n,r,i)):R(cu(e,t,n,r),i)}function uu(e,t,n,r,i){return{[e]:lu(Io(e),t,n,r,xr(i))}}function du(e,t,n,r,i){return e.reduce((e,a)=>({...e,...uu(a,t,n,r,i)}),{})}function fu(e,t,n,r,i){return du(e.keys,t,n,r,i)}function pu(e,t,n,r,i){return Qa(fu(e,t,n,r,i))}function mu(e,t){return gu(Yo(e),t)}function hu(e,t){let n=e.filter(e=>iu(e,t)===H.False);return n.length===1?n[0]:so(n)}function gu(e,t,n={}){return gi(e)?R(mu(e,t),n):ii(e)?R(yu(e,t),n):R(xi(e)?hu(e.anyOf,t):iu(e,t)===H.False?e:Za(),n)}function _u(e,t){let n={};for(let r of globalThis.Object.getOwnPropertyNames(e))n[r]=gu(e[r],t);return n}function vu(e,t){return _u(e.properties,t)}function yu(e,t){return Qa(vu(e,t))}function bu(e,t){return Su(Yo(e),t)}function xu(e,t){let n=e.filter(e=>iu(e,t)!==H.False);return n.length===1?n[0]:so(n)}function Su(e,t,n){return gi(e)?R(bu(e,t),n):ii(e)?R(Tu(e,t),n):R(xi(e)?xu(e.anyOf,t):iu(e,t)===H.False?Za():e,n)}function Cu(e,t){let n={};for(let r of globalThis.Object.getOwnPropertyNames(e))n[r]=Su(e[r],t);return n}function wu(e,t){return Cu(e.properties,t)}function Tu(e,t){return Qa(wu(e,t))}function Eu(e,t){return Jr(e)?R(e.returns,t):Za(t)}function Du(e){return Os(Ks(e))}function Ou(e,t,n){return R({[z]:`Record`,type:`object`,patternProperties:{[e]:t}},n)}function ku(e,t,n){let r={};for(let n of e)r[n]=t;return Cs(r,{...n,[Rr]:`Record`})}function Au(e,t,n){return Oo(e)?ku(es(e),t,n):Ou(e.pattern,t,n)}function ju(e,t,n){return ku(es(so(e)),t,n)}function Mu(e,t,n){return ku([e.toString()],t,n)}function Nu(e,t,n){return Ou(e.source,t,n)}function Pu(e,t,n){return Ou(mr(e.pattern)?Pa:e.pattern,t,n)}function Fu(e,t,n){return Ou(Pa,t,n)}function Iu(e,t,n){return Ou(Fa,t,n)}function Lu(e,t,n){return Cs({true:t,false:t},n)}function Ru(e,t,n){return Ou(Na,t,n)}function zu(e,t,n){return Ou(Na,t,n)}function Bu(e,t,n={}){return xi(e)?ju(e.anyOf,t,n):gi(e)?Au(e,t,n):ni(e)?Mu(e.const,t,n):Kr(e)?Lu(e,t,n):Zr(e)?Ru(e,t,n):ci(e)?zu(e,t,n):pi(e)?Nu(e,t,n):mi(e)?Pu(e,t,n):Vr(e)?Fu(e,t,n):ai(e)?Iu(e,t,n):Za(n)}function Vu(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function Hu(e){let t=Vu(e);return t===Pa?Bo():t===Na?zo():Bo({pattern:t})}function Uu(e){return e.patternProperties[Vu(e)]}function Wu(e,t){return t.parameters=id(e,t.parameters),t.returns=ad(e,t.returns),t}function Gu(e,t){return t.parameters=id(e,t.parameters),t.returns=ad(e,t.returns),t}function Ku(e,t){return t.allOf=id(e,t.allOf),t}function qu(e,t){return t.anyOf=id(e,t.anyOf),t}function Ju(e,t){return mr(t.items)||(t.items=id(e,t.items)),t}function Yu(e,t){return t.items=ad(e,t.items),t}function Xu(e,t){return t.items=ad(e,t.items),t}function Zu(e,t){return t.items=ad(e,t.items),t}function Qu(e,t){return t.item=ad(e,t.item),t}function $u(e,t){let n=rd(e,t.properties);return{...t,...Cs(n)}}function ed(e,t){let n=Bu(ad(e,Hu(t)),ad(e,Uu(t)));return{...t,...n}}function td(e,t){return t.index in e?e[t.index]:Rc()}function nd(e,t){let n=zr(t),r=Br(t),i=ad(e,t);return n&&r?Du(i):n&&!r?Os(i):!n&&r?Ks(i):i}function rd(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((n,r)=>({...n,[r]:nd(e,t[r])}),{})}function id(e,t){return t.map(t=>ad(e,t))}function ad(e,t){return Jr(t)?Wu(e,t):Xr(t)?Gu(e,t):Qr(t)?Ku(e,t):xi(t)?qu(e,t):yi(t)?Ju(e,t):Ur(t)?Yu(e,t):Wr(t)?Xu(e,t):$r(t)?Zu(e,t):ui(t)?Qu(e,t):li(t)?$u(e,t):di(t)?ed(e,t):Hr(t)?td(e,t):t}function od(e,t){return ad(t,Sr(e))}function sd(e){return R({[z]:`Integer`,type:`integer`},e)}function cd(e,t,n){return{[e]:yd(Io(e),t,xr(n))}}function ld(e,t,n){return e.reduce((e,r)=>({...e,...cd(r,t,n)}),{})}function ud(e,t,n){return ld(e.keys,t,n)}function dd(e,t,n){return Qa(ud(e,t,n))}function fd(e){let[t,n]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),n].join(``)}function pd(e){let[t,n]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),n].join(``)}function md(e){return e.toUpperCase()}function hd(e){return e.toLowerCase()}function gd(e,t,n){let r=So(e.pattern);return Do(r)?Xo([so(vd([...Po(r)].map(e=>Io(e)),t))],n):{...e,pattern:_d(e.pattern,t)}}function _d(e,t){return typeof e==`string`?t===`Uncapitalize`?fd(e):t===`Capitalize`?pd(e):t===`Uppercase`?md(e):t===`Lowercase`?hd(e):e:e.toString()}function vd(e,t){return e.map(e=>yd(e,t))}function yd(e,t,n={}){return ri(e)?dd(e,t,n):gi(e)?gd(e,t,n):xi(e)?so(vd(e.anyOf,t),n):ni(e)?Io(_d(e.const,t),n):R(e,n)}function bd(e,t={}){return yd(e,`Capitalize`,t)}function xd(e,t={}){return yd(e,`Lowercase`,t)}function Sd(e,t={}){return yd(e,`Uncapitalize`,t)}function Cd(e,t={}){return yd(e,`Uppercase`,t)}function wd(e,t,n){let r={};for(let i of globalThis.Object.getOwnPropertyNames(e))r[i]=Pd(e[i],t,xr(n));return r}function Td(e,t,n){return wd(e.properties,t,n)}function Ed(e,t,n){return Qa(Td(e,t,n))}function Dd(e,t){return e.map(e=>Nd(e,t))}function Od(e,t){return e.map(e=>Nd(e,t))}function kd(e,t){let{[t]:n,...r}=e;return r}function Ad(e,t){return t.reduce((e,t)=>kd(e,t),e)}function jd(e,t,n){let r=Xa(e,[Fr,`$id`,`required`,`properties`]);return Cs(Ad(n,t),r)}function Md(e){return so(e.reduce((e,t)=>ti(t)?[...e,Io(t)]:e,[]))}function Nd(e,t){return Qr(e)?nc(Dd(e.allOf,t)):xi(e)?so(Od(e.anyOf,t)):li(e)?jd(e,t,e.properties):Cs({})}function Pd(e,t,n){let r=tr(t)?Md(t):t,i=Di(t)?es(t):t,a=fi(e),o=fi(t);return ii(e)?Ed(e,i,n):ri(t)?Rd(e,t,n):a&&o||!a&&o||a&&!o?Ja(`Omit`,[e,r],n):R({...Nd(e,i),...n})}function Fd(e,t,n){return{[t]:Pd(e,[t],xr(n))}}function Id(e,t,n){return t.reduce((t,r)=>({...t,...Fd(e,r,n)}),{})}function Ld(e,t,n){return Id(e,t.keys,n)}function Rd(e,t,n){return Qa(Ld(e,t,n))}function zd(e,t,n){let r={};for(let i of globalThis.Object.getOwnPropertyNames(e))r[i]=Jd(e[i],t,xr(n));return r}function Bd(e,t,n){return zd(e.properties,t,n)}function Vd(e,t,n){return Qa(Bd(e,t,n))}function Hd(e,t){return e.map(e=>qd(e,t))}function Ud(e,t){return e.map(e=>qd(e,t))}function Wd(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Gd(e,t,n){let r=Xa(e,[Fr,`$id`,`required`,`properties`]);return Cs(Wd(n,t),r)}function Kd(e){return so(e.reduce((e,t)=>ti(t)?[...e,Io(t)]:e,[]))}function qd(e,t){return Qr(e)?nc(Hd(e.allOf,t)):xi(e)?so(Ud(e.anyOf,t)):li(e)?Gd(e,t,e.properties):Cs({})}function Jd(e,t,n){let r=tr(t)?Kd(t):t,i=Di(t)?es(t):t,a=fi(e),o=fi(t);return ii(e)?Vd(e,i,n):ri(t)?Qd(e,t,n):a&&o||!a&&o||a&&!o?Ja(`Pick`,[e,r],n):R({...qd(e,i),...n})}function Yd(e,t,n){return{[t]:Jd(e,[t],xr(n))}}function Xd(e,t,n){return t.reduce((t,r)=>({...t,...Yd(e,r,n)}),{})}function Zd(e,t,n){return Xd(e,t.keys,n)}function Qd(e,t,n){return Qa(Zd(e,t,n))}function $d(e,t){return Ja(`Partial`,[Ja(e,t)])}function ef(e){return Ja(`Partial`,[rc(e)])}function tf(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=Ks(e[n]);return t}function nf(e,t){let n=Xa(e,[Fr,`$id`,`required`,`properties`]);return Cs(tf(t),n)}function rf(e){return e.map(e=>af(e))}function af(e){return qr(e)?$d(e.target,e.parameters):fi(e)?ef(e.$ref):Qr(e)?nc(rf(e.allOf)):xi(e)?so(rf(e.anyOf)):li(e)?nf(e,e.properties):Gr(e)||Kr(e)||Zr(e)||ni(e)||si(e)||ci(e)||mi(e)||hi(e)||bi(e)?e:Cs({})}function of(e,t){return ii(e)?lf(e,t):R({...af(e),...t})}function sf(e,t){let n={};for(let r of globalThis.Object.getOwnPropertyNames(e))n[r]=of(e[r],xr(t));return n}function cf(e,t){return sf(e.properties,t)}function lf(e,t){return Qa(cf(e,t))}function uf(e,t){return Ja(`Required`,[Ja(e,t)])}function df(e){return Ja(`Required`,[rc(e)])}function ff(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=Xa(e[n],[Lr]);return t}function pf(e,t){let n=Xa(e,[Fr,`$id`,`required`,`properties`]);return Cs(ff(t),n)}function mf(e){return e.map(e=>hf(e))}function hf(e){return qr(e)?uf(e.target,e.parameters):fi(e)?df(e.$ref):Qr(e)?nc(mf(e.allOf)):xi(e)?so(mf(e.anyOf)):li(e)?pf(e,e.properties):Gr(e)||Kr(e)||Zr(e)||ni(e)||si(e)||ci(e)||mi(e)||hi(e)||bi(e)?e:Cs({})}function gf(e,t){return ii(e)?yf(e,t):R({...hf(e),...t})}function _f(e,t){let n={};for(let r of globalThis.Object.getOwnPropertyNames(e))n[r]=gf(e[r],t);return n}function vf(e,t){return _f(e.properties,t)}function yf(e,t){return Qa(vf(e,t))}function bf(e,t){return t.map(t=>fi(t)?xf(e,t.$ref):Hf(e,t))}function xf(e,t){return t in e?fi(e[t])?xf(e,e[t].$ref):Hf(e,e[t]):Za()}function Sf(e){return uc(e[0])}function Cf(e){return hs(e[0],e[1])}function wf(e){return wc(e[0])}function Tf(e){return of(e[0])}function Ef(e){return Pd(e[0],e[1])}function Df(e){return Jd(e[0],e[1])}function Of(e){return gf(e[0])}function kf(e,t,n){let r=bf(e,n);return t===`Awaited`?Sf(r):t===`Index`?Cf(r):t===`KeyOf`?wf(r):t===`Partial`?Tf(r):t===`Omit`?Ef(r):t===`Pick`?Df(r):t===`Required`?Of(r):Za()}function Af(e,t){return Ga(Hf(e,t))}function jf(e,t){return qa(Hf(e,t))}function Mf(e,t,n){return $a(Vf(e,t),Hf(e,n))}function Nf(e,t,n){return eo(Vf(e,t),Hf(e,n))}function Pf(e,t){return nc(Vf(e,t))}function Ff(e,t){return bs(Hf(e,t))}function If(e,t){return Cs(globalThis.Object.keys(t).reduce((n,r)=>({...n,[r]:Hf(e,t[r])}),{}))}function Lf(e,t){let[n,r]=[Hf(e,Uu(t)),Vu(t)],i=Sr(t);return i.patternProperties[r]=n,i}function Rf(e,t){return fi(t)?{...xf(e,t.$ref),[Fr]:t[Fr]}:t}function zf(e,t){return Ms(Vf(e,t))}function Bf(e,t){return so(Vf(e,t))}function Vf(e,t){return t.map(t=>Hf(e,t))}function Hf(e,t){return Br(t)?R(Hf(e,Xa(t,[Lr])),t):zr(t)?R(Hf(e,Xa(t,[Ir])),t):vi(t)?R(Rf(e,t),t):Ur(t)?R(Af(e,t.items),t):Wr(t)?R(jf(e,t.items),t):qr(t)?R(kf(e,t.target,t.parameters)):Jr(t)?R(Mf(e,t.parameters,t.returns),t):Xr(t)?R(Nf(e,t.parameters,t.returns),t):Qr(t)?R(Pf(e,t.allOf),t):$r(t)?R(Ff(e,t.items),t):li(t)?R(If(e,t.properties),t):di(t)?R(Lf(e,t)):yi(t)?R(zf(e,t.items||[]),t):xi(t)?R(Bf(e,t.anyOf),t):t}function Uf(e,t){return t in e?Hf(e,e[t]):Za()}function Wf(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,n)=>({...t,[n]:Uf(e,n)}),{})}var Gf=class{constructor(e){let t=Wf(e),n=this.WithIdentifiers(t);this.$defs=n}Import(e,t){let n={...this.$defs,[e]:R(this.$defs[e],t)};return R({[z]:`Import`,$defs:n,$ref:e})}WithIdentifiers(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,n)=>({...t,[n]:{...e[n],$id:n}}),{})}};function U(e){return new Gf(e)}function Kf(e,t){return R({[z]:`Not`,not:e},t)}function qf(e,t){return Xr(e)?Ms(e.parameters,t):Za()}var Jf=0;function Yf(e,t={}){mr(t.$id)&&(t.$id=`T${Jf++}`);let n=Sr(e({[z]:`This`,$ref:`${t.$id}`}));return n.$id=t.$id,R({[Rr]:`Recursive`,...n},t)}function Xf(e,t){let n=dr(e)?new globalThis.RegExp(e):e;return R({[z]:`RegExp`,type:`RegExp`,source:n.source,flags:n.flags},t)}function Zf(e){return Qr(e)?e.allOf:xi(e)?e.anyOf:yi(e)?e.items??[]:[]}function Qf(e){return Zf(e)}function $f(e,t){return Xr(e)?R(e.returns,t):Za(t)}var ep=class{constructor(e){this.schema=e}Decode(e){return new tp(this.schema,e)}},tp=class{constructor(e,t){this.schema=e,this.decode=t}EncodeTransform(e,t){let n={Encode:n=>t[Fr].Encode(e(n)),Decode:e=>this.decode(t[Fr].Decode(e))};return{...t,[Fr]:n}}EncodeSchema(e,t){let n={Decode:this.decode,Encode:e};return{...t,[Fr]:n}}Encode(e){return vi(this.schema)?this.EncodeTransform(e,this.schema):this.EncodeSchema(e,this.schema)}};function np(e){return new ep(e)}function rp(e={}){return R({[z]:e[z]??`Unsafe`},e)}function ip(e){return R({[z]:`Void`,type:`void`},e)}var W=s({Any:()=>Wa,Argument:()=>Ka,Array:()=>Ga,AsyncIterator:()=>qa,Awaited:()=>uc,BigInt:()=>Ro,Boolean:()=>Lo,Capitalize:()=>bd,Composite:()=>Mc,Const:()=>Uc,Constructor:()=>$a,ConstructorParameters:()=>Wc,Date:()=>Nc,Enum:()=>Gc,Exclude:()=>gu,Extends:()=>lu,Extract:()=>Su,Function:()=>eo,Index:()=>hs,InstanceType:()=>Eu,Instantiate:()=>od,Integer:()=>sd,Intersect:()=>nc,Iterator:()=>bs,KeyOf:()=>wc,Literal:()=>Io,Lowercase:()=>xd,Mapped:()=>Hs,Module:()=>U,Never:()=>Za,Not:()=>Kf,Null:()=>Pc,Number:()=>zo,Object:()=>Cs,Omit:()=>Pd,Optional:()=>Ks,Parameters:()=>qf,Partial:()=>of,Pick:()=>Jd,Promise:()=>ws,Readonly:()=>Os,ReadonlyOptional:()=>Du,Record:()=>Bu,Recursive:()=>Yf,Ref:()=>rc,RegExp:()=>Xf,Required:()=>gf,Rest:()=>Qf,ReturnType:()=>$f,String:()=>Bo,Symbol:()=>Fc,TemplateLiteral:()=>Xo,Transform:()=>np,Tuple:()=>Ms,Uint8Array:()=>Lc,Uncapitalize:()=>Sd,Undefined:()=>Ic,Union:()=>so,Unknown:()=>Rc,Unsafe:()=>rp,Uppercase:()=>Cd,Void:()=>ip}),ap=Symbol.for(`yaml.alias`),op=Symbol.for(`yaml.document`),sp=Symbol.for(`yaml.map`),cp=Symbol.for(`yaml.pair`),lp=Symbol.for(`yaml.scalar`),up=Symbol.for(`yaml.seq`),dp=Symbol.for(`yaml.node.type`),fp=e=>!!e&&typeof e==`object`&&e[dp]===ap,pp=e=>!!e&&typeof e==`object`&&e[dp]===op,mp=e=>!!e&&typeof e==`object`&&e[dp]===sp,hp=e=>!!e&&typeof e==`object`&&e[dp]===cp,gp=e=>!!e&&typeof e==`object`&&e[dp]===lp,_p=e=>!!e&&typeof e==`object`&&e[dp]===up;function vp(e){if(e&&typeof e==`object`)switch(e[dp]){case sp:case up:return!0}return!1}function yp(e){if(e&&typeof e==`object`)switch(e[dp]){case ap:case sp:case lp:case up:return!0}return!1}var bp=e=>(gp(e)||vp(e))&&!!e.anchor,xp=Symbol(`break visit`),Sp=Symbol(`skip children`),Cp=Symbol(`remove node`);function wp(e,t){let n=Op(t);pp(e)?Tp(null,e.contents,n,Object.freeze([e]))===Cp&&(e.contents=null):Tp(null,e,n,Object.freeze([]))}wp.BREAK=xp,wp.SKIP=Sp,wp.REMOVE=Cp;function Tp(e,t,n,r){let i=kp(e,t,n,r);if(yp(i)||hp(i))return Ap(e,r,i),Tp(e,i,n,r);if(typeof i!=`symbol`){if(vp(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=Tp(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===xp)return xp;else i===Cp&&(t.items.splice(e,1),--e)}}else if(hp(t)){r=Object.freeze(r.concat(t));let e=Tp(`key`,t.key,n,r);if(e===xp)return xp;e===Cp&&(t.key=null);let i=Tp(`value`,t.value,n,r);if(i===xp)return xp;i===Cp&&(t.value=null)}}return i}async function Ep(e,t){let n=Op(t);pp(e)?await Dp(null,e.contents,n,Object.freeze([e]))===Cp&&(e.contents=null):await Dp(null,e,n,Object.freeze([]))}Ep.BREAK=xp,Ep.SKIP=Sp,Ep.REMOVE=Cp;async function Dp(e,t,n,r){let i=await kp(e,t,n,r);if(yp(i)||hp(i))return Ap(e,r,i),Dp(e,i,n,r);if(typeof i!=`symbol`){if(vp(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await Dp(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===xp)return xp;else i===Cp&&(t.items.splice(e,1),--e)}}else if(hp(t)){r=Object.freeze(r.concat(t));let e=await Dp(`key`,t.key,n,r);if(e===xp)return xp;e===Cp&&(t.key=null);let i=await Dp(`value`,t.value,n,r);if(i===xp)return xp;i===Cp&&(t.value=null)}}return i}function Op(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function kp(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(mp(t))return n.Map?.(e,t,r);if(_p(t))return n.Seq?.(e,t,r);if(hp(t))return n.Pair?.(e,t,r);if(gp(t))return n.Scalar?.(e,t,r);if(fp(t))return n.Alias?.(e,t,r)}function Ap(e,t,n){let r=t[t.length-1];if(vp(r))r.items[e]=n;else if(hp(r))e===`key`?r.key=n:r.value=n;else if(pp(r))r.contents=n;else{let e=fp(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var jp={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Mp=e=>e.replace(/[!,[\]{}]/g,e=>jp[e]),Np=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Mp(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&yp(e.contents)){let t={};wp(e.contents,(e,n)=>{yp(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
241
+ `)}};Np.defaultYaml={explicit:!1,version:`1.2`},Np.defaultTags={"!!":`tag:yaml.org,2002:`};function Pp(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function Fp(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=Fp(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=Fp(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=Fp(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=Fp(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function Ip(e,t,n){if(Array.isArray(e))return e.map((e,t)=>Ip(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!bp(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var Lp=class{constructor(e){Object.defineProperty(this,dp,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!pp(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=Ip(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?Fp(i,{"":o},``,o):o}},Rp=class extends Lp{constructor(e){super(ap),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],wp(e,{Node:(e,t)=>{(fp(t)||bp(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(Ip(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=zp(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Pp(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function zp(e,t,n){if(fp(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(vp(t)){let r=0;for(let i of t.items){let t=zp(e,i,n);t>r&&(r=t)}return r}else if(hp(t)){let r=zp(e,t.key,n),i=zp(e,t.value,n);return Math.max(r,i)}return 1}var Bp=e=>!e||typeof e!=`function`&&typeof e!=`object`,Vp=class extends Lp{constructor(e){super(lp),this.value=e}toJSON(e,t){return t?.keep?this.value:Ip(this.value,e,t)}toString(){return String(this.value)}};Vp.BLOCK_FOLDED=`BLOCK_FOLDED`,Vp.BLOCK_LITERAL=`BLOCK_LITERAL`,Vp.PLAIN=`PLAIN`,Vp.QUOTE_DOUBLE=`QUOTE_DOUBLE`,Vp.QUOTE_SINGLE=`QUOTE_SINGLE`;var Hp=`tag:yaml.org,2002:`;function Up(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Wp(e,t,n){if(pp(e)&&(e=e.contents),yp(e))return e;if(hp(e)){let t=n.schema[sp].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new Rp(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=Hp+t.slice(2));let l=Up(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new Vp(e);return c&&(c.node=t),t}l=e instanceof Map?o[sp]:Symbol.iterator in Object(e)?o[up]:o[sp]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new Vp(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function Gp(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Wp(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var Kp=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,qp=class extends Lp{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>yp(t)||hp(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Kp(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(vp(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,Gp(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(vp(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&gp(i)?i.value:i:vp(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!hp(t))return!1;let n=t.value;return n==null||e&&gp(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return vp(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(vp(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,Gp(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Jp=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function Yp(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Xp=(e,t,n)=>e.endsWith(`
242
+ `)?Yp(n,t):n.includes(`
243
+ `)?`
244
+ `+Yp(n,t):(e.endsWith(` `)?``:` `)+n,Zp=`flow`,Qp=`block`,$p=`quoted`;function em(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=tm(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
245
+ `)n===`block`&&(h=tm(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
246
+ `&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
247
+ `&&t!==` `&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function tm(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
248
+ `);r=t,i=t+1,a=e[i]}return r}var nm=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),rm=e=>/^(%|---|\.\.\.)/m.test(e);function im(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
249
+ `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function am(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(rm(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
250
+
251
+ `;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
252
+ `,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:em(o,a,$p,nm(t,!1))}function om(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
253
+ `)||/[ \t]\n|\n[ \t]/.test(e))return am(e,t);let n=t.indent||(rm(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:em(r,n,Zp,nm(t,!1))}function sm(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=am;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?om:i&&!t?am:n?om:am}return r(e,t)}var cm;try{cm=RegExp(`(^|(?<!
254
+ ))
255
+ +(?!
256
+ |$)`,`g`)}catch{cm=/\n+(?!\n|$)/g}function lm({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return sm(n,r);let l=r.indent||(r.forceBlockIndent||rm(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===Vp.BLOCK_FOLDED?!1:t===Vp.BLOCK_LITERAL||!im(n,c,l.length);if(!n)return u?`|
257
+ `:`>
258
+ `;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
259
+ `&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
260
+ `);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
261
+ `&&(p=p.slice(0,-1)),p.replace(cm,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
262
+ `)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
263
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=nm(r,!0);o!==`folded`&&t!==Vp.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=em(`${v}${e}${p}`,l,Qp,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function um(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
264
+ `)||u&&/[[\]{},]/.test(a))return sm(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
265
+ `)?sm(a,t):lm(e,t,n,r);if(!s&&!u&&i!==Vp.PLAIN&&a.includes(`
266
+ `))return lm(e,t,n,r);if(rm(a)){if(c===``)return t.forceBlockIndent=!0,lm(e,t,n,r);if(s&&c===l)return sm(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return sm(a,t)}return s?d:em(d,c,Zp,nm(t,!1))}function dm(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==Vp.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=Vp.QUOTE_DOUBLE);let c=e=>{switch(e){case Vp.BLOCK_FOLDED:case Vp.BLOCK_LITERAL:return i||a?sm(o.value,t):lm(o,t,n,r);case Vp.QUOTE_DOUBLE:return am(o.value,t);case Vp.QUOTE_SINGLE:return om(o.value,t);case Vp.PLAIN:return um(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function fm(e,t){let n=Object.assign({blockQuote:!0,commentString:Jp,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function pm(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(gp(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function mm(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(gp(e)||vp(e))&&e.anchor;a&&Pp(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function hm(e,t,n,r){if(hp(e))return e.toString(t,n,r);if(fp(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=yp(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=pm(t.doc.schema.tags,a);let o=mm(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):gp(a)?dm(a,t,n,r):a.toString(t,n,r);return o?gp(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function gm({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=yp(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(vp(e)||!yp(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||vp(e)||(gp(e)?e.type===Vp.BLOCK_FOLDED||e.type===Vp.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=hm(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Xp(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Xp(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Xp(g,n.indent,l(f))));let _,v,y;yp(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&gp(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&_p(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=hm(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
267
+ `:``,v){let e=l(v);S+=`\n${Yp(e,n.indent)}`}x===``&&!n.inFlow?S===`
268
+ `&&y&&(S=`
269
+
270
+ `):S+=`\n${n.indent}`}else if(!p&&vp(t)){let e=x[0],r=x.indexOf(`
271
+ `),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
272
+ `)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=Xp(g,n.indent,l(y)):h&&i&&i(),g}function _m(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var vm=`<<`,ym={identify:e=>e===vm||typeof e==`symbol`&&e.description===vm,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new Vp(Symbol(vm)),{addToJSMap:xm}),stringify:()=>vm},bm=(e,t)=>(ym.identify(t)||gp(t)&&(!t.type||t.type===Vp.PLAIN)&&ym.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===ym.tag&&e.default);function xm(e,t,n){let r=Cm(e,n);if(_p(r))for(let n of r.items)Sm(e,t,n);else if(Array.isArray(r))for(let n of r)Sm(e,t,n);else Sm(e,t,r)}function Sm(e,t,n){let r=Cm(e,n);if(!mp(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Cm(e,t){return e&&fp(t)?t.resolve(e.doc,e):t}function wm(e,t,{key:n,value:r}){if(yp(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(bm(e,n))xm(e,t,r);else{let i=Ip(n,``,e);if(t instanceof Map)t.set(i,Ip(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Tm(n,i,e),o=Ip(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Tm(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(yp(e)&&n?.doc){let t=fm(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),_m(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Em(e,t,n){return new Dm(Wp(e,void 0,n),Wp(t,void 0,n))}var Dm=class e{constructor(e,t=null){Object.defineProperty(this,dp,{value:cp}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return yp(n)&&(n=n.clone(t)),yp(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return wm(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?gm(this,e,t,n):JSON.stringify(this)}};function Om(e,t,n){return(t.inFlow??e.flow?Am:km)(e,t,n)}function km({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(yp(i))!d&&i.spaceBefore&&f.push(``),jm(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(hp(i)){let e=yp(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),jm(n,f,e.commentBefore,d))}d=!1;let s=hm(i,u,()=>o=null,()=>d=!0);o&&(s+=Xp(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
273
+ `}}return e?(p+=`
274
+ `+Yp(l(e),c),s&&s()):d&&o&&o(),p}function Am({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(yp(i))i.spaceBefore&&d.push(``),jm(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(hp(i)){let e=yp(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),jm(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=yp(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=hm(i,c,()=>a=null);l||=d.length>u||o.includes(`
275
+ `),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Xp(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
276
+ `;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function jm({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=Yp(t(r),e);n.push(i.trimStart())}}function Mm(e,t){let n=gp(t)?t.value:t;for(let r of e)if(hp(r)&&(r.key===t||r.key===n||gp(r.key)&&r.key.value===n))return r}var Nm=class extends qp{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(sp,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Em(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=hp(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Dm(e,e?.value):new Dm(e.key,e.value);let r=Mm(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);gp(r.value)&&Bp(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=Mm(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Mm(this.items,e)?.value;return(!t&&gp(n)?n.value:n)??void 0}has(e){return!!Mm(this.items,e)}set(e,t){this.add(new Dm(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)wm(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!hp(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Om(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Pm={collection:`map`,default:!0,nodeClass:Nm,tag:`tag:yaml.org,2002:map`,resolve(e,t){return mp(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>Nm.from(e,t,n)},Fm=class extends qp{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(up,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Im(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=Im(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&gp(r)?r.value:r}has(e){let t=Im(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Im(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];gp(r)&&Bp(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(Ip(e,String(r++),t));return n}toString(e,t,n){return e?Om(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Wp(a,void 0,n))}}return i}};function Im(e){let t=gp(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var Lm={collection:`seq`,default:!0,nodeClass:Fm,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return _p(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Fm.from(e,t,n)};function Rm(e){return typeof e==`bigint`||Number.isInteger(e)}var zm=({value:e})=>JSON.stringify(e),Bm=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:zm},{identify:e=>e==null,createNode:()=>new Vp(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:zm},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:zm},{identify:Rm,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Rm(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:zm}];[Pm,Lm].concat(Bm,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}});function Vm(e,t,n){let{replacer:r}=n,i=new Fm(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Em(o,s,n))}return i}var Hm=class e extends Fm{constructor(){super(),this.add=Nm.prototype.add.bind(this),this.delete=Nm.prototype.delete.bind(this),this.get=Nm.prototype.get.bind(this),this.has=Nm.prototype.has.bind(this),this.set=Nm.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(hp(e)?(r=Ip(e.key,``,t),i=Ip(e.value,r,t)):r=Ip(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=Vm(e,t,n),i=new this;return i.items=r.items,i}};Hm.tag=`tag:yaml.org,2002:omap`;var Um=class e extends Nm{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=hp(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Dm(e.key,null):new Dm(e,null),Mm(this.items,t.key)||this.items.push(t)}get(e,t){let n=Mm(this.items,e);return!t&&hp(n)?gp(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Mm(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Dm(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Em(e,null,n));return i}};Um.tag=`tag:yaml.org,2002:set`;var Wm=Symbol(`break visit`),Gm=Symbol(`skip children`),Km=Symbol(`remove item`);function qm(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Jm(Object.freeze([]),e,t)}qm.BREAK=Wm,qm.SKIP=Gm,qm.REMOVE=Km,qm.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},qm.parentCollection=(e,t)=>{let n=qm.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function Jm(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Jm(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===Wm)return Wm;else r===Km&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}var Ym=2e3,Xm=1e4,Zm=W.String({maxLength:Ym}),Qm=W.Array(Zm,{maxItems:32}),$m=W.Integer({minimum:0}),eh=W.Integer({minimum:1}),th=W.String({pattern:`^[a-f0-9]{64}$`}),nh=[`planning:decomposition:start`,`planning:decomposition:unit:queued`,`planning:decomposition:unit:running`,`planning:decomposition:unit:progress`,`planning:decomposition:unit:completed`,`planning:decomposition:unit:skipped`,`planning:decomposition:unit:failed`,`planning:decomposition:schedule`,`planning:decomposition:budget`,`planning:decomposition:compact-handoff`,`planning:decomposition:synthesis:complete`],rh=W.Union([W.Literal(`queued`),W.Literal(`running`),W.Literal(`completed`),W.Literal(`skipped`),W.Literal(`failed`)]),ih=W.Object({parallelism:eh,maxDepth:eh,maxPromptSourceBytes:eh,maxPromptBytes:eh,maxObservedInputTokens:eh,maxObservedTurns:W.Optional(eh),maxCompactHandoffBytes:eh,maxLocalExplorationToolUses:eh,maxCriteriaPerUnit:eh,maxSubsystemsPerUnit:eh,maxSplitAttemptsPerUnit:eh},{additionalProperties:!1}),ah=W.Object({maxRecursiveDepth:$m,maxPromptSourceBytes:eh,maxPromptBytes:eh,maxObservedInputTokens:eh,maxObservedTurns:W.Optional(eh),maxCompactHandoffBytes:eh,maxLocalExplorationToolUses:eh,maxCriteriaPerUnit:eh,maxSubsystemsPerUnit:eh,maxSplitAttemptsPerUnit:eh},{additionalProperties:!1}),oh=W.Object({promptSourceBytes:W.Optional($m),promptBytes:W.Optional($m),observedInputTokens:W.Optional($m),observedTurns:W.Optional($m),compactHandoffBytes:W.Optional($m),localExplorationToolUses:W.Optional($m),criteriaCount:W.Optional($m),subsystemCount:W.Optional($m),splitAttempts:W.Optional($m),triggeredLimitKeys:W.Array(Zm,{maxItems:32})},{additionalProperties:!1}),sh=W.Object({kind:W.Union([W.Literal(`prd`),W.Literal(`artifact`),W.Literal(`file`),W.Literal(`criteria`),W.Literal(`other`)]),sourceHash:th,path:W.Optional(Zm),headingPath:W.Optional(Qm),startLine:W.Optional(eh),endLine:W.Optional(eh),byteStart:W.Optional($m),byteEnd:W.Optional($m),criteriaIds:W.Array(Zm,{maxItems:64}),byteLength:$m},{additionalProperties:!1}),ch=W.Object({criterionId:Zm,sourceHash:W.Optional(th),coveredByUnitIds:W.Array(Zm,{maxItems:128})},{additionalProperties:!1}),lh=W.Object({criterionId:Zm,reason:Zm,evidence:W.Optional(Zm)},{additionalProperties:!1}),uh=W.Object({totalCriteria:W.Optional($m),omittedCriteriaCount:W.Optional(W.Integer({minimum:0,maximum:Xm})),coveredCriteria:W.Array(ch,{maxItems:64}),unresolvedCriteria:W.Array(lh,{maxItems:32})},{additionalProperties:!1}),dh=W.Object({path:W.Optional(Zm),description:Zm},{additionalProperties:!1}),fh=W.Object({unitId:Zm,parentUnitId:W.Optional(Zm),depth:$m,sourceSlices:W.Array(sh,{maxItems:16}),coverage:uh,subsystemHints:Qm,dependencies:W.Array(Zm,{maxItems:32}),interfaceConstraints:W.Array(dh,{maxItems:32}),sharedFileConstraints:W.Array(dh,{maxItems:32}),budgets:ah,status:rh},{additionalProperties:!1}),ph=W.Object({unitId:Zm,blockedByUnitId:Zm,reason:W.Optional(Zm)},{additionalProperties:!1}),mh=W.Object({unitId:Zm,reasons:W.Array(Zm,{maxItems:32})},{additionalProperties:!1}),hh=W.Object({readyUnitIds:W.Array(Zm,{maxItems:128}),runningUnitIds:W.Array(Zm,{maxItems:128}),waitingUnitIds:W.Array(Zm,{maxItems:128}),waitingReasons:W.Array(mh,{maxItems:128}),selectedBatchUnitIds:W.Array(Zm,{maxItems:128}),parallelism:eh,blockedPairs:W.Array(ph,{maxItems:64})},{additionalProperties:!1}),gh=W.Object({unitId:W.Optional(Zm),attempt:eh,reason:Zm,resultingUnitIds:W.Array(Zm,{maxItems:128}),observed:W.Optional(oh)},{additionalProperties:!1}),_h=W.Object({unitId:Zm,parentUnitId:W.Optional(Zm),depth:$m,budgets:ah,observed:oh,assignedCriteriaIds:W.Array(Zm,{maxItems:64}),unresolvedCriteria:W.Array(lh,{maxItems:32}),blockers:Qm,splitAttempts:W.Array(gh,{maxItems:8})},{additionalProperties:!1}),vh={runId:W.Optional(W.String()),graphId:Zm,rootUnitId:Zm,unitCount:$m,edgeCount:$m,limits:ih},yh=W.Intersect([fh,W.Object({status:W.Literal(`queued`)})]),bh=W.Intersect([fh,W.Object({status:W.Literal(`completed`)})]),xh=W.Intersect([fh,W.Object({status:W.Literal(`skipped`)})]),Sh={unit:yh},Ch={unitId:Zm},wh={unitId:Zm,message:Zm,observed:W.Optional(oh)},Th={unit:bh},Eh={unitId:Zm,reason:Zm,unit:W.Optional(xh)},Dh={unitId:Zm,reason:Zm,evidence:_h},Oh={decision:hh},kh=W.Object({unitId:Zm,budget:ah},{additionalProperties:!1}),Ah={limits:ih,unitId:Zm,unitBudgets:W.Array(kh,{maxItems:128}),observed:W.Optional(oh)},jh={unitId:Zm,artifactPath:Zm,byteLength:$m,contentHash:th,omittedUnitIds:W.Array(Zm,{maxItems:128})},Mh={unitCount:$m,completedUnitCount:$m,failedUnitCount:$m,skippedUnitCount:$m,coverage:uh,artifactPaths:W.Array(Zm,{maxItems:32})},Nh=2e3,Ph=4096,Fh=4096,Ih=3e3,Lh=`eforge-validation-diagnostic-excerpt-bytes`,Rh=`eforge-validation-diagnostic-message-bytes`;La(Lh,e=>zh(e)<=Ph),La(Rh,e=>zh(e)<=Fh);function zh(e){return new TextEncoder().encode(e).length}var Bh=W.String({maxLength:Nh}),Vh=W.Array(Bh,{maxItems:12}),Hh=W.Integer({minimum:0}),Uh=W.Integer({minimum:1}),Wh=W.String({pattern:`^[a-f0-9]{64}$`}),Gh=W.String({maxLength:Ih}),Kh=W.Object({inputTokens:Hh,outputTokens:Hh,turns:Hh,promptBytes:Hh}),qh=W.Object({sourceId:W.Optional(Bh),sourceName:W.Optional(Bh),sourcePath:W.Optional(Bh),buildId:W.Optional(Bh),planSetName:W.Optional(Bh),runId:W.Optional(Bh)}),Jh=W.Object({sourceSummary:W.Optional(Gh),buildGoal:W.Optional(Gh),promptSourceSnippet:W.Optional(Gh)}),Yh=W.Object({relevantFiles:W.Optional(Hh),observedFacts:W.Optional(Hh),importantFindings:W.Optional(Hh),inferredImplementationAreas:W.Optional(Hh),unresolvedQuestions:W.Optional(Hh),toolUses:W.Optional(Hh),toolResults:W.Optional(Hh),toolUseSummaryBytes:W.Optional(Hh),toolResultSnippetBytes:W.Optional(Hh),importantFindingBytes:W.Optional(Hh),messageBytes:W.Optional(Hh),inferredImplementationAreaBytes:W.Optional(Hh),sourceIdBytes:W.Optional(Hh),sourceNameBytes:W.Optional(Hh),sourcePathBytes:W.Optional(Hh),buildIdBytes:W.Optional(Hh),planSetNameBytes:W.Optional(Hh),runIdBytes:W.Optional(Hh),sourceSummaryBytes:W.Optional(Hh),buildGoalBytes:W.Optional(Hh),promptSourceSnippetBytes:W.Optional(Hh),relevantFileBytes:W.Optional(Hh),caveatBytes:W.Optional(Hh)},{additionalProperties:!1}),Xh=W.Union([W.Literal(`none`),W.Literal(`bounded-decomposition`),W.Literal(`manual-reduce-scope`),W.Literal(`repair-existing-artifacts`)]),Zh=W.Union([W.Literal(`live-context-guard`),W.Literal(`provider`),W.Literal(`decomposition`)]),Qh=W.Union([W.Literal(`context-budget`),W.Literal(`context-window`),W.Literal(`context-length`),W.Literal(`scope-too-broad`),W.Literal(`decomposition-exhausted`)]),$h=W.Object({orchestrationExists:W.Boolean(),validPlanCount:Hh,invalidPlanCount:Hh,missingPlanFileCount:Hh,missingPlanFiles:Vh,invalidPlanFiles:Vh}),eg=W.Object({maxPromptBytes:Uh,maxObservedInputTokens:Uh,maxObservedTurns:W.Optional(Uh),maxExplanationBytes:Uh}),tg=W.Union([W.Literal(`registry`),W.Literal(`builtin`),W.Literal(`synthetic`),W.Literal(`fallback`)]),ng=W.Object({provider:W.Optional(W.String()),modelId:W.Optional(W.String()),metadataSource:tg,fallbackReason:W.Optional(Bh),contextWindow:W.Optional(Uh),outputReserveTokens:Uh,overheadReserveTokens:Uh,safetyMargin:W.Number({exclusiveMinimum:0,maximum:1}),limits:eg}),rg=W.Object({maxObservedInputTokens:Hh,softInputTokenThreshold:Hh,plannerMaxTurns:Uh,inspectionTurnBudget:Hh,softInputTokenRatio:W.Number({minimum:0,maximum:1}),softTurnRatio:W.Number({minimum:0,maximum:1}),guardDiagnostics:W.Optional(ng),observed:Kh,toolUseCount:Hh,toolResultCount:Hh}),ig=W.Object({kind:W.Literal(`planner-inspection-handoff`),version:W.Literal(1),source:qh,relevantFiles:W.Array(Bh,{maxItems:40}),observedFacts:W.Array(Bh,{maxItems:16}),importantFindings:W.Array(Bh,{maxItems:12}),inferredImplementationAreas:W.Array(Bh,{maxItems:16}),unresolvedQuestions:W.Array(Bh,{maxItems:8}),sourceBuildContext:Jh,budgetDiagnostics:rg,caveats:W.Array(Bh,{maxItems:8}),omittedCounts:Yh}),ag=W.Object({source:Zh,failureKind:Qh,stage:W.Union([W.Literal(`planner`),W.Literal(`compile`),W.Literal(`planning-decomposition`)]),explanation:Bh,observed:W.Optional(W.Object({inputTokens:W.Optional(Hh),outputTokens:W.Optional(Hh),turns:W.Optional(Hh),promptBytes:W.Optional(Hh)})),guardDiagnostics:W.Optional(ng),decompositionEvidence:W.Optional(_h),recovery:W.Object({action:Xh,eligible:W.Boolean(),attempted:W.Boolean(),attempt:W.Integer({minimum:0}),maxAttempts:W.Integer({minimum:1}),reason:Bh}),artifacts:$h}),og=W.Union([W.Literal(`live-context-guard`),W.Literal(`provider`)]),sg=W.Union([W.Literal(`context-budget`),W.Literal(`context-window`),W.Literal(`context-length`),W.Literal(`scope-too-broad`)]),cg=W.Intersect([ag,W.Union([W.Object({source:W.Literal(`decomposition`),failureKind:W.Literal(`decomposition-exhausted`),stage:W.Literal(`planning-decomposition`),decompositionEvidence:_h}),W.Object({source:og,failureKind:sg,decompositionEvidence:W.Optional(W.Never())})])]);Object.assign(cg,{properties:ag.properties}),W.Object({maxMessageBytes:W.Integer({minimum:1}),maxExcerptBytes:W.Integer({minimum:1})}),W.Object({schemaPath:W.String(),expectedType:W.String(),receivedType:W.String(),excerpt:W.String({maxLength:Ph,format:Lh}),payloadBytes:Hh,payloadSha256:Wh,omittedBytes:Hh,truncated:W.Boolean(),message:W.String({maxLength:Fh,format:Rh})});var lg=4096;new Set(nh);var ug=W.Union([W.Literal(`planner`),W.Literal(`builder`),W.Literal(`reviewer`),W.Literal(`review-fixer`),W.Literal(`evaluator`),W.Literal(`plan-reviewer`),W.Literal(`plan-evaluator`),W.Literal(`validation-fixer`),W.Literal(`merge-conflict-resolver`),W.Literal(`staleness-assessor`),W.Literal(`formatter`),W.Literal(`doc-author`),W.Literal(`doc-syncer`),W.Literal(`test-writer`),W.Literal(`tester`),W.Literal(`prd-validator`),W.Literal(`dependency-detector`),W.Literal(`gap-closer`),W.Literal(`recovery-analyst`)]),dg=W.Union([W.Literal(`error_max_turns`),W.Literal(`error_max_budget_usd`),W.Literal(`error_max_structured_output_retries`),W.Literal(`error_during_execution`),W.Literal(`error_pi_tool_infrastructure`),W.Literal(`error_context_window`),W.Literal(`error_transient_transport`)]);W.Union([W.Literal(`code`),W.Literal(`security`),W.Literal(`api`),W.Literal(`docs`),W.Literal(`test`),W.Literal(`verify`)]);var fg=W.String({pattern:`^[a-z][a-z0-9-]{0,63}$`,description:`A review perspective key: lowercase slug starting with a letter, 1–64 chars (e.g. "code", "accessibility")`}),pg=W.Union([W.Literal(`pr`),W.Literal(`merge`),W.Literal(`leave`)]),mg=W.Union([`resolved`,`false_positive`,`unresolved`,`unresolved_blocking`,`unresolved_nonblocking`,`needs_human_review`,`accepted_risk`,`split_to_followup`].map(e=>W.Literal(e)),{description:`Evaluator issue disposition separate from patch action. Missing values are interpreted conservatively by the engine.`}),hg={round:W.Optional(W.Integer({minimum:0}))},gg=W.Union([`builder`,`test-writer`,`existing-only`].map(e=>W.Literal(e)),{description:`Exclusive owner of new acceptance-test authoring for a plan`}),_g=W.String({minLength:1,maxLength:lg,pattern:`\\S`}),vg=W.Union([W.Literal(`addressed`),W.Literal(`deferred`),W.Literal(`obsolete`)]),yg=W.Object({issueId:_g,status:vg,note:W.Optional(W.String({minLength:1,maxLength:lg}))}),bg=W.Literal(`git-spice`),xg=W.Union([W.Literal(`branch-restack`),W.Literal(`stack-restack`),W.Literal(`repo-sync`),W.Literal(`unknown`)]),Sg=W.Union([W.Literal(`git-rebase`),W.Literal(`git-merge`),W.Literal(`unknown`)]),Cg=W.Union([W.Literal(`pr`),W.Literal(`merge`),W.Literal(`leave`)]),wg=W.Union([W.Literal(`pending`),W.Literal(`building`),W.Literal(`built`),W.Literal(`merged`),W.Literal(`landed`),W.Literal(`failed`)]),Tg=W.Object({branch:W.String(),commitSha:W.Optional(W.String()),prUrl:W.Optional(W.String())}),Eg=W.Union([W.Literal(`started`),W.Literal(`complete`),W.Literal(`skipped`),W.Literal(`failed`)]),Dg=W.Object({action:Cg,status:Eg,prUrl:W.Optional(W.String()),reason:W.Optional(W.String()),originalBaseBranch:W.Optional(W.String()),effectiveBaseBranch:W.Optional(W.String()),baseRepairReason:W.Optional(W.Literal(`parent-artifact-already-integrated`)),startedAt:W.String(),completedAt:W.Optional(W.String())}),Og=W.Object({prdId:W.String(),stackId:W.String(),parentPrdId:W.Optional(W.String()),provider:bg,branch:W.String(),baseBranch:W.Optional(W.String()),artifact:W.Optional(Tg),landingAction:W.Optional(Cg),landing:W.Optional(Dg),status:wg,recordedAt:W.String(),updatedAt:W.String()}),kg=W.Union([W.Literal(`proceed`),W.Literal(`revise`),W.Literal(`obsolete`)]),Ag=W.Object({verdict:W.Union([W.Literal(`retry`),W.Literal(`continue-repair`),W.Literal(`abandon`),W.Literal(`manual`)]),confidence:W.Union([W.Literal(`low`),W.Literal(`medium`),W.Literal(`high`)]),rationale:W.String(),completedWork:W.Array(W.String()),remainingWork:W.Array(W.String()),risks:W.Array(W.String()),partial:W.Optional(W.Boolean()),recoveryError:W.Optional(W.String()),recommendationSource:W.Optional(W.Union([W.Literal(`deterministic`),W.Literal(`analyst`),W.Literal(`manual-fallback`)])),recommendationRationale:W.Optional(W.String()),verdictInvalidationReason:W.Optional(W.String())}),jg=W.Object({id:W.String(),roots:W.Optional(W.Array(W.String())),files:W.Optional(W.Array(W.String()))}),Mg=W.Union([W.String(),W.Array(W.String())]);W.Union([W.Literal(`queue-dispatch`),W.Literal(`plan-merge`),W.Literal(`final-merge`)]),W.Union([W.Literal(`beforeQueueDispatch`),W.Literal(`beforePlanMerge`),W.Literal(`beforeFinalMerge`)]);var Ng=W.Union([W.Literal(`fail-open`),W.Literal(`fail-closed`)]),Pg={decision:W.Literal(`allow`),reason:W.Optional(W.String())},Fg={decision:W.Literal(`block`),reason:W.String({minLength:1})},Ig={decision:W.Literal(`require-approval`),reason:W.String({minLength:1})},Lg={extensionName:W.String(),extensionPath:W.String(),registrationIndex:W.Integer({minimum:0}),failurePolicy:Ng},Rg={gateKind:W.Literal(`queue-dispatch`),method:W.Literal(`beforeQueueDispatch`),...Lg,prdId:W.String(),prdTitle:W.Optional(W.String())},zg={gateKind:W.Literal(`plan-merge`),method:W.Literal(`beforePlanMerge`),...Lg,planId:W.String()},Bg={gateKind:W.Literal(`final-merge`),method:W.Literal(`beforeFinalMerge`),...Lg,featureBranch:W.String(),baseBranch:W.String(),planIds:W.Optional(W.Array(W.String()))},Vg=W.Object({strategy:W.Union([W.Literal(`auto`),W.Literal(`single`),W.Literal(`parallel`)]),perspectives:W.Array(fg),maxRounds:W.Number(),evaluatorStrictness:W.Union([W.Literal(`strict`),W.Literal(`standard`),W.Literal(`lenient`)])}),Hg=W.Object({compile:W.Array(W.String()),defaultBuild:W.Array(Mg),defaultReview:Vg,rationale:W.String()}),Ug=W.Object({requirement:W.String(),explanation:W.String(),complexity:W.Optional(W.Union([W.Literal(`trivial`),W.Literal(`moderate`),W.Literal(`significant`)]))}),Wg=W.Object({criterion:W.String({minLength:1}),verdict:W.Union([W.Literal(`pass`),W.Literal(`fail`),W.Literal(`unknown`)]),evidence:W.String({minLength:1})}),Gg=W.Object({criterion:W.String({minLength:1}),evidence:W.String({minLength:1}),conflictsWith:W.String({minLength:1}),scope:W.Union([W.Literal(`narrow`),W.Literal(`broad`),W.Literal(`unknown`)]),recommendedAction:W.Union([W.Literal(`revise_acceptance_criteria`),W.Literal(`manual_review`)])}),Kg=W.Object({status:W.Union([W.Literal(`completed`),W.Literal(`failed`),W.Literal(`skipped`)]),summary:W.String()}),qg=W.Object({id:W.String(),question:W.String(),context:W.Optional(W.String()),options:W.Optional(W.Array(W.String())),default:W.Optional(W.String())}),Jg=W.Union([W.Literal(`narrow`),W.Literal(`structural`),W.Literal(`manual`),W.Literal(`followup`)]),Yg=W.Union([W.Literal(`result`),W.Literal(`command`),W.Literal(`timeout`),W.Literal(`exception`),W.Literal(`unexpected-return`)]),Xg=W.Recursive(e=>W.Union([W.Null(),W.Boolean(),W.Number(),W.String({maxLength:lg}),W.Array(e),W.Record(W.String(),e)])),Zg=W.Object({issueId:W.Optional(_g),severity:W.Union([W.Literal(`critical`),W.Literal(`warning`),W.Literal(`suggestion`)]),category:W.String(),file:W.String(),line:W.Optional(W.Number()),description:W.String(),fix:W.Optional(W.String()),retryGuidance:W.Optional(W.String()),failureKind:W.Optional(W.String()),repairClass:W.Optional(Jg),metadata:W.Optional(W.Record(W.String(),Xg)),validationProviderName:W.Optional(W.String()),runtimeFailureKind:W.Optional(Yg)}),Qg=W.Object({severity:W.Union([W.Literal(`critical`),W.Literal(`warning`)]),category:W.Union([W.Literal(`production-bug`),W.Literal(`missing-behavior`),W.Literal(`regression`)]),file:W.String(),testFile:W.String(),description:W.String(),testOutput:W.Optional(W.String()),fix:W.Optional(W.String())}),$g=W.Object({id:W.String(),name:W.String(),dependsOn:W.Array(W.String()),branch:W.String(),migrations:W.Optional(W.Array(W.Object({timestamp:W.String(),description:W.String()}))),agents:W.Optional(W.Record(W.String(),W.Object({effort:W.Optional(W.String()),thinking:W.Optional(W.Union([W.Boolean(),W.Record(W.String(),W.Unknown())])),rationale:W.Optional(W.String()),tier:W.Optional(W.String()),shards:W.Optional(W.Array(jg))}))),body:W.String(),filePath:W.String(),warnings:W.Optional(W.Array(W.String()))}),e_=W.Object({id:W.String(),name:W.String(),dependsOn:W.Array(W.String()),branch:W.String(),build:W.Array(Mg),review:Vg,testOwnership:W.Optional(gg),maxContinuations:W.Optional(W.Number()),allowNoOpMerge:W.Optional(W.Boolean()),agents:W.Optional(W.Record(W.String(),W.Object({effort:W.Optional(W.String()),thinking:W.Optional(W.Union([W.Boolean(),W.Record(W.String(),W.Unknown())])),rationale:W.Optional(W.String()),tier:W.Optional(W.String())})))}),t_=W.Object({name:W.String(),description:W.String(),created:W.String(),baseBranch:W.String(),diffBaseRef:W.Optional(W.String()),pipeline:Hg,plans:W.Array(e_),validate:W.Optional(W.Array(W.String())),warnings:W.Optional(W.Array(W.String()))}),n_=W.Object({label:W.String(),content:W.Optional(W.String()),path:W.Optional(W.String())}),r_=W.Object({id:W.String(),name:W.String(),body:W.String(),dependsOn:W.Array(W.String()),branch:W.Optional(W.String()),build:W.Optional(W.Array(Mg)),review:W.Optional(Vg),testOwnership:W.Optional(gg)}),i_=W.Object({type:W.Literal(`build:resume:artifacts`),prdId:W.String(),setName:W.String(),featureBranch:W.String(),artifactSource:W.Union([W.Literal(`merge-worktree`),W.Literal(`branch-history`)]),artifactCommit:W.Optional(W.String()),source:n_,orchestration:t_,plans:W.Array(r_)}),a_=W.Union([W.Literal(`pending`),W.Literal(`running`),W.Literal(`completed`),W.Literal(`failed`),W.Literal(`blocked`),W.Literal(`merged`)]),o_=W.Object({status:a_,worktreePath:W.Optional(W.String()),branch:W.String(),dependsOn:W.Array(W.String()),merged:W.Boolean(),error:W.Optional(W.String())});W.Object({setName:W.String(),status:W.Union([W.Literal(`running`),W.Literal(`completed`),W.Literal(`failed`)]),startedAt:W.String(),completedAt:W.Optional(W.String()),baseBranch:W.String(),featureBranch:W.Optional(W.String()),worktreeBase:W.String(),mergeWorktreePath:W.Optional(W.String()),plans:W.Record(W.String(),o_),completedPlans:W.Array(W.String())});var s_=W.Object({durationMs:W.Number(),durationApiMs:W.Number(),numTurns:W.Number(),totalCostUsd:W.Number(),usage:W.Object({input:W.Number(),output:W.Number(),total:W.Number(),cacheRead:W.Number(),cacheCreation:W.Number()}),modelUsage:W.Record(W.String(),W.Object({inputTokens:W.Number(),outputTokens:W.Number(),cacheReadInputTokens:W.Number(),cacheCreationInputTokens:W.Number(),costUSD:W.Number()})),harness:W.Optional(W.Union([W.Literal(`claude-sdk`),W.Literal(`pi`)])),provider:W.Optional(W.String()),resultText:W.Optional(W.String())}),c_=W.Object({valid:W.Array(W.String()),missing:W.Array(W.String()),corrupt:W.Array(W.String()),cleared:W.Array(W.String())});W.Object({running:W.Boolean(),setName:W.Optional(W.String()),plans:W.Record(W.String(),a_),completedPlans:W.Array(W.String())});var l_=W.Object({sha:W.String(),subject:W.String(),author:W.String(),date:W.String()}),u_=W.Object({planId:W.String(),status:W.String(),mergedAt:W.Optional(W.String()),error:W.Optional(W.String()),terminalSubtype:W.Optional(W.String()),commitSha:W.Optional(W.String()),testPassed:W.Optional(W.Integer({minimum:0})),testFailed:W.Optional(W.Integer({minimum:0})),completedAt:W.Optional(W.String()),toolUseCount:W.Optional(W.Integer({minimum:0}))}),d_=W.Object({planId:W.String(),agentId:W.Optional(W.String()),agentRole:W.Optional(W.String()),errorMessage:W.Optional(W.String()),terminalSubtype:W.Optional(W.String()),toolUseCount:W.Optional(W.Integer({minimum:0}))}),f_=W.Union([W.Literal(`accept`),W.Literal(`reject`),W.Literal(`review`)]),p_=W.Object({file:W.String(),action:f_,reason:W.String(),hunk:W.Optional(W.Integer({minimum:1})),issueOutcome:W.Optional(mg),retryGuidance:W.Optional(W.String()),issueIds:W.Optional(W.Array(_g))}),m_=W.Object({planId:W.String(),issues:W.Array(Zg),evaluation:W.Optional(W.Object({accepted:W.Integer({minimum:0}),rejected:W.Integer({minimum:0}),review:W.Integer({minimum:0}),verdicts:W.Array(p_)}))}),h_=W.Union([W.Literal(`plan`),W.Literal(`post-merge-validation`),W.Literal(`prd-validation`),W.Literal(`acceptance-validation`),W.Literal(`artifact-recording`),W.Literal(`landing`),W.Literal(`daemon`),W.Literal(`compile`),W.Literal(`unknown`)]),g_=W.Object({status:W.String(),action:W.Optional(W.String()),reason:W.Optional(W.String())}),__=W.Object({scope:h_,message:W.String(),authoritative:W.Boolean(),planId:W.Optional(W.String()),terminalSubtype:W.Optional(dg),stage:W.Optional(W.String()),phaseSummary:W.Optional(W.String()),phaseStatus:W.Optional(W.String()),eventType:W.Optional(W.String()),sourceEventType:W.Optional(W.String()),sourceEventId:W.Optional(W.Integer()),sourceEventTimestamp:W.Optional(W.String()),landing:W.Optional(g_),validationPassed:W.Optional(W.Boolean()),prdValidationPassed:W.Optional(W.Boolean()),acceptanceValidationPassed:W.Optional(W.Boolean())}),v_=W.Object({prdId:W.String(),setName:W.String(),featureBranch:W.String(),baseBranch:W.String(),plans:W.Array(u_),failingPlan:d_,landedCommits:W.Array(l_),diffStat:W.String(),modelsUsed:W.Array(W.String()),failedAt:W.String(),partial:W.Optional(W.Boolean()),prdContent:W.Optional(W.String()),terminalFailure:W.Optional(W.Partial(__)),acceptanceValidation:W.Optional(W.Object({passed:W.Boolean(),total:W.Number(),pass:W.Number(),fail:W.Number(),unknown:W.Number(),verdicts:W.Array(Wg),waivers:W.Optional(W.Array(W.String())),conflicts:W.Optional(W.Array(Gg))})),validationCommands:W.Optional(W.Array(W.Object({command:W.String(),exitCode:W.Number(),output:W.Optional(W.String())}))),landing:W.Optional(g_),failingPlans:W.Optional(W.Array(d_)),reviewFailure:W.Optional(m_)}),y_=W.Object({allowed:W.Boolean(),reason:W.Optional(W.String())}),b_=W.Object({priority:y_,remove:y_,dependencyOverride:y_,hold:y_,unhold:y_,cascadeRemove:y_,cancel:y_,cascadeCancel:y_}),x_=W.Object({held:W.Boolean(),reason:W.Optional(W.String()),heldAt:W.Optional(W.String())}),S_=W.Object({label:W.String()},{additionalProperties:!1}),C_=W.Object({executable:W.String(),args:W.Array(W.String())},{additionalProperties:!1}),w_=W.Object({runId:W.String(),sessionId:W.Optional(W.String()),sourceLabel:W.String(),provenance:W.Optional(S_),failureReason:W.String(),failedAt:W.String(),canReenqueue:W.Boolean(),disabledReason:W.Optional(W.String()),nextCommand:C_,resolvedAt:W.Optional(W.String())},{additionalProperties:!1}),T_=W.Union([W.Literal(`enabled`),W.Literal(`disabled`)]),E_=W.Union([W.Literal(`disabled`),W.Literal(`starting`),W.Literal(`running`),W.Literal(`paused`),W.Literal(`stopping`),W.Literal(`restarting`),W.Literal(`faulted`)]),D_=W.Object({alive:W.Boolean(),paused:W.Boolean(),lastMutationReason:W.Optional(W.String()),runningCount:W.Optional(W.Number()),limit:W.Optional(W.Number())}),G=W.Object({at:W.String(),previousMode:E_,nextMode:E_,desired:T_,reason:W.Optional(W.String()),source:W.String()}),O_=W.Union([W.Literal(`disabled`),W.Literal(`attempt-budget-exhausted`),W.Literal(`not-continue-repair`),W.Literal(`not-high-confidence`),W.Literal(`not-eligible`),W.Literal(`manual-confirmation-required`),W.Literal(`partial-sidecar`),W.Literal(`malformed-sidecar`),W.Literal(`missing-sidecar`),W.Literal(`ineligible-artifacts`),W.Literal(`dirty-worktree`),W.Literal(`conflicting-worktree`),W.Literal(`queue-preflight-blocked`),W.Literal(`conflicting-applied-marker`),W.Literal(`active-gate-or-hold`),W.Literal(`repeated-failure-signature`),W.Literal(`error`)]),k_=W.Object({enabled:W.Boolean(),maxAttempts:W.Integer({minimum:0}),attempts:W.Integer({minimum:0}),lastDecision:W.Optional(W.Union([W.Literal(`evaluate`),W.Literal(`queued`),W.Literal(`stopped`)])),prdId:W.Optional(W.String()),setName:W.Optional(W.String()),stopReason:W.Optional(O_),message:W.Optional(W.String())}),A_={desired:W.Optional(T_),mode:W.Optional(E_),scheduler:W.Optional(D_),lastTransition:W.Optional(G),reason:W.Optional(W.String()),recoveryAutoResume:W.Optional(k_)},j_=W.Union([W.Object({kind:W.Literal(`build-pipeline-chosen`),rationale:W.String(),defaultBuild:W.Array(Mg,{minItems:1})}),W.Object({kind:W.Literal(`review-profile-chosen`),rationale:W.String(),strategy:W.Union([W.Literal(`auto`),W.Literal(`single`),W.Literal(`parallel`)]),perspectives:W.Array(fg,{minItems:1}),maxRounds:W.Integer({minimum:1}),evaluatorStrictness:W.Union([W.Literal(`strict`),W.Literal(`standard`),W.Literal(`lenient`)])}),W.Object({kind:W.Literal(`plan-set-shape`),rationale:W.String(),planCount:W.Integer({minimum:1}),planIds:W.Array(W.String(),{minItems:1})})]),M_=W.Object({type:W.Literal(`planning:decision`),planId:W.Optional(W.String()),decision:j_}),N_=W.Union([W.Object({kind:W.Literal(`review-strategy`),rationale:W.String(),strategy:W.Union([W.Literal(`single`),W.Literal(`parallel`)]),source:W.Union([W.Literal(`config`),W.Literal(`auto-threshold`)]),auto:W.Optional(W.Object({files:W.Integer({minimum:0}),lines:W.Integer({minimum:0}),threshold:W.Object({files:W.Integer({minimum:0}),lines:W.Integer({minimum:0})})}))}),W.Object({kind:W.Literal(`perspectives-inferred`),rationale:W.String(),perspectives:W.Array(fg),categories:W.Array(W.String()),rules:W.Array(W.String())}),W.Object({kind:W.Literal(`cycle-terminated`),rationale:W.String(),round:W.Integer({minimum:0}),reason:W.Union([W.Literal(`no-issues`),W.Literal(`max-rounds`)]),issuesRemaining:W.Integer({minimum:0}),lastReviewIssueCount:W.Optional(W.Integer({minimum:0})),finalEvaluationAccepted:W.Optional(W.Integer({minimum:0})),finalEvaluationRejected:W.Optional(W.Integer({minimum:0})),finalEvaluationRan:W.Optional(W.Boolean()),finalEvaluationResolved:W.Optional(W.Integer({minimum:0})),finalEvaluationFalsePositive:W.Optional(W.Integer({minimum:0})),finalEvaluationUnresolved:W.Optional(W.Integer({minimum:0})),finalEvaluationNeedsHumanReview:W.Optional(W.Integer({minimum:0})),finalEvaluationBlocking:W.Optional(W.Integer({minimum:0}))}),W.Object({kind:W.Literal(`perspectives-respawned`),rationale:W.String(),round:W.Integer({minimum:0}),perspectives:W.Array(fg),dropped:W.Array(fg)}),W.Object({kind:W.Literal(`evaluator-strictness`),rationale:W.String(),strictness:W.Union([W.Literal(`strict`),W.Literal(`standard`),W.Literal(`lenient`)]),source:W.Union([W.Literal(`config`),W.Literal(`default`)])}),W.Object({kind:W.Literal(`recovery-verdict`),rationale:W.String(),verdict:W.Union([W.Literal(`retry`),W.Literal(`continue-repair`),W.Literal(`abandon`),W.Literal(`manual`)])}),W.Object({kind:W.Literal(`merge-conflict-resolution`),rationale:W.String(),strategy:W.String(),files:W.Array(W.String())})]),P_=W.Union([W.Literal(`stacking-validation`),W.Literal(`policy-gate`),W.Literal(`profile-routing`),W.Literal(`dispatch`)]),F_=[W.Object({type:W.Literal(`queue:start`),prdCount:W.Number(),dir:W.String()}),W.Object({type:W.Literal(`queue:prd:start`),prdId:W.String(),title:W.String()}),W.Object({type:W.Literal(`queue:prd:discovered`),prdId:W.String(),title:W.String(),dependsOn:W.Optional(W.Array(W.String()))}),W.Object({type:W.Literal(`queue:prd:dependency-overridden`),prdId:W.String(),title:W.String(),removedDependency:W.String(),previousDependsOn:W.Array(W.String()),currentDependsOn:W.Array(W.String()),reason:W.Optional(W.String())}),W.Object({type:W.Literal(`queue:prd:removed`),prdId:W.String(),previousStatus:W.Union([W.Literal(`pending`),W.Literal(`waiting`),W.Literal(`failed`),W.Literal(`skipped`)]),removedSidecars:W.Optional(W.Array(W.String()))}),W.Object({type:W.Literal(`queue:prd:stale`),prdId:W.String(),title:W.String(),verdict:kg,justification:W.String(),revision:W.Optional(W.String())}),W.Object({type:W.Literal(`queue:prd:skip`),prdId:W.String(),reason:W.String()}),W.Object({type:W.Literal(`queue:prd:dispatch-failed`),prdId:W.String(),title:W.String(),reason:W.String(),stage:P_}),W.Object({type:W.Literal(`queue:prd:commit-failed`),prdId:W.String(),title:W.String(),error:W.String()}),W.Object({type:W.Literal(`queue:prd:complete`),prdId:W.String(),status:W.Union([W.Literal(`completed`),W.Literal(`failed`),W.Literal(`skipped`)])}),W.Object({type:W.Literal(`queue:complete`),processed:W.Number(),skipped:W.Number()})];W.Union([...F_]);var I_=W.Union([W.Literal(`default`),W.Literal(`rule`),W.Literal(`extension-router`),W.Literal(`fallback`)]),L_=W.Union([W.Literal(`no-match`),W.Literal(`router-declined`),W.Literal(`router-timeout`),W.Literal(`router-error`),W.Literal(`router-invalid-choice`)]),R_={planId:W.Optional(W.String()),agentId:W.String(),agent:ug,model:W.String(),harness:W.Union([W.Literal(`claude-sdk`),W.Literal(`pi`)]),harnessSource:W.Literal(`tier`),tier:W.String(),tierSource:W.Union([W.Literal(`tier`),W.Literal(`role`),W.Literal(`plan`)]),runtimeChoice:W.String(),runtimeChoiceQualified:W.String(),runtimeChoiceSource:I_,runtimeChoiceRule:W.Optional(W.String()),runtimeChoiceRouter:W.Optional(W.String()),runtimeChoiceFallbackReason:W.Optional(L_),effort:W.Optional(W.String()),effortSource:W.Optional(W.Union([W.Literal(`tier`),W.Literal(`role`),W.Literal(`plan`)])),thinking:W.Optional(W.Record(W.String(),W.Unknown())),thinkingSource:W.Optional(W.Union([W.Literal(`tier`),W.Literal(`role`),W.Literal(`plan`)])),effortClamped:W.Optional(W.Boolean()),effortOriginal:W.Optional(W.String()),thinkingCoerced:W.Optional(W.Boolean()),thinkingOriginal:W.Optional(W.Record(W.String(),W.Unknown())),perspective:W.Optional(fg),toolbelt:W.Optional(W.Union([W.String(),W.Null()])),toolbeltSource:W.Optional(W.Union([W.Literal(`tier`),W.Literal(`role`),W.Literal(`plan`),W.Literal(`default`)])),projectMcpSelection:W.Optional(W.Union([W.Literal(`all`),W.Literal(`none`),W.Literal(`toolbelt`)])),projectMcpServerNames:W.Optional(W.Array(W.String()))},z_=W.Object({sessionId:W.Optional(W.String()),runId:W.Optional(W.String()),timestamp:W.String()}),B_=[W.Object({type:W.Literal(`agent:start`),...R_}),W.Object({type:W.Literal(`agent:warning`),planId:W.Optional(W.String()),agentId:W.String(),agent:ug,code:W.String(),message:W.String()}),W.Object({type:W.Literal(`agent:stop`),planId:W.Optional(W.String()),agentId:W.String(),agent:ug,error:W.Optional(W.String())}),W.Object({type:W.Literal(`agent:usage`),planId:W.Optional(W.String()),agentId:W.String(),agent:ug,usage:W.Object({input:W.Number(),output:W.Number(),total:W.Number(),cacheRead:W.Number(),cacheCreation:W.Number()}),costUsd:W.Number(),numTurns:W.Number(),final:W.Optional(W.Boolean())}),W.Object({type:W.Literal(`agent:message`),planId:W.Optional(W.String()),agentId:W.String(),agent:ug,content:W.String()}),W.Object({type:W.Literal(`agent:tool_use`),planId:W.Optional(W.String()),agentId:W.String(),agent:ug,tool:W.String(),toolUseId:W.String(),input:W.Unknown()}),W.Object({type:W.Literal(`agent:tool_result`),planId:W.Optional(W.String()),agentId:W.String(),agent:ug,tool:W.String(),toolUseId:W.String(),output:W.String()}),W.Object({type:W.Literal(`agent:result`),planId:W.Optional(W.String()),agentId:W.Optional(W.String()),agent:ug,result:s_}),W.Object({type:W.Literal(`agent:activity`),planId:W.Optional(W.String()),agentId:W.String(),agent:ug,files:W.Optional(W.Array(W.Object({path:W.String(),status:W.Optional(W.String()),additions:W.Optional(W.Number()),deletions:W.Optional(W.Number()),binary:W.Optional(W.Boolean())}))),totals:W.Optional(W.Object({filesChanged:W.Number(),additions:W.Number(),deletions:W.Number()})),attribution:W.Union([W.Literal(`exact`),W.Literal(`best_effort`),W.Literal(`unavailable`)]),notes:W.Optional(W.Array(W.String()))}),W.Object({type:W.Literal(`agent:retry`),agent:ug,attempt:W.Number(),maxAttempts:W.Number(),subtype:dg,label:W.String(),planId:W.Optional(W.String()),shardId:W.Optional(W.String())})],V_=[W.Object({type:W.Literal(`plan:build:start`),planId:W.String()}),W.Object({type:W.Literal(`plan:build:implement:start`),planId:W.String()}),W.Object({type:W.Literal(`plan:build:implement:progress`),planId:W.String(),message:W.String()}),W.Object({type:W.Literal(`plan:build:implement:continuation`),planId:W.String(),attempt:W.Number(),maxContinuations:W.Number(),shardId:W.Optional(W.String())}),W.Object({type:W.Literal(`plan:build:implement:complete`),planId:W.String()}),W.Object({type:W.Literal(`plan:build:files_changed`),planId:W.String(),files:W.Array(W.String()),diffs:W.Optional(W.Array(W.Object({path:W.String(),diff:W.String()}))),baseBranch:W.Optional(W.String())}),W.Object({type:W.Literal(`plan:build:review:start`),planId:W.String(),...hg}),W.Object({type:W.Literal(`plan:build:review:complete`),planId:W.String(),issues:W.Array(Zg),...hg}),W.Object({type:W.Literal(`plan:build:review:parallel:start`),planId:W.String(),perspectives:W.Array(fg),...hg}),W.Object({type:W.Literal(`plan:build:review:parallel:perspective:start`),planId:W.String(),perspective:fg,...hg}),W.Object({type:W.Literal(`plan:build:review:parallel:perspective:complete`),planId:W.String(),perspective:fg,issues:W.Array(Zg),...hg}),W.Object({type:W.Literal(`plan:build:review:parallel:perspective:error`),planId:W.String(),perspective:fg,error:W.String(),...hg}),W.Object({type:W.Literal(`plan:build:review:fix:start`),planId:W.String(),issueCount:W.Number(),...hg}),W.Object({type:W.Literal(`plan:build:review:fix:complete`),planId:W.String(),...hg,issueReferences:W.Optional(W.Array(yg))}),W.Object({type:W.Literal(`plan:build:review:fix:continuation`),planId:W.String(),attempt:W.Number(),maxContinuations:W.Number(),...hg}),W.Object({type:W.Literal(`plan:build:evaluate:start`),planId:W.String(),...hg}),W.Object({type:W.Literal(`plan:build:evaluate:continuation`),planId:W.String(),attempt:W.Number(),maxContinuations:W.Number(),...hg}),W.Object({type:W.Literal(`plan:build:evaluate:complete`),planId:W.String(),accepted:W.Number(),rejected:W.Number(),...hg,resolvedIssueOutcomes:W.Optional(W.Number()),falsePositiveIssueOutcomes:W.Optional(W.Number()),unresolvedIssueOutcomes:W.Optional(W.Number()),unresolvedNonBlockingIssueOutcomes:W.Optional(W.Number()),needsHumanReviewIssueOutcomes:W.Optional(W.Number()),acceptedRiskIssueOutcomes:W.Optional(W.Number()),splitToFollowupIssueOutcomes:W.Optional(W.Number()),blockingIssueOutcomes:W.Optional(W.Number()),verdicts:W.Optional(W.Array(W.Object({file:W.String(),action:W.Union([W.Literal(`accept`),W.Literal(`reject`),W.Literal(`review`)]),reason:W.String(),hunk:W.Optional(W.Integer({minimum:1})),issueOutcome:W.Optional(mg),retryGuidance:W.Optional(W.String()),issueIds:W.Optional(W.Array(_g))})))}),W.Object({type:W.Literal(`plan:build:doc-author:start`),planId:W.String()}),W.Object({type:W.Literal(`plan:build:doc-author:complete`),planId:W.String(),docsAuthored:W.Number()}),W.Object({type:W.Literal(`plan:build:doc-sync:start`),planId:W.String()}),W.Object({type:W.Literal(`plan:build:doc-sync:complete`),planId:W.String(),docsSynced:W.Number()}),W.Object({type:W.Literal(`plan:build:test:ownership:violation`),planId:W.String(),stage:W.Union([W.Literal(`implement`),W.Literal(`test-write`),W.Literal(`test`)]),declaredOwner:W.Union([gg,W.Literal(`unspecified`)]),changedPaths:W.Array(W.String()),reason:W.String()}),W.Object({type:W.Literal(`plan:build:test:write:start`),planId:W.String()}),W.Object({type:W.Literal(`plan:build:test:write:complete`),planId:W.String(),testsWritten:W.Number()}),W.Object({type:W.Literal(`plan:build:test:start`),planId:W.String()}),W.Object({type:W.Literal(`plan:build:test:complete`),planId:W.String(),passed:W.Number(),failed:W.Number(),testBugsFixed:W.Number(),productionIssues:W.Array(Qg)}),W.Object({type:W.Literal(`plan:build:complete`),planId:W.String()}),W.Object({type:W.Literal(`plan:build:recovery:start`),planId:W.String(),blockerKind:W.Union([W.Literal(`review`),W.Literal(`test`)]),issueCount:W.Number(),maxAttempts:W.Number(),attemptsRemaining:W.Number()}),W.Object({type:W.Literal(`plan:build:recovery:attempt:start`),planId:W.String(),blockerKind:W.Union([W.Literal(`review`),W.Literal(`test`)]),attempt:W.Number(),maxAttempts:W.Number(),attemptsRemaining:W.Number()}),W.Object({type:W.Literal(`plan:build:recovery:attempt:result`),planId:W.String(),blockerKind:W.Union([W.Literal(`review`),W.Literal(`test`)]),attempt:W.Number(),maxAttempts:W.Number(),blockersCleared:W.Boolean(),attemptsRemaining:W.Number()}),W.Object({type:W.Literal(`plan:build:recovery:skip`),planId:W.String(),blockerKind:W.Union([W.Literal(`review`),W.Literal(`test`)]),reason:W.Union([W.Literal(`not-active-plan`),W.Literal(`manual-gate`),W.Literal(`human-review-gate`),W.Literal(`cross-plan-blocker`),W.Literal(`upstream-or-base-owned`),W.Literal(`low-confidence`),W.Literal(`incomplete-classification`),W.Literal(`unsupported-blocker`),W.Literal(`unsafe-worktree`),W.Literal(`budget-exhausted`),W.Literal(`stale-pass-data`)]),details:W.String(),attemptsRemaining:W.Number()}),W.Object({type:W.Literal(`plan:build:recovery:exhausted`),planId:W.String(),blockerKind:W.Union([W.Literal(`review`),W.Literal(`test`)]),attemptsUsed:W.Number(),maxAttempts:W.Number(),details:W.String()}),W.Object({type:W.Literal(`plan:build:failed`),planId:W.String(),error:W.String(),terminalSubtype:W.Optional(dg)}),W.Object({type:W.Literal(`plan:build:progress`),planId:W.String(),message:W.String()}),W.Object({type:W.Literal(`plan:status:change`),planId:W.String(),status:a_}),W.Object({type:W.Literal(`plan:error:set`),planId:W.String(),error:W.String()}),W.Object({type:W.Literal(`plan:error:clear`),planId:W.String()}),W.Object({type:W.Literal(`schedule:start`),planIds:W.Array(W.String())}),W.Object({type:W.Literal(`plan:schedule:ready`),planId:W.String(),reason:W.String()}),W.Object({type:W.Literal(`plan:merge:start`),planId:W.String()}),W.Object({type:W.Literal(`plan:merge:complete`),planId:W.String(),commitSha:W.Optional(W.String())}),W.Object({type:W.Literal(`plan:merge:resolve:start`),planId:W.String()}),W.Object({type:W.Literal(`plan:merge:resolve:complete`),planId:W.String(),resolved:W.Boolean()}),W.Object({type:W.Literal(`merge:finalize:start`),featureBranch:W.String(),baseBranch:W.String()}),W.Object({type:W.Literal(`merge:finalize:complete`),featureBranch:W.String(),baseBranch:W.String(),commitSha:W.Optional(W.String())}),W.Object({type:W.Literal(`merge:finalize:skipped`),featureBranch:W.String(),baseBranch:W.String(),reason:W.String()}),W.Object({type:W.Literal(`landing:start`),action:pg,featureBranch:W.String(),baseBranch:W.String(),trunkBranch:W.Optional(W.String()),workflow:W.Optional(W.Union([W.Literal(`trunk-pr`),W.Literal(`trunk-local-merge`),W.Literal(`feature-pr`),W.Literal(`feature-local-merge`),W.Literal(`leave-branch`)]))}),W.Object({type:W.Literal(`landing:complete`),action:pg,featureBranch:W.String(),baseBranch:W.String(),commitSha:W.Optional(W.String()),prUrl:W.Optional(W.String())}),W.Object({type:W.Literal(`landing:skipped`),action:pg,featureBranch:W.String(),baseBranch:W.String(),reason:W.String()}),W.Object({type:W.Literal(`landing:auto-merge:start`),featureBranch:W.String(),baseBranch:W.Optional(W.String()),prUrl:W.String()}),W.Object({type:W.Literal(`landing:auto-merge:complete`),featureBranch:W.String(),baseBranch:W.Optional(W.String()),prUrl:W.String()}),W.Object({type:W.Literal(`landing:auto-merge:skipped`),featureBranch:W.String(),baseBranch:W.Optional(W.String()),prUrl:W.Optional(W.String()),reason:W.String()}),W.Object({type:W.Literal(`merge:worktree:set`),path:W.String()}),W.Object({type:W.Literal(`merge:worktree:clear`)})],H_=[W.Object({type:W.Literal(`build:terminal-failure`),runId:W.String(),failure:__}),W.Object({type:W.Literal(`build:resume:start`),prdId:W.String(),setName:W.String(),featureBranch:W.String()}),W.Object({type:W.Literal(`build:resume:state`),seededMerged:W.Array(W.String()),seededPending:W.Array(W.String()),featureBranch:W.String(),landedCommitCount:W.Number(),diffStat:W.String()}),W.Object({type:W.Literal(`build:resume:ineligible`),reason:W.String(),checkedPath:W.Optional(W.String())}),i_,W.Object({type:W.Literal(`build:resume:complete`),prdId:W.String(),setName:W.String()})],U_=[W.Object({type:W.Literal(`daemon:run:upsert`),run:W.Object({id:W.String(),sessionId:W.Optional(W.String()),planSet:W.String(),command:W.String(),status:W.String(),startedAt:W.String(),completedAt:W.Optional(W.String()),cwd:W.String(),pid:W.Optional(W.Number())})}),W.Object({type:W.Literal(`daemon:auto-build:paused`),reason:W.String()}),W.Object({type:W.Literal(`daemon:lifecycle:starting`),pid:W.Number(),port:W.Number(),version:W.String(),mode:W.String()}),W.Object({type:W.Literal(`daemon:lifecycle:ready`),pid:W.Number(),port:W.Number(),version:W.String(),mode:W.String(),recoveryDurationMs:W.Number()}),W.Object({type:W.Literal(`daemon:lifecycle:shutdown:start`),signal:W.String(),reason:W.String()}),W.Object({type:W.Literal(`daemon:lifecycle:shutdown:complete`),durationMs:W.Number()}),W.Object({type:W.Literal(`daemon:heartbeat`),uptime:W.Number(),queueDepth:W.Number(),runningBuilds:W.Number(),autoBuild:W.Object({enabled:W.Boolean(),paused:W.Boolean(),...A_}),subscribers:W.Number()}),W.Object({type:W.Literal(`daemon:scheduler:dequeued`),prdId:W.String(),queueDepth:W.Number(),capacityRemaining:W.Number()}),W.Object({type:W.Literal(`daemon:scheduler:capacity-blocked`),queueDepth:W.Number(),runningCount:W.Number(),limit:W.Number()}),W.Object({type:W.Literal(`daemon:scheduler:dependency-blocked`),prdId:W.String(),blockedBy:W.Array(W.String())}),W.Object({type:W.Literal(`daemon:scheduler:paused`)}),W.Object({type:W.Literal(`daemon:scheduler:resumed`)}),W.Object({type:W.Literal(`daemon:auto-build:enabled`)}),W.Object({type:W.Literal(`daemon:auto-build:disabled`)}),W.Object({type:W.Literal(`daemon:auto-build:resumed`)}),W.Object({type:W.Literal(`daemon:auto-build:triggered`),trigger:W.String(),prdsEnqueued:W.Number()}),W.Object({type:W.Literal(`daemon:auto-build:transition`),previousMode:E_,nextMode:E_,desired:T_,reason:W.Optional(W.String()),source:W.String()}),W.Object({type:W.Literal(`daemon:recovery:start`)}),W.Object({type:W.Literal(`daemon:recovery:run-marked-failed`),runId:W.String(),planSet:W.String(),reason:W.String()}),W.Object({type:W.Literal(`daemon:recovery:lock-removed`),path:W.String(),pid:W.Number()}),W.Object({type:W.Literal(`daemon:recovery:lock-adopted`),path:W.String(),pid:W.Number(),prdId:W.String()}),W.Object({type:W.Literal(`daemon:recovery:complete`),runsFailed:W.Number(),locksRemoved:W.Number(),durationMs:W.Number()}),W.Object({type:W.Literal(`daemon:orphan:reaped`),runId:W.String(),sessionId:W.String(),planSet:W.String(),pid:W.Number()}),W.Object({type:W.Literal(`daemon:failed-enqueue:upsert`),failedEnqueue:w_}),W.Object({type:W.Literal(`daemon:failed-enqueue:resolved`),runId:W.String(),resolvedAt:W.String(),spawnedSessionId:W.Optional(W.String())}),W.Object({type:W.Literal(`daemon:warning`),source:W.String(),message:W.String(),details:W.Optional(W.String())}),W.Object({type:W.Literal(`daemon:error`),source:W.String(),message:W.String(),stack:W.Optional(W.String())})],W_={keepAlive:`/api/keep-alive`,enqueue:`/api/enqueue`,cancel:`/api/cancel/:sessionId`,daemonStop:`/api/daemon/stop`,autoBuildGet:`/api/auto-build`,autoBuildSet:`/api/auto-build`,profileList:`/api/profile/list`,profileShow:`/api/profile/show`,profileUse:`/api/profile/use`,profileCreate:`/api/profile/create`,profileDelete:`/api/profile/:name`,modelProviders:`/api/models/providers`,modelList:`/api/models/list`,projectContext:`/api/project-context`,health:`/api/health`,version:`/api/version`,configShow:`/api/config/show`,configValidate:`/api/config/validate`,extensionList:`/api/extensions/list`,extensionShow:`/api/extensions/show`,extensionValidate:`/api/extensions/validate`,extensionTest:`/api/extensions/test`,extensionTrust:`/api/extensions/trust`,extensionUntrust:`/api/extensions/untrust`,extensionNew:`/api/extensions/new`,extensionReload:`/api/extensions/reload`,extensionInstall:`/api/extensions/install`,extensionUpdate:`/api/extensions/update`,extensionRemove:`/api/extensions/remove`,extensionPromote:`/api/extensions/promote`,extensionDemote:`/api/extensions/demote`,extensionContributionManifest:`/api/extensions/contributions`,extensionWorkstationFrame:`/api/extensions/workstations/:workstationId/frame`,extensionWorkstationAsset:`/api/extensions/workstations/:workstationId/assets/:assetId`,extensionActionInvoke:`/api/extensions/actions/invoke`,extensionAgentTaskStart:`/api/extensions/agent-tasks`,extensionAgentTaskGet:`/api/extensions/agent-tasks/:taskId`,extensionAgentTaskCancel:`/api/extensions/agent-tasks/:taskId/cancel`,queue:`/api/queue`,queuePriority:`/api/queue/:prdId/priority`,queueRemove:`/api/queue/:prdId`,queueDependencyOverride:`/api/queue/:prdId/dependencies/override`,queueHold:`/api/queue/:prdId/hold`,queueUnhold:`/api/queue/:prdId/unhold`,queueCascadePreview:`/api/queue/:prdId/cascade/preview`,queueCascadeApply:`/api/queue/:prdId/cascade/apply`,queueRecoveryAnalyze:`/api/queue/recovery/analyze`,queueRecoveryApply:`/api/queue/recovery/apply`,sessionMetadata:`/api/session-metadata`,runs:`/api/runs`,spend:`/api/spend`,efficiencyAnalytics:`/api/efficiency-analytics`,events:`/api/events/:runId`,runSummary:`/api/run-summary/:id`,runState:`/api/run-state/:id`,plans:`/api/plans/:runId`,diff:`/api/diff/:sessionId/:planId`,recover:`/api/recover`,recoveryGuidancePrepare:`/api/recover/guidance/prepare`,readRecoverySidecar:`/api/recovery/sidecar`,applyRecovery:`/api/recover/apply`,acceptRecoverySuccessPreview:`/api/recover/accept-success/preview`,acceptRecoverySuccess:`/api/recover/accept-success`,continueRepair:`/api/recover/continue-repair`,continueRepairEligibility:`/api/recover/continue-repair/eligibility`,schedulerKick:`/api/scheduler/kick`,failedEnqueues:`/api/enqueue/failed`,failedEnqueueReenqueue:`/api/enqueue/failed/:runId/reenqueue`,failedEnqueueDismiss:`/api/enqueue/failed/:runId/dismiss`,schedulerPause:`/api/scheduler/pause`,schedulerResume:`/api/scheduler/resume`,sessionPlanList:`/api/session-plan/list`,sessionPlanShow:`/api/session-plan/show`,sessionPlanCreate:`/api/session-plan/create`,sessionPlanSetSection:`/api/session-plan/set-section`,sessionPlanSkipDimension:`/api/session-plan/skip-dimension`,sessionPlanSetStatus:`/api/session-plan/set-status`,sessionPlanSelectDimensions:`/api/session-plan/select-dimensions`,sessionPlanReadiness:`/api/session-plan/readiness`,sessionPlanMigrateLegacy:`/api/session-plan/migrate-legacy`,sessionPlanSetList:`/api/session-plan-set/list`,sessionPlanSetShow:`/api/session-plan-set/show`,sessionPlanSetValidate:`/api/session-plan-set/validate`,daemonEvents:`/api/daemon-events`,stackLayers:`/api/stack/layers`,stackSync:`/api/stack/sync`,stackSyncStatus:`/api/stack/sync/status`},G_=1e3,K_=`eforge-recovery-sidecar-compile-scope-context-reason-bytes`;La(K_,e=>new TextEncoder().encode(e).length<=G_);var q_=W.Integer({minimum:0}),J_=W.Integer({minimum:1}),Y_=W.Object({kind:W.Literal(`continue-repair`),action:W.Literal(`continue-repair`),recommended:W.Boolean(),reason:W.String()}),X_=W.Union([W.Literal(`bounded-decomposition`),W.Literal(`manual-reduce-scope`)]),Z_=W.Object({kind:W.Literal(`compile-scope-context`),action:X_,recommended:W.Boolean(),eligible:W.Boolean(),reason:W.String({minLength:1,maxLength:G_,format:K_}),attempted:W.Boolean(),attempt:q_,maxAttempts:J_,source:Zh,failureKind:Qh,decompositionEvidence:W.Optional(_h)}),Q_=W.Union([W.Literal(`preflight`),W.Literal(`live-context-guard`),W.Literal(`provider`)]),$_=W.Union([W.Literal(`context-budget`),W.Literal(`context-window`),W.Literal(`context-length`),W.Literal(`scope-too-broad`)]),ev=W.Intersect([Z_,W.Union([W.Object({source:W.Literal(`decomposition`),failureKind:W.Literal(`decomposition-exhausted`),decompositionEvidence:_h}),W.Object({source:Q_,failureKind:$_,decompositionEvidence:W.Optional(W.Never())})])]);Object.assign(ev,{properties:Z_.properties}),W.Union([Y_,ev]);var tv=`[^/?#]+`,nv=`^sha256-[a-f0-9]{64}-path-[a-f0-9]{64}$`,rv=`^[a-f0-9]{64}$`,iv=lv(W_.extensionWorkstationFrame,{},`(?:\\?[^#]*)?`),av=lv(W_.extensionWorkstationAsset,{assetId:nv.slice(1,-1)}),ov=`(?:\\.|%2[eE]){1,2}`,sv=`^(?!\\s)(?!.*\\s$)(?!.*[#\\\\\\u0000-\\u001F\\u007F])(?:\\?[^#\\\\\\u0000-\\u001F\\u007F]*|(?!(?:[A-Za-z][A-Za-z0-9+.-]*:|/))(?![^?]*%(?![0-9A-Fa-f]{2}))(?:(?!${ov}(?:/|\\?|$))[^/?#\\\\\\u0000-\\u001F\\u007F]+/)*(?!${ov}(?:\\?|$))[^/?#\\\\\\u0000-\\u001F\\u007F]+(?:\\?[^#\\\\\\u0000-\\u001F\\u007F]*)?)$`,cv=`^(?=.*\\S)(?!/)(?![A-Za-z]:[\\\\/])(?!.*\\u0000)(?:(?!\\.{1,2}(?:[\\\\/]|$))[^\\\\/\\u0000]+)(?:[\\\\/](?!\\.{1,2}(?:[\\\\/]|$))[^\\\\/\\u0000]+)*$`;function lv(e,t={},n=``){return`^${uv(e).replace(/:([A-Za-z][A-Za-z0-9_]*)/g,(e,n)=>t[n]??tv)}${n}$`}function uv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var dv=W.Recursive(e=>W.Union([W.Null(),W.Boolean(),W.Number(),W.String(),W.Array(e),W.Record(W.String(),e)])),fv=W.Record(W.String(),dv),pv=W.Union([W.Literal(`console`),W.Literal(`pi`),W.Literal(`claude`),W.Literal(`mcp`),W.Literal(`cli`)]),mv=W.Object({host:pv,surface:W.Optional(W.String()),sessionId:W.Optional(W.String()),commandId:W.Optional(W.String()),deepLinkId:W.Optional(W.String())},{additionalProperties:!1}),hv=W.Union([W.Literal(`none`),W.Literal(`local-read`),W.Literal(`local-write`),W.Literal(`network`),W.Literal(`daemon-state`),W.Literal(`build-queue`)]),gv=W.Union([W.Literal(`agent-compact`),W.Literal(`agent-paginated`),W.Literal(`markdown`),W.Literal(`ui-rich`),W.Literal(`debug-rich`)]),_v=`^(?:[<>]=?|=)?\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?(?:\\s*,\\s*(?:[<>]=?|=)?\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?)*$`,vv=W.Object({name:W.String({minLength:1}),version:W.Optional(W.String({minLength:1,pattern:_v}))},{additionalProperties:!1}),yv=W.Union([W.Object({name:W.String({minLength:1}),version:W.Optional(W.String({minLength:1,pattern:_v})),capabilities:W.Optional(W.Array(vv))},{additionalProperties:!1}),W.Object({version:W.Optional(W.String({minLength:1,pattern:_v})),capabilities:W.Array(vv,{minItems:1})},{additionalProperties:!1})]),bv=W.Object({dependencies:W.Optional(W.Array(yv)),capabilities:W.Optional(W.Array(vv))},{additionalProperties:!1}),xv=W.Object({code:W.String(),message:W.String(),severity:W.Optional(W.Union([W.Literal(`warning`),W.Literal(`error`)])),dependencyName:W.Optional(W.String()),providerName:W.Optional(W.String()),capabilityName:W.Optional(W.String()),requiredVersion:W.Optional(W.String()),actualVersion:W.Optional(W.String())},{additionalProperties:!1}),Sv=W.Object({available:W.Boolean(),message:W.Optional(W.String()),diagnostics:W.Optional(W.Array(xv))},{additionalProperties:!1}),Cv=W.Object({actionId:W.String(),inputDefaults:W.Optional(fv)},{additionalProperties:!1});W.Union([W.Literal(`text`),W.Literal(`markdown`),W.Literal(`status-badge`),W.Literal(`link`),W.Literal(`action-button`),W.Literal(`action-form`)]);var wv=W.Union([W.Object({rendererId:W.Literal(`text`),title:W.Optional(W.String()),content:W.String()},{additionalProperties:!1}),W.Object({rendererId:W.Literal(`markdown`),title:W.Optional(W.String()),content:W.String()},{additionalProperties:!1}),W.Object({rendererId:W.Literal(`status-badge`),title:W.Optional(W.String()),content:W.String(),status:W.String()},{additionalProperties:!1}),W.Object({rendererId:W.Literal(`link`),title:W.Optional(W.String()),content:W.String(),href:W.String()},{additionalProperties:!1}),W.Object({rendererId:W.Literal(`action-button`),title:W.Optional(W.String()),content:W.String(),action:Cv},{additionalProperties:!1}),W.Object({rendererId:W.Literal(`action-form`),title:W.Optional(W.String()),content:W.String(),action:Cv},{additionalProperties:!1})]),Tv=fv,Ev=W.Intersect([fv,W.Object({type:W.Literal(`object`)})]),Dv=W.Union([W.Object({kind:W.Literal(`asset`),asset:W.String({minLength:1,pattern:cv})},{additionalProperties:!1}),W.Object({kind:W.Literal(`export`),module:W.String({minLength:1}),exportName:W.Optional(W.String({minLength:1}))},{additionalProperties:!1})]),Ov=W.Object({id:W.String(),localId:W.String(),extensionName:W.String(),extensionPath:W.String(),title:W.String(),description:W.Optional(W.String()),inputSchema:Ev,outputSchema:W.Optional(Tv),prompt:Dv,requirements:W.Optional(bv),availability:W.Optional(Sv)},{additionalProperties:!1}),kv=W.Object({id:W.String(),localId:W.String(),extensionName:W.String(),extensionPath:W.String(),title:W.String(),description:W.Optional(W.String()),inputSchema:Ev,outputSchema:W.Optional(Tv),outputProfile:W.Optional(gv),sideEffects:W.Optional(W.Array(hv)),requirements:W.Optional(bv),availability:W.Optional(Sv)},{additionalProperties:!1}),Av=W.Object({id:W.String(),localId:W.String(),extensionName:W.String(),extensionPath:W.String(),title:W.String(),description:W.Optional(W.String()),schemaVersion:W.Literal(1),requirements:W.Optional(bv),availability:W.Optional(Sv),blocks:W.Array(wv)},{additionalProperties:!1}),jv=W.Object({id:W.String({pattern:nv}),url:W.String({pattern:av}),relativePath:W.String(),sha256:W.String({pattern:rv})},{additionalProperties:!1}),Mv=W.Object({browserSdkVersion:W.Literal(1),frameUrl:W.String({pattern:iv}),entrypoint:jv,styles:W.Array(jv),assets:W.Array(jv)},{additionalProperties:!1}),Nv={id:W.String({pattern:`^[a-z][a-z0-9-]{0,63}$`}),label:W.String({minLength:1,pattern:`\\S`}),description:W.Optional(W.String())},Pv=W.Union([W.Object({...Nv,path:W.String({minLength:1,pattern:sv})},{additionalProperties:!1}),W.Object({...Nv,subPath:W.String({minLength:1,pattern:sv})},{additionalProperties:!1})]),Fv=W.Object({id:W.String(),localId:W.String(),extensionName:W.String(),extensionPath:W.String(),title:W.String(),description:W.Optional(W.String()),schemaVersion:W.Literal(1),requirements:W.Optional(bv),availability:W.Optional(Sv),subviews:W.Optional(W.Array(Pv)),srcDoc:W.String(),allowedActions:W.Array(W.String())},{additionalProperties:!1}),Iv=W.Object({id:W.String(),localId:W.String(),extensionName:W.String(),extensionPath:W.String(),title:W.String(),description:W.Optional(W.String()),schemaVersion:W.Literal(1),requirements:W.Optional(bv),availability:W.Optional(Sv),subviews:W.Optional(W.Array(Pv)),frameBundle:Mv,allowedActions:W.Array(W.String())},{additionalProperties:!1}),Lv=W.Union([Fv,Iv]),Rv=W.Object({id:W.String(),localId:W.String(),extensionName:W.String(),extensionPath:W.String(),title:W.Optional(W.String()),description:W.Optional(W.String()),label:W.String(),inputSchema:W.Optional(Ev),requirements:W.Optional(bv),availability:W.Optional(Sv),action:Cv},{additionalProperties:!1}),zv=W.Object({id:W.String(),localId:W.String(),extensionName:W.String(),extensionPath:W.String(),title:W.Optional(W.String()),description:W.Optional(W.String()),label:W.String(),urlTemplate:W.Optional(W.String()),requirements:W.Optional(bv),availability:W.Optional(Sv),action:W.Optional(Cv)},{additionalProperties:!1}),Bv=W.Object({extensionName:W.Optional(W.String()),extensionPath:W.Optional(W.String()),severity:W.Union([W.Literal(`info`),W.Literal(`warning`),W.Literal(`error`)]),message:W.String(),code:W.String(),name:W.Optional(W.String()),dependencyName:W.Optional(W.String()),providerName:W.Optional(W.String()),capabilityName:W.Optional(W.String()),requiredVersion:W.Optional(W.String()),actualVersion:W.Optional(W.String()),dependencyKind:W.Optional(W.Union([W.Literal(`required`),W.Literal(`optional`)]))},{additionalProperties:!1});W.Object({schemaVersion:W.Literal(1),generatedAt:W.String(),actions:W.Array(kv),agentTasks:W.Optional(W.Array(Ov)),consoleContributions:W.Array(Av),consoleWorkstations:W.Array(Lv),integrationCommands:W.Array(Rv),deepLinks:W.Array(zv),diagnostics:W.Optional(W.Array(Bv))},{additionalProperties:!1}),W.Object({actionId:W.String({minLength:1,pattern:`\\S`}),input:fv,requestedBy:mv},{additionalProperties:!1});var Vv=W.Union([W.Literal(`unknown-action`),W.Literal(`invalid-request`),W.Literal(`invalid-input`),W.Literal(`daemon-unavailable`),W.Literal(`unavailable`),W.Literal(`handler-error`),W.Literal(`timeout`),W.Literal(`invalid-output`),W.Literal(`output-schema-failed`)]),Hv=W.Object({path:W.String(),message:W.String()},{additionalProperties:dv}),Uv=W.Object({ok:W.Literal(!0),invocationId:W.String(),output:dv},{additionalProperties:!1}),Wv=W.Object({ok:W.Literal(!1),invocationId:W.String(),error:W.Object({code:Vv,message:W.String(),details:W.Optional(dv)},{additionalProperties:!1})},{additionalProperties:!1});W.Union([Uv,Wv]);var Gv=W.Optional(W.Union([W.Literal(`manual`),W.Literal(`after-build`),W.Literal(`scheduled`),W.Literal(`retry-deferred`)])),Kv=Hv,qv=W.Union([W.Literal(`invalid-input`),W.Literal(`daemon-unavailable`),W.Literal(`handler-error`),W.Literal(`invalid-output`),W.Literal(`output-schema-failed`)]),Jv={invocationId:W.String(),actionId:W.String(),extensionName:W.String(),extensionPath:W.String(),requestedBy:mv},Yv=W.String({minLength:1,pattern:`\\S`}),Xv=W.String({pattern:`^[a-f0-9]{64}$`}),Zv=W.String({minLength:1,pattern:`^(?!\\.\\.?$)(?!.*[\\\\/\\u0000]).+$`}),Qv=W.Union([W.Literal(`item`),W.Literal(`epic`)]),$v={id:Zv,origin:W.Optional(W.Union([W.Literal(`private`),W.Literal(`legacy`)])),relativePath:W.Optional(Yv),bodySha256:Xv,sourceFingerprint:W.Optional(Xv),updated:W.Optional(W.String()),recordSha256:W.Optional(Xv)};W.Object({...$v,kind:Qv},{additionalProperties:!1});var ey=W.Object({...$v,kind:W.Literal(`item`)},{additionalProperties:!1}),ty=W.Object({...$v,kind:W.Literal(`epic`)},{additionalProperties:!1}),ny=W.Union([W.Literal(`candidate`),W.Literal(`planned`),W.Literal(`active`),W.Literal(`shipped`),W.Literal(`stale`),W.Literal(`superseded`)]),ry=W.Object({status:W.Optional(ny),priority:W.Optional(W.String()),tags:W.Optional(W.Array(W.String())),depends_on:W.Optional(W.Array(Zv)),epic:W.Optional(W.Union([Zv,W.Null()])),last_checked:W.Optional(W.String()),stale_after:W.Optional(W.String())},{additionalProperties:!1}),iy=W.Object({heading:Yv,action:W.Union([W.Literal(`replace`),W.Literal(`append`)]),content:W.String()},{additionalProperties:!1}),ay={id:Zv,metadata:W.Optional(ry),sectionOperations:W.Optional(W.Array(iy)),rationale:Yv,evidence:W.Optional(W.Array(W.String()))},oy=W.Object({...ay,kind:W.Literal(`item`),precondition:ey},{additionalProperties:!1}),sy=W.Object({...ay,kind:W.Literal(`epic`),precondition:ty},{additionalProperties:!1});W.Union([oy,sy]);var cy={id:Zv,last_checked:W.String(),stale_after:W.String(),rationale:W.Optional(W.String())},ly=W.Object({...cy,kind:W.Literal(`item`),precondition:ey},{additionalProperties:!1}),uy=W.Object({...cy,kind:W.Literal(`epic`),precondition:ty},{additionalProperties:!1}),dy=W.Union([ly,uy]),fy=W.Object({id:W.Optional(Zv),kind:W.Optional(Qv),reason:Yv},{additionalProperties:!1}),py=W.Object({id:W.Optional(Zv),kind:W.Optional(Qv),question:Yv,reason:W.Optional(Yv)},{additionalProperties:!1}),my=W.Object({schemaVersion:W.Literal(1),sourceFingerprint:Xv,generatedAt:W.Optional(W.String()),summary:W.Array(W.String()),itemChanges:W.Array(oy),epicChanges:W.Array(sy),noOpRechecks:W.Array(dy),skipped:W.Array(fy),needsInput:W.Array(py)},{additionalProperties:!1}),hy=W.Object({dimension:Yv,sha256:Xv},{additionalProperties:!1}),gy=W.Object({dimension:Yv,content:Yv,rationale:W.Optional(W.String())},{additionalProperties:!1}),_y=W.Object({openQuestions:W.Optional(W.Array(Yv))},{additionalProperties:!1}),vy=W.Object({dimension:Yv,reason:Yv},{additionalProperties:!1}),yy=W.Object({sections:W.Optional(W.Array(gy,{minItems:1})),metadata:W.Optional(_y),skippedDimensions:W.Optional(W.Array(vy))},{additionalProperties:!1}),by=W.Object({label:Yv,excerpt:W.Optional(W.String()),path:W.Optional(W.String()),url:W.Optional(W.String())},{additionalProperties:!1}),xy=W.Object({schemaVersion:W.Literal(1),targetSession:Yv,assistantMessage:Yv,basePlanFingerprint:Xv,baseSectionHashes:W.Optional(W.Array(hy)),proposedPatch:W.Optional(yy),citations:W.Optional(W.Array(by)),applyGuidance:W.Optional(W.String()),noPatchReason:W.Optional(W.String())},{additionalProperties:!1}),Sy=`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$`;new RegExp(Sy);var Cy=W.Object({itemId:W.String({minLength:1,maxLength:240}),title:W.Optional(W.String({maxLength:300})),status:W.Union([W.Literal(`pending`),W.Literal(`running`),W.Literal(`cache-hit`),W.Literal(`completed`),W.Literal(`failed`),W.Literal(`cancelled`)]),outcome:W.Optional(W.String({maxLength:80})),verdict:W.Optional(W.String({maxLength:80})),summary:W.Optional(W.String({maxLength:500})),startedAt:W.Optional(W.String({maxLength:120})),completedAt:W.Optional(W.String({maxLength:120}))},{additionalProperties:!1}),wy=W.Object({total:W.Integer({minimum:0}),cacheHits:W.Integer({minimum:0}),misses:W.Integer({minimum:0}),running:W.Integer({minimum:0}),completed:W.Integer({minimum:0}),remaining:W.Integer({minimum:0}),items:W.Array(Cy,{maxItems:1e3})},{additionalProperties:!1}),Ty=W.Object({timestamp:W.String({minLength:1,pattern:Sy}),message:W.String({minLength:1,maxLength:500,pattern:`\\S`})},{additionalProperties:!1}),Ey=1e3,Dy=1e3,Oy=2e3,ky=(e=2e3)=>W.String({maxLength:e}),Ay=(e=2e3)=>W.String({minLength:1,pattern:`\\S`,maxLength:e}),jy=W.Union([W.String({maxLength:500}),W.Number(),W.Boolean(),W.Null()]),My=W.Union([jy,W.Array(jy,{maxItems:20}),W.Object({},{additionalProperties:jy,maxProperties:20})]),Ny=W.Union([jy,W.Array(My,{maxItems:20}),W.Object({},{additionalProperties:My,maxProperties:20})]),Py=W.Object({},{additionalProperties:Ny,maxProperties:24}),Fy=W.Object({kind:W.Literal(`item`),id:Zv,origin:W.Optional(W.Union([W.Literal(`private`),W.Literal(`legacy`)])),relativePath:W.Optional(Ay(500)),bodySha256:Xv,sourceFingerprint:Xv,updated:W.Optional(W.String({maxLength:120})),recordSha256:Xv},{additionalProperties:!1}),Iy=W.Object({provider:Ay(120),modelId:Ay(200),agentProfile:W.Optional(W.String({maxLength:200}))},{additionalProperties:!1}),Ly=W.Object({code:Ay(160),severity:W.Union([W.Literal(`info`),W.Literal(`warning`),W.Literal(`error`)]),message:W.Optional(ky(800)),path:W.Optional(ky(300))},{additionalProperties:!1}),Ry=W.Object({code:Ay(160),cap:W.Integer({minimum:0}),observed:W.Integer({minimum:0}),retained:W.Integer({minimum:0}),message:W.Optional(ky(800))},{additionalProperties:!1}),K=W.Object({id:Zv,relationship:W.Union([W.Literal(`open-dependency`),W.Literal(`closed-dependency`),W.Literal(`missing-dependency`)]),status:W.Optional(W.String({maxLength:80})),title:W.Optional(ky(300))},{additionalProperties:!1}),zy=W.Object({kind:W.Union([W.Literal(`implementation`),W.Literal(`product-surface`),W.Literal(`supporting`),W.Literal(`current-source`)]),source:Ay(200),confidence:W.Optional(W.String({maxLength:80})),path:W.Optional(ky(400)),excerpt:W.Optional(ky(1e3)),matchedBy:W.Optional(W.Array(W.String({maxLength:120}),{maxItems:12}))},{additionalProperties:!1}),By=W.Object({source:Ay(200),closureAuthority:W.Literal(!1),intent:W.Optional(W.String({maxLength:120})),confidence:W.Optional(W.String({maxLength:80})),citation:W.Optional(ky(600)),evidence:W.Optional(ky(1e3)),path:W.Optional(ky(400))},{additionalProperties:!1}),Vy=W.Object({source:Ay(200),ref:W.Optional(W.String({maxLength:160})),signal:ky(1e3)},{additionalProperties:!1}),Hy=W.Object({schemaVersion:W.Literal(1),purpose:W.Literal(`backlog-curation-map-reduce`),sourceFingerprint:Xv,generatedAt:W.Optional(W.String()),curationGuidance:W.Array(ky(1200),{maxItems:8}),caps:W.Object({},{additionalProperties:W.Number()}),itemCount:W.Integer({minimum:0,maximum:Ey}),openItemIds:W.Array(Zv,{maxItems:Ey}),roadmapSummaries:W.Array(Py,{maxItems:20}),dependencySummaries:W.Array(Py,{maxItems:50}),recommendationSummaries:W.Array(Py,{maxItems:50}),redraftSummary:W.Optional(Py),diagnostics:W.Array(Ly,{maxItems:40})},{additionalProperties:!1}),Uy=W.Object({schemaVersion:W.Literal(1),kind:W.Literal(`item`),sourceFingerprint:Xv,itemId:Zv,itemTitle:ky(300),metadata:Py,precondition:Fy,bodySha256:Xv,recordSha256:Xv,sectionSummaries:W.Array(W.Object({heading:ky(160),text:ky(2e3)},{additionalProperties:!1}),{maxItems:12}),dependencyFacts:W.Array(K,{maxItems:12}),currentSourceCitations:W.Array(zy,{maxItems:8}),historicalHints:W.Array(By,{maxItems:8}),recommendationSignals:W.Array(Vy,{maxItems:8}),diagnostics:W.Array(Ry,{maxItems:8})},{additionalProperties:!1}),Wy=W.Union([W.Literal(`shipped`),W.Literal(`superseded`),W.Literal(`partial`),W.Literal(`still-needed`),W.Literal(`stale-invalid`),W.Literal(`needs-product-input`),W.Literal(`skip`)]),Gy=W.Union([W.Literal(`implementation`),W.Literal(`product-surface`),W.Literal(`replacement`),W.Literal(`supporting`)]),Ky=W.Object({path:Ay(400),reason:W.Optional(ky(500))},{additionalProperties:!1}),qy={schemaVersion:W.Literal(1),itemId:Zv,sourceFingerprint:Xv,packetSha256:Xv,bodySha256:Xv,promptVersion:Ay(120),runtimeIdentity:Iy,disposition:W.Union([W.Literal(`change`),W.Literal(`recheck`),W.Literal(`skip`),W.Literal(`needs-input`)]),verdict:W.Optional(Wy),closureEvidenceRoles:W.Optional(W.Array(Gy,{maxItems:8})),checkedPaths:W.Optional(W.Array(Ky,{maxItems:20})),summary:ky(2e3),rationale:ky(3e3),citations:W.Array(zy,{maxItems:8}),recommendationSignals:W.Array(Vy,{maxItems:8}),diagnostics:W.Array(Ly,{maxItems:8})},Jy=W.Object(qy,{additionalProperties:!1});W.Object({...qy,runtimeIdentity:W.Optional(Iy)},{additionalProperties:!1});var Yy={schemaVersion:W.Literal(1),itemId:Zv,sourceFingerprint:Xv,packetSha256:W.Optional(Xv),bodySha256:W.Optional(Xv),diagnostics:W.Array(Ly,{maxItems:8})},Xy=W.Union([W.Object({...Yy,outcome:W.Literal(`cache-hit`),finding:Jy},{additionalProperties:!1}),W.Object({...Yy,outcome:W.Literal(`audited-finding`),finding:Jy},{additionalProperties:!1}),W.Object({...Yy,outcome:W.Literal(`oversized-packet`),byteLength:W.Integer({minimum:0}),byteCap:W.Integer({minimum:0})},{additionalProperties:!1}),W.Object({...Yy,outcome:W.Literal(`item-agent-failure`),error:ky(Oy)},{additionalProperties:!1}),W.Object({...Yy,outcome:W.Literal(`invalid-finding`),validationErrors:W.Array(ky(400),{maxItems:12})},{additionalProperties:!1}),W.Object({...Yy,outcome:W.Literal(`cancelled`),reason:W.Optional(ky(400))},{additionalProperties:!1})]),Zy=W.Object({schemaVersion:W.Literal(1),sourceFingerprint:Xv,generatedAt:W.Optional(W.String()),globalContext:Hy,outcomes:W.Array(Xy,{maxItems:Dy}),diagnostics:W.Array(Ly,{maxItems:40})},{additionalProperties:!1});W.Object({schemaVersion:W.Literal(1),sourceFingerprint:Xv,generatedAt:W.Optional(W.String()),globalContext:Hy,packets:W.Array(Uy,{maxItems:Ey}),degradedOutcomes:W.Array(Xy,{maxItems:Ey}),reducerInput:Zy},{additionalProperties:!1});var Qy=W.Literal(`eforge-plan.planning-draft`);W.Union([W.Literal(`queued`),W.Literal(`running`),W.Literal(`completed`),W.Literal(`failed`),W.Literal(`cancelled`)]);var $y=W.Object({host:W.Union([W.Literal(`console`),W.Literal(`pi`),W.Literal(`claude`),W.Literal(`mcp`),W.Literal(`cli`)]),surface:W.Optional(W.String()),sessionId:W.Optional(W.String())},{additionalProperties:!1}),eb=W.Union([W.Literal(`recommendations`),W.Literal(`handoffDrafts`),W.Literal(`planDrafts`),W.Literal(`sessionPlanPatch`),W.Literal(`sessionPlanCreationDraft`),W.Literal(`backlogCurationDraft`),W.Literal(`planRevisionTurn`)]),tb=`^[A-Za-z0-9._-]{1,128}$`,nb=`^(?:[A-Za-z0-9._:-]{1,128}|(?=.{1,256}$)(?!.*[/\\\\\\u0000-\\u001F\\u007F-\\u009F])(?!(?:\\.|\\.\\.):).+:[a-z][a-z0-9-]{0,63})$`,rb=`^[a-z0-9]+(?:-[a-z0-9]+)*$`,ib=W.String({minLength:1,maxLength:128,pattern:tb}),ab=W.String({minLength:1,pattern:rb}),ob=W.Object({id:W.String({minLength:1,maxLength:256,pattern:nb}),extensionName:W.Optional(W.String({minLength:1,pattern:`\\S`}))},{additionalProperties:!1}),sb=W.String({minLength:1,pattern:`\\S`}),cb=W.Object({module:W.String({minLength:1,pattern:`\\S`}),exportName:W.Optional(W.String({minLength:1,pattern:`\\S`})),input:W.Optional(W.Object({},{additionalProperties:!0}))},{additionalProperties:!1}),lb=W.Union([W.Literal(`bugfix`),W.Literal(`feature`),W.Literal(`refactor`),W.Literal(`architecture`),W.Literal(`docs`),W.Literal(`maintenance`),W.Literal(`unknown`)]),ub=W.Union([W.Literal(`quick`),W.Literal(`focused`),W.Literal(`deep`)]),db=W.String({minLength:1,pattern:`^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$`}),fb=W.Object({requiredDimensions:W.Array(db),optionalDimensions:W.Array(db)},{additionalProperties:!1}),pb=W.Object({quick:fb,focused:fb,deep:fb},{additionalProperties:!1}),mb=W.Object({dimensionContract:W.Object({bugfix:pb,feature:pb,refactor:pb,architecture:pb,docs:pb,maintenance:pb,unknown:pb},{additionalProperties:!1}),resolved:W.Optional(W.Object({planningType:lb,planningDepth:ub,requiredDimensions:W.Array(db),optionalDimensions:W.Array(db)},{additionalProperties:!1}))},{additionalProperties:!1}),hb=W.Object({topic:sb,session:W.Optional(W.String()),planningType:W.Optional(W.String()),planningDepth:W.Optional(W.String()),sourceText:W.Optional(W.String()),sourceProvider:W.Optional(cb),existingSessionPlan:W.Optional(W.String()),requestedOutputSections:W.Optional(W.Array(eb,{minItems:1})),sessionPlanCreationReadiness:W.Optional(mb),includeRoadmap:W.Optional(W.Boolean())},{additionalProperties:!1}),gb=W.Object({title:W.String(),body:W.String()},{additionalProperties:!1}),_b=W.Object({sections:W.Array(W.Object({dimension:W.String(),content:W.String()},{additionalProperties:!1}),{minItems:1}),skippedDimensions:W.Optional(W.Array(W.Object({dimension:W.String(),reason:W.String()},{additionalProperties:!1})))},{additionalProperties:!1}),vb=W.Object({session:ab,topic:W.String({minLength:1,pattern:`\\S`}),planningType:lb,planningDepth:ub,profile:W.Optional(W.Union([W.Literal(`errand`),W.Literal(`excursion`),W.Literal(`expedition`)])),agentProfile:W.Optional(W.String()),sections:W.Array(W.Object({dimension:db,content:W.String()},{additionalProperties:!1}),{minItems:1}),skippedDimensions:W.Optional(W.Array(W.Object({dimension:db,reason:W.String()},{additionalProperties:!1})))},{additionalProperties:!1}),yb=W.Object({question:W.String({minLength:1,pattern:`\\S`}),why:W.Optional(W.String()),options:W.Optional(W.Array(W.String()))},{additionalProperties:!1});W.Union([W.Literal(`ready`),W.Literal(`needs-input`)]);var bb=W.String({maxLength:500}),xb=W.Object({currentSection:W.Optional(bb),coveredSections:W.Optional(W.Array(bb,{maxItems:50})),remainingSections:W.Optional(W.Array(bb,{maxItems:50}))},{additionalProperties:!1}),Sb=W.Object({ref:W.Optional(W.String()),itemId:W.String(),rationale:W.Optional(W.String()),confidence:W.Optional(W.String())},{additionalProperties:!1}),Cb=W.Object({ref:W.String(),title:W.Optional(W.String()),itemIds:W.Array(W.String(),{minItems:1}),epicIds:W.Optional(W.Array(W.String())),safeToPlanTogether:W.Optional(W.Boolean()),rationale:W.Optional(W.String()),recommendedProfile:W.Optional(W.Union([W.Literal(`errand`),W.Literal(`excursion`),W.Literal(`expedition`)]))},{additionalProperties:!1}),wb=W.Object({ref:W.Optional(W.String()),itemIds:W.Array(W.String()),blockedBy:W.Array(W.String()),rationale:W.Optional(W.String())},{additionalProperties:!1}),Tb=W.Object({schemaVersion:W.Literal(1),updatedAt:W.Optional(W.String()),activeWork:W.Array(Sb),readyCandidates:W.Array(Sb),recommendedNextSequence:W.Array(Sb),safeParallelizableGroups:W.Array(Cb),blockedChains:W.Array(wb),rationaleAndAssumptions:W.Array(W.String())},{additionalProperties:!1}),Eb=W.Object({selection:W.Object({},{additionalProperties:!0}),session:W.Optional(W.String()),title:W.Optional(W.String()),profile:W.Optional(W.Union([W.Literal(`errand`),W.Literal(`excursion`),W.Literal(`expedition`)]))},{additionalProperties:!1}),Db={summary:W.String(),assumptionsOpenQuestions:W.Array(W.String()),nextSteps:W.Optional(W.Array(W.String()))},Ob={recommendations:W.Optional(Tb),backlogCurationDraft:W.Optional(my),handoffDraft:W.Optional(Eb),handoffDrafts:W.Optional(W.Array(Eb,{minItems:1})),planRevisionTurn:W.Optional(xy)},kb={...Db,...Ob};W.Object(kb,{additionalProperties:!1});var Ab=W.Object({session:W.String({minLength:1,pattern:`\\S`}),topic:W.String({minLength:1,pattern:`\\S`}),planningType:lb,planningDepth:ub,profile:W.Optional(W.Union([W.Literal(`errand`),W.Literal(`excursion`),W.Literal(`expedition`)])),agentProfile:W.Optional(W.String()),sections:W.Array(W.Object({dimension:W.String({minLength:1}),content:W.String()},{additionalProperties:!1}),{minItems:1}),skippedDimensions:W.Optional(W.Array(W.Object({dimension:W.String({minLength:1}),reason:W.String()},{additionalProperties:!1})))},{additionalProperties:!1}),jb=W.Object({...kb,decision:W.Literal(`ready`),sessionPlanCreationDraft:Ab,planDrafts:W.Optional(W.Array(gb,{minItems:1})),sessionPlanPatch:W.Optional(_b)},{additionalProperties:!1}),Mb=W.Union([W.Object({...kb,planRevisionTurn:xy,planDrafts:W.Optional(W.Array(gb,{minItems:1})),sessionPlanPatch:W.Optional(_b)},{additionalProperties:!1}),W.Object({...kb,backlogCurationDraft:my,planDrafts:W.Optional(W.Array(gb,{minItems:1})),sessionPlanPatch:W.Optional(_b)},{additionalProperties:!1}),W.Object({...kb,recommendations:Tb,planDrafts:W.Optional(W.Array(gb,{minItems:1})),sessionPlanPatch:W.Optional(_b)},{additionalProperties:!1}),W.Object({...kb,handoffDraft:Eb,planDrafts:W.Optional(W.Array(gb,{minItems:1})),sessionPlanPatch:W.Optional(_b)},{additionalProperties:!1}),W.Object({...kb,handoffDrafts:W.Array(Eb,{minItems:1}),planDrafts:W.Optional(W.Array(gb,{minItems:1})),sessionPlanPatch:W.Optional(_b)},{additionalProperties:!1}),W.Object({...kb,planDrafts:W.Array(gb,{minItems:1}),sessionPlanPatch:W.Optional(_b)},{additionalProperties:!1}),W.Object({...kb,planDrafts:W.Optional(W.Array(gb,{minItems:1})),sessionPlanPatch:_b},{additionalProperties:!1}),W.Object({...kb,decision:W.Literal(`ready`),sessionPlanCreationDraft:vb,planDrafts:W.Optional(W.Array(gb,{minItems:1})),sessionPlanPatch:W.Optional(_b)},{additionalProperties:!1}),W.Object({...Db,decision:W.Literal(`needs-input`),clarificationQuestions:W.Array(yb,{minItems:1}),rationale:W.String({minLength:1,pattern:`\\S`})},{additionalProperties:!1})]),Nb=W.Union([Mb,jb]),Pb=W.Object({kind:Qy,input:hb,requestedBy:W.Optional($y)},{additionalProperties:!1}),Fb=W.Object({task:ob,input:fv,requestedBy:W.Optional($y)},{additionalProperties:!1});W.Union([Fb,Pb]),W.Object({taskId:ib},{additionalProperties:!1}),W.Object({reason:W.Optional(W.String())},{additionalProperties:!1});var Ib=W.Object({label:W.Optional(W.String()),summary:W.Optional(W.String()),progressMessage:W.Optional(W.String()),outputSectionCount:W.Optional(W.Integer({minimum:0})),warningCount:W.Optional(W.Integer({minimum:0})),sectionProgress:W.Optional(xb),backlogCurationProgress:W.Optional(wy),activityLog:W.Optional(W.Array(Ty,{maxItems:50}))},{additionalProperties:!1}),Lb={taskId:ib,kind:Qy,createdAt:W.String(),updatedAt:W.String(),metadata:W.Optional(Ib)},Rb=W.Union([W.Object({...Lb,status:W.Literal(`queued`)},{additionalProperties:!1}),W.Object({...Lb,status:W.Literal(`running`),startedAt:W.String()},{additionalProperties:!1}),W.Object({...Lb,status:W.Literal(`completed`),startedAt:W.Optional(W.String()),completedAt:W.String(),result:Nb},{additionalProperties:!1}),W.Object({...Lb,status:W.Literal(`failed`),startedAt:W.Optional(W.String()),completedAt:W.Optional(W.String()),errorCode:W.String(),errorMessage:W.String()},{additionalProperties:!1}),W.Object({...Lb,status:W.Literal(`cancelled`),startedAt:W.Optional(W.String()),cancelledAt:W.String(),errorMessage:W.Optional(W.String())},{additionalProperties:!1})]);W.Object({task:Rb},{additionalProperties:!1}),W.Object({task:Rb},{additionalProperties:!1}),W.Object({task:Rb},{additionalProperties:!1});var zb=[W.Object({type:W.Literal(`extension:event-handler:failed`),extensionName:W.String(),extensionPath:W.String(),pattern:W.String(),triggeringEventType:W.String(),message:W.String(),stack:W.Optional(W.String())}),W.Object({type:W.Literal(`extension:event-handler:timeout`),extensionName:W.String(),extensionPath:W.String(),pattern:W.String(),triggeringEventType:W.String(),timeoutMs:W.Number()}),W.Object({type:W.Literal(`extension:action:start`),...Jv}),W.Object({type:W.Literal(`extension:action:complete`),...Jv,durationMs:W.Number()}),W.Object({type:W.Literal(`extension:action:failed`),...Jv,durationMs:W.Number(),errorCode:qv,message:W.String(),validationErrors:W.Optional(W.Array(Kv))}),W.Object({type:W.Literal(`extension:action:timeout`),...Jv,durationMs:W.Number(),timeoutMs:W.Number(),message:W.String()}),W.Object({type:W.Literal(`extension:agent-task:start`),taskId:W.String(),taskKind:Qy,extensionName:W.String(),status:W.Literal(`running`),metadata:W.Optional(Ib)}),W.Object({type:W.Literal(`extension:agent-task:progress`),taskId:W.String(),taskKind:Qy,extensionName:W.String(),status:W.Literal(`running`),message:W.String(),metadata:W.Optional(Ib)}),W.Object({type:W.Literal(`extension:agent-task:complete`),taskId:W.String(),taskKind:Qy,extensionName:W.String(),status:W.Literal(`completed`),durationMs:W.Integer({minimum:0}),metadata:W.Optional(Ib)}),W.Object({type:W.Literal(`extension:agent-task:failed`),taskId:W.String(),taskKind:Qy,extensionName:W.String(),status:W.Literal(`failed`),durationMs:W.Optional(W.Integer({minimum:0})),errorCode:W.String(),message:W.String(),metadata:W.Optional(Ib)}),W.Object({type:W.Literal(`extension:agent-task:cancelled`),taskId:W.String(),taskKind:Qy,extensionName:W.String(),status:W.Literal(`cancelled`),reason:W.Optional(W.String()),metadata:W.Optional(Ib)}),W.Object({type:W.Literal(`extension:agent-context:applied`),extensionName:W.String(),extensionPath:W.String(),role:ug,tier:W.Optional(W.String()),phase:W.Optional(W.String()),stage:W.Optional(W.String()),profile:W.String(),planId:W.Optional(W.String()),harness:W.Optional(W.Union([W.Literal(`claude-sdk`),W.Literal(`pi`)])),toolbelt:W.Optional(W.Union([W.String(),W.Null()])),projectMcpSelection:W.Optional(W.Union([W.Literal(`all`),W.Literal(`none`),W.Literal(`toolbelt`)])),promptCharCount:W.Integer({minimum:0}),fragmentCount:W.Integer({minimum:0})}),W.Object({type:W.Literal(`extension:agent-context:failed`),extensionName:W.String(),extensionPath:W.String(),role:ug,tier:W.Optional(W.String()),phase:W.Optional(W.String()),stage:W.Optional(W.String()),profile:W.String(),planId:W.Optional(W.String()),harness:W.Optional(W.Union([W.Literal(`claude-sdk`),W.Literal(`pi`)])),toolbelt:W.Optional(W.Union([W.String(),W.Null()])),projectMcpSelection:W.Optional(W.Union([W.Literal(`all`),W.Literal(`none`),W.Literal(`toolbelt`)])),message:W.String(),stack:W.Optional(W.String())}),W.Object({type:W.Literal(`extension:agent-context:timeout`),extensionName:W.String(),extensionPath:W.String(),role:ug,tier:W.Optional(W.String()),phase:W.Optional(W.String()),stage:W.Optional(W.String()),profile:W.String(),planId:W.Optional(W.String()),harness:W.Optional(W.Union([W.Literal(`claude-sdk`),W.Literal(`pi`)])),toolbelt:W.Optional(W.Union([W.String(),W.Null()])),projectMcpSelection:W.Optional(W.Union([W.Literal(`all`),W.Literal(`none`),W.Literal(`toolbelt`)])),timeoutMs:W.Integer({minimum:0})}),W.Object({type:W.Literal(`extension:agent-context:unsupported`),extensionName:W.String(),extensionPath:W.String(),role:ug,tier:W.Optional(W.String()),phase:W.Optional(W.String()),stage:W.Optional(W.String()),profile:W.String(),planId:W.Optional(W.String()),harness:W.Optional(W.Union([W.Literal(`claude-sdk`),W.Literal(`pi`)])),toolbelt:W.Optional(W.Union([W.String(),W.Null()])),projectMcpSelection:W.Optional(W.Union([W.Literal(`all`),W.Literal(`none`),W.Literal(`toolbelt`)])),fields:W.Array(W.Union([W.Literal(`tools`),W.Literal(`allowedTools`),W.Literal(`disallowedTools`)]),{minItems:1})}),W.Object({type:W.Literal(`extension:agent-tools:applied`),extensionName:W.String(),extensionPath:W.String(),role:ug,tier:W.Optional(W.String()),phase:W.Optional(W.String()),stage:W.Optional(W.String()),profile:W.String(),planId:W.Optional(W.String()),harness:W.Optional(W.Union([W.Literal(`claude-sdk`),W.Literal(`pi`)])),toolbelt:W.Optional(W.Union([W.String(),W.Null()])),projectMcpSelection:W.Optional(W.Union([W.Literal(`all`),W.Literal(`none`),W.Literal(`toolbelt`)])),projectMcpServerNames:W.Optional(W.Array(W.String())),toolNames:W.Array(W.String()),effectiveToolNames:W.Array(W.String()),registeredToolNames:W.Array(W.String()),inlineToolNames:W.Array(W.String()),allowedToolsAdded:W.Array(W.String()),disallowedToolsAdded:W.Array(W.String()),excludedToolNames:W.Array(W.String()),toolCount:W.Integer({minimum:0}),allowedToolCount:W.Integer({minimum:0}),disallowedToolCount:W.Integer({minimum:0}),excludedToolCount:W.Integer({minimum:0})}),W.Object({type:W.Literal(`queue:profile:selected`),prdId:W.String(),prdTitle:W.Optional(W.String()),profile:W.String(),baseProfile:W.Union([W.String(),W.Null()]),routerName:W.String(),extensionName:W.String(),extensionPath:W.String(),reason:W.Optional(W.String()),confidence:W.Optional(W.Union([W.Literal(`low`),W.Literal(`medium`),W.Literal(`high`)]))}),W.Object({type:W.Literal(`queue:profile:router-failed`),prdId:W.String(),routerName:W.String(),extensionName:W.String(),extensionPath:W.String(),message:W.String(),stack:W.Optional(W.String())}),W.Object({type:W.Literal(`queue:profile:router-timeout`),prdId:W.String(),routerName:W.String(),extensionName:W.String(),extensionPath:W.String(),timeoutMs:W.Integer({minimum:0})}),W.Object({type:W.Literal(`queue:profile:invalid-selection`),prdId:W.String(),routerName:W.String(),extensionName:W.String(),extensionPath:W.String(),requestedProfile:W.String(),reason:W.Union([W.Literal(`not-found`),W.Literal(`load-error`)]),message:W.String()}),W.Object({type:W.Literal(`extension:policy:decision`),...Rg,...Pg}),W.Object({type:W.Literal(`extension:policy:decision`),...Rg,...Fg}),W.Object({type:W.Literal(`extension:policy:decision`),...Rg,...Ig}),W.Object({type:W.Literal(`extension:policy:decision`),...zg,...Pg}),W.Object({type:W.Literal(`extension:policy:decision`),...zg,...Fg}),W.Object({type:W.Literal(`extension:policy:decision`),...zg,...Ig}),W.Object({type:W.Literal(`extension:policy:decision`),...Bg,...Pg}),W.Object({type:W.Literal(`extension:policy:decision`),...Bg,...Fg}),W.Object({type:W.Literal(`extension:policy:decision`),...Bg,...Ig}),W.Object({type:W.Literal(`extension:policy:failed`),...Rg,message:W.String(),stack:W.Optional(W.String())}),W.Object({type:W.Literal(`extension:policy:failed`),...zg,message:W.String(),stack:W.Optional(W.String())}),W.Object({type:W.Literal(`extension:policy:failed`),...Bg,message:W.String(),stack:W.Optional(W.String())}),W.Object({type:W.Literal(`extension:policy:timeout`),...Rg,timeoutMs:W.Integer({minimum:0})}),W.Object({type:W.Literal(`extension:policy:timeout`),...zg,timeoutMs:W.Integer({minimum:0})}),W.Object({type:W.Literal(`extension:policy:timeout`),...Bg,timeoutMs:W.Integer({minimum:0})}),W.Object({type:W.Literal(`extension:input-source:fetched`),extensionPath:W.String(),extensionName:W.String(),adapterName:W.String(),sourceId:W.String(),contentLength:W.Integer({minimum:0})}),W.Object({type:W.Literal(`extension:input-source:failed`),extensionPath:W.String(),extensionName:W.String(),adapterName:W.String(),sourceId:W.String(),reason:W.Union([W.Literal(`not-found`),W.Literal(`error`),W.Literal(`timeout`),W.Literal(`invalid-result`)]),message:W.String(),stack:W.Optional(W.String()),timeoutMs:W.Optional(W.Integer({minimum:0}))}),W.Object({type:W.Literal(`extension:prd-enricher:applied`),extensionPath:W.String(),extensionName:W.String(),enricherName:W.String(),sourceId:W.String(),changed:W.Boolean(),inputLength:W.Integer({minimum:0}),outputLength:W.Integer({minimum:0})}),W.Object({type:W.Literal(`extension:prd-enricher:failed`),extensionPath:W.String(),extensionName:W.String(),enricherName:W.String(),sourceId:W.String(),reason:W.Union([W.Literal(`error`),W.Literal(`timeout`),W.Literal(`invalid-result`)]),message:W.String(),stack:W.Optional(W.String()),timeoutMs:W.Optional(W.Integer({minimum:0}))}),W.Object({type:W.Literal(`extension:reviewer-perspective:applied`),extensionPath:W.String(),extensionName:W.String(),perspectiveKey:fg,perspectiveLabel:W.String(),planId:W.Optional(W.String())}),W.Union([W.Object({type:W.Literal(`extension:reviewer-perspective:skipped`),extensionPath:W.String(),extensionName:W.String(),perspectiveKey:fg,reason:W.Union([W.Literal(`not-applicable`),W.Literal(`applicability-error`),W.Literal(`applicability-timeout`)]),message:W.Optional(W.String()),planId:W.Optional(W.String()),timeoutMs:W.Optional(W.Integer({minimum:0}))}),W.Object({type:W.Literal(`extension:reviewer-perspective:skipped`),extensionPath:W.Optional(W.String()),extensionName:W.Optional(W.String()),perspectiveKey:fg,reason:W.Literal(`unknown-key`),message:W.Optional(W.String()),planId:W.Optional(W.String())})]),W.Object({type:W.Literal(`extension:validation-provider:start`),planId:W.String(),providerName:W.String(),extensionName:W.String(),extensionPath:W.String(),kind:W.Union([W.Literal(`validate`),W.Literal(`commands`)]),commandCount:W.Optional(W.Integer({minimum:0}))}),W.Object({type:W.Literal(`extension:validation-provider:complete`),planId:W.String(),providerName:W.String(),extensionName:W.String(),extensionPath:W.String(),status:W.Union([W.Literal(`passed`),W.Literal(`skipped`)]),message:W.Optional(W.String())}),W.Object({type:W.Literal(`extension:validation-provider:error`),planId:W.String(),providerName:W.String(),extensionName:W.String(),extensionPath:W.String(),status:W.Literal(`failed`),message:W.String(),details:W.Optional(W.String()),command:W.Optional(W.String()),exitCode:W.Optional(W.Integer())}),W.Object({type:W.Literal(`extension:validation-provider:timeout`),planId:W.String(),providerName:W.String(),extensionName:W.String(),extensionPath:W.String(),timeoutMs:W.Integer({minimum:0}),command:W.Optional(W.String())})],Bb=2e3,Vb=1024,Hb=2048,Ub=1024,Wb=W.String({maxLength:Bb}),Gb=W.Array(Wb,{maxItems:128}),Kb=W.Integer({minimum:0}),qb=W.Union([W.Literal(`foundation-contract`),W.Literal(`subsystem`),W.Literal(`oversized-criterion`),W.Literal(`general`),W.Literal(`rescope-split`)]),Jb=W.Object({atomId:Wb,title:Wb,reason:qb,criterionIds:Gb,dependencyAtomIds:Gb},{additionalProperties:!1}),Yb=W.Object({fromAtomId:Wb,toAtomId:Wb,reason:Wb},{additionalProperties:!1}),Xb=W.Union([W.Literal(`queued`),W.Literal(`running`),W.Literal(`completed`),W.Literal(`skipped`),W.Literal(`failed`)]),Zb=W.Object({nodeId:Wb,depth:Kb,inputAtomIds:Gb,inputNodeIds:Gb},{additionalProperties:!1}),Qb=W.Union([W.Literal(`queued`),W.Literal(`running`),W.Literal(`completed`),W.Literal(`failed`),W.Literal(`incomplete`)]),$b=[W.Object({type:W.Literal(`planning:map-reduce:atoms`),graphId:Wb,atomCount:Kb,edgeCount:Kb,atoms:W.Array(Jb,{maxItems:Vb}),edges:W.Array(Yb,{maxItems:Hb})}),W.Object({type:W.Literal(`planning:map-reduce:atom:status`),atomId:Wb,status:Xb,reason:W.Optional(Wb)}),W.Object({type:W.Literal(`planning:map-reduce:reduce-tree`),graphId:Wb,rootNodeId:W.Optional(Wb),maxDepth:Kb,nodeCount:Kb,nodes:W.Array(Zb,{maxItems:Ub})}),W.Object({type:W.Literal(`planning:map-reduce:reduce:status`),nodeId:Wb,status:Qb,reason:W.Optional(Wb)})],ex=[W.Object({type:W.Literal(`session:start`),sessionId:W.String()}),W.Object({type:W.Literal(`session:end`),sessionId:W.String(),result:Kg}),W.Object({type:W.Literal(`session:profile`),profileName:W.Union([W.String(),W.Null()]),source:W.Union([W.Literal(`local`),W.Literal(`project`),W.Literal(`user-local`),W.Literal(`missing`),W.Literal(`none`),W.Literal(`override`)]),scope:W.Union([W.Literal(`local`),W.Literal(`project`),W.Literal(`user`),W.Null()]),config:W.Union([W.Unknown(),W.Null()])}),W.Object({type:W.Literal(`phase:start`),runId:W.String(),planSet:W.String(),command:W.Union([W.Literal(`compile`),W.Literal(`build`),W.Literal(`continue-repair`)])}),W.Object({type:W.Literal(`phase:end`),runId:W.String(),result:Kg}),W.Object({type:W.Literal(`config:warning`),message:W.String(),source:W.String(),details:W.Optional(W.String())}),W.Object({type:W.Literal(`planning:warning`),planId:W.Optional(W.String()),message:W.String(),source:W.String(),details:W.Optional(W.String())}),W.Object({type:W.Literal(`planning:module:build-config:invalid`),moduleId:W.String(),reason:W.Union([W.Literal(`invalid-json`),W.Literal(`invalid-schema`)]),errors:W.Array(W.String())})],tx={timestamp:W.String(),sessionId:W.Optional(W.String()),runId:W.Optional(W.String())},nx=[W.Object({type:W.Literal(`planning:start`),source:W.String(),label:W.Optional(W.String())}),W.Object({type:W.Literal(`planning:inspection-summary`),summary:ig,artifactPath:W.Optional(W.String())}),W.Object({type:W.Literal(`planning:skip`),reason:W.String()}),W.Object({type:W.Literal(`planning:submission`),planCount:W.Number(),totalBodySize:W.Number(),hasMigrations:W.Boolean()}),W.Object({type:W.Literal(`planning:error`),reason:W.String()}),W.Object({type:W.Literal(`planning:scope-context:failure`),runId:W.Optional(W.String()),failure:cg}),W.Object({...tx,type:W.Literal(`planning:decomposition:start`),...vh},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:unit:queued`),...Sh},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:unit:running`),...Ch},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:unit:progress`),...wh},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:unit:completed`),...Th},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:unit:skipped`),...Eh},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:unit:failed`),...Dh},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:schedule`),...Oh},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:budget`),...Ah},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:compact-handoff`),...jh},{additionalProperties:!1}),W.Object({...tx,type:W.Literal(`planning:decomposition:synthesis:complete`),...Mh},{additionalProperties:!1}),W.Object({type:W.Literal(`planning:clarification`),questions:W.Array(qg)}),W.Object({type:W.Literal(`planning:clarification:answer`),answers:W.Record(W.String(),W.String())}),W.Object({type:W.Literal(`planning:progress`),message:W.String()}),W.Object({type:W.Literal(`planning:continuation`),attempt:W.Number(),maxContinuations:W.Number(),reason:W.Optional(W.Union([W.Literal(`max_turns`),W.Literal(`dropped_submission`),W.Literal(`compact_inspection`)]))}),W.Object({type:W.Literal(`planning:pipeline`),compile:W.Array(W.String()),defaultBuild:W.Array(Mg),defaultReview:Vg,rationale:W.String()}),W.Object({type:W.Literal(`planning:complete`),plans:W.Array($g),planConfigs:W.Optional(W.Array(W.Object({id:W.String(),build:W.Optional(W.Array(Mg)),review:W.Optional(Vg),testOwnership:W.Optional(gg)})))}),W.Object({type:W.Literal(`planning:review:start`)}),W.Object({type:W.Literal(`planning:review:complete`),issues:W.Array(Zg)}),W.Object({type:W.Literal(`planning:evaluate:start`)}),W.Object({type:W.Literal(`planning:evaluate:continuation`),attempt:W.Number(),maxContinuations:W.Number()}),W.Object({type:W.Literal(`planning:evaluate:complete`),accepted:W.Number(),rejected:W.Number(),verdicts:W.Optional(W.Array(W.Object({file:W.String(),action:W.Union([W.Literal(`accept`),W.Literal(`reject`),W.Literal(`review`)]),reason:W.String(),hunk:W.Optional(W.Integer({minimum:1}))})))})],rx=[W.Object({type:W.Literal(`stack:layer:recorded`),prdId:W.String(),stackId:W.String(),parentPrdId:W.Optional(W.String()),provider:bg,branch:W.String(),baseBranch:W.Optional(W.String()),artifact:W.Optional(Tg),landingAction:W.Optional(Cg),status:wg}),W.Object({type:W.Literal(`stack:provider:command`),provider:bg,command:W.String(),args:W.Optional(W.Array(W.String())),exitCode:W.Union([W.Integer(),W.Null()]),branch:W.Optional(W.String())}),W.Object({type:W.Literal(`stack:landing:update`),prdId:W.String(),stackId:W.String(),action:Cg,branch:W.String(),status:Eg,prUrl:W.Optional(W.String()),reason:W.Optional(W.String()),originalBaseBranch:W.Optional(W.String()),effectiveBaseBranch:W.Optional(W.String()),baseRepairReason:W.Optional(W.Literal(`parent-artifact-already-integrated`))}),W.Object({type:W.Literal(`stack:landing:conflict:detected`),prdId:W.String(),stackId:W.String(),provider:bg,branch:W.String(),operation:xg,conflictKind:Sg,conflictedFiles:W.Array(W.String())}),W.Object({type:W.Literal(`stack:landing:conflict:recovery:start`),prdId:W.String(),stackId:W.String(),provider:bg,branch:W.String(),attempt:W.Integer({minimum:1}),maxAttempts:W.Integer({minimum:1})}),W.Object({type:W.Literal(`stack:landing:conflict:recovery:complete`),prdId:W.String(),stackId:W.String(),provider:bg,branch:W.String(),attempts:W.Integer({minimum:1})}),W.Object({type:W.Literal(`stack:landing:conflict:recovery:failed`),prdId:W.String(),stackId:W.String(),provider:bg,branch:W.String(),attempts:W.Integer({minimum:0}),reason:W.String(),abortAttempted:W.Boolean(),abortSucceeded:W.Boolean()}),W.Object({type:W.Literal(`stack:sync:start`),syncId:W.String(),trigger:Gv,dryRun:W.Boolean()}),W.Object({type:W.Literal(`stack:sync:complete`),syncId:W.String(),trigger:Gv,dryRun:W.Boolean(),restackCandidates:W.Array(W.String()),excludedCandidates:W.Array(W.String()),localTrunkSha:W.Optional(W.String()),originTrunkSha:W.Optional(W.String()),fastForward:W.Optional(W.Boolean()),reason:W.Optional(W.String())}),W.Object({type:W.Literal(`stack:sync:failed`),syncId:W.String(),trigger:Gv,dryRun:W.Boolean(),outcome:W.Union([W.Literal(`failed`),W.Literal(`conflict`)]),reason:W.String(),error:W.Optional(W.String())}),W.Object({type:W.Literal(`stack:sync:deferred`),syncId:W.String(),trigger:Gv,reason:W.String(),excludedCandidates:W.Array(W.String())}),W.Object({type:W.Literal(`stack:sync:skipped`),syncId:W.String(),trigger:Gv,dryRun:W.Boolean(),reason:W.String(),restackCandidates:W.Array(W.String()),excludedCandidates:W.Array(W.String())}),W.Object({type:W.Literal(`base-sync:start`),remote:W.String(),baseBranch:W.String(),featureBranch:W.String(),maxAttempts:W.Integer({minimum:1})}),W.Object({type:W.Literal(`base-sync:conflict:attempt`),remote:W.String(),baseBranch:W.String(),featureBranch:W.String(),attempt:W.Integer({minimum:1}),maxAttempts:W.Integer({minimum:1}),conflictedFiles:W.Array(W.String())}),W.Object({type:W.Literal(`base-sync:resolver:start`),remote:W.String(),baseBranch:W.String(),featureBranch:W.String(),attempt:W.Integer({minimum:1}),maxAttempts:W.Integer({minimum:1})}),W.Object({type:W.Literal(`base-sync:resolver:complete`),remote:W.String(),baseBranch:W.String(),featureBranch:W.String(),attempt:W.Integer({minimum:1}),maxAttempts:W.Integer({minimum:1}),resolved:W.Boolean(),remainingConflicts:W.Integer({minimum:0})}),W.Object({type:W.Literal(`base-sync:rebase:continue`),remote:W.String(),baseBranch:W.String(),featureBranch:W.String(),attempt:W.Integer({minimum:1}),maxAttempts:W.Integer({minimum:1})}),W.Object({type:W.Literal(`base-sync:success`),remote:W.String(),baseBranch:W.String(),featureBranch:W.String(),baseSha:W.String(),featureSha:W.String(),rebased:W.Boolean()}),W.Object({type:W.Literal(`base-sync:budget:exhausted`),remote:W.String(),baseBranch:W.String(),featureBranch:W.String(),attempts:W.Integer({minimum:0}),maxAttempts:W.Integer({minimum:1}),conflictedFiles:W.Array(W.String())})],ix=[W.Object({type:W.Literal(`validation:start`),commands:W.Array(W.String())}),W.Object({type:W.Literal(`validation:command:start`),command:W.String()}),W.Object({type:W.Literal(`validation:command:complete`),command:W.String(),exitCode:W.Number(),output:W.String()}),W.Object({type:W.Literal(`validation:command:timeout`),command:W.String(),timeoutMs:W.Number(),pid:W.Number()}),W.Object({type:W.Literal(`validation:complete`),passed:W.Boolean()}),W.Object({type:W.Literal(`validation:fix:start`),attempt:W.Number(),maxAttempts:W.Number()}),W.Object({type:W.Literal(`validation:fix:complete`),attempt:W.Number()}),W.Object({type:W.Literal(`prd_validation:start`)}),W.Object({type:W.Literal(`prd_validation:complete`),passed:W.Boolean(),gaps:W.Array(Ug),completionPercent:W.Optional(W.Number())}),W.Object({type:W.Literal(`gap_close:start`),gapCount:W.Optional(W.Number()),completionPercent:W.Optional(W.Number())}),W.Object({type:W.Literal(`gap_close:plan_ready`),planBody:W.String(),gaps:W.Array(Ug)}),W.Object({type:W.Literal(`gap_close:complete`),passed:W.Boolean()}),W.Object({type:W.Literal(`acceptance_validation:complete`),passed:W.Boolean(),verdicts:W.Array(Wg,{minItems:1}),waivers:W.Optional(W.Array(W.String())),acceptanceConflicts:W.Optional(W.Array(Gg)),source:W.String({minLength:1})}),W.Object({type:W.Literal(`reconciliation:start`)}),W.Object({type:W.Literal(`reconciliation:complete`),report:c_}),W.Object({type:W.Literal(`cleanup:start`),planSet:W.String()}),W.Object({type:W.Literal(`cleanup:complete`),planSet:W.String()}),W.Object({type:W.Literal(`approval:needed`),planId:W.Optional(W.String()),action:W.String(),details:W.String()}),W.Object({type:W.Literal(`approval:response`),approved:W.Boolean()}),W.Object({type:W.Literal(`enqueue:start`),source:W.String()}),W.Object({type:W.Literal(`enqueue:complete`),id:W.String(),filePath:W.String(),title:W.String(),planSet:W.String()}),W.Object({type:W.Literal(`enqueue:failed`),error:W.String()}),W.Object({type:W.Literal(`enqueue:commit-failed`),error:W.String()}),W.Object({type:W.Literal(`recovery:start`),prdId:W.String(),setName:W.String()}),W.Object({type:W.Literal(`recovery:summary`),prdId:W.String(),summary:v_}),W.Object({type:W.Literal(`recovery:complete`),prdId:W.String(),verdict:Ag,sidecarMdPath:W.Optional(W.String()),sidecarJsonPath:W.Optional(W.String())}),W.Object({type:W.Literal(`recovery:error`),prdId:W.String(),error:W.String(),rawOutput:W.Optional(W.String())}),W.Object({type:W.Literal(`recovery:auto-resume:evaluate`),prdId:W.String(),setName:W.String(),enabled:W.Boolean(),attempt:W.Integer({minimum:0}),maxAttempts:W.Integer({minimum:0,maximum:3})}),W.Object({type:W.Literal(`recovery:auto-resume:queued`),prdId:W.String(),setName:W.String(),action:W.Literal(`continue-repair`),attempt:W.Integer({minimum:1}),maxAttempts:W.Integer({minimum:1,maximum:3})}),W.Object({type:W.Literal(`recovery:auto-resume:stopped`),prdId:W.String(),setName:W.String(),reason:W.Union([W.Literal(`disabled`),W.Literal(`attempt-budget-exhausted`),W.Literal(`not-continue-repair`),W.Literal(`not-high-confidence`),W.Literal(`not-eligible`),W.Literal(`manual-confirmation-required`),W.Literal(`partial-sidecar`),W.Literal(`malformed-sidecar`),W.Literal(`missing-sidecar`),W.Literal(`ineligible-artifacts`),W.Literal(`dirty-worktree`),W.Literal(`conflicting-worktree`),W.Literal(`queue-preflight-blocked`),W.Literal(`conflicting-applied-marker`),W.Literal(`active-gate-or-hold`),W.Literal(`repeated-failure-signature`),W.Literal(`error`)]),attempt:W.Integer({minimum:0}),maxAttempts:W.Integer({minimum:0,maximum:3}),message:W.Optional(W.String())}),W.Object({type:W.Literal(`recovery:apply:start`),prdId:W.String()}),W.Object({type:W.Literal(`recovery:apply:complete`),prdId:W.String(),verdict:W.Union([W.Literal(`retry`),W.Literal(`continue-repair`),W.Literal(`abandon`),W.Literal(`manual`)]),noAction:W.Boolean()}),W.Object({type:W.Literal(`recovery:apply:error`),prdId:W.String(),message:W.String()})],ax=[...ex,...zb,...nx,...$b,...V_,...B_,...ix,...U_,...F_,W.Object({type:W.Literal(`plan:build:decision`),planId:W.String(),decision:N_}),M_,...rx,...H_],ox=W.Union([...ax]),sx=W.Intersect([z_,ox]),cx=W.Object({type:W.Literal(`daemon:heartbeat`),timestamp:W.String(),uptime:W.Number(),queueDepth:W.Number(),runningBuilds:W.Number(),autoBuild:W.Object({enabled:W.Boolean(),paused:W.Boolean(),...A_}),subscribers:W.Number()}),lx=W.Object({id:W.Number(),event:sx}),ux=W.Object({id:W.String(),sessionId:W.Optional(W.String()),planSet:W.String(),command:W.String(),status:W.String(),startedAt:W.String(),completedAt:W.Optional(W.String()),cwd:W.String(),pid:W.Optional(W.Number())}),dx=W.Object({id:W.String(),title:W.String(),status:W.String(),priority:W.Optional(W.Number()),created:W.Optional(W.String()),dependsOn:W.Optional(W.Array(W.String())),dispatchFailure:W.Optional(W.Object({reason:W.String(),stage:W.Union([W.Literal(`stacking-validation`),W.Literal(`policy-gate`),W.Literal(`profile-routing`),W.Literal(`dispatch`)]),timestamp:W.String()})),recoveryVerdict:W.Optional(W.Object({verdict:W.Union([W.Literal(`retry`),W.Literal(`continue-repair`),W.Literal(`abandon`),W.Literal(`manual`)]),confidence:W.Union([W.Literal(`low`),W.Literal(`medium`),W.Literal(`high`)])})),hold:W.Optional(x_),capabilities:b_,recoveryApplied:W.Optional(W.Union([W.Object({action:W.Union([W.Literal(`retry`),W.Literal(`continue-repair`),W.Literal(`abandon`)]),appliedAt:W.String(),commitSha:W.Optional(W.String())}),W.Object({action:W.Literal(`accepted-success`),acceptedAt:W.String(),reasonCategory:W.Union([W.Literal(`bad_acceptance_criterion`),W.Literal(`manual_verification_passed`),W.Literal(`external_or_inconclusive_criterion_waived`),W.Literal(`other`)]),reason:W.String(),cleanup:W.Object({status:W.Union([W.Literal(`committed`),W.Literal(`noop`)]),commitSha:W.Optional(W.String())}),landing:W.Object({action:W.Union([W.Literal(`pr`),W.Literal(`merge`),W.Literal(`leave`)]),status:W.Union([W.Literal(`complete`),W.Literal(`skipped`),W.Literal(`failed`)]),prUrl:W.Optional(W.String()),mergeCommitSha:W.Optional(W.String()),branch:W.Optional(W.String()),reason:W.Optional(W.String()),autoMerge:W.Optional(W.Union([W.Object({status:W.Literal(`complete`)}),W.Object({status:W.Literal(`skipped`),reason:W.String()}),W.Object({status:W.Literal(`failed`),reason:W.String()})]))}),dependents:W.Object({unblocked:W.Array(W.String()),remainedBlocked:W.Array(W.String()),notFound:W.Array(W.String())})})]))}),fx=W.Object({planCount:W.Union([W.Number(),W.Null()]),baseProfile:W.Union([W.String(),W.Null()])}),px=W.Object({enabled:W.Boolean(),watcher:W.Object({running:W.Boolean(),pid:W.Union([W.Number(),W.Null()]),sessionId:W.Union([W.String(),W.Null()])}),...A_});W.Object({cursor:W.Number(),liveness:cx,recentActivity:W.Array(lx),runs:W.Array(ux),queue:W.Array(dx),sessionMetadata:W.Record(W.String(),fx),autoBuild:px,stackLayers:W.Array(Og),failedEnqueues:W.Array(w_),stackSyncStatus:W.Optional(W.Object({last:W.Optional(W.Object({id:W.String(),trigger:W.Optional(W.Union([W.Literal(`manual`),W.Literal(`after-build`),W.Literal(`scheduled`),W.Literal(`retry-deferred`)])),activeBuildPolicy:W.Optional(W.Union([W.Literal(`skip`),W.Literal(`defer`)])),startedAt:W.String(),completedAt:W.Optional(W.String()),outcome:W.Union([W.Literal(`skipped`),W.Literal(`complete`),W.Literal(`failed`),W.Literal(`conflict`),W.Literal(`deferred`)]),reason:W.Optional(W.String()),error:W.Optional(W.String()),dryRun:W.Boolean(),localTrunkSha:W.Optional(W.String()),originTrunkSha:W.Optional(W.String()),fastForward:W.Optional(W.Boolean()),restackCandidates:W.Array(W.String()),activeBuildSkips:W.Optional(W.Array(W.Object({branch:W.String(),worktree:W.Optional(W.String()),reason:W.String()}))),providerCommands:W.Optional(W.Array(W.Object({command:W.String(),args:W.Array(W.String()),dryRun:W.Boolean(),ran:W.Boolean(),stdout:W.Optional(W.String()),stderr:W.Optional(W.String()),exitCode:W.Optional(W.Number())})))})),current:W.Optional(W.Object({id:W.String(),trigger:W.Optional(W.Union([W.Literal(`manual`),W.Literal(`after-build`),W.Literal(`scheduled`),W.Literal(`retry-deferred`)])),activeBuildPolicy:W.Optional(W.Union([W.Literal(`skip`),W.Literal(`defer`)])),startedAt:W.String(),completedAt:W.Optional(W.String()),outcome:W.Optional(W.Union([W.Literal(`skipped`),W.Literal(`complete`),W.Literal(`failed`),W.Literal(`conflict`),W.Literal(`deferred`)])),reason:W.Optional(W.String()),error:W.Optional(W.String()),dryRun:W.Boolean(),localTrunkSha:W.Optional(W.String()),originTrunkSha:W.Optional(W.String()),fastForward:W.Optional(W.Boolean()),restackCandidates:W.Array(W.String()),activeBuildSkips:W.Optional(W.Array(W.Object({branch:W.String(),worktree:W.Optional(W.String()),reason:W.String()}))),providerCommands:W.Optional(W.Array(W.Object({command:W.String(),args:W.Array(W.String()),dryRun:W.Boolean(),ran:W.Boolean(),stdout:W.Optional(W.String()),stderr:W.Optional(W.String()),exitCode:W.Optional(W.Number())})))}))}))}),W.Object({cursor:W.Number(),status:W.Union([W.Literal(`pending`),W.Literal(`running`),W.Literal(`completed`),W.Literal(`failed`)]),events:W.Array(W.Object({id:W.Number(),data:W.String()}))});var mx=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),hx=function(e){return`/`+e},gx={},_x=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=hx(t,n),t=s(t),t in gx)return;gx[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:mx,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},vx=W.Object({description:W.Optional(W.String()),whenToUse:W.Optional(W.Array(W.String())),tags:W.Optional(W.Array(W.String()))},{additionalProperties:!0}),yx=W.Object({name:W.String(),harness:W.Optional(W.Union([W.Literal(`claude-sdk`),W.Literal(`pi`)])),path:W.String(),scope:W.Union([W.Literal(`local`),W.Literal(`project`),W.Literal(`user`)]),shadowedBy:W.Optional(W.Union([W.Literal(`local`),W.Literal(`project`)])),metadata:W.Optional(vx)},{additionalProperties:!0}),bx=W.Union([W.Literal(`local`),W.Literal(`project`),W.Literal(`user-local`),W.Literal(`missing`),W.Literal(`none`)]);W.Object({profiles:W.Array(yx),active:W.Union([W.String(),W.Null()]),source:bx},{additionalProperties:!0});function xx(e){let t=[];for(let n of e)t.includes(n)||t.push(n);return t}function Sx(e,t){if(!(t===void 0&&e===void 0))return xx([...e??[],...t??[]])}function Cx(e,t){let n=Sx(e.dependsOn,t);return n===void 0?e:{...e,dependsOn:n}}function wx(e,t){if(t===void 0)return e;let n=xx(t);if(n.length===0){let{dependsOn:t,...n}=e;return n}return{...e,dependsOn:n}}function Tx(e){let{recoveryVerdict:t,recoveryApplied:n,dispatchFailure:r,...i}=e;return i}function Ex(e){return e===`failed`||e===`skipped`}function Dx(e,t){if(e.dependsOn===void 0&&e.status===t)return e;let{dependsOn:n,...r}=e;return{...r,status:t}}function Ox(e,t){if(!t.queue.some(t=>t.id===e.id))return{queue:[...t.queue,{id:e.id,title:e.title,status:`pending`}]}}function kx(e,t){let n=t.queue.findIndex(t=>t.id===e.prdId);if(n===-1){let n=wx({id:e.prdId,title:e.title,status:`pending`},e.dependsOn);return{queue:[...t.queue,n]}}let r=Tx(t.queue[n]),i=r.status===`running`?r.status:`pending`,a=wx({...r,title:e.title,status:i},e.dependsOn),o=[...t.queue];return o[n]=a,{queue:o}}function Ax(e,t){let n=t.queue.findIndex(t=>t.id===e.prdId);if(n===-1)return;let r=t.queue[n];if(Ex(r.status))return;let i=Cx(r,e.blockedBy);if(i===r)return;let a=[...t.queue];return a[n]=i,{queue:a}}function jx(e,t){let n={reason:e.reason,stage:e.stage,timestamp:e.timestamp},r=t.queue.findIndex(t=>t.id===e.prdId);if(r===-1)return{queue:[...t.queue,{id:e.prdId,title:e.title,status:`failed`,dispatchFailure:n}]};let i=[...t.queue];return i[r]={...Dx(i[r],`failed`),title:e.title,dispatchFailure:n},{queue:i}}function Mx(e,t){let n=t.queue.findIndex(t=>t.id===e.prdId);if(n===-1)return;let r=t.queue[n];if(Ex(r.status))return;let i=[...t.queue];if(e.currentDependsOn.length===0){let{dependsOn:e,...t}=r;i[n]=r.status===`waiting`?{...t,status:`pending`}:t}else i[n]={...r,dependsOn:xx(e.currentDependsOn)};return{queue:i}}var Nx={"session:start":{scope:`daemon`,persist:!0,summary:`Session started`,project:()=>void 0},"session:end":{scope:`daemon`,persist:!0,summary:e=>`Session ended: ${e.result.status}`,project:()=>void 0},"session:profile":{scope:`session`,persist:!1},"phase:start":{scope:`session`,persist:!1,summary:e=>`Phase: ${e.command} starting`},"phase:end":{scope:`session`,persist:!1,summary:e=>`Phase complete: ${e.result.status}`},"config:warning":{scope:`session`,persist:!1,summary:e=>`Config warning: ${e.message}`},"planning:warning":{scope:`session`,persist:!1,summary:e=>e.planId?`Plan warning (${e.planId}): ${e.message}`:`Plan warning: ${e.message}`},"planning:module:build-config:invalid":{scope:`session`,persist:!1,summary:e=>`Module ${e.moduleId} emitted invalid <build-config> (${e.reason}): ${e.errors.join(`; `)}`},"extension:event-handler:failed":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} event hook failed (${e.pattern} on ${e.triggeringEventType}): ${e.message}`},"extension:event-handler:timeout":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} event hook timed out after ${e.timeoutMs}ms (${e.pattern} on ${e.triggeringEventType})`},"extension:action:start":{scope:`daemon`,persist:!0,summary:e=>`Extension action ${e.actionId} started for ${e.extensionName}`},"extension:action:complete":{scope:`daemon`,persist:!0,summary:e=>`Extension action ${e.actionId} completed for ${e.extensionName}`},"extension:action:failed":{scope:`daemon`,persist:!0,summary:e=>`Extension action ${e.actionId} failed for ${e.extensionName}: ${e.errorCode}`},"extension:action:timeout":{scope:`daemon`,persist:!0,summary:e=>`Extension action ${e.actionId} timed out for ${e.extensionName} after ${e.timeoutMs}ms`},"extension:agent-task:start":{scope:`daemon`,persist:!0,summary:e=>`Extension agent task ${e.taskId} started (${e.taskKind})`},"extension:agent-task:progress":{scope:`daemon`,persist:!0,summary:e=>`Extension agent task ${e.taskId} progress: ${e.message}`},"extension:agent-task:complete":{scope:`daemon`,persist:!0,summary:e=>`Extension agent task ${e.taskId} completed (${e.taskKind})`},"extension:agent-task:failed":{scope:`daemon`,persist:!0,summary:e=>`Extension agent task ${e.taskId} failed (${e.errorCode}): ${e.message}`},"extension:agent-task:cancelled":{scope:`daemon`,persist:!0,summary:e=>`Extension agent task ${e.taskId} cancelled${e.reason?`: ${e.reason}`:``}`},"extension:agent-context:applied":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} appended ${e.promptCharCount} chars to ${e.role}${e.tier?` (${e.tier})`:``}`},"extension:agent-context:failed":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} agent-context hook failed for ${e.role}: ${e.message}`},"extension:agent-context:timeout":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} agent-context hook timed out after ${e.timeoutMs}ms for ${e.role}`},"extension:agent-context:unsupported":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} returned unsupported fields for ${e.role}: ${e.fields.join(`, `)} (deferred to EXTEND_08B)`},"extension:agent-tools:applied":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} applied tools for ${e.role}: ${e.toolCount} accepted, ${e.excludedToolCount} excluded`},"queue:profile:selected":{scope:`session`,persist:!1,summary:e=>`Queue routed ${e.prdId} to profile "${e.profile}" via ${e.extensionName}:${e.routerName}${e.reason?` (${e.reason})`:``}`},"queue:profile:router-failed":{scope:`session`,persist:!1,summary:e=>`Profile router "${e.routerName}" (${e.extensionName}) failed for ${e.prdId}: ${e.message}`},"queue:profile:router-timeout":{scope:`session`,persist:!1,summary:e=>`Profile router "${e.routerName}" (${e.extensionName}) timed out after ${e.timeoutMs}ms for ${e.prdId}`},"queue:profile:invalid-selection":{scope:`session`,persist:!1,summary:e=>`Profile router "${e.routerName}" (${e.extensionName}) returned unknown profile "${e.requestedProfile}" for ${e.prdId}: ${e.message}`},"extension:policy:decision":{scope:`session`,persist:!1,summary:e=>`Policy gate ${e.method} (${e.extensionName}) returned ${e.decision}${e.reason?`: ${e.reason}`:``}`},"extension:policy:failed":{scope:`session`,persist:!1,summary:e=>`Policy gate ${e.method} (${e.extensionName}) failed under ${e.failurePolicy}: ${e.message}`},"extension:policy:timeout":{scope:`session`,persist:!1,summary:e=>`Policy gate ${e.method} (${e.extensionName}) timed out after ${e.timeoutMs}ms under ${e.failurePolicy}`},"extension:input-source:fetched":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} input source "${e.adapterName}" fetched "${e.sourceId}" (${e.contentLength} chars)`},"extension:input-source:failed":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} input source "${e.adapterName}" failed for "${e.sourceId}" (${e.reason}): ${e.message}`},"extension:prd-enricher:applied":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} PRD enricher "${e.enricherName}" applied to "${e.sourceId}" (changed: ${e.changed})`},"extension:prd-enricher:failed":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} PRD enricher "${e.enricherName}" failed for "${e.sourceId}" (${e.reason}): ${e.message}`},"extension:reviewer-perspective:applied":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} reviewer perspective "${e.perspectiveKey}" applied${e.planId?` (plan: ${e.planId})`:``}`},"extension:reviewer-perspective:skipped":{scope:`session`,persist:!1,summary:e=>`${e.extensionName?`Extension ${e.extensionName} reviewer perspective`:`Reviewer perspective`} "${e.perspectiveKey}" skipped (${e.reason})${e.message?`: ${e.message}`:``}`},"extension:validation-provider:start":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} validation provider "${e.providerName}" started (${e.kind}${e.commandCount===void 0?``:`, ${e.commandCount} command(s)`})`},"extension:validation-provider:complete":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} validation provider "${e.providerName}" ${e.status}${e.message?`: ${e.message}`:``}`},"extension:validation-provider:error":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} validation provider "${e.providerName}" failed${e.command?` (command: ${e.command})`:``}: ${e.message}`},"extension:validation-provider:timeout":{scope:`session`,persist:!1,summary:e=>`Extension ${e.extensionName} validation provider "${e.providerName}" timed out after ${e.timeoutMs}ms${e.command?` (command: ${e.command})`:``}`},"planning:start":{scope:`session`,persist:!1,summary:e=>`Planning from ${e.label??e.source}`},"planning:inspection-summary":{scope:`session`,persist:!0,summary:e=>`Planner compact inspection summary: ${e.summary.relevantFiles.length} file(s), ${e.summary.observedFacts.length} fact(s), ${e.summary.importantFindings.length} finding(s)`},"planning:skip":{scope:`session`,persist:!1,summary:e=>`Planning skipped: ${e.reason}`},"planning:submission":{scope:`session`,persist:!1,summary:e=>`Planning submitted ${e.planCount} plan(s)`},"planning:error":{scope:`session`,persist:!1,summary:e=>`Planning error: ${e.reason}`},"planning:scope-context:failure":{scope:`session`,persist:!0,summary:e=>`Compile scope/context failure: ${e.failure.failureKind} from ${e.failure.source}; recovery ${e.failure.recovery.action}`},"planning:decomposition:start":{scope:`session`,persist:!0,summary:e=>`Context-managed planning: ${e.unitCount} unit(s), ${e.edgeCount} edge(s), parallelism ${e.limits.parallelism}`},"planning:decomposition:unit:queued":{scope:`session`,persist:!0,summary:e=>`Planning unit queued: ${e.unit.unitId}${e.unit.subsystemHints.length?` (${e.unit.subsystemHints.join(`, `)})`:``}`},"planning:decomposition:unit:running":{scope:`session`,persist:!0,summary:e=>`Planning unit running: ${e.unitId}`},"planning:decomposition:unit:progress":{scope:`session`,persist:!1,summary:e=>`Planning unit ${e.unitId}: ${e.message}`},"planning:decomposition:unit:completed":{scope:`session`,persist:!0,summary:e=>`Planning unit completed: ${e.unit.unitId} (${e.unit.coverage.coveredCriteria.length} criteria)`},"planning:decomposition:unit:skipped":{scope:`session`,persist:!0,summary:e=>`Planning unit skipped: ${e.unitId} \u2014 ${e.reason}`},"planning:decomposition:unit:failed":{scope:`session`,persist:!0,summary:e=>`Planning unit failed: ${e.unitId} \u2014 ${e.reason||e.evidence.observed.triggeredLimitKeys.join(`, `)}`},"planning:decomposition:schedule":{scope:`session`,persist:!0,summary:e=>`Planning schedule: running [${e.decision.runningUnitIds.join(`, `)}]; waiting ${e.decision.waitingUnitIds.length}; selected [${e.decision.selectedBatchUnitIds.join(`, `)}]`},"planning:decomposition:budget":{scope:`session`,persist:!0,summary:e=>`Planning budget: ${e.unitId} ${e.observed?.triggeredLimitKeys.length?`triggered ${e.observed.triggeredLimitKeys.join(`, `)}`:`within limits`}`},"planning:decomposition:compact-handoff":{scope:`session`,persist:!0,summary:e=>`Planning unit handoff: ${e.unitId??`unknown`} \u2192 ${e.artifactPath??`artifact`} (${e.byteLength} B)`},"planning:decomposition:synthesis:complete":{scope:`session`,persist:!0,summary:e=>`Context-managed synthesis complete: ${e.artifactPaths.length} artifact(s), ${e.completedUnitCount}/${e.failedUnitCount}/${e.skippedUnitCount} units`},"planning:map-reduce:atoms":{scope:`session`,persist:!0,summary:e=>`Map plan: ${e.atomCount} atom(s), ${e.edgeCount} edge(s)`},"planning:map-reduce:atom:status":{scope:`session`,persist:!0,summary:e=>`Atom ${e.atomId}: ${e.status}${e.reason?` (${e.reason})`:``}`},"planning:map-reduce:reduce-tree":{scope:`session`,persist:!0,summary:e=>`Reduce tree: ${e.nodeCount} node(s), max level ${e.maxDepth+1}`},"planning:map-reduce:reduce:status":{scope:`session`,persist:!0,summary:e=>`Reduce ${e.nodeId}: ${e.status}${e.reason?` (${e.reason})`:``}`},"planning:clarification":{scope:`session`,persist:!1,summary:e=>`Planning clarification needed (${e.questions.length} question(s))`},"planning:clarification:answer":{scope:`session`,persist:!1,summary:`Clarification answered, resuming planning`},"planning:progress":{scope:`session`,persist:!1},"planning:continuation":{scope:`session`,persist:!1,summary:e=>`Planning continuation attempt ${e.attempt}/${e.maxContinuations}${e.reason?` (${e.reason})`:``}`},"planning:pipeline":{scope:`session`,persist:!1,summary:e=>`Pipeline: ${e.compile.join(` → `)}`},"planning:complete":{scope:`session`,persist:!1,summary:e=>e.plans.length===0?`Planning complete: nothing to plan`:`Planning complete: ${e.plans.length} plan(s) created`},"planning:review:start":{scope:`session`,persist:!1,summary:`Reviewing plan files`},"planning:review:complete":{scope:`session`,persist:!1,summary:e=>e.issues.length===0?`Plan review complete: no issues`:`Plan review: ${e.issues.length} issue(s)`},"planning:evaluate:start":{scope:`session`,persist:!1,summary:`Evaluating plan review fixes`},"planning:evaluate:continuation":{scope:`session`,persist:!1,summary:e=>`Plan evaluation continuation attempt ${e.attempt}/${e.maxContinuations}`},"planning:evaluate:complete":{scope:`session`,persist:!1,summary:e=>`Plan evaluation: ${e.accepted} accepted, ${e.rejected} rejected`},"plan:build:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: starting`},"plan:build:implement:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: implementing`},"plan:build:implement:progress":{scope:`session`,persist:!1},"plan:build:implement:continuation":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: implementation continuation attempt ${e.attempt}/${e.maxContinuations}`},"plan:build:implement:complete":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: implementation complete`},"plan:build:files_changed":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: ${e.files.length} file(s) changed`},"plan:build:review:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: reviewing`},"plan:build:review:complete":{scope:`session`,persist:!1,summary:e=>e.issues.length===0?`Plan ${e.planId}: review complete, no issues`:`Plan ${e.planId}: review complete, ${e.issues.length} issue(s)`},"plan:build:review:parallel:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: parallel review (${e.perspectives.join(`, `)})`},"plan:build:review:parallel:perspective:start":{scope:`session`,persist:!1},"plan:build:review:parallel:perspective:complete":{scope:`session`,persist:!1,summary:e=>e.issues.length>0?`Plan ${e.planId}: ${e.perspective} review, ${e.issues.length} issue(s)`:void 0},"plan:build:review:parallel:perspective:error":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: ${e.perspective} review failed: ${e.error}`},"plan:build:review:fix:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: applying ${e.issueCount} fix(es)`},"plan:build:review:fix:complete":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: fixes applied`},"plan:build:review:fix:continuation":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: review-fixer continuation attempt ${e.attempt}/${e.maxContinuations}`},"plan:build:evaluate:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: evaluating fixes`},"plan:build:evaluate:continuation":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: evaluation continuation attempt ${e.attempt}/${e.maxContinuations}`},"plan:build:evaluate:complete":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: evaluation complete, ${e.accepted} accepted, ${e.rejected} rejected`},"plan:build:doc-author:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: authoring docs`},"plan:build:doc-author:complete":{scope:`session`,persist:!1,summary:e=>e.docsAuthored>0?`Plan ${e.planId}: ${e.docsAuthored} doc(s) authored`:void 0},"plan:build:doc-sync:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: syncing docs`},"plan:build:doc-sync:complete":{scope:`session`,persist:!1,summary:e=>e.docsSynced>0?`Plan ${e.planId}: ${e.docsSynced} doc(s) synced`:void 0},"plan:build:test:ownership:violation":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: ${e.stage} violated test ownership (${e.declaredOwner}): ${e.reason}`},"plan:build:test:write:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: writing tests`},"plan:build:test:write:complete":{scope:`session`,persist:!1,summary:e=>e.testsWritten>0?`Plan ${e.planId}: ${e.testsWritten} test file(s) written`:void 0},"plan:build:test:start":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: running tests`},"plan:build:test:complete":{scope:`session`,persist:!1,summary:e=>{let t=[`${e.passed} passed`];return e.failed>0&&t.push(`${e.failed} failed`),e.testBugsFixed>0&&t.push(`${e.testBugsFixed} test bugs fixed`),`Plan ${e.planId}: tests ${t.join(`, `)}`}},"plan:build:complete":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: complete`},"plan:build:recovery:start":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: same-plan ${e.blockerKind} recovery started (${e.maxAttempts} attempt(s))`},"plan:build:recovery:attempt:start":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: same-plan recovery attempt ${e.attempt}/${e.maxAttempts}`},"plan:build:recovery:attempt:result":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: same-plan recovery attempt ${e.attempt}/${e.maxAttempts} ${e.blockersCleared?`cleared blockers`:`left blockers`}`},"plan:build:recovery:skip":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: same-plan ${e.blockerKind} recovery skipped (${e.reason})`},"plan:build:recovery:exhausted":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: same-plan ${e.blockerKind} recovery exhausted`},"plan:build:failed":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: failed \u2014 ${e.error}`},"plan:build:progress":{scope:`session`,persist:!1},"plan:status:change":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: status \u2192 ${e.status}`,project:()=>void 0},"plan:error:set":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: error set`,project:()=>void 0},"plan:error:clear":{scope:`session`,persist:!0,summary:e=>`Plan ${e.planId}: error cleared`,project:()=>void 0},"schedule:start":{scope:`session`,persist:!1,summary:e=>`Scheduling ${e.planIds.length} plan(s)`},"plan:schedule:ready":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId} ready to schedule: ${e.reason}`},"plan:merge:start":{scope:`session`,persist:!1,summary:e=>`Merging plan ${e.planId}`},"plan:merge:complete":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId} merged`},"plan:build:decision":{scope:`session`,persist:!1,summary:e=>`Plan ${e.planId}: decision (${e.decision.kind})`},"planning:decision":{scope:`session`,persist:!1,summary:e=>e.planId?`Planning decision (${e.decision.kind}) for plan ${e.planId}`:`Planning decision (${e.decision.kind})`},"plan:merge:resolve:start":{scope:`session`,persist:!1,summary:e=>`Resolving merge conflicts for plan ${e.planId}`},"plan:merge:resolve:complete":{scope:`session`,persist:!1,summary:e=>e.resolved?`Merge conflicts resolved for plan ${e.planId}`:`Failed to resolve merge conflicts for plan ${e.planId}`},"landing:start":{scope:`session`,persist:!1,summary:e=>`Landing (${e.action}): starting ${e.featureBranch} \u2192 ${e.baseBranch}`},"landing:complete":{scope:`session`,persist:!1,summary:e=>e.action===`pr`?e.prUrl?`Landing (${e.action}): PR ${e.prUrl}`:`Landing (${e.action}): PR created for ${e.featureBranch}`:e.action===`merge`?`Landing (${e.action}): merged ${e.featureBranch} into ${e.baseBranch}`:e.action===`leave`?`Landing (${e.action}): ${e.featureBranch} left for manual workflow`:`Landing (${e.action}): completed`},"landing:skipped":{scope:`session`,persist:!1,summary:e=>`Landing (${e.action}) skipped: ${e.reason}`},"landing:auto-merge:start":{scope:`session`,persist:!1,summary:e=>`PR auto-merge: enabling for ${e.prUrl}`},"landing:auto-merge:complete":{scope:`session`,persist:!1,summary:e=>`PR auto-merge: enabled for ${e.prUrl}`},"landing:auto-merge:skipped":{scope:`session`,persist:!1,summary:e=>`PR auto-merge skipped: ${e.reason}`},"stack:layer:recorded":{scope:`session`,persist:!0,summary:e=>`Stack layer recorded: ${e.prdId} (${e.status}) on ${e.branch}`,project:(e,t)=>t.stackLayers.find(t=>t.prdId===e.prdId)?{stackLayers:t.stackLayers.map(t=>t.prdId===e.prdId?{...t,stackId:e.stackId,parentPrdId:e.parentPrdId,provider:e.provider,branch:e.branch,baseBranch:e.baseBranch,...e.artifact!==void 0&&{artifact:e.artifact},...e.landingAction!==void 0&&{landingAction:e.landingAction},status:e.status,updatedAt:e.timestamp}:t)}:{stackLayers:[...t.stackLayers,{prdId:e.prdId,stackId:e.stackId,parentPrdId:e.parentPrdId,provider:e.provider,branch:e.branch,baseBranch:e.baseBranch,...e.artifact!==void 0&&{artifact:e.artifact},...e.landingAction!==void 0&&{landingAction:e.landingAction},status:e.status,recordedAt:e.timestamp,updatedAt:e.timestamp}]}},"stack:provider:command":{scope:`session`,persist:!0,summary:e=>{let t=e.args?[e.command,...e.args].join(` `):e.command;return`Stack provider (${e.provider}): ${t} \u2192 exit ${e.exitCode}`}},"stack:landing:update":{scope:`session`,persist:!0,summary:e=>{let t=`Stack landing: ${e.prdId} (${e.action}) ${e.status}`,n=e.baseRepairReason?` (base repaired: ${e.originalBaseBranch??`?`} \u2192 ${e.effectiveBaseBranch??`?`})`:``;return e.prUrl?`${t}${n} \u2014 ${e.prUrl}`:e.reason?`${t}${n} \u2014 ${e.reason}`:`${t}${n}`},project:(e,t)=>{let n=t.stackLayers.find(t=>t.prdId===e.prdId);if(!n)return;let r=n.status;return e.status===`complete`?r=e.action===`merge`?`merged`:`landed`:e.status===`failed`?r=`failed`:e.status===`skipped`&&(r=e.action===`merge`?`merged`:e.action===`leave`?`landed`:`failed`),{stackLayers:t.stackLayers.map(t=>t.prdId===e.prdId?{...t,status:r,landing:{action:e.action,status:e.status,prUrl:e.prUrl,reason:e.reason,originalBaseBranch:e.originalBaseBranch,effectiveBaseBranch:e.effectiveBaseBranch,baseRepairReason:e.baseRepairReason,startedAt:t.landing?.startedAt??e.timestamp,completedAt:e.status===`complete`||e.status===`failed`||e.status===`skipped`?e.timestamp:void 0},updatedAt:e.timestamp}:t)}}},"stack:landing:conflict:detected":{scope:`session`,persist:!0,summary:e=>`Stack landing conflict: ${e.prdId} ${e.operation} (${e.conflictedFiles.length} file(s))`},"stack:landing:conflict:recovery:start":{scope:`session`,persist:!0,summary:e=>`Stack landing recovery attempt ${e.attempt}/${e.maxAttempts}: ${e.prdId}`},"stack:landing:conflict:recovery:complete":{scope:`session`,persist:!0,summary:e=>`Stack landing recovery complete: ${e.prdId} after ${e.attempts} attempt(s)`},"stack:landing:conflict:recovery:failed":{scope:`session`,persist:!0,summary:e=>`Stack landing recovery failed: ${e.prdId} \u2014 ${e.reason}`},"merge:finalize:start":{scope:`session`,persist:!1,summary:e=>`Merging ${e.featureBranch} into ${e.baseBranch}`},"merge:finalize:complete":{scope:`session`,persist:!1,summary:e=>`Merged ${e.featureBranch} into ${e.baseBranch}`},"merge:finalize:skipped":{scope:`session`,persist:!1,summary:e=>`Feature branch merge skipped: ${e.reason}`},"merge:worktree:set":{scope:`session`,persist:!0,project:()=>void 0},"merge:worktree:clear":{scope:`session`,persist:!0,project:()=>void 0},"agent:start":{scope:`session`,persist:!1,summary:e=>e.planId?`Agent ${e.agent} started (plan ${e.planId})`:`Agent ${e.agent} started`},"agent:warning":{scope:`session`,persist:!1,summary:e=>`Agent ${e.agent} warning: ${e.message}`},"agent:stop":{scope:`session`,persist:!1,summary:e=>e.error?`Agent ${e.agent} stopped with error`:`Agent ${e.agent} stopped`},"agent:usage":{scope:`session`,persist:!1},"agent:message":{scope:`session`,persist:!1},"agent:tool_use":{scope:`session`,persist:!1},"agent:tool_result":{scope:`session`,persist:!1},"agent:result":{scope:`session`,persist:!1},"agent:activity":{scope:`session`,persist:!1,summary:e=>`Agent ${e.agent} activity (${e.totals?.filesChanged??0} files, ${e.attribution})`},"agent:retry":{scope:`session`,persist:!1,summary:e=>`Agent ${e.agent} retry attempt ${e.attempt}/${e.maxAttempts} (${e.subtype})`},"validation:start":{scope:`session`,persist:!1,summary:e=>`Running post-merge validation (${e.commands.length} command(s))`},"validation:command:start":{scope:`session`,persist:!1,summary:e=>`Running: ${e.command}`},"validation:command:complete":{scope:`session`,persist:!1,summary:e=>e.exitCode===0?`${e.command} passed`:`${e.command} failed (exit ${e.exitCode})`},"validation:command:timeout":{scope:`session`,persist:!1,summary:e=>`${e.command} timed out after ${Math.round(e.timeoutMs/1e3)}s`},"validation:complete":{scope:`session`,persist:!1,summary:e=>e.passed?`All validation commands passed`:`Validation failed`},"validation:fix:start":{scope:`session`,persist:!1,summary:e=>`Validation fix attempt ${e.attempt}/${e.maxAttempts}`},"validation:fix:complete":{scope:`session`,persist:!1,summary:e=>`Validation fix attempt ${e.attempt} complete`},"prd_validation:start":{scope:`session`,persist:!1,summary:`PRD validation starting`},"prd_validation:complete":{scope:`session`,persist:!1,summary:e=>e.passed?`PRD validation passed`:`PRD validation failed: ${e.gaps.length} gap(s)`},"gap_close:start":{scope:`session`,persist:!1,summary:e=>e.gapCount===void 0?`Closing PRD validation gaps`:`Closing ${e.gapCount} gap(s)`},"gap_close:plan_ready":{scope:`session`,persist:!1},"gap_close:complete":{scope:`session`,persist:!1,summary:e=>e.passed?`Gap closing complete: all gaps resolved`:`Gap closing complete: gaps remain`},"acceptance_validation:complete":{scope:`session`,persist:!1,summary:e=>{let t=e.verdicts.reduce((e,t)=>(e[t.verdict]+=1,e),{pass:0,fail:0,unknown:0}),n=e.acceptanceConflicts?.length??0,r=n>0?` (${n} conflict(s) reported)`:``;if(e.passed)return`Acceptance validation passed: ${e.verdicts.length} criterion/criteria verified${r}`;if(t.fail>0){let e=t.unknown>0?`, ${t.unknown} unknown`:``;return`Acceptance validation failed: ${t.fail} criterion/criteria failed${e}${r}`}let i=t.unknown===e.verdicts.length?`; no criterion was verified`:``;return`Acceptance validation inconclusive: ${t.unknown} criterion/criteria unknown${i}${r}`}},"reconciliation:start":{scope:`session`,persist:!1,summary:`Reconciling worktree state`},"reconciliation:complete":{scope:`session`,persist:!1,summary:e=>{let t=[];return e.report.valid.length>0&&t.push(`${e.report.valid.length} valid`),e.report.missing.length>0&&t.push(`${e.report.missing.length} missing`),e.report.corrupt.length>0&&t.push(`${e.report.corrupt.length} corrupt`),`Reconciliation complete: ${t.join(`, `)}`}},"cleanup:start":{scope:`session`,persist:!1,summary:e=>`Cleaning up plan files for ${e.planSet}`},"cleanup:complete":{scope:`session`,persist:!1,summary:e=>`Plan files removed for ${e.planSet}`},"approval:needed":{scope:`session`,persist:!1,summary:e=>`Approval needed: ${e.action}`},"approval:response":{scope:`session`,persist:!1,summary:e=>e.approved?`Approved`:`Denied`},"enqueue:start":{scope:`daemon`,persist:!0,summary:e=>`Enqueueing from ${e.source}`},"enqueue:complete":{scope:`daemon`,persist:!0,summary:e=>`Enqueued: ${e.title}`,project:Ox},"enqueue:failed":{scope:`daemon`,persist:!0,summary:e=>`Enqueue failed: ${e.error}`},"enqueue:commit-failed":{scope:`daemon`,persist:!0,summary:e=>`Enqueue commit failed: ${e.error}`},"build:terminal-failure":{scope:`session`,persist:!0,summary:e=>`Build terminal failure (${e.failure.scope}): ${e.failure.message}`},"build:resume:start":{scope:`session`,persist:!0,summary:e=>`Resuming compiled build for PRD ${e.prdId} on ${e.featureBranch}`},"build:resume:state":{scope:`session`,persist:!0,summary:e=>`Resume state seeded: ${e.seededMerged.length} merged, ${e.seededPending.length} pending on ${e.featureBranch}`},"build:resume:ineligible":{scope:`session`,persist:!0,summary:e=>`Resume ineligible: ${e.reason}`},"build:resume:artifacts":{scope:`session`,persist:!0,summary:e=>`Recovered ${e.plans.length} compiled plan artifact(s) for PRD ${e.prdId}`},"build:resume:complete":{scope:`session`,persist:!0,summary:e=>`Build resume complete for PRD ${e.prdId}`},"recovery:start":{scope:`session`,persist:!1,summary:e=>`Analysing failed build for PRD ${e.prdId}`},"recovery:summary":{scope:`session`,persist:!1},"recovery:complete":{scope:`session`,persist:!1,summary:e=>`Recovery analysis complete: ${e.verdict.verdict.toUpperCase()}`},"recovery:error":{scope:`session`,persist:!1,summary:e=>`Recovery parse failed: ${e.error}`},"recovery:auto-resume:evaluate":{scope:`daemon`,persist:!0,summary:e=>`Recovery auto-resume policy evaluated for ${e.prdId}: ${e.enabled?`enabled`:`disabled`} (${e.attempt}/${e.maxAttempts})`,project:(e,t)=>t.autoBuild?{autoBuild:{...t.autoBuild,recoveryAutoResume:{enabled:e.enabled,maxAttempts:e.maxAttempts,attempts:e.attempt,lastDecision:`evaluate`,prdId:e.prdId,setName:e.setName}}}:void 0},"recovery:auto-resume:queued":{scope:`daemon`,persist:!0,summary:e=>`Recovery auto-resume queued continue-repair for ${e.prdId} (${e.attempt}/${e.maxAttempts})`,project:(e,t)=>t.autoBuild?{autoBuild:{...t.autoBuild,recoveryAutoResume:{enabled:!0,maxAttempts:e.maxAttempts,attempts:e.attempt,lastDecision:`queued`,prdId:e.prdId,setName:e.setName}}}:void 0},"recovery:auto-resume:stopped":{scope:`daemon`,persist:!0,summary:e=>`Recovery auto-resume stopped for ${e.prdId}: ${e.reason}`,project:(e,t)=>t.autoBuild?{autoBuild:{...t.autoBuild,recoveryAutoResume:{enabled:e.reason!==`disabled`,maxAttempts:e.maxAttempts,attempts:e.attempt,lastDecision:`stopped`,prdId:e.prdId,setName:e.setName,stopReason:e.reason,...e.message===void 0?{}:{message:e.message}}}}:void 0},"recovery:apply:start":{scope:`session`,persist:!1},"recovery:apply:complete":{scope:`session`,persist:!1,summary:e=>e.noAction?`Recovery verdict is manual — no changes made`:`Recovery applied: ${e.verdict.toUpperCase()}`},"recovery:apply:error":{scope:`session`,persist:!1,summary:e=>`Recovery apply failed: ${e.message}`},"daemon:run:upsert":{scope:`daemon`,persist:!0,summary:e=>`Run ${e.run.id}: ${e.run.command} \u2192 ${e.run.status}`,project(e,t){let n=t.runs.findIndex(t=>t.id===e.run.id);if(n!==-1){let r=[...t.runs];return r[n]=e.run,{runs:r}}return{runs:[e.run,...t.runs]}}},"daemon:auto-build:paused":{scope:`daemon`,persist:!0,summary:e=>`Auto-build paused: ${e.reason}`,project(e,t){if(t.autoBuild&&!(!t.autoBuild.enabled&&t.autoBuild.desired!==`enabled`))return{autoBuild:{...t.autoBuild,enabled:!0,desired:`enabled`,mode:`paused`,scheduler:{...t.autoBuild.scheduler??{alive:!1},paused:!0}}}}},"daemon:lifecycle:starting":{scope:`daemon`,persist:!0,summary:e=>`Daemon starting (pid ${e.pid}, port ${e.port})`},"daemon:lifecycle:ready":{scope:`daemon`,persist:!0,summary:e=>`Daemon ready (pid ${e.pid}, port ${e.port})`},"daemon:lifecycle:shutdown:start":{scope:`daemon`,persist:!0,summary:e=>`Daemon shutting down (${e.signal}: ${e.reason})`},"daemon:lifecycle:shutdown:complete":{scope:`daemon`,persist:!0,summary:`Daemon shutdown complete`},"daemon:heartbeat":{scope:`daemon`,persist:!1,project(e,t){let n={at:Date.now(),payload:{uptime:e.uptime,queueDepth:e.queueDepth,runningBuilds:e.runningBuilds,autoBuild:e.autoBuild,subscribers:e.subscribers}};return t.autoBuild?{latestHeartbeat:n,autoBuild:{...t.autoBuild,enabled:e.autoBuild.enabled,...e.autoBuild.desired!==void 0&&{desired:e.autoBuild.desired},...e.autoBuild.mode!==void 0&&{mode:e.autoBuild.mode},...e.autoBuild.lastTransition!==void 0&&{lastTransition:e.autoBuild.lastTransition},...e.autoBuild.reason!==void 0&&{reason:e.autoBuild.reason},...e.autoBuild.recoveryAutoResume!==void 0&&{recoveryAutoResume:e.autoBuild.recoveryAutoResume},...e.autoBuild.scheduler!==void 0&&{scheduler:{...t.autoBuild.scheduler??{},...e.autoBuild.scheduler}}}}:{latestHeartbeat:n}}},"daemon:scheduler:dequeued":{scope:`daemon`,persist:!0,summary:e=>`Dequeued PRD ${e.prdId} (queue depth: ${e.queueDepth})`},"daemon:scheduler:capacity-blocked":{scope:`daemon`,persist:!0,summary:e=>`Scheduler capacity blocked (${e.runningCount}/${e.limit} running)`},"daemon:scheduler:dependency-blocked":{scope:`daemon`,persist:!0,summary:e=>`PRD ${e.prdId} blocked by: ${e.blockedBy.join(`, `)}`,project:Ax},"daemon:scheduler:paused":{scope:`daemon`,persist:!0,summary:()=>`Scheduler paused: new PRD launches suspended`},"daemon:scheduler:resumed":{scope:`daemon`,persist:!0,summary:()=>`Scheduler resumed: PRD launch discovery re-triggered`},"daemon:auto-build:enabled":{scope:`daemon`,persist:!0,summary:`Auto-build enabled`,project(e,t){if(t.autoBuild&&!t.autoBuild.enabled)return{autoBuild:{...t.autoBuild,enabled:!0}}}},"daemon:auto-build:disabled":{scope:`daemon`,persist:!0,summary:`Auto-build disabled`,project(e,t){if(t.autoBuild&&t.autoBuild.enabled)return{autoBuild:{...t.autoBuild,enabled:!1}}}},"daemon:auto-build:resumed":{scope:`daemon`,persist:!0,summary:`Auto-build resumed`,project(e,t){if(t.autoBuild&&!t.autoBuild.enabled)return{autoBuild:{...t.autoBuild,enabled:!0}}}},"daemon:auto-build:triggered":{scope:`daemon`,persist:!0,summary:e=>`Auto-build triggered: ${e.prdsEnqueued} PRD(s) enqueued`},"daemon:auto-build:transition":{scope:`daemon`,persist:!0,summary:e=>`Auto-build ${e.previousMode} \u2192 ${e.nextMode} (${e.desired})${e.reason?`: ${e.reason}`:``}`,project(e,t){if(!t.autoBuild)return;let n=e.desired===`enabled`;return{autoBuild:{...t.autoBuild,enabled:n,desired:e.desired,mode:e.nextMode,...e.nextMode===`paused`&&{scheduler:{...t.autoBuild.scheduler??{alive:!1},paused:!0}},lastTransition:{at:e.timestamp,previousMode:e.previousMode,nextMode:e.nextMode,desired:e.desired,reason:e.reason,source:e.source},reason:e.reason}}}},"daemon:recovery:start":{scope:`daemon`,persist:!0,summary:`Daemon recovery started`},"daemon:recovery:run-marked-failed":{scope:`daemon`,persist:!0,summary:e=>`Run ${e.runId} marked failed: ${e.reason}`},"daemon:recovery:lock-removed":{scope:`daemon`,persist:!0,summary:e=>`Stale lock removed: ${e.path} (pid ${e.pid})`},"daemon:recovery:lock-adopted":{scope:`daemon`,persist:!0,summary:e=>`Live queue lock adopted: ${e.path} (pid ${e.pid}, PRD ${e.prdId})`},"daemon:recovery:complete":{scope:`daemon`,persist:!0,summary:e=>`Daemon recovery complete: ${e.runsFailed} failed, ${e.locksRemoved} lock(s) removed`},"daemon:orphan:reaped":{scope:`daemon`,persist:!0,summary:e=>`Orphaned build reaped: ${e.runId} (pid ${e.pid})`},"daemon:failed-enqueue:upsert":{scope:`daemon`,persist:!0,summary:e=>`Failed enqueue ${e.failedEnqueue.runId}: ${e.failedEnqueue.failureReason}`,project(e,t){let n=(t.failedEnqueues??[]).filter(t=>t.runId!==e.failedEnqueue.runId);return{failedEnqueues:[e.failedEnqueue,...n].sort((e,t)=>t.failedAt.localeCompare(e.failedAt)||e.runId.localeCompare(t.runId))}}},"daemon:failed-enqueue:resolved":{scope:`daemon`,persist:!0,summary:e=>`Failed enqueue ${e.runId} resolved${e.spawnedSessionId?` as ${e.spawnedSessionId}`:``}`,project(e,t){let n=t.failedEnqueues??[],r=n.filter(t=>t.runId!==e.runId);if(r.length!==n.length)return{failedEnqueues:r}}},"daemon:warning":{scope:`daemon`,persist:!0,summary:e=>`Daemon warning [${e.source}]: ${e.message}`},"daemon:error":{scope:`daemon`,persist:!0,summary:e=>`Daemon error [${e.source}]: ${e.message}`},"queue:start":{scope:`daemon`,persist:!0,summary:e=>`PRD queue started: ${e.prdCount} PRD(s) in ${e.dir}`},"queue:prd:start":{scope:`daemon`,persist:!0,summary:e=>`Processing PRD: ${e.title} (${e.prdId})`,project(e,t){let n=t.queue.findIndex(t=>t.id===e.prdId);if(n===-1)return;let r=[...t.queue];return r[n]={...r[n],status:`running`},{queue:r}}},"queue:prd:discovered":{scope:`daemon`,persist:!0,summary:e=>`Discovered PRD: ${e.title} (${e.prdId})`,project:kx},"queue:prd:dependency-overridden":{scope:`daemon`,persist:!0,summary:e=>`PRD ${e.prdId} dependency override: removed ${e.removedDependency}`,project:Mx},"queue:prd:removed":{scope:`daemon`,persist:!0,summary:e=>`PRD ${e.prdId} removed from queue (was ${e.previousStatus})`,project:(e,t)=>t.queue.some(t=>t.id===e.prdId)?{queue:t.queue.filter(t=>t.id!==e.prdId)}:void 0},"queue:prd:stale":{scope:`daemon`,persist:!0,summary:e=>`PRD staleness (${e.prdId}): ${e.verdict} \u2014 ${e.justification}`,project(e,t){if(e.verdict===`proceed`)return;let n=t.queue.filter(t=>t.id!==e.prdId);if(n.length!==t.queue.length)return{queue:n}}},"queue:prd:skip":{scope:`daemon`,persist:!0,summary:e=>`PRD ${e.prdId} skipped: ${e.reason}`,project(e,t){let n=t.queue.filter(t=>t.id!==e.prdId);if(n.length!==t.queue.length)return{queue:n}}},"queue:prd:dispatch-failed":{scope:`daemon`,persist:!0,summary:e=>`PRD ${e.prdId} dispatch failed (${e.stage}): ${e.reason}`,project:jx},"queue:prd:commit-failed":{scope:`daemon`,persist:!0,summary:e=>`PRD ${e.prdId} commit failed: ${e.error}`,project(e,t){let n=t.queue.findIndex(t=>t.id===e.prdId);if(n===-1)return;let r=[...t.queue];return r[n]=Dx(r[n],`failed`),{queue:r}}},"queue:prd:complete":{scope:`daemon`,persist:!0,summary:e=>`PRD ${e.prdId} complete: ${e.status}`,project(e,t){let n=t.queue.findIndex(t=>t.id===e.prdId);if(n!==-1){if(e.status===`failed`){let e=[...t.queue];return e[n]=Dx(e[n],`failed`),{queue:e}}return{queue:t.queue.filter(t=>t.id!==e.prdId)}}}},"queue:complete":{scope:`daemon`,persist:!0,summary:e=>`Queue complete: ${e.processed} processed, ${e.skipped} skipped`,project(e,t){let n=t.queue.filter(e=>e.status===`failed`).map(e=>Dx(e,`failed`));if(!(n.length===t.queue.length&&n.every((e,n)=>e===t.queue[n])))return{queue:n}}},"stack:sync:start":{scope:`daemon`,persist:!0,summary:e=>e.trigger?`Stack sync started (${e.trigger}, syncId: ${e.syncId})`:`Stack sync started (syncId: ${e.syncId})`},"stack:sync:complete":{scope:`daemon`,persist:!0,summary:e=>e.restackCandidates.length>0?`Stack sync complete: ${e.restackCandidates.length} branch(es) restacked`:`Stack sync complete (syncId: ${e.syncId})`},"stack:sync:failed":{scope:`daemon`,persist:!0,summary:e=>`Stack sync ${e.outcome}: ${e.reason}`},"stack:sync:deferred":{scope:`daemon`,persist:!0,summary:e=>`Stack sync deferred: ${e.reason}`},"stack:sync:skipped":{scope:`daemon`,persist:!0,summary:e=>`Stack sync skipped: ${e.reason}`},"base-sync:start":{scope:`session`,persist:!1,summary:e=>`Direct PR base sync started: ${e.remote}/${e.baseBranch}`},"base-sync:conflict:attempt":{scope:`session`,persist:!1,summary:e=>`Direct PR base sync conflict attempt ${e.attempt}/${e.maxAttempts}`},"base-sync:resolver:start":{scope:`session`,persist:!1,summary:e=>`Direct PR base sync resolver started (${e.attempt}/${e.maxAttempts})`},"base-sync:resolver:complete":{scope:`session`,persist:!1,summary:e=>`Direct PR base sync resolver ${e.resolved?`completed`:`failed`} (${e.attempt}/${e.maxAttempts})`},"base-sync:rebase:continue":{scope:`session`,persist:!1,summary:e=>`Direct PR base sync continuing rebase (${e.attempt}/${e.maxAttempts})`},"base-sync:success":{scope:`session`,persist:!1,summary:e=>`Direct PR base sync ${e.rebased?`rebased`:`already current`}: ${e.remote}/${e.baseBranch}`},"base-sync:budget:exhausted":{scope:`session`,persist:!1,summary:e=>`Direct PR base sync exhausted ${e.attempts}/${e.maxAttempts} conflict attempts`}};Object.keys(Nx).filter(e=>{let t=Nx[e];return t.scope===`daemon`&&t.persist});var Px=`eforge:workstation:navigate`,Fx=`eforge:workstation:route`;function Ix(e){let t=e??(typeof window<`u`?window.location.hash:``),n=t.startsWith(`#`)?t.slice(1):t,r=new URLSearchParams(n),i=r.get(`bridgeToken`)??void 0,a=r.get(`path`)??void 0;return{...i?{bridgeToken:i}:{},...a?{initialPath:a}:{}}}function Lx(e,t){if(typeof window>`u`)return;let n=t?.bridgeToken??Ix().bridgeToken;n&&(t?.targetWindow??window.parent)?.postMessage({type:Px,bridgeToken:n,path:e},`*`)}function Rx(e,t){if(typeof window>`u`)return()=>{};let n=t?.bridgeToken??Ix().bridgeToken,r=t=>{let r=t.data;!r||typeof r!=`object`||r.type!==Fx||n&&r.bridgeToken!==n||typeof r.path==`string`&&e(r.path)};return window.addEventListener(`message`,r),()=>window.removeEventListener(`message`,r)}var zx=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/router.tsx`;function Bx(e){return e.replace(/^\/+|\/+$/g,``)}function Vx(e){let t=e.indexOf(`?`);return t<0?{path:Bx(e),search:``}:{path:Bx(e.slice(0,t)),search:e.slice(t)}}function Hx(){return{initialPath:()=>Ix().initialPath??``,subscribe:e=>Rx(e),push:e=>Lx(e)}}function Ux(){let e=()=>Bx(window.location.pathname)+window.location.search;return{initialPath:e,subscribe:t=>{let n=()=>t(e());return window.addEventListener(`popstate`,n),()=>window.removeEventListener(`popstate`,n)},push:e=>window.history.pushState(null,``,`/${e}`)}}function Wx(){return Ix().bridgeToken&&typeof window<`u`&&window.parent!==window?Hx():Ux()}var Gx=w.createContext(null);function Kx({children:e}){let t=w.useRef(null);t.current||=Wx();let n=t.current,[r,i]=w.useState(()=>n.initialPath());w.useEffect(()=>n.subscribe(e=>i(e)),[n]);let a=w.useCallback(e=>{i(e),n.push(e)},[n]),{path:o,search:s}=Vx(r),c=w.useMemo(()=>new URLSearchParams(s),[s]),l=w.useCallback(e=>{let t=new URLSearchParams(s);e(t);let n=t.toString();a(o+(n?`?${n}`:``))},[a,o,s]),u=w.useMemo(()=>({path:o,segments:o?o.split(`/`):[],query:c,navigate:a,setQuery:l}),[o,c,a,l]);return(0,I.jsxDEV)(Gx.Provider,{value:u,children:e},void 0,!1,{fileName:zx,lineNumber:91,columnNumber:10},this)}function qx(){let e=w.useContext(Gx);if(!e)throw Error(`useRouter must be used within RouterProvider`);return e}function Jx(){return w.useContext(Gx)}function Yx(e){return{priority:`medium`,tags:[],reasons:[],unresolvedDependsOn:[],activeTraceReasons:[],blocked:!1,ready:!1,reviewDue:!1,closed:!1,dependencies:[],dependents:[],notes:{claim:``,evidence:``,recheck:``,promotionPaths:``},recLanes:[],...e}}function Xx(e){let t={affectedItemIds:e.itemIds},n=[{kind:`session-plan`,stage:`planned`,status:e.state===`active`?`active`:`ready`,session:e.session,promotedAt:`2026-06-07T00:00:00.000Z`,...t},{kind:`queue-prd`,stage:e.state===`active`?`queued`:`completed`,status:e.state===`failed`?`failed`:`completed`,prdId:`${e.session}-prd`,queuedAt:`2026-06-07T00:01:00.000Z`,...t},{kind:`build-run`,stage:e.state===`failed`?`failed`:`running`,status:e.state===`failed`?`failed`:`running`,runId:`${e.session}-run`,sessionId:`${e.session}-build`,startedAt:`2026-06-07T00:02:00.000Z`,...t}];return(e.state===`pr-open`||e.state===`merged`||e.state===`partial`)&&n.push({kind:`pr`,stage:`pr-open`,status:`pr-open`,prUrl:e.prUrl??`https://example.test/pr/${e.session}`,featureBranch:`feature/${e.session}`,timestamp:`2026-06-07T00:03:00.000Z`,...t}),(e.state===`merged`||e.state===`partial`)&&n.push({kind:`landing`,stage:`merged`,status:`landed`,featureBranch:`feature/${e.session}`,commitSha:e.commitSha??`abc123`,landedAt:`2026-06-07T00:04:00.000Z`,...t}),e.state===`failed`&&n.push({kind:`last-event`,stage:`failed`,status:`failed`,runId:`${e.session}-run`,timestamp:`2026-06-07T00:04:00.000Z`,...t}),n}var Zx=Xx({itemIds:[`add-import-preview`,`recommend-next-work`],session:`2026-06-07-planning-foundations`,state:`partial`,commitSha:`def456`}),Qx={epicId:`planning`,title:`Planning workstation`,lifecycleState:`partial`,totalItemCount:3,shippedItemCount:1,activeItemCount:1,failedItemCount:0,itemRows:[{itemId:`add-import-preview`,title:`Add import preview`,lifecycleState:`shipped`,shipped:!0,evidence:`Merged at def456.`},{itemId:`recommend-next-work`,title:`Maintain next-work recommendations`,lifecycleState:`active`,shipped:!1,evidence:`Build still running.`},{itemId:`plan-workstation`,title:`Move planning into workstation`,lifecycleState:`active`,shipped:!1,evidence:`Session plan active.`}]},$x=[Yx({id:`add-import-preview`,title:`Add import preview`,status:`planned`,lane:`ready`,priority:`high`,tags:[`ux`,`cli`],ready:!0,recRank:2,epic:`planning`,epicRef:{id:`planning`,title:`Planning workstation`,status:`active`,missing:!1},notes:{claim:`Users want a dry-run preview before importing.`,evidence:``,recheck:``,promotionPaths:``},lifecycleState:`partial`,userStatus:`planned`,effectiveLifecycle:`partial`,reasonCodes:[`partial-plan`],associatedLinks:Zx,lifecycleLinks:Zx,epicProgress:Qx,planEligible:!1,planEligibilityReasonCode:`partial-plan`,planEligibilityReasonMessage:`A partial session plan already covers add-import-preview.`,planEligibilityLinks:Zx}),Yx({id:`recommend-next-work`,title:`Maintain next-work recommendations`,status:`planned`,lane:`ready`,priority:`medium`,ready:!0,recRank:1,recLanes:[`Planning foundations`],epic:`planning`,epicRef:{id:`planning`,title:`Planning workstation`,status:`active`,missing:!1},dependents:[{id:`add-import-preview`,title:`Add import preview`,status:`planned`,missing:!1,blocking:!1}],lifecycleState:`pr-open`,userStatus:`planned`,effectiveLifecycle:`pr-open`,reasonCodes:[`open-pr`],associatedLinks:Xx({itemIds:[`recommend-next-work`],session:`2026-06-07-recommendations`,state:`pr-open`,prUrl:`https://example.test/pr/recommendations`}),lifecycleLinks:Xx({itemIds:[`recommend-next-work`],session:`2026-06-07-recommendations`,state:`pr-open`,prUrl:`https://example.test/pr/recommendations`}),planEligible:!0}),Yx({id:`plan-workstation`,title:`Move planning into workstation`,status:`active`,lane:`in-progress`,priority:`high`,activeTraceReasons:[`active build run trace run-12`],reasons:[`active build run trace run-12`],epic:`planning`,epicRef:{id:`planning`,title:`Planning workstation`,status:`active`,missing:!1},lifecycleState:`active`,userStatus:`active`,effectiveLifecycle:`build`,reasonCodes:[`running-build`],associatedLinks:Xx({itemIds:[`plan-workstation`],session:`2026-06-07-plan-workstation`,state:`active`}),lifecycleLinks:Xx({itemIds:[`plan-workstation`],session:`2026-06-07-plan-workstation`,state:`active`}),epicProgress:Qx,planEligible:!1,planEligibilityReasonCode:`running-build`,planEligibilityReasonMessage:`plan-workstation is covered by running-build.`}),Yx({id:`auto-mode`,title:`Explore auto-mode draining`,status:`planned`,lane:`blocked`,priority:`low`,blocked:!0,unresolvedDependsOn:[`traceability`],recUnblock:`Land traceability first, then re-scope.`,dependencies:[{id:`traceability`,title:`Trace sidecars`,status:`planned`,missing:!1,blocking:!0}],epic:`extensions`,epicRef:{id:`extensions`,title:`Extension platform`,status:`planned`,missing:!1},lifecycleState:`failed`,userStatus:`planned`,effectiveLifecycle:`failed`,reasonCodes:[`failed-result`],associatedLinks:Xx({itemIds:[`auto-mode`],session:`2026-06-07-auto-mode`,state:`failed`}),lifecycleLinks:Xx({itemIds:[`auto-mode`],session:`2026-06-07-auto-mode`,state:`failed`}),planEligible:!1,planEligibilityReasonCode:`failed-result`,planEligibilityReasonMessage:`auto-mode is covered by failed-result.`}),Yx({id:`traceability`,title:`Trace sidecars`,status:`planned`,lane:`ready`,priority:`medium`,ready:!0,dependents:[{id:`auto-mode`,title:`Explore auto-mode draining`,status:`planned`,missing:!1,blocking:!0}],planEligible:!0}),Yx({id:`legacy-cleanup`,title:`Remove legacy board renderer`,status:`shipped`,lane:`done`,priority:`low`,closed:!0,lifecycleState:`merged`,lifecycleLinks:Xx({itemIds:[`legacy-cleanup`],session:`2026-06-07-legacy-cleanup`,state:`merged`,prUrl:`https://example.test/pr/legacy-cleanup`,commitSha:`fedcba`}),planEligible:!1,planEligibilityReasonCode:`merged-result`,planEligibilityReasonMessage:`legacy-cleanup already has merged result evidence.`}),Yx({id:`stale-idea`,title:`Revisit cron triggers`,status:`planned`,lane:`inbox`,priority:`low`,reviewDue:!0})],eS={lanes:[`inbox`,`ready`,`blocked`,`in-progress`,`done`].map(e=>({lane:e,title:e.replace(/(^|-)([a-z])/g,(t,n,r)=>e===`in-progress`?`In progress`:r.toUpperCase()),items:$x.filter(t=>t.lane===e)})),items:$x,epics:[{id:`planning`,title:`Planning workstation`,status:`active`},{id:`extensions`,title:`Extension platform`,status:`planned`}],lifecycleLinks:$x.flatMap(e=>e.lifecycleLinks??[]),epicProgress:[Qx]};function tS(e={}){let t=typeof e.lane==`string`?e.lane:void 0,n=e.includeClosed===!0,r=typeof e.limit==`number`?e.limit:50,i=typeof e.offset==`number`?e.offset:0,a=$x.filter(e=>(!t||e.lane===t)&&(n||!e.closed)),o=a.slice(i,i+r),s=i+o.length,c={limit:r,offset:i,returned:o.length,hasMore:s<a.length,...s<a.length?{nextOffset:s}:{}};return{schemaVersion:1,items:o.map(iS),total:a.length,limit:r,offset:i,lanes:eS.lanes.map(e=>rS(e,t,c)),epics:(eS.epics??[]).map(e=>({...e,tags:[],itemCount:$x.filter(t=>t.epic===e.id).length,openItemCount:$x.filter(t=>t.epic===e.id&&!t.closed).length})),counts:{total:$x.length,open:$x.filter(e=>!e.closed).length,closed:$x.filter(e=>e.closed).length},pagination:c}}function nS(e){let t=$x.find(t=>t.id===e);if(!t)throw Error(`Backlog item "${e}" not found.`);let n=e=>iS($x.find(t=>t.id===e.id)??Yx({id:e.id,title:e.title,status:e.status??`candidate`,lane:`inbox`}));return{schemaVersion:1,item:{...iS(t),path:`mock://backlog/items/${t.id}.md`,body:`# ${t.title}\n\n${t.notes.claim||`${t.title} claim.`}`,sections:{Claim:t.notes.claim||`${t.title} claim.`,Evidence:t.notes.evidence,Recheck:t.notes.recheck,"Promotion Paths":t.notes.promotionPaths},linkRows:t.linkRows??t.lifecycleLinks??[],failureEvidence:t.failureEvidence??[]},dependencies:t.dependencies.filter(e=>!e.missing).map(n),dependents:t.dependents.filter(e=>!e.missing).map(n)}}function rS(e,t,n){let r=$x.filter(t=>t.lane===e.lane);return{lane:e.lane,title:e.title,count:r.length,openCount:r.filter(e=>!e.closed).length,closedCount:r.filter(e=>e.closed).length,...t===e.lane?{pagination:n}:{}}}function iS(e){return{id:e.id,title:e.title,status:e.status,priority:e.priority,tags:e.tags,lane:e.lane,reasons:e.reasons,dependsOn:e.dependencies.map(e=>e.id),unresolvedDependsOn:e.unresolvedDependsOn,activeTraceReasons:e.activeTraceReasons,blocked:e.blocked,ready:e.ready,reviewDue:e.reviewDue,closed:e.closed,...e.epic?{epic:e.epic}:{},lifecycleState:e.lifecycleState,userStatus:e.userStatus,effectiveLifecycle:e.effectiveLifecycle,reasonCodes:e.reasonCodes,associatedLinks:e.associatedLinks,planEligible:e.planEligible,planEligibilityReasonCode:e.planEligibilityReasonCode,planEligibilityReasonMessage:e.planEligibilityReasonMessage,planEligibilityLinks:e.planEligibilityLinks,linkRows:e.linkRows}}var aS={schemaVersion:1,activeWork:[],readyCandidates:[{ref:`ready-import-preview`,itemId:`add-import-preview`,rationale:`Originally recommended before same-draft shipped filtering.`},{ref:`ready-traceability`,itemId:`traceability`,rationale:`Still ready after curation filtering.`}],recommendedNextSequence:[{ref:`next-recommendations`,itemId:`recommend-next-work`,rationale:`Foundation for choosing useful follow-up work.`},{ref:`next-import-preview`,itemId:`add-import-preview`,rationale:`Ready, scoped, and user-visible.`}],safeParallelizableGroups:[{ref:`planning-foundations`,title:`Planning foundations`,itemIds:[`add-import-preview`,`recommend-next-work`],rationale:`Shared workflow layer; plan together and implement in sequence.`,recommendedProfile:`excursion`}],blockedChains:[{ref:`auto-mode-chain`,itemIds:[`auto-mode`],blockedBy:[`traceability`],rationale:`Land traceability first, then re-scope.`}],rationaleAndAssumptions:[`Favor extension-owned workflow UX over engine changes.`,`Keep recommendations in private extension storage.`]},oS={itemId:`add-import-preview`,state:`non-actionable`,disposition:`de-actioned`,lifecycleState:`planned`,reasonCode:`partial-plan`,reasonMessage:`A partial session plan already covers add-import-preview.`,associatedLinks:[{kind:`session-plan`,label:`Session plan 2026-06-07-import-preview`,itemIds:[`add-import-preview`],session:`2026-06-07-import-preview`,status:`planning`,path:`.eforge/session-plans/2026-06-07-import-preview.md`,timestamp:`2026-06-07T00:00:00.000Z`}]},sS={itemId:`recommend-next-work`,state:`actionable`,lifecycleState:`none`,associatedLinks:[]},cS={schemaVersion:1,activeWork:[],readyCandidates:[{lane:`readyCandidates`,ref:`ready-import-preview`,itemId:`add-import-preview`,actionability:oS},{lane:`readyCandidates`,ref:`ready-traceability`,itemId:`traceability`,actionability:{itemId:`traceability`,state:`actionable`,lifecycleState:`none`,associatedLinks:[]}}],recommendedNextSequence:[{lane:`recommendedNextSequence`,ref:`next-recommendations`,itemId:`recommend-next-work`,actionability:sS},{lane:`recommendedNextSequence`,ref:`next-import-preview`,itemId:`add-import-preview`,actionability:oS}],safeParallelizableGroups:[{ref:`planning-foundations`,state:`partially-actionable`,itemIds:[`add-import-preview`,`recommend-next-work`],actionableItemIds:[`recommend-next-work`],suppressedItemIds:[`add-import-preview`],items:[oS,sS]}]},lS={state:`fresh`,reason:`Recommendation model matches the current source fingerprint.`,storedSourceFingerprint:`fresh-source-fingerprint`,comparedSourceFingerprint:`fresh-source-fingerprint`,baselineTaskId:`task-refresh-recommendations`},uS={state:`stale`,reason:`Recommendation source fingerprint drifted since the model was last applied.`,storedSourceFingerprint:`old-source-fingerprint`,comparedSourceFingerprint:`current-source-fingerprint`,baselineTaskId:`task-backlog-curation-ready`},dS={state:`fresh`,currentPath:`mock://recommendations/current.json`,statusPath:`mock://recommendations/status.json`,freshAt:`2026-06-07T00:00:00.000Z`,lastRefreshedBy:`put-recommendations`,sourceFingerprint:`fresh-source-fingerprint`,lastAppliedSourceFingerprint:`fresh-source-fingerprint`,reasons:[],staleReasons:[]},fS={state:`stale`,currentPath:`mock://recommendations/current.json`,statusPath:`mock://recommendations/status.json`,staleSince:`2026-06-07T00:05:00.000Z`,lastRefreshedBy:`apply-planning-agent-task-result`,sourceFingerprint:`current-source-fingerprint`,lastAppliedSourceFingerprint:`old-source-fingerprint`,reasons:[{code:`source-fingerprint-drift`,message:`Recommendation source fingerprint drifted since the model was last applied.`,summary:`Recommendation source fingerprint drifted since the model was last applied.`,sourceFingerprint:`current-source-fingerprint`,lastAppliedSourceFingerprint:`old-source-fingerprint`},{eventType:`session:end`,itemIds:[`add-import-preview`],correlationKind:`single`,timestamp:`2026-06-07T00:05:00.000Z`,summary:`Recommendations are stale after single lifecycle update session:end for add-import-preview.`,code:`lifecycle:session:end`,message:`Recommendations are stale after single lifecycle update session:end for add-import-preview.`,refs:[`session-one`]}],staleReasons:[{code:`source-fingerprint-drift`,message:`Recommendation source fingerprint drifted since the model was last applied.`,summary:`Recommendation source fingerprint drifted since the model was last applied.`,sourceFingerprint:`current-source-fingerprint`,lastAppliedSourceFingerprint:`old-source-fingerprint`},{eventType:`session:end`,itemIds:[`add-import-preview`],correlationKind:`single`,timestamp:`2026-06-07T00:05:00.000Z`,summary:`Recommendations are stale after single lifecycle update session:end for add-import-preview.`,code:`lifecycle:session:end`,message:`Recommendations are stale after single lifecycle update session:end for add-import-preview.`,refs:[`session-one`]}]},pS={taskId:`task-mock-planning-draft`,kind:`eforge-plan.planning-draft`,status:`completed`,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:`2026-06-07T00:00:04.000Z`,startedAt:`2026-06-07T00:00:01.000Z`,completedAt:`2026-06-07T00:00:04.000Z`,metadata:{progressMessage:`Planner task completed`,summary:`Drafted focused planning output.`,outputSectionCount:2,warningCount:1},result:{summary:`Drafted recommendations and a session-plan patch for the selected backlog work.`,assumptionsOpenQuestions:[`Confirm whether import preview should be CLI-only or workstation-visible too.`],nextSteps:[`Preview the generated sections.`,`Apply only the pieces you want to keep.`],recommendations:aS,handoffDrafts:[{selection:{itemIds:[`import-preview`],status:`active`},session:`2026-06-07-import-preview`}],planDrafts:[{title:`Import preview plan`,body:`# Import preview plan
277
+
278
+ ## Scope
279
+
280
+ Add an explicit preview before import writes.`}],sessionPlanPatch:{sections:[{dimension:`scope`,content:`Add a bounded import preview flow that shows generated changes before writing.`},{dimension:`acceptance-criteria`,content:`- Preview renders without writing files.
281
+ - Apply requires explicit user action.`}]}}},mS={recommendations:aS,recommendationSummary:{recommendedNextItemIds:[`recommend-next-work`,`add-import-preview`],safeParallelizableGroups:[{ref:`planning-foundations`,itemIds:[`add-import-preview`,`recommend-next-work`]}],blockedChainCount:1,rationaleAndAssumptions:aS.rationaleAndAssumptions??[]},recommendationActionability:cS,path:`mock://recommendations/current.json`,status:dS,recommendationFreshness:lS},hS=[{key:`plan:2026-06-07-import-preview`,kind:`plan`,session:`2026-06-07-import-preview`,title:`Add import preview`,status:`planning`,ready:!1,sourceRefs:{itemIds:[`add-import-preview`],epicIds:[`planning`]},lifecycleState:`partial`,lifecycleLinks:Zx},{key:`plan:2026-06-07-recommendations`,kind:`plan`,session:`2026-06-07-recommendations`,title:`Recommendation engine`,status:`ready`,ready:!0,sourceRefs:{itemIds:[`recommend-next-work`],epicIds:[`planning`]},lifecycleState:`pr-open`,lifecycleLinks:Xx({itemIds:[`recommend-next-work`],session:`2026-06-07-recommendations`,state:`pr-open`,prUrl:`https://example.test/pr/recommendations`}),prRefs:[{url:`https://example.test/pr/recommendations`,status:`pr-open`,branch:`feature/2026-06-07-recommendations`}]},{key:`plan:2026-06-07-legacy-cleanup`,kind:`plan`,session:`2026-06-07-legacy-cleanup`,title:`Remove legacy board renderer`,status:`shipped`,ready:!0,sourceRefs:{itemIds:[`legacy-cleanup`]},lifecycleState:`merged`,lifecycleLinks:Xx({itemIds:[`legacy-cleanup`],session:`2026-06-07-legacy-cleanup`,state:`merged`,prUrl:`https://example.test/pr/legacy-cleanup`,commitSha:`fedcba`}),landingRefs:[{status:`landed`,branch:`feature/2026-06-07-legacy-cleanup`,commitSha:`fedcba`,landedAt:`2026-06-07T00:04:00.000Z`}]},{key:`plan:2026-06-07-auto-mode`,kind:`plan`,session:`2026-06-07-auto-mode`,title:`Explore auto-mode draining`,status:`failed`,ready:!1,sourceRefs:{itemIds:[`auto-mode`],epicIds:[`extensions`]},lifecycleState:`failed`,lifecycleLinks:Xx({itemIds:[`auto-mode`],session:`2026-06-07-auto-mode`,state:`failed`})},{key:`plan-set:planning-foundations`,kind:`plan-set`,planSetId:`planning-foundations`,title:`Planning foundations`,status:`draft`,childCount:3}];function gS(e){if(e.startsWith(`plan-set:`))return{planSet:{id:`planning-foundations`,title:`Planning foundations`,status:`planning`,strategy:`dag`,children:[{id:`recommendations`,file:`recommendations.md`,kind:`plan`,status:`ready`,buildable:!0,exists:!0,dependsOn:[],validation:{ok:!0,diagnosticCount:0}},{id:`import-preview`,file:`import-preview.md`,kind:`plan`,status:`planning`,buildable:!0,exists:!0,dependsOn:[`recommendations`],validation:{ok:!0,diagnosticCount:0}},{id:`design-notes`,file:`design-notes.md`,kind:`note`,status:`planning`,buildable:!1,exists:!1,dependsOn:[],validation:{ok:!1,diagnosticCount:1}}],diagnostics:[{severity:`error`,code:`missing-child-file`,message:`Child file design-notes.md does not exist.`,childId:`design-notes`,file:`design-notes.md`}]},validation:{ok:!1,diagnostics:[{severity:`error`,code:`missing-child-file`,message:`Child file design-notes.md does not exist.`,childId:`design-notes`,file:`design-notes.md`}]},dir:`.eforge/session-plan-sets/planning-foundations`,manifestPath:`.eforge/session-plan-sets/planning-foundations/manifest.yaml`};let t=hS.find(t=>t.key===e)??hS[0],n=!!t.ready,r=t.lifecycleLinks??[],i=t.lifecycleState===`partial`?[{itemId:`add-import-preview`,title:`Add import preview`,lifecycleState:`shipped`,shipped:!0,evidence:`Merged at def456.`},{itemId:`recommend-next-work`,title:`Maintain next-work recommendations`,lifecycleState:`active`,shipped:!1,evidence:`PR remains open.`}]:r.flatMap(e=>(e.affectedItemIds??[]).map(n=>({itemId:n,lifecycleState:t.lifecycleState,shipped:t.lifecycleState===`merged`,evidence:e.commitSha??e.prUrl??e.status})));return{path:`.eforge/session-plans/${t.session}.md`,readiness:{ready:n,missingDimensions:n?[]:[`scope`],coveredDimensions:n?[`scope`,`acceptance-criteria`]:[`acceptance-criteria`],skippedDimensions:[`assumptions-and-validation`],acDiagnostics:n?[]:[{kind:`vague`,line:`- It works well`,message:`Criterion is not objectively verifiable.`,suggestion:`State a measurable, testable outcome.`}]},plan:{session:t.session??`mock-session`,topic:t.title??`Mock plan`,status:t.status??`planning`,profile:`excursion`,planning_type:`feature`,planning_depth:`focused`,confidence:`medium`,required_dimensions:[`scope`,`acceptance-criteria`,`assumptions-and-validation`],optional_dimensions:[],skipped_dimensions:[{name:`assumptions-and-validation`,reason:`No external dependencies.`}],open_questions:[`What edge cases matter?`],sourceRefs:t.sourceRefs??{itemIds:[],epicIds:[]},lifecycleLinks:r,lifecycleState:t.lifecycleState,itemRows:i,epicProgress:t.session===`2026-06-07-import-preview`?[Qx]:[],prRefs:t.prRefs,landingRefs:t.landingRefs,sections:{scope:`A friendly fixture for rapid UI iteration.`,"acceptance criteria":`- It renders.
282
+ - It promotes.`},body:`# Mock plan
283
+
284
+ ## Scope
285
+
286
+ A friendly fixture for rapid UI iteration.`}}}function _S(e,t={}){let n=gS(`plan:${e}`),r=n.plan??{session:e,topic:`Mock plan`,status:`planning`};return{session:e,path:n.path??`.eforge/session-plans/${e}.md`,plan:{...r,status:`ready`,...t},readiness:{ready:!0,missingDimensions:[],coveredDimensions:r.required_dimensions??[],skippedDimensions:[`assumptions-and-validation`],acDiagnostics:[]}}}var vS=`eforge-plan.planning-draft`,yS=`2026-06-07-ai-promoted-plan`;function bS(e){return{originalRequest:``,derivedRequest:`Draft a session plan for the selected backlog work.`,selection:{itemIds:[`add-import-preview`]},requestedOutputSections:[`sessionPlanCreationDraft`],createdAt:`2026-06-07T00:00:00.000Z`,...e}}var xS={taskId:`task-running-creation`,kind:vS,status:`running`,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:`2026-06-07T00:00:02.000Z`,startedAt:`2026-06-07T00:00:01.000Z`,metadata:{progressMessage:`Drafting session-plan sections…`,sectionProgress:{currentSection:`acceptance-criteria`,coveredSections:[`scope`],remainingSections:[`assumptions-and-validation`]},activityLog:[{timestamp:`2026-06-07T00:00:01.000Z`,message:`Planner task started.`},{timestamp:`2026-06-07T00:00:02.000Z`,message:`Drafting acceptance criteria.`}]}},SS={taskId:`task-failed-creation`,kind:vS,status:`failed`,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:`2026-06-07T00:00:05.000Z`,startedAt:`2026-06-07T00:00:01.000Z`,completedAt:`2026-06-07T00:00:05.000Z`,errorCode:`planning-agent-error`,errorMessage:`The planning agent run failed before drafting a session plan.`},CS={taskId:`task-needs-input`,kind:vS,status:`completed`,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:`2026-06-07T00:00:04.000Z`,startedAt:`2026-06-07T00:00:01.000Z`,completedAt:`2026-06-07T00:00:04.000Z`,metadata:{summary:`Needs input before drafting.`},result:{summary:`A few questions before drafting the session plan.`,assumptionsOpenQuestions:[],decision:`needs-input`,rationale:`The selected items leave the scope of import preview ambiguous.`,clarificationQuestions:[{question:`Should import preview be CLI-only or also workstation-visible?`,why:`Determines UI scope and acceptance criteria.`,options:[`CLI-only`,`CLI + workstation`]},{question:`Is a dry-run preview required before any writes?`}]}},wS={schemaVersion:1,sourceFingerprint:`curation-source-fingerprint-0000000000000000000000000000000000000000`,generatedAt:`2026-06-07T00:30:00.000Z`,summary:[`Found stale backlog metadata and generated a read-only curation draft.`,`Apply will patch backlog records and refresh recommendation outputs together.`],itemChanges:[{kind:`item`,id:`auto-mode`,precondition:{kind:`item`,id:`auto-mode`,bodySha256:`auto-mode-body`,sourceFingerprint:`curation-source-fingerprint-0000000000000000000000000000000000000000`},metadata:{status:`planned`,priority:`medium`,depends_on:[`traceability`],last_checked:`2026-06-07`,stale_after:`2026-07-07`},sectionOperations:[{heading:`Evidence`,action:`append`,content:`- Confirmed auto-mode remains blocked by traceability evidence.`}],rationale:`auto-mode has durable dependency evidence and should carry fresh recheck metadata.`,evidence:[`Trace sidecars still blocks auto-mode.`]},{kind:`item`,id:`add-import-preview`,precondition:{kind:`item`,id:`add-import-preview`,bodySha256:`add-import-preview-body`,sourceFingerprint:`curation-source-fingerprint-0000000000000000000000000000000000000000`},metadata:{status:`shipped`,last_checked:`2026-06-07`,stale_after:`2026-07-07`},rationale:`add-import-preview has current-source implementation and product-surface citations.`,evidence:[`Shipped evidence: current source — src/import-preview.ts and src/import-preview-button.tsx implement and wire the preview UI.`]},{kind:`item`,id:`recommend-next-work`,precondition:{kind:`item`,id:`recommend-next-work`,bodySha256:`recommend-next-work-body`,sourceFingerprint:`curation-source-fingerprint-0000000000000000000000000000000000000000`},metadata:{status:`shipped`,last_checked:`2026-06-07`,stale_after:`2026-07-07`},rationale:`recommend-next-work has current-source implementation and product-surface citations; PR history remains a navigation hint.`,evidence:[`Shipped evidence: current source — src/recommendations.ts and src/recommendations-rail.tsx implement and wire recommendations.`]}],epicChanges:[{kind:`epic`,id:`planning`,precondition:{kind:`epic`,id:`planning`,bodySha256:`planning-epic-body`,sourceFingerprint:`curation-source-fingerprint-0000000000000000000000000000000000000000`},metadata:{last_checked:`2026-06-07`,stale_after:`2026-07-07`},sectionOperations:[{heading:`Recheck`,action:`append`,content:`- Planning workstation curation completed with partial progress evidence.`}],rationale:`Planning epic has new partial-progress evidence from active tasks.`,evidence:[`Import preview merged while recommendations remain active.`]}],noOpRechecks:[{kind:`item`,id:`traceability`,precondition:{kind:`item`,id:`traceability`,bodySha256:`traceability-body`},last_checked:`2026-06-07`,stale_after:`2026-07-07`,rationale:`Traceability remains accurate and ready.`}],skipped:[{kind:`item`,id:`legacy-cleanup`,reason:`Legacy shipped record is ambiguous and should not be rewritten by curation.`}],needsInput:[{kind:`item`,id:`stale-idea`,question:`Which durable evidence supports revisiting cron triggers?`,reason:`Ambiguous shipped candidate: needs input — git history mentions stale-idea but lacks a confirmed merge or lifecycle landing.`},{kind:`item`,id:`legacy-cleanup`,question:`Should legacy cleanup be marked superseded instead of shipped?`,reason:`Ambiguous superseded candidate: needs input — git history mentions replacement but lacks confirmed superseded lifecycle evidence.`}]},TS={...aS,readyCandidates:[{ref:`ready-traceability`,itemId:`traceability`,rationale:`Still ready after server projection.`}],recommendedNextSequence:[{ref:`next-recommendations`,itemId:`recommend-next-work`,rationale:`Still effective after server projection.`}],safeParallelizableGroups:[{ref:`planning-foundations`,title:`Planning foundations`,itemIds:[`recommend-next-work`],rationale:`Server projection removed shipped same-draft targets.`,recommendedProfile:`excursion`}]},ES={valid:!1,itemChanges:wS.itemChanges.length,epicChanges:wS.epicChanges.length,noOpRechecks:wS.noOpRechecks.length,recommendationFreshness:uS,gitDelta:{baseline:{source:`accepted-analysis-sidecar`,commit:`1111111111111111111111111111111111111111`,sourceFingerprint:`old-source-fingerprint`,time:`2026-06-06T00:00:00.000Z`,taskId:`task-baseline`},currentHead:{commit:`2222222222222222222222222222222222222222`,sourceFingerprint:`current-source-fingerprint`,time:`2026-06-07T00:30:00.000Z`},coverage:{kind:`fallback`,message:`coverage fallback after baseline scan diagnostics`},caps:{commitScanCount:200,changedPathCount:500},scannedCommitCount:42,scannedCommits:[{hash:`2222222222222222222222222222222222222222`}],diagnostics:[{severity:`info`,code:`baseline-missing`,message:`Baseline sidecar was missing; using fallback scan.`},{severity:`warning`,code:`baseline-unreachable`,message:`Baseline commit was not reachable from HEAD.`,commit:`1111111111111111111111111111111111111111`}],affectedItemCandidates:[{itemId:`add-import-preview`,intent:`affected`,confidence:`medium`,commit:{hash:`2222222222222222222222222222222222222222`}},{itemId:`stale-idea`,intent:`ambiguous-shipped`,confidence:`ambiguous`,evidence:`Ambiguous shipped candidate: needs input`},{itemId:`legacy-cleanup`,intent:`ambiguous-superseded`,confidence:`ambiguous`,evidence:`Ambiguous superseded candidate: needs input`}]},recommendationProjection:{effectiveRecommendations:TS,recommendationSummary:{recommendedNextItemIds:[`recommend-next-work`],safeParallelizableGroups:[{ref:`planning-foundations`,itemIds:[`recommend-next-work`]}],blockedChainCount:1,rationaleAndAssumptions:TS.rationaleAndAssumptions??[]},removed:{itemIds:[`add-import-preview`],epicIds:[`planning`]},repositioned:[{itemId:`recommend-next-work`,from:`readyCandidates`,to:`recommendedNextSequence`}],validation:{valid:!1,issues:[{path:`safeParallelizableGroups.planning-foundations.itemIds[0]`,id:`recommend-next-work`,kind:`item`,reason:`wrong-lane`,status:`planned`,title:`Maintain next-work recommendations`,message:`Generated recommendation references an item in the wrong lane for this section.`}]}},generatedRecommendationValidation:{valid:!1,issues:[{path:`blockedChains.closed-chain.blockedBy`,id:`closed-dep`,kind:`item`,reason:`closed`,status:`shipped`,title:`Closed dependency`,message:`Generated recommendation references closed item closed-dep.`}]}},DS={...ES,valid:!0,fullImplementationAudit:{scope:{itemIds:[`auto-mode`,`add-import-preview`,`recommend-next-work`,`stale-idea`],openItemCount:6},coverage:{auditedItemCount:6,currentStateFileCount:128,gitHistoryCommitCount:200,pullRequestCount:12},caps:{fileScanCount:250,fileBytes:1048576,evidencePerItem:3,pathsPerCategory:8,excerptBytes:1200,diagnosticCount:10,gitCommitScanCount:200,prEnrichmentCount:12},settings:{itemAuditConcurrency:4,maxItemAuditConcurrency:8,closureAuthority:`current-source-only`},diagnostics:[{severity:`warning`,code:`pr-history-unavailable`,message:`Some pull request metadata was unavailable; preview uses available git and file evidence.`},{severity:`info`,code:`source-search-bounded`,message:`Current-state source search stopped at configured caps.`}],itemSummaries:[{itemId:`add-import-preview`,candidateIntent:`source-shipped`,evidenceCount:2,confidence:`strong`,sourceFirstResult:{itemId:`add-import-preview`,intent:`source-shipped`,confidence:`strong`,rationale:`Current source contains implementation and product-surface wiring citations; historical signals are navigation-only.`,citations:[{kind:`implementation`,path:`src/import-preview.ts`,excerpt:`export function renderImportPreview`},{kind:`product-surface`,path:`src/import-preview-button.tsx`,excerpt:`<ImportPreviewButton />`}],historicalHints:[{source:`lifecycle`,confidence:`strong`,intent:`shipped`,citation:`landing row merge commit 1234567890abcdef`,closureAuthority:!1}]},historicalHints:[{source:`lifecycle`,confidence:`strong`,intent:`shipped`,citation:`landing row merge commit 1234567890abcdef`,closureAuthority:!1}],evidence:[{source:`current-source`,evidenceSource:`current-source`,confidence:`strong`,matchedBy:[`item-id`,`path`],path:`src/import-preview.ts`,excerpt:`export function renderImportPreview`}],closureCandidates:[{source:`current-source`,evidenceSource:`current-source`,confidence:`strong`,intent:`shipped`,matchedBy:[`item-id`,`path`],evidence:`Shipped evidence: current source — src/import-preview.ts and src/import-preview-button.tsx implement and wire the preview UI.`,citations:[{kind:`implementation`,path:`src/import-preview.ts`,excerpt:`export function renderImportPreview`},{kind:`product-surface`,path:`src/import-preview-button.tsx`,excerpt:`<ImportPreviewButton />`}],evidenceRoles:[`implementation`,`product-surface`]}]},{itemId:`recommend-next-work`,candidateIntent:`source-shipped`,evidenceCount:2,confidence:`strong`,sourceFirstResult:{itemId:`recommend-next-work`,intent:`source-shipped`,confidence:`strong`,rationale:`Current source contains implementation and product-surface wiring citations; git and PR history are navigation-only.`,citations:[{kind:`implementation`,path:`src/recommendations.ts`,excerpt:`buildRecommendationModel`},{kind:`product-surface`,path:`src/recommendations-rail.tsx`,excerpt:`<RecommendationsRail`}],historicalHints:[{source:`combined`,confidence:`strong`,intent:`shipped`,citation:`PR #191`,closureAuthority:!1}]},historicalHints:[{source:`combined`,confidence:`strong`,intent:`shipped`,citation:`PR #191`,closureAuthority:!1}],evidence:[{source:`current-source`,evidenceSource:`current-source`,confidence:`strong`,matchedBy:[`item-id`,`path`],path:`src/recommendations.ts`,excerpt:`buildRecommendationModel`}],closureCandidates:[{source:`current-source`,evidenceSource:`current-source`,confidence:`strong`,intent:`shipped`,matchedBy:[`item-id`,`path`],evidence:`Shipped evidence: current source — src/recommendations.ts and src/recommendations-rail.tsx implement and wire recommendations.`,citations:[{kind:`implementation`,path:`src/recommendations.ts`,excerpt:`buildRecommendationModel`},{kind:`product-surface`,path:`src/recommendations-rail.tsx`,excerpt:`<RecommendationsRail`}],evidenceRoles:[`implementation`,`product-surface`]}]},{itemId:`stale-idea`,candidateIntent:`needs-input`,evidenceCount:1,confidence:`ambiguous`,evidence:[{source:`code-search`,confidence:`ambiguous`,matchedBy:[`title-token`],path:`docs/cron.md`,excerpt:`cron triggers need product confirmation`}],sourceFirstResult:{itemId:`stale-idea`,intent:`partial`,confidence:`ambiguous`,citations:[{kind:`supporting`,path:`docs/cron.md`,excerpt:`cron triggers need product confirmation`}],historicalHints:[{source:`git-history`,confidence:`ambiguous`,intent:`ambiguous-shipped`,citation:`old branch mention`,closureAuthority:!1}],diagnostics:[{severity:`warning`,code:`source-first-partial-only`,path:`docs/cron.md`}]}}]}},OS={taskId:`task-backlog-curation-ready`,kind:vS,status:`completed`,createdAt:`2026-06-07T00:30:00.000Z`,updatedAt:`2026-06-07T00:30:06.000Z`,startedAt:`2026-06-07T00:30:01.000Z`,completedAt:`2026-06-07T00:30:06.000Z`,metadata:{summary:`Backlog curation draft ready.`,outputSectionCount:2},result:{summary:`Backlog curation draft ready.`,assumptionsOpenQuestions:[],nextSteps:[`Review curation preview.`,`Apply curation only after confirmation.`],decision:`ready`,backlogCurationDraft:wS,recommendations:aS}},kS={taskId:`task-ready-creation`,kind:vS,status:`completed`,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:`2026-06-07T00:00:06.000Z`,startedAt:`2026-06-07T00:00:01.000Z`,completedAt:`2026-06-07T00:00:06.000Z`,metadata:{summary:`Drafted a ready session plan.`,outputSectionCount:2},result:{summary:`Drafted a ready session plan for the selected backlog work.`,assumptionsOpenQuestions:[`Confirm rollout order with the planning epic owner.`],nextSteps:[`Review the drafted sections.`,`Create the session plan when ready.`],decision:`ready`,sessionPlanCreationDraft:{session:yS,topic:`Add import preview`,planningType:`feature`,planningDepth:`focused`,sections:[{dimension:`scope`,content:`Add a bounded import preview flow that shows generated changes before writing.`},{dimension:`acceptance-criteria`,content:`- Preview renders without writing files.
287
+ - Apply requires explicit user action.`}]}}},AS=[{entry:bS({taskId:xS.taskId,derivedRequest:`Draft a session plan for Add import preview.`}),available:!0,status:`running`,task:xS},{entry:bS({taskId:CS.taskId,derivedRequest:`Draft a session plan for an ambiguous selection.`}),available:!0,status:`completed`,task:CS},{entry:bS({taskId:kS.taskId,derivedRequest:`Draft a session plan for Add import preview.`,session:yS}),available:!0,status:`completed`,task:kS},{entry:bS({taskId:OS.taskId,derivedRequest:`Run a source-first implementation audit for backlog curation.`,selection:{},requestedOutputSections:[`backlogCurationDraft`,`recommendations`],purpose:`backlog-curation`,itemAuditConcurrency:4,sourceFingerprint:wS.sourceFingerprint}),available:!0,status:`completed`,task:OS,backlogCurationPreview:ES},{entry:bS({taskId:`task-backlog-curation-full-ready`,derivedRequest:`Run a source-first implementation audit for backlog curation.`,selection:{},requestedOutputSections:[`backlogCurationDraft`,`recommendations`],purpose:`backlog-curation`,itemAuditConcurrency:4,sourceFingerprint:wS.sourceFingerprint}),available:!0,status:`completed`,task:{...OS,taskId:`task-backlog-curation-full-ready`},backlogCurationPreview:DS},{entry:bS({taskId:SS.taskId,derivedRequest:`Draft a session plan that failed.`}),available:!0,status:`failed`,task:SS}],jS=[],MS=[],NS=0;function PS(e){return{...Array.isArray(e.itemIds)&&{itemIds:e.itemIds},...typeof e.epicId==`string`&&{epicId:e.epicId},...typeof e.recommendationRef==`string`&&{recommendationRef:e.recommendationRef}}}function FS(e){return e.recommendationRef?`Draft a session plan for recommendation ${e.recommendationRef}.`:e.epicId?`Draft a session plan for epic ${e.epicId}.`:e.itemIds&&e.itemIds.length>0?`Draft a session plan for ${e.itemIds.join(`, `)}.`:`Draft a session plan for the open backlog.`}function IS(e){NS+=1;let t=`${e.idPrefix}-${NS}`,n=`2026-06-07T00:10:00.000Z`,r={taskId:t,kind:vS,status:`running`,createdAt:n,updatedAt:n,startedAt:n,metadata:{progressMessage:e.entryPatch?.purpose===`recommendation-refresh`?`Refreshing recommendations…`:e.entryPatch?.purpose===`backlog-curation`?`Analyzing backlog curation…`:`Preparing planner context…`,sectionProgress:{currentSection:e.entryPatch?.purpose===`recommendation-refresh`?`recommendations`:e.entryPatch?.purpose===`backlog-curation`?`backlogCurationDraft`:`scope`,coveredSections:[],remainingSections:e.entryPatch?.purpose===`recommendation-refresh`?[]:[`acceptance-criteria`]}}},i=bS({taskId:t,derivedRequest:e.derivedRequest,...e.parentTaskId&&{parentTaskId:e.parentTaskId},...e.selection&&{selection:e.selection},...e.entryPatch});return jS.unshift({entry:i,available:!0,status:`running`,task:r}),{task:r,entry:i}}function LS(e={}){let t=[...jS,...AS],n=typeof e.limit==`number`&&Number.isInteger(e.limit)&&e.limit>0?Math.min(e.limit,100):50,r=typeof e.offset==`number`&&Number.isInteger(e.offset)&&e.offset>=0?e.offset:0;return{tasks:t.slice(r,r+n),total:t.length,limit:n,offset:r}}function RS(e){let t=PS(e);return IS({selection:t,derivedRequest:FS(t),idPrefix:`task-started`})}function zS(e={}){let t=BS(e.itemAuditConcurrency),n=LS().tasks.find(e=>e.entry.purpose===`backlog-curation`&&e.entry.itemAuditConcurrency===t&&!e.entry.appliedAt&&(e.status===`queued`||e.status===`running`||e.status===`completed`));return n?.task?{task:n.task,entry:n.entry,sourceFingerprint:n.entry.sourceFingerprint??wS.sourceFingerprint,reused:!0}:{...IS({selection:{},derivedRequest:`Run a source-first implementation audit for backlog curation.`,idPrefix:`task-backlog-curation-full`,entryPatch:{requestedOutputSections:[`backlogCurationDraft`,`recommendations`],purpose:`backlog-curation`,...t!==void 0&&{itemAuditConcurrency:t},sourceFingerprint:wS.sourceFingerprint}}),sourceFingerprint:wS.sourceFingerprint}}function BS(e){return typeof e==`number`&&Number.isFinite(e)?Math.min(8,Math.max(1,Math.trunc(e))):4}function VS(e,t){let n=LS().tasks.find(t=>t.entry.taskId===e)?.entry,r=n?.purpose===`backlog-curation`;return IS({parentTaskId:e,derivedRequest:`${t===`retry`?`Retry`:`Redraft`} of ${e}`,idPrefix:`task-${t}`,entryPatch:r?{requestedOutputSections:[`backlogCurationDraft`,`recommendations`],purpose:`backlog-curation`,itemAuditConcurrency:n.itemAuditConcurrency??4,sourceFingerprint:n.sourceFingerprint??wS.sourceFingerprint}:void 0})}function HS(e,t){let n={taskId:e,kind:vS,status:`cancelled`,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:`2026-06-07T00:10:00.000Z`,startedAt:`2026-06-07T00:00:01.000Z`,cancelledAt:`2026-06-07T00:10:00.000Z`,errorMessage:t??`cancelled`},r=jS.find(t=>t.entry.taskId===e);return r&&(r.task=n,r.status=`cancelled`),n}function US(){return[...hS,...MS]}function WS(e){let t=String(e.id??``),n=$x.find(e=>e.id===t);if(!n)throw Error(`Backlog item "${t}" not found.`);if(typeof e.status==`string`&&(n.status=e.status,n.closed=e.status===`shipped`||e.status===`superseded`),typeof e.priority==`string`&&(n.priority=e.priority),e.epic!==void 0){let t=typeof e.epic==`string`&&e.epic.length>0?e.epic:void 0;n.epic=t;let r=t?eS.epics?.find(e=>e.id===t):void 0;n.epicRef=t?{id:t,title:r?.title??t,status:r?.status,missing:!r}:void 0}return{itemId:t,status:n.status}}function GS(e){let t=LS().tasks.find(t=>t.entry.taskId===e);t&&(t.entry.appliedAt=`2026-06-07T00:40:00.000Z`);let n={itemChanges:wS.itemChanges.length,epicChanges:wS.epicChanges.length,noOpRechecks:wS.noOpRechecks.length,skippedFreshRechecks:0,changedItemIds:wS.itemChanges.map(e=>e.id),changedEpicIds:wS.epicChanges.map(e=>e.id),recheckedItemIds:wS.noOpRechecks.filter(e=>e.kind===`item`).map(e=>e.id),recheckedEpicIds:wS.noOpRechecks.filter(e=>e.kind===`epic`).map(e=>e.id),skipped:wS.skipped,needsInput:wS.needsInput,recommendations:{recommendations:aS,path:`mock://recommendations/current.json`},generatedRecommendationValidation:ES.generatedRecommendationValidation,recommendationsSkipped:{reason:`invalid-generated-recommendations`,generatedRecommendationValidation:ES.generatedRecommendationValidation}};return{schemaVersion:1,taskId:e,applied:{recommendations:!1,handoffDrafts:0,sessionPlanSections:0,backlogCuration:n.itemChanges+n.epicChanges+n.noOpRechecks},backlogCuration:n}}function KS(e){return MS.some(t=>t.session===e)||MS.push({key:`plan:${e}`,kind:`plan`,session:e,title:`AI-promoted session plan`,status:`planning`,ready:!1}),{session:e,relativePath:`.eforge/session-plans/${e}.md`,readiness:{ready:!1,missingDimensions:[],coveredDimensions:[`scope`,`acceptance-criteria`],skippedDimensions:[`assumptions-and-validation`]}}}var qS=4e4,JS=`# Local focus
288
+
289
+ Prioritize workstation roadmap editing and recommendation refresh UX.
290
+
291
+ - Keep the workstation read-first.
292
+ - Link to [docs](https://example.test/docs) and mention \`roadmap\`.
293
+ `,YS=`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`,XS=null;function ZS(){let e=`2026-06-07T00:30:00.000Z`;return{schemaVersion:1,storagePaths:{localFocus:`.eforge/storage/extensions/eforge-plan/roadmaps/local-focus.md`,config:`.eforge/storage/extensions/eforge-plan/roadmaps/config.json`},config:{schemaVersion:1,sharedSources:[{id:`shared-platform`,path:`docs/shared-roadmap.md`,label:`Shared platform roadmap`}]},context:{schemaVersion:1,localSteering:tC(e),sharedContextSources:[{kind:`configured-shared`,role:`shared-context`,id:`shared-platform`,label:`Shared platform roadmap`,path:`docs/shared-roadmap.md`,configured:!0,editable:!1,exists:!0,sha256:`bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb`,headings:[`Shared priorities`],excerpts:[`Keep shared roadmap files read-only from the workstation.`],content:`# Shared priorities
294
+
295
+ - Keep shared roadmap files read-only from the workstation.
296
+ - Preserve \`source\` metadata.
297
+ `,updatedAt:e}],discoveredContextSources:[{kind:`discovered-conventional`,role:`shared-context`,path:`docs/roadmap.md`,configured:!1,editable:!1,exists:!0,sha256:`cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc`,headings:[`Roadmap`],excerpts:[`Discovered conventional context remains read-only.`],content:`# Roadmap
298
+
299
+ Discovered conventional context remains **read-only**.
300
+ `,updatedAt:e}],assumptions:[`Local focus is private extension storage.`],conflicts:[{code:`configured-source-missing`,message:`Optional configured roadmap is missing.`,path:`docs/missing-roadmap.md`,sourceId:`missing`}],truncation:{sourceExcerpts:1,sourceContent:0}}}}function QS(e){let t=e;if(t.localFocusContent===void 0)throw Error(`mock update-roadmap-state requires localFocusContent.`);if(t.expectedLocalFocusSha256&&t.expectedLocalFocusSha256!==YS)throw Error(`Local focus roadmap changed; reload before saving.`);return JS=t.localFocusContent,YS=YS===`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`?`dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd`:`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`,ZS()}function $S(){return XS={taskId:`task-roadmap-refresh-recommendations`,kind:`eforge-plan.planning-draft`,status:`running`,createdAt:`2026-06-07T00:31:00.000Z`,updatedAt:`2026-06-07T00:31:03.000Z`,startedAt:`2026-06-07T00:31:01.000Z`,metadata:{progressMessage:`Refreshing recommendations from roadmap changes…`,sectionProgress:{currentSection:`recommendations`,coveredSections:[],remainingSections:[]}}},{task:XS,entry:{taskId:XS.taskId,originalRequest:`Refresh recommendations from roadmap.`,derivedRequest:`Refresh recommendations from saved roadmap state.`,selection:{},requestedOutputSections:[`recommendations`],purpose:`recommendation-refresh`,sourceFingerprint:`roadmap-source-fingerprint`,createdAt:XS.createdAt},sourceFingerprint:`roadmap-source-fingerprint`,reused:!1}}function eC(){return XS?{recommendations:aS,recommendationActionability:cS,path:`mock://recommendations/current.json`,status:fS,recommendationFreshness:uS,activeRefreshTask:XS}:mS}function tC(e){return{kind:`local-focus`,role:`local-steering`,path:`.eforge/storage/extensions/eforge-plan/roadmaps/local-focus.md`,label:`Local focus roadmap`,configured:!0,editable:!0,exists:JS.length>0,sha256:YS,headings:[`Local focus`],excerpts:[`Prioritize workstation roadmap editing and recommendation refresh UX.`],content:JS,updatedAt:e,maxContentBytes:qS}}var nC=[`errand`,`excursion`,`expedition`];function rC(e){return typeof e==`string`&&nC.includes(e)?e:void 0}var iC=[],aC=0,oC=()=>new Date().toISOString();function sC(){return aC+=1,`mock-draft-unit-${aC}`}function cC(){return[...iC].sort((e,t)=>e.updatedAt<t.updatedAt?1:e.updatedAt>t.updatedAt?-1:e.unitId.localeCompare(t.unitId))}function lC(e){return{...e,items:e.items.map(e=>({...e}))}}function uC(e){let t=iC.find(t=>t.unitId===e);if(!t)throw Error(`No draft plan unit found for ${e}.`);return t}function dC(e={}){let t=cC().map(e=>({unitId:e.unitId,title:e.title,provenance:e.provenance,...e.sourceRecommendationRef!==void 0&&{sourceRecommendationRef:e.sourceRecommendationRef},...e.profile!==void 0&&{profile:e.profile},itemIds:e.items.map(e=>e.itemId),itemCount:e.items.length,status:e.status,...e.promotedSession!==void 0&&{promotedSession:e.promotedSession},...e.promotedAt!==void 0&&{promotedAt:e.promotedAt},createdAt:e.createdAt,updatedAt:e.updatedAt})),n=typeof e.limit==`number`&&Number.isInteger(e.limit)&&e.limit>0?Math.min(e.limit,100):50,r=typeof e.offset==`number`&&Number.isInteger(e.offset)&&e.offset>=0?e.offset:0;return{units:t.slice(r,r+n),total:t.length,limit:n,offset:r}}function fC(e){return{unit:lC(uC(String(e.unitId??``)))}}function pC(e){let t=String(e.recommendationRef??``),n=aS.safeParallelizableGroups.find(e=>e.ref===t);if(!n)throw Error(`No recommendation lane found for ref "${t}".`);let r=oC(),i={unitId:sC(),title:typeof e.title==`string`&&e.title.trim()||n.title||t,...n.rationale&&{intent:n.rationale},provenance:`recommendation`,sourceRecommendationRef:t,...rC(n.recommendedProfile)&&{profile:rC(n.recommendedProfile)},items:n.itemIds.map(e=>({itemId:e,origin:`recommendation`})),status:`draft`,createdAt:r,updatedAt:r};return iC.push(i),{unit:lC(i)}}function mC(e){let t=uC(String(e.unitId??``));if(typeof e.title==`string`&&(t.title=e.title),typeof e.intent==`string`&&(t.intent=e.intent),e.profile!==void 0){let n=rC(e.profile);n===void 0?delete t.profile:t.profile=n}if(Array.isArray(e.removeItemIds)){let n=new Set(e.removeItemIds.map(String));t.items=t.items.filter(e=>!n.has(e.itemId))}if(Array.isArray(e.addItemIds)){let n=new Set(t.items.map(e=>e.itemId));for(let r of e.addItemIds){let e=String(r);n.has(e)||t.items.push({itemId:e,origin:`user`})}}if(Array.isArray(e.itemOrder)){let n=e.itemOrder.map(String),r=new Map(t.items.map(e=>[e.itemId,e])),i=[];for(let e of n){let t=r.get(e);t&&(i.push(t),r.delete(e))}for(let e of t.items)r.has(e.itemId)&&i.push(e);t.items=i}return t.updatedAt=oC(),{unit:lC(t)}}function hC(e){let t=String(e.unitId??``),n=iC.length;return iC=iC.filter(e=>e.unitId!==t),{unitId:t,deleted:iC.length<n}}function gC(e){let t=new Map,n=new Map;for(let r of eS.items)e.has(r.id)&&(n.set(r.id,r.title),t.set(r.id,r.dependencies.map(e=>e.id).filter(t=>e.has(t))));return{deps:t,labels:n}}function _C(e,t){return e.get(t)??t}function vC(e,t){let{deps:n,labels:r}=gC(new Set([...e,...t])),i=new Map;for(let t of e)i.set(t,`split`);for(let e of t)i.set(e,`remainder`);let a=[],o=new Set;for(let[e,t]of n)for(let n of t){if(i.get(e)===i.get(n))continue;let t=`${e} ${n}`;o.has(t)||(o.add(t),a.push({code:`split-crosses-dependency`,message:`${_C(r,e)} depends on ${_C(r,n)}; splitting separates them into different units.`,itemIds:[e,n]}))}return a.length===0?{severity:`ok`,findings:[{code:`split-respects-dependencies`,message:`The split keeps every dependency within a single unit.`,itemIds:[]}]}:{severity:`caution`,findings:a}}function yC(e){let{deps:t,labels:n}=gC(new Set(e.flat())),r=new Map;e.forEach((e,t)=>{for(let n of e)r.set(n,t)});let i=new Set;for(let[e,n]of t)for(let t of n)r.get(e)===void 0||r.get(t)===void 0||r.get(e)===r.get(t)||(i.add(e),i.add(t));if(i.size>0){let e=[...i].sort();return{severity:`ok`,findings:[{code:`merge-justified-by-dependency`,message:`These units are coupled by dependencies (${e.map(e=>_C(n,e)).join(`, `)}); merging keeps that work together.`,itemIds:e}]}}return{severity:`caution`,findings:[{code:`merge-independent-units`,message:`These units have no dependencies between them; merging serializes work that could otherwise proceed in parallel.`,itemIds:[]}]}}function bC(e){return e.map(e=>uC(e).items.map(e=>e.itemId))}function xC(e){return{advisory:yC(bC(e.unitIds.map(String)))}}function SC(e){let t=uC(String(e.unitId??``)),n=e.itemIds.map(String),r=new Set(n);return{advisory:vC(n,t.items.filter(e=>!r.has(e.itemId)).map(e=>e.itemId))}}function CC(e){let t=e.unitIds.map(String),n=t.map(uC),r=yC(n.map(e=>e.items.map(e=>e.itemId))),i=new Set,a=[];for(let e of n)for(let t of e.items)i.has(t.itemId)||(i.add(t.itemId),a.push({...t}));let[o]=n,s=oC(),c={unitId:sC(),title:typeof e.title==`string`&&e.title.trim()||o.title,...typeof e.intent==`string`?{intent:e.intent}:o.intent===void 0?{}:{intent:o.intent},provenance:`user`,...rC(e.profile)?{profile:rC(e.profile)}:o.profile===void 0?{}:{profile:o.profile},items:a,status:`draft`,createdAt:s,updatedAt:s},l=new Set(t);return iC=iC.filter(e=>!l.has(e.unitId)),iC.push(c),{unit:lC(c),removedUnitIds:t,advisory:r}}function wC(e){let t=uC(String(e.unitId??``)),n=e.itemIds.map(String),r=new Set(n),i=t.items.filter(e=>r.has(e.itemId)).map(e=>({...e})),a=t.items.filter(e=>!r.has(e.itemId)),o=vC(n,a.map(e=>e.itemId));t.items=a,t.updatedAt=oC();let s=oC(),c={unitId:sC(),title:String(e.title??`Split`),...typeof e.intent==`string`?{intent:e.intent}:{},provenance:`user`,...rC(e.profile)?{profile:rC(e.profile)}:{},items:i,status:`draft`,createdAt:s,updatedAt:s};return iC.push(c),{original:lC(t),created:lC(c),advisory:o}}function TC(e){let t=uC(String(e.unitId??``)),n=typeof e.session==`string`&&e.session.trim()||`2026-06-19-${t.unitId}`;return t.status=`promoted`,t.promotedSession=n,t.promotedAt=oC(),t.updatedAt=t.promotedAt,{unit:lC(t),promotion:{session:n,sessionPlanPath:`.eforge/session-plans/${n}.md`,itemIds:t.items.map(e=>e.itemId)}}}var EC={schemaVersion:1,initialized:!0,storePath:`.eforge/storage/extensions/eforge-plan/eforge-plan-private.sqlite`,fileSizes:{dbBytes:262144,walBytes:32768,shmBytes:32768},sqliteSchemaVersion:1,tableCounts:[],searchIndexStatus:{dirty:!0,dirtyCount:3,dirtyTypes:[`backlog_item`,`session_plan`],dirtySince:`2026-06-07T00:00:00.000Z`,lastRebuiltAt:`2026-06-06T00:00:00.000Z`},retentionEligibilityCounts:{"lifecycle-event-payloads":3,"planning-task-payloads":2},recentMaintenanceRuns:[{actionId:`compact-planning-store`,status:`dry-run`,completedAt:`2026-06-07T00:10:00.000Z`,summary:`5 records eligible for compaction.`}]},DC={schemaVersion:1,results:[{type:`backlog_item`,id:`add-import-preview`,title:`Add import preview`,rank:9.2,snippet:{text:`Add <mark>import</mark> preview before writes.`,field:`summary`,highlights:[`import`]},refs:{itemIds:[`add-import-preview`]},updatedAt:`2026-06-07T00:00:00.000Z`},{type:`epic`,id:`planning`,title:`Planning workstation`,rank:7.1,snippet:{text:`<mark>Planning</mark> storage and search.`,field:`title`,highlights:[`Planning`]},refs:{epicIds:[`planning`]}},{type:`session_plan`,id:`2026-06-07-import-preview`,title:`Import preview plan`,rank:6.4,snippet:{text:`Session plan for <mark>import</mark> workflow.`,field:`body`,highlights:[`import`]},refs:{session:`2026-06-07-import-preview`,itemIds:[`add-import-preview`]}},{type:`recommendation`,id:`next-import-preview`,title:`Recommend import preview`,rank:5.5,snippet:{text:`Recommendation mentions <mark>import</mark> preview.`,field:`body`,highlights:[`import`]},refs:{recommendationRef:`next-import-preview`}}],total:4,countsByType:{backlog_item:1,epic:1,session_plan:1,recommendation:1},page:{limit:20,offset:0,returned:4,hasMore:!1},indexDirty:!0,indexStatus:{dirty:!0,dirtyCount:3,dirtyTypes:[`backlog_item`,`session_plan`]}};function OC(e={}){let t=typeof e.query==`string`?e.query.trim().toLowerCase():``,n=typeof e.limit==`number`?Math.min(e.limit,20):20,r=typeof e.offset==`number`?e.offset:0,i=Array.isArray(e.types)?new Set(e.types.map(String)):null,a=DC.results.filter(e=>(!i||i.has(e.type))&&(!t||`${e.title} ${e.snippet?.text??``}`.toLowerCase().includes(t))),o=a.slice(r,r+n);return{...DC,results:o,total:a.length,countsByType:AC(a),page:{limit:n,offset:r,returned:o.length,hasMore:r+o.length<a.length,...r+o.length<a.length?{nextOffset:r+o.length}:{}}}}function kC(e,t={}){return{schemaVersion:1,actionId:e,dryRun:t.dryRun===!0,summary:`${e} completed in mock bridge.`,counts:{inspected:5,changed:t.dryRun===!0?0:3},samples:[{id:`add-import-preview`,action:t.dryRun===!0?`would-compact`:`updated`}]}}function AC(e){return e.reduce((e,t)=>({...e,[t.type]:(e[t.type]??0)+1}),{})}var jC=`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`,MC=`2026-06-07-import-preview`,NC=`eforge-plan.planning-draft`,PC={session:MC,topic:`Add import preview`,status:`planning`,planning_type:`feature`,planning_depth:`focused`,sections:{scope:`Add a bounded import preview flow that shows generated changes before writing.`,"acceptance criteria":`- Preview renders without writing files.
301
+ - Apply requires explicit user action.`}},FC={ready:!1,missingDimensions:[],coveredDimensions:[`scope`,`acceptance-criteria`],skippedDimensions:[]},IC=PC.sections?.scope??``;function LC(e,t){return{taskId:e,kind:NC,status:`completed`,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:`2026-06-07T00:00:05.000Z`,startedAt:`2026-06-07T00:00:01.000Z`,completedAt:`2026-06-07T00:00:05.000Z`,result:{summary:`Revision complete.`,assumptionsOpenQuestions:[],...t}}}function RC(e){return{basePlanFingerprint:jC,baseSectionHashes:[{dimension:`scope`,sha256:jC}],available:!0,...e}}var zC=RC({turnId:`turn-answer-only`,taskId:`task-revision-answer`,userMessage:`Why is this scope bounded?`,createdAt:`2026-06-07T00:01:00.000Z`,task:LC(`task-revision-answer`,{planRevisionTurn:{schemaVersion:1,targetSession:MC,assistantMessage:`The scope is bounded to keep import preview safe and shippable.`,basePlanFingerprint:jC,noPatchReason:`User asked a question only.`}})}),BC=RC({turnId:`turn-patch`,taskId:`task-revision-patch`,userMessage:`Tighten scope and acceptance criteria.`,createdAt:`2026-06-07T00:02:00.000Z`,task:LC(`task-revision-patch`,{planRevisionTurn:{schemaVersion:1,targetSession:MC,assistantMessage:`I drafted a targeted patch for the plan sections.`,basePlanFingerprint:jC,applyGuidance:`Apply sections after previewing current content.`,citations:[{label:`current-plan`,excerpt:`bounded import preview`}],proposedPatch:{sections:[{dimension:`scope`,content:`Deliver a read-only import preview that lists generated file and backlog changes before any write.`,rationale:`Narrows the work to visible preview behavior.`},{dimension:`acceptance-criteria`,content:`- Preview lists generated changes without writing files.
302
+ - Apply requires an explicit confirmation.
303
+ - Cancelling leaves the repository unchanged.`,rationale:`Makes the no-write contract testable.`}],metadata:{openQuestions:[`Should preview include generated PRD text?`]},skippedDimensions:[{dimension:`assumptions-and-validation`,reason:`No safe change requested.`}]}}})}),VC=RC({turnId:`turn-needs-input`,taskId:`task-revision-needs-input`,userMessage:`Rewrite the whole plan.`,createdAt:`2026-06-07T00:04:00.000Z`,task:LC(`task-revision-needs-input`,{decision:`needs-input`,rationale:`The requested revision is too broad for a safe patch.`,clarificationQuestions:[{question:`Which section should be changed first?`,why:`Keeps the revision bounded.`},{question:`Should acceptance criteria become stricter?`}]})}),HC=RC({turnId:`turn-failed`,taskId:`task-revision-failed`,userMessage:`Try and fail.`,createdAt:`2026-06-07T00:05:00.000Z`,task:{taskId:`task-revision-failed`,kind:NC,status:`failed`,createdAt:`2026-06-07T00:05:00.000Z`,updatedAt:`2026-06-07T00:05:02.000Z`,errorMessage:`Mock revision failed.`}}),UC=RC({...BC,turnId:`turn-applied`,taskId:`task-revision-applied`,userMessage:`Already applied.`,createdAt:`2026-06-07T00:06:00.000Z`,appliedSections:[`scope`],appliedAt:`2026-06-07T00:07:00.000Z`,task:LC(`task-revision-applied`,{planRevisionTurn:BC.task?.result?.planRevisionTurn})}),WC=new Map;function GC(e){return{annotationId:`ann-import-scope`,targetSession:e,body:`Clarify no-write behavior.`,target:{kind:`section`,dimension:`scope`,label:`Scope`,capturedText:IC,quoteContext:{exact:IC}},createdAt:`2026-06-07T00:00:30.000Z`,updatedAt:`2026-06-07T00:00:30.000Z`}}function KC(e){let t=WC.get(e);if(t)return t;let n={threadId:`thread-${e}`,targetSession:e,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:`2026-06-07T00:06:00.000Z`,path:`.eforge/session-plans/${e}.md`,plan:PC,readiness:FC,annotations:[GC(e)],turns:[UC,HC,VC,BC,zC]};return WC.set(e,n),n}function qC(e){return e.updatedAt=new Date().toISOString(),e}function JC(e){return KC(String(e.session??MC))}function YC(){let e=[...WC.values(),KC(MC)];return{sessions:e,total:e.length,limit:50,offset:0}}function XC(e){return KC(String(e.session??MC))}function ZC(e){let t=KC(String(e.session??MC)),n=new Date().toISOString(),r=Array.isArray(e.annotationIds)?e.annotationIds.map(String):[],i=e.includeOpenAnnotations===!0,a=String(e.message??e.steering??(r.length>0||i?`Revise from annotations.`:``)),o=new Set(r),s=(t.annotations??[]).filter(e=>!e.resolvedAt&&!e.dismissedAt),c=s.filter(e=>o.has(e.annotationId)||i).map(e=>({...e,snapshotAt:n,snapshotReason:o.has(e.annotationId)&&i?`selected-and-open`:o.has(e.annotationId)?`selected`:`open`})),l=RC({turnId:`turn-dynamic-${t.turns.length}`,taskId:`task-dynamic-${t.turns.length}`,userMessage:a,createdAt:n,annotationSnapshot:r.length>0||i?{steering:typeof e.steering==`string`?e.steering:void 0,selectedAnnotationIds:r,openAnnotationIds:s.map(e=>e.annotationId),includeOpenAnnotations:i,annotations:c}:void 0,task:LC(`task-dynamic-${t.turns.length}`,{planRevisionTurn:{schemaVersion:1,targetSession:t.targetSession,assistantMessage:`Mock answer for: ${a}`,basePlanFingerprint:jC,noPatchReason:`Mock dynamic answer-only turn.`}})});return t.turns=[l,...t.turns],t.updatedAt=n,{session:t,task:l.task,turn:l}}function QC(e){return ZC({session:e.session,message:e.answers?`Redraft from clarification answers.`:`Retry ${String(e.turnId??e.taskId??``)}`})}function $C(e){let t=KC(String(e.session??MC));return t.turns=t.turns.map(t=>t.turnId===e.turnId?{...t,task:t.task?{...t.task,status:`cancelled`,errorMessage:`Cancelled in mock bridge.`}:t.task}:t),qC(t)}function ew(e){let t=KC(String(e.session??MC)),n=new Date().toISOString();return t.annotations=[{annotationId:`ann-${Date.now()}`,targetSession:t.targetSession,body:typeof e.body==`string`?e.body:void 0,target:e.target,createdAt:n,updatedAt:n},...t.annotations??[]],qC(t)}function tw(e){let t=KC(String(e.session??MC)),n=new Date().toISOString();return t.annotations=(t.annotations??[]).map(t=>t.annotationId===e.annotationId?{...t,body:typeof e.body==`string`?e.body:void 0,updatedAt:n}:t),qC(t)}function nw(e){let t=KC(String(e.session??MC));return t.annotations=(t.annotations??[]).filter(t=>t.annotationId!==e.annotationId),qC(t)}function rw(e){let t=KC(String(e.session??MC)),n=new Date().toISOString();return t.annotations=(t.annotations??[]).map(t=>t.annotationId===e.annotationId?{...t,resolvedAt:n,updatedAt:n}:t),qC(t)}function iw(e){let t=KC(String(e.session??MC)),n=new Date().toISOString();return t.annotations=(t.annotations??[]).map(t=>t.annotationId===e.annotationId?{...t,dismissedAt:n,updatedAt:n}:t),qC(t)}function aw(e){let t=KC(String(e.session??MC)),n=t.turns.find(t=>t.turnId===e.turnId||t.taskId===e.taskId);if(!n||n.turnId===`turn-answer-only`||n.turnId===`turn-needs-input`)return{kind:`not-applicable`,session:t.targetSession,turnId:String(e.turnId??``),message:`This turn has no section patch.`};let r=(n.task?.result?.planRevisionTurn?.proposedPatch?.sections??[]).map(e=>e.dimension);n.appliedSections=Array.from(new Set([...n.appliedSections??[],...r])).sort(),n.appliedAt=`2026-06-07T00:08:00.000Z`;let i=_S(t.targetSession);return{kind:`applied`,session:t.targetSession,turnId:n.turnId,taskId:n.taskId,appliedSections:r,plan:i.plan??PC,readiness:i.readiness??FC,message:`Applied plan revision sections.`}}var ow=new Set;function sw(){return window.eforge?.invokeAction?window.eforge:uw()}function cw(e){let t=e.ready?`2026-06-07T00:20:00.000Z`:void 0,n=e.status===`submitted`?`2026-06-07T00:25:00.000Z`:void 0,r=e.landingRefs?.[0]?.landedAt??e.lifecycleLinks?.flatMap(e=>[e.completedAt,e.startedAt,e.timestamp]).find(Boolean);return{...e,createdAt:`2026-06-07T00:00:00.000Z`,updatedAt:r??t??`2026-06-07T00:10:00.000Z`,...t?{readyAt:t}:{},...n?{submittedAt:n}:{},...r?{lastBuildActivityAt:r}:{}}}function lw(e){if(!e||typeof e!=`object`||!(`plan`in e))return e;let t=e;if(!t.plan)return e;let n=cw({session:t.plan.session,status:t.plan.status,ready:t.plan.ready,lifecycleLinks:t.plan.lifecycleLinks,landingRefs:t.plan.landingRefs});return t.plan={...t.plan,createdAt:n.createdAt,updatedAt:n.updatedAt,readyAt:n.readyAt,submittedAt:ow.has(t.plan.session)?new Date().toISOString():n.submittedAt,lastBuildActivityAt:n.lastBuildActivityAt},t}function uw(){return{version:1,async invokeAction(e,t={}){switch(await new Promise(e=>setTimeout(e,120)),e){case`list-planning-artifacts`:{let e=US().filter(e=>!e.session||!ow.has(e.session)).map(cw),n=typeof t.limit==`number`&&Number.isInteger(t.limit)&&t.limit>0?Math.min(t.limit,100):50,r=typeof t.offset==`number`&&Number.isInteger(t.offset)&&t.offset>=0?t.offset:0,i=e.slice(r,r+n);return{artifacts:i,plans:i.filter(e=>e.kind===`plan`),planSets:i.filter(e=>e.kind===`plan-set`),total:e.length,limit:n,offset:r,...t.includeBoard===!0?{board:eS}:{}}}case`list-agent-runtime-profiles`:return{active:`team-runtime`,source:`project`,profiles:[{name:`team-runtime`,harness:`pi`,path:`mock://profile/team-runtime.yaml`,scope:`project`,metadata:{description:`Team default build agent profile`}},{name:`local-fast`,harness:`claude-sdk`,path:`mock://profile/local-fast.yaml`,scope:`local`,metadata:{description:`Fast local iteration profile`}}]};case`list-board`:return eS;case`list-board-compact`:return tS(t);case`get-item`:return nS(String(t.id??``));case`update-item`:return WS(t);case`get-roadmap-state`:return ZS();case`get-store-status`:return EC;case`search-planning-records`:return OC(t);case`compact-planning-store`:return kC(`compact-planning-store`,t);case`rebuild-search-index`:return kC(`rebuild-search-index`,t);case`optimize-search-index`:return kC(`optimize-search-index`,t);case`vacuum-planning-store`:return kC(`vacuum-planning-store`,t);case`update-roadmap-state`:return QS(t);case`refresh-recommendations`:return $S();case`get-recommendations`:return eC();case`analyze-all-backlog`:return zS(t);case`show-session-plan`:return lw(gS(`plan:${String(t.session??``)}`));case`show-session-plan-set`:return gS(`plan-set:${String(t.planSetId??``)}`);case`promote-selection`:return{session:`2026-06-07-promoted-selection`,sessionPlanPath:`.eforge/session-plans/2026-06-07-promoted-selection.md`};case`prepare-planner-context`:return{items:eS.items,epics:eS.epics,recommendations:{model:aS}};case`start-planning-agent-task`:return{task:RS(t).task};case`get-planning-agent-task`:return{task:{...pS,taskId:String(t.taskId??pS.taskId)}};case`preview-backlog-curation-task`:return String(t.taskId??``).includes(`full`)?DS:ES;case`list-planning-agent-tasks`:return LS(t);case`retry-planning-agent-task`:return VS(String(t.taskId??``),`retry`);case`redraft-planning-agent-task`:return VS(String(t.taskId??``),`redraft`);case`cancel-planning-agent-task`:return{task:HS(String(t.taskId??pS.taskId),typeof t.reason==`string`?t.reason:void 0)};case`start-plan-revision-session`:return JC(t);case`list-plan-revision-sessions`:return YC();case`get-plan-revision-session`:return XC(t);case`create-plan-revision-annotation`:return ew(t);case`update-plan-revision-annotation`:return tw(t);case`delete-plan-revision-annotation`:return nw(t);case`resolve-plan-revision-annotation`:return rw(t);case`dismiss-plan-revision-annotation`:return iw(t);case`start-plan-revision-turn`:return ZC(t);case`retry-plan-revision-turn`:return QC(t);case`cancel-plan-revision-turn`:return $C(t);case`apply-plan-revision-turn`:return aw(t);case`apply-planning-agent-task-result`:{if(t.applyBacklogCurationDraft!==void 0)return GS(String(t.taskId??pS.taskId));let e=t.applySessionPlanCreationDraft,n={recommendations:!!t.applyRecommendations,handoffDrafts:Array.isArray(t.applyHandoffDrafts)?t.applyHandoffDrafts.length:0,sessionPlanSections:Array.isArray(t.applySessionPlanDrafts)?t.applySessionPlanDrafts.length:0},r=typeof e?.session==`string`&&e.session.trim().length>0?e.session.trim():yS,i=e===void 0?void 0:KS(r);return{schemaVersion:1,taskId:String(t.taskId??pS.taskId),applied:n,recommendations:{recommendations:aS,path:`mock://recommendations/current.json`},...i&&{sessionPlanCreationDraft:i}}}case`check-session-plan-readiness`:return{session:String(t.session??``),readiness:{ready:!0,missingDimensions:[],coveredDimensions:[],skippedDimensions:[]}};case`set-session-plan-ready`:return{kind:`ready`,..._S(String(t.session??``)),status:`ready`};case`set-session-plan-section`:return _S(String(t.session??``));case`select-session-plan-dimensions`:return{..._S(String(t.session??``)),required_dimensions:[`scope`,`acceptance-criteria`],optional_dimensions:[]};case`update-session-plan-metadata`:return _S(String(t.session??``),{profile:t.profile??null,agent_profile:t.agentProfile??null,open_questions:t.openQuestions??[]});case`delete-session-plan`:return{kind:`deleted`,session:String(t.session??``),status:`abandoned`,message:`Deleted ${String(t.session??`mock`)} from active plans by marking it abandoned.`};case`handoff-session-plan`:{let e=String(t.session??`mock`);return ow.add(e),{kind:`enqueued`,message:`Enqueued .eforge/session-plans/${e}.md for build.`,queueSessionId:`mock-build-session`,pid:1234,autoBuild:!0,submittedAt:new Date().toISOString()}}case`list-draft-units`:return dC(t);case`get-draft-unit`:return fC(t);case`fork-recommendation-to-draft-unit`:return pC(t);case`update-draft-unit`:return mC(t);case`delete-draft-unit`:return hC(t);case`promote-draft-unit`:return TC(t);case`merge-draft-units`:return CC(t);case`split-draft-unit`:return wC(t);case`advise-merge-draft-units`:return xC(t);case`advise-split-draft-unit`:return SC(t);default:return{message:`${e} accepted by mock bridge.`}}}}}function dw(e,t){let n=gw(e),r=new Map(n.map(e=>[e.id,e])),i=ww(t),a=e.items.map(e=>mw(e,r,i)),o=yw(a);return{lanes:(e.lanes??_w(a)).map(e=>({lane:e.lane,title:e.title,items:o.get(e.lane)??[],count:e.count,openCount:e.openCount,closedCount:e.closedCount,pagination:e.pagination})),items:a,epics:n,counts:e.counts??vw(a),pagination:e.pagination??{limit:e.limit,offset:e.offset,returned:a.length,hasMore:e.offset+a.length<e.total}}}function fw(e,t,n,r){let i=dw(t,n),a=r?.scope===`lane`?r.lane:void 0,o=a!==void 0||r===void 0&&i.lanes.some(e=>e.pagination!==void 0),s=new Set(i.items.map(e=>e.id)),c=bw(e.epics??[],i.epics??[]),l=new Map(c.map(e=>[e.id,e])),u=xw([...(e.items??[]).filter(e=>!s.has(e.id)),...i.items],l),d=new Map(i.lanes.map(e=>[e.lane,e])),f=new Map((e.lanes??[]).map(e=>[e.lane,{...e,items:u.filter(t=>t.lane===e.lane)}]));for(let e of i.lanes){let n=f.get(e.lane),r=e.pagination??(a===e.lane?t.pagination:void 0)??n?.pagination;f.set(e.lane,{...e,pagination:r,items:u.filter(t=>t.lane===e.lane)})}let p=[...f.values()].map(e=>{let n=d.get(e.lane),r=n?.pagination??(a===e.lane?t.pagination:void 0)??e.pagination;return n?{...e,count:n.count,openCount:n.openCount,closedCount:n.closedCount,pagination:r}:e});return{...e,items:u,lanes:p,epics:c,counts:t.counts??e.counts,pagination:o?e.pagination:t.pagination??e.pagination}}function pw(e,t){return hw(e,t.item,t.dependencies??[],t.dependents??[])}function mw(e,t,n){let r=n.get(e.id);return{id:e.id,title:e.title,status:e.status,priority:e.priority,tags:e.tags,lane:e.lane,reasons:e.reasons,unresolvedDependsOn:e.unresolvedDependsOn??[],activeTraceReasons:e.activeTraceReasons??[],blocked:e.blocked,ready:e.ready,reviewDue:e.reviewDue,closed:e.closed,...e.epic?{epic:e.epic,epicRef:Sw(e.epic,t)}:{},dependencies:(e.dependsOn??[]).map(t=>Cw(t,(e.unresolvedDependsOn??[]).includes(t))),dependents:[],notes:{claim:``,evidence:``,recheck:``,promotionPaths:``},...r?.rank===void 0?{}:{recRank:r.rank},recLanes:r?.lanes??[],...r?.unblock?{recUnblock:r.unblock}:{},lifecycleState:e.lifecycleState,userStatus:e.userStatus,effectiveLifecycle:e.effectiveLifecycle,reasonCodes:e.reasonCodes??[],associatedLinks:e.associatedLinks??[],planEligible:e.planEligible,planEligibilityReasonCode:e.planEligibilityReasonCode,planEligibilityReasonMessage:e.planEligibilityReasonMessage,planEligibilityLinks:e.planEligibilityLinks??[],linkRows:e.linkRows??e.associatedLinks??[],lifecycleLinks:e.linkRows??e.associatedLinks??[],snippets:e.snippet?.text?[e.snippet.text]:[]}}function hw(e,t,n,r){let i=t.sections??{},a=t.unresolvedDependsOn??[],o=e=>i[e]??i[e.toLowerCase()]??``,s=t.planEligible===void 0?{planEligible:e.planEligible,planEligibilityReasonCode:e.planEligibilityReasonCode,planEligibilityReasonMessage:e.planEligibilityReasonMessage,planEligibilityLinks:e.planEligibilityLinks??[]}:t.planEligible?{planEligible:!0,planEligibilityReasonCode:t.planEligibilityReasonCode,planEligibilityReasonMessage:t.planEligibilityReasonMessage,planEligibilityLinks:t.planEligibilityLinks??[]}:{planEligible:!1,planEligibilityReasonCode:t.planEligibilityReasonCode??e.planEligibilityReasonCode,planEligibilityReasonMessage:t.planEligibilityReasonMessage??e.planEligibilityReasonMessage,planEligibilityLinks:t.planEligibilityLinks??e.planEligibilityLinks??[]};return{...e,...mw(t,new Map,ww(null)),epicRef:e.epicRef,recRank:e.recRank,recLanes:e.recLanes,recUnblock:e.recUnblock,dependencies:n.map(e=>Cw(e.id,a.includes(e.id),e.title,e.status)),dependents:r.map(e=>Cw(e.id,!1,e.title,e.status)),notes:{claim:o(`Claim`),evidence:o(`Evidence`),recheck:o(`Recheck`),promotionPaths:o(`Promotion Paths`)},linkRows:t.linkRows??t.associatedLinks??e.linkRows??[],lifecycleLinks:t.linkRows??t.associatedLinks??e.lifecycleLinks??[],failureEvidence:t.failureEvidence??[],lifecycleState:t.lifecycleState??e.lifecycleState,userStatus:t.userStatus??e.userStatus,effectiveLifecycle:t.effectiveLifecycle??e.effectiveLifecycle,reasonCodes:t.reasonCodes??e.reasonCodes??[],associatedLinks:t.associatedLinks??e.associatedLinks??[],...s,snippets:t.snippet?.text?[t.snippet.text]:e.snippets,body:t.body??e.body}}function gw(e){return(e.epics??[]).map(e=>({id:e.id,title:e.title,status:e.status,priority:e.priority,tags:e.tags,itemCount:e.itemCount,openItemCount:e.openItemCount,hasBody:e.hasBody}))}function _w(e){return[...yw(e).entries()].map(([e,t])=>({lane:e,title:e,count:t.length,openCount:t.filter(e=>!e.closed).length,closedCount:t.filter(e=>e.closed).length}))}function vw(e){return{total:e.length,open:e.filter(e=>!e.closed).length,closed:e.filter(e=>e.closed).length}}function yw(e){let t=new Map;for(let n of e)t.set(n.lane,[...t.get(n.lane)??[],n]);return t}function bw(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t)n.set(e.id,e);return[...n.values()]}function xw(e,t){return e.map(e=>e.epic?{...e,epicRef:Sw(e.epic,t)}:e)}function Sw(e,t){let n=t.get(e);return{id:e,title:n?.title??e,status:n?.status,missing:!n}}function Cw(e,t,n=e,r){return{id:e,title:n,status:r,missing:!1,blocking:t}}function ww(e){let t=new Map;e?.recommendedNextSequence.forEach((e,n)=>{let r=t.get(e.itemId)??{lanes:[]};t.set(e.itemId,{...r,rank:n+1})});for(let n of e?.safeParallelizableGroups??[])for(let e of n.itemIds){let r=t.get(e)??{lanes:[]};t.set(e,{...r,lanes:[...r.lanes,n.title??n.ref]})}for(let n of e?.blockedChains??[])for(let e of n.itemIds){let r=t.get(e)??{lanes:[]};t.set(e,{...r,unblock:n.rationale})}return t}var Tw=sw(),Ew={lanes:[],items:[],epics:[],counts:{total:0,open:0,closed:0}},Dw=50,Ow=50;function kw(){let[e,t]=w.useState(Ew),[n,r]=w.useState([]),[i,a]=w.useState(null),[o,s]=w.useState(null),[c,l]=w.useState(null),[u,d]=w.useState(null),[f,p]=w.useState(null),[m,h]=w.useState(null),[g,_]=w.useState([]),[v,y]=w.useState(null),[b,x]=w.useState(null),[S,C]=w.useState(!1),[T,ee]=w.useState(null),E=w.useCallback(async()=>{C(!0);let[e,n,i,o,c,u]=await Promise.allSettled([Tw.invokeAction(`list-board-compact`,{limit:Dw,includeArchive:!0,includeEpics:!0}),Tw.invokeAction(`list-planning-artifacts`,{includeBoard:!1}),Tw.invokeAction(`get-recommendations`,{}),Tw.invokeAction(`get-roadmap-state`,{includeLocalFocusContent:!0}),Tw.invokeAction(`list-draft-units`,{}),Tw.invokeAction(`get-store-status`,{})]),f=[],m=i.status===`fulfilled`?i.value.recommendations??null:null;e.status===`fulfilled`?t(dw(e.value,m)):f.push(Aw(`board`,e.reason)),n.status===`fulfilled`?r(n.value.artifacts??[]):f.push(Aw(`plans`,n.reason)),i.status===`fulfilled`?(a(m),s(i.value.recommendationActionability??null),l(i.value.status??null),d(i.value.recommendationFreshness??null),p(i.value.activeRefreshTask??null)):(a(null),s(null),l(null),d(null),p(null),f.push(Aw(`recommendations`,i.reason))),o.status===`fulfilled`?h(o.value):f.push(Aw(`roadmap`,o.reason)),c.status===`fulfilled`?_(c.value.units??[]):f.push(Aw(`drafts`,c.reason)),u.status===`fulfilled`?(y(u.value),x(null)):x(Aw(`store status`,u.reason)),ee(f.length>0?f.join(` · `):null),C(!1)},[]),D=w.useCallback(async()=>{let n=e.pagination;if(!(!n?.hasMore||n.nextOffset===void 0))try{let e=await Tw.invokeAction(`list-board-compact`,{limit:Dw,includeArchive:!0,includeEpics:!0,offset:n.nextOffset});t(t=>fw(t,e,i,{scope:`board`})),ee(null)}catch(e){ee(Aw(`board page`,e))}},[e.pagination,i]),te=w.useCallback(async n=>{let r=e.lanes.find(e=>e.lane===n)?.pagination;if(!(r&&!r.hasMore))try{let e=await Tw.invokeAction(`list-board-compact`,{lane:n,includeClosed:!0,includeArchive:!0,includeEpics:!0,limit:Ow,offset:r?.nextOffset??0});t(t=>fw(t,e,i,{scope:`lane`,lane:n})),ee(null)}catch(e){ee(Aw(`closed ${n}`,e))}},[e.lanes,i]),O=w.useCallback(async()=>{try{y(await Tw.invokeAction(`get-store-status`,{})),x(null)}catch(e){x(Aw(`store status`,e))}},[]),ne=w.useCallback(async e=>{let t=await Tw.invokeAction(`update-roadmap-state`,e);return h(t),await E(),t},[E]),k=w.useCallback(async()=>{let e=await Tw.invokeAction(`refresh-recommendations`,{});return p(e.task),await E(),e},[E]),A=w.useCallback(async(e,t)=>{let{unit:n}=await Tw.invokeAction(`fork-recommendation-to-draft-unit`,{recommendationRef:e,...t?{title:t}:{}});return await E(),n},[E]),re=w.useCallback(async e=>{let{unit:t}=await Tw.invokeAction(`update-draft-unit`,e);return await E(),t},[E]),ie=w.useCallback(async e=>{await Tw.invokeAction(`delete-draft-unit`,{unitId:e}),await E()},[E]),j=w.useCallback(async(e,t)=>{let n=await Tw.invokeAction(`promote-draft-unit`,{unitId:e,...t?.session?{session:t.session}:{},...t?.status?{status:t.status}:{}});return await E(),n},[E]),ae=w.useCallback(async e=>{let t=await Tw.invokeAction(`merge-draft-units`,e);return await E(),t},[E]),oe=w.useCallback(async e=>{let t=await Tw.invokeAction(`split-draft-unit`,e);return await E(),t},[E]),se=w.useCallback(async e=>(await Tw.invokeAction(`advise-merge-draft-units`,{unitIds:e})).advisory,[]),ce=w.useCallback(async(e,t)=>(await Tw.invokeAction(`advise-split-draft-unit`,{unitId:e,itemIds:t})).advisory,[]);return w.useEffect(()=>{E()},[E]),{board:e,artifacts:n,recommendations:i,recommendationActionability:o,recommendationStatus:c,recommendationFreshness:u,activeRecommendationRefreshTask:f,roadmapState:m,draftUnits:g,storeStatus:v,storeStatusError:b,refreshStoreStatus:O,saveRoadmapState:ne,refreshRecommendations:k,forkRecommendationToDraftUnit:A,updateDraftUnit:re,deleteDraftUnit:ie,promoteDraftUnit:j,mergeDraftUnits:ae,splitDraftUnit:oe,adviseMergeDraftUnits:se,adviseSplitDraftUnit:ce,loading:S,error:T,refresh:E,loadMoreBoard:D,loadClosedLane:te,bridgeVersion:Tw.version}}function Aw(e,t){return`${e}: ${t instanceof Error?t.message:String(t)}`}function jw(e){typeof document>`u`||document.getElementById(`board-item-${e}`)?.scrollIntoView({behavior:`smooth`,block:`center`})}var Mw={high:3,medium:2,low:1},Nw=[`inbox`,`ready`,`blocked`,`in-progress`,`done`,`archive`],Pw={inbox:`var(--lane-inbox)`,ready:`var(--lane-ready)`,blocked:`var(--lane-blocked)`,"in-progress":`var(--lane-progress)`,done:`var(--lane-done)`,archive:`var(--lane-archive)`},Fw=[{id:`next`,title:`Next up`,tone:`var(--lane-ready)`},{id:`blocked`,title:`Blocked`,tone:`var(--lane-blocked)`},{id:`other`,title:`Other open`,tone:`var(--lane-archive)`},{id:`closed`,title:`Closed`,tone:`var(--lane-done)`}],Iw=new Set([`planned-session-plan`,`submitted-session-plan`,`active-planning-task`,`queued-build`,`running-build`,`active-build-session`,`open-pr`,`shipped-result`,`merged-result`,`failed-result`,`partial-plan`]);function Lw(e){return typeof e.planEligible==`boolean`?e.planEligible:e.closed||e.blocked||e.lane===`in-progress`||e.lane===`done`||e.lane===`archive`||e.lane===`blocked`?!1:!(e.reasonCodes??[]).some(e=>Iw.has(e))}function Rw(e,t){return t===`open`?!e.closed:t===`ready`?Lw(e):t===`blocked`?e.blocked&&!e.closed:t===`review`?e.reviewDue:t!==`closed`||e.closed}function zw(e,t){if(!t)return!0;let n=(e.lifecycleLinks??[]).map(e=>[e.kind,e.stage,e.status,e.label,e.session,e.sessionId,e.prdId,e.runId,e.buildSessionId,e.prUrl,e.featureBranch,e.branch,e.commitSha,e.affectedItemIds?.join(` `),e.affectedEpicIds?.join(` `)].filter(Boolean).join(` `)).join(`
304
+ `);return[e.id,e.title,e.status,e.priority,e.tags.join(` `),e.dependencies.map(e=>e.id).join(` `),e.epic??``,e.epicRef?.title??``,e.notes?.claim??``,e.notes?.evidence??``,e.notes?.recheck??``,n,e.userStatus??``,e.effectiveLifecycle??``,(e.reasonCodes??[]).join(` `),(e.associatedLinks??[]).map(e=>[e.kind,e.label,e.session,e.runId,e.prUrl,e.commitSha].filter(Boolean).join(` `)).join(` `),(e.snippets??[]).join(` `)].join(`
305
+ `).toLowerCase().includes(t)}function Bw(e,t,n){let r=t.trim().toLowerCase();return e.filter(e=>Rw(e,n)&&zw(e,r))}function Vw(e){return e.closed?`closed`:e.recRank===void 0?e.blocked?`blocked`:`other`:`next`}function Hw(e){return[...e].sort((e,t)=>{if(e.blocked!==t.blocked)return e.blocked?1:-1;let n=(Mw[t.priority]??0)-(Mw[e.priority]??0);return n===0?e.title.localeCompare(t.title):n})}function Uw(e,t=[]){let n=new Map;for(let e of t){let t=e.openItemCount??e.itemCount??0;t>0&&n.set(e.id,{id:e.id,title:e.title??e.id,count:t,missing:!1})}for(let r of e){if(!r.epicRef)continue;let e=n.get(r.epicRef.id);e?t.some(e=>e.id===r.epicRef?.id)||(e.count+=1):n.set(r.epicRef.id,{id:r.epicRef.id,title:r.epicRef.title,count:1,missing:r.epicRef.missing})}return[...n.values()].sort((e,t)=>Number(e.missing)-Number(t.missing)||e.title.localeCompare(t.title))}function Ww(e,t,n){return n===`epic`?Kw(e,t):n===`recommended`?qw(t):Gw(e,t)}function Gw(e,t){let n=new Set(t.map(e=>e.id)),r=new Map(e.lanes.map(e=>[e.lane,e]));return Nw.filter(e=>r.has(e)).map(e=>{let i=r.get(e),a=Hw(t.filter(t=>t.lane===e&&n.has(t.id)));return{key:e,title:i?.title??e,tone:Pw[e]??`var(--lane-archive)`,items:a,count:i?.count,pagination:i?.pagination}}).filter(n=>{if(n.items.length>0)return!0;let i=r.get(n.key);return(n.key===`done`||n.key===`archive`)&&t.length===e.items.length&&i?.items.length===0&&(n.count??0)>0})}function Kw(e,t){let n=Uw(t,e.epics??[]).map(e=>({key:e.id,title:e.title,tone:e.missing?`var(--lane-blocked)`:`var(--lane-ready)`,items:Hw(t.filter(t=>t.epicRef?.id===e.id))})),r=t.filter(e=>!e.epicRef);return r.length>0&&n.push({key:``,title:`No epic`,tone:`var(--lane-archive)`,items:Hw(r)}),n}function qw(e){return Fw.map(t=>({key:t.id,title:t.title,tone:t.tone,items:t.id===`next`?[...e.filter(e=>Vw(e)===`next`)].sort((e,t)=>(e.recRank??1/0)-(t.recRank??1/0)):Hw(e.filter(e=>Vw(e)===t.id))})).filter(e=>e.key!==`closed`||e.items.length>0)}function Jw(e){let t=new Map(e.map(e=>[e.id,e])),n=new Set,r=new Map,i=(e,a)=>{let o=a.indexOf(e);if(o>=0){let t=[...a.slice(o),e];r.set(Yw(t),t);return}if(n.has(e))return;let s=t.get(e);if(s){n.add(e);for(let t of s.dependencies)i(t.id,[...a,e])}};for(let t of e)i(t.id,[]);return[...r.values()]}function Yw(e){let t=e.slice(0,-1);return t.map((e,n)=>[...t.slice(n),...t.slice(0,n)].join(`→`)).sort()[0]??e.join(`→`)}function Xw(e){return e.replace(/^backlog-\d{4}-\d{2}-\d{2}-/,``)}function Zw(e,t){let n=e.filter(e=>!e.closed);return{open:t?.counts?.open??n.length,ready:n.filter(Lw).length,blocked:n.filter(e=>e.blocked).length,review:e.filter(e=>e.reviewDue).length,closed:t?.counts?.closed??e.filter(e=>e.closed).length}}function Qw(e,t){return Uw(e,t)}function $w(e=[]){return e.filter(e=>(e.openItemCount??e.itemCount??0)===0&&e.hasBody===!0).sort((e,t)=>(e.title??e.id).localeCompare(t.title??t.id))}function eT(e,t){let[n,r]=w.useState(new Set),i=e.items??[],a=w.useMemo(()=>new Map(i.map(e=>[e.id,e.title])),[i]),o=w.useMemo(()=>new Map(i.map(e=>[e.id,Lw(e)])),[i]),s=w.useMemo(()=>new Set(i.filter(Lw).map(e=>e.id)),[i]),c=w.useCallback(e=>{r(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),l=w.useCallback(e=>c(e.id),[c]),u=w.useCallback(()=>r(new Set),[]),d=w.useCallback(e=>{c(e),jw(e)},[c]),f=w.useCallback(e=>{e.length!==0&&r(t=>{let n=e.every(e=>t.has(e)),r=new Set(t);for(let t of e)n?r.delete(t):r.add(t);return n||jw(e[0]),r})},[]),p=w.useMemo(()=>Array.from(n),[n]),m=w.useMemo(()=>Array.from(n).filter(e=>o.get(e)===!0),[n,o]);return{selected:n,selectedIds:p,selectedPlanEligibleIds:m,titles:a,planEligibleIds:s,toggle:c,toggleItem:l,clear:u,pickItem:d,pickItems:f,planLane:w.useCallback(async(e,n)=>{let r=e.filter(e=>o.get(e)===!0);r.length!==0&&await t.start({itemIds:r,...n?{sourceRecommendationRef:n}:{}})},[o,t]),promote:w.useCallback(async()=>{m.length!==0&&await t.start({itemIds:m})&&u()},[m,t,u])}}function tT(e,t){let n=e.itemIds??[];if(n.length===0)return null;let r=n.map(e=>t?.get(e)).find(Boolean);if(!r)return`${n.length} backlog item${n.length===1?``:`s`}`;let i=n.length-1;return i>0?`${r} +${i} more`:r}function nT(e){return/^draft a session plan for /i.test(e.trim())}function rT(e,t){let n=e?.trim()??``;return n&&!nT(n)?n:iT(t)||n||t}function iT(e){return e.replace(/^(?:group|epic)-/i,``).replace(/[-_]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase()).trim()}var aT=`draft:`,oT=`plan:`;function sT(e){return`${aT}${e}`}function cT(e){return`${oT}${e}`}function lT(e){return e.startsWith(aT)?e.slice(6):null}function uT(e){return{key:e.key,title:rT(e.title,e.session??e.key),status:e.status,lifecycleState:e.lifecycleState}}function dT(e){return e.sourceRefs?.sourceItemIds??e.sourceRefs?.itemIds??[]}function fT(e){return e.sourceRefs?.sourceEpicIds??e.sourceRefs?.epicIds??[]}function pT(e){return e.lifecycleState??e.status}function mT(e){let t=new Map;for(let n of e){if(n.kind!==`plan`)continue;let e=uT(n);for(let r of dT(n)){let n=t.get(r);n?n.push(e):t.set(r,[e])}}return t}function hT(){let e=Jx();return w.useMemo(()=>({openItem:t=>e?.setQuery(e=>{e.delete(`focus`),e.set(`item`,t)}),openPlan:t=>e?.setQuery(e=>{e.set(`focus`,`plans`),e.set(`plan`,t)})}),[e])}function gT(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var _T=gT();function vT(e){_T=e}var yT={exec:()=>null};function bT(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function xT(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(CT.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ST=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),CT={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:bT(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:bT(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:bT(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:bT(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:bT(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:bT(e=>RegExp(`^ {0,${e}}>`))},wT=/^(?:[ \t]*(?:\n|$))+/,TT=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ET=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,DT=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,OT=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,kT=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,AT=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jT=xT(AT).replace(/bull/g,kT).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),MT=xT(AT).replace(/bull/g,kT).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),NT=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,PT=/^[^\n]+/,FT=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,IT=xT(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,FT).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),LT=xT(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,kT).getRegex(),RT=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,zT=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,BT=xT(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,zT).replace(`tag`,RT).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),VT=e=>xT(NT).replace(`hr`,DT).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,e).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,RT).getRegex(),HT=VT(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),UT=VT(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/),WT={blockquote:xT(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,UT).getRegex(),code:TT,def:IT,fences:ET,heading:OT,hr:DT,html:BT,lheading:jT,list:LT,newline:wT,paragraph:HT,table:yT,text:PT},GT=xT(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,DT).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,RT).getRegex(),KT={...WT,lheading:MT,table:GT,paragraph:xT(NT).replace(`hr`,DT).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,GT).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,RT).getRegex()},qT={...WT,html:xT(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,zT).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yT,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:xT(NT).replace(`hr`,DT).replace(`heading`,` *#{1,6} *[^
306
+ ]`).replace(`lheading`,jT).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},JT=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,YT=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,XT=/^( {2,}|\\)\n(?!\s*$)/,ZT=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,QT=/[\p{P}\p{S}]/u,$T=/[\s\p{P}\p{S}]/u,eE=/[^\s\p{P}\p{S}]/u,tE=xT(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,$T).getRegex(),nE=/(?!~)[\p{P}\p{S}]/u,rE=/(?!~)[\s\p{P}\p{S}]/u,iE=/(?:[^\s\p{P}\p{S}]|~)/u,aE=xT(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,ST?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),oE=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,sE=xT(oE,`u`).replace(/punct/g,QT).getRegex(),cE=xT(oE,`u`).replace(/punct/g,nE).getRegex(),lE=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,uE=xT(lE,`gu`).replace(/notPunctSpace/g,eE).replace(/punctSpace/g,$T).replace(/punct/g,QT).getRegex(),dE=xT(lE,`gu`).replace(/notPunctSpace/g,iE).replace(/punctSpace/g,rE).replace(/punct/g,nE).getRegex(),fE=xT(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,eE).replace(/punctSpace/g,$T).replace(/punct/g,QT).getRegex(),pE=xT(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,QT).getRegex(),mE=xT(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,eE).replace(/punctSpace/g,$T).replace(/punct/g,QT).getRegex(),hE=xT(/\\(punct)/,`gu`).replace(/punct/g,QT).getRegex(),gE=xT(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_E=xT(zT).replace(`(?:-->|$)`,`-->`).getRegex(),vE=xT(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,_E).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yE=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,bE=xT(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,yE).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xE=xT(/^!?\[(label)\]\[(ref)\]/).replace(`label`,yE).replace(`ref`,FT).getRegex(),SE=xT(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,FT).getRegex(),CE=xT(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,xE).replace(`nolink`,SE).getRegex(),wE=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,TE={_backpedal:yT,anyPunctuation:hE,autolink:gE,blockSkip:aE,br:XT,code:YT,del:yT,delLDelim:yT,delRDelim:yT,emStrongLDelim:sE,emStrongRDelimAst:uE,emStrongRDelimUnd:fE,escape:JT,link:bE,nolink:SE,punctuation:tE,reflink:xE,reflinkSearch:CE,tag:vE,text:ZT,url:yT},EE={...TE,link:xT(/^!?\[(label)\]\((.*?)\)/).replace(`label`,yE).getRegex(),reflink:xT(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,yE).getRegex()},DE={...TE,emStrongRDelimAst:dE,emStrongLDelim:cE,delLDelim:pE,delRDelim:mE,url:xT(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,wE).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:xT(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,wE).getRegex()},OE={...DE,br:xT(XT).replace(`{2,}`,`*`).getRegex(),text:xT(DE.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},kE={normal:WT,gfm:KT,pedantic:qT},AE={normal:TE,gfm:DE,breaks:OE,pedantic:EE},jE={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},ME=e=>jE[e];function NE(e,t){if(t){if(CT.escapeTest.test(e))return e.replace(CT.escapeReplace,ME)}else if(CT.escapeTestNoEncode.test(e))return e.replace(CT.escapeReplaceNoEncode,ME);return e}function PE(e){try{e=encodeURI(e).replace(CT.percentDecode,`%`)}catch{return null}return e}function FE(e,t){let n=e.replace(CT.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(CT.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(CT.slashPipe,`|`);return n}function IE(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function LE(e){let t=e.split(`
307
+ `),n=t.length-1;for(;n>=0&&CT.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
308
+ `)}function RE(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function zE(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function BE(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function VE(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
309
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
310
+ `)}var HE=class{options;rules;lexer;constructor(e){this.options=e||_T}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:LE(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=VE(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=IE(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:IE(t[0],`
311
+ `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:IE(t[0],`
312
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=IE(t[0],`
313
+ `).split(`
314
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
315
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
316
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
317
+ ${s}`:s,r=r?`${r}
318
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
319
+ `+e.join(`
320
+ `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
321
+ `+e.join(`
322
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
323
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=zE(t[2].split(`
324
+ `,1)[0],t[1].length),l=e.split(`
325
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
326
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
327
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
328
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
329
+ `+l}u=!l.trim(),r+=p+`
330
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=LE(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:IE(t[0],`
331
+ `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=FE(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
332
+ `):[],a={type:`table`,raw:IE(t[0],`
333
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(FE(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:IE(t[0],`
334
+ `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
335
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=IE(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=RE(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),BE(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return BE(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},UE=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_T,this.options.tokenizer=this.options.tokenizer||new HE,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:CT,block:kE.normal,inline:AE.normal};this.options.pedantic?(t.block=kE.pedantic,t.inline=AE.pedantic):this.options.gfm&&(t.block=kE.gfm,this.options.breaks?t.inline=AE.breaks:t.inline=AE.gfm),this.tokenizer.rules=t}static get rules(){return{block:kE,inline:AE}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(CT.carriageReturn,`
336
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(CT.tabCharGlobal,` `).replace(CT.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
337
+ `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
338
+ `)?``:`
339
+ `)+i.raw,n.text+=`
340
+ `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
341
+ `)?``:`
342
+ `)+i.raw,n.text+=`
343
+ `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
344
+ `)?``:`
345
+ `)+i.raw,r.text+=`
346
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
347
+ `)?``:`
348
+ `)+i.raw,n.text+=`
349
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},WE=class{options;parser;constructor(e){this.options=e||_T}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(CT.notSpaceStart)?.[0],i=e.replace(CT.endingNewline,``)+`
350
+ `;return r?`<pre><code class="language-`+NE(r)+`">`+(n?i:NE(i,!0))+`</code></pre>
351
+ `:`<pre><code>`+(n?i:NE(i,!0))+`</code></pre>
352
+ `}blockquote({tokens:e}){return`<blockquote>
353
+ ${this.parser.parse(e)}</blockquote>
354
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
355
+ `}hr(e){return`<hr>
356
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
357
+ `+r+`</`+i+`>
358
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
359
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
360
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
361
+ <thead>
362
+ `+t+`</thead>
363
+ `+r+`</table>
364
+ `}tablerow({text:e}){return`<tr>
365
+ ${e}</tr>
366
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
367
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${NE(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=PE(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+NE(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=PE(e);if(i===null)return NE(n);e=i;let a=`<img src="${e}" alt="${NE(n)}"`;return t&&(a+=` title="${NE(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:NE(e.text)}},GE=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},KE=class e{options;renderer;textRenderer;constructor(e){this.options=e||_T,this.options.renderer=this.options.renderer||new WE,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new GE}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},qE=class{options;block;constructor(e){this.options=e||_T}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?UE.lex:UE.lexInline}provideParser(e=this.block){return e?KE.parse:KE.parseInline}},JE=class{defaults=gT();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=KE;Renderer=WE;TextRenderer=GE;Lexer=UE;Tokenizer=HE;Hooks=qE;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new WE(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new HE(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new qE;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];qE.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&qE.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return UE.lex(e,t??this.defaults)}parser(e,t){return KE.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?UE.lex:UE.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?KE.parse:KE.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?UE.lex:UE.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?KE.parse:KE.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
368
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+NE(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},YE=new JE;function XE(e,t){return YE.parse(e,t)}XE.options=XE.setOptions=function(e){return YE.setOptions(e),XE.defaults=YE.defaults,vT(XE.defaults),XE},XE.getDefaults=gT,XE.defaults=_T,XE.use=function(...e){return YE.use(...e),XE.defaults=YE.defaults,vT(XE.defaults),XE},XE.walkTokens=function(e,t){return YE.walkTokens(e,t)},XE.parseInline=YE.parseInline,XE.Parser=KE,XE.parser=KE.parse,XE.Renderer=WE,XE.TextRenderer=GE,XE.Lexer=UE,XE.lexer=UE.lex,XE.Tokenizer=HE,XE.Hooks=qE,XE.parse=XE,XE.options,XE.setOptions,XE.use,XE.walkTokens,XE.parseInline,KE.parse,UE.lex;function ZE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function QE(e){if(Array.isArray(e))return e}function $E(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function eD(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
369
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tD(e,t){return QE(e)||$E(e,t)||nD(e,t)||eD()}function nD(e,t){if(e){if(typeof e==`string`)return ZE(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZE(e,t):void 0}}var rD=Object.entries,iD=Object.setPrototypeOf,aD=Object.isFrozen,oD=Object.getPrototypeOf,sD=Object.getOwnPropertyDescriptor,cD=Object.freeze,lD=Object.seal,uD=Object.create,dD=typeof Reflect<`u`&&Reflect,fD=dD.apply,pD=dD.construct;cD||=function(e){return e},lD||=function(e){return e},fD||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},pD||=function(e){return new e(...[...arguments].slice(1))};var mD=PD(Array.prototype.forEach),hD=PD(Array.prototype.lastIndexOf),gD=PD(Array.prototype.pop),_D=PD(Array.prototype.push),vD=PD(Array.prototype.splice),yD=Array.isArray,bD=PD(String.prototype.toLowerCase),xD=PD(String.prototype.toString),SD=PD(String.prototype.match),CD=PD(String.prototype.replace),wD=PD(String.prototype.indexOf),TD=PD(String.prototype.trim),ED=PD(Number.prototype.toString),DD=PD(Boolean.prototype.toString),OD=typeof BigInt>`u`?null:PD(BigInt.prototype.toString),kD=typeof Symbol>`u`?null:PD(Symbol.prototype.toString),AD=PD(Object.prototype.hasOwnProperty),jD=PD(Object.prototype.toString),MD=PD(RegExp.prototype.test),ND=FD(TypeError);function PD(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return fD(e,t,n)}}function FD(e){return function(){return pD(e,[...arguments])}}function ID(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bD;if(iD&&iD(e,null),!yD(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(aD(t)||(t[r]=e),i=e)}e[i]=!0}return e}function LD(e){for(let t=0;t<e.length;t++)AD(e,t)||(e[t]=null);return e}function RD(e){let t=uD(null);for(let r of rD(e)){var n=tD(r,2);let i=n[0],a=n[1];AD(e,i)&&(yD(a)?t[i]=LD(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=RD(a):t[i]=a)}return t}function zD(e){switch(typeof e){case`string`:return e;case`number`:return ED(e);case`boolean`:return DD(e);case`bigint`:return OD?OD(e):`0`;case`symbol`:return kD?kD(e):`Symbol()`;case`undefined`:return jD(e);case`function`:case`object`:{if(e===null)return jD(e);let t=e,n=BD(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:jD(e)}return jD(e)}default:return jD(e)}}function BD(e,t){for(;e!==null;){let n=sD(e,t);if(n){if(n.get)return PD(n.get);if(typeof n.value==`function`)return PD(n.value)}e=oD(e)}function n(){return null}return n}function VD(e){try{return MD(e,``),!0}catch{return!1}}var HD=cD(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),UD=cD(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),WD=cD([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),GD=cD([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),KD=cD(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),qD=cD([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),JD=cD([`#text`]),YD=cD(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),XD=cD(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ZD=cD(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),QD=cD([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),$D=lD(/{{[\w\W]*|^[\w\W]*}}/g),eO=lD(/<%[\w\W]*|^[\w\W]*%>/g),tO=lD(/\${[\w\W]*/g),nO=lD(/^data-[\-\w.\u00B7-\uFFFF]+$/),rO=lD(/^aria-[\-\w]+$/),iO=lD(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aO=lD(/^(?:\w+script|data):/i),oO=lD(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sO=lD(/^html$/i),cO=lD(/^[a-z][.\w]*(-[.\w]+)+$/i),lO=lD(/<[/\w!]/g),uO=lD(/<[/\w]/g),dO=lD(/<\/no(script|embed|frames)/i),fO=lD(/\/>/i),pO={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mO=function(){return typeof window>`u`?null:window},hO=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},gO=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},_O=function(e,t,n,r){return AD(e,t)&&yD(e[t])?ID(r.base?RD(r.base):{},e[t],r.transform):n};function vO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mO(),t=e=>vO(e);if(t.version=`3.4.11`,t.removed=[],!e||!e.document||e.document.nodeType!==pO.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=BD(d,`cloneNode`),p=BD(d,`remove`),m=BD(d,`nextSibling`),h=BD(d,`childNodes`),g=BD(d,`parentNode`),_=BD(d,`shadowRoot`),v=BD(d,`attributes`),y=o&&o.prototype?BD(o.prototype,`nodeType`):null,b=o&&o.prototype?BD(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,w=!1,T=0,ee=function(){if(T>0)throw ND(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},E=function(e){ee(),T++;try{return x.createHTML(e)}finally{T--}},D=function(e){ee(),T++;try{return x.createScriptURL(e)}finally{T--}},te=function(){return w||=(C=hO(u,i),!0),C},O=n,ne=O.implementation,k=O.createNodeIterator,A=O.createDocumentFragment,re=O.getElementsByTagName,ie=r.importNode,j=gO();t.isSupported=typeof rD==`function`&&typeof g==`function`&&ne&&ne.createHTMLDocument!==void 0;let ae=$D,oe=eO,se=tO,ce=nO,le=rO,ue=aO,de=oO,fe=cO,pe=iO,me=null,he=ID({},[...HD,...UD,...WD,...KD,...JD]),ge=null,_e=ID({},[...YD,...XD,...ZD,...QD]),ve=Object.seal(uD(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,ye=null,be=Object.seal(uD(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),xe=!0,Se=!0,N=!1,Ce=!0,we=!1,Te=!0,Ee=!1,De=!1,Oe=null,ke=null,Ae=!1,je=!1,Me=!1,Ne=!1,Pe=!0,Fe=!1,Ie=`user-content-`,Le=!0,Re=!1,ze={},Be=null,Ve=ID({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),He=null,Ue=ID({},[`audio`,`video`,`img`,`source`,`image`,`track`]),We=null,Ge=ID({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ke=`http://www.w3.org/1998/Math/MathML`,qe=`http://www.w3.org/2000/svg`,Je=`http://www.w3.org/1999/xhtml`,Ye=Je,Xe=!1,Ze=null,Qe=ID({},[Ke,qe,Je],xD),$e=cD([`mi`,`mo`,`mn`,`ms`,`mtext`]),et=ID({},$e),tt=cD([`annotation-xml`]),nt=ID({},tt),rt=ID({},[`title`,`style`,`font`,`a`,`script`]),it=null,at=[`application/xhtml+xml`,`text/html`],ot=null,st=null,ct=n.createElement(`form`),lt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(st&&st===e)return;(!e||typeof e!=`object`)&&(e={}),e=RD(e),it=at.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ot=it===`application/xhtml+xml`?xD:bD,me=_O(e,`ALLOWED_TAGS`,he,{transform:ot}),ge=_O(e,`ALLOWED_ATTR`,_e,{transform:ot}),Ze=_O(e,`ALLOWED_NAMESPACES`,Qe,{transform:xD}),We=_O(e,`ADD_URI_SAFE_ATTR`,Ge,{transform:ot,base:Ge}),He=_O(e,`ADD_DATA_URI_TAGS`,Ue,{transform:ot,base:Ue}),Be=_O(e,`FORBID_CONTENTS`,Ve,{transform:ot}),M=_O(e,`FORBID_TAGS`,RD({}),{transform:ot}),ye=_O(e,`FORBID_ATTR`,RD({}),{transform:ot}),ze=AD(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?RD(e.USE_PROFILES):e.USE_PROFILES:!1,xe=e.ALLOW_ARIA_ATTR!==!1,Se=e.ALLOW_DATA_ATTR!==!1,N=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=e.SAFE_FOR_TEMPLATES||!1,Te=e.SAFE_FOR_XML!==!1,Ee=e.WHOLE_DOCUMENT||!1,je=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Pe=e.SANITIZE_DOM!==!1,Fe=e.SANITIZE_NAMED_PROPS||!1,Le=e.KEEP_CONTENT!==!1,Re=e.IN_PLACE||!1,pe=VD(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:iO,Ye=typeof e.NAMESPACE==`string`?e.NAMESPACE:Je,et=AD(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?RD(e.MATHML_TEXT_INTEGRATION_POINTS):ID({},$e),nt=AD(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?RD(e.HTML_INTEGRATION_POINTS):ID({},tt);let t=AD(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?RD(e.CUSTOM_ELEMENT_HANDLING):uD(null);if(ve=uD(null),AD(t,`tagNameCheck`)&&lt(t.tagNameCheck)&&(ve.tagNameCheck=t.tagNameCheck),AD(t,`attributeNameCheck`)&&lt(t.attributeNameCheck)&&(ve.attributeNameCheck=t.attributeNameCheck),AD(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ve.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),lD(ve),we&&(Se=!1),Me&&(je=!0),ze&&(me=ID({},JD),ge=uD(null),ze.html===!0&&(ID(me,HD),ID(ge,YD)),ze.svg===!0&&(ID(me,UD),ID(ge,XD),ID(ge,QD)),ze.svgFilters===!0&&(ID(me,WD),ID(ge,XD),ID(ge,QD)),ze.mathMl===!0&&(ID(me,KD),ID(ge,ZD),ID(ge,QD))),be.tagCheck=null,be.attributeCheck=null,AD(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?be.tagCheck=e.ADD_TAGS:yD(e.ADD_TAGS)&&(me===he&&(me=RD(me)),ID(me,e.ADD_TAGS,ot))),AD(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?be.attributeCheck=e.ADD_ATTR:yD(e.ADD_ATTR)&&(ge===_e&&(ge=RD(ge)),ID(ge,e.ADD_ATTR,ot))),AD(e,`ADD_URI_SAFE_ATTR`)&&yD(e.ADD_URI_SAFE_ATTR)&&ID(We,e.ADD_URI_SAFE_ATTR,ot),AD(e,`FORBID_CONTENTS`)&&yD(e.FORBID_CONTENTS)&&(Be===Ve&&(Be=RD(Be)),ID(Be,e.FORBID_CONTENTS,ot)),AD(e,`ADD_FORBID_CONTENTS`)&&yD(e.ADD_FORBID_CONTENTS)&&(Be===Ve&&(Be=RD(Be)),ID(Be,e.ADD_FORBID_CONTENTS,ot)),Le&&(me[`#text`]=!0),Ee&&ID(me,[`html`,`head`,`body`]),me.table&&(ID(me,[`tbody`]),delete M.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ND(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ND(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=E(``)}catch(e){throw x=t,e}}else e.TRUSTED_TYPES_POLICY===null?(x=void 0,S=``):(x===void 0&&(x=te()),x&&typeof S==`string`&&(S=E(``)));cD&&cD(e),st=e},dt=ID({},[...UD,...WD,...GD]),ft=ID({},[...KD,...qD]),pt=function(e,t,n){return t.namespaceURI===Je?e===`svg`:t.namespaceURI===Ke?e===`svg`&&(n===`annotation-xml`||et[n]):!!dt[e]},mt=function(e,t,n){return t.namespaceURI===Je?e===`math`:t.namespaceURI===qe?e===`math`&&nt[n]:!!ft[e]},ht=function(e,t,n){return t.namespaceURI===qe&&!nt[n]||t.namespaceURI===Ke&&!et[n]?!1:!ft[e]&&(rt[e]||!dt[e])},gt=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:Ye,tagName:`template`});let n=bD(e.tagName),r=bD(t.tagName);return Ze[e.namespaceURI]?e.namespaceURI===qe?pt(n,t,r):e.namespaceURI===Ke?mt(n,t,r):e.namespaceURI===Je?ht(n,t,r):!!(it===`application/xhtml+xml`&&Ze[e.namespaceURI]):!1},_t=function(e){_D(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw ND(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},vt=function(e){let t=h(e);if(t){let e=[];mD(t,t=>{_D(e,t)}),mD(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},yt=function(e,n){try{_D(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{_D(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(je||Me)try{_t(n)}catch{}else try{n.setAttribute(e,``)}catch{}},bt=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||ge[ot(i)]))try{e.removeAttribute(i)}catch{}}},xt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===pO.element&&bt(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},St=function(e){let t=null,r=null;if(Ae)e=`<remove></remove>`+e;else{let t=SD(e,/^[\r\n\t ]+/);r=t&&t[0]}it===`application/xhtml+xml`&&Ye===Je&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?E(e):e;if(Ye===Je)try{t=new l().parseFromString(i,it)}catch{}if(!t||!t.documentElement){t=ne.createDocument(Ye,`template`,null);try{t.documentElement.innerHTML=Xe?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ye===Je?re.call(t,Ee?`html`:`body`)[0]:Ee?t.documentElement:a},Ct=function(e){return k.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},wt=function(e){return e=CD(e,ae,` `),e=CD(e,oe,` `),e=CD(e,se,` `),e},Tt=function(e){e.normalize();let t=k.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=wt(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&mD(r,e=>{Dt(e.content)&&Tt(e.content)})},Et=function(e){let t=b?b(e):null;return typeof t!=`string`||ot(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},Dt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===pO.documentFragment}catch{return!1}},Ot=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function kt(e,n,r){e.length!==0&&mD(e,e=>{e.call(t,n,r,st)})}let At=function(e,t){return!!(Te&&e.hasChildNodes()&&!Ot(e.firstElementChild)&&MD(lO,e.textContent)&&MD(lO,e.innerHTML)||Te&&e.namespaceURI===Je&&t===`style`&&Ot(e.firstElementChild)||e.nodeType===pO.processingInstruction||Te&&e.nodeType===pO.comment&&MD(uO,e.data))},jt=function(e,t){if(!M[t]&&Ft(t)&&(ve.tagNameCheck instanceof RegExp&&MD(ve.tagNameCheck,t)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(t)))return!1;if(Le&&!Be[t]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Re?n[i]:f(n[i],!0);t.insertBefore(r,m(e))}}}return _t(e),!0},Mt=function(e){if(kt(j.beforeSanitizeElements,e,null),Et(e))return _t(e),!0;let n=ot(b?b(e):e.nodeName);if(kt(j.uponSanitizeElement,e,{tagName:n,allowedTags:me}),At(e,n))return _t(e),!0;if(M[n]||!(be.tagCheck instanceof Function&&be.tagCheck(n))&&!me[n])return jt(e,n);if((y?y(e):e.nodeType)===pO.element&&!gt(e)||(n===`noscript`||n===`noembed`||n===`noframes`)&&MD(dO,e.innerHTML))return _t(e),!0;if(we&&e.nodeType===pO.text){let n=wt(e.textContent);e.textContent!==n&&(_D(t.removed,{element:e.cloneNode()}),e.textContent=n)}return kt(j.afterSanitizeElements,e,null),!1},Nt=function(e,t,r){if(ye[t]||Pe&&(t===`id`||t===`name`)&&(r in n||r in ct))return!1;let i=ge[t]||be.attributeCheck instanceof Function&&be.attributeCheck(t,e);if(!(Se&&MD(ce,t))&&!(xe&&MD(le,t))){if(!i){if(!(Ft(e)&&(ve.tagNameCheck instanceof RegExp&&MD(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&MD(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t,e))||t===`is`&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&MD(ve.tagNameCheck,r)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(r))))return!1}else if(!We[t]&&!MD(pe,CD(r,de,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&wD(r,`data:`)===0&&He[e])&&!(N&&!MD(ue,CD(r,de,``)))&&r)return!1}return!0},Pt=ID({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ft=function(e){return!Pt[bD(e)]&&MD(fe,e)},It=function(e,t,n,r){if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return E(r);case`TrustedScriptURL`:return D(r)}return r},Lt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Et(e)?_t(e):gD(t.removed)}catch{yt(n,e)}},Rt=function(e){kt(j.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Et(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ge,forceKeepAttr:void 0},r=t.length,i=ot(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=ot(o),u=c,d=o===`value`?u:TD(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,kt(j.uponSanitizeAttribute,e,n),d=n.attrValue,Fe&&(l===`id`||l===`name`)&&wD(d,Ie)!==0&&(yt(o,e),d=Ie+d),Te&&MD(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){yt(o,e);continue}if(l===`attributename`&&SD(d,`href`)){yt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){yt(o,e);continue}if(!Ce&&MD(fO,d)){yt(o,e);continue}if(we&&(d=wt(d)),!Nt(i,l,d)){yt(o,e);continue}d=It(i,l,s,d),d!==u&&Lt(e,o,s,d)}}kt(j.afterSanitizeAttributes,e,null)},zt=function(e){let t=null,n=Ct(e);for(kt(j.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(kt(j.uponSanitizeShadowNode,t,null),Mt(t),Rt(t),Dt(t.content)&&zt(t.content),(y?y(t):t.nodeType)===pO.element){let e=_(t);Dt(e)&&(Bt(e),zt(e))}kt(j.afterSanitizeShadowDOM,e,null)},Bt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){zt(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===pO.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&ot(e)===`template`){let e=n.content;Dt(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);Dt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Xe=!e,Xe&&(e=`<!-->`),typeof e!=`string`&&!Ot(e)&&(e=zD(e),typeof e!=`string`))throw ND(`dirty is not a string, aborting`);if(!t.isSupported)return e;De?(me=Oe,ge=ke):ut(n),(j.uponSanitizeElement.length>0||j.uponSanitizeAttribute.length>0)&&(me=RD(me)),j.uponSanitizeAttribute.length>0&&(ge=RD(ge)),t.removed=[];let c=Re&&typeof e!=`string`&&Ot(e);if(c){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=ot(t);if(!me[e]||M[e])throw ND(`root node is forbidden and cannot be sanitized in-place`)}if(Et(e))throw ND(`root node is clobbered and cannot be sanitized in-place`);try{Bt(e)}catch(t){throw vt(e),t}}else if(Ot(e))i=St(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===pO.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Bt(a);else{if(!je&&!we&&!Ee&&e.indexOf(`<`)===-1)return x&&Ne?E(e):e;if(i=St(e),!i)return je?null:Ne?S:``}i&&Ae&&_t(i.firstChild);let l=Ct(c?e:i);try{for(;o=l.nextNode();)Mt(o),Rt(o),Dt(o.content)&&zt(o.content)}catch(t){throw c&&vt(e),t}if(c)return mD(t.removed,e=>{e.element&&xt(e.element)}),we&&Tt(e),e;if(je){if(we&&Tt(i),Me)for(s=A.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ge.shadowroot||ge.shadowrootmode)&&(s=ie.call(r,s,!0)),s}let u=Ee?i.outerHTML:i.innerHTML;return Ee&&me[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&MD(sO,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
370
+ `+u),we&&(u=wt(u)),x&&Ne?E(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ut(e),De=!0,Oe=me,ke=ge},t.clearConfig=function(){st=null,De=!1,Oe=null,ke=null,x=C,S=``},t.isValidAttribute=function(e,t,n){st||ut({});let r=ot(e),i=ot(t);return Nt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&AD(j,e)&&_D(j[e],t)},t.removeHook=function(e,t){if(AD(j,e)){if(t!==void 0){let n=hD(j[e],t);return n===-1?void 0:vD(j[e],n,1)[0]}return gD(j[e])}},t.removeHooks=function(e){AD(j,e)&&(j[e]=[])},t.removeAllHooks=function(){j=gO()},t}var yO=vO(),bO=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/mermaid-diagram.tsx`,xO={securityLevel:`strict`,startOnLoad:!1},SO=12e3,CO=0,wO=Promise.resolve();function TO(){return CO+=1,`eforge-mermaid-${CO}`}async function EO(){return(await _x(()=>import(`./assets/mermaid.core-7qPnBf_x.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))).default}function DO(e){return yO.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:[`a`,`audio`,`embed`,`foreignObject`,`foreignobject`,`iframe`,`image`,`link`,`object`,`picture`,`script`,`source`,`style`,`video`],FORBID_CONTENTS:[`a`,`foreignObject`,`foreignobject`,`link`,`script`],FORBID_ATTR:[`href`,`poster`,`src`,`srcset`,`style`,`xlink:href`]})}function OO(e){return typeof e==`string`?e:e.svg}async function kO(e){let t=wO.then(e,e);return wO=t.then(()=>void 0,()=>void 0),t}function AO({source:e}){let t=w.useMemo(TO,[]),[n,r]=w.useState({kind:`loading`});return w.useEffect(()=>{let n=!1;async function i(){if(r({kind:`loading`}),e.length>SO){r({kind:`error`,message:`Mermaid source exceeds ${SO} characters.`});return}try{let i=await kO(async()=>{let n=await EO();return n.initialize(xO),await n.parse(e),DO(OO(await n.render(t,e)))});if(!i.includes(`<svg`))throw Error(`Mermaid did not return SVG output.`);n||r({kind:`rendered`,svg:i})}catch(e){n||r({kind:`error`,message:e instanceof Error?e.message:`Mermaid rendering failed.`})}}return i(),()=>{n=!0}},[t,e]),n.kind===`rendered`?(0,I.jsxDEV)(`figure`,{className:`plan-mermaid`,role:`img`,"aria-label":`Mermaid diagram`,children:(0,I.jsxDEV)(`div`,{className:`plan-mermaid-svg`,dangerouslySetInnerHTML:{__html:n.svg}},void 0,!1,{fileName:bO,lineNumber:120,columnNumber:9},this)},void 0,!1,{fileName:bO,lineNumber:119,columnNumber:7},this):n.kind===`error`?(0,I.jsxDEV)(`figure`,{className:`plan-mermaid plan-mermaid-error`,role:`group`,"aria-label":`Mermaid diagram failed to render`,children:[(0,I.jsxDEV)(`div`,{role:`alert`,children:[`Unable to render Mermaid diagram: `,n.message]},void 0,!0,{fileName:bO,lineNumber:132,columnNumber:9},this),(0,I.jsxDEV)(`pre`,{"aria-label":`Mermaid source fallback`,children:(0,I.jsxDEV)(`code`,{children:e},void 0,!1,{fileName:bO,lineNumber:133,columnNumber:51},this)},void 0,!1,{fileName:bO,lineNumber:133,columnNumber:9},this)]},void 0,!0,{fileName:bO,lineNumber:131,columnNumber:7},this):(0,I.jsxDEV)(`div`,{className:`plan-mermaid plan-mermaid-loading`,role:`status`,"aria-label":`Rendering Mermaid diagram`,children:`Rendering diagram…`},void 0,!1,{fileName:bO,lineNumber:138,columnNumber:10},this)}var jO=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/safe-markdown.tsx`,MO=`plan-mermaid-placeholder`,NO=[`img`,`picture`,`source`,`video`,`audio`,`object`,`embed`,`svg`,`style`,`link`],PO=[`poster`,`src`,`srcset`,`style`];function FO(e){return(e??``).trim().split(/\s+/)[0]?.toLowerCase()===`mermaid`}function IO(e){let t=e.replace(/<table>/g,`<div class="plan-table-scroll"><table>`).replace(/<\/table>/g,`</table></div>`);return yO.sanitize(t,{ADD_ATTR:[`data-mermaid-index`],FORBID_TAGS:NO,FORBID_ATTR:PO})}function LO(e){let t=[];return{html:IO(new JE({gfm:!0,renderer:{code(e){return FO(e.lang)?`<div class="${MO}" data-mermaid-index="${t.push(e.text)-1}"></div>`:!1}}}).parse(e,{async:!1})),mermaidBlocks:t}}function RO(e,t){let n=[];return e.querySelectorAll(`.${MO}[data-mermaid-index]`).forEach(e=>{let r=Number(e.dataset.mermaidIndex),i=Number.isInteger(r)?t[r]:void 0;if(i===void 0)return;let a=(0,He.createRoot)(e);a.render((0,I.jsxDEV)(AO,{source:i},void 0,!1,{fileName:jO,lineNumber:64,columnNumber:17},this)),n.push(a)}),n}function zO({markdown:e,className:t}){let n=w.useRef(null),r=w.useMemo(()=>LO(e),[e]),i=w.useMemo(()=>({__html:r.html}),[r]);return w.useEffect(()=>{let e=n.current;if(!e||r.mermaidBlocks.length===0)return;let t=RO(e,r.mermaidBlocks);return()=>{t.forEach(e=>e.unmount())}},[r]),(0,I.jsxDEV)(`div`,{ref:n,className:`plan-prose${t?` ${t}`:``}`,dangerouslySetInnerHTML:i},void 0,!1,{fileName:jO,lineNumber:102,columnNumber:5},this)}var BO=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/card.tsx`,VO=w.forwardRef(({className:e,...t},n)=>(0,I.jsxDEV)(`div`,{ref:n,className:xn(`rounded-lg border bg-card text-card-foreground shadow-sm`,e),...t},void 0,!1,{fileName:BO,lineNumber:5,columnNumber:3},void 0));VO.displayName=`Card`;var HO=w.forwardRef(({className:e,...t},n)=>(0,I.jsxDEV)(`div`,{ref:n,className:xn(`flex flex-col space-y-1.5 p-4`,e),...t},void 0,!1,{fileName:BO,lineNumber:10,columnNumber:3},void 0));HO.displayName=`CardHeader`;var UO=w.forwardRef(({className:e,...t},n)=>(0,I.jsxDEV)(`div`,{ref:n,className:xn(`font-semibold leading-none tracking-tight`,e),...t},void 0,!1,{fileName:BO,lineNumber:15,columnNumber:3},void 0));UO.displayName=`CardTitle`;var WO=w.forwardRef(({className:e,...t},n)=>(0,I.jsxDEV)(`div`,{ref:n,className:xn(`text-sm text-muted-foreground`,e),...t},void 0,!1,{fileName:BO,lineNumber:20,columnNumber:3},void 0));WO.displayName=`CardDescription`;var GO=w.forwardRef(({className:e,...t},n)=>(0,I.jsxDEV)(`div`,{ref:n,className:xn(`p-4 pt-0`,e),...t},void 0,!1,{fileName:BO,lineNumber:25,columnNumber:3},void 0));GO.displayName=`CardContent`;var KO=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/rail-card.tsx`;function qO({icon:e,iconClassName:t,title:n,action:r,className:i,contentClassName:a,headerExtra:o,children:s,...c}){return(0,I.jsxDEV)(VO,{className:xn(`min-w-0`,i),"aria-label":c[`aria-label`],children:[(0,I.jsxDEV)(HO,{className:`pb-2`,children:[(0,I.jsxDEV)(UO,{className:`flex items-center gap-2 text-sm`,children:[e&&(0,I.jsxDEV)(e,{className:xn(`h-4 w-4 text-muted-foreground`,t)},void 0,!1,{fileName:KO,lineNumber:30,columnNumber:20},this),n,r]},void 0,!0,{fileName:KO,lineNumber:29,columnNumber:9},this),o]},void 0,!0,{fileName:KO,lineNumber:28,columnNumber:7},this),(0,I.jsxDEV)(GO,{className:xn(`min-w-0 [&_*]:min-w-0`,a),children:s},void 0,!1,{fileName:KO,lineNumber:36,columnNumber:7},this)]},void 0,!0,{fileName:KO,lineNumber:27,columnNumber:5},this)}var JO=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/textarea.tsx`,YO=w.forwardRef(({className:e,...t},n)=>(0,I.jsxDEV)(`textarea`,{className:xn(`flex min-h-24 w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),ref:n,...t},void 0,!1,{fileName:JO,lineNumber:5,columnNumber:3},void 0));YO.displayName=`Textarea`;var XO={neutral:`border-border text-muted-foreground`,info:`border-[color:var(--lane-ready)]/40 bg-[color:var(--lane-ready)]/10 text-[color:var(--lane-ready)]`,progress:`border-[color:var(--lane-progress)]/40 bg-[color:var(--lane-progress)]/10 text-[color:var(--lane-progress)]`,done:`border-[color:var(--lane-done)]/40 bg-[color:var(--lane-done)]/10 text-[color:var(--lane-done)]`,warn:`border-[color:var(--prio-medium)]/40 bg-[color:var(--prio-medium)]/10 text-[color:var(--prio-medium)]`,danger:`border-[color:var(--lane-blocked)]/40 bg-[color:var(--lane-blocked)]/10 text-[color:var(--lane-blocked)]`,destructive:`border-destructive/40 bg-destructive/10 text-destructive-foreground`,accent:`border-primary/40 bg-primary/10 text-text-bright`};function ZO(e){return XO[e]}function QO(e){switch(e){case`running`:return`progress`;case`queued`:return`warn`;case`completed`:return`done`;case`failed`:return`danger`;case`cancelled`:return`neutral`;default:return`neutral`}}function $O(e){return e===`fresh`?`info`:`warn`}function ek(e){switch(e){case`Plan`:return`accent`;case`Queue`:return`info`;case`Run`:return`progress`;case`PR open`:case`Partial`:return`warn`;case`Merged`:return`done`;case`Failed`:return`danger`;default:return`neutral`}}var tk=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/tone-chip.tsx`;function nk({tone:e,className:t,...n}){return(0,I.jsxDEV)(`span`,{className:xn(`inline-flex items-center gap-1 rounded border px-1.5 py-0.5 text-2xs font-semibold`,ZO(e),t),...n},void 0,!1,{fileName:tk,lineNumber:17,columnNumber:5},this)}var rk=new TextEncoder;function ik(e){return rk.encode(e).length}function ak(e,t=!1){let n=ik(e.draft),r=e.draft!==e.saved,i=n>e.maxBytes;return{bytes:n,maxBytes:e.maxBytes,dirty:r,overLimit:i,canSave:r&&!i&&!t}}function ok(e){return e?{local:+!!e.context.localSteering,configuredShared:e.context.sharedContextSources.filter(e=>e.configured).length,discovered:e.context.discoveredContextSources.length,conflicts:e.context.conflicts.length,assumptions:e.context.assumptions.length}:{local:0,configuredShared:0,discovered:0,conflicts:0,assumptions:0}}function sk(e){switch(e){case`local-focus`:return`Local focus`;case`configured-shared`:return`Configured shared context`;case`discovered-conventional`:return`Discovered context`}}function ck(e){return e.readError?`read error`:e.exists?e.sha256?`available`:`empty`:`missing`}function lk(e){return e?[{key:`local-focus`,title:sk(`local-focus`),sources:[e.context.localSteering]},{key:`configured-shared`,title:sk(`configured-shared`),sources:e.context.sharedContextSources},{key:`discovered-conventional`,title:sk(`discovered-conventional`),sources:e.context.discoveredContextSources}].filter(e=>e.sources.length>0):[]}function uk(e){return e?.status===`queued`||e?.status===`running`}function dk(e){return e.dirty?`Save the local focus roadmap before refreshing recommendations.`:e.saving?`Wait for the local focus roadmap save to finish.`:e.refreshing?`Recommendation refresh is starting.`:uk(e.activeTask)?`A recommendation refresh task is already queued or running.`:(e.freshness?.state??e.status?.state,null)}function fk(e){return`${e.toLocaleString()} bytes`}function pk(e){return e.label?.trim()||e.id?.trim()||e.path||sk(e.kind)}var q=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/roadmap/roadmap-panel.tsx`,mk=4e4;function hk({state:e,recommendationStatus:t,recommendationFreshness:n,activeRecommendationRefreshTask:r,onSaveLocalFocus:i,onRefreshRecommendations:a}){let o=$n(),[s,c]=w.useState(``),[l,u]=w.useState(!1),[d,f]=w.useState(!1),[p,m]=w.useState(!1),[h,g]=w.useState(!1),_=e?.context.localSteering.content??``,v=e?.context.localSteering.editable===!0,y=e?.context.localSteering.maxContentBytes??mk,b=e?.context.localSteering.contentTruncated===!0,x=ak({draft:s,saved:_,maxBytes:y},p),S=dk({dirty:x.dirty,saving:p,refreshing:h,activeTask:r,status:t,freshness:n}),C=uk(r);w.useEffect(()=>{l||c(_)},[l,_]),w.useEffect(()=>{v||(u(!1),f(!1),c(_))},[v,_]);async function T(){if(!(!e||!v||!x.canSave||b)){m(!0);try{await i({localFocusContent:s,...e.context.localSteering.sha256?{expectedLocalFocusSha256:e.context.localSteering.sha256}:{}}),u(!1),f(!1),o.push(`Saved local focus roadmap.`,`success`)}catch(e){o.push(e instanceof Error?e.message:String(e),`error`)}finally{m(!1)}}}function ee(){if(x.dirty&&!d){f(!0);return}c(_),u(!1),f(!1)}async function E(){if(!S){g(!0);try{let e=await a();o.push(`${e.reused?`Reusing`:`Started`} recommendation refresh ${e.task.taskId}.`,`success`)}catch(e){o.push(e instanceof Error?e.message:String(e),`error`)}finally{g(!1)}}}return e?(0,I.jsxDEV)(VO,{children:[(0,I.jsxDEV)(HO,{className:`flex-row items-start justify-between gap-3`,children:[(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(UO,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(_e,{className:`h-4 w-4 text-primary`},void 0,!1,{fileName:q,lineNumber:105,columnNumber:58},this),` Local focus roadmap`]},void 0,!0,{fileName:q,lineNumber:105,columnNumber:11},this),(0,I.jsxDEV)(WO,{children:[`Private editable steering doc at `,(0,I.jsxDEV)(`code`,{children:e.storagePaths.localFocus},void 0,!1,{fileName:q,lineNumber:106,columnNumber:61},this),`. The recommendation engine reads this to rank your backlog.`]},void 0,!0,{fileName:q,lineNumber:106,columnNumber:11},this)]},void 0,!0,{fileName:q,lineNumber:104,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex shrink-0 flex-col items-end gap-1 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{className:x.overLimit?`text-destructive-foreground`:`text-muted-foreground`,children:[fk(x.bytes),` / `,fk(x.maxBytes)]},void 0,!0,{fileName:q,lineNumber:109,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap justify-end gap-1`,children:[n?.state&&(0,I.jsxDEV)(xk,{tone:n.state===`fresh`?`good`:`warn`,children:[`recommendations `,n.state]},void 0,!0,{fileName:q,lineNumber:111,columnNumber:48},this),b&&(0,I.jsxDEV)(xk,{tone:`warn`,children:`truncated`},void 0,!1,{fileName:q,lineNumber:112,columnNumber:39},this)]},void 0,!0,{fileName:q,lineNumber:110,columnNumber:11},this)]},void 0,!0,{fileName:q,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:q,lineNumber:103,columnNumber:7},this),(0,I.jsxDEV)(GO,{className:`grid gap-3`,children:[l&&v?(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(YO,{"aria-label":`Local focus roadmap`,value:s,onChange:e=>{c(e.target.value),f(!1)},className:`min-h-[24rem] font-mono text-xs`},void 0,!1,{fileName:q,lineNumber:119,columnNumber:13},this),x.overLimit&&(0,I.jsxDEV)(`p`,{className:`text-xs text-destructive-foreground`,children:`Local focus exceeds the configured byte limit. Shorten it before saving.`},void 0,!1,{fileName:q,lineNumber:120,columnNumber:32},this),b&&(0,I.jsxDEV)(`p`,{className:`text-xs text-destructive-foreground`,children:`Local focus content was truncated by the backend. Saving is disabled to avoid overwriting unsent content.`},void 0,!1,{fileName:q,lineNumber:121,columnNumber:39},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,disabled:!x.canSave||b,onClick:()=>void T(),children:[(0,I.jsxDEV)(Ne,{className:`h-4 w-4`},void 0,!1,{fileName:q,lineNumber:123,columnNumber:111},this),` Save local focus`]},void 0,!0,{fileName:q,lineNumber:123,columnNumber:15},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:!x.dirty||p,onClick:()=>{c(_),f(!1)},children:[(0,I.jsxDEV)(Be,{className:`h-4 w-4`},void 0,!1,{fileName:q,lineNumber:124,columnNumber:146},this),` Reset`]},void 0,!0,{fileName:q,lineNumber:124,columnNumber:15},this),(0,I.jsxDEV)(L,{size:`sm`,variant:d?`destructive`:`outline`,disabled:p,onClick:ee,children:d?`Discard edits`:`Cancel`},void 0,!1,{fileName:q,lineNumber:125,columnNumber:15},this),d&&(0,I.jsxDEV)(`span`,{className:`text-xs text-muted-foreground`,children:`Click Discard edits to leave edit mode without saving.`},void 0,!1,{fileName:q,lineNumber:126,columnNumber:33},this)]},void 0,!0,{fileName:q,lineNumber:122,columnNumber:13},this)]},void 0,!0,{fileName:q,lineNumber:118,columnNumber:11},this):(0,I.jsxDEV)(`div`,{className:`grid gap-3`,children:[(0,I.jsxDEV)(`div`,{className:`rounded border border-border bg-background/40 p-3`,children:_.trim()?(0,I.jsxDEV)(zO,{markdown:_},void 0,!1,{fileName:q,lineNumber:132,columnNumber:31},this):(0,I.jsxDEV)(`p`,{className:`text-sm text-muted-foreground`,children:`Local focus roadmap is empty.`},void 0,!1,{fileName:q,lineNumber:132,columnNumber:67},this)},void 0,!1,{fileName:q,lineNumber:131,columnNumber:13},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{children:[`Source: `,(0,I.jsxDEV)(`code`,{children:e.storagePaths.localFocus},void 0,!1,{fileName:q,lineNumber:135,columnNumber:29},this)]},void 0,!0,{fileName:q,lineNumber:135,columnNumber:15},this),n?.reason&&(0,I.jsxDEV)(`span`,{children:n.reason},void 0,!1,{fileName:q,lineNumber:136,columnNumber:51},this)]},void 0,!0,{fileName:q,lineNumber:134,columnNumber:13},this)]},void 0,!0,{fileName:q,lineNumber:130,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[!l&&v&&(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,onClick:()=>{c(_),u(!0)},children:[(0,I.jsxDEV)(Oe,{className:`h-4 w-4`},void 0,!1,{fileName:q,lineNumber:141,columnNumber:127},this),` Edit`]},void 0,!0,{fileName:q,lineNumber:141,columnNumber:36},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:!!S,title:S??`Refresh recommendations from saved roadmap state.`,onClick:()=>void E(),children:[h||C?(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:q,lineNumber:143,columnNumber:45},this):(0,I.jsxDEV)(Ae,{className:`h-4 w-4`},void 0,!1,{fileName:q,lineNumber:143,columnNumber:59},this),` Refresh recommendations from roadmap`]},void 0,!0,{fileName:q,lineNumber:142,columnNumber:11},this),S&&(0,I.jsxDEV)(`span`,{className:`text-xs text-muted-foreground`,children:S},void 0,!1,{fileName:q,lineNumber:145,columnNumber:30},this)]},void 0,!0,{fileName:q,lineNumber:140,columnNumber:9},this),C&&r&&(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:[r.metadata?.progressMessage??`Refreshing recommendations…`,` `,(0,I.jsxDEV)(`span`,{title:r.taskId,children:[`(`,r.taskId,`)`]},void 0,!0,{fileName:q,lineNumber:147,columnNumber:201},this)]},void 0,!0,{fileName:q,lineNumber:147,columnNumber:63},this)]},void 0,!0,{fileName:q,lineNumber:116,columnNumber:7},this)]},void 0,!0,{fileName:q,lineNumber:102,columnNumber:5},this):(0,I.jsxDEV)(VO,{children:(0,I.jsxDEV)(GO,{className:`py-10 text-center text-sm text-muted-foreground`,children:`Roadmap state has not loaded yet.`},void 0,!1,{fileName:q,lineNumber:98,columnNumber:18},this)},void 0,!1,{fileName:q,lineNumber:98,columnNumber:12},this)}function gk({state:e,loading:t,recommendationStatus:n,recommendationFreshness:r,activeRecommendationRefreshTask:i,onReloadRoadmap:a}){let o=ok(e),s=r?.state??n?.state,c=uk(i);return(0,I.jsxDEV)(qO,{icon:_e,iconClassName:`text-primary`,title:`Roadmap sources`,action:(0,I.jsxDEV)(L,{size:`xs`,variant:`outline`,className:`ml-auto`,disabled:t,onClick:()=>void a(),children:[t?(0,I.jsxDEV)(Jn,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:q,lineNumber:180,columnNumber:22},this):(0,I.jsxDEV)(Ae,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:q,lineNumber:180,columnNumber:60},this),` Reload`]},void 0,!0,{fileName:q,lineNumber:179,columnNumber:9},this),headerExtra:(0,I.jsxDEV)(`div`,{className:`mt-2 flex flex-wrap gap-1`,children:[(0,I.jsxDEV)(xk,{children:[o.local,` local`]},void 0,!0,{fileName:q,lineNumber:185,columnNumber:11},this),(0,I.jsxDEV)(xk,{children:[o.configuredShared,` configured shared`]},void 0,!0,{fileName:q,lineNumber:186,columnNumber:11},this),(0,I.jsxDEV)(xk,{children:[o.discovered,` discovered`]},void 0,!0,{fileName:q,lineNumber:187,columnNumber:11},this),o.conflicts>0&&(0,I.jsxDEV)(xk,{tone:`warn`,children:[o.conflicts,` conflicts`]},void 0,!0,{fileName:q,lineNumber:188,columnNumber:37},this),s&&(0,I.jsxDEV)(xk,{tone:s===`fresh`?`good`:`warn`,children:[`recommendations `,s]},void 0,!0,{fileName:q,lineNumber:189,columnNumber:35},this),c&&(0,I.jsxDEV)(xk,{tone:`good`,children:[(0,I.jsxDEV)(Jn,{className:`h-3 w-3`},void 0,!1,{fileName:q,lineNumber:190,columnNumber:48},this),` refreshing`]},void 0,!0,{fileName:q,lineNumber:190,columnNumber:30},this)]},void 0,!0,{fileName:q,lineNumber:184,columnNumber:9},this),contentClassName:`grid gap-3`,children:e?(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(`section`,{className:`grid gap-3`,children:lk(e).map(e=>(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`h4`,{className:`mb-1.5 text-2xs font-semibold uppercase tracking-wide text-muted-foreground`,children:e.title},void 0,!1,{fileName:q,lineNumber:200,columnNumber:19},this),(0,I.jsxDEV)(`div`,{className:`grid gap-2`,children:e.sources.map(e=>(0,I.jsxDEV)(_k,{source:e},`${e.kind}:${e.path}:${e.id??``}`,!1,{fileName:q,lineNumber:202,columnNumber:52},this))},void 0,!1,{fileName:q,lineNumber:201,columnNumber:19},this)]},e.key,!0,{fileName:q,lineNumber:199,columnNumber:17},this))},void 0,!1,{fileName:q,lineNumber:197,columnNumber:13},this),(e.context.assumptions.length>0||e.context.conflicts.length>0||e.context.truncation.sourceContent>0||e.context.truncation.sourceExcerpts>0)&&(0,I.jsxDEV)(`section`,{className:`grid gap-3 border-t border-border pt-3 text-xs`,children:[e.context.assumptions.length>0&&(0,I.jsxDEV)(yk,{title:`Assumptions`,items:e.context.assumptions},void 0,!1,{fileName:q,lineNumber:210,columnNumber:58},this),e.context.conflicts.length>0&&(0,I.jsxDEV)(yk,{title:`Conflicts`,items:e.context.conflicts.map(e=>`${e.message}${e.path?` (${e.path})`:``}`),tone:`warn`},void 0,!1,{fileName:q,lineNumber:211,columnNumber:56},this),(e.context.truncation.sourceContent>0||e.context.truncation.sourceExcerpts>0)&&(0,I.jsxDEV)(`p`,{className:`text-muted-foreground`,children:[`Truncation: `,e.context.truncation.sourceContent,` source content fields and `,e.context.truncation.sourceExcerpts,` source excerpts were truncated.`]},void 0,!0,{fileName:q,lineNumber:213,columnNumber:19},this)]},void 0,!0,{fileName:q,lineNumber:209,columnNumber:15},this)]},void 0,!0,{fileName:q,lineNumber:196,columnNumber:11},this):(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:`Roadmap state has not loaded yet.`},void 0,!1,{fileName:q,lineNumber:195,columnNumber:19},this)},void 0,!1,{fileName:q,lineNumber:174,columnNumber:5},this)}function _k({source:e}){return(0,I.jsxDEV)(`article`,{className:`rounded border border-border bg-background/40 p-2 text-2xs`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[(0,I.jsxDEV)(`span`,{className:`font-semibold text-text-bright`,children:pk(e)},void 0,!1,{fileName:q,lineNumber:227,columnNumber:9},this),(0,I.jsxDEV)(xk,{tone:e.exists&&!e.readError?`good`:`warn`,children:ck(e)},void 0,!1,{fileName:q,lineNumber:228,columnNumber:9},this),(0,I.jsxDEV)(xk,{children:e.editable?`editable`:`read-only`},void 0,!1,{fileName:q,lineNumber:229,columnNumber:9},this),(0,I.jsxDEV)(xk,{children:e.configured?`configured`:`discovered`},void 0,!1,{fileName:q,lineNumber:230,columnNumber:9},this)]},void 0,!0,{fileName:q,lineNumber:226,columnNumber:7},this),(0,I.jsxDEV)(`p`,{className:`mt-1 break-all text-muted-foreground`,children:e.path},void 0,!1,{fileName:q,lineNumber:232,columnNumber:7},this),(0,I.jsxDEV)(`dl`,{className:`mt-1 grid gap-1 text-muted-foreground`,children:[(0,I.jsxDEV)(vk,{label:`kind`,value:sk(e.kind)},void 0,!1,{fileName:q,lineNumber:234,columnNumber:9},this),(0,I.jsxDEV)(vk,{label:`role`,value:e.role},void 0,!1,{fileName:q,lineNumber:235,columnNumber:9},this),(0,I.jsxDEV)(vk,{label:`updated`,value:e.updatedAt},void 0,!1,{fileName:q,lineNumber:236,columnNumber:9},this),(0,I.jsxDEV)(vk,{label:`error`,value:e.readError},void 0,!1,{fileName:q,lineNumber:237,columnNumber:9},this)]},void 0,!0,{fileName:q,lineNumber:233,columnNumber:7},this),e.headings.length>0&&(0,I.jsxDEV)(`p`,{className:`mt-1 text-muted-foreground`,children:[`Headings: `,e.headings.join(` · `)]},void 0,!0,{fileName:q,lineNumber:239,columnNumber:38},this),e.content?.trim()?(0,I.jsxDEV)(`div`,{className:`mt-2 rounded border border-border bg-card/50 p-2 text-xs`,children:(0,I.jsxDEV)(zO,{markdown:e.content},void 0,!1,{fileName:q,lineNumber:242,columnNumber:11},this)},void 0,!1,{fileName:q,lineNumber:241,columnNumber:9},this):e.excerpts.length>0?(0,I.jsxDEV)(`ul`,{className:`mt-1 list-disc pl-4 text-muted-foreground`,children:e.excerpts.map((e,t)=>(0,I.jsxDEV)(`li`,{children:e},t,!1,{fileName:q,lineNumber:244,columnNumber:139},this))},void 0,!1,{fileName:q,lineNumber:244,columnNumber:40},this):null]},void 0,!0,{fileName:q,lineNumber:225,columnNumber:5},this)}function vk({label:e,value:t}){return t?(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`dt`,{className:`inline font-medium text-foreground`,children:[e,`: `]},void 0,!0,{fileName:q,lineNumber:251,columnNumber:15},this),(0,I.jsxDEV)(`dd`,{className:`inline break-all`,children:t},void 0,!1,{fileName:q,lineNumber:251,columnNumber:80},this)]},void 0,!0,{fileName:q,lineNumber:251,columnNumber:10},this):null}function yk({title:e,items:t,tone:n}){return(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`h4`,{className:`mb-1 text-2xs font-semibold uppercase tracking-wide ${n===`warn`?`text-[color:var(--prio-medium)]`:`text-muted-foreground`}`,children:e},void 0,!1,{fileName:q,lineNumber:255,columnNumber:15},this),(0,I.jsxDEV)(`ul`,{className:`list-disc pl-4 text-muted-foreground`,children:t.map(e=>(0,I.jsxDEV)(`li`,{children:e},e,!1,{fileName:q,lineNumber:255,columnNumber:252},this))},void 0,!1,{fileName:q,lineNumber:255,columnNumber:178},this)]},void 0,!0,{fileName:q,lineNumber:255,columnNumber:10},this)}var bk={default:`neutral`,good:`info`,warn:`warn`};function xk({children:e,tone:t=`default`}){return(0,I.jsxDEV)(nk,{tone:bk[t]??`neutral`,className:`font-normal`,children:e},void 0,!1,{fileName:q,lineNumber:261,columnNumber:10},this)}var Sk=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/empty-state.tsx`;function Ck({className:e,children:t}){return(0,I.jsxDEV)(`p`,{className:xn(`rounded-md border border-dashed p-3 text-sm text-muted-foreground`,e),children:t},void 0,!1,{fileName:Sk,lineNumber:10,columnNumber:10},this)}var wk=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/input.tsx`,Tk=w.forwardRef(({className:e,type:t,...n},r)=>(0,I.jsxDEV)(`input`,{type:t,className:xn(`flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),ref:r,...n},void 0,!1,{fileName:wk,lineNumber:5,columnNumber:3},void 0));Tk.displayName=`Input`;var Ek={"queued-build":{label:`Queued build`,tone:`info`},"running-build":{label:`Running build`,tone:`info`},"open-pr":{label:`Open PR`,tone:`warn`},"merged-result":{label:`Merged result`,tone:`done`},"shipped-result":{label:`Shipped result`,tone:`done`},"failed-result":{label:`Failed result`,tone:`danger`},"partial-plan":{label:`Partial plan`,tone:`warn`},"planned-session-plan":{label:`Planned session plan`,tone:`neutral`},"submitted-session-plan":{label:`Submitted session plan`,tone:`info`},"active-planning-task":{label:`Active planning task`,tone:`info`},"queued-trace":{label:`Queued build`,tone:`info`},"building-trace":{label:`Running build`,tone:`info`},"active-build-session-trace":{label:`Running build session`,tone:`info`},"open-pr-trace":{label:`Open PR`,tone:`warn`}},Dk={none:{label:`No lifecycle evidence`,tone:`neutral`},planned:{label:`Planned`,tone:`neutral`},active:{label:`Active`,tone:`info`},queue:{label:`Queued`,tone:`info`},build:{label:`Building`,tone:`info`},"pr-open":{label:`PR open`,tone:`warn`},merged:{label:`Merged`,tone:`done`},shipped:{label:`Shipped`,tone:`done`},failed:{label:`Failed`,tone:`danger`},partial:{label:`Partial`,tone:`warn`}};function Ok(e){return e?Ek[e]??{label:Nk(e),tone:`neutral`}:{label:`Lifecycle evidence`,tone:`neutral`}}function kk(e){return e?Dk[e]??{label:Nk(e),tone:`neutral`}:null}function Ak(e){if(e===void 0||!Number.isFinite(e))return`unknown size`;if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`],n=e/1024,r=t[0];for(let e=1;n>=1024&&e<t.length;e+=1)n/=1024,r=t[e];return`${n>=10?n.toFixed(0):n.toFixed(1)} ${r}`}function jk(e,t,n=`${t}s`){let r=e??0;return`${r} ${r===1?t:n}`}function Mk(e,t){return t?{label:`status unavailable`,tone:`danger`}:e?e.initialized?e.searchIndexStatus?.dirty?{label:`dirty index`,tone:`warn`}:{label:`ready`,tone:`done`}:{label:`not initialized`,tone:`warn`}:{label:`loading`,tone:`neutral`}}function Nk(e){return e.replace(/[-_]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}var Pk=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/lifecycle-panel.tsx`,Fk=[`Failed`,`Partial`,`PR open`,`Merged`,`Run`,`Queue`,`PR`,`Plan`],Ik=new Set([`Failed`,`Partial`,`PR open`,`Run`]);function Lk(e){if((e.lifecycleLinks??[]).length===0&&!e.lifecycleState&&!e.effectiveLifecycle)return null;let t=new Set(zk(e)),n=Fk.find(e=>t.has(e))??[...t][0];return!n||n===`Plan`?null:{label:n,tone:Ik.has(n)?ek(n):`neutral`}}function Rk({item:e}){let t=[...e.lifecycleLinks??[],...e.associatedLinks??[]];if(t.length===0&&!e.lifecycleState&&!e.effectiveLifecycle&&!e.userStatus&&(e.reasonCodes??[]).length===0)return null;let n=zk(e),r=kk(e.effectiveLifecycle??e.lifecycleState);return(0,I.jsxDEV)(`div`,{className:`mt-2`,onClick:e=>e.stopPropagation(),children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,"aria-label":`Lifecycle chips`,children:[e.userStatus&&(0,I.jsxDEV)(nk,{tone:`neutral`,children:[`Authored status: `,e.userStatus]},void 0,!0,{fileName:Pk,lineNumber:37,columnNumber:29},this),r&&(0,I.jsxDEV)(nk,{tone:r.tone,children:[`Effective lifecycle: `,r.label]},void 0,!0,{fileName:Pk,lineNumber:38,columnNumber:23},this),n.map(e=>(0,I.jsxDEV)(Bk,{label:e},e,!1,{fileName:Pk,lineNumber:39,columnNumber:30},this)),(e.reasonCodes??[]).map(e=>{let t=Ok(e);return(0,I.jsxDEV)(nk,{tone:t.tone,children:t.label},e,!1,{fileName:Pk,lineNumber:40,columnNumber:99},this)})]},void 0,!0,{fileName:Pk,lineNumber:36,columnNumber:7},this),t.length>0&&(0,I.jsxDEV)(`details`,{className:`mt-2`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-xs text-muted-foreground`,children:`Lifecycle evidence`},void 0,!1,{fileName:Pk,lineNumber:44,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-1.5`,children:t.map((e,t)=>(0,I.jsxDEV)(Vk,{row:e},`${e.kind}-${e.stage??``}-${t}`,!1,{fileName:Pk,lineNumber:46,columnNumber:39},this))},void 0,!1,{fileName:Pk,lineNumber:45,columnNumber:11},this)]},void 0,!0,{fileName:Pk,lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:Pk,lineNumber:35,columnNumber:5},this)}function zk(e){let t=new Set;for(let n of e.lifecycleLinks??[]){let e=(n.stage??n.status??``).toLowerCase();n.kind===`session-plan`&&t.add(`Plan`),n.kind===`queue-prd`&&t.add(`Queue`),(n.kind===`build-run`||n.kind===`build-session`)&&t.add(`Run`),n.kind===`pr`&&t.add(e.includes(`open`)?`PR open`:`PR`),n.kind===`landing`&&(e.includes(`landed`)||e.includes(`merge`))&&t.add(`Merged`),e.includes(`fail`)&&t.add(`Failed`)}let n=(e.effectiveLifecycle??e.lifecycleState??``).toLowerCase();return n===`partial`&&t.add(`Partial`),n===`failed`&&t.add(`Failed`),(n===`merged`||n===`shipped`||n===`landed`)&&t.add(`Merged`),t.size>0?[...t]:[`Plan`]}function Bk({label:e}){return(0,I.jsxDEV)(nk,{tone:ek(e),children:e},void 0,!1,{fileName:Pk,lineNumber:73,columnNumber:10},this)}function Vk({row:e}){let t=e.timestamp??e.completedAt??e.landedAt??e.startedAt??e.queuedAt??e.promotedAt,n=e.featureBranch??e.branch;return(0,I.jsxDEV)(`div`,{className:`rounded border border-border bg-background/50 p-2 text-2xs`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,I.jsxDEV)(`span`,{className:`rounded bg-secondary px-1.5 py-0.5 font-semibold uppercase tracking-wide text-muted-foreground`,children:Hk(e.kind)},void 0,!1,{fileName:Pk,lineNumber:82,columnNumber:9},this),e.stage&&(0,I.jsxDEV)(`span`,{className:`text-text-bright`,children:e.stage},void 0,!1,{fileName:Pk,lineNumber:83,columnNumber:23},this),e.status&&(0,I.jsxDEV)(`span`,{className:`text-muted-foreground`,children:e.status},void 0,!1,{fileName:Pk,lineNumber:84,columnNumber:24},this)]},void 0,!0,{fileName:Pk,lineNumber:81,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-1 flex flex-wrap gap-x-3 gap-y-1 text-muted-foreground`,children:[e.session&&(0,I.jsxDEV)(Uk,{label:`session`,value:e.session},void 0,!1,{fileName:Pk,lineNumber:87,columnNumber:25},this),e.prdId&&(0,I.jsxDEV)(Uk,{label:`prd`,value:e.prdId},void 0,!1,{fileName:Pk,lineNumber:88,columnNumber:23},this),e.runId&&(0,I.jsxDEV)(Uk,{label:`run`,value:e.runId},void 0,!1,{fileName:Pk,lineNumber:89,columnNumber:23},this),e.sessionId&&(0,I.jsxDEV)(Uk,{label:`build session`,value:e.sessionId},void 0,!1,{fileName:Pk,lineNumber:90,columnNumber:27},this),e.buildSessionId&&(0,I.jsxDEV)(Uk,{label:`build session`,value:e.buildSessionId},void 0,!1,{fileName:Pk,lineNumber:91,columnNumber:32},this),n&&(0,I.jsxDEV)(Uk,{label:`branch`,value:n},void 0,!1,{fileName:Pk,lineNumber:92,columnNumber:20},this),e.commitSha&&(0,I.jsxDEV)(Uk,{label:`commit`,value:e.commitSha},void 0,!1,{fileName:Pk,lineNumber:93,columnNumber:27},this),t&&(0,I.jsxDEV)(Uk,{label:`time`,value:t},void 0,!1,{fileName:Pk,lineNumber:94,columnNumber:23},this)]},void 0,!0,{fileName:Pk,lineNumber:86,columnNumber:7},this),e.prUrl&&(0,I.jsxDEV)(`a`,{className:`mt-1 block break-all text-[color:var(--lane-ready)] underline`,href:e.prUrl,target:`_blank`,rel:`noreferrer`,children:e.prUrl},void 0,!1,{fileName:Pk,lineNumber:96,columnNumber:21},this),e.affectedItemIds&&e.affectedItemIds.length>0&&(0,I.jsxDEV)(`div`,{className:`mt-1 flex flex-wrap gap-1 text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{children:`affected`},void 0,!1,{fileName:Pk,lineNumber:99,columnNumber:11},this),e.affectedItemIds.map(e=>(0,I.jsxDEV)(`code`,{className:`rounded border px-1`,children:Xw(e)},e,!1,{fileName:Pk,lineNumber:100,columnNumber:44},this))]},void 0,!0,{fileName:Pk,lineNumber:98,columnNumber:9},this)]},void 0,!0,{fileName:Pk,lineNumber:80,columnNumber:5},this)}function Hk(e){return e===`queue-prd`?`queue evidence`:e===`build-run`||e===`build-session`?`build evidence`:e===`session-plan`?`session evidence`:e===`pr`?`PR evidence`:e===`landing`?`landing evidence`:e}function Uk({label:e,value:t}){return(0,I.jsxDEV)(`span`,{children:[(0,I.jsxDEV)(`span`,{className:`uppercase tracking-wide`,children:[e,`:`]},void 0,!0,{fileName:Pk,lineNumber:117,columnNumber:16},this),` `,(0,I.jsxDEV)(`code`,{children:t},void 0,!1,{fileName:Pk,lineNumber:117,columnNumber:74},this)]},void 0,!0,{fileName:Pk,lineNumber:117,columnNumber:10},this)}var Wk=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/item-card.tsx`,Gk={high:`var(--prio-high)`,medium:`var(--prio-medium)`,low:`var(--prio-low)`},Kk=3,qk={dependency:`ring-2 ring-[color:var(--prio-medium)]/70`,dependent:`ring-2 ring-[color:var(--lane-ready)]/70`};function Jk({item:e,selected:t,relation:n=null,plannedIn:r,onOpenPlan:i,onToggle:a,onOpenDetail:o,onHoverChange:s}){let c=Gk[e.priority]??`var(--prio-low)`,l=Lk(e),u=t?`ring-2 ring-primary`:n?qk[n]:``,d=t||n?``:e.closed?`opacity-60`:``;return(0,I.jsxDEV)(`div`,{id:`board-item-${e.id}`,role:`button`,tabIndex:0,onClick:()=>a(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),a(e))},onMouseEnter:()=>s?.(e.id),onMouseLeave:()=>s?.(null),className:`group cursor-pointer rounded-md border border-border/70 bg-card p-3 transition-colors hover:border-muted-foreground/40 ${u} ${d}`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-start gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`mt-1.5 h-2 w-2 shrink-0 rounded-full`,style:{background:c},title:`${e.priority} priority`},void 0,!1,{fileName:Wk,lineNumber:61,columnNumber:9},this),(0,I.jsxDEV)(`h4`,{className:`min-w-0 flex-1 text-sm font-medium leading-snug text-text-bright`,children:e.title},void 0,!1,{fileName:Wk,lineNumber:62,columnNumber:9},this),(0,I.jsxDEV)(`button`,{type:`button`,"aria-label":`Open details for ${e.title}`,title:`Open details`,className:`-mr-1 -mt-1 shrink-0 rounded p-1 text-muted-foreground/50 transition-colors hover:bg-secondary hover:text-foreground group-hover:text-muted-foreground`,onClick:t=>{t.stopPropagation(),o(e)},children:(0,I.jsxDEV)(Ee,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:Wk,lineNumber:70,columnNumber:11},this)},void 0,!1,{fileName:Wk,lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:Wk,lineNumber:60,columnNumber:7},this),(0,I.jsxDEV)(`code`,{className:`mt-0.5 block truncate pl-4 text-2xs text-muted-foreground/70`,title:e.id,children:Xw(e.id)},void 0,!1,{fileName:Wk,lineNumber:73,columnNumber:7},this),(0,I.jsxDEV)(Xk,{item:e,lifecycle:l},void 0,!1,{fileName:Wk,lineNumber:75,columnNumber:7},this),(0,I.jsxDEV)(Yk,{plans:r,onOpen:i},void 0,!1,{fileName:Wk,lineNumber:76,columnNumber:7},this),(0,I.jsxDEV)(Zk,{item:e},void 0,!1,{fileName:Wk,lineNumber:77,columnNumber:7},this)]},void 0,!0,{fileName:Wk,lineNumber:50,columnNumber:5},this)}function Yk({plans:e,onOpen:t}){if(!e||e.length===0)return null;let n=e[0],r=e.length===1?n.title:`${e.length} plans`;return(0,I.jsxDEV)(`div`,{className:`mt-1.5 pl-4`,children:(0,I.jsxDEV)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),t?.(n.key)},disabled:!t,title:e.length===1?`Open plan ${n.title}`:e.map(e=>e.title).join(`, `),className:`inline-flex max-w-full items-center gap-1 rounded border border-[color:var(--lane-progress)]/40 bg-[color:var(--lane-progress)]/10 px-1.5 py-0.5 text-2xs font-medium text-[color:var(--lane-progress)] transition-colors hover:border-[color:var(--lane-progress)] disabled:cursor-default`,children:[(0,I.jsxDEV)(me,{className:`h-3 w-3 shrink-0`},void 0,!1,{fileName:Wk,lineNumber:97,columnNumber:9},this),(0,I.jsxDEV)(`span`,{className:`truncate`,children:[`Planned · `,r]},void 0,!0,{fileName:Wk,lineNumber:98,columnNumber:9},this)]},void 0,!0,{fileName:Wk,lineNumber:90,columnNumber:7},this)},void 0,!1,{fileName:Wk,lineNumber:89,columnNumber:5},this)}function Xk({item:e,lifecycle:t}){let n=e.dependencies.filter(e=>e.blocking).length,r=[];return e.recRank!==void 0&&r.push((0,I.jsxDEV)(nk,{tone:`info`,className:`font-medium`,children:[`Next `,e.recRank]},`rec`,!0,{fileName:Wk,lineNumber:108,columnNumber:46},this)),e.blocked&&r.push((0,I.jsxDEV)(nk,{tone:`neutral`,className:`font-medium`,children:[(0,I.jsxDEV)(`span`,{className:`mr-1 inline-block h-1.5 w-1.5 rounded-full bg-[color:var(--lane-blocked)]`},void 0,!1,{fileName:Wk,lineNumber:112,columnNumber:9},this),n>0?`Blocked by ${n}`:`Blocked`]},`blocked`,!0,{fileName:Wk,lineNumber:111,columnNumber:7},this)),e.reviewDue&&r.push((0,I.jsxDEV)(nk,{tone:`warn`,className:`font-medium`,children:`Review due`},`review`,!1,{fileName:Wk,lineNumber:117,columnNumber:34},this)),t&&r.push((0,I.jsxDEV)(nk,{tone:t.tone,className:`font-medium`,children:t.label},`lifecycle`,!1,{fileName:Wk,lineNumber:118,columnNumber:29},this)),r.length===0?null:(0,I.jsxDEV)(`div`,{className:`mt-1.5 flex flex-wrap gap-1 pl-4`,children:r},void 0,!1,{fileName:Wk,lineNumber:120,columnNumber:10},this)}function Zk({item:e}){let t=e.tags.slice(0,Kk),n=e.tags.length-t.length;return!e.epicRef&&e.tags.length===0?null:(0,I.jsxDEV)(`div`,{className:`mt-1.5 flex flex-wrap items-baseline gap-x-2 gap-y-1 pl-4 text-2xs text-muted-foreground`,children:[e.epicRef&&(0,I.jsxDEV)(`span`,{className:`truncate ${e.epicRef.missing?`text-[color:var(--lane-blocked)]`:``}`,title:e.epicRef.missing?`Missing epic: ${e.epicRef.id}`:`Epic: ${e.epicRef.title}`,children:e.epicRef.missing?`Missing epic: ${e.epicRef.title}`:e.epicRef.title},void 0,!1,{fileName:Wk,lineNumber:131,columnNumber:9},this),e.epicRef&&t.length>0&&(0,I.jsxDEV)(`span`,{className:`text-muted-foreground/50`,children:`·`},void 0,!1,{fileName:Wk,lineNumber:138,columnNumber:50},this),t.map(e=>(0,I.jsxDEV)(`span`,{className:`text-muted-foreground/80`,children:e},e,!1,{fileName:Wk,lineNumber:140,columnNumber:9},this)),n>0&&(0,I.jsxDEV)(`span`,{className:`text-muted-foreground/60`,title:e.tags.slice(Kk).join(`, `),children:[`+`,n]},void 0,!0,{fileName:Wk,lineNumber:142,columnNumber:30},this)]},void 0,!0,{fileName:Wk,lineNumber:129,columnNumber:5},this)}var Qk=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/board.tsx`,$k=[{id:`lane`,label:`Lane`},{id:`epic`,label:`Epic`},{id:`recommended`,label:`Recommended`}],eA=new Set([`done`,`archive`,`closed`]),tA=`eforge-plan:board:expanded-closed`;function nA(){try{let e=window.localStorage.getItem(tA);return new Set(e?JSON.parse(e):[])}catch{return new Set}}function rA({board:e,itemPlanIndex:t,onOpenPlan:n,query:r,onQuery:i,filter:a,onFilter:o,group:s,onGroup:c,epicFilter:l,onEpicFilter:u,selected:d,onToggle:f,onOpenDetail:p,onOpenEpic:m,onLoadMoreBoard:h,onLoadClosedLane:g}){let _=e.items??[],[v,y]=w.useState(null),[b,x]=w.useState(()=>nA()),S=w.useRef(new Set),C=w.useRef(!1),T=w.useMemo(()=>{let e=Bw(_,r,a);return l?e.filter(e=>(e.epic??``)===l):e},[_,r,a,l]),ee=w.useMemo(()=>{let t=Ww(e,T,s);if(a!==`closed`||s!==`lane`)return t;let n=new Set(t.map(e=>e.key)),r=(e.lanes??[]).filter(e=>(e.lane===`done`||e.lane===`archive`)&&!n.has(e.lane)&&(e.count??e.closedCount??0)>0).map(e=>({key:e.lane,title:e.title,tone:e.lane===`done`?`var(--lane-done)`:`var(--lane-archive)`,items:[],count:e.count,pagination:e.pagination}));return[...t,...r]},[e,T,s,a]),E=w.useMemo(()=>Jw(_),[_]),D=w.useMemo(()=>Qw(_,e.epics??[]),[_,e.epics]),te=w.useMemo(()=>$w(e.epics??[]),[e.epics]),O=w.useMemo(()=>Zw(_,e),[_,e]),ne=w.useMemo(()=>v?_.find(e=>e.id===v):void 0,[_,v]),k=w.useMemo(()=>new Set((ne?.dependencies??[]).map(e=>e.id)),[ne]),A=w.useMemo(()=>new Set((ne?.dependents??[]).map(e=>e.id)),[ne]),re=e=>k.has(e.id)?`dependency`:A.has(e.id)?`dependent`:null,ie=w.useCallback(e=>{(e===`done`||e===`archive`)&&g&&g(e)},[g]);w.useEffect(()=>{for(let t of e.lanes??[])t.lane!==`done`&&t.lane!==`archive`||!b.has(t.lane)||S.current.has(t.lane)||(t.count??0)<=t.items.length||t.pagination?.hasMore===!1||(S.current.add(t.lane),ie(t.lane))},[e.lanes,b,ie]),w.useEffect(()=>{if(a!==`closed`){C.current=!1;return}C.current||(C.current=!0,ie(`done`),ie(`archive`))},[a,ie]);let j=e=>{e===`closed`&&(C.current=!0,ie(`done`),ie(`archive`)),o(e)},ae=e=>{b.has(e)||(S.current.add(e),ie(e)),x(t=>{let n=new Set(t);n.has(e)?n.delete(e):n.add(e);try{window.localStorage.setItem(tA,JSON.stringify([...n]))}catch{}return n})},se=[{id:`all`,label:`All`,count:e.counts?.total??_.length},{id:`open`,label:`Open`,count:O.open},{id:`ready`,label:`Plan eligible`,count:O.ready},{id:`blocked`,label:`Blocked`,count:O.blocked},{id:`review`,label:`Review due`,count:O.review},{id:`closed`,label:`Closed`,count:O.closed}].filter(e=>e.count>0||e.id===a||e.id===`all`);return(0,I.jsxDEV)(`div`,{className:`grid gap-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,I.jsxDEV)(Tk,{type:`search`,value:r,onChange:e=>i(e.target.value),placeholder:`Search title, id, tag, dependency…`,className:`h-8 min-w-64 flex-1`},void 0,!1,{fileName:Qk,lineNumber:159,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1`,children:se.map(e=>(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>j(e.id),className:`inline-flex items-baseline gap-1 rounded-md border px-2 py-1 text-xs transition-colors ${a===e.id?`border-primary bg-primary/10 text-text-bright`:`border-border bg-card text-muted-foreground hover:border-muted-foreground/50`}`,children:[(0,I.jsxDEV)(`strong`,{className:`text-sm ${a===e.id?`text-text-bright`:`text-foreground`}`,children:e.count},void 0,!1,{fileName:Qk,lineNumber:175,columnNumber:17},this),e.label]},e.id,!0,{fileName:Qk,lineNumber:169,columnNumber:15},this))},void 0,!1,{fileName:Qk,lineNumber:167,columnNumber:11},this),(0,I.jsxDEV)(`span`,{className:`text-2xs text-muted-foreground`,children:`Group`},void 0,!1,{fileName:Qk,lineNumber:179,columnNumber:11},this),(0,I.jsxDEV)(aA,{options:$k,active:s,onSelect:e=>c(e)},void 0,!1,{fileName:Qk,lineNumber:180,columnNumber:11},this)]},void 0,!0,{fileName:Qk,lineNumber:166,columnNumber:9},this)]},void 0,!0,{fileName:Qk,lineNumber:158,columnNumber:7},this),D.length>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:D.map(e=>(0,I.jsxDEV)(`button`,{onClick:()=>u(l===e.id?``:e.id),className:`inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs transition-colors ${l===e.id?`border-primary text-text-bright`:`border-border text-muted-foreground hover:border-muted-foreground/50`} ${e.missing?`border-dashed text-[color:var(--lane-blocked)]`:``}`,children:[e.title,(0,I.jsxDEV)(`span`,{className:`rounded-full border border-border px-1 text-2xs`,children:e.count},void 0,!1,{fileName:Qk,lineNumber:192,columnNumber:27},this)]},e.id,!0,{fileName:Qk,lineNumber:187,columnNumber:13},this))},void 0,!1,{fileName:Qk,lineNumber:185,columnNumber:9},this),te.length>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[(0,I.jsxDEV)(`span`,{className:`text-2xs uppercase tracking-wide text-muted-foreground`,children:`Horizon`},void 0,!1,{fileName:Qk,lineNumber:200,columnNumber:11},this),te.map(e=>(0,I.jsxDEV)(`button`,{type:`button`,title:`Open horizon epic ${e.title??e.id}`,onClick:()=>m(e.id),className:`inline-flex items-center gap-1 rounded-md border border-dashed border-border px-2 py-0.5 text-xs text-muted-foreground transition-colors hover:border-muted-foreground/50 hover:text-foreground`,children:[(0,I.jsxDEV)(_e,{className:`h-3 w-3`},void 0,!1,{fileName:Qk,lineNumber:209,columnNumber:15},this),e.title??e.id]},e.id,!0,{fileName:Qk,lineNumber:202,columnNumber:13},this))]},void 0,!0,{fileName:Qk,lineNumber:199,columnNumber:9},this),E.length>0&&(0,I.jsxDEV)(`div`,{className:`rounded-md border border-[color:var(--lane-blocked)]/40 bg-[color:var(--lane-blocked)]/10 p-2 text-xs text-[color:var(--lane-blocked)]`,children:[(0,I.jsxDEV)(`strong`,{className:`mr-2 uppercase tracking-wide`,children:`Dependency cycles`},void 0,!1,{fileName:Qk,lineNumber:217,columnNumber:11},this),E.map(e=>(0,I.jsxDEV)(`span`,{className:`mr-3 font-mono`,children:e.map(Xw).join(` → `)},e.join(`-`),!1,{fileName:Qk,lineNumber:218,columnNumber:34},this))]},void 0,!0,{fileName:Qk,lineNumber:216,columnNumber:9},this),ee.length===0?(0,I.jsxDEV)(Ck,{className:`p-6 text-center`,children:`No items match this view.`},void 0,!1,{fileName:Qk,lineNumber:223,columnNumber:11},this):(0,I.jsxDEV)(`div`,{className:`flex max-h-[78vh] items-start gap-3 overflow-auto pb-2`,children:ee.map(e=>{let r=s!==`epic`&&eA.has(e.key);return r&&!b.has(e.key)?(0,I.jsxDEV)(iA,{column:e,onExpand:()=>ae(e.key)},e.key,!1,{fileName:Qk,lineNumber:229,columnNumber:24},this):(0,I.jsxDEV)(`div`,{className:`flex w-80 shrink-0 flex-col overflow-hidden rounded-lg border border-border/60 bg-background/40`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2 border-b border-border/60 px-3 py-2`,children:[(0,I.jsxDEV)(`span`,{className:`h-2 w-2 rounded-full`,style:{background:e.tone}},void 0,!1,{fileName:Qk,lineNumber:234,columnNumber:21},this),(0,I.jsxDEV)(`span`,{className:`text-sm font-semibold text-text-bright`,children:e.title},void 0,!1,{fileName:Qk,lineNumber:235,columnNumber:21},this),(0,I.jsxDEV)(`span`,{className:`ml-auto rounded-full border border-border px-2 text-xs text-muted-foreground`,children:e.count??e.items.length},void 0,!1,{fileName:Qk,lineNumber:236,columnNumber:21},this),r&&(0,I.jsxDEV)(`button`,{type:`button`,"aria-label":`Collapse ${e.title}`,title:`Collapse ${e.title}`,className:`rounded p-0.5 text-muted-foreground/60 transition-colors hover:bg-secondary hover:text-foreground`,onClick:()=>ae(e.key),children:(0,I.jsxDEV)(oe,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:Qk,lineNumber:245,columnNumber:25},this)},void 0,!1,{fileName:Qk,lineNumber:238,columnNumber:23},this)]},void 0,!0,{fileName:Qk,lineNumber:233,columnNumber:19},this),(0,I.jsxDEV)(`div`,{className:`flex flex-col gap-2 p-2`,children:[e.pagination?.hasMore&&(0,I.jsxDEV)(`p`,{className:`rounded border border-dashed border-border px-2 py-1 text-center text-2xs text-muted-foreground`,children:`More items available. Expand again or refresh to load the next page.`},void 0,!1,{fileName:Qk,lineNumber:250,columnNumber:52},this),e.items.length===0?(0,I.jsxDEV)(`p`,{className:`py-4 text-center text-xs text-muted-foreground`,children:(e.count??0)>0?`Cards not loaded yet`:`Nothing here`},void 0,!1,{fileName:Qk,lineNumber:252,columnNumber:25},this):e.items.map(e=>(0,I.jsxDEV)(Jk,{item:e,selected:d.has(e.id),relation:re(e),plannedIn:t?.get(e.id),onOpenPlan:n,onToggle:f,onOpenDetail:p,onHoverChange:y},e.id,!1,{fileName:Qk,lineNumber:254,columnNumber:27},this))]},void 0,!0,{fileName:Qk,lineNumber:249,columnNumber:19},this)]},e.key,!0,{fileName:Qk,lineNumber:232,columnNumber:17},this)})},void 0,!1,{fileName:Qk,lineNumber:225,columnNumber:11},this),h&&e.pagination?.hasMore&&a!==`closed`&&(0,I.jsxDEV)(L,{variant:`outline`,size:`sm`,className:`mx-auto`,onClick:()=>{h&&h()},children:`Load more board items`},void 0,!1,{fileName:Qk,lineNumber:274,columnNumber:9},this),ne&&(k.size>0||A.size>0)&&(0,I.jsxDEV)(`div`,{className:`pointer-events-none fixed bottom-4 left-4 z-20 flex items-center gap-3 rounded-full border border-border bg-card px-3 py-1.5 text-xs text-muted-foreground shadow-lg`,children:[(0,I.jsxDEV)(`span`,{className:`max-w-56 truncate font-medium text-foreground`,children:Xw(ne.id)},void 0,!1,{fileName:Qk,lineNumber:281,columnNumber:11},this),k.size>0&&(0,I.jsxDEV)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,I.jsxDEV)(`span`,{className:`h-2 w-2 rounded-full bg-[color:var(--prio-medium)]`},void 0,!1,{fileName:Qk,lineNumber:284,columnNumber:15},this),` waits on `,k.size]},void 0,!0,{fileName:Qk,lineNumber:283,columnNumber:13},this),A.size>0&&(0,I.jsxDEV)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,I.jsxDEV)(`span`,{className:`h-2 w-2 rounded-full bg-[color:var(--lane-ready)]`},void 0,!1,{fileName:Qk,lineNumber:289,columnNumber:15},this),` unblocks `,A.size]},void 0,!0,{fileName:Qk,lineNumber:288,columnNumber:13},this)]},void 0,!0,{fileName:Qk,lineNumber:280,columnNumber:9},this)]},void 0,!0,{fileName:Qk,lineNumber:157,columnNumber:5},this)}function iA({column:e,onExpand:t}){return(0,I.jsxDEV)(`button`,{type:`button`,onClick:t,title:`Expand ${e.title} (${e.count??e.items.length})`,className:`flex min-h-48 w-10 shrink-0 flex-col items-center gap-2 rounded-lg border border-border/60 bg-background/40 py-2 text-muted-foreground transition-colors hover:border-muted-foreground/50 hover:text-foreground`,children:[(0,I.jsxDEV)(ae,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:Qk,lineNumber:308,columnNumber:7},this),(0,I.jsxDEV)(`span`,{className:`h-2 w-2 rounded-full`,style:{background:e.tone}},void 0,!1,{fileName:Qk,lineNumber:309,columnNumber:7},this),(0,I.jsxDEV)(`span`,{className:`text-xs font-semibold [text-orientation:mixed] [writing-mode:vertical-rl]`,children:e.title},void 0,!1,{fileName:Qk,lineNumber:310,columnNumber:7},this),(0,I.jsxDEV)(`span`,{className:`rounded-full border border-border px-1.5 text-2xs`,children:e.count??e.items.length},void 0,!1,{fileName:Qk,lineNumber:311,columnNumber:7},this)]},void 0,!0,{fileName:Qk,lineNumber:302,columnNumber:5},this)}function aA({options:e,active:t,onSelect:n}){return(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:e.map(e=>(0,I.jsxDEV)(`button`,{onClick:()=>n(e.id),className:`rounded-md border px-2.5 py-1 text-xs transition-colors ${t===e.id?`border-primary bg-primary/10 text-text-bright`:`border-border text-muted-foreground hover:border-muted-foreground/50`}`,children:e.label},e.id,!1,{fileName:Qk,lineNumber:320,columnNumber:9},this))},void 0,!1,{fileName:Qk,lineNumber:318,columnNumber:5},this)}var oA=l(h(),1),sA=[];function cA(e,t=!0){w.useEffect(()=>{if(!t)return;let n=()=>e();sA.push(n);let r=t=>{t.key===`Escape`&&sA[sA.length-1]===n&&(t.stopPropagation(),e())};return window.addEventListener(`keydown`,r),()=>{window.removeEventListener(`keydown`,r);let e=sA.indexOf(n);e!==-1&&sA.splice(e,1)}},[e,t])}var lA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/drawer.tsx`,uA={sm:`w-[26rem]`,md:`w-[34rem]`},dA=`a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])`;function fA({ariaLabel:e,title:t,eyebrow:n,subtitle:r,width:i=`md`,headerAlign:a=`start`,closeLabel:o=`Close`,onClose:s,children:c}){let l=w.useRef(null);return cA(s),w.useEffect(()=>{let e=document.activeElement;return l.current?.focus(),()=>e?.focus?.()},[]),w.useEffect(()=>{let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[]),(0,oA.createPortal)((0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(`div`,{className:`fixed inset-0 z-30 bg-background/70 backdrop-blur-sm animate-scrim-in`,"aria-hidden":`true`,onClick:s},void 0,!1,{fileName:lA,lineNumber:80,columnNumber:7},this),(0,I.jsxDEV)(`aside`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-label":e,tabIndex:-1,onKeyDown:e=>{if(e.key!==`Tab`)return;let t=l.current?.querySelectorAll(dA);if(!t||t.length===0){e.preventDefault(),l.current?.focus();return}let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())},className:xn(`fixed inset-y-0 right-0 z-40 flex max-w-full flex-col border-l border-border bg-card shadow-2xl outline-none animate-drawer-in`,uA[i]),children:[(0,I.jsxDEV)(`header`,{className:xn(`flex gap-2 border-b border-border p-4`,a===`center`?`items-center`:`items-start`),children:[(0,I.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:[n&&(0,I.jsxDEV)(`p`,{className:`text-2xs font-semibold uppercase tracking-wide text-[color:var(--lane-archive)]`,children:n},void 0,!1,{fileName:lA,lineNumber:92,columnNumber:25},this),(0,I.jsxDEV)(`h3`,{className:xn(`text-sm font-semibold leading-snug text-text-bright`,n&&`mt-0.5`),children:t},void 0,!1,{fileName:lA,lineNumber:93,columnNumber:13},this),r]},void 0,!0,{fileName:lA,lineNumber:91,columnNumber:11},this),(0,I.jsxDEV)(`button`,{type:`button`,"aria-label":o,className:`rounded p-1 text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground`,onClick:s,children:(0,I.jsxDEV)(Ve,{className:`h-4 w-4`},void 0,!1,{fileName:lA,lineNumber:102,columnNumber:13},this)},void 0,!1,{fileName:lA,lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:lA,lineNumber:90,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex-1 overflow-y-auto p-4`,children:c},void 0,!1,{fileName:lA,lineNumber:105,columnNumber:9},this)]},void 0,!0,{fileName:lA,lineNumber:81,columnNumber:7},this)]},void 0,!0,{fileName:lA,lineNumber:79,columnNumber:5},this),document.body)}var pA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/select.tsx`,mA=w.forwardRef(({className:e,children:t,...n},r)=>(0,I.jsxDEV)(`select`,{ref:r,className:xn(`flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),...n,children:t},void 0,!1,{fileName:pA,lineNumber:7,columnNumber:3},void 0));mA.displayName=`Select`;var hA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/sub-block.tsx`;function gA({title:e,className:t,children:n}){return(0,I.jsxDEV)(`div`,{className:xn(`grid gap-2 border-t border-border pt-2`,t),children:[e&&(0,I.jsxDEV)(`span`,{className:`text-2xs font-semibold uppercase tracking-wide text-muted-foreground`,children:e},void 0,!1,{fileName:hA,lineNumber:12,columnNumber:17},this),n]},void 0,!0,{fileName:hA,lineNumber:11,columnNumber:5},this)}var J=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/item-drawer.tsx`,_A=[`candidate`,`planned`,`active`,`shipped`,`stale`,`superseded`],vA=[`high`,`medium`,`low`],yA=``;function bA({item:e,epics:t,plans:n=[],onOpenPlan:r,onClose:i,onRefresh:a}){let o=$n(),[s,c]=w.useState(e.status),[l,u]=w.useState(e.priority),[d,f]=w.useState(e.epic??yA),[p,m]=w.useState(!1),[h,g]=w.useState(null),[_,v]=w.useState(!1),[y,b]=w.useState(null);w.useEffect(()=>{c(e.status),u(e.priority),f(e.epic??yA),g(null)},[e.id,e.status,e.priority,e.epic]),w.useEffect(()=>{let t=!1;return v(!0),b(null),sw().invokeAction(`get-item`,{id:e.id,includeBody:!0}).then(n=>{t||g(pw(e,n))}).catch(e=>{t||b(e instanceof Error?e.message:String(e))}).finally(()=>{t||v(!1)}),()=>{t=!0}},[e]);let x=h??e,S=s!==e.status||l!==e.priority||d!==(e.epic??yA),C=x.unresolvedDependsOn.length>0&&[`candidate`,`planned`,`active`].includes(s),T=async()=>{m(!0);try{await sw().invokeAction(`update-item`,{id:e.id,...s!==e.status&&{status:s},...l!==e.priority&&{priority:l},...d!==(e.epic??yA)&&{epic:d}}),await a(),o.push(`Updated ${Xw(e.id)}.`,`success`)}catch(e){o.push(e instanceof Error?e.message:String(e),`error`)}finally{m(!1)}};return(0,I.jsxDEV)(fA,{ariaLabel:`Details for ${e.title}`,width:`sm`,title:e.title,subtitle:(0,I.jsxDEV)(`code`,{className:`mt-1 block break-all text-2xs text-muted-foreground`,children:e.id},void 0,!1,{fileName:J,lineNumber:97,columnNumber:17},this),closeLabel:`Close details`,onClose:i,children:[(0,I.jsxDEV)(`section`,{className:`grid gap-2`,children:[(0,I.jsxDEV)(xA,{label:`Status`,children:(0,I.jsxDEV)(mA,{value:s,onChange:e=>c(e.target.value),className:`h-8 text-xs capitalize`,children:_A.map(e=>(0,I.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:J,lineNumber:104,columnNumber:48},this))},void 0,!1,{fileName:J,lineNumber:103,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:102,columnNumber:11},this),(0,I.jsxDEV)(xA,{label:`Priority`,children:(0,I.jsxDEV)(mA,{value:l,onChange:e=>u(e.target.value),className:`h-8 text-xs capitalize`,children:vA.map(e=>(0,I.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:J,lineNumber:109,columnNumber:42},this))},void 0,!1,{fileName:J,lineNumber:108,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:107,columnNumber:11},this),(0,I.jsxDEV)(xA,{label:`Epic`,children:(0,I.jsxDEV)(mA,{value:d,onChange:e=>f(e.target.value),className:`h-8 text-xs`,children:[(0,I.jsxDEV)(`option`,{value:yA,children:`No epic`},void 0,!1,{fileName:J,lineNumber:114,columnNumber:15},this),t.map(e=>(0,I.jsxDEV)(`option`,{value:e.id,children:e.title??e.id},e.id,!1,{fileName:J,lineNumber:115,columnNumber:37},this)),d!==yA&&!t.some(e=>e.id===d)&&(0,I.jsxDEV)(`option`,{value:d,children:[d,` (missing)`]},void 0,!0,{fileName:J,lineNumber:116,columnNumber:81},this)]},void 0,!0,{fileName:J,lineNumber:113,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:112,columnNumber:11},this),C&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:[`Unresolved dependencies (`,x.unresolvedDependsOn.map(Xw).join(`, `),`) keep this item in the Blocked lane regardless of status.`]},void 0,!0,{fileName:J,lineNumber:120,columnNumber:13},this),(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,disabled:!S||p,onClick:()=>void T(),children:p?`Saving…`:`Save`},void 0,!1,{fileName:J,lineNumber:125,columnNumber:13},this),S&&!p&&(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,onClick:()=>{c(e.status),u(e.priority),f(e.epic??yA)},children:`Reset`},void 0,!1,{fileName:J,lineNumber:127,columnNumber:15},this)]},void 0,!0,{fileName:J,lineNumber:124,columnNumber:11},this)]},void 0,!0,{fileName:J,lineNumber:101,columnNumber:7},this),n.length>0&&(0,I.jsxDEV)(SA,{title:`Planned in ${n.length===1?`plan`:`${n.length} plans`}`,children:(0,I.jsxDEV)(`ul`,{className:`grid gap-1`,children:n.map(e=>(0,I.jsxDEV)(`li`,{children:(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>r?.(e.key),disabled:!r,title:`Open plan ${e.title}`,className:`flex w-full items-center gap-2 rounded border border-border bg-card p-2 text-left text-xs transition-colors hover:border-primary disabled:cursor-default disabled:hover:border-border`,children:[(0,I.jsxDEV)(me,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`},void 0,!1,{fileName:J,lineNumber:144,columnNumber:21},this),(0,I.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-text-bright`,children:e.title},void 0,!1,{fileName:J,lineNumber:145,columnNumber:21},this),e.status&&(0,I.jsxDEV)(Tn,{variant:`outline`,className:`shrink-0`,children:e.status},void 0,!1,{fileName:J,lineNumber:146,columnNumber:37},this)]},void 0,!0,{fileName:J,lineNumber:137,columnNumber:19},this)},e.key,!1,{fileName:J,lineNumber:136,columnNumber:17},this))},void 0,!1,{fileName:J,lineNumber:134,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:133,columnNumber:11},this),_&&(0,I.jsxDEV)(`p`,{className:`mt-4 rounded border border-border bg-background p-2 text-xs text-muted-foreground`,children:`Loading item details…`},void 0,!1,{fileName:J,lineNumber:154,columnNumber:27},this),y&&(0,I.jsxDEV)(Kn,{className:`mt-4`,children:y},void 0,!1,{fileName:J,lineNumber:155,columnNumber:25},this),x.reasons.length>0&&(0,I.jsxDEV)(SA,{title:`Lane`,children:(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{className:`capitalize text-foreground`,children:x.lane},void 0,!1,{fileName:J,lineNumber:159,columnNumber:58},this),` · `,x.reasons.join(`; `)]},void 0,!0,{fileName:J,lineNumber:159,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:158,columnNumber:11},this),x.tags.length>0&&(0,I.jsxDEV)(SA,{title:`Tags`,children:(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:x.tags.map(e=>(0,I.jsxDEV)(`span`,{className:`rounded border border-border px-1.5 py-0.5 text-2xs text-muted-foreground`,children:e},e,!1,{fileName:J,lineNumber:166,columnNumber:46},this))},void 0,!1,{fileName:J,lineNumber:165,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:164,columnNumber:11},this),x.body?.trim()&&(0,I.jsxDEV)(SA,{title:`Body`,children:(0,I.jsxDEV)(zO,{markdown:x.body},void 0,!1,{fileName:J,lineNumber:173,columnNumber:13},this)},void 0,!1,{fileName:J,lineNumber:172,columnNumber:11},this),(0,I.jsxDEV)(CA,{title:`Depends on`,refs:x.dependencies},void 0,!1,{fileName:J,lineNumber:177,columnNumber:9},this),(0,I.jsxDEV)(CA,{title:`Enables`,refs:x.dependents},void 0,!1,{fileName:J,lineNumber:178,columnNumber:9},this),(x.recLanes.length>0||x.recUnblock)&&(0,I.jsxDEV)(SA,{title:`Recommendations`,children:[x.recLanes.length>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:x.recLanes.map(e=>(0,I.jsxDEV)(`span`,{className:`rounded border border-border px-1.5 py-0.5 text-2xs text-muted-foreground`,children:e},e,!1,{fileName:J,lineNumber:184,columnNumber:53},this))},void 0,!1,{fileName:J,lineNumber:183,columnNumber:15},this),x.recUnblock&&(0,I.jsxDEV)(`p`,{className:`mt-2 text-xs text-[color:var(--prio-medium)]`,children:x.recUnblock},void 0,!1,{fileName:J,lineNumber:187,columnNumber:40},this)]},void 0,!0,{fileName:J,lineNumber:181,columnNumber:11},this),(0,I.jsxDEV)(wA,{title:`Claim`,content:x.notes.claim},void 0,!1,{fileName:J,lineNumber:191,columnNumber:9},this),(0,I.jsxDEV)(wA,{title:`Evidence`,content:x.notes.evidence},void 0,!1,{fileName:J,lineNumber:192,columnNumber:9},this),(0,I.jsxDEV)(wA,{title:`Recheck`,content:x.notes.recheck},void 0,!1,{fileName:J,lineNumber:193,columnNumber:9},this),(0,I.jsxDEV)(wA,{title:`Promotion paths`,content:x.notes.promotionPaths},void 0,!1,{fileName:J,lineNumber:194,columnNumber:9},this),(0,I.jsxDEV)(SA,{title:`Lifecycle`,children:(0,I.jsxDEV)(Rk,{item:x},void 0,!1,{fileName:J,lineNumber:197,columnNumber:11},this)},void 0,!1,{fileName:J,lineNumber:196,columnNumber:9},this)]},void 0,!0,{fileName:J,lineNumber:93,columnNumber:5},this)}function xA({label:e,children:t}){return(0,I.jsxDEV)(`label`,{className:`grid grid-cols-[5rem_1fr] items-center gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{children:e},void 0,!1,{fileName:J,lineNumber:206,columnNumber:7},this),t]},void 0,!0,{fileName:J,lineNumber:205,columnNumber:5},this)}function SA({title:e,children:t}){return(0,I.jsxDEV)(gA,{title:e,className:`mt-4 pt-3`,children:t},void 0,!1,{fileName:J,lineNumber:214,columnNumber:10},this)}function CA({title:e,refs:t}){return t.length===0?null:(0,I.jsxDEV)(SA,{title:e,children:(0,I.jsxDEV)(`ul`,{className:`grid gap-1`,children:t.map(e=>(0,I.jsxDEV)(`li`,{className:`flex items-baseline gap-2 text-xs`,children:[(0,I.jsxDEV)(`code`,{className:`min-w-0 truncate rounded border px-1 text-2xs ${e.blocking?`border-[color:var(--lane-blocked)]/40 text-[color:var(--lane-blocked)]`:e.missing?`border-dashed border-[color:var(--lane-blocked)]/50 text-[color:var(--lane-blocked)]`:`border-border text-muted-foreground`}`,title:e.id,children:Xw(e.id)},void 0,!1,{fileName:J,lineNumber:224,columnNumber:13},this),(0,I.jsxDEV)(`span`,{className:`min-w-0 truncate text-muted-foreground`,title:e.title,children:e.missing?`Missing: ${e.id}`:e.title},void 0,!1,{fileName:J,lineNumber:227,columnNumber:13},this),e.status&&(0,I.jsxDEV)(`span`,{className:`ml-auto shrink-0 text-2xs capitalize text-muted-foreground/70`,children:e.status},void 0,!1,{fileName:J,lineNumber:228,columnNumber:28},this)]},e.id,!0,{fileName:J,lineNumber:223,columnNumber:11},this))},void 0,!1,{fileName:J,lineNumber:221,columnNumber:7},this)},void 0,!1,{fileName:J,lineNumber:220,columnNumber:5},this)}function wA({title:e,content:t}){return t.trim()?(0,I.jsxDEV)(SA,{title:e,children:(0,I.jsxDEV)(`pre`,{className:`whitespace-pre-wrap break-words rounded border border-border bg-background p-2 text-2xs text-foreground`,children:t.trim()},void 0,!1,{fileName:J,lineNumber:240,columnNumber:7},this)},void 0,!1,{fileName:J,lineNumber:239,columnNumber:5},this):null}var TA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/epic-drawer.tsx`;function EA({epicId:e,onClose:t}){let[n,r]=w.useState(null),[i,a]=w.useState(!1),[o,s]=w.useState(null);w.useEffect(()=>{let t=!1;return a(!0),s(null),sw().invokeAction(`get-epic`,{id:e,includeBody:!0,includeItems:!1}).then(e=>{t||r(e.epic)}).catch(e=>{t||s(e instanceof Error?e.message:String(e))}).finally(()=>{t||a(!1)}),()=>{t=!0}},[e]);let c=n?.title??e;return(0,I.jsxDEV)(fA,{ariaLabel:`Horizon epic ${c}`,eyebrow:`Horizon epic · no items`,title:c,subtitle:(0,I.jsxDEV)(`code`,{className:`mt-1 block break-all text-2xs text-muted-foreground`,children:e},void 0,!1,{fileName:TA,lineNumber:51,columnNumber:17},this),onClose:t,children:[i&&(0,I.jsxDEV)(`p`,{className:`rounded border border-border bg-background p-2 text-xs text-muted-foreground`,children:`Loading epic…`},void 0,!1,{fileName:TA,lineNumber:54,columnNumber:19},this),o&&(0,I.jsxDEV)(Kn,{children:o},void 0,!1,{fileName:TA,lineNumber:55,columnNumber:17},this),n&&(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-1 text-2xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{children:[`Status `,(0,I.jsxDEV)(`span`,{className:`capitalize text-foreground`,children:n.status},void 0,!1,{fileName:TA,lineNumber:60,columnNumber:26},this)]},void 0,!0,{fileName:TA,lineNumber:60,columnNumber:13},this),n.priority&&(0,I.jsxDEV)(`span`,{children:[`Priority `,(0,I.jsxDEV)(`span`,{className:`capitalize text-foreground`,children:n.priority},void 0,!1,{fileName:TA,lineNumber:61,columnNumber:46},this)]},void 0,!0,{fileName:TA,lineNumber:61,columnNumber:31},this)]},void 0,!0,{fileName:TA,lineNumber:59,columnNumber:11},this),n.tags.length>0&&(0,I.jsxDEV)(`div`,{className:`mt-2 flex flex-wrap gap-1`,children:n.tags.map(e=>(0,I.jsxDEV)(`span`,{className:`rounded border border-border px-1.5 py-0.5 text-2xs text-muted-foreground`,children:e},e,!1,{fileName:TA,lineNumber:65,columnNumber:39},this))},void 0,!1,{fileName:TA,lineNumber:64,columnNumber:13},this),(0,I.jsxDEV)(`div`,{className:`mt-4 border-t border-border pt-3`,children:n.body?.trim()?(0,I.jsxDEV)(zO,{markdown:n.body},void 0,!1,{fileName:TA,lineNumber:70,columnNumber:17},this):(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:`This epic has no body content.`},void 0,!1,{fileName:TA,lineNumber:71,columnNumber:17},this)},void 0,!1,{fileName:TA,lineNumber:68,columnNumber:11},this)]},void 0,!0,{fileName:TA,lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:TA,lineNumber:47,columnNumber:5},this)}var DA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/board-focus.tsx`,OA=[`lane`,`epic`,`recommended`],kA=[`all`,`open`,`ready`,`blocked`,`review`,`closed`];function AA({board:e,selection:t,itemPlanIndex:n,onRefresh:r,onLoadMoreBoard:i,onLoadClosedLane:a}){let o=qx(),s=hT(),c=o.query.get(`item`),l=w.useCallback(e=>{o.setQuery(t=>{e?t.set(`item`,e):t.delete(`item`)})},[o]),[u,d]=w.useState(null),f=w.useMemo(()=>c?(e.items??[]).find(e=>e.id===c)??null:null,[e.items,c]),p=jA(o.query.get(`group`),OA,`lane`),m=jA(o.query.get(`filter`),kA,`all`),h=o.query.get(`q`)??``,g=o.query.get(`epic`)??``,_=w.useCallback((e,t,n)=>{o.setQuery(r=>{!t||t===n?r.delete(e):r.set(e,t)})},[o]);return(0,I.jsxDEV)(`div`,{className:`grid gap-4`,children:[(0,I.jsxDEV)(rA,{board:e,itemPlanIndex:n,onOpenPlan:s.openPlan,query:h,onQuery:e=>_(`q`,e,``),filter:m,onFilter:e=>_(`filter`,e,`all`),group:p,onGroup:e=>_(`group`,e,`lane`),epicFilter:g,onEpicFilter:e=>_(`epic`,e,``),selected:t.selected,onToggle:t.toggleItem,onOpenDetail:e=>{d(null),l(e.id)},onOpenEpic:e=>{l(null),d(e)},onLoadMoreBoard:i,onLoadClosedLane:a},void 0,!1,{fileName:DA,lineNumber:57,columnNumber:7},this),f&&(0,I.jsxDEV)(bA,{item:f,epics:e.epics??[],plans:n.get(f.id)??[],onOpenPlan:s.openPlan,onClose:()=>l(null),onRefresh:r,selectedItemIds:t.selectedIds},void 0,!1,{fileName:DA,lineNumber:77,columnNumber:9},this),u&&(0,I.jsxDEV)(EA,{epicId:u,onClose:()=>d(null)},void 0,!1,{fileName:DA,lineNumber:87,columnNumber:24},this)]},void 0,!0,{fileName:DA,lineNumber:56,columnNumber:5},this)}function jA(e,t,n){return e&&t.includes(e)?e:n}var MA=6e4,NA=60*MA,PA=24*NA;function FA(e,t=Date.now()){if(!e)return null;let n=Date.parse(e);if(Number.isNaN(n))return null;let r=t-n,i=Math.abs(r);if(i<MA)return`just now`;if(i>=7*PA){let e=new Date(n),r=e.getFullYear()===new Date(t).getFullYear();return e.toLocaleDateString(void 0,r?{month:`short`,day:`numeric`}:{month:`short`,day:`numeric`,year:`numeric`})}let a=i<NA?`${Math.floor(i/MA)}m`:i<PA?`${Math.floor(i/NA)}h`:`${Math.floor(i/PA)}d`;return r<0?`in ${a}`:`${a} ago`}function IA(e){let t=/^(task-[0-9a-f]{8})-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.exec(e);return t?t[1]:e}function LA(e){if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?null:new Date(t).toISOString()}function RA(...e){for(let t of e){let e=LA(t);if(e)return e}return null}function zA(e){let t=null,n=-1/0;for(let r of e){let e=LA(r);if(!e)continue;let i=Date.parse(e);i>n&&(t=e,n=i)}return t}function BA(e){return e?RA(e.lastBuildActivityAt,zA([...UA(e.lifecycleLinks),...UA(e.linkRows),...UA(e.failureEvidence),...(e.prRefs??[]).flatMap(e=>[e.updatedAt,e.createdAt]),...(e.landingRefs??[]).flatMap(e=>[e.landedAt,e.updatedAt])])):null}function VA(e){return e?zA([e.updatedAt,e.readyAt,e.submittedAt,e.createdAt,BA(e)]):null}function HA(e,t){let n=e?.plan,r=t,i={...r,...n,lifecycleLinks:n?.lifecycleLinks??t?.lifecycleLinks??e?.lifecycle?.linkRows,linkRows:n?.linkRows??t?.linkRows??e?.lifecycle?.linkRows,failureEvidence:n?.failureEvidence??t?.failureEvidence??e?.lifecycle?.failureEvidence,prRefs:n?.prRefs??t?.prRefs,landingRefs:n?.landingRefs??t?.landingRefs};return{createdAt:RA(n?.createdAt,r?.createdAt),updatedAt:RA(n?.updatedAt,r?.updatedAt),readyAt:RA(n?.readyAt,r?.readyAt),submittedAt:RA(n?.submittedAt,r?.submittedAt),lastBuildActivityAt:BA(i)}}function UA(e){return(e??[]).flatMap(e=>[e.timestamp,e.promotedAt,e.queuedAt,e.startedAt,e.completedAt,e.landedAt])}var WA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/timestamp.tsx`;function GA({value:e,placeholder:t=`—`,className:n,prefix:r}){let i=LA(e);if(!i)return(0,I.jsxDEV)(`span`,{className:n,children:t},void 0,!1,{fileName:WA,lineNumber:19,columnNumber:20},this);let a=FA(i)??t;return(0,I.jsxDEV)(`time`,{className:n,dateTime:i,title:i,children:r?`${r} ${a}`:a},void 0,!1,{fileName:WA,lineNumber:21,columnNumber:10},this)}var KA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/checkbox.tsx`,qA=w.forwardRef(({className:e,...t},n)=>(0,I.jsxDEV)(`input`,{ref:n,type:`checkbox`,className:xn(`h-3.5 w-3.5 shrink-0 cursor-pointer accent-primary disabled:cursor-not-allowed disabled:opacity-50`,e),...t},void 0,!1,{fileName:KA,lineNumber:12,columnNumber:3},void 0));qA.displayName=`Checkbox`;var JA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plan-context-rail.tsx`;function YA(e){if(e)try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`?t.href:void 0}catch{return}}function XA(e){return YA(e.prRefs?.find(e=>e.url)?.url??e.linkRows?.find(e=>e.prUrl)?.prUrl)}function ZA({artifact:e,titles:t}){let{openItem:n}=hT();if(!e)return(0,I.jsxDEV)(Ck,{className:`p-2 text-xs`,children:`Select a plan to see where it came from and how far it has built.`},void 0,!1,{fileName:JA,lineNumber:40,columnNumber:12},this);let r=dT(e),i=fT(e),a=pT(e),o=XA(e);return(0,I.jsxDEV)(`div`,{className:`grid gap-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-start gap-2`,children:[(0,I.jsxDEV)(`p`,{className:`min-w-0 flex-1 truncate text-xs text-text-bright`,title:rT(e.title,e.session??e.key),children:rT(e.title,e.session??e.key)},void 0,!1,{fileName:JA,lineNumber:51,columnNumber:9},this),a&&(0,I.jsxDEV)(Tn,{variant:`outline`,className:`shrink-0 capitalize`,children:a},void 0,!1,{fileName:JA,lineNumber:54,columnNumber:24},this)]},void 0,!0,{fileName:JA,lineNumber:50,columnNumber:7},this),r.length>0&&(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`span`,{className:`mb-1 block text-2xs font-semibold uppercase tracking-wide text-muted-foreground`,children:[`Built from `,r.length,` backlog item`,r.length===1?``:`s`]},void 0,!0,{fileName:JA,lineNumber:59,columnNumber:11},this),(0,I.jsxDEV)(`ul`,{className:`grid gap-0.5`,children:r.map(e=>(0,I.jsxDEV)(`li`,{children:(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>n(e),title:`Open ${e} on the board`,className:`flex w-full items-center gap-2 rounded px-1.5 py-1 text-left text-2xs leading-snug text-foreground transition-colors hover:bg-accent`,children:(0,I.jsxDEV)(`span`,{className:`line-clamp-2 min-w-0 flex-1`,children:t.get(e)??e},void 0,!1,{fileName:JA,lineNumber:71,columnNumber:19},this)},void 0,!1,{fileName:JA,lineNumber:65,columnNumber:17},this)},e,!1,{fileName:JA,lineNumber:64,columnNumber:15},this))},void 0,!1,{fileName:JA,lineNumber:62,columnNumber:11},this)]},void 0,!0,{fileName:JA,lineNumber:58,columnNumber:9},this),i.length>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1 text-2xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{children:`Epics`},void 0,!1,{fileName:JA,lineNumber:81,columnNumber:11},this),i.map(e=>(0,I.jsxDEV)(`code`,{className:`rounded border border-border bg-card px-1 text-text-bright`,children:e},e,!1,{fileName:JA,lineNumber:82,columnNumber:32},this))]},void 0,!0,{fileName:JA,lineNumber:80,columnNumber:9},this),r.length===0&&i.length===0&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:`No source backlog items recorded for this plan.`},void 0,!1,{fileName:JA,lineNumber:87,columnNumber:9},this),o&&(0,I.jsxDEV)(`a`,{href:o,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-2xs text-[color:var(--lane-ready)] hover:underline`,children:[(0,I.jsxDEV)(ge,{className:`h-3 w-3`},void 0,!1,{fileName:JA,lineNumber:92,columnNumber:11},this),` View pull request`]},void 0,!0,{fileName:JA,lineNumber:91,columnNumber:9},this),(0,I.jsxDEV)(`p`,{className:`text-2xs leading-relaxed text-muted-foreground`,children:`Builds run in the global queue (see the top bar). Full build trace is in the plan footer.`},void 0,!1,{fileName:JA,lineNumber:96,columnNumber:7},this)]},void 0,!0,{fileName:JA,lineNumber:49,columnNumber:5},this)}var QA=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/collapsible-panel.tsx`;function $A(e,t){try{let n=window.localStorage.getItem(e);return n===null?t:n===`true`}catch{return t}}function ej({storageKey:e,defaultOpen:t=!1,className:n,icon:r,title:i,summary:a,actions:o,children:s}){let c=w.useRef(!1),[l,u]=w.useState(()=>{try{c.current=window.localStorage.getItem(e)!==null}catch{c.current=!1}return $A(e,t)});return w.useEffect(()=>{t&&!c.current&&u(!0)},[t]),(0,I.jsxDEV)(`details`,{open:l,className:xn(`rounded-lg border p-3`,n),children:[(0,I.jsxDEV)(`summary`,{onClick:t=>{t.preventDefault(),u(t=>{let n=!t;try{window.localStorage.setItem(e,String(n)),c.current=!0}catch{}return n})},className:`flex cursor-pointer flex-wrap items-center gap-2 [&::-webkit-details-marker]:hidden`,style:{listStyle:`none`},children:[(0,I.jsxDEV)(j,{className:`h-4 w-4 shrink-0 text-muted-foreground transition-transform ${l?`rotate-90`:``}`},void 0,!1,{fileName:QA,lineNumber:66,columnNumber:9},this),r,(0,I.jsxDEV)(`h3`,{className:`text-sm font-semibold text-text-bright`,children:i},void 0,!1,{fileName:QA,lineNumber:68,columnNumber:9},this),a,o&&(0,I.jsxDEV)(`span`,{className:`ml-auto flex items-center gap-2`,onClick:e=>{e.preventDefault(),e.stopPropagation()},children:o},void 0,!1,{fileName:QA,lineNumber:71,columnNumber:11},this)]},void 0,!0,{fileName:QA,lineNumber:65,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-2`,children:s},void 0,!1,{fileName:QA,lineNumber:87,columnNumber:7},this)]},void 0,!0,{fileName:QA,lineNumber:64,columnNumber:5},this)}function tj(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``)}function nj(e){return tj(e).replace(/-/g,` `)}function rj(e){return e.split(/[-\s]+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function ij(e,t){if(!e)return``;let n=tj(t);return e[nj(n)]??e[n]??e[t]??``}function aj(e){return[...e].sort((e,t)=>Date.parse(e.createdAt)-Date.parse(t.createdAt))}function oj(e){return e===`queued`||e===`running`}function sj(e){return e.available===!1||!e.task?`unavailable`:e.task.status===`queued`?`queued`:e.task.status===`running`?`running`:e.task.status===`failed`?`failed`:e.task.status===`cancelled`?`cancelled`:e.task.result?.decision===`needs-input`?`needs-input`:lj(e).length>0?`patch`:e.task.result?.planRevisionTurn?`answer`:`unavailable`}function cj(e){return e.reduce((e,t)=>{let n=sj(t);return(n===`queued`||n===`running`)&&(e.running+=1),(n===`failed`||n===`cancelled`||n===`unavailable`)&&(e.failed+=1),n===`patch`&&(e.patchReady+=1),n===`needs-input`&&(e.needsInput+=1),e.appliedSections+=t.appliedSections?.length??0,e},{running:0,failed:0,patchReady:0,needsInput:0,appliedSections:0})}function lj(e){return e.task?.result?.planRevisionTurn?.proposedPatch?.sections??[]}function uj(e){return e.some(e=>oj(e.task?.status??e.status))}function dj(e){return e.task?.status?e.task.status:e.staleReason?`missing task`:`unknown`}function fj(e){if(!e)return null;let t=e.metadata?.sectionProgress,n=[e.metadata?.progressMessage,t?.currentSection?`Current section: ${t.currentSection}`:void 0,pj(`Covered`,t?.coveredSections),pj(`Remaining`,t?.remainingSections)].filter(Boolean);return n.length>0?n.join(` · `):null}function pj(e,t){if(!Array.isArray(t)||t.length===0)return;let n=t.map(String).filter(Boolean);if(n.length===0)return;let r=n.slice(0,3).join(`, `),i=n.length>3?` +${n.length-3}`:``;return`${e} (${n.length}): ${r}${i}`}var mj=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/plan-revision-patch-summary.tsx`;function hj({turn:e}){let t=lj(e);if(t.length===0)return null;let n=e.task?.result?.planRevisionTurn?.proposedPatch?.skippedDimensions??[];return(0,I.jsxDEV)(`details`,{className:`rounded-md border bg-background/50 p-2 text-xs`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer font-medium text-muted-foreground`,children:[`View changes (`,t.length,` `,t.length===1?`section`:`sections`,`)`]},void 0,!0,{fileName:mj,lineNumber:21,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-2`,children:[t.map(e=>(0,I.jsxDEV)(`section`,{className:`grid gap-1 rounded border bg-background p-2`,children:[(0,I.jsxDEV)(Tn,{variant:`outline`,className:`w-fit`,children:rj(e.dimension)},void 0,!1,{fileName:mj,lineNumber:27,columnNumber:13},this),e.rationale&&(0,I.jsxDEV)(`p`,{className:`text-muted-foreground`,children:e.rationale},void 0,!1,{fileName:mj,lineNumber:28,columnNumber:35},this),(0,I.jsxDEV)(zO,{markdown:e.content},void 0,!1,{fileName:mj,lineNumber:29,columnNumber:13},this)]},e.dimension,!0,{fileName:mj,lineNumber:26,columnNumber:11},this)),n.length>0&&(0,I.jsxDEV)(`p`,{className:`text-muted-foreground`,children:[`Skipped: `,n.map(e=>`${rj(e.dimension)} (${e.reason})`).join(`; `)]},void 0,!0,{fileName:mj,lineNumber:32,columnNumber:32},this)]},void 0,!0,{fileName:mj,lineNumber:24,columnNumber:7},this)]},void 0,!0,{fileName:mj,lineNumber:20,columnNumber:5},this)}var gj=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/plan-revision-thread.tsx`;function _j({turn:e,busy:t,onRedraft:n}){let r=e.task?.result?.clarificationQuestions??[],[i,a]=w.useState({}),[o,s]=w.useState(``);return(0,I.jsxDEV)(`div`,{className:`grid gap-2 rounded-md border bg-background/50 p-3`,children:[(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:e.task?.result?.rationale},void 0,!1,{fileName:gj,lineNumber:31,columnNumber:5},this),r.map((e,t)=>(0,I.jsxDEV)(`label`,{className:`grid gap-1 text-xs`,children:[(0,I.jsxDEV)(`span`,{className:`font-medium`,children:e.question},void 0,!1,{fileName:gj,lineNumber:32,columnNumber:117},this),e.why&&(0,I.jsxDEV)(`span`,{className:`text-muted-foreground`,children:e.why},void 0,!1,{fileName:gj,lineNumber:32,columnNumber:190},this),(0,I.jsxDEV)(YO,{value:i[t]??``,onChange:e=>a(n=>({...n,[t]:e.target.value}))},void 0,!1,{fileName:gj,lineNumber:32,columnNumber:252},this)]},`${e.question}-${t}`,!0,{fileName:gj,lineNumber:32,columnNumber:41},this)),(0,I.jsxDEV)(`label`,{className:`grid gap-1 text-xs`,children:[(0,I.jsxDEV)(`span`,{className:`font-medium`,children:`Optional steering`},void 0,!1,{fileName:gj,lineNumber:33,columnNumber:43},this),(0,I.jsxDEV)(YO,{value:o,onChange:e=>s(e.target.value)},void 0,!1,{fileName:gj,lineNumber:33,columnNumber:97},this)]},void 0,!0,{fileName:gj,lineNumber:33,columnNumber:5},this),(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,disabled:t,onClick:()=>{n(e,r.map((e,t)=>({prompt:e.question,answer:i[t]??``})).filter(e=>e.answer.trim().length>0),o)},children:`Answer and redraft`},void 0,!1,{fileName:gj,lineNumber:34,columnNumber:10},this)},void 0,!1,{fileName:gj,lineNumber:34,columnNumber:5},this)]},void 0,!0,{fileName:gj,lineNumber:30,columnNumber:10},this)}function vj({turns:e,busy:t,onCancel:n,onRetry:r,onRedraft:i}){return e.length===0?(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:`No revision turns yet. Ask a question or request a targeted plan change.`},void 0,!1,{fileName:gj,lineNumber:39,columnNumber:34},this):(0,I.jsxDEV)(`div`,{className:`grid gap-3`,children:aj(e).map(e=>{let a=e.task,o=sj(e),s=a?.result?.planRevisionTurn,c=fj(a),l=o===`queued`||o===`running`;return(0,I.jsxDEV)(`article`,{className:`grid gap-2 rounded-md border p-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(Tn,{variant:`outline`,children:dj(e)},void 0,!1,{fileName:gj,lineNumber:49,columnNumber:11},this),(0,I.jsxDEV)(`span`,{children:a?.taskId?IA(a.taskId):e.taskId},void 0,!1,{fileName:gj,lineNumber:50,columnNumber:11},this),(0,I.jsxDEV)(`span`,{children:FA(e.createdAt)??e.createdAt},void 0,!1,{fileName:gj,lineNumber:51,columnNumber:11},this),e.staleReason&&(0,I.jsxDEV)(`span`,{children:e.staleReason},void 0,!1,{fileName:gj,lineNumber:52,columnNumber:32},this)]},void 0,!0,{fileName:gj,lineNumber:48,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`rounded-md bg-secondary/40 p-2 text-sm`,children:[(0,I.jsxDEV)(`strong`,{children:`You:`},void 0,!1,{fileName:gj,lineNumber:54,columnNumber:65},this),` `,e.userMessage]},void 0,!0,{fileName:gj,lineNumber:54,columnNumber:9},this),l&&(0,I.jsxDEV)(`p`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:gj,lineNumber:55,columnNumber:90},this),c??`Working on this revision…`]},void 0,!0,{fileName:gj,lineNumber:55,columnNumber:21},this),!l&&c&&(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:c},void 0,!1,{fileName:gj,lineNumber:56,columnNumber:34},this),l&&(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:t,onClick:()=>void n(e),children:[(0,I.jsxDEV)(de,{className:`h-4 w-4`},void 0,!1,{fileName:gj,lineNumber:57,columnNumber:114},this),` Cancel`]},void 0,!0,{fileName:gj,lineNumber:57,columnNumber:26},this)},void 0,!1,{fileName:gj,lineNumber:57,columnNumber:21},this),(o===`failed`||o===`cancelled`)&&(0,I.jsxDEV)(`div`,{className:`grid gap-2`,children:[(0,I.jsxDEV)(`p`,{className:`text-xs text-destructive-foreground`,children:a?.errorMessage??`Revision turn did not complete.`},void 0,!1,{fileName:gj,lineNumber:58,columnNumber:85},this),(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:t,onClick:()=>void r(e),children:[(0,I.jsxDEV)(Me,{className:`h-4 w-4`},void 0,!1,{fileName:gj,lineNumber:58,columnNumber:289},this),` Retry with preserved context`]},void 0,!0,{fileName:gj,lineNumber:58,columnNumber:202},this)},void 0,!1,{fileName:gj,lineNumber:58,columnNumber:197},this)]},void 0,!0,{fileName:gj,lineNumber:58,columnNumber:57},this),o===`unavailable`&&(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:[`Revision task unavailable: `,e.staleReason??`missing linked task record`,`.`]},void 0,!0,{fileName:gj,lineNumber:59,columnNumber:36},this),o===`needs-input`&&(0,I.jsxDEV)(_j,{turn:e,busy:t,onRedraft:i},void 0,!1,{fileName:gj,lineNumber:60,columnNumber:36},this),s?.assistantMessage&&(0,I.jsxDEV)(`div`,{className:`rounded-md border bg-background/50 p-2 text-sm`,children:(0,I.jsxDEV)(zO,{markdown:s.assistantMessage},void 0,!1,{fileName:gj,lineNumber:61,columnNumber:104},this)},void 0,!1,{fileName:gj,lineNumber:61,columnNumber:40},this),(s?.citations?.length??0)>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1 text-xs`,children:s?.citations?.map((e,t)=>(0,I.jsxDEV)(Tn,{variant:`outline`,children:[e.label,e.excerpt?`: ${e.excerpt}`:``]},`${e.label}-${t}`,!0,{fileName:gj,lineNumber:62,columnNumber:145},this))},void 0,!1,{fileName:gj,lineNumber:62,columnNumber:52},this),o===`answer`&&lj(e).length===0&&(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:`Answer-only revision turn.`},void 0,!1,{fileName:gj,lineNumber:63,columnNumber:67},this),o===`patch`&&(0,I.jsxDEV)(hj,{turn:e},void 0,!1,{fileName:gj,lineNumber:64,columnNumber:30},this),(e.appliedSections?.length??0)>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{children:[`Applied `,e.appliedAt?FA(e.appliedAt)??``:``,`:`]},void 0,!0,{fileName:gj,lineNumber:65,columnNumber:134},this),e.appliedSections?.map(e=>(0,I.jsxDEV)(Tn,{variant:`outline`,children:rj(e)},e,!1,{fileName:gj,lineNumber:65,columnNumber:262},this))]},void 0,!0,{fileName:gj,lineNumber:65,columnNumber:53},this)]},e.turnId,!0,{fileName:gj,lineNumber:47,columnNumber:14},this)})},void 0,!1,{fileName:gj,lineNumber:40,columnNumber:10},this)}var yj=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/plan-revision-panel.tsx`;function bj({plan:e,api:t,rail:n=!1,composer:r,hasAnnotations:i=!1}){let a=cj(t.revisionSession?.turns??[]),o=t.revisionSession?.turns??[],s=o.length>0||t.hasRunningTurn,c=(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:[a.running>0&&(0,I.jsxDEV)(Tn,{children:[a.running,` running`]},void 0,!0,{fileName:yj,lineNumber:32,columnNumber:28},this),a.patchReady>0&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:[a.patchReady,` patch ready`]},void 0,!0,{fileName:yj,lineNumber:33,columnNumber:31},this),a.needsInput>0&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:[a.needsInput,` needs input`]},void 0,!0,{fileName:yj,lineNumber:34,columnNumber:31},this),a.failed>0&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:[a.failed,` failed`]},void 0,!0,{fileName:yj,lineNumber:35,columnNumber:27},this),a.appliedSections>0&&(0,I.jsxDEV)(Tn,{children:[a.appliedSections,` applied sections`]},void 0,!0,{fileName:yj,lineNumber:36,columnNumber:36},this)]},void 0,!0,{fileName:yj,lineNumber:31,columnNumber:19},this);return(0,I.jsxDEV)(ej,{storageKey:`eforge-plan.revision.${n?`rail.`:``}${e.session}`,defaultOpen:n&&(s||i),className:n?`bg-background/70`:void 0,title:`Revise with AI`,icon:(0,I.jsxDEV)(re,{className:`h-4 w-4`},void 0,!1,{fileName:yj,lineNumber:39,columnNumber:230},this),summary:c,actions:t.initialized?(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:t.loading,onClick:()=>void t.reload({includePlan:!0}),children:[(0,I.jsxDEV)(Ae,{className:`h-4 w-4`},void 0,!1,{fileName:yj,lineNumber:39,columnNumber:418},this),` Refresh revision thread`]},void 0,!0,{fileName:yj,lineNumber:39,columnNumber:304},this):void 0,children:(0,I.jsxDEV)(`div`,{className:`grid gap-3 text-sm`,children:[!t.initialized&&(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:t.loading,onClick:()=>void t.ensureSession(),children:`Start or resume revision session`},void 0,!1,{fileName:yj,lineNumber:41,columnNumber:35},this)},void 0,!1,{fileName:yj,lineNumber:41,columnNumber:30},this),r,r&&o.length>0&&(0,I.jsxDEV)(`hr`,{className:`border-border`},void 0,!1,{fileName:yj,lineNumber:43,columnNumber:42},this),(0,I.jsxDEV)(vj,{turns:o,busy:t.busy,onCancel:t.cancel,onRetry:t.retry,onRedraft:t.redraft},void 0,!1,{fileName:yj,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:yj,lineNumber:40,columnNumber:7},this)},void 0,!1,{fileName:yj,lineNumber:39,columnNumber:5},this)}var xj=6e3,Sj=1e3,Cj=4e3;function wj(e){return e.replace(/\s+/g,` `).trim()}function Tj(e,t){let n=e.trim();return n.length>t?n.slice(0,t).trimEnd():n}function Ej(e){return wj(e.innerText||e.textContent||``)}function Dj(e,t){return Tj(e?.trim()||t,200)}function Oj(e,t){let n=wj(e),r=Tj(wj(t),xj);if(!r)return{exact:r};let i=n.indexOf(r);if(i<0)return{exact:r};let a=Tj(n.slice(Math.max(0,i-Sj),i),Sj),o=Tj(n.slice(i+r.length,i+r.length+Sj),Sj);return{exact:r,...a&&{prefix:a},...o&&{suffix:o}}}function kj(e,t,n,r,i){let a=Tj(wj(r),xj);return a?{kind:e,...t&&{dimension:t},label:Dj(n,rj(t??e)),capturedText:a,quoteContext:Oj(i,a)}:null}function Aj(e,t,n,r){if(!e||e.isCollapsed||e.rangeCount===0)return null;let i=e.getRangeAt(0),a=i.commonAncestorContainer.nodeType===Node.ELEMENT_NODE?i.commonAncestorContainer:i.commonAncestorContainer.parentElement??i.commonAncestorContainer.parentNode,o=e.toString();return a&&t.contains(a)?kj(`selection`,n,r??`${rj(n)} selection`,o,Ej(t)):null}function jj(e,t,n,r){return!e||!t.contains(e)?null:kj(`block`,n,r??`${rj(n)} block`,e.innerText||e.textContent||``,Ej(t))}function Mj(e,t,n){return kj(`section`,e,t??rj(e),n,n)}function Nj(e){let t=[`# ${e.topic||e.session}`,`Session: ${e.session}`];for(let[n,r]of Object.entries(e.sections??{}))r.trim()&&t.push(`## ${rj(n)}`,r);return Tj(t.join(`
371
+
372
+ `),xj)}function Pj(e){let t=Nj(e);return kj(`whole-plan`,void 0,`${e.topic||e.session} whole plan`,t,t)}function Fj(e){return!e.resolvedAt&&!e.dismissedAt}function Ij(e){return Lj((e??[]).filter(Fj))}function Lj(e){return[...e].sort((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.annotationId.localeCompare(t.annotationId))}function Rj(e,t){let n=t.map(e=>e.annotationId),r=e.filter(e=>n.includes(e));for(let e of n)r.includes(e)||r.push(e);return r}function zj(e){return e.length>10?e.slice(0,10):e}function Bj(e){let t=e.target,n=rj(t.kind),r=t.dimension?rj(t.dimension):``,i=t.label||n;return r&&i!==r?`${r} · ${i}`:i}function Vj(e){let{capturedText:t,quoteContext:n}=e.target,r=n.prefix?`…${n.prefix} `:``,i=n.suffix?` ${n.suffix}…`:``;return`${r}${t||n.exact}${i}`}function Hj(e){return e.disabled?`Plan is locked.`:e.loading||e.busy?`Revision actions are busy.`:e.hasRunningTurn?`A revision turn is already running.`:e.message.length>4e3?`Message is too long.`:!e.grounded&&e.message.trim().length===0?`Add a message or include annotations.`:null}var Uj=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/plan-revision-annotations-panel.tsx`;function Wj({plan:e,api:t,disabled:n}){let r=Ij(t.revisionSession?.annotations),[i,a]=w.useState([]),[o,s]=w.useState(``);w.useEffect(()=>{a(e=>Rj(e,r))},[r.map(e=>e.annotationId).join(`
373
+ `)]);let c=r.length>0,l=t.hasRunningTurn,u=i.length>0,d=Hj({loading:t.loading,busy:t.busy,hasRunningTurn:l,disabled:n,grounded:u,message:o}),f=`${r.length} open annotation${r.length===1?``:`s`}`,p=(e,t)=>a(n=>t?Array.from(new Set([...n,e])):n.filter(t=>t!==e)),m=async()=>{let e=o.trim();(u?await t.submitAnnotationRevision({annotationIds:i,includeOpenAnnotations:!1,steering:e}):await t.submit(e))&&s(``)},h=(0,I.jsxDEV)(`div`,{className:`grid gap-2`,children:[l&&(0,I.jsxDEV)(`p`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:Uj,lineNumber:50,columnNumber:88},this),` The AI is revising this plan. Its changes apply automatically when it finishes; plan edits and new requests are paused until then.`]},void 0,!0,{fileName:Uj,lineNumber:50,columnNumber:19},this),(0,I.jsxDEV)(`label`,{className:`grid gap-1 text-xs`,children:[(0,I.jsxDEV)(`span`,{className:`font-medium`,children:`Message to AI`},void 0,!1,{fileName:Uj,lineNumber:52,columnNumber:9},this),(0,I.jsxDEV)(YO,{"aria-label":`Message to AI`,value:o,maxLength:Cj+1,disabled:t.busy||t.loading||l,onChange:e=>s(e.target.value),placeholder:c?`Steer how the AI uses the included annotations, ask a question, or request a global change…`:`Ask a question or request a plan change…`},void 0,!1,{fileName:Uj,lineNumber:53,columnNumber:9},this)]},void 0,!0,{fileName:Uj,lineNumber:51,columnNumber:7},this),c&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:u?`Including ${i.length} of ${r.length} annotation${r.length===1?``:`s`}.`:`No annotations included - sends a plain message.`},void 0,!1,{fileName:Uj,lineNumber:56,columnNumber:9},this),d&&(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:d},void 0,!1,{fileName:Uj,lineNumber:58,columnNumber:26},this),(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,disabled:!!d,onClick:()=>void m(),children:[(0,I.jsxDEV)(Ie,{className:`h-4 w-4`},void 0,!1,{fileName:Uj,lineNumber:59,columnNumber:95},this),` Send to AI`]},void 0,!0,{fileName:Uj,lineNumber:59,columnNumber:12},this)},void 0,!1,{fileName:Uj,lineNumber:59,columnNumber:7},this)]},void 0,!0,{fileName:Uj,lineNumber:49,columnNumber:5},this);return(0,I.jsxDEV)(`div`,{className:`grid gap-3`,children:[c&&(0,I.jsxDEV)(`div`,{className:`grid gap-2`,"aria-label":`Revision annotations for ${e.session}`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(`h4`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Open annotations`},void 0,!1,{fileName:Uj,lineNumber:68,columnNumber:13},this),(0,I.jsxDEV)(Tn,{variant:`outline`,children:f},void 0,!1,{fileName:Uj,lineNumber:69,columnNumber:13},this)]},void 0,!0,{fileName:Uj,lineNumber:67,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`grid gap-2`,children:r.map(e=>(0,I.jsxDEV)(Gj,{annotation:e,api:t,disabled:n,selected:i.includes(e.annotationId),onToggle:p},e.annotationId,!1,{fileName:Uj,lineNumber:73,columnNumber:15},this))},void 0,!1,{fileName:Uj,lineNumber:71,columnNumber:11},this)]},void 0,!0,{fileName:Uj,lineNumber:66,columnNumber:9},this),(0,I.jsxDEV)(bj,{plan:e,api:t,rail:!0,hasAnnotations:c,composer:h},void 0,!1,{fileName:Uj,lineNumber:79,columnNumber:7},this)]},void 0,!0,{fileName:Uj,lineNumber:64,columnNumber:5},this)}function Gj({annotation:e,api:t,disabled:n,selected:r,onToggle:i}){let[a,o]=w.useState(!1),[s,c]=w.useState(``),l=e.annotationId,u=zj(l),d=t.busy||n,f=e.body?.trim(),p=e.updatedAt||e.createdAt;return(0,I.jsxDEV)(`article`,{className:`grid gap-2 rounded-md border bg-background/80 p-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(Tn,{variant:`secondary`,className:`shrink-0`,children:e.target.kind},void 0,!1,{fileName:Uj,lineNumber:99,columnNumber:9},this),(0,I.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-text-bright`,title:Bj(e),children:Bj(e)},void 0,!1,{fileName:Uj,lineNumber:100,columnNumber:9},this),(0,I.jsxDEV)(`label`,{className:`flex shrink-0 items-center gap-1 text-2xs`,title:`Include this annotation when you send the plan to the AI`,children:[(0,I.jsxDEV)(qA,{"aria-label":`Select annotation ${u} for revision`,checked:r,onChange:e=>i(l,e.target.checked)},void 0,!1,{fileName:Uj,lineNumber:102,columnNumber:11},this),` Include`]},void 0,!0,{fileName:Uj,lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:Uj,lineNumber:98,columnNumber:7},this),(0,I.jsxDEV)(`blockquote`,{className:`line-clamp-2 border-l-2 border-border pl-2 text-xs italic text-muted-foreground`,title:Vj(e),children:Vj(e)},void 0,!1,{fileName:Uj,lineNumber:106,columnNumber:7},this),a?(0,I.jsxDEV)(`div`,{className:`grid gap-2`,children:[(0,I.jsxDEV)(YO,{"aria-label":`Note for annotation ${u}`,value:s,disabled:t.busy,onChange:e=>c(e.target.value)},void 0,!1,{fileName:Uj,lineNumber:110,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,"aria-label":`Save note for annotation ${u}`,disabled:t.busy,onClick:()=>void t.updateAnnotation({annotationId:l,body:s.trim()}).then(e=>{e&&o(!1)}),children:[(0,I.jsxDEV)(ie,{className:`h-4 w-4`},void 0,!1,{fileName:Uj,lineNumber:112,columnNumber:237},this),` Save note`]},void 0,!0,{fileName:Uj,lineNumber:112,columnNumber:13},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,"aria-label":`Cancel editing annotation ${u}`,onClick:()=>o(!1),children:`Cancel`},void 0,!1,{fileName:Uj,lineNumber:113,columnNumber:13},this)]},void 0,!0,{fileName:Uj,lineNumber:111,columnNumber:11},this)]},void 0,!0,{fileName:Uj,lineNumber:109,columnNumber:9},this):(0,I.jsxDEV)(`p`,{className:`flex items-start gap-1.5 text-sm leading-snug text-text-bright`,children:[(0,I.jsxDEV)(Te,{className:`mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground`,"aria-hidden":!0},void 0,!1,{fileName:Uj,lineNumber:118,columnNumber:11},this),(0,I.jsxDEV)(`span`,{children:f||(0,I.jsxDEV)(`span`,{className:`italic text-muted-foreground`,children:`No note yet - add one to tell the AI what to change.`},void 0,!1,{fileName:Uj,lineNumber:119,columnNumber:26},this)},void 0,!1,{fileName:Uj,lineNumber:119,columnNumber:11},this)]},void 0,!0,{fileName:Uj,lineNumber:117,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2 text-muted-foreground`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-0.5`,children:[(0,I.jsxDEV)(L,{size:`icon-xs`,variant:`ghost`,title:`Edit note`,"aria-label":`Edit note for annotation ${u}`,disabled:d,onClick:()=>{o(!0),c(e.body??``)},children:(0,I.jsxDEV)(De,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:Uj,lineNumber:125,columnNumber:212},this)},void 0,!1,{fileName:Uj,lineNumber:125,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`icon-xs`,variant:`ghost`,title:`Resolve (mark addressed)`,"aria-label":`Resolve annotation ${u}`,disabled:d,onClick:()=>void t.resolveAnnotation(l),children:(0,I.jsxDEV)(ie,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:Uj,lineNumber:126,columnNumber:197},this)},void 0,!1,{fileName:Uj,lineNumber:126,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`icon-xs`,variant:`ghost`,title:`Dismiss (won't change)`,"aria-label":`Dismiss annotation ${u}`,disabled:d,onClick:()=>void t.dismissAnnotation(l),children:(0,I.jsxDEV)(Ve,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:Uj,lineNumber:127,columnNumber:195},this)},void 0,!1,{fileName:Uj,lineNumber:127,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`icon-xs`,variant:`ghost`,title:`Delete annotation`,"aria-label":`Delete annotation ${u}`,disabled:d,onClick:()=>void t.deleteAnnotation(l),children:(0,I.jsxDEV)(Re,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:Uj,lineNumber:128,columnNumber:188},this)},void 0,!1,{fileName:Uj,lineNumber:128,columnNumber:11},this)]},void 0,!0,{fileName:Uj,lineNumber:124,columnNumber:9},this),(0,I.jsxDEV)(`time`,{className:`shrink-0 text-2xs`,dateTime:p,title:`Created ${e.createdAt}`,children:[`Updated `,FA(p)??p]},void 0,!0,{fileName:Uj,lineNumber:130,columnNumber:9},this)]},void 0,!0,{fileName:Uj,lineNumber:123,columnNumber:7},this)]},void 0,!0,{fileName:Uj,lineNumber:97,columnNumber:5},this)}var Kj=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plan-review-rail.tsx`;function qj({artifact:e,titles:t,plan:n,revision:r}){let[i,a]=w.useState(`review`);return(0,I.jsxDEV)(`div`,{className:`grid gap-3`,"aria-label":`Plan review rail for ${n.session}`,children:[(0,I.jsxDEV)(`div`,{className:`flex gap-1 rounded-md border bg-background/50 p-1`,role:`tablist`,"aria-label":`Rail mode`,children:[(0,I.jsxDEV)(Jj,{active:i===`review`,icon:re,onClick:()=>a(`review`),children:`Review`},void 0,!1,{fileName:Kj,lineNumber:29,columnNumber:9},this),(0,I.jsxDEV)(Jj,{active:i===`context`,icon:me,onClick:()=>a(`context`),children:`Context`},void 0,!1,{fileName:Kj,lineNumber:30,columnNumber:9},this)]},void 0,!0,{fileName:Kj,lineNumber:28,columnNumber:7},this),i===`review`?(0,I.jsxDEV)(qO,{icon:re,title:`Review controls`,contentClassName:`grid gap-3`,children:(0,I.jsxDEV)(Wj,{plan:n,api:r,disabled:r.hasRunningTurn},void 0,!1,{fileName:Kj,lineNumber:35,columnNumber:11},this)},void 0,!1,{fileName:Kj,lineNumber:34,columnNumber:9},this):(0,I.jsxDEV)(qO,{icon:me,title:`Plan context`,children:(0,I.jsxDEV)(ZA,{artifact:e,titles:t},void 0,!1,{fileName:Kj,lineNumber:39,columnNumber:11},this)},void 0,!1,{fileName:Kj,lineNumber:38,columnNumber:9},this)]},void 0,!0,{fileName:Kj,lineNumber:27,columnNumber:5},this)}function Jj({active:e,icon:t,onClick:n,children:r}){return(0,I.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":e,onClick:n,className:xn(`flex flex-1 items-center justify-center gap-1.5 rounded px-2 py-1 text-xs font-medium transition-colors`,e?`bg-card text-text-bright shadow-sm`:`text-muted-foreground hover:text-foreground`),children:[(0,I.jsxDEV)(t,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:Kj,lineNumber:58,columnNumber:7},this),` `,r]},void 0,!0,{fileName:Kj,lineNumber:48,columnNumber:5},this)}var Yj=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/section-editor.tsx`;function Xj({dimension:e,initialContent:t=``,disabled:n,onSave:r,onCancel:i}){let[a,o]=w.useState(t),[s,c]=w.useState(!1),l=async()=>{if(a.trim()){c(!0);try{await r(a)}finally{c(!1)}}};return(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-2 rounded-md border bg-background/60 p-3`,children:[(0,I.jsxDEV)(`label`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:rj(e)},void 0,!1,{fileName:Yj,lineNumber:36,columnNumber:7},this),(0,I.jsxDEV)(YO,{autoFocus:!0,value:a,disabled:n,onChange:e=>o(e.target.value),placeholder:`Write the ${rj(e)} section in Markdown…`,className:`min-h-32 font-mono text-xs`},void 0,!1,{fileName:Yj,lineNumber:37,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`flex gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,variant:`secondary`,disabled:n||s||!a.trim(),onClick:()=>void l(),children:[s?(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:Yj,lineNumber:47,columnNumber:21},this):null,` Save section`]},void 0,!0,{fileName:Yj,lineNumber:46,columnNumber:9},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,disabled:s,onClick:i,children:`Cancel`},void 0,!1,{fileName:Yj,lineNumber:49,columnNumber:9},this)]},void 0,!0,{fileName:Yj,lineNumber:45,columnNumber:7},this)]},void 0,!0,{fileName:Yj,lineNumber:35,columnNumber:5},this)}var Zj=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/readiness-checklist.tsx`,Qj=[`bugfix`,`feature`,`refactor`,`architecture`,`docs`,`maintenance`],$j=[`quick`,`focused`,`deep`],eM=`acceptance-criteria`;function tM({plan:e,readiness:t,disabled:n,onSetSection:r,onSelectDimensions:i}){let[a,o]=w.useState(null),s=new Set,c=e=>{let t=[];for(let n of e??[])s.has(n)||(s.add(n),t.push(n));return t},l=c(t.missingDimensions),u=c(t.skippedDimensions),d=c(t.coveredDimensions),f=t.acDiagnostics??[],p=l.length===0&&d.length===0&&u.length===0&&(e.required_dimensions??[]).length===0,m=async(e,t)=>{await r(e,t),o(null)};return(0,I.jsxDEV)(`section`,{className:`grid gap-2 rounded-md border bg-background/50 p-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`h4`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Readiness`},void 0,!1,{fileName:Zj,lineNumber:56,columnNumber:9},this),(0,I.jsxDEV)(`span`,{className:`text-xs font-semibold ${t.ready?`text-[color:var(--lane-ready)]`:`text-[color:var(--prio-medium)]`}`,children:t.ready?`${d.length} covered`:`${l.length+f.length} item(s) to resolve`},void 0,!1,{fileName:Zj,lineNumber:57,columnNumber:9},this)]},void 0,!0,{fileName:Zj,lineNumber:55,columnNumber:7},this),p?(0,I.jsxDEV)(iM,{plan:e,disabled:n,onSelect:i},void 0,!1,{fileName:Zj,lineNumber:63,columnNumber:11},this):(0,I.jsxDEV)(`ul`,{className:`grid gap-1.5`,children:[l.map(e=>(0,I.jsxDEV)(`li`,{className:`rounded border border-dashed border-[color:var(--prio-medium)]/40 p-2`,children:[(0,I.jsxDEV)(nM,{icon:(0,I.jsxDEV)(pe,{className:`h-4 w-4 text-[color:var(--prio-medium)]`},void 0,!1,{fileName:Zj,lineNumber:68,columnNumber:28},this),label:rj(e),hint:`missing`,children:a!==e&&(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:n,onClick:()=>o(e),children:[(0,I.jsxDEV)(ke,{className:`h-4 w-4`},void 0,!1,{fileName:Zj,lineNumber:70,columnNumber:115},this),` Add`]},void 0,!0,{fileName:Zj,lineNumber:70,columnNumber:21},this)},void 0,!1,{fileName:Zj,lineNumber:68,columnNumber:17},this),a===e&&(0,I.jsxDEV)(Xj,{dimension:e,disabled:n,onSave:t=>m(e,t),onCancel:()=>o(null)},void 0,!1,{fileName:Zj,lineNumber:74,columnNumber:19},this)]},e,!0,{fileName:Zj,lineNumber:67,columnNumber:15},this)),f.length>0&&(0,I.jsxDEV)(`li`,{className:`rounded border border-dashed border-[color:var(--lane-blocked)]/40 p-2`,children:[(0,I.jsxDEV)(nM,{icon:(0,I.jsxDEV)(ze,{className:`h-4 w-4 text-[color:var(--lane-blocked)]`},void 0,!1,{fileName:Zj,lineNumber:81,columnNumber:28},this),label:`Acceptance criteria quality`,hint:`needs revision`,children:a!==eM&&(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:n,onClick:()=>o(eM),children:`Revise`},void 0,!1,{fileName:Zj,lineNumber:83,columnNumber:21},this)},void 0,!1,{fileName:Zj,lineNumber:81,columnNumber:17},this),(0,I.jsxDEV)(rM,{diagnostics:f},void 0,!1,{fileName:Zj,lineNumber:86,columnNumber:17},this),a===eM&&(0,I.jsxDEV)(Xj,{dimension:eM,disabled:n,initialContent:ij(e.sections,eM),onSave:e=>m(eM,e),onCancel:()=>o(null)},void 0,!1,{fileName:Zj,lineNumber:88,columnNumber:19},this)]},void 0,!0,{fileName:Zj,lineNumber:80,columnNumber:15},this),d.filter(e=>!(e===eM&&f.length>0)).map(e=>(0,I.jsxDEV)(`li`,{children:(0,I.jsxDEV)(nM,{icon:(0,I.jsxDEV)(se,{className:`h-4 w-4 text-[color:var(--lane-ready)]`},void 0,!1,{fileName:Zj,lineNumber:101,columnNumber:28},this),label:rj(e),hint:`covered`},void 0,!1,{fileName:Zj,lineNumber:101,columnNumber:17},this)},e,!1,{fileName:Zj,lineNumber:100,columnNumber:15},this)),u.map(e=>(0,I.jsxDEV)(`li`,{children:(0,I.jsxDEV)(nM,{icon:(0,I.jsxDEV)(le,{className:`h-4 w-4 text-muted-foreground`},void 0,!1,{fileName:Zj,lineNumber:107,columnNumber:28},this),label:rj(e),hint:`skipped`},void 0,!1,{fileName:Zj,lineNumber:107,columnNumber:17},this)},e,!1,{fileName:Zj,lineNumber:106,columnNumber:15},this))]},void 0,!0,{fileName:Zj,lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:Zj,lineNumber:54,columnNumber:5},this)}function nM({icon:e,label:t,hint:n,children:r}){return(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2 text-sm`,children:[e,(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:t},void 0,!1,{fileName:Zj,lineNumber:120,columnNumber:7},this),(0,I.jsxDEV)(`span`,{className:`text-2xs uppercase tracking-wide text-muted-foreground`,children:n},void 0,!1,{fileName:Zj,lineNumber:121,columnNumber:7},this),(0,I.jsxDEV)(`span`,{className:`ml-auto`,children:r},void 0,!1,{fileName:Zj,lineNumber:122,columnNumber:7},this)]},void 0,!0,{fileName:Zj,lineNumber:118,columnNumber:5},this)}function rM({diagnostics:e}){return(0,I.jsxDEV)(`ul`,{className:`mt-2 grid gap-1.5`,children:e.map((e,t)=>(0,I.jsxDEV)(`li`,{className:`rounded bg-background p-2 text-xs`,children:[(0,I.jsxDEV)(`p`,{className:`text-foreground`,children:e.message},void 0,!1,{fileName:Zj,lineNumber:132,columnNumber:11},this),e.line&&(0,I.jsxDEV)(`code`,{className:`mt-0.5 block truncate text-2xs text-muted-foreground`,children:e.line},void 0,!1,{fileName:Zj,lineNumber:133,columnNumber:31},this),e.suggestion&&(0,I.jsxDEV)(`p`,{className:`mt-0.5 text-[color:var(--lane-ready)]`,children:e.suggestion},void 0,!1,{fileName:Zj,lineNumber:134,columnNumber:37},this)]},t,!0,{fileName:Zj,lineNumber:131,columnNumber:9},this))},void 0,!1,{fileName:Zj,lineNumber:129,columnNumber:5},this)}function iM({plan:e,disabled:t,onSelect:n}){let[r,i]=w.useState(e.planning_type??`feature`),[a,o]=w.useState(e.planning_depth??`focused`),[s,c]=w.useState(!1),l=async()=>{c(!0);try{await n(r,a)}finally{c(!1)}};return(0,I.jsxDEV)(`div`,{className:`grid gap-2 rounded border border-dashed p-2 text-sm`,children:[(0,I.jsxDEV)(`p`,{className:`text-muted-foreground`,children:`No dimensions selected yet. Choose a planning type and depth to derive the required sections.`},void 0,!1,{fileName:Zj,lineNumber:157,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(mA,{value:r,onChange:e=>i(e.target.value),className:`w-40`,children:Qj.map(e=>(0,I.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:Zj,lineNumber:160,columnNumber:41},this))},void 0,!1,{fileName:Zj,lineNumber:159,columnNumber:9},this),(0,I.jsxDEV)(mA,{value:a,onChange:e=>o(e.target.value),className:`w-40`,children:$j.map(e=>(0,I.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:Zj,lineNumber:163,columnNumber:43},this))},void 0,!1,{fileName:Zj,lineNumber:162,columnNumber:9},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`secondary`,disabled:t||s,onClick:()=>void l(),children:[s?(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:Zj,lineNumber:166,columnNumber:23},this):null,` Apply dimensions`]},void 0,!0,{fileName:Zj,lineNumber:165,columnNumber:9},this)]},void 0,!0,{fileName:Zj,lineNumber:158,columnNumber:7},this)]},void 0,!0,{fileName:Zj,lineNumber:156,columnNumber:5},this)}var aM=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/metadata-editor.tsx`,oM=[`errand`,`excursion`,`expedition`];function sM({plan:e,disabled:t,profileOptions:n={status:`idle`,profiles:[]},onSave:r}){let[i,a]=w.useState(!1);return i?(0,I.jsxDEV)(uM,{plan:e,profileOptions:n,onSave:r,onClose:()=>a(!1)},void 0,!1,{fileName:aM,lineNumber:47,columnNumber:10},this):(0,I.jsxDEV)(`section`,{className:`grid gap-2 rounded-md border bg-background/50 p-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`h4`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Metadata`},void 0,!1,{fileName:aM,lineNumber:35,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,disabled:t,onClick:()=>a(!0),children:[(0,I.jsxDEV)(Oe,{className:`h-4 w-4`},void 0,!1,{fileName:aM,lineNumber:36,columnNumber:98},this),` Edit`]},void 0,!0,{fileName:aM,lineNumber:36,columnNumber:11},this)]},void 0,!0,{fileName:aM,lineNumber:34,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-2 text-sm`,children:[(0,I.jsxDEV)(Tn,{variant:`secondary`,children:[`profile: `,e.profile??`none`]},void 0,!0,{fileName:aM,lineNumber:39,columnNumber:11},this),e.agent_profile&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:[`agent: `,e.agent_profile]},void 0,!0,{fileName:aM,lineNumber:40,columnNumber:34},this),e.confidence&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:[`confidence: `,e.confidence]},void 0,!0,{fileName:aM,lineNumber:41,columnNumber:31},this)]},void 0,!0,{fileName:aM,lineNumber:38,columnNumber:9},this)]},void 0,!0,{fileName:aM,lineNumber:33,columnNumber:7},this)}function cM(e,t){let n=[e.name,e.scope];return e.name===t&&n.push(`active`),e.shadowedBy&&n.push(`shadowed by ${e.shadowedBy}`),n.join(` · `)}function lM(e){return e.status===`loading`?`Loading profile options; saving and clearing remain available.`:e.status===`empty`?`No named profiles were found; clearing remains available.`:e.status===`error`?`Could not load profile options (${e.error}); clearing remains available.`:`Choose a known profile or leave unset to inherit the active eforge profile.`}function uM({plan:e,profileOptions:t,onSave:n,onClose:r}){let[i,a]=w.useState(e.profile??``),[o,s]=w.useState(e.agent_profile??``),[c,l]=w.useState(!1),u=async()=>{l(!0);try{await n({profile:i||null,agentProfile:o.trim()||null,openQuestions:e.open_questions??[]})!==!1&&r()}finally{l(!1)}},d=t.profiles.filter(e=>!e.shadowedBy),f=d.map(e=>e.name).includes(o),p=o.trim().length>0&&!f;return(0,I.jsxDEV)(`section`,{className:`grid gap-2 rounded-md border bg-background/50 p-3`,children:[(0,I.jsxDEV)(`h4`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Edit metadata`},void 0,!1,{fileName:aM,lineNumber:90,columnNumber:7},this),(0,I.jsxDEV)(`label`,{className:`text-xs text-muted-foreground`,htmlFor:`session-plan-planning-profile`,children:`Planning profile`},void 0,!1,{fileName:aM,lineNumber:91,columnNumber:7},this),(0,I.jsxDEV)(mA,{id:`session-plan-planning-profile`,value:i,onChange:e=>a(e.target.value),children:[(0,I.jsxDEV)(`option`,{value:``,children:`none`},void 0,!1,{fileName:aM,lineNumber:93,columnNumber:9},this),oM.map(e=>(0,I.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:aM,lineNumber:94,columnNumber:43},this))]},void 0,!0,{fileName:aM,lineNumber:92,columnNumber:7},this),(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:`Planning profile controls plan scope and depth presets (errand, excursion, expedition).`},void 0,!1,{fileName:aM,lineNumber:96,columnNumber:7},this),(0,I.jsxDEV)(`label`,{className:`text-xs text-muted-foreground`,htmlFor:`session-plan-agent-profile`,children:`Build agent profile`},void 0,!1,{fileName:aM,lineNumber:97,columnNumber:7},this),(0,I.jsxDEV)(mA,{id:`session-plan-agent-profile`,value:o,"aria-describedby":`session-plan-agent-profile-help`,onChange:e=>s(e.target.value),children:[(0,I.jsxDEV)(`option`,{value:``,children:`Default/active eforge profile (leave agent_profile unset)`},void 0,!1,{fileName:aM,lineNumber:99,columnNumber:9},this),p&&(0,I.jsxDEV)(`option`,{value:o,children:[o,` (current value missing/deleted)`]},void 0,!0,{fileName:aM,lineNumber:100,columnNumber:38},this),d.map(e=>(0,I.jsxDEV)(`option`,{value:e.name,children:cM(e,t.active)},`${e.scope}:${e.name}`,!1,{fileName:aM,lineNumber:101,columnNumber:45},this))]},void 0,!0,{fileName:aM,lineNumber:98,columnNumber:7},this),(0,I.jsxDEV)(`p`,{id:`session-plan-agent-profile-help`,className:`text-xs text-muted-foreground`,children:[`Agent runtime profile sets the build agent runtime stored as agent_profile. `,lM(t)]},void 0,!0,{fileName:aM,lineNumber:103,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`flex gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,variant:`secondary`,disabled:c,onClick:()=>void u(),children:[c?(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:aM,lineNumber:108,columnNumber:21},this):null,` Save`]},void 0,!0,{fileName:aM,lineNumber:107,columnNumber:9},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,disabled:c,onClick:r,children:`Cancel`},void 0,!1,{fileName:aM,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:aM,lineNumber:106,columnNumber:7},this)]},void 0,!0,{fileName:aM,lineNumber:89,columnNumber:5},this)}var dM=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/open-questions-panel.tsx`;function fM({plan:e}){let t=e.open_questions??[];return t.length===0?null:(0,I.jsxDEV)(`section`,{className:`grid gap-2 rounded-md border bg-background/50 p-3`,children:[(0,I.jsxDEV)(`h4`,{className:`flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:[(0,I.jsxDEV)(ue,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:dM,lineNumber:22,columnNumber:9},this),` Open questions `,(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:[`(`,t.length,`)`]},void 0,!0,{fileName:dM,lineNumber:22,columnNumber:63},this)]},void 0,!0,{fileName:dM,lineNumber:21,columnNumber:7},this),(0,I.jsxDEV)(`ul`,{className:`grid gap-1 text-sm text-foreground`,children:t.map((e,t)=>(0,I.jsxDEV)(`li`,{className:`list-inside list-disc`,children:e},t,!1,{fileName:dM,lineNumber:25,columnNumber:49},this))},void 0,!1,{fileName:dM,lineNumber:24,columnNumber:7},this)]},void 0,!0,{fileName:dM,lineNumber:20,columnNumber:5},this)}var pM=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/lifecycle-evidence-panel.tsx`;function mM(e,t){return t?.sourceRefs??t?.lifecycle?.sourceRefs??e.sourceRefs}var hM=new Set([`queue-prd`,`build-run`,`build-session`,`pr`,`landing`,`last-event`]);function gM({plan:e,detail:t}){let n=(t?.lifecycle?.linkRows??e.linkRows??e.lifecycleLinks??[]).filter(e=>hM.has(e.kind)),r=t?.lifecycle?.lifecycleState??e.lifecycleState,i=mM(e,t),a=new Set(i?.sourceItemIds??i?.itemIds??[]);return(0,I.jsxDEV)(`section`,{children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(`h4`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Build trace`},void 0,!1,{fileName:pM,lineNumber:33,columnNumber:9},this),r&&(0,I.jsxDEV)(Tn,{variant:`outline`,className:`capitalize`,children:r},void 0,!1,{fileName:pM,lineNumber:34,columnNumber:28},this)]},void 0,!0,{fileName:pM,lineNumber:32,columnNumber:7},this),r===`partial`&&(t?.lifecycle?.partialReasons??e.partialReasons??[]).map(e=>(0,I.jsxDEV)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:e.message},e.code,!1,{fileName:pM,lineNumber:37,columnNumber:9},this)),n.length===0?(0,I.jsxDEV)(Ck,{className:`mt-2 p-2 text-xs`,children:`Not queued for a build yet. Queue, run, PR, and landing activity appears here after handoff.`},void 0,!1,{fileName:pM,lineNumber:40,columnNumber:9},this):(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-1`,children:n.map((e,t)=>(0,I.jsxDEV)(_M,{row:e,knownItemIds:a},`${e.kind}-${e.stage??``}-${t}`,!1,{fileName:pM,lineNumber:45,columnNumber:37},this))},void 0,!1,{fileName:pM,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:pM,lineNumber:31,columnNumber:5},this)}function _M({row:e,knownItemIds:t}){let n=e.timestamp??e.completedAt??e.landedAt??e.startedAt??e.queuedAt??e.promotedAt,r=(e.affectedItemIds??[]).filter(e=>!t.has(e));return(0,I.jsxDEV)(`div`,{className:`rounded border border-border bg-card p-2 text-xs`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(Tn,{variant:`secondary`,children:e.stage??e.kind},void 0,!1,{fileName:pM,lineNumber:60,columnNumber:9},this),e.status&&(0,I.jsxDEV)(`span`,{className:`text-muted-foreground`,children:e.status},void 0,!1,{fileName:pM,lineNumber:61,columnNumber:24},this),n&&(0,I.jsxDEV)(`code`,{className:`ml-auto text-2xs text-muted-foreground`,children:n},void 0,!1,{fileName:pM,lineNumber:62,columnNumber:23},this)]},void 0,!0,{fileName:pM,lineNumber:59,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-1 flex flex-wrap gap-x-3 gap-y-1 text-muted-foreground`,children:[e.runId&&(0,I.jsxDEV)(vM,{label:`run`,value:e.runId},void 0,!1,{fileName:pM,lineNumber:65,columnNumber:23},this),(e.sessionId??e.buildSessionId)&&(0,I.jsxDEV)(vM,{label:`build session`,value:e.sessionId??e.buildSessionId??``},void 0,!1,{fileName:pM,lineNumber:66,columnNumber:51},this),(e.featureBranch??e.branch)&&(0,I.jsxDEV)(vM,{label:`branch`,value:e.featureBranch??e.branch??``},void 0,!1,{fileName:pM,lineNumber:67,columnNumber:47},this),e.commitSha&&(0,I.jsxDEV)(vM,{label:`commit`,value:e.commitSha},void 0,!1,{fileName:pM,lineNumber:68,columnNumber:27},this)]},void 0,!0,{fileName:pM,lineNumber:64,columnNumber:7},this),e.prUrl&&(0,I.jsxDEV)(`a`,{className:`mt-1 block break-all text-[color:var(--lane-ready)] underline`,href:e.prUrl,target:`_blank`,rel:`noreferrer`,children:e.prUrl},void 0,!1,{fileName:pM,lineNumber:70,columnNumber:21},this),r.length>0&&(0,I.jsxDEV)(`p`,{className:`mt-1 text-muted-foreground`,children:[`Affected: `,r.join(`, `)]},void 0,!0,{fileName:pM,lineNumber:71,columnNumber:43},this)]},void 0,!0,{fileName:pM,lineNumber:58,columnNumber:5},this)}function vM({label:e,value:t}){return(0,I.jsxDEV)(`span`,{children:[(0,I.jsxDEV)(`span`,{className:`uppercase tracking-wide`,children:[e,`:`]},void 0,!0,{fileName:pM,lineNumber:77,columnNumber:16},this),` `,(0,I.jsxDEV)(`code`,{children:t},void 0,!1,{fileName:pM,lineNumber:77,columnNumber:74},this)]},void 0,!0,{fileName:pM,lineNumber:77,columnNumber:10},this)}typeof window<`u`&&window.document&&window.document.createElement;function yM(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}var bM=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=O.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(ne.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return ie[e]||(ie[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,o,l,d){var f=n.children;if(f!==void 0)if(o)if(k(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(ne.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,oe[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
374
+ let props = %s;
375
+ <%s {...props} />
376
+ React keys must be passed directly to JSX without using spread:
377
+ let props = %s;
378
+ <%s key={someKey} {...props} />`,o,f,m,f),oe[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=d(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),te=Symbol.for(`react.client.reference`),O=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.prototype.hasOwnProperty,k=Array.isArray,A=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var re,ie={},j=h.react_stack_bottom_frame.bind(h,o)(),ae=A(i(o)),oe={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>O.recentlyCreatedOwnerStacks++;return f(e,t,n,!1,r?Error(`react-stack-top-frame`):j,r?A(i(e)):ae)},e.jsxs=function(e,t,n){var r=1e4>O.recentlyCreatedOwnerStacks++;return f(e,t,n,!0,r?Error(`react-stack-top-frame`):j,r?A(i(e)):ae)}})()})),xM=o(((e,t)=>{t.exports=bM()}))();function SM(e,t=[]){let n=[];function r(t,r){let i=w.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=w.useMemo(()=>o,Object.values(o));return(0,xM.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=w.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>w.createContext(e));return function(n){let r=n?.[e]||t;return w.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,CM(i,...t)]}function CM(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var wM=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=kn(`Primitive.${t}`),r=w.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,xM.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function TM(e,t){e&&oA.flushSync(()=>e.dispatchEvent(t))}function EM(e){let t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>((...e)=>t.current?.(...e)),[])}var DM=`DismissableLayer`,OM=`dismissableLayer.update`,kM=`dismissableLayer.pointerDownOutside`,AM=`dismissableLayer.focusOutside`,jM,MM=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),NM=w.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=w.useContext(MM),[d,f]=w.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=w.useState({}),h=On(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=w.useRef(!1),C=LM(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:w.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),T=RM(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),ee=d?y===g.length-1:!1,E=EM(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return w.useEffect(()=>{if(ee)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,ee,E]),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(jM=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),zM(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=jM))}},[d,p,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),zM())},[d,u]),w.useEffect(()=>{let e=()=>m({});return document.addEventListener(OM,e),()=>document.removeEventListener(OM,e)},[]),(0,xM.jsx)(wM.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:yM(e.onFocusCapture,T.onFocusCapture),onBlurCapture:yM(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:yM(e.onPointerDownCapture,C.onPointerDownCapture)})});NM.displayName=DM;var PM=`DismissableLayerBranch`,FM=w.forwardRef((e,t)=>{let n=w.useContext(MM),r=w.useRef(null),i=On(t,r);return w.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,xM.jsx)(wM.div,{...e,ref:i})});FM.displayName=PM;var IM=()=>!0;function LM(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=IM}=t,s=EM(e),c=w.useRef(!1),l=w.useRef(!1),u=w.useRef(new Map),d=w.useRef(()=>{});return w.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}function t(){return Array.from(u.current.values()).some(Boolean)}function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}function p(e){l.current&&u.current.set(e.type,!1)}let m=a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||BM(kM,s,p,{discrete:!0})};if(!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:()=>c.current=!0}}function RM(e,t=globalThis?.document){let n=EM(e),r=w.useRef(!1);return w.useEffect(()=>{let e=e=>{e.target&&!r.current&&BM(AM,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zM(){let e=new CustomEvent(OM);document.dispatchEvent(e)}function BM(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?TM(i,a):i.dispatchEvent(a)}var VM=globalThis?.document?w.useLayoutEffect:()=>{},HM=w.useId||(()=>void 0),UM=0;function WM(e){let[t,n]=w.useState(HM());return VM(()=>{e||n(e=>e??String(UM++))},[e]),e||(t?`radix-${t}`:``)}var GM=[`top`,`right`,`bottom`,`left`],KM=Math.min,qM=Math.max,JM=Math.round,YM=Math.floor,XM=e=>({x:e,y:e}),ZM={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function QM(e,t,n){return qM(e,KM(t,n))}function $M(e,t){return typeof e==`function`?e(t):e}function eN(e){return e.split(`-`)[0]}function tN(e){return e.split(`-`)[1]}function nN(e){return e===`x`?`y`:`x`}function rN(e){return e===`y`?`height`:`width`}function iN(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function aN(e){return nN(iN(e))}function oN(e,t,n){n===void 0&&(n=!1);let r=tN(e),i=aN(e),a=rN(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=hN(o)),[o,hN(o)]}function sN(e){let t=hN(e);return[cN(e),t,cN(t)]}function cN(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var lN=[`left`,`right`],uN=[`right`,`left`],dN=[`top`,`bottom`],fN=[`bottom`,`top`];function pN(e,t,n){switch(e){case`top`:case`bottom`:return n?t?uN:lN:t?lN:uN;case`left`:case`right`:return t?dN:fN;default:return[]}}function mN(e,t,n,r){let i=tN(e),a=pN(eN(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(cN)))),a}function hN(e){let t=eN(e);return ZM[t]+e.slice(t.length)}function gN(e){return{top:0,right:0,bottom:0,left:0,...e}}function _N(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:gN(e)}function vN(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function yN(e,t,n){let{reference:r,floating:i}=e,a=iN(t),o=aN(t),s=rN(o),c=eN(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(tN(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function bN(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=$M(t,e),p=_N(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=vN(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=vN(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xN=50,SN=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:bN},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=yN(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<xN&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=yN(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},CN=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=$M(e,t)||{};if(l==null)return{};let d=_N(u),f={x:n,y:r},p=aN(i),m=rN(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=KM(d[_],T),E=KM(d[v],T),D=ee,te=C-h[m]-E,O=C/2-h[m]/2+w,ne=QM(D,O,te),k=!c.arrow&&tN(i)!=null&&O!==ne&&a.reference[m]/2-(O<D?ee:E)-h[m]/2<0,A=k?O<D?O-D:O-te:0;return{[p]:f[p]+A,data:{[p]:ne,centerOffset:O-ne-A,...k&&{alignmentOffset:A}},reset:k}}}),wN=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=$M(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=eN(r),_=iN(o),v=eN(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[hN(o)]:sN(o)),x=p!==`none`;!d&&x&&b.push(...mN(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=oN(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==iN(t))||T.every(e=>iN(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=iN(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function TN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function EN(e){return GM.some(t=>e[t]>=0)}var DN=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=$M(e,t);switch(i){case`referenceHidden`:{let e=TN(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:EN(e)}}}case`escaped`:{let e=TN(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:EN(e)}}}default:return{}}}}},ON=new Set([`left`,`top`]);async function kN(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=eN(n),s=tN(n),c=iN(n)===`y`,l=ON.has(o)?-1:1,u=a&&c?-1:1,d=$M(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var AN=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await kN(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},jN=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$M(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=iN(eN(i)),p=nN(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=QM(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=QM(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},MN=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=$M(e,t),u={x:n,y:r},d=iN(i),f=nN(d),p=u[f],m=u[d],h=$M(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ON.has(eN(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},NN=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=$M(e,t),u=await o.detectOverflow(t,l),d=eN(i),f=tN(i),p=iN(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=KM(h-u[g],v),x=KM(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=qM(u.left,0),t=qM(u.right,0),n=qM(u.top,0),r=qM(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:qM(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:qM(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function PN(){return typeof window<`u`}function FN(e){return RN(e)?(e.nodeName||``).toLowerCase():`#document`}function IN(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function LN(e){return((RN(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function RN(e){return PN()?e instanceof Node||e instanceof IN(e).Node:!1}function zN(e){return PN()?e instanceof Element||e instanceof IN(e).Element:!1}function BN(e){return PN()?e instanceof HTMLElement||e instanceof IN(e).HTMLElement:!1}function VN(e){return!PN()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof IN(e).ShadowRoot}function HN(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$N(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function UN(e){return/^(table|td|th)$/.test(FN(e))}function WN(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var GN=/transform|translate|scale|rotate|perspective|filter/,KN=/paint|layout|strict|content/,qN=e=>!!e&&e!==`none`,JN;function YN(e){let t=zN(e)?$N(e):e;return qN(t.transform)||qN(t.translate)||qN(t.scale)||qN(t.rotate)||qN(t.perspective)||!ZN()&&(qN(t.backdropFilter)||qN(t.filter))||GN.test(t.willChange||``)||KN.test(t.contain||``)}function XN(e){let t=tP(e);for(;BN(t)&&!QN(t);){if(YN(t))return t;if(WN(t))return null;t=tP(t)}return null}function ZN(){return JN??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),JN}function QN(e){return/^(html|body|#document)$/.test(FN(e))}function $N(e){return IN(e).getComputedStyle(e)}function eP(e){return zN(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tP(e){if(FN(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||VN(e)&&e.host||LN(e);return VN(t)?t.host:t}function nP(e){let t=tP(e);return QN(t)?e.ownerDocument?e.ownerDocument.body:e.body:BN(t)&&HN(t)?t:nP(t)}function rP(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=nP(e),i=r===e.ownerDocument?.body,a=IN(r);if(i){let e=iP(a);return t.concat(a,a.visualViewport||[],HN(r)?r:[],e&&n?rP(e):[])}else return t.concat(r,rP(r,[],n))}function iP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aP(e){let t=$N(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=BN(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=JM(n)!==a||JM(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function oP(e){return zN(e)?e:e.contextElement}function sP(e){let t=oP(e);if(!BN(t))return XM(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=aP(t),o=(a?JM(n.width):n.width)/r,s=(a?JM(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var cP=XM(0);function lP(e){let t=IN(e);return!ZN()||!t.visualViewport?cP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==IN(e)?!1:t}function dP(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=oP(e),o=XM(1);t&&(r?zN(r)&&(o=sP(r)):o=sP(e));let s=uP(a,n,r)?lP(a):XM(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=IN(a),t=r&&zN(r)?IN(r):r,n=e,i=iP(n);for(;i&&r&&t!==n;){let e=sP(i),t=i.getBoundingClientRect(),r=$N(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=IN(i),i=iP(n)}}return vN({width:u,height:d,x:c,y:l})}function fP(e,t){let n=eP(e).scrollLeft;return t?t.left+n:dP(LN(e)).left+n}function pP(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-fP(e,n),y:n.top+t.scrollTop}}function mP(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=LN(r),s=t?WN(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=XM(1),u=XM(0),d=BN(r);if((d||!d&&!a)&&((FN(r)!==`body`||HN(o))&&(c=eP(r)),d)){let e=dP(r);l=sP(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?pP(o,c):XM(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function hP(e){return Array.from(e.getClientRects())}function gP(e){let t=LN(e),n=eP(e),r=e.ownerDocument.body,i=qM(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=qM(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+fP(e),s=-n.scrollTop;return $N(r).direction===`rtl`&&(o+=qM(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var _P=25;function vP(e,t){let n=IN(e),r=LN(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ZN();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=fP(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=_P&&(a-=o)}else l<=_P&&(a+=l);return{width:a,height:o,x:s,y:c}}function yP(e,t){let n=dP(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=BN(e)?sP(e):XM(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function bP(e,t,n){let r;if(t===`viewport`)r=vP(e,n);else if(t===`document`)r=gP(LN(e));else if(zN(t))r=yP(t,n);else{let n=lP(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return vN(r)}function xP(e,t){let n=tP(e);return n===t||!zN(n)||QN(n)?!1:$N(n).position===`fixed`||xP(n,t)}function SP(e,t){let n=t.get(e);if(n)return n;let r=rP(e,[],!1).filter(e=>zN(e)&&FN(e)!==`body`),i=null,a=$N(e).position===`fixed`,o=a?tP(e):e;for(;zN(o)&&!QN(o);){let t=$N(o),n=YN(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||HN(o)&&!n&&xP(e,o))?r=r.filter(e=>e!==o):i=t,o=tP(o)}return t.set(e,r),r}function CP(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?WN(t)?[]:SP(t,this._c):[].concat(n),r],o=bP(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=bP(t,a[e],i);s=qM(n.top,s),c=KM(n.right,c),l=KM(n.bottom,l),u=qM(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function wP(e){let{width:t,height:n}=aP(e);return{width:t,height:n}}function TP(e,t,n){let r=BN(t),i=LN(t),a=n===`fixed`,o=dP(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=XM(0);function l(){c.x=fP(i)}if(r||!r&&!a)if((FN(t)!==`body`||HN(i))&&(s=eP(t)),r){let e=dP(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?pP(i,s):XM(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function EP(e){return $N(e).position===`static`}function DP(e,t){if(!BN(e)||$N(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return LN(e)===n&&(n=n.ownerDocument.body),n}function OP(e,t){let n=IN(e);if(WN(e))return n;if(!BN(e)){let t=tP(e);for(;t&&!QN(t);){if(zN(t)&&!EP(t))return t;t=tP(t)}return n}let r=DP(e,t);for(;r&&UN(r)&&EP(r);)r=DP(r,t);return r&&QN(r)&&EP(r)&&!YN(r)?n:r||XN(e)||n}var kP=async function(e){let t=this.getOffsetParent||OP,n=this.getDimensions,r=await n(e.floating);return{reference:TP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AP(e){return $N(e).direction===`rtl`}var jP={convertOffsetParentRelativeRectToViewportRelativeRect:mP,getDocumentElement:LN,getClippingRect:CP,getOffsetParent:OP,getElementRects:kP,getClientRects:hP,getDimensions:wP,getScale:sP,isElement:zN,isRTL:AP};function MP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function NP(e,t){let n=null,r,i=LN(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=YM(d),h=YM(i.clientWidth-(u+f)),g=YM(i.clientHeight-(d+p)),_=YM(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:qM(0,KM(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!MP(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function PP(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=oP(e),u=i||a?[...l?rP(l):[],...t?rP(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?NP(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?dP(e):null;c&&g();function g(){let t=dP(e);h&&!MP(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var FP=AN,IP=jN,LP=wN,RP=NN,zP=DN,BP=CN,VP=MN,HP=(e,t,n)=>{let r=new Map,i={platform:jP,...n},a={...i.platform,_c:r};return SN(e,t,{...i,platform:a})},UP=typeof document<`u`?w.useLayoutEffect:function(){};function WP(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!WP(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!WP(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function GP(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function KP(e,t){let n=GP(e);return Math.round(t*n)/n}function qP(e){let t=w.useRef(e);return UP(()=>{t.current=e}),t}function JP(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);WP(f,r)||p(r);let[m,h]=w.useState(null),[g,_]=w.useState(null),v=w.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=w.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=w.useRef(null),C=w.useRef(null),T=w.useRef(u),ee=c!=null,E=qP(c),D=qP(i),te=qP(l),O=w.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),HP(S.current,C.current,e).then(e=>{let t={...e,isPositioned:te.current!==!1};ne.current&&!WP(T.current,t)&&(T.current=t,oA.flushSync(()=>{d(t)}))})},[f,t,n,D,te]);UP(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ne=w.useRef(!1);UP(()=>(ne.current=!0,()=>{ne.current=!1}),[]),UP(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,ee]);let k=w.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=w.useMemo(()=>({reference:b,floating:x}),[b,x]),re=w.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=KP(A.floating,u.x),r=KP(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...GP(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:O,refs:k,elements:A,floatingStyles:re}),[u,O,k,A,re])}var YP=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:BP({element:r.current,padding:i}).fn(n):r?BP({element:r,padding:i}).fn(n):{}}}},XP=(e,t)=>{let n=FP(e);return{name:n.name,fn:n.fn,options:[e,t]}},ZP=(e,t)=>{let n=IP(e);return{name:n.name,fn:n.fn,options:[e,t]}},QP=(e,t)=>({fn:VP(e).fn,options:[e,t]}),$P=(e,t)=>{let n=LP(e);return{name:n.name,fn:n.fn,options:[e,t]}},eF=(e,t)=>{let n=RP(e);return{name:n.name,fn:n.fn,options:[e,t]}},tF=(e,t)=>{let n=zP(e);return{name:n.name,fn:n.fn,options:[e,t]}},nF=(e,t)=>{let n=YP(e);return{name:n.name,fn:n.fn,options:[e,t]}},rF=`Arrow`,iF=w.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,xM.jsx)(wM.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,xM.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});iF.displayName=rF;var aF=iF;function oF(e){let[t,n]=w.useState(void 0);return VM(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var sF=`Popper`,[cF,lF]=SM(sF),[uF,dF]=cF(sF),fF=e=>{let{__scopePopper:t,children:n}=e,[r,i]=w.useState(null),[a,o]=w.useState(void 0);return(0,xM.jsx)(uF,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};fF.displayName=sF;var pF=`PopperAnchor`,mF=w.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=dF(pF,n),o=w.useRef(null),s=a.onAnchorChange,c=On(t,w.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=w.useRef(null);w.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&wF(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,xM.jsx)(wM.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});mF.displayName=pF;var hF=`PopperContent`,[gF,_F]=cF(hF),vF=w.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=dF(hF,n),[_,v]=w.useState(null),y=On(t,v),[b,x]=w.useState(null),S=oF(b),C=S?.width??0,T=S?.height??0,ee=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],te=D.length>0,O={padding:E,boundary:D.filter(SF),altBoundary:te},{refs:ne,floatingStyles:k,placement:A,isPositioned:re,middlewareData:ie}=JP({strategy:`fixed`,placement:ee,whileElementsMounted:(...e)=>PP(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[XP({mainAxis:i+T,alignmentAxis:o}),c&&ZP({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?QP():void 0,...O}),c&&$P({...O}),eF({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&nF({element:b,padding:s}),CF({arrowWidth:C,arrowHeight:T}),f&&tF({strategy:`referenceHidden`,...O,boundary:te?O.boundary:void 0})]}),j=g.setPlacementState;VM(()=>(j(A),()=>{j(void 0)}),[A,j]);let[ae,oe]=wF(A),se=EM(m);VM(()=>{re&&se?.()},[re,se]);let ce=ie.arrow?.x,le=ie.arrow?.y,ue=ie.arrow?.centerOffset!==0,[de,fe]=w.useState();return VM(()=>{_&&fe(window.getComputedStyle(_).zIndex)},[_]),(0,xM.jsx)(`div`,{ref:ne.setFloating,"data-radix-popper-content-wrapper":``,style:{...k,transform:re?k.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:de,"--radix-popper-transform-origin":[ie.transformOrigin?.x,ie.transformOrigin?.y].join(` `),...ie.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,xM.jsx)(gF,{scope:n,placedSide:ae,placedAlign:oe,onArrowChange:x,arrowX:ce,arrowY:le,shouldHideArrow:ue,children:(0,xM.jsx)(wM.div,{"data-side":ae,"data-align":oe,...h,ref:y,style:{...h.style,animation:re?void 0:`none`}})})})});vF.displayName=hF;var yF=`PopperArrow`,bF={top:`bottom`,right:`left`,bottom:`top`,left:`right`},xF=w.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=_F(yF,n),a=bF[i.placedSide];return(0,xM.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,xM.jsx)(aF,{...r,ref:t,style:{...r.style,display:`block`}})})});xF.displayName=yF;function SF(e){return e!==null}var CF=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=wF(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function wF(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var TF=fF,EF=mF,DF=vF,OF=xF,kF=`Portal`,AF=w.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=w.useState(!1);VM(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?oA.createPortal((0,xM.jsx)(wM.div,{...r,ref:t}),o):null});AF.displayName=kF;function jF(e,t){return w.useReducer((e,n)=>t[e][n]??e,e)}var MF=e=>{let{present:t,children:n}=e,r=NF(t),i=typeof n==`function`?n({present:r.isPresent}):w.Children.only(n),a=FF(r.ref,LF(i));return typeof n==`function`||r.isPresent?w.cloneElement(i,{ref:a}):null};MF.displayName=`Presence`;function NF(e){let[t,n]=w.useState(),r=w.useRef(null),i=w.useRef(e),a=w.useRef(`none`),o=w.useRef(void 0),[s,c]=jF(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return w.useEffect(()=>{s===`mounted`?(a.current=o.current??IF(r.current),o.current=void 0):a.current=`none`},[s]),VM(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=IF(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),VM(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=IF(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=IF(r.current))};return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:w.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=IF(t)}else r.current=null;n(e)},[])}}function PF(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function FF(...e){let t=w.useRef(e);return t.current=e,w.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=PF(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():PF(n[e],null)}}},[])}function IF(e){return e?.animationName||`none`}function LF(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var RF=w.useInsertionEffect||VM;function zF({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=BF({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=w.useRef(e!==void 0);w.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,w.useCallback(t=>{if(s){let n=VF(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function BF({defaultProp:e,onChange:t}){let[n,r]=w.useState(e),i=w.useRef(n),a=w.useRef(t);return RF(()=>{a.current=t},[t]),w.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function VF(e){return typeof e==`function`}var HF=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),UF=`VisuallyHidden`,WF=w.forwardRef((e,t)=>(0,xM.jsx)(wM.span,{...e,ref:t,style:{...HF,...e.style}}));WF.displayName=UF;var GF=WF,[KF,qF]=SM(`Tooltip`,[lF]),JF=lF(),YF=`TooltipProvider`,XF=700,ZF=`tooltip.open`,[QF,$F]=KF(YF),eI=e=>{let{__scopeTooltip:t,delayDuration:n=XF,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=w.useRef(!0),s=w.useRef(!1),c=w.useRef(0);return w.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,xM.jsx)(QF,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:w.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:w.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:w.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};eI.displayName=YF;var tI=`Tooltip`,[nI,rI]=KF(tI),iI=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=$F(tI,e.__scopeTooltip),l=JF(t),[u,d]=w.useState(null),f=WM(),p=w.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=w.useRef(!1),[_,v]=zF({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(ZF))):c.onClose(),a?.(e)},caller:tI}),y=w.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=w.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=w.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=w.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return w.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,xM.jsx)(TF,{...l,children:(0,xM.jsx)(nI,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:w.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:w.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};iI.displayName=tI;var aI=`TooltipTrigger`,oI=w.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=rI(aI,n),a=$F(aI,n),o=JF(n),s=On(t,w.useRef(null),i.onTriggerChange),c=w.useRef(!1),l=w.useRef(!1),u=w.useCallback(()=>c.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,xM.jsx)(EF,{asChild:!0,...o,children:(0,xM.jsx)(wM.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:yM(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:yM(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:yM(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:yM(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:yM(e.onBlur,i.onClose),onClick:yM(e.onClick,i.onClose)})})});oI.displayName=aI;var sI=`TooltipPortal`,[cI,lI]=KF(sI,{forceMount:void 0}),uI=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=rI(sI,t);return(0,xM.jsx)(cI,{scope:t,forceMount:n,children:(0,xM.jsx)(MF,{present:n||a.open,children:(0,xM.jsx)(AF,{asChild:!0,container:i,children:r})})})};uI.displayName=sI;var dI=`TooltipContent`,fI=w.forwardRef((e,t)=>{let n=lI(dI,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=rI(dI,e.__scopeTooltip);return(0,xM.jsx)(MF,{present:r||o.open,children:o.disableHoverableContent?(0,xM.jsx)(_I,{side:i,...a,ref:t}):(0,xM.jsx)(pI,{side:i,...a,ref:t})})}),pI=w.forwardRef((e,t)=>{let n=rI(dI,e.__scopeTooltip),r=$F(dI,e.__scopeTooltip),i=w.useRef(null),a=On(t,i),[o,s]=w.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=w.useCallback(()=>{s(null),d(!1)},[d]),p=w.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=xI(r,bI(r,n.getBoundingClientRect())),a=SI(t.getBoundingClientRect()),o=wI([...i,...a]);s(o),d(!0)},[d]);return w.useEffect(()=>()=>f(),[f]),w.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),w.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!CI(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,xM.jsx)(_I,{...e,ref:a})}),[mI,hI]=KF(tI,{isInside:!1}),gI=Mn(`TooltipContent`),_I=w.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=rI(dI,n),l=JF(n),{onClose:u}=c;return w.useEffect(()=>(document.addEventListener(ZF,u),()=>document.removeEventListener(ZF,u)),[u]),w.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,xM.jsx)(NM,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,xM.jsxs)(DF,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,xM.jsx)(gI,{children:r}),(0,xM.jsx)(mI,{scope:n,isInside:!0,children:(0,xM.jsx)(GF,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});fI.displayName=dI;var vI=`TooltipArrow`,yI=w.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=JF(n);return hI(vI,n).isInside?null:(0,xM.jsx)(OF,{...i,...r,ref:t})});yI.displayName=vI;function bI(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function xI(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function SI(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function CI(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function wI(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),TI(t)}function TI(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var EI=eI,DI=iI,OI=oI,kI=uI,AI=fI,jI=yI,MI=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/ui/tooltip.tsx`;function NI({delayDuration:e=0,...t}){return(0,I.jsxDEV)(EI,{"data-slot":`tooltip-provider`,delayDuration:e,...t},void 0,!1,{fileName:MI,lineNumber:13,columnNumber:10},this)}function PI({...e}){return(0,I.jsxDEV)(DI,{"data-slot":`tooltip`,...e},void 0,!1,{fileName:MI,lineNumber:17,columnNumber:10},this)}function FI({...e}){return(0,I.jsxDEV)(OI,{"data-slot":`tooltip-trigger`,...e},void 0,!1,{fileName:MI,lineNumber:21,columnNumber:10},this)}function II({className:e,sideOffset:t=4,children:n,...r}){return(0,I.jsxDEV)(kI,{children:(0,I.jsxDEV)(AI,{"data-slot":`tooltip-content`,sideOffset:t,className:xn(`z-50 w-fit rounded-md border border-border bg-card px-2.5 py-1 text-2xs text-card-foreground shadow-lg shadow-black/40`,e),...r,children:[n,(0,I.jsxDEV)(jI,{className:`z-50 size-2 translate-y-[calc(-50%_-_1px)] rotate-45 rounded-[2px] border-border bg-card fill-card`},void 0,!1,{fileName:MI,lineNumber:37,columnNumber:9},this)]},void 0,!0,{fileName:MI,lineNumber:27,columnNumber:7},this)},void 0,!1,{fileName:MI,lineNumber:26,columnNumber:5},this)}var LI=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/plan-annotatable-section.tsx`;function RI(e){let t=[];for(let n of Array.from(e.children)){let e=n.tagName.toLowerCase();if(e===`ul`||e===`ol`)for(let e of Array.from(n.children))e.tagName.toLowerCase()===`li`&&t.push(e);else t.push(n)}return t}function zI({label:e,icon:t,variant:n=`ghost`,...r}){return(0,I.jsxDEV)(PI,{children:[(0,I.jsxDEV)(FI,{asChild:!0,children:(0,I.jsxDEV)(L,{type:`button`,variant:n,"aria-label":e,...r,size:`icon-xs`,children:t},void 0,!1,{fileName:LI,lineNumber:55,columnNumber:9},this)},void 0,!1,{fileName:LI,lineNumber:54,columnNumber:7},this),(0,I.jsxDEV)(II,{children:e},void 0,!1,{fileName:LI,lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:LI,lineNumber:53,columnNumber:5},this)}function BI({plan:e,dimension:t,content:n,disabled:r,defaultOpen:i=!1,onSaveSection:a,onSelectAnnotationTarget:o}){let s=w.useRef(null),[c,l]=w.useState(null),[u,d]=w.useState(null),[f,p]=w.useState(i),[m,h]=w.useState(!1),g=rj(t),_=n.trim().length>0,v=w.useCallback(()=>{let e=s.current;if(!e||!f||m)return l(null);let n=window.getSelection(),r=Aj(n,e,t,`${g} selection`);if(!r||!n||n.rangeCount===0)return l(null);let i=n.getRangeAt(0),a=typeof i.getBoundingClientRect==`function`?i.getBoundingClientRect():null,o=e.getBoundingClientRect();l({target:r,top:a?a.top-o.top:0,bottom:a?a.bottom-o.top:0,left:a?a.left-o.left+a.width/2:0})},[t,g,f,m]);w.useLayoutEffect(()=>{let e=s.current;if(!f||!e)return;let t=()=>{let t=e.querySelector(`.plan-prose`);t&&RI(t).forEach((e,t)=>{e.tabIndex=0,e.setAttribute(`role`,`group`),e.setAttribute(`aria-label`,`${g} block ${t+1}`),e.dataset.planAnnotationBlock=String(t+1)})};t();let n=new MutationObserver(t);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[n,f,g]),w.useEffect(()=>(document.addEventListener(`selectionchange`,v),()=>document.removeEventListener(`selectionchange`,v)),[v]),w.useEffect(()=>{p(i),h(!1),l(null),d(null)},[e.session,t,i]),w.useEffect(()=>{l(null),d(null)},[n]),w.useEffect(()=>{(!f||m)&&(l(null),d(null))},[m,f]);let y=(e,t)=>{e&&(o(e,t??null),l(null),d(null),window.getSelection()?.removeAllRanges())},b=e=>{let n=s.current,r=e.target?.closest(`[data-plan-annotation-block]`);if(!n||!r||!n.contains(r))return;let i=jj(r,n,t,`${g} block`);if(!i)return;let a=r.getBoundingClientRect(),o=n.getBoundingClientRect();d({target:i,top:a.top-o.top,left:a.right-o.left})},x=async e=>{a&&(await a(t,e),h(!1))},S=c!==null&&c.top<32,C=c?S?c.bottom??c.top:c.top:0,T=S?`translate(-50%, 6px)`:`translate(-50%, calc(-100% - 6px))`;return(0,I.jsxDEV)(NI,{children:(0,I.jsxDEV)(`section`,{className:`rounded-md border bg-background/50 p-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex w-full items-center gap-2`,children:[(0,I.jsxDEV)(`button`,{type:`button`,className:`flex flex-1 items-center gap-2 text-left`,"aria-label":`Toggle ${g} section`,"aria-expanded":f,onClick:()=>p(e=>!e),children:[(0,I.jsxDEV)(j,{className:`h-4 w-4 text-muted-foreground transition-transform ${f?`rotate-90`:``}`},void 0,!1,{fileName:LI,lineNumber:169,columnNumber:13},this),(0,I.jsxDEV)(`h5`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:g},void 0,!1,{fileName:LI,lineNumber:170,columnNumber:13},this)]},void 0,!0,{fileName:LI,lineNumber:168,columnNumber:11},this),f&&(0,I.jsxDEV)(`div`,{className:`flex items-center gap-0.5`,children:[a&&!m&&(0,I.jsxDEV)(zI,{label:`Edit ${g}`,icon:(0,I.jsxDEV)(Oe,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:LI,lineNumber:175,columnNumber:59},this),disabled:r,onClick:()=>h(!0)},void 0,!1,{fileName:LI,lineNumber:175,columnNumber:17},this),(0,I.jsxDEV)(zI,{label:`Annotate the entire ${g} section`,icon:(0,I.jsxDEV)(we,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:LI,lineNumber:177,columnNumber:80},this),disabled:r||!_,onClick:e=>y(Mj(t,g,n),e.currentTarget.getBoundingClientRect())},void 0,!1,{fileName:LI,lineNumber:177,columnNumber:15},this)]},void 0,!0,{fileName:LI,lineNumber:173,columnNumber:13},this)]},void 0,!0,{fileName:LI,lineNumber:167,columnNumber:9},this),f&&(m&&a?(0,I.jsxDEV)(Xj,{dimension:t,disabled:r,initialContent:n,onSave:x,onCancel:()=>h(!1)},void 0,!1,{fileName:LI,lineNumber:182,columnNumber:13},this):(0,I.jsxDEV)(`div`,{ref:s,className:`relative mt-2`,onMouseOver:b,onFocus:b,onMouseLeave:()=>d(null),children:[(0,I.jsxDEV)(zO,{markdown:n},void 0,!1,{fileName:LI,lineNumber:185,columnNumber:15},this),c&&!r&&(0,I.jsxDEV)(`div`,{className:`absolute z-20`,style:{top:C,left:c.left,transform:T},children:(0,I.jsxDEV)(L,{type:`button`,size:`xs`,className:`shadow-md`,onMouseDown:e=>e.preventDefault(),onClick:e=>y(c.target,e.currentTarget.getBoundingClientRect()),children:[(0,I.jsxDEV)(we,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:LI,lineNumber:189,columnNumber:21},this),` Annotate`]},void 0,!0,{fileName:LI,lineNumber:188,columnNumber:19},this)},void 0,!1,{fileName:LI,lineNumber:187,columnNumber:17},this),u&&!c&&!r&&(0,I.jsxDEV)(`div`,{className:`absolute z-10`,style:{top:u.top+4,left:u.left,transform:`translateX(-100%)`},children:(0,I.jsxDEV)(zI,{label:`Annotate this block in ${g}`,icon:(0,I.jsxDEV)(we,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:LI,lineNumber:195,columnNumber:79},this),variant:`secondary`,className:`border border-border shadow-sm`,onClick:e=>y(u.target,e.currentTarget.getBoundingClientRect())},void 0,!1,{fileName:LI,lineNumber:195,columnNumber:19},this)},void 0,!1,{fileName:LI,lineNumber:194,columnNumber:17},this)]},void 0,!0,{fileName:LI,lineNumber:184,columnNumber:13},this))]},void 0,!0,{fileName:LI,lineNumber:166,columnNumber:7},this)},void 0,!1,{fileName:LI,lineNumber:165,columnNumber:5},this)}var VI=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/plan-detail.tsx`,HI=sw();function UI({detail:e,artifact:t,revision:n,locked:r,onSelectAnnotationTarget:i,onApply:a,onRefresh:o,onHandoff:s,onDeleted:c,onClose:l}){let u=$n(),d=e.plan,f=e.readiness??{},[p,m]=w.useState(!1),[h,g]=w.useState(!1),[_,v]=w.useState(!1),[y,b]=w.useState({status:`loading`,profiles:[]}),x=async(e,t,n)=>{try{let r=await HI.invokeAction(e,{session:d.session,...t});return a(r),u.push(n,`success`),await o(),r}catch(e){return u.push(e instanceof Error?e.message:String(e),`error`),null}},S=(e,t)=>x(`set-session-plan-section`,{dimension:e,content:t},`Saved ${rj(e)}.`).then(()=>void 0),C=(e,t)=>x(`select-session-plan-dimensions`,{planningType:e,planningDepth:t},`Applied dimension selection.`).then(()=>void 0),T=e=>x(`update-session-plan-metadata`,{profile:e.profile,agentProfile:e.agentProfile,openQuestions:e.openQuestions},`Updated metadata.`).then(e=>e!==null),ee=()=>void x(`set-session-plan-ready`,{},`Marked ready.`),E=f.ready===!0,D=d.status===`ready`,te=E&&!D,O=E&&D,k=E&&(d.status===`submitted`||d.status===`removed`),A=HA(e,t);w.useEffect(()=>{O||m(!1)},[O]),w.useEffect(()=>{k||g(!1)},[k]),w.useEffect(()=>{let e=!0;return b(e=>({status:`loading`,profiles:e.profiles,active:e.active})),HI.invokeAction(`list-agent-runtime-profiles`,{scope:`all`}).then(t=>{e&&b({status:t.profiles.length>0?`success`:`empty`,profiles:t.profiles,active:t.active})}).catch(t=>{e&&b({status:`error`,profiles:[],error:t instanceof Error?t.message:String(t)})}),()=>{e=!1}},[d.session]);let re=async()=>{if(O){if(!p){m(!0),g(!1),v(!1);return}m(!1),await s(d.session)}},ie=async()=>{if(k){if(!h){g(!0),m(!1),v(!1);return}g(!1);try{let e=await sw().invokeAction(`resubmit-session-plan`,{session:d.session});u.push(e.message??`Resubmitted ${d.session}.`,e.kind===`enqueued`?`success`:`error`),await o()}catch(e){u.push(e instanceof Error?e.message:String(e),`error`)}}},j=async()=>{if(!_){v(!0),m(!1),g(!1);return}v(!1);try{let e=await HI.invokeAction(`delete-session-plan`,{session:d.session});u.push(e.message??`Deleted ${d.session}.`,`success`),await c()}catch(e){u.push(e instanceof Error?e.message:String(e),`error`)}},ae=Object.entries(d.sections??{}),oe=ae.find(([e])=>qI(e)),ce=ae.filter(([e])=>!qI(e)),le=(f.missingDimensions?.length??0)+(f.acDiagnostics?.length??0),ue=f.coveredDimensions?.length??0,de=ue+(f.missingDimensions?.length??0)+(f.skippedDimensions?.length??0),fe=O?`Ready for handoff`:E?`Checks pass · mark ready to hand off`:de>0?`${ue}/${de} covered · ${le} to resolve`:`Not started`;return(0,I.jsxDEV)(VO,{"aria-label":`Plan ${d.session}`,children:[(0,I.jsxDEV)(HO,{className:`flex-row items-start justify-between gap-3`,children:[(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(UO,{children:rT(d.topic,d.session)},void 0,!1,{fileName:VI,lineNumber:159,columnNumber:11},this),(0,I.jsxDEV)(WO,{children:d.session},void 0,!1,{fileName:VI,lineNumber:160,columnNumber:11},this)]},void 0,!0,{fileName:VI,lineNumber:158,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[te&&(0,I.jsxDEV)(L,{variant:`secondary`,size:`sm`,disabled:r,onClick:ee,children:[(0,I.jsxDEV)(se,{className:`h-4 w-4`},void 0,!1,{fileName:VI,lineNumber:163,columnNumber:103},this),` Mark ready`]},void 0,!0,{fileName:VI,lineNumber:163,columnNumber:28},this),k&&(0,I.jsxDEV)(L,{variant:h?`destructive`:`secondary`,size:`sm`,disabled:r,onClick:()=>void ie(),onBlur:()=>g(!1),children:[(0,I.jsxDEV)(Me,{className:`h-4 w-4`},void 0,!1,{fileName:VI,lineNumber:164,columnNumber:198},this),` `,h?`Confirm resubmit`:`Resubmit`]},void 0,!0,{fileName:VI,lineNumber:164,columnNumber:27},this),(0,I.jsxDEV)(L,{variant:_?`destructive`:`outline`,size:`sm`,disabled:r,onClick:()=>void j(),onBlur:()=>v(!1),children:[(0,I.jsxDEV)(Re,{className:`h-4 w-4`},void 0,!1,{fileName:VI,lineNumber:166,columnNumber:13},this),` `,_?`Confirm delete`:`Delete`]},void 0,!0,{fileName:VI,lineNumber:165,columnNumber:11},this),(0,I.jsxDEV)(L,{variant:p?`destructive`:`secondary`,size:`sm`,disabled:r||!O,title:O?void 0:E?`Mark ready before handoff.`:`Resolve readiness issues before handoff.`,onClick:()=>void re(),onBlur:()=>m(!1),children:[p?`Confirm handoff`:`Handoff`,` `,(0,I.jsxDEV)(ne,{className:`h-4 w-4`},void 0,!1,{fileName:VI,lineNumber:176,columnNumber:65},this)]},void 0,!0,{fileName:VI,lineNumber:168,columnNumber:11},this),(0,I.jsxDEV)(L,{variant:`ghost`,size:`icon-xs`,"aria-label":`Close plan`,title:`Close`,className:`ml-1`,onClick:l,children:(0,I.jsxDEV)(Ve,{className:`h-4 w-4`},void 0,!1,{fileName:VI,lineNumber:178,columnNumber:123},this)},void 0,!1,{fileName:VI,lineNumber:178,columnNumber:11},this)]},void 0,!0,{fileName:VI,lineNumber:162,columnNumber:9},this)]},void 0,!0,{fileName:VI,lineNumber:157,columnNumber:7},this),(0,I.jsxDEV)(GO,{className:`grid gap-3 text-sm`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[!D&&(0,I.jsxDEV)(Tn,{children:d.status},void 0,!1,{fileName:VI,lineNumber:183,columnNumber:28},this),!O&&(0,I.jsxDEV)(Tn,{variant:E?`default`:`outline`,children:E?`checks pass`:`not ready`},void 0,!1,{fileName:VI,lineNumber:184,columnNumber:27},this),e.lifecycle?.lifecycleState===`partial`&&(0,I.jsxDEV)(Tn,{variant:`outline`,title:e.lifecycle.partialReasons?.map(e=>e.message).join(` `),children:`partial lifecycle`},void 0,!1,{fileName:VI,lineNumber:185,columnNumber:62},this),d.planning_type&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:d.planning_type},void 0,!1,{fileName:VI,lineNumber:186,columnNumber:34},this),d.planning_depth&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:d.planning_depth},void 0,!1,{fileName:VI,lineNumber:187,columnNumber:35},this),(0,I.jsxDEV)(`span`,{className:`ml-auto text-xs font-semibold ${O?`text-[color:var(--lane-ready)]`:`text-[color:var(--prio-medium)]`}`,children:fe},void 0,!1,{fileName:VI,lineNumber:188,columnNumber:11},this)]},void 0,!0,{fileName:VI,lineNumber:182,columnNumber:9},this),(0,I.jsxDEV)(KI,{timestamps:A},void 0,!1,{fileName:VI,lineNumber:191,columnNumber:9},this),(0,I.jsxDEV)(WI,{detail:e},void 0,!1,{fileName:VI,lineNumber:192,columnNumber:9},this),(0,I.jsxDEV)(GI,{detail:e},void 0,!1,{fileName:VI,lineNumber:193,columnNumber:9},this),oe!==void 0&&(0,I.jsxDEV)(BI,{plan:d,dimension:`executive-summary`,content:oe[1],disabled:r||n.busy||n.loading,defaultOpen:!0,onSaveSection:S,onSelectAnnotationTarget:i},void 0,!1,{fileName:VI,lineNumber:196,columnNumber:11},this),(0,I.jsxDEV)(tM,{plan:d,readiness:f,disabled:r,onSetSection:S,onSelectDimensions:C},void 0,!1,{fileName:VI,lineNumber:207,columnNumber:9},this),(0,I.jsxDEV)(fM,{plan:d},void 0,!1,{fileName:VI,lineNumber:208,columnNumber:9},this),ce.length>0&&(0,I.jsxDEV)(`div`,{className:`grid gap-2`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(`h4`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Sections`},void 0,!1,{fileName:VI,lineNumber:213,columnNumber:15},this),(0,I.jsxDEV)(L,{className:`ml-auto`,size:`sm`,variant:`outline`,disabled:r||n.busy||n.loading,onClick:e=>{let t=Pj(d);t&&i(t,e.currentTarget.getBoundingClientRect())},children:`Annotate whole plan`},void 0,!1,{fileName:VI,lineNumber:214,columnNumber:15},this)]},void 0,!0,{fileName:VI,lineNumber:212,columnNumber:13},this),ce.map(([e,t])=>(0,I.jsxDEV)(BI,{plan:d,dimension:e,content:t,disabled:r||n.busy||n.loading,onSaveSection:S,onSelectAnnotationTarget:i},e,!1,{fileName:VI,lineNumber:217,columnNumber:15},this))]},void 0,!0,{fileName:VI,lineNumber:211,columnNumber:11},this),(0,I.jsxDEV)(ej,{storageKey:`eforge-plan.provenance.${d.session}`,title:`Build activity & metadata`,children:(0,I.jsxDEV)(`div`,{className:`grid gap-3`,children:[(0,I.jsxDEV)(gM,{plan:d,detail:e},void 0,!1,{fileName:VI,lineNumber:224,columnNumber:13},this),(0,I.jsxDEV)(sM,{plan:d,disabled:r,profileOptions:y,onSave:T},void 0,!1,{fileName:VI,lineNumber:225,columnNumber:13},this)]},void 0,!0,{fileName:VI,lineNumber:223,columnNumber:11},this)},void 0,!1,{fileName:VI,lineNumber:222,columnNumber:9},this)]},void 0,!0,{fileName:VI,lineNumber:181,columnNumber:7},this)]},void 0,!0,{fileName:VI,lineNumber:156,columnNumber:5},this)}function WI({detail:e}){let t=e.statusSourceDisclosure??e.plan?.statusSourceDisclosure;return t?(0,I.jsxDEV)(`p`,{className:`rounded border border-border bg-background/40 p-2 text-xs text-muted-foreground`,children:t},void 0,!1,{fileName:VI,lineNumber:236,columnNumber:10},this):null}function GI({detail:e}){let t=e.lifecycle?.partialReasons??e.plan?.partialReasons??[];return e.lifecycle?.lifecycleState!==`partial`||t.length===0?null:(0,I.jsxDEV)(`div`,{className:`rounded border border-amber-500/30 bg-amber-500/10 p-2 text-xs text-amber-900 dark:text-amber-100`,children:[(0,I.jsxDEV)(`div`,{className:`font-semibold`,children:`Partial lifecycle projection`},void 0,!1,{fileName:VI,lineNumber:244,columnNumber:7},this),t.map(e=>(0,I.jsxDEV)(`p`,{children:e.message},e.code,!1,{fileName:VI,lineNumber:245,columnNumber:32},this))]},void 0,!0,{fileName:VI,lineNumber:243,columnNumber:5},this)}function KI({timestamps:e}){return(0,I.jsxDEV)(`dl`,{className:`grid gap-1 rounded border border-border bg-background/40 p-2 text-xs sm:grid-cols-2`,children:[[`Created`,e.createdAt],[`Updated`,e.updatedAt],[`Ready`,e.readyAt],[`Submitted`,e.submittedAt],[`Last build activity`,e.lastBuildActivityAt]].map(([e,t])=>(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:e},void 0,!1,{fileName:VI,lineNumber:262,columnNumber:11},this),(0,I.jsxDEV)(`dd`,{className:`font-medium text-text-bright`,children:(0,I.jsxDEV)(GA,{value:t},void 0,!1,{fileName:VI,lineNumber:263,columnNumber:56},this)},void 0,!1,{fileName:VI,lineNumber:263,columnNumber:11},this)]},e,!0,{fileName:VI,lineNumber:261,columnNumber:9},this))},void 0,!1,{fileName:VI,lineNumber:259,columnNumber:5},this)}function qI(e){return e.trim().toLowerCase().replace(/-/g,` `)===`executive summary`}var JI=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/pending-annotation-composer.tsx`,YI=320,XI=4e3;function ZI(e){return e.label?.trim()||(e.dimension?rj(e.dimension):rj(e.kind))}function QI(e){if(!e)return{top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`};let t=Math.max(8,Math.min(e.left,window.innerWidth-YI-8));return e.bottom>window.innerHeight*.6?{left:t,bottom:Math.max(8,window.innerHeight-e.top+6)}:{left:t,top:Math.min(e.bottom+6,window.innerHeight-8)}}function $I({target:e,anchor:t,busy:n,onSave:r,onCancel:i}){let[a,o]=w.useState(``),[s,c]=w.useState(null),l=e.quoteContext,u=a.length,d=u>XI;w.useEffect(()=>{o(``),c(null)},[e]);let f=async()=>{if(d)return;c(null);let e=await r(a.trim());e.ok?o(``):c(e.error??`Annotation could not be saved. Keep the draft open and retry.`)};return(0,oA.createPortal)((0,I.jsxDEV)(`div`,{role:`dialog`,"aria-label":`Pending annotation composer`,className:`fixed z-50 grid gap-2 rounded-md border border-primary/40 bg-card p-3 shadow-lg shadow-black/40`,style:{width:YI,...QI(t)},onKeyDown:e=>{e.key===`Escape`&&i()},children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(we,{className:`h-4 w-4 text-primary`},void 0,!1,{fileName:JI,lineNumber:72,columnNumber:9},this),(0,I.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-xs font-semibold text-text-bright`,title:ZI(e),children:ZI(e)},void 0,!1,{fileName:JI,lineNumber:73,columnNumber:9},this),(0,I.jsxDEV)(Tn,{variant:`outline`,children:e.kind},void 0,!1,{fileName:JI,lineNumber:74,columnNumber:9},this)]},void 0,!0,{fileName:JI,lineNumber:71,columnNumber:7},this),(0,I.jsxDEV)(`blockquote`,{className:`max-h-20 overflow-auto rounded border-l-2 border-primary/40 bg-background/80 px-2 py-1 text-2xs leading-snug text-muted-foreground`,children:[l.prefix&&(0,I.jsxDEV)(`span`,{children:l.prefix},void 0,!1,{fileName:JI,lineNumber:77,columnNumber:26},this),(0,I.jsxDEV)(`span`,{className:`text-text-bright`,children:l.exact},void 0,!1,{fileName:JI,lineNumber:78,columnNumber:9},this),l.suffix&&(0,I.jsxDEV)(`span`,{children:l.suffix},void 0,!1,{fileName:JI,lineNumber:79,columnNumber:26},this)]},void 0,!0,{fileName:JI,lineNumber:76,columnNumber:7},this),(0,I.jsxDEV)(YO,{autoFocus:!0,"aria-label":`Annotation note`,value:a,disabled:n,onChange:e=>{o(e.target.value),c(null)},placeholder:`Describe what should change or what needs review…`},void 0,!1,{fileName:JI,lineNumber:81,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2 text-2xs`,children:[(0,I.jsxDEV)(`span`,{className:d?`text-destructive-foreground`:`text-muted-foreground`,children:[u,` / `,XI,` characters`]},void 0,!0,{fileName:JI,lineNumber:83,columnNumber:9},this),d&&(0,I.jsxDEV)(`span`,{className:`text-destructive-foreground`,children:`Shorten before saving.`},void 0,!1,{fileName:JI,lineNumber:84,columnNumber:23},this)]},void 0,!0,{fileName:JI,lineNumber:82,columnNumber:7},this),s&&(0,I.jsxDEV)(`p`,{role:`alert`,className:`rounded border border-destructive/40 bg-destructive/10 px-2 py-1 text-xs text-destructive-foreground`,children:s},void 0,!1,{fileName:JI,lineNumber:86,columnNumber:21},this),(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,disabled:n||d,title:d?`Annotation exceeds the backend body limit.`:void 0,onClick:()=>void f(),children:`Save annotation`},void 0,!1,{fileName:JI,lineNumber:88,columnNumber:9},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,onClick:i,children:`Cancel annotation`},void 0,!1,{fileName:JI,lineNumber:89,columnNumber:9},this)]},void 0,!0,{fileName:JI,lineNumber:87,columnNumber:7},this)]},void 0,!0,{fileName:JI,lineNumber:64,columnNumber:5},this),document.body)}var eL=1600;function tL(e){let t=e instanceof Error?e.message:String(e);return/no revision session|not found|missing revision session|does not exist/i.test(t)}function nL({session:e,onApply:t,onRefresh:n,autoLoadExisting:r=!1}){let i=$n(),[a,o]=w.useState(null),[s,c]=w.useState(!1),[l,u]=w.useState(!1),[d,f]=w.useState(!1),p=w.useRef(new Set),m=w.useRef(new Set),h=w.useRef(new Set),g=w.useRef(0),_=w.useRef(e);_.current=e;let v=w.useCallback(e=>e.targetSession===_.current?(g.current+=1,o(e),c(!0),e):e,[]);w.useEffect(()=>{o(null),c(!1),u(!1),f(!1),p.current=new Set,m.current=new Set,h.current=new Set,g.current=0},[e]);let y=w.useCallback(async()=>{u(!0);try{return v(await sw().invokeAction(`get-plan-revision-session`,{session:e,includePlan:!1}))}catch(e){return tL(e)||i.push(e instanceof Error?e.message:String(e),`error`),null}finally{u(!1)}},[e,v,i]);w.useEffect(()=>{r&&y()},[r,y]);let b=w.useCallback(async()=>{if(a?.targetSession===e)return a;u(!0);try{return v(await sw().invokeAction(`start-plan-revision-session`,{session:e}))}catch(e){return i.push(e instanceof Error?e.message:String(e),`error`),null}finally{u(!1)}},[a,e,v,i]),x=w.useCallback(async(t={})=>{if(!s&&!a)return null;u(!0);try{return v(await sw().invokeAction(`get-plan-revision-session`,{session:e,includePlan:t.includePlan===!0}))}catch(e){return i.push(e instanceof Error?e.message:String(e),`error`),null}finally{u(!1)}},[s,a,e,v,i]),S=w.useCallback(async t=>{let n=t.trim();if(!n||!await b())return null;f(!0);try{let t=await sw().invokeAction(`start-plan-revision-turn`,{session:e,message:n});return v(t.session)}catch(e){return i.push(e instanceof Error?e.message:String(e),`error`),null}finally{f(!1)}},[b,e,v,i]),C=w.useCallback(async(t,n,r)=>{f(!0);try{let a=await sw().invokeAction(t,{session:e,...n}),o=v(a);return i.push(r,`success`),o}catch(e){return i.push(e instanceof Error?e.message:String(e),`error`),null}finally{f(!1)}},[e,v,i]),T=w.useCallback(async(e,t)=>{let n={target:e,...t?.trim()&&{body:t.trim()}};return C(`create-plan-revision-annotation`,n,`Created plan annotation.`)},[C]),ee=w.useCallback(async(t,n)=>{let r={target:t,...n?.trim()&&{body:n.trim()}};f(!0);try{let t=await sw().invokeAction(`create-plan-revision-annotation`,{session:e,...r}),n=v(t);return i.push(`Created plan annotation.`,`success`),{session:n,error:null}}catch(e){let t=e instanceof Error?e.message:String(e);return i.push(t,`error`),{session:null,error:t}}finally{f(!1)}},[e,v,i]),E=w.useCallback(e=>C(`update-plan-revision-annotation`,{annotationId:e.annotationId,body:e.body},`Updated plan annotation.`),[C]),D=w.useCallback(e=>C(`delete-plan-revision-annotation`,{annotationId:e},`Deleted plan annotation.`),[C]),te=w.useCallback(e=>C(`resolve-plan-revision-annotation`,{annotationId:e},`Resolved plan annotation.`),[C]),O=w.useCallback(e=>C(`dismiss-plan-revision-annotation`,{annotationId:e},`Dismissed plan annotation.`),[C]),ne=w.useCallback(async t=>{if(!(a?.targetSession===e?a:await b()))return null;f(!0);try{let n=t.steering?.trim(),r=t.annotationIds??[],i=await sw().invokeAction(`start-plan-revision-turn`,{session:e,...r.length>0&&{annotationIds:r},includeOpenAnnotations:t.includeOpenAnnotations===!0,...n&&{steering:n}});return v(i.session)}catch(e){return i.push(e instanceof Error?e.message:String(e),`error`),null}finally{f(!1)}},[b,a,e,v,i]),k=w.useCallback(async t=>{f(!0);try{v(await sw().invokeAction(`cancel-plan-revision-turn`,{session:e,turnId:t.turnId}))}catch(e){i.push(e instanceof Error?e.message:String(e),`error`)}finally{f(!1)}},[e,v,i]),A=w.useCallback(async t=>{f(!0);try{v((await sw().invokeAction(`retry-plan-revision-turn`,{session:e,turnId:t.turnId})).session)}catch(e){i.push(e instanceof Error?e.message:String(e),`error`)}finally{f(!1)}},[e,v,i]),re=w.useCallback(async(t,n,r)=>{let a=n.filter(e=>e.answer.trim().length>0).map(e=>({...e,answer:e.answer.trim()})),o=r?.trim();if(!(a.length===0&&!o)){f(!0);try{v((await sw().invokeAction(`retry-plan-revision-turn`,{session:e,turnId:t.turnId,...a.length>0&&{answers:a},...o&&{steering:o}})).session)}catch(e){i.push(e instanceof Error?e.message:String(e),`error`)}finally{f(!1)}}},[e,v,i]),ie=w.useCallback(async r=>{f(!0);try{let a=await sw().invokeAction(`apply-plan-revision-turn`,{session:e,turnId:r.turnId});return a.kind===`applied`?(t({plan:a.plan,readiness:a.readiness}),await n(),await x({includePlan:!0}),i.push(`Applied AI plan revision.`,`success`)):i.push(a.message,`error`),a}catch(e){return i.push(e instanceof Error?e.message:String(e),`error`),null}finally{f(!1)}},[t,n,x,e,i]),j=uj(a?.turns??[]);return w.useEffect(()=>{if(!s||!j)return;let e=window.setInterval(()=>{x()},eL);return()=>window.clearInterval(e)},[j,s,x]),w.useEffect(()=>{let e=g.current;for(let t of a?.turns??[]){let n=`${e}:${t.turnId}`;t.appliedAt||p.current.has(t.turnId)||m.current.has(t.turnId)||h.current.has(n)||sj(t)===`patch`&&(h.current.add(n),m.current.add(t.turnId),ie(t).then(e=>{e?.kind===`applied`&&p.current.add(t.turnId)}).finally(()=>{m.current.delete(t.turnId)}))}},[a,ie]),{revisionSession:a,loading:l,busy:d,initialized:s,hasRunningTurn:j,loadExistingSession:y,ensureSession:b,reload:x,submit:S,createAnnotation:T,createAnnotationWithError:ee,updateAnnotation:E,deleteAnnotation:D,resolveAnnotation:te,dismissAnnotation:O,submitAnnotationRevision:ne,cancel:k,retry:A,redraft:re,apply:ie}}var rL=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/plan-detail-workspace.tsx`;function iL({detail:e,artifact:t,titles:n,onApply:r,onRefresh:i,onHandoff:a,onDeleted:o,onClose:s}){let c=e.plan,l=nL({session:c.session,onApply:r,onRefresh:i,autoLoadExisting:!0}),[u,d]=w.useState(null);w.useEffect(()=>{d(null)},[c.session]);let f=w.useCallback((e,t)=>{d({target:e,anchor:t??null})},[]),p=w.useCallback(async e=>{if(!u||l.hasRunningTurn)return{ok:!1,error:`A revision is already running. Try again after it finishes.`};let t=await l.createAnnotationWithError(u.target,e.trim());return t.session&&d(null),{ok:!!t.session,error:t.error??void 0}},[u,l]);return(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(`section`,{className:`min-w-0`,children:(0,I.jsxDEV)(UI,{detail:e,artifact:t,revision:l,locked:l.hasRunningTurn,onSelectAnnotationTarget:f,onApply:r,onRefresh:i,onHandoff:a,onDeleted:o,onClose:s},void 0,!1,{fileName:rL,lineNumber:46,columnNumber:9},this)},void 0,!1,{fileName:rL,lineNumber:45,columnNumber:7},this),(0,I.jsxDEV)(`aside`,{className:`grid min-w-0 content-start gap-3 lg:sticky lg:top-[5.5rem]`,children:(0,I.jsxDEV)(qj,{artifact:t,titles:n,plan:c,revision:l},void 0,!1,{fileName:rL,lineNumber:49,columnNumber:9},this)},void 0,!1,{fileName:rL,lineNumber:48,columnNumber:7},this),u&&(0,I.jsxDEV)($I,{target:u.target,anchor:u.anchor,busy:l.busy||l.loading||l.hasRunningTurn,onSave:p,onCancel:()=>d(null)},void 0,!1,{fileName:rL,lineNumber:52,columnNumber:9},this)]},void 0,!0,{fileName:rL,lineNumber:44,columnNumber:5},this)}var aL=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/plan-set-detail.tsx`;function oL({detail:e}){let t=e.planSet,n=t?.children??[],r=t?.strategy??`sequential`,i=e.validation?.diagnostics??t?.diagnostics??[],a=e.validation?.ok??i.length===0;return(0,I.jsxDEV)(VO,{children:[(0,I.jsxDEV)(HO,{className:`flex-row items-start justify-between gap-3`,children:[(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(UO,{children:t?.title??t?.id??`Plan set`},void 0,!1,{fileName:aL,lineNumber:24,columnNumber:11},this),(0,I.jsxDEV)(WO,{children:e.manifestPath},void 0,!1,{fileName:aL,lineNumber:25,columnNumber:11},this)]},void 0,!0,{fileName:aL,lineNumber:23,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[t?.status&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:t.status},void 0,!1,{fileName:aL,lineNumber:28,columnNumber:31},this),(0,I.jsxDEV)(Tn,{variant:`secondary`,children:[(0,I.jsxDEV)(ye,{className:`mr-1 h-3.5 w-3.5`},void 0,!1,{fileName:aL,lineNumber:29,columnNumber:38},this),` `,r]},void 0,!0,{fileName:aL,lineNumber:29,columnNumber:11},this),(0,I.jsxDEV)(Tn,{variant:a?`default`:`destructive`,children:a?`valid`:`${i.length} issue(s)`},void 0,!1,{fileName:aL,lineNumber:30,columnNumber:11},this)]},void 0,!0,{fileName:aL,lineNumber:27,columnNumber:9},this)]},void 0,!0,{fileName:aL,lineNumber:22,columnNumber:7},this),(0,I.jsxDEV)(GO,{className:`grid gap-3 text-sm`,children:[n.length===0?(0,I.jsxDEV)(`p`,{className:`text-muted-foreground`,children:`This plan set has no children.`},void 0,!1,{fileName:aL,lineNumber:35,columnNumber:13},this):(0,I.jsxDEV)(sL,{children:n,strategy:r},void 0,!1,{fileName:aL,lineNumber:36,columnNumber:13},this),i.length>0&&(0,I.jsxDEV)(lL,{diagnostics:i},void 0,!1,{fileName:aL,lineNumber:37,columnNumber:36},this)]},void 0,!0,{fileName:aL,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:aL,lineNumber:21,columnNumber:5},this)}function sL({children:e,strategy:t}){return t===`parallel`?(0,I.jsxDEV)(`div`,{className:`grid gap-2 sm:grid-cols-2`,children:e.map(e=>(0,I.jsxDEV)(cL,{child:e},e.id,!1,{fileName:aL,lineNumber:47,columnNumber:34},this))},void 0,!1,{fileName:aL,lineNumber:46,columnNumber:7},this):(0,I.jsxDEV)(`ol`,{className:`grid gap-2`,children:e.map((e,n)=>(0,I.jsxDEV)(`li`,{className:`flex items-start gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`mt-1 inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full border text-2xs text-muted-foreground`,children:n+1},void 0,!1,{fileName:aL,lineNumber:57,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:(0,I.jsxDEV)(cL,{child:e,showDeps:t===`dag`},void 0,!1,{fileName:aL,lineNumber:58,columnNumber:43},this)},void 0,!1,{fileName:aL,lineNumber:58,columnNumber:11},this)]},e.id,!0,{fileName:aL,lineNumber:56,columnNumber:9},this))},void 0,!1,{fileName:aL,lineNumber:54,columnNumber:5},this)}function cL({child:e,showDeps:t}){let n=e.dependsOn??[];return(0,I.jsxDEV)(`div`,{className:`rounded-md border bg-card p-2`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[e.validation?.ok??!0?(0,I.jsxDEV)(se,{className:`h-4 w-4 text-[color:var(--lane-ready)]`},void 0,!1,{fileName:aL,lineNumber:72,columnNumber:13},this):(0,I.jsxDEV)(ze,{className:`h-4 w-4 text-[color:var(--lane-blocked)]`},void 0,!1,{fileName:aL,lineNumber:73,columnNumber:13},this),(0,I.jsxDEV)(`strong`,{className:`truncate text-text-bright`,children:e.id},void 0,!1,{fileName:aL,lineNumber:74,columnNumber:9},this),(0,I.jsxDEV)(`span`,{className:`ml-auto flex flex-wrap gap-1`,children:[(0,I.jsxDEV)(Tn,{variant:`outline`,children:e.status},void 0,!1,{fileName:aL,lineNumber:76,columnNumber:11},this),e.kind&&e.kind!==`plan`&&(0,I.jsxDEV)(Tn,{variant:`secondary`,children:e.kind},void 0,!1,{fileName:aL,lineNumber:77,columnNumber:51},this),e.buildable===!1&&(0,I.jsxDEV)(Tn,{variant:`outline`,children:`not buildable`},void 0,!1,{fileName:aL,lineNumber:78,columnNumber:41},this),e.exists===!1&&(0,I.jsxDEV)(Tn,{variant:`destructive`,children:`missing file`},void 0,!1,{fileName:aL,lineNumber:79,columnNumber:38},this)]},void 0,!0,{fileName:aL,lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:aL,lineNumber:70,columnNumber:7},this),e.file&&(0,I.jsxDEV)(`code`,{className:`mt-0.5 block truncate text-2xs text-muted-foreground`,children:e.file},void 0,!1,{fileName:aL,lineNumber:82,columnNumber:22},this),t&&n.length>0&&(0,I.jsxDEV)(`p`,{className:`mt-1 flex flex-wrap items-baseline gap-1 text-xs`,children:[(0,I.jsxDEV)(`span`,{className:`text-2xs uppercase tracking-wide text-muted-foreground`,children:`Depends on`},void 0,!1,{fileName:aL,lineNumber:85,columnNumber:11},this),n.map(e=>(0,I.jsxDEV)(`code`,{className:`rounded border border-border px-1 text-2xs`,children:e},e,!1,{fileName:aL,lineNumber:86,columnNumber:35},this))]},void 0,!0,{fileName:aL,lineNumber:84,columnNumber:9},this)]},void 0,!0,{fileName:aL,lineNumber:69,columnNumber:5},this)}function lL({diagnostics:e}){return(0,I.jsxDEV)(`div`,{className:`grid gap-1.5`,children:[(0,I.jsxDEV)(`h4`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Validation`},void 0,!1,{fileName:aL,lineNumber:96,columnNumber:7},this),(0,I.jsxDEV)(`ul`,{className:`grid gap-1.5`,children:e.map((e,t)=>(0,I.jsxDEV)(`li`,{className:`rounded border border-[color:var(--lane-blocked)]/40 bg-background p-2 text-xs`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(ze,{className:`h-3.5 w-3.5 text-[color:var(--lane-blocked)]`},void 0,!1,{fileName:aL,lineNumber:101,columnNumber:15},this),(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:e.message},void 0,!1,{fileName:aL,lineNumber:102,columnNumber:15},this),e.code&&(0,I.jsxDEV)(`span`,{className:`ml-auto text-2xs uppercase tracking-wide text-muted-foreground`,children:e.code},void 0,!1,{fileName:aL,lineNumber:103,columnNumber:35},this)]},void 0,!0,{fileName:aL,lineNumber:100,columnNumber:13},this),(e.childId||e.file)&&(0,I.jsxDEV)(`code`,{className:`mt-0.5 block truncate text-2xs text-muted-foreground`,children:e.childId??e.file},void 0,!1,{fileName:aL,lineNumber:106,columnNumber:15},this)]},t,!0,{fileName:aL,lineNumber:99,columnNumber:11},this))},void 0,!1,{fileName:aL,lineNumber:97,columnNumber:7},this)]},void 0,!0,{fileName:aL,lineNumber:95,columnNumber:5},this)}var uL=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/draft-unit-advisory.tsx`;function dL({advisory:e,className:t=``}){let n=e.severity===`caution`,r=n?ze:se,i=n?`var(--prio-medium)`:`var(--lane-done)`;return(0,I.jsxDEV)(`div`,{className:`rounded-md border p-2 ${t}`,style:{borderColor:`color-mix(in srgb, ${i} 40%, transparent)`,background:`color-mix(in srgb, ${i} 8%, transparent)`},role:`status`,"aria-live":`polite`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-1.5 text-2xs font-semibold uppercase tracking-wide`,style:{color:i},children:[(0,I.jsxDEV)(r,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:uL,lineNumber:17,columnNumber:9},this),` `,n?`Dependency caution`:`Dependencies look consistent`]},void 0,!0,{fileName:uL,lineNumber:16,columnNumber:7},this),(0,I.jsxDEV)(`ul`,{className:`mt-1 grid gap-1 text-xs text-muted-foreground`,children:e.findings.map((e,t)=>(0,I.jsxDEV)(`li`,{children:e.message},`${e.code}-${t}`,!1,{fileName:uL,lineNumber:21,columnNumber:11},this))},void 0,!1,{fileName:uL,lineNumber:19,columnNumber:7},this)]},void 0,!0,{fileName:uL,lineNumber:15,columnNumber:5},this)}var fL=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/draft-unit-split-panel.tsx`;function pL({unit:e,titles:t,onAdvise:n,onSplit:r,onClose:i,onOpenUnit:a}){let o=$n(),[s,c]=w.useState(new Set),[l,u]=w.useState(``),[d,f]=w.useState(null),[p,m]=w.useState(!1),h=e=>t.get(e)??e;cA(i,!p);let g=w.useMemo(()=>e.items.filter(e=>s.has(e.itemId)).map(e=>e.itemId),[e.items,s]),_=g.length>0&&g.length<e.items.length;w.useEffect(()=>{if(!_){f(null);return}let t=!0;return n(e.unitId,g).then(e=>{t&&f(e)}).catch(()=>{t&&f(null)}),()=>{t=!1}},[_,g,e.unitId,n]);let v=e=>c(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});return(0,I.jsxDEV)(`div`,{className:`grid gap-2 rounded-md border border-dashed border-border p-3`,"aria-label":`Split draft unit`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:[(0,I.jsxDEV)(Pe,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:fL,lineNumber:64,columnNumber:9},this),` Split into a new unit`,(0,I.jsxDEV)(L,{variant:`ghost`,size:`icon-xs`,className:`ml-auto`,"aria-label":`Close split panel`,disabled:p,onClick:i,children:(0,I.jsxDEV)(Ve,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:fL,lineNumber:65,columnNumber:133},this)},void 0,!1,{fileName:fL,lineNumber:65,columnNumber:9},this)]},void 0,!0,{fileName:fL,lineNumber:63,columnNumber:7},this),(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:`Pick the items to peel off. The original keeps the rest; both sides must keep at least one item.`},void 0,!1,{fileName:fL,lineNumber:67,columnNumber:7},this),(0,I.jsxDEV)(`ul`,{className:`grid gap-1`,children:e.items.map(e=>(0,I.jsxDEV)(`li`,{children:(0,I.jsxDEV)(`label`,{className:`flex items-center gap-2 rounded border border-border p-1.5 text-xs`,children:[(0,I.jsxDEV)(qA,{disabled:p,checked:s.has(e.itemId),onChange:()=>v(e.itemId)},void 0,!1,{fileName:fL,lineNumber:72,columnNumber:15},this),(0,I.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-text-bright`,children:h(e.itemId)},void 0,!1,{fileName:fL,lineNumber:73,columnNumber:15},this)]},void 0,!0,{fileName:fL,lineNumber:71,columnNumber:13},this)},e.itemId,!1,{fileName:fL,lineNumber:70,columnNumber:11},this))},void 0,!1,{fileName:fL,lineNumber:68,columnNumber:7},this),(0,I.jsxDEV)(Tk,{value:l,disabled:p,className:`h-8 text-xs`,placeholder:`Title for the new unit`,onChange:e=>u(e.target.value)},void 0,!1,{fileName:fL,lineNumber:78,columnNumber:7},this),d&&(0,I.jsxDEV)(dL,{advisory:d},void 0,!1,{fileName:fL,lineNumber:79,columnNumber:20},this),(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,disabled:p||!_||!l.trim(),onClick:()=>{!_||!l.trim()||(m(!0),r({unitId:e.unitId,itemIds:g,title:l.trim()}).then(e=>{o.push(`Split ${g.length} item${g.length===1?``:`s`} into “${e.created.title}”.`,`success`),i(),a?.(sT(e.created.unitId))}).catch(e=>o.push(e instanceof Error?e.message:String(e),`error`)).finally(()=>m(!1)))},title:_?`Split off the selected items.`:`Keep at least one item on each side.`,children:[p?(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:fL,lineNumber:82,columnNumber:19},this):(0,I.jsxDEV)(Pe,{className:`h-4 w-4`},void 0,!1,{fileName:fL,lineNumber:82,columnNumber:33},this),` Split off `,g.length||``,` `,g.length===1?`item`:`items`]},void 0,!0,{fileName:fL,lineNumber:81,columnNumber:9},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,disabled:p,onClick:i,children:`Cancel`},void 0,!1,{fileName:fL,lineNumber:84,columnNumber:9},this)]},void 0,!0,{fileName:fL,lineNumber:80,columnNumber:7},this)]},void 0,!0,{fileName:fL,lineNumber:62,columnNumber:5},this)}var Y=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/draft-unit-detail.tsx`;function mL({unit:e,titles:t,onUpdate:n,onDelete:r,onPromote:i,onSplit:a,onAdviseSplit:o,onOpenItem:s,onOpenPlan:c}){let l=$n(),[u,d]=w.useState(!1),[f,p]=w.useState(!1),[m,h]=w.useState(!1),g=e.status===`promoted`,_=!!(a&&o)&&!g&&e.items.length>=2,v=e.promotedSession,y=e=>t.get(e)??e,b=w.useMemo(()=>{let n=new Set(e.items.map(e=>e.itemId));return Array.from(t.entries()).filter(([e])=>!n.has(e)).map(([e,t])=>({id:e,title:t}))},[t,e.items]),x=w.useCallback(async e=>{d(!0);try{await e()}catch(e){l.push(e instanceof Error?e.message:String(e),`error`)}finally{d(!1)}},[l]),S=(t,r)=>{if(u||g)return;let i=[...e.items],a=t+r;a<0||a>=i.length||([i[t],i[a]]=[i[a],i[t]],x(()=>n({unitId:e.unitId,itemOrder:i.map(e=>e.itemId)})))};return(0,I.jsxDEV)(VO,{children:[(0,I.jsxDEV)(HO,{children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(me,{className:`h-4 w-4 text-[color:var(--lane-progress)]`},void 0,!1,{fileName:Y,lineNumber:80,columnNumber:11},this),(0,I.jsxDEV)(UO,{className:`text-base`,children:`Draft plan unit`},void 0,!1,{fileName:Y,lineNumber:81,columnNumber:11},this),(0,I.jsxDEV)(Tn,{variant:e.provenance===`recommendation`?`secondary`:`outline`,children:e.provenance===`recommendation`?`from a lane`:`user-authored`},void 0,!1,{fileName:Y,lineNumber:82,columnNumber:11},this),(0,I.jsxDEV)(Tn,{variant:g?`default`:`outline`,className:`capitalize`,children:e.status},void 0,!1,{fileName:Y,lineNumber:85,columnNumber:11},this)]},void 0,!0,{fileName:Y,lineNumber:79,columnNumber:9},this),(0,I.jsxDEV)(WO,{children:g?v?(0,I.jsxDEV)(I.Fragment,{children:[`Promoted to `,(0,I.jsxDEV)(`button`,{type:`button`,className:`underline`,onClick:()=>c?.(cT(v)),children:v},void 0,!1,{fileName:Y,lineNumber:90,columnNumber:31},this),`. This draft is now read-only.`]},void 0,!0,{fileName:Y,lineNumber:90,columnNumber:17},this):(0,I.jsxDEV)(I.Fragment,{children:`Promoted to a session plan. This draft is now read-only.`},void 0,!1,{fileName:Y,lineNumber:91,columnNumber:17},this):`Curate the grouping and intent, then promote into a session plan.`},void 0,!1,{fileName:Y,lineNumber:87,columnNumber:9},this)]},void 0,!0,{fileName:Y,lineNumber:78,columnNumber:7},this),(0,I.jsxDEV)(GO,{className:`grid gap-4`,children:[(0,I.jsxDEV)(gL,{label:`Title`,children:(0,I.jsxDEV)(Tk,{defaultValue:e.title,disabled:u||g,onBlur:t=>{let r=t.target.value.trim();r&&r!==e.title&&x(()=>n({unitId:e.unitId,title:r}))}},void 0,!1,{fileName:Y,lineNumber:98,columnNumber:11},this)},void 0,!1,{fileName:Y,lineNumber:97,columnNumber:9},this),(0,I.jsxDEV)(gL,{label:`Intent`,children:(0,I.jsxDEV)(YO,{defaultValue:e.intent??``,disabled:u||g,className:`min-h-20 text-xs`,placeholder:`Why these items belong together (grouping rationale, not scope).`,onBlur:t=>{let r=t.target.value;r!==(e.intent??``)&&x(()=>n({unitId:e.unitId,intent:r}))}},void 0,!1,{fileName:Y,lineNumber:106,columnNumber:11},this)},void 0,!1,{fileName:Y,lineNumber:105,columnNumber:9},this),(0,I.jsxDEV)(gL,{label:`Profile`,children:(0,I.jsxDEV)(mA,{value:e.profile??``,disabled:u||g,onChange:t=>void x(()=>n({unitId:e.unitId,profile:t.target.value})),children:[(0,I.jsxDEV)(`option`,{value:``,children:`none`},void 0,!1,{fileName:Y,lineNumber:121,columnNumber:13},this),nC.map(e=>(0,I.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:Y,lineNumber:122,columnNumber:47},this))]},void 0,!0,{fileName:Y,lineNumber:116,columnNumber:11},this)},void 0,!1,{fileName:Y,lineNumber:115,columnNumber:9},this),(0,I.jsxDEV)(`section`,{className:`grid gap-2`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`h4`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:[`Items (`,e.items.length,`)`]},void 0,!0,{fileName:Y,lineNumber:128,columnNumber:13},this),(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[e.sourceRecommendationRef&&(0,I.jsxDEV)(`span`,{className:`text-2xs text-muted-foreground`,children:[`lane: `,e.sourceRecommendationRef]},void 0,!0,{fileName:Y,lineNumber:130,columnNumber:48},this),!g&&(0,I.jsxDEV)(L,{size:`xs`,variant:`ghost`,disabled:u,"aria-expanded":f,onClick:()=>p(e=>!e),children:[(0,I.jsxDEV)(ke,{className:`h-3 w-3`},void 0,!1,{fileName:Y,lineNumber:133,columnNumber:19},this),` Add items`]},void 0,!0,{fileName:Y,lineNumber:132,columnNumber:17},this)]},void 0,!0,{fileName:Y,lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:Y,lineNumber:127,columnNumber:11},this),f&&!g&&(0,I.jsxDEV)(hL,{candidates:b,disabled:u,onAdd:t=>void x(()=>n({unitId:e.unitId,addItemIds:[t]}))},void 0,!1,{fileName:Y,lineNumber:139,columnNumber:13},this),e.items.length===0?(0,I.jsxDEV)(Ck,{className:`p-3 text-xs`,children:`No items. Remove leaves nothing to promote.`},void 0,!1,{fileName:Y,lineNumber:142,columnNumber:15},this):(0,I.jsxDEV)(`ul`,{className:`grid gap-1`,children:e.items.map((t,r)=>(0,I.jsxDEV)(`li`,{className:`flex items-center gap-2 rounded-md border border-border p-2`,children:[(0,I.jsxDEV)(`button`,{type:`button`,className:`min-w-0 flex-1 truncate text-left text-xs text-text-bright hover:underline`,title:t.itemId,onClick:()=>s?.(t.itemId),children:y(t.itemId)},void 0,!1,{fileName:Y,lineNumber:146,columnNumber:21},this),(0,I.jsxDEV)(Tn,{variant:t.origin===`recommendation`?`secondary`:`outline`,className:`shrink-0 text-2xs`,children:t.origin===`recommendation`?`AI`:`you`},void 0,!1,{fileName:Y,lineNumber:149,columnNumber:21},this),!g&&(0,I.jsxDEV)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[(0,I.jsxDEV)(L,{size:`icon-xs`,variant:`ghost`,disabled:u||r===0,title:`Move up`,onClick:()=>S(r,-1),children:(0,I.jsxDEV)(k,{className:`h-3 w-3`},void 0,!1,{fileName:Y,lineNumber:152,columnNumber:146},this)},void 0,!1,{fileName:Y,lineNumber:152,columnNumber:25},this),(0,I.jsxDEV)(L,{size:`icon-xs`,variant:`ghost`,disabled:u||r===e.items.length-1,title:`Move down`,onClick:()=>S(r,1),children:(0,I.jsxDEV)(O,{className:`h-3 w-3`},void 0,!1,{fileName:Y,lineNumber:153,columnNumber:167},this)},void 0,!1,{fileName:Y,lineNumber:153,columnNumber:25},this),(0,I.jsxDEV)(L,{size:`icon-xs`,variant:`ghost`,className:`text-[color:var(--lane-blocked)]`,disabled:u,title:`Remove from unit`,onClick:()=>void x(()=>n({unitId:e.unitId,removeItemIds:[t.itemId]})),children:(0,I.jsxDEV)(Ve,{className:`h-3 w-3`},void 0,!1,{fileName:Y,lineNumber:154,columnNumber:246},this)},void 0,!1,{fileName:Y,lineNumber:154,columnNumber:25},this)]},void 0,!0,{fileName:Y,lineNumber:151,columnNumber:23},this)]},t.itemId,!0,{fileName:Y,lineNumber:145,columnNumber:19},this))},void 0,!1,{fileName:Y,lineNumber:143,columnNumber:15},this)]},void 0,!0,{fileName:Y,lineNumber:126,columnNumber:9},this),m&&_&&a&&o&&(0,I.jsxDEV)(pL,{unit:e,titles:t,onAdvise:o,onSplit:a,onClose:()=>h(!1),onOpenUnit:c},void 0,!1,{fileName:Y,lineNumber:163,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2 border-t pt-3`,children:[(0,I.jsxDEV)(L,{disabled:u||g||e.items.length===0,onClick:()=>x(async()=>{let t=await i(e.unitId);l.push(`Promoted to ${t.promotion.session}.`,`success`),c?.(cT(t.promotion.session))}),title:e.items.length===0?`Add at least one item before promoting.`:`Promote plan-first into a session plan.`,children:[u?(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:Y,lineNumber:168,columnNumber:21},this):(0,I.jsxDEV)(je,{className:`h-4 w-4`},void 0,!1,{fileName:Y,lineNumber:168,columnNumber:35},this),` Promote to a build plan`]},void 0,!0,{fileName:Y,lineNumber:167,columnNumber:11},this),_&&(0,I.jsxDEV)(L,{variant:`outline`,disabled:u,"aria-expanded":m,onClick:()=>h(e=>!e),title:`Split this unit's items into two units.`,children:[(0,I.jsxDEV)(Pe,{className:`h-4 w-4`},void 0,!1,{fileName:Y,lineNumber:172,columnNumber:15},this),` Split`]},void 0,!0,{fileName:Y,lineNumber:171,columnNumber:13},this),(0,I.jsxDEV)(L,{variant:`ghost`,className:`text-[color:var(--lane-blocked)]`,disabled:u,onClick:()=>void x(()=>r(e.unitId)),children:[(0,I.jsxDEV)(Re,{className:`h-4 w-4`},void 0,!1,{fileName:Y,lineNumber:176,columnNumber:13},this),` Delete`]},void 0,!0,{fileName:Y,lineNumber:175,columnNumber:11},this)]},void 0,!0,{fileName:Y,lineNumber:166,columnNumber:9},this)]},void 0,!0,{fileName:Y,lineNumber:96,columnNumber:7},this)]},void 0,!0,{fileName:Y,lineNumber:77,columnNumber:5},this)}function hL({candidates:e,disabled:t,onAdd:n}){let[r,i]=w.useState(``),a=w.useMemo(()=>{let t=r.trim().toLowerCase();return(t?e.filter(e=>e.title.toLowerCase().includes(t)||e.id.toLowerCase().includes(t)):e).slice(0,50)},[e,r]);return(0,I.jsxDEV)(`div`,{className:`grid gap-2 rounded-md border border-dashed border-border p-2`,children:e.length===0?(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:`Every board item is already in this unit.`},void 0,!1,{fileName:Y,lineNumber:206,columnNumber:9},this):(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(Tk,{value:r,disabled:t,className:`h-8 text-xs`,placeholder:`Search board items to add…`,onChange:e=>i(e.target.value)},void 0,!1,{fileName:Y,lineNumber:209,columnNumber:11},this),a.length===0?(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:[`No board items match “`,r,`”.`]},void 0,!0,{fileName:Y,lineNumber:211,columnNumber:13},this):(0,I.jsxDEV)(`ul`,{className:`grid max-h-48 gap-1 overflow-auto`,children:a.map(e=>(0,I.jsxDEV)(`li`,{children:(0,I.jsxDEV)(`button`,{type:`button`,disabled:t,title:e.id,onClick:()=>n(e.id),className:`flex w-full items-center gap-2 rounded border border-border p-1.5 text-left text-xs hover:border-primary disabled:opacity-50`,children:[(0,I.jsxDEV)(ke,{className:`h-3 w-3 shrink-0 text-muted-foreground`},void 0,!1,{fileName:Y,lineNumber:223,columnNumber:21},this),(0,I.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-text-bright`,children:e.title},void 0,!1,{fileName:Y,lineNumber:224,columnNumber:21},this)]},void 0,!0,{fileName:Y,lineNumber:216,columnNumber:19},this)},e.id,!1,{fileName:Y,lineNumber:215,columnNumber:17},this))},void 0,!1,{fileName:Y,lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:Y,lineNumber:208,columnNumber:9},this)},void 0,!1,{fileName:Y,lineNumber:204,columnNumber:5},this)}function gL({label:e,children:t}){return(0,I.jsxDEV)(`label`,{className:`grid gap-1`,children:[(0,I.jsxDEV)(`span`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:e},void 0,!1,{fileName:Y,lineNumber:239,columnNumber:7},this),t]},void 0,!0,{fileName:Y,lineNumber:238,columnNumber:5},this)}var _L=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans/draft-merge-panel.tsx`;function vL({units:e,onAdvise:t,onMerge:n,onClose:r,onOpenUnit:i}){let a=$n(),o=w.useMemo(()=>e.map(e=>e.unitId),[e]),[s,c]=w.useState(e[0]?.title??``),[l,u]=w.useState(null),[d,f]=w.useState(!1);return cA(r,!d),w.useEffect(()=>{let e=!0;return t(o).then(t=>{e&&u(t)}).catch(()=>{e&&u(null)}),()=>{e=!1}},[o,t]),(0,I.jsxDEV)(VO,{"aria-label":`Merge ${o.length} draft units`,children:[(0,I.jsxDEV)(HO,{className:`flex-row items-start justify-between gap-3`,children:[(0,I.jsxDEV)(`div`,{className:`grid gap-1.5`,children:[(0,I.jsxDEV)(UO,{className:`flex items-center gap-2 text-base`,children:[(0,I.jsxDEV)(ye,{className:`h-4 w-4`},void 0,!1,{fileName:_L,lineNumber:56,columnNumber:68},this),` Merge `,o.length,` draft units`]},void 0,!0,{fileName:_L,lineNumber:56,columnNumber:11},this),(0,I.jsxDEV)(WO,{children:`Combine the selected units into one. The originals are consumed; their items are pooled into the new unit.`},void 0,!1,{fileName:_L,lineNumber:57,columnNumber:11},this)]},void 0,!0,{fileName:_L,lineNumber:55,columnNumber:9},this),(0,I.jsxDEV)(L,{variant:`ghost`,size:`icon-xs`,"aria-label":`Close merge panel`,disabled:d,onClick:r,children:(0,I.jsxDEV)(Ve,{className:`h-4 w-4`},void 0,!1,{fileName:_L,lineNumber:59,columnNumber:113},this)},void 0,!1,{fileName:_L,lineNumber:59,columnNumber:9},this)]},void 0,!0,{fileName:_L,lineNumber:54,columnNumber:7},this),(0,I.jsxDEV)(GO,{className:`grid gap-3`,children:[(0,I.jsxDEV)(`div`,{className:`grid gap-1`,children:e.map(e=>(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2 rounded-md border border-border p-2 text-xs`,children:[(0,I.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-text-bright`,children:e.title},void 0,!1,{fileName:_L,lineNumber:65,columnNumber:15},this),(0,I.jsxDEV)(Tn,{variant:`outline`,className:`shrink-0 text-2xs`,children:[e.itemCount,` item`,e.itemCount===1?``:`s`]},void 0,!0,{fileName:_L,lineNumber:66,columnNumber:15},this)]},e.unitId,!0,{fileName:_L,lineNumber:64,columnNumber:13},this))},void 0,!1,{fileName:_L,lineNumber:62,columnNumber:9},this),(0,I.jsxDEV)(`label`,{className:`grid gap-1`,children:[(0,I.jsxDEV)(`span`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Merged unit title`},void 0,!1,{fileName:_L,lineNumber:71,columnNumber:11},this),(0,I.jsxDEV)(Tk,{value:s,disabled:d,onChange:e=>c(e.target.value)},void 0,!1,{fileName:_L,lineNumber:72,columnNumber:11},this)]},void 0,!0,{fileName:_L,lineNumber:70,columnNumber:9},this),l&&(0,I.jsxDEV)(dL,{advisory:l},void 0,!1,{fileName:_L,lineNumber:74,columnNumber:22},this),(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2 border-t pt-3`,children:[(0,I.jsxDEV)(L,{disabled:d||!s.trim(),onClick:()=>{s.trim()&&(f(!0),n({unitIds:o,title:s.trim()}).then(e=>{a.push(`Merged ${o.length} units into “${e.unit.title}”.`,`success`),r(),i?.(sT(e.unit.unitId))}).catch(e=>a.push(e instanceof Error?e.message:String(e),`error`)).finally(()=>f(!1)))},children:[d?(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:_L,lineNumber:77,columnNumber:21},this):(0,I.jsxDEV)(ye,{className:`h-4 w-4`},void 0,!1,{fileName:_L,lineNumber:77,columnNumber:35},this),` Merge units`]},void 0,!0,{fileName:_L,lineNumber:76,columnNumber:11},this),(0,I.jsxDEV)(L,{variant:`ghost`,disabled:d,onClick:r,children:`Cancel`},void 0,!1,{fileName:_L,lineNumber:79,columnNumber:11},this)]},void 0,!0,{fileName:_L,lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:_L,lineNumber:61,columnNumber:7},this)]},void 0,!0,{fileName:_L,lineNumber:53,columnNumber:5},this)}var X=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/plans-view.tsx`,yL=sw();function bL({artifacts:e,draftUnits:t,titles:n,onRefresh:r,onUpdateDraftUnit:i,onDeleteDraftUnit:a,onPromoteDraftUnit:o,onMergeDraftUnits:s,onSplitDraftUnit:c,onAdviseMergeDraftUnits:l,onAdviseSplitDraftUnit:u}){let d=qx(),f=$n(),p=hT(),m=d.query.get(`plan`)??``,h=w.useCallback(e=>{d.setQuery(t=>{e?t.set(`plan`,e):t.delete(`plan`)})},[d]),[g,_]=w.useState(!1),[v,y]=w.useState(new Set),[b,x]=w.useState(!1),S=w.useMemo(()=>t.filter(e=>e.status===`draft`).length,[t]),C=w.useCallback(e=>{y(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),T=w.useCallback(()=>{_(!1),x(!1),y(new Set)},[]),ee=w.useMemo(()=>t.filter(e=>v.has(e.unitId)),[t,v]),E=lT(m),D=E===null?null:t.find(e=>e.unitId===E)??null,[te,O]=w.useState(null),ne=te?.unitId===E?te:null,k=E!==null&&D===null,[A,re]=w.useState(null),[ie,j]=w.useState(!1),[ae,oe]=w.useState({}),se=w.useMemo(()=>new Set(Object.values(ae).filter(e=>e.status===`pending`).map(e=>e.session)),[ae]),ce=w.useMemo(()=>e.filter(e=>!e.session||!se.has(e.session)),[e,se]);w.useEffect(()=>{oe(t=>{let n=!1,r={...t};for(let[i,a]of Object.entries(t)){if(a.status!==`pending`)continue;let t=e.find(e=>e.session===a.session);(!t||t.status===`submitted`)&&(delete r[i],n=!0)}return n?r:t})},[e]),w.useEffect(()=>{if(E===null||D===null){O(null);return}let e=!0;return yL.invokeAction(`get-draft-unit`,{unitId:E}).then(t=>{e&&O(t.unit)}).catch(()=>{e&&O(null)}),()=>{e=!1}},[E,D]),w.useEffect(()=>{if(!m||lT(m)!==null){re(null);return}let t=e.find(e=>e.key===m),n=!0;return(async()=>{try{let e=t?.kind===`plan-set`?await yL.invokeAction(`show-session-plan-set`,{planSetId:t.planSetId??``}):await yL.invokeAction(`show-session-plan`,{session:t?.session??m.replace(/^plan:/,``)});n&&re(e)}catch(e){n&&f.push(e instanceof Error?e.message:String(e),`error`)}})(),()=>{n=!1}},[m,e,f]);let le=w.useCallback(e=>{re(t=>EL(t)?{...t,plan:e.plan??t.plan,readiness:e.readiness??t.readiness}:t)},[]),ue=e.find(e=>e.key===m)??null,de=w.useCallback(async t=>{let n=e.find(e=>e.session===t)??ue,i=n?.key??`plan:${t}`,a=n?TL(n):rT(void 0,t);oe(e=>({...e,[i]:{id:i,session:t,title:a,status:`pending`,message:`Handoff is enqueueing in the background…`}})),m===i&&(re(null),h(``));let o;try{o=await yL.invokeAction(`handoff-session-plan`,{session:t})}catch(e){let n=e instanceof Error?e.message:String(e);oe(e=>({...e,[i]:{id:i,session:t,title:a,status:`failed`,message:`${n||`Handoff failed.`} Retry from the restored plan row or enqueue the session plan manually.`}})),f.push(n,`error`);try{await r()}catch(e){f.push(e instanceof Error?e.message:String(e),`error`)}return}if(o.kind===`not-ready`||o.kind===`enqueue-failed`){let e=o.message??o.command??`Handoff failed. The plan remains ready; retry handoff or enqueue it manually.`;oe(n=>({...n,[i]:{id:i,session:t,title:a,status:`failed`,message:e}})),f.push(e,`error`);try{await r()}catch(e){f.push(e instanceof Error?e.message:String(e),`error`)}return}f.push(o.message??o.command??`Handoff prepared.`,`success`);try{await r()}catch(e){f.push(e instanceof Error?e.message:String(e),`error`)}},[e,r,h,ue,m,f]);return(0,I.jsxDEV)(`div`,{className:`grid gap-4 lg:grid-cols-[22rem_minmax(0,1fr)_20rem] lg:items-start`,children:[(0,I.jsxDEV)(`aside`,{className:`grid content-start gap-4`,children:[(0,I.jsxDEV)(VO,{children:[(0,I.jsxDEV)(HO,{className:`flex-row items-start justify-between gap-3`,children:[(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(UO,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(me,{className:`h-4 w-4`},void 0,!1,{fileName:X,lineNumber:171,columnNumber:62},this),` Plans`]},void 0,!0,{fileName:X,lineNumber:171,columnNumber:15},this),(0,I.jsxDEV)(WO,{children:`Session plans and plan sets.`},void 0,!1,{fileName:X,lineNumber:172,columnNumber:15},this)]},void 0,!0,{fileName:X,lineNumber:170,columnNumber:13},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,onClick:()=>j(e=>!e),children:[(0,I.jsxDEV)(ke,{className:`h-4 w-4`},void 0,!1,{fileName:X,lineNumber:174,columnNumber:96},this),` New`]},void 0,!0,{fileName:X,lineNumber:174,columnNumber:13},this)]},void 0,!0,{fileName:X,lineNumber:169,columnNumber:11},this),(0,I.jsxDEV)(GO,{className:`grid gap-2`,children:[ie&&(0,I.jsxDEV)(SL,{onClose:()=>j(!1),onCreated:r},void 0,!1,{fileName:X,lineNumber:177,columnNumber:26},this),t.length>0&&(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`text-2xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Drafts`},void 0,!1,{fileName:X,lineNumber:181,columnNumber:19},this),S>=2&&(g?(0,I.jsxDEV)(`button`,{type:`button`,className:`text-2xs text-muted-foreground hover:text-foreground`,onClick:T,children:`Cancel`},void 0,!1,{fileName:X,lineNumber:184,columnNumber:25},this):(0,I.jsxDEV)(`button`,{type:`button`,className:`inline-flex items-center gap-0.5 text-2xs text-muted-foreground hover:text-foreground`,onClick:()=>_(!0),title:`Select draft units to merge`,children:[(0,I.jsxDEV)(ye,{className:`h-3 w-3`},void 0,!1,{fileName:X,lineNumber:185,columnNumber:216},this),` Merge`]},void 0,!0,{fileName:X,lineNumber:185,columnNumber:25},this))]},void 0,!0,{fileName:X,lineNumber:180,columnNumber:17},this),t.map(e=>{let t=sT(e.unitId),n=v.has(e.unitId),r=g&&e.status===`draft`;return(0,I.jsxDEV)(`div`,{className:`flex items-start gap-2 rounded-md border p-3 transition-colors hover:bg-accent ${m===t&&!g?`border-primary bg-accent`:n?`border-primary bg-primary/10`:`border-border`}`,children:[r&&(0,I.jsxDEV)(qA,{className:`mt-1`,checked:n,"aria-label":`Select ${e.title} to merge`,onChange:()=>C(e.unitId)},void 0,!1,{fileName:X,lineNumber:198,columnNumber:25},this),(0,I.jsxDEV)(`button`,{type:`button`,className:`min-w-0 flex-1 text-left`,onClick:()=>r?C(e.unitId):h(t),children:[(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`truncate font-medium text-text-bright`,children:e.title},void 0,!1,{fileName:X,lineNumber:202,columnNumber:27},this),(0,I.jsxDEV)(Tn,{variant:e.status===`promoted`?`default`:`outline`,children:e.status},void 0,!1,{fileName:X,lineNumber:203,columnNumber:27},this)]},void 0,!0,{fileName:X,lineNumber:201,columnNumber:25},this),(0,I.jsxDEV)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[e.itemCount,` item`,e.itemCount===1?``:`s`,e.sourceRecommendationRef?` · ${e.sourceRecommendationRef}`:``]},void 0,!0,{fileName:X,lineNumber:205,columnNumber:25},this)]},void 0,!0,{fileName:X,lineNumber:200,columnNumber:23},this)]},t,!0,{fileName:X,lineNumber:193,columnNumber:21},this)}),g&&(0,I.jsxDEV)(L,{size:`sm`,disabled:v.size<2,onClick:()=>x(!0),title:v.size<2?`Select at least two draft units.`:`Review and confirm the merge.`,children:[(0,I.jsxDEV)(ye,{className:`h-4 w-4`},void 0,!1,{fileName:X,lineNumber:212,columnNumber:21},this),` Merge `,v.size||``,` selected`]},void 0,!0,{fileName:X,lineNumber:211,columnNumber:19},this),(0,I.jsxDEV)(`span`,{className:`mt-1 text-2xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Plans`},void 0,!1,{fileName:X,lineNumber:215,columnNumber:17},this)]},void 0,!0,{fileName:X,lineNumber:179,columnNumber:15},this),ce.length===0?(0,I.jsxDEV)(Ck,{children:`No planning artifacts found.`},void 0,!1,{fileName:X,lineNumber:219,columnNumber:17},this):ce.map(e=>(0,I.jsxDEV)(`button`,{onClick:()=>h(e.key),className:`rounded-md border p-3 text-left transition-colors hover:bg-accent ${m===e.key?`border-primary bg-accent`:`border-border`}`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`font-medium text-text-bright`,children:TL(e)},void 0,!1,{fileName:X,lineNumber:227,columnNumber:21},this),(0,I.jsxDEV)(Tn,{variant:e.ready?`default`:`outline`,children:e.status??`unknown`},void 0,!1,{fileName:X,lineNumber:228,columnNumber:21},this)]},void 0,!0,{fileName:X,lineNumber:226,columnNumber:19},this),(0,I.jsxDEV)(`div`,{className:`mt-1 flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:e.kind===`plan-set`?`${e.childCount??0} child plans`:e.session},void 0,!1,{fileName:X,lineNumber:231,columnNumber:21},this),(0,I.jsxDEV)(wL,{artifact:e},void 0,!1,{fileName:X,lineNumber:232,columnNumber:21},this),e.lifecycleState===`partial`&&e.partialReasons?.[0]&&(0,I.jsxDEV)(`span`,{className:`text-2xs text-muted-foreground`,children:e.partialReasons[0].message},void 0,!1,{fileName:X,lineNumber:233,columnNumber:95},this),(0,I.jsxDEV)(`span`,{className:`text-2xs text-muted-foreground`,children:(0,I.jsxDEV)(GA,{value:VA(e),prefix:`Updated`},void 0,!1,{fileName:X,lineNumber:234,columnNumber:70},this)},void 0,!1,{fileName:X,lineNumber:234,columnNumber:21},this)]},void 0,!0,{fileName:X,lineNumber:230,columnNumber:19},this)]},e.key,!0,{fileName:X,lineNumber:221,columnNumber:17},this))]},void 0,!0,{fileName:X,lineNumber:176,columnNumber:11},this)]},void 0,!0,{fileName:X,lineNumber:168,columnNumber:9},this),(0,I.jsxDEV)(xL,{handoffs:Object.values(ae)},void 0,!1,{fileName:X,lineNumber:240,columnNumber:9},this)]},void 0,!0,{fileName:X,lineNumber:167,columnNumber:7},this),EL(A)&&A.plan&&!b&&!ne&&!k?(0,I.jsxDEV)(iL,{detail:{...A,plan:A.plan},artifact:ue,titles:n,onApply:le,onRefresh:r,onHandoff:de,onDeleted:async()=>{re(null),h(``),await r()},onClose:()=>{re(null),h(``)}},void 0,!1,{fileName:X,lineNumber:244,columnNumber:9},this):(0,I.jsxDEV)(`section`,{className:`min-w-0 lg:col-span-2`,children:b&&ee.length>=2?(0,I.jsxDEV)(vL,{units:ee,onAdvise:l,onMerge:s,onClose:T,onOpenUnit:e=>{T(),h(e)}},void 0,!1,{fileName:X,lineNumber:261,columnNumber:15},this):ne?(0,I.jsxDEV)(mL,{unit:ne,titles:n,onUpdate:i,onDelete:async e=>{await a(e),h(``)},onPromote:o,onSplit:c,onAdviseSplit:u,onOpenItem:p.openItem,onOpenPlan:h},ne.unitId,!1,{fileName:X,lineNumber:269,columnNumber:15},this):k?(0,I.jsxDEV)(VO,{children:[(0,I.jsxDEV)(HO,{children:[(0,I.jsxDEV)(UO,{children:`Draft not found`},void 0,!1,{fileName:X,lineNumber:284,columnNumber:19},this),(0,I.jsxDEV)(WO,{children:`This draft plan unit no longer exists. It may have been deleted or promoted.`},void 0,!1,{fileName:X,lineNumber:285,columnNumber:19},this)]},void 0,!0,{fileName:X,lineNumber:283,columnNumber:17},this),(0,I.jsxDEV)(GO,{children:(0,I.jsxDEV)(L,{variant:`outline`,size:`sm`,onClick:()=>h(``),children:`Clear selection`},void 0,!1,{fileName:X,lineNumber:288,columnNumber:19},this)},void 0,!1,{fileName:X,lineNumber:287,columnNumber:17},this)]},void 0,!0,{fileName:X,lineNumber:282,columnNumber:15},this):A?(0,I.jsxDEV)(oL,{detail:A},void 0,!1,{fileName:X,lineNumber:292,columnNumber:17},this):(0,I.jsxDEV)(VO,{children:(0,I.jsxDEV)(HO,{children:[(0,I.jsxDEV)(UO,{children:`Details`},void 0,!1,{fileName:X,lineNumber:293,columnNumber:35},this),(0,I.jsxDEV)(WO,{children:`Select an artifact to inspect it.`},void 0,!1,{fileName:X,lineNumber:293,columnNumber:65},this)]},void 0,!0,{fileName:X,lineNumber:293,columnNumber:23},this)},void 0,!1,{fileName:X,lineNumber:293,columnNumber:17},this)},void 0,!1,{fileName:X,lineNumber:259,columnNumber:9},this)]},void 0,!0,{fileName:X,lineNumber:166,columnNumber:5},this)}function xL({handoffs:e}){return e.length===0?null:(0,I.jsxDEV)(VO,{"aria-label":`Planning activity handoff status`,children:[(0,I.jsxDEV)(HO,{children:[(0,I.jsxDEV)(UO,{className:`text-sm`,children:`Planning activity`},void 0,!1,{fileName:X,lineNumber:305,columnNumber:9},this),(0,I.jsxDEV)(WO,{children:`Recent plan handoff status.`},void 0,!1,{fileName:X,lineNumber:306,columnNumber:9},this)]},void 0,!0,{fileName:X,lineNumber:304,columnNumber:7},this),(0,I.jsxDEV)(GO,{className:`grid gap-2 text-xs`,children:e.map(e=>(0,I.jsxDEV)(`div`,{className:`rounded border p-2 ${e.status===`failed`?`border-destructive/40 bg-destructive/10`:`border-primary/30 bg-primary/10`}`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2 font-medium text-text-bright`,children:[e.status===`failed`&&(0,I.jsxDEV)(ze,{className:`h-3.5 w-3.5 text-destructive-foreground`},void 0,!1,{fileName:X,lineNumber:312,columnNumber:45},this),(0,I.jsxDEV)(`span`,{children:e.title},void 0,!1,{fileName:X,lineNumber:313,columnNumber:15},this),(0,I.jsxDEV)(nk,{tone:e.status===`failed`?`danger`:`progress`,children:e.status===`failed`?`handoff failed`:`handoff pending`},void 0,!1,{fileName:X,lineNumber:314,columnNumber:15},this)]},void 0,!0,{fileName:X,lineNumber:311,columnNumber:13},this),(0,I.jsxDEV)(`p`,{className:`mt-1 text-muted-foreground`,children:e.message},void 0,!1,{fileName:X,lineNumber:316,columnNumber:13},this),e.status===`failed`&&(0,I.jsxDEV)(`p`,{className:`mt-1 text-muted-foreground`,children:`The plan row is restored. Retry Handoff after checking the message above, or enqueue the session plan manually.`},void 0,!1,{fileName:X,lineNumber:317,columnNumber:43},this)]},e.id,!0,{fileName:X,lineNumber:310,columnNumber:11},this))},void 0,!1,{fileName:X,lineNumber:308,columnNumber:7},this)]},void 0,!0,{fileName:X,lineNumber:303,columnNumber:5},this)}function SL({onClose:e,onCreated:t}){let n=$n();async function r(r){r.preventDefault();let i=new FormData(r.currentTarget),a=String(i.get(`session`)??``).trim(),o=String(i.get(`topic`)??``).trim();if(!a||!o){n.push(`Session and topic are required.`,`error`);return}try{await yL.invokeAction(`create-session-plan`,{session:a,topic:o,planningType:String(i.get(`planningType`)??`feature`),planningDepth:String(i.get(`planningDepth`)??`focused`)}),n.push(`Created ${a}.`,`success`),e(),await t()}catch(e){n.push(e instanceof Error?e.message:String(e),`error`)}}return(0,I.jsxDEV)(`form`,{className:`grid gap-2 rounded-md border bg-background/50 p-3`,onSubmit:e=>void r(e),children:[(0,I.jsxDEV)(Tk,{name:`session`,placeholder:`session-id`,required:!0},void 0,!1,{fileName:X,lineNumber:349,columnNumber:7},this),(0,I.jsxDEV)(Tk,{name:`topic`,placeholder:`Topic`,required:!0},void 0,!1,{fileName:X,lineNumber:350,columnNumber:7},this),(0,I.jsxDEV)(mA,{name:`planningType`,defaultValue:`feature`,children:[(0,I.jsxDEV)(`option`,{value:`feature`,children:`feature`},void 0,!1,{fileName:X,lineNumber:351,columnNumber:58},this),(0,I.jsxDEV)(`option`,{value:`bugfix`,children:`bugfix`},void 0,!1,{fileName:X,lineNumber:351,columnNumber:98},this),(0,I.jsxDEV)(`option`,{value:`architecture`,children:`architecture`},void 0,!1,{fileName:X,lineNumber:351,columnNumber:136},this)]},void 0,!0,{fileName:X,lineNumber:351,columnNumber:7},this),(0,I.jsxDEV)(mA,{name:`planningDepth`,defaultValue:`focused`,children:[(0,I.jsxDEV)(`option`,{value:`quick`,children:`quick`},void 0,!1,{fileName:X,lineNumber:352,columnNumber:59},this),(0,I.jsxDEV)(`option`,{value:`focused`,children:`focused`},void 0,!1,{fileName:X,lineNumber:352,columnNumber:95},this),(0,I.jsxDEV)(`option`,{value:`deep`,children:`deep`},void 0,!1,{fileName:X,lineNumber:352,columnNumber:135},this)]},void 0,!0,{fileName:X,lineNumber:352,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`flex gap-2`,children:[(0,I.jsxDEV)(L,{type:`submit`,variant:`secondary`,size:`sm`,children:`Create`},void 0,!1,{fileName:X,lineNumber:354,columnNumber:9},this),(0,I.jsxDEV)(L,{type:`button`,variant:`ghost`,size:`sm`,onClick:e,children:`Cancel`},void 0,!1,{fileName:X,lineNumber:355,columnNumber:9},this)]},void 0,!0,{fileName:X,lineNumber:353,columnNumber:7},this)]},void 0,!0,{fileName:X,lineNumber:348,columnNumber:5},this)}var CL={queue:{label:`Queued`,tone:`info`},queued:{label:`Queued`,tone:`info`},build:{label:`Building`,tone:`progress`},building:{label:`Building`,tone:`progress`},active:{label:`Building`,tone:`progress`},"pr-open":{label:`PR open`,tone:`warn`},partial:{label:`Partial`,tone:`warn`},failed:{label:`Failed`,tone:`danger`},merged:{label:`Shipped`,tone:`done`},shipped:{label:`Shipped`,tone:`done`},landed:{label:`Shipped`,tone:`done`}};function wL({artifact:e}){let t=CL[(e.lifecycleState??``).toLowerCase()];return t?(0,I.jsxDEV)(nk,{tone:t.tone,children:t.label},void 0,!1,{fileName:X,lineNumber:383,columnNumber:10},this):null}function TL(e){return e.kind===`plan-set`?e.title||e.planSetId||e.key:rT(e.title,e.session??e.key)}function EL(e){return!!(e&&`plan`in e)}var DL=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/planning-task-activity.tsx`;function OL(e){return e&&e.length>0?e[e.length-1]:void 0}function kL({timestamp:e}){return(0,I.jsxDEV)(`time`,{dateTime:e,title:e,children:FA(e)??e},void 0,!1,{fileName:DL,lineNumber:10,columnNumber:10},this)}function AL({activityLog:e}){let t=OL(e);return t?(0,I.jsxDEV)(`p`,{className:`mt-2 min-w-0 break-words text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{className:`font-medium text-foreground`,children:`Latest activity:`},void 0,!1,{fileName:DL,lineNumber:18,columnNumber:7},this),` `,(0,I.jsxDEV)(`span`,{children:t.message},void 0,!1,{fileName:DL,lineNumber:19,columnNumber:7},this),` `,(0,I.jsxDEV)(`span`,{className:`whitespace-nowrap`,children:[`· `,(0,I.jsxDEV)(kL,{timestamp:t.timestamp},void 0,!1,{fileName:DL,lineNumber:20,columnNumber:45},this)]},void 0,!0,{fileName:DL,lineNumber:20,columnNumber:7},this)]},void 0,!0,{fileName:DL,lineNumber:17,columnNumber:5},this):null}function jL({activityLog:e}){let t=OL(e);return!t||!e||e.length===0?null:(0,I.jsxDEV)(`section`,{className:`mt-3 rounded-md border border-border bg-background/60 p-3 text-sm`,"aria-label":`Recent planning task activity`,children:[(0,I.jsxDEV)(`h3`,{className:`text-sm font-semibold text-foreground`,children:`Recent activity`},void 0,!1,{fileName:DL,lineNumber:30,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-2 rounded-md border border-primary/30 bg-primary/10 p-2 text-xs`,children:[(0,I.jsxDEV)(`div`,{className:`font-medium text-text-bright`,children:`Latest activity`},void 0,!1,{fileName:DL,lineNumber:32,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`mt-1 break-words text-foreground`,children:t.message},void 0,!1,{fileName:DL,lineNumber:33,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`mt-1 text-muted-foreground`,children:(0,I.jsxDEV)(kL,{timestamp:t.timestamp},void 0,!1,{fileName:DL,lineNumber:34,columnNumber:53},this)},void 0,!1,{fileName:DL,lineNumber:34,columnNumber:9},this)]},void 0,!0,{fileName:DL,lineNumber:31,columnNumber:7},this),(0,I.jsxDEV)(`ol`,{className:`mt-3 grid gap-2 text-xs`,children:e.map((e,t)=>(0,I.jsxDEV)(`li`,{className:`grid gap-0.5 rounded border border-border/70 bg-muted/20 p-2`,children:[(0,I.jsxDEV)(`span`,{className:`break-words text-foreground`,children:e.message},void 0,!1,{fileName:DL,lineNumber:39,columnNumber:13},this),(0,I.jsxDEV)(`span`,{className:`text-muted-foreground`,children:(0,I.jsxDEV)(kL,{timestamp:e.timestamp},void 0,!1,{fileName:DL,lineNumber:40,columnNumber:53},this)},void 0,!1,{fileName:DL,lineNumber:40,columnNumber:13},this)]},`${e.timestamp}-${t}`,!0,{fileName:DL,lineNumber:38,columnNumber:11},this))},void 0,!1,{fileName:DL,lineNumber:36,columnNumber:7},this)]},void 0,!0,{fileName:DL,lineNumber:29,columnNumber:5},this)}var ML={status:`Status`,priority:`Priority`,tags:`Tags`,depends_on:`Depends on`,epic:`Epic`,last_checked:`Last checked`,stale_after:`Stale after`};function NL(e,t){return{itemChanges:e.itemChanges.length,epicChanges:e.epicChanges.length,noOpRechecks:e.noOpRechecks.length,skipped:e.skipped.length,needsInput:e.needsInput.length,generatedRecommendations:zL(t?.effectiveRecommendations).total}}function PL(e,t){let n=e===`epic`?`Epic`:e===`item`?`Item`:`Record`;return t?`${n} ${t}`:n}function FL(e){return e?Object.entries(e).map(([e,t])=>({label:ML[e]??e,value:lR(t)})):[]}function IL(e){return e===`append`?`Append section content`:e===`replace`?`Replace section content`:e}function LL(e){return e?e.length<=16?e:`${e.slice(0,8)}…${e.slice(-8)}`:`unknown`}function RL(e){let t=e.kind===`epic`?`Epic`:`Item`,n=e.status?` · status ${e.status}`:``;return`${e.path}: ${t} ${e.id} (${e.reason}${n})`}function zL(e){let t=e?.activeWork?.length??0,n=e?.readyCandidates?.length??0,r=e?.recommendedNextSequence.length??0,i=e?.safeParallelizableGroups.length??0,a=e?.blockedChains?.length??0;return{activeWork:t,readyCandidates:n,nextSequence:r,safeParallelGroups:i,blockedChains:a,total:t+n+r+i+a}}function BL(e){let t=e?.coverage;return t?[{label:`Audited items`,value:String(t.auditedItemCount)},JL(`Current-state files`,t.currentStateFileCount),JL(`Git commits`,t.gitHistoryCommitCount),JL(`Pull requests`,t.pullRequestCount)].filter(e=>!!e):[]}function VL(e){let t=e?.caps;return t?[JL(`File scan cap`,t.fileScanCount),YL(`File byte cap`,t.fileBytes),JL(`Evidence per item cap`,t.evidencePerItem),JL(`Paths per category cap`,t.pathsPerCategory),YL(`Excerpt byte cap`,t.excerptBytes),JL(`Diagnostic cap`,t.diagnosticCount),JL(`Git commit scan cap`,t.gitCommitScanCount),JL(`PR enrichment cap`,t.prEnrichmentCount)].filter(e=>!!e):[]}function HL(e){let t=e?.settings;return t?[JL(`Item audit concurrency`,t.itemAuditConcurrency),JL(`Maximum item audit concurrency`,t.maxItemAuditConcurrency),t.closureAuthority?{label:`Closure authority`,value:t.closureAuthority===`current-source-only`?`current source only`:t.closureAuthority}:void 0].filter(e=>!!e):[]}function UL(e,t){if(t.kind!==`item`||!t.id)return[];let n=e?.itemSummaries?.find(e=>e.itemId===t.id),r=t.metadata?.status===`shipped`||t.metadata?.status===`superseded`?t.metadata.status:void 0,i=r===void 0?n?.evidence??[]:(n?.closureCandidates??[]).filter(e=>WL(e,r));if(i.length===0)return[];let a=(t.evidence??[]).join(`
379
+ `).toLowerCase();return i.filter(KL).filter(e=>qL(e,a)).map(e=>({source:e.source.trim(),confidence:e.confidence.trim(),path:e.path??e.citations?.find(e=>e.path)?.path,excerpt:e.excerpt??e.citations?.find(e=>e.excerpt)?.excerpt,matchedBy:e.matchedBy??[],citations:e.citations}))}function WL(e,t){return e.intent===t&&e.confidence.trim().toLowerCase()===`strong`&&(e.evidenceSource===`current-source`||e.source===`current-source`)}function GL(e){return e.split(`-`).filter(Boolean).map(e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(` `)}function KL(e){return e.source.trim().length>0&&e.confidence.trim().length>0}function qL(e,t){if(t.length===0)return!0;let n=e.excerpt?.toLowerCase();if(n&&t.includes(n.slice(0,Math.min(n.length,80)))||e.path&&t.includes(e.path.toLowerCase())||e.evidence&&t.includes(e.evidence.toLowerCase().slice(0,Math.min(e.evidence.length,80)))||e.citation&&t.includes(e.citation.toLowerCase()))return!0;for(let n of e.citations??[])if(n.path&&t.includes(n.path.toLowerCase())||n.excerpt&&t.includes(n.excerpt.toLowerCase().slice(0,Math.min(n.excerpt.length,80))))return!0;return t.includes(e.source.toLowerCase())}function JL(e,t){return t===void 0?void 0:{label:e,value:t.toLocaleString()}}function YL(e,t){if(t!==void 0)return t<1024?{label:e,value:`${t} B`}:t<1024*1024?{label:e,value:`${(t/1024).toFixed(1)} KiB`}:{label:e,value:`${(t/(1024*1024)).toFixed(1)} MiB`}}var XL=`Shipped evidence: current source`,ZL=`Superseded evidence: current source`,QL=`Shipped evidence: lifecycle trace`,$L=`Shipped evidence: inferred from git/PR history`,eR=`Superseded evidence: lifecycle trace`,tR=`Superseded evidence: inferred from git/PR history`,nR=`Ambiguous shipped candidate: needs input`,rR=`Ambiguous superseded candidate: needs input`,iR=[/\bPR\s+#(\d{1,10})\b/gi,/(?:^|[^\w/])#(\d{1,10})\b/g,/\/pull\/(\d{1,10})\b/gi],aR=/\b(?:merge\s+commit|commit|git)\s+([a-f0-9]{7,40})\b/gi;function oR(e){let t=new Set,n=new Set,r=new Set;for(let i of e)if(i){i.includes(XL)&&t.add(XL),i.includes(ZL)&&t.add(ZL),i.includes(QL)&&t.add(QL),i.includes($L)&&t.add($L),i.includes(eR)&&t.add(eR),i.includes(tR)&&t.add(tR),i.includes(nR)&&t.add(nR),i.includes(rR)&&t.add(rR);for(let e of iR){e.lastIndex=0;for(let t of i.matchAll(e))t[1]&&n.add(`#${t[1]}`)}aR.lastIndex=0;for(let e of i.matchAll(aR))e[1]&&r.add(e[1])}return{labels:[XL,ZL,QL,$L,eR,tR,nR,rR].filter(e=>t.has(e)),prIds:[...n],commitIds:[...r]}}function sR(e){return e?.effectiveRecommendations}function cR(e){return{removedItemIds:[...e?.removed.itemIds??[]].sort(),removedEpicIds:[...e?.removed.epicIds??[]].sort(),repositioned:[...e?.repositioned??[]].sort((e,t)=>e.itemId.localeCompare(t.itemId)||e.from.localeCompare(t.from)||e.to.localeCompare(t.to)).map(e=>`${e.itemId}: ${e.from} → ${e.to}`)}}function lR(e){return Array.isArray(e)?e.join(`, `):e===null?`none`:e===void 0?``:String(e)}var uR=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/components/recommendation-freshness.tsx`;function dR(e){return e?e.length<=16?e:`${e.slice(0,8)}…${e.slice(-8)}`:`unknown`}function fR(e,t){return e?.state??t?.state??null}function pR({freshness:e,status:t,prefix:n}){let r=fR(e,t);return r?(0,I.jsxDEV)(nk,{tone:$O(r),className:`font-normal uppercase tracking-wide`,children:n?`${n} ${r}`:r},void 0,!1,{fileName:uR,lineNumber:18,columnNumber:10},this):null}function mR({freshness:e,status:t}){if(e)return(0,I.jsxDEV)(`p`,{className:`mt-0.5 text-2xs text-muted-foreground`,children:[e.reason,(0,I.jsxDEV)(hR,{label:`stored`,value:e.storedSourceFingerprint},void 0,!1,{fileName:uR,lineNumber:26,columnNumber:9},this),(0,I.jsxDEV)(hR,{label:`compared`,value:e.comparedSourceFingerprint},void 0,!1,{fileName:uR,lineNumber:27,columnNumber:9},this),e.baselineTaskId&&(0,I.jsxDEV)(I.Fragment,{children:[` · baseline task `,(0,I.jsxDEV)(`span`,{title:e.baselineTaskId,children:e.baselineTaskId},void 0,!1,{fileName:uR,lineNumber:28,columnNumber:57},this)]},void 0,!0,{fileName:uR,lineNumber:28,columnNumber:38},this)]},void 0,!0,{fileName:uR,lineNumber:24,columnNumber:7},this);if(!t)return null;let n=[];return t.sourceFingerprint&&n.push((0,I.jsxDEV)(hR,{label:`source`,value:t.sourceFingerprint},`source`,!1,{fileName:uR,lineNumber:34,columnNumber:44},this)),t.lastAppliedSourceFingerprint&&n.push((0,I.jsxDEV)(hR,{label:`applied`,value:t.lastAppliedSourceFingerprint},`applied`,!1,{fileName:uR,lineNumber:35,columnNumber:55},this)),n.length>0?(0,I.jsxDEV)(`p`,{className:`mt-0.5 text-2xs text-muted-foreground`,children:n},void 0,!1,{fileName:uR,lineNumber:36,columnNumber:29},this):null}function hR({label:e,value:t}){return t?(0,I.jsxDEV)(I.Fragment,{children:[` · `,e,` `,(0,I.jsxDEV)(`span`,{title:t,children:dR(t)},void 0,!1,{fileName:uR,lineNumber:41,columnNumber:23},this)]},void 0,!0,{fileName:uR,lineNumber:41,columnNumber:10},this):null}var gR=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/backlog-curation-full-audit-panel.tsx`;function _R({audit:e}){if(!e)return null;let t=BL(e),n=VL(e),r=HL(e),i=[...e.diagnostics??[]].sort((e,t)=>SR(e.severity)-SR(t.severity)||e.code.localeCompare(t.code)),a=[...e.itemSummaries??[]].sort((e,t)=>e.itemId.localeCompare(t.itemId));return(0,I.jsxDEV)(gA,{title:`Analysis metadata`,className:`gap-2`,children:[e.scope&&(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:[`Scope: `,e.scope.openItemCount??e.scope.itemIds.length,` open item`,(e.scope.openItemCount??e.scope.itemIds.length)===1?``:`s`,e.scope.itemIds.length>0?` · ${e.scope.itemIds.join(`, `)}`:``]},void 0,!0,{fileName:gR,lineNumber:16,columnNumber:23},this),t.length>0&&(0,I.jsxDEV)(xR,{title:`Coverage`,rows:t},void 0,!1,{fileName:gR,lineNumber:17,columnNumber:31},this),r.length>0&&(0,I.jsxDEV)(xR,{title:`Concurrency and authority`,rows:r},void 0,!1,{fileName:gR,lineNumber:18,columnNumber:31},this),n.length>0&&(0,I.jsxDEV)(xR,{title:`Caps`,rows:n},void 0,!1,{fileName:gR,lineNumber:19,columnNumber:27},this),i.length>0&&(0,I.jsxDEV)(`div`,{className:`grid gap-1 text-xs`,children:[(0,I.jsxDEV)(`p`,{className:`font-medium text-foreground`,children:`Diagnostics`},void 0,!1,{fileName:gR,lineNumber:22,columnNumber:11},this),(0,I.jsxDEV)(`ul`,{className:`grid gap-1 text-muted-foreground`,children:i.map(e=>(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(`span`,{className:e.severity===`warning`?`text-[color:var(--prio-medium)]`:`text-foreground`,children:e.severity},void 0,!1,{fileName:gR,lineNumber:26,columnNumber:17},this),` `,(0,I.jsxDEV)(`span`,{className:`font-mono`,children:e.code},void 0,!1,{fileName:gR,lineNumber:26,columnNumber:154},this),e.message?`: ${e.message}`:``,e.path?` · ${e.path}`:``]},`${e.severity}:${e.code}:${e.path??``}:${e.message??``}`,!0,{fileName:gR,lineNumber:25,columnNumber:15},this))},void 0,!1,{fileName:gR,lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:gR,lineNumber:21,columnNumber:9},this),a.length>0&&(0,I.jsxDEV)(`details`,{className:`rounded border border-border p-2`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-xs text-muted-foreground`,children:[a.length,` audited item summaries`]},void 0,!0,{fileName:gR,lineNumber:34,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-2 text-xs text-muted-foreground`,children:a.map(e=>(0,I.jsxDEV)(`div`,{className:`grid gap-1 rounded border border-border p-2`,children:[(0,I.jsxDEV)(`p`,{children:[(0,I.jsxDEV)(`span`,{className:`font-mono text-foreground`,children:e.itemId},void 0,!1,{fileName:gR,lineNumber:38,columnNumber:20},this),` · `,e.candidateIntent,e.sourceFirstResult?.intent?` · result ${e.sourceFirstResult.intent}`:``,e.confidence?` · confidence ${e.confidence}`:``,e.evidenceCount===void 0?``:` · ${e.evidenceCount} evidence`]},void 0,!0,{fileName:gR,lineNumber:38,columnNumber:17},this),e.sourceFirstResult?.rationale&&(0,I.jsxDEV)(`p`,{children:e.sourceFirstResult.rationale},void 0,!1,{fileName:gR,lineNumber:39,columnNumber:55},this),(0,I.jsxDEV)(yR,{title:`Current-source citations`,citations:e.sourceFirstResult?.citations??e.closureCandidates?.flatMap(e=>e.citations??[])??[]},void 0,!1,{fileName:gR,lineNumber:40,columnNumber:17},this),(0,I.jsxDEV)(bR,{hints:e.historicalHints??e.sourceFirstResult?.historicalHints??[]},void 0,!1,{fileName:gR,lineNumber:41,columnNumber:17},this),e.sourceFirstResult?.diagnostics&&e.sourceFirstResult.diagnostics.length>0&&(0,I.jsxDEV)(`ul`,{children:e.sourceFirstResult.diagnostics.map(e=>(0,I.jsxDEV)(`li`,{children:[`diagnostic `,e.severity,` · `,e.code,e.path?` · ${e.path}`:``]},`${e.code}:${e.path??``}`,!0,{fileName:gR,lineNumber:42,columnNumber:166},this))},void 0,!1,{fileName:gR,lineNumber:42,columnNumber:106},this)]},e.itemId,!0,{fileName:gR,lineNumber:37,columnNumber:15},this))},void 0,!1,{fileName:gR,lineNumber:35,columnNumber:11},this)]},void 0,!0,{fileName:gR,lineNumber:33,columnNumber:9},this)]},void 0,!0,{fileName:gR,lineNumber:15,columnNumber:5},this)}function vR({evidence:e}){return e.length===0?null:(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:e.map((e,t)=>(0,I.jsxDEV)(`span`,{className:`rounded border border-primary/30 bg-primary/10 px-1.5 py-0.5 text-text-bright`,children:[GL(e.source),` · `,e.confidence,e.path?` · ${e.path}`:``]},`${e.source}:${e.confidence}:${e.path??``}:${t}`,!0,{fileName:gR,lineNumber:56,columnNumber:39},this))},void 0,!1,{fileName:gR,lineNumber:55,columnNumber:5},this)}function yR({title:e,citations:t}){let n=t.filter(e=>e.path||e.excerpt);return n.length===0?null:(0,I.jsxDEV)(`ul`,{className:`grid gap-0.5`,children:[(0,I.jsxDEV)(`li`,{className:`font-medium text-foreground`,children:e},void 0,!1,{fileName:gR,lineNumber:64,columnNumber:39},this),n.map((e,t)=>(0,I.jsxDEV)(`li`,{children:[e.kind?`${e.kind}: `:``,e.path??`current source`,e.excerpt?` — ${e.excerpt}`:``]},`${e.path??``}:${e.excerpt??``}:${t}`,!0,{fileName:gR,lineNumber:64,columnNumber:133},this))]},void 0,!0,{fileName:gR,lineNumber:64,columnNumber:10},this)}function bR({hints:e}){return e.length===0?null:(0,I.jsxDEV)(`ul`,{className:`grid gap-0.5`,children:[(0,I.jsxDEV)(`li`,{className:`font-medium text-foreground`,children:`Historical navigation hints (not closure evidence)`},void 0,!1,{fileName:gR,lineNumber:69,columnNumber:39},this),e.map((e,t)=>(0,I.jsxDEV)(`li`,{children:[GL(e.source??`historical`),` · `,e.intent??`hint`,e.confidence?` · ${e.confidence}`:``,e.path?` · ${e.path}`:``,e.citation??e.evidence?` — ${e.citation??e.evidence}`:``]},`${e.source??``}:${e.citation??e.evidence??``}:${t}`,!0,{fileName:gR,lineNumber:69,columnNumber:166},this))]},void 0,!0,{fileName:gR,lineNumber:69,columnNumber:10},this)}function xR({title:e,rows:t}){return(0,I.jsxDEV)(`div`,{className:`grid gap-1 text-xs`,children:[(0,I.jsxDEV)(`p`,{className:`font-medium text-foreground`,children:e},void 0,!1,{fileName:gR,lineNumber:75,columnNumber:7},this),(0,I.jsxDEV)(`dl`,{className:`grid gap-1`,children:t.map(e=>(0,I.jsxDEV)(`div`,{className:`grid grid-cols-[10rem_1fr] gap-2`,children:[(0,I.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:e.label},void 0,!1,{fileName:gR,lineNumber:77,columnNumber:94},this),(0,I.jsxDEV)(`dd`,{className:`text-foreground`,children:e.value},void 0,!1,{fileName:gR,lineNumber:77,columnNumber:148},this)]},e.label,!0,{fileName:gR,lineNumber:77,columnNumber:28},this))},void 0,!1,{fileName:gR,lineNumber:76,columnNumber:7},this)]},void 0,!0,{fileName:gR,lineNumber:74,columnNumber:5},this)}function SR(e){return e===`warning`?0:1}var CR=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/backlog-curation-git-delta-panel.tsx`;function wR(e){return e?e.length<=12?e:e.slice(0,12):`unknown`}function TR(e=[]){return[...e].sort((e,t)=>{let n=OR(e.severity)-OR(t.severity);return n===0?`${e.code}\u0000${e.message??``}\u0000${e.commit??``}`.localeCompare(`${t.code}\u0000${t.message??``}\u0000${t.commit??``}`):n})}function ER({gitDelta:e}){if(!e)return null;let t=TR(e.diagnostics),n=kR(e.affectedItemCandidates),r=e.caps;return(0,I.jsxDEV)(gA,{title:`Delta git diagnostics`,className:`gap-1.5`,children:[(0,I.jsxDEV)(`div`,{className:`grid gap-1 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`p`,{children:[`Baseline `,(0,I.jsxDEV)(DR,{value:e.baseline?.commit??void 0},void 0,!1,{fileName:CR,lineNumber:28,columnNumber:20},this),e.baseline?.time?` · ${e.baseline.time}`:e.baseline?.generatedAt?` · ${e.baseline.generatedAt}`:``,e.baseline?.sourceFingerprint?(0,I.jsxDEV)(I.Fragment,{children:[` · source `,(0,I.jsxDEV)(`span`,{title:e.baseline.sourceFingerprint,children:dR(e.baseline.sourceFingerprint)},void 0,!1,{fileName:CR,lineNumber:28,columnNumber:263},this)]},void 0,!0,{fileName:CR,lineNumber:28,columnNumber:251},this):null]},void 0,!0,{fileName:CR,lineNumber:27,columnNumber:9},this),(0,I.jsxDEV)(`p`,{children:[`Current HEAD `,(0,I.jsxDEV)(DR,{value:e.currentHead?.commit},void 0,!1,{fileName:CR,lineNumber:31,columnNumber:24},this),e.currentHead?.time?` · ${e.currentHead.time}`:e.currentHead?.generatedAt?` · ${e.currentHead.generatedAt}`:``,e.currentHead?.sourceFingerprint?(0,I.jsxDEV)(I.Fragment,{children:[` · source `,(0,I.jsxDEV)(`span`,{title:e.currentHead.sourceFingerprint,children:dR(e.currentHead.sourceFingerprint)},void 0,!1,{fileName:CR,lineNumber:31,columnNumber:272},this)]},void 0,!0,{fileName:CR,lineNumber:31,columnNumber:260},this):null]},void 0,!0,{fileName:CR,lineNumber:30,columnNumber:9},this),(0,I.jsxDEV)(`p`,{children:[`Delta coverage `,e.coverage?.kind??`unknown`,e.coverage?.message?` · ${e.coverage.message}`:``]},void 0,!0,{fileName:CR,lineNumber:33,columnNumber:9},this),(0,I.jsxDEV)(`p`,{children:[`Scanned commits: `,e.scannedCommitCount??e.scannedCommits?.length??0,r?` · caps ${AR(r)}`:``]},void 0,!0,{fileName:CR,lineNumber:34,columnNumber:9},this),e.affectedItemCandidates&&(0,I.jsxDEV)(`p`,{children:[`Affected candidates: `,n.total,n.ambiguousShipped>0?` · ambiguous shipped ${n.ambiguousShipped}`:``,n.ambiguousSuperseded>0?` · ambiguous superseded ${n.ambiguousSuperseded}`:``]},void 0,!0,{fileName:CR,lineNumber:35,columnNumber:45},this)]},void 0,!0,{fileName:CR,lineNumber:26,columnNumber:7},this),t.length>0&&(0,I.jsxDEV)(`ul`,{className:`grid gap-1 text-xs text-muted-foreground`,children:t.map(e=>(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(`span`,{className:e.severity===`warning`?`text-[color:var(--prio-medium)]`:`text-foreground`,children:e.severity},void 0,!1,{fileName:CR,lineNumber:41,columnNumber:15},this),` `,(0,I.jsxDEV)(`span`,{className:`font-mono`,children:e.code},void 0,!1,{fileName:CR,lineNumber:41,columnNumber:152},this),e.message?`: ${e.message}`:``,e.commit?(0,I.jsxDEV)(I.Fragment,{children:[` · commit `,(0,I.jsxDEV)(DR,{value:e.commit},void 0,!1,{fileName:CR,lineNumber:41,columnNumber:290},this)]},void 0,!0,{fileName:CR,lineNumber:41,columnNumber:278},this):null]},`${e.severity}:${e.code}:${e.message??``}:${e.commit??``}`,!0,{fileName:CR,lineNumber:40,columnNumber:13},this))},void 0,!1,{fileName:CR,lineNumber:38,columnNumber:9},this)]},void 0,!0,{fileName:CR,lineNumber:25,columnNumber:5},this)}function DR({value:e}){return(0,I.jsxDEV)(`span`,{title:e,className:`font-mono`,children:wR(e)},void 0,!1,{fileName:CR,lineNumber:51,columnNumber:10},this)}function OR(e){return e===`warning`?0:1}function kR(e){return(e??[]).reduce((e,t)=>(e.total+=1,t.intent===`ambiguous-shipped`&&(e.ambiguousShipped+=1),t.intent===`ambiguous-superseded`&&(e.ambiguousSuperseded+=1),e),{total:0,ambiguousShipped:0,ambiguousSuperseded:0})}function AR(e){return[e.commitScanCount===void 0?void 0:`${e.commitScanCount} commits`,e.changedPathCount===void 0?void 0:`${e.changedPathCount} paths`,e.excerptCount===void 0?void 0:`${e.excerptCount} excerpts`].filter(Boolean).join(`, `)}var Z=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/backlog-curation-preview.tsx`;function jR({taskId:e,entry:t,draft:n,recommendations:r,curationPreview:i,busy:a,onApply:o,onRedraft:s}){let[c,l]=w.useState(!1),[u,d]=w.useState(``),[f,p]=w.useState(i??null),[m,h]=w.useState(i===void 0),g=i??f??void 0,_=g?.recommendationProjection,v=sR(_),y=cR(_),b=NL(n,_),x=!!t.appliedAt,S=n.summary.length>0||n.itemChanges.length>0||n.epicChanges.length>0||n.noOpRechecks.length>0||n.skipped.length>0||n.needsInput.length>0||!!v||m||g!==void 0,C=u.trim().length>0,T=_?.validation??g?.generatedRecommendationValidation,ee=T?.valid===!1,E=g?.errors??[],D=g!==void 0,te=D&&g.valid&&E.length===0&&!ee,O=D&&ee&&E.length===0;return w.useEffect(()=>{if(i!==void 0){p(i),h(!1);return}let t=!0;return h(!0),sw().invokeAction(`preview-backlog-curation-task`,{taskId:e}).then(e=>{t&&p(e)}).catch(e=>{t&&p({valid:!1,errors:[{path:``,message:e instanceof Error?e.message:String(e)}]})}).finally(()=>{t&&h(!1)}),()=>{t=!1}},[i,e]),(0,I.jsxDEV)(gA,{className:`mt-3 gap-3 pt-3 text-sm`,children:[(0,I.jsxDEV)(`div`,{className:`grid gap-2`,children:[(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`h3`,{className:`text-sm font-semibold text-foreground`,children:`Backlog curation preview`},void 0,!1,{fileName:Z,lineNumber:72,columnNumber:11},this),(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:[`Read-only draft from source `,LL(n.sourceFingerprint),n.generatedAt?` · generated ${FA(n.generatedAt)}`:``]},void 0,!0,{fileName:Z,lineNumber:73,columnNumber:11},this)]},void 0,!0,{fileName:Z,lineNumber:71,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1.5`,children:[(0,I.jsxDEV)(MR,{label:`item changes`,value:b.itemChanges},void 0,!1,{fileName:Z,lineNumber:76,columnNumber:11},this),(0,I.jsxDEV)(MR,{label:`epic changes`,value:b.epicChanges},void 0,!1,{fileName:Z,lineNumber:77,columnNumber:11},this),(0,I.jsxDEV)(MR,{label:`no-op rechecks`,value:b.noOpRechecks},void 0,!1,{fileName:Z,lineNumber:78,columnNumber:11},this),(0,I.jsxDEV)(MR,{label:`unresolved exceptions`,value:b.skipped},void 0,!1,{fileName:Z,lineNumber:79,columnNumber:11},this),(0,I.jsxDEV)(MR,{label:`needs input`,value:b.needsInput},void 0,!1,{fileName:Z,lineNumber:80,columnNumber:11},this),(0,I.jsxDEV)(MR,{label:`recommendation entries`,value:b.generatedRecommendations},void 0,!1,{fileName:Z,lineNumber:81,columnNumber:11},this)]},void 0,!0,{fileName:Z,lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:Z,lineNumber:70,columnNumber:7},this),g?.recommendationFreshness&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2 rounded border border-border bg-card p-2 text-xs`,children:[(0,I.jsxDEV)(pR,{freshness:g.recommendationFreshness,prefix:`recommendations`},void 0,!1,{fileName:Z,lineNumber:87,columnNumber:11},this),(0,I.jsxDEV)(mR,{freshness:g.recommendationFreshness},void 0,!1,{fileName:Z,lineNumber:88,columnNumber:11},this)]},void 0,!0,{fileName:Z,lineNumber:86,columnNumber:9},this),(0,I.jsxDEV)(ER,{gitDelta:g?.gitDelta},void 0,!1,{fileName:Z,lineNumber:91,columnNumber:7},this),(0,I.jsxDEV)(_R,{audit:g?.fullImplementationAudit},void 0,!1,{fileName:Z,lineNumber:92,columnNumber:7},this),m&&(0,I.jsxDEV)(`div`,{className:`rounded border border-border bg-card p-2 text-xs text-muted-foreground`,children:`Validating curation apply preconditions and effective recommendation projection…`},void 0,!1,{fileName:Z,lineNumber:93,columnNumber:26},this),!m&&g&&!_&&r&&(0,I.jsxDEV)(`div`,{className:`rounded border border-border bg-card p-2 text-xs text-muted-foreground`,children:`Effective recommendation projection unavailable; raw generated recommendations are available as provenance only and normal apply remains disabled.`},void 0,!1,{fileName:Z,lineNumber:94,columnNumber:81},this),T&&(0,I.jsxDEV)(RR,{validation:T},void 0,!1,{fileName:Z,lineNumber:95,columnNumber:36},this),E.length>0&&(0,I.jsxDEV)(PR,{title:`Curation preview validation errors`,children:(0,I.jsxDEV)(`ul`,{className:`grid gap-1.5 text-xs text-destructive-foreground`,children:E.map(e=>(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(`span`,{className:`font-mono`,children:e.path},void 0,!1,{fileName:Z,lineNumber:99,columnNumber:86},this),` — `,e.message]},`${e.path}:${e.message}`,!0,{fileName:Z,lineNumber:99,columnNumber:43},this))},void 0,!1,{fileName:Z,lineNumber:98,columnNumber:11},this)},void 0,!1,{fileName:Z,lineNumber:97,columnNumber:9},this),S&&(0,I.jsxDEV)(`details`,{className:`border-t border-border pt-2`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer list-none text-xs text-muted-foreground hover:text-foreground [&::-webkit-details-marker]:hidden`,children:`Review curation details`},void 0,!1,{fileName:Z,lineNumber:106,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-3`,children:[n.summary.length>0&&(0,I.jsxDEV)(FR,{title:`Summary`,entries:n.summary},void 0,!1,{fileName:Z,lineNumber:108,columnNumber:42},this),(0,I.jsxDEV)(IR,{title:`Item changes`,patches:n.itemChanges,applied:x,fullAudit:g?.fullImplementationAudit},void 0,!1,{fileName:Z,lineNumber:109,columnNumber:13},this),(0,I.jsxDEV)(IR,{title:`Epic changes`,patches:n.epicChanges,applied:x,fullAudit:g?.fullImplementationAudit},void 0,!1,{fileName:Z,lineNumber:110,columnNumber:13},this),n.noOpRechecks.length>0&&(0,I.jsxDEV)(PR,{title:`No-op rechecks`,children:(0,I.jsxDEV)(`details`,{className:`rounded border border-border p-2`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-xs text-muted-foreground`,children:[n.noOpRechecks.length,` freshness-only rechecks proposed; expand for details`]},void 0,!0,{fileName:Z,lineNumber:114,columnNumber:19},this),(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-2`,children:n.noOpRechecks.map(e=>(0,I.jsxDEV)(`div`,{className:`rounded border border-border p-2`,children:[(0,I.jsxDEV)(`p`,{className:`font-medium text-foreground`,children:(0,I.jsxDEV)(NR,{kind:e.kind,id:e.id},void 0,!1,{fileName:Z,lineNumber:118,columnNumber:68},this)},void 0,!1,{fileName:Z,lineNumber:118,columnNumber:25},this),(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:[`last_checked `,e.last_checked,` · stale_after `,e.stale_after]},void 0,!0,{fileName:Z,lineNumber:119,columnNumber:25},this),e.rationale&&(0,I.jsxDEV)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:e.rationale},void 0,!1,{fileName:Z,lineNumber:120,columnNumber:45},this)]},`${e.kind}:${e.id}`,!0,{fileName:Z,lineNumber:117,columnNumber:23},this))},void 0,!1,{fileName:Z,lineNumber:115,columnNumber:19},this)]},void 0,!0,{fileName:Z,lineNumber:113,columnNumber:17},this)},void 0,!1,{fileName:Z,lineNumber:112,columnNumber:15},this),n.skipped.length>0&&(0,I.jsxDEV)(PR,{title:`Unresolved exceptions`,children:(0,I.jsxDEV)(`ul`,{className:`grid gap-1.5 text-xs text-muted-foreground`,children:n.skipped.map((e,t)=>(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(NR,{kind:e.kind,id:e.id},void 0,!1,{fileName:Z,lineNumber:130,columnNumber:115},this),` — `,e.reason]},`${e.kind??`record`}:${e.id??t}`,!0,{fileName:Z,lineNumber:130,columnNumber:56},this))},void 0,!1,{fileName:Z,lineNumber:129,columnNumber:17},this)},void 0,!1,{fileName:Z,lineNumber:128,columnNumber:15},this),n.needsInput.length>0&&(0,I.jsxDEV)(PR,{title:`Needs-input cases`,children:(0,I.jsxDEV)(`ul`,{className:`grid gap-1.5 text-xs text-muted-foreground`,children:n.needsInput.map((e,t)=>{let n=oR([e.reason,e.question]);return(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:[(0,I.jsxDEV)(NR,{kind:e.kind,id:e.id},void 0,!1,{fileName:Z,lineNumber:139,columnNumber:121},this),`:`]},void 0,!0,{fileName:Z,lineNumber:139,columnNumber:87},this),` `,n.labels.map(e=>(0,I.jsxDEV)(`span`,{className:`mr-1 rounded border px-1 ${ZO(`warn`)}`,children:e},e,!1,{fileName:Z,lineNumber:139,columnNumber:209},this)),e.question,e.reason?` — ${e.reason}`:``]},`${e.kind??`record`}:${e.id??t}`,!0,{fileName:Z,lineNumber:139,columnNumber:28},this)})},void 0,!1,{fileName:Z,lineNumber:136,columnNumber:17},this)},void 0,!1,{fileName:Z,lineNumber:135,columnNumber:15},this),v&&(0,I.jsxDEV)(zR,{recommendations:v,metadata:y},void 0,!1,{fileName:Z,lineNumber:144,columnNumber:40},this)]},void 0,!0,{fileName:Z,lineNumber:107,columnNumber:11},this)]},void 0,!0,{fileName:Z,lineNumber:105,columnNumber:9},this),(0,I.jsxDEV)(gA,{title:`Redraft curation`,children:[(0,I.jsxDEV)(YO,{className:`min-h-16`,value:u,onChange:e=>d(e.target.value),placeholder:`Optional steering for a curation redraft`},void 0,!1,{fileName:Z,lineNumber:150,columnNumber:9},this),(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,variant:`secondary`,disabled:a||!C,onClick:()=>void s(e,{steering:u.trim()}),children:`Redraft curation`},void 0,!1,{fileName:Z,lineNumber:151,columnNumber:14},this)},void 0,!1,{fileName:Z,lineNumber:151,columnNumber:9},this)]},void 0,!0,{fileName:Z,lineNumber:149,columnNumber:7},this),x?(0,I.jsxDEV)(`div`,{className:`rounded border border-primary/30 bg-primary/10 p-2 text-xs text-text-bright`,children:[`Curation applied `,t.appliedAt?FA(t.appliedAt):``,`.`]},void 0,!0,{fileName:Z,lineNumber:155,columnNumber:9},this):(0,I.jsxDEV)(gA,{className:`flex flex-wrap items-center`,children:c?(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(L,{size:`sm`,variant:`destructive`,disabled:a||m||!te,onClick:()=>void o(e,{applyBacklogCurationDraft:{previewAcknowledged:!0,confirmApply:!0}}),children:`Confirm apply curation`},void 0,!1,{fileName:Z,lineNumber:162,columnNumber:15},this),ee&&(0,I.jsxDEV)(L,{size:`sm`,variant:`secondary`,disabled:a||m||!O,onClick:()=>void o(e,{applyBacklogCurationDraft:{previewAcknowledged:!0,confirmApply:!0,applyCurationOnly:!0}}),children:`Apply curation only / discard generated recommendations`},void 0,!1,{fileName:Z,lineNumber:163,columnNumber:54},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,disabled:a,onClick:()=>l(!1),children:`Cancel`},void 0,!1,{fileName:Z,lineNumber:164,columnNumber:15},this)]},void 0,!0,{fileName:Z,lineNumber:161,columnNumber:13},this):(0,I.jsxDEV)(L,{size:`sm`,disabled:a,onClick:()=>l(!0),children:`I reviewed this curation preview`},void 0,!1,{fileName:Z,lineNumber:159,columnNumber:13},this)},void 0,!1,{fileName:Z,lineNumber:157,columnNumber:9},this)]},void 0,!0,{fileName:Z,lineNumber:69,columnNumber:5},this)}function MR({label:e,value:t}){return(0,I.jsxDEV)(`span`,{className:`rounded border border-primary/30 bg-primary/10 px-1.5 py-0.5 text-2xs text-text-bright`,children:[t,` `,e]},void 0,!0,{fileName:Z,lineNumber:174,columnNumber:10},this)}function NR({kind:e,id:t}){let n=PL(e,t);return e!==`item`||!t?(0,I.jsxDEV)(I.Fragment,{children:n},void 0,!1,{fileName:Z,lineNumber:182,columnNumber:38},this):(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>jw(t),title:`Show ${t} on the board`,className:`rounded-sm text-[color:var(--lane-ready)] hover:underline focus-visible:underline focus-visible:outline focus-visible:outline-1 focus-visible:outline-[color:var(--color-ring)]`,children:n},void 0,!1,{fileName:Z,lineNumber:184,columnNumber:5},this)}function PR({title:e,children:t}){return(0,I.jsxDEV)(gA,{title:e,className:`gap-1.5`,children:t},void 0,!1,{fileName:Z,lineNumber:191,columnNumber:10},this)}function FR({title:e,entries:t}){return(0,I.jsxDEV)(PR,{title:e,children:(0,I.jsxDEV)(`ul`,{className:`list-disc pl-4 text-xs text-muted-foreground`,children:t.map(e=>(0,I.jsxDEV)(`li`,{children:e},e,!1,{fileName:Z,lineNumber:195,columnNumber:123},this))},void 0,!1,{fileName:Z,lineNumber:195,columnNumber:38},this)},void 0,!1,{fileName:Z,lineNumber:195,columnNumber:10},this)}function IR({title:e,patches:t,applied:n,fullAudit:r}){return t.length===0?null:(0,I.jsxDEV)(PR,{title:e,children:(0,I.jsxDEV)(`div`,{className:`grid gap-2`,children:t.map(e=>(0,I.jsxDEV)(LR,{patch:e,applied:n,fullAudit:r},`${e.kind}:${e.id}`,!1,{fileName:Z,lineNumber:205,columnNumber:33},this))},void 0,!1,{fileName:Z,lineNumber:204,columnNumber:7},this)},void 0,!1,{fileName:Z,lineNumber:203,columnNumber:5},this)}function LR({patch:e,applied:t,fullAudit:n}){let r=FL(e.metadata),i=oR(e.evidence??[]),a=UL(n,e);return(0,I.jsxDEV)(`article`,{className:`grid gap-2 rounded border border-border p-2`,children:[(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`p`,{className:`font-medium text-foreground`,children:(0,I.jsxDEV)(NR,{kind:e.kind,id:e.id},void 0,!1,{fileName:Z,lineNumber:218,columnNumber:52},this)},void 0,!1,{fileName:Z,lineNumber:218,columnNumber:9},this),e.rationale&&(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:e.rationale},void 0,!1,{fileName:Z,lineNumber:219,columnNumber:29},this)]},void 0,!0,{fileName:Z,lineNumber:217,columnNumber:7},this),r.length>0&&(0,I.jsxDEV)(`dl`,{className:`grid gap-1 text-xs`,children:r.map(e=>(0,I.jsxDEV)(`div`,{className:`grid grid-cols-[8rem_1fr] gap-2`,children:[(0,I.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:e.label},void 0,!1,{fileName:Z,lineNumber:221,columnNumber:146},this),(0,I.jsxDEV)(`dd`,{className:`text-foreground`,children:e.value},void 0,!1,{fileName:Z,lineNumber:221,columnNumber:200},this)]},e.label,!0,{fileName:Z,lineNumber:221,columnNumber:81},this))},void 0,!1,{fileName:Z,lineNumber:221,columnNumber:27},this),e.sectionOperations&&e.sectionOperations.length>0&&(0,I.jsxDEV)(`div`,{className:`grid gap-1`,children:e.sectionOperations.map(e=>(0,I.jsxDEV)(`details`,{className:`border-l-2 border-border pl-2`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-xs text-muted-foreground`,children:[IL(e.action),` · `,e.heading]},void 0,!0,{fileName:Z,lineNumber:222,columnNumber:245},this),(0,I.jsxDEV)(zO,{markdown:e.content},void 0,!1,{fileName:Z,lineNumber:222,columnNumber:384},this)]},`${e.heading}:${e.action}`,!0,{fileName:Z,lineNumber:222,columnNumber:145},this))},void 0,!1,{fileName:Z,lineNumber:222,columnNumber:73},this),(i.labels.length>0||a.length>0)&&(0,I.jsxDEV)(`div`,{className:`grid gap-1 rounded border border-primary/20 bg-primary/5 p-2 text-xs text-muted-foreground`,children:[i.labels.length>0&&(0,I.jsxDEV)(`p`,{children:n?`Draft evidence labels (historical labels are navigation hints; current-source labels are closure evidence):`:t?`Applied closure metadata evidence:`:`Proposed closure metadata evidence in this draft:`},void 0,!1,{fileName:Z,lineNumber:225,columnNumber:42},this),i.labels.length>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:i.labels.map(e=>(0,I.jsxDEV)(`span`,{className:`rounded border border-primary/30 bg-primary/10 px-1.5 py-0.5 text-text-bright`,children:e},e,!1,{fileName:Z,lineNumber:226,columnNumber:112},this))},void 0,!1,{fileName:Z,lineNumber:226,columnNumber:42},this),a.length>0&&(0,I.jsxDEV)(vR,{evidence:a},void 0,!1,{fileName:Z,lineNumber:227,columnNumber:44},this),i.prIds.length>0&&(0,I.jsxDEV)(`p`,{children:[`PR identifiers: `,i.prIds.join(`, `)]},void 0,!0,{fileName:Z,lineNumber:228,columnNumber:41},this),i.commitIds.length>0&&(0,I.jsxDEV)(`p`,{children:[`Commit identifiers: `,i.commitIds.join(`, `)]},void 0,!0,{fileName:Z,lineNumber:229,columnNumber:45},this)]},void 0,!0,{fileName:Z,lineNumber:224,columnNumber:9},this),e.evidence&&e.evidence.length>0&&(0,I.jsxDEV)(`ul`,{className:`list-disc pl-4 text-xs text-muted-foreground`,children:e.evidence.map(e=>(0,I.jsxDEV)(`li`,{children:e},e,!1,{fileName:Z,lineNumber:232,columnNumber:147},this))},void 0,!1,{fileName:Z,lineNumber:232,columnNumber:55},this)]},void 0,!0,{fileName:Z,lineNumber:216,columnNumber:5},this)}function RR({validation:e}){return e.valid?null:(0,I.jsxDEV)(PR,{title:`Invalid generated recommendation references`,children:(0,I.jsxDEV)(`div`,{className:`grid gap-2 rounded border border-destructive/40 bg-destructive/10 p-2 text-xs`,children:[(0,I.jsxDEV)(`p`,{className:`text-destructive-foreground`,children:`Generated recommendations reference backlog records that are closed, missing, or otherwise invalid. Normal curation apply is disabled until you explicitly discard generated recommendations.`},void 0,!1,{fileName:Z,lineNumber:242,columnNumber:9},this),(0,I.jsxDEV)(`ul`,{className:`grid gap-1 text-muted-foreground`,children:e.issues.map(e=>(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(`span`,{className:`font-mono text-foreground`,children:RL(e)},void 0,!1,{fileName:Z,lineNumber:246,columnNumber:15},this),e.title?` — ${e.title}`:``,(0,I.jsxDEV)(`span`,{className:`block text-destructive-foreground`,children:e.message},void 0,!1,{fileName:Z,lineNumber:246,columnNumber:135},this)]},`${e.path}:${e.kind}:${e.id}:${e.reason}`,!0,{fileName:Z,lineNumber:245,columnNumber:13},this))},void 0,!1,{fileName:Z,lineNumber:243,columnNumber:9},this)]},void 0,!0,{fileName:Z,lineNumber:241,columnNumber:7},this)},void 0,!1,{fileName:Z,lineNumber:240,columnNumber:5},this)}function zR({recommendations:e,metadata:t}){let n=zL(e);return(0,I.jsxDEV)(PR,{title:`Effective generated recommendations (read-only)`,children:(0,I.jsxDEV)(`div`,{className:`grid gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`p`,{children:[n.activeWork,` active work items · `,n.readyCandidates,` ready candidates · `,n.nextSequence,` next-sequence items · `,n.safeParallelGroups,` safe-parallel groups · `,n.blockedChains,` blocked chains`]},void 0,!0,{fileName:Z,lineNumber:261,columnNumber:9},this),t.removedItemIds.length>0&&(0,I.jsxDEV)(`p`,{children:[`Removed item ids: `,t.removedItemIds.join(`, `)]},void 0,!0,{fileName:Z,lineNumber:262,columnNumber:48},this),t.removedEpicIds.length>0&&(0,I.jsxDEV)(`p`,{children:[`Removed epic ids: `,t.removedEpicIds.join(`, `)]},void 0,!0,{fileName:Z,lineNumber:263,columnNumber:48},this),t.repositioned.length>0&&(0,I.jsxDEV)(`p`,{children:[`Repositioned item ids: `,t.repositioned.join(`, `)]},void 0,!0,{fileName:Z,lineNumber:264,columnNumber:46},this),(0,I.jsxDEV)(BR,{title:`Active work`,entries:e.activeWork??[]},void 0,!1,{fileName:Z,lineNumber:265,columnNumber:9},this),(0,I.jsxDEV)(BR,{title:`Ready candidates`,entries:e.readyCandidates??[]},void 0,!1,{fileName:Z,lineNumber:266,columnNumber:9},this),(0,I.jsxDEV)(BR,{title:`Recommended next sequence`,entries:e.recommendedNextSequence??[]},void 0,!1,{fileName:Z,lineNumber:267,columnNumber:9},this),(0,I.jsxDEV)(VR,{title:`Safe-parallel groups`,groups:e.safeParallelizableGroups??[]},void 0,!1,{fileName:Z,lineNumber:268,columnNumber:9},this),(0,I.jsxDEV)(HR,{chains:e.blockedChains??[]},void 0,!1,{fileName:Z,lineNumber:269,columnNumber:9},this),e.rationaleAndAssumptions&&e.rationaleAndAssumptions.length>0&&(0,I.jsxDEV)(`ul`,{className:`list-disc pl-4`,children:e.rationaleAndAssumptions.map(e=>(0,I.jsxDEV)(`li`,{children:e},e,!1,{fileName:Z,lineNumber:270,columnNumber:194},this))},void 0,!1,{fileName:Z,lineNumber:270,columnNumber:107},this)]},void 0,!0,{fileName:Z,lineNumber:260,columnNumber:7},this)},void 0,!1,{fileName:Z,lineNumber:259,columnNumber:5},this)}function BR({title:e,entries:t}){return t.length===0?null:(0,I.jsxDEV)(`details`,{className:`rounded border border-border p-2`,open:!0,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-xs font-medium text-foreground`,children:[e,` (`,t.length,`)`]},void 0,!0,{fileName:Z,lineNumber:280,columnNumber:7},this),(0,I.jsxDEV)(`ul`,{className:`mt-1 grid gap-1.5`,children:t.map((e,t)=>(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(`span`,{className:`font-mono text-foreground`,children:e.itemId},void 0,!1,{fileName:Z,lineNumber:284,columnNumber:13},this),e.title?` — ${e.title}`:``,e.rationale?(0,I.jsxDEV)(`span`,{className:`block`,children:e.rationale},void 0,!1,{fileName:Z,lineNumber:284,columnNumber:137},this):null]},`${e.ref??e.itemId}:${t}`,!0,{fileName:Z,lineNumber:283,columnNumber:11},this))},void 0,!1,{fileName:Z,lineNumber:281,columnNumber:7},this)]},void 0,!0,{fileName:Z,lineNumber:279,columnNumber:5},this)}function VR({title:e,groups:t}){return t.length===0?null:(0,I.jsxDEV)(`details`,{className:`rounded border border-border p-2`,open:!0,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-xs font-medium text-foreground`,children:[e,` (`,t.length,`)`]},void 0,!0,{fileName:Z,lineNumber:296,columnNumber:7},this),(0,I.jsxDEV)(`ul`,{className:`mt-1 grid gap-1.5`,children:t.map(e=>(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(`span`,{className:`font-mono text-foreground`,children:e.ref},void 0,!1,{fileName:Z,lineNumber:300,columnNumber:13},this),e.title?` — ${e.title}`:``,(0,I.jsxDEV)(`span`,{className:`block`,children:[`Items: `,e.itemIds.join(`, `)||`none`,e.epicIds&&e.epicIds.length>0?` · Epics: ${e.epicIds.join(`, `)}`:``,e.recommendedProfile?` · Profile: ${e.recommendedProfile}`:``]},void 0,!0,{fileName:Z,lineNumber:301,columnNumber:13},this),e.rationale?(0,I.jsxDEV)(`span`,{className:`block`,children:e.rationale},void 0,!1,{fileName:Z,lineNumber:302,columnNumber:32},this):null]},e.ref,!0,{fileName:Z,lineNumber:299,columnNumber:11},this))},void 0,!1,{fileName:Z,lineNumber:297,columnNumber:7},this)]},void 0,!0,{fileName:Z,lineNumber:295,columnNumber:5},this)}function HR({chains:e}){return e.length===0?null:(0,I.jsxDEV)(`details`,{className:`rounded border border-border p-2`,open:!0,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-xs font-medium text-foreground`,children:[`Blocked chains (`,e.length,`)`]},void 0,!0,{fileName:Z,lineNumber:314,columnNumber:7},this),(0,I.jsxDEV)(`ul`,{className:`mt-1 grid gap-1.5`,children:e.map((e,t)=>(0,I.jsxDEV)(`li`,{children:[(0,I.jsxDEV)(`span`,{className:`font-mono text-foreground`,children:e.ref??`chain-${t+1}`},void 0,!1,{fileName:Z,lineNumber:318,columnNumber:13},this),(0,I.jsxDEV)(`span`,{className:`block`,children:[`Items: `,e.itemIds.join(`, `)||`none`,` · Blocked by: `,e.blockedBy.join(`, `)||`none`]},void 0,!0,{fileName:Z,lineNumber:319,columnNumber:13},this),e.rationale?(0,I.jsxDEV)(`span`,{className:`block`,children:e.rationale},void 0,!1,{fileName:Z,lineNumber:320,columnNumber:32},this):null]},`${e.ref??e.itemIds.join(`,`)}:${t}`,!0,{fileName:Z,lineNumber:317,columnNumber:11},this))},void 0,!1,{fileName:Z,lineNumber:315,columnNumber:7},this)]},void 0,!0,{fileName:Z,lineNumber:313,columnNumber:5},this)}var Q=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/planning-task-result-preview.tsx`;function UR({item:e,busy:t,onRedraft:n,onApply:r,applyError:i}){let a=e.entry.taskId,o=e.task?.result;return o?o.decision===`needs-input`&&o.clarificationQuestions&&o.clarificationQuestions.length>0?(0,I.jsxDEV)(GR,{taskId:a,busy:t,summary:o.summary,rationale:o.rationale,questions:o.clarificationQuestions,onRedraft:n},void 0,!1,{fileName:Q,lineNumber:31,columnNumber:7},this):e.entry.purpose===`backlog-curation`?o.backlogCurationDraft?(0,I.jsxDEV)(jR,{taskId:a,entry:e.entry,draft:o.backlogCurationDraft,recommendations:o.recommendations,curationPreview:e.backlogCurationPreview,busy:t,onApply:r,onRedraft:n},void 0,!1,{fileName:Q,lineNumber:43,columnNumber:45},this):(0,I.jsxDEV)(WR,{taskId:a,result:o,busy:t,onRedraft:n,canRedraft:!0},void 0,!1,{fileName:Q,lineNumber:44,columnNumber:12},this):o.backlogCurationDraft?(0,I.jsxDEV)(WR,{taskId:a,result:o,busy:t,onRedraft:n},void 0,!1,{fileName:Q,lineNumber:47,columnNumber:43},this):(0,I.jsxDEV)(KR,{taskId:a,result:o,sessionHint:e.entry.session,busy:t,onApply:r,applyError:i},void 0,!1,{fileName:Q,lineNumber:49,columnNumber:10},this):null}function WR({taskId:e,result:t,busy:n,onRedraft:r,canRedraft:i=!1}){let[a,o]=w.useState(``),s=a.trim();return(0,I.jsxDEV)(gA,{className:`mt-3 pt-3 text-sm`,children:[(0,I.jsxDEV)(`p`,{className:`text-foreground`,children:t.summary},void 0,!1,{fileName:Q,lineNumber:66,columnNumber:7},this),t.nextSteps&&t.nextSteps.length>0&&(0,I.jsxDEV)(`ul`,{className:`list-disc pl-4 text-xs text-muted-foreground`,children:t.nextSteps.map(e=>(0,I.jsxDEV)(`li`,{children:e},e,!1,{fileName:Q,lineNumber:68,columnNumber:102},this))},void 0,!1,{fileName:Q,lineNumber:68,columnNumber:9},this),(0,I.jsxDEV)(`span`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Backlog curation draft unavailable`},void 0,!1,{fileName:Q,lineNumber:70,columnNumber:7},this),(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:`This result cannot be applied as backlog curation because it did not include an applicable curation draft.`},void 0,!1,{fileName:Q,lineNumber:71,columnNumber:7},this),i&&(0,I.jsxDEV)(gA,{children:[(0,I.jsxDEV)(YO,{className:`min-h-16`,value:a,onChange:e=>o(e.target.value),placeholder:`Optional steering for a curation redraft`},void 0,!1,{fileName:Q,lineNumber:74,columnNumber:11},this),(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,variant:`secondary`,disabled:n||s.length===0,onClick:()=>void r(e,{steering:s}),children:`Redraft curation`},void 0,!1,{fileName:Q,lineNumber:75,columnNumber:16},this)},void 0,!1,{fileName:Q,lineNumber:75,columnNumber:11},this)]},void 0,!0,{fileName:Q,lineNumber:73,columnNumber:9},this)]},void 0,!0,{fileName:Q,lineNumber:65,columnNumber:5},this)}function GR({taskId:e,busy:t,summary:n,rationale:r,questions:i,onRedraft:a}){let[o,s]=w.useState(()=>i.map(()=>``)),[c,l]=w.useState(``),u=o.map(e=>e.trim()),d=u.some(e=>e.length>0)||c.trim().length>0;return(0,I.jsxDEV)(gA,{className:`mt-3 pt-3`,children:[(0,I.jsxDEV)(`p`,{className:`text-foreground`,children:n},void 0,!1,{fileName:Q,lineNumber:111,columnNumber:7},this),r&&(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:r},void 0,!1,{fileName:Q,lineNumber:112,columnNumber:21},this),(0,I.jsxDEV)(`span`,{className:`text-xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Needs input before drafting`},void 0,!1,{fileName:Q,lineNumber:113,columnNumber:7},this),(0,I.jsxDEV)(`ol`,{className:`grid gap-2`,children:i.map((e,t)=>(0,I.jsxDEV)(`li`,{className:`grid gap-1`,children:[(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:[t+1,`. `,e.question]},void 0,!0,{fileName:Q,lineNumber:117,columnNumber:13},this),e.why&&(0,I.jsxDEV)(`span`,{className:`text-xs text-muted-foreground`,children:e.why},void 0,!1,{fileName:Q,lineNumber:118,columnNumber:30},this),e.options&&e.options.length>0&&(0,I.jsxDEV)(`span`,{className:`text-xs text-muted-foreground`,children:[`Options: `,e.options.join(`, `)]},void 0,!0,{fileName:Q,lineNumber:119,columnNumber:65},this),(0,I.jsxDEV)(YO,{className:`min-h-16`,value:o[t],onChange:e=>s(n=>n.map((n,r)=>r===t?e.target.value:n)),placeholder:`Your answer`},void 0,!1,{fileName:Q,lineNumber:120,columnNumber:13},this)]},e.question,!0,{fileName:Q,lineNumber:116,columnNumber:11},this))},void 0,!1,{fileName:Q,lineNumber:114,columnNumber:7},this),(0,I.jsxDEV)(YO,{className:`min-h-16`,value:c,onChange:e=>l(e.target.value),placeholder:`Optional steering for the redraft`},void 0,!1,{fileName:Q,lineNumber:129,columnNumber:7},this),(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,disabled:t||!d,onClick:()=>{let t={},n=i.map((e,t)=>({question:e.question,answer:u[t]??``})).filter(e=>e.answer.length>0).map(e=>`Q: ${e.question}\nA: ${e.answer}`);n.length>0&&(t.answers=n),c.trim().length>0&&(t.steering=c.trim()),a(e,t)},children:`Answer and redraft`},void 0,!1,{fileName:Q,lineNumber:131,columnNumber:9},this)},void 0,!1,{fileName:Q,lineNumber:130,columnNumber:7},this)]},void 0,!0,{fileName:Q,lineNumber:110,columnNumber:5},this)}function KR({taskId:e,result:t,sessionHint:n,busy:r,onApply:i,applyError:a}){let[o,s]=w.useState(null),c=t.sessionPlanCreationDraft,l=t.recommendations,u=t.handoffDrafts??(t.handoffDraft?[t.handoffDraft]:[]),d=t.sessionPlanPatch?.sections??[],f=(n??c?.session??``).trim(),p=(t,n)=>{if(o!==t){s(t);return}s(null),i(e,n)},m=t.assumptionsOpenQuestions??[],h=!!t.summary||(t.nextSteps?.length??0)>0||(c?.sections.length??0)>0||d.length>0||m.length>0;return(0,I.jsxDEV)(gA,{className:`mt-3 pt-3 text-sm`,children:[a&&c&&(0,I.jsxDEV)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/10 p-2 text-xs text-destructive-foreground`,children:[a.automatic?`Automatic session-plan creation failed`:`Session-plan creation failed`,`: `,(0,I.jsxDEV)(`span`,{className:`break-words`,children:a.message},void 0,!1,{fileName:Q,lineNumber:175,columnNumber:111},this),`. Manual creation remains available below after review.`]},void 0,!0,{fileName:Q,lineNumber:174,columnNumber:9},this),c&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`text-2xs uppercase tracking-wide text-muted-foreground`,children:[`Session-plan draft · `,c.planningType,`/`,c.planningDepth,` · `,c.sections.length,` section`,c.sections.length===1?``:`s`]},void 0,!0,{fileName:Q,lineNumber:181,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,variant:o===`creation`?`destructive`:`default`,disabled:r,onClick:()=>p(`creation`,{applySessionPlanCreationDraft:{}}),children:o===`creation`?`Confirm create session plan`:`Create session plan`},void 0,!1,{fileName:Q,lineNumber:183,columnNumber:13},this),o===`creation`&&(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,onClick:()=>s(null),children:`Cancel`},void 0,!1,{fileName:Q,lineNumber:184,columnNumber:43},this)]},void 0,!0,{fileName:Q,lineNumber:182,columnNumber:11},this)]},void 0,!0,{fileName:Q,lineNumber:180,columnNumber:9},this),l&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`text-muted-foreground`,children:`Generated recommendations are available.`},void 0,!1,{fileName:Q,lineNumber:191,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`sm`,variant:o===`recommendations`?`destructive`:`secondary`,disabled:r,onClick:()=>p(`recommendations`,{applyRecommendations:!0}),children:o===`recommendations`?`Confirm apply recommendations`:`Apply recommendations`},void 0,!1,{fileName:Q,lineNumber:192,columnNumber:11},this),o===`recommendations`&&(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,onClick:()=>s(null),children:`Cancel`},void 0,!1,{fileName:Q,lineNumber:193,columnNumber:48},this)]},void 0,!0,{fileName:Q,lineNumber:190,columnNumber:9},this),u.length>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`text-muted-foreground`,children:[`Generated handoff draft`,u.length===1?``:`s`,` are available.`]},void 0,!0,{fileName:Q,lineNumber:199,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`sm`,variant:o===`handoff`?`destructive`:`secondary`,disabled:r,onClick:()=>p(`handoff`,{applyHandoffDrafts:u.map((e,t)=>({index:t}))}),children:o===`handoff`?`Confirm apply handoff drafts`:`Apply handoff drafts`},void 0,!1,{fileName:Q,lineNumber:200,columnNumber:11},this),o===`handoff`&&(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,onClick:()=>s(null),children:`Cancel`},void 0,!1,{fileName:Q,lineNumber:201,columnNumber:40},this)]},void 0,!0,{fileName:Q,lineNumber:198,columnNumber:9},this),d.length>0&&(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`text-2xs uppercase tracking-wide text-muted-foreground`,children:[`Session-plan patch`,f?` · ${f}`:``,` · `,d.length,` section`,d.length===1?``:`s`]},void 0,!0,{fileName:Q,lineNumber:207,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,variant:o===`patch`?`destructive`:`default`,disabled:r||f.length===0,onClick:()=>p(`patch`,{applySessionPlanDrafts:[{session:f,sections:d.map(e=>e.dimension)}]}),children:o===`patch`?`Confirm apply session-plan content`:`Apply session-plan content`},void 0,!1,{fileName:Q,lineNumber:209,columnNumber:13},this),o===`patch`&&(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,onClick:()=>s(null),children:`Cancel`},void 0,!1,{fileName:Q,lineNumber:210,columnNumber:40},this)]},void 0,!0,{fileName:Q,lineNumber:208,columnNumber:11},this)]},void 0,!0,{fileName:Q,lineNumber:206,columnNumber:9},this),d.length>0&&f.length===0&&(0,I.jsxDEV)(`span`,{className:`text-xs text-muted-foreground`,children:`No target session is associated with this task; patch apply is unavailable.`},void 0,!1,{fileName:Q,lineNumber:214,columnNumber:68},this),h&&(0,I.jsxDEV)(`details`,{className:`mt-0.5`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer list-none text-xs text-muted-foreground hover:text-foreground [&::-webkit-details-marker]:hidden`,children:`Review draft details`},void 0,!1,{fileName:Q,lineNumber:218,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-2`,children:[t.summary&&(0,I.jsxDEV)(`p`,{className:`text-foreground`,children:t.summary},void 0,!1,{fileName:Q,lineNumber:220,columnNumber:32},this),t.nextSteps&&t.nextSteps.length>0&&(0,I.jsxDEV)(`ul`,{className:`list-disc pl-4 text-xs text-muted-foreground`,children:t.nextSteps.map(e=>(0,I.jsxDEV)(`li`,{children:e},e,!1,{fileName:Q,lineNumber:222,columnNumber:108},this))},void 0,!1,{fileName:Q,lineNumber:222,columnNumber:15},this),c&&c.sections.length>0&&(0,I.jsxDEV)(`div`,{className:`grid gap-1`,children:c.sections.map(e=>(0,I.jsxDEV)(qR,{title:e.dimension,body:e.content},e.dimension,!1,{fileName:Q,lineNumber:225,columnNumber:84},this))},void 0,!1,{fileName:Q,lineNumber:225,columnNumber:15},this),d.length>0&&(0,I.jsxDEV)(`div`,{className:`grid gap-1`,children:d.map(e=>(0,I.jsxDEV)(qR,{title:e.dimension,body:e.content},e.dimension,!1,{fileName:Q,lineNumber:228,columnNumber:75},this))},void 0,!1,{fileName:Q,lineNumber:228,columnNumber:15},this),m.length>0&&(0,I.jsxDEV)(`ul`,{className:`list-disc pl-4 text-xs text-muted-foreground`,children:m.map(e=>(0,I.jsxDEV)(`li`,{children:e},e,!1,{fileName:Q,lineNumber:231,columnNumber:104},this))},void 0,!1,{fileName:Q,lineNumber:231,columnNumber:15},this),c&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:`Creating the plan opens it in the Plans tab, where you can keep iterating.`},void 0,!1,{fileName:Q,lineNumber:233,columnNumber:31},this)]},void 0,!0,{fileName:Q,lineNumber:219,columnNumber:11},this)]},void 0,!0,{fileName:Q,lineNumber:217,columnNumber:9},this)]},void 0,!0,{fileName:Q,lineNumber:169,columnNumber:5},this)}function qR({title:e,body:t}){let n=t.split(`
380
+ `).length;return(0,I.jsxDEV)(`details`,{className:`border-l-2 border-border pl-2 open:border-primary/50`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-xs font-semibold uppercase tracking-wide text-muted-foreground hover:text-foreground`,children:[e,` `,(0,I.jsxDEV)(`span`,{className:`ml-1 font-normal normal-case tracking-normal text-muted-foreground/70`,children:[n,` line`,n===1?``:`s`]},void 0,!0,{fileName:Q,lineNumber:249,columnNumber:17},this)]},void 0,!0,{fileName:Q,lineNumber:248,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-1`,children:(0,I.jsxDEV)(zO,{markdown:t},void 0,!1,{fileName:Q,lineNumber:252,columnNumber:9},this)},void 0,!1,{fileName:Q,lineNumber:251,columnNumber:7},this)]},void 0,!0,{fileName:Q,lineNumber:247,columnNumber:5},this)}var $=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/planning-task-card.tsx`;function JR({item:e,busy:t,titles:n,onCancel:r,onRemove:i,onRetry:a,onRedraft:o,onApply:s,applyError:c,detailLoading:l=!1,detailError:u}){let{entry:d,task:f}=e,p=f?.status??e.status??`queued`,m=p===`queued`||p===`running`,h=YR(e,n),g=d.selection.recommendationRef??d.selection.sourceRecommendationRef,_=(p===`failed`||p===`cancelled`)&&e.available,v=!m;return(0,I.jsxDEV)(`article`,{className:`rounded-md border border-border bg-background/60 p-3 text-sm`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,I.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(nk,{tone:QO(p),className:`shrink-0 text-xs`,children:p},void 0,!1,{fileName:$,lineNumber:45,columnNumber:13},this),(0,I.jsxDEV)(`p`,{className:`line-clamp-2 min-w-0 flex-1 break-words font-medium leading-snug text-foreground`,title:h.full,children:h.title},void 0,!1,{fileName:$,lineNumber:46,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:44,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-2xs text-muted-foreground`,children:[d.purpose===`recommendation-refresh`&&(0,I.jsxDEV)(`span`,{className:`rounded border border-primary/30 bg-primary/10 px-1.5 text-text-bright`,children:`Recommendation refresh`},void 0,!1,{fileName:$,lineNumber:49,columnNumber:60},this),d.purpose===`backlog-curation`&&(0,I.jsxDEV)(`span`,{className:`rounded border border-primary/30 bg-primary/10 px-1.5 text-text-bright`,children:`Backlog analysis`},void 0,!1,{fileName:$,lineNumber:50,columnNumber:54},this),(0,I.jsxDEV)(ZR,{taskId:d.taskId},void 0,!1,{fileName:$,lineNumber:51,columnNumber:13},this),g&&(0,I.jsxDEV)(`span`,{className:`max-w-full truncate`,title:g,children:g},void 0,!1,{fileName:$,lineNumber:52,columnNumber:26},this),d.parentTaskId&&(0,I.jsxDEV)(`span`,{title:d.parentTaskId,children:[`↳ `,IA(d.parentTaskId)]},void 0,!0,{fileName:$,lineNumber:53,columnNumber:36},this),d.createdAt&&(0,I.jsxDEV)(`span`,{title:d.createdAt,children:[`started `,FA(d.createdAt)]},void 0,!0,{fileName:$,lineNumber:54,columnNumber:33},this),d.appliedAt&&(0,I.jsxDEV)(`span`,{title:d.appliedAt,children:[`applied `,FA(d.appliedAt)]},void 0,!0,{fileName:$,lineNumber:55,columnNumber:33},this)]},void 0,!0,{fileName:$,lineNumber:48,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:43,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex shrink-0 flex-wrap justify-end gap-2`,children:[m&&(0,I.jsxDEV)(L,{size:`sm`,variant:`outline`,disabled:t,onClick:()=>void r(d.taskId),children:[(0,I.jsxDEV)(fe,{className:`h-4 w-4`},void 0,!1,{fileName:$,lineNumber:60,columnNumber:109},this),` Cancel`]},void 0,!0,{fileName:$,lineNumber:60,columnNumber:13},this),v&&(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,disabled:t,onClick:()=>void i(d.taskId),children:[(0,I.jsxDEV)(Re,{className:`h-4 w-4`},void 0,!1,{fileName:$,lineNumber:63,columnNumber:107},this),` Dismiss`]},void 0,!0,{fileName:$,lineNumber:63,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:42,columnNumber:7},this),!e.available&&(0,I.jsxDEV)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:e.staleReason??`Task record is no longer available from the daemon.`},void 0,!1,{fileName:$,lineNumber:68,columnNumber:27},this),m&&(0,I.jsxDEV)(QR,{task:f},void 0,!1,{fileName:$,lineNumber:70,columnNumber:19},this),(0,I.jsxDEV)(AL,{activityLog:f?.metadata?.activityLog},void 0,!1,{fileName:$,lineNumber:71,columnNumber:7},this),l&&(0,I.jsxDEV)(`p`,{className:`mt-2 flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(Jn,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:$,lineNumber:74,columnNumber:83},this),` Loading full task result…`]},void 0,!0,{fileName:$,lineNumber:74,columnNumber:9},this),u&&(0,I.jsxDEV)(`p`,{className:`mt-2 text-xs text-destructive-foreground`,children:[`Could not load full task result: `,u]},void 0,!0,{fileName:$,lineNumber:77,columnNumber:9},this),c&&(0,I.jsxDEV)(`div`,{className:`mt-2 rounded-md border border-destructive/30 bg-destructive/10 p-2 text-xs`,children:[(0,I.jsxDEV)(`p`,{className:`font-semibold text-destructive-foreground`,children:c.automatic?`Automatic session-plan creation failed.`:`Session-plan creation failed.`},void 0,!1,{fileName:$,lineNumber:82,columnNumber:11},this),(0,I.jsxDEV)(`p`,{className:`mt-1 break-words text-destructive-foreground`,children:c.message},void 0,!1,{fileName:$,lineNumber:83,columnNumber:11},this),(0,I.jsxDEV)(`p`,{className:`mt-1 text-muted-foreground`,children:`Review the draft below, resolve any collision or validation issue, then use Create session plan to retry manually.`},void 0,!1,{fileName:$,lineNumber:84,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:81,columnNumber:9},this),p===`failed`&&(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-2`,children:[(0,I.jsxDEV)(`p`,{className:`text-xs text-destructive-foreground`,children:f?.errorMessage??f?.errorCode??`Task failed.`},void 0,!1,{fileName:$,lineNumber:90,columnNumber:11},this),_&&(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,variant:`secondary`,disabled:t,onClick:()=>void a(d.taskId),children:`Retry with preserved context`},void 0,!1,{fileName:$,lineNumber:91,columnNumber:30},this)},void 0,!1,{fileName:$,lineNumber:91,columnNumber:25},this)]},void 0,!0,{fileName:$,lineNumber:89,columnNumber:9},this),p===`cancelled`&&(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-2`,children:[(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:f?.errorMessage??`Task cancelled.`},void 0,!1,{fileName:$,lineNumber:97,columnNumber:11},this),_&&(0,I.jsxDEV)(`div`,{children:(0,I.jsxDEV)(L,{size:`sm`,variant:`secondary`,disabled:t,onClick:()=>void a(d.taskId),children:`Retry with preserved context`},void 0,!1,{fileName:$,lineNumber:98,columnNumber:30},this)},void 0,!1,{fileName:$,lineNumber:98,columnNumber:25},this)]},void 0,!0,{fileName:$,lineNumber:96,columnNumber:9},this),p===`completed`&&f?.result&&(0,I.jsxDEV)(UR,{item:e,busy:t,onRedraft:o,onApply:s,applyError:c},void 0,!1,{fileName:$,lineNumber:103,columnNumber:9},this),p===`completed`&&!f?.result&&e.resultOmitted&&!l&&!u&&(0,I.jsxDEV)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:`Open the task details to load the full generated result.`},void 0,!1,{fileName:$,lineNumber:106,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:41,columnNumber:5},this)}function YR(e,t){let{entry:n,task:r}=e,i=r?.result?.sessionPlanCreationDraft?.topic?.trim(),a=n.derivedRequest?.trim()??``;if(i&&!nT(i))return{title:i,full:i};if(a&&!nT(a))return{title:a,full:a};let o=`Plan ${XR(n,t)}`;return{title:o,full:a||o}}function XR(e,t){let n=e.selection.recommendationRef??e.selection.sourceRecommendationRef;return n?`lane ${n}`:tT(e.selection,t)||(e.selection.epicId?`epic ${e.selection.epicId}`:IA(e.taskId))}function ZR({taskId:e}){let t=$n(),n=async()=>{try{await navigator.clipboard.writeText(e),t.push(`Task id copied`,`success`)}catch{t.push(`Could not copy task id`,`error`)}};return(0,I.jsxDEV)(`button`,{type:`button`,title:`${e}\n\nClick to copy the full task id.`,onClick:()=>void n(),className:`font-mono text-xs text-muted-foreground hover:text-foreground`,children:IA(e)},void 0,!1,{fileName:$,lineNumber:149,columnNumber:5},this)}function QR({task:e}){let t=e?.metadata?.sectionProgress,n=e?.metadata?.backlogCurationProgress,r=e?.metadata?.progressMessage;return(0,I.jsxDEV)(`div`,{className:`mt-2 grid gap-2 text-xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{className:`flex items-start gap-2`,children:[(0,I.jsxDEV)(Jn,{className:`mt-0.5 h-3.5 w-3.5 shrink-0`},void 0,!1,{fileName:$,lineNumber:161,columnNumber:48},this),` `,(0,I.jsxDEV)(`span`,{className:`min-w-0 break-words text-foreground`,children:r??`Planning in progress…`},void 0,!1,{fileName:$,lineNumber:161,columnNumber:100},this)]},void 0,!0,{fileName:$,lineNumber:161,columnNumber:7},this),n&&(0,I.jsxDEV)($R,{progress:n},void 0,!1,{fileName:$,lineNumber:162,columnNumber:35},this),t&&(0,I.jsxDEV)(oz,{progress:t},void 0,!1,{fileName:$,lineNumber:163,columnNumber:20},this)]},void 0,!0,{fileName:$,lineNumber:160,columnNumber:5},this)}function $R({progress:e}){let t=Math.max(0,e.total),n=t===0?0:Math.min(100,Math.round(e.completed/t*100)),r=ez(e.items);return(0,I.jsxDEV)(`div`,{className:`rounded-md border border-border/70 bg-muted/20 p-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1`,children:[(0,I.jsxDEV)(`span`,{className:`font-medium text-foreground`,children:`Backlog item agents`},void 0,!1,{fileName:$,lineNumber:182,columnNumber:9},this),(0,I.jsxDEV)(`span`,{className:`text-2xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:[e.completed,`/`,t,` analyzed`]},void 0,!0,{fileName:$,lineNumber:184,columnNumber:11},this),e.running>0&&(0,I.jsxDEV)(`span`,{className:`ml-2 text-[color:var(--lane-progress)]`,children:[e.running,` running`]},void 0,!0,{fileName:$,lineNumber:185,columnNumber:36},this),e.remaining>0&&(0,I.jsxDEV)(`span`,{className:`ml-2`,children:[e.remaining,` queued`]},void 0,!0,{fileName:$,lineNumber:186,columnNumber:38},this)]},void 0,!0,{fileName:$,lineNumber:183,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:181,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-2 h-1.5 overflow-hidden rounded-full bg-muted`,children:(0,I.jsxDEV)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${n}%`}},void 0,!1,{fileName:$,lineNumber:190,columnNumber:9},this)},void 0,!1,{fileName:$,lineNumber:189,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-3 grid gap-3`,children:r.map(e=>(0,I.jsxDEV)(nz,{group:e},e.key,!1,{fileName:$,lineNumber:193,columnNumber:32},this))},void 0,!1,{fileName:$,lineNumber:192,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:180,columnNumber:5},this)}function ez(e){let t={running:[],attention:[],pending:[],done:[]};for(let n of e)t[tz(n.status)].push(n);return[{key:`running`,label:`Running`,cap:1/0},{key:`attention`,label:`Needs attention`,cap:1/0},{key:`pending`,label:`Queued`,cap:10},{key:`done`,label:`Analyzed`,cap:10}].filter(e=>t[e.key].length>0).map(e=>({...e,items:t[e.key]}))}function tz(e){return e===`running`?`running`:e===`failed`||e===`cancelled`?`attention`:e===`pending`?`pending`:`done`}function nz({group:e}){let t=e.items.slice(0,e.cap),n=e.items.length-t.length;return(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`div`,{className:`mb-1.5 flex items-center gap-2 text-2xs uppercase tracking-wide text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{children:e.label},void 0,!1,{fileName:$,lineNumber:229,columnNumber:9},this),(0,I.jsxDEV)(`span`,{className:`h-px flex-1 bg-border/60`},void 0,!1,{fileName:$,lineNumber:230,columnNumber:9},this),(0,I.jsxDEV)(`span`,{children:e.items.length},void 0,!1,{fileName:$,lineNumber:231,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:228,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`grid gap-1.5`,children:[t.map(e=>(0,I.jsxDEV)(rz,{item:e},e.itemId,!1,{fileName:$,lineNumber:234,columnNumber:30},this)),n>0&&(0,I.jsxDEV)(`p`,{className:`px-1 text-2xs text-muted-foreground`,children:[`+`,n,` more`]},void 0,!0,{fileName:$,lineNumber:235,columnNumber:24},this)]},void 0,!0,{fileName:$,lineNumber:233,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:227,columnNumber:5},this)}function rz({item:e}){let t=iz(e.status);return(0,I.jsxDEV)(`div`,{title:e.summary??e.itemId,className:`flex items-start gap-2 rounded border border-border/60 bg-background/60 px-2.5 py-1.5`,children:[e.status===`running`?(0,I.jsxDEV)(Jn,{className:xn(`mt-0.5 h-3.5 w-3.5 shrink-0`,t.className)},void 0,!1,{fileName:$,lineNumber:246,columnNumber:11},this):(0,I.jsxDEV)(t.icon,{className:xn(`mt-0.5 h-3.5 w-3.5 shrink-0`,t.className),"aria-hidden":`true`},void 0,!1,{fileName:$,lineNumber:247,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`min-w-0 line-clamp-2 leading-snug text-foreground`,children:e.title??e.itemId},void 0,!1,{fileName:$,lineNumber:250,columnNumber:11},this),e.verdict&&(0,I.jsxDEV)(nk,{tone:az(e.verdict),className:`shrink-0`,children:e.verdict},void 0,!1,{fileName:$,lineNumber:251,columnNumber:28},this)]},void 0,!0,{fileName:$,lineNumber:249,columnNumber:9},this),e.summary&&(0,I.jsxDEV)(`p`,{className:`mt-0.5 line-clamp-2 text-2xs text-muted-foreground`,children:e.summary},void 0,!1,{fileName:$,lineNumber:253,columnNumber:26},this)]},void 0,!0,{fileName:$,lineNumber:248,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:244,columnNumber:5},this)}function iz(e){switch(e){case`running`:return{icon:ce,className:`text-[color:var(--lane-progress)]`};case`completed`:case`cache-hit`:return{icon:se,className:`text-[color:var(--lane-done)]`};case`failed`:return{icon:ze,className:`text-[color:var(--lane-blocked)]`};case`cancelled`:return{icon:A,className:`text-muted-foreground`};default:return{icon:ce,className:`text-muted-foreground/60`}}}function az(e){let t=e.toLowerCase();return t.includes(`ship`)||t===`done`||t===`complete`?`done`:t.includes(`partial`)||t.includes(`progress`)?`warn`:t.includes(`need`)||t.includes(`keep`)?`info`:(t.includes(`archive`)||t.includes(`drop`)||t.includes(`remove`),`neutral`)}function oz({progress:e}){let t=e.coveredSections??[],n=e.remainingSections??[];return!e.currentSection&&t.length===0&&n.length===0?null:(0,I.jsxDEV)(`div`,{className:`grid gap-2 rounded-md border border-border/70 bg-muted/20 p-3`,children:[(0,I.jsxDEV)(`span`,{className:`font-medium text-foreground`,children:`Draft sections`},void 0,!1,{fileName:$,lineNumber:292,columnNumber:7},this),e.currentSection&&(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(Jn,{className:`h-3 w-3 shrink-0 text-[color:var(--lane-progress)]`},void 0,!1,{fileName:$,lineNumber:295,columnNumber:11},this),(0,I.jsxDEV)(`span`,{children:[`Current section: `,(0,I.jsxDEV)(`span`,{className:`font-mono text-foreground`,children:e.currentSection},void 0,!1,{fileName:$,lineNumber:296,columnNumber:34},this)]},void 0,!0,{fileName:$,lineNumber:296,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:294,columnNumber:9},this),t.length>0&&(0,I.jsxDEV)(sz,{label:`Covered`,sections:t,tone:`done`},void 0,!1,{fileName:$,lineNumber:299,columnNumber:30},this),n.length>0&&(0,I.jsxDEV)(sz,{label:`Remaining`,sections:n,tone:`neutral`},void 0,!1,{fileName:$,lineNumber:300,columnNumber:32},this)]},void 0,!0,{fileName:$,lineNumber:291,columnNumber:5},this)}function sz({label:e,sections:t,tone:n}){return(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[(0,I.jsxDEV)(`span`,{className:`mr-1 text-2xs uppercase tracking-wide text-muted-foreground`,children:e},void 0,!1,{fileName:$,lineNumber:308,columnNumber:7},this),t.map(e=>(0,I.jsxDEV)(nk,{tone:n,className:`font-mono normal-case`,children:e},e,!1,{fileName:$,lineNumber:309,columnNumber:34},this))]},void 0,!0,{fileName:$,lineNumber:307,columnNumber:5},this)}var cz=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/planning-task-drawer.tsx`,lz=sw();function uz({item:e,busy:t,titles:n,onCancel:r,onRemove:i,onRetry:a,onRedraft:o,onApply:s,applyError:c,onClose:l}){let[u,d]=w.useState(e),[f,p]=w.useState(`idle`),[m,h]=w.useState();return w.useEffect(()=>{if(d(e),h(void 0),e.resultOmitted!==!0){p(`idle`);return}let t=!0;return p(`loading`),lz.invokeAction(`get-planning-agent-task`,{taskId:e.entry.taskId}).then(n=>{t&&(d({...e,available:!0,status:n.task.status,task:n.task,resultOmitted:!1}),p(`idle`))}).catch(e=>{t&&(h(e instanceof Error?e.message:String(e)),p(`error`))}),()=>{t=!1}},[e]),(0,I.jsxDEV)(fA,{ariaLabel:`Planning task details`,title:`Planning task`,headerAlign:`center`,closeLabel:`Close planning task`,onClose:l,children:[(0,I.jsxDEV)(JR,{item:u,busy:t,titles:n,onCancel:r,onRemove:async e=>{await i(e),l()},onRetry:a,onRedraft:o,onApply:s,applyError:c,detailLoading:f===`loading`,detailError:m},void 0,!1,{fileName:cz,lineNumber:59,columnNumber:7},this),(0,I.jsxDEV)(jL,{activityLog:u.task?.metadata?.activityLog},void 0,!1,{fileName:cz,lineNumber:72,columnNumber:7},this)]},void 0,!0,{fileName:cz,lineNumber:58,columnNumber:5},this)}var dz=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/activity-rail.tsx`,fz=4;function pz(e){return e.task?.status??e.status}function mz(e){let t=pz(e);return t===`queued`||t===`running`}function hz(e){return pz(e)===`completed`&&!!e.task?.result&&e.available}function gz(e,t){if(e.purpose===`recommendation-refresh`)return`Recommendation refresh`;if(e.purpose===`backlog-curation`)return`Backlog audit`;if(e.session)return`Plan ${e.session}`;let n=e.selection?.recommendationRef??e.selection?.sourceRecommendationRef;if(n)return`Plan lane ${n}`;let r=e.selection?tT(e.selection,t):null;return r?`Plan: ${r}`:e.selection?.epicId?`Plan epic ${e.selection.epicId}`:`Planning task`}function _z({workflows:e,titles:t}){let n=e.items.filter(mz),r=e.items.filter(t=>!mz(t)&&!!e.applyErrors[t.entry.taskId]),i=new Set([...n,...r].map(e=>e.entry.taskId)),a=e.items.filter(e=>!mz(e)&&!i.has(e.entry.taskId)).slice(0,fz),o=[...n,...r,...a],[s,c]=w.useState(null),l=s?e.items.find(e=>e.entry.taskId===s)??null:null;return w.useEffect(()=>{s&&!e.items.some(e=>e.entry.taskId===s)&&c(null)},[s,e.items]),(0,I.jsxDEV)(`div`,{className:`grid gap-3`,"aria-label":`Workstation activity`,children:[(0,I.jsxDEV)(qO,{icon:te,iconClassName:`text-primary`,title:`Planning activity`,action:n.length>0?(0,I.jsxDEV)(Tn,{variant:`outline`,className:`ml-auto`,children:[n.length,` running`]},void 0,!0,{fileName:dz,lineNumber:84,columnNumber:38},this):void 0,contentClassName:`grid gap-2`,children:e.loading&&o.length===0?(0,I.jsxDEV)(`p`,{className:`text-xs text-muted-foreground`,children:`Loading tasks…`},void 0,!1,{fileName:dz,lineNumber:88,columnNumber:13},this):o.length===0?(0,I.jsxDEV)(Ck,{className:`p-2 text-xs`,children:`No planning tasks yet.`},void 0,!1,{fileName:dz,lineNumber:90,columnNumber:15},this):o.map(n=>(0,I.jsxDEV)(vz,{item:n,busy:e.busy,titles:t,applyError:e.applyErrors[n.entry.taskId],onOpen:()=>c(n.entry.taskId),onCancel:()=>void e.cancel(n.entry.taskId)},n.entry.taskId,!1,{fileName:dz,lineNumber:92,columnNumber:15},this))},void 0,!1,{fileName:dz,lineNumber:80,columnNumber:7},this),(0,I.jsxDEV)(`p`,{className:`px-1 text-2xs leading-relaxed text-muted-foreground`,children:`Builds run in the global queue (see the top bar). Open a plan to follow its build.`},void 0,!1,{fileName:dz,lineNumber:104,columnNumber:7},this),l&&(0,I.jsxDEV)(uz,{item:l,busy:e.busy,titles:t,onCancel:e.cancel,onRemove:e.remove,onRetry:e.retry,onRedraft:e.redraft,onApply:e.apply,applyError:e.applyErrors[l.entry.taskId],onClose:()=>c(null)},void 0,!1,{fileName:dz,lineNumber:109,columnNumber:9},this)]},void 0,!0,{fileName:dz,lineNumber:79,columnNumber:5},this)}function vz({item:e,busy:t,titles:n,applyError:r,onOpen:i,onCancel:a}){let o=pz(e),s=gz(e.entry,n),c=r?.message??e.task?.metadata?.progressMessage??e.staleReason,l=FA(e.task?.startedAt??e.entry.createdAt);return(0,I.jsxDEV)(`div`,{role:`button`,tabIndex:0,onClick:i,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),i())},className:`cursor-pointer rounded-md border border-border bg-background/40 p-2 text-left transition-colors hover:border-primary`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-start gap-2`,children:[(0,I.jsxDEV)(`span`,{className:`min-w-0 flex-1 truncate text-xs font-medium text-text-bright`,title:s,children:s},void 0,!1,{fileName:dz,lineNumber:140,columnNumber:9},this),r&&(0,I.jsxDEV)(nk,{tone:`destructive`,className:`shrink-0`,children:`Apply failed`},void 0,!1,{fileName:dz,lineNumber:141,columnNumber:24},this),hz(e)&&(0,I.jsxDEV)(nk,{tone:`accent`,className:`shrink-0`,children:`Review`},void 0,!1,{fileName:dz,lineNumber:142,columnNumber:32},this),o&&(0,I.jsxDEV)(nk,{tone:QO(o),className:`shrink-0 uppercase tracking-wide`,children:o},void 0,!1,{fileName:dz,lineNumber:143,columnNumber:20},this),(0,I.jsxDEV)(j,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`},void 0,!1,{fileName:dz,lineNumber:144,columnNumber:9},this)]},void 0,!0,{fileName:dz,lineNumber:139,columnNumber:7},this),(0,I.jsxDEV)(`div`,{className:`mt-1 flex items-center gap-2 text-2xs text-muted-foreground`,children:[(0,I.jsxDEV)(`code`,{title:e.entry.taskId,children:IA(e.entry.taskId)},void 0,!1,{fileName:dz,lineNumber:147,columnNumber:9},this),l&&(0,I.jsxDEV)(`span`,{children:[`· `,l]},void 0,!0,{fileName:dz,lineNumber:148,columnNumber:18},this),mz(e)&&(0,I.jsxDEV)(L,{variant:`ghost`,size:`sm`,className:`ml-auto h-6 px-2 text-2xs`,disabled:t,onClick:e=>{e.stopPropagation(),a()},children:[(0,I.jsxDEV)(Ve,{className:`h-3 w-3`},void 0,!1,{fileName:dz,lineNumber:151,columnNumber:13},this),` Cancel`]},void 0,!0,{fileName:dz,lineNumber:150,columnNumber:11},this)]},void 0,!0,{fileName:dz,lineNumber:146,columnNumber:7},this),c&&(0,I.jsxDEV)(`p`,{className:`mt-1 truncate text-2xs text-muted-foreground`,title:c,children:c},void 0,!1,{fileName:dz,lineNumber:155,columnNumber:19},this)]},void 0,!0,{fileName:dz,lineNumber:132,columnNumber:5},this)}var yz=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/backlog/analyze-backlog-control.tsx`;function bz({busy:e,analyzing:t,onAnalyze:n}){let[r,i]=w.useState(!1),a=e||t;return(0,I.jsxDEV)(`div`,{className:`relative flex items-center gap-1.5`,children:[(0,I.jsxDEV)(L,{size:`sm`,className:`h-7 flex-1 gap-1 px-2 text-2xs`,disabled:a,title:t?`Backlog analysis is already running - see Planning activity below`:`Analyze backlog and refresh recommendations`,onClick:()=>void n(),children:[a?(0,I.jsxDEV)(Jn,{className:`h-3 w-3`},void 0,!1,{fileName:yz,lineNumber:30,columnNumber:21},this):(0,I.jsxDEV)(re,{className:`h-3 w-3`},void 0,!1,{fileName:yz,lineNumber:30,columnNumber:55},this),` `,t?`Analyzing…`:`Analyze backlog`]},void 0,!0,{fileName:yz,lineNumber:23,columnNumber:7},this),(0,I.jsxDEV)(`button`,{type:`button`,"aria-label":`About backlog analysis`,"aria-expanded":r,className:`grid h-7 w-7 place-items-center rounded border border-border text-muted-foreground hover:text-foreground`,onClick:()=>i(e=>!e),children:(0,I.jsxDEV)(be,{className:`h-3.5 w-3.5`},void 0,!1,{fileName:yz,lineNumber:39,columnNumber:9},this)},void 0,!1,{fileName:yz,lineNumber:32,columnNumber:7},this),r&&(0,I.jsxDEV)(`div`,{className:`absolute right-0 top-8 z-20 w-72 rounded-md border border-border bg-card p-2 text-xs text-foreground shadow-lg`,children:`Checks open backlog items against current source, then prepares a reviewable curation draft and refreshed recommendations. Current source is the authority for shipped/superseded status; git, PR, lifecycle, and session history are navigation hints.`},void 0,!1,{fileName:yz,lineNumber:42,columnNumber:9},this)]},void 0,!0,{fileName:yz,lineNumber:22,columnNumber:5},this)}var xz=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/recommendations-rail.tsx`,Sz=5;function Cz(e){if(!e)return null;let t=e.reasons?.[0]??e.staleReasons?.[0];if(e.state===`stale`){let n=FA(e.staleSince);return{text:n?`Stale since ${n}`:`Stale - re-analyze before planning`,detail:t?.summary??t?.message}}if(e.state===`fresh`){let t=FA(e.freshAt);return{text:t?`Fresh as of ${t}`:`Fresh with the current backlog`}}return null}function wz({recommendations:e,actionability:t,status:n,freshness:r,selection:i,busy:a,analyzing:o,onAnalyze:s,onForkLane:c}){let[l,u]=w.useState(null),d=e=>{u(e),c(e).finally(()=>u(null))},f=(e?.recommendedNextSequence??[]).slice(0,Sz),p=e?.safeParallelizableGroups??[],m=e?.blockedChains??[],h=e?.rationaleAndAssumptions??[],g=e=>i.titles.get(e)??e,_=Cz(n),v=w.useMemo(()=>Tz(t),[t]);return(0,I.jsxDEV)(qO,{icon:xe,iconClassName:`text-[color:var(--lane-ready)]`,title:`Recommendations`,action:(0,I.jsxDEV)(pR,{freshness:r,status:n},void 0,!1,{fileName:xz,lineNumber:74,columnNumber:15},this),contentClassName:`grid gap-3`,children:[(0,I.jsxDEV)(bz,{busy:a,analyzing:o,onAnalyze:s},void 0,!1,{fileName:xz,lineNumber:77,columnNumber:9},this),_&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,title:_.detail,children:_.text},void 0,!1,{fileName:xz,lineNumber:78,columnNumber:27},this),f.length===0&&p.length===0&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:`No planning guidance yet. Analyze the backlog to generate recommendations.`},void 0,!1,{fileName:xz,lineNumber:80,columnNumber:11},this),f.length>0&&(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`span`,{className:`mb-1 block text-2xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Next up`},void 0,!1,{fileName:xz,lineNumber:85,columnNumber:13},this),(0,I.jsxDEV)(`ol`,{className:`grid gap-1`,children:f.map((e,t)=>{let n=v?Ez(v,e):void 0;return(0,I.jsxDEV)(`li`,{children:v!==null&&n?.state!==`actionable`?(0,I.jsxDEV)(kz,{ordinal:t+1,label:g(e.itemId),actionability:n??Dz(e.itemId)},void 0,!1,{fileName:xz,lineNumber:93,columnNumber:23},this):(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>i.pickItem(e.itemId),title:`Toggle this item in the backlog selection`,className:`flex w-full items-center gap-2 rounded border px-1.5 py-1 text-left transition-colors hover:border-primary ${i.selected.has(e.itemId)?`border-primary bg-primary/10`:`border-border`}`,children:[(0,I.jsxDEV)(`span`,{className:`inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[color:var(--lane-ready)]/20 text-2xs font-bold text-[color:var(--lane-ready)]`,children:t+1},void 0,!1,{fileName:xz,lineNumber:101,columnNumber:25},this),(0,I.jsxDEV)(`span`,{className:`line-clamp-2 min-w-0 break-words text-2xs leading-snug text-foreground`,children:g(e.itemId)},void 0,!1,{fileName:xz,lineNumber:102,columnNumber:25},this)]},void 0,!0,{fileName:xz,lineNumber:95,columnNumber:23},this)},e.ref??`seq-${t}-${e.itemId}`,!1,{fileName:xz,lineNumber:91,columnNumber:19},this)})},void 0,!1,{fileName:xz,lineNumber:86,columnNumber:13},this)]},void 0,!0,{fileName:xz,lineNumber:84,columnNumber:11},this),p.length>0&&(0,I.jsxDEV)(`div`,{children:[(0,I.jsxDEV)(`span`,{className:`mb-1 block text-2xs font-semibold uppercase tracking-wide text-muted-foreground`,children:`Lanes · safe in parallel`},void 0,!1,{fileName:xz,lineNumber:114,columnNumber:13},this),(0,I.jsxDEV)(`div`,{className:`grid gap-1.5`,children:p.map(e=>{let t=e.title??e.ref,n=v?.groupsByRef.get(e.ref),r=n?n.actionableItemIds:v?[]:e.itemIds.filter(e=>i.planEligibleIds.has(e)),o=v!==null&&(n===void 0||n.state===`non-actionable`||r.length===0),s=n?.state===`partially-actionable`;return(0,I.jsxDEV)(`div`,{className:`rounded-md border border-border p-2`,children:[(0,I.jsxDEV)(`span`,{className:`block min-w-0 truncate text-2xs font-semibold text-text-bright`,title:t,children:t},void 0,!1,{fileName:xz,lineNumber:124,columnNumber:21},this),n?.items.some(e=>e.state===`non-actionable`)&&(0,I.jsxDEV)(Oz,{group:n,label:g},void 0,!1,{fileName:xz,lineNumber:126,columnNumber:23},this),o?(0,I.jsxDEV)(`p`,{className:`mt-1.5 rounded border border-border bg-muted/20 px-1.5 py-1 text-2xs text-muted-foreground`,children:`No actionable items remain in this lane.`},void 0,!1,{fileName:xz,lineNumber:129,columnNumber:23},this):(0,I.jsxDEV)(`div`,{className:`mt-1.5 flex items-center gap-2`,children:[(0,I.jsxDEV)(L,{size:`xs`,disabled:a||r.length===0,title:r.length===0?`No items in this lane are eligible for a new plan.`:`Start an AI planning task for this lane’s actionable items.`,onClick:()=>void i.planLane(r,e.ref),children:[`Plan`,r.length<e.itemIds.length?` (${r.length})`:``]},void 0,!0,{fileName:xz,lineNumber:132,columnNumber:25},this),(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>i.pickItems(r),className:`text-2xs text-muted-foreground hover:text-foreground`,title:s?`Toggle the actionable items in this lane in the backlog selection`:`Toggle every item in this lane in the backlog selection`,children:s?`Select actionable`:`Select`},void 0,!1,{fileName:xz,lineNumber:140,columnNumber:25},this),n?.state!==`partially-actionable`&&(0,I.jsxDEV)(`button`,{type:`button`,disabled:l!==null,onClick:()=>d(e.ref),className:`ml-auto inline-flex items-center gap-0.5 text-2xs text-muted-foreground hover:text-foreground disabled:opacity-50`,title:`Fork this lane into an editable draft plan unit`,children:[(0,I.jsxDEV)(M,{className:`h-3 w-3`},void 0,!1,{fileName:xz,lineNumber:156,columnNumber:29},this),` `,l===e.ref?`Forking…`:`Fork to draft`]},void 0,!0,{fileName:xz,lineNumber:149,columnNumber:27},this)]},void 0,!0,{fileName:xz,lineNumber:131,columnNumber:23},this)]},e.ref,!0,{fileName:xz,lineNumber:123,columnNumber:19},this)})},void 0,!1,{fileName:xz,lineNumber:115,columnNumber:13},this)]},void 0,!0,{fileName:xz,lineNumber:113,columnNumber:11},this),(m.length>0||h.length>0)&&(0,I.jsxDEV)(`details`,{className:`border-t border-border pt-2`,children:[(0,I.jsxDEV)(`summary`,{className:`cursor-pointer text-2xs text-muted-foreground`,children:`Blocked chains & rationale`},void 0,!1,{fileName:xz,lineNumber:170,columnNumber:13},this),m.length>0&&(0,I.jsxDEV)(`ul`,{className:`mt-1.5 grid gap-1.5`,children:m.map((e,t)=>(0,I.jsxDEV)(`li`,{className:`text-2xs`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[e.itemIds.map(e=>(0,I.jsxDEV)(`span`,{className:`rounded border border-[color:var(--lane-blocked)]/30 bg-[color:var(--lane-blocked)]/10 px-1 text-[color:var(--lane-blocked)]`,children:g(e)},e,!1,{fileName:xz,lineNumber:176,columnNumber:50},this)),(0,I.jsxDEV)(`span`,{className:`text-muted-foreground`,children:`blocked by`},void 0,!1,{fileName:xz,lineNumber:177,columnNumber:23},this),e.blockedBy.map(e=>(0,I.jsxDEV)(`span`,{className:`rounded border border-[color:var(--prio-medium)]/30 bg-[color:var(--prio-medium)]/10 px-1 text-[color:var(--prio-medium)]`,children:g(e)},e,!1,{fileName:xz,lineNumber:178,columnNumber:52},this))]},void 0,!0,{fileName:xz,lineNumber:175,columnNumber:21},this),e.rationale&&(0,I.jsxDEV)(`p`,{className:`mt-0.5 text-muted-foreground`,children:e.rationale},void 0,!1,{fileName:xz,lineNumber:180,columnNumber:41},this)]},e.ref??t,!0,{fileName:xz,lineNumber:174,columnNumber:19},this))},void 0,!1,{fileName:xz,lineNumber:172,columnNumber:15},this),h.length>0&&(0,I.jsxDEV)(`ul`,{className:`mt-1.5 list-disc pl-4 text-2xs text-muted-foreground`,children:h.map(e=>(0,I.jsxDEV)(`li`,{children:e},e,!1,{fileName:xz,lineNumber:187,columnNumber:43},this))},void 0,!1,{fileName:xz,lineNumber:186,columnNumber:15},this)]},void 0,!0,{fileName:xz,lineNumber:169,columnNumber:11},this)]},void 0,!0,{fileName:xz,lineNumber:70,columnNumber:5},this)}function Tz(e){if(e===null)return null;let t=[...e.activeWork,...e.readyCandidates,...e.recommendedNextSequence];return{entriesByRef:new Map(t.flatMap(e=>e.ref?[[e.ref,e.actionability]]:[])),entriesByItemId:new Map(t.map(e=>[e.itemId,e.actionability])),groupsByRef:new Map(e.safeParallelizableGroups.map(e=>[e.ref,e]))}}function Ez(e,t){return(t.ref?e.entriesByRef.get(t.ref):void 0)??e.entriesByItemId.get(t.itemId)}function Dz(e){return{itemId:e,state:`non-actionable`,lifecycleState:`none`,reasonMessage:`This recommendation is not currently available for planning.`,associatedLinks:[]}}function Oz({group:e,label:t}){let n=e.items.filter(e=>e.state===`non-actionable`);return n.length===0?null:(0,I.jsxDEV)(`div`,{className:`mt-1.5 grid gap-1`,children:n.map(e=>(0,I.jsxDEV)(kz,{label:t(e.itemId),actionability:e},e.itemId,!1,{fileName:xz,lineNumber:226,columnNumber:9},this))},void 0,!1,{fileName:xz,lineNumber:224,columnNumber:5},this)}function kz({ordinal:e,label:t,actionability:n}){return(0,I.jsxDEV)(`div`,{className:`rounded border border-border bg-muted/20 px-1.5 py-1 text-left`,children:(0,I.jsxDEV)(`div`,{className:`flex items-start gap-2`,children:[e!==void 0&&(0,I.jsxDEV)(`span`,{className:`inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-muted text-2xs font-bold text-muted-foreground`,children:e},void 0,!1,{fileName:xz,lineNumber:236,columnNumber:35},this),(0,I.jsxDEV)(`div`,{className:`min-w-0 flex-1`,children:[(0,I.jsxDEV)(`p`,{className:`line-clamp-2 break-words text-2xs leading-snug text-foreground`,children:t},void 0,!1,{fileName:xz,lineNumber:238,columnNumber:11},this),(0,I.jsxDEV)(`p`,{className:`mt-0.5 text-2xs text-muted-foreground`,children:n.reasonMessage??`This recommendation is not currently actionable.`},void 0,!1,{fileName:xz,lineNumber:239,columnNumber:11},this),(0,I.jsxDEV)(Az,{links:n.associatedLinks},void 0,!1,{fileName:xz,lineNumber:240,columnNumber:11},this)]},void 0,!0,{fileName:xz,lineNumber:237,columnNumber:9},this)]},void 0,!0,{fileName:xz,lineNumber:235,columnNumber:7},this)},void 0,!1,{fileName:xz,lineNumber:234,columnNumber:5},this)}function Az({links:e}){return e.length===0?null:(0,I.jsxDEV)(`ul`,{className:`mt-1 flex flex-wrap gap-1`,"aria-label":`Suppression evidence links`,children:e.map((e,t)=>(0,I.jsxDEV)(`li`,{children:e.prUrl?(0,I.jsxDEV)(`a`,{className:`rounded border border-border px-1 text-2xs text-[color:var(--lane-ready)] underline`,href:e.prUrl,target:`_blank`,rel:`noreferrer`,title:Mz(e),children:jz(e)},void 0,!1,{fileName:xz,lineNumber:254,columnNumber:13},this):(0,I.jsxDEV)(`span`,{className:`rounded border border-border px-1 text-2xs text-muted-foreground`,title:Mz(e),children:jz(e)},void 0,!1,{fileName:xz,lineNumber:256,columnNumber:13},this)},`${e.kind}-${e.label}-${t}`,!1,{fileName:xz,lineNumber:252,columnNumber:9},this))},void 0,!1,{fileName:xz,lineNumber:250,columnNumber:5},this)}function jz(e){return e.label||e.session||e.taskId||e.prdId||e.runId||e.sessionId||e.prUrl||e.kind}function Mz(e){return[e.label||e.kind,e.status?`status: ${e.status}`:void 0,e.session?`session: ${e.session}`:void 0,e.taskId?`task: ${e.taskId}`:void 0,e.prdId?`prd: ${e.prdId}`:void 0,e.runId?`run: ${e.runId}`:void 0,e.sessionId?`build session: ${e.sessionId}`:void 0,e.featureBranch?`branch: ${e.featureBranch}`:void 0,e.commitSha?`commit: ${e.commitSha}`:void 0,e.path?`path: ${e.path}`:void 0].filter(e=>!!e).join(`
381
+ `)}var Nz=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/selection-rail.tsx`,Pz=8;function Fz({selection:e,busy:t}){let n=e.selectedIds;if(n.length===0)return null;let r=e.selectedPlanEligibleIds.length,i=n.slice(0,Pz),a=n.length-i.length;return(0,I.jsxDEV)(qO,{className:`border-primary/50`,icon:Se,iconClassName:`text-primary`,title:`Build plan`,action:(0,I.jsxDEV)(`span`,{className:`ml-auto text-2xs font-normal text-muted-foreground`,children:[n.length,` selected`,r===n.length?``:` · ${r} eligible`]},void 0,!0,{fileName:Nz,lineNumber:29,columnNumber:9},this),contentClassName:`grid gap-2`,children:[(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:[i.map(t=>(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>e.toggle(t),title:`Remove from selection`,className:`inline-flex items-center gap-1 rounded border border-border bg-background/40 px-1.5 py-0.5 text-2xs text-foreground transition-colors hover:border-primary`,children:[(0,I.jsxDEV)(`span`,{className:`max-w-40 truncate`,children:e.titles.get(t)??t},void 0,!1,{fileName:Nz,lineNumber:44,columnNumber:15},this),(0,I.jsxDEV)(Ve,{className:`h-3 w-3 text-muted-foreground`},void 0,!1,{fileName:Nz,lineNumber:45,columnNumber:15},this)]},t,!0,{fileName:Nz,lineNumber:37,columnNumber:13},this)),a>0&&(0,I.jsxDEV)(`span`,{className:`px-1 text-2xs text-muted-foreground`,children:[`+`,a,` more`]},void 0,!0,{fileName:Nz,lineNumber:48,columnNumber:26},this)]},void 0,!0,{fileName:Nz,lineNumber:35,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(L,{size:`sm`,className:`flex-1`,disabled:t||r===0,onClick:()=>void e.promote(),children:`Promote to a build plan`},void 0,!1,{fileName:Nz,lineNumber:51,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`sm`,variant:`ghost`,onClick:e.clear,children:`Clear`},void 0,!1,{fileName:Nz,lineNumber:54,columnNumber:11},this)]},void 0,!0,{fileName:Nz,lineNumber:50,columnNumber:9},this),r===0&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:`None of the selected items are eligible for a new plan.`},void 0,!1,{fileName:Nz,lineNumber:56,columnNumber:33},this)]},void 0,!0,{fileName:Nz,lineNumber:23,columnNumber:5},this)}function Iz(e){if(e.type===`backlog_item`)return{kind:`item`,itemId:e.id};if(e.type===`session_plan`){let t=e.refs?.session??e.id.replace(/^plan:/,``);return{kind:`plan`,planKey:t.startsWith(`plan:`)?t:`plan:${t}`}}return{kind:`display`}}var Lz=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/search/planning-search-panel.tsx`,Rz=[`backlog_item`,`epic`,`session_plan`,`recommendation`],zz=20;function Bz({openItem:e,openPlan:t}){let[n,r]=w.useState(``),[i,a]=w.useState(Rz),[o,s]=w.useState(null),[c,l]=w.useState(!1),[u,d]=w.useState(null),f=w.useCallback(async(e=0)=>{let t=n.trim();if(t){if(i.length===0){d(`Select at least one result type.`),s(null);return}l(!0),d(null);try{let n=await sw().invokeAction(`search-planning-records`,{query:t,limit:zz,offset:e,fields:[`rank`,`snippet`,`refs`,`updatedAt`],types:i});s(n)}catch(e){d(e instanceof Error?e.message:String(e))}finally{l(!1)}}},[n,i]);return(0,I.jsxDEV)(qO,{icon:Fe,title:`Planning search`,contentClassName:`grid gap-2`,children:[(0,I.jsxDEV)(`form`,{className:`grid gap-2`,onSubmit:e=>{e.preventDefault(),f(0)},children:[(0,I.jsxDEV)(`input`,{"aria-label":`Search planning records`,value:n,onChange:e=>r(e.target.value),placeholder:`Search items, epics, plans…`,className:`h-8 rounded border border-input bg-background px-2 text-xs`},void 0,!1,{fileName:Lz,lineNumber:44,columnNumber:9},this),(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1`,children:Rz.map(e=>(0,I.jsxDEV)(`label`,{className:`inline-flex items-center gap-1 rounded border border-border px-1.5 py-0.5 text-2xs text-muted-foreground`,children:[(0,I.jsxDEV)(`input`,{type:`checkbox`,checked:i.includes(e),onChange:()=>a(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},void 0,!1,{fileName:Lz,lineNumber:48,columnNumber:15},this),e.replace(`_`,` `)]},e,!0,{fileName:Lz,lineNumber:47,columnNumber:13},this))},void 0,!1,{fileName:Lz,lineNumber:45,columnNumber:9},this),i.length===0&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-destructive`,children:`Select at least one result type.`},void 0,!1,{fileName:Lz,lineNumber:53,columnNumber:40},this),(0,I.jsxDEV)(L,{size:`sm`,type:`submit`,disabled:c||n.trim().length===0||i.length===0,children:c?`Searching…`:`Search`},void 0,!1,{fileName:Lz,lineNumber:54,columnNumber:9},this)]},void 0,!0,{fileName:Lz,lineNumber:43,columnNumber:7},this),u&&(0,I.jsxDEV)(Kn,{children:u},void 0,!1,{fileName:Lz,lineNumber:56,columnNumber:17},this),o?.indexDirty&&(0,I.jsxDEV)(`p`,{className:`rounded border border-[color:var(--prio-medium)]/40 bg-[color:var(--prio-medium)]/10 p-1.5 text-2xs text-[color:var(--prio-medium)]`,children:[`Search index dirty: `,o.indexStatus.dirtyCount,` documents need rebuild.`]},void 0,!0,{fileName:Lz,lineNumber:57,columnNumber:28},this),o&&(0,I.jsxDEV)(Vz,{counts:o.countsByType},void 0,!1,{fileName:Lz,lineNumber:58,columnNumber:16},this),(0,I.jsxDEV)(`div`,{className:`grid gap-1`,children:o?.results.map(n=>(0,I.jsxDEV)(Hz,{result:n,openItem:e,openPlan:t},`${n.type}:${n.id}`,!1,{fileName:Lz,lineNumber:60,columnNumber:40},this))},void 0,!1,{fileName:Lz,lineNumber:59,columnNumber:7},this),o&&(0,I.jsxDEV)(`div`,{className:`flex items-center justify-between text-2xs text-muted-foreground`,children:[(0,I.jsxDEV)(`span`,{children:[o.page.returned,` of `,o.total,` results · offset `,o.page.offset]},void 0,!0,{fileName:Lz,lineNumber:64,columnNumber:11},this),o.page.hasMore&&(0,I.jsxDEV)(L,{size:`xs`,variant:`outline`,onClick:()=>void f(o.page.nextOffset??o.page.offset+o.page.returned),children:`Next`},void 0,!1,{fileName:Lz,lineNumber:65,columnNumber:33},this)]},void 0,!0,{fileName:Lz,lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:Lz,lineNumber:42,columnNumber:5},this)}function Vz({counts:e}){return(0,I.jsxDEV)(`div`,{className:`flex flex-wrap gap-1 text-2xs text-muted-foreground`,children:Rz.map(t=>(0,I.jsxDEV)(`span`,{className:`rounded border border-border px-1`,children:[t.replace(`_`,` `),`: `,e[t]??0]},t,!0,{fileName:Lz,lineNumber:73,columnNumber:100},this))},void 0,!1,{fileName:Lz,lineNumber:73,columnNumber:10},this)}function Hz({result:e,openItem:t,openPlan:n}){let r=Iz(e),i=(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(`span`,{className:`block text-2xs uppercase tracking-wide text-muted-foreground`,children:e.type.replace(`_`,` `)},void 0,!1,{fileName:Lz,lineNumber:78,columnNumber:21},this),(0,I.jsxDEV)(`span`,{className:`block text-xs font-medium text-text-bright`,children:e.title},void 0,!1,{fileName:Lz,lineNumber:78,columnNumber:138},this),e.snippet&&(0,I.jsxDEV)(Uz,{text:e.snippet.text},void 0,!1,{fileName:Lz,lineNumber:78,columnNumber:239},this)]},void 0,!0,{fileName:Lz,lineNumber:78,columnNumber:19},this);return r.kind===`item`?(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>t(r.itemId),className:`rounded border border-border p-2 text-left hover:border-primary`,children:i},void 0,!1,{fileName:Lz,lineNumber:79,columnNumber:38},this):r.kind===`plan`?(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>n(r.planKey),className:`rounded border border-border p-2 text-left hover:border-primary`,children:i},void 0,!1,{fileName:Lz,lineNumber:80,columnNumber:38},this):(0,I.jsxDEV)(`div`,{className:`rounded border border-border bg-muted/20 p-2`,children:i},void 0,!1,{fileName:Lz,lineNumber:81,columnNumber:10},this)}function Uz({text:e}){let t=e.split(/(<mark>|<\/mark>)/g),n=!1;return(0,I.jsxDEV)(`p`,{className:`mt-1 text-2xs text-muted-foreground`,children:t.map((e,t)=>e===`<mark>`?(n=!0,null):e===`</mark>`?(n=!1,null):n?(0,I.jsxDEV)(`mark`,{className:`rounded bg-primary/20 px-0.5 text-foreground`,children:e},t,!1,{fileName:Lz,lineNumber:87,columnNumber:219},this):(0,I.jsxDEV)(w.Fragment,{children:e},t,!1,{fileName:Lz,lineNumber:87,columnNumber:310},this))},void 0,!1,{fileName:Lz,lineNumber:87,columnNumber:10},this)}var Wz=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/storage/store-status-card.tsx`;function Gz({status:e,error:t}){return(0,I.jsxDEV)(`span`,{className:`inline-flex items-center rounded-full border border-border px-2 py-0.5 text-xs text-muted-foreground`,children:[`SQLite store · `,Mk(e,t).label]},void 0,!0,{fileName:Wz,lineNumber:13,columnNumber:10},this)}function Kz({status:e,error:t,onRefresh:n}){let[r,i]=w.useState(null),[a,o]=w.useState(null),[s,c]=w.useState(null),[l,u]=w.useState(!1),d=async(e,t={})=>{i(e),c(null);try{let r=await sw().invokeAction(e,t);o(r),await n()}catch(e){c(e instanceof Error?e.message:String(e))}finally{i(null)}};return(0,I.jsxDEV)(qO,{icon:he,title:`SQLite store`,contentClassName:`grid gap-2`,children:[t&&(0,I.jsxDEV)(Kn,{children:t},void 0,!1,{fileName:Wz,lineNumber:34,columnNumber:17},this),s&&(0,I.jsxDEV)(Kn,{children:s},void 0,!1,{fileName:Wz,lineNumber:35,columnNumber:23},this),e?e.initialized?(0,I.jsxDEV)(Xz,{status:e},void 0,!1,{fileName:Wz,lineNumber:36,columnNumber:124},this):(0,I.jsxDEV)(qz,{status:e},void 0,!1,{fileName:Wz,lineNumber:36,columnNumber:164},this):(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:`Store status has not loaded yet.`},void 0,!1,{fileName:Wz,lineNumber:36,columnNumber:18},this),e?.initialized&&(0,I.jsxDEV)(`div`,{className:`grid gap-1.5 border-t border-border pt-2`,children:[(0,I.jsxDEV)(L,{size:`xs`,variant:`outline`,disabled:r!==null,onClick:()=>void d(`compact-planning-store`,{dryRun:!0,sampleLimit:5}),children:`Dry-run compaction`},void 0,!1,{fileName:Wz,lineNumber:39,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`xs`,variant:`outline`,disabled:r!==null,onClick:()=>void d(`rebuild-search-index`,{}),children:`Rebuild search index`},void 0,!1,{fileName:Wz,lineNumber:40,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`xs`,variant:`outline`,disabled:r!==null,onClick:()=>void d(`optimize-search-index`,{}),children:`Optimize search index`},void 0,!1,{fileName:Wz,lineNumber:41,columnNumber:11},this),(0,I.jsxDEV)(L,{size:`xs`,variant:l?`destructive`:`outline`,disabled:r!==null,onClick:()=>{if(!l){u(!0);return}d(`vacuum-planning-store`,{}),u(!1)},children:l?`Confirm VACUUM`:`Vacuum store…`},void 0,!1,{fileName:Wz,lineNumber:42,columnNumber:11},this),r&&(0,I.jsxDEV)(`p`,{className:`text-2xs text-muted-foreground`,children:[`Running `,r,`…`]},void 0,!0,{fileName:Wz,lineNumber:43,columnNumber:20},this)]},void 0,!0,{fileName:Wz,lineNumber:38,columnNumber:9},this),a&&(0,I.jsxDEV)(Jz,{report:a},void 0,!1,{fileName:Wz,lineNumber:46,columnNumber:18},this)]},void 0,!0,{fileName:Wz,lineNumber:33,columnNumber:5},this)}function qz({status:e}){return(0,I.jsxDEV)(`div`,{className:`grid gap-1 text-2xs text-muted-foreground`,children:[(0,I.jsxDEV)(`p`,{children:[`Store not initialized at `,(0,I.jsxDEV)(`code`,{children:e.storePath},void 0,!1,{fileName:Wz,lineNumber:54,columnNumber:35},this),`.`]},void 0,!0,{fileName:Wz,lineNumber:54,columnNumber:7},this),(0,I.jsxDEV)(`p`,{children:`The store is initialized automatically when eforge-plan writes canonical planning data. Use the backlog, recommendation, and planning actions to create records.`},void 0,!1,{fileName:Wz,lineNumber:55,columnNumber:7},this)]},void 0,!0,{fileName:Wz,lineNumber:53,columnNumber:5},this)}function Jz({report:e}){let t=[e.summary,e.status?`status: ${e.status}`:void 0,e.runId?`run: ${e.runId}`:void 0,e.category?`category: ${e.category}`:void 0,Yz(`pruned`,e.prunedCounts),Yz(`archived`,e.archivedCounts),e.searchRefresh?`search: refreshed ${e.searchRefresh.refreshed??0}, deleted ${e.searchRefresh.deleted??0}, cleared ${e.searchRefresh.clearedDirty??0}`:void 0,e.beforeBytes!==void 0&&e.afterBytes!==void 0?`db: ${Ak(e.beforeBytes)} → ${Ak(e.afterBytes)}`:void 0,e.walBytesBefore!==void 0&&e.walBytesAfter!==void 0?`wal: ${Ak(e.walBytesBefore)} → ${Ak(e.walBytesAfter)}`:void 0].filter(Boolean);return(0,I.jsxDEV)(`p`,{className:`rounded border border-border bg-muted/20 p-1.5 text-2xs text-muted-foreground`,children:t.length>0?t.join(` · `):`${e.actionId??`Maintenance`} complete.`},void 0,!1,{fileName:Wz,lineNumber:72,columnNumber:10},this)}function Yz(e,t){if(t)return`${e}: ${Object.values(t).reduce((e,t)=>e+t,0)}`}function Xz({status:e}){let t=e.searchIndexStatus,n=e.recentMaintenanceRuns[0],r=n?[n.summary,n.status,n.runId??n.actionId,n.finishedAt??n.completedAt??n.startedAt].filter(Boolean).join(` · `):void 0,i=Object.entries(e.retentionEligibilityCounts).filter(([,e])=>e>0),a=i.reduce((e,[,t])=>e+t,0),o=i.map(([e,t])=>`${e}: ${t}`).join(` · `);return(0,I.jsxDEV)(`div`,{className:`grid gap-1 text-2xs text-muted-foreground`,children:[(0,I.jsxDEV)(`p`,{children:[(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:`Schema:`},void 0,!1,{fileName:Wz,lineNumber:90,columnNumber:10},this),` `,e.sqliteSchemaVersion??`unknown`,` · `,(0,I.jsxDEV)(`code`,{children:e.storePath},void 0,!1,{fileName:Wz,lineNumber:90,columnNumber:103},this)]},void 0,!0,{fileName:Wz,lineNumber:90,columnNumber:7},this),(0,I.jsxDEV)(`p`,{children:[(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:`Files:`},void 0,!1,{fileName:Wz,lineNumber:91,columnNumber:10},this),` SQLite `,Ak(e.fileSizes.dbBytes),` · WAL `,Ak(e.fileSizes.walBytes),` · SHM `,Ak(e.fileSizes.shmBytes)]},void 0,!0,{fileName:Wz,lineNumber:91,columnNumber:7},this),t&&(0,I.jsxDEV)(`p`,{children:[(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:`Search:`},void 0,!1,{fileName:Wz,lineNumber:92,columnNumber:21},this),` `,t.dirty?`index dirty (${t.dirtyCount} docs)`:`index current`,t.lastRebuiltAt?` · rebuilt ${t.lastRebuiltAt}`:``]},void 0,!0,{fileName:Wz,lineNumber:92,columnNumber:18},this),(0,I.jsxDEV)(`p`,{children:[(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:`Retention:`},void 0,!1,{fileName:Wz,lineNumber:93,columnNumber:10},this),` `,jk(a,`eligible record`),o?` · ${o}`:``]},void 0,!0,{fileName:Wz,lineNumber:93,columnNumber:7},this),r&&(0,I.jsxDEV)(`p`,{children:[(0,I.jsxDEV)(`span`,{className:`text-foreground`,children:`Recent:`},void 0,!1,{fileName:Wz,lineNumber:94,columnNumber:28},this),` `,r]},void 0,!0,{fileName:Wz,lineNumber:94,columnNumber:25},this)]},void 0,!0,{fileName:Wz,lineNumber:89,columnNumber:5},this)}var Zz=sw(),Qz=1600,$z=`eforge-plan:auto-apply-attempted:`;function eB(e){return`${$z}${e}`}function tB(e){try{return window.localStorage.getItem(eB(e))!==null}catch{return!1}}function nB(e){try{window.localStorage.setItem(eB(e),new Date().toISOString())}catch{}}function rB(e){try{window.localStorage.removeItem(eB(e))}catch{}}function iB(e){return e instanceof Error?e.message:String(e)}function aB(e){return typeof e==`string`&&e.trim().length>0}function oB(e){let t=e.entry.requestedOutputSections;return t.length===0||t.length===1&&t[0]===`sessionPlanCreationDraft`}function sB(e){return!!(e.backlogCurationDraft||e.recommendations||e.handoffDraft||e.handoffDrafts&&e.handoffDrafts.length>0||e.sessionPlanPatch||e.planRevisionTurn||e.planDrafts)}function cB(e){let t=e.sessionPlanCreationDraft;return e.decision===`ready`&&!!t&&aB(t?.session)&&aB(t?.topic)&&aB(t?.planningType)&&aB(t?.planningDepth)&&!!t?.sections.length}function lB(e){let t=e.task?.status??e.status,n=e.task?.result;return!e.available||t!==`completed`||e.entry.appliedAt||e.entry.purpose||!n||!oB(e)||sB(n)?!1:cB(n)}function uB(e){return Object.prototype.hasOwnProperty.call(e,`applySessionPlanCreationDraft`)}function dB(e,t){if(!e[t])return e;let n={...e};return delete n[t],n}function fB(e){let t=e.task?.status??e.status;return t===`queued`||t===`running`}function pB(e){return e===`completed`||e===`failed`||e===`cancelled`}function mB(e,t){let n=$n(),[r,i]=w.useState([]),[a,o]=w.useState(!0),[s,c]=w.useState(!1),[l,u]=w.useState({}),d=w.useRef(new Set),f=w.useRef(new Set),p=w.useRef(new Set),m=w.useRef(new Set),h=w.useCallback(e=>{n.push(iB(e),`error`)},[n]),g=w.useCallback(async()=>{o(!0);try{let e=await Zz.invokeAction(`list-planning-agent-tasks`,{});i((e.tasks??[]).filter(e=>!m.current.has(e.entry.taskId)))}catch(e){h(e)}finally{o(!1)}},[h]);w.useEffect(()=>{g()},[g]);let _=w.useRef(r);_.current=r;let v=r.some(fB),y=w.useRef(new Map);w.useEffect(()=>{if(!v)return;let e=!1,t=window.setInterval(()=>{for(let t of _.current.filter(fB))Zz.invokeAction(`get-planning-agent-task`,{taskId:t.entry.taskId}).then(n=>{e||(y.current.delete(t.entry.taskId),i(e=>e.map(e=>e.entry.taskId===t.entry.taskId?{...e,task:n.task,status:n.task.status,available:!0}:e)),pB(n.task.status)&&g())}).catch(n=>{if(e)return;let r=iB(n);y.current.get(t.entry.taskId)!==r&&(y.current.set(t.entry.taskId,r),h(n))})},Qz);return()=>{e=!0,window.clearInterval(t)}},[v,g,h]);let b=w.useCallback(async e=>{c(!0);try{let t=await Zz.invokeAction(`start-planning-agent-task`,e);return n.push(`Started planning task ${t.task.taskId}.`,`success`),await g(),t.task}catch(e){return h(e),null}finally{c(!1)}},[g,h,n]),x=w.useCallback(async(e={})=>{c(!0);try{let t=e.itemAuditConcurrency===void 0?{}:{itemAuditConcurrency:e.itemAuditConcurrency},r=await Zz.invokeAction(`analyze-all-backlog`,t);return n.push(`${r.reused?`Reusing`:`Started`} backlog analysis task ${r.task.taskId}.`,`success`),await g(),r.task}catch(e){return h(e),null}finally{c(!1)}},[g,h,n]),S=w.useCallback(async e=>{c(!0);try{let t=await Zz.invokeAction(`retry-planning-agent-task`,{taskId:e});n.push(`Retrying as ${t.task.taskId}.`,`success`),rB(e),u(t=>dB(t,e)),await g()}catch(e){h(e)}finally{c(!1)}},[g,h,n]),C=w.useCallback(async(e,t)=>{c(!0);try{let r={taskId:e};t.answers&&t.answers.length>0&&(r.answers=t.answers),t.steering&&t.steering.trim().length>0&&(r.steering=t.steering.trim());let i=await Zz.invokeAction(`redraft-planning-agent-task`,r);n.push(`Redrafting as ${i.task.taskId}.`,`success`),rB(e),u(t=>dB(t,e)),await g()}catch(e){h(e)}finally{c(!1)}},[g,h,n]),T=w.useCallback(async e=>{c(!0);try{let t=await Zz.invokeAction(`cancel-planning-agent-task`,{taskId:e,reason:`user requested cancellation`});n.push(`Cancelled ${t.task.taskId}.`,`success`),i(n=>n.map(n=>n.entry.taskId===e?{...n,task:t.task,status:t.task.status}:n))}catch(e){h(e)}finally{c(!1)}},[h,n]),ee=w.useCallback(async e=>{c(!0);try{let t=await Zz.invokeAction(`remove-planning-agent-task`,{taskId:e});n.push(t.removed?`Removed ${t.taskId} from the planning task list.`:`${t.taskId} was not in the planning task list.`,`success`),i(t=>t.filter(t=>t.entry.taskId!==e)),u(t=>dB(t,e)),await g()}catch(e){h(e)}finally{c(!1)}},[g,h,n]),E=w.useCallback(async(r,a,o={})=>{o.automatic||c(!0);try{let s;try{s=await Zz.invokeAction(`apply-planning-agent-task-result`,{taskId:r,...a})}catch(e){let t=iB(e);return(o.automatic||uB(a))&&(o.automatic&&p.current.add(r),u(e=>({...e,[r]:{taskId:r,message:t,automatic:!!o.automatic,occurredAt:new Date().toISOString()}}))),o.automatic||h(e),null}o.suppressSuccessToast||n.push(`Applied generated output from ${s.taskId}.`,`success`),rB(r),u(e=>dB(e,r)),p.current.delete(r);let c=s.sessionPlanCreationDraft;c!==void 0&&(m.current.add(r),i(e=>e.filter(e=>e.entry.taskId!==r)));try{await e()}catch(e){h(e)}try{await g()}catch(e){h(e)}if(c!==void 0&&o.automatic)try{t?.(c)}catch(e){h(e)}return s}finally{o.automatic||c(!1)}},[t,e,g,h,n]);return w.useEffect(()=>{for(let e of r){let t=e.entry.taskId;lB(e)&&(m.current.has(t)||f.current.has(t)||d.current.has(t)||p.current.has(t)||tB(t)||(f.current.add(t),nB(t),d.current.add(t),E(t,{applySessionPlanCreationDraft:{}},{automatic:!0,suppressSuccessToast:!0}).finally(()=>{d.current.delete(t)})))}},[E,r]),{items:r,loading:a,busy:s,applyErrors:l,reload:g,start:b,analyzeAllBacklog:x,retry:S,redraft:C,cancel:T,remove:ee,apply:w.useCallback(async(e,t)=>uB(t)&&d.current.has(e)?null:E(e,t),[E])}}var hB=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/views/workstation-view.tsx`,gB=[{id:`roadmap`,label:`Roadmap`,icon:Ce},{id:`board`,label:`Backlog`,icon:ve},{id:`plans`,label:`Plans`,icon:me}];function _B({data:e}){let t=qx(),n=w.useCallback(e=>{t.setQuery(t=>{t.set(`focus`,`plans`),t.set(`plan`,cT(e.session))})},[t]),r=mB(e.refresh,n),i=eT(e.board,r),a=w.useMemo(()=>r.items.some(e=>{let t=e.task?.status??e.status;return(t===`queued`||t===`running`)&&e.entry.purpose===`backlog-curation`}),[r.items]),o=vB(t.query.get(`focus`)),s=w.useCallback(e=>{t.setQuery(t=>{e===`board`?t.delete(`focus`):t.set(`focus`,e)})},[t]),c=w.useCallback(async(e,t)=>{let i=await r.apply(e,t);return i?.sessionPlanCreationDraft&&n(i.sessionPlanCreationDraft),i},[r,n]),l=w.useMemo(()=>({...r,apply:c}),[r,c]),u=e.board.items??[],d=w.useCallback(e=>{t.setQuery(t=>{t.delete(`focus`),t.set(`item`,e)})},[t]),f=w.useCallback(e=>{t.setQuery(t=>{t.set(`focus`,`plans`),t.set(`plan`,e)})},[t]),p=w.useCallback(async n=>{let r=await e.forkRecommendationToDraftUnit(n);t.setQuery(e=>{e.set(`focus`,`plans`),e.set(`plan`,sT(r.unitId))})},[e,t]),m=w.useMemo(()=>mT(e.artifacts),[e.artifacts]),h=ok(e.roadmapState),g={roadmap:h.local+h.configuredShared+h.discovered,board:e.board.counts?.open??u.length,plans:e.artifacts.length};return(0,I.jsxDEV)(`div`,{className:`grid gap-4`,children:(0,I.jsxDEV)(`div`,{className:o===`plans`?`grid gap-4`:`grid gap-4 lg:grid-cols-[minmax(0,1fr)_22rem] lg:items-start`,children:[(0,I.jsxDEV)(`div`,{className:`min-w-0`,children:[(0,I.jsxDEV)(`nav`,{className:`mb-4 flex flex-wrap gap-1 border-b pb-2`,children:gB.map(e=>{let t=e.icon,n=e.id===o;return(0,I.jsxDEV)(`button`,{type:`button`,onClick:()=>s(e.id),"aria-current":n?`page`:void 0,className:`inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-sm font-medium transition-colors ${n?`bg-accent text-text-bright`:`text-muted-foreground hover:bg-accent/60`}`,children:[(0,I.jsxDEV)(t,{className:`h-4 w-4`},void 0,!1,{fileName:hB,lineNumber:111,columnNumber:19},this),` `,(0,I.jsxDEV)(`span`,{children:e.label},void 0,!1,{fileName:hB,lineNumber:111,columnNumber:48},this),(0,I.jsxDEV)(`span`,{className:`rounded-full border px-1.5 text-2xs ${n?`border-border text-muted-foreground`:`border-transparent text-muted-foreground/70`}`,children:g[e.id]},void 0,!1,{fileName:hB,lineNumber:112,columnNumber:19},this)]},e.id,!0,{fileName:hB,lineNumber:104,columnNumber:17},this)})},void 0,!1,{fileName:hB,lineNumber:99,columnNumber:11},this),o===`roadmap`?(0,I.jsxDEV)(hk,{state:e.roadmapState,recommendationStatus:e.recommendationStatus,recommendationFreshness:e.recommendationFreshness,activeRecommendationRefreshTask:e.activeRecommendationRefreshTask,onSaveLocalFocus:e.saveRoadmapState,onRefreshRecommendations:e.refreshRecommendations},void 0,!1,{fileName:hB,lineNumber:119,columnNumber:13},this):o===`plans`?(0,I.jsxDEV)(bL,{artifacts:e.artifacts,draftUnits:e.draftUnits,titles:i.titles,onRefresh:e.refresh,onUpdateDraftUnit:e.updateDraftUnit,onDeleteDraftUnit:e.deleteDraftUnit,onPromoteDraftUnit:t=>e.promoteDraftUnit(t),onMergeDraftUnits:e.mergeDraftUnits,onSplitDraftUnit:e.splitDraftUnit,onAdviseMergeDraftUnits:e.adviseMergeDraftUnits,onAdviseSplitDraftUnit:e.adviseSplitDraftUnit},void 0,!1,{fileName:hB,lineNumber:128,columnNumber:13},this):(0,I.jsxDEV)(AA,{board:e.board,selection:i,itemPlanIndex:m,onRefresh:e.refresh,onLoadMoreBoard:e.loadMoreBoard,onLoadClosedLane:e.loadClosedLane},void 0,!1,{fileName:hB,lineNumber:142,columnNumber:13},this)]},void 0,!0,{fileName:hB,lineNumber:98,columnNumber:9},this),o!==`plans`&&(0,I.jsxDEV)(`aside`,{className:`grid min-w-0 gap-3 lg:sticky lg:top-[5.5rem]`,children:o===`roadmap`?(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(gk,{state:e.roadmapState,loading:e.loading,recommendationStatus:e.recommendationStatus,recommendationFreshness:e.recommendationFreshness,activeRecommendationRefreshTask:e.activeRecommendationRefreshTask,onReloadRoadmap:e.refresh},void 0,!1,{fileName:hB,lineNumber:157,columnNumber:17},this),(0,I.jsxDEV)(Kz,{status:e.storeStatus,error:e.storeStatusError,onRefresh:e.refreshStoreStatus},void 0,!1,{fileName:hB,lineNumber:165,columnNumber:17},this)]},void 0,!0,{fileName:hB,lineNumber:156,columnNumber:15},this):(0,I.jsxDEV)(I.Fragment,{children:[(0,I.jsxDEV)(Bz,{openItem:d,openPlan:f},void 0,!1,{fileName:hB,lineNumber:169,columnNumber:17},this),(0,I.jsxDEV)(Fz,{selection:i,busy:r.busy},void 0,!1,{fileName:hB,lineNumber:170,columnNumber:17},this),(0,I.jsxDEV)(wz,{recommendations:e.recommendations,actionability:e.recommendationActionability,status:e.recommendationStatus,freshness:e.recommendationFreshness,selection:i,busy:r.busy,analyzing:a,onAnalyze:r.analyzeAllBacklog,onForkLane:p},void 0,!1,{fileName:hB,lineNumber:171,columnNumber:17},this),(0,I.jsxDEV)(_z,{workflows:l,titles:i.titles},void 0,!1,{fileName:hB,lineNumber:182,columnNumber:17},this)]},void 0,!0,{fileName:hB,lineNumber:168,columnNumber:15},this)},void 0,!1,{fileName:hB,lineNumber:154,columnNumber:11},this)]},void 0,!0,{fileName:hB,lineNumber:97,columnNumber:7},this)},void 0,!1,{fileName:hB,lineNumber:96,columnNumber:5},this)}function vB(e){return e===`roadmap`||e===`plans`?e:`board`}var yB=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/App.tsx`;function bB(){return(0,I.jsxDEV)(Qn,{children:(0,I.jsxDEV)(Kx,{children:(0,I.jsxDEV)(xB,{},void 0,!1,{fileName:yB,lineNumber:16,columnNumber:9},this)},void 0,!1,{fileName:yB,lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:yB,lineNumber:14,columnNumber:5},this)}function xB(){let e=kw();return(0,I.jsxDEV)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[(0,I.jsxDEV)(`header`,{className:`sticky top-0 z-10 border-b bg-background/95 px-5 py-3 backdrop-blur`,children:(0,I.jsxDEV)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2 text-lg font-semibold text-text-bright`,children:[(0,I.jsxDEV)(Le,{className:`h-5 w-5 text-primary`},void 0,!1,{fileName:yB,lineNumber:30,columnNumber:13},this),` eforge-plan`]},void 0,!0,{fileName:yB,lineNumber:29,columnNumber:11},this),(0,I.jsxDEV)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsxDEV)(Gz,{status:e.storeStatus,error:e.storeStatusError},void 0,!1,{fileName:yB,lineNumber:33,columnNumber:13},this),(0,I.jsxDEV)(Tn,{variant:`outline`,children:e.bridgeVersion?`bridge v${e.bridgeVersion}`:`mock bridge`},void 0,!1,{fileName:yB,lineNumber:34,columnNumber:13},this),(0,I.jsxDEV)(L,{variant:`outline`,size:`sm`,onClick:()=>void e.refresh(),disabled:e.loading,children:[e.loading?(0,I.jsxDEV)(Jn,{},void 0,!1,{fileName:yB,lineNumber:36,columnNumber:31},this):(0,I.jsxDEV)(Ae,{className:`h-4 w-4`},void 0,!1,{fileName:yB,lineNumber:36,columnNumber:45},this),` Refresh`]},void 0,!0,{fileName:yB,lineNumber:35,columnNumber:13},this)]},void 0,!0,{fileName:yB,lineNumber:32,columnNumber:11},this)]},void 0,!0,{fileName:yB,lineNumber:28,columnNumber:9},this)},void 0,!1,{fileName:yB,lineNumber:27,columnNumber:7},this),(0,I.jsxDEV)(`main`,{className:`p-4`,children:[e.error&&(0,I.jsxDEV)(Kn,{className:`mb-3 rounded-md p-3 text-sm`,children:e.error},void 0,!1,{fileName:yB,lineNumber:43,columnNumber:24},this),(0,I.jsxDEV)(_B,{data:e},void 0,!1,{fileName:yB,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:yB,lineNumber:42,columnNumber:7},this)]},void 0,!0,{fileName:yB,lineNumber:26,columnNumber:5},this)}var SB=`/Users/markschaake/projects/eforge-build/eforge/eforge/extensions/eforge-plan/workstation-src/plans/src/main.tsx`;(0,He.createRoot)(document.getElementById(`root`)).render((0,I.jsxDEV)(w.StrictMode,{children:(0,I.jsxDEV)(bB,{},void 0,!1,{fileName:SB,lineNumber:8,columnNumber:5},void 0)},void 0,!1,{fileName:SB,lineNumber:7,columnNumber:3},void 0));export{l as i,_x as n,o as r,yO as t};