@intent-hq/web 2.312.0 → 2.313.1

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 (265) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{B2aHvKzW.js → -URcs0EB.js} +2 -2
  3. package/web/app/immutable/chunks/{C46TnD1H.js → 19F8thw1.js} +1 -1
  4. package/web/app/immutable/chunks/{B1Yylqx8.js → 1wCbR4ud.js} +1 -1
  5. package/web/app/immutable/chunks/{C6_fF-vn.js → 2O2vJlPl.js} +1 -1
  6. package/web/app/immutable/chunks/2zKcFAvZ.js +1 -0
  7. package/web/app/immutable/chunks/3V4Tx4nH.js +1 -0
  8. package/web/app/immutable/chunks/{DMiVWfnj.js → 4CMzT_BI.js} +1 -1
  9. package/web/app/immutable/chunks/{DsKjRYyi.js → 4wFlAApS.js} +1 -1
  10. package/web/app/immutable/chunks/{C8M-Eryf.js → 6rzwTXJx.js} +1 -1
  11. package/web/app/immutable/chunks/{Ddfj4iOJ.js → 7IyNIHph.js} +1 -1
  12. package/web/app/immutable/chunks/{CiN55CeC.js → 7ZJvg7ev.js} +1 -1
  13. package/web/app/immutable/chunks/{B63GdhMJ.js → 992RyGqf.js} +1 -1
  14. package/web/app/immutable/chunks/{ChqSx7V8.js → 9sI_nbHm.js} +1 -1
  15. package/web/app/immutable/chunks/{B4eSJ_b5.js → A3beYjJS.js} +29 -29
  16. package/web/app/immutable/chunks/{DjeoEINQ.js → AF5xKPfV.js} +1 -1
  17. package/web/app/immutable/chunks/{BDPd3Gxs.js → AGSVFpXc.js} +1 -1
  18. package/web/app/immutable/chunks/{SU_Zxid7.js → AHQMxoVk.js} +1 -1
  19. package/web/app/immutable/chunks/{D25S3m8c.js → B-xGvc_0.js} +1 -1
  20. package/web/app/immutable/chunks/{DB5R3D7Y.js → B0qtRhuw.js} +1 -1
  21. package/web/app/immutable/chunks/{I6iBDGZz.js → B1YnvfKo.js} +1 -1
  22. package/web/app/immutable/chunks/{LnbsKux_.js → B2RRuLl5.js} +1 -1
  23. package/web/app/immutable/chunks/{CHk37LgR.js → B2st7VbN.js} +1 -1
  24. package/web/app/immutable/chunks/{CPy8SeUf.js → B3W2oJ3u.js} +2 -2
  25. package/web/app/immutable/chunks/{DaUwNiAB.js → B6Eksue8.js} +3 -3
  26. package/web/app/immutable/chunks/{BlvwJgNV.js → B6QJA3k0.js} +1 -1
  27. package/web/app/immutable/chunks/{CWKTWYM7.js → B6mHy78M.js} +1 -1
  28. package/web/app/immutable/chunks/{CIx9_tZJ.js → B88eFHaH.js} +1 -1
  29. package/web/app/immutable/chunks/{BXmFIcIP.js → B8VhjfbW.js} +1 -1
  30. package/web/app/immutable/chunks/BAqR9jtB.js +1 -0
  31. package/web/app/immutable/chunks/{BEBrFxQu.js → BAssmU5H.js} +1 -1
  32. package/web/app/immutable/chunks/{B195Jf7v.js → BCoW5DN6.js} +3 -3
  33. package/web/app/immutable/chunks/{CVVkCR3K.js → BDGDJyji.js} +1 -1
  34. package/web/app/immutable/chunks/{DGjSXQQ8.js → BDXCy3lH.js} +1 -1
  35. package/web/app/immutable/chunks/{htWd8PdL.js → BE-b7v7R.js} +1 -1
  36. package/web/app/immutable/chunks/{daIBqHmL.js → BESrHe_0.js} +1 -1
  37. package/web/app/immutable/chunks/{-g2yD8nW.js → BGGxKX5q.js} +1 -1
  38. package/web/app/immutable/chunks/{B1fMeJph.js → BHqHNrOT.js} +1 -1
  39. package/web/app/immutable/chunks/{B6tJ7e7m.js → BIZcuYRW.js} +2 -2
  40. package/web/app/immutable/chunks/{Cu9hF6Lj.js → BMkc6ng0.js} +1 -1
  41. package/web/app/immutable/chunks/{BY5CEwGM.js → BNasdn-P.js} +1 -1
  42. package/web/app/immutable/chunks/{B95izTqM.js → BOQCK4ni.js} +1 -1
  43. package/web/app/immutable/chunks/{DU64vtBR.js → BPk16bSc.js} +1 -1
  44. package/web/app/immutable/chunks/{Dm_KenRX.js → BQFqw3YD.js} +1 -1
  45. package/web/app/immutable/chunks/{U838LLRH.js → BRIkzo-E.js} +1 -1
  46. package/web/app/immutable/chunks/{CcnOA9dj.js → BRNfUSNR.js} +1 -1
  47. package/web/app/immutable/chunks/{DaA44xVk.js → BSwWMzab.js} +5 -5
  48. package/web/app/immutable/chunks/{B1LFg8Ni.js → BUjtm23k.js} +1 -1
  49. package/web/app/immutable/chunks/{K1Aj4aiz.js → BVkJyN1U.js} +2 -2
  50. package/web/app/immutable/chunks/{D6Tu0KcL.js → BW6fyv0T.js} +6 -6
  51. package/web/app/immutable/chunks/B_-1t0b5.js +1 -0
  52. package/web/app/immutable/chunks/{qCTbBtmS.js → B_CpN824.js} +1 -1
  53. package/web/app/immutable/chunks/{3xBR6H3M.js → BaWcyleE.js} +1 -1
  54. package/web/app/immutable/chunks/{DNPjjQTW.js → Bc-8qHYh.js} +1 -1
  55. package/web/app/immutable/chunks/{Bg-wwj8e.js → Bc2zOKbx.js} +1 -1
  56. package/web/app/immutable/chunks/{Cts5KPIk.js → Bc3_ahSr.js} +1 -1
  57. package/web/app/immutable/chunks/{wFaVm_je.js → BcVu_y1Z.js} +1 -1
  58. package/web/app/immutable/chunks/{Bgo6QmNg.js → Bf1tCDQg.js} +1 -1
  59. package/web/app/immutable/chunks/{BVEbTxE_.js → Bfc094Ub.js} +1 -1
  60. package/web/app/immutable/chunks/{D728aNnl.js → BgyuoEGq.js} +1 -1
  61. package/web/app/immutable/chunks/{bcv2TMVC.js → BjqGlL_Y.js} +1 -1
  62. package/web/app/immutable/chunks/{Brz_LsyP.js → Bl_iEh1f.js} +1 -1
  63. package/web/app/immutable/chunks/Br5d6l04.js +1 -0
  64. package/web/app/immutable/chunks/{BPso9ZTU.js → BssmMBl2.js} +1 -1
  65. package/web/app/immutable/chunks/{DHQetc-m.js → BtAYzBSd.js} +1 -1
  66. package/web/app/immutable/chunks/{Bqekhi5h.js → Bu6sHonm.js} +1 -1
  67. package/web/app/immutable/chunks/{Bj1XwsOw.js → Bvq2wF7r.js} +7 -7
  68. package/web/app/immutable/chunks/{CwAr2bfc.js → BxiJOwnz.js} +1 -1
  69. package/web/app/immutable/chunks/{DPHQ6GUU.js → By8e6LYt.js} +1 -1
  70. package/web/app/immutable/chunks/{CMNPJIlE.js → C-fnz5X4.js} +1 -1
  71. package/web/app/immutable/chunks/{BG1ODLUu.js → C-li4cfO.js} +1 -1
  72. package/web/app/immutable/chunks/{Civ86Ers.js → C0VJEx2v.js} +1 -1
  73. package/web/app/immutable/chunks/{BUJT8nbP.js → C11wqToa.js} +1 -1
  74. package/web/app/immutable/chunks/{D8Iqos3S.js → C1XicA-w.js} +1 -1
  75. package/web/app/immutable/chunks/{Z7mWElPD.js → C2Cq4c9l.js} +1 -1
  76. package/web/app/immutable/chunks/{DyLPqvAi.js → C2m8Iivv.js} +1 -1
  77. package/web/app/immutable/chunks/{YdCQJnUj.js → C48G3Oh4.js} +1 -1
  78. package/web/app/immutable/chunks/{CKcLU7Ix.js → C5Nz-crT.js} +1 -1
  79. package/web/app/immutable/chunks/{C8G4GKsE.js → C6L7wkhi.js} +1 -1
  80. package/web/app/immutable/chunks/{DhmDkL56.js → C6XSZJri.js} +1 -1
  81. package/web/app/immutable/chunks/{lGuvxH0P.js → C6aPQebU.js} +1 -1
  82. package/web/app/immutable/chunks/{vOfkzWZD.js → C6gBBEr6.js} +1 -1
  83. package/web/app/immutable/chunks/{Co9bnw2t.js → C6krgOsR.js} +11 -11
  84. package/web/app/immutable/chunks/{BUhKOoKe.js → C80u9j_3.js} +2 -2
  85. package/web/app/immutable/chunks/{Z5fbCd-X.js → C8PuI333.js} +4 -4
  86. package/web/app/immutable/chunks/{QiI6ZCof.js → C8_w7W1W.js} +4 -4
  87. package/web/app/immutable/chunks/{D7b_n5fi.js → C9gP-gRX.js} +3 -3
  88. package/web/app/immutable/chunks/{cLppJexf.js → CA7UZgrf.js} +1 -1
  89. package/web/app/immutable/chunks/{aHlukoGt.js → CAn8DYJP.js} +1 -1
  90. package/web/app/immutable/chunks/{BnAX9yTi.js → CBTot2K1.js} +1 -1
  91. package/web/app/immutable/chunks/{0KiNbR5l.js → CBwn70Pq.js} +1 -1
  92. package/web/app/immutable/chunks/{5jwgbfJ7.js → CBzaXebB.js} +1 -1
  93. package/web/app/immutable/chunks/{SAR1HpYu.js → CCCBFmfe.js} +3 -3
  94. package/web/app/immutable/chunks/{M4M675TN.js → CE8vXfAM.js} +1 -1
  95. package/web/app/immutable/chunks/{BNn2h7IG.js → CG-371Y6.js} +1 -1
  96. package/web/app/immutable/chunks/{HHVVLLOo.js → CICEz2Qq.js} +1 -1
  97. package/web/app/immutable/chunks/{ZaVuh6Ie.js → CJtH5G9P.js} +1 -1
  98. package/web/app/immutable/chunks/{BIwSEl2U.js → CKH-l4ig.js} +1 -1
  99. package/web/app/immutable/chunks/{BioErF0E.js → CKWaKOqs.js} +1 -1
  100. package/web/app/immutable/chunks/CMvHzajx.js +1 -0
  101. package/web/app/immutable/chunks/{i6q5e9Bi.js → CN_VK1iL.js} +1 -1
  102. package/web/app/immutable/chunks/{8ZUxx0Co.js → COpjcilg.js} +1 -1
  103. package/web/app/immutable/chunks/{DFo_icpD.js → CP06IBS7.js} +1 -1
  104. package/web/app/immutable/chunks/{BqK5afB2.js → CQMd4GmI.js} +1 -1
  105. package/web/app/immutable/chunks/{CWlxHxOH.js → CQbq623l.js} +1 -1
  106. package/web/app/immutable/chunks/{Co6qQZL7.js → CTX5Fuc9.js} +2 -2
  107. package/web/app/immutable/chunks/{dzprHFyK.js → CTfHCA2Y.js} +1 -1
  108. package/web/app/immutable/chunks/CUPAS0zd.js +1 -0
  109. package/web/app/immutable/chunks/{DlM5T-ri.js → CW1tBVLY.js} +1 -1
  110. package/web/app/immutable/chunks/{CXqStKXr.js → CWaCCzEn.js} +1 -1
  111. package/web/app/immutable/chunks/{BP22EbgY.js → CXNySl0c.js} +1 -1
  112. package/web/app/immutable/chunks/{QfXYPrZH.js → CYmZhCDN.js} +2 -2
  113. package/web/app/immutable/chunks/CZI4_vlI.js +1 -0
  114. package/web/app/immutable/chunks/{BtTToJTU.js → C_KYY7ZK.js} +3 -3
  115. package/web/app/immutable/chunks/{BBg1ABUj.js → Cb6WrSKY.js} +1 -1
  116. package/web/app/immutable/chunks/{BFbKEECb.js → Cb7SCycF.js} +1 -1
  117. package/web/app/immutable/chunks/{tA5hPyrR.js → Cbh1BCiS.js} +2 -2
  118. package/web/app/immutable/chunks/{BlZonKZY.js → CbpiaYyP.js} +1 -1
  119. package/web/app/immutable/chunks/{DEA2ISnw.js → CcGPnEzl.js} +1 -1
  120. package/web/app/immutable/chunks/{B6RmASgD.js → Ccf4dYFA.js} +1 -1
  121. package/web/app/immutable/chunks/{CWlg1b-s.js → CeQYwwry.js} +1 -1
  122. package/web/app/immutable/chunks/{Yu0gam1U.js → CelhKzDn.js} +1 -1
  123. package/web/app/immutable/chunks/{C6AEaqMK.js → ClfTOQ5L.js} +1 -1
  124. package/web/app/immutable/chunks/{BYLg_iMr.js → CoKEteoj.js} +1 -1
  125. package/web/app/immutable/chunks/{BsLhCljI.js → Cop9b2dY.js} +1 -1
  126. package/web/app/immutable/chunks/{BNVixDQg.js → Cpwl5RRn.js} +1 -1
  127. package/web/app/immutable/chunks/{BawsvKy-.js → CqzZhYYx.js} +1 -1
  128. package/web/app/immutable/chunks/{CFyiOaFx.js → CsTPrgDm.js} +3 -3
  129. package/web/app/immutable/chunks/{wV3lKTnH.js → Ctl9Ux7T.js} +1 -1
  130. package/web/app/immutable/chunks/{CLevwIvK.js → CxO_9nE4.js} +1 -1
  131. package/web/app/immutable/chunks/{DRwfCI3n.js → CzRl1R1n.js} +1 -1
  132. package/web/app/immutable/chunks/{li27w4Od.js → CzrG_lpv.js} +1 -1
  133. package/web/app/immutable/chunks/{DUIaBcOd.js → D-8WC0DU.js} +2 -2
  134. package/web/app/immutable/chunks/{C1SG0POo.js → D-XHjwsv.js} +1 -1
  135. package/web/app/immutable/chunks/{CwwcEFDp.js → D-rJNj43.js} +1 -1
  136. package/web/app/immutable/chunks/{CgIYxUJQ.js → D0Dsw2tV.js} +1 -1
  137. package/web/app/immutable/chunks/{Dwxm4mRs.js → D2uybU7F.js} +2 -2
  138. package/web/app/immutable/chunks/{CXsLrVJH.js → D47PZJI_.js} +1 -1
  139. package/web/app/immutable/chunks/{Cee62BOx.js → D4qqUzAr.js} +1 -1
  140. package/web/app/immutable/chunks/{BP56q1O2.js → D5XH3yqM.js} +2 -2
  141. package/web/app/immutable/chunks/{onlOqkEU.js → D62gE1G0.js} +22 -22
  142. package/web/app/immutable/chunks/{BPvrn9n_.js → D84mJH5u.js} +2 -2
  143. package/web/app/immutable/chunks/{ffaoYO6L.js → D9SqGY86.js} +1 -1
  144. package/web/app/immutable/chunks/{CcoNUQ4q.js → DAtBKOQq.js} +1 -1
  145. package/web/app/immutable/chunks/{BwRcoxdV.js → DBUJXdXR.js} +1 -1
  146. package/web/app/immutable/chunks/{DiN36N-2.js → DChetNRi.js} +2 -2
  147. package/web/app/immutable/chunks/{xXCdIyF3.js → DD-f8Y3V.js} +1 -1
  148. package/web/app/immutable/chunks/{66T_vlm_.js → DESxr5Rj.js} +1 -1
  149. package/web/app/immutable/chunks/{CJ4_4cNv.js → DFq6CFhq.js} +1 -1
  150. package/web/app/immutable/chunks/{BRYVEoAL.js → DGAww3vc.js} +1 -1
  151. package/web/app/immutable/chunks/{B_mg6-Vc.js → DH9gMPGd.js} +1 -1
  152. package/web/app/immutable/chunks/{vV7Eo_ua.js → DKXEy5Lq.js} +1 -1
  153. package/web/app/immutable/chunks/{OeYTP1p9.js → DL9BUVq-.js} +1 -1
  154. package/web/app/immutable/chunks/{DPQGeIyJ.js → DNYGh_FV.js} +2 -2
  155. package/web/app/immutable/chunks/{Bl-s542_.js → DNo4fphO.js} +1 -1
  156. package/web/app/immutable/chunks/{BVNJnx5b.js → DO2cS8JO.js} +1 -1
  157. package/web/app/immutable/chunks/{19JeQ6BX.js → DOnT_3WY.js} +1 -1
  158. package/web/app/immutable/chunks/{Bd8zPJ0R.js → DOzphY7c.js} +1 -1
  159. package/web/app/immutable/chunks/{DwCiT34L.js → DPG0D59v.js} +1 -1
  160. package/web/app/immutable/chunks/{DQpR_z9x.js → DQNmQX9F.js} +1 -1
  161. package/web/app/immutable/chunks/{rpm2NzpE.js → DQRxUuCh.js} +1 -1
  162. package/web/app/immutable/chunks/{CddrLe5o.js → DSOeLuN2.js} +1 -1
  163. package/web/app/immutable/chunks/{Pow4u-14.js → DSRwOSd4.js} +1 -1
  164. package/web/app/immutable/chunks/{CIL9eyec.js → DTMKqgRU.js} +1 -1
  165. package/web/app/immutable/chunks/{CpLMWsmF.js → DUdpP1ED.js} +1 -1
  166. package/web/app/immutable/chunks/{DFV_t0gv.js → DUrqH6OL.js} +1 -1
  167. package/web/app/immutable/chunks/{CwBMLcFF.js → DW9ZR5Up.js} +1 -1
  168. package/web/app/immutable/chunks/{0BDej8J9.js → DWccAyE3.js} +1 -1
  169. package/web/app/immutable/chunks/{BMoOyvL9.js → DY6JypjK.js} +1 -1
  170. package/web/app/immutable/chunks/{CR_HWuhj.js → DYrH45vr.js} +1 -1
  171. package/web/app/immutable/chunks/{CsQu3MKC.js → DcYvv2Iw.js} +1 -1
  172. package/web/app/immutable/chunks/{B1XZ9Wy8.js → DgfdSIWo.js} +1 -1
  173. package/web/app/immutable/chunks/{xQjZTcxq.js → DhAv1XMF.js} +1 -1
  174. package/web/app/immutable/chunks/{C9Ba8Wsx.js → DiCMHWTR.js} +1 -1
  175. package/web/app/immutable/chunks/{CMmlAySy.js → DijSalri.js} +1 -1
  176. package/web/app/immutable/chunks/{ZS63KZzT.js → DkI_jPOw.js} +4 -4
  177. package/web/app/immutable/chunks/{C1-APN-K.js → DkrnUdRW.js} +1 -1
  178. package/web/app/immutable/chunks/{CQolNqfo.js → DlKVdWHt.js} +8 -8
  179. package/web/app/immutable/chunks/{CHKw7UrD.js → DmsGklpx.js} +1 -1
  180. package/web/app/immutable/chunks/{DCYjhyno.js → DoCNcHnE.js} +3 -3
  181. package/web/app/immutable/chunks/{X868iZaW.js → DsU6W5Yf.js} +1 -1
  182. package/web/app/immutable/chunks/{17TgXovQ.js → DulsjrO4.js} +1 -1
  183. package/web/app/immutable/chunks/{sbHX8DXH.js → DvC622kv.js} +1 -1
  184. package/web/app/immutable/chunks/{BGpTsVFh.js → Dvil1FCS.js} +1 -1
  185. package/web/app/immutable/chunks/{CtZpQlR0.js → DwPGocEY.js} +2 -2
  186. package/web/app/immutable/chunks/{CUhYwYxv.js → DwbQaKgL.js} +1 -1
  187. package/web/app/immutable/chunks/{BlzuC8vd.js → DwgP_YcK.js} +2 -2
  188. package/web/app/immutable/chunks/{BqddjWz6.js → DxZSyekB.js} +1 -1
  189. package/web/app/immutable/chunks/{BJ9Pk-Qc.js → Dz6YK0K2.js} +1 -1
  190. package/web/app/immutable/chunks/{BwN9PPwq.js → DzfdD6YD.js} +1 -1
  191. package/web/app/immutable/chunks/EEJgvLyS.js +1 -0
  192. package/web/app/immutable/chunks/{ZjB_ER6s.js → HWP1BG2L.js} +1 -1
  193. package/web/app/immutable/chunks/{-dq3wJnW.js → Io79CQwx.js} +1 -1
  194. package/web/app/immutable/chunks/{Q3Bjy5v7.js → LSDVwgG8.js} +2 -2
  195. package/web/app/immutable/chunks/{CmZ4R63v.js → MED7rLah.js} +1 -1
  196. package/web/app/immutable/chunks/{CFKI_75v.js → MgJqQwQp.js} +3 -3
  197. package/web/app/immutable/chunks/{Ba7aiW_M.js → NYwlcfYt.js} +1 -1
  198. package/web/app/immutable/chunks/{T-DUA-1O.js → OpYhygEs.js} +1 -1
  199. package/web/app/immutable/chunks/{DYe4BNIz.js → QCq950da.js} +1 -1
  200. package/web/app/immutable/chunks/{uxsR8mHg.js → TP4sXUzS.js} +1 -1
  201. package/web/app/immutable/chunks/{8rrBGDgQ.js → UuiGcpAE.js} +1 -1
  202. package/web/app/immutable/chunks/{CpbXsTys.js → XzWc0fs1.js} +1 -1
  203. package/web/app/immutable/chunks/{rWFIPcdV.js → Y6LratEc.js} +1 -1
  204. package/web/app/immutable/chunks/{BqAelQe2.js → ZUZF8K3P.js} +1 -1
  205. package/web/app/immutable/chunks/{ICkI56ZY.js → _4p7wl12.js} +1 -1
  206. package/web/app/immutable/chunks/{Bk-q0J3W.js → _bllxFVr.js} +1 -1
  207. package/web/app/immutable/chunks/{CjJ2aG8c.js → a6K5_NPk.js} +1 -1
  208. package/web/app/immutable/chunks/{CDGEKoBr.js → aegF9YRH.js} +1 -1
  209. package/web/app/immutable/chunks/{BDF6V5e0.js → dKjrvSqn.js} +1 -1
  210. package/web/app/immutable/chunks/{OAsZcRpW.js → dX_oN6Xt.js} +1 -1
  211. package/web/app/immutable/chunks/{URtDzPe4.js → gsqPz4Y0.js} +1 -1
  212. package/web/app/immutable/chunks/{C6JSYFyu.js → hacdNVQl.js} +1 -1
  213. package/web/app/immutable/chunks/{BIsm3Ahi.js → jnmyog2T.js} +1 -1
  214. package/web/app/immutable/chunks/jq7ACadW.js +1 -0
  215. package/web/app/immutable/chunks/{BeJPCJYr.js → kdf0l6Z-.js} +6 -6
  216. package/web/app/immutable/chunks/{GiRbWuMt.js → nHQ6ExVj.js} +1 -1
  217. package/web/app/immutable/chunks/{DexjcGy5.js → nt8jKVrH.js} +1 -1
  218. package/web/app/immutable/chunks/{RGxIilBQ.js → q4Mp6azq.js} +4 -4
  219. package/web/app/immutable/chunks/{DdRYjUTh.js → qHcHiO2c.js} +1 -1
  220. package/web/app/immutable/chunks/{D08RO1VG.js → qIh42_HI.js} +1 -1
  221. package/web/app/immutable/chunks/{C3ePiQWu.js → qcgLBz2O.js} +1 -1
  222. package/web/app/immutable/chunks/{D4dn9g8x.js → qr2Z9jBR.js} +1 -1
  223. package/web/app/immutable/chunks/{EyZ0nhwB.js → sg8Cer3T.js} +4 -4
  224. package/web/app/immutable/chunks/{Db_s6atq.js → tSV1knJu.js} +1 -1
  225. package/web/app/immutable/chunks/{Frujgmwq.js → usUeYWMe.js} +1 -1
  226. package/web/app/immutable/chunks/{Bh9tHAiY.js → x8WBzABF.js} +49 -49
  227. package/web/app/immutable/chunks/{C44r02pn.js → xfGEIVf6.js} +1 -1
  228. package/web/app/immutable/chunks/{BjPJabzV.js → yNufUFm8.js} +1 -1
  229. package/web/app/immutable/chunks/{3U-mPo_x.js → y_yPvfwh.js} +1 -1
  230. package/web/app/immutable/entry/{app.zU9yYpXi.js → app.BlqNT7Cr.js} +3 -3
  231. package/web/app/immutable/entry/start.DaNUqzZq.js +1 -0
  232. package/web/app/immutable/nodes/{0.CpVAzuif.js → 0.ShO9PneW.js} +1 -1
  233. package/web/app/immutable/nodes/{1.DRuW-6VC.js → 1.CWY9gUhn.js} +1 -1
  234. package/web/app/immutable/nodes/{10.DKrkS2Ck.js → 10.BPcvGGhE.js} +4 -4
  235. package/web/app/immutable/nodes/{11.C3gubzv3.js → 11.BtNxR4dm.js} +1 -1
  236. package/web/app/immutable/nodes/{12.DwCDRGkT.js → 12.DQmthXqN.js} +1 -1
  237. package/web/app/immutable/nodes/{13.CUd5S4Yi.js → 13.pfWPVnQT.js} +3 -3
  238. package/web/app/immutable/nodes/{14.u0qAwLFY.js → 14.C46jjudj.js} +2 -2
  239. package/web/app/immutable/nodes/{15.D5mdZsCG.js → 15.CkuJDDnR.js} +1 -1
  240. package/web/app/immutable/nodes/{16.Di9o_NeI.js → 16.DxDrMp3A.js} +2 -2
  241. package/web/app/immutable/nodes/2.BY4xMtJS.js +9 -0
  242. package/web/app/immutable/nodes/{3.BdPudEJY.js → 3.RPzUk4Sw.js} +1 -1
  243. package/web/app/immutable/nodes/4.ZFgOw7Ux.js +1 -0
  244. package/web/app/immutable/nodes/5.BKaPpN7j.js +5 -0
  245. package/web/app/immutable/nodes/{6.TDtUMw8i.js → 6.BqCf3vb3.js} +1 -1
  246. package/web/app/immutable/nodes/{7.heLExSUY.js → 7.CJYSYpjI.js} +1 -1
  247. package/web/app/immutable/nodes/{8.iXetk1_-.js → 8.B_FmoLB7.js} +4 -4
  248. package/web/app/immutable/nodes/{9.Bq9HwFsC.js → 9.p1SC8ote.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +49 -49
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/7FhPODJU.js +0 -1
  253. package/web/app/immutable/chunks/B-EQoMaE.js +0 -1
  254. package/web/app/immutable/chunks/BV49_RX-.js +0 -1
  255. package/web/app/immutable/chunks/BzwgImum.js +0 -1
  256. package/web/app/immutable/chunks/C-BI-o7z.js +0 -1
  257. package/web/app/immutable/chunks/CGtpSJYQ.js +0 -1
  258. package/web/app/immutable/chunks/CHmKgzDw.js +0 -1
  259. package/web/app/immutable/chunks/CfR8DHmm.js +0 -1
  260. package/web/app/immutable/chunks/CqtVr5NT.js +0 -1
  261. package/web/app/immutable/chunks/D1jYkFlI.js +0 -1
  262. package/web/app/immutable/entry/start.DtsLJnWx.js +0 -1
  263. package/web/app/immutable/nodes/2.CjuG4Yin.js +0 -9
  264. package/web/app/immutable/nodes/4.DvwRKOcg.js +0 -1
  265. package/web/app/immutable/nodes/5.gCklR-Wk.js +0 -5
@@ -1 +1 @@
1
- import{t as bt,bq as B,by as Rt,bs as wt,b as It,bu as g}from"./BV49_RX-.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./DYhIMPy1.js";import{b as vt}from"./BaIAhI85.js";import{Hm as l,er as Ut,es as At,rL as xt,nu as Bt,nv as Ft,HT as Tt,I7 as Lt,HY as _t,nz as T}from"./DaA44xVk.js";import{aZ as Dt}from"./B4eSJ_b5.js";import{g as Wt}from"./DfN8_dcw.js";import{dl as Gt,by as Ht,bA as Et,bx as Mt,bC as Nt,cX as Vt,e as zt}from"./BMoOyvL9.js";import{C as qt}from"./BqAelQe2.js";import{V as Kt}from"./CWlg1b-s.js";import{bN as Xt,bK as Yt,b5 as Zt}from"./li27w4Od.js";import{i as L,n as N}from"./H2jLkRRS.js";import{ah as jt}from"./EyZ0nhwB.js";function Jt(_,$){if(new.target)return bt({component:Jt,..._});Pt($,!0);const V=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),z=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),K=()=>g(tt,"$foldUnchanged",c),X=()=>g(Q,"$lineWrapping",c),Y=()=>g(et,"$diffSideBySide",c),Z=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,J]=wt(),O=o=>{Kt(o,{embedded:!0,showExpand:!0,get expanded(){return t(R)},onToggleExpand:()=>{E(R,!t(R)),t(R)?t(w)?.expandAll():t(w)?.collapseAll()},get foldEnabled(){return K()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return X()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return Y()},onToggleSplit:()=>l.dispatch(Tt())})},Q=Xt(),tt=Yt(),et=Zt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Wt(),h=Dt(()=>m()),ot=Gt(h);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(h),b=s(()=>V().find(o=>o.id===t(n))),p=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(p)),st=Ht(h),nt=Et(h),it=Mt(h),rt=Nt(h),dt=s(()=>z()||[]),lt=Vt(h),f=s(()=>q()[t(n)]??zt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let R=M(!0),w=M(null);const ht=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(p)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(p)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(p)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(p))return o;const i=N(o),e=N(t(p));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function pt(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:O})});const H=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,H)),()=>l.dispatch(Ft(o,H))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:Rt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):Z()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void pt([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(qt(_,{get isLoading(){return t(o)},get changes(){return t(ht)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>E(w,d,!0),()=>t(w))}var $t=kt(ft);return J(),$t}export{Jt as default};
1
+ import{t as bt,bq as B,by as wt,bs as Rt,b as It,bu as g}from"./BAqR9jtB.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as N,bV as E,aA as F}from"./DYhIMPy1.js";import{b as vt}from"./BaIAhI85.js";import{Hp as l,er as Ut,es as At,rN as xt,nw as Bt,nx as Ft,HW as Tt,Ia as Wt,H$ as _t,nB as T}from"./BSwWMzab.js";import{aZ as Dt}from"./A3beYjJS.js";import{g as Lt}from"./DfN8_dcw.js";import{dl as Gt,by as Ht,bA as Nt,bx as Et,bC as Mt,cX as Vt,e as zt}from"./DY6JypjK.js";import{C as qt}from"./ZUZF8K3P.js";import{V as Kt}from"./CeQYwwry.js";import{bN as Xt,bK as Zt,b5 as jt}from"./CzrG_lpv.js";import{i as W,n as M}from"./H2jLkRRS.js";import{ah as Jt}from"./sg8Cer3T.js";function Ot(_,$){if(new.target)return bt({component:Ot,..._});Pt($,!0);const V=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),z=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),K=()=>g(tt,"$foldUnchanged",c),X=()=>g(Y,"$lineWrapping",c),Z=()=>g(et,"$diffSideBySide",c),j=()=>g(rt,"$ftLoading$",c),J=()=>g(it,"$ftBoundarySha$",c),[c,O]=Rt(),Q=o=>{Kt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{N(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return K()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return X()},onToggleWrap:()=>l.dispatch(Wt()),get splitEnabled(){return Z()},onToggleSplit:()=>l.dispatch(Tt())})},Y=Xt(),tt=Zt(),et=jt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Lt(),p=Dt(()=>m()),ot=Gt(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Jt(p),b=s(()=>V().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Ht(p),nt=Nt(p),it=Et(p),rt=Mt(p),dt=s(()=>z()||[]),lt=Vt(p),f=s(()=>q()[t(n)]??zt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=E(!0),R=E(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&W(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&W(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&W(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=M(o),e=M(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function L(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Q})});const H=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,H)),()=>l.dispatch(Ft(o,H))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):j()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:J()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void L([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");L(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(qt(_,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>N(R,d,!0),()=>t(R))}var $t=kt(ft);return O(),$t}export{Ot as default};
@@ -0,0 +1 @@
1
+ import{t as lt,bq as $,a_ as x,by as pt,bs as dt,b as mt,bu as S,bo as T}from"./BAqR9jtB.js";import{bs as ut,ca as A,aD as e,bj as ft,a7 as f,ay as l,W as p,bn as _t,c9 as _,cd as q,aA as k,bS as vt,aB as gt}from"./DYhIMPy1.js";import{E}from"./UuiGcpAE.js";import{c as F}from"./B2RRuLl5.js";import{av as bt,cN as It}from"./DKXEy5Lq.js";import{dh as $t,dF as St}from"./DY6JypjK.js";import{S as kt,c as ht}from"./D5XH3yqM.js";import{selectScriptById as yt,selectCanDeleteScript as Ct}from"./CbpiaYyP.js";import"./BPk16bSc.js";import"./DiCMHWTR.js";import"./C9gP-gRX.js";import"./7IyNIHph.js";import{M as J}from"./AGSVFpXc.js";import{g as wt}from"./DfN8_dcw.js";import{T as xt}from"./C6krgOsR.js";import{Hp as D,BJ as Tt,tZ as At,gH as Dt}from"./BSwWMzab.js";var Bt=gt("<!> <!>",1);function Wt(B,c){if(new.target)return lt({component:Wt,...B});ut(c,!0);const v=()=>S(z,"$fullContext$",g),N=()=>S(L,"$canDeleteScript$",g),P=()=>S(G,"$scriptContext$",g),R=()=>S(K,"$script$",g),[g,V]=dt(),Z=t=>{var r=f(),n=l(r);{var m=C=>{var O=Bt(),j=l(O);{let u=_(()=>T.workspace_shell_showInBottomBar_tooltip());F(j,()=>J,(I,w)=>{w(I,{get icon(){return bt},get label(){return e(u)},onclick:U,"data-move-to-bottom-bar":!0})})}var at=vt(j,2);{var st=u=>{var I=f(),w=l(I);{let ot=_(()=>T.scripts_delete_label()),nt=_(()=>N()?void 0:T.scripts_delete_disabled_description());F(w,()=>J,(ct,it)=>{it(ct,{get icon(){return It},get label(){return e(ot)},destructive:!0,get disabledReason(){return e(nt)},onclick:Q})})}p(u,I)};x(at,u=>{e(s)&&u(st)})}p(C,O)};x(n,C=>{v()&&C(m)})}p(t,r)};let o=$(c,"tab",7),a=$(c,"workspaceId",7),h=$(c,"layoutId",7),i=$(c,"isActive",7);const b=_(()=>o().terminalId),s=_(()=>o().scriptId),W=wt(),d=q(""),y=q("");A(()=>d.set(a())),A(()=>y.set(e(s)??""));const z=$t(d),G=St(d),K=yt(d,y),L=Ct(d,y);let H=!0;ft(()=>{H=!1});function Q(){if(!e(s))return;const t=a(),r=e(s),n=o().id;return ht(t,r,()=>H&&i()&&a()===t&&e(s)===r&&o().id===n)}function U(){v()&&(e(s)&&D.dispatch(Tt(a(),e(s))),D.dispatch(At(a(),e(b))),D.dispatch(Dt(h()??a(),o().id)))}A(()=>{if(!(!W||!i()))return W.registerActions({actions:Z})});var X={get tab(){return o()},set tab(t){o(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return h()},set layoutId(t){h(t),k()},get isActive(){return i()},set isActive(t){i(t),k()},$set:pt,$on:(t,r)=>mt(c,t,r)},M=f(),Y=l(M);{var tt=t=>{var r=f(),n=l(r);E(n,()=>e(s),m=>{kt(m,{get scriptId(){return e(s)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)},et=t=>{var r=f(),n=l(r);E(n,()=>e(b),m=>{xt(m,{get terminalId(){return e(b)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)};x(Y,t=>{e(s)&&i()&&P()&&(v()||R())?t(tt):e(b)&&i()&&v()&&t(et,1)})}p(B,M);var rt=_t(X);return V(),rt}export{Wt as default};
@@ -1,4 +1,4 @@
1
- import{F as W,aS as Ae,b0 as Se,Y as Le,aZ as Ee,U as $e,a_ as Te,V as Me,b as u,X as le,N as Ne,aW as Z,b3 as Ce,r as Pe,z as Ie}from"./RGxIilBQ.js";import{c as ue,r as Oe,o as je}from"./BioErF0E.js";function k(e){for(var a=e.length/6|0,d=new Array(a),r=0;r<a;)d[r]="#"+e.slice(r*6,++r*6);return d}k("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");k("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");k("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");k("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0");k("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");k("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");k("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");k("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");k("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");k("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var ze=k("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),A=e=>Oe(e[e.length-1]),De=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(k);A(De);var Be=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(k);A(Be);var Fe=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(k);A(Fe);var Ve=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(k);A(Ve);var Re=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(k);A(Re);var We=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(k);A(We);var Ue=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(k);A(Ue);var Ge=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(k);A(Ge);var Ye=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(k);A(Ye);var Xe=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(k);A(Xe);var qe=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(k);A(qe);var He=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(k);A(He);var Qe=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(k);A(Qe);var Ze=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(k);A(Ze);var Ke=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(k);A(Ke);var Je=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(k);A(Je);var ef=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(k);A(ef);var ff=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(k);A(ff);var af=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(k);A(af);var tf=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(k);A(tf);var cf=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(k);A(cf);var df=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(k);A(df);var nf=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(k);A(nf);var rf=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(k);A(rf);var sf=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(k);A(sf);var bf=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(k);A(bf);var of=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(k);A(of);ue(W(300,.5,0),W(-240,.5,1));ue(W(-100,.75,.35),W(80,1.5,.8));ue(W(260,.75,.35),W(80,1.5,.8));W();Ae();function ae(e){var a=e.length;return function(d){return e[Math.max(0,Math.min(a-1,Math.floor(d*a)))]}}ae(k("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));ae(k("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));ae(k("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));ae(k("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function he(e,a){let d;if(a===void 0)for(const r of e)r!=null&&(d<r||d===void 0&&r>=r)&&(d=r);else{let r=-1;for(let b of e)(b=a(b,++r,e))!=null&&(d<b||d===void 0&&b>=b)&&(d=b)}return d}function _e(e,a){let d;if(a===void 0)for(const r of e)r!=null&&(d>r||d===void 0&&r>=r)&&(d=r);else{let r=-1;for(let b of e)(b=a(b,++r,e))!=null&&(d>b||d===void 0&&b>=b)&&(d=b)}return d}function ne(e,a){let d=0;if(a===void 0)for(let r of e)(r=+r)&&(d+=r);else{let r=-1;for(let b of e)(b=+a(b,++r,e))&&(d+=b)}return d}function lf(e){return e.target.depth}function uf(e){return e.depth}function hf(e,a){return a-1-e.height}function ve(e,a){return e.sourceLinks.length?e.depth:a-1}function yf(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?_e(e.sourceLinks,lf)-1:0}function K(e){return function(){return e}}function ye(e,a){return J(e.source,a.source)||e.index-a.index}function pe(e,a){return J(e.target,a.target)||e.index-a.index}function J(e,a){return e.y0-a.y0}function re(e){return e.value}function pf(e){return e.index}function gf(e){return e.nodes}function mf(e){return e.links}function ge(e,a){const d=e.get(a);if(!d)throw new Error("missing: "+a);return d}function me({nodes:e}){for(const a of e){let d=a.y0,r=d;for(const b of a.sourceLinks)b.y0=d+b.width/2,d+=b.width;for(const b of a.targetLinks)b.y1=r+b.width/2,r+=b.width}}function kf(){let e=0,a=0,d=1,r=1,b=24,x=8,y,g=pf,n=ve,i,o,m=gf,_=mf,h=6;function v(){const t={nodes:m.apply(null,arguments),links:_.apply(null,arguments)};return M(t),T(t),N(t),O(t),S(t),me(t),t}v.update=function(t){return me(t),t},v.nodeId=function(t){return arguments.length?(g=typeof t=="function"?t:K(t),v):g},v.nodeAlign=function(t){return arguments.length?(n=typeof t=="function"?t:K(t),v):n},v.nodeSort=function(t){return arguments.length?(i=t,v):i},v.nodeWidth=function(t){return arguments.length?(b=+t,v):b},v.nodePadding=function(t){return arguments.length?(x=y=+t,v):x},v.nodes=function(t){return arguments.length?(m=typeof t=="function"?t:K(t),v):m},v.links=function(t){return arguments.length?(_=typeof t=="function"?t:K(t),v):_},v.linkSort=function(t){return arguments.length?(o=t,v):o},v.size=function(t){return arguments.length?(e=a=0,d=+t[0],r=+t[1],v):[d-e,r-a]},v.extent=function(t){return arguments.length?(e=+t[0][0],d=+t[1][0],a=+t[0][1],r=+t[1][1],v):[[e,a],[d,r]]},v.iterations=function(t){return arguments.length?(h=+t,v):h};function M({nodes:t,links:l}){for(const[f,c]of t.entries())c.index=f,c.sourceLinks=[],c.targetLinks=[];const s=new Map(t.map((f,c)=>[g(f,c,t),f]));for(const[f,c]of l.entries()){c.index=f;let{source:p,target:w}=c;typeof p!="object"&&(p=c.source=ge(s,p)),typeof w!="object"&&(w=c.target=ge(s,w)),p.sourceLinks.push(c),w.targetLinks.push(c)}if(o!=null)for(const{sourceLinks:f,targetLinks:c}of t)f.sort(o),c.sort(o)}function T({nodes:t}){for(const l of t)l.value=l.fixedValue===void 0?Math.max(ne(l.sourceLinks,re),ne(l.targetLinks,re)):l.fixedValue}function N({nodes:t}){const l=t.length;let s=new Set(t),f=new Set,c=0;for(;s.size;){for(const p of s){p.depth=c;for(const{target:w}of p.sourceLinks)f.add(w)}if(++c>l)throw new Error("circular link");s=f,f=new Set}}function O({nodes:t}){const l=t.length;let s=new Set(t),f=new Set,c=0;for(;s.size;){for(const p of s){p.height=c;for(const{source:w}of p.targetLinks)f.add(w)}if(++c>l)throw new Error("circular link");s=f,f=new Set}}function C({nodes:t}){const l=he(t,c=>c.depth)+1,s=(d-e-b)/(l-1),f=new Array(l);for(const c of t){const p=Math.max(0,Math.min(l-1,Math.floor(n.call(null,c,l))));c.layer=p,c.x0=e+p*s,c.x1=c.x0+b,f[p]?f[p].push(c):f[p]=[c]}if(i)for(const c of f)c.sort(i);return f}function D(t){const l=_e(t,s=>(r-a-(s.length-1)*y)/ne(s,re));for(const s of t){let f=a;for(const c of s){c.y0=f,c.y1=f+c.value*l,f=c.y1+y;for(const p of c.sourceLinks)p.width=p.value*l}f=(r-f+y)/(s.length+1);for(let c=0;c<s.length;++c){const p=s[c];p.y0+=f*(c+1),p.y1+=f*(c+1)}L(s)}}function S(t){const l=C(t);y=Math.min(x,(r-a)/(he(l,s=>s.length)-1)),D(l);for(let s=0;s<h;++s){const f=Math.pow(.99,s),c=Math.max(1-f,(s+1)/h);U(l,f,c),P(l,f,c)}}function P(t,l,s){for(let f=1,c=t.length;f<c;++f){const p=t[f];for(const w of p){let E=0,V=0;for(const{source:H,value:de}of w.targetLinks){let Q=de*(w.layer-H.layer);E+=I(H,w)*Q,V+=Q}if(!(V>0))continue;let q=(E/V-w.y0)*l;w.y0+=q,w.y1+=q,F(w)}i===void 0&&p.sort(J),B(p,s)}}function U(t,l,s){for(let f=t.length,c=f-2;c>=0;--c){const p=t[c];for(const w of p){let E=0,V=0;for(const{target:H,value:de}of w.sourceLinks){let Q=de*(H.layer-w.layer);E+=$(w,H)*Q,V+=Q}if(!(V>0))continue;let q=(E/V-w.y0)*l;w.y0+=q,w.y1+=q,F(w)}i===void 0&&p.sort(J),B(p,s)}}function B(t,l){const s=t.length>>1,f=t[s];j(t,f.y0-y,s-1,l),G(t,f.y1+y,s+1,l),j(t,r,t.length-1,l),G(t,a,0,l)}function G(t,l,s,f){for(;s<t.length;++s){const c=t[s],p=(l-c.y0)*f;p>1e-6&&(c.y0+=p,c.y1+=p),l=c.y1+y}}function j(t,l,s,f){for(;s>=0;--s){const c=t[s],p=(c.y1-l)*f;p>1e-6&&(c.y0-=p,c.y1-=p),l=c.y0-y}}function F({sourceLinks:t,targetLinks:l}){if(o===void 0){for(const{source:{sourceLinks:s}}of l)s.sort(pe);for(const{target:{targetLinks:s}}of t)s.sort(ye)}}function L(t){if(o===void 0)for(const{sourceLinks:l,targetLinks:s}of t)l.sort(pe),s.sort(ye)}function I(t,l){let s=t.y0-(t.sourceLinks.length-1)*y/2;for(const{target:f,width:c}of t.sourceLinks){if(f===l)break;s+=c+y}for(const{source:f,width:c}of l.targetLinks){if(f===t)break;s-=c}return s}function $(t,l){let s=l.y0-(l.targetLinks.length-1)*y/2;for(const{source:f,width:c}of l.targetLinks){if(f===t)break;s+=c+y}for(const{target:f,width:c}of t.sourceLinks){if(f===l)break;s-=c}return s}return v}var ie=Math.PI,se=2*ie,R=1e-6,xf=se-R;function be(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function we(){return new be}be.prototype=we.prototype={constructor:be,moveTo:function(e,a){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+a)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,a){this._+="L"+(this._x1=+e)+","+(this._y1=+a)},quadraticCurveTo:function(e,a,d,r){this._+="Q"+ +e+","+ +a+","+(this._x1=+d)+","+(this._y1=+r)},bezierCurveTo:function(e,a,d,r,b,x){this._+="C"+ +e+","+ +a+","+ +d+","+ +r+","+(this._x1=+b)+","+(this._y1=+x)},arcTo:function(e,a,d,r,b){e=+e,a=+a,d=+d,r=+r,b=+b;var x=this._x1,y=this._y1,g=d-e,n=r-a,i=x-e,o=y-a,m=i*i+o*o;if(b<0)throw new Error("negative radius: "+b);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=a);else if(m>R)if(!(Math.abs(o*g-n*i)>R)||!b)this._+="L"+(this._x1=e)+","+(this._y1=a);else{var _=d-x,h=r-y,v=g*g+n*n,M=_*_+h*h,T=Math.sqrt(v),N=Math.sqrt(m),O=b*Math.tan((ie-Math.acos((v+m-M)/(2*T*N)))/2),C=O/N,D=O/T;Math.abs(C-1)>R&&(this._+="L"+(e+C*i)+","+(a+C*o)),this._+="A"+b+","+b+",0,0,"+ +(o*_>i*h)+","+(this._x1=e+D*g)+","+(this._y1=a+D*n)}},arc:function(e,a,d,r,b,x){e=+e,a=+a,d=+d,x=!!x;var y=d*Math.cos(r),g=d*Math.sin(r),n=e+y,i=a+g,o=1^x,m=x?r-b:b-r;if(d<0)throw new Error("negative radius: "+d);this._x1===null?this._+="M"+n+","+i:(Math.abs(this._x1-n)>R||Math.abs(this._y1-i)>R)&&(this._+="L"+n+","+i),d&&(m<0&&(m=m%se+se),m>xf?this._+="A"+d+","+d+",0,1,"+o+","+(e-y)+","+(a-g)+"A"+d+","+d+",0,1,"+o+","+(this._x1=n)+","+(this._y1=i):m>R&&(this._+="A"+d+","+d+",0,"+ +(m>=ie)+","+o+","+(this._x1=e+d*Math.cos(b))+","+(this._y1=a+d*Math.sin(b))))},rect:function(e,a,d,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+a)+"h"+ +d+"v"+ +r+"h"+-d+"Z"},toString:function(){return this._}};function ke(e){return function(){return e}}function _f(e){return e[0]}function vf(e){return e[1]}var wf=Array.prototype.slice;function Af(e){return e.source}function Sf(e){return e.target}function Lf(e){var a=Af,d=Sf,r=_f,b=vf,x=null;function y(){var g,n=wf.call(arguments),i=a.apply(this,n),o=d.apply(this,n);if(x||(x=g=we()),e(x,+r.apply(this,(n[0]=i,n)),+b.apply(this,n),+r.apply(this,(n[0]=o,n)),+b.apply(this,n)),g)return x=null,g+""||null}return y.source=function(g){return arguments.length?(a=g,y):a},y.target=function(g){return arguments.length?(d=g,y):d},y.x=function(g){return arguments.length?(r=typeof g=="function"?g:ke(+g),y):r},y.y=function(g){return arguments.length?(b=typeof g=="function"?g:ke(+g),y):b},y.context=function(g){return arguments.length?(x=g??null,y):x},y}function Ef(e,a,d,r,b){e.moveTo(a,d),e.bezierCurveTo(a=(a+r)/2,d,a,b,r,b)}function $f(){return Lf(Ef)}function Tf(e){return[e.source.x1,e.y0]}function Mf(e){return[e.target.x0,e.y1]}function Nf(){return $f().source(Tf).target(Mf)}var oe=(function(){var e=u(function(g,n,i,o){for(i=i||{},o=g.length;o--;i[g[o]]=n);return i},"o"),a=[1,9],d=[1,10],r=[1,5,10,12],b={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:u(function(n,i,o,m,_,h,v){var M=h.length-1;switch(_){case 7:const T=m.findOrCreateNode(h[M-4].trim().replaceAll('""','"')),N=m.findOrCreateNode(h[M-2].trim().replaceAll('""','"')),O=parseFloat(h[M].trim());m.addLink(T,N,O);break;case 8:case 9:case 11:this.$=h[M];break;case 10:this.$=h[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:a,20:d},{1:[2,6],7:11,10:[1,12]},e(d,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(d,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:a,20:d},{15:18,16:7,17:8,18:a,20:d},{18:[1,19]},e(d,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:a,20:d},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:u(function(n,i){if(i.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=i,o}},"parseError"),parse:u(function(n){var i=this,o=[0],m=[],_=[null],h=[],v=this.table,M="",T=0,N=0,O=2,C=1,D=h.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var U in this.yy)Object.prototype.hasOwnProperty.call(this.yy,U)&&(P.yy[U]=this.yy[U]);S.setInput(n,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var B=S.yylloc;h.push(B);var G=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(E){o.length=o.length-2*E,_.length=_.length-E,h.length=h.length-E}u(j,"popStack");function F(){var E;return E=m.pop()||S.lex()||C,typeof E!="number"&&(E instanceof Array&&(m=E,E=m.pop()),E=i.symbols_[E]||E),E}u(F,"lex");for(var L,I,$,t,l={},s,f,c,p;;){if(I=o[o.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((L===null||typeof L>"u")&&(L=F()),$=v[I]&&v[I][L]),typeof $>"u"||!$.length||!$[0]){var w="";p=[];for(s in v[I])this.terminals_[s]&&s>O&&p.push("'"+this.terminals_[s]+"'");S.showPosition?w="Parse error on line "+(T+1)+`:
1
+ import{F as W,aS as Ae,b0 as Se,Y as Le,aZ as Ee,U as $e,a_ as Te,V as Me,b as u,X as le,N as Ne,aW as Z,b3 as Ce,r as Pe,z as Ie}from"./q4Mp6azq.js";import{c as ue,r as Oe,o as je}from"./CKWaKOqs.js";function k(e){for(var a=e.length/6|0,d=new Array(a),r=0;r<a;)d[r]="#"+e.slice(r*6,++r*6);return d}k("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");k("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");k("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");k("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0");k("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");k("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");k("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");k("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");k("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");k("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var ze=k("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),A=e=>Oe(e[e.length-1]),De=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(k);A(De);var Be=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(k);A(Be);var Fe=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(k);A(Fe);var Ve=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(k);A(Ve);var Re=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(k);A(Re);var We=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(k);A(We);var Ue=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(k);A(Ue);var Ge=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(k);A(Ge);var Ye=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(k);A(Ye);var Xe=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(k);A(Xe);var qe=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(k);A(qe);var He=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(k);A(He);var Qe=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(k);A(Qe);var Ze=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(k);A(Ze);var Ke=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(k);A(Ke);var Je=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(k);A(Je);var ef=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(k);A(ef);var ff=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(k);A(ff);var af=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(k);A(af);var tf=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(k);A(tf);var cf=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(k);A(cf);var df=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(k);A(df);var nf=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(k);A(nf);var rf=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(k);A(rf);var sf=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(k);A(sf);var bf=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(k);A(bf);var of=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(k);A(of);ue(W(300,.5,0),W(-240,.5,1));ue(W(-100,.75,.35),W(80,1.5,.8));ue(W(260,.75,.35),W(80,1.5,.8));W();Ae();function ae(e){var a=e.length;return function(d){return e[Math.max(0,Math.min(a-1,Math.floor(d*a)))]}}ae(k("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));ae(k("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));ae(k("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));ae(k("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function he(e,a){let d;if(a===void 0)for(const r of e)r!=null&&(d<r||d===void 0&&r>=r)&&(d=r);else{let r=-1;for(let b of e)(b=a(b,++r,e))!=null&&(d<b||d===void 0&&b>=b)&&(d=b)}return d}function _e(e,a){let d;if(a===void 0)for(const r of e)r!=null&&(d>r||d===void 0&&r>=r)&&(d=r);else{let r=-1;for(let b of e)(b=a(b,++r,e))!=null&&(d>b||d===void 0&&b>=b)&&(d=b)}return d}function ne(e,a){let d=0;if(a===void 0)for(let r of e)(r=+r)&&(d+=r);else{let r=-1;for(let b of e)(b=+a(b,++r,e))&&(d+=b)}return d}function lf(e){return e.target.depth}function uf(e){return e.depth}function hf(e,a){return a-1-e.height}function ve(e,a){return e.sourceLinks.length?e.depth:a-1}function yf(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?_e(e.sourceLinks,lf)-1:0}function K(e){return function(){return e}}function ye(e,a){return J(e.source,a.source)||e.index-a.index}function pe(e,a){return J(e.target,a.target)||e.index-a.index}function J(e,a){return e.y0-a.y0}function re(e){return e.value}function pf(e){return e.index}function gf(e){return e.nodes}function mf(e){return e.links}function ge(e,a){const d=e.get(a);if(!d)throw new Error("missing: "+a);return d}function me({nodes:e}){for(const a of e){let d=a.y0,r=d;for(const b of a.sourceLinks)b.y0=d+b.width/2,d+=b.width;for(const b of a.targetLinks)b.y1=r+b.width/2,r+=b.width}}function kf(){let e=0,a=0,d=1,r=1,b=24,x=8,y,g=pf,n=ve,i,o,m=gf,_=mf,h=6;function v(){const t={nodes:m.apply(null,arguments),links:_.apply(null,arguments)};return M(t),T(t),N(t),O(t),S(t),me(t),t}v.update=function(t){return me(t),t},v.nodeId=function(t){return arguments.length?(g=typeof t=="function"?t:K(t),v):g},v.nodeAlign=function(t){return arguments.length?(n=typeof t=="function"?t:K(t),v):n},v.nodeSort=function(t){return arguments.length?(i=t,v):i},v.nodeWidth=function(t){return arguments.length?(b=+t,v):b},v.nodePadding=function(t){return arguments.length?(x=y=+t,v):x},v.nodes=function(t){return arguments.length?(m=typeof t=="function"?t:K(t),v):m},v.links=function(t){return arguments.length?(_=typeof t=="function"?t:K(t),v):_},v.linkSort=function(t){return arguments.length?(o=t,v):o},v.size=function(t){return arguments.length?(e=a=0,d=+t[0],r=+t[1],v):[d-e,r-a]},v.extent=function(t){return arguments.length?(e=+t[0][0],d=+t[1][0],a=+t[0][1],r=+t[1][1],v):[[e,a],[d,r]]},v.iterations=function(t){return arguments.length?(h=+t,v):h};function M({nodes:t,links:l}){for(const[f,c]of t.entries())c.index=f,c.sourceLinks=[],c.targetLinks=[];const s=new Map(t.map((f,c)=>[g(f,c,t),f]));for(const[f,c]of l.entries()){c.index=f;let{source:p,target:w}=c;typeof p!="object"&&(p=c.source=ge(s,p)),typeof w!="object"&&(w=c.target=ge(s,w)),p.sourceLinks.push(c),w.targetLinks.push(c)}if(o!=null)for(const{sourceLinks:f,targetLinks:c}of t)f.sort(o),c.sort(o)}function T({nodes:t}){for(const l of t)l.value=l.fixedValue===void 0?Math.max(ne(l.sourceLinks,re),ne(l.targetLinks,re)):l.fixedValue}function N({nodes:t}){const l=t.length;let s=new Set(t),f=new Set,c=0;for(;s.size;){for(const p of s){p.depth=c;for(const{target:w}of p.sourceLinks)f.add(w)}if(++c>l)throw new Error("circular link");s=f,f=new Set}}function O({nodes:t}){const l=t.length;let s=new Set(t),f=new Set,c=0;for(;s.size;){for(const p of s){p.height=c;for(const{source:w}of p.targetLinks)f.add(w)}if(++c>l)throw new Error("circular link");s=f,f=new Set}}function C({nodes:t}){const l=he(t,c=>c.depth)+1,s=(d-e-b)/(l-1),f=new Array(l);for(const c of t){const p=Math.max(0,Math.min(l-1,Math.floor(n.call(null,c,l))));c.layer=p,c.x0=e+p*s,c.x1=c.x0+b,f[p]?f[p].push(c):f[p]=[c]}if(i)for(const c of f)c.sort(i);return f}function D(t){const l=_e(t,s=>(r-a-(s.length-1)*y)/ne(s,re));for(const s of t){let f=a;for(const c of s){c.y0=f,c.y1=f+c.value*l,f=c.y1+y;for(const p of c.sourceLinks)p.width=p.value*l}f=(r-f+y)/(s.length+1);for(let c=0;c<s.length;++c){const p=s[c];p.y0+=f*(c+1),p.y1+=f*(c+1)}L(s)}}function S(t){const l=C(t);y=Math.min(x,(r-a)/(he(l,s=>s.length)-1)),D(l);for(let s=0;s<h;++s){const f=Math.pow(.99,s),c=Math.max(1-f,(s+1)/h);U(l,f,c),P(l,f,c)}}function P(t,l,s){for(let f=1,c=t.length;f<c;++f){const p=t[f];for(const w of p){let E=0,V=0;for(const{source:H,value:de}of w.targetLinks){let Q=de*(w.layer-H.layer);E+=I(H,w)*Q,V+=Q}if(!(V>0))continue;let q=(E/V-w.y0)*l;w.y0+=q,w.y1+=q,F(w)}i===void 0&&p.sort(J),B(p,s)}}function U(t,l,s){for(let f=t.length,c=f-2;c>=0;--c){const p=t[c];for(const w of p){let E=0,V=0;for(const{target:H,value:de}of w.sourceLinks){let Q=de*(H.layer-w.layer);E+=$(w,H)*Q,V+=Q}if(!(V>0))continue;let q=(E/V-w.y0)*l;w.y0+=q,w.y1+=q,F(w)}i===void 0&&p.sort(J),B(p,s)}}function B(t,l){const s=t.length>>1,f=t[s];j(t,f.y0-y,s-1,l),G(t,f.y1+y,s+1,l),j(t,r,t.length-1,l),G(t,a,0,l)}function G(t,l,s,f){for(;s<t.length;++s){const c=t[s],p=(l-c.y0)*f;p>1e-6&&(c.y0+=p,c.y1+=p),l=c.y1+y}}function j(t,l,s,f){for(;s>=0;--s){const c=t[s],p=(c.y1-l)*f;p>1e-6&&(c.y0-=p,c.y1-=p),l=c.y0-y}}function F({sourceLinks:t,targetLinks:l}){if(o===void 0){for(const{source:{sourceLinks:s}}of l)s.sort(pe);for(const{target:{targetLinks:s}}of t)s.sort(ye)}}function L(t){if(o===void 0)for(const{sourceLinks:l,targetLinks:s}of t)l.sort(pe),s.sort(ye)}function I(t,l){let s=t.y0-(t.sourceLinks.length-1)*y/2;for(const{target:f,width:c}of t.sourceLinks){if(f===l)break;s+=c+y}for(const{source:f,width:c}of l.targetLinks){if(f===t)break;s-=c}return s}function $(t,l){let s=l.y0-(l.targetLinks.length-1)*y/2;for(const{source:f,width:c}of l.targetLinks){if(f===t)break;s+=c+y}for(const{target:f,width:c}of t.sourceLinks){if(f===l)break;s-=c}return s}return v}var ie=Math.PI,se=2*ie,R=1e-6,xf=se-R;function be(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function we(){return new be}be.prototype=we.prototype={constructor:be,moveTo:function(e,a){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+a)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,a){this._+="L"+(this._x1=+e)+","+(this._y1=+a)},quadraticCurveTo:function(e,a,d,r){this._+="Q"+ +e+","+ +a+","+(this._x1=+d)+","+(this._y1=+r)},bezierCurveTo:function(e,a,d,r,b,x){this._+="C"+ +e+","+ +a+","+ +d+","+ +r+","+(this._x1=+b)+","+(this._y1=+x)},arcTo:function(e,a,d,r,b){e=+e,a=+a,d=+d,r=+r,b=+b;var x=this._x1,y=this._y1,g=d-e,n=r-a,i=x-e,o=y-a,m=i*i+o*o;if(b<0)throw new Error("negative radius: "+b);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=a);else if(m>R)if(!(Math.abs(o*g-n*i)>R)||!b)this._+="L"+(this._x1=e)+","+(this._y1=a);else{var _=d-x,h=r-y,v=g*g+n*n,M=_*_+h*h,T=Math.sqrt(v),N=Math.sqrt(m),O=b*Math.tan((ie-Math.acos((v+m-M)/(2*T*N)))/2),C=O/N,D=O/T;Math.abs(C-1)>R&&(this._+="L"+(e+C*i)+","+(a+C*o)),this._+="A"+b+","+b+",0,0,"+ +(o*_>i*h)+","+(this._x1=e+D*g)+","+(this._y1=a+D*n)}},arc:function(e,a,d,r,b,x){e=+e,a=+a,d=+d,x=!!x;var y=d*Math.cos(r),g=d*Math.sin(r),n=e+y,i=a+g,o=1^x,m=x?r-b:b-r;if(d<0)throw new Error("negative radius: "+d);this._x1===null?this._+="M"+n+","+i:(Math.abs(this._x1-n)>R||Math.abs(this._y1-i)>R)&&(this._+="L"+n+","+i),d&&(m<0&&(m=m%se+se),m>xf?this._+="A"+d+","+d+",0,1,"+o+","+(e-y)+","+(a-g)+"A"+d+","+d+",0,1,"+o+","+(this._x1=n)+","+(this._y1=i):m>R&&(this._+="A"+d+","+d+",0,"+ +(m>=ie)+","+o+","+(this._x1=e+d*Math.cos(b))+","+(this._y1=a+d*Math.sin(b))))},rect:function(e,a,d,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+a)+"h"+ +d+"v"+ +r+"h"+-d+"Z"},toString:function(){return this._}};function ke(e){return function(){return e}}function _f(e){return e[0]}function vf(e){return e[1]}var wf=Array.prototype.slice;function Af(e){return e.source}function Sf(e){return e.target}function Lf(e){var a=Af,d=Sf,r=_f,b=vf,x=null;function y(){var g,n=wf.call(arguments),i=a.apply(this,n),o=d.apply(this,n);if(x||(x=g=we()),e(x,+r.apply(this,(n[0]=i,n)),+b.apply(this,n),+r.apply(this,(n[0]=o,n)),+b.apply(this,n)),g)return x=null,g+""||null}return y.source=function(g){return arguments.length?(a=g,y):a},y.target=function(g){return arguments.length?(d=g,y):d},y.x=function(g){return arguments.length?(r=typeof g=="function"?g:ke(+g),y):r},y.y=function(g){return arguments.length?(b=typeof g=="function"?g:ke(+g),y):b},y.context=function(g){return arguments.length?(x=g??null,y):x},y}function Ef(e,a,d,r,b){e.moveTo(a,d),e.bezierCurveTo(a=(a+r)/2,d,a,b,r,b)}function $f(){return Lf(Ef)}function Tf(e){return[e.source.x1,e.y0]}function Mf(e){return[e.target.x0,e.y1]}function Nf(){return $f().source(Tf).target(Mf)}var oe=(function(){var e=u(function(g,n,i,o){for(i=i||{},o=g.length;o--;i[g[o]]=n);return i},"o"),a=[1,9],d=[1,10],r=[1,5,10,12],b={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:u(function(n,i,o,m,_,h,v){var M=h.length-1;switch(_){case 7:const T=m.findOrCreateNode(h[M-4].trim().replaceAll('""','"')),N=m.findOrCreateNode(h[M-2].trim().replaceAll('""','"')),O=parseFloat(h[M].trim());m.addLink(T,N,O);break;case 8:case 9:case 11:this.$=h[M];break;case 10:this.$=h[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:a,20:d},{1:[2,6],7:11,10:[1,12]},e(d,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(d,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:a,20:d},{15:18,16:7,17:8,18:a,20:d},{18:[1,19]},e(d,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:a,20:d},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:u(function(n,i){if(i.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=i,o}},"parseError"),parse:u(function(n){var i=this,o=[0],m=[],_=[null],h=[],v=this.table,M="",T=0,N=0,O=2,C=1,D=h.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var U in this.yy)Object.prototype.hasOwnProperty.call(this.yy,U)&&(P.yy[U]=this.yy[U]);S.setInput(n,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var B=S.yylloc;h.push(B);var G=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(E){o.length=o.length-2*E,_.length=_.length-E,h.length=h.length-E}u(j,"popStack");function F(){var E;return E=m.pop()||S.lex()||C,typeof E!="number"&&(E instanceof Array&&(m=E,E=m.pop()),E=i.symbols_[E]||E),E}u(F,"lex");for(var L,I,$,t,l={},s,f,c,p;;){if(I=o[o.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((L===null||typeof L>"u")&&(L=F()),$=v[I]&&v[I][L]),typeof $>"u"||!$.length||!$[0]){var w="";p=[];for(s in v[I])this.terminals_[s]&&s>O&&p.push("'"+this.terminals_[s]+"'");S.showPosition?w="Parse error on line "+(T+1)+`:
2
2
  `+S.showPosition()+`
3
3
  Expecting `+p.join(", ")+", got '"+(this.terminals_[L]||L)+"'":w="Parse error on line "+(T+1)+": Unexpected "+(L==C?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(w,{text:S.match,token:this.terminals_[L]||L,line:S.yylineno,loc:B,expected:p})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+L);switch($[0]){case 1:o.push(L),_.push(S.yytext),h.push(S.yylloc),o.push($[1]),L=null,N=S.yyleng,M=S.yytext,T=S.yylineno,B=S.yylloc;break;case 2:if(f=this.productions_[$[1]][1],l.$=_[_.length-f],l._$={first_line:h[h.length-(f||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(f||1)].first_column,last_column:h[h.length-1].last_column},G&&(l._$.range=[h[h.length-(f||1)].range[0],h[h.length-1].range[1]]),t=this.performAction.apply(l,[M,N,T,P.yy,$[1],_,h].concat(D)),typeof t<"u")return t;f&&(o=o.slice(0,-1*f*2),_=_.slice(0,-1*f),h=h.slice(0,-1*f)),o.push(this.productions_[$[1]][0]),_.push(l.$),h.push(l._$),c=v[o[o.length-2]][o[o.length-1]],o.push(c);break;case 3:return!0}}return!0},"parse")},x=(function(){var g={EOF:1,parseError:u(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:u(function(n,i){return this.yy=i||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var i=n.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:u(function(n){var i=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var m=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),o.length-1&&(this.yylineno-=o.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===m.length?this.yylloc.first_column:0)+m[m.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(n){this.unput(this.match.slice(n))},"less"),pastInput:u(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var n=this.pastInput(),i=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{aB as v,b as y}from"./RGxIilBQ.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
1
+ import{aB as v,b as y}from"./q4Mp6azq.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
@@ -1,4 +1,4 @@
1
- import{t as Xt,bq as v,bo as F,a_ as me,by as Zt,bu as Ye,bs as Jt,b as Qt}from"./BV49_RX-.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as K,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./DYhIMPy1.js";import{h as on,k as rn,i as ln}from"./DU64vtBR.js";import{f as cn}from"./Civ86Ers.js";import{j as dn}from"./C-BI-o7z.js";import{Hm as Se,nq as fn,yk as un,rl as bt,ns as hn,a9 as kt}from"./DaA44xVk.js";import{bL as gn,dl as vn}from"./BMoOyvL9.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./CMNPJIlE.js";import{F as _t,b8 as wt}from"./vV7Eo_ua.js";import{f as Qe}from"./D7b_n5fi.js";import{w as Re}from"./BVNJnx5b.js";import{t as bn}from"./Brz_LsyP.js";import{g as kn}from"./BsLhCljI.js";function _n(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=wn(Ie)-1,De=We.split(`
1
+ import{t as Xt,bq as v,bo as F,a_ as me,by as Zt,bu as Ye,bs as Jt,b as Qt}from"./BAqR9jtB.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as K,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./DYhIMPy1.js";import{h as on,k as rn,i as ln}from"./BPk16bSc.js";import{f as cn}from"./C0VJEx2v.js";import{j as dn}from"./3V4Tx4nH.js";import{Hp as Se,ns as fn,yn as un,rn as bt,nu as hn,a9 as kt}from"./BSwWMzab.js";import{bL as gn,dl as vn}from"./DY6JypjK.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./C-fnz5X4.js";import{F as _t,b8 as wt}from"./DKXEy5Lq.js";import{f as Qe}from"./C9gP-gRX.js";import{w as Re}from"./DO2cS8JO.js";import{t as bn}from"./Bl_iEh1f.js";import{g as kn}from"./Cop9b2dY.js";function _n(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=wn(Ie)-1,De=We.split(`
2
2
  `);let s=0,I=0,le=!1;for(const B of De)if(B.startsWith("@@")){le=!0;const J=B.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);J&&(I=parseInt(J[1],10),s=parseInt(J[2],10))}else le&&(B.startsWith("+")?(re.add(s+Z),s++):B.startsWith("-")?(pe.add(I+Z),I++):B.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function wn(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),yn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),Cn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Xt({component:Dn,...q});en(c,!0);const oe=()=>Ye(Ct,"$read$",re),Ie=()=>Ye(Rt,"$workspace$",re),We=()=>Ye(It,"$workingTreeFileContentStore",re),[re,pe]=Jt(),Z=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),I=v(c,"active",7,!0),le=v(c,"workspaceId",7),B=v(c,"viewMode",7,"unified"),J=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Me=v(c,"lineWrapping",7,!1),U=v(c,"onStageHunk",7),A=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Ue=v(c,"refreshKey",7),Ae=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),Be=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Xe(()=>le())??kn()?.workspaceId??"",yt=Math.random().toString(36).substring(2,8),$e=`tracked-diff:${crypto.randomUUID()}`,Ct=gn(de,$e),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),$=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?At(t(Q).chunk,t(ee)):""),xt=d(()=>!t($)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
3
3
  `.repeat(W()-1):""),St=d(()=>t(st)+t($)),Ht=d(()=>t(st)+t(V));let _=ae(null),je=ae(null),_e=null,we=ae(!1);const Rt=vn(de),at=pt(void 0),ot=pt(""),It=dn(ot,at),rt=d(Ie),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Ut(t(Le)));let ye=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t($))}:off${W()}`:void 0),Mt=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Ut(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function At(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
4
4
  `)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
@@ -1,2 +1,2 @@
1
- import{t as Et,bq as ae,_ as Vr,a_ as re,by as Mt,bu as be,bs as Zt,b as Ut,bo as d}from"./BV49_RX-.js";import{bs as jt,ca as ke,aD as e,bH as u,a5 as R,bA as P,W as s,bn as zt,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ge,b$ as et,b_ as C,bO as g,bS as p,bl as S,aB as k,bj as Ar,aw as tt,ai as Nr,c5 as pr,a as gr,a7 as Ue,aj as vt,cd as Wr,br as Br}from"./DYhIMPy1.js";import{E as mr,F as Or}from"./8rrBGDgQ.js";import{s as rt,l as yt,k as or,h as Pt}from"./DU64vtBR.js";import{c as St}from"./LnbsKux_.js";import{b as _r}from"./BaIAhI85.js";import{Hm as A,n2 as hr,uE as wr,uD as br,JB as Hr,JC as qr,er as Jr,es as Xr,J0 as ir,ld as Ht,AI as nr,rl as sr,nq as Kr,yk as Yr,a9 as lr,HS as Gr,I7 as Zr,mE as Qr,ix as ea,n4 as ta,u3 as ra,yH as aa,I$ as oa}from"./DaA44xVk.js";import{g as ia}from"./DfN8_dcw.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as qt}from"./C-BI-o7z.js";import{by as va,bL as pa,dl as ga}from"./BMoOyvL9.js";import{w as cr,d as ma}from"./wFaVm_je.js";import{f as _a}from"./Civ86Ers.js";import{n as Jt}from"./DNPjjQTW.js";import{f as Fe,ax as ha}from"./D7b_n5fi.js";import"./C9Ba8Wsx.js";import{F as Qe,ab as wa,at as ba,aX as xa,b1 as Tt,co as ya,cp as Pa,bk as $a,cN as ka,c5 as Ia}from"./vV7Eo_ua.js";import{g as Ca,i as Fa,w as ur}from"./BVNJnx5b.js";import{c as Sa}from"./ChTqQfQN.js";import"./CiN55CeC.js";import{V as Da}from"./Bh9tHAiY.js";import{i as Xt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Yt,p as Ea}from"./Bg-wwj8e.js";import{M as Ma}from"./ZS63KZzT.js";import{t as Kt,u as xr}from"./Brz_LsyP.js";import"./CKcLU7Ix.js";import"./Ddfj4iOJ.js";import{M as Dt}from"./BDPd3Gxs.js";import{V as Ua}from"./CWlg1b-s.js";import{bN as ja,b4 as za}from"./li27w4Od.js";import{ak as La}from"./B4eSJ_b5.js";const yr=A.createSelector((Y,x)=>hr(Y.pdfPreview.previews,x));var Va=k('<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),Aa=k('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Gt(Y,x){if(new.target)return Et({component:Gt,...Y});jt(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Zt();let $=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Ce=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),qe=O(void 0),N=O(1),B=O(1),se=O(!0),j=O(!1),ze=O(null),Ne=O(0);const ye=i(()=>Ie()?.error??e(ze)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());ke(()=>{const l=$(),y=ne();e(Ne);const z=crypto.randomUUID();return A.dispatch(wr(Se,z,l,y,...Ce()?[{gitRootId:Ce()}]:[])),()=>{A.dispatch(br(Se,z))}}),ke(()=>{const l=Ie()?.url;let y=!1,z;if(u(Q,null),u(ze,null),u(se,!0),u(N,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:X}=await Vr(async()=>{const{loadPdfDocument:he}=await import("./cb1JHFKl.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;z=X(l);const le=await z.promise;y||u(Q,le)}catch(X){if(y)return;u(ze,X instanceof Error&&X.name==="PasswordException"?"password":X instanceof Error&&X.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,z?.destroy()}}),ke(()=>{const l=e(Q),y=e(qe),z=e(N),X=e(B);if(!l||!y)return;let le=!1,he,M;const de=()=>{if(!M)return;const K=(_e.get(M)??1)-1;K?_e.set(M,K):(_e.delete(M),M.cleanup()),M=void 0};return u(j,!0),(async()=>{try{if(M=await l.getPage(z),_e.set(M,(_e.get(M)??0)+1),le){de();return}const K=M.getViewport({scale:X}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(K.width*K.height)));y.width=Math.ceil(K.width*ee),y.height=Math.ceil(K.height*ee),y.style.width=`${K.width}px`,y.style.height=`${K.height}px`,he=M.render({canvas:y,viewport:K,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(ze,"invalid")}finally{le||u(j,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var We={get workspaceId(){return $()},set workspaceId(l){$(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Ce()},set gitRootId(l){Ce(l),oe()},$set:Mt,$on:(l,y)=>Ut(x,l,y)},o=Aa(),c=R(o);{var E=l=>{{const y=X=>{Ge();var le=et();C(()=>g(le,e(De))),s(X,le)};let z=i(()=>d.ui_combobox_retry_label());Ca(l,{onRetry:()=>Ot(Ne),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Fa(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=ue(y),X=R(z);{let ge=i(()=>e(N)<=1);Fe(X,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N,-1),children:(Pe,Xe)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_previous_label()]),s(Pe,$e)},$$slots:{default:!0}})}var le=p(X,2),he=S(le,!0),M=p(le,2);{let ge=i(()=>e(N)>=e(Q).numPages);Fe(M,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N),children:(Pe,Xe)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.file_pdf_next_label()]),s(Pe,$e)},$$slots:{default:!0}})}var de=p(M,2);{let ge=i(()=>e(B)<=.25);Fe(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Xe)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}var K=p(de,2),ee=S(K,!0),ot=p(K,2);{let ge=i(()=>e(B)>=3);Fe(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Xe)=>{Ge();var $e=et();C(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}P(z);var it=p(z,2),Je=R(it);let Ze;_r(Je,ge=>u(qe,ge),()=>e(qe)),P(it),C((ge,Pe,Xe)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(j)),rt(Je,"aria-label",Xe),Ze=yt(Je,"",Ze,{visibility:e(j)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Kt(e(N)),total:Kt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Kt(e(N))})]),s(l,y)};re(c,l=>{e(ye)?l(E):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(Y,o);var Le=zt(We);return ie(),Le}const Na=A.createSelector((Y,x)=>hr(Y.videoPreview.previews,x));var Wa=k('<p role="status"> </p>'),Ba=k('<p role="alert"> </p>'),Oa=k('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Ha=k('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),qa=k('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(Y,x){if(new.target)return Et({component:Pr,...Y});jt(x,!0);const Ie=()=>be(qe,"$preview",at),[at,ie]=Zt();let $=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Ce=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),qe=Na(Q),N=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,j=!1;Ar(()=>{j=!0,A.dispatch(Hr(Q))});function ze(){if(j||e(N))return;const m=$().startsWith("workspace-file://")?new URL($()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),A.dispatch(qr(Q,m.hostname,m.toString()))}function Ne(m){if(j)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&ze()}var ye={get sourceUrl(){return $()},set sourceUrl(m){$(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Ce()},set allowDownload(m){Ce(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Mt,$on:(m,w)=>Ut(x,m,w)},De=qa(),We=R(De);{var o=m=>{var w=Oa(),Le=R(w),l=S(Le,!0),y=p(Le,2);{var z=M=>{var de=Wa(),K=S(de,!0);C(ee=>g(K,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(M,de)},X=M=>{var de=Ba(),K=S(de,!0);C(ee=>g(K,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(M,de)};re(y,M=>{e(N)?M(z):M(X,-1)})}var le=p(y,2);{var he=M=>{Fe(M,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,K)=>{Ge();var ee=et();C(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,M=>{Ce()&&M(he)})}P(w),C(()=>g(l,ne())),s(m,w)},c=m=>{var w=Ha(),Le=S(w,!0);C(l=>{rt(w,"src",Ie()?.url??$()),g(Le,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,Ne),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&ze()}),s(m,w)};re(We,m=>{e(B)||e(N)?m(o):m(c,-1)})}P(De),s(Y,De);var E=zt(ye);return ie(),E}var Ja=k('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Xa=k('<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=k('<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>'),Ya=k('<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>'),Ga=k("<!> ",1),Za=k('<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>'),Qa=k('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=k('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=k("<tr></tr>"),ro=k('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=k('<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>'),oo=k('<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>'),io=k('<div class="h-full flex flex-col"><!></div>');function Rt(Y,x){if(new.target)return Et({component:Rt,...Y});jt(x,!0);const Ie=t=>{var a=Ja(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Fe(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),U=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Fe(U,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:M,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ge(2),C(()=>g(h,e(ze))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),$=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Ce=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const qe=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"},N=i(()=>qe(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),j=O(0);const ze=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let Ne=O(!1),ye=O(0),De=O(0),We=O(0),o=O(0),c=O(!1),E=null;function m(){const t=E;E=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||E)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),E={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function Le(t){if(!(!E||t.pointerId!==E.pointerId)){if((t.buttons&1)===0){m();return}u(We,E.viewport.scrollLeft,!0),u(o,E.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-E.x)),u(De,e(De)+(t.clientY-E.y)),E.x=t.clientX,E.y=t.clientY}}function l(t){t.pointerId===E?.pointerId&&m()}ke(()=>{ie(),ne(),e(se),e(j),u(We,0),u(o,0)}),ke(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));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"},X=()=>{if(ne())return ne();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():Se()?`data:${y(ie())};base64,${$()}`:`data:${y(ie())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=z(ie());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},M=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},K=()=>{u(j,(e(j)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(N)==="video"?le():e(N)==="svg"?he():X(),t.download=e(B),t.click()},ot=async()=>{try{const t=X(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const U=document.createElement("canvas");U.width=a.naturalWidth,U.height=a.naturalHeight;const D=U.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),U.toBlob(T=>{T?_(T):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(Ne,!0),setTimeout(()=>u(Ne,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Je=t=>t.split(`
2
- `).map(f=>f.split(",").map(_=>_.trim()));var Ze={get filePath(){return ie()},set filePath(t){ie(t),oe()},get fileContent(){return $()},set fileContent(t=""){$(t),oe()},get sourceUrl(){return ne()},set sourceUrl(t){ne(t),oe()},get language(){return Ce()},set language(t){Ce(t),oe()},get isBinary(){return Se()},set isBinary(t){Se(t),oe()},get allowDownload(){return xe()},set allowDownload(t=!0){xe(t),oe()},get onDownload(){return _e()},set onDownload(t){_e(t),oe()},get downloading(){return Q()},set downloading(t=!1){Q(t),oe()},$set:Mt,$on:(t,a)=>Ut(x,t,a)},ge=io();tt("blur",gr,m);var Pe=R(ge);{var Xe=t=>{var a=Xa(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let te=i(()=>d.editor_fileViewer_rotate_tooltip());Fe(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:K,get title(){return e(te)},children:(we,Te)=>{Qe(we,{get icon(){return wa},size:"sm"})},$$slots:{default:!0}})}var U=p(h,4);{let te=i(()=>d.editor_fileViewer_copyImage_tooltip());Fe(U,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ot,get title(){return e(te)},children:(we,Te)=>{var je=Ue(),Be=ue(je);{var Vt=Ke=>{Qe(Ke,{get icon(){return ba},size:"sm",class:"text-green-500"})},pt=Ke=>{Qe(Ke,{get icon(){return xa},size:"sm"})};re(Be,Ke=>{e(Ne)?Ke(Vt):Ke(pt,-1)})}s(we,je)},$$slots:{default:!0}})}var D=p(U,2);{let te=i(()=>!xe()||Q()),we=i(()=>d.editor_fileViewer_download_tooltip());Fe(D,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(te)},get title(){return e(we)},children:(Te,je)=>{Qe(Te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var T=p(D,2),H=S(T,!0);P(f);var L=p(f,2),G=S(L);P(a),C(te=>{g(H,e(B)),or(L,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(L,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(G,"src",te),rt(G,"alt",e(B)),yt(G,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(j)??""}deg); transition: transform 0.2s;`)},[()=>X()]),vt("pointerdown",L,w),vt("pointermove",L,Le),vt("pointerup",L,l),tt("pointercancel",L,l),tt("lostpointercapture",L,l),s(t,a)},$e=t=>{var a=Ka(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let L=i(()=>!xe()||Q()),G=i(()=>d.editor_fileViewer_download_tooltip());Fe(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(L)},get title(){return e(G)},children:(te,we)=>{Qe(te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var U=p(h,2),D=S(U,!0);P(f);var T=p(f,2),H=S(T);P(a),C(L=>{g(D,e(B)),or(T,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(T,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(H,"src",L),rt(H,"alt",e(B)),yt(H,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>he()]),vt("pointerdown",T,w),vt("pointermove",T,Le),vt("pointerup",T,l),tt("pointercancel",T,l),tt("lostpointercapture",T,l),s(t,a)},fe=t=>{const a=i(le);var f=Ue(),_=ue(f);mr(_,()=>ie()+e(a),h=>{Pr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return xe()},get downloading(){return Q()},onDownload:ee})}),s(t,f)},nt=t=>{var a=Ya(),f=p(R(a),2),_=S(f,!0),h=p(f,2),U=R(h),D=p(U);P(h),P(a),C((T,H)=>{g(_,e(B)),rt(U,"src",T),g(D,` ${H??""}`)},[()=>X(),()=>d.editor_fileViewer_audioUnsupported_label()]),s(t,a)},$t=t=>{var a=Za(),f=p(R(a),2),_=S(f,!0),h=p(f,2);{let U=i(()=>!xe()||Q());Fe(h,{size:"sm",variant:"secondary",onclick:ee,get disabled(){return e(U)},children:(D,T)=>{var H=Ga(),L=ue(H);Qe(L,{get icon(){return Tt},size:"sm",class:"mr-2"});var G=p(L);C(te=>g(G,` ${te??""}`),[()=>d.editor_fileViewer_downloadPdf_label()]),s(D,H)},$$slots:{default:!0}})}P(a),C(U=>g(_,U),[()=>d.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},ct=t=>{{let a=i(()=>it($().toString()));Yt(t,{get value(){return e(a)},language:"json",get fileName(){return ie()},lineNumbers:!0,readOnly:!0})}},ut=t=>{const a=i(()=>Je($().toString()));var f=ro(),_=R(f),h=R(_),U=R(h);Pt(U,23,()=>e(a)[0]||[],(T,H)=>`header-${H}-${T}`,(T,H)=>{var L=Qa(),G=S(L,!0);C(()=>g(G,e(H))),s(T,L)}),P(U),P(h);var D=p(h);Pt(D,23,()=>e(a).slice(1),(T,H)=>`row-${H}`,(T,H,L)=>{var G=to();Pt(G,23,()=>e(H),(te,we)=>`cell-${e(L)}-${we}`,(te,we)=>{var Te=eo(),je=S(Te,!0);C(()=>g(je,e(we))),s(te,Te)}),P(G),s(T,G)}),P(D),P(_),P(f),s(t,f)},kt=t=>{var a=ao(),f=p(R(a),2),_=S(f,!0),h=p(f,2),U=S(h,!0);P(a),C(D=>{g(_,e(B)),g(U,D)},[()=>d.editor_fileViewer_archive_label()]),s(t,a)},Lt=t=>{var a=oo(),f=p(R(a),2),_=S(f,!0),h=p(f,2),U=S(h,!0);P(a),C(D=>{g(_,e(B)),g(U,D)},[()=>d.editor_fileViewer_binary_label()]),s(t,a)},It=t=>{{let a=i(()=>$().toString());Yt(t,{get value(){return e(a)},get language(){return Ce()},get fileName(){return ie()},lineNumbers:!0,highlightActiveLine:!0})}};re(Pe,t=>{e(N)==="image"?t(Xe):e(N)==="svg"?t($e,1):e(N)==="video"?t(fe,2):e(N)==="audio"?t(nt,3):e(N)==="pdf"?t($t,4):e(N)==="json"?t(ct,5):e(N)==="csv"?t(ut,6):e(N)==="archive"?t(kt,7):e(N)==="binary"?t(Lt,8):t(It,-1)})}return P(ge),s(Y,ge),zt(Ze)}Nr(["pointerdown","pointermove","pointerup"]);const no=/access denied|permission denied|outside (?:the )?workspace/i,so=/file not found|no such file or directory/i;function lo(Y){return no.test(Y)?"access-denied":Y===d.files_read_notFound_error()||so.test(Y)?"not-found":"generic"}function co(Y){switch(Y){case"access-denied":return d.layout_fileTab_errorAccessDenied_label();case"not-found":return d.layout_fileTab_errorNotFound_label();case"generic":return d.layout_fileTab_errorGeneric_label()}}var uo=k("<!> <!>",1),fo=k("<!> <!> <!>",1),vo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),fr=k('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),po=k('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),vr=k('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),go=k('<div class="flex items-center gap-3"><!> <!></div>'),mo=k('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),_o=k('<p class="text-xs"> </p>'),ho=k("<li><!></li>"),wo=k('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),bo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),xo=k('<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>'),yo=k('<div class="h-full overflow-auto p-4"><!></div>');function Po(Y,x){if(new.target)return Et({component:Po,...Y});jt(x,!0);const Ie=()=>be($e,"$workspace",j),at=()=>be(X,"$fileContentStore",j),ie=()=>be(le,"$fileLoadingStore",j),$=()=>be(he,"$fileSavingStore",j),ne=()=>be(M,"$fileErrorStore",j),Ce=()=>be(de,"$fileNotFoundCandidatesStore",j),Se=()=>be(K,"$isFileBinaryStore",j),xe=()=>be(ee,"$isFileDirtyStore",j),_e=()=>be(ot,"$fileLastUpdatedStore",j),Q=()=>be(it,"$ftChanges$",j),qe=()=>be(Xe,"$gutterRead$",j),N=()=>be(De,"$lineWrapping",j),B=()=>be(We,"$diffIndicators",j),se=()=>be(ge,"$rootMediaPreview",j),[j,ze]=Zt(),Ne=r=>{var n=uo(),I=ue(n);{var F=pe=>{var Ve=Ue(),Oe=ue(Ve);St(Oe,()=>Dt,(ft,_t)=>{_t(ft,{get icon(){return $a},get label(){return e(_)},disabled:!0})}),s(pe,Ve)};re(I,pe=>{!e(te)&&!e(l)&&!e(t)&&pe(F)})}var ve=p(I,2);{var Re=pe=>{{let Ve=i(()=>!e(Ct)||!e(L)),Oe=i(()=>!e(l)&&(!e(Ct)||!e(L)));Ua(pe,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Ct)},get previewEnabled(){return e(L)},onTogglePreview:()=>u(L,!e(L)),get showWrap(){return e(Ve)},get wrapEnabled(){return N()},onToggleWrap:()=>A.dispatch(Zr()),get showDiff(){return e(Oe)},get diffEnabled(){return B()},onToggleDiff:()=>A.dispatch(Gr())})}};re(ve,pe=>{o().filePath&&!e(te)&&!e(t)&&pe(Re)})}s(r,n)},ye=r=>{var n=Ue(),I=ue(n);{var F=ve=>{var Re=fo(),pe=ue(Re);{var Ve=Ae=>{var Ye=Ue(),lt=ue(Ye);{let ht=i(()=>d.layout_fileTab_goToChanges_tooltip());St(lt,()=>Dt,(wt,bt)=>{bt(wt,{get icon(){return Ia},get label(){return e(ht)},onclick:Tr})})}s(Ae,Ye)};re(pe,Ae=>{e(kr)&&Ae(Ve)})}var Oe=p(pe,2);{var ft=Ae=>{var Ye=Ue(),lt=ue(Ye);{let ht=i(()=>d.layout_fileTab_downloadFile_label()),wt=i(()=>!e(gt)||e(st));St(lt,()=>Dt,(bt,Nt)=>{Nt(bt,{get icon(){return Tt},get label(){return e(ht)},onclick:Ft,get disabled(){return e(wt)}})})}s(Ae,Ye)};re(Oe,Ae=>{e(Be)&&Ae(ft)})}var _t=p(Oe,2);{let Ae=i(()=>d.layout_fileTab_deleteFile_tooltip());St(_t,()=>Dt,(Ye,lt)=>{lt(Ye,{get icon(){return ka},get label(){return e(Ae)},onclick:Rr,destructive:!0})})}s(ve,Re)};re(I,ve=>{o().filePath&&!e(te)&&!e(l)&&ve(F)})}s(r,n)},De=ja(),We=za();let o=ae(x,"tab",7),c=ae(x,"workspaceId",7),E=ae(x,"isActive",7),m=ae(x,"isPanelFocused",7);ke(()=>{const r=c();if(!(!E()||!r||e(w)))return A.dispatch(Jr(r,"files")),()=>A.dispatch(Xr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),Le=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?_a(o().filePath,e(w)):o().filePath),z=Wr(e(y));ke(()=>{z.set(e(y))});const X=na(c(),z),le=sa(c(),z),he=la(c(),z),M=da(c(),z),de=ca(c(),z),K=ua(c(),z),ee=dr(c(),z),ot=fa(c(),z),it=va(c()),Je=ia(),Ze=crypto.randomUUID(),ge=yr(Ze),Pe=`file-gutter:${crypto.randomUUID()}`,Xe=pa(c(),Pe),$e=ga(c()),fe=i(()=>Ie()?.worktreePath||Ie()?.repositoryPath||Ie()?.path||null),nt=i(at),$t=i(ie),ct=i($),ut=i(ne),kt=i(()=>e(ut)?lo(e(ut)):"generic"),Lt=5,It=i(()=>(Ce()??[]).slice(0,Lt)),t=i(Se),a=i(xe),f=i(_e),_=i(()=>e(ct)?d.ui_saveIndicator_saving_tooltip():e(a)?d.ui_saveIndicator_autoSaving_tooltip():d.ui_saveIndicator_saved_tooltip());let h=O(null),U=O(Br([])),D=O(null),T=O(void 0),H=O(void 0),L=O(!0);ke(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(H)||(u(H,n,!0),u(T,{line:r},!0),u(L,!1))});const G=i(()=>e(w)?cr(o().filePath,e(Le)):null),te=i(()=>e(w)?!e(G):!!(o().filePath&&(Ta(o().filePath)||e(fe)&&Ra(o().filePath,e(fe))))),we=i(()=>o().filePath&&e(fe)?Xt(o().filePath)?o().filePath:`${e(fe)}/${o().filePath}`:null),Te=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),je=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Be=i(()=>c()&&/^[A-Za-z0-9._-]+$/.test(c())?cr(o().filePath,e(fe)):null),Vt=i(()=>!e(w)&&e(Be)?e(Be).split("/").slice(0,-1).join("/"):void 0),pt=i(()=>e(Te)||e(je)?e(Be):null),Ke=i(()=>e(w)&&e(je)?{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);ke(()=>{if(!E()||!e(w)||!e(G)||!e(Ke))return;const r=crypto.randomUUID();return A.dispatch(wr(Ze,r,c(),e(G),{gitRootId:e(w),mimeType:e(Ke)})),()=>A.dispatch(br(Ze,r))});let st=O(!1);const gt=i(()=>!!e(Be)&&!e($t)&&(!e(je)||e(D)===e(Be))),Qt=i(()=>e(D)&&c()?`workspace-file://${c()}/${e(D).split("/").map(encodeURIComponent).join("/")}`:null),At=i(()=>o().filePath?ta(o().filePath):"plaintext"),Ct=i(()=>e(At)==="markdown");ke(()=>{if(!E()||e(Te)||e(w))return;const r=e(pt),n=o().filePath,I=c(),F=o().id;if(u(D,null),!r||!n||!I)return;let ve=!1;const Re=()=>!ve&&c()===I&&o().id===F&&o().filePath===n;return(async()=>{let pe=!1;try{pe=(await ha("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Re())return;if(pe){u(D,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(D,r,!0);return}const{candidates:Ve,truncated:Oe}=await Da(I,r);if(Re()){if(!Oe&&Ve.length===1){A.dispatch(ir(I,n,Ve[0],F));return}u(D,r,!0)}})(),()=>{ve=!0}});function $r(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 mt=i(()=>e(l)||!o().filePath?null:Q().find(r=>$r(r,o().filePath))??null),kr=i(()=>!!e(mt));ke(()=>{if(e(l))return;const r=c(),n=o().filePath,I=e(fe);return()=>{if(!r||!n)return;const F=qt.select(A.state,r,n);if(F?.kind!=="editable-text")return;const ve=Ht(F.localContent),Re=dr.select(A.state,r,n),pe=Xt(n)?n:I?`${I}/${n}`:null;Re&&pe&&A.dispatch(nr(r,n,pe,ve))}}),ke(()=>{const r=o().filePath,n=e(we),I=c();if(!E())return;const F=!e(w)&&!!r&&Xt(r)&&!e(fe);r&&I&&!e(te)&&!e(je)&&!e(Te)&&!F&&(e(w)&&e(G)&&e(y)?A.dispatch(sr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(G)}})):A.dispatch(sr(I,r,n??r)))});function Ir(){return e(nt)??""}function Cr(r){e(l)||e(t)||!o().filePath||!c()||!e(we)||A.dispatch(oa(c(),o().filePath,Ht(r)))}function Fr(){if(e(l)||e(t)||!o().filePath||!e(we)||e(nt)===null||e(ct))return;const r=qt.select(A.state,c(),o().filePath);r?.kind==="editable-text"&&A.dispatch(nr(c(),o().filePath,e(we),Ht(r.localContent)))}function Sr(r){const n=o().filePath;!n||!c()||(A.dispatch(aa(c(),n)),A.dispatch(ir(c(),n,r,o().id)))}ke(()=>{const r=o().filePath,n=e(mt);if(!r||!n){u(U,[],!0);return}if(!E())return;const I=c(),F=crypto.randomUUID();return A.dispatch(Kr(I,Pe,F,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{A.dispatch(Yr(I,Pe,F))}}),ke(()=>{const r=qe(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(F=>F.file===o().filePath)??n[0];u(U,I?Ea(I.chunks.map(F=>({oldStart:F.oldStart,oldLines:F.oldLines,newStart:F.newStart,newLines:F.newLines,lines:F.lines.map(ve=>(ve.type===lr.Addition?"+":ve.type===lr.Deletion?"-":" ")+ve.content)}))):[],!0)});function Dr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Re=>Or(r,La(Re),n);if(I("editor.save")){r.preventDefault(),e(a)&&!e(ct)&&Fr();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(h)?.runShortcut(F)&&r.preventDefault()}function Tr(r){if(!o().filePath||!e(mt))return;const n=r?.metaKey||r?.ctrlKey||!1,F=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;A.dispatch(ra(c(),e(mt),{filePath:o().filePath,changeId:e(mt).id,openInAdjacentPanel:n,sourcePanelId:F}))}async function Ft(){const r=e(Be);if(!(e(l)||!r||!c()||!e(gt)||e(st))){u(st,!0);try{const n=await ma(c(),r,e(fe));!n?.success&&!n?.canceled&&Jt.error(n?.error?.message||d.layout_fileTab_downloadFailed_error())}catch{Jt.error(d.layout_fileTab_downloadFailed_error())}finally{u(st,!1)}}}function Rr(){const r=e(we);if(e(l)||!o().filePath||!c()||!r)return;const n=Qr(qt.select(A.state,c(),o().filePath));if(!n){Jt.error(d.ui_reversibleActions_failed_error({message:d.fileExplorer_tree_undoUnavailable_error()}));return}A.dispatch(ea(c(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}ke(()=>{if(!Je||!E())return;const r={isDirty:!e(l)&&e(a),isSaving:!e(l)&&e(ct)};pr(()=>{Je.registerActions({display:Ne,actions:ye}),Je.registerState(r)})});var Er={get tab(){return o()},set tab(r){o(r),oe()},get workspaceId(){return c()},set workspaceId(r){c(r),oe()},get isActive(){return E()},set isActive(r){E(r),oe()},get isPanelFocused(){return m()},set isPanelFocused(r){m(r),oe()},$set:Mt,$on:(r,n)=>Ut(x,r,n)},er=Ue();tt("keydown",gr,r=>E()&&Dr(r));var Mr=ue(er);{var Ur=r=>{var n=Ue(),I=ue(n);mr(I,()=>o().filePath,F=>{var ve=Ue(),Re=ue(ve);{var pe=b=>{var v=vo(),V=R(v),q=S(V,!0),W=p(V,2),Ee=S(W,!0);P(v),C(Z=>{g(q,Z),g(Ee,o().filePath)},[()=>d.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Ve=b=>{var v=Ue(),V=ue(v);{var q=W=>{Gt(W,{get workspaceId(){return c()},get filePath(){return e(G)},get gitRootId(){return e(w)}})};re(V,W=>{E()&&W(q)})}s(b,v)},Oe=b=>{var v=Ue(),V=ue(v);{var q=Z=>{var J=fr(),ce=R(J),Me=S(ce,!0);P(J),C(me=>g(Me,me),[()=>d.layout_fileTab_errorLoading_label()]),s(Z,J)},W=Z=>{Rt(Z,{get filePath(){return o().filePath},get sourceUrl(){return se().url},allowDownload:!1})},Ee=Z=>{var J=po(),ce=R(J),Me=S(ce,!0);P(J),C(me=>g(Me,me),[()=>d.layout_fileTab_preparing_label()]),s(Z,J)};re(V,Z=>{se()?.error?Z(q):se()?.url?Z(W,1):Z(Ee,-1)})}s(b,v)},ft=b=>{var v=Ue(),V=ue(v);{var q=W=>{Gt(W,{get workspaceId(){return c()},get filePath(){return e(pt)}})};re(V,W=>{E()&&W(q)})}s(b,v)},_t=b=>{var v=fr(),V=R(v),q=S(V,!0);P(v),C(W=>g(q,W),[()=>d.file_pdf_load_error()]),s(b,v)},Ae=b=>{{let v=i(()=>e(D)??o().filePath),V=i(()=>!e(l)&&e(gt));Rt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Qt)},onDownload:Ft,get allowDownload(){return e(V)},get downloading(){return e(st)}})}},Ye=b=>{var v=vr(),V=R(v),q=S(V,!0);P(v),C(W=>g(q,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)},lt=b=>{var v=mo(),V=R(v);Pt(V,20,()=>[...Array(20).keys()],q=>q,(q,W)=>{var Ee=go(),Z=R(Ee);ur(Z,{class:"h-3 w-8 shrink-0"});var J=p(Z,2);ur(J,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Ee),s(q,Ee)}),P(V),P(v),s(b,v)},ht=b=>{var v=bo(),V=R(v),q=S(V,!0),W=p(V,2),Ee=S(W,!0),Z=p(W,2);{var J=me=>{var He=_o(),dt=S(He,!0);C(()=>g(dt,e(ut))),s(me,He)};re(Z,me=>{e(kt)==="generic"&&me(J)})}var ce=p(Z,2);{var Me=me=>{var He=wo(),dt=ue(He),Wt=S(dt,!0),tr=p(dt,2);Pt(tr,20,()=>e(It),xt=>xt,(xt,rr)=>{var Bt=ho(),zr=R(Bt);Fe(zr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Sr(rr),children:(Lr,$o)=>{Ge();var ar=et();C(()=>g(ar,rr)),s(Lr,ar)},$$slots:{default:!0}}),P(Bt),s(xt,Bt)}),P(tr),C(xt=>g(Wt,xt),[()=>d.layout_fileTab_didYouMean_label()]),s(me,He)};re(ce,me=>{e(It).length>0&&me(Me)})}P(v),C(me=>{g(q,me),g(Ee,o().filePath)},[()=>co(e(kt))]),s(b,v)},wt=b=>{var v=xo(),V=R(v),q=S(V,!0),W=p(V,2),Ee=S(W,!0),Z=p(W,2);{var J=ce=>{{let Me=i(()=>!e(gt)||e(st));Fe(ce,{variant:"secondary",size:"sm",onclick:Ft,get disabled(){return e(Me)},children:(me,He)=>{Ge();var dt=et();C(Wt=>g(dt,Wt),[()=>d.layout_fileTab_downloadFile_label()]),s(me,dt)},$$slots:{default:!0}})}};re(Z,ce=>{!e(l)&&e(Be)&&ce(J)})}P(v),C(ce=>{g(q,ce),g(Ee,o().filePath)},[()=>d.editor_fileViewer_binary_label()]),s(b,v)},bt=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var V=Ue(),q=ue(V);{var W=J=>{{let ce=i(()=>o().filePath||""),Me=i(()=>!e(l)&&e(gt));Rt(J,{get filePath(){return e(ce)},get fileContent(){return e(nt)},get language(){return e(At)},get isBinary(){return e(t)},onDownload:Ft,get allowDownload(){return e(Me)},get downloading(){return e(st)}})}},Ee=J=>{var ce=yo(),Me=R(ce);Ma(Me,{get content(){return e(nt)},get workspaceId(){return c()},get relativeMediaBase(){return e(Vt)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(ce),s(J,ce)},Z=J=>{var ce=Ir,Me=Cr;{let me=i(()=>B()?e(U):[]);_r(Yt(J,{get value(){return ce()},set value(He){Me(He)},get language(){return e(At)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return c()},get filePath(){return o().filePath},get lineWrapping(){return N()},get lineChanges(){return e(me)},get jumpTo(){return e(T)},get externalContentVersion(){return e(f)},get isPanelFocused(){return m()}}),He=>u(h,He,!0),()=>e(h))}};re(q,J=>{e(v)?J(W):e(Ct)&&e(L)?J(Ee,1):J(Z,-1)})}s(b,V)},Nt=b=>{var v=vr(),V=R(v),q=S(V,!0);P(v),C(W=>g(q,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)};re(Re,b=>{e(te)?b(pe):e(w)&&e(Te)&&e(G)?b(Ve,1):e(w)&&e(je)?b(Oe,2):e(Te)&&e(pt)?b(ft,3):e(Te)?b(_t,4):e(Qt)?b(Ae,5):e(je)?b(Ye,6):e($t)?b(lt,7):e(ut)?b(ht,8):e(t)?b(wt,9):e(nt)!==null?b(bt,10):b(Nt,-1)})}s(F,ve)}),s(r,n)};re(Mr,r=>{o().filePath&&r(Ur)})}s(Y,er);var jr=zt(Er);return ze(),jr}export{Po as default};
1
+ import{t as Mt,bq as ae,_ as Vr,a_ as re,by as Et,bu as be,bs as Zt,b as Ut,bo as d}from"./BAqR9jtB.js";import{bs as jt,ca as ke,aD as e,bH as u,a5 as R,bA as P,W as s,bn as zt,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ye,b$ as et,b_ as F,bO as g,bS as p,bl as S,aB as k,bj as Ar,aw as tt,ai as Nr,c5 as pr,a as gr,a7 as Ue,aj as vt,cd as Wr,br as Br}from"./DYhIMPy1.js";import{E as mr,F as Or}from"./UuiGcpAE.js";import{s as rt,l as yt,k as or,h as Pt}from"./BPk16bSc.js";import{c as St}from"./B2RRuLl5.js";import{b as _r}from"./BaIAhI85.js";import{Hp as A,n4 as hr,uH as wr,uG as br,JE as Hr,JF as qr,er as Jr,es as Kr,J3 as ir,lf as Ht,AL as nr,rn as sr,ns as Xr,yn as Gr,a9 as lr,HV as Yr,Ia as Zr,mG as Qr,iz as ea,n6 as ta,u6 as ra,yK as aa,J2 as oa}from"./BSwWMzab.js";import{g as ia}from"./DfN8_dcw.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as qt}from"./3V4Tx4nH.js";import{by as va,bL as pa,dl as ga}from"./DY6JypjK.js";import{w as cr,d as ma}from"./BcVu_y1Z.js";import{f as _a}from"./C0VJEx2v.js";import{n as Jt}from"./Bc-8qHYh.js";import{f as Ce,ax as ha}from"./C9gP-gRX.js";import"./DiCMHWTR.js";import{F as Qe,ab as wa,at as ba,aX as xa,b1 as Tt,co as ya,cp as Pa,bk as $a,cN as ka,c5 as Ia}from"./DKXEy5Lq.js";import{g as Fa,i as Ca,w as ur}from"./DO2cS8JO.js";import{c as Sa}from"./ChTqQfQN.js";import"./7ZJvg7ev.js";import{V as Da}from"./x8WBzABF.js";import{i as Kt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Gt,p as Ma}from"./Bc2zOKbx.js";import{M as Ea}from"./DkI_jPOw.js";import{t as Xt,u as xr}from"./Bl_iEh1f.js";import"./C5Nz-crT.js";import"./7IyNIHph.js";import{M as Dt}from"./AGSVFpXc.js";import{V as Ua}from"./CeQYwwry.js";import{bN as ja,b4 as za}from"./CzrG_lpv.js";import{ak as La}from"./A3beYjJS.js";const yr=A.createSelector((G,x)=>hr(G.pdfPreview.previews,x));var Va=k('<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),Aa=k('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Yt(G,x){if(new.target)return Mt({component:Yt,...G});jt(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Zt();let $=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Fe=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),qe=O(void 0),N=O(1),B=O(1),se=O(!0),j=O(!1),ze=O(null),Ne=O(0);const ye=i(()=>Ie()?.error??e(ze)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());ke(()=>{const l=$(),y=ne();e(Ne);const z=crypto.randomUUID();return A.dispatch(wr(Se,z,l,y,...Fe()?[{gitRootId:Fe()}]:[])),()=>{A.dispatch(br(Se,z))}}),ke(()=>{const l=Ie()?.url;let y=!1,z;if(u(Q,null),u(ze,null),u(se,!0),u(N,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:K}=await Vr(async()=>{const{loadPdfDocument:he}=await import("./cb1JHFKl.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;z=K(l);const le=await z.promise;y||u(Q,le)}catch(K){if(y)return;u(ze,K instanceof Error&&K.name==="PasswordException"?"password":K instanceof Error&&K.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,z?.destroy()}}),ke(()=>{const l=e(Q),y=e(qe),z=e(N),K=e(B);if(!l||!y)return;let le=!1,he,E;const de=()=>{if(!E)return;const X=(_e.get(E)??1)-1;X?_e.set(E,X):(_e.delete(E),E.cleanup()),E=void 0};return u(j,!0),(async()=>{try{if(E=await l.getPage(z),_e.set(E,(_e.get(E)??0)+1),le){de();return}const X=E.getViewport({scale:K}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(X.width*X.height)));y.width=Math.ceil(X.width*ee),y.height=Math.ceil(X.height*ee),y.style.width=`${X.width}px`,y.style.height=`${X.height}px`,he=E.render({canvas:y,viewport:X,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(ze,"invalid")}finally{le||u(j,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var We={get workspaceId(){return $()},set workspaceId(l){$(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Fe()},set gitRootId(l){Fe(l),oe()},$set:Et,$on:(l,y)=>Ut(x,l,y)},o=Aa(),c=R(o);{var M=l=>{{const y=K=>{Ye();var le=et();F(()=>g(le,e(De))),s(K,le)};let z=i(()=>d.ui_combobox_retry_label());Fa(l,{onRetry:()=>Ot(Ne),get retryLabel(){return e(z)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Va(),z=ue(y),K=R(z);{let ge=i(()=>e(N)<=1);Ce(K,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N,-1),children:(Pe,Ke)=>{Ye();var $e=et();F(fe=>g($e,fe),[()=>d.file_pdf_previous_label()]),s(Pe,$e)},$$slots:{default:!0}})}var le=p(K,2),he=S(le,!0),E=p(le,2);{let ge=i(()=>e(N)>=e(Q).numPages);Ce(E,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N),children:(Pe,Ke)=>{Ye();var $e=et();F(fe=>g($e,fe),[()=>d.file_pdf_next_label()]),s(Pe,$e)},$$slots:{default:!0}})}var de=p(E,2);{let ge=i(()=>e(B)<=.25);Ce(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Ke)=>{Ye();var $e=et();F(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}var X=p(de,2),ee=S(X,!0),ot=p(X,2);{let ge=i(()=>e(B)>=3);Ce(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Ke)=>{Ye();var $e=et();F(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}P(z);var it=p(z,2),Je=R(it);let Ze;_r(Je,ge=>u(qe,ge),()=>e(qe)),P(it),F((ge,Pe,Ke)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(j)),rt(Je,"aria-label",Ke),Ze=yt(Je,"",Ze,{visibility:e(j)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Xt(e(N)),total:Xt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Xt(e(N))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(G,o);var Le=zt(We);return ie(),Le}const Na=A.createSelector((G,x)=>hr(G.videoPreview.previews,x));var Wa=k('<p role="status"> </p>'),Ba=k('<p role="alert"> </p>'),Oa=k('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Ha=k('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),qa=k('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(G,x){if(new.target)return Mt({component:Pr,...G});jt(x,!0);const Ie=()=>be(qe,"$preview",at),[at,ie]=Zt();let $=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Fe=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),qe=Na(Q),N=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,j=!1;Ar(()=>{j=!0,A.dispatch(Hr(Q))});function ze(){if(j||e(N))return;const m=$().startsWith("workspace-file://")?new URL($()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),A.dispatch(qr(Q,m.hostname,m.toString()))}function Ne(m){if(j)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&ze()}var ye={get sourceUrl(){return $()},set sourceUrl(m){$(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Fe()},set allowDownload(m){Fe(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Et,$on:(m,w)=>Ut(x,m,w)},De=qa(),We=R(De);{var o=m=>{var w=Oa(),Le=R(w),l=S(Le,!0),y=p(Le,2);{var z=E=>{var de=Wa(),X=S(de,!0);F(ee=>g(X,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(E,de)},K=E=>{var de=Ba(),X=S(de,!0);F(ee=>g(X,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(E,de)};re(y,E=>{e(N)?E(z):E(K,-1)})}var le=p(y,2);{var he=E=>{Ce(E,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,X)=>{Ye();var ee=et();F(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,E=>{Fe()&&E(he)})}P(w),F(()=>g(l,ne())),s(m,w)},c=m=>{var w=Ha(),Le=S(w,!0);F(l=>{rt(w,"src",Ie()?.url??$()),g(Le,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,Ne),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&ze()}),s(m,w)};re(We,m=>{e(B)||e(N)?m(o):m(c,-1)})}P(De),s(G,De);var M=zt(ye);return ie(),M}var Ja=k('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Ka=k('<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>'),Xa=k('<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>'),Ga=k('<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=k("<!> ",1),Za=k('<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>'),Qa=k('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=k('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=k("<tr></tr>"),ro=k('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=k('<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>'),oo=k('<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>'),io=k('<div class="h-full flex flex-col"><!></div>');function Rt(G,x){if(new.target)return Mt({component:Rt,...G});jt(x,!0);const Ie=t=>{var a=Ja(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Ce(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),U=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Ce(U,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:E,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ye(2),F(()=>g(h,e(ze))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),$=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Fe=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const qe=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"},N=i(()=>qe(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),j=O(0);const ze=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let Ne=O(!1),ye=O(0),De=O(0),We=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function Le(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(We,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}ke(()=>{ie(),ne(),e(se),e(j),u(We,0),u(o,0)}),ke(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));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(ne())return ne();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():Se()?`data:${y(ie())};base64,${$()}`:`data:${y(ie())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=z(ie());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},E=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},X=()=>{u(j,(e(j)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(N)==="video"?le():e(N)==="svg"?he():K(),t.download=e(B),t.click()},ot=async()=>{try{const t=K(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const U=document.createElement("canvas");U.width=a.naturalWidth,U.height=a.naturalHeight;const D=U.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),U.toBlob(T=>{T?_(T):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(Ne,!0),setTimeout(()=>u(Ne,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Je=t=>t.split(`
2
+ `).map(f=>f.split(",").map(_=>_.trim()));var Ze={get filePath(){return ie()},set filePath(t){ie(t),oe()},get fileContent(){return $()},set fileContent(t=""){$(t),oe()},get sourceUrl(){return ne()},set sourceUrl(t){ne(t),oe()},get language(){return Fe()},set language(t){Fe(t),oe()},get isBinary(){return Se()},set isBinary(t){Se(t),oe()},get allowDownload(){return xe()},set allowDownload(t=!0){xe(t),oe()},get onDownload(){return _e()},set onDownload(t){_e(t),oe()},get downloading(){return Q()},set downloading(t=!1){Q(t),oe()},$set:Et,$on:(t,a)=>Ut(x,t,a)},ge=io();tt("blur",gr,m);var Pe=R(ge);{var Ke=t=>{var a=Ka(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let te=i(()=>d.editor_fileViewer_rotate_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:X,get title(){return e(te)},children:(we,Te)=>{Qe(we,{get icon(){return wa},size:"sm"})},$$slots:{default:!0}})}var U=p(h,4);{let te=i(()=>d.editor_fileViewer_copyImage_tooltip());Ce(U,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ot,get title(){return e(te)},children:(we,Te)=>{var je=Ue(),Be=ue(je);{var Vt=Xe=>{Qe(Xe,{get icon(){return ba},size:"sm",class:"text-green-500"})},pt=Xe=>{Qe(Xe,{get icon(){return xa},size:"sm"})};re(Be,Xe=>{e(Ne)?Xe(Vt):Xe(pt,-1)})}s(we,je)},$$slots:{default:!0}})}var D=p(U,2);{let te=i(()=>!xe()||Q()),we=i(()=>d.editor_fileViewer_download_tooltip());Ce(D,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(te)},get title(){return e(we)},children:(Te,je)=>{Qe(Te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var T=p(D,2),H=S(T,!0);P(f);var L=p(f,2),Y=S(L);P(a),F(te=>{g(H,e(B)),or(L,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(L,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(Y,"src",te),rt(Y,"alt",e(B)),yt(Y,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(j)??""}deg); transition: transform 0.2s;`)},[()=>K()]),vt("pointerdown",L,w),vt("pointermove",L,Le),vt("pointerup",L,l),tt("pointercancel",L,l),tt("lostpointercapture",L,l),s(t,a)},$e=t=>{var a=Xa(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let L=i(()=>!xe()||Q()),Y=i(()=>d.editor_fileViewer_download_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(L)},get title(){return e(Y)},children:(te,we)=>{Qe(te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var U=p(h,2),D=S(U,!0);P(f);var T=p(f,2),H=S(T);P(a),F(L=>{g(D,e(B)),or(T,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(T,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(H,"src",L),rt(H,"alt",e(B)),yt(H,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>he()]),vt("pointerdown",T,w),vt("pointermove",T,Le),vt("pointerup",T,l),tt("pointercancel",T,l),tt("lostpointercapture",T,l),s(t,a)},fe=t=>{const a=i(le);var f=Ue(),_=ue(f);mr(_,()=>ie()+e(a),h=>{Pr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return xe()},get downloading(){return Q()},onDownload:ee})}),s(t,f)},nt=t=>{var a=Ga(),f=p(R(a),2),_=S(f,!0),h=p(f,2),U=R(h),D=p(U);P(h),P(a),F((T,H)=>{g(_,e(B)),rt(U,"src",T),g(D,` ${H??""}`)},[()=>K(),()=>d.editor_fileViewer_audioUnsupported_label()]),s(t,a)},$t=t=>{var a=Za(),f=p(R(a),2),_=S(f,!0),h=p(f,2);{let U=i(()=>!xe()||Q());Ce(h,{size:"sm",variant:"secondary",onclick:ee,get disabled(){return e(U)},children:(D,T)=>{var H=Ya(),L=ue(H);Qe(L,{get icon(){return Tt},size:"sm",class:"mr-2"});var Y=p(L);F(te=>g(Y,` ${te??""}`),[()=>d.editor_fileViewer_downloadPdf_label()]),s(D,H)},$$slots:{default:!0}})}P(a),F(U=>g(_,U),[()=>d.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},ct=t=>{{let a=i(()=>it($().toString()));Gt(t,{get value(){return e(a)},language:"json",get fileName(){return ie()},lineNumbers:!0,readOnly:!0})}},ut=t=>{const a=i(()=>Je($().toString()));var f=ro(),_=R(f),h=R(_),U=R(h);Pt(U,23,()=>e(a)[0]||[],(T,H)=>`header-${H}-${T}`,(T,H)=>{var L=Qa(),Y=S(L,!0);F(()=>g(Y,e(H))),s(T,L)}),P(U),P(h);var D=p(h);Pt(D,23,()=>e(a).slice(1),(T,H)=>`row-${H}`,(T,H,L)=>{var Y=to();Pt(Y,23,()=>e(H),(te,we)=>`cell-${e(L)}-${we}`,(te,we)=>{var Te=eo(),je=S(Te,!0);F(()=>g(je,e(we))),s(te,Te)}),P(Y),s(T,Y)}),P(D),P(_),P(f),s(t,f)},kt=t=>{var a=ao(),f=p(R(a),2),_=S(f,!0),h=p(f,2),U=S(h,!0);P(a),F(D=>{g(_,e(B)),g(U,D)},[()=>d.editor_fileViewer_archive_label()]),s(t,a)},Lt=t=>{var a=oo(),f=p(R(a),2),_=S(f,!0),h=p(f,2),U=S(h,!0);P(a),F(D=>{g(_,e(B)),g(U,D)},[()=>d.editor_fileViewer_binary_label()]),s(t,a)},It=t=>{{let a=i(()=>$().toString());Gt(t,{get value(){return e(a)},get language(){return Fe()},get fileName(){return ie()},lineNumbers:!0,highlightActiveLine:!0})}};re(Pe,t=>{e(N)==="image"?t(Ke):e(N)==="svg"?t($e,1):e(N)==="video"?t(fe,2):e(N)==="audio"?t(nt,3):e(N)==="pdf"?t($t,4):e(N)==="json"?t(ct,5):e(N)==="csv"?t(ut,6):e(N)==="archive"?t(kt,7):e(N)==="binary"?t(Lt,8):t(It,-1)})}return P(ge),s(G,ge),zt(Ze)}Nr(["pointerdown","pointermove","pointerup"]);const no=/access denied|permission denied|outside (?:the )?workspace/i,so=/file not found|no such file or directory/i;function lo(G){return no.test(G)?"access-denied":G===d.files_read_notFound_error()||so.test(G)?"not-found":"generic"}function co(G){switch(G){case"access-denied":return d.layout_fileTab_errorAccessDenied_label();case"not-found":return d.layout_fileTab_errorNotFound_label();case"generic":return d.layout_fileTab_errorGeneric_label()}}var uo=k("<!> <!>",1),fo=k("<!> <!> <!>",1),vo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),fr=k('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),po=k('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),vr=k('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),go=k('<div class="flex items-center gap-3"><!> <!></div>'),mo=k('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),_o=k('<p class="text-xs"> </p>'),ho=k("<li><!></li>"),wo=k('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),bo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),xo=k('<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>'),yo=k('<div class="h-full overflow-auto p-4"><!></div>');function Po(G,x){if(new.target)return Mt({component:Po,...G});jt(x,!0);const Ie=()=>be($e,"$workspace",j),at=()=>be(K,"$fileContentStore",j),ie=()=>be(le,"$fileLoadingStore",j),$=()=>be(he,"$fileSavingStore",j),ne=()=>be(E,"$fileErrorStore",j),Fe=()=>be(de,"$fileNotFoundCandidatesStore",j),Se=()=>be(X,"$isFileBinaryStore",j),xe=()=>be(ee,"$isFileDirtyStore",j),_e=()=>be(ot,"$fileLastUpdatedStore",j),Q=()=>be(it,"$ftChanges$",j),qe=()=>be(Ke,"$gutterRead$",j),N=()=>be(De,"$lineWrapping",j),B=()=>be(We,"$diffIndicators",j),se=()=>be(ge,"$rootMediaPreview",j),[j,ze]=Zt(),Ne=r=>{var n=uo(),I=ue(n);{var C=pe=>{var Ve=Ue(),Oe=ue(Ve);St(Oe,()=>Dt,(ft,_t)=>{_t(ft,{get icon(){return $a},get label(){return e(_)},disabled:!0})}),s(pe,Ve)};re(I,pe=>{!e(te)&&!e(l)&&!e(t)&&pe(C)})}var ve=p(I,2);{var Re=pe=>{{let Ve=i(()=>!e(Ft)||!e(L)),Oe=i(()=>!e(l)&&(!e(Ft)||!e(L)));Ua(pe,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Ft)},get previewEnabled(){return e(L)},onTogglePreview:()=>u(L,!e(L)),get showWrap(){return e(Ve)},get wrapEnabled(){return N()},onToggleWrap:()=>A.dispatch(Zr()),get showDiff(){return e(Oe)},get diffEnabled(){return B()},onToggleDiff:()=>A.dispatch(Yr())})}};re(ve,pe=>{o().filePath&&!e(te)&&!e(t)&&pe(Re)})}s(r,n)},ye=r=>{var n=Ue(),I=ue(n);{var C=ve=>{var Re=fo(),pe=ue(Re);{var Ve=Ae=>{var Ge=Ue(),lt=ue(Ge);{let ht=i(()=>d.layout_fileTab_goToChanges_tooltip());St(lt,()=>Dt,(wt,bt)=>{bt(wt,{get icon(){return Ia},get label(){return e(ht)},onclick:Tr})})}s(Ae,Ge)};re(pe,Ae=>{e(kr)&&Ae(Ve)})}var Oe=p(pe,2);{var ft=Ae=>{var Ge=Ue(),lt=ue(Ge);{let ht=i(()=>d.layout_fileTab_downloadFile_label()),wt=i(()=>!e(gt)||e(st));St(lt,()=>Dt,(bt,Nt)=>{Nt(bt,{get icon(){return Tt},get label(){return e(ht)},onclick:Ct,get disabled(){return e(wt)}})})}s(Ae,Ge)};re(Oe,Ae=>{e(Be)&&Ae(ft)})}var _t=p(Oe,2);{let Ae=i(()=>d.layout_fileTab_deleteFile_tooltip());St(_t,()=>Dt,(Ge,lt)=>{lt(Ge,{get icon(){return ka},get label(){return e(Ae)},onclick:Rr,destructive:!0})})}s(ve,Re)};re(I,ve=>{o().filePath&&!e(te)&&!e(l)&&ve(C)})}s(r,n)},De=ja(),We=za();let o=ae(x,"tab",7),c=ae(x,"workspaceId",7),M=ae(x,"isActive",7),m=ae(x,"isPanelFocused",7);ke(()=>{const r=c();if(!(!M()||!r||e(w)))return A.dispatch(Jr(r,"files")),()=>A.dispatch(Kr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),Le=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?_a(o().filePath,e(w)):o().filePath),z=Wr(e(y));ke(()=>{z.set(e(y))});const K=na(c(),z),le=sa(c(),z),he=la(c(),z),E=da(c(),z),de=ca(c(),z),X=ua(c(),z),ee=dr(c(),z),ot=fa(c(),z),it=va(c()),Je=ia(),Ze=crypto.randomUUID(),ge=yr(Ze),Pe=`file-gutter:${crypto.randomUUID()}`,Ke=pa(c(),Pe),$e=ga(c()),fe=i(()=>Ie()?.worktreePath||Ie()?.repositoryPath||Ie()?.path||null),nt=i(at),$t=i(ie),ct=i($),ut=i(ne),kt=i(()=>e(ut)?lo(e(ut)):"generic"),Lt=5,It=i(()=>(Fe()??[]).slice(0,Lt)),t=i(Se),a=i(xe),f=i(_e),_=i(()=>e(ct)?d.ui_saveIndicator_saving_tooltip():e(a)?d.ui_saveIndicator_autoSaving_tooltip():d.ui_saveIndicator_saved_tooltip());let h=O(null),U=O(Br([])),D=O(null),T=O(void 0),H=O(void 0),L=O(!0);ke(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(H)||(u(H,n,!0),u(T,{line:r},!0),u(L,!1))});const Y=i(()=>e(w)?cr(o().filePath,e(Le)):null),te=i(()=>e(w)?!e(Y):!!(o().filePath&&(Ta(o().filePath)||e(fe)&&Ra(o().filePath,e(fe))))),we=i(()=>o().filePath&&e(fe)?Kt(o().filePath)?o().filePath:`${e(fe)}/${o().filePath}`:null),Te=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),je=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Be=i(()=>c()&&/^[A-Za-z0-9._-]+$/.test(c())?cr(o().filePath,e(fe)):null),Vt=i(()=>!e(w)&&e(Be)?e(Be).split("/").slice(0,-1).join("/"):void 0),pt=i(()=>e(Te)||e(je)?e(Be):null),Xe=i(()=>e(w)&&e(je)?{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);ke(()=>{if(!M()||!e(w)||!e(Y)||!e(Xe))return;const r=crypto.randomUUID();return A.dispatch(wr(Ze,r,c(),e(Y),{gitRootId:e(w),mimeType:e(Xe)})),()=>A.dispatch(br(Ze,r))});let st=O(!1);const gt=i(()=>!!e(Be)&&!e($t)&&(!e(je)||e(D)===e(Be))),Qt=i(()=>e(D)&&c()?`workspace-file://${c()}/${e(D).split("/").map(encodeURIComponent).join("/")}`:null),At=i(()=>o().filePath?ta(o().filePath):"plaintext"),Ft=i(()=>e(At)==="markdown");ke(()=>{if(!M()||e(Te)||e(w))return;const r=e(pt),n=o().filePath,I=c(),C=o().id;if(u(D,null),!r||!n||!I)return;let ve=!1;const Re=()=>!ve&&c()===I&&o().id===C&&o().filePath===n;return(async()=>{let pe=!1;try{pe=(await ha("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Re())return;if(pe){u(D,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(D,r,!0);return}const{candidates:Ve,truncated:Oe}=await Da(I,r);if(Re()){if(!Oe&&Ve.length===1){A.dispatch(ir(I,n,Ve[0],C));return}u(D,r,!0)}})(),()=>{ve=!0}});function $r(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 mt=i(()=>e(l)||!o().filePath?null:Q().find(r=>$r(r,o().filePath))??null),kr=i(()=>!!e(mt));ke(()=>{if(e(l))return;const r=c(),n=o().filePath,I=e(fe);return()=>{if(!r||!n)return;const C=qt.select(A.state,r,n);if(C?.kind!=="editable-text")return;const ve=Ht(C.localContent),Re=dr.select(A.state,r,n),pe=Kt(n)?n:I?`${I}/${n}`:null;Re&&pe&&A.dispatch(nr(r,n,pe,ve))}}),ke(()=>{const r=o().filePath,n=e(we),I=c();if(!M())return;const C=!e(w)&&!!r&&Kt(r)&&!e(fe);r&&I&&!e(te)&&!e(je)&&!e(Te)&&!C&&(e(w)&&e(Y)&&e(y)?A.dispatch(sr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(Y)}})):A.dispatch(sr(I,r,n??r)))});function Ir(){return e(nt)??""}function Fr(r){e(l)||e(t)||!o().filePath||!c()||!e(we)||A.dispatch(oa(c(),o().filePath,Ht(r)))}function Cr(){if(e(l)||e(t)||!o().filePath||!e(we)||e(nt)===null||e(ct))return;const r=qt.select(A.state,c(),o().filePath);r?.kind==="editable-text"&&A.dispatch(nr(c(),o().filePath,e(we),Ht(r.localContent)))}function Sr(r){const n=o().filePath;!n||!c()||(A.dispatch(aa(c(),n)),A.dispatch(ir(c(),n,r,o().id)))}ke(()=>{const r=o().filePath,n=e(mt);if(!r||!n){u(U,[],!0);return}if(!M())return;const I=c(),C=crypto.randomUUID();return A.dispatch(Xr(I,Pe,C,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{A.dispatch(Gr(I,Pe,C))}}),ke(()=>{const r=qe(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(C=>C.file===o().filePath)??n[0];u(U,I?Ma(I.chunks.map(C=>({oldStart:C.oldStart,oldLines:C.oldLines,newStart:C.newStart,newLines:C.newLines,lines:C.lines.map(ve=>(ve.type===lr.Addition?"+":ve.type===lr.Deletion?"-":" ")+ve.content)}))):[],!0)});function Dr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Re=>Or(r,La(Re),n);if(I("editor.save")){r.preventDefault(),e(a)&&!e(ct)&&Cr();return}const C=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(!C||e(l)&&C!=="copy"&&C!=="select-all")return;C!=="toggle-task-list"&&e(h)?.runShortcut(C)&&r.preventDefault()}function Tr(r){if(!o().filePath||!e(mt))return;const n=r?.metaKey||r?.ctrlKey||!1,C=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;A.dispatch(ra(c(),e(mt),{filePath:o().filePath,changeId:e(mt).id,openInAdjacentPanel:n,sourcePanelId:C}))}async function Ct(){const r=e(Be);if(!(e(l)||!r||!c()||!e(gt)||e(st))){u(st,!0);try{const n=await ma(c(),r,e(fe));!n?.success&&!n?.canceled&&Jt.error(n?.error?.message||d.layout_fileTab_downloadFailed_error())}catch{Jt.error(d.layout_fileTab_downloadFailed_error())}finally{u(st,!1)}}}function Rr(){const r=e(we);if(e(l)||!o().filePath||!c()||!r)return;const n=Qr(qt.select(A.state,c(),o().filePath));if(!n){Jt.error(d.ui_reversibleActions_failed_error({message:d.fileExplorer_tree_undoUnavailable_error()}));return}A.dispatch(ea(c(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}ke(()=>{if(!Je||!M())return;const r={isDirty:!e(l)&&e(a),isSaving:!e(l)&&e(ct)};pr(()=>{Je.registerActions({display:Ne,actions:ye}),Je.registerState(r)})});var Mr={get tab(){return o()},set tab(r){o(r),oe()},get workspaceId(){return c()},set workspaceId(r){c(r),oe()},get isActive(){return M()},set isActive(r){M(r),oe()},get isPanelFocused(){return m()},set isPanelFocused(r){m(r),oe()},$set:Et,$on:(r,n)=>Ut(x,r,n)},er=Ue();tt("keydown",gr,r=>M()&&Dr(r));var Er=ue(er);{var Ur=r=>{var n=Ue(),I=ue(n);mr(I,()=>o().filePath,C=>{var ve=Ue(),Re=ue(ve);{var pe=b=>{var v=vo(),V=R(v),q=S(V,!0),W=p(V,2),Me=S(W,!0);P(v),F(Z=>{g(q,Z),g(Me,o().filePath)},[()=>d.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Ve=b=>{var v=Ue(),V=ue(v);{var q=W=>{Yt(W,{get workspaceId(){return c()},get filePath(){return e(Y)},get gitRootId(){return e(w)}})};re(V,W=>{M()&&W(q)})}s(b,v)},Oe=b=>{var v=Ue(),V=ue(v);{var q=Z=>{var J=fr(),ce=R(J),Ee=S(ce,!0);P(J),F(me=>g(Ee,me),[()=>d.layout_fileTab_errorLoading_label()]),s(Z,J)},W=Z=>{Rt(Z,{get filePath(){return o().filePath},get sourceUrl(){return se().url},allowDownload:!1})},Me=Z=>{var J=po(),ce=R(J),Ee=S(ce,!0);P(J),F(me=>g(Ee,me),[()=>d.layout_fileTab_preparing_label()]),s(Z,J)};re(V,Z=>{se()?.error?Z(q):se()?.url?Z(W,1):Z(Me,-1)})}s(b,v)},ft=b=>{var v=Ue(),V=ue(v);{var q=W=>{Yt(W,{get workspaceId(){return c()},get filePath(){return e(pt)}})};re(V,W=>{M()&&W(q)})}s(b,v)},_t=b=>{var v=fr(),V=R(v),q=S(V,!0);P(v),F(W=>g(q,W),[()=>d.file_pdf_load_error()]),s(b,v)},Ae=b=>{{let v=i(()=>e(D)??o().filePath),V=i(()=>!e(l)&&e(gt));Rt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Qt)},onDownload:Ct,get allowDownload(){return e(V)},get downloading(){return e(st)}})}},Ge=b=>{var v=vr(),V=R(v),q=S(V,!0);P(v),F(W=>g(q,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)},lt=b=>{var v=mo(),V=R(v);Pt(V,20,()=>[...Array(20).keys()],q=>q,(q,W)=>{var Me=go(),Z=R(Me);ur(Z,{class:"h-3 w-8 shrink-0"});var J=p(Z,2);ur(J,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Me),s(q,Me)}),P(V),P(v),s(b,v)},ht=b=>{var v=bo(),V=R(v),q=S(V,!0),W=p(V,2),Me=S(W,!0),Z=p(W,2);{var J=me=>{var He=_o(),dt=S(He,!0);F(()=>g(dt,e(ut))),s(me,He)};re(Z,me=>{e(kt)==="generic"&&me(J)})}var ce=p(Z,2);{var Ee=me=>{var He=wo(),dt=ue(He),Wt=S(dt,!0),tr=p(dt,2);Pt(tr,20,()=>e(It),xt=>xt,(xt,rr)=>{var Bt=ho(),zr=R(Bt);Ce(zr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Sr(rr),children:(Lr,$o)=>{Ye();var ar=et();F(()=>g(ar,rr)),s(Lr,ar)},$$slots:{default:!0}}),P(Bt),s(xt,Bt)}),P(tr),F(xt=>g(Wt,xt),[()=>d.layout_fileTab_didYouMean_label()]),s(me,He)};re(ce,me=>{e(It).length>0&&me(Ee)})}P(v),F(me=>{g(q,me),g(Me,o().filePath)},[()=>co(e(kt))]),s(b,v)},wt=b=>{var v=xo(),V=R(v),q=S(V,!0),W=p(V,2),Me=S(W,!0),Z=p(W,2);{var J=ce=>{{let Ee=i(()=>!e(gt)||e(st));Ce(ce,{variant:"secondary",size:"sm",onclick:Ct,get disabled(){return e(Ee)},children:(me,He)=>{Ye();var dt=et();F(Wt=>g(dt,Wt),[()=>d.layout_fileTab_downloadFile_label()]),s(me,dt)},$$slots:{default:!0}})}};re(Z,ce=>{!e(l)&&e(Be)&&ce(J)})}P(v),F(ce=>{g(q,ce),g(Me,o().filePath)},[()=>d.editor_fileViewer_binary_label()]),s(b,v)},bt=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var V=Ue(),q=ue(V);{var W=J=>{{let ce=i(()=>o().filePath||""),Ee=i(()=>!e(l)&&e(gt));Rt(J,{get filePath(){return e(ce)},get fileContent(){return e(nt)},get language(){return e(At)},get isBinary(){return e(t)},onDownload:Ct,get allowDownload(){return e(Ee)},get downloading(){return e(st)}})}},Me=J=>{var ce=yo(),Ee=R(ce);Ea(Ee,{get content(){return e(nt)},get workspaceId(){return c()},get relativeMediaBase(){return e(Vt)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(ce),s(J,ce)},Z=J=>{var ce=Ir,Ee=Fr;{let me=i(()=>B()?e(U):[]);_r(Gt(J,{get value(){return ce()},set value(He){Ee(He)},get language(){return e(At)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return c()},get filePath(){return o().filePath},get lineWrapping(){return N()},get lineChanges(){return e(me)},get jumpTo(){return e(T)},get externalContentVersion(){return e(f)},get isPanelFocused(){return m()}}),He=>u(h,He,!0),()=>e(h))}};re(q,J=>{e(v)?J(W):e(Ft)&&e(L)?J(Me,1):J(Z,-1)})}s(b,V)},Nt=b=>{var v=vr(),V=R(v),q=S(V,!0);P(v),F(W=>g(q,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)};re(Re,b=>{e(te)?b(pe):e(w)&&e(Te)&&e(Y)?b(Ve,1):e(w)&&e(je)?b(Oe,2):e(Te)&&e(pt)?b(ft,3):e(Te)?b(_t,4):e(Qt)?b(Ae,5):e(je)?b(Ge,6):e($t)?b(lt,7):e(ut)?b(ht,8):e(t)?b(wt,9):e(nt)!==null?b(bt,10):b(Nt,-1)})}s(C,ve)}),s(r,n)};re(Er,r=>{o().filePath&&r(Ur)})}s(G,er);var jr=zt(Mr);return ze(),jr}export{Po as default};
@@ -0,0 +1 @@
1
+ import{o7 as o}from"./BSwWMzab.js";import{aB as r}from"./DY6JypjK.js";function c(n,e){if(!e)return!0;const t=r.select(n,e);return!!t&&!o(t)}export{c};