uigraph 1.0.0 → 1.0.2

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 (323) hide show
  1. package/README.md +30 -51
  2. package/dist/bin.mjs +1608 -59037
  3. package/dist/viewer/assets/abnfDiagram-VCTEODGH-D7zWJuPJ.js +1 -0
  4. package/dist/viewer/assets/actor-avatar-Bu-mKKXB.js +1 -0
  5. package/dist/viewer/assets/{api-adapters-CnQpLiWI.js → api-adapters-tfr51BsS.js} +1 -1
  6. package/dist/viewer/assets/{api-endpoints-DCA5GNpC.js → api-endpoints-D-Whnnwd.js} +9 -9
  7. package/dist/viewer/assets/{api-group-endpoints-page-Di42W69y.js → api-group-endpoints-page-B9R1EI4i.js} +9 -9
  8. package/dist/viewer/assets/{arc-Cn8owoDw.js → arc-DauzQXFu.js} +1 -1
  9. package/dist/viewer/assets/architectureDiagram-5GKGNRK7-CXzgHd-c.js +36 -0
  10. package/dist/viewer/assets/{arrow-left-DWcMgM2U.js → arrow-left-DpQqmf17.js} +1 -1
  11. package/dist/viewer/assets/avatar-DAFUyk1i.js +43 -0
  12. package/dist/viewer/assets/badge-hR3QvPWv.js +1 -0
  13. package/dist/viewer/assets/better-delete-confirmation-modal-CGEQ5O4X.js +1 -0
  14. package/dist/viewer/assets/better-dialog-DcIxFWwk.js +1 -0
  15. package/dist/viewer/assets/{blockDiagram-I7D4REHJ-CbYzOsL_.js → blockDiagram-I7D4REHJ-CFHWUw4z.js} +2 -2
  16. package/dist/viewer/assets/{brands-Bd4RklRx.js → brands-DtmA1AhP.js} +1 -1
  17. package/dist/viewer/assets/button-DZj74qS7.js +1 -0
  18. package/dist/viewer/assets/{c4Diagram-7LVT6UL2-CLkVbphC.js → c4Diagram-7LVT6UL2-BHSggPKI.js} +6 -6
  19. package/dist/viewer/assets/{calendar-C0xdI_ag.js → calendar-Bolgc8E5.js} +1 -1
  20. package/dist/viewer/assets/channel-CNRSofFP.js +1 -0
  21. package/dist/viewer/assets/{check-XjanpAFg.js → check-BpmCQNbj.js} +1 -1
  22. package/dist/viewer/assets/checkbox-CFJfXL6R.js +1 -0
  23. package/dist/viewer/assets/{chevron-down-R7pQzyLD.js → chevron-down-DDsUE_xz.js} +1 -1
  24. package/dist/viewer/assets/{chevron-up-CRPypfOs.js → chevron-up-DVznKMGv.js} +1 -1
  25. package/dist/viewer/assets/{chunk-2Q5K7J3B-CcvtugCu.js → chunk-2Q5K7J3B-CNfz5YDQ.js} +1 -1
  26. package/dist/viewer/assets/{chunk-5VM5RSS4-CpZHHr12.js → chunk-5VM5RSS4-CwIhjvMe.js} +1 -1
  27. package/dist/viewer/assets/{chunk-F27PBJKO-DeAl4iOc.js → chunk-F27PBJKO-YFexFJof.js} +1 -1
  28. package/dist/viewer/assets/{chunk-IMKFNOWR-BfrPe7pS.js → chunk-IMKFNOWR-GY2yrvuo.js} +1 -1
  29. package/dist/viewer/assets/{chunk-JWPE2WC7-DDjyvUmZ.js → chunk-JWPE2WC7-xd0JGvne.js} +1 -1
  30. package/dist/viewer/assets/chunk-OB3PAWPO-DJIP1M4r.js +12 -0
  31. package/dist/viewer/assets/{chunk-POPQ4Y6H-DkDb0mzz.js → chunk-POPQ4Y6H-Bh6rizEy.js} +1 -1
  32. package/dist/viewer/assets/{chunk-SVP7TREG-D-K2XIGs.js → chunk-SVP7TREG-DtNrjvpq.js} +1 -1
  33. package/dist/viewer/assets/{chunk-TICWLB2K-DWMQQx6z.js → chunk-TICWLB2K-DrERwtw8.js} +1 -1
  34. package/dist/viewer/assets/{chunk-XXDRQBXY-DfkljAyM.js → chunk-XXDRQBXY-fYo04iwY.js} +1 -1
  35. package/dist/viewer/assets/{circle-alert-pm13M-Ef.js → circle-alert-Bl7DXYD_.js} +1 -1
  36. package/dist/viewer/assets/classDiagram-ZZMXUADV-D7PO-ME9.js +1 -0
  37. package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-D7PO-ME9.js +1 -0
  38. package/dist/viewer/assets/color-input-ClkkG_kZ.js +11 -0
  39. package/dist/viewer/assets/{common-Y7ySZBdh.js → common-DLCsGQ-t.js} +1 -1
  40. package/dist/viewer/assets/{component-icons-D1BDAuEt.js → component-icons-MJ61E9nt.js} +2 -2
  41. package/dist/viewer/assets/{copy-CN4K2f_R.js → copy-DMJJonQF.js} +1 -1
  42. package/dist/viewer/assets/cose-bilkent-JH36ORCC-Dplz8nVT.js +1 -0
  43. package/dist/viewer/assets/cross-button-D5qst1tj.js +1 -0
  44. package/dist/viewer/assets/{cynefin-OW5HDTMX-yz-uw9Kz.js → cynefin-OW5HDTMX-DiBs4CI8.js} +1 -1
  45. package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-COXS8-dI.js +62 -0
  46. package/dist/viewer/assets/{dagre-GXQ25YYZ-zjZDwXOe.js → dagre-GXQ25YYZ-K8qvfG8D.js} +2 -2
  47. package/dist/viewer/assets/dashboard-diagrams-page-Cb0xNr4W.js +2 -0
  48. package/dist/viewer/assets/dashboard-diagrams-page-inner-CD--zr5q.js +1 -0
  49. package/dist/viewer/assets/dashboard-docs-page-BfWR9Ai9.js +2 -0
  50. package/dist/viewer/assets/dashboard-docs-page-inner-BLbX-YwF.js +67 -0
  51. package/dist/viewer/assets/dashboard-layout-sTeeHNsZ.js +1 -0
  52. package/dist/viewer/assets/dashboard-lens-layout-D-tu_4kn.js +1 -0
  53. package/dist/viewer/assets/dashboard-map-frame-page-7pDmbTSe.js +1 -0
  54. package/dist/viewer/assets/dashboard-plans-page-CfwOZ34A.js +1 -0
  55. package/dist/viewer/assets/dashboard-service-apis-k93fjW51.js +1 -0
  56. package/dist/viewer/assets/{dashboard-service-diagrams-CIjk95Jk.js → dashboard-service-diagrams-BIWUxX-Y.js} +3 -3
  57. package/dist/viewer/assets/dashboard-service-docs-CnniTD6Q.js +1 -0
  58. package/dist/viewer/assets/{dashboard-service-overview-CzePVPjl.js → dashboard-service-overview-CGBu4omY.js} +5 -5
  59. package/dist/viewer/assets/dashboard-services-DEscIO2O.js +1 -0
  60. package/dist/viewer/assets/{db-type-badge-DOgu1Pyc.js → db-type-badge-UbPgpwQf.js} +2 -2
  61. package/dist/viewer/assets/debounce-Cp8eREM4-D7o-Pzb-.js +2 -0
  62. package/dist/viewer/assets/{dependencies-CYdEztHw.js → dependencies-DK2GDlhQ.js} +1 -1
  63. package/dist/viewer/assets/{dependency-graph-DbyfN-rC.js → dependency-graph-xBEnCS0J.js} +3 -3
  64. package/dist/viewer/assets/{diagram-S7CK7UJ4-q-NHkUCx.js → diagram-S7CK7UJ4-D-liadVe.js} +2 -2
  65. package/dist/viewer/assets/diagram-UQ7AKVKN-CnA8mgXp.js +41 -0
  66. package/dist/viewer/assets/{diagram-VSXAHHWV-DZc1kHGx.js → diagram-VSXAHHWV-Ck7dgRFR.js} +2 -2
  67. package/dist/viewer/assets/diagram-VX7I27RA-Cm1LHbu3.js +24 -0
  68. package/dist/viewer/assets/diagram-Z3DM3KII-DV3yBUCB.js +24 -0
  69. package/dist/viewer/assets/diagram-live-preview-DzJ7Nxp1.js +2 -0
  70. package/dist/viewer/assets/{diagram-portal-page-CWxuok9E.js → diagram-portal-page-gguGLULH.js} +24 -24
  71. package/dist/viewer/assets/{diagrams-C1xkRPqT.js → diagrams-BqBSv2eb.js} +4 -4
  72. package/dist/viewer/assets/dialog-D7wzTt0L.js +6 -0
  73. package/dist/viewer/assets/{doc-file-content-B06roi8L.js → doc-file-content-Be0au9Vo.js} +4 -4
  74. package/dist/viewer/assets/{download-CLdCXVsO.js → download-DhyZ3g4F.js} +1 -1
  75. package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BXbHVQvG.js +1 -0
  76. package/dist/viewer/assets/{editor-vqK4qAnB.js → editor-F9o4zoeB.js} +2 -2
  77. package/dist/viewer/assets/{erDiagram-RLTQ6QDP-BWuA-aqV.js → erDiagram-RLTQ6QDP-DMfiWput.js} +2 -2
  78. package/dist/viewer/assets/{file-text-BvszilVL.js → file-text-BFqJQ67P.js} +1 -1
  79. package/dist/viewer/assets/flow-diagram-preview-B83UU1n_.js +1 -0
  80. package/dist/viewer/assets/{flowDiagram-HODETNUW-Db0QtNj4.js → flowDiagram-HODETNUW-BNFS2Mkr.js} +1 -1
  81. package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-DFDsYJNp.js +292 -0
  82. package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-BVHabPDp.js +106 -0
  83. package/dist/viewer/assets/global-loader-XJO9_e0l.js +1 -0
  84. package/dist/viewer/assets/{globe-Jl6eIZmG.js → globe-CJ35KsQW.js} +1 -1
  85. package/dist/viewer/assets/gql-FFIj8zdp.js +1 -0
  86. package/dist/viewer/assets/{grid-scroll-body-CPqSxU6-.js → grid-scroll-body-DC5pYDPJ.js} +2 -2
  87. package/dist/viewer/assets/iconBase-DtqdW2XR.js +1 -0
  88. package/dist/viewer/assets/index-B6MxYIzs.js +1 -0
  89. package/dist/viewer/assets/index-BC5xdBQU.js +48 -0
  90. package/dist/viewer/assets/index-BIrx3oY4.js +1 -0
  91. package/dist/viewer/assets/{index-jm22RWpY.js → index-BZGsDmUx.js} +5 -5
  92. package/dist/viewer/assets/{index-Poftp9f1.js → index-BZXhpoWr.js} +4 -4
  93. package/dist/viewer/assets/index-Bn2bqqMd.js +1 -0
  94. package/dist/viewer/assets/{index-HU5pz3kj.js → index-BpCVYTvP.js} +36 -36
  95. package/dist/viewer/assets/{index-Bt2YHgxl.js → index-CBOYhBKJ.js} +1 -1
  96. package/dist/viewer/assets/index-CH7cEAxj.js +17 -0
  97. package/dist/viewer/assets/index-CIf0GId3.js +74 -0
  98. package/dist/viewer/assets/{index-D7MEHpJf.js → index-Ck66Ic_p.js} +4 -4
  99. package/dist/viewer/assets/index-Cp9mIQ8F.js +1 -0
  100. package/dist/viewer/assets/{index-c6Bxcoqm.js → index-DDmBuMKI.js} +1 -1
  101. package/dist/viewer/assets/{index-BSyJbFDG.js → index-DY3BFyb6.js} +1 -1
  102. package/dist/viewer/assets/{index-BS94XVnd.js → index-DkzZ-ZvR.js} +1 -1
  103. package/dist/viewer/assets/{index-C_43VC19.js → index-PglMbhys.js} +1 -1
  104. package/dist/viewer/assets/infoDiagram-27XIBGKW-CG-wwxBf.js +2 -0
  105. package/dist/viewer/assets/input--C59pq6j.js +1 -0
  106. package/dist/viewer/assets/{ishikawaDiagram-5VMMS53U-C4PzFnZ4.js → ishikawaDiagram-5VMMS53U-BlgV7ceJ.js} +2 -2
  107. package/dist/viewer/assets/{journeyDiagram-3NMN7TZE-Dpn3bBNo.js → journeyDiagram-3NMN7TZE-Cn03_Xl6.js} +2 -2
  108. package/dist/viewer/assets/{kanban-definition-UXKFOSKX-CJ99H4G6.js → kanban-definition-UXKFOSKX-CJogvDPY.js} +6 -6
  109. package/dist/viewer/assets/{layout-Bfvxt_D5.js → layout-B26eC4yQ.js} +1 -1
  110. package/dist/viewer/assets/{lens-run-page-DZneics-.js → lens-run-page-Ba1ppzJt.js} +3 -3
  111. package/dist/viewer/assets/lens-runs-page-BnUS57LM.js +1 -0
  112. package/dist/viewer/assets/{link-2-C75goIOt.js → link-2-D1e0xznG.js} +1 -1
  113. package/dist/viewer/assets/linked-project-dot-BY1gEES9.js +543 -0
  114. package/dist/viewer/assets/{loader-circle-C5jZoM7X.js → loader-circle-CiqyoJF7.js} +1 -1
  115. package/dist/viewer/assets/{merge-Cy7YkrN7.js → merge-BhOMvhW1.js} +1 -1
  116. package/dist/viewer/assets/mermaid.core-BDgZg3kW.js +312 -0
  117. package/dist/viewer/assets/method-badge-DErZP7y5.js +1 -0
  118. package/dist/viewer/assets/{mindmap-definition-YA3MSWOX-yQCKA-K4.js → mindmap-definition-YA3MSWOX-DFkLu0ac.js} +2 -2
  119. package/dist/viewer/assets/nav-links-DZWMpwMR.js +61 -0
  120. package/dist/viewer/assets/{network-COWNXGMM.js → network-B1apzT1s.js} +1 -1
  121. package/dist/viewer/assets/{nosql-editor-modal-DTiWkc_r.js → nosql-editor-modal-CvH0SWAi.js} +5 -5
  122. package/dist/viewer/assets/not-found-page-C-fn8QeM.js +1 -0
  123. package/dist/viewer/assets/organization-dependency-graph-page-BryP-iJL.js +1 -0
  124. package/dist/viewer/assets/pegDiagram-XKGWAZYB-g1cM14-L.js +1 -0
  125. package/dist/viewer/assets/{pieDiagram-E7YTZNPT-DqnkpCX4.js → pieDiagram-E7YTZNPT-WEnDsMY3.js} +2 -2
  126. package/dist/viewer/assets/{plus-DQakmTjA.js → plus-DbyuOgKB.js} +1 -1
  127. package/dist/viewer/assets/popover-476u3TN0.js +1 -0
  128. package/dist/viewer/assets/preload-helper-BlTxHScW.js +1 -0
  129. package/dist/viewer/assets/{quadrantDiagram-AXDQQJYC-iQjJfars.js → quadrantDiagram-AXDQQJYC-NdfQCpzF.js} +2 -2
  130. package/dist/viewer/assets/query-D9oj6LGx.js +50 -0
  131. package/dist/viewer/assets/{quill-rCHj4fCw.js → quill-Cde5JMRD.js} +1 -1
  132. package/dist/viewer/assets/railroadDiagram-O6MQD6OU-BYhlXlMY.js +1 -0
  133. package/dist/viewer/assets/{react-BNzYaZuG.js → react-Bx48XWN4.js} +1 -1
  134. package/dist/viewer/assets/react-flow-wrapper-BcbvHgxz.js +277 -0
  135. package/dist/viewer/assets/{requirementDiagram-BXWQKSXE-Bv-Vh1dW.js → requirementDiagram-BXWQKSXE-C25Bcm2L.js} +2 -2
  136. package/dist/viewer/assets/{sankeyDiagram-P5KCCOFB-C__uD07f.js → sankeyDiagram-P5KCCOFB-h8LiCsgk.js} +2 -2
  137. package/dist/viewer/assets/scroll-area-RagrStGj.js +6 -0
  138. package/dist/viewer/assets/{search-DW-qhXLk.js → search-vw7ucoOs.js} +1 -1
  139. package/dist/viewer/assets/section-loader-C4hOfhQS.js +1 -0
  140. package/dist/viewer/assets/section-not-found-BnrXiPog.js +1 -0
  141. package/dist/viewer/assets/select-D9fbrr7O.js +1 -0
  142. package/dist/viewer/assets/{sequenceDiagram-WJ2MYXX4-1RbvcHwO.js → sequenceDiagram-WJ2MYXX4-CDRVvD30.js} +2 -2
  143. package/dist/viewer/assets/{service-context-C17u_Fw9.js → service-context-D5nBtU18.js} +1 -1
  144. package/dist/viewer/assets/{service-database-list-page-cYuDHIls.js → service-database-list-page-DBjaDLVy.js} +2 -2
  145. package/dist/viewer/assets/service-database-page-CenNCgwf.js +2 -0
  146. package/dist/viewer/assets/service-database-page-inner-gS51TQTZ.js +85 -0
  147. package/dist/viewer/assets/{service-doc-Dir8g83J.js → service-doc-C-jHqT1U.js} +4 -4
  148. package/dist/viewer/assets/{service-doc-preview-modal-bJ6tJ5YR.js → service-doc-preview-modal-5sX6FOu1.js} +2 -2
  149. package/dist/viewer/assets/service-layout-Bf0vZBCH.js +1 -0
  150. package/dist/viewer/assets/service-pages-CFikvX4t.js +1 -0
  151. package/dist/viewer/assets/{services-Crqkffr5.js → services-Ivav34WC.js} +4 -4
  152. package/dist/viewer/assets/{share-2-BmYmqN4k.js → share-2-CQEaWbfH.js} +1 -1
  153. package/dist/viewer/assets/sizeCapture-INFHLROL-BJ6ndnPM.js +1 -0
  154. package/dist/viewer/assets/stateDiagram-D77RDMKH-B_tNCX3o.js +1 -0
  155. package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-Dl9wqdli.js +1 -0
  156. package/dist/viewer/assets/{style-DgSU0bQl.js → style-BPesJvJr.js} +8 -8
  157. package/dist/viewer/assets/super-circle-loader-DSkos6uP.js +1 -0
  158. package/dist/viewer/assets/super-logo-loader-Cxlbn6MB.js +1 -0
  159. package/dist/viewer/assets/swimlanes-42K2YHIH-CzURzYwf.js +1 -0
  160. package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-DrIlwFtk.js +8 -0
  161. package/dist/viewer/assets/table-B4pFND-o.js +1 -0
  162. package/dist/viewer/assets/textarea-Clgdv3Oi.js +1 -0
  163. package/dist/viewer/assets/{timeline-definition-24CTP7MA-C4yuLwUH.js → timeline-definition-24CTP7MA-D0YXQE1U.js} +2 -2
  164. package/dist/viewer/assets/ui-graph-logo-gHowu5gP.js +1 -0
  165. package/dist/viewer/assets/{upload-CRsS43j9.js → upload-CYb3nN_5.js} +1 -1
  166. package/dist/viewer/assets/{uploads-BOQHX9l4.js → uploads-CX2kdXbM.js} +8 -8
  167. package/dist/viewer/assets/{use-debounced-value-Ba-kkCUY.js → use-debounced-value-BpNFJd3C.js} +1 -1
  168. package/dist/viewer/assets/{use-localstorage-DIisTx-J.js → use-localstorage-D233xVb0.js} +1 -1
  169. package/dist/viewer/assets/use-permissions-BvmxJJ5r.js +1 -0
  170. package/dist/viewer/assets/{use-scoped-storage-C4RzED-E.js → use-scoped-storage-DL1XVp1j.js} +1 -1
  171. package/dist/viewer/assets/useMutation-D5ZHwHsx.js +1 -0
  172. package/dist/viewer/assets/useQuery-Dhe6uxrL.js +1 -0
  173. package/dist/viewer/assets/{vennDiagram-4TSXK5OY-BCtqXZqe.js → vennDiagram-4TSXK5OY-SSjHlqCQ.js} +2 -2
  174. package/dist/viewer/assets/{wardleyDiagram-VM6X3IG4-D3OtZJoT.js → wardleyDiagram-VM6X3IG4-CZWNdQxH.js} +2 -2
  175. package/dist/viewer/assets/{xychartDiagram-S5SC5T6Z-DxLL2CHH.js → xychartDiagram-S5SC5T6Z-B2qAGeb0.js} +2 -2
  176. package/dist/viewer/assets/zod-BMU4UTQt.js +1 -0
  177. package/dist/viewer/index.html +10 -1
  178. package/package.json +57 -57
  179. package/dist/abort-signals-B4fc3ahg.mjs +0 -34
  180. package/dist/agents.md +0 -28
  181. package/dist/anthropic-messages-KPxCHqBN.mjs +0 -14327
  182. package/dist/auth-storage-BvNH97p9.mjs +0 -2180
  183. package/dist/azure-openai-config-BbeCSg4y.mjs +0 -55
  184. package/dist/azure-openai-responses-BRzy8RfL.mjs +0 -182
  185. package/dist/classifier-shared-DBUHiTGw.mjs +0 -105
  186. package/dist/cli-2R6QQFp1.mjs +0 -451
  187. package/dist/cloudflare-workers-ai-system-one-BfqwmRQf.mjs +0 -44
  188. package/dist/config-D8DMGzIq.mjs +0 -647
  189. package/dist/cross-spawn-B2jIQPlu.mjs +0 -404
  190. package/dist/diagnostics-xdSgQR8t.mjs +0 -131
  191. package/dist/dist-BRyghrKX.mjs +0 -404
  192. package/dist/dist-D0EzrblG.mjs +0 -12161
  193. package/dist/dist-EKhnHWHG.mjs +0 -140221
  194. package/dist/dist-pQtuusFv.mjs +0 -1243
  195. package/dist/easter-egg-3d-C9_btlWn.mjs +0 -1225
  196. package/dist/env-api-keys-uytNub6O.mjs +0 -122
  197. package/dist/error-body-FhmCtR7m.mjs +0 -101
  198. package/dist/esm-D5isprgl.mjs +0 -1533
  199. package/dist/esm-DnqE4pfM.mjs +0 -104876
  200. package/dist/execute-BoTKl80U.mjs +0 -1715
  201. package/dist/github-copilot-headers-DWcTgoXr.mjs +0 -22
  202. package/dist/google-generative-ai-Brs5YpJo.mjs +0 -332
  203. package/dist/google-shared-2CyYa4VE.mjs +0 -33438
  204. package/dist/google-vertex-DZDUQPKa.mjs +0 -378
  205. package/dist/hash-DN7ukSfd.mjs +0 -16
  206. package/dist/headers-GhQHLk-3.mjs +0 -17
  207. package/dist/jiti-9kWALm4Y.mjs +0 -5439
  208. package/dist/jiti-loader-f21DrY1K.mjs +0 -27
  209. package/dist/jiti-static-loader-BI_w28l7.mjs +0 -41704
  210. package/dist/json-parse-B2mHg7o7.mjs +0 -381
  211. package/dist/keybinding-hints-D0nLU3ZH.mjs +0 -17899
  212. package/dist/lib-Dj1gKQJc.mjs +0 -24379
  213. package/dist/llama-cpp-classify-C73BoMYd.mjs +0 -344
  214. package/dist/mistral-conversations-DXVR7znL.mjs +0 -698
  215. package/dist/models-DBdii9gQ.mjs +0 -1255
  216. package/dist/multipart-parser-DLw9Z0uJ.mjs +0 -298
  217. package/dist/node-B0NU8X55.mjs +0 -2479
  218. package/dist/node-B8gaKm9g.mjs +0 -23
  219. package/dist/openai-I3_AqKDX.mjs +0 -17357
  220. package/dist/openai-codex-responses-PcZHDuBD.mjs +0 -1198
  221. package/dist/openai-completions-a_mH01ii.mjs +0 -994
  222. package/dist/openai-decisions-Du8y4mQG.mjs +0 -142
  223. package/dist/openai-prompt-cache-Bc6qNWt0.mjs +0 -8
  224. package/dist/openai-responses-a9lV_U7O.mjs +0 -270
  225. package/dist/openai-responses-shared-CDs_PBiH.mjs +0 -598
  226. package/dist/openrouter-images-D0Zc8Cjs.mjs +0 -125
  227. package/dist/photon_rs-DCvMOMu0.mjs +0 -4252
  228. package/dist/pi-messages-B5ietIBq.mjs +0 -306
  229. package/dist/plan-prompt.md +0 -56
  230. package/dist/prompt.md +0 -44
  231. package/dist/provider-env-BJhgA66g.mjs +0 -37
  232. package/dist/provider-retry-DXYM7rVE.mjs +0 -79
  233. package/dist/runtime-DTkBxiaM.mjs +0 -2822
  234. package/dist/sanitize-unicode-CqChtoM6.mjs +0 -26
  235. package/dist/shell-836_JFnI.mjs +0 -162
  236. package/dist/source-CKPndhKl.mjs +0 -478
  237. package/dist/src-DNm2QRm3.mjs +0 -5028
  238. package/dist/system-one-shared-DUAFtNa8.mjs +0 -75
  239. package/dist/token-DEUkymby.mjs +0 -56
  240. package/dist/token-util-Cx5S4eKt.mjs +0 -3
  241. package/dist/tool-DHDYqsyG.mjs +0 -6673
  242. package/dist/transform-messages-BClk99Vn.mjs +0 -477
  243. package/dist/typesafe-system-one-D2d8j8hZ.mjs +0 -24
  244. package/dist/typescript-Br-vsRJV.mjs +0 -6737
  245. package/dist/uuid-CNCZqNBb.mjs +0 -49
  246. package/dist/v2-1z8ijsD3.mjs +0 -6120
  247. package/dist/viewer/assets/abnfDiagram-VCTEODGH-j5YaKnl9.js +0 -1
  248. package/dist/viewer/assets/actor-avatar-DqmoY8Xc.js +0 -1
  249. package/dist/viewer/assets/architectureDiagram-5GKGNRK7-D80cJKz_.js +0 -36
  250. package/dist/viewer/assets/avatar-BI7D-Aia.js +0 -43
  251. package/dist/viewer/assets/badge-870-A4Y6.js +0 -1
  252. package/dist/viewer/assets/better-delete-confirmation-modal-Dib31LVb.js +0 -1
  253. package/dist/viewer/assets/better-dialog-D3AAiahr.js +0 -1
  254. package/dist/viewer/assets/button-DadqadpO.js +0 -1
  255. package/dist/viewer/assets/channel-DRkt3LIn.js +0 -1
  256. package/dist/viewer/assets/checkbox-BXpR079x.js +0 -1
  257. package/dist/viewer/assets/classDiagram-ZZMXUADV-G5CebNaC.js +0 -1
  258. package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-G5CebNaC.js +0 -1
  259. package/dist/viewer/assets/color-input-Efm-lxDy.js +0 -11
  260. package/dist/viewer/assets/cose-bilkent-JH36ORCC-CrSHFmnp.js +0 -1
  261. package/dist/viewer/assets/cross-button-5Sr5rWVP.js +0 -1
  262. package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-Bdl_eBdu.js +0 -62
  263. package/dist/viewer/assets/dashboard-diagrams-page-DMupOe1m.js +0 -2
  264. package/dist/viewer/assets/dashboard-diagrams-page-inner-Dh0yKh2A.js +0 -1
  265. package/dist/viewer/assets/dashboard-docs-page-DWJ1qOQz.js +0 -2
  266. package/dist/viewer/assets/dashboard-docs-page-inner-Fs6G3oGo.js +0 -67
  267. package/dist/viewer/assets/dashboard-layout-D36InAaB.js +0 -1
  268. package/dist/viewer/assets/dashboard-lens-layout-Cv1Xx3hY.js +0 -1
  269. package/dist/viewer/assets/dashboard-map-frame-page-CTn61NUO.js +0 -1
  270. package/dist/viewer/assets/dashboard-plans-page-DxFJkrgK.js +0 -1
  271. package/dist/viewer/assets/dashboard-service-apis-BHtD9s5z.js +0 -1
  272. package/dist/viewer/assets/dashboard-service-docs-Uv_1uxxO.js +0 -1
  273. package/dist/viewer/assets/dashboard-services-CUP-L4Jg.js +0 -1
  274. package/dist/viewer/assets/diagram-UQ7AKVKN-DhFcurW6.js +0 -41
  275. package/dist/viewer/assets/diagram-VX7I27RA-DE1nREE8.js +0 -24
  276. package/dist/viewer/assets/diagram-Z3DM3KII-CSrYcCbc.js +0 -24
  277. package/dist/viewer/assets/diagram-live-preview-i5doxXLH.js +0 -2
  278. package/dist/viewer/assets/dialog-D_HtNS17.js +0 -6
  279. package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BfL8m_sf.js +0 -1
  280. package/dist/viewer/assets/flow-diagram-preview-T0Z4iMVU.js +0 -1
  281. package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-CsITpniw.js +0 -292
  282. package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-B4eCBGoe.js +0 -106
  283. package/dist/viewer/assets/iconBase-BoDZfJgC.js +0 -1
  284. package/dist/viewer/assets/index-5E1tJ7yK.js +0 -125
  285. package/dist/viewer/assets/index-7XpV2DRw.js +0 -1
  286. package/dist/viewer/assets/index-C0Rs3s9Z.js +0 -1
  287. package/dist/viewer/assets/index-CzHjJWeV.js +0 -1
  288. package/dist/viewer/assets/index-DcEA6SIV.js +0 -74
  289. package/dist/viewer/assets/infoDiagram-27XIBGKW-lTebN5Ix.js +0 -2
  290. package/dist/viewer/assets/input-YvHTVS0E.js +0 -1
  291. package/dist/viewer/assets/lens-runs-page-DoAOObxx.js +0 -1
  292. package/dist/viewer/assets/linked-project-dot-Ds2uEmJ9.js +0 -543
  293. package/dist/viewer/assets/mermaid.core-BCRBv8Us.js +0 -312
  294. package/dist/viewer/assets/method-badge-DMYDKdDZ.js +0 -1
  295. package/dist/viewer/assets/nav-links-8vT2ixiI.js +0 -61
  296. package/dist/viewer/assets/not-found-page-CnfLlhS4.js +0 -1
  297. package/dist/viewer/assets/organization-dependency-graph-page-3xqIxjNx.js +0 -1
  298. package/dist/viewer/assets/pegDiagram-XKGWAZYB-CMXqeAum.js +0 -1
  299. package/dist/viewer/assets/popover-CN9ni1N3.js +0 -1
  300. package/dist/viewer/assets/railroadDiagram-O6MQD6OU-CfqToX3W.js +0 -1
  301. package/dist/viewer/assets/react-flow-wrapper-BPlRstyO.js +0 -276
  302. package/dist/viewer/assets/scroll-area-BodE-n7W.js +0 -6
  303. package/dist/viewer/assets/section-loader-BzpYM_Nx.js +0 -1
  304. package/dist/viewer/assets/select-DDtnmSET.js +0 -1
  305. package/dist/viewer/assets/service-database-page-CMi1wF4h.js +0 -2
  306. package/dist/viewer/assets/service-database-page-inner-CoqAj93L.js +0 -85
  307. package/dist/viewer/assets/service-layout-0NMm_bKG.js +0 -1
  308. package/dist/viewer/assets/service-pages-dfnc91SU.js +0 -1
  309. package/dist/viewer/assets/sizeCapture-INFHLROL-BRJi3gCg.js +0 -1
  310. package/dist/viewer/assets/stateDiagram-D77RDMKH-DdLsfxgy.js +0 -1
  311. package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-DFwg8Qki.js +0 -1
  312. package/dist/viewer/assets/super-circle-loader-D8MElOMh.js +0 -1
  313. package/dist/viewer/assets/super-logo-loader-DJYiRbCS.js +0 -1
  314. package/dist/viewer/assets/swimlanes-42K2YHIH-AuYjrPqh.js +0 -1
  315. package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-0nIGA8_4.js +0 -8
  316. package/dist/viewer/assets/table-Bi4Auk9Z.js +0 -1
  317. package/dist/viewer/assets/textarea-MgxZ5x6-.js +0 -1
  318. package/dist/viewer/assets/ui-graph-logo-D4jRhd4z.js +0 -1
  319. package/dist/viewer/assets/use-permissions-6JVET753.js +0 -1
  320. package/dist/viewer/assets/useMutation-CmVaR9zz.js +0 -1
  321. package/dist/viewer/assets/useQuery-B8yYhO0c.js +0 -1
  322. package/dist/viewer/assets/zod-Dc4H6VVJ.js +0 -1
  323. package/dist/virtual-modules-DnCx0Gdx.mjs +0 -340
@@ -1,7 +1,7 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-D_SYSyRt.js","assets/html-BlS82ilI.js","assets/javascript-wDzz0qaB.js","assets/css-Z72CF80r.js","assets/angular-ts-DGq0tZX5.js","assets/scss-Cw6XMfVs.js","assets/apl-ChzvTHjC.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-DTjqU0_L.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-k33SngOZ.js","assets/html-derivative-DZhk3IEZ.js","assets/sql-DkvoVjww.js","assets/bsl-DlhNcFeZ.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/chapel-DTp_pixX.js","assets/c-BIGW1oBm.js","assets/cobol-BBKr1ja6.js","assets/coffee-Ch7k5sss.js","assets/cpp-BMRokrvK.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/crystal-LUwhHfY5.js","assets/shellscript-Yzrsuije.js","assets/edge-CJaD-t2L.js","assets/elixir-DkJLSxtU.js","assets/elm-DbKCFpqz.js","assets/erb-CSMaCouu.js","assets/ruby-C8rp0wew.js","assets/haml-GN_XdMnF.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-TyuKm33G.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DqcFQ5yU.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Drrc9bTt.js","assets/glimmer-ts-zeybXsvi.js","assets/hack-Ck6-gGSS.js","assets/handlebars-DPT5vKgj.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-2-FPmUDs.js","assets/haxe-CfZj7gIn.js","assets/jinja-DFQZVq3b.js","assets/jison-wvAkD_A8.js","assets/julia-Cu79e8SL.js","assets/r-Cf5RLm7j.js","assets/just-CMxyWJJc.js","assets/perl-5klg-GXX.js","assets/latex-DJVikpzR.js","assets/tex-D96PA37w.js","assets/liquid-B-duXHXw.js","assets/marko-BYgDmDgU.js","assets/less-B1dDrJ26.js","assets/mdc-DF4WjDMn.js","assets/nextflow-BCxp2Aob.js","assets/nextflow-groovy-CedDknKX.js","assets/nginx-BpAMiNFr.js","assets/nim-nV83PyhX.js","assets/org-6a7ccXN_.js","assets/ini-BEwlwnbL.js","assets/make-CHLpvVh8.js","assets/php-DoruYMF0.js","assets/vb-Cu-pLBUe.js","assets/clojure-P80f7IUj.js","assets/objective-c-DXmwc3jG.js","assets/docker-BcOcwvcX.js","assets/go-C27-OAKa.js","assets/groovy-gcz8RCvz.js","assets/raku-DXvB9xmW.js","assets/rust-DPvrY3IQ.js","assets/scala-CqE71os6.js","assets/csharp-B_TYUkTI.js","assets/dart-CtKP3W-j.js","assets/ocaml-C0hk2d4L.js","assets/zig-VOosw3JB.js","assets/xsl-CtQFsRM5.js","assets/pug-BtYPkAgq.js","assets/qml-3beO22l8.js","assets/razor-CyjPwjZj.js","assets/rst-CVOjT0e7.js","assets/cmake-D1j8_8rp.js","assets/sas-BGn39htG.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-zscZBeg6.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-DACIj5bg.js","assets/surrealql-Cjom0U5J.js","assets/svelte-D84K1R2Q.js","assets/templ-Vpw5XpSW.js","assets/ts-tags-Ls60c9xG.js","assets/twig-D9-LOF2p.js","assets/typst-DamkJZ1Q.js","assets/bat-CickPsom.js","assets/bibtex-CHM0blh-.js","assets/jsonc-Des-eS-w.js","assets/log-2UxHyX5q.js","assets/powershell-Dd0kTxKP.js","assets/swift-C2oV4EkX.js","assets/verilog-nZwndyjY.js","assets/system-verilog-0hqHdDBg.js","assets/vue-DSqPwMUe.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-C0RcJ6UU.js","assets/stylus-BEDo0Tqx.js"])))=>i.map(i=>d[i]);
2
- import{r as A,j as l,_ as g,u as Fc,c as Ga,b as Hc,au as za,a as $c,d as Vc,t as bs,S as $s}from"./index-5E1tJ7yK.js";import{B as qa,a as Ka,b as Bc}from"./better-dialog-D3AAiahr.js";import{S as Za}from"./section-loader-BzpYM_Nx.js";import{B as ti}from"./button-DadqadpO.js";import{C as Wc}from"./checkbox-BXpR079x.js";import{o as Uc,b as Gc,d as zc,e as qc,f as Kc}from"./dialog-D_HtNS17.js";import{u as Xa,P as Vs,a5 as Zc}from"./nav-links-8vT2ixiI.js";import{c as Xc,w as vs,s as Ja,f as Jc,a as Qc,b as Yc,h as eu,d as tu,H as P,M as nu,r as iu}from"./index-jm22RWpY.js";import{J as Bs,z as ru,o as N,s as S,c as K,n as et,d as H,b as ye,B as Fe,K as su}from"./index-DcEA6SIV.js";import{f as ou,g as au,h as lu}from"./index-BSyJbFDG.js";import{s as du,a as cu,b as uu,c as hu,d as fu,e as pu}from"./api-r74Oi8H6.js";import{O as mu,d as gu}from"./dependencies-CYdEztHw.js";import{D as bu}from"./dependency-graph-DbyfN-rC.js";import{u as vu}from"./useQuery-B8yYhO0c.js";import{L as Ws}from"./loader-circle-C5jZoM7X.js";import"./super-logo-loader-DJYiRbCS.js";import"./iconBase-BoDZfJgC.js";import"./check-XjanpAFg.js";import"./index-D7MEHpJf.js";import"./api-endpoints-DCA5GNpC.js";import"./style-DgSU0bQl.js";import"./index-C0Rs3s9Z.js";import"./transform-BqqRT-Iy.js";import"./value-wA6veExk.js";import"./index-Dj_05fqk.js";import"./globe-Jl6eIZmG.js";import"./share-2-BmYmqN4k.js";import"./link-2-C75goIOt.js";import"./circle-alert-pm13M-Ef.js";const Cn=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],yu=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],ku=[["path",{d:"M5.92089 5.92089C8.15836 3.68342 9.2771 2.56468 10.5857 2.19562C11.5105 1.93479 12.4895 1.93479 13.4143 2.19562C14.7229 2.56468 15.8416 3.68342 18.0791 5.92089C20.3166 8.15836 21.4353 9.2771 21.8044 10.5857C22.0652 11.5105 22.0652 12.4895 21.8044 13.4143C21.4353 14.7229 20.3166 15.8416 18.0791 18.0791C15.8416 20.3166 14.7229 21.4353 13.4143 21.8044C12.4895 22.0652 11.5105 22.0652 10.5857 21.8044C9.2771 21.4353 8.15836 20.3166 5.92089 18.0791C3.68342 15.8416 2.56468 14.7229 2.19562 13.4143C1.93479 12.4895 1.93479 11.5105 2.19562 10.5857C2.56468 9.2771 3.68342 8.15836 5.92089 5.92089Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Qa=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 13.5L7.5 9L9.375 13.5M6 13.5L5.5 15M6 13.5H9.375M9.375 13.5L10 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.5 12V9.7C12.5 9.51387 12.5 9.42081 12.5245 9.34549C12.5739 9.19327 12.6933 9.07393 12.8455 9.02447C12.9208 9 13.0139 9 13.2 9H14.5C15.3284 9 16 9.67157 16 10.5C16 11.3284 15.3284 12 14.5 12H12.5ZM12.5 12V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.5 9V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],xu=[["path",{d:"M19 9H6.65856C5.65277 9 5.14987 9 5.02472 8.69134C4.89957 8.38268 5.25517 8.01942 5.96637 7.29289L8.21091 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 15H17.3414C18.3472 15 18.8501 15 18.9753 15.3087C19.1004 15.6173 18.7448 15.9806 18.0336 16.7071L15.7891 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],_u=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],mt=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Cu=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],wu=[["path",{d:"M7.99978 3.5H6.60021C4.43183 3.5 3.34764 3.5 2.67399 4.17362C2.00034 4.84724 2.00029 5.93144 2.00021 8.09982L2 13.3998C1.99992 15.5684 1.99987 16.6526 2.67353 17.3263C3.34719 18 4.43146 18 6.6 18H8.95042C10.4329 18 11.7092 19.0464 11.9999 20.5V5.5C11.0556 4.24097 9.99989 3.5 7.99978 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.0001 3.5H17.3997C19.5681 3.5 20.6523 3.5 21.3259 4.17362C21.9996 4.84724 21.9996 5.93144 21.9997 8.09982L21.9999 13.3998C22 15.5684 22 16.6526 21.3264 17.3263C20.6527 18 19.5684 18 17.3999 18H15.0495C13.567 18 12.2907 19.0464 12 20.5V5.5C12.9443 4.24097 14 3.5 16.0001 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Lu=[["path",{d:"M8 3C7.5355 3 7.30325 3 7.10891 3.03078C6.03918 3.20021 5.20021 4.03918 5.03078 5.10891C5 5.30325 5 5.5355 5 6L5 10C5 11.1046 4.10457 12 3 12C4.10406 11.9982 5 12.8928 5 13.9968V18C5 18.4645 5 18.6968 5.03078 18.8911C5.20021 19.9608 6.03918 20.7998 7.10891 20.9692C7.30325 21 7.5355 21 8 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 3C16.4645 3 16.6968 3 16.8911 3.03078C17.9608 3.20021 18.7998 4.03918 18.9692 5.10891C19 5.30325 19 5.5355 19 6L19 10C19 11.1046 19.8954 12 21 12C19.8959 11.9982 19 12.8928 19 13.9968V18C19 18.4645 19 18.6968 18.9692 18.8911C18.7998 19.9608 17.9608 20.7998 16.8911 20.9692C16.6968 21 16.4645 21 16 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ti=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Xe=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.9994 15L9 9M9.00064 15L15 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Su=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],ji=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ir=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Eu=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ru=[["path",{d:"M14 21H16M14 21C13.1716 21 12.5 20.3284 12.5 19.5V17L12 17M14 21H10M10 21H8M10 21C10.8284 21 11.5 20.3284 11.5 19.5V17L12 17M12 17V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 3H8C5.17157 3 3.75736 3 2.87868 3.87868C2 4.75736 2 6.17157 2 9V11C2 13.8284 2 15.2426 2.87868 16.1213C3.75736 17 5.17157 17 8 17H16C18.8284 17 20.2426 17 21.1213 16.1213C22 15.2426 22 13.8284 22 11V9C22 6.17157 22 4.75736 21.1213 3.87868C20.2426 3 18.8284 3 16 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Au=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 22V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 7L20.5 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 17L20.5 17",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M12 12H22",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],Iu=[["path",{d:"M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Tu=[["path",{d:"M2.79289 21.2071C3.08579 21.5 3.55719 21.5 4.5 21.5H14.5C15.4428 21.5 15.9142 21.5 16.2071 21.2071M2.79289 21.2071C2.5 20.9142 2.5 20.4428 2.5 19.5V9.5C2.5 8.55719 2.5 8.08579 2.79289 7.79289M2.79289 21.2071L8.79289 15.2071M16.2071 21.2071C16.5 20.9142 16.5 20.4428 16.5 19.5V9.5C16.5 8.55719 16.5 8.08579 16.2071 7.79289M16.2071 21.2071L21.2071 16.2071C21.5 15.9142 21.5 15.4428 21.5 14.5V4.5C21.5 3.55719 21.5 3.08579 21.2071 2.79289M16.2071 7.79289C15.9142 7.5 15.4428 7.5 14.5 7.5H4.5C3.55719 7.5 3.08579 7.5 2.79289 7.79289M16.2071 7.79289L21.2071 2.79289M2.79289 7.79289L7.79289 2.79289C8.08579 2.5 8.55719 2.5 9.5 2.5H19.5C20.4428 2.5 20.9142 2.5 21.2071 2.79289M8.79289 15.2071C9.08579 15.5 9.55719 15.5 10.5 15.5H14M8.79289 15.2071C8.5 14.9142 8.5 14.4428 8.5 13.5V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],ys=[["path",{d:"M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 12H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 7.5L17 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.125 7.5H7M7.25 7.5C7.25 7.63807 7.13807 7.75 7 7.75C6.86193 7.75 6.75 7.63807 6.75 7.5C6.75 7.36193 6.86193 7.25 7 7.25C7.13807 7.25 7.25 7.36193 7.25 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11 16.5L17 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7.125 16.5H7M7.25 16.5C7.25 16.6381 7.13807 16.75 7 16.75C6.86193 16.75 6.75 16.6381 6.75 16.5C6.75 16.3619 6.86193 16.25 7 16.25C7.13807 16.25 7.25 16.3619 7.25 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],ju=[["path",{d:"M20 14V10.6569C20 9.83935 20 9.4306 19.8478 9.06306C19.6955 8.69552 19.4065 8.40649 18.8284 7.82843L14.0919 3.09188C13.593 2.593 13.3436 2.34355 13.0345 2.19575C12.9702 2.165 12.9044 2.13772 12.8372 2.11401C12.5141 2 12.1614 2 11.4558 2C8.21082 2 6.58831 2 5.48933 2.88607C5.26731 3.06508 5.06508 3.26731 4.88607 3.48933C4 4.58831 4 6.21082 4 9.45584V14C4 17.7712 4 19.6569 5.17157 20.8284C6.34315 22 8.22876 22 12 22M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 22C17.6068 21.4102 20 19.8403 20 19C20 18.1597 17.6068 16.5898 17 16M19 19H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Nu=[["path",{d:"M2 2L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C9.33333 2 7.60948 2 6.41421 2.41421M4.41421 4.41421C4 5.60948 4 7.33333 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L17.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5L13 20.7487C13 17.9203 13 16.5061 13.8787 15.6274C14.1785 15.3276 14.5406 15.1301 15 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Pu=[["path",{d:"M5.22576 11.3294L12.224 2.34651C12.7713 1.64397 13.7972 2.08124 13.7972 3.01707V9.96994C13.7972 10.5305 14.1995 10.985 14.6958 10.985H18.0996C18.8729 10.985 19.2851 12.0149 18.7742 12.6706L11.776 21.6535C11.2287 22.356 10.2028 21.9188 10.2028 20.9829V14.0301C10.2028 13.4695 9.80048 13.015 9.3042 13.015H5.90035C5.12711 13.015 4.71494 11.9851 5.22576 11.3294Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Du=[["path",{d:"M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]],Mu=[["path",{d:"M5 19C5.26413 19.9564 5.79671 21 7.18729 21C9.59365 21 10.1952 19 12 12C13.8048 5 14.4064 3 16.8127 3C18.2033 3 18.7359 4.04358 19 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 10H17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ou=[["path",{d:"M12 3L12 8.5M12 21L12 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Fu=[["path",{d:"M7 20C8.10457 20 9 19.1046 9 18C9 16.8954 8.10457 16 7 16C5.89543 16 5 16.8954 5 18C5 19.1046 5.89543 20 7 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8C8.10457 8 9 7.10457 9 6C9 4.89543 8.10457 4 7 4C5.89543 4 5 4.89543 5 6C5 7.10457 5.89543 8 7 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.02116 8.2793V15.4073M14.4113 12.0047L10.0193 12.0048C8.92158 12.0048 6.86182 11.1254 7.01818 8.78001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Hu=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11L18 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 4L18 6M18 6L16 8M18 6L20 8M18 6L16 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],$u=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 16V12C18 9.17156 18 7.75735 17.1213 6.87867C16.2426 5.99999 14.8284 5.99999 12 5.99999L11 5.99999M11 5.99999C11 5.29976 12.9943 3.99152 13.5 3.49999M11 5.99999C11 6.70022 12.9943 8.00846 13.5 8.49999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]],Vu=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12C8 18 12 22 12 22C12 22 16 18 16 12C16 6 12 2 12 2C12 2 8 6 8 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 15H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M21 9H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Bu=[["path",{d:"M4 3H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.5 3V5.03039C5.5 6.27227 6.07682 7.4437 7.06116 8.20089L12 12L16.9388 8.20089C17.9232 7.44371 18.5 6.27227 18.5 5.03039V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5.5 21V18.9696C5.5 17.7277 6.07682 16.5563 7.06116 15.7991L12 12L16.9388 15.7991C17.9232 16.5563 18.5 17.7277 18.5 18.9696V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4 21H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Ya=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],zt=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Wu=[["path",{d:"M5.25345 4.19584L4.02558 4.90813C3.03739 5.48137 2.54329 5.768 2.27164 6.24483C2 6.72165 2 7.30233 2 8.46368V16.6283C2 18.1542 2 18.9172 2.34226 19.3418C2.57001 19.6244 2.88916 19.8143 3.242 19.8773C3.77226 19.9719 4.42148 19.5953 5.71987 18.8421C6.60156 18.3306 7.45011 17.7994 8.50487 17.9435C8.98466 18.009 9.44231 18.2366 10.3576 18.6917L14.1715 20.588C14.9964 20.9982 15.004 21 15.9214 21H18C19.8856 21 20.8284 21 21.4142 20.4013C22 19.8026 22 18.8389 22 16.9117V10.1715C22 8.24423 22 7.2806 21.4142 6.68188C20.8284 6.08316 19.8856 6.08316 18 6.08316H15.9214C15.004 6.08316 14.9964 6.08139 14.1715 5.6712L10.8399 4.01463C9.44884 3.32297 8.75332 2.97714 8.01238 3.00117C7.27143 3.02521 6.59877 3.41542 5.25345 4.19584Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 3L8 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 6.5L15 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],wn=[["path",{d:"M16 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Uu=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Gu=[["path",{d:"M15.9351 12.6258C15.6807 13.8374 14.327 14.7077 11.6198 16.4481C8.67528 18.3411 7.20303 19.2876 6.01052 18.9229C5.60662 18.7994 5.23463 18.5823 4.92227 18.2876C4 17.4178 4 15.6118 4 12C4 8.38816 4 6.58224 4.92227 5.71235C5.23463 5.41773 5.60662 5.20057 6.01052 5.07707C7.20304 4.71243 8.67528 5.6589 11.6198 7.55186C14.327 9.29233 15.6807 10.1626 15.9351 11.3742C16.0216 11.7865 16.0216 12.2135 15.9351 12.6258Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 5V19",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],zu=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],qu=[["path",{d:"M21 14C21 15.4001 21 16.1002 20.7275 16.635C20.4878 17.1054 20.1054 17.4878 19.635 17.7275C19.1002 18 18.4001 18 17 18H7C5.59987 18 4.8998 18 4.36502 17.7275C3.89462 17.4878 3.51217 17.1054 3.27248 16.635C3 16.1002 3 15.4001 3 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 14H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 10H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 6H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Ku=[["path",{d:"M16.3884 3L17.3913 3.97574C17.8393 4.41165 18.0633 4.62961 17.9844 4.81481C17.9056 5 17.5888 5 16.9552 5H9.19422C5.22096 5 2 8.13401 2 12C2 13.4872 2.47668 14.8662 3.2895 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.61156 21L6.60875 20.0243C6.16074 19.5883 5.93673 19.3704 6.01557 19.1852C6.09441 19 6.4112 19 7.04478 19H14.8058C18.779 19 22 15.866 22 12C22 10.5128 21.5233 9.13383 20.7105 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Zu=[["path",{d:"M6.21875 11.618L3.31189 11.2378C2.71644 11.1606 2.31883 10.5841 2.58348 10.0458C3.42523 8.33365 5.6195 6.35437 9.73988 6.68079M6.21875 11.618C7.27445 9.85426 8.57175 8.00435 9.73988 6.68079M6.21875 11.618L11.882 17.2812M9.73988 6.68079C13.4105 2.58986 17.1745 1.728 19.5937 2.06685C20.5508 2.2009 21.2991 2.94917 21.4332 3.90626C21.772 6.32551 20.9101 10.0895 16.8192 13.7601M11.882 17.2812L12.2622 20.1881C12.3394 20.7836 12.9159 21.1812 13.4542 20.9165C15.1664 20.0748 17.1456 17.8805 16.8192 13.7601M11.882 17.2812C13.6457 16.2255 15.4956 14.9282 16.8192 13.7601",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5 8C17.5 6.89543 16.6046 6 15.5 6C14.3954 6 13.5 6.89543 13.5 8C13.5 9.10457 14.3954 10 15.5 10C16.6046 10 17.5 9.10457 17.5 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 22L8 18M4 17L5.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],el=[["circle",{cx:"18",cy:"5",r:"3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"6",cy:"19",r:"3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 5H8.5C6.567 5 5 6.567 5 8.5C5 10.433 6.567 12 8.5 12H15.5C17.433 12 19 13.567 19 15.5C19 17.433 17.433 19 15.5 19H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Xu=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ju=[["path",{d:"M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.4697 21.5303C20.7626 21.8232 21.2374 21.8232 21.5303 21.5303C21.8232 21.2374 21.8232 20.7626 21.5303 20.4697L21 21L20.4697 21.5303ZM15 15L14.4697 15.5303L20.4697 21.5303L21 21L21.5303 20.4697L15.5303 14.4697L15 15Z",fill:"currentColor",key:"1"}]],Qu=[["path",{d:"M9.49811 15L16.9981 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00634 7.67888L15.327 4.21881C18.3688 2.78111 19.8897 2.06226 20.8598 2.78341C21.8299 3.50455 21.5527 5.14799 20.9984 8.43486L20.0435 14.0968C19.6811 16.246 19.4998 17.3205 18.6989 17.7891C17.8979 18.2577 16.8574 17.8978 14.7765 17.178L8.41077 14.9762C4.51917 13.6301 2.57337 12.9571 2.50019 11.6365C2.427 10.3159 4.28678 9.43692 8.00634 7.67888Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.49811 15.5V17.7274C9.49811 20.101 9.49811 21.2878 10.2083 21.4771C10.9185 21.6663 11.6664 20.6789 13.1622 18.7039L13.9981 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],tl=[["path",{d:"M19 4H5C4.06812 4 3.60218 4 3.23463 4.15224C2.74458 4.35523 2.35523 4.74458 2.15224 5.23463C2 5.60218 2 6.06812 2 7C2 7.93188 2 8.39782 2.15224 8.76537C2.35523 9.25542 2.74458 9.64477 3.23463 9.84776C3.60218 10 4.06812 10 5 10H19C19.9319 10 20.3978 10 20.7654 9.84776C21.2554 9.64477 21.6448 9.25542 21.8478 8.76537C22 8.39782 22 7.93188 22 7C22 6.06812 22 5.60218 21.8478 5.23463C21.6448 4.74458 21.2554 4.35523 20.7654 4.15224C20.3978 4 19.9319 4 19 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 14H5C4.06812 14 3.60218 14 3.23463 14.1522C2.74458 14.3552 2.35523 14.7446 2.15224 15.2346C2 15.6022 2 16.0681 2 17C2 17.9319 2 18.3978 2.15224 18.7654C2.35523 19.2554 2.74458 19.6448 3.23463 19.8478C3.60218 20 4.06812 20 5 20H19C19.9319 20 20.3978 20 20.7654 19.8478C21.2554 19.6448 21.6448 19.2554 21.8478 18.7654C22 18.3978 22 17.9319 22 17C22 16.0681 22 15.6022 21.8478 15.2346C21.6448 14.7446 21.2554 14.3552 20.7654 14.1522C20.3978 14 19.9319 14 19 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6.125 7H6M6.25 7C6.25 7.13807 6.13807 7.25 6 7.25C5.86193 7.25 5.75 7.13807 5.75 7C5.75 6.86193 5.86193 6.75 6 6.75C6.13807 6.75 6.25 6.86193 6.25 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M10.125 7H10M10.25 7C10.25 7.13807 10.1381 7.25 10 7.25C9.86193 7.25 9.75 7.13807 9.75 7C9.75 6.86193 9.86193 6.75 10 6.75C10.1381 6.75 10.25 6.86193 10.25 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6.125 17H6M6.25 17C6.25 17.1381 6.13807 17.25 6 17.25C5.86193 17.25 5.75 17.1381 5.75 17C5.75 16.8619 5.86193 16.75 6 16.75C6.13807 16.75 6.25 16.8619 6.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],nl=[["path",{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.011 14.0965C21.5329 13.9558 21.7939 13.8854 21.8969 13.7508C22 13.6163 22 13.3998 22 12.9669V11.0332C22 10.6003 22 10.3838 21.8969 10.2493C21.7938 10.1147 21.5329 10.0443 21.011 9.90358C19.0606 9.37759 17.8399 7.33851 18.3433 5.40087C18.4817 4.86799 18.5509 4.60156 18.4848 4.44529C18.4187 4.28902 18.2291 4.18134 17.8497 3.96596L16.125 2.98673C15.7528 2.77539 15.5667 2.66972 15.3997 2.69222C15.2326 2.71472 15.0442 2.90273 14.6672 3.27873C13.208 4.73448 10.7936 4.73442 9.33434 3.27864C8.95743 2.90263 8.76898 2.71463 8.60193 2.69212C8.43489 2.66962 8.24877 2.77529 7.87653 2.98663L6.15184 3.96587C5.77253 4.18123 5.58287 4.28891 5.51678 4.44515C5.45068 4.6014 5.51987 4.86787 5.65825 5.4008C6.16137 7.3385 4.93972 9.37763 2.98902 9.9036C2.46712 10.0443 2.20617 10.1147 2.10308 10.2492C2 10.3838 2 10.6003 2 11.0332V12.9669C2 13.3998 2 13.6163 2.10308 13.7508C2.20615 13.8854 2.46711 13.9558 2.98902 14.0965C4.9394 14.6225 6.16008 16.6616 5.65672 18.5992C5.51829 19.1321 5.44907 19.3985 5.51516 19.5548C5.58126 19.7111 5.77092 19.8188 6.15025 20.0341L7.87495 21.0134C8.24721 21.2247 8.43334 21.3304 8.6004 21.3079C8.76746 21.2854 8.95588 21.0973 9.33271 20.7213C10.7927 19.2644 13.2088 19.2643 14.6689 20.7212C15.0457 21.0973 15.2341 21.2853 15.4012 21.3078C15.5682 21.3303 15.7544 21.2246 16.1266 21.0133L17.8513 20.034C18.2307 19.8187 18.4204 19.711 18.4864 19.5547C18.5525 19.3984 18.4833 19.132 18.3448 18.5991C17.8412 16.6616 19.0609 14.6226 21.011 14.0965Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],Yu=[["path",{d:"M18.7088 3.49534C16.8165 2.55382 14.5009 2 12 2C9.4991 2 7.1835 2.55382 5.29116 3.49534C4.36318 3.95706 3.89919 4.18792 3.4496 4.91378C3 5.63965 3 6.34248 3 7.74814V11.2371C3 16.9205 7.54236 20.0804 10.173 21.4338C10.9067 21.8113 11.2735 22 12 22C12.7265 22 13.0933 21.8113 13.8269 21.4338C16.4576 20.0804 21 16.9205 21 11.2371L21 7.74814C21 6.34249 21 5.63966 20.5504 4.91378C20.1008 4.18791 19.6368 3.95706 18.7088 3.49534Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],il=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]],eh=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],th=[["path",{d:"M8 2H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.2187 13.0044L15.9921 13.6151C15.5219 14.65 14.1115 15.7439 11.7609 14.3182C10.2471 13.4001 8.93663 12.6631 7.9997 13.16L7.21891 13.5412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5323 2V8.56602C14.5323 9.27829 14.5323 9.63442 14.6304 9.97222C14.7285 10.31 14.9197 10.612 15.3021 11.216L17.2861 14.35C19.4275 17.7326 20.4982 19.4238 19.7751 20.7119C19.0519 22 17.0317 22 12.9914 22H11.0086C6.96825 22 4.94807 22 4.22495 20.7119C3.50182 19.4238 4.57251 17.7326 6.71389 14.35L8.69792 11.216C9.08029 10.612 9.27148 10.31 9.36961 9.97222C9.46773 9.63442 9.46773 9.27829 9.46773 8.56602V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.125 19H15M15.25 19C15.25 19.1381 15.1381 19.25 15 19.25C14.8619 19.25 14.75 19.1381 14.75 19C14.75 18.8619 14.8619 18.75 15 18.75C15.1381 18.75 15.25 18.8619 15.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],Ct=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],nh=[["path",{d:"M2.46433 9.34375C2.21579 9.34375 1.98899 9.14229 2.00041 8.87895C2.06733 7.33687 2.25481 6.33298 2.78008 5.53884C3.08228 5.08196 3.45765 4.68459 3.88923 4.36468C5.05575 3.5 6.70139 3.5 9.99266 3.5H14.0074C17.2986 3.5 18.9443 3.5 20.1108 4.36468C20.5424 4.68459 20.9177 5.08196 21.2199 5.53884C21.7452 6.33289 21.9327 7.33665 21.9996 8.87843C22.011 9.14208 21.7839 9.34375 21.5351 9.34375C20.1493 9.34375 19.0259 10.533 19.0259 12C19.0259 13.467 20.1493 14.6562 21.5351 14.6562C21.7839 14.6562 22.011 14.8579 21.9996 15.1216C21.9327 16.6634 21.7452 17.6671 21.2199 18.4612C20.9177 18.918 20.5424 19.3154 20.1108 19.6353C18.9443 20.5 17.2986 20.5 14.0074 20.5H9.99266C6.70139 20.5 5.05575 20.5 3.88923 19.6353C3.45765 19.3154 3.08228 18.918 2.78008 18.4612C2.25481 17.667 2.06733 16.6631 2.00041 15.1211C1.98899 14.8577 2.21579 14.6562 2.46433 14.6562C3.85012 14.6562 4.97352 13.467 4.97352 12C4.97352 10.533 3.85012 9.34375 2.46433 9.34375Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 3.5L9 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ih=[["path",{d:"M2.5 20.4998C2.78417 16.8055 5.8 13.719 9.50082 13.5376C9.81335 13.5222 10.1446 13.5094 10.5 13.4996L11.495 13.566C11.8368 13.5888 12.1723 13.6342 12.5 13.7008",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"10.5",cy:"6.49963",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5141 21.4754H17.5016M15.5 15.9996C15.5 14.8951 16.3954 13.9996 17.5 13.9996C18.6046 13.9996 19.5 14.8951 19.5 15.9996C19.5 16.7567 19.0793 17.4156 18.459 17.7552C17.9745 18.0204 17.5 18.4473 17.5 18.9996M17.5266 21.4754C17.5266 21.4892 17.5154 21.5004 17.5016 21.5004C17.4878 21.5004 17.4766 21.4892 17.4766 21.4754C17.4766 21.4616 17.4878 21.4504 17.5016 21.4504C17.5154 21.4504 17.5266 21.4616 17.5266 21.4754Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];function Tn(e){const t=A.useRef(e);return A.useInsertionEffect(()=>void(t.current=e)),A.useCallback((...n)=>t.current(...n),[])}const rh=A.createContext(void 0);function sh(){return A.useContext(rh)}const oh={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},ah={display:"contents"};function Us(){return null}const rl="diffs-container";(()=>{try{return!1}catch{return!1}})();const lh=/(?=^From [a-f0-9]+ .+$)/m,sl=/(?=^diff --git)/gm,dh=/(?<=\n)/,ch=/^(---|\+\+\+)\s+([^\t\r\n]+)/,uh=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,ol="header-prefix",al="header-filename-suffix",ll="header-metadata",ks="header-custom",De={dark:"pierre-dark",light:"pierre-light"},hh="data-theme-css",fh="data-unsafe-css",ph="data-diffs-scrollbar-measure",dl="--diffs-scrollbar-gutter-measured",mh=1e5,gh={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},bh=Object.freeze({fromStart:0,fromEnd:0}),Gs={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},vh={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function wt(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function yh({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function _e(e,t){return e-(t===0?0:1)}function pe(e,t){return _e(e,t)+t}function kh(e,t){const n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:xh(n,e.startContentIndex)}}function xh(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){const r=e.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function _h({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderFilenameSuffix:r,renderHeaderMetadata:s,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:d,lineAnnotations:c,getHoveredLine:u,getInstance:h,getAnnotationSlotName:f=wt}){const p=n?.(e),m=i?.(e),v=r?.(e),k=s?.(e);return l.jsxs(l.Fragment,{children:[p!=null?l.jsx("div",{slot:ks,children:p}):l.jsxs(l.Fragment,{children:[m!=null&&l.jsx("div",{slot:"header-prefix",children:m}),v!=null&&l.jsx("div",{slot:"header-filename-suffix",children:v}),k!=null&&l.jsx("div",{slot:"header-metadata",children:k})]}),o!=null&&c?.map((b,y)=>l.jsx("div",{slot:f(b),children:o(b)},y)),t!=null&&d!=null&&h!=null&&t.map(b=>{if(b==null)return;const y=Ch(b,e);return l.jsx("div",{slot:y,style:ah,children:d(b,h)},y)}),a!=null&&l.jsx("div",{slot:"gutter-utility-slot",style:oh,children:a(u)})]})}function Ch(e,t){const n=kh(e,t);return n!=null?yh({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex}):void 0}const hn=new Map,Zi=new Map,wh=new Map,Tr=new Set;function jr(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!Tr.has(t))return!1;return!0}function xs(e=De){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}const Nr=new Set;function fn(e){const t=[],n=new Set;for(const h of Lh(e.themes)){const f=cl(h)?h.getThemes():[h];for(const p of f){if(n.has(p.name))throw new Error(`Theme collection already contains theme "${p.name}"`);n.add(p.name),t.push(p)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(h=>h.colorScheme==="light")),s=Object.freeze(i.filter(h=>h.colorScheme==="dark")),o=new Map(i.map(h=>[h.name,h])),a=Object.freeze(i.map(h=>h.name)),d=Object.freeze(r.map(h=>h.name)),c=Object.freeze(s.map(h=>h.name));function u(h){if(h==null)return i;const{colorScheme:f,collection:p}=h;return p==null?f==="light"?r:f==="dark"?s:i:i.filter(m=>m.collection!==p?!1:f==null||m.colorScheme===f)}return{getTheme(h){return o.get(h)},getThemes(h){return u(h)},getThemeNames(h){return h?.collection==null?h?.colorScheme==="light"?d:h?.colorScheme==="dark"?c:a:u(h).map(f=>f.name)},hasTheme(h){return o.has(h)},orderBy(h){return fn({themes:i.map((f,p)=>({descriptor:f,index:p})).sort((f,p)=>{const m=h(f.descriptor,p.descriptor);return m!==0?m:f.index-p.index}).map(f=>f.descriptor)})},pick(h){const f=[],p=new Set;for(const m of h){if(p.has(m))throw new Error(`Theme collection pick already includes theme "${m}"`);p.add(m);const v=o.get(m);if(v==null)throw new Error(`Theme collection does not contain theme "${m}"`);f.push(v)}return fn({themes:f})},registerInto(h){for(const f of i)h.registerThemeIfAbsent(f.name,f.load)}}}function Lh(e){return Sh(e)?[e]:e}function Sh(e){return cl(e)||Eh(e)}function Eh(e){return typeof e.name=="string"&&typeof e.load=="function"}function cl(e){return typeof e.getThemes=="function"}function ul(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var Rh=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Ah=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},Ih=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function Th(){const e=new Map,t=new Map,n=new Map;let i=0;function r(b,y){if(e.has(b))throw new Rh(b);e.set(b,y)}function s(b,y){return e.has(b)?!1:(e.set(b,y),!0)}function o(b){return e.has(b)}function a(b){const y=t.get(b);if(y!==void 0)return Promise.resolve(y);const x=n.get(b);if(x!==void 0)return x;const C=e.get(b);if(C===void 0)return Promise.reject(new Ah(b));const _=i,w=C().then(L=>{const I=ul(L);return _===i&&t.set(b,I),n.get(b)===w&&n.delete(b),I}).catch(L=>{throw n.get(b)===w&&n.delete(b),L});return n.set(b,w),w}function d(b){return Promise.all(b.map(y=>a(y)))}function c(b,y){t.set(b,y)}function u(b){for(const[y,x]of b)c(y,x)}function h(b){return t.get(b)}function f(b){const y=[];for(const x of b){const C=t.get(x);if(C===void 0)throw new Ih(x);y.push(C)}return y}function p(b){return t.has(b)}function m(b){for(const y of b)if(!t.has(y))return!1;return!0}function v(b){const y=t.get(b);return y!==void 0?y:a(b)}function k(){i++,t.clear(),n.clear()}return{clearResolvedThemes:k,getResolvedOrResolveTheme:v,getResolvedTheme:h,getResolvedThemes:f,hasRegisteredTheme:o,hasResolvedTheme:p,hasResolvedThemes:m,registerTheme:r,registerThemeIfAbsent:s,resolveTheme:a,resolveThemes:d,seedResolvedTheme:c,seedResolvedThemes:u}}const ut=Th();function zs(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=ut.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,ut.getResolvedTheme(n)==null&&ut.seedResolvedTheme(n,i);Nr.has(n)||(Nr.add(n),t.loadThemeSync(i))}}function qs(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(Tr.has(n.name))continue;let i=hn.get(n.name);i==null&&(i=n,hn.set(n.name,i));const r=i.data.find(s=>s.name===i.name||s.aliases?.includes(i.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${i.name}" as its name or an alias.`);t.loadLanguageSync(i.data);try{t.getLanguage(i.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${i.name}". Load the alias first or give the grammar a unique name.`)}Tr.add(i.name)}}function hl(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var Pr=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,Nh=Object.getOwnPropertyNames,Ph=Object.prototype.hasOwnProperty,Dh=(e,t)=>{let n={};for(var i in e)Pr(n,i,{get:e[i],enumerable:!0});return Pr(n,Symbol.toStringTag,{value:"Module"}),n},Mh=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=Nh(t),s=0,o=r.length,a;s<o;s++)a=r[s],!Ph.call(e,a)&&a!==n&&Pr(e,a,{get:(d=>t[d]).bind(null,a),enumerable:!(i=jh(t,a))||i.enumerable});return e},Oh=(e,t,n)=>(Mh(e,t,"default"),n);const fl=[{id:"abap",name:"ABAP",import:(()=>g(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>g(()=>import("./actionscript-3-B3316cI-.js"),[]))},{id:"ada",name:"Ada",import:(()=>g(()=>import("./ada-BIOnG6TC.js"),[]))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>g(()=>import("./ahk-BrbAagtO.js"),[]))},{id:"ahk2",name:"AutoHotkey2",import:(()=>g(()=>import("./ahk2-8Zs4aa1G.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>g(()=>import("./angular-html-D_SYSyRt.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>g(()=>import("./angular-ts-DGq0tZX5.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>g(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>g(()=>import("./apex-DhZFqWV2.js"),[]))},{id:"apl",name:"APL",import:(()=>g(()=>import("./apl-ChzvTHjC.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>g(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>g(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>g(()=>import("./asciidoc-CSVQ5wI8.js"),[]))},{id:"asm",name:"Assembly",import:(()=>g(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>g(()=>import("./astro-DTjqU0_L.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>g(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>g(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>g(()=>import("./bat-CickPsom.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>g(()=>import("./beancount-BgSHGh8x.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>g(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>g(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>g(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>g(()=>import("./bird2-Bx8U0n9b.js"),[]))},{id:"blade",name:"Blade",import:(()=>g(()=>import("./blade-k33SngOZ.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>g(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>g(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>g(()=>import("./c3-Dp5svz6Z.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>g(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>g(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>g(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22])))},{id:"clarity",name:"Clarity",import:(()=>g(()=>import("./clarity-Dn5IMItf.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>g(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>g(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>g(()=>import("./cobol-BBKr1ja6.js"),__vite__mapDeps([23,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>g(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>g(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>g(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>g(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Rocq",import:(()=>g(()=>import("./coq-BqXF5kFF.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>g(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22])))},{id:"crystal",name:"Crystal",import:(()=>g(()=>import("./crystal-LUwhHfY5.js"),__vite__mapDeps([28,1,2,3,16,22,29])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>g(()=>import("./csharp-B_TYUkTI.js"),[]))},{id:"css",name:"CSS",import:(()=>g(()=>import("./css-Z72CF80r.js"),[]))},{id:"csv",name:"CSV",import:(()=>g(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>g(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>g(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>g(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>g(()=>import("./dart-CtKP3W-j.js"),[]))},{id:"dax",name:"DAX",import:(()=>g(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>g(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>g(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>g(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>g(()=>import("./dotenv-De0Btta0.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>g(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>g(()=>import("./edge-CJaD-t2L.js"),__vite__mapDeps([30,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>g(()=>import("./elixir-DkJLSxtU.js"),__vite__mapDeps([31,1,2,3])))},{id:"elm",name:"Elm",import:(()=>g(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>g(()=>import("./emacs-lisp-DaIrSCgJ.js"),[]))},{id:"erb",name:"ERB",import:(()=>g(()=>import("./erb-CSMaCouu.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>g(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41])))},{id:"fennel",name:"Fennel",import:(()=>g(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>g(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>g(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>g(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([42,43])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>g(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>g(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>g(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>g(()=>import("./gdscript-DqcFQ5yU.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>g(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>g(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>g(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>g(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>g(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29])))},{id:"gleam",name:"Gleam",import:(()=>g(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>g(()=>import("./glimmer-js-Drrc9bTt.js"),__vite__mapDeps([51,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>g(()=>import("./glimmer-ts-zeybXsvi.js"),__vite__mapDeps([52,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>g(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22])))},{id:"gn",name:"GN",import:(()=>g(()=>import("./gn-8iBmfbXw.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>g(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>g(()=>import("./go-C27-OAKa.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>g(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13])))},{id:"groovy",name:"Groovy",import:(()=>g(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>g(()=>import("./hack-Ck6-gGSS.js"),__vite__mapDeps([53,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>g(()=>import("./haml-GN_XdMnF.js"),__vite__mapDeps([35,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>g(()=>import("./handlebars-DPT5vKgj.js"),__vite__mapDeps([54,1,2,3,39])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>g(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>g(()=>import("./haxe-CfZj7gIn.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>g(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>g(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>g(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>g(()=>import("./html-BlS82ilI.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>g(()=>import("./html-derivative-DZhk3IEZ.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>g(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13])))},{id:"hurl",name:"Hurl",import:(()=>g(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57])))},{id:"hxml",name:"HXML",import:(()=>g(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59])))},{id:"hy",name:"Hy",import:(()=>g(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>g(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>g(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>g(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>g(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>g(()=>import("./jinja-DFQZVq3b.js"),__vite__mapDeps([60,1,2,3])))},{id:"jison",name:"Jison",import:(()=>g(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2])))},{id:"json",name:"JSON",import:(()=>g(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>g(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>g(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>g(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>g(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>g(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>g(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>g(()=>import("./julia-Cu79e8SL.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16])))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>g(()=>import("./just-CMxyWJJc.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39])))},{id:"kdl",name:"KDL",import:(()=>g(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>g(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>g(()=>import("./kusto-wEQ09or8.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>g(()=>import("./latex-DJVikpzR.js"),__vite__mapDeps([66,67,63])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>g(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>g(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>g(()=>import("./liquid-B-duXHXw.js"),__vite__mapDeps([68,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>g(()=>import("./llvm-BZoOZj88.js"),[]))},{id:"log",name:"Log file",import:(()=>g(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>g(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>g(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22])))},{id:"luau",name:"Luau",import:(()=>g(()=>import("./luau-nOZpfvQi.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>g(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>g(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>g(()=>import("./marko-BYgDmDgU.js"),__vite__mapDeps([69,3,70,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>g(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>g(()=>import("./mdc-DF4WjDMn.js"),__vite__mapDeps([71,41,39,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>g(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>g(()=>import("./mermaid-CQcHuHx7.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>g(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>g(()=>import("./mojo-DJz3ZmWd.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>g(()=>import("./moonbit-Bag4Rp_g.js"),[]))},{id:"move",name:"Move",import:(()=>g(()=>import("./move-el3G9tDJ.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>g(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>g(()=>import("./nextflow-BCxp2Aob.js"),__vite__mapDeps([72,73])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>g(()=>import("./nextflow-groovy-CedDknKX.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>g(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22])))},{id:"nim",name:"Nim",import:(()=>g(()=>import("./nim-nV83PyhX.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41])))},{id:"nix",name:"Nix",import:(()=>g(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nsis",name:"NSIS",import:(()=>g(()=>import("./nsis-BlV79W_Q.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>g(()=>import("./nushell-BXD5iret.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>g(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>g(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>g(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>g(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>g(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"org",name:"Org Markup",import:(()=>g(()=>import("./org-6a7ccXN_.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67])))},{id:"pascal",name:"Pascal",import:(()=>g(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>g(()=>import("./perl-5klg-GXX.js"),__vite__mapDeps([65,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>g(()=>import("./php-DoruYMF0.js"),__vite__mapDeps([79,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>g(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>g(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>g(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>g(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>g(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>g(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>g(()=>import("./powershell-Dd0kTxKP.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>g(()=>import("./prisma-Vru482bI.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>g(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>g(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>g(()=>import("./pug-BtYPkAgq.js"),__vite__mapDeps([94,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>g(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>g(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>g(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>g(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2])))},{id:"qmldir",name:"QML Directory",import:(()=>g(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>g(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>g(()=>import("./r-Cf5RLm7j.js"),[]))},{id:"racket",name:"Racket",import:(()=>g(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>g(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>g(()=>import("./razor-CyjPwjZj.js"),__vite__mapDeps([96,1,2,3,89])))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>g(()=>import("./rbs-CpoqiR4B.js"),[]))},{id:"reg",name:"Windows Registry Script",import:(()=>g(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>g(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>g(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>g(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>g(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>g(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>g(()=>import("./rst-CVOjT0e7.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>g(()=>import("./ruby-C8rp0wew.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>g(()=>import("./rust-DPvrY3IQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>g(()=>import("./sas-BGn39htG.js"),__vite__mapDeps([99,16])))},{id:"sass",name:"Sass",import:(()=>g(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>g(()=>import("./scala-CqE71os6.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>g(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>g(()=>import("./scss-Cw6XMfVs.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>g(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>g(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>g(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>g(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29])))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>g(()=>import("./smalltalk-BOQMe2GC.js"),[]))},{id:"smithy",name:"Smithy",import:(()=>g(()=>import("./smithy-cds9vsN8.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>g(()=>import("./solidity-DijEV5ha.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>g(()=>import("./soy-zscZBeg6.js"),__vite__mapDeps([103,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>g(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>g(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>g(()=>import("./sql-DkvoVjww.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>g(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>g(()=>import("./stata-DACIj5bg.js"),__vite__mapDeps([106,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>g(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>g(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2])))},{id:"svelte",name:"Svelte",import:(()=>g(()=>import("./svelte-D84K1R2Q.js"),__vite__mapDeps([108,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>g(()=>import("./swift-C2oV4EkX.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>g(()=>import("./system-verilog-0hqHdDBg.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>g(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>g(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>g(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>g(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>g(()=>import("./templ-Vpw5XpSW.js"),__vite__mapDeps([109,84,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>g(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>g(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63])))},{id:"toml",name:"TOML",import:(()=>g(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>g(()=>import("./ts-tags-Ls60c9xG.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>g(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>g(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>g(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>g(()=>import("./twig-D9-LOF2p.js"),__vite__mapDeps([111,2,3,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>g(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>g(()=>import("./typespec-ClX509-Q.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>g(()=>import("./typst-DamkJZ1Q.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80])))},{id:"v",name:"V",import:(()=>g(()=>import("./v-BGw2Nkan.js"),[]))},{id:"vala",name:"Vala",import:(()=>g(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",import:(()=>g(()=>import("./vb-Cu-pLBUe.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>g(()=>import("./verilog-nZwndyjY.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>g(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>g(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>g(()=>import("./vue-DSqPwMUe.js"),__vite__mapDeps([121,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>g(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>g(()=>import("./vue-vine-C0RcJ6UU.js"),__vite__mapDeps([123,3,5,70,124,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>g(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>g(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>g(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>g(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>g(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>g(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>g(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>g(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>g(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>g(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>g(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>g(()=>import("./zig-VOosw3JB.js"),[]))}],Fh=Object.fromEntries(fl.map(e=>[e.id,e.import])),Hh=Object.fromEntries(fl.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Dr={...Fh,...Hh},$h=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>g(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>g(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>g(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>g(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>g(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>g(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>g(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>g(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>g(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>g(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>g(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>g(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>g(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>g(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>g(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>g(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>g(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>g(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>g(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>g(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>g(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>g(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>g(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>g(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>g(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>g(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>g(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>g(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>g(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>g(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>g(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>g(()=>import("./kanagawa-lotus-C3DzagqV.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>g(()=>import("./kanagawa-wave-DFGoQZhC.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>g(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>g(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>g(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>g(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>g(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>g(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>g(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>g(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>g(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>g(()=>import("./monokai-CR4piiQ-.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>g(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>g(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>g(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>g(()=>import("./one-dark-pro-CxGP3dtY.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>g(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>g(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>g(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>g(()=>import("./red-DMbB5_pp.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>g(()=>import("./rose-pine-5qJOZa0Y.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>g(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>g(()=>import("./rose-pine-moon-C9pEdX9L.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>g(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>g(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>g(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>g(()=>import("./solarized-dark-UcubFVte.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>g(()=>import("./solarized-light-DCG28T6R.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>g(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>g(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>g(()=>import("./vesper-DRje8inN.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>g(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>g(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>g(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Vh=Object.fromEntries($h.map(e=>[e.id,e.import]));var _s=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Bh(){return 2147483648}function Wh(){return typeof performance<"u"?performance.now():Date.now()}const Uh=(e,t)=>e+(t-e%t)%t;async function Gh(e){let t,n;const i={};function r(p){n=p,i.HEAPU8=new Uint8Array(p),i.HEAPU32=new Uint32Array(p)}function s(p,m,v){i.HEAPU8.copyWithin(p,m,m+v)}function o(p){try{return t.grow(p-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function a(p){const m=i.HEAPU8.length;p=p>>>0;const v=Bh();if(p>v)return!1;for(let k=1;k<=4;k*=2){let b=m*(1+.2/k);b=Math.min(b,p+100663296);const y=Math.min(v,Uh(Math.max(p,b),65536));if(o(y))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,m,v=1024){const k=m+v;let b=m;for(;p[b]&&!(b>=k);)++b;if(b-m>16&&p.buffer&&d)return d.decode(p.subarray(m,b));let y="";for(;m<b;){let x=p[m++];if(!(x&128)){y+=String.fromCharCode(x);continue}const C=p[m++]&63;if((x&224)===192){y+=String.fromCharCode((x&31)<<6|C);continue}const _=p[m++]&63;if((x&240)===224?x=(x&15)<<12|C<<6|_:x=(x&7)<<18|C<<12|_<<6|p[m++]&63,x<65536)y+=String.fromCharCode(x);else{const w=x-65536;y+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return y}function u(p,m){return p?c(i.HEAPU8,p,m):""}const h={emscripten_get_now:Wh,emscripten_memcpy_big:s,emscripten_resize_heap:a,fd_write:()=>0};async function f(){const m=await e({env:h,wasi_snapshot_preview1:h});t=m.memory,r(t.buffer),Object.assign(i,m),i.UTF8ToString=u}return await f(),i}var zh=Object.defineProperty,qh=(e,t,n)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t,n)=>qh(e,typeof t!="symbol"?t+"":t,n);let se=null;function Kh(e){throw new _s(e.UTF8ToString(e.getLastOnigError()))}class Ni{constructor(t){ne(this,"utf16Length"),ne(this,"utf8Length"),ne(this,"utf16Value"),ne(this,"utf8Value"),ne(this,"utf16OffsetToUtf8"),ne(this,"utf8OffsetToUtf16");const n=t.length,i=Ni._utf8ByteLength(t),r=i!==n,s=r?new Uint32Array(n+1):null;r&&(s[n]=i);const o=r?new Uint32Array(i+1):null;r&&(o[i]=n);const a=new Uint8Array(i);let d=0;for(let c=0;c<n;c++){const u=t.charCodeAt(c);let h=u,f=!1;if(u>=55296&&u<=56319&&c+1<n){const p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(h=(u-55296<<10)+65536|p-56320,f=!0)}r&&(s[c]=d,f&&(s[c+1]=d),h<=127?o[d+0]=c:h<=2047?(o[d+0]=c,o[d+1]=c):h<=65535?(o[d+0]=c,o[d+1]=c,o[d+2]=c):(o[d+0]=c,o[d+1]=c,o[d+2]=c,o[d+3]=c)),h<=127?a[d++]=h:h<=2047?(a[d++]=192|(h&1984)>>>6,a[d++]=128|(h&63)>>>0):h<=65535?(a[d++]=224|(h&61440)>>>12,a[d++]=128|(h&4032)>>>6,a[d++]=128|(h&63)>>>0):(a[d++]=240|(h&1835008)>>>18,a[d++]=128|(h&258048)>>>12,a[d++]=128|(h&4032)>>>6,a[d++]=128|(h&63)>>>0),f&&c++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(t){let n=0;for(let i=0,r=t.length;i<r;i++){const s=t.charCodeAt(i);let o=s,a=!1;if(s>=55296&&s<=56319&&i+1<r){const d=t.charCodeAt(i+1);d>=56320&&d<=57343&&(o=(s-55296<<10)+65536|d-56320,a=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,a&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Pi=class Te{constructor(t){if(ne(this,"id",++Te.LAST_ID),ne(this,"_onigBinding"),ne(this,"content"),ne(this,"utf16Length"),ne(this,"utf8Length"),ne(this,"utf16OffsetToUtf8"),ne(this,"utf8OffsetToUtf16"),ne(this,"ptr"),!se)throw new _s("Must invoke loadWasm first.");this._onigBinding=se,this.content=t;const n=new Ni(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Te._sharedPtrInUse?(Te._sharedPtr||(Te._sharedPtr=se.omalloc(1e4)),Te._sharedPtrInUse=!0,se.HEAPU8.set(n.utf8Value,Te._sharedPtr),this.ptr=Te._sharedPtr):this.ptr=n.createString(se)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Te._sharedPtr?Te._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ne(Pi,"LAST_ID",0);ne(Pi,"_sharedPtr",0);ne(Pi,"_sharedPtrInUse",!1);let pl=Pi;class Zh{constructor(t){if(ne(this,"_onigBinding"),ne(this,"_ptr"),!se)throw new _s("Must invoke loadWasm first.");const n=[],i=[];for(let a=0,d=t.length;a<d;a++){const c=new Ni(t[a]);n[a]=c.createString(se),i[a]=c.utf8Length}const r=se.omalloc(4*t.length);se.HEAPU32.set(n,r/4);const s=se.omalloc(4*t.length);se.HEAPU32.set(i,s/4);const o=se.createOnigScanner(r,s,t.length);for(let a=0,d=t.length;a<d;a++)se.ofree(n[a]);se.ofree(s),se.ofree(r),o===0&&Kh(se),this._onigBinding=se,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof t=="string"){t=new pl(t);const s=this._findNextMatchSync(t,n,!1,r);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,i,r){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(o===0)return null;const a=s.HEAPU32;let d=o/4;const c=a[d++],u=a[d++],h=[];for(let f=0;f<u;f++){const p=t.convertUtf8OffsetToUtf16(a[d++]),m=t.convertUtf8OffsetToUtf16(a[d++]);h[f]={start:p,end:m,length:m-p}}return{index:c,captureIndices:h}}}function Xh(e){return typeof e.instantiator=="function"}function Jh(e){return typeof e.default=="function"}function Qh(e){return typeof e.data<"u"}function Yh(e){return typeof Response<"u"&&e instanceof Response}function ef(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let jn;function ml(e){if(jn)return jn;async function t(){se=await Gh(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),Xh(i)?i=await i.instantiator(n):Jh(i)?i=await i.default(n):(Qh(i)&&(i=i.data),Yh(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await tf(i)(n):i=await nf(i)(n):ef(i)?i=await Xi(i)(n):i instanceof WebAssembly.Module?i=await Xi(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Xi(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return jn=t(),jn}function Xi(e){return t=>WebAssembly.instantiate(e,t)}function tf(e){return t=>WebAssembly.instantiateStreaming(e,t)}function nf(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let gl;function rf(e){gl=e}function sf(){return gl}async function bl(e){return e&&await ml(e),{createScanner(t){return new Zh(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new pl(t)}}}const of=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:bl,getDefaultWasmLoader:sf,loadWasm:ml,setDefaultWasmLoader:rf},Symbol.toStringTag,{value:"Module"}));var vl=Dh({});Oh(vl,of);var X=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function af(e){return Cs(e)}function Cs(e){return Array.isArray(e)?lf(e):e instanceof RegExp?e:typeof e=="object"?df(e):e}function lf(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=Cs(e[n]);return t}function df(e){let t={};for(let n in e)t[n]=Cs(e[n]);return t}function yl(e,...t){return t.forEach(n=>{for(let i in n)e[i]=n[i]}),e}function kl(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?kl(e.substring(0,e.length-1)):e.substr(~t+1)}var Ji=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Nn=class{static hasCaptures(e){return e===null?!1:(Ji.lastIndex=0,Ji.test(e))}static replaceCaptures(e,t,n){return e.replace(Ji,(i,r,s,o)=>{let a=n[parseInt(r||s,10)];if(a){let d=t.substring(a.start,a.end);for(;d[0]===".";)d=d.substring(1);switch(o){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return i})}};function xl(e,t){return e<t?-1:e>t?1:0}function _l(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let r=0;r<n;r++){let s=xl(e[r],t[r]);if(s!==0)return s}return 0}return n-i}function Ks(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Cl(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var wl=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},ci=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(hf(e),t)}static createFromParsedTheme(e,t){return pf(e,t)}_cachedMatchRoot=new wl(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,i=this._cachedMatchRoot.get(t).find(r=>cf(e.parent,r.parentScopes));return i?new Ll(i.fontStyle,i.foreground,i.background):null}},Qi=class ni{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const i of n)t=new ni(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new ni(n,t[i]);return n}push(t){return new ni(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push(i.scopeName),i=i.parent;return i===t?n.reverse():void 0}};function cf(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let i=t[n],r=!1;if(i===">"){if(n===t.length-1)return!1;i=t[++n],r=!0}for(;e&&!uf(e.scopeName,i);){if(r)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function uf(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Ll=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function hf(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let r=0,s=t.length;r<s;r++){let o=t[r];if(!o.settings)continue;let a;if(typeof o.scope=="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),a=h.split(",")}else Array.isArray(o.scope)?a=o.scope:a=[""];let d=-1;if(typeof o.settings.fontStyle=="string"){d=0;let h=o.settings.fontStyle.split(" ");for(let f=0,p=h.length;f<p;f++)switch(h[f]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let c=null;typeof o.settings.foreground=="string"&&Ks(o.settings.foreground)&&(c=o.settings.foreground);let u=null;typeof o.settings.background=="string"&&Ks(o.settings.background)&&(u=o.settings.background);for(let h=0,f=a.length;h<f;h++){let m=a[h].trim().split(" "),v=m[m.length-1],k=null;m.length>1&&(k=m.slice(0,m.length-1),k.reverse()),n[i++]=new ff(v,k,r,d,c,u)}}return n}var ff=class{constructor(e,t,n,i,r,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s}},ue=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(ue||{});function pf(e,t){e.sort((d,c)=>{let u=xl(d.scope,c.scope);return u!==0||(u=_l(d.parentScopes,c.parentScopes),u!==0)?u:d.index-c.index});let n=0,i="#000000",r="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(i=d.foreground),d.background!==null&&(r=d.background)}let s=new mf(t),o=new Ll(n,s.getId(i),s.getId(r)),a=new bf(new Mr(0,null,-1,0,0),[]);for(let d=0,c=e.length;d<c;d++){let u=e[d];a.insert(0,u.scope,u.parentScopes,u.fontStyle,s.getId(u.foreground),s.getId(u.background))}return new ci(s,o,a)}var mf=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},gf=Object.freeze([]),Mr=class Sl{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,i,r,s){this.scopeDepth=t,this.parentScopes=n||gf,this.fontStyle=i,this.foreground=r,this.background=s}clone(){return new Sl(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=t[i].clone();return n}acceptOverwrite(t,n,i,r){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),r!==0&&(this.background=r)}},bf=class Or{constructor(t,n=[],i={}){this._mainRule=t,this._children=i,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let i=0,r=0;for(;t.parentScopes[i]===">"&&i++,n.parentScopes[r]===">"&&r++,!(i>=t.parentScopes.length||r>=n.parentScopes.length);){const s=n.parentScopes[r].length-t.parentScopes[i].length;if(s!==0)return s;i++,r++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let i=t.indexOf("."),r,s;if(i===-1?(r=t,s=""):(r=t.substring(0,i),s=t.substring(i+1)),this._children.hasOwnProperty(r))return this._children[r].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Or._cmpBySpecificity),n}insert(t,n,i,r,s,o){if(n===""){this._doInsertHere(t,i,r,s,o);return}let a=n.indexOf("."),d,c;a===-1?(d=n,c=""):(d=n.substring(0,a),c=n.substring(a+1));let u;this._children.hasOwnProperty(d)?u=this._children[d]:(u=new Or(this._mainRule.clone(),Mr.cloneArr(this._rulesWithParentScopes)),this._children[d]=u),u.insert(t+1,c,i,r,s,o)}_doInsertHere(t,n,i,r,s){if(n===null){this._mainRule.acceptOverwrite(t,i,r,s);return}for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let d=this._rulesWithParentScopes[o];if(_l(d.parentScopes,n)===0){d.acceptOverwrite(t,i,r,s);return}}i===-1&&(i=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Mr(t,n,i,r,s))}},Et=class ve{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ve.getLanguageId(t),i=ve.getTokenType(t),r=ve.getFontStyle(t),s=ve.getForeground(t),o=ve.getBackground(t);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:s,background:o})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,i,r,s,o,a){let d=ve.getLanguageId(t),c=ve.getTokenType(t),u=ve.containsBalancedBrackets(t)?1:0,h=ve.getFontStyle(t),f=ve.getForeground(t),p=ve.getBackground(t);return n!==0&&(d=n),i!==8&&(c=i),r!==null&&(u=r?1:0),s!==-1&&(h=s),o!==0&&(f=o),a!==0&&(p=a),(d<<0|c<<8|u<<10|h<<11|f<<15|p<<24)>>>0}};function ui(e,t){const n=[],i=vf(e);let r=i.next();for(;r!==null;){let d=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let c=o();if(n.push({matcher:c,priority:d}),r!==",")break;r=i.next()}return n;function s(){if(r==="-"){r=i.next();const d=s();return c=>!!d&&!d(c)}if(r==="("){r=i.next();const d=a();return r===")"&&(r=i.next()),d}if(Zs(r)){const d=[];do d.push(r),r=i.next();while(Zs(r));return c=>t(d,c)}return null}function o(){const d=[];let c=s();for(;c;)d.push(c),c=s();return u=>d.every(h=>h(u))}function a(){const d=[];let c=o();for(;c&&(d.push(c),r==="|"||r===",");){do r=i.next();while(r==="|"||r===",");c=o()}return u=>d.some(h=>h(u))}}function Zs(e){return!!e&&!!e.match(/[\w\.:]+/)}function vf(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const i=n[0];return n=t.exec(e),i}}}function El(e){typeof e.dispose=="function"&&e.dispose()}var pn=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},yf=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},kf=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},xf=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new pn(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new kf;for(const n of e)_f(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof pn){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function _f(e,t,n,i){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof pn?ii({baseGrammar:s,selfGrammar:r},i):Fr(e.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);const o=n.injections(e.scopeName);if(o)for(const a of o)i.add(new pn(a))}function Fr(e,t,n){if(t.repository&&t.repository[e]){const i=t.repository[e];hi([i],t,n)}}function ii(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&hi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&hi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function hi(e,t,n){for(const i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const r=i.repository?yl({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&hi(i.patterns,{...t,repository:r},n);const s=i.include;if(!s)continue;const o=Rl(s);switch(o.kind){case 0:ii({...t,selfGrammar:t.baseGrammar},n);break;case 1:ii(t,n);break;case 2:Fr(o.ruleName,{...t,repository:r},n);break;case 3:case 4:const a=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const d={baseGrammar:t.baseGrammar,selfGrammar:a,repository:r};o.kind===4?Fr(o.ruleName,d,n):ii(d,n)}else o.kind===4?n.add(new yf(o.scopeName,o.ruleName)):n.add(new pn(o.scopeName));break}}}var Cf=class{kind=0},wf=class{kind=1},Lf=class{constructor(e){this.ruleName=e}kind=2},Sf=class{constructor(e){this.scopeName=e}kind=3},Ef=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Rl(e){if(e==="$base")return new Cf;if(e==="$self")return new wf;const t=e.indexOf("#");if(t===-1)return new Sf(e);if(t===0)return new Lf(e.substring(1));{const n=e.substring(0,t),i=e.substring(t+1);return new Ef(n,i)}}var Rf=/\\(\d+)/,Xs=/\\(\d+)/g,Af=-1,Al=-2;var Ln=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,i){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Nn.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Nn.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${kl(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Nn.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Nn.replaceCaptures(this._contentName,e,t)}},If=class extends Ln{retokenizeCapturedWithRuleId;constructor(e,t,n,i,r){super(e,t,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,i){throw new Error("Not supported!")}},Tf=class extends Ln{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,null),this._match=new mn(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new gn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Js=class extends Ln{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new gn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Hr=class extends Ln{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r,s,o,a,d,c){super(e,t,n,i),this._begin=new mn(r,this.id),this.beginCaptures=s,this._end=new mn(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=d||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new gn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},fi=class extends Ln{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,i,r,s,o,a,d){super(e,t,n,i),this._begin=new mn(r,this.id),this.beginCaptures=s,this.whileCaptures=a,this._while=new mn(o,Al),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new gn;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new gn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},Il=class ce{static createCaptureRule(t,n,i,r,s){return t.registerRule(o=>new If(n,o,i,r,s))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new Tf(t.$vscodeTextmateLocation,t.id,t.name,t.match,ce._compileCaptures(t.captures,n,i));if(typeof t.begin>"u"){t.repository&&(i=yl({},i,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new Js(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ce._compilePatterns(s,n,i))}return t.while?new fi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ce._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,ce._compileCaptures(t.whileCaptures||t.captures,n,i),ce._compilePatterns(t.patterns,n,i)):new Hr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ce._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,ce._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,ce._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let r=[];if(t){let s=0;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const a=parseInt(o,10);a>s&&(s=a)}for(let o=0;o<=s;o++)r[o]=null;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const a=parseInt(o,10);let d=0;t[o].patterns&&(d=ce.getCompiledRuleId(t[o],n,i)),r[a]=ce.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,d)}}return r}static _compilePatterns(t,n,i){let r=[];if(t)for(let s=0,o=t.length;s<o;s++){const a=t[s];let d=-1;if(a.include){const c=Rl(a.include);switch(c.kind){case 0:case 1:d=ce.getCompiledRuleId(i[a.include],n,i);break;case 2:let u=i[c.ruleName];u&&(d=ce.getCompiledRuleId(u,n,i));break;case 3:case 4:const h=c.scopeName,f=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(h,i);if(p)if(f){let m=p.repository[f];m&&(d=ce.getCompiledRuleId(m,n,p.repository))}else d=ce.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else d=ce.getCompiledRuleId(a,n,i);if(d!==-1){const c=n.getRule(d);let u=!1;if((c instanceof Js||c instanceof Hr||c instanceof fi)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;r.push(d)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},mn=class Tl{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const i=t.length;let r=0,s=[],o=!1;for(let a=0;a<i;a++)if(t.charAt(a)==="\\"&&a+1<i){const c=t.charAt(a+1);c==="z"?(s.push(t.substring(r,a)),s.push("$(?!\\n)(?<!\\n)"),r=a+2):(c==="A"||c==="G")&&(o=!0),a++}this.hasAnchor=o,r===0?this.source=t:(s.push(t.substring(r,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Rf.test(this.source):this.hasBackReferences=!1}clone(){return new Tl(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=n.map(r=>t.substring(r.start,r.end));return Xs.lastIndex=0,this.source.replace(Xs,(r,s)=>Cl(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],i=[],r=[],s,o,a,d;for(s=0,o=this.source.length;s<o;s++)a=this.source.charAt(s),t[s]=a,n[s]=a,i[s]=a,r[s]=a,a==="\\"&&s+1<o&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="￿",n[s+1]="￿",i[s+1]="A",r[s+1]="A"):d==="G"?(t[s+1]="￿",n[s+1]="G",i[s+1]="￿",r[s+1]="G"):(t[s+1]=d,n[s+1]=d,i[s+1]=d,r[s+1]=d),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:r.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},gn=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Qs(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let i=this._items.map(r=>r.resolveAnchors(t,n));return new Qs(e,i,this._items.map(r=>r.ruleId))}},Qs=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
2
+ import{r as A,j as l}from"./index-CH7cEAxj.js";import{B as Ga,a as za,b as Fc}from"./better-dialog-DcIxFWwk.js";import{S as qa}from"./section-loader-C4hOfhQS.js";import{S as $s}from"./section-not-found-BnrXiPog.js";import{B as ti}from"./button-DZj74qS7.js";import{C as Hc}from"./checkbox-CFJfXL6R.js";import{o as $c,b as Vc,d as Bc,e as Wc,f as Uc}from"./dialog-D7wzTt0L.js";import{u as Ka,P as Vs,a8 as Gc}from"./nav-links-DZWMpwMR.js";import{c as Za,a as zc,u as qc,b as Kc}from"./chunk-OB3PAWPO-DJIP1M4r.js";import{u as Zc,a8 as Xa}from"./query-D9oj6LGx.js";import{_ as g}from"./preload-helper-BlTxHScW.js";import{c as Xc,w as bs,s as Ja,f as Jc,a as Qc,b as Yc,h as eu,d as tu,H as P,M as nu,r as iu}from"./index-BZGsDmUx.js";import{J as Bs,z as ru,o as N,s as S,c as K,n as et,d as H,b as ye,B as Fe,K as su}from"./index-CIf0GId3.js";import{f as ou,g as au,h as lu}from"./index-DY3BFyb6.js";import{t as vs}from"./index-B6MxYIzs.js";import{s as du,a as cu,b as uu,c as hu,d as fu,e as pu}from"./api-r74Oi8H6.js";import{O as mu,d as gu}from"./dependencies-DK2GDlhQ.js";import{D as bu}from"./dependency-graph-xBEnCS0J.js";import{u as vu}from"./useQuery-Dhe6uxrL.js";import{L as Ws}from"./loader-circle-CiqyoJF7.js";import"./super-logo-loader-Cxlbn6MB.js";import"./iconBase-DtqdW2XR.js";import"./check-BpmCQNbj.js";import"./index-Ck66Ic_p.js";import"./api-endpoints-D-Whnnwd.js";import"./gql-FFIj8zdp.js";import"./style-BPesJvJr.js";import"./index-BIrx3oY4.js";import"./transform-BqqRT-Iy.js";import"./value-wA6veExk.js";import"./index-Dj_05fqk.js";import"./globe-CJ35KsQW.js";import"./share-2-CQEaWbfH.js";import"./link-2-D1e0xznG.js";import"./circle-alert-Bl7DXYD_.js";const Cn=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],yu=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],ku=[["path",{d:"M5.92089 5.92089C8.15836 3.68342 9.2771 2.56468 10.5857 2.19562C11.5105 1.93479 12.4895 1.93479 13.4143 2.19562C14.7229 2.56468 15.8416 3.68342 18.0791 5.92089C20.3166 8.15836 21.4353 9.2771 21.8044 10.5857C22.0652 11.5105 22.0652 12.4895 21.8044 13.4143C21.4353 14.7229 20.3166 15.8416 18.0791 18.0791C15.8416 20.3166 14.7229 21.4353 13.4143 21.8044C12.4895 22.0652 11.5105 22.0652 10.5857 21.8044C9.2771 21.4353 8.15836 20.3166 5.92089 18.0791C3.68342 15.8416 2.56468 14.7229 2.19562 13.4143C1.93479 12.4895 1.93479 11.5105 2.19562 10.5857C2.56468 9.2771 3.68342 8.15836 5.92089 5.92089Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Qa=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 13.5L7.5 9L9.375 13.5M6 13.5L5.5 15M6 13.5H9.375M9.375 13.5L10 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.5 12V9.7C12.5 9.51387 12.5 9.42081 12.5245 9.34549C12.5739 9.19327 12.6933 9.07393 12.8455 9.02447C12.9208 9 13.0139 9 13.2 9H14.5C15.3284 9 16 9.67157 16 10.5C16 11.3284 15.3284 12 14.5 12H12.5ZM12.5 12V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.5 9V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],xu=[["path",{d:"M19 9H6.65856C5.65277 9 5.14987 9 5.02472 8.69134C4.89957 8.38268 5.25517 8.01942 5.96637 7.29289L8.21091 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 15H17.3414C18.3472 15 18.8501 15 18.9753 15.3087C19.1004 15.6173 18.7448 15.9806 18.0336 16.7071L15.7891 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],_u=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],mt=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Cu=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],wu=[["path",{d:"M7.99978 3.5H6.60021C4.43183 3.5 3.34764 3.5 2.67399 4.17362C2.00034 4.84724 2.00029 5.93144 2.00021 8.09982L2 13.3998C1.99992 15.5684 1.99987 16.6526 2.67353 17.3263C3.34719 18 4.43146 18 6.6 18H8.95042C10.4329 18 11.7092 19.0464 11.9999 20.5V5.5C11.0556 4.24097 9.99989 3.5 7.99978 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.0001 3.5H17.3997C19.5681 3.5 20.6523 3.5 21.3259 4.17362C21.9996 4.84724 21.9996 5.93144 21.9997 8.09982L21.9999 13.3998C22 15.5684 22 16.6526 21.3264 17.3263C20.6527 18 19.5684 18 17.3999 18H15.0495C13.567 18 12.2907 19.0464 12 20.5V5.5C12.9443 4.24097 14 3.5 16.0001 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Lu=[["path",{d:"M8 3C7.5355 3 7.30325 3 7.10891 3.03078C6.03918 3.20021 5.20021 4.03918 5.03078 5.10891C5 5.30325 5 5.5355 5 6L5 10C5 11.1046 4.10457 12 3 12C4.10406 11.9982 5 12.8928 5 13.9968V18C5 18.4645 5 18.6968 5.03078 18.8911C5.20021 19.9608 6.03918 20.7998 7.10891 20.9692C7.30325 21 7.5355 21 8 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 3C16.4645 3 16.6968 3 16.8911 3.03078C17.9608 3.20021 18.7998 4.03918 18.9692 5.10891C19 5.30325 19 5.5355 19 6L19 10C19 11.1046 19.8954 12 21 12C19.8959 11.9982 19 12.8928 19 13.9968V18C19 18.4645 19 18.6968 18.9692 18.8911C18.7998 19.9608 17.9608 20.7998 16.8911 20.9692C16.6968 21 16.4645 21 16 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ti=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Xe=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.9994 15L9 9M9.00064 15L15 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Su=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],ji=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ir=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Eu=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ru=[["path",{d:"M14 21H16M14 21C13.1716 21 12.5 20.3284 12.5 19.5V17L12 17M14 21H10M10 21H8M10 21C10.8284 21 11.5 20.3284 11.5 19.5V17L12 17M12 17V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16 3H8C5.17157 3 3.75736 3 2.87868 3.87868C2 4.75736 2 6.17157 2 9V11C2 13.8284 2 15.2426 2.87868 16.1213C3.75736 17 5.17157 17 8 17H16C18.8284 17 20.2426 17 21.1213 16.1213C22 15.2426 22 13.8284 22 11V9C22 6.17157 22 4.75736 21.1213 3.87868C20.2426 3 18.8284 3 16 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Au=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 22V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 7L20.5 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 17L20.5 17",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M12 12H22",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}]],Iu=[["path",{d:"M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Tu=[["path",{d:"M2.79289 21.2071C3.08579 21.5 3.55719 21.5 4.5 21.5H14.5C15.4428 21.5 15.9142 21.5 16.2071 21.2071M2.79289 21.2071C2.5 20.9142 2.5 20.4428 2.5 19.5V9.5C2.5 8.55719 2.5 8.08579 2.79289 7.79289M2.79289 21.2071L8.79289 15.2071M16.2071 21.2071C16.5 20.9142 16.5 20.4428 16.5 19.5V9.5C16.5 8.55719 16.5 8.08579 16.2071 7.79289M16.2071 21.2071L21.2071 16.2071C21.5 15.9142 21.5 15.4428 21.5 14.5V4.5C21.5 3.55719 21.5 3.08579 21.2071 2.79289M16.2071 7.79289C15.9142 7.5 15.4428 7.5 14.5 7.5H4.5C3.55719 7.5 3.08579 7.5 2.79289 7.79289M16.2071 7.79289L21.2071 2.79289M2.79289 7.79289L7.79289 2.79289C8.08579 2.5 8.55719 2.5 9.5 2.5H19.5C20.4428 2.5 20.9142 2.5 21.2071 2.79289M8.79289 15.2071C9.08579 15.5 9.55719 15.5 10.5 15.5H14M8.79289 15.2071C8.5 14.9142 8.5 14.4428 8.5 13.5V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],ys=[["path",{d:"M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 12H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 7.5L17 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.125 7.5H7M7.25 7.5C7.25 7.63807 7.13807 7.75 7 7.75C6.86193 7.75 6.75 7.63807 6.75 7.5C6.75 7.36193 6.86193 7.25 7 7.25C7.13807 7.25 7.25 7.36193 7.25 7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11 16.5L17 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7.125 16.5H7M7.25 16.5C7.25 16.6381 7.13807 16.75 7 16.75C6.86193 16.75 6.75 16.6381 6.75 16.5C6.75 16.3619 6.86193 16.25 7 16.25C7.13807 16.25 7.25 16.3619 7.25 16.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],ju=[["path",{d:"M20 14V10.6569C20 9.83935 20 9.4306 19.8478 9.06306C19.6955 8.69552 19.4065 8.40649 18.8284 7.82843L14.0919 3.09188C13.593 2.593 13.3436 2.34355 13.0345 2.19575C12.9702 2.165 12.9044 2.13772 12.8372 2.11401C12.5141 2 12.1614 2 11.4558 2C8.21082 2 6.58831 2 5.48933 2.88607C5.26731 3.06508 5.06508 3.26731 4.88607 3.48933C4 4.58831 4 6.21082 4 9.45584V14C4 17.7712 4 19.6569 5.17157 20.8284C6.34315 22 8.22876 22 12 22M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 22C17.6068 21.4102 20 19.8403 20 19C20 18.1597 17.6068 16.5898 17 16M19 19H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Nu=[["path",{d:"M2 2L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C9.33333 2 7.60948 2 6.41421 2.41421M4.41421 4.41421C4 5.60948 4 7.33333 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L17.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5L13 20.7487C13 17.9203 13 16.5061 13.8787 15.6274C14.1785 15.3276 14.5406 15.1301 15 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Pu=[["path",{d:"M5.22576 11.3294L12.224 2.34651C12.7713 1.64397 13.7972 2.08124 13.7972 3.01707V9.96994C13.7972 10.5305 14.1995 10.985 14.6958 10.985H18.0996C18.8729 10.985 19.2851 12.0149 18.7742 12.6706L11.776 21.6535C11.2287 22.356 10.2028 21.9188 10.2028 20.9829V14.0301C10.2028 13.4695 9.80048 13.015 9.3042 13.015H5.90035C5.12711 13.015 4.71494 11.9851 5.22576 11.3294Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Du=[["path",{d:"M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]],Mu=[["path",{d:"M5 19C5.26413 19.9564 5.79671 21 7.18729 21C9.59365 21 10.1952 19 12 12C13.8048 5 14.4064 3 16.8127 3C18.2033 3 18.7359 4.04358 19 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 10H17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ou=[["path",{d:"M12 3L12 8.5M12 21L12 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Fu=[["path",{d:"M7 20C8.10457 20 9 19.1046 9 18C9 16.8954 8.10457 16 7 16C5.89543 16 5 16.8954 5 18C5 19.1046 5.89543 20 7 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8C8.10457 8 9 7.10457 9 6C9 4.89543 8.10457 4 7 4C5.89543 4 5 4.89543 5 6C5 7.10457 5.89543 8 7 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.02116 8.2793V15.4073M14.4113 12.0047L10.0193 12.0048C8.92158 12.0048 6.86182 11.1254 7.01818 8.78001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Hu=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11L18 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 4L18 6M18 6L16 8M18 6L20 8M18 6L16 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],$u=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 16V12C18 9.17156 18 7.75735 17.1213 6.87867C16.2426 5.99999 14.8284 5.99999 12 5.99999L11 5.99999M11 5.99999C11 5.29976 12.9943 3.99152 13.5 3.49999M11 5.99999C11 6.70022 12.9943 8.00846 13.5 8.49999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]],Vu=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12C8 18 12 22 12 22C12 22 16 18 16 12C16 6 12 2 12 2C12 2 8 6 8 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 15H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M21 9H3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Bu=[["path",{d:"M4 3H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.5 3V5.03039C5.5 6.27227 6.07682 7.4437 7.06116 8.20089L12 12L16.9388 8.20089C17.9232 7.44371 18.5 6.27227 18.5 5.03039V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5.5 21V18.9696C5.5 17.7277 6.07682 16.5563 7.06116 15.7991L12 12L16.9388 15.7991C17.9232 16.5563 18.5 17.7277 18.5 18.9696V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M4 21H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Ya=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],zt=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Wu=[["path",{d:"M5.25345 4.19584L4.02558 4.90813C3.03739 5.48137 2.54329 5.768 2.27164 6.24483C2 6.72165 2 7.30233 2 8.46368V16.6283C2 18.1542 2 18.9172 2.34226 19.3418C2.57001 19.6244 2.88916 19.8143 3.242 19.8773C3.77226 19.9719 4.42148 19.5953 5.71987 18.8421C6.60156 18.3306 7.45011 17.7994 8.50487 17.9435C8.98466 18.009 9.44231 18.2366 10.3576 18.6917L14.1715 20.588C14.9964 20.9982 15.004 21 15.9214 21H18C19.8856 21 20.8284 21 21.4142 20.4013C22 19.8026 22 18.8389 22 16.9117V10.1715C22 8.24423 22 7.2806 21.4142 6.68188C20.8284 6.08316 19.8856 6.08316 18 6.08316H15.9214C15.004 6.08316 14.9964 6.08139 14.1715 5.6712L10.8399 4.01463C9.44884 3.32297 8.75332 2.97714 8.01238 3.00117C7.27143 3.02521 6.59877 3.41542 5.25345 4.19584Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 3L8 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 6.5L15 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],wn=[["path",{d:"M16 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]],Uu=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Gu=[["path",{d:"M15.9351 12.6258C15.6807 13.8374 14.327 14.7077 11.6198 16.4481C8.67528 18.3411 7.20303 19.2876 6.01052 18.9229C5.60662 18.7994 5.23463 18.5823 4.92227 18.2876C4 17.4178 4 15.6118 4 12C4 8.38816 4 6.58224 4.92227 5.71235C5.23463 5.41773 5.60662 5.20057 6.01052 5.07707C7.20304 4.71243 8.67528 5.6589 11.6198 7.55186C14.327 9.29233 15.6807 10.1626 15.9351 11.3742C16.0216 11.7865 16.0216 12.2135 15.9351 12.6258Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 5V19",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],zu=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],qu=[["path",{d:"M21 14C21 15.4001 21 16.1002 20.7275 16.635C20.4878 17.1054 20.1054 17.4878 19.635 17.7275C19.1002 18 18.4001 18 17 18H7C5.59987 18 4.8998 18 4.36502 17.7275C3.89462 17.4878 3.51217 17.1054 3.27248 16.635C3 16.1002 3 15.4001 3 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 14H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 10H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 6H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],Ku=[["path",{d:"M16.3884 3L17.3913 3.97574C17.8393 4.41165 18.0633 4.62961 17.9844 4.81481C17.9056 5 17.5888 5 16.9552 5H9.19422C5.22096 5 2 8.13401 2 12C2 13.4872 2.47668 14.8662 3.2895 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.61156 21L6.60875 20.0243C6.16074 19.5883 5.93673 19.3704 6.01557 19.1852C6.09441 19 6.4112 19 7.04478 19H14.8058C18.779 19 22 15.866 22 12C22 10.5128 21.5233 9.13383 20.7105 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Zu=[["path",{d:"M6.21875 11.618L3.31189 11.2378C2.71644 11.1606 2.31883 10.5841 2.58348 10.0458C3.42523 8.33365 5.6195 6.35437 9.73988 6.68079M6.21875 11.618C7.27445 9.85426 8.57175 8.00435 9.73988 6.68079M6.21875 11.618L11.882 17.2812M9.73988 6.68079C13.4105 2.58986 17.1745 1.728 19.5937 2.06685C20.5508 2.2009 21.2991 2.94917 21.4332 3.90626C21.772 6.32551 20.9101 10.0895 16.8192 13.7601M11.882 17.2812L12.2622 20.1881C12.3394 20.7836 12.9159 21.1812 13.4542 20.9165C15.1664 20.0748 17.1456 17.8805 16.8192 13.7601M11.882 17.2812C13.6457 16.2255 15.4956 14.9282 16.8192 13.7601",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5 8C17.5 6.89543 16.6046 6 15.5 6C14.3954 6 13.5 6.89543 13.5 8C13.5 9.10457 14.3954 10 15.5 10C16.6046 10 17.5 9.10457 17.5 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 22L8 18M4 17L5.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],el=[["circle",{cx:"18",cy:"5",r:"3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"6",cy:"19",r:"3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 5H8.5C6.567 5 5 6.567 5 8.5C5 10.433 6.567 12 8.5 12H15.5C17.433 12 19 13.567 19 15.5C19 17.433 17.433 19 15.5 19H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Xu=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],Ju=[["path",{d:"M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.4697 21.5303C20.7626 21.8232 21.2374 21.8232 21.5303 21.5303C21.8232 21.2374 21.8232 20.7626 21.5303 20.4697L21 21L20.4697 21.5303ZM15 15L14.4697 15.5303L20.4697 21.5303L21 21L21.5303 20.4697L15.5303 14.4697L15 15Z",fill:"currentColor",key:"1"}]],Qu=[["path",{d:"M9.49811 15L16.9981 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00634 7.67888L15.327 4.21881C18.3688 2.78111 19.8897 2.06226 20.8598 2.78341C21.8299 3.50455 21.5527 5.14799 20.9984 8.43486L20.0435 14.0968C19.6811 16.246 19.4998 17.3205 18.6989 17.7891C17.8979 18.2577 16.8574 17.8978 14.7765 17.178L8.41077 14.9762C4.51917 13.6301 2.57337 12.9571 2.50019 11.6365C2.427 10.3159 4.28678 9.43692 8.00634 7.67888Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.49811 15.5V17.7274C9.49811 20.101 9.49811 21.2878 10.2083 21.4771C10.9185 21.6663 11.6664 20.6789 13.1622 18.7039L13.9981 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],tl=[["path",{d:"M19 4H5C4.06812 4 3.60218 4 3.23463 4.15224C2.74458 4.35523 2.35523 4.74458 2.15224 5.23463C2 5.60218 2 6.06812 2 7C2 7.93188 2 8.39782 2.15224 8.76537C2.35523 9.25542 2.74458 9.64477 3.23463 9.84776C3.60218 10 4.06812 10 5 10H19C19.9319 10 20.3978 10 20.7654 9.84776C21.2554 9.64477 21.6448 9.25542 21.8478 8.76537C22 8.39782 22 7.93188 22 7C22 6.06812 22 5.60218 21.8478 5.23463C21.6448 4.74458 21.2554 4.35523 20.7654 4.15224C20.3978 4 19.9319 4 19 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 14H5C4.06812 14 3.60218 14 3.23463 14.1522C2.74458 14.3552 2.35523 14.7446 2.15224 15.2346C2 15.6022 2 16.0681 2 17C2 17.9319 2 18.3978 2.15224 18.7654C2.35523 19.2554 2.74458 19.6448 3.23463 19.8478C3.60218 20 4.06812 20 5 20H19C19.9319 20 20.3978 20 20.7654 19.8478C21.2554 19.6448 21.6448 19.2554 21.8478 18.7654C22 18.3978 22 17.9319 22 17C22 16.0681 22 15.6022 21.8478 15.2346C21.6448 14.7446 21.2554 14.3552 20.7654 14.1522C20.3978 14 19.9319 14 19 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6.125 7H6M6.25 7C6.25 7.13807 6.13807 7.25 6 7.25C5.86193 7.25 5.75 7.13807 5.75 7C5.75 6.86193 5.86193 6.75 6 6.75C6.13807 6.75 6.25 6.86193 6.25 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M10.125 7H10M10.25 7C10.25 7.13807 10.1381 7.25 10 7.25C9.86193 7.25 9.75 7.13807 9.75 7C9.75 6.86193 9.86193 6.75 10 6.75C10.1381 6.75 10.25 6.86193 10.25 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6.125 17H6M6.25 17C6.25 17.1381 6.13807 17.25 6 17.25C5.86193 17.25 5.75 17.1381 5.75 17C5.75 16.8619 5.86193 16.75 6 16.75C6.13807 16.75 6.25 16.8619 6.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]],nl=[["path",{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.011 14.0965C21.5329 13.9558 21.7939 13.8854 21.8969 13.7508C22 13.6163 22 13.3998 22 12.9669V11.0332C22 10.6003 22 10.3838 21.8969 10.2493C21.7938 10.1147 21.5329 10.0443 21.011 9.90358C19.0606 9.37759 17.8399 7.33851 18.3433 5.40087C18.4817 4.86799 18.5509 4.60156 18.4848 4.44529C18.4187 4.28902 18.2291 4.18134 17.8497 3.96596L16.125 2.98673C15.7528 2.77539 15.5667 2.66972 15.3997 2.69222C15.2326 2.71472 15.0442 2.90273 14.6672 3.27873C13.208 4.73448 10.7936 4.73442 9.33434 3.27864C8.95743 2.90263 8.76898 2.71463 8.60193 2.69212C8.43489 2.66962 8.24877 2.77529 7.87653 2.98663L6.15184 3.96587C5.77253 4.18123 5.58287 4.28891 5.51678 4.44515C5.45068 4.6014 5.51987 4.86787 5.65825 5.4008C6.16137 7.3385 4.93972 9.37763 2.98902 9.9036C2.46712 10.0443 2.20617 10.1147 2.10308 10.2492C2 10.3838 2 10.6003 2 11.0332V12.9669C2 13.3998 2 13.6163 2.10308 13.7508C2.20615 13.8854 2.46711 13.9558 2.98902 14.0965C4.9394 14.6225 6.16008 16.6616 5.65672 18.5992C5.51829 19.1321 5.44907 19.3985 5.51516 19.5548C5.58126 19.7111 5.77092 19.8188 6.15025 20.0341L7.87495 21.0134C8.24721 21.2247 8.43334 21.3304 8.6004 21.3079C8.76746 21.2854 8.95588 21.0973 9.33271 20.7213C10.7927 19.2644 13.2088 19.2643 14.6689 20.7212C15.0457 21.0973 15.2341 21.2853 15.4012 21.3078C15.5682 21.3303 15.7544 21.2246 16.1266 21.0133L17.8513 20.034C18.2307 19.8187 18.4204 19.711 18.4864 19.5547C18.5525 19.3984 18.4833 19.132 18.3448 18.5991C17.8412 16.6616 19.0609 14.6226 21.011 14.0965Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]],Yu=[["path",{d:"M18.7088 3.49534C16.8165 2.55382 14.5009 2 12 2C9.4991 2 7.1835 2.55382 5.29116 3.49534C4.36318 3.95706 3.89919 4.18792 3.4496 4.91378C3 5.63965 3 6.34248 3 7.74814V11.2371C3 16.9205 7.54236 20.0804 10.173 21.4338C10.9067 21.8113 11.2735 22 12 22C12.7265 22 13.0933 21.8113 13.8269 21.4338C16.4576 20.0804 21 16.9205 21 11.2371L21 7.74814C21 6.34249 21 5.63966 20.5504 4.91378C20.1008 4.18791 19.6368 3.95706 18.7088 3.49534Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],il=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]],eh=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],th=[["path",{d:"M8 2H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.2187 13.0044L15.9921 13.6151C15.5219 14.65 14.1115 15.7439 11.7609 14.3182C10.2471 13.4001 8.93663 12.6631 7.9997 13.16L7.21891 13.5412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5323 2V8.56602C14.5323 9.27829 14.5323 9.63442 14.6304 9.97222C14.7285 10.31 14.9197 10.612 15.3021 11.216L17.2861 14.35C19.4275 17.7326 20.4982 19.4238 19.7751 20.7119C19.0519 22 17.0317 22 12.9914 22H11.0086C6.96825 22 4.94807 22 4.22495 20.7119C3.50182 19.4238 4.57251 17.7326 6.71389 14.35L8.69792 11.216C9.08029 10.612 9.27148 10.31 9.36961 9.97222C9.46773 9.63442 9.46773 9.27829 9.46773 8.56602V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.125 19H15M15.25 19C15.25 19.1381 15.1381 19.25 15 19.25C14.8619 19.25 14.75 19.1381 14.75 19C14.75 18.8619 14.8619 18.75 15 18.75C15.1381 18.75 15.25 18.8619 15.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]],Ct=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],nh=[["path",{d:"M2.46433 9.34375C2.21579 9.34375 1.98899 9.14229 2.00041 8.87895C2.06733 7.33687 2.25481 6.33298 2.78008 5.53884C3.08228 5.08196 3.45765 4.68459 3.88923 4.36468C5.05575 3.5 6.70139 3.5 9.99266 3.5H14.0074C17.2986 3.5 18.9443 3.5 20.1108 4.36468C20.5424 4.68459 20.9177 5.08196 21.2199 5.53884C21.7452 6.33289 21.9327 7.33665 21.9996 8.87843C22.011 9.14208 21.7839 9.34375 21.5351 9.34375C20.1493 9.34375 19.0259 10.533 19.0259 12C19.0259 13.467 20.1493 14.6562 21.5351 14.6562C21.7839 14.6562 22.011 14.8579 21.9996 15.1216C21.9327 16.6634 21.7452 17.6671 21.2199 18.4612C20.9177 18.918 20.5424 19.3154 20.1108 19.6353C18.9443 20.5 17.2986 20.5 14.0074 20.5H9.99266C6.70139 20.5 5.05575 20.5 3.88923 19.6353C3.45765 19.3154 3.08228 18.918 2.78008 18.4612C2.25481 17.667 2.06733 16.6631 2.00041 15.1211C1.98899 14.8577 2.21579 14.6562 2.46433 14.6562C3.85012 14.6562 4.97352 13.467 4.97352 12C4.97352 10.533 3.85012 9.34375 2.46433 9.34375Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 3.5L9 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],ih=[["path",{d:"M2.5 20.4998C2.78417 16.8055 5.8 13.719 9.50082 13.5376C9.81335 13.5222 10.1446 13.5094 10.5 13.4996L11.495 13.566C11.8368 13.5888 12.1723 13.6342 12.5 13.7008",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"10.5",cy:"6.49963",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5141 21.4754H17.5016M15.5 15.9996C15.5 14.8951 16.3954 13.9996 17.5 13.9996C18.6046 13.9996 19.5 14.8951 19.5 15.9996C19.5 16.7567 19.0793 17.4156 18.459 17.7552C17.9745 18.0204 17.5 18.4473 17.5 18.9996M17.5266 21.4754C17.5266 21.4892 17.5154 21.5004 17.5016 21.5004C17.4878 21.5004 17.4766 21.4892 17.4766 21.4754C17.4766 21.4616 17.4878 21.4504 17.5016 21.4504C17.5154 21.4504 17.5266 21.4616 17.5266 21.4754Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];function Tn(e){const t=A.useRef(e);return A.useInsertionEffect(()=>void(t.current=e)),A.useCallback((...n)=>t.current(...n),[])}const rh=A.createContext(void 0);function sh(){return A.useContext(rh)}const oh={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},ah={display:"contents"};function Us(){return null}const rl="diffs-container";(()=>{try{return!1}catch{return!1}})();const lh=/(?=^From [a-f0-9]+ .+$)/m,sl=/(?=^diff --git)/gm,dh=/(?<=\n)/,ch=/^(---|\+\+\+)\s+([^\t\r\n]+)/,uh=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,ol="header-prefix",al="header-filename-suffix",ll="header-metadata",ks="header-custom",De={dark:"pierre-dark",light:"pierre-light"},hh="data-theme-css",fh="data-unsafe-css",ph="data-diffs-scrollbar-measure",dl="--diffs-scrollbar-gutter-measured",mh=1e5,gh={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},bh=Object.freeze({fromStart:0,fromEnd:0}),Gs={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},vh={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function wt(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function yh({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function _e(e,t){return e-(t===0?0:1)}function pe(e,t){return _e(e,t)+t}function kh(e,t){const n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:xh(n,e.startContentIndex)}}function xh(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){const r=e.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function _h({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderFilenameSuffix:r,renderHeaderMetadata:s,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:d,lineAnnotations:c,getHoveredLine:u,getInstance:h,getAnnotationSlotName:f=wt}){const p=n?.(e),m=i?.(e),v=r?.(e),k=s?.(e);return l.jsxs(l.Fragment,{children:[p!=null?l.jsx("div",{slot:ks,children:p}):l.jsxs(l.Fragment,{children:[m!=null&&l.jsx("div",{slot:"header-prefix",children:m}),v!=null&&l.jsx("div",{slot:"header-filename-suffix",children:v}),k!=null&&l.jsx("div",{slot:"header-metadata",children:k})]}),o!=null&&c?.map((b,y)=>l.jsx("div",{slot:f(b),children:o(b)},y)),t!=null&&d!=null&&h!=null&&t.map(b=>{if(b==null)return;const y=Ch(b,e);return l.jsx("div",{slot:y,style:ah,children:d(b,h)},y)}),a!=null&&l.jsx("div",{slot:"gutter-utility-slot",style:oh,children:a(u)})]})}function Ch(e,t){const n=kh(e,t);return n!=null?yh({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex}):void 0}const hn=new Map,Zi=new Map,wh=new Map,Tr=new Set;function jr(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!Tr.has(t))return!1;return!0}function xs(e=De){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}const Nr=new Set;function fn(e){const t=[],n=new Set;for(const h of Lh(e.themes)){const f=cl(h)?h.getThemes():[h];for(const p of f){if(n.has(p.name))throw new Error(`Theme collection already contains theme "${p.name}"`);n.add(p.name),t.push(p)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(h=>h.colorScheme==="light")),s=Object.freeze(i.filter(h=>h.colorScheme==="dark")),o=new Map(i.map(h=>[h.name,h])),a=Object.freeze(i.map(h=>h.name)),d=Object.freeze(r.map(h=>h.name)),c=Object.freeze(s.map(h=>h.name));function u(h){if(h==null)return i;const{colorScheme:f,collection:p}=h;return p==null?f==="light"?r:f==="dark"?s:i:i.filter(m=>m.collection!==p?!1:f==null||m.colorScheme===f)}return{getTheme(h){return o.get(h)},getThemes(h){return u(h)},getThemeNames(h){return h?.collection==null?h?.colorScheme==="light"?d:h?.colorScheme==="dark"?c:a:u(h).map(f=>f.name)},hasTheme(h){return o.has(h)},orderBy(h){return fn({themes:i.map((f,p)=>({descriptor:f,index:p})).sort((f,p)=>{const m=h(f.descriptor,p.descriptor);return m!==0?m:f.index-p.index}).map(f=>f.descriptor)})},pick(h){const f=[],p=new Set;for(const m of h){if(p.has(m))throw new Error(`Theme collection pick already includes theme "${m}"`);p.add(m);const v=o.get(m);if(v==null)throw new Error(`Theme collection does not contain theme "${m}"`);f.push(v)}return fn({themes:f})},registerInto(h){for(const f of i)h.registerThemeIfAbsent(f.name,f.load)}}}function Lh(e){return Sh(e)?[e]:e}function Sh(e){return cl(e)||Eh(e)}function Eh(e){return typeof e.name=="string"&&typeof e.load=="function"}function cl(e){return typeof e.getThemes=="function"}function ul(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var Rh=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Ah=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},Ih=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function Th(){const e=new Map,t=new Map,n=new Map;let i=0;function r(b,y){if(e.has(b))throw new Rh(b);e.set(b,y)}function s(b,y){return e.has(b)?!1:(e.set(b,y),!0)}function o(b){return e.has(b)}function a(b){const y=t.get(b);if(y!==void 0)return Promise.resolve(y);const x=n.get(b);if(x!==void 0)return x;const C=e.get(b);if(C===void 0)return Promise.reject(new Ah(b));const _=i,w=C().then(L=>{const I=ul(L);return _===i&&t.set(b,I),n.get(b)===w&&n.delete(b),I}).catch(L=>{throw n.get(b)===w&&n.delete(b),L});return n.set(b,w),w}function d(b){return Promise.all(b.map(y=>a(y)))}function c(b,y){t.set(b,y)}function u(b){for(const[y,x]of b)c(y,x)}function h(b){return t.get(b)}function f(b){const y=[];for(const x of b){const C=t.get(x);if(C===void 0)throw new Ih(x);y.push(C)}return y}function p(b){return t.has(b)}function m(b){for(const y of b)if(!t.has(y))return!1;return!0}function v(b){const y=t.get(b);return y!==void 0?y:a(b)}function k(){i++,t.clear(),n.clear()}return{clearResolvedThemes:k,getResolvedOrResolveTheme:v,getResolvedTheme:h,getResolvedThemes:f,hasRegisteredTheme:o,hasResolvedTheme:p,hasResolvedThemes:m,registerTheme:r,registerThemeIfAbsent:s,resolveTheme:a,resolveThemes:d,seedResolvedTheme:c,seedResolvedThemes:u}}const ut=Th();function zs(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=ut.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,ut.getResolvedTheme(n)==null&&ut.seedResolvedTheme(n,i);Nr.has(n)||(Nr.add(n),t.loadThemeSync(i))}}function qs(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(Tr.has(n.name))continue;let i=hn.get(n.name);i==null&&(i=n,hn.set(n.name,i));const r=i.data.find(s=>s.name===i.name||s.aliases?.includes(i.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${i.name}" as its name or an alias.`);t.loadLanguageSync(i.data);try{t.getLanguage(i.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${i.name}". Load the alias first or give the grammar a unique name.`)}Tr.add(i.name)}}function hl(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var Pr=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,Nh=Object.getOwnPropertyNames,Ph=Object.prototype.hasOwnProperty,Dh=(e,t)=>{let n={};for(var i in e)Pr(n,i,{get:e[i],enumerable:!0});return Pr(n,Symbol.toStringTag,{value:"Module"}),n},Mh=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=Nh(t),s=0,o=r.length,a;s<o;s++)a=r[s],!Ph.call(e,a)&&a!==n&&Pr(e,a,{get:(d=>t[d]).bind(null,a),enumerable:!(i=jh(t,a))||i.enumerable});return e},Oh=(e,t,n)=>(Mh(e,t,"default"),n);const fl=[{id:"abap",name:"ABAP",import:(()=>g(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>g(()=>import("./actionscript-3-B3316cI-.js"),[]))},{id:"ada",name:"Ada",import:(()=>g(()=>import("./ada-BIOnG6TC.js"),[]))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>g(()=>import("./ahk-BrbAagtO.js"),[]))},{id:"ahk2",name:"AutoHotkey2",import:(()=>g(()=>import("./ahk2-8Zs4aa1G.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>g(()=>import("./angular-html-D_SYSyRt.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>g(()=>import("./angular-ts-DGq0tZX5.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>g(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>g(()=>import("./apex-DhZFqWV2.js"),[]))},{id:"apl",name:"APL",import:(()=>g(()=>import("./apl-ChzvTHjC.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>g(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>g(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>g(()=>import("./asciidoc-CSVQ5wI8.js"),[]))},{id:"asm",name:"Assembly",import:(()=>g(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>g(()=>import("./astro-DTjqU0_L.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>g(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>g(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>g(()=>import("./bat-CickPsom.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>g(()=>import("./beancount-BgSHGh8x.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>g(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>g(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>g(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>g(()=>import("./bird2-Bx8U0n9b.js"),[]))},{id:"blade",name:"Blade",import:(()=>g(()=>import("./blade-k33SngOZ.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>g(()=>import("./bsl-DlhNcFeZ.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>g(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>g(()=>import("./c3-Dp5svz6Z.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>g(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>g(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>g(()=>import("./chapel-DTp_pixX.js"),__vite__mapDeps([21,22])))},{id:"clarity",name:"Clarity",import:(()=>g(()=>import("./clarity-Dn5IMItf.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>g(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>g(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>g(()=>import("./cobol-BBKr1ja6.js"),__vite__mapDeps([23,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>g(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>g(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>g(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([24,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>g(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Rocq",import:(()=>g(()=>import("./coq-BqXF5kFF.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>g(()=>import("./cpp-BMRokrvK.js"),__vite__mapDeps([25,26,27,22])))},{id:"crystal",name:"Crystal",import:(()=>g(()=>import("./crystal-LUwhHfY5.js"),__vite__mapDeps([28,1,2,3,16,22,29])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>g(()=>import("./csharp-B_TYUkTI.js"),[]))},{id:"css",name:"CSS",import:(()=>g(()=>import("./css-Z72CF80r.js"),[]))},{id:"csv",name:"CSV",import:(()=>g(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>g(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>g(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>g(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>g(()=>import("./dart-CtKP3W-j.js"),[]))},{id:"dax",name:"DAX",import:(()=>g(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>g(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>g(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>g(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>g(()=>import("./dotenv-De0Btta0.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>g(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>g(()=>import("./edge-CJaD-t2L.js"),__vite__mapDeps([30,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>g(()=>import("./elixir-DkJLSxtU.js"),__vite__mapDeps([31,1,2,3])))},{id:"elm",name:"Elm",import:(()=>g(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([32,27,22])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>g(()=>import("./emacs-lisp-DaIrSCgJ.js"),[]))},{id:"erb",name:"ERB",import:(()=>g(()=>import("./erb-CSMaCouu.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>g(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([40,41])))},{id:"fennel",name:"Fennel",import:(()=>g(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>g(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>g(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>g(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([42,43])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>g(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>g(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([44,41])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>g(()=>import("./gdresource-TyuKm33G.js"),__vite__mapDeps([45,46,47])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>g(()=>import("./gdscript-DqcFQ5yU.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>g(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>g(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>g(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>g(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([48,49])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>g(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([50,29])))},{id:"gleam",name:"Gleam",import:(()=>g(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>g(()=>import("./glimmer-js-Drrc9bTt.js"),__vite__mapDeps([51,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>g(()=>import("./glimmer-ts-zeybXsvi.js"),__vite__mapDeps([52,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>g(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([27,22])))},{id:"gn",name:"GN",import:(()=>g(()=>import("./gn-8iBmfbXw.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>g(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>g(()=>import("./go-C27-OAKa.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>g(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([36,2,11,37,13])))},{id:"groovy",name:"Groovy",import:(()=>g(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>g(()=>import("./hack-Ck6-gGSS.js"),__vite__mapDeps([53,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>g(()=>import("./haml-GN_XdMnF.js"),__vite__mapDeps([35,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>g(()=>import("./handlebars-DPT5vKgj.js"),__vite__mapDeps([54,1,2,3,39])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>g(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>g(()=>import("./haxe-CfZj7gIn.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>g(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>g(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>g(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>g(()=>import("./html-BlS82ilI.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>g(()=>import("./html-derivative-DZhk3IEZ.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>g(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13])))},{id:"hurl",name:"Hurl",import:(()=>g(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57])))},{id:"hxml",name:"HXML",import:(()=>g(()=>import("./hxml-2-FPmUDs.js"),__vite__mapDeps([58,59])))},{id:"hy",name:"Hy",import:(()=>g(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>g(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>g(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>g(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>g(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>g(()=>import("./jinja-DFQZVq3b.js"),__vite__mapDeps([60,1,2,3])))},{id:"jison",name:"Jison",import:(()=>g(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([61,2])))},{id:"json",name:"JSON",import:(()=>g(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>g(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>g(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>g(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>g(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>g(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>g(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>g(()=>import("./julia-Cu79e8SL.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16])))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>g(()=>import("./just-CMxyWJJc.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39])))},{id:"kdl",name:"KDL",import:(()=>g(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>g(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>g(()=>import("./kusto-wEQ09or8.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>g(()=>import("./latex-DJVikpzR.js"),__vite__mapDeps([66,67,63])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>g(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>g(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>g(()=>import("./liquid-B-duXHXw.js"),__vite__mapDeps([68,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>g(()=>import("./llvm-BZoOZj88.js"),[]))},{id:"log",name:"Log file",import:(()=>g(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>g(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>g(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([38,22])))},{id:"luau",name:"Luau",import:(()=>g(()=>import("./luau-nOZpfvQi.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>g(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>g(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>g(()=>import("./marko-BYgDmDgU.js"),__vite__mapDeps([69,3,70,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>g(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>g(()=>import("./mdc-DF4WjDMn.js"),__vite__mapDeps([71,41,39,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>g(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>g(()=>import("./mermaid-CQcHuHx7.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>g(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>g(()=>import("./mojo-DJz3ZmWd.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>g(()=>import("./moonbit-Bag4Rp_g.js"),[]))},{id:"move",name:"Move",import:(()=>g(()=>import("./move-el3G9tDJ.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>g(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>g(()=>import("./nextflow-BCxp2Aob.js"),__vite__mapDeps([72,73])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>g(()=>import("./nextflow-groovy-CedDknKX.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>g(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([74,38,22])))},{id:"nim",name:"Nim",import:(()=>g(()=>import("./nim-nV83PyhX.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41])))},{id:"nix",name:"Nix",import:(()=>g(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nsis",name:"NSIS",import:(()=>g(()=>import("./nsis-BlV79W_Q.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>g(()=>import("./nushell-BXD5iret.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>g(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>g(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>g(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>g(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>g(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"org",name:"Org Markup",import:(()=>g(()=>import("./org-6a7ccXN_.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67])))},{id:"pascal",name:"Pascal",import:(()=>g(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>g(()=>import("./perl-5klg-GXX.js"),__vite__mapDeps([65,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>g(()=>import("./php-DoruYMF0.js"),__vite__mapDeps([79,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>g(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>g(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>g(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>g(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>g(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>g(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>g(()=>import("./powershell-Dd0kTxKP.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>g(()=>import("./prisma-Vru482bI.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>g(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>g(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>g(()=>import("./pug-BtYPkAgq.js"),__vite__mapDeps([94,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>g(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>g(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>g(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>g(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([95,2])))},{id:"qmldir",name:"QML Directory",import:(()=>g(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>g(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>g(()=>import("./r-Cf5RLm7j.js"),[]))},{id:"racket",name:"Racket",import:(()=>g(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>g(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>g(()=>import("./razor-CyjPwjZj.js"),__vite__mapDeps([96,1,2,3,89])))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>g(()=>import("./rbs-CpoqiR4B.js"),[]))},{id:"reg",name:"Windows Registry Script",import:(()=>g(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>g(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>g(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>g(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>g(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>g(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>g(()=>import("./rst-CVOjT0e7.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>g(()=>import("./ruby-C8rp0wew.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>g(()=>import("./rust-DPvrY3IQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>g(()=>import("./sas-BGn39htG.js"),__vite__mapDeps([99,16])))},{id:"sass",name:"Sass",import:(()=>g(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>g(()=>import("./scala-CqE71os6.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>g(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>g(()=>import("./scss-Cw6XMfVs.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>g(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>g(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([100,101])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>g(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>g(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([102,29])))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>g(()=>import("./smalltalk-BOQMe2GC.js"),[]))},{id:"smithy",name:"Smithy",import:(()=>g(()=>import("./smithy-cds9vsN8.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>g(()=>import("./solidity-DijEV5ha.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>g(()=>import("./soy-zscZBeg6.js"),__vite__mapDeps([103,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>g(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([104,105])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>g(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>g(()=>import("./sql-DkvoVjww.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>g(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>g(()=>import("./stata-DACIj5bg.js"),__vite__mapDeps([106,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>g(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>g(()=>import("./surrealql-Cjom0U5J.js"),__vite__mapDeps([107,2])))},{id:"svelte",name:"Svelte",import:(()=>g(()=>import("./svelte-D84K1R2Q.js"),__vite__mapDeps([108,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>g(()=>import("./swift-C2oV4EkX.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>g(()=>import("./system-verilog-0hqHdDBg.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>g(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>g(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>g(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>g(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>g(()=>import("./templ-Vpw5XpSW.js"),__vite__mapDeps([109,84,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>g(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>g(()=>import("./tex-D96PA37w.js"),__vite__mapDeps([67,63])))},{id:"toml",name:"TOML",import:(()=>g(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>g(()=>import("./ts-tags-Ls60c9xG.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>g(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>g(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>g(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>g(()=>import("./twig-D9-LOF2p.js"),__vite__mapDeps([111,2,3,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>g(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>g(()=>import("./typespec-ClX509-Q.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>g(()=>import("./typst-DamkJZ1Q.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80])))},{id:"v",name:"V",import:(()=>g(()=>import("./v-BGw2Nkan.js"),[]))},{id:"vala",name:"Vala",import:(()=>g(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",import:(()=>g(()=>import("./vb-Cu-pLBUe.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>g(()=>import("./verilog-nZwndyjY.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>g(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>g(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>g(()=>import("./vue-DSqPwMUe.js"),__vite__mapDeps([121,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>g(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([122,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>g(()=>import("./vue-vine-C0RcJ6UU.js"),__vite__mapDeps([123,3,5,70,124,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>g(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>g(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>g(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>g(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>g(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>g(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>g(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>g(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>g(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([93,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>g(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>g(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>g(()=>import("./zig-VOosw3JB.js"),[]))}],Fh=Object.fromEntries(fl.map(e=>[e.id,e.import])),Hh=Object.fromEntries(fl.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Dr={...Fh,...Hh},$h=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>g(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>g(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>g(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>g(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>g(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>g(()=>import("./catppuccin-frappe-CZL1YF0i.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>g(()=>import("./catppuccin-latte-DH-8KZSZ.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>g(()=>import("./catppuccin-macchiato-B7yYVSCf.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>g(()=>import("./catppuccin-mocha-Ct7hS0mc.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>g(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>g(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>g(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>g(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>g(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>g(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>g(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>g(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>g(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>g(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>g(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>g(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>g(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>g(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>g(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>g(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>g(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>g(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>g(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>g(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>g(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>g(()=>import("./kanagawa-dragon-BuwD2xS4.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>g(()=>import("./kanagawa-lotus-C3DzagqV.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>g(()=>import("./kanagawa-wave-DFGoQZhC.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>g(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>g(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>g(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>g(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>g(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>g(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>g(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>g(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>g(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>g(()=>import("./monokai-CR4piiQ-.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>g(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>g(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>g(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>g(()=>import("./one-dark-pro-CxGP3dtY.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>g(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>g(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>g(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>g(()=>import("./red-DMbB5_pp.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>g(()=>import("./rose-pine-5qJOZa0Y.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>g(()=>import("./rose-pine-dawn-zx0QlTCp.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>g(()=>import("./rose-pine-moon-C9pEdX9L.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>g(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>g(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>g(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>g(()=>import("./solarized-dark-UcubFVte.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>g(()=>import("./solarized-light-DCG28T6R.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>g(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>g(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>g(()=>import("./vesper-DRje8inN.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>g(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>g(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>g(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Vh=Object.fromEntries($h.map(e=>[e.id,e.import]));var _s=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Bh(){return 2147483648}function Wh(){return typeof performance<"u"?performance.now():Date.now()}const Uh=(e,t)=>e+(t-e%t)%t;async function Gh(e){let t,n;const i={};function r(p){n=p,i.HEAPU8=new Uint8Array(p),i.HEAPU32=new Uint32Array(p)}function s(p,m,v){i.HEAPU8.copyWithin(p,m,m+v)}function o(p){try{return t.grow(p-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}function a(p){const m=i.HEAPU8.length;p=p>>>0;const v=Bh();if(p>v)return!1;for(let k=1;k<=4;k*=2){let b=m*(1+.2/k);b=Math.min(b,p+100663296);const y=Math.min(v,Uh(Math.max(p,b),65536));if(o(y))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(p,m,v=1024){const k=m+v;let b=m;for(;p[b]&&!(b>=k);)++b;if(b-m>16&&p.buffer&&d)return d.decode(p.subarray(m,b));let y="";for(;m<b;){let x=p[m++];if(!(x&128)){y+=String.fromCharCode(x);continue}const C=p[m++]&63;if((x&224)===192){y+=String.fromCharCode((x&31)<<6|C);continue}const _=p[m++]&63;if((x&240)===224?x=(x&15)<<12|C<<6|_:x=(x&7)<<18|C<<12|_<<6|p[m++]&63,x<65536)y+=String.fromCharCode(x);else{const w=x-65536;y+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return y}function u(p,m){return p?c(i.HEAPU8,p,m):""}const h={emscripten_get_now:Wh,emscripten_memcpy_big:s,emscripten_resize_heap:a,fd_write:()=>0};async function f(){const m=await e({env:h,wasi_snapshot_preview1:h});t=m.memory,r(t.buffer),Object.assign(i,m),i.UTF8ToString=u}return await f(),i}var zh=Object.defineProperty,qh=(e,t,n)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t,n)=>qh(e,typeof t!="symbol"?t+"":t,n);let se=null;function Kh(e){throw new _s(e.UTF8ToString(e.getLastOnigError()))}class Ni{constructor(t){ne(this,"utf16Length"),ne(this,"utf8Length"),ne(this,"utf16Value"),ne(this,"utf8Value"),ne(this,"utf16OffsetToUtf8"),ne(this,"utf8OffsetToUtf16");const n=t.length,i=Ni._utf8ByteLength(t),r=i!==n,s=r?new Uint32Array(n+1):null;r&&(s[n]=i);const o=r?new Uint32Array(i+1):null;r&&(o[i]=n);const a=new Uint8Array(i);let d=0;for(let c=0;c<n;c++){const u=t.charCodeAt(c);let h=u,f=!1;if(u>=55296&&u<=56319&&c+1<n){const p=t.charCodeAt(c+1);p>=56320&&p<=57343&&(h=(u-55296<<10)+65536|p-56320,f=!0)}r&&(s[c]=d,f&&(s[c+1]=d),h<=127?o[d+0]=c:h<=2047?(o[d+0]=c,o[d+1]=c):h<=65535?(o[d+0]=c,o[d+1]=c,o[d+2]=c):(o[d+0]=c,o[d+1]=c,o[d+2]=c,o[d+3]=c)),h<=127?a[d++]=h:h<=2047?(a[d++]=192|(h&1984)>>>6,a[d++]=128|(h&63)>>>0):h<=65535?(a[d++]=224|(h&61440)>>>12,a[d++]=128|(h&4032)>>>6,a[d++]=128|(h&63)>>>0):(a[d++]=240|(h&1835008)>>>18,a[d++]=128|(h&258048)>>>12,a[d++]=128|(h&4032)>>>6,a[d++]=128|(h&63)>>>0),f&&c++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(t){let n=0;for(let i=0,r=t.length;i<r;i++){const s=t.charCodeAt(i);let o=s,a=!1;if(s>=55296&&s<=56319&&i+1<r){const d=t.charCodeAt(i+1);d>=56320&&d<=57343&&(o=(s-55296<<10)+65536|d-56320,a=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,a&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Pi=class Te{constructor(t){if(ne(this,"id",++Te.LAST_ID),ne(this,"_onigBinding"),ne(this,"content"),ne(this,"utf16Length"),ne(this,"utf8Length"),ne(this,"utf16OffsetToUtf8"),ne(this,"utf8OffsetToUtf16"),ne(this,"ptr"),!se)throw new _s("Must invoke loadWasm first.");this._onigBinding=se,this.content=t;const n=new Ni(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Te._sharedPtrInUse?(Te._sharedPtr||(Te._sharedPtr=se.omalloc(1e4)),Te._sharedPtrInUse=!0,se.HEAPU8.set(n.utf8Value,Te._sharedPtr),this.ptr=Te._sharedPtr):this.ptr=n.createString(se)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Te._sharedPtr?Te._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ne(Pi,"LAST_ID",0);ne(Pi,"_sharedPtr",0);ne(Pi,"_sharedPtrInUse",!1);let pl=Pi;class Zh{constructor(t){if(ne(this,"_onigBinding"),ne(this,"_ptr"),!se)throw new _s("Must invoke loadWasm first.");const n=[],i=[];for(let a=0,d=t.length;a<d;a++){const c=new Ni(t[a]);n[a]=c.createString(se),i[a]=c.utf8Length}const r=se.omalloc(4*t.length);se.HEAPU32.set(n,r/4);const s=se.omalloc(4*t.length);se.HEAPU32.set(i,s/4);const o=se.createOnigScanner(r,s,t.length);for(let a=0,d=t.length;a<d;a++)se.ofree(n[a]);se.ofree(s),se.ofree(r),o===0&&Kh(se),this._onigBinding=se,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof t=="string"){t=new pl(t);const s=this._findNextMatchSync(t,n,!1,r);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,r)}_findNextMatchSync(t,n,i,r){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),r);if(o===0)return null;const a=s.HEAPU32;let d=o/4;const c=a[d++],u=a[d++],h=[];for(let f=0;f<u;f++){const p=t.convertUtf8OffsetToUtf16(a[d++]),m=t.convertUtf8OffsetToUtf16(a[d++]);h[f]={start:p,end:m,length:m-p}}return{index:c,captureIndices:h}}}function Xh(e){return typeof e.instantiator=="function"}function Jh(e){return typeof e.default=="function"}function Qh(e){return typeof e.data<"u"}function Yh(e){return typeof Response<"u"&&e instanceof Response}function ef(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let jn;function ml(e){if(jn)return jn;async function t(){se=await Gh(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),Xh(i)?i=await i.instantiator(n):Jh(i)?i=await i.default(n):(Qh(i)&&(i=i.data),Yh(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await tf(i)(n):i=await nf(i)(n):ef(i)?i=await Xi(i)(n):i instanceof WebAssembly.Module?i=await Xi(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Xi(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return jn=t(),jn}function Xi(e){return t=>WebAssembly.instantiate(e,t)}function tf(e){return t=>WebAssembly.instantiateStreaming(e,t)}function nf(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let gl;function rf(e){gl=e}function sf(){return gl}async function bl(e){return e&&await ml(e),{createScanner(t){return new Zh(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new pl(t)}}}const of=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:bl,getDefaultWasmLoader:sf,loadWasm:ml,setDefaultWasmLoader:rf},Symbol.toStringTag,{value:"Module"}));var vl=Dh({});Oh(vl,of);var X=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function af(e){return Cs(e)}function Cs(e){return Array.isArray(e)?lf(e):e instanceof RegExp?e:typeof e=="object"?df(e):e}function lf(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=Cs(e[n]);return t}function df(e){let t={};for(let n in e)t[n]=Cs(e[n]);return t}function yl(e,...t){return t.forEach(n=>{for(let i in n)e[i]=n[i]}),e}function kl(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?kl(e.substring(0,e.length-1)):e.substr(~t+1)}var Ji=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Nn=class{static hasCaptures(e){return e===null?!1:(Ji.lastIndex=0,Ji.test(e))}static replaceCaptures(e,t,n){return e.replace(Ji,(i,r,s,o)=>{let a=n[parseInt(r||s,10)];if(a){let d=t.substring(a.start,a.end);for(;d[0]===".";)d=d.substring(1);switch(o){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return i})}};function xl(e,t){return e<t?-1:e>t?1:0}function _l(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let r=0;r<n;r++){let s=xl(e[r],t[r]);if(s!==0)return s}return 0}return n-i}function Ks(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Cl(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var wl=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},ci=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(hf(e),t)}static createFromParsedTheme(e,t){return pf(e,t)}_cachedMatchRoot=new wl(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,i=this._cachedMatchRoot.get(t).find(r=>cf(e.parent,r.parentScopes));return i?new Ll(i.fontStyle,i.foreground,i.background):null}},Qi=class ni{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const i of n)t=new ni(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new ni(n,t[i]);return n}push(t){return new ni(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push(i.scopeName),i=i.parent;return i===t?n.reverse():void 0}};function cf(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let i=t[n],r=!1;if(i===">"){if(n===t.length-1)return!1;i=t[++n],r=!0}for(;e&&!uf(e.scopeName,i);){if(r)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function uf(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Ll=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function hf(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let r=0,s=t.length;r<s;r++){let o=t[r];if(!o.settings)continue;let a;if(typeof o.scope=="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),a=h.split(",")}else Array.isArray(o.scope)?a=o.scope:a=[""];let d=-1;if(typeof o.settings.fontStyle=="string"){d=0;let h=o.settings.fontStyle.split(" ");for(let f=0,p=h.length;f<p;f++)switch(h[f]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let c=null;typeof o.settings.foreground=="string"&&Ks(o.settings.foreground)&&(c=o.settings.foreground);let u=null;typeof o.settings.background=="string"&&Ks(o.settings.background)&&(u=o.settings.background);for(let h=0,f=a.length;h<f;h++){let m=a[h].trim().split(" "),v=m[m.length-1],k=null;m.length>1&&(k=m.slice(0,m.length-1),k.reverse()),n[i++]=new ff(v,k,r,d,c,u)}}return n}var ff=class{constructor(e,t,n,i,r,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s}},ue=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(ue||{});function pf(e,t){e.sort((d,c)=>{let u=xl(d.scope,c.scope);return u!==0||(u=_l(d.parentScopes,c.parentScopes),u!==0)?u:d.index-c.index});let n=0,i="#000000",r="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(i=d.foreground),d.background!==null&&(r=d.background)}let s=new mf(t),o=new Ll(n,s.getId(i),s.getId(r)),a=new bf(new Mr(0,null,-1,0,0),[]);for(let d=0,c=e.length;d<c;d++){let u=e[d];a.insert(0,u.scope,u.parentScopes,u.fontStyle,s.getId(u.foreground),s.getId(u.background))}return new ci(s,o,a)}var mf=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},gf=Object.freeze([]),Mr=class Sl{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,i,r,s){this.scopeDepth=t,this.parentScopes=n||gf,this.fontStyle=i,this.foreground=r,this.background=s}clone(){return new Sl(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=t[i].clone();return n}acceptOverwrite(t,n,i,r){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),r!==0&&(this.background=r)}},bf=class Or{constructor(t,n=[],i={}){this._mainRule=t,this._children=i,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let i=0,r=0;for(;t.parentScopes[i]===">"&&i++,n.parentScopes[r]===">"&&r++,!(i>=t.parentScopes.length||r>=n.parentScopes.length);){const s=n.parentScopes[r].length-t.parentScopes[i].length;if(s!==0)return s;i++,r++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let i=t.indexOf("."),r,s;if(i===-1?(r=t,s=""):(r=t.substring(0,i),s=t.substring(i+1)),this._children.hasOwnProperty(r))return this._children[r].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Or._cmpBySpecificity),n}insert(t,n,i,r,s,o){if(n===""){this._doInsertHere(t,i,r,s,o);return}let a=n.indexOf("."),d,c;a===-1?(d=n,c=""):(d=n.substring(0,a),c=n.substring(a+1));let u;this._children.hasOwnProperty(d)?u=this._children[d]:(u=new Or(this._mainRule.clone(),Mr.cloneArr(this._rulesWithParentScopes)),this._children[d]=u),u.insert(t+1,c,i,r,s,o)}_doInsertHere(t,n,i,r,s){if(n===null){this._mainRule.acceptOverwrite(t,i,r,s);return}for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let d=this._rulesWithParentScopes[o];if(_l(d.parentScopes,n)===0){d.acceptOverwrite(t,i,r,s);return}}i===-1&&(i=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Mr(t,n,i,r,s))}},Et=class ve{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ve.getLanguageId(t),i=ve.getTokenType(t),r=ve.getFontStyle(t),s=ve.getForeground(t),o=ve.getBackground(t);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:s,background:o})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,i,r,s,o,a){let d=ve.getLanguageId(t),c=ve.getTokenType(t),u=ve.containsBalancedBrackets(t)?1:0,h=ve.getFontStyle(t),f=ve.getForeground(t),p=ve.getBackground(t);return n!==0&&(d=n),i!==8&&(c=i),r!==null&&(u=r?1:0),s!==-1&&(h=s),o!==0&&(f=o),a!==0&&(p=a),(d<<0|c<<8|u<<10|h<<11|f<<15|p<<24)>>>0}};function ui(e,t){const n=[],i=vf(e);let r=i.next();for(;r!==null;){let d=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let c=o();if(n.push({matcher:c,priority:d}),r!==",")break;r=i.next()}return n;function s(){if(r==="-"){r=i.next();const d=s();return c=>!!d&&!d(c)}if(r==="("){r=i.next();const d=a();return r===")"&&(r=i.next()),d}if(Zs(r)){const d=[];do d.push(r),r=i.next();while(Zs(r));return c=>t(d,c)}return null}function o(){const d=[];let c=s();for(;c;)d.push(c),c=s();return u=>d.every(h=>h(u))}function a(){const d=[];let c=o();for(;c&&(d.push(c),r==="|"||r===",");){do r=i.next();while(r==="|"||r===",");c=o()}return u=>d.some(h=>h(u))}}function Zs(e){return!!e&&!!e.match(/[\w\.:]+/)}function vf(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const i=n[0];return n=t.exec(e),i}}}function El(e){typeof e.dispose=="function"&&e.dispose()}var pn=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},yf=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},kf=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},xf=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new pn(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new kf;for(const n of e)_f(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof pn){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function _f(e,t,n,i){const r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof pn?ii({baseGrammar:s,selfGrammar:r},i):Fr(e.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);const o=n.injections(e.scopeName);if(o)for(const a of o)i.add(new pn(a))}function Fr(e,t,n){if(t.repository&&t.repository[e]){const i=t.repository[e];hi([i],t,n)}}function ii(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&hi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&hi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function hi(e,t,n){for(const i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const r=i.repository?yl({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&hi(i.patterns,{...t,repository:r},n);const s=i.include;if(!s)continue;const o=Rl(s);switch(o.kind){case 0:ii({...t,selfGrammar:t.baseGrammar},n);break;case 1:ii(t,n);break;case 2:Fr(o.ruleName,{...t,repository:r},n);break;case 3:case 4:const a=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const d={baseGrammar:t.baseGrammar,selfGrammar:a,repository:r};o.kind===4?Fr(o.ruleName,d,n):ii(d,n)}else o.kind===4?n.add(new yf(o.scopeName,o.ruleName)):n.add(new pn(o.scopeName));break}}}var Cf=class{kind=0},wf=class{kind=1},Lf=class{constructor(e){this.ruleName=e}kind=2},Sf=class{constructor(e){this.scopeName=e}kind=3},Ef=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Rl(e){if(e==="$base")return new Cf;if(e==="$self")return new wf;const t=e.indexOf("#");if(t===-1)return new Sf(e);if(t===0)return new Lf(e.substring(1));{const n=e.substring(0,t),i=e.substring(t+1);return new Ef(n,i)}}var Rf=/\\(\d+)/,Xs=/\\(\d+)/g,Af=-1,Al=-2;var Ln=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,i){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Nn.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Nn.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${kl(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Nn.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Nn.replaceCaptures(this._contentName,e,t)}},If=class extends Ln{retokenizeCapturedWithRuleId;constructor(e,t,n,i,r){super(e,t,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,i){throw new Error("Not supported!")}},Tf=class extends Ln{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,null),this._match=new mn(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new gn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Js=class extends Ln{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new gn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Hr=class extends Ln{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r,s,o,a,d,c){super(e,t,n,i),this._begin=new mn(r,this.id),this.beginCaptures=s,this._end=new mn(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=d||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new gn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},fi=class extends Ln{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,i,r,s,o,a,d){super(e,t,n,i),this._begin=new mn(r,this.id),this.beginCaptures=s,this.whileCaptures=a,this._while=new mn(o,Al),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new gn;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new gn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},Il=class ce{static createCaptureRule(t,n,i,r,s){return t.registerRule(o=>new If(n,o,i,r,s))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new Tf(t.$vscodeTextmateLocation,t.id,t.name,t.match,ce._compileCaptures(t.captures,n,i));if(typeof t.begin>"u"){t.repository&&(i=yl({},i,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new Js(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ce._compilePatterns(s,n,i))}return t.while?new fi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ce._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,ce._compileCaptures(t.whileCaptures||t.captures,n,i),ce._compilePatterns(t.patterns,n,i)):new Hr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ce._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,ce._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,ce._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let r=[];if(t){let s=0;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const a=parseInt(o,10);a>s&&(s=a)}for(let o=0;o<=s;o++)r[o]=null;for(const o in t){if(o==="$vscodeTextmateLocation")continue;const a=parseInt(o,10);let d=0;t[o].patterns&&(d=ce.getCompiledRuleId(t[o],n,i)),r[a]=ce.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,d)}}return r}static _compilePatterns(t,n,i){let r=[];if(t)for(let s=0,o=t.length;s<o;s++){const a=t[s];let d=-1;if(a.include){const c=Rl(a.include);switch(c.kind){case 0:case 1:d=ce.getCompiledRuleId(i[a.include],n,i);break;case 2:let u=i[c.ruleName];u&&(d=ce.getCompiledRuleId(u,n,i));break;case 3:case 4:const h=c.scopeName,f=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(h,i);if(p)if(f){let m=p.repository[f];m&&(d=ce.getCompiledRuleId(m,n,p.repository))}else d=ce.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else d=ce.getCompiledRuleId(a,n,i);if(d!==-1){const c=n.getRule(d);let u=!1;if((c instanceof Js||c instanceof Hr||c instanceof fi)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;r.push(d)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},mn=class Tl{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const i=t.length;let r=0,s=[],o=!1;for(let a=0;a<i;a++)if(t.charAt(a)==="\\"&&a+1<i){const c=t.charAt(a+1);c==="z"?(s.push(t.substring(r,a)),s.push("$(?!\\n)(?<!\\n)"),r=a+2):(c==="A"||c==="G")&&(o=!0),a++}this.hasAnchor=o,r===0?this.source=t:(s.push(t.substring(r,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Rf.test(this.source):this.hasBackReferences=!1}clone(){return new Tl(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=n.map(r=>t.substring(r.start,r.end));return Xs.lastIndex=0,this.source.replace(Xs,(r,s)=>Cl(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],i=[],r=[],s,o,a,d;for(s=0,o=this.source.length;s<o;s++)a=this.source.charAt(s),t[s]=a,n[s]=a,i[s]=a,r[s]=a,a==="\\"&&s+1<o&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="￿",n[s+1]="￿",i[s+1]="A",r[s+1]="A"):d==="G"?(t[s+1]="￿",n[s+1]="G",i[s+1]="￿",r[s+1]="G"):(t[s+1]=d,n[s+1]=d,i[s+1]=d,r[s+1]=d),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:r.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},gn=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Qs(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let i=this._items.map(r=>r.resolveAnchors(t,n));return new Qs(e,i,this._items.map(r=>r.ruleId))}},Qs=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
3
3
  `)}findNextMatchSync(e,t,n){const i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},Yi=class{constructor(e,t){this.languageId=e,this.tokenType=t}},jf=class $r{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Yi(t,8),this._embeddedLanguagesMatcher=new Nf(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?$r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Yi(0,0);_getBasicScopeAttributes=new wl(t=>{const n=this._scopeToLanguage(t),i=this._toStandardTokenType(t);return new Yi(n,i)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match($r.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Nf=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,i])=>Cl(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Ys=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function jl(e,t,n,i,r,s,o,a){const d=t.content.length;let c=!1,u=-1;if(o){const p=Pf(e,t,n,i,r,s);r=p.stack,i=p.linePos,n=p.isFirstLine,u=p.anchorPosition}const h=Date.now();for(;!c;){if(a!==0&&Date.now()-h>a)return new Ys(r,!0);f()}return new Ys(r,!1);function f(){const p=Df(e,t,n,i,r,u);if(!p){s.produce(r,d),c=!0;return}const m=p.captureIndices,v=p.matchedRuleId,k=m&&m.length>0?m[0].end>i:!1;if(v===Af){const b=r.getRule(e);s.produce(r,m[0].start),r=r.withContentNameScopesList(r.nameScopesList),rn(e,t,n,r,s,b.endCaptures,m),s.produce(r,m[0].end);const y=r;if(r=r.parent,u=y.getAnchorPos(),!k&&y.getEnterPos()===i){r=y,s.produce(r,d),c=!0;return}}else{const b=e.getRule(v);s.produce(r,m[0].start);const y=r,x=b.getName(t.content,m),C=r.contentNameScopesList.pushAttributed(x,e);if(r=r.push(v,i,u,m[0].end===d,null,C,C),b instanceof Hr){const _=b;rn(e,t,n,r,s,_.beginCaptures,m),s.produce(r,m[0].end),u=m[0].end;const w=_.getContentName(t.content,m),L=C.pushAttributed(w,e);if(r=r.withContentNameScopesList(L),_.endHasBackReferences&&(r=r.withEndRule(_.getEndWithResolvedBackReferences(t.content,m))),!k&&y.hasSameRuleAs(r)){r=r.pop(),s.produce(r,d),c=!0;return}}else if(b instanceof fi){const _=b;rn(e,t,n,r,s,_.beginCaptures,m),s.produce(r,m[0].end),u=m[0].end;const w=_.getContentName(t.content,m),L=C.pushAttributed(w,e);if(r=r.withContentNameScopesList(L),_.whileHasBackReferences&&(r=r.withEndRule(_.getWhileWithResolvedBackReferences(t.content,m))),!k&&y.hasSameRuleAs(r)){r=r.pop(),s.produce(r,d),c=!0;return}}else if(rn(e,t,n,r,s,b.captures,m),s.produce(r,m[0].end),r=r.pop(),!k){r=r.safePop(),s.produce(r,d),c=!0;return}}m[0].end>i&&(i=m[0].end,n=!1)}}function Pf(e,t,n,i,r,s){let o=r.beginRuleCapturedEOL?0:-1;const a=[];for(let d=r;d;d=d.pop()){const c=d.getRule(e);c instanceof fi&&a.push({rule:c,stack:d})}for(let d=a.pop();d;d=a.pop()){const{ruleScanner:c,findOptions:u}=Ff(d.rule,e,d.stack.endRule,n,i===o),h=c.findNextMatchSync(t,i,u);if(h){if(h.ruleId!==Al){r=d.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(s.produce(d.stack,h.captureIndices[0].start),rn(e,t,n,d.stack,s,d.rule.whileCaptures,h.captureIndices),s.produce(d.stack,h.captureIndices[0].end),o=h.captureIndices[0].end,h.captureIndices[0].end>i&&(i=h.captureIndices[0].end,n=!1))}else{r=d.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:o,isFirstLine:n}}function Df(e,t,n,i,r,s){const o=Mf(e,t,n,i,r,s),a=e.getInjections();if(a.length===0)return o;const d=Of(a,e,t,n,i,r,s);if(!d)return o;if(!o)return d;const c=o.captureIndices[0].start,u=d.captureIndices[0].start;return u<c||d.priorityMatch&&u===c?d:o}function Mf(e,t,n,i,r,s){const o=r.getRule(e),{ruleScanner:a,findOptions:d}=Nl(o,e,r.endRule,n,i===s),c=a.findNextMatchSync(t,i,d);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Of(e,t,n,i,r,s,o){let a=Number.MAX_VALUE,d=null,c,u=0;const h=s.contentNameScopesList.getScopeNames();for(let f=0,p=e.length;f<p;f++){const m=e[f];if(!m.matcher(h))continue;const v=t.getRule(m.ruleId),{ruleScanner:k,findOptions:b}=Nl(v,t,null,i,r===o),y=k.findNextMatchSync(n,r,b);if(!y)continue;const x=y.captureIndices[0].start;if(!(x>=a)&&(a=x,d=y.captureIndices,c=y.ruleId,u=m.priority,a===r))break}return d?{priorityMatch:u===-1,captureIndices:d,matchedRuleId:c}:null}function Nl(e,t,n,i,r){return{ruleScanner:e.compileAG(t,n,i,r),findOptions:0}}function Ff(e,t,n,i,r){return{ruleScanner:e.compileWhileAG(t,n,i,r),findOptions:0}}function rn(e,t,n,i,r,s,o){if(s.length===0)return;const a=t.content,d=Math.min(s.length,o.length),c=[],u=o[0].end;for(let h=0;h<d;h++){const f=s[h];if(f===null)continue;const p=o[h];if(p.length===0)continue;if(p.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,p.start):r.produce(i,p.start),f.retokenizeCapturedWithRuleId){const v=f.getName(a,o),k=i.contentNameScopesList.pushAttributed(v,e),b=f.getContentName(a,o),y=k.pushAttributed(b,e),x=i.push(f.retokenizeCapturedWithRuleId,p.start,-1,!1,null,k,y),C=e.createOnigString(a.substring(0,p.end));jl(e,C,n&&p.start===0,p.start,x,r,!1,0),El(C);continue}const m=f.getName(a,o);if(m!==null){const k=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(m,e);c.push(new Hf(k,p.end))}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Hf=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function $f(e,t,n,i,r,s,o,a){return new Bf(e,t,n,i,r,s,o,a)}function eo(e,t,n,i,r){const s=ui(t,pi),o=Il.getCompiledRuleId(n,i,r.repository);for(const a of s)e.push({debugSelector:t,matcher:a.matcher,ruleId:o,grammar:r,priority:a.priority})}function pi(e,t){if(t.length<e.length)return!1;let n=0;return e.every(i=>{for(let r=n;r<t.length;r++)if(Vf(t[r],i))return n=r+1,!0;return!1})}function Vf(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Bf=class{constructor(e,t,n,i,r,s,o,a){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=a,this._basicScopeAttributesProvider=new jf(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=to(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const d of Object.keys(r)){const c=ui(d,pi);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:r[d]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},t=[],n=this._rootScopeName,i=e.lookup(n);if(i){const r=i.injections;if(r)for(let o in r)eo(t,o,r[o],this,i);const s=this._grammarRepository.injections(n);s&&s.forEach(o=>{const a=this.getExternalGrammar(o);if(a){const d=a.injectionSelector;d&&eo(t,d,a,this,a)}})}return t.sort((r,s)=>r.priority-s.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=to(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){const i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){this._rootId===-1&&(this._rootId=Il.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!t||t===Vr.NULL){r=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=Et.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),f=this.getRule(this._rootId).getName(null,null);let p;f?p=dn.createRootAndLookUpScopeName(f,h,this):p=dn.createRoot("unknown",h),t=new Vr(null,this._rootId,-1,-1,!1,null,p,p)}else r=!1,t.reset();e=e+`
4
- `;const s=this.createOnigString(e),o=s.content.length,a=new Uf(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=jl(this,s,r,0,t,a,!0,i);return El(s),{lineLength:o,lineTokens:a,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function to(e,t){return e=af(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var dn=class je{constructor(t,n,i){this.parent=t,this.scopePath=n,this.tokenAttributes=i}static fromExtension(t,n){let i=t,r=t?.scopePath??null;for(const s of n)r=Qi.push(r,s.scopeNames),i=new je(i,r,s.encodedTokenAttributes);return i}static createRoot(t,n){return new je(null,new Qi(null,t),n)}static createRootAndLookUpScopeName(t,n,i){const r=i.getMetadataForScope(t),s=new Qi(null,t),o=i.themeProvider.themeMatch(s),a=je.mergeAttributes(n,r,o);return new je(null,s,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return je.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,i){let r=-1,s=0,o=0;return i!==null&&(r=i.fontStyle,s=i.foregroundId,o=i.backgroundId),Et.set(t,n.languageId,n.tokenType,null,r,s,o)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return je._pushAttributed(this,t,n);const i=t.split(/ /g);let r=this;for(const s of i)r=je._pushAttributed(r,s,n);return r}static _pushAttributed(t,n,i){const r=i.getMetadataForScope(n),s=t.scopePath.push(n),o=i.themeProvider.themeMatch(s),a=je.mergeAttributes(t.tokenAttributes,r,o);return new je(t,s,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(i.parent?.scopePath??null)}),i=i.parent;return i===t?n.reverse():void 0}},Vr=class kt{constructor(t,n,i,r,s,o,a,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new kt(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:kt._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?dn.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){kt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,r,s,o,a){return new kt(this,t,n,i,r,s,o,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new kt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const i=dn.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new kt(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,dn.fromExtension(i,n.contentNameScopesList))}},Wf=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ui(n,pi).map(i=>i.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ui(n,pi).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Uf=class{constructor(e,t,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const o of this._tokenTypeOverrides)o.matcher(s)&&(i=Et.set(i,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(s))}if(r&&(i=Et.set(i,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,r=this._binaryTokens.length;i<r;i++)n[i]=this._binaryTokens[i];return n}},Gf=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,r){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,$f(e,s,t,n,i,r,this,this._onigLib))}return this._grammars.get(e)}},zf=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Gf(ci.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ci.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,i){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(t,n,i){return this._loadGrammar(t,n,i.embeddedLanguages,i.tokenTypes,new Wf(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,i,r,s){const o=new xf(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(a=>this._loadSingleGrammar(a.scopeName)),o.processQueue();return this._grammarForScopeName(t,n,i,r,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(t,n=[],i=0,r=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,i,r)}_grammarForScopeName(t,n=0,i=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,i,r,s)}},Br=Vr.NULL;function mi(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[r,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[r]=s:r===i&&Object.assign(n,s);return n}function ht(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function qf(e){return Array.isArray(e)?e:[e]}async function Pl(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Di(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Dl(e){return e==="ansi"||Di(e)}function Mi(e){return e==="none"}function Ml(e){return Mi(e)}const Kf=/(\r?\n)/g;function Oi(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(Kf);let i=0;const r=[];for(let s=0;s<n.length;s+=2){const o=t?n[s]+(n[s+1]||""):n[s];r.push([o,i]),i+=n[s].length,i+=n[s+1]?.length||0}return r}const no={light:"#333333",dark:"#bbbbbb"},io={light:"#fffffe",dark:"#1e1e1e"},ro="__shiki_resolved";function Fi(e){if(e?.[ro])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:i}=t;if(!n||!i){const a=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;a?.settings?.foreground&&(i=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?no.light:no.dark),n||(n=t.type==="light"?io.light:io.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const s=new Map;function o(a){if(s.has(a))return s.get(a);r+=1;const d=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?o(a):(s.set(a,d),d)}t.settings=t.settings.map(a=>{const d=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!d&&!c)return a;const u={...a,settings:{...a.settings}};if(d){const h=o(a.settings.foreground);t.colorReplacements[h]=a.settings.foreground,u.settings.foreground=h}if(c){const h=o(a.settings.background);t.colorReplacements[h]=a.settings.background,u.settings.background=h}return u});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const d=o(t.colors[a]);t.colorReplacements[d]=t.colors[a],t.colors[a]=d}return Object.defineProperty(t,ro,{enumerable:!1,writable:!1,value:!0}),t}async function Ol(e){return[...new Set((await Promise.all(e.filter(t=>!Dl(t)).map(async t=>await Pl(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function Fl(e){return(await Promise.all(e.map(async t=>Ml(t)?null:Fi(await Pl(t))))).filter(t=>!!t)}function Hl(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new X(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var Zf=class extends zf{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,i={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=i,this._themes.map(r=>this.loadTheme(r)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=Fi(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=ci.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Hl(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(r=>r.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(r=>{this._alias[r]=e.name}),this._loadedLanguagesCache=null,t.size)for(const r of t)this._syncRegistry?._grammars?.get(r.scopeName)?.dispose(),this._resolvedGrammars.delete(r.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(r.scopeName),this._syncRegistry?._grammars?.delete(r.scopeName),this.loadLanguage(this._langMap.get(r.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const t=[...this._langGraph.entries()],n=t.filter(([i,r])=>!r);if(n.length){const i=t.filter(([r,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(o=>n.map(([a])=>a).includes(o)):!1).filter(r=>!n.includes(r));throw new X(`Missing languages ${n.map(([r])=>`\`${r}\``).join(", ")}, required by ${i.map(([r])=>`\`${r}\``).join(", ")}`)}for(const[i,r]of t)this._resolver.addLanguage(r);for(const[i,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const n of t)this._langGraph.set(n,this._langMap.get(n))}},Xf=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let i=1;i<=t.length;i++){const r=t.slice(0,i).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let Jt=0;function Jf(e){Jt+=1,e.warnings!==!1&&Jt>=10&&Jt%10===0&&console.warn(`[Shiki] ${Jt} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new X("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(Fi),r=new Zf(new Xf(e.engine,n),i,n,e.langAlias);let s;function o(y){return Hl(y,e.langAlias)}function a(y){k();const x=r.getGrammar(typeof y=="string"?y:y.name);if(!x)throw new X(`Language \`${y}\` not found, you may need to load it first`);return x}function d(y){if(y==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};k();const x=r.getTheme(y);if(!x)throw new X(`Theme \`${y}\` not found, you may need to load it first`);return x}function c(y){k();const x=d(y);return s!==y&&(r.setTheme(x),s=y),{theme:x,colorMap:r.getColorMap()}}function u(){return k(),r.getLoadedThemes()}function h(){return k(),r.getLoadedLanguages()}function f(...y){k(),r.loadLanguages(y.flat(1))}async function p(...y){return f(await Ol(y))}function m(...y){k();for(const x of y.flat(1))r.loadTheme(x)}async function v(...y){return k(),m(await Fl(y))}function k(){if(t)throw new X("Shiki instance has been disposed")}function b(){t||(t=!0,r.dispose(),Jt-=1)}return{setTheme:c,getTheme:d,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:h,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:v,loadThemeSync:m,dispose:b,[Symbol.dispose]:b}}async function Qf(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([Fl(e.themes||[]),Ol(e.langs||[]),e.engine]);return Jf({...e,themes:t,langs:n,engine:i})}const $l=new WeakMap;function Hi(e,t){$l.set(e,t)}function bn(e){return $l.get(e)}var $i=class Vl{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Vl(Object.fromEntries(qf(n).map(i=>[i,Br])),t)}constructor(...t){if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,r]=t;this.lang=i,this._stacks={[r]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Yf(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Yf(e){const t=[],n=new Set;function i(r){if(n.has(r))return;n.add(r);const s=r?.nameScopesList?.scopeName;s&&t.push(s),r.parent&&i(r.parent)}return i(e),t}function ep(e,t){if(!(e instanceof $i))throw new X("Invalid grammar state");return e.getInternalStack(t)}const tp=/,/,np=/ /;function Bl(e,t,n={}){const{theme:i=e.getLoadedThemes()[0]}=n;if(Di(e.resolveLangAlias(n.lang||"text"))||Mi(i))return Oi(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:r,colorMap:s}=e.setTheme(i),o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new X(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(r.name))throw new X(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return rp(t,o,r,s,n)}function ip(...e){if(e.length===2)return bn(e[1]);const[t,n,i={}]=e,{lang:r="text",theme:s=t.getLoadedThemes()[0]}=i;if(Di(r)||Mi(s))throw new X("Plain language does not have grammar state");if(r==="ansi")throw new X("ANSI language does not have grammar state");const{theme:o,colorMap:a}=t.setTheme(s),d=t.getLanguage(r);return new $i(ws(n,d,o,a,i).stateStack,d.name,o.name)}function rp(e,t,n,i,r){const s=ws(e,t,n,i,r),o=new $i(s.stateStack,t.name,n.name);return Hi(s.tokens,o),s.tokens}function ws(e,t,n,i,r){const s=mi(n,r),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500,includeExplanation:d=!1}=r,c=Oi(e);let u=r.grammarState?ep(r.grammarState,n.name)??Br:r.grammarContextCode!=null?ws(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:Br,h=[];const f=[];for(let p=0,m=c.length;p<m;p++){const[v,k]=c[p];if(v===""){h=[],f.push([]);continue}if(o>0&&v.length>=o){h=[],f.push([{content:v,offset:k,color:"",fontStyle:0}]);continue}let b,y,x;d&&d!=="tokenType"&&(b=t.tokenizeLine(v,u,a),y=b.tokens,x=0);const C=t.tokenizeLine2(v,u,a),_=C.tokens.length/2;for(let w=0;w<_;w++){const L=C.tokens[2*w],I=w+1<_?C.tokens[2*w+2]:v.length;if(L===I)continue;const E=C.tokens[2*w+1],T=ht(i[Et.getForeground(E)],s),O=Et.getFontStyle(E),R={content:v.substring(L,I),offset:k+L,color:T,fontStyle:O};if(d==="tokenType")R.type=Et.getTokenType(E);else if(d){const j=[];if(d!=="scopeName")for(const G of n.settings){let D;switch(typeof G.scope){case"string":D=G.scope.split(tp).map(B=>B.trim());break;case"object":D=G.scope;break;default:continue}j.push({settings:G,selectors:D.map(B=>B.split(np))})}R.explanation=[];let F=0;for(;L+F<I;){const G=y[x],D=v.substring(G.startIndex,G.endIndex);F+=D.length,R.explanation.push({content:D,scopes:d==="scopeName"?sp(G.scopes):op(j,G.scopes)}),x+=1}}h.push(R)}f.push(h),h=[],u=C.ruleStack}return{tokens:f,stateStack:u}}function sp(e){return e.map(t=>({scopeName:t}))}function op(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const s=t[i];n[i]={scopeName:s,themeMatches:lp(e,s,t.slice(0,i))}}return n}function so(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function ap(e,t,n){if(!so(e.at(-1),t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)so(e[i],n[r])&&(i-=1),r-=1;return i===-1}function lp(e,t,n){const i=[];for(const{selectors:r,settings:s}of e)for(const o of r)if(ap(o,t,n)){i.push(s);break}return i}function Wl(e,t,n,i=Bl){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),s=r.map(c=>{const u=i(e,t,{...n,theme:c.theme});return{tokens:u,state:bn(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),o=dp(...s.map(c=>c.tokens)),a=o[0].map((c,u)=>c.map((h,f)=>{const p={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=h.explanation),o.forEach((m,v)=>{const{content:k,explanation:b,offset:y,...x}=m[u][f];p.variants[r[v].color]=x}),p})),d=s[0].state?new $i(Object.fromEntries(s.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),s[0].state.lang):void 0;return d&&Hi(a,d),a}function dp(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const r=e.map(d=>d[i]),s=t.map(()=>[]);t.forEach((d,c)=>d.push(s[c]));const o=r.map(()=>0),a=r.map(d=>d[0]);for(;a.every(d=>d);){const d=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const u=a[c];u.content.length===d?(s[c].push(u),o[c]+=1,a[c]=r[c][o[c]]):(s[c].push({...u,content:u.content.slice(0,d)}),a[c]={...u,content:u.content.slice(d),offset:u.offset+d})}}}return t}const cp=/["&'<>`]/g,up=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hp=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,fp=/[|\\{}()[\]^$+*?.]/g,oo=new WeakMap;function pp(e,t){if(e=e.replace(t.subset?mp(t.subset):cp,i),t.subset||t.escapeOnly)return e;return e.replace(up,n).replace(hp,i);function n(r,s,o){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function i(r,s,o){return t.format(r.charCodeAt(0),o.charCodeAt(s+1),t)}}function mp(e){let t=oo.get(e);return t||(t=gp(e),oo.set(e,t)),t}function gp(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(fp,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const bp=/[\dA-Fa-f]/;function vp(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!bp.test(String.fromCharCode(t))?i:i+";"}const yp=/\d/;function kp(e,t,n){const i="&#"+String(e);return n&&t&&!yp.test(String.fromCharCode(t))?i:i+";"}const er={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},xp=["cent","copy","divide","gt","lt","not","para","times"],Ul={}.hasOwnProperty,Wr={};let Pn;for(Pn in er)Ul.call(er,Pn)&&(Wr[er[Pn]]=Pn);const _p=/[^\dA-Za-z]/;function Cp(e,t,n,i){const r=String.fromCharCode(e);if(Ul.call(Wr,r)){const s=Wr[r],o="&"+s;return n&&Xc.includes(s)&&!xp.includes(s)&&(!i||t&&t!==61&&_p.test(String.fromCharCode(t)))?o:o+";"}return""}function wp(e,t,n){let i=vp(e,t,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=Cp(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const s=kp(e,t,n.omitOptionalSemicolons);s.length<i.length&&(i=s)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Wt(e,t){return pp(e,Object.assign({format:wp},t))}const Lp=/^>|^->|<!--|-->|--!>|<!-$/g,Sp=[">"],Ep=["<",">"];function Rp(e,t,n,i){return i.settings.bogusComments?"<?"+Wt(e.value,Object.assign({},i.settings.characterReferences,{subset:Sp}))+">":"<!--"+e.value.replace(Lp,r)+"-->";function r(s){return Wt(s,Object.assign({},i.settings.characterReferences,{subset:Ep}))}}function Ap(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const re=zl(1),Gl=zl(-1),Ip=[];function zl(e){return t;function t(n,i,r){const s=n?n.children:Ip;let o=(i||0)+e,a=s[o];if(!r)for(;a&&vs(a);)o+=e,a=s[o];return a}}const Tp={}.hasOwnProperty;function ql(e){return t;function t(n,i,r){return Tp.call(e,n.tagName)&&e[n.tagName](n,i,r)}}const Ls=ql({body:Np,caption:tr,colgroup:tr,dd:Op,dt:Mp,head:tr,html:jp,li:Dp,optgroup:Fp,option:Hp,p:Pp,rp:ao,rt:ao,tbody:Vp,td:lo,tfoot:Bp,th:lo,thead:$p,tr:Wp});function tr(e,t,n){const i=re(n,t,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&vs(i.value.charAt(0)))}function jp(e,t,n){const i=re(n,t);return!i||i.type!=="comment"}function Np(e,t,n){const i=re(n,t);return!i||i.type!=="comment"}function Pp(e,t,n){const i=re(n,t);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Dp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&i.tagName==="li"}function Mp(e,t,n){const i=re(n,t);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Op(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function ao(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function Fp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function Hp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function $p(e,t,n){const i=re(n,t);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function Vp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function Bp(e,t,n){return!re(n,t)}function Wp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function lo(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const Up=ql({body:qp,colgroup:Kp,head:zp,html:Gp,tbody:Zp});function Gp(e){const t=re(e,-1);return!t||t.type!=="comment"}function zp(e){const t=new Set;for(const i of e.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(t.has(i.tagName))return!1;t.add(i.tagName)}const n=e.children[0];return!n||n.type==="element"}function qp(e){const t=re(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&vs(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Kp(e,t,n){const i=Gl(n,t),r=re(e,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Ls(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function Zp(e,t,n){const i=Gl(n,t),r=re(e,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Ls(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const Dn={name:[[`
4
+ `;const s=this.createOnigString(e),o=s.content.length,a=new Uf(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=jl(this,s,r,0,t,a,!0,i);return El(s),{lineLength:o,lineTokens:a,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function to(e,t){return e=af(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var dn=class je{constructor(t,n,i){this.parent=t,this.scopePath=n,this.tokenAttributes=i}static fromExtension(t,n){let i=t,r=t?.scopePath??null;for(const s of n)r=Qi.push(r,s.scopeNames),i=new je(i,r,s.encodedTokenAttributes);return i}static createRoot(t,n){return new je(null,new Qi(null,t),n)}static createRootAndLookUpScopeName(t,n,i){const r=i.getMetadataForScope(t),s=new Qi(null,t),o=i.themeProvider.themeMatch(s),a=je.mergeAttributes(n,r,o);return new je(null,s,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return je.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,i){let r=-1,s=0,o=0;return i!==null&&(r=i.fontStyle,s=i.foregroundId,o=i.backgroundId),Et.set(t,n.languageId,n.tokenType,null,r,s,o)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return je._pushAttributed(this,t,n);const i=t.split(/ /g);let r=this;for(const s of i)r=je._pushAttributed(r,s,n);return r}static _pushAttributed(t,n,i){const r=i.getMetadataForScope(n),s=t.scopePath.push(n),o=i.themeProvider.themeMatch(s),a=je.mergeAttributes(t.tokenAttributes,r,o);return new je(t,s,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(i.parent?.scopePath??null)}),i=i.parent;return i===t?n.reverse():void 0}},Vr=class kt{constructor(t,n,i,r,s,o,a,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new kt(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:kt._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?dn.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){kt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,r,s,o,a){return new kt(this,t,n,i,r,s,o,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new kt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const i=dn.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new kt(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,dn.fromExtension(i,n.contentNameScopesList))}},Wf=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ui(n,pi).map(i=>i.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ui(n,pi).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Uf=class{constructor(e,t,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const o of this._tokenTypeOverrides)o.matcher(s)&&(i=Et.set(i,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(s))}if(r&&(i=Et.set(i,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,r=this._binaryTokens.length;i<r;i++)n[i]=this._binaryTokens[i];return n}},Gf=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,r){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,$f(e,s,t,n,i,r,this,this._onigLib))}return this._grammars.get(e)}},zf=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Gf(ci.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ci.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,i){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(t,n,i){return this._loadGrammar(t,n,i.embeddedLanguages,i.tokenTypes,new Wf(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,i,r,s){const o=new xf(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(a=>this._loadSingleGrammar(a.scopeName)),o.processQueue();return this._grammarForScopeName(t,n,i,r,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(t,n=[],i=0,r=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,i,r)}_grammarForScopeName(t,n=0,i=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,i,r,s)}},Br=Vr.NULL;function mi(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[r,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[r]=s:r===i&&Object.assign(n,s);return n}function ht(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function qf(e){return Array.isArray(e)?e:[e]}async function Pl(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Di(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Dl(e){return e==="ansi"||Di(e)}function Mi(e){return e==="none"}function Ml(e){return Mi(e)}const Kf=/(\r?\n)/g;function Oi(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(Kf);let i=0;const r=[];for(let s=0;s<n.length;s+=2){const o=t?n[s]+(n[s+1]||""):n[s];r.push([o,i]),i+=n[s].length,i+=n[s+1]?.length||0}return r}const no={light:"#333333",dark:"#bbbbbb"},io={light:"#fffffe",dark:"#1e1e1e"},ro="__shiki_resolved";function Fi(e){if(e?.[ro])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:i}=t;if(!n||!i){const a=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;a?.settings?.foreground&&(i=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?no.light:no.dark),n||(n=t.type==="light"?io.light:io.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const s=new Map;function o(a){if(s.has(a))return s.get(a);r+=1;const d=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?o(a):(s.set(a,d),d)}t.settings=t.settings.map(a=>{const d=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!d&&!c)return a;const u={...a,settings:{...a.settings}};if(d){const h=o(a.settings.foreground);t.colorReplacements[h]=a.settings.foreground,u.settings.foreground=h}if(c){const h=o(a.settings.background);t.colorReplacements[h]=a.settings.background,u.settings.background=h}return u});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const d=o(t.colors[a]);t.colorReplacements[d]=t.colors[a],t.colors[a]=d}return Object.defineProperty(t,ro,{enumerable:!1,writable:!1,value:!0}),t}async function Ol(e){return[...new Set((await Promise.all(e.filter(t=>!Dl(t)).map(async t=>await Pl(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function Fl(e){return(await Promise.all(e.map(async t=>Ml(t)?null:Fi(await Pl(t))))).filter(t=>!!t)}function Hl(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new X(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var Zf=class extends zf{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,i={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=i,this._themes.map(r=>this.loadTheme(r)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=Fi(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=ci.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Hl(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(r=>r.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(r=>{this._alias[r]=e.name}),this._loadedLanguagesCache=null,t.size)for(const r of t)this._syncRegistry?._grammars?.get(r.scopeName)?.dispose(),this._resolvedGrammars.delete(r.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(r.scopeName),this._syncRegistry?._grammars?.delete(r.scopeName),this.loadLanguage(this._langMap.get(r.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const t=[...this._langGraph.entries()],n=t.filter(([i,r])=>!r);if(n.length){const i=t.filter(([r,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(o=>n.map(([a])=>a).includes(o)):!1).filter(r=>!n.includes(r));throw new X(`Missing languages ${n.map(([r])=>`\`${r}\``).join(", ")}, required by ${i.map(([r])=>`\`${r}\``).join(", ")}`)}for(const[i,r]of t)this._resolver.addLanguage(r);for(const[i,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const n of t)this._langGraph.set(n,this._langMap.get(n))}},Xf=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let i=1;i<=t.length;i++){const r=t.slice(0,i).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let Jt=0;function Jf(e){Jt+=1,e.warnings!==!1&&Jt>=10&&Jt%10===0&&console.warn(`[Shiki] ${Jt} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new X("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(Fi),r=new Zf(new Xf(e.engine,n),i,n,e.langAlias);let s;function o(y){return Hl(y,e.langAlias)}function a(y){k();const x=r.getGrammar(typeof y=="string"?y:y.name);if(!x)throw new X(`Language \`${y}\` not found, you may need to load it first`);return x}function d(y){if(y==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};k();const x=r.getTheme(y);if(!x)throw new X(`Theme \`${y}\` not found, you may need to load it first`);return x}function c(y){k();const x=d(y);return s!==y&&(r.setTheme(x),s=y),{theme:x,colorMap:r.getColorMap()}}function u(){return k(),r.getLoadedThemes()}function h(){return k(),r.getLoadedLanguages()}function f(...y){k(),r.loadLanguages(y.flat(1))}async function p(...y){return f(await Ol(y))}function m(...y){k();for(const x of y.flat(1))r.loadTheme(x)}async function v(...y){return k(),m(await Fl(y))}function k(){if(t)throw new X("Shiki instance has been disposed")}function b(){t||(t=!0,r.dispose(),Jt-=1)}return{setTheme:c,getTheme:d,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:h,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:v,loadThemeSync:m,dispose:b,[Symbol.dispose]:b}}async function Qf(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([Fl(e.themes||[]),Ol(e.langs||[]),e.engine]);return Jf({...e,themes:t,langs:n,engine:i})}const $l=new WeakMap;function Hi(e,t){$l.set(e,t)}function bn(e){return $l.get(e)}var $i=class Vl{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Vl(Object.fromEntries(qf(n).map(i=>[i,Br])),t)}constructor(...t){if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,r]=t;this.lang=i,this._stacks={[r]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Yf(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Yf(e){const t=[],n=new Set;function i(r){if(n.has(r))return;n.add(r);const s=r?.nameScopesList?.scopeName;s&&t.push(s),r.parent&&i(r.parent)}return i(e),t}function ep(e,t){if(!(e instanceof $i))throw new X("Invalid grammar state");return e.getInternalStack(t)}const tp=/,/,np=/ /;function Bl(e,t,n={}){const{theme:i=e.getLoadedThemes()[0]}=n;if(Di(e.resolveLangAlias(n.lang||"text"))||Mi(i))return Oi(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:r,colorMap:s}=e.setTheme(i),o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new X(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(r.name))throw new X(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return rp(t,o,r,s,n)}function ip(...e){if(e.length===2)return bn(e[1]);const[t,n,i={}]=e,{lang:r="text",theme:s=t.getLoadedThemes()[0]}=i;if(Di(r)||Mi(s))throw new X("Plain language does not have grammar state");if(r==="ansi")throw new X("ANSI language does not have grammar state");const{theme:o,colorMap:a}=t.setTheme(s),d=t.getLanguage(r);return new $i(ws(n,d,o,a,i).stateStack,d.name,o.name)}function rp(e,t,n,i,r){const s=ws(e,t,n,i,r),o=new $i(s.stateStack,t.name,n.name);return Hi(s.tokens,o),s.tokens}function ws(e,t,n,i,r){const s=mi(n,r),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500,includeExplanation:d=!1}=r,c=Oi(e);let u=r.grammarState?ep(r.grammarState,n.name)??Br:r.grammarContextCode!=null?ws(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:Br,h=[];const f=[];for(let p=0,m=c.length;p<m;p++){const[v,k]=c[p];if(v===""){h=[],f.push([]);continue}if(o>0&&v.length>=o){h=[],f.push([{content:v,offset:k,color:"",fontStyle:0}]);continue}let b,y,x;d&&d!=="tokenType"&&(b=t.tokenizeLine(v,u,a),y=b.tokens,x=0);const C=t.tokenizeLine2(v,u,a),_=C.tokens.length/2;for(let w=0;w<_;w++){const L=C.tokens[2*w],I=w+1<_?C.tokens[2*w+2]:v.length;if(L===I)continue;const E=C.tokens[2*w+1],T=ht(i[Et.getForeground(E)],s),O=Et.getFontStyle(E),R={content:v.substring(L,I),offset:k+L,color:T,fontStyle:O};if(d==="tokenType")R.type=Et.getTokenType(E);else if(d){const j=[];if(d!=="scopeName")for(const G of n.settings){let D;switch(typeof G.scope){case"string":D=G.scope.split(tp).map(B=>B.trim());break;case"object":D=G.scope;break;default:continue}j.push({settings:G,selectors:D.map(B=>B.split(np))})}R.explanation=[];let F=0;for(;L+F<I;){const G=y[x],D=v.substring(G.startIndex,G.endIndex);F+=D.length,R.explanation.push({content:D,scopes:d==="scopeName"?sp(G.scopes):op(j,G.scopes)}),x+=1}}h.push(R)}f.push(h),h=[],u=C.ruleStack}return{tokens:f,stateStack:u}}function sp(e){return e.map(t=>({scopeName:t}))}function op(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const s=t[i];n[i]={scopeName:s,themeMatches:lp(e,s,t.slice(0,i))}}return n}function so(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function ap(e,t,n){if(!so(e.at(-1),t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)so(e[i],n[r])&&(i-=1),r-=1;return i===-1}function lp(e,t,n){const i=[];for(const{selectors:r,settings:s}of e)for(const o of r)if(ap(o,t,n)){i.push(s);break}return i}function Wl(e,t,n,i=Bl){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),s=r.map(c=>{const u=i(e,t,{...n,theme:c.theme});return{tokens:u,state:bn(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),o=dp(...s.map(c=>c.tokens)),a=o[0].map((c,u)=>c.map((h,f)=>{const p={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=h.explanation),o.forEach((m,v)=>{const{content:k,explanation:b,offset:y,...x}=m[u][f];p.variants[r[v].color]=x}),p})),d=s[0].state?new $i(Object.fromEntries(s.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),s[0].state.lang):void 0;return d&&Hi(a,d),a}function dp(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const r=e.map(d=>d[i]),s=t.map(()=>[]);t.forEach((d,c)=>d.push(s[c]));const o=r.map(()=>0),a=r.map(d=>d[0]);for(;a.every(d=>d);){const d=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const u=a[c];u.content.length===d?(s[c].push(u),o[c]+=1,a[c]=r[c][o[c]]):(s[c].push({...u,content:u.content.slice(0,d)}),a[c]={...u,content:u.content.slice(d),offset:u.offset+d})}}}return t}const cp=/["&'<>`]/g,up=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hp=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,fp=/[|\\{}()[\]^$+*?.]/g,oo=new WeakMap;function pp(e,t){if(e=e.replace(t.subset?mp(t.subset):cp,i),t.subset||t.escapeOnly)return e;return e.replace(up,n).replace(hp,i);function n(r,s,o){return t.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function i(r,s,o){return t.format(r.charCodeAt(0),o.charCodeAt(s+1),t)}}function mp(e){let t=oo.get(e);return t||(t=gp(e),oo.set(e,t)),t}function gp(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(fp,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const bp=/[\dA-Fa-f]/;function vp(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!bp.test(String.fromCharCode(t))?i:i+";"}const yp=/\d/;function kp(e,t,n){const i="&#"+String(e);return n&&t&&!yp.test(String.fromCharCode(t))?i:i+";"}const er={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},xp=["cent","copy","divide","gt","lt","not","para","times"],Ul={}.hasOwnProperty,Wr={};let Pn;for(Pn in er)Ul.call(er,Pn)&&(Wr[er[Pn]]=Pn);const _p=/[^\dA-Za-z]/;function Cp(e,t,n,i){const r=String.fromCharCode(e);if(Ul.call(Wr,r)){const s=Wr[r],o="&"+s;return n&&Xc.includes(s)&&!xp.includes(s)&&(!i||t&&t!==61&&_p.test(String.fromCharCode(t)))?o:o+";"}return""}function wp(e,t,n){let i=vp(e,t,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=Cp(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const s=kp(e,t,n.omitOptionalSemicolons);s.length<i.length&&(i=s)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Wt(e,t){return pp(e,Object.assign({format:wp},t))}const Lp=/^>|^->|<!--|-->|--!>|<!-$/g,Sp=[">"],Ep=["<",">"];function Rp(e,t,n,i){return i.settings.bogusComments?"<?"+Wt(e.value,Object.assign({},i.settings.characterReferences,{subset:Sp}))+">":"<!--"+e.value.replace(Lp,r)+"-->";function r(s){return Wt(s,Object.assign({},i.settings.characterReferences,{subset:Ep}))}}function Ap(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const re=zl(1),Gl=zl(-1),Ip=[];function zl(e){return t;function t(n,i,r){const s=n?n.children:Ip;let o=(i||0)+e,a=s[o];if(!r)for(;a&&bs(a);)o+=e,a=s[o];return a}}const Tp={}.hasOwnProperty;function ql(e){return t;function t(n,i,r){return Tp.call(e,n.tagName)&&e[n.tagName](n,i,r)}}const Ls=ql({body:Np,caption:tr,colgroup:tr,dd:Op,dt:Mp,head:tr,html:jp,li:Dp,optgroup:Fp,option:Hp,p:Pp,rp:ao,rt:ao,tbody:Vp,td:lo,tfoot:Bp,th:lo,thead:$p,tr:Wp});function tr(e,t,n){const i=re(n,t,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&bs(i.value.charAt(0)))}function jp(e,t,n){const i=re(n,t);return!i||i.type!=="comment"}function Np(e,t,n){const i=re(n,t);return!i||i.type!=="comment"}function Pp(e,t,n){const i=re(n,t);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Dp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&i.tagName==="li"}function Mp(e,t,n){const i=re(n,t);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function Op(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function ao(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function Fp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function Hp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function $p(e,t,n){const i=re(n,t);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function Vp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function Bp(e,t,n){return!re(n,t)}function Wp(e,t,n){const i=re(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function lo(e,t,n){const i=re(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const Up=ql({body:qp,colgroup:Kp,head:zp,html:Gp,tbody:Zp});function Gp(e){const t=re(e,-1);return!t||t.type!=="comment"}function zp(e){const t=new Set;for(const i of e.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(t.has(i.tagName))return!1;t.add(i.tagName)}const n=e.children[0];return!n||n.type==="element"}function qp(e){const t=re(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&bs(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Kp(e,t,n){const i=Gl(n,t),r=re(e,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Ls(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function Zp(e,t,n){const i=Gl(n,t),r=re(e,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Ls(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const Dn={name:[[`
5
5
  \f\r &/=>`.split(""),`
6
6
  \f\r "&'/=>\``.split("")],[`\0
7
7
  \f\r "&'/<=>`.split(""),`\0
@@ -353,4 +353,4 @@ ${n}`:"","","<sub>Found with UIGraph Lens</sub>"].filter((i,r,s)=>!(i===""&&s[r-
353
353
  `))].join(`
354
354
 
355
355
  `);A.useEffect(()=>{t!==null&&document.getElementById(`finding-${t}`)?.scrollIntoView({block:"center"})},[t]);async function u(){try{await navigator.clipboard.writeText(c),r("copied")}catch{r("failed")}}return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"section-head",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Findings"}),(e.findings.length>0||s.length>0)&&l.jsxs("p",{children:[e.findings.length," ",e.findings.length===1?"finding":"findings",s.length>0?`, ${s.length} failed CI ${s.length===1?"check":"checks"}`:null,". Most serious first."]})]}),e.findings.length>0&&l.jsxs("button",{type:"button",className:"action-button primary",onClick:u,children:[l.jsx(P,{icon:i==="copied"?Ct:Iu,"aria-hidden":"true"}),i==="copied"?`Copied ${e.findings.length} ${e.findings.length===1?"finding":"findings"}`:"Copy fix prompt"]})]}),i==="failed"&&l.jsxs("div",{className:"fix-prompt-fallback",children:[l.jsx("label",{htmlFor:"fix-prompt",children:"Copying did not work here. Copy the text by hand."}),l.jsx("textarea",{id:"fix-prompt",readOnly:!0,value:c,onFocus:h=>h.target.select()})]}),e.findings.length===0&&s.length===0&&l.jsx("p",{className:"empty-copy",children:"Lens found nothing that needs a change."}),l.jsxs("div",{className:"findings",children:[s.map(h=>l.jsx("article",{className:"finding finding-high",children:l.jsxs("div",{className:"finding-summary",children:[l.jsxs("span",{className:"severity",children:[l.jsx(P,{icon:Xe,"aria-hidden":"true"}),"Failed"]}),h.githubUrl?l.jsx("a",{className:"finding-title",href:h.githubUrl,target:"_blank",rel:"noreferrer",children:h.name}):l.jsx("span",{className:"finding-title",children:h.name}),l.jsx("span",{className:"finding-meta",children:"CI check"})]})},`check-${h.id}`)),o.map(h=>{const f=h.group;return l.jsx("article",{id:`finding-${h.id}`,className:`finding finding-${h.severity}`,children:l.jsxs("details",{open:a.includes(h.id),onToggle:p=>{const m=p.currentTarget.open;m&&!a.includes(h.id)&&e.setExpanded([...a,h.id]),!m&&a.includes(h.id)&&e.setExpanded(a.filter(v=>v!==h.id))},children:[l.jsxs("summary",{className:"finding-summary",children:[l.jsxs("span",{className:"severity",children:[l.jsx(P,{icon:z[h.severity].icon,"aria-hidden":"true"}),z[h.severity].label]}),l.jsx("span",{className:"finding-title",children:l.jsx(M,{text:h.title})}),l.jsxs("span",{className:"finding-meta",children:[Oa[h.kind],". ",Rk[h.check]]}),l.jsx(P,{icon:mt,className:"finding-caret","aria-hidden":"true"})]}),l.jsxs("div",{className:"finding-body",children:[l.jsx("p",{children:l.jsx(M,{text:h.body})}),l.jsxs("p",{className:"finding-fix",children:[l.jsx("b",{children:"Fix"})," ",l.jsx(M,{text:h.fix})]}),l.jsx(He,{review:e.review,analysis:e.analysis,locations:h.locations,openFile:e.openFile}),l.jsxs("div",{className:"finding-footer",children:[l.jsx("span",{className:"finding-source",children:h.source}),l.jsx(Mk,{review:e.review,finding:h}),f!==null&&l.jsx("button",{type:"button",className:"text-button",onClick:()=>e.openGroup(f,h.id),children:"Read it in context"})]})]})]})},h.id)})]}),d.length>0&&l.jsxs("details",{className:"dropped-findings",children:[l.jsxs("summary",{children:["The fact-check removed ",d.length," ",d.length===1?"finding":"findings"," the code contradicts"]}),l.jsx("ul",{children:d.map((h,f)=>l.jsxs("li",{children:[l.jsx("strong",{children:l.jsx(M,{text:h.title})}),l.jsx("span",{children:l.jsx(M,{text:h.reason})})]},f))})]})]})}const $a={asana:K2,clickup:X2,github:Q2,gitlab:ey,jira:oc,linear:ac,notion:ry,shortcut:oy,trello:ly},ms={missing:{label:"Not found",tone:"bad",rank:0},different:{label:"Built differently",tone:"warn",rank:1},partial:{label:"Partly built",tone:"warn",rank:2},built:{label:"Built",tone:"ok",rank:3}},Va={differs:{label:"Differs from the task",tone:"warn"},author:{label:"Author's choice",tone:"info"},asked:{label:"Asked for",tone:"ok"}},Fk=["differs","author","asked"],ei={new:{mark:"+",label:"New",change:"added"},changed:{mark:"~",label:"Changed",change:"changed"},removed:{mark:"−",label:"Removed",change:"removed"}},Ba={covered:{label:"Has a test",tone:"ok"},untested:{label:"No test",tone:"warn"},unknown:{label:"Test unknown",tone:"neutral"}};function Hk(e){const t=e.analysis;if(!t)return l.jsx(Ye,{id:"workspace",stage:null});const n=t.stages.verdict.status==="done"||t.stages.verdict.status==="failed",i=t.results.map,r=t.results.findings?.findings??[],s=i?.terms??[];return l.jsxs("div",{className:"overview understand",children:[l.jsxs("section",{className:"lead","aria-label":"Summary",children:[l.jsx("p",{className:"eyebrow",children:"What this pull request does"}),l.jsx("h2",{className:"lead-summary",children:l.jsx(M,{text:i?.summary??"Lens is reading the pull request and its repository."})}),i?.background&&l.jsxs("p",{className:"lead-background",children:[l.jsx("b",{children:"Where this lives."})," ",l.jsx(M,{text:i.background})]}),s.length>0&&l.jsx("dl",{className:"terms",children:s.map(o=>l.jsxs("div",{children:[l.jsx("dt",{children:o.term}),l.jsx("dd",{children:l.jsx(M,{text:o.meaning})})]},o.term))}),t.stages.map.status==="failed"&&l.jsx(Ye,{id:"map",stage:t.stages.map}),n?l.jsx(Rc,{analysis:t}):l.jsx(Ms,{analysis:t})]}),l.jsxs("div",{className:"overview-main",children:[l.jsxs("section",{className:"section",id:"behaviors",children:[l.jsx("div",{className:"section-head",children:l.jsxs("div",{children:[l.jsx("h2",{children:"What behaves differently"}),l.jsx("p",{children:i?`${i.behaviors.length} ${i.behaviors.length===1?"change":"changes"} at runtime. Most important first.`:"One card for each thing the code now does differently"})]})}),l.jsx(rt,{analysis:t,stage:"map",quiet:!0,children:()=>!i||i.behaviors.length===0?l.jsx("p",{className:"empty-copy",children:"This pull request does not change runtime behavior."}):l.jsx("ul",{className:"behaviors",children:i.behaviors.map(o=>{const a=o.kind,d=t.results.tests?.behaviors.find(c=>c.behaviorId===o.id)?.coverage;return l.jsxs("li",{className:a?`behavior behavior-${ei[a].change}`:"behavior",children:[l.jsxs("div",{className:"behavior-head",children:[a?l.jsxs("span",{className:`change-mark change-${ei[a].change}`,children:[l.jsx("i",{"aria-hidden":"true",children:ei[a].mark}),ei[a].label]}):l.jsx("span",{}),d&&l.jsx("button",{type:"button",className:`coverage-chip tone-${Ba[d].tone}`,onClick:()=>e.openRisks("tests"),children:Ba[d].label})]}),l.jsx("strong",{children:l.jsx(M,{text:o.text})}),o.before&&l.jsxs("p",{className:"behavior-before",children:[l.jsx("span",{children:"Before"}),l.jsx(M,{text:o.before})]}),l.jsx(He,{review:e.review,analysis:t,locations:o.locations,openFile:e.openFile})]},o.id)})})})]}),i&&l.jsx(wc,{review:e.review,analysis:t,findings:r,openFile:e.openFile,openFinding:e.openFinding,openGroup:e.openGroup,renderImpactGraph:e.renderImpactGraph}),ae(t,"scope")&&l.jsx(Ic,{review:e.review,analysis:t,findings:r,openFile:e.openFile,openFinding:e.openFinding}),l.jsx($k,{review:e.review,analysis:t,findings:r,openFinding:e.openFinding,openRisks:e.openRisks}),ae(t,"decisions")&&l.jsx(Ac,{review:e.review,analysis:t,findings:r,openFile:e.openFile,openFinding:e.openFinding})]})]})}function Ac(e){const t=e.analysis.results.decisions?.decisions??[];return l.jsxs("section",{className:"section",children:[l.jsxs("div",{className:"section-head",children:[l.jsx("h2",{children:"Decide"}),l.jsx("p",{children:"Values the code picked. Agree with them before you merge."})]}),l.jsx(rt,{analysis:e.analysis,stage:"decisions",quiet:!0,children:()=>t.length===0?l.jsx("p",{className:"empty-copy",children:"No choices need a second look."}):Fk.map(n=>{const i=t.filter(r=>r.origin===n);return i.length===0?null:l.jsxs("div",{className:"choice-group",children:[l.jsxs("h3",{children:[l.jsx(zi,{tone:Va[n].tone,children:Va[n].label}),l.jsx("span",{children:i.length})]}),l.jsx("dl",{className:"choices",children:i.map((r,s)=>l.jsxs("div",{children:[l.jsx("dt",{children:r.topic}),l.jsxs("dd",{children:[l.jsx("span",{children:l.jsx(M,{text:r.value})}),l.jsx(jt,{findings:Tt(e.findings,r.locations),openFinding:e.openFinding})]}),l.jsx("dd",{className:"choice-evidence",children:l.jsx(He,{review:e.review,analysis:e.analysis,locations:r.locations,openFile:e.openFile})})]},s))})]},n)})})]})}function $k(e){const t=e.analysis,n=t.stages.findings.status==="done",i=e.findings.toSorted((d,c)=>z[d.severity].rank-z[c.severity].rank),r=e.review.checks.items.filter(An).length,s=t.results.tests?.behaviors.filter(d=>d.coverage==="untested").length??0,o=t.results.rollout?.checks.filter(d=>d.state==="blocker").length??0,a=[];return r>0&&a.push({section:"tests",text:`${r} failed CI ${r===1?"check":"checks"}`}),s>0&&a.push({section:"tests",text:`${s} new ${s===1?"behavior has":"behaviors have"} no test`}),o>0&&a.push({section:"rollout",text:`${o} ${o===1?"thing":"things"} to do before you deploy`}),l.jsxs("section",{className:"section",id:"check",children:[l.jsxs("div",{className:"section-head",children:[l.jsxs("div",{children:[l.jsx("h2",{children:"Things to check"}),l.jsx("p",{children:"The few places that need a careful look. Details are in Risks."})]}),l.jsxs("button",{type:"button",className:"action-button",onClick:()=>e.openRisks("findings"),children:["Open Risks",l.jsx(P,{icon:mt,"aria-hidden":"true"})]})]}),!n&&l.jsx(Ye,{id:"findings",stage:t.stages.findings,quiet:!0}),n&&i.length===0&&a.length===0&&l.jsx("p",{className:"empty-copy",children:"Lens found nothing that needs a careful look."}),(i.length>0||a.length>0)&&l.jsxs("ul",{className:"check-rows",children:[i.map(d=>l.jsx("li",{children:l.jsx(Rn,{finding:d,openFinding:e.openFinding})},d.id)),a.map(d=>l.jsx("li",{children:l.jsx("button",{type:"button",className:"check-extra",onClick:()=>e.openRisks(d.section),children:d.text})},d.text))]})]})}function Ic(e){const t=e.analysis.results.map?.intent,n=e.analysis.results.scope,i=n?.unasked??[],r=e.review.pullRequest.body?.trim();return l.jsxs("section",{className:"section",id:"scope",children:[l.jsxs("div",{className:"section-head",children:[l.jsx("h2",{children:t&&t.issues.length>0?`Asked in ${t.issues.map(s=>s.key).join(", ")}, and what was built`:"What was asked, and what was built"}),t&&t.source!=="issue"&&l.jsxs("a",{className:"action-button intent-connect",href:"https://console.uigraph.app",target:"_blank",rel:"noreferrer",title:"Lens then compares the change with the ticket, not only the description",children:[l.jsx(ac,{"aria-hidden":"true"}),l.jsx(oc,{"aria-hidden":"true"}),"Connect Linear or Jira"]}),t&&l.jsx("p",{children:Bk(t)})]}),t&&l.jsxs("div",{className:"intent",children:[t.issues.length>0&&l.jsx("div",{className:"intent-issues",children:t.issues.map(s=>l.jsx(Vk,{issue:s},s.key))}),l.jsx("p",{children:l.jsx(M,{text:t.statement})}),t.guess&&l.jsx("p",{className:"guess-note",children:"Link the issue or describe the task in the pull request for a better comparison."}),r&&l.jsxs("details",{className:"intent-description",children:[l.jsx("summary",{children:"Read the pull request description"}),l.jsx("div",{className:"markdown-body",children:l.jsx(nu,{remarkPlugins:[iu],components:{a:Uk},children:r})})]})]}),l.jsx(rt,{analysis:e.analysis,stage:"scope",quiet:!0,children:()=>{if(!n)return null;const s=n.asked.toSorted((a,d)=>ms[a.status].rank-ms[d.status].rank),o=s.filter(a=>a.status==="built").length;return l.jsxs(l.Fragment,{children:[s.length>0&&l.jsxs(l.Fragment,{children:[l.jsx("p",{className:"asked-count",children:o===s.length?`All ${o} built as asked`:`${o} of ${s.length} built as asked. Gaps first.`}),l.jsx("ul",{className:"checklist",children:s.map(a=>l.jsx(Wk,{review:e.review,analysis:e.analysis,item:a,findings:e.findings,openFile:e.openFile,openFinding:e.openFinding},a.criterionId))})]}),l.jsxs("div",{className:"unasked",children:[l.jsxs("div",{className:"unasked-head",children:[l.jsx("h3",{children:"Done without being asked"}),l.jsx("p",{children:"Changes in the diff that the task does not need"})]}),i.length===0?l.jsx("p",{className:"empty-copy",children:"Nothing in the diff is outside the task."}):l.jsx("ul",{className:"rows",children:i.map((a,d)=>l.jsxs("li",{children:[l.jsxs("div",{className:"row-top",children:[l.jsx("strong",{children:l.jsx(M,{text:a.text})}),l.jsx(zi,{tone:a.tone,children:a.effect})]}),a.mentioned&&l.jsx("small",{children:"The description mentions it, but the task does not need it."}),l.jsx(jt,{findings:Tt(e.findings,a.locations),openFinding:e.openFinding}),l.jsx(He,{review:e.review,analysis:e.analysis,locations:a.locations,openFile:e.openFile})]},d))})]})]})}})]})}function Vk(e){const t=e.issue.tracker,n=t!==null&&Object.hasOwn($a,t.toLowerCase())?$a[t.toLowerCase()]:null,i=l.jsxs(l.Fragment,{children:[n?l.jsx(n,{"aria-hidden":"true"}):l.jsx(P,{icon:nh,"aria-hidden":"true"}),t&&l.jsx("span",{children:t}),l.jsx("span",{className:"intent-issue-key",children:e.issue.key}),l.jsx("span",{className:"intent-issue-title",children:e.issue.title}),e.issue.url&&l.jsx(P,{icon:zt,"aria-hidden":"true"})]});return e.issue.url===null?l.jsx("span",{className:"intent-issue",children:i}):l.jsx("a",{className:"intent-issue",href:e.issue.url,target:"_blank",rel:"noreferrer",children:i})}function Bk(e){if(e.guess)return"Guessed from the code";switch(e.source){case"issue":return e.issues.length>0?`From ${e.issues.map(t=>t.key).join(", ")}`:"From the linked issue";case"description":return"From the pull request description";case"commits":return"From the commit messages";case"none":return"Nobody stated the task";default:throw new Error(`Unknown intent source: ${String(e.source)}`)}}function Wk(e){const t=e.item,n=ms[t.status],i=Tt(e.findings,t.locations);return l.jsxs("li",{children:[l.jsx(zi,{tone:n.tone,children:l.jsx("span",{className:"sr-only",children:n.label})}),l.jsxs("div",{children:[l.jsx("strong",{children:l.jsx(M,{text:t.text})}),t.status!=="built"&&l.jsxs("p",{children:[l.jsxs("b",{children:[n.label,"."]})," ",l.jsx(M,{text:t.detail})]}),l.jsx(jt,{findings:i,openFinding:e.openFinding}),l.jsx(He,{review:e.review,analysis:e.analysis,locations:t.locations,openFile:e.openFile})]})]})}function Uk(e){return l.jsx("a",{...e,target:"_blank",rel:"noreferrer"})}const Gk={rules:"Rule · input to result",matrix:"Every case",fields:"Before and after",logic:"Logic · simplified from the code",json:"Example · keys from the code",timeline:"Example sequence",states:"States and transitions",sequence:"Who calls whom",callers:"Who calls this",shape:"Fields · names from the code"},Wa={same:{mark:"",label:"Unchanged"},added:{mark:"+",label:"Added"},changed:{mark:"~",label:"Changed"},removed:{mark:"−",label:"Removed"}};function xn(e){return e.change==="same"?null:l.jsxs("span",{className:`visual-mark visual-mark-${e.change}`,children:[l.jsx("span",{"aria-hidden":"true",children:Wa[e.change].mark}),l.jsx("span",{className:"sr-only",children:Wa[e.change].label})]})}function zk(e){const t=e.visual;return l.jsxs("figure",{className:`story-visual story-visual-${t.type}`,children:[l.jsxs("figcaption",{children:[l.jsx("span",{className:"story-visual-title",children:l.jsx(M,{text:t.title})}),l.jsx("span",{className:"story-visual-kind",children:Gk[t.type]})]}),l.jsx(qk,{visual:t}),t.type==="json"&&t.note&&l.jsx("p",{className:"story-visual-note",children:l.jsx(M,{text:t.note})}),e.unknownKeys.length>0&&l.jsxs("p",{className:"story-visual-warning",children:["Lens could not find ",e.unknownKeys.length===1?"this name":"these names"," in the code: ",e.unknownKeys.map(n=>`"${n}"`).join(", "),"."]}),l.jsx(He,{review:e.review,analysis:e.analysis,locations:ox(Os(t)),openFile:e.openFile})]})}function qk(e){const t=e.visual;switch(t.type){case"rules":return l.jsx(Kk,{visual:t});case"matrix":return l.jsx(Zk,{visual:t});case"fields":return l.jsx(Xk,{visual:t});case"logic":return l.jsx(Jk,{visual:t});case"json":return l.jsx(Qk,{visual:t});case"timeline":return l.jsx(tx,{visual:t});case"states":return l.jsx(nx,{visual:t});case"sequence":return l.jsx(ix,{visual:t});case"callers":return l.jsx(rx,{visual:t});case"shape":return l.jsx(sx,{visual:t});default:throw new Error(`Unknown visual: ${String(t.type)}`)}}function Kk(e){return l.jsxs("table",{className:"story-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{scope:"col",children:e.visual.inputLabel}),l.jsx("th",{scope:"col",children:e.visual.resultLabel})]})}),l.jsx("tbody",{children:e.visual.rows.map((t,n)=>l.jsxs("tr",{children:[l.jsx("td",{children:l.jsx("code",{children:t.input===""?'""':t.input})}),l.jsx("td",{className:`tone-text-${t.tone}`,children:l.jsx(M,{text:t.result})})]},n))})]})}function Zk(e){const t=e.visual;return l.jsxs("table",{className:"story-table story-matrix",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsxs("th",{scope:"col",children:[l.jsx("span",{className:"matrix-axis",children:t.rowLabel}),l.jsx("span",{className:"matrix-axis-sep","aria-hidden":"true",children:"×"}),l.jsx("span",{className:"matrix-axis",children:t.columnLabel})]}),t.columns.map(n=>l.jsx("th",{scope:"col",children:n},n))]})}),l.jsx("tbody",{children:t.rows.map((n,i)=>l.jsxs("tr",{children:[l.jsx("th",{scope:"row",children:n}),t.columns.map((r,s)=>{const o=t.cells.find(a=>a.row===i&&a.column===s);return l.jsx("td",{className:o?.changed?"matrix-changed":void 0,children:o?l.jsx(M,{text:o.result}):l.jsx("span",{className:"muted-text",children:"Not handled"})},r)})]},n))})]})}function Xk(e){return l.jsxs("table",{className:"story-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{scope:"col",children:"Field"}),l.jsx("th",{scope:"col",children:"Before"}),l.jsx("th",{scope:"col",children:"After"})]})}),l.jsx("tbody",{children:e.visual.rows.map((t,n)=>l.jsxs("tr",{children:[l.jsx("th",{scope:"row",children:l.jsx("code",{children:t.field})}),l.jsx("td",{children:l.jsx(M,{text:t.before})}),l.jsx("td",{className:t.before!==t.after?"field-changed":void 0,children:l.jsx(M,{text:t.after})})]},n))})]})}function Jk(e){const t=e.visual,n=t.before.length>0;return l.jsxs("div",{className:n?"logic-diff":"logic-diff logic-new",children:[n&&l.jsxs("div",{className:"logic-side",children:[l.jsx("span",{className:"logic-label",children:"Before"}),l.jsx("pre",{className:"logic-code",children:t.before.map((i,r)=>l.jsx("span",{className:"logic-line",children:l.jsx("span",{children:i.text})},r))})]}),l.jsxs("div",{className:"logic-side",children:[l.jsx("span",{className:"logic-label logic-label-after",children:n?"After":"New logic"}),l.jsx("pre",{className:"logic-code",children:t.after.map((i,r)=>l.jsxs("span",{className:`logic-line logic-${i.change}`,children:[l.jsx("span",{children:i.text}),i.note&&l.jsx("span",{className:"logic-note",children:i.note})]},r))})]})]})}function Qk(e){let t;try{t=JSON.stringify(JSON.parse(e.visual.json),null,2)}catch{t=e.visual.json}const n=new Set(e.visual.highlight);return l.jsx("pre",{className:"json-example",children:t.split(`
356
- `).map((i,r)=>{const s=/^\s*"([^"]+)":/.exec(i)?.[1],o=s!==void 0&&n.has(s);return l.jsxs("span",{className:o?"json-line json-marked":"json-line",children:[l.jsx("span",{children:l.jsx(ex,{line:i})}),o&&l.jsx("span",{className:"logic-note",children:"new or changed"})]},r)})})}const Yk=/("(?:\\.|[^"\\])*")(\s*:)?|\b(true|false|null)\b|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g;function ex(e){const t=[];let n=0;for(const i of e.line.matchAll(Yk)){const r=i.index??0;r>n&&t.push(e.line.slice(n,r)),i[1]!==void 0?(t.push(l.jsx("span",{className:i[2]?"json-key":"json-string",children:i[1]},r)),i[2]&&t.push(i[2])):i[3]!==void 0?t.push(l.jsx("span",{className:"json-literal",children:i[3]},r)):t.push(l.jsx("span",{className:"json-number",children:i[4]},r)),n=r+i[0].length}return n<e.line.length&&t.push(e.line.slice(n)),t}function tx(e){return l.jsx("ol",{className:"story-timeline",children:e.visual.events.map((t,n)=>l.jsxs("li",{className:t.state?"timeline-made":"timeline-none",children:[l.jsx("span",{className:"timeline-action",children:l.jsx(M,{text:t.action})}),l.jsx("span",{className:"timeline-node","aria-hidden":t.state===null,children:t.state??"none"}),l.jsx("span",{className:"timeline-outcome",children:l.jsx(M,{text:t.outcome})})]},n))})}function nx(e){const t=e.visual,n=[...t.states,...t.transitions].every(s=>s.change==="added"),i=new Set(t.transitions.flatMap(s=>[s.from,s.to])),r=t.states.some(s=>!i.has(s.name))||!n&&t.states.some(s=>s.change!=="same");return l.jsxs("div",{className:"state-machine",children:[(r||n)&&l.jsxs("ul",{className:"state-list",children:[r&&t.states.map(s=>l.jsxs("li",{className:`state-node state-${s.change}`,children:[!n&&l.jsx(xn,{change:s.change}),l.jsx("code",{children:s.name})]},s.name)),n&&l.jsx("li",{className:"state-all-new",children:"All states and transitions are new in this pull request"})]}),l.jsxs("table",{className:"state-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{scope:"col",children:"From"}),l.jsx("th",{scope:"col","aria-label":"becomes"}),l.jsx("th",{scope:"col",children:"To"}),l.jsx("th",{scope:"col",children:"When"})]})}),l.jsx("tbody",{children:t.transitions.map((s,o)=>l.jsxs("tr",{className:`transition-${s.change}`,children:[l.jsxs("td",{children:[!n&&l.jsx(xn,{change:s.change}),l.jsx("code",{className:"state-name",children:s.from})]}),l.jsx("td",{className:"state-arrow","aria-hidden":"true",children:"→"}),l.jsx("td",{children:l.jsx("code",{className:"state-name",children:s.to})}),l.jsx("td",{className:"state-when",children:l.jsx(M,{text:s.on})})]},o))})]})]})}function ix(e){const t=e.visual,n=t.actors.length;return l.jsxs("div",{className:"sequence",style:{gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`},children:[t.actors.map(i=>l.jsx("span",{className:"sequence-actor",children:i},i)),t.messages.map((i,r)=>{const s=t.actors.indexOf(i.from),o=t.actors.indexOf(i.to);if(s===-1||o===-1)return null;const a=Math.min(s,o),d=Math.max(s,o),c=s===o;return l.jsxs("div",{className:["sequence-message",`message-${i.change}`,i.reply?"message-reply":"",o<s?"message-left":"",c?"message-self":""].filter(Boolean).join(" "),style:{gridColumn:`${a+1} / ${d+2}`,paddingInline:`${50/(d-a+1)}%`},children:[l.jsxs("span",{className:"sequence-label",children:[l.jsx(xn,{change:i.change}),l.jsx(M,{text:i.label})]}),l.jsx("i",{"aria-hidden":"true"})]},r)})]})}function rx(e){return l.jsxs("div",{className:"caller-chain",children:[l.jsx("code",{className:"caller-target",children:e.visual.target}),l.jsx("ul",{children:e.visual.callers.map((t,n)=>l.jsxs("li",{className:`caller caller-${t.change}`,children:[l.jsx("span",{className:"caller-arrow","aria-hidden":"true",children:"←"}),l.jsx("code",{children:t.name}),t.via&&l.jsx("span",{className:"caller-via",children:t.via}),l.jsx(xn,{change:t.change})]},n))})]})}function sx(e){return l.jsx("ul",{className:"data-shape",children:e.visual.fields.map((t,n)=>{const i=t.path.split(".");return l.jsxs("li",{className:`shape-field shape-${t.change}`,style:{paddingLeft:`${12+(i.length-1)*18}px`},children:[l.jsxs("span",{className:"shape-name",children:[l.jsx(xn,{change:t.change}),l.jsx("code",{children:i.at(-1)}),i.length>1&&l.jsxs("span",{className:"shape-parent",children:["in ",i.slice(0,-1).join(".")]})]}),l.jsx("span",{className:"shape-type",children:t.type}),t.note&&l.jsx("span",{className:"shape-note",children:l.jsx(M,{text:t.note})})]},n)})})}function Os(e){switch(e.type){case"rules":case"fields":return e.rows.flatMap(t=>t.locations);case"matrix":return e.cells.flatMap(t=>t.locations);case"logic":return e.after.flatMap(t=>t.locations);case"timeline":return e.events.flatMap(t=>t.locations);case"states":return e.transitions.flatMap(t=>t.locations);case"sequence":return e.messages.flatMap(t=>t.locations);case"callers":return e.callers.flatMap(t=>t.locations);case"json":case"shape":return e.locations;default:return[]}}function ox(e){const t=new Set;return e.filter(n=>{const i=`${n.repository}|${n.side}|${n.path}|${n.startLine}|${n.endLine}`;return t.has(i)?!1:(t.add(i),!0)})}const Fs={new:{mark:"+",label:"New",change:"added"},changed:{mark:"~",label:"Changed",change:"changed"},removed:{mark:"−",label:"Removed",change:"removed"}},ax=180,lx=15;function dx(e){const t=e.analysis,n=t.results.story,i=t.stages.verdict.status==="done"||t.stages.verdict.status==="failed";return l.jsxs("div",{className:"story",children:[!i&&l.jsx(Ms,{analysis:t}),t.stages.map.status==="failed"&&l.jsx(Ye,{id:"map",stage:t.stages.map}),l.jsx(rt,{analysis:t,stage:"story",children:()=>n?l.jsx(cx,{review:e.review,analysis:t,story:n,openFile:e.openFile,openFinding:e.openFinding,openRisks:e.openRisks}):null})]})}function cx(e){const t=e.analysis,n=e.story,i=t.results.map,r=t.stages.findings.status==="done",s=t.results.findings?.findings??[],o=t.results.flow?.flows??[],a=new Map(n.chapters.map(f=>[f.id,Ex(f,i)])),d=Rx(n.chapters,i,s),c=Ax(n.chapters,o),u=Ix(n),h=n.unexplained??[];return l.jsxs(l.Fragment,{children:[l.jsxs("section",{className:"story-lead","aria-label":"Summary",children:[l.jsxs("span",{className:"story-chip",children:[u," min read"]}),l.jsx("h2",{className:"story-headline",children:l.jsx(M,{text:n.headline})}),n.summary&&l.jsx("p",{className:"story-summary",children:l.jsx(M,{text:n.summary})})]}),l.jsxs("div",{className:"story-overview",children:[l.jsx(px,{analysis:t,chapters:n.chapters}),l.jsx(mx,{analysis:t,openFinding:e.openFinding,openRisks:e.openRisks})]}),n.chapters.map((f,p)=>l.jsx(ux,{review:e.review,analysis:t,chapter:f,number:n.chapters.length>1?p+1:null,flows:c.get(f.id)??[],contracts:(i?.contracts??[]).filter(m=>f.contracts.includes(m.name)),findings:d.get(f.id)??[],allFindings:s,findingsDone:r,unknownKeys:n.unknownKeys?.[f.id]??[],locations:a.get(f.id)??[],openFile:e.openFile,openFinding:e.openFinding,openRisks:e.openRisks},f.id)),l.jsx(_x,{review:e.review,chapters:n.chapters,unexplained:h,openFile:e.openFile}),l.jsx(vx,{unexplained:h,openRisks:e.openRisks})]})}function ux(e){const t=e.chapter,n=A.useState(e.flows.length>0?"flow":null),i=n[0],r=Fs[t.kind],s=t.files.filter(a=>e.review.files.some(d=>d.path===a)),o=t.matters??null;return l.jsxs("section",{className:`story-chapter chapter-${r.change}`,id:`story-${t.id}`,children:[l.jsxs("div",{className:"story-chapter-head",children:[e.number!==null&&l.jsx("span",{className:`chapter-number change-${r.change}`,children:e.number}),l.jsx("h3",{children:l.jsx(M,{text:t.title})}),l.jsx("span",{className:`chapter-kind change-${r.change}`,children:r.label}),l.jsx(yx,{analysis:e.analysis,chapter:t,locations:e.locations,openRisks:e.openRisks})]}),l.jsx("p",{className:"story-caption",children:l.jsx(M,{text:t.caption})}),t.visual&&l.jsx(zk,{review:e.review,analysis:e.analysis,visual:t.visual,unknownKeys:e.unknownKeys,openFile:e.openFile}),e.findingsDone&&e.findings.length>0&&l.jsxs("div",{className:"story-watch",children:[l.jsxs("span",{className:"story-watch-label",children:["Watch ",e.findings.length]}),l.jsx("ul",{children:e.findings.map(a=>l.jsx("li",{children:l.jsx(Rn,{finding:a,openFinding:e.openFinding})},a.id))})]}),(e.flows.length>0||e.contracts.length>0)&&l.jsxs("div",{className:"story-more",role:"group","aria-label":"More about this chapter",children:[e.flows.length>0&&l.jsxs("button",{type:"button",className:"story-toggle","aria-pressed":i==="flow",onClick:()=>n[1](i==="flow"?null:"flow"),children:[e.flows.length===1?"Flow":"Flows",e.flows.length>1&&l.jsx("span",{children:e.flows.length})]}),e.contracts.length>0&&l.jsxs("button",{type:"button",className:"story-toggle","aria-pressed":i==="surfaces",onClick:()=>n[1](i==="surfaces"?null:"surfaces"),children:[Sx(e.contracts),l.jsx("span",{children:e.contracts.length})]})]}),i==="flow"&&l.jsx("div",{className:"story-extra",children:l.jsx(Lc,{review:e.review,analysis:e.analysis,flows:e.flows,openFile:e.openFile})}),i==="surfaces"&&l.jsx("div",{className:"story-extra",children:l.jsx(ps,{review:e.review,analysis:e.analysis,contracts:e.contracts,findings:e.allFindings,openFile:e.openFile,openFinding:e.openFinding})}),(o||t.unchanged||s.length>0)&&l.jsxs("dl",{className:"chapter-notes",children:[o&&l.jsxs("div",{children:[l.jsx("dt",{children:"Why it matters"}),l.jsx("dd",{children:l.jsx(M,{text:o})})]}),t.unchanged&&l.jsxs("div",{children:[l.jsx("dt",{children:"Doesn't change"}),l.jsx("dd",{children:l.jsx(M,{text:t.unchanged})})]}),s.length>0&&l.jsxs("div",{children:[l.jsx("dt",{children:"Files"}),l.jsx("dd",{children:l.jsx(Lx,{review:e.review,files:s,openFile:e.openFile})})]})]})]})}const hx={new:zu,changed:xu,removed:Uu},fx={break:"Breaking change",bug:"Possible bug",security:"Security",risk:"Risk",decide:"Needs a decision",test:"No test",scope:"Scope",unknown:"Unclear"},Rr=3;function px(e){return l.jsxs("section",{className:"overview-panel","aria-labelledby":"overview-changes",children:[l.jsxs("div",{className:"overview-head",children:[l.jsx("h3",{id:"overview-changes",children:"What changed"}),l.jsxs("p",{children:[e.chapters.length," ",e.chapters.length===1?"change":"changes",", in reading order."]})]}),l.jsx("ol",{className:"overview-list",children:e.chapters.map((t,n)=>{const i=Fs[t.kind],r=Tc(e.analysis,t);return l.jsx("li",{children:l.jsxs("a",{href:`#story-${t.id}`,className:`overview-row chapter-${i.change}`,children:[l.jsx("span",{className:"overview-icon",title:i.label,children:l.jsx(P,{icon:hx[t.kind],"aria-hidden":"true"})}),l.jsxs("span",{className:"overview-text",children:[l.jsxs("strong",{children:[l.jsxs("span",{className:"sr-only",children:[n+1,". ",i.label,":"," "]}),l.jsx(M,{text:t.title})]}),l.jsx("small",{children:l.jsx(M,{text:gx(t.caption)})})]}),r&&r.tone==="warn"&&l.jsx("span",{className:`evidence-mark evidence-${r.tone}`,title:r.title,children:r.label}),l.jsx(P,{className:"overview-chevron",icon:mt,"aria-hidden":"true"})]})},t.id)})})]})}function mx(e){const t=e.analysis,n=t.results,i=t.stages.findings.status==="done",r=(n.findings?.findings??[]).toSorted((c,u)=>z[c.severity].rank-z[u.severity].rank),s=(n.decisions?.decisions??[]).filter(c=>c.origin!=="asked"),o=(n.rollout?.checks??[]).filter(c=>c.state!=="ok"),a=o.filter(c=>c.state==="blocker").length,d=[...bx(t).filter(c=>c.section!=="rollout").map(c=>({section:c.section,label:c.section==="asked"?`Asked: ${c.value.toLowerCase()}`:`Tests: ${c.value}`,tone:c.tone})),...ae(t,"decisions")&&t.stages.decisions.status==="done"&&s.length>0?[{section:"decide",label:`${s.length} author ${s.length===1?"choice":"choices"}`,tone:"neutral"}]:[],...ae(t,"rollout")&&t.stages.rollout.status==="done"&&o.length>0?[{section:"rollout",label:a>0?`${a} ship ${a===1?"blocker":"blockers"}`:`${o.length} ship ${o.length===1?"note":"notes"}`,tone:a>0?"warn":"neutral"}]:[]];return l.jsxs("section",{className:"overview-panel","aria-labelledby":"overview-confirm",children:[l.jsxs("div",{className:"overview-head",children:[l.jsx("h3",{id:"overview-confirm",children:"Things to confirm"}),l.jsx("p",{children:"For a person to check, not a verdict on the code."})]}),l.jsxs("ul",{className:"confirm-list",children:[!i&&l.jsx("li",{className:"confirm-pending",children:"Checking the change…"}),i&&r.length===0&&l.jsx("li",{className:"confirm-pending",children:"Lens found nothing that needs a closer look."}),r.slice(0,Rr).map(c=>l.jsx("li",{children:l.jsxs("button",{type:"button",className:`confirm-item tone-${z[c.severity].tone}`,onClick:()=>e.openFinding(c.id),children:[l.jsx(P,{icon:z[c.severity].icon,"aria-hidden":"true"}),l.jsxs("span",{children:[l.jsx("strong",{children:l.jsx(M,{text:c.title})}),l.jsxs("small",{children:[fx[c.kind]," · ",z[c.severity].label]})]}),l.jsx(P,{className:"overview-chevron",icon:mt,"aria-hidden":"true"})]})},c.id)),r.length>Rr&&l.jsx("li",{children:l.jsxs("button",{type:"button",className:"text-button confirm-more",onClick:()=>e.openRisks("findings"),children:[r.length-Rr," more in Risks"]})})]}),d.length>0&&l.jsx("div",{className:"overview-foot confirm-foot",children:d.map(c=>l.jsx("button",{type:"button",className:`text-button confirm-check tone-${c.tone}`,onClick:()=>e.openRisks(c.section),children:c.label},c.section))})]})}function gx(e){const t=/^.*?[.!?](?=\s|$)/.exec(e.trim());return t?t[0]:e}function bx(e){const t=e.results,n=[],i="…";if(ae(e,"scope")){const r=t.scope?.asked??[],s=r.filter(a=>a.status==="built").length,o=r.length-s;n.push({section:"asked",label:"Asked",value:t.scope?r.length===0?"Nothing stated":o===0?`All ${r.length} built`:`${o} of ${r.length} not as asked`:i,tone:t.scope&&o>0?"warn":"neutral"})}if(ae(e,"tests")){const r=t.tests?.behaviors.filter(s=>s.coverage==="untested").length??0;n.push({section:"tests",label:"Tests",value:t.tests?r===0?"Behaviors covered":`${r} untested`:i,tone:t.tests&&r>0?"warn":"neutral"})}if(ae(e,"rollout")){const r=t.rollout?.checks??[],s=r.filter(a=>a.state==="blocker").length,o=r.filter(a=>a.state==="warning").length;n.push({section:"rollout",label:"Ship",value:t.rollout?s>0?`${s} ${s===1?"blocker":"blockers"}`:o>0?`${o} to check`:"Nothing special":i,tone:s>0||o>0?"warn":"neutral"})}return n}function vx(e){return l.jsxs("section",{className:"story-end",children:[e.unexplained.length>0&&l.jsxs("p",{className:"story-coverage story-coverage-warn",children:[e.unexplained.length," changed ",e.unexplained.length===1?"file is":"files are"," not explained by any chapter. Check ",e.unexplained.length===1?"it":"them"," by hand."]}),l.jsxs("button",{type:"button",className:"action-button",onClick:()=>e.openRisks("findings"),children:["Review the risks",l.jsx(P,{icon:mt,"aria-hidden":"true"})]})]})}function yx(e){const t=Tc(e.analysis,e.chapter),n=e.locations.length>0?null:{label:"Inferred",tone:"missing",title:"No code lines back this chapter. It is the model reading of the change."};return l.jsxs("span",{className:"evidence-marks",children:[t&&t.tone==="warn"&&l.jsx("button",{type:"button",className:`evidence-mark evidence-${t.tone}`,title:t.title,onClick:()=>e.openRisks("tests"),children:t.label}),n&&l.jsx("span",{className:`evidence-mark evidence-${n.tone}`,title:n.title,children:n.label})]})}function Tc(e,t){if(!ae(e,"tests")||e.stages.tests.status!=="done")return null;const n=(e.results.tests?.behaviors??[]).filter(o=>t.behaviors.includes(o.behaviorId)),i=n.filter(o=>o.coverage==="untested").length,r=n.filter(o=>o.coverage==="covered").length,s=t.files.some(o=>_n.test(o));return n.length>0&&r===n.length?{label:"Tested",tone:"ok",title:"A test asserts every behavior in this chapter."}:i>0?{label:i===n.length?"No test":`${i} of ${n.length} untested`,tone:"warn",title:"Lens looked for a test that asserts this behavior and found none."}:s?{label:"Tests changed",tone:"neutral",title:"This chapter changes test files. Lens could not tie them to a behavior."}:{label:"Test unknown",tone:"neutral",title:"Lens could not tell whether a test covers this."}}const _n=/(^|\/)(spec|specs|test|tests|__tests__|testdata|fixtures)\/|(_spec|_test|\.spec|\.test)\.[a-z]+$/i,kx=26,xx=64;function _x(e){const t=new Map(e.review.files.map(r=>[r.path,r.additions+r.deletions])),n=Math.max(1,...t.values()),i=[...e.chapters.map((r,s)=>({key:r.id,label:`${e.chapters.length>1?`${s+1} `:""}${r.title}`,tone:Fs[r.kind].change,files:r.files.filter(o=>t.has(o))})),...e.unexplained.length>0?[{key:"unexplained",label:"Not in a chapter",tone:"unexplained",files:e.unexplained}]:[]];return l.jsxs("section",{className:"change-map","aria-label":"Where the lines changed",children:[l.jsxs("div",{className:"change-map-head",children:[l.jsx("h3",{children:"Where the lines changed"}),l.jsx("p",{children:e.unexplained.length===0?`All ${e.review.files.length} changed files belong to a chapter. Taller means more lines.`:"Taller means more lines. Files in no chapter need a look by hand."})]}),l.jsx(xc,{label:"Changed files by chapter",children:l.jsx("div",{className:"change-map-columns",children:i.map(r=>{const s=_c(r.files),o=r.files.reduce((a,d)=>a+(t.get(d)??0),0);return l.jsxs("div",{className:`change-map-column map-${r.tone}`,children:[l.jsx("span",{className:"change-map-label",title:r.label,children:r.label}),l.jsxs("span",{className:"change-map-total",children:[o," lines"]}),r.files.toSorted((a,d)=>(t.get(d)??0)-(t.get(a)??0)).map(a=>{const d=t.get(a)??0;return l.jsxs("button",{type:"button",className:_n.test(a)?"change-map-file map-test":"change-map-file",style:{minHeight:`${kx+Math.round(xx*d/n)}px`},onClick:()=>e.openFile(a),title:`${a}, ${d} lines`,children:[l.jsx("span",{className:"change-map-name",children:s.get(a)}),l.jsxs("span",{className:"change-map-lines",children:[_n.test(a)?"test · ":"",d]})]},a)})]},r.key)})})})]})}const Cx=/(^|\/)(\.snapshot[^/]*|[^/]*\.snap|[^/]*-lock\.(json|yaml)|[^/]*\.lock|[^/]*\.min\.(js|css)|[^/]*\.pb\.go|[^/]*_generated\.[a-z]+)$|(^|\/)(generated|__generated__)\//i,wx=3;function Lx(e){const t=A.useState(!1),n=t[0],i=new Map(e.review.files.map(f=>[f.path,f.additions+f.deletions])),r=e.files.toSorted((f,p)=>(i.get(p)??0)-(i.get(f)??0)),s=r.filter(f=>_n.test(f)),o=r.filter(f=>!_n.test(f)&&Cx.test(f)),a=r.filter(f=>!s.includes(f)&&!o.includes(f)),d=n?[...a,...s,...o]:a.slice(0,wx),c=r.length-d.length,u=_c(r),h=[s.length>0?`${s.length} ${s.length===1?"test":"tests"}`:null,o.length>0?`${o.length} generated`:null].filter(f=>f!==null);return l.jsxs("span",{className:"chapter-files",children:[d.map(f=>l.jsx("button",{type:"button",className:"story-file",onClick:()=>e.openFile(f),title:f,children:u.get(f)},f)),c>0&&l.jsxs("button",{type:"button",className:"text-button chapter-files-more",onClick:()=>t[1](!0),children:["+",c," more",h.length>0?` (${h.join(", ")})`:""]})]})}function Sx(e){const t=new Set(e.map(n=>n.kind));return t.size===1&&t.has("schema")?e.length===1?"Table":"Tables":t.size===1&&t.has("api")?e.length===1?"Endpoint":"Endpoints":"Data & API"}function Ex(e,t){const n=(t?.behaviors??[]).filter(r=>e.behaviors.includes(r.id)),i=(t?.contracts??[]).filter(r=>e.contracts.includes(r.name));return[...n.flatMap(r=>r.locations),...i.flatMap(r=>r.locations),...e.visual?Os(e.visual):[]]}function Rx(e,t,n){const i=new Map,r=new Map(e.map(o=>[o.id,{story:[...(t?.behaviors??[]).filter(a=>o.behaviors.includes(a.id)).flatMap(a=>a.locations),...o.visual?Os(o.visual):[]],contracts:(t?.contracts??[]).filter(a=>o.contracts.includes(a.name)).flatMap(a=>a.locations)}])),s=n.filter(o=>o.kind!=="test").toSorted((o,a)=>z[o.severity].rank-z[a.severity].rank);for(const o of s){const a=(c,u)=>{if(u.repository!==null)return 0;const h=[{...o,locations:[u]}],f=r.get(c.id);return f&&Tt(h,f.story).length>0?3:f&&Tt(h,f.contracts).length>0?2:c.files.includes(u.path)?1:0};let d=null;for(const c of e){const u=o.locations.reduce((h,f)=>h+a(c,f),0);u>0&&(d===null||u>d.score)&&(d={chapter:c,score:u})}d&&i.set(d.chapter.id,[...i.get(d.chapter.id)??[],o])}return i}function Ax(e,t){const n=new Map;for(const i of t){const r=(i.behaviors??[]).map(s=>e.find(o=>o.behaviors.includes(s))).find(s=>s!==void 0)??e[0];r&&n.set(r.id,[...n.get(r.id)??[],i])}return n}function Ix(e){const t=[e.headline,...e.why.map(r=>r.text),...e.chapters.flatMap(r=>[r.title,r.caption])].join(" ").split(/\s+/).filter(Boolean).length,n=e.chapters.filter(r=>r.visual!==null).length,i=t/ax*60+n*lx;return Math.max(1,Math.round(i/60))}const Tx=[{id:"flow",label:"Changed flows",description:"Before and after diagrams of the runtime flow"},{id:"scope",label:"What was asked",description:"Compare the change with its issue, description, or commits"},{id:"decisions",label:"Choices to confirm",description:"Values the code picked, such as limits and timeouts"},{id:"impact",label:"Impact",description:"Other services the change affects"},{id:"tests",label:"Test coverage",description:"Which new behavior has a test"},{id:"rollout",label:"Rollout",description:"A safe order to ship and checks before you deploy"}],jx=[1,2,4,6,10];function Nx(e){const t=A.useRef(null),n=A.useState(e.settings),i=n[0],r=n[1],s=A.useState(!1),o=s[0],a=s[1],d=A.useState(null),c=d[0],u=d[1],h=!Ds(e.settings,i);async function f(){a(!0),u(null);try{await e.saveSettings(i),t.current?.close()}catch(p){u(p instanceof Error?p.message:"Lens could not save the settings.")}finally{a(!1)}}return l.jsxs(l.Fragment,{children:[l.jsxs("button",{type:"button",className:"action-button",onClick:()=>{r(e.settings),u(null),t.current?.showModal()},children:[l.jsx(P,{icon:il,"aria-hidden":"true"}),"Customize"]}),l.jsx("dialog",{className:"customize",ref:t,"aria-labelledby":"customize-title",children:l.jsxs("form",{method:"dialog",onSubmit:p=>{p.preventDefault(),f()},children:[l.jsxs("header",{className:"customize-head",children:[l.jsxs("div",{children:[l.jsx("h2",{id:"customize-title",children:"Customize Lens"}),l.jsx("p",{children:"Your settings apply to every review on this machine."})]}),l.jsx("button",{type:"button",className:"icon-button","aria-label":"Close",onClick:()=>t.current?.close(),children:l.jsx(P,{icon:Ti,"aria-hidden":"true"})})]}),l.jsx("div",{className:"customize-body",children:l.jsx(jc,{value:i,onChange:r,repositoryConfig:e.repositoryConfig})}),l.jsxs("footer",{className:"customize-foot",children:[l.jsx("p",{role:c?"alert":void 0,className:c?"customize-error":void 0,children:c??(h?"Saving starts a new review. It takes a few minutes.":"The review does not need to run again.")}),l.jsx("button",{type:"button",className:"action-button",onClick:()=>t.current?.close(),children:"Cancel"}),l.jsx("button",{type:"submit",className:"action-button primary",disabled:o,children:o?"Saving":h?"Save and run again":"Save"})]})]})})]})}function jc(e){const t=e.value,n=e.onChange,i=e.repositoryConfig;return l.jsxs("div",{className:"customize-fields",children:[l.jsxs("fieldset",{children:[l.jsx("legend",{children:"Agent"}),l.jsx("p",{className:"customize-hint",children:"The coding agent that runs the review. It uses your own login for that agent."}),l.jsxs("div",{className:"segmented",role:"group","aria-label":"Agent",children:[l.jsx(pt,{className:"segmented-indicator",selector:"[aria-pressed='true']"}),fc.map(r=>l.jsx("button",{type:"button","aria-pressed":t.agent===r,onClick:()=>n({...t,agent:r,model:r===t.agent?t.model:""}),children:Aa[r]},r))]})]}),l.jsxs("fieldset",{children:[l.jsx("legend",{children:"Model"}),l.jsxs("p",{className:"customize-hint",children:["Leave empty to use the default model of ",Aa[t.agent],"."]}),l.jsx("input",{type:"text","aria-label":"Model",value:t.model,maxLength:200,spellCheck:!1,placeholder:`For example: ${Hy[t.agent]}`,onChange:r=>n({...t,model:r.target.value})})]}),l.jsxs("fieldset",{children:[l.jsx("legend",{children:"Focus"}),i?.focus&&l.jsxs("div",{className:"customize-repository-focus",children:[l.jsxs("span",{children:["From ",".uigraph.lens.yml"]}),l.jsx("p",{children:i.focus})]}),l.jsx("textarea",{"aria-label":"Review focus",value:t.focus,maxLength:2e3,rows:3,placeholder:"For example: focus on security and data loss. Ignore style.",onChange:r=>n({...t,focus:r.target.value})})]}),l.jsxs("fieldset",{children:[l.jsx("legend",{children:"Sections"}),l.jsx("p",{className:"customize-hint",children:"Lens skips a section that is off."}),l.jsx("div",{className:"customize-rows",children:Tx.map(r=>{const s=i?.steps?.[r.id],o=s??t.steps[r.id];return l.jsxs(A.Fragment,{children:[l.jsxs("label",{className:"customize-row",children:[l.jsxs("span",{children:[l.jsx("b",{children:r.label}),l.jsx("small",{children:s===void 0?r.description:`Set by ${Vy}`})]}),l.jsx("input",{type:"checkbox",role:"switch",checked:o,disabled:s!==void 0,onChange:a=>n({...t,steps:{...t.steps,[r.id]:a.target.checked}})})]}),r.id==="flow"&&o&&l.jsxs("div",{className:"customize-row customize-subrow",children:[l.jsxs("span",{children:[l.jsx("b",{children:"Flow diagrams, up to"}),l.jsx("small",{children:i?.diagrams===void 0?"At most this many. One for each changed flow, fewer when fewer change.":"Set by .uigraph.lens.yml"})]}),l.jsxs("div",{className:"segmented",role:"group","aria-label":"Flow diagrams",children:[l.jsx(pt,{className:"segmented-indicator",selector:"[aria-pressed='true']"}),jx.map(a=>l.jsx("button",{type:"button","aria-pressed":(i?.diagrams??t.diagrams)===a,disabled:i?.diagrams!==void 0,onClick:()=>n({...t,diagrams:a}),children:a},a))]})]})]},r.id)})})]})]})}function Px(e){const t=e.size??34;return l.jsxs("svg",{width:t,height:t,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"UIGraph",className:"brand-mark",children:[l.jsx("rect",{width:"64",height:"64",rx:"16",fill:"#0B0E16"}),l.jsxs("g",{stroke:"#3B6BFF",strokeWidth:"4",strokeLinecap:"round",children:[l.jsx("line",{x1:"20",y1:"20",x2:"44",y2:"20"}),l.jsx("line",{x1:"44",y1:"20",x2:"44",y2:"44"}),l.jsx("line",{x1:"44",y1:"44",x2:"20",y2:"44"}),l.jsx("line",{x1:"20",y1:"44",x2:"20",y2:"20"})]}),l.jsx("circle",{cx:"44",cy:"20",r:"6",fill:"#3B6BFF"}),l.jsx("circle",{cx:"44",cy:"44",r:"6",fill:"#3B6BFF"}),l.jsx("circle",{cx:"20",cy:"44",r:"6",fill:"#3B6BFF"}),l.jsx("circle",{cx:"20",cy:"20",r:"6.5",fill:"#FFFFFF"})]})}const Nc="uigraph-lens.diff-style",Pc="uigraph-lens.wrap-lines",Dx=[{id:"story",label:"Story",icon:wu},{id:"map",label:"Map",icon:Wu},{id:"code",label:"Code",icon:eh},{id:"risks",label:"Risks",icon:Yu}];function Mx(e){const t=e.location,n=t.tab,i=A.useState(t.finding===null?null:[t.finding]),r=i[0],s=i[1],o=A.useRef(null),a=e.analysis,d=a!==null,c=Dx;A.useEffect(()=>{const y=o.current;if(y===null||!d)return;const x=Ox(y),C=sessionStorage.getItem(Ar());C!==null&&(sessionStorage.removeItem(Ar()),requestAnimationFrame(()=>x.scrollTo({top:Number(C)})));function _(){sessionStorage.setItem(Ar(),String(x.scrollTop))}return window.addEventListener("pagehide",_),()=>window.removeEventListener("pagehide",_)},[d]);function u(y){const x={...t,...y};JSON.stringify(x)!==JSON.stringify(t)&&e.onLocationChange(x)}function h(y){u({tab:y,finding:null})}function f(y){u({tab:"code",finding:null,file:y,code:"files"})}function p(y){u({tab:"risks",finding:null,section:y}),window.scrollTo({top:0})}function m(y){u({tab:"risks",finding:y,section:"findings"}),r===null?s([y]):r.includes(y)||s([...r,y])}function v(y,x=t.finding){u({tab:"code",finding:x,group:y,code:"order"}),window.scrollTo({top:0})}function k(y){const x=c.findIndex(_=>_.id===n),C=y.key==="ArrowRight"?c[(x+1)%c.length]:y.key==="ArrowLeft"?c[(x-1+c.length)%c.length]:y.key==="Home"?c[0]:y.key==="End"?c[c.length-1]:null;C&&(y.preventDefault(),h(C.id),document.getElementById(`tab-${C.id}`)?.focus())}const b=e.review;return l.jsx(dc,{value:{location:t,go:u},children:l.jsx("div",{className:"uigraph-lens",ref:o,children:l.jsxs("div",{className:e.hideHeader?"app-shell no-header":"app-shell",children:[!e.hideHeader&&l.jsxs("header",{className:"app-header",children:[l.jsxs("div",{className:"brand",children:[l.jsx(Px,{size:32}),l.jsx("span",{children:"UIGraph"}),l.jsx("strong",{children:"Lens"})]}),b.repository.githubUrl===null||b.pullRequest.githubUrl===null?l.jsx("div",{className:"repository-context",children:l.jsx("span",{children:b.repository.fullName})}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"repository-context",children:[l.jsx("a",{href:b.repository.githubUrl,target:"_blank",rel:"noreferrer",children:b.repository.fullName}),l.jsx("span",{children:"/"}),l.jsxs("a",{href:b.pullRequest.githubUrl,target:"_blank",rel:"noreferrer",children:["pull/",b.pullRequest.number]})]}),l.jsxs("a",{className:"github-link",href:b.pullRequest.githubUrl,target:"_blank",rel:"noreferrer",children:["Open on GitHub",l.jsx(P,{icon:zt,"aria-hidden":"true"})]})]})]}),l.jsxs("main",{children:[l.jsxs("section",{className:"pr-summary",children:[l.jsxs("div",{className:"pr-title",children:[l.jsx("h1",{children:b.pullRequest.title}),e.customize,e.customize===void 0&&e.settings&&e.saveSettings&&l.jsx(Nx,{settings:e.settings,repositoryConfig:a?.repositoryConfig??null,saveSettings:e.saveSettings})]}),l.jsxs("div",{className:"pr-meta",children:[l.jsx($x,{review:b}),b.pullRequest.author&&l.jsxs("a",{className:"author-link",href:b.pullRequest.author.githubUrl,target:"_blank",rel:"noreferrer",children:[l.jsx("img",{src:b.pullRequest.author.avatarUrl,alt:"",width:"18",height:"18"}),b.pullRequest.author.login]}),l.jsxs("span",{className:"branch-comparison",children:[l.jsx("span",{children:b.pullRequest.head.label}),l.jsx(P,{icon:Cu,"aria-label":"into"}),l.jsx("span",{children:b.pullRequest.base.branch})]}),l.jsxs("span",{children:[Pe(b.pullRequest.changedFiles)," ",b.pullRequest.changedFiles===1?"file":"files"," ",l.jsxs("span",{className:"addition",children:["+",Pe(b.pullRequest.additions)]})," ",l.jsxs("span",{className:"deletion",children:["−",Pe(b.pullRequest.deletions)]})]}),l.jsxs("span",{children:["Updated ",cc(b.pullRequest.updatedAt)]}),b.pullRequest.behindBy!==null&&b.pullRequest.behindBy>0&&l.jsxs("span",{className:"behind",children:[Pe(b.pullRequest.behindBy)," behind"," ",b.pullRequest.base.branch]})]})]}),l.jsxs("div",{className:"review-tabs",role:"tablist","aria-label":"Pull request sections",onKeyDown:k,children:[l.jsx(pt,{className:"review-tabs-indicator",selector:"[aria-selected='true']"}),c.map(y=>{const x=Zx(y.id,b,a);return l.jsxs("button",{type:"button",role:"tab",id:`tab-${y.id}`,"aria-selected":n===y.id,"aria-controls":"review-panel",tabIndex:n===y.id?0:-1,onClick:C=>{h(y.id),C.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"})},children:[l.jsx(P,{icon:y.icon,"aria-hidden":"true"}),y.label,x&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:`tab-note tone-${x.tone}`,title:x.label,"aria-hidden":"true",children:x.text}),l.jsxs("span",{className:"sr-only",children:[", ",x.label]})]})]},y.id)})]}),l.jsxs("div",{className:"review-content",id:"review-panel",role:"tabpanel","aria-labelledby":`tab-${n}`,children:[n==="story"&&(a!==null&&a.stages.story!==void 0?l.jsx(dx,{review:b,analysis:a,openFile:f,openFinding:m,openRisks:p}):l.jsx(Hk,{review:b,analysis:a,openFile:f,openFinding:m,openRisks:p,openGroup:v,renderImpactGraph:e.renderImpactGraph})),n==="map"&&l.jsx(rt,{analysis:a,stage:"map",title:"What this change touches",children:()=>a===null?null:l.jsx(wc,{review:b,analysis:a,findings:a.results.findings?.findings??[],openFile:f,openFinding:m,openGroup:v,renderImpactGraph:e.renderImpactGraph,lenses:["data","api","services","files"],title:"What this change touches"})}),n==="code"&&l.jsxs("div",{className:"code-tab",children:[l.jsxs("div",{className:"segmented",role:"group","aria-label":"Code view",children:[l.jsx(pt,{className:"segmented-indicator",selector:"[aria-pressed='true']"}),a?.results.map&&l.jsxs("button",{type:"button","aria-pressed":t.code==="order",onClick:()=>u({code:"order"}),children:["Guided Review",l.jsx("span",{className:"segmented-count",children:a.results.map.groups.length})]}),l.jsxs("button",{type:"button","aria-pressed":t.code==="files",onClick:()=>u({code:"files"}),children:["Files",l.jsx("span",{className:"segmented-count",children:Pe(b.pullRequest.changedFiles)})]}),l.jsxs("button",{type:"button","aria-pressed":t.code==="commits",onClick:()=>u({code:"commits"}),children:["Commits",l.jsx("span",{className:"segmented-count",children:Pe(b.pullRequest.commits)})]})]}),t.code==="files"&&l.jsx(Vx,{review:b,findings:a?.results.findings?.findings??[],selectFile:f,openFinding:m}),t.code==="commits"&&l.jsx(Wx,{review:b}),t.code==="order"&&l.jsx(Ky,{review:b,analysis:a,openFinding:m})]}),n==="risks"&&l.jsx(Ik,{review:b,analysis:a,expanded:r,setExpanded:s,openFile:f,openFinding:m,openGroup:v,checks:l.jsx(Ux,{review:b}),asked:a&&l.jsx(Ic,{review:b,analysis:a,findings:a.results.findings?.findings??[],openFile:f,openFinding:m}),decide:a&&l.jsx(Ac,{review:b,analysis:a,findings:a.results.findings?.findings??[],openFile:f,openFinding:m})})]})]})]})})})}function Ox(e){let t=e.parentElement;for(;t!==null;){const n=getComputedStyle(t).overflowY;if((n==="auto"||n==="scroll")&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}function Ar(){return`uigraph-lens.scroll:${window.location.pathname}${window.location.search}`}function Fx(){const e=localStorage.getItem(Nc);return e==="unified"||e==="split"?e:window.matchMedia("(max-width: 720px)").matches?"unified":"split"}function Hx(){const e=localStorage.getItem(Pc);return e==="true"?!0:e!=="false"}function $x(e){const t=e.review.pullRequest.state,n=e.review.pullRequest.number===null?"Local":e.review.pullRequest.draft?"Draft":t==="merged"?"Merged":t==="open"?"Open":"Closed";return l.jsxs("span",{className:`state-label state-${t}`,children:[l.jsx(P,{icon:t==="merged"?Fu:t==="closed"?Hu:$u,"aria-hidden":"true"}),n]})}function Vx(e){const t=En().location.file,n=A.useState(Fx),i=n[0],r=A.useState(Hx),s=r[0],o=A.useState(""),a=o[0],d=o[1],c=A.useMemo(()=>{const b=a.trim().toLowerCase();return b?e.review.files.filter(y=>y.path.toLowerCase().includes(b)):e.review.files},[e.review.files,a]),u=A.useMemo(()=>Bx(c),[c]),h=A.useState([]),f=h[0],p=h[1],m=e.review.files.find(b=>b.path===t)??e.review.files[0];function v(b){n[1](b),localStorage.setItem(Nc,b)}function k(b){r[1](b),localStorage.setItem(Pc,String(b))}return m?l.jsxs("div",{className:"changes-workspace",children:[l.jsxs("aside",{className:"file-browser",children:[l.jsxs("label",{className:"file-search",children:[l.jsx(P,{icon:Xu,"aria-hidden":"true"}),l.jsx("span",{className:"sr-only",children:"Filter changed files"}),l.jsx("input",{type:"search",value:a,onChange:b=>d(b.target.value),placeholder:"Filter files"})]}),l.jsxs("div",{className:"file-browser-count",children:[c.length," ",c.length===1?"file":"files"]}),l.jsxs("div",{className:"file-list",children:[c.length>0&&l.jsx(Mc,{nodes:u,depth:0,findings:e.findings,selectedPath:m.path,selectFile:e.selectFile,collapsed:a.trim()?[]:f,toggleFolder:b=>p(f.includes(b)?f.filter(y=>y!==b):[...f,b])}),c.length===0&&l.jsxs("p",{className:"file-search-empty",children:["No changed files match “",a,"”."]})]})]}),l.jsxs("section",{className:"file-diff",children:[l.jsxs("header",{className:"file-diff-header",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"file-title-row",children:[l.jsx(Gx,{status:m.status}),l.jsx("h2",{children:m.path})]}),m.previousPath&&l.jsxs("p",{children:["Renamed from ",m.previousPath]})]}),l.jsxs("div",{className:"file-actions",children:[l.jsx(Oc,{file:m}),l.jsxs("div",{className:"segmented",role:"group","aria-label":"Diff layout",children:[l.jsx(pt,{className:"segmented-indicator",selector:"[aria-pressed='true']"}),l.jsx("button",{type:"button","aria-pressed":i==="split",onClick:()=>v("split"),children:"Split"}),l.jsx("button",{type:"button","aria-pressed":i==="unified",onClick:()=>v("unified"),children:"Unified"})]}),l.jsxs("label",{className:"file-wrap",children:[l.jsx("input",{type:"checkbox",checked:s,onChange:b=>k(b.target.checked)}),"Wrap lines"]}),m.githubUrl&&l.jsxs("a",{href:m.githubUrl,target:"_blank",rel:"noreferrer",children:["GitHub",l.jsx(P,{icon:zt,"aria-hidden":"true"})]})]})]}),l.jsx(lc,{file:m,diffStyle:i,wrap:s,marks:vc(e.findings,m.path,e.openFinding)})]})]}):l.jsx("p",{className:"empty-copy",children:"This pull request has no changed files."})}function Bx(e){const t={path:"",children:[]};for(const n of e){const i=n.path.split("/");let r=t;for(const s of i.slice(0,-1)){const o=r.path?`${r.path}/${s}`:s,a=r.children.find(d=>d.kind==="folder"&&d.name===s);if(a?.kind==="folder")r=a;else{const d={kind:"folder",name:s,path:o,children:[]};r.children.push(d),r=d}}r.children.push({kind:"file",name:i[i.length-1],file:n})}return Dc(t.children.map(n=>n.kind==="folder"?gs(n):n))}function gs(e){const t=e.children[0];return e.children.length===1&&t.kind==="folder"?gs({kind:"folder",name:`${e.name}/${t.name}`,path:t.path,children:t.children}):{...e,children:Dc(e.children.map(n=>n.kind==="folder"?gs(n):n))}}function Dc(e){return e.toSorted((t,n)=>t.kind!==n.kind?t.kind==="folder"?-1:1:t.name.localeCompare(n.name,"en",{numeric:!0}))}function Mc(e){const t=12+e.depth*16;return l.jsx("ul",{className:"file-tree",children:e.nodes.map(n=>{if(n.kind==="folder"){const s=!e.collapsed.includes(n.path);return l.jsxs("li",{children:[l.jsxs("button",{type:"button",className:"file-tree-folder","aria-expanded":s,title:n.path,style:{paddingLeft:t},onClick:()=>e.toggleFolder(n.path),children:[l.jsx(P,{icon:mt,className:"file-tree-chevron","aria-hidden":"true"}),l.jsx("img",{className:"file-tree-icon",src:`/api/lens/file-icon?kind=${s?"folder-open":"folder"}&name=${encodeURIComponent(n.name.split("/").at(-1))}`,alt:""}),l.jsx("span",{children:n.name})]}),s&&l.jsx(Mc,{nodes:n.children,depth:e.depth+1,findings:e.findings,selectedPath:e.selectedPath,selectFile:e.selectFile,collapsed:e.collapsed,toggleFolder:e.toggleFolder})]},n.path)}const i=n.file,r=e.findings.filter(s=>s.locations.some(o=>o.repository===null&&o.path===i.path)).toSorted((s,o)=>z[s.severity].rank-z[o.severity].rank)[0];return l.jsx("li",{children:l.jsxs("button",{type:"button",className:"file-tree-file","aria-current":e.selectedPath===i.path?"true":void 0,title:i.previousPath?`${i.path}, renamed from ${i.previousPath}`:i.path,style:{paddingLeft:t},onClick:()=>e.selectFile(i.path),children:[l.jsx("img",{className:"file-tree-icon",src:`/api/lens/file-icon?kind=file&name=${encodeURIComponent(n.name)}`,alt:""}),l.jsx("span",{className:"file-tree-name",children:n.name}),l.jsx("span",{className:r?`file-finding tone-${z[r.severity].tone}`:"file-finding",children:r&&l.jsxs(l.Fragment,{children:[l.jsx(P,{icon:z[r.severity].icon,"aria-hidden":"true"}),l.jsxs("span",{className:"sr-only",children:["Has a ",z[r.severity].label.toLowerCase()," finding"]})]})}),l.jsx(Oc,{file:i,compact:!0})]})},i.path)})})}function Wx(e){return l.jsxs("section",{className:"section",children:[l.jsxs("div",{className:"section-head",children:[l.jsx("h2",{children:"Commits"}),l.jsx("p",{children:"Oldest first"})]}),l.jsx("ol",{className:"commit-list",children:e.review.commits.map(t=>l.jsxs("li",{children:[l.jsx("div",{className:"commit-marker",children:t.authorAvatarUrl?l.jsx("img",{src:t.authorAvatarUrl,width:"30",height:"30",alt:""}):l.jsx(P,{icon:Ou,"aria-hidden":"true"})}),l.jsxs("div",{className:"commit-content",children:[t.githubUrl?l.jsx("a",{href:t.githubUrl,target:"_blank",rel:"noreferrer",children:t.title}):l.jsx("strong",{children:t.title}),t.message&&l.jsx("p",{children:t.message}),l.jsxs("span",{children:[t.authorName," · ",cc(t.authoredAt)]})]}),t.githubUrl?l.jsx("a",{className:"commit-sha",href:t.githubUrl,target:"_blank",rel:"noreferrer",children:t.sha.slice(0,7)}):l.jsx("span",{className:"commit-sha",children:t.sha.slice(0,7)})]},t.sha))}),e.review.commitsTruncated&&l.jsxs("p",{className:"data-warning",children:["GitHub returned ",e.review.commits.length," of"," ",e.review.pullRequest.commits," commits."]})]})}function Ux(e){const t=e.review.checks,n=t.items.toSorted((i,r)=>Ua(i)-Ua(r));return l.jsxs("section",{className:"section",children:[l.jsxs("div",{className:"section-head",children:[l.jsx("h2",{children:"CI checks"}),l.jsxs("p",{children:["For commit ",e.review.pullRequest.head.sha.slice(0,7)]})]}),!t.available&&l.jsx("p",{className:"empty-copy",children:t.reason}),t.available&&n.length===0&&l.jsx("p",{className:"empty-copy",children:"No CI checks ran for this commit, so nothing confirms the build or the tests pass."}),n.length>0&&l.jsx("div",{className:"check-list",children:n.map(i=>l.jsxs("div",{className:"check-row",children:[l.jsx(qx,{check:i}),l.jsxs("div",{children:[l.jsx("strong",{children:i.name}),l.jsx("span",{children:i.provider})]}),l.jsx("span",{className:"check-result",children:Kx(i)}),l.jsx("span",{className:"check-duration",children:uc(i.startedAt,i.completedAt)}),i.githubUrl?l.jsxs("a",{href:i.githubUrl,target:"_blank",rel:"noreferrer",children:["Details",l.jsx(P,{icon:zt,"aria-hidden":"true"})]}):l.jsx("span",{})]},i.id))})]})}function Oc(e){return l.jsxs("span",{className:e.compact?"change-count compact":"change-count",children:[e.file.status!=="removed"&&l.jsxs("span",{className:"addition",children:["+",Pe(e.file.additions)]}),e.file.status!=="added"&&l.jsxs("span",{className:"deletion",children:["−",Pe(e.file.deletions)]})]})}function Gx(e){const t=zx(e.status);return l.jsx("span",{className:`file-status file-status-${e.status}`,title:e.status,children:t})}function zx(e){if(e==="added")return"A";if(e==="removed")return"D";if(e==="modified"||e==="changed")return"M";if(e==="renamed")return"R";if(e==="copied")return"C";if(e==="unchanged")return"U";throw new Error(`Unknown file status: ${e}`)}function qx(e){const t=Hs(e.check);return t==="success"?l.jsx(P,{icon:ji,className:"check-icon success","aria-label":"Passed"}):t==="failure"?l.jsx(P,{icon:Xe,className:"check-icon failure","aria-label":"Failed"}):t==="neutral"?l.jsx(P,{icon:wn,className:"check-icon neutral","aria-label":"Skipped"}):l.jsx(P,{icon:Eu,className:"check-icon pending","aria-label":"In progress"})}function Hs(e){return e.status!=="completed"?"pending":e.conclusion==="success"?"success":e.conclusion==="neutral"||e.conclusion==="skipped"||e.conclusion==="cancelled"?"neutral":"failure"}function Kx(e){const t=Hs(e);return t==="success"?"Passed":t==="failure"?"Failed":t==="neutral"?e.conclusion==="cancelled"?"Cancelled":"Skipped":e.status==="queued"?"Queued":"Running"}function Ua(e){const t=Hs(e);return t==="failure"?0:t==="pending"?1:t==="success"?2:3}function Zx(e,t,n){const i=n?.results;if(e==="story"){const r=i?.story?.chapters.length??0;return r>1?{text:String(r),label:`${r} changes`,tone:"neutral"}:null}if(e==="map"){const r=i?.map?.contracts.length??0;return r>0?{text:String(r),label:`${r} ${r===1?"table or endpoint":"tables and endpoints"}`,tone:"neutral"}:null}if(e==="code")return{text:Pe(t.pullRequest.changedFiles),label:`${Pe(t.pullRequest.changedFiles)} changed ${t.pullRequest.changedFiles===1?"file":"files"}`,tone:"neutral"};if(e==="risks"){const r=i?.findings?.findings??[],s=i?.rollout?.checks.filter(d=>d.state==="blocker").length??0,o=t.checks.items.filter(An).length,a=r.length+s+o;return a===0?null:{text:String(a),label:`${a} ${a===1?"thing":"things"} to check`,tone:o>0||s>0||r.some(d=>d.severity==="high")?"bad":"warn"}}throw new Error(`Unknown tab: ${e}`)}function Xx(e){const t=Fc().id,{data:n,loading:i}=vu(mu,{variables:{orgId:t},skip:!t});if(i||!n)return l.jsx(Za,{label:"Loading service graph..."});const r=gu(n.dependencyGraph),s=new Set(e.services.map(m=>m.name)),o=r.nodes.filter(m=>s.has(m.name)),a=new Set(o.map(m=>m.id)),d=r.edges.filter(m=>a.has(m.source)&&a.has(m.target)),c=new Map;for(const m of e.services){let v=o.find(k=>k.name===m.name);v===void 0&&(v={id:`impact:${m.name}`,name:m.name,service:null},o.push(v)),c.set(v.id,{color:di[m.effect].color,label:di[m.effect].label})}const u=new Map(o.map(m=>[m.name,m.id])),h=e.services.find(m=>m.direction==="self")?.name,f=h===void 0?void 0:u.get(h),p=new Map;for(const m of e.services){if(m.direction==="self")continue;const v=u.get(m.name),k=m.via!==null&&u.has(m.via)?u.get(m.via):f;if(v===void 0||k===void 0)continue;let b=d.find(y=>y.source===v&&y.target===k||y.source===k&&y.target===v);if(b===void 0){if(m.direction==="dependency")b={id:`impact:${m.name}`,source:k,target:v,direction:"downstream"};else if(m.direction==="consumer")b={id:`impact:${m.name}`,source:v,target:k,direction:"downstream"};else throw new Error(`unknown impact direction: ${m.direction}`);d.push(b)}m.effect!=="none"&&m.effect!=="unknown"&&p.set(b.id,di[m.effect].color)}return l.jsx(bu,{nodes:o,edges:d,focusId:f,marks:c,edgeMarks:p,selectedId:u.get(e.selected),onNodeClick:m=>e.select(m.name)})}function Jx(e){const[t,n]=A.useState(!1),[i,r]=A.useState(e.settings),[s,o]=A.useState(!1),[a,d]=A.useState(null),c=!Ds(e.settings,i);async function u(){o(!0),d(null);try{await e.saveSettings(i),n(!1)}catch(h){d(h instanceof Error?h.message:"Lens could not save the settings.")}finally{o(!1)}}return l.jsx(qa,{open:t,onOpenChange:h=>{h&&(r(e.settings),d(null)),n(h)},trigger:l.jsx(Uc,{asChild:!0,children:l.jsxs("button",{type:"button",className:"action-button",children:[l.jsx(P,{icon:il,"aria-hidden":"true"}),"Customize"]})}),children:l.jsxs(Ka,{title:"Customize Lens",description:"Your settings apply to every review on this machine.",footerCancel:!0,footerSubmit:s?"Saving":c?"Save and run again":"Save",footerSubmitLoading:s,onFooterSubmitClick:()=>void u(),children:[l.jsx("div",{className:"uigraph-lens",children:l.jsx(jc,{value:i,onChange:r,repositoryConfig:e.repositoryConfig})}),l.jsx("p",{role:a?"alert":void 0,className:Ga("mt-5 text-xs text-[#828DA3]",a&&"text-red-400"),children:a??(c?"Saving starts a new review. It takes a few minutes.":"The review does not need to run again.")})]})})}function D_(e){const{runId:t}=Hc(),n=Qx(t),i=za(),r=$c(),s=Vc(),o=Xa({queryKey:["lens-settings"],queryFn:fu});return n.run?l.jsxs(l.Fragment,{children:[n.run.running&&l.jsxs("div",{className:"border-stock flex items-center justify-between gap-4 border-b px-6 py-2 text-sm text-[#828DA3]",children:["Review in progress",l.jsx(e_,{runId:t})]}),n.run.running&&n.analysis?.ticketCandidates&&l.jsx(t_,{runId:t,candidates:n.analysis.ticketCandidates}),l.jsx(Mx,{review:n.run.review,analysis:n.analysis,location:vy(s[0]),onLocationChange:a=>s[1](yy(a)),hideHeader:e.inDashboard,renderImpactGraph:a=>l.jsx(Xx,{...a}),customize:o.data&&l.jsx(Jx,{settings:o.data,repositoryConfig:n.analysis?.repositoryConfig??null,saveSettings:async a=>{const d=await du(a);i.setQueryData(["lens-settings"],d);const c=n.run?.review.pullRequest.githubUrl??null;if(n.analysis===null||Ds(n.analysis.settings,d))return;if(c===null){bs.info("The next review uses these settings.");return}const u=await cu(c);i.invalidateQueries({queryKey:["lens-runs"]}),r(e.inDashboard?Vs.lens.dashboardRun(u):Vs.lens.run(u))}})}),!n.connected&&l.jsx(i_,{})]}):l.jsx(Yx,{state:n.state})}function Qx(e){const t=za(),n=Xa({queryKey:["lens-run",e],queryFn:()=>pu(e)}),[i,r]=A.useState(null),[s,o]=A.useState(!0),a=n.data?.running===!0;A.useEffect(()=>{if(!a)return;const c=new EventSource(`/api/lens/runs/${e}/events`);return c.onopen=()=>o(!0),c.onerror=()=>o(!1),c.onmessage=u=>{r({runId:e,analysis:JSON.parse(u.data)})},c.addEventListener("end",()=>{c.close(),o(!0),t.invalidateQueries({queryKey:["lens-run",e]}),t.invalidateQueries({queryKey:["lens-runs"]})}),()=>c.close()},[a,e,t]),A.useEffect(()=>{n.data&&(document.title=`${n.data.review.pullRequest.number===null?"":`#${n.data.review.pullRequest.number} `}${n.data.review.pullRequest.title} · UIGraph Lens`)},[n.data]);const d=n.data??null;return{run:d,analysis:a&&i?.runId===e?i.analysis:d?.analysis??null,connected:!a||s,state:n.isPending?"loading":n.isError?"error":"missing"}}function Yx({state:e}){return e==="loading"?l.jsx(Za,{label:"Loading the review"}):e==="error"?l.jsx($s,{plain:!0,label:"The review could not be loaded."}):l.jsx($s,{plain:!0,label:"This Lens run was not found."})}function e_({runId:e}){const[t,n]=A.useState(!1);return l.jsx(ti,{preset:"outline",disabled:t,onClick:()=>{n(!0),uu(e).catch(i=>{n(!1),bs.error(i instanceof Error?i.message:"Lens could not stop.")})},children:t?"Stopping":"Stop review"})}function t_({runId:e,candidates:t}){const[n,i]=A.useState(!0),[r,s]=A.useState([]),[o,a]=A.useState(null),d=[...new Set(t.flatMap(u=>u.tracker??[]))];function c(u){a(u.length===0?"none":"tickets"),hu(e,u).catch(h=>{a(null),bs.error(h instanceof Error?h.message:"The answer could not be sent.")})}return l.jsxs(l.Fragment,{children:[!n&&l.jsxs("div",{className:"flex items-center justify-between gap-4 border-b border-[#3B6BFF]/30 bg-[#3B6BFF]/10 px-6 py-2 text-sm text-[#C7D3F5]",children:["Lens is paused until you pick the tickets for this change.",l.jsx(ti,{preset:"outline",onClick:()=>i(!0),children:"Pick tickets"})]}),l.jsx(qa,{open:n,onOpenChange:i,className:"[--width:36rem]",children:l.jsx(Ka,{_headerContent:l.jsxs(zc,{className:"flex w-full flex-row items-start justify-between gap-4 border-b border-[#2A3242] px-6 py-5",children:[l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(qc,{className:"text-left text-base font-medium",children:"Which tickets does this change belong to?"}),l.jsx(Kc,{className:"text-left",children:`Lens found ${t.length} ${d.length===1?`${d[0]} tickets`:"tickets"} that could match. Pick every ticket this change works on.`})]}),l.jsx(Bc,{className:"shrink-0"})]}),_footerContent:l.jsxs(Gc,{className:"flex w-full flex-row items-center justify-between gap-3 p-6 pt-3 sm:justify-between",children:[l.jsxs(ti,{preset:"ghost",disabled:o!==null,onClick:()=>c([]),children:[o==="none"&&l.jsx(Ws,{className:"size-4 animate-spin"}),"None of these"]}),l.jsxs(ti,{preset:"primary",disabled:r.length===0||o!==null,onClick:()=>c(r),children:[o==="tickets"&&l.jsx(Ws,{className:"size-4 animate-spin"}),r.length===1?`Use ${r[0]}`:r.length>1?`Use ${r.length} tickets`:"Use tickets"]})]}),children:l.jsx("div",{className:"flex flex-col gap-2",children:t.map(u=>{const h=n_(u.tracker),f=r.includes(u.key);return l.jsxs("label",{className:Ga("flex cursor-pointer items-start gap-3 rounded-xl border border-[#2A3242] px-4 py-3 transition-colors hover:border-[#3A4357] hover:bg-white/[0.02]",f&&"border-[#3B6BFF] bg-[#3B6BFF]/10 hover:border-[#3B6BFF] hover:bg-[#3B6BFF]/10"),children:[l.jsx(Wc,{className:"mt-0.5",checked:f,onCheckedChange:p=>s(t.map(m=>m.key).filter(m=>m===u.key?p===!0:r.includes(m)))}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[l.jsxs("span",{className:"flex items-center gap-2 text-xs text-[#828DA3]",children:[h&&l.jsx(h,{className:"size-3"}),l.jsx("span",{className:"font-mono",children:u.key})]}),l.jsx("span",{className:"text-foreground text-sm font-medium",children:u.title}),l.jsx("span",{className:"text-[13px] text-[#828DA3]",children:u.reason})]}),u.url&&l.jsx("a",{href:u.url,target:"_blank",rel:"noreferrer","aria-label":`Open ${u.key}`,onClick:p=>p.stopPropagation(),className:"hover:text-foreground shrink-0 rounded-md p-1 text-[#828DA3] hover:bg-white/5",children:l.jsx(Zc,{className:"size-4"})})]},u.key)})})})})]})}function n_(e){if(e===null)return null;const t=e.toLowerCase();return t==="linear"?ou:t==="jira"?au:t==="github"?lu:null}function i_(){return l.jsx("div",{className:"uigraph-lens",children:l.jsx("p",{className:"data-warning connection-warning",role:"status",children:"Lost the connection to the Lens process. Reconnecting."})})}export{D_ as LensRunPage};
356
+ `).map((i,r)=>{const s=/^\s*"([^"]+)":/.exec(i)?.[1],o=s!==void 0&&n.has(s);return l.jsxs("span",{className:o?"json-line json-marked":"json-line",children:[l.jsx("span",{children:l.jsx(ex,{line:i})}),o&&l.jsx("span",{className:"logic-note",children:"new or changed"})]},r)})})}const Yk=/("(?:\\.|[^"\\])*")(\s*:)?|\b(true|false|null)\b|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g;function ex(e){const t=[];let n=0;for(const i of e.line.matchAll(Yk)){const r=i.index??0;r>n&&t.push(e.line.slice(n,r)),i[1]!==void 0?(t.push(l.jsx("span",{className:i[2]?"json-key":"json-string",children:i[1]},r)),i[2]&&t.push(i[2])):i[3]!==void 0?t.push(l.jsx("span",{className:"json-literal",children:i[3]},r)):t.push(l.jsx("span",{className:"json-number",children:i[4]},r)),n=r+i[0].length}return n<e.line.length&&t.push(e.line.slice(n)),t}function tx(e){return l.jsx("ol",{className:"story-timeline",children:e.visual.events.map((t,n)=>l.jsxs("li",{className:t.state?"timeline-made":"timeline-none",children:[l.jsx("span",{className:"timeline-action",children:l.jsx(M,{text:t.action})}),l.jsx("span",{className:"timeline-node","aria-hidden":t.state===null,children:t.state??"none"}),l.jsx("span",{className:"timeline-outcome",children:l.jsx(M,{text:t.outcome})})]},n))})}function nx(e){const t=e.visual,n=[...t.states,...t.transitions].every(s=>s.change==="added"),i=new Set(t.transitions.flatMap(s=>[s.from,s.to])),r=t.states.some(s=>!i.has(s.name))||!n&&t.states.some(s=>s.change!=="same");return l.jsxs("div",{className:"state-machine",children:[(r||n)&&l.jsxs("ul",{className:"state-list",children:[r&&t.states.map(s=>l.jsxs("li",{className:`state-node state-${s.change}`,children:[!n&&l.jsx(xn,{change:s.change}),l.jsx("code",{children:s.name})]},s.name)),n&&l.jsx("li",{className:"state-all-new",children:"All states and transitions are new in this pull request"})]}),l.jsxs("table",{className:"state-table",children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{scope:"col",children:"From"}),l.jsx("th",{scope:"col","aria-label":"becomes"}),l.jsx("th",{scope:"col",children:"To"}),l.jsx("th",{scope:"col",children:"When"})]})}),l.jsx("tbody",{children:t.transitions.map((s,o)=>l.jsxs("tr",{className:`transition-${s.change}`,children:[l.jsxs("td",{children:[!n&&l.jsx(xn,{change:s.change}),l.jsx("code",{className:"state-name",children:s.from})]}),l.jsx("td",{className:"state-arrow","aria-hidden":"true",children:"→"}),l.jsx("td",{children:l.jsx("code",{className:"state-name",children:s.to})}),l.jsx("td",{className:"state-when",children:l.jsx(M,{text:s.on})})]},o))})]})]})}function ix(e){const t=e.visual,n=t.actors.length;return l.jsxs("div",{className:"sequence",style:{gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`},children:[t.actors.map(i=>l.jsx("span",{className:"sequence-actor",children:i},i)),t.messages.map((i,r)=>{const s=t.actors.indexOf(i.from),o=t.actors.indexOf(i.to);if(s===-1||o===-1)return null;const a=Math.min(s,o),d=Math.max(s,o),c=s===o;return l.jsxs("div",{className:["sequence-message",`message-${i.change}`,i.reply?"message-reply":"",o<s?"message-left":"",c?"message-self":""].filter(Boolean).join(" "),style:{gridColumn:`${a+1} / ${d+2}`,paddingInline:`${50/(d-a+1)}%`},children:[l.jsxs("span",{className:"sequence-label",children:[l.jsx(xn,{change:i.change}),l.jsx(M,{text:i.label})]}),l.jsx("i",{"aria-hidden":"true"})]},r)})]})}function rx(e){return l.jsxs("div",{className:"caller-chain",children:[l.jsx("code",{className:"caller-target",children:e.visual.target}),l.jsx("ul",{children:e.visual.callers.map((t,n)=>l.jsxs("li",{className:`caller caller-${t.change}`,children:[l.jsx("span",{className:"caller-arrow","aria-hidden":"true",children:"←"}),l.jsx("code",{children:t.name}),t.via&&l.jsx("span",{className:"caller-via",children:t.via}),l.jsx(xn,{change:t.change})]},n))})]})}function sx(e){return l.jsx("ul",{className:"data-shape",children:e.visual.fields.map((t,n)=>{const i=t.path.split(".");return l.jsxs("li",{className:`shape-field shape-${t.change}`,style:{paddingLeft:`${12+(i.length-1)*18}px`},children:[l.jsxs("span",{className:"shape-name",children:[l.jsx(xn,{change:t.change}),l.jsx("code",{children:i.at(-1)}),i.length>1&&l.jsxs("span",{className:"shape-parent",children:["in ",i.slice(0,-1).join(".")]})]}),l.jsx("span",{className:"shape-type",children:t.type}),t.note&&l.jsx("span",{className:"shape-note",children:l.jsx(M,{text:t.note})})]},n)})})}function Os(e){switch(e.type){case"rules":case"fields":return e.rows.flatMap(t=>t.locations);case"matrix":return e.cells.flatMap(t=>t.locations);case"logic":return e.after.flatMap(t=>t.locations);case"timeline":return e.events.flatMap(t=>t.locations);case"states":return e.transitions.flatMap(t=>t.locations);case"sequence":return e.messages.flatMap(t=>t.locations);case"callers":return e.callers.flatMap(t=>t.locations);case"json":case"shape":return e.locations;default:return[]}}function ox(e){const t=new Set;return e.filter(n=>{const i=`${n.repository}|${n.side}|${n.path}|${n.startLine}|${n.endLine}`;return t.has(i)?!1:(t.add(i),!0)})}const Fs={new:{mark:"+",label:"New",change:"added"},changed:{mark:"~",label:"Changed",change:"changed"},removed:{mark:"−",label:"Removed",change:"removed"}},ax=180,lx=15;function dx(e){const t=e.analysis,n=t.results.story,i=t.stages.verdict.status==="done"||t.stages.verdict.status==="failed";return l.jsxs("div",{className:"story",children:[!i&&l.jsx(Ms,{analysis:t}),t.stages.map.status==="failed"&&l.jsx(Ye,{id:"map",stage:t.stages.map}),l.jsx(rt,{analysis:t,stage:"story",children:()=>n?l.jsx(cx,{review:e.review,analysis:t,story:n,openFile:e.openFile,openFinding:e.openFinding,openRisks:e.openRisks}):null})]})}function cx(e){const t=e.analysis,n=e.story,i=t.results.map,r=t.stages.findings.status==="done",s=t.results.findings?.findings??[],o=t.results.flow?.flows??[],a=new Map(n.chapters.map(f=>[f.id,Ex(f,i)])),d=Rx(n.chapters,i,s),c=Ax(n.chapters,o),u=Ix(n),h=n.unexplained??[];return l.jsxs(l.Fragment,{children:[l.jsxs("section",{className:"story-lead","aria-label":"Summary",children:[l.jsxs("span",{className:"story-chip",children:[u," min read"]}),l.jsx("h2",{className:"story-headline",children:l.jsx(M,{text:n.headline})}),n.summary&&l.jsx("p",{className:"story-summary",children:l.jsx(M,{text:n.summary})})]}),l.jsxs("div",{className:"story-overview",children:[l.jsx(px,{analysis:t,chapters:n.chapters}),l.jsx(mx,{analysis:t,openFinding:e.openFinding,openRisks:e.openRisks})]}),n.chapters.map((f,p)=>l.jsx(ux,{review:e.review,analysis:t,chapter:f,number:n.chapters.length>1?p+1:null,flows:c.get(f.id)??[],contracts:(i?.contracts??[]).filter(m=>f.contracts.includes(m.name)),findings:d.get(f.id)??[],allFindings:s,findingsDone:r,unknownKeys:n.unknownKeys?.[f.id]??[],locations:a.get(f.id)??[],openFile:e.openFile,openFinding:e.openFinding,openRisks:e.openRisks},f.id)),l.jsx(_x,{review:e.review,chapters:n.chapters,unexplained:h,openFile:e.openFile}),l.jsx(vx,{unexplained:h,openRisks:e.openRisks})]})}function ux(e){const t=e.chapter,n=A.useState(e.flows.length>0?"flow":null),i=n[0],r=Fs[t.kind],s=t.files.filter(a=>e.review.files.some(d=>d.path===a)),o=t.matters??null;return l.jsxs("section",{className:`story-chapter chapter-${r.change}`,id:`story-${t.id}`,children:[l.jsxs("div",{className:"story-chapter-head",children:[e.number!==null&&l.jsx("span",{className:`chapter-number change-${r.change}`,children:e.number}),l.jsx("h3",{children:l.jsx(M,{text:t.title})}),l.jsx("span",{className:`chapter-kind change-${r.change}`,children:r.label}),l.jsx(yx,{analysis:e.analysis,chapter:t,locations:e.locations,openRisks:e.openRisks})]}),l.jsx("p",{className:"story-caption",children:l.jsx(M,{text:t.caption})}),t.visual&&l.jsx(zk,{review:e.review,analysis:e.analysis,visual:t.visual,unknownKeys:e.unknownKeys,openFile:e.openFile}),e.findingsDone&&e.findings.length>0&&l.jsxs("div",{className:"story-watch",children:[l.jsxs("span",{className:"story-watch-label",children:["Watch ",e.findings.length]}),l.jsx("ul",{children:e.findings.map(a=>l.jsx("li",{children:l.jsx(Rn,{finding:a,openFinding:e.openFinding})},a.id))})]}),(e.flows.length>0||e.contracts.length>0)&&l.jsxs("div",{className:"story-more",role:"group","aria-label":"More about this chapter",children:[e.flows.length>0&&l.jsxs("button",{type:"button",className:"story-toggle","aria-pressed":i==="flow",onClick:()=>n[1](i==="flow"?null:"flow"),children:[e.flows.length===1?"Flow":"Flows",e.flows.length>1&&l.jsx("span",{children:e.flows.length})]}),e.contracts.length>0&&l.jsxs("button",{type:"button",className:"story-toggle","aria-pressed":i==="surfaces",onClick:()=>n[1](i==="surfaces"?null:"surfaces"),children:[Sx(e.contracts),l.jsx("span",{children:e.contracts.length})]})]}),i==="flow"&&l.jsx("div",{className:"story-extra",children:l.jsx(Lc,{review:e.review,analysis:e.analysis,flows:e.flows,openFile:e.openFile})}),i==="surfaces"&&l.jsx("div",{className:"story-extra",children:l.jsx(ps,{review:e.review,analysis:e.analysis,contracts:e.contracts,findings:e.allFindings,openFile:e.openFile,openFinding:e.openFinding})}),(o||t.unchanged||s.length>0)&&l.jsxs("dl",{className:"chapter-notes",children:[o&&l.jsxs("div",{children:[l.jsx("dt",{children:"Why it matters"}),l.jsx("dd",{children:l.jsx(M,{text:o})})]}),t.unchanged&&l.jsxs("div",{children:[l.jsx("dt",{children:"Doesn't change"}),l.jsx("dd",{children:l.jsx(M,{text:t.unchanged})})]}),s.length>0&&l.jsxs("div",{children:[l.jsx("dt",{children:"Files"}),l.jsx("dd",{children:l.jsx(Lx,{review:e.review,files:s,openFile:e.openFile})})]})]})]})}const hx={new:zu,changed:xu,removed:Uu},fx={break:"Breaking change",bug:"Possible bug",security:"Security",risk:"Risk",decide:"Needs a decision",test:"No test",scope:"Scope",unknown:"Unclear"},Rr=3;function px(e){return l.jsxs("section",{className:"overview-panel","aria-labelledby":"overview-changes",children:[l.jsxs("div",{className:"overview-head",children:[l.jsx("h3",{id:"overview-changes",children:"What changed"}),l.jsxs("p",{children:[e.chapters.length," ",e.chapters.length===1?"change":"changes",", in reading order."]})]}),l.jsx("ol",{className:"overview-list",children:e.chapters.map((t,n)=>{const i=Fs[t.kind],r=Tc(e.analysis,t);return l.jsx("li",{children:l.jsxs("a",{href:`#story-${t.id}`,className:`overview-row chapter-${i.change}`,children:[l.jsx("span",{className:"overview-icon",title:i.label,children:l.jsx(P,{icon:hx[t.kind],"aria-hidden":"true"})}),l.jsxs("span",{className:"overview-text",children:[l.jsxs("strong",{children:[l.jsxs("span",{className:"sr-only",children:[n+1,". ",i.label,":"," "]}),l.jsx(M,{text:t.title})]}),l.jsx("small",{children:l.jsx(M,{text:gx(t.caption)})})]}),r&&r.tone==="warn"&&l.jsx("span",{className:`evidence-mark evidence-${r.tone}`,title:r.title,children:r.label}),l.jsx(P,{className:"overview-chevron",icon:mt,"aria-hidden":"true"})]})},t.id)})})]})}function mx(e){const t=e.analysis,n=t.results,i=t.stages.findings.status==="done",r=(n.findings?.findings??[]).toSorted((c,u)=>z[c.severity].rank-z[u.severity].rank),s=(n.decisions?.decisions??[]).filter(c=>c.origin!=="asked"),o=(n.rollout?.checks??[]).filter(c=>c.state!=="ok"),a=o.filter(c=>c.state==="blocker").length,d=[...bx(t).filter(c=>c.section!=="rollout").map(c=>({section:c.section,label:c.section==="asked"?`Asked: ${c.value.toLowerCase()}`:`Tests: ${c.value}`,tone:c.tone})),...ae(t,"decisions")&&t.stages.decisions.status==="done"&&s.length>0?[{section:"decide",label:`${s.length} author ${s.length===1?"choice":"choices"}`,tone:"neutral"}]:[],...ae(t,"rollout")&&t.stages.rollout.status==="done"&&o.length>0?[{section:"rollout",label:a>0?`${a} ship ${a===1?"blocker":"blockers"}`:`${o.length} ship ${o.length===1?"note":"notes"}`,tone:a>0?"warn":"neutral"}]:[]];return l.jsxs("section",{className:"overview-panel","aria-labelledby":"overview-confirm",children:[l.jsxs("div",{className:"overview-head",children:[l.jsx("h3",{id:"overview-confirm",children:"Things to confirm"}),l.jsx("p",{children:"For a person to check, not a verdict on the code."})]}),l.jsxs("ul",{className:"confirm-list",children:[!i&&l.jsx("li",{className:"confirm-pending",children:"Checking the change…"}),i&&r.length===0&&l.jsx("li",{className:"confirm-pending",children:"Lens found nothing that needs a closer look."}),r.slice(0,Rr).map(c=>l.jsx("li",{children:l.jsxs("button",{type:"button",className:`confirm-item tone-${z[c.severity].tone}`,onClick:()=>e.openFinding(c.id),children:[l.jsx(P,{icon:z[c.severity].icon,"aria-hidden":"true"}),l.jsxs("span",{children:[l.jsx("strong",{children:l.jsx(M,{text:c.title})}),l.jsxs("small",{children:[fx[c.kind]," · ",z[c.severity].label]})]}),l.jsx(P,{className:"overview-chevron",icon:mt,"aria-hidden":"true"})]})},c.id)),r.length>Rr&&l.jsx("li",{children:l.jsxs("button",{type:"button",className:"text-button confirm-more",onClick:()=>e.openRisks("findings"),children:[r.length-Rr," more in Risks"]})})]}),d.length>0&&l.jsx("div",{className:"overview-foot confirm-foot",children:d.map(c=>l.jsx("button",{type:"button",className:`text-button confirm-check tone-${c.tone}`,onClick:()=>e.openRisks(c.section),children:c.label},c.section))})]})}function gx(e){const t=/^.*?[.!?](?=\s|$)/.exec(e.trim());return t?t[0]:e}function bx(e){const t=e.results,n=[],i="…";if(ae(e,"scope")){const r=t.scope?.asked??[],s=r.filter(a=>a.status==="built").length,o=r.length-s;n.push({section:"asked",label:"Asked",value:t.scope?r.length===0?"Nothing stated":o===0?`All ${r.length} built`:`${o} of ${r.length} not as asked`:i,tone:t.scope&&o>0?"warn":"neutral"})}if(ae(e,"tests")){const r=t.tests?.behaviors.filter(s=>s.coverage==="untested").length??0;n.push({section:"tests",label:"Tests",value:t.tests?r===0?"Behaviors covered":`${r} untested`:i,tone:t.tests&&r>0?"warn":"neutral"})}if(ae(e,"rollout")){const r=t.rollout?.checks??[],s=r.filter(a=>a.state==="blocker").length,o=r.filter(a=>a.state==="warning").length;n.push({section:"rollout",label:"Ship",value:t.rollout?s>0?`${s} ${s===1?"blocker":"blockers"}`:o>0?`${o} to check`:"Nothing special":i,tone:s>0||o>0?"warn":"neutral"})}return n}function vx(e){return l.jsxs("section",{className:"story-end",children:[e.unexplained.length>0&&l.jsxs("p",{className:"story-coverage story-coverage-warn",children:[e.unexplained.length," changed ",e.unexplained.length===1?"file is":"files are"," not explained by any chapter. Check ",e.unexplained.length===1?"it":"them"," by hand."]}),l.jsxs("button",{type:"button",className:"action-button",onClick:()=>e.openRisks("findings"),children:["Review the risks",l.jsx(P,{icon:mt,"aria-hidden":"true"})]})]})}function yx(e){const t=Tc(e.analysis,e.chapter),n=e.locations.length>0?null:{label:"Inferred",tone:"missing",title:"No code lines back this chapter. It is the model reading of the change."};return l.jsxs("span",{className:"evidence-marks",children:[t&&t.tone==="warn"&&l.jsx("button",{type:"button",className:`evidence-mark evidence-${t.tone}`,title:t.title,onClick:()=>e.openRisks("tests"),children:t.label}),n&&l.jsx("span",{className:`evidence-mark evidence-${n.tone}`,title:n.title,children:n.label})]})}function Tc(e,t){if(!ae(e,"tests")||e.stages.tests.status!=="done")return null;const n=(e.results.tests?.behaviors??[]).filter(o=>t.behaviors.includes(o.behaviorId)),i=n.filter(o=>o.coverage==="untested").length,r=n.filter(o=>o.coverage==="covered").length,s=t.files.some(o=>_n.test(o));return n.length>0&&r===n.length?{label:"Tested",tone:"ok",title:"A test asserts every behavior in this chapter."}:i>0?{label:i===n.length?"No test":`${i} of ${n.length} untested`,tone:"warn",title:"Lens looked for a test that asserts this behavior and found none."}:s?{label:"Tests changed",tone:"neutral",title:"This chapter changes test files. Lens could not tie them to a behavior."}:{label:"Test unknown",tone:"neutral",title:"Lens could not tell whether a test covers this."}}const _n=/(^|\/)(spec|specs|test|tests|__tests__|testdata|fixtures)\/|(_spec|_test|\.spec|\.test)\.[a-z]+$/i,kx=26,xx=64;function _x(e){const t=new Map(e.review.files.map(r=>[r.path,r.additions+r.deletions])),n=Math.max(1,...t.values()),i=[...e.chapters.map((r,s)=>({key:r.id,label:`${e.chapters.length>1?`${s+1} `:""}${r.title}`,tone:Fs[r.kind].change,files:r.files.filter(o=>t.has(o))})),...e.unexplained.length>0?[{key:"unexplained",label:"Not in a chapter",tone:"unexplained",files:e.unexplained}]:[]];return l.jsxs("section",{className:"change-map","aria-label":"Where the lines changed",children:[l.jsxs("div",{className:"change-map-head",children:[l.jsx("h3",{children:"Where the lines changed"}),l.jsx("p",{children:e.unexplained.length===0?`All ${e.review.files.length} changed files belong to a chapter. Taller means more lines.`:"Taller means more lines. Files in no chapter need a look by hand."})]}),l.jsx(xc,{label:"Changed files by chapter",children:l.jsx("div",{className:"change-map-columns",children:i.map(r=>{const s=_c(r.files),o=r.files.reduce((a,d)=>a+(t.get(d)??0),0);return l.jsxs("div",{className:`change-map-column map-${r.tone}`,children:[l.jsx("span",{className:"change-map-label",title:r.label,children:r.label}),l.jsxs("span",{className:"change-map-total",children:[o," lines"]}),r.files.toSorted((a,d)=>(t.get(d)??0)-(t.get(a)??0)).map(a=>{const d=t.get(a)??0;return l.jsxs("button",{type:"button",className:_n.test(a)?"change-map-file map-test":"change-map-file",style:{minHeight:`${kx+Math.round(xx*d/n)}px`},onClick:()=>e.openFile(a),title:`${a}, ${d} lines`,children:[l.jsx("span",{className:"change-map-name",children:s.get(a)}),l.jsxs("span",{className:"change-map-lines",children:[_n.test(a)?"test · ":"",d]})]},a)})]},r.key)})})})]})}const Cx=/(^|\/)(\.snapshot[^/]*|[^/]*\.snap|[^/]*-lock\.(json|yaml)|[^/]*\.lock|[^/]*\.min\.(js|css)|[^/]*\.pb\.go|[^/]*_generated\.[a-z]+)$|(^|\/)(generated|__generated__)\//i,wx=3;function Lx(e){const t=A.useState(!1),n=t[0],i=new Map(e.review.files.map(f=>[f.path,f.additions+f.deletions])),r=e.files.toSorted((f,p)=>(i.get(p)??0)-(i.get(f)??0)),s=r.filter(f=>_n.test(f)),o=r.filter(f=>!_n.test(f)&&Cx.test(f)),a=r.filter(f=>!s.includes(f)&&!o.includes(f)),d=n?[...a,...s,...o]:a.slice(0,wx),c=r.length-d.length,u=_c(r),h=[s.length>0?`${s.length} ${s.length===1?"test":"tests"}`:null,o.length>0?`${o.length} generated`:null].filter(f=>f!==null);return l.jsxs("span",{className:"chapter-files",children:[d.map(f=>l.jsx("button",{type:"button",className:"story-file",onClick:()=>e.openFile(f),title:f,children:u.get(f)},f)),c>0&&l.jsxs("button",{type:"button",className:"text-button chapter-files-more",onClick:()=>t[1](!0),children:["+",c," more",h.length>0?` (${h.join(", ")})`:""]})]})}function Sx(e){const t=new Set(e.map(n=>n.kind));return t.size===1&&t.has("schema")?e.length===1?"Table":"Tables":t.size===1&&t.has("api")?e.length===1?"Endpoint":"Endpoints":"Data & API"}function Ex(e,t){const n=(t?.behaviors??[]).filter(r=>e.behaviors.includes(r.id)),i=(t?.contracts??[]).filter(r=>e.contracts.includes(r.name));return[...n.flatMap(r=>r.locations),...i.flatMap(r=>r.locations),...e.visual?Os(e.visual):[]]}function Rx(e,t,n){const i=new Map,r=new Map(e.map(o=>[o.id,{story:[...(t?.behaviors??[]).filter(a=>o.behaviors.includes(a.id)).flatMap(a=>a.locations),...o.visual?Os(o.visual):[]],contracts:(t?.contracts??[]).filter(a=>o.contracts.includes(a.name)).flatMap(a=>a.locations)}])),s=n.filter(o=>o.kind!=="test").toSorted((o,a)=>z[o.severity].rank-z[a.severity].rank);for(const o of s){const a=(c,u)=>{if(u.repository!==null)return 0;const h=[{...o,locations:[u]}],f=r.get(c.id);return f&&Tt(h,f.story).length>0?3:f&&Tt(h,f.contracts).length>0?2:c.files.includes(u.path)?1:0};let d=null;for(const c of e){const u=o.locations.reduce((h,f)=>h+a(c,f),0);u>0&&(d===null||u>d.score)&&(d={chapter:c,score:u})}d&&i.set(d.chapter.id,[...i.get(d.chapter.id)??[],o])}return i}function Ax(e,t){const n=new Map;for(const i of t){const r=(i.behaviors??[]).map(s=>e.find(o=>o.behaviors.includes(s))).find(s=>s!==void 0)??e[0];r&&n.set(r.id,[...n.get(r.id)??[],i])}return n}function Ix(e){const t=[e.headline,...e.why.map(r=>r.text),...e.chapters.flatMap(r=>[r.title,r.caption])].join(" ").split(/\s+/).filter(Boolean).length,n=e.chapters.filter(r=>r.visual!==null).length,i=t/ax*60+n*lx;return Math.max(1,Math.round(i/60))}const Tx=[{id:"flow",label:"Changed flows",description:"Before and after diagrams of the runtime flow"},{id:"scope",label:"What was asked",description:"Compare the change with its issue, description, or commits"},{id:"decisions",label:"Choices to confirm",description:"Values the code picked, such as limits and timeouts"},{id:"impact",label:"Impact",description:"Other services the change affects"},{id:"tests",label:"Test coverage",description:"Which new behavior has a test"},{id:"rollout",label:"Rollout",description:"A safe order to ship and checks before you deploy"}],jx=[1,2,4,6,10];function Nx(e){const t=A.useRef(null),n=A.useState(e.settings),i=n[0],r=n[1],s=A.useState(!1),o=s[0],a=s[1],d=A.useState(null),c=d[0],u=d[1],h=!Ds(e.settings,i);async function f(){a(!0),u(null);try{await e.saveSettings(i),t.current?.close()}catch(p){u(p instanceof Error?p.message:"Lens could not save the settings.")}finally{a(!1)}}return l.jsxs(l.Fragment,{children:[l.jsxs("button",{type:"button",className:"action-button",onClick:()=>{r(e.settings),u(null),t.current?.showModal()},children:[l.jsx(P,{icon:il,"aria-hidden":"true"}),"Customize"]}),l.jsx("dialog",{className:"customize",ref:t,"aria-labelledby":"customize-title",children:l.jsxs("form",{method:"dialog",onSubmit:p=>{p.preventDefault(),f()},children:[l.jsxs("header",{className:"customize-head",children:[l.jsxs("div",{children:[l.jsx("h2",{id:"customize-title",children:"Customize Lens"}),l.jsx("p",{children:"Your settings apply to every review on this machine."})]}),l.jsx("button",{type:"button",className:"icon-button","aria-label":"Close",onClick:()=>t.current?.close(),children:l.jsx(P,{icon:Ti,"aria-hidden":"true"})})]}),l.jsx("div",{className:"customize-body",children:l.jsx(jc,{value:i,onChange:r,repositoryConfig:e.repositoryConfig})}),l.jsxs("footer",{className:"customize-foot",children:[l.jsx("p",{role:c?"alert":void 0,className:c?"customize-error":void 0,children:c??(h?"Saving starts a new review. It takes a few minutes.":"The review does not need to run again.")}),l.jsx("button",{type:"button",className:"action-button",onClick:()=>t.current?.close(),children:"Cancel"}),l.jsx("button",{type:"submit",className:"action-button primary",disabled:o,children:o?"Saving":h?"Save and run again":"Save"})]})]})})]})}function jc(e){const t=e.value,n=e.onChange,i=e.repositoryConfig;return l.jsxs("div",{className:"customize-fields",children:[l.jsxs("fieldset",{children:[l.jsx("legend",{children:"Agent"}),l.jsx("p",{className:"customize-hint",children:"The coding agent that runs the review. It uses your own login for that agent."}),l.jsxs("div",{className:"segmented",role:"group","aria-label":"Agent",children:[l.jsx(pt,{className:"segmented-indicator",selector:"[aria-pressed='true']"}),fc.map(r=>l.jsx("button",{type:"button","aria-pressed":t.agent===r,onClick:()=>n({...t,agent:r,model:r===t.agent?t.model:""}),children:Aa[r]},r))]})]}),l.jsxs("fieldset",{children:[l.jsx("legend",{children:"Model"}),l.jsxs("p",{className:"customize-hint",children:["Leave empty to use the default model of ",Aa[t.agent],"."]}),l.jsx("input",{type:"text","aria-label":"Model",value:t.model,maxLength:200,spellCheck:!1,placeholder:`For example: ${Hy[t.agent]}`,onChange:r=>n({...t,model:r.target.value})})]}),l.jsxs("fieldset",{children:[l.jsx("legend",{children:"Focus"}),i?.focus&&l.jsxs("div",{className:"customize-repository-focus",children:[l.jsxs("span",{children:["From ",".uigraph.lens.yml"]}),l.jsx("p",{children:i.focus})]}),l.jsx("textarea",{"aria-label":"Review focus",value:t.focus,maxLength:2e3,rows:3,placeholder:"For example: focus on security and data loss. Ignore style.",onChange:r=>n({...t,focus:r.target.value})})]}),l.jsxs("fieldset",{children:[l.jsx("legend",{children:"Sections"}),l.jsx("p",{className:"customize-hint",children:"Lens skips a section that is off."}),l.jsx("div",{className:"customize-rows",children:Tx.map(r=>{const s=i?.steps?.[r.id],o=s??t.steps[r.id];return l.jsxs(A.Fragment,{children:[l.jsxs("label",{className:"customize-row",children:[l.jsxs("span",{children:[l.jsx("b",{children:r.label}),l.jsx("small",{children:s===void 0?r.description:`Set by ${Vy}`})]}),l.jsx("input",{type:"checkbox",role:"switch",checked:o,disabled:s!==void 0,onChange:a=>n({...t,steps:{...t.steps,[r.id]:a.target.checked}})})]}),r.id==="flow"&&o&&l.jsxs("div",{className:"customize-row customize-subrow",children:[l.jsxs("span",{children:[l.jsx("b",{children:"Flow diagrams, up to"}),l.jsx("small",{children:i?.diagrams===void 0?"At most this many. One for each changed flow, fewer when fewer change.":"Set by .uigraph.lens.yml"})]}),l.jsxs("div",{className:"segmented",role:"group","aria-label":"Flow diagrams",children:[l.jsx(pt,{className:"segmented-indicator",selector:"[aria-pressed='true']"}),jx.map(a=>l.jsx("button",{type:"button","aria-pressed":(i?.diagrams??t.diagrams)===a,disabled:i?.diagrams!==void 0,onClick:()=>n({...t,diagrams:a}),children:a},a))]})]})]},r.id)})})]})]})}function Px(e){const t=e.size??34;return l.jsxs("svg",{width:t,height:t,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"UIGraph",className:"brand-mark",children:[l.jsx("rect",{width:"64",height:"64",rx:"16",fill:"#0B0E16"}),l.jsxs("g",{stroke:"#3B6BFF",strokeWidth:"4",strokeLinecap:"round",children:[l.jsx("line",{x1:"20",y1:"20",x2:"44",y2:"20"}),l.jsx("line",{x1:"44",y1:"20",x2:"44",y2:"44"}),l.jsx("line",{x1:"44",y1:"44",x2:"20",y2:"44"}),l.jsx("line",{x1:"20",y1:"44",x2:"20",y2:"20"})]}),l.jsx("circle",{cx:"44",cy:"20",r:"6",fill:"#3B6BFF"}),l.jsx("circle",{cx:"44",cy:"44",r:"6",fill:"#3B6BFF"}),l.jsx("circle",{cx:"20",cy:"44",r:"6",fill:"#3B6BFF"}),l.jsx("circle",{cx:"20",cy:"20",r:"6.5",fill:"#FFFFFF"})]})}const Nc="uigraph-lens.diff-style",Pc="uigraph-lens.wrap-lines",Dx=[{id:"story",label:"Story",icon:wu},{id:"map",label:"Map",icon:Wu},{id:"code",label:"Code",icon:eh},{id:"risks",label:"Risks",icon:Yu}];function Mx(e){const t=e.location,n=t.tab,i=A.useState(t.finding===null?null:[t.finding]),r=i[0],s=i[1],o=A.useRef(null),a=e.analysis,d=a!==null,c=Dx;A.useEffect(()=>{const y=o.current;if(y===null||!d)return;const x=Ox(y),C=sessionStorage.getItem(Ar());C!==null&&(sessionStorage.removeItem(Ar()),requestAnimationFrame(()=>x.scrollTo({top:Number(C)})));function _(){sessionStorage.setItem(Ar(),String(x.scrollTop))}return window.addEventListener("pagehide",_),()=>window.removeEventListener("pagehide",_)},[d]);function u(y){const x={...t,...y};JSON.stringify(x)!==JSON.stringify(t)&&e.onLocationChange(x)}function h(y){u({tab:y,finding:null})}function f(y){u({tab:"code",finding:null,file:y,code:"files"})}function p(y){u({tab:"risks",finding:null,section:y}),window.scrollTo({top:0})}function m(y){u({tab:"risks",finding:y,section:"findings"}),r===null?s([y]):r.includes(y)||s([...r,y])}function v(y,x=t.finding){u({tab:"code",finding:x,group:y,code:"order"}),window.scrollTo({top:0})}function k(y){const x=c.findIndex(_=>_.id===n),C=y.key==="ArrowRight"?c[(x+1)%c.length]:y.key==="ArrowLeft"?c[(x-1+c.length)%c.length]:y.key==="Home"?c[0]:y.key==="End"?c[c.length-1]:null;C&&(y.preventDefault(),h(C.id),document.getElementById(`tab-${C.id}`)?.focus())}const b=e.review;return l.jsx(dc,{value:{location:t,go:u},children:l.jsx("div",{className:"uigraph-lens",ref:o,children:l.jsxs("div",{className:e.hideHeader?"app-shell no-header":"app-shell",children:[!e.hideHeader&&l.jsxs("header",{className:"app-header",children:[l.jsxs("div",{className:"brand",children:[l.jsx(Px,{size:32}),l.jsx("span",{children:"UIGraph"}),l.jsx("strong",{children:"Lens"})]}),b.repository.githubUrl===null||b.pullRequest.githubUrl===null?l.jsx("div",{className:"repository-context",children:l.jsx("span",{children:b.repository.fullName})}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"repository-context",children:[l.jsx("a",{href:b.repository.githubUrl,target:"_blank",rel:"noreferrer",children:b.repository.fullName}),l.jsx("span",{children:"/"}),l.jsxs("a",{href:b.pullRequest.githubUrl,target:"_blank",rel:"noreferrer",children:["pull/",b.pullRequest.number]})]}),l.jsxs("a",{className:"github-link",href:b.pullRequest.githubUrl,target:"_blank",rel:"noreferrer",children:["Open on GitHub",l.jsx(P,{icon:zt,"aria-hidden":"true"})]})]})]}),l.jsxs("main",{children:[l.jsxs("section",{className:"pr-summary",children:[l.jsxs("div",{className:"pr-title",children:[l.jsx("h1",{children:b.pullRequest.title}),e.customize,e.customize===void 0&&e.settings&&e.saveSettings&&l.jsx(Nx,{settings:e.settings,repositoryConfig:a?.repositoryConfig??null,saveSettings:e.saveSettings})]}),l.jsxs("div",{className:"pr-meta",children:[l.jsx($x,{review:b}),b.pullRequest.author&&l.jsxs("a",{className:"author-link",href:b.pullRequest.author.githubUrl,target:"_blank",rel:"noreferrer",children:[l.jsx("img",{src:b.pullRequest.author.avatarUrl,alt:"",width:"18",height:"18"}),b.pullRequest.author.login]}),l.jsxs("span",{className:"branch-comparison",children:[l.jsx("span",{children:b.pullRequest.head.label}),l.jsx(P,{icon:Cu,"aria-label":"into"}),l.jsx("span",{children:b.pullRequest.base.branch})]}),l.jsxs("span",{children:[Pe(b.pullRequest.changedFiles)," ",b.pullRequest.changedFiles===1?"file":"files"," ",l.jsxs("span",{className:"addition",children:["+",Pe(b.pullRequest.additions)]})," ",l.jsxs("span",{className:"deletion",children:["−",Pe(b.pullRequest.deletions)]})]}),l.jsxs("span",{children:["Updated ",cc(b.pullRequest.updatedAt)]}),b.pullRequest.behindBy!==null&&b.pullRequest.behindBy>0&&l.jsxs("span",{className:"behind",children:[Pe(b.pullRequest.behindBy)," behind"," ",b.pullRequest.base.branch]})]})]}),l.jsxs("div",{className:"review-tabs",role:"tablist","aria-label":"Pull request sections",onKeyDown:k,children:[l.jsx(pt,{className:"review-tabs-indicator",selector:"[aria-selected='true']"}),c.map(y=>{const x=Zx(y.id,b,a);return l.jsxs("button",{type:"button",role:"tab",id:`tab-${y.id}`,"aria-selected":n===y.id,"aria-controls":"review-panel",tabIndex:n===y.id?0:-1,onClick:C=>{h(y.id),C.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"})},children:[l.jsx(P,{icon:y.icon,"aria-hidden":"true"}),y.label,x&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:`tab-note tone-${x.tone}`,title:x.label,"aria-hidden":"true",children:x.text}),l.jsxs("span",{className:"sr-only",children:[", ",x.label]})]})]},y.id)})]}),l.jsxs("div",{className:"review-content",id:"review-panel",role:"tabpanel","aria-labelledby":`tab-${n}`,children:[n==="story"&&(a!==null&&a.stages.story!==void 0?l.jsx(dx,{review:b,analysis:a,openFile:f,openFinding:m,openRisks:p}):l.jsx(Hk,{review:b,analysis:a,openFile:f,openFinding:m,openRisks:p,openGroup:v,renderImpactGraph:e.renderImpactGraph})),n==="map"&&l.jsx(rt,{analysis:a,stage:"map",title:"What this change touches",children:()=>a===null?null:l.jsx(wc,{review:b,analysis:a,findings:a.results.findings?.findings??[],openFile:f,openFinding:m,openGroup:v,renderImpactGraph:e.renderImpactGraph,lenses:["data","api","services","files"],title:"What this change touches"})}),n==="code"&&l.jsxs("div",{className:"code-tab",children:[l.jsxs("div",{className:"segmented",role:"group","aria-label":"Code view",children:[l.jsx(pt,{className:"segmented-indicator",selector:"[aria-pressed='true']"}),a?.results.map&&l.jsxs("button",{type:"button","aria-pressed":t.code==="order",onClick:()=>u({code:"order"}),children:["Guided Review",l.jsx("span",{className:"segmented-count",children:a.results.map.groups.length})]}),l.jsxs("button",{type:"button","aria-pressed":t.code==="files",onClick:()=>u({code:"files"}),children:["Files",l.jsx("span",{className:"segmented-count",children:Pe(b.pullRequest.changedFiles)})]}),l.jsxs("button",{type:"button","aria-pressed":t.code==="commits",onClick:()=>u({code:"commits"}),children:["Commits",l.jsx("span",{className:"segmented-count",children:Pe(b.pullRequest.commits)})]})]}),t.code==="files"&&l.jsx(Vx,{review:b,findings:a?.results.findings?.findings??[],selectFile:f,openFinding:m}),t.code==="commits"&&l.jsx(Wx,{review:b}),t.code==="order"&&l.jsx(Ky,{review:b,analysis:a,openFinding:m})]}),n==="risks"&&l.jsx(Ik,{review:b,analysis:a,expanded:r,setExpanded:s,openFile:f,openFinding:m,openGroup:v,checks:l.jsx(Ux,{review:b}),asked:a&&l.jsx(Ic,{review:b,analysis:a,findings:a.results.findings?.findings??[],openFile:f,openFinding:m}),decide:a&&l.jsx(Ac,{review:b,analysis:a,findings:a.results.findings?.findings??[],openFile:f,openFinding:m})})]})]})]})})})}function Ox(e){let t=e.parentElement;for(;t!==null;){const n=getComputedStyle(t).overflowY;if((n==="auto"||n==="scroll")&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}function Ar(){return`uigraph-lens.scroll:${window.location.pathname}${window.location.search}`}function Fx(){const e=localStorage.getItem(Nc);return e==="unified"||e==="split"?e:window.matchMedia("(max-width: 720px)").matches?"unified":"split"}function Hx(){const e=localStorage.getItem(Pc);return e==="true"?!0:e!=="false"}function $x(e){const t=e.review.pullRequest.state,n=e.review.pullRequest.number===null?"Local":e.review.pullRequest.draft?"Draft":t==="merged"?"Merged":t==="open"?"Open":"Closed";return l.jsxs("span",{className:`state-label state-${t}`,children:[l.jsx(P,{icon:t==="merged"?Fu:t==="closed"?Hu:$u,"aria-hidden":"true"}),n]})}function Vx(e){const t=En().location.file,n=A.useState(Fx),i=n[0],r=A.useState(Hx),s=r[0],o=A.useState(""),a=o[0],d=o[1],c=A.useMemo(()=>{const b=a.trim().toLowerCase();return b?e.review.files.filter(y=>y.path.toLowerCase().includes(b)):e.review.files},[e.review.files,a]),u=A.useMemo(()=>Bx(c),[c]),h=A.useState([]),f=h[0],p=h[1],m=e.review.files.find(b=>b.path===t)??e.review.files[0];function v(b){n[1](b),localStorage.setItem(Nc,b)}function k(b){r[1](b),localStorage.setItem(Pc,String(b))}return m?l.jsxs("div",{className:"changes-workspace",children:[l.jsxs("aside",{className:"file-browser",children:[l.jsxs("label",{className:"file-search",children:[l.jsx(P,{icon:Xu,"aria-hidden":"true"}),l.jsx("span",{className:"sr-only",children:"Filter changed files"}),l.jsx("input",{type:"search",value:a,onChange:b=>d(b.target.value),placeholder:"Filter files"})]}),l.jsxs("div",{className:"file-browser-count",children:[c.length," ",c.length===1?"file":"files"]}),l.jsxs("div",{className:"file-list",children:[c.length>0&&l.jsx(Mc,{nodes:u,depth:0,findings:e.findings,selectedPath:m.path,selectFile:e.selectFile,collapsed:a.trim()?[]:f,toggleFolder:b=>p(f.includes(b)?f.filter(y=>y!==b):[...f,b])}),c.length===0&&l.jsxs("p",{className:"file-search-empty",children:["No changed files match “",a,"”."]})]})]}),l.jsxs("section",{className:"file-diff",children:[l.jsxs("header",{className:"file-diff-header",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"file-title-row",children:[l.jsx(Gx,{status:m.status}),l.jsx("h2",{children:m.path})]}),m.previousPath&&l.jsxs("p",{children:["Renamed from ",m.previousPath]})]}),l.jsxs("div",{className:"file-actions",children:[l.jsx(Oc,{file:m}),l.jsxs("div",{className:"segmented",role:"group","aria-label":"Diff layout",children:[l.jsx(pt,{className:"segmented-indicator",selector:"[aria-pressed='true']"}),l.jsx("button",{type:"button","aria-pressed":i==="split",onClick:()=>v("split"),children:"Split"}),l.jsx("button",{type:"button","aria-pressed":i==="unified",onClick:()=>v("unified"),children:"Unified"})]}),l.jsxs("label",{className:"file-wrap",children:[l.jsx("input",{type:"checkbox",checked:s,onChange:b=>k(b.target.checked)}),"Wrap lines"]}),m.githubUrl&&l.jsxs("a",{href:m.githubUrl,target:"_blank",rel:"noreferrer",children:["GitHub",l.jsx(P,{icon:zt,"aria-hidden":"true"})]})]})]}),l.jsx(lc,{file:m,diffStyle:i,wrap:s,marks:vc(e.findings,m.path,e.openFinding)})]})]}):l.jsx("p",{className:"empty-copy",children:"This pull request has no changed files."})}function Bx(e){const t={path:"",children:[]};for(const n of e){const i=n.path.split("/");let r=t;for(const s of i.slice(0,-1)){const o=r.path?`${r.path}/${s}`:s,a=r.children.find(d=>d.kind==="folder"&&d.name===s);if(a?.kind==="folder")r=a;else{const d={kind:"folder",name:s,path:o,children:[]};r.children.push(d),r=d}}r.children.push({kind:"file",name:i[i.length-1],file:n})}return Dc(t.children.map(n=>n.kind==="folder"?gs(n):n))}function gs(e){const t=e.children[0];return e.children.length===1&&t.kind==="folder"?gs({kind:"folder",name:`${e.name}/${t.name}`,path:t.path,children:t.children}):{...e,children:Dc(e.children.map(n=>n.kind==="folder"?gs(n):n))}}function Dc(e){return e.toSorted((t,n)=>t.kind!==n.kind?t.kind==="folder"?-1:1:t.name.localeCompare(n.name,"en",{numeric:!0}))}function Mc(e){const t=12+e.depth*16;return l.jsx("ul",{className:"file-tree",children:e.nodes.map(n=>{if(n.kind==="folder"){const s=!e.collapsed.includes(n.path);return l.jsxs("li",{children:[l.jsxs("button",{type:"button",className:"file-tree-folder","aria-expanded":s,title:n.path,style:{paddingLeft:t},onClick:()=>e.toggleFolder(n.path),children:[l.jsx(P,{icon:mt,className:"file-tree-chevron","aria-hidden":"true"}),l.jsx("img",{className:"file-tree-icon",src:`/api/lens/file-icon?kind=${s?"folder-open":"folder"}&name=${encodeURIComponent(n.name.split("/").at(-1))}`,alt:""}),l.jsx("span",{children:n.name})]}),s&&l.jsx(Mc,{nodes:n.children,depth:e.depth+1,findings:e.findings,selectedPath:e.selectedPath,selectFile:e.selectFile,collapsed:e.collapsed,toggleFolder:e.toggleFolder})]},n.path)}const i=n.file,r=e.findings.filter(s=>s.locations.some(o=>o.repository===null&&o.path===i.path)).toSorted((s,o)=>z[s.severity].rank-z[o.severity].rank)[0];return l.jsx("li",{children:l.jsxs("button",{type:"button",className:"file-tree-file","aria-current":e.selectedPath===i.path?"true":void 0,title:i.previousPath?`${i.path}, renamed from ${i.previousPath}`:i.path,style:{paddingLeft:t},onClick:()=>e.selectFile(i.path),children:[l.jsx("img",{className:"file-tree-icon",src:`/api/lens/file-icon?kind=file&name=${encodeURIComponent(n.name)}`,alt:""}),l.jsx("span",{className:"file-tree-name",children:n.name}),l.jsx("span",{className:r?`file-finding tone-${z[r.severity].tone}`:"file-finding",children:r&&l.jsxs(l.Fragment,{children:[l.jsx(P,{icon:z[r.severity].icon,"aria-hidden":"true"}),l.jsxs("span",{className:"sr-only",children:["Has a ",z[r.severity].label.toLowerCase()," finding"]})]})}),l.jsx(Oc,{file:i,compact:!0})]})},i.path)})})}function Wx(e){return l.jsxs("section",{className:"section",children:[l.jsxs("div",{className:"section-head",children:[l.jsx("h2",{children:"Commits"}),l.jsx("p",{children:"Oldest first"})]}),l.jsx("ol",{className:"commit-list",children:e.review.commits.map(t=>l.jsxs("li",{children:[l.jsx("div",{className:"commit-marker",children:t.authorAvatarUrl?l.jsx("img",{src:t.authorAvatarUrl,width:"30",height:"30",alt:""}):l.jsx(P,{icon:Ou,"aria-hidden":"true"})}),l.jsxs("div",{className:"commit-content",children:[t.githubUrl?l.jsx("a",{href:t.githubUrl,target:"_blank",rel:"noreferrer",children:t.title}):l.jsx("strong",{children:t.title}),t.message&&l.jsx("p",{children:t.message}),l.jsxs("span",{children:[t.authorName," · ",cc(t.authoredAt)]})]}),t.githubUrl?l.jsx("a",{className:"commit-sha",href:t.githubUrl,target:"_blank",rel:"noreferrer",children:t.sha.slice(0,7)}):l.jsx("span",{className:"commit-sha",children:t.sha.slice(0,7)})]},t.sha))}),e.review.commitsTruncated&&l.jsxs("p",{className:"data-warning",children:["GitHub returned ",e.review.commits.length," of"," ",e.review.pullRequest.commits," commits."]})]})}function Ux(e){const t=e.review.checks,n=t.items.toSorted((i,r)=>Ua(i)-Ua(r));return l.jsxs("section",{className:"section",children:[l.jsxs("div",{className:"section-head",children:[l.jsx("h2",{children:"CI checks"}),l.jsxs("p",{children:["For commit ",e.review.pullRequest.head.sha.slice(0,7)]})]}),!t.available&&l.jsx("p",{className:"empty-copy",children:t.reason}),t.available&&n.length===0&&l.jsx("p",{className:"empty-copy",children:"No CI checks ran for this commit, so nothing confirms the build or the tests pass."}),n.length>0&&l.jsx("div",{className:"check-list",children:n.map(i=>l.jsxs("div",{className:"check-row",children:[l.jsx(qx,{check:i}),l.jsxs("div",{children:[l.jsx("strong",{children:i.name}),l.jsx("span",{children:i.provider})]}),l.jsx("span",{className:"check-result",children:Kx(i)}),l.jsx("span",{className:"check-duration",children:uc(i.startedAt,i.completedAt)}),i.githubUrl?l.jsxs("a",{href:i.githubUrl,target:"_blank",rel:"noreferrer",children:["Details",l.jsx(P,{icon:zt,"aria-hidden":"true"})]}):l.jsx("span",{})]},i.id))})]})}function Oc(e){return l.jsxs("span",{className:e.compact?"change-count compact":"change-count",children:[e.file.status!=="removed"&&l.jsxs("span",{className:"addition",children:["+",Pe(e.file.additions)]}),e.file.status!=="added"&&l.jsxs("span",{className:"deletion",children:["−",Pe(e.file.deletions)]})]})}function Gx(e){const t=zx(e.status);return l.jsx("span",{className:`file-status file-status-${e.status}`,title:e.status,children:t})}function zx(e){if(e==="added")return"A";if(e==="removed")return"D";if(e==="modified"||e==="changed")return"M";if(e==="renamed")return"R";if(e==="copied")return"C";if(e==="unchanged")return"U";throw new Error(`Unknown file status: ${e}`)}function qx(e){const t=Hs(e.check);return t==="success"?l.jsx(P,{icon:ji,className:"check-icon success","aria-label":"Passed"}):t==="failure"?l.jsx(P,{icon:Xe,className:"check-icon failure","aria-label":"Failed"}):t==="neutral"?l.jsx(P,{icon:wn,className:"check-icon neutral","aria-label":"Skipped"}):l.jsx(P,{icon:Eu,className:"check-icon pending","aria-label":"In progress"})}function Hs(e){return e.status!=="completed"?"pending":e.conclusion==="success"?"success":e.conclusion==="neutral"||e.conclusion==="skipped"||e.conclusion==="cancelled"?"neutral":"failure"}function Kx(e){const t=Hs(e);return t==="success"?"Passed":t==="failure"?"Failed":t==="neutral"?e.conclusion==="cancelled"?"Cancelled":"Skipped":e.status==="queued"?"Queued":"Running"}function Ua(e){const t=Hs(e);return t==="failure"?0:t==="pending"?1:t==="success"?2:3}function Zx(e,t,n){const i=n?.results;if(e==="story"){const r=i?.story?.chapters.length??0;return r>1?{text:String(r),label:`${r} changes`,tone:"neutral"}:null}if(e==="map"){const r=i?.map?.contracts.length??0;return r>0?{text:String(r),label:`${r} ${r===1?"table or endpoint":"tables and endpoints"}`,tone:"neutral"}:null}if(e==="code")return{text:Pe(t.pullRequest.changedFiles),label:`${Pe(t.pullRequest.changedFiles)} changed ${t.pullRequest.changedFiles===1?"file":"files"}`,tone:"neutral"};if(e==="risks"){const r=i?.findings?.findings??[],s=i?.rollout?.checks.filter(d=>d.state==="blocker").length??0,o=t.checks.items.filter(An).length,a=r.length+s+o;return a===0?null:{text:String(a),label:`${a} ${a===1?"thing":"things"} to check`,tone:o>0||s>0||r.some(d=>d.severity==="high")?"bad":"warn"}}throw new Error(`Unknown tab: ${e}`)}function Xx(e){const t=Zc().id,{data:n,loading:i}=vu(mu,{variables:{orgId:t},skip:!t});if(i||!n)return l.jsx(qa,{label:"Loading service graph..."});const r=gu(n.dependencyGraph),s=new Set(e.services.map(m=>m.name)),o=r.nodes.filter(m=>s.has(m.name)),a=new Set(o.map(m=>m.id)),d=r.edges.filter(m=>a.has(m.source)&&a.has(m.target)),c=new Map;for(const m of e.services){let v=o.find(k=>k.name===m.name);v===void 0&&(v={id:`impact:${m.name}`,name:m.name,service:null},o.push(v)),c.set(v.id,{color:di[m.effect].color,label:di[m.effect].label})}const u=new Map(o.map(m=>[m.name,m.id])),h=e.services.find(m=>m.direction==="self")?.name,f=h===void 0?void 0:u.get(h),p=new Map;for(const m of e.services){if(m.direction==="self")continue;const v=u.get(m.name),k=m.via!==null&&u.has(m.via)?u.get(m.via):f;if(v===void 0||k===void 0)continue;let b=d.find(y=>y.source===v&&y.target===k||y.source===k&&y.target===v);if(b===void 0){if(m.direction==="dependency")b={id:`impact:${m.name}`,source:k,target:v,direction:"downstream"};else if(m.direction==="consumer")b={id:`impact:${m.name}`,source:v,target:k,direction:"downstream"};else throw new Error(`unknown impact direction: ${m.direction}`);d.push(b)}m.effect!=="none"&&m.effect!=="unknown"&&p.set(b.id,di[m.effect].color)}return l.jsx(bu,{nodes:o,edges:d,focusId:f,marks:c,edgeMarks:p,selectedId:u.get(e.selected),onNodeClick:m=>e.select(m.name)})}function Jx(e){const[t,n]=A.useState(!1),[i,r]=A.useState(e.settings),[s,o]=A.useState(!1),[a,d]=A.useState(null),c=!Ds(e.settings,i);async function u(){o(!0),d(null);try{await e.saveSettings(i),n(!1)}catch(h){d(h instanceof Error?h.message:"Lens could not save the settings.")}finally{o(!1)}}return l.jsx(Ga,{open:t,onOpenChange:h=>{h&&(r(e.settings),d(null)),n(h)},trigger:l.jsx($c,{asChild:!0,children:l.jsxs("button",{type:"button",className:"action-button",children:[l.jsx(P,{icon:il,"aria-hidden":"true"}),"Customize"]})}),children:l.jsxs(za,{title:"Customize Lens",description:"Your settings apply to every review on this machine.",footerCancel:!0,footerSubmit:s?"Saving":c?"Save and run again":"Save",footerSubmitLoading:s,onFooterSubmitClick:()=>void u(),children:[l.jsx("div",{className:"uigraph-lens",children:l.jsx(jc,{value:i,onChange:r,repositoryConfig:e.repositoryConfig})}),l.jsx("p",{role:a?"alert":void 0,className:Za("mt-5 text-xs text-[#828DA3]",a&&"text-red-400"),children:a??(c?"Saving starts a new review. It takes a few minutes.":"The review does not need to run again.")})]})})}function V_(e){const{runId:t}=zc(),n=Qx(t),i=Xa(),r=qc(),s=Kc(),o=Ka({queryKey:["lens-settings"],queryFn:fu});return n.run?l.jsxs(l.Fragment,{children:[n.run.running&&l.jsxs("div",{className:"border-stock flex items-center justify-between gap-4 border-b px-6 py-2 text-sm text-[#828DA3]",children:["Review in progress",l.jsx(e_,{runId:t})]}),n.run.running&&n.analysis?.ticketCandidates&&l.jsx(t_,{runId:t,candidates:n.analysis.ticketCandidates}),l.jsx(Mx,{review:n.run.review,analysis:n.analysis,location:vy(s[0]),onLocationChange:a=>s[1](yy(a)),hideHeader:e.inDashboard,renderImpactGraph:a=>l.jsx(Xx,{...a}),customize:o.data&&l.jsx(Jx,{settings:o.data,repositoryConfig:n.analysis?.repositoryConfig??null,saveSettings:async a=>{const d=await du(a);i.setQueryData(["lens-settings"],d);const c=n.run?.review.pullRequest.githubUrl??null;if(n.analysis===null||Ds(n.analysis.settings,d))return;if(c===null){vs.info("The next review uses these settings.");return}const u=await cu(c);i.invalidateQueries({queryKey:["lens-runs"]}),r(e.inDashboard?Vs.lens.dashboardRun(u):Vs.lens.run(u))}})}),!n.connected&&l.jsx(i_,{})]}):l.jsx(Yx,{state:n.state})}function Qx(e){const t=Xa(),n=Ka({queryKey:["lens-run",e],queryFn:()=>pu(e)}),[i,r]=A.useState(null),[s,o]=A.useState(!0),a=n.data?.running===!0;A.useEffect(()=>{if(!a)return;const c=new EventSource(`/api/lens/runs/${e}/events`);return c.onopen=()=>o(!0),c.onerror=()=>o(!1),c.onmessage=u=>{r({runId:e,analysis:JSON.parse(u.data)})},c.addEventListener("end",()=>{c.close(),o(!0),t.invalidateQueries({queryKey:["lens-run",e]}),t.invalidateQueries({queryKey:["lens-runs"]})}),()=>c.close()},[a,e,t]),A.useEffect(()=>{n.data&&(document.title=`${n.data.review.pullRequest.number===null?"":`#${n.data.review.pullRequest.number} `}${n.data.review.pullRequest.title} · UIGraph Lens`)},[n.data]);const d=n.data??null;return{run:d,analysis:a&&i?.runId===e?i.analysis:d?.analysis??null,connected:!a||s,state:n.isPending?"loading":n.isError?"error":"missing"}}function Yx({state:e}){return e==="loading"?l.jsx(qa,{label:"Loading the review"}):e==="error"?l.jsx($s,{plain:!0,label:"The review could not be loaded."}):l.jsx($s,{plain:!0,label:"This Lens run was not found."})}function e_({runId:e}){const[t,n]=A.useState(!1);return l.jsx(ti,{preset:"outline",disabled:t,onClick:()=>{n(!0),uu(e).catch(i=>{n(!1),vs.error(i instanceof Error?i.message:"Lens could not stop.")})},children:t?"Stopping":"Stop review"})}function t_({runId:e,candidates:t}){const[n,i]=A.useState(!0),[r,s]=A.useState([]),[o,a]=A.useState(null),d=[...new Set(t.flatMap(u=>u.tracker??[]))];function c(u){a(u.length===0?"none":"tickets"),hu(e,u).catch(h=>{a(null),vs.error(h instanceof Error?h.message:"The answer could not be sent.")})}return l.jsxs(l.Fragment,{children:[!n&&l.jsxs("div",{className:"flex items-center justify-between gap-4 border-b border-[#3B6BFF]/30 bg-[#3B6BFF]/10 px-6 py-2 text-sm text-[#C7D3F5]",children:["Lens is paused until you pick the tickets for this change.",l.jsx(ti,{preset:"outline",onClick:()=>i(!0),children:"Pick tickets"})]}),l.jsx(Ga,{open:n,onOpenChange:i,className:"[--width:36rem]",children:l.jsx(za,{_headerContent:l.jsxs(Bc,{className:"flex w-full flex-row items-start justify-between gap-4 border-b border-[#2A3242] px-6 py-5",children:[l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(Wc,{className:"text-left text-base font-medium",children:"Which tickets does this change belong to?"}),l.jsx(Uc,{className:"text-left",children:`Lens found ${t.length} ${d.length===1?`${d[0]} tickets`:"tickets"} that could match. Pick every ticket this change works on.`})]}),l.jsx(Fc,{className:"shrink-0"})]}),_footerContent:l.jsxs(Vc,{className:"flex w-full flex-row items-center justify-between gap-3 p-6 pt-3 sm:justify-between",children:[l.jsxs(ti,{preset:"ghost",disabled:o!==null,onClick:()=>c([]),children:[o==="none"&&l.jsx(Ws,{className:"size-4 animate-spin"}),"None of these"]}),l.jsxs(ti,{preset:"primary",disabled:r.length===0||o!==null,onClick:()=>c(r),children:[o==="tickets"&&l.jsx(Ws,{className:"size-4 animate-spin"}),r.length===1?`Use ${r[0]}`:r.length>1?`Use ${r.length} tickets`:"Use tickets"]})]}),children:l.jsx("div",{className:"flex flex-col gap-2",children:t.map(u=>{const h=n_(u.tracker),f=r.includes(u.key);return l.jsxs("label",{className:Za("flex cursor-pointer items-start gap-3 rounded-xl border border-[#2A3242] px-4 py-3 transition-colors hover:border-[#3A4357] hover:bg-white/[0.02]",f&&"border-[#3B6BFF] bg-[#3B6BFF]/10 hover:border-[#3B6BFF] hover:bg-[#3B6BFF]/10"),children:[l.jsx(Hc,{className:"mt-0.5",checked:f,onCheckedChange:p=>s(t.map(m=>m.key).filter(m=>m===u.key?p===!0:r.includes(m)))}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[l.jsxs("span",{className:"flex items-center gap-2 text-xs text-[#828DA3]",children:[h&&l.jsx(h,{className:"size-3"}),l.jsx("span",{className:"font-mono",children:u.key})]}),l.jsx("span",{className:"text-foreground text-sm font-medium",children:u.title}),l.jsx("span",{className:"text-[13px] text-[#828DA3]",children:u.reason})]}),u.url&&l.jsx("a",{href:u.url,target:"_blank",rel:"noreferrer","aria-label":`Open ${u.key}`,onClick:p=>p.stopPropagation(),className:"hover:text-foreground shrink-0 rounded-md p-1 text-[#828DA3] hover:bg-white/5",children:l.jsx(Gc,{className:"size-4"})})]},u.key)})})})})]})}function n_(e){if(e===null)return null;const t=e.toLowerCase();return t==="linear"?ou:t==="jira"?au:t==="github"?lu:null}function i_(){return l.jsx("div",{className:"uigraph-lens",children:l.jsx("p",{className:"data-warning connection-warning",role:"status",children:"Lost the connection to the Lens process. Reconnecting."})})}export{V_ as LensRunPage};