wind-agent-cli 1.38.0 → 1.38.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +2 -0
  2. package/dist/assets/{CodeEditor-FvgsnJ7J.js → CodeEditor-C6BtLdoC.js} +1 -1
  3. package/dist/assets/{FileTree-NLULrBDi.js → FileTree-CGxNFZda.js} +1 -1
  4. package/dist/assets/{GitPanel-51KUBbEW.js → GitPanel-BV-IAyEC.js} +1 -1
  5. package/dist/assets/{MarkdownPreview-PEEWVWeS.js → MarkdownPreview-DVoEzpoc.js} +1 -1
  6. package/dist/assets/{Shell-BEx66cW_.js → Shell-CUTO-THd.js} +2 -2
  7. package/dist/assets/{StandaloneShell-BkuUCPZP.js → StandaloneShell-BKM1qxUc.js} +1 -1
  8. package/dist/assets/{TaskMasterPanel-DfQG80SF.js → TaskMasterPanel-DDDCVF6M.js} +2 -2
  9. package/dist/assets/{abnfDiagram-N423BO3Z-Cc0ul87U.js → abnfDiagram-N423BO3Z-Crubtav6.js} +1 -1
  10. package/dist/assets/{arc-BAuugHw_.js → arc-h9xb7EWA.js} +1 -1
  11. package/dist/assets/{architectureDiagram-T3A2C74G-DA3G7QZD.js → architectureDiagram-T3A2C74G-BmMQp4MC.js} +1 -1
  12. package/dist/assets/{blockDiagram-VBNYF7ZC-tJ12IJs3.js → blockDiagram-VBNYF7ZC-BtD-zDnJ.js} +1 -1
  13. package/dist/assets/{c4Diagram-5PPSVZJV-5BTMCXL4.js → c4Diagram-5PPSVZJV-D18s6J-v.js} +1 -1
  14. package/dist/assets/channel-CuR3zGvy.js +1 -0
  15. package/dist/assets/{chunk-2GRJ4B5K-BPaI06Ou.js → chunk-2GRJ4B5K-BHIcCvB_.js} +1 -1
  16. package/dist/assets/{chunk-2Q5K7J3B-HV4zmsEe.js → chunk-2Q5K7J3B-DcX4AeRe.js} +1 -1
  17. package/dist/assets/{chunk-5RXB4S5H-BAwutJoU.js → chunk-5RXB4S5H-CZwYDv9K.js} +1 -1
  18. package/dist/assets/{chunk-5VM5RSS4-B9QAJPrv.js → chunk-5VM5RSS4-CR-F7R13.js} +1 -1
  19. package/dist/assets/{chunk-6Q2QTUOP-BOIW8bzI.js → chunk-6Q2QTUOP-BPP216SB.js} +1 -1
  20. package/dist/assets/{chunk-GF5L2VYU-DD13o00-.js → chunk-GF5L2VYU-CcFeSmHe.js} +1 -1
  21. package/dist/assets/{chunk-JWPE2WC7-CFBm23VK.js → chunk-JWPE2WC7-C5T_9-OI.js} +1 -1
  22. package/dist/assets/{chunk-KBJHAD2P-C0i0v8Op.js → chunk-KBJHAD2P-g5eR5X5h.js} +1 -1
  23. package/dist/assets/{chunk-RYQCIY6F-DfeK0taV.js → chunk-RYQCIY6F-76WBDsoZ.js} +1 -1
  24. package/dist/assets/{chunk-XXDRQBXY-BKWvf-QE.js → chunk-XXDRQBXY-DGuy3LLn.js} +1 -1
  25. package/dist/assets/classDiagram-JCYQIIEL-BWpl-4NG.js +1 -0
  26. package/dist/assets/classDiagram-v2-OCEON4UE-BWpl-4NG.js +1 -0
  27. package/dist/assets/{cose-bilkent-JH36ORCC-CBE8oM7L.js → cose-bilkent-JH36ORCC-Cg4R1M0H.js} +1 -1
  28. package/dist/assets/{cynefin-VYW2F7L2-DziGp35A.js → cynefin-VYW2F7L2-Cbmals-o.js} +1 -1
  29. package/dist/assets/{cynefinDiagram-MW4NZA55-CNvtHl39.js → cynefinDiagram-MW4NZA55-CI79hpHc.js} +1 -1
  30. package/dist/assets/{dagre-VZM6K2ZE-Bz9lsU7m.js → dagre-VZM6K2ZE-r3Uz8Fhv.js} +1 -1
  31. package/dist/assets/{diagram-7IWD3JNH-CV7D3VSd.js → diagram-7IWD3JNH-ClRIkmQw.js} +1 -1
  32. package/dist/assets/{diagram-B4RE2ZJO-Dj4EjDNC.js → diagram-B4RE2ZJO-C71qkNlS.js} +1 -1
  33. package/dist/assets/{diagram-LBJQPF4R-wJ6FHvf-.js → diagram-LBJQPF4R-CC7ShhCC.js} +1 -1
  34. package/dist/assets/{diagram-Q27KOJAE-DMFYMhOB.js → diagram-Q27KOJAE-DPHL4vnP.js} +1 -1
  35. package/dist/assets/{diagram-UB23O5K3-DeBSbWAI.js → diagram-UB23O5K3-CP_My5E9.js} +1 -1
  36. package/dist/assets/{ebnfDiagram-BXEA7PRR-2NnJSGhT.js → ebnfDiagram-BXEA7PRR-BQe4AU9Z.js} +1 -1
  37. package/dist/assets/{erDiagram-JOGREHBK-DrSlg8hr.js → erDiagram-JOGREHBK-CFidQ-d5.js} +1 -1
  38. package/dist/assets/feature-chat-CHKsDTs-.js +88 -0
  39. package/dist/assets/{feature-workspace-CAB6bgPy.js → feature-workspace-BodovOw6.js} +2 -2
  40. package/dist/assets/{flowDiagram-UKHOOZJN-C0pejU6W.js → flowDiagram-UKHOOZJN-X5fPFxbp.js} +1 -1
  41. package/dist/assets/{ganttDiagram-PKOTCBZU-BM0VCUUz.js → ganttDiagram-PKOTCBZU-CILFHjP8.js} +1 -1
  42. package/dist/assets/{gitGraphDiagram-DS77QQ5N-SbLG0c5_.js → gitGraphDiagram-DS77QQ5N-DCQCtC_g.js} +1 -1
  43. package/dist/assets/{index-nyrkoQK6.js → index-Bn37f1jp.js} +13 -13
  44. package/dist/assets/{index-Gqazqfs3.js → index-Bo9nFrtn.js} +1 -1
  45. package/dist/assets/{index-Btkf0_rU.js → index-D0vbG70l.js} +1 -1
  46. package/dist/assets/{index-BflGfU1C.js → index-cNARKAN2.js} +1 -1
  47. package/dist/assets/{infoDiagram-6WML65LV-Cf5DSa66.js → infoDiagram-6WML65LV-Da145n1G.js} +1 -1
  48. package/dist/assets/{ishikawaDiagram-WSZJBQD7-DwyFutKy.js → ishikawaDiagram-WSZJBQD7-DGUP61eq.js} +1 -1
  49. package/dist/assets/{journeyDiagram-NVQOT4AX-Df0FRhLo.js → journeyDiagram-NVQOT4AX-BqfnKWDJ.js} +1 -1
  50. package/dist/assets/{kanban-definition-27J2QSJJ-HmpbjrZz.js → kanban-definition-27J2QSJJ-US6pQfNy.js} +1 -1
  51. package/dist/assets/{linear-DOM01LBe.js → linear-d91wK5kZ.js} +1 -1
  52. package/dist/assets/{mermaid.core-C2Ma-_S6.js → mermaid.core-BsWqrIaW.js} +4 -4
  53. package/dist/assets/{mindmap-definition-FAOFIHXS-B4GOIn76.js → mindmap-definition-FAOFIHXS-CXWD2UbS.js} +1 -1
  54. package/dist/assets/{pegDiagram-VL7TDLO6-BHur7aH2.js → pegDiagram-VL7TDLO6-BVzfDR-8.js} +1 -1
  55. package/dist/assets/{pieDiagram-7S7Q4E2Y-Cw0UELLV.js → pieDiagram-7S7Q4E2Y-PNpHZnJ9.js} +1 -1
  56. package/dist/assets/{quadrantDiagram-CIZ2JOQS-CB2BrX3g.js → quadrantDiagram-CIZ2JOQS-DxCI4i3K.js} +1 -1
  57. package/dist/assets/{railroadDiagram-AXF67PYL-DPYZYmLX.js → railroadDiagram-AXF67PYL-BYkvo3om.js} +1 -1
  58. package/dist/assets/{requirementDiagram-LRYGKXZP-DSX4IJ1n.js → requirementDiagram-LRYGKXZP-LUtvOYtV.js} +1 -1
  59. package/dist/assets/{sankeyDiagram-W5VNT64P-TenC3ZQo.js → sankeyDiagram-W5VNT64P-CVyI8YeM.js} +1 -1
  60. package/dist/assets/{sequenceDiagram-SI44F4Z6-DltGsf3F.js → sequenceDiagram-SI44F4Z6-1vuRFolM.js} +1 -1
  61. package/dist/assets/{sizeCapture-X5ZJPWSS-D7llwbJZ.js → sizeCapture-X5ZJPWSS-o4oVZXe8.js} +1 -1
  62. package/dist/assets/{stateDiagram-OKZ733FA-C-hAvbnY.js → stateDiagram-OKZ733FA-WedLIlXF.js} +1 -1
  63. package/dist/assets/stateDiagram-v2-UEYNNEHI-BqzvLVVB.js +1 -0
  64. package/dist/assets/{swimlanes-SLNWSIFB-DWD30fv6.js → swimlanes-SLNWSIFB-CpeXuk67.js} +2 -2
  65. package/dist/assets/swimlanesDiagram-ULZ7WXOC-CeI6fByR.js +8 -0
  66. package/dist/assets/{timeline-definition-Z64GVDOM-quWmimSE.js → timeline-definition-Z64GVDOM-DFcPWe47.js} +1 -1
  67. package/dist/assets/{vennDiagram-T6HMQDX7-aUQcm8h5.js → vennDiagram-T6HMQDX7-BH8C1C49.js} +1 -1
  68. package/dist/assets/{wardleyDiagram-T6FBY63Y-BZ0bwsFQ.js → wardleyDiagram-T6FBY63Y-K1Ew0uit.js} +1 -1
  69. package/dist/assets/{xychartDiagram-ELKLHX3M-DOVzAq63.js → xychartDiagram-ELKLHX3M-CQHlqWY2.js} +1 -1
  70. package/dist/index.html +3 -3
  71. package/dist/sw.js +1 -1
  72. package/package.json +5 -1
  73. package/dist/assets/channel-BGDgNNQz.js +0 -1
  74. package/dist/assets/classDiagram-JCYQIIEL-C2SNM4oy.js +0 -1
  75. package/dist/assets/classDiagram-v2-OCEON4UE-C2SNM4oy.js +0 -1
  76. package/dist/assets/feature-chat-CvOCyaLe.js +0 -88
  77. package/dist/assets/stateDiagram-v2-UEYNNEHI-DaYSFcRQ.js +0 -1
  78. package/dist/assets/swimlanesDiagram-ULZ7WXOC-LTkF2T6t.js +0 -8
@@ -1 +1 @@
1
- import{r as i,j as s}from"./vendor-react-C2GTiUCy.js";import c from"./StandaloneShell-BkuUCPZP.js";import"./Shell-BEx66cW_.js";import"./feature-workspace-CAB6bgPy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";const n="cloudcli:herdr-client";function d(){return`herdr-${typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}`}function l(r){const t=d();try{const e=r??sessionStorage,o=e.getItem(n);if(o)return o;e.setItem(n,t)}catch{}return t}function m(r,t){return{project:null,command:"herdr",isPlainShell:!0,autoConnect:!0,minimal:!0,isActive:r,shellSessionId:t,shellMode:"herdr"}}function x({isActive:r}){const t=i.useMemo(()=>l(),[]);return s.jsx(c,{...m(r,t)})}export{x as HerdrPanel};
1
+ import{r as i,j as s}from"./vendor-react-C2GTiUCy.js";import c from"./StandaloneShell-BKM1qxUc.js";import"./Shell-CUTO-THd.js";import"./feature-workspace-BodovOw6.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";const n="cloudcli:herdr-client";function d(){return`herdr-${typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}`}function l(r){const t=d();try{const e=r??sessionStorage,o=e.getItem(n);if(o)return o;e.setItem(n,t)}catch{}return t}function m(r,t){return{project:null,command:"herdr",isPlainShell:!0,autoConnect:!0,minimal:!0,isActive:r,shellSessionId:t,shellMode:"herdr"}}function x({isActive:r}){const t=i.useMemo(()=>l(),[]);return s.jsx(c,{...m(r,t)})}export{x as HerdrPanel};
@@ -1 +1 @@
1
- import{r as l,j as e}from"./vendor-react-C2GTiUCy.js";import{a as b,x as g,f as o,B as d}from"./feature-workspace-CAB6bgPy.js";import{z as S,S as Z,R as V,a6 as ee,aW as se,d as $,r as F,v as L,X as te,aX as re,L as ae,aa as ne}from"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";async function f(r){const i=await r.json();if(!r.ok||i.success===!1)throw new Error(i.error||i.details||`Request failed (${r.status})`);return i}function O(r){if(!r)return"Never";const i=Date.parse(r);if(!Number.isFinite(i))return"Unknown";const a=Math.max(0,Math.round((Date.now()-i)/1e3));if(a<10)return"Just now";if(a<60)return`${a}s ago`;const x=Math.round(a/60);if(x<60)return`${x}m ago`;const n=Math.round(x/60);return n<24?`${n}h ago`:`${Math.round(n/24)}d ago`}function j(r){if(!r)return"No page loaded";try{return new URL(r).hostname}catch{return r}}function B(r){return r?r.replace(/_/g," ").replace(/:/g,": "):"Waiting"}function ie(r){return r==="ready"?"border-primary/30 bg-primary/5 text-foreground":r==="stopped"?"border-border bg-muted text-muted-foreground":"border-border bg-background text-muted-foreground"}function le(r,i){return r?.enabled?r.available||r.installInProgress||i?"border-primary/30 bg-primary/5 text-foreground":"border-border bg-background text-muted-foreground":"border-border bg-muted text-muted-foreground"}function _(r){return r==="ready"?"bg-primary":r==="stopped"?"bg-muted-foreground/50":"bg-border"}const de=["Use Browser to inspect the checkout flow and report any broken UI states.","Open <url> with Browser, interact with the page, and summarize what changed after each step."];function fe({isVisible:r,onShowSettings:i}){const[a,x]=l.useState(null),[n,q]=l.useState([]),[I,w]=l.useState(null),[C,R]=l.useState(!1),[c,D]=l.useState(!1),[u,E]=l.useState(!1),[W,N]=l.useState(!1),[P,p]=l.useState(null),t=l.useMemo(()=>n.find(s=>s.id===I)||n[0]||null,[I,n]),z=n.filter(s=>s.status==="ready"),J=!!(a?.enabled&&(!a.playwrightInstalled||!a.chromiumInstalled)),X=a?.enabled?a.available?"Ready":a.installInProgress||u?"Installing":"Setup required":"Disabled",A=t?.cursor&&t.viewport?{left:`${t.cursor.x/t.viewport.width*100}%`,top:`${t.cursor.y/t.viewport.height*100}%`}:null,h=l.useCallback(async()=>{R(!0);try{const[s,m]=await Promise.all([b("/api/browser-use/status"),b("/api/browser-use/sessions")]),Q=await f(s),y=(await f(m)).data.sessions;x(Q.data),q(y),w(k=>k&&y.some(Y=>Y.id===k)?k:y[0]?.id||null),p(null)}catch(s){p(s instanceof Error?s.message:"Failed to load Browser")}finally{R(!1)}},[]);l.useEffect(()=>{r&&h()},[r,h]);const v=l.useCallback(async s=>{D(!0),p(null);try{await s(),await h()}catch(m){p(m instanceof Error?m.message:"Browser action failed")}finally{D(!1)}},[h]),M=()=>v(async()=>{if(!t)return;const s=await b(`/api/browser-use/sessions/${t.id}/stop`,{method:"POST"});await f(s)}),T=()=>v(async()=>{if(!t)return;const s=await b(`/api/browser-use/sessions/${t.id}`,{method:"DELETE"});await f(s),N(!1)}),H=()=>v(async()=>{E(!0);try{const s=await b("/api/browser-use/runtime/install",{method:"POST"});await f(s)}finally{E(!1)}}),G=s=>{const m=t?.id===s.id;return e.jsxs("button",{type:"button",onClick:()=>w(s.id),className:o("group w-full rounded-md border px-3 py-2.5 text-left transition-colors",m?"border-primary/50 bg-primary/10 text-foreground":"border-border/60 bg-card/30 text-muted-foreground hover:bg-muted/50"),children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:o("h-1.5 w-1.5 shrink-0 rounded-full",_(s.status))}),e.jsx("div",{className:"truncate text-sm font-medium",children:s.title||j(s.url)})]}),e.jsx("div",{className:"mt-1 truncate pl-3.5 text-xs text-muted-foreground",children:j(s.url)})]}),e.jsx(g,{variant:"outline",className:"shrink-0 border-border bg-background text-[10px] text-muted-foreground",children:s.status})]}),e.jsxs("div",{className:"mt-2 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[e.jsx(re,{className:"h-3 w-3"}),e.jsx("span",{children:O(s.updatedAt)}),e.jsxs("span",{className:"truncate",children:["- ",B(s.lastAction)]})]})]},s.id)},K=()=>e.jsx("div",{className:"flex min-h-0 flex-1 items-center justify-center p-6",children:e.jsxs("div",{className:"w-full max-w-2xl rounded-md border border-border bg-card/40 p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-md border border-border bg-background",children:e.jsx(S,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-sm font-semibold text-foreground",children:a?.enabled?"No browser sessions yet":"Browser is disabled"}),e.jsx("p",{className:"mt-1 max-w-xl text-sm leading-6 text-muted-foreground",children:a?.enabled?"Agent browser sessions appear here while an AI task is using Browser.":"Enable Browser in settings to let agents open monitored browser sessions."})]})]}),J&&e.jsxs("div",{className:"mt-4 rounded-md border border-border bg-muted/30 p-3",children:[e.jsx("div",{className:"text-sm font-medium text-foreground",children:"Runtime setup required"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:a?.message}),e.jsxs(d,{type:"button",size:"sm",className:"mt-3",onClick:H,disabled:c||u||a?.installInProgress,children:[u||a?.installInProgress?e.jsx(ae,{className:"h-4 w-4 animate-spin"}):e.jsx(ne,{className:"h-4 w-4"}),u||a?.installInProgress?"Installing...":"Install Runtime"]})]}),e.jsx("div",{className:"mt-5 grid gap-2 sm:grid-cols-2",children:de.map(s=>e.jsxs("div",{className:"rounded-md border border-border/70 bg-background/70 p-3",children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e.jsx(L,{className:"h-3.5 w-3.5"}),"Prompt"]}),e.jsx("p",{className:"text-sm leading-6 text-foreground",children:s})]},s))})]})}),U=(s=!1)=>e.jsx("div",{className:o("flex flex-1 items-center justify-center bg-neutral-950",s?"min-h-[80vh]":"min-h-[420px]"),children:t?.screenshotDataUrl?e.jsxs("div",{className:"relative inline-block max-h-full",children:[e.jsx("img",{src:t.screenshotDataUrl,alt:"Browser session screenshot",className:s?"block max-h-[80vh] w-auto max-w-full object-contain":"block max-h-[72vh] w-auto max-w-full object-contain"}),A&&e.jsx("div",{className:"pointer-events-none absolute h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white/90 bg-primary/80 shadow-[0_0_0_6px_hsl(var(--primary)/0.18)]",style:A,children:e.jsx("div",{className:"absolute left-1/2 top-1/2 h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white"})})]}):e.jsxs("div",{className:"px-6 text-center",children:[e.jsx(S,{className:"mx-auto h-9 w-9 text-neutral-500"}),e.jsx("div",{className:"mt-3 text-sm font-medium text-neutral-100",children:t?.message||"Waiting for screenshot"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"The next agent browser snapshot will render here."})]})});return e.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-background",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border/60 px-4 py-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(S,{className:"h-4 w-4 text-primary"}),e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Browser"}),e.jsx(g,{variant:"outline",className:o("text-[10px]",le(a,u)),children:X})]}),e.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:"Monitor browser sessions opened by AI agents."})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[i&&e.jsx(d,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>i("browser"),title:"Open Browser settings","aria-label":"Open Browser settings",children:e.jsx(Z,{className:"h-3.5 w-3.5"})}),e.jsx(d,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>{h()},disabled:C||c,title:"Refresh browser sessions","aria-label":"Refresh browser sessions",children:e.jsx(V,{className:o("h-3.5 w-3.5",C&&"animate-spin")})})]})]}),P&&e.jsx("div",{className:"border-b border-destructive/20 bg-destructive/10 px-4 py-2 text-sm text-destructive",children:P}),n.length>0&&e.jsx("div",{className:"border-b border-border/60 bg-muted/20 px-3 py-2 lg:hidden",children:e.jsx("div",{className:"flex gap-2 overflow-x-auto",children:n.map(s=>e.jsxs("button",{type:"button",onClick:()=>w(s.id),className:o("flex min-w-[180px] items-center gap-2 rounded-md border px-2.5 py-2 text-left",t?.id===s.id?"border-primary/40 bg-primary/5":"border-border bg-background"),children:[e.jsx("span",{className:o("h-1.5 w-1.5 shrink-0 rounded-full",_(s.status))}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium text-foreground",children:s.title||j(s.url)})]},s.id))})}),e.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-1 lg:grid-cols-[minmax(0,1fr)_320px]",children:[e.jsxs("main",{className:"flex min-h-0 flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border/60 bg-muted/20 px-4 py-2.5 text-xs text-muted-foreground",children:[e.jsxs("div",{className:"min-w-0 truncate",children:[z.length," active",e.jsx("span",{className:"px-1.5",children:"/"}),n.length," total"]}),e.jsxs("div",{className:"min-w-0 truncate",children:["Updated ",O(t?.updatedAt||null)]})]}),n.length===0?K():e.jsx("div",{className:"min-h-0 flex-1 overflow-auto bg-muted/20 p-4",children:e.jsxs("div",{className:"mx-auto flex min-h-[500px] max-w-7xl flex-col overflow-hidden rounded-md border border-border bg-background shadow-sm",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border/60 px-3 py-2",children:[e.jsx(g,{variant:"outline",className:t?o("text-[10px]",ie(t.status)):"text-[10px]",children:t?.status||"empty"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:t?.title||j(t?.url||null)}),e.jsxs("div",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",children:[e.jsx(ee,{className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:t?.url||"No page loaded"})]})]}),e.jsx("div",{className:"hidden text-xs text-muted-foreground md:block",children:B(t?.lastAction||null)}),e.jsx(d,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>N(!0),disabled:!t?.screenshotDataUrl,title:"Full screen","aria-label":"Full screen",children:e.jsx(se,{className:"h-4 w-4"})}),e.jsx(d,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 lg:hidden",onClick:M,disabled:c||!t||t.status!=="ready",title:"Stop session","aria-label":"Stop session",children:e.jsx($,{className:"h-4 w-4"})}),e.jsx(d,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 lg:hidden",onClick:T,disabled:c||!t,title:"Delete session","aria-label":"Delete session",children:e.jsx(F,{className:"h-4 w-4"})})]}),U()]})})]}),e.jsxs("aside",{className:"hidden min-h-0 flex-col border-l border-border/60 bg-background lg:flex",children:[e.jsx("div",{className:"border-b border-border/60 px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold text-foreground",children:"Sessions"}),e.jsxs("div",{className:"mt-0.5 text-xs text-muted-foreground",children:[n.length," total"]})]}),e.jsxs(g,{variant:"outline",className:"text-[10px]",children:[z.length," active"]})]})}),e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:n.length>0?e.jsx("div",{className:"space-y-2",children:n.map(G)}):e.jsx("div",{className:"rounded-md border border-dashed border-border/70 px-3 py-8 text-center text-xs text-muted-foreground",children:"No agent browser sessions."})}),e.jsx("div",{className:"border-t border-border/60 p-3",children:e.jsxs("div",{className:"rounded-md border border-border/70 bg-muted/30 p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e.jsx(L,{className:"h-3.5 w-3.5"}),"Selected"]}),e.jsxs("div",{className:"mt-3 space-y-2 text-xs text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:"Status"}),e.jsx("span",{className:"font-medium text-foreground",children:t?.status||"None"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:"Last action"}),e.jsx("span",{className:"truncate font-medium text-foreground",children:B(t?.lastAction||null)})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:"Profile"}),e.jsx("span",{className:"truncate font-medium text-foreground",children:t?.profileName||"Temporary"})]})]}),e.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[e.jsxs(d,{variant:"outline",size:"sm",onClick:M,disabled:c||!t||t.status!=="ready",children:[e.jsx($,{className:"h-4 w-4"}),"Stop"]}),e.jsxs(d,{variant:"outline",size:"sm",onClick:T,disabled:c||!t,children:[e.jsx(F,{className:"h-4 w-4"}),"Delete"]})]})]})})]})]}),W&&t&&e.jsx("div",{className:"fixed inset-0 z-50 bg-black/90 p-6",children:e.jsxs("div",{className:"flex h-full flex-col rounded-md border border-white/10 bg-black",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 px-4 py-3 text-sm text-white/80",children:[e.jsx("div",{className:"min-w-0 truncate",children:t.title||t.url||"Browser session"}),e.jsxs(d,{variant:"outline",size:"sm",onClick:()=>N(!1),children:[e.jsx(te,{className:"h-4 w-4"}),"Close"]})]}),U(!0)]})})]})}export{fe as BrowserUsePanel};
1
+ import{r as l,j as e}from"./vendor-react-C2GTiUCy.js";import{a as b,x as g,f as o,B as d}from"./feature-workspace-BodovOw6.js";import{z as S,S as Z,R as V,a6 as ee,aW as se,d as $,r as F,v as L,X as te,aX as re,L as ae,aa as ne}from"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";async function f(r){const i=await r.json();if(!r.ok||i.success===!1)throw new Error(i.error||i.details||`Request failed (${r.status})`);return i}function O(r){if(!r)return"Never";const i=Date.parse(r);if(!Number.isFinite(i))return"Unknown";const a=Math.max(0,Math.round((Date.now()-i)/1e3));if(a<10)return"Just now";if(a<60)return`${a}s ago`;const x=Math.round(a/60);if(x<60)return`${x}m ago`;const n=Math.round(x/60);return n<24?`${n}h ago`:`${Math.round(n/24)}d ago`}function j(r){if(!r)return"No page loaded";try{return new URL(r).hostname}catch{return r}}function B(r){return r?r.replace(/_/g," ").replace(/:/g,": "):"Waiting"}function ie(r){return r==="ready"?"border-primary/30 bg-primary/5 text-foreground":r==="stopped"?"border-border bg-muted text-muted-foreground":"border-border bg-background text-muted-foreground"}function le(r,i){return r?.enabled?r.available||r.installInProgress||i?"border-primary/30 bg-primary/5 text-foreground":"border-border bg-background text-muted-foreground":"border-border bg-muted text-muted-foreground"}function _(r){return r==="ready"?"bg-primary":r==="stopped"?"bg-muted-foreground/50":"bg-border"}const de=["Use Browser to inspect the checkout flow and report any broken UI states.","Open <url> with Browser, interact with the page, and summarize what changed after each step."];function fe({isVisible:r,onShowSettings:i}){const[a,x]=l.useState(null),[n,q]=l.useState([]),[I,w]=l.useState(null),[C,R]=l.useState(!1),[c,D]=l.useState(!1),[u,E]=l.useState(!1),[W,N]=l.useState(!1),[P,p]=l.useState(null),t=l.useMemo(()=>n.find(s=>s.id===I)||n[0]||null,[I,n]),z=n.filter(s=>s.status==="ready"),J=!!(a?.enabled&&(!a.playwrightInstalled||!a.chromiumInstalled)),X=a?.enabled?a.available?"Ready":a.installInProgress||u?"Installing":"Setup required":"Disabled",A=t?.cursor&&t.viewport?{left:`${t.cursor.x/t.viewport.width*100}%`,top:`${t.cursor.y/t.viewport.height*100}%`}:null,h=l.useCallback(async()=>{R(!0);try{const[s,m]=await Promise.all([b("/api/browser-use/status"),b("/api/browser-use/sessions")]),Q=await f(s),y=(await f(m)).data.sessions;x(Q.data),q(y),w(k=>k&&y.some(Y=>Y.id===k)?k:y[0]?.id||null),p(null)}catch(s){p(s instanceof Error?s.message:"Failed to load Browser")}finally{R(!1)}},[]);l.useEffect(()=>{r&&h()},[r,h]);const v=l.useCallback(async s=>{D(!0),p(null);try{await s(),await h()}catch(m){p(m instanceof Error?m.message:"Browser action failed")}finally{D(!1)}},[h]),M=()=>v(async()=>{if(!t)return;const s=await b(`/api/browser-use/sessions/${t.id}/stop`,{method:"POST"});await f(s)}),T=()=>v(async()=>{if(!t)return;const s=await b(`/api/browser-use/sessions/${t.id}`,{method:"DELETE"});await f(s),N(!1)}),H=()=>v(async()=>{E(!0);try{const s=await b("/api/browser-use/runtime/install",{method:"POST"});await f(s)}finally{E(!1)}}),G=s=>{const m=t?.id===s.id;return e.jsxs("button",{type:"button",onClick:()=>w(s.id),className:o("group w-full rounded-md border px-3 py-2.5 text-left transition-colors",m?"border-primary/50 bg-primary/10 text-foreground":"border-border/60 bg-card/30 text-muted-foreground hover:bg-muted/50"),children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:o("h-1.5 w-1.5 shrink-0 rounded-full",_(s.status))}),e.jsx("div",{className:"truncate text-sm font-medium",children:s.title||j(s.url)})]}),e.jsx("div",{className:"mt-1 truncate pl-3.5 text-xs text-muted-foreground",children:j(s.url)})]}),e.jsx(g,{variant:"outline",className:"shrink-0 border-border bg-background text-[10px] text-muted-foreground",children:s.status})]}),e.jsxs("div",{className:"mt-2 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[e.jsx(re,{className:"h-3 w-3"}),e.jsx("span",{children:O(s.updatedAt)}),e.jsxs("span",{className:"truncate",children:["- ",B(s.lastAction)]})]})]},s.id)},K=()=>e.jsx("div",{className:"flex min-h-0 flex-1 items-center justify-center p-6",children:e.jsxs("div",{className:"w-full max-w-2xl rounded-md border border-border bg-card/40 p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-md border border-border bg-background",children:e.jsx(S,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-sm font-semibold text-foreground",children:a?.enabled?"No browser sessions yet":"Browser is disabled"}),e.jsx("p",{className:"mt-1 max-w-xl text-sm leading-6 text-muted-foreground",children:a?.enabled?"Agent browser sessions appear here while an AI task is using Browser.":"Enable Browser in settings to let agents open monitored browser sessions."})]})]}),J&&e.jsxs("div",{className:"mt-4 rounded-md border border-border bg-muted/30 p-3",children:[e.jsx("div",{className:"text-sm font-medium text-foreground",children:"Runtime setup required"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:a?.message}),e.jsxs(d,{type:"button",size:"sm",className:"mt-3",onClick:H,disabled:c||u||a?.installInProgress,children:[u||a?.installInProgress?e.jsx(ae,{className:"h-4 w-4 animate-spin"}):e.jsx(ne,{className:"h-4 w-4"}),u||a?.installInProgress?"Installing...":"Install Runtime"]})]}),e.jsx("div",{className:"mt-5 grid gap-2 sm:grid-cols-2",children:de.map(s=>e.jsxs("div",{className:"rounded-md border border-border/70 bg-background/70 p-3",children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e.jsx(L,{className:"h-3.5 w-3.5"}),"Prompt"]}),e.jsx("p",{className:"text-sm leading-6 text-foreground",children:s})]},s))})]})}),U=(s=!1)=>e.jsx("div",{className:o("flex flex-1 items-center justify-center bg-neutral-950",s?"min-h-[80vh]":"min-h-[420px]"),children:t?.screenshotDataUrl?e.jsxs("div",{className:"relative inline-block max-h-full",children:[e.jsx("img",{src:t.screenshotDataUrl,alt:"Browser session screenshot",className:s?"block max-h-[80vh] w-auto max-w-full object-contain":"block max-h-[72vh] w-auto max-w-full object-contain"}),A&&e.jsx("div",{className:"pointer-events-none absolute h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white/90 bg-primary/80 shadow-[0_0_0_6px_hsl(var(--primary)/0.18)]",style:A,children:e.jsx("div",{className:"absolute left-1/2 top-1/2 h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white"})})]}):e.jsxs("div",{className:"px-6 text-center",children:[e.jsx(S,{className:"mx-auto h-9 w-9 text-neutral-500"}),e.jsx("div",{className:"mt-3 text-sm font-medium text-neutral-100",children:t?.message||"Waiting for screenshot"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"The next agent browser snapshot will render here."})]})});return e.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-background",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border/60 px-4 py-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(S,{className:"h-4 w-4 text-primary"}),e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Browser"}),e.jsx(g,{variant:"outline",className:o("text-[10px]",le(a,u)),children:X})]}),e.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:"Monitor browser sessions opened by AI agents."})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[i&&e.jsx(d,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>i("browser"),title:"Open Browser settings","aria-label":"Open Browser settings",children:e.jsx(Z,{className:"h-3.5 w-3.5"})}),e.jsx(d,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>{h()},disabled:C||c,title:"Refresh browser sessions","aria-label":"Refresh browser sessions",children:e.jsx(V,{className:o("h-3.5 w-3.5",C&&"animate-spin")})})]})]}),P&&e.jsx("div",{className:"border-b border-destructive/20 bg-destructive/10 px-4 py-2 text-sm text-destructive",children:P}),n.length>0&&e.jsx("div",{className:"border-b border-border/60 bg-muted/20 px-3 py-2 lg:hidden",children:e.jsx("div",{className:"flex gap-2 overflow-x-auto",children:n.map(s=>e.jsxs("button",{type:"button",onClick:()=>w(s.id),className:o("flex min-w-[180px] items-center gap-2 rounded-md border px-2.5 py-2 text-left",t?.id===s.id?"border-primary/40 bg-primary/5":"border-border bg-background"),children:[e.jsx("span",{className:o("h-1.5 w-1.5 shrink-0 rounded-full",_(s.status))}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium text-foreground",children:s.title||j(s.url)})]},s.id))})}),e.jsxs("div",{className:"grid min-h-0 flex-1 grid-cols-1 lg:grid-cols-[minmax(0,1fr)_320px]",children:[e.jsxs("main",{className:"flex min-h-0 flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border/60 bg-muted/20 px-4 py-2.5 text-xs text-muted-foreground",children:[e.jsxs("div",{className:"min-w-0 truncate",children:[z.length," active",e.jsx("span",{className:"px-1.5",children:"/"}),n.length," total"]}),e.jsxs("div",{className:"min-w-0 truncate",children:["Updated ",O(t?.updatedAt||null)]})]}),n.length===0?K():e.jsx("div",{className:"min-h-0 flex-1 overflow-auto bg-muted/20 p-4",children:e.jsxs("div",{className:"mx-auto flex min-h-[500px] max-w-7xl flex-col overflow-hidden rounded-md border border-border bg-background shadow-sm",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-border/60 px-3 py-2",children:[e.jsx(g,{variant:"outline",className:t?o("text-[10px]",ie(t.status)):"text-[10px]",children:t?.status||"empty"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:t?.title||j(t?.url||null)}),e.jsxs("div",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",children:[e.jsx(ee,{className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:t?.url||"No page loaded"})]})]}),e.jsx("div",{className:"hidden text-xs text-muted-foreground md:block",children:B(t?.lastAction||null)}),e.jsx(d,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>N(!0),disabled:!t?.screenshotDataUrl,title:"Full screen","aria-label":"Full screen",children:e.jsx(se,{className:"h-4 w-4"})}),e.jsx(d,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 lg:hidden",onClick:M,disabled:c||!t||t.status!=="ready",title:"Stop session","aria-label":"Stop session",children:e.jsx($,{className:"h-4 w-4"})}),e.jsx(d,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 lg:hidden",onClick:T,disabled:c||!t,title:"Delete session","aria-label":"Delete session",children:e.jsx(F,{className:"h-4 w-4"})})]}),U()]})})]}),e.jsxs("aside",{className:"hidden min-h-0 flex-col border-l border-border/60 bg-background lg:flex",children:[e.jsx("div",{className:"border-b border-border/60 px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold text-foreground",children:"Sessions"}),e.jsxs("div",{className:"mt-0.5 text-xs text-muted-foreground",children:[n.length," total"]})]}),e.jsxs(g,{variant:"outline",className:"text-[10px]",children:[z.length," active"]})]})}),e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:n.length>0?e.jsx("div",{className:"space-y-2",children:n.map(G)}):e.jsx("div",{className:"rounded-md border border-dashed border-border/70 px-3 py-8 text-center text-xs text-muted-foreground",children:"No agent browser sessions."})}),e.jsx("div",{className:"border-t border-border/60 p-3",children:e.jsxs("div",{className:"rounded-md border border-border/70 bg-muted/30 p-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:[e.jsx(L,{className:"h-3.5 w-3.5"}),"Selected"]}),e.jsxs("div",{className:"mt-3 space-y-2 text-xs text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:"Status"}),e.jsx("span",{className:"font-medium text-foreground",children:t?.status||"None"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:"Last action"}),e.jsx("span",{className:"truncate font-medium text-foreground",children:B(t?.lastAction||null)})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:"Profile"}),e.jsx("span",{className:"truncate font-medium text-foreground",children:t?.profileName||"Temporary"})]})]}),e.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[e.jsxs(d,{variant:"outline",size:"sm",onClick:M,disabled:c||!t||t.status!=="ready",children:[e.jsx($,{className:"h-4 w-4"}),"Stop"]}),e.jsxs(d,{variant:"outline",size:"sm",onClick:T,disabled:c||!t,children:[e.jsx(F,{className:"h-4 w-4"}),"Delete"]})]})]})})]})]}),W&&t&&e.jsx("div",{className:"fixed inset-0 z-50 bg-black/90 p-6",children:e.jsxs("div",{className:"flex h-full flex-col rounded-md border border-white/10 bg-black",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 px-4 py-3 text-sm text-white/80",children:[e.jsx("div",{className:"min-w-0 truncate",children:t.title||t.url||"Browser session"}),e.jsxs(d,{variant:"outline",size:"sm",onClick:()=>N(!1),children:[e.jsx(te,{className:"h-4 w-4"}),"Close"]})]}),U(!0)]})})]})}export{fe as BrowserUsePanel};
@@ -1,4 +1,4 @@
1
- import{r as n,j as e}from"./vendor-react-C2GTiUCy.js";import{c as L,a as $,f as E}from"./feature-workspace-CAB6bgPy.js";import{T as B,at as F,a as O,X as I,$ as W,a9 as _,c as q,M as K,aa as H,b2 as V,b3 as Q}from"./vendor-ui-CAUHSABu.js";import{E as X,m as J,M as Y,R as Z,o as ee}from"./MarkdownPreview-PEEWVWeS.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";import"./feature-chat-CvOCyaLe.js";const D=`# Product Requirements Document
1
+ import{r as n,j as e}from"./vendor-react-C2GTiUCy.js";import{c as L,a as $,f as E}from"./feature-workspace-BodovOw6.js";import{T as B,at as F,a as O,X as I,$ as W,a9 as _,c as q,M as K,aa as H,b2 as V,b3 as Q}from"./vendor-ui-CAUHSABu.js";import{E as X,m as J,M as Y,R as Z,o as ee}from"./MarkdownPreview-DVoEzpoc.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";import"./feature-chat-CHKsDTs-.js";const D=`# Product Requirements Document
2
2
 
3
3
  ## 1. Overview
4
4
  - Product Name:
@@ -1,2 +1,2 @@
1
- import{_ as a,l as o,D as i,e as n}from"./mermaid.core-C2Ma-_S6.js";import{p}from"./cynefin-VYW2F7L2-DziGp35A.js";import"./feature-workspace-CAB6bgPy.js";import"./vendor-react-C2GTiUCy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";var g={parse:a(async r=>{const e=await p("info",r);o.debug(e)},"parse")},m={version:"11.16.1"},v=a(()=>m.version,"getVersion"),d={getVersion:v},c=a((r,e,s)=>{o.debug(`rendering info diagram
1
+ import{_ as a,l as o,D as i,e as n}from"./mermaid.core-BsWqrIaW.js";import{p}from"./cynefin-VYW2F7L2-Cbmals-o.js";import"./feature-workspace-BodovOw6.js";import"./vendor-react-C2GTiUCy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";var g={parse:a(async r=>{const e=await p("info",r);o.debug(e)},"parse")},m={version:"11.16.1"},v=a(()=>m.version,"getVersion"),d={getVersion:v},c=a((r,e,s)=>{o.debug(`rendering info diagram
2
2
  `+r);const t=i(e);n(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${s}`)},"draw"),l={draw:c},z={parser:g,db:d,renderer:l};export{z as diagram};
@@ -1,4 +1,4 @@
1
- import{_ as o,c as ot,K as ut,D as dt,ak as yt,p as pt,k as ft,n as it,a as gt,b as kt,g as mt,s as wt,o as _t,e as bt}from"./mermaid.core-C2Ma-_S6.js";import"./feature-workspace-CAB6bgPy.js";import"./vendor-react-C2GTiUCy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],f=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,C=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(B){i.length=i.length-2*B,f.length=f.length-B,n.length=n.length-B}o(X,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}o(tt,"lex");for(var M,W,N,Y,F={},U,V,et,Z;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{_ as o,c as ot,K as ut,D as dt,ak as yt,p as pt,k as ft,n as it,a as gt,b as kt,g as mt,s as wt,o as _t,e as bt}from"./mermaid.core-BsWqrIaW.js";import"./feature-workspace-BodovOw6.js";import"./vendor-react-C2GTiUCy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],f=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,C=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(B){i.length=i.length-2*B,f.length=f.length-B,n.length=n.length-B}o(X,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}o(tt,"lex");for(var M,W,N,Y,F={},U,V,et,Z;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+Z.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:Z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),f.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],F.$=f[f.length-V],F._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},G&&(F._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),Y=this.performAction.apply(F,[w,$,I,S.yy,N[1],f,n].concat(C)),typeof Y<"u")return Y;V&&(i=i.slice(0,-1*V*2),f=f.slice(0,-1*V),n=n.slice(0,-1*V)),i.push(this.productions_[N[1]][0]),f.push(F.$),n.push(F._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as gt}from"./chunk-5VM5RSS4-B9QAJPrv.js";import{a as mt,g as lt,h as xt,d as kt}from"./chunk-2GRJ4B5K-BPaI06Ou.js";import{g as _t,s as vt,a as bt,b as wt,o as Tt,n as St,_ as s,c as R,d as X,e as $t,p as Mt}from"./mermaid.core-C2Ma-_S6.js";import{d as it}from"./arc-BAuugHw_.js";import"./feature-workspace-CAB6bgPy.js";import"./vendor-react-C2GTiUCy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
1
+ import{g as gt}from"./chunk-5VM5RSS4-CR-F7R13.js";import{a as mt,g as lt,h as xt,d as kt}from"./chunk-2GRJ4B5K-BHIcCvB_.js";import{g as _t,s as vt,a as bt,b as wt,o as Tt,n as St,_ as s,c as R,d as X,e as $t,p as Mt}from"./mermaid.core-BsWqrIaW.js";import{d as it}from"./arc-h9xb7EWA.js";import"./feature-workspace-BodovOw6.js";import"./vendor-react-C2GTiUCy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{_ as o,l as te,c as H,D as fe,ae as ye,af as me,ag as be,ac as _e,B as K,i as j,G as ke,J as Ee,a9 as Se,aa as ce,ab as le}from"./mermaid.core-C2Ma-_S6.js";import{g as Ne}from"./chunk-5VM5RSS4-B9QAJPrv.js";import"./feature-workspace-CAB6bgPy.js";import"./vendor-react-C2GTiUCy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],_=[1,16],b=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],k=[6,7,11],F=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:I,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:F}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:F}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);m.setInput(i,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;t.push(q);var de=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var E,P,x,Q,G={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=U[P]&&U[P][E]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");m.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{_ as o,l as te,c as H,D as fe,ae as ye,af as me,ag as be,ac as _e,B as K,i as j,G as ke,J as Ee,a9 as Se,aa as ce,ab as le}from"./mermaid.core-BsWqrIaW.js";import{g as Ne}from"./chunk-5VM5RSS4-CR-F7R13.js";import"./feature-workspace-BodovOw6.js";import"./vendor-react-C2GTiUCy.js";import"./vendor-ui-CAUHSABu.js";import"./vendor-i18n-B6HjLCnN.js";import"./vendor-data-DsEZeNPr.js";import"./vendor-markdown-DkITEES2.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],_=[1,16],b=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],k=[6,7,11],F=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:I,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:F}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:F}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);m.setInput(i,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;t.push(q);var de=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var E,P,x,Q,G={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=U[P]&&U[P][E]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");m.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(x[0]){case 1:r.push(E),u.push(m.yytext),t.push(m.yylloc),r.push(x[1]),E=null,se=m.yyleng,c=m.yytext,W=m.yylineno,q=m.yylloc;break;case 2:if(C=this.productions_[x[1]][1],G.$=u[u.length-C],G._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(G._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(G,[c,se,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(G.$),t.push(G._$),oe=U[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var n=i.length,r=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{b8 as j,b9 as p,ba as w,bb as k,bc as q}from"./mermaid.core-C2Ma-_S6.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as g,f as F,a as z,b as B}from"./defaultLocale-DX6XiGOO.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=d(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=d(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function d(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=N(u,e),f=t(a,f)):(e=N(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=N(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=d,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};
1
+ import{b8 as j,b9 as p,ba as w,bb as k,bc as q}from"./mermaid.core-BsWqrIaW.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as g,f as F,a as z,b as B}from"./defaultLocale-DX6XiGOO.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=d(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=d(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function d(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=N(u,e),f=t(a,f)):(e=N(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=N(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=d,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};