@intent-hq/web 2.359.0 → 2.360.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Dwycp9kz.js → -UDhr0q5.js} +1 -1
  3. package/web/app/immutable/chunks/{DYd8nNWc.js → 1R56Qj8Y.js} +1 -1
  4. package/web/app/immutable/chunks/{DoZBqkYF.js → 32iKFv4-.js} +1 -1
  5. package/web/app/immutable/chunks/{Cl9D9QD8.js → 4f4S0sUh.js} +1 -1
  6. package/web/app/immutable/chunks/{j2jTU61E.js → 4kuiywlQ.js} +1 -1
  7. package/web/app/immutable/chunks/{0GiDyxSH.js → 5nGPNxrH.js} +1 -1
  8. package/web/app/immutable/chunks/{DrJhzfF1.js → 6HkyTXcq.js} +1 -1
  9. package/web/app/immutable/chunks/{B2VWtQXD.js → 8JflFTpI.js} +1 -1
  10. package/web/app/immutable/chunks/{BM8PGEcO.js → 9GiEkE-P.js} +1 -1
  11. package/web/app/immutable/chunks/{BjRCAf8X.js → 9y5vkRaS.js} +1 -1
  12. package/web/app/immutable/chunks/{C-KmDSVv.js → A91xcSiw.js} +1 -1
  13. package/web/app/immutable/chunks/{BR6nXvi2.js → B-wvdvfF.js} +1 -1
  14. package/web/app/immutable/chunks/{_KJ048jX.js → B2pIq9fg.js} +1 -1
  15. package/web/app/immutable/chunks/{D5XiG13m.js → B34oQCN1.js} +1 -1
  16. package/web/app/immutable/chunks/{8RYLPrR5.js → B3fJGWt9.js} +1 -1
  17. package/web/app/immutable/chunks/{C0HpRgD4.js → B4P8KmTp.js} +1 -1
  18. package/web/app/immutable/chunks/{C8BKrcE1.js → B4R_0jQo.js} +1 -1
  19. package/web/app/immutable/chunks/{vkhyqDoZ.js → B5IW1VlE.js} +1 -1
  20. package/web/app/immutable/chunks/{CzCt7LFa.js → B6OxFt0S.js} +1 -1
  21. package/web/app/immutable/chunks/{CS2E7BOf.js → B7KiQTDj.js} +2 -2
  22. package/web/app/immutable/chunks/{BDu_-2pO.js → B7hW9x49.js} +1 -1
  23. package/web/app/immutable/chunks/B8PCLBxN.js +1 -0
  24. package/web/app/immutable/chunks/{vKIItbxs.js → BBFx0QAL.js} +1 -1
  25. package/web/app/immutable/chunks/{CNjFQiNk.js → BBnLbsoD.js} +3 -3
  26. package/web/app/immutable/chunks/{CfdrPzuS.js → BCnWCh48.js} +3 -3
  27. package/web/app/immutable/chunks/{CeXrdQTj.js → BDrSOwDu.js} +1 -1
  28. package/web/app/immutable/chunks/{t1Reg1-l.js → BEJv0Pc9.js} +1 -1
  29. package/web/app/immutable/chunks/{GLifdN8w.js → BFPmZe29.js} +1 -1
  30. package/web/app/immutable/chunks/{Bff7OX_M.js → BFeZEby1.js} +1 -1
  31. package/web/app/immutable/chunks/{DNvbM_Jw.js → BFoEwS3N.js} +14 -14
  32. package/web/app/immutable/chunks/{DNhi2pnC.js → BGGHmOCQ.js} +1 -1
  33. package/web/app/immutable/chunks/{Bxt1GZdu.js → BHUOcy1d.js} +1 -1
  34. package/web/app/immutable/chunks/{BomWh1eD.js → BHlsW_o1.js} +1 -1
  35. package/web/app/immutable/chunks/{C-ZYRRid.js → BJtZTy_N.js} +1 -1
  36. package/web/app/immutable/chunks/{YNY2RV1c.js → BL0zmkuy.js} +1 -1
  37. package/web/app/immutable/chunks/{B_VapsyM.js → BLyqJ_tX.js} +1 -1
  38. package/web/app/immutable/chunks/{CVwloYeX.js → BMl2xNoL.js} +1 -1
  39. package/web/app/immutable/chunks/{-6O_hwvF.js → BNoTLiJq.js} +1 -1
  40. package/web/app/immutable/chunks/{B08-5Fsn.js → BOCQKOZ_.js} +1 -1
  41. package/web/app/immutable/chunks/{Bn81D_5T.js → BOWtLHmq.js} +1 -1
  42. package/web/app/immutable/chunks/{fXQtWVk2.js → BREs1pEK.js} +1 -1
  43. package/web/app/immutable/chunks/{Ci5YRbmm.js → BRT5I2VH.js} +1 -1
  44. package/web/app/immutable/chunks/{Clfqtwbt.js → BSWgqRaC.js} +1 -1
  45. package/web/app/immutable/chunks/{pYgZjzLi.js → BVSy1i1c.js} +1 -1
  46. package/web/app/immutable/chunks/{DB4pEg85.js → BVtazWzZ.js} +1 -1
  47. package/web/app/immutable/chunks/{CWnW1H_r.js → BWW2m17x.js} +1 -1
  48. package/web/app/immutable/chunks/{Blu36gU0.js → BX-wlbf1.js} +1 -1
  49. package/web/app/immutable/chunks/{DtAi5eiG.js → BX3Qm7r_.js} +1 -1
  50. package/web/app/immutable/chunks/{B7ID5lhM.js → BXVqjGzF.js} +1 -1
  51. package/web/app/immutable/chunks/{CfTOR9Xs.js → BY8Zvp_5.js} +1 -1
  52. package/web/app/immutable/chunks/{BghNeZnO.js → BYHyHMOf.js} +1 -1
  53. package/web/app/immutable/chunks/{DyM6oXRa.js → B_PtieXN.js} +1 -1
  54. package/web/app/immutable/chunks/{CmjC2IOn.js → BctdwcHy.js} +1 -1
  55. package/web/app/immutable/chunks/{lJ2hrkPe.js → Bd92b52s.js} +1 -1
  56. package/web/app/immutable/chunks/{CILpVksu.js → Bd_P-L3U.js} +2 -2
  57. package/web/app/immutable/chunks/{BDECMwd0.js → BdkhvtBn.js} +3 -3
  58. package/web/app/immutable/chunks/{XsqUZwYc.js → Be4cU-9x.js} +1 -1
  59. package/web/app/immutable/chunks/{CdQskv_M.js → BeCv1r50.js} +1 -1
  60. package/web/app/immutable/chunks/{C9k6syqr.js → BeJ9dLu2.js} +1 -1
  61. package/web/app/immutable/chunks/{C61zN4kC.js → BifMsF0g.js} +1 -1
  62. package/web/app/immutable/chunks/{jg75CCgI.js → BioI1i4g.js} +2 -2
  63. package/web/app/immutable/chunks/{utZHhb7g.js → BkAhwE4C.js} +1 -1
  64. package/web/app/immutable/chunks/{K9El2yPE.js → BkqaxMfg.js} +1 -1
  65. package/web/app/immutable/chunks/{DrjLBq4b.js → BkzHDegO.js} +2 -2
  66. package/web/app/immutable/chunks/{Dvz4y7lb.js → Bldr-p8H.js} +1 -1
  67. package/web/app/immutable/chunks/{BO1UvMYh.js → BmCHTIDH.js} +1 -1
  68. package/web/app/immutable/chunks/{D7Fu5qfY.js → BnE71Sxv.js} +1 -1
  69. package/web/app/immutable/chunks/{BKkJ5wmq.js → BoPOsJod.js} +1 -1
  70. package/web/app/immutable/chunks/{BEUX_9Gf.js → BpCBwtvA.js} +1 -1
  71. package/web/app/immutable/chunks/{Cqo5h0cq.js → BpE3z_V4.js} +1 -1
  72. package/web/app/immutable/chunks/{C3DfjxaV.js → BpozSsrs.js} +1 -1
  73. package/web/app/immutable/chunks/{Di9Z0x4r.js → BqCQZYkF.js} +1 -1
  74. package/web/app/immutable/chunks/{BNdkWvF7.js → BrbwH5yU.js} +1 -1
  75. package/web/app/immutable/chunks/{DvKZFqCo.js → Brujc5Qs.js} +1 -1
  76. package/web/app/immutable/chunks/{fPif4XLT.js → BsRAiU3M.js} +1 -1
  77. package/web/app/immutable/chunks/{BTTOyJaN.js → BsRUTEry.js} +1 -1
  78. package/web/app/immutable/chunks/{BUwnMspE.js → BsVek4ep.js} +1 -1
  79. package/web/app/immutable/chunks/{C0LUTbI7.js → Bsozz-8j.js} +1 -1
  80. package/web/app/immutable/chunks/{DJtAtlMe.js → Bst2sLeL.js} +1 -1
  81. package/web/app/immutable/chunks/{CFYbMOQh.js → BtWZ63FE.js} +1 -1
  82. package/web/app/immutable/chunks/{Da2l_kGL.js → BuHRLZKa.js} +1 -1
  83. package/web/app/immutable/chunks/{B5OEBl_F.js → Bvu_tazq.js} +1 -1
  84. package/web/app/immutable/chunks/{BibvkaKz.js → Bx2B90L7.js} +1 -1
  85. package/web/app/immutable/chunks/{EM0-8M4u.js → Bx903o6z.js} +1 -1
  86. package/web/app/immutable/chunks/{Chk2VmFC.js → BzFtQkIk.js} +1 -1
  87. package/web/app/immutable/chunks/{waNhHeBe.js → BzhmxD74.js} +1 -1
  88. package/web/app/immutable/chunks/{D1AHHNz_.js → C0GOL7QH.js} +1 -1
  89. package/web/app/immutable/chunks/{CjyYp1d6.js → C0s3H3cX.js} +1 -1
  90. package/web/app/immutable/chunks/{bDYVRgHv.js → C2Q_f-Ao.js} +1 -1
  91. package/web/app/immutable/chunks/{BN2Xx7qY.js → C2gV5GaR.js} +4 -4
  92. package/web/app/immutable/chunks/{CwN0y7xj.js → C54_KTzu.js} +4 -4
  93. package/web/app/immutable/chunks/{CMOu7J7m.js → C5hIBQ3i.js} +1 -1
  94. package/web/app/immutable/chunks/{BlfSgRgz.js → C6gTWqQd.js} +1 -1
  95. package/web/app/immutable/chunks/{C9g6kBvz.js → C7xMm-xs.js} +1 -1
  96. package/web/app/immutable/chunks/{CELWxQ_U.js → C8PDklve.js} +1 -1
  97. package/web/app/immutable/chunks/{CkjVC7MP.js → C9JwZT8z.js} +1 -1
  98. package/web/app/immutable/chunks/{B8TUirrt.js → C9m9xaQX.js} +1 -1
  99. package/web/app/immutable/chunks/{ZlUXDv9w.js → CB0BBmB3.js} +2 -2
  100. package/web/app/immutable/chunks/{BGfY3mAg.js → CB8Kg0_N.js} +1 -1
  101. package/web/app/immutable/chunks/{CQGkGXEd.js → CCW4xg3d.js} +1 -1
  102. package/web/app/immutable/chunks/{Ba7JIG6D.js → CCq7LQoR.js} +1 -1
  103. package/web/app/immutable/chunks/{o4jWsDx5.js → CDAGrCMS.js} +1 -1
  104. package/web/app/immutable/chunks/{CvCQt2D9.js → CDCwuoNC.js} +1 -1
  105. package/web/app/immutable/chunks/{BJrEWx4G.js → CEdXFb7B.js} +1 -1
  106. package/web/app/immutable/chunks/{CQeKyPfB.js → CFPO-Gdn.js} +1 -1
  107. package/web/app/immutable/chunks/{D3dCNwq6.js → CGpu-8LN.js} +4 -4
  108. package/web/app/immutable/chunks/{BiD0cL9w.js → CIBrW7Ku.js} +1 -1
  109. package/web/app/immutable/chunks/{wSDPkPFW.js → CIQ39w4Y.js} +1 -1
  110. package/web/app/immutable/chunks/{o7jQDkBd.js → CJD0yCmp.js} +1 -1
  111. package/web/app/immutable/chunks/{_9zJA_sE.js → CJftmRaI.js} +2 -2
  112. package/web/app/immutable/chunks/{CjCKLQJ9.js → CJmMm5OV.js} +3 -3
  113. package/web/app/immutable/chunks/{Cy1jfWDK.js → CJx5kB-H.js} +1 -1
  114. package/web/app/immutable/chunks/{wV3FJ8_B.js → CK9vN0Vx.js} +1 -1
  115. package/web/app/immutable/chunks/{DaBtQ4Rq.js → CKZSqILX.js} +1 -1
  116. package/web/app/immutable/chunks/{BhHMFSp2.js → CLN26_YU.js} +1 -1
  117. package/web/app/immutable/chunks/{yfZcC2N6.js → CMFCeNSK.js} +1 -1
  118. package/web/app/immutable/chunks/{tkvqiJWu.js → CMPYMsb3.js} +1 -1
  119. package/web/app/immutable/chunks/{Dqvqq37X.js → CMUpwbv3.js} +1 -1
  120. package/web/app/immutable/chunks/{DB3uT95Q.js → CMlZAr5p.js} +1 -1
  121. package/web/app/immutable/chunks/{B_41a3se.js → CNfKBI6L.js} +1 -1
  122. package/web/app/immutable/chunks/{BKY4Q0TT.js → CO3XLT45.js} +1 -1
  123. package/web/app/immutable/chunks/{BNSN6XCP.js → COnJo1Ps.js} +1 -1
  124. package/web/app/immutable/chunks/COqplkxR.js +1 -0
  125. package/web/app/immutable/chunks/{D_eImbVR.js → CS70Dx2B.js} +1 -1
  126. package/web/app/immutable/chunks/{DM_khyu7.js → CSKp9zzd.js} +1 -1
  127. package/web/app/immutable/chunks/{RqQMOZAT.js → CU4KWWbD.js} +1 -1
  128. package/web/app/immutable/chunks/{Dwp84kQu.js → CVmPa1mG.js} +1 -1
  129. package/web/app/immutable/chunks/{CabY5Ajz.js → CWwVTuEX.js} +1 -1
  130. package/web/app/immutable/chunks/{D_LNh-Ja.js → CWz2XNBO.js} +1 -1
  131. package/web/app/immutable/chunks/{Bzcuhxw_.js → CXFlWWO4.js} +1 -1
  132. package/web/app/immutable/chunks/{BFfFhR1D.js → CZ-QhNUI.js} +1 -1
  133. package/web/app/immutable/chunks/{G3F9ni6B.js → C_9mGNUw.js} +1 -1
  134. package/web/app/immutable/chunks/{ZY6P3elZ.js → Ca98gcvs.js} +1 -1
  135. package/web/app/immutable/chunks/{CEM8KTTx.js → Cak06Ipv.js} +1 -1
  136. package/web/app/immutable/chunks/{BtBvnlNb.js → Cb4SpXNJ.js} +1 -1
  137. package/web/app/immutable/chunks/{cw-15yhi.js → Cd1q1wWY.js} +1 -1
  138. package/web/app/immutable/chunks/{Dh18lLbG.js → CdEPpK5c.js} +1 -1
  139. package/web/app/immutable/chunks/{DR4IFZXy.js → CdIWJpFL.js} +1 -1
  140. package/web/app/immutable/chunks/{CMxGr_ey.js → CeXNhl9e.js} +1 -1
  141. package/web/app/immutable/chunks/{Dp6TtOQM.js → CgGU0gTh.js} +1 -1
  142. package/web/app/immutable/chunks/{MlkHiaSF.js → ChjOKBnG.js} +1 -1
  143. package/web/app/immutable/chunks/{C_ZgD3DB.js → Cho0-9KA.js} +1 -1
  144. package/web/app/immutable/chunks/{DfUAlDfK.js → Ci0DCXei.js} +1 -1
  145. package/web/app/immutable/chunks/{CwnD43Xy.js → CiPzAmKo.js} +1 -1
  146. package/web/app/immutable/chunks/{g7hC9VeO.js → CjPOxOh3.js} +1 -1
  147. package/web/app/immutable/chunks/{D-sEMjzy.js → CkWz1mLV.js} +1 -1
  148. package/web/app/immutable/chunks/{B0RvqECX.js → CkY0UrZh.js} +1 -1
  149. package/web/app/immutable/chunks/{CIOI2vcP.js → CkdaiT2c.js} +1 -1
  150. package/web/app/immutable/chunks/{FdrUgkC6.js → CktoO_4b.js} +1 -1
  151. package/web/app/immutable/chunks/{Dl4PtwLv.js → ClPEPp33.js} +1 -1
  152. package/web/app/immutable/chunks/{CQ2L5Zaq.js → CmQUy1iX.js} +1 -1
  153. package/web/app/immutable/chunks/Cn0dUMcV.js +1 -0
  154. package/web/app/immutable/chunks/{CrTnLjrr.js → Con90c3P.js} +1 -1
  155. package/web/app/immutable/chunks/{BWvY9nb-.js → CpYOvNz6.js} +1 -1
  156. package/web/app/immutable/chunks/{CZhfnI2G.js → Crm_Oabm.js} +1 -1
  157. package/web/app/immutable/chunks/{Ce7GGwjY.js → CsZJMlJ8.js} +1 -1
  158. package/web/app/immutable/chunks/{BZWFeX8A.js → CsxWziDD.js} +1 -1
  159. package/web/app/immutable/chunks/{DB5XpEWp.js → CukxP3bH.js} +1 -1
  160. package/web/app/immutable/chunks/{CIe_IdcQ.js → CurjThIN.js} +1 -1
  161. package/web/app/immutable/chunks/{C5SRkSUi.js → CwhU2GJj.js} +1 -1
  162. package/web/app/immutable/chunks/{DWHgu0is.js → CycTTYyM.js} +1 -1
  163. package/web/app/immutable/chunks/{DHAp2Kc0.js → CzX6D7dd.js} +1 -1
  164. package/web/app/immutable/chunks/{dvtB8PCn.js → CzaiY1Hd.js} +1 -1
  165. package/web/app/immutable/chunks/{6myNhyGM.js → CzxOAjWm.js} +1 -1
  166. package/web/app/immutable/chunks/{klnEQWHo.js → D0TCMhf8.js} +1 -1
  167. package/web/app/immutable/chunks/{C7eqIAuZ.js → D0bF1ewx.js} +1 -1
  168. package/web/app/immutable/chunks/{5wkpHjhE.js → D0j6Pw9H.js} +1 -1
  169. package/web/app/immutable/chunks/{Dla5GTQo.js → D2BBYrzr.js} +1 -1
  170. package/web/app/immutable/chunks/{CGVGh8Xh.js → D3nmUaz-.js} +1 -1
  171. package/web/app/immutable/chunks/{CvLyzc7I.js → D3rExJpy.js} +2 -2
  172. package/web/app/immutable/chunks/{lzlrZOOx.js → D6WUVWA7.js} +3 -3
  173. package/web/app/immutable/chunks/{BsfZKUyJ.js → D6ag701e.js} +1 -1
  174. package/web/app/immutable/chunks/{D5TVVdCO.js → D77SC-WI.js} +1 -1
  175. package/web/app/immutable/chunks/{B3gMfjd-.js → D79Xzbwc.js} +1 -1
  176. package/web/app/immutable/chunks/{CzOKs-9h.js → D7XN10mW.js} +1 -1
  177. package/web/app/immutable/chunks/{DhJiUMGh.js → D7saN_TE.js} +1 -1
  178. package/web/app/immutable/chunks/{DS1-LIJo.js → D88N7fik.js} +1 -1
  179. package/web/app/immutable/chunks/{D7S6-tcN.js → D9e6EkDi.js} +1 -1
  180. package/web/app/immutable/chunks/{DY_VgpBE.js → DA1JRBSr.js} +1 -1
  181. package/web/app/immutable/chunks/{CUgyGwcZ.js → DB1FUARM.js} +1 -1
  182. package/web/app/immutable/chunks/{XDFbJjVz.js → DB2nf3HK.js} +1 -1
  183. package/web/app/immutable/chunks/{D2C9COn-.js → DB5oJv4b.js} +2 -2
  184. package/web/app/immutable/chunks/{BQqk8D2k.js → DBeaWkI6.js} +1 -1
  185. package/web/app/immutable/chunks/{DkXhJ1BL.js → DCAdK-TK.js} +1 -1
  186. package/web/app/immutable/chunks/{YDiGw5NX.js → DDEi4ohI.js} +3 -3
  187. package/web/app/immutable/chunks/{BxzohA4k.js → DEFiLw0G.js} +1 -1
  188. package/web/app/immutable/chunks/{CW-B1B_2.js → DFA3fNuM.js} +1 -1
  189. package/web/app/immutable/chunks/{hpioGaKy.js → DFngs4Y1.js} +2 -2
  190. package/web/app/immutable/chunks/{10-QywS9.js → DG1-cBAz.js} +1 -1
  191. package/web/app/immutable/chunks/{Di3YCBTy.js → DKvrlewQ.js} +2 -2
  192. package/web/app/immutable/chunks/{CJGJtaIh.js → DLx-21ka.js} +1 -1
  193. package/web/app/immutable/chunks/{DVqlnAf4.js → DMDLNgZw.js} +1 -1
  194. package/web/app/immutable/chunks/{CZnzjQ8w.js → DNSvJh5E.js} +1 -1
  195. package/web/app/immutable/chunks/{DMicUhyp.js → DODIyxsG.js} +1 -1
  196. package/web/app/immutable/chunks/{BAB5cGdR.js → DP1Kxs4G.js} +1 -1
  197. package/web/app/immutable/chunks/{C-6RTvqK.js → DRfuH7ia.js} +1 -1
  198. package/web/app/immutable/chunks/{DJXbxolz.js → DSGWdxMc.js} +1 -1
  199. package/web/app/immutable/chunks/{BveCGFpc.js → DSgbJdfR.js} +1 -1
  200. package/web/app/immutable/chunks/{BosvHmXn.js → DT7EyIEo.js} +1 -1
  201. package/web/app/immutable/chunks/{C9c1XoGB.js → DTY9Anmi.js} +3 -3
  202. package/web/app/immutable/chunks/{ADgiB_JD.js → DTzZbirR.js} +1 -1
  203. package/web/app/immutable/chunks/{BwCXlNwV.js → DUUOaZUX.js} +1 -1
  204. package/web/app/immutable/chunks/{R_gbTJLb.js → DUyvq6BR.js} +1 -1
  205. package/web/app/immutable/chunks/{CdhsB6Tk.js → DYhAW_nh.js} +1 -1
  206. package/web/app/immutable/chunks/{CZuwX70n.js → DYv-ImbG.js} +1 -1
  207. package/web/app/immutable/chunks/{i6o2muyh.js → D_tjJvUn.js} +1 -1
  208. package/web/app/immutable/chunks/{DCDVRPan.js → Db1vsTVc.js} +1 -1
  209. package/web/app/immutable/chunks/{CLgO49-n.js → Dcity0ZX.js} +1 -1
  210. package/web/app/immutable/chunks/{BJKM0aco.js → DcsVySxU.js} +2 -2
  211. package/web/app/immutable/chunks/{DreRsNdo.js → DdAEgsrh.js} +2 -2
  212. package/web/app/immutable/chunks/{CbwoPYB3.js → DfCpph1F.js} +1 -1
  213. package/web/app/immutable/chunks/{DE2DQy0T.js → DfQtmVKc.js} +1 -1
  214. package/web/app/immutable/chunks/{By3Fe9OQ.js → DhbB133w.js} +1 -1
  215. package/web/app/immutable/chunks/{Uz0kppPo.js → DjkW13rw.js} +1 -1
  216. package/web/app/immutable/chunks/{g1QznGhp.js → DkGGr_35.js} +1 -1
  217. package/web/app/immutable/chunks/{C5Pv37ZW.js → DlVBS_bY.js} +1 -1
  218. package/web/app/immutable/chunks/{bqipvca_.js → DmOmVRF-.js} +1 -1
  219. package/web/app/immutable/chunks/{B_3LwjEE.js → DmSe6pPh.js} +1 -1
  220. package/web/app/immutable/chunks/{BFZDKSps.js → DmfXn75c.js} +1 -1
  221. package/web/app/immutable/chunks/{uDkSpspe.js → Dn7IHtB4.js} +1 -1
  222. package/web/app/immutable/chunks/{CmxpZd0C.js → DnR6iKmC.js} +1 -1
  223. package/web/app/immutable/chunks/{DsLK0lhE.js → Dqbu3Xgt.js} +1 -1
  224. package/web/app/immutable/chunks/{BnFk2thR.js → DqvZHD0T.js} +1 -1
  225. package/web/app/immutable/chunks/{BqUNG33_.js → DrPmlbuk.js} +1 -1
  226. package/web/app/immutable/chunks/{BPDm13z6.js → Drhk0kLj.js} +1 -1
  227. package/web/app/immutable/chunks/{BpJkEHyp.js → DsB0QHTZ.js} +1 -1
  228. package/web/app/immutable/chunks/{BgwmEIlo.js → DsDqvgC9.js} +2 -2
  229. package/web/app/immutable/chunks/{CUF6AFLj.js → Dt2PgbAx.js} +1 -1
  230. package/web/app/immutable/chunks/{XfZ7vUz0.js → DtrdP8PT.js} +1 -1
  231. package/web/app/immutable/chunks/{BduQZGB-.js → Dw86rOY4.js} +1 -1
  232. package/web/app/immutable/chunks/{CHJwDFbB.js → Dwc9p0hU.js} +1 -1
  233. package/web/app/immutable/chunks/{BH8Pvo2Y.js → DxFe9Sj2.js} +1 -1
  234. package/web/app/immutable/chunks/{BjE588G3.js → DzCNJq2j.js} +1 -1
  235. package/web/app/immutable/chunks/{CHwCT_tY.js → EBip0AWO.js} +1 -1
  236. package/web/app/immutable/chunks/{CyqRVYAu.js → ELAGDjsa.js} +6 -6
  237. package/web/app/immutable/chunks/{Dv95zz7s.js → F5q6OMDX.js} +1 -1
  238. package/web/app/immutable/chunks/{C-3h7Yfn.js → FNy8h0Ka.js} +1 -1
  239. package/web/app/immutable/chunks/{Bh3EI3zr.js → HjEy7vfo.js} +1 -1
  240. package/web/app/immutable/chunks/{CWYIb5h_.js → HxrItRGs.js} +1 -1
  241. package/web/app/immutable/chunks/{COizPexY.js → LQm_WUG-.js} +1 -1
  242. package/web/app/immutable/chunks/{CRQ7p08H.js → MNJDbe1l.js} +1 -1
  243. package/web/app/immutable/chunks/{ryJoABjA.js → MQB3-RUl.js} +1 -1
  244. package/web/app/immutable/chunks/{BRhTL40m.js → NtBDgvZ2.js} +1 -1
  245. package/web/app/immutable/chunks/NtxbXOxK.js +1 -0
  246. package/web/app/immutable/chunks/{CDthvhNa.js → O077287M.js} +1 -1
  247. package/web/app/immutable/chunks/{BldMt0qe.js → OJdRtUTM.js} +1 -1
  248. package/web/app/immutable/chunks/{BNxYYK1k.js → OfJYxV7d.js} +1 -1
  249. package/web/app/immutable/chunks/{YXtDIgke.js → OvgkhrA7.js} +1 -1
  250. package/web/app/immutable/chunks/{yFbmvZcp.js → P3QocI-G.js} +1 -1
  251. package/web/app/immutable/chunks/{BddjjpyI.js → S6AtfZPI.js} +1 -1
  252. package/web/app/immutable/chunks/{CUqDFxUi.js → SM6VUydw.js} +1 -1
  253. package/web/app/immutable/chunks/{Cq94dOBc.js → SXQhdPre.js} +1 -1
  254. package/web/app/immutable/chunks/{ByA2IWok.js → S_DaaRo9.js} +3 -3
  255. package/web/app/immutable/chunks/{q9ZyJAa1.js → SmHZXgwN.js} +1 -1
  256. package/web/app/immutable/chunks/{Bm2P91T0.js → UunyqK3Z.js} +1 -1
  257. package/web/app/immutable/chunks/{DiJNvptO.js → W6sF2Cur.js} +1 -1
  258. package/web/app/immutable/chunks/{wM59GHbh.js → WoXHXc-b.js} +1 -1
  259. package/web/app/immutable/chunks/{CLp5K2Cv.js → XFXlU9Ox.js} +1 -1
  260. package/web/app/immutable/chunks/{MqeYlZEc.js → Z14_HVFv.js} +1 -1
  261. package/web/app/immutable/chunks/{DRzVKoEr.js → ZdVOG1YL.js} +1 -1
  262. package/web/app/immutable/chunks/{DryREkHP.js → ZyHSqKKz.js} +1 -1
  263. package/web/app/immutable/chunks/{Cb35PO19.js → a-uzFDRe.js} +1 -1
  264. package/web/app/immutable/chunks/{BiVxPdNt.js → b_O4pZtc.js} +1 -1
  265. package/web/app/immutable/chunks/{WVUqAkKa.js → cNKe5jVM.js} +1 -1
  266. package/web/app/immutable/chunks/{BtE8ng9B.js → cPv_DFdy.js} +1 -1
  267. package/web/app/immutable/chunks/{DUpzlKAB.js → dRfjsn2g.js} +1 -1
  268. package/web/app/immutable/chunks/{B-Q3uU6_.js → frxcf8rJ.js} +1 -1
  269. package/web/app/immutable/chunks/{DgrkG05k.js → guxjwWAr.js} +1 -1
  270. package/web/app/immutable/chunks/{C2sr3EWe.js → h3NGlSjH.js} +1 -1
  271. package/web/app/immutable/chunks/{FQFJV7C0.js → h9OLCnwu.js} +1 -1
  272. package/web/app/immutable/chunks/{CCAjvk0X.js → hCt1V8jO.js} +3 -3
  273. package/web/app/immutable/chunks/{DqJHcisc.js → hLkstuSa.js} +1 -1
  274. package/web/app/immutable/chunks/{DCtyzj03.js → jSlXIbXa.js} +1 -1
  275. package/web/app/immutable/chunks/{DiW8XnY5.js → kBqzcezI.js} +1 -1
  276. package/web/app/immutable/chunks/{CMziHXPQ.js → kNipFpJ2.js} +1 -1
  277. package/web/app/immutable/chunks/{Fd-rEJnu.js → liwjXrkc.js} +1 -1
  278. package/web/app/immutable/chunks/{Dk51AkwK.js → oB7eN-Qf.js} +1 -1
  279. package/web/app/immutable/chunks/{Bn37CRsE.js → oIy1WGn7.js} +1 -1
  280. package/web/app/immutable/chunks/{BrJIlZXG.js → plaTXQg3.js} +1 -1
  281. package/web/app/immutable/chunks/{DrzhapyO.js → puisNM3r.js} +1 -1
  282. package/web/app/immutable/chunks/{BpMUTlD3.js → qW1_mixC.js} +1 -1
  283. package/web/app/immutable/chunks/{Bl7A2mT8.js → qzRpsGdv.js} +1 -1
  284. package/web/app/immutable/chunks/{BugaF9Gz.js → roVeGd8G.js} +1 -1
  285. package/web/app/immutable/chunks/{Bw4cxMjz.js → tU-erPwy.js} +1 -1
  286. package/web/app/immutable/chunks/{D5HWvTpD.js → tguQ0uKY.js} +1 -1
  287. package/web/app/immutable/chunks/{BTLBASJX.js → wZqQTU3s.js} +1 -1
  288. package/web/app/immutable/chunks/{D94cTefs.js → yerK1wE4.js} +3 -3
  289. package/web/app/immutable/chunks/{BL7BGzQb.js → z-LfKEyT.js} +1 -1
  290. package/web/app/immutable/chunks/{CNgTnn6E.js → zKe1EQER.js} +1 -1
  291. package/web/app/immutable/chunks/{CLGFCqMt.js → zsS-jFOF.js} +1 -1
  292. package/web/app/immutable/entry/{app.B_j9AtYN.js → app.xn8bouEy.js} +3 -3
  293. package/web/app/immutable/entry/start.8SWo5eaL.js +1 -0
  294. package/web/app/immutable/nodes/{0.DI5KXj3q.js → 0.Czkxq6nC.js} +1 -1
  295. package/web/app/immutable/nodes/{1.BvUSq5GT.js → 1.CO4mj6IJ.js} +1 -1
  296. package/web/app/immutable/nodes/{10.ybliADtC.js → 10.BComrAcc.js} +5 -5
  297. package/web/app/immutable/nodes/{11.CWdfbS9L.js → 11.CNzRS9fn.js} +1 -1
  298. package/web/app/immutable/nodes/{12.DSU3TNHa.js → 12.C2n7WplF.js} +1 -1
  299. package/web/app/immutable/nodes/{13.B395oPY5.js → 13.D60oIlHW.js} +1 -1
  300. package/web/app/immutable/nodes/{14.DPnho-i5.js → 14.RHTyY8ed.js} +3 -3
  301. package/web/app/immutable/nodes/{15.IPdMXrpa.js → 15.DXCA05Q9.js} +1 -1
  302. package/web/app/immutable/nodes/{16.Cw2bhRT9.js → 16.BHGcOoK4.js} +1 -1
  303. package/web/app/immutable/nodes/{17.B-8GZWIV.js → 17.DMb17SuB.js} +1 -1
  304. package/web/app/immutable/nodes/{18.B_8rjYQB.js → 18.DZXncr1W.js} +1 -1
  305. package/web/app/immutable/nodes/{19.xCKjx5de.js → 19.BtsQ8Lfg.js} +2 -2
  306. package/web/app/immutable/nodes/{2.4eqTbGC7.js → 2.9HsLNQbg.js} +4 -4
  307. package/web/app/immutable/nodes/{20.DOuPBU4q.js → 20.JY9Qq_nG.js} +1 -1
  308. package/web/app/immutable/nodes/{3.gnGgxc2q.js → 3.BlmNm3mg.js} +1 -1
  309. package/web/app/immutable/nodes/{4.DhWSCpDA.js → 4.Cpy2Xerc.js} +1 -1
  310. package/web/app/immutable/nodes/{5.D-CLZiU3.js → 5.DeXJEhFX.js} +1 -1
  311. package/web/app/immutable/nodes/{6.D8GgaYC7.js → 6.Bpl-_47P.js} +1 -1
  312. package/web/app/immutable/nodes/{7.CYuvhsU8.js → 7.B1PEqe7o.js} +1 -1
  313. package/web/app/immutable/nodes/{8.Cfa_YzNb.js → 8.DEBn-U8f.js} +1 -1
  314. package/web/app/immutable/nodes/{9.Cjn8-jSI.js → 9.DtFfiQ9-.js} +4 -4
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +45 -45
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/ClwCcrCE.js +0 -1
  319. package/web/app/immutable/chunks/D4MngzTk.js +0 -1
  320. package/web/app/immutable/chunks/DkN1HOvv.js +0 -1
  321. package/web/app/immutable/chunks/cRhti_97.js +0 -1
  322. package/web/app/immutable/entry/start.D5KmTXnC.js +0 -1
@@ -1 +1 @@
1
- import{t as it,bo as f,bw as lt,b as dt,bm as t,br as _t,bs as Se,bq as Lt}from"./D4MngzTk.js";import{bs as ct,ay as ye,be as E,b$ as I,b_ as o,bO as s,W as a,bS as i,bl as g,bn as pt,aA as b,a7 as wt,aD as e,c9 as $,aB as m,a5 as C,bA as P,bf as ft,bo as Ut,bV as et,br as zt,ca as bt,bH as he,bk as Dt}from"./CJxGDkBm.js";import{g as Gt,i as Ot,I as gt}from"./DCtyzj03.js";import{c as Tt}from"./o4jWsDx5.js";import{s as ot,f as Ft,c as Rt}from"./DrzhapyO.js";import{f as R}from"./DJtAtlMe.js";import"./BJKM0aco.js";import"./DfUAlDfK.js";import{b as Bt}from"./DsLK0lhE.js";import"./COizPexY.js";import"./CELWxQ_U.js";import{b as Ht}from"./BO1UvMYh.js";import{i as K}from"./BqUNG33_.js";import{b as Nt}from"./5vm8eILD.js";import{F as Mt,ax as qt}from"./BddjjpyI.js";import"./C3DfjxaV.js";import{F as mt,G as Wt}from"./C5SRkSUi.js";import"./C-ZYRRid.js";/* empty css */import{C as Jt}from"./pYgZjzLi.js";import{L as xt}from"./wM59GHbh.js";import{I as tt}from"./D5XiG13m.js";import"./Cb35PO19.js";import"./DM_khyu7.js";import{h as Yt}from"./DrjLBq4b.js";import{IS as ke,fp as ht,F as Vt,ef as kt,qO as jt,ud as Qt,IJ as Xt,om as Zt,hD as er}from"./BwCXlNwV.js";import{aB as yt,aC as $t,aD as tr,aw as rr,ax as Ct,ay as ar,az as sr,aH as nr}from"./C9g6kBvz.js";var or=m('<!> <p class="type-body"> </p>',1);function ir(ie,c){if(new.target)return it({component:ir,...ie});ct(c,!0);let w=f(c,"open",15,!1),U=f(c,"static",7,!1),j=f(c,"title",7),h=f(c,"message",7),T=f(c,"buttons",7),x=f(c,"cancelIndex",7,0),le=f(c,"onSelect",7);function Q(d){w(!1),le()?.(d)}var ge={get open(){return w()},set open(d=!1){w(d),b()},get static(){return U()},set static(d=!1){U(d),b()},get title(){return j()},set title(d){j(d),b()},get message(){return h()},set message(d){h(d),b()},get buttons(){return T()},set buttons(d){T(d),b()},get cancelIndex(){return x()},set cancelIndex(d=0){x(d),b()},get onSelect(){return le()},set onSelect(d){le(d),b()},$set:lt,$on:(d,X)=>dt(c,d,X)};return Ht(ie,{get static(){return U()},role:"alertdialog",get title(){return j()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>Q(T().length-1),onCancel:()=>Q(x()),get open(){return w()},set open(X){w(X)},footer:X=>{var A=wt(),H=ye(A);Gt(H,17,T,Ot,(de,ce,ae)=>{{let me=$(()=>ae===x()?"ghost":ae===T().length-1?"primary":"outline");R(de,{get variant(){return e(me)},onclick:()=>Q(ae),children:(Ke,ze)=>{E();var Ae=I();o(()=>s(Ae,e(ce))),a(Ke,Ae)},$$slots:{default:!0}})}}),a(X,A)},children:(X,A)=>{var H=or(),de=ye(H);Tt(de,()=>Bt,(me,Ke)=>{Ke(me,{class:"sr-only",children:(ze,Ae)=>{E();var De=I();o(()=>s(De,h())),a(ze,De)},$$slots:{default:!0}})});var ce=i(de,2),ae=g(ce,!0);o(()=>s(ae,h())),a(X,H)},$$slots:{footer:!0,default:!0}}),pt(ge)}var lr=m('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Pt=m("<li> </li> <li> </li>",1),dr=m('<li> <span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"></code> <!></span></li> <li> </li>',1),St=m("<li> </li>"),cr=m('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><!> <!></ol> <!></section>'),Kt=m('<div class="flex items-center gap-2"><!> <!></div>'),pr=m('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),ur=m('<span class="type-body text-muted-foreground"> </span> <!>',1),vr=m('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),_r=m('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),fr=m('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&amp;::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),br=m('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function gr(ie,c){if(new.target)return it({component:gr,...ie});ct(c,!0);let w=f(c,"provider",7),U=f(c,"kind",7),j=f(c,"mode",7),h=f(c,"secret",15,""),T=f(c,"secretSaved",7,!1),x=f(c,"replacing",15,!1),le=f(c,"secretError",7),Q=f(c,"baseUrl",15,""),ge=f(c,"baseUrlSaved",7,!1),d=f(c,"baseUrlAction",15,"keep"),X=f(c,"customEndpointOpen",15,!1),A=f(c,"disabled",7,!1),H=f(c,"secretDisabled",23,A),de=f(c,"keyCheck",7,!0),ce=f(c,"pasteStep",7,!0),ae=f(c,"customEndpoint",7,!0);const me="https://console.anthropic.com/settings/keys",Ke="https://developers.openai.com/codex/enterprise/access-tokens",ze="https://platform.openai.com/api-keys",Ae="claude setup-token",De="https://",Re=$(()=>w()==="claude"&&U()==="apiKey"),Me=$(()=>w()==="codex"&&U()==="apiKey"),rt=$(()=>de()?U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeStep3_label():w()==="claude"?t.settings_providerProfileKinds_tokenClaudeStep3_label():t.settings_providerProfileKinds_tokenCodexStep2_label():t.settings_providerProfileKinds_pasteNoCheck_label()),at=$(()=>j()==="add"||!T()||x()),Ee=$(()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKey_label():t.settings_providerProfileKinds_token_label()),Ge=$(()=>{if(e(Re))return{href:me,label:t.settings_providerProfileKinds_anthropicConsole_link()};if(e(Me))return{href:ze,label:t.settings_providerProfileKinds_openAiApiKeys_link()};if(w()==="codex")return{href:Ke,label:t.settings_providerProfileKinds_openAiAccessTokens_link()}});function xe(){x(!1),h("")}var Oe={get provider(){return w()},set provider(r){w(r),b()},get kind(){return U()},set kind(r){U(r),b()},get mode(){return j()},set mode(r){j(r),b()},get secret(){return h()},set secret(r=""){h(r),b()},get secretSaved(){return T()},set secretSaved(r=!1){T(r),b()},get replacing(){return x()},set replacing(r=!1){x(r),b()},get secretError(){return le()},set secretError(r){le(r),b()},get baseUrl(){return Q()},set baseUrl(r=""){Q(r),b()},get baseUrlSaved(){return ge()},set baseUrlSaved(r=!1){ge(r),b()},get baseUrlAction(){return d()},set baseUrlAction(r="keep"){d(r),b()},get customEndpointOpen(){return X()},set customEndpointOpen(r=!1){X(r),b()},get disabled(){return A()},set disabled(r=!1){A(r),b()},get secretDisabled(){return H()},set secretDisabled(r=A){H(r),b()},get keyCheck(){return de()},set keyCheck(r=!0){de(r),b()},get pasteStep(){return ce()},set pasteStep(r=!0){ce(r),b()},get customEndpoint(){return ae()},set customEndpoint(r=!0){ae(r),b()},$set:lt,$on:(r,L)=>dt(c,r,L)},k=br(),Be=C(k);{var He=r=>{var L=lr(),W=g(L,!0);o(se=>s(W,se),[()=>t.settings_providerProfileKinds_tokenCodexEligibility_description()]),a(r,L)};K(Be,r=>{w()==="codex"&&U()==="token"&&r(He)})}var qe=i(Be,2);{var We=r=>{var L=cr(),W=C(L),se=g(W,!0),J=i(W,2),N=C(J);{var ve=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((D,ee)=>{s(F,D),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyClaudeStep1_label(),()=>t.settings_providerProfileKinds_apiKeyClaudeStep2_label()]),a(u,S)},ne=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((D,ee)=>{s(F,D),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyCodexStep1_label(),()=>t.settings_providerProfileKinds_apiKeyCodexStep2_label()]),a(u,S)},M=u=>{var S=dr(),y=ye(S),F=C(y),z=i(F),q=C(z);q.textContent="claude setup-token";var D=i(q,2);Jt(D,{text:Ae,size:"sm"}),P(z),P(y);var ee=i(y,2),p=g(ee,!0);o((n,l)=>{s(F,`${n??""} `),s(p,l)},[()=>t.settings_providerProfileKinds_tokenClaudeStep1_label(),()=>t.settings_providerProfileKinds_tokenClaudeStep2_label()]),a(u,S)},$e=u=>{var S=St(),y=g(S,!0);o(F=>s(y,F),[()=>t.settings_providerProfileKinds_tokenCodexStep1_label()]),a(u,S)};K(N,u=>{e(Re)?u(ve):e(Me)?u(ne,1):w()==="claude"?u(M,2):u($e,-1)})}var _e=i(N,2);{var B=u=>{var S=St(),y=g(S,!0);o(()=>s(y,e(rt))),a(u,S)};K(_e,u=>{ce()&&u(B)})}P(J);var Z=i(J,2);{var Ce=u=>{R(u,{variant:"link",size:"sm",get href(){return e(Ge).href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(S,y)=>{E();var F=I();o(()=>s(F,e(Ge).label)),a(S,F)},$$slots:{default:!0}})};K(Z,u=>{e(Ge)&&u(Ce)})}P(L),o(u=>s(se,u),[()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeSteps_label():t.settings_providerProfileKinds_tokenSteps_label()]),a(r,L)};K(qe,r=>{(j()==="add"||x())&&r(We)})}var Je=i(qe,2);{var Ye=r=>{mt(r,{get label(){return e(Ee)},get error(){return le()},control:(W,se=ft)=>{var J=Kt(),N=C(J);tt(N,_t(se,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return H()},"data-testid":"provider-profile-secret-input",get value(){return h()},set value(M){h(M)}}));var ve=i(N,2);{var ne=M=>{R(M,{variant:"ghost-light",size:"sm",get disabled(){return H()},onclick:xe,children:($e,_e)=>{E();var B=I();o(Z=>s(B,Z),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a($e,B)},$$slots:{default:!0}})};K(ve,M=>{j()==="edit"&&T()&&M(ne)})}P(J),a(W,J)},$$slots:{control:!0}})},Ve=r=>{var L=pr(),W=C(L),se=g(W,!0),J=i(W,2),N=C(J),ve=g(N,!0),ne=i(N,2);R(ne,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>x(!0),children:(M,$e)=>{E();var _e=I();o(B=>s(_e,B),[()=>t.settings_providerProfileKinds_replace_label()]),a(M,_e)},$$slots:{default:!0}}),P(J),P(L),o(M=>{s(se,e(Ee)),s(ve,M)},[()=>t.settings_providerProfileKinds_saved_label()]),a(r,L)};K(Je,r=>{e(at)?r(Ye):r(Ve,-1)})}var je=i(Je,2);{var st=r=>{var L=fr(),W=C(L),se=C(W);Mt(se,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var J=i(se);P(W);var N=i(W,2),ve=C(N),ne=g(ve,!0),M=i(ve,2);{var $e=B=>{var Z=_r(),Ce=C(Z),u=g(Ce,!0),S=i(Ce,2);{var y=z=>{var q=ur(),D=ye(q),ee=g(D,!0),p=i(D,2);R(p,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("keep"),children:(n,l)=>{E();var v=I();o(_=>s(v,_),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(n,v)},$$slots:{default:!0}}),o(n=>s(ee,n),[()=>t.settings_providerProfileKinds_baseUrlRemoved_label()]),a(z,q)},F=z=>{var q=vr(),D=ye(q),ee=g(D,!0),p=i(D,2);R(p,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>d("replace"),children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>t.settings_providerProfileKinds_replace_label()]),a(l,_)},$$slots:{default:!0}});var n=i(p,2);R(n,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("remove"),children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>t.settings_providerProfiles_remove_label()]),a(l,_)},$$slots:{default:!0}}),o(l=>s(ee,l),[()=>t.settings_providerProfileKinds_saved_label()]),a(z,q)};K(S,z=>{d()==="remove"?z(y):z(F,-1)})}P(Z),o(z=>s(u,z),[()=>t.settings_providerProfileKinds_baseUrl_label()]),a(B,Z)},_e=B=>{{const Z=(u,S=ft)=>{var y=Kt(),F=C(y);tt(F,_t(S,{type:"url",placeholder:De,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return A()},"data-testid":"provider-profile-base-url-input",get value(){return Q()},set value(D){Q(D)}}));var z=i(F,2);{var q=D=>{R(D,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>{d("keep"),Q("")},children:(ee,p)=>{E();var n=I();o(l=>s(n,l),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(ee,n)},$$slots:{default:!0}})};K(z,D=>{j()==="edit"&&ge()&&D(q)})}P(y),a(u,y)};let Ce=$(()=>t.settings_providerProfileKinds_baseUrl_label());mt(B,{get label(){return e(Ce)},control:Z,$$slots:{control:!0}})}};K(M,B=>{j()==="edit"&&ge()&&d()!=="replace"?B($e):B(_e,-1)})}P(N),P(L),o((B,Z)=>{s(J,` ${B??""}`),s(ne,Z)},[()=>t.settings_providerProfileKinds_customEndpoint_label(),()=>t.settings_providerProfileKinds_customEndpoint_description()]),Nt("open","toggle",L,X,X),a(r,L)};K(je,r=>{e(Re)&&ae()&&r(st)})}return P(k),o(()=>ot(k,"data-kind",U())),a(ie,k),pt(Oe)}function sa(ie,c){return c==="token"?ie==="codex"?t.settings_providerProfileKinds_tokenNotJwt_error():t.settings_providerProfileKinds_tokenShapeClaude_error():ie==="codex"?t.settings_providerProfileKinds_keyShapeCodex_error():t.settings_providerProfileKinds_keyShapeClaude_error()}var mr=m('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),xr=m('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),hr=m('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),kr=m('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),yr=m('<p class="text-xs text-danger" role="alert"> </p>'),$r=m('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Cr=m('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Pr=m('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Sr=m('<p class="text-sm text-subtle" role="status"> </p>'),Kr=m('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ar=m('<p class="text-sm text-danger" role="alert"> </p>'),Er=m('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Ir(ie,c){const w=Ut();if(new.target)return it({component:Ir,...ie});ct(c,!0);const U=()=>Se(Ke,"$storedInstance$",d),j=()=>Se(Me,"$deviceGrantSupported$",d),h=()=>Se(at,"$instanceSetupSupported$",d),T=()=>Se(ze,"$isAuthenticating$",d),x=()=>Se(Ae,"$isCancelling$",d),le=()=>Se(Re,"$deviceFlow$",d),Q=()=>Se(De,"$cancelOutcome$",d),ge=()=>Se(rt,"$error$",d),[d,X]=Lt();let A=f(c,"compact",7,!1),H=f(c,"onCancel",7);const de=`${w}-host`,ce=`${w}-host-help`,ae=`${w}-host-error`,me=`${w}-token`,Ke=yt(),ze=$t(),Ae=tr(),De=rr(),Re=Ct(),Me=ar(),rt=sr(),at=nr();let Ee=et(zt(yt.select(ke.state))),Ge=et(!1),xe=et(""),Oe=et(!1);const k=$(()=>Qt(e(Ee))),Be=$(()=>e(Oe)||e(k)===U()&&j()===!1),He=$(()=>e(k)?Zt(e(k)):null),qe=$(()=>h()&&e(k)!==null&&e(xe).trim().length>0);bt(()=>{const p=U();e(Ge)||he(Ee,p,!0)}),bt(()=>{h()||he(xe,"")}),Dt(()=>{const p=()=>{const n=ke.state;$t.select(n)&&Ct.select(n)&&ke.dispatch(ht())};return window.addEventListener("focus",p),()=>window.removeEventListener("focus",p)});function We(){!h()||!e(k)||e(k)===U()||T()||x()||ke.dispatch(jt(e(k)))}function Je(){he(Ge,!0),he(xe,"")}function Ye(){!h()||!e(k)||T()||x()||ke.dispatch(Xt(e(k)))}function Ve(){const p=e(xe).trim();!h()||!p||!e(k)||T()||x()||(ke.dispatch(er(e(k),p)),he(xe,""))}function je(){!h()||x()||(T()&&ke.dispatch(kt()),he(Oe,!0))}function st(){he(Oe,!1)}function r(){x()||ke.dispatch(kt())}function L(){e(He)&&Yt(e(He),{})}function W(p){p.key==="Enter"&&(p.preventDefault(),We(),e(Be)?document.getElementById(me)?.focus():Ye())}function se(p){p.key==="Enter"&&(p.preventDefault(),Ve())}const J=$(()=>A()?"sm":"xl"),N=$(()=>A()?"sm":"default");var ve={get compact(){return A()},set compact(p=!1){A(p),b()},get onCancel(){return H()},set onCancel(p){H(p),b()},$set:lt,$on:(p,n)=>dt(c,p,n)},ne=Er();{const p=n=>{R(n,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return x()},onclick:r,children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>x()?t.lib_gitlabConnect_cancelling_label():t.lib_gitlabConnect_cancel_label()]),a(l,_)},$$slots:{default:!0}})};var M=C(ne);{var $e=n=>{var l=mr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_updateRequired_description()]),a(n,l)};K(M,n=>{h()||n($e)})}var _e=i(M,2);{var B=n=>{var l=xr(),v=g(l,!0);o(()=>s(v,U())),a(n,l)};K(_e,n=>{(T()||x())&&n(B)})}var Z=i(_e,2);{var Ce=n=>{var l=hr(),v=C(l);{let Le=$(()=>t.lib_gitlabConnect_openGitlab_label());Wt(v,{get userCode(){return le().userCode},get verificationUri(){return le().verificationUri},get openLabel(){return e(Le)},get compact(){return A()}})}var _=i(v,2),Y=C(_);gt(Y,{size:16,class:"shrink-0"});var oe=i(Y,2),Te=g(oe,!0),Ie=i(oe,2);{let Le=$(()=>x()||!h());R(Ie,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return e(Le)},onclick:je,children:(nt,ut)=>{E();var G=I();o(V=>s(G,V),[()=>t.lib_gitlabConnect_useToken_label()]),a(nt,G)},$$slots:{default:!0}})}var Ne=i(Ie,2);p(Ne),P(_),P(l),o(Le=>s(Te,Le),[()=>t.lib_gitlabConnect_waitingForAuthorization_label()]),a(n,l)},u=n=>{var l=kr(),v=C(l);gt(v,{size:16,class:"shrink-0"});var _=i(v,2),Y=g(_,!0),oe=i(_,2);p(oe),P(l),o(Te=>s(Y,Te),[()=>t.lib_gitlabConnect_connecting_label()]),a(n,l)},S=n=>{var l=Pr(),v=ye(l),_=C(v);xt(_,{get for(){return de},children:(G,V)=>{E();var te=I();o(pe=>s(te,pe),[()=>t.lib_gitlabConnect_host_label()]),a(G,te)},$$slots:{default:!0}});var Y=i(_,2);{let G=$(()=>!h()),V=$(()=>!e(k)||void 0),te=$(()=>e(k)?ce:`${ce} ${ae}`);tt(Y,{get id(){return de},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return e(G)},get"aria-invalid"(){return e(V)},get"aria-describedby"(){return e(te)},get placeholder(){return Vt},oninput:Je,onchange:We,onkeydown:W,get value(){return e(Ee)},set value(pe){he(Ee,pe,!0)}})}var oe=i(Y,2),Te=g(oe,!0),Ie=i(oe,2);{var Ne=G=>{var V=yr(),te=g(V,!0);o(pe=>{ot(V,"id",ae),s(te,pe)},[()=>t.lib_gitlabConnect_invalidInstance_error()]),a(G,V)};K(Ie,G=>{e(k)||G(Ne)})}P(v);var Le=i(v,2);{var nt=G=>{var V=$r(),te=ye(V),pe=C(te);xt(pe,{get for(){return me},children:(O,be)=>{E();var Fe=I();o(re=>s(Fe,re),[()=>t.lib_gitlabConnect_token_label()]),a(O,Fe)},$$slots:{default:!0}});var Qe=i(pe,2);{let O=$(()=>!h());tt(Qe,{get id(){return me},type:"password",autocomplete:"off",get disabled(){return e(O)},placeholder:"glpat-...",onkeydown:se,get value(){return e(xe)},set value(be){he(xe,be,!0)}})}var Xe=i(Qe,2),fe=C(Xe),we=i(fe);{var Ze=O=>{R(O,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:L,children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_createToken_label({host:e(k)})]),a(be,re)},$$slots:{default:!0}})};K(we,O=>{e(He)&&e(k)&&O(Ze)})}P(Xe),P(te);var ue=i(te,2),Pe=C(ue);{let O=$(()=>!e(qe));R(Pe,{variant:"primary",get size(){return e(J)},type:"button",onclick:Ve,get disabled(){return e(O)},children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_connect_label()]),a(be,re)},$$slots:{default:!0}})}var vt=i(Pe,2);{var At=O=>{R(O,{variant:"ghost",get size(){return e(N)},type:"button",onclick:st,children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_useDevice_label()]),a(be,re)},$$slots:{default:!0}})};K(vt,O=>{e(Oe)&&!(e(k)===U()&&j()===!1)&&O(At)})}var Et=i(vt,2);{var It=O=>{R(O,{variant:"ghost",get size(){return e(N)},type:"button",get onclick(){return H()},children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_cancel_label()]),a(be,re)},$$slots:{default:!0}})};K(Et,O=>{H()&&O(It)})}P(ue),o(O=>s(fe,`${O??""} `),[()=>t.lib_gitlabConnect_token_description()]),a(G,V)},ut=G=>{var V=Cr(),te=C(V);{let fe=$(()=>!e(k)||!h());R(te,{variant:"primary",get size(){return e(J)},type:"button",onclick:Ye,get disabled(){return e(fe)},children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_connect_label()]),a(we,ue)},$$slots:{default:!0}})}var pe=i(te,2);{let fe=$(()=>!h());R(pe,{variant:"ghost",get size(){return e(N)},type:"button",get disabled(){return e(fe)},onclick:je,children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_useToken_label()]),a(we,ue)},$$slots:{default:!0}})}var Qe=i(pe,2);{var Xe=fe=>{R(fe,{variant:"ghost",get size(){return e(N)},type:"button",get onclick(){return H()},children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_cancel_label()]),a(we,ue)},$$slots:{default:!0}})};K(Qe,fe=>{H()&&fe(Xe)})}P(V),a(G,V)};K(Le,G=>{e(Be)?G(nt):G(ut,-1)})}o(G=>{ot(oe,"id",ce),s(Te,G)},[()=>t.lib_gitlabConnect_host_description()]),a(n,l)};K(Z,n=>{(T()||x())&&le()?n(Ce):T()||x()?n(u,1):n(S,-1)})}var y=i(Z,2);{var F=n=>{var l=Sr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_cancelled_label()]),a(n,l)},z=n=>{var l=Kr(),v=C(l),_=g(v,!0),Y=i(v,2);R(Y,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return x()},onclick:()=>ke.dispatch(ht()),children:(oe,Te)=>{E();var Ie=I();o(Ne=>s(Ie,Ne),[()=>t.lib_gitlabConnect_checkStatus_label()]),a(oe,Ie)},$$slots:{default:!0}}),P(l),o(oe=>s(_,oe),[()=>Q()==="already-started"?t.lib_gitlabConnect_alreadyStarted_description():t.lib_gitlabConnect_cancelFailed_description()]),a(n,l)};K(y,n=>{Q()==="cancelled"?n(F):(Q()==="already-started"||Q()==="failed")&&n(z,1)})}var q=i(y,2);{var D=n=>{var l=Ar(),v=g(l,!0);o(()=>s(v,ge())),a(n,l)};K(q,n=>{ge()&&n(D)})}P(ne)}o(()=>Ft(ne,1,Rt(A()?"space-y-2":"space-y-4"))),a(ie,ne);var ee=pt(ve);return X(),ee}export{Ir as G,ir as M,gr as P,sa as s};
1
+ import{t as it,bo as f,bw as lt,b as dt,bm as t,br as _t,bs as Se,bq as Lt}from"./NtxbXOxK.js";import{bs as ct,ay as ye,be as E,b$ as I,b_ as o,bO as s,W as a,bS as i,bl as g,bn as pt,aA as b,a7 as wt,aD as e,c9 as $,aB as m,a5 as C,bA as P,bf as ft,bo as Ut,bV as et,br as zt,ca as bt,bH as he,bk as Dt}from"./CJxGDkBm.js";import{g as Gt,i as Ot,I as gt}from"./jSlXIbXa.js";import{c as Tt}from"./CDAGrCMS.js";import{s as ot,f as Ft,c as Rt}from"./puisNM3r.js";import{f as R}from"./Bst2sLeL.js";import"./DcsVySxU.js";import"./Ci0DCXei.js";import{b as Bt}from"./Dqbu3Xgt.js";import"./LQm_WUG-.js";import"./C8PDklve.js";import{b as Ht}from"./BmCHTIDH.js";import{i as K}from"./DrPmlbuk.js";import{b as Nt}from"./5vm8eILD.js";import{F as Mt,ax as qt}from"./S6AtfZPI.js";import"./BpozSsrs.js";import{F as mt,G as Wt}from"./CwhU2GJj.js";import"./BJtZTy_N.js";/* empty css */import{C as Jt}from"./BVSy1i1c.js";import{L as xt}from"./WoXHXc-b.js";import{I as tt}from"./B34oQCN1.js";import"./a-uzFDRe.js";import"./CSKp9zzd.js";import{h as Yt}from"./BkzHDegO.js";import{IS as ke,fp as ht,F as Vt,ef as kt,qO as jt,ud as Qt,IJ as Xt,om as Zt,hD as er}from"./DUUOaZUX.js";import{aB as yt,aC as $t,aD as tr,aw as rr,ax as Ct,ay as ar,az as sr,aH as nr}from"./C7xMm-xs.js";var or=m('<!> <p class="type-body"> </p>',1);function ir(ie,c){if(new.target)return it({component:ir,...ie});ct(c,!0);let w=f(c,"open",15,!1),U=f(c,"static",7,!1),j=f(c,"title",7),h=f(c,"message",7),T=f(c,"buttons",7),x=f(c,"cancelIndex",7,0),le=f(c,"onSelect",7);function Q(d){w(!1),le()?.(d)}var ge={get open(){return w()},set open(d=!1){w(d),b()},get static(){return U()},set static(d=!1){U(d),b()},get title(){return j()},set title(d){j(d),b()},get message(){return h()},set message(d){h(d),b()},get buttons(){return T()},set buttons(d){T(d),b()},get cancelIndex(){return x()},set cancelIndex(d=0){x(d),b()},get onSelect(){return le()},set onSelect(d){le(d),b()},$set:lt,$on:(d,X)=>dt(c,d,X)};return Ht(ie,{get static(){return U()},role:"alertdialog",get title(){return j()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>Q(T().length-1),onCancel:()=>Q(x()),get open(){return w()},set open(X){w(X)},footer:X=>{var A=wt(),H=ye(A);Gt(H,17,T,Ot,(de,ce,ae)=>{{let me=$(()=>ae===x()?"ghost":ae===T().length-1?"primary":"outline");R(de,{get variant(){return e(me)},onclick:()=>Q(ae),children:(Ke,ze)=>{E();var Ae=I();o(()=>s(Ae,e(ce))),a(Ke,Ae)},$$slots:{default:!0}})}}),a(X,A)},children:(X,A)=>{var H=or(),de=ye(H);Tt(de,()=>Bt,(me,Ke)=>{Ke(me,{class:"sr-only",children:(ze,Ae)=>{E();var De=I();o(()=>s(De,h())),a(ze,De)},$$slots:{default:!0}})});var ce=i(de,2),ae=g(ce,!0);o(()=>s(ae,h())),a(X,H)},$$slots:{footer:!0,default:!0}}),pt(ge)}var lr=m('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Pt=m("<li> </li> <li> </li>",1),dr=m('<li> <span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"></code> <!></span></li> <li> </li>',1),St=m("<li> </li>"),cr=m('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><!> <!></ol> <!></section>'),Kt=m('<div class="flex items-center gap-2"><!> <!></div>'),pr=m('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),ur=m('<span class="type-body text-muted-foreground"> </span> <!>',1),vr=m('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),_r=m('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),fr=m('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&amp;::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),br=m('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function gr(ie,c){if(new.target)return it({component:gr,...ie});ct(c,!0);let w=f(c,"provider",7),U=f(c,"kind",7),j=f(c,"mode",7),h=f(c,"secret",15,""),T=f(c,"secretSaved",7,!1),x=f(c,"replacing",15,!1),le=f(c,"secretError",7),Q=f(c,"baseUrl",15,""),ge=f(c,"baseUrlSaved",7,!1),d=f(c,"baseUrlAction",15,"keep"),X=f(c,"customEndpointOpen",15,!1),A=f(c,"disabled",7,!1),H=f(c,"secretDisabled",23,A),de=f(c,"keyCheck",7,!0),ce=f(c,"pasteStep",7,!0),ae=f(c,"customEndpoint",7,!0);const me="https://console.anthropic.com/settings/keys",Ke="https://developers.openai.com/codex/enterprise/access-tokens",ze="https://platform.openai.com/api-keys",Ae="claude setup-token",De="https://",Re=$(()=>w()==="claude"&&U()==="apiKey"),Me=$(()=>w()==="codex"&&U()==="apiKey"),rt=$(()=>de()?U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeStep3_label():w()==="claude"?t.settings_providerProfileKinds_tokenClaudeStep3_label():t.settings_providerProfileKinds_tokenCodexStep2_label():t.settings_providerProfileKinds_pasteNoCheck_label()),at=$(()=>j()==="add"||!T()||x()),Ee=$(()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKey_label():t.settings_providerProfileKinds_token_label()),Ge=$(()=>{if(e(Re))return{href:me,label:t.settings_providerProfileKinds_anthropicConsole_link()};if(e(Me))return{href:ze,label:t.settings_providerProfileKinds_openAiApiKeys_link()};if(w()==="codex")return{href:Ke,label:t.settings_providerProfileKinds_openAiAccessTokens_link()}});function xe(){x(!1),h("")}var Oe={get provider(){return w()},set provider(r){w(r),b()},get kind(){return U()},set kind(r){U(r),b()},get mode(){return j()},set mode(r){j(r),b()},get secret(){return h()},set secret(r=""){h(r),b()},get secretSaved(){return T()},set secretSaved(r=!1){T(r),b()},get replacing(){return x()},set replacing(r=!1){x(r),b()},get secretError(){return le()},set secretError(r){le(r),b()},get baseUrl(){return Q()},set baseUrl(r=""){Q(r),b()},get baseUrlSaved(){return ge()},set baseUrlSaved(r=!1){ge(r),b()},get baseUrlAction(){return d()},set baseUrlAction(r="keep"){d(r),b()},get customEndpointOpen(){return X()},set customEndpointOpen(r=!1){X(r),b()},get disabled(){return A()},set disabled(r=!1){A(r),b()},get secretDisabled(){return H()},set secretDisabled(r=A){H(r),b()},get keyCheck(){return de()},set keyCheck(r=!0){de(r),b()},get pasteStep(){return ce()},set pasteStep(r=!0){ce(r),b()},get customEndpoint(){return ae()},set customEndpoint(r=!0){ae(r),b()},$set:lt,$on:(r,L)=>dt(c,r,L)},k=br(),Be=C(k);{var He=r=>{var L=lr(),W=g(L,!0);o(se=>s(W,se),[()=>t.settings_providerProfileKinds_tokenCodexEligibility_description()]),a(r,L)};K(Be,r=>{w()==="codex"&&U()==="token"&&r(He)})}var qe=i(Be,2);{var We=r=>{var L=cr(),W=C(L),se=g(W,!0),J=i(W,2),N=C(J);{var ve=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((D,ee)=>{s(F,D),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyClaudeStep1_label(),()=>t.settings_providerProfileKinds_apiKeyClaudeStep2_label()]),a(u,S)},ne=u=>{var S=Pt(),y=ye(S),F=g(y,!0),z=i(y,2),q=g(z,!0);o((D,ee)=>{s(F,D),s(q,ee)},[()=>t.settings_providerProfileKinds_apiKeyCodexStep1_label(),()=>t.settings_providerProfileKinds_apiKeyCodexStep2_label()]),a(u,S)},M=u=>{var S=dr(),y=ye(S),F=C(y),z=i(F),q=C(z);q.textContent="claude setup-token";var D=i(q,2);Jt(D,{text:Ae,size:"sm"}),P(z),P(y);var ee=i(y,2),p=g(ee,!0);o((n,l)=>{s(F,`${n??""} `),s(p,l)},[()=>t.settings_providerProfileKinds_tokenClaudeStep1_label(),()=>t.settings_providerProfileKinds_tokenClaudeStep2_label()]),a(u,S)},$e=u=>{var S=St(),y=g(S,!0);o(F=>s(y,F),[()=>t.settings_providerProfileKinds_tokenCodexStep1_label()]),a(u,S)};K(N,u=>{e(Re)?u(ve):e(Me)?u(ne,1):w()==="claude"?u(M,2):u($e,-1)})}var _e=i(N,2);{var B=u=>{var S=St(),y=g(S,!0);o(()=>s(y,e(rt))),a(u,S)};K(_e,u=>{ce()&&u(B)})}P(J);var Z=i(J,2);{var Ce=u=>{R(u,{variant:"link",size:"sm",get href(){return e(Ge).href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(S,y)=>{E();var F=I();o(()=>s(F,e(Ge).label)),a(S,F)},$$slots:{default:!0}})};K(Z,u=>{e(Ge)&&u(Ce)})}P(L),o(u=>s(se,u),[()=>U()==="apiKey"?t.settings_providerProfileKinds_apiKeyClaudeSteps_label():t.settings_providerProfileKinds_tokenSteps_label()]),a(r,L)};K(qe,r=>{(j()==="add"||x())&&r(We)})}var Je=i(qe,2);{var Ye=r=>{mt(r,{get label(){return e(Ee)},get error(){return le()},control:(W,se=ft)=>{var J=Kt(),N=C(J);tt(N,_t(se,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return H()},"data-testid":"provider-profile-secret-input",get value(){return h()},set value(M){h(M)}}));var ve=i(N,2);{var ne=M=>{R(M,{variant:"ghost-light",size:"sm",get disabled(){return H()},onclick:xe,children:($e,_e)=>{E();var B=I();o(Z=>s(B,Z),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a($e,B)},$$slots:{default:!0}})};K(ve,M=>{j()==="edit"&&T()&&M(ne)})}P(J),a(W,J)},$$slots:{control:!0}})},Ve=r=>{var L=pr(),W=C(L),se=g(W,!0),J=i(W,2),N=C(J),ve=g(N,!0),ne=i(N,2);R(ne,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>x(!0),children:(M,$e)=>{E();var _e=I();o(B=>s(_e,B),[()=>t.settings_providerProfileKinds_replace_label()]),a(M,_e)},$$slots:{default:!0}}),P(J),P(L),o(M=>{s(se,e(Ee)),s(ve,M)},[()=>t.settings_providerProfileKinds_saved_label()]),a(r,L)};K(Je,r=>{e(at)?r(Ye):r(Ve,-1)})}var je=i(Je,2);{var st=r=>{var L=fr(),W=C(L),se=C(W);Mt(se,{get icon(){return qt},class:"size-3 transition-transform group-open:rotate-90"});var J=i(se);P(W);var N=i(W,2),ve=C(N),ne=g(ve,!0),M=i(ve,2);{var $e=B=>{var Z=_r(),Ce=C(Z),u=g(Ce,!0),S=i(Ce,2);{var y=z=>{var q=ur(),D=ye(q),ee=g(D,!0),p=i(D,2);R(p,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("keep"),children:(n,l)=>{E();var v=I();o(_=>s(v,_),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(n,v)},$$slots:{default:!0}}),o(n=>s(ee,n),[()=>t.settings_providerProfileKinds_baseUrlRemoved_label()]),a(z,q)},F=z=>{var q=vr(),D=ye(q),ee=g(D,!0),p=i(D,2);R(p,{variant:"outline",size:"sm",get disabled(){return A()},onclick:()=>d("replace"),children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>t.settings_providerProfileKinds_replace_label()]),a(l,_)},$$slots:{default:!0}});var n=i(p,2);R(n,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>d("remove"),children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>t.settings_providerProfiles_remove_label()]),a(l,_)},$$slots:{default:!0}}),o(l=>s(ee,l),[()=>t.settings_providerProfileKinds_saved_label()]),a(z,q)};K(S,z=>{d()==="remove"?z(y):z(F,-1)})}P(Z),o(z=>s(u,z),[()=>t.settings_providerProfileKinds_baseUrl_label()]),a(B,Z)},_e=B=>{{const Z=(u,S=ft)=>{var y=Kt(),F=C(y);tt(F,_t(S,{type:"url",placeholder:De,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return A()},"data-testid":"provider-profile-base-url-input",get value(){return Q()},set value(D){Q(D)}}));var z=i(F,2);{var q=D=>{R(D,{variant:"ghost-light",size:"sm",get disabled(){return A()},onclick:()=>{d("keep"),Q("")},children:(ee,p)=>{E();var n=I();o(l=>s(n,l),[()=>t.settings_providerProfileKinds_keepSaved_label()]),a(ee,n)},$$slots:{default:!0}})};K(z,D=>{j()==="edit"&&ge()&&D(q)})}P(y),a(u,y)};let Ce=$(()=>t.settings_providerProfileKinds_baseUrl_label());mt(B,{get label(){return e(Ce)},control:Z,$$slots:{control:!0}})}};K(M,B=>{j()==="edit"&&ge()&&d()!=="replace"?B($e):B(_e,-1)})}P(N),P(L),o((B,Z)=>{s(J,` ${B??""}`),s(ne,Z)},[()=>t.settings_providerProfileKinds_customEndpoint_label(),()=>t.settings_providerProfileKinds_customEndpoint_description()]),Nt("open","toggle",L,X,X),a(r,L)};K(je,r=>{e(Re)&&ae()&&r(st)})}return P(k),o(()=>ot(k,"data-kind",U())),a(ie,k),pt(Oe)}function sa(ie,c){return c==="token"?ie==="codex"?t.settings_providerProfileKinds_tokenNotJwt_error():t.settings_providerProfileKinds_tokenShapeClaude_error():ie==="codex"?t.settings_providerProfileKinds_keyShapeCodex_error():t.settings_providerProfileKinds_keyShapeClaude_error()}var mr=m('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),xr=m('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),hr=m('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),kr=m('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),yr=m('<p class="text-xs text-danger" role="alert"> </p>'),$r=m('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Cr=m('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Pr=m('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Sr=m('<p class="text-sm text-subtle" role="status"> </p>'),Kr=m('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ar=m('<p class="text-sm text-danger" role="alert"> </p>'),Er=m('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Ir(ie,c){const w=Ut();if(new.target)return it({component:Ir,...ie});ct(c,!0);const U=()=>Se(Ke,"$storedInstance$",d),j=()=>Se(Me,"$deviceGrantSupported$",d),h=()=>Se(at,"$instanceSetupSupported$",d),T=()=>Se(ze,"$isAuthenticating$",d),x=()=>Se(Ae,"$isCancelling$",d),le=()=>Se(Re,"$deviceFlow$",d),Q=()=>Se(De,"$cancelOutcome$",d),ge=()=>Se(rt,"$error$",d),[d,X]=Lt();let A=f(c,"compact",7,!1),H=f(c,"onCancel",7);const de=`${w}-host`,ce=`${w}-host-help`,ae=`${w}-host-error`,me=`${w}-token`,Ke=yt(),ze=$t(),Ae=tr(),De=rr(),Re=Ct(),Me=ar(),rt=sr(),at=nr();let Ee=et(zt(yt.select(ke.state))),Ge=et(!1),xe=et(""),Oe=et(!1);const k=$(()=>Qt(e(Ee))),Be=$(()=>e(Oe)||e(k)===U()&&j()===!1),He=$(()=>e(k)?Zt(e(k)):null),qe=$(()=>h()&&e(k)!==null&&e(xe).trim().length>0);bt(()=>{const p=U();e(Ge)||he(Ee,p,!0)}),bt(()=>{h()||he(xe,"")}),Dt(()=>{const p=()=>{const n=ke.state;$t.select(n)&&Ct.select(n)&&ke.dispatch(ht())};return window.addEventListener("focus",p),()=>window.removeEventListener("focus",p)});function We(){!h()||!e(k)||e(k)===U()||T()||x()||ke.dispatch(jt(e(k)))}function Je(){he(Ge,!0),he(xe,"")}function Ye(){!h()||!e(k)||T()||x()||ke.dispatch(Xt(e(k)))}function Ve(){const p=e(xe).trim();!h()||!p||!e(k)||T()||x()||(ke.dispatch(er(e(k),p)),he(xe,""))}function je(){!h()||x()||(T()&&ke.dispatch(kt()),he(Oe,!0))}function st(){he(Oe,!1)}function r(){x()||ke.dispatch(kt())}function L(){e(He)&&Yt(e(He),{})}function W(p){p.key==="Enter"&&(p.preventDefault(),We(),e(Be)?document.getElementById(me)?.focus():Ye())}function se(p){p.key==="Enter"&&(p.preventDefault(),Ve())}const J=$(()=>A()?"sm":"xl"),N=$(()=>A()?"sm":"default");var ve={get compact(){return A()},set compact(p=!1){A(p),b()},get onCancel(){return H()},set onCancel(p){H(p),b()},$set:lt,$on:(p,n)=>dt(c,p,n)},ne=Er();{const p=n=>{R(n,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return x()},onclick:r,children:(l,v)=>{E();var _=I();o(Y=>s(_,Y),[()=>x()?t.lib_gitlabConnect_cancelling_label():t.lib_gitlabConnect_cancel_label()]),a(l,_)},$$slots:{default:!0}})};var M=C(ne);{var $e=n=>{var l=mr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_updateRequired_description()]),a(n,l)};K(M,n=>{h()||n($e)})}var _e=i(M,2);{var B=n=>{var l=xr(),v=g(l,!0);o(()=>s(v,U())),a(n,l)};K(_e,n=>{(T()||x())&&n(B)})}var Z=i(_e,2);{var Ce=n=>{var l=hr(),v=C(l);{let Le=$(()=>t.lib_gitlabConnect_openGitlab_label());Wt(v,{get userCode(){return le().userCode},get verificationUri(){return le().verificationUri},get openLabel(){return e(Le)},get compact(){return A()}})}var _=i(v,2),Y=C(_);gt(Y,{size:16,class:"shrink-0"});var oe=i(Y,2),Te=g(oe,!0),Ie=i(oe,2);{let Le=$(()=>x()||!h());R(Ie,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return e(Le)},onclick:je,children:(nt,ut)=>{E();var G=I();o(V=>s(G,V),[()=>t.lib_gitlabConnect_useToken_label()]),a(nt,G)},$$slots:{default:!0}})}var Ne=i(Ie,2);p(Ne),P(_),P(l),o(Le=>s(Te,Le),[()=>t.lib_gitlabConnect_waitingForAuthorization_label()]),a(n,l)},u=n=>{var l=kr(),v=C(l);gt(v,{size:16,class:"shrink-0"});var _=i(v,2),Y=g(_,!0),oe=i(_,2);p(oe),P(l),o(Te=>s(Y,Te),[()=>t.lib_gitlabConnect_connecting_label()]),a(n,l)},S=n=>{var l=Pr(),v=ye(l),_=C(v);xt(_,{get for(){return de},children:(G,V)=>{E();var te=I();o(pe=>s(te,pe),[()=>t.lib_gitlabConnect_host_label()]),a(G,te)},$$slots:{default:!0}});var Y=i(_,2);{let G=$(()=>!h()),V=$(()=>!e(k)||void 0),te=$(()=>e(k)?ce:`${ce} ${ae}`);tt(Y,{get id(){return de},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return e(G)},get"aria-invalid"(){return e(V)},get"aria-describedby"(){return e(te)},get placeholder(){return Vt},oninput:Je,onchange:We,onkeydown:W,get value(){return e(Ee)},set value(pe){he(Ee,pe,!0)}})}var oe=i(Y,2),Te=g(oe,!0),Ie=i(oe,2);{var Ne=G=>{var V=yr(),te=g(V,!0);o(pe=>{ot(V,"id",ae),s(te,pe)},[()=>t.lib_gitlabConnect_invalidInstance_error()]),a(G,V)};K(Ie,G=>{e(k)||G(Ne)})}P(v);var Le=i(v,2);{var nt=G=>{var V=$r(),te=ye(V),pe=C(te);xt(pe,{get for(){return me},children:(O,be)=>{E();var Fe=I();o(re=>s(Fe,re),[()=>t.lib_gitlabConnect_token_label()]),a(O,Fe)},$$slots:{default:!0}});var Qe=i(pe,2);{let O=$(()=>!h());tt(Qe,{get id(){return me},type:"password",autocomplete:"off",get disabled(){return e(O)},placeholder:"glpat-...",onkeydown:se,get value(){return e(xe)},set value(be){he(xe,be,!0)}})}var Xe=i(Qe,2),fe=C(Xe),we=i(fe);{var Ze=O=>{R(O,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:L,children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_createToken_label({host:e(k)})]),a(be,re)},$$slots:{default:!0}})};K(we,O=>{e(He)&&e(k)&&O(Ze)})}P(Xe),P(te);var ue=i(te,2),Pe=C(ue);{let O=$(()=>!e(qe));R(Pe,{variant:"primary",get size(){return e(J)},type:"button",onclick:Ve,get disabled(){return e(O)},children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_connect_label()]),a(be,re)},$$slots:{default:!0}})}var vt=i(Pe,2);{var At=O=>{R(O,{variant:"ghost",get size(){return e(N)},type:"button",onclick:st,children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_useDevice_label()]),a(be,re)},$$slots:{default:!0}})};K(vt,O=>{e(Oe)&&!(e(k)===U()&&j()===!1)&&O(At)})}var Et=i(vt,2);{var It=O=>{R(O,{variant:"ghost",get size(){return e(N)},type:"button",get onclick(){return H()},children:(be,Fe)=>{E();var re=I();o(Ue=>s(re,Ue),[()=>t.lib_gitlabConnect_cancel_label()]),a(be,re)},$$slots:{default:!0}})};K(Et,O=>{H()&&O(It)})}P(ue),o(O=>s(fe,`${O??""} `),[()=>t.lib_gitlabConnect_token_description()]),a(G,V)},ut=G=>{var V=Cr(),te=C(V);{let fe=$(()=>!e(k)||!h());R(te,{variant:"primary",get size(){return e(J)},type:"button",onclick:Ye,get disabled(){return e(fe)},children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_connect_label()]),a(we,ue)},$$slots:{default:!0}})}var pe=i(te,2);{let fe=$(()=>!h());R(pe,{variant:"ghost",get size(){return e(N)},type:"button",get disabled(){return e(fe)},onclick:je,children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_useToken_label()]),a(we,ue)},$$slots:{default:!0}})}var Qe=i(pe,2);{var Xe=fe=>{R(fe,{variant:"ghost",get size(){return e(N)},type:"button",get onclick(){return H()},children:(we,Ze)=>{E();var ue=I();o(Pe=>s(ue,Pe),[()=>t.lib_gitlabConnect_cancel_label()]),a(we,ue)},$$slots:{default:!0}})};K(Qe,fe=>{H()&&fe(Xe)})}P(V),a(G,V)};K(Le,G=>{e(Be)?G(nt):G(ut,-1)})}o(G=>{ot(oe,"id",ce),s(Te,G)},[()=>t.lib_gitlabConnect_host_description()]),a(n,l)};K(Z,n=>{(T()||x())&&le()?n(Ce):T()||x()?n(u,1):n(S,-1)})}var y=i(Z,2);{var F=n=>{var l=Sr(),v=g(l,!0);o(_=>s(v,_),[()=>t.lib_gitlabConnect_cancelled_label()]),a(n,l)},z=n=>{var l=Kr(),v=C(l),_=g(v,!0),Y=i(v,2);R(Y,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return x()},onclick:()=>ke.dispatch(ht()),children:(oe,Te)=>{E();var Ie=I();o(Ne=>s(Ie,Ne),[()=>t.lib_gitlabConnect_checkStatus_label()]),a(oe,Ie)},$$slots:{default:!0}}),P(l),o(oe=>s(_,oe),[()=>Q()==="already-started"?t.lib_gitlabConnect_alreadyStarted_description():t.lib_gitlabConnect_cancelFailed_description()]),a(n,l)};K(y,n=>{Q()==="cancelled"?n(F):(Q()==="already-started"||Q()==="failed")&&n(z,1)})}var q=i(y,2);{var D=n=>{var l=Ar(),v=g(l,!0);o(()=>s(v,ge())),a(n,l)};K(q,n=>{ge()&&n(D)})}P(ne)}o(()=>Ft(ne,1,Rt(A()?"space-y-2":"space-y-4"))),a(ie,ne);var ee=pt(ve);return X(),ee}export{Ir as G,ir as M,gr as P,sa as s};
@@ -1,4 +1,4 @@
1
- import{c as Gt,aZ as Kt,U as Ht,Y as Yt,b0 as Xt,V as Zt,a_ as Jt,b as w,W as wt,aX as Qt,aW as ot,i as $t,an as te,au as ee,H as ne,B as se,r as ie,q as oe,O as re}from"./BN2Xx7qY.js";const kt=(t,n)=>Gt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(Z(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)Z(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(Z(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Z(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Nt(e)}function Ot(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Nt(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Nt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(O=>C.has(O)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Ot(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const F=x.select("svg");n?F.attr("viewBox",`0 0 ${s} ${e}`):F.attr("width",s).attr("height",e);const R={};let T=!1;F.selectAll(".venn-area path").each(function(k){const O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(T=!0,R[k.sets[0]]=Me(O))});function A(k){return O=>{const K=k.sets.map(et=>{let Y=R[et],X=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-O)+X.x*O,y:Y.y*(1-O)+X.y*O,radius:Y.radius*(1-O)+X.radius*O}});return St(K,p)}}const W=F.selectAll(".venn-area").data(d,k=>k.sets),P=W.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),G=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),G.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function L(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=L(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(O=>I[O])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=L(W.exit()).remove();typeof W.transition=="function"&&j.selectAll("path").attrTween("d",A);const Q=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(G.style("font-size","0px"),N.style("font-size",y),Q.style("font-size","0px")),{circles:I,textCentres:D,nodes:W,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
1
+ import{c as Gt,aZ as Kt,U as Ht,Y as Yt,b0 as Xt,V as Zt,a_ as Jt,b as w,W as wt,aX as Qt,aW as ot,i as $t,an as te,au as ee,H as ne,B as se,r as ie,q as oe,O as re}from"./C2gV5GaR.js";const kt=(t,n)=>Gt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(Z(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)Z(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(Z(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Z(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Nt(e)}function Ot(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Nt(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Nt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(O=>C.has(O)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Ot(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const F=x.select("svg");n?F.attr("viewBox",`0 0 ${s} ${e}`):F.attr("width",s).attr("height",e);const R={};let T=!1;F.selectAll(".venn-area path").each(function(k){const O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(T=!0,R[k.sets[0]]=Me(O))});function A(k){return O=>{const K=k.sets.map(et=>{let Y=R[et],X=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-O)+X.x*O,y:Y.y*(1-O)+X.y*O,radius:Y.radius*(1-O)+X.radius*O}});return St(K,p)}}const W=F.selectAll(".venn-area").data(d,k=>k.sets),P=W.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),G=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),G.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function L(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=L(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(O=>I[O])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=L(W.exit()).remove();typeof W.transition=="function"&&j.selectAll("path").attrTween("d",A);const Q=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(G.style("font-size","0px"),N.style("font-size",y),Q.style("font-size","0px")),{circles:I,textCentres:D,nodes:W,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
2
2
  M`,t,n),e.push(`
3
3
  m`,-s,0),e.push(`
4
4
  a`,s,s,0,1,0,s*2,0),e.push(`
@@ -1,4 +1,4 @@
1
- import{g as st}from"./DMicUhyp.js";import{g as it}from"./CdhsB6Tk.js";import{s as at}from"./FdrUgkC6.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./BN2Xx7qY.js";import{c as kt}from"./Blu36gU0.js";import{aR as Et}from"./D7S6-tcN.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
1
+ import{g as st}from"./DODIyxsG.js";import{g as it}from"./DYhAW_nh.js";import{s as at}from"./CktoO_4b.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./C2gV5GaR.js";import{c as kt}from"./BX-wlbf1.js";import{aR as Et}from"./D9e6EkDi.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,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:f(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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 C=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===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as e}from"./DrzhapyO.js";const t=[{id:"editorial-card",title:"Editorial card states",states:["default","group","inline","outlined","separated","selected","fluid-hover","header","flush-content","interactive","pressed","empty","long-content","compact","zoom-200","inert","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];e({id:"card",source:"src/lib/components/ui/card/card.svelte",publicImport:"$lib/components/ui/card",legacyImports:[],exports:["Action","CARD_CONTENT_INSET_CLASS","CARD_ROW_GUTTER_CLASS","Card","CardAction","CardContent","CardDescription","CardFooter","CardGroup","CardHeader","CardTitle","Content","Description","Footer","Group","Header","Root","Title","cardMetadata"],usage:`<script lang="ts">
1
+ import{p as e}from"./puisNM3r.js";const t=[{id:"editorial-card",title:"Editorial card states",states:["default","group","inline","outlined","separated","selected","fluid-hover","header","flush-content","interactive","pressed","empty","long-content","compact","zoom-200","inert","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];e({id:"card",source:"src/lib/components/ui/card/card.svelte",publicImport:"$lib/components/ui/card",legacyImports:[],exports:["Action","CARD_CONTENT_INSET_CLASS","CARD_ROW_GUTTER_CLASS","Card","CardAction","CardContent","CardDescription","CardFooter","CardGroup","CardHeader","CardTitle","Content","Description","Footer","Group","Header","Root","Title","cardMetadata"],usage:`<script lang="ts">
2
2
  import * as Card from '$lib/components/ui/card';
3
3
  <\/script>
4
4
 
@@ -1,4 +1,4 @@
1
- import{g as Ut}from"./CdhsB6Tk.js";import{s as Kt}from"./FdrUgkC6.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./BN2Xx7qY.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
1
+ import{g as Ut}from"./DYhAW_nh.js";import{s as Kt}from"./CktoO_4b.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./C2gV5GaR.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,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:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.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),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=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),d.length-1&&(this.yylineno-=d.length-1);var _=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:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{n as E,o as l,b,s as x,d as dt,l as S,c as ct,_ as M,r as ut}from"./CIyUrgF0.js";import{Z as _}from"./C3DfjxaV.js";import{c as lt,a as mt}from"./DxwfiAWm.js";const L=E().finite().nonnegative(),Q=l({completedAtMs:L,samples:b(l({atMs:L,pointCount:E().int().min(0).max(2048),end:l({x:E().finite(),y:E().finite()}).strict()}).strict()).min(1).max(64)}).strict().refine(t=>t.samples.every((s,n)=>s.atMs<=t.completedAtMs&&(!n||s.atMs>=t.samples[n-1].atMs)),"Invalid gesture clock");function Vt(t,s,n){if(!s||n>=s.completedAtMs)return t;const i=[...s.samples].reverse().find(e=>e.atMs<=n);if(!i)return null;if(t.kind==="path")return i.pointCount?{kind:"path",points:t.points.slice(0,i.pointCount)}:null;if(t.kind==="arrow")return{kind:"arrow",from:t.from,to:i.end};if(t.kind==="rect"){const e=s.samples[0].end,a=Math.abs(i.end.x-e.x),r=Math.abs(i.end.y-e.y);return a>0&&r>0?{kind:"rect",x:Math.min(e.x,i.end.x),y:Math.min(e.y,i.end.y),w:a,h:r}:null}return t}const f=E().finite(),A=f.nonnegative(),R=E().int().nonnegative(),h=x().min(1).max(512),V=l({startMs:A,endMs:A}).strict().refine(t=>t.endMs>=t.startMs,"Reversed range"),z=l({x:f,y:f}).strict(),$=l({x:f,y:f,w:f.positive(),h:f.positive()}).strict(),ft=$.extend({id:h}),Wt=16,W=2,q=l({id:h,radius:f.positive().max(4096),points:b(z).min(1).max(4096)}).strict();function Zt(t){const s=t.points.map(a=>a.x),n=t.points.map(a=>a.y),i=Math.min(...s)-t.radius,e=Math.min(...n)-t.radius;return{x:i,y:e,w:Math.max(...s)+t.radius-i,h:Math.max(...n)+t.radius-e}}function Qt(t,s){return q.parse({...t,radius:t.radius*Math.max(Math.abs(s.scaleX),Math.abs(s.scaleY)),points:t.points.map(n=>({x:n.x*s.scaleX+s.offsetX,y:n.y*s.scaleY+s.offsetY}))})}const tt=dt("kind",[$.extend({kind:S("rect")}),l({kind:S("point"),x:f,y:f}).strict(),l({kind:S("path"),points:b(z).min(1).max(4096)}).strict(),l({kind:S("arrow"),from:z,to:z}).strict(),l({kind:S("text"),x:f,y:f,text:x().max(1e4),fontSize:f.positive(),style:S("sticky").optional(),width:f.positive().max(4096).optional(),padding:f.nonnegative().max(1024).optional()}).strict()]);function st(t){const s=t.fontSize*1.4,n=t.style==="sticky"?t.padding??8:0;if(t.style!=="sticky"){const r=t.text.split(`
1
+ import{n as E,o as l,b,s as x,d as dt,l as S,c as ct,_ as M,r as ut}from"./CIyUrgF0.js";import{Z as _}from"./BpozSsrs.js";import{c as lt,a as mt}from"./DxwfiAWm.js";const L=E().finite().nonnegative(),Q=l({completedAtMs:L,samples:b(l({atMs:L,pointCount:E().int().min(0).max(2048),end:l({x:E().finite(),y:E().finite()}).strict()}).strict()).min(1).max(64)}).strict().refine(t=>t.samples.every((s,n)=>s.atMs<=t.completedAtMs&&(!n||s.atMs>=t.samples[n-1].atMs)),"Invalid gesture clock");function Vt(t,s,n){if(!s||n>=s.completedAtMs)return t;const i=[...s.samples].reverse().find(e=>e.atMs<=n);if(!i)return null;if(t.kind==="path")return i.pointCount?{kind:"path",points:t.points.slice(0,i.pointCount)}:null;if(t.kind==="arrow")return{kind:"arrow",from:t.from,to:i.end};if(t.kind==="rect"){const e=s.samples[0].end,a=Math.abs(i.end.x-e.x),r=Math.abs(i.end.y-e.y);return a>0&&r>0?{kind:"rect",x:Math.min(e.x,i.end.x),y:Math.min(e.y,i.end.y),w:a,h:r}:null}return t}const f=E().finite(),A=f.nonnegative(),R=E().int().nonnegative(),h=x().min(1).max(512),V=l({startMs:A,endMs:A}).strict().refine(t=>t.endMs>=t.startMs,"Reversed range"),z=l({x:f,y:f}).strict(),$=l({x:f,y:f,w:f.positive(),h:f.positive()}).strict(),ft=$.extend({id:h}),Wt=16,W=2,q=l({id:h,radius:f.positive().max(4096),points:b(z).min(1).max(4096)}).strict();function Zt(t){const s=t.points.map(a=>a.x),n=t.points.map(a=>a.y),i=Math.min(...s)-t.radius,e=Math.min(...n)-t.radius;return{x:i,y:e,w:Math.max(...s)+t.radius-i,h:Math.max(...n)+t.radius-e}}function Qt(t,s){return q.parse({...t,radius:t.radius*Math.max(Math.abs(s.scaleX),Math.abs(s.scaleY)),points:t.points.map(n=>({x:n.x*s.scaleX+s.offsetX,y:n.y*s.scaleY+s.offsetY}))})}const tt=dt("kind",[$.extend({kind:S("rect")}),l({kind:S("point"),x:f,y:f}).strict(),l({kind:S("path"),points:b(z).min(1).max(4096)}).strict(),l({kind:S("arrow"),from:z,to:z}).strict(),l({kind:S("text"),x:f,y:f,text:x().max(1e4),fontSize:f.positive(),style:S("sticky").optional(),width:f.positive().max(4096).optional(),padding:f.nonnegative().max(1024).optional()}).strict()]);function st(t){const s=t.fontSize*1.4,n=t.style==="sticky"?t.padding??8:0;if(t.style!=="sticky"){const r=t.text.split(`
2
2
  `);return{lines:r,width:Math.max(1,...r.map(d=>d.length))*t.fontSize*.65,height:r.length*s,padding:n,lineHeight:s}}const i=Math.max(n*2+1,t.width??240),e=Math.max(1,Math.floor((i-n*2)/(t.fontSize*.65))),a=[];for(const r of t.text.split(`
3
3
  `)){let d=r;for(;d.length>e;){const c=d.lastIndexOf(" ",e),u=c>0?c:e;a.push(d.slice(0,u).trimEnd()),d=d.slice(u).trimStart()}a.push(d)}return{lines:a,width:i,height:a.length*s+n*2,padding:n,lineHeight:s}}function qt(t,s){const n=st(t),i=tt.parse({...t,x:t.x*s.scaleX+s.offsetX,y:t.y*s.scaleY+s.offsetY,fontSize:t.fontSize*Math.abs(s.scaleY),...t.style==="sticky"?{width:n.width*Math.abs(s.scaleX),padding:n.padding*Math.min(Math.abs(s.scaleX),Math.abs(s.scaleY))}:{}});if(i.kind!=="text")throw new Error("invalid-text-transform");return i}const U=l({gestureProgress:Q.optional(),id:h,atMs:A,batchId:h,source:M(["recording","editor"]),kind:M(["click","box","draw","arrow","element","text"]),included:ct(),geometry:tt,label:x().max(2048),note:x().max(2e4),context:l({selector:x().max(8192).nullable(),text:x().max(2e4).nullable(),url:x().max(8192).nullable()}).strict()}).strict(),pt=l({id:h,atMs:A,clearAtMs:A.nullable()}).strict().refine(t=>t.clearAtMs===null||t.clearAtMs>=t.atMs,"Reversed batch"),ht=l({mode:M(["fullscreen","window","region"]),frame:l({displayId:E().int(),rect:$,coordinateSpace:S("screen-points-top-left")}).strict().nullable()}).strict(),j=l({id:h,revision:R,kind:M(["recording","screenshot"]),capture:ht.optional(),attachmentId:h,path:x().refine(t=>t.startsWith(".intent/attachments/")&&!/[\\\x00]/.test(t)&&!t.split("/").some(s=>!s||s==="."||s===".."),"Invalid attachment path"),durationMs:A,width:f.positive(),height:f.positive(),audio:M(["available","none","unknown"]),batches:b(pt).max(1e4),visuals:M(["clean","baked-marks"]),capturedMarks:b(U).max(1e4).optional(),bakedMarks:b(U).max(1e4).optional()}).strict().superRefine((t,s)=>{for(const n of t.capturedMarks??[]){const i=n.gestureProgress;i&&(t.kind!=="recording"||i.completedAtMs>t.durationMs||i.samples.some(e=>e.atMs<n.atMs||n.geometry.kind==="path"&&e.pointCount>n.geometry.points.length))&&s.addIssue({code:_.custom,path:["capturedMarks"],message:"Gesture timing does not match the recording"})}t.kind==="recording"&&t.durationMs<=0&&s.addIssue({code:_.custom,path:["durationMs"],message:"Recording duration is missing"})}),Mt=l({status:M(["pending","ready","no-speech","unavailable","failed"]),revision:R,words:b(l({id:h,text:x().max(2e4),startMs:A.nullable(),endMs:A.nullable(),alignment:M(["word","segment","untimed"])}).strict().superRefine((t,s)=>{(t.startMs===null!=(t.endMs===null)||t.startMs!==null&&t.endMs!==null&&t.endMs<t.startMs)&&s.addIssue({code:_.custom,message:"Incomplete or reversed recognition timing"}),t.alignment!=="untimed"&&(t.startMs===null||t.endMs===null)&&s.addIssue({code:_.custom,message:"Timed recognition units require genuine timestamps"}),t.alignment==="untimed"&&t.startMs!==null&&s.addIssue({code:_.custom,message:"Untimed text cannot claim timestamps"})})).max(2e5),error:x().max(2048).optional()}).strict();l({video:M(["full","highlights"]),voice:M(["audio","transcript","off"])}).strict();const G=l({version:S(1),kind:M(["recording","screenshot"]),sourceId:h,sourceRevision:R,revision:R,trim:V,cuts:b(V).max(1e4),marks:b(U).max(1e4),blurRegions:b(ft).max(1e3),blurStrokes:b(q).max(1e3).optional(),crop:$.nullable(),video:M(["full","highlights"]),voice:M(["audio","transcript","off"]),wordEdits:ut(x(),x().max(2e4))}).strict().superRefine((t,s)=>{const n=new Set;for(const i of t.marks)n.has(i.id)&&s.addIssue({code:_.custom,path:["marks"],message:"Duplicate mark identity"}),n.add(i.id)}),kt=l({openId:h,outputVersion:S(W).optional(),sourceId:h,sourceRevision:R,pair:l({workspaceId:h,agentId:h}).strict(),expectedEditRevision:R,edit:G,replacement:l({candidateToken:h,source:j}).strict().optional()}).strict().refine(t=>!(t.edit.blurStrokes?.length||t.edit.marks.some(s=>s.geometry.kind==="text"&&s.geometry.style==="sticky"))||t.outputVersion===W,"This edit requires an admitted output version");function X(t){const s=t.filter(i=>Number.isFinite(i.startMs)&&Number.isFinite(i.endMs)&&i.endMs>i.startMs).map(i=>({...i})).sort((i,e)=>i.startMs-e.startMs),n=[];for(const i of s){const e=n.at(-1);e&&i.startMs<=e.endMs?e.endMs=Math.max(e.endMs,i.endMs):n.push(i)}return n}function K(t,s){let n=X(t);for(const i of X(s))n=n.flatMap(e=>i.endMs<=e.startMs||i.startMs>=e.endMs?[e]:[...i.startMs>e.startMs?[{startMs:e.startMs,endMs:i.startMs}]:[],...i.endMs<e.endMs?[{startMs:i.endMs,endMs:e.endMs}]:[]]);return n}function Y(t,s,n){const i=t===n?Math.max(0,t-.001):t;return s.some(e=>i>=e.startMs&&i<e.endMs)}const N=6;function xt(t){if(t.kind==="point")return{x:t.x-N,y:t.y-N,w:N*2,h:N*2};if(t.kind==="rect")return{x:t.x,y:t.y,w:t.w,h:t.h};if(t.kind==="text"){const e=st(t);return{x:t.x,y:t.y,w:e.width,h:e.height}}const s=t.kind==="path"?t.points:[t.from,t.to],n=Math.min(...s.map(e=>e.x)),i=Math.min(...s.map(e=>e.y));return{x:n,y:i,w:Math.max(1,Math.max(...s.map(e=>e.x))-n),h:Math.max(1,Math.max(...s.map(e=>e.y))-i)}}function gt(t,s){if(!s)return!1;const n=xt(t.geometry);return n.x+n.w<s.x||n.x>s.x+s.w||n.y+n.h<s.y||n.y>s.y+s.h}function It(t){const s=K([t.trim],t.cuts);return t.marks.some(n=>n.included&&Y(n.atMs,s,t.trim.endMs))}function ts(t){return t.visuals==="clean"}function ss(t,s){const n=t.kind==="recording",i=s?.status==="ready";return{audio:{enabled:n&&t.audio==="available",reason:t.audio==="available"?null:"audio-unavailable"},transcript:{enabled:n&&i,reason:i?null:s?.status==="pending"?"transcript-pending":"transcript-unavailable"},off:{enabled:!0,reason:null}}}function ns(t,s,n,i=null){const e={version:1,kind:t.kind,sourceId:t.id,sourceRevision:t.revision,revision:0,trim:{startMs:0,endMs:t.durationMs},cuts:[],marks:structuredClone([...s]),blurRegions:[],blurStrokes:[],crop:null,video:i?.video??"highlights",voice:i?.voice??"transcript",wordEdits:{}};return t.kind==="screenshot"?(e.video="full",e.voice="off",e):(It(e)||(e.video="full"),(t.audio==="none"||n?.status==="no-speech"||e.voice==="audio"&&t.audio!=="available")&&(e.voice="off"),e)}function yt(t,s,n,i,e){const a=[],r=t.cuts.length>0||t.trim.startMs>0||t.trim.endMs<s.durationMs;if(!r&&n.words.some(o=>{const m=t.wordEdits[o.id]??o.text;return/^[\s\p{P}]*$/u.test(m)&&/^[\s\p{P}]*$/u.test(o.text)?!1:o.startMs===null||o.endMs===null||o.startMs<s.durationMs&&o.endMs>s.durationMs})){const o=[];let m=!1;for(const y of n.words){const D=t.wordEdits[y.id]??y.text;if(!D.trim()){y.text.trim()&&(m=!1);continue}/^[\s\p{P}]*$/u.test(D)?m&&(o[o.length-1]+=D.trim()):(o.push(D.trim()),m=!0)}const v=[...i].sort((y,D)=>y.mark.atMs-D.mark.atMs||y.n-D.n).map(({n:y,mark:D})=>`[mark ${y}: ${D.label||D.kind}]`).join(`
4
4
  `);return{text:[o.join(" ").replace(/[^\S\n]+/g," ").trim(),v].filter(Boolean).join(`
@@ -1 +1 @@
1
- var p=Object.defineProperty;var h=(o,e,t)=>e in o?p(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var a=(o,e,t)=>h(o,typeof e!="symbol"?e+"":e,t);import{bm as c}from"./D4MngzTk.js";import{nO as g,nM as m,nN as d}from"./BwCXlNwV.js";class l{constructor(){a(this,"types",new Map);a(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const t=this.types.get(e);if(!t)return Promise.reject(new Error(`Unknown tab type: ${e}`));const s=this.componentLoads.get(e);if(s?.registration===t)return s.promise;const n={registration:t},i="component"in t&&t.component?Promise.resolve(t.component):Promise.resolve().then(()=>t.loadComponent()).then(r=>r.default);return n.promise=i.then(r=>(this.componentLoads.get(e)===n&&(n.component=r),r)).catch(r=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),r}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const t=this.types.get(e);if(!t)return;if("component"in t)return t.component;const s=this.componentLoads.get(e);return s?.registration===t?s.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??c.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??g(e)}getDefaultWidth(e,t=0){const s=this.types.get(e);return s?m(s.defaultWidthTier,t):d(e,t)}}const b=new l;export{b as t};
1
+ var p=Object.defineProperty;var h=(o,e,t)=>e in o?p(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var a=(o,e,t)=>h(o,typeof e!="symbol"?e+"":e,t);import{bm as c}from"./NtxbXOxK.js";import{nO as g,nM as m,nN as d}from"./DUUOaZUX.js";class l{constructor(){a(this,"types",new Map);a(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const t=this.types.get(e);if(!t)return Promise.reject(new Error(`Unknown tab type: ${e}`));const s=this.componentLoads.get(e);if(s?.registration===t)return s.promise;const n={registration:t},i="component"in t&&t.component?Promise.resolve(t.component):Promise.resolve().then(()=>t.loadComponent()).then(r=>r.default);return n.promise=i.then(r=>(this.componentLoads.get(e)===n&&(n.component=r),r)).catch(r=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),r}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const t=this.types.get(e);if(!t)return;if("component"in t)return t.component;const s=this.componentLoads.get(e);return s?.registration===t?s.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??c.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??g(e)}getDefaultWidth(e,t=0){const s=this.types.get(e);return s?m(s.defaultWidthTier,t):d(e,t)}}const b=new l;export{b as t};
@@ -1 +1 @@
1
- import{t as ke,bo as x,bw as Se,b as Oe,bp as Le,br as He}from"./D4MngzTk.js";import{bo as Ae,bs as Me,a7 as O,ay as d,W as o,bn as $e,aA as w,aD as a,a5 as me,bf as te,bA as ve,c9 as p,aB as Z,ca as Ee,c5 as qe,bj as Be,bS as Y,bH as Ke,bV as Ve,c0 as je,bl as pe,b_ as de,bO as ue,am as Qe,ax as Je,be as Xe,b$ as Ye}from"./CJxGDkBm.js";import{i as Q}from"./BqUNG33_.js";import{s as ce}from"./C3DfjxaV.js";import{b as Re,s as Ze}from"./DrzhapyO.js";import{a as et,S as tt}from"./BosvHmXn.js";import{az as he,av as _e,aQ as Fe,f as rt,aa as nt}from"./DJtAtlMe.js";import"./BJKM0aco.js";import{g as at}from"./DCtyzj03.js";import{c as W}from"./o4jWsDx5.js";import{F as st}from"./BddjjpyI.js";import{G as Ne,R as ot,c as it,b as lt,a as dt,M as ut}from"./Cy1jfWDK.js";import{b as ct,a as ft,M as gt}from"./DaBtQ4Rq.js";import{M as mt}from"./ZY6P3elZ.js";import{M as vt}from"./DtAi5eiG.js";import{M as pt}from"./uDkSpspe.js";import{M as ht}from"./BEUX_9Gf.js";import{p as _t}from"./XJv96NUg.js";var bt=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),xt=Z("<div><!></div>");function wt(y,n){const u=Ae();if(new.target)return ke({component:wt,...y});Me(n,!0);let i=x(n,"id",23,()=>he(u)),f=x(n,"ref",15,null),I=x(n,"children",7),C=x(n,"child",7),K=Le(n,bt);const h=et.create({id:_e(()=>i()),ref:_e(()=>f(),r=>f(r))}),G=p(()=>Fe(K,h.props));var N={get id(){return i()},set id(r=he(u)){i(r),w()},get ref(){return f()},set ref(r=null){f(r),w()},get children(){return I()},set children(r){I(r),w()},get child(){return C()},set child(r){C(r),w()},$set:Se,$on:(r,m)=>Oe(n,r,m)},A=O(),T=d(A);{var J=r=>{var m=O(),D=d(m);ce(D,C,()=>({props:a(G)})),o(r,m)},X=r=>{var m=xt();Re(m,()=>({...a(G)}));var D=me(m);ce(D,()=>I()??te),ve(m),o(r,m)};Q(T,r=>{C()?r(J):r(X,-1)})}return o(y,A),$e(N)}var yt=new Set(["$$slots","$$events","$$legacy","id","ref","child","children"]),kt=Z("<div><!></div>");function St(y,n){const u=Ae();if(new.target)return ke({component:St,...y});Me(n,!0);let i=x(n,"id",23,()=>he(u)),f=x(n,"ref",15,null),I=x(n,"child",7),C=x(n,"children",7),K=Le(n,yt);const h=tt.create({id:_e(()=>i()),ref:_e(()=>f(),r=>f(r))}),G=p(()=>Fe(K,h.props));var N={get id(){return i()},set id(r=he(u)){i(r),w()},get ref(){return f()},set ref(r=null){f(r),w()},get child(){return I()},set child(r){I(r),w()},get children(){return C()},set children(r){C(r),w()},$set:Se,$on:(r,m)=>Oe(n,r,m)},A=O(),T=d(A);{var J=r=>{var m=O(),D=d(m);ce(D,I,()=>({props:a(G)})),o(r,m)},X=r=>{var m=kt();Re(m,()=>({...a(G)}));var D=me(m);ce(D,()=>C()??te),ve(m),o(r,m)};Q(T,r=>{I()?r(J):r(X,-1)})}return o(y,A),$e(N)}function Jt(y){return y}function Pe(y){const n=new Set,u=new Set;return y.flatMap(i=>{if(i.when===!1)return[];if(n.has(i.id))throw new Error(`Duplicate menu action id: ${i.id}`);if(n.add(i.id),i.commandId){if(u.has(i.commandId))throw new Error(`Duplicate menu command target: ${i.commandId}`);u.add(i.commandId)}if(!i.children)return[{...i}];const f=Pe(i.children);return f.length>0?[{...i,children:f}]:[]})}function Xt(y,n){const u=Pe(y),i=Math.max(0,Math.min(u.length,Math.floor(n)));return{visible:u.slice(0,i),overflow:u.slice(i)}}const ge=(y,n=te)=>{var u=Mt(),i=d(u),f=me(i),I=pe(f,!0),C=Y(f,2);{var K=N=>{var A=Ot(),T=pe(A,!0);de(()=>ue(T,n().disabledReason)),o(N,A)};Q(C,N=>{n().disabledReason&&N(K)})}ve(i);var h=Y(i,2);{var G=N=>{var A=At(),T=me(A);nt(T,{children:(J,X)=>{Xe();var r=Ye();de(()=>ue(r,n().shortcut)),o(J,r)},$$slots:{default:!0}}),ve(A),o(N,A)};Q(h,N=>{n().shortcut&&N(G)})}de(()=>ue(I,n().label)),o(y,u)},ye=(y,n=te)=>{var u=O(),i=d(u);W(i,()=>ht,(f,I)=>{I(f,{get icon(){return n().icon},children:(C,K)=>{var h=$t(),G=pe(h,!0);de(()=>ue(G,n().label)),o(C,h)},$$slots:{default:!0}})}),o(y,u)};let ne=null;var Ot=Z('<span class="block text-muted-foreground" aria-hidden="true"> </span>'),At=Z('<span class="ml-5 flex h-lh shrink-0 items-center" aria-hidden="true"><!></span>'),Mt=Z('<span class="min-w-0 flex-1"><span class="block truncate"> </span> <!></span> <!>',1),$t=Z("<span> </span>"),ae=Z("<!> <!>",1),Pt=Z('<span class="sr-only"> </span>');function It(y,n){const u=Ae();if(new.target)return ke({component:It,...y});Me(n,!0);const i=(t,e=te)=>{const _=s=>{var l=O(),$=d(l);{var L=P=>{{let R=p(()=>e().destructive?"size-4 text-current":"size-4 text-muted-foreground");st(P,{get icon(){return e().icon},size:16,get class(){return a(R)}})}};Q($,P=>{e().icon&&P(L)})}o(s,l)},g=p(()=>e().disabled||e().disabledReason!==void 0),c=p(()=>e().disabledReason?`${u}-${e().id}-reason`:void 0);var M=ae(),k=d(M);{var E=s=>{var l=O(),$=d(l);W($,()=>Ne,(L,P)=>{P(L,{children:(R,j)=>{ye(R,e)},$$slots:{default:!0}})}),o(s,l)},b=s=>{var l=O(),$=d(l);W($,()=>Ne,(L,P)=>{P(L,{get"aria-label"(){return e().label},children:(R,j)=>{var F=ae(),z=d(F);ye(z,e);var B=Y(z,2);f(B,()=>e().children,()=>a(g)),o(R,F)},$$slots:{default:!0}})}),o(s,l)},v=s=>{var l=O(),$=d(l);{let L=p(()=>e().presentation==="swatches"?"mx-auto grid w-fit grid-cols-6 gap-0 px-1 py-0.5":void 0),P=p(()=>e().presentation==="swatches"?Ge:void 0);W($,()=>ot,(R,j)=>{j(R,{get value(){return e().value},get"aria-label"(){return e().label},get class(){return a(L)},get onkeydown(){return a(P)},children:(F,z)=>{var B=ae(),ee=d(B);{var oe=le=>{ye(le,e)};Q(ee,le=>{e().presentation!=="swatches"&&le(oe)})}var ie=Y(ee,2);f(ie,()=>e().children,()=>a(g)),o(F,B)},$$slots:{default:!0}})})}o(s,l)},U=s=>{var l=O(),$=d(l);W($,()=>dt,(L,P)=>{P(L,{children:(R,j)=>{var F=ae(),z=d(F);W(z,()=>it,(ee,oe)=>{oe(ee,{get icon(){return e().icon},get disabled(){return a(g)},get"aria-describedby"(){return a(c)},get"data-action-id"(){return e().id},children:(ie,le)=>{ge(ie,e)},$$slots:{default:!0}})});var B=Y(z,2);W(B,()=>lt,(ee,oe)=>{oe(ee,{collisionPadding:8,get"data-action-menu-owner"(){return u},onkeydown:Te,children:(ie,le)=>{f(ie,()=>e().children)},$$slots:{default:!0}})}),o(R,F)},$$slots:{default:!0}})}),o(s,l)},S=s=>{var l=O(),$=d(l);{let L=p(()=>e().swatch?e().label:void 0),P=p(()=>e().icon?_:void 0),R=p(()=>e().closeOnSelect??!1);W($,()=>ut,(j,F)=>{F(j,{get value(){return e().value},get swatch(){return e().swatch},get"aria-label"(){return a(L)},get leading(){return a(P)},get disabled(){return a(g)},get"aria-describedby"(){return a(c)},get closeOnSelect(){return a(R)},onSelect:z=>we(e(),z),get"data-action-id"(){return e().id},children:(z,B)=>{ge(z,e)},$$slots:{default:!0}})})}o(s,l)},q=s=>{var l=O(),$=d(l);{let L=p(()=>e().icon?_:void 0),P=p(()=>e().kind==="checkbox"&&e().indeterminate),R=p(()=>e().kind==="checkbox"?e().indicator:void 0),j=p(()=>e().closeOnSelect??!1);W($,()=>vt,(F,z)=>{z(F,{get checked(){return e().checked},get leading(){return a(L)},get indeterminate(){return a(P)},get indicator(){return a(R)},get disabled(){return a(g)},get"aria-describedby"(){return a(c)},get closeOnSelect(){return a(j)},onSelect:B=>we(e(),B),get"data-action-id"(){return e().id},children:(B,ee)=>{ge(B,e)},$$slots:{default:!0}})})}o(s,l)},H=s=>{var l=O(),$=d(l);{let L=p(()=>e().icon?_:void 0),P=p(()=>e().closeOnSelect??!0);W($,()=>pt,(R,j)=>{j(R,{get disabled(){return a(g)},get leading(){return a(L)},get destructive(){return e().destructive},get"aria-describedby"(){return a(c)},get closeOnSelect(){return a(P)},onSelect:F=>we(e(),F),get"data-action-id"(){return e().id},children:(F,z)=>{ge(F,e)},$$slots:{default:!0}})})}o(s,l)};Q(k,s=>{e().kind==="label"?s(E):e().kind==="section"?s(b,1):e().kind==="radio-group"?s(v,2):e().children?.length?s(U,3):e().kind==="radio"?s(S,4):e().checked!==void 0?s(q,5):s(H,-1)})}var re=Y(k,2);{var V=s=>{var l=Pt(),$=pe(l,!0);de(()=>{Ze(l,"id",a(c)),ue($,e().disabledReason)}),o(s,l)};Q(re,s=>{e().disabledReason&&s(V)})}o(t,M)},f=(t,e=te,_)=>{let g=Qe(()=>Je(_?.(),!1));var c=O(),M=d(c);at(M,19,e,k=>k.id,(k,E,b)=>{var v=ae(),U=d(v);{var S=H=>{var re=O(),V=d(re);W(V,()=>mt,(s,l)=>{l(s,{})}),o(H,re)};Q(U,H=>{a(b)>0&&(a(E).group!==e()[a(b)-1]?.group||a(E).kind==="section"||a(E).kind==="radio-group"||e()[a(b)-1]?.kind==="section"||e()[a(b)-1]?.kind==="radio-group")&&H(S)})}var q=Y(U,2);{let H=p(()=>a(g)?{...a(E),disabled:!0}:a(E));i(q,()=>a(H))}o(k,v)}),o(t,c)};let I=x(n,"actions",7),C=x(n,"onAction",7),K=x(n,"trigger",7),h=x(n,"contextMenu",7),G=x(n,"onOpenChange",7),N=x(n,"onInteractOutside",7),A=x(n,"ariaLabel",7),T=x(n,"open",15,!1),J=x(n,"align",7,"start"),X=x(n,"side",7,"bottom"),r=x(n,"class",7);const m=p(()=>Pe(I()));let D=null,be=Ve(null),fe,xe=!1,Ie=[];function Ce(){return Array.from(document.querySelectorAll("a[href],button,input,select,textarea,[tabindex]")).filter(t=>t.tabIndex>=0&&!t.matches(":disabled")&&!t.closest('[data-action-menu-owner],[aria-hidden="true"],[inert]'))}Ee(()=>{if(!h())return;const{x:t,y:e,returnFocus:_}=h();fe?.x===t&&fe?.y===e&&fe?.returnFocus===_||(fe={x:t,y:e,returnFocus:_},qe(()=>{D=_??(document.activeElement instanceof HTMLElement?document.activeElement:null);const g=Ce(),c=g.filter(k=>D&&!!(D.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_FOLLOWING)),M=g.filter(k=>D&&!!(D.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_PRECEDING)).reverse();Ie=[...c,...M],xe=!1,T(!0)}))});function we(t,e){t.disabled||t.disabledReason!==void 0||C()?.(t.id,e)}function Ge(t){const e=t.key==="ArrowLeft"||t.key==="ArrowRight",_=t.key==="ArrowUp"||t.key==="ArrowDown";if(!e&&!_)return;const g=t.currentTarget,c=Array.from(g.querySelectorAll('[role="menuitemradio"]:not([data-disabled])')).filter(v=>v.getAttribute("aria-disabled")!=="true"),M=c.indexOf(document.activeElement);if(M<0||c.length===0)return;const k=c[M],E=c.filter(v=>v.offsetTop===k.offsetTop);let b;if(e){const v=getComputedStyle(g).direction==="rtl"?-1:1,U=(t.key==="ArrowRight"?1:-1)*v;b=E[(E.indexOf(k)+U+E.length)%E.length]}else{const v=t.key==="ArrowDown"?1:-1;if(b=c.filter(S=>(S.offsetTop-k.offsetTop)*v>0).sort((S,q)=>S.offsetTop===q.offsetTop?Math.abs(S.offsetLeft-k.offsetLeft)-Math.abs(q.offsetLeft-k.offsetLeft):(S.offsetTop-q.offsetTop)*v)[0],!b){const S=Array.from(g.closest('[role="menu"]')?.querySelectorAll("[data-menu-item]")??[]).filter(H=>!H.hasAttribute("data-disabled")&&H.getAttribute("aria-disabled")!=="true"),q=v<0?c[0]:c.at(-1);b=S[(S.indexOf(q)+v+S.length)%S.length]}}t.preventDefault(),t.stopPropagation(),b?.focus({preventScroll:!0}),b?.scrollIntoView({block:"nearest",inline:"nearest"})}function se(){T(!1),G()?.(!1)}function Ue(t){if(!h()||(t.preventDefault(),xe))return;const e=document.activeElement;if(e!==document.body&&e!==a(be)&&!(e instanceof Element&&e.closest("[data-action-menu-owner]")?.getAttribute("data-action-menu-owner")===u))return;(D?.isConnected?D:Ie.find(g=>g.isConnected&&!g.matches(":disabled")&&!g.closest('[hidden],[inert],[aria-hidden="true"]')))?.focus({preventScroll:!0})}function Te(t){if(!h()||t.key!=="Tab"||t.defaultPrevented)return;t.preventDefault();const e=D,_=Ce().filter(M=>M.getClientRects().length>0),g=t.shiftKey?_.reverse():_,c=e?.isConnected?g.find(M=>M!==e&&!!(e.compareDocumentPosition(M)&(t.shiftKey?Node.DOCUMENT_POSITION_PRECEDING:Node.DOCUMENT_POSITION_FOLLOWING))):void 0;xe=!0,se(),je().then(()=>(c??(e?.isConnected?e:null))?.focus({preventScroll:!0}))}Ee(()=>{if(!T()){ne===se&&(ne=null);return}const t=ne;ne=se,t&&t!==se&&t()}),Be(()=>{ne===se&&(ne=null)});var We={get actions(){return I()},set actions(t){I(t),w()},get onAction(){return C()},set onAction(t){C(t),w()},get trigger(){return K()},set trigger(t){K(t),w()},get contextMenu(){return h()},set contextMenu(t){h(t),w()},get onOpenChange(){return G()},set onOpenChange(t){G(t),w()},get onInteractOutside(){return N()},set onInteractOutside(t){N(t),w()},get ariaLabel(){return A()},set ariaLabel(t){A(t),w()},get open(){return T()},set open(t=!1){T(t),w()},get align(){return J()},set align(t="start"){J(t),w()},get side(){return X()},set side(t="bottom"){X(t),w()},get class(){return r()},set class(t){r(t),w()},$set:Se,$on:(t,e)=>Oe(n,t,e)},De=O(),ze=d(De);return W(ze,()=>gt,(t,e)=>{e(t,{get onOpenChange(){return G()},get open(){return T()},set open(_){T(_)},children:(_,g)=>{var c=ae(),M=d(c);{const E=(b,v)=>{let U=()=>(v?.()).props;var S=O(),q=d(S);{var H=V=>{{let s=p(()=>`left: ${h().x}px; top: ${h().y}px;`);rt(V,He(U,{type:"button",get"aria-label"(){return A()},"aria-hidden":"true",tabindex:-1,class:"pointer-events-none fixed size-px p-0 opacity-0",get style(){return a(s)}}))}},re=V=>{var s=O(),l=d(s);ce(l,()=>K()??te,()=>({props:U(),open:T()})),o(V,s)};Q(q,V=>{h()?V(H):V(re,-1)})}o(b,S)};W(M,()=>ct,(b,v)=>{v(b,{child:E,$$slots:{child:!0}})})}var k=Y(M,2);{let E=p(()=>h()?0:4);W(k,()=>ft,(b,v)=>{v(b,{alignIconColumn:!0,get align(){return J()},get side(){return X()},get sideOffset(){return a(E)},collisionPadding:8,get"aria-label"(){return A()},get"data-action-menu-owner"(){return u},onCloseAutoFocus:Ue,get onInteractOutside(){return N()},onkeydown:Te,get class(){return r()},get ref(){return a(be)},set ref(U){Ke(be,U,!0)},children:(U,S)=>{f(U,()=>a(m))},$$slots:{default:!0}})})}o(_,c)},$$slots:{default:!0}})}),o(y,De),$e(We)}const Ct=[{id:"action-menu-states",title:"Action menu states",states:["default","disabled","nested","context-menu","action-bar","overflow"],themes:["light","dark"],viewport:"both"}];_t({id:"action-menu",source:"src/lib/components/patterns/action-menu/index.ts",publicImport:"$lib/components/patterns/action-menu",exports:["ActionBar","ActionMenu","defineActions","resolveActions","splitActions"],owner:"design-system",fixtures:Ct,useWhen:["One command definition must drive inline, overflow, and context menu presentations.","Actions need declarative visibility, grouping, shortcuts, disabled reasons, or submenus.",'Use radio-group presentation="swatches" and named radio choices with semantic HSL swatch values for an inline color palette.'],dontUseWhen:["Choosing a persisted value from a form control.","Rendering navigation whose destinations are the primary content."],replaces:["Callback-bearing menu arrays and duplicated inline/overflow action markup."]});export{It as A,wt as S,St as a,Jt as d,Xt as s};
1
+ import{t as ke,bo as x,bw as Se,b as Oe,bp as Le,br as He}from"./NtxbXOxK.js";import{bo as Ae,bs as Me,a7 as O,ay as d,W as o,bn as $e,aA as w,aD as a,a5 as me,bf as te,bA as ve,c9 as p,aB as Z,ca as Ee,c5 as qe,bj as Be,bS as Y,bH as Ke,bV as Ve,c0 as je,bl as pe,b_ as de,bO as ue,am as Qe,ax as Je,be as Xe,b$ as Ye}from"./CJxGDkBm.js";import{i as Q}from"./DrPmlbuk.js";import{s as ce}from"./BpozSsrs.js";import{b as Re,s as Ze}from"./puisNM3r.js";import{a as et,S as tt}from"./DT7EyIEo.js";import{az as he,av as _e,aQ as Fe,f as rt,aa as nt}from"./Bst2sLeL.js";import"./DcsVySxU.js";import{g as at}from"./jSlXIbXa.js";import{c as W}from"./CDAGrCMS.js";import{F as st}from"./S6AtfZPI.js";import{G as Ne,R as ot,c as it,b as lt,a as dt,M as ut}from"./CJx5kB-H.js";import{b as ct,a as ft,M as gt}from"./CKZSqILX.js";import{M as mt}from"./Ca98gcvs.js";import{M as vt}from"./BX3Qm7r_.js";import{M as pt}from"./Dn7IHtB4.js";import{M as ht}from"./BpCBwtvA.js";import{p as _t}from"./XJv96NUg.js";var bt=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),xt=Z("<div><!></div>");function wt(y,n){const u=Ae();if(new.target)return ke({component:wt,...y});Me(n,!0);let i=x(n,"id",23,()=>he(u)),f=x(n,"ref",15,null),I=x(n,"children",7),C=x(n,"child",7),K=Le(n,bt);const h=et.create({id:_e(()=>i()),ref:_e(()=>f(),r=>f(r))}),G=p(()=>Fe(K,h.props));var N={get id(){return i()},set id(r=he(u)){i(r),w()},get ref(){return f()},set ref(r=null){f(r),w()},get children(){return I()},set children(r){I(r),w()},get child(){return C()},set child(r){C(r),w()},$set:Se,$on:(r,m)=>Oe(n,r,m)},A=O(),T=d(A);{var J=r=>{var m=O(),D=d(m);ce(D,C,()=>({props:a(G)})),o(r,m)},X=r=>{var m=xt();Re(m,()=>({...a(G)}));var D=me(m);ce(D,()=>I()??te),ve(m),o(r,m)};Q(T,r=>{C()?r(J):r(X,-1)})}return o(y,A),$e(N)}var yt=new Set(["$$slots","$$events","$$legacy","id","ref","child","children"]),kt=Z("<div><!></div>");function St(y,n){const u=Ae();if(new.target)return ke({component:St,...y});Me(n,!0);let i=x(n,"id",23,()=>he(u)),f=x(n,"ref",15,null),I=x(n,"child",7),C=x(n,"children",7),K=Le(n,yt);const h=tt.create({id:_e(()=>i()),ref:_e(()=>f(),r=>f(r))}),G=p(()=>Fe(K,h.props));var N={get id(){return i()},set id(r=he(u)){i(r),w()},get ref(){return f()},set ref(r=null){f(r),w()},get child(){return I()},set child(r){I(r),w()},get children(){return C()},set children(r){C(r),w()},$set:Se,$on:(r,m)=>Oe(n,r,m)},A=O(),T=d(A);{var J=r=>{var m=O(),D=d(m);ce(D,I,()=>({props:a(G)})),o(r,m)},X=r=>{var m=kt();Re(m,()=>({...a(G)}));var D=me(m);ce(D,()=>C()??te),ve(m),o(r,m)};Q(T,r=>{I()?r(J):r(X,-1)})}return o(y,A),$e(N)}function Jt(y){return y}function Pe(y){const n=new Set,u=new Set;return y.flatMap(i=>{if(i.when===!1)return[];if(n.has(i.id))throw new Error(`Duplicate menu action id: ${i.id}`);if(n.add(i.id),i.commandId){if(u.has(i.commandId))throw new Error(`Duplicate menu command target: ${i.commandId}`);u.add(i.commandId)}if(!i.children)return[{...i}];const f=Pe(i.children);return f.length>0?[{...i,children:f}]:[]})}function Xt(y,n){const u=Pe(y),i=Math.max(0,Math.min(u.length,Math.floor(n)));return{visible:u.slice(0,i),overflow:u.slice(i)}}const ge=(y,n=te)=>{var u=Mt(),i=d(u),f=me(i),I=pe(f,!0),C=Y(f,2);{var K=N=>{var A=Ot(),T=pe(A,!0);de(()=>ue(T,n().disabledReason)),o(N,A)};Q(C,N=>{n().disabledReason&&N(K)})}ve(i);var h=Y(i,2);{var G=N=>{var A=At(),T=me(A);nt(T,{children:(J,X)=>{Xe();var r=Ye();de(()=>ue(r,n().shortcut)),o(J,r)},$$slots:{default:!0}}),ve(A),o(N,A)};Q(h,N=>{n().shortcut&&N(G)})}de(()=>ue(I,n().label)),o(y,u)},ye=(y,n=te)=>{var u=O(),i=d(u);W(i,()=>ht,(f,I)=>{I(f,{get icon(){return n().icon},children:(C,K)=>{var h=$t(),G=pe(h,!0);de(()=>ue(G,n().label)),o(C,h)},$$slots:{default:!0}})}),o(y,u)};let ne=null;var Ot=Z('<span class="block text-muted-foreground" aria-hidden="true"> </span>'),At=Z('<span class="ml-5 flex h-lh shrink-0 items-center" aria-hidden="true"><!></span>'),Mt=Z('<span class="min-w-0 flex-1"><span class="block truncate"> </span> <!></span> <!>',1),$t=Z("<span> </span>"),ae=Z("<!> <!>",1),Pt=Z('<span class="sr-only"> </span>');function It(y,n){const u=Ae();if(new.target)return ke({component:It,...y});Me(n,!0);const i=(t,e=te)=>{const _=s=>{var l=O(),$=d(l);{var L=P=>{{let R=p(()=>e().destructive?"size-4 text-current":"size-4 text-muted-foreground");st(P,{get icon(){return e().icon},size:16,get class(){return a(R)}})}};Q($,P=>{e().icon&&P(L)})}o(s,l)},g=p(()=>e().disabled||e().disabledReason!==void 0),c=p(()=>e().disabledReason?`${u}-${e().id}-reason`:void 0);var M=ae(),k=d(M);{var E=s=>{var l=O(),$=d(l);W($,()=>Ne,(L,P)=>{P(L,{children:(R,j)=>{ye(R,e)},$$slots:{default:!0}})}),o(s,l)},b=s=>{var l=O(),$=d(l);W($,()=>Ne,(L,P)=>{P(L,{get"aria-label"(){return e().label},children:(R,j)=>{var F=ae(),z=d(F);ye(z,e);var B=Y(z,2);f(B,()=>e().children,()=>a(g)),o(R,F)},$$slots:{default:!0}})}),o(s,l)},v=s=>{var l=O(),$=d(l);{let L=p(()=>e().presentation==="swatches"?"mx-auto grid w-fit grid-cols-6 gap-0 px-1 py-0.5":void 0),P=p(()=>e().presentation==="swatches"?Ge:void 0);W($,()=>ot,(R,j)=>{j(R,{get value(){return e().value},get"aria-label"(){return e().label},get class(){return a(L)},get onkeydown(){return a(P)},children:(F,z)=>{var B=ae(),ee=d(B);{var oe=le=>{ye(le,e)};Q(ee,le=>{e().presentation!=="swatches"&&le(oe)})}var ie=Y(ee,2);f(ie,()=>e().children,()=>a(g)),o(F,B)},$$slots:{default:!0}})})}o(s,l)},U=s=>{var l=O(),$=d(l);W($,()=>dt,(L,P)=>{P(L,{children:(R,j)=>{var F=ae(),z=d(F);W(z,()=>it,(ee,oe)=>{oe(ee,{get icon(){return e().icon},get disabled(){return a(g)},get"aria-describedby"(){return a(c)},get"data-action-id"(){return e().id},children:(ie,le)=>{ge(ie,e)},$$slots:{default:!0}})});var B=Y(z,2);W(B,()=>lt,(ee,oe)=>{oe(ee,{collisionPadding:8,get"data-action-menu-owner"(){return u},onkeydown:Te,children:(ie,le)=>{f(ie,()=>e().children)},$$slots:{default:!0}})}),o(R,F)},$$slots:{default:!0}})}),o(s,l)},S=s=>{var l=O(),$=d(l);{let L=p(()=>e().swatch?e().label:void 0),P=p(()=>e().icon?_:void 0),R=p(()=>e().closeOnSelect??!1);W($,()=>ut,(j,F)=>{F(j,{get value(){return e().value},get swatch(){return e().swatch},get"aria-label"(){return a(L)},get leading(){return a(P)},get disabled(){return a(g)},get"aria-describedby"(){return a(c)},get closeOnSelect(){return a(R)},onSelect:z=>we(e(),z),get"data-action-id"(){return e().id},children:(z,B)=>{ge(z,e)},$$slots:{default:!0}})})}o(s,l)},q=s=>{var l=O(),$=d(l);{let L=p(()=>e().icon?_:void 0),P=p(()=>e().kind==="checkbox"&&e().indeterminate),R=p(()=>e().kind==="checkbox"?e().indicator:void 0),j=p(()=>e().closeOnSelect??!1);W($,()=>vt,(F,z)=>{z(F,{get checked(){return e().checked},get leading(){return a(L)},get indeterminate(){return a(P)},get indicator(){return a(R)},get disabled(){return a(g)},get"aria-describedby"(){return a(c)},get closeOnSelect(){return a(j)},onSelect:B=>we(e(),B),get"data-action-id"(){return e().id},children:(B,ee)=>{ge(B,e)},$$slots:{default:!0}})})}o(s,l)},H=s=>{var l=O(),$=d(l);{let L=p(()=>e().icon?_:void 0),P=p(()=>e().closeOnSelect??!0);W($,()=>pt,(R,j)=>{j(R,{get disabled(){return a(g)},get leading(){return a(L)},get destructive(){return e().destructive},get"aria-describedby"(){return a(c)},get closeOnSelect(){return a(P)},onSelect:F=>we(e(),F),get"data-action-id"(){return e().id},children:(F,z)=>{ge(F,e)},$$slots:{default:!0}})})}o(s,l)};Q(k,s=>{e().kind==="label"?s(E):e().kind==="section"?s(b,1):e().kind==="radio-group"?s(v,2):e().children?.length?s(U,3):e().kind==="radio"?s(S,4):e().checked!==void 0?s(q,5):s(H,-1)})}var re=Y(k,2);{var V=s=>{var l=Pt(),$=pe(l,!0);de(()=>{Ze(l,"id",a(c)),ue($,e().disabledReason)}),o(s,l)};Q(re,s=>{e().disabledReason&&s(V)})}o(t,M)},f=(t,e=te,_)=>{let g=Qe(()=>Je(_?.(),!1));var c=O(),M=d(c);at(M,19,e,k=>k.id,(k,E,b)=>{var v=ae(),U=d(v);{var S=H=>{var re=O(),V=d(re);W(V,()=>mt,(s,l)=>{l(s,{})}),o(H,re)};Q(U,H=>{a(b)>0&&(a(E).group!==e()[a(b)-1]?.group||a(E).kind==="section"||a(E).kind==="radio-group"||e()[a(b)-1]?.kind==="section"||e()[a(b)-1]?.kind==="radio-group")&&H(S)})}var q=Y(U,2);{let H=p(()=>a(g)?{...a(E),disabled:!0}:a(E));i(q,()=>a(H))}o(k,v)}),o(t,c)};let I=x(n,"actions",7),C=x(n,"onAction",7),K=x(n,"trigger",7),h=x(n,"contextMenu",7),G=x(n,"onOpenChange",7),N=x(n,"onInteractOutside",7),A=x(n,"ariaLabel",7),T=x(n,"open",15,!1),J=x(n,"align",7,"start"),X=x(n,"side",7,"bottom"),r=x(n,"class",7);const m=p(()=>Pe(I()));let D=null,be=Ve(null),fe,xe=!1,Ie=[];function Ce(){return Array.from(document.querySelectorAll("a[href],button,input,select,textarea,[tabindex]")).filter(t=>t.tabIndex>=0&&!t.matches(":disabled")&&!t.closest('[data-action-menu-owner],[aria-hidden="true"],[inert]'))}Ee(()=>{if(!h())return;const{x:t,y:e,returnFocus:_}=h();fe?.x===t&&fe?.y===e&&fe?.returnFocus===_||(fe={x:t,y:e,returnFocus:_},qe(()=>{D=_??(document.activeElement instanceof HTMLElement?document.activeElement:null);const g=Ce(),c=g.filter(k=>D&&!!(D.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_FOLLOWING)),M=g.filter(k=>D&&!!(D.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_PRECEDING)).reverse();Ie=[...c,...M],xe=!1,T(!0)}))});function we(t,e){t.disabled||t.disabledReason!==void 0||C()?.(t.id,e)}function Ge(t){const e=t.key==="ArrowLeft"||t.key==="ArrowRight",_=t.key==="ArrowUp"||t.key==="ArrowDown";if(!e&&!_)return;const g=t.currentTarget,c=Array.from(g.querySelectorAll('[role="menuitemradio"]:not([data-disabled])')).filter(v=>v.getAttribute("aria-disabled")!=="true"),M=c.indexOf(document.activeElement);if(M<0||c.length===0)return;const k=c[M],E=c.filter(v=>v.offsetTop===k.offsetTop);let b;if(e){const v=getComputedStyle(g).direction==="rtl"?-1:1,U=(t.key==="ArrowRight"?1:-1)*v;b=E[(E.indexOf(k)+U+E.length)%E.length]}else{const v=t.key==="ArrowDown"?1:-1;if(b=c.filter(S=>(S.offsetTop-k.offsetTop)*v>0).sort((S,q)=>S.offsetTop===q.offsetTop?Math.abs(S.offsetLeft-k.offsetLeft)-Math.abs(q.offsetLeft-k.offsetLeft):(S.offsetTop-q.offsetTop)*v)[0],!b){const S=Array.from(g.closest('[role="menu"]')?.querySelectorAll("[data-menu-item]")??[]).filter(H=>!H.hasAttribute("data-disabled")&&H.getAttribute("aria-disabled")!=="true"),q=v<0?c[0]:c.at(-1);b=S[(S.indexOf(q)+v+S.length)%S.length]}}t.preventDefault(),t.stopPropagation(),b?.focus({preventScroll:!0}),b?.scrollIntoView({block:"nearest",inline:"nearest"})}function se(){T(!1),G()?.(!1)}function Ue(t){if(!h()||(t.preventDefault(),xe))return;const e=document.activeElement;if(e!==document.body&&e!==a(be)&&!(e instanceof Element&&e.closest("[data-action-menu-owner]")?.getAttribute("data-action-menu-owner")===u))return;(D?.isConnected?D:Ie.find(g=>g.isConnected&&!g.matches(":disabled")&&!g.closest('[hidden],[inert],[aria-hidden="true"]')))?.focus({preventScroll:!0})}function Te(t){if(!h()||t.key!=="Tab"||t.defaultPrevented)return;t.preventDefault();const e=D,_=Ce().filter(M=>M.getClientRects().length>0),g=t.shiftKey?_.reverse():_,c=e?.isConnected?g.find(M=>M!==e&&!!(e.compareDocumentPosition(M)&(t.shiftKey?Node.DOCUMENT_POSITION_PRECEDING:Node.DOCUMENT_POSITION_FOLLOWING))):void 0;xe=!0,se(),je().then(()=>(c??(e?.isConnected?e:null))?.focus({preventScroll:!0}))}Ee(()=>{if(!T()){ne===se&&(ne=null);return}const t=ne;ne=se,t&&t!==se&&t()}),Be(()=>{ne===se&&(ne=null)});var We={get actions(){return I()},set actions(t){I(t),w()},get onAction(){return C()},set onAction(t){C(t),w()},get trigger(){return K()},set trigger(t){K(t),w()},get contextMenu(){return h()},set contextMenu(t){h(t),w()},get onOpenChange(){return G()},set onOpenChange(t){G(t),w()},get onInteractOutside(){return N()},set onInteractOutside(t){N(t),w()},get ariaLabel(){return A()},set ariaLabel(t){A(t),w()},get open(){return T()},set open(t=!1){T(t),w()},get align(){return J()},set align(t="start"){J(t),w()},get side(){return X()},set side(t="bottom"){X(t),w()},get class(){return r()},set class(t){r(t),w()},$set:Se,$on:(t,e)=>Oe(n,t,e)},De=O(),ze=d(De);return W(ze,()=>gt,(t,e)=>{e(t,{get onOpenChange(){return G()},get open(){return T()},set open(_){T(_)},children:(_,g)=>{var c=ae(),M=d(c);{const E=(b,v)=>{let U=()=>(v?.()).props;var S=O(),q=d(S);{var H=V=>{{let s=p(()=>`left: ${h().x}px; top: ${h().y}px;`);rt(V,He(U,{type:"button",get"aria-label"(){return A()},"aria-hidden":"true",tabindex:-1,class:"pointer-events-none fixed size-px p-0 opacity-0",get style(){return a(s)}}))}},re=V=>{var s=O(),l=d(s);ce(l,()=>K()??te,()=>({props:U(),open:T()})),o(V,s)};Q(q,V=>{h()?V(H):V(re,-1)})}o(b,S)};W(M,()=>ct,(b,v)=>{v(b,{child:E,$$slots:{child:!0}})})}var k=Y(M,2);{let E=p(()=>h()?0:4);W(k,()=>ft,(b,v)=>{v(b,{alignIconColumn:!0,get align(){return J()},get side(){return X()},get sideOffset(){return a(E)},collisionPadding:8,get"aria-label"(){return A()},get"data-action-menu-owner"(){return u},onCloseAutoFocus:Ue,get onInteractOutside(){return N()},onkeydown:Te,get class(){return r()},get ref(){return a(be)},set ref(U){Ke(be,U,!0)},children:(U,S)=>{f(U,()=>a(m))},$$slots:{default:!0}})})}o(_,c)},$$slots:{default:!0}})}),o(y,De),$e(We)}const Ct=[{id:"action-menu-states",title:"Action menu states",states:["default","disabled","nested","context-menu","action-bar","overflow"],themes:["light","dark"],viewport:"both"}];_t({id:"action-menu",source:"src/lib/components/patterns/action-menu/index.ts",publicImport:"$lib/components/patterns/action-menu",exports:["ActionBar","ActionMenu","defineActions","resolveActions","splitActions"],owner:"design-system",fixtures:Ct,useWhen:["One command definition must drive inline, overflow, and context menu presentations.","Actions need declarative visibility, grouping, shortcuts, disabled reasons, or submenus.",'Use radio-group presentation="swatches" and named radio choices with semantic HSL swatch values for an inline color palette.'],dontUseWhen:["Choosing a persisted value from a form control.","Rendering navigation whose destinations are the primary content."],replaces:["Callback-bearing menu arrays and duplicated inline/overflow action markup."]});export{It as A,wt as S,St as a,Jt as d,Xt as s};
@@ -1 +1 @@
1
- import{t as te,bo as r,bw as ae,b as re,bp as se}from"./D4MngzTk.js";import{bo as ie,bs as ne,ay as oe,bS as le,aD as i,W as _,bn as de,c9 as f,aA as s,be as ue,b$ as fe,b_ as ce,bO as me,aB as K}from"./CJxGDkBm.js";import{i as H}from"./BqUNG33_.js";import{b as M,e as S}from"./DrzhapyO.js";import{b as ge,a as N}from"./Cc2R8pz2.js";import{b as O}from"./NtFyWdpR.js";import{b as W,d as q,a as G,e as be,f as ve,t as ye,I as pe}from"./BTLBASJX.js";import"./COizPexY.js";import{a_ as xe}from"./DJtAtlMe.js";var _e=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),J=K("<input/>"),Se=K("<!> <!>",1);function ze(F,t){const E=ie();if(new.target)return te({component:ze,...F});ne(t,!0);const L=xe();let o=r(t,"ref",15),m=r(t,"id",7),g=r(t,"value",15),b=r(t,"type",7),l=r(t,"size",7),z=r(t,"files",15),d=r(t,"variant",7,"default"),v=r(t,"noFocusStyle",7,!1),h=r(t,"message",7),c=r(t,"error",7),y=r(t,"messageId",23,()=>`${E}-message`),I=r(t,"aria-describedby",7),C=r(t,"aria-invalid",7),u=r(t,"class",7),p=r(t,"data-slot",7,"input"),B=se(t,_e);const x=f(()=>typeof l()=="string"?l():L),R=f(()=>typeof l()=="number"?l():void 0),w=f(()=>c()??h()),k=f(()=>[I(),i(w)?y():void 0].filter(Boolean).join(" ")||void 0),D=f(()=>c()?!0:C());function Q(){o()?.focus()}function T(){o()?.blur()}function U(){o()?.select()}function V(e,a,n){o()?.setSelectionRange(e,a,n)}var X={focus:Q,blur:T,select:U,setSelectionRange:V,get ref(){return o()},set ref(e){o(e),s()},get id(){return m()},set id(e){m(e),s()},get value(){return g()},set value(e){g(e),s()},get type(){return b()},set type(e){b(e),s()},get size(){return l()},set size(e){l(e),s()},get files(){return z()},set files(e){z(e),s()},get variant(){return d()},set variant(e="default"){d(e),s()},get noFocusStyle(){return v()},set noFocusStyle(e=!1){v(e),s()},get message(){return h()},set message(e){h(e),s()},get error(){return c()},set error(e){c(e),s()},get messageId(){return y()},set messageId(e=`${E}-message`){y(e),s()},get"aria-describedby"(){return I()},set"aria-describedby"(e){I(e),s()},get"aria-invalid"(){return C()},set"aria-invalid"(e){C(e),s()},get class(){return u()},set class(e){u(e),s()},get"data-slot"(){return p()},set"data-slot"(e="input"){p(e),s()},$set:ae,$on:(e,a)=>re(t,e,a)},P=Se(),j=oe(P);{var Y=e=>{var a=J();M(a,n=>({id:m(),"data-slot":p(),"data-size":i(x),class:n,type:"file",size:i(R),"aria-describedby":i(k),"aria-invalid":i(D),...B}),[()=>S("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",G,"focus-visible:-outline-offset-2",q(i(x)),v()&&W,u())],void 0,void 0,void 0,!0),O(a,n=>o(n),()=>o()),ge(a,z),N(a,g),_(e,a)},Z=e=>{var a=J();M(a,n=>({id:m(),"data-slot":p(),"data-size":i(x),"data-variant":d()==="default"?void 0:d(),class:n,type:b(),size:i(R),"aria-describedby":i(k),"aria-invalid":i(D),autocorrect:"off",autocapitalize:"off",spellcheck:"false",...B}),[()=>d()==="inline"?S("selection:bg-primary selection:text-primary-foreground",be,u()):d()==="search"?S("flex selection:bg-primary selection:text-primary-foreground",ve,u()):S("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",G,ye,q(i(x)),v()&&W,u())],void 0,void 0,void 0,!0),O(a,n=>o(n),()=>o()),N(a,g),_(e,a)};H(j,e=>{b()==="file"?e(Y):e(Z,-1)})}var $=le(j,2);{var ee=e=>{{let a=f(()=>c()?"error":"helper");pe(e,{get id(){return y()},get tone(){return i(a)},children:(n,he)=>{ue();var A=fe();ce(()=>me(A,i(w))),_(n,A)},$$slots:{default:!0}})}};H($,e=>{i(w)&&e(ee)})}return _(F,P),de(X)}export{ze as I};
1
+ import{t as te,bo as r,bw as ae,b as re,bp as se}from"./NtxbXOxK.js";import{bo as ie,bs as ne,ay as oe,bS as le,aD as i,W as _,bn as de,c9 as f,aA as s,be as ue,b$ as fe,b_ as ce,bO as me,aB as K}from"./CJxGDkBm.js";import{i as H}from"./DrPmlbuk.js";import{b as M,e as S}from"./puisNM3r.js";import{b as ge,a as N}from"./Cc2R8pz2.js";import{b as O}from"./NtFyWdpR.js";import{b as W,d as q,a as G,e as be,f as ve,t as ye,I as pe}from"./wZqQTU3s.js";import"./LQm_WUG-.js";import{a_ as xe}from"./Bst2sLeL.js";var _e=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),J=K("<input/>"),Se=K("<!> <!>",1);function ze(F,t){const E=ie();if(new.target)return te({component:ze,...F});ne(t,!0);const L=xe();let o=r(t,"ref",15),m=r(t,"id",7),g=r(t,"value",15),b=r(t,"type",7),l=r(t,"size",7),z=r(t,"files",15),d=r(t,"variant",7,"default"),v=r(t,"noFocusStyle",7,!1),h=r(t,"message",7),c=r(t,"error",7),y=r(t,"messageId",23,()=>`${E}-message`),I=r(t,"aria-describedby",7),C=r(t,"aria-invalid",7),u=r(t,"class",7),p=r(t,"data-slot",7,"input"),B=se(t,_e);const x=f(()=>typeof l()=="string"?l():L),R=f(()=>typeof l()=="number"?l():void 0),w=f(()=>c()??h()),k=f(()=>[I(),i(w)?y():void 0].filter(Boolean).join(" ")||void 0),D=f(()=>c()?!0:C());function Q(){o()?.focus()}function T(){o()?.blur()}function U(){o()?.select()}function V(e,a,n){o()?.setSelectionRange(e,a,n)}var X={focus:Q,blur:T,select:U,setSelectionRange:V,get ref(){return o()},set ref(e){o(e),s()},get id(){return m()},set id(e){m(e),s()},get value(){return g()},set value(e){g(e),s()},get type(){return b()},set type(e){b(e),s()},get size(){return l()},set size(e){l(e),s()},get files(){return z()},set files(e){z(e),s()},get variant(){return d()},set variant(e="default"){d(e),s()},get noFocusStyle(){return v()},set noFocusStyle(e=!1){v(e),s()},get message(){return h()},set message(e){h(e),s()},get error(){return c()},set error(e){c(e),s()},get messageId(){return y()},set messageId(e=`${E}-message`){y(e),s()},get"aria-describedby"(){return I()},set"aria-describedby"(e){I(e),s()},get"aria-invalid"(){return C()},set"aria-invalid"(e){C(e),s()},get class(){return u()},set class(e){u(e),s()},get"data-slot"(){return p()},set"data-slot"(e="input"){p(e),s()},$set:ae,$on:(e,a)=>re(t,e,a)},P=Se(),j=oe(P);{var Y=e=>{var a=J();M(a,n=>({id:m(),"data-slot":p(),"data-size":i(x),class:n,type:"file",size:i(R),"aria-describedby":i(k),"aria-invalid":i(D),...B}),[()=>S("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",G,"focus-visible:-outline-offset-2",q(i(x)),v()&&W,u())],void 0,void 0,void 0,!0),O(a,n=>o(n),()=>o()),ge(a,z),N(a,g),_(e,a)},Z=e=>{var a=J();M(a,n=>({id:m(),"data-slot":p(),"data-size":i(x),"data-variant":d()==="default"?void 0:d(),class:n,type:b(),size:i(R),"aria-describedby":i(k),"aria-invalid":i(D),autocorrect:"off",autocapitalize:"off",spellcheck:"false",...B}),[()=>d()==="inline"?S("selection:bg-primary selection:text-primary-foreground",be,u()):d()==="search"?S("flex selection:bg-primary selection:text-primary-foreground",ve,u()):S("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",G,ye,q(i(x)),v()&&W,u())],void 0,void 0,void 0,!0),O(a,n=>o(n),()=>o()),N(a,g),_(e,a)};H(j,e=>{b()==="file"?e(Y):e(Z,-1)})}var $=le(j,2);{var ee=e=>{{let a=f(()=>c()?"error":"helper");pe(e,{get id(){return y()},get tone(){return i(a)},children:(n,he)=>{ue();var A=fe();ce(()=>me(A,i(w))),_(n,A)},$$slots:{default:!0}})}};H($,e=>{i(w)&&e(ee)})}return _(F,P),de(X)}export{ze as I};