@intent-hq/web 2.286.4 → 2.286.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{x1zid8su.js → 0DYbsWPQ.js} +1 -1
  3. package/web/app/immutable/chunks/{DIoX_b5x.js → 1oF51_dO.js} +1 -1
  4. package/web/app/immutable/chunks/{CyGw7JU5.js → 23E8CTp8.js} +1 -1
  5. package/web/app/immutable/chunks/{C5p3cAYv.js → 2VxyrQxU.js} +1 -1
  6. package/web/app/immutable/chunks/{Djhs3H6B.js → 6nHc3nuf.js} +1 -1
  7. package/web/app/immutable/chunks/{BvzONeHW.js → 8rNFWfVn.js} +1 -1
  8. package/web/app/immutable/chunks/{BeddIW6i.js → 9ZYfhGCk.js} +1 -1
  9. package/web/app/immutable/chunks/{BzoF1_ij.js → B-q7lHlu.js} +1 -1
  10. package/web/app/immutable/chunks/{DD6Pkbic.js → B0bGmR-9.js} +1 -1
  11. package/web/app/immutable/chunks/{YlwMMeOs.js → B454KCAb.js} +1 -1
  12. package/web/app/immutable/chunks/{BZBudGQG.js → B4mTXFX_.js} +1 -1
  13. package/web/app/immutable/chunks/{CB76QYmX.js → B4u-nJvE.js} +1 -1
  14. package/web/app/immutable/chunks/{Caf4tDH7.js → B6MEEZa5.js} +1 -1
  15. package/web/app/immutable/chunks/{B7JUZ-OL.js → B6fBpdpc.js} +2 -2
  16. package/web/app/immutable/chunks/{xHA823KN.js → B6uFvqQQ.js} +1 -1
  17. package/web/app/immutable/chunks/{CCYqEJG1.js → B7SKdhQ5.js} +1 -1
  18. package/web/app/immutable/chunks/{j1f7tS2i.js → B7zw6FSp.js} +1 -1
  19. package/web/app/immutable/chunks/{DNo8L_9b.js → B8F48053.js} +1 -1
  20. package/web/app/immutable/chunks/{CyMVqmzv.js → B8RtJJ5n.js} +1 -1
  21. package/web/app/immutable/chunks/{vKQIfgIp.js → BAhGcZNc.js} +1 -1
  22. package/web/app/immutable/chunks/{C5qP0fL9.js → BCP4ql_Z.js} +1 -1
  23. package/web/app/immutable/chunks/{DvxEHPPT.js → BDsJY1gP.js} +1 -1
  24. package/web/app/immutable/chunks/{3kw_jVcY.js → BH9CJdcr.js} +1 -1
  25. package/web/app/immutable/chunks/{BrEqoZ1p.js → BHj3hnLy.js} +1 -1
  26. package/web/app/immutable/chunks/{CmWV3gyr.js → BJDCkHOX.js} +1 -1
  27. package/web/app/immutable/chunks/{DC3ZkLye.js → BJZlVRvQ.js} +1 -1
  28. package/web/app/immutable/chunks/{DD0At2PN.js → BK-s56Ka.js} +1 -1
  29. package/web/app/immutable/chunks/{DvgbaoNK.js → BRGC9NUK.js} +1 -1
  30. package/web/app/immutable/chunks/{Cniog18G.js → BT6iNxpZ.js} +1 -1
  31. package/web/app/immutable/chunks/{5JOOVIIo.js → BTLKBS5k.js} +1 -1
  32. package/web/app/immutable/chunks/{DYiKRSyK.js → BUMa5x43.js} +1 -1
  33. package/web/app/immutable/chunks/{DGjH5-Hx.js → BW36mD_6.js} +1 -1
  34. package/web/app/immutable/chunks/{B_vj7xxI.js → BWIW2cBU.js} +1 -1
  35. package/web/app/immutable/chunks/{CSKprktf.js → BYO8onTK.js} +1 -1
  36. package/web/app/immutable/chunks/{DpTBUsJF.js → BYms4r7P.js} +1 -1
  37. package/web/app/immutable/chunks/{DiD3o6_1.js → B_i7CY5G.js} +1 -1
  38. package/web/app/immutable/chunks/{Dm08LoPV.js → BaqKvnTh.js} +1 -1
  39. package/web/app/immutable/chunks/{CLBb9J0e.js → BdS6hKk3.js} +1 -1
  40. package/web/app/immutable/chunks/{CHq8gooQ.js → BdfKIbXO.js} +1 -1
  41. package/web/app/immutable/chunks/BeTy7vuC.js +1 -0
  42. package/web/app/immutable/chunks/{BqJHaeQw.js → Beh1STKE.js} +1 -1
  43. package/web/app/immutable/chunks/{BCPDBuLJ.js → Bf1qx_0R.js} +1 -1
  44. package/web/app/immutable/chunks/{C_CE49CT.js → Bf8eQBE4.js} +1 -1
  45. package/web/app/immutable/chunks/{CrsB8npl.js → BfL7S407.js} +1 -1
  46. package/web/app/immutable/chunks/{CHwcICZW.js → BiDG2Il4.js} +1 -1
  47. package/web/app/immutable/chunks/{C2pKnlEJ.js → BlbGzi5U.js} +1 -1
  48. package/web/app/immutable/chunks/{DQpQ_Eis.js → BnoB224B.js} +1 -1
  49. package/web/app/immutable/chunks/{BctbI4aU.js → BoJtmtyo.js} +1 -1
  50. package/web/app/immutable/chunks/{FSpiE1wW.js → BpXI7wFc.js} +4 -4
  51. package/web/app/immutable/chunks/{CSEB8cDa.js → Bpc1JVYI.js} +1 -1
  52. package/web/app/immutable/chunks/{BrHwmqrG.js → BrtiFETL.js} +1 -1
  53. package/web/app/immutable/chunks/{Cui_1F-9.js → Bstlw48g.js} +1 -1
  54. package/web/app/immutable/chunks/{PCjNYuXW.js → Bt3MDn7a.js} +1 -1
  55. package/web/app/immutable/chunks/{Cx463bih.js → BtozMaaI.js} +1 -1
  56. package/web/app/immutable/chunks/{QPnNKbqJ.js → BuxkN2IX.js} +1 -1
  57. package/web/app/immutable/chunks/{DdMy5hhm.js → Bym0Bg5I.js} +1 -1
  58. package/web/app/immutable/chunks/{BUVJimmV.js → Byveo7gR.js} +1 -1
  59. package/web/app/immutable/chunks/{D0M9u_n-.js → Bzhw8fuk.js} +1 -1
  60. package/web/app/immutable/chunks/{CGy8AR53.js → BzyCNOua.js} +1 -1
  61. package/web/app/immutable/chunks/{6CBvudM-.js → C2P7OURH.js} +1 -1
  62. package/web/app/immutable/chunks/{BuEHStYX.js → C2jdhr88.js} +1 -1
  63. package/web/app/immutable/chunks/{C3jNWf9W.js → C3Fqdvg4.js} +1 -1
  64. package/web/app/immutable/chunks/{CnLkqvzY.js → C47ID617.js} +1 -1
  65. package/web/app/immutable/chunks/{DfYC2vFl.js → C5g-qXVN.js} +1 -1
  66. package/web/app/immutable/chunks/{Bpruhzz0.js → C5sLueiQ.js} +2 -2
  67. package/web/app/immutable/chunks/{B6n3m66K.js → C6d1Lpgs.js} +1 -1
  68. package/web/app/immutable/chunks/{RykOFORR.js → C7tLvCvd.js} +1 -1
  69. package/web/app/immutable/chunks/{C6AX083-.js → CC1eLY1d.js} +1 -1
  70. package/web/app/immutable/chunks/{CpiOwqpL.js → CCgQRuB1.js} +1 -1
  71. package/web/app/immutable/chunks/{HOnA76CN.js → CDUfmTeF.js} +1 -1
  72. package/web/app/immutable/chunks/{BnoRvwv3.js → CDmCuh1q.js} +1 -1
  73. package/web/app/immutable/chunks/{ByIRYR8A.js → CGjXmxxC.js} +1 -1
  74. package/web/app/immutable/chunks/{D9ScELxf.js → CHeCmfic.js} +1 -1
  75. package/web/app/immutable/chunks/{D2b1hcog.js → CKktRvnN.js} +2 -2
  76. package/web/app/immutable/chunks/{C_m_o9vM.js → CLlakE_A.js} +1 -1
  77. package/web/app/immutable/chunks/{BrhmFCB4.js → CNWCoEPX.js} +1 -1
  78. package/web/app/immutable/chunks/{BnWH1iQz.js → CNnRYNSg.js} +1 -1
  79. package/web/app/immutable/chunks/{B8mLANMy.js → COCaJoLR.js} +1 -1
  80. package/web/app/immutable/chunks/{jvKdDF7D.js → COHqw4A9.js} +1 -1
  81. package/web/app/immutable/chunks/{BLFT0vk0.js → CVJpj_hv.js} +1 -1
  82. package/web/app/immutable/chunks/{B5mo4ccL.js → CVxlLDZ3.js} +1 -1
  83. package/web/app/immutable/chunks/{BmufqNuq.js → CWphw-nF.js} +1 -1
  84. package/web/app/immutable/chunks/{H3_j1RTy.js → Ca4KlnGL.js} +1 -1
  85. package/web/app/immutable/chunks/{Dj-i-4vt.js → CawpE1BZ.js} +1 -1
  86. package/web/app/immutable/chunks/{BbJXkiov.js → Cd3EMXIu.js} +1 -1
  87. package/web/app/immutable/chunks/{976zYcoh.js → CdfqD86B.js} +1 -1
  88. package/web/app/immutable/chunks/{1iwlWivR.js → ChIVS4P3.js} +1 -1
  89. package/web/app/immutable/chunks/{D7KhJm9U.js → ChNJI9F9.js} +2 -2
  90. package/web/app/immutable/chunks/{B-GuaxD4.js → Chq-_hGH.js} +1 -1
  91. package/web/app/immutable/chunks/{DojlGzur.js → Ci4eZy6l.js} +1 -1
  92. package/web/app/immutable/chunks/{LcC8t7uh.js → CpxMu1KO.js} +1 -1
  93. package/web/app/immutable/chunks/{BCFbCagC.js → CqY1u59g.js} +1 -1
  94. package/web/app/immutable/chunks/{Cix_mnLj.js → CsjJE25D.js} +4 -4
  95. package/web/app/immutable/chunks/{HgUF9JxD.js → CtBjT8wS.js} +1 -1
  96. package/web/app/immutable/chunks/{DDFSWjQU.js → CthkaT2F.js} +3 -3
  97. package/web/app/immutable/chunks/{DZzZGRg-.js → Cu1j_f-a.js} +1 -1
  98. package/web/app/immutable/chunks/{umDdblid.js → CuQOREPd.js} +1 -1
  99. package/web/app/immutable/chunks/{1Xl1_j69.js → Cv2P5IwK.js} +1 -1
  100. package/web/app/immutable/chunks/{DbulPCWG.js → CvAwBgbR.js} +1 -1
  101. package/web/app/immutable/chunks/{xpSH95ot.js → CznZJVFP.js} +1 -1
  102. package/web/app/immutable/chunks/{3oGwK09B.js → D0kREPO2.js} +1 -1
  103. package/web/app/immutable/chunks/{DPBL52wT.js → D0lrdhHK.js} +7 -7
  104. package/web/app/immutable/chunks/{CQcnUt15.js → D3jhcRTQ.js} +6 -6
  105. package/web/app/immutable/chunks/{CK1AF7GU.js → D5JpXhYt.js} +1 -1
  106. package/web/app/immutable/chunks/{DSkl9mpQ.js → D6D5q4Ew.js} +1 -1
  107. package/web/app/immutable/chunks/{QEDJCahU.js → D8PxHJc4.js} +1 -1
  108. package/web/app/immutable/chunks/{CMAxIbm4.js → D8baytyD.js} +5 -5
  109. package/web/app/immutable/chunks/{zcEXOR-1.js → D98WboQt.js} +1 -1
  110. package/web/app/immutable/chunks/{DauuhR4o.js → D9yQlCcw.js} +1 -1
  111. package/web/app/immutable/chunks/{BfS0Q-nX.js → DA2lF32p.js} +1 -1
  112. package/web/app/immutable/chunks/{u-Y0Tv7i.js → DA9rhdZH.js} +1 -1
  113. package/web/app/immutable/chunks/{DTosDNas.js → DAH744O7.js} +1 -1
  114. package/web/app/immutable/chunks/{2N--vaHR.js → DB7J8e3o.js} +1 -1
  115. package/web/app/immutable/chunks/{NiM-1eU3.js → DBsfadl4.js} +1 -1
  116. package/web/app/immutable/chunks/{Bp8wUB3U.js → DEbQS2b7.js} +1 -1
  117. package/web/app/immutable/chunks/{CL28-RkP.js → DFS1h5bM.js} +1 -1
  118. package/web/app/immutable/chunks/{DOpb_Wa_.js → DHofGzwL.js} +1 -1
  119. package/web/app/immutable/chunks/{B3foPak9.js → DIv5DQkp.js} +1 -1
  120. package/web/app/immutable/chunks/{Bmq5LtFr.js → DJ8UsJ5g.js} +1 -1
  121. package/web/app/immutable/chunks/{CuYFxjMF.js → DJ9TV_yW.js} +1 -1
  122. package/web/app/immutable/chunks/{CAE5fLft.js → DJCDkaNO.js} +1 -1
  123. package/web/app/immutable/chunks/{BSZTRNsD.js → DKoLZG20.js} +1 -1
  124. package/web/app/immutable/chunks/{DQ070aDn.js → DMyC7yXH.js} +2 -2
  125. package/web/app/immutable/chunks/{D5VLKYyC.js → DO2Mffbw.js} +1 -1
  126. package/web/app/immutable/chunks/{C-OvZCj_.js → DOwNo9DZ.js} +1 -1
  127. package/web/app/immutable/chunks/{Bwxf2JuH.js → DP8Z_ndY.js} +1 -1
  128. package/web/app/immutable/chunks/{CeWSuA2o.js → DQ8AKqM-.js} +1 -1
  129. package/web/app/immutable/chunks/{OOZgSySO.js → DR4flnkg.js} +1 -1
  130. package/web/app/immutable/chunks/{DRbQFCiN.js → DRS1rqpE.js} +1 -1
  131. package/web/app/immutable/chunks/{DK77esWJ.js → DRnChFvy.js} +1 -1
  132. package/web/app/immutable/chunks/{pRcFjb-H.js → DV5_5WEJ.js} +1 -1
  133. package/web/app/immutable/chunks/{es3FqSjg.js → DW7ejssb.js} +1 -1
  134. package/web/app/immutable/chunks/{Cnlrbhbh.js → DZsJhl3y.js} +1 -1
  135. package/web/app/immutable/chunks/{B781x4pz.js → Dap9jPSD.js} +2 -2
  136. package/web/app/immutable/chunks/{ChBqCTy0.js → DdnYAljS.js} +1 -1
  137. package/web/app/immutable/chunks/{W48e0TcX.js → Dhio12Im.js} +1 -1
  138. package/web/app/immutable/chunks/{rgwCePpO.js → DiAETlHz.js} +1 -1
  139. package/web/app/immutable/chunks/{CXsEQ4Fe.js → Di_t3UnN.js} +3 -3
  140. package/web/app/immutable/chunks/{dbgkJ9GM.js → DizZ6oR9.js} +1 -1
  141. package/web/app/immutable/chunks/{CMUt7G5B.js → DpK3RLAt.js} +1 -1
  142. package/web/app/immutable/chunks/{CqTutsn0.js → Dwni45Od.js} +1 -1
  143. package/web/app/immutable/chunks/{Cae3uxuh.js → FBVqOFZr.js} +2 -2
  144. package/web/app/immutable/chunks/{B2jOXbpl.js → HE0Ez-BN.js} +1 -1
  145. package/web/app/immutable/chunks/{C24Rzfzk.js → IWgFnHM6.js} +1 -1
  146. package/web/app/immutable/chunks/{vGBd4whl.js → Jly8tXSz.js} +2 -2
  147. package/web/app/immutable/chunks/{B2Ta8ZYX.js → Kurxy4Ry.js} +1 -1
  148. package/web/app/immutable/chunks/{DL9fM9Z6.js → N7T-OZOp.js} +1 -1
  149. package/web/app/immutable/chunks/{BMoKffXR.js → NwLmTC8w.js} +1 -1
  150. package/web/app/immutable/chunks/{Z0VS8LLQ.js → O4dj7v1P.js} +1 -1
  151. package/web/app/immutable/chunks/{6gxnLEJP.js → ODjBUXV3.js} +3 -3
  152. package/web/app/immutable/chunks/{DQ04s54w.js → OWQNVwkr.js} +1 -1
  153. package/web/app/immutable/chunks/{BHBAtBBB.js → Qo9pMmiB.js} +1 -1
  154. package/web/app/immutable/chunks/{CGid_txv.js → TmbqKKnd.js} +1 -1
  155. package/web/app/immutable/chunks/{QLIsYm_0.js → U-VWqwv3.js} +1 -1
  156. package/web/app/immutable/chunks/{CxFDPuIk.js → U8fRO8mK.js} +1 -1
  157. package/web/app/immutable/chunks/{OduqxoGp.js → V2KE0mZQ.js} +1 -1
  158. package/web/app/immutable/chunks/{BJwk8LqM.js → VC3Qg25l.js} +1 -1
  159. package/web/app/immutable/chunks/{DzjRhthn.js → W9RBe3cV.js} +4 -4
  160. package/web/app/immutable/chunks/{BfnrA5Ab.js → XOMHYtyO.js} +1 -1
  161. package/web/app/immutable/chunks/{DQkyZkjw.js → Z7diTfMs.js} +1 -1
  162. package/web/app/immutable/chunks/{DssISSPU.js → ZkyYl7-6.js} +1 -1
  163. package/web/app/immutable/chunks/{Xsgb18SC.js → _xpBRJp7.js} +1 -1
  164. package/web/app/immutable/chunks/{BPDNj0Ug.js → aCSljV8u.js} +1 -1
  165. package/web/app/immutable/chunks/{DIFKHzYL.js → bVKG6nsX.js} +1 -1
  166. package/web/app/immutable/chunks/{Bf4Ffzqn.js → bZ2d0T9K.js} +1 -1
  167. package/web/app/immutable/chunks/{C6FMFHeq.js → cVKjBaok.js} +1 -1
  168. package/web/app/immutable/chunks/{DXJ8guE-.js → cqSRU54c.js} +1 -1
  169. package/web/app/immutable/chunks/{DQayjjKQ.js → dMGmSQbm.js} +1 -1
  170. package/web/app/immutable/chunks/{BbNzaCQR.js → ecyYYP_i.js} +1 -1
  171. package/web/app/immutable/chunks/{BOlugeJj.js → fMhLyE1S.js} +1 -1
  172. package/web/app/immutable/chunks/{FhGlrjm8.js → fX0P5ZzO.js} +1 -1
  173. package/web/app/immutable/chunks/{Bb0plfAx.js → hs0q5uXF.js} +1 -1
  174. package/web/app/immutable/chunks/{Bq3GTaKG.js → ixob39CO.js} +1 -1
  175. package/web/app/immutable/chunks/{BME8wn-Y.js → kyD2j1ao.js} +1 -1
  176. package/web/app/immutable/chunks/{BeQ1MqDU.js → mPG-dFIz.js} +1 -1
  177. package/web/app/immutable/chunks/{0azY1Euo.js → oTfA4Ka8.js} +1 -1
  178. package/web/app/immutable/chunks/{eFMkdoaf.js → qSzKyAvL.js} +1 -1
  179. package/web/app/immutable/chunks/{DyfUN8R7.js → tJZsdcEt.js} +1 -1
  180. package/web/app/immutable/chunks/{Dft5YBpv.js → u7xxpRyS.js} +1 -1
  181. package/web/app/immutable/chunks/{QjTgQQZx.js → wPF9jCkR.js} +1 -1
  182. package/web/app/immutable/chunks/{COgknoIp.js → wxuSrNBn.js} +1 -1
  183. package/web/app/immutable/chunks/{DOL39Ac3.js → zWQBgpC4.js} +1 -1
  184. package/web/app/immutable/entry/{app.DzBvG1_l.js → app.CdGBkRFI.js} +2 -2
  185. package/web/app/immutable/entry/start.EYvQAwRq.js +1 -0
  186. package/web/app/immutable/nodes/{0.C2zst7i8.js → 0.DvD_bs4V.js} +1 -1
  187. package/web/app/immutable/nodes/{1.BIkIikjL.js → 1.BNqZs0qR.js} +1 -1
  188. package/web/app/immutable/nodes/{10.NQQ6RXJ5.js → 10.CehzmYEs.js} +1 -1
  189. package/web/app/immutable/nodes/{14.DjgXWnV3.js → 14.ZYPm59xt.js} +1 -1
  190. package/web/app/immutable/nodes/{16.DIpAzx7I.js → 16.izwWMsfE.js} +2 -2
  191. package/web/app/immutable/nodes/{2.D39xDr6a.js → 2.DLErmB7W.js} +3 -3
  192. package/web/app/immutable/nodes/{3.CXiy3cZ4.js → 3.Ba2fCn_S.js} +1 -1
  193. package/web/app/immutable/nodes/{4.Dc4411ZQ.js → 4.Cweld1W0.js} +1 -1
  194. package/web/app/immutable/nodes/{5.p_n2sq1_.js → 5.Ac20ierd.js} +1 -1
  195. package/web/app/immutable/nodes/{6.D6xC5nhC.js → 6.ci3muQxH.js} +1 -1
  196. package/web/app/immutable/nodes/{7.DXE6hDOy.js → 7.Db8zvNrf.js} +1 -1
  197. package/web/app/immutable/nodes/{8.BU4_235n.js → 8.BBQbbdsX.js} +2 -2
  198. package/web/app/immutable/nodes/{9.CYdkB-g-.js → 9.c-04OhkZ.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/Pd6GM4gY.js +0 -1
  202. package/web/app/immutable/entry/start.CErE1GCU.js +0 -1
@@ -1,2 +1,2 @@
1
- import{t as Mt,bq as ee,_ as Vr,a_ as ce,by as Tt,bu as he,bs as Jt,b as Ut,bo as c}from"./COCO5InB.js";import{bs as Rt,ca as $e,aD as e,bH as u,a5 as M,bA as P,W as s,bn as zt,bV as H,c9 as i,aA as te,c6 as Nt,ay as de,be as Xe,b$ as Qe,b_ as D,bO as g,bS as p,bl as S,aB as C,bj as Er,aw as et,ai as Ar,c5 as vr,a as pr,a7 as Le,aj as ct,cd as Wr,br as Br}from"./B8o4lNgr.js";import{B as gr,D as Nr}from"./Cdhgfy6h.js";import{s as tt,l as bt,k as ar,h as xt}from"./Crs9I2MT.js";import{c as Ft}from"./oALOmsvi.js";import{b as mr}from"./D2g8BuR1.js";import{G2 as A,mu as _r,tC as hr,tB as wr,I8 as Or,I9 as Hr,ei as qr,ej as Gr,HC as or,kJ as Ot,zu as ir,qC as nr,mQ as Kr,xc as Xr,a3 as sr,Gy as Yr,GN as Jr,m5 as Zr,i0 as Qr,mw as ea,td as ta,xz as ra,HB as aa}from"./BjFoJgFv.js";import{g as oa}from"./CoSk1zgY.js";import{a as ia,g as na,i as sa,c as la,h as da,d as ca,e as lr,f as ua,b as Ht}from"./DROi8p_h.js";import{bx as fa,bK as va,dj as pa}from"./DUT4V6mb.js";import{w as dr,d as ga}from"./BCu94obu.js";import{f as ma}from"./B6LKhrY2.js";import{n as qt}from"./CJvhopKt.js";import{f as Se,ax as _a}from"./C5Xi5eLp.js";import"./Dck4Okga.js";import{F as Ze,a9 as ha,ar as wa,aU as ba,a_ as Dt,cj as xa,ck as ya,bh as Pa,cG as $a,c0 as ka}from"./BDq7EC2K.js";import{g as Ia,i as Ca,w as cr}from"./bjkNeafo.js";import{c as Fa}from"./ChTqQfQN.js";import"./BlJs0v1V.js";import{M as Sa}from"./CMAxIbm4.js";import{i as Gt,b as Da,a as ja}from"./H2jLkRRS.js";import{C as Xt,p as Ma}from"./DjZWf4AT.js";import{M as Ta}from"./DzjRhthn.js";import{t as Kt,u as br}from"./Bqoyy9yx.js";import"./hMX_6Iel.js";import"./1jz3AJ7K.js";import{M as St}from"./CpWqDujk.js";import{V as Ua}from"./DQPsLJmj.js";import{bC as Ra,aW as za}from"./Dj-i-4vt.js";import{ag as La}from"./FSpiE1wW.js";const xr=A.createSelector((we,x)=>_r(we.pdfPreview.previews,x));var Va=C('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Ea=C('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Yt(we,x){if(new.target)return Mt({component:Yt,...we});Rt(x,!0);const ke=()=>he(be,"$preview",rt),[rt,re]=Jt();let $=ee(x,"workspaceId",7),ae=ee(x,"filePath",7),Ie=ee(x,"gitRootId",7);const De=crypto.randomUUID(),be=xr(De),me=new WeakMap;let J=H(null),He=H(void 0),W=H(1),N=H(1),oe=H(!0),R=H(!1),Ve=H(null),Be=H(0);const xe=i(()=>ke()?.error??e(Ve)),je=i(()=>e(xe)==="missing"?c.file_pdf_missing_error():e(xe)==="large"?c.file_pdf_large_error():e(xe)==="invalid"?c.file_pdf_invalid_error():e(xe)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());$e(()=>{const l=$(),y=ae();e(Be);const z=crypto.randomUUID();return A.dispatch(hr(De,z,l,y,...Ie()?[{gitRootId:Ie()}]:[])),()=>{A.dispatch(wr(De,z))}}),$e(()=>{const l=ke()?.url;let y=!1,z;if(u(J,null),u(Ve,null),u(oe,!0),u(W,1),u(N,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:_e}=await import("./BqoyBPEG.js");return{loadPdfDocument:_e}},[],import.meta.url);if(y)return;z=K(l);const ie=await z.promise;y||u(J,ie)}catch(K){if(y)return;u(Ve,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(oe,!1)}})(),()=>{y=!0,z?.destroy()}}),$e(()=>{const l=e(J),y=e(He),z=e(W),K=e(N);if(!l||!y)return;let ie=!1,_e,U;const ne=()=>{if(!U)return;const X=(me.get(U)??1)-1;X?me.set(U,X):(me.delete(U),U.cleanup()),U=void 0};return u(R,!0),(async()=>{try{if(U=await l.getPage(z),me.set(U,(me.get(U)??0)+1),ie){ne();return}const X=U.getViewport({scale:K}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*Z),y.height=Math.ceil(X.height*Z),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,_e=U.render({canvas:y,viewport:X,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{ie||u(Ve,"invalid")}finally{ie||u(R,!1)}})(),()=>{ie=!0,_e?.cancel(),_e?_e.promise.then(ne,ne):ne()}});var Ne={get workspaceId(){return $()},set workspaceId(l){$(l),te()},get filePath(){return ae()},set filePath(l){ae(l),te()},get gitRootId(){return Ie()},set gitRootId(l){Ie(l),te()},$set:Tt,$on:(l,y)=>Ut(x,l,y)},o=Ea(),d=M(o);{var T=l=>{{const y=K=>{Xe();var ie=Qe();D(()=>g(ie,e(je))),s(K,ie)};let z=i(()=>c.ui_combobox_retry_label());Ia(l,{onRetry:()=>Nt(Be),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},_=l=>{{let y=i(()=>c.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=de(y),K=M(z);{let pe=i(()=>e(W)<=1);Se(K,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W,-1),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_previous_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ie=p(K,2),_e=S(ie,!0),U=p(ie,2);{let pe=i(()=>e(W)>=e(J).numPages);Se(U,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_next_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ne=p(U,2);{let pe=i(()=>e(N)<=.25);Se(ne,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.max(.25,e(N)-.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomOut_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}var X=p(ne,2),Z=S(X,!0),at=p(X,2);{let pe=i(()=>e(N)>=3);Se(at,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.min(3,e(N)+.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomIn_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}P(z);var ot=p(z,2),qe=M(ot);let Ye;mr(qe,pe=>u(He,pe),()=>e(He)),P(ot),D((pe,ye,Ge)=>{g(_e,pe),g(Z,ye),tt(ot,"aria-busy",e(R)),tt(qe,"aria-label",Ge),Ye=bt(qe,"",Ye,{visibility:e(R)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:Kt(e(W)),total:Kt(e(J).numPages)}),()=>br(e(N),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:Kt(e(W))})]),s(l,y)};ce(d,l=>{e(xe)?l(T):e(oe)||ke()?.status==="loading"?l(_,1):e(J)&&l(w,2)})}P(o),s(we,o);var Ee=zt(Ne);return re(),Ee}const Aa=A.createSelector((we,x)=>_r(we.videoPreview.previews,x));var Wa=C('<p role="status"> </p>'),Ba=C('<p role="alert"> </p>'),Na=C('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Oa=C('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),Ha=C('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function yr(we,x){if(new.target)return Mt({component:yr,...we});Rt(x,!0);const ke=()=>he(He,"$preview",rt),[rt,re]=Jt();let $=ee(x,"sourceUrl",7),ae=ee(x,"fileName",7),Ie=ee(x,"allowDownload",7),De=ee(x,"downloading",7),be=ee(x,"onDownload",7),me=H(null);const J=crypto.randomUUID(),He=Aa(J),W=i(()=>ke()?.status==="loading"),N=i(()=>e(me)??ke()?.error);let oe=!1,R=!1;Er(()=>{R=!0,A.dispatch(Or(J))});function Ve(){if(R||e(W))return;const _=$().startsWith("workspace-file://")?new URL($()):null;if(oe||!_||!_.pathname.toLowerCase().endsWith(".mp4")){u(me,"unsupported");return}oe=!0,_.searchParams.set("preview","h264"),A.dispatch(Hr(J,_.hostname,_.toString()))}function Be(_){if(R)return;const w=_.currentTarget.error?.code;w===2?u(me,"network"):w!==1&&Ve()}var xe={get sourceUrl(){return $()},set sourceUrl(_){$(_),te()},get fileName(){return ae()},set fileName(_){ae(_),te()},get allowDownload(){return Ie()},set allowDownload(_){Ie(_),te()},get downloading(){return De()},set downloading(_){De(_),te()},get onDownload(){return be()},set onDownload(_){be(_),te()},$set:Tt,$on:(_,w)=>Ut(x,_,w)},je=Ha(),Ne=M(je);{var o=_=>{var w=Na(),Ee=M(w),l=S(Ee,!0),y=p(Ee,2);{var z=U=>{var ne=Wa(),X=S(ne,!0);D(Z=>g(X,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),s(U,ne)},K=U=>{var ne=Ba(),X=S(ne,!0);D(Z=>g(X,Z),[()=>e(N)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),s(U,ne)};ce(y,U=>{e(W)?U(z):U(K,-1)})}var ie=p(y,2);{var _e=U=>{Se(U,{variant:"secondary",size:"sm",get onclick(){return be()},get disabled(){return De()},children:(ne,X)=>{Xe();var Z=Qe();D(at=>g(Z,at),[()=>c.layout_fileTab_downloadFile_label()]),s(ne,Z)},$$slots:{default:!0}})};ce(ie,U=>{Ie()&&U(_e)})}P(w),D(()=>g(l,ae())),s(_,w)},d=_=>{var w=Oa(),Ee=S(w,!0);D(l=>{tt(w,"src",ke()?.url??$()),g(Ee,l)},[()=>c.editor_fileViewer_videoUnsupported_label()]),et("error",w,Be),et("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Ve()}),s(_,w)};ce(Ne,_=>{e(N)||e(W)?_(o):_(d,-1)})}P(je),s(we,je);var T=zt(xe);return re(),T}var qa=C('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ga=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ya=C("<!> ",1),Ja=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Za=C('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Qa=C('<td class="border border-border px-2 py-1 text-xs"> </td>'),eo=C("<tr></tr>"),to=C('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ro=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),ao=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=C('<div class="h-full flex flex-col"><!></div>');function jt(we,x){if(new.target)return Mt({component:jt,...we});Rt(x,!0);const ke=t=>{var a=qa(),f=de(a);{let O=i(()=>c.editor_fileViewer_zoomOut_tooltip());Se(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return xa},size:"sm"})},$$slots:{default:!0}})}var m=p(f,2),h=S(m,!0),k=p(m,2);{let O=i(()=>c.editor_fileViewer_zoomIn_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}Xe(2),D(()=>g(h,e(Ve))),s(t,a)},rt=Fa("FileViewer");let re=ee(x,"filePath",7),$=ee(x,"fileContent",7,""),ae=ee(x,"sourceUrl",7),Ie=ee(x,"language",7),De=ee(x,"isBinary",7),be=ee(x,"allowDownload",7,!0),me=ee(x,"onDownload",7),J=ee(x,"downloading",7,!1);const He=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},W=i(()=>He(re())),N=i(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let oe=H(100),R=H(0);const Ve=i(()=>br(e(oe)/100,{style:"percent",maximumFractionDigits:0}));let Be=H(!1),xe=H(0),je=H(0),Ne=H(0),o=H(0),d=H(!1),T=null;function _(){const t=T;T=null,u(d,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||T)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),T={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(d,!0),t.preventDefault()}function Ee(t){if(!(!T||t.pointerId!==T.pointerId)){if((t.buttons&1)===0){_();return}u(Ne,T.viewport.scrollLeft,!0),u(o,T.viewport.scrollTop,!0),u(xe,e(xe)+(t.clientX-T.x)),u(je,e(je)+(t.clientY-T.y)),T.x=t.clientX,T.y=t.clientY}}function l(t){t.pointerId===T?.pointerId&&_()}$e(()=>{re(),ae(),e(oe),e(R),u(Ne,0),u(o,0)}),$e(()=>(re(),ae(),vr(()=>{_(),u(xe,0),u(je,0)}),_));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},z=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ae())return ae();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():De()?`data:${y(re())};base64,${$()}`:`data:${y(re())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((m,h)=>m+String.fromCharCode(h),""),f=btoa(a);return`data:${y(re())};base64,${f}`}return""},ie=()=>{if(ae())return ae();const t=z(re());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],m=32768;for(let h=0;h<a.length;h+=m)f.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(f.join(""))}`},_e=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let m=0;m<t.length;m+=f)a.push(String.fromCharCode(...t.subarray(m,m+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(oe,Math.min(e(oe)+25,500),!0)},ne=()=>{u(oe,Math.max(e(oe)-25,25),!0)},X=()=>{u(R,(e(R)+90)%360)},Z=()=>{if(!be()||J())return;if(me()){me()();return}const t=document.createElement("a");t.href=e(W)==="video"?ie():e(W)==="svg"?_e():K(),t.download=e(N),t.click()},at=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((m,h)=>{a.onload=()=>{const k=document.createElement("canvas");k.width=a.naturalWidth,k.height=a.naturalHeight;const O=k.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),k.toBlob(j=>{j?m(j):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Be,!0),setTimeout(()=>u(Be,!1),2e3)}catch(t){rt.error("Failed to copy image:",t)}},ot=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},qe=t=>t.split(`
1
+ import{t as Mt,bq as ee,_ as Vr,a_ as ce,by as Tt,bu as he,bs as Jt,b as Ut,bo as c}from"./COCO5InB.js";import{bs as Rt,ca as $e,aD as e,bH as u,a5 as M,bA as P,W as s,bn as zt,bV as H,c9 as i,aA as te,c6 as Nt,ay as de,be as Xe,b$ as Qe,b_ as D,bO as g,bS as p,bl as S,aB as C,bj as Er,aw as et,ai as Ar,c5 as vr,a as pr,a7 as Le,aj as ct,cd as Wr,br as Br}from"./B8o4lNgr.js";import{B as gr,D as Nr}from"./Cdhgfy6h.js";import{s as tt,l as bt,k as ar,h as xt}from"./Crs9I2MT.js";import{c as Ft}from"./oALOmsvi.js";import{b as mr}from"./D2g8BuR1.js";import{G2 as A,mu as _r,tC as hr,tB as wr,I8 as Or,I9 as Hr,ei as qr,ej as Gr,HC as or,kJ as Ot,zu as ir,qC as nr,mQ as Kr,xc as Xr,a3 as sr,Gy as Yr,GN as Jr,m5 as Zr,i0 as Qr,mw as ea,td as ta,xz as ra,HB as aa}from"./BjFoJgFv.js";import{g as oa}from"./CoSk1zgY.js";import{a as ia,g as na,i as sa,c as la,h as da,d as ca,e as lr,f as ua,b as Ht}from"./DROi8p_h.js";import{bx as fa,bK as va,dj as pa}from"./DUT4V6mb.js";import{w as dr,d as ga}from"./BCu94obu.js";import{f as ma}from"./B6LKhrY2.js";import{n as qt}from"./CJvhopKt.js";import{f as Se,ax as _a}from"./C5Xi5eLp.js";import"./Dck4Okga.js";import{F as Ze,a9 as ha,ar as wa,aU as ba,a_ as Dt,cj as xa,ck as ya,bh as Pa,cG as $a,c0 as ka}from"./BDq7EC2K.js";import{g as Ia,i as Ca,w as cr}from"./bjkNeafo.js";import{c as Fa}from"./ChTqQfQN.js";import"./BlJs0v1V.js";import{M as Sa}from"./D8baytyD.js";import{i as Gt,b as Da,a as ja}from"./H2jLkRRS.js";import{C as Xt,p as Ma}from"./DjZWf4AT.js";import{M as Ta}from"./W9RBe3cV.js";import{t as Kt,u as br}from"./Bqoyy9yx.js";import"./hMX_6Iel.js";import"./1jz3AJ7K.js";import{M as St}from"./CpWqDujk.js";import{V as Ua}from"./DQPsLJmj.js";import{bC as Ra,aW as za}from"./CawpE1BZ.js";import{ag as La}from"./BpXI7wFc.js";const xr=A.createSelector((we,x)=>_r(we.pdfPreview.previews,x));var Va=C('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Ea=C('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Yt(we,x){if(new.target)return Mt({component:Yt,...we});Rt(x,!0);const ke=()=>he(be,"$preview",rt),[rt,re]=Jt();let $=ee(x,"workspaceId",7),ae=ee(x,"filePath",7),Ie=ee(x,"gitRootId",7);const De=crypto.randomUUID(),be=xr(De),me=new WeakMap;let J=H(null),He=H(void 0),W=H(1),N=H(1),oe=H(!0),R=H(!1),Ve=H(null),Be=H(0);const xe=i(()=>ke()?.error??e(Ve)),je=i(()=>e(xe)==="missing"?c.file_pdf_missing_error():e(xe)==="large"?c.file_pdf_large_error():e(xe)==="invalid"?c.file_pdf_invalid_error():e(xe)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());$e(()=>{const l=$(),y=ae();e(Be);const z=crypto.randomUUID();return A.dispatch(hr(De,z,l,y,...Ie()?[{gitRootId:Ie()}]:[])),()=>{A.dispatch(wr(De,z))}}),$e(()=>{const l=ke()?.url;let y=!1,z;if(u(J,null),u(Ve,null),u(oe,!0),u(W,1),u(N,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:_e}=await import("./BqoyBPEG.js");return{loadPdfDocument:_e}},[],import.meta.url);if(y)return;z=K(l);const ie=await z.promise;y||u(J,ie)}catch(K){if(y)return;u(Ve,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(oe,!1)}})(),()=>{y=!0,z?.destroy()}}),$e(()=>{const l=e(J),y=e(He),z=e(W),K=e(N);if(!l||!y)return;let ie=!1,_e,U;const ne=()=>{if(!U)return;const X=(me.get(U)??1)-1;X?me.set(U,X):(me.delete(U),U.cleanup()),U=void 0};return u(R,!0),(async()=>{try{if(U=await l.getPage(z),me.set(U,(me.get(U)??0)+1),ie){ne();return}const X=U.getViewport({scale:K}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*Z),y.height=Math.ceil(X.height*Z),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,_e=U.render({canvas:y,viewport:X,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{ie||u(Ve,"invalid")}finally{ie||u(R,!1)}})(),()=>{ie=!0,_e?.cancel(),_e?_e.promise.then(ne,ne):ne()}});var Ne={get workspaceId(){return $()},set workspaceId(l){$(l),te()},get filePath(){return ae()},set filePath(l){ae(l),te()},get gitRootId(){return Ie()},set gitRootId(l){Ie(l),te()},$set:Tt,$on:(l,y)=>Ut(x,l,y)},o=Ea(),d=M(o);{var T=l=>{{const y=K=>{Xe();var ie=Qe();D(()=>g(ie,e(je))),s(K,ie)};let z=i(()=>c.ui_combobox_retry_label());Ia(l,{onRetry:()=>Nt(Be),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},_=l=>{{let y=i(()=>c.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=de(y),K=M(z);{let pe=i(()=>e(W)<=1);Se(K,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W,-1),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_previous_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ie=p(K,2),_e=S(ie,!0),U=p(ie,2);{let pe=i(()=>e(W)>=e(J).numPages);Se(U,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>Nt(W),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.file_pdf_next_label()]),s(ye,Pe)},$$slots:{default:!0}})}var ne=p(U,2);{let pe=i(()=>e(N)<=.25);Se(ne,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.max(.25,e(N)-.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomOut_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}var X=p(ne,2),Z=S(X,!0),at=p(X,2);{let pe=i(()=>e(N)>=3);Se(at,{variant:"ghost",size:"compact",get disabled(){return e(pe)},onclick:()=>u(N,Math.min(3,e(N)+.25),!0),children:(ye,Ge)=>{Xe();var Pe=Qe();D(ue=>g(Pe,ue),[()=>c.editor_fileViewer_zoomIn_tooltip()]),s(ye,Pe)},$$slots:{default:!0}})}P(z);var ot=p(z,2),qe=M(ot);let Ye;mr(qe,pe=>u(He,pe),()=>e(He)),P(ot),D((pe,ye,Ge)=>{g(_e,pe),g(Z,ye),tt(ot,"aria-busy",e(R)),tt(qe,"aria-label",Ge),Ye=bt(qe,"",Ye,{visibility:e(R)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:Kt(e(W)),total:Kt(e(J).numPages)}),()=>br(e(N),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:Kt(e(W))})]),s(l,y)};ce(d,l=>{e(xe)?l(T):e(oe)||ke()?.status==="loading"?l(_,1):e(J)&&l(w,2)})}P(o),s(we,o);var Ee=zt(Ne);return re(),Ee}const Aa=A.createSelector((we,x)=>_r(we.videoPreview.previews,x));var Wa=C('<p role="status"> </p>'),Ba=C('<p role="alert"> </p>'),Na=C('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Oa=C('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),Ha=C('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function yr(we,x){if(new.target)return Mt({component:yr,...we});Rt(x,!0);const ke=()=>he(He,"$preview",rt),[rt,re]=Jt();let $=ee(x,"sourceUrl",7),ae=ee(x,"fileName",7),Ie=ee(x,"allowDownload",7),De=ee(x,"downloading",7),be=ee(x,"onDownload",7),me=H(null);const J=crypto.randomUUID(),He=Aa(J),W=i(()=>ke()?.status==="loading"),N=i(()=>e(me)??ke()?.error);let oe=!1,R=!1;Er(()=>{R=!0,A.dispatch(Or(J))});function Ve(){if(R||e(W))return;const _=$().startsWith("workspace-file://")?new URL($()):null;if(oe||!_||!_.pathname.toLowerCase().endsWith(".mp4")){u(me,"unsupported");return}oe=!0,_.searchParams.set("preview","h264"),A.dispatch(Hr(J,_.hostname,_.toString()))}function Be(_){if(R)return;const w=_.currentTarget.error?.code;w===2?u(me,"network"):w!==1&&Ve()}var xe={get sourceUrl(){return $()},set sourceUrl(_){$(_),te()},get fileName(){return ae()},set fileName(_){ae(_),te()},get allowDownload(){return Ie()},set allowDownload(_){Ie(_),te()},get downloading(){return De()},set downloading(_){De(_),te()},get onDownload(){return be()},set onDownload(_){be(_),te()},$set:Tt,$on:(_,w)=>Ut(x,_,w)},je=Ha(),Ne=M(je);{var o=_=>{var w=Na(),Ee=M(w),l=S(Ee,!0),y=p(Ee,2);{var z=U=>{var ne=Wa(),X=S(ne,!0);D(Z=>g(X,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),s(U,ne)},K=U=>{var ne=Ba(),X=S(ne,!0);D(Z=>g(X,Z),[()=>e(N)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),s(U,ne)};ce(y,U=>{e(W)?U(z):U(K,-1)})}var ie=p(y,2);{var _e=U=>{Se(U,{variant:"secondary",size:"sm",get onclick(){return be()},get disabled(){return De()},children:(ne,X)=>{Xe();var Z=Qe();D(at=>g(Z,at),[()=>c.layout_fileTab_downloadFile_label()]),s(ne,Z)},$$slots:{default:!0}})};ce(ie,U=>{Ie()&&U(_e)})}P(w),D(()=>g(l,ae())),s(_,w)},d=_=>{var w=Oa(),Ee=S(w,!0);D(l=>{tt(w,"src",ke()?.url??$()),g(Ee,l)},[()=>c.editor_fileViewer_videoUnsupported_label()]),et("error",w,Be),et("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Ve()}),s(_,w)};ce(Ne,_=>{e(N)||e(W)?_(o):_(d,-1)})}P(je),s(we,je);var T=zt(xe);return re(),T}var qa=C('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ga=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=C('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Xa=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ya=C("<!> ",1),Ja=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Za=C('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Qa=C('<td class="border border-border px-2 py-1 text-xs"> </td>'),eo=C("<tr></tr>"),to=C('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ro=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),ao=C('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=C('<div class="h-full flex flex-col"><!></div>');function jt(we,x){if(new.target)return Mt({component:jt,...we});Rt(x,!0);const ke=t=>{var a=qa(),f=de(a);{let O=i(()=>c.editor_fileViewer_zoomOut_tooltip());Se(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return xa},size:"sm"})},$$slots:{default:!0}})}var m=p(f,2),h=S(m,!0),k=p(m,2);{let O=i(()=>c.editor_fileViewer_zoomIn_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(O)},children:(j,L)=>{Ze(j,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}Xe(2),D(()=>g(h,e(Ve))),s(t,a)},rt=Fa("FileViewer");let re=ee(x,"filePath",7),$=ee(x,"fileContent",7,""),ae=ee(x,"sourceUrl",7),Ie=ee(x,"language",7),De=ee(x,"isBinary",7),be=ee(x,"allowDownload",7,!0),me=ee(x,"onDownload",7),J=ee(x,"downloading",7,!1);const He=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},W=i(()=>He(re())),N=i(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let oe=H(100),R=H(0);const Ve=i(()=>br(e(oe)/100,{style:"percent",maximumFractionDigits:0}));let Be=H(!1),xe=H(0),je=H(0),Ne=H(0),o=H(0),d=H(!1),T=null;function _(){const t=T;T=null,u(d,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||T)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),T={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(d,!0),t.preventDefault()}function Ee(t){if(!(!T||t.pointerId!==T.pointerId)){if((t.buttons&1)===0){_();return}u(Ne,T.viewport.scrollLeft,!0),u(o,T.viewport.scrollTop,!0),u(xe,e(xe)+(t.clientX-T.x)),u(je,e(je)+(t.clientY-T.y)),T.x=t.clientX,T.y=t.clientY}}function l(t){t.pointerId===T?.pointerId&&_()}$e(()=>{re(),ae(),e(oe),e(R),u(Ne,0),u(o,0)}),$e(()=>(re(),ae(),vr(()=>{_(),u(xe,0),u(je,0)}),_));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},z=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},K=()=>{if(ae())return ae();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():De()?`data:${y(re())};base64,${$()}`:`data:${y(re())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((m,h)=>m+String.fromCharCode(h),""),f=btoa(a);return`data:${y(re())};base64,${f}`}return""},ie=()=>{if(ae())return ae();const t=z(re());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],m=32768;for(let h=0;h<a.length;h+=m)f.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(f.join(""))}`},_e=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let m=0;m<t.length;m+=f)a.push(String.fromCharCode(...t.subarray(m,m+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(oe,Math.min(e(oe)+25,500),!0)},ne=()=>{u(oe,Math.max(e(oe)-25,25),!0)},X=()=>{u(R,(e(R)+90)%360)},Z=()=>{if(!be()||J())return;if(me()){me()();return}const t=document.createElement("a");t.href=e(W)==="video"?ie():e(W)==="svg"?_e():K(),t.download=e(N),t.click()},at=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((m,h)=>{a.onload=()=>{const k=document.createElement("canvas");k.width=a.naturalWidth,k.height=a.naturalHeight;const O=k.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),k.toBlob(j=>{j?m(j):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Be,!0),setTimeout(()=>u(Be,!1),2e3)}catch(t){rt.error("Failed to copy image:",t)}},ot=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},qe=t=>t.split(`
2
2
  `).map(f=>f.split(",").map(m=>m.trim()));var Ye={get filePath(){return re()},set filePath(t){re(t),te()},get fileContent(){return $()},set fileContent(t=""){$(t),te()},get sourceUrl(){return ae()},set sourceUrl(t){ae(t),te()},get language(){return Ie()},set language(t){Ie(t),te()},get isBinary(){return De()},set isBinary(t){De(t),te()},get allowDownload(){return be()},set allowDownload(t=!0){be(t),te()},get onDownload(){return me()},set onDownload(t){me(t),te()},get downloading(){return J()},set downloading(t=!1){J(t),te()},$set:Tt,$on:(t,a)=>Ut(x,t,a)},pe=oo();et("blur",pr,_);var ye=M(pe);{var Ge=t=>{var a=Ga(),f=M(a),m=M(f);ke(m);var h=p(m,2);{let Q=i(()=>c.editor_fileViewer_rotate_tooltip());Se(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:X,get title(){return e(Q)},children:(ge,Me)=>{Ze(ge,{get icon(){return ha},size:"sm"})},$$slots:{default:!0}})}var k=p(h,4);{let Q=i(()=>c.editor_fileViewer_copyImage_tooltip());Se(k,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:at,get title(){return e(Q)},children:(ge,Me)=>{var Ce=Le(),Vt=de(Ce);{var ut=Fe=>{Ze(Fe,{get icon(){return wa},size:"sm",class:"text-green-500"})},kt=Fe=>{Ze(Fe,{get icon(){return ba},size:"sm"})};ce(Vt,Fe=>{e(Be)?Fe(ut):Fe(kt,-1)})}s(ge,Ce)},$$slots:{default:!0}})}var O=p(k,2);{let Q=i(()=>!be()||J()),ge=i(()=>c.editor_fileViewer_download_tooltip());Se(O,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(Q)},get title(){return e(ge)},children:(Me,Ce)=>{Ze(Me,{get icon(){return Dt},size:"sm"})},$$slots:{default:!0}})}var j=p(O,2),L=S(j,!0);P(f);var V=p(f,2),se=S(V);P(a),D(Q=>{g(L,e(N)),ar(V,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(d)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),bt(V,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(o)??""}px;`),tt(se,"src",Q),tt(se,"alt",e(N)),bt(se,`translate: ${e(xe)??""}px ${e(je)??""}px; transform: scale(${e(oe)/100}) rotate(${e(R)??""}deg); transition: transform 0.2s;`)},[()=>K()]),ct("pointerdown",V,w),ct("pointermove",V,Ee),ct("pointerup",V,l),et("pointercancel",V,l),et("lostpointercapture",V,l),s(t,a)},Pe=t=>{var a=Ka(),f=M(a),m=M(f);ke(m);var h=p(m,2);{let V=i(()=>!be()||J()),se=i(()=>c.editor_fileViewer_download_tooltip());Se(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(V)},get title(){return e(se)},children:(Q,ge)=>{Ze(Q,{get icon(){return Dt},size:"sm"})},$$slots:{default:!0}})}var k=p(h,2),O=S(k,!0);P(f);var j=p(f,2),L=S(j);P(a),D(V=>{g(O,e(N)),ar(j,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(d)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),bt(j,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(o)??""}px;`),tt(L,"src",V),tt(L,"alt",e(N)),bt(L,`translate: ${e(xe)??""}px ${e(je)??""}px; transform: scale(${e(oe)/100});`)},[()=>_e()]),ct("pointerdown",j,w),ct("pointermove",j,Ee),ct("pointerup",j,l),et("pointercancel",j,l),et("lostpointercapture",j,l),s(t,a)},ue=t=>{const a=i(ie);var f=Le(),m=de(f);gr(m,()=>re()+e(a),h=>{yr(h,{get sourceUrl(){return e(a)},get fileName(){return e(N)},get allowDownload(){return be()},get downloading(){return J()},onDownload:Z})}),s(t,f)},it=t=>{var a=Xa(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=M(h),O=p(k);P(h),P(a),D((j,L)=>{g(m,e(N)),tt(k,"src",j),g(O,` ${L??""}`)},[()=>K(),()=>c.editor_fileViewer_audioUnsupported_label()]),s(t,a)},yt=t=>{var a=Ja(),f=p(M(a),2),m=S(f,!0),h=p(f,2);{let k=i(()=>!be()||J());Se(h,{size:"sm",variant:"secondary",onclick:Z,get disabled(){return e(k)},children:(O,j)=>{var L=Ya(),V=de(L);Ze(V,{get icon(){return Dt},size:"sm",class:"mr-2"});var se=p(V);D(Q=>g(se,` ${Q??""}`),[()=>c.editor_fileViewer_downloadPdf_label()]),s(O,L)},$$slots:{default:!0}})}P(a),D(k=>g(m,k),[()=>c.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},lt=t=>{{let a=i(()=>ot($().toString()));Xt(t,{get value(){return e(a)},language:"json",get fileName(){return re()},lineNumbers:!0,readOnly:!0})}},Pt=t=>{const a=i(()=>qe($().toString()));var f=to(),m=M(f),h=M(m),k=M(h);xt(k,23,()=>e(a)[0]||[],(j,L)=>`header-${L}-${j}`,(j,L)=>{var V=Za(),se=S(V,!0);D(()=>g(se,e(L))),s(j,V)}),P(k),P(h);var O=p(h);xt(O,23,()=>e(a).slice(1),(j,L)=>`row-${L}`,(j,L,V)=>{var se=eo();xt(se,23,()=>e(L),(Q,ge)=>`cell-${e(V)}-${ge}`,(Q,ge)=>{var Me=Qa(),Ce=S(Me,!0);D(()=>g(Ce,e(ge))),s(Q,Me)}),P(se),s(j,se)}),P(O),P(m),P(f),s(t,f)},Lt=t=>{var a=ro(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=S(h,!0);P(a),D(O=>{g(m,e(N)),g(k,O)},[()=>c.editor_fileViewer_archive_label()]),s(t,a)},$t=t=>{var a=ao(),f=p(M(a),2),m=S(f,!0),h=p(f,2),k=S(h,!0);P(a),D(O=>{g(m,e(N)),g(k,O)},[()=>c.editor_fileViewer_binary_label()]),s(t,a)},Je=t=>{{let a=i(()=>$().toString());Xt(t,{get value(){return e(a)},get language(){return Ie()},get fileName(){return re()},lineNumbers:!0,highlightActiveLine:!0})}};ce(ye,t=>{e(W)==="image"?t(Ge):e(W)==="svg"?t(Pe,1):e(W)==="video"?t(ue,2):e(W)==="audio"?t(it,3):e(W)==="pdf"?t(yt,4):e(W)==="json"?t(lt,5):e(W)==="csv"?t(Pt,6):e(W)==="archive"?t(Lt,7):e(W)==="binary"?t($t,8):t(Je,-1)})}return P(pe),s(we,pe),zt(Ye)}Ar(["pointerdown","pointermove","pointerup"]);var io=C("<!> <!>",1),no=C("<!> <!> <!>",1),so=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),ur=C('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),lo=C('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),fr=C('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),co=C('<div class="flex items-center gap-3"><!> <!></div>'),uo=C('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),fo=C("<li><!></li>"),vo=C('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),po=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger"> </p> <p class="text-xs"> </p> <p class="text-xs font-mono"> </p> <!></div>'),go=C('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),mo=C('<div class="h-full overflow-auto p-4"><!></div>');function _o(we,x){if(new.target)return Mt({component:_o,...we});Rt(x,!0);const ke=()=>he(Pe,"$workspace",R),rt=()=>he(K,"$fileContentStore",R),re=()=>he(ie,"$fileLoadingStore",R),$=()=>he(_e,"$fileSavingStore",R),ae=()=>he(U,"$fileErrorStore",R),Ie=()=>he(ne,"$fileNotFoundCandidatesStore",R),De=()=>he(X,"$isFileBinaryStore",R),be=()=>he(Z,"$isFileDirtyStore",R),me=()=>he(at,"$fileLastUpdatedStore",R),J=()=>he(ot,"$ftChanges$",R),He=()=>he(Ge,"$gutterRead$",R),W=()=>he(je,"$lineWrapping",R),N=()=>he(Ne,"$diffIndicators",R),oe=()=>he(pe,"$rootMediaPreview",R),[R,Ve]=Jt(),Be=r=>{var n=io(),I=de(n);{var F=ve=>{var Ae=Le(),Oe=de(Ae);Ft(Oe,()=>St,(dt,pt)=>{pt(dt,{get icon(){return Pa},get label(){return e(f)},disabled:!0})}),s(ve,Ae)};ce(I,ve=>{!e(se)&&!e(l)&&!e(Je)&&ve(F)})}var fe=p(I,2);{var Te=ve=>{{let Ae=i(()=>!e(It)||!e(L)),Oe=i(()=>!e(l)&&(!e(It)||!e(L)));Ua(ve,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(It)},get previewEnabled(){return e(L)},onTogglePreview:()=>u(L,!e(L)),get showWrap(){return e(Ae)},get wrapEnabled(){return W()},onToggleWrap:()=>A.dispatch(Jr()),get showDiff(){return e(Oe)},get diffEnabled(){return N()},onToggleDiff:()=>A.dispatch(Yr())})}};ce(fe,ve=>{o().filePath&&!e(se)&&!e(Je)&&ve(Te)})}s(r,n)},xe=r=>{var n=Le(),I=de(n);{var F=fe=>{var Te=no(),ve=de(Te);{var Ae=We=>{var Ke=Le(),nt=de(Ke);{let gt=i(()=>c.layout_fileTab_goToChanges_tooltip());Ft(nt,()=>St,(mt,_t)=>{_t(mt,{get icon(){return ka},get label(){return e(gt)},onclick:Dr})})}s(We,Ke)};ce(ve,We=>{e($r)&&We(Ae)})}var Oe=p(ve,2);{var dt=We=>{var Ke=Le(),nt=de(Ke);{let gt=i(()=>c.layout_fileTab_downloadFile_label()),mt=i(()=>!e(ft)||e(Fe));Ft(nt,()=>St,(_t,At)=>{At(_t,{get icon(){return Dt},get label(){return e(gt)},onclick:Ct,get disabled(){return e(mt)}})})}s(We,Ke)};ce(Oe,We=>{e(Ce)&&We(dt)})}var pt=p(Oe,2);{let We=i(()=>c.layout_fileTab_deleteFile_tooltip());Ft(pt,()=>St,(Ke,nt)=>{nt(Ke,{get icon(){return $a},get label(){return e(We)},onclick:jr,destructive:!0})})}s(fe,Te)};ce(I,fe=>{o().filePath&&!e(se)&&!e(l)&&fe(F)})}s(r,n)},je=Ra(),Ne=za();let o=ee(x,"tab",7),d=ee(x,"workspaceId",7),T=ee(x,"isActive",7),_=ee(x,"isPanelFocused",7);$e(()=>{const r=d();if(!(!T()||!r||e(w)))return A.dispatch(qr(r,"files")),()=>A.dispatch(Gr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),Ee=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?ma(o().filePath,e(w)):o().filePath),z=Wr(e(y));$e(()=>{z.set(e(y))});const K=ia(d(),z),ie=na(d(),z),_e=sa(d(),z),U=la(d(),z),ne=da(d(),z),X=ca(d(),z),Z=lr(d(),z),at=ua(d(),z),ot=fa(d()),qe=oa(),Ye=crypto.randomUUID(),pe=xr(Ye),ye=`file-gutter:${crypto.randomUUID()}`,Ge=va(d(),ye),Pe=pa(d()),ue=i(()=>ke()?.worktreePath||ke()?.repositoryPath||ke()?.path||null),it=i(rt),yt=i(re),lt=i($),Pt=i(ae),Lt=5,$t=i(()=>(Ie()??[]).slice(0,Lt)),Je=i(De),t=i(be),a=i(me),f=i(()=>e(lt)?c.ui_saveIndicator_saving_tooltip():e(t)?c.ui_saveIndicator_autoSaving_tooltip():c.ui_saveIndicator_saved_tooltip());let m=H(null),h=H(Br([])),k=H(null),O=H(void 0),j=H(void 0),L=H(!0);$e(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(j)||(u(j,n,!0),u(O,{line:r},!0),u(L,!1))});const V=i(()=>e(w)?dr(o().filePath,e(Ee)):null),se=i(()=>e(w)?!e(V):!!(o().filePath&&(Da(o().filePath)||e(ue)&&ja(o().filePath,e(ue))))),Q=i(()=>o().filePath&&e(ue)?Gt(o().filePath)?o().filePath:`${e(ue)}/${o().filePath}`:null),ge=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),Me=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Ce=i(()=>d()&&/^[A-Za-z0-9._-]+$/.test(d())?dr(o().filePath,e(ue)):null),Vt=i(()=>!e(w)&&e(Ce)?e(Ce).split("/").slice(0,-1).join("/"):void 0),ut=i(()=>e(ge)||e(Me)?e(Ce):null),kt=i(()=>e(w)&&e(Me)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);$e(()=>{if(!T()||!e(w)||!e(V)||!e(kt))return;const r=crypto.randomUUID();return A.dispatch(hr(Ye,r,d(),e(V),{gitRootId:e(w),mimeType:e(kt)})),()=>A.dispatch(wr(Ye,r))});let Fe=H(!1);const ft=i(()=>!!e(Ce)&&!e(yt)&&(!e(Me)||e(k)===e(Ce))),Zt=i(()=>e(k)&&d()?`workspace-file://${d()}/${e(k).split("/").map(encodeURIComponent).join("/")}`:null),Et=i(()=>o().filePath?ea(o().filePath):"plaintext"),It=i(()=>e(Et)==="markdown");$e(()=>{if(!T()||e(ge)||e(w))return;const r=e(ut),n=o().filePath,I=d(),F=o().id;if(u(k,null),!r||!n||!I)return;let fe=!1;const Te=()=>!fe&&d()===I&&o().id===F&&o().filePath===n;return(async()=>{let ve=!1;try{ve=(await _a("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Te())return;if(ve){u(k,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(k,r,!0);return}const{candidates:Ae,truncated:Oe}=await Sa(I,r);if(Te()){if(!Oe&&Ae.length===1){A.dispatch(or(I,n,Ae[0],F));return}u(k,r,!0)}})(),()=>{fe=!0}});function Pr(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const vt=i(()=>e(l)||!o().filePath?null:J().find(r=>Pr(r,o().filePath))??null),$r=i(()=>!!e(vt));$e(()=>{if(e(l))return;const r=d(),n=o().filePath,I=e(ue);return()=>{if(!r||!n)return;const F=Ht.select(A.state,r,n);if(F?.kind!=="editable-text")return;const fe=Ot(F.localContent),Te=lr.select(A.state,r,n),ve=Gt(n)?n:I?`${I}/${n}`:null;Te&&ve&&A.dispatch(ir(r,n,ve,fe))}}),$e(()=>{const r=o().filePath,n=e(Q),I=d();if(!T())return;const F=!e(w)&&!!r&&Gt(r)&&!e(ue);r&&I&&!e(se)&&!e(Me)&&!e(ge)&&!F&&(e(w)&&e(V)&&e(y)?A.dispatch(nr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(V)}})):A.dispatch(nr(I,r,n??r)))});function kr(){return e(it)??""}function Ir(r){e(l)||e(Je)||!o().filePath||!d()||!e(Q)||A.dispatch(aa(d(),o().filePath,Ot(r)))}function Cr(){if(e(l)||e(Je)||!o().filePath||!e(Q)||e(it)===null||e(lt))return;const r=Ht.select(A.state,d(),o().filePath);r?.kind==="editable-text"&&A.dispatch(ir(d(),o().filePath,e(Q),Ot(r.localContent)))}function Fr(r){const n=o().filePath;!n||!d()||(A.dispatch(ra(d(),n)),A.dispatch(or(d(),n,r,o().id)))}$e(()=>{const r=o().filePath,n=e(vt);if(!r||!n){u(h,[],!0);return}if(!T())return;const I=d(),F=crypto.randomUUID();return A.dispatch(Kr(I,ye,F,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{A.dispatch(Xr(I,ye,F))}}),$e(()=>{const r=He(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(F=>F.file===o().filePath)??n[0];u(h,I?Ma(I.chunks.map(F=>({oldStart:F.oldStart,oldLines:F.oldLines,newStart:F.newStart,newLines:F.newLines,lines:F.lines.map(fe=>(fe.type===sr.Addition?"+":fe.type===sr.Deletion?"-":" ")+fe.content)}))):[],!0)});function Sr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Te=>Nr(r,La(Te),n);if(I("editor.save")){r.preventDefault(),e(t)&&!e(lt)&&Cr();return}const F=I("editor.undo")?"undo":I("editor.redo")?"redo":I("editor.toggle-task-list")?"toggle-task-list":I("editor.copy")?"copy":I("editor.select-all")?"select-all":null;if(!F||e(l)&&F!=="copy"&&F!=="select-all")return;F!=="toggle-task-list"&&e(m)?.runShortcut(F)&&r.preventDefault()}function Dr(r){if(!o().filePath||!e(vt))return;const n=r?.metaKey||r?.ctrlKey||!1,F=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;A.dispatch(ta(d(),e(vt),{filePath:o().filePath,changeId:e(vt).id,openInAdjacentPanel:n,sourcePanelId:F}))}async function Ct(){const r=e(Ce);if(!(e(l)||!r||!d()||!e(ft)||e(Fe))){u(Fe,!0);try{const n=await ga(d(),r,e(ue));!n?.success&&!n?.canceled&&qt.error(n?.error?.message||c.layout_fileTab_downloadFailed_error())}catch{qt.error(c.layout_fileTab_downloadFailed_error())}finally{u(Fe,!1)}}}function jr(){const r=e(Q);if(e(l)||!o().filePath||!d()||!r)return;const n=Zr(Ht.select(A.state,d(),o().filePath));if(!n){qt.error(c.ui_reversibleActions_failed_error({message:c.fileExplorer_tree_undoUnavailable_error()}));return}A.dispatch(Qr(d(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}$e(()=>{if(!qe||!T())return;const r={isDirty:!e(l)&&e(t),isSaving:!e(l)&&e(lt)};vr(()=>{qe.registerActions({display:Be,actions:xe}),qe.registerState(r)})});var Mr={get tab(){return o()},set tab(r){o(r),te()},get workspaceId(){return d()},set workspaceId(r){d(r),te()},get isActive(){return T()},set isActive(r){T(r),te()},get isPanelFocused(){return _()},set isPanelFocused(r){_(r),te()},$set:Tt,$on:(r,n)=>Ut(x,r,n)},Qt=Le();et("keydown",pr,r=>T()&&Sr(r));var Tr=de(Qt);{var Ur=r=>{var n=Le(),I=de(n);gr(I,()=>o().filePath,F=>{var fe=Le(),Te=de(fe);{var ve=b=>{var v=so(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0);P(v),D(Y=>{g(q,Y),g(Ue,o().filePath)},[()=>c.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Ae=b=>{var v=Le(),E=de(v);{var q=B=>{Yt(B,{get workspaceId(){return d()},get filePath(){return e(V)},get gitRootId(){return e(w)}})};ce(E,B=>{T()&&B(q)})}s(b,v)},Oe=b=>{var v=Le(),E=de(v);{var q=Y=>{var G=ur(),le=M(G),Re=S(le,!0);P(G),D(ze=>g(Re,ze),[()=>c.layout_fileTab_errorLoading_label()]),s(Y,G)},B=Y=>{jt(Y,{get filePath(){return o().filePath},get sourceUrl(){return oe().url},allowDownload:!1})},Ue=Y=>{var G=lo(),le=M(G),Re=S(le,!0);P(G),D(ze=>g(Re,ze),[()=>c.layout_fileTab_preparing_label()]),s(Y,G)};ce(E,Y=>{oe()?.error?Y(q):oe()?.url?Y(B,1):Y(Ue,-1)})}s(b,v)},dt=b=>{var v=Le(),E=de(v);{var q=B=>{Yt(B,{get workspaceId(){return d()},get filePath(){return e(ut)}})};ce(E,B=>{T()&&B(q)})}s(b,v)},pt=b=>{var v=ur(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.file_pdf_load_error()]),s(b,v)},We=b=>{{let v=i(()=>e(k)??o().filePath),E=i(()=>!e(l)&&e(ft));jt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Zt)},onDownload:Ct,get allowDownload(){return e(E)},get downloading(){return e(Fe)}})}},Ke=b=>{var v=fr(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.layout_fileTab_preparing_label()]),s(b,v)},nt=b=>{var v=uo(),E=M(v);xt(E,20,()=>[...Array(20).keys()],q=>q,(q,B)=>{var Ue=co(),Y=M(Ue);cr(Y,{class:"h-3 w-8 shrink-0"});var G=p(Y,2);cr(G,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Ue),s(q,Ue)}),P(E),P(v),s(b,v)},gt=b=>{var v=po(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0),Y=p(B,2),G=S(Y,!0),le=p(Y,2);{var Re=ze=>{var st=vo(),ht=de(st),Wt=S(ht,!0),er=p(ht,2);xt(er,20,()=>e($t),wt=>wt,(wt,tr)=>{var Bt=fo(),zr=M(Bt);Se(zr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Fr(tr),children:(Lr,ho)=>{Xe();var rr=Qe();D(()=>g(rr,tr)),s(Lr,rr)},$$slots:{default:!0}}),P(Bt),s(wt,Bt)}),P(er),D(wt=>g(Wt,wt),[()=>c.layout_fileTab_didYouMean_label()]),s(ze,st)};ce(le,ze=>{e($t).length>0&&ze(Re)})}P(v),D(ze=>{g(q,ze),g(Ue,e(Pt)),g(G,o().filePath)},[()=>c.layout_fileTab_errorLoading_label()]),s(b,v)},mt=b=>{var v=go(),E=M(v),q=S(E,!0),B=p(E,2),Ue=S(B,!0),Y=p(B,2);{var G=le=>{{let Re=i(()=>!e(ft)||e(Fe));Se(le,{variant:"secondary",size:"sm",onclick:Ct,get disabled(){return e(Re)},children:(ze,st)=>{Xe();var ht=Qe();D(Wt=>g(ht,Wt),[()=>c.layout_fileTab_downloadFile_label()]),s(ze,ht)},$$slots:{default:!0}})}};ce(Y,le=>{!e(l)&&e(Ce)&&le(G)})}P(v),D(le=>{g(q,le),g(Ue,o().filePath)},[()=>c.editor_fileViewer_binary_label()]),s(b,v)},_t=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var E=Le(),q=de(E);{var B=G=>{{let le=i(()=>o().filePath||""),Re=i(()=>!e(l)&&e(ft));jt(G,{get filePath(){return e(le)},get fileContent(){return e(it)},get language(){return e(Et)},get isBinary(){return e(Je)},onDownload:Ct,get allowDownload(){return e(Re)},get downloading(){return e(Fe)}})}},Ue=G=>{var le=mo(),Re=M(le);Ta(Re,{get content(){return e(it)},get workspaceId(){return d()},get relativeMediaBase(){return e(Vt)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(le),s(G,le)},Y=G=>{var le=kr,Re=Ir;{let ze=i(()=>N()?e(h):[]);mr(Xt(G,{get value(){return le()},set value(st){Re(st)},get language(){return e(Et)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return d()},get filePath(){return o().filePath},get lineWrapping(){return W()},get lineChanges(){return e(ze)},get jumpTo(){return e(O)},get externalContentVersion(){return e(a)},get isPanelFocused(){return _()}}),st=>u(m,st,!0),()=>e(m))}};ce(q,G=>{e(v)?G(B):e(It)&&e(L)?G(Ue,1):G(Y,-1)})}s(b,E)},At=b=>{var v=fr(),E=M(v),q=S(E,!0);P(v),D(B=>g(q,B),[()=>c.layout_fileTab_preparing_label()]),s(b,v)};ce(Te,b=>{e(se)?b(ve):e(w)&&e(ge)&&e(V)?b(Ae,1):e(w)&&e(Me)?b(Oe,2):e(ge)&&e(ut)?b(dt,3):e(ge)?b(pt,4):e(Zt)?b(We,5):e(Me)?b(Ke,6):e(yt)?b(nt,7):e(Pt)?b(gt,8):e(Je)?b(mt,9):e(it)!==null?b(_t,10):b(At,-1)})}s(F,fe)}),s(r,n)};ce(Tr,r=>{o().filePath&&r(Ur)})}s(we,Qt);var Rr=zt(Mr);return Ve(),Rr}export{_o as default};
@@ -1,4 +1,4 @@
1
- import{aF as me,K as ye,O as le,aI as be,L as Ae,aG as Ce,a as n,ad as ce,aE as we,r as Se,k as Re,M as Bt,aD as _e,j as ge,y as ke,U as Te,q as De}from"./DPBL52wT.js";import{g as r,bz as ae}from"./CQcnUt15.js";import{b as ne}from"./CyfBUrNA.js";import{l as oe}from"./QjTgQQZx.js";var It=(function(){var i=n(function(F,l,u,x){for(u=u||{},x=F.length;x--;u[F[x]]=l);return u},"o"),t=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],b=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],m=[1,26],k=[1,28],T=[1,29],L=[1,30],W=[1,31],X=[1,32],E=[1,33],M=[1,34],A=[1,35],D=[1,36],g=[1,37],B=[1,43],V=[1,42],Y=[1,47],N=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],U=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],C=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],w=[1,65],z=[26,28],_={trace:n(r(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(r(function(l,u,x,d,S,o,ct){var p=o.length-1;switch(S){case 5:d.setOrientation(o[p]);break;case 9:d.setDiagramTitle(o[p].text.trim());break;case 12:d.setLineData({text:"",type:"text"},o[p]);break;case 13:d.setLineData(o[p-1],o[p]);break;case 14:d.setBarData({text:"",type:"text"},o[p]);break;case 15:d.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),d.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:d.setXAxisTitle(o[p]);break;case 25:d.setXAxisTitle(o[p-1]);break;case 26:d.setXAxisTitle({type:"text",text:""});break;case 27:d.setXAxisBand(o[p]);break;case 28:d.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:d.setYAxisTitle(o[p]);break;case 33:d.setYAxisTitle(o[p-1]);break;case 34:d.setYAxisTitle({type:"text",text:""});break;case 35:d.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),"anonymous"),table:[i(t,e,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},i(t,e,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),i(t,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},i(b,[2,36]),i(b,[2,37]),i(b,[2,38]),{1:[2,1]},i(t,e,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},i(b,[2,5]),i(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:39,13:38,24:B,29:V,30:f,31:40,32:41,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:45,15:44,29:Y,30:f,35:46,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:49,17:48,24:N,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:52,17:51,24:N,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{20:[1,53]},{22:[1,54]},i(R,[2,18]),{1:[2,2]},i(R,[2,8]),i(R,[2,9]),i(U,[2,39],{41:55,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g}),i(U,[2,40]),i(U,[2,41]),i(C,[2,42]),i(C,[2,44]),i(C,[2,45]),i(C,[2,46]),i(C,[2,47]),i(C,[2,48]),i(C,[2,49]),i(C,[2,50]),i(C,[2,51]),i(C,[2,52]),i(C,[2,53]),i(R,[2,10]),i(R,[2,24],{32:41,31:56,24:B,29:V}),i(R,[2,26]),i(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},i(R,[2,11]),i(R,[2,32],{35:60,29:Y}),i(R,[2,34]),{33:[1,61]},i(R,[2,12]),{17:62,24:N},{25:63,27:64,29:w},i(R,[2,14]),{17:66,24:N},i(R,[2,16]),i(R,[2,17]),i(C,[2,43]),i(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},i(R,[2,33]),{29:[1,70]},i(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},i(z,[2,23],{30:[1,73]}),i(R,[2,15]),i(R,[2,28]),i(R,[2,29]),{11:59,30:f,34:74,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},i(R,[2,35]),i(R,[2,19]),{25:75,27:64,29:w},i(z,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(r(function(l,u){if(u.recoverable)this.trace(l);else{var x=new Error(l);throw x.hash=u,x}},"parseError"),"parseError"),parse:n(r(function(l){var u=this,x=[0],d=[],S=[null],o=[],ct=this.table,p="",pt=0,te=0,de=2,ee=1,fe=o.slice.call(arguments,1),P=Object.create(this.lexer),q={yy:{}};for(var Dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dt)&&(q.yy[Dt]=this.yy[Dt]);P.setInput(l,q.yy),q.yy.lexer=P,q.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var Pt=P.yylloc;o.push(Pt);var pe=P.options&&P.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(I){x.length=x.length-2*I,S.length=S.length-I,o.length=o.length-I}r(ie,"popStack"),n(ie,"popStack");function Lt(){var I;return I=d.pop()||P.lex()||ee,typeof I!="number"&&(I instanceof Array&&(d=I,I=d.pop()),I=u.symbols_[I]||I),I}r(Lt,"lex"),n(Lt,"lex");for(var v,j,O,vt,rt={},mt,H,se,yt;;){if(j=x[x.length-1],this.defaultActions[j]?O=this.defaultActions[j]:((v===null||typeof v>"u")&&(v=Lt()),O=ct[j]&&ct[j][v]),typeof O>"u"||!O.length||!O[0]){var Et="";yt=[];for(mt in ct[j])this.terminals_[mt]&&mt>de&&yt.push("'"+this.terminals_[mt]+"'");P.showPosition?Et="Parse error on line "+(pt+1)+`:
1
+ import{aF as me,K as ye,O as le,aI as be,L as Ae,aG as Ce,a as n,ad as ce,aE as we,r as Se,k as Re,M as Bt,aD as _e,j as ge,y as ke,U as Te,q as De}from"./D0lrdhHK.js";import{g as r,bz as ae}from"./D3jhcRTQ.js";import{b as ne}from"./CyfBUrNA.js";import{l as oe}from"./wPF9jCkR.js";var It=(function(){var i=n(function(F,l,u,x){for(u=u||{},x=F.length;x--;u[F[x]]=l);return u},"o"),t=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],b=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],m=[1,26],k=[1,28],T=[1,29],L=[1,30],W=[1,31],X=[1,32],E=[1,33],M=[1,34],A=[1,35],D=[1,36],g=[1,37],B=[1,43],V=[1,42],Y=[1,47],N=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],U=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],C=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],w=[1,65],z=[26,28],_={trace:n(r(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(r(function(l,u,x,d,S,o,ct){var p=o.length-1;switch(S){case 5:d.setOrientation(o[p]);break;case 9:d.setDiagramTitle(o[p].text.trim());break;case 12:d.setLineData({text:"",type:"text"},o[p]);break;case 13:d.setLineData(o[p-1],o[p]);break;case 14:d.setBarData({text:"",type:"text"},o[p]);break;case 15:d.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),d.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:d.setXAxisTitle(o[p]);break;case 25:d.setXAxisTitle(o[p-1]);break;case 26:d.setXAxisTitle({type:"text",text:""});break;case 27:d.setXAxisBand(o[p]);break;case 28:d.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:d.setYAxisTitle(o[p]);break;case 33:d.setYAxisTitle(o[p-1]);break;case 34:d.setYAxisTitle({type:"text",text:""});break;case 35:d.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),"anonymous"),table:[i(t,e,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},i(t,e,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),i(t,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},i(b,[2,36]),i(b,[2,37]),i(b,[2,38]),{1:[2,1]},i(t,e,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},i(b,[2,5]),i(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:39,13:38,24:B,29:V,30:f,31:40,32:41,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:45,15:44,29:Y,30:f,35:46,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:49,17:48,24:N,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{11:52,17:51,24:N,30:f,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},{20:[1,53]},{22:[1,54]},i(R,[2,18]),{1:[2,2]},i(R,[2,8]),i(R,[2,9]),i(U,[2,39],{41:55,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g}),i(U,[2,40]),i(U,[2,41]),i(C,[2,42]),i(C,[2,44]),i(C,[2,45]),i(C,[2,46]),i(C,[2,47]),i(C,[2,48]),i(C,[2,49]),i(C,[2,50]),i(C,[2,51]),i(C,[2,52]),i(C,[2,53]),i(R,[2,10]),i(R,[2,24],{32:41,31:56,24:B,29:V}),i(R,[2,26]),i(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},i(R,[2,11]),i(R,[2,32],{35:60,29:Y}),i(R,[2,34]),{33:[1,61]},i(R,[2,12]),{17:62,24:N},{25:63,27:64,29:w},i(R,[2,14]),{17:66,24:N},i(R,[2,16]),i(R,[2,17]),i(C,[2,43]),i(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},i(R,[2,33]),{29:[1,70]},i(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},i(z,[2,23],{30:[1,73]}),i(R,[2,15]),i(R,[2,28]),i(R,[2,29]),{11:59,30:f,34:74,39:24,40:m,41:27,42:k,43:T,44:L,45:W,46:X,47:E,48:M,49:A,50:D,51:g},i(R,[2,35]),i(R,[2,19]),{25:75,27:64,29:w},i(z,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(r(function(l,u){if(u.recoverable)this.trace(l);else{var x=new Error(l);throw x.hash=u,x}},"parseError"),"parseError"),parse:n(r(function(l){var u=this,x=[0],d=[],S=[null],o=[],ct=this.table,p="",pt=0,te=0,de=2,ee=1,fe=o.slice.call(arguments,1),P=Object.create(this.lexer),q={yy:{}};for(var Dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dt)&&(q.yy[Dt]=this.yy[Dt]);P.setInput(l,q.yy),q.yy.lexer=P,q.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var Pt=P.yylloc;o.push(Pt);var pe=P.options&&P.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ie(I){x.length=x.length-2*I,S.length=S.length-I,o.length=o.length-I}r(ie,"popStack"),n(ie,"popStack");function Lt(){var I;return I=d.pop()||P.lex()||ee,typeof I!="number"&&(I instanceof Array&&(d=I,I=d.pop()),I=u.symbols_[I]||I),I}r(Lt,"lex"),n(Lt,"lex");for(var v,j,O,vt,rt={},mt,H,se,yt;;){if(j=x[x.length-1],this.defaultActions[j]?O=this.defaultActions[j]:((v===null||typeof v>"u")&&(v=Lt()),O=ct[j]&&ct[j][v]),typeof O>"u"||!O.length||!O[0]){var Et="";yt=[];for(mt in ct[j])this.terminals_[mt]&&mt>de&&yt.push("'"+this.terminals_[mt]+"'");P.showPosition?Et="Parse error on line "+(pt+1)+`:
2
2
  `+P.showPosition()+`
3
3
  Expecting `+yt.join(", ")+", got '"+(this.terminals_[v]||v)+"'":Et="Parse error on line "+(pt+1)+": Unexpected "+(v==ee?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(Et,{text:P.match,token:this.terminals_[v]||v,line:P.yylineno,loc:Pt,expected:yt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+v);switch(O[0]){case 1:x.push(v),S.push(P.yytext),o.push(P.yylloc),x.push(O[1]),v=null,te=P.yyleng,p=P.yytext,pt=P.yylineno,Pt=P.yylloc;break;case 2:if(H=this.productions_[O[1]][1],rt.$=S[S.length-H],rt._$={first_line:o[o.length-(H||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(H||1)].first_column,last_column:o[o.length-1].last_column},pe&&(rt._$.range=[o[o.length-(H||1)].range[0],o[o.length-1].range[1]]),vt=this.performAction.apply(rt,[p,te,pt,q.yy,O[1],S,o].concat(fe)),typeof vt<"u")return vt;H&&(x=x.slice(0,-1*H*2),S=S.slice(0,-1*H),o=o.slice(0,-1*H)),x.push(this.productions_[O[1]][0]),S.push(rt.$),o.push(rt._$),se=ct[x[x.length-2]][x[x.length-1]],x.push(se);break;case 3:return!0}}return!0},"parse"),"parse")},lt=(function(){var F={EOF:1,parseError:n(r(function(u,x){if(this.yy.parser)this.yy.parser.parseError(u,x);else throw new Error(u)},"parseError"),"parseError"),setInput:n(function(l,u){return this.yy=u||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:n(function(l){var u=l.length,x=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var d=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),x.length-1&&(this.yylineno-=x.length-1);var S=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:x?(x.length===d.length?this.yylloc.first_column:0)+d[d.length-x.length].length-x[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(l){this.unput(this.match.slice(l))},"less"),pastInput:n(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
@@ -1,3 +1,3 @@
1
- import{p as oe}from"./Bq3GTaKG.js";import{p as se,i as de}from"./D0M9u_n-.js";import{O as le,aI as ce,aF as me,K as ue,L as xe,aG as fe,a as o,ad as h,N as ne,aL as ge,k as he,j as pe,M as A,y as ve,aD as B,aX as M,f as be}from"./DPBL52wT.js";import{c3 as we,g as d}from"./CQcnUt15.js";var ae="position frame",ie="frame positioned",k="position relation",re="relation positioned",ye=o(function(e){h.debug("options str",e)},"setOptions"),Pe=o(function(){return{}},"getOptions"),Se=o(function(){R(),he()},"clear");function R(){D={}}d(R,"reset");o(R,"reset");var Fe=ve.eventmodeling,Be=o(()=>pe({...Fe,...A().eventmodeling}),"getConfig"),D={};function N(){let e=Me;const{ast:n}=D,t=P();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((a,i)=>{const r=H(a,n.dataEntities,t);e=w(e,{$kind:ae,index:i,frame:a,textProps:r});let l;X(a)?(h.debug("source frame",a.sourceFrames),l=n.frames.filter(c=>a.sourceFrames.some(m=>m.$refText===c.name)),l.forEach(c=>{e=w(e,{$kind:k,index:i,frame:a,sourceFrame:c})})):e=w(e,{$kind:k,index:i,frame:a})}),e={...e,sortedSwimlanesArray:S(e.swimlanes)},e}d(N,"getState");o(N,"getState");function T(e){D.ast=e}d(T,"setAst");o(T,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function P(){return s}d(P,"getDiagramProps");o(P,"getDiagramProps");var Me={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function $(e){const n=e.split(".");if(n.length===2)return n[0]}d($,"extractNamespace");o($,"extractNamespace");function C(e){const n=e.split(".");return n.length===2?n[1]:e}d(C,"extractName");o(C,"extractName");function I(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}d(I,"findSwimlaneByNamespace");o(I,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(a=>{const i=Number.parseInt(a);return i>n&&i<t}).map(a=>Number.parseInt(a)))+1}d(b,"findNextAvailableIndex");o(b,"findNextAvailableIndex");function O(e,n){const t=$(e.entityIdentifier),a=I(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return a?{index:a.index,label:a.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return a?{index:a.index,label:a.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return a?{index:a.index,label:a.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}d(O,"calculateSwimlaneProps");o(O,"calculateSwimlaneProps");function W(e){const{themeVariables:n}=A();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}d(W,"calculateEntityVisualProps");o(W,"calculateEntityVisualProps");function H(e,n,t){const a=A(),i=B(C(e.entityIdentifier)??"",a);let r;const l={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let m=`<b>${M(i,t.textMaxWidth,l)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=B(r,a),r=M(r,t.textMaxWidth,l),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const v=n.find(F=>F.name===e.dataReference?.$refText);v&&(r=v.dataBlockValue,r=r.substring(r.indexOf(`{
1
+ import{p as oe}from"./ixob39CO.js";import{p as se,i as de}from"./Bzhw8fuk.js";import{O as le,aI as ce,aF as me,K as ue,L as xe,aG as fe,a as o,ad as h,N as ne,aL as ge,k as he,j as pe,M as A,y as ve,aD as B,aX as M,f as be}from"./D0lrdhHK.js";import{c3 as we,g as d}from"./D3jhcRTQ.js";var ae="position frame",ie="frame positioned",k="position relation",re="relation positioned",ye=o(function(e){h.debug("options str",e)},"setOptions"),Pe=o(function(){return{}},"getOptions"),Se=o(function(){R(),he()},"clear");function R(){D={}}d(R,"reset");o(R,"reset");var Fe=ve.eventmodeling,Be=o(()=>pe({...Fe,...A().eventmodeling}),"getConfig"),D={};function N(){let e=Me;const{ast:n}=D,t=P();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((a,i)=>{const r=H(a,n.dataEntities,t);e=w(e,{$kind:ae,index:i,frame:a,textProps:r});let l;X(a)?(h.debug("source frame",a.sourceFrames),l=n.frames.filter(c=>a.sourceFrames.some(m=>m.$refText===c.name)),l.forEach(c=>{e=w(e,{$kind:k,index:i,frame:a,sourceFrame:c})})):e=w(e,{$kind:k,index:i,frame:a})}),e={...e,sortedSwimlanesArray:S(e.swimlanes)},e}d(N,"getState");o(N,"getState");function T(e){D.ast=e}d(T,"setAst");o(T,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function P(){return s}d(P,"getDiagramProps");o(P,"getDiagramProps");var Me={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function $(e){const n=e.split(".");if(n.length===2)return n[0]}d($,"extractNamespace");o($,"extractNamespace");function C(e){const n=e.split(".");return n.length===2?n[1]:e}d(C,"extractName");o(C,"extractName");function I(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}d(I,"findSwimlaneByNamespace");o(I,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(a=>{const i=Number.parseInt(a);return i>n&&i<t}).map(a=>Number.parseInt(a)))+1}d(b,"findNextAvailableIndex");o(b,"findNextAvailableIndex");function O(e,n){const t=$(e.entityIdentifier),a=I(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return a?{index:a.index,label:a.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return a?{index:a.index,label:a.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return a?{index:a.index,label:a.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}d(O,"calculateSwimlaneProps");o(O,"calculateSwimlaneProps");function W(e){const{themeVariables:n}=A();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}d(W,"calculateEntityVisualProps");o(W,"calculateEntityVisualProps");function H(e,n,t){const a=A(),i=B(C(e.entityIdentifier)??"",a);let r;const l={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let m=`<b>${M(i,t.textMaxWidth,l)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=B(r,a),r=M(r,t.textMaxWidth,l),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const v=n.find(F=>F.name===e.dataReference?.$refText);v&&(r=v.dataBlockValue,r=r.substring(r.indexOf(`{
2
2
  `)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=B(r,a),r=M(r,t.textMaxWidth,l),r=r.replaceAll(" ","&nbsp;"),r+="<br/>")}const u=r!==void 0;u&&(m+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const f={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},x=be(m,f),p=u?x.width/3:x.width,g={content:m,width:p,height:x.height};return h.debug(`[${e.name}] ${e.entityIdentifier} text`,g),g}d(H,"calculateTextProps");o(H,"calculateTextProps");function U(e,n){const t=n,a=W(t.frame),i={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:ie,frame:t.frame,index:t.index,visual:a,dimension:i,textProps:t.textProps}]}d(U,"decidePositionFrame");o(U,"decidePositionFrame");function L(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}d(L,"calculateX");o(L,"calculateX");function _(e,n){const t=[...e.map(a=>a.r),n];return Math.max(...t)}d(_,"calculateMaxRight");o(_,"calculateMaxRight");function S(e){return Object.values(e).sort((n,t)=>n.index-t.index)}d(S,"sortedSwimlanesArray");o(S,"sortedSwimlanesArray");function G(e,n){const t=n,a=O(t.frame,e.swimlanes);let i;a.index in e.swimlanes?i=e.swimlanes[a.index]:i={index:a.index,label:a.label,r:0,y:a.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,l=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,c={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},m=L(i,l,r),u=m+c.width+s.boxPadding,f=_(Object.values(e.swimlanes),u);i.r=m+c.width,i.maxHeight=Math.max(i.maxHeight,c.height),i.height=Math.max(s.swimlaneMinHeight,i.maxHeight)+2*s.swimlanePadding;const x={x:m,y:s.swimlanePadding+i.y,r:u,dimension:c,leftSibling:!1,swimlane:i,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},p={...e,boxes:[...e.boxes,x],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:a.index,previousFrame:t.frame,maxR:f},g=S(p.swimlanes);g.length>0&&(g[0].y=0);for(let v=1;v<g.length;v++){const F=g[v],te=g[v-1];F.y=te.y+te.height+s.swimlaneGap}return p}d(G,"evolveFramePositioned");o(G,"evolveFramePositioned");function V(e,n){return e===0&&n.sourceFrames.length===0}d(V,"isFirstFrame");o(V,"isFirstFrame");function X(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}d(X,"hasSourceFrame");o(X,"hasSourceFrame");function y(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}d(y,"findBoxByFrame");o(y,"findBoxByFrame");function j(e,n,t){if(!(t<0))for(let a=t;a>=0;a--){const i=e[a];if(i.swimlane.index!==n)return i}}d(j,"findBoxByLineIndex");o(j,"findBoxByLineIndex");function Y(e,n){const t=n;if(de(t.frame)||V(t.index,t.frame))return[];const a=y(e.boxes,t.frame);if(a===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let i;return t.sourceFrame?i=y(e.boxes,t.sourceFrame):i=j(e.boxes,a.swimlane.index,t.index-1),i===void 0?[]:[{$kind:re,frame:t.frame,index:t.index,sourceBox:i,targetBox:a}]}d(Y,"decidePositionRelation");o(Y,"decidePositionRelation");function K(e,n){const t=n,a={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,a]}}d(K,"evolveRelationPositioned");o(K,"evolveRelationPositioned");var ke={[ae]:U,[k]:Y},Ee={[ie]:G,[re]:K};function z(e,n){const t=ke[n.$kind];if(t==null)return[];const a=t(e,n);return h.debug("decided events",a),a}d(z,"decide");o(z,"decide");function q(e,n){const t=n.reduce((a,i)=>{const r=Ee[i.$kind];return r==null?a:r(a,i)},e);return h.debug("evolve events",{state:e,newState:t,events:n}),t}d(q,"evolve");o(q,"evolve");function w(e,n){const t=z(e,n);return q(e,t)}d(w,"dispatch");o(w,"dispatch");var E={getConfig:Be,setOptions:ye,getOptions:Pe,clear:Se,setAccTitle:fe,getAccTitle:xe,getAccDescription:ue,setAccDescription:me,setDiagramTitle:ce,getDiagramTitle:le,setAst:T,getDiagramProps:P,getState:N},Ae={parse:o(async e=>{const n=await se("eventmodeling",e);h.debug(n),E.setAst(n),oe(n,E)},"parse")},Re=ne(),De=Re?.eventmodeling;function J(e,n){return t=>{const a=t.swimlane.y+n.swimlanePadding,i=e.append("g").attr("class","em-box");i.append("rect").attr("x",t.x).attr("y",a).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),i.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",a+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}d(J,"renderD3Box");o(J,"renderD3Box");function Q(e,n){return e>n}d(Q,"dirUpwards");o(Q,"dirUpwards");function Z(e,n,t,a){return i=>{const r=i.sourceBox.swimlane.y+n.swimlanePadding,l=i.targetBox.swimlane.y+n.swimlanePadding,c=Q(r,l),m=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3;let f,x;h.debug(`rendering relation up=${c} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),c?(f=r,x=l+i.targetBox.dimension.height):(f=r+i.sourceBox.dimension.height,x=l);const p=a.emRelationStroke??i.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",i.visual.fill).attr("stroke",p).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${m} ${f} L${u} ${x}`)}}d(Z,"renderD3Relation");o(Z,"renderD3Relation");function ee(e,n,t,a){return i=>{const r=e.append("g").attr("class","em-swimlane"),l=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",c=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",i.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",i.height).attr("fill",l).attr("stroke",c),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",i.y+30).text(i.label)}}d(ee,"renderD3Swimlane");o(ee,"renderD3Swimlane");var Ne=o(function(e,n,t,a){if(h.debug("in eventmodeling renderer",e+`
3
3
  `,"id:",n,t),!De)throw new Error("EventModeling config not found");const i=a.db,{themeVariables:r,eventmodeling:l}=ne(),c=we(`[id="${n}"]`),m=i.getDiagramProps(),u=i.getState(),f=`em-arrowhead-${n}`,x=r.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(ee(c,u.maxR,m,r)),u.boxes.forEach(J(c,m)),u.relations.forEach(Z(c,m,f,r)),c.append("defs").append("marker").attr("id",f).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",x),ge(void 0,c,l?.padding??30,l?.useMaxWidth)},"draw"),Te={draw:Ne},$e=o(e=>"","getStyles"),Ce=$e,Ue={parser:Ae,db:E,renderer:Te,styles:Ce};export{Ue as diagram};