@intent-hq/web 2.361.1 → 2.361.3

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 (186) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/-5BGDZDk.js +32 -0
  3. package/web/app/immutable/chunks/{Ccaz1_yi.js → -HqAs4SX.js} +1 -1
  4. package/web/app/immutable/chunks/{CfrI0flQ.js → -kGF-zOh.js} +1 -1
  5. package/web/app/immutable/chunks/{CEX--Xsn.js → 0PJnSjrq.js} +2 -2
  6. package/web/app/immutable/chunks/{B9t82so5.js → 2wJjyVNk.js} +2 -2
  7. package/web/app/immutable/chunks/{DW6bFMyN.js → 6XxQdgFC.js} +1 -1
  8. package/web/app/immutable/chunks/{IF38I4hJ.js → 9b_Os5fY.js} +1 -1
  9. package/web/app/immutable/chunks/{BIbN5V8o.js → 9n20zLe0.js} +1 -1
  10. package/web/app/immutable/chunks/{DlZbnYcc.js → B0Zr6q55.js} +1 -1
  11. package/web/app/immutable/chunks/{j9e5aB7O.js → B2IYt4Eb.js} +1 -1
  12. package/web/app/immutable/chunks/{ChdfugfS.js → B4M3z6rE.js} +1 -1
  13. package/web/app/immutable/chunks/{BzTKzuhn.js → B5oNMyyY.js} +1 -1
  14. package/web/app/immutable/chunks/{DOjUJ8i8.js → B61qyrBq.js} +1 -1
  15. package/web/app/immutable/chunks/{QNDivBsM.js → B8p2cYc_.js} +1 -1
  16. package/web/app/immutable/chunks/{CigwWVbR.js → B9WaAaiK.js} +1 -1
  17. package/web/app/immutable/chunks/{BTYFFiiL.js → BA6gfA7a.js} +1 -1
  18. package/web/app/immutable/chunks/{BTli9eoV.js → BA8yVm-p.js} +1 -1
  19. package/web/app/immutable/chunks/{D478BUHq.js → BC8in_Uv.js} +1 -1
  20. package/web/app/immutable/chunks/{CM4RKAei.js → BCfq8Fz_.js} +1 -1
  21. package/web/app/immutable/chunks/{BSEFatJl.js → BD7zp6rB.js} +1 -1
  22. package/web/app/immutable/chunks/{WJw0rC-g.js → BDJ7r_mr.js} +1 -1
  23. package/web/app/immutable/chunks/{D39Rrj4Y.js → BDk-prCr.js} +1 -1
  24. package/web/app/immutable/chunks/{wuYAM5lX.js → BFfD2hCV.js} +1 -1
  25. package/web/app/immutable/chunks/{Dg8d6CfG.js → BN7DTISb.js} +1 -1
  26. package/web/app/immutable/chunks/{CVFwlr2Z.js → BPG9IRUj.js} +1 -1
  27. package/web/app/immutable/chunks/{D_duQWml.js → BPsUIxHc.js} +1 -1
  28. package/web/app/immutable/chunks/{DhFCUcs_.js → BQQo4uEb.js} +1 -1
  29. package/web/app/immutable/chunks/{DxNx74qV.js → BRMpz8OI.js} +1 -1
  30. package/web/app/immutable/chunks/{C9vs7bl5.js → BWUH3HmG.js} +1 -1
  31. package/web/app/immutable/chunks/{CGyzoULR.js → BX7U0hos.js} +2 -2
  32. package/web/app/immutable/chunks/{8C8OyL-H.js → BXV9Yk-8.js} +1 -1
  33. package/web/app/immutable/chunks/{BAyBEEFm.js → BZgSCYyO.js} +1 -1
  34. package/web/app/immutable/chunks/{CIDE3x9D.js → BZp1yALL.js} +1 -1
  35. package/web/app/immutable/chunks/{BpOARSV2.js → B_VZNBPj.js} +2 -2
  36. package/web/app/immutable/chunks/BaGrEyO7.js +1 -0
  37. package/web/app/immutable/chunks/{LbgKUbsl.js → BbUJvzh9.js} +3 -3
  38. package/web/app/immutable/chunks/BbV7MtxC.js +1 -0
  39. package/web/app/immutable/chunks/BcLoDKLg.js +2 -0
  40. package/web/app/immutable/chunks/{C1d-f55y.js → BdJDtk-i.js} +1 -1
  41. package/web/app/immutable/chunks/BeF36lmB.js +3 -0
  42. package/web/app/immutable/chunks/BjEuTkmJ.js +2 -0
  43. package/web/app/immutable/chunks/{BTl8ihCX.js → BlL4snZb.js} +1 -1
  44. package/web/app/immutable/chunks/{CuGN_Lgy.js → Bm01ytIS.js} +1 -1
  45. package/web/app/immutable/chunks/{BqUUWX71.js → BmYxgQYl.js} +1 -1
  46. package/web/app/immutable/chunks/{DnxaSjad.js → Br2374tC.js} +1 -1
  47. package/web/app/immutable/chunks/{B1ScYY03.js → BrNYPcY3.js} +4 -4
  48. package/web/app/immutable/chunks/{P-joxIX5.js → BuqbrxB1.js} +1 -1
  49. package/web/app/immutable/chunks/{B_tHbtUI.js → BwKqt4sw.js} +1 -1
  50. package/web/app/immutable/chunks/{Bmmvebpd.js → Byrb39B5.js} +1 -1
  51. package/web/app/immutable/chunks/{Oa6WXH6c.js → C-pqKaCQ.js} +4 -4
  52. package/web/app/immutable/chunks/{DfPFNZRA.js → C0Be7Tc_.js} +1 -1
  53. package/web/app/immutable/chunks/{BM1o8cfq.js → C4WAGAfI.js} +1 -1
  54. package/web/app/immutable/chunks/{Bx9jZIih.js → C6jHCE8G.js} +4 -4
  55. package/web/app/immutable/chunks/{CY0JcuWq.js → CAi2riH4.js} +1 -1
  56. package/web/app/immutable/chunks/{LOqiMc_U.js → CHFWhULQ.js} +1 -1
  57. package/web/app/immutable/chunks/{DSEn8hom.js → CI9dMB_b.js} +2 -2
  58. package/web/app/immutable/chunks/{q3oLC86w.js → CIrv4K8l.js} +1 -1
  59. package/web/app/immutable/chunks/{DaHbZjgp.js → CK3bnTgZ.js} +1 -1
  60. package/web/app/immutable/chunks/{DzGon3k8.js → CNDY58le.js} +6 -6
  61. package/web/app/immutable/chunks/{BShQ2LRb.js → CNIxi0ch.js} +1 -1
  62. package/web/app/immutable/chunks/{R1d5Y9eD.js → CP5zM-2z.js} +1 -1
  63. package/web/app/immutable/chunks/CPk-Lh5Y.js +1 -0
  64. package/web/app/immutable/chunks/{DU2T1Vdb.js → CPzeiVDF.js} +1 -1
  65. package/web/app/immutable/chunks/{BCReWepB.js → CRxUemhR.js} +1 -1
  66. package/web/app/immutable/chunks/{NAsYJxQg.js → CRynRlXQ.js} +1 -1
  67. package/web/app/immutable/chunks/{p1enVnf-.js → CSWdbNcY.js} +3 -3
  68. package/web/app/immutable/chunks/{BG8JSmc7.js → CTU9yjO5.js} +1 -1
  69. package/web/app/immutable/chunks/{dxPehZVa.js → CWVUBnHm.js} +2 -2
  70. package/web/app/immutable/chunks/CX5tClKW.js +4 -0
  71. package/web/app/immutable/chunks/{DtIte6Mn.js → CY8ea6Mz.js} +47 -47
  72. package/web/app/immutable/chunks/{DxOUk2oJ.js → C_5bSDGn.js} +3 -3
  73. package/web/app/immutable/chunks/{CWv2hgO9.js → C_gwhAv1.js} +1 -1
  74. package/web/app/immutable/chunks/{CvPVdUUZ.js → CaOJIXi2.js} +1 -1
  75. package/web/app/immutable/chunks/{DHQj_UCz.js → CaculjlW.js} +1 -1
  76. package/web/app/immutable/chunks/{DUCIVWu4.js → CbLPH1Om.js} +5 -5
  77. package/web/app/immutable/chunks/{Dg9xZYld.js → CcTYYBo3.js} +1 -1
  78. package/web/app/immutable/chunks/{Cnly_zgc.js → CiTbcBZ_.js} +1 -1
  79. package/web/app/immutable/chunks/{CD6wiERl.js → Ck96vbIn.js} +2 -2
  80. package/web/app/immutable/chunks/{CU9Jo2EB.js → CkoKtsiL.js} +1 -1
  81. package/web/app/immutable/chunks/{Wz08guGa.js → Cl9ySU-o.js} +1 -1
  82. package/web/app/immutable/chunks/{DPfWnZYT.js → ClV-2Tgv.js} +1 -1
  83. package/web/app/immutable/chunks/{BXId-8a9.js → Clj6cYni.js} +1 -1
  84. package/web/app/immutable/chunks/{LWmvlIUb.js → CniyFe5S.js} +1 -1
  85. package/web/app/immutable/chunks/{DgcVHfLT.js → CplYX6wM.js} +1 -1
  86. package/web/app/immutable/chunks/{Mq-KWmnJ.js → CrU71cWX.js} +1 -1
  87. package/web/app/immutable/chunks/CtJsKX7p.js +3 -0
  88. package/web/app/immutable/chunks/{DwHEsGP4.js → CvCk2zex.js} +1 -1
  89. package/web/app/immutable/chunks/{i9Ai-esv.js → Cy8IOKwI.js} +1 -1
  90. package/web/app/immutable/chunks/{CcZqxMtd.js → Cyj5BnLo.js} +1 -1
  91. package/web/app/immutable/chunks/{CuHcMIuh.js → D-xbpOd2.js} +1 -1
  92. package/web/app/immutable/chunks/{DP_4YjFn.js → D1Vat_ZV.js} +1 -1
  93. package/web/app/immutable/chunks/{Dr8wZpId.js → D1Wd78Sv.js} +1 -1
  94. package/web/app/immutable/chunks/{DMHNxEyN.js → D3w04cnk.js} +1 -1
  95. package/web/app/immutable/chunks/{DKAPPU9s.js → D4aqkbtK.js} +4 -4
  96. package/web/app/immutable/chunks/{HtczSd2T.js → D6DFaBwR.js} +1 -1
  97. package/web/app/immutable/chunks/{BpL3mTkL.js → D6YJZGmY.js} +1 -1
  98. package/web/app/immutable/chunks/{DL8IL3dP.js → D8uhGa69.js} +1 -1
  99. package/web/app/immutable/chunks/{PRiKArA2.js → D9NfptXn.js} +2 -2
  100. package/web/app/immutable/chunks/{i-66Uv-K.js → DDJAluQE.js} +8 -8
  101. package/web/app/immutable/chunks/{BJ3gWX43.js → DEfsd-IM.js} +2 -2
  102. package/web/app/immutable/chunks/{CzEsFefN.js → DEiYC7jA.js} +1 -1
  103. package/web/app/immutable/chunks/{_iJcPN5_.js → DFF9Hi9i.js} +3 -3
  104. package/web/app/immutable/chunks/{CwzEnqS-.js → DFNcX1C0.js} +1 -1
  105. package/web/app/immutable/chunks/{HzX2dyQQ.js → DFYGtkP8.js} +1 -1
  106. package/web/app/immutable/chunks/{BdcgINI4.js → DLtObTR3.js} +1 -1
  107. package/web/app/immutable/chunks/{CGa_N4XN.js → DN_KP1eV.js} +1 -1
  108. package/web/app/immutable/chunks/{DDJJ0r24.js → DOT4zZfJ.js} +1 -1
  109. package/web/app/immutable/chunks/{D6d4xhu_.js → DPb0TtQV.js} +1 -1
  110. package/web/app/immutable/chunks/{CDfNySzn.js → DPn3lPe4.js} +6 -6
  111. package/web/app/immutable/chunks/{D3110at5.js → DVuhBCLV.js} +1 -1
  112. package/web/app/immutable/chunks/{fUWZZKuh.js → DW97_Hl4.js} +3 -3
  113. package/web/app/immutable/chunks/{iDIfJ3iV.js → DWAdterl.js} +1 -1
  114. package/web/app/immutable/chunks/{Bh3GosDM.js → DXQV6z-q.js} +1 -1
  115. package/web/app/immutable/chunks/{BffM0X9l.js → DXZSO_Pq.js} +1 -1
  116. package/web/app/immutable/chunks/{CD3p1vYG.js → DYQPit--.js} +1 -1
  117. package/web/app/immutable/chunks/{DXXjnBc_.js → DbaAc_-Q.js} +1 -1
  118. package/web/app/immutable/chunks/{BCKdYbDN.js → DjOZegwv.js} +2 -2
  119. package/web/app/immutable/chunks/{BrYKR-SG.js → DjVOU0sF.js} +2 -2
  120. package/web/app/immutable/chunks/{DB-v9jra.js → DjXnrfed.js} +1 -1
  121. package/web/app/immutable/chunks/{CTRz9TAp.js → DjYh06U7.js} +1 -1
  122. package/web/app/immutable/chunks/{Dd5fSdFI.js → DlrcSqxf.js} +1 -1
  123. package/web/app/immutable/chunks/{C0w-ozGP.js → Dm-oOl0S.js} +2 -2
  124. package/web/app/immutable/chunks/{CbvpJoHZ.js → DmVQU-Au.js} +1 -1
  125. package/web/app/immutable/chunks/{sLpI8Vr2.js → DuAq2d-z.js} +1 -1
  126. package/web/app/immutable/chunks/{DPVE_K_W.js → DvFk8gJm.js} +1 -1
  127. package/web/app/immutable/chunks/{ye2FbJ5D.js → F-reQTNB.js} +2 -2
  128. package/web/app/immutable/chunks/{BQKRBk9B.js → KEUh5hD5.js} +1 -1
  129. package/web/app/immutable/chunks/{BAL5XTLB.js → KGxZpRD9.js} +1 -1
  130. package/web/app/immutable/chunks/R437Q8zA.js +1 -0
  131. package/web/app/immutable/chunks/{BTpJekrR.js → RgHRltXX.js} +1 -1
  132. package/web/app/immutable/chunks/{jbEf1eyu.js → SLOyQ3jf.js} +1 -1
  133. package/web/app/immutable/chunks/{g5Oev8-0.js → U3T1b0A0.js} +6 -6
  134. package/web/app/immutable/chunks/{CubYUWh2.js → U_l2ralE.js} +6 -6
  135. package/web/app/immutable/chunks/{BrQ0wqQy.js → XQIQgSrx.js} +1 -1
  136. package/web/app/immutable/chunks/{CK1KGIDF.js → ZRRp1hhY.js} +2 -2
  137. package/web/app/immutable/chunks/{Cn2kUD4R.js → a3nqHBzJ.js} +1 -1
  138. package/web/app/immutable/chunks/{DjcKhQp4.js → bPNHL4zz.js} +1 -1
  139. package/web/app/immutable/chunks/{C7Y9ew7Z.js → bXhYFuj1.js} +1 -1
  140. package/web/app/immutable/chunks/{DYUOfSUt.js → bbt-Xoef.js} +7 -7
  141. package/web/app/immutable/chunks/{DGzlSz-8.js → bwHjDwdJ.js} +1 -1
  142. package/web/app/immutable/chunks/{ZWDSGAzi.js → cGac-dAI.js} +1 -1
  143. package/web/app/immutable/chunks/{BVV3fM7W.js → eq9tvf9b.js} +1 -1
  144. package/web/app/immutable/chunks/{9JxkPVF4.js → gddqvxSN.js} +1 -1
  145. package/web/app/immutable/chunks/{CNrMRWtA.js → iJ9AQT8V.js} +2 -2
  146. package/web/app/immutable/chunks/{CtoSWfC3.js → oaLXPqeM.js} +1 -1
  147. package/web/app/immutable/chunks/{BSQOiuf7.js → rTvMsiiT.js} +1 -1
  148. package/web/app/immutable/chunks/{CkuFMgpI.js → sr1p2voA.js} +1 -1
  149. package/web/app/immutable/chunks/{C_RGTtXj.js → t63qkPWO.js} +3 -3
  150. package/web/app/immutable/chunks/{BYx2Y144.js → tQrId4UU.js} +1 -1
  151. package/web/app/immutable/chunks/xCRj0TCH.js +176 -0
  152. package/web/app/immutable/chunks/{T_1hfFnC.js → xUNvQVfC.js} +2 -2
  153. package/web/app/immutable/chunks/y2YthUTc.js +1 -0
  154. package/web/app/immutable/chunks/{Dxv3G1Mb.js → yetPhaeQ.js} +1 -1
  155. package/web/app/immutable/entry/{app.0rhGzEA-.js → app.DAdpRY1S.js} +2 -2
  156. package/web/app/immutable/entry/start.C3GynpgH.js +1 -0
  157. package/web/app/immutable/nodes/{0.7iTMX8MP.js → 0.DQlRpqsp.js} +1 -1
  158. package/web/app/immutable/nodes/{1.BwagR4s9.js → 1.C5UPpIV8.js} +1 -1
  159. package/web/app/immutable/nodes/{10.DuZeAxuV.js → 10.q4ZZkPo0.js} +16 -16
  160. package/web/app/immutable/nodes/{11.D7qyNhVk.js → 11.Bzf2tPWN.js} +4 -4
  161. package/web/app/immutable/nodes/{15.De8ZpDZ1.js → 15.DLDKAp8B.js} +1 -1
  162. package/web/app/immutable/nodes/{19.Df09vK0B.js → 19.BYPJywV2.js} +2 -2
  163. package/web/app/immutable/nodes/{2.Dlt4LRYB.js → 2.ByiO--8z.js} +12 -12
  164. package/web/app/immutable/nodes/{20.tmuZaULh.js → 20.BztXJVwA.js} +1 -1
  165. package/web/app/immutable/nodes/{3.PjliZTHk.js → 3.lFs0YjGZ.js} +1 -1
  166. package/web/app/immutable/nodes/{4.OFyddHWG.js → 4.e6azWsLT.js} +1 -1
  167. package/web/app/immutable/nodes/{5.C7naJyKP.js → 5.Bq1EvpM9.js} +1 -1
  168. package/web/app/immutable/nodes/{6.k4q9sApB.js → 6.Bs908U_Q.js} +1 -1
  169. package/web/app/immutable/nodes/{7.C4plvmUt.js → 7.kb8QHtK2.js} +1 -1
  170. package/web/app/immutable/nodes/{8.tv1szX_U.js → 8.CQyVjnar.js} +1 -1
  171. package/web/app/immutable/nodes/{9.gOkUPoOT.js → 9.CfGq7FRR.js} +4 -4
  172. package/web/app/version.json +1 -1
  173. package/web/index.html +9 -9
  174. package/web/app/immutable/chunks/BEyxbMng.js +0 -18
  175. package/web/app/immutable/chunks/BPvTHi1E.js +0 -190
  176. package/web/app/immutable/chunks/ByIgBfs_.js +0 -1
  177. package/web/app/immutable/chunks/CeFme0q3.js +0 -1
  178. package/web/app/immutable/chunks/Ct4BiqZH.js +0 -2
  179. package/web/app/immutable/chunks/D9WrKwE8.js +0 -1
  180. package/web/app/immutable/chunks/DJ5x8cvc.js +0 -1
  181. package/web/app/immutable/chunks/DbaZdUr0.js +0 -1
  182. package/web/app/immutable/chunks/Pyx0yui4.js +0 -4
  183. package/web/app/immutable/chunks/m2KtwqZj.js +0 -3
  184. package/web/app/immutable/chunks/tm_HKw3E.js +0 -2
  185. package/web/app/immutable/chunks/yAiwGS7g.js +0 -3
  186. package/web/app/immutable/entry/start.piZarN4f.js +0 -1
@@ -1 +1 @@
1
- import{D as C}from"./C7Y9ew7Z.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./AeC4KVgG.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as W,b_ as R,W as E,bn as le,bV as q,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./CJxGDkBm.js";import{i as de}from"./k2awEenT.js";import{k as me}from"./HftJbvyF.js";import{s as D}from"./DrHJ7oPv.js";import{a as ue}from"./B1ScYY03.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,m=t[e];if(m===void 0)return{complete:!1};if(m==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(m==="{"||m==="["){const r=m==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:u})=>u)),g=n.filter(u=>u.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:u})=>u)),_=a.filter(u=>u.group===void 0||v.has(u.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),m=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,m,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),m=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!m.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,m))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),m=q(null),r=q(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(m,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(m,null):o&&k(m,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(m):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},u=Se(),A=G(u);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);W(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);me(w,()=>b(r),S=>{ue(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return W(u),R(()=>{D(u,"aria-busy",a()),D(u,"data-diagram-streaming",a())}),E(t,u),le(_)}export{_e as S,Oe as p};
1
+ import{D as C}from"./bXhYFuj1.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./AeC4KVgG.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as W,b_ as R,W as E,bn as le,bV as q,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./CJxGDkBm.js";import{i as de}from"./k2awEenT.js";import{k as me}from"./HftJbvyF.js";import{s as D}from"./DrHJ7oPv.js";import{a as ue}from"./BrNYPcY3.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,m=t[e];if(m===void 0)return{complete:!1};if(m==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(m==="{"||m==="["){const r=m==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:u})=>u)),g=n.filter(u=>u.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:u})=>u)),_=a.filter(u=>u.group===void 0||v.has(u.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),m=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,m,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),m=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!m.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,m))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),m=q(null),r=q(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(m,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(m,null):o&&k(m,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(m):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},u=Se(),A=G(u);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);W(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);me(w,()=>b(r),S=>{ue(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return W(u),R(()=>{D(u,"aria-busy",a()),D(u,"data-diagram-streaming",a())}),E(t,u),le(_)}export{_e as S,Oe as p};
@@ -1,4 +1,4 @@
1
- import{g as ie}from"./Cnly_zgc.js";import{s as re}from"./LOqiMc_U.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./B1ScYY03.js";import{c as Ee}from"./ChdfugfS.js";import{aR as _e}from"./C7Y9ew7Z.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],N=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(R){n.length=n.length-2*R,E.length=E.length-R,i.length=i.length-R}p(se,"popStack");function Rt(){var R;return R=T.pop()||k.lex()||Q,typeof R!="number"&&(R instanceof Array&&(T=R,R=T.pop()),R=f.symbols_[R]||R),R}p(Rt,"lex");for(var x,U,O,bt,J={},ft,Y,Nt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Rt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
1
+ import{g as ie}from"./CiTbcBZ_.js";import{s as re}from"./CHFWhULQ.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./BrNYPcY3.js";import{c as Ee}from"./B4M3z6rE.js";import{aR as _e}from"./bXhYFuj1.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],N=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(R){n.length=n.length-2*R,E.length=E.length-R,i.length=i.length-R}p(se,"popStack");function Rt(){var R;return R=T.pop()||k.lex()||Q,typeof R!="number"&&(R instanceof Array&&(T=R,R=T.pop()),R=f.symbols_[R]||R),R}p(Rt,"lex");for(var x,U,O,bt,J={},ft,Y,Nt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Rt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[x]||x)+"'":kt="Parse error on line "+(G+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(kt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:pt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+x);switch(O[0]){case 1:n.push(x),E.push(k.yytext),i.push(k.yylloc),n.push(O[1]),x=null,X=k.yyleng,d=k.yytext,G=k.yylineno,_t=k.yylloc;break;case 2:if(Y=this.productions_[O[1]][1],J.$=E[E.length-Y],J._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},ee&&(J._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),bt=this.performAction.apply(J,[d,X,G,W.yy,O[1],E,i].concat(Tt)),typeof bt<"u")return bt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),i=i.slice(0,-1*Y)),n.push(this.productions_[O[1]][0]),E.push(J.$),i.push(J._$),Nt=B[n[n.length-2]][n[n.length-1]],n.push(Nt);break;case 3:return!0}}return!0},"parse")},te=(function(){var V={EOF:1,parseError:p(function(f,n){if(this.yy.parser)this.yy.parser.parseError(f,n);else throw new Error(f)},"parseError"),setInput:p(function(o,f){return this.yy=f||this.yy||{},this._input=o,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:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var f=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var T=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),n.length-1&&(this.yylineno-=n.length-1);var E=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:n?(n.length===T.length?this.yylloc.first_column:0)+T[T.length-n.length].length-n[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),f=new Array(o.length+1).join("-");return o+this.upcomingInput()+`