local-operator-ui 0.48.3 → 0.48.5

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 (100) hide show
  1. package/out/main/index.js +424 -57
  2. package/out/preload/index.js +39 -0
  3. package/out/renderer/assets/{_basePickBy-M-jvq3Wn.js → _basePickBy-TWuKvVpC.js} +1 -1
  4. package/out/renderer/assets/{_baseUniq-DHWv4q1T.js → _baseUniq-Bhe44p7o.js} +1 -1
  5. package/out/renderer/assets/{agent-details-page-5Eou1bhn.js → agent-details-page-zCxYkFNQ.js} +1 -1
  6. package/out/renderer/assets/{agent-hub-page-DIcd9D14.js → agent-hub-page-Cu0a6aRJ.js} +1 -1
  7. package/out/renderer/assets/{agents-page-CqRqt7BX.js → agents-page-Cdvz8Ecb.js} +5 -5
  8. package/out/renderer/assets/{approvalsOverlay-DPC492Fl.js → approvalsOverlay-WBOsPQyQ.js} +1 -1
  9. package/out/renderer/assets/{arc-Bv4PoZnr.js → arc-D5IdgXnV.js} +1 -1
  10. package/out/renderer/assets/{architectureDiagram-IEHRJDOE-BvBJ2-J_.js → architectureDiagram-IEHRJDOE-BofF0Xoc.js} +1 -1
  11. package/out/renderer/assets/{avatar-cropper-BbkOWX0O.js → avatar-cropper-BV9pfbSJ.js} +1 -1
  12. package/out/renderer/assets/{blockDiagram-JOT3LUYC-BMCrE4n_.js → blockDiagram-JOT3LUYC-CXNhCa3p.js} +1 -1
  13. package/out/renderer/assets/{book-open-B-1p1Dmc.js → book-open-4khD6B-v.js} +1 -1
  14. package/out/renderer/assets/browser-page-BXHeGHJF.js +1 -0
  15. package/out/renderer/assets/{browser-webauthn-prompt-CZ7EoHvg.js → browser-webauthn-prompt-hBFTXi1F.js} +1 -1
  16. package/out/renderer/assets/{building-2-BrpfyqYz.js → building-2-DGlgv_3I.js} +1 -1
  17. package/out/renderer/assets/{c4Diagram-VJAJSXHY-DSYK0ci5.js → c4Diagram-VJAJSXHY-B3mz6Z9m.js} +1 -1
  18. package/out/renderer/assets/channel-LsNleWKO.js +1 -0
  19. package/out/renderer/assets/{chunk-4BMEZGHF-jRucwtWG.js → chunk-4BMEZGHF-D7rjLAgd.js} +1 -1
  20. package/out/renderer/assets/{chunk-A2AXSNBT-D_NIorf5.js → chunk-A2AXSNBT-iEFmm6OB.js} +1 -1
  21. package/out/renderer/assets/{chunk-AEK57VVT-D7HCifQ1.js → chunk-AEK57VVT-U4kT85HV.js} +1 -1
  22. package/out/renderer/assets/{chunk-D6G4REZN-ClIJvBVj.js → chunk-D6G4REZN-B9UuBdm5.js} +1 -1
  23. package/out/renderer/assets/{chunk-RZ5BOZE2-D-ZhMLMw.js → chunk-RZ5BOZE2-BysIzka2.js} +1 -1
  24. package/out/renderer/assets/{chunk-XZIHB7SX-BCIQANrv.js → chunk-XZIHB7SX-XwISeGT9.js} +1 -1
  25. package/out/renderer/assets/classDiagram-GIVACNV2-lwFVEeSj.js +1 -0
  26. package/out/renderer/assets/classDiagram-v2-COTLJTTW-lwFVEeSj.js +1 -0
  27. package/out/renderer/assets/clone-BaybiQWJ.js +1 -0
  28. package/out/renderer/assets/{console-mirror-DzqQp-In.js → console-mirror-1z96hWwG.js} +1 -1
  29. package/out/renderer/assets/{consoleCapture-B6OPLMTg.js → consoleCapture-DSbKoJkH.js} +1 -1
  30. package/out/renderer/assets/{conversation-input-sync-D71p4Rag.js → conversation-input-sync-CA-NlH9A.js} +5 -5
  31. package/out/renderer/assets/{dagre-OKDRZEBW-Bkez7sD-.js → dagre-OKDRZEBW-CVkzqUwx.js} +1 -1
  32. package/out/renderer/assets/{diagram-SSKATNLV-CH54uZpK.js → diagram-SSKATNLV-DrMzRRC7.js} +1 -1
  33. package/out/renderer/assets/{diagram-VNBRO52H-CQzlilZD.js → diagram-VNBRO52H-Dg9_oxJB.js} +1 -1
  34. package/out/renderer/assets/{erDiagram-Q7BY3M3F-DyYefGpO.js → erDiagram-Q7BY3M3F-Bv_01_vO.js} +1 -1
  35. package/out/renderer/assets/{error-boundary-B2yiQ5Df.js → error-boundary-OwA_uKkY.js} +1 -1
  36. package/out/renderer/assets/{flowDiagram-4HSFHLVR-CAzeUHN8.js → flowDiagram-4HSFHLVR-BEdIcLOk.js} +1 -1
  37. package/out/renderer/assets/{ganttDiagram-APWFNJXF-VDcP7B19.js → ganttDiagram-APWFNJXF-DwBMBn0B.js} +1 -1
  38. package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-DmFOuC5L.js → gitGraphDiagram-7IBYFJ6S-D9Xfi585.js} +1 -1
  39. package/out/renderer/assets/{graph-DlJtBdxE.js → graph--_6YRvNt.js} +1 -1
  40. package/out/renderer/assets/{hash-B9KVihB1.js → hash-eKapyKur.js} +1 -1
  41. package/out/renderer/assets/{heart-Cw1S0yFJ.js → heart-CFgkk4l0.js} +1 -1
  42. package/out/renderer/assets/{image-plus-KwTVL3Hy.js → image-plus-C7bQcR76.js} +1 -1
  43. package/out/renderer/assets/{index-CYyP7MM9.js → index-CW7JpbBx.js} +1 -1
  44. package/out/renderer/assets/{index--aQo4p3V.js → index-ClKLYxFA.js} +188 -188
  45. package/out/renderer/assets/{index-DEywdsQi.js → index-CyVnGJyK.js} +1 -1
  46. package/out/renderer/assets/{index-Cnm0Kxzr.js → index-k_ibS7OP.js} +1 -1
  47. package/out/renderer/assets/infoDiagram-PH2N3AL5-BXUllDL6.js +2 -0
  48. package/out/renderer/assets/{installer-BBjM_Kai.js → installer-p_c_K-V4.js} +1 -1
  49. package/out/renderer/assets/{journeyDiagram-U35MCT3I-BYC6FPgL.js → journeyDiagram-U35MCT3I-D4ysR0_X.js} +1 -1
  50. package/out/renderer/assets/{kanban-definition-NDS4AKOZ-6flx8xBd.js → kanban-definition-NDS4AKOZ-CKjV_xoh.js} +1 -1
  51. package/out/renderer/assets/{layout-yAujwank.js → layout-B1sQcfBm.js} +1 -1
  52. package/out/renderer/assets/{legacy-agents-page-BDiFj8Ic.js → legacy-agents-page-C3fCx_4w.js} +3 -3
  53. package/out/renderer/assets/{library-page--plMWde0.js → library-page-BWTRx0RD.js} +8 -8
  54. package/out/renderer/assets/{mermaid.core-BID4UpCq.js → mermaid.core-BFagl5M0.js} +5 -5
  55. package/out/renderer/assets/mesh-page-nF_pkDfu.js +1 -0
  56. package/out/renderer/assets/{messages-I_auk7nN.js → messages-DjcNNMrL.js} +10 -10
  57. package/out/renderer/assets/{mindmap-definition-ALO5MXBD-BzDz1T4C.js → mindmap-definition-ALO5MXBD-BU4sAzTF.js} +1 -1
  58. package/out/renderer/assets/{mini-CPJs7fAJ.js → mini-D7qJkiP2.js} +1 -1
  59. package/out/renderer/assets/{notebook-pen-BQAHf3CK.js → notebook-pen-CvsQ4S5s.js} +1 -1
  60. package/out/renderer/assets/{notifications-page-DAccaApk.js → notifications-page-BrfQXjv0.js} +1 -1
  61. package/out/renderer/assets/{org-access-B55tN-wN.js → org-access-4sUREjsN.js} +1 -1
  62. package/out/renderer/assets/{org-surface-gate-Dpo49SIX.js → org-surface-gate-Dcew35UJ.js} +1 -1
  63. package/out/renderer/assets/{page-header-QjjmHoZF.js → page-header-C_NLT5l1.js} +1 -1
  64. package/out/renderer/assets/path-utils-D8EGhun0.js +64 -0
  65. package/out/renderer/assets/{pieDiagram-IB7DONF6-Ckf73eVB.js → pieDiagram-IB7DONF6-DiOrqvCg.js} +1 -1
  66. package/out/renderer/assets/{project-markdown-DhuTOF9B.js → project-markdown-DRTB-eF8.js} +1 -1
  67. package/out/renderer/assets/{projects-page-CENVSkF0.js → projects-page-Ce1Ncgqc.js} +1 -1
  68. package/out/renderer/assets/{publication-validation-DCHogFwH.js → publication-validation-BJvhF9QM.js} +1 -1
  69. package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-CukkYRcZ.js → quadrantDiagram-7GDLP6J5-Bkv8fZSt.js} +1 -1
  70. package/out/renderer/assets/{radar-MK3ICKWK-BFVy1TPO.js → radar-MK3ICKWK-CGB-9AQb.js} +1 -1
  71. package/out/renderer/assets/{radient-auth-buttons-B0WZfkAm.js → radient-auth-buttons-89F5YrRW.js} +1 -1
  72. package/out/renderer/assets/{requirementDiagram-KVF5MWMF-CLOwnKJ_.js → requirementDiagram-KVF5MWMF-0dxFI-J5.js} +1 -1
  73. package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-D9L0XONs.js → sankeyDiagram-QLVOVGJD-BDSYzFoN.js} +1 -1
  74. package/out/renderer/assets/{schedules-page-BCGeo9lm.js → schedules-page-CxGBhfL5.js} +1 -1
  75. package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-sNzUGgFS.js → sequenceDiagram-X6HHIX6F-Csei-YXd.js} +1 -1
  76. package/out/renderer/assets/{settings-page-qzCQaHbG.js → settings-page-DJ0aFYTv.js} +1 -1
  77. package/out/renderer/assets/{smartart-BaCJV11W.js → smartart-DWwS7qRw.js} +1 -1
  78. package/out/renderer/assets/{stateDiagram-DGXRK772-fl5BCeSu.js → stateDiagram-DGXRK772-CBwyxyKR.js} +1 -1
  79. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-jS1LVmLM.js +1 -0
  80. package/out/renderer/assets/{team-bridge-page-DD-UgkLM.js → team-bridge-page-DD1d63nj.js} +1 -1
  81. package/out/renderer/assets/{team-bridge-scope-preference-CtBsR9zu.js → team-bridge-scope-preference-D3OA1yyw.js} +1 -1
  82. package/out/renderer/assets/{timeline-definition-BDJGKUSR-oVRl5T45.js → timeline-definition-BDJGKUSR-CrVyfj7p.js} +1 -1
  83. package/out/renderer/assets/{use-download-agent-mutation-DFh6hdwG.js → use-download-agent-mutation-DmsgPFVR.js} +2 -2
  84. package/out/renderer/assets/{use-session-snapshot-iw7nmRrx.js → use-session-snapshot-ZwSI2jWI.js} +1 -1
  85. package/out/renderer/assets/{xychartDiagram-VJFVF3MP-bfVphPfn.js → xychartDiagram-VJFVF3MP-PfcVrXID.js} +1 -1
  86. package/out/renderer/browser-approvals-overlay.html +2 -2
  87. package/out/renderer/console-capture.html +5 -5
  88. package/out/renderer/index.html +7 -7
  89. package/out/renderer/installer.html +4 -4
  90. package/out/renderer/mini.html +7 -7
  91. package/package.json +1 -1
  92. package/out/renderer/assets/browser-page-Dxgd8SPH.js +0 -1
  93. package/out/renderer/assets/channel-BGecDkut.js +0 -1
  94. package/out/renderer/assets/classDiagram-GIVACNV2-BdOL2X6f.js +0 -1
  95. package/out/renderer/assets/classDiagram-v2-COTLJTTW-BdOL2X6f.js +0 -1
  96. package/out/renderer/assets/clone-BGvzkDW0.js +0 -1
  97. package/out/renderer/assets/infoDiagram-PH2N3AL5-D7hgAI6V.js +0 -2
  98. package/out/renderer/assets/mesh-page-Bm7f1lxI.js +0 -1
  99. package/out/renderer/assets/path-utils-B5eFmEYJ.js +0 -64
  100. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-BQGimP_x.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as fe,b as Vt,g as Pt,d as xe,c as Te,e as ye}from"./chunk-D6G4REZN-ClIJvBVj.js";import{I as Ee}from"./chunk-XZIHB7SX-BCIQANrv.js";import{_ as u,o as be,c as $,d as It,l as G,j as Jt,e as me,f as we,k as v,b as Ut,s as ve,q as Ie,a as Le,g as _e,t as Pe,z as Ae,i as Lt,u as Y,O as ot,P as Et,Q as Zt,Z as ke,R as Qt,G as Dt}from"./mermaid.core-BID4UpCq.js";import"./conversation-input-sync-D71p4Rag.js";import"./index-CYyP7MM9.js";import"./messages-I_auk7nN.js";import"./path-utils-B5eFmEYJ.js";import"./error-boundary-B2yiQ5Df.js";var Ct=function(){var t=u(function(ht,w,L,P){for(L=L||{},P=ht.length;P--;L[ht[P]]=w);return L},"o"),e=[1,2],c=[1,3],s=[1,4],r=[2,4],i=[1,9],o=[1,11],h=[1,13],d=[1,14],a=[1,16],f=[1,17],E=[1,18],g=[1,24],T=[1,25],m=[1,26],I=[1,27],A=[1,28],O=[1,29],S=[1,30],B=[1,31],D=[1,32],F=[1,33],q=[1,34],X=[1,35],tt=[1,36],z=[1,37],H=[1,38],W=[1,39],M=[1,41],J=[1,42],K=[1,43],Z=[1,44],et=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],_=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],at=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],k=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Ft=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],it=[68,69,70],ct=[1,122],kt={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:u(function(w,L,P,b,R,l,yt){var p=l.length-1;switch(R){case 3:return b.apply(l[p]),l[p];case 4:case 9:this.$=[];break;case 5:case 10:l[p-1].push(l[p]),this.$=l[p-1];break;case 6:case 7:case 11:case 12:this.$=l[p];break;case 8:case 13:this.$=[];break;case 15:l[p].type="createParticipant",this.$=l[p];break;case 16:l[p-1].unshift({type:"boxStart",boxData:b.parseBoxData(l[p-2])}),l[p-1].push({type:"boxEnd",boxText:l[p-2]}),this.$=l[p-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[p-2]),sequenceIndexStep:Number(l[p-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[p-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[p-1].actor};break;case 29:b.setDiagramTitle(l[p].substring(6)),this.$=l[p].substring(6);break;case 30:b.setDiagramTitle(l[p].substring(7)),this.$=l[p].substring(7);break;case 31:this.$=l[p].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=l[p].trim(),b.setAccDescription(this.$);break;case 34:l[p-1].unshift({type:"loopStart",loopText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.LOOP_START}),l[p-1].push({type:"loopEnd",loopText:l[p-2],signalType:b.LINETYPE.LOOP_END}),this.$=l[p-1];break;case 35:l[p-1].unshift({type:"rectStart",color:b.parseMessage(l[p-2]),signalType:b.LINETYPE.RECT_START}),l[p-1].push({type:"rectEnd",color:b.parseMessage(l[p-2]),signalType:b.LINETYPE.RECT_END}),this.$=l[p-1];break;case 36:l[p-1].unshift({type:"optStart",optText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.OPT_START}),l[p-1].push({type:"optEnd",optText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.OPT_END}),this.$=l[p-1];break;case 37:l[p-1].unshift({type:"altStart",altText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.ALT_START}),l[p-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=l[p-1];break;case 38:l[p-1].unshift({type:"parStart",parText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.PAR_START}),l[p-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[p-1];break;case 39:l[p-1].unshift({type:"parStart",parText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.PAR_OVER_START}),l[p-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[p-1];break;case 40:l[p-1].unshift({type:"criticalStart",criticalText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.CRITICAL_START}),l[p-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=l[p-1];break;case 41:l[p-1].unshift({type:"breakStart",breakText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.BREAK_START}),l[p-1].push({type:"breakEnd",optText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.BREAK_END}),this.$=l[p-1];break;case 43:this.$=l[p-3].concat([{type:"option",optionText:b.parseMessage(l[p-1]),signalType:b.LINETYPE.CRITICAL_OPTION},l[p]]);break;case 45:this.$=l[p-3].concat([{type:"and",parText:b.parseMessage(l[p-1]),signalType:b.LINETYPE.PAR_AND},l[p]]);break;case 47:this.$=l[p-3].concat([{type:"else",altText:b.parseMessage(l[p-1]),signalType:b.LINETYPE.ALT_ELSE},l[p]]);break;case 48:l[p-3].draw="participant",l[p-3].type="addParticipant",l[p-3].description=b.parseMessage(l[p-1]),this.$=l[p-3];break;case 49:l[p-1].draw="participant",l[p-1].type="addParticipant",this.$=l[p-1];break;case 50:l[p-3].draw="actor",l[p-3].type="addParticipant",l[p-3].description=b.parseMessage(l[p-1]),this.$=l[p-3];break;case 51:l[p-1].draw="actor",l[p-1].type="addParticipant",this.$=l[p-1];break;case 52:l[p-1].type="destroyParticipant",this.$=l[p-1];break;case 53:this.$=[l[p-1],{type:"addNote",placement:l[p-2],actor:l[p-1].actor,text:l[p]}];break;case 54:l[p-2]=[].concat(l[p-1],l[p-1]).slice(0,2),l[p-2][0]=l[p-2][0].actor,l[p-2][1]=l[p-2][1].actor,this.$=[l[p-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:l[p-2].slice(0,2),text:l[p]}];break;case 55:this.$=[l[p-1],{type:"addLinks",actor:l[p-1].actor,text:l[p]}];break;case 56:this.$=[l[p-1],{type:"addALink",actor:l[p-1].actor,text:l[p]}];break;case 57:this.$=[l[p-1],{type:"addProperties",actor:l[p-1].actor,text:l[p]}];break;case 58:this.$=[l[p-1],{type:"addDetails",actor:l[p-1].actor,text:l[p]}];break;case 61:this.$=[l[p-2],l[p]];break;case 62:this.$=l[p];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[p-1].actor}];break;case 66:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[p-4].actor}];break;case 67:this.$=[l[p-3],l[p-1],{type:"addMessage",from:l[p-3].actor,to:l[p-1].actor,signalType:l[p-2],msg:l[p]}];break;case 68:this.$={type:"addParticipant",actor:l[p]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(l[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:o,8:8,9:10,12:12,13:h,14:d,17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},t(y,[2,5]),{9:47,12:12,13:h,14:d,17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:N},{22:90,70:N},{22:91,70:N},{22:92,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(y,[2,6]),t(y,[2,15]),t(_,[2,9],{10:93}),t(y,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(y,[2,21]),{5:[1,97]},{5:[1,98]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(Q,r,{7:99}),t(Q,r,{7:100}),t(Q,r,{7:101}),t(at,r,{40:102,7:103}),t(k,r,{42:104,7:105}),t(k,r,{7:105,42:106}),t(Ft,r,{45:107,7:108}),t(Q,r,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:N},t(it,[2,69]),t(it,[2,70]),t(it,[2,71]),t(it,[2,72]),t(it,[2,73]),t(it,[2,74]),t(it,[2,75]),t(it,[2,76]),t(it,[2,77]),t(it,[2,78]),{22:118,70:N},{22:120,58:119,70:N},{70:[2,63]},{70:[2,64]},{56:121,81:ct},{56:123,81:ct},{56:124,81:ct},{56:125,81:ct},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:z,52:H,53:W},{5:[1,131]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[1,132],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[1,133],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[1,134],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{16:[1,135]},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[2,46],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,49:[1,136],50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{16:[1,137]},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[2,44],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,48:[1,138],50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{16:[1,139]},{16:[1,140]},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[2,42],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,47:[1,141],50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[1,142],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{15:[1,143]},t(y,[2,49]),{15:[1,144]},t(y,[2,51]),t(y,[2,52]),{22:145,70:N},{22:146,70:N},{56:147,81:ct},{56:148,81:ct},{56:149,81:ct},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(_,[2,10]),{12:151,50:z,52:H,53:W},t(_,[2,12]),t(_,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,152]},t(y,[2,38]),{15:[1,153]},t(y,[2,39]),t(y,[2,40]),{15:[1,154]},t(y,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:ct},{56:158,81:ct},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:N},t(_,[2,11]),t(at,r,{7:103,40:160}),t(k,r,{7:105,42:161}),t(Ft,r,{7:108,45:162}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:u(function(w,L){if(L.recoverable)this.trace(w);else{var P=new Error(w);throw P.hash=L,P}},"parseError"),parse:u(function(w){var L=this,P=[0],b=[],R=[null],l=[],yt=this.table,p="",mt=0,qt=0,de=2,zt=1,pe=l.slice.call(arguments,1),V=Object.create(this.lexer),dt={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(dt.yy[Nt]=this.yy[Nt]);V.setInput(w,dt.yy),dt.yy.lexer=V,dt.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var St=V.yylloc;l.push(St);var ue=V.options&&V.options.ranges;typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ge(j){P.length=P.length-2*j,R.length=R.length-j,l.length=l.length-j}u(ge,"popStack");function Ht(){var j;return j=b.pop()||V.lex()||zt,typeof j!="number"&&(j instanceof Array&&(b=j,j=b.pop()),j=L.symbols_[j]||j),j}u(Ht,"lex");for(var U,pt,st,Mt,ft={},wt,lt,Kt,vt;;){if(pt=P[P.length-1],this.defaultActions[pt]?st=this.defaultActions[pt]:((U===null||typeof U>"u")&&(U=Ht()),st=yt[pt]&&yt[pt][U]),typeof st>"u"||!st.length||!st[0]){var Rt="";vt=[];for(wt in yt[pt])this.terminals_[wt]&&wt>de&&vt.push("'"+this.terminals_[wt]+"'");V.showPosition?Rt="Parse error on line "+(mt+1)+`:
1
+ import{a as fe,b as Vt,g as Pt,d as xe,c as Te,e as ye}from"./chunk-D6G4REZN-B9UuBdm5.js";import{I as Ee}from"./chunk-XZIHB7SX-XwISeGT9.js";import{_ as u,o as be,c as $,d as It,l as G,j as Jt,e as me,f as we,k as v,b as Ut,s as ve,q as Ie,a as Le,g as _e,t as Pe,z as Ae,i as Lt,u as Y,O as ot,P as Et,Q as Zt,Z as ke,R as Qt,G as Dt}from"./mermaid.core-BFagl5M0.js";import"./conversation-input-sync-CA-NlH9A.js";import"./index-CW7JpbBx.js";import"./messages-DjcNNMrL.js";import"./path-utils-D8EGhun0.js";import"./error-boundary-OwA_uKkY.js";var Ct=function(){var t=u(function(ht,w,L,P){for(L=L||{},P=ht.length;P--;L[ht[P]]=w);return L},"o"),e=[1,2],c=[1,3],s=[1,4],r=[2,4],i=[1,9],o=[1,11],h=[1,13],d=[1,14],a=[1,16],f=[1,17],E=[1,18],g=[1,24],T=[1,25],m=[1,26],I=[1,27],A=[1,28],O=[1,29],S=[1,30],B=[1,31],D=[1,32],F=[1,33],q=[1,34],X=[1,35],tt=[1,36],z=[1,37],H=[1,38],W=[1,39],M=[1,41],J=[1,42],K=[1,43],Z=[1,44],et=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],_=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],at=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],k=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Ft=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],it=[68,69,70],ct=[1,122],kt={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:u(function(w,L,P,b,R,l,yt){var p=l.length-1;switch(R){case 3:return b.apply(l[p]),l[p];case 4:case 9:this.$=[];break;case 5:case 10:l[p-1].push(l[p]),this.$=l[p-1];break;case 6:case 7:case 11:case 12:this.$=l[p];break;case 8:case 13:this.$=[];break;case 15:l[p].type="createParticipant",this.$=l[p];break;case 16:l[p-1].unshift({type:"boxStart",boxData:b.parseBoxData(l[p-2])}),l[p-1].push({type:"boxEnd",boxText:l[p-2]}),this.$=l[p-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[p-2]),sequenceIndexStep:Number(l[p-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[p-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[p-1].actor};break;case 29:b.setDiagramTitle(l[p].substring(6)),this.$=l[p].substring(6);break;case 30:b.setDiagramTitle(l[p].substring(7)),this.$=l[p].substring(7);break;case 31:this.$=l[p].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=l[p].trim(),b.setAccDescription(this.$);break;case 34:l[p-1].unshift({type:"loopStart",loopText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.LOOP_START}),l[p-1].push({type:"loopEnd",loopText:l[p-2],signalType:b.LINETYPE.LOOP_END}),this.$=l[p-1];break;case 35:l[p-1].unshift({type:"rectStart",color:b.parseMessage(l[p-2]),signalType:b.LINETYPE.RECT_START}),l[p-1].push({type:"rectEnd",color:b.parseMessage(l[p-2]),signalType:b.LINETYPE.RECT_END}),this.$=l[p-1];break;case 36:l[p-1].unshift({type:"optStart",optText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.OPT_START}),l[p-1].push({type:"optEnd",optText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.OPT_END}),this.$=l[p-1];break;case 37:l[p-1].unshift({type:"altStart",altText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.ALT_START}),l[p-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=l[p-1];break;case 38:l[p-1].unshift({type:"parStart",parText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.PAR_START}),l[p-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[p-1];break;case 39:l[p-1].unshift({type:"parStart",parText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.PAR_OVER_START}),l[p-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[p-1];break;case 40:l[p-1].unshift({type:"criticalStart",criticalText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.CRITICAL_START}),l[p-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=l[p-1];break;case 41:l[p-1].unshift({type:"breakStart",breakText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.BREAK_START}),l[p-1].push({type:"breakEnd",optText:b.parseMessage(l[p-2]),signalType:b.LINETYPE.BREAK_END}),this.$=l[p-1];break;case 43:this.$=l[p-3].concat([{type:"option",optionText:b.parseMessage(l[p-1]),signalType:b.LINETYPE.CRITICAL_OPTION},l[p]]);break;case 45:this.$=l[p-3].concat([{type:"and",parText:b.parseMessage(l[p-1]),signalType:b.LINETYPE.PAR_AND},l[p]]);break;case 47:this.$=l[p-3].concat([{type:"else",altText:b.parseMessage(l[p-1]),signalType:b.LINETYPE.ALT_ELSE},l[p]]);break;case 48:l[p-3].draw="participant",l[p-3].type="addParticipant",l[p-3].description=b.parseMessage(l[p-1]),this.$=l[p-3];break;case 49:l[p-1].draw="participant",l[p-1].type="addParticipant",this.$=l[p-1];break;case 50:l[p-3].draw="actor",l[p-3].type="addParticipant",l[p-3].description=b.parseMessage(l[p-1]),this.$=l[p-3];break;case 51:l[p-1].draw="actor",l[p-1].type="addParticipant",this.$=l[p-1];break;case 52:l[p-1].type="destroyParticipant",this.$=l[p-1];break;case 53:this.$=[l[p-1],{type:"addNote",placement:l[p-2],actor:l[p-1].actor,text:l[p]}];break;case 54:l[p-2]=[].concat(l[p-1],l[p-1]).slice(0,2),l[p-2][0]=l[p-2][0].actor,l[p-2][1]=l[p-2][1].actor,this.$=[l[p-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:l[p-2].slice(0,2),text:l[p]}];break;case 55:this.$=[l[p-1],{type:"addLinks",actor:l[p-1].actor,text:l[p]}];break;case 56:this.$=[l[p-1],{type:"addALink",actor:l[p-1].actor,text:l[p]}];break;case 57:this.$=[l[p-1],{type:"addProperties",actor:l[p-1].actor,text:l[p]}];break;case 58:this.$=[l[p-1],{type:"addDetails",actor:l[p-1].actor,text:l[p]}];break;case 61:this.$=[l[p-2],l[p]];break;case 62:this.$=l[p];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[p-1].actor}];break;case 66:this.$=[l[p-4],l[p-1],{type:"addMessage",from:l[p-4].actor,to:l[p-1].actor,signalType:l[p-3],msg:l[p]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[p-4].actor}];break;case 67:this.$=[l[p-3],l[p-1],{type:"addMessage",from:l[p-3].actor,to:l[p-1].actor,signalType:l[p-2],msg:l[p]}];break;case 68:this.$={type:"addParticipant",actor:l[p]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(l[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:o,8:8,9:10,12:12,13:h,14:d,17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},t(y,[2,5]),{9:47,12:12,13:h,14:d,17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:N},{22:90,70:N},{22:91,70:N},{22:92,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(y,[2,6]),t(y,[2,15]),t(_,[2,9],{10:93}),t(y,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(y,[2,21]),{5:[1,97]},{5:[1,98]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(Q,r,{7:99}),t(Q,r,{7:100}),t(Q,r,{7:101}),t(at,r,{40:102,7:103}),t(k,r,{42:104,7:105}),t(k,r,{7:105,42:106}),t(Ft,r,{45:107,7:108}),t(Q,r,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:N},t(it,[2,69]),t(it,[2,70]),t(it,[2,71]),t(it,[2,72]),t(it,[2,73]),t(it,[2,74]),t(it,[2,75]),t(it,[2,76]),t(it,[2,77]),t(it,[2,78]),{22:118,70:N},{22:120,58:119,70:N},{70:[2,63]},{70:[2,64]},{56:121,81:ct},{56:123,81:ct},{56:124,81:ct},{56:125,81:ct},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:z,52:H,53:W},{5:[1,131]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[1,132],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[1,133],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[1,134],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{16:[1,135]},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[2,46],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,49:[1,136],50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{16:[1,137]},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[2,44],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,48:[1,138],50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{16:[1,139]},{16:[1,140]},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[2,42],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,47:[1,141],50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{4:i,5:o,8:8,9:10,12:12,13:h,14:d,16:[1,142],17:15,18:a,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:I,35:A,36:O,37:S,38:B,39:D,41:F,43:q,44:X,46:tt,50:z,52:H,53:W,54:M,59:J,60:K,61:Z,62:et,70:N},{15:[1,143]},t(y,[2,49]),{15:[1,144]},t(y,[2,51]),t(y,[2,52]),{22:145,70:N},{22:146,70:N},{56:147,81:ct},{56:148,81:ct},{56:149,81:ct},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(_,[2,10]),{12:151,50:z,52:H,53:W},t(_,[2,12]),t(_,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,152]},t(y,[2,38]),{15:[1,153]},t(y,[2,39]),t(y,[2,40]),{15:[1,154]},t(y,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:ct},{56:158,81:ct},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:N},t(_,[2,11]),t(at,r,{7:103,40:160}),t(k,r,{7:105,42:161}),t(Ft,r,{7:108,45:162}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:u(function(w,L){if(L.recoverable)this.trace(w);else{var P=new Error(w);throw P.hash=L,P}},"parseError"),parse:u(function(w){var L=this,P=[0],b=[],R=[null],l=[],yt=this.table,p="",mt=0,qt=0,de=2,zt=1,pe=l.slice.call(arguments,1),V=Object.create(this.lexer),dt={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(dt.yy[Nt]=this.yy[Nt]);V.setInput(w,dt.yy),dt.yy.lexer=V,dt.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var St=V.yylloc;l.push(St);var ue=V.options&&V.options.ranges;typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ge(j){P.length=P.length-2*j,R.length=R.length-j,l.length=l.length-j}u(ge,"popStack");function Ht(){var j;return j=b.pop()||V.lex()||zt,typeof j!="number"&&(j instanceof Array&&(b=j,j=b.pop()),j=L.symbols_[j]||j),j}u(Ht,"lex");for(var U,pt,st,Mt,ft={},wt,lt,Kt,vt;;){if(pt=P[P.length-1],this.defaultActions[pt]?st=this.defaultActions[pt]:((U===null||typeof U>"u")&&(U=Ht()),st=yt[pt]&&yt[pt][U]),typeof st>"u"||!st.length||!st[0]){var Rt="";vt=[];for(wt in yt[pt])this.terminals_[wt]&&wt>de&&vt.push("'"+this.terminals_[wt]+"'");V.showPosition?Rt="Parse error on line "+(mt+1)+`:
2
2
  `+V.showPosition()+`
3
3
  Expecting `+vt.join(", ")+", got '"+(this.terminals_[U]||U)+"'":Rt="Parse error on line "+(mt+1)+": Unexpected "+(U==zt?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(Rt,{text:V.match,token:this.terminals_[U]||U,line:V.yylineno,loc:St,expected:vt})}if(st[0]instanceof Array&&st.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+U);switch(st[0]){case 1:P.push(U),R.push(V.yytext),l.push(V.yylloc),P.push(st[1]),U=null,qt=V.yyleng,p=V.yytext,mt=V.yylineno,St=V.yylloc;break;case 2:if(lt=this.productions_[st[1]][1],ft.$=R[R.length-lt],ft._$={first_line:l[l.length-(lt||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(lt||1)].first_column,last_column:l[l.length-1].last_column},ue&&(ft._$.range=[l[l.length-(lt||1)].range[0],l[l.length-1].range[1]]),Mt=this.performAction.apply(ft,[p,qt,mt,dt.yy,st[1],R,l].concat(pe)),typeof Mt<"u")return Mt;lt&&(P=P.slice(0,-1*lt*2),R=R.slice(0,-1*lt),l=l.slice(0,-1*lt)),P.push(this.productions_[st[1]][0]),R.push(ft.$),l.push(ft._$),Kt=yt[P[P.length-2]][P[P.length-1]],P.push(Kt);break;case 3:return!0}}return!0},"parse")},he=function(){var ht={EOF:1,parseError:u(function(L,P){if(this.yy.parser)this.yy.parser.parseError(L,P);else throw new Error(L)},"parseError"),setInput:u(function(w,L){return this.yy=L||this.yy||{},this._input=w,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:u(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var L=w.match(/(?:\r\n?|\n).*/g);return L?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},"input"),unput:u(function(w){var L=w.length,P=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var b=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),P.length-1&&(this.yylineno-=P.length-1);var R=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:P?(P.length===b.length?this.yylloc.first_column:0)+b[b.length-P.length].length-P[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(w){this.unput(this.match.slice(w))},"less"),pastInput:u(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var w=this.pastInput(),L=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{r as o,j as t,c as fe,t as Ra}from"./index-CYyP7MM9.js";import{o as Ta}from"./console-mirror-DzqQp-In.js";import{eC as ln,eD as La,eE as Bn,eF as $e,cz as Oa,b6 as As,b7 as kn,aH as Is,bu as Fa,aA as Da,eG as za,eH as $a,eI as Pa,eJ as Ua,eK as Rs,eL as jn,b4 as Ts,eM as Ka,eN as Ba,eO as At,eP as Ls,eQ as qa,bw as cn,eR as qn,eS as Va,eT as He,eU as zt,c1 as wn,eV as Nn,cO as It,cf as Ha,eW as Os,eX as Ga,eY as Wa,aW as Fs,by as dn,bz as un,a2 as Qa,aB as gn,eZ as Ya,e_ as Za,e$ as mn,f0 as Ja,f1 as Xa,f2 as ei,f3 as Ds,f4 as ti,f5 as ni,f6 as si,dm as Ge,e8 as ai,dj as zs,dn as ii,b as Vn,f7 as ri,f8 as Sn,a1 as $s,bt as oi,f9 as Ps,bx as Us,fa as Ks,fb as li,fc as ci,fd as di,fe as ui,ff as gi,b3 as mi,fg as pi,fh as fi,c6 as Bs,cb as _i,fi as tt,fj as Hn,fk as hi,fl as xi,fm as yi,cw as vi,fn as bi,fo as ki,cB as ji,fp as wi,fq as Ni,fr as Si,fs as Mi,ec as Ht,ft as Ci,fu as Ei}from"./conversation-input-sync-D71p4Rag.js";import{h as Ee,u as ut,ap as Ai,al as Ii,aq as Ri,ar as Ue,a as gt,c as Qe,as as Ti,a3 as Li,at as Oi,au as Fi,av as Di,aw as zi,d as xe,G as Mn,ax as $i,w as it,ay as Pi,o as qs,ac as Ui,am as we,r as Ki,q as Bi,az as pn,B as at,aA as qi,aB as Vs,$ as Vi,a0 as Hi}from"./path-utils-B5eFmEYJ.js";import{cT as Hs,cU as Gi,cV as Wi,cW as Gs,cX as Qi,bZ as Yi,cY as Oe,N as Zi,S as Ws,bt as mt,bu as he,cZ as lt,c_ as _e,c$ as Gt,d0 as Ji,R as Xi,a as Gn,d1 as er,d2 as tr,d3 as nr,d4 as sr,d5 as bt,d6 as kt,bs as ar,bD as ir,d7 as rr,d8 as or,d9 as lr,da as cr,bi as Wn,db as dr,aV as ur,bp as Qn,bN as gr,bq as mr,br as pr,dc as fr,dd as _r,bh as hr,de as xr}from"./index--aQo4p3V.js";import{P as yr}from"./page-header-QjjmHoZF.js";import{c as P,u as ie,B as F,S as Me,_ as Qs,w as Ye,N as $t,O as Pt,P as Ve,A as le,q as Ut,x as Re,f as Se,R as Cn,U as En,V as An,W as In,Y as We,L as Te,K as Le,a6 as Kt,$ as Ys,i as ct,h as fn,af as vr,a as Zs,at as Yn,T as Rn,D as br,b as kr,d as jr,I as wr,e as Zn,G as Nr,E as Sr,al as Mr,aa as Cr}from"./error-boundary-B2yiQ5Df.js";import{t as n,L as Wt}from"./messages-I_auk7nN.js";import{u as Er,a as Ar,D as Ir,b as Rr,d as Tr,S as Lr}from"./team-bridge-scope-preference-CtBsR9zu.js";import{R as Or}from"./radient-auth-buttons-B0WZfkAm.js";import{u as Fr,A as Dr,d as zr}from"./avatar-cropper-BbkOWX0O.js";import{N as $r}from"./notebook-pen-BQAHf3CK.js";import{B as Pr}from"./book-open-B-1p1Dmc.js";import{i as Ur,a as Pe,b as Kr,p as Qt,f as Br}from"./parseISO-CxPiCKvF.js";import{t as qr}from"./en-US-CW_dDnkH.js";/**
1
+ import{r as o,j as t,c as fe,t as Ra}from"./index-CW7JpbBx.js";import{o as Ta}from"./console-mirror-1z96hWwG.js";import{eD as ln,eE as La,eF as Bn,eG as $e,cA as Oa,b6 as As,b7 as kn,aH as Is,bu as Fa,aA as Da,eH as za,eI as $a,eJ as Pa,eK as Ua,eL as Rs,eM as jn,b4 as Ts,eN as Ka,eO as Ba,eP as At,eQ as Ls,eR as qa,bw as cn,eS as qn,eT as Va,eU as He,eV as zt,c2 as wn,eW as Nn,cP as It,cg as Ha,eX as Os,eY as Ga,eZ as Wa,aW as Fs,by as dn,bz as un,a2 as Qa,aB as gn,e_ as Ya,e$ as Za,f0 as mn,f1 as Ja,f2 as Xa,f3 as ei,f4 as Ds,f5 as ti,f6 as ni,f7 as si,dn as Ge,e9 as ai,dk as zs,dp as ii,b as Vn,f8 as ri,f9 as Sn,a1 as $s,bt as oi,fa as Ps,bx as Us,fb as Ks,fc as li,fd as ci,fe as di,ff as ui,fg as gi,b3 as mi,fh as pi,fi,c7 as Bs,cc as _i,fj as tt,fk as Hn,fl as hi,fm as xi,fn as yi,cx as vi,fo as bi,fp as ki,cC as ji,fq as wi,fr as Ni,fs as Si,ft as Mi,ed as Ht,fu as Ci,fv as Ei}from"./conversation-input-sync-CA-NlH9A.js";import{h as Ee,u as ut,ap as Ai,al as Ii,aq as Ri,ar as Ue,a as gt,c as Qe,as as Ti,a3 as Li,at as Oi,au as Fi,av as Di,aw as zi,d as xe,G as Mn,ax as $i,w as it,ay as Pi,o as qs,ac as Ui,am as we,r as Ki,q as Bi,az as pn,B as at,aA as qi,aB as Vs,$ as Vi,a0 as Hi}from"./path-utils-D8EGhun0.js";import{d2 as Hs,d3 as Gi,d4 as Wi,d5 as Gs,d6 as Qi,c8 as Yi,d7 as Oe,N as Zi,S as Ws,bE as mt,bF as he,d8 as lt,d9 as _e,da as Gt,db as Ji,R as Xi,a as Gn,dc as er,dd as tr,de as nr,df as sr,dg as bt,dh as kt,bD as ar,bO as ir,di as rr,dj as or,dk as lr,dl as cr,bt as Wn,dm as dr,b4 as ur,bA as Qn,bY as gr,bB as mr,bC as pr,dn as fr,dp as _r,bs as hr,dq as xr}from"./index-ClKLYxFA.js";import{P as yr}from"./page-header-C_NLT5l1.js";import{c as P,u as ie,B as F,S as Me,_ as Qs,w as Ye,N as $t,O as Pt,P as Ve,A as le,q as Ut,x as Re,f as Se,R as Cn,U as En,V as An,W as In,Y as We,L as Te,K as Le,a6 as Kt,$ as Ys,i as ct,h as fn,af as vr,a as Zs,at as Yn,T as Rn,D as br,b as kr,d as jr,I as wr,e as Zn,G as Nr,E as Sr,al as Mr,aa as Cr}from"./error-boundary-OwA_uKkY.js";import{t as n,L as Wt}from"./messages-DjcNNMrL.js";import{u as Er,a as Ar,D as Ir,b as Rr,d as Tr,S as Lr}from"./team-bridge-scope-preference-D3OA1yyw.js";import{R as Or}from"./radient-auth-buttons-89F5YrRW.js";import{u as Fr,A as Dr,d as zr}from"./avatar-cropper-BV9pfbSJ.js";import{N as $r}from"./notebook-pen-CvsQ4S5s.js";import{B as Pr}from"./book-open-4khD6B-v.js";import{i as Ur,a as Pe,b as Kr,p as Qt,f as Br}from"./parseISO-CxPiCKvF.js";import{t as qr}from"./en-US-CW_dDnkH.js";/**
2
2
  * @license lucide-react v0.507.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{g as Y,a as E,b as F}from"./library-page--plMWde0.js";import"./index-CYyP7MM9.js";import"./messages-I_auk7nN.js";import"./console-mirror-DzqQp-In.js";import"./path-utils-B5eFmEYJ.js";import"./page-header-QjjmHoZF.js";import"./conversation-input-sync-D71p4Rag.js";import"./error-boundary-B2yiQ5Df.js";import"./index--aQo4p3V.js";import"./heart-Cw1S0yFJ.js";import"./hash-B9KVihB1.js";import"./use-session-snapshot-iw7nmRrx.js";const B=["#4472C4","#ED7D31","#A9D18E","#FF0000","#FFC000","#5B9BD5","#70AD47","#C00000","#7030A0","#00B0F0"];function W(n,t){const c=`accent${n%6+1}`;return t[c]?"#"+t[c]:B[n%B.length]}function j(n,t=.45){const c=parseInt(n.slice(1,3),16),s=parseInt(n.slice(3,5),16),a=parseInt(n.slice(5,7),16),p=Math.round(c+(255-c)*t),M=Math.round(s+(255-s)*t),o=Math.round(a+(255-a)*t);return`rgb(${p},${M},${o})`}function G(n){const t=[];for(const c of E(n,"t")){const s=c.textContent.trim();s&&t.push(s)}return t.join(" ")}function V(n){if(!n)return[];const t=Y(n,"ptLst");if(!t)return[];const c=[];for(const s of E(t,"pt")){const a=F(s,"type","node");if(a==="parTrans"||a==="sibTrans")continue;const p=G(s);(p||a==="node")&&c.push({id:F(s,"modelId",""),type:a,text:p})}return c.filter(s=>s.text)}function z(n){if(!n)return"list";const t=Y(n,"layoutDef")||n,s=(F(t,"uniqueId","")||F(t,"defStyle","")||"").toLowerCase();return s.includes("chevron")||s.includes("arrowprocess")||s.includes("process")?"process":s.includes("cycle")||s.includes("continuouscycle")?"cycle":s.includes("hierarchy")||s.includes("orgchart")||s.includes("org")?"hierarchy":s.includes("radial")||s.includes("diverging")?"radial":s.includes("pyramid")||s.includes("invertedpyramid")?"pyramid":s.includes("funnel")?"funnel":s.includes("venn")?"venn":s.includes("matrix")?"matrix":s.includes("list")||s.includes("bullet")?"list":s.includes("relationship")||s.includes("balance")?"relationship":"list"}function $(n,t,c,s,a,p,M,o="#fff",f="center"){if(!t)return;n.save(),n.fillStyle=o,n.textAlign=f,n.textBaseline="middle";const l=t.split(" "),g=M*1.3;let h=[],r="";for(const u of l){const y=r?r+" "+u:u;n.measureText(y).width>a-4&&r?(h.push(r),r=u):r=y}r&&h.push(r);const i=Math.max(1,Math.floor(p/g));h.length>i&&(h=h.slice(0,i));const e=s-(h.length-1)*g/2;for(let u=0;u<h.length;u++)n.fillText(h[u],c,e+u*g);n.restore()}function I(n,t,c,s=14){const a=Math.floor(t/(s*.55)),p=n.split(" "),M=Math.ceil(p.join(" ").length/Math.max(a,1)),o=c/(M*1.4);return Math.max(8,Math.min(s,o))}function L(n,t,c,s,a,p,M,o){n.save(),n.beginPath(),p=Math.min(p,s/2,a/2),n.moveTo(t+p,c),n.arcTo(t+s,c,t+s,c+a,p),n.arcTo(t+s,c+a,t,c+a,p),n.arcTo(t,c+a,t,c,p),n.arcTo(t,c,t+s,c,p),n.closePath(),M&&(n.fillStyle=M,n.fill()),n.restore()}function X(n,t,c,s,a,p,M=1.5){const o=Math.atan2(a-c,s-t),f=8;n.save(),n.strokeStyle=p,n.fillStyle=p,n.lineWidth=M,n.beginPath(),n.moveTo(t,c),n.lineTo(s,a),n.stroke(),n.beginPath(),n.moveTo(s,a),n.lineTo(s-f*Math.cos(o-.4),a-f*Math.sin(o-.4)),n.lineTo(s-f*Math.cos(o+.4),a-f*Math.sin(o+.4)),n.closePath(),n.fill(),n.restore()}function J(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=a/f,g=Math.min(l*.08,10*o),h=Math.min(l*.12,18*o),r=l-h-g,i=p*.7,e=s+(p-i)/2;for(let u=0;u<f;u++){const y=W(u,M),d=c+l*u+g/2,b=u===f-1;n.save(),n.beginPath();const P=d+r+(b?0:h);n.moveTo(d,e),n.lineTo(d+r,e),b||n.lineTo(P,e+i/2),n.lineTo(d+r,e+i),n.lineTo(d,e+i),u>0&&n.lineTo(d+h,e+i/2),n.closePath(),n.fillStyle=y,n.fill(),n.restore();const m=I(t[u].text,r-h,i)*o;n.font=`${m}px sans-serif`;const T=d+(r+(u>0?h:0))/2;$(n,t[u].text,T,e+i/2,r,i,m)}}function K(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=c+a/2,g=s+p/2,h=Math.min(a,p)*.33,r=Math.min(h*.32,40*o);n.save(),n.strokeStyle="#ccc",n.lineWidth=2*o,n.setLineDash([4*o,4*o]),n.beginPath(),n.arc(l,g,h,0,Math.PI*2),n.stroke(),n.setLineDash([]),n.restore();for(let i=0;i<f;i++){const e=i/f*Math.PI*2-Math.PI/2,u=l+h*Math.cos(e),y=g+h*Math.sin(e),d=W(i,M);if(n.save(),n.beginPath(),n.arc(u,y,r,0,Math.PI*2),n.fillStyle=d,n.fill(),n.restore(),f>1){const P=(i+1)/f*Math.PI*2-Math.PI/2,m=(e+P)/2,T=l+h*Math.cos(e+.15),v=g+h*Math.sin(e+.15),k=l+h*Math.cos(P-.15),S=g+h*Math.sin(P-.15);n.save(),n.strokeStyle=d+"99",n.lineWidth=1.5*o,n.beginPath(),n.moveTo(T,v),n.quadraticCurveTo(l+h*1.1*Math.cos(m),g+h*1.1*Math.sin(m),k,S),n.stroke(),n.restore()}const b=I(t[i].text,r*1.7,r*1.2)*o;n.font=`${b}px sans-serif`,$(n,t[i].text,u,y,r*2,r*1.8,b)}}function O(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t[0],l=t.slice(1),g=Math.max(l.length,1),h=p/(l.length>0?2.8:1.2),r=h*.75,i=Math.min(a*.3,160*o),e=r,u=c+(a-i)/2,y=s+(h-e)/2,d=W(0,M);L(n,u,y,i,e,6*o,d);const b=I(f.text,i-10*o,e)*o;if(n.font=`bold ${b}px sans-serif`,$(n,f.text,u+i/2,y+e/2,i-10,e,b),!l.length)return;const P=(a-20*o)/g,m=s+h*1.5,T=y+e,v=m-4*o;n.save(),n.strokeStyle="#999",n.lineWidth=1.5*o,n.beginPath(),n.moveTo(u+i/2,T),n.lineTo(u+i/2,(T+v)/2),n.lineTo(c+10*o,(T+v)/2),n.lineTo(c+a-10*o,(T+v)/2),n.stroke(),n.restore();for(let k=0;k<l.length;k++){const S=c+P*k+8*o,R=m,A=P-16*o,H=r,N=W(k+1,M);n.save(),n.strokeStyle="#999",n.lineWidth=1.5*o,n.beginPath(),n.moveTo(S+A/2,(T+v)/2),n.lineTo(S+A/2,R),n.stroke(),n.restore(),L(n,S,R,A,H,5*o,N);const D=I(l[k].text,A-8*o,H)*o;n.font=`${D}px sans-serif`,$(n,l[k].text,S+A/2,R+H/2,A-8,H,D)}}function Q(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t[0],l=t.slice(1),g=c+a/2,h=s+p/2,r=Math.min(a,p)*.18,i=Math.min(a,p)*.36,e=Math.min(i*.28,38*o),u=l.length||1,y=W(0,M);n.save(),n.beginPath(),n.arc(g,h,r,0,Math.PI*2),n.fillStyle=y,n.fill(),n.restore();const d=I(f.text,r*1.6,r*1.2)*o;n.font=`bold ${d}px sans-serif`,$(n,f.text,g,h,r*2,r*2,d);for(let b=0;b<u;b++){const P=b/u*Math.PI*2-Math.PI/2,m=g+i*Math.cos(P),T=h+i*Math.sin(P),v=W(b+1,M),k=g+r*Math.cos(P),S=h+r*Math.sin(P),R=m-e*Math.cos(P),A=T-e*Math.sin(P);X(n,k,S,R,A,v+"99",1.5*o),n.save(),n.beginPath(),n.arc(m,T,e,0,Math.PI*2),n.fillStyle=v,n.fill(),n.restore();const H=I(l[b].text,e*1.7,e*1.2)*o;n.font=`${H}px sans-serif`,$(n,l[b].text,m,T,e*2,e*1.8,H)}}function U(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=p/f;for(let g=0;g<f;g++){const h=(f-g)/f,r=a*h,i=c+(a-r)/2,e=s+g*l,u=W(g,M);n.save(),n.beginPath(),n.moveTo(i,e+l),n.lineTo(i+r,e+l);const y=a*((f-g-1)/f);n.lineTo(c+(a+y)/2,e),n.lineTo(c+(a-y)/2,e),n.closePath(),n.fillStyle=u,n.strokeStyle="#fff",n.lineWidth=2*o,n.fill(),n.stroke(),n.restore();const d=I(t[g].text,r*.6,l*.7)*o;n.font=`${d}px sans-serif`,$(n,t[g].text,c+a/2,e+l/2,r*.6,l*.7,d)}}function Z(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=p/f;for(let g=0;g<f;g++){const h=1-g/f*.55,r=1-(g+1)/f*.55,i=a*h,e=a*r,u=c+(a-i)/2,y=c+(a-e)/2,d=s+g*l,b=W(g,M);n.save(),n.beginPath(),n.moveTo(u,d),n.lineTo(u+i,d),n.lineTo(y+e,d+l),n.lineTo(y,d+l),n.closePath(),n.fillStyle=b,n.strokeStyle="#fff",n.lineWidth=2*o,n.fill(),n.stroke(),n.restore();const P=(i+e)/2,m=I(t[g].text,P*.8,l*.7)*o;n.font=`${m}px sans-serif`,$(n,t[g].text,c+a/2,d+l/2,P*.8,l*.7,m)}}function _(n,t,c,s,a,p,M,o){if(!t.length)return;const f=Math.min(t.length,4),l=c+a/2,g=s+p/2,h=Math.min(a,p)*(f<=2?.32:.28),r=h*.65,i=[];for(let e=0;e<f;e++)i.push(e/f*Math.PI*2-Math.PI/2);for(let e=0;e<f;e++){const u=f>1?l+r*Math.cos(i[e]):l,y=f>1?g+r*Math.sin(i[e]):g,d=W(e,M);n.save(),n.globalAlpha=.55,n.beginPath(),n.arc(u,y,h,0,Math.PI*2),n.fillStyle=d,n.fill(),n.globalAlpha=1,n.strokeStyle="#fff",n.lineWidth=1.5*o,n.stroke(),n.restore();const b=f>1?l+(r+h*.45)*Math.cos(i[e]):l,P=f>1?g+(r+h*.45)*Math.sin(i[e]):g,m=I(t[e].text,h*1.2,h*.7)*o;n.font=`${m}px sans-serif`,$(n,t[e].text,b,P,h*1.2,h*.7,m,"#333")}}function w(n,t,c,s,a,p,M,o){const f=[t[0]||{text:""},t[1]||{text:""},t[2]||{text:""},t[3]||{text:""}],l=a/2,g=p/2,h=8*o;for(let r=0;r<2;r++)for(let i=0;i<2;i++){const e=r*2+i,u=c+i*l+h,y=s+r*g+h,d=l-h*2,b=g-h*2,P=W(e,M);L(n,u,y,d,b,8*o,P);const m=I(f[e].text,d-10,b)*o;n.font=`${m}px sans-serif`,$(n,f[e].text,u+d/2,y+b/2,d-10,b,m)}}function q(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=p/f,g=Math.min(l*.2,14*o),h=g*3;for(let r=0;r<f;r++){const i=s+r*l,e=i+l/2,u=W(r,M);n.save(),n.beginPath(),n.arc(c+g,e,g,0,Math.PI*2),n.fillStyle=u,n.fill(),n.restore(),L(n,c+h,i+l*.1,a-h-4*o,l*.8,4*o,u+"22");const y=I(t[r].text,a-h-20*o,l*.7)*o;n.font=`${y}px sans-serif`,n.fillStyle="#333",n.textAlign="left",n.textBaseline="middle",n.fillText(t[r].text,c+h+8*o,e)}}function C(n,t,c,s,a,p,M,o){if(t.length<2){q(n,t,c,s,a,p,M,o);return}const f=t[Math.floor(t.length/2)],l=t.slice(0,Math.floor(t.length/2)),g=t.slice(Math.floor(t.length/2)+1),h=c+a/2,r=s+p/2,i=Math.min(a*.14,p*.25),e=W(Math.floor(t.length/2),M);n.save(),n.beginPath(),n.arc(h,r,i,0,Math.PI*2),n.fillStyle=e,n.fill(),n.restore();const u=I(f.text,i*1.6,i*1.2)*o;n.font=`bold ${u}px sans-serif`,$(n,f.text,h,r,i*2,i*1.8,u);const y=p/Math.max(l.length,g.length,1),d=a*.3,b=y*.7,P=(m,T)=>{const v=T==="left"?c:c+a-d,k=T==="left"?h-i:h+i;for(let S=0;S<m.length;S++){const R=s+y*S+(y-b)/2,A=W(S+(T==="right"?l.length+1:0),M);L(n,v,R,d,b,5*o,A);const H=I(m[S].text,d-8,b)*o;n.font=`${H}px sans-serif`,$(n,m[S].text,v+d/2,R+b/2,d-8,b,H);const N=T==="left"?v+d:v;X(n,N,R+b/2,k,r,A+"88",1.5*o)}};P(l,"left"),P(g,"right")}function x(n,t,c,s,a,p,M,o){const f=t.length;if(!f)return;const l=Math.ceil(Math.sqrt(f)),g=Math.ceil(f/l),h=a/l,r=p/g,i=Math.min(h,r)*.1;for(let e=0;e<f;e++){const u=e%l,y=Math.floor(e/l),d=c+u*h+i,b=s+y*r+i,P=h-i*2,m=r-i*2,T=W(e,M);L(n,d,b,P,m,8*o,T),j(T),n.save();const v=n.createLinearGradient(d,b,d,b+m*.5);v.addColorStop(0,"rgba(255,255,255,0.18)"),v.addColorStop(1,"rgba(255,255,255,0)"),n.fillStyle=v,n.beginPath(),n.roundRect?.(d,b,P,m,8*o),n.fill(),n.restore();const k=I(t[e].text,P-12*o,m)*o;n.font=`${k}px sans-serif`,$(n,t[e].text,d+P/2,b+m/2,P-12*o,m,k)}}function gn(n,t,c,s,a,p,M,o,f){const l=V(t),g=z(c),h=16*f;n.save(),n.fillStyle="#f7f9fc",n.strokeStyle="#e0e4ec",n.lineWidth=1,n.beginPath(),n.roundRect?.(s,a,p,M,6*f)||n.rect(s,a,p,M),n.fill(),n.stroke();const r=s+h,i=a+h,e=p-h*2,u=M-h*2;if(!l.length){n.fillStyle="#aaa",n.font=`${12*f}px sans-serif`,n.textAlign="center",n.textBaseline="middle",n.fillText("SmartArt Diagram",s+p/2,a+M/2),n.restore();return}switch(g){case"process":J(n,l,r,i,e,u,o,f);break;case"cycle":K(n,l,r,i,e,u,o,f);break;case"hierarchy":O(n,l,r,i,e,u,o,f);break;case"radial":Q(n,l,r,i,e,u,o,f);break;case"pyramid":U(n,l,r,i,e,u,o,f);break;case"funnel":Z(n,l,r,i,e,u,o,f);break;case"venn":_(n,l,r,i,e,u,o,f);break;case"matrix":w(n,l,r,i,e,u,o,f);break;case"list":q(n,l,r,i,e,u,o,f);break;case"relationship":C(n,l,r,i,e,u,o,f);break;default:x(n,l,r,i,e,u,o,f)}n.restore()}export{gn as renderSmartArt};
1
+ import{g as Y,a as E,b as F}from"./library-page-BWTRx0RD.js";import"./index-CW7JpbBx.js";import"./messages-DjcNNMrL.js";import"./console-mirror-1z96hWwG.js";import"./path-utils-D8EGhun0.js";import"./page-header-C_NLT5l1.js";import"./conversation-input-sync-CA-NlH9A.js";import"./error-boundary-OwA_uKkY.js";import"./index-ClKLYxFA.js";import"./heart-CFgkk4l0.js";import"./hash-eKapyKur.js";import"./use-session-snapshot-ZwSI2jWI.js";const B=["#4472C4","#ED7D31","#A9D18E","#FF0000","#FFC000","#5B9BD5","#70AD47","#C00000","#7030A0","#00B0F0"];function W(n,t){const c=`accent${n%6+1}`;return t[c]?"#"+t[c]:B[n%B.length]}function j(n,t=.45){const c=parseInt(n.slice(1,3),16),s=parseInt(n.slice(3,5),16),a=parseInt(n.slice(5,7),16),p=Math.round(c+(255-c)*t),M=Math.round(s+(255-s)*t),o=Math.round(a+(255-a)*t);return`rgb(${p},${M},${o})`}function G(n){const t=[];for(const c of E(n,"t")){const s=c.textContent.trim();s&&t.push(s)}return t.join(" ")}function V(n){if(!n)return[];const t=Y(n,"ptLst");if(!t)return[];const c=[];for(const s of E(t,"pt")){const a=F(s,"type","node");if(a==="parTrans"||a==="sibTrans")continue;const p=G(s);(p||a==="node")&&c.push({id:F(s,"modelId",""),type:a,text:p})}return c.filter(s=>s.text)}function z(n){if(!n)return"list";const t=Y(n,"layoutDef")||n,s=(F(t,"uniqueId","")||F(t,"defStyle","")||"").toLowerCase();return s.includes("chevron")||s.includes("arrowprocess")||s.includes("process")?"process":s.includes("cycle")||s.includes("continuouscycle")?"cycle":s.includes("hierarchy")||s.includes("orgchart")||s.includes("org")?"hierarchy":s.includes("radial")||s.includes("diverging")?"radial":s.includes("pyramid")||s.includes("invertedpyramid")?"pyramid":s.includes("funnel")?"funnel":s.includes("venn")?"venn":s.includes("matrix")?"matrix":s.includes("list")||s.includes("bullet")?"list":s.includes("relationship")||s.includes("balance")?"relationship":"list"}function $(n,t,c,s,a,p,M,o="#fff",f="center"){if(!t)return;n.save(),n.fillStyle=o,n.textAlign=f,n.textBaseline="middle";const l=t.split(" "),g=M*1.3;let h=[],r="";for(const u of l){const y=r?r+" "+u:u;n.measureText(y).width>a-4&&r?(h.push(r),r=u):r=y}r&&h.push(r);const i=Math.max(1,Math.floor(p/g));h.length>i&&(h=h.slice(0,i));const e=s-(h.length-1)*g/2;for(let u=0;u<h.length;u++)n.fillText(h[u],c,e+u*g);n.restore()}function I(n,t,c,s=14){const a=Math.floor(t/(s*.55)),p=n.split(" "),M=Math.ceil(p.join(" ").length/Math.max(a,1)),o=c/(M*1.4);return Math.max(8,Math.min(s,o))}function L(n,t,c,s,a,p,M,o){n.save(),n.beginPath(),p=Math.min(p,s/2,a/2),n.moveTo(t+p,c),n.arcTo(t+s,c,t+s,c+a,p),n.arcTo(t+s,c+a,t,c+a,p),n.arcTo(t,c+a,t,c,p),n.arcTo(t,c,t+s,c,p),n.closePath(),M&&(n.fillStyle=M,n.fill()),n.restore()}function X(n,t,c,s,a,p,M=1.5){const o=Math.atan2(a-c,s-t),f=8;n.save(),n.strokeStyle=p,n.fillStyle=p,n.lineWidth=M,n.beginPath(),n.moveTo(t,c),n.lineTo(s,a),n.stroke(),n.beginPath(),n.moveTo(s,a),n.lineTo(s-f*Math.cos(o-.4),a-f*Math.sin(o-.4)),n.lineTo(s-f*Math.cos(o+.4),a-f*Math.sin(o+.4)),n.closePath(),n.fill(),n.restore()}function J(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=a/f,g=Math.min(l*.08,10*o),h=Math.min(l*.12,18*o),r=l-h-g,i=p*.7,e=s+(p-i)/2;for(let u=0;u<f;u++){const y=W(u,M),d=c+l*u+g/2,b=u===f-1;n.save(),n.beginPath();const P=d+r+(b?0:h);n.moveTo(d,e),n.lineTo(d+r,e),b||n.lineTo(P,e+i/2),n.lineTo(d+r,e+i),n.lineTo(d,e+i),u>0&&n.lineTo(d+h,e+i/2),n.closePath(),n.fillStyle=y,n.fill(),n.restore();const m=I(t[u].text,r-h,i)*o;n.font=`${m}px sans-serif`;const T=d+(r+(u>0?h:0))/2;$(n,t[u].text,T,e+i/2,r,i,m)}}function K(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=c+a/2,g=s+p/2,h=Math.min(a,p)*.33,r=Math.min(h*.32,40*o);n.save(),n.strokeStyle="#ccc",n.lineWidth=2*o,n.setLineDash([4*o,4*o]),n.beginPath(),n.arc(l,g,h,0,Math.PI*2),n.stroke(),n.setLineDash([]),n.restore();for(let i=0;i<f;i++){const e=i/f*Math.PI*2-Math.PI/2,u=l+h*Math.cos(e),y=g+h*Math.sin(e),d=W(i,M);if(n.save(),n.beginPath(),n.arc(u,y,r,0,Math.PI*2),n.fillStyle=d,n.fill(),n.restore(),f>1){const P=(i+1)/f*Math.PI*2-Math.PI/2,m=(e+P)/2,T=l+h*Math.cos(e+.15),v=g+h*Math.sin(e+.15),k=l+h*Math.cos(P-.15),S=g+h*Math.sin(P-.15);n.save(),n.strokeStyle=d+"99",n.lineWidth=1.5*o,n.beginPath(),n.moveTo(T,v),n.quadraticCurveTo(l+h*1.1*Math.cos(m),g+h*1.1*Math.sin(m),k,S),n.stroke(),n.restore()}const b=I(t[i].text,r*1.7,r*1.2)*o;n.font=`${b}px sans-serif`,$(n,t[i].text,u,y,r*2,r*1.8,b)}}function O(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t[0],l=t.slice(1),g=Math.max(l.length,1),h=p/(l.length>0?2.8:1.2),r=h*.75,i=Math.min(a*.3,160*o),e=r,u=c+(a-i)/2,y=s+(h-e)/2,d=W(0,M);L(n,u,y,i,e,6*o,d);const b=I(f.text,i-10*o,e)*o;if(n.font=`bold ${b}px sans-serif`,$(n,f.text,u+i/2,y+e/2,i-10,e,b),!l.length)return;const P=(a-20*o)/g,m=s+h*1.5,T=y+e,v=m-4*o;n.save(),n.strokeStyle="#999",n.lineWidth=1.5*o,n.beginPath(),n.moveTo(u+i/2,T),n.lineTo(u+i/2,(T+v)/2),n.lineTo(c+10*o,(T+v)/2),n.lineTo(c+a-10*o,(T+v)/2),n.stroke(),n.restore();for(let k=0;k<l.length;k++){const S=c+P*k+8*o,R=m,A=P-16*o,H=r,N=W(k+1,M);n.save(),n.strokeStyle="#999",n.lineWidth=1.5*o,n.beginPath(),n.moveTo(S+A/2,(T+v)/2),n.lineTo(S+A/2,R),n.stroke(),n.restore(),L(n,S,R,A,H,5*o,N);const D=I(l[k].text,A-8*o,H)*o;n.font=`${D}px sans-serif`,$(n,l[k].text,S+A/2,R+H/2,A-8,H,D)}}function Q(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t[0],l=t.slice(1),g=c+a/2,h=s+p/2,r=Math.min(a,p)*.18,i=Math.min(a,p)*.36,e=Math.min(i*.28,38*o),u=l.length||1,y=W(0,M);n.save(),n.beginPath(),n.arc(g,h,r,0,Math.PI*2),n.fillStyle=y,n.fill(),n.restore();const d=I(f.text,r*1.6,r*1.2)*o;n.font=`bold ${d}px sans-serif`,$(n,f.text,g,h,r*2,r*2,d);for(let b=0;b<u;b++){const P=b/u*Math.PI*2-Math.PI/2,m=g+i*Math.cos(P),T=h+i*Math.sin(P),v=W(b+1,M),k=g+r*Math.cos(P),S=h+r*Math.sin(P),R=m-e*Math.cos(P),A=T-e*Math.sin(P);X(n,k,S,R,A,v+"99",1.5*o),n.save(),n.beginPath(),n.arc(m,T,e,0,Math.PI*2),n.fillStyle=v,n.fill(),n.restore();const H=I(l[b].text,e*1.7,e*1.2)*o;n.font=`${H}px sans-serif`,$(n,l[b].text,m,T,e*2,e*1.8,H)}}function U(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=p/f;for(let g=0;g<f;g++){const h=(f-g)/f,r=a*h,i=c+(a-r)/2,e=s+g*l,u=W(g,M);n.save(),n.beginPath(),n.moveTo(i,e+l),n.lineTo(i+r,e+l);const y=a*((f-g-1)/f);n.lineTo(c+(a+y)/2,e),n.lineTo(c+(a-y)/2,e),n.closePath(),n.fillStyle=u,n.strokeStyle="#fff",n.lineWidth=2*o,n.fill(),n.stroke(),n.restore();const d=I(t[g].text,r*.6,l*.7)*o;n.font=`${d}px sans-serif`,$(n,t[g].text,c+a/2,e+l/2,r*.6,l*.7,d)}}function Z(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=p/f;for(let g=0;g<f;g++){const h=1-g/f*.55,r=1-(g+1)/f*.55,i=a*h,e=a*r,u=c+(a-i)/2,y=c+(a-e)/2,d=s+g*l,b=W(g,M);n.save(),n.beginPath(),n.moveTo(u,d),n.lineTo(u+i,d),n.lineTo(y+e,d+l),n.lineTo(y,d+l),n.closePath(),n.fillStyle=b,n.strokeStyle="#fff",n.lineWidth=2*o,n.fill(),n.stroke(),n.restore();const P=(i+e)/2,m=I(t[g].text,P*.8,l*.7)*o;n.font=`${m}px sans-serif`,$(n,t[g].text,c+a/2,d+l/2,P*.8,l*.7,m)}}function _(n,t,c,s,a,p,M,o){if(!t.length)return;const f=Math.min(t.length,4),l=c+a/2,g=s+p/2,h=Math.min(a,p)*(f<=2?.32:.28),r=h*.65,i=[];for(let e=0;e<f;e++)i.push(e/f*Math.PI*2-Math.PI/2);for(let e=0;e<f;e++){const u=f>1?l+r*Math.cos(i[e]):l,y=f>1?g+r*Math.sin(i[e]):g,d=W(e,M);n.save(),n.globalAlpha=.55,n.beginPath(),n.arc(u,y,h,0,Math.PI*2),n.fillStyle=d,n.fill(),n.globalAlpha=1,n.strokeStyle="#fff",n.lineWidth=1.5*o,n.stroke(),n.restore();const b=f>1?l+(r+h*.45)*Math.cos(i[e]):l,P=f>1?g+(r+h*.45)*Math.sin(i[e]):g,m=I(t[e].text,h*1.2,h*.7)*o;n.font=`${m}px sans-serif`,$(n,t[e].text,b,P,h*1.2,h*.7,m,"#333")}}function w(n,t,c,s,a,p,M,o){const f=[t[0]||{text:""},t[1]||{text:""},t[2]||{text:""},t[3]||{text:""}],l=a/2,g=p/2,h=8*o;for(let r=0;r<2;r++)for(let i=0;i<2;i++){const e=r*2+i,u=c+i*l+h,y=s+r*g+h,d=l-h*2,b=g-h*2,P=W(e,M);L(n,u,y,d,b,8*o,P);const m=I(f[e].text,d-10,b)*o;n.font=`${m}px sans-serif`,$(n,f[e].text,u+d/2,y+b/2,d-10,b,m)}}function q(n,t,c,s,a,p,M,o){if(!t.length)return;const f=t.length,l=p/f,g=Math.min(l*.2,14*o),h=g*3;for(let r=0;r<f;r++){const i=s+r*l,e=i+l/2,u=W(r,M);n.save(),n.beginPath(),n.arc(c+g,e,g,0,Math.PI*2),n.fillStyle=u,n.fill(),n.restore(),L(n,c+h,i+l*.1,a-h-4*o,l*.8,4*o,u+"22");const y=I(t[r].text,a-h-20*o,l*.7)*o;n.font=`${y}px sans-serif`,n.fillStyle="#333",n.textAlign="left",n.textBaseline="middle",n.fillText(t[r].text,c+h+8*o,e)}}function C(n,t,c,s,a,p,M,o){if(t.length<2){q(n,t,c,s,a,p,M,o);return}const f=t[Math.floor(t.length/2)],l=t.slice(0,Math.floor(t.length/2)),g=t.slice(Math.floor(t.length/2)+1),h=c+a/2,r=s+p/2,i=Math.min(a*.14,p*.25),e=W(Math.floor(t.length/2),M);n.save(),n.beginPath(),n.arc(h,r,i,0,Math.PI*2),n.fillStyle=e,n.fill(),n.restore();const u=I(f.text,i*1.6,i*1.2)*o;n.font=`bold ${u}px sans-serif`,$(n,f.text,h,r,i*2,i*1.8,u);const y=p/Math.max(l.length,g.length,1),d=a*.3,b=y*.7,P=(m,T)=>{const v=T==="left"?c:c+a-d,k=T==="left"?h-i:h+i;for(let S=0;S<m.length;S++){const R=s+y*S+(y-b)/2,A=W(S+(T==="right"?l.length+1:0),M);L(n,v,R,d,b,5*o,A);const H=I(m[S].text,d-8,b)*o;n.font=`${H}px sans-serif`,$(n,m[S].text,v+d/2,R+b/2,d-8,b,H);const N=T==="left"?v+d:v;X(n,N,R+b/2,k,r,A+"88",1.5*o)}};P(l,"left"),P(g,"right")}function x(n,t,c,s,a,p,M,o){const f=t.length;if(!f)return;const l=Math.ceil(Math.sqrt(f)),g=Math.ceil(f/l),h=a/l,r=p/g,i=Math.min(h,r)*.1;for(let e=0;e<f;e++){const u=e%l,y=Math.floor(e/l),d=c+u*h+i,b=s+y*r+i,P=h-i*2,m=r-i*2,T=W(e,M);L(n,d,b,P,m,8*o,T),j(T),n.save();const v=n.createLinearGradient(d,b,d,b+m*.5);v.addColorStop(0,"rgba(255,255,255,0.18)"),v.addColorStop(1,"rgba(255,255,255,0)"),n.fillStyle=v,n.beginPath(),n.roundRect?.(d,b,P,m,8*o),n.fill(),n.restore();const k=I(t[e].text,P-12*o,m)*o;n.font=`${k}px sans-serif`,$(n,t[e].text,d+P/2,b+m/2,P-12*o,m,k)}}function gn(n,t,c,s,a,p,M,o,f){const l=V(t),g=z(c),h=16*f;n.save(),n.fillStyle="#f7f9fc",n.strokeStyle="#e0e4ec",n.lineWidth=1,n.beginPath(),n.roundRect?.(s,a,p,M,6*f)||n.rect(s,a,p,M),n.fill(),n.stroke();const r=s+h,i=a+h,e=p-h*2,u=M-h*2;if(!l.length){n.fillStyle="#aaa",n.font=`${12*f}px sans-serif`,n.textAlign="center",n.textBaseline="middle",n.fillText("SmartArt Diagram",s+p/2,a+M/2),n.restore();return}switch(g){case"process":J(n,l,r,i,e,u,o,f);break;case"cycle":K(n,l,r,i,e,u,o,f);break;case"hierarchy":O(n,l,r,i,e,u,o,f);break;case"radial":Q(n,l,r,i,e,u,o,f);break;case"pyramid":U(n,l,r,i,e,u,o,f);break;case"funnel":Z(n,l,r,i,e,u,o,f);break;case"venn":_(n,l,r,i,e,u,o,f);break;case"matrix":w(n,l,r,i,e,u,o,f);break;case"list":q(n,l,r,i,e,u,o,f);break;case"relationship":C(n,l,r,i,e,u,o,f);break;default:x(n,l,r,i,e,u,o,f)}n.restore()}export{gn as renderSmartArt};
@@ -1 +1 @@
1
- import{s as W,a as P,S as N}from"./chunk-AEK57VVT-D7HCifQ1.js";import{_ as u,c as t,d as H,l as S,e as C,k as z,u as U}from"./mermaid.core-BID4UpCq.js";import{G as F}from"./graph-DlJtBdxE.js";import{l as O}from"./layout-yAujwank.js";import{q as J,u as X}from"./conversation-input-sync-D71p4Rag.js";import"./chunk-RZ5BOZE2-D-ZhMLMw.js";import"./index-CYyP7MM9.js";import"./messages-I_auk7nN.js";import"./_baseUniq-DHWv4q1T.js";import"./_basePickBy-M-jvq3Wn.js";import"./path-utils-B5eFmEYJ.js";import"./error-boundary-B2yiQ5Df.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},q=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),j=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Z=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),K=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(x,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),c=Math.max(p.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",p.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Q=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),x=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let c=Math.max(p,x);c===x&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,p>x&&(l=(x-c)/2+o),Math.abs(a-B.x)<o&&p>x&&(l=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),p<=x&&s.attr("x",a+(c-n)/2-p/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const p=y.trim();if(p.length>0){const c=g.append("tspan");if(c.text(p),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&q(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&j(n),i.type==="default"&&i.descriptions.length===0&&Z(n,i),i.type==="default"&&i.descriptions.length>0&&K(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=J().x(function(s){return s.x}).y(function(s){return s.y}).curve(X),x=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),x.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:p}=U.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",p+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,p+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,p)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",p+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",p-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const x=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,x,a,o);const p=b.padding,c=s.node().getBBox(),l=c.width+p*2,B=c.height+p*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,x)=>{const a=new F({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){y=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),c=x.db.getRelations(),l=Object.keys(p);for(const r of l){const f=p[r];d&&(f.parentId=d);let h;if(f.doc){let w=i.append("g").attr("id",f.id).attr("class","stateGroup");h=R(f.doc,w,f.id,!o,n,g,x);{w=Q(w,f,o);let v=w.node().getBBox();h.width=v.width,h.height=v.height+b.padding/2,T[f.id]={y:b.compositTitleSize}}}else h=_(i,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},v=_(i,w,a);f.note.position==="left of"?(a.setNode(h.id+"-note",v),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",v)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;c.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:dt(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),O(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),g.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},bt={parser:P,get db(){return new N(1)},renderer:ot,styles:W,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{bt as diagram};
1
+ import{s as W,a as P,S as N}from"./chunk-AEK57VVT-U4kT85HV.js";import{_ as u,c as t,d as H,l as S,e as C,k as z,u as U}from"./mermaid.core-BFagl5M0.js";import{G as F}from"./graph--_6YRvNt.js";import{l as O}from"./layout-B1sQcfBm.js";import{q as J,u as X}from"./conversation-input-sync-CA-NlH9A.js";import"./chunk-RZ5BOZE2-BysIzka2.js";import"./index-CW7JpbBx.js";import"./messages-DjcNNMrL.js";import"./_baseUniq-Bhe44p7o.js";import"./_basePickBy-TWuKvVpC.js";import"./path-utils-D8EGhun0.js";import"./error-boundary-OwA_uKkY.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},q=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),j=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Z=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),K=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,x=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(x,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),p=x.node().getBBox(),c=Math.max(p.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",p.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Q=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),x=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),p=s.node().getBBox().width+n;let c=Math.max(p,x);c===x&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,p>x&&(l=(x-c)/2+o),Math.abs(a-B.x)<o&&p>x&&(l=a-(p-x)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),p<=x&&s.attr("x",a+(c-n)/2-p/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");const a=x.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const p=y.trim();if(p.length>0){const c=g.append("tspan");if(c.text(p),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&q(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&j(n),i.type==="default"&&i.descriptions.length===0&&Z(n,i),i.type==="default"&&i.descriptions.length>0&&K(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=J().x(function(s){return s.x}).y(function(s){return s.y}).curve(X),x=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),x.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:p}=U.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",p+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,p+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,p)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",p+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",p-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const x=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=x.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,x,a,o);const p=b.padding,c=s.node().getBBox(),l=c.width+p*2,B=c.height+p*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,x)=>{const a=new F({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){y=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:b.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const p=x.db.getStates(),c=x.db.getRelations(),l=Object.keys(p);for(const r of l){const f=p[r];d&&(f.parentId=d);let h;if(f.doc){let w=i.append("g").attr("id",f.id).attr("class","stateGroup");h=R(f.doc,w,f.id,!o,n,g,x);{w=Q(w,f,o);let v=w.node().getBBox();h.width=v.width,h.height=v.height+b.padding/2,T[f.id]={y:b.compositTitleSize}}}else h=_(i,f,a);if(f.note){const w={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},v=_(i,w,a);f.note.position==="left of"?(a.setNode(h.id+"-note",v),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",v)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let B=0;c.forEach(function(r){B++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:dt(r.title),height:b.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+B)}),O(a),S.debug("Graph after layout",a.nodes());const m=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+m.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+m.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),g.querySelectorAll("#"+m.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},bt={parser:P,get db(){return new N(1)},renderer:ot,styles:W,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{bt as diagram};
@@ -0,0 +1 @@
1
+ import{s as r,b as e,a,S as s}from"./chunk-AEK57VVT-U4kT85HV.js";import{_ as i}from"./mermaid.core-BFagl5M0.js";import"./chunk-RZ5BOZE2-BysIzka2.js";import"./conversation-input-sync-CA-NlH9A.js";import"./index-CW7JpbBx.js";import"./messages-DjcNNMrL.js";import"./path-utils-D8EGhun0.js";import"./error-boundary-OwA_uKkY.js";var b={parser:a,get db(){return new s(2)},renderer:e,styles:r,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -1,4 +1,4 @@
1
- import{r as c,j as n,c as Z}from"./index-CYyP7MM9.js";import{bS as ll,bh as Os,bT as dl,bU as cl,v as Bt,bV as ml,bW as ul,bX as Aa,bR as qs,bY as $t,c as hl,bZ as gl,b_ as pl,b$ as Ls,c0 as kl,c1 as fl,c2 as wl,c3 as bl,c4 as en,c5 as yl,c6 as Br,c7 as xl,a as za,c8 as vl,c9 as jl,aN as Di,ca as _l,cb as Bl,cc as Nl,cd as Sl,ce as Fs,R as Cl,N as Il,cf as El,cg as $s,ch as Rl,ci as Tl,cj as Ml,ck as Al,cl as ba,cm as Nr,cn as Sr,co as zl,cp as Dl,cq as Pl,cr as ra,cs as Ol,ct as ql,cu as Ll,cv as Cr,cw as Fl,cx as $l,cy as Kl,t as Ul,cz as Hl,cA as Gl,cB as Wl,cC as Jl,cD as Vl,cE as Ql,cF as Yl,cG as Xl,cH as Zl,cI as ed,cJ as nd,cK as td,cL as id,cM as ad,cN as rd,cO as sd,cP as od,cQ as ld,cR as Ir,cS as Er}from"./index--aQo4p3V.js";import{df as Ye,dg as Da,dh as yt,di as Pa,dj as Ks,a0 as Bi,dk as Ut,dl as Us,dm as Hs,dn as Oa,dp as Ni,dq as Ve,a3 as fi,c1 as dd,dr as cd,ds as Ht,co as md,dt as ud,du as hd,dv as gd,dw as pd,b7 as kd,aB as fd,dx as wd,dy as bd,dz as yd,aH as wi,dA as xd,dB as vd,dC as jd,dD as Rr,dE as _d,dF as Bd,dG as Nd,b3 as Sd,dH as Cd,dI as Id,dJ as Ed,dK as Rd,a2 as Pi,dL as Td,dM as Md,dN as Tr,dO as Ad,dP as zn,c9 as Nt,dQ as zd,dR as Oi,dS as Si,d5 as Gs,cN as Ws,cT as Dd,dT as Js,dU as Pd,dV as Mr,dW as Ar,dX as Od,c4 as qa,dY as qd,dZ as Vs,d_ as La,d$ as Qs,e0 as Ld,aT as Qe,e1 as Fd,e2 as $d,cH as qi,e3 as Li,e4 as Fa,e5 as bi,e6 as $a,e7 as jt,cD as Ka,e8 as Kd,d2 as Ud,e9 as Ys,ea as Xs,bu as Hd,eb as Gd,ec as Wd,ed as Zs,ee as Jd,ef as eo,eg as Ci,eh as sa,ei as no,ej as Vd,ek as Qd,el as zr,em as oa,en as Dr,aU as Mn,eo as Pr,ep as Yd,eq as Xd,er as Zd,es as Or,et as ec,af as nc,bt as tc,cb as ic,eu as ac,ev as rc,ew as sc,ex as oc,ey as lc,ez as dc,eA as la,eB as cc}from"./conversation-input-sync-D71p4Rag.js";import{u as at,o as mc,a4 as Ua,a9 as to,ai as uc,C as on,aj as hc,ak as qr,h as Ha,al as gc,am as O,d as da,an as An,G as fn,ao as Lr,a as pc,q as ui}from"./path-utils-B5eFmEYJ.js";import{c as rt,aj as io,u as me,B as V,X as St,a7 as ao,ai as ro,a8 as kc,a9 as so,ak as fc,i as Gt,n as Jt,o as Vt,y as oo,p as Qt,z as Yt,S as qe,K as Ii,w as Fi,h as wc,F as lo,r as co,a as bc,D as Xt,b as Zt,d as ei,e as et,I as Lt,H as xt,l as ya,m as Ei,al as yc,aa as xc,am as vc,an as jc,a6 as _c,ao as Bc,ap as Nc,k as Sc,aq as Ri,ar as Ga,A as yi,q as Cc,as as xa}from"./error-boundary-B2yiQ5Df.js";import{t as s}from"./messages-I_auk7nN.js";import{r as Ic,u as Ec,a as Rc,D as Tc,b as Mc,c as Fr,s as Ac,w as zc}from"./team-bridge-scope-preference-CtBsR9zu.js";import{H as $i}from"./hash-B9KVihB1.js";import{I as mo}from"./image-plus-KwTVL3Hy.js";import{B as Dc}from"./building-2-BrpfyqYz.js";import"./console-mirror-DzqQp-In.js";/**
1
+ import{r as c,j as n,c as Z}from"./index-CW7JpbBx.js";import{c1 as ll,bs as Os,c2 as dl,c3 as cl,v as Bt,c4 as ml,c5 as ul,c6 as Aa,c0 as qs,c7 as $t,c as hl,c8 as gl,c9 as pl,ca as Ls,cb as kl,cc as fl,cd as wl,ce as bl,cf as en,cg as yl,ch as Br,ci as xl,a as za,cj as vl,ck as jl,aY as Di,cl as _l,cm as Bl,cn as Nl,co as Sl,cp as Fs,R as Cl,N as Il,cq as El,cr as $s,cs as Rl,ct as Tl,cu as Ml,cv as Al,cw as ba,cx as Nr,cy as Sr,cz as zl,cA as Dl,cB as Pl,cC as ra,cD as Ol,cE as ql,cF as Ll,cG as Cr,cH as Fl,cI as $l,cJ as Kl,t as Ul,cK as Hl,cL as Gl,cM as Wl,cN as Jl,cO as Vl,cP as Ql,cQ as Yl,cR as Xl,cS as Zl,cT as ed,cU as nd,cV as td,cW as id,cX as ad,cY as rd,cZ as sd,c_ as od,c$ as ld,d0 as Ir,d1 as Er}from"./index-ClKLYxFA.js";import{dg as Ye,dh as Da,di as yt,dj as Pa,dk as Ks,a0 as Bi,dl as Ut,dm as Us,dn as Hs,dp as Oa,dq as Ni,dr as Ve,a3 as fi,c2 as dd,ds as cd,dt as Ht,cp as md,du as ud,dv as hd,dw as gd,dx as pd,b7 as kd,aB as fd,dy as wd,dz as bd,dA as yd,aH as wi,dB as xd,dC as vd,dD as jd,dE as Rr,dF as _d,dG as Bd,dH as Nd,b3 as Sd,dI as Cd,dJ as Id,dK as Ed,dL as Rd,a2 as Pi,dM as Td,dN as Md,dO as Tr,dP as Ad,dQ as zn,ca as Nt,dR as zd,dS as Oi,dT as Si,d6 as Gs,cO as Ws,cU as Dd,dU as Js,dV as Pd,dW as Mr,dX as Ar,dY as Od,c5 as qa,dZ as qd,d_ as Vs,d$ as La,e0 as Qs,e1 as Ld,aT as Qe,e2 as Fd,e3 as $d,cI as qi,e4 as Li,e5 as Fa,e6 as bi,e7 as $a,e8 as jt,cE as Ka,e9 as Kd,d3 as Ud,ea as Ys,eb as Xs,bu as Hd,ec as Gd,ed as Wd,ee as Zs,ef as Jd,eg as eo,eh as Ci,ei as sa,ej as no,ek as Vd,el as Qd,em as zr,en as oa,eo as Dr,aU as Mn,ep as Pr,eq as Yd,er as Xd,es as Zd,et as Or,eu as ec,af as nc,bt as tc,cc as ic,ev as ac,ew as rc,ex as sc,ey as oc,ez as lc,eA as dc,eB as la,eC as cc}from"./conversation-input-sync-CA-NlH9A.js";import{u as at,o as mc,a4 as Ua,a9 as to,ai as uc,C as on,aj as hc,ak as qr,h as Ha,al as gc,am as O,d as da,an as An,G as fn,ao as Lr,a as pc,q as ui}from"./path-utils-D8EGhun0.js";import{c as rt,aj as io,u as me,B as V,X as St,a7 as ao,ai as ro,a8 as kc,a9 as so,ak as fc,i as Gt,n as Jt,o as Vt,y as oo,p as Qt,z as Yt,S as qe,K as Ii,w as Fi,h as wc,F as lo,r as co,a as bc,D as Xt,b as Zt,d as ei,e as et,I as Lt,H as xt,l as ya,m as Ei,al as yc,aa as xc,am as vc,an as jc,a6 as _c,ao as Bc,ap as Nc,k as Sc,aq as Ri,ar as Ga,A as yi,q as Cc,as as xa}from"./error-boundary-OwA_uKkY.js";import{t as s}from"./messages-DjcNNMrL.js";import{r as Ic,u as Ec,a as Rc,D as Tc,b as Mc,c as Fr,s as Ac,w as zc}from"./team-bridge-scope-preference-D3OA1yyw.js";import{H as $i}from"./hash-eKapyKur.js";import{I as mo}from"./image-plus-C7bQcR76.js";import{B as Dc}from"./building-2-DGlgv_3I.js";import"./console-mirror-1z96hWwG.js";/**
2
2
  * @license lucide-react v0.507.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{r as o,j as t,c as h}from"./index-CYyP7MM9.js";import{N as w,u as N,d as I}from"./index--aQo4p3V.js";import{u as S,A as E,q as A,B as y,X as k}from"./error-boundary-B2yiQ5Df.js";import{t as i}from"./messages-I_auk7nN.js";import{s as B}from"./path-utils-B5eFmEYJ.js";import{aT as m,aU as j,aV as D}from"./conversation-input-sync-D71p4Rag.js";let _;function J(e){_=e}function K(e){const n=_===e;return _=void 0,n}const V=({consentText:e,pending:n,failure:s,onTurnOff:a,onDismiss:r,defaultExpanded:d=!1})=>{S();const[c,b]=o.useState(d),u=o.useId(),g=o.useId(),f=n!==null,l=n==="turn_off";return t.jsx("section",{"data-agent-messages-banner":"default-on","aria-label":i("ui.agentMessages.banner.title"),children:t.jsx(E,{variant:"info",className:h(w,"items-start border-transparent"),children:t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-2",children:[t.jsxs("div",{className:"flex w-full min-w-0 items-start gap-3",children:[t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[t.jsx(A,{children:i("ui.agentMessages.banner.title")}),t.jsx("p",{className:"text-body-sm text-ink-muted",children:i("ui.agentMessages.banner.body")})]}),t.jsx(y,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-ink-muted","aria-label":i("ui.agentMessages.banner.dismiss"),disabled:f,onClick:r,"data-agent-messages-banner-action":"dismiss",children:t.jsx(k,{"aria-hidden":"true"})})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx(y,{variant:"secondary",size:"sm",disabled:f,onClick:a,"aria-describedby":g,"data-agent-messages-banner-action":"turn_off",children:t.jsxs("span",{className:"grid",children:[t.jsx("span",{className:h("col-start-1 row-start-1",l&&"invisible"),"aria-hidden":l,children:i("ui.agentMessages.banner.turn_off")}),t.jsx("span",{className:h("col-start-1 row-start-1",!l&&"invisible"),"aria-hidden":!l,children:i("ui.agentMessages.banner.turning_off")})]})}),t.jsx(y,{variant:"ghost",size:"sm",className:"text-ink","aria-expanded":c,"aria-controls":c?u:void 0,onClick:()=>b(x=>!x),"data-agent-messages-banner-action":"read",children:c?i("ui.agentMessages.banner.hide"):i("ui.agentMessages.banner.read")}),t.jsx("span",{id:g,className:"text-pretty text-meta text-ink-muted",children:i("ui.agentMessages.banner.turn_off_hint")})]}),c&&t.jsx("section",{id:u,className:"rounded-md bg-sunken p-3 @max-[1024px]/bridge:max-h-[35dvh] @max-[1024px]/bridge:overflow-y-auto focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2","aria-label":i("ui.agentMessages.banner.read"),"data-agent-messages-banner-consent":"",children:e?t.jsx("p",{className:"max-w-prose whitespace-pre-wrap text-body-sm text-ink-muted",children:e}):t.jsx("p",{className:"text-body-sm text-ink-muted",children:i("ui.agentMessages.banner.consent_unavailable")})}),s&&t.jsx("p",{role:"alert",className:"text-body-sm text-ink",children:s==="turn_off"?i("ui.agentMessages.banner.turn_off_failed"):i("ui.agentMessages.banner.dismiss_failed")})]})})})};function X(e,n,s){const a=e?.tenant_id??null;return!N(d=>s&&a?d.defaultOnDismissed[I(s,a)]===!0:!1)&&B(e,n)}function q(e){const{api:n,accountId:s,tenantId:a,markerTenantId:r,onSettings:d,onChanged:c}=e,[b,u]=o.useState(null),[g,f]=o.useState(null),l=o.useRef(!1);async function x(p,O){if(!(l.current||!s)){l.current=!0,u(p),f(null);try{await O()}catch{f(p);return}finally{l.current=!1,u(null)}try{await c?.()}catch{}}}return{pending:b,failure:g,turnOff:()=>x("turn_off",async()=>{const p=await n.updateSettings({expected_account_id:s,...a?{tenant_id:a}:{},state:"disabled"});d?.(p)}),dismiss:()=>x("dismiss",async()=>{await n.dismissOnboarding(),s&&r&&N.getState().markDefaultOnDismissed(s,r)})}}const v="lo.teamBridge.scope.v1",P=128;function C(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function M(e){try{const n=JSON.parse(e.getItem(v)??"{}");return C(n)?n:{}}catch{return{}}}function U(e,n){const s=M(e)[n];if(typeof s!="string")return;if(s===m)return m;const a=s.trim();if(!(!a||a.length>P))return j(a)}function Y(e,n,s){try{const a=M(e);e.setItem(v,JSON.stringify({...a,[n]:s}))}catch{}}function Q(e,n){return n===m?[...e]:e.filter(s=>s.tenant_id===n)}function W({organizations:e,stored:n,requestedTenant:s,chosen:a,current:r,snapshotRows:d}){return s?j(s):a?r:e.length===1?e[0].tenantId:n!==void 0&&(n===m||e.some(c=>c.tenantId===n))?n:e.length>1?m:D(e,r,a,d)}export{V as D,v as S,q as a,U as b,W as c,K as d,J as r,Q as s,X as u,Y as w};
1
+ import{r as o,j as t,c as h}from"./index-CW7JpbBx.js";import{N as w,u as N,d as I}from"./index-ClKLYxFA.js";import{u as S,A as E,q as A,B as y,X as k}from"./error-boundary-OwA_uKkY.js";import{t as i}from"./messages-DjcNNMrL.js";import{s as B}from"./path-utils-D8EGhun0.js";import{aT as m,aU as j,aV as D}from"./conversation-input-sync-CA-NlH9A.js";let _;function J(e){_=e}function K(e){const n=_===e;return _=void 0,n}const V=({consentText:e,pending:n,failure:s,onTurnOff:a,onDismiss:r,defaultExpanded:d=!1})=>{S();const[c,b]=o.useState(d),u=o.useId(),g=o.useId(),f=n!==null,l=n==="turn_off";return t.jsx("section",{"data-agent-messages-banner":"default-on","aria-label":i("ui.agentMessages.banner.title"),children:t.jsx(E,{variant:"info",className:h(w,"items-start border-transparent"),children:t.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-2",children:[t.jsxs("div",{className:"flex w-full min-w-0 items-start gap-3",children:[t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[t.jsx(A,{children:i("ui.agentMessages.banner.title")}),t.jsx("p",{className:"text-body-sm text-ink-muted",children:i("ui.agentMessages.banner.body")})]}),t.jsx(y,{variant:"ghost",size:"icon-sm",className:"shrink-0 text-ink-muted","aria-label":i("ui.agentMessages.banner.dismiss"),disabled:f,onClick:r,"data-agent-messages-banner-action":"dismiss",children:t.jsx(k,{"aria-hidden":"true"})})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx(y,{variant:"secondary",size:"sm",disabled:f,onClick:a,"aria-describedby":g,"data-agent-messages-banner-action":"turn_off",children:t.jsxs("span",{className:"grid",children:[t.jsx("span",{className:h("col-start-1 row-start-1",l&&"invisible"),"aria-hidden":l,children:i("ui.agentMessages.banner.turn_off")}),t.jsx("span",{className:h("col-start-1 row-start-1",!l&&"invisible"),"aria-hidden":!l,children:i("ui.agentMessages.banner.turning_off")})]})}),t.jsx(y,{variant:"ghost",size:"sm",className:"text-ink","aria-expanded":c,"aria-controls":c?u:void 0,onClick:()=>b(x=>!x),"data-agent-messages-banner-action":"read",children:c?i("ui.agentMessages.banner.hide"):i("ui.agentMessages.banner.read")}),t.jsx("span",{id:g,className:"text-pretty text-meta text-ink-muted",children:i("ui.agentMessages.banner.turn_off_hint")})]}),c&&t.jsx("section",{id:u,className:"rounded-md bg-sunken p-3 @max-[1024px]/bridge:max-h-[35dvh] @max-[1024px]/bridge:overflow-y-auto focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2","aria-label":i("ui.agentMessages.banner.read"),"data-agent-messages-banner-consent":"",children:e?t.jsx("p",{className:"max-w-prose whitespace-pre-wrap text-body-sm text-ink-muted",children:e}):t.jsx("p",{className:"text-body-sm text-ink-muted",children:i("ui.agentMessages.banner.consent_unavailable")})}),s&&t.jsx("p",{role:"alert",className:"text-body-sm text-ink",children:s==="turn_off"?i("ui.agentMessages.banner.turn_off_failed"):i("ui.agentMessages.banner.dismiss_failed")})]})})})};function X(e,n,s){const a=e?.tenant_id??null;return!N(d=>s&&a?d.defaultOnDismissed[I(s,a)]===!0:!1)&&B(e,n)}function q(e){const{api:n,accountId:s,tenantId:a,markerTenantId:r,onSettings:d,onChanged:c}=e,[b,u]=o.useState(null),[g,f]=o.useState(null),l=o.useRef(!1);async function x(p,O){if(!(l.current||!s)){l.current=!0,u(p),f(null);try{await O()}catch{f(p);return}finally{l.current=!1,u(null)}try{await c?.()}catch{}}}return{pending:b,failure:g,turnOff:()=>x("turn_off",async()=>{const p=await n.updateSettings({expected_account_id:s,...a?{tenant_id:a}:{},state:"disabled"});d?.(p)}),dismiss:()=>x("dismiss",async()=>{await n.dismissOnboarding(),s&&r&&N.getState().markDefaultOnDismissed(s,r)})}}const v="lo.teamBridge.scope.v1",P=128;function C(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function M(e){try{const n=JSON.parse(e.getItem(v)??"{}");return C(n)?n:{}}catch{return{}}}function U(e,n){const s=M(e)[n];if(typeof s!="string")return;if(s===m)return m;const a=s.trim();if(!(!a||a.length>P))return j(a)}function Y(e,n,s){try{const a=M(e);e.setItem(v,JSON.stringify({...a,[n]:s}))}catch{}}function Q(e,n){return n===m?[...e]:e.filter(s=>s.tenant_id===n)}function W({organizations:e,stored:n,requestedTenant:s,chosen:a,current:r,snapshotRows:d}){return s?j(s):a?r:e.length===1?e[0].tenantId:n!==void 0&&(n===m||e.some(c=>c.tenantId===n))?n:e.length>1?m:D(e,r,a,d)}export{V as D,v as S,q as a,U as b,W as c,K as d,J as r,Q as s,X as u,Y as w};
@@ -1,4 +1,4 @@
1
- import{_ as s,c as xt,l as E,d as j,V as kt,W as vt,X as _t,Y as bt,D as wt,$ as St,z as Et}from"./mermaid.core-BID4UpCq.js";import{d as nt}from"./arc-Bv4PoZnr.js";import"./conversation-input-sync-D71p4Rag.js";import"./index-CYyP7MM9.js";import"./messages-I_auk7nN.js";import"./path-utils-B5eFmEYJ.js";import"./error-boundary-B2yiQ5Df.js";var Q=function(){var n=s(function(x,i,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],u={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,c,p,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:p.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:p.addTask(o[v],0,""),this.$=o[v];break;case 16:p.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:s(function(i){var a=this,c=[0],p=[],y=[null],o=[],w=this.table,v="",N=0,A=0,V=2,U=1,M=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(i,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var P=g.yylloc;o.push(P);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=p.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(p=T,T=p.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,C,I,J,R={},B,$,et,O;;){if(C=c[c.length-1],this.defaultActions[C]?I=this.defaultActions[C]:((S===null||typeof S>"u")&&(S=tt()),I=w[C]&&w[C][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[C])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
1
+ import{_ as s,c as xt,l as E,d as j,V as kt,W as vt,X as _t,Y as bt,D as wt,$ as St,z as Et}from"./mermaid.core-BFagl5M0.js";import{d as nt}from"./arc-D5IdgXnV.js";import"./conversation-input-sync-CA-NlH9A.js";import"./index-CW7JpbBx.js";import"./messages-DjcNNMrL.js";import"./path-utils-D8EGhun0.js";import"./error-boundary-OwA_uKkY.js";var Q=function(){var n=s(function(x,i,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],u={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,c,p,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:p.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:p.addTask(o[v],0,""),this.$=o[v];break;case 16:p.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:s(function(i){var a=this,c=[0],p=[],y=[null],o=[],w=this.table,v="",N=0,A=0,V=2,U=1,M=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(i,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var P=g.yylloc;o.push(P);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=p.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(p=T,T=p.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,C,I,J,R={},B,$,et,O;;){if(C=c[c.length-1],this.defaultActions[C]?I=this.defaultActions[C]:((S===null||typeof S>"u")&&(S=tt()),I=w[C]&&w[C][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[C])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+O.join(", ")+", got '"+(this.terminals_[S]||S)+"'":K="Parse error on line "+(N+1)+": Unexpected "+(S==U?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(K,{text:g.match,token:this.terminals_[S]||S,line:g.yylineno,loc:P,expected:O})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+S);switch(I[0]){case 1:c.push(S),y.push(g.yytext),o.push(g.yylloc),c.push(I[1]),S=null,A=g.yyleng,v=g.yytext,N=g.yylineno,P=g.yylloc;break;case 2:if($=this.productions_[I[1]][1],R.$=y[y.length-$],R._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},W&&(R._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),J=this.performAction.apply(R,[v,A,N,b.yy,I[1],y,o].concat(M)),typeof J<"u")return J;$&&(c=c.slice(0,-1*$*2),y=y.slice(0,-1*$),o=o.slice(0,-1*$)),c.push(this.productions_[I[1]][0]),y.push(R.$),o.push(R._$),et=w[c[c.length-2]][c[c.length-1]],c.push(et);break;case 3:return!0}}return!0},"parse")},k=function(){var x={EOF:1,parseError:s(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:s(function(i,a){return this.yy=a||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:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(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:s(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var p=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),c.length-1&&(this.yylineno-=c.length-1);var y=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:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),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(i){this.unput(this.match.slice(i))},"less"),pastInput:s(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:s(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:s(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{j as c,c as p,r as U}from"./index-CYyP7MM9.js";import{c as d,u as T,i as Q}from"./error-boundary-B2yiQ5Df.js";import{t as i}from"./messages-I_auk7nN.js";import{c8 as E,c9 as H,ca as V,bt as M,bu as A,aA as S,c2 as B,b7 as N,c3 as Y}from"./conversation-input-sync-D71p4Rag.js";import{aV as P,aW as Z,aX as W,aY as G,aZ as X,a_ as J,a$ as ee,b0 as K}from"./index--aQo4p3V.js";import{B as te}from"./book-open-B-1p1Dmc.js";import{t as C,n as ae,a as D,g as ne,e as w,h as v,i as I,j as q,f as L}from"./en-US-CW_dDnkH.js";import{h as se,u as _,o as oe,w as ie}from"./path-utils-B5eFmEYJ.js";import{b as re,l as ce}from"./publication-validation-DCHogFwH.js";/**
1
+ import{j as c,c as p,r as $}from"./index-CW7JpbBx.js";import{c as d,u as T,i as Q}from"./error-boundary-OwA_uKkY.js";import{t as i}from"./messages-DjcNNMrL.js";import{c9 as E,ca as H,cb as V,bt as M,bu as A,aA as S,c3 as B,b7 as N,c4 as P}from"./conversation-input-sync-CA-NlH9A.js";import{b4 as Y,b5 as Z,b6 as G,b7 as W,b8 as X,b9 as J,ba as ee,bb as K}from"./index-ClKLYxFA.js";import{B as te}from"./book-open-4khD6B-v.js";import{t as C,n as ae,a as D,g as ne,e as w,h as v,i as I,j as q,f as L}from"./en-US-CW_dDnkH.js";import{h as se,u as _,o as oe,w as ie}from"./path-utils-D8EGhun0.js";import{b as re,l as ce}from"./publication-validation-BJvhF9QM.js";/**
2
2
  * @license lucide-react v0.507.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -53,4 +53,4 @@ import{j as c,c as p,r as U}from"./index-CYyP7MM9.js";import{c as d,u as T,i as
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const Ce=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],De=d("shopping-cart",Ce);function ve(e,a){const o=+C(e)-+C(a);return o<0?-1:o>0?1:o}function Ie(e){return a=>{const t=(e?Math[e]:Math.trunc)(a);return t===0?0:t}}function qe(e,a,o){const t=ne(),n=o?.locale??t.locale??w,s=ve(e,a);if(isNaN(s))throw new RangeError("Invalid time value");const r=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:s}),[m,g]=ae(o?.in,...s>0?[a,e]:[e,a]),h=Ie(o?.roundingMethod??"round"),b=g.getTime()-m.getTime(),y=b/L,F=D(g)-D(m),f=(b-F)/L,k=o?.unit;let u;if(k?u=k:y<1?u="second":y<60?u="minute":y<v?u="hour":f<I?u="day":f<q?u="month":u="year",u==="second"){const l=h(b/1e3);return n.formatDistance("xSeconds",l,r)}else if(u==="minute"){const l=h(y);return n.formatDistance("xMinutes",l,r)}else if(u==="hour"){const l=h(y/60);return n.formatDistance("xHours",l,r)}else if(u==="day"){const l=h(f/v);return n.formatDistance("xDays",l,r)}else if(u==="month"){const l=h(f/I);return l===12&&k!=="month"?n.formatDistance("xYears",1,r):n.formatDistance("xMonths",l,r)}else{const l=h(f/q);return n.formatDistance("xYears",l,r)}}const Le={investment:{icon:c.jsx(le,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.investment")}},accounting:{icon:c.jsx(te,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.accounting")}},healthcare:{icon:c.jsx(_e,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.healthcare")}},legal:{icon:c.jsx(Ne,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.legal")}},software:{icon:c.jsx(V,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.software")}},security:{icon:c.jsx(Z,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.security")}},role_play:{icon:c.jsx(H,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.role_play")}},personal_assistance:{icon:c.jsx(P,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.personal_assistance")}},education:{icon:c.jsx(Me,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.education")}},marketing:{icon:c.jsx(ze,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.marketing")}},sales:{icon:c.jsx(De,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.sales")}},research:{icon:c.jsx(ke,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.research")}},analysis:{icon:c.jsx(he,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.analysis")}},management:{icon:c.jsx(ge,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.management")}},social_media:{icon:c.jsx(fe,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.social_media")}},other:{icon:c.jsx(xe,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.other")}}};function x(e){const a=e.split("_").join(" ");return a.charAt(0).toUpperCase()+a.slice(1)}const Oe=e=>Le[e]??{icon:c.jsx(E,{size:14,"aria-hidden":"true"}),label:x(e)},O="inline-flex min-h-5.5 items-center rounded-full border border-hairline bg-sunken px-2 text-meta leading-none",Ze=({tags:e,categories:a,className:o})=>{if(T(),(!e||e.length===0)&&(!a||a.length===0))return null;const t=new Set((a??[]).map(s=>x(s).toLowerCase())),n=(e??[]).filter(s=>!t.has(x(s).toLowerCase()));return c.jsxs("div",{className:p("relative flex flex-wrap items-center gap-1.5 overflow-hidden",o),"data-testid":"agent-tags-and-categories",children:[a?.map(s=>{const r=Oe(s);return c.jsxs("span",{className:p(O,"gap-1 font-medium text-ink-muted"),children:[r.icon,r.label]},s)}),n.map(s=>c.jsxs("span",{className:p(O,"gap-1 font-normal text-ink-dim"),children:[c.jsx(E,{size:12,"aria-hidden":"true"}),x(s)]},s))]})};function We(e,a=Date.now()){return qe(e,a,{locale:{...w,formatDistance(o,t,n){switch(o){case"xSeconds":return i("ui.hub.comments.age.seconds",{count:t});case"xMinutes":return i("ui.hub.comments.age.minutes",{count:t});case"xHours":return i("ui.hub.comments.age.hours",{count:t});case"xDays":return i("ui.hub.comments.age.days",{count:t});case"xMonths":return i("ui.hub.comments.age.months",{count:t});case"xYears":return i("ui.hub.comments.age.years",{count:t});default:return i("ui.hub.comments.age.fallback",{duration:w.formatDistance(o,t,n)})}}}})}const Ge=({orgName:e,className:a})=>(T(),c.jsxs(Q,{variant:"neutral",className:p("gap-1",a),"data-testid":"agent-org-badge",title:e?i("ui.hub.taxonomy.origin.named",{name:e}):i("ui.hub.taxonomy.origin.unnamed"),children:[c.jsx(H,{"aria-hidden":"true"}),e??i("ui.hub.taxonomy.origin.organization")]})),Te=new Set(["qa","ai","api","tui","ux","ui"]),R=/[._-]+/,Xe=e=>e.toLowerCase().replace(R," "),Ee=e=>e.split(R).filter(Boolean).map(a=>Te.has(a.toLowerCase())?a.toUpperCase():a.charAt(0).toUpperCase()+a.slice(1)).join(" "),Je=e=>Ee(e),j={all:["agent-statuses"],page:e=>[...j.all,"page",[...e]]},He=e=>[...new Set(e)].sort(),et=({agentIds:e,enabled:a=!0})=>{const{isAuthenticated:o}=M(),t=e.join(","),n=U.useMemo(()=>He(e),[t]),s=se({queryKey:j.page(n),queryFn:async()=>(await W(n)).result?.statuses??{},enabled:a&&o&&n.length>0,staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,retry:!1});return{...s,statuses:s.data??{},isKnown:s.isSuccess}},tt=(e,a,o)=>o?e&&a[o]!==void 0:!1,$=(e,a,o)=>{e.setQueriesData({queryKey:j.all},t=>{if(!t)return t;const n=t[a]??{liked:!1,favourited:!1};return{...t,[a]:{...n,...o}}})},z=(e,{agentId:a,field:o,delta:t})=>{e.setQueriesData({queryKey:re.all},n=>{if(!n)return n;const s=n.result?.records??[];return s.some(r=>r.id===a)?{...n,result:{...n.result,records:s.map(r=>r.id===a?{...r,[o]:Math.max(0,(r[o]??0)+t)}:r)}}:n})},at=()=>{const e=_(),{isAuthenticated:a}=M();return A({mutationFn:async({agentId:t,isCurrentlyFavourited:n})=>{if(!a)throw new Error("Authentication required to favourite/unfavourite an agent.");if(!t)throw new Error("Agent ID is required.");return n?(await G(t),{favourited:!1,changed:!0}):{favourited:!0,changed:(await X(t)).result?.already_favourited!==!0}},onSuccess:({favourited:t,changed:n},s)=>{$(e,s.agentId,{favourited:t}),n&&z(e,{agentId:s.agentId,field:"favourite_count",delta:t?1:-1})}})},nt=()=>{const e=_(),{isAuthenticated:a}=M();return A({mutationFn:async({agentId:t,isCurrentlyLiked:n})=>{if(!a)throw new Error("Authentication required to like/unlike an agent.");if(!t)throw new Error("Agent ID is required.");return n?(await J(t),{liked:!1,changed:!0}):{liked:!0,changed:(await ee(t)).result?.already_liked!==!0}},onSuccess:({liked:t,changed:n},s)=>{$(e,s.agentId,{liked:t}),n&&z(e,{agentId:s.agentId,field:"like_count",delta:t?1:-1})}})},Ke=(e,a)=>{const o=[];for(const[,t]of e.getQueriesData({queryKey:K}))for(const n of t?.agents??[])n.id!==a&&o.push(n.name);return o},st=()=>{const e=_(),a=oe();return A({mutationFn:async({agentId:t})=>{if(!N.baseUrl)throw new Error("Local Operator API URL is not configured.");return Y.downloadAgentFromRadient(N.baseUrl,t)},onSuccess:(t,n)=>{const s=t.result,r=s?.name?.trim()||n.agentName?.trim()||"Agent",m=s?.renamed_from?.trim()||null,g=s?.id?ce(r,Ke(e,s.id)):null;m?S(i("ui.notices.hub.downloaded_renamed",{name:r,existing:m})):g?B(i("ui.notices.hub.downloaded_collision",{name:r,existing:g})):S(i("ui.notices.hub.downloaded",{name:r})),e.invalidateQueries({queryKey:K}),z(e,{agentId:n.agentId,field:"download_count",delta:1}),t.result?.id?(ie.getState().stageDraft({kind:"agent",name:r}),a("/chat")):console.warn("Downloaded agent ID not found in response, cannot navigate to chat.")}})};export{Ze as A,Le as C,Ge as O,nt as a,at as b,We as c,st as d,Oe as e,qe as f,Je as h,tt as i,Xe as n,et as u};
56
+ */const Ce=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],De=d("shopping-cart",Ce);function ve(e,a){const o=+C(e)-+C(a);return o<0?-1:o>0?1:o}function Ie(e){return a=>{const t=(e?Math[e]:Math.trunc)(a);return t===0?0:t}}function qe(e,a,o){const t=ne(),n=o?.locale??t.locale??w,s=ve(e,a);if(isNaN(s))throw new RangeError("Invalid time value");const r=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:s}),[m,g]=ae(o?.in,...s>0?[a,e]:[e,a]),h=Ie(o?.roundingMethod??"round"),b=g.getTime()-m.getTime(),y=b/L,U=D(g)-D(m),f=(b-U)/L,k=o?.unit;let u;if(k?u=k:y<1?u="second":y<60?u="minute":y<v?u="hour":f<I?u="day":f<q?u="month":u="year",u==="second"){const l=h(b/1e3);return n.formatDistance("xSeconds",l,r)}else if(u==="minute"){const l=h(y);return n.formatDistance("xMinutes",l,r)}else if(u==="hour"){const l=h(y/60);return n.formatDistance("xHours",l,r)}else if(u==="day"){const l=h(f/v);return n.formatDistance("xDays",l,r)}else if(u==="month"){const l=h(f/I);return l===12&&k!=="month"?n.formatDistance("xYears",1,r):n.formatDistance("xMonths",l,r)}else{const l=h(f/q);return n.formatDistance("xYears",l,r)}}const Le={investment:{icon:c.jsx(le,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.investment")}},accounting:{icon:c.jsx(te,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.accounting")}},healthcare:{icon:c.jsx(_e,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.healthcare")}},legal:{icon:c.jsx(Ne,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.legal")}},software:{icon:c.jsx(V,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.software")}},security:{icon:c.jsx(Z,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.security")}},role_play:{icon:c.jsx(H,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.role_play")}},personal_assistance:{icon:c.jsx(Y,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.personal_assistance")}},education:{icon:c.jsx(Me,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.education")}},marketing:{icon:c.jsx(ze,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.marketing")}},sales:{icon:c.jsx(De,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.sales")}},research:{icon:c.jsx(ke,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.research")}},analysis:{icon:c.jsx(he,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.analysis")}},management:{icon:c.jsx(ge,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.management")}},social_media:{icon:c.jsx(fe,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.social_media")}},other:{icon:c.jsx(xe,{size:14,"aria-hidden":"true"}),get label(){return i("ui.hub.taxonomy.category.other")}}};function x(e){const a=e.split("_").join(" ");return a.charAt(0).toUpperCase()+a.slice(1)}const Oe=e=>Le[e]??{icon:c.jsx(E,{size:14,"aria-hidden":"true"}),label:x(e)},O="inline-flex min-h-5.5 items-center rounded-full border border-hairline bg-sunken px-2 text-meta leading-none",Ze=({tags:e,categories:a,className:o})=>{if(T(),(!e||e.length===0)&&(!a||a.length===0))return null;const t=new Set((a??[]).map(s=>x(s).toLowerCase())),n=(e??[]).filter(s=>!t.has(x(s).toLowerCase()));return c.jsxs("div",{className:p("relative flex flex-wrap items-center gap-1.5 overflow-hidden",o),"data-testid":"agent-tags-and-categories",children:[a?.map(s=>{const r=Oe(s);return c.jsxs("span",{className:p(O,"gap-1 font-medium text-ink-muted"),children:[r.icon,r.label]},s)}),n.map(s=>c.jsxs("span",{className:p(O,"gap-1 font-normal text-ink-dim"),children:[c.jsx(E,{size:12,"aria-hidden":"true"}),x(s)]},s))]})};function Ge(e,a=Date.now()){return qe(e,a,{locale:{...w,formatDistance(o,t,n){switch(o){case"xSeconds":return i("ui.hub.comments.age.seconds",{count:t});case"xMinutes":return i("ui.hub.comments.age.minutes",{count:t});case"xHours":return i("ui.hub.comments.age.hours",{count:t});case"xDays":return i("ui.hub.comments.age.days",{count:t});case"xMonths":return i("ui.hub.comments.age.months",{count:t});case"xYears":return i("ui.hub.comments.age.years",{count:t});default:return i("ui.hub.comments.age.fallback",{duration:w.formatDistance(o,t,n)})}}}})}const We=({orgName:e,className:a})=>(T(),c.jsxs(Q,{variant:"neutral",className:p("gap-1",a),"data-testid":"agent-org-badge",title:e?i("ui.hub.taxonomy.origin.named",{name:e}):i("ui.hub.taxonomy.origin.unnamed"),children:[c.jsx(H,{"aria-hidden":"true"}),e??i("ui.hub.taxonomy.origin.organization")]})),Te=new Set(["qa","ai","api","tui","ux","ui"]),R=/[._-]+/,Xe=e=>e.toLowerCase().replace(R," "),Ee=e=>e.split(R).filter(Boolean).map(a=>Te.has(a.toLowerCase())?a.toUpperCase():a.charAt(0).toUpperCase()+a.slice(1)).join(" "),Je=e=>Ee(e),j={all:["agent-statuses"],page:e=>[...j.all,"page",[...e]]},He=e=>[...new Set(e)].sort(),et=({agentIds:e,enabled:a=!0})=>{const{isAuthenticated:o}=M(),t=e.join(","),n=$.useMemo(()=>He(e),[t]),s=se({queryKey:j.page(n),queryFn:async()=>(await G(n)).result?.statuses??{},enabled:a&&o&&n.length>0,staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,retry:!1});return{...s,statuses:s.data??{},isKnown:s.isSuccess}},tt=(e,a,o)=>o?e&&a[o]!==void 0:!1,F=(e,a,o)=>{e.setQueriesData({queryKey:j.all},t=>{if(!t)return t;const n=t[a]??{liked:!1,favourited:!1};return{...t,[a]:{...n,...o}}})},z=(e,{agentId:a,field:o,delta:t})=>{e.setQueriesData({queryKey:re.all},n=>{if(!n)return n;const s=n.result?.records??[];return s.some(r=>r.id===a)?{...n,result:{...n.result,records:s.map(r=>r.id===a?{...r,[o]:Math.max(0,(r[o]??0)+t)}:r)}}:n})},at=()=>{const e=_(),{isAuthenticated:a}=M();return A({mutationFn:async({agentId:t,isCurrentlyFavourited:n})=>{if(!a)throw new Error("Authentication required to favourite/unfavourite an agent.");if(!t)throw new Error("Agent ID is required.");return n?(await W(t),{favourited:!1,changed:!0}):{favourited:!0,changed:(await X(t)).result?.already_favourited!==!0}},onSuccess:({favourited:t,changed:n},s)=>{F(e,s.agentId,{favourited:t}),n&&z(e,{agentId:s.agentId,field:"favourite_count",delta:t?1:-1})}})},nt=()=>{const e=_(),{isAuthenticated:a}=M();return A({mutationFn:async({agentId:t,isCurrentlyLiked:n})=>{if(!a)throw new Error("Authentication required to like/unlike an agent.");if(!t)throw new Error("Agent ID is required.");return n?(await J(t),{liked:!1,changed:!0}):{liked:!0,changed:(await ee(t)).result?.already_liked!==!0}},onSuccess:({liked:t,changed:n},s)=>{F(e,s.agentId,{liked:t}),n&&z(e,{agentId:s.agentId,field:"like_count",delta:t?1:-1})}})},Ke=(e,a)=>{const o=[];for(const[,t]of e.getQueriesData({queryKey:K}))for(const n of t?.agents??[])n.id!==a&&o.push(n.name);return o},st=()=>{const e=_(),a=oe();return A({mutationFn:async({agentId:t})=>{if(!N.baseUrl)throw new Error("Local Operator API URL is not configured.");return P.downloadAgentFromRadient(N.baseUrl,t)},onSuccess:(t,n)=>{const s=t.result,r=s?.name?.trim()||n.agentName?.trim()||"Agent",m=s?.renamed_from?.trim()||null,g=s?.id?ce(r,Ke(e,s.id)):null;m?S(i("ui.notices.hub.downloaded_renamed",{name:r,existing:m})):g?B(i("ui.notices.hub.downloaded_collision",{name:r,existing:g})):S(i("ui.notices.hub.downloaded",{name:r})),e.invalidateQueries({queryKey:K}),z(e,{agentId:n.agentId,field:"download_count",delta:1}),t.result?.id?(ie.getState().stageDraft({kind:"agent",name:r}),a("/chat")):console.warn("Downloaded agent ID not found in response, cannot navigate to chat.")}})};export{Ze as A,Le as C,We as O,nt as a,at as b,Ge as c,st as d,Oe as e,qe as f,Je as h,tt as i,Xe as n,et as u};
@@ -1 +1 @@
1
- import{d as c}from"./path-utils-B5eFmEYJ.js";import{r as n}from"./index-CYyP7MM9.js";function s(){const[f,a]=n.useState(null),[l,o]=n.useState(null),r=n.useRef(null),u=n.useCallback(async e=>{r.current=e,a(t=>t&&t.id!==e?null:t),o(t=>t&&t.id!==e?null:t);try{const t=await c({op:"sessions.get",sessionId:e});if(r.current!==e)return;a({id:e,frontend:t.payload.frontend.snapshot})}catch{}try{const t=await c({op:"commands.entities",sessionId:e,command:"effort"});if(r.current!==e)return;o({id:e,entities:t.entities})}catch{}},[]);return{frontend:f?.frontend??null,effortEntities:l?.entities,refresh:u}}export{s as u};
1
+ import{d as c}from"./path-utils-D8EGhun0.js";import{r as n}from"./index-CW7JpbBx.js";function s(){const[f,a]=n.useState(null),[l,o]=n.useState(null),r=n.useRef(null),u=n.useCallback(async e=>{r.current=e,a(t=>t&&t.id!==e?null:t),o(t=>t&&t.id!==e?null:t);try{const t=await c({op:"sessions.get",sessionId:e});if(r.current!==e)return;a({id:e,frontend:t.payload.frontend.snapshot})}catch{}try{const t=await c({op:"commands.entities",sessionId:e,command:"effort"});if(r.current!==e)return;o({id:e,entities:t.entities})}catch{}},[]);return{frontend:f?.frontend??null,effortEntities:l?.entities,refresh:u}}export{s as u};
@@ -1,4 +1,4 @@
1
- import{_ as n,s as ii,g as ei,t as vt,q as si,a as ni,b as ai,l as Lt,K as oi,e as hi,z as ri,G as lt,F as Et,H as li,M as ci,i as ui,N as gi}from"./mermaid.core-BID4UpCq.js";import{o as kt,n as Tt,q as Rt}from"./conversation-input-sync-D71p4Rag.js";import"./index-CYyP7MM9.js";import"./messages-I_auk7nN.js";import"./path-utils-B5eFmEYJ.js";import"./error-boundary-B2yiQ5Df.js";var at=function(){var t=n(function(B,h,l,c){for(l=l||{},c=B.length;c--;l[B[c]]=h);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],o=[1,5],p=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],T=[1,25],E=[1,26],S=[1,28],R=[1,29],I=[1,30],V=[1,31],_=[1,32],L=[1,33],f=[1,34],C=[1,35],r=[1,36],D=[1,37],N=[1,43],yt=[1,42],bt=[1,47],$=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],J=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],P=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],At=[1,64],tt={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(h,l,c,u,y,a,X){var x=a.length-1;switch(y){case 5:u.setOrientation(a[x]);break;case 9:u.setDiagramTitle(a[x].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[x]);break;case 13:u.setLineData(a[x-1],a[x]);break;case 14:u.setBarData({text:"",type:"text"},a[x]);break;case 15:u.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),u.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:u.setXAxisTitle(a[x]);break;case 23:u.setXAxisTitle(a[x-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[x]);break;case 26:u.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:u.setYAxisTitle(a[x]);break;case 31:u.setYAxisTitle(a[x-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:o,35:p,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:o,35:p,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:o,35:p,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:o,35:p,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:o,35:p,36:g}),{11:23,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:39,13:38,24:N,27:yt,29:40,30:41,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:45,15:44,27:bt,33:46,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:49,17:48,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:52,17:51,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{20:[1,53]},{22:[1,54]},t(b,[2,18]),{1:[2,2]},t(b,[2,8]),t(b,[2,9]),t(J,[2,37],{40:55,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D}),t(J,[2,38]),t(J,[2,39]),t(P,[2,40]),t(P,[2,42]),t(P,[2,43]),t(P,[2,44]),t(P,[2,45]),t(P,[2,46]),t(P,[2,47]),t(P,[2,48]),t(P,[2,49]),t(P,[2,50]),t(P,[2,51]),t(b,[2,10]),t(b,[2,22],{30:41,29:56,24:N,27:yt}),t(b,[2,24]),t(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},t(b,[2,11]),t(b,[2,30],{33:60,27:bt}),t(b,[2,32]),{31:[1,61]},t(b,[2,12]),{17:62,24:$},{25:63,27:At},t(b,[2,14]),{17:65,24:$},t(b,[2,16]),t(b,[2,17]),t(P,[2,41]),t(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(b,[2,31]),{27:[1,69]},t(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(b,[2,15]),t(b,[2,26]),t(b,[2,27]),{11:59,32:72,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},t(b,[2,33]),t(b,[2,19]),{25:73,27:At},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(h,l){if(l.recoverable)this.trace(h);else{var c=new Error(h);throw c.hash=l,c}},"parseError"),parse:n(function(h){var l=this,c=[0],u=[],y=[null],a=[],X=this.table,x="",G=0,Ct=0,Kt=2,wt=1,Zt=a.slice.call(arguments,1),A=Object.create(this.lexer),W={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(W.yy[it]=this.yy[it]);A.setInput(h,W.yy),W.yy.lexer=A,W.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var et=A.yylloc;a.push(et);var Jt=A.options&&A.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ti(k){c.length=c.length-2*k,y.length=y.length-k,a.length=a.length-k}n(ti,"popStack");function St(){var k;return k=u.pop()||A.lex()||wt,typeof k!="number"&&(k instanceof Array&&(u=k,k=u.pop()),k=l.symbols_[k]||k),k}n(St,"lex");for(var w,O,v,st,z={},j,M,_t,Q;;){if(O=c[c.length-1],this.defaultActions[O]?v=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=St()),v=X[O]&&X[O][w]),typeof v>"u"||!v.length||!v[0]){var nt="";Q=[];for(j in X[O])this.terminals_[j]&&j>Kt&&Q.push("'"+this.terminals_[j]+"'");A.showPosition?nt="Parse error on line "+(G+1)+`:
1
+ import{_ as n,s as ii,g as ei,t as vt,q as si,a as ni,b as ai,l as Lt,K as oi,e as hi,z as ri,G as lt,F as Et,H as li,M as ci,i as ui,N as gi}from"./mermaid.core-BFagl5M0.js";import{o as kt,n as Tt,q as Rt}from"./conversation-input-sync-CA-NlH9A.js";import"./index-CW7JpbBx.js";import"./messages-DjcNNMrL.js";import"./path-utils-D8EGhun0.js";import"./error-boundary-OwA_uKkY.js";var at=function(){var t=n(function(B,h,l,c){for(l=l||{},c=B.length;c--;l[B[c]]=h);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],o=[1,5],p=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],T=[1,25],E=[1,26],S=[1,28],R=[1,29],I=[1,30],V=[1,31],_=[1,32],L=[1,33],f=[1,34],C=[1,35],r=[1,36],D=[1,37],N=[1,43],yt=[1,42],bt=[1,47],$=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],J=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],P=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],At=[1,64],tt={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(h,l,c,u,y,a,X){var x=a.length-1;switch(y){case 5:u.setOrientation(a[x]);break;case 9:u.setDiagramTitle(a[x].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[x]);break;case 13:u.setLineData(a[x-1],a[x]);break;case 14:u.setBarData({text:"",type:"text"},a[x]);break;case 15:u.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),u.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:u.setXAxisTitle(a[x]);break;case 23:u.setXAxisTitle(a[x-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[x]);break;case 26:u.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:u.setYAxisTitle(a[x]);break;case 31:u.setYAxisTitle(a[x-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:o,35:p,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:o,35:p,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:o,35:p,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:o,35:p,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:o,35:p,36:g}),{11:23,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:39,13:38,24:N,27:yt,29:40,30:41,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:45,15:44,27:bt,33:46,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:49,17:48,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{11:52,17:51,24:$,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},{20:[1,53]},{22:[1,54]},t(b,[2,18]),{1:[2,2]},t(b,[2,8]),t(b,[2,9]),t(J,[2,37],{40:55,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D}),t(J,[2,38]),t(J,[2,39]),t(P,[2,40]),t(P,[2,42]),t(P,[2,43]),t(P,[2,44]),t(P,[2,45]),t(P,[2,46]),t(P,[2,47]),t(P,[2,48]),t(P,[2,49]),t(P,[2,50]),t(P,[2,51]),t(b,[2,10]),t(b,[2,22],{30:41,29:56,24:N,27:yt}),t(b,[2,24]),t(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},t(b,[2,11]),t(b,[2,30],{33:60,27:bt}),t(b,[2,32]),{31:[1,61]},t(b,[2,12]),{17:62,24:$},{25:63,27:At},t(b,[2,14]),{17:65,24:$},t(b,[2,16]),t(b,[2,17]),t(P,[2,41]),t(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(b,[2,31]),{27:[1,69]},t(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(b,[2,15]),t(b,[2,26]),t(b,[2,27]),{11:59,32:72,37:24,38:T,39:E,40:27,41:S,42:R,43:I,44:V,45:_,46:L,47:f,48:C,49:r,50:D},t(b,[2,33]),t(b,[2,19]),{25:73,27:At},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(h,l){if(l.recoverable)this.trace(h);else{var c=new Error(h);throw c.hash=l,c}},"parseError"),parse:n(function(h){var l=this,c=[0],u=[],y=[null],a=[],X=this.table,x="",G=0,Ct=0,Kt=2,wt=1,Zt=a.slice.call(arguments,1),A=Object.create(this.lexer),W={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(W.yy[it]=this.yy[it]);A.setInput(h,W.yy),W.yy.lexer=A,W.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var et=A.yylloc;a.push(et);var Jt=A.options&&A.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ti(k){c.length=c.length-2*k,y.length=y.length-k,a.length=a.length-k}n(ti,"popStack");function St(){var k;return k=u.pop()||A.lex()||wt,typeof k!="number"&&(k instanceof Array&&(u=k,k=u.pop()),k=l.symbols_[k]||k),k}n(St,"lex");for(var w,O,v,st,z={},j,M,_t,Q;;){if(O=c[c.length-1],this.defaultActions[O]?v=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=St()),v=X[O]&&X[O][w]),typeof v>"u"||!v.length||!v[0]){var nt="";Q=[];for(j in X[O])this.terminals_[j]&&j>Kt&&Q.push("'"+this.terminals_[j]+"'");A.showPosition?nt="Parse error on line "+(G+1)+`:
2
2
  `+A.showPosition()+`
3
3
  Expecting `+Q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":nt="Parse error on line "+(G+1)+": Unexpected "+(w==wt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(nt,{text:A.match,token:this.terminals_[w]||w,line:A.yylineno,loc:et,expected:Q})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(v[0]){case 1:c.push(w),y.push(A.yytext),a.push(A.yylloc),c.push(v[1]),w=null,Ct=A.yyleng,x=A.yytext,G=A.yylineno,et=A.yylloc;break;case 2:if(M=this.productions_[v[1]][1],z.$=y[y.length-M],z._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Jt&&(z._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),st=this.performAction.apply(z,[x,Ct,G,W.yy,v[1],y,a].concat(Zt)),typeof st<"u")return st;M&&(c=c.slice(0,-1*M*2),y=y.slice(0,-1*M),a=a.slice(0,-1*M)),c.push(this.productions_[v[1]][0]),y.push(z.$),a.push(z._$),_t=X[c[c.length-2]][c[c.length-1]],c.push(_t);break;case 3:return!0}}return!0},"parse")},Qt=function(){var B={EOF:1,parseError:n(function(l,c){if(this.yy.parser)this.yy.parser.parseError(l,c);else throw new Error(l)},"parseError"),setInput:n(function(h,l){return this.yy=l||this.yy||{},this._input=h,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:n(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var l=h.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var l=h.length,c=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var u=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),c.length-1&&(this.yylineno-=c.length-1);var y=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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),l=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
@@ -21,8 +21,8 @@
21
21
  http-equiv="Content-Security-Policy"
22
22
  content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'none'; font-src 'none'; connect-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'"
23
23
  />
24
- <script type="module" crossorigin src="./assets/approvalsOverlay-DPC492Fl.js"></script>
25
- <link rel="modulepreload" crossorigin href="./assets/messages-I_auk7nN.js">
24
+ <script type="module" crossorigin src="./assets/approvalsOverlay-WBOsPQyQ.js"></script>
25
+ <link rel="modulepreload" crossorigin href="./assets/messages-DjcNNMrL.js">
26
26
  <link rel="stylesheet" crossorigin href="./assets/approvalsOverlay-BgfK3IlB.css">
27
27
  </head>
28
28
  <body>
@@ -6,11 +6,11 @@
6
6
  <title>Local Operator Console Capture</title>
7
7
  <meta http-equiv="Content-Security-Policy"
8
8
  content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:" />
9
- <script type="module" crossorigin src="./assets/consoleCapture-B6OPLMTg.js"></script>
10
- <link rel="modulepreload" crossorigin href="./assets/messages-I_auk7nN.js">
11
- <link rel="modulepreload" crossorigin href="./assets/index-CYyP7MM9.js">
12
- <link rel="modulepreload" crossorigin href="./assets/path-utils-B5eFmEYJ.js">
13
- <link rel="modulepreload" crossorigin href="./assets/console-mirror-DzqQp-In.js">
9
+ <script type="module" crossorigin src="./assets/consoleCapture-DSbKoJkH.js"></script>
10
+ <link rel="modulepreload" crossorigin href="./assets/messages-DjcNNMrL.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/index-CW7JpbBx.js">
12
+ <link rel="modulepreload" crossorigin href="./assets/path-utils-D8EGhun0.js">
13
+ <link rel="modulepreload" crossorigin href="./assets/console-mirror-1z96hWwG.js">
14
14
  <link rel="stylesheet" crossorigin href="./assets/index-BK4bX87i.css">
15
15
  <link rel="stylesheet" crossorigin href="./assets/console-mirror-DOrYoP_4.css">
16
16
  </head>
@@ -41,13 +41,13 @@
41
41
  <meta http-equiv="Content-Security-Policy"
42
42
  content="default-src 'self'; connect-src 'self' http://localhost:1111 http://127.0.0.1:1111 http://localhost:8080 http://127.0.0.1:8080 https://api.radienthq.com https://us.i.posthog.com https://login.microsoftonline.com https://accounts.google.com; script-src 'self' https://us-assets.i.posthog.com https://accounts.google.com https://login.microsoftonline.com; style-src 'self' 'unsafe-inline' data:; img-src 'self' data: blob: http://localhost:1111 http://127.0.0.1:1111; media-src 'self' blob: http://localhost:1111 http://127.0.0.1:1111; font-src 'self' data:; frame-src 'self' data: blob: lo-supplement: http://localhost:1111 http://127.0.0.1:1111 https://accounts.google.com https://login.microsoftonline.com" />
43
43
  <meta http-equiv="Cross-Origin-Opener-Policy" content="same-origin-allow-popups" />
44
- <script type="module" crossorigin src="./assets/index--aQo4p3V.js"></script>
45
- <link rel="modulepreload" crossorigin href="./assets/messages-I_auk7nN.js">
46
- <link rel="modulepreload" crossorigin href="./assets/index-CYyP7MM9.js">
47
- <link rel="modulepreload" crossorigin href="./assets/path-utils-B5eFmEYJ.js">
48
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-B2yiQ5Df.js">
49
- <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-D71p4Rag.js">
50
- <link rel="modulepreload" crossorigin href="./assets/console-mirror-DzqQp-In.js">
44
+ <script type="module" crossorigin src="./assets/index-ClKLYxFA.js"></script>
45
+ <link rel="modulepreload" crossorigin href="./assets/messages-DjcNNMrL.js">
46
+ <link rel="modulepreload" crossorigin href="./assets/index-CW7JpbBx.js">
47
+ <link rel="modulepreload" crossorigin href="./assets/path-utils-D8EGhun0.js">
48
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-OwA_uKkY.js">
49
+ <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-CA-NlH9A.js">
50
+ <link rel="modulepreload" crossorigin href="./assets/console-mirror-1z96hWwG.js">
51
51
  <link rel="stylesheet" crossorigin href="./assets/index-BK4bX87i.css">
52
52
  <link rel="stylesheet" crossorigin href="./assets/conversation-input-sync-Dp97JwKx.css">
53
53
  <link rel="stylesheet" crossorigin href="./assets/console-mirror-DOrYoP_4.css">
@@ -8,10 +8,10 @@
8
8
  <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
9
9
  <meta http-equiv="Content-Security-Policy"
10
10
  content="default-src 'self'; connect-src 'self' http://localhost:1111 http://127.0.0.1:1111; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: http://localhost:1111 http://127.0.0.1:1111; media-src 'self' http://localhost:1111 http://127.0.0.1:1111; font-src 'self' data:" />
11
- <script type="module" crossorigin src="./assets/installer-BBjM_Kai.js"></script>
12
- <link rel="modulepreload" crossorigin href="./assets/messages-I_auk7nN.js">
13
- <link rel="modulepreload" crossorigin href="./assets/index-CYyP7MM9.js">
14
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-B2yiQ5Df.js">
11
+ <script type="module" crossorigin src="./assets/installer-p_c_K-V4.js"></script>
12
+ <link rel="modulepreload" crossorigin href="./assets/messages-DjcNNMrL.js">
13
+ <link rel="modulepreload" crossorigin href="./assets/index-CW7JpbBx.js">
14
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-OwA_uKkY.js">
15
15
  <link rel="stylesheet" crossorigin href="./assets/index-BK4bX87i.css">
16
16
  </head>
17
17
 
@@ -6,13 +6,13 @@
6
6
  <title>Local Operator Quick Send</title>
7
7
  <meta http-equiv="Content-Security-Policy"
8
8
  content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:" />
9
- <script type="module" crossorigin src="./assets/mini-CPJs7fAJ.js"></script>
10
- <link rel="modulepreload" crossorigin href="./assets/messages-I_auk7nN.js">
11
- <link rel="modulepreload" crossorigin href="./assets/index-CYyP7MM9.js">
12
- <link rel="modulepreload" crossorigin href="./assets/error-boundary-B2yiQ5Df.js">
13
- <link rel="modulepreload" crossorigin href="./assets/path-utils-B5eFmEYJ.js">
14
- <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-D71p4Rag.js">
15
- <link rel="modulepreload" crossorigin href="./assets/use-session-snapshot-iw7nmRrx.js">
9
+ <script type="module" crossorigin src="./assets/mini-D7qJkiP2.js"></script>
10
+ <link rel="modulepreload" crossorigin href="./assets/messages-DjcNNMrL.js">
11
+ <link rel="modulepreload" crossorigin href="./assets/index-CW7JpbBx.js">
12
+ <link rel="modulepreload" crossorigin href="./assets/error-boundary-OwA_uKkY.js">
13
+ <link rel="modulepreload" crossorigin href="./assets/path-utils-D8EGhun0.js">
14
+ <link rel="modulepreload" crossorigin href="./assets/conversation-input-sync-CA-NlH9A.js">
15
+ <link rel="modulepreload" crossorigin href="./assets/use-session-snapshot-ZwSI2jWI.js">
16
16
  <link rel="stylesheet" crossorigin href="./assets/index-BK4bX87i.css">
17
17
  <link rel="stylesheet" crossorigin href="./assets/conversation-input-sync-Dp97JwKx.css">
18
18
  </head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-operator-ui",
3
- "version": "0.48.3",
3
+ "version": "0.48.5",
4
4
  "productName": "Local Operator",
5
5
  "description": "User interface for AI agent assistants that run Python code safely on your device through an intuitive chat interface. Supports local and cloud LLM models with built-in security features.",
6
6
  "main": "./out/main/index.js",
@@ -1 +0,0 @@
1
- import{j as r}from"./index-CYyP7MM9.js";import{B as o}from"./index--aQo4p3V.js";import"./messages-I_auk7nN.js";import"./path-utils-B5eFmEYJ.js";import"./error-boundary-B2yiQ5Df.js";import"./conversation-input-sync-D71p4Rag.js";import"./console-mirror-DzqQp-In.js";const u=()=>r.jsx(o,{tabScope:"all",requestScope:"all",hostSessionId:null,isRoutePage:!0,surfaceTag:"browser-route",dockSurfaceTag:"browser-approvals-dock"});export{u as BrowserPage};
@@ -1 +0,0 @@
1
- import{U as a,C as n}from"./mermaid.core-BID4UpCq.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-A2AXSNBT-D_NIorf5.js";import{_ as i}from"./mermaid.core-BID4UpCq.js";import"./chunk-RZ5BOZE2-D-ZhMLMw.js";import"./conversation-input-sync-D71p4Rag.js";import"./index-CYyP7MM9.js";import"./messages-I_auk7nN.js";import"./path-utils-B5eFmEYJ.js";import"./error-boundary-B2yiQ5Df.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-A2AXSNBT-D_NIorf5.js";import{_ as i}from"./mermaid.core-BID4UpCq.js";import"./chunk-RZ5BOZE2-D-ZhMLMw.js";import"./conversation-input-sync-D71p4Rag.js";import"./index-CYyP7MM9.js";import"./messages-I_auk7nN.js";import"./path-utils-B5eFmEYJ.js";import"./error-boundary-B2yiQ5Df.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram};
@@ -1 +0,0 @@
1
- import{b as r}from"./_baseUniq-DHWv4q1T.js";var e=4;function a(o){return r(o,e)}export{a as c};