@hona/openeval 0.2.2 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/JUDGING.md +135 -23
  2. package/README.md +71 -9
  3. package/package.json +7 -6
  4. package/src/app/cost-plan.ts +20 -16
  5. package/src/app/eval-state.ts +2 -1
  6. package/src/app/grade-recording.ts +72 -0
  7. package/src/app/input-fingerprints.ts +22 -8
  8. package/src/app/judge-evidence.ts +26 -11
  9. package/src/app/judge-run.ts +36 -19
  10. package/src/app/load-benchmark.ts +48 -16
  11. package/src/app/read-results.ts +35 -2
  12. package/src/app/read-run.ts +23 -2
  13. package/src/app/rejudge.ts +2 -1
  14. package/src/app/run-benchmark.ts +8 -1
  15. package/src/app/run-eval-pipeline.ts +2 -1
  16. package/src/app/run-eval.ts +13 -0
  17. package/src/app/scores.ts +76 -34
  18. package/src/app/serve-results.ts +2 -0
  19. package/src/evidence.ts +4 -1
  20. package/src/index.ts +15 -3
  21. package/src/infra/containers/runtime/package.json +2 -2
  22. package/src/infra/containers/runtime/server.mjs +1 -1
  23. package/src/infra/evidence/index.ts +39 -2
  24. package/src/infra/evidence/tool-calls.ts +5 -2
  25. package/src/infra/judging/agent.ts +3 -2
  26. package/src/infra/judging/code-result.ts +102 -0
  27. package/src/infra/judging/code-source.ts +96 -0
  28. package/src/infra/judging/code-worker.ts +26 -0
  29. package/src/infra/judging/code.ts +97 -0
  30. package/src/infra/judging/contract.ts +82 -64
  31. package/src/infra/judging/evidence-tool.ts +3 -1
  32. package/src/infra/judging/index.ts +14 -0
  33. package/src/infra/judging/judge-agent.md +24 -18
  34. package/src/infra/judging/observer.ts +8 -7
  35. package/src/infra/judging/submission.ts +8 -8
  36. package/src/infra/judging/tools.ts +9 -9
  37. package/src/infra/opencode/host.ts +1 -1
  38. package/src/infra/opencode/read-recording.ts +6 -1
  39. package/src/infra/opencode/version.ts +2 -0
  40. package/src/infra/recording/index.ts +240 -0
  41. package/src/infra/recording/metrics.ts +193 -0
  42. package/src/infra/sqlite/index.ts +29 -19
  43. package/src/judge-context.ts +141 -0
  44. package/src/judgment.ts +26 -17
  45. package/src/types.ts +36 -17
  46. package/src/view.ts +40 -14
  47. package/viewer/THIRD_PARTY_LICENSES.md +2 -2
  48. package/viewer/assets/{abnfDiagram-VCTEODGH-B1kcYgQG.js → abnfDiagram-VCTEODGH-Ck7reUId.js} +1 -1
  49. package/viewer/assets/{angular-html-DrYCUiZv.js → angular-html-DzRW817u.js} +1 -1
  50. package/viewer/assets/{angular-ts-BgjwQn-Z.js → angular-ts-Dwpo5JSv.js} +1 -1
  51. package/viewer/assets/{apl-DlHqe8o4.js → apl-bt59SDvg.js} +1 -1
  52. package/viewer/assets/{arc-C4nf7ZoY.js → arc-Dwbl2Pkh.js} +1 -1
  53. package/viewer/assets/architecture-7GRP2DOG-BZpt0zSq.js +1 -0
  54. package/viewer/assets/{architectureDiagram-5GKGNRK7-BIWoe0fO.js → architectureDiagram-5GKGNRK7-BcmO-Qqp.js} +1 -1
  55. package/viewer/assets/{astro-BrlHnIh9.js → astro-B3siF1pJ.js} +1 -1
  56. package/viewer/assets/{blade-DOcerOiW.js → blade-BevF_cYv.js} +1 -1
  57. package/viewer/assets/{blockDiagram-I7D4REHJ-C3x13a9m.js → blockDiagram-I7D4REHJ-MzX9_xf9.js} +1 -1
  58. package/viewer/assets/{c-BMbThxEo.js → c-gavBjOcY.js} +1 -1
  59. package/viewer/assets/{c4Diagram-7LVT6UL2-BeWktchx.js → c4Diagram-7LVT6UL2-BbHHPJGg.js} +1 -1
  60. package/viewer/assets/channel-BnnBJr7O.js +1 -0
  61. package/viewer/assets/{chapel-k2cjkSmc.js → chapel-DgshBe1K.js} +1 -1
  62. package/viewer/assets/{chunk-4HAMMTFA-o6YtJsqE.js → chunk-4HAMMTFA-D1Gsg_qO.js} +1 -1
  63. package/viewer/assets/{chunk-75Z2AOVW-KohQa9Nw.js → chunk-75Z2AOVW-EfPG3FOY.js} +1 -1
  64. package/viewer/assets/{chunk-DU6HZSFF-C88wxc6m.js → chunk-DU6HZSFF-BxB0lceI.js} +1 -1
  65. package/viewer/assets/{chunk-F27PBJKO-mO4AP2as.js → chunk-F27PBJKO-DRBDr_-Q.js} +1 -1
  66. package/viewer/assets/{chunk-GMAD6QVW-DzQX2Cld.js → chunk-GMAD6QVW-AbIWvPs8.js} +1 -1
  67. package/viewer/assets/{chunk-GVQU2GXP-CS78RfJD.js → chunk-GVQU2GXP-aIYNUxo9.js} +1 -1
  68. package/viewer/assets/{chunk-IMKFNOWR-DxS42GUo.js → chunk-IMKFNOWR-BwpTTnl_.js} +1 -1
  69. package/viewer/assets/{chunk-L3NEJ4N5-DGo-uYLy.js → chunk-L3NEJ4N5-KtxD1mfg.js} +1 -1
  70. package/viewer/assets/{chunk-OSK3NFVY-BOcXQG16.js → chunk-OSK3NFVY-CinbAXbX.js} +1 -1
  71. package/viewer/assets/{chunk-P2QGCYS3-B7GnZdIQ.js → chunk-P2QGCYS3-Dst8DZSR.js} +1 -1
  72. package/viewer/assets/{chunk-POPQ4Y6H-DgBcYHog.js → chunk-POPQ4Y6H-DqvBdud7.js} +1 -1
  73. package/viewer/assets/{chunk-PWAF6VOD-DpEq6qHA.js → chunk-PWAF6VOD-Cl2eG05g.js} +1 -1
  74. package/viewer/assets/{chunk-SHT3W25Y-CrOGxKM2.js → chunk-SHT3W25Y-D9FbZ836.js} +1 -1
  75. package/viewer/assets/{chunk-SVP7TREG-4HY7Fljj.js → chunk-SVP7TREG-_4n_lRpO.js} +1 -1
  76. package/viewer/assets/{chunk-TICWLB2K-B1Rl31EC.js → chunk-TICWLB2K-DUXjjJlY.js} +1 -1
  77. package/viewer/assets/{chunk-XXDRQBXY-CK8giEW-.js → chunk-XXDRQBXY-BdRoSapX.js} +1 -1
  78. package/viewer/assets/classDiagram-ZZMXUADV-F9J3BKRU.js +1 -0
  79. package/viewer/assets/classDiagram-v2-VYDZK3BY-F9J3BKRU.js +1 -0
  80. package/viewer/assets/{cobol-CupUwvw9.js → cobol-D5zqvXzY.js} +1 -1
  81. package/viewer/assets/{coffee-C17pkozF.js → coffee-SCAyVn9N.js} +1 -1
  82. package/viewer/assets/{cose-bilkent-JH36ORCC-V1OmrmCv.js → cose-bilkent-JH36ORCC-B5uDWB-J.js} +1 -1
  83. package/viewer/assets/{cpp-BJwVQVXg.js → cpp-RUQ97EK5.js} +1 -1
  84. package/viewer/assets/{crystal-BF-oCN-L.js → crystal-FauNVdkE.js} +1 -1
  85. package/viewer/assets/{css-BMgkVI3c.js → css-DuzOk7di.js} +1 -1
  86. package/viewer/assets/{cynefin-OW5HDTMX-BEjY_gsc.js → cynefin-OW5HDTMX-D0N8Dm6P.js} +1 -1
  87. package/viewer/assets/{cynefinDiagram-5FMLGOSQ-bfSYgr6z.js → cynefinDiagram-5FMLGOSQ-IGGiqH_Y.js} +1 -1
  88. package/viewer/assets/{dagre-GXQ25YYZ-VtwTgGfa.js → dagre-GXQ25YYZ-PoopsFcY.js} +1 -1
  89. package/viewer/assets/{diagram-S7CK7UJ4-CHaAAyW7.js → diagram-S7CK7UJ4-D6GuIlRD.js} +1 -1
  90. package/viewer/assets/{diagram-UQ7AKVKN-CjL65-As.js → diagram-UQ7AKVKN-Cj8lu7Hi.js} +1 -1
  91. package/viewer/assets/{diagram-VSXAHHWV-Cnxrk1TJ.js → diagram-VSXAHHWV-bI4-SjAp.js} +1 -1
  92. package/viewer/assets/{diagram-VX7I27RA-D78jPXr7.js → diagram-VX7I27RA-jWvTT618.js} +1 -1
  93. package/viewer/assets/{diagram-Z3DM3KII-DKjnOaF2.js → diagram-Z3DM3KII-D6Vcvcr8.js} +1 -1
  94. package/viewer/assets/{dist-BTYPW0dz.js → dist-Cn65YNrn.js} +1 -1
  95. package/viewer/assets/{ebnfDiagram-PWID7BFC-7XiXh5Lx.js → ebnfDiagram-PWID7BFC-y-ZxfP2H.js} +1 -1
  96. package/viewer/assets/{edge-B34N_HjN.js → edge-Bc0EBQ7y.js} +1 -1
  97. package/viewer/assets/{elixir-CQzWMyKD.js → elixir-BmxsT0oc.js} +1 -1
  98. package/viewer/assets/{elm-BNJiG-wg.js → elm-BrTAZ55m.js} +1 -1
  99. package/viewer/assets/{erDiagram-RLTQ6QDP-YPFEgZxU.js → erDiagram-RLTQ6QDP-Wa1tikbb.js} +1 -1
  100. package/viewer/assets/{erb-D5Rm3UNa.js → erb-B60HRxmg.js} +1 -1
  101. package/viewer/assets/eventmodeling-NTZA5JFV-BNvBHnQf.js +1 -0
  102. package/viewer/assets/flowDiagram-HODETNUW-zGgqOVuO.js +1 -0
  103. package/viewer/assets/{ganttDiagram-EL5Y4UJY-ergSGtTP.js → ganttDiagram-EL5Y4UJY-DjskXB68.js} +1 -1
  104. package/viewer/assets/{git-rebase-BpIMZIRG.js → git-rebase-CK9f68l3.js} +1 -1
  105. package/viewer/assets/{gitGraph-4MIJSDKK-CZt4REVj.js → gitGraph-4MIJSDKK-CvRhO7Ae.js} +1 -1
  106. package/viewer/assets/{gitGraphDiagram-WWUBYQGX-h9QMzC2r.js → gitGraphDiagram-WWUBYQGX-Bg_OLNL1.js} +1 -1
  107. package/viewer/assets/{glimmer-js-SeSwns5_.js → glimmer-js-CVc7keaR.js} +1 -1
  108. package/viewer/assets/{glimmer-ts-BExI5tTz.js → glimmer-ts-DYraWlmH.js} +1 -1
  109. package/viewer/assets/{glsl-CXikKw2b.js → glsl-BpYswgfh.js} +1 -1
  110. package/viewer/assets/{graphql-6GpQIInt.js → graphql-C3iDzxap.js} +1 -1
  111. package/viewer/assets/{hack-i7rizvpB.js → hack-D8oEoipZ.js} +1 -1
  112. package/viewer/assets/{haml-C68gmkTf.js → haml-BJb-BQAN.js} +1 -1
  113. package/viewer/assets/{handlebars-BBn_c0Xt.js → handlebars-wB54lHaB.js} +1 -1
  114. package/viewer/assets/{html-BObmAZQA.js → html-HIvKkSZ3.js} +1 -1
  115. package/viewer/assets/{html-derivative-BjMuR1LM.js → html-derivative-CDavbmdn.js} +1 -1
  116. package/viewer/assets/{http-BJBk8gt0.js → http-DEgShh0-.js} +1 -1
  117. package/viewer/assets/{hurl-D7obCYfg.js → hurl-D8wvJcyh.js} +1 -1
  118. package/viewer/assets/{index-FMtYXcX7.js → index-Ck3NBCVJ.js} +9 -7
  119. package/viewer/assets/{index-Wz0qQyIk.css → index-DAuO1BM4.css} +1 -1
  120. package/viewer/assets/{info-A6RAGUB7-CrzitQIU.js → info-A6RAGUB7-DL3H6Iqn.js} +1 -1
  121. package/viewer/assets/{infoDiagram-27XIBGKW-D2CgRDxu.js → infoDiagram-27XIBGKW-DSLzhrL8.js} +1 -1
  122. package/viewer/assets/{ishikawaDiagram-5VMMS53U-BhnQMHOo.js → ishikawaDiagram-5VMMS53U-B-ycXUrd.js} +1 -1
  123. package/viewer/assets/{java-5VJU_EW8.js → java-C5iWdXOl.js} +1 -1
  124. package/viewer/assets/{javascript-r8UgndxQ.js → javascript-PMSXGhX1.js} +1 -1
  125. package/viewer/assets/{jinja-BY2ibHG5.js → jinja-CJ_l63gX.js} +1 -1
  126. package/viewer/assets/{jison-C_7YxymZ.js → jison-DGaZyJAT.js} +1 -1
  127. package/viewer/assets/{journeyDiagram-3NMN7TZE-DSBzKQEa.js → journeyDiagram-3NMN7TZE-2p56tZPm.js} +1 -1
  128. package/viewer/assets/{json-8e1WlJYD.js → json-CCQ1eo9o.js} +1 -1
  129. package/viewer/assets/{jsx-BYp5GD4Y.js → jsx-DeLT99JL.js} +1 -1
  130. package/viewer/assets/{julia-Bkob1uVX.js → julia-DODLsulx.js} +1 -1
  131. package/viewer/assets/{just-CUnSjty-.js → just-B_Nvjvhv.js} +1 -1
  132. package/viewer/assets/{kanban-definition-UXKFOSKX-CotbrQue.js → kanban-definition-UXKFOSKX-B42fPx4K.js} +1 -1
  133. package/viewer/assets/{latex-UdE3ivqk.js → latex-CCjy2I9z.js} +1 -1
  134. package/viewer/assets/{line-DDh6a6hz.js → line-DGK8UZYe.js} +1 -1
  135. package/viewer/assets/{linear-BxMsCbKb.js → linear-LxXu6wOl.js} +1 -1
  136. package/viewer/assets/{liquid-WL4MvEIT.js → liquid-C2tknZP0.js} +1 -1
  137. package/viewer/assets/{lua-CtOubZta.js → lua-D6UzQw5Z.js} +1 -1
  138. package/viewer/assets/{marko-C0GSQJi3.js → marko-CGd5W4Hn.js} +1 -1
  139. package/viewer/assets/{mdc-DUivddFc.js → mdc-Bp5z92Vo.js} +1 -1
  140. package/viewer/assets/{mermaid-parser.core-FhKE_uv2.js → mermaid-parser.core-xGBt_sNt.js} +3 -3
  141. package/viewer/assets/{mermaid.core-BSOWwyvd.js → mermaid.core-D1TUMBuT.js} +4 -4
  142. package/viewer/assets/{mindmap-definition-YA3MSWOX-tsLZ_Opn.js → mindmap-definition-YA3MSWOX-BY9cVMtI.js} +1 -1
  143. package/viewer/assets/{nginx-B__INAtC.js → nginx-DAsqAd3h.js} +1 -1
  144. package/viewer/assets/{nim-UEY12GJF.js → nim-COOJz623.js} +1 -1
  145. package/viewer/assets/{org-DDIZsz95.js → org-CBV1qqrA.js} +1 -1
  146. package/viewer/assets/{packet-AYTQ26CC-CqdJnqfo.js → packet-AYTQ26CC-61q5HcB3.js} +1 -1
  147. package/viewer/assets/{pegDiagram-XKGWAZYB-BJs7qu7m.js → pegDiagram-XKGWAZYB-DLEkmimO.js} +1 -1
  148. package/viewer/assets/{perl-D5KwNZt7.js → perl-6SV_ayGd.js} +1 -1
  149. package/viewer/assets/{php-BEs7d_Dk.js → php-BUb-Io9m.js} +1 -1
  150. package/viewer/assets/{pie-WAS4IAKB-lgzqBWqy.js → pie-WAS4IAKB-DgijP3YA.js} +1 -1
  151. package/viewer/assets/{pieDiagram-E7YTZNPT-Cxe9LnnE.js → pieDiagram-E7YTZNPT-Cp20J80-.js} +1 -1
  152. package/viewer/assets/{pug-B0dsfQOV.js → pug-D5s94d1b.js} +1 -1
  153. package/viewer/assets/{qml-XPIhrIzf.js → qml-D8g4NGVo.js} +1 -1
  154. package/viewer/assets/{quadrantDiagram-AXDQQJYC-D5JGwC11.js → quadrantDiagram-AXDQQJYC-Djsc9xpm.js} +1 -1
  155. package/viewer/assets/{r-C6hQdpIM.js → r-DXvz5K4A.js} +1 -1
  156. package/viewer/assets/{radar-RG4KPBEZ-B7JRLhUA.js → radar-RG4KPBEZ-BCmoUpe8.js} +1 -1
  157. package/viewer/assets/{railroad-74A4TZTK-Df7ZQBLn.js → railroad-74A4TZTK-DZ0SYESf.js} +1 -1
  158. package/viewer/assets/railroad-abnf-HS5TGJTU-C2CQDbu6.js +1 -0
  159. package/viewer/assets/railroad-ebnf-LZEXJU2U-6ssJubZr.js +1 -0
  160. package/viewer/assets/railroad-peg-WCYAUIDC-UOxDGPyg.js +1 -0
  161. package/viewer/assets/{railroadDiagram-O6MQD6OU-DZJzpmP8.js → railroadDiagram-O6MQD6OU-DmD4JR_t.js} +1 -1
  162. package/viewer/assets/{razor-C3KSUuOw.js → razor-D9CjUAvE.js} +1 -1
  163. package/viewer/assets/{regexp-n-T936Rk.js → regexp-CnuLvLnC.js} +1 -1
  164. package/viewer/assets/{requirementDiagram-BXWQKSXE-Be9lEFrk.js → requirementDiagram-BXWQKSXE-BTci7X6J.js} +1 -1
  165. package/viewer/assets/{rst-fVnHDyXD.js → rst-Chdv5DuC.js} +1 -1
  166. package/viewer/assets/{ruby-DuRgxlXF.js → ruby-DXQkNv8k.js} +1 -1
  167. package/viewer/assets/{sankeyDiagram-P5KCCOFB-BsgKAEBN.js → sankeyDiagram-P5KCCOFB-BaHSMANQ.js} +1 -1
  168. package/viewer/assets/{sas-C0WA2OFa.js → sas-B6S0Oq1H.js} +1 -1
  169. package/viewer/assets/{scss-CQDZ4smR.js → scss-BnFPXH54.js} +1 -1
  170. package/viewer/assets/{sequenceDiagram-WJ2MYXX4-BkUDWL0D.js → sequenceDiagram-WJ2MYXX4-BUk21g1t.js} +1 -1
  171. package/viewer/assets/{shellscript-CE84G0GP.js → shellscript-Brdg8vyE.js} +1 -1
  172. package/viewer/assets/{shellsession-BdJvdaqL.js → shellsession-Df33UGC7.js} +1 -1
  173. package/viewer/assets/{soy-BSxOREC0.js → soy-DE83qari.js} +1 -1
  174. package/viewer/assets/{sql-D4MN9uRI.js → sql-C838IanB.js} +1 -1
  175. package/viewer/assets/{src-BT_kESTA.js → src-tvfSkCy9.js} +1 -1
  176. package/viewer/assets/{stata-B6nXAaGV.js → stata-BjrFc6Ob.js} +1 -1
  177. package/viewer/assets/{stateDiagram-D77RDMKH-C80wp8xG.js → stateDiagram-D77RDMKH-B7yRJv9-.js} +1 -1
  178. package/viewer/assets/stateDiagram-v2-MP3YSRHH-BCwhllSg.js +1 -0
  179. package/viewer/assets/{surrealql-fVjZmhV3.js → surrealql-BQl2P64c.js} +1 -1
  180. package/viewer/assets/{svelte-DnBQ5p7d.js → svelte-WhVuP9VM.js} +1 -1
  181. package/viewer/assets/{swimlanes-42K2YHIH-Cff6yT8e.js → swimlanes-42K2YHIH-on6wyUF5.js} +1 -1
  182. package/viewer/assets/swimlanesDiagram-VR7AAH4N-D0QyhouX.js +8 -0
  183. package/viewer/assets/{templ-TCx51Uts.js → templ-GlyHWfam.js} +1 -1
  184. package/viewer/assets/{tex-CF6SMAQ_.js → tex-Wu25UU_Z.js} +1 -1
  185. package/viewer/assets/{timeline-definition-24CTP7MA-Cje7BvaN.js → timeline-definition-24CTP7MA-DsgJtBig.js} +1 -1
  186. package/viewer/assets/{treeView-Q6P3EWNA-D-QLY3IO.js → treeView-Q6P3EWNA-Bae2q_db.js} +1 -1
  187. package/viewer/assets/{treemap-WGGIJYW6-BCHcTa4N.js → treemap-WGGIJYW6-BJsxvsBb.js} +1 -1
  188. package/viewer/assets/{ts-tags-BqLRnADX.js → ts-tags-C6TgXLV6.js} +1 -1
  189. package/viewer/assets/{tsx-D7KpDX0b.js → tsx-DVoPHges.js} +1 -1
  190. package/viewer/assets/{twig-CEZLObpN.js → twig-CKzx4A42.js} +1 -1
  191. package/viewer/assets/{typescript-DAbIDLbf.js → typescript-DvXz8u_k.js} +1 -1
  192. package/viewer/assets/{typst-CqN7-whv.js → typst-BcepwfpV.js} +1 -1
  193. package/viewer/assets/{vennDiagram-4TSXK5OY-Bz20rx02.js → vennDiagram-4TSXK5OY-CKUR4uY_.js} +1 -1
  194. package/viewer/assets/{vue-kTxN6wdc.js → vue-Bqzme_T-.js} +1 -1
  195. package/viewer/assets/{vue-html-DQmvvKbd.js → vue-html-DZHKNOUy.js} +1 -1
  196. package/viewer/assets/{vue-vine-Did3qTVW.js → vue-vine-azvFs0P6.js} +1 -1
  197. package/viewer/assets/{wardley-WFR3VGLG-CpXaqOit.js → wardley-WFR3VGLG-Ddsu3qLB.js} +1 -1
  198. package/viewer/assets/{wardleyDiagram-VM6X3IG4-Cz06jHpA.js → wardleyDiagram-VM6X3IG4-CCHx9UX4.js} +1 -1
  199. package/viewer/assets/{xml-te2hFcAA.js → xml-BZNC4g25.js} +1 -1
  200. package/viewer/assets/{xsl-X4fuKSVl.js → xsl-DXEWaWc5.js} +1 -1
  201. package/viewer/assets/{xychartDiagram-S5SC5T6Z-BXCw0sfu.js → xychartDiagram-S5SC5T6Z-CkoTq405.js} +1 -1
  202. package/viewer/assets/{yaml-NHtDSZab.js → yaml-DLY3wDEk.js} +1 -1
  203. package/viewer/index.html +2 -2
  204. package/viewer/assets/architecture-7GRP2DOG-Be250VKZ.js +0 -1
  205. package/viewer/assets/channel-DtULXRee.js +0 -1
  206. package/viewer/assets/classDiagram-ZZMXUADV-Bmqu01Xf.js +0 -1
  207. package/viewer/assets/classDiagram-v2-VYDZK3BY-Bmqu01Xf.js +0 -1
  208. package/viewer/assets/eventmodeling-NTZA5JFV-CJCg5f6p.js +0 -1
  209. package/viewer/assets/flowDiagram-HODETNUW-BFzq4Zvs.js +0 -1
  210. package/viewer/assets/railroad-abnf-HS5TGJTU-Z8q3QVTf.js +0 -1
  211. package/viewer/assets/railroad-ebnf-LZEXJU2U-BWoRkG3W.js +0 -1
  212. package/viewer/assets/railroad-peg-WCYAUIDC-BzoV1cN7.js +0 -1
  213. package/viewer/assets/stateDiagram-v2-MP3YSRHH-CYdsKKlz.js +0 -1
  214. package/viewer/assets/swimlanesDiagram-VR7AAH4N-niTUGjMT.js +0 -8
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DrYCUiZv.js","assets/html-BObmAZQA.js","assets/javascript-r8UgndxQ.js","assets/css-BMgkVI3c.js","assets/angular-ts-BgjwQn-Z.js","assets/scss-CQDZ4smR.js","assets/apl-DlHqe8o4.js","assets/xml-te2hFcAA.js","assets/java-5VJU_EW8.js","assets/json-8e1WlJYD.js","assets/astro-BrlHnIh9.js","assets/typescript-DAbIDLbf.js","assets/postcss-BXeXVLqQ.js","assets/tsx-D7KpDX0b.js","assets/blade-DOcerOiW.js","assets/html-derivative-BjMuR1LM.js","assets/sql-D4MN9uRI.js","assets/bsl-_VjlB9mv.js","assets/sdbl-bTVj8UrX.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/chapel-k2cjkSmc.js","assets/c-BMbThxEo.js","assets/cobol-CupUwvw9.js","assets/coffee-C17pkozF.js","assets/cpp-BJwVQVXg.js","assets/regexp-n-T936Rk.js","assets/glsl-CXikKw2b.js","assets/crystal-BF-oCN-L.js","assets/shellscript-CE84G0GP.js","assets/edge-B34N_HjN.js","assets/elixir-CQzWMyKD.js","assets/elm-BNJiG-wg.js","assets/erb-D5Rm3UNa.js","assets/ruby-DuRgxlXF.js","assets/haml-C68gmkTf.js","assets/graphql-6GpQIInt.js","assets/jsx-BYp5GD4Y.js","assets/lua-CtOubZta.js","assets/yaml-NHtDSZab.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-xMC7jr7x.js","assets/gdshader-CBce3t8t.js","assets/gdscript-DYvRD3hg.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-BpIMZIRG.js","assets/glimmer-js-SeSwns5_.js","assets/glimmer-ts-BExI5tTz.js","assets/hack-i7rizvpB.js","assets/handlebars-BBn_c0Xt.js","assets/http-BJBk8gt0.js","assets/hurl-D7obCYfg.js","assets/csv-Dx-8-gkx.js","assets/hxml-Dcm88srW.js","assets/haxe-C8oCnwJJ.js","assets/jinja-BY2ibHG5.js","assets/jison-C_7YxymZ.js","assets/julia-Bkob1uVX.js","assets/r-C6hQdpIM.js","assets/just-CUnSjty-.js","assets/perl-D5KwNZt7.js","assets/latex-UdE3ivqk.js","assets/tex-CF6SMAQ_.js","assets/liquid-WL4MvEIT.js","assets/marko-C0GSQJi3.js","assets/less-DVTAwKKz.js","assets/mdc-DUivddFc.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-B__INAtC.js","assets/nim-UEY12GJF.js","assets/org-DDIZsz95.js","assets/clojure-DqKBuwfJ.js","assets/csharp-oqKa8noW.js","assets/dart-CnvKMtbv.js","assets/docker-IyjqRm3v.js","assets/go-rLFTqkRN.js","assets/groovy-CacY0gHj.js","assets/ini-B5eOa1yu.js","assets/make-Dixweg8N.js","assets/objective-c-D1A_Heim.js","assets/ocaml-O90oeIOV.js","assets/php-BEs7d_Dk.js","assets/vb-DOwzaHZ0.js","assets/raku-B3gFvitq.js","assets/rust-Cfkwpbl8.js","assets/scala-BiFt_7mu.js","assets/zig-CMLA9XwU.js","assets/xsl-X4fuKSVl.js","assets/pug-B0dsfQOV.js","assets/qml-XPIhrIzf.js","assets/razor-C3KSUuOw.js","assets/rst-fVnHDyXD.js","assets/cmake-Bj61d0ZC.js","assets/sas-C0WA2OFa.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-BdJvdaqL.js","assets/soy-BSxOREC0.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-B6nXAaGV.js","assets/surrealql-fVjZmhV3.js","assets/svelte-DnBQ5p7d.js","assets/templ-TCx51Uts.js","assets/ts-tags-BqLRnADX.js","assets/twig-CEZLObpN.js","assets/typst-CqN7-whv.js","assets/bat-qdxAdBWQ.js","assets/bibtex-Ci_nEsc7.js","assets/jsonc-CYpm1nAK.js","assets/log-BNLmms1o.js","assets/powershell-CCSX75yM.js","assets/swift-CyEgAFGc.js","assets/system-verilog-Dh5ihWbf.js","assets/verilog-B2gwz-sJ.js","assets/vue-kTxN6wdc.js","assets/vue-html-DQmvvKbd.js","assets/vue-vine-Did3qTVW.js","assets/stylus-B6D30XZt.js","assets/mermaid.core-BSOWwyvd.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-BT_kESTA.js","assets/chunk-DU6HZSFF-C88wxc6m.js","assets/chunk-75Z2AOVW-KohQa9Nw.js","assets/dist-BTYPW0dz.js","assets/chunk-PWAF6VOD-DpEq6qHA.js","assets/chunk-GMAD6QVW-DzQX2Cld.js","assets/chunk-P2QGCYS3-B7GnZdIQ.js","assets/chunk-4HAMMTFA-o6YtJsqE.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-GVQU2GXP-CS78RfJD.js","assets/chunk-OSK3NFVY-BOcXQG16.js","assets/line-DDh6a6hz.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/graphlib-DS17s2tU.js","assets/chunk-L3NEJ4N5-DGo-uYLy.js"])))=>i.map(i=>d[i]);
2
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return d(this.context.count)},getNextContextId(){return d(this.context.count++)}};function d(e){let t=String(e),n=t.length-1;return u.context.id+(n?String.fromCharCode(96+n):``)+t}function f(e){u.context=e}var p=(e,t)=>e===t,m=Symbol(`solid-proxy`),h=typeof Proxy==`function`,g=Symbol(`solid-track`),_={equals:p},v=null,y=Ce,b=1,x=2,S={owned:null,cleanups:null,context:null,owner:null},C={},w=null,T=null,E=null,D=null,O=null,k=0;function ee(e,t){let n=E,r=w,i=e.length===0,a=t===void 0?r:t,o=i?S:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>P(()=>De(o)));w=o,E=null;try{return xe(s,!0)}finally{E=n,w=r}}function A(e,t){t=t?Object.assign({},_,t):_;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[he.bind(n),e=>(typeof e==`function`&&(e=T&&T.running&&T.sources.has(n)?e(n.tValue):e(n.value)),ge(n,e))]}function te(e,t,n){_e(ye(e,t,!0,b))}function j(e,t,n){_e(ye(e,t,!1,b))}function M(e,t,n){y=we;let r=ye(e,t,!1,b),i=me&&R(me);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),O?O.push(r):_e(r)}function N(e,t,n){n=n?Object.assign({},_,n):_;let r=ye(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,_e(r),he.bind(r)}function ne(e){return e&&typeof e==`object`&&`then`in e}function re(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=C,c=null,l=!1,d=!1,f=`initialValue`in a,p=typeof r==`function`&&N(r),m=new Set,[h,g]=(a.storage||A)(a.initialValue),[_,v]=A(void 0),[y,b]=A(void 0,{equals:!1}),[x,S]=A(f?`ready`:`unresolved`);w&&F(()=>{for(let e of m.keys())e.decrement();m.clear(),T&&o&&T.promises.delete(o),o=null}),u.context&&(c=u.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:u.load&&u.has(c)&&(s=u.load(c)));function D(e,t,n,r){return o===e&&(o=null,r!==void 0&&(f=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=C,T&&e&&l?(T.promises.delete(e),l=!1,xe(()=>{T.running=!0,O(t,n)},!1)):O(t,n)),t}function O(e,t){xe(()=>{t===void 0&&g(()=>e),S(t===void 0?f?`ready`:`unresolved`:`errored`),v(t);for(let e of m.keys())e.decrement();m.clear()},!1)}function k(){let e=me&&R(me),t=h(),n=_();if(n!==void 0&&!o)throw n;return E&&!E.user&&e&&te(()=>{y(),o&&(e.resolved&&T&&l?T.promises.add(o):m.has(e)||(e.increment(),m.add(e)))}),t}function ee(e=!0){if(e!==!1&&d)return;d=!1;let t=p?p():r;if(l=T&&T.running,t==null||t===!1){D(o,P(h));return}T&&o&&T.promises.delete(o);let n,a=s===C?P(()=>{try{return i(t,{value:h(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){D(o,void 0,ke(n),t);return}return ne(a)?(o=a,`v`in a?(a.s===1?D(o,a.v,void 0,t):D(o,void 0,ke(a.v),t),a):(d=!0,queueMicrotask(()=>d=!1),xe(()=>{S(f?`refreshing`:`pending`),b()},!1),a.then(e=>D(a,e,void 0,t),e=>D(a,void 0,ke(e),t)))):(D(o,a,void 0,t),a)}Object.defineProperties(k,{state:{get:()=>x()},error:{get:()=>_()},loading:{get(){let e=x();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return k();let e=_();if(e&&!o)throw e;return h()}}});let j=w;return p?te(()=>(j=w,ee(!1))):ee(!1),[k,{refetch:e=>ue(j,()=>ee(e)),mutate:g}]}function ie(e){return xe(e,!1)}function P(e){if(E===null)return e();let t=E;E=null;try{return e()}finally{E=t}}function ae(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=P(()=>t(o,i,n));return i=o,s}}function oe(e){M(()=>P(e))}function F(e){return w===null||(w.cleanups===null?w.cleanups=[e]:w.cleanups.push(e)),e}function se(e,t){v||=Symbol(`error`),w=ye(void 0,void 0,!0),w.context={...w.context,[v]:[t]},T&&T.running&&T.sources.add(w);try{return e()}catch(e){je(e)}finally{w=w.owner}}function ce(){return E}function le(){return w}function ue(e,t){let n=w,r=E;w=e,E=null;try{return xe(t,!0)}catch(e){je(e)}finally{w=n,E=r}}function de(e){if(T&&T.running)return e(),T.done;let t=E,n=w;return Promise.resolve().then(()=>{E=t,w=n;let r;return me&&(r=T||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||(r.done=new Promise(e=>r.resolve=e)),r.running=!0),xe(e,!1),E=w=null,r?r.done:void 0})}var[fe,I]=A(!1);function L(e,t){let n=Symbol(`context`);return{id:n,Provider:Ne(n),defaultValue:e}}function R(e){let t;return w&&w.context&&(t=w.context[e.id])!==void 0?t:e.defaultValue}function pe(e){let t=N(e),n=N(()=>Me(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var me;function he(){let e=T&&T.running;if(this.sources&&(e?this.tState:this.state)){if((e?this.tState:this.state)===b)_e(this);else{let e=D;D=null,xe(()=>Te(this),!1),D=e}}if(E){let e=this.observers;if(!e||e[e.length-1]!==E){let t=e?e.length:0;E.sources?(E.sources.push(this),E.sourceSlots.push(t)):(E.sources=[this],E.sourceSlots=[t]),e?(e.push(E),this.observerSlots.push(E.sources.length-1)):(this.observers=[E],this.observerSlots=[E.sources.length-1])}}return e&&T.sources.has(this)?this.tValue:this.value}function ge(e,t,n){let r=T&&T.running&&T.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(T){let r=T.running;(r||!n&&T.sources.has(e))&&(T.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&xe(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=T&&T.running;r&&T.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?D.push(n):O.push(n),n.observers&&Ee(n)),r?n.tState=b:n.state=b)}if(D.length>1e6)throw D=[],Error()},!1)}return t}function _e(e){if(!e.fn)return;De(e);let t=k;ve(e,T&&T.running&&T.sources.has(e)?e.tValue:e.value,t),T&&!T.running&&T.sources.has(e)&&queueMicrotask(()=>{xe(()=>{T&&(T.running=!0),E=w=e,ve(e,e.tValue,t),E=w=null},!1)})}function ve(e,t,n){let r,i=w,a=E;E=w=e;try{r=e.fn(t)}catch(t){return e.pure&&(T&&T.running?(e.tState=b,e.tOwned&&e.tOwned.forEach(De),e.tOwned=void 0):(e.state=b,e.owned&&e.owned.forEach(De),e.owned=null)),e.updatedAt=n+1,je(t)}finally{E=a,w=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ge(e,r,!0):T&&T.running&&e.pure?(T.sources.has(e)||(e.value=r),T.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function ye(e,t,n,r=b,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:w,context:w?w.context:null,pure:n};return T&&T.running&&(a.state=0,a.tState=r),w===null||w!==S&&(T&&T.running&&w.pure?w.tOwned?w.tOwned.push(a):w.tOwned=[a]:w.owned?w.owned.push(a):w.owned=[a]),a}function be(e){let t=T&&T.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===x)return Te(e);if(e.suspense&&P(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<k);){if(t&&T.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(T.disposed.has(t))return}if((t?e.tState:e.state)===b)_e(e);else if((t?e.tState:e.state)===x){let t=D;D=null,xe(()=>Te(e,n[0]),!1),D=t}}}function xe(e,t){if(D)return e();let n=!1;t||(D=[]),O?n=!0:O=[],k++;try{let t=e();return Se(n),t}catch(e){n||(O=null),D=null,je(e)}}function Se(e){if(D&&=(Ce(D),null),e)return;let t;if(T){if(!T.promises.size&&!T.queue.size){let e=T.sources,n=T.disposed;O.push.apply(O,T.effects),t=T.resolve;for(let e of O)`tState`in e&&(e.state=e.tState),delete e.tState;T=null,xe(()=>{for(let e of n)De(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)De(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}I(!1)},!1)}else if(T.running){T.running=!1,T.effects.push.apply(T.effects,O),O=null,I(!0);return}}let n=O;O=null,n.length&&xe(()=>y(n),!1),t&&t()}function Ce(e){for(let t=0;t<e.length;t++)be(e[t])}function we(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:be(r)}if(u.context){if(u.count){u.effects||=[],u.effects.push(...e.slice(0,n));return}f()}for(u.effects&&(u.done||!u.count)&&(e=[...u.effects,...e],n+=u.effects.length,delete u.effects),t=0;t<n;t++)be(e[t])}function Te(e,t){let n=T&&T.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===b?i!==t&&(!i.updatedAt||i.updatedAt<k)&&be(i):e===x&&Te(i,t)}}}function Ee(e){let t=T&&T.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=x:r.state=x,r.pure?D.push(r):O.push(r),r.observers&&Ee(r))}}function De(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)De(e.tOwned[t]);delete e.tOwned}if(T&&T.running&&e.pure)Oe(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)De(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}T&&T.running?e.tState=0:e.state=0}function Oe(e,t){if(t||(e.tState=0,T.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)Oe(e.owned[t])}function ke(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function Ae(e,t,n){try{for(let n of t)n(e)}catch(e){je(e,n&&n.owner||null)}}function je(e,t=w){let n=v&&t&&t.context&&t.context[v],r=ke(e);if(!n)throw r;O?O.push({fn(){Ae(r,n,t)},state:b}):Ae(r,n,t)}function Me(e){if(typeof e==`function`&&!e.length)return Me(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=Me(e[n]);if(Array.isArray(r)){if(r.length<32768)t.push.apply(t,r);else for(let e=0;e<r.length;e++)t.push(r[e])}else t.push(r)}return t}return e}function Ne(e,t){return function(t){let n;return j(()=>n=P(()=>(w.context={...w.context,[e]:t.value},pe(()=>t.children))),void 0),n}}var Pe=Symbol(`fallback`);function Fe(e){for(let t=0;t<e.length;t++)e[t]()}function Ie(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return F(()=>Fe(a)),()=>{let c=e()||[],l=c.length,u,d;return c[g],P(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(Fe(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Pe],i[0]=ee(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=ee(f);o=l}else{for(p=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;d<l;d++)d in p?(i[d]=p[d],a[d]=m[d],s&&(s[d]=h[d],s[d](d))):i[d]=ee(f);i=i.slice(0,o=l),r=c.slice(0)}return i});function f(e){if(a[d]=e,s){let[e,n]=A(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}function Le(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return F(()=>Fe(a)),()=>{let l=e()||[],u=l.length;return l[g],P(()=>{if(u===0)return s!==0&&(Fe(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[Pe],i[0]=ee(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===Pe&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<u;c++)c<r.length&&r[c]!==l[c]?o[c](()=>l[c]):c>=r.length&&(i[c]=ee(d));for(;c<r.length;c++)a[c]();return s=o.length=a.length=u,r=l.slice(0),i=i.slice(0,s)});function d(e){a[c]=e;let[n,r]=A(l[c]);return o[c]=r,t(n,c)}}}function z(e,t){return P(()=>e(t||{}))}function Re(){return!0}var ze={get(e,t,n){return t===m?n:e.get(t)},has(e,t){return t===m||e.has(t)},set:Re,deleteProperty:Re,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Re,deleteProperty:Re}},ownKeys(e){return e.keys()}};function Be(e){return(e=typeof e==`function`?e():e)?e:{}}function Ve(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function B(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&m in r,e[n]=typeof r==`function`?(t=!0,N(r)):r}if(h&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=Be(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Be(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Be(e[n])));return[...new Set(t)]}},ze);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:Ve.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function V(e,...t){let n=t.length;if(h&&m in e){let r=n>1?t.flat():t[0],i=new Set,a=t.map(t=>{let n=t.filter(e=>!i.has(e)&&(i.add(e),!0));return new Proxy({get(t){return n.includes(t)?e[t]:void 0},has(t){return n.includes(t)&&t in e},keys(){return n.filter(t=>t in e)}},ze)});return a.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return!r.includes(t)&&t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},ze)),a}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}var He=0;function Ue(){return u.context?u.getNextContextId():`cl-${He++}`}var We=e=>`Stale read from <${e}>.`;function Ge(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return N(Ie(()=>e.each,e.children,t||void 0))}function Ke(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return N(Le(()=>e.each,e.children,t||void 0))}function H(e){let t=e.keyed,n=N(()=>e.when,void 0,void 0),r=t?n:N(n,void 0,{equals:(e,t)=>!e==!t});return N(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?P(()=>a(t?i:()=>{if(!P(r))throw We(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function qe(e){let t=pe(()=>e.children),n=N(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=N(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:N(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return N(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?P(()=>o(a.keyed?i():()=>{if(P(n)()?.[0]!==r)throw We(`Match`);return i()})):o},void 0,void 0)}function Je(e){return e}var Ye;function Xe(e){let t;u.context&&u.load&&(t=u.load(u.getContextId()));let[n,r]=A(t,void 0);return Ye||=new Set,Ye.add(r),F(()=>Ye.delete(r)),N(()=>{let t;if(t=n()){let n=e.fallback;return typeof n==`function`&&n.length?P(()=>n(t,()=>r())):n}return se(()=>e.children,r)},void 0,void 0)}var Ze=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),Qe=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),$e=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),et=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function tt(e,t){let n=et[e];return typeof n==`object`?n[t]?n.$:void 0:n}var nt=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),rt=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),it={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},U=e=>N(()=>e());function at(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null){if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&(d=l.get(t[c]))!=null&&d===r+u;)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++}else t[o++].remove()}}}var ot=`_$DX_DELEGATE`;function st(e,t,n,r={}){let i;return ee(r=>{i=r,t===document?e():K(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function W(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>P(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function ct(e,t=window.document){let n=t[ot]||(t[ot]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,wt))}}function G(e,t,n){bt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function lt(e,t,n,r){bt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function ut(e,t,n){bt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function dt(e,t){bt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function ft(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function pt(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];r&&r!==`undefined`&&!t[r]&&(St(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];i&&i!==`undefined`&&n[i]!==o&&o&&(St(e,i,!0),n[i]=o)}return n}function mt(e,t,n){if(!t)return n?G(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function ht(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function gt(e,t={},n,r){let i={};return r||j(()=>i.children=Tt(e,t.children,i.children)),j(()=>typeof t.ref==`function`&&_t(t.ref,e)),j(()=>vt(e,t,n,!0,i,!0)),i}function _t(e,t,n){return P(()=>e(t,n))}function K(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return Tt(e,t,r,n);j(r=>Tt(e,t(),r,n),r)}function vt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=Ct(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||Tt(e,t.children);continue}let s=t[o];i[o]=Ct(e,o,s,i[o],n,a,t)}}function yt(e){let t,n;return!bt()||!(t=u.registry.get(n=kt()))?e():(u.completed&&u.completed.add(t),u.registry.delete(n),t)}function bt(e){return!!u.context&&!u.done&&(!e||e.isConnected)}function xt(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function St(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function Ct(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return mt(e,n,r);if(t===`classList`)return pt(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=nt.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(ft(e,i,n,a),a&&ct([i]))}else if(t.slice(0,5)===`attr:`)G(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)ut(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=Qe.has(t))||!i&&((u=tt(t,e.tagName))||(c=Ze.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(bt(e))return n;t===`class`||t===`className`?dt(e,n):s&&!c&&!l?e[xt(t)]=n:(t===`value`||t===`defaultValue`)&&(e.nodeName===`INPUT`||e.nodeName===`TEXTAREA`)?e[u||t]=n??``:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&it[t.split(`:`)[0]];r?lt(e,r,t,n):G(e,$e[t]||t,n)}return n}function wt(e){if(u.registry&&u.events&&u.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),u.registry&&!u.done&&(u.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function Tt(e,t,n,r,i){let a=bt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=Ot(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=Ot(e,n,r)}else if(o===`function`)return j(()=>{let i=t();for(;typeof i==`function`;)i=i();n=Tt(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Et(o,t,n,i))return j(()=>n=Tt(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=Ot(e,n,r),s)return n}else c?n.length===0?Dt(e,o,r):at(e,n,o):(n&&Ot(e),Dt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Ot(e,n,r,t);Ot(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Et(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(o!=null&&o!==!0&&o!==!1){if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=Et(e,o,s)||i;else if(c===`function`){if(r){for(;typeof o==`function`;)o=o();i=Et(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0}else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}}return i}function Dt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Ot(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function kt(){return u.getNextContextId()}var At=`http://www.w3.org/2000/svg`;function jt(e,t=!1,n=void 0){return t?document.createElementNS(At,e):document.createElement(e,{is:n})}function Mt(e){let{useShadow:t}=e,n=document.createTextNode(``),r=()=>e.mount||document.body,i=le(),a,o=!!u.context;return M(()=>{o&&(le().user=o=!1),a||=ue(i,()=>N(()=>e.children));let s=r();if(s instanceof HTMLHeadElement){let[e,t]=A(!1);ee(t=>K(s,()=>e()?t():a(),null)),F(()=>t(!0))}else{let r=jt(e.isSVG?`g`:`div`,e.isSVG),i=t&&r.attachShadow?r.attachShadow({mode:`open`}):r;Object.defineProperty(r,"_$host",{get(){return n.parentNode},configurable:!0}),K(i,a),s.appendChild(r),e.ref&&e.ref(r),F(()=>s.contains(r)&&s.removeChild(r))}},void 0,{render:!o}),n}function Nt(e,t){let n=N(e);return N(()=>{let e=n();switch(typeof e){case`function`:return P(()=>e(t));case`string`:let n=rt.has(e),r=u.context?yt():jt(e,n,P(()=>t.is));return gt(r,t,n),r}})}function Pt(e){let[,t]=V(e,[`component`]);return Nt(()=>e.component,t)}var Ft=Symbol(`store-raw`),It=Symbol(`store-node`),Lt=Symbol(`store-has`),Rt=Symbol(`store-self`);function zt(e){let t=e[m];if(!t&&(Object.defineProperty(e,m,{value:t=new Proxy(e,qt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),i=Object.getPrototypeOf(e),a=i!==null&&typeof e==`object`&&!!e&&!Array.isArray(e)&&i!==Object.prototype;if(a){let e=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(e)),Object.assign(r,e)}for(let i=0,o=n.length;i<o;i++){let o=n[i];a&&o===`constructor`||r[o].get&&Object.defineProperty(e,o,{configurable:!0,enumerable:r[o].enumerable,get:r[o].get.bind(t)})}}return t}function Bt(e){let t;return typeof e==`object`&&!!e&&(e[m]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Vt(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[Ft])return n;if(!Bt(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Vt(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Vt(i,t))!==i&&(e[a]=r))}return e}function Ht(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Ut(e,t,n){if(e[t])return e[t];let[r,i]=A(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Wt(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===m||t===It?n:(delete n.value,delete n.writable,n.get=()=>e[m][t],n)}function Gt(e){ce()&&Ut(Ht(e,It),Rt)()}function Kt(e){return Gt(e),Reflect.ownKeys(e)}var qt={get(e,t,n){if(t===Ft)return e;if(t===m)return n;if(t===g)return Gt(e),n;let r=Ht(e,It),i=r[t],a=i?i():e[t];if(t===It||t===Lt||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);ce()&&(typeof a!=`function`||Object.prototype.hasOwnProperty.call(e,t))&&!(n&&n.get)&&(a=Ut(r,t,a)())}return Bt(a)?zt(a):a},has(e,t){return t===Ft||t===m||t===g||t===It||t===Lt||t===`__proto__`||(ce()&&Ut(Ht(e,Lt),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Kt,getOwnPropertyDescriptor:Wt};function Jt(e,t,n,r=!1){if(t===`__proto__`||!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Lt]&&e[Lt][t]&&i!==void 0&&e[Lt][t].$()):(e[t]=n,e[Lt]&&e[Lt][t]&&i===void 0&&e[Lt][t].$());let o=Ht(e,It),s;if((s=Ut(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=Ut(o,`length`,a))&&s.$(e.length)}(s=o[Rt])&&s.$()}function Yt(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Xt(i)||Jt(e,i,t[i])}}function Xt(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Zt(e,t){if(typeof t==`function`&&(t=t(e)),t=Vt(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Jt(e,n,r)}Jt(e,`length`,r)}else Yt(e,t)}function Qt(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(a===`string`&&(r===`__proto__`||t.length>1&&Xt(r)))return;if(Array.isArray(r)){for(let i=0;i<r.length;i++)Qt(e,[r[i]].concat(t),n);return}if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Qt(e,[i].concat(t),n);return}if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Qt(e,[r].concat(t),n);return}if(t.length>1){Qt(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||(r!==void 0||a!=null)&&(a=Vt(a),r===void 0||Bt(i)&&Bt(a)&&!Array.isArray(a)?Yt(i,a):Jt(e,r,a))}function $t(...[e,t]){let n=Vt(e||{}),r=Array.isArray(n),i=zt(n);function a(...e){ie(()=>{r&&e.length===1?Zt(n,e[0]):Qt(n,e)})}return[i,a]}var en=Symbol(`store-root`);function tn(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function nn(e,t,n,r,i){if(tn(n))return;let a=t[n];if(e===a)return;let o=Array.isArray(e);if(n!==en&&(!Bt(e)||!Bt(a)||o!==Array.isArray(a)||i&&e[i]!==a[i])){Jt(t,n,e);return}if(o){if(e.length&&a.length&&(!r||i&&e[0]&&e[0][i]!=null)){let t,n,o,s,c,l,u,d;for(o=0,s=Math.min(a.length,e.length);o<s&&(a[o]===e[o]||i&&a[o]&&e[o]&&a[o][i]&&a[o][i]===e[o][i]);o++)nn(e[o],a,o,r,i);let f=Array(e.length),p=new Map;for(s=a.length-1,c=e.length-1;s>=o&&c>=o&&(a[s]===e[c]||i&&a[s]&&e[c]&&a[s][i]&&a[s][i]===e[c][i]);s--,c--)f[c]=a[s];if(o>c||o>s){for(n=o;n<=c;n++)Jt(a,n,e[n]);for(;n<e.length;n++)Jt(a,n,f[n]),nn(e[n],a,n,r,i);a.length>e.length&&Jt(a,`length`,e.length);return}for(u=Array(c+1),n=c;n>=o;n--)l=e[n],d=i&&l?l[i]:l,t=p.get(d),u[n]=t===void 0?-1:t,p.set(d,n);for(t=o;t<=s;t++)l=a[t],d=i&&l?l[i]:l,n=p.get(d),n!==void 0&&n!==-1&&(f[n]=a[t],n=u[n],p.set(d,n));for(n=o;n<e.length;n++)n in f?(Jt(a,n,f[n]),nn(e[n],a,n,r,i)):Jt(a,n,e[n])}else for(let t=0,n=e.length;t<n;t++)nn(e[t],a,t,r,i);a.length>e.length&&Jt(a,`length`,e.length);return}let s=Object.keys(e);for(let t=0,n=s.length;t<n;t++)tn(s[t])||nn(e[s[t]],a,s[t],r,i);let c=Object.keys(a);for(let t=0,n=c.length;t<n;t++)e[c[t]]===void 0&&Jt(a,c[t],void 0)}function rn(e,t={}){let{merge:n,key:r=`id`}=t,i=Vt(e);return e=>{if(!Bt(e)||!Bt(i))return i;let t=nn(i,{[en]:e},en,n,r);return t===void 0?e:t}}var an=e=>e!=null,on=e=>e.filter(an);function sn(e){return(...t)=>{for(let n of e)n&&n(...t)}}var q=e=>typeof e==`function`&&!e.length?e():e,cn=e=>Array.isArray(e)?e:e?[e]:[];function ln(e,...t){return typeof e==`function`?e(...t):e}var un=F;function dn(e,t,n){if(u.context){let[r,i]=A(e,n);return oe(()=>i(()=>t())),[r,i]}return A(t(),n)}function fn(e,t,n,r){let i=e.length,a=t.length,o=0;if(!a){for(;o<i;o++)n(e[o]);return}if(!i){for(;o<a;o++)r(t[o]);return}for(;o<a&&t[o]===e[o];o++);let s,c;t=t.slice(o),e=e.slice(o);for(s of t)e.includes(s)||r(s);for(c of e)t.includes(c)||n(c)}function pn(e,t,n,r){return e.addEventListener(t,n,r),un(e.removeEventListener.bind(e,t,n,r))}function mn(e,t,n,r){let i=()=>{cn(q(e)).forEach(e=>{e&&cn(q(t)).forEach(t=>pn(e,t,n,r))})};typeof e==`function`?M(i):j(i)}function hn(e){let t=L();return{provider:n=>{let r=e.init(n);if(!(e.gate??!0))return z(t.Provider,{value:r,get children(){return n.children}});let i=N(()=>{let e=r.ready;return e===void 0||(typeof e==`function`?e():e)});return z(H,{get when(){return i()},get children(){return z(t.Provider,{value:r,get children(){return n.children}})}})},use(){let n=R(t);if(!n)throw Error(`${e.name} context must be used within a context provider`);return n}}}var gn=s({$schema:()=>_n,dark:()=>xn,default:()=>Sn,id:()=>yn,light:()=>bn,name:()=>vn}),_n=`https://opencode.ai/desktop-theme.json`,vn=`OC-2`,yn=`oc-2`,bn={palette:{neutral:`#f7f7f7`,ink:`#171311`,primary:`#dcde8d`,success:`#12c905`,warning:`#ffdc17`,error:`#fc533a`,info:`#a753ae`,interactive:`#034cff`,diffAdd:`#9ff29a`,diffDelete:`#fc533a`},overrides:{"text-strong":`#171717`,"text-base":`#6F6F6F`,"text-weak":`#8F8F8F`,"text-weaker":`#C7C7C7`,"text-diff-add-base":`var(--v2-state-fg-success)`,"text-diff-delete-base":`var(--v2-state-fg-danger)`,"border-weak-base":`#DBDBDB`,"border-weaker-base":`#E8E8E8`,"icon-base":`#8F8F8F`,"icon-weak-base":`C7C7C7`,"surface-raised-base":`#F3F3F3`,"surface-raised-base-hover":`#EDEDED`,"surface-base":`#F8F8F8`,"surface-base-hover":`#0000000A`,"surface-interactive-weak":`#F5FAFF`,"icon-success-base":`#0ABE00`,"surface-success-base":`#E6FFE5`,"syntax-comment":`var(--v2-text-text-muted)`,"syntax-keyword":`var(--v2-pink-800)`,"syntax-string":`var(--v2-green-800)`,"syntax-primitive":`var(--v2-pink-800)`,"syntax-property":`var(--v2-orange-800)`,"syntax-type":`var(--v2-purple-800)`,"syntax-constant":`#007b80`,"syntax-critical":`var(--v2-red-800)`,"syntax-diff-add":`var(--v2-state-fg-success)`,"syntax-diff-delete":`var(--v2-state-fg-danger)`,"syntax-diff-unknown":`#a753ae`,"surface-critical-base":`#FFF2F0`},v2Overrides:{"v2-grey-50":`#ffffffff`,"v2-grey-100":`#fafafaff`,"v2-grey-200":`#f2f2f2ff`,"v2-grey-300":`#eeeeeeff`,"v2-grey-400":`#dbdbdbff`,"v2-grey-500":`#aeaeaeff`,"v2-grey-600":`#808080ff`,"v2-grey-700":`#5c5c5cff`,"v2-grey-800":`#3a3a3aff`,"v2-grey-900":`#2e2e2eff`,"v2-grey-1000":`#242424ff`,"v2-grey-1100":`#161616ff`,"v2-grey-1200":`#080808ff`,"v2-red-100":`#fcecebff`,"v2-red-200":`#f6d5d3ff`,"v2-red-300":`#f2bbb7ff`,"v2-red-400":`#f29b96ff`,"v2-red-500":`#f17471ff`,"v2-red-600":`#f1484fff`,"v2-red-700":`#d92e3cff`,"v2-red-800":`#b82d35ff`,"v2-red-900":`#97252bff`,"v2-red-1000":`#7a1f23ff`,"v2-red-1100":`#5f1a1cff`,"v2-red-1200":`#461516ff`,"v2-orange-100":`#fdf2edff`,"v2-orange-200":`#ffe7dcff`,"v2-orange-300":`#ffd8c6ff`,"v2-orange-400":`#ffc1a4ff`,"v2-orange-500":`#ffa478ff`,"v2-orange-600":`#ff8648ff`,"v2-orange-700":`#ee7330ff`,"v2-orange-800":`#d16427ff`,"v2-orange-900":`#b35624ff`,"v2-orange-1000":`#954c27ff`,"v2-orange-1100":`#723d22ff`,"v2-orange-1200":`#5a2c14ff`,"v2-yellow-100":`#fefaecff`,"v2-yellow-200":`#fcefd0ff`,"v2-yellow-300":`#f7e5b5ff`,"v2-yellow-400":`#f3da9bff`,"v2-yellow-500":`#f2cf76ff`,"v2-yellow-600":`#f6c251ff`,"v2-yellow-700":`#e7af36ff`,"v2-yellow-800":`#cb9f34ff`,"v2-yellow-900":`#ac8833ff`,"v2-yellow-1000":`#8e7231ff`,"v2-yellow-1100":`#68552bff`,"v2-yellow-1200":`#4b4025ff`,"v2-green-100":`#e7f9eaff`,"v2-green-200":`#d0f0d5ff`,"v2-green-300":`#b8e9c1ff`,"v2-green-400":`#96e3a6ff`,"v2-green-500":`#6bd586ff`,"v2-green-600":`#49c970ff`,"v2-green-700":`#2eaf5aff`,"v2-green-800":`#198b43ff`,"v2-green-900":`#1d783cff`,"v2-green-1000":`#196130ff`,"v2-green-1100":`#164c26ff`,"v2-green-1200":`#14361dff`,"v2-cyan-100":`#e2f7fbff`,"v2-cyan-200":`#c4edf4ff`,"v2-cyan-300":`#a3e4efff`,"v2-cyan-400":`#65d9ebff`,"v2-cyan-500":`#00c5dfff`,"v2-cyan-600":`#00abcfff`,"v2-cyan-700":`#0096b8ff`,"v2-cyan-800":`#007d9bff`,"v2-cyan-900":`#006c85ff`,"v2-cyan-1000":`#005a6eff`,"v2-cyan-1100":`#004756ff`,"v2-cyan-1200":`#00353fff`,"v2-blue-100":`#f5f8ffff`,"v2-blue-200":`#ecf1feff`,"v2-blue-300":`#c3d4fdff`,"v2-blue-400":`#a2bcffff`,"v2-blue-500":`#7698fdff`,"v2-blue-600":`#3b5cf6ff`,"v2-blue-700":`#0b34f4ff`,"v2-blue-800":`#3250dfff`,"v2-blue-900":`#2c47c8ff`,"v2-blue-1000":`#263fa9ff`,"v2-blue-1100":`#22388fff`,"v2-blue-1200":`#021945ff`,"v2-purple-100":`#ebecfeff`,"v2-purple-200":`#d5d5fcff`,"v2-purple-300":`#b9b8f5ff`,"v2-purple-400":`#9e99f7ff`,"v2-purple-500":`#8271f8ff`,"v2-purple-600":`#7152f4ff`,"v2-purple-700":`#623be2ff`,"v2-purple-800":`#5230c2ff`,"v2-purple-900":`#442aa1ff`,"v2-purple-1000":`#361f83ff`,"v2-purple-1100":`#2b1b6aff`,"v2-purple-1200":`#221358ff`,"v2-pink-100":`#fdecf3ff`,"v2-pink-200":`#f7d5e4ff`,"v2-pink-300":`#fabcd8ff`,"v2-pink-400":`#f799c6ff`,"v2-pink-500":`#f26cb2ff`,"v2-pink-600":`#f64aabff`,"v2-pink-700":`#e4429eff`,"v2-pink-800":`#c83d8bff`,"v2-pink-900":`#aa3576ff`,"v2-pink-1000":`#8c2d61ff`,"v2-pink-1100":`#6f284fff`,"v2-pink-1200":`#5c1d3fff`,"v2-background-bg-base":`var(--v2-grey-50)`,"v2-background-bg-deep":`var(--v2-grey-100)`,"v2-background-bg-layer-01":`var(--v2-grey-100)`,"v2-background-bg-layer-02":`var(--v2-grey-200)`,"v2-background-bg-layer-03":`var(--v2-grey-300)`,"v2-background-bg-layer-04":`var(--v2-grey-400)`,"v2-background-bg-inverse":`var(--v2-grey-1100)`,"v2-background-bg-contrast":`var(--v2-grey-1000)`,"v2-background-bg-icon-button-contrast":`var(--v2-background-bg-contrast)`,"v2-background-bg-button-neutral":`var(--v2-grey-50)`,"v2-background-bg-accent":`var(--v2-blue-600)`,"v2-background-bg-code-path":`var(--v2-cyan-100)`,"v2-text-text-base":`var(--v2-grey-1100)`,"v2-text-text-muted":`var(--v2-grey-700)`,"v2-text-text-faint":`var(--v2-grey-600)`,"v2-text-text-inverse":`var(--v2-grey-50)`,"v2-text-text-contrast":`var(--v2-grey-50)`,"v2-text-text-accent":`var(--v2-blue-600)`,"v2-text-text-accent-hover":`var(--v2-blue-700)`,"v2-text-text-code-accent":`var(--v2-blue-900)`,"v2-text-text-code-path":`var(--v2-blue-900)`,"v2-icon-icon-base":`var(--v2-grey-800)`,"v2-icon-icon-muted":`var(--v2-grey-600)`,"v2-icon-icon-faint":`var(--v2-grey-500)`,"v2-icon-icon-inverse":`var(--v2-grey-50)`,"v2-icon-icon-contrast":`var(--v2-grey-100)`,"v2-icon-icon-accent":`var(--v2-blue-600)`,"v2-icon-icon-accent-hover":`var(--v2-blue-700)`,"v2-border-border-muted":`var(--v2-alpha-dark-8)`,"v2-border-border-base":`var(--v2-alpha-dark-10)`,"v2-border-border-strong":`var(--v2-alpha-dark-20)`,"v2-border-border-inverse":`var(--v2-grey-1000)`,"v2-border-border-focus":`var(--v2-blue-500)`,"v2-overlay-simple-overlay-hover":`var(--v2-alpha-dark-4)`,"v2-overlay-simple-overlay-pressed":`var(--v2-alpha-dark-8)`,"v2-overlay-simple-overlay-contrast-hover":`var(--v2-alpha-light-12)`,"v2-overlay-simple-overlay-contrast-pressed":`var(--v2-alpha-light-24)`,"v2-overlay-simple-overlay-scrim":`var(--v2-alpha-dark-40)`,"v2-overlay-gradient-depth-overlay-depth-top":`var(--v2-alpha-light-100)`,"v2-overlay-gradient-depth-overlay-depth-bot":`var(--v2-alpha-light-0)`,"v2-overlay-simple-tab-active-scrim":`#fafafa00`,"v2-overlay-simple-tab-hover-scrim":`#eeeeee00`,"v2-overlay-simple-tab-scrim":`#fafafa00`,"v2-state-bg-success":`var(--v2-green-100)`,"v2-state-fg-success":`var(--v2-green-800)`,"v2-state-border-success":`var(--v2-green-300)`,"v2-state-bg-warning":`var(--v2-yellow-100)`,"v2-state-fg-warning":`var(--v2-yellow-800)`,"v2-state-border-warning":`var(--v2-yellow-300)`,"v2-state-bg-danger":`var(--v2-red-100)`,"v2-state-fg-danger":`var(--v2-red-800)`,"v2-state-border-danger":`var(--v2-red-300)`,"v2-state-bg-info":`var(--v2-blue-200)`,"v2-state-fg-info":`var(--v2-blue-800)`,"v2-state-border-info":`var(--v2-blue-300)`,"v2-agent-plan-solid":`var(--v2-pink-800)`,"v2-agent-plan-border":`rgba(200, 61, 139, 0.2)`,"v2-agent-plan-background":`rgba(253, 236, 243, 0.1)`,"v2-agent-build-solid":`var(--v2-blue-800)`,"v2-agent-build-border":`rgba(44, 71, 200, 0.1)`,"v2-agent-build-background":`rgba(236, 241, 254, 0.1)`,"v2-agent-explore-solid":`var(--v2-yellow-900)`,"v2-agent-explore-border":`rgba(203, 159, 52, 0.2)`,"v2-agent-explore-background":`rgba(254, 250, 236, 0.1)`,"v2-agent-review-solid":`var(--v2-green-800)`,"v2-agent-writer-solid":`var(--v2-purple-700)`,"v2-avatar-bg-orange":`#ee7330ff`,"v2-avatar-border-orange":`#d16427ff`,"v2-avatar-bg-yellow":`#e7af36ff`,"v2-avatar-border-yellow":`#cb9f34ff`,"v2-avatar-bg-cyan":`#0096b8ff`,"v2-avatar-border-cyan":`#007d9bff`,"v2-avatar-bg-green":`#2eaf5aff`,"v2-avatar-border-green":`#198b43ff`,"v2-avatar-bg-red":`#d92e3cff`,"v2-avatar-border-red":`#b82d35ff`,"v2-avatar-bg-pink":`#e4429eff`,"v2-avatar-border-pink":`#c83d8bff`,"v2-avatar-bg-blue":`#3250dfff`,"v2-avatar-border-blue":`#2c47c8ff`,"v2-avatar-bg-purple":`#623be2ff`,"v2-avatar-border-purple":`#5230c2ff`,"v2-avatar-bg-gray":`#5c5c5cff`,"v2-avatar-border-gray":`#3a3a3aff`,"v2-elevation-raised":`0px 2px 4px 0px var(--v2-alpha-dark-4), 0px 1px 2px -1px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-floating":`0px 8px 16px 0px var(--v2-alpha-dark-4), 0px 4px 8px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-overlay":`0px 16px 32px 0px var(--v2-alpha-dark-4), 0px 8px 16px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-button-neutral":`0px 1px 1.5px 0px var(--v2-alpha-dark-10), 0px 0px 0px 0.5px var(--v2-alpha-dark-14), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-button-contrast":`0px 1px 1.5px 0px var(--v2-alpha-dark-20), 0px 0px 0px 0.5px var(--v2-grey-800), inset 0px 1px 2px 0px var(--v2-alpha-light-14), inset 0px -1px 2px 0px var(--v2-alpha-dark-6), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-elements":`0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)`,"v2-elevation-switch-off":`inset 0px 1px 1px 0px var(--v2-alpha-dark-8), inset 0px 0.5px 0.5px 0px var(--v2-alpha-dark-8), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-10)`,"v2-elevation-switch-on":`inset 0px 2px 2px 0px var(--v2-alpha-dark-10), inset 0px 1px 1px 0px var(--v2-alpha-dark-10), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-20)`,"v2-illustration-illustration-layer-01":`var(--v2-grey-300)`,"v2-illustration-illustration-layer-02":`var(--v2-grey-400)`,"v2-illustration-illustration-layer-03":`var(--v2-grey-500)`,"v2-font-family-code":`var(--font-family-mono)`}},xn={palette:{neutral:`#1f1f1f`,ink:`#f1ece8`,primary:`#fab283`,success:`#12c905`,warning:`#fcd53a`,error:`#fc533a`,info:`#edb2f1`,interactive:`#034cff`,diffAdd:`#c8ffc4`,diffDelete:`#fc533a`},overrides:{"text-strong":`#EDEDED`,"text-base":`#A0A0A0`,"text-weak":`#707070`,"text-weaker":`#505050`,"text-diff-add-base":`var(--v2-state-fg-success)`,"text-diff-delete-base":`var(--v2-state-fg-danger)`,"border-weak-base":`#282828`,"border-weaker-base":`#232323`,"icon-base":`#7E7E7E`,"icon-weak-base":`#343434`,"surface-raised-base":`#232323`,"surface-raised-base-hover":`#282828`,"surface-base":`#1C1C1C`,"surface-base-hover":`#FFFFFF0D`,"surface-interactive-weak":`#0D172B`,"surface-success-base":`#022B00`,"syntax-comment":`var(--v2-text-text-muted)`,"syntax-keyword":`var(--v2-pink-400)`,"syntax-string":`var(--v2-green-400)`,"syntax-primitive":`var(--v2-pink-400)`,"syntax-property":`var(--v2-orange-400)`,"syntax-type":`var(--v2-purple-400)`,"syntax-constant":`#93e9f6`,"syntax-critical":`var(--v2-red-400)`,"syntax-diff-add":`var(--v2-state-fg-success)`,"syntax-diff-delete":`var(--v2-state-fg-danger)`,"syntax-diff-unknown":`#edb2f1`,"surface-critical-base":`#1F0603`},v2Overrides:{"v2-grey-50":`#ffffffff`,"v2-grey-100":`#fafafaff`,"v2-grey-200":`#f2f2f2ff`,"v2-grey-300":`#eeeeeeff`,"v2-grey-400":`#dbdbdbff`,"v2-grey-500":`#aeaeaeff`,"v2-grey-600":`#808080ff`,"v2-grey-700":`#5c5c5cff`,"v2-grey-800":`#3a3a3aff`,"v2-grey-900":`#2e2e2eff`,"v2-grey-1000":`#242424ff`,"v2-grey-1100":`#161616ff`,"v2-grey-1200":`#080808ff`,"v2-red-100":`#fcecebff`,"v2-red-200":`#f6d5d3ff`,"v2-red-300":`#f2bbb7ff`,"v2-red-400":`#f29b96ff`,"v2-red-500":`#f17471ff`,"v2-red-600":`#f1484fff`,"v2-red-700":`#d92e3cff`,"v2-red-800":`#b82d35ff`,"v2-red-900":`#97252bff`,"v2-red-1000":`#7a1f23ff`,"v2-red-1100":`#5f1a1cff`,"v2-red-1200":`#461516ff`,"v2-orange-100":`#fdf2edff`,"v2-orange-200":`#ffe7dcff`,"v2-orange-300":`#ffd8c6ff`,"v2-orange-400":`#ffc1a4ff`,"v2-orange-500":`#ffa478ff`,"v2-orange-600":`#ff8648ff`,"v2-orange-700":`#ee7330ff`,"v2-orange-800":`#d16427ff`,"v2-orange-900":`#b35624ff`,"v2-orange-1000":`#954c27ff`,"v2-orange-1100":`#723d22ff`,"v2-orange-1200":`#5a2c14ff`,"v2-yellow-100":`#fefaecff`,"v2-yellow-200":`#fcefd0ff`,"v2-yellow-300":`#f7e5b5ff`,"v2-yellow-400":`#f3da9bff`,"v2-yellow-500":`#f2cf76ff`,"v2-yellow-600":`#f6c251ff`,"v2-yellow-700":`#e7af36ff`,"v2-yellow-800":`#cb9f34ff`,"v2-yellow-900":`#ac8833ff`,"v2-yellow-1000":`#8e7231ff`,"v2-yellow-1100":`#68552bff`,"v2-yellow-1200":`#4b4025ff`,"v2-green-100":`#e7f9eaff`,"v2-green-200":`#d0f0d5ff`,"v2-green-300":`#b8e9c1ff`,"v2-green-400":`#96e3a6ff`,"v2-green-500":`#6bd586ff`,"v2-green-600":`#49c970ff`,"v2-green-700":`#2eaf5aff`,"v2-green-800":`#198b43ff`,"v2-green-900":`#1d783cff`,"v2-green-1000":`#196130ff`,"v2-green-1100":`#164c26ff`,"v2-green-1200":`#14361dff`,"v2-cyan-100":`#e2f7fbff`,"v2-cyan-200":`#c4edf4ff`,"v2-cyan-300":`#a3e4efff`,"v2-cyan-400":`#65d9ebff`,"v2-cyan-500":`#00c5dfff`,"v2-cyan-600":`#00abcfff`,"v2-cyan-700":`#0096b8ff`,"v2-cyan-800":`#007d9bff`,"v2-cyan-900":`#006c85ff`,"v2-cyan-1000":`#005a6eff`,"v2-cyan-1100":`#004756ff`,"v2-cyan-1200":`#00353fff`,"v2-blue-100":`#f5f8ffff`,"v2-blue-200":`#ecf1feff`,"v2-blue-300":`#c3d4fdff`,"v2-blue-400":`#a2bcffff`,"v2-blue-500":`#7698fdff`,"v2-blue-600":`#3b5cf6ff`,"v2-blue-700":`#0b34f4ff`,"v2-blue-800":`#3250dfff`,"v2-blue-900":`#2c47c8ff`,"v2-blue-1000":`#263fa9ff`,"v2-blue-1100":`#22388fff`,"v2-blue-1200":`#021945ff`,"v2-purple-100":`#ebecfeff`,"v2-purple-200":`#d5d5fcff`,"v2-purple-300":`#b9b8f5ff`,"v2-purple-400":`#9e99f7ff`,"v2-purple-500":`#8271f8ff`,"v2-purple-600":`#7152f4ff`,"v2-purple-700":`#623be2ff`,"v2-purple-800":`#5230c2ff`,"v2-purple-900":`#442aa1ff`,"v2-purple-1000":`#361f83ff`,"v2-purple-1100":`#2b1b6aff`,"v2-purple-1200":`#221358ff`,"v2-pink-100":`#fdecf3ff`,"v2-pink-200":`#f7d5e4ff`,"v2-pink-300":`#fabcd8ff`,"v2-pink-400":`#f799c6ff`,"v2-pink-500":`#f26cb2ff`,"v2-pink-600":`#f64aabff`,"v2-pink-700":`#e4429eff`,"v2-pink-800":`#c83d8bff`,"v2-pink-900":`#aa3576ff`,"v2-pink-1000":`#8c2d61ff`,"v2-pink-1100":`#6f284fff`,"v2-pink-1200":`#5c1d3fff`,"v2-background-bg-base":`var(--v2-grey-1100)`,"v2-background-bg-deep":`var(--v2-grey-1200)`,"v2-background-bg-layer-01":`var(--v2-grey-1000)`,"v2-background-bg-layer-02":`var(--v2-grey-900)`,"v2-background-bg-layer-03":`var(--v2-grey-800)`,"v2-background-bg-layer-04":`var(--v2-grey-700)`,"v2-background-bg-inverse":`var(--v2-grey-50)`,"v2-background-bg-contrast":`var(--v2-grey-700)`,"v2-background-bg-icon-button-contrast":`var(--v2-grey-400)`,"v2-background-bg-button-neutral":`var(--v2-alpha-light-6)`,"v2-background-bg-accent":`var(--v2-blue-600)`,"v2-background-bg-code-path":`var(--v2-cyan-1200)`,"v2-text-text-base":`var(--v2-grey-100)`,"v2-text-text-muted":`var(--v2-grey-500)`,"v2-text-text-faint":`var(--v2-grey-600)`,"v2-text-text-inverse":`var(--v2-grey-1100)`,"v2-text-text-contrast":`var(--v2-grey-50)`,"v2-text-text-accent":`var(--v2-blue-400)`,"v2-text-text-accent-hover":`var(--v2-blue-300)`,"v2-text-text-code-accent":`var(--v2-blue-400)`,"v2-text-text-code-path":`var(--v2-blue-300)`,"v2-icon-icon-base":`var(--v2-grey-400)`,"v2-icon-icon-muted":`var(--v2-grey-600)`,"v2-icon-icon-faint":`var(--v2-grey-500)`,"v2-icon-icon-inverse":`var(--v2-grey-1100)`,"v2-icon-icon-contrast":`var(--v2-grey-100)`,"v2-icon-icon-accent":`var(--v2-blue-400)`,"v2-icon-icon-accent-hover":`var(--v2-blue-300)`,"v2-border-border-muted":`var(--v2-alpha-light-8)`,"v2-border-border-base":`var(--v2-alpha-light-10)`,"v2-border-border-strong":`var(--v2-alpha-light-20)`,"v2-border-border-inverse":`var(--v2-grey-100)`,"v2-border-border-focus":`var(--v2-blue-500)`,"v2-overlay-simple-overlay-hover":`var(--v2-alpha-light-6)`,"v2-overlay-simple-overlay-pressed":`var(--v2-alpha-light-10)`,"v2-overlay-simple-overlay-contrast-hover":`var(--v2-alpha-dark-24)`,"v2-overlay-simple-overlay-contrast-pressed":`var(--v2-alpha-dark-40)`,"v2-overlay-simple-overlay-scrim":`var(--v2-alpha-dark-60)`,"v2-overlay-gradient-depth-overlay-depth-top":`var(--v2-alpha-light-100)`,"v2-overlay-gradient-depth-overlay-depth-bot":`var(--v2-alpha-light-0)`,"v2-overlay-simple-tab-active-scrim":`#24242400`,"v2-overlay-simple-tab-hover-scrim":`#3a3a3a00`,"v2-overlay-simple-tab-scrim":`#08080800`,"v2-state-bg-success":`var(--v2-green-1200)`,"v2-state-fg-success":`var(--v2-green-500)`,"v2-state-border-success":`var(--v2-green-900)`,"v2-state-bg-warning":`var(--v2-yellow-1200)`,"v2-state-fg-warning":`var(--v2-yellow-500)`,"v2-state-border-warning":`var(--v2-yellow-900)`,"v2-state-bg-danger":`var(--v2-red-1200)`,"v2-state-fg-danger":`var(--v2-red-500)`,"v2-state-border-danger":`var(--v2-red-900)`,"v2-state-bg-info":`var(--v2-blue-1200)`,"v2-state-fg-info":`var(--v2-blue-500)`,"v2-state-border-info":`var(--v2-blue-900)`,"v2-agent-plan-solid":`var(--v2-pink-400)`,"v2-agent-plan-border":`rgba(247, 153, 198, 0.2)`,"v2-agent-plan-background":`rgba(170, 53, 118, 0.05)`,"v2-agent-build-solid":`var(--v2-blue-300)`,"v2-agent-build-border":`rgba(162, 188, 255, 0.2)`,"v2-agent-build-background":`rgba(38, 63, 169, 0.05)`,"v2-agent-explore-solid":`var(--v2-yellow-300)`,"v2-agent-explore-border":`rgba(243, 218, 155, 0.2)`,"v2-agent-explore-background":`rgba(172, 136, 51, 0.05)`,"v2-agent-review-solid":`var(--v2-green-300)`,"v2-agent-writer-solid":`var(--v2-purple-400)`,"v2-avatar-bg-orange":`#723d22ff`,"v2-avatar-border-orange":`#ff8648ff`,"v2-avatar-bg-yellow":`#68552bff`,"v2-avatar-border-yellow":`#e7af36ff`,"v2-avatar-bg-cyan":`#005a6eff`,"v2-avatar-border-cyan":`#0096b8ff`,"v2-avatar-bg-green":`#196130ff`,"v2-avatar-border-green":`#49c970ff`,"v2-avatar-bg-red":`#7a1f23ff`,"v2-avatar-border-red":`#d92e3cff`,"v2-avatar-bg-pink":`#8c2d61ff`,"v2-avatar-border-pink":`#e4429eff`,"v2-avatar-bg-blue":`#263fa9ff`,"v2-avatar-border-blue":`#7698fdff`,"v2-avatar-bg-purple":`#361f83ff`,"v2-avatar-border-purple":`#7152f4ff`,"v2-avatar-bg-gray":`#5c5c5cff`,"v2-avatar-border-gray":`#aeaeaeff`,"v2-elevation-raised":`0px 2px 4px 0px var(--v2-alpha-dark-30), 0px 1px 2px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-floating":`0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 4px 8px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-overlay":`0px 16px 32px 0px var(--v2-alpha-dark-30), 0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-button-neutral":`0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-20), 0px -0.5px 0px 0px var(--v2-alpha-light-10)`,"v2-elevation-button-contrast":`0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-40), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0px var(--v2-alpha-light-0), 0px -0.5px 0px 0px var(--v2-alpha-light-30)`,"v2-elevation-elements":`0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)`,"v2-elevation-switch-off":`inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)`,"v2-elevation-switch-on":`inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)`,"v2-illustration-illustration-layer-01":`var(--v2-grey-900)`,"v2-illustration-illustration-layer-02":`var(--v2-grey-800)`,"v2-illustration-illustration-layer-03":`var(--v2-grey-700)`}},Sn={$schema:_n,name:vn,id:yn,light:bn,dark:xn};function Cn(e,t,n){return Math.max(t,Math.min(n,e))}function wn(e){return(e%360+360)%360}function Tn(e){let t=e.replace(`#`,``),n=t.length===3||t.length===4?t.split(``).map(e=>e+e).join(``):t,r=n.length===8?n.slice(0,6):n,i=parseInt(r,16);return{r:(i>>16&255)/255,g:(i>>8&255)/255,b:(i&255)/255}}function En(e,t,n){let r=e=>{let t=Cn(e,0,1);return Math.round(t*255).toString(16).padStart(2,`0`)};return`#${r(e)}${r(t)}${r(n)}`}function Dn(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function On(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function kn(e,t,n){let r=On(e),i=On(t),a=On(n),o=.4122214708*r+.5363325363*i+.0514459929*a,s=.2119034982*r+.6806995451*i+.1073969566*a,c=.0883024619*r+.2817188376*i+.6299787005*a,l=Math.cbrt(o),u=Math.cbrt(s),d=Math.cbrt(c),f=.2104542553*l+.793617785*u-.0040720468*d,p=1.9779984951*l-2.428592205*u+.4505937099*d,m=.0259040371*l+.7827717662*u-.808675766*d,h=Math.sqrt(p*p+m*m),g=180/Math.PI*Math.atan2(m,p);return g<0&&(g+=360),{l:f,c:h,h:g}}function An(e){let{l:t,c:n,h:r}=e,i=n*Math.cos(r*Math.PI/180),a=n*Math.sin(r*Math.PI/180),o=t+.3963377774*i+.2158037573*a,s=t-.1055613458*i-.0638541728*a,c=t-.0894841775*i-1.291485548*a,l=o*o*o,u=s*s*s,d=c*c*c,f=4.0767416621*l-3.3077115913*u+.2309699292*d,p=-1.2684380046*l+2.6097574011*u-.3413193965*d,m=-.0041960863*l-.7034186147*u+1.707614701*d;return{r:Dn(f),g:Dn(p),b:Dn(m)}}function jn(e){let{r:t,g:n,b:r}=Tn(e);return kn(t,n,r)}function Mn(e){let t={l:Cn(e.l,0,1),c:Math.max(0,e.c),h:wn(e.h)},n=An(t);if(n.r>=0&&n.r<=1&&n.g>=0&&n.g<=1&&n.b>=0&&n.b<=1)return t;let r=t.c;for(let e=0;e<24;e++){r*=.9;let e={...t,c:r},n=An(e);if(n.r>=0&&n.r<=1&&n.g>=0&&n.g<=1&&n.b>=0&&n.b<=1)return e}return{...t,c:0}}function Nn(e){let{r:t,g:n,b:r}=An(Mn(e));return En(t,n,r)}function Pn(e,t){let n=jn(e),r=[],i=t?[.118,.138,.167,.202,.246,.304,.378,.468,Cn(n.l*.825,.53,.705),Cn(n.l*.89,.61,.79),Cn(n.l+.033,.868,.943),.984]:[.993,.983,.962,.936,.906,.866,.811,.74,n.l,Math.max(0,n.l-.036),.49,.27],a=t?[.52,.68,.86,1.02,1.14,1.24,1.36,1.48,1.56,1.64,1.62,1.15]:[.12,.24,.46,.68,.84,.98,1.08,1.16,1.22,1.26,1.18,.98];for(let e=0;e<12;e++)r.push(Nn({l:i[e],c:n.c*a[e],h:n.h}));return r}function Fn(e,t,n){if(n){let r=jn(e),i=e=>Nn({l:r.l+(1-r.l)*e,c:r.c*Math.max(0,1-e),h:r.h}),a=t?(e=>Nn({l:r.l*(1-e),c:r.c*Math.max(0,1-e*(t?.12:.3)),h:r.h}))(Cn(.19+Math.max(0,r.l-.12)*.33+r.c*1.95,.17,.27)):r.l<.82?i(.86):i(Cn(.1+r.c*3.2+Math.max(0,.95-r.l)*.35,.1,.28));return(t?[0,.018,.039,.064,.097,.143,.212,.31,.46,.649,.845,.984]:[0,.022,.042,.068,.102,.146,.208,.296,.432,.61,.81,.965]).map(e=>In(a,n,e))}let r=jn(e),i=[],a=Math.min(r.c,t?.068:.04),o=t?[.138,.156,.178,.202,.232,.272,.326,.404,Cn(r.l*.83,.43,.55),.596,.719,.956]:[.991,.979,.964,.946,.931,.913,.891,.83,r.l,.617,.542,.205];for(let e=0;e<12;e++)i.push(Nn({l:o[e],c:a,h:r.h}));return i}function In(e,t,n){let r=jn(e),i=jn(t),a=((i.h-r.h)%360+540)%360-180;return Nn({l:r.l+(i.l-r.l)*n,c:r.c+(i.c-r.c)*n,h:r.h+a*n})}function Ln(e,t){let n=jn(e);return Nn({l:n.l+(t.l??0),c:n.c*(t.c??1),h:n.h+(t.h??0)})}function Rn(e,t){let n=e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4,r=e=>{let{r:t,g:r,b:i}=Tn(e);return .2126*n(t)+.587*n(r)+.0722*n(i)},i=r(e),a=r(t),o=Math.max(i,a),s=Math.min(i,a);return(o+.05)/(s+.05)}function zn(e,t,n){let r=Tn(e),i=Tn(t);return En(r.r*n+i.r*(1-n),r.g*n+i.g*(1-n),r.b*n+i.b*(1-n))}function Bn(e,t){let{r:n,g:r,b:i}=Tn(e);return`rgba(${Math.round(n*255)}, ${Math.round(r*255)}, ${Math.round(i*255)}, ${t})`}function Vn(e,t){let n=Hn(e),{overrides:r={}}=e,i=Fn(n.neutral,t,n.ink),a=Pn(n.primary,t),o=Pn(n.accent,t),s=Pn(n.success,t),c=Pn(n.warning,t),l=Pn(n.error,t),u=Pn(n.info,t),d=Pn(n.interactive,t),f=Pn(Ln(n.warning,t?{h:-16,l:-.058,c:1.14}:{h:-22,l:-.082,c:.94}),t),p=Pn(Ln(n.interactive,{h:-12,l:.128,c:1.12}),t),m=Pn(n.diffAdd??Ln(n.success,{c:t?.7:.55,l:t?-.18:.14}),t),h=Pn(n.diffDelete??Ln(n.error,{c:t?.82:.7,l:t?-.08:.08}),t),g=n.ink??n.neutral,_=n.compact?jn(g):void 0,v=_?Ln(g,{l:t?Math.max(0,.88-_.l)*.4:-Math.max(0,_.l-.18)*.24,c:t?1.04:1.02}):void 0,y=r[`background-base`],b=Wn(y),x=!!y&&!b,S=(e,n)=>{let r=jn(e);return Ln(t&&r.l>.84?Ln(e,{c:1.18}):n[10],{l:t?.034:-.024,c:t?1.3:1.18})},C=()=>{if(!n.compact)return t?`#ffba92`:`#FF8C00`;let e=jn(n.warning).h,r=jn(n.diffDelete??n.error).h;return Math.abs(((r-e)%360+540)%360-180)<48?t?`#ffba92`:`#FF8C00`:S(n.warning,c)},w=(e,t)=>({base:E(e,t.base),weak:E(e,t.weak),weaker:E(e,t.weaker),strong:E(e,t.strong),stronger:E(e,t.stronger)}),T=b??i[0],E=(e,t)=>x?Bn(e,t):zn(e,T,t),D=(e,r)=>E(g,t?Math.min(1,r+.024+(n.compact?.08:0)):Math.min(1,e+.024)),O=w(t?Ln(n.interactive,{c:.55,l:0}):Ln(n.interactive,{c:.45,l:.08}),t?{base:.14,weak:.08,weaker:.18,strong:.26,stronger:.42}:{base:.12,weak:.08,weaker:.16,strong:.24,stronger:.36}),k=Un(i,t),ee=a[8],A=a[9],te=d[t?6:4],j=d[t?7:5],M=d[t?5:3],N=s[t?6:4],ne=s[t?5:3],re=s[10],ie=c[t?6:4],P=c[t?5:3],ae=c[10],oe=l[t?6:4],F=l[t?5:3],se=l[10],ce=u[t?6:4],le=u[t?5:3],ue=u[10],de=e=>{let t=Tn(e),n=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;return .2126*n(t.r)+.7152*n(t.g)+.0722*n(t.b)},fe=(e,t)=>{let n=de(e),r=de(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)},I=e=>{let t=`#ffffff`,n=`#000000`;return fe(t,e)>fe(n,e)?t:n},L={};L[`background-base`]=i[0],L[`background-weak`]=i[2],L[`background-strong`]=i[0],L[`background-stronger`]=t?i[1]:`#fcfcfc`,L[`surface-base`]=k[1],L.base=k[1],L[`surface-base-hover`]=k[2],L[`surface-base-active`]=k[2],L[`surface-base-interactive-active`]=Bn(d[2],.3),L.base2=k[1],L.base3=k[1],L[`surface-inset-base`]=k[1],L[`surface-inset-base-hover`]=k[2],L[`surface-inset-strong`]=t?Bn(i[0],.5):Bn(i[3],.09),L[`surface-inset-strong-hover`]=L[`surface-inset-strong`],L[`surface-raised-base`]=k[0],L[`surface-float-base`]=t?i[1]:i[11],L[`surface-float-base-hover`]=t?i[2]:i[10],L[`surface-raised-base-hover`]=k[1],L[`surface-raised-base-active`]=k[2],L[`surface-raised-strong`]=t?k[3]:i[0],L[`surface-raised-strong-hover`]=t?k[5]:`#ffffff`,L[`surface-raised-stronger`]=t?k[5]:`#ffffff`,L[`surface-raised-stronger-hover`]=t?k[6]:`#ffffff`,L[`surface-weak`]=k[2],L[`surface-weaker`]=k[3],L[`surface-strong`]=t?k[6]:`#ffffff`,L[`surface-raised-stronger-non-alpha`]=t?i[2]:`#ffffff`,L[`surface-brand-base`]=ee,L[`surface-brand-hover`]=A,L[`surface-interactive-base`]=te,L[`surface-interactive-hover`]=j,L[`surface-interactive-weak`]=M,L[`surface-interactive-weak-hover`]=te,L[`surface-success-base`]=N,L[`surface-success-weak`]=ne,L[`surface-success-strong`]=re,L[`surface-warning-base`]=ie,L[`surface-warning-weak`]=P,L[`surface-warning-strong`]=ae,L[`surface-critical-base`]=oe,L[`surface-critical-weak`]=F,L[`surface-critical-strong`]=se,L[`surface-info-base`]=ce,L[`surface-info-weak`]=le,L[`surface-info-strong`]=ue,L[`surface-diff-unchanged-base`]=t?i[0]:`#ffffff00`,L[`surface-diff-skip-base`]=t?k[0]:i[1],L[`surface-diff-hidden-base`]=O.base,L[`surface-diff-hidden-weak`]=O.weak,L[`surface-diff-hidden-weaker`]=O.weaker,L[`surface-diff-hidden-strong`]=O.strong,L[`surface-diff-hidden-stronger`]=O.stronger,L[`surface-diff-add-base`]=m[2],L[`surface-diff-add-weak`]=m[t?3:1],L[`surface-diff-add-weaker`]=m[t?2:0],L[`surface-diff-add-strong`]=m[4],L[`surface-diff-add-stronger`]=m[t?10:8],L[`surface-diff-delete-base`]=h[2],L[`surface-diff-delete-weak`]=h[t?3:1],L[`surface-diff-delete-weaker`]=h[t?2:0],L[`surface-diff-delete-strong`]=h[t?4:5],L[`surface-diff-delete-stronger`]=h[t?10:8],L[`input-base`]=t?i[1]:i[0],L[`input-hover`]=t?i[2]:i[1],L[`input-active`]=t?d[6]:d[0],L[`input-selected`]=t?d[7]:d[3],L[`input-focus`]=t?d[6]:d[0],L[`input-disabled`]=i[3],L[`text-base`]=n.compact?v:i[10],L[`text-weak`]=n.compact?Ln(v,{l:t?-.11:.11,c:.9}):i[8],L[`text-weaker`]=n.compact?Ln(v,{l:t?-.2:.21,c:t?.78:.72}):i[7],L[`text-strong`]=n.compact?t?zn(`#ffffff`,v,.9):Ln(v,{l:-.07,c:1.04}):i[11],L[`text-invert-base`]=t?i[10]:i[1],L[`text-invert-weak`]=t?i[8]:i[2],L[`text-invert-weaker`]=t?i[7]:i[3],L[`text-invert-strong`]=t?i[11]:i[0],L[`text-interactive-base`]=d[t?10:9],L[`text-on-brand-base`]=I(ee),L[`text-on-interactive-base`]=I(te),L[`text-on-interactive-weak`]=I(te),L[`text-on-success-base`]=I(N),L[`text-on-critical-base`]=I(oe),L[`text-on-critical-weak`]=I(oe),L[`text-on-critical-strong`]=I(se),L[`text-on-warning-base`]=I(ie),L[`text-on-info-base`]=I(ce),L[`text-diff-add-base`]=m[10],L[`text-diff-delete-base`]=h[9],L[`text-diff-delete-strong`]=h[11],L[`text-diff-add-strong`]=m[t?7:11],L[`text-on-info-weak`]=I(ce),L[`text-on-info-strong`]=I(ue),L[`text-on-warning-weak`]=I(ie),L[`text-on-warning-strong`]=I(ae),L[`text-on-success-weak`]=I(N),L[`text-on-success-strong`]=I(re),L[`text-on-brand-weak`]=I(ee),L[`text-on-brand-weaker`]=I(ee),L[`text-on-brand-strong`]=I(A),L[`button-primary-base`]=i[11],L[`button-secondary-base`]=t?i[2]:i[0],L[`button-secondary-hover`]=t?i[3]:i[1],L[`button-ghost-hover`]=k[1],L[`button-ghost-hover2`]=k[2],L[`border-base`]=n.compact?D(.22,.16):k[6],L[`border-hover`]=n.compact?D(.28,.2):k[7],L[`border-active`]=n.compact?D(.34,.24):k[8],L[`border-selected`]=Bn(d[8],t?.9:.99),L[`border-disabled`]=n.compact?D(.18,.12):k[7],L[`border-focus`]=n.compact?D(.34,.24):k[8],L[`border-weak-base`]=n.compact?D(.1,.08):k[t?5:4],L[`border-strong-base`]=n.compact?D(.34,.24):k[t?7:6],L[`border-strong-hover`]=n.compact?D(.4,.28):k[7],L[`border-strong-active`]=n.compact?D(.46,.32):k[t?7:6],L[`border-strong-selected`]=Bn(d[5],.6),L[`border-strong-disabled`]=n.compact?D(.14,.1):k[5],L[`border-strong-focus`]=n.compact?D(.46,.32):k[t?7:6],L[`border-weak-hover`]=n.compact?D(.16,.12):k[t?6:5],L[`border-weak-active`]=n.compact?D(.22,.16):k[t?7:6],L[`border-weak-selected`]=Bn(d[4],t?.6:.5),L[`border-weak-disabled`]=n.compact?D(.08,.06):k[5],L[`border-weak-focus`]=n.compact?D(.22,.16):k[t?7:6],L[`border-weaker-base`]=n.compact?D(.06,.04):k[2],L[`border-interactive-base`]=d[6],L[`border-interactive-hover`]=d[7],L[`border-interactive-active`]=d[8],L[`border-interactive-selected`]=d[8],L[`border-interactive-disabled`]=i[7],L[`border-interactive-focus`]=d[8],L[`border-success-base`]=s[6],L[`border-success-hover`]=s[7],L[`border-success-selected`]=s[8],L[`border-warning-base`]=c[6],L[`border-warning-hover`]=c[7],L[`border-warning-selected`]=c[8],L[`border-critical-base`]=l[6],L[`border-critical-hover`]=l[7],L[`border-critical-selected`]=l[8],L[`border-info-base`]=u[6],L[`border-info-hover`]=u[7],L[`border-info-selected`]=u[8],L[`border-color`]=`#ffffff`,L[`icon-base`]=n.compact&&!t?L[`text-weak`]:i[t?9:8],L[`icon-hover`]=n.compact&&!t?L[`text-base`]:i[10],L[`icon-active`]=n.compact&&!t?L[`text-strong`]:i[11],L[`icon-selected`]=n.compact&&!t?L[`text-strong`]:i[11],L[`icon-disabled`]=i[t?6:7],L[`icon-focus`]=n.compact&&!t?L[`text-strong`]:i[11],L[`icon-invert-base`]=t?i[0]:`#ffffff`,L[`icon-weak-base`]=i[t?5:6],L[`icon-weak-hover`]=i[t?11:7],L[`icon-weak-active`]=i[8],L[`icon-weak-selected`]=i[t?8:9],L[`icon-weak-disabled`]=i[t?3:5],L[`icon-weak-focus`]=i[8],L[`icon-strong-base`]=i[11],L[`icon-strong-hover`]=t?`#f6f3f3`:`#151313`,L[`icon-strong-active`]=t?`#fcfcfc`:`#020202`,L[`icon-strong-selected`]=t?`#fdfcfc`:`#020202`,L[`icon-strong-disabled`]=i[7],L[`icon-strong-focus`]=t?`#fdfcfc`:`#020202`,L[`icon-brand-base`]=t?`#ffffff`:i[11],L[`icon-interactive-base`]=d[8],L[`icon-success-base`]=s[t?8:6],L[`icon-success-hover`]=s[9],L[`icon-success-active`]=s[10],L[`icon-warning-base`]=f[t?8:6],L[`icon-warning-hover`]=f[9],L[`icon-warning-active`]=f[10],L[`icon-critical-base`]=l[t?8:9],L[`icon-critical-hover`]=l[9],L[`icon-critical-active`]=l[10],L[`icon-info-base`]=u[t?8:6],L[`icon-info-hover`]=u[t?9:7],L[`icon-info-active`]=u[10],L[`icon-on-brand-base`]=I(ee),L[`icon-on-brand-hover`]=I(A),L[`icon-on-brand-selected`]=I(A),L[`icon-on-interactive-base`]=I(te),L[`icon-agent-plan-base`]=u[8],L[`icon-agent-docs-base`]=f[8],L[`icon-agent-ask-base`]=p[8],L[`icon-agent-build-base`]=d[t?10:8],L[`icon-on-success-base`]=I(N),L[`icon-on-success-hover`]=I(re),L[`icon-on-success-selected`]=I(re),L[`icon-on-warning-base`]=I(ie),L[`icon-on-warning-hover`]=I(ae),L[`icon-on-warning-selected`]=I(ae),L[`icon-on-critical-base`]=I(oe),L[`icon-on-critical-hover`]=I(se),L[`icon-on-critical-selected`]=I(se),L[`icon-on-info-base`]=I(ce),L[`icon-on-info-hover`]=I(ue),L[`icon-on-info-selected`]=I(ue),L[`icon-diff-add-base`]=m[10],L[`icon-diff-add-hover`]=m[t?9:11],L[`icon-diff-add-active`]=m[t?10:11],L[`icon-diff-delete-base`]=h[9],L[`icon-diff-delete-hover`]=h[10],L[`icon-diff-modified-base`]=C(),n.compact&&(L[`syntax-comment`]=`var(--text-weak)`,L[`syntax-regexp`]=`var(--text-base)`,L[`syntax-string`]=S(n.success,s),L[`syntax-keyword`]=S(n.accent,o),L[`syntax-primitive`]=S(n.primary,a),L[`syntax-operator`]=t?`var(--text-weak)`:`var(--text-base)`,L[`syntax-variable`]=`var(--text-strong)`,L[`syntax-property`]=S(n.info,u),L[`syntax-type`]=S(n.warning,c),L[`syntax-constant`]=S(n.accent,o),L[`syntax-punctuation`]=t?`var(--text-weak)`:`var(--text-base)`,L[`syntax-object`]=`var(--text-strong)`,L[`syntax-success`]=s[10],L[`syntax-warning`]=f[10],L[`syntax-critical`]=l[10],L[`syntax-info`]=S(n.info,u),L[`syntax-diff-add`]=m[10],L[`syntax-diff-delete`]=h[10],L[`syntax-diff-unknown`]=`#ff0000`,L[`markdown-heading`]=S(n.primary,a),L[`markdown-text`]=L[`text-base`],L[`markdown-link`]=S(n.interactive,d),L[`markdown-link-text`]=S(n.info,u),L[`markdown-code`]=S(n.success,s),L[`markdown-block-quote`]=S(n.warning,c),L[`markdown-emph`]=S(n.warning,c),L[`markdown-strong`]=S(n.accent,o),L[`markdown-horizontal-rule`]=L[`border-base`],L[`markdown-list-item`]=S(n.interactive,d),L[`markdown-list-enumeration`]=S(n.info,u),L[`markdown-image`]=S(n.interactive,d),L[`markdown-image-text`]=S(n.info,u),L[`markdown-code-block`]=L[`text-base`]),n.compact||(L[`syntax-comment`]=`var(--text-weak)`,L[`syntax-regexp`]=`var(--text-base)`,L[`syntax-string`]=t?`#00ceb9`:`#006656`,L[`syntax-keyword`]=`var(--text-weak)`,L[`syntax-primitive`]=t?`#ffba92`:`#fb4804`,L[`syntax-operator`]=t?`var(--text-weak)`:`var(--text-base)`,L[`syntax-variable`]=`var(--text-strong)`,L[`syntax-property`]=t?`#ff9ae2`:`#ed6dc8`,L[`syntax-type`]=t?`#ecf58c`:`#596600`,L[`syntax-constant`]=t?`#93e9f6`:`#007b80`,L[`syntax-punctuation`]=t?`var(--text-weak)`:`var(--text-base)`,L[`syntax-object`]=`var(--text-strong)`,L[`syntax-success`]=s[10],L[`syntax-warning`]=f[10],L[`syntax-critical`]=l[10],L[`syntax-info`]=t?`#93e9f6`:`#0092a8`,L[`syntax-diff-add`]=m[10],L[`syntax-diff-delete`]=h[10],L[`syntax-diff-unknown`]=`#ff0000`,L[`markdown-heading`]=t?`#9d7cd8`:`#d68c27`,L[`markdown-text`]=t?`#eeeeee`:`#1a1a1a`,L[`markdown-link`]=t?`#fab283`:`#3b7dd8`,L[`markdown-link-text`]=t?`#56b6c2`:`#318795`,L[`markdown-code`]=t?`#7fd88f`:`#3d9a57`,L[`markdown-block-quote`]=t?`#e5c07b`:`#b0851f`,L[`markdown-emph`]=t?`#e5c07b`:`#b0851f`,L[`markdown-strong`]=t?`#f5a742`:`#d68c27`,L[`markdown-horizontal-rule`]=t?`#808080`:`#8a8a8a`,L[`markdown-list-item`]=t?`#fab283`:`#3b7dd8`,L[`markdown-list-enumeration`]=t?`#56b6c2`:`#318795`,L[`markdown-image`]=t?`#fab283`:`#3b7dd8`,L[`markdown-image-text`]=t?`#56b6c2`:`#318795`,L[`markdown-code-block`]=t?`#eeeeee`:`#1a1a1a`),L[`avatar-background-pink`]=t?`#501b3f`:`#feeef8`,L[`avatar-background-mint`]=t?`#033a34`:`#e1fbf4`,L[`avatar-background-orange`]=t?`#5f2a06`:`#fff1e7`,L[`avatar-background-purple`]=t?`#432155`:`#f9f1fe`,L[`avatar-background-cyan`]=t?`#0f3058`:`#e7f9fb`,L[`avatar-background-lime`]=t?`#2b3711`:`#eefadc`,L[`avatar-text-pink`]=t?`#e34ba9`:`#cd1d8d`,L[`avatar-text-mint`]=t?`#95f3d9`:`#147d6f`,L[`avatar-text-orange`]=t?`#ff802b`:`#ed5f00`,L[`avatar-text-purple`]=t?`#9d5bd2`:`#8445bc`,L[`avatar-text-cyan`]=t?`#369eff`:`#0894b3`,L[`avatar-text-lime`]=t?`#c4f042`:`#5d770d`;for(let[e,t]of Object.entries(r))L[e]=t;if(n.compact&&`text-weak`in r&&!(`text-weaker`in r)){let e=L[`text-weak`];L[`text-weaker`]=e.startsWith(`#`)?Ln(e,{l:t?-.12:.12,c:.75}):e}return n.compact&&(`markdown-text`in r||(L[`markdown-text`]=L[`text-base`]),`markdown-code-block`in r||(L[`markdown-code-block`]=L[`text-base`])),`text-stronger`in r||(L[`text-stronger`]=L[`text-strong`]),L}function Hn(e){let t=e;if(t.palette&&t.seeds)throw Error("Theme variant cannot define both `palette` and `seeds`");if(e.palette)return{compact:!0,neutral:e.palette.neutral,ink:e.palette.ink,primary:e.palette.primary,accent:e.palette.accent??e.palette.info,success:e.palette.success,warning:e.palette.warning,error:e.palette.error,info:e.palette.info,interactive:e.palette.interactive??e.palette.primary,diffAdd:e.palette.diffAdd,diffDelete:e.palette.diffDelete};if(e.seeds)return{compact:!1,neutral:e.seeds.neutral,ink:void 0,primary:e.seeds.primary,accent:e.seeds.info,success:e.seeds.success,warning:e.seeds.warning,error:e.seeds.error,info:e.seeds.info,interactive:e.seeds.interactive,diffAdd:e.seeds.diffAdd,diffDelete:e.seeds.diffDelete};throw Error("Theme variant requires `palette` or `seeds`")}function Un(e,t){return(t?[.038,.066,.1,.142,.19,.252,.334,.446,.58,.718,.854,.985]:[.03,.06,.1,.145,.2,.265,.35,.47,.61,.74,.86,.97]).map(t=>zn(e[11],e[0],t))}function Wn(e){if(e?.startsWith(`#`))return e}function Gn(e){return Object.entries(e).map(([e,t])=>`--${e}: ${t};`).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DzRW817u.js","assets/html-HIvKkSZ3.js","assets/javascript-PMSXGhX1.js","assets/css-DuzOk7di.js","assets/angular-ts-Dwpo5JSv.js","assets/scss-BnFPXH54.js","assets/apl-bt59SDvg.js","assets/xml-BZNC4g25.js","assets/java-C5iWdXOl.js","assets/json-CCQ1eo9o.js","assets/astro-B3siF1pJ.js","assets/typescript-DvXz8u_k.js","assets/postcss-BXeXVLqQ.js","assets/tsx-DVoPHges.js","assets/blade-BevF_cYv.js","assets/html-derivative-CDavbmdn.js","assets/sql-C838IanB.js","assets/bsl-_VjlB9mv.js","assets/sdbl-bTVj8UrX.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/chapel-DgshBe1K.js","assets/c-gavBjOcY.js","assets/cobol-D5zqvXzY.js","assets/coffee-SCAyVn9N.js","assets/cpp-RUQ97EK5.js","assets/regexp-CnuLvLnC.js","assets/glsl-BpYswgfh.js","assets/crystal-FauNVdkE.js","assets/shellscript-Brdg8vyE.js","assets/edge-Bc0EBQ7y.js","assets/elixir-BmxsT0oc.js","assets/elm-BrTAZ55m.js","assets/erb-B60HRxmg.js","assets/ruby-DXQkNv8k.js","assets/haml-BJb-BQAN.js","assets/graphql-C3iDzxap.js","assets/jsx-DeLT99JL.js","assets/lua-D6UzQw5Z.js","assets/yaml-DLY3wDEk.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-xMC7jr7x.js","assets/gdshader-CBce3t8t.js","assets/gdscript-DYvRD3hg.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-CK9f68l3.js","assets/glimmer-js-CVc7keaR.js","assets/glimmer-ts-DYraWlmH.js","assets/hack-D8oEoipZ.js","assets/handlebars-wB54lHaB.js","assets/http-DEgShh0-.js","assets/hurl-D8wvJcyh.js","assets/csv-Dx-8-gkx.js","assets/hxml-Dcm88srW.js","assets/haxe-C8oCnwJJ.js","assets/jinja-CJ_l63gX.js","assets/jison-DGaZyJAT.js","assets/julia-DODLsulx.js","assets/r-DXvz5K4A.js","assets/just-B_Nvjvhv.js","assets/perl-6SV_ayGd.js","assets/latex-CCjy2I9z.js","assets/tex-Wu25UU_Z.js","assets/liquid-C2tknZP0.js","assets/marko-CGd5W4Hn.js","assets/less-DVTAwKKz.js","assets/mdc-Bp5z92Vo.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-DAsqAd3h.js","assets/nim-COOJz623.js","assets/org-CBV1qqrA.js","assets/clojure-DqKBuwfJ.js","assets/csharp-oqKa8noW.js","assets/dart-CnvKMtbv.js","assets/docker-IyjqRm3v.js","assets/go-rLFTqkRN.js","assets/groovy-CacY0gHj.js","assets/ini-B5eOa1yu.js","assets/make-Dixweg8N.js","assets/objective-c-D1A_Heim.js","assets/ocaml-O90oeIOV.js","assets/php-BUb-Io9m.js","assets/vb-DOwzaHZ0.js","assets/raku-B3gFvitq.js","assets/rust-Cfkwpbl8.js","assets/scala-BiFt_7mu.js","assets/zig-CMLA9XwU.js","assets/xsl-DXEWaWc5.js","assets/pug-D5s94d1b.js","assets/qml-D8g4NGVo.js","assets/razor-D9CjUAvE.js","assets/rst-Chdv5DuC.js","assets/cmake-Bj61d0ZC.js","assets/sas-B6S0Oq1H.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-Df33UGC7.js","assets/soy-DE83qari.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-BjrFc6Ob.js","assets/surrealql-BQl2P64c.js","assets/svelte-WhVuP9VM.js","assets/templ-GlyHWfam.js","assets/ts-tags-C6TgXLV6.js","assets/twig-CKzx4A42.js","assets/typst-BcepwfpV.js","assets/bat-qdxAdBWQ.js","assets/bibtex-Ci_nEsc7.js","assets/jsonc-CYpm1nAK.js","assets/log-BNLmms1o.js","assets/powershell-CCSX75yM.js","assets/swift-CyEgAFGc.js","assets/system-verilog-Dh5ihWbf.js","assets/verilog-B2gwz-sJ.js","assets/vue-Bqzme_T-.js","assets/vue-html-DZHKNOUy.js","assets/vue-vine-azvFs0P6.js","assets/stylus-B6D30XZt.js","assets/mermaid.core-D1TUMBuT.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-tvfSkCy9.js","assets/chunk-DU6HZSFF-BxB0lceI.js","assets/chunk-75Z2AOVW-EfPG3FOY.js","assets/dist-Cn65YNrn.js","assets/chunk-PWAF6VOD-Cl2eG05g.js","assets/chunk-GMAD6QVW-AbIWvPs8.js","assets/chunk-P2QGCYS3-Dst8DZSR.js","assets/chunk-4HAMMTFA-D1Gsg_qO.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-GVQU2GXP-aIYNUxo9.js","assets/chunk-OSK3NFVY-CinbAXbX.js","assets/line-DGK8UZYe.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/graphlib-DS17s2tU.js","assets/chunk-L3NEJ4N5-KtxD1mfg.js"])))=>i.map(i=>d[i]);
2
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return d(this.context.count)},getNextContextId(){return d(this.context.count++)}};function d(e){let t=String(e),n=t.length-1;return u.context.id+(n?String.fromCharCode(96+n):``)+t}function f(e){u.context=e}var p=(e,t)=>e===t,m=Symbol(`solid-proxy`),h=typeof Proxy==`function`,g=Symbol(`solid-track`),_={equals:p},v=null,y=Ce,b=1,x=2,S={owned:null,cleanups:null,context:null,owner:null},C={},w=null,T=null,E=null,D=null,O=null,k=0;function ee(e,t){let n=E,r=w,i=e.length===0,a=t===void 0?r:t,o=i?S:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>P(()=>De(o)));w=o,E=null;try{return xe(s,!0)}finally{E=n,w=r}}function A(e,t){t=t?Object.assign({},_,t):_;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[he.bind(n),e=>(typeof e==`function`&&(e=T&&T.running&&T.sources.has(n)?e(n.tValue):e(n.value)),ge(n,e))]}function te(e,t,n){_e(ye(e,t,!0,b))}function j(e,t,n){_e(ye(e,t,!1,b))}function M(e,t,n){y=we;let r=ye(e,t,!1,b),i=me&&R(me);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),O?O.push(r):_e(r)}function N(e,t,n){n=n?Object.assign({},_,n):_;let r=ye(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,_e(r),he.bind(r)}function ne(e){return e&&typeof e==`object`&&`then`in e}function re(e,t,n){let r,i,a;typeof t==`function`?(r=e,i=t,a=n||{}):(r=!0,i=e,a=t||{});let o=null,s=C,c=null,l=!1,d=!1,f=`initialValue`in a,p=typeof r==`function`&&N(r),m=new Set,[h,g]=(a.storage||A)(a.initialValue),[_,v]=A(void 0),[y,b]=A(void 0,{equals:!1}),[x,S]=A(f?`ready`:`unresolved`);w&&F(()=>{for(let e of m.keys())e.decrement();m.clear(),T&&o&&T.promises.delete(o),o=null}),u.context&&(c=u.getNextContextId(),a.ssrLoadFrom===`initial`?s=a.initialValue:u.load&&u.has(c)&&(s=u.load(c)));function D(e,t,n,r){return o===e&&(o=null,r!==void 0&&(f=!0),(e===s||t===s)&&a.onHydrated&&queueMicrotask(()=>a.onHydrated(r,{value:t})),s=C,T&&e&&l?(T.promises.delete(e),l=!1,xe(()=>{T.running=!0,O(t,n)},!1)):O(t,n)),t}function O(e,t){xe(()=>{t===void 0&&g(()=>e),S(t===void 0?f?`ready`:`unresolved`:`errored`),v(t);for(let e of m.keys())e.decrement();m.clear()},!1)}function k(){let e=me&&R(me),t=h(),n=_();if(n!==void 0&&!o)throw n;return E&&!E.user&&e&&te(()=>{y(),o&&(e.resolved&&T&&l?T.promises.add(o):m.has(e)||(e.increment(),m.add(e)))}),t}function ee(e=!0){if(e!==!1&&d)return;d=!1;let t=p?p():r;if(l=T&&T.running,t==null||t===!1){D(o,P(h));return}T&&o&&T.promises.delete(o);let n,a=s===C?P(()=>{try{return i(t,{value:h(),refetching:e})}catch(e){n=e}}):s;if(n!==void 0){D(o,void 0,ke(n),t);return}return ne(a)?(o=a,`v`in a?(a.s===1?D(o,a.v,void 0,t):D(o,void 0,ke(a.v),t),a):(d=!0,queueMicrotask(()=>d=!1),xe(()=>{S(f?`refreshing`:`pending`),b()},!1),a.then(e=>D(a,e,void 0,t),e=>D(a,void 0,ke(e),t)))):(D(o,a,void 0,t),a)}Object.defineProperties(k,{state:{get:()=>x()},error:{get:()=>_()},loading:{get(){let e=x();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return k();let e=_();if(e&&!o)throw e;return h()}}});let j=w;return p?te(()=>(j=w,ee(!1))):ee(!1),[k,{refetch:e=>ue(j,()=>ee(e)),mutate:g}]}function ie(e){return xe(e,!1)}function P(e){if(E===null)return e();let t=E;E=null;try{return e()}finally{E=t}}function ae(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=P(()=>t(o,i,n));return i=o,s}}function oe(e){M(()=>P(e))}function F(e){return w===null||(w.cleanups===null?w.cleanups=[e]:w.cleanups.push(e)),e}function se(e,t){v||=Symbol(`error`),w=ye(void 0,void 0,!0),w.context={...w.context,[v]:[t]},T&&T.running&&T.sources.add(w);try{return e()}catch(e){je(e)}finally{w=w.owner}}function ce(){return E}function le(){return w}function ue(e,t){let n=w,r=E;w=e,E=null;try{return xe(t,!0)}catch(e){je(e)}finally{w=n,E=r}}function de(e){if(T&&T.running)return e(),T.done;let t=E,n=w;return Promise.resolve().then(()=>{E=t,w=n;let r;return me&&(r=T||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||(r.done=new Promise(e=>r.resolve=e)),r.running=!0),xe(e,!1),E=w=null,r?r.done:void 0})}var[fe,I]=A(!1);function L(e,t){let n=Symbol(`context`);return{id:n,Provider:Ne(n),defaultValue:e}}function R(e){let t;return w&&w.context&&(t=w.context[e.id])!==void 0?t:e.defaultValue}function pe(e){let t=N(e),n=N(()=>Me(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var me;function he(){let e=T&&T.running;if(this.sources&&(e?this.tState:this.state)){if((e?this.tState:this.state)===b)_e(this);else{let e=D;D=null,xe(()=>Te(this),!1),D=e}}if(E){let e=this.observers;if(!e||e[e.length-1]!==E){let t=e?e.length:0;E.sources?(E.sources.push(this),E.sourceSlots.push(t)):(E.sources=[this],E.sourceSlots=[t]),e?(e.push(E),this.observerSlots.push(E.sources.length-1)):(this.observers=[E],this.observerSlots=[E.sources.length-1])}}return e&&T.sources.has(this)?this.tValue:this.value}function ge(e,t,n){let r=T&&T.running&&T.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(T){let r=T.running;(r||!n&&T.sources.has(e))&&(T.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&xe(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=T&&T.running;r&&T.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?D.push(n):O.push(n),n.observers&&Ee(n)),r?n.tState=b:n.state=b)}if(D.length>1e6)throw D=[],Error()},!1)}return t}function _e(e){if(!e.fn)return;De(e);let t=k;ve(e,T&&T.running&&T.sources.has(e)?e.tValue:e.value,t),T&&!T.running&&T.sources.has(e)&&queueMicrotask(()=>{xe(()=>{T&&(T.running=!0),E=w=e,ve(e,e.tValue,t),E=w=null},!1)})}function ve(e,t,n){let r,i=w,a=E;E=w=e;try{r=e.fn(t)}catch(t){return e.pure&&(T&&T.running?(e.tState=b,e.tOwned&&e.tOwned.forEach(De),e.tOwned=void 0):(e.state=b,e.owned&&e.owned.forEach(De),e.owned=null)),e.updatedAt=n+1,je(t)}finally{E=a,w=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ge(e,r,!0):T&&T.running&&e.pure?(T.sources.has(e)||(e.value=r),T.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function ye(e,t,n,r=b,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:w,context:w?w.context:null,pure:n};return T&&T.running&&(a.state=0,a.tState=r),w===null||w!==S&&(T&&T.running&&w.pure?w.tOwned?w.tOwned.push(a):w.tOwned=[a]:w.owned?w.owned.push(a):w.owned=[a]),a}function be(e){let t=T&&T.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===x)return Te(e);if(e.suspense&&P(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<k);){if(t&&T.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(T.disposed.has(t))return}if((t?e.tState:e.state)===b)_e(e);else if((t?e.tState:e.state)===x){let t=D;D=null,xe(()=>Te(e,n[0]),!1),D=t}}}function xe(e,t){if(D)return e();let n=!1;t||(D=[]),O?n=!0:O=[],k++;try{let t=e();return Se(n),t}catch(e){n||(O=null),D=null,je(e)}}function Se(e){if(D&&=(Ce(D),null),e)return;let t;if(T){if(!T.promises.size&&!T.queue.size){let e=T.sources,n=T.disposed;O.push.apply(O,T.effects),t=T.resolve;for(let e of O)`tState`in e&&(e.state=e.tState),delete e.tState;T=null,xe(()=>{for(let e of n)De(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)De(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}I(!1)},!1)}else if(T.running){T.running=!1,T.effects.push.apply(T.effects,O),O=null,I(!0);return}}let n=O;O=null,n.length&&xe(()=>y(n),!1),t&&t()}function Ce(e){for(let t=0;t<e.length;t++)be(e[t])}function we(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:be(r)}if(u.context){if(u.count){u.effects||=[],u.effects.push(...e.slice(0,n));return}f()}for(u.effects&&(u.done||!u.count)&&(e=[...u.effects,...e],n+=u.effects.length,delete u.effects),t=0;t<n;t++)be(e[t])}function Te(e,t){let n=T&&T.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===b?i!==t&&(!i.updatedAt||i.updatedAt<k)&&be(i):e===x&&Te(i,t)}}}function Ee(e){let t=T&&T.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=x:r.state=x,r.pure?D.push(r):O.push(r),r.observers&&Ee(r))}}function De(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)De(e.tOwned[t]);delete e.tOwned}if(T&&T.running&&e.pure)Oe(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)De(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}T&&T.running?e.tState=0:e.state=0}function Oe(e,t){if(t||(e.tState=0,T.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)Oe(e.owned[t])}function ke(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function Ae(e,t,n){try{for(let n of t)n(e)}catch(e){je(e,n&&n.owner||null)}}function je(e,t=w){let n=v&&t&&t.context&&t.context[v],r=ke(e);if(!n)throw r;O?O.push({fn(){Ae(r,n,t)},state:b}):Ae(r,n,t)}function Me(e){if(typeof e==`function`&&!e.length)return Me(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=Me(e[n]);if(Array.isArray(r)){if(r.length<32768)t.push.apply(t,r);else for(let e=0;e<r.length;e++)t.push(r[e])}else t.push(r)}return t}return e}function Ne(e,t){return function(t){let n;return j(()=>n=P(()=>(w.context={...w.context,[e]:t.value},pe(()=>t.children))),void 0),n}}var Pe=Symbol(`fallback`);function Fe(e){for(let t=0;t<e.length;t++)e[t]()}function Ie(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return F(()=>Fe(a)),()=>{let c=e()||[],l=c.length,u,d;return c[g],P(()=>{let e,t,p,m,h,g,_,v,y;if(l===0)o!==0&&(Fe(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[Pe],i[0]=ee(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=ee(f);o=l}else{for(p=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)p[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(p[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;d<l;d++)d in p?(i[d]=p[d],a[d]=m[d],s&&(s[d]=h[d],s[d](d))):i[d]=ee(f);i=i.slice(0,o=l),r=c.slice(0)}return i});function f(e){if(a[d]=e,s){let[e,n]=A(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}function Le(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return F(()=>Fe(a)),()=>{let l=e()||[],u=l.length;return l[g],P(()=>{if(u===0)return s!==0&&(Fe(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[Pe],i[0]=ee(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===Pe&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<u;c++)c<r.length&&r[c]!==l[c]?o[c](()=>l[c]):c>=r.length&&(i[c]=ee(d));for(;c<r.length;c++)a[c]();return s=o.length=a.length=u,r=l.slice(0),i=i.slice(0,s)});function d(e){a[c]=e;let[n,r]=A(l[c]);return o[c]=r,t(n,c)}}}function z(e,t){return P(()=>e(t||{}))}function Re(){return!0}var ze={get(e,t,n){return t===m?n:e.get(t)},has(e,t){return t===m||e.has(t)},set:Re,deleteProperty:Re,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Re,deleteProperty:Re}},ownKeys(e){return e.keys()}};function Be(e){return(e=typeof e==`function`?e():e)?e:{}}function Ve(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function B(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&m in r,e[n]=typeof r==`function`?(t=!0,N(r)):r}if(h&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=Be(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Be(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Be(e[n])));return[...new Set(t)]}},ze);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:Ve.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function V(e,...t){let n=t.length;if(h&&m in e){let r=n>1?t.flat():t[0],i=new Set,a=t.map(t=>{let n=t.filter(e=>!i.has(e)&&(i.add(e),!0));return new Proxy({get(t){return n.includes(t)?e[t]:void 0},has(t){return n.includes(t)&&t in e},keys(){return n.filter(t=>t in e)}},ze)});return a.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return!r.includes(t)&&t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},ze)),a}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}var He=0;function Ue(){return u.context?u.getNextContextId():`cl-${He++}`}var We=e=>`Stale read from <${e}>.`;function Ge(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return N(Ie(()=>e.each,e.children,t||void 0))}function Ke(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return N(Le(()=>e.each,e.children,t||void 0))}function H(e){let t=e.keyed,n=N(()=>e.when,void 0,void 0),r=t?n:N(n,void 0,{equals:(e,t)=>!e==!t});return N(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?P(()=>a(t?i:()=>{if(!P(r))throw We(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function qe(e){let t=pe(()=>e.children),n=N(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=N(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:N(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return N(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?P(()=>o(a.keyed?i():()=>{if(P(n)()?.[0]!==r)throw We(`Match`);return i()})):o},void 0,void 0)}function Je(e){return e}var Ye;function Xe(e){let t;u.context&&u.load&&(t=u.load(u.getContextId()));let[n,r]=A(t,void 0);return Ye||=new Set,Ye.add(r),F(()=>Ye.delete(r)),N(()=>{let t;if(t=n()){let n=e.fallback;return typeof n==`function`&&n.length?P(()=>n(t,()=>r())):n}return se(()=>e.children,r)},void 0,void 0)}var Ze=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),Qe=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),$e=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),et=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function tt(e,t){let n=et[e];return typeof n==`object`?n[t]?n.$:void 0:n}var nt=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),rt=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),it={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},U=e=>N(()=>e());function at(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null){if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&(d=l.get(t[c]))!=null&&d===r+u;)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++}else t[o++].remove()}}}var ot=`_$DX_DELEGATE`;function st(e,t,n,r={}){let i;return ee(r=>{i=r,t===document?e():K(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function W(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>P(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function ct(e,t=window.document){let n=t[ot]||(t[ot]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,wt))}}function G(e,t,n){bt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function lt(e,t,n,r){bt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function ut(e,t,n){bt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function dt(e,t){bt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function ft(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function pt(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];r&&r!==`undefined`&&!t[r]&&(St(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];i&&i!==`undefined`&&n[i]!==o&&o&&(St(e,i,!0),n[i]=o)}return n}function mt(e,t,n){if(!t)return n?G(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function ht(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function gt(e,t={},n,r){let i={};return r||j(()=>i.children=Tt(e,t.children,i.children)),j(()=>typeof t.ref==`function`&&_t(t.ref,e)),j(()=>vt(e,t,n,!0,i,!0)),i}function _t(e,t,n){return P(()=>e(t,n))}function K(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return Tt(e,t,r,n);j(r=>Tt(e,t(),r,n),r)}function vt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=Ct(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||Tt(e,t.children);continue}let s=t[o];i[o]=Ct(e,o,s,i[o],n,a,t)}}function yt(e){let t,n;return!bt()||!(t=u.registry.get(n=kt()))?e():(u.completed&&u.completed.add(t),u.registry.delete(n),t)}function bt(e){return!!u.context&&!u.done&&(!e||e.isConnected)}function xt(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function St(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function Ct(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return mt(e,n,r);if(t===`classList`)return pt(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=nt.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(ft(e,i,n,a),a&&ct([i]))}else if(t.slice(0,5)===`attr:`)G(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)ut(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=Qe.has(t))||!i&&((u=tt(t,e.tagName))||(c=Ze.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(bt(e))return n;t===`class`||t===`className`?dt(e,n):s&&!c&&!l?e[xt(t)]=n:(t===`value`||t===`defaultValue`)&&(e.nodeName===`INPUT`||e.nodeName===`TEXTAREA`)?e[u||t]=n??``:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&it[t.split(`:`)[0]];r?lt(e,r,t,n):G(e,$e[t]||t,n)}return n}function wt(e){if(u.registry&&u.events&&u.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),u.registry&&!u.done&&(u.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function Tt(e,t,n,r,i){let a=bt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=Ot(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=Ot(e,n,r)}else if(o===`function`)return j(()=>{let i=t();for(;typeof i==`function`;)i=i();n=Tt(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(Et(o,t,n,i))return j(()=>n=Tt(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=Ot(e,n,r),s)return n}else c?n.length===0?Dt(e,o,r):at(e,n,o):(n&&Ot(e),Dt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Ot(e,n,r,t);Ot(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Et(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(o!=null&&o!==!0&&o!==!1){if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=Et(e,o,s)||i;else if(c===`function`){if(r){for(;typeof o==`function`;)o=o();i=Et(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0}else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}}return i}function Dt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Ot(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function kt(){return u.getNextContextId()}var At=`http://www.w3.org/2000/svg`;function jt(e,t=!1,n=void 0){return t?document.createElementNS(At,e):document.createElement(e,{is:n})}function Mt(e){let{useShadow:t}=e,n=document.createTextNode(``),r=()=>e.mount||document.body,i=le(),a,o=!!u.context;return M(()=>{o&&(le().user=o=!1),a||=ue(i,()=>N(()=>e.children));let s=r();if(s instanceof HTMLHeadElement){let[e,t]=A(!1);ee(t=>K(s,()=>e()?t():a(),null)),F(()=>t(!0))}else{let r=jt(e.isSVG?`g`:`div`,e.isSVG),i=t&&r.attachShadow?r.attachShadow({mode:`open`}):r;Object.defineProperty(r,"_$host",{get(){return n.parentNode},configurable:!0}),K(i,a),s.appendChild(r),e.ref&&e.ref(r),F(()=>s.contains(r)&&s.removeChild(r))}},void 0,{render:!o}),n}function Nt(e,t){let n=N(e);return N(()=>{let e=n();switch(typeof e){case`function`:return P(()=>e(t));case`string`:let n=rt.has(e),r=u.context?yt():jt(e,n,P(()=>t.is));return gt(r,t,n),r}})}function Pt(e){let[,t]=V(e,[`component`]);return Nt(()=>e.component,t)}var Ft=Symbol(`store-raw`),It=Symbol(`store-node`),Lt=Symbol(`store-has`),Rt=Symbol(`store-self`);function zt(e){let t=e[m];if(!t&&(Object.defineProperty(e,m,{value:t=new Proxy(e,qt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),i=Object.getPrototypeOf(e),a=i!==null&&typeof e==`object`&&!!e&&!Array.isArray(e)&&i!==Object.prototype;if(a){let e=Object.getOwnPropertyDescriptors(i);n.push(...Object.keys(e)),Object.assign(r,e)}for(let i=0,o=n.length;i<o;i++){let o=n[i];a&&o===`constructor`||r[o].get&&Object.defineProperty(e,o,{configurable:!0,enumerable:r[o].enumerable,get:r[o].get.bind(t)})}}return t}function Bt(e){let t;return typeof e==`object`&&!!e&&(e[m]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Vt(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[Ft])return n;if(!Bt(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Vt(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Vt(i,t))!==i&&(e[a]=r))}return e}function Ht(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Ut(e,t,n){if(e[t])return e[t];let[r,i]=A(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Wt(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===m||t===It?n:(delete n.value,delete n.writable,n.get=()=>e[m][t],n)}function Gt(e){ce()&&Ut(Ht(e,It),Rt)()}function Kt(e){return Gt(e),Reflect.ownKeys(e)}var qt={get(e,t,n){if(t===Ft)return e;if(t===m)return n;if(t===g)return Gt(e),n;let r=Ht(e,It),i=r[t],a=i?i():e[t];if(t===It||t===Lt||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);ce()&&(typeof a!=`function`||Object.prototype.hasOwnProperty.call(e,t))&&!(n&&n.get)&&(a=Ut(r,t,a)())}return Bt(a)?zt(a):a},has(e,t){return t===Ft||t===m||t===g||t===It||t===Lt||t===`__proto__`||(ce()&&Ut(Ht(e,Lt),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Kt,getOwnPropertyDescriptor:Wt};function Jt(e,t,n,r=!1){if(t===`__proto__`||!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Lt]&&e[Lt][t]&&i!==void 0&&e[Lt][t].$()):(e[t]=n,e[Lt]&&e[Lt][t]&&i===void 0&&e[Lt][t].$());let o=Ht(e,It),s;if((s=Ut(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=Ut(o,`length`,a))&&s.$(e.length)}(s=o[Rt])&&s.$()}function Yt(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Xt(i)||Jt(e,i,t[i])}}function Xt(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Zt(e,t){if(typeof t==`function`&&(t=t(e)),t=Vt(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Jt(e,n,r)}Jt(e,`length`,r)}else Yt(e,t)}function Qt(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(a===`string`&&(r===`__proto__`||t.length>1&&Xt(r)))return;if(Array.isArray(r)){for(let i=0;i<r.length;i++)Qt(e,[r[i]].concat(t),n);return}if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Qt(e,[i].concat(t),n);return}if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Qt(e,[r].concat(t),n);return}if(t.length>1){Qt(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||(r!==void 0||a!=null)&&(a=Vt(a),r===void 0||Bt(i)&&Bt(a)&&!Array.isArray(a)?Yt(i,a):Jt(e,r,a))}function $t(...[e,t]){let n=Vt(e||{}),r=Array.isArray(n),i=zt(n);function a(...e){ie(()=>{r&&e.length===1?Zt(n,e[0]):Qt(n,e)})}return[i,a]}var en=Symbol(`store-root`);function tn(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function nn(e,t,n,r,i){if(tn(n))return;let a=t[n];if(e===a)return;let o=Array.isArray(e);if(n!==en&&(!Bt(e)||!Bt(a)||o!==Array.isArray(a)||i&&e[i]!==a[i])){Jt(t,n,e);return}if(o){if(e.length&&a.length&&(!r||i&&e[0]&&e[0][i]!=null)){let t,n,o,s,c,l,u,d;for(o=0,s=Math.min(a.length,e.length);o<s&&(a[o]===e[o]||i&&a[o]&&e[o]&&a[o][i]&&a[o][i]===e[o][i]);o++)nn(e[o],a,o,r,i);let f=Array(e.length),p=new Map;for(s=a.length-1,c=e.length-1;s>=o&&c>=o&&(a[s]===e[c]||i&&a[s]&&e[c]&&a[s][i]&&a[s][i]===e[c][i]);s--,c--)f[c]=a[s];if(o>c||o>s){for(n=o;n<=c;n++)Jt(a,n,e[n]);for(;n<e.length;n++)Jt(a,n,f[n]),nn(e[n],a,n,r,i);a.length>e.length&&Jt(a,`length`,e.length);return}for(u=Array(c+1),n=c;n>=o;n--)l=e[n],d=i&&l?l[i]:l,t=p.get(d),u[n]=t===void 0?-1:t,p.set(d,n);for(t=o;t<=s;t++)l=a[t],d=i&&l?l[i]:l,n=p.get(d),n!==void 0&&n!==-1&&(f[n]=a[t],n=u[n],p.set(d,n));for(n=o;n<e.length;n++)n in f?(Jt(a,n,f[n]),nn(e[n],a,n,r,i)):Jt(a,n,e[n])}else for(let t=0,n=e.length;t<n;t++)nn(e[t],a,t,r,i);a.length>e.length&&Jt(a,`length`,e.length);return}let s=Object.keys(e);for(let t=0,n=s.length;t<n;t++)tn(s[t])||nn(e[s[t]],a,s[t],r,i);let c=Object.keys(a);for(let t=0,n=c.length;t<n;t++)e[c[t]]===void 0&&Jt(a,c[t],void 0)}function rn(e,t={}){let{merge:n,key:r=`id`}=t,i=Vt(e);return e=>{if(!Bt(e)||!Bt(i))return i;let t=nn(i,{[en]:e},en,n,r);return t===void 0?e:t}}var an=e=>e!=null,on=e=>e.filter(an);function sn(e){return(...t)=>{for(let n of e)n&&n(...t)}}var q=e=>typeof e==`function`&&!e.length?e():e,cn=e=>Array.isArray(e)?e:e?[e]:[];function ln(e,...t){return typeof e==`function`?e(...t):e}var un=F;function dn(e,t,n){if(u.context){let[r,i]=A(e,n);return oe(()=>i(()=>t())),[r,i]}return A(t(),n)}function fn(e,t,n,r){let i=e.length,a=t.length,o=0;if(!a){for(;o<i;o++)n(e[o]);return}if(!i){for(;o<a;o++)r(t[o]);return}for(;o<a&&t[o]===e[o];o++);let s,c;t=t.slice(o),e=e.slice(o);for(s of t)e.includes(s)||r(s);for(c of e)t.includes(c)||n(c)}function pn(e,t,n,r){return e.addEventListener(t,n,r),un(e.removeEventListener.bind(e,t,n,r))}function mn(e,t,n,r){let i=()=>{cn(q(e)).forEach(e=>{e&&cn(q(t)).forEach(t=>pn(e,t,n,r))})};typeof e==`function`?M(i):j(i)}function hn(e){let t=L();return{provider:n=>{let r=e.init(n);if(!(e.gate??!0))return z(t.Provider,{value:r,get children(){return n.children}});let i=N(()=>{let e=r.ready;return e===void 0||(typeof e==`function`?e():e)});return z(H,{get when(){return i()},get children(){return z(t.Provider,{value:r,get children(){return n.children}})}})},use(){let n=R(t);if(!n)throw Error(`${e.name} context must be used within a context provider`);return n}}}var gn=s({$schema:()=>_n,dark:()=>xn,default:()=>Sn,id:()=>yn,light:()=>bn,name:()=>vn}),_n=`https://opencode.ai/desktop-theme.json`,vn=`OC-2`,yn=`oc-2`,bn={palette:{neutral:`#f7f7f7`,ink:`#171311`,primary:`#dcde8d`,success:`#12c905`,warning:`#ffdc17`,error:`#fc533a`,info:`#a753ae`,interactive:`#034cff`,diffAdd:`#9ff29a`,diffDelete:`#fc533a`},overrides:{"text-strong":`#171717`,"text-base":`#6F6F6F`,"text-weak":`#8F8F8F`,"text-weaker":`#C7C7C7`,"text-diff-add-base":`var(--v2-state-fg-success)`,"text-diff-delete-base":`var(--v2-state-fg-danger)`,"border-weak-base":`#DBDBDB`,"border-weaker-base":`#E8E8E8`,"icon-base":`#8F8F8F`,"icon-weak-base":`C7C7C7`,"surface-raised-base":`#F3F3F3`,"surface-raised-base-hover":`#EDEDED`,"surface-base":`#F8F8F8`,"surface-base-hover":`#0000000A`,"surface-interactive-weak":`#F5FAFF`,"icon-success-base":`#0ABE00`,"surface-success-base":`#E6FFE5`,"syntax-comment":`var(--v2-text-text-muted)`,"syntax-keyword":`var(--v2-pink-800)`,"syntax-string":`var(--v2-green-800)`,"syntax-primitive":`var(--v2-pink-800)`,"syntax-property":`var(--v2-orange-800)`,"syntax-type":`var(--v2-purple-800)`,"syntax-constant":`#007b80`,"syntax-critical":`var(--v2-red-800)`,"syntax-diff-add":`var(--v2-state-fg-success)`,"syntax-diff-delete":`var(--v2-state-fg-danger)`,"syntax-diff-unknown":`#a753ae`,"surface-critical-base":`#FFF2F0`},v2Overrides:{"v2-grey-50":`#ffffffff`,"v2-grey-100":`#fafafaff`,"v2-grey-200":`#f2f2f2ff`,"v2-grey-300":`#eeeeeeff`,"v2-grey-400":`#dbdbdbff`,"v2-grey-500":`#aeaeaeff`,"v2-grey-600":`#808080ff`,"v2-grey-700":`#5c5c5cff`,"v2-grey-800":`#3a3a3aff`,"v2-grey-900":`#2e2e2eff`,"v2-grey-1000":`#242424ff`,"v2-grey-1100":`#161616ff`,"v2-grey-1200":`#080808ff`,"v2-red-100":`#fcecebff`,"v2-red-200":`#f6d5d3ff`,"v2-red-300":`#f2bbb7ff`,"v2-red-400":`#f29b96ff`,"v2-red-500":`#f17471ff`,"v2-red-600":`#f1484fff`,"v2-red-700":`#d92e3cff`,"v2-red-800":`#b82d35ff`,"v2-red-900":`#97252bff`,"v2-red-1000":`#7a1f23ff`,"v2-red-1100":`#5f1a1cff`,"v2-red-1200":`#461516ff`,"v2-orange-100":`#fdf2edff`,"v2-orange-200":`#ffe7dcff`,"v2-orange-300":`#ffd8c6ff`,"v2-orange-400":`#ffc1a4ff`,"v2-orange-500":`#ffa478ff`,"v2-orange-600":`#ff8648ff`,"v2-orange-700":`#ee7330ff`,"v2-orange-800":`#d16427ff`,"v2-orange-900":`#b35624ff`,"v2-orange-1000":`#954c27ff`,"v2-orange-1100":`#723d22ff`,"v2-orange-1200":`#5a2c14ff`,"v2-yellow-100":`#fefaecff`,"v2-yellow-200":`#fcefd0ff`,"v2-yellow-300":`#f7e5b5ff`,"v2-yellow-400":`#f3da9bff`,"v2-yellow-500":`#f2cf76ff`,"v2-yellow-600":`#f6c251ff`,"v2-yellow-700":`#e7af36ff`,"v2-yellow-800":`#cb9f34ff`,"v2-yellow-900":`#ac8833ff`,"v2-yellow-1000":`#8e7231ff`,"v2-yellow-1100":`#68552bff`,"v2-yellow-1200":`#4b4025ff`,"v2-green-100":`#e7f9eaff`,"v2-green-200":`#d0f0d5ff`,"v2-green-300":`#b8e9c1ff`,"v2-green-400":`#96e3a6ff`,"v2-green-500":`#6bd586ff`,"v2-green-600":`#49c970ff`,"v2-green-700":`#2eaf5aff`,"v2-green-800":`#198b43ff`,"v2-green-900":`#1d783cff`,"v2-green-1000":`#196130ff`,"v2-green-1100":`#164c26ff`,"v2-green-1200":`#14361dff`,"v2-cyan-100":`#e2f7fbff`,"v2-cyan-200":`#c4edf4ff`,"v2-cyan-300":`#a3e4efff`,"v2-cyan-400":`#65d9ebff`,"v2-cyan-500":`#00c5dfff`,"v2-cyan-600":`#00abcfff`,"v2-cyan-700":`#0096b8ff`,"v2-cyan-800":`#007d9bff`,"v2-cyan-900":`#006c85ff`,"v2-cyan-1000":`#005a6eff`,"v2-cyan-1100":`#004756ff`,"v2-cyan-1200":`#00353fff`,"v2-blue-100":`#f5f8ffff`,"v2-blue-200":`#ecf1feff`,"v2-blue-300":`#c3d4fdff`,"v2-blue-400":`#a2bcffff`,"v2-blue-500":`#7698fdff`,"v2-blue-600":`#3b5cf6ff`,"v2-blue-700":`#0b34f4ff`,"v2-blue-800":`#3250dfff`,"v2-blue-900":`#2c47c8ff`,"v2-blue-1000":`#263fa9ff`,"v2-blue-1100":`#22388fff`,"v2-blue-1200":`#021945ff`,"v2-purple-100":`#ebecfeff`,"v2-purple-200":`#d5d5fcff`,"v2-purple-300":`#b9b8f5ff`,"v2-purple-400":`#9e99f7ff`,"v2-purple-500":`#8271f8ff`,"v2-purple-600":`#7152f4ff`,"v2-purple-700":`#623be2ff`,"v2-purple-800":`#5230c2ff`,"v2-purple-900":`#442aa1ff`,"v2-purple-1000":`#361f83ff`,"v2-purple-1100":`#2b1b6aff`,"v2-purple-1200":`#221358ff`,"v2-pink-100":`#fdecf3ff`,"v2-pink-200":`#f7d5e4ff`,"v2-pink-300":`#fabcd8ff`,"v2-pink-400":`#f799c6ff`,"v2-pink-500":`#f26cb2ff`,"v2-pink-600":`#f64aabff`,"v2-pink-700":`#e4429eff`,"v2-pink-800":`#c83d8bff`,"v2-pink-900":`#aa3576ff`,"v2-pink-1000":`#8c2d61ff`,"v2-pink-1100":`#6f284fff`,"v2-pink-1200":`#5c1d3fff`,"v2-background-bg-base":`var(--v2-grey-50)`,"v2-background-bg-deep":`var(--v2-grey-100)`,"v2-background-bg-layer-01":`var(--v2-grey-100)`,"v2-background-bg-layer-02":`var(--v2-grey-200)`,"v2-background-bg-layer-03":`var(--v2-grey-300)`,"v2-background-bg-layer-04":`var(--v2-grey-400)`,"v2-background-bg-inverse":`var(--v2-grey-1100)`,"v2-background-bg-contrast":`var(--v2-grey-1000)`,"v2-background-bg-icon-button-contrast":`var(--v2-background-bg-contrast)`,"v2-background-bg-button-neutral":`var(--v2-grey-50)`,"v2-background-bg-accent":`var(--v2-blue-600)`,"v2-background-bg-code-path":`var(--v2-cyan-100)`,"v2-text-text-base":`var(--v2-grey-1100)`,"v2-text-text-muted":`var(--v2-grey-700)`,"v2-text-text-faint":`var(--v2-grey-600)`,"v2-text-text-inverse":`var(--v2-grey-50)`,"v2-text-text-contrast":`var(--v2-grey-50)`,"v2-text-text-accent":`var(--v2-blue-600)`,"v2-text-text-accent-hover":`var(--v2-blue-700)`,"v2-text-text-code-accent":`var(--v2-blue-900)`,"v2-text-text-code-path":`var(--v2-blue-900)`,"v2-icon-icon-base":`var(--v2-grey-800)`,"v2-icon-icon-muted":`var(--v2-grey-600)`,"v2-icon-icon-faint":`var(--v2-grey-500)`,"v2-icon-icon-inverse":`var(--v2-grey-50)`,"v2-icon-icon-contrast":`var(--v2-grey-100)`,"v2-icon-icon-accent":`var(--v2-blue-600)`,"v2-icon-icon-accent-hover":`var(--v2-blue-700)`,"v2-border-border-muted":`var(--v2-alpha-dark-8)`,"v2-border-border-base":`var(--v2-alpha-dark-10)`,"v2-border-border-strong":`var(--v2-alpha-dark-20)`,"v2-border-border-inverse":`var(--v2-grey-1000)`,"v2-border-border-focus":`var(--v2-blue-500)`,"v2-overlay-simple-overlay-hover":`var(--v2-alpha-dark-4)`,"v2-overlay-simple-overlay-pressed":`var(--v2-alpha-dark-8)`,"v2-overlay-simple-overlay-contrast-hover":`var(--v2-alpha-light-12)`,"v2-overlay-simple-overlay-contrast-pressed":`var(--v2-alpha-light-24)`,"v2-overlay-simple-overlay-scrim":`var(--v2-alpha-dark-40)`,"v2-overlay-gradient-depth-overlay-depth-top":`var(--v2-alpha-light-100)`,"v2-overlay-gradient-depth-overlay-depth-bot":`var(--v2-alpha-light-0)`,"v2-overlay-simple-tab-active-scrim":`#fafafa00`,"v2-overlay-simple-tab-hover-scrim":`#eeeeee00`,"v2-overlay-simple-tab-scrim":`#fafafa00`,"v2-state-bg-success":`var(--v2-green-100)`,"v2-state-fg-success":`var(--v2-green-800)`,"v2-state-border-success":`var(--v2-green-300)`,"v2-state-bg-warning":`var(--v2-yellow-100)`,"v2-state-fg-warning":`var(--v2-yellow-800)`,"v2-state-border-warning":`var(--v2-yellow-300)`,"v2-state-bg-danger":`var(--v2-red-100)`,"v2-state-fg-danger":`var(--v2-red-800)`,"v2-state-border-danger":`var(--v2-red-300)`,"v2-state-bg-info":`var(--v2-blue-200)`,"v2-state-fg-info":`var(--v2-blue-800)`,"v2-state-border-info":`var(--v2-blue-300)`,"v2-agent-plan-solid":`var(--v2-pink-800)`,"v2-agent-plan-border":`rgba(200, 61, 139, 0.2)`,"v2-agent-plan-background":`rgba(253, 236, 243, 0.1)`,"v2-agent-build-solid":`var(--v2-blue-800)`,"v2-agent-build-border":`rgba(44, 71, 200, 0.1)`,"v2-agent-build-background":`rgba(236, 241, 254, 0.1)`,"v2-agent-explore-solid":`var(--v2-yellow-900)`,"v2-agent-explore-border":`rgba(203, 159, 52, 0.2)`,"v2-agent-explore-background":`rgba(254, 250, 236, 0.1)`,"v2-agent-review-solid":`var(--v2-green-800)`,"v2-agent-writer-solid":`var(--v2-purple-700)`,"v2-avatar-bg-orange":`#ee7330ff`,"v2-avatar-border-orange":`#d16427ff`,"v2-avatar-bg-yellow":`#e7af36ff`,"v2-avatar-border-yellow":`#cb9f34ff`,"v2-avatar-bg-cyan":`#0096b8ff`,"v2-avatar-border-cyan":`#007d9bff`,"v2-avatar-bg-green":`#2eaf5aff`,"v2-avatar-border-green":`#198b43ff`,"v2-avatar-bg-red":`#d92e3cff`,"v2-avatar-border-red":`#b82d35ff`,"v2-avatar-bg-pink":`#e4429eff`,"v2-avatar-border-pink":`#c83d8bff`,"v2-avatar-bg-blue":`#3250dfff`,"v2-avatar-border-blue":`#2c47c8ff`,"v2-avatar-bg-purple":`#623be2ff`,"v2-avatar-border-purple":`#5230c2ff`,"v2-avatar-bg-gray":`#5c5c5cff`,"v2-avatar-border-gray":`#3a3a3aff`,"v2-elevation-raised":`0px 2px 4px 0px var(--v2-alpha-dark-4), 0px 1px 2px -1px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-floating":`0px 8px 16px 0px var(--v2-alpha-dark-4), 0px 4px 8px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-overlay":`0px 16px 32px 0px var(--v2-alpha-dark-4), 0px 8px 16px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-button-neutral":`0px 1px 1.5px 0px var(--v2-alpha-dark-10), 0px 0px 0px 0.5px var(--v2-alpha-dark-14), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-button-contrast":`0px 1px 1.5px 0px var(--v2-alpha-dark-20), 0px 0px 0px 0.5px var(--v2-grey-800), inset 0px 1px 2px 0px var(--v2-alpha-light-14), inset 0px -1px 2px 0px var(--v2-alpha-dark-6), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-elements":`0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)`,"v2-elevation-switch-off":`inset 0px 1px 1px 0px var(--v2-alpha-dark-8), inset 0px 0.5px 0.5px 0px var(--v2-alpha-dark-8), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-10)`,"v2-elevation-switch-on":`inset 0px 2px 2px 0px var(--v2-alpha-dark-10), inset 0px 1px 1px 0px var(--v2-alpha-dark-10), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-20)`,"v2-illustration-illustration-layer-01":`var(--v2-grey-300)`,"v2-illustration-illustration-layer-02":`var(--v2-grey-400)`,"v2-illustration-illustration-layer-03":`var(--v2-grey-500)`,"v2-font-family-code":`var(--font-family-mono)`}},xn={palette:{neutral:`#1f1f1f`,ink:`#f1ece8`,primary:`#fab283`,success:`#12c905`,warning:`#fcd53a`,error:`#fc533a`,info:`#edb2f1`,interactive:`#034cff`,diffAdd:`#c8ffc4`,diffDelete:`#fc533a`},overrides:{"text-strong":`#EDEDED`,"text-base":`#A0A0A0`,"text-weak":`#707070`,"text-weaker":`#505050`,"text-diff-add-base":`var(--v2-state-fg-success)`,"text-diff-delete-base":`var(--v2-state-fg-danger)`,"border-weak-base":`#282828`,"border-weaker-base":`#232323`,"icon-base":`#7E7E7E`,"icon-weak-base":`#343434`,"surface-raised-base":`#232323`,"surface-raised-base-hover":`#282828`,"surface-base":`#1C1C1C`,"surface-base-hover":`#FFFFFF0D`,"surface-interactive-weak":`#0D172B`,"surface-success-base":`#022B00`,"syntax-comment":`var(--v2-text-text-muted)`,"syntax-keyword":`var(--v2-pink-400)`,"syntax-string":`var(--v2-green-400)`,"syntax-primitive":`var(--v2-pink-400)`,"syntax-property":`var(--v2-orange-400)`,"syntax-type":`var(--v2-purple-400)`,"syntax-constant":`#93e9f6`,"syntax-critical":`var(--v2-red-400)`,"syntax-diff-add":`var(--v2-state-fg-success)`,"syntax-diff-delete":`var(--v2-state-fg-danger)`,"syntax-diff-unknown":`#edb2f1`,"surface-critical-base":`#1F0603`},v2Overrides:{"v2-grey-50":`#ffffffff`,"v2-grey-100":`#fafafaff`,"v2-grey-200":`#f2f2f2ff`,"v2-grey-300":`#eeeeeeff`,"v2-grey-400":`#dbdbdbff`,"v2-grey-500":`#aeaeaeff`,"v2-grey-600":`#808080ff`,"v2-grey-700":`#5c5c5cff`,"v2-grey-800":`#3a3a3aff`,"v2-grey-900":`#2e2e2eff`,"v2-grey-1000":`#242424ff`,"v2-grey-1100":`#161616ff`,"v2-grey-1200":`#080808ff`,"v2-red-100":`#fcecebff`,"v2-red-200":`#f6d5d3ff`,"v2-red-300":`#f2bbb7ff`,"v2-red-400":`#f29b96ff`,"v2-red-500":`#f17471ff`,"v2-red-600":`#f1484fff`,"v2-red-700":`#d92e3cff`,"v2-red-800":`#b82d35ff`,"v2-red-900":`#97252bff`,"v2-red-1000":`#7a1f23ff`,"v2-red-1100":`#5f1a1cff`,"v2-red-1200":`#461516ff`,"v2-orange-100":`#fdf2edff`,"v2-orange-200":`#ffe7dcff`,"v2-orange-300":`#ffd8c6ff`,"v2-orange-400":`#ffc1a4ff`,"v2-orange-500":`#ffa478ff`,"v2-orange-600":`#ff8648ff`,"v2-orange-700":`#ee7330ff`,"v2-orange-800":`#d16427ff`,"v2-orange-900":`#b35624ff`,"v2-orange-1000":`#954c27ff`,"v2-orange-1100":`#723d22ff`,"v2-orange-1200":`#5a2c14ff`,"v2-yellow-100":`#fefaecff`,"v2-yellow-200":`#fcefd0ff`,"v2-yellow-300":`#f7e5b5ff`,"v2-yellow-400":`#f3da9bff`,"v2-yellow-500":`#f2cf76ff`,"v2-yellow-600":`#f6c251ff`,"v2-yellow-700":`#e7af36ff`,"v2-yellow-800":`#cb9f34ff`,"v2-yellow-900":`#ac8833ff`,"v2-yellow-1000":`#8e7231ff`,"v2-yellow-1100":`#68552bff`,"v2-yellow-1200":`#4b4025ff`,"v2-green-100":`#e7f9eaff`,"v2-green-200":`#d0f0d5ff`,"v2-green-300":`#b8e9c1ff`,"v2-green-400":`#96e3a6ff`,"v2-green-500":`#6bd586ff`,"v2-green-600":`#49c970ff`,"v2-green-700":`#2eaf5aff`,"v2-green-800":`#198b43ff`,"v2-green-900":`#1d783cff`,"v2-green-1000":`#196130ff`,"v2-green-1100":`#164c26ff`,"v2-green-1200":`#14361dff`,"v2-cyan-100":`#e2f7fbff`,"v2-cyan-200":`#c4edf4ff`,"v2-cyan-300":`#a3e4efff`,"v2-cyan-400":`#65d9ebff`,"v2-cyan-500":`#00c5dfff`,"v2-cyan-600":`#00abcfff`,"v2-cyan-700":`#0096b8ff`,"v2-cyan-800":`#007d9bff`,"v2-cyan-900":`#006c85ff`,"v2-cyan-1000":`#005a6eff`,"v2-cyan-1100":`#004756ff`,"v2-cyan-1200":`#00353fff`,"v2-blue-100":`#f5f8ffff`,"v2-blue-200":`#ecf1feff`,"v2-blue-300":`#c3d4fdff`,"v2-blue-400":`#a2bcffff`,"v2-blue-500":`#7698fdff`,"v2-blue-600":`#3b5cf6ff`,"v2-blue-700":`#0b34f4ff`,"v2-blue-800":`#3250dfff`,"v2-blue-900":`#2c47c8ff`,"v2-blue-1000":`#263fa9ff`,"v2-blue-1100":`#22388fff`,"v2-blue-1200":`#021945ff`,"v2-purple-100":`#ebecfeff`,"v2-purple-200":`#d5d5fcff`,"v2-purple-300":`#b9b8f5ff`,"v2-purple-400":`#9e99f7ff`,"v2-purple-500":`#8271f8ff`,"v2-purple-600":`#7152f4ff`,"v2-purple-700":`#623be2ff`,"v2-purple-800":`#5230c2ff`,"v2-purple-900":`#442aa1ff`,"v2-purple-1000":`#361f83ff`,"v2-purple-1100":`#2b1b6aff`,"v2-purple-1200":`#221358ff`,"v2-pink-100":`#fdecf3ff`,"v2-pink-200":`#f7d5e4ff`,"v2-pink-300":`#fabcd8ff`,"v2-pink-400":`#f799c6ff`,"v2-pink-500":`#f26cb2ff`,"v2-pink-600":`#f64aabff`,"v2-pink-700":`#e4429eff`,"v2-pink-800":`#c83d8bff`,"v2-pink-900":`#aa3576ff`,"v2-pink-1000":`#8c2d61ff`,"v2-pink-1100":`#6f284fff`,"v2-pink-1200":`#5c1d3fff`,"v2-background-bg-base":`var(--v2-grey-1100)`,"v2-background-bg-deep":`var(--v2-grey-1200)`,"v2-background-bg-layer-01":`var(--v2-grey-1000)`,"v2-background-bg-layer-02":`var(--v2-grey-900)`,"v2-background-bg-layer-03":`var(--v2-grey-800)`,"v2-background-bg-layer-04":`var(--v2-grey-700)`,"v2-background-bg-inverse":`var(--v2-grey-50)`,"v2-background-bg-contrast":`var(--v2-grey-700)`,"v2-background-bg-icon-button-contrast":`var(--v2-grey-400)`,"v2-background-bg-button-neutral":`var(--v2-alpha-light-6)`,"v2-background-bg-accent":`var(--v2-blue-600)`,"v2-background-bg-code-path":`var(--v2-cyan-1200)`,"v2-text-text-base":`var(--v2-grey-100)`,"v2-text-text-muted":`var(--v2-grey-500)`,"v2-text-text-faint":`var(--v2-grey-600)`,"v2-text-text-inverse":`var(--v2-grey-1100)`,"v2-text-text-contrast":`var(--v2-grey-50)`,"v2-text-text-accent":`var(--v2-blue-400)`,"v2-text-text-accent-hover":`var(--v2-blue-300)`,"v2-text-text-code-accent":`var(--v2-blue-400)`,"v2-text-text-code-path":`var(--v2-blue-300)`,"v2-icon-icon-base":`var(--v2-grey-400)`,"v2-icon-icon-muted":`var(--v2-grey-600)`,"v2-icon-icon-faint":`var(--v2-grey-700)`,"v2-icon-icon-inverse":`var(--v2-grey-1100)`,"v2-icon-icon-contrast":`var(--v2-grey-100)`,"v2-icon-icon-accent":`var(--v2-blue-400)`,"v2-icon-icon-accent-hover":`var(--v2-blue-300)`,"v2-border-border-muted":`var(--v2-alpha-light-8)`,"v2-border-border-base":`var(--v2-alpha-light-10)`,"v2-border-border-strong":`var(--v2-alpha-light-20)`,"v2-border-border-inverse":`var(--v2-grey-100)`,"v2-border-border-focus":`var(--v2-blue-500)`,"v2-overlay-simple-overlay-hover":`var(--v2-alpha-light-6)`,"v2-overlay-simple-overlay-pressed":`var(--v2-alpha-light-10)`,"v2-overlay-simple-overlay-contrast-hover":`var(--v2-alpha-dark-24)`,"v2-overlay-simple-overlay-contrast-pressed":`var(--v2-alpha-dark-40)`,"v2-overlay-simple-overlay-scrim":`var(--v2-alpha-dark-60)`,"v2-overlay-gradient-depth-overlay-depth-top":`var(--v2-alpha-light-100)`,"v2-overlay-gradient-depth-overlay-depth-bot":`var(--v2-alpha-light-0)`,"v2-overlay-simple-tab-active-scrim":`#24242400`,"v2-overlay-simple-tab-hover-scrim":`#3a3a3a00`,"v2-overlay-simple-tab-scrim":`#08080800`,"v2-state-bg-success":`var(--v2-green-1200)`,"v2-state-fg-success":`var(--v2-green-500)`,"v2-state-border-success":`var(--v2-green-900)`,"v2-state-bg-warning":`var(--v2-yellow-1200)`,"v2-state-fg-warning":`var(--v2-yellow-500)`,"v2-state-border-warning":`var(--v2-yellow-900)`,"v2-state-bg-danger":`var(--v2-red-1200)`,"v2-state-fg-danger":`var(--v2-red-500)`,"v2-state-border-danger":`var(--v2-red-900)`,"v2-state-bg-info":`var(--v2-blue-1200)`,"v2-state-fg-info":`var(--v2-blue-500)`,"v2-state-border-info":`var(--v2-blue-900)`,"v2-agent-plan-solid":`var(--v2-pink-400)`,"v2-agent-plan-border":`rgba(247, 153, 198, 0.2)`,"v2-agent-plan-background":`rgba(170, 53, 118, 0.05)`,"v2-agent-build-solid":`var(--v2-blue-300)`,"v2-agent-build-border":`rgba(162, 188, 255, 0.2)`,"v2-agent-build-background":`rgba(38, 63, 169, 0.05)`,"v2-agent-explore-solid":`var(--v2-yellow-300)`,"v2-agent-explore-border":`rgba(243, 218, 155, 0.2)`,"v2-agent-explore-background":`rgba(172, 136, 51, 0.05)`,"v2-agent-review-solid":`var(--v2-green-300)`,"v2-agent-writer-solid":`var(--v2-purple-400)`,"v2-avatar-bg-orange":`#723d22ff`,"v2-avatar-border-orange":`#ff8648ff`,"v2-avatar-bg-yellow":`#68552bff`,"v2-avatar-border-yellow":`#e7af36ff`,"v2-avatar-bg-cyan":`#005a6eff`,"v2-avatar-border-cyan":`#0096b8ff`,"v2-avatar-bg-green":`#196130ff`,"v2-avatar-border-green":`#49c970ff`,"v2-avatar-bg-red":`#7a1f23ff`,"v2-avatar-border-red":`#d92e3cff`,"v2-avatar-bg-pink":`#8c2d61ff`,"v2-avatar-border-pink":`#e4429eff`,"v2-avatar-bg-blue":`#263fa9ff`,"v2-avatar-border-blue":`#7698fdff`,"v2-avatar-bg-purple":`#361f83ff`,"v2-avatar-border-purple":`#7152f4ff`,"v2-avatar-bg-gray":`#5c5c5cff`,"v2-avatar-border-gray":`#aeaeaeff`,"v2-elevation-raised":`0px 2px 4px 0px var(--v2-alpha-dark-30), 0px 1px 2px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-floating":`0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 4px 8px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-overlay":`0px 16px 32px 0px var(--v2-alpha-dark-30), 0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-button-neutral":`0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-20), 0px -0.5px 0px 0px var(--v2-alpha-light-10)`,"v2-elevation-button-contrast":`0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-40), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0px var(--v2-alpha-light-0), 0px -0.5px 0px 0px var(--v2-alpha-light-30)`,"v2-elevation-elements":`0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)`,"v2-elevation-switch-off":`inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)`,"v2-elevation-switch-on":`inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)`,"v2-illustration-illustration-layer-01":`var(--v2-grey-900)`,"v2-illustration-illustration-layer-02":`var(--v2-grey-800)`,"v2-illustration-illustration-layer-03":`var(--v2-grey-700)`}},Sn={$schema:_n,name:vn,id:yn,light:bn,dark:xn};function Cn(e,t,n){return Math.max(t,Math.min(n,e))}function wn(e){return(e%360+360)%360}function Tn(e){let t=e.replace(`#`,``),n=t.length===3||t.length===4?t.split(``).map(e=>e+e).join(``):t,r=n.length===8?n.slice(0,6):n,i=parseInt(r,16);return{r:(i>>16&255)/255,g:(i>>8&255)/255,b:(i&255)/255}}function En(e,t,n){let r=e=>{let t=Cn(e,0,1);return Math.round(t*255).toString(16).padStart(2,`0`)};return`#${r(e)}${r(t)}${r(n)}`}function Dn(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}function On(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function kn(e,t,n){let r=On(e),i=On(t),a=On(n),o=.4122214708*r+.5363325363*i+.0514459929*a,s=.2119034982*r+.6806995451*i+.1073969566*a,c=.0883024619*r+.2817188376*i+.6299787005*a,l=Math.cbrt(o),u=Math.cbrt(s),d=Math.cbrt(c),f=.2104542553*l+.793617785*u-.0040720468*d,p=1.9779984951*l-2.428592205*u+.4505937099*d,m=.0259040371*l+.7827717662*u-.808675766*d,h=Math.sqrt(p*p+m*m),g=180/Math.PI*Math.atan2(m,p);return g<0&&(g+=360),{l:f,c:h,h:g}}function An(e){let{l:t,c:n,h:r}=e,i=n*Math.cos(r*Math.PI/180),a=n*Math.sin(r*Math.PI/180),o=t+.3963377774*i+.2158037573*a,s=t-.1055613458*i-.0638541728*a,c=t-.0894841775*i-1.291485548*a,l=o*o*o,u=s*s*s,d=c*c*c,f=4.0767416621*l-3.3077115913*u+.2309699292*d,p=-1.2684380046*l+2.6097574011*u-.3413193965*d,m=-.0041960863*l-.7034186147*u+1.707614701*d;return{r:Dn(f),g:Dn(p),b:Dn(m)}}function jn(e){let{r:t,g:n,b:r}=Tn(e);return kn(t,n,r)}function Mn(e){let t={l:Cn(e.l,0,1),c:Math.max(0,e.c),h:wn(e.h)},n=An(t);if(n.r>=0&&n.r<=1&&n.g>=0&&n.g<=1&&n.b>=0&&n.b<=1)return t;let r=t.c;for(let e=0;e<24;e++){r*=.9;let e={...t,c:r},n=An(e);if(n.r>=0&&n.r<=1&&n.g>=0&&n.g<=1&&n.b>=0&&n.b<=1)return e}return{...t,c:0}}function Nn(e){let{r:t,g:n,b:r}=An(Mn(e));return En(t,n,r)}function Pn(e,t){let n=jn(e),r=[],i=t?[.118,.138,.167,.202,.246,.304,.378,.468,Cn(n.l*.825,.53,.705),Cn(n.l*.89,.61,.79),Cn(n.l+.033,.868,.943),.984]:[.993,.983,.962,.936,.906,.866,.811,.74,n.l,Math.max(0,n.l-.036),.49,.27],a=t?[.52,.68,.86,1.02,1.14,1.24,1.36,1.48,1.56,1.64,1.62,1.15]:[.12,.24,.46,.68,.84,.98,1.08,1.16,1.22,1.26,1.18,.98];for(let e=0;e<12;e++)r.push(Nn({l:i[e],c:n.c*a[e],h:n.h}));return r}function Fn(e,t,n){if(n){let r=jn(e),i=e=>Nn({l:r.l+(1-r.l)*e,c:r.c*Math.max(0,1-e),h:r.h}),a=t?(e=>Nn({l:r.l*(1-e),c:r.c*Math.max(0,1-e*(t?.12:.3)),h:r.h}))(Cn(.19+Math.max(0,r.l-.12)*.33+r.c*1.95,.17,.27)):r.l<.82?i(.86):i(Cn(.1+r.c*3.2+Math.max(0,.95-r.l)*.35,.1,.28));return(t?[0,.018,.039,.064,.097,.143,.212,.31,.46,.649,.845,.984]:[0,.022,.042,.068,.102,.146,.208,.296,.432,.61,.81,.965]).map(e=>In(a,n,e))}let r=jn(e),i=[],a=Math.min(r.c,t?.068:.04),o=t?[.138,.156,.178,.202,.232,.272,.326,.404,Cn(r.l*.83,.43,.55),.596,.719,.956]:[.991,.979,.964,.946,.931,.913,.891,.83,r.l,.617,.542,.205];for(let e=0;e<12;e++)i.push(Nn({l:o[e],c:a,h:r.h}));return i}function In(e,t,n){let r=jn(e),i=jn(t),a=((i.h-r.h)%360+540)%360-180;return Nn({l:r.l+(i.l-r.l)*n,c:r.c+(i.c-r.c)*n,h:r.h+a*n})}function Ln(e,t){let n=jn(e);return Nn({l:n.l+(t.l??0),c:n.c*(t.c??1),h:n.h+(t.h??0)})}function Rn(e,t){let n=e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4,r=e=>{let{r:t,g:r,b:i}=Tn(e);return .2126*n(t)+.587*n(r)+.0722*n(i)},i=r(e),a=r(t),o=Math.max(i,a),s=Math.min(i,a);return(o+.05)/(s+.05)}function zn(e,t,n){let r=Tn(e),i=Tn(t);return En(r.r*n+i.r*(1-n),r.g*n+i.g*(1-n),r.b*n+i.b*(1-n))}function Bn(e,t){let{r:n,g:r,b:i}=Tn(e);return`rgba(${Math.round(n*255)}, ${Math.round(r*255)}, ${Math.round(i*255)}, ${t})`}function Vn(e,t){let n=Hn(e),{overrides:r={}}=e,i=Fn(n.neutral,t,n.ink),a=Pn(n.primary,t),o=Pn(n.accent,t),s=Pn(n.success,t),c=Pn(n.warning,t),l=Pn(n.error,t),u=Pn(n.info,t),d=Pn(n.interactive,t),f=Pn(Ln(n.warning,t?{h:-16,l:-.058,c:1.14}:{h:-22,l:-.082,c:.94}),t),p=Pn(Ln(n.interactive,{h:-12,l:.128,c:1.12}),t),m=Pn(n.diffAdd??Ln(n.success,{c:t?.7:.55,l:t?-.18:.14}),t),h=Pn(n.diffDelete??Ln(n.error,{c:t?.82:.7,l:t?-.08:.08}),t),g=n.ink??n.neutral,_=n.compact?jn(g):void 0,v=_?Ln(g,{l:t?Math.max(0,.88-_.l)*.4:-Math.max(0,_.l-.18)*.24,c:t?1.04:1.02}):void 0,y=r[`background-base`],b=Wn(y),x=!!y&&!b,S=(e,n)=>{let r=jn(e);return Ln(t&&r.l>.84?Ln(e,{c:1.18}):n[10],{l:t?.034:-.024,c:t?1.3:1.18})},C=()=>{if(!n.compact)return t?`#ffba92`:`#FF8C00`;let e=jn(n.warning).h,r=jn(n.diffDelete??n.error).h;return Math.abs(((r-e)%360+540)%360-180)<48?t?`#ffba92`:`#FF8C00`:S(n.warning,c)},w=(e,t)=>({base:E(e,t.base),weak:E(e,t.weak),weaker:E(e,t.weaker),strong:E(e,t.strong),stronger:E(e,t.stronger)}),T=b??i[0],E=(e,t)=>x?Bn(e,t):zn(e,T,t),D=(e,r)=>E(g,t?Math.min(1,r+.024+(n.compact?.08:0)):Math.min(1,e+.024)),O=w(t?Ln(n.interactive,{c:.55,l:0}):Ln(n.interactive,{c:.45,l:.08}),t?{base:.14,weak:.08,weaker:.18,strong:.26,stronger:.42}:{base:.12,weak:.08,weaker:.16,strong:.24,stronger:.36}),k=Un(i,t),ee=a[8],A=a[9],te=d[t?6:4],j=d[t?7:5],M=d[t?5:3],N=s[t?6:4],ne=s[t?5:3],re=s[10],ie=c[t?6:4],P=c[t?5:3],ae=c[10],oe=l[t?6:4],F=l[t?5:3],se=l[10],ce=u[t?6:4],le=u[t?5:3],ue=u[10],de=e=>{let t=Tn(e),n=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;return .2126*n(t.r)+.7152*n(t.g)+.0722*n(t.b)},fe=(e,t)=>{let n=de(e),r=de(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)},I=e=>{let t=`#ffffff`,n=`#000000`;return fe(t,e)>fe(n,e)?t:n},L={};L[`background-base`]=i[0],L[`background-weak`]=i[2],L[`background-strong`]=i[0],L[`background-stronger`]=t?i[1]:`#fcfcfc`,L[`surface-base`]=k[1],L.base=k[1],L[`surface-base-hover`]=k[2],L[`surface-base-active`]=k[2],L[`surface-base-interactive-active`]=Bn(d[2],.3),L.base2=k[1],L.base3=k[1],L[`surface-inset-base`]=k[1],L[`surface-inset-base-hover`]=k[2],L[`surface-inset-strong`]=t?Bn(i[0],.5):Bn(i[3],.09),L[`surface-inset-strong-hover`]=L[`surface-inset-strong`],L[`surface-raised-base`]=k[0],L[`surface-float-base`]=t?i[1]:i[11],L[`surface-float-base-hover`]=t?i[2]:i[10],L[`surface-raised-base-hover`]=k[1],L[`surface-raised-base-active`]=k[2],L[`surface-raised-strong`]=t?k[3]:i[0],L[`surface-raised-strong-hover`]=t?k[5]:`#ffffff`,L[`surface-raised-stronger`]=t?k[5]:`#ffffff`,L[`surface-raised-stronger-hover`]=t?k[6]:`#ffffff`,L[`surface-weak`]=k[2],L[`surface-weaker`]=k[3],L[`surface-strong`]=t?k[6]:`#ffffff`,L[`surface-raised-stronger-non-alpha`]=t?i[2]:`#ffffff`,L[`surface-brand-base`]=ee,L[`surface-brand-hover`]=A,L[`surface-interactive-base`]=te,L[`surface-interactive-hover`]=j,L[`surface-interactive-weak`]=M,L[`surface-interactive-weak-hover`]=te,L[`surface-success-base`]=N,L[`surface-success-weak`]=ne,L[`surface-success-strong`]=re,L[`surface-warning-base`]=ie,L[`surface-warning-weak`]=P,L[`surface-warning-strong`]=ae,L[`surface-critical-base`]=oe,L[`surface-critical-weak`]=F,L[`surface-critical-strong`]=se,L[`surface-info-base`]=ce,L[`surface-info-weak`]=le,L[`surface-info-strong`]=ue,L[`surface-diff-unchanged-base`]=t?i[0]:`#ffffff00`,L[`surface-diff-skip-base`]=t?k[0]:i[1],L[`surface-diff-hidden-base`]=O.base,L[`surface-diff-hidden-weak`]=O.weak,L[`surface-diff-hidden-weaker`]=O.weaker,L[`surface-diff-hidden-strong`]=O.strong,L[`surface-diff-hidden-stronger`]=O.stronger,L[`surface-diff-add-base`]=m[2],L[`surface-diff-add-weak`]=m[t?3:1],L[`surface-diff-add-weaker`]=m[t?2:0],L[`surface-diff-add-strong`]=m[4],L[`surface-diff-add-stronger`]=m[t?10:8],L[`surface-diff-delete-base`]=h[2],L[`surface-diff-delete-weak`]=h[t?3:1],L[`surface-diff-delete-weaker`]=h[t?2:0],L[`surface-diff-delete-strong`]=h[t?4:5],L[`surface-diff-delete-stronger`]=h[t?10:8],L[`input-base`]=t?i[1]:i[0],L[`input-hover`]=t?i[2]:i[1],L[`input-active`]=t?d[6]:d[0],L[`input-selected`]=t?d[7]:d[3],L[`input-focus`]=t?d[6]:d[0],L[`input-disabled`]=i[3],L[`text-base`]=n.compact?v:i[10],L[`text-weak`]=n.compact?Ln(v,{l:t?-.11:.11,c:.9}):i[8],L[`text-weaker`]=n.compact?Ln(v,{l:t?-.2:.21,c:t?.78:.72}):i[7],L[`text-strong`]=n.compact?t?zn(`#ffffff`,v,.9):Ln(v,{l:-.07,c:1.04}):i[11],L[`text-invert-base`]=t?i[10]:i[1],L[`text-invert-weak`]=t?i[8]:i[2],L[`text-invert-weaker`]=t?i[7]:i[3],L[`text-invert-strong`]=t?i[11]:i[0],L[`text-interactive-base`]=d[t?10:9],L[`text-on-brand-base`]=I(ee),L[`text-on-interactive-base`]=I(te),L[`text-on-interactive-weak`]=I(te),L[`text-on-success-base`]=I(N),L[`text-on-critical-base`]=I(oe),L[`text-on-critical-weak`]=I(oe),L[`text-on-critical-strong`]=I(se),L[`text-on-warning-base`]=I(ie),L[`text-on-info-base`]=I(ce),L[`text-diff-add-base`]=m[10],L[`text-diff-delete-base`]=h[9],L[`text-diff-delete-strong`]=h[11],L[`text-diff-add-strong`]=m[t?7:11],L[`text-on-info-weak`]=I(ce),L[`text-on-info-strong`]=I(ue),L[`text-on-warning-weak`]=I(ie),L[`text-on-warning-strong`]=I(ae),L[`text-on-success-weak`]=I(N),L[`text-on-success-strong`]=I(re),L[`text-on-brand-weak`]=I(ee),L[`text-on-brand-weaker`]=I(ee),L[`text-on-brand-strong`]=I(A),L[`button-primary-base`]=i[11],L[`button-secondary-base`]=t?i[2]:i[0],L[`button-secondary-hover`]=t?i[3]:i[1],L[`button-ghost-hover`]=k[1],L[`button-ghost-hover2`]=k[2],L[`border-base`]=n.compact?D(.22,.16):k[6],L[`border-hover`]=n.compact?D(.28,.2):k[7],L[`border-active`]=n.compact?D(.34,.24):k[8],L[`border-selected`]=Bn(d[8],t?.9:.99),L[`border-disabled`]=n.compact?D(.18,.12):k[7],L[`border-focus`]=n.compact?D(.34,.24):k[8],L[`border-weak-base`]=n.compact?D(.1,.08):k[t?5:4],L[`border-strong-base`]=n.compact?D(.34,.24):k[t?7:6],L[`border-strong-hover`]=n.compact?D(.4,.28):k[7],L[`border-strong-active`]=n.compact?D(.46,.32):k[t?7:6],L[`border-strong-selected`]=Bn(d[5],.6),L[`border-strong-disabled`]=n.compact?D(.14,.1):k[5],L[`border-strong-focus`]=n.compact?D(.46,.32):k[t?7:6],L[`border-weak-hover`]=n.compact?D(.16,.12):k[t?6:5],L[`border-weak-active`]=n.compact?D(.22,.16):k[t?7:6],L[`border-weak-selected`]=Bn(d[4],t?.6:.5),L[`border-weak-disabled`]=n.compact?D(.08,.06):k[5],L[`border-weak-focus`]=n.compact?D(.22,.16):k[t?7:6],L[`border-weaker-base`]=n.compact?D(.06,.04):k[2],L[`border-interactive-base`]=d[6],L[`border-interactive-hover`]=d[7],L[`border-interactive-active`]=d[8],L[`border-interactive-selected`]=d[8],L[`border-interactive-disabled`]=i[7],L[`border-interactive-focus`]=d[8],L[`border-success-base`]=s[6],L[`border-success-hover`]=s[7],L[`border-success-selected`]=s[8],L[`border-warning-base`]=c[6],L[`border-warning-hover`]=c[7],L[`border-warning-selected`]=c[8],L[`border-critical-base`]=l[6],L[`border-critical-hover`]=l[7],L[`border-critical-selected`]=l[8],L[`border-info-base`]=u[6],L[`border-info-hover`]=u[7],L[`border-info-selected`]=u[8],L[`border-color`]=`#ffffff`,L[`icon-base`]=n.compact&&!t?L[`text-weak`]:i[t?9:8],L[`icon-hover`]=n.compact&&!t?L[`text-base`]:i[10],L[`icon-active`]=n.compact&&!t?L[`text-strong`]:i[11],L[`icon-selected`]=n.compact&&!t?L[`text-strong`]:i[11],L[`icon-disabled`]=i[t?6:7],L[`icon-focus`]=n.compact&&!t?L[`text-strong`]:i[11],L[`icon-invert-base`]=t?i[0]:`#ffffff`,L[`icon-weak-base`]=i[t?5:6],L[`icon-weak-hover`]=i[t?11:7],L[`icon-weak-active`]=i[8],L[`icon-weak-selected`]=i[t?8:9],L[`icon-weak-disabled`]=i[t?3:5],L[`icon-weak-focus`]=i[8],L[`icon-strong-base`]=i[11],L[`icon-strong-hover`]=t?`#f6f3f3`:`#151313`,L[`icon-strong-active`]=t?`#fcfcfc`:`#020202`,L[`icon-strong-selected`]=t?`#fdfcfc`:`#020202`,L[`icon-strong-disabled`]=i[7],L[`icon-strong-focus`]=t?`#fdfcfc`:`#020202`,L[`icon-brand-base`]=t?`#ffffff`:i[11],L[`icon-interactive-base`]=d[8],L[`icon-success-base`]=s[t?8:6],L[`icon-success-hover`]=s[9],L[`icon-success-active`]=s[10],L[`icon-warning-base`]=f[t?8:6],L[`icon-warning-hover`]=f[9],L[`icon-warning-active`]=f[10],L[`icon-critical-base`]=l[t?8:9],L[`icon-critical-hover`]=l[9],L[`icon-critical-active`]=l[10],L[`icon-info-base`]=u[t?8:6],L[`icon-info-hover`]=u[t?9:7],L[`icon-info-active`]=u[10],L[`icon-on-brand-base`]=I(ee),L[`icon-on-brand-hover`]=I(A),L[`icon-on-brand-selected`]=I(A),L[`icon-on-interactive-base`]=I(te),L[`icon-agent-plan-base`]=u[8],L[`icon-agent-docs-base`]=f[8],L[`icon-agent-ask-base`]=p[8],L[`icon-agent-build-base`]=d[t?10:8],L[`icon-on-success-base`]=I(N),L[`icon-on-success-hover`]=I(re),L[`icon-on-success-selected`]=I(re),L[`icon-on-warning-base`]=I(ie),L[`icon-on-warning-hover`]=I(ae),L[`icon-on-warning-selected`]=I(ae),L[`icon-on-critical-base`]=I(oe),L[`icon-on-critical-hover`]=I(se),L[`icon-on-critical-selected`]=I(se),L[`icon-on-info-base`]=I(ce),L[`icon-on-info-hover`]=I(ue),L[`icon-on-info-selected`]=I(ue),L[`icon-diff-add-base`]=m[10],L[`icon-diff-add-hover`]=m[t?9:11],L[`icon-diff-add-active`]=m[t?10:11],L[`icon-diff-delete-base`]=h[9],L[`icon-diff-delete-hover`]=h[10],L[`icon-diff-modified-base`]=C(),n.compact&&(L[`syntax-comment`]=`var(--text-weak)`,L[`syntax-regexp`]=`var(--text-base)`,L[`syntax-string`]=S(n.success,s),L[`syntax-keyword`]=S(n.accent,o),L[`syntax-primitive`]=S(n.primary,a),L[`syntax-operator`]=t?`var(--text-weak)`:`var(--text-base)`,L[`syntax-variable`]=`var(--text-strong)`,L[`syntax-property`]=S(n.info,u),L[`syntax-type`]=S(n.warning,c),L[`syntax-constant`]=S(n.accent,o),L[`syntax-punctuation`]=t?`var(--text-weak)`:`var(--text-base)`,L[`syntax-object`]=`var(--text-strong)`,L[`syntax-success`]=s[10],L[`syntax-warning`]=f[10],L[`syntax-critical`]=l[10],L[`syntax-info`]=S(n.info,u),L[`syntax-diff-add`]=m[10],L[`syntax-diff-delete`]=h[10],L[`syntax-diff-unknown`]=`#ff0000`,L[`markdown-heading`]=S(n.primary,a),L[`markdown-text`]=L[`text-base`],L[`markdown-link`]=S(n.interactive,d),L[`markdown-link-text`]=S(n.info,u),L[`markdown-code`]=S(n.success,s),L[`markdown-block-quote`]=S(n.warning,c),L[`markdown-emph`]=S(n.warning,c),L[`markdown-strong`]=S(n.accent,o),L[`markdown-horizontal-rule`]=L[`border-base`],L[`markdown-list-item`]=S(n.interactive,d),L[`markdown-list-enumeration`]=S(n.info,u),L[`markdown-image`]=S(n.interactive,d),L[`markdown-image-text`]=S(n.info,u),L[`markdown-code-block`]=L[`text-base`]),n.compact||(L[`syntax-comment`]=`var(--text-weak)`,L[`syntax-regexp`]=`var(--text-base)`,L[`syntax-string`]=t?`#00ceb9`:`#006656`,L[`syntax-keyword`]=`var(--text-weak)`,L[`syntax-primitive`]=t?`#ffba92`:`#fb4804`,L[`syntax-operator`]=t?`var(--text-weak)`:`var(--text-base)`,L[`syntax-variable`]=`var(--text-strong)`,L[`syntax-property`]=t?`#ff9ae2`:`#ed6dc8`,L[`syntax-type`]=t?`#ecf58c`:`#596600`,L[`syntax-constant`]=t?`#93e9f6`:`#007b80`,L[`syntax-punctuation`]=t?`var(--text-weak)`:`var(--text-base)`,L[`syntax-object`]=`var(--text-strong)`,L[`syntax-success`]=s[10],L[`syntax-warning`]=f[10],L[`syntax-critical`]=l[10],L[`syntax-info`]=t?`#93e9f6`:`#0092a8`,L[`syntax-diff-add`]=m[10],L[`syntax-diff-delete`]=h[10],L[`syntax-diff-unknown`]=`#ff0000`,L[`markdown-heading`]=t?`#9d7cd8`:`#d68c27`,L[`markdown-text`]=t?`#eeeeee`:`#1a1a1a`,L[`markdown-link`]=t?`#fab283`:`#3b7dd8`,L[`markdown-link-text`]=t?`#56b6c2`:`#318795`,L[`markdown-code`]=t?`#7fd88f`:`#3d9a57`,L[`markdown-block-quote`]=t?`#e5c07b`:`#b0851f`,L[`markdown-emph`]=t?`#e5c07b`:`#b0851f`,L[`markdown-strong`]=t?`#f5a742`:`#d68c27`,L[`markdown-horizontal-rule`]=t?`#808080`:`#8a8a8a`,L[`markdown-list-item`]=t?`#fab283`:`#3b7dd8`,L[`markdown-list-enumeration`]=t?`#56b6c2`:`#318795`,L[`markdown-image`]=t?`#fab283`:`#3b7dd8`,L[`markdown-image-text`]=t?`#56b6c2`:`#318795`,L[`markdown-code-block`]=t?`#eeeeee`:`#1a1a1a`),L[`avatar-background-pink`]=t?`#501b3f`:`#feeef8`,L[`avatar-background-mint`]=t?`#033a34`:`#e1fbf4`,L[`avatar-background-orange`]=t?`#5f2a06`:`#fff1e7`,L[`avatar-background-purple`]=t?`#432155`:`#f9f1fe`,L[`avatar-background-cyan`]=t?`#0f3058`:`#e7f9fb`,L[`avatar-background-lime`]=t?`#2b3711`:`#eefadc`,L[`avatar-text-pink`]=t?`#e34ba9`:`#cd1d8d`,L[`avatar-text-mint`]=t?`#95f3d9`:`#147d6f`,L[`avatar-text-orange`]=t?`#ff802b`:`#ed5f00`,L[`avatar-text-purple`]=t?`#9d5bd2`:`#8445bc`,L[`avatar-text-cyan`]=t?`#369eff`:`#0894b3`,L[`avatar-text-lime`]=t?`#c4f042`:`#5d770d`;for(let[e,t]of Object.entries(r))L[e]=t;if(n.compact&&`text-weak`in r&&!(`text-weaker`in r)){let e=L[`text-weak`];L[`text-weaker`]=e.startsWith(`#`)?Ln(e,{l:t?-.12:.12,c:.75}):e}return n.compact&&(`markdown-text`in r||(L[`markdown-text`]=L[`text-base`]),`markdown-code-block`in r||(L[`markdown-code-block`]=L[`text-base`])),`text-stronger`in r||(L[`text-stronger`]=L[`text-strong`]),L}function Hn(e){let t=e;if(t.palette&&t.seeds)throw Error("Theme variant cannot define both `palette` and `seeds`");if(e.palette)return{compact:!0,neutral:e.palette.neutral,ink:e.palette.ink,primary:e.palette.primary,accent:e.palette.accent??e.palette.info,success:e.palette.success,warning:e.palette.warning,error:e.palette.error,info:e.palette.info,interactive:e.palette.interactive??e.palette.primary,diffAdd:e.palette.diffAdd,diffDelete:e.palette.diffDelete};if(e.seeds)return{compact:!1,neutral:e.seeds.neutral,ink:void 0,primary:e.seeds.primary,accent:e.seeds.info,success:e.seeds.success,warning:e.seeds.warning,error:e.seeds.error,info:e.seeds.info,interactive:e.seeds.interactive,diffAdd:e.seeds.diffAdd,diffDelete:e.seeds.diffDelete};throw Error("Theme variant requires `palette` or `seeds`")}function Un(e,t){return(t?[.038,.066,.1,.142,.19,.252,.334,.446,.58,.718,.854,.985]:[.03,.06,.1,.145,.2,.265,.35,.47,.61,.74,.86,.97]).map(t=>zn(e[11],e[0],t))}function Wn(e){if(e?.startsWith(`#`))return e}function Gn(e){return Object.entries(e).map(([e,t])=>`--${e}: ${t};`).join(`
3
3
  `)}var Kn=`#ffffffff`,qn={"v2-avatar-fg":Kn,"v2-avatar-bg-orange":`#ee7330ff`,"v2-avatar-border-orange":`#d16427ff`,"v2-avatar-bg-yellow":`#e7af36ff`,"v2-avatar-border-yellow":`#cb9f34ff`,"v2-avatar-bg-cyan":`#0096b8ff`,"v2-avatar-border-cyan":`#007d9bff`,"v2-avatar-bg-green":`#2eaf5aff`,"v2-avatar-border-green":`#198b43ff`,"v2-avatar-bg-red":`#d92e3cff`,"v2-avatar-border-red":`#b82d35ff`,"v2-avatar-bg-pink":`#e4429eff`,"v2-avatar-border-pink":`#c83d8bff`,"v2-avatar-bg-blue":`#3250dfff`,"v2-avatar-border-blue":`#2c47c8ff`,"v2-avatar-bg-purple":`#623be2ff`,"v2-avatar-border-purple":`#5230c2ff`,"v2-avatar-bg-gray":`#5c5c5cff`,"v2-avatar-border-gray":`#3a3a3aff`},Jn={"v2-avatar-fg":Kn,"v2-avatar-bg-orange":`#723d22ff`,"v2-avatar-border-orange":`#ff8648ff`,"v2-avatar-bg-yellow":`#68552bff`,"v2-avatar-border-yellow":`#e7af36ff`,"v2-avatar-bg-cyan":`#005a6eff`,"v2-avatar-border-cyan":`#0096b8ff`,"v2-avatar-bg-green":`#196130ff`,"v2-avatar-border-green":`#49c970ff`,"v2-avatar-bg-red":`#7a1f23ff`,"v2-avatar-border-red":`#d92e3cff`,"v2-avatar-bg-pink":`#8c2d61ff`,"v2-avatar-border-pink":`#e4429eff`,"v2-avatar-bg-blue":`#263fa9ff`,"v2-avatar-border-blue":`#7698fdff`,"v2-avatar-bg-purple":`#361f83ff`,"v2-avatar-border-purple":`#7152f4ff`,"v2-avatar-bg-gray":`#5c5c5cff`,"v2-avatar-border-gray":`#aeaeaeff`},J=e=>`var(--${e})`,Yn={"v2-agent-plan-solid":J(`v2-pink-800`),"v2-agent-plan-border":`rgba(200, 61, 139, 0.20)`,"v2-agent-plan-background":`rgba(253, 236, 243, 0.10)`,"v2-agent-build-solid":J(`v2-blue-800`),"v2-agent-build-border":`rgba(44, 71, 200, 0.20)`,"v2-agent-build-background":`rgba(236, 241, 254, 0.10)`,"v2-agent-explore-solid":J(`v2-yellow-900`),"v2-agent-explore-border":`rgba(203, 159, 52, 0.20)`,"v2-agent-explore-background":`rgba(254, 250, 236, 0.1)`,"v2-agent-review-solid":J(`v2-green-800`),"v2-agent-writer-solid":J(`v2-purple-700`)},Xn={"v2-agent-plan-solid":J(`v2-pink-400`),"v2-agent-plan-border":`rgba(247, 153, 198, 0.20)`,"v2-agent-plan-background":`rgba(170, 53, 118, 0.05)`,"v2-agent-build-solid":J(`v2-blue-300`),"v2-agent-build-border":`rgba(162, 188, 255, 0.20)`,"v2-agent-build-background":`rgba(38, 63, 169, 0.05)`,"v2-agent-explore-solid":J(`v2-yellow-300`),"v2-agent-explore-border":`rgba(243, 218, 155, 0.20)`,"v2-agent-explore-background":`rgba(172, 136, 51, 0.05)`,"v2-agent-review-solid":J(`v2-green-300`),"v2-agent-writer-solid":J(`v2-purple-400`)},Zn={"v2-background-bg-base":J(`v2-grey-100`),"v2-background-bg-deep":J(`v2-grey-200`),"v2-background-bg-layer-01":J(`v2-grey-300`),"v2-background-bg-layer-02":J(`v2-grey-400`),"v2-background-bg-layer-03":J(`v2-grey-500`),"v2-background-bg-layer-04":J(`v2-grey-600`),"v2-background-bg-inverse":J(`v2-grey-1000`),"v2-background-bg-contrast":J(`v2-grey-900`),"v2-background-bg-icon-button-contrast":J(`v2-background-bg-contrast`),"v2-background-bg-button-neutral":J(`v2-grey-100`),"v2-background-bg-accent":J(`v2-blue-600`),"v2-background-bg-code-path":J(`v2-cyan-100`),"v2-text-text-inverse":J(`v2-grey-100`),"v2-text-text-contrast":J(`v2-grey-100`),"v2-text-text-accent":J(`v2-blue-600`),"v2-text-text-accent-hover":J(`v2-blue-700`),"v2-text-text-code-accent":J(`v2-blue-900`),"v2-text-text-code-path":J(`v2-blue-900`),"v2-border-border-muted":J(`v2-alpha-dark-8`),"v2-border-border-base":J(`v2-alpha-dark-10`),"v2-border-border-strong":J(`v2-alpha-dark-20`),"v2-border-border-inverse":J(`v2-grey-1000`),"v2-border-border-focus":J(`v2-blue-500`),"v2-overlay-simple-overlay-hover":J(`v2-alpha-dark-4`),"v2-overlay-simple-overlay-pressed":J(`v2-alpha-dark-8`),"v2-overlay-simple-overlay-contrast-hover":J(`v2-alpha-light-12`),"v2-overlay-simple-overlay-contrast-pressed":J(`v2-alpha-light-24`),"v2-overlay-simple-overlay-scrim":J(`v2-alpha-dark-40`),"v2-overlay-gradient-depth-overlay-depth-top":J(`v2-alpha-light-100`),"v2-overlay-gradient-depth-overlay-depth-bot":J(`v2-alpha-light-0`),"v2-overlay-simple-tab-active-scrim":`#fafafa00`,"v2-overlay-simple-tab-hover-scrim":`#eeeeee00`,"v2-overlay-simple-tab-scrim":`#fafafa00`,"v2-state-bg-success":J(`v2-green-100`),"v2-state-fg-success":J(`v2-green-800`),"v2-state-border-success":J(`v2-green-300`),"v2-state-bg-warning":J(`v2-yellow-100`),"v2-state-fg-warning":J(`v2-yellow-800`),"v2-state-border-warning":J(`v2-yellow-300`),"v2-state-bg-danger":J(`v2-red-100`),"v2-state-fg-danger":J(`v2-red-800`),"v2-state-border-danger":J(`v2-red-300`),"v2-state-bg-info":J(`v2-blue-200`),"v2-state-fg-info":J(`v2-blue-800`),"v2-state-border-info":J(`v2-blue-300`),...Yn,...qn,"v2-elevation-raised":`0px 2px 4px 0px var(--v2-alpha-dark-4), 0px 1px 2px -1px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-floating":`0px 8px 16px 0px var(--v2-alpha-dark-4), 0px 4px 8px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-overlay":`0px 16px 32px 0px var(--v2-alpha-dark-4), 0px 8px 16px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-button-neutral":`0px 1px 1.5px 0px var(--v2-alpha-dark-10), 0px 0px 0px 0.5px var(--v2-alpha-dark-14), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-button-contrast":`0px 1px 1.5px 0px var(--v2-alpha-dark-20), 0px 0px 0px 0.5px var(--v2-grey-800), inset 0px 1px 2px 0px var(--v2-alpha-light-14), inset 0px -1px 2px 0px var(--v2-alpha-dark-6), 0px 0px 0px 0px var(--v2-alpha-dark-0)`,"v2-elevation-elements":`0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)`,"v2-elevation-switch-off":`inset 0px 1px 1px 0px var(--v2-alpha-dark-8), inset 0px 0.5px 0.5px 0px var(--v2-alpha-dark-8), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-10)`,"v2-elevation-switch-on":`inset 0px 2px 2px 0px var(--v2-alpha-dark-10), inset 0px 1px 1px 0px var(--v2-alpha-dark-10), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-20)`,"v2-illustration-illustration-layer-01":J(`v2-grey-300`),"v2-illustration-illustration-layer-02":J(`v2-grey-400`),"v2-illustration-illustration-layer-03":J(`v2-grey-500`)},Qn={"v2-background-bg-base":J(`v2-grey-1000`),"v2-background-bg-deep":J(`v2-grey-1100`),"v2-background-bg-layer-01":J(`v2-grey-800`),"v2-background-bg-layer-02":J(`v2-grey-600`),"v2-background-bg-layer-03":J(`v2-grey-500`),"v2-background-bg-layer-04":J(`v2-grey-400`),"v2-background-bg-inverse":J(`v2-grey-100`),"v2-background-bg-contrast":J(`v2-grey-700`),"v2-background-bg-icon-button-contrast":J(`v2-grey-400`),"v2-background-bg-button-neutral":J(`v2-alpha-light-6`),"v2-background-bg-accent":J(`v2-blue-600`),"v2-background-bg-code-path":J(`v2-cyan-1200`),"v2-text-text-inverse":J(`v2-grey-1000`),"v2-text-text-contrast":J(`v2-grey-100`),"v2-text-text-accent":J(`v2-blue-400`),"v2-text-text-accent-hover":J(`v2-blue-300`),"v2-text-text-code-accent":J(`v2-blue-400`),"v2-text-text-code-path":J(`v2-blue-300`),"v2-border-border-muted":J(`v2-alpha-light-8`),"v2-border-border-base":J(`v2-alpha-light-10`),"v2-border-border-strong":J(`v2-alpha-light-20`),"v2-border-border-inverse":J(`v2-grey-100`),"v2-border-border-focus":J(`v2-blue-500`),"v2-overlay-simple-overlay-hover":J(`v2-alpha-light-6`),"v2-overlay-simple-overlay-pressed":J(`v2-alpha-light-10`),"v2-overlay-simple-overlay-contrast-hover":J(`v2-alpha-dark-24`),"v2-overlay-simple-overlay-contrast-pressed":J(`v2-alpha-dark-40`),"v2-overlay-simple-overlay-scrim":J(`v2-alpha-dark-60`),"v2-overlay-gradient-depth-overlay-depth-top":J(`v2-alpha-light-100`),"v2-overlay-gradient-depth-overlay-depth-bot":J(`v2-alpha-light-0`),"v2-overlay-simple-tab-active-scrim":`#24242400`,"v2-overlay-simple-tab-hover-scrim":`#3a3a3a00`,"v2-overlay-simple-tab-scrim":`#08080800`,"v2-state-bg-success":J(`v2-green-1200`),"v2-state-fg-success":J(`v2-green-500`),"v2-state-border-success":J(`v2-green-900`),"v2-state-bg-warning":J(`v2-yellow-1200`),"v2-state-fg-warning":J(`v2-yellow-500`),"v2-state-border-warning":J(`v2-yellow-900`),"v2-state-bg-danger":J(`v2-red-1200`),"v2-state-fg-danger":J(`v2-red-500`),"v2-state-border-danger":J(`v2-red-900`),"v2-state-bg-info":J(`v2-blue-1200`),"v2-state-fg-info":J(`v2-blue-500`),"v2-state-border-info":J(`v2-blue-900`),...Xn,...Jn,"v2-elevation-raised":`0px 2px 4px 0px var(--v2-alpha-dark-30), 0px 1px 2px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-floating":`0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 4px 8px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-overlay":`0px 16px 32px 0px var(--v2-alpha-dark-30), 0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)`,"v2-elevation-button-neutral":`0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-20), 0px -0.5px 0px 0px var(--v2-alpha-light-10)`,"v2-elevation-button-contrast":`0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-40), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0px var(--v2-alpha-light-0), 0px -0.5px 0px 0px var(--v2-alpha-light-30)`,"v2-elevation-elements":`0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)`,"v2-elevation-switch-off":`inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)`,"v2-elevation-switch-on":`inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)`,"v2-illustration-illustration-layer-01":J(`v2-grey-900`),"v2-illustration-illustration-layer-02":J(`v2-grey-800`),"v2-illustration-illustration-layer-03":J(`v2-grey-700`)};function $n(e){return e?Qn:Zn}function er(...e){return Object.assign({},...e)}var tr=[100,200,300,400,500,600,700,800,900,1e3,1100,1200],nr=e=>`var(--v2-grey-${e})`;function rr(e,t){let n=e[`v2-grey-${t}`];if(typeof n==`string`&&n.startsWith(`#`))return n}function ir(e,t){let n=e.match(/^var\(--v2-grey-(\d+)\)$/)?.[1];if(!n)throw Error(`Expected grey primitive ref, got ${e}`);let r=rr(t,Number(n));if(!r)throw Error(`Missing grey primitive v2-grey-${n}`);return r}function ar(e,t,n,r){let i=tr.filter(r=>{let i=rr(e,r);return i&&Rn(i,t)>=n});return i.length===0?r:i.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e)}function or(e,t,n,r={}){let i=jn(e),a=Ln(e,{l:t?Math.max(0,.88-i.l)*.4:-Math.max(0,i.l-.18)*.24,c:t?1.04:1.02}),o=$n(t),s=ir(o[`v2-background-bg-base`],n),c=ir(o[`v2-background-bg-contrast`],n),l=ir(o[`v2-background-bg-inverse`],n),u=jn(l).l>.55?1100:rr(n,50)?50:100;return{"v2-text-text-base":t?zn(`#ffffff`,a,.9):Ln(a,{l:-.07,c:1.04}),"v2-text-text-muted":r[`text-weak`]??Ln(a,{l:t?-.11:.11,c:.9}),"v2-text-text-faint":Ln(a,{l:t?-.2:.21,c:t?.78:.72}),"v2-icon-icon-base":nr(ar(n,s,7,t?400:800)),"v2-icon-icon-muted":nr(ar(n,s,3,600)),"v2-icon-icon-faint":nr(ar(n,s,1.5,500)),"v2-icon-icon-inverse":nr(ar(n,l,7,u)),"v2-icon-icon-contrast":nr(ar(n,c,7,100)),"v2-icon-icon-accent":t?`var(--v2-blue-400)`:`var(--v2-blue-600)`,"v2-icon-icon-accent-hover":t?`var(--v2-blue-300)`:`var(--v2-blue-700)`}}var sr={"v2-grey-50":`#ffffffff`,"v2-grey-100":`#fafafaff`,"v2-grey-200":`#f2f2f2ff`,"v2-grey-300":`#eeeeeeff`,"v2-grey-400":`#dbdbdbff`,"v2-grey-500":`#aeaeaeff`,"v2-grey-600":`#808080ff`,"v2-grey-700":`#5c5c5cff`,"v2-grey-800":`#3a3a3aff`,"v2-grey-900":`#2e2e2eff`,"v2-grey-1000":`#242424ff`,"v2-grey-1100":`#161616ff`,"v2-grey-1200":`#080808ff`,"v2-red-100":`#fcecebff`,"v2-red-200":`#f6d5d3ff`,"v2-red-300":`#f2bbb7ff`,"v2-red-400":`#f29b96ff`,"v2-red-500":`#f17471ff`,"v2-red-600":`#f1484fff`,"v2-red-700":`#d92e3cff`,"v2-red-800":`#b82d35ff`,"v2-red-900":`#97252bff`,"v2-red-1000":`#7a1f23ff`,"v2-red-1100":`#5f1a1cff`,"v2-red-1200":`#461516ff`,"v2-orange-100":`#fdf2edff`,"v2-orange-200":`#ffe7dcff`,"v2-orange-300":`#ffd8c6ff`,"v2-orange-400":`#ffc1a4ff`,"v2-orange-500":`#ffa478ff`,"v2-orange-600":`#ff8648ff`,"v2-orange-700":`#ee7330ff`,"v2-orange-800":`#d16427ff`,"v2-orange-900":`#b35624ff`,"v2-orange-1000":`#954c27ff`,"v2-orange-1100":`#723d22ff`,"v2-orange-1200":`#5a2c14ff`,"v2-yellow-100":`#fefaecff`,"v2-yellow-200":`#fcefd0ff`,"v2-yellow-300":`#f7e5b5ff`,"v2-yellow-400":`#f3da9bff`,"v2-yellow-500":`#f2cf76ff`,"v2-yellow-600":`#f6c251ff`,"v2-yellow-700":`#e7af36ff`,"v2-yellow-800":`#cb9f34ff`,"v2-yellow-900":`#ac8833ff`,"v2-yellow-1000":`#8e7231ff`,"v2-yellow-1100":`#68552bff`,"v2-yellow-1200":`#4b4025ff`,"v2-green-100":`#e7f9eaff`,"v2-green-200":`#d0f0d5ff`,"v2-green-300":`#b8e9c1ff`,"v2-green-400":`#96e3a6ff`,"v2-green-500":`#6bd586ff`,"v2-green-600":`#49c970ff`,"v2-green-700":`#2eaf5aff`,"v2-green-800":`#198b43ff`,"v2-green-900":`#1d783cff`,"v2-green-1000":`#196130ff`,"v2-green-1100":`#164c26ff`,"v2-green-1200":`#14361dff`,"v2-cyan-100":`#e2f7fbff`,"v2-cyan-200":`#c4edf4ff`,"v2-cyan-300":`#a3e4efff`,"v2-cyan-400":`#65d9ebff`,"v2-cyan-500":`#00c5dfff`,"v2-cyan-600":`#00abcfff`,"v2-cyan-700":`#0096b8ff`,"v2-cyan-800":`#007d9bff`,"v2-cyan-900":`#006c85ff`,"v2-cyan-1000":`#005a6eff`,"v2-cyan-1100":`#004756ff`,"v2-cyan-1200":`#00353fff`,"v2-blue-100":`#f5f8ffff`,"v2-blue-200":`#ecf1feff`,"v2-blue-300":`#c3d4fdff`,"v2-blue-400":`#a2bcffff`,"v2-blue-500":`#7698fdff`,"v2-blue-600":`#3b5cf6ff`,"v2-blue-700":`#0b34f4ff`,"v2-blue-800":`#3250dfff`,"v2-blue-900":`#2c47c8ff`,"v2-blue-1000":`#263fa9ff`,"v2-blue-1100":`#22388fff`,"v2-blue-1200":`#021945ff`,"v2-purple-100":`#ebecfeff`,"v2-purple-200":`#d5d5fcff`,"v2-purple-300":`#b9b8f5ff`,"v2-purple-400":`#9e99f7ff`,"v2-purple-500":`#8271f8ff`,"v2-purple-600":`#7152f4ff`,"v2-purple-700":`#623be2ff`,"v2-purple-800":`#5230c2ff`,"v2-purple-900":`#442aa1ff`,"v2-purple-1000":`#361f83ff`,"v2-purple-1100":`#2b1b6aff`,"v2-purple-1200":`#221358ff`,"v2-pink-100":`#fdecf3ff`,"v2-pink-200":`#f7d5e4ff`,"v2-pink-300":`#fabcd8ff`,"v2-pink-400":`#f799c6ff`,"v2-pink-500":`#f26cb2ff`,"v2-pink-600":`#f64aabff`,"v2-pink-700":`#e4429eff`,"v2-pink-800":`#c83d8bff`,"v2-pink-900":`#aa3576ff`,"v2-pink-1000":`#8c2d61ff`,"v2-pink-1100":`#6f284fff`,"v2-pink-1200":`#5c1d3fff`},cr=[100,200,300,400,500,600,700,800,900,1e3,1100,1200];function lr(e,t,n){return Math.max(t,Math.min(n,e))}function ur(e,t){let n=jn(e),r=t?1:1.05,i=[.99,.965,.93,.885,.835,lr(n.l,.48,.72),lr(n.l-.07,.4,.64),lr(n.l-.14,.32,.55),lr(n.l-.21,.24,.46),lr(n.l-.28,.17,.38),lr(n.l-.34,.12,.3),lr(n.l-.4,.08,.22)],a=[.28,.48,.68,.86,1.02,1.28,1.34,1.28,1.18,1.08,.98,.88];return i.map((e,t)=>Nn({l:e,c:n.c*a[t]*r,h:n.h}))}function dr(e,t,n){let r=Fn(e,n,t);return n?r.toReversed():r}function fr(e,t){let n={};for(let r=0;r<cr.length;r++)n[`v2-${e}-${cr[r]}`]=t[r];return n}function pr(e){if(`palette`in e&&e.palette){let t=e.palette;return{neutral:t.neutral,ink:t.ink,primary:t.primary,accent:t.accent??t.info,success:t.success,warning:t.warning,error:t.error,info:t.info,interactive:t.interactive??t.primary,diffAdd:t.diffAdd??Ln(t.success,{c:.55,l:.14}),diffDelete:t.diffDelete??t.error}}if(`seeds`in e&&e.seeds){let t=e.seeds;return{neutral:t.neutral,ink:t.neutral,primary:t.primary,accent:t.info,success:t.success,warning:t.warning,error:t.error,info:t.info,interactive:t.interactive,diffAdd:t.diffAdd,diffDelete:t.diffDelete}}throw Error("Theme variant requires `palette` or `seeds`")}function mr(e,t){let n=pr(e),r=dr(n.neutral,n.ink,t),i=ur(n.interactive,t),a=ur(n.success,t),o=ur(n.warning,t),s=ur(n.error,t),c=ur(n.accent,t),l=ur(n.info,t),u=ur(Ln(n.warning,{h:-22,l:-.082,c:.94}),t),d=ur(Ln(n.info,{h:-12,l:.128,c:1.12}),t);return{...sr,...fr(`grey`,r),...fr(`blue`,i),...fr(`green`,a),...fr(`yellow`,o),...fr(`red`,s),...fr(`purple`,c),...fr(`pink`,l),...fr(`orange`,u),...fr(`cyan`,d)}}function hr(e,t){let n=mr(e,t);return er(n,$n(t),or(pr(e).ink,t,n,e.overrides),e.v2Overrides??{})}function gr(e){return Object.entries(e).map(([e,t])=>`--${e}: ${t};`).join(`
4
4
  `)}var _r=`modulepreload`,vr=function(e){return`/`+e},yr={},Y=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=vr(t,n),t=s(t),t in yr)return;yr[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:_r,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},br={THEME_ID:`opencode-theme-id`,COLOR_SCHEME:`opencode-color-scheme`,THEME_CSS_LIGHT:`opencode-theme-css-light`,THEME_CSS_DARK:`opencode-theme-css-dark`},xr=`oc-theme`,Sr,Cr,wr;function Tr(){return Sr||(Sr=Object.assign({"./themes/amoled.json":()=>Y(()=>import(`./amoled-DB5yy8ad.js`),[]),"./themes/aura.json":()=>Y(()=>import(`./aura-BpwPh8WE.js`),[]),"./themes/ayu.json":()=>Y(()=>import(`./ayu-BkUPVVqh.js`),[]),"./themes/carbonfox.json":()=>Y(()=>import(`./carbonfox-Bo2FTw5U.js`),[]),"./themes/catppuccin-frappe.json":()=>Y(()=>import(`./catppuccin-frappe-DIKI31zD.js`),[]),"./themes/catppuccin-macchiato.json":()=>Y(()=>import(`./catppuccin-macchiato-DYnJ67qk.js`),[]),"./themes/catppuccin.json":()=>Y(()=>import(`./catppuccin-DK9M8P0P.js`),[]),"./themes/cobalt2.json":()=>Y(()=>import(`./cobalt2-DQbhSfAX.js`),[]),"./themes/cursor.json":()=>Y(()=>import(`./cursor-t2F-UZH_.js`),[]),"./themes/dracula.json":()=>Y(()=>import(`./dracula-C3s659y-.js`),[]),"./themes/everforest.json":()=>Y(()=>import(`./everforest-BEfZxV1e.js`),[]),"./themes/flexoki.json":()=>Y(()=>import(`./flexoki-Dj5gUbwm.js`),[]),"./themes/github.json":()=>Y(()=>import(`./github-DukYz3BY.js`),[]),"./themes/gruvbox.json":()=>Y(()=>import(`./gruvbox-mhPG2W60.js`),[]),"./themes/kanagawa.json":()=>Y(()=>import(`./kanagawa-D0YhNhTs.js`),[]),"./themes/lucent-orng.json":()=>Y(()=>import(`./lucent-orng-DLA2Fg5T.js`),[]),"./themes/material.json":()=>Y(()=>import(`./material-BoIUTXek.js`),[]),"./themes/matrix.json":()=>Y(()=>import(`./matrix-CeUtxxjs.js`),[]),"./themes/mercury.json":()=>Y(()=>import(`./mercury-DIlqACMb.js`),[]),"./themes/monokai.json":()=>Y(()=>import(`./monokai-wFuGqe6w.js`),[]),"./themes/nightowl.json":()=>Y(()=>import(`./nightowl-D5RifUq0.js`),[]),"./themes/nord.json":()=>Y(()=>import(`./nord-BUnqvSkw.js`),[]),"./themes/oc-2.json":()=>Y(()=>Promise.resolve().then(()=>gn),void 0),"./themes/one-dark.json":()=>Y(()=>import(`./one-dark-MycZLZtN.js`),[]),"./themes/onedarkpro.json":()=>Y(()=>import(`./onedarkpro-BWy38d_X.js`),[]),"./themes/opencode.json":()=>Y(()=>import(`./opencode-Cy-bxafp.js`),[]),"./themes/orng.json":()=>Y(()=>import(`./orng-D2APmIHg.js`),[]),"./themes/osaka-jade.json":()=>Y(()=>import(`./osaka-jade-DnfGjKZL.js`),[]),"./themes/palenight.json":()=>Y(()=>import(`./palenight-DG9raf7e.js`),[]),"./themes/rosepine.json":()=>Y(()=>import(`./rosepine-CVx-z9QY.js`),[]),"./themes/shadesofpurple.json":()=>Y(()=>import(`./shadesofpurple-dFPspHnY.js`),[]),"./themes/solarized.json":()=>Y(()=>import(`./solarized-19OwMz-R.js`),[]),"./themes/synthwave84.json":()=>Y(()=>import(`./synthwave84-D5i2TsvP.js`),[]),"./themes/tokyonight.json":()=>Y(()=>import(`./tokyonight-DLjt3AtF.js`),[]),"./themes/vercel.json":()=>Y(()=>import(`./vercel-DiG3Swzk.js`),[]),"./themes/vesper.json":()=>Y(()=>import(`./vesper-BArq_vZH.js`),[]),"./themes/zenburn.json":()=>Y(()=>import(`./zenburn-COSjCZYx.js`),[])}),Sr)}function Er(){return Cr||(Cr=Object.keys(Tr()).map(e=>e.slice(9,-5)).sort(),Cr)}function Dr(){return wr||(wr=new Set(Er()),wr)}var Or={"oc-2":`OC-2`,amoled:`AMOLED`,aura:`Aura`,ayu:`Ayu`,carbonfox:`Carbonfox`,catppuccin:`Catppuccin`,"catppuccin-frappe":`Catppuccin Frappe`,"catppuccin-macchiato":`Catppuccin Macchiato`,cobalt2:`Cobalt2`,cursor:`Cursor`,dracula:`Dracula`,everforest:`Everforest`,flexoki:`Flexoki`,github:`GitHub`,gruvbox:`Gruvbox`,kanagawa:`Kanagawa`,"lucent-orng":`Lucent Orng`,material:`Material`,matrix:`Matrix`,mercury:`Mercury`,monokai:`Monokai`,nightowl:`Night Owl`,nord:`Nord`,"one-dark":`One Dark`,onedarkpro:`One Dark Pro`,opencode:`OpenCode`,orng:`Orng`,"osaka-jade":`Osaka Jade`,palenight:`Palenight`,rosepine:`Rose Pine`,shadesofpurple:`Shades of Purple`,solarized:`Solarized`,synthwave84:`Synthwave '84`,tokyonight:`Tokyonight`,vercel:`Vercel`,vesper:`Vesper`,zenburn:`Zenburn`},kr=Sn;function Ar(e,t){return e===`oc-2`||e&&(Dr().has(e)||t?.[e])?e:`oc-2`}function jr(e){if(typeof localStorage!=`object`)return null;try{return localStorage.getItem(e)}catch{return null}}function Mr(e,t){if(typeof localStorage==`object`)try{localStorage.setItem(e,t)}catch{}}function Nr(e){if(typeof localStorage==`object`)try{localStorage.removeItem(e)}catch{}}function Pr(){Nr(br.THEME_CSS_LIGHT),Nr(br.THEME_CSS_DARK)}function Fr(){let e=document.getElementById(xr);if(e)return e;let t=document.createElement(`style`);return t.id=xr,document.head.appendChild(t),t}function Ir(){return typeof window==`object`&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Lr(e,t,n){let r=n===`dark`,i=r?e.dark:e.light,a=Gn(Vn(i,r)),o=gr(hr(i,r));t!==`oc-2`&&Mr(r?br.THEME_CSS_DARK:br.THEME_CSS_LIGHT,`${a}\n ${o}`);let s=`:root {
5
5
  color-scheme: ${n};
@@ -13,7 +13,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
13
13
  <path d="M12 2H2V18H18V8M6 11.3818V14H8.61818L18 4.61818L15.3818 2L6 11.3818Z" stroke="currentColor"/>`,"pencil-line":`<path d="M9.58301 17.9166H17.9163M17.9163 5.83325L14.1663 2.08325L2.08301 14.1666V17.9166H5.83301L17.9163 5.83325Z" stroke="currentColor" stroke-linecap="square"/>`,mcp:`<g><path d="M0.972656 9.37176L9.5214 1.60019C10.7018 0.527151 12.6155 0.527151 13.7957 1.60019C14.9761 2.67321 14.9761 4.41295 13.7957 5.48599L7.3397 11.3552" stroke="currentColor" stroke-linecap="round"/><path d="M7.42871 11.2747L13.7957 5.48643C14.9761 4.41338 16.8898 4.41338 18.0702 5.48643L18.1147 5.52688C19.2951 6.59993 19.2951 8.33966 18.1147 9.4127L10.3831 16.4414C9.98966 16.7991 9.98966 17.379 10.3831 17.7366L11.9707 19.1799" stroke="currentColor" stroke-linecap="round"/><path d="M11.6587 3.54346L5.33619 9.29119C4.15584 10.3642 4.15584 12.1039 5.33619 13.177C6.51649 14.25 8.43019 14.25 9.61054 13.177L15.9331 7.42923" stroke="currentColor" stroke-linecap="round"/></g>`,glasses:`<path d="M0.416626 7.91667H1.66663M19.5833 7.91667H18.3333M11.866 7.57987C11.3165 7.26398 10.6793 7.08333 9.99996 7.08333C9.32061 7.08333 8.68344 7.26398 8.13389 7.57987M8.74996 10C8.74996 12.0711 7.07103 13.75 4.99996 13.75C2.92889 13.75 1.24996 12.0711 1.24996 10C1.24996 7.92893 2.92889 6.25 4.99996 6.25C7.07103 6.25 8.74996 7.92893 8.74996 10ZM18.75 10C18.75 12.0711 17.071 13.75 15 13.75C12.9289 13.75 11.25 12.0711 11.25 10C11.25 7.92893 12.9289 6.25 15 6.25C17.071 6.25 18.75 7.92893 18.75 10Z" stroke="currentColor" stroke-linecap="square"/>`,"magnifying-glass-menu":`<path d="M2.08325 10.0002H4.58325M2.08325 5.41683H5.41659M2.08325 14.5835H5.41659M16.4583 13.9585L18.7499 16.2502M17.9166 10.0002C17.9166 12.9917 15.4915 15.4168 12.4999 15.4168C9.50838 15.4168 7.08325 12.9917 7.08325 10.0002C7.08325 7.00862 9.50838 4.5835 12.4999 4.5835C15.4915 4.5835 17.9166 7.00862 17.9166 10.0002Z" stroke="currentColor" stroke-linecap="square"/>`,"window-cursor":`<path d="M17.5 10.4167V3.75H2.5V17.0833H10.4166M17.9166 13.5897L11.6666 11.6667L13.5897 17.9167L15.032 15.0321L17.9166 13.5897Z" stroke="currentColor" stroke-linecap="square"/><path d="M5.41675 6.125C5.71576 6.12518 5.95777 6.36795 5.95777 6.66699C5.95759 6.96589 5.71565 7.20783 5.41675 7.20801C5.11771 7.20801 4.87494 6.966 4.87476 6.66699C4.87476 6.36784 5.1176 6.125 5.41675 6.125ZM8.33276 6.125C8.63191 6.125 8.87476 6.36784 8.87476 6.66699C8.87458 6.966 8.63181 7.20801 8.33276 7.20801C8.03386 7.20783 7.79192 6.96589 7.79175 6.66699C7.79175 6.36795 8.03376 6.12518 8.33276 6.125ZM11.2498 6.125C11.5489 6.125 11.7917 6.36784 11.7917 6.66699C11.7916 6.966 11.5488 7.20801 11.2498 7.20801C10.9507 7.20801 10.7079 6.966 10.7078 6.66699C10.7078 6.36784 10.9506 6.125 11.2498 6.125Z" fill="currentColor" stroke="currentColor" stroke-width="0.25" stroke-linecap="square"/>`,task:`<path d="M9.99992 2.0835V17.9168M7.08325 3.75016H2.08325V16.2502H7.08325M12.9166 16.2502H17.9166V3.75016H12.9166" stroke="currentColor" stroke-linecap="square"/>`,subagent:`<path d="M4.5 5C4.5 4.72386 4.72386 4.5 5 4.5H11C11.2761 4.5 11.5 4.72386 11.5 5V11C11.5 11.2761 11.2761 11.5 11 11.5H5C4.72386 11.5 4.5 11.2761 4.5 11V5Z" fill="currentColor"/><path d="M13.5 2C13.7761 2 14 2.22386 14 2.5V13.5C14 13.7761 13.7761 14 13.5 14H2.5C2.22386 14 2 13.7761 2 13.5V2.5C2 2.22386 2.22386 2 2.5 2H13.5ZM3 13H13V3H3V13Z" fill="currentColor"/>`,stop:`<rect x="5" y="5" width="10" height="10" fill="currentColor"/>`,status:`<path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>`,"status-active":`<path d="M18 2H2V10H18V2Z" fill="currentColor" fill-opacity="0.1"/>
14
14
  <path d="M2 18H18V10H2V18Z" fill="currentColor" fill-opacity="0.1"/>
15
15
  <path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>`,sidebar:`<path d="M7.86667 2H5.2H2V18H5.2H7.86667M7.86667 2H18V18H7.86667M7.86667 2V18" stroke="currentColor"/>`,"sidebar-active":`<path d="M2 2V18H5.2H7.86667V2H5.2H2Z" fill="currentColor" fill-opacity="0.1"/>
16
- <path d="M7.86667 2H5.2H2V18H5.2H7.86667M7.86667 2H18V18H7.86667M7.86667 2V18" stroke="currentColor"/>`,"layout-left":`<path d="M2.91675 2.91699L2.91675 2.41699L2.41675 2.41699L2.41675 2.91699L2.91675 2.91699ZM17.0834 2.91699L17.5834 2.91699L17.5834 2.41699L17.0834 2.41699L17.0834 2.91699ZM17.0834 17.0837L17.0834 17.5837L17.5834 17.5837L17.5834 17.0837L17.0834 17.0837ZM2.91675 17.0837L2.41675 17.0837L2.41675 17.5837L2.91675 17.5837L2.91675 17.0837ZM7.41674 17.0837L7.41674 17.5837L8.41674 17.5837L8.41674 17.0837L7.91674 17.0837L7.41674 17.0837ZM8.41674 2.91699L8.41674 2.41699L7.41674 2.41699L7.41674 2.91699L7.91674 2.91699L8.41674 2.91699ZM2.91675 2.91699L2.91675 3.41699L17.0834 3.41699L17.0834 2.91699L17.0834 2.41699L2.91675 2.41699L2.91675 2.91699ZM17.0834 2.91699L16.5834 2.91699L16.5834 17.0837L17.0834 17.0837L17.5834 17.0837L17.5834 2.91699L17.0834 2.91699ZM17.0834 17.0837L17.0834 16.5837L2.91675 16.5837L2.91675 17.0837L2.91675 17.5837L17.0834 17.5837L17.0834 17.0837ZM2.91675 17.0837L3.41675 17.0837L3.41675 2.91699L2.91675 2.91699L2.41675 2.91699L2.41675 17.0837L2.91675 17.0837ZM7.91674 17.0837L8.41674 17.0837L8.41674 2.91699L7.91674 2.91699L7.41674 2.91699L7.41674 17.0837L7.91674 17.0837Z" fill="currentColor"/>`,"layout-left-partial":`<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>`,"layout-left-full":`<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>`,"layout-right":`<path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor"/>`,"layout-right-partial":`<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />`,"layout-right-full":`<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />`,"square-arrow-top-right":`<path d="M7.91675 2.9165H2.91675V17.0832H17.0834V12.0832M12.0834 2.9165H17.0834V7.9165M9.58342 10.4165L16.6667 3.33317" stroke="currentColor" stroke-linecap="square"/>`,"open-file":`<path d="M7.91602 2.91406H2.91602V17.0807H17.0827V12.0807M12.0827 2.91406H17.0827V7.91406M9.58268 10.4141L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>`,"speech-bubble":`<path d="M18.3334 10.0003C18.3334 5.57324 15.0927 2.91699 10.0001 2.91699C4.90749 2.91699 1.66675 5.57324 1.66675 10.0003C1.66675 11.1497 2.45578 13.1016 2.5771 13.3949C2.5878 13.4207 2.59839 13.4444 2.60802 13.4706C2.69194 13.6996 3.04282 14.9364 1.66675 16.7684C3.5186 17.6538 5.48526 16.1982 5.48526 16.1982C6.84592 16.9202 8.46491 17.0837 10.0001 17.0837C15.0927 17.0837 18.3334 14.4274 18.3334 10.0003Z" stroke="currentColor" stroke-linecap="square"/>`,comment:`<path d="M16.25 3.75H3.75V16.25L6.875 14.4643H16.25V3.75Z" stroke="currentColor" stroke-linecap="square"/>`,"folder-add-left":`<path d="M2.08333 9.58268V2.91602H8.33333L10 5.41602H17.9167V16.2493H8.75M3.75 12.0827V14.5827M3.75 14.5827V17.0827M3.75 14.5827H1.25M3.75 14.5827H6.25" stroke="currentColor" stroke-linecap="square"/>`,github:`<path d="M10.0001 1.62549C14.6042 1.62549 18.3334 5.35465 18.3334 9.95882C18.333 11.7049 17.785 13.4068 16.7666 14.8251C15.7482 16.2434 14.3107 17.3066 12.6563 17.8651C12.2397 17.9484 12.0834 17.688 12.0834 17.4692C12.0834 17.188 12.0938 16.2922 12.0938 15.1776C12.0938 14.3963 11.8334 13.8963 11.5313 13.6359C13.3855 13.4276 15.3334 12.7192 15.3334 9.52132C15.3334 8.60465 15.0105 7.86507 14.4792 7.28174C14.5626 7.0734 14.8542 6.21924 14.3959 5.0734C14.3959 5.0734 13.698 4.84424 12.1042 5.92757C11.4376 5.74007 10.7292 5.64632 10.0209 5.64632C9.31258 5.64632 8.60425 5.74007 7.93758 5.92757C6.34383 4.85465 5.64592 5.0734 5.64592 5.0734C5.18758 6.21924 5.47925 7.0734 5.56258 7.28174C5.03133 7.86507 4.70842 8.61507 4.70842 9.52132C4.70842 12.7088 6.64592 13.4276 8.50008 13.6359C8.2605 13.8442 8.04175 14.2088 7.96883 14.7505C7.48967 14.9692 6.29175 15.3234 5.54175 14.063C5.3855 13.813 4.91675 13.1984 4.2605 13.2088C3.56258 13.2192 3.97925 13.6047 4.27092 13.7609C4.62508 13.9588 5.03133 14.6984 5.12508 14.938C5.29175 15.4067 5.83342 16.3026 7.92717 15.9172C7.92717 16.6151 7.93758 17.2713 7.93758 17.4692C7.93758 17.688 7.78133 17.938 7.36467 17.8651C5.70491 17.3126 4.26126 16.2515 3.23851 14.8324C2.21576 13.4133 1.66583 11.7081 1.66675 9.95882C1.66675 5.35465 5.39592 1.62549 10.0001 1.62549Z" fill="currentColor"/>`,discord:`<path d="M16.0742 4.45014C14.9244 3.92097 13.7106 3.54556 12.4638 3.3335C12.2932 3.64011 12.1388 3.95557 12.0013 4.27856C10.6732 4.07738 9.32261 4.07738 7.99451 4.27856C7.85694 3.9556 7.70257 3.64014 7.53203 3.3335C6.28441 3.54735 5.06981 3.92365 3.91889 4.45291C1.63401 7.85128 1.01462 11.1652 1.32431 14.4322C2.6624 15.426 4.16009 16.1819 5.7523 16.6668C6.11082 16.1821 6.42806 15.6678 6.70066 15.1295C6.18289 14.9351 5.68315 14.6953 5.20723 14.4128C5.33249 14.3215 5.45499 14.2274 5.57336 14.136C6.95819 14.7907 8.46965 15.1302 9.99997 15.1302C11.5303 15.1302 13.0418 14.7907 14.4266 14.136C14.5463 14.2343 14.6688 14.3284 14.7927 14.4128C14.3159 14.6957 13.8152 14.9361 13.2965 15.1309C13.5688 15.669 13.8861 16.1828 14.2449 16.6668C15.8385 16.1838 17.3373 15.4283 18.6756 14.4335C19.039 10.645 18.0549 7.36145 16.0742 4.45014ZM7.09294 12.423C6.22992 12.423 5.51693 11.6357 5.51693 10.6671C5.51693 9.69852 6.20514 8.90427 7.09019 8.90427C7.97524 8.90427 8.68272 9.69852 8.66758 10.6671C8.65244 11.6357 7.97248 12.423 7.09294 12.423ZM12.907 12.423C12.0426 12.423 11.3324 11.6357 11.3324 10.6671C11.3324 9.69852 12.0206 8.90427 12.907 8.90427C13.7934 8.90427 14.4954 9.69852 14.4803 10.6671C14.4651 11.6357 13.7865 12.423 12.907 12.423Z" fill="currentColor"/>`,"layout-bottom":`<path d="M2.91699 17.0832L2.41699 17.0832L2.41699 17.5832L2.91699 17.5832L2.91699 17.0832ZM2.91699 2.91653L2.91699 2.41653L2.41699 2.41653L2.41699 2.91653L2.91699 2.91653ZM17.0837 2.91653L17.5837 2.91653L17.5837 2.41653L17.0837 2.41653L17.0837 2.91653ZM17.0837 17.0832L17.5837 17.0832L17.5837 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.5827L17.5837 12.5827L17.5837 11.5827L17.0837 11.5827L17.0837 12.0827L17.0837 12.5827ZM2.91699 11.5827L2.41699 11.5827L2.41699 12.5827L2.91699 12.5827L2.91699 12.0827L2.91699 11.5827ZM2.91699 17.0832L3.41699 17.0832L3.41699 2.91653L2.91699 2.91653L2.41699 2.91653L2.41699 17.0832L2.91699 17.0832ZM2.91699 2.91653L2.91699 3.41653L17.0837 3.41653L17.0837 2.91653L17.0837 2.41653L2.91699 2.41653L2.91699 2.91653ZM17.0837 2.91653L16.5837 2.91653L16.5837 17.0832L17.0837 17.0832L17.5837 17.0832L17.5837 2.91653L17.0837 2.91653ZM17.0837 17.0832L17.0837 16.5832L2.91699 16.5832L2.91699 17.0832L2.91699 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.0827L17.0837 11.5827L2.91699 11.5827L2.91699 12.0827L2.91699 12.5827L17.0837 12.5827L17.0837 12.0827Z" fill="currentColor"/>`,"layout-bottom-partial":`<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>`,"layout-bottom-full":`<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>`,"dot-grid":`<path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" fill="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" fill="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" fill="currentColor"/><path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" stroke="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" stroke="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" stroke="currentColor"/>`,"circle-check":`<path d="M12.4987 7.91732L8.7487 12.5007L7.08203 10.834M17.9154 10.0007C17.9154 14.3729 14.371 17.9173 9.9987 17.9173C5.62644 17.9173 2.08203 14.3729 2.08203 10.0007C2.08203 5.6284 5.62644 2.08398 9.9987 2.08398C14.371 2.08398 17.9154 5.6284 17.9154 10.0007Z" stroke="currentColor" stroke-linecap="square"/>`,copy:`<path d="M6.2513 6.24935V2.91602H17.0846V13.7493H13.7513M13.7513 6.24935V17.0827H2.91797V6.24935H13.7513Z" stroke="currentColor" stroke-linecap="round"/>`,check:`<path d="M5 11.9657L8.37838 14.7529L15 5.83398" stroke="currentColor" stroke-linecap="square"/>`,photo:`<path d="M16.6665 16.6666L11.6665 11.6666L9.99984 13.3333L6.6665 9.99996L3.08317 13.5833M2.9165 2.91663H17.0832V17.0833H2.9165V2.91663ZM13.3332 7.49996C13.3332 8.30537 12.6803 8.95829 11.8748 8.95829C11.0694 8.95829 10.4165 8.30537 10.4165 7.49996C10.4165 6.69454 11.0694 6.04163 11.8748 6.04163C12.6803 6.04163 13.3332 6.69454 13.3332 7.49996Z" stroke="currentColor" stroke-linecap="square"/>`,share:`<path d="M10.0013 12.0846L10.0013 3.33464M13.7513 6.66797L10.0013 2.91797L6.2513 6.66797M17.0846 10.418V17.0846H2.91797V10.418" stroke="currentColor" stroke-linecap="square"/>`,shield:`<path d="M7.49935 9.3737L9.16602 11.0404L12.4994 7.70703M9.99935 2.08203L17.0827 4.3737V9.92565C17.0827 14.0694 13.3327 16.2487 9.99935 18.047C6.66602 16.2487 2.91602 14.0694 2.91602 9.92565V4.3737L9.99935 2.08203Z" stroke="currentColor" stroke-linecap="square"/>`,download:`<path d="M13.9583 10.6257L10 14.584L6.04167 10.6257M10 2.08398V13.959M16.25 17.9173H3.75" stroke="currentColor" stroke-linecap="square"/>`,menu:`<path d="M2.5 5H17.5M2.5 10H17.5M2.5 15H17.5" stroke="currentColor" stroke-linecap="square"/>`,server:`<rect x="3.35547" y="1.92969" width="13.2857" height="16.1429" stroke="currentColor"/><rect x="3.35547" y="11.9297" width="13.2857" height="6.14286" stroke="currentColor"/><rect x="12.8555" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/><rect x="10" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/>`,branch:`<path d="M14.2036 7.19987L14.2079 6.69989L13.2079 6.69132L13.2036 7.1913L13.7036 7.19559L14.2036 7.19987ZM8.14804 5.09032H7.64804C7.64804 5.75797 7.06861 6.34471 6.29619 6.34471V6.84471V7.34471C7.56926 7.34471 8.64804 6.36051 8.64804 5.09032H8.14804ZM6.29619 6.84471V6.34471C5.52376 6.34471 4.94434 5.75797 4.94434 5.09032H4.44434H3.94434C3.94434 6.36051 5.02311 7.34471 6.29619 7.34471V6.84471ZM4.44434 5.09032H4.94434C4.94434 4.42267 5.52376 3.83594 6.29619 3.83594V3.33594V2.83594C5.02311 2.83594 3.94434 3.82013 3.94434 5.09032H4.44434ZM6.29619 3.33594V3.83594C7.06861 3.83594 7.64804 4.42267 7.64804 5.09032H8.14804H8.64804C8.64804 3.82013 7.56926 2.83594 6.29619 2.83594V3.33594ZM8.14804 14.9149H7.64804C7.64804 15.5825 7.06861 16.1693 6.29619 16.1693V16.6693V17.1693C7.56926 17.1693 8.64804 16.1851 8.64804 14.9149H8.14804ZM6.29619 16.6693V16.1693C5.52376 16.1693 4.94434 15.5825 4.94434 14.9149H4.44434H3.94434C3.94434 16.1851 5.02311 17.1693 6.29619 17.1693V16.6693ZM4.44434 14.9149H4.94434C4.94434 14.2472 5.52376 13.6605 6.29619 13.6605V13.1605V12.6605C5.02311 12.6605 3.94434 13.6447 3.94434 14.9149H4.44434ZM6.29619 13.1605V13.6605C7.06861 13.6605 7.64804 14.2472 7.64804 14.9149H8.14804H8.64804C8.64804 13.6447 7.56926 12.6605 6.29619 12.6605V13.1605ZM15.5554 5.09032H15.0554C15.0554 5.75797 14.476 6.34471 13.7036 6.34471V6.84471V7.34471C14.9767 7.34471 16.0554 6.36051 16.0554 5.09032H15.5554ZM13.7036 6.84471V6.34471C12.9312 6.34471 12.3517 5.75797 12.3517 5.09032H11.8517H11.3517C11.3517 6.36051 12.4305 7.34471 13.7036 7.34471V6.84471ZM11.8517 5.09032H12.3517C12.3517 4.42267 12.9312 3.83594 13.7036 3.83594V3.33594V2.83594C12.4305 2.83594 11.3517 3.82013 11.3517 5.09032H11.8517ZM13.7036 3.33594V3.83594C14.476 3.83594 15.0554 4.42267 15.0554 5.09032H15.5554H16.0554C16.0554 3.82013 14.9767 2.83594 13.7036 2.83594V3.33594ZM13.7036 7.19559L13.2036 7.1913L13.1544 12.9277L13.6544 12.932L14.1544 12.9363L14.2036 7.19987L13.7036 7.19559ZM6.29619 6.84471H5.79619V13.1605H6.29619H6.79619V6.84471H6.29619ZM11.6545 14.9149V14.4149H8.14804V14.9149V15.4149H11.6545V14.9149ZM13.6544 12.932L13.1544 12.9277C13.1474 13.7511 12.4779 14.4149 11.6545 14.4149V14.9149V15.4149C13.0269 15.4149 14.1426 14.3086 14.1544 12.9363L13.6544 12.932Z" fill="currentColor"/>`,edit:`<path d="M17.0832 17.0807V17.5807H17.5832V17.0807H17.0832ZM2.9165 17.0807H2.4165V17.5807H2.9165V17.0807ZM2.9165 2.91406V2.41406H2.4165V2.91406H2.9165ZM9.58317 3.41406H10.0832V2.41406H9.58317V2.91406V3.41406ZM17.5832 10.4141V9.91406H16.5832V10.4141H17.0832H17.5832ZM6.24984 11.2474L5.89628 10.8938L5.74984 11.0403V11.2474H6.24984ZM6.24984 13.7474H5.74984V14.2474H6.24984V13.7474ZM8.74984 13.7474V14.2474H8.95694L9.10339 14.101L8.74984 13.7474ZM15.2082 2.28906L15.5617 1.93551L15.2082 1.58196L14.8546 1.93551L15.2082 2.28906ZM17.7082 4.78906L18.0617 5.14262L18.4153 4.78906L18.0617 4.43551L17.7082 4.78906ZM17.0832 17.0807V16.5807H2.9165V17.0807V17.5807H17.0832V17.0807ZM2.9165 17.0807H3.4165V2.91406H2.9165H2.4165V17.0807H2.9165ZM2.9165 2.91406V3.41406H9.58317V2.91406V2.41406H2.9165V2.91406ZM17.0832 10.4141H16.5832V17.0807H17.0832H17.5832V10.4141H17.0832ZM6.24984 11.2474H5.74984V13.7474H6.24984H6.74984V11.2474H6.24984ZM6.24984 13.7474V14.2474H8.74984V13.7474V13.2474H6.24984V13.7474ZM6.24984 11.2474L6.60339 11.6009L15.5617 2.64262L15.2082 2.28906L14.8546 1.93551L5.89628 10.8938L6.24984 11.2474ZM15.2082 2.28906L14.8546 2.64262L17.3546 5.14262L17.7082 4.78906L18.0617 4.43551L15.5617 1.93551L15.2082 2.28906ZM17.7082 4.78906L17.3546 4.43551L8.39628 13.3938L8.74984 13.7474L9.10339 14.101L18.0617 5.14262L17.7082 4.78906Z" fill="currentColor"/>`,help:`<path d="M7.91683 7.91927V6.2526H12.0835V8.7526L10.0002 10.0026V12.0859M10.0002 13.7526V13.7609M17.9168 10.0026C17.9168 14.3749 14.3724 17.9193 10.0002 17.9193C5.62791 17.9193 2.0835 14.3749 2.0835 10.0026C2.0835 5.63035 5.62791 2.08594 10.0002 2.08594C14.3724 2.08594 17.9168 5.63035 17.9168 10.0026Z" stroke="currentColor" stroke-linecap="square"/>`,"settings-gear":`<path d="M7.62516 4.46094L5.05225 3.86719L3.86475 5.05469L4.4585 7.6276L2.0835 9.21094V10.7943L4.4585 12.3776L3.86475 14.9505L5.05225 16.138L7.62516 15.5443L9.2085 17.9193H10.7918L12.3752 15.5443L14.9481 16.138L16.1356 14.9505L15.5418 12.3776L17.9168 10.7943V9.21094L15.5418 7.6276L16.1356 5.05469L14.9481 3.86719L12.3752 4.46094L10.7918 2.08594H9.2085L7.62516 4.46094Z" stroke="currentColor"/><path d="M12.5002 10.0026C12.5002 11.3833 11.3809 12.5026 10.0002 12.5026C8.61945 12.5026 7.50016 11.3833 7.50016 10.0026C7.50016 8.62189 8.61945 7.5026 10.0002 7.5026C11.3809 7.5026 12.5002 8.62189 12.5002 10.0026Z" stroke="currentColor"/>`,dash:`<rect x="5" y="9.5" width="10" height="1" fill="currentColor"/>`,"cloud-upload":`<path d="M12.0833 16.25H15C17.0711 16.25 18.75 14.5711 18.75 12.5C18.75 10.5649 17.2843 8.97217 15.4025 8.77133C15.2 6.13103 12.8586 4.08333 10 4.08333C7.71532 4.08333 5.76101 5.49781 4.96501 7.49881C2.84892 7.90461 1.25 9.76559 1.25 11.6667C1.25 13.9813 3.30203 16.25 5.83333 16.25H7.91667M10 16.25V10.4167M12.0833 11.875L10 9.79167L7.91667 11.875" stroke="currentColor" stroke-linecap="square"/>`,trash:`<path d="M4.58342 17.9134L4.58369 17.4134L4.22787 17.5384L4.22766 18.0384H4.58342V17.9134ZM15.4167 17.9134V18.0384H15.7725L15.7723 17.5384L15.4167 17.9134ZM2.08342 3.95508V3.45508H1.58342V3.95508H2.08342V4.45508V3.95508ZM17.9167 4.45508V4.95508H18.4167V4.45508H17.9167V3.95508V4.45508ZM4.16677 4.58008L3.66701 4.5996L4.22816 17.5379L4.72792 17.4934L5.22767 17.4489L4.66652 4.54055L4.16677 4.58008ZM4.58342 18.0384V17.9134H15.4167V18.0384V18.5384H4.58342V18.0384ZM15.4167 17.9134L15.8332 17.5379L16.2498 4.5996L15.7501 4.58008L15.2503 4.56055L14.8337 17.4989L15.4167 17.9134ZM15.8334 4.58008V4.08008H4.16677V4.58008V5.08008H15.8334V4.58008ZM2.08342 4.45508V4.95508H4.16677V4.58008V4.08008H2.08342V4.45508ZM15.8334 4.58008V5.08008H17.9167V4.45508V3.95508H15.8334V4.58008ZM6.83951 4.35149L7.432 4.55047C7.79251 3.47701 8.80699 2.70508 10.0001 2.70508V2.20508V1.70508C8.25392 1.70508 6.77335 2.83539 6.24702 4.15251L6.83951 4.35149ZM10.0001 2.20508V2.70508C11.1932 2.70508 12.2077 3.47701 12.5682 4.55047L13.1607 4.35149L13.7532 4.15251C13.2269 2.83539 11.7463 1.70508 10.0001 1.70508V2.20508Z" fill="currentColor"/>`,sliders:`<path d="M3.625 6.25H10.9375M16.375 13.75H10.5625M3.625 13.75H4.9375M11.125 6.25C11.125 4.79969 12.2997 3.625 13.75 3.625C15.2003 3.625 16.375 4.79969 16.375 6.25C16.375 7.70031 15.2003 8.875 13.75 8.875C12.2997 8.875 11.125 7.70031 11.125 6.25ZM10.375 13.75C10.375 15.2003 9.20031 16.375 7.75 16.375C6.29969 16.375 5.125 15.2003 5.125 13.75C5.125 12.2997 6.29969 11.125 7.75 11.125C9.20031 11.125 10.375 12.2997 10.375 13.75Z" stroke="currentColor" stroke-linecap="square"/>`,keyboard:`<path d="M5.125 7.375V4.375H14.875V2.875M8.3125 13.9375H11.6875M8.125 13.9375H11.875M2.125 7.375H17.875V17.125H2.125V7.375ZM5.5 10.375H5.125V10.75H5.5V10.375ZM8.5 10.375H8.125V10.75H8.5V10.375ZM11.875 10.375H11.5V10.75H11.875V10.375ZM14.875 10.375H14.5V10.75H14.875V10.375ZM14.875 13.75H14.5V14.125H14.875V13.75ZM5.5 13.75H5.125V14.125H5.5V13.75Z" stroke="currentColor" stroke-linecap="square"/>`,selector:`<path d="M6.66626 12.5033L9.99959 15.8366L13.3329 12.5033M6.66626 7.50326L9.99959 4.16992L13.3329 7.50326" stroke="currentColor" stroke-linecap="square"/>`,"arrow-down-to-line":`<path d="M15.2083 11.6667L10 16.875L4.79167 11.6667M10 16.25V3.125" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>`,warning:`<path d="M10 7.91667V11.6667M10 13.7417V13.75M10 2.5L1.875 16.25H18.125L10 2.5Z" stroke="currentColor" stroke-linecap="square"/>`,reset:`<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>`,link:`<path d="M2.08334 12.0833L1.72979 11.7298L1.37624 12.0833L1.72979 12.4369L2.08334 12.0833ZM7.91668 17.9167L7.56312 18.2702L7.91668 18.6238L8.27023 18.2702L7.91668 17.9167ZM17.9167 7.91666L18.2702 8.27022L18.6238 7.91666L18.2702 7.56311L17.9167 7.91666ZM12.0833 2.08333L12.4369 1.72977L12.0833 1.37622L11.7298 1.72977L12.0833 2.08333ZM8.39646 5.06311L8.0429 5.41666L8.75001 6.12377L9.10356 5.77021L8.75001 5.41666L8.39646 5.06311ZM5.77023 9.10355L6.12378 8.74999L5.41668 8.04289L5.06312 8.39644L5.41668 8.74999L5.77023 9.10355ZM14.2298 10.8964L13.8762 11.25L14.5833 11.9571L14.9369 11.6035L14.5833 11.25L14.2298 10.8964ZM11.6036 14.9369L11.9571 14.5833L11.25 13.8762L10.8965 14.2298L11.25 14.5833L11.6036 14.9369ZM7.14646 12.1464L6.7929 12.5L7.50001 13.2071L7.85356 12.8535L7.50001 12.5L7.14646 12.1464ZM12.8536 7.85355L13.2071 7.49999L12.5 6.79289L12.1465 7.14644L12.5 7.49999L12.8536 7.85355ZM2.08334 12.0833L1.72979 12.4369L7.56312 18.2702L7.91668 17.9167L8.27023 17.5631L2.4369 11.7298L2.08334 12.0833ZM17.9167 7.91666L18.2702 7.56311L12.4369 1.72977L12.0833 2.08333L11.7298 2.43688L17.5631 8.27022L17.9167 7.91666ZM12.0833 2.08333L11.7298 1.72977L8.39646 5.06311L8.75001 5.41666L9.10356 5.77021L12.4369 2.43688L12.0833 2.08333ZM5.41668 8.74999L5.06312 8.39644L1.72979 11.7298L2.08334 12.0833L2.4369 12.4369L5.77023 9.10355L5.41668 8.74999ZM14.5833 11.25L14.9369 11.6035L18.2702 8.27022L17.9167 7.91666L17.5631 7.56311L14.2298 10.8964L14.5833 11.25ZM7.91668 17.9167L8.27023 18.2702L11.6036 14.9369L11.25 14.5833L10.8965 14.2298L7.56312 17.5631L7.91668 17.9167ZM7.50001 12.5L7.85356 12.8535L12.8536 7.85355L12.5 7.49999L12.1465 7.14644L7.14646 12.1464L7.50001 12.5Z" fill="currentColor"/>`,providers:`<path d="M10.0001 4.37562V2.875M13 4.37793V2.87793M7.00014 4.37793V2.875M10 17.1279V15.6279M13 17.1279V15.6279M7 17.1279V15.6279M15.625 13.0029H17.125M15.625 7.00293H17.125M15.625 10.0029H17.125M2.875 10.0029H4.375M2.875 13.0029H4.375M2.875 7.00293H4.375M4.375 4.37793H15.625V15.6279H4.375V4.37793ZM12.6241 10.0022C12.6241 11.4519 11.4488 12.6272 9.99908 12.6272C8.54934 12.6272 7.37408 11.4519 7.37408 10.0022C7.37408 8.55245 8.54934 7.3772 9.99908 7.3772C11.4488 7.3772 12.6241 8.55245 12.6241 10.0022Z" stroke="currentColor" stroke-linecap="square"/>`,models:`<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 10C12.2917 10 10 12.2917 10 17.5C10 12.2917 7.70833 10 2.5 10C7.70833 10 10 7.70833 10 2.5C10 7.70833 12.2917 10 17.5 10Z" stroke="currentColor"/>`,appearance:`<path d="M2.707 14.707L14.707 2.707M2.707 9.06L9.06 2.707M2.707 3.413L3.413 2.707M8.354 14.707L14.707 8.354M14.000 14.706L14.706 14.000" stroke="currentColor" stroke-linecap="square"/>`,notifications:`<path d="M15.389 7.278V9.611C15.389 10.593 15.389 11.389 15.389 11.389H11.833M6.056 11.389H2.5C2.5 11.389 2.5 10.593 2.5 9.611V4.278C2.5 3.296 2.5 2.5 2.5 2.5H9.945M6.056 11.389V13.611H8.944H11.833V11.389M6.056 11.389H11.833" stroke="currentColor"/><circle cx="14.5" cy="4.5" r="2" stroke="currentColor" fill="currentColor"/>`,extensions:`<path d="M9.166 6.805V9.305M11.834 6.805V9.305M6.5 6.805V9.305M2.5 2.5V13.61H15.833V2.5H2.5Z" stroke="currentColor" stroke-linecap="square"/>`,cube:`<path d="M10 2.5L16.5 6.25V13.75L10 17.5L3.5 13.75V6.25L10 2.5Z" stroke="currentColor"/><path d="M10 10L16.5 6.25M10 10V17.5M10 10L3.5 6.25" stroke="currentColor"/>`,"post-skill":`<rect x="2.5" y="3.5" width="15" height="13" rx="1.5" stroke="currentColor"/><path d="M5.5 7.5H10.5M5.5 10.5H14.5" stroke="currentColor"/>`,"arrow-undo-down":`<path d="M4.08333 11.0859L1.75 8.7526L4.08333 6.41927M2.33333 8.7526L12.5417 8.7526L12.5417 3.21094L7 3.21094" stroke="currentColor" stroke-width="1" stroke-linecap="square"/>`};function To(e){return e===`magnifying-glass`||e===`arrow-undo-down`||e===`subagent`?`0 0 16 16`:`0 0 20 20`}var Eo=W(`<svg><use>`),Do={flask:{viewBox:`0 0 16 16`,body:`<path d="M5.5 2H10.5M6 2V6L2.5 12C2 13 2.5 14 3.5 14H12.5C13.5 14 14 13 13.5 12L10 6V2M4.25 9H11.75" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>`},edit:{viewBox:`0 0 16 16`,body:`<path d="M13.5556 8.21529V13.5556H2.44446L2.44446 2.44445H7.78474M6.00002 8.16216V10H7.83786L14 3.83784L12.1622 2L6.00002 8.16216Z" stroke="currentColor"/>`},"folder-add-left":{viewBox:`0 0 16 16`,body:`<path d="M7.5 13.3333H1.5V2H6.83333L8.83333 4H14.8333V6M10.1667 11.3333H15.5M12.8333 8.66667V14" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/>`},folder:{viewBox:`0 0 16 16`,body:`<path d="M2.545 3.364V12.636H13.455V5H8.545L6.909 3.364H2.545Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/>`},branch:{viewBox:`0 0 16 16`,body:`<path d="M5.118 5.686V10.314M5.118 5.686C5.97 5.686 6.661 4.995 6.661 4.143C6.661 3.291 5.97 2.6 5.118 2.6C4.266 2.6 3.575 3.291 3.575 4.143C3.575 4.995 4.266 5.686 5.118 5.686ZM5.118 10.314C4.266 10.314 3.575 11.005 3.575 11.857C3.575 12.709 4.266 13.4 5.118 13.4C5.97 13.4 6.661 12.709 6.661 11.857M5.118 10.314C5.97 10.314 6.661 11.005 6.661 11.857M10.882 5.686C11.734 5.686 12.425 4.995 12.425 4.143C12.425 3.291 11.734 2.6 10.882 2.6C10.03 2.6 9.339 3.291 9.339 4.143C9.339 4.995 10.03 5.686 10.882 5.686ZM10.882 5.686V9.457C10.882 10.783 9.807 11.857 8.482 11.857H6.661" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>`},"branch-out":{viewBox:`0 0 16 16`,body:`<path d="M10.4225 3.35355L12.9024 5.83344L10.4225 8.31333" stroke="currentColor"/><path d="M1 12.2852H4.23042C4.89912 12.2852 5.52359 11.951 5.89452 11.3946L9.00783 6.72462C8.37877 6.16823 10.0032 5.83402 10.6719 5.83402H12.9024" stroke="currentColor"/><path d="M8.5 12.2852H14" stroke="currentColor" stroke-linejoin="round"/>`},"grid-plus":{viewBox:`0 0 16 16`,body:`<path d="M13.9948 11.668H9.32812M11.6641 9.33203V13.9987M6.66667 9.33203V13.9987H2V9.33203H6.66667ZM6.66667 2V6.66667H2V2H6.66667ZM13.9948 2V6.66667H9.32812V2H13.9948Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/>`},help:{viewBox:`0 0 16 16`,body:`<path d="M6.33345 6.33349V5.00015H9.66679V7.00015L8.00015 8.00015V9.66679M8.27485 11.6819H7.71897M14.4446 8.00011C14.4446 11.5593 11.5593 14.4446 8.00011 14.4446C4.44094 14.4446 1.55566 11.5593 1.55566 8.00011C1.55566 4.44094 4.44094 1.55566 8.00011 1.55566C11.5593 1.55566 14.4446 4.44094 14.4446 8.00011Z" stroke="currentColor" stroke-linecap="square"/>`},info:{viewBox:`0 0 16 16`,body:`<g transform="translate(2 2)"><path d="M12 12H0V0H12V12ZM1 1V11H11V1H1ZM6.5791 4.81641V9.37207H5.5791V5.81641H4.46777V4.81641H6.5791ZM6.85645 2.62891V3.62891H5.30078V2.62891H6.85645Z" fill="currentColor"/></g>`},"circle-exclamation":{viewBox:`0 0 16 16`,body:`<path d="M8.75 11.75H7.25V10.25H8.75V11.75Z" fill="currentColor"/><path d="M8.75 9.25H7.25V4.25H8.75V9.25Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C9.93286 1 11.684 1.7836 12.9502 3.0498C14.2164 4.31601 15 6.06714 15 8C15 11.866 11.866 15 8 15C6.06714 15 4.31601 14.2164 3.0498 12.9502C1.7836 11.684 1 9.93286 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 9.65699 2.67148 11.1559 3.75781 12.2422C4.84415 13.3285 6.34301 14 8 14C11.3137 14 14 11.3137 14 8C14 6.34301 13.3285 4.84415 12.2422 3.75781C11.1559 2.67148 9.65699 2 8 2Z" fill="currentColor"/>`},"sidebar-right":{viewBox:`0 0 20 20`,body:`<path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor"/>`},status:{viewBox:`0 0 20 20`,body:`<path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>`},"status-active":{viewBox:`0 0 20 20`,body:`<path d="M18 2H2V10H18V2Z" fill="currentColor" fill-opacity="0.1"/><path d="M2 18H18V10H2V18Z" fill="currentColor" fill-opacity="0.1"/><path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>`},"magnifying-glass":{viewBox:`0 0 16 16`,body:`<path d="M14 14L10.3454 10.3454M6.88889 11.7778C9.58889 11.7778 11.7778 9.58889 11.7778 6.88889C11.7778 4.18889 9.58889 2 6.88889 2C4.18889 2 2 4.18889 2 6.88889C2 9.58889 4.18889 11.7778 6.88889 11.7778Z" stroke="currentColor"/>`},menu:{viewBox:`0 0 16 16`,body:`<path d="M2 8H14M2 4.664H14M2 11.336H14" stroke="currentColor"/>`},plus:{viewBox:`0 0 16 16`,body:`<path d="M8 2.88867V13.1109" stroke="currentColor" stroke-linejoin="round"/><path d="M2.88867 8H13.1109" stroke="currentColor" stroke-linejoin="round"/>`},"settings-gear":{viewBox:`0 0 16 16`,body:`<path d="M7.99998 1.3335L14 4.66683V11.3335L7.99998 14.6668L2 11.3335V4.66683L7.99998 1.3335Z" stroke="currentColor"/><path d="M9.99998 8.00016C9.99998 9.10476 9.10458 10.0002 7.99998 10.0002C6.89538 10.0002 5.99998 9.10476 5.99998 8.00016C5.99998 6.89556 6.89538 6.00016 7.99998 6.00016C9.10458 6.00016 9.99998 6.89556 9.99998 8.00016Z" stroke="currentColor"/>`},"chevron-down":{viewBox:`0 0 16 16`,body:`<path d="M5 6.5L8 9.5L11 6.5" stroke="currentColor"/>`},collapse:{viewBox:`0 0 16 16`,body:`<path d="M8 1V6M11 3L8 6L5 3" stroke="currentColor"/><path d="M8 15V10M11 13L8 10L5 13" stroke="currentColor"/><path d="M4 8H6" stroke="currentColor"/><path d="M7 8H9" stroke="currentColor"/><path d="M10 8H12" stroke="currentColor"/>`},check:{viewBox:`0 0 16 16`,body:`<path d="M3.53613 8.17857L6.39328 11.75L12.4647 4.25" stroke="currentColor"/>`},monitor:{viewBox:`0 0 16 16`,body:`<path d="M4.05559 9.38889H0.500007C0.500007 9.38889 0.500017 8.59298 0.500017 7.61112V2.27778C0.500017 1.29594 0.500102 0.5 0.500102 0.5H13.3889C13.3889 0.5 13.3889 1.29594 13.3889 2.27778V7.61112C13.3889 8.59298 13.3889 9.38889 13.3889 9.38889H9.83336M4.05559 9.38889V11.6111H6.94448H9.83336V9.38889M4.05559 9.38889H9.83336" transform="translate(1.05556 1.94444)" stroke="currentColor"/>`},"workspace-new":{viewBox:`0 0 16 16`,body:`<path d="M2 10.7578V14.0011H5.24324M13.9991 5.24324V2H10.7559M13.9991 10.7578V14.0011H10.7559M2 5.24324V2H5.24324" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/><path d="M8 4.5V11.5M4.5 8H11.5" stroke="currentColor" stroke-linejoin="round"/>`},"workspace-isolated":{viewBox:`0 0 16 16`,body:`<path d="M10.5 10.5V5.5H5.5V10.5H10.5Z" fill="currentColor"/><rect x="2.5" y="2.5" width="11" height="11" stroke="currentColor"/>`},workspace:{viewBox:`0 0 16 16`,body:`<path d="M2 10.668V14.0013H10.6667M13.9974 10.6667V2H2.66406M13.9974 10.668V14.0013H10.6641M2 10V2H5.33333" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/><path d="M10.6693 10.6654V5.33203H5.33594V10.6654H10.6693Z" fill="currentColor"/>`},"outline-worktree":{viewBox:`0 0 16 16`,body:`<path d="M12 3.11133L14.3885 5.49977L12 7.88822M14.5 5.49972H10.058L5.13456 11.8139M14.5 11.6606L8.5 11.6606M5.50012 11.6597H1.5" stroke="currentColor"/>`},"outline-trash":{viewBox:`0 0 16 16`,body:`<path d="M2.44434 4.22224H13.5554M5.99994 4.22224V2.44446C5.99994 1.95557 5.99992 1.55557 5.99992 1.55557H9.99989C9.99989 1.55557 9.99994 1.95557 9.99994 2.44446V4.22224M6.55545 7.77779L6.7485 11.7778M9.44437 7.77779L9.2513 11.7778M12.1756 6.88891L11.8666 12.7556C11.8168 13.7068 11.7748 14.4445 11.7748 14.4445H4.22511C4.22511 14.4445 4.18392 13.7067 4.13414 12.7556L3.82509 6.88891" stroke="currentColor"/>`},close:{viewBox:`0 0 20 20`,body:`<path d="M14.4446 5.55566L5.55566 14.4446M5.55566 5.55566L14.4446 14.4446" stroke="currentColor" stroke-linejoin="round"/>`},"xmark-small":{viewBox:`0 0 16 16`,body:`<path d="M4.25 11.75L11.75 4.25M11.75 11.75L4.25 4.25" stroke="currentColor"/>`},"outline-xmark":{viewBox:`0 0 16 16`,body:`<path fill-rule="evenodd" clip-rule="evenodd" d="M4.99487 5.70186L7.29297 7.99995L4.99487 10.2981L5.70198 11.0052L8.00008 8.70706L10.2982 11.0052L11.0053 10.2981L8.70718 7.99995L11.0053 5.70186L10.2982 4.99475L8.00008 7.29285L5.70198 4.99475L4.99487 5.70186Z" fill="currentColor"/>`},"outline-chevron-down":{viewBox:`0 0 16 16`,body:`<path d="M5 6.5L8 9.5L11 6.5" stroke="currentColor"/>`},"outline-dots":{viewBox:`0 0 16 16`,body:`<path d="M2.5 7.5H3.5V8.5H2.5V7.5Z" stroke="currentColor"/><path d="M7.5 7.5H8.5V8.5H7.5V7.5Z" stroke="currentColor"/><path d="M12.5 7.5H13.5V8.5H12.5V7.5Z" stroke="currentColor"/>`},expand:{viewBox:`0 0 16 16`,body:`<path d="M8.25 6.17773V1.17773M11.25 4.17773L8.25 1.17773L5.25 4.17773" stroke="currentColor"/><path d="M8.25 9.17773V14.1777M11.25 11.1777L8.25 14.1777L5.25 11.1777" stroke="currentColor"/><path d="M4.25 7.67773H12.25" stroke="currentColor"/>`},filetree:{viewBox:`0 0 16 16`,body:`<path d="M2.5 1.5V12.2484H6.75M2.5 4.74838H6.75" stroke="currentColor"/><rect x="8.5" y="3.2168" width="6" height="3" fill="none" stroke="currentColor"/><rect x="8.5" y="10.75" width="6" height="3" fill="none" stroke="currentColor"/>`},split:{viewBox:`0 0 16 16`,body:`<path d="M1 14H15L15 2H1V14Z" stroke="currentColor"/><rect x="3" y="4" width="4" height="8" fill="currentColor" fill-opacity="0.5"/><rect x="9" y="4" width="4" height="8" fill="currentColor" fill-opacity="0.5"/>`},unified:{viewBox:`0 0 16 16`,body:`<path d="M3.00001 4.00045L12.9998 4L13 6.99955L3 7L3.00001 4.00045Z" fill="currentColor" fill-opacity="0.5"/><path d="M3.0001 9H13L12.9999 12H3L3.0001 9Z" fill="currentColor" fill-opacity="0.5"/><path d="M1 14H15L15 2H1V14Z" stroke="currentColor"/>`},review:{viewBox:`0 0 20 20`,body:`<path d="M7 14.5H13M7 7.99512H10.0049M10.0049 7.99512H13M10.0049 7.99512V5M10.0049 7.99512V11M18 18V2L2 2L2 18H18Z" stroke="currentColor"/>`},"window-analytics":{viewBox:`0 0 16 16`,body:`<path d="M14.5 9.8333V13.5H1.5V2.5H7.1667M9.5 2.5V7.5H14.5V2.5H9.5Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/>`},trash:{viewBox:`0 0 20 20`,body:`<path d="M4.58342 17.9134L4.58369 17.4134L4.22787 17.5384L4.22766 18.0384H4.58342V17.9134ZM15.4167 17.9134V18.0384H15.7725L15.7723 17.5384L15.4167 17.9134ZM2.08342 3.95508V3.45508H1.58342V3.95508H2.08342V4.45508V3.95508ZM17.9167 4.45508V4.95508H18.4167V4.45508H17.9167V3.95508V4.45508ZM4.16677 4.58008L3.66701 4.5996L4.22816 17.5379L4.72792 17.4934L5.22767 17.4489L4.66652 4.54055L4.16677 4.58008ZM4.58342 18.0384V17.9134H15.4167V18.0384V18.5384H4.58342V18.0384ZM15.4167 17.9134L15.8332 17.5379L16.2498 4.5996L15.7501 4.58008L15.2503 4.56055L14.8337 17.4989L15.4167 17.9134ZM15.8334 4.58008V4.08008H4.16677V4.58008V5.08008H15.8334V4.58008ZM2.08342 4.45508V4.95508H4.16677V4.58008V4.08008H2.08342V4.45508ZM15.8334 4.58008V5.08008H17.9167V4.45508V3.95508H15.8334V4.58008ZM6.83951 4.35149L7.432 4.55047C7.79251 3.47701 8.80699 2.70508 10.0001 2.70508V2.20508V1.70508C8.25392 1.70508 6.77335 2.83539 6.24702 4.15251L6.83951 4.35149ZM10.0001 2.20508V2.70508C11.1932 2.70508 12.2077 3.47701 12.5682 4.55047L13.1607 4.35149L13.7532 4.15251C13.2269 2.83539 11.7463 1.70508 10.0001 1.70508V2.20508Z" fill="currentColor"/>`},"outline-sliders":{viewBox:`0 0 16 16`,body:`<path d="M11.7779 4.66675H14.4446M11.7779 4.66675C11.7779 5.77132 10.8825 6.66675 9.77789 6.66675C8.67332 6.66675 7.77789 5.77132 7.77789 4.66675M11.7779 4.66675C11.7779 3.56218 10.8825 2.66675 9.77789 2.66675C8.67332 2.66675 7.77789 3.56218 7.77789 4.66675M1.55566 4.66675H7.77789M4.22233 11.3334H1.55566M4.22233 11.3334C4.22233 12.438 5.11776 13.3334 6.22233 13.3334C7.3269 13.3334 8.22233 12.438 8.22233 11.3334M4.22233 11.3334C4.22233 10.2288 5.11776 9.33341 6.22233 9.33341C7.3269 9.33341 8.22233 10.2288 8.22233 11.3334M14.4446 11.3334H8.22233" stroke="currentColor"/>`},"outline-copy":{viewBox:`0 0 16 16`,body:`<path d="M4.14908 11.0081H1.76282V1.51758H9.1038V2.55588M14.2225 4.99681H6.75397V14.4873H14.2225V4.99681Z" stroke="currentColor"/>`},"arrow-up-right":{viewBox:`0 0 16 16`,body:`<path d="M11 9.56V5H6.44M11 5L5 11" stroke="currentColor"/>`},"outline-square-arrow":{viewBox:`0 0 16 16`,body:`<path d="M13.5555 6.66656V2.44434H9.33326M13.5555 2.44434L7.99993 7.99989M13.5555 9.33324V13.5555C13.5555 13.5555 12.7599 13.5555 11.7777 13.5555H2.44438C2.44438 13.5555 2.44438 12.7599 2.44438 11.7777V4.22213C2.44438 3.2399 2.44434 2.44435 2.44434 2.44435H6.66661" stroke="currentColor"/>`},"outline-arrow-to-corner-top-right":{viewBox:`0 0 16 16`,body:`<path d="M2 8.5V2H14V14H8M5 5.66667H10.3333V11M3.66797 12.333L9.94292 6.05806" stroke="currentColor" stroke-linecap="square"/>`},"outline-hexagonal-warning":{viewBox:`0 0 16 16`,body:`<path d="M10.6667 1.33325H5.33272L1.33334 5.33325L1.33342 10.6917L5.3327 14.691L10.6667 14.6909L14.6911 10.6917V5.33255L10.6667 1.33325Z" stroke="currentColor"/><path d="M8 10.6667H8.00667" stroke="currentColor" stroke-linecap="square"/><path d="M8 7.99992V5.33325" stroke="currentColor" stroke-linecap="square"/>`},"outline-share":{viewBox:`0 0 16 16`,body:`<path d="M13.5554 10.4445V13.5556C13.5554 13.5556 12.7599 13.5556 11.7777 13.5556H4.22211C3.23989 13.5556 2.44434 13.5556 2.44434 13.5556V10.4445M4.88878 5.55557L7.99989 2.44446L11.111 5.55557M7.99989 2.44446L7.99989 9.11112" stroke="currentColor"/>`},"outline-eye":{viewBox:`0 0 20 20`,body:`<path d="M2.5 10s3.33-5.42 7.5-5.42S17.5 10 17.5 10s-3.33 5.42-7.5 5.42S2.5 10 2.5 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="10" r="2.5" stroke="currentColor"/>`},"outline-eye-slash":{viewBox:`0 0 20 20`,body:`<path d="M2.5 10s3.33-5.42 7.5-5.42S17.5 10 17.5 10s-3.33 5.42-7.5 5.42S2.5 10 2.5 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="10" r="2.5" stroke="currentColor"/><path d="M3 3 17 17" stroke="currentColor" stroke-linecap="round"/>`},reset:{viewBox:`0 0 20 20`,body:`<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>`},"outline-reset":{viewBox:`0 0 20 20`,body:`<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>`},"fill-triangle-down":{viewBox:`0 0 16 16`,body:`<path d="M5.37624 6.75194C5.1818 6.41861 5.42223 6 5.80813 6H10.1921C10.578 6 10.8184 6.41861 10.624 6.75194L8.43199 10.5096C8.23905 10.8404 7.76115 10.8404 7.56821 10.5096L5.37624 6.75194Z" fill="currentColor"/>`},archive:{viewBox:`0 0 16 16`,body:`<path d="M13.1112 13.5555V14.0555H13.6112V13.5555H13.1112ZM2.889 13.5555H2.389L2.389 14.0555H2.889V13.5555ZM3.38901 5.55546L3.38901 5.05546L2.38901 5.05546L2.38901 5.55546L2.88901 5.55546L3.38901 5.55546ZM14.4446 2.44434H14.9446V1.94434L14.4446 1.94434L14.4446 2.44434ZM14.4446 5.55545L14.4446 6.05545L14.9446 6.05545V5.55545H14.4446ZM1.55566 5.55546L1.05566 5.55545L1.05566 6.05546L1.55566 6.05546L1.55566 5.55546ZM1.5557 2.44436L1.5557 1.94436L1.05571 1.94436L1.0557 2.44435L1.5557 2.44436ZM13.1112 5.55546H12.6112V13.5555H13.1112H13.6112V5.55546H13.1112ZM2.889 13.5555H3.389L3.38901 5.55546L2.88901 5.55546L2.38901 5.55546L2.389 13.5555H2.889ZM14.4446 2.44434H13.9446V5.55545H14.4446H14.9446V2.44434H14.4446ZM1.55566 5.55546L2.05566 5.55547L2.0557 2.44436L1.5557 2.44436L1.0557 2.44435L1.05566 5.55545L1.55566 5.55546ZM6.22234 8.22213V8.72213H9.7779V8.22213V7.72213H6.22234V8.22213ZM13.1112 13.5555V13.0555H2.889V13.5555V14.0555H13.1112V13.5555ZM1.5557 2.44436L1.5557 2.94436L14.4446 2.94434L14.4446 2.44434L14.4446 1.94434L1.5557 1.94436L1.5557 2.44436ZM14.4446 5.55545L14.4446 5.05545L1.55566 5.05546L1.55566 5.55546L1.55566 6.05546L14.4446 6.05545L14.4446 5.55545Z" fill="currentColor"/>`}},Oo=`opencode-v2-icon-sprite`,ko=e=>`opencode-v2-icon-${e}`,Ao=!1;function jo(e){return Do[e]||{body:wo[e],viewBox:To(e)}}function Mo(){return Array.from(new Set([...Object.keys(wo),...Object.keys(Do)])).map(e=>`<symbol id="${ko(e)}" viewBox="${jo(e).viewBox}">${jo(e).body}</symbol>`).join(``)}function No(){if(Ao||typeof document>`u`)return;let e=document.getElementById(Oo);if(e){e.innerHTML=Mo(),Ao=!0;return}let t=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);t.id=Oo,t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`width`,`0`),t.setAttribute(`height`,`0`),t.style.position=`absolute`,t.style.overflow=`hidden`,t.innerHTML=Mo(),document.body.insertBefore(t,document.body.firstChild),Ao=!0}function X(e){let[t,n]=V(e,[`name`,`size`]),r=()=>Do[t.name]||wo[t.name]?t.name:`plus`,i=()=>jo(r()),a=t.size===`small`?14:t.size===`large`?20:16;return oe(No),(()=>{var e=Eo(),t=e.firstChild;return gt(e,B(n,{"data-slot":`icon-svg`,get"data-directional"(){return r()===`arrow-left`||r()===`arrow-right`||r()===`chevron-left`||r()===`chevron-right`?``:void 0},width:a,height:a,get viewBox(){return i().viewBox},fill:`none`,xmlns:`http://www.w3.org/2000/svg`,get"aria-hidden"(){return n[`aria-hidden`]??`true`}}),!0,!0),j(()=>G(t,`href`,`#${ko(r())}`)),e})()}function Po(e){let[t,n]=V(e,[`variant`,`size`,`icon`,`class`,`classList`]);return z(Ba,B(n,{"data-component":`button-v2`,get"data-size"(){return t.size||`normal`},get"data-variant"(){return t.variant||`neutral`},get"data-icon"(){return t.icon},get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return[z(H,{get when(){return t.icon},children:e=>z(X,{get name(){return e()}})}),U(()=>e.children)]}}))}var Fo=W(`<span>`);function Io(e){let[t,n]=V(e,[`class`,`classList`,`children`,`appearance`,`variant`]);return(()=>{var e=Fo();return gt(e,B(n,{"data-component":`tag`,get"data-appearance"(){return t.appearance??`compact`},get"data-variant"(){return t.variant??`neutral`},get classList(){return{...t.classList,[t.class??``]:!!t.class}}}),!1,!0),K(e,()=>t.children),e})()}function Lo(e){let[t,n]=V(e,[`variant`,`size`,`icon`,`class`,`classList`,`state`]);return z(Ba,B(n,{"data-component":`icon-button-v2`,get"data-size"(){return t.size||`normal`},get"data-variant"(){return t.variant||`neutral`},get"data-state"(){return t.state},get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return t.icon}}))}var Ro=new Set([`Avst`,`Arab`,`Armi`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),zo=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function Bo(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script??``;return Ro.has(t)}let t=e.split(`-`)[0];return zo.has(t)}function Vo(e){return Bo(e)?`rtl`:`ltr`}function Ho(){let e=typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:Vo(e)}}var Uo=Ho(),Wo=new Set;function Go(){Uo=Ho();for(let e of Wo)e(Uo)}function Ko(){let[e,t]=A(Uo),n=N(()=>e());return oe(()=>{Wo.size===0&&window.addEventListener(`languagechange`,Go),Wo.add(t),F(()=>{Wo.delete(t),Wo.size===0&&window.removeEventListener(`languagechange`,Go)})}),{locale:()=>n().locale,direction:()=>n().direction}}var qo=L();function Jo(){let e=Ko();return R(qo)||e}var Yo=new Map;function Xo(e){let{locale:t}=Jo(),n=N(()=>t()+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``));return N(()=>{let r=n(),i;return Yo.has(r)&&(i=Yo.get(r)),i||(i=new Intl.Collator(t(),e),Yo.set(r,i)),i})}var Zo=[`top`,`right`,`bottom`,`left`],Qo=Math.min,$o=Math.max,es=Math.round,ts=Math.floor,ns=e=>({x:e,y:e}),rs={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function is(e,t,n){return $o(e,Qo(t,n))}function as(e,t){return typeof e==`function`?e(t):e}function os(e){return e.split(`-`)[0]}function ss(e){return e.split(`-`)[1]}function cs(e){return e===`x`?`y`:`x`}function ls(e){return e===`y`?`height`:`width`}function us(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ds(e){return cs(us(e))}function fs(e,t,n){n===void 0&&(n=!1);let r=ss(e),i=ds(e),a=ls(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=xs(o)),[o,xs(o)]}function ps(e){let t=xs(e);return[ms(e),t,ms(t)]}function ms(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var hs=[`left`,`right`],gs=[`right`,`left`],_s=[`top`,`bottom`],vs=[`bottom`,`top`];function ys(e,t,n){switch(e){case`top`:case`bottom`:return n?t?gs:hs:t?hs:gs;case`left`:case`right`:return t?_s:vs;default:return[]}}function bs(e,t,n,r){let i=ss(e),a=ys(os(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ms)))),a}function xs(e){let t=os(e);return rs[t]+e.slice(t.length)}function Ss(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Cs(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ss(e)}function ws(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ts(e,t,n){let{reference:r,floating:i}=e,a=us(t),o=ds(t),s=ls(o),c=os(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ss(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Es(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=as(t,e),p=Cs(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ws(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ws(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ds=50,Os=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Es},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ts(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ds&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ts(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ks=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=as(e,t)||{};if(l==null)return{};let d=Cs(u),f={x:n,y:r},p=ds(i),m=ls(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Qo(d[_],T),D=Qo(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=is(E,k,O),A=!c.arrow&&ss(i)!=null&&k!==ee&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,te=A?k<E?k-E:k-O:0;return{[p]:f[p]+te,data:{[p]:ee,centerOffset:k-ee-te,...A&&{alignmentOffset:te}},reset:A}}}),As=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=as(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=os(r),_=us(o),v=os(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[xs(o)]:ps(o)),x=p!==`none`;!d&&x&&b.push(...bs(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=fs(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===us(t)||T.every(e=>us(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=us(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function js(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ms(e){return Zo.some(t=>e[t]>=0)}var Ns=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=as(e,t);switch(i){case`referenceHidden`:{let e=js(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ms(e)}}}case`escaped`:{let e=js(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ms(e)}}}default:return{}}}}},Ps=new Set([`left`,`top`]);async function Fs(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=os(n),s=ss(n),c=us(n)===`y`,l=Ps.has(o)?-1:1,u=a&&c?-1:1,d=as(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Is=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Fs(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ls=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=as(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=us(i),p=cs(f),m=u[p],h=u[f],g=(e,t)=>is(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Rs=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=as(e,t),c=await i.detectOverflow(t,s),l=os(n),u=ss(n),d=us(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Qo(p-c[m],g),y=Qo(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*$o(c.left,c.right):S=p-2*$o(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function zs(){return typeof window<`u`}function Bs(e){return Us(e)?(e.nodeName||``).toLowerCase():`#document`}function Vs(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hs(e){return((Us(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Us(e){return zs()?e instanceof Node||e instanceof Vs(e).Node:!1}function Ws(e){return zs()?e instanceof Element||e instanceof Vs(e).Element:!1}function Gs(e){return zs()?e instanceof HTMLElement||e instanceof Vs(e).HTMLElement:!1}function Ks(e){return!zs()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Vs(e).ShadowRoot}function qs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ic(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Js(e){return/^(table|td|th)$/.test(Bs(e))}function Ys(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Xs=/transform|translate|scale|rotate|perspective|filter/,Zs=/paint|layout|strict|content/,Qs=e=>!!e&&e!==`none`,$s;function ec(e){let t=Ws(e)?ic(e):e;return Qs(t.transform)||Qs(t.translate)||Qs(t.scale)||Qs(t.rotate)||Qs(t.perspective)||!nc()&&(Qs(t.backdropFilter)||Qs(t.filter))||Xs.test(t.willChange||``)||Zs.test(t.contain||``)}function tc(e){let t=oc(e);for(;Gs(t)&&!rc(t);){if(ec(t))return t;if(Ys(t))return null;t=oc(t)}return null}function nc(){return $s??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),$s}function rc(e){return/^(html|body|#document)$/.test(Bs(e))}function ic(e){return Vs(e).getComputedStyle(e)}function ac(e){return Ws(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oc(e){if(Bs(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ks(e)&&e.host||Hs(e);return Ks(t)?t.host:t}function sc(e){let t=oc(e);return rc(t)?(e.ownerDocument||e).body:Gs(t)&&qs(t)?t:sc(t)}function cc(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=sc(e),i=r===e.ownerDocument?.body,a=Vs(r);if(i){let e=lc(a);return t.concat(a,a.visualViewport||[],qs(r)?r:[],e&&n?cc(e):[])}return t.concat(r,cc(r,[],n))}function lc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uc(e){let t=ic(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Gs(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=es(n)!==a||es(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function dc(e){return Ws(e)?e:e.contextElement}function fc(e){let t=dc(e);if(!Gs(t))return ns(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=uc(t),o=(a?es(n.width):n.width)/r,s=(a?es(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var pc=ns(0);function mc(e){let t=Vs(e);return!nc()||!t.visualViewport?pc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hc(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Vs(e)}function gc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=dc(e),o=ns(1);t&&(r?Ws(r)&&(o=fc(r)):o=fc(e));let s=hc(a,n,r)?mc(a):ns(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Vs(a),t=Ws(r)?Vs(r):r,n=e,i=lc(n);for(;i&&t!==n;){let e=fc(i),t=i.getBoundingClientRect(),r=ic(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Vs(i),i=lc(n)}}return ws({width:u,height:d,x:c,y:l})}function _c(e,t){let n=ac(e).scrollLeft;return t?t.left+n:gc(Hs(e)).left+n}function vc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-_c(e,n),y:n.top+t.scrollTop}}function yc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Hs(r),s=t?Ys(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ns(1),u=ns(0),d=Gs(r);if((d||!a)&&((Bs(r)!==`body`||qs(o))&&(c=ac(r)),d)){let e=gc(r);l=fc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?vc(o,c):ns(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function bc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function xc(e){let t=ac(e),n=e.ownerDocument.body,r=$o(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=$o(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+_c(e),o=-t.scrollTop;return ic(n).direction===`rtl`&&(a+=$o(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Sc=25;function Cc(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Vs(e),a=Hs(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!nc()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(_c(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Sc&&(s-=o)}return{width:s,height:c,x:l,y:u}}function wc(e,t){let n=gc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=fc(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Tc(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Cc(e,n,t);else if(t===`document`)r=xc(Hs(e));else if(Ws(t))r=wc(t,n);else{let n=mc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ws(r)}function Ec(e,t){let n=t.get(e);if(n)return n;let r=cc(e,[],!1).filter(e=>Ws(e)&&Bs(e)!==`body`),i=null,a=ic(e).position===`fixed`,o=a?oc(e):e;for(;Ws(o)&&!rc(o);){let e=ic(o),t=ec(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=oc(o)}return t.set(e,r),r}function Dc(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ys(t)?[]:Ec(t,this._c):[].concat(n),r],o=Tc(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Tc(t,a[e],i);s=$o(n.top,s),c=Qo(n.right,c),l=Qo(n.bottom,l),u=$o(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Oc(e){let{width:t,height:n}=uc(e);return{width:t,height:n}}function kc(e,t,n){let r=Gs(t),i=Hs(t),a=n===`fixed`,o=gc(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ns(0);if((r||!a)&&((Bs(t)!==`body`||qs(i))&&(s=ac(t)),r)){let e=gc(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=_c(i));let l=i&&!r&&!a?vc(i,s):ns(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ac(e){return ic(e).position===`static`}function jc(e,t){if(!Gs(e)||ic(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Hs(e)===n&&(n=n.ownerDocument.body),n}function Mc(e,t){let n=Vs(e);if(Ys(e))return n;if(!Gs(e)){let t=oc(e);for(;t&&!rc(t);){if(Ws(t)&&!Ac(t))return t;t=oc(t)}return n}let r=jc(e,t);for(;r&&Js(r)&&Ac(r);)r=jc(r,t);return r&&rc(r)&&Ac(r)&&!ec(r)?n:r||tc(e)||n}var Nc=async function(e){let t=this.getOffsetParent||Mc,n=this.getDimensions,r=await n(e.floating);return{reference:kc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pc(e){return ic(e).direction===`rtl`}var Fc={convertOffsetParentRelativeRectToViewportRelativeRect:yc,getDocumentElement:Hs,getClippingRect:Dc,getOffsetParent:Mc,getElementRects:Nc,getClientRects:bc,getDimensions:Oc,getScale:fc,isElement:Ws,isRTL:Pc};function Ic(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lc(e,t,n){let r=null,i,a=Hs(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=ts(d),h=ts(a.clientWidth-(u+f)),g=ts(a.clientHeight-(d+p)),_=ts(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:$o(0,Qo(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ic(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Vs(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Rc(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=dc(e),u=i||a?[...l?cc(l):[],...t?cc(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Lc(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?gc(e):null;c&&g();function g(){let t=gc(e);h&&!Ic(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var zc=Is,Bc=Ls,Vc=As,Hc=Rs,Uc=Ns,Wc=ks,Gc=(e,t,n)=>{let r=new Map,i=n??{},a={...Fc,...i.platform,_c:r};return Os(e,t,{...i,platform:a})},Kc=W(`<svg display=block viewBox="0 0 30 30"style=transform:scale(1.02)><g><path fill=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z></path><path stroke=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z>`),qc=L();function Jc(){let e=R(qc);if(e===void 0)throw Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var Yc=30,Xc=Yc/2,Zc={top:180,right:-90,bottom:0,left:90};function Qc(e){let t=Jc(),[n,r]=V(Hi({size:Yc},e),[`ref`,`style`,`size`]),i=()=>t.currentPlacement().split(`-`)[0],a=$c(t.contentRef),o=()=>a()?.getPropertyValue(`background-color`)||`none`,s=()=>a()?.getPropertyValue(`border-${i()}-color`)||`none`,c=()=>a()?.getPropertyValue(`border-${i()}-width`)||`0px`,l=()=>Number.parseInt(c())*2*(Yc/n.size),u=()=>`rotate(${Zc[i()]} ${Xc} ${Xc}) translate(0 2)`;return z(Ea,B({as:`div`,ref(e){var r=Xr(t.setArrowRef,n.ref);typeof r==`function`&&r(e)},"aria-hidden":`true`,get style(){return Yr({position:`absolute`,"font-size":`${n.size}px`,width:`1em`,height:`1em`,"pointer-events":`none`,fill:o(),stroke:s(),"stroke-width":l()},n.style)}},r,{get children(){var e=Kc(),t=e.firstChild;return t.firstChild.nextSibling,j(()=>G(t,`transform`,u())),e}}))}function $c(e){let[t,n]=A();return M(()=>{let t=e();t&&n(ai(t).getComputedStyle(t))}),t}function el(e){let t=Jc(),[n,r]=V(e,[`ref`,`style`]);return z(Ea,B({as:`div`,ref(e){var r=Xr(t.setPositionerRef,n.ref);typeof r==`function`&&r(e)},"data-popper-positioner":``,get style(){return Yr({position:`absolute`,top:0,left:0,"min-width":`max-content`},n.style)}},r))}function tl(e){let{x:t=0,y:n=0,width:r=0,height:i=0}=e??{};if(typeof DOMRect==`function`)return new DOMRect(t,n,r,i);let a={x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:n+i,left:t};return{...a,toJSON:()=>a}}function nl(e,t){return{contextElement:e,getBoundingClientRect:()=>{let n=t(e);return n?tl(n):e?e.getBoundingClientRect():tl()}}}function rl(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var il={top:`bottom`,right:`left`,bottom:`top`,left:`right`};function al(e,t){let[n,r]=e.split(`-`),i=il[n];return r?n===`left`||n===`right`?`${i} ${r===`start`?`top`:`bottom`}`:r===`start`?`${i} ${t===`rtl`?`right`:`left`}`:`${i} ${t===`rtl`?`left`:`right`}`:`${i} center`}function ol(e){let t=Hi({getAnchorRect:e=>e?.getBoundingClientRect(),placement:`bottom`,gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=A(),[i,a]=A(),[o,s]=A(t.placement),c=()=>nl(t.anchorRef?.(),t.getAnchorRect),{direction:l}=Jo();async function u(){let e=c(),r=n(),a=i();if(!e||!r)return;let o=(a?.clientHeight||0)/2,u=typeof t.gutter==`number`?t.gutter+o:t.gutter??o;r.style.setProperty(`--kb-popper-content-overflow-padding`,`${t.overflowPadding}px`),e.getBoundingClientRect();let d=[zc(({placement:e})=>{let n=!!e.split(`-`)[1];return{mainAxis:u,crossAxis:n?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let e=typeof t.flip==`string`?t.flip.split(` `):void 0;if(e!==void 0&&!e.every(rl))throw Error("`flip` expects a spaced-delimited list of placements");d.push(Vc({padding:t.overflowPadding,fallbackPlacements:e}))}(t.slide||t.overlap)&&d.push(Bc({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),d.push(Hc({padding:t.overflowPadding,apply({availableWidth:e,availableHeight:n,rects:i}){let a=Math.round(i.reference.width);e=Math.floor(e),n=Math.floor(n),r.style.setProperty(`--kb-popper-anchor-width`,`${a}px`),r.style.setProperty(`--kb-popper-content-available-width`,`${e}px`),r.style.setProperty(`--kb-popper-content-available-height`,`${n}px`),t.sameWidth&&(r.style.width=`${a}px`),t.fitViewport&&(r.style.maxWidth=`${e}px`,r.style.maxHeight=`${n}px`)}})),t.hideWhenDetached&&d.push(Uc({padding:t.detachedPadding})),a&&d.push(Wc({element:a,padding:t.arrowPadding}));let f=await Gc(e,r,{placement:t.placement,strategy:`absolute`,middleware:d,platform:{...Fc,isRTL:()=>l()===`rtl`}});if(s(f.placement),t.onCurrentPlacementChange?.(f.placement),!r)return;r.style.setProperty(`--kb-popper-content-transform-origin`,al(f.placement,l()));let p=Math.round(f.x),m=Math.round(f.y),h;if(t.hideWhenDetached&&(h=f.middlewareData.hide?.referenceHidden?`hidden`:`visible`),Object.assign(r.style,{top:`0`,left:`0`,transform:`translate3d(${p}px, ${m}px, 0)`,visibility:h}),a&&f.middlewareData.arrow){let{x:e,y:t}=f.middlewareData.arrow,n=f.placement.split(`-`)[0];Object.assign(a.style,{left:e==null?``:`${e}px`,top:t==null?``:`${t}px`,[n]:`100%`})}}M(()=>{let e=c(),t=n();e&&t&&F(Rc(e,t,u,{elementResize:typeof ResizeObserver==`function`}))}),M(()=>{let e=n(),r=t.contentRef?.();e&&r&&queueMicrotask(()=>{e.style.zIndex=getComputedStyle(r).zIndex})});let d={currentPlacement:o,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:a};return z(qc.Provider,{value:d,get children(){return t.children}})}var sl=Object.assign(ol,{Arrow:Qc,Context:qc,usePopperContext:Jc,Positioner:el});La({},{Arrow:()=>Qc,Content:()=>ul,Portal:()=>dl,Root:()=>yl,Tooltip:()=>xl,Trigger:()=>bl,useTooltipContext:()=>ll});var cl=L();function ll(){let e=R(cl);if(e===void 0)throw Error("[kobalte]: `useTooltipContext` must be used within a `Tooltip` component");return e}function ul(e){let t=ll(),[n,r]=V(Hi({id:t.generateId(`content`)},e),[`ref`,`style`]);return M(()=>F(t.registerContentId(r.id))),z(H,{get when(){return t.contentPresent()},get children(){return z(sl.Positioner,{get children(){return z(ka,B({ref(e){var r=Xr(e=>{t.setContentRef(e)},n.ref);typeof r==`function`&&r(e)},role:`tooltip`,disableOutsidePointerEvents:!1,get style(){return Yr({"--kb-tooltip-content-transform-origin":`var(--kb-popper-content-transform-origin)`,position:`relative`},n.style)},onFocusOutside:e=>e.preventDefault(),onDismiss:()=>t.hideTooltip(!0)},()=>t.dataset(),r))}})}})}function dl(e){let t=ll();return z(H,{get when(){return t.contentPresent()},get children(){return z(Mt,e)}})}function fl(e,t,n){let r=e.split(`-`)[0],i=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=[],s=i.left+i.width/2,c=i.top+i.height/2;switch(r){case`top`:o.push([i.left,c]),o.push([a.left,a.bottom]),o.push([a.left,a.top]),o.push([a.right,a.top]),o.push([a.right,a.bottom]),o.push([i.right,c]);break;case`right`:o.push([s,i.top]),o.push([a.left,a.top]),o.push([a.right,a.top]),o.push([a.right,a.bottom]),o.push([a.left,a.bottom]),o.push([s,i.bottom]);break;case`bottom`:o.push([i.left,c]),o.push([a.left,a.top]),o.push([a.left,a.bottom]),o.push([a.right,a.bottom]),o.push([a.right,a.top]),o.push([i.right,c]);break;case`left`:o.push([s,i.top]),o.push([a.right,a.top]),o.push([a.left,a.top]),o.push([a.left,a.bottom]),o.push([a.right,a.bottom]),o.push([s,i.bottom])}return o}var pl={},ml=0,hl=!1,gl,_l,vl;function yl(e){let t=`tooltip-${Ue()}`,n=`${++ml}`,r=Hi({id:t,openDelay:700,closeDelay:300,skipDelayDuration:300},e),[i,a]=V(r,[`id`,`open`,`defaultOpen`,`onOpenChange`,`disabled`,`triggerOnFocusOnly`,`openDelay`,`closeDelay`,`skipDelayDuration`,`ignoreSafeArea`,`forceMount`,`onCurrentPlacementChange`]),o,[s,c]=A(),[l,u]=A(),[d,f]=A(),[p,m]=A(a.placement),h=Na({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:e=>i.onOpenChange?.(e)}),{present:g}=io({show:()=>i.forceMount||h.isOpen(),element:()=>d()??null}),_=()=>{pl[n]=y},v=()=>{for(let e in pl)e!==n&&(pl[e](!0),delete pl[e])},y=(e=!1)=>{e||i.closeDelay&&i.closeDelay<=0?(window.clearTimeout(o),o=void 0,h.close()):o||=window.setTimeout(()=>{o=void 0,h.close()},i.closeDelay),window.clearTimeout(gl),gl=void 0,i.skipDelayDuration&&i.skipDelayDuration>=0&&(vl=window.setTimeout(()=>{window.clearTimeout(vl),vl=void 0},i.skipDelayDuration)),hl&&(window.clearTimeout(_l),_l=window.setTimeout(()=>{delete pl[n],_l=void 0,hl=!1},i.closeDelay))},b=()=>{clearTimeout(o),o=void 0,v(),_(),hl=!0,h.open(),window.clearTimeout(gl),gl=void 0,window.clearTimeout(_l),_l=void 0,window.clearTimeout(vl),vl=void 0},x=()=>{v(),_(),!h.isOpen()&&!gl&&!hl?gl=window.setTimeout(()=>{gl=void 0,hl=!0,b()},i.openDelay):h.isOpen()||b()},S=(e=!1)=>{!e&&i.openDelay&&i.openDelay>0&&!o&&!vl?x():b()},C=()=>{window.clearTimeout(gl),gl=void 0,hl=!1},w=()=>{window.clearTimeout(o),o=void 0},T=e=>ri(l(),e)||ri(d(),e),E=e=>{let t=l(),n=d();if(t&&n)return fl(e,t,n)},D=e=>{let t=e.target;if(T(t)){w();return}if(!i.ignoreSafeArea){let t=E(p());if(t&&Vi(Bi(e),t)){w();return}}o||y()};M(()=>{if(!h.isOpen())return;let e=oi();e.addEventListener(`pointermove`,D,!0),F(()=>{e.removeEventListener(`pointermove`,D,!0)})}),M(()=>{let e=l();if(!e||!h.isOpen())return;let t=t=>{let n=t.target;ri(n,e)&&y(!0)},n=ai();n.addEventListener(`scroll`,t,{capture:!0}),F(()=>{n.removeEventListener(`scroll`,t,{capture:!0})})}),F(()=>{clearTimeout(o),pl[n]&&delete pl[n]});let O={dataset:N(()=>({"data-expanded":h.isOpen()?``:void 0,"data-closed":h.isOpen()?void 0:``})),isOpen:h.isOpen,isDisabled:()=>i.disabled??!1,triggerOnFocusOnly:()=>i.triggerOnFocusOnly??!1,contentId:s,contentPresent:g,openTooltip:S,hideTooltip:y,cancelOpening:C,generateId:ni(()=>r.id),registerContentId:Ha(c),isTargetOnTooltip:T,setTriggerRef:u,setContentRef:f};return z(cl.Provider,{value:O,get children(){return z(sl,B({anchorRef:l,contentRef:d,onCurrentPlacementChange:e=>{m(e),i.onCurrentPlacementChange?.(e)}},a))}})}function bl(e){let t,n=ll(),[r,i]=V(e,[`ref`,`onPointerEnter`,`onPointerLeave`,`onPointerDown`,`onClick`,`onFocus`,`onBlur`]),a=!1,o=!1,s=!1,c=()=>{a=!1},l=()=>{!n.isOpen()&&(o||s)&&n.openTooltip(s)},u=e=>{n.isOpen()&&!o&&!s&&n.hideTooltip(e)};return F(()=>{oi(t).removeEventListener(`pointerup`,c)}),z(Ea,B({as:`button`,ref(e){var i=Xr(e=>{n.setTriggerRef(e),t=e},r.ref);typeof i==`function`&&i(e)},get"aria-describedby"(){return U(()=>!!n.isOpen())()?n.contentId():void 0},onPointerEnter:e=>{vi(e,r.onPointerEnter),!(e.pointerType===`touch`||n.triggerOnFocusOnly()||n.isDisabled()||e.defaultPrevented)&&(o=!0,l())},onPointerLeave:e=>{vi(e,r.onPointerLeave),e.pointerType!==`touch`&&(o=!1,s=!1,n.isOpen()?u():n.cancelOpening())},onPointerDown:e=>{vi(e,r.onPointerDown),a=!0,oi(t).addEventListener(`pointerup`,c,{once:!0})},onClick:e=>{vi(e,r.onClick),o=!1,s=!1,u(!0)},onFocus:e=>{vi(e,r.onFocus),!(n.isDisabled()||e.defaultPrevented||a)&&(s=!0,l())},onBlur:e=>{vi(e,r.onBlur);let t=e.relatedTarget;n.isTargetOnTooltip(t)||(o=!1,s=!1,u(!0))},type:`button`},()=>n.dataset(),i))}var xl=Object.assign(yl,{Arrow:Qc,Content:ul,Portal:dl,Trigger:bl});function Sl(e){let t,[n,r]=$t({open:!1,block:!1,expand:!1}),[i,a]=V(e,[`children`,`appearance`,`class`,`contentClass`,`contentStyle`,`inactive`,`forceOpen`,`triggerTabIndex`,`ignoreSafeArea`,`value`]),o=()=>r(`open`,!1),s=()=>i.forceOpen!==void 0,c=()=>{let e=document.activeElement;return!t||!e?!1:t.contains(e)},l=(e=n.expand)=>{!e&&n.block&&(t?.matches(`:hover`)||c()||r(`block`,!1))},u=()=>{let e=!!t?.querySelector(`[aria-expanded="true"], [data-expanded]`);if(r(`expand`,e),e){r(`block`,!0),o();return}l(e)},d=()=>{r(`block`,!0),o()},f=()=>{c()||o(),l()};M(()=>{if(!t)return;P(u);let e=new MutationObserver(u);e.observe(t,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`aria-expanded`,`data-expanded`]}),F(()=>e.disconnect())});let p=!1;return z(qe,{get children(){return[z(Je,{get when(){return i.inactive},get children(){return i.children}}),z(Je,{when:!0,get children(){return z(yl,B({gutter:4,openDelay:400,skipDelayDuration:300},a,{closeDelay:0,get ignoreSafeArea(){return i.ignoreSafeArea??!0},get open(){return U(()=>!!s())()?i.forceOpen:n.open},onOpenChange:e=>{if(!s()&&!(n.block&&e)){if(p){p=!1;return}r(`open`,e)}},get children(){return[z(bl,{ref(e){var n=t;typeof n==`function`?n(e):t=e},as:`div`,get tabIndex(){return i.triggerTabIndex},"data-component":`tooltip-v2-trigger`,get class(){return i.class},onPointerDownCapture:d,onKeyDownCapture:e=>{(e.key===`Enter`||e.key===` `)&&d()},onPointerLeave:f,onFocusOut:()=>requestAnimationFrame(()=>l()),get children(){return i.children}}),z(dl,{get children(){return z(ul,{ref:e=>{let n=t?.closest(`[data-theme]`)?.getAttribute(`data-theme`);n&&e.setAttribute(`data-theme`,n)},"data-component":`tooltip-v2`,get"data-appearance"(){return i.appearance??`compact`},get"data-placement"(){return e.placement},get"data-force-open"(){return i.forceOpen},get class(){return i.contentClass},get style(){return i.contentStyle},onPointerDownOutside:e=>{(t===e.target||e.target instanceof Node&&t?.contains(e.target))&&(p=!0),e.preventDefault()},get children(){return i.value}})}})]}}))}})]}})}var Cl={"ui.sessionReview.title":`Session changes`,"ui.sessionReview.title.git":`Git changes`,"ui.sessionReview.title.branch":`Branch changes`,"ui.sessionReview.title.lastTurn":`Last turn changes`,"ui.sessionReview.diffStyle.unified":`Unified`,"ui.sessionReview.diffStyle.split":`Split`,"ui.sessionReview.expandAll":`Expand all`,"ui.sessionReview.collapseAll":`Collapse all`,"ui.sessionReview.change.added":`Added`,"ui.sessionReview.change.removed":`Removed`,"ui.sessionReview.change.modified":`Modified`,"ui.sessionReview.image.loading":`Loading…`,"ui.sessionReview.image.placeholder":`Image`,"ui.sessionReview.largeDiff.title":`Diff too large to render`,"ui.sessionReview.largeDiff.meta":`Limit: {{limit}} changed lines. Current: {{current}} changed lines.`,"ui.sessionReview.largeDiff.renderAnyway":`Render anyway`,"ui.sessionReviewV2.expandMode":`Expand or collapse diff`,"ui.sessionReviewV2.filterFiles":`Filter files`,"ui.sessionReviewV2.toggleSidebar":`Toggle file tree`,"ui.sessionReviewV2.showAllLines":`Show all lines`,"ui.sessionReviewV2.hideNonDiffLines":`Hide non-diff lines`,"ui.sessionReviewV2.unifiedDiff":`Unified diff`,"ui.sessionReviewV2.splitDiff":`Split diff`,"ui.sessionReviewV2.previousFile":`Previous file`,"ui.sessionReviewV2.nextFile":`Next file`,"ui.sessionReviewV2.diffView":`Diff view`,"ui.sessionReviewV2.empty.noGit.title":`No tracked changes`,"ui.sessionReviewV2.empty.noGit.description":`Track, review, and undo changes in this project`,"ui.sessionReviewV2.empty.noGit.action":`Create Git repository`,"ui.sessionReviewV2.empty.noGit.actionLoading":`Creating Git repository…`,"ui.sessionReviewV2.empty.changes.title":`No file changes yet`,"ui.sessionReviewV2.empty.changes.description":`Project changes will appear here`,"ui.sessionReview.openFile":`Open file`,"ui.sessionReview.selection.line":`line {{line}}`,"ui.sessionReview.selection.lines":`lines {{start}}-{{end}}`,"ui.fileMedia.kind.image":`image`,"ui.fileMedia.kind.audio":`audio`,"ui.fileMedia.state.removed":`Removed {{kind}} file.`,"ui.fileMedia.state.loading":`Loading {{kind}}…`,"ui.fileMedia.state.error":`Unable to load {{kind}}.`,"ui.fileMedia.state.unavailable":`{{kind}} preview unavailable.`,"ui.fileMedia.binary.title":`Binary file`,"ui.fileMedia.binary.description.path":`{{path}} is binary.`,"ui.fileMedia.binary.description.default":`Binary content`,"ui.lineComment.label.prefix":`Comment on `,"ui.lineComment.label.suffix":``,"ui.lineComment.editorLabel.prefix":`Commenting on `,"ui.lineComment.editorLabel.suffix":``,"ui.lineComment.placeholder":`Add comment`,"ui.lineComment.contextPlaceholder":`Add context for this change`,"ui.lineComment.submit":`Comment`,"ui.lineComment.cancel":`Cancel`,"ui.sessionTurn.steps.show":`Show steps`,"ui.sessionTurn.steps.hide":`Hide steps`,"ui.sessionTurn.summary.response":`Response`,"ui.sessionTurn.diff.showMore":`Show more changes ({{count}})`,"ui.sessionTurn.diffs.changed.one":`{{count}} Changed file`,"ui.sessionTurn.diffs.changed.other":`{{count}} Changed files`,"ui.sessionTurn.diffs.showAll":`Show all`,"ui.sessionTurn.diffs.showLess":`Show less`,"ui.sessionTurn.diffs.more":`+{{count}} more files`,"ui.sessionTurn.retry.retrying":`retrying`,"ui.sessionTurn.retry.inSeconds":`in {{seconds}}s`,"ui.sessionTurn.retry.attempt":`attempt #{{attempt}}`,"ui.sessionTurn.retry.attemptLine":`{{line}} - attempt #{{attempt}}`,"ui.sessionTurn.retry.attemptLabel":`Attempt {{attempt}}`,"ui.sessionTurn.retry.attemptRetrying":`Attempt {{attempt}} - {{line}}`,"ui.sessionTurn.retry.geminiHot":`gemini is way too hot right now`,"ui.sessionTurn.error.freeUsageExceeded":`Free usage exceeded`,"ui.sessionTurn.error.addCredits":`Add credits`,"dialog.usageExceeded.freeTier.title":`Free limit reached`,"dialog.usageExceeded.freeTier.description":`Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.`,"dialog.usageExceeded.freeTier.actionLabel":`Subscribe`,"dialog.usageExceeded.accountRateLimit.title":`Go limit reached`,"dialog.usageExceeded.accountRateLimit.description":`Usage limit reached. To continue using this model now, enable usage from your available balance`,"dialog.usageExceeded.accountRateLimit.actionLabel":`Open settings`,"ui.sessionTurn.status.delegating":`Delegating work`,"ui.sessionTurn.status.planning":`Planning next steps`,"ui.sessionTurn.status.gatheringContext":`Exploring`,"ui.sessionTurn.status.gatheredContext":`Explored`,"ui.sessionTurn.status.searchingCodebase":`Searching the codebase`,"ui.sessionTurn.status.searchingWeb":`Searching the web`,"ui.sessionTurn.status.makingEdits":`Making edits`,"ui.sessionTurn.status.runningCommands":`Running commands`,"ui.sessionTurn.status.thinking":`Thinking`,"ui.sessionTurn.status.thinkingWithTopic":`Thinking - {{topic}}`,"ui.sessionTurn.status.gatheringThoughts":`Gathering thoughts`,"ui.sessionTurn.status.consideringNextSteps":`Considering next steps`,"ui.messagePart.diagnostic.error":`Error`,"ui.messagePart.title.edit":`Edit`,"ui.messagePart.title.write":`Write`,"ui.messagePart.option.typeOwnAnswer":`Type your own answer`,"ui.messagePart.review.title":`Review your answers`,"ui.messagePart.questions.dismissed":`Questions dismissed`,"ui.messagePart.compaction":`Session compacted`,"ui.messagePart.providerCompaction":`Session compacted by provider`,"ui.messagePart.context.details":`Details`,"ui.messagePart.context.read.one":`{{count}} read`,"ui.messagePart.context.read.other":`{{count}} reads`,"ui.messagePart.context.search.one":`{{count}} search`,"ui.messagePart.context.search.other":`{{count}} searches`,"ui.messagePart.context.list.one":`{{count}} list`,"ui.messagePart.context.list.other":`{{count}} lists`,"ui.messagePart.context.notice.one":`{{count}} Notice`,"ui.messagePart.context.notice.other":`{{count}} Notices`,"ui.messagePart.context.thought.one":`{{count}} Thought`,"ui.messagePart.context.thought.other":`{{count}} Thoughts`,"ui.messagePart.context.match.one":`({{count}} match)`,"ui.messagePart.context.match.other":`({{count}} matches)`,"ui.messagePart.tools.used":`Used {{tools}}`,"ui.list.loading":`Loading`,"ui.list.empty":`No results`,"ui.list.clearFilter":`Clear filter`,"ui.list.emptyWithFilter.prefix":`No results for`,"ui.list.emptyWithFilter.suffix":``,"ui.fileSearch.placeholder":`Find`,"ui.fileSearch.previousMatch":`Previous match`,"ui.fileSearch.nextMatch":`Next match`,"ui.fileSearch.close":`Close search`,"ui.messageNav.newMessage":`New message`,"ui.promptInput.noMatchingItems":`No matching items`,"ui.promptInput.commands":`Commands`,"ui.promptInput.dropFiles":`Drop files to add`,"ui.promptInput.dropFiles.image":`Drop images or files to add`,"ui.promptInput.dropFiles.pdf":`Drop PDFs or files to add`,"ui.promptInput.dropFiles.imagePdf":`Drop images, PDFs, or files to add`,"ui.promptInput.removeAttachment":`Remove attachment`,"ui.promptInput.label":`Prompt`,"ui.promptInput.placeholder.shell":`Enter shell command…`,"ui.promptInput.placeholder.normal":`Ask anything, {{slash}} for commands, {{at}} for context…`,"ui.promptInput.placeholder.followUp":`Add follow-up, {{slash}} for commands, {{at}} for context…`,"ui.promptInput.add":`Add images and files`,"ui.promptInput.attachments":`Images and files`,"ui.promptInput.context":`Context`,"ui.promptInput.shell":`Shell command`,"ui.promptInput.chooseAgent":`Choose agent`,"ui.promptInput.chooseModel":`Choose model`,"ui.promptInput.chooseVariant":`Choose model variant`,"ui.promptInput.send":`Send`,"ui.promptInput.stop":`Stop`,"ui.promptInput.exitShell":`Exit`,"ui.promptInput.steer":`Steer`,"ui.promptInput.queue":`Queue`,"ui.promptInput.steerHint":`Send without interrupting`,"ui.tabs.close":`Close tab`,"ui.textField.copyToClipboard":`Copy to clipboard`,"ui.textField.copyLink":`Copy link`,"ui.textField.copied":`Copied`,"ui.imagePreview.alt":`Image preview`,"ui.scrollView.ariaLabel":`scrollable content`,"ui.tool.read":`Read`,"ui.tool.loaded":`Loaded`,"ui.tool.loadedFile":`Loaded {{path}}`,"ui.tool.loadedSkill":`Loaded {{name}} skill`,"ui.tool.loadedSkills.one":`Loaded {{name}} skill`,"ui.tool.loadedSkills.other":`Loaded {{name}} skills`,"ui.tool.list":`List`,"ui.tool.glob":`Glob`,"ui.tool.grep":`Grep`,"ui.tool.task":`Task`,"ui.tool.browser":`Browser`,"ui.tool.webfetch":`Webfetch`,"ui.tool.websearch":`Web Search`,"ui.tool.websearch.provider":`{{provider}} Web Search`,"ui.tool.shell":`Shell`,"ui.tool.shell.writingCommand":`Writing command…`,"ui.tool.shell.exit":`Command exited with code {{code}}`,"ui.tool.shell.timeout":`Command timed out`,"ui.tool.shell.cancelled":`Command cancelled`,"ui.tool.execute":`Execute`,"ui.tool.patch":`Patch`,"ui.tool.questions":`Questions`,"ui.tool.questions.numbered":`Questions {{number}}`,"ui.tool.agent":`{{type}} Agent`,"ui.tool.agent.default":`Agent`,"ui.tool.agent.delegating":`Delegating agent…`,"ui.tool.skill":`Skill`,"ui.basicTool.called":"Called `{{tool}}`","ui.toolErrorCard.failed":`Failed`,"ui.toolErrorCard.copyError":`Copy error`,"ui.common.file.one":`file`,"ui.common.file.other":`files`,"ui.common.question.one":`question`,"ui.common.question.other":`questions`,"ui.common.add":`Add`,"ui.common.clear":`Clear`,"ui.common.file":`File`,"ui.common.back":`Back`,"ui.common.cancel":`Cancel`,"ui.common.confirm":`Confirm`,"ui.common.dismiss":`Dismiss`,"ui.common.close":`Close`,"ui.common.next":`Next`,"ui.common.submit":`Submit`,"ui.common.showMore":`Show more`,"ui.common.moreCount.one":`+{{count}} more`,"ui.common.moreCount.other":`+{{count}} more`,"ui.permission.deny":`Deny`,"ui.permission.allowAlways":`Allow always`,"ui.permission.allowOnce":`Allow once`,"ui.message.expand":`Expand message`,"ui.message.collapse":`Collapse message`,"ui.message.copy":`Copy`,"ui.message.copyMessage":`Copy message`,"ui.message.forkMessage":`Fork to new session`,"ui.message.revertMessage":`Revert message`,"ui.message.copyResponse":`Copy response`,"ui.message.copied":`Copied`,"ui.message.thought":`Thought`,"ui.message.duration.seconds":`{{count}}s`,"ui.message.duration.minutesSeconds":`{{minutes}}m {{seconds}}s`,"ui.message.interrupted":`Interrupted`,"ui.sessionTimeline.notice.model":`Model`,"ui.sessionTimeline.notice.modelSwitched":`Switched to {{model}}`,"ui.sessionTimeline.notice.agentChanged":`Agent changed`,"ui.sessionTimeline.notice.movedTo":`Moved to`,"ui.sessionTimeline.notice.movedTooltip":`Session working directory changed`,"ui.sessionTimeline.notice.failed":`{{actor}} failed`,"ui.sessionTimeline.notice.cancelled":`{{actor}} cancelled`,"ui.sessionTimeline.notice.finished":`{{actor}} finished`,"ui.sessionTimeline.notice.instructionsUpdated":`Instructions updated`,"ui.message.queued":`Queued`,"ui.message.attachment.alt":`attachment`,"ui.patch.action.deleted":`Deleted`,"ui.patch.action.created":`Created`,"ui.patch.action.moved":`Moved`,"ui.patch.action.patched":`Patched`,"ui.question.subtitle.answered":`{{count}} answered`,"ui.question.answer.none":`(no answer)`,"ui.question.review.notAnswered":`(not answered)`,"ui.question.multiHint":`Select all answers that apply`,"ui.question.singleHint":`Select one answer`,"ui.question.custom.placeholder":`Type your answer…`},wl=new Map;function Tl(e,t){let n=wl.get(e);if(n)return n.select(t);let r=new Intl.PluralRules(e);return wl.size>=32&&wl.delete(wl.keys().next().value),wl.set(e,r),r.select(t)}function El(e,t){return`${e}.${t}`}function Dl(e,t){return t?e.replace(/{{\s*([^}]+?)\s*}}/g,(e,n)=>{let r=t[String(n)];return r===void 0?``:String(r)}):e}var Ol={locale:()=>`en`,t:(e,t)=>Dl(Cl[e]??String(e),t),plural:(e,t,n)=>Ol.pluralForm(e,Tl(Ol.locale(),t),{...n,count:t}),pluralForm:(e,t,n)=>{let r=Cl;return Dl(r[El(e,t)]??r[`${e}.other`]??`${e}.other`,n)}},kl=L(Ol);function Al(){return R(kl)}var jl=W(`<span data-slot=text-input-v2-leading-icon>`),Ml=W(`<button type=button data-slot=text-input-v2-icon-button>`),Nl=W(`<div data-component=text-input-v2><div data-slot=text-input-v2-value><input>`);function Pl(e){let t=Al(),[n,r]=V(e,[`class`,`classList`,`leadingIcon`,`showCopyButton`,`showClearButton`,`copyLabel`,`clearLabel`,`onCopyClick`,`onClearClick`,`numeric`,`invalid`,`appearance`,`disabled`]);return(()=>{var e=Nl(),i=e.firstChild,a=i.firstChild;return K(i,z(H,{get when(){return n.leadingIcon},get children(){var e=jl();return K(e,()=>n.leadingIcon),e}}),a),gt(a,B(r,{get type(){return r.type??`text`},get disabled(){return n.disabled},get"aria-invalid"(){return n.invalid?!0:void 0},"data-slot":`text-input-v2-input`}),!1,!1),K(e,z(H,{get when(){return n.showClearButton||n.showCopyButton},get children(){var e=Ml();return e.$$click=e=>{if(n.showClearButton){n.onClearClick?.(e);return}n.onCopyClick?.(e)},e.$$mousedown=e=>{n.showClearButton&&e.preventDefault()},K(e,z(X,{get name(){return n.showClearButton?`xmark-small`:`copy`}})),j(r=>{var i=n.showClearButton?`clear`:`copy`,a=n.showClearButton?n.clearLabel??t.t(`ui.common.clear`):n.copyLabel??t.t(`ui.message.copy`),o=n.disabled;return i!==r.e&&G(e,`data-variant`,r.e=i),a!==r.t&&G(e,`aria-label`,r.t=a),o!==r.a&&(e.disabled=r.a=o),r},{e:void 0,t:void 0,a:void 0}),e}}),null),j(t=>{var r=n.disabled?``:void 0,i=n.invalid?``:void 0,a=n.numeric?``:void 0,o=n.appearance??`base`,s=n.leadingIcon?``:void 0,c={...n.classList,[n.class??``]:!!n.class};return r!==t.e&&G(e,`data-disabled`,t.e=r),i!==t.t&&G(e,`data-invalid`,t.t=i),a!==t.a&&G(e,`data-numeric`,t.a=a),o!==t.o&&G(e,`data-appearance`,t.o=o),s!==t.i&&G(e,`data-leading-icon`,t.i=s),t.n=pt(e,c,t.n),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),e})()}ct([`mousedown`,`click`]);var Fl=class{collection;direction;orientation;constructor(e,t,n){this.collection=e,this.direction=t,this.orientation=n}flipDirection(){return this.direction()===`rtl`&&this.orientation()===`horizontal`}getKeyLeftOf(e){if(this.flipDirection())return this.getNextKey(e);if(this.orientation()===`horizontal`)return this.getPreviousKey(e)}getKeyRightOf(e){if(this.flipDirection())return this.getPreviousKey(e);if(this.orientation()===`horizontal`)return this.getNextKey(e)}getKeyAbove(e){if(this.orientation()===`vertical`)return this.getPreviousKey(e)}getKeyBelow(e){if(this.orientation()===`vertical`)return this.getNextKey(e)}getFirstKey(){let e=this.collection().getFirstKey();if(e!=null)return this.collection().getItem(e)?.disabled&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection().getLastKey();if(e!=null)return this.collection().getItem(e)?.disabled&&(e=this.getPreviousKey(e)),e}getNextKey(e){let t=e,n;do if(t=this.collection().getKeyAfter(t)??this.collection().getFirstKey(),t==null||(n=this.collection().getItem(t),n==null))return;while(n.disabled);return t}getPreviousKey(e){let t=e,n;do if(t=this.collection().getKeyBefore(t)??this.collection().getLastKey(),t==null||(n=this.collection().getItem(t),n==null))return;while(n.disabled);return t}};function Il(e){let t=e.startIndex??0,n=e.startLevel??0,r=[],i=t=>{if(t==null)return``;let n=e.getKey??`key`,r=ei(n)?t[n]:n(t);return r==null?``:String(r)},a=t=>{if(t==null)return``;let n=e.getTextValue??`textValue`,r=ei(n)?t[n]:n(t);return r==null?``:String(r)},o=t=>{if(t==null)return!1;let n=e.getDisabled??`disabled`;return(ei(n)?t[n]:n(t))??!1},s=t=>{if(t!=null)return ei(e.getSectionChildren)?t[e.getSectionChildren]:e.getSectionChildren?.(t)};for(let c of e.dataSource){if(ei(c)||$r(c)){r.push({type:`item`,rawValue:c,key:String(c),textValue:String(c),disabled:o(c),level:n,index:t}),t++;continue}if(s(c)!=null){r.push({type:`section`,rawValue:c,key:``,textValue:``,disabled:!1,level:n,index:t}),t++;let i=s(c)??[];if(i.length>0){let a=Il({dataSource:i,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...a),t+=a.length}}else r.push({type:`item`,rawValue:c,key:i(c),textValue:a(c),disabled:o(c),level:n,index:t}),t++}return r}function Ll(e,t=[]){return N(()=>{let n=Il({dataSource:q(e.dataSource),getKey:q(e.getKey),getTextValue:q(e.getTextValue),getDisabled:q(e.getDisabled),getSectionChildren:q(e.getSectionChildren)});for(let e=0;e<t.length;e++)t[e]();return e.factory(n)})}var Rl=class e extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};function zl(e){let[t,n]=Aa(e);return[()=>t()??new Rl,n]}function Bl(e){return hi()?e.altKey:e.ctrlKey}function Vl(e){return di()?e.metaKey:e.ctrlKey}function Hl(e){return new Rl(e)}function Ul(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Wl(e){let t=Hi({selectionMode:`none`,selectionBehavior:`toggle`},e),[n,r]=A(!1),[i,a]=A(),[o,s]=zl({value:N(()=>{let e=q(t.selectedKeys);return e==null?e:Hl(e)}),defaultValue:N(()=>{let e=q(t.defaultSelectedKeys);return e==null?new Rl:Hl(e)}),onChange:e=>t.onSelectionChange?.(e)}),[c,l]=A(q(t.selectionBehavior));return M(()=>{let e=o();q(t.selectionBehavior)===`replace`&&c()===`toggle`&&typeof e==`object`&&e.size===0&&l(`replace`)}),M(()=>{l(q(t.selectionBehavior)??`toggle`)}),{selectionMode:()=>q(t.selectionMode),disallowEmptySelection:()=>q(t.disallowEmptySelection)??!1,selectionBehavior:c,setSelectionBehavior:l,isFocused:n,setFocused:r,focusedKey:i,setFocusedKey:a,selectedKeys:o,setSelectedKeys:e=>{(q(t.allowDuplicateSelectionEvents)||!Ul(e,o()))&&s(e)}}}function Gl(e){let[t,n]=A(``),[r,i]=A(-1);return{typeSelectHandlers:{onKeyDown:a=>{if(q(e.isDisabled))return;let o=q(e.keyboardDelegate),s=q(e.selectionManager);if(!o.getKeyForSearch)return;let c=Kl(a.key);if(!c||a.ctrlKey||a.metaKey)return;c===` `&&t().trim().length>0&&(a.preventDefault(),a.stopPropagation());let l=n(e=>e+c),u=o.getKeyForSearch(l,s.focusedKey())??o.getKeyForSearch(l);u==null&&ql(l)&&(l=l[0],u=o.getKeyForSearch(l,s.focusedKey())??o.getKeyForSearch(l)),u!=null&&(s.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),i(window.setTimeout(()=>n(``),500))}}}}function Kl(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function ql(e){return e.split(``).every(t=>t===e[0])}function Jl(e,t,n){let r=B({selectOnFocus:()=>q(e.selectionManager).selectionBehavior()===`replace`},e),i=()=>n?.()??t(),{direction:a}=Jo(),o={top:0,left:0};mn(()=>q(r.isVirtualized)?void 0:i(),`scroll`,()=>{let e=i();e&&(o={top:e.scrollTop,left:e.scrollLeft})});let{typeSelectHandlers:s}=Gl({isDisabled:()=>q(r.disallowTypeAhead),keyboardDelegate:()=>q(r.keyboardDelegate),selectionManager:()=>q(r.selectionManager)}),c=()=>q(r.orientation)??`vertical`,l=e=>{vi(e,s.onKeyDown),e.altKey&&e.key===`Tab`&&e.preventDefault();let n=t();if(!n?.contains(e.target))return;let i=q(r.selectionManager),o=q(r.selectOnFocus),l=t=>{t!=null&&(i.setFocusedKey(t),e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&!Bl(e)&&i.replaceSelection(t))},u=q(r.keyboardDelegate),d=q(r.shouldFocusWrap),f=i.focusedKey();switch(e.key){case c()===`vertical`?`ArrowDown`:`ArrowRight`:if(u.getKeyBelow){e.preventDefault();let t;t=f==null?u.getFirstKey?.():u.getKeyBelow(f),t==null&&d&&(t=u.getFirstKey?.(f)),l(t)}break;case c()===`vertical`?`ArrowUp`:`ArrowLeft`:if(u.getKeyAbove){e.preventDefault();let t;t=f==null?u.getLastKey?.():u.getKeyAbove(f),t==null&&d&&(t=u.getLastKey?.(f)),l(t)}break;case c()===`vertical`?`ArrowLeft`:`ArrowUp`:if(u.getKeyLeftOf){e.preventDefault();let t=a()===`rtl`,n;n=f==null?t?u.getFirstKey?.():u.getLastKey?.():u.getKeyLeftOf(f),l(n)}break;case c()===`vertical`?`ArrowRight`:`ArrowDown`:if(u.getKeyRightOf){e.preventDefault();let t=a()===`rtl`,n;n=f==null?t?u.getLastKey?.():u.getFirstKey?.():u.getKeyRightOf(f),l(n)}break;case`Home`:if(u.getFirstKey){e.preventDefault();let t=u.getFirstKey(f,Vl(e));t!=null&&(i.setFocusedKey(t),Vl(e)&&e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&i.replaceSelection(t))}break;case`End`:if(u.getLastKey){e.preventDefault();let t=u.getLastKey(f,Vl(e));t!=null&&(i.setFocusedKey(t),Vl(e)&&e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&i.replaceSelection(t))}break;case`PageDown`:u.getKeyPageBelow&&f!=null&&(e.preventDefault(),l(u.getKeyPageBelow(f)));break;case`PageUp`:u.getKeyPageAbove&&f!=null&&(e.preventDefault(),l(u.getKeyPageAbove(f)));break;case`a`:Vl(e)&&i.selectionMode()===`multiple`&&q(r.disallowSelectAll)!==!0&&(e.preventDefault(),i.selectAll());break;case`Escape`:!e.defaultPrevented&&!q(r.disallowEmptySelection)&&(e.preventDefault(),i.clearSelection());break;case`Tab`:if(!q(r.allowsTabNavigation)){if(e.shiftKey)n.focus();else{let e=Ri(n,{tabbable:!0}),t,r;do r=e.lastChild(),r&&(t=r);while(r);t&&!t.contains(document.activeElement)&&xi(t)}break}}},u=e=>{let t=q(r.selectionManager),n=q(r.keyboardDelegate),a=q(r.selectOnFocus);if(t.isFocused()){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey()==null){let r=e=>{e!=null&&(t.setFocusedKey(e),a&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey()??n.getLastKey?.()):r(t.firstSelectedKey()??n.getFirstKey?.())}else if(!q(r.isVirtualized)){let e=i();if(e){e.scrollTop=o.top,e.scrollLeft=o.left;let n=e.querySelector(`[data-key="${t.focusedKey()}"]`);n&&(xi(n),Ki(e,n))}}}},d=e=>{let t=q(r.selectionManager);e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},f=e=>{i()===e.target&&e.preventDefault()},p=()=>{let e=q(r.autoFocus);if(!e)return;let n=q(r.selectionManager),i=q(r.keyboardDelegate),a;e===`first`&&(a=i.getFirstKey?.()),e===`last`&&(a=i.getLastKey?.());let o=n.selectedKeys();o.size&&(a=o.values().next().value),n.setFocused(!0),n.setFocusedKey(a);let s=t();s&&a==null&&!q(r.shouldUseVirtualFocus)&&xi(s)};return oe(()=>{r.deferAutoFocus?setTimeout(p,0):p()}),M(ae([i,()=>q(r.isVirtualized),()=>q(r.selectionManager).focusedKey()],e=>{let[t,n,i]=e;if(n)i&&r.scrollToKey?.(i);else if(i&&t){let e=t.querySelector(`[data-key="${i}"]`);e&&Ki(t,e)}})),{tabIndex:N(()=>{if(!q(r.shouldUseVirtualFocus))return q(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:l,onMouseDown:f,onFocusIn:u,onFocusOut:d}}function Yl(e,t){let n=()=>q(e.selectionManager),r=()=>q(e.key),i=()=>q(e.shouldUseVirtualFocus),a=e=>{n().selectionMode()!==`none`&&(n().selectionMode()===`single`?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):e?.shiftKey?n().extendSelection(r()):n().selectionBehavior()===`toggle`||Vl(e)||`pointerType`in e&&e.pointerType===`touch`?n().toggleSelection(r()):n().replaceSelection(r()))},o=()=>n().isSelected(r()),s=()=>q(e.disabled)||n().isDisabled(r()),c=()=>!s()&&n().canSelectItem(r()),l=null,u=t=>{c()&&(l=t.pointerType,t.pointerType===`mouse`&&t.button===0&&!q(e.shouldSelectOnPressUp)&&a(t))},d=t=>{c()&&t.pointerType===`mouse`&&t.button===0&&q(e.shouldSelectOnPressUp)&&q(e.allowsDifferentPressOrigin)&&a(t)},f=t=>{c()&&(q(e.shouldSelectOnPressUp)&&!q(e.allowsDifferentPressOrigin)||l!==`mouse`)&&a(t)},p=e=>{c()&&[`Enter`,` `].includes(e.key)&&(Bl(e)?n().toggleSelection(r()):a(e))},m=e=>{s()&&e.preventDefault()},h=e=>{let a=t();i()||s()||!a||e.target===a&&n().setFocusedKey(r())},g=N(()=>{if(!(i()||s()))return r()===n().focusedKey()?0:-1}),_=N(()=>q(e.virtualized)?void 0:r());return M(ae([t,r,i,()=>n().focusedKey(),()=>n().isFocused()],([t,n,r,i,a])=>{t&&n===i&&a&&!r&&document.activeElement!==t&&(e.focus?e.focus():xi(t))})),{isSelected:o,isDisabled:s,allowsSelection:c,tabIndex:g,dataKey:_,onPointerDown:u,onPointerUp:d,onClick:f,onKeyDown:p,onMouseDown:m,onFocus:h}}var Xl=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()===`none`)return!1;let t=this.getKey(e);return t!=null&&this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()===`none`)return;if(this.selectionMode()===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=this.state.selectedKeys(),r=n.anchorKey||t,i=new Rl(n,r,t);for(let e of this.getKeyRange(r,n.currentKey||t))i.delete(e);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&i.add(e);this.state.setSelectedKeys(i)}getKeyRange(e,t){let n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r!=null;){let e=this.collection().getItem(r);if(e&&e.type===`item`&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){let t=this.collection().getItem(e);return t?!t||t.type!==`item`?null:t.key:e}toggleSelection(e){if(this.selectionMode()===`none`)return;if(this.selectionMode()===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new Rl(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new Rl([t],t,t):new Rl;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()===`none`)return;let t=new Rl;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode()===`single`))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()===`multiple`&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new Rl)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!==`none`&&(this.selectionMode()===`single`?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()===`toggle`||t&&t.pointerType===`touch`?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;let t=this.selectedKeys();if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()===`none`)return!1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){let e=[];return(t=>{for(;t!=null;){if(this.canSelectItem(t)){let n=this.collection().getItem(t);if(!n)continue;n.type===`item`&&e.push(t)}t=this.collection().getKeyAfter(t)}})(this.collection().getFirstKey()),e}},Zl=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let t of e)this.keyMap.set(t.key,t);if(this.keyMap.size===0)return;let t,n=0;for(let[e,r]of this.keyMap)t?(t.nextKey=e,r.prevKey=t.key):(this.firstKey=e,r.prevKey=void 0),r.type===`item`&&(r.index=n++),t=r,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};function Ql(e){let t=Wl(e),n=Ll({dataSource:()=>q(e.dataSource),getKey:()=>q(e.getKey),getTextValue:()=>q(e.getTextValue),getDisabled:()=>q(e.getDisabled),getSectionChildren:()=>q(e.getSectionChildren),factory:t=>e.filter?new Zl(e.filter(t)):new Zl(t)},[()=>e.filter]),r=new Xl(n,t);return te(()=>{let e=t.focusedKey();e!=null&&!n().getItem(e)&&t.setFocusedKey(void 0)}),{collection:n,selectionManager:()=>r}}var $l=L();function eu(){return R($l)}function tu(){let e=eu();if(e===void 0)throw Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function nu(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function ru(e,t){let n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){let t=e[r]?.ref();if(t&&nu(t,n))return r+1}return 0}function iu(e){let t=e.map((e,t)=>[t,e]),n=!1;return t.sort(([e,t],[r,i])=>{let a=t.ref(),o=i.ref();return a===o||!a||!o?0:nu(a,o)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1)}),n?t.map(([e,t])=>t):e}function au(e,t){let n=iu(e);e!==n&&t(n)}function ou(e){let t=e[0],n=e[e.length-1]?.ref(),r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return oi(r).body}function su(e,t){M(()=>{let n=setTimeout(()=>{au(e(),t)});F(()=>clearTimeout(n))})}function cu(e,t){if(typeof IntersectionObserver!=`function`){su(e,t);return}let n=[];M(()=>{let r=()=>{let r=!!n.length;n=e(),r&&au(e(),t)},i=ou(e()),a=new IntersectionObserver(r,{root:i});for(let t of e()){let e=t.ref();e&&a.observe(e)}F(()=>a.disconnect())})}function lu(e={}){let[t,n]=Ma({value:()=>q(e.items),onChange:t=>e.onItemsChange?.(t)});cu(t,n);let r=e=>(n(t=>Zr(t,e,ru(t,e))),()=>{n(t=>{let n=t.filter(t=>t.ref()!==e.ref());return t.length===n.length?t:n})});return{DomCollectionProvider:e=>z($l.Provider,{value:{registerItem:r},get children(){return e.children}})}}function uu(e){let t=tu(),n=Hi({shouldRegisterItem:!0},e);M(()=>{n.shouldRegisterItem&&F(t.registerItem(n.getItem()))})}function du(e,t){let n=new ResizeObserver(e);return F(n.disconnect.bind(n)),{observe:e=>n.observe(e,t),unobserve:n.unobserve.bind(n)}}function fu(e,t,n){let r=new WeakMap,{observe:i,unobserve:a}=du(e=>{for(let n of e){let{contentRect:e,target:i}=n,a=Math.round(e.width),o=Math.round(e.height),s=r.get(i);(!s||s.width!==a||s.height!==o)&&(t(e,i,n),r.set(i,{width:a,height:o}))}},n);M(t=>{let n=on(cn(q(e)));return fn(n,t,i,a),n},[])}La({},{Content:()=>hu,Indicator:()=>gu,List:()=>_u,Root:()=>yu,Tabs:()=>xu,Trigger:()=>bu,useTabsContext:()=>mu});var pu=L();function mu(){let e=R(pu);if(e===void 0)throw Error("[kobalte]: `useTabsContext` must be used within a `Tabs` component");return e}function hu(e){let[t,n]=A(),r=mu(),[i,a]=V(e,[`ref`,`id`,`value`,`forceMount`]),[o,s]=A(0),c=()=>i.id??r.generateContentId(i.value),l=()=>r.listState().selectedKey()===i.value,{present:u}=io({show:()=>i.forceMount||l(),element:()=>t()??null});return M(ae([()=>t(),()=>u()],([e,t])=>{if(e==null||!t)return;let n=()=>{let t=Ri(e,{tabbable:!0});s(t.nextNode()?void 0:0)};n();let r=new MutationObserver(n);r.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabindex`,`disabled`]}),F(()=>{r.disconnect()})})),M(ae([()=>i.value,c],([e,t])=>{r.contentIdsMap().set(e,t)})),z(H,{get when(){return u()},get children(){return z(Ea,B({as:`div`,ref(e){var t=Xr(n,i.ref);typeof t==`function`&&t(e)},get id(){return c()},role:`tabpanel`,get tabIndex(){return o()},get"aria-labelledby"(){return r.triggerIdsMap().get(i.value)},get"data-orientation"(){return r.orientation()},get"data-selected"(){return l()?``:void 0}},a))}})}function gu(e){let t=mu(),[n,r]=V(e,[`style`]),[i,a]=A(),{direction:o}=Jo(),s=()=>{let e=t.selectedTab();if(e==null||e.getClientRects().length===0)return;let n={transform:void 0,width:void 0,height:void 0,transition:i()==null?`none`:void 0},r=o()===`rtl`?-1*(e.offsetParent?.offsetWidth-e.offsetWidth-e.offsetLeft):e.offsetLeft;n.transform=t.orientation()===`vertical`?`translateY(${e.offsetTop}px)`:`translateX(${r}px)`,t.orientation()===`horizontal`?n.width=`${e.offsetWidth}px`:n.height=`${e.offsetHeight}px`,a(n)};M(ae([t.selectedTab,t.orientation,o],()=>{i()!=null&&s()},{defer:!0}));let[c,l]=A(!1),u=null,d=null;return fu(t.selectedTab,(e,t)=>{if(d!==t){d=t,s();return}l(!0),u&&clearTimeout(u),u=setTimeout(()=>{u=null,l(!1)},1),s()}),z(Ea,B({as:`div`,role:`presentation`,get style(){return Yr(i()??{visibility:`hidden`},n.style)},get"data-orientation"(){return t.orientation()},get"data-resizing"(){return c()}},r))}function _u(e){let t,n=mu(),[r,i]=V(e,[`ref`,`onKeyDown`,`onMouseDown`,`onFocusIn`,`onFocusOut`]),{direction:a}=Jo(),o=new Fl(()=>n.listState().collection(),a,n.orientation),s=Jl({selectionManager:()=>n.listState().selectionManager(),keyboardDelegate:()=>o,selectOnFocus:()=>n.activationMode()===`automatic`,shouldFocusWrap:!1,disallowEmptySelection:!0},()=>t);return M(()=>{if(t==null)return;let e=t.querySelector(`[data-key="${n.listState().selectedKey()}"]`);e!=null&&n.setSelectedTab(e)}),z(Ea,B({as:`div`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},role:`tablist`,get"aria-orientation"(){return n.orientation()},get"data-orientation"(){return n.orientation()},get onKeyDown(){return yi([r.onKeyDown,s.onKeyDown])},get onMouseDown(){return yi([r.onMouseDown,s.onMouseDown])},get onFocusIn(){return yi([r.onFocusIn,s.onFocusIn])},get onFocusOut(){return yi([r.onFocusOut,s.onFocusOut])}},i))}function vu(e){let[t,n]=Aa({value:()=>q(e.selectedKey),defaultValue:()=>q(e.defaultSelectedKey),onChange:t=>e.onSelectionChange?.(t)}),r=N(()=>{let e=t();return e==null?[]:[e]}),[,i]=V(e,[`onSelectionChange`]),{collection:a,selectionManager:o}=Ql(B(i,{selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{let i=r.values().next().value;i!==void 0&&(i===t()&&e.onSelectionChange?.(i),n(i))}}));return{collection:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:N(()=>{let e=t();return e==null?void 0:a().getItem(e)})}}function yu(e){let[t,n]=V(Hi({id:`tabs-${Ue()}`,orientation:`horizontal`,activationMode:`automatic`},e),[`value`,`defaultValue`,`onChange`,`orientation`,`activationMode`,`disabled`]),[r,i]=A([]),[a,o]=A(),{DomCollectionProvider:s}=lu({items:r,onItemsChange:i}),c=vu({selectedKey:()=>t.value,defaultSelectedKey:()=>t.defaultValue,onSelectionChange:e=>t.onChange?.(String(e)),dataSource:r}),l=c.selectedKey();M(ae([()=>c.selectionManager(),()=>c.collection(),()=>c.selectedKey()],([e,t,n])=>{let r=n;if(e.isEmpty()||r==null||!t.getItem(r)){r=t.getFirstKey();let n=r==null?void 0:t.getItem(r);for(;n?.disabled&&n.key!==t.getLastKey();)r=t.getKeyAfter(n.key),n=r==null?void 0:t.getItem(r);n?.disabled&&r===t.getLastKey()&&(r=t.getFirstKey()),r!=null&&e.setSelectedKeys([r])}(e.focusedKey()==null||!e.isFocused()&&r!==l)&&e.setFocusedKey(r),l=r}));let u=new Map,d=new Map,f={isDisabled:()=>t.disabled??!1,orientation:()=>t.orientation,activationMode:()=>t.activationMode,triggerIdsMap:()=>u,contentIdsMap:()=>d,listState:()=>c,selectedTab:a,setSelectedTab:o,generateTriggerId:e=>`${n.id}-trigger-${e}`,generateContentId:e=>`${n.id}-content-${e}`};return z(s,{get children(){return z(pu.Provider,{value:f,get children(){return z(Ea,B({as:`div`,get"data-orientation"(){return f.orientation()}},n))}})}})}function bu(e){let t,n=mu(),[r,i]=V(Hi({type:`button`},e),[`ref`,`id`,`value`,`disabled`,`onPointerDown`,`onPointerUp`,`onClick`,`onKeyDown`,`onMouseDown`,`onFocus`]),a=()=>r.id??n.generateTriggerId(r.value),o=()=>n.listState().selectionManager().focusedKey()===r.value,s=()=>r.disabled||n.isDisabled(),c=()=>n.contentIdsMap().get(r.value);uu({getItem:()=>({ref:()=>t,type:`item`,key:r.value,textValue:``,disabled:s()})});let l=Yl({key:()=>r.value,selectionManager:()=>n.listState().selectionManager(),disabled:s},()=>t),u=e=>{gi()&&xi(e.currentTarget)};return M(ae([()=>r.value,a],([e,t])=>{n.triggerIdsMap().set(e,t)})),z(Ea,B({as:`button`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},get id(){return a()},role:`tab`,get tabIndex(){return U(()=>!s())()?l.tabIndex():void 0},get disabled(){return s()},get"aria-selected"(){return l.isSelected()},get"aria-disabled"(){return s()||void 0},get"aria-controls"(){return U(()=>!!l.isSelected())()?c():void 0},get"data-key"(){return l.dataKey()},get"data-orientation"(){return n.orientation()},get"data-selected"(){return l.isSelected()?``:void 0},get"data-highlighted"(){return o()?``:void 0},get"data-disabled"(){return s()?``:void 0},get onPointerDown(){return yi([r.onPointerDown,l.onPointerDown])},get onPointerUp(){return yi([r.onPointerUp,l.onPointerUp])},get onClick(){return yi([r.onClick,l.onClick,u])},get onKeyDown(){return yi([r.onKeyDown,l.onKeyDown])},get onMouseDown(){return yi([r.onMouseDown,l.onMouseDown])},get onFocus(){return yi([r.onFocus,l.onFocus])}},i))}var xu=Object.assign(yu,{Content:hu,Indicator:gu,List:_u,Trigger:bu}),Su=W(`<span class="inline-flex items-center gap-2"data-slot=tabs-v2-trigger-content>`),Cu=W(`<div>`),wu=W(`<span data-slot=tabs-v2-subtext class="ms-2 text-xs text-text-weak">`),Tu=W(`<button type=button><svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M10.8889 3.11108L3.11108 10.8889"stroke=currentColor stroke-linejoin=round></path><path d="M3.11108 3.11108L10.8889 10.8889"stroke=currentColor stroke-linejoin=round>`),Eu=L({current:()=>!1});function Du(e){let[t,n]=V(e,[`class`,`classList`,`variant`,`orientation`,`children`]),r=()=>t.variant??`panel`,i=()=>r()===`line`||r()===`pill`||r()===`settings`,a=()=>r()===`panel`||r()===`line`?`normal`:r()===`underline`?`alt`:r()===`surface`?`pill`:r();return z(Eu.Provider,{value:{current:i},get children(){return z(yu,B(n,{get orientation(){return t.orientation},get"data-component"(){return i()?`tabs-v2`:`tabs`},get"data-variant"(){return a()},get"data-orientation"(){return t.orientation||`horizontal`},get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return t.children}}))}})}function Ou(e){let t=R(Eu),[n,r]=V(e,[`class`,`classList`]);return z(_u,B(r,{get"data-slot"(){return t.current()?`tabs-v2-list`:`tabs-list`},get classList(){return{...n.classList,[n.class??``]:!!n.class}}}))}function ku(e){let t=R(Eu),[n,r]=V(e,[`class`,`classList`,`classes`,`children`,`closeButton`,`hideCloseButton`,`onMiddleClick`,`subtext`,`dir`]),i=()=>t.current()?`tabs-v2-trigger-wrapper`:`tabs-trigger-wrapper`,a=()=>t.current()?`tabs-v2-trigger`:`tabs-trigger`,o=()=>t.current()?`tabs-v2-trigger-close-button`:`tabs-trigger-close-button`;return(()=>{var s=Cu();return s.addEventListener(`auxclick`,e=>{e.button===1&&n.onMiddleClick&&(e.preventDefault(),n.onMiddleClick())}),s.$$mousedown=e=>{e.button===1&&n.onMiddleClick&&e.preventDefault()},K(s,z(bu,B(r,{get dir(){return n.dir??`auto`},get"data-slot"(){return a()},get"data-value"(){return e.value},get classList(){return{[n.classes?.button??``]:!!n.classes?.button}},get children(){return z(H,{get when(){return t.current()},get fallback(){return n.children},get children(){var e=Su();return K(e,()=>n.children,null),K(e,z(H,{get when(){return n.subtext},children:e=>(()=>{var t=wu();return K(t,e),t})()}),null),e}})}})),null),K(s,z(H,{get when(){return n.closeButton},children:e=>(()=>{var t=Cu();return K(t,e),j(e=>{var r=o(),i=n.hideCloseButton?``:void 0;return r!==e.e&&G(t,`data-slot`,e.e=r),i!==e.t&&G(t,`data-hidden`,e.t=i),e},{e:void 0,t:void 0}),t})()}),null),j(t=>{var r=i(),a=e.value,o={...n.classList,[n.class??``]:!!n.class};return r!==t.e&&G(s,`data-slot`,t.e=r),a!==t.t&&G(s,`data-value`,t.t=a),t.a=pt(s,o,t.a),t},{e:void 0,t:void 0,a:void 0}),s})()}function Au(e){let t=Al(),[n,r]=V(e,[`class`,`classList`,`onClick`,`onPointerDown`,`aria-label`]);return(()=>{var e=Tu();return gt(e,B(r,{get"aria-label"(){return n[`aria-label`]??t.t(`ui.tabs.close`)},"data-slot":`tabs-close-button`,get classList(){return{[n.class??``]:!!n.class,...n.classList}},onPointerDown:e=>{e.stopPropagation(),typeof n.onPointerDown==`function`&&n.onPointerDown(e)},onClick:e=>{e.preventDefault(),e.stopPropagation(),typeof n.onClick==`function`&&n.onClick(e)}}),!1,!0),e})()}function ju(e){let t=R(Eu),[n,r]=V(e,[`class`,`classList`,`children`]);return z(hu,B(r,{get"data-slot"(){return t.current()?`tabs-v2-content`:`tabs-content`},get classList(){return{...n.classList,[n.class??``]:!!n.class}},get children(){return n.children}}))}var Mu=Object.assign(Du,{List:Ou,Trigger:ku,CloseButton:Au,Content:ju,SectionTitle:e=>{let t=R(Eu);return(()=>{var n=Cu();return K(n,()=>e.children),j(()=>G(n,`data-slot`,t.current()?`tabs-v2-section-title`:`tabs-section-title`)),n})()}});ct([`mousedown`]);var Nu=[`id`,`name`,`validationState`,`required`,`disabled`,`readOnly`];function Pu(e){let t=Hi({id:`form-control-${Ue()}`},e),[n,r]=A(),[i,a]=A(),[o,s]=A(),[c,l]=A();return{formControlContext:{name:()=>q(t.name)??q(t.id),dataset:N(()=>({"data-valid":q(t.validationState)===`valid`?``:void 0,"data-invalid":q(t.validationState)===`invalid`?``:void 0,"data-required":q(t.required)?``:void 0,"data-disabled":q(t.disabled)?``:void 0,"data-readonly":q(t.readOnly)?``:void 0})),validationState:()=>q(t.validationState),isRequired:()=>q(t.required),isDisabled:()=>q(t.disabled),isReadOnly:()=>q(t.readOnly),labelId:n,fieldId:i,descriptionId:o,errorMessageId:c,getAriaLabelledBy:(e,t,r)=>{let i=r!=null||n()!=null;return[r,n(),i&&t!=null?e:void 0].filter(Boolean).join(` `)||void 0},getAriaDescribedBy:e=>[o(),c(),e].filter(Boolean).join(` `)||void 0,generateId:ni(()=>q(t.id)),registerLabel:Ha(r),registerField:Ha(a),registerDescription:Ha(s),registerErrorMessage:Ha(l)}}}var Fu=L();function Iu(){let e=R(Fu);if(e===void 0)throw Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Lu(e){let t=Iu(),n=Hi({id:t.generateId(`description`)},e);return M(()=>F(t.registerDescription(n.id))),z(Ea,B({as:`div`},()=>t.dataset(),n))}var Ru=W(`<option>`),zu=W(`<div aria-hidden=true><input type=text style=font-size:16px><select tabindex=-1><option>`);function Bu(e){let t,[n,r]=V(e,[`ref`,`onChange`,`collection`,`selectionManager`,`isOpen`,`isMultiple`,`isVirtualized`,`focusTrigger`]),i=Iu(),[a,o]=A(!1),s=e=>{let t=n.collection.getItem(e);return z(H,{get when(){return t?.type===`item`},get children(){var r=Ru();return r.value=e,K(r,()=>t?.textValue),j(()=>r.selected=n.selectionManager.isSelected(e)),r}})};return M(ae(()=>n.selectionManager.selectedKeys(),(e,n)=>{n&&Ul(e,n)||(o(!0),t?.dispatchEvent(new Event(`input`,{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event(`change`,{bubbles:!0,cancelable:!0})))},{defer:!0})),(()=>{var e=zu(),c=e.firstChild,l=c.nextSibling;l.firstChild,c.addEventListener(`focus`,()=>n.focusTrigger()),l.addEventListener(`change`,e=>{vi(e,n.onChange),a()||n.selectionManager.setSelectedKeys(new Set([e.target.value])),o(!1)});var u=Xr(e=>t=e,n.ref);return typeof u==`function`&&_t(u,l),gt(l,B({get multiple(){return n.isMultiple},get name(){return i.name()},get required(){return i.isRequired()},get disabled(){return i.isDisabled()},get size(){return n.collection.getSize()},get value(){return n.selectionManager.firstSelectedKey()??``}},r),!1,!0),K(l,z(H,{get when(){return n.isVirtualized},get fallback(){return z(Ge,{get each(){return[...n.collection.getKeys()]},children:s})},get children(){return z(Ge,{get each(){return[...n.selectionManager.selectedKeys()]},children:s})}}),null),j(t=>{var r=Ji,a=n.selectionManager.isFocused()||n.isOpen?-1:0,o=i.isRequired(),s=i.isDisabled(),l=i.isReadOnly();return t.e=mt(e,r,t.e),a!==t.t&&G(c,`tabindex`,t.t=a),o!==t.a&&(c.required=t.a=o),s!==t.o&&(c.disabled=t.o=s),l!==t.i&&(c.readOnly=t.i=l),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),e})()}var Vu=new WeakMap;function Hu(e){let t=Vu.get(e);if(t!=null)return t;t=0;for(let n of e)n.type===`item`&&t++;return Vu.set(e,t),t}var Uu=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let e=this.collection().getItem(t);if(e&&e.type===`item`&&!e.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let e=this.collection().getItem(t);if(e&&e.type===`item`&&!e.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type===`item`&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type===`item`&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight),i=e;for(;i&&n&&n.offsetTop>r;)i=this.getKeyAbove(i),n=i==null?null:this.getItem(i);return i}getKeyPageBelow(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight),i=e;for(;i&&n&&n.offsetTop<r;)i=this.getKeyBelow(i),n=i==null?null:this.getItem(i);return i}getKeyForSearch(e,t){let n=this.collator?.();if(!n)return;let r=t==null?this.getFirstKey():this.getKeyBelow(t);for(;r!=null;){let t=this.collection().getItem(r);if(t){let i=t.textValue.slice(0,e.length);if(t.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r)}}};function Wu(e,t,n){let r=Xo({usage:`search`,sensitivity:`base`});return Jl({selectionManager:()=>q(e.selectionManager),keyboardDelegate:N(()=>q(e.keyboardDelegate)||new Uu(e.collection,t,r)),autoFocus:()=>q(e.autoFocus),deferAutoFocus:()=>q(e.deferAutoFocus),shouldFocusWrap:()=>q(e.shouldFocusWrap),disallowEmptySelection:()=>q(e.disallowEmptySelection),selectOnFocus:()=>q(e.selectOnFocus),disallowTypeAhead:()=>q(e.disallowTypeAhead),shouldUseVirtualFocus:()=>q(e.shouldUseVirtualFocus),allowsTabNavigation:()=>q(e.allowsTabNavigation),isVirtualized:()=>q(e.isVirtualized),scrollToKey:t=>q(e.scrollToKey)?.(t),orientation:()=>q(e.orientation)},t,n)}La({},{Item:()=>Yu,ItemDescription:()=>Xu,ItemIndicator:()=>Zu,ItemLabel:()=>Qu,Listbox:()=>td,Root:()=>$u,Section:()=>ed,useListboxContext:()=>Ku});var Gu=L();function Ku(){let e=R(Gu);if(e===void 0)throw Error("[kobalte]: `useListboxContext` must be used within a `Listbox` component");return e}var qu=L();function Ju(){let e=R(qu);if(e===void 0)throw Error("[kobalte]: `useListboxItemContext` must be used within a `Listbox.Item` component");return e}function Yu(e){let t,n=Ku(),[r,i]=V(Hi({id:`${n.generateId(`item`)}-${Ue()}`},e),[`ref`,`item`,`aria-label`,`aria-labelledby`,`aria-describedby`,`onPointerMove`,`onPointerDown`,`onPointerUp`,`onClick`,`onKeyDown`,`onMouseDown`,`onFocus`]),[a,o]=A(),[s,c]=A(),l=()=>n.listState().selectionManager(),u=()=>l().focusedKey()===r.item.key,d=Yl({key:()=>r.item.key,selectionManager:l,shouldSelectOnPressUp:n.shouldSelectOnPressUp,allowsDifferentPressOrigin:()=>n.shouldSelectOnPressUp()&&n.shouldFocusOnHover(),shouldUseVirtualFocus:n.shouldUseVirtualFocus,disabled:()=>r.item.disabled},()=>t),f=()=>{if(l().selectionMode()!==`none`)return d.isSelected()},p=N(()=>!(di()&&gi())),m=()=>p()?r[`aria-label`]:void 0,h=()=>p()?a():void 0,g=()=>p()?s():void 0,_=()=>{if(!n.isVirtualized())return;let e=n.listState().collection().getItem(r.item.key)?.index;return e==null?void 0:e+1},v=()=>{if(n.isVirtualized())return Hu(n.listState().collection())},y=e=>{vi(e,r.onPointerMove),e.pointerType===`mouse`&&!d.isDisabled()&&n.shouldFocusOnHover()&&(xi(e.currentTarget),l().setFocused(!0),l().setFocusedKey(r.item.key))},b=N(()=>({"data-disabled":d.isDisabled()?``:void 0,"data-selected":d.isSelected()?``:void 0,"data-highlighted":u()?``:void 0})),x={isSelected:d.isSelected,dataset:b,generateId:ni(()=>i.id),registerLabelId:Ha(o),registerDescriptionId:Ha(c)};return z(qu.Provider,{value:x,get children(){return z(Ea,B({as:`li`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},role:`option`,get tabIndex(){return d.tabIndex()},get"aria-disabled"(){return d.isDisabled()},get"aria-selected"(){return f()},get"aria-label"(){return m()},get"aria-labelledby"(){return h()},get"aria-describedby"(){return g()},get"aria-posinset"(){return _()},get"aria-setsize"(){return v()},get"data-key"(){return d.dataKey()},get onPointerDown(){return yi([r.onPointerDown,d.onPointerDown])},get onPointerUp(){return yi([r.onPointerUp,d.onPointerUp])},get onClick(){return yi([r.onClick,d.onClick])},get onKeyDown(){return yi([r.onKeyDown,d.onKeyDown])},get onMouseDown(){return yi([r.onMouseDown,d.onMouseDown])},get onFocus(){return yi([r.onFocus,d.onFocus])},onPointerMove:y},b,i))}})}function Xu(e){let t=Ju(),n=Hi({id:t.generateId(`description`)},e);return M(()=>F(t.registerDescriptionId(n.id))),z(Ea,B({as:`div`},()=>t.dataset(),n))}function Zu(e){let t=Ju(),[n,r]=V(Hi({id:t.generateId(`indicator`)},e),[`forceMount`]);return z(H,{get when(){return n.forceMount||t.isSelected()},get children(){return z(Ea,B({as:`div`,"aria-hidden":`true`},()=>t.dataset(),r))}})}function Qu(e){let t=Ju(),n=Hi({id:t.generateId(`label`)},e);return M(()=>F(t.registerLabelId(n.id))),z(Ea,B({as:`div`},()=>t.dataset(),n))}function $u(e){let t,n=Hi({id:`listbox-${Ue()}`,selectionMode:`single`,virtualized:!1},e),[r,i]=V(n,`ref.children.renderItem.renderSection.value.defaultValue.onChange.options.optionValue.optionTextValue.optionDisabled.optionGroupChildren.state.keyboardDelegate.autoFocus.selectionMode.shouldFocusWrap.shouldUseVirtualFocus.shouldSelectOnPressUp.shouldFocusOnHover.allowDuplicateSelectionEvents.disallowEmptySelection.selectionBehavior.selectOnFocus.disallowTypeAhead.allowsTabNavigation.virtualized.scrollToItem.scrollRef.onKeyDown.onMouseDown.onFocusIn.onFocusOut`.split(`.`)),a=N(()=>r.state?r.state:Ql({selectedKeys:()=>r.value,defaultSelectedKeys:()=>r.defaultValue,onSelectionChange:r.onChange,allowDuplicateSelectionEvents:()=>q(r.allowDuplicateSelectionEvents),disallowEmptySelection:()=>q(r.disallowEmptySelection),selectionBehavior:()=>q(r.selectionBehavior),selectionMode:()=>q(r.selectionMode),dataSource:()=>r.options??[],getKey:()=>r.optionValue,getTextValue:()=>r.optionTextValue,getDisabled:()=>r.optionDisabled,getSectionChildren:()=>r.optionGroupChildren})),o=Wu({selectionManager:()=>a().selectionManager(),collection:()=>a().collection(),autoFocus:()=>q(r.autoFocus),shouldFocusWrap:()=>q(r.shouldFocusWrap),keyboardDelegate:()=>r.keyboardDelegate,disallowEmptySelection:()=>q(r.disallowEmptySelection),selectOnFocus:()=>q(r.selectOnFocus),disallowTypeAhead:()=>q(r.disallowTypeAhead),shouldUseVirtualFocus:()=>q(r.shouldUseVirtualFocus),allowsTabNavigation:()=>q(r.allowsTabNavigation),isVirtualized:()=>r.virtualized,scrollToKey:()=>r.scrollToItem},()=>t,()=>r.scrollRef?.()),s={listState:a,generateId:ni(()=>i.id),shouldUseVirtualFocus:()=>n.shouldUseVirtualFocus,shouldSelectOnPressUp:()=>n.shouldSelectOnPressUp,shouldFocusOnHover:()=>n.shouldFocusOnHover,isVirtualized:()=>r.virtualized};return z(Gu.Provider,{value:s,get children(){return z(Ea,B({as:`ul`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},role:`listbox`,get tabIndex(){return o.tabIndex()},get"aria-multiselectable"(){return a().selectionManager().selectionMode()===`multiple`||void 0},get onKeyDown(){return yi([r.onKeyDown,o.onKeyDown])},get onMouseDown(){return yi([r.onMouseDown,o.onMouseDown])},get onFocusIn(){return yi([r.onFocusIn,o.onFocusIn])},get onFocusOut(){return yi([r.onFocusOut,o.onFocusOut])}},i,{get children(){return z(H,{get when(){return!r.virtualized},get fallback(){return r.children?.(a().collection)},get children(){return z(Wr,{get each(){return[...a().collection()]},by:`key`,children:e=>z(qe,{get children(){return[z(Je,{get when(){return e().type===`section`},get children(){return r.renderSection?.(e())}}),z(Je,{get when(){return e().type===`item`},get children(){return r.renderItem?.(e())}})]}})})}})}}))}})}function ed(e){return z(Ea,B({as:`li`,role:`presentation`},e))}var td=Object.assign($u,{Item:Yu,ItemDescription:Xu,ItemIndicator:Zu,ItemLabel:Qu,Section:ed}),nd=[`id`,`aria-label`,`aria-labelledby`,`aria-describedby`];function rd(e){let t=Iu(),n=Hi({id:t.generateId(`field`)},e);return j(()=>F(t.registerField(q(n.id)))),{fieldProps:{id:()=>q(n.id),ariaLabel:()=>q(n[`aria-label`]),ariaLabelledBy:()=>t.getAriaLabelledBy(q(n.id),q(n[`aria-label`]),q(n[`aria-labelledby`])),ariaDescribedBy:()=>t.getAriaDescribedBy(q(n[`aria-describedby`]))}}}function id(e){let t,n=Iu(),[r,i]=V(Hi({id:n.generateId(`label`)},e),[`ref`]),a=Pa(()=>t,()=>`label`);return M(()=>F(n.registerLabel(i.id))),z(Ea,B({as:`label`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},get for(){return U(()=>a()===`label`)()?n.fieldId():void 0}},()=>n.dataset(),i))}function ad(e,t){M(ae(e,e=>{if(e==null)return;let n=od(e);n!=null&&(n.addEventListener(`reset`,t,{passive:!0}),F(()=>{n.removeEventListener(`reset`,t)}))}))}function od(e){return sd(e)?e.form:e.closest(`form`)}function sd(e){return e.matches(`textarea, input, select, button`)}function cd(e){let t=Iu(),[n,r]=V(Hi({id:t.generateId(`error-message`)},e),[`forceMount`]),i=()=>t.validationState()===`invalid`;return M(()=>{i()&&F(t.registerErrorMessage(r.id))}),z(H,{get when(){return n.forceMount||i()},get children(){return z(Ea,B({as:`div`},()=>t.dataset(),r))}})}La({},{Arrow:()=>Qc,Content:()=>dd,Description:()=>Lu,ErrorMessage:()=>cd,HiddenSelect:()=>fd,Icon:()=>pd,Item:()=>Yu,ItemDescription:()=>Xu,ItemIndicator:()=>Zu,ItemLabel:()=>Qu,Label:()=>md,Listbox:()=>hd,Portal:()=>gd,Root:()=>vd,Section:()=>ed,Select:()=>Sd,Trigger:()=>yd,Value:()=>bd,useSelectContext:()=>ud});var ld=L();function ud(){let e=R(ld);if(e===void 0)throw Error("[kobalte]: `useSelectContext` must be used within a `Select` component");return e}function dd(e){let t,n=ud(),[r,i]=V(e,[`ref`,`style`,`onCloseAutoFocus`,`onFocusOutside`]),a=e=>{n.close()},o=e=>{r.onFocusOutside?.(e),n.isOpen()&&n.isModal()&&e.preventDefault()};return va({isDisabled:()=>!(n.isOpen()&&n.isModal()),targets:()=>t?[t]:[]}),ro({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),ga({trapFocus:()=>n.isOpen()&&n.isModal(),onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:e=>{r.onCloseAutoFocus?.(e),e.defaultPrevented||(xi(n.triggerRef()),e.preventDefault())}},()=>t),z(H,{get when(){return n.contentPresent()},get children(){return z(sl.Positioner,{get children(){return z(ka,B({ref(e){var i=Xr(e=>{n.setContentRef(e),t=e},r.ref);typeof i==`function`&&i(e)},get disableOutsidePointerEvents(){return U(()=>!!n.isModal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get style(){return Yr({"--kb-select-content-transform-origin":`var(--kb-popper-content-transform-origin)`,position:`relative`},r.style)},onEscapeKeyDown:a,onFocusOutside:o,get onDismiss(){return n.close}},()=>n.dataset(),i))}})}})}function fd(e){let t=ud();return z(Bu,B({get collection(){return t.listState().collection()},get selectionManager(){return t.listState().selectionManager()},get isOpen(){return t.isOpen()},get isMultiple(){return t.isMultiple()},get isVirtualized(){return t.isVirtualized()},focusTrigger:()=>t.triggerRef()?.focus()},e))}function pd(e){let t=ud();return z(Ea,B({as:`span`,"aria-hidden":`true`},()=>t.dataset(),Hi({children:`▼`},e)))}function md(e){let t=ud(),[n,r]=V(e,[`onClick`]);return z(id,B({as:`span`,onClick:e=>{vi(e,n.onClick),t.isDisabled()||t.triggerRef()?.focus()}},r))}function hd(e){let t=ud(),[n,r]=V(Hi({id:t.generateId(`listbox`)},e),[`ref`,`id`,`onKeyDown`]);return M(()=>F(t.registerListboxId(n.id))),z($u,B({ref(e){var r=Xr(t.setListboxRef,n.ref);typeof r==`function`&&r(e)},get id(){return n.id},get state(){return t.listState()},get virtualized(){return t.isVirtualized()},get autoFocus(){return t.autoFocus()},shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,get shouldFocusWrap(){return t.shouldFocusWrap()},get disallowTypeAhead(){return t.disallowTypeAhead()},get"aria-labelledby"(){return t.listboxAriaLabelledBy()},get renderItem(){return t.renderItem},get renderSection(){return t.renderSection},onKeyDown:e=>{vi(e,n.onKeyDown),e.key===`Escape`&&e.preventDefault()}},r))}function gd(e){let t=ud();return z(H,{get when(){return t.contentPresent()},get children(){return z(Mt,e)}})}function _d(e){let[t,n,r,i]=V(Hi({id:`select-${Ue()}`,selectionMode:`single`,disallowEmptySelection:!1,closeOnSelection:e.selectionMode===`single`,allowDuplicateSelectionEvents:!0,gutter:8,sameWidth:!0,modal:!1},e),`itemComponent.sectionComponent.open.defaultOpen.onOpenChange.value.defaultValue.onChange.placeholder.options.optionValue.optionTextValue.optionDisabled.optionGroupChildren.keyboardDelegate.allowDuplicateSelectionEvents.disallowEmptySelection.closeOnSelection.disallowTypeAhead.shouldFocusWrap.selectionBehavior.selectionMode.virtualized.modal.preventScroll.forceMount`.split(`.`),[`getAnchorRect`,`placement`,`gutter`,`shift`,`flip`,`slide`,`overlap`,`sameWidth`,`fitViewport`,`hideWhenDetached`,`detachedPadding`,`arrowPadding`,`overflowPadding`],Nu),[a,o]=A(),[s,c]=A(),[l,u]=A(),[d,f]=A(),[p,m]=A(),[h,g]=A(),[_,v]=A(),[y,b]=A(!0),x=e=>{let n=t.optionValue;return String(n==null?e:ti(n)?n(e):e[n])},S=N(()=>{let e=t.optionGroupChildren;return e==null?t.options:t.options.flatMap(t=>t[e]??t)}),C=N(()=>S().map(e=>x(e))),w=e=>[...e].map(e=>S().find(t=>x(t)===e)).filter(e=>e!=null),T=Na({open:()=>t.open,defaultOpen:()=>t.defaultOpen,onOpenChange:e=>t.onOpenChange?.(e)}),E=Ql({selectedKeys:()=>t.value==null?t.value:t.value.map(x),defaultSelectedKeys:()=>t.defaultValue==null?t.defaultValue:t.defaultValue.map(x),onSelectionChange:e=>{t.onChange?.(w(e)),t.closeOnSelection&&j()},allowDuplicateSelectionEvents:()=>q(t.allowDuplicateSelectionEvents),disallowEmptySelection:()=>q(t.disallowEmptySelection),selectionBehavior:()=>q(t.selectionBehavior),selectionMode:()=>t.selectionMode,dataSource:()=>t.options??[],getKey:()=>t.optionValue,getTextValue:()=>t.optionTextValue,getDisabled:()=>t.optionDisabled,getSectionChildren:()=>t.optionGroupChildren}),D=N(()=>w(E.selectionManager().selectedKeys())),O=e=>{E.selectionManager().toggleSelection(x(e))},{present:k}=io({show:()=>t.forceMount||T.isOpen(),element:()=>p()??null}),ee=()=>{let e=h();e&&xi(e)},te=e=>{if(t.options.length<=0)return;b(e),T.open();let n=E.selectionManager().firstSelectedKey();n??(e===`first`?n=E.collection().getFirstKey():e===`last`&&(n=E.collection().getLastKey())),ee(),E.selectionManager().setFocused(!0),E.selectionManager().setFocusedKey(n)},j=()=>{T.close(),E.selectionManager().setFocused(!1),E.selectionManager().setFocusedKey(void 0)},ne=e=>{T.isOpen()?j():te(e)},{formControlContext:re}=Pu(r);ad(d,()=>{let e=t.defaultValue?[...t.defaultValue].map(x):new Rl;E.selectionManager().setSelectedKeys(e)});let ie=Xo({usage:`search`,sensitivity:`base`}),P=N(()=>q(t.keyboardDelegate)||new Uu(E.collection,void 0,ie)),oe=e=>t.itemComponent?.({item:e}),F=e=>t.sectionComponent?.({section:e});M(ae([C],([e])=>{let t=[...E.selectionManager().selectedKeys()].filter(t=>e.includes(t));E.selectionManager().setSelectedKeys(t)},{defer:!0}));let se=N(()=>({"data-expanded":T.isOpen()?``:void 0,"data-closed":T.isOpen()?void 0:``})),ce={dataset:se,isOpen:T.isOpen,isDisabled:()=>re.isDisabled()??!1,isMultiple:()=>q(t.selectionMode)===`multiple`,isVirtualized:()=>t.virtualized??!1,isModal:()=>t.modal??!1,preventScroll:()=>t.preventScroll??ce.isModal(),disallowTypeAhead:()=>t.disallowTypeAhead??!1,shouldFocusWrap:()=>t.shouldFocusWrap??!1,selectedOptions:D,contentPresent:k,autoFocus:y,triggerRef:d,listState:()=>E,keyboardDelegate:P,triggerId:a,valueId:s,listboxId:l,listboxAriaLabelledBy:_,setListboxAriaLabelledBy:v,setTriggerRef:f,setContentRef:m,setListboxRef:g,open:te,close:j,toggle:ne,placeholder:()=>t.placeholder,renderItem:oe,renderSection:F,removeOptionFromSelection:O,generateId:ni(()=>q(r.id)),registerTriggerId:Ha(o),registerValueId:Ha(c),registerListboxId:Ha(u)};return z(Fu.Provider,{value:re,get children(){return z(ld.Provider,{value:ce,get children(){return z(sl,B({anchorRef:d,contentRef:p},n,{get children(){return z(Ea,B({as:`div`,role:`group`,get id(){return q(r.id)}},()=>re.dataset(),se,i))}}))}})}})}function vd(e){let[t,n]=V(e,[`value`,`defaultValue`,`onChange`,`multiple`]),r=N(()=>t.value==null||t.multiple?t.value:[t.value]),i=N(()=>t.defaultValue==null||t.multiple?t.defaultValue:[t.defaultValue]);return z(_d,B({get value(){return r()},get defaultValue(){return i()},onChange:e=>{e!==r()&&(t.multiple?t.onChange?.(e??[]):t.onChange?.(e[0]??null))},get selectionMode(){return t.multiple?`multiple`:`single`}},n))}function yd(e){let t=Iu(),n=ud(),[r,i,a]=V(Hi({id:n.generateId(`trigger`)},e),[`ref`,`disabled`,`onPointerDown`,`onClick`,`onKeyDown`,`onFocus`,`onBlur`],nd),o=()=>n.listState().selectionManager(),s=()=>n.keyboardDelegate(),c=()=>r.disabled||n.isDisabled(),{fieldProps:l}=rd(i),{typeSelectHandlers:u}=Gl({keyboardDelegate:s,selectionManager:o,onTypeSelect:e=>o().select(e)}),d=()=>[n.listboxAriaLabelledBy(),n.valueId()].filter(Boolean).join(` `)||void 0;return M(()=>F(n.registerTriggerId(l.id()))),M(()=>{n.setListboxAriaLabelledBy([l.ariaLabelledBy(),l.ariaLabel()&&!l.ariaLabelledBy()?l.id():null].filter(Boolean).join(` `)||void 0)}),z(Ba,B({ref(e){var t=Xr(n.setTriggerRef,r.ref);typeof t==`function`&&t(e)},get id(){return l.id()},get disabled(){return c()},"aria-haspopup":`listbox`,get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return U(()=>!!n.isOpen())()?n.listboxId():void 0},get"aria-label"(){return l.ariaLabel()},get"aria-labelledby"(){return d()},get"aria-describedby"(){return l.ariaDescribedBy()},onPointerDown:e=>{vi(e,r.onPointerDown),e.currentTarget.dataset.pointerType=e.pointerType,!c()&&e.pointerType!==`touch`&&e.button===0&&(e.preventDefault(),n.toggle(!0))},onClick:e=>{vi(e,r.onClick),!c()&&e.currentTarget.dataset.pointerType===`touch`&&n.toggle(!0)},onKeyDown:e=>{if(vi(e,r.onKeyDown),!c())switch(vi(e,u.onKeyDown),e.key){case`Enter`:case` `:case`ArrowDown`:e.stopPropagation(),e.preventDefault(),n.toggle(`first`);break;case`ArrowUp`:e.stopPropagation(),e.preventDefault(),n.toggle(`last`);break;case`ArrowLeft`:{if(e.preventDefault(),n.isMultiple())return;let t=o().firstSelectedKey(),r=t==null?s().getFirstKey?.():s().getKeyAbove?.(t);r!=null&&o().select(r);break}case`ArrowRight`:{if(e.preventDefault(),n.isMultiple())return;let t=o().firstSelectedKey(),r=t==null?s().getFirstKey?.():s().getKeyBelow?.(t);r!=null&&o().select(r);break}}},onFocus:e=>{vi(e,r.onFocus),!o().isFocused()&&o().setFocused(!0)},onBlur:e=>{vi(e,r.onBlur),!n.isOpen()&&o().setFocused(!1)}},()=>n.dataset(),()=>t.dataset(),a))}function bd(e){let t=Iu(),n=ud(),[r,i]=V(Hi({id:n.generateId(`value`)},e),[`id`,`children`]),a=()=>n.listState().selectionManager(),o=()=>{let e=a().selectedKeys();return e.size===1&&e.has(``)?!0:a().isEmpty()};return M(()=>F(n.registerValueId(r.id))),z(Ea,B({as:`span`,get id(){return r.id},get"data-placeholder-shown"(){return o()?``:void 0}},()=>t.dataset(),i,{get children(){return z(H,{get when(){return!o()},get fallback(){return n.placeholder()},get children(){return z(xd,{state:{selectedOption:()=>n.selectedOptions()[0],selectedOptions:()=>n.selectedOptions(),remove:e=>n.removeOptionFromSelection(e),clear:()=>a().clearSelection()},get children(){return r.children}})}})}}))}function xd(e){return U(pe(()=>{let t=e.children;return ti(t)?t(e.state):t}))}var Sd=Object.assign(vd,{Arrow:Qc,Content:dd,Description:Lu,ErrorMessage:cd,HiddenSelect:fd,Icon:pd,Item:Yu,ItemDescription:Xu,ItemIndicator:Zu,ItemLabel:Qu,Label:md,Listbox:hd,Portal:gd,Section:ed,Trigger:yd,Value:bd}),Cd=W(`<svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M11 9.5L8 6.5L5 9.5"stroke=currentColor stroke-width=1 stroke-linecap=round stroke-linejoin=round>`),wd=W(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M3.53564 8.17857L6.39279 11.75L12.4642 4.25"stroke=currentColor stroke-width=1 stroke-linecap=round stroke-linejoin=round>`),Td=W(`<div data-slot=select-v2-value>`),Ed=W(`<span data-slot=select-v2-chevron aria-hidden=true>`),Dd=W(`<div data-slot=menu-v2-group-label>`);function Od(e,t){if(!t)return[{category:``,options:e}];let n=new Map;for(let r of e){let e=t(r),i=n.get(e);i?i.push(r):n.set(e,[r])}return[...n.entries()].map(([e,t])=>({category:e,options:t}))}var kd=()=>Cd(),Ad=()=>wd();function jd(e){let[t,n]=V(e,[`class`,`classList`,`placeholder`,`options`,`current`,`value`,`label`,`groupBy`,`onSelect`,`onHighlight`,`onOpenChange`,`children`,`invalid`,`numeric`,`disabled`,`valueClass`,`contentClass`,`placement`,`gutter`,`sameWidth`,`flip`,`slide`,`fitViewport`]),r={},i=()=>{r.cleanup?.(),r.cleanup=void 0,r.key=void 0},a=e=>t.value?t.value(e):String(e),o=e=>{if(!t.onHighlight)return;if(!e){i();return}let n=a(e);r.key!==n&&(r.cleanup?.(),r.cleanup=t.onHighlight(e),r.key=n)};F(i);let s=N(()=>Od(t.options,t.groupBy));return z(vd,B(n,{multiple:!1,allowDuplicateSelectionEvents:!1,get disabled(){return t.disabled},"data-component":`select-v2-root`,get placement(){return t.placement??`bottom-end`},get gutter(){return t.gutter??4},get sameWidth(){return t.sameWidth??!1},get flip(){return t.flip??!0},get slide(){return t.slide??!0},get fitViewport(){return t.fitViewport??!1},get value(){return t.current},get options(){return s()},optionValue:e=>t.value?t.value(e):String(e),optionTextValue:e=>t.label?t.label(e):String(e),optionGroupChildren:`options`,get placeholder(){return t.placeholder},sectionComponent:e=>z(ed,{get children(){return z(H,{get when(){return e.section.rawValue.category},get children(){var t=Dd();return K(t,()=>e.section.rawValue.category),t}})}}),itemComponent:e=>z(Yu,B(e,{"data-component":`menu-v2-item`,onPointerEnter:()=>o(e.item.rawValue),onPointerMove:()=>o(e.item.rawValue),onFocus:()=>o(e.item.rawValue),get children(){return[z(Qu,{"data-slot":`menu-v2-item-content`,as:`span`,get children(){return U(()=>!!t.children)()?t.children(e.item.rawValue):U(()=>!!t.label)()?t.label(e.item.rawValue):String(e.item.rawValue)}}),z(Zu,{"data-slot":`menu-v2-item-indicator`,forceMount:!0,get children(){return z(Ad,{})}})]}})),onChange:e=>{let n=e==null?null:Array.isArray(e)?e[0]??null:e;t.onSelect?.(n),i()},onOpenChange:e=>{t.onOpenChange?.(e),e||i()},get children(){return[z(yd,{as:`div`,get"aria-label"(){return e[`aria-label`]},get"aria-labelledby"(){return e[`aria-labelledby`]},"data-component":`select-v2`,"data-appearance":`inline`,get"data-invalid"(){return t.invalid?``:void 0},get"data-numeric"(){return t.numeric?``:void 0},get disabled(){return t.disabled},get"data-disabled"(){return t.disabled?``:void 0},get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return[(()=>{var e=Td();return K(e,z(bd,{"data-slot":`select-v2-value-text`,get class(){return t.valueClass},children:e=>{let n=e.selectedOption();return t.label&&n!=null?t.label(n):n??``}})),e})(),(()=>{var e=Ed();return K(e,z(kd,{})),e})()]}}),z(gd,{get children(){return z(dd,{get class(){return t.contentClass},"data-component":`menu-v2-content`,"data-slot":`select-v2-content`,get children(){return z(hd,{"data-slot":`select-v2-listbox`})}})}})]}}))}var Md=`/assets/sprite-B9ixRF_T.svg`,Nd=`zhipuai.zhipuai-coding-plan.zenmux.zai.zai-coding-plan.xiaomi.xai.wandb.vultr.vivgrid.vercel.venice.v0.upstage.togetherai.synthetic.submodel.stepfun.stackit.siliconflow.siliconflow-cn.scaleway.sap-ai-core.requesty.qiniu-ai.qihang-ai.privatemode-ai.poe.perplexity.ovhcloud.openrouter.llmgateway.opencode.opencode-go.openai.ollama-cloud.nvidia.novita-ai.nova.nebius.nano-gpt.morph.moonshotai.moonshotai-cn.modelscope.moark.mistral.minimax.minimax-coding-plan.minimax-cn.minimax-cn-coding-plan.meganova.lucidquery.lmstudio.llama.kuae-cloud-coding-plan.kimi-for-coding.kilo.jiekou.io-net.inference.inception.iflowcn.huggingface.helicone.groq.google.google-vertex.google-vertex-anthropic.gitlab.github-models.github-copilot.friendli.firmware.fireworks-ai.fastrouter.evroc.digitalocean.deepseek.deepinfra.cortecs.cohere.cloudflare-workers-ai.cloudflare-ai-gateway.cloudferro-sherlock.chutes.cerebras.berget.baseten.bailing.azure.azure-cognitive-services.anthropic.amazon-bedrock.alibaba.alibaba-cn.aihubmix.abacus.302ai`.split(`.`),Pd=W(`<svg data-component=provider-icon><use>`),Fd=e=>{let[t,n]=V(e,[`id`,`class`,`classList`]),r=N(()=>Nd.includes(t.id)?t.id:`synthetic`);return(()=>{var e=Pd(),i=e.firstChild;return gt(e,B(n,{get classList(){return{...t.classList,[t.class??``]:!!t.class}}}),!0,!0),j(()=>G(i,`href`,`${Md}#${r()}`)),e})()};function Id(e){let t=e.filter(e=>Number.isFinite(e.start)&&(e.end===void 0||Number.isFinite(e.end)&&e.end>=e.start)).map(e=>({...e})).sort((e,t)=>e.start-t.start),n=[];for(let e of t){let t=n.at(-1);!t||e.start>(t.end??1/0)?n.push(e):t.end=t.end===void 0||e.end===void 0?void 0:Math.max(t.end,e.end)}return n}var Ld=(e,t)=>Id(e).reduce((e,n)=>e+Math.max(0,Math.min(n.end??t,t)-n.start),0),Rd=e=>{let t=e===void 0?NaN:Date.parse(e);return Number.isFinite(t)?t:void 0};function zd(e,t,n=!0){let r=typeof t==`number`?Number.isFinite(t)?t:void 0:Rd(t);return r!==void 0&&(!n||e-r>3e4)?Math.min(e,r):e}function Bd(e,t){let n=[...new Set(t.map(e=>e.eval))],r=t.length&&t.every(e=>e.value!==null)?n.reduce((e,n)=>{let r=t.filter(e=>e.eval===n);return e+r.reduce((e,t)=>e+t.value,0)/r.length},0):null,i=r===null?null:100*r/n.length;return{model:e,components:t,earned:r,maximum:n.length,percentage:i,bounds:i===null?Hd(t):{lower:i,upper:i,coverage:100}}}var Vd=e=>e.bounds;function Hd(e){if(!e.length)return{lower:0,upper:100,coverage:0};let t=0,n=0,r=0;for(let i of e){let a=1/e.filter(e=>e.eval===i.eval).length;if(!i.expected){n+=a;continue}t+=a*i.scoredSum/i.expected,n+=a*(i.scoredSum+i.expected-i.scored)/i.expected,r+=a*i.scored/i.expected}let i=100/new Set(e.map(e=>e.eval)).size;return{lower:t*i,upper:n*i,coverage:r*i}}var Ud=e=>{let t=e.reduce((e,t)=>e+(t?.reportedUSD??0),0),n=e.every(e=>e?.complete===!0);return{reportedUSD:t,complete:n,usd:n?t:null}},Wd=(e,t)=>Ld(e.runtime,t),Gd=e=>e.slice(e.indexOf(`/`)+1).split(`#`)[0].replace(/^omen-alpha$/i,`Omen Alpha`).replace(/^gpt-/i,`GPT-`).replace(/^gemini-/,`Gemini `).replace(/^grok-/,`Grok `).replace(/^deepseek-v(\d+)-pro-(\d+)$/,`DeepSeek V$1 Pro $2`).replace(/^deepseek-v4\.1-flash-expires-on-0910$/,`DeepSeek V4.1 Flash`).replace(/^glm-/,`GLM-`).replace(/^muse-spark-/,`Muse Spark `).replace(/^claude-fable-(\d+)-(\d+)$/,`Claude Fable $1.$2`).replace(/-astra$/,` Astra`).replace(/-luna$/,` Luna`).replace(/-pro-preview$/,` Pro Preview`).replace(/-flash$/,` Flash`),Kd=e=>/deepseek/.test(e)?`deepseek`:/glm/.test(e)?`zai`:/grok/.test(e)?`xai`:/gpt|o[134]-/.test(e)?`openai`:/gemini/.test(e)?`google`:/claude/.test(e)?`anthropic`:/muse|llama/.test(e)?`llama`:e.split(`/`)[0],qd=e=>e.split(`#`)[1]??`default`,Jd=e=>{let t=e.slice(e.indexOf(`/`)+1).split(`#`)[0].toLowerCase(),n=[[/^omen-/,`OpenCode Go`,`Omen`],[/^gemini-/,`Google`,`Gemini`],[/^gpt-/,`OpenAI`,`GPT`],[/^o\d(?:-|$)/,`OpenAI`,`o-series`],[/^claude-/,`Anthropic`,`Claude`],[/^muse-/,`Meta`,`Muse`],[/^llama-/,`Meta`,`Llama`],[/^deepseek-/,`DeepSeek`,`DeepSeek`],[/^glm-/,`Z.ai`,`GLM`],[/^grok-/,`xAI`,`Grok`],[/^qwen/,`Alibaba`,`Qwen`],[/^kimi/,`Moonshot AI`,`Kimi`],[/^(?:mistral|devstral|codestral|magistral)/,`Mistral AI`,`Mistral`],[/^minimax/,`MiniMax`,`MiniMax`]].find(([e])=>e.test(t));return{lab:n?.[1]??e.split(`/`)[0],family:n?.[2]??t.split(`-`)[0]}},Yd=(e,t)=>{if(!t.length)return!0;let n=Jd(e);return t.includes(`lab:${n.lab}`)||t.includes(`family:${n.family}`)},Xd=e=>e===null?`—`:Number(e.toFixed(2)).toString(),Zd=e=>e===null?`Pending`:`${Xd(e)}%`,Qd=e=>e==null?`—`:new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:4}).format(e),$d=e=>new Date(e).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}),ef=e=>{let t=Math.round(e/1e3);return t<60?`${(e/1e3).toFixed(1)}s`:t<3600?`${Math.floor(t/60)}m ${t%60}s`:`${Math.floor(t/3600)}h ${Math.floor(t/60)%60}m ${t%60}s`},tf=e=>({waiting:`Waiting`,watching:`Watching evidence`,stopped:`Stopped early`,blocked:`Blocked`,timed_out:`Timed out`,queued:`Queued`,in_progress:`In progress`,completed:`Completed`,failed:`Failed`,cancelled:`Cancelled`,interrupted:`Interrupted`})[e]??e,nf=W(`<div class=score-chart role=group aria-label="Model scores from zero to one hundred percent"><div class=chart-scale><span>Model</span><div></div><span>Score`),rf=W(`<span>%`),af=W(`<div class=chart-range>`),of=W(`<span class=chart-points>`),sf=W(`<div class=chart-model><button class=chart-row><div class=model-identity><span class=provider-mark></span><div><strong></strong><small></small></div></div><div class=chart-track aria-hidden=true><div class=chart-grid></div><div class=chart-bar></div></div><div class=chart-score><span>`),cf=W(`<i>`),lf=W(`<button class="chart-row metric-row"><span class=metric-name></span><div class=chart-track aria-hidden=true><div class=chart-bar></div><span class=chart-points></span></div><span class=metric-score>`);function uf(e){let t=()=>[...e.scores].sort((e,t)=>Vd(t).lower-Vd(e).lower),n=e=>{let t=e.components.reduce((e,t)=>e+t.expected,0),n=e.components.reduce((e,t)=>e+t.scored,0);return t?new Set(e.components.map(e=>e.eval)).size>1?`${n}/${t} checks scored`:n===t&&e.components.every(e=>e.passed!==void 0)?`${e.components.reduce((e,t)=>e+t.passed,0)}/${t} passed`:`${e.components.every(e=>e.passed!==void 0)?`${e.components.reduce((e,t)=>e+t.passed,0)} passed · `:``}${n}/${t} scored`:``},r=e=>{let t=Vd(e);return t.upper-t.lower>1e-6?`${Xd(t.lower)}–${Zd(t.upper)}`:Zd(t.lower)};return(()=>{var i=nf(),a=i.firstChild.firstChild.nextSibling;return K(a,z(Ge,{each:[0,25,50,75,100],children:e=>(()=>{var t=rf(),n=t.firstChild;return K(t,e,n),t})()})),K(i,z(Ge,{get each(){return t()},children:t=>(()=>{var i=sf(),a=i.firstChild,o=a.firstChild,s=o.firstChild,c=s.nextSibling.firstChild,l=c.nextSibling,u=o.nextSibling,d=u.firstChild,f=d.nextSibling,p=u.nextSibling,m=p.firstChild;return a.$$click=()=>e.onSelect?.(t.model),K(s,z(Fd,{get id(){return Kd(t.model)}})),K(c,()=>Gd(t.model)),K(l,()=>qd(t.model)),K(d,z(Ge,{each:[0,25,50,75,100],children:e=>(()=>{var t=cf();return ht(t,`left`,`${e}%`),t})()})),K(u,z(H,{get when(){return Vd(t).upper>Vd(t).lower+1e-6},get children(){var e=af();return j(n=>{var r=`${Vd(t).lower}%`,i=`${Vd(t).upper-Vd(t).lower}%`;return r!==n.e&&ht(e,`left`,n.e=r),i!==n.t&&ht(e,`width`,n.t=i),n},{e:void 0,t:void 0}),e}}),null),K(u,z(H,{get when(){return!e.public},get children(){var e=of();return K(e,()=>n(t)),e}}),null),K(m,()=>r(t)),K(p,z(H,{get when(){return e.onSelect},get children(){return z(X,{name:`chevron-right`})}}),null),K(i,z(H,{get when(){return U(()=>!!e.metrics)()&&t.components.length>1},get children(){return z(Ge,{get each(){return t.components},children:n=>{let i=()=>Bd(t.model,[n]);return(()=>{var a=lf(),o=a.firstChild,s=o.nextSibling,c=s.firstChild,l=c.nextSibling,u=s.nextSibling;return a.$$click=()=>e.onSelect?.(t.model),K(o,()=>n.name??n.metric),K(l,(()=>{var e=U(()=>n.scored===n.expected);return()=>e()?`${n.passed}/${n.expected} passed`:`${n.scored}/${n.expected} scored`})()),K(u,()=>r(i())),j(o=>{var s=!e.onSelect,l=`${Gd(t.model)}, ${n.name??n.metric}, ${r(i())}`,u=`${Vd(i()).lower}%`;return s!==o.e&&(a.disabled=o.e=s),l!==o.t&&G(a,`aria-label`,o.t=l),u!==o.a&&ht(c,`width`,o.a=u),o},{e:void 0,t:void 0,a:void 0}),a})()}})}}),null),j(i=>{var o=`chart:${t.model}`,s=!!e.onSelect,c=!e.onSelect,l=`${Gd(t.model)}, ${r(t)}${e.public?``:`, ${n(t)}`}${e.onSelect?`, inspect eval run`:``}`,u=`Earned ${Zd(Vd(t).lower)}. Possible final score ${r(t)}.`,d=`${Vd(t).lower}%`,m=t.percentage===null;return o!==i.e&&G(a,`data-run-key`,i.e=o),s!==i.t&&a.classList.toggle(`inspectable`,i.t=s),c!==i.a&&(a.disabled=i.a=c),l!==i.o&&G(a,`aria-label`,i.o=l),u!==i.i&&G(a,`title`,i.i=u),d!==i.n&&ht(f,`width`,i.n=d),m!==i.s&&p.classList.toggle(`range`,i.s=m),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),i})()}),null),i})()}ct([`click`]);var df=hn({name:`FileComponent`,init:e=>e.component}),ff=df.provider,pf=df.use;function mf(e){if(!e)return;let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function hf(e,t=5e5){if(!e)return;if(e.length<=t)return mf(e);let n=4096;return`${e.length}:${[0,Math.floor(e.length*.25),Math.floor(e.length*.5),Math.floor(e.length*.75),e.length-n].map(t=>{let r=Math.max(0,Math.min(e.length-n,t-2048));return mf(e.slice(r,r+n))??``}).join(`:`)}`}var gf=`diffs-container`,_f=/(?=^From [a-f0-9]+ .+$)/m,vf=/(?=^diff --git)/gm,yf=/(?<=\n)/,bf=/^(---|\+\+\+)\s+([^\t\r\n]+)/,xf=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Sf=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,Cf=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,wf=`header-prefix`,Tf=`header-metadata`,Ef=`header-custom`,Df={dark:`pierre-dark`,light:`pierre-light`},Of=`data-theme-css`,kf=`data-unsafe-css`,Af=`data-diffs-scrollbar-measure`,jf=`--diffs-scrollbar-gutter-measured`,Mf=1e5,Nf={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8};({...Nf});var Pf=Object.freeze({fromStart:0,fromEnd:0}),Ff={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},If={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},Lf=new Set,Rf=null;function zf(e){Lf.add(e),Rf??=requestAnimationFrame(Bf)}function Bf(e){let t=new Set(Lf);Lf.clear();for(let n of t)try{n(e)}catch(e){console.error(e)}Rf=Lf.size>0?requestAnimationFrame(Bf):null}function Vf(e,t,n){if(e===t||e==null||t==null)return e===t;let r=new Set(n),i=Object.keys(e),a=new Set(Object.keys(t));for(let n of i)if(a.delete(n),!r.has(n)&&(!(n in t)||e[n]!==t[n]))return!1;for(let e of Array.from(a))if(!r.has(e))return!1;return!0}function Hf(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}function Uf(e,t){let n=e?.theme??Df,r=t?.theme??Df,i=Wf(e),a=Wf(t);return Hf(n,r)&&Vf(e,t,[`theme`,`parseDiffOptions`])&&Vf(i,a)}function Wf(e){if(e!=null&&`parseDiffOptions`in e)return e.parseDiffOptions}function Gf(e,t){return e?.start===t?.start&&e?.end===t?.end&&e?.side===t?.side&&e?.endSide===t?.endSide}function Kf({scrollTop:e,scrollHeight:t,height:n,fitPerfectly:r=!1,fitPerfectlyOverscroll:i=0,overscrollSize:a}){let o=n+a*2,s=r?n+i*2:o;if(t=Math.max(t,s),o>=t||r){let n=Math.max(e-i,0),r=Math.min(e+s,t);return{top:n,bottom:Math.max(r,n)}}let c=e+n/2-o/2,l=c+o;return c<0&&(c=0),l>t&&(l=t),c=Math.floor(Math.max(c,0)),{top:c,bottom:Math.ceil(Math.max(Math.min(l,t),c))}}function qf(e){return{type:`text`,value:e}}function Jf({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function Yf({name:e,width:t=16,height:n=16,properties:r}){return Jf({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[Jf({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function Xf(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t;t=`children`in t?t.children[0]:null}}function Zf(e){return Jf({tagName:`div`,properties:{"data-gutter":``},children:e})}function Qf(e,t,n,r={}){return Jf({tagName:`div`,properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...r},children:t==null?void 0:[Jf({tagName:`span`,properties:{"data-line-number-content":``},children:[qf(`${t}`)]})]})}function $f(e,t,n){return Jf({tagName:`div`,properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t===`annotation`?void 0:e,style:t===`annotation`?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function ep(){return Jf({tagName:`button`,properties:{"data-utility-button":``,type:`button`},children:[Yf({name:`diffs-icon-plus`,properties:{"data-icon":``}})]})}function tp(e,t){return e.lineNumber===t.lineNumber&&e.side===t.side}var np=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],rp=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};rp.prototype.normal={},rp.prototype.property={},rp.prototype.space=void 0;function ip(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new rp(n,r,t)}function ap(e){return e.toLowerCase()}var op=class{constructor(e,t){this.attribute=t,this.property=e}};op.prototype.attribute=``,op.prototype.booleanish=!1,op.prototype.boolean=!1,op.prototype.commaOrSpaceSeparated=!1,op.prototype.commaSeparated=!1,op.prototype.defined=!1,op.prototype.mustUseProperty=!1,op.prototype.number=!1,op.prototype.overloadedBoolean=!1,op.prototype.property=``,op.prototype.spaceSeparated=!1,op.prototype.space=void 0;var sp=s({boolean:()=>Z,booleanish:()=>lp,commaOrSpaceSeparated:()=>pp,commaSeparated:()=>fp,number:()=>Q,overloadedBoolean:()=>up,spaceSeparated:()=>dp}),cp=0,Z=mp(),lp=mp(),up=mp(),Q=mp(),dp=mp(),fp=mp(),pp=mp();function mp(){return 2**++cp}var hp=Object.keys(sp),gp=class extends op{constructor(e,t,n,r){let i=-1;if(super(e,t),_p(this,`space`,r),typeof n==`number`)for(;++i<hp.length;){let e=hp[i];_p(this,hp[i],(n&sp[e])===sp[e])}}};gp.prototype.defined=!0;function _p(e,t,n){n&&(e[t]=n)}function vp(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new gp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ap(r)]=r,n[ap(a.attribute)]=r}return new rp(t,n,e.space)}var yp=vp({properties:{ariaActiveDescendant:null,ariaAtomic:lp,ariaAutoComplete:null,ariaBusy:lp,ariaChecked:lp,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:dp,ariaCurrent:null,ariaDescribedBy:dp,ariaDetails:null,ariaDisabled:lp,ariaDropEffect:dp,ariaErrorMessage:null,ariaExpanded:lp,ariaFlowTo:dp,ariaGrabbed:lp,ariaHasPopup:null,ariaHidden:lp,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dp,ariaLevel:Q,ariaLive:null,ariaModal:lp,ariaMultiLine:lp,ariaMultiSelectable:lp,ariaOrientation:null,ariaOwns:dp,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:lp,ariaReadOnly:lp,ariaRelevant:null,ariaRequired:lp,ariaRoleDescription:dp,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:lp,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function bp(e,t){return t in e?e[t]:t}function xp(e,t){return bp(e,t.toLowerCase())}var Sp=vp({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:fp,acceptCharset:dp,accessKey:dp,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alpha:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:dp,autoFocus:Z,autoPlay:Z,blocking:dp,capture:null,charSet:null,checked:Z,cite:null,className:dp,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:lp,controls:Z,controlsList:dp,coords:Q|fp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:up,draggable:lp,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:dp,height:Q,hidden:up,high:Q,href:null,hrefLang:null,htmlFor:dp,httpEquiv:dp,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:dp,itemRef:dp,itemScope:Z,itemType:dp,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:Q,pattern:null,ping:dp,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:dp,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:dp,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootCustomElementRegistry:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shadowRootSerializable:Z,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:lp,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:lp,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dp,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:lp,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Z,disablePictureInPicture:Z,disableRemotePlayback:Z,exportParts:fp,part:dp,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:xp}),Cp=vp({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:pp,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:dp,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fp,g2:fp,glyphName:fp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:pp,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dp,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pp,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pp,rev:pp,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pp,requiredFeatures:pp,requiredFonts:pp,requiredFormats:pp,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:pp,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pp,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pp,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:bp}),wp=vp({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Tp=vp({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:xp}),Ep=vp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Dp=/[A-Z]/g,Op=/-[a-z]/g,kp=/^data[-\w.:]+$/i;function Ap(e,t){let n=ap(t),r=t,i=op;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&kp.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Op,Mp);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Op.test(e)){let n=e.replace(Dp,jp);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=gp}return new i(r,t)}function jp(e){return`-`+e.toLowerCase()}function Mp(e){return e.charAt(1).toUpperCase()}var Np=ip([yp,Sp,wp,Tp,Ep],`html`),Pp=ip([yp,Cp,wp,Tp,Ep],`svg`),Fp={}.hasOwnProperty;function Ip(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Fp.call(t,e)){let n=String(t[e]);i=Fp.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Lp=/["&'<>`]/g,Rp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zp=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Bp=/[|\\{}()[\]^$+*?.]/g,Vp=new WeakMap;function Hp(e,t){if(e=e.replace(t.subset?Up(t.subset):Lp,r),t.subset||t.escapeOnly)return e;return e.replace(Rp,n).replace(zp,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Up(e){let t=Vp.get(e);return t||(t=Wp(e),Vp.set(e,t)),t}function Wp(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Bp,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Gp=/[\dA-Fa-f]/;function Kp(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Gp.test(String.fromCharCode(t))?r:r+`;`}var qp=/\d/;function Jp(e,t,n){let r=`&#`+String(e);return n&&t&&!qp.test(String.fromCharCode(t))?r:r+`;`}var Yp=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Xp={nbsp:`\xA0`,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:`€`},Zp=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],Qp={}.hasOwnProperty,$p={},em;for(em in Xp)Qp.call(Xp,em)&&($p[Xp[em]]=em);var tm=/[^\dA-Za-z]/;function nm(e,t,n,r){let i=String.fromCharCode(e);if(Qp.call($p,i)){let e=$p[i],a=`&`+e;return n&&Yp.includes(e)&&!Zp.includes(e)&&(!r||t&&t!==61&&tm.test(String.fromCharCode(t)))?a:a+`;`}return``}function rm(e,t,n){let r=Kp(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=nm(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Jp(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function im(e,t){return Hp(e,Object.assign({format:rm},t))}var am=/^>|^->|<!--|-->|--!>|<!-$/g,om=[`>`],sm=[`<`,`>`];function cm(e,t,n,r){return r.settings.bogusComments?`<?`+im(e.value,Object.assign({},r.settings.characterReferences,{subset:om}))+`>`:`<!--`+e.value.replace(am,i)+`-->`;function i(e){return im(e,Object.assign({},r.settings.characterReferences,{subset:sm}))}}function lm(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function um(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function dm(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function fm(e){return e.join(` `).trim()}var pm=/[ \t\n\f\r]/g;function mm(e){return typeof e==`object`?e.type===`text`&&hm(e.value):hm(e)}function hm(e){return e.replace(pm,``)===``}var gm=ym(1),_m=ym(-1),vm=[];function ym(e){return t;function t(t,n,r){let i=t?t.children:vm,a=(n||0)+e,o=i[a];if(!r)for(;o&&mm(o);)a+=e,o=i[a];return o}}var bm={}.hasOwnProperty;function xm(e){return t;function t(t,n,r){return bm.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Sm=xm({body:Tm,caption:Cm,colgroup:Cm,dd:km,dt:Om,head:Cm,html:wm,li:Dm,optgroup:jm,option:Mm,p:Em,rp:Am,rt:Am,tbody:Pm,td:Lm,tfoot:Fm,th:Lm,thead:Nm,tr:Im});function Cm(e,t,n){let r=gm(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&mm(r.value.charAt(0)))}function wm(e,t,n){let r=gm(n,t);return!r||r.type!==`comment`}function Tm(e,t,n){let r=gm(n,t);return!r||r.type!==`comment`}function Em(e,t,n){let r=gm(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.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 Dm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Om(e,t,n){let r=gm(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function km(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function Am(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function jm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function Mm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Nm(e,t,n){let r=gm(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function Pm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function Fm(e,t,n){return!gm(n,t)}function Im(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Lm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var Rm=xm({body:Vm,colgroup:Hm,head:Bm,html:zm,tbody:Um});function zm(e){let t=gm(e,-1);return!t||t.type!==`comment`}function Bm(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function Vm(e){let t=gm(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&mm(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function Hm(e,t,n){let r=_m(n,t),i=gm(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Sm(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Um(e,t,n){let r=_m(n,t),i=gm(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Sm(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Wm={name:[[`
16
+ <path d="M7.86667 2H5.2H2V18H5.2H7.86667M7.86667 2H18V18H7.86667M7.86667 2V18" stroke="currentColor"/>`,"layout-left":`<path d="M2.91675 2.91699L2.91675 2.41699L2.41675 2.41699L2.41675 2.91699L2.91675 2.91699ZM17.0834 2.91699L17.5834 2.91699L17.5834 2.41699L17.0834 2.41699L17.0834 2.91699ZM17.0834 17.0837L17.0834 17.5837L17.5834 17.5837L17.5834 17.0837L17.0834 17.0837ZM2.91675 17.0837L2.41675 17.0837L2.41675 17.5837L2.91675 17.5837L2.91675 17.0837ZM7.41674 17.0837L7.41674 17.5837L8.41674 17.5837L8.41674 17.0837L7.91674 17.0837L7.41674 17.0837ZM8.41674 2.91699L8.41674 2.41699L7.41674 2.41699L7.41674 2.91699L7.91674 2.91699L8.41674 2.91699ZM2.91675 2.91699L2.91675 3.41699L17.0834 3.41699L17.0834 2.91699L17.0834 2.41699L2.91675 2.41699L2.91675 2.91699ZM17.0834 2.91699L16.5834 2.91699L16.5834 17.0837L17.0834 17.0837L17.5834 17.0837L17.5834 2.91699L17.0834 2.91699ZM17.0834 17.0837L17.0834 16.5837L2.91675 16.5837L2.91675 17.0837L2.91675 17.5837L17.0834 17.5837L17.0834 17.0837ZM2.91675 17.0837L3.41675 17.0837L3.41675 2.91699L2.91675 2.91699L2.41675 2.91699L2.41675 17.0837L2.91675 17.0837ZM7.91674 17.0837L8.41674 17.0837L8.41674 2.91699L7.91674 2.91699L7.41674 2.91699L7.41674 17.0837L7.91674 17.0837Z" fill="currentColor"/>`,"layout-left-partial":`<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>`,"layout-left-full":`<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>`,"layout-right":`<path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor"/>`,"layout-right-partial":`<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />`,"layout-right-full":`<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />`,"square-arrow-top-right":`<path d="M7.91675 2.9165H2.91675V17.0832H17.0834V12.0832M12.0834 2.9165H17.0834V7.9165M9.58342 10.4165L16.6667 3.33317" stroke="currentColor" stroke-linecap="square"/>`,"open-file":`<path d="M7.91602 2.91406H2.91602V17.0807H17.0827V12.0807M12.0827 2.91406H17.0827V7.91406M9.58268 10.4141L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>`,"speech-bubble":`<path d="M18.3334 10.0003C18.3334 5.57324 15.0927 2.91699 10.0001 2.91699C4.90749 2.91699 1.66675 5.57324 1.66675 10.0003C1.66675 11.1497 2.45578 13.1016 2.5771 13.3949C2.5878 13.4207 2.59839 13.4444 2.60802 13.4706C2.69194 13.6996 3.04282 14.9364 1.66675 16.7684C3.5186 17.6538 5.48526 16.1982 5.48526 16.1982C6.84592 16.9202 8.46491 17.0837 10.0001 17.0837C15.0927 17.0837 18.3334 14.4274 18.3334 10.0003Z" stroke="currentColor" stroke-linecap="square"/>`,comment:`<path d="M16.25 3.75H3.75V16.25L6.875 14.4643H16.25V3.75Z" stroke="currentColor" stroke-linecap="square"/>`,"folder-add-left":`<path d="M2.08333 9.58268V2.91602H8.33333L10 5.41602H17.9167V16.2493H8.75M3.75 12.0827V14.5827M3.75 14.5827V17.0827M3.75 14.5827H1.25M3.75 14.5827H6.25" stroke="currentColor" stroke-linecap="square"/>`,github:`<path d="M10.0001 1.62549C14.6042 1.62549 18.3334 5.35465 18.3334 9.95882C18.333 11.7049 17.785 13.4068 16.7666 14.8251C15.7482 16.2434 14.3107 17.3066 12.6563 17.8651C12.2397 17.9484 12.0834 17.688 12.0834 17.4692C12.0834 17.188 12.0938 16.2922 12.0938 15.1776C12.0938 14.3963 11.8334 13.8963 11.5313 13.6359C13.3855 13.4276 15.3334 12.7192 15.3334 9.52132C15.3334 8.60465 15.0105 7.86507 14.4792 7.28174C14.5626 7.0734 14.8542 6.21924 14.3959 5.0734C14.3959 5.0734 13.698 4.84424 12.1042 5.92757C11.4376 5.74007 10.7292 5.64632 10.0209 5.64632C9.31258 5.64632 8.60425 5.74007 7.93758 5.92757C6.34383 4.85465 5.64592 5.0734 5.64592 5.0734C5.18758 6.21924 5.47925 7.0734 5.56258 7.28174C5.03133 7.86507 4.70842 8.61507 4.70842 9.52132C4.70842 12.7088 6.64592 13.4276 8.50008 13.6359C8.2605 13.8442 8.04175 14.2088 7.96883 14.7505C7.48967 14.9692 6.29175 15.3234 5.54175 14.063C5.3855 13.813 4.91675 13.1984 4.2605 13.2088C3.56258 13.2192 3.97925 13.6047 4.27092 13.7609C4.62508 13.9588 5.03133 14.6984 5.12508 14.938C5.29175 15.4067 5.83342 16.3026 7.92717 15.9172C7.92717 16.6151 7.93758 17.2713 7.93758 17.4692C7.93758 17.688 7.78133 17.938 7.36467 17.8651C5.70491 17.3126 4.26126 16.2515 3.23851 14.8324C2.21576 13.4133 1.66583 11.7081 1.66675 9.95882C1.66675 5.35465 5.39592 1.62549 10.0001 1.62549Z" fill="currentColor"/>`,discord:`<path d="M16.0742 4.45014C14.9244 3.92097 13.7106 3.54556 12.4638 3.3335C12.2932 3.64011 12.1388 3.95557 12.0013 4.27856C10.6732 4.07738 9.32261 4.07738 7.99451 4.27856C7.85694 3.9556 7.70257 3.64014 7.53203 3.3335C6.28441 3.54735 5.06981 3.92365 3.91889 4.45291C1.63401 7.85128 1.01462 11.1652 1.32431 14.4322C2.6624 15.426 4.16009 16.1819 5.7523 16.6668C6.11082 16.1821 6.42806 15.6678 6.70066 15.1295C6.18289 14.9351 5.68315 14.6953 5.20723 14.4128C5.33249 14.3215 5.45499 14.2274 5.57336 14.136C6.95819 14.7907 8.46965 15.1302 9.99997 15.1302C11.5303 15.1302 13.0418 14.7907 14.4266 14.136C14.5463 14.2343 14.6688 14.3284 14.7927 14.4128C14.3159 14.6957 13.8152 14.9361 13.2965 15.1309C13.5688 15.669 13.8861 16.1828 14.2449 16.6668C15.8385 16.1838 17.3373 15.4283 18.6756 14.4335C19.039 10.645 18.0549 7.36145 16.0742 4.45014ZM7.09294 12.423C6.22992 12.423 5.51693 11.6357 5.51693 10.6671C5.51693 9.69852 6.20514 8.90427 7.09019 8.90427C7.97524 8.90427 8.68272 9.69852 8.66758 10.6671C8.65244 11.6357 7.97248 12.423 7.09294 12.423ZM12.907 12.423C12.0426 12.423 11.3324 11.6357 11.3324 10.6671C11.3324 9.69852 12.0206 8.90427 12.907 8.90427C13.7934 8.90427 14.4954 9.69852 14.4803 10.6671C14.4651 11.6357 13.7865 12.423 12.907 12.423Z" fill="currentColor"/>`,"layout-bottom":`<path d="M2.91699 17.0832L2.41699 17.0832L2.41699 17.5832L2.91699 17.5832L2.91699 17.0832ZM2.91699 2.91653L2.91699 2.41653L2.41699 2.41653L2.41699 2.91653L2.91699 2.91653ZM17.0837 2.91653L17.5837 2.91653L17.5837 2.41653L17.0837 2.41653L17.0837 2.91653ZM17.0837 17.0832L17.5837 17.0832L17.5837 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.5827L17.5837 12.5827L17.5837 11.5827L17.0837 11.5827L17.0837 12.0827L17.0837 12.5827ZM2.91699 11.5827L2.41699 11.5827L2.41699 12.5827L2.91699 12.5827L2.91699 12.0827L2.91699 11.5827ZM2.91699 17.0832L3.41699 17.0832L3.41699 2.91653L2.91699 2.91653L2.41699 2.91653L2.41699 17.0832L2.91699 17.0832ZM2.91699 2.91653L2.91699 3.41653L17.0837 3.41653L17.0837 2.91653L17.0837 2.41653L2.91699 2.41653L2.91699 2.91653ZM17.0837 2.91653L16.5837 2.91653L16.5837 17.0832L17.0837 17.0832L17.5837 17.0832L17.5837 2.91653L17.0837 2.91653ZM17.0837 17.0832L17.0837 16.5832L2.91699 16.5832L2.91699 17.0832L2.91699 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.0827L17.0837 11.5827L2.91699 11.5827L2.91699 12.0827L2.91699 12.5827L17.0837 12.5827L17.0837 12.0827Z" fill="currentColor"/>`,"layout-bottom-partial":`<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>`,"layout-bottom-full":`<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>`,"dot-grid":`<path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" fill="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" fill="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" fill="currentColor"/><path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" stroke="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" stroke="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" stroke="currentColor"/>`,"circle-check":`<path d="M12.4987 7.91732L8.7487 12.5007L7.08203 10.834M17.9154 10.0007C17.9154 14.3729 14.371 17.9173 9.9987 17.9173C5.62644 17.9173 2.08203 14.3729 2.08203 10.0007C2.08203 5.6284 5.62644 2.08398 9.9987 2.08398C14.371 2.08398 17.9154 5.6284 17.9154 10.0007Z" stroke="currentColor" stroke-linecap="square"/>`,copy:`<path d="M6.2513 6.24935V2.91602H17.0846V13.7493H13.7513M13.7513 6.24935V17.0827H2.91797V6.24935H13.7513Z" stroke="currentColor" stroke-linecap="round"/>`,check:`<path d="M5 11.9657L8.37838 14.7529L15 5.83398" stroke="currentColor" stroke-linecap="square"/>`,photo:`<path d="M16.6665 16.6666L11.6665 11.6666L9.99984 13.3333L6.6665 9.99996L3.08317 13.5833M2.9165 2.91663H17.0832V17.0833H2.9165V2.91663ZM13.3332 7.49996C13.3332 8.30537 12.6803 8.95829 11.8748 8.95829C11.0694 8.95829 10.4165 8.30537 10.4165 7.49996C10.4165 6.69454 11.0694 6.04163 11.8748 6.04163C12.6803 6.04163 13.3332 6.69454 13.3332 7.49996Z" stroke="currentColor" stroke-linecap="square"/>`,share:`<path d="M10.0013 12.0846L10.0013 3.33464M13.7513 6.66797L10.0013 2.91797L6.2513 6.66797M17.0846 10.418V17.0846H2.91797V10.418" stroke="currentColor" stroke-linecap="square"/>`,shield:`<path d="M7.49935 9.3737L9.16602 11.0404L12.4994 7.70703M9.99935 2.08203L17.0827 4.3737V9.92565C17.0827 14.0694 13.3327 16.2487 9.99935 18.047C6.66602 16.2487 2.91602 14.0694 2.91602 9.92565V4.3737L9.99935 2.08203Z" stroke="currentColor" stroke-linecap="square"/>`,download:`<path d="M13.9583 10.6257L10 14.584L6.04167 10.6257M10 2.08398V13.959M16.25 17.9173H3.75" stroke="currentColor" stroke-linecap="square"/>`,menu:`<path d="M2.5 5H17.5M2.5 10H17.5M2.5 15H17.5" stroke="currentColor" stroke-linecap="square"/>`,server:`<rect x="3.35547" y="1.92969" width="13.2857" height="16.1429" stroke="currentColor"/><rect x="3.35547" y="11.9297" width="13.2857" height="6.14286" stroke="currentColor"/><rect x="12.8555" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/><rect x="10" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/>`,branch:`<path d="M14.2036 7.19987L14.2079 6.69989L13.2079 6.69132L13.2036 7.1913L13.7036 7.19559L14.2036 7.19987ZM8.14804 5.09032H7.64804C7.64804 5.75797 7.06861 6.34471 6.29619 6.34471V6.84471V7.34471C7.56926 7.34471 8.64804 6.36051 8.64804 5.09032H8.14804ZM6.29619 6.84471V6.34471C5.52376 6.34471 4.94434 5.75797 4.94434 5.09032H4.44434H3.94434C3.94434 6.36051 5.02311 7.34471 6.29619 7.34471V6.84471ZM4.44434 5.09032H4.94434C4.94434 4.42267 5.52376 3.83594 6.29619 3.83594V3.33594V2.83594C5.02311 2.83594 3.94434 3.82013 3.94434 5.09032H4.44434ZM6.29619 3.33594V3.83594C7.06861 3.83594 7.64804 4.42267 7.64804 5.09032H8.14804H8.64804C8.64804 3.82013 7.56926 2.83594 6.29619 2.83594V3.33594ZM8.14804 14.9149H7.64804C7.64804 15.5825 7.06861 16.1693 6.29619 16.1693V16.6693V17.1693C7.56926 17.1693 8.64804 16.1851 8.64804 14.9149H8.14804ZM6.29619 16.6693V16.1693C5.52376 16.1693 4.94434 15.5825 4.94434 14.9149H4.44434H3.94434C3.94434 16.1851 5.02311 17.1693 6.29619 17.1693V16.6693ZM4.44434 14.9149H4.94434C4.94434 14.2472 5.52376 13.6605 6.29619 13.6605V13.1605V12.6605C5.02311 12.6605 3.94434 13.6447 3.94434 14.9149H4.44434ZM6.29619 13.1605V13.6605C7.06861 13.6605 7.64804 14.2472 7.64804 14.9149H8.14804H8.64804C8.64804 13.6447 7.56926 12.6605 6.29619 12.6605V13.1605ZM15.5554 5.09032H15.0554C15.0554 5.75797 14.476 6.34471 13.7036 6.34471V6.84471V7.34471C14.9767 7.34471 16.0554 6.36051 16.0554 5.09032H15.5554ZM13.7036 6.84471V6.34471C12.9312 6.34471 12.3517 5.75797 12.3517 5.09032H11.8517H11.3517C11.3517 6.36051 12.4305 7.34471 13.7036 7.34471V6.84471ZM11.8517 5.09032H12.3517C12.3517 4.42267 12.9312 3.83594 13.7036 3.83594V3.33594V2.83594C12.4305 2.83594 11.3517 3.82013 11.3517 5.09032H11.8517ZM13.7036 3.33594V3.83594C14.476 3.83594 15.0554 4.42267 15.0554 5.09032H15.5554H16.0554C16.0554 3.82013 14.9767 2.83594 13.7036 2.83594V3.33594ZM13.7036 7.19559L13.2036 7.1913L13.1544 12.9277L13.6544 12.932L14.1544 12.9363L14.2036 7.19987L13.7036 7.19559ZM6.29619 6.84471H5.79619V13.1605H6.29619H6.79619V6.84471H6.29619ZM11.6545 14.9149V14.4149H8.14804V14.9149V15.4149H11.6545V14.9149ZM13.6544 12.932L13.1544 12.9277C13.1474 13.7511 12.4779 14.4149 11.6545 14.4149V14.9149V15.4149C13.0269 15.4149 14.1426 14.3086 14.1544 12.9363L13.6544 12.932Z" fill="currentColor"/>`,edit:`<path d="M17.0832 17.0807V17.5807H17.5832V17.0807H17.0832ZM2.9165 17.0807H2.4165V17.5807H2.9165V17.0807ZM2.9165 2.91406V2.41406H2.4165V2.91406H2.9165ZM9.58317 3.41406H10.0832V2.41406H9.58317V2.91406V3.41406ZM17.5832 10.4141V9.91406H16.5832V10.4141H17.0832H17.5832ZM6.24984 11.2474L5.89628 10.8938L5.74984 11.0403V11.2474H6.24984ZM6.24984 13.7474H5.74984V14.2474H6.24984V13.7474ZM8.74984 13.7474V14.2474H8.95694L9.10339 14.101L8.74984 13.7474ZM15.2082 2.28906L15.5617 1.93551L15.2082 1.58196L14.8546 1.93551L15.2082 2.28906ZM17.7082 4.78906L18.0617 5.14262L18.4153 4.78906L18.0617 4.43551L17.7082 4.78906ZM17.0832 17.0807V16.5807H2.9165V17.0807V17.5807H17.0832V17.0807ZM2.9165 17.0807H3.4165V2.91406H2.9165H2.4165V17.0807H2.9165ZM2.9165 2.91406V3.41406H9.58317V2.91406V2.41406H2.9165V2.91406ZM17.0832 10.4141H16.5832V17.0807H17.0832H17.5832V10.4141H17.0832ZM6.24984 11.2474H5.74984V13.7474H6.24984H6.74984V11.2474H6.24984ZM6.24984 13.7474V14.2474H8.74984V13.7474V13.2474H6.24984V13.7474ZM6.24984 11.2474L6.60339 11.6009L15.5617 2.64262L15.2082 2.28906L14.8546 1.93551L5.89628 10.8938L6.24984 11.2474ZM15.2082 2.28906L14.8546 2.64262L17.3546 5.14262L17.7082 4.78906L18.0617 4.43551L15.5617 1.93551L15.2082 2.28906ZM17.7082 4.78906L17.3546 4.43551L8.39628 13.3938L8.74984 13.7474L9.10339 14.101L18.0617 5.14262L17.7082 4.78906Z" fill="currentColor"/>`,help:`<path d="M7.91683 7.91927V6.2526H12.0835V8.7526L10.0002 10.0026V12.0859M10.0002 13.7526V13.7609M17.9168 10.0026C17.9168 14.3749 14.3724 17.9193 10.0002 17.9193C5.62791 17.9193 2.0835 14.3749 2.0835 10.0026C2.0835 5.63035 5.62791 2.08594 10.0002 2.08594C14.3724 2.08594 17.9168 5.63035 17.9168 10.0026Z" stroke="currentColor" stroke-linecap="square"/>`,"settings-gear":`<path d="M7.62516 4.46094L5.05225 3.86719L3.86475 5.05469L4.4585 7.6276L2.0835 9.21094V10.7943L4.4585 12.3776L3.86475 14.9505L5.05225 16.138L7.62516 15.5443L9.2085 17.9193H10.7918L12.3752 15.5443L14.9481 16.138L16.1356 14.9505L15.5418 12.3776L17.9168 10.7943V9.21094L15.5418 7.6276L16.1356 5.05469L14.9481 3.86719L12.3752 4.46094L10.7918 2.08594H9.2085L7.62516 4.46094Z" stroke="currentColor"/><path d="M12.5002 10.0026C12.5002 11.3833 11.3809 12.5026 10.0002 12.5026C8.61945 12.5026 7.50016 11.3833 7.50016 10.0026C7.50016 8.62189 8.61945 7.5026 10.0002 7.5026C11.3809 7.5026 12.5002 8.62189 12.5002 10.0026Z" stroke="currentColor"/>`,dash:`<rect x="5" y="9.5" width="10" height="1" fill="currentColor"/>`,"cloud-upload":`<path d="M12.0833 16.25H15C17.0711 16.25 18.75 14.5711 18.75 12.5C18.75 10.5649 17.2843 8.97217 15.4025 8.77133C15.2 6.13103 12.8586 4.08333 10 4.08333C7.71532 4.08333 5.76101 5.49781 4.96501 7.49881C2.84892 7.90461 1.25 9.76559 1.25 11.6667C1.25 13.9813 3.30203 16.25 5.83333 16.25H7.91667M10 16.25V10.4167M12.0833 11.875L10 9.79167L7.91667 11.875" stroke="currentColor" stroke-linecap="square"/>`,trash:`<path d="M4.58342 17.9134L4.58369 17.4134L4.22787 17.5384L4.22766 18.0384H4.58342V17.9134ZM15.4167 17.9134V18.0384H15.7725L15.7723 17.5384L15.4167 17.9134ZM2.08342 3.95508V3.45508H1.58342V3.95508H2.08342V4.45508V3.95508ZM17.9167 4.45508V4.95508H18.4167V4.45508H17.9167V3.95508V4.45508ZM4.16677 4.58008L3.66701 4.5996L4.22816 17.5379L4.72792 17.4934L5.22767 17.4489L4.66652 4.54055L4.16677 4.58008ZM4.58342 18.0384V17.9134H15.4167V18.0384V18.5384H4.58342V18.0384ZM15.4167 17.9134L15.8332 17.5379L16.2498 4.5996L15.7501 4.58008L15.2503 4.56055L14.8337 17.4989L15.4167 17.9134ZM15.8334 4.58008V4.08008H4.16677V4.58008V5.08008H15.8334V4.58008ZM2.08342 4.45508V4.95508H4.16677V4.58008V4.08008H2.08342V4.45508ZM15.8334 4.58008V5.08008H17.9167V4.45508V3.95508H15.8334V4.58008ZM6.83951 4.35149L7.432 4.55047C7.79251 3.47701 8.80699 2.70508 10.0001 2.70508V2.20508V1.70508C8.25392 1.70508 6.77335 2.83539 6.24702 4.15251L6.83951 4.35149ZM10.0001 2.20508V2.70508C11.1932 2.70508 12.2077 3.47701 12.5682 4.55047L13.1607 4.35149L13.7532 4.15251C13.2269 2.83539 11.7463 1.70508 10.0001 1.70508V2.20508Z" fill="currentColor"/>`,sliders:`<path d="M11.7778 4.66797H14.4444M11.7778 4.66797C11.7778 5.77254 10.8823 6.66797 9.77776 6.66797C8.67319 6.66797 7.77776 5.77254 7.77776 4.66797M11.7778 4.66797C11.7778 3.5634 10.8823 2.66797 9.77776 2.66797C8.67319 2.66797 7.77776 3.5634 7.77776 4.66797M1.55554 4.66797H7.77776M4.22221 11.3346H1.55554M4.22221 11.3346C4.22221 12.4392 5.11764 13.3346 6.22221 13.3346C7.32678 13.3346 8.22221 12.4392 8.22221 11.3346M4.22221 11.3346C4.22221 10.2301 5.11764 9.33464 6.22221 9.33464C7.32678 9.33464 8.22221 10.2301 8.22221 11.3346M14.4444 11.3346H8.22221" stroke="currentColor"/>`,keyboard:`<path d="M5.125 7.375V4.375H14.875V2.875M8.3125 13.9375H11.6875M8.125 13.9375H11.875M2.125 7.375H17.875V17.125H2.125V7.375ZM5.5 10.375H5.125V10.75H5.5V10.375ZM8.5 10.375H8.125V10.75H8.5V10.375ZM11.875 10.375H11.5V10.75H11.875V10.375ZM14.875 10.375H14.5V10.75H14.875V10.375ZM14.875 13.75H14.5V14.125H14.875V13.75ZM5.5 13.75H5.125V14.125H5.5V13.75Z" stroke="currentColor" stroke-linecap="square"/>`,selector:`<path d="M6.66626 12.5033L9.99959 15.8366L13.3329 12.5033M6.66626 7.50326L9.99959 4.16992L13.3329 7.50326" stroke="currentColor" stroke-linecap="square"/>`,"arrow-down-to-line":`<path d="M15.2083 11.6667L10 16.875L4.79167 11.6667M10 16.25V3.125" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>`,warning:`<path d="M10 7.91667V11.6667M10 13.7417V13.75M10 2.5L1.875 16.25H18.125L10 2.5Z" stroke="currentColor" stroke-linecap="square"/>`,reset:`<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>`,link:`<path d="M2.08334 12.0833L1.72979 11.7298L1.37624 12.0833L1.72979 12.4369L2.08334 12.0833ZM7.91668 17.9167L7.56312 18.2702L7.91668 18.6238L8.27023 18.2702L7.91668 17.9167ZM17.9167 7.91666L18.2702 8.27022L18.6238 7.91666L18.2702 7.56311L17.9167 7.91666ZM12.0833 2.08333L12.4369 1.72977L12.0833 1.37622L11.7298 1.72977L12.0833 2.08333ZM8.39646 5.06311L8.0429 5.41666L8.75001 6.12377L9.10356 5.77021L8.75001 5.41666L8.39646 5.06311ZM5.77023 9.10355L6.12378 8.74999L5.41668 8.04289L5.06312 8.39644L5.41668 8.74999L5.77023 9.10355ZM14.2298 10.8964L13.8762 11.25L14.5833 11.9571L14.9369 11.6035L14.5833 11.25L14.2298 10.8964ZM11.6036 14.9369L11.9571 14.5833L11.25 13.8762L10.8965 14.2298L11.25 14.5833L11.6036 14.9369ZM7.14646 12.1464L6.7929 12.5L7.50001 13.2071L7.85356 12.8535L7.50001 12.5L7.14646 12.1464ZM12.8536 7.85355L13.2071 7.49999L12.5 6.79289L12.1465 7.14644L12.5 7.49999L12.8536 7.85355ZM2.08334 12.0833L1.72979 12.4369L7.56312 18.2702L7.91668 17.9167L8.27023 17.5631L2.4369 11.7298L2.08334 12.0833ZM17.9167 7.91666L18.2702 7.56311L12.4369 1.72977L12.0833 2.08333L11.7298 2.43688L17.5631 8.27022L17.9167 7.91666ZM12.0833 2.08333L11.7298 1.72977L8.39646 5.06311L8.75001 5.41666L9.10356 5.77021L12.4369 2.43688L12.0833 2.08333ZM5.41668 8.74999L5.06312 8.39644L1.72979 11.7298L2.08334 12.0833L2.4369 12.4369L5.77023 9.10355L5.41668 8.74999ZM14.5833 11.25L14.9369 11.6035L18.2702 8.27022L17.9167 7.91666L17.5631 7.56311L14.2298 10.8964L14.5833 11.25ZM7.91668 17.9167L8.27023 18.2702L11.6036 14.9369L11.25 14.5833L10.8965 14.2298L7.56312 17.5631L7.91668 17.9167ZM7.50001 12.5L7.85356 12.8535L12.8536 7.85355L12.5 7.49999L12.1465 7.14644L7.14646 12.1464L7.50001 12.5Z" fill="currentColor"/>`,providers:`<path d="M5.11115 3.33252H10.8889M5.11115 3.33252L3.33337 3.33254V12.6658H5.11115M5.11115 3.33252L5.11108 1.55469M10.8889 3.33252L12.6667 3.33252V12.6658H10.8889M10.8889 3.33252L10.8889 1.55469M10.8889 12.6658H5.11115M10.8889 12.6658L10.8889 14.4435M5.11115 12.6658L5.11108 14.4435M8 1.55469V3.33247M14.4444 7.99915H12.6666M14.4444 5.11023H12.6666M14.4444 10.8881H12.6666M8 14.4435V12.6658M1.55554 7.99915H3.33332M1.55554 10.8881H3.33332M1.55554 5.11023H3.33332M6 9.99915V5.99915H10V9.99915H6Z" stroke="currentColor"/>`,models:`<path fill-rule="evenodd" clip-rule="evenodd" d="M14 8C9.83336 8 8 9.83336 8 14C8 9.83336 6.16666 8 2 8C6.16666 8 8 6.16666 8 2C8 6.16666 9.83336 8 14 8Z" stroke="currentColor"/>`,appearance:`<path d="M2.00012 13.9997L13.9998 2" stroke="currentColor" stroke-linecap="square"/><path d="M2.00012 8.35278L8.3529 2" stroke="currentColor" stroke-linecap="square"/><path d="M2.00012 2.70586L2.70599 2" stroke="currentColor" stroke-linecap="square"/><path d="M7.64722 14.0012L14 7.64844" stroke="currentColor" stroke-linecap="square"/><path d="M13.2935 13.9988L13.9993 13.293" stroke="currentColor" stroke-linecap="square"/>`,notifications:`<path d="M14.8889 6.77778V9.11112C14.8889 10.093 14.8889 10.8889 14.8889 10.8889H11.3334M5.55558 10.8889H2C2 10.8889 2.00001 10.093 2.00001 9.11112V3.77778C2.00001 2.79594 2.00009 2 2.00009 2H9.44531M5.55558 10.8889V13.1111H8.44447H11.3334V10.8889M5.55558 10.8889H11.3334" stroke="currentColor"/><path d="M13 5C14.1046 5 15 4.10457 15 3C15 1.89543 14.1046 1 13 1C11.8954 1 11 1.89543 11 3C11 4.10457 11.8954 5 13 5Z" stroke="currentColor"/>`,extensions:`<path d="M8 6.75047V9.25047M10.668 6.75047V9.25047M5.33398 6.75047V9.25047M1.33398 2.44531V13.5553H14.6673V2.44531H1.33398Z" stroke="currentColor" stroke-linecap="square"/>`,cube:`<path d="M10 2.5L16.5 6.25V13.75L10 17.5L3.5 13.75V6.25L10 2.5Z" stroke="currentColor"/><path d="M10 10L16.5 6.25M10 10V17.5M10 10L3.5 6.25" stroke="currentColor"/>`,"post-skill":`<rect x="2.5" y="3.5" width="15" height="13" rx="1.5" stroke="currentColor"/><path d="M5.5 7.5H10.5M5.5 10.5H14.5" stroke="currentColor"/>`,"arrow-undo-down":`<path d="M4.08333 11.0859L1.75 8.7526L4.08333 6.41927M2.33333 8.7526L12.5417 8.7526L12.5417 3.21094L7 3.21094" stroke="currentColor" stroke-width="1" stroke-linecap="square"/>`};function To(e){return e===`magnifying-glass`||e===`arrow-undo-down`||e===`subagent`||e===`notifications`||e===`appearance`||e===`extensions`||e===`sliders`||e===`providers`||e===`models`?`0 0 16 16`:`0 0 20 20`}var Eo=W(`<svg><use>`),Do={lock:{viewBox:`0 0 16 16`,body:`<rect x="3.5" y="7" width="9" height="7" rx="1" stroke="currentColor"/><path d="M5 7V5a3 3 0 0 1 6 0v2M8 10v1" stroke="currentColor" stroke-linecap="round"/>`},globe:{viewBox:`0 0 16 16`,body:`<circle cx="8" cy="8" r="6" stroke="currentColor"/><ellipse cx="8" cy="8" rx="2.5" ry="6" stroke="currentColor"/><path d="M2 8h12" stroke="currentColor"/>`},flask:{viewBox:`0 0 16 16`,body:`<path d="M5.5 2H10.5M6 2V6L2.5 12C2 13 2.5 14 3.5 14H12.5C13.5 14 14 13 13.5 12L10 6V2M4.25 9H11.75" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>`},edit:{viewBox:`0 0 16 16`,body:`<path d="M13.5556 8.21529V13.5556H2.44446L2.44446 2.44445H7.78474M6.00002 8.16216V10H7.83786L14 3.83784L12.1622 2L6.00002 8.16216Z" stroke="currentColor"/>`},"folder-add-left":{viewBox:`0 0 16 16`,body:`<path d="M7.5 13.3333H1.5V2H6.83333L8.83333 4H14.8333V6M10.1667 11.3333H15.5M12.8333 8.66667V14" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/>`},folder:{viewBox:`0 0 16 16`,body:`<path d="M1.33337 2V13.3333H14.6667V4H8.66671L6.66671 2H1.33337Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/>`},branch:{viewBox:`0 0 16 16`,body:`<path d="M5.118 5.686V10.314M5.118 5.686C5.97 5.686 6.661 4.995 6.661 4.143C6.661 3.291 5.97 2.6 5.118 2.6C4.266 2.6 3.575 3.291 3.575 4.143C3.575 4.995 4.266 5.686 5.118 5.686ZM5.118 10.314C4.266 10.314 3.575 11.005 3.575 11.857C3.575 12.709 4.266 13.4 5.118 13.4C5.97 13.4 6.661 12.709 6.661 11.857M5.118 10.314C5.97 10.314 6.661 11.005 6.661 11.857M10.882 5.686C11.734 5.686 12.425 4.995 12.425 4.143C12.425 3.291 11.734 2.6 10.882 2.6C10.03 2.6 9.339 3.291 9.339 4.143C9.339 4.995 10.03 5.686 10.882 5.686ZM10.882 5.686V9.457C10.882 10.783 9.807 11.857 8.482 11.857H6.661" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>`},"branch-out":{viewBox:`0 0 16 16`,body:`<path d="M10.4225 3.35355L12.9024 5.83344L10.4225 8.31333" stroke="currentColor"/><path d="M1 12.2852H4.23042C4.89912 12.2852 5.52359 11.951 5.89452 11.3946L9.00783 6.72462C8.37877 6.16823 10.0032 5.83402 10.6719 5.83402H12.9024" stroke="currentColor"/><path d="M8.5 12.2852H14" stroke="currentColor" stroke-linejoin="round"/>`},"grid-plus":{viewBox:`0 0 16 16`,body:`<path d="M13.9948 11.668H9.32812M11.6641 9.33203V13.9987M6.66667 9.33203V13.9987H2V9.33203H6.66667ZM6.66667 2V6.66667H2V2H6.66667ZM13.9948 2V6.66667H9.32812V2H13.9948Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/>`},help:{viewBox:`0 0 16 16`,body:`<path d="M6.33345 6.33349V5.00015H9.66679V7.00015L8.00015 8.00015V9.66679M8.27485 11.6819H7.71897M14.4446 8.00011C14.4446 11.5593 11.5593 14.4446 8.00011 14.4446C4.44094 14.4446 1.55566 11.5593 1.55566 8.00011C1.55566 4.44094 4.44094 1.55566 8.00011 1.55566C11.5593 1.55566 14.4446 4.44094 14.4446 8.00011Z" stroke="currentColor" stroke-linecap="square"/>`},info:{viewBox:`0 0 16 16`,body:`<g transform="translate(2 2)"><path d="M12 12H0V0H12V12ZM1 1V11H11V1H1ZM6.5791 4.81641V9.37207H5.5791V5.81641H4.46777V4.81641H6.5791ZM6.85645 2.62891V3.62891H5.30078V2.62891H6.85645Z" fill="currentColor"/></g>`},"circle-exclamation":{viewBox:`0 0 16 16`,body:`<path d="M8.75 11.75H7.25V10.25H8.75V11.75Z" fill="currentColor"/><path d="M8.75 9.25H7.25V4.25H8.75V9.25Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C9.93286 1 11.684 1.7836 12.9502 3.0498C14.2164 4.31601 15 6.06714 15 8C15 11.866 11.866 15 8 15C6.06714 15 4.31601 14.2164 3.0498 12.9502C1.7836 11.684 1 9.93286 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 9.65699 2.67148 11.1559 3.75781 12.2422C4.84415 13.3285 6.34301 14 8 14C11.3137 14 14 11.3137 14 8C14 6.34301 13.3285 4.84415 12.2422 3.75781C11.1559 2.67148 9.65699 2 8 2Z" fill="currentColor"/>`},"circle-xmark":{viewBox:`0 0 16 16`,body:`<path fill-rule="evenodd" clip-rule="evenodd" d="M1.33334 8.00016C1.33334 4.31826 4.31811 1.3335 8.00001 1.3335C11.6819 1.3335 14.6667 4.31826 14.6667 8.00016C14.6667 11.6821 11.6819 14.6668 8.00001 14.6668C4.31811 14.6668 1.33334 11.6821 1.33334 8.00016ZM6.00001 5.29306L5.2929 6.00016L7.2929 8.00016L5.2929 10.0002L6.00001 10.7073L8.00001 8.70727L10 10.7073L10.7071 10.0002L8.70712 8.00016L10.7071 6.00016L10 5.29306L8.00001 7.29306L6.00001 5.29306Z" fill="currentColor"/>`},"sidebar-right":{viewBox:`0 0 20 20`,body:`<path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor"/>`},status:{viewBox:`0 0 20 20`,body:`<path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>`},"status-active":{viewBox:`0 0 20 20`,body:`<path d="M18 2H2V10H18V2Z" fill="currentColor" fill-opacity="0.1"/><path d="M2 18H18V10H2V18Z" fill="currentColor" fill-opacity="0.1"/><path d="M2 10V18H18V10M2 10V2H18V10M2 10H18M5 6H9M5 14H9" stroke="currentColor"/>`},"magnifying-glass":{viewBox:`0 0 16 16`,body:`<path d="M14 14L10.3454 10.3454M6.88889 11.7778C9.58889 11.7778 11.7778 9.58889 11.7778 6.88889C11.7778 4.18889 9.58889 2 6.88889 2C4.18889 2 2 4.18889 2 6.88889C2 9.58889 4.18889 11.7778 6.88889 11.7778Z" stroke="currentColor"/>`},menu:{viewBox:`0 0 16 16`,body:`<path d="M2 8H14M2 4.664H14M2 11.336H14" stroke="currentColor"/>`},plus:{viewBox:`0 0 16 16`,body:`<path d="M8 2.88867V13.1109" stroke="currentColor" stroke-linejoin="round"/><path d="M2.88867 8H13.1109" stroke="currentColor" stroke-linejoin="round"/>`},"settings-gear":{viewBox:`0 0 16 16`,body:`<path d="M7.99998 1.3335L14 4.66683V11.3335L7.99998 14.6668L2 11.3335V4.66683L7.99998 1.3335Z" stroke="currentColor"/><path d="M9.99998 8.00016C9.99998 9.10476 9.10458 10.0002 7.99998 10.0002C6.89538 10.0002 5.99998 9.10476 5.99998 8.00016C5.99998 6.89556 6.89538 6.00016 7.99998 6.00016C9.10458 6.00016 9.99998 6.89556 9.99998 8.00016Z" stroke="currentColor"/>`},"chevron-down":{viewBox:`0 0 16 16`,body:`<path d="M5 6.5L8 9.5L11 6.5" stroke="currentColor"/>`},collapse:{viewBox:`0 0 16 16`,body:`<path d="M8 1V6M11 3L8 6L5 3" stroke="currentColor"/><path d="M8 15V10M11 13L8 10L5 13" stroke="currentColor"/><path d="M4 8H6" stroke="currentColor"/><path d="M7 8H9" stroke="currentColor"/><path d="M10 8H12" stroke="currentColor"/>`},check:{viewBox:`0 0 16 16`,body:`<path d="M3.53613 8.17857L6.39328 11.75L12.4647 4.25" stroke="currentColor"/>`},monitor:{viewBox:`0 0 16 16`,body:`<path d="M4.05559 9.38889H0.500007C0.500007 9.38889 0.500017 8.59298 0.500017 7.61112V2.27778C0.500017 1.29594 0.500102 0.5 0.500102 0.5H13.3889C13.3889 0.5 13.3889 1.29594 13.3889 2.27778V7.61112C13.3889 8.59298 13.3889 9.38889 13.3889 9.38889H9.83336M4.05559 9.38889V11.6111H6.94448H9.83336V9.38889M4.05559 9.38889H9.83336" transform="translate(1.05556 1.94444)" stroke="currentColor"/>`},"workspace-new":{viewBox:`0 0 16 16`,body:`<path d="M2 10.7578V14.0011H5.24324M13.9991 5.24324V2H10.7559M13.9991 10.7578V14.0011H10.7559M2 5.24324V2H5.24324" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/><path d="M8 4.5V11.5M4.5 8H11.5" stroke="currentColor" stroke-linejoin="round"/>`},"workspace-isolated":{viewBox:`0 0 16 16`,body:`<path d="M10.5 10.5V5.5H5.5V10.5H10.5Z" fill="currentColor"/><rect x="2.5" y="2.5" width="11" height="11" stroke="currentColor"/>`},workspace:{viewBox:`0 0 16 16`,body:`<path d="M2 10.668V14.0013H10.6667M13.9974 10.6667V2H2.66406M13.9974 10.668V14.0013H10.6641M2 10V2H5.33333" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/><path d="M10.6693 10.6654V5.33203H5.33594V10.6654H10.6693Z" fill="currentColor"/>`},"outline-worktree":{viewBox:`0 0 16 16`,body:`<path d="M12 3.11133L14.3885 5.49977L12 7.88822M14.5 5.49972H10.058L5.13456 11.8139M14.5 11.6606L8.5 11.6606M5.50012 11.6597H1.5" stroke="currentColor"/>`},"outline-trash":{viewBox:`0 0 16 16`,body:`<path d="M2.44434 4.22224H13.5554M5.99994 4.22224V2.44446C5.99994 1.95557 5.99992 1.55557 5.99992 1.55557H9.99989C9.99989 1.55557 9.99994 1.95557 9.99994 2.44446V4.22224M6.55545 7.77779L6.7485 11.7778M9.44437 7.77779L9.2513 11.7778M12.1756 6.88891L11.8666 12.7556C11.8168 13.7068 11.7748 14.4445 11.7748 14.4445H4.22511C4.22511 14.4445 4.18392 13.7067 4.13414 12.7556L3.82509 6.88891" stroke="currentColor"/>`},close:{viewBox:`0 0 20 20`,body:`<path d="M14.4446 5.55566L5.55566 14.4446M5.55566 5.55566L14.4446 14.4446" stroke="currentColor" stroke-linejoin="round"/>`},"xmark-small":{viewBox:`0 0 16 16`,body:`<path d="M4.25 11.75L11.75 4.25M11.75 11.75L4.25 4.25" stroke="currentColor"/>`},"outline-xmark":{viewBox:`0 0 16 16`,body:`<path fill-rule="evenodd" clip-rule="evenodd" d="M4.99487 5.70186L7.29297 7.99995L4.99487 10.2981L5.70198 11.0052L8.00008 8.70706L10.2982 11.0052L11.0053 10.2981L8.70718 7.99995L11.0053 5.70186L10.2982 4.99475L8.00008 7.29285L5.70198 4.99475L4.99487 5.70186Z" fill="currentColor"/>`},"outline-chevron-down":{viewBox:`0 0 16 16`,body:`<path d="M5 6.5L8 9.5L11 6.5" stroke="currentColor"/>`},"outline-dots":{viewBox:`0 0 16 16`,body:`<path d="M2.5 7.5H3.5V8.5H2.5V7.5Z" stroke="currentColor"/><path d="M7.5 7.5H8.5V8.5H7.5V7.5Z" stroke="currentColor"/><path d="M12.5 7.5H13.5V8.5H12.5V7.5Z" stroke="currentColor"/>`},expand:{viewBox:`0 0 16 16`,body:`<path d="M8.25 6.17773V1.17773M11.25 4.17773L8.25 1.17773L5.25 4.17773" stroke="currentColor"/><path d="M8.25 9.17773V14.1777M11.25 11.1777L8.25 14.1777L5.25 11.1777" stroke="currentColor"/><path d="M4.25 7.67773H12.25" stroke="currentColor"/>`},filetree:{viewBox:`0 0 16 16`,body:`<path d="M2.5 1.5V12.2484H6.75M2.5 4.74838H6.75" stroke="currentColor"/><rect x="8.5" y="3.2168" width="6" height="3" fill="none" stroke="currentColor"/><rect x="8.5" y="10.75" width="6" height="3" fill="none" stroke="currentColor"/>`},split:{viewBox:`0 0 16 16`,body:`<path d="M1 14H15L15 2H1V14Z" stroke="currentColor"/><rect x="3" y="4" width="4" height="8" fill="currentColor" fill-opacity="0.5"/><rect x="9" y="4" width="4" height="8" fill="currentColor" fill-opacity="0.5"/>`},unified:{viewBox:`0 0 16 16`,body:`<path d="M3.00001 4.00045L12.9998 4L13 6.99955L3 7L3.00001 4.00045Z" fill="currentColor" fill-opacity="0.5"/><path d="M3.0001 9H13L12.9999 12H3L3.0001 9Z" fill="currentColor" fill-opacity="0.5"/><path d="M1 14H15L15 2H1V14Z" stroke="currentColor"/>`},review:{viewBox:`0 0 20 20`,body:`<path d="M7 14.5H13M7 7.99512H10.0049M10.0049 7.99512H13M10.0049 7.99512V5M10.0049 7.99512V11M18 18V2L2 2L2 18H18Z" stroke="currentColor"/>`},"window-analytics":{viewBox:`0 0 16 16`,body:`<path d="M14.5 9.8333V13.5H1.5V2.5H7.1667M9.5 2.5V7.5H14.5V2.5H9.5Z" stroke="currentColor" stroke-miterlimit="10" stroke-linecap="square"/>`},"graduation-cap":{viewBox:`0 0 16 16`,body:`<path d="M12.3327 7.50065V11.0007L7.99935 13.6673L3.66602 11.0007V7.50065M14.3327 9.83398V6.16732M7.99935 2.33398L1.66602 6.00065L7.99935 10.0007L14.3327 6.00065L7.99935 2.33398Z" stroke="currentColor" stroke-linecap="square"/>`},"code-slash":{viewBox:`0 0 16 16`,body:`<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0812 2.10803L6.55974 14.0809L5.92016 13.8928L9.44161 1.91992L10.0812 2.10803ZM4.13793 4.97275L1.44666 8.00045L4.13793 11.0281L3.63966 11.471L0.554688 8.00045L3.63966 4.52984L4.13793 4.97275ZM12.3617 4.52984L15.4467 8.00045L12.3617 11.471L11.8634 11.0281L14.5547 8.00045L11.8634 4.97275L12.3617 4.52984Z" fill="currentColor"/>`},trash:{viewBox:`0 0 20 20`,body:`<path d="M4.58342 17.9134L4.58369 17.4134L4.22787 17.5384L4.22766 18.0384H4.58342V17.9134ZM15.4167 17.9134V18.0384H15.7725L15.7723 17.5384L15.4167 17.9134ZM2.08342 3.95508V3.45508H1.58342V3.95508H2.08342V4.45508V3.95508ZM17.9167 4.45508V4.95508H18.4167V4.45508H17.9167V3.95508V4.45508ZM4.16677 4.58008L3.66701 4.5996L4.22816 17.5379L4.72792 17.4934L5.22767 17.4489L4.66652 4.54055L4.16677 4.58008ZM4.58342 18.0384V17.9134H15.4167V18.0384V18.5384H4.58342V18.0384ZM15.4167 17.9134L15.8332 17.5379L16.2498 4.5996L15.7501 4.58008L15.2503 4.56055L14.8337 17.4989L15.4167 17.9134ZM15.8334 4.58008V4.08008H4.16677V4.58008V5.08008H15.8334V4.58008ZM2.08342 4.45508V4.95508H4.16677V4.58008V4.08008H2.08342V4.45508ZM15.8334 4.58008V5.08008H17.9167V4.45508V3.95508H15.8334V4.58008ZM6.83951 4.35149L7.432 4.55047C7.79251 3.47701 8.80699 2.70508 10.0001 2.70508V2.20508V1.70508C8.25392 1.70508 6.77335 2.83539 6.24702 4.15251L6.83951 4.35149ZM10.0001 2.20508V2.70508C11.1932 2.70508 12.2077 3.47701 12.5682 4.55047L13.1607 4.35149L13.7532 4.15251C13.2269 2.83539 11.7463 1.70508 10.0001 1.70508V2.20508Z" fill="currentColor"/>`},"outline-sliders":{viewBox:`0 0 16 16`,body:`<path d="M11.7779 4.66675H14.4446M11.7779 4.66675C11.7779 5.77132 10.8825 6.66675 9.77789 6.66675C8.67332 6.66675 7.77789 5.77132 7.77789 4.66675M11.7779 4.66675C11.7779 3.56218 10.8825 2.66675 9.77789 2.66675C8.67332 2.66675 7.77789 3.56218 7.77789 4.66675M1.55566 4.66675H7.77789M4.22233 11.3334H1.55566M4.22233 11.3334C4.22233 12.438 5.11776 13.3334 6.22233 13.3334C7.3269 13.3334 8.22233 12.438 8.22233 11.3334M4.22233 11.3334C4.22233 10.2288 5.11776 9.33341 6.22233 9.33341C7.3269 9.33341 8.22233 10.2288 8.22233 11.3334M14.4446 11.3334H8.22233" stroke="currentColor"/>`},"outline-copy":{viewBox:`0 0 16 16`,body:`<path d="M4.14908 11.0081H1.76282V1.51758H9.1038V2.55588M14.2225 4.99681H6.75397V14.4873H14.2225V4.99681Z" stroke="currentColor"/>`},"arrow-up-right":{viewBox:`0 0 16 16`,body:`<path d="M11 9.56V5H6.44M11 5L5 11" stroke="currentColor"/>`},"outline-square-arrow":{viewBox:`0 0 16 16`,body:`<path d="M13.5555 6.66656V2.44434H9.33326M13.5555 2.44434L7.99993 7.99989M13.5555 9.33324V13.5555C13.5555 13.5555 12.7599 13.5555 11.7777 13.5555H2.44438C2.44438 13.5555 2.44438 12.7599 2.44438 11.7777V4.22213C2.44438 3.2399 2.44434 2.44435 2.44434 2.44435H6.66661" stroke="currentColor"/>`},"outline-arrow-to-corner-top-right":{viewBox:`0 0 16 16`,body:`<path d="M2 8.5V2H14V14H8M5 5.66667H10.3333V11M3.66797 12.333L9.94292 6.05806" stroke="currentColor" stroke-linecap="square"/>`},"outline-hexagonal-warning":{viewBox:`0 0 16 16`,body:`<path d="M10.6667 1.33325H5.33272L1.33334 5.33325L1.33342 10.6917L5.3327 14.691L10.6667 14.6909L14.6911 10.6917V5.33255L10.6667 1.33325Z" stroke="currentColor"/><path d="M8 10.6667H8.00667" stroke="currentColor" stroke-linecap="square"/><path d="M8 7.99992V5.33325" stroke="currentColor" stroke-linecap="square"/>`},"outline-share":{viewBox:`0 0 16 16`,body:`<path d="M13.5554 10.4445V13.5556C13.5554 13.5556 12.7599 13.5556 11.7777 13.5556H4.22211C3.23989 13.5556 2.44434 13.5556 2.44434 13.5556V10.4445M4.88878 5.55557L7.99989 2.44446L11.111 5.55557M7.99989 2.44446L7.99989 9.11112" stroke="currentColor"/>`},"outline-eye":{viewBox:`0 0 20 20`,body:`<path d="M2.5 10s3.33-5.42 7.5-5.42S17.5 10 17.5 10s-3.33 5.42-7.5 5.42S2.5 10 2.5 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="10" r="2.5" stroke="currentColor"/>`},"outline-eye-slash":{viewBox:`0 0 20 20`,body:`<path d="M2.5 10s3.33-5.42 7.5-5.42S17.5 10 17.5 10s-3.33 5.42-7.5 5.42S2.5 10 2.5 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="10" r="2.5" stroke="currentColor"/><path d="M3 3 17 17" stroke="currentColor" stroke-linecap="round"/>`},refresh:{viewBox:`0 0 20 20`,body:`<path d="M16.25 7.5A6.5 6.5 0 1 0 16.5 11M16.25 3.5v4h-4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>`},reset:{viewBox:`0 0 20 20`,body:`<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>`},"outline-reset":{viewBox:`0 0 20 20`,body:`<path d="M5.83333 4.16406L2.5 7.4974L5.83333 10.8307M3.33333 7.4974H17.9167V15.4141H10" stroke="currentColor" stroke-linecap="square"/>`},"fill-triangle-down":{viewBox:`0 0 16 16`,body:`<path d="M5.37624 6.75194C5.18184 6.41861 5.42224 6 5.80814 6H10.1921C10.578 6 10.8184 6.41861 10.624 6.75194L8.43203 10.5096C8.23909 10.8404 7.76119 10.8404 7.56825 10.5096L5.37624 6.75194Z" fill="currentColor"/>`},archive:{viewBox:`0 0 16 16`,body:`<path d="M13.1112 13.5555V14.0555H13.6112V13.5555H13.1112ZM2.889 13.5555H2.389L2.389 14.0555H2.889V13.5555ZM3.38901 5.55546L3.38901 5.05546L2.38901 5.05546L2.38901 5.55546L2.88901 5.55546L3.38901 5.55546ZM14.4446 2.44434H14.9446V1.94434L14.4446 1.94434L14.4446 2.44434ZM14.4446 5.55545L14.4446 6.05545L14.9446 6.05545V5.55545H14.4446ZM1.55566 5.55546L1.05566 5.55545L1.05566 6.05546L1.55566 6.05546L1.55566 5.55546ZM1.5557 2.44436L1.5557 1.94436L1.05571 1.94436L1.0557 2.44435L1.5557 2.44436ZM13.1112 5.55546H12.6112V13.5555H13.1112H13.6112V5.55546H13.1112ZM2.889 13.5555H3.389L3.38901 5.55546L2.88901 5.55546L2.38901 5.55546L2.389 13.5555H2.889ZM14.4446 2.44434H13.9446V5.55545H14.4446H14.9446V2.44434H14.4446ZM1.55566 5.55546L2.05566 5.55547L2.0557 2.44436L1.5557 2.44436L1.0557 2.44435L1.05566 5.55545L1.55566 5.55546ZM6.22234 8.22213V8.72213H9.7779V8.22213V7.72213H6.22234V8.22213ZM13.1112 13.5555V13.0555H2.889V13.5555V14.0555H13.1112V13.5555ZM1.5557 2.44436L1.5557 2.94436L14.4446 2.94434L14.4446 2.44434L14.4446 1.94434L1.5557 1.94436L1.5557 2.44436ZM14.4446 5.55545L14.4446 5.05545L1.55566 5.05546L1.55566 5.55546L1.55566 6.05546L14.4446 6.05545L14.4446 5.55545Z" fill="currentColor"/>`}},Oo=`opencode-v2-icon-sprite`,ko=e=>`opencode-v2-icon-${e}`,Ao=!1;function jo(e){return Do[e]||{body:wo[e],viewBox:To(e)}}function Mo(){return Array.from(new Set([...Object.keys(wo),...Object.keys(Do)])).map(e=>`<symbol id="${ko(e)}" viewBox="${jo(e).viewBox}">${jo(e).body}</symbol>`).join(``)}function No(){if(Ao||typeof document>`u`)return;let e=document.getElementById(Oo);if(e){e.innerHTML=Mo(),Ao=!0;return}let t=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);t.id=Oo,t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`width`,`0`),t.setAttribute(`height`,`0`),t.style.position=`absolute`,t.style.overflow=`hidden`,t.innerHTML=Mo(),document.body.insertBefore(t,document.body.firstChild),Ao=!0}function X(e){let[t,n]=V(e,[`name`,`size`]),r=()=>Do[t.name]||wo[t.name]?t.name:`plus`,i=()=>jo(r()),a=t.size===`small`?14:t.size===`large`?20:16;return oe(No),(()=>{var e=Eo(),t=e.firstChild;return gt(e,B(n,{"data-slot":`icon-svg`,get"data-directional"(){return r()===`arrow-left`||r()===`arrow-right`||r()===`chevron-left`||r()===`chevron-right`?``:void 0},width:a,height:a,get viewBox(){return i().viewBox},fill:`none`,xmlns:`http://www.w3.org/2000/svg`,get"aria-hidden"(){return n[`aria-hidden`]??`true`}}),!0,!0),j(()=>G(t,`href`,`#${ko(r())}`)),e})()}function Po(e){let[t,n]=V(e,[`variant`,`size`,`icon`,`class`,`classList`]);return z(Ba,B(n,{"data-component":`button-v2`,get"data-size"(){return t.size||`normal`},get"data-variant"(){return t.variant||`neutral`},get"data-icon"(){return t.icon},get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return[z(H,{get when(){return t.icon},children:e=>z(X,{get name(){return e()}})}),U(()=>e.children)]}}))}var Fo=W(`<span>`);function Io(e){let[t,n]=V(e,[`class`,`classList`,`children`,`appearance`,`variant`]);return(()=>{var e=Fo();return gt(e,B(n,{"data-component":`tag`,get"data-appearance"(){return t.appearance??`compact`},get"data-variant"(){return t.variant??`neutral`},get classList(){return{...t.classList,[t.class??``]:!!t.class}}}),!1,!0),K(e,()=>t.children),e})()}function Lo(e){let[t,n]=V(e,[`variant`,`size`,`icon`,`class`,`classList`,`state`]);return z(Ba,B(n,{"data-component":`icon-button-v2`,get"data-size"(){return t.size||`normal`},get"data-variant"(){return t.variant||`neutral`},get"data-state"(){return t.state},get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return t.icon}}))}var Ro=new Set([`Avst`,`Arab`,`Armi`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),zo=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function Bo(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script??``;return Ro.has(t)}let t=e.split(`-`)[0];return zo.has(t)}function Vo(e){return Bo(e)?`rtl`:`ltr`}function Ho(){let e=typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:Vo(e)}}var Uo=Ho(),Wo=new Set;function Go(){Uo=Ho();for(let e of Wo)e(Uo)}function Ko(){let[e,t]=A(Uo),n=N(()=>e());return oe(()=>{Wo.size===0&&window.addEventListener(`languagechange`,Go),Wo.add(t),F(()=>{Wo.delete(t),Wo.size===0&&window.removeEventListener(`languagechange`,Go)})}),{locale:()=>n().locale,direction:()=>n().direction}}var qo=L();function Jo(){let e=Ko();return R(qo)||e}var Yo=new Map;function Xo(e){let{locale:t}=Jo(),n=N(()=>t()+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``));return N(()=>{let r=n(),i;return Yo.has(r)&&(i=Yo.get(r)),i||(i=new Intl.Collator(t(),e),Yo.set(r,i)),i})}var Zo=[`top`,`right`,`bottom`,`left`],Qo=Math.min,$o=Math.max,es=Math.round,ts=Math.floor,ns=e=>({x:e,y:e}),rs={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function is(e,t,n){return $o(e,Qo(t,n))}function as(e,t){return typeof e==`function`?e(t):e}function os(e){return e.split(`-`)[0]}function ss(e){return e.split(`-`)[1]}function cs(e){return e===`x`?`y`:`x`}function ls(e){return e===`y`?`height`:`width`}function us(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ds(e){return cs(us(e))}function fs(e,t,n){n===void 0&&(n=!1);let r=ss(e),i=ds(e),a=ls(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=xs(o)),[o,xs(o)]}function ps(e){let t=xs(e);return[ms(e),t,ms(t)]}function ms(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var hs=[`left`,`right`],gs=[`right`,`left`],_s=[`top`,`bottom`],vs=[`bottom`,`top`];function ys(e,t,n){switch(e){case`top`:case`bottom`:return n?t?gs:hs:t?hs:gs;case`left`:case`right`:return t?_s:vs;default:return[]}}function bs(e,t,n,r){let i=ss(e),a=ys(os(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ms)))),a}function xs(e){let t=os(e);return rs[t]+e.slice(t.length)}function Ss(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Cs(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ss(e)}function ws(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ts(e,t,n){let{reference:r,floating:i}=e,a=us(t),o=ds(t),s=ls(o),c=os(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ss(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Es(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=as(t,e),p=Cs(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ws(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ws(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ds=50,Os=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Es},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ts(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ds&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ts(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ks=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=as(e,t)||{};if(l==null)return{};let d=Cs(u),f={x:n,y:r},p=ds(i),m=ls(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Qo(d[_],T),D=Qo(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=is(E,k,O),A=!c.arrow&&ss(i)!=null&&k!==ee&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,te=A?k<E?k-E:k-O:0;return{[p]:f[p]+te,data:{[p]:ee,centerOffset:k-ee-te,...A&&{alignmentOffset:te}},reset:A}}}),As=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=as(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=os(r),_=us(o),v=os(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[xs(o)]:ps(o)),x=p!==`none`;!d&&x&&b.push(...bs(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=fs(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===us(t)||T.every(e=>us(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=us(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function js(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ms(e){return Zo.some(t=>e[t]>=0)}var Ns=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=as(e,t);switch(i){case`referenceHidden`:{let e=js(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ms(e)}}}case`escaped`:{let e=js(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ms(e)}}}default:return{}}}}},Ps=new Set([`left`,`top`]);async function Fs(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=os(n),s=ss(n),c=us(n)===`y`,l=Ps.has(o)?-1:1,u=a&&c?-1:1,d=as(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Is=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Fs(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ls=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=as(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=us(i),p=cs(f),m=u[p],h=u[f],g=(e,t)=>is(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Rs=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=as(e,t),c=await i.detectOverflow(t,s),l=os(n),u=ss(n),d=us(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Qo(p-c[m],g),y=Qo(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*$o(c.left,c.right):S=p-2*$o(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function zs(){return typeof window<`u`}function Bs(e){return Us(e)?(e.nodeName||``).toLowerCase():`#document`}function Vs(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hs(e){return((Us(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Us(e){return zs()?e instanceof Node||e instanceof Vs(e).Node:!1}function Ws(e){return zs()?e instanceof Element||e instanceof Vs(e).Element:!1}function Gs(e){return zs()?e instanceof HTMLElement||e instanceof Vs(e).HTMLElement:!1}function Ks(e){return!zs()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Vs(e).ShadowRoot}function qs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ic(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Js(e){return/^(table|td|th)$/.test(Bs(e))}function Ys(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Xs=/transform|translate|scale|rotate|perspective|filter/,Zs=/paint|layout|strict|content/,Qs=e=>!!e&&e!==`none`,$s;function ec(e){let t=Ws(e)?ic(e):e;return Qs(t.transform)||Qs(t.translate)||Qs(t.scale)||Qs(t.rotate)||Qs(t.perspective)||!nc()&&(Qs(t.backdropFilter)||Qs(t.filter))||Xs.test(t.willChange||``)||Zs.test(t.contain||``)}function tc(e){let t=oc(e);for(;Gs(t)&&!rc(t);){if(ec(t))return t;if(Ys(t))return null;t=oc(t)}return null}function nc(){return $s??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),$s}function rc(e){return/^(html|body|#document)$/.test(Bs(e))}function ic(e){return Vs(e).getComputedStyle(e)}function ac(e){return Ws(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oc(e){if(Bs(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ks(e)&&e.host||Hs(e);return Ks(t)?t.host:t}function sc(e){let t=oc(e);return rc(t)?(e.ownerDocument||e).body:Gs(t)&&qs(t)?t:sc(t)}function cc(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=sc(e),i=r===e.ownerDocument?.body,a=Vs(r);if(i){let e=lc(a);return t.concat(a,a.visualViewport||[],qs(r)?r:[],e&&n?cc(e):[])}return t.concat(r,cc(r,[],n))}function lc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uc(e){let t=ic(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Gs(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=es(n)!==a||es(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function dc(e){return Ws(e)?e:e.contextElement}function fc(e){let t=dc(e);if(!Gs(t))return ns(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=uc(t),o=(a?es(n.width):n.width)/r,s=(a?es(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var pc=ns(0);function mc(e){let t=Vs(e);return!nc()||!t.visualViewport?pc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hc(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Vs(e)}function gc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=dc(e),o=ns(1);t&&(r?Ws(r)&&(o=fc(r)):o=fc(e));let s=hc(a,n,r)?mc(a):ns(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Vs(a),t=Ws(r)?Vs(r):r,n=e,i=lc(n);for(;i&&t!==n;){let e=fc(i),t=i.getBoundingClientRect(),r=ic(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Vs(i),i=lc(n)}}return ws({width:u,height:d,x:c,y:l})}function _c(e,t){let n=ac(e).scrollLeft;return t?t.left+n:gc(Hs(e)).left+n}function vc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-_c(e,n),y:n.top+t.scrollTop}}function yc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Hs(r),s=t?Ys(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ns(1),u=ns(0),d=Gs(r);if((d||!a)&&((Bs(r)!==`body`||qs(o))&&(c=ac(r)),d)){let e=gc(r);l=fc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?vc(o,c):ns(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function bc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function xc(e){let t=ac(e),n=e.ownerDocument.body,r=$o(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=$o(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+_c(e),o=-t.scrollTop;return ic(n).direction===`rtl`&&(a+=$o(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Sc=25;function Cc(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Vs(e),a=Hs(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!nc()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(_c(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Sc&&(s-=o)}return{width:s,height:c,x:l,y:u}}function wc(e,t){let n=gc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=fc(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Tc(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Cc(e,n,t);else if(t===`document`)r=xc(Hs(e));else if(Ws(t))r=wc(t,n);else{let n=mc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ws(r)}function Ec(e,t){let n=t.get(e);if(n)return n;let r=cc(e,[],!1).filter(e=>Ws(e)&&Bs(e)!==`body`),i=null,a=ic(e).position===`fixed`,o=a?oc(e):e;for(;Ws(o)&&!rc(o);){let e=ic(o),t=ec(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=oc(o)}return t.set(e,r),r}function Dc(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ys(t)?[]:Ec(t,this._c):[].concat(n),r],o=Tc(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Tc(t,a[e],i);s=$o(n.top,s),c=Qo(n.right,c),l=Qo(n.bottom,l),u=$o(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Oc(e){let{width:t,height:n}=uc(e);return{width:t,height:n}}function kc(e,t,n){let r=Gs(t),i=Hs(t),a=n===`fixed`,o=gc(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ns(0);if((r||!a)&&((Bs(t)!==`body`||qs(i))&&(s=ac(t)),r)){let e=gc(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=_c(i));let l=i&&!r&&!a?vc(i,s):ns(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ac(e){return ic(e).position===`static`}function jc(e,t){if(!Gs(e)||ic(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Hs(e)===n&&(n=n.ownerDocument.body),n}function Mc(e,t){let n=Vs(e);if(Ys(e))return n;if(!Gs(e)){let t=oc(e);for(;t&&!rc(t);){if(Ws(t)&&!Ac(t))return t;t=oc(t)}return n}let r=jc(e,t);for(;r&&Js(r)&&Ac(r);)r=jc(r,t);return r&&rc(r)&&Ac(r)&&!ec(r)?n:r||tc(e)||n}var Nc=async function(e){let t=this.getOffsetParent||Mc,n=this.getDimensions,r=await n(e.floating);return{reference:kc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pc(e){return ic(e).direction===`rtl`}var Fc={convertOffsetParentRelativeRectToViewportRelativeRect:yc,getDocumentElement:Hs,getClippingRect:Dc,getOffsetParent:Mc,getElementRects:Nc,getClientRects:bc,getDimensions:Oc,getScale:fc,isElement:Ws,isRTL:Pc};function Ic(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lc(e,t,n){let r=null,i,a=Hs(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=ts(d),h=ts(a.clientWidth-(u+f)),g=ts(a.clientHeight-(d+p)),_=ts(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:$o(0,Qo(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ic(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Vs(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Rc(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=dc(e),u=i||a?[...l?cc(l):[],...t?cc(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Lc(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?gc(e):null;c&&g();function g(){let t=gc(e);h&&!Ic(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var zc=Is,Bc=Ls,Vc=As,Hc=Rs,Uc=Ns,Wc=ks,Gc=(e,t,n)=>{let r=new Map,i=n??{},a={...Fc,...i.platform,_c:r};return Os(e,t,{...i,platform:a})},Kc=W(`<svg display=block viewBox="0 0 30 30"style=transform:scale(1.02)><g><path fill=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z></path><path stroke=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z>`),qc=L();function Jc(){let e=R(qc);if(e===void 0)throw Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var Yc=30,Xc=Yc/2,Zc={top:180,right:-90,bottom:0,left:90};function Qc(e){let t=Jc(),[n,r]=V(Hi({size:Yc},e),[`ref`,`style`,`size`]),i=()=>t.currentPlacement().split(`-`)[0],a=$c(t.contentRef),o=()=>a()?.getPropertyValue(`background-color`)||`none`,s=()=>a()?.getPropertyValue(`border-${i()}-color`)||`none`,c=()=>a()?.getPropertyValue(`border-${i()}-width`)||`0px`,l=()=>Number.parseInt(c())*2*(Yc/n.size),u=()=>`rotate(${Zc[i()]} ${Xc} ${Xc}) translate(0 2)`;return z(Ea,B({as:`div`,ref(e){var r=Xr(t.setArrowRef,n.ref);typeof r==`function`&&r(e)},"aria-hidden":`true`,get style(){return Yr({position:`absolute`,"font-size":`${n.size}px`,width:`1em`,height:`1em`,"pointer-events":`none`,fill:o(),stroke:s(),"stroke-width":l()},n.style)}},r,{get children(){var e=Kc(),t=e.firstChild;return t.firstChild.nextSibling,j(()=>G(t,`transform`,u())),e}}))}function $c(e){let[t,n]=A();return M(()=>{let t=e();t&&n(ai(t).getComputedStyle(t))}),t}function el(e){let t=Jc(),[n,r]=V(e,[`ref`,`style`]);return z(Ea,B({as:`div`,ref(e){var r=Xr(t.setPositionerRef,n.ref);typeof r==`function`&&r(e)},"data-popper-positioner":``,get style(){return Yr({position:`absolute`,top:0,left:0,"min-width":`max-content`},n.style)}},r))}function tl(e){let{x:t=0,y:n=0,width:r=0,height:i=0}=e??{};if(typeof DOMRect==`function`)return new DOMRect(t,n,r,i);let a={x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:n+i,left:t};return{...a,toJSON:()=>a}}function nl(e,t){return{contextElement:e,getBoundingClientRect:()=>{let n=t(e);return n?tl(n):e?e.getBoundingClientRect():tl()}}}function rl(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var il={top:`bottom`,right:`left`,bottom:`top`,left:`right`};function al(e,t){let[n,r]=e.split(`-`),i=il[n];return r?n===`left`||n===`right`?`${i} ${r===`start`?`top`:`bottom`}`:r===`start`?`${i} ${t===`rtl`?`right`:`left`}`:`${i} ${t===`rtl`?`left`:`right`}`:`${i} center`}function ol(e){let t=Hi({getAnchorRect:e=>e?.getBoundingClientRect(),placement:`bottom`,gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=A(),[i,a]=A(),[o,s]=A(t.placement),c=()=>nl(t.anchorRef?.(),t.getAnchorRect),{direction:l}=Jo();async function u(){let e=c(),r=n(),a=i();if(!e||!r)return;let o=(a?.clientHeight||0)/2,u=typeof t.gutter==`number`?t.gutter+o:t.gutter??o;r.style.setProperty(`--kb-popper-content-overflow-padding`,`${t.overflowPadding}px`),e.getBoundingClientRect();let d=[zc(({placement:e})=>{let n=!!e.split(`-`)[1];return{mainAxis:u,crossAxis:n?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){let e=typeof t.flip==`string`?t.flip.split(` `):void 0;if(e!==void 0&&!e.every(rl))throw Error("`flip` expects a spaced-delimited list of placements");d.push(Vc({padding:t.overflowPadding,fallbackPlacements:e}))}(t.slide||t.overlap)&&d.push(Bc({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),d.push(Hc({padding:t.overflowPadding,apply({availableWidth:e,availableHeight:n,rects:i}){let a=Math.round(i.reference.width);e=Math.floor(e),n=Math.floor(n),r.style.setProperty(`--kb-popper-anchor-width`,`${a}px`),r.style.setProperty(`--kb-popper-content-available-width`,`${e}px`),r.style.setProperty(`--kb-popper-content-available-height`,`${n}px`),t.sameWidth&&(r.style.width=`${a}px`),t.fitViewport&&(r.style.maxWidth=`${e}px`,r.style.maxHeight=`${n}px`)}})),t.hideWhenDetached&&d.push(Uc({padding:t.detachedPadding})),a&&d.push(Wc({element:a,padding:t.arrowPadding}));let f=await Gc(e,r,{placement:t.placement,strategy:`absolute`,middleware:d,platform:{...Fc,isRTL:()=>l()===`rtl`}});if(s(f.placement),t.onCurrentPlacementChange?.(f.placement),!r)return;r.style.setProperty(`--kb-popper-content-transform-origin`,al(f.placement,l()));let p=Math.round(f.x),m=Math.round(f.y),h;if(t.hideWhenDetached&&(h=f.middlewareData.hide?.referenceHidden?`hidden`:`visible`),Object.assign(r.style,{top:`0`,left:`0`,transform:`translate3d(${p}px, ${m}px, 0)`,visibility:h}),a&&f.middlewareData.arrow){let{x:e,y:t}=f.middlewareData.arrow,n=f.placement.split(`-`)[0];Object.assign(a.style,{left:e==null?``:`${e}px`,top:t==null?``:`${t}px`,[n]:`100%`})}}M(()=>{let e=c(),t=n();e&&t&&F(Rc(e,t,u,{elementResize:typeof ResizeObserver==`function`}))}),M(()=>{let e=n(),r=t.contentRef?.();e&&r&&queueMicrotask(()=>{e.style.zIndex=getComputedStyle(r).zIndex})});let d={currentPlacement:o,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:a};return z(qc.Provider,{value:d,get children(){return t.children}})}var sl=Object.assign(ol,{Arrow:Qc,Context:qc,usePopperContext:Jc,Positioner:el});La({},{Arrow:()=>Qc,Content:()=>ul,Portal:()=>dl,Root:()=>yl,Tooltip:()=>xl,Trigger:()=>bl,useTooltipContext:()=>ll});var cl=L();function ll(){let e=R(cl);if(e===void 0)throw Error("[kobalte]: `useTooltipContext` must be used within a `Tooltip` component");return e}function ul(e){let t=ll(),[n,r]=V(Hi({id:t.generateId(`content`)},e),[`ref`,`style`]);return M(()=>F(t.registerContentId(r.id))),z(H,{get when(){return t.contentPresent()},get children(){return z(sl.Positioner,{get children(){return z(ka,B({ref(e){var r=Xr(e=>{t.setContentRef(e)},n.ref);typeof r==`function`&&r(e)},role:`tooltip`,disableOutsidePointerEvents:!1,get style(){return Yr({"--kb-tooltip-content-transform-origin":`var(--kb-popper-content-transform-origin)`,position:`relative`},n.style)},onFocusOutside:e=>e.preventDefault(),onDismiss:()=>t.hideTooltip(!0)},()=>t.dataset(),r))}})}})}function dl(e){let t=ll();return z(H,{get when(){return t.contentPresent()},get children(){return z(Mt,e)}})}function fl(e,t,n){let r=e.split(`-`)[0],i=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=[],s=i.left+i.width/2,c=i.top+i.height/2;switch(r){case`top`:o.push([i.left,c]),o.push([a.left,a.bottom]),o.push([a.left,a.top]),o.push([a.right,a.top]),o.push([a.right,a.bottom]),o.push([i.right,c]);break;case`right`:o.push([s,i.top]),o.push([a.left,a.top]),o.push([a.right,a.top]),o.push([a.right,a.bottom]),o.push([a.left,a.bottom]),o.push([s,i.bottom]);break;case`bottom`:o.push([i.left,c]),o.push([a.left,a.top]),o.push([a.left,a.bottom]),o.push([a.right,a.bottom]),o.push([a.right,a.top]),o.push([i.right,c]);break;case`left`:o.push([s,i.top]),o.push([a.right,a.top]),o.push([a.left,a.top]),o.push([a.left,a.bottom]),o.push([a.right,a.bottom]),o.push([s,i.bottom])}return o}var pl={},ml=0,hl=!1,gl,_l,vl;function yl(e){let t=`tooltip-${Ue()}`,n=`${++ml}`,r=Hi({id:t,openDelay:700,closeDelay:300,skipDelayDuration:300},e),[i,a]=V(r,[`id`,`open`,`defaultOpen`,`onOpenChange`,`disabled`,`triggerOnFocusOnly`,`openDelay`,`closeDelay`,`skipDelayDuration`,`ignoreSafeArea`,`forceMount`,`onCurrentPlacementChange`]),o,[s,c]=A(),[l,u]=A(),[d,f]=A(),[p,m]=A(a.placement),h=Na({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:e=>i.onOpenChange?.(e)}),{present:g}=io({show:()=>i.forceMount||h.isOpen(),element:()=>d()??null}),_=()=>{pl[n]=y},v=()=>{for(let e in pl)e!==n&&(pl[e](!0),delete pl[e])},y=(e=!1)=>{e||i.closeDelay&&i.closeDelay<=0?(window.clearTimeout(o),o=void 0,h.close()):o||=window.setTimeout(()=>{o=void 0,h.close()},i.closeDelay),window.clearTimeout(gl),gl=void 0,i.skipDelayDuration&&i.skipDelayDuration>=0&&(vl=window.setTimeout(()=>{window.clearTimeout(vl),vl=void 0},i.skipDelayDuration)),hl&&(window.clearTimeout(_l),_l=window.setTimeout(()=>{delete pl[n],_l=void 0,hl=!1},i.closeDelay))},b=()=>{clearTimeout(o),o=void 0,v(),_(),hl=!0,h.open(),window.clearTimeout(gl),gl=void 0,window.clearTimeout(_l),_l=void 0,window.clearTimeout(vl),vl=void 0},x=()=>{v(),_(),!h.isOpen()&&!gl&&!hl?gl=window.setTimeout(()=>{gl=void 0,hl=!0,b()},i.openDelay):h.isOpen()||b()},S=(e=!1)=>{!e&&i.openDelay&&i.openDelay>0&&!o&&!vl?x():b()},C=()=>{window.clearTimeout(gl),gl=void 0,hl=!1},w=()=>{window.clearTimeout(o),o=void 0},T=e=>ri(l(),e)||ri(d(),e),E=e=>{let t=l(),n=d();if(t&&n)return fl(e,t,n)},D=e=>{let t=e.target;if(T(t)){w();return}if(!i.ignoreSafeArea){let t=E(p());if(t&&Vi(Bi(e),t)){w();return}}o||y()};M(()=>{if(!h.isOpen())return;let e=oi();e.addEventListener(`pointermove`,D,!0),F(()=>{e.removeEventListener(`pointermove`,D,!0)})}),M(()=>{let e=l();if(!e||!h.isOpen())return;let t=t=>{let n=t.target;ri(n,e)&&y(!0)},n=ai();n.addEventListener(`scroll`,t,{capture:!0}),F(()=>{n.removeEventListener(`scroll`,t,{capture:!0})})}),F(()=>{clearTimeout(o),pl[n]&&delete pl[n]});let O={dataset:N(()=>({"data-expanded":h.isOpen()?``:void 0,"data-closed":h.isOpen()?void 0:``})),isOpen:h.isOpen,isDisabled:()=>i.disabled??!1,triggerOnFocusOnly:()=>i.triggerOnFocusOnly??!1,contentId:s,contentPresent:g,openTooltip:S,hideTooltip:y,cancelOpening:C,generateId:ni(()=>r.id),registerContentId:Ha(c),isTargetOnTooltip:T,setTriggerRef:u,setContentRef:f};return z(cl.Provider,{value:O,get children(){return z(sl,B({anchorRef:l,contentRef:d,onCurrentPlacementChange:e=>{m(e),i.onCurrentPlacementChange?.(e)}},a))}})}function bl(e){let t,n=ll(),[r,i]=V(e,[`ref`,`onPointerEnter`,`onPointerLeave`,`onPointerDown`,`onClick`,`onFocus`,`onBlur`]),a=!1,o=!1,s=!1,c=()=>{a=!1},l=()=>{!n.isOpen()&&(o||s)&&n.openTooltip(s)},u=e=>{n.isOpen()&&!o&&!s&&n.hideTooltip(e)};return F(()=>{oi(t).removeEventListener(`pointerup`,c)}),z(Ea,B({as:`button`,ref(e){var i=Xr(e=>{n.setTriggerRef(e),t=e},r.ref);typeof i==`function`&&i(e)},get"aria-describedby"(){return U(()=>!!n.isOpen())()?n.contentId():void 0},onPointerEnter:e=>{vi(e,r.onPointerEnter),!(e.pointerType===`touch`||n.triggerOnFocusOnly()||n.isDisabled()||e.defaultPrevented)&&(o=!0,l())},onPointerLeave:e=>{vi(e,r.onPointerLeave),e.pointerType!==`touch`&&(o=!1,s=!1,n.isOpen()?u():n.cancelOpening())},onPointerDown:e=>{vi(e,r.onPointerDown),a=!0,oi(t).addEventListener(`pointerup`,c,{once:!0})},onClick:e=>{vi(e,r.onClick),o=!1,s=!1,u(!0)},onFocus:e=>{vi(e,r.onFocus),!(n.isDisabled()||e.defaultPrevented||a)&&(s=!0,l())},onBlur:e=>{vi(e,r.onBlur);let t=e.relatedTarget;n.isTargetOnTooltip(t)||(o=!1,s=!1,u(!0))},type:`button`},()=>n.dataset(),i))}var xl=Object.assign(yl,{Arrow:Qc,Content:ul,Portal:dl,Trigger:bl});function Sl(e){let t,[n,r]=$t({open:!1,block:!1,expand:!1}),[i,a]=V(e,[`children`,`appearance`,`class`,`contentClass`,`contentStyle`,`inactive`,`forceOpen`,`triggerTabIndex`,`ignoreSafeArea`,`value`]),o=()=>r(`open`,!1),s=()=>i.forceOpen!==void 0,c=()=>{let e=document.activeElement;return!t||!e?!1:t.contains(e)},l=(e=n.expand)=>{!e&&n.block&&(t?.matches(`:hover`)||c()||r(`block`,!1))},u=()=>{let e=!!t?.querySelector(`[aria-expanded="true"], [data-expanded]`);if(r(`expand`,e),e){r(`block`,!0),o();return}l(e)},d=()=>{r(`block`,!0),o()},f=()=>{c()||o(),l()};M(()=>{if(!t)return;P(u);let e=new MutationObserver(u);e.observe(t,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`aria-expanded`,`data-expanded`]}),F(()=>e.disconnect())});let p=!1;return z(qe,{get children(){return[z(Je,{get when(){return i.inactive},get children(){return i.children}}),z(Je,{when:!0,get children(){return z(yl,B({gutter:4,openDelay:400,skipDelayDuration:300},a,{closeDelay:0,get ignoreSafeArea(){return i.ignoreSafeArea??!0},get open(){return U(()=>!!s())()?i.forceOpen:n.open},onOpenChange:e=>{if(!s()&&!(n.block&&e)){if(p){p=!1;return}r(`open`,e)}},get children(){return[z(bl,{ref(e){var n=t;typeof n==`function`?n(e):t=e},as:`div`,get tabIndex(){return i.triggerTabIndex},"data-component":`tooltip-v2-trigger`,get class(){return i.class},onPointerDownCapture:d,onKeyDownCapture:e=>{(e.key===`Enter`||e.key===` `)&&d()},onPointerLeave:f,onFocusOut:()=>requestAnimationFrame(()=>l()),get children(){return i.children}}),z(dl,{get children(){return z(ul,{ref:e=>{let n=t?.closest(`[data-theme]`)?.getAttribute(`data-theme`);n&&e.setAttribute(`data-theme`,n)},"data-component":`tooltip-v2`,get"data-appearance"(){return i.appearance??`compact`},get"data-placement"(){return e.placement},get"data-force-open"(){return i.forceOpen},get class(){return i.contentClass},get style(){return i.contentStyle},onPointerDownOutside:e=>{(t===e.target||e.target instanceof Node&&t?.contains(e.target))&&(p=!0),e.preventDefault()},get children(){return i.value}})}})]}}))}})]}})}var Cl={"ui.sessionReview.title":`Session changes`,"ui.sessionReview.title.git":`Git changes`,"ui.sessionReview.title.branch":`Branch changes`,"ui.sessionReview.title.lastTurn":`Last turn changes`,"ui.sessionReview.diffStyle.unified":`Unified`,"ui.sessionReview.diffStyle.split":`Split`,"ui.sessionReview.expandAll":`Expand all`,"ui.sessionReview.collapseAll":`Collapse all`,"ui.sessionReview.change.added":`Added`,"ui.sessionReview.change.removed":`Removed`,"ui.sessionReview.change.modified":`Modified`,"ui.sessionReview.image.loading":`Loading…`,"ui.sessionReview.image.placeholder":`Image`,"ui.sessionReview.largeDiff.title":`Diff too large to render`,"ui.sessionReview.largeDiff.meta":`Limit: {{limit}} changed lines. Current: {{current}} changed lines.`,"ui.sessionReview.largeDiff.renderAnyway":`Render anyway`,"ui.sessionReviewV2.expandMode":`Expand or collapse diff`,"ui.sessionReviewV2.filterFiles":`Filter files`,"ui.sessionReviewV2.toggleSidebar":`Toggle file tree`,"ui.sessionReviewV2.showAllLines":`Show all lines`,"ui.sessionReviewV2.hideNonDiffLines":`Hide non-diff lines`,"ui.sessionReviewV2.unifiedDiff":`Unified diff`,"ui.sessionReviewV2.splitDiff":`Split diff`,"ui.sessionReviewV2.previousFile":`Previous file`,"ui.sessionReviewV2.nextFile":`Next file`,"ui.sessionReviewV2.diffView":`Diff view`,"ui.sessionReviewV2.empty.noGit.title":`No tracked changes`,"ui.sessionReviewV2.empty.noGit.description":`Track, review, and undo changes in this project`,"ui.sessionReviewV2.empty.noGit.action":`Create Git repository`,"ui.sessionReviewV2.empty.noGit.actionLoading":`Creating Git repository…`,"ui.sessionReviewV2.empty.changes.title":`No file changes yet`,"ui.sessionReviewV2.empty.changes.description":`Project changes will appear here`,"ui.sessionReview.openFile":`Open file`,"ui.sessionReview.selection.line":`line {{line}}`,"ui.sessionReview.selection.lines":`lines {{start}}-{{end}}`,"ui.fileMedia.kind.image":`image`,"ui.fileMedia.kind.audio":`audio`,"ui.fileMedia.state.removed":`Removed {{kind}} file.`,"ui.fileMedia.state.loading":`Loading {{kind}}…`,"ui.fileMedia.state.error":`Unable to load {{kind}}.`,"ui.fileMedia.state.unavailable":`{{kind}} preview unavailable.`,"ui.fileMedia.binary.title":`Binary file`,"ui.fileMedia.binary.description.path":`{{path}} is binary.`,"ui.fileMedia.binary.description.default":`Binary content`,"ui.lineComment.label.prefix":`Comment on `,"ui.lineComment.label.suffix":``,"ui.lineComment.editorLabel.prefix":`Commenting on `,"ui.lineComment.editorLabel.suffix":``,"ui.lineComment.placeholder":`Add comment`,"ui.lineComment.contextPlaceholder":`Add context for this change`,"ui.lineComment.submit":`Comment`,"ui.lineComment.cancel":`Cancel`,"ui.sessionTurn.steps.show":`Show steps`,"ui.sessionTurn.steps.hide":`Hide steps`,"ui.sessionTurn.summary.response":`Response`,"ui.sessionTurn.diff.showMore":`Show more changes ({{count}})`,"ui.sessionTurn.diffs.changed.one":`{{count}} Changed file`,"ui.sessionTurn.diffs.changed.other":`{{count}} Changed files`,"ui.sessionTurn.diffs.showAll":`Show all`,"ui.sessionTurn.diffs.showLess":`Show less`,"ui.sessionTurn.diffs.more":`+{{count}} more files`,"ui.sessionTurn.retry.retrying":`retrying`,"ui.sessionTurn.retry.inSeconds":`in {{seconds}}s`,"ui.sessionTurn.retry.attempt":`attempt #{{attempt}}`,"ui.sessionTurn.retry.attemptLine":`{{line}} - attempt #{{attempt}}`,"ui.sessionTurn.retry.attemptLabel":`Attempt {{attempt}}`,"ui.sessionTurn.retry.attemptRetrying":`Attempt {{attempt}} - {{line}}`,"ui.sessionTurn.retry.geminiHot":`gemini is way too hot right now`,"ui.sessionTurn.error.freeUsageExceeded":`Free usage exceeded`,"ui.sessionTurn.error.addCredits":`Add credits`,"dialog.usageExceeded.freeTier.title":`Free limit reached`,"dialog.usageExceeded.freeTier.description":`Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.`,"dialog.usageExceeded.freeTier.actionLabel":`Subscribe`,"dialog.usageExceeded.accountRateLimit.title":`Go limit reached`,"dialog.usageExceeded.accountRateLimit.description":`Usage limit reached. To continue using this model now, enable usage from your available balance`,"dialog.usageExceeded.accountRateLimit.actionLabel":`Open settings`,"ui.sessionTurn.status.delegating":`Delegating work`,"ui.sessionTurn.status.planning":`Planning next steps`,"ui.sessionTurn.status.gatheringContext":`Exploring`,"ui.sessionTurn.status.gatheredContext":`Explored`,"ui.sessionTurn.status.searchingCodebase":`Searching the codebase`,"ui.sessionTurn.status.searchingWeb":`Searching the web`,"ui.sessionTurn.status.makingEdits":`Making edits`,"ui.sessionTurn.status.runningCommands":`Running commands`,"ui.sessionTurn.status.thinking":`Thinking`,"ui.sessionTurn.status.thinkingWithTopic":`Thinking - {{topic}}`,"ui.sessionTurn.status.gatheringThoughts":`Gathering thoughts`,"ui.sessionTurn.status.consideringNextSteps":`Considering next steps`,"ui.messagePart.diagnostic.error":`Error`,"ui.messagePart.title.edit":`Edit`,"ui.messagePart.title.write":`Write`,"ui.messagePart.option.typeOwnAnswer":`Type your own answer`,"ui.messagePart.review.title":`Review your answers`,"ui.messagePart.questions.dismissed":`Questions dismissed`,"ui.messagePart.compaction":`Session compacted`,"ui.messagePart.compaction.started":`Session compaction started`,"ui.messagePart.compaction.running":`Compacting`,"ui.messagePart.compaction.failed":`Session compaction failed`,"ui.messagePart.compaction.cancelled":`Session compaction cancelled`,"ui.messagePart.compaction.interrupted":`Session compaction interrupted`,"ui.messagePart.providerCompaction":`Session compacted by provider`,"ui.messagePart.compaction.usage":`{{input}} in · {{output}} out`,"ui.messagePart.context.details":`Details`,"ui.messagePart.context.read.one":`{{count}} read`,"ui.messagePart.context.read.other":`{{count}} reads`,"ui.messagePart.context.search.one":`{{count}} search`,"ui.messagePart.context.search.other":`{{count}} searches`,"ui.messagePart.context.list.one":`{{count}} list`,"ui.messagePart.context.list.other":`{{count}} lists`,"ui.messagePart.context.notice.one":`{{count}} Notice`,"ui.messagePart.context.notice.other":`{{count}} Notices`,"ui.messagePart.context.thought.one":`Thought`,"ui.messagePart.context.thought.other":`Thoughts`,"ui.messagePart.context.match.one":`({{count}} match)`,"ui.messagePart.context.match.other":`({{count}} matches)`,"ui.messagePart.tools.used.one":`Used {{count}} {{tools}}`,"ui.messagePart.tools.used.other":`Used {{count}} {{tools}}`,"ui.list.loading":`Loading`,"ui.list.empty":`No results`,"ui.list.clearFilter":`Clear filter`,"ui.list.emptyWithFilter.prefix":`No results for`,"ui.list.emptyWithFilter.suffix":``,"ui.fileSearch.placeholder":`Find`,"ui.fileSearch.previousMatch":`Previous match`,"ui.fileSearch.nextMatch":`Next match`,"ui.fileSearch.close":`Close search`,"ui.messageNav.newMessage":`New message`,"ui.promptInput.noMatchingItems":`No matching items`,"ui.promptInput.commands":`Commands`,"ui.promptInput.dropFiles":`Drop files to add`,"ui.promptInput.dropFiles.image":`Drop images or files to add`,"ui.promptInput.dropFiles.pdf":`Drop PDFs or files to add`,"ui.promptInput.dropFiles.imagePdf":`Drop images, PDFs, or files to add`,"ui.promptInput.removeAttachment":`Remove attachment`,"ui.promptInput.label":`Prompt`,"ui.promptInput.placeholder.shell":`Enter shell command…`,"ui.promptInput.placeholder.normal":`Ask anything, {{slash}} for commands, {{at}} for context…`,"ui.promptInput.placeholder.followUp":`Add follow-up, {{slash}} for commands, {{at}} for context…`,"ui.promptInput.add":`Add images and files`,"ui.promptInput.attachments":`Images and files`,"ui.promptInput.context":`Context`,"ui.promptInput.shell":`Shell command`,"ui.promptInput.chooseAgent":`Choose agent`,"ui.promptInput.chooseModel":`Choose model`,"ui.promptInput.chooseVariant":`Choose model variant`,"ui.promptInput.send":`Send`,"ui.promptInput.stop":`Stop`,"ui.promptInput.exitShell":`Exit`,"ui.promptInput.steer":`Steer`,"ui.promptInput.queue":`Queue`,"ui.promptInput.steerHint":`Send without interrupting`,"ui.tabs.close":`Close tab`,"ui.textField.copyToClipboard":`Copy to clipboard`,"ui.textField.copyLink":`Copy link`,"ui.textField.copied":`Copied`,"ui.imagePreview.alt":`Image preview`,"ui.scrollView.ariaLabel":`scrollable content`,"ui.tool.read":`Read`,"ui.tool.loaded":`Loaded`,"ui.tool.loadedFile":`Loaded {{path}}`,"ui.tool.loadedSkill":`Loaded {{name}} skill`,"ui.tool.loadedSkills.one":`Loaded {{name}} skill`,"ui.tool.loadedSkills.other":`Loaded {{name}} skills`,"ui.tool.list":`List`,"ui.tool.glob":`Glob`,"ui.tool.grep":`Grep`,"ui.tool.task":`Task`,"ui.tool.browser":`Browser`,"ui.tool.webfetch":`Webfetch`,"ui.tool.websearch":`Web Search`,"ui.tool.websearch.provider":`{{provider}} Web Search`,"ui.tool.shell":`Shell`,"ui.tool.shell.writingCommand":`Writing command…`,"ui.tool.shell.exit":`Command exited with code {{code}}`,"ui.tool.shell.timeout":`Command timed out`,"ui.tool.shell.cancelled":`Command cancelled`,"ui.tool.execute":`Execute`,"ui.tool.patch":`Patch`,"ui.tool.questions":`Questions`,"ui.tool.questions.numbered":`Questions {{number}}`,"ui.tool.agent":`{{type}} Agent`,"ui.tool.agent.default":`Agent`,"ui.tool.agent.delegating":`Delegating agent…`,"ui.tool.skill":`Skill`,"ui.basicTool.called":"Called `{{tool}}`","ui.toolErrorCard.failed":`Failed`,"ui.toolErrorCard.copyError":`Copy error`,"ui.common.file.one":`file`,"ui.common.file.other":`files`,"ui.common.question.one":`question`,"ui.common.question.other":`questions`,"ui.common.add":`Add`,"ui.common.clear":`Clear`,"ui.common.file":`File`,"ui.common.back":`Back`,"ui.common.cancel":`Cancel`,"ui.common.confirm":`Confirm`,"ui.common.dismiss":`Dismiss`,"ui.common.close":`Close`,"ui.common.next":`Next`,"ui.common.submit":`Submit`,"ui.common.showMore":`Show more`,"ui.common.moreCount.one":`+{{count}} more`,"ui.common.moreCount.other":`+{{count}} more`,"ui.permission.deny":`Deny`,"ui.permission.allowAlways":`Allow always`,"ui.permission.allowOnce":`Allow once`,"ui.message.expand":`Expand message`,"ui.message.collapse":`Collapse message`,"ui.message.copy":`Copy`,"ui.message.copyMessage":`Copy message`,"ui.message.forkMessage":`Fork to new session`,"ui.message.revertMessage":`Revert message`,"ui.message.copyResponse":`Copy response`,"ui.message.copied":`Copied`,"ui.message.thought":`Thought`,"ui.message.duration.seconds":`{{count}}s`,"ui.message.duration.minutesSeconds":`{{minutes}}m {{seconds}}s`,"ui.message.interrupted":`Interrupted`,"ui.sessionTimeline.notice.model":`Model`,"ui.sessionTimeline.notice.modelSwitched":`Switched to {{model}}`,"ui.sessionTimeline.notice.agentChanged":`Agent changed`,"ui.sessionTimeline.notice.movedTo":`Moved to`,"ui.sessionTimeline.notice.movedTooltip":`Session working directory changed`,"ui.sessionTimeline.notice.failed":`{{actor}} failed`,"ui.sessionTimeline.notice.cancelled":`{{actor}} cancelled`,"ui.sessionTimeline.notice.finished":`{{actor}} finished`,"ui.sessionTimeline.notice.instructionsUpdated":`Instructions updated`,"ui.message.queued":`Queued`,"ui.message.attachment.alt":`attachment`,"ui.patch.action.deleted":`Deleted`,"ui.patch.action.created":`Created`,"ui.patch.action.moved":`Moved`,"ui.patch.action.patched":`Patched`,"ui.question.subtitle.answered":`{{count}} answered`,"ui.question.answer.none":`(no answer)`,"ui.question.review.notAnswered":`(not answered)`,"ui.question.multiHint":`Select all answers that apply`,"ui.question.singleHint":`Select one answer`,"ui.question.custom.placeholder":`Type your answer…`},wl=new Map;function Tl(e,t){let n=wl.get(e);if(n)return n.select(t);let r=new Intl.PluralRules(e);return wl.size>=32&&wl.delete(wl.keys().next().value),wl.set(e,r),r.select(t)}function El(e,t){return`${e}.${t}`}function Dl(e,t){return t?e.replace(/{{\s*([^}]+?)\s*}}/g,(e,n)=>{let r=t[String(n)];return r===void 0?``:String(r)}):e}var Ol={locale:()=>`en`,t:(e,t)=>Dl(Cl[e]??String(e),t),plural:(e,t,n)=>Ol.pluralForm(e,Tl(Ol.locale(),t),{...n,count:t}),pluralForm:(e,t,n)=>{let r=Cl;return Dl(r[El(e,t)]??r[`${e}.other`]??`${e}.other`,n)}},kl=L(Ol);function Al(){return R(kl)}var jl=W(`<span data-slot=text-input-v2-leading-icon>`),Ml=W(`<button type=button data-slot=text-input-v2-icon-button>`),Nl=W(`<div data-component=text-input-v2><div data-slot=text-input-v2-value><input>`);function Pl(e){let t=Al(),[n,r]=V(e,[`class`,`classList`,`leadingIcon`,`showCopyButton`,`showClearButton`,`clearIcon`,`copyLabel`,`clearLabel`,`onCopyClick`,`onClearClick`,`numeric`,`invalid`,`appearance`,`disabled`]);return(()=>{var e=Nl(),i=e.firstChild,a=i.firstChild;return K(i,z(H,{get when(){return n.leadingIcon},get children(){var e=jl();return K(e,()=>n.leadingIcon),e}}),a),gt(a,B(r,{get type(){return r.type??`text`},get disabled(){return n.disabled},get"aria-invalid"(){return n.invalid?!0:void 0},"data-slot":`text-input-v2-input`}),!1,!1),K(e,z(H,{get when(){return n.showClearButton||n.showCopyButton},get children(){var e=Ml();return e.$$click=e=>{if(n.showClearButton){n.onClearClick?.(e);return}n.onCopyClick?.(e)},e.$$mousedown=e=>{n.showClearButton&&e.preventDefault()},K(e,z(X,{get name(){return U(()=>!!n.showClearButton)()?n.clearIcon??`xmark-small`:`copy`}})),j(r=>{var i=n.showClearButton?`clear`:`copy`,a=n.showClearButton?n.clearLabel??t.t(`ui.common.clear`):n.copyLabel??t.t(`ui.message.copy`),o=n.disabled;return i!==r.e&&G(e,`data-variant`,r.e=i),a!==r.t&&G(e,`aria-label`,r.t=a),o!==r.a&&(e.disabled=r.a=o),r},{e:void 0,t:void 0,a:void 0}),e}}),null),j(t=>{var r=n.disabled?``:void 0,i=n.invalid?``:void 0,a=n.numeric?``:void 0,o=n.appearance??`base`,s=n.leadingIcon?``:void 0,c={...n.classList,[n.class??``]:!!n.class};return r!==t.e&&G(e,`data-disabled`,t.e=r),i!==t.t&&G(e,`data-invalid`,t.t=i),a!==t.a&&G(e,`data-numeric`,t.a=a),o!==t.o&&G(e,`data-appearance`,t.o=o),s!==t.i&&G(e,`data-leading-icon`,t.i=s),t.n=pt(e,c,t.n),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),e})()}ct([`mousedown`,`click`]);var Fl=class{collection;direction;orientation;constructor(e,t,n){this.collection=e,this.direction=t,this.orientation=n}flipDirection(){return this.direction()===`rtl`&&this.orientation()===`horizontal`}getKeyLeftOf(e){if(this.flipDirection())return this.getNextKey(e);if(this.orientation()===`horizontal`)return this.getPreviousKey(e)}getKeyRightOf(e){if(this.flipDirection())return this.getPreviousKey(e);if(this.orientation()===`horizontal`)return this.getNextKey(e)}getKeyAbove(e){if(this.orientation()===`vertical`)return this.getPreviousKey(e)}getKeyBelow(e){if(this.orientation()===`vertical`)return this.getNextKey(e)}getFirstKey(){let e=this.collection().getFirstKey();if(e!=null)return this.collection().getItem(e)?.disabled&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection().getLastKey();if(e!=null)return this.collection().getItem(e)?.disabled&&(e=this.getPreviousKey(e)),e}getNextKey(e){let t=e,n;do if(t=this.collection().getKeyAfter(t)??this.collection().getFirstKey(),t==null||(n=this.collection().getItem(t),n==null))return;while(n.disabled);return t}getPreviousKey(e){let t=e,n;do if(t=this.collection().getKeyBefore(t)??this.collection().getLastKey(),t==null||(n=this.collection().getItem(t),n==null))return;while(n.disabled);return t}};function Il(e){let t=e.startIndex??0,n=e.startLevel??0,r=[],i=t=>{if(t==null)return``;let n=e.getKey??`key`,r=ei(n)?t[n]:n(t);return r==null?``:String(r)},a=t=>{if(t==null)return``;let n=e.getTextValue??`textValue`,r=ei(n)?t[n]:n(t);return r==null?``:String(r)},o=t=>{if(t==null)return!1;let n=e.getDisabled??`disabled`;return(ei(n)?t[n]:n(t))??!1},s=t=>{if(t!=null)return ei(e.getSectionChildren)?t[e.getSectionChildren]:e.getSectionChildren?.(t)};for(let c of e.dataSource){if(ei(c)||$r(c)){r.push({type:`item`,rawValue:c,key:String(c),textValue:String(c),disabled:o(c),level:n,index:t}),t++;continue}if(s(c)!=null){r.push({type:`section`,rawValue:c,key:``,textValue:``,disabled:!1,level:n,index:t}),t++;let i=s(c)??[];if(i.length>0){let a=Il({dataSource:i,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...a),t+=a.length}}else r.push({type:`item`,rawValue:c,key:i(c),textValue:a(c),disabled:o(c),level:n,index:t}),t++}return r}function Ll(e,t=[]){return N(()=>{let n=Il({dataSource:q(e.dataSource),getKey:q(e.getKey),getTextValue:q(e.getTextValue),getDisabled:q(e.getDisabled),getSectionChildren:q(e.getSectionChildren)});for(let e=0;e<t.length;e++)t[e]();return e.factory(n)})}var Rl=class e extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};function zl(e){let[t,n]=Aa(e);return[()=>t()??new Rl,n]}function Bl(e){return hi()?e.altKey:e.ctrlKey}function Vl(e){return di()?e.metaKey:e.ctrlKey}function Hl(e){return new Rl(e)}function Ul(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Wl(e){let t=Hi({selectionMode:`none`,selectionBehavior:`toggle`},e),[n,r]=A(!1),[i,a]=A(),[o,s]=zl({value:N(()=>{let e=q(t.selectedKeys);return e==null?e:Hl(e)}),defaultValue:N(()=>{let e=q(t.defaultSelectedKeys);return e==null?new Rl:Hl(e)}),onChange:e=>t.onSelectionChange?.(e)}),[c,l]=A(q(t.selectionBehavior));return M(()=>{let e=o();q(t.selectionBehavior)===`replace`&&c()===`toggle`&&typeof e==`object`&&e.size===0&&l(`replace`)}),M(()=>{l(q(t.selectionBehavior)??`toggle`)}),{selectionMode:()=>q(t.selectionMode),disallowEmptySelection:()=>q(t.disallowEmptySelection)??!1,selectionBehavior:c,setSelectionBehavior:l,isFocused:n,setFocused:r,focusedKey:i,setFocusedKey:a,selectedKeys:o,setSelectedKeys:e=>{(q(t.allowDuplicateSelectionEvents)||!Ul(e,o()))&&s(e)}}}function Gl(e){let[t,n]=A(``),[r,i]=A(-1);return{typeSelectHandlers:{onKeyDown:a=>{if(q(e.isDisabled))return;let o=q(e.keyboardDelegate),s=q(e.selectionManager);if(!o.getKeyForSearch)return;let c=Kl(a.key);if(!c||a.ctrlKey||a.metaKey)return;c===` `&&t().trim().length>0&&(a.preventDefault(),a.stopPropagation());let l=n(e=>e+c),u=o.getKeyForSearch(l,s.focusedKey())??o.getKeyForSearch(l);u==null&&ql(l)&&(l=l[0],u=o.getKeyForSearch(l,s.focusedKey())??o.getKeyForSearch(l)),u!=null&&(s.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),i(window.setTimeout(()=>n(``),500))}}}}function Kl(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function ql(e){return e.split(``).every(t=>t===e[0])}function Jl(e,t,n){let r=B({selectOnFocus:()=>q(e.selectionManager).selectionBehavior()===`replace`},e),i=()=>n?.()??t(),{direction:a}=Jo(),o={top:0,left:0};mn(()=>q(r.isVirtualized)?void 0:i(),`scroll`,()=>{let e=i();e&&(o={top:e.scrollTop,left:e.scrollLeft})});let{typeSelectHandlers:s}=Gl({isDisabled:()=>q(r.disallowTypeAhead),keyboardDelegate:()=>q(r.keyboardDelegate),selectionManager:()=>q(r.selectionManager)}),c=()=>q(r.orientation)??`vertical`,l=e=>{vi(e,s.onKeyDown),e.altKey&&e.key===`Tab`&&e.preventDefault();let n=t();if(!n?.contains(e.target))return;let i=q(r.selectionManager),o=q(r.selectOnFocus),l=t=>{t!=null&&(i.setFocusedKey(t),e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&!Bl(e)&&i.replaceSelection(t))},u=q(r.keyboardDelegate),d=q(r.shouldFocusWrap),f=i.focusedKey();switch(e.key){case c()===`vertical`?`ArrowDown`:`ArrowRight`:if(u.getKeyBelow){e.preventDefault();let t;t=f==null?u.getFirstKey?.():u.getKeyBelow(f),t==null&&d&&(t=u.getFirstKey?.(f)),l(t)}break;case c()===`vertical`?`ArrowUp`:`ArrowLeft`:if(u.getKeyAbove){e.preventDefault();let t;t=f==null?u.getLastKey?.():u.getKeyAbove(f),t==null&&d&&(t=u.getLastKey?.(f)),l(t)}break;case c()===`vertical`?`ArrowLeft`:`ArrowUp`:if(u.getKeyLeftOf){e.preventDefault();let t=a()===`rtl`,n;n=f==null?t?u.getFirstKey?.():u.getLastKey?.():u.getKeyLeftOf(f),l(n)}break;case c()===`vertical`?`ArrowRight`:`ArrowDown`:if(u.getKeyRightOf){e.preventDefault();let t=a()===`rtl`,n;n=f==null?t?u.getLastKey?.():u.getFirstKey?.():u.getKeyRightOf(f),l(n)}break;case`Home`:if(u.getFirstKey){e.preventDefault();let t=u.getFirstKey(f,Vl(e));t!=null&&(i.setFocusedKey(t),Vl(e)&&e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&i.replaceSelection(t))}break;case`End`:if(u.getLastKey){e.preventDefault();let t=u.getLastKey(f,Vl(e));t!=null&&(i.setFocusedKey(t),Vl(e)&&e.shiftKey&&i.selectionMode()===`multiple`?i.extendSelection(t):o&&i.replaceSelection(t))}break;case`PageDown`:u.getKeyPageBelow&&f!=null&&(e.preventDefault(),l(u.getKeyPageBelow(f)));break;case`PageUp`:u.getKeyPageAbove&&f!=null&&(e.preventDefault(),l(u.getKeyPageAbove(f)));break;case`a`:Vl(e)&&i.selectionMode()===`multiple`&&q(r.disallowSelectAll)!==!0&&(e.preventDefault(),i.selectAll());break;case`Escape`:!e.defaultPrevented&&!q(r.disallowEmptySelection)&&(e.preventDefault(),i.clearSelection());break;case`Tab`:if(!q(r.allowsTabNavigation)){if(e.shiftKey)n.focus();else{let e=Ri(n,{tabbable:!0}),t,r;do r=e.lastChild(),r&&(t=r);while(r);t&&!t.contains(document.activeElement)&&xi(t)}break}}},u=e=>{let t=q(r.selectionManager),n=q(r.keyboardDelegate),a=q(r.selectOnFocus);if(t.isFocused()){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey()==null){let r=e=>{e!=null&&(t.setFocusedKey(e),a&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey()??n.getLastKey?.()):r(t.firstSelectedKey()??n.getFirstKey?.())}else if(!q(r.isVirtualized)){let e=i();if(e){e.scrollTop=o.top,e.scrollLeft=o.left;let n=e.querySelector(`[data-key="${t.focusedKey()}"]`);n&&(xi(n),Ki(e,n))}}}},d=e=>{let t=q(r.selectionManager);e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},f=e=>{i()===e.target&&e.preventDefault()},p=()=>{let e=q(r.autoFocus);if(!e)return;let n=q(r.selectionManager),i=q(r.keyboardDelegate),a;e===`first`&&(a=i.getFirstKey?.()),e===`last`&&(a=i.getLastKey?.());let o=n.selectedKeys();o.size&&(a=o.values().next().value),n.setFocused(!0),n.setFocusedKey(a);let s=t();s&&a==null&&!q(r.shouldUseVirtualFocus)&&xi(s)};return oe(()=>{r.deferAutoFocus?setTimeout(p,0):p()}),M(ae([i,()=>q(r.isVirtualized),()=>q(r.selectionManager).focusedKey()],e=>{let[t,n,i]=e;if(n)i&&r.scrollToKey?.(i);else if(i&&t){let e=t.querySelector(`[data-key="${i}"]`);e&&Ki(t,e)}})),{tabIndex:N(()=>{if(!q(r.shouldUseVirtualFocus))return q(r.selectionManager).focusedKey()==null?0:-1}),onKeyDown:l,onMouseDown:f,onFocusIn:u,onFocusOut:d}}function Yl(e,t){let n=()=>q(e.selectionManager),r=()=>q(e.key),i=()=>q(e.shouldUseVirtualFocus),a=e=>{n().selectionMode()!==`none`&&(n().selectionMode()===`single`?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):e?.shiftKey?n().extendSelection(r()):n().selectionBehavior()===`toggle`||Vl(e)||`pointerType`in e&&e.pointerType===`touch`?n().toggleSelection(r()):n().replaceSelection(r()))},o=()=>n().isSelected(r()),s=()=>q(e.disabled)||n().isDisabled(r()),c=()=>!s()&&n().canSelectItem(r()),l=null,u=t=>{c()&&(l=t.pointerType,t.pointerType===`mouse`&&t.button===0&&!q(e.shouldSelectOnPressUp)&&a(t))},d=t=>{c()&&t.pointerType===`mouse`&&t.button===0&&q(e.shouldSelectOnPressUp)&&q(e.allowsDifferentPressOrigin)&&a(t)},f=t=>{c()&&(q(e.shouldSelectOnPressUp)&&!q(e.allowsDifferentPressOrigin)||l!==`mouse`)&&a(t)},p=e=>{c()&&[`Enter`,` `].includes(e.key)&&(Bl(e)?n().toggleSelection(r()):a(e))},m=e=>{s()&&e.preventDefault()},h=e=>{let a=t();i()||s()||!a||e.target===a&&n().setFocusedKey(r())},g=N(()=>{if(!(i()||s()))return r()===n().focusedKey()?0:-1}),_=N(()=>q(e.virtualized)?void 0:r());return M(ae([t,r,i,()=>n().focusedKey(),()=>n().isFocused()],([t,n,r,i,a])=>{t&&n===i&&a&&!r&&document.activeElement!==t&&(e.focus?e.focus():xi(t))})),{isSelected:o,isDisabled:s,allowsSelection:c,tabIndex:g,dataKey:_,onPointerDown:u,onPointerUp:d,onClick:f,onKeyDown:p,onMouseDown:m,onFocus:h}}var Xl=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()===`none`)return!1;let t=this.getKey(e);return t!=null&&this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;let e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(let t of this.state.selectedKeys()){let n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()===`none`)return;if(this.selectionMode()===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=this.state.selectedKeys(),r=n.anchorKey||t,i=new Rl(n,r,t);for(let e of this.getKeyRange(r,n.currentKey||t))i.delete(e);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&i.add(e);this.state.setSelectedKeys(i)}getKeyRange(e,t){let n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r!=null;){let e=this.collection().getItem(r);if(e&&e.type===`item`&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){let t=this.collection().getItem(e);return t?!t||t.type!==`item`?null:t.key:e}toggleSelection(e){if(this.selectionMode()===`none`)return;if(this.selectionMode()===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new Rl(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new Rl([t],t,t):new Rl;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()===`none`)return;let t=new Rl;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode()===`single`))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()===`multiple`&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){let e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new Rl)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!==`none`&&(this.selectionMode()===`single`?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()===`toggle`||t&&t.pointerType===`touch`?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;let t=this.selectedKeys();if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()===`none`)return!1;let t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){let t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){let e=[];return(t=>{for(;t!=null;){if(this.canSelectItem(t)){let n=this.collection().getItem(t);if(!n)continue;n.type===`item`&&e.push(t)}t=this.collection().getKeyAfter(t)}})(this.collection().getFirstKey()),e}},Zl=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(let t of e)this.keyMap.set(t.key,t);if(this.keyMap.size===0)return;let t,n=0;for(let[e,r]of this.keyMap)t?(t.nextKey=e,r.prevKey=t.key):(this.firstKey=e,r.prevKey=void 0),r.type===`item`&&(r.index=n++),t=r,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};function Ql(e){let t=Wl(e),n=Ll({dataSource:()=>q(e.dataSource),getKey:()=>q(e.getKey),getTextValue:()=>q(e.getTextValue),getDisabled:()=>q(e.getDisabled),getSectionChildren:()=>q(e.getSectionChildren),factory:t=>e.filter?new Zl(e.filter(t)):new Zl(t)},[()=>e.filter]),r=new Xl(n,t);return te(()=>{let e=t.focusedKey();e!=null&&!n().getItem(e)&&t.setFocusedKey(void 0)}),{collection:n,selectionManager:()=>r}}var $l=L();function eu(){return R($l)}function tu(){let e=eu();if(e===void 0)throw Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function nu(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function ru(e,t){let n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){let t=e[r]?.ref();if(t&&nu(t,n))return r+1}return 0}function iu(e){let t=e.map((e,t)=>[t,e]),n=!1;return t.sort(([e,t],[r,i])=>{let a=t.ref(),o=i.ref();return a===o||!a||!o?0:nu(a,o)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1)}),n?t.map(([e,t])=>t):e}function au(e,t){let n=iu(e);e!==n&&t(n)}function ou(e){let t=e[0],n=e[e.length-1]?.ref(),r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return oi(r).body}function su(e,t){M(()=>{let n=setTimeout(()=>{au(e(),t)});F(()=>clearTimeout(n))})}function cu(e,t){if(typeof IntersectionObserver!=`function`){su(e,t);return}let n=[];M(()=>{let r=()=>{let r=!!n.length;n=e(),r&&au(e(),t)},i=ou(e()),a=new IntersectionObserver(r,{root:i});for(let t of e()){let e=t.ref();e&&a.observe(e)}F(()=>a.disconnect())})}function lu(e={}){let[t,n]=Ma({value:()=>q(e.items),onChange:t=>e.onItemsChange?.(t)});cu(t,n);let r=e=>(n(t=>Zr(t,e,ru(t,e))),()=>{n(t=>{let n=t.filter(t=>t.ref()!==e.ref());return t.length===n.length?t:n})});return{DomCollectionProvider:e=>z($l.Provider,{value:{registerItem:r},get children(){return e.children}})}}function uu(e){let t=tu(),n=Hi({shouldRegisterItem:!0},e);M(()=>{n.shouldRegisterItem&&F(t.registerItem(n.getItem()))})}function du(e,t){let n=new ResizeObserver(e);return F(n.disconnect.bind(n)),{observe:e=>n.observe(e,t),unobserve:n.unobserve.bind(n)}}function fu(e,t,n){let r=new WeakMap,{observe:i,unobserve:a}=du(e=>{for(let n of e){let{contentRect:e,target:i}=n,a=Math.round(e.width),o=Math.round(e.height),s=r.get(i);(!s||s.width!==a||s.height!==o)&&(t(e,i,n),r.set(i,{width:a,height:o}))}},n);M(t=>{let n=on(cn(q(e)));return fn(n,t,i,a),n},[])}La({},{Content:()=>hu,Indicator:()=>gu,List:()=>_u,Root:()=>yu,Tabs:()=>xu,Trigger:()=>bu,useTabsContext:()=>mu});var pu=L();function mu(){let e=R(pu);if(e===void 0)throw Error("[kobalte]: `useTabsContext` must be used within a `Tabs` component");return e}function hu(e){let[t,n]=A(),r=mu(),[i,a]=V(e,[`ref`,`id`,`value`,`forceMount`]),[o,s]=A(0),c=()=>i.id??r.generateContentId(i.value),l=()=>r.listState().selectedKey()===i.value,{present:u}=io({show:()=>i.forceMount||l(),element:()=>t()??null});return M(ae([()=>t(),()=>u()],([e,t])=>{if(e==null||!t)return;let n=()=>{let t=Ri(e,{tabbable:!0});s(t.nextNode()?void 0:0)};n();let r=new MutationObserver(n);r.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`tabindex`,`disabled`]}),F(()=>{r.disconnect()})})),M(ae([()=>i.value,c],([e,t])=>{r.contentIdsMap().set(e,t)})),z(H,{get when(){return u()},get children(){return z(Ea,B({as:`div`,ref(e){var t=Xr(n,i.ref);typeof t==`function`&&t(e)},get id(){return c()},role:`tabpanel`,get tabIndex(){return o()},get"aria-labelledby"(){return r.triggerIdsMap().get(i.value)},get"data-orientation"(){return r.orientation()},get"data-selected"(){return l()?``:void 0}},a))}})}function gu(e){let t=mu(),[n,r]=V(e,[`style`]),[i,a]=A(),{direction:o}=Jo(),s=()=>{let e=t.selectedTab();if(e==null||e.getClientRects().length===0)return;let n={transform:void 0,width:void 0,height:void 0,transition:i()==null?`none`:void 0},r=o()===`rtl`?-1*(e.offsetParent?.offsetWidth-e.offsetWidth-e.offsetLeft):e.offsetLeft;n.transform=t.orientation()===`vertical`?`translateY(${e.offsetTop}px)`:`translateX(${r}px)`,t.orientation()===`horizontal`?n.width=`${e.offsetWidth}px`:n.height=`${e.offsetHeight}px`,a(n)};M(ae([t.selectedTab,t.orientation,o],()=>{i()!=null&&s()},{defer:!0}));let[c,l]=A(!1),u=null,d=null;return fu(t.selectedTab,(e,t)=>{if(d!==t){d=t,s();return}l(!0),u&&clearTimeout(u),u=setTimeout(()=>{u=null,l(!1)},1),s()}),z(Ea,B({as:`div`,role:`presentation`,get style(){return Yr(i()??{visibility:`hidden`},n.style)},get"data-orientation"(){return t.orientation()},get"data-resizing"(){return c()}},r))}function _u(e){let t,n=mu(),[r,i]=V(e,[`ref`,`onKeyDown`,`onMouseDown`,`onFocusIn`,`onFocusOut`]),{direction:a}=Jo(),o=new Fl(()=>n.listState().collection(),a,n.orientation),s=Jl({selectionManager:()=>n.listState().selectionManager(),keyboardDelegate:()=>o,selectOnFocus:()=>n.activationMode()===`automatic`,shouldFocusWrap:!1,disallowEmptySelection:!0},()=>t);return M(()=>{if(t==null)return;let e=t.querySelector(`[data-key="${n.listState().selectedKey()}"]`);e!=null&&n.setSelectedTab(e)}),z(Ea,B({as:`div`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},role:`tablist`,get"aria-orientation"(){return n.orientation()},get"data-orientation"(){return n.orientation()},get onKeyDown(){return yi([r.onKeyDown,s.onKeyDown])},get onMouseDown(){return yi([r.onMouseDown,s.onMouseDown])},get onFocusIn(){return yi([r.onFocusIn,s.onFocusIn])},get onFocusOut(){return yi([r.onFocusOut,s.onFocusOut])}},i))}function vu(e){let[t,n]=Aa({value:()=>q(e.selectedKey),defaultValue:()=>q(e.defaultSelectedKey),onChange:t=>e.onSelectionChange?.(t)}),r=N(()=>{let e=t();return e==null?[]:[e]}),[,i]=V(e,[`onSelectionChange`]),{collection:a,selectionManager:o}=Ql(B(i,{selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{let i=r.values().next().value;i!==void 0&&(i===t()&&e.onSelectionChange?.(i),n(i))}}));return{collection:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:N(()=>{let e=t();return e==null?void 0:a().getItem(e)})}}function yu(e){let[t,n]=V(Hi({id:`tabs-${Ue()}`,orientation:`horizontal`,activationMode:`automatic`},e),[`value`,`defaultValue`,`onChange`,`orientation`,`activationMode`,`disabled`]),[r,i]=A([]),[a,o]=A(),{DomCollectionProvider:s}=lu({items:r,onItemsChange:i}),c=vu({selectedKey:()=>t.value,defaultSelectedKey:()=>t.defaultValue,onSelectionChange:e=>t.onChange?.(String(e)),dataSource:r}),l=c.selectedKey();M(ae([()=>c.selectionManager(),()=>c.collection(),()=>c.selectedKey()],([e,t,n])=>{let r=n;if(e.isEmpty()||r==null||!t.getItem(r)){r=t.getFirstKey();let n=r==null?void 0:t.getItem(r);for(;n?.disabled&&n.key!==t.getLastKey();)r=t.getKeyAfter(n.key),n=r==null?void 0:t.getItem(r);n?.disabled&&r===t.getLastKey()&&(r=t.getFirstKey()),r!=null&&e.setSelectedKeys([r])}(e.focusedKey()==null||!e.isFocused()&&r!==l)&&e.setFocusedKey(r),l=r}));let u=new Map,d=new Map,f={isDisabled:()=>t.disabled??!1,orientation:()=>t.orientation,activationMode:()=>t.activationMode,triggerIdsMap:()=>u,contentIdsMap:()=>d,listState:()=>c,selectedTab:a,setSelectedTab:o,generateTriggerId:e=>`${n.id}-trigger-${e}`,generateContentId:e=>`${n.id}-content-${e}`};return z(s,{get children(){return z(pu.Provider,{value:f,get children(){return z(Ea,B({as:`div`,get"data-orientation"(){return f.orientation()}},n))}})}})}function bu(e){let t,n=mu(),[r,i]=V(Hi({type:`button`},e),[`ref`,`id`,`value`,`disabled`,`onPointerDown`,`onPointerUp`,`onClick`,`onKeyDown`,`onMouseDown`,`onFocus`]),a=()=>r.id??n.generateTriggerId(r.value),o=()=>n.listState().selectionManager().focusedKey()===r.value,s=()=>r.disabled||n.isDisabled(),c=()=>n.contentIdsMap().get(r.value);uu({getItem:()=>({ref:()=>t,type:`item`,key:r.value,textValue:``,disabled:s()})});let l=Yl({key:()=>r.value,selectionManager:()=>n.listState().selectionManager(),disabled:s},()=>t),u=e=>{gi()&&xi(e.currentTarget)};return M(ae([()=>r.value,a],([e,t])=>{n.triggerIdsMap().set(e,t)})),z(Ea,B({as:`button`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},get id(){return a()},role:`tab`,get tabIndex(){return U(()=>!s())()?l.tabIndex():void 0},get disabled(){return s()},get"aria-selected"(){return l.isSelected()},get"aria-disabled"(){return s()||void 0},get"aria-controls"(){return U(()=>!!l.isSelected())()?c():void 0},get"data-key"(){return l.dataKey()},get"data-orientation"(){return n.orientation()},get"data-selected"(){return l.isSelected()?``:void 0},get"data-highlighted"(){return o()?``:void 0},get"data-disabled"(){return s()?``:void 0},get onPointerDown(){return yi([r.onPointerDown,l.onPointerDown])},get onPointerUp(){return yi([r.onPointerUp,l.onPointerUp])},get onClick(){return yi([r.onClick,l.onClick,u])},get onKeyDown(){return yi([r.onKeyDown,l.onKeyDown])},get onMouseDown(){return yi([r.onMouseDown,l.onMouseDown])},get onFocus(){return yi([r.onFocus,l.onFocus])}},i))}var xu=Object.assign(yu,{Content:hu,Indicator:gu,List:_u,Trigger:bu}),Su=W(`<span class="inline-flex items-center gap-2"data-slot=tabs-v2-trigger-content>`),Cu=W(`<div>`),wu=W(`<span data-slot=tabs-v2-subtext class="ms-2 text-xs text-text-weak">`),Tu=W(`<button type=button><svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M10.8889 3.11108L3.11108 10.8889"stroke=currentColor stroke-linejoin=round></path><path d="M3.11108 3.11108L10.8889 10.8889"stroke=currentColor stroke-linejoin=round>`),Eu=L({current:()=>!1});function Du(e){let[t,n]=V(e,[`class`,`classList`,`variant`,`orientation`,`children`]),r=()=>t.variant??`panel`,i=()=>r()===`line`||r()===`pill`||r()===`settings`,a=()=>r()===`panel`||r()===`line`?`normal`:r()===`underline`?`alt`:r()===`surface`?`pill`:r();return z(Eu.Provider,{value:{current:i},get children(){return z(yu,B(n,{get orientation(){return t.orientation},get"data-component"(){return i()?`tabs-v2`:`tabs`},get"data-variant"(){return a()},get"data-orientation"(){return t.orientation||`horizontal`},get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return t.children}}))}})}function Ou(e){let t=R(Eu),[n,r]=V(e,[`class`,`classList`]);return z(_u,B(r,{get"data-slot"(){return t.current()?`tabs-v2-list`:`tabs-list`},get classList(){return{...n.classList,[n.class??``]:!!n.class}}}))}function ku(e){let t=R(Eu),[n,r]=V(e,[`class`,`classList`,`classes`,`children`,`closeButton`,`hideCloseButton`,`onMiddleClick`,`subtext`,`dir`]),i=()=>t.current()?`tabs-v2-trigger-wrapper`:`tabs-trigger-wrapper`,a=()=>t.current()?`tabs-v2-trigger`:`tabs-trigger`,o=()=>t.current()?`tabs-v2-trigger-close-button`:`tabs-trigger-close-button`;return(()=>{var s=Cu();return s.addEventListener(`auxclick`,e=>{e.button===1&&n.onMiddleClick&&(e.preventDefault(),n.onMiddleClick())}),s.$$mousedown=e=>{e.button===1&&n.onMiddleClick&&e.preventDefault()},K(s,z(bu,B(r,{get dir(){return n.dir??`auto`},get"data-slot"(){return a()},get"data-value"(){return e.value},get classList(){return{[n.classes?.button??``]:!!n.classes?.button}},get children(){return z(H,{get when(){return t.current()},get fallback(){return n.children},get children(){var e=Su();return K(e,()=>n.children,null),K(e,z(H,{get when(){return n.subtext},children:e=>(()=>{var t=wu();return K(t,e),t})()}),null),e}})}})),null),K(s,z(H,{get when(){return n.closeButton},children:e=>(()=>{var t=Cu();return K(t,e),j(e=>{var r=o(),i=n.hideCloseButton?``:void 0;return r!==e.e&&G(t,`data-slot`,e.e=r),i!==e.t&&G(t,`data-hidden`,e.t=i),e},{e:void 0,t:void 0}),t})()}),null),j(t=>{var r=i(),a=e.value,o={...n.classList,[n.class??``]:!!n.class};return r!==t.e&&G(s,`data-slot`,t.e=r),a!==t.t&&G(s,`data-value`,t.t=a),t.a=pt(s,o,t.a),t},{e:void 0,t:void 0,a:void 0}),s})()}function Au(e){let t=Al(),[n,r]=V(e,[`class`,`classList`,`onClick`,`onPointerDown`,`aria-label`]);return(()=>{var e=Tu();return gt(e,B(r,{get"aria-label"(){return n[`aria-label`]??t.t(`ui.tabs.close`)},"data-slot":`tabs-close-button`,get classList(){return{[n.class??``]:!!n.class,...n.classList}},onPointerDown:e=>{e.stopPropagation(),typeof n.onPointerDown==`function`&&n.onPointerDown(e)},onClick:e=>{e.preventDefault(),e.stopPropagation(),typeof n.onClick==`function`&&n.onClick(e)}}),!1,!0),e})()}function ju(e){let t=R(Eu),[n,r]=V(e,[`class`,`classList`,`children`]);return z(hu,B(r,{get"data-slot"(){return t.current()?`tabs-v2-content`:`tabs-content`},get classList(){return{...n.classList,[n.class??``]:!!n.class}},get children(){return n.children}}))}var Mu=Object.assign(Du,{List:Ou,Trigger:ku,CloseButton:Au,Content:ju,SectionTitle:e=>{let t=R(Eu);return(()=>{var n=Cu();return K(n,()=>e.children),j(()=>G(n,`data-slot`,t.current()?`tabs-v2-section-title`:`tabs-section-title`)),n})()}});ct([`mousedown`]);var Nu=[`id`,`name`,`validationState`,`required`,`disabled`,`readOnly`];function Pu(e){let t=Hi({id:`form-control-${Ue()}`},e),[n,r]=A(),[i,a]=A(),[o,s]=A(),[c,l]=A();return{formControlContext:{name:()=>q(t.name)??q(t.id),dataset:N(()=>({"data-valid":q(t.validationState)===`valid`?``:void 0,"data-invalid":q(t.validationState)===`invalid`?``:void 0,"data-required":q(t.required)?``:void 0,"data-disabled":q(t.disabled)?``:void 0,"data-readonly":q(t.readOnly)?``:void 0})),validationState:()=>q(t.validationState),isRequired:()=>q(t.required),isDisabled:()=>q(t.disabled),isReadOnly:()=>q(t.readOnly),labelId:n,fieldId:i,descriptionId:o,errorMessageId:c,getAriaLabelledBy:(e,t,r)=>{let i=r!=null||n()!=null;return[r,n(),i&&t!=null?e:void 0].filter(Boolean).join(` `)||void 0},getAriaDescribedBy:e=>[o(),c(),e].filter(Boolean).join(` `)||void 0,generateId:ni(()=>q(t.id)),registerLabel:Ha(r),registerField:Ha(a),registerDescription:Ha(s),registerErrorMessage:Ha(l)}}}var Fu=L();function Iu(){let e=R(Fu);if(e===void 0)throw Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function Lu(e){let t=Iu(),n=Hi({id:t.generateId(`description`)},e);return M(()=>F(t.registerDescription(n.id))),z(Ea,B({as:`div`},()=>t.dataset(),n))}var Ru=W(`<option>`),zu=W(`<div aria-hidden=true><input type=text style=font-size:16px><select tabindex=-1><option>`);function Bu(e){let t,[n,r]=V(e,[`ref`,`onChange`,`collection`,`selectionManager`,`isOpen`,`isMultiple`,`isVirtualized`,`focusTrigger`]),i=Iu(),[a,o]=A(!1),s=e=>{let t=n.collection.getItem(e);return z(H,{get when(){return t?.type===`item`},get children(){var r=Ru();return r.value=e,K(r,()=>t?.textValue),j(()=>r.selected=n.selectionManager.isSelected(e)),r}})};return M(ae(()=>n.selectionManager.selectedKeys(),(e,n)=>{n&&Ul(e,n)||(o(!0),t?.dispatchEvent(new Event(`input`,{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event(`change`,{bubbles:!0,cancelable:!0})))},{defer:!0})),(()=>{var e=zu(),c=e.firstChild,l=c.nextSibling;l.firstChild,c.addEventListener(`focus`,()=>n.focusTrigger()),l.addEventListener(`change`,e=>{vi(e,n.onChange),a()||n.selectionManager.setSelectedKeys(new Set([e.target.value])),o(!1)});var u=Xr(e=>t=e,n.ref);return typeof u==`function`&&_t(u,l),gt(l,B({get multiple(){return n.isMultiple},get name(){return i.name()},get required(){return i.isRequired()},get disabled(){return i.isDisabled()},get size(){return n.collection.getSize()},get value(){return n.selectionManager.firstSelectedKey()??``}},r),!1,!0),K(l,z(H,{get when(){return n.isVirtualized},get fallback(){return z(Ge,{get each(){return[...n.collection.getKeys()]},children:s})},get children(){return z(Ge,{get each(){return[...n.selectionManager.selectedKeys()]},children:s})}}),null),j(t=>{var r=Ji,a=n.selectionManager.isFocused()||n.isOpen?-1:0,o=i.isRequired(),s=i.isDisabled(),l=i.isReadOnly();return t.e=mt(e,r,t.e),a!==t.t&&G(c,`tabindex`,t.t=a),o!==t.a&&(c.required=t.a=o),s!==t.o&&(c.disabled=t.o=s),l!==t.i&&(c.readOnly=t.i=l),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),e})()}var Vu=new WeakMap;function Hu(e){let t=Vu.get(e);if(t!=null)return t;t=0;for(let n of e)n.type===`item`&&t++;return Vu.set(e,t),t}var Uu=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){let e=this.collection().getItem(t);if(e&&e.type===`item`&&!e.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){let e=this.collection().getItem(t);if(e&&e.type===`item`&&!e.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type===`item`&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){let t=this.collection().getItem(e);if(t&&t.type===`item`&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight),i=e;for(;i&&n&&n.offsetTop>r;)i=this.getKeyAbove(i),n=i==null?null:this.getItem(i);return i}getKeyPageBelow(e){let t=this.ref?.(),n=this.getItem(e);if(!t||!n)return;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight),i=e;for(;i&&n&&n.offsetTop<r;)i=this.getKeyBelow(i),n=i==null?null:this.getItem(i);return i}getKeyForSearch(e,t){let n=this.collator?.();if(!n)return;let r=t==null?this.getFirstKey():this.getKeyBelow(t);for(;r!=null;){let t=this.collection().getItem(r);if(t){let i=t.textValue.slice(0,e.length);if(t.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r)}}};function Wu(e,t,n){let r=Xo({usage:`search`,sensitivity:`base`});return Jl({selectionManager:()=>q(e.selectionManager),keyboardDelegate:N(()=>q(e.keyboardDelegate)||new Uu(e.collection,t,r)),autoFocus:()=>q(e.autoFocus),deferAutoFocus:()=>q(e.deferAutoFocus),shouldFocusWrap:()=>q(e.shouldFocusWrap),disallowEmptySelection:()=>q(e.disallowEmptySelection),selectOnFocus:()=>q(e.selectOnFocus),disallowTypeAhead:()=>q(e.disallowTypeAhead),shouldUseVirtualFocus:()=>q(e.shouldUseVirtualFocus),allowsTabNavigation:()=>q(e.allowsTabNavigation),isVirtualized:()=>q(e.isVirtualized),scrollToKey:t=>q(e.scrollToKey)?.(t),orientation:()=>q(e.orientation)},t,n)}La({},{Item:()=>Yu,ItemDescription:()=>Xu,ItemIndicator:()=>Zu,ItemLabel:()=>Qu,Listbox:()=>td,Root:()=>$u,Section:()=>ed,useListboxContext:()=>Ku});var Gu=L();function Ku(){let e=R(Gu);if(e===void 0)throw Error("[kobalte]: `useListboxContext` must be used within a `Listbox` component");return e}var qu=L();function Ju(){let e=R(qu);if(e===void 0)throw Error("[kobalte]: `useListboxItemContext` must be used within a `Listbox.Item` component");return e}function Yu(e){let t,n=Ku(),[r,i]=V(Hi({id:`${n.generateId(`item`)}-${Ue()}`},e),[`ref`,`item`,`aria-label`,`aria-labelledby`,`aria-describedby`,`onPointerMove`,`onPointerDown`,`onPointerUp`,`onClick`,`onKeyDown`,`onMouseDown`,`onFocus`]),[a,o]=A(),[s,c]=A(),l=()=>n.listState().selectionManager(),u=()=>l().focusedKey()===r.item.key,d=Yl({key:()=>r.item.key,selectionManager:l,shouldSelectOnPressUp:n.shouldSelectOnPressUp,allowsDifferentPressOrigin:()=>n.shouldSelectOnPressUp()&&n.shouldFocusOnHover(),shouldUseVirtualFocus:n.shouldUseVirtualFocus,disabled:()=>r.item.disabled},()=>t),f=()=>{if(l().selectionMode()!==`none`)return d.isSelected()},p=N(()=>!(di()&&gi())),m=()=>p()?r[`aria-label`]:void 0,h=()=>p()?a():void 0,g=()=>p()?s():void 0,_=()=>{if(!n.isVirtualized())return;let e=n.listState().collection().getItem(r.item.key)?.index;return e==null?void 0:e+1},v=()=>{if(n.isVirtualized())return Hu(n.listState().collection())},y=e=>{vi(e,r.onPointerMove),e.pointerType===`mouse`&&!d.isDisabled()&&n.shouldFocusOnHover()&&(xi(e.currentTarget),l().setFocused(!0),l().setFocusedKey(r.item.key))},b=N(()=>({"data-disabled":d.isDisabled()?``:void 0,"data-selected":d.isSelected()?``:void 0,"data-highlighted":u()?``:void 0})),x={isSelected:d.isSelected,dataset:b,generateId:ni(()=>i.id),registerLabelId:Ha(o),registerDescriptionId:Ha(c)};return z(qu.Provider,{value:x,get children(){return z(Ea,B({as:`li`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},role:`option`,get tabIndex(){return d.tabIndex()},get"aria-disabled"(){return d.isDisabled()},get"aria-selected"(){return f()},get"aria-label"(){return m()},get"aria-labelledby"(){return h()},get"aria-describedby"(){return g()},get"aria-posinset"(){return _()},get"aria-setsize"(){return v()},get"data-key"(){return d.dataKey()},get onPointerDown(){return yi([r.onPointerDown,d.onPointerDown])},get onPointerUp(){return yi([r.onPointerUp,d.onPointerUp])},get onClick(){return yi([r.onClick,d.onClick])},get onKeyDown(){return yi([r.onKeyDown,d.onKeyDown])},get onMouseDown(){return yi([r.onMouseDown,d.onMouseDown])},get onFocus(){return yi([r.onFocus,d.onFocus])},onPointerMove:y},b,i))}})}function Xu(e){let t=Ju(),n=Hi({id:t.generateId(`description`)},e);return M(()=>F(t.registerDescriptionId(n.id))),z(Ea,B({as:`div`},()=>t.dataset(),n))}function Zu(e){let t=Ju(),[n,r]=V(Hi({id:t.generateId(`indicator`)},e),[`forceMount`]);return z(H,{get when(){return n.forceMount||t.isSelected()},get children(){return z(Ea,B({as:`div`,"aria-hidden":`true`},()=>t.dataset(),r))}})}function Qu(e){let t=Ju(),n=Hi({id:t.generateId(`label`)},e);return M(()=>F(t.registerLabelId(n.id))),z(Ea,B({as:`div`},()=>t.dataset(),n))}function $u(e){let t,n=Hi({id:`listbox-${Ue()}`,selectionMode:`single`,virtualized:!1},e),[r,i]=V(n,`ref.children.renderItem.renderSection.value.defaultValue.onChange.options.optionValue.optionTextValue.optionDisabled.optionGroupChildren.state.keyboardDelegate.autoFocus.selectionMode.shouldFocusWrap.shouldUseVirtualFocus.shouldSelectOnPressUp.shouldFocusOnHover.allowDuplicateSelectionEvents.disallowEmptySelection.selectionBehavior.selectOnFocus.disallowTypeAhead.allowsTabNavigation.virtualized.scrollToItem.scrollRef.onKeyDown.onMouseDown.onFocusIn.onFocusOut`.split(`.`)),a=N(()=>r.state?r.state:Ql({selectedKeys:()=>r.value,defaultSelectedKeys:()=>r.defaultValue,onSelectionChange:r.onChange,allowDuplicateSelectionEvents:()=>q(r.allowDuplicateSelectionEvents),disallowEmptySelection:()=>q(r.disallowEmptySelection),selectionBehavior:()=>q(r.selectionBehavior),selectionMode:()=>q(r.selectionMode),dataSource:()=>r.options??[],getKey:()=>r.optionValue,getTextValue:()=>r.optionTextValue,getDisabled:()=>r.optionDisabled,getSectionChildren:()=>r.optionGroupChildren})),o=Wu({selectionManager:()=>a().selectionManager(),collection:()=>a().collection(),autoFocus:()=>q(r.autoFocus),shouldFocusWrap:()=>q(r.shouldFocusWrap),keyboardDelegate:()=>r.keyboardDelegate,disallowEmptySelection:()=>q(r.disallowEmptySelection),selectOnFocus:()=>q(r.selectOnFocus),disallowTypeAhead:()=>q(r.disallowTypeAhead),shouldUseVirtualFocus:()=>q(r.shouldUseVirtualFocus),allowsTabNavigation:()=>q(r.allowsTabNavigation),isVirtualized:()=>r.virtualized,scrollToKey:()=>r.scrollToItem},()=>t,()=>r.scrollRef?.()),s={listState:a,generateId:ni(()=>i.id),shouldUseVirtualFocus:()=>n.shouldUseVirtualFocus,shouldSelectOnPressUp:()=>n.shouldSelectOnPressUp,shouldFocusOnHover:()=>n.shouldFocusOnHover,isVirtualized:()=>r.virtualized};return z(Gu.Provider,{value:s,get children(){return z(Ea,B({as:`ul`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},role:`listbox`,get tabIndex(){return o.tabIndex()},get"aria-multiselectable"(){return a().selectionManager().selectionMode()===`multiple`||void 0},get onKeyDown(){return yi([r.onKeyDown,o.onKeyDown])},get onMouseDown(){return yi([r.onMouseDown,o.onMouseDown])},get onFocusIn(){return yi([r.onFocusIn,o.onFocusIn])},get onFocusOut(){return yi([r.onFocusOut,o.onFocusOut])}},i,{get children(){return z(H,{get when(){return!r.virtualized},get fallback(){return r.children?.(a().collection)},get children(){return z(Wr,{get each(){return[...a().collection()]},by:`key`,children:e=>z(qe,{get children(){return[z(Je,{get when(){return e().type===`section`},get children(){return r.renderSection?.(e())}}),z(Je,{get when(){return e().type===`item`},get children(){return r.renderItem?.(e())}})]}})})}})}}))}})}function ed(e){return z(Ea,B({as:`li`,role:`presentation`},e))}var td=Object.assign($u,{Item:Yu,ItemDescription:Xu,ItemIndicator:Zu,ItemLabel:Qu,Section:ed}),nd=[`id`,`aria-label`,`aria-labelledby`,`aria-describedby`];function rd(e){let t=Iu(),n=Hi({id:t.generateId(`field`)},e);return j(()=>F(t.registerField(q(n.id)))),{fieldProps:{id:()=>q(n.id),ariaLabel:()=>q(n[`aria-label`]),ariaLabelledBy:()=>t.getAriaLabelledBy(q(n.id),q(n[`aria-label`]),q(n[`aria-labelledby`])),ariaDescribedBy:()=>t.getAriaDescribedBy(q(n[`aria-describedby`]))}}}function id(e){let t,n=Iu(),[r,i]=V(Hi({id:n.generateId(`label`)},e),[`ref`]),a=Pa(()=>t,()=>`label`);return M(()=>F(n.registerLabel(i.id))),z(Ea,B({as:`label`,ref(e){var n=Xr(e=>t=e,r.ref);typeof n==`function`&&n(e)},get for(){return U(()=>a()===`label`)()?n.fieldId():void 0}},()=>n.dataset(),i))}function ad(e,t){M(ae(e,e=>{if(e==null)return;let n=od(e);n!=null&&(n.addEventListener(`reset`,t,{passive:!0}),F(()=>{n.removeEventListener(`reset`,t)}))}))}function od(e){return sd(e)?e.form:e.closest(`form`)}function sd(e){return e.matches(`textarea, input, select, button`)}function cd(e){let t=Iu(),[n,r]=V(Hi({id:t.generateId(`error-message`)},e),[`forceMount`]),i=()=>t.validationState()===`invalid`;return M(()=>{i()&&F(t.registerErrorMessage(r.id))}),z(H,{get when(){return n.forceMount||i()},get children(){return z(Ea,B({as:`div`},()=>t.dataset(),r))}})}La({},{Arrow:()=>Qc,Content:()=>dd,Description:()=>Lu,ErrorMessage:()=>cd,HiddenSelect:()=>fd,Icon:()=>pd,Item:()=>Yu,ItemDescription:()=>Xu,ItemIndicator:()=>Zu,ItemLabel:()=>Qu,Label:()=>md,Listbox:()=>hd,Portal:()=>gd,Root:()=>vd,Section:()=>ed,Select:()=>Sd,Trigger:()=>yd,Value:()=>bd,useSelectContext:()=>ud});var ld=L();function ud(){let e=R(ld);if(e===void 0)throw Error("[kobalte]: `useSelectContext` must be used within a `Select` component");return e}function dd(e){let t,n=ud(),[r,i]=V(e,[`ref`,`style`,`onCloseAutoFocus`,`onFocusOutside`]),a=e=>{n.close()},o=e=>{r.onFocusOutside?.(e),n.isOpen()&&n.isModal()&&e.preventDefault()};return va({isDisabled:()=>!(n.isOpen()&&n.isModal()),targets:()=>t?[t]:[]}),ro({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),ga({trapFocus:()=>n.isOpen()&&n.isModal(),onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:e=>{r.onCloseAutoFocus?.(e),e.defaultPrevented||(xi(n.triggerRef()),e.preventDefault())}},()=>t),z(H,{get when(){return n.contentPresent()},get children(){return z(sl.Positioner,{get children(){return z(ka,B({ref(e){var i=Xr(e=>{n.setContentRef(e),t=e},r.ref);typeof i==`function`&&i(e)},get disableOutsidePointerEvents(){return U(()=>!!n.isModal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get style(){return Yr({"--kb-select-content-transform-origin":`var(--kb-popper-content-transform-origin)`,position:`relative`},r.style)},onEscapeKeyDown:a,onFocusOutside:o,get onDismiss(){return n.close}},()=>n.dataset(),i))}})}})}function fd(e){let t=ud();return z(Bu,B({get collection(){return t.listState().collection()},get selectionManager(){return t.listState().selectionManager()},get isOpen(){return t.isOpen()},get isMultiple(){return t.isMultiple()},get isVirtualized(){return t.isVirtualized()},focusTrigger:()=>t.triggerRef()?.focus()},e))}function pd(e){let t=ud();return z(Ea,B({as:`span`,"aria-hidden":`true`},()=>t.dataset(),Hi({children:`▼`},e)))}function md(e){let t=ud(),[n,r]=V(e,[`onClick`]);return z(id,B({as:`span`,onClick:e=>{vi(e,n.onClick),t.isDisabled()||t.triggerRef()?.focus()}},r))}function hd(e){let t=ud(),[n,r]=V(Hi({id:t.generateId(`listbox`)},e),[`ref`,`id`,`onKeyDown`]);return M(()=>F(t.registerListboxId(n.id))),z($u,B({ref(e){var r=Xr(t.setListboxRef,n.ref);typeof r==`function`&&r(e)},get id(){return n.id},get state(){return t.listState()},get virtualized(){return t.isVirtualized()},get autoFocus(){return t.autoFocus()},shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,get shouldFocusWrap(){return t.shouldFocusWrap()},get disallowTypeAhead(){return t.disallowTypeAhead()},get"aria-labelledby"(){return t.listboxAriaLabelledBy()},get renderItem(){return t.renderItem},get renderSection(){return t.renderSection},onKeyDown:e=>{vi(e,n.onKeyDown),e.key===`Escape`&&e.preventDefault()}},r))}function gd(e){let t=ud();return z(H,{get when(){return t.contentPresent()},get children(){return z(Mt,e)}})}function _d(e){let[t,n,r,i]=V(Hi({id:`select-${Ue()}`,selectionMode:`single`,disallowEmptySelection:!1,closeOnSelection:e.selectionMode===`single`,allowDuplicateSelectionEvents:!0,gutter:8,sameWidth:!0,modal:!1},e),`itemComponent.sectionComponent.open.defaultOpen.onOpenChange.value.defaultValue.onChange.placeholder.options.optionValue.optionTextValue.optionDisabled.optionGroupChildren.keyboardDelegate.allowDuplicateSelectionEvents.disallowEmptySelection.closeOnSelection.disallowTypeAhead.shouldFocusWrap.selectionBehavior.selectionMode.virtualized.modal.preventScroll.forceMount`.split(`.`),[`getAnchorRect`,`placement`,`gutter`,`shift`,`flip`,`slide`,`overlap`,`sameWidth`,`fitViewport`,`hideWhenDetached`,`detachedPadding`,`arrowPadding`,`overflowPadding`],Nu),[a,o]=A(),[s,c]=A(),[l,u]=A(),[d,f]=A(),[p,m]=A(),[h,g]=A(),[_,v]=A(),[y,b]=A(!0),x=e=>{let n=t.optionValue;return String(n==null?e:ti(n)?n(e):e[n])},S=N(()=>{let e=t.optionGroupChildren;return e==null?t.options:t.options.flatMap(t=>t[e]??t)}),C=N(()=>S().map(e=>x(e))),w=e=>[...e].map(e=>S().find(t=>x(t)===e)).filter(e=>e!=null),T=Na({open:()=>t.open,defaultOpen:()=>t.defaultOpen,onOpenChange:e=>t.onOpenChange?.(e)}),E=Ql({selectedKeys:()=>t.value==null?t.value:t.value.map(x),defaultSelectedKeys:()=>t.defaultValue==null?t.defaultValue:t.defaultValue.map(x),onSelectionChange:e=>{t.onChange?.(w(e)),t.closeOnSelection&&j()},allowDuplicateSelectionEvents:()=>q(t.allowDuplicateSelectionEvents),disallowEmptySelection:()=>q(t.disallowEmptySelection),selectionBehavior:()=>q(t.selectionBehavior),selectionMode:()=>t.selectionMode,dataSource:()=>t.options??[],getKey:()=>t.optionValue,getTextValue:()=>t.optionTextValue,getDisabled:()=>t.optionDisabled,getSectionChildren:()=>t.optionGroupChildren}),D=N(()=>w(E.selectionManager().selectedKeys())),O=e=>{E.selectionManager().toggleSelection(x(e))},{present:k}=io({show:()=>t.forceMount||T.isOpen(),element:()=>p()??null}),ee=()=>{let e=h();e&&xi(e)},te=e=>{if(t.options.length<=0)return;b(e),T.open();let n=E.selectionManager().firstSelectedKey();n??(e===`first`?n=E.collection().getFirstKey():e===`last`&&(n=E.collection().getLastKey())),ee(),E.selectionManager().setFocused(!0),E.selectionManager().setFocusedKey(n)},j=()=>{T.close(),E.selectionManager().setFocused(!1),E.selectionManager().setFocusedKey(void 0)},ne=e=>{T.isOpen()?j():te(e)},{formControlContext:re}=Pu(r);ad(d,()=>{let e=t.defaultValue?[...t.defaultValue].map(x):new Rl;E.selectionManager().setSelectedKeys(e)});let ie=Xo({usage:`search`,sensitivity:`base`}),P=N(()=>q(t.keyboardDelegate)||new Uu(E.collection,void 0,ie)),oe=e=>t.itemComponent?.({item:e}),F=e=>t.sectionComponent?.({section:e});M(ae([C],([e])=>{let t=[...E.selectionManager().selectedKeys()].filter(t=>e.includes(t));E.selectionManager().setSelectedKeys(t)},{defer:!0}));let se=N(()=>({"data-expanded":T.isOpen()?``:void 0,"data-closed":T.isOpen()?void 0:``})),ce={dataset:se,isOpen:T.isOpen,isDisabled:()=>re.isDisabled()??!1,isMultiple:()=>q(t.selectionMode)===`multiple`,isVirtualized:()=>t.virtualized??!1,isModal:()=>t.modal??!1,preventScroll:()=>t.preventScroll??ce.isModal(),disallowTypeAhead:()=>t.disallowTypeAhead??!1,shouldFocusWrap:()=>t.shouldFocusWrap??!1,selectedOptions:D,contentPresent:k,autoFocus:y,triggerRef:d,listState:()=>E,keyboardDelegate:P,triggerId:a,valueId:s,listboxId:l,listboxAriaLabelledBy:_,setListboxAriaLabelledBy:v,setTriggerRef:f,setContentRef:m,setListboxRef:g,open:te,close:j,toggle:ne,placeholder:()=>t.placeholder,renderItem:oe,renderSection:F,removeOptionFromSelection:O,generateId:ni(()=>q(r.id)),registerTriggerId:Ha(o),registerValueId:Ha(c),registerListboxId:Ha(u)};return z(Fu.Provider,{value:re,get children(){return z(ld.Provider,{value:ce,get children(){return z(sl,B({anchorRef:d,contentRef:p},n,{get children(){return z(Ea,B({as:`div`,role:`group`,get id(){return q(r.id)}},()=>re.dataset(),se,i))}}))}})}})}function vd(e){let[t,n]=V(e,[`value`,`defaultValue`,`onChange`,`multiple`]),r=N(()=>t.value==null||t.multiple?t.value:[t.value]),i=N(()=>t.defaultValue==null||t.multiple?t.defaultValue:[t.defaultValue]);return z(_d,B({get value(){return r()},get defaultValue(){return i()},onChange:e=>{e!==r()&&(t.multiple?t.onChange?.(e??[]):t.onChange?.(e[0]??null))},get selectionMode(){return t.multiple?`multiple`:`single`}},n))}function yd(e){let t=Iu(),n=ud(),[r,i,a]=V(Hi({id:n.generateId(`trigger`)},e),[`ref`,`disabled`,`onPointerDown`,`onClick`,`onKeyDown`,`onFocus`,`onBlur`],nd),o=()=>n.listState().selectionManager(),s=()=>n.keyboardDelegate(),c=()=>r.disabled||n.isDisabled(),{fieldProps:l}=rd(i),{typeSelectHandlers:u}=Gl({keyboardDelegate:s,selectionManager:o,onTypeSelect:e=>o().select(e)}),d=()=>[n.listboxAriaLabelledBy(),n.valueId()].filter(Boolean).join(` `)||void 0;return M(()=>F(n.registerTriggerId(l.id()))),M(()=>{n.setListboxAriaLabelledBy([l.ariaLabelledBy(),l.ariaLabel()&&!l.ariaLabelledBy()?l.id():null].filter(Boolean).join(` `)||void 0)}),z(Ba,B({ref(e){var t=Xr(n.setTriggerRef,r.ref);typeof t==`function`&&t(e)},get id(){return l.id()},get disabled(){return c()},"aria-haspopup":`listbox`,get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return U(()=>!!n.isOpen())()?n.listboxId():void 0},get"aria-label"(){return l.ariaLabel()},get"aria-labelledby"(){return d()},get"aria-describedby"(){return l.ariaDescribedBy()},onPointerDown:e=>{vi(e,r.onPointerDown),e.currentTarget.dataset.pointerType=e.pointerType,!c()&&e.pointerType!==`touch`&&e.button===0&&(e.preventDefault(),n.toggle(!0))},onClick:e=>{vi(e,r.onClick),!c()&&e.currentTarget.dataset.pointerType===`touch`&&n.toggle(!0)},onKeyDown:e=>{if(vi(e,r.onKeyDown),!c())switch(vi(e,u.onKeyDown),e.key){case`Enter`:case` `:case`ArrowDown`:e.stopPropagation(),e.preventDefault(),n.toggle(`first`);break;case`ArrowUp`:e.stopPropagation(),e.preventDefault(),n.toggle(`last`);break;case`ArrowLeft`:{if(e.preventDefault(),n.isMultiple())return;let t=o().firstSelectedKey(),r=t==null?s().getFirstKey?.():s().getKeyAbove?.(t);r!=null&&o().select(r);break}case`ArrowRight`:{if(e.preventDefault(),n.isMultiple())return;let t=o().firstSelectedKey(),r=t==null?s().getFirstKey?.():s().getKeyBelow?.(t);r!=null&&o().select(r);break}}},onFocus:e=>{vi(e,r.onFocus),!o().isFocused()&&o().setFocused(!0)},onBlur:e=>{vi(e,r.onBlur),!n.isOpen()&&o().setFocused(!1)}},()=>n.dataset(),()=>t.dataset(),a))}function bd(e){let t=Iu(),n=ud(),[r,i]=V(Hi({id:n.generateId(`value`)},e),[`id`,`children`]),a=()=>n.listState().selectionManager(),o=()=>{let e=a().selectedKeys();return e.size===1&&e.has(``)?!0:a().isEmpty()};return M(()=>F(n.registerValueId(r.id))),z(Ea,B({as:`span`,get id(){return r.id},get"data-placeholder-shown"(){return o()?``:void 0}},()=>t.dataset(),i,{get children(){return z(H,{get when(){return!o()},get fallback(){return n.placeholder()},get children(){return z(xd,{state:{selectedOption:()=>n.selectedOptions()[0],selectedOptions:()=>n.selectedOptions(),remove:e=>n.removeOptionFromSelection(e),clear:()=>a().clearSelection()},get children(){return r.children}})}})}}))}function xd(e){return U(pe(()=>{let t=e.children;return ti(t)?t(e.state):t}))}var Sd=Object.assign(vd,{Arrow:Qc,Content:dd,Description:Lu,ErrorMessage:cd,HiddenSelect:fd,Icon:pd,Item:Yu,ItemDescription:Xu,ItemIndicator:Zu,ItemLabel:Qu,Label:md,Listbox:hd,Portal:gd,Section:ed,Trigger:yd,Value:bd}),Cd=W(`<svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M11 9.5L8 6.5L5 9.5"stroke=currentColor stroke-width=1 stroke-linecap=round stroke-linejoin=round>`),wd=W(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M3.53564 8.17857L6.39279 11.75L12.4642 4.25"stroke=currentColor stroke-width=1 stroke-linecap=round stroke-linejoin=round>`),Td=W(`<div data-slot=select-v2-value>`),Ed=W(`<span data-slot=select-v2-chevron aria-hidden=true>`),Dd=W(`<div data-slot=menu-v2-group-label>`);function Od(e,t){if(!t)return[{category:``,options:e}];let n=new Map;for(let r of e){let e=t(r),i=n.get(e);i?i.push(r):n.set(e,[r])}return[...n.entries()].map(([e,t])=>({category:e,options:t}))}var kd=()=>Cd(),Ad=()=>wd();function jd(e){let[t,n]=V(e,[`class`,`classList`,`placeholder`,`options`,`current`,`value`,`label`,`groupBy`,`onSelect`,`onHighlight`,`onOpenChange`,`children`,`invalid`,`numeric`,`disabled`,`valueClass`,`contentClass`,`placement`,`gutter`,`sameWidth`,`flip`,`slide`,`fitViewport`]),r={},i=()=>{r.cleanup?.(),r.cleanup=void 0,r.key=void 0},a=e=>t.value?t.value(e):String(e),o=e=>{if(!t.onHighlight)return;if(!e){i();return}let n=a(e);r.key!==n&&(r.cleanup?.(),r.cleanup=t.onHighlight(e),r.key=n)};F(i);let s=N(()=>Od(t.options,t.groupBy));return z(vd,B(n,{multiple:!1,allowDuplicateSelectionEvents:!1,get disabled(){return t.disabled},"data-component":`select-v2-root`,get placement(){return t.placement??`bottom-end`},get gutter(){return t.gutter??4},get sameWidth(){return t.sameWidth??!1},get flip(){return t.flip??!0},get slide(){return t.slide??!0},get fitViewport(){return t.fitViewport??!1},get value(){return t.current},get options(){return s()},optionValue:e=>t.value?t.value(e):String(e),optionTextValue:e=>t.label?t.label(e):String(e),optionGroupChildren:`options`,get placeholder(){return t.placeholder},sectionComponent:e=>z(ed,{get children(){return z(H,{get when(){return e.section.rawValue.category},get children(){var t=Dd();return K(t,()=>e.section.rawValue.category),t}})}}),itemComponent:e=>z(Yu,B(e,{"data-component":`menu-v2-item`,onPointerEnter:()=>o(e.item.rawValue),onPointerMove:()=>o(e.item.rawValue),onFocus:()=>o(e.item.rawValue),get children(){return[z(Qu,{"data-slot":`menu-v2-item-content`,as:`span`,get children(){return U(()=>!!t.children)()?t.children(e.item.rawValue):U(()=>!!t.label)()?t.label(e.item.rawValue):String(e.item.rawValue)}}),z(Zu,{"data-slot":`menu-v2-item-indicator`,forceMount:!0,get children(){return z(Ad,{})}})]}})),onChange:e=>{let n=e==null?null:Array.isArray(e)?e[0]??null:e;t.onSelect?.(n),i()},onOpenChange:e=>{t.onOpenChange?.(e),e||i()},get children(){return[z(yd,{as:`div`,get"aria-label"(){return e[`aria-label`]},get"aria-labelledby"(){return e[`aria-labelledby`]},"data-component":`select-v2`,"data-appearance":`inline`,get"data-invalid"(){return t.invalid?``:void 0},get"data-numeric"(){return t.numeric?``:void 0},get disabled(){return t.disabled},get"data-disabled"(){return t.disabled?``:void 0},get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return[(()=>{var e=Td();return K(e,z(bd,{"data-slot":`select-v2-value-text`,get class(){return t.valueClass},children:e=>{let n=e.selectedOption();return t.label&&n!=null?t.label(n):n??``}})),e})(),(()=>{var e=Ed();return K(e,z(kd,{})),e})()]}}),z(gd,{get children(){return z(dd,{get class(){return t.contentClass},"data-component":`menu-v2-content`,"data-slot":`select-v2-content`,get children(){return z(hd,{"data-slot":`select-v2-listbox`})}})}})]}}))}var Md=`/assets/sprite-B9ixRF_T.svg`,Nd=`zhipuai.zhipuai-coding-plan.zenmux.zai.zai-coding-plan.xiaomi.xai.wandb.vultr.vivgrid.vercel.venice.v0.upstage.togetherai.synthetic.submodel.stepfun.stackit.siliconflow.siliconflow-cn.scaleway.sap-ai-core.requesty.qiniu-ai.qihang-ai.privatemode-ai.poe.perplexity.ovhcloud.openrouter.llmgateway.opencode.opencode-go.openai.ollama-cloud.nvidia.novita-ai.nova.nebius.nano-gpt.morph.moonshotai.moonshotai-cn.modelscope.moark.mistral.minimax.minimax-coding-plan.minimax-cn.minimax-cn-coding-plan.meganova.lucidquery.lmstudio.llama.kuae-cloud-coding-plan.kimi-for-coding.kilo.jiekou.io-net.inference.inception.iflowcn.huggingface.helicone.groq.google.google-vertex.google-vertex-anthropic.gitlab.github-models.github-copilot.friendli.firmware.fireworks-ai.fastrouter.evroc.digitalocean.deepseek.deepinfra.cortecs.cohere.cloudflare-workers-ai.cloudflare-ai-gateway.cloudferro-sherlock.chutes.cerebras.berget.baseten.bailing.azure.azure-cognitive-services.anthropic.amazon-bedrock.alibaba.alibaba-cn.aihubmix.abacus.302ai`.split(`.`),Pd=W(`<svg data-component=provider-icon><use>`),Fd=e=>{let[t,n]=V(e,[`id`,`class`,`classList`]),r=N(()=>Nd.includes(t.id)?t.id:`synthetic`);return(()=>{var e=Pd(),i=e.firstChild;return gt(e,B(n,{get classList(){return{...t.classList,[t.class??``]:!!t.class}}}),!0,!0),j(()=>G(i,`href`,`${Md}#${r()}`)),e})()};function Id(e){let t=e.filter(e=>Number.isFinite(e.start)&&(e.end===void 0||Number.isFinite(e.end)&&e.end>=e.start)).map(e=>({...e})).sort((e,t)=>e.start-t.start),n=[];for(let e of t){let t=n.at(-1);!t||e.start>(t.end??1/0)?n.push(e):t.end=t.end===void 0||e.end===void 0?void 0:Math.max(t.end,e.end)}return n}var Ld=(e,t)=>Id(e).reduce((e,n)=>e+Math.max(0,Math.min(n.end??t,t)-n.start),0),Rd=e=>{let t=e===void 0?NaN:Date.parse(e);return Number.isFinite(t)?t:void 0};function zd(e,t,n=!0){let r=typeof t==`number`?Number.isFinite(t)?t:void 0:Rd(t);return r!==void 0&&(!n||e-r>3e4)?Math.min(e,r):e}function Bd(e,t,n=[...new Set(t.map(e=>e.eval))],r=[]){let i=[...new Set(n)],a=i.filter(e=>r.includes(e)||!t.some(t=>t.eval===e)),o=t.length&&!a.length&&t.every(e=>e.value!==null)?i.reduce((e,n)=>{let r=t.filter(e=>e.eval===n);return e+r.reduce((e,t)=>e+t.value,0)/r.length},0):null,s=o===null?null:100*o/i.length;return{model:e,components:t,unscoredEvals:a,earned:o,maximum:i.length,percentage:s,bounds:s===null?Hd(t,i,a):{lower:s,upper:s,coverage:100}}}var Vd=e=>e.bounds;function Hd(e,t,n){if(!t.length)return{lower:0,upper:100,coverage:0};let r=0,i=n.length,a=0;for(let t of e){if(n.includes(t.eval))continue;let o=1/e.filter(e=>e.eval===t.eval).length;if(!t.expected){i+=o;continue}r+=o*t.scoredSum/t.expected,i+=o*(t.scoredSum+t.expected-t.scored)/t.expected,a+=o*t.scored/t.expected}let o=100/t.length;return{lower:r*o,upper:i*o,coverage:a*o}}var Ud=e=>{let t=e.reduce((e,t)=>e+(t?.reportedUSD??0),0),n=e.every(e=>e?.complete===!0);return{reportedUSD:t,complete:n,usd:n?t:null}},Wd=(e,t)=>Ld(e.runtime,t),Gd=e=>e.slice(e.indexOf(`/`)+1).split(`#`)[0].replace(/^omen-alpha$/i,`Omen Alpha`).replace(/^gpt-/i,`GPT-`).replace(/^gemini-/,`Gemini `).replace(/^grok-/,`Grok `).replace(/^deepseek-v(\d+)-pro-(\d+)$/,`DeepSeek V$1 Pro $2`).replace(/^deepseek-v4\.1-flash-expires-on-0910$/,`DeepSeek V4.1 Flash`).replace(/^glm-/,`GLM-`).replace(/^muse-spark-/,`Muse Spark `).replace(/^claude-fable-(\d+)-(\d+)$/,`Claude Fable $1.$2`).replace(/-astra$/,` Astra`).replace(/-luna$/,` Luna`).replace(/-pro-preview$/,` Pro Preview`).replace(/-flash$/,` Flash`),Kd=e=>/deepseek/.test(e)?`deepseek`:/glm/.test(e)?`zai`:/grok/.test(e)?`xai`:/gpt|o[134]-/.test(e)?`openai`:/gemini/.test(e)?`google`:/claude/.test(e)?`anthropic`:/muse|llama/.test(e)?`llama`:e.split(`/`)[0],qd=e=>e.split(`#`)[1]??`default`,Jd=e=>{let t=e.slice(e.indexOf(`/`)+1).split(`#`)[0].toLowerCase(),n=[[/^omen-/,`OpenCode Go`,`Omen`],[/^gemini-/,`Google`,`Gemini`],[/^gpt-/,`OpenAI`,`GPT`],[/^o\d(?:-|$)/,`OpenAI`,`o-series`],[/^claude-/,`Anthropic`,`Claude`],[/^muse-/,`Meta`,`Muse`],[/^llama-/,`Meta`,`Llama`],[/^deepseek-/,`DeepSeek`,`DeepSeek`],[/^glm-/,`Z.ai`,`GLM`],[/^grok-/,`xAI`,`Grok`],[/^qwen/,`Alibaba`,`Qwen`],[/^kimi/,`Moonshot AI`,`Kimi`],[/^(?:mistral|devstral|codestral|magistral)/,`Mistral AI`,`Mistral`],[/^minimax/,`MiniMax`,`MiniMax`]].find(([e])=>e.test(t));return{lab:n?.[1]??e.split(`/`)[0],family:n?.[2]??t.split(`-`)[0]}},Yd=(e,t)=>{if(!t.length)return!0;let n=Jd(e);return t.includes(`lab:${n.lab}`)||t.includes(`family:${n.family}`)},Xd=e=>e===null?`—`:Number(e.toFixed(2)).toString(),Zd=e=>e===null?`Pending`:`${Xd(e)}%`,Qd=e=>e==null?`—`:new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:4}).format(e),$d=e=>new Date(e).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}),ef=e=>{let t=Math.round(e/1e3);return t<60?`${(e/1e3).toFixed(1)}s`:t<3600?`${Math.floor(t/60)}m ${t%60}s`:`${Math.floor(t/3600)}h ${Math.floor(t/60)%60}m ${t%60}s`},tf=e=>({waiting:`Waiting`,watching:`Watching evidence`,stopped:`Stopped early`,blocked:`Blocked`,timed_out:`Timed out`,queued:`Queued`,in_progress:`In progress`,completed:`Completed`,failed:`Failed`,cancelled:`Cancelled`,interrupted:`Interrupted`})[e]??e,nf=W(`<div class=score-chart role=group aria-label="Model scores from zero to one hundred percent"><div class=chart-scale><span>Model</span><div></div><span>Score`),rf=W(`<span>%`),af=W(`<div class=chart-range>`),of=W(`<span class=chart-points>`),sf=W(`<div class=chart-model><button class=chart-row><div class=model-identity><span class=provider-mark></span><div><strong></strong><small></small></div></div><div class=chart-track aria-hidden=true><div class=chart-grid></div><div class=chart-bar></div></div><div class=chart-score><span>`),cf=W(`<i>`),lf=W(`<button class="chart-row criterion-row"><span class=criterion-name></span><div class=chart-track aria-hidden=true><div class=chart-bar></div><span class=chart-points></span></div><span class=criterion-score>`);function uf(e){let t=()=>[...e.scores].sort((e,t)=>Vd(t).lower-Vd(e).lower),n=e=>{let t=e.components.reduce((e,t)=>e+t.expected,0),n=e.components.reduce((e,t)=>e+t.scored,0);return t?new Set(e.components.map(e=>e.eval)).size>1?`${n}/${t} checks scored`:n===t&&e.components.every(e=>e.passed!==void 0)?`${e.components.reduce((e,t)=>e+t.passed,0)}/${t} passed`:`${e.components.every(e=>e.passed!==void 0)?`${e.components.reduce((e,t)=>e+t.passed,0)} passed · `:``}${n}/${t} scored`:``},r=e=>{let t=Vd(e);return t.upper-t.lower>1e-6?`${Xd(t.lower)}–${Zd(t.upper)}`:Zd(t.lower)};return(()=>{var i=nf(),a=i.firstChild.firstChild.nextSibling;return K(a,z(Ge,{each:[0,25,50,75,100],children:e=>(()=>{var t=rf(),n=t.firstChild;return K(t,e,n),t})()})),K(i,z(Ge,{get each(){return t()},children:t=>(()=>{var i=sf(),a=i.firstChild,o=a.firstChild,s=o.firstChild,c=s.nextSibling.firstChild,l=c.nextSibling,u=o.nextSibling,d=u.firstChild,f=d.nextSibling,p=u.nextSibling,m=p.firstChild;return a.$$click=()=>e.onSelect?.(t.model),K(s,z(Fd,{get id(){return Kd(t.model)}})),K(c,()=>Gd(t.model)),K(l,()=>qd(t.model)),K(d,z(Ge,{each:[0,25,50,75,100],children:e=>(()=>{var t=cf();return ht(t,`left`,`${e}%`),t})()})),K(u,z(H,{get when(){return Vd(t).upper>Vd(t).lower+1e-6},get children(){var e=af();return j(n=>{var r=`${Vd(t).lower}%`,i=`${Vd(t).upper-Vd(t).lower}%`;return r!==n.e&&ht(e,`left`,n.e=r),i!==n.t&&ht(e,`width`,n.t=i),n},{e:void 0,t:void 0}),e}}),null),K(u,z(H,{get when(){return!e.public},get children(){var e=of();return K(e,()=>n(t)),e}}),null),K(m,()=>r(t)),K(p,z(H,{get when(){return e.onSelect},get children(){return z(X,{name:`chevron-right`})}}),null),K(i,z(H,{get when(){return U(()=>!!e.criteria)()&&t.components.length>1},get children(){return z(Ge,{get each(){return t.components},children:n=>{let i=()=>Bd(t.model,[n]);return(()=>{var a=lf(),o=a.firstChild,s=o.nextSibling,c=s.firstChild,l=c.nextSibling,u=s.nextSibling;return a.$$click=()=>e.onSelect?.(t.model),K(o,()=>n.name??n.criterion),K(l,(()=>{var e=U(()=>n.scored===n.expected);return()=>e()?`${n.passed}/${n.expected} passed`:`${n.scored}/${n.expected} scored`})()),K(u,()=>r(i())),j(o=>{var s=!e.onSelect,l=`${Gd(t.model)}, ${n.name??n.criterion}, ${r(i())}`,u=`${Vd(i()).lower}%`;return s!==o.e&&(a.disabled=o.e=s),l!==o.t&&G(a,`aria-label`,o.t=l),u!==o.a&&ht(c,`width`,o.a=u),o},{e:void 0,t:void 0,a:void 0}),a})()}})}}),null),j(i=>{var o=`chart:${t.model}`,s=!!e.onSelect,c=!e.onSelect,l=`${Gd(t.model)}, ${r(t)}${e.public?``:`, ${n(t)}`}${e.onSelect?`, inspect eval run`:``}`,u=`Earned ${Zd(Vd(t).lower)}. Possible final score ${r(t)}.`,d=`${Vd(t).lower}%`,m=t.percentage===null;return o!==i.e&&G(a,`data-run-key`,i.e=o),s!==i.t&&a.classList.toggle(`inspectable`,i.t=s),c!==i.a&&(a.disabled=i.a=c),l!==i.o&&G(a,`aria-label`,i.o=l),u!==i.i&&G(a,`title`,i.i=u),d!==i.n&&ht(f,`width`,i.n=d),m!==i.s&&p.classList.toggle(`range`,i.s=m),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),i})()}),null),i})()}ct([`click`]);var df=hn({name:`FileComponent`,init:e=>e.component}),ff=df.provider,pf=df.use;function mf(e){if(!e)return;let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function hf(e,t=5e5){if(!e)return;if(e.length<=t)return mf(e);let n=4096;return`${e.length}:${[0,Math.floor(e.length*.25),Math.floor(e.length*.5),Math.floor(e.length*.75),e.length-n].map(t=>{let r=Math.max(0,Math.min(e.length-n,t-2048));return mf(e.slice(r,r+n))??``}).join(`:`)}`}var gf=`diffs-container`,_f=/(?=^From [a-f0-9]+ .+$)/m,vf=/(?=^diff --git)/gm,yf=/(?<=\n)/,bf=/^(---|\+\+\+)\s+([^\t\r\n]+)/,xf=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Sf=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,Cf=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,wf=`header-prefix`,Tf=`header-metadata`,Ef=`header-custom`,Df={dark:`pierre-dark`,light:`pierre-light`},Of=`data-theme-css`,kf=`data-unsafe-css`,Af=`data-diffs-scrollbar-measure`,jf=`--diffs-scrollbar-gutter-measured`,Mf=1e5,Nf={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8};({...Nf});var Pf=Object.freeze({fromStart:0,fromEnd:0}),Ff={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},If={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},Lf=new Set,Rf=null;function zf(e){Lf.add(e),Rf??=requestAnimationFrame(Bf)}function Bf(e){let t=new Set(Lf);Lf.clear();for(let n of t)try{n(e)}catch(e){console.error(e)}Rf=Lf.size>0?requestAnimationFrame(Bf):null}function Vf(e,t,n){if(e===t||e==null||t==null)return e===t;let r=new Set(n),i=Object.keys(e),a=new Set(Object.keys(t));for(let n of i)if(a.delete(n),!r.has(n)&&(!(n in t)||e[n]!==t[n]))return!1;for(let e of Array.from(a))if(!r.has(e))return!1;return!0}function Hf(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}function Uf(e,t){let n=e?.theme??Df,r=t?.theme??Df,i=Wf(e),a=Wf(t);return Hf(n,r)&&Vf(e,t,[`theme`,`parseDiffOptions`])&&Vf(i,a)}function Wf(e){if(e!=null&&`parseDiffOptions`in e)return e.parseDiffOptions}function Gf(e,t){return e?.start===t?.start&&e?.end===t?.end&&e?.side===t?.side&&e?.endSide===t?.endSide}function Kf({scrollTop:e,scrollHeight:t,height:n,fitPerfectly:r=!1,fitPerfectlyOverscroll:i=0,overscrollSize:a}){let o=n+a*2,s=r?n+i*2:o;if(t=Math.max(t,s),o>=t||r){let n=Math.max(e-i,0),r=Math.min(e+s,t);return{top:n,bottom:Math.max(r,n)}}let c=e+n/2-o/2,l=c+o;return c<0&&(c=0),l>t&&(l=t),c=Math.floor(Math.max(c,0)),{top:c,bottom:Math.ceil(Math.max(Math.min(l,t),c))}}function qf(e){return{type:`text`,value:e}}function Jf({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function Yf({name:e,width:t=16,height:n=16,properties:r}){return Jf({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[Jf({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function Xf(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t;t=`children`in t?t.children[0]:null}}function Zf(e){return Jf({tagName:`div`,properties:{"data-gutter":``},children:e})}function Qf(e,t,n,r={}){return Jf({tagName:`div`,properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...r},children:t==null?void 0:[Jf({tagName:`span`,properties:{"data-line-number-content":``},children:[qf(`${t}`)]})]})}function $f(e,t,n){return Jf({tagName:`div`,properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t===`annotation`?void 0:e,style:t===`annotation`?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function ep(){return Jf({tagName:`button`,properties:{"data-utility-button":``,type:`button`},children:[Yf({name:`diffs-icon-plus`,properties:{"data-icon":``}})]})}function tp(e,t){return e.lineNumber===t.lineNumber&&e.side===t.side}var np=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],rp=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};rp.prototype.normal={},rp.prototype.property={},rp.prototype.space=void 0;function ip(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new rp(n,r,t)}function ap(e){return e.toLowerCase()}var op=class{constructor(e,t){this.attribute=t,this.property=e}};op.prototype.attribute=``,op.prototype.booleanish=!1,op.prototype.boolean=!1,op.prototype.commaOrSpaceSeparated=!1,op.prototype.commaSeparated=!1,op.prototype.defined=!1,op.prototype.mustUseProperty=!1,op.prototype.number=!1,op.prototype.overloadedBoolean=!1,op.prototype.property=``,op.prototype.spaceSeparated=!1,op.prototype.space=void 0;var sp=s({boolean:()=>Z,booleanish:()=>lp,commaOrSpaceSeparated:()=>pp,commaSeparated:()=>fp,number:()=>Q,overloadedBoolean:()=>up,spaceSeparated:()=>dp}),cp=0,Z=mp(),lp=mp(),up=mp(),Q=mp(),dp=mp(),fp=mp(),pp=mp();function mp(){return 2**++cp}var hp=Object.keys(sp),gp=class extends op{constructor(e,t,n,r){let i=-1;if(super(e,t),_p(this,`space`,r),typeof n==`number`)for(;++i<hp.length;){let e=hp[i];_p(this,hp[i],(n&sp[e])===sp[e])}}};gp.prototype.defined=!0;function _p(e,t,n){n&&(e[t]=n)}function vp(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new gp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ap(r)]=r,n[ap(a.attribute)]=r}return new rp(t,n,e.space)}var yp=vp({properties:{ariaActiveDescendant:null,ariaAtomic:lp,ariaAutoComplete:null,ariaBusy:lp,ariaChecked:lp,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:dp,ariaCurrent:null,ariaDescribedBy:dp,ariaDetails:null,ariaDisabled:lp,ariaDropEffect:dp,ariaErrorMessage:null,ariaExpanded:lp,ariaFlowTo:dp,ariaGrabbed:lp,ariaHasPopup:null,ariaHidden:lp,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dp,ariaLevel:Q,ariaLive:null,ariaModal:lp,ariaMultiLine:lp,ariaMultiSelectable:lp,ariaOrientation:null,ariaOwns:dp,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:lp,ariaReadOnly:lp,ariaRelevant:null,ariaRequired:lp,ariaRoleDescription:dp,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:lp,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function bp(e,t){return t in e?e[t]:t}function xp(e,t){return bp(e,t.toLowerCase())}var Sp=vp({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:fp,acceptCharset:dp,accessKey:dp,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alpha:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:dp,autoFocus:Z,autoPlay:Z,blocking:dp,capture:null,charSet:null,checked:Z,cite:null,className:dp,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:lp,controls:Z,controlsList:dp,coords:Q|fp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:up,draggable:lp,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:dp,height:Q,hidden:up,high:Q,href:null,hrefLang:null,htmlFor:dp,httpEquiv:dp,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:dp,itemRef:dp,itemScope:Z,itemType:dp,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:Q,pattern:null,ping:dp,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:dp,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:dp,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootCustomElementRegistry:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shadowRootSerializable:Z,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:lp,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:lp,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dp,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:lp,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Z,disablePictureInPicture:Z,disableRemotePlayback:Z,exportParts:fp,part:dp,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:xp}),Cp=vp({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:pp,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:dp,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fp,g2:fp,glyphName:fp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:pp,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dp,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pp,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pp,rev:pp,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pp,requiredFeatures:pp,requiredFonts:pp,requiredFormats:pp,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:pp,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pp,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pp,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:bp}),wp=vp({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Tp=vp({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:xp}),Ep=vp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Dp=/[A-Z]/g,Op=/-[a-z]/g,kp=/^data[-\w.:]+$/i;function Ap(e,t){let n=ap(t),r=t,i=op;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&kp.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Op,Mp);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Op.test(e)){let n=e.replace(Dp,jp);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=gp}return new i(r,t)}function jp(e){return`-`+e.toLowerCase()}function Mp(e){return e.charAt(1).toUpperCase()}var Np=ip([yp,Sp,wp,Tp,Ep],`html`),Pp=ip([yp,Cp,wp,Tp,Ep],`svg`),Fp={}.hasOwnProperty;function Ip(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Fp.call(t,e)){let n=String(t[e]);i=Fp.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Lp=/["&'<>`]/g,Rp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zp=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Bp=/[|\\{}()[\]^$+*?.]/g,Vp=new WeakMap;function Hp(e,t){if(e=e.replace(t.subset?Up(t.subset):Lp,r),t.subset||t.escapeOnly)return e;return e.replace(Rp,n).replace(zp,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Up(e){let t=Vp.get(e);return t||(t=Wp(e),Vp.set(e,t)),t}function Wp(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Bp,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Gp=/[\dA-Fa-f]/;function Kp(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Gp.test(String.fromCharCode(t))?r:r+`;`}var qp=/\d/;function Jp(e,t,n){let r=`&#`+String(e);return n&&t&&!qp.test(String.fromCharCode(t))?r:r+`;`}var Yp=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Xp={nbsp:`\xA0`,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:`€`},Zp=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],Qp={}.hasOwnProperty,$p={},em;for(em in Xp)Qp.call(Xp,em)&&($p[Xp[em]]=em);var tm=/[^\dA-Za-z]/;function nm(e,t,n,r){let i=String.fromCharCode(e);if(Qp.call($p,i)){let e=$p[i],a=`&`+e;return n&&Yp.includes(e)&&!Zp.includes(e)&&(!r||t&&t!==61&&tm.test(String.fromCharCode(t)))?a:a+`;`}return``}function rm(e,t,n){let r=Kp(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=nm(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Jp(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function im(e,t){return Hp(e,Object.assign({format:rm},t))}var am=/^>|^->|<!--|-->|--!>|<!-$/g,om=[`>`],sm=[`<`,`>`];function cm(e,t,n,r){return r.settings.bogusComments?`<?`+im(e.value,Object.assign({},r.settings.characterReferences,{subset:om}))+`>`:`<!--`+e.value.replace(am,i)+`-->`;function i(e){return im(e,Object.assign({},r.settings.characterReferences,{subset:sm}))}}function lm(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function um(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function dm(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function fm(e){return e.join(` `).trim()}var pm=/[ \t\n\f\r]/g;function mm(e){return typeof e==`object`?e.type===`text`&&hm(e.value):hm(e)}function hm(e){return e.replace(pm,``)===``}var gm=ym(1),_m=ym(-1),vm=[];function ym(e){return t;function t(t,n,r){let i=t?t.children:vm,a=(n||0)+e,o=i[a];if(!r)for(;o&&mm(o);)a+=e,o=i[a];return o}}var bm={}.hasOwnProperty;function xm(e){return t;function t(t,n,r){return bm.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Sm=xm({body:Tm,caption:Cm,colgroup:Cm,dd:km,dt:Om,head:Cm,html:wm,li:Dm,optgroup:jm,option:Mm,p:Em,rp:Am,rt:Am,tbody:Pm,td:Lm,tfoot:Fm,th:Lm,thead:Nm,tr:Im});function Cm(e,t,n){let r=gm(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&mm(r.value.charAt(0)))}function wm(e,t,n){let r=gm(n,t);return!r||r.type!==`comment`}function Tm(e,t,n){let r=gm(n,t);return!r||r.type!==`comment`}function Em(e,t,n){let r=gm(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.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 Dm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Om(e,t,n){let r=gm(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function km(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function Am(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function jm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function Mm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Nm(e,t,n){let r=gm(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function Pm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function Fm(e,t,n){return!gm(n,t)}function Im(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Lm(e,t,n){let r=gm(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var Rm=xm({body:Vm,colgroup:Hm,head:Bm,html:zm,tbody:Um});function zm(e){let t=gm(e,-1);return!t||t.type!==`comment`}function Bm(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function Vm(e){let t=gm(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&mm(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function Hm(e,t,n){let r=_m(n,t),i=gm(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Sm(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Um(e,t,n){let r=_m(n,t),i=gm(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Sm(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Wm={name:[[`
17
17
  \f\r &/=>`.split(``),`
18
18
  \f\r "&'/=>\``.split(``)],[`\0
19
19
  \f\r "&'/<=>`.split(``),`\0
@@ -21,7 +21,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
21
21
  \f\r &>`.split(``),`\0
22
22
  \f\r "&'<=>\``.split(``)],[`\0
23
23
  \f\r "&'<=>\``.split(``),`\0
24
- \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function Gm(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Pp);let l=Km(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!Rm(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!Sm(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function Km(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=qm(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function qm(e,t,n){let r=Ap(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=im(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Wm.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?dm:fm)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=im(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Wm.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&um(n,o)>um(n,e.alternative)&&(o=e.alternative),s=o+im(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?Wm.single:Wm.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var Jm=[`<`,`&`];function Ym(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:im(e.value,Object.assign({},r.settings.characterReferences,{subset:Jm}))}function Xm(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Ym(e,t,n,r)}function Zm(e,t,n,r){return r.all(e)}var Qm=Ip(`type`,{invalid:$m,unknown:eh,handlers:{comment:cm,doctype:lm,element:Gm,raw:Xm,root:Zm,text:Ym}});function $m(e){throw Error("Expected node, not `"+e+"`")}function eh(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var th={},nh={},rh=[];function ih(e,t){let n=t||th,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ah,all:oh,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||np,characterReferences:n.characterReferences||nh,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Pp:Np,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function ah(e,t,n){return Qm(e,t,n,this)}function oh(e){let t=[],n=e&&e.children||rh,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var sh=class{hoveredLine;hoveredToken;pre;gutterUtilityLine;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;proposedSelectedRange;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:`idle`};constructor(e,t){this.mode=e,this.options=t}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener(`click`,this.handlePointerClick),this.pre?.removeEventListener(`pointerdown`,this.handlePointerDown),this.pre?.removeEventListener(`pointermove`,this.handlePointerMove),this.pre?.removeEventListener(`pointerleave`,this.handlePointerLeave),this.pre?.removeAttribute(`data-interactive-lines`),this.pre?.removeAttribute(`data-interactive-line-numbers`),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(e){this.setSelectionDirty();let{usesCustomGutterUtility:t=!1,enableGutterUtility:n=!1}=this.options;this.pre!==e&&(this.cleanUp(),this.pre=e),n?this.ensureGutterUtilityNode(t):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode===`gutterSelecting`&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(e),this.updateInteractiveLineAttributes(),this.renderSelection(),this.placeUtility()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(e,t){let n=!(e===this.selectedRange||Gf(e??void 0,this.selectedRange??void 0));(this.isSelectionDirty()||n)&&(this.proposedSelectedRange=void 0,this.selectedRange=e,this.renderSelection(),this.placeUtility(),n&&t?.notify!==!1&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{let e=this.gutterUtilityLine??this.hoveredLine;if(e!=null){if(this.mode===`diff`&&e.type===`diff-line`)return{lineNumber:e.lineNumber,side:e.annotationSide};if(this.mode===`file`&&e.type===`line`)return{lineNumber:e.lineNumber}}};handlePointerClick=e=>{let{onHunkExpand:t,onLineClick:n,onLineNumberClick:r,onTokenClick:i,onMergeConflictActionClick:a}=this.options;(t!=null||n!=null||r!=null||a!=null||i!=null)&&(this.options.onGutterUtilityClick!=null&&wh(e.composedPath())||(Th(this.options.__debugPointerEvents,`click`,`FileDiff.DEBUG.handlePointerClick:`,e),this.handlePointerEvent({eventType:`click`,event:e})))};handlePointerMove=e=>{if(e.pointerType!==`mouse`)return;let{lineHoverHighlight:t=`disabled`,onLineEnter:n,onLineLeave:r,onTokenEnter:i,onTokenLeave:a,enableGutterUtility:o=!1}=this.options;(t!==`disabled`||o||n!=null||r!=null||i!=null||a!=null)&&(Th(this.options.__debugPointerEvents,`move`,`FileDiff.DEBUG.handlePointerMove:`,e),this.handlePointerEvent({eventType:`move`,event:e}))};handlePointerLeave=e=>{let{__debugPointerEvents:t}=this.options;if(Th(t,`move`,`FileDiff.DEBUG.handlePointerLeave: no event`),this.hoveredLine==null&&this.hoveredToken==null){Th(t,`move`,`FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token`);return}this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,e),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),this.placeUtility()};handlePointerEvent({eventType:e,event:t}){let{__debugPointerEvents:n}=this.options,r=t.composedPath();Th(n,e,`FileDiff.DEBUG.handlePointerEvent:`,{eventType:e,composedPath:r});let i=this.resolvePointerTarget(r);Th(n,e,`FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:`,i);let{onLineClick:a,onLineNumberClick:o,onLineEnter:s,onLineLeave:c,onTokenClick:l,onTokenEnter:u,onTokenLeave:d,onHunkExpand:f,onMergeConflictActionClick:p}=this.options;switch(e){case`move`:{let e=fh(i)&&this.hoveredLine?.lineElement===i.lineElement;dh(i)&&this.hoveredToken?.tokenElement===i.tokenElement||(this.hoveredToken!=null&&(d?.(this.hoveredToken,t),this.clearHoveredToken()),dh(i)&&(this.setHoveredToken(this.toTokenEventBaseProps(i)),u?.(this.hoveredToken,t))),e||(this.hoveredLine!=null&&(c?.({...this.hoveredLine,event:t}),this.clearHoveredLine()),fh(i)?(this.setHoveredLine(this.toEventBaseProps(i)),this.placeUtility(),s?.({...this.hoveredLine,event:t})):this.placeUtility());break}case`click`:{if(i==null)break;if(mh(i)&&p!=null){p(i);break}if(ph(i)&&f!=null){f(i.hunkIndex,i.all||t.shiftKey?`both`:i.direction,i.all||t.shiftKey?1/0:void 0);break}if(!fh(i))break;dh(i)&&l!=null&&l(this.toTokenEventBaseProps(i),t);let e=this.toEventBaseProps(i);o!=null&&i.numberColumn?o({...e,event:t}):a?.({...e,event:t});break}}}syncPointerListeners(e){let{__debugPointerEvents:t,lineHoverHighlight:n=`disabled`,onLineClick:r,onLineNumberClick:i,onLineEnter:a,onLineLeave:o,onTokenClick:s,onTokenEnter:c,onTokenLeave:l,onHunkExpand:u,onMergeConflictActionClick:d,enableGutterUtility:f=!1,enableLineSelection:p=!1,onGutterUtilityClick:m}=this.options,h=m!=null,g=n!==`disabled`||r!=null||i!=null||a!=null||o!=null||s!=null||c!=null||l!=null||u!=null||d!=null||f||p||h;g&&!this.hasPointerListeners?(e.addEventListener(`click`,this.handlePointerClick),e.addEventListener(`pointerdown`,this.handlePointerDown),e.addEventListener(`pointermove`,this.handlePointerMove),e.addEventListener(`pointerleave`,this.handlePointerLeave),this.hasPointerListeners=!0,Th(t,`click`,`FileDiff.DEBUG.attachEventListeners: Attaching click events for:`,(()=>{let e=[];return(t===`both`||t===`click`)&&(r!=null&&e.push(`onLineClick`),i!=null&&e.push(`onLineNumberClick`),u!=null&&e.push(`expandable hunk separators`),d!=null&&e.push(`merge conflict actions`)),e})()),Th(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer move event`),Th(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event`)):!g&&this.hasPointerListeners&&(e.removeEventListener(`click`,this.handlePointerClick),e.removeEventListener(`pointerdown`,this.handlePointerDown),e.removeEventListener(`pointermove`,this.handlePointerMove),e.removeEventListener(`pointerleave`,this.handlePointerLeave),this.hasPointerListeners=!1);let _=this.pointerSession.mode===`selecting`||this.pointerSession.mode===`pendingSingleLineUnselect`,v=this.pointerSession.mode===`gutterSelecting`;(!p&&_||!h&&v)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;let{onLineClick:e,onLineNumberClick:t,enableLineSelection:n=!1}=this.options,r=e!=null,i=t!=null||n;r&&!this.interactiveLinesAttr?(this.pre.setAttribute(`data-interactive-lines`,``),this.interactiveLinesAttr=!0):!r&&this.interactiveLinesAttr&&(this.pre.removeAttribute(`data-interactive-lines`),this.interactiveLinesAttr=!1),i&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute(`data-interactive-line-numbers`,``),this.interactiveLineNumbersAttr=!0):!i&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute(`data-interactive-line-numbers`),this.interactiveLineNumbersAttr=!1)}handlePointerDown=e=>{if(e.pointerType===`mouse`&&e.button!==0||this.pre==null||this.pointerSession.mode!==`idle`)return;let t=e.composedPath();wh(t)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(e):(e.pointerType!==`mouse`&&this.revealUtilityFromGutterPath(t),this.startLineSelectionFromPointerDown(e))};startLineSelectionFromPointerDown(e){let{enableLineSelection:t=!1}=this.options;if(!t)return;let n=this.resolveSelectionInfo(e,{source:`event-path`,requireNumberColumn:!0});if(n==null)return;let{pre:r}=this;if(r==null)return;e.preventDefault();let{lineNumber:i,eventSide:a,lineIndex:o}=n;if(e.shiftKey&&this.selectedRange!=null){let t=this.getIndexesFromSelection(this.selectedRange,r.getAttribute(`data-diff-type`)===`split`);if(t==null)return;let n=t.start<=t.end?o>=t.start:o<=t.end;this.selectionAnchor={lineNumber:n?this.selectedRange.start:this.selectedRange.end,side:n?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(i,a,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:`selecting`,pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===i&&this.selectedRange?.end===i){let t={lineNumber:i,side:a};this.selectionAnchor=t,this.pointerSession={mode:`pendingSingleLineUnselect`,pointerId:e.pointerId,anchor:t,pending:t},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:i,side:a},this.updateSelection(i,a,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:`selecting`,pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e){let{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;if(n==null)return;let r=this.currentSelectionEnds(),i=r?.bottom??this.resolveSelectionPoint(e,{source:`event-path`,excludeUtility:!1}),a=r?.top??i;i!=null&&a!=null&&(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:`gutterSelecting`,pointerId:e.pointerId,anchor:a,current:i},t&&(this.selectionAnchor={lineNumber:a.lineNumber,side:a.side},this.updateSelection(i.lineNumber,i.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange())),this.attachDocumentPointerListeners())}handleDocumentPointerMove=e=>{let{enableLineSelection:t=!1}=this.options;switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let n=this.resolveSelectionPoint(e,{source:`coordinates-first`});if(n==null)return;this.pointerSession.current=n,t===!0&&this.updateSelection(n.lineNumber,n.side);return}case`selecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let t=this.resolveSelectionInfo(e,{source:`coordinates-first`,requireNumberColumn:!1});if(t==null||this.selectionAnchor==null)return;this.updateSelection(t.lineNumber,t.eventSide);return}case`pendingSingleLineUnselect`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let t=this.resolveSelectionInfo(e,{source:`coordinates-first`,requireNumberColumn:!1});if(t==null||this.selectionAnchor==null)return;let n={lineNumber:t.lineNumber,side:t.eventSide};if(tp(this.pointerSession.pending,n))return;this.updateSelection(t.lineNumber,t.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:`selecting`,pointerId:e.pointerId};return}}};handleDocumentPointerUp=e=>{let{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let r=this.resolveSelectionPoint(e,{source:`coordinates-first`});r!=null&&(this.pointerSession.current=r,t&&this.updateSelection(r.lineNumber,r.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,t&&(this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case`pendingSingleLineUnselect`:if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection();return;case`selecting`:if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()}};handleDocumentPointerCancel=e=>{switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:case`selecting`:case`pendingSingleLineUnselect`:if(`pointerId`in this.pointerSession&&e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute(`data-hovered`),this.hoveredLine.numberElement.removeAttribute(`data-hovered`),this.hoveredLine=void 0)}setHoveredLine(e){let{lineHoverHighlight:t=`disabled`}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=e,t!==`disabled`&&((t===`both`||t===`line`)&&this.hoveredLine.lineElement.setAttribute(`data-hovered`,``),(t===`both`||t===`number`)&&this.hoveredLine.numberElement.setAttribute(`data-hovered`,``))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(e){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=e}ensureGutterUtilityNode(e){if(this.gutterUtilityContainer??(this.gutterUtilityContainer=document.createElement(`div`),this.gutterUtilityContainer.setAttribute(`data-gutter-utility-slot`,``)),e)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot??(this.gutterUtilitySlot=document.createElement(`slot`),this.gutterUtilitySlot.name=`gutter-utility-slot`),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){let e=document.createElement(`div`);e.innerHTML=ih(ep());let t=e.firstElementChild;if(!(t instanceof HTMLButtonElement))throw Error(`InteractionManager.ensureGutterUtilityNode: Node element should be a button`);t.remove(),this.gutterUtilityButton=t}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(e){if(this.placeUtilityFromSelection())return;let t=this.resolvePointerTarget(e);uh(t)&&t.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(t))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){let e=this.currentSelectionEnds();if(e==null)return!1;let t=this.targetForSelectionPoint(e.bottom);return t==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(t)),!0}showUtilityOnLine(e){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=e,e.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){let e=this.getCurrentSelectionRange();return e==null?void 0:this.selectionEnds(e)}selectionEnds(e){let t={lineNumber:e.start,side:e.side},n={lineNumber:e.end,side:e.endSide??e.side},r=this.selectionPointRowIndex(t),i=this.selectionPointRowIndex(n);if(r!=null&&i!=null)return r>i?{top:n,bottom:t}:{top:t,bottom:n}}selectionPointRowIndex(e){let t=this.getLineIndex(e.lineNumber,e.side);if(t!=null)return this.isSplitDiff()?t[1]:t[0]}targetForSelectionPoint(e){if(this.pre==null)return;let t=this.getLineIndex(e.lineNumber,e.side);if(t==null)return;let n=this.mode===`diff`?`${t[0]},${t[1]}`:`${t[0]}`,r=this.pre.querySelectorAll(`[data-column-number="${e.lineNumber}"][data-line-index="${n}"]`);for(let t of r){if(!(t instanceof HTMLElement))continue;let n=this.resolvePointerTarget(_h(t));if(uh(n)&&(this.mode!==`diff`||e.side==null||n.side===e.side))return n}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||=(document.addEventListener(`pointermove`,this.handleDocumentPointerMove),document.addEventListener(`pointerup`,this.handleDocumentPointerUp),document.addEventListener(`pointercancel`,this.handleDocumentPointerCancel),!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&=(document.removeEventListener(`pointermove`,this.handleDocumentPointerMove),document.removeEventListener(`pointerup`,this.handleDocumentPointerUp),document.removeEventListener(`pointercancel`,this.handleDocumentPointerCancel),!1)}clearPointerSession(){this.pointerSession={mode:`idle`}}clearPendingSingleLineState(){this.pointerSession.mode===`pendingSingleLineUnselect`&&(this.pointerSession={mode:`idle`})}selectionInfoFromPath(e,t){let n=this.resolvePointerTarget(e);if(uh(n)&&(!t||n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode===`diff`?n.side:void 0}}resolveSelectionInfo(e,t){let n=this.resolveSelectionPath(e,t);return n==null?void 0:this.selectionInfoFromPath(n,t.requireNumberColumn)}selectionPointFromPath(e){let t=this.resolvePointerTarget(e);if(uh(t))return{lineNumber:t.lineNumber,side:this.mode===`diff`?t.side:void 0}}resolveSelectionPoint(e,t){let n=this.resolveSelectionPath(e,t);return n==null?void 0:this.selectionPointFromPath(n)}resolveSelectionPath(e,t){let n=t.excludeUtility!==!1;switch(t.source){case`event-path`:return this.pathFromEventPath(e.composedPath(),n);case`coordinates-first`:{let t=this.pathFromCoordinates(e,n);return t===void 0?this.pathFromEventPath(e.composedPath(),n):t??void 0}}}pathFromCoordinates(e,t){let n=this.hitTest(e);if(n!==void 0)return n===null?null:this.pathFromElement(n,t)??null}pathFromEventPath(e,t){if(!(t&&wh(e))){for(let n of e)if(n instanceof Element)return this.pathFromElement(n,t)}}pathFromElement(e,t){let n=_h(e);if(t&&wh(n))return;let r=vh(e);return r==null?this.pathFromAnnotationSlot(e):_h(r)}pathFromAnnotationSlot(e){let t=bh(yh(e));if(t==null)return;let n=this.targetForSelectionPoint(t);return n==null?void 0:_h(n.lineElement)}hitTest(e){if(!Number.isFinite(e.clientX)||!Number.isFinite(e.clientY))return;let t=this.pre?.getRootNode(),n=xh(t)?t:xh(document)?document:void 0;if(n!=null)return n.elementFromPoint(e.clientX,e.clientY)}getLineIndex(e,t){let{getLineIndex:n}=this.options;return n==null?[e-1,e-1]:n(e,t)}getCurrentSelectionRange(){return this.proposedSelectedRange===void 0?this.selectedRange:this.proposedSelectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(e,t,n=!0){let r=this.getCurrentSelectionRange(),i;if(e==null)i=null;else{let n=this.selectionAnchor?.side??t,r=this.selectionAnchor?.lineNumber??e;i=this.buildSelectionRange(r,e,n,t)}Gf(r??void 0,i??void 0)||(this.options.controlledSelection===!0?this.proposedSelectedRange=i:(this.selectedRange=i,this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection)),this.placeUtility(),n&&this.notifySelectionChangeDelta())}getIndexesFromSelection(e,t){if(this.pre==null)return;let n=this.getLineIndex(e.start,e.side),r=this.getLineIndex(e.end,e.endSide??e.side);return n!=null&&r!=null?{start:t?n[1]:n[0],end:t?r[1]:r[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;let e=this.pre.querySelectorAll(`[data-selected-line]`);for(let t of e)t.removeAttribute(`data-selected-line`);if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;let{children:t}=this.pre;if(t.length===0)return;if(t.length>2)throw console.error(t),Error(`InteractionManager.renderSelection: Somehow there are more than 2 code elements...`);let n=this.pre.getAttribute(`data-diff-type`)===`split`,r=this.getIndexesFromSelection(this.selectedRange,n);if(r==null)throw console.error({rowRange:r,selectedRange:this.selectedRange}),Error(`InteractionManager.renderSelection: No valid rowRange`);let i=r.start===r.end,a=Math.min(r.start,r.end),o=Math.max(r.start,r.end);for(let e of t){let[t,r]=e.children,s=r.children.length;if(s!==t.children.length)throw Error(`InteractionManager.renderSelection: gutter and content children dont match, something is wrong`);for(let e=0;e<s;e++){let s=r.children[e],c=t.children[e];if(!(s instanceof HTMLElement)||!(c instanceof HTMLElement))continue;let l=this.parseLineIndex(s,n);if((l??0)>o)break;if(l==null||l<a)continue;let u=i?`single`:l===a?`first`:l===o?`last`:``;s.setAttribute(`data-selected-line`,u),c.setAttribute(`data-selected-line`,u),c.nextSibling instanceof HTMLElement&&s.nextSibling instanceof HTMLElement&&(s.nextSibling.hasAttribute(`data-line-annotation`)||s.nextSibling.hasAttribute(`data-merge-conflict-actions`))&&(i?(u=`last`,s.setAttribute(`data-selected-line`,`first`)):l===a?u=``:l===o&&s.setAttribute(`data-selected-line`,``),s.nextSibling.setAttribute(`data-selected-line`,u),c.nextSibling.setAttribute(`data-selected-line`,u))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.getCurrentSelectionRange()??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.getCurrentSelectionRange()??null)}notifySelectionStart(e){this.options.onLineSelectionStart?.(e)}notifySelectionEnd(e){this.options.onLineSelectionEnd?.(e)}toEventBaseProps(e){return this.mode===`file`?{type:`line`,lineElement:e.lineElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn,numberElement:e.numberElement}:{type:`diff-line`,annotationSide:e.side,lineType:e.lineType,lineElement:e.lineElement,numberElement:e.numberElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn}}toTokenEventBaseProps({lineCharEnd:e,lineCharStart:t,lineNumber:n,side:r,tokenElement:i,tokenText:a}){return this.mode===`file`?{type:`token`,lineCharEnd:e,lineCharStart:t,lineNumber:n,tokenElement:i,tokenText:a}:{type:`token`,lineCharEnd:e,lineCharStart:t,lineNumber:n,side:r,tokenElement:i,tokenText:a}}buildSelectedLineRange(e,t){return this.buildSelectionRange(e.lineNumber,t.lineNumber,e.side,t.side)}buildSelectionRange(e,t,n,r){return{start:e,end:t,...n==null?{}:{side:n},...n!==r&&r!=null?{endSide:r}:{}}}resolvePointerTarget(e){let t=!1,n,r,i,a,o,s,c,l,u,d;for(let f of e){if(!(f instanceof HTMLElement))continue;if(d==null&&f.hasAttribute(`data-merge-conflict-action`)){let e=f.getAttribute(`data-merge-conflict-action`)??void 0,t=f.getAttribute(`data-merge-conflict-conflict-index`)??void 0,n=t==null?NaN:Number.parseInt(t,10);hh(e)&&Number.isFinite(n)&&(d={kind:`merge-conflict-action`,resolution:e,conflictIndex:n})}if(s==null&&f.hasAttribute(`data-char`)){s=f;let e=f.getAttribute(`data-char`);if(e!=null){let t=Number.parseInt(e,10);if(!Number.isNaN(t)){let e=f.textContent??``,n=t+e.length;(e.trim()!==``||this.options.enableTokenInteractionsOnWhitespace===!0)&&(c={tokenElement:s,lineCharStart:t,lineCharEnd:n,tokenText:e});continue}}}let e=o==null?f.getAttribute(`data-column-number`)??void 0:void 0;if(e!=null){o=f,u=Number.parseInt(e,10),t=!0,n=Ch(f),a=f.getAttribute(`data-line-index`)??void 0;continue}let p=i==null?f.getAttribute(`data-line`)??void 0:void 0;if(p!=null){i=f,u=Number.parseInt(p,10),n=Ch(f),a=f.getAttribute(`data-line-index`)??void 0;continue}if(l==null&&(f.hasAttribute(`data-expand-button`)||f.hasAttribute(`data-unmodified-lines`))){l={hunkIndex:void 0,direction:f.hasAttribute(`data-expand-up`)?`up`:f.hasAttribute(`data-expand-down`)?`down`:`both`,all:f.hasAttribute(`data-expand-all-button`)};continue}let m=l==null?void 0:f.getAttribute(`data-expand-index`)??void 0;if(l!=null&&m!=null){let e=Number.parseInt(m,10);Number.isNaN(e)||(l.hunkIndex=e);continue}if(r==null&&f.hasAttribute(`data-code`)){r=f;break}}if(d!=null)return d;if(l?.hunkIndex!=null)return{type:`line-info`,hunkIndex:l.hunkIndex,direction:l.direction,all:l.all};if(i??=a==null?void 0:gh(r,`[data-line][data-line-index="${a}"]`),o??=a==null?void 0:gh(r,`[data-column-number][data-line-index="${a}"]`),r==null||i==null||o==null||n==null||u==null||Number.isNaN(u))return;let f=this.parseLineIndex(i,this.isSplitDiff());return c==null?this.mode===`file`?{kind:`line`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:void 0,splitLineIndex:f}:{kind:`line`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:Sh(n,r),splitLineIndex:f}:this.mode===`file`?{kind:`token`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:void 0,splitLineIndex:f,...c}:{kind:`token`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:Sh(n,r),splitLineIndex:f,...c}}isSplitDiff(){return this.pre?.getAttribute(`data-diff-type`)===`split`}parseLineIndex(e,t){let n=(e.getAttribute(`data-line-index`)??``).split(`,`).map(e=>Number.parseInt(e,10)).filter(e=>!Number.isNaN(e));if(t&&n.length===2)return n[1];if(!t)return n[0]}};function ch({enableTokenInteractionsOnWhitespace:e,enableGutterUtility:t,lineHoverHighlight:n,onGutterUtilityClick:r,onLineClick:i,onLineEnter:a,onLineLeave:o,onLineNumberClick:s,onTokenClick:c,onTokenEnter:l,onTokenLeave:u,renderGutterUtility:d,__debugPointerEvents:f,enableLineSelection:p,controlledSelection:m,onLineSelected:h,onLineSelectionStart:g,onLineSelectionChange:_,onLineSelectionEnd:v},y,b,x){return{enableTokenInteractionsOnWhitespace:e,enableGutterUtility:lh({enableGutterUtility:t,renderGutterUtility:d,onGutterUtilityClick:r}),usesCustomGutterUtility:d!=null,lineHoverHighlight:n,onGutterUtilityClick:r,onHunkExpand:y,onMergeConflictActionClick:x,onLineClick:i,onLineEnter:a,onLineLeave:o,onLineNumberClick:s,onTokenClick:c,onTokenEnter:l,onTokenLeave:u,__debugPointerEvents:f,enableLineSelection:p,controlledSelection:m,onLineSelected:h,onLineSelectionStart:g,onLineSelectionChange:_,onLineSelectionEnd:v,getLineIndex:b}}function lh({enableGutterUtility:e,renderGutterUtility:t,onGutterUtilityClick:n}){if(n!=null&&t!=null)throw Error(`Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.`);return e??!1}function uh(e){return e!=null&&`kind`in e&&e.kind===`line`}function dh(e){return e!=null&&`kind`in e&&e.kind===`token`}function fh(e){return uh(e)||dh(e)}function ph(e){return`type`in e&&e.type===`line-info`}function mh(e){return`kind`in e&&e.kind===`merge-conflict-action`}function hh(e){return e===`current`||e===`incoming`||e===`both`}function gh(e,t){let n=e?.querySelector(t);return n instanceof HTMLElement?n:void 0}function _h(e){let t=[],n=e;for(;n!=null;)t.push(n),n=n.parentNode;return t}function vh(e){let t=e.closest(`[data-line], [data-column-number]`);if(t instanceof HTMLElement)return t;let n=e.closest(`[data-line-annotation], [data-gutter-buffer="annotation"]`);if(!(n instanceof HTMLElement))return;let r=n.previousElementSibling;return r instanceof HTMLElement&&(r.hasAttribute(`data-line`)||r.hasAttribute(`data-column-number`))?r:void 0}function yh(e){let t=e.closest(`[slot^="annotation-"]`);if(t instanceof HTMLElement)return t.getAttribute(`slot`)??void 0;if(e instanceof HTMLElement){let t=e.getAttribute(`name`)??void 0;return t!=null&&t.startsWith(`annotation-`)?t:void 0}}function bh(e){if(e==null)return;let t=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(e);if(t==null)return;let n=Number.parseInt(t[2],10);if(Number.isFinite(n))return{lineNumber:n,side:t[1]}}function xh(e){return e!=null&&typeof e.elementFromPoint==`function`}function Sh(e,t){switch(e){case`change-deletion`:return`deletions`;case`change-addition`:return`additions`;default:return t.hasAttribute(`data-deletions`)?`deletions`:`additions`}}function Ch(e){let t=e.getAttribute(`data-line-type`);if(t!=null)switch(t){case`change-deletion`:case`change-addition`:case`context`:case`context-expanded`:return t;default:return}}function wh(e){for(let t of e)if(t instanceof HTMLElement&&(t.hasAttribute(`data-utility-button`)||t.hasAttribute(`data-gutter-utility-slot`)||t.getAttribute(`slot`)===`gutter-utility-slot`||t.getAttribute(`name`)===`gutter-utility-slot`))return!0;return!1}function Th(e=`none`,t,...n){switch(e){case`none`:return;case`both`:break;case`click`:if(t!==`click`)return;break;case`move`:if(t!==`move`)return}console.log(...n)}var Eh=class e{static resizeObserver;static managersByElement=new Map;static getResizeObserver(){let t=e.resizeObserver??new ResizeObserver(e.handleSharedResizeEntries);return e.resizeObserver=t,t}static handleSharedResizeEntries(t){let n=new Map;for(let r of t){let t=e.managersByElement.get(r.target);if(t==null)continue;let i=n.get(t);i==null?n.set(t,[r]):i.push(r)}for(let[e,t]of n)e.handleResizeEntries(t)}observedNodes=new Map;setup(e,t){let n=new Set,r=0,i=new Map(this.observedNodes);this.observedNodes.clear();for(let t of e.children){if(r===2)break;let e=(()=>{if(t instanceof HTMLElement&&t.tagName===`CODE`)return t})();if(e==null)continue;r++;let n=i.get(e);if(n!=null&&n.type!==`code`)throw Error(`ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible`);let a=e.firstElementChild;a instanceof HTMLElement||(a=null),n==null?(n={type:`code`,codeElement:e,numberElement:a,codeWidth:`auto`,numberWidth:0},this.observedNodes.set(e,n),this.observe(e),a!=null&&(this.observedNodes.set(a,n),this.observe(a))):(this.observedNodes.set(e,n),i.delete(e),n.numberElement===a?n.numberElement==null?n.numberWidth=0:(i.delete(n.numberElement),this.observedNodes.set(n.numberElement,n)):(n.numberElement!=null&&(this.unobserve(n.numberElement),i.delete(n.numberElement)),a!=null&&(this.observe(a),i.delete(a),this.observedNodes.set(a,n)),n.numberElement=a,n.numberWidth=0))}if(r>1&&!t){let t=e.querySelectorAll(`[data-line-annotation*=","]`),r=new Map;for(let e of t){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(`data-line-annotation`)??``;if(!/^\d+,\d+$/.test(t)){console.error(`DiffFileRenderer.setupResizeObserver: Invalid element or annotation`,{lineAnnotation:t,element:e});continue}let n=r.get(t);n??(n=[],r.set(t,n)),n.push(e)}for(let[e,t]of r){if(t.length!==2){console.error(`DiffFileRenderer.setupResizeObserver: Bad Pair`,e,t);continue}let[r,a]=t,o=r.firstElementChild,s=a.firstElementChild;if(!(r instanceof HTMLElement)||!(a instanceof HTMLElement)||!(o instanceof HTMLElement)||!(s instanceof HTMLElement))continue;let c=i.get(o);if(c!=null){this.observedNodes.set(o,c),this.observedNodes.set(s,c),i.delete(o),i.delete(s);continue}let l=o.getBoundingClientRect().height,u=s.getBoundingClientRect().height;c={type:`annotations`,column1:{container:r,child:o,childHeight:l},column2:{container:a,child:s,childHeight:u},currentHeight:`auto`},n.add({child1:o,child2:s,item:c,newHeight:Math.max(l,u)})}for(let e of n)this.applyNewHeight(e.item,e.newHeight),this.observedNodes.set(e.child1,e.item),this.observedNodes.set(e.child2,e.item),this.observe(e.child1),this.observe(e.child2);n.clear()}for(let[e,t]of i)this.unobserve(e),t.type===`code`?kh(t):Ah(t);i.clear()}cleanUp(){for(let e of this.observedNodes.keys())this.unobserve(e);this.observedNodes.clear()}observe(t){let{managersByElement:n}=e,r=n.get(t);if(r!==this){if(r!=null&&r!==this)throw Error(`ResizeManager.observe: element is already owned by another ResizeManager`);n.set(t,this),e.getResizeObserver().observe(t)}}unobserve(t){let{managersByElement:n,resizeObserver:r}=e,i=n.get(t);if(i!=null){if(i!==this)throw Error(`ResizeManager.unobserve: element is owned by another ResizeManager`);n.delete(t),r?.unobserve(t),r!=null&&n.size===0&&(r.disconnect(),e.resizeObserver=void 0)}}handleResizeEntries(e){let t=new Map,n=new Set;for(let r of e){let{target:e,borderBoxSize:i,contentBoxSize:a}=r;if(!(e instanceof HTMLElement)){console.error(`ResizeManager.handleResizeEntries: Invalid element for ResizeObserver`,r);continue}let o=this.observedNodes.get(e);if(o==null){console.error(`ResizeManager.handleResizeEntries: Not a valid observed node`,r);continue}if(o.type===`annotations`){let t=(()=>{if(e===o.column1.child)return o.column1;if(e===o.column2.child)return o.column2})();if(t==null){console.error(`ResizeManager.handleResizeEntries: Couldn't find a column for`,{item:o,target:e});continue}t.childHeight=i[0].blockSize,n.add(o)}else if(o.type===`code`){let n=t.get(o)??{},r=a[0].inlineSize;e===o.codeElement?n.codeInlineSize=r:e===o.numberElement&&(n.numberInlineSize=r),t.set(o,n)}}this.applyAnnotationUpdates(n),n.clear(),this.applyColumnUpdates(t),t.clear()}applyAnnotationUpdates(e){for(let t of e)this.applyNewHeight(t,Math.max(t.column1.childHeight,t.column2.childHeight))}applyColumnUpdates=e=>{for(let[t,n]of e){let e=n.codeInlineSize==null?t.codeWidth:Dh(n.codeInlineSize),r=n.numberInlineSize==null?t.numberWidth:Oh(n.numberInlineSize),i=e!==t.codeWidth,a=r!==t.numberWidth;if((i||a)&&(t.codeWidth=e,t.numberWidth=r,i&&t.codeElement.style.setProperty(`--diffs-column-width`,`${typeof e==`number`?`${e}px`:`auto`}`),a&&t.codeElement.style.setProperty(`--diffs-column-number-width`,`${r===0?`auto`:`${r}px`}`),i||a&&e!==`auto`)){let n=typeof e==`number`?Math.max(e-r,0):0;t.codeElement.style.setProperty(`--diffs-column-content-width`,`${n>0?`${n}px`:`auto`}`)}}};applyNewHeight(e,t){t!==e.currentHeight&&(e.currentHeight=Math.max(t,0),e.column1.container.style.setProperty(`--diffs-annotation-min-height`,`${e.currentHeight}px`),e.column2.container.style.setProperty(`--diffs-annotation-min-height`,`${e.currentHeight}px`))}};function Dh(e){let t=Math.max(Math.floor(e),0);return t===0?`auto`:t}function Oh(e){return Math.max(Math.ceil(e),0)}function kh(e){e.codeElement.isConnected&&(e.codeElement.style.removeProperty(`--diffs-column-content-width`),e.codeElement.style.removeProperty(`--diffs-column-number-width`),e.codeElement.style.removeProperty(`--diffs-column-width`))}function Ah(e){e.column1.container.isConnected&&e.column1.container.style.removeProperty(`--diffs-annotation-min-height`),e.column2.container.isConnected&&e.column2.container.style.removeProperty(`--diffs-annotation-min-height`)}var jh=new Map,Mh=new Map,Nh=new Map,Ph=new Set;function Fh(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!Ph.has(t))return!1;return!0}function Ih(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(Ph.has(n.name))continue;let e=jh.get(n.name);e??(e=n,jh.set(n.name,e)),Ph.add(e.name),t.loadLanguageSync(e.data)}}function Lh(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var Rh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Bh=Object.getOwnPropertyNames,Vh=Object.prototype.hasOwnProperty,Hh=(e,t)=>{let n={};for(var r in e)Rh(n,r,{get:e[r],enumerable:!0});return t||Rh(n,Symbol.toStringTag,{value:`Module`}),n},Uh=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Bh(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Vh.call(e,s)&&s!==n&&Rh(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=zh(t,s))||r.enumerable});return e},Wh=(e,t,n)=>(Uh(e,t,`default`),n&&Uh(n,t,`default`)),Gh=[{id:`abap`,name:`ABAP`,import:(()=>Y(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>Y(()=>import(`./actionscript-3-Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>Y(()=>import(`./ada-C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>Y(()=>import(`./ahk-CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>Y(()=>import(`./ahk2-_6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>Y(()=>import(`./angular-html-DrYCUiZv.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>Y(()=>import(`./angular-ts-BgjwQn-Z.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>Y(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>Y(()=>import(`./apex-KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>Y(()=>import(`./apl-DlHqe8o4.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>Y(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>Y(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>Y(()=>import(`./asciidoc-SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>Y(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>Y(()=>import(`./astro-BrlHnIh9.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>Y(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>Y(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>Y(()=>import(`./bat-qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>Y(()=>import(`./beancount-D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>Y(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>Y(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>Y(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>Y(()=>import(`./bird2-CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>Y(()=>import(`./blade-DOcerOiW.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>Y(()=>import(`./bsl-_VjlB9mv.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>Y(()=>import(`./c-BMbThxEo.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>Y(()=>import(`./c3-D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>Y(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>Y(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>Y(()=>import(`./chapel-k2cjkSmc.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>Y(()=>import(`./clarity-CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>Y(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>Y(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>Y(()=>import(`./cobol-CupUwvw9.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>Y(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>Y(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>Y(()=>import(`./coffee-C17pkozF.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>Y(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>Y(()=>import(`./coq-DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>Y(()=>import(`./cpp-BJwVQVXg.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>Y(()=>import(`./crystal-BF-oCN-L.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>Y(()=>import(`./csharp-oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>Y(()=>import(`./css-BMgkVI3c.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>Y(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>Y(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>Y(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>Y(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>Y(()=>import(`./dart-CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>Y(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>Y(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>Y(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>Y(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>Y(()=>import(`./dotenv-_5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>Y(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>Y(()=>import(`./edge-B34N_HjN.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>Y(()=>import(`./elixir-CQzWMyKD.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>Y(()=>import(`./elm-BNJiG-wg.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>Y(()=>import(`./emacs-lisp-c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>Y(()=>import(`./erb-D5Rm3UNa.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>Y(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>Y(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>Y(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>Y(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>Y(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>Y(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>Y(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>Y(()=>import(`./gdresource-xMC7jr7x.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>Y(()=>import(`./gdscript-DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>Y(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>Y(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>Y(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>Y(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>Y(()=>import(`./git-rebase-BpIMZIRG.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>Y(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>Y(()=>import(`./glimmer-js-SeSwns5_.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>Y(()=>import(`./glimmer-ts-BExI5tTz.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>Y(()=>import(`./glsl-CXikKw2b.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>Y(()=>import(`./gn-ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>Y(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>Y(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>Y(()=>import(`./graphql-6GpQIInt.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>Y(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>Y(()=>import(`./hack-i7rizvpB.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>Y(()=>import(`./haml-C68gmkTf.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>Y(()=>import(`./handlebars-BBn_c0Xt.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>Y(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>Y(()=>import(`./haxe-C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>Y(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>Y(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>Y(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>Y(()=>import(`./html-BObmAZQA.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>Y(()=>import(`./html-derivative-BjMuR1LM.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>Y(()=>import(`./http-BJBk8gt0.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>Y(()=>import(`./hurl-D7obCYfg.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>Y(()=>import(`./hxml-Dcm88srW.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>Y(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>Y(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>Y(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>Y(()=>import(`./java-5VJU_EW8.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>Y(()=>import(`./javascript-r8UgndxQ.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>Y(()=>import(`./jinja-BY2ibHG5.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>Y(()=>import(`./jison-C_7YxymZ.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>Y(()=>import(`./json-8e1WlJYD.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>Y(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>Y(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>Y(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>Y(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>Y(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>Y(()=>import(`./jsx-BYp5GD4Y.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>Y(()=>import(`./julia-Bkob1uVX.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>Y(()=>import(`./just-CUnSjty-.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>Y(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>Y(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>Y(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>Y(()=>import(`./latex-UdE3ivqk.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>Y(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>Y(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>Y(()=>import(`./liquid-WL4MvEIT.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>Y(()=>import(`./llvm-DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>Y(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>Y(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>Y(()=>import(`./lua-CtOubZta.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>Y(()=>import(`./luau-C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>Y(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>Y(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>Y(()=>import(`./marko-C0GSQJi3.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>Y(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>Y(()=>import(`./mdc-DUivddFc.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>Y(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>Y(()=>import(`./mermaid-BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>Y(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>Y(()=>import(`./mojo-fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>Y(()=>import(`./moonbit-DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>Y(()=>import(`./move-BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>Y(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>Y(()=>import(`./nextflow-BJtWHP5T.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>Y(()=>import(`./nextflow-groovy-DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>Y(()=>import(`./nginx-B__INAtC.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>Y(()=>import(`./nim-UEY12GJF.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>Y(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>Y(()=>import(`./nsis-CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>Y(()=>import(`./nushell-DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>Y(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>Y(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>Y(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>Y(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>Y(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>Y(()=>import(`./org-DDIZsz95.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>Y(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>Y(()=>import(`./perl-D5KwNZt7.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>Y(()=>import(`./php-BEs7d_Dk.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>Y(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>Y(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>Y(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>Y(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>Y(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>Y(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>Y(()=>import(`./powershell-CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>Y(()=>import(`./prisma-DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>Y(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>Y(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>Y(()=>import(`./pug-B0dsfQOV.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>Y(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>Y(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>Y(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>Y(()=>import(`./qml-XPIhrIzf.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>Y(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>Y(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>Y(()=>import(`./r-C6hQdpIM.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>Y(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>Y(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>Y(()=>import(`./razor-C3KSUuOw.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>Y(()=>import(`./rbs-C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>Y(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>Y(()=>import(`./regexp-n-T936Rk.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>Y(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>Y(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>Y(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>Y(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>Y(()=>import(`./rst-fVnHDyXD.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>Y(()=>import(`./ruby-DuRgxlXF.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>Y(()=>import(`./rust-Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>Y(()=>import(`./sas-C0WA2OFa.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>Y(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>Y(()=>import(`./scala-BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>Y(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>Y(()=>import(`./scss-CQDZ4smR.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>Y(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>Y(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>Y(()=>import(`./shellscript-CE84G0GP.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>Y(()=>import(`./shellsession-BdJvdaqL.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>Y(()=>import(`./smalltalk-BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>Y(()=>import(`./smithy-Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>Y(()=>import(`./solidity-Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>Y(()=>import(`./soy-BSxOREC0.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>Y(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>Y(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>Y(()=>import(`./sql-D4MN9uRI.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>Y(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>Y(()=>import(`./stata-B6nXAaGV.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>Y(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>Y(()=>import(`./surrealql-fVjZmhV3.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>Y(()=>import(`./svelte-DnBQ5p7d.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>Y(()=>import(`./swift-CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>Y(()=>import(`./system-verilog-Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>Y(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>Y(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>Y(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>Y(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>Y(()=>import(`./templ-TCx51Uts.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>Y(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>Y(()=>import(`./tex-CF6SMAQ_.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>Y(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>Y(()=>import(`./ts-tags-BqLRnADX.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>Y(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>Y(()=>import(`./tsx-D7KpDX0b.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>Y(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>Y(()=>import(`./twig-CEZLObpN.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>Y(()=>import(`./typescript-DAbIDLbf.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>Y(()=>import(`./typespec-BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>Y(()=>import(`./typst-CqN7-whv.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>Y(()=>import(`./v-DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>Y(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>Y(()=>import(`./vb-DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>Y(()=>import(`./verilog-B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>Y(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>Y(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>Y(()=>import(`./vue-kTxN6wdc.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>Y(()=>import(`./vue-html-DQmvvKbd.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>Y(()=>import(`./vue-vine-Did3qTVW.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>Y(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>Y(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>Y(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>Y(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>Y(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>Y(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>Y(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>Y(()=>import(`./xml-te2hFcAA.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>Y(()=>import(`./xsl-X4fuKSVl.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>Y(()=>import(`./yaml-NHtDSZab.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>Y(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>Y(()=>import(`./zig-CMLA9XwU.js`),[]))}],Kh=Object.fromEntries(Gh.map(e=>[e.id,e.import])),qh=Object.fromEntries(Gh.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Jh={...Kh,...qh},Yh=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>Y(()=>import(`./andromeeda-vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>Y(()=>import(`./aurora-x-CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>Y(()=>import(`./ayu-dark-DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>Y(()=>import(`./ayu-light-C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>Y(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>Y(()=>import(`./catppuccin-frappe-C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>Y(()=>import(`./catppuccin-latte-CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>Y(()=>import(`./catppuccin-macchiato-R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>Y(()=>import(`./catppuccin-mocha-DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>Y(()=>import(`./dark-plus-Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>Y(()=>import(`./dracula-BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>Y(()=>import(`./dracula-soft-5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>Y(()=>import(`./everforest-dark-sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>Y(()=>import(`./everforest-light-Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>Y(()=>import(`./github-dark-C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>Y(()=>import(`./github-dark-default-DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>Y(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>Y(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>Y(()=>import(`./github-light-EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>Y(()=>import(`./github-light-default-BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>Y(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>Y(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>Y(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>Y(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>Y(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>Y(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>Y(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>Y(()=>import(`./horizon-CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>Y(()=>import(`./horizon-bright-DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>Y(()=>import(`./houston-CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>Y(()=>import(`./kanagawa-dragon-Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>Y(()=>import(`./kanagawa-lotus-BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>Y(()=>import(`./kanagawa-wave-BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>Y(()=>import(`./laserwave-C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>Y(()=>import(`./light-plus-DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>Y(()=>import(`./material-theme-Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>Y(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>Y(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>Y(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>Y(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>Y(()=>import(`./min-dark-BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>Y(()=>import(`./min-light-DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>Y(()=>import(`./monokai-B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>Y(()=>import(`./night-owl-DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>Y(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>Y(()=>import(`./nord-Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>Y(()=>import(`./one-dark-pro-CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>Y(()=>import(`./one-light-D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>Y(()=>import(`./plastic-DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>Y(()=>import(`./poimandres-DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>Y(()=>import(`./red-DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>Y(()=>import(`./rose-pine-aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>Y(()=>import(`./rose-pine-dawn-8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>Y(()=>import(`./rose-pine-moon-DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>Y(()=>import(`./slack-dark-DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>Y(()=>import(`./slack-ochin-B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>Y(()=>import(`./snazzy-light-4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>Y(()=>import(`./solarized-dark-UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>Y(()=>import(`./solarized-light-C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>Y(()=>import(`./synthwave-84-nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>Y(()=>import(`./tokyo-night-oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>Y(()=>import(`./vesper-DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>Y(()=>import(`./vitesse-black-fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>Y(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>Y(()=>import(`./vitesse-light-VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),Xh=s({createOnigurumaEngine:()=>wg,getDefaultWasmLoader:()=>Cg,loadWasm:()=>_g,setDefaultWasmLoader:()=>Sg}),Zh=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Qh(){return 2147483648}function $h(){return typeof performance<`u`?performance.now():Date.now()}var eg=(e,t)=>e+(t-e%t)%t;async function tg(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=Qh();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,eg(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:$h,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var ng=Object.defineProperty,rg=(e,t,n)=>t in e?ng(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ig=(e,t,n)=>rg(e,typeof t==`symbol`?t:t+``,n),ag=null;function og(e){throw new Zh(e.UTF8ToString(e.getLastOnigError()))}var sg=class e{constructor(t){ig(this,`utf16Length`),ig(this,`utf8Length`),ig(this,`utf16Value`),ig(this,`utf8Value`),ig(this,`utf16OffsetToUtf8`),ig(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},cg=class e{constructor(t){if(ig(this,`id`,++e.LAST_ID),ig(this,`_onigBinding`),ig(this,`content`),ig(this,`utf16Length`),ig(this,`utf8Length`),ig(this,`utf16OffsetToUtf8`),ig(this,`utf8OffsetToUtf16`),ig(this,`ptr`),!ag)throw new Zh(`Must invoke loadWasm first.`);this._onigBinding=ag,this.content=t;let n=new sg(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=ag.omalloc(1e4),e._sharedPtrInUse=!0,ag.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(ag)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ig(cg,`LAST_ID`,0),ig(cg,`_sharedPtr`,0),ig(cg,`_sharedPtrInUse`,!1);var lg=cg,ug=class{constructor(e){if(ig(this,`_onigBinding`),ig(this,`_ptr`),!ag)throw new Zh(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new sg(e[r]);t[r]=i.createString(ag),n[r]=i.utf8Length}let r=ag.omalloc(4*e.length);ag.HEAPU32.set(t,r/4);let i=ag.omalloc(4*e.length);ag.HEAPU32.set(n,i/4);let a=ag.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)ag.ofree(t[n]);ag.ofree(i),ag.ofree(r),a===0&&og(ag),this._onigBinding=ag,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new lg(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function dg(e){return typeof e.instantiator==`function`}function fg(e){return typeof e.default==`function`}function pg(e){return e.data!==void 0}function mg(e){return typeof Response<`u`&&e instanceof Response}function hg(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}var gg;function _g(e){if(gg)return gg;async function t(){ag=await tg(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),dg(n)?n=await n.instantiator(t):fg(n)?n=await n.default(t):(pg(n)&&(n=n.data),mg(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await yg(n)(t):await bg(n)(t):hg(n)||n instanceof WebAssembly.Module?n=await vg(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await vg(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return gg=t(),gg}function vg(e){return t=>WebAssembly.instantiate(e,t)}function yg(e){return t=>WebAssembly.instantiateStreaming(e,t)}function bg(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var xg;function Sg(e){xg=e}function Cg(){return xg}async function wg(e){return e&&await _g(e),{createScanner(e){return new ug(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new lg(e)}}}var Tg=Hh({});Wh(Tg,Xh);var Eg=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Dg(e){return Og(e)}function Og(e){return Array.isArray(e)?kg(e):e instanceof RegExp?e:typeof e==`object`?Ag(e):e}function kg(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Og(e[n]);return t}function Ag(e){let t={};for(let n in e)t[n]=Og(e[n]);return t}function jg(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Mg(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Mg(e.substring(0,e.length-1)):e.substr(~t+1)}var Ng=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Pg=class{static hasCaptures(e){return e!==null&&(Ng.lastIndex=0,Ng.test(e))}static replaceCaptures(e,t,n){return e.replace(Ng,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Fg(e,t){return e<t?-1:+(e>t)}function Ig(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Fg(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Lg(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 Rg(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var zg=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Bg=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Gg(e),t)}static createFromParsedTheme(e,t){return Jg(e,t)}_cachedMatchRoot=new zg(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Hg(e.parent,t.parentScopes));return n?new Wg(n.fontStyle,n.foreground,n.background):null}},Vg=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Hg(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Ug(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ug(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Wg=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Gg(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&Lg(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Lg(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Kg(l,u,e,o,s,c)}}return n}var Kg=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},qg=(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))(qg||{});function Jg(e,t){e.sort((e,t)=>{let n=Fg(e.scope,t.scope);return n!==0||(n=Ig(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Yg(t),o=new Wg(n,a.getId(r),a.getId(i)),s=new Qg(new Zg(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Bg(a,o,s)}var Yg=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 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)}},Xg=Object.freeze([]),Zg=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Xg,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Qg=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),Zg.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Ig(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Zg(e,t,n,r,i))}},$g=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=t_(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function e_(e){return e}function t_(e){return e}function n_(e,t){let n=[],r=i_(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(r_(i)){let e=[];do e.push(i),i=r.next();while(r_(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function r_(e){return!!e&&!!e.match(/[\w\.:]+/)}function i_(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function a_(e){typeof e.dispose==`function`&&e.dispose()}var o_=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},s_=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},c_=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},l_=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new o_(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new c_;for(let n of e)u_(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof o_){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function u_(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof o_?f_({baseGrammar:a,selfGrammar:i},r):d_(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new o_(e))}function d_(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];p_([r],t,n)}}function f_(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&p_(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&p_(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function p_(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?jg({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&p_(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=y_(i);switch(a.kind){case 0:f_({...t,selfGrammar:t.baseGrammar},n);break;case 1:f_(t,n);break;case 2:d_(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?d_(a.ruleName,i,n):f_(i,n)}else a.kind===4?n.add(new s_(a.scopeName,a.ruleName)):n.add(new o_(a.scopeName))}}}var m_=class{kind=0},h_=class{kind=1},g_=class{constructor(e){this.ruleName=e}kind=2},__=class{constructor(e){this.scopeName=e}kind=3},v_=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function y_(e){if(e===`$base`)return new m_;if(e===`$self`)return new h_;let t=e.indexOf(`#`);return t===-1?new __(e):t===0?new g_(e.substring(1)):new v_(e.substring(0,t),e.substring(t+1))}var b_=/\\(\d+)/,x_=/\\(\d+)/g,S_=-1,C_=-2;function w_(e){return e}function T_(e){return e}var E_=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Pg.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Pg.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Mg(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:Pg.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Pg.replaceCaptures(this._contentName,e,t)}},D_=class extends E_{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},O_=class extends E_{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new N_(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new P_,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},k_=class extends E_{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new P_,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},A_=class extends E_{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new N_(i,this.id),this.beginCaptures=a,this._end=new N_(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new P_;for(let t of this.patterns)e.getRule(t).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}},j_=class extends E_{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new N_(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new N_(o,C_),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),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,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new P_;for(let 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,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new P_,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},M_=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new D_(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new O_(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=jg({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new k_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new j_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new A_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=y_(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof k_||e instanceof A_||e instanceof j_)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},N_=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&b_.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return x_.lastIndex=0,this.source.replace(x_,(e,t)=>Rg(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},P_=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(),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(e=>e.source);this._cached=new F_(e,t,this._items.map(e=>e.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){return new F_(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},F_=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(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
24
+ \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function Gm(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Pp);let l=Km(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!Rm(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!Sm(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function Km(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=qm(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function qm(e,t,n){let r=Ap(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=im(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Wm.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?dm:fm)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=im(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Wm.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&um(n,o)>um(n,e.alternative)&&(o=e.alternative),s=o+im(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?Wm.single:Wm.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var Jm=[`<`,`&`];function Ym(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:im(e.value,Object.assign({},r.settings.characterReferences,{subset:Jm}))}function Xm(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Ym(e,t,n,r)}function Zm(e,t,n,r){return r.all(e)}var Qm=Ip(`type`,{invalid:$m,unknown:eh,handlers:{comment:cm,doctype:lm,element:Gm,raw:Xm,root:Zm,text:Ym}});function $m(e){throw Error("Expected node, not `"+e+"`")}function eh(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var th={},nh={},rh=[];function ih(e,t){let n=t||th,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ah,all:oh,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||np,characterReferences:n.characterReferences||nh,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Pp:Np,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function ah(e,t,n){return Qm(e,t,n,this)}function oh(e){let t=[],n=e&&e.children||rh,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var sh=class{hoveredLine;hoveredToken;pre;gutterUtilityLine;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;proposedSelectedRange;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:`idle`};constructor(e,t){this.mode=e,this.options=t}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener(`click`,this.handlePointerClick),this.pre?.removeEventListener(`pointerdown`,this.handlePointerDown),this.pre?.removeEventListener(`pointermove`,this.handlePointerMove),this.pre?.removeEventListener(`pointerleave`,this.handlePointerLeave),this.pre?.removeAttribute(`data-interactive-lines`),this.pre?.removeAttribute(`data-interactive-line-numbers`),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(e){this.setSelectionDirty();let{usesCustomGutterUtility:t=!1,enableGutterUtility:n=!1}=this.options;this.pre!==e&&(this.cleanUp(),this.pre=e),n?this.ensureGutterUtilityNode(t):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode===`gutterSelecting`&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(e),this.updateInteractiveLineAttributes(),this.renderSelection(),this.placeUtility()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(e,t){let n=!(e===this.selectedRange||Gf(e??void 0,this.selectedRange??void 0));(this.isSelectionDirty()||n)&&(this.proposedSelectedRange=void 0,this.selectedRange=e,this.renderSelection(),this.placeUtility(),n&&t?.notify!==!1&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{let e=this.gutterUtilityLine??this.hoveredLine;if(e!=null){if(this.mode===`diff`&&e.type===`diff-line`)return{lineNumber:e.lineNumber,side:e.annotationSide};if(this.mode===`file`&&e.type===`line`)return{lineNumber:e.lineNumber}}};handlePointerClick=e=>{let{onHunkExpand:t,onLineClick:n,onLineNumberClick:r,onTokenClick:i,onMergeConflictActionClick:a}=this.options;(t!=null||n!=null||r!=null||a!=null||i!=null)&&(this.options.onGutterUtilityClick!=null&&wh(e.composedPath())||(Th(this.options.__debugPointerEvents,`click`,`FileDiff.DEBUG.handlePointerClick:`,e),this.handlePointerEvent({eventType:`click`,event:e})))};handlePointerMove=e=>{if(e.pointerType!==`mouse`)return;let{lineHoverHighlight:t=`disabled`,onLineEnter:n,onLineLeave:r,onTokenEnter:i,onTokenLeave:a,enableGutterUtility:o=!1}=this.options;(t!==`disabled`||o||n!=null||r!=null||i!=null||a!=null)&&(Th(this.options.__debugPointerEvents,`move`,`FileDiff.DEBUG.handlePointerMove:`,e),this.handlePointerEvent({eventType:`move`,event:e}))};handlePointerLeave=e=>{let{__debugPointerEvents:t}=this.options;if(Th(t,`move`,`FileDiff.DEBUG.handlePointerLeave: no event`),this.hoveredLine==null&&this.hoveredToken==null){Th(t,`move`,`FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token`);return}this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,e),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),this.placeUtility()};handlePointerEvent({eventType:e,event:t}){let{__debugPointerEvents:n}=this.options,r=t.composedPath();Th(n,e,`FileDiff.DEBUG.handlePointerEvent:`,{eventType:e,composedPath:r});let i=this.resolvePointerTarget(r);Th(n,e,`FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:`,i);let{onLineClick:a,onLineNumberClick:o,onLineEnter:s,onLineLeave:c,onTokenClick:l,onTokenEnter:u,onTokenLeave:d,onHunkExpand:f,onMergeConflictActionClick:p}=this.options;switch(e){case`move`:{let e=fh(i)&&this.hoveredLine?.lineElement===i.lineElement;dh(i)&&this.hoveredToken?.tokenElement===i.tokenElement||(this.hoveredToken!=null&&(d?.(this.hoveredToken,t),this.clearHoveredToken()),dh(i)&&(this.setHoveredToken(this.toTokenEventBaseProps(i)),u?.(this.hoveredToken,t))),e||(this.hoveredLine!=null&&(c?.({...this.hoveredLine,event:t}),this.clearHoveredLine()),fh(i)?(this.setHoveredLine(this.toEventBaseProps(i)),this.placeUtility(),s?.({...this.hoveredLine,event:t})):this.placeUtility());break}case`click`:{if(i==null)break;if(mh(i)&&p!=null){p(i);break}if(ph(i)&&f!=null){f(i.hunkIndex,i.all||t.shiftKey?`both`:i.direction,i.all||t.shiftKey?1/0:void 0);break}if(!fh(i))break;dh(i)&&l!=null&&l(this.toTokenEventBaseProps(i),t);let e=this.toEventBaseProps(i);o!=null&&i.numberColumn?o({...e,event:t}):a?.({...e,event:t});break}}}syncPointerListeners(e){let{__debugPointerEvents:t,lineHoverHighlight:n=`disabled`,onLineClick:r,onLineNumberClick:i,onLineEnter:a,onLineLeave:o,onTokenClick:s,onTokenEnter:c,onTokenLeave:l,onHunkExpand:u,onMergeConflictActionClick:d,enableGutterUtility:f=!1,enableLineSelection:p=!1,onGutterUtilityClick:m}=this.options,h=m!=null,g=n!==`disabled`||r!=null||i!=null||a!=null||o!=null||s!=null||c!=null||l!=null||u!=null||d!=null||f||p||h;g&&!this.hasPointerListeners?(e.addEventListener(`click`,this.handlePointerClick),e.addEventListener(`pointerdown`,this.handlePointerDown),e.addEventListener(`pointermove`,this.handlePointerMove),e.addEventListener(`pointerleave`,this.handlePointerLeave),this.hasPointerListeners=!0,Th(t,`click`,`FileDiff.DEBUG.attachEventListeners: Attaching click events for:`,(()=>{let e=[];return(t===`both`||t===`click`)&&(r!=null&&e.push(`onLineClick`),i!=null&&e.push(`onLineNumberClick`),u!=null&&e.push(`expandable hunk separators`),d!=null&&e.push(`merge conflict actions`)),e})()),Th(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer move event`),Th(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event`)):!g&&this.hasPointerListeners&&(e.removeEventListener(`click`,this.handlePointerClick),e.removeEventListener(`pointerdown`,this.handlePointerDown),e.removeEventListener(`pointermove`,this.handlePointerMove),e.removeEventListener(`pointerleave`,this.handlePointerLeave),this.hasPointerListeners=!1);let _=this.pointerSession.mode===`selecting`||this.pointerSession.mode===`pendingSingleLineUnselect`,v=this.pointerSession.mode===`gutterSelecting`;(!p&&_||!h&&v)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;let{onLineClick:e,onLineNumberClick:t,enableLineSelection:n=!1}=this.options,r=e!=null,i=t!=null||n;r&&!this.interactiveLinesAttr?(this.pre.setAttribute(`data-interactive-lines`,``),this.interactiveLinesAttr=!0):!r&&this.interactiveLinesAttr&&(this.pre.removeAttribute(`data-interactive-lines`),this.interactiveLinesAttr=!1),i&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute(`data-interactive-line-numbers`,``),this.interactiveLineNumbersAttr=!0):!i&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute(`data-interactive-line-numbers`),this.interactiveLineNumbersAttr=!1)}handlePointerDown=e=>{if(e.pointerType===`mouse`&&e.button!==0||this.pre==null||this.pointerSession.mode!==`idle`)return;let t=e.composedPath();wh(t)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(e):(e.pointerType!==`mouse`&&this.revealUtilityFromGutterPath(t),this.startLineSelectionFromPointerDown(e))};startLineSelectionFromPointerDown(e){let{enableLineSelection:t=!1}=this.options;if(!t)return;let n=this.resolveSelectionInfo(e,{source:`event-path`,requireNumberColumn:!0});if(n==null)return;let{pre:r}=this;if(r==null)return;e.preventDefault();let{lineNumber:i,eventSide:a,lineIndex:o}=n;if(e.shiftKey&&this.selectedRange!=null){let t=this.getIndexesFromSelection(this.selectedRange,r.getAttribute(`data-diff-type`)===`split`);if(t==null)return;let n=t.start<=t.end?o>=t.start:o<=t.end;this.selectionAnchor={lineNumber:n?this.selectedRange.start:this.selectedRange.end,side:n?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(i,a,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:`selecting`,pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===i&&this.selectedRange?.end===i){let t={lineNumber:i,side:a};this.selectionAnchor=t,this.pointerSession={mode:`pendingSingleLineUnselect`,pointerId:e.pointerId,anchor:t,pending:t},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:i,side:a},this.updateSelection(i,a,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:`selecting`,pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e){let{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;if(n==null)return;let r=this.currentSelectionEnds(),i=r?.bottom??this.resolveSelectionPoint(e,{source:`event-path`,excludeUtility:!1}),a=r?.top??i;i!=null&&a!=null&&(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:`gutterSelecting`,pointerId:e.pointerId,anchor:a,current:i},t&&(this.selectionAnchor={lineNumber:a.lineNumber,side:a.side},this.updateSelection(i.lineNumber,i.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange())),this.attachDocumentPointerListeners())}handleDocumentPointerMove=e=>{let{enableLineSelection:t=!1}=this.options;switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let n=this.resolveSelectionPoint(e,{source:`coordinates-first`});if(n==null)return;this.pointerSession.current=n,t===!0&&this.updateSelection(n.lineNumber,n.side);return}case`selecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let t=this.resolveSelectionInfo(e,{source:`coordinates-first`,requireNumberColumn:!1});if(t==null||this.selectionAnchor==null)return;this.updateSelection(t.lineNumber,t.eventSide);return}case`pendingSingleLineUnselect`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let t=this.resolveSelectionInfo(e,{source:`coordinates-first`,requireNumberColumn:!1});if(t==null||this.selectionAnchor==null)return;let n={lineNumber:t.lineNumber,side:t.eventSide};if(tp(this.pointerSession.pending,n))return;this.updateSelection(t.lineNumber,t.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:`selecting`,pointerId:e.pointerId};return}}};handleDocumentPointerUp=e=>{let{enableLineSelection:t=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();let r=this.resolveSelectionPoint(e,{source:`coordinates-first`});r!=null&&(this.pointerSession.current=r,t&&this.updateSelection(r.lineNumber,r.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,t&&(this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case`pendingSingleLineUnselect`:if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection();return;case`selecting`:if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()}};handleDocumentPointerCancel=e=>{switch(this.pointerSession.mode){case`idle`:return;case`gutterSelecting`:case`selecting`:case`pendingSingleLineUnselect`:if(`pointerId`in this.pointerSession&&e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute(`data-hovered`),this.hoveredLine.numberElement.removeAttribute(`data-hovered`),this.hoveredLine=void 0)}setHoveredLine(e){let{lineHoverHighlight:t=`disabled`}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=e,t!==`disabled`&&((t===`both`||t===`line`)&&this.hoveredLine.lineElement.setAttribute(`data-hovered`,``),(t===`both`||t===`number`)&&this.hoveredLine.numberElement.setAttribute(`data-hovered`,``))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(e){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=e}ensureGutterUtilityNode(e){if(this.gutterUtilityContainer??(this.gutterUtilityContainer=document.createElement(`div`),this.gutterUtilityContainer.setAttribute(`data-gutter-utility-slot`,``)),e)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot??(this.gutterUtilitySlot=document.createElement(`slot`),this.gutterUtilitySlot.name=`gutter-utility-slot`),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){let e=document.createElement(`div`);e.innerHTML=ih(ep());let t=e.firstElementChild;if(!(t instanceof HTMLButtonElement))throw Error(`InteractionManager.ensureGutterUtilityNode: Node element should be a button`);t.remove(),this.gutterUtilityButton=t}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(e){if(this.placeUtilityFromSelection())return;let t=this.resolvePointerTarget(e);uh(t)&&t.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(t))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){let e=this.currentSelectionEnds();if(e==null)return!1;let t=this.targetForSelectionPoint(e.bottom);return t==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(t)),!0}showUtilityOnLine(e){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=e,e.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){let e=this.getCurrentSelectionRange();return e==null?void 0:this.selectionEnds(e)}selectionEnds(e){let t={lineNumber:e.start,side:e.side},n={lineNumber:e.end,side:e.endSide??e.side},r=this.selectionPointRowIndex(t),i=this.selectionPointRowIndex(n);if(r!=null&&i!=null)return r>i?{top:n,bottom:t}:{top:t,bottom:n}}selectionPointRowIndex(e){let t=this.getLineIndex(e.lineNumber,e.side);if(t!=null)return this.isSplitDiff()?t[1]:t[0]}targetForSelectionPoint(e){if(this.pre==null)return;let t=this.getLineIndex(e.lineNumber,e.side);if(t==null)return;let n=this.mode===`diff`?`${t[0]},${t[1]}`:`${t[0]}`,r=this.pre.querySelectorAll(`[data-column-number="${e.lineNumber}"][data-line-index="${n}"]`);for(let t of r){if(!(t instanceof HTMLElement))continue;let n=this.resolvePointerTarget(_h(t));if(uh(n)&&(this.mode!==`diff`||e.side==null||n.side===e.side))return n}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||=(document.addEventListener(`pointermove`,this.handleDocumentPointerMove),document.addEventListener(`pointerup`,this.handleDocumentPointerUp),document.addEventListener(`pointercancel`,this.handleDocumentPointerCancel),!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&=(document.removeEventListener(`pointermove`,this.handleDocumentPointerMove),document.removeEventListener(`pointerup`,this.handleDocumentPointerUp),document.removeEventListener(`pointercancel`,this.handleDocumentPointerCancel),!1)}clearPointerSession(){this.pointerSession={mode:`idle`}}clearPendingSingleLineState(){this.pointerSession.mode===`pendingSingleLineUnselect`&&(this.pointerSession={mode:`idle`})}selectionInfoFromPath(e,t){let n=this.resolvePointerTarget(e);if(uh(n)&&(!t||n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode===`diff`?n.side:void 0}}resolveSelectionInfo(e,t){let n=this.resolveSelectionPath(e,t);return n==null?void 0:this.selectionInfoFromPath(n,t.requireNumberColumn)}selectionPointFromPath(e){let t=this.resolvePointerTarget(e);if(uh(t))return{lineNumber:t.lineNumber,side:this.mode===`diff`?t.side:void 0}}resolveSelectionPoint(e,t){let n=this.resolveSelectionPath(e,t);return n==null?void 0:this.selectionPointFromPath(n)}resolveSelectionPath(e,t){let n=t.excludeUtility!==!1;switch(t.source){case`event-path`:return this.pathFromEventPath(e.composedPath(),n);case`coordinates-first`:{let t=this.pathFromCoordinates(e,n);return t===void 0?this.pathFromEventPath(e.composedPath(),n):t??void 0}}}pathFromCoordinates(e,t){let n=this.hitTest(e);if(n!==void 0)return n===null?null:this.pathFromElement(n,t)??null}pathFromEventPath(e,t){if(!(t&&wh(e))){for(let n of e)if(n instanceof Element)return this.pathFromElement(n,t)}}pathFromElement(e,t){let n=_h(e);if(t&&wh(n))return;let r=vh(e);return r==null?this.pathFromAnnotationSlot(e):_h(r)}pathFromAnnotationSlot(e){let t=bh(yh(e));if(t==null)return;let n=this.targetForSelectionPoint(t);return n==null?void 0:_h(n.lineElement)}hitTest(e){if(!Number.isFinite(e.clientX)||!Number.isFinite(e.clientY))return;let t=this.pre?.getRootNode(),n=xh(t)?t:xh(document)?document:void 0;if(n!=null)return n.elementFromPoint(e.clientX,e.clientY)}getLineIndex(e,t){let{getLineIndex:n}=this.options;return n==null?[e-1,e-1]:n(e,t)}getCurrentSelectionRange(){return this.proposedSelectedRange===void 0?this.selectedRange:this.proposedSelectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(e,t,n=!0){let r=this.getCurrentSelectionRange(),i;if(e==null)i=null;else{let n=this.selectionAnchor?.side??t,r=this.selectionAnchor?.lineNumber??e;i=this.buildSelectionRange(r,e,n,t)}Gf(r??void 0,i??void 0)||(this.options.controlledSelection===!0?this.proposedSelectedRange=i:(this.selectedRange=i,this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection)),this.placeUtility(),n&&this.notifySelectionChangeDelta())}getIndexesFromSelection(e,t){if(this.pre==null)return;let n=this.getLineIndex(e.start,e.side),r=this.getLineIndex(e.end,e.endSide??e.side);return n!=null&&r!=null?{start:t?n[1]:n[0],end:t?r[1]:r[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;let e=this.pre.querySelectorAll(`[data-selected-line]`);for(let t of e)t.removeAttribute(`data-selected-line`);if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;let{children:t}=this.pre;if(t.length===0)return;if(t.length>2)throw console.error(t),Error(`InteractionManager.renderSelection: Somehow there are more than 2 code elements...`);let n=this.pre.getAttribute(`data-diff-type`)===`split`,r=this.getIndexesFromSelection(this.selectedRange,n);if(r==null)throw console.error({rowRange:r,selectedRange:this.selectedRange}),Error(`InteractionManager.renderSelection: No valid rowRange`);let i=r.start===r.end,a=Math.min(r.start,r.end),o=Math.max(r.start,r.end);for(let e of t){let[t,r]=e.children,s=r.children.length;if(s!==t.children.length)throw Error(`InteractionManager.renderSelection: gutter and content children dont match, something is wrong`);for(let e=0;e<s;e++){let s=r.children[e],c=t.children[e];if(!(s instanceof HTMLElement)||!(c instanceof HTMLElement))continue;let l=this.parseLineIndex(s,n);if((l??0)>o)break;if(l==null||l<a)continue;let u=i?`single`:l===a?`first`:l===o?`last`:``;s.setAttribute(`data-selected-line`,u),c.setAttribute(`data-selected-line`,u),c.nextSibling instanceof HTMLElement&&s.nextSibling instanceof HTMLElement&&(s.nextSibling.hasAttribute(`data-line-annotation`)||s.nextSibling.hasAttribute(`data-merge-conflict-actions`))&&(i?(u=`last`,s.setAttribute(`data-selected-line`,`first`)):l===a?u=``:l===o&&s.setAttribute(`data-selected-line`,``),s.nextSibling.setAttribute(`data-selected-line`,u),c.nextSibling.setAttribute(`data-selected-line`,u))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.getCurrentSelectionRange()??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.getCurrentSelectionRange()??null)}notifySelectionStart(e){this.options.onLineSelectionStart?.(e)}notifySelectionEnd(e){this.options.onLineSelectionEnd?.(e)}toEventBaseProps(e){return this.mode===`file`?{type:`line`,lineElement:e.lineElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn,numberElement:e.numberElement}:{type:`diff-line`,annotationSide:e.side,lineType:e.lineType,lineElement:e.lineElement,numberElement:e.numberElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn}}toTokenEventBaseProps({lineCharEnd:e,lineCharStart:t,lineNumber:n,side:r,tokenElement:i,tokenText:a}){return this.mode===`file`?{type:`token`,lineCharEnd:e,lineCharStart:t,lineNumber:n,tokenElement:i,tokenText:a}:{type:`token`,lineCharEnd:e,lineCharStart:t,lineNumber:n,side:r,tokenElement:i,tokenText:a}}buildSelectedLineRange(e,t){return this.buildSelectionRange(e.lineNumber,t.lineNumber,e.side,t.side)}buildSelectionRange(e,t,n,r){return{start:e,end:t,...n==null?{}:{side:n},...n!==r&&r!=null?{endSide:r}:{}}}resolvePointerTarget(e){let t=!1,n,r,i,a,o,s,c,l,u,d;for(let f of e){if(!(f instanceof HTMLElement))continue;if(d==null&&f.hasAttribute(`data-merge-conflict-action`)){let e=f.getAttribute(`data-merge-conflict-action`)??void 0,t=f.getAttribute(`data-merge-conflict-conflict-index`)??void 0,n=t==null?NaN:Number.parseInt(t,10);hh(e)&&Number.isFinite(n)&&(d={kind:`merge-conflict-action`,resolution:e,conflictIndex:n})}if(s==null&&f.hasAttribute(`data-char`)){s=f;let e=f.getAttribute(`data-char`);if(e!=null){let t=Number.parseInt(e,10);if(!Number.isNaN(t)){let e=f.textContent??``,n=t+e.length;(e.trim()!==``||this.options.enableTokenInteractionsOnWhitespace===!0)&&(c={tokenElement:s,lineCharStart:t,lineCharEnd:n,tokenText:e});continue}}}let e=o==null?f.getAttribute(`data-column-number`)??void 0:void 0;if(e!=null){o=f,u=Number.parseInt(e,10),t=!0,n=Ch(f),a=f.getAttribute(`data-line-index`)??void 0;continue}let p=i==null?f.getAttribute(`data-line`)??void 0:void 0;if(p!=null){i=f,u=Number.parseInt(p,10),n=Ch(f),a=f.getAttribute(`data-line-index`)??void 0;continue}if(l==null&&(f.hasAttribute(`data-expand-button`)||f.hasAttribute(`data-unmodified-lines`))){l={hunkIndex:void 0,direction:f.hasAttribute(`data-expand-up`)?`up`:f.hasAttribute(`data-expand-down`)?`down`:`both`,all:f.hasAttribute(`data-expand-all-button`)};continue}let m=l==null?void 0:f.getAttribute(`data-expand-index`)??void 0;if(l!=null&&m!=null){let e=Number.parseInt(m,10);Number.isNaN(e)||(l.hunkIndex=e);continue}if(r==null&&f.hasAttribute(`data-code`)){r=f;break}}if(d!=null)return d;if(l?.hunkIndex!=null)return{type:`line-info`,hunkIndex:l.hunkIndex,direction:l.direction,all:l.all};if(i??=a==null?void 0:gh(r,`[data-line][data-line-index="${a}"]`),o??=a==null?void 0:gh(r,`[data-column-number][data-line-index="${a}"]`),r==null||i==null||o==null||n==null||u==null||Number.isNaN(u))return;let f=this.parseLineIndex(i,this.isSplitDiff());return c==null?this.mode===`file`?{kind:`line`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:void 0,splitLineIndex:f}:{kind:`line`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:Sh(n,r),splitLineIndex:f}:this.mode===`file`?{kind:`token`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:void 0,splitLineIndex:f,...c}:{kind:`token`,lineType:n,lineElement:i,lineNumber:u,numberColumn:t,numberElement:o,side:Sh(n,r),splitLineIndex:f,...c}}isSplitDiff(){return this.pre?.getAttribute(`data-diff-type`)===`split`}parseLineIndex(e,t){let n=(e.getAttribute(`data-line-index`)??``).split(`,`).map(e=>Number.parseInt(e,10)).filter(e=>!Number.isNaN(e));if(t&&n.length===2)return n[1];if(!t)return n[0]}};function ch({enableTokenInteractionsOnWhitespace:e,enableGutterUtility:t,lineHoverHighlight:n,onGutterUtilityClick:r,onLineClick:i,onLineEnter:a,onLineLeave:o,onLineNumberClick:s,onTokenClick:c,onTokenEnter:l,onTokenLeave:u,renderGutterUtility:d,__debugPointerEvents:f,enableLineSelection:p,controlledSelection:m,onLineSelected:h,onLineSelectionStart:g,onLineSelectionChange:_,onLineSelectionEnd:v},y,b,x){return{enableTokenInteractionsOnWhitespace:e,enableGutterUtility:lh({enableGutterUtility:t,renderGutterUtility:d,onGutterUtilityClick:r}),usesCustomGutterUtility:d!=null,lineHoverHighlight:n,onGutterUtilityClick:r,onHunkExpand:y,onMergeConflictActionClick:x,onLineClick:i,onLineEnter:a,onLineLeave:o,onLineNumberClick:s,onTokenClick:c,onTokenEnter:l,onTokenLeave:u,__debugPointerEvents:f,enableLineSelection:p,controlledSelection:m,onLineSelected:h,onLineSelectionStart:g,onLineSelectionChange:_,onLineSelectionEnd:v,getLineIndex:b}}function lh({enableGutterUtility:e,renderGutterUtility:t,onGutterUtilityClick:n}){if(n!=null&&t!=null)throw Error(`Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.`);return e??!1}function uh(e){return e!=null&&`kind`in e&&e.kind===`line`}function dh(e){return e!=null&&`kind`in e&&e.kind===`token`}function fh(e){return uh(e)||dh(e)}function ph(e){return`type`in e&&e.type===`line-info`}function mh(e){return`kind`in e&&e.kind===`merge-conflict-action`}function hh(e){return e===`current`||e===`incoming`||e===`both`}function gh(e,t){let n=e?.querySelector(t);return n instanceof HTMLElement?n:void 0}function _h(e){let t=[],n=e;for(;n!=null;)t.push(n),n=n.parentNode;return t}function vh(e){let t=e.closest(`[data-line], [data-column-number]`);if(t instanceof HTMLElement)return t;let n=e.closest(`[data-line-annotation], [data-gutter-buffer="annotation"]`);if(!(n instanceof HTMLElement))return;let r=n.previousElementSibling;return r instanceof HTMLElement&&(r.hasAttribute(`data-line`)||r.hasAttribute(`data-column-number`))?r:void 0}function yh(e){let t=e.closest(`[slot^="annotation-"]`);if(t instanceof HTMLElement)return t.getAttribute(`slot`)??void 0;if(e instanceof HTMLElement){let t=e.getAttribute(`name`)??void 0;return t!=null&&t.startsWith(`annotation-`)?t:void 0}}function bh(e){if(e==null)return;let t=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(e);if(t==null)return;let n=Number.parseInt(t[2],10);if(Number.isFinite(n))return{lineNumber:n,side:t[1]}}function xh(e){return e!=null&&typeof e.elementFromPoint==`function`}function Sh(e,t){switch(e){case`change-deletion`:return`deletions`;case`change-addition`:return`additions`;default:return t.hasAttribute(`data-deletions`)?`deletions`:`additions`}}function Ch(e){let t=e.getAttribute(`data-line-type`);if(t!=null)switch(t){case`change-deletion`:case`change-addition`:case`context`:case`context-expanded`:return t;default:return}}function wh(e){for(let t of e)if(t instanceof HTMLElement&&(t.hasAttribute(`data-utility-button`)||t.hasAttribute(`data-gutter-utility-slot`)||t.getAttribute(`slot`)===`gutter-utility-slot`||t.getAttribute(`name`)===`gutter-utility-slot`))return!0;return!1}function Th(e=`none`,t,...n){switch(e){case`none`:return;case`both`:break;case`click`:if(t!==`click`)return;break;case`move`:if(t!==`move`)return}console.log(...n)}var Eh=class e{static resizeObserver;static managersByElement=new Map;static getResizeObserver(){let t=e.resizeObserver??new ResizeObserver(e.handleSharedResizeEntries);return e.resizeObserver=t,t}static handleSharedResizeEntries(t){let n=new Map;for(let r of t){let t=e.managersByElement.get(r.target);if(t==null)continue;let i=n.get(t);i==null?n.set(t,[r]):i.push(r)}for(let[e,t]of n)e.handleResizeEntries(t)}observedNodes=new Map;setup(e,t){let n=new Set,r=0,i=new Map(this.observedNodes);this.observedNodes.clear();for(let t of e.children){if(r===2)break;let e=(()=>{if(t instanceof HTMLElement&&t.tagName===`CODE`)return t})();if(e==null)continue;r++;let n=i.get(e);if(n!=null&&n.type!==`code`)throw Error(`ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible`);let a=e.firstElementChild;a instanceof HTMLElement||(a=null),n==null?(n={type:`code`,codeElement:e,numberElement:a,codeWidth:`auto`,numberWidth:0},this.observedNodes.set(e,n),this.observe(e),a!=null&&(this.observedNodes.set(a,n),this.observe(a))):(this.observedNodes.set(e,n),i.delete(e),n.numberElement===a?n.numberElement==null?n.numberWidth=0:(i.delete(n.numberElement),this.observedNodes.set(n.numberElement,n)):(n.numberElement!=null&&(this.unobserve(n.numberElement),i.delete(n.numberElement)),a!=null&&(this.observe(a),i.delete(a),this.observedNodes.set(a,n)),n.numberElement=a,n.numberWidth=0))}if(r>1&&!t){let t=e.querySelectorAll(`[data-line-annotation*=","]`),r=new Map;for(let e of t){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(`data-line-annotation`)??``;if(!/^\d+,\d+$/.test(t)){console.error(`DiffFileRenderer.setupResizeObserver: Invalid element or annotation`,{lineAnnotation:t,element:e});continue}let n=r.get(t);n??(n=[],r.set(t,n)),n.push(e)}for(let[e,t]of r){if(t.length!==2){console.error(`DiffFileRenderer.setupResizeObserver: Bad Pair`,e,t);continue}let[r,a]=t,o=r.firstElementChild,s=a.firstElementChild;if(!(r instanceof HTMLElement)||!(a instanceof HTMLElement)||!(o instanceof HTMLElement)||!(s instanceof HTMLElement))continue;let c=i.get(o);if(c!=null){this.observedNodes.set(o,c),this.observedNodes.set(s,c),i.delete(o),i.delete(s);continue}let l=o.getBoundingClientRect().height,u=s.getBoundingClientRect().height;c={type:`annotations`,column1:{container:r,child:o,childHeight:l},column2:{container:a,child:s,childHeight:u},currentHeight:`auto`},n.add({child1:o,child2:s,item:c,newHeight:Math.max(l,u)})}for(let e of n)this.applyNewHeight(e.item,e.newHeight),this.observedNodes.set(e.child1,e.item),this.observedNodes.set(e.child2,e.item),this.observe(e.child1),this.observe(e.child2);n.clear()}for(let[e,t]of i)this.unobserve(e),t.type===`code`?kh(t):Ah(t);i.clear()}cleanUp(){for(let e of this.observedNodes.keys())this.unobserve(e);this.observedNodes.clear()}observe(t){let{managersByElement:n}=e,r=n.get(t);if(r!==this){if(r!=null&&r!==this)throw Error(`ResizeManager.observe: element is already owned by another ResizeManager`);n.set(t,this),e.getResizeObserver().observe(t)}}unobserve(t){let{managersByElement:n,resizeObserver:r}=e,i=n.get(t);if(i!=null){if(i!==this)throw Error(`ResizeManager.unobserve: element is owned by another ResizeManager`);n.delete(t),r?.unobserve(t),r!=null&&n.size===0&&(r.disconnect(),e.resizeObserver=void 0)}}handleResizeEntries(e){let t=new Map,n=new Set;for(let r of e){let{target:e,borderBoxSize:i,contentBoxSize:a}=r;if(!(e instanceof HTMLElement)){console.error(`ResizeManager.handleResizeEntries: Invalid element for ResizeObserver`,r);continue}let o=this.observedNodes.get(e);if(o==null){console.error(`ResizeManager.handleResizeEntries: Not a valid observed node`,r);continue}if(o.type===`annotations`){let t=(()=>{if(e===o.column1.child)return o.column1;if(e===o.column2.child)return o.column2})();if(t==null){console.error(`ResizeManager.handleResizeEntries: Couldn't find a column for`,{item:o,target:e});continue}t.childHeight=i[0].blockSize,n.add(o)}else if(o.type===`code`){let n=t.get(o)??{},r=a[0].inlineSize;e===o.codeElement?n.codeInlineSize=r:e===o.numberElement&&(n.numberInlineSize=r),t.set(o,n)}}this.applyAnnotationUpdates(n),n.clear(),this.applyColumnUpdates(t),t.clear()}applyAnnotationUpdates(e){for(let t of e)this.applyNewHeight(t,Math.max(t.column1.childHeight,t.column2.childHeight))}applyColumnUpdates=e=>{for(let[t,n]of e){let e=n.codeInlineSize==null?t.codeWidth:Dh(n.codeInlineSize),r=n.numberInlineSize==null?t.numberWidth:Oh(n.numberInlineSize),i=e!==t.codeWidth,a=r!==t.numberWidth;if((i||a)&&(t.codeWidth=e,t.numberWidth=r,i&&t.codeElement.style.setProperty(`--diffs-column-width`,`${typeof e==`number`?`${e}px`:`auto`}`),a&&t.codeElement.style.setProperty(`--diffs-column-number-width`,`${r===0?`auto`:`${r}px`}`),i||a&&e!==`auto`)){let n=typeof e==`number`?Math.max(e-r,0):0;t.codeElement.style.setProperty(`--diffs-column-content-width`,`${n>0?`${n}px`:`auto`}`)}}};applyNewHeight(e,t){t!==e.currentHeight&&(e.currentHeight=Math.max(t,0),e.column1.container.style.setProperty(`--diffs-annotation-min-height`,`${e.currentHeight}px`),e.column2.container.style.setProperty(`--diffs-annotation-min-height`,`${e.currentHeight}px`))}};function Dh(e){let t=Math.max(Math.floor(e),0);return t===0?`auto`:t}function Oh(e){return Math.max(Math.ceil(e),0)}function kh(e){e.codeElement.isConnected&&(e.codeElement.style.removeProperty(`--diffs-column-content-width`),e.codeElement.style.removeProperty(`--diffs-column-number-width`),e.codeElement.style.removeProperty(`--diffs-column-width`))}function Ah(e){e.column1.container.isConnected&&e.column1.container.style.removeProperty(`--diffs-annotation-min-height`),e.column2.container.isConnected&&e.column2.container.style.removeProperty(`--diffs-annotation-min-height`)}var jh=new Map,Mh=new Map,Nh=new Map,Ph=new Set;function Fh(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!Ph.has(t))return!1;return!0}function Ih(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(Ph.has(n.name))continue;let e=jh.get(n.name);e??(e=n,jh.set(n.name,e)),Ph.add(e.name),t.loadLanguageSync(e.data)}}function Lh(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var Rh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Bh=Object.getOwnPropertyNames,Vh=Object.prototype.hasOwnProperty,Hh=(e,t)=>{let n={};for(var r in e)Rh(n,r,{get:e[r],enumerable:!0});return t||Rh(n,Symbol.toStringTag,{value:`Module`}),n},Uh=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Bh(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Vh.call(e,s)&&s!==n&&Rh(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=zh(t,s))||r.enumerable});return e},Wh=(e,t,n)=>(Uh(e,t,`default`),n&&Uh(n,t,`default`)),Gh=[{id:`abap`,name:`ABAP`,import:(()=>Y(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>Y(()=>import(`./actionscript-3-Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>Y(()=>import(`./ada-C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>Y(()=>import(`./ahk-CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>Y(()=>import(`./ahk2-_6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>Y(()=>import(`./angular-html-DzRW817u.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>Y(()=>import(`./angular-ts-Dwpo5JSv.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>Y(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>Y(()=>import(`./apex-KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>Y(()=>import(`./apl-bt59SDvg.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>Y(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>Y(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>Y(()=>import(`./asciidoc-SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>Y(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>Y(()=>import(`./astro-B3siF1pJ.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>Y(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>Y(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>Y(()=>import(`./bat-qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>Y(()=>import(`./beancount-D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>Y(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>Y(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>Y(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>Y(()=>import(`./bird2-CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>Y(()=>import(`./blade-BevF_cYv.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>Y(()=>import(`./bsl-_VjlB9mv.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>Y(()=>import(`./c-gavBjOcY.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>Y(()=>import(`./c3-D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>Y(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>Y(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>Y(()=>import(`./chapel-DgshBe1K.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>Y(()=>import(`./clarity-CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>Y(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>Y(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>Y(()=>import(`./cobol-D5zqvXzY.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>Y(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>Y(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>Y(()=>import(`./coffee-SCAyVn9N.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>Y(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>Y(()=>import(`./coq-DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>Y(()=>import(`./cpp-RUQ97EK5.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>Y(()=>import(`./crystal-FauNVdkE.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>Y(()=>import(`./csharp-oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>Y(()=>import(`./css-DuzOk7di.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>Y(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>Y(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>Y(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>Y(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>Y(()=>import(`./dart-CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>Y(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>Y(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>Y(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>Y(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>Y(()=>import(`./dotenv-_5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>Y(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>Y(()=>import(`./edge-Bc0EBQ7y.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>Y(()=>import(`./elixir-BmxsT0oc.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>Y(()=>import(`./elm-BrTAZ55m.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>Y(()=>import(`./emacs-lisp-c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>Y(()=>import(`./erb-B60HRxmg.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>Y(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>Y(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>Y(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>Y(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>Y(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>Y(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>Y(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>Y(()=>import(`./gdresource-xMC7jr7x.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>Y(()=>import(`./gdscript-DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>Y(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>Y(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>Y(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>Y(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>Y(()=>import(`./git-rebase-CK9f68l3.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>Y(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>Y(()=>import(`./glimmer-js-CVc7keaR.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>Y(()=>import(`./glimmer-ts-DYraWlmH.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>Y(()=>import(`./glsl-BpYswgfh.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>Y(()=>import(`./gn-ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>Y(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>Y(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>Y(()=>import(`./graphql-C3iDzxap.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>Y(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>Y(()=>import(`./hack-D8oEoipZ.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>Y(()=>import(`./haml-BJb-BQAN.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>Y(()=>import(`./handlebars-wB54lHaB.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>Y(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>Y(()=>import(`./haxe-C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>Y(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>Y(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>Y(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>Y(()=>import(`./html-HIvKkSZ3.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>Y(()=>import(`./html-derivative-CDavbmdn.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>Y(()=>import(`./http-DEgShh0-.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>Y(()=>import(`./hurl-D8wvJcyh.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>Y(()=>import(`./hxml-Dcm88srW.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>Y(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>Y(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>Y(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>Y(()=>import(`./java-C5iWdXOl.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>Y(()=>import(`./javascript-PMSXGhX1.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>Y(()=>import(`./jinja-CJ_l63gX.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>Y(()=>import(`./jison-DGaZyJAT.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>Y(()=>import(`./json-CCQ1eo9o.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>Y(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>Y(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>Y(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>Y(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>Y(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>Y(()=>import(`./jsx-DeLT99JL.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>Y(()=>import(`./julia-DODLsulx.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>Y(()=>import(`./just-B_Nvjvhv.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>Y(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>Y(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>Y(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>Y(()=>import(`./latex-CCjy2I9z.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>Y(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>Y(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>Y(()=>import(`./liquid-C2tknZP0.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>Y(()=>import(`./llvm-DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>Y(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>Y(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>Y(()=>import(`./lua-D6UzQw5Z.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>Y(()=>import(`./luau-C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>Y(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>Y(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>Y(()=>import(`./marko-CGd5W4Hn.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>Y(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>Y(()=>import(`./mdc-Bp5z92Vo.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>Y(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>Y(()=>import(`./mermaid-BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>Y(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>Y(()=>import(`./mojo-fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>Y(()=>import(`./moonbit-DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>Y(()=>import(`./move-BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>Y(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>Y(()=>import(`./nextflow-BJtWHP5T.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>Y(()=>import(`./nextflow-groovy-DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>Y(()=>import(`./nginx-DAsqAd3h.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>Y(()=>import(`./nim-COOJz623.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>Y(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>Y(()=>import(`./nsis-CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>Y(()=>import(`./nushell-DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>Y(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>Y(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>Y(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>Y(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>Y(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>Y(()=>import(`./org-CBV1qqrA.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>Y(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>Y(()=>import(`./perl-6SV_ayGd.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>Y(()=>import(`./php-BUb-Io9m.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>Y(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>Y(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>Y(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>Y(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>Y(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>Y(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>Y(()=>import(`./powershell-CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>Y(()=>import(`./prisma-DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>Y(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>Y(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>Y(()=>import(`./pug-D5s94d1b.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>Y(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>Y(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>Y(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>Y(()=>import(`./qml-D8g4NGVo.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>Y(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>Y(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>Y(()=>import(`./r-DXvz5K4A.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>Y(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>Y(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>Y(()=>import(`./razor-D9CjUAvE.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>Y(()=>import(`./rbs-C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>Y(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>Y(()=>import(`./regexp-CnuLvLnC.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>Y(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>Y(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>Y(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>Y(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>Y(()=>import(`./rst-Chdv5DuC.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>Y(()=>import(`./ruby-DXQkNv8k.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>Y(()=>import(`./rust-Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>Y(()=>import(`./sas-B6S0Oq1H.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>Y(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>Y(()=>import(`./scala-BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>Y(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>Y(()=>import(`./scss-BnFPXH54.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>Y(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>Y(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>Y(()=>import(`./shellscript-Brdg8vyE.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>Y(()=>import(`./shellsession-Df33UGC7.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>Y(()=>import(`./smalltalk-BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>Y(()=>import(`./smithy-Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>Y(()=>import(`./solidity-Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>Y(()=>import(`./soy-DE83qari.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>Y(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>Y(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>Y(()=>import(`./sql-C838IanB.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>Y(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>Y(()=>import(`./stata-BjrFc6Ob.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>Y(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>Y(()=>import(`./surrealql-BQl2P64c.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>Y(()=>import(`./svelte-WhVuP9VM.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>Y(()=>import(`./swift-CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>Y(()=>import(`./system-verilog-Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>Y(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>Y(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>Y(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>Y(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>Y(()=>import(`./templ-GlyHWfam.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>Y(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>Y(()=>import(`./tex-Wu25UU_Z.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>Y(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>Y(()=>import(`./ts-tags-C6TgXLV6.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>Y(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>Y(()=>import(`./tsx-DVoPHges.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>Y(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>Y(()=>import(`./twig-CKzx4A42.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>Y(()=>import(`./typescript-DvXz8u_k.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>Y(()=>import(`./typespec-BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>Y(()=>import(`./typst-BcepwfpV.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>Y(()=>import(`./v-DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>Y(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>Y(()=>import(`./vb-DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>Y(()=>import(`./verilog-B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>Y(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>Y(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>Y(()=>import(`./vue-Bqzme_T-.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>Y(()=>import(`./vue-html-DZHKNOUy.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>Y(()=>import(`./vue-vine-azvFs0P6.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>Y(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>Y(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>Y(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>Y(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>Y(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>Y(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>Y(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>Y(()=>import(`./xml-BZNC4g25.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>Y(()=>import(`./xsl-DXEWaWc5.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>Y(()=>import(`./yaml-DLY3wDEk.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>Y(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>Y(()=>import(`./zig-CMLA9XwU.js`),[]))}],Kh=Object.fromEntries(Gh.map(e=>[e.id,e.import])),qh=Object.fromEntries(Gh.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Jh={...Kh,...qh},Yh=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>Y(()=>import(`./andromeeda-vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>Y(()=>import(`./aurora-x-CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>Y(()=>import(`./ayu-dark-DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>Y(()=>import(`./ayu-light-C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>Y(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>Y(()=>import(`./catppuccin-frappe-C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>Y(()=>import(`./catppuccin-latte-CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>Y(()=>import(`./catppuccin-macchiato-R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>Y(()=>import(`./catppuccin-mocha-DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>Y(()=>import(`./dark-plus-Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>Y(()=>import(`./dracula-BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>Y(()=>import(`./dracula-soft-5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>Y(()=>import(`./everforest-dark-sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>Y(()=>import(`./everforest-light-Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>Y(()=>import(`./github-dark-C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>Y(()=>import(`./github-dark-default-DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>Y(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>Y(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>Y(()=>import(`./github-light-EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>Y(()=>import(`./github-light-default-BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>Y(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>Y(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>Y(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>Y(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>Y(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>Y(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>Y(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>Y(()=>import(`./horizon-CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>Y(()=>import(`./horizon-bright-DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>Y(()=>import(`./houston-CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>Y(()=>import(`./kanagawa-dragon-Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>Y(()=>import(`./kanagawa-lotus-BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>Y(()=>import(`./kanagawa-wave-BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>Y(()=>import(`./laserwave-C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>Y(()=>import(`./light-plus-DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>Y(()=>import(`./material-theme-Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>Y(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>Y(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>Y(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>Y(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>Y(()=>import(`./min-dark-BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>Y(()=>import(`./min-light-DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>Y(()=>import(`./monokai-B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>Y(()=>import(`./night-owl-DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>Y(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>Y(()=>import(`./nord-Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>Y(()=>import(`./one-dark-pro-CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>Y(()=>import(`./one-light-D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>Y(()=>import(`./plastic-DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>Y(()=>import(`./poimandres-DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>Y(()=>import(`./red-DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>Y(()=>import(`./rose-pine-aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>Y(()=>import(`./rose-pine-dawn-8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>Y(()=>import(`./rose-pine-moon-DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>Y(()=>import(`./slack-dark-DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>Y(()=>import(`./slack-ochin-B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>Y(()=>import(`./snazzy-light-4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>Y(()=>import(`./solarized-dark-UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>Y(()=>import(`./solarized-light-C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>Y(()=>import(`./synthwave-84-nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>Y(()=>import(`./tokyo-night-oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>Y(()=>import(`./vesper-DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>Y(()=>import(`./vitesse-black-fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>Y(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>Y(()=>import(`./vitesse-light-VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),Xh=s({createOnigurumaEngine:()=>wg,getDefaultWasmLoader:()=>Cg,loadWasm:()=>_g,setDefaultWasmLoader:()=>Sg}),Zh=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Qh(){return 2147483648}function $h(){return typeof performance<`u`?performance.now():Date.now()}var eg=(e,t)=>e+(t-e%t)%t;async function tg(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=Qh();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,eg(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:$h,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var ng=Object.defineProperty,rg=(e,t,n)=>t in e?ng(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ig=(e,t,n)=>rg(e,typeof t==`symbol`?t:t+``,n),ag=null;function og(e){throw new Zh(e.UTF8ToString(e.getLastOnigError()))}var sg=class e{constructor(t){ig(this,`utf16Length`),ig(this,`utf8Length`),ig(this,`utf16Value`),ig(this,`utf8Value`),ig(this,`utf16OffsetToUtf8`),ig(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},cg=class e{constructor(t){if(ig(this,`id`,++e.LAST_ID),ig(this,`_onigBinding`),ig(this,`content`),ig(this,`utf16Length`),ig(this,`utf8Length`),ig(this,`utf16OffsetToUtf8`),ig(this,`utf8OffsetToUtf16`),ig(this,`ptr`),!ag)throw new Zh(`Must invoke loadWasm first.`);this._onigBinding=ag,this.content=t;let n=new sg(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=ag.omalloc(1e4),e._sharedPtrInUse=!0,ag.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(ag)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ig(cg,`LAST_ID`,0),ig(cg,`_sharedPtr`,0),ig(cg,`_sharedPtrInUse`,!1);var lg=cg,ug=class{constructor(e){if(ig(this,`_onigBinding`),ig(this,`_ptr`),!ag)throw new Zh(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new sg(e[r]);t[r]=i.createString(ag),n[r]=i.utf8Length}let r=ag.omalloc(4*e.length);ag.HEAPU32.set(t,r/4);let i=ag.omalloc(4*e.length);ag.HEAPU32.set(n,i/4);let a=ag.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)ag.ofree(t[n]);ag.ofree(i),ag.ofree(r),a===0&&og(ag),this._onigBinding=ag,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new lg(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function dg(e){return typeof e.instantiator==`function`}function fg(e){return typeof e.default==`function`}function pg(e){return e.data!==void 0}function mg(e){return typeof Response<`u`&&e instanceof Response}function hg(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}var gg;function _g(e){if(gg)return gg;async function t(){ag=await tg(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),dg(n)?n=await n.instantiator(t):fg(n)?n=await n.default(t):(pg(n)&&(n=n.data),mg(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await yg(n)(t):await bg(n)(t):hg(n)||n instanceof WebAssembly.Module?n=await vg(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await vg(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return gg=t(),gg}function vg(e){return t=>WebAssembly.instantiate(e,t)}function yg(e){return t=>WebAssembly.instantiateStreaming(e,t)}function bg(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var xg;function Sg(e){xg=e}function Cg(){return xg}async function wg(e){return e&&await _g(e),{createScanner(e){return new ug(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new lg(e)}}}var Tg=Hh({});Wh(Tg,Xh);var Eg=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Dg(e){return Og(e)}function Og(e){return Array.isArray(e)?kg(e):e instanceof RegExp?e:typeof e==`object`?Ag(e):e}function kg(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Og(e[n]);return t}function Ag(e){let t={};for(let n in e)t[n]=Og(e[n]);return t}function jg(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Mg(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Mg(e.substring(0,e.length-1)):e.substr(~t+1)}var Ng=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Pg=class{static hasCaptures(e){return e!==null&&(Ng.lastIndex=0,Ng.test(e))}static replaceCaptures(e,t,n){return e.replace(Ng,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Fg(e,t){return e<t?-1:+(e>t)}function Ig(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Fg(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Lg(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 Rg(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var zg=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Bg=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Gg(e),t)}static createFromParsedTheme(e,t){return Jg(e,t)}_cachedMatchRoot=new zg(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Hg(e.parent,t.parentScopes));return n?new Wg(n.fontStyle,n.foreground,n.background):null}},Vg=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Hg(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Ug(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ug(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Wg=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Gg(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&Lg(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Lg(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Kg(l,u,e,o,s,c)}}return n}var Kg=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},qg=(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))(qg||{});function Jg(e,t){e.sort((e,t)=>{let n=Fg(e.scope,t.scope);return n!==0||(n=Ig(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Yg(t),o=new Wg(n,a.getId(r),a.getId(i)),s=new Qg(new Zg(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Bg(a,o,s)}var Yg=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 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)}},Xg=Object.freeze([]),Zg=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Xg,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Qg=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),Zg.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Ig(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Zg(e,t,n,r,i))}},$g=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=t_(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function e_(e){return e}function t_(e){return e}function n_(e,t){let n=[],r=i_(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(r_(i)){let e=[];do e.push(i),i=r.next();while(r_(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function r_(e){return!!e&&!!e.match(/[\w\.:]+/)}function i_(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function a_(e){typeof e.dispose==`function`&&e.dispose()}var o_=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},s_=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},c_=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},l_=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new o_(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new c_;for(let n of e)u_(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof o_){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function u_(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof o_?f_({baseGrammar:a,selfGrammar:i},r):d_(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new o_(e))}function d_(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];p_([r],t,n)}}function f_(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&p_(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&p_(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function p_(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?jg({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&p_(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=y_(i);switch(a.kind){case 0:f_({...t,selfGrammar:t.baseGrammar},n);break;case 1:f_(t,n);break;case 2:d_(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?d_(a.ruleName,i,n):f_(i,n)}else a.kind===4?n.add(new s_(a.scopeName,a.ruleName)):n.add(new o_(a.scopeName))}}}var m_=class{kind=0},h_=class{kind=1},g_=class{constructor(e){this.ruleName=e}kind=2},__=class{constructor(e){this.scopeName=e}kind=3},v_=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function y_(e){if(e===`$base`)return new m_;if(e===`$self`)return new h_;let t=e.indexOf(`#`);return t===-1?new __(e):t===0?new g_(e.substring(1)):new v_(e.substring(0,t),e.substring(t+1))}var b_=/\\(\d+)/,x_=/\\(\d+)/g,S_=-1,C_=-2;function w_(e){return e}function T_(e){return e}var E_=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Pg.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Pg.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Mg(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:Pg.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Pg.replaceCaptures(this._contentName,e,t)}},D_=class extends E_{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},O_=class extends E_{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new N_(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new P_,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},k_=class extends E_{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new P_,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},A_=class extends E_{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new N_(i,this.id),this.beginCaptures=a,this._end=new N_(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),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,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new P_;for(let t of this.patterns)e.getRule(t).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}},j_=class extends E_{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new N_(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new N_(o,C_),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),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,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new P_;for(let 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,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new P_,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},M_=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new D_(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new O_(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=jg({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new k_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new j_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new A_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=y_(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof k_||e instanceof A_||e instanceof j_)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},N_=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&b_.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return x_.lastIndex=0,this.source.replace(x_,(e,t)=>Rg(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},P_=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(),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(e=>e.source);this._cached=new F_(e,t,this._items.map(e=>e.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){return new F_(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},F_=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(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
25
25
  `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},I_=class{constructor(e,t){this.languageId=e,this.tokenType=t}},L_=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new I_(e,8),this._embeddedLanguagesMatcher=new R_(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new I_(0,0);_getBasicScopeAttributes=new zg(e=>new I_(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.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 Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},R_=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>Rg(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var z_=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function B_(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=V_(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new z_(i,!0);f()}return new z_(i,!1);function f(){let o=H_(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===S_){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),q_(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof A_){let r=o;q_(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof j_){let r=o;q_(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(q_(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function V_(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof j_&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=K_(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==C_){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),q_(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function H_(e,t,n,r,i,a){let o=U_(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=W_(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function U_(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=G_(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function W_(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=G_(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function G_(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function K_(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function q_(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));B_(e,p,n&&d.start===0,d.start,f,i,!1,0),a_(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new J_(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var J_=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Y_(e,t,n,r,i,a,o,s){return new $_(e,t,n,r,i,a,o,s)}function X_(e,t,n,r,i){let a=n_(t,Z_),o=M_.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function Z_(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(Q_(t[r],e))return n=r+1,!0;return!1})}function Q_(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var $_=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new L_(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ev(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=n_(e,Z_);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let 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(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)X_(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&X_(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(w_(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[T_(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ev(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=M_.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===nv.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=$g.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?tv.createRootAndLookUpScopeName(a,r,this):tv.createRoot(`unknown`,r),t=new nv(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
26
26
  `;let a=this.createOnigString(e),o=a.content.length,s=new iv(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=B_(this,a,i,0,t,s,!0,r);return a_(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function ev(e,t){return e=Dg(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 tv=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Vg.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Vg(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Vg(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(1)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),$g.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},nv=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?tv.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(1)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:T_(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){let r=tv.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,w_(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,tv.fromExtension(r,n.contentNameScopesList))}},rv=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):n_(e,Z_).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>n_(e,Z_).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},iv=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,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 n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=$g.set(n,0,e_(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=$g.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let 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);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},av=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let 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,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,Y_(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},ov=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new av(Bg.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Bg.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new rv(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new l_(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},sv=nv.NULL;function cv(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function lv(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function uv(e){return Array.isArray(e)?e:[e]}async function dv(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function fv(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function pv(e){return e===`ansi`||fv(e)}function mv(e){return e===`none`}function hv(e){return mv(e)}var gv=/(\r?\n)/g;function _v(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(gv),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var vv={light:`#333333`,dark:`#bbbbbb`},yv={light:`#fffffe`,dark:`#1e1e1e`},bv=`__shiki_resolved`;function xv(e){if(e?.[bv])return e;let 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:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?vv.light:vv.dark,n||=t.type===`light`?yv.light:yv.dark,t.fg=r,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 i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,bv,{enumerable:!1,writable:!1,value:!0}),t}async function Sv(e){return[...new Set((await Promise.all(e.filter(e=>!pv(e)).map(async e=>await dv(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function Cv(e){return(await Promise.all(e.map(async e=>hv(e)?null:xv(await dv(e))))).filter(e=>!!e)}function wv(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Eg(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var Tv=class extends ov{_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,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=xv(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Bg.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=wv(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Eg(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return 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);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Ev=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}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).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},Dv=0;function Ov(e){Dv+=1,e.warnings!==!1&&Dv>=10&&Dv%10==0&&console.warn(`[Shiki] ${Dv} 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 Eg("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(xv),i=new Tv(new Ev(e.engine,n),r,n,e.langAlias),a;function o(t){return wv(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Eg(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Eg(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Sv(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Cv(e))}function g(){if(t)throw new Eg(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--Dv)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function kv(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Cv(e.themes||[]),Sv(e.langs||[]),e.engine]);return Ov({...e,themes:t,langs:n,engine:r})}var Av=new WeakMap;function jv(e,t){Av.set(e,t)}function Mv(e){return Av.get(e)}var Nv=class e{_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 e(Object.fromEntries(uv(n).map(e=>[e,sv])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Pv(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Pv(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function Fv(e,t){if(!(e instanceof Nv))throw new Eg(`Invalid grammar state`);return e.getInternalStack(t)}var Iv=/,/,Lv=/ /;function Rv(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(fv(e.resolveLangAlias(n.lang||`text`))||mv(r))return _v(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new Eg(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new Eg(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Bv(t,o,i,a,n)}function zv(...e){if(e.length===2)return Mv(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(fv(i)||mv(a))throw new Eg(`Plain language does not have grammar state`);if(i===`ansi`)throw new Eg(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Nv(Vv(n,c,o,s,r).stateStack,c.name,o.name)}function Bv(e,t,n,r,i){let a=Vv(e,t,n,r,i),o=new Nv(a.stateStack,t.name,n.name);return jv(a.tokens,o),a.tokens}function Vv(e,t,n,r,i){let a=cv(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=_v(e),u=i.grammarState?Fv(i.grammarState,n.name)??sv:i.grammarContextCode==null?sv:Vv(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=lv(r[$g.getForeground(s)],a),u=$g.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=$g.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(Iv).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(Lv))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?Hv(t.scopes):Uv(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function Hv(e){return e.map(e=>({scopeName:e}))}function Uv(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:Kv(e,i,t.slice(0,r))}}return n}function Wv(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Gv(e,t,n){if(!Wv(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Wv(e[r],n[i])&&--r,--i;return r===-1}function Kv(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Gv(e,t,n)){r.push(a);break}return r}function qv(e,t,n,r=Rv){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:Mv(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=Jv(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new Nv(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&jv(s,c),s}function Jv(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var Yv=/\s+/g;function Xv(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(Yv)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(Yv);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}var Zv=/:?lang=["']([^"']+)["']/g,Qv=/(?:```|~~~)([\w-]+)/g,$v=/\\begin\{([\w-]+)\}/g,ey=/<script\s+(?:type|lang)=["']([^"']+)["']/gi,ty=/^\s*---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\s*$)/;function ny(e){let t=_v(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function ry(e,t,n){let r=new Set;for(let t of e.matchAll(Zv)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(Qv)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll($v)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(ey)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(ty.test(e)&&r.add(`yaml`),!n)return[...r];let i=n.getBundledLanguages();return[...r].filter(e=>e&&i[e])}var iy=[`color`,`background-color`];function ay(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function oy(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function sy(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=oy(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return ay(e,a)})):e}function cy(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>ly(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&iy.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new Eg('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function ly(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&qg.Italic&&(t[`font-style`]=`italic`),e.fontStyle&qg.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&qg.Underline&&n.push(`underline`),e.fontStyle&qg.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function uy(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function dy(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=ny(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new Eg(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new Eg(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new Eg(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));fy(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return sy(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new Eg(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=py(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new Eg(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new Eg(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&Xv(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function fy(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new Eg(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new Eg(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function py(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(py).join(``):``}var my=[dy()];function hy(e){let t=gy(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...my]}function gy(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var _y=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],vy={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function yy(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function by(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function xy(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)vy[r]&&t.push({type:`setDecoration`,value:vy[r]});else if(r<=29){let e=vy[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:_y[r-30]}});else if(r===38){let n=by(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:_y[r-40]}});else if(r===48){let n=by(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:_y[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:_y[r-100+8]}})}}return t}function Sy(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=yy(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=xy(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var Cy={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function wy(e=Cy){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<_y.length;e++)r.push(t(_y[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var Ty=/#([0-9a-f]{3,8})/i,Ey=/var\((--[\w-]+-ansi-[\w-]+)\)/,Dy={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function Oy(e,t,n){let r=cv(e,n),i=_v(t),a=wy(Object.fromEntries(_y.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Dy[t]]}))),o=Sy();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=lv(i,r),o=lv(o,r),n.decorations.has(`dim`)&&(i=ky(i));let s=qg.None;return n.decorations.has(`bold`)&&(s|=qg.Bold),n.decorations.has(`italic`)&&(s|=qg.Italic),n.decorations.has(`underline`)&&(s|=qg.Underline),n.decorations.has(`strikethrough`)&&(s|=qg.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function ky(e){let t=e.match(Ty);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(Ey);return n?`var(${n[1]}-dim)`:e}function Ay(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!fv(r)&&!mv(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return Oy(r,t,n)}return Rv(e,t,n)}function jy(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new Eg("`themes` option must not be empty");let p=qv(e,t,n,Ay);if(c=Mv(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new Eg(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>cy(e,h,u,l,d))),c&&jv(a,c);let g=f.map(e=>cv(e.theme,n));i=My(f,m,g,u,l,`fg`,d),r=My(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=cv(n.theme,n);a=Ay(e,t,n);let l=e.getTheme(n.theme);r=lv(l.bg,s),i=lv(l.fg,s),o=l.name,c=Mv(a)}else throw new Eg("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function My(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=lv(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new Eg('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${lv(t[r][a],n[r])||`inherit`}, ${lv(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var Ny=/^\s+$/,Py=/^(\s*)(.*?)(\s*)$/;function Fy(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>Fy(e,t,n),codeToTokens:(t,n)=>jy(e,t,n)}){let i=t;for(let e of hy(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=jy(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Ly(a):d===`never`&&(a=Ry(a)),f&&(a=zy(a));let p={...r,get source(){return i}};for(let e of hy(n))a=e.tokens?.call(p,a)||a;return Iy(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function Iy(e,t,n,r=Mv(e)){let i=hy(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:Xv,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
27
27
  `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=uy(a.htmlStyle||ly(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&jv(m,r),m}function Ly(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&qg.Underline||i.fontStyle&qg.Strikethrough));o&&Ny.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Ry(e){return e.map(e=>e.flatMap(e=>{if(Ny.test(e.content))return e;let t=e.content.match(Py);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function zy(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=uy(e.htmlStyle||ly(e)),i=uy(n.htmlStyle||ly(n)),a=e.fontStyle&&(e.fontStyle&qg.Underline||e.fontStyle&qg.Strikethrough),o=n.fontStyle&&(n.fontStyle&qg.Underline||n.fontStyle&qg.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var By=ih;function Vy(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Fy(e,t,n),codeToTokens:(t,n)=>jy(e,t,n)},i=By(Fy(e,t,n,r));for(let e of hy(n))i=e.postprocess?.call(r,i,n)||i;return i}async function Hy(e){let t=await kv(e);return{getLastGrammarState:(...e)=>zv(t,...e),codeToTokensBase:(e,n)=>Ay(t,e,n),codeToTokensWithThemes:(e,n)=>qv(t,e,n),codeToTokens:(e,n)=>jy(t,e,n),codeToHast:(e,n)=>Fy(t,e,n),codeToHtml:(e,n)=>Vy(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Uy(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,pv(n))return[];let r=t[n];if(!r)throw new Eg(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(hv(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new Eg(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await Hy({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function Wy(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function Gy(e,t){let n=Wy(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var Ky=Uy({langs:Jh,themes:Yh,engine:()=>(0,Tg.createOnigurumaEngine)(Y(()=>import(`./wasm-BnjxR4X6.js`),[]))}),{codeToHtml:qy,codeToHast:Jy,codeToTokens:Yy,codeToTokensBase:Xy,codeToTokensWithThemes:Zy,getSingletonHighlighter:Qy,getLastGrammarState:$y}=Gy(Ky,{guessEmbeddedLanguages:ry}),eb=4294967295,tb=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:eb,end:eb,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function nb(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function rb(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var ib=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),ab=String.raw;function ob(e,t){if(e==null)throw Error(t??`Value expected`);return e}var sb=ab`\[\^?`,cb=`c.? | C(?:-.?)?|${ab`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ab`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ab`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ab`o\{[^\}]*\}?`}|${ab`\d{1,3}`}`,lb=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ub=new RegExp(ab`
@@ -777,9 +777,11 @@ ${this.parser.parse(e)}</blockquote>
777
777
  ${e}</tr>
778
778
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
779
779
  `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${QV(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=$V(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+QV(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=$V(e);if(i===null)return QV(n);e=i;let a=`<img src="${e}" alt="${QV(n)}"`;return t&&(a+=` title="${QV(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:QV(e.text)}},uH=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},dH=class e{options;renderer;textRenderer;constructor(e){this.options=e||MB,this.options.renderer=this.options.renderer||new lH,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new uH}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},fH=class{options;block;constructor(e){this.options=e||MB}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?cH.lex:cH.lexInline}provideParser(e=this.block){return e?dH.parse:dH.parseInline}},pH=class{defaults=jB();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=dH;Renderer=lH;TextRenderer=uH;Lexer=cH;Tokenizer=sH;Hooks=fH;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new lH(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new sH(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new fH;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=fH.passThroughHooks.has(n)?e=>{if(this.defaults.async&&fH.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return cH.lex(e,t??this.defaults)}parser(e,t){return dH.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?cH.lex:cH.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?dH.parse:dH.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?cH.lex:cH.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?dH.parse:dH.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
780
- Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+QV(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},mH=new pH;function hH(e,t){return mH.parse(e,t)}hH.options=hH.setOptions=function(e){return mH.setOptions(e),hH.defaults=mH.defaults,NB(hH.defaults),hH},hH.getDefaults=jB,hH.defaults=MB;function gH(...e){return mH.use(...e),hH.defaults=mH.defaults,NB(hH.defaults),hH}hH.use=gH,hH.walkTokens=function(e,t){return mH.walkTokens(e,t)},hH.parseInline=mH.parseInline,hH.Parser=dH,hH.parser=dH.parse,hH.Renderer=lH,hH.TextRenderer=uH,hH.Lexer=cH,hH.lexer=cH.lex,hH.Tokenizer=sH,hH.Hooks=fH,hH.parse=hH,hH.options,hH.setOptions,hH.walkTokens,hH.parseInline,dH.parse,cH.lex;function _H(){return new pH({renderer:{link({href:e,title:t,text:n}){return`<a href="${e}"${t?` title="${t}"`:``} class="external-link" target="_blank" rel="noopener noreferrer">${n}</a>`}}})}var vH;function yH(e){if(e.length>1024||e.includes(`\\(`)||e.includes(`$$`))return;let t=vH??=_H(),n=t.lexer(e),r=!1;if(t.walkTokens(n,e=>{e.type===`code`&&(r=!0)}),!r)return t.parser(n)}function bH(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xH(e){if(Array.isArray(e))return e}function SH(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function CH(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
780
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+QV(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},mH=new pH;function hH(e,t){return mH.parse(e,t)}hH.options=hH.setOptions=function(e){return mH.setOptions(e),hH.defaults=mH.defaults,NB(hH.defaults),hH},hH.getDefaults=jB,hH.defaults=MB;function gH(...e){return mH.use(...e),hH.defaults=mH.defaults,NB(hH.defaults),hH}hH.use=gH,hH.walkTokens=function(e,t){return mH.walkTokens(e,t)},hH.parseInline=mH.parseInline,hH.Parser=dH,hH.parser=dH.parse,hH.Renderer=lH,hH.TextRenderer=uH,hH.Lexer=cH,hH.lexer=cH.lex,hH.Tokenizer=sH,hH.Hooks=fH,hH.parse=hH,hH.options,hH.setOptions,hH.walkTokens,hH.parseInline,dH.parse,cH.lex;function _H(){return new pH({renderer:{link({href:e,title:t,text:n}){return`<a href="${e}"${t?` title="${t}"`:``} class="external-link" target="_blank" rel="noopener noreferrer">${n}</a>`}}})}var vH;function yH(e){if(e.length>1024||e.includes(`\\(`)||e.includes(`$$`))return;if(/^[\p{L}\p{N} \t\r\n,.;:!?'"’“”()\-–—…$%]+$/u.test(e)&&!/(?:^|[\r\n])(?:[ \t]|\d|[-])| {2}(?:\r\n?|\n)|www\./.test(e))return e.replace(/\r\n?/g,`
781
+ `).replace(/^\n+|\n+$/g,``).split(/\n{2,}/).filter(Boolean).map(e=>`<p>${e.replace(/["']/g,e=>e===`"`?`&quot;`:`&#39;`)}</p>\n`).join(``);let t=vH??=_H(),n=e.replace(/\r\n?/g,`
782
+ `);if(!/[<|]/.test(n)&&!/^(?:[ \t>\d\[\-=]|#{1,6}(?:[ \t]|$)|[`~]{3}|[+*](?:[ \t]|$)|(?:[*_][ \t]*){3,}$)/m.test(n))return n.replace(/^\n+|\n+$/g,``).split(/\n{2,}/).filter(Boolean).map(e=>`<p>${t.parseInline(e,{async:!1})}</p>\n`).join(``);let r=t.lexer(e),i=!1;if(t.walkTokens(r,e=>{e.type===`code`&&(i=!0)}),!i)return t.parser(r)}function bH(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xH(e){if(Array.isArray(e))return e}function SH(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function CH(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
781
783
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wH(e,t){return xH(e)||SH(e,t)||TH(e,t)||CH()}function TH(e,t){if(e){if(typeof e==`string`)return bH(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bH(e,t):void 0}}var EH=Object.entries,DH=Object.setPrototypeOf,OH=Object.isFrozen,kH=Object.getPrototypeOf,AH=Object.getOwnPropertyDescriptor,jH=Object.freeze,MH=Object.seal,NH=Object.create,PH=typeof Reflect<`u`&&Reflect,FH=PH.apply,IH=PH.construct;jH||=function(e){return e},MH||=function(e){return e},FH||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},IH||=function(e){return new e(...[...arguments].slice(1))};var LH=rU(Array.prototype.forEach),RH=rU(Array.prototype.lastIndexOf),zH=rU(Array.prototype.pop),BH=rU(Array.prototype.push),VH=rU(Array.prototype.splice),HH=Array.isArray,UH=rU(String.prototype.toLowerCase),WH=rU(String.prototype.toString),GH=rU(String.prototype.match),KH=rU(String.prototype.replace),qH=rU(String.prototype.indexOf),JH=rU(String.prototype.trim),YH=rU(Number.prototype.toString),XH=rU(Boolean.prototype.toString),ZH=typeof BigInt>`u`?null:rU(BigInt.prototype.toString),QH=typeof Symbol>`u`?null:rU(Symbol.prototype.toString),$H=rU(Object.prototype.hasOwnProperty),eU=rU(Object.prototype.toString),tU=rU(RegExp.prototype.test),nU=iU(TypeError);function rU(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return FH(e,t,n)}}function iU(e){return function(){return IH(e,[...arguments])}}function aU(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:UH;if(DH&&DH(e,null),!HH(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(OH(t)||(t[r]=e),i=e)}e[i]=!0}return e}function oU(e){for(let t=0;t<e.length;t++)$H(e,t)||(e[t]=null);return e}function sU(e){let t=NH(null);for(let r of EH(e)){var n=wH(r,2);let i=n[0],a=n[1];$H(e,i)&&(t[i]=HH(a)?oU(a):a&&typeof a==`object`&&a.constructor===Object?sU(a):a)}return t}function cU(e){switch(typeof e){case`string`:return e;case`number`:return YH(e);case`boolean`:return XH(e);case`bigint`:return ZH?ZH(e):`0`;case`symbol`:return QH?QH(e):`Symbol()`;case`undefined`:return eU(e);case`function`:case`object`:{if(e===null)return eU(e);let t=e,n=lU(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:eU(e)}return eU(e)}default:return eU(e)}}function lU(e,t){for(;e!==null;){let n=AH(e,t);if(n){if(n.get)return rU(n.get);if(typeof n.value==`function`)return rU(n.value)}e=kH(e)}function n(){return null}return n}function uU(e){try{return tU(e,``),!0}catch{return!1}}var dU=jH(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),fU=jH(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),pU=jH([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),mU=jH([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),hU=jH(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),gU=jH([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),_U=jH([`#text`]),vU=jH(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),yU=jH(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),bU=jH(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),xU=jH([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),SU=MH(/{{[\w\W]*|^[\w\W]*}}/g),CU=MH(/<%[\w\W]*|^[\w\W]*%>/g),wU=MH(/\${[\w\W]*/g),TU=MH(/^data-[\-\w.\u00B7-\uFFFF]+$/),EU=MH(/^aria-[\-\w]+$/),DU=MH(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),OU=MH(/^(?:\w+script|data):/i),kU=MH(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),AU=MH(/^html$/i),jU=MH(/^[a-z][.\w]*(-[.\w]+)+$/i),MU=MH(/<[/\w!]/g),NU=MH(/<[/\w]/g),PU=MH(/<\/no(script|embed|frames)/i),FU=MH(/\/>/i),IU={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},LU=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],RU=jH(aU({},LU)),zU=function(){let e={};return LH(LU,t=>{e[t]=MH(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),jH(e)}(),BU=function(){return typeof window>`u`?null:window},VU=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},HU=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},UU=function(e,t,n,r){return $H(e,t)&&HH(e[t])?aU(r.base?sU(r.base):{},e[t],r.transform):n},WU=function(e,t,n){let r=$H(e,t)?e[t]:void 0;return r&&typeof r==`object`?sU(r):n()};function GU(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BU(),t=e=>GU(e);if(t.version=`3.4.14`,t.removed=[],!e||!e.document||e.document.nodeType!==IU.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=lU(d,`cloneNode`),p=lU(d,`remove`),m=lU(d,`nextSibling`),h=lU(d,`childNodes`),g=lU(d,`parentNode`),_=lU(d,`shadowRoot`),v=lU(d,`attributes`),y=o&&o.prototype?lU(o.prototype,`nodeType`):null,b=o&&o.prototype?lU(o.prototype,`nodeName`):null,x=o&&o.prototype?lU(o.prototype,`ownerDocument`):null,S=function(e){return y?y(e):e.nodeType},C=function(e){return b?b(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let w,T=``,E,D=!1,O=0,k=function(){if(O>0)throw nU(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ee=function(e){k(),O++;try{return w.createHTML(e)}finally{O--}},A=function(e){k(),O++;try{return w.createScriptURL(e)}finally{O--}},te=function(){return D||=(E=VU(u,i),!0),E},j=n,M=j.implementation,N=j.createNodeIterator,ne=j.createDocumentFragment,re=j.getElementsByTagName,ie=r.importNode,P=HU();t.isSupported=typeof EH==`function`&&typeof g==`function`&&M&&M.createHTMLDocument!==void 0;let ae=SU,oe=CU,F=wU,se=TU,ce=EU,le=OU,ue=kU,de=jU,fe=DU,I=null,L=aU({},[...dU,...fU,...pU,...hU,..._U]),R=null,pe=aU({},[...vU,...yU,...bU,...xU]),me=Object.seal(NH(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),he=null,ge=null,_e=Object.seal(NH(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ve=!0,ye=!0,be=!1,xe=!0,Se=!1,Ce=!0,we=!1,Te=!1,Ee=null,De=null,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!0,Ne=!1,Pe=`user-content-`,Fe=!0,Ie=!1,Le={},z=null,Re=aU({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),ze=null,Be=aU({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ve=null,B=aU({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),V=`http://www.w3.org/1998/Math/MathML`,He=`http://www.w3.org/2000/svg`,Ue=`http://www.w3.org/1999/xhtml`,We=Ue,Ge=!1,Ke=null,H=aU({},[V,He,Ue],WH),qe=jH([`mi`,`mo`,`mn`,`ms`,`mtext`]),Je=aU({},qe),Ye=jH([`annotation-xml`]),Xe=aU({},Ye),Ze=aU({},[`title`,`style`,`font`,`a`,`script`]),Qe=null,$e=[`application/xhtml+xml`,`text/html`],et=null,tt=null,nt=n.createElement(`form`),rt=function(e){return e instanceof RegExp||e instanceof Function},it=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tt&&tt===e)return;(!e||typeof e!=`object`)&&(e={}),e=sU(e),Qe=$e.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,et=Qe===`application/xhtml+xml`?WH:UH,I=UU(e,`ALLOWED_TAGS`,L,{transform:et}),R=UU(e,`ALLOWED_ATTR`,pe,{transform:et}),Ke=UU(e,`ALLOWED_NAMESPACES`,H,{transform:WH}),Ve=UU(e,`ADD_URI_SAFE_ATTR`,B,{transform:et,base:B}),ze=UU(e,`ADD_DATA_URI_TAGS`,Be,{transform:et,base:Be}),z=UU(e,`FORBID_CONTENTS`,Re,{transform:et}),he=UU(e,`FORBID_TAGS`,sU({}),{transform:et}),ge=UU(e,`FORBID_ATTR`,sU({}),{transform:et}),Le=$H(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?sU(e.USE_PROFILES):e.USE_PROFILES:!1,ve=e.ALLOW_ARIA_ATTR!==!1,ye=e.ALLOW_DATA_ATTR!==!1,be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=e.SAFE_FOR_TEMPLATES||!1,Ce=e.SAFE_FOR_XML!==!1,we=e.WHOLE_DOCUMENT||!1,ke=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Me=e.SANITIZE_DOM!==!1,Ne=e.SANITIZE_NAMED_PROPS||!1,Fe=e.KEEP_CONTENT!==!1,Ie=e.IN_PLACE||!1,fe=uU(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:DU,We=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ue,Je=WU(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>aU({},qe)),Xe=WU(e,`HTML_INTEGRATION_POINTS`,()=>aU({},Ye));let t=WU(e,`CUSTOM_ELEMENT_HANDLING`,()=>NH(null));if(me=NH(null),$H(t,`tagNameCheck`)&&rt(t.tagNameCheck)&&(me.tagNameCheck=t.tagNameCheck),$H(t,`attributeNameCheck`)&&rt(t.attributeNameCheck)&&(me.attributeNameCheck=t.attributeNameCheck),$H(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(me.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),MH(me),Se&&(ye=!1),Ae&&(ke=!0),Le&&(I=aU({},_U),R=NH(null),Le.html===!0&&(aU(I,dU),aU(R,vU)),Le.svg===!0&&(aU(I,fU),aU(R,yU),aU(R,xU)),Le.svgFilters===!0&&(aU(I,pU),aU(R,yU),aU(R,xU)),Le.mathMl===!0&&(aU(I,hU),aU(R,bU),aU(R,xU))),_e.tagCheck=null,_e.attributeCheck=null,$H(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?_e.tagCheck=e.ADD_TAGS:HH(e.ADD_TAGS)&&(I===L&&(I=sU(I)),aU(I,e.ADD_TAGS,et))),$H(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?_e.attributeCheck=e.ADD_ATTR:HH(e.ADD_ATTR)&&(R===pe&&(R=sU(R)),aU(R,e.ADD_ATTR,et))),$H(e,`ADD_FORBID_CONTENTS`)&&HH(e.ADD_FORBID_CONTENTS)&&(z===Re&&(z=sU(z)),aU(z,e.ADD_FORBID_CONTENTS,et)),Fe&&(I[`#text`]=!0),we&&aU(I,[`html`,`head`,`body`]),I.table&&(aU(I,[`tbody`]),delete he.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw nU(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw nU(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=w;w=e.TRUSTED_TYPES_POLICY;try{T=ee(``)}catch(e){throw w=t,e}}else e.TRUSTED_TYPES_POLICY===null?(w=void 0,T=``):(w===void 0&&(w=te()),w&&typeof T==`string`&&(T=ee(``)));jH&&jH(e),tt=e},U=aU({},[...fU,...pU,...mU]),at=aU({},[...hU,...gU]),ot=function(e,t,n){return t.namespaceURI===Ue?e===`svg`:t.namespaceURI===V?e===`svg`&&(n===`annotation-xml`||Je[n]):!!U[e]},st=function(e,t,n){return t.namespaceURI===Ue?e===`math`:t.namespaceURI===He?e===`math`&&Xe[n]:!!at[e]},W=function(e,t,n){return t.namespaceURI===He&&!Xe[n]||t.namespaceURI===V&&!Je[n]?!1:!at[e]&&(Ze[e]||!U[e])},ct=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:We,tagName:`template`});let n=UH(e.tagName),r=UH(t.tagName);return Ke[e.namespaceURI]?e.namespaceURI===He?ot(n,t,r):e.namespaceURI===V?st(n,t,r):e.namespaceURI===Ue?W(n,t,r):!!(Qe===`application/xhtml+xml`&&Ke[e.namespaceURI]):!1},G=function(e){BH(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw nU(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},lt=function(e,t,n){try{e.removeAttributeNode(t)}catch{try{e.removeAttribute(n)}catch{}}},ut=function(e){pt(e);let t=h(e);if(t){let e=[];LH(t,t=>{BH(e,t)}),LH(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&lt(e,r,i)}},dt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}BH(t.removed,{attribute:r||null,from:n});try{r?n.removeAttributeNode(r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(ke||Ae)try{G(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},ft=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||R[et(i)]||lt(e,r,i)}},pt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();S(e)===IU.element&&ft(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},mt=function(e,t){return Ce?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},ht=function(e){if(!Ce)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=S(e);if(n===IU.processingInstruction||n===IU.comment&&tU(NU,e.data)){try{p(e)}catch{}continue}if(n===IU.element){let t=e,n=et(C(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&mt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},gt=function(e){let t=null,r=null;if(Oe)e=`<remove></remove>`+e;else{let t=GH(e,/^[\r\n\t ]+/);r=t&&t[0]}Qe===`application/xhtml+xml`&&We===Ue&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=w?ee(e):e;if(We===Ue)try{t=new l().parseFromString(i,Qe)}catch{}if(!t||!t.documentElement){t=M.createDocument(We,`template`,null);try{t.documentElement.innerHTML=Ge?T:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),We===Ue?re.call(t,we?`html`:`body`)[0]:we?t.documentElement:a},_t=function(e){let t=x?x(e):e.ownerDocument;return N.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},K=function(e){return e=KH(e,ae,` `),e=KH(e,oe,` `),e=KH(e,F,` `),e},vt=function(e){e.normalize();let t=x?x(e):e.ownerDocument,n=N.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=K(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&LH(i,e=>{bt(e.content)&&vt(e.content)})},yt=function(e){let t=b?b(e):null;return typeof t!=`string`||et(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},bt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===IU.documentFragment}catch{return!1}},xt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function St(e,n,r){e.length!==0&&LH(e,e=>{e.call(t,n,r,tt)})}let Ct=function(e,t){return!!(Ce&&e.hasChildNodes()&&!xt(e.firstElementChild)&&tU(MU,e.textContent)&&tU(MU,e.innerHTML)||Ce&&e.namespaceURI===Ue&&RU[t]&&(xt(e.firstElementChild)||typeof e.textContent==`string`&&tU(zU[t],e.textContent))||e.nodeType===IU.processingInstruction||Ce&&e.nodeType===IU.comment&&tU(NU,e.data))},wt=function(e,t){return e instanceof RegExp?tU(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Tt=function(e,t,n){if(!he[t]&&jt(t)&&wt(me.tagNameCheck,t))return!1;if(Fe&&!z[t]){let t=g(e),r=h(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,m(e))}}}return G(e),!0},Et=function(e,t,n,r){return e.length===0?t:t===n||t===r?sU(t):t},Dt=function(e,t){return e===t||g(e)!==null?!1:(Ie&&pt(e),!0)},Ot=function(e,n){if(St(P.beforeSanitizeElements,e,null),Dt(e,n))return!0;if(yt(e))return G(e),!0;let r=et(C(e));if(I=Et(P.uponSanitizeElement,I,L,Ee),St(P.uponSanitizeElement,e,{tagName:r,allowedTags:I}),Dt(e,n))return!0;if(Ct(e,r))return G(e),!0;if(he[r]||!(_e.tagCheck instanceof Function&&_e.tagCheck(r))&&!I[r]){let t=Tt(e,r,n);return t===!1&&St(P.afterSanitizeElements,e,null),t}if(S(e)===IU.element&&!ct(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&tU(PU,e.innerHTML))return G(e),!0;if(Se&&e.nodeType===IU.text){let n=K(e.textContent);e.textContent!==n&&(BH(t.removed,{element:e.cloneNode()}),e.textContent=n)}return St(P.afterSanitizeElements,e,null),!1},kt=function(e,t,r){if(ge[t]||mt(t,e)||Me&&(t===`id`||t===`name`)&&(r in n||r in nt))return!1;let i=R[t]||_e.attributeCheck instanceof Function&&_e.attributeCheck(t,e);return ye&&tU(se,t)||ve&&tU(ce,t)?!0:i?Ve[t]||tU(fe,KH(r,ue,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&qH(r,`data:`)===0&&ze[e]||be&&!tU(le,KH(r,ue,``))?!0:!r:jt(e)&&wt(me.tagNameCheck,e)&&wt(me.attributeNameCheck,t,e)||t===`is`&&me.allowCustomizedBuiltInElements&&wt(me.tagNameCheck,r)},At=aU({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),jt=function(e){return!At[UH(e)]&&tU(de,e)},Mt=function(e,t,n,r){if(w&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ee(r);case`TrustedScriptURL`:return A(r)}return r},Nt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),yt(e)?G(e):zH(t.removed)}catch{dt(n,e)}},Pt=function(e){St(P.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||yt(e))return;R=Et(P.uponSanitizeAttribute,R,pe,De);let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0},r=t.length,i=et(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=et(o),u=c,d=o===`value`?u:JH(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,St(P.uponSanitizeAttribute,e,n),d=n.attrValue,Ne&&(l===`id`||l===`name`)&&qH(d,Pe)!==0&&(dt(o,e,a),d=Pe+d),Ce&&tU(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){dt(o,e,a);continue}if(l===`attributename`&&GH(d,`href`)){dt(o,e,a);continue}if(!n.forceKeepAttr){if(!n.keepAttr){dt(o,e,a);continue}if(!xe&&tU(FU,d)){dt(o,e,a);continue}if(Se&&(d=K(d)),!kt(i,l,d)){dt(o,e,a);continue}d=Mt(i,l,s,d),d!==u&&Nt(e,o,s,d)}}St(P.afterSanitizeAttributes,e,null)},Ft=function(e){let t=null,n=_t(e);for(St(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(St(P.uponSanitizeShadowNode,t,null),Ot(t,e),Pt(t),bt(t.content)&&Ft(t.content),S(t)===IU.element){let e=_(t);bt(e)&&(It(e),Ft(e))}St(P.afterSanitizeShadowDOM,e,null)},It=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Ft(e.shadow);continue}let n=e.node,r=S(n)===IU.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&et(e)===`template`){let e=n.content;bt(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);bt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ge=!e,Ge&&(e=`<!-->`),typeof e!=`string`&&!xt(e)&&(e=cU(e),typeof e!=`string`))throw nU(`dirty is not a string, aborting`);if(!t.isSupported)return e;Te?(I=Ee,R=De):it(n),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(I=sU(I)),P.uponSanitizeAttribute.length>0&&(R=sU(R)),t.removed=[];let c=Ie&&typeof e!=`string`&&xt(e);if(c){ht(e);let t=C(e);if(typeof t==`string`){let n=et(t);if(!I[n]||he[n])throw ut(e),nU(`root node is forbidden and cannot be sanitized in-place`)}if(yt(e))throw ut(e),nU(`root node is clobbered and cannot be sanitized in-place`);try{It(e)}catch(t){throw ut(e),t}}else if(xt(e))i=gt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===IU.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),It(a);else{if(!ke&&!Se&&!we&&e.indexOf(`<`)===-1)return w&&je?ee(e):e;if(i=gt(e),!i)return ke?null:je?T:``}i&&Oe&&G(i.firstChild);let l=c?e:i;try{let e=_t(l);for(;o=e.nextNode();)Ot(o,l),Pt(o),bt(o.content)&&Ft(o.content)}catch(n){throw c&&(ut(e),LH(t.removed,e=>{e.element&&pt(e.element)})),n}if(c)return LH(t.removed,e=>{e.element&&pt(e.element)}),Se&&vt(e),e;if(ke){if(Se&&vt(i),Ae)for(s=ne.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(R.shadowroot||R.shadowrootmode)&&(s=ie.call(r,s,!0)),s}let u=we?i.outerHTML:i.innerHTML;return we&&I[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&tU(AU,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
782
- `+u),Se&&(u=K(u)),w&&je?ee(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};it(e),Te=!0,Ee=I,De=R},t.clearConfig=function(){tt=null,Te=!1,Ee=null,De=null,w=E,T=``},t.isValidAttribute=function(e,t,n){tt||it({});let r=et(e),i=et(t);return kt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&$H(P,e)&&BH(P[e],t)},t.removeHook=function(e,t){if($H(P,e)){if(t!==void 0){let n=RH(P[e],t);return n===-1?void 0:VH(P[e],n,1)[0]}return zH(P[e])}},t.removeHooks=function(e){$H(P,e)&&(P[e]=[])},t.removeAllHooks=function(){P=HU()},t}var KU=GU();function qU(e){let t=e.trim().replaceAll(`\\`,`/`);if(!(!t||/[\u0000-\u001f\u007f]/.test(t)||t.startsWith(`//`))){if(/^file:/i.test(t)){if(!URL.canParse(t))return;let e=new URL(t);return e.hostname&&e.hostname!==`localhost`?void 0:JU(e.pathname.replace(/^\/([a-z]:\/)/i,`$1`))}if(!/^[a-z][a-z\d+.-]*:/i.test(t)||/^[a-z]:\//i.test(t))return JU(t)}}function JU(e){try{let t=decodeURIComponent(e);return/[\u0000-\u001f\u007f]/.test(t)||t.startsWith(`//`)||t.startsWith(`\\\\`)?void 0:t}catch{return}}function YU(e){let t=new Map;return{update(n){let r=Array.from(n.querySelectorAll(`img[data-local-image]`)),i=new Set(r.map(e=>e.dataset.localImage));t.forEach((e,n)=>{i.has(n)||(e.controller.abort(),e.url&&URL.revokeObjectURL(e.url),t.delete(n))}),r.forEach(r=>{let i=r.dataset.localImage;if(!i)return;let a=t.get(i),o=a??{controller:new AbortController,result:Promise.resolve(void 0),url:void 0};a||(t.set(i,o),o.result=e(i,o.controller.signal).then(async e=>{if(e&&!o.controller.signal.aborted)return e.type===`image/svg+xml`?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(await e.text())}`:(o.url=URL.createObjectURL(e),o.url)}).catch(()=>void 0)),o.result.then(e=>{e&&!o.controller.signal.aborted&&n.contains(r)&&r.dataset.localImage===i&&(r.src=e)})})},dispose(){t.forEach(e=>{e.controller.abort(),e.url&&URL.revokeObjectURL(e.url)}),t.clear()}}}var XU=200,ZU=new Map,QU=new Map,$U=typeof window<`u`?KU(window):KU,eW={USE_PROFILES:{html:!0,mathMl:!0},SANITIZE_NAMED_PROPS:!0,FORBID_TAGS:[`style`],FORBID_CONTENTS:[`style`,`script`],ADD_TAGS:[`svg`,`path`],ADD_ATTR:[`d`,`viewBox`,`preserveAspectRatio`,`xmlns`,`target`]};typeof window<`u`&&$U.isSupported&&($U.addHook(`beforeSanitizeAttributes`,e=>{if(!(e instanceof HTMLImageElement))return;e.removeAttribute(`data-local-image`);let t=qU(e.getAttribute(`src`)??``);t&&(e.setAttribute(`data-local-image`,t),e.removeAttribute(`src`),e.removeAttribute(`srcset`))}),$U.addHook(`afterSanitizeAttributes`,e=>{if(!(e instanceof HTMLAnchorElement)||e.target!==`_blank`)return;let t=e.getAttribute(`rel`)??``,n=new Set(t.split(/\s+/).filter(Boolean));n.add(`noopener`),n.add(`noreferrer`),e.setAttribute(`rel`,Array.from(n).join(` `))}));function tW(e){return $U.isSupported?$U.sanitize(e,eW):``}function nW(e){return ZU.get(e)}function rW(e,t){if(ZU.delete(e),ZU.set(e,t),ZU.size<=XU)return;let n=ZU.keys().next().value;n&&ZU.delete(n)}function iW(e,t){let n=t?nW(t):void 0;if(t&&n?.raw===e.raw)return QU.delete(t),rW(t,n),n;if($U.isSupported)try{let n=yH(e.src);if(n===void 0)return;let r=mf(e.raw),i={raw:e.raw,hash:r??``,html:tW(n)};return t&&r&&(QU.delete(t),rW(t,i)),i}catch{return}}async function aW(e,t,n){if(n?.aborted)throw new EB;let r=t?nW(t):void 0;if(t&&r?.raw===e.raw)return QU.delete(t),rW(t,r),r;let i=t?QU.get(t):void 0,a=i?.raw===e.raw?i:oW(e,t),o=Symbol();return a.consumers.add(o),new Promise((e,r)=>{let i=()=>{n?.removeEventListener(`abort`,s),!(!a.consumers.delete(o)||a.consumers.size>0)&&(a.controller.abort(),t&&QU.get(t)===a&&QU.delete(t))},s=()=>{i(),r(new EB)};n?.addEventListener(`abort`,s,{once:!0}),a.promise.then(e,r).finally(i)})}function oW(e,t){let n=new AbortController,r=xB(e.src,n.signal).then(i=>{if(n.signal.aborted)throw new EB;let a=mf(e.raw),o={raw:e.raw,hash:a??``,html:tW(i)};return t&&a&&QU.get(t)?.promise===r&&rW(t,o),o}).finally(()=>{t&&QU.get(t)?.promise===r&&QU.delete(t)}),i={raw:e.raw,promise:r,controller:n,consumers:new Set};return t&&QU.set(t,i),i}var sW=new Set(`a51,abap,abnf,action,ada,adb,adml,admx,ado,adoc,adp,ads,afm,agc,agda,ahk,ahkl,aidl,aj,ak,al,alg,als,ampl,angelscript,anim,ant,antlers.html,antlers.php,antlers.xml,apacheconf,apex,apib,apl,app,app.src,applescript,arc,arpa,arr,as,asax,asc,asciidoc,ascx,asd,asddls,ash,ashx,asl,asm,asmx,asn,asn1,asp,aspx,asset,astro,asy,au3,aug,auk,aux,avdl,avsc,aw,awk,axaml,axd,axi,axi.erb,axml,axs,axs.erb,b,bal,baml,bas,bash,bat,bats,bb,bbappend,bbclass,bbx,bdf,bdy,be,befunge,bf,bi,bib,bibtex,bicep,bicepparam,bison,blade,blade.php,blp,bmx,bones,boo,boot,bpl,bqn,brd,bro,brs,bru,bs,bsl,bst,bsv,builder,builds,bzl,c,c++,c++-objdump,c++objdump,c-objdump,c3,cabal,caddyfile,cairo,cake,capnp,carbon,cats,cbl,cbx,cc,ccp,ccproj,ccxml,cdc,cdf,cds,ceylon,cfc,cfg,cfm,cfml,cgi,cginc,ch,chem,chpl,chs,cil,circom,cirru,cj,cjs,cjsx,ck,cl,cl2,clar,click,clixml,clj,cljc,cljs,cljs.hl,cljscm,cljx,clp,cls,clue,clw,cmake,cmake.in,cmd,cmp,cnc,cnf,cob,cobol,cocci,code-snippets,code-workspace,coffee,coffee.md,com,command,conll,conllu,container,containerfile,cook,coq,cp,cpp,cpp-objdump,cppm,cppobjdump,cproject,cps,cpy,cql,cr,crc32,creole,cs,cs.pp,csc,cscfg,csd,csdef,csh,cshtml,csl,cson,csproj,css,csv,csx,ct,ctl,ctp,cts,cu,cue,cuh,curry,cw,cwl,cxx,cxx-objdump,cy,cylc,cyp,cypher,d,d-objdump,d2,dae,darcspatch,dart,das,dats,db2,dcl,ddl,decls,depproj,desktop,desktop.in,dfm,dfy,dhall,di,diff,dircolors,dita,ditamap,ditaval,djs,dll.config,dlm,dm,do,dockerfile,dof,doh,dot,dotsettings,dpatch,dpr,druby,dsc,dsl,dsp,dsr,dtx,duby,dwl,dyalog,dyl,dylan,dzn,e,eam.fs,eb,ebnf,ebuild,ec,ecl,eclass,eclxml,ecr,ect,edc,edge,edgeql,editorconfig,edn,eh,ejs,ejs.t,el,eliom,eliomi,elm,elv,em,emacs,emacs.desktop,emberscript,eml,env,epj,eps,epsi,eq,erb,erb.deface,erl,es,es6,escript,esdl,ex,exs,eye,f,f03,f08,f77,f90,f95,factor,fan,fancypack,fbs,fcgi,fea,feature,filters,fir,fish,flex,flf,flix,flux,fnc,fnl,for,forth,fp,fpp,fr,frag,frg,frm,frt,fs,fsh,fshader,fsi,fsproj,fst,fsti,fsx,fth,ftl,ftlh,fun,fut,fx,fxh,fxml,fy,g,g4,gaml,gap,gawk,gbl,gbo,gbp,gbr,gbs,gco,gcode,gd,gdb,gdbinit,gdnlib,gdns,gdshader,gdshaderinc,ged,gemspec,geo,geojson,geom,gf,gi,gitconfig,gitignore,gjs,gko,glade,gleam,glf,glsl,glslf,glslv,gltf,glyphs,gmi,gml,gms,gmx,gn,gni,gnu,gnuplot,go,god,gohtml,golo,gotmpl,gp,gpb,gpt,gpx,gql,grace,gradle,gradle.kts,graphql,graphqls,groovy,grt,grxml,gs,gsc,gsh,gshader,gsp,gst,gsx,gtkrc,gtl,gto,gtp,gtpl,gts,gv,gvy,gyp,gypi,h,h++,h.in,ha,hack,haml,haml.deface,handlebars,har,hats,hb,hbs,hc,hcl,heex,hh,hhi,hic,hip,hlean,hlsl,hlsli,hocon,hoon,hpp,hqf,hql,hrl,hs,hs-boot,hsc,hta,htm,html,html.eex,html.hl,html.tmpl,http,hurl,hx,hxml,hxsl,hxx,hy,hzp,i,i3,i7x,ical,ice,iced,icl,icls,ics,idc,idr,ig,ihlp,ijm,ijs,ik,il,ily,imba,iml,inc,ini,ink,inl,ino,ins,intr,io,iol,ipf,ipp,ipynb,irclog,isl,ispc,iss,iuml,ivy,ixx,j,j2,jac,jade,jai,jake,janet,jav,java,javascript,jbuilder,jcl,jelly,jflex,jinja,jinja2,jison,jisonlex,jl,jq,js,js.erb,jsb,jscad,jsfl,jsh,jslib,jsm,json,json-tmlanguage,json.example,json5,jsonc,jsonl,jsonld,jsonnet,jsp,jspre,jsproj,jss,jst,jsx,jte,just,k,kak,kdl,kicad_mod,kicad_pcb,kicad_sch,kicad_sym,kicad_wks,kid,kit,kk,kml,kojo,kql,krl,ks,ksh,ksy,kt,ktm,kts,kv,l,lagda,langium,lark,las,lasso,lasso8,lasso9,latte,launch,lbx,ld,lds,lean,leex,lektorproject,leo,less,lex,lfe,lgt,lhs,libsonnet,lid,lidr,ligo,linq,liq,liquid,lisp,litcoffee,livecodescript,livemd,lkml,ll,lmi,lock,lockb,logtalk,lol,lookml,lp,lpr,ls,lsl,lslp,lsp,ltx,lua,luau,lvclass,lvlib,lvproj,ly,m,m2,m3,m3u,m3u8,m4,ma,mak,make,makefile,mako,man,mao,markdown,marko,mask,mat,mata,matah,mathematica,matlab,mawk,maxhelp,maxpat,maxproj,mbox,mbt,mc,mcfunction,mch,mcmeta,mcr,md,md2,md4,md5,mdoc,mdown,mdpolicy,mdwn,mdx,me,mediawiki,mermaid,meta,metal,metta,mg,minid,mint,mir,mirah,mjml,mjs,mk,mkd,mkdn,mkdown,mkfile,mkii,mkiv,mkvi,ml,ml4,mli,mligo,mlir,mll,mly,mm,mmd,mmk,mms,mo,mod,mojo,monkey,monkey2,moo,moon,mount,move,mpl,mps,mq4,mq5,mqh,mrc,ms,msd,msg,mspec,mss,mt,mtl,mtml,mts,mu,mud,muf,mumps,muse,mustache,mxml,mxt,mysql,myt,mzn,n,nanorc,nas,nasl,nasm,natvis,nawk,nb,nbp,nc,ncl,ndproj,ne,nearley,ned,neon,network,nf,nginx,nginxconf,ni,nim,nim.cfg,nimble,nimrod,nims,ninja,nit,nix,njk,njs,nl,nlogo,no,nomad,nproj,nqp,nr,nse,nsh,nsi,nss,nu,numpy,numpyw,numsc,nuspec,nut,ny,ob2,obj,objdump,odd,odin,ol,omgrofl,ooc,opa,opal,opencl,opy,orc,org,os,osm,outjob,overpassql,owl,ox,oxh,oxo,oxygene,oz,p,p4,p6,p6l,p6m,p8,pac,pact,pan,parrot,pas,pascal,pasm,pat,patch,pb,pbi,pbt,pbtxt,pc,pc.in,pcbdoc,pck,pcss,pd,pd_lua,pddl,pde,peggy,pegjs,pep,per,perl,pfa,pgsql,ph,php,php3,php4,php5,phps,phpt,phtml,pic,pig,pike,pir,pkb,pkgproj,pkl,pks,pl,pl6,plantuml,plb,plist,plot,pls,plsql,plt,pluginspec,plx,pm,pm6,pml,pmod,po,pod,pod6,podsl,podspec,pogo,polar,pony,por,postcss,pot,pov,pp,pprx,pq,praat,prawn,prc,prefab,prefs,prg,pri,prisma,prjpcb,pro,proj,prolog,properties,props,proto,prw,ps,ps1,ps1xml,psc,psc1,psd1,psgi,psm1,pt,pub,pubxml,pug,puml,purs,pwn,pxd,pxi,py,py3,pyde,pyi,pyp,pyt,pytb,pyw,pyx,q,qasm,qbs,qc,qhelp,ql,qll,qmd,qml,qnt,qs,r,r2,r3,rabl,rake,raku,rakumod,raml,rascript,raw,razor,rb,rbbas,rbfrm,rbi,rbmnu,rbres,rbs,rbtbar,rbuild,rbuistate,rbw,rbx,rbxs,rchit,rd,rdf,rdoc,re,reb,rebol,red,reds,reek,reg,regex,regexp,rego,rei,religo,res,resi,resource,rest,rest.txt,resx,rex,rexx,rg,rhtml,ring,riot,rkt,rktd,rktl,rl,rmd,rmiss,rnh,rno,rnw,robot,roc,rockspec,roff,ron,ronn,rpgle,rpy,rq,rs,rs.in,rsc,rsh,rss,rst,rst.txt,rsx,rtf,ru,ruby,rviz,s,sage,sagews,sail,sarif,sas,sass,sats,sbatch,sbt,sc,scad,scala,scaml,scd,sce,scenic,sch,schdoc,sci,scm,sco,scpt,scrbl,scss,scxml,sdc,sed,self,service,sexp,sfd,sfproj,sfv,sh,sh-session,sh.in,sha1,sha2,sha224,sha256,sha256sum,sha3,sha384,sha512,shader,shen,shproj,sieve,sig,sj,sjs,sl,slang,sld,slim,slint,sln,slnlaunch,slnx,sls,slurm,sma,smali,smithy,smk,sml,smt,smt2,snakefile,snap,snip,snippet,snippets,socket,sol,soy,sp,sparql,spc,spec,spin,sps,sqf,sql,sqlrpgle,sra,srdf,srt,sru,srv,srw,ss,ssjs,sss,st,stan,star,sthlp,stl,ston,story,storyboard,sttheme,sty,styl,sublime-build,sublime-color-scheme,sublime-commands,sublime-completions,sublime-keymap,sublime-macro,sublime-menu,sublime-mousemap,sublime-project,sublime-settings,sublime-snippet,sublime-syntax,sublime-theme,sublime-workspace,sublime_metrics,sublime_session,sum,surql,sv,svelte,svg,svh,svx,sw,swg,swift,swig,syntax,t,tab,tac,tact,tag,talon,target,targets,tcc,tcl,tcl.in,tcsh,te,tea,templ,tesc,tese,tex,texi,texinfo,textgrid,textile,textproto,tf,tfstate,tfstate.backup,tftpl,tfvars,thor,thrift,thy,timer,tl,tla,tlv,tm,tmac,tmcommand,tmdl,tml,tmlanguage,tmpl,tmpreferences,tmsnippet,tmtheme,tmux,toc,tofu,toit,toml,toml.example,tool,topojson,tpb,tpl,tpp,tps,tres,trg,trigger,ts,tscn,tsconfig.json,tsp,tst,tsv,tsx,ttl,tu,twig,txi,txl,txt,txtpb,txx,typ,uc,udf,udo,ui,unity,uno,upc,uplc,ur,urdf,url,urs,ux,v,vala,vapi,vark,vb,vba,vbhtml,vbproj,vbs,vcf,vcl,vcxproj,vdf,veo,vert,vh,vhd,vhdl,vhf,vhi,vho,vhost,vhs,vht,vhw,vim,vimrc,viw,vmb,vmf,volt,vrx,vs,vsh,vshader,vsixmanifest,vssettings,vstemplate,vtl,vto,vtt,vue,vw,vxml,vy,w,wast,wat,watchr,wdl,webapp,webidl,webmanifest,weechatlog,wgsl,whiley,wiki,wikitext,wisp,wit,wixproj,wl,wlk,wls,wlt,wlua,workbook,workflow,wren,ws,wsdl,wsf,wsgi,wxi,wxl,wxs,x,x10,x3d,x68,xacro,xaml,xbm,xc,xdc,xht,xhtml,xi,xib,xlf,xliff,xm,xmi,xml,xml.dist,xmp,xojo_code,xojo_menu,xojo_report,xojo_script,xojo_toolbar,xojo_window,xpl,xpm,xproc,xproj,xpy,xq,xql,xqm,xquery,xqy,xrl,xs,xsd,xsh,xsjs,xsjslib,xsl,xslt,xsp-config,xsp.metadata,xspec,xtend,xul,xzap,y,yacc,yaml,yaml-tmlanguage,yaml.sed,yang,yap,yar,yara,yasnippet,yml,yml.mysql,yrl,yul,yy,yyp,z3,zap,zcml,zed,zeek,zep,zig,zig.zon,zil,zimpl,zmodel,zmpl,zone,zpl,zs,zsh,zsh-theme`.split(`,`)),cW=new Set(`.abbrev_defs,.ackrc,.all-contributorsrc,.arcconfig,.atomignore,.auto-changelog,.babelignore,.babelrc,.bash_aliases,.bash_functions,.bash_history,.bash_logout,.bash_profile,.bashrc,.browserslistrc,.buckconfig,.bzrignore,.c8rc,.ckignore,.clang-format,.clang-tidy,.clangd,.classpath,.coffeelintignore,.coveragerc,.cshrc,.curlrc,.cvsignore,.dir_colors,.dockerignore,.easignore,.eleventyignore,.env.ci,.env.dev,.env.development,.env.development.local,.env.example,.env.local,.env.prod,.env.production,.env.sample,.env.staging,.env.template,.env.test,.env.testing,.envrc,.eslint-ignore,.eslintignore,.exrc,.factor-boot-rc,.factor-rc,.flake8,.flaskenv,.gclient,.gemrc,.git-blame-ignore-revs,.gitattributes,.gitmodules,.gnus,.gvimrc,.htaccess,.htmlhintrc,.ignore,.imgbotconfig,.inputrc,.irbrc,.jscsrc,.jshintrc,.jslintrc,.justfile,.kshrc,.latexmkrc,.login,.luacheckrc,.markdownlintignore,.nodemonignore,.npmignore,.npmrc,.nvimrc,.nycrc,.php_cs,.php_cs.dist,.prettierignore,.profile,.project,.pryrc,.pylintrc,.rgignore,.rprofile,.rspec,.scalafix.conf,.scalafmt.conf,.shellcheckrc,.simplecov,.spacemacs,.stylelintignore,.swcrc,.tern-config,.tern-project,.tgitconfig,.tm_properties,.tmux.conf,.vercelignore,.viper,.vscodeignore,.watchmanconfig,.wgetrc,.xcompose,.xinitrc,.xsession,.yardopts,.zlogin,.zlogout,.zprofile,.zshenv,.zshrc,9fs,_curlrc,_dir_colors,_dircolors,_emacs,_redirects,_vimrc,abbrev_defs,ack,ackrc,android.bp,apache2.conf,apkbuild,app.config,appraisals,bash_aliases,bash_logout,bash_profile,bashrc,berksfile,brewfile,browserslist,bsdmakefile,buck,build,build.bazel,buildfile,cabal.config,cabal.project,caddyfile,cakefile,capfile,cargo.toml.orig,cask,citation,citation.cff,citations,cksums,codeowners,commit_editmsg,config.worktree,configure.ac,containerfile,contents.lr,copying,cpanfile,crontab,cshrc,dangerfile,deliverfile,deps,dir_colors,dockerfile,dune-project,earthfile,eask,emakefile,encodings.dir,eqnrc,expr-dist,fakefile,fastfile,file_contexts,firestore.rules,fontlog,fonts.alias,fonts.dir,fonts.scale,fp-lib-table,gemfile,genfs_contexts,gitignore-global,gitignore_global,gnumakefile,go.work,gradlew,gtkrc,gtkrc-2.0,guardfile,gvimrc,hosts,httpd.conf,initial_sids,inputrc,install,jakefile,jarfile,jenkinsfile,justfile,kakrc,kbuild,kshrc,latexmkrc,ld.script,license,login,m3makefile,m3overrides,makefile,makefile.am,makefile.in,man,manifest.mf,mavenfile,mcmod.info,md5sums,meson.build,mkfile,mmn,mmt,mocha.opts,module.bazel,modulefile,mvnw,nanorc,news,nextflow.config,nginx.conf,notebook,nuget.config,nukefile,nvimrc,owh,package.resolved,packages.config,phakefile,pipfile,pkgbuild,podfile,port_contexts,procfile,profile,project.ede,project.godot,puppetfile,pylintrc,rakefile,readme.1st,rebar.config,rexfile,riemann.config,root,sconscript,sconstruct,security_classes,settings.stylecop,sha1sums,sha256sums,sha512sums,singularity,slakefile,snakefile,snapfile,ssh-config,ssh_config,sshconfig,sshd-config,sshd_config,starfield,steepfile,suite.rc,thorfile,tiltfile,tmux.conf,torrc,troffrc,troffrc-end,vagrantfile,vimrc,vlcrc,web.config,web.debug.config,web.release.config,workspace,workspace.bazel,workspace.bzlmod,wscript,xcompose,xinitrc,xsession,zlogin,zlogout,zprofile,zshenv,zshrc`.split(`,`)),lW=new Set(`9fs._curlrc._dir_colors._dircolors._emacs._redirects._vimrc.abbrev_defs.ack.ackrc.apkbuild.appraisals.bash_aliases.bash_logout.bash_profile.bashrc.berksfile.brewfile.browserslist.bsdmakefile.buck.build.buildfile.caddyfile.cakefile.capfile.cask.citation.citations.cksums.codeowners.commit_editmsg.containerfile.copying.cpanfile.crontab.cshrc.dangerfile.deliverfile.deps.dir_colors.dockerfile.dune-project.earthfile.eask.emakefile.eqnrc.expr-dist.fakefile.fastfile.file_contexts.fontlog.fp-lib-table.gemfile.genfs_contexts.gitignore-global.gitignore_global.gnumakefile.gradlew.gtkrc.guardfile.gvimrc.hosts.initial_sids.inputrc.install.jakefile.jarfile.jenkinsfile.justfile.kakrc.kbuild.kshrc.latexmkrc.license.login.m3makefile.m3overrides.makefile.man.mavenfile.md5sums.mkfile.mmn.mmt.modulefile.mvnw.nanorc.news.notebook.nukefile.nvimrc.owh.phakefile.pipfile.pkgbuild.podfile.port_contexts.procfile.profile.puppetfile.pylintrc.rakefile.rexfile.root.sconscript.sconstruct.security_classes.sha1sums.sha256sums.sha512sums.singularity.slakefile.snakefile.snapfile.ssh-config.ssh_config.sshconfig.sshd-config.sshd_config.starfield.steepfile.thorfile.tiltfile.torrc.troffrc.troffrc-end.vagrantfile.vimrc.vlcrc.workspace.wscript.xcompose.xinitrc.xsession.zlogin.zlogout.zprofile.zshenv.zshrc`.split(`.`));function uW(e){if(/^https?:\/\//i.test(e))return`url`;if(!/^[a-z][a-z0-9+.-]*:\/\//i.test(e)&&e!==`/`&&!/^\/[a-z][a-z0-9-]*$/i.test(e)&&!/\s/.test(e)&&!/[()\[\]{}*+=<>|&^"';]/.test(e)&&(/[/\\]/.test(e)||/^\.\.?[/\\]/.test(e)||dW(e)||fW(e)))return`path`}function dW(e){let t=e.toLowerCase();if(t.endsWith(`.d.ts`))return!0;let n=t.lastIndexOf(`.`);return n!==-1&&sW.has(t.slice(n+1))}function fW(e){let t=e.toLowerCase();if(cW.has(t))return!0;let n=t.indexOf(`.`);return n!==-1&&lW.has(t.slice(0,n))}var pW,mW=0;async function hW(e){let t=await(pW??=gW());if(await t.parse(e,{suppressErrors:!0}))return(await t.render(`markdown-mermaid-${mW++}`,e)).svg}async function gW(){let{default:e}=await Y(async()=>{let{default:e}=await import(`./mermaid.core-BSOWwyvd.js`);return{default:e}},__vite__mapDeps([125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142]));return e.initialize({startOnLoad:!1,securityLevel:`strict`,theme:document.documentElement.dataset.colorScheme===`light`?`default`:`dark`,flowchart:{htmlLabels:!1}}),e}var _W=W(`<span data-markdown-word>`);function vW(e,t,n){let[r,i]=$t(bW(t,n)),a=!1,o=st(()=>z(Ge,{each:r,children:e=>z(yW,{node:e,animate:()=>a})}),e);return a=!0,{update(e,t,n=!0){i(rn(bW(e,t,n),{key:`key`}))},dispose:o}}function yW(e){let t=e.node;if(t.type===`text`)return t.text;if(t.type===`word`){let n;return oe(()=>{e.animate()&&t.animate&&n?.setAttribute(`data-markdown-enter`,``)}),(()=>{var e=_W(),r=n;return typeof r==`function`?_t(r,e):n=e,K(e,()=>t.text),e})()}return z(Pt,B({get component(){return t.tag}},()=>t.attributes,{get children(){return z(Ge,{get each(){return t.children},children:t=>z(yW,{node:t,get animate(){return e.animate}})})}}))}function bW(e,t,n=!1){let r=document.createElement(`template`);return r.innerHTML=e,Array.from(r.content.childNodes).flatMap((e,r)=>xW(e,`${r}`,t,n))}function xW(e,t,n,r){return e instanceof Text?n?e.data.split(/(\s+)/).flatMap((e,n)=>e?/^\s+$/.test(e)?[{key:`${t}:${n}`,type:`text`,text:e}]:[{key:`${t}:${n}`,type:`word`,text:e,...r?{animate:!0}:{}}]:[]):[{key:t,type:`text`,text:e.data}]:e instanceof Element?[{key:t,type:`element`,tag:e.tagName.toLowerCase(),attributes:Object.fromEntries(Array.from(e.attributes).map(e=>[e.name,e.value])),children:Array.from(e.childNodes).flatMap((e,i)=>xW(e,`${t}.${i}`,n,r))}]:[]}var SW=L(),CW=()=>R(SW),wW=W(`<div data-component=markdown dir=auto>`),TW=new WeakMap,EW=new WeakMap;function DW(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}function OW(e){return DW(e).replace(/\r\n?/g,`
784
+ `+u),Se&&(u=K(u)),w&&je?ee(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};it(e),Te=!0,Ee=I,De=R},t.clearConfig=function(){tt=null,Te=!1,Ee=null,De=null,w=E,T=``},t.isValidAttribute=function(e,t,n){tt||it({});let r=et(e),i=et(t);return kt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&$H(P,e)&&BH(P[e],t)},t.removeHook=function(e,t){if($H(P,e)){if(t!==void 0){let n=RH(P[e],t);return n===-1?void 0:VH(P[e],n,1)[0]}return zH(P[e])}},t.removeHooks=function(e){$H(P,e)&&(P[e]=[])},t.removeAllHooks=function(){P=HU()},t}var KU=GU();function qU(e){let t=e.trim().replaceAll(`\\`,`/`);if(!(!t||/[\u0000-\u001f\u007f]/.test(t)||t.startsWith(`//`))){if(/^file:/i.test(t)){if(!URL.canParse(t))return;let e=new URL(t);return e.hostname&&e.hostname!==`localhost`?void 0:JU(e.pathname.replace(/^\/([a-z]:\/)/i,`$1`))}if(!/^[a-z][a-z\d+.-]*:/i.test(t)||/^[a-z]:\//i.test(t))return JU(t)}}function JU(e){try{let t=decodeURIComponent(e);return/[\u0000-\u001f\u007f]/.test(t)||t.startsWith(`//`)||t.startsWith(`\\\\`)?void 0:t}catch{return}}function YU(e){let t=new Map;return{update(n){let r=Array.from(n.querySelectorAll(`img[data-local-image]`)),i=new Set(r.map(e=>e.dataset.localImage));t.forEach((e,n)=>{i.has(n)||(e.controller.abort(),e.url&&URL.revokeObjectURL(e.url),t.delete(n))}),r.forEach(r=>{let i=r.dataset.localImage;if(!i)return;let a=t.get(i),o=a??{controller:new AbortController,result:Promise.resolve(void 0),url:void 0};a||(t.set(i,o),o.result=e(i,o.controller.signal).then(async e=>{if(e&&!o.controller.signal.aborted)return e.type===`image/svg+xml`?`data:image/svg+xml;charset=utf-8,${encodeURIComponent(await e.text())}`:(o.url=URL.createObjectURL(e),o.url)}).catch(()=>void 0)),o.result.then(e=>{e&&!o.controller.signal.aborted&&n.contains(r)&&r.dataset.localImage===i&&(r.src=e)})})},dispose(){t.forEach(e=>{e.controller.abort(),e.url&&URL.revokeObjectURL(e.url)}),t.clear()}}}var XU=200,ZU=new Map,QU=new Map,$U=typeof window<`u`?KU(window):KU,eW={USE_PROFILES:{html:!0,mathMl:!0},SANITIZE_NAMED_PROPS:!0,FORBID_TAGS:[`style`],FORBID_CONTENTS:[`style`,`script`],ADD_TAGS:[`svg`,`path`],ADD_ATTR:[`d`,`viewBox`,`preserveAspectRatio`,`xmlns`,`target`]};typeof window<`u`&&$U.isSupported&&($U.addHook(`beforeSanitizeAttributes`,e=>{if(!(e instanceof HTMLImageElement))return;e.removeAttribute(`data-local-image`);let t=qU(e.getAttribute(`src`)??``);t&&(e.setAttribute(`data-local-image`,t),e.removeAttribute(`src`),e.removeAttribute(`srcset`))}),$U.addHook(`afterSanitizeAttributes`,e=>{if(!(e instanceof HTMLAnchorElement)||e.target!==`_blank`)return;let t=e.getAttribute(`rel`)??``,n=new Set(t.split(/\s+/).filter(Boolean));n.add(`noopener`),n.add(`noreferrer`),e.setAttribute(`rel`,Array.from(n).join(` `))}));function tW(e){return $U.isSupported?$U.sanitize(e,eW):``}function nW(e){return ZU.get(e)}function rW(e,t){if(ZU.delete(e),ZU.set(e,t),ZU.size<=XU)return;let n=ZU.keys().next().value;n&&ZU.delete(n)}function iW(e,t){let n=t?nW(t):void 0;if(t&&n?.raw===e.raw)return QU.delete(t),rW(t,n),n;if($U.isSupported)try{let n=yH(e.src);if(n===void 0)return;let r=mf(e.raw),i={raw:e.raw,hash:r??``,html:tW(n)};return t&&r&&(QU.delete(t),rW(t,i)),i}catch{return}}async function aW(e,t,n){if(n?.aborted)throw new EB;let r=t?nW(t):void 0;if(t&&r?.raw===e.raw)return QU.delete(t),rW(t,r),r;let i=t?QU.get(t):void 0,a=i?.raw===e.raw?i:oW(e,t),o=Symbol();return a.consumers.add(o),new Promise((e,r)=>{let i=()=>{n?.removeEventListener(`abort`,s),!(!a.consumers.delete(o)||a.consumers.size>0)&&(a.controller.abort(),t&&QU.get(t)===a&&QU.delete(t))},s=()=>{i(),r(new EB)};n?.addEventListener(`abort`,s,{once:!0}),a.promise.then(e,r).finally(i)})}function oW(e,t){let n=new AbortController,r=xB(e.src,n.signal).then(i=>{if(n.signal.aborted)throw new EB;let a=mf(e.raw),o={raw:e.raw,hash:a??``,html:tW(i)};return t&&a&&QU.get(t)?.promise===r&&rW(t,o),o}).finally(()=>{t&&QU.get(t)?.promise===r&&QU.delete(t)}),i={raw:e.raw,promise:r,controller:n,consumers:new Set};return t&&QU.set(t,i),i}var sW=new Set(`a51,abap,abnf,action,ada,adb,adml,admx,ado,adoc,adp,ads,afm,agc,agda,ahk,ahkl,aidl,aj,ak,al,alg,als,ampl,angelscript,anim,ant,antlers.html,antlers.php,antlers.xml,apacheconf,apex,apib,apl,app,app.src,applescript,arc,arpa,arr,as,asax,asc,asciidoc,ascx,asd,asddls,ash,ashx,asl,asm,asmx,asn,asn1,asp,aspx,asset,astro,asy,au3,aug,auk,aux,avdl,avsc,aw,awk,axaml,axd,axi,axi.erb,axml,axs,axs.erb,b,bal,baml,bas,bash,bat,bats,bb,bbappend,bbclass,bbx,bdf,bdy,be,befunge,bf,bi,bib,bibtex,bicep,bicepparam,bison,blade,blade.php,blp,bmx,bones,boo,boot,bpl,bqn,brd,bro,brs,bru,bs,bsl,bst,bsv,builder,builds,bzl,c,c++,c++-objdump,c++objdump,c-objdump,c3,cabal,caddyfile,cairo,cake,capnp,carbon,cats,cbl,cbx,cc,ccp,ccproj,ccxml,cdc,cdf,cds,ceylon,cfc,cfg,cfm,cfml,cgi,cginc,ch,chem,chpl,chs,cil,circom,cirru,cj,cjs,cjsx,ck,cl,cl2,clar,click,clixml,clj,cljc,cljs,cljs.hl,cljscm,cljx,clp,cls,clue,clw,cmake,cmake.in,cmd,cmp,cnc,cnf,cob,cobol,cocci,code-snippets,code-workspace,coffee,coffee.md,com,command,conll,conllu,container,containerfile,cook,coq,cp,cpp,cpp-objdump,cppm,cppobjdump,cproject,cps,cpy,cql,cr,crc32,creole,cs,cs.pp,csc,cscfg,csd,csdef,csh,cshtml,csl,cson,csproj,css,csv,csx,ct,ctl,ctp,cts,cu,cue,cuh,curry,cw,cwl,cxx,cxx-objdump,cy,cylc,cyp,cypher,d,d-objdump,d2,dae,darcspatch,dart,das,dats,db2,dcl,ddl,decls,depproj,desktop,desktop.in,dfm,dfy,dhall,di,diff,dircolors,dita,ditamap,ditaval,djs,dll.config,dlm,dm,do,dockerfile,dof,doh,dot,dotsettings,dpatch,dpr,druby,dsc,dsl,dsp,dsr,dtx,duby,dwl,dyalog,dyl,dylan,dzn,e,eam.fs,eb,ebnf,ebuild,ec,ecl,eclass,eclxml,ecr,ect,edc,edge,edgeql,editorconfig,edn,eh,ejs,ejs.t,el,eliom,eliomi,elm,elv,em,emacs,emacs.desktop,emberscript,eml,env,epj,eps,epsi,eq,erb,erb.deface,erl,es,es6,escript,esdl,ex,exs,eye,f,f03,f08,f77,f90,f95,factor,fan,fancypack,fbs,fcgi,fea,feature,filters,fir,fish,flex,flf,flix,flux,fnc,fnl,for,forth,fp,fpp,fr,frag,frg,frm,frt,fs,fsh,fshader,fsi,fsproj,fst,fsti,fsx,fth,ftl,ftlh,fun,fut,fx,fxh,fxml,fy,g,g4,gaml,gap,gawk,gbl,gbo,gbp,gbr,gbs,gco,gcode,gd,gdb,gdbinit,gdnlib,gdns,gdshader,gdshaderinc,ged,gemspec,geo,geojson,geom,gf,gi,gitconfig,gitignore,gjs,gko,glade,gleam,glf,glsl,glslf,glslv,gltf,glyphs,gmi,gml,gms,gmx,gn,gni,gnu,gnuplot,go,god,gohtml,golo,gotmpl,gp,gpb,gpt,gpx,gql,grace,gradle,gradle.kts,graphql,graphqls,groovy,grt,grxml,gs,gsc,gsh,gshader,gsp,gst,gsx,gtkrc,gtl,gto,gtp,gtpl,gts,gv,gvy,gyp,gypi,h,h++,h.in,ha,hack,haml,haml.deface,handlebars,har,hats,hb,hbs,hc,hcl,heex,hh,hhi,hic,hip,hlean,hlsl,hlsli,hocon,hoon,hpp,hqf,hql,hrl,hs,hs-boot,hsc,hta,htm,html,html.eex,html.hl,html.tmpl,http,hurl,hx,hxml,hxsl,hxx,hy,hzp,i,i3,i7x,ical,ice,iced,icl,icls,ics,idc,idr,ig,ihlp,ijm,ijs,ik,il,ily,imba,iml,inc,ini,ink,inl,ino,ins,intr,io,iol,ipf,ipp,ipynb,irclog,isl,ispc,iss,iuml,ivy,ixx,j,j2,jac,jade,jai,jake,janet,jav,java,javascript,jbuilder,jcl,jelly,jflex,jinja,jinja2,jison,jisonlex,jl,jq,js,js.erb,jsb,jscad,jsfl,jsh,jslib,jsm,json,json-tmlanguage,json.example,json5,jsonc,jsonl,jsonld,jsonnet,jsp,jspre,jsproj,jss,jst,jsx,jte,just,k,kak,kdl,kicad_mod,kicad_pcb,kicad_sch,kicad_sym,kicad_wks,kid,kit,kk,kml,kojo,kql,krl,ks,ksh,ksy,kt,ktm,kts,kv,l,lagda,langium,lark,las,lasso,lasso8,lasso9,latte,launch,lbx,ld,lds,lean,leex,lektorproject,leo,less,lex,lfe,lgt,lhs,libsonnet,lid,lidr,ligo,linq,liq,liquid,lisp,litcoffee,livecodescript,livemd,lkml,ll,lmi,lock,lockb,logtalk,lol,lookml,lp,lpr,ls,lsl,lslp,lsp,ltx,lua,luau,lvclass,lvlib,lvproj,ly,m,m2,m3,m3u,m3u8,m4,ma,mak,make,makefile,mako,man,mao,markdown,marko,mask,mat,mata,matah,mathematica,matlab,mawk,maxhelp,maxpat,maxproj,mbox,mbt,mc,mcfunction,mch,mcmeta,mcr,md,md2,md4,md5,mdoc,mdown,mdpolicy,mdwn,mdx,me,mediawiki,mermaid,meta,metal,metta,mg,minid,mint,mir,mirah,mjml,mjs,mk,mkd,mkdn,mkdown,mkfile,mkii,mkiv,mkvi,ml,ml4,mli,mligo,mlir,mll,mly,mm,mmd,mmk,mms,mo,mod,mojo,monkey,monkey2,moo,moon,mount,move,mpl,mps,mq4,mq5,mqh,mrc,ms,msd,msg,mspec,mss,mt,mtl,mtml,mts,mu,mud,muf,mumps,muse,mustache,mxml,mxt,mysql,myt,mzn,n,nanorc,nas,nasl,nasm,natvis,nawk,nb,nbp,nc,ncl,ndproj,ne,nearley,ned,neon,network,nf,nginx,nginxconf,ni,nim,nim.cfg,nimble,nimrod,nims,ninja,nit,nix,njk,njs,nl,nlogo,no,nomad,nproj,nqp,nr,nse,nsh,nsi,nss,nu,numpy,numpyw,numsc,nuspec,nut,ny,ob2,obj,objdump,odd,odin,ol,omgrofl,ooc,opa,opal,opencl,opy,orc,org,os,osm,outjob,overpassql,owl,ox,oxh,oxo,oxygene,oz,p,p4,p6,p6l,p6m,p8,pac,pact,pan,parrot,pas,pascal,pasm,pat,patch,pb,pbi,pbt,pbtxt,pc,pc.in,pcbdoc,pck,pcss,pd,pd_lua,pddl,pde,peggy,pegjs,pep,per,perl,pfa,pgsql,ph,php,php3,php4,php5,phps,phpt,phtml,pic,pig,pike,pir,pkb,pkgproj,pkl,pks,pl,pl6,plantuml,plb,plist,plot,pls,plsql,plt,pluginspec,plx,pm,pm6,pml,pmod,po,pod,pod6,podsl,podspec,pogo,polar,pony,por,postcss,pot,pov,pp,pprx,pq,praat,prawn,prc,prefab,prefs,prg,pri,prisma,prjpcb,pro,proj,prolog,properties,props,proto,prw,ps,ps1,ps1xml,psc,psc1,psd1,psgi,psm1,pt,pub,pubxml,pug,puml,purs,pwn,pxd,pxi,py,py3,pyde,pyi,pyp,pyt,pytb,pyw,pyx,q,qasm,qbs,qc,qhelp,ql,qll,qmd,qml,qnt,qs,r,r2,r3,rabl,rake,raku,rakumod,raml,rascript,raw,razor,rb,rbbas,rbfrm,rbi,rbmnu,rbres,rbs,rbtbar,rbuild,rbuistate,rbw,rbx,rbxs,rchit,rd,rdf,rdoc,re,reb,rebol,red,reds,reek,reg,regex,regexp,rego,rei,religo,res,resi,resource,rest,rest.txt,resx,rex,rexx,rg,rhtml,ring,riot,rkt,rktd,rktl,rl,rmd,rmiss,rnh,rno,rnw,robot,roc,rockspec,roff,ron,ronn,rpgle,rpy,rq,rs,rs.in,rsc,rsh,rss,rst,rst.txt,rsx,rtf,ru,ruby,rviz,s,sage,sagews,sail,sarif,sas,sass,sats,sbatch,sbt,sc,scad,scala,scaml,scd,sce,scenic,sch,schdoc,sci,scm,sco,scpt,scrbl,scss,scxml,sdc,sed,self,service,sexp,sfd,sfproj,sfv,sh,sh-session,sh.in,sha1,sha2,sha224,sha256,sha256sum,sha3,sha384,sha512,shader,shen,shproj,sieve,sig,sj,sjs,sl,slang,sld,slim,slint,sln,slnlaunch,slnx,sls,slurm,sma,smali,smithy,smk,sml,smt,smt2,snakefile,snap,snip,snippet,snippets,socket,sol,soy,sp,sparql,spc,spec,spin,sps,sqf,sql,sqlrpgle,sra,srdf,srt,sru,srv,srw,ss,ssjs,sss,st,stan,star,sthlp,stl,ston,story,storyboard,sttheme,sty,styl,sublime-build,sublime-color-scheme,sublime-commands,sublime-completions,sublime-keymap,sublime-macro,sublime-menu,sublime-mousemap,sublime-project,sublime-settings,sublime-snippet,sublime-syntax,sublime-theme,sublime-workspace,sublime_metrics,sublime_session,sum,surql,sv,svelte,svg,svh,svx,sw,swg,swift,swig,syntax,t,tab,tac,tact,tag,talon,target,targets,tcc,tcl,tcl.in,tcsh,te,tea,templ,tesc,tese,tex,texi,texinfo,textgrid,textile,textproto,tf,tfstate,tfstate.backup,tftpl,tfvars,thor,thrift,thy,timer,tl,tla,tlv,tm,tmac,tmcommand,tmdl,tml,tmlanguage,tmpl,tmpreferences,tmsnippet,tmtheme,tmux,toc,tofu,toit,toml,toml.example,tool,topojson,tpb,tpl,tpp,tps,tres,trg,trigger,ts,tscn,tsconfig.json,tsp,tst,tsv,tsx,ttl,tu,twig,txi,txl,txt,txtpb,txx,typ,uc,udf,udo,ui,unity,uno,upc,uplc,ur,urdf,url,urs,ux,v,vala,vapi,vark,vb,vba,vbhtml,vbproj,vbs,vcf,vcl,vcxproj,vdf,veo,vert,vh,vhd,vhdl,vhf,vhi,vho,vhost,vhs,vht,vhw,vim,vimrc,viw,vmb,vmf,volt,vrx,vs,vsh,vshader,vsixmanifest,vssettings,vstemplate,vtl,vto,vtt,vue,vw,vxml,vy,w,wast,wat,watchr,wdl,webapp,webidl,webmanifest,weechatlog,wgsl,whiley,wiki,wikitext,wisp,wit,wixproj,wl,wlk,wls,wlt,wlua,workbook,workflow,wren,ws,wsdl,wsf,wsgi,wxi,wxl,wxs,x,x10,x3d,x68,xacro,xaml,xbm,xc,xdc,xht,xhtml,xi,xib,xlf,xliff,xm,xmi,xml,xml.dist,xmp,xojo_code,xojo_menu,xojo_report,xojo_script,xojo_toolbar,xojo_window,xpl,xpm,xproc,xproj,xpy,xq,xql,xqm,xquery,xqy,xrl,xs,xsd,xsh,xsjs,xsjslib,xsl,xslt,xsp-config,xsp.metadata,xspec,xtend,xul,xzap,y,yacc,yaml,yaml-tmlanguage,yaml.sed,yang,yap,yar,yara,yasnippet,yml,yml.mysql,yrl,yul,yy,yyp,z3,zap,zcml,zed,zeek,zep,zig,zig.zon,zil,zimpl,zmodel,zmpl,zone,zpl,zs,zsh,zsh-theme`.split(`,`)),cW=new Set(`.abbrev_defs,.ackrc,.all-contributorsrc,.arcconfig,.atomignore,.auto-changelog,.babelignore,.babelrc,.bash_aliases,.bash_functions,.bash_history,.bash_logout,.bash_profile,.bashrc,.browserslistrc,.buckconfig,.bzrignore,.c8rc,.ckignore,.clang-format,.clang-tidy,.clangd,.classpath,.coffeelintignore,.coveragerc,.cshrc,.curlrc,.cvsignore,.dir_colors,.dockerignore,.easignore,.eleventyignore,.env.ci,.env.dev,.env.development,.env.development.local,.env.example,.env.local,.env.prod,.env.production,.env.sample,.env.staging,.env.template,.env.test,.env.testing,.envrc,.eslint-ignore,.eslintignore,.exrc,.factor-boot-rc,.factor-rc,.flake8,.flaskenv,.gclient,.gemrc,.git-blame-ignore-revs,.gitattributes,.gitmodules,.gnus,.gvimrc,.htaccess,.htmlhintrc,.ignore,.imgbotconfig,.inputrc,.irbrc,.jscsrc,.jshintrc,.jslintrc,.justfile,.kshrc,.latexmkrc,.login,.luacheckrc,.markdownlintignore,.nodemonignore,.npmignore,.npmrc,.nvimrc,.nycrc,.php_cs,.php_cs.dist,.prettierignore,.profile,.project,.pryrc,.pylintrc,.rgignore,.rprofile,.rspec,.scalafix.conf,.scalafmt.conf,.shellcheckrc,.simplecov,.spacemacs,.stylelintignore,.swcrc,.tern-config,.tern-project,.tgitconfig,.tm_properties,.tmux.conf,.vercelignore,.viper,.vscodeignore,.watchmanconfig,.wgetrc,.xcompose,.xinitrc,.xsession,.yardopts,.zlogin,.zlogout,.zprofile,.zshenv,.zshrc,9fs,_curlrc,_dir_colors,_dircolors,_emacs,_redirects,_vimrc,abbrev_defs,ack,ackrc,android.bp,apache2.conf,apkbuild,app.config,appraisals,bash_aliases,bash_logout,bash_profile,bashrc,berksfile,brewfile,browserslist,bsdmakefile,buck,build,build.bazel,buildfile,cabal.config,cabal.project,caddyfile,cakefile,capfile,cargo.toml.orig,cask,citation,citation.cff,citations,cksums,codeowners,commit_editmsg,config.worktree,configure.ac,containerfile,contents.lr,copying,cpanfile,crontab,cshrc,dangerfile,deliverfile,deps,dir_colors,dockerfile,dune-project,earthfile,eask,emakefile,encodings.dir,eqnrc,expr-dist,fakefile,fastfile,file_contexts,firestore.rules,fontlog,fonts.alias,fonts.dir,fonts.scale,fp-lib-table,gemfile,genfs_contexts,gitignore-global,gitignore_global,gnumakefile,go.work,gradlew,gtkrc,gtkrc-2.0,guardfile,gvimrc,hosts,httpd.conf,initial_sids,inputrc,install,jakefile,jarfile,jenkinsfile,justfile,kakrc,kbuild,kshrc,latexmkrc,ld.script,license,login,m3makefile,m3overrides,makefile,makefile.am,makefile.in,man,manifest.mf,mavenfile,mcmod.info,md5sums,meson.build,mkfile,mmn,mmt,mocha.opts,module.bazel,modulefile,mvnw,nanorc,news,nextflow.config,nginx.conf,notebook,nuget.config,nukefile,nvimrc,owh,package.resolved,packages.config,phakefile,pipfile,pkgbuild,podfile,port_contexts,procfile,profile,project.ede,project.godot,puppetfile,pylintrc,rakefile,readme.1st,rebar.config,rexfile,riemann.config,root,sconscript,sconstruct,security_classes,settings.stylecop,sha1sums,sha256sums,sha512sums,singularity,slakefile,snakefile,snapfile,ssh-config,ssh_config,sshconfig,sshd-config,sshd_config,starfield,steepfile,suite.rc,thorfile,tiltfile,tmux.conf,torrc,troffrc,troffrc-end,vagrantfile,vimrc,vlcrc,web.config,web.debug.config,web.release.config,workspace,workspace.bazel,workspace.bzlmod,wscript,xcompose,xinitrc,xsession,zlogin,zlogout,zprofile,zshenv,zshrc`.split(`,`)),lW=new Set(`9fs._curlrc._dir_colors._dircolors._emacs._redirects._vimrc.abbrev_defs.ack.ackrc.apkbuild.appraisals.bash_aliases.bash_logout.bash_profile.bashrc.berksfile.brewfile.browserslist.bsdmakefile.buck.build.buildfile.caddyfile.cakefile.capfile.cask.citation.citations.cksums.codeowners.commit_editmsg.containerfile.copying.cpanfile.crontab.cshrc.dangerfile.deliverfile.deps.dir_colors.dockerfile.dune-project.earthfile.eask.emakefile.eqnrc.expr-dist.fakefile.fastfile.file_contexts.fontlog.fp-lib-table.gemfile.genfs_contexts.gitignore-global.gitignore_global.gnumakefile.gradlew.gtkrc.guardfile.gvimrc.hosts.initial_sids.inputrc.install.jakefile.jarfile.jenkinsfile.justfile.kakrc.kbuild.kshrc.latexmkrc.license.login.m3makefile.m3overrides.makefile.man.mavenfile.md5sums.mkfile.mmn.mmt.modulefile.mvnw.nanorc.news.notebook.nukefile.nvimrc.owh.phakefile.pipfile.pkgbuild.podfile.port_contexts.procfile.profile.puppetfile.pylintrc.rakefile.rexfile.root.sconscript.sconstruct.security_classes.sha1sums.sha256sums.sha512sums.singularity.slakefile.snakefile.snapfile.ssh-config.ssh_config.sshconfig.sshd-config.sshd_config.starfield.steepfile.thorfile.tiltfile.torrc.troffrc.troffrc-end.vagrantfile.vimrc.vlcrc.workspace.wscript.xcompose.xinitrc.xsession.zlogin.zlogout.zprofile.zshenv.zshrc`.split(`.`));function uW(e){if(/^https?:\/\//i.test(e))return`url`;if(!/^[a-z][a-z0-9+.-]*:\/\//i.test(e)&&e!==`/`&&!/^\/[a-z][a-z0-9-]*$/i.test(e)&&!/\s/.test(e)&&!/[()\[\]{}*+=<>|&^"';]/.test(e)&&(/[/\\]/.test(e)||/^\.\.?[/\\]/.test(e)||dW(e)||fW(e)))return`path`}function dW(e){let t=e.toLowerCase();if(t.endsWith(`.d.ts`))return!0;let n=t.lastIndexOf(`.`);return n!==-1&&sW.has(t.slice(n+1))}function fW(e){let t=e.toLowerCase();if(cW.has(t))return!0;let n=t.indexOf(`.`);return n!==-1&&lW.has(t.slice(0,n))}var pW,mW=0;async function hW(e){let t=await(pW??=gW());if(await t.parse(e,{suppressErrors:!0}))return(await t.render(`markdown-mermaid-${mW++}`,e)).svg}async function gW(){let{default:e}=await Y(async()=>{let{default:e}=await import(`./mermaid.core-D1TUMBuT.js`);return{default:e}},__vite__mapDeps([125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142]));return e.initialize({startOnLoad:!1,securityLevel:`strict`,theme:document.documentElement.dataset.colorScheme===`light`?`default`:`dark`,flowchart:{htmlLabels:!1}}),e}var _W=W(`<span data-markdown-word>`);function vW(e,t,n){let[r,i]=$t(bW(t,n)),a=!1,o=st(()=>z(Ge,{each:r,children:e=>z(yW,{node:e,animate:()=>a})}),e);return a=!0,{update(e,t,n=!0){i(rn(bW(e,t,n),{key:`key`}))},dispose:o}}function yW(e){let t=e.node;if(t.type===`text`)return t.text;if(t.type===`word`){let n;return oe(()=>{e.animate()&&t.animate&&n?.setAttribute(`data-markdown-enter`,``)}),(()=>{var e=_W(),r=n;return typeof r==`function`?_t(r,e):n=e,K(e,()=>t.text),e})()}return z(Pt,B({get component(){return t.tag}},()=>t.attributes,{get children(){return z(Ge,{get each(){return t.children},children:t=>z(yW,{node:t,get animate(){return e.animate}})})}}))}function bW(e,t,n=!1){let r=document.createElement(`template`);return r.innerHTML=e,Array.from(r.content.childNodes).flatMap((e,r)=>xW(e,`${r}`,t,n))}function xW(e,t,n,r){return e instanceof Text?n?e.data.split(/(\s+)/).flatMap((e,n)=>e?/^\s+$/.test(e)?[{key:`${t}:${n}`,type:`text`,text:e}]:[{key:`${t}:${n}`,type:`word`,text:e,...r?{animate:!0}:{}}]:[]):[{key:t,type:`text`,text:e.data}]:e instanceof Element?[{key:t,type:`element`,tag:e.tagName.toLowerCase(),attributes:Object.fromEntries(Array.from(e.attributes).map(e=>[e.name,e.value])),children:Array.from(e.childNodes).flatMap((e,i)=>xW(e,`${t}.${i}`,n,r))}]:[]}var SW=L(),CW=()=>R(SW),wW=W(`<div data-component=markdown dir=auto>`),TW=new WeakMap,EW=new WeakMap;function DW(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}function OW(e){return DW(e).replace(/\r\n?/g,`
783
785
  `).replace(/\n/g,`<br>`)}async function kW(e,t,n,r=!1){try{let i=await wB(n,e,t??`text`,r);return{language:i.language,generation:i.generation,stable:i.stable,unstable:i.unstable}}catch(n){return!(n instanceof EB)&&!(n instanceof DB)&&!(n instanceof OB)&&console.error(`Markdown highlighting worker failed`,n),{language:t??`text`,generation:0,stable:[],unstable:[[e,``]]}}}var AW=new WeakMap,jW=/^https?:\/\/[^\s<>()`"']+$/;function MW(e){let t=e.trim().replace(/[),.;!?]+$/,``);if(jW.test(t))try{return new URL(t).toString()}catch{return}}function NW(e){let t=document.createElement(`div`);t.setAttribute(`data-slot`,`markdown-copy-button`);let n={};return n.dispose=st(()=>{let[t,r]=A(e,{equals:!1}),[i,a]=A(!1);return n.setLabels=r,n.setCopied=a,z(PW,{get labels(){return t()},get copied(){return i()}})},t),AW.set(t,n),t}function PW(e){let t=()=>e.copied?e.labels.copied:e.labels.copy;return z(Sl,{placement:`top`,get value(){return t()},get children(){return z(Lo,{type:`button`,size:`normal`,variant:`ghost-muted`,get"aria-label"(){return t()},get icon(){return[z(X,{name:`outline-copy`,"data-copy-icon":!0}),z(X,{name:`check`,"data-check-icon":!0})]}})}})}function FW(e,t,n){let r=AW.get(e);if(r?.setLabels(t),r?.setCopied(n),n){e.setAttribute(`data-copied`,`true`);return}e.removeAttribute(`data-copied`)}function IW(e){AW.get(e)?.dispose(),AW.delete(e)}function LW(e){[...e instanceof HTMLElement&&e.getAttribute(`data-slot`)===`markdown-copy-button`?[e]:[],...Array.from(e.querySelectorAll(`[data-slot="markdown-copy-button"]`)).filter(e=>e instanceof HTMLElement)].forEach(IW)}function RW(e){[...e instanceof HTMLDivElement&&e.hasAttribute(`data-markdown-block`)?[e]:[],...Array.from(e.querySelectorAll(`[data-markdown-block]`))].forEach(e=>{EW.get(e)?.renderer.dispose(),EW.delete(e)})}var zW=new Set([`bash`,`sh`,`shell`,`zsh`,`fish`,`console`,`terminal`]);function BW(e){let t=e?.toLowerCase();if(t&&zW.has(t))return`shell`}function VW(e,t){t?e.dataset.language=t:delete e.dataset.language;let n=BW(t);n?e.dataset.codeKind=n:delete e.dataset.codeKind}function HW(e,t,n){if(!t.classList.contains(`language-mermaid`)){UW(e);return}let r=t.textContent??``;if(!r)return;let i=e.querySelector(`[data-component="markdown-mermaid"]`)??document.createElement(`div`);i.setAttribute(`data-component`,`markdown-mermaid`),i.parentElement||e.appendChild(i),e.dataset.mermaidPending=`true`;let a=n?r:r.slice(0,r.lastIndexOf(`
784
786
  `)+1);if(!a)return;let o=`${n?`complete`:`streaming`}:${a.length}`;e.dataset.mermaidAttempt!==o&&(e.dataset.mermaidAttempt=o,hW(a).then(o=>{if(!o){n&&t.textContent===r&&UW(e);return}(t.textContent??``).startsWith(a)&&(i.innerHTML=o,delete e.dataset.mermaidPending,e.dataset.mermaidReady=`true`)}).catch(()=>{n&&t.textContent===r&&UW(e)}))}function UW(e){delete e.dataset.mermaidAttempt,delete e.dataset.mermaidPending,delete e.dataset.mermaidReady,e.querySelector(`[data-component="markdown-mermaid"]`)?.remove()}function WW(e){let t=Array.from(e.querySelectorAll(`:not(pre) > code`));for(let e of t){let t=MW(e.textContent??``),n=e.parentElement instanceof HTMLAnchorElement&&e.parentElement.classList.contains(`external-link`)?e.parentElement:null;if(!t){n&&n.replaceWith(e);continue}if(n){n.href=t;continue}let r=document.createElement(`a`);r.href=t,r.className=`external-link`,r.target=`_blank`,r.rel=`noopener noreferrer`,e.parentNode?.replaceChild(r,e),r.appendChild(e)}}function GW(e){let t=Array.from(e.querySelectorAll(`:not(pre) > code`));for(let e of t){if(!(e instanceof HTMLElement))continue;delete e.dataset.inlineCodeKind;let t=uW(e.textContent??``);t&&(e.dataset.inlineCodeKind=t)}}function KW(e,t){let n=new Map,r=e=>{FW(e,t(),e.getAttribute(`data-copied`)===`true`)},i=async e=>{let r=e.target;if(!(r instanceof Element))return;let i=r.closest(`[data-slot="markdown-copy-button"]`);if(!(i instanceof HTMLElement))return;let a=i.closest(`[data-component="markdown-code"]`)?.querySelector(`code`)?.textContent??``;if(!a)return;let o=navigator?.clipboard;if(!o)return;await o.writeText(a);let s=t();FW(i,s,!0);let c=n.get(i);c&&clearTimeout(c);let l=setTimeout(()=>FW(i,s,!1),2e3);n.set(i,l)},a=Array.from(e.querySelectorAll(`[data-slot="markdown-copy-button"]`));for(let e of a)e instanceof HTMLElement&&r(e);return e.addEventListener(`click`,i),()=>{e.removeEventListener(`click`,i);for(let e of n.values())clearTimeout(e);LW(e)}}function qW(e,t,n,r,i){if(!e)return{text:e,blocks:[],ready:!0};let a=t??mf(e);if(a){let t=n.blocks.flatMap((e,t)=>{if(e.mode===`code`)return[];let n=`${a}:${t}:${e.mode}`,i=e.mode===`full`?iW(e,n):nW(n);return i?.raw===e.raw?(e.mode!==`full`&&rW(n,i),[{key:`${r}:${n}`,mode:e.mode,...i}]):[]});if(t.length===n.blocks.length)return{text:e,blocks:t,ready:!0}}return i?{text:e,blocks:[],ready:!1}:{text:e,ready:!1,blocks:[{key:`initial`,mode:`full`,raw:e,hash:mf(e)??``,html:OW(e)}]}}function JW(e){return{text:e,blocks:e?[{raw:e,src:e,mode:`live`}]:[]}}function YW(e){let[t,n]=V(e,[`text`,`cacheKey`,`streaming`,`deferUntilReady`,`class`,`classList`]),r=Al(),i=CW(),[a,o]=A(),s=Ue(),c=new AbortController,l=new Set,u=new Map,d=!1,[f]=re(()=>{let e=t.streaming??!1;if(e&&(d=!0),e||d)return{key:s,text:t.text,live:e}},e=>SB(e.key,e.text,e.live),{initialValue:JW(``)}),p=()=>{if(!(t.streaming??!1)&&!d)return iB(t.text);let e=f.latest;return e?.text===t.text||e?.text?e:JW(t.text)},m=qW(t.text,t.cacheKey,t.streaming?JW(t.text):iB(t.text),s,t.deferUntilReady),[h]=re(()=>{let e=!(t.streaming??!1)&&!d?iB(t.text):f.latest;if(e&&e.text===t.text)return{text:t.text,key:t.cacheKey,projection:e}},e=>{if(!e.text)return{text:e.text,blocks:[],ready:!0};if(!d&&m.ready&&m.text===e.text)return m;let t=e.key??mf(e.text);return Promise.all(e.projection.blocks.map(async(n,r)=>{let i=t?`${t}:${r}:${n.mode}`:void 0,a=sB(s,e.key,r,n.mode);if(n.mode===`code`){let e=u.get(a);if(n.complete&&e?.raw===n.raw)return e;let t=await kW(n.src,n.language,a,n.complete),r={key:a,mode:n.mode,raw:n.raw,hash:String(n.raw.length),complete:!!n.complete,...t};return n.complete&&u.set(a,r),r}let o=n.mode===`full`?iW(n,i):void 0;return{key:a,mode:n.mode,...o??await aW(n,i,c.signal)}})).then(t=>({text:e.text,blocks:t,ready:!0})).catch(()=>c.signal.aborted?{text:e.text,blocks:[],ready:!1}:{text:e.text,ready:!0,blocks:[{key:t??`fallback`,mode:`full`,raw:e.text,hash:mf(e.text)??``,html:OW(e.text)}]})},{initialValue:m}),g,_,v;return M(()=>{let e=a(),n=h.latest??h(),o=p(),c=t.text?XW(n,o,t.cacheKey,s,t.deferUntilReady):[];if(!e)return;if(_!==i?.readImage&&(v?.dispose(),_=i?.readImage,v=_?YU(_):void 0),delete e.dataset.markdownReady,c.length===0){LW(e),RW(e),e.innerHTML=``,v?.update(e),n?.ready&&n.text===t.text&&(e.dataset.markdownReady=``);return}let u={copy:r.t(`ui.message.copy`),copied:r.t(`ui.message.copied`)},d=new Set(c.filter(e=>e.mode===`code`).map(e=>e.key));for(l.forEach(e=>{d.has(e)||ZW(e)}),l.clear(),d.forEach(e=>l.add(e)),c.forEach((t,n)=>QW(e,n,t,u));e.children.length>c.length;){let t=e.lastElementChild;if(!t)break;LW(t),RW(t),t.remove()}v?.update(e),e.querySelectorAll(`[data-slot="markdown-copy-button"]`).forEach(e=>FW(e,u,e.dataset.copied===`true`)),g||=KW(e,()=>({copy:r.t(`ui.message.copy`),copied:r.t(`ui.message.copied`)})),n?.ready&&n.text===t.text&&(e.dataset.markdownReady=``)}),F(()=>{c.abort(),v?.dispose(),g&&g();let e=a();e&&RW(e),d&&CB(s),l.forEach(ZW),u.clear()}),(()=>{var e=wW();return _t(o,e),gt(e,B({get classList(){return{...t.classList,[t.class??``]:!!t.class}}},n),!1,!1),e})()}function XW(e,t,n,r,i){if(!e)return[];if(!t||e.text===t.text||i)return e.blocks;let a=e.blocks.length===1&&e.blocks[0]?.key===`initial`;return t.blocks.map((t,i)=>{let o=a?void 0:e.blocks[i];if(o&&aB(o,t))return o;let s=sB(r,n,i,t.mode);return t.mode===`code`?{key:s,mode:t.mode,raw:t.raw,hash:String(t.raw.length),language:t.language??`text`,complete:!!t.complete,stable:[],generation:0,unstable:[[t.src,``]]}:{key:s,mode:t.mode,raw:t.raw,hash:String(t.raw.length),html:OW(t.src)}})}function ZW(e){TB(e)}function QW(e,t,n,r){let i=e.children[t];if(n.mode===`code`){$W(e,i,n,r);return}let a=i instanceof HTMLDivElement&&i.dataset.markdownKey===n.key&&!TW.has(i)?i:void 0;if(a?.dataset.markdownHash===n.hash)return;let o=a??document.createElement(`div`);o.dataset.markdownBlock=``,o.dataset.markdownKey=n.key,o.dataset.markdownHash=n.hash,o.style.display=`contents`;let s=EW.get(o),c=s||n.mode===`live`?document.createElement(`div`):o;if(c===o&&LW(o),c.innerHTML=n.html,GW(c),WW(c),s){s.renderer.update(c.innerHTML,n.mode===`live`,s.raw!==n.raw),s.raw=n.raw;return}if(n.mode===`live`&&(o.replaceChildren(),EW.set(o,{renderer:vW(o,c.innerHTML,!0),raw:n.raw})),n.mode!==`live`&&o.querySelectorAll(`pre > code`).forEach(e=>{let t=e.parentElement,n=document.createElement(`div`);n.dataset.component=`markdown-code`,VW(n,Array.from(e.classList).find(e=>e.startsWith(`language-`))?.slice(9)),t.replaceWith(n),n.appendChild(t),n.appendChild(NW(r)),HW(n,e,!0)}),!a){if(!i){e.appendChild(o);return}LW(i),RW(i),i.replaceWith(o)}}function $W(e,t,n,r){let i=t instanceof HTMLDivElement&&t.dataset.markdownKey===n.key&&TW.has(t)?t:void 0,a=i??document.createElement(`div`);a.dataset.markdownBlock=``,a.dataset.markdownKey=n.key,a.dataset.markdownHash=n.hash,a.dataset.markdownComplete=n.complete?`true`:`false`,a.style.display=`contents`;let o=i?.querySelector(`code`);if(o instanceof HTMLElement){let e=o.closest(`[data-component="markdown-code"]`);e instanceof HTMLElement&&VW(e,n.language),o.className=`language-${n.language}`;let t=TW.get(a),r=AB(t,{language:n.language,generation:n.generation,stableCount:n.stable.length,raw:n.raw}),i=r?0:t.stableCount,s=[...n.stable.slice(i),...n.unstable],c=r?[]:t.unstable,l=c.findIndex((e,t)=>!eG(e,s[t])),u=i+(l<0?Math.min(c.length,s.length):l);for(;o.children.length>u;)o.lastElementChild?.remove();s.slice(u-i).map(tG).forEach(e=>o.appendChild(e)),TW.set(a,{language:n.language,generation:n.generation,stableCount:n.stable.length,unstable:n.unstable,raw:n.raw}),e instanceof HTMLElement&&HW(e,o,n.complete);return}let s=document.createElement(`div`);s.setAttribute(`data-component`,`markdown-code`),VW(s,n.language);let c=document.createElement(`pre`);c.className=`shiki OpenCode`;let l=document.createElement(`code`);if(l.className=`language-${n.language}`,[...n.stable,...n.unstable].map(tG).forEach(e=>l.appendChild(e)),c.appendChild(l),s.appendChild(c),s.appendChild(NW(r)),HW(s,l,n.complete),a.appendChild(s),TW.set(a,{language:n.language,generation:n.generation,stableCount:n.stable.length,unstable:n.unstable,raw:n.raw}),t){LW(t),RW(t),t.replaceWith(a);return}e.appendChild(a)}function eG(e,t){return!!t&&e[0]===t[0]&&e[1]===t[1]}function tG(e){let t=document.createElement(`span`);return t.setAttribute(`style`,e[1]),t.textContent=e[0],t}var nG=W(`<div data-slot=image-preview-header>`),rG=W(`<div data-slot=image-preview-body><img data-slot=image-preview-image>`),iG=W(`<div data-component=image-preview><div data-slot=image-preview-container>`);function aG(e){let t=Al();return(()=>{var n=iG(),r=n.firstChild;return K(r,z(_o.Content,{"data-slot":`image-preview-content`,get children(){return[(()=>{var e=nG();return K(e,z(_o.CloseButton,{"data-slot":`image-preview-close`,as:Lo,get icon(){return z(X,{name:`close`})},variant:`ghost`,get"aria-label"(){return t.t(`ui.common.close`)}})),e})(),(()=>{var n=rG(),r=n.firstChild;return j(n=>{var i=e.src,a=e.alt??t.t(`ui.imagePreview.alt`);return i!==n.e&&G(r,`src`,n.e=i),a!==n.t&&G(r,`alt`,n.t=a),n},{e:void 0,t:void 0}),n})()]}})),n})()}function oG(e){if(!e)return``;let t=e.replace(/[/\\]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return t.slice(n+1)}function sG(e){if(!e)return``;let t=e.replace(/[/\\]+$/,``).split(/[/\\]/);return t.slice(0,t.length-1).join(`/`)+`/`}function cG(e,t=20){let n=oG(e);if(n.length<=t)return n;let r=n.lastIndexOf(`.`),i=r<=0?``:n.slice(r),a=t-i.length-1;return a<=0?n.slice(0,t-1)+`…`:n.slice(0,a)+`…`+i}var lG=W(`<div data-component=attachment-card><span data-slot=attachment-card-title></span><span data-slot=attachment-card-subtitle>`);function uG(e){return(()=>{var t=lG(),n=t.firstChild,r=n.nextSibling;return t.$$click=()=>e.onClick?.(),_t(t=>e.titleRef?.(t),n),K(n,()=>e.title),K(r,()=>e.children),j(n=>{var r=e.active?`true`:void 0,i=e.clickable?`true`:void 0,a=e.wide?`true`:void 0,o=e.surface,s=e.hover;return r!==n.e&&G(t,`data-active`,n.e=r),i!==n.t&&G(t,`data-clickable`,n.t=i),a!==n.a&&G(t,`data-wide`,n.a=a),o!==n.o&&G(t,`data-surface`,n.o=o),s!==n.i&&G(t,`title`,n.i=s),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})()}ct([`click`]);var dG=`/assets/sprite-Fb-TFjRY.svg`,fG=W(`<svg><defs><mask mask-type=alpha><use></svg>`,!1,!0,!1),pG=W(`<svg><rect width=100% height=100% fill=currentColor></svg>`,!1,!0,!1),mG=W(`<svg data-component=file-icon>`),hG=W(`<svg><use></svg>`,!1,!0,!1),gG=e=>{let[t,n]=V(e,[`node`,`class`,`classList`,`expanded`,`mono`]),r=N(()=>SG(t.node.path,t.node.type,t.expanded||!1)),i=`file-icon-mono-${Ue()}`;return(()=>{var e=mG();return gt(e,B(n,{get classList(){return{...t.classList,[t.class??``]:!!t.class}}}),!0,!0),K(e,z(H,{get when(){return t.mono},get fallback(){return(()=>{var e=hG();return j(()=>G(e,`href`,`${dG}#${r()}`)),e})()},get children(){return[(()=>{var e=fG(),t=e.firstChild,n=t.firstChild;return G(t,`id`,i),j(()=>G(n,`href`,`${dG}#${r()}`)),e})(),(()=>{var e=pG();return G(e,`mask`,`url(#${i})`),e})()]}})),e})()},_G={fileNames:{"readme.md":`Readme`,"changelog.md":`Changelog`,"contributing.md":`Contributing`,"conduct.md":`Conduct`,license:`Certificate`,authors:`Authors`,credits:`Credits`,install:`Installation`,"package.json":`Nodejs`,"package-lock.json":`Nodejs`,"yarn.lock":`Yarn`,"pnpm-lock.yaml":`Pnpm`,"bun.lock":`Bun`,"bun.lockb":`Bun`,"bunfig.toml":`Bun`,".nvmrc":`Nodejs`,".node-version":`Nodejs`,dockerfile:`Docker`,"docker-compose.yml":`Docker`,"docker-compose.yaml":`Docker`,".dockerignore":`Docker`,"jest.config.js":`Jest`,"jest.config.ts":`Jest`,"jest.config.mjs":`Jest`,"vitest.config.js":`Vitest`,"vitest.config.ts":`Vitest`,"tailwind.config.js":`Tailwindcss`,"tailwind.config.ts":`Tailwindcss`,"turbo.json":`Turborepo`,"tsconfig.json":`Tsconfig`,"jsconfig.json":`Jsconfig`,".eslintrc":`Eslint`,".eslintrc.js":`Eslint`,".eslintrc.json":`Eslint`,".prettierrc":`Prettier`,".prettierrc.js":`Prettier`,".prettierrc.json":`Prettier`,"vite.config.js":`Vite`,"vite.config.ts":`Vite`,"webpack.config.js":`Webpack`,"rollup.config.js":`Rollup`,"astro.config.mjs":`AstroConfig`,"astro.config.js":`AstroConfig`,"next.config.js":`Next`,"next.config.mjs":`Next`,"nuxt.config.js":`Nuxt`,"nuxt.config.ts":`Nuxt`,"svelte.config.js":`Svelte`,"gatsby-config.js":`Gatsby`,"remix.config.js":`Remix`,"prisma.schema":`Prisma`,".gitignore":`Git`,".gitattributes":`Git`,makefile:`Makefile`,cmake:`Cmake`,"cargo.toml":`Rust`,"go.mod":`GoMod`,"go.sum":`GoMod`,"requirements.txt":`Python`,"pyproject.toml":`Python`,pipfile:`Python`,"poetry.lock":`Poetry`,gemfile:`Gemfile`,rakefile:`Ruby`,"composer.json":`Php`,"build.gradle":`Gradle`,"pom.xml":`Maven`,"deno.json":`Deno`,"deno.jsonc":`Deno`,"vercel.json":`Vercel`,"netlify.toml":`Netlify`,".env":`Tune`,".env.local":`Tune`,".env.development":`Tune`,".env.production":`Tune`,".env.example":`Tune`,".editorconfig":`Editorconfig`,"robots.txt":`Robots`,"favicon.ico":`Favicon`,browserlist:`Browserlist`,".babelrc":`Babel`,"babel.config.js":`Babel`,"gulpfile.js":`Gulp`,"gruntfile.js":`Grunt`,"capacitor.config.json":`Capacitor`,"ionic.config.json":`Ionic`,"angular.json":`Angular`,".storybook":`Storybook`,"storybook.config.js":`Storybook`,"cypress.config.js":`Cypress`,"playwright.config.js":`Playwright`,"puppeteer.config.js":`Puppeteer`,"wrangler.toml":`Wrangler`,"firebase.json":`Firebase`,supabase:`Supabase`,terraform:`Terraform`,kubernetes:`Kubernetes`,".gitpod.yml":`Gitpod`,".devcontainer":`Vscode`,"travis.yml":`Travis`,"appveyor.yml":`Appveyor`,".circleci":`Circleci`,"renovate.json":`Renovate`,"dependabot.yml":`Dependabot`,"lerna.json":`Lerna`,"nx.json":`Nx`},fileExtensions:{"spec.ts":`TestTs`,"test.ts":`TestTs`,"spec.tsx":`TestJsx`,"test.tsx":`TestJsx`,"spec.js":`TestJs`,"test.js":`TestJs`,"spec.jsx":`TestJsx`,"test.jsx":`TestJsx`,"js.map":`JavascriptMap`,"d.ts":`TypescriptDef`,ts:`Typescript`,tsx:`React_ts`,js:`Javascript`,jsx:`React`,mjs:`Javascript`,cjs:`Javascript`,html:`Html`,htm:`Html`,css:`Css`,scss:`Sass`,sass:`Sass`,less:`Less`,styl:`Stylus`,json:`Json`,xml:`Xml`,yml:`Yaml`,yaml:`Yaml`,toml:`Toml`,hjson:`Hjson`,md:`Markdown`,mdx:`Mdx`,tex:`Tex`,py:`Python`,pyx:`Python`,pyw:`Python`,rs:`Rust`,go:`Go`,java:`Java`,kt:`Kotlin`,scala:`Scala`,php:`Php`,rb:`Ruby`,cs:`Csharp`,vb:`Visualstudio`,cpp:`Cpp`,cc:`Cpp`,cxx:`Cpp`,c:`C`,h:`H`,hpp:`Hpp`,swift:`Swift`,m:`ObjectiveC`,mm:`ObjectiveCpp`,dart:`Dart`,lua:`Lua`,pl:`Perl`,r:`R`,jl:`Julia`,hs:`Haskell`,elm:`Elm`,ml:`Ocaml`,clj:`Clojure`,cljs:`Clojure`,erl:`Erlang`,ex:`Elixir`,exs:`Elixir`,nim:`Nim`,zig:`Zig`,v:`Vlang`,odin:`Odin`,gleam:`Gleam`,grain:`Grain`,roc:`Rocket`,fs:`Fsharp`,sh:`Console`,bash:`Console`,zsh:`Console`,fish:`Console`,ps1:`Powershell`,cfg:`Settings`,ini:`Settings`,conf:`Settings`,properties:`Settings`,svg:`Svg`,png:`Image`,jpg:`Image`,jpeg:`Image`,gif:`Image`,webp:`Image`,bmp:`Image`,ico:`Favicon`,mp4:`Video`,mov:`Video`,avi:`Video`,webm:`Video`,mp3:`Audio`,wav:`Audio`,flac:`Audio`,zip:`Zip`,tar:`Zip`,gz:`Zip`,rar:`Zip`,"7z":`Zip`,pdf:`Pdf`,doc:`Word`,docx:`Word`,ppt:`Powerpoint`,pptx:`Powerpoint`,xls:`Document`,xlsx:`Document`,sql:`Database`,db:`Database`,sqlite:`Database`,env:`Tune`,log:`Log`,lock:`Lock`,key:`Key`,pem:`Certificate`,crt:`Certificate`,proto:`Proto`,graphql:`Graphql`,gql:`Graphql`,wasm:`Webassembly`,dockerfile:`Docker`},folderNames:{src:`FolderSrc`,source:`FolderSrc`,lib:`FolderLib`,libs:`FolderLib`,test:`FolderTest`,tests:`FolderTest`,testing:`FolderTest`,spec:`FolderTest`,specs:`FolderTest`,__tests__:`FolderTest`,e2e:`FolderTest`,integration:`FolderTest`,unit:`FolderTest`,cypress:`FolderCypress`,node_modules:`FolderNode`,vendor:`FolderPackages`,packages:`FolderPackages`,deps:`FolderPackages`,build:`FolderBuildkite`,dist:`FolderDist`,out:`FolderDist`,output:`FolderDist`,target:`FolderTarget`,config:`FolderConfig`,configs:`FolderConfig`,configuration:`FolderConfig`,settings:`FolderConfig`,env:`FolderEnvironment`,environments:`FolderEnvironment`,docker:`FolderDocker`,dockerfiles:`FolderDocker`,containers:`FolderDocker`,docs:`FolderDocs`,doc:`FolderDocs`,documentation:`FolderDocs`,readme:`FolderDocs`,public:`FolderPublic`,static:`FolderPublic`,assets:`FolderImages`,images:`FolderImages`,img:`FolderImages`,icons:`FolderImages`,media:`FolderImages`,fonts:`FolderFont`,styles:`FolderCss`,stylesheets:`FolderCss`,css:`FolderCss`,sass:`FolderSass`,scss:`FolderSass`,less:`FolderLess`,scripts:`FolderScripts`,script:`FolderScripts`,tools:`FolderTools`,utils:`FolderUtils`,utilities:`FolderUtils`,helpers:`FolderHelper`,components:`FolderComponents`,component:`FolderComponents`,views:`FolderViews`,view:`FolderViews`,layouts:`FolderLayout`,layout:`FolderLayout`,templates:`FolderTemplate`,template:`FolderTemplate`,hooks:`FolderHook`,hook:`FolderHook`,store:`FolderStore`,stores:`FolderStore`,state:`FolderNgrxStore`,reducers:`FolderReduxReducer`,reducer:`FolderReduxReducer`,services:`FolderApi`,service:`FolderApi`,api:`FolderApi`,apis:`FolderApi`,routes:`FolderRoutes`,route:`FolderRoutes`,routing:`FolderRoutes`,middleware:`FolderMiddleware`,middlewares:`FolderMiddleware`,controllers:`FolderController`,controller:`FolderController`,models:`FolderDatabase`,model:`FolderDatabase`,schemas:`FolderDatabase`,schema:`FolderDatabase`,migrations:`FolderDatabase`,migration:`FolderDatabase`,seeders:`FolderSeeders`,seeder:`FolderSeeders`,types:`FolderTypescript`,typing:`FolderTypescript`,typings:`FolderTypescript`,"@types":`FolderTypescript`,interfaces:`FolderInterface`,interface:`FolderInterface`,android:`FolderAndroid`,ios:`FolderIos`,mobile:`FolderMobile`,flutter:`FolderFlutter`,kubernetes:`FolderKubernetes`,k8s:`FolderKubernetes`,terraform:`FolderTerraform`,aws:`FolderAws`,azure:`FolderAzurePipelines`,firebase:`FolderFirebase`,supabase:`FolderSupabase`,vercel:`FolderVercel`,netlify:`FolderNetlify`,".github":`FolderGithub`,".gitlab":`FolderGitlab`,".circleci":`FolderCircleci`,ci:`FolderCi`,".ci":`FolderCi`,workflows:`FolderGhWorkflows`,".git":`FolderGit`,".vscode":`FolderVscode`,".idea":`FolderIntellij`,".cursor":`FolderCursor`,".devcontainer":`FolderContainer`,".storybook":`FolderStorybook`,i18n:`FolderI18n`,locales:`FolderI18n`,locale:`FolderI18n`,lang:`FolderI18n`,languages:`FolderI18n`,temp:`FolderTemp`,tmp:`FolderTemp`,logs:`FolderLog`,log:`FolderLog`,backup:`FolderBackup`,backups:`FolderBackup`,examples:`FolderExamples`,example:`FolderExamples`,demo:`FolderExamples`,demos:`FolderExamples`,samples:`FolderExamples`,sample:`FolderExamples`,fixtures:`FolderTest`,mocks:`FolderMock`,mock:`FolderMock`,data:`FolderDatabase`,database:`FolderDatabase`,db:`FolderDatabase`,sql:`FolderDatabase`,prisma:`FolderPrisma`,drizzle:`FolderDrizzle`,security:`FolderSecure`,auth:`FolderSecure`,authentication:`FolderSecure`,authorization:`FolderSecure`,keys:`FolderKeys`,certs:`FolderKeys`,certificates:`FolderKeys`,content:`FolderContent`,posts:`FolderContent`,articles:`FolderContent`,blog:`FolderContent`,functions:`FolderFunctions`,function:`FolderFunctions`,lambda:`FolderFunctions`,lambdas:`FolderFunctions`,serverless:`FolderServerless`,jobs:`FolderJob`,job:`FolderJob`,tasks:`FolderTasks`,task:`FolderTasks`,cron:`FolderTasks`,queue:`FolderQueue`,queues:`FolderQueue`,desktop:`FolderDesktop`,windows:`FolderWindows`,macos:`FolderMacos`,linux:`FolderLinux`},defaults:{file:`Document`,folder:`Folder`,folderOpen:`FolderOpen`}},vG=e=>e.startsWith(`Folder`)?e.endsWith(`_light`)?e.replace(`_light`,`Open_light`):e.endsWith(`Open`)?e:e+`Open`:e,yG=e=>e.split(`\\`).join(`/`).split(`/`).filter(Boolean).pop()??``,bG=e=>{let t=e.toLowerCase();return[t,`.${t}`,`_${t}`,`__${t}__`]},xG=e=>{let t=e.toLowerCase(),n=[];for(let e=0;e<t.length;e++)t[e]===`.`&&n.push(e);let r=new Set;r.add(t);for(let e of n)e+1<t.length&&r.add(t.slice(e+1));return Array.from(r).sort((e,t)=>t.length-e.length)};function SG(e,t,n){let r=yG(e).toLowerCase();if(t===`directory`){for(let e of bG(r)){let t=_G.folderNames[e];if(t)return n?vG(t):t}return n?_G.defaults.folderOpen:_G.defaults.folder}let i=_G.fileNames[r];if(i)return i;for(let e of xG(r)){let t=_G.fileExtensions[e];if(t)return t}return _G.defaults.file}var CG=W(`<span>`);function wG(e){let t,[n,r]=A(!1);return oe(()=>{let e=t;if(!e)return;let n=()=>r(e.scrollWidth>e.clientWidth),i=()=>requestAnimationFrame(n),a=new ResizeObserver(n);a.observe(e),i(),document.fonts?.ready.then(i),F(()=>a.disconnect())}),z(Sl,{placement:`top`,openDelay:1e3,get value(){return e.title??e.comment},get disabled(){return!e.tooltip||!n()},get class(){return e.wide?`w-full`:void 0},contentStyle:{"max-width":`320px`,"white-space":`pre-wrap`},get children(){return z(uG,{get title(){return e.comment},get active(){return e.active},get clickable(){return!!e.onClick},get wide(){return e.wide},surface:`base`,titleRef:e=>{t=e},get onClick(){return e.onClick},get children(){return[z(gG,{get node(){return{path:e.path,type:`file`}}}),(()=>{var t=CG();return K(t,()=>cG(e.path,14),null),K(t,z(H,{get when(){return e.selection},children:e=>e().startLine===e().endLine?`:${e().startLine}`:`:${e().startLine}-${e().endLine}`}),null),t})()]}})}})}var TG=W(`<span data-component=text-reveal><span data-slot=text-reveal-track><span data-slot=text-reveal-entering></span><span data-slot=text-reveal-leaving>`),EG=(e,t)=>typeof e==`number`?`${e}px`:typeof e==`string`?e:`${t}px`,DG=(e,t)=>typeof e==`number`?`${e}ms`:typeof e==`string`?e:`${t}ms`,OG=(e,t)=>`${e??t}%`;function kG(e){let[t,n]=$t({cur:e.text,old:void 0,width:`auto`,ready:!1,swapping:!1}),r=()=>t.cur,i=()=>t.old,a=()=>t.width,o=()=>t.ready,s=()=>t.swapping,c,l,u,d,f=()=>c?.scrollWidth??0,p=()=>l?.scrollWidth??0,m=t=>{if(!(t<=0)){if(e.growOnly??!0){let e=Number.parseFloat(a());if(Number.isFinite(e)&&t<=e)return}n(`width`,`${t}px`)}};return M(ae(()=>e.text,(e,t)=>{if(e!==t){if(typeof e==`string`&&typeof t==`string`&&e.startsWith(t)){n(`cur`,e),m(f());return}if(n(`swapping`,!0),n(`old`,t),n(`cur`,e),typeof requestAnimationFrame!=`function`){m(Math.max(f(),p())),u?.offsetHeight,n(`swapping`,!1);return}d!==void 0&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(d),d=requestAnimationFrame(()=>{m(Math.max(f(),p())),u?.offsetHeight,n(`swapping`,!1),d=void 0})}})),oe(()=>{m(f());let e=typeof document<`u`?document.fonts:void 0;if(typeof requestAnimationFrame!=`function`){n(`ready`,!0);return}if(!e){requestAnimationFrame(()=>n(`ready`,!0));return}e.ready.finally(()=>{m(f()),requestAnimationFrame(()=>n(`ready`,!0))})}),F(()=>{d!==void 0&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(d)}),(()=>{var t=TG(),n=t.firstChild,d=n.firstChild,f=d.nextSibling,p=u;typeof p==`function`?_t(p,t):u=t;var m=c;typeof m==`function`?_t(m,d):c=d,K(d,()=>r()??`\xA0`);var h=l;return typeof h==`function`?_t(h,f):l=f,K(f,()=>i()??`\xA0`),j(r=>{var i=o()?`true`:`false`,c=s()?`true`:`false`,l=e.truncate?`true`:`false`,u=e.class,d=e.text??``,f=DG(e.duration,450),p=OG(e.edge,17),m=EG(e.travel,0),h=e.spring??`cubic-bezier(0.34, 1.08, 0.64, 1)`,g=e.springSoft??`cubic-bezier(0.34, 1, 0.64, 1)`,_=e.truncate?`100%`:a();return i!==r.e&&G(t,`data-ready`,r.e=i),c!==r.t&&G(t,`data-swapping`,r.t=c),l!==r.a&&G(t,`data-truncate`,r.a=l),u!==r.o&&dt(t,r.o=u),d!==r.i&&G(t,`aria-label`,r.i=d),f!==r.n&&ht(t,`--text-reveal-duration`,r.n=f),p!==r.s&&ht(t,`--text-reveal-edge`,r.s=p),m!==r.h&&ht(t,`--text-reveal-travel`,r.h=m),h!==r.r&&ht(t,`--text-reveal-spring`,r.r=h),g!==r.d&&ht(t,`--text-reveal-spring-soft`,r.d=g),_!==r.l&&ht(n,`width`,r.l=_),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0}),t})()}var AG=W(`<span data-slot=text-shimmer-char><span data-slot=text-shimmer-char-base aria-hidden=true></span><span data-slot=text-shimmer-char-shimmer aria-hidden=true>`),jG=e=>{let t=N(()=>e.text??``),n=N(()=>e.active??!0),r=N(()=>e.offset??0),[i,a]=A(n()),o;return M(()=>{if(o&&=(clearTimeout(o),void 0),n()){a(!0);return}o=setTimeout(()=>{o=void 0,a(!1)},220)}),F(()=>{o&&clearTimeout(o)}),z(Pt,{get component(){return e.as??`span`},"data-component":`text-shimmer`,get"data-active"(){return n()?`true`:`false`},get class(){return e.class},get"aria-label"(){return t()},get style(){return{"--text-shimmer-swap":`220ms`,"--text-shimmer-index":`${r()}`}},get children(){var e=AG(),n=e.firstChild,r=n.nextSibling;return K(n,t),K(r,t),j(()=>G(r,`data-run`,i()?`true`:`false`)),e}})};function MG(e,t){e.indexOf(t)===-1&&e.push(t)}function NG(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var PG=(e,t,n)=>n>t?t:n<e?e:n,FG={},IG=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),LG=e=>typeof e==`object`&&!!e,RG=e=>/^0[^.\s]+$/u.test(e);function zG(e){let t;return()=>(t===void 0&&(t=e()),t)}var BG=e=>e,VG=(...e)=>e.reduce((e,t)=>n=>t(e(n))),HG=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},UG=class{constructor(){this.subscriptions=[]}add(e){return MG(this.subscriptions,e),()=>NG(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},WG=e=>e*1e3,GG=e=>e/1e3,KG=(e,t)=>t?1e3/t*e:0,qG=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},JG=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,YG=1e-7,XG=12;function ZG(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=JG(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>YG&&++s<XG);return o}function QG(e,t,n,r){if(e===t&&n===r)return BG;let i=t=>ZG(t,0,1,e,n);return e=>e===0||e===1?e:JG(i(e),t,r)}var $G=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eK=e=>t=>1-e(1-t),tK=QG(.33,1.53,.69,.99),nK=eK(tK),rK=$G(nK),iK=e=>e>=1?1:(e*=2)<1?.5*nK(e):.5*(2-2**(-10*(e-1))),aK=e=>1-Math.sin(Math.acos(e)),oK=eK(aK),sK=$G(aK),cK=QG(.42,0,1,1),lK=QG(0,0,.58,1),uK=QG(.42,0,.58,1),dK=e=>Array.isArray(e)&&typeof e[0]!=`number`;function fK(e,t){return dK(e)?e[qG(0,e.length,t)]:e}var pK=e=>Array.isArray(e)&&typeof e[0]==`number`,mK={linear:BG,easeIn:cK,easeInOut:uK,easeOut:lK,circIn:aK,circInOut:sK,circOut:oK,backIn:nK,backInOut:rK,backOut:tK,anticipate:iK},hK=e=>typeof e==`string`,gK=e=>{if(pK(e)){e.length;let[t,n,r,i]=e;return QG(t,n,r,i)}return hK(e)?(mK[e],`${e}`,mK[e]):e},_K=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function vK(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var yK=40;function bK(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=_K.reduce((e,t)=>(e[t]=vK(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=FG.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,yK),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:_K.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<_K.length;t++)o[_K[t]].cancel(e)},state:i,steps:o}}var{schedule:xK,cancel:SK,state:CK,steps:wK}=bK(typeof requestAnimationFrame<`u`?requestAnimationFrame:BG,!0),TK;function EK(){TK=void 0}var DK={now:()=>(TK===void 0&&DK.set(CK.isProcessing||FG.useManualTiming?CK.timestamp:performance.now()),TK),set:e=>{TK=e,queueMicrotask(EK)}},OK=e=>t=>typeof t==`string`&&t.startsWith(e),kK=OK(`--`),AK=OK(`var(--`),jK=e=>AK(e)?MK.test(e.split(`/*`)[0].trim()):!1,MK=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function NK(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var PK={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},FK={...PK,transform:e=>PG(0,1,e)},IK={...PK,default:1},LK=e=>Math.round(e*1e5)/1e5,RK=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zK(e){return e==null}var BK=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,VK=(e,t)=>n=>!!(typeof n==`string`&&BK.test(n)&&n.startsWith(e)||t&&!zK(n)&&Object.prototype.hasOwnProperty.call(n,t)),HK=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(RK);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},UK=e=>PG(0,255,e),WK={...PK,transform:e=>Math.round(UK(e))},GK={test:VK(`rgb`,`red`),parse:HK(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+WK.transform(e)+`, `+WK.transform(t)+`, `+WK.transform(n)+`, `+LK(FK.transform(r))+`)`};function KK(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var qK={test:VK(`#`),parse:KK,transform:GK.transform},JK=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),YK=JK(`deg`),XK=JK(`%`),$=JK(`px`),ZK=JK(`vh`),QK=JK(`vw`),$K={...XK,parse:e=>XK.parse(e)/100,transform:e=>XK.transform(e*100)},eq={test:VK(`hsl`,`hue`),parse:HK(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+XK.transform(LK(t))+`, `+XK.transform(LK(n))+`, `+LK(FK.transform(r))+`)`},tq={test:e=>GK.test(e)||qK.test(e)||eq.test(e),parse:e=>GK.test(e)?GK.parse(e):eq.test(e)?eq.parse(e):qK.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?GK.transform(e):eq.transform(e),getAnimatableNone:e=>{let t=tq.parse(e);return t.alpha=0,tq.transform(t)}},nq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rq(e){return isNaN(e)&&typeof e==`string`&&(e.match(RK)?.length||0)+(e.match(nq)?.length||0)>0}var iq=`number`,aq=`color`,oq=`var`,sq=`var(`,cq="${}",lq=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function uq(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(lq,e=>(tq.test(e)?(r.color.push(a),i.push(aq),n.push(tq.parse(e))):e.startsWith(sq)?(r.var.push(a),i.push(oq),n.push(e)):(r.number.push(a),i.push(iq),n.push(parseFloat(e))),++a,cq)).split(cq),indexes:r,types:i}}function dq(e){return uq(e).values}function fq({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===iq?LK(r[a]):e===aq?tq.transform(r[a]):r[a]}return i}}function pq(e){return fq(uq(e))}var mq=e=>typeof e==`number`?0:tq.test(e)?tq.getAnimatableNone(e):e,hq=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:mq(e);function gq(e){let t=uq(e);return fq(t)(t.values.map((e,n)=>hq(e,t.split[n])))}var _q={test:rq,parse:dq,createTransformer:pq,getAnimatableNone:gq};function vq(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=vq(s,r,e+1/3),a=vq(s,r,e),o=vq(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function bq(e,t){return n=>n>0?t:e}var xq=(e,t,n)=>e+(t-e)*n,Sq=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Cq=[qK,GK,eq],wq=e=>Cq.find(t=>t.test(e));function Tq(e){let t=wq(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===eq&&(n=yq(n)),n}var Eq=(e,t)=>{let n=Tq(e),r=Tq(t);if(!n||!r)return bq(e,t);let i={...n};return e=>(i.red=Sq(n.red,r.red,e),i.green=Sq(n.green,r.green,e),i.blue=Sq(n.blue,r.blue,e),i.alpha=xq(n.alpha,r.alpha,e),GK.transform(i))},Dq=new Set([`none`,`hidden`]);function Oq(e,t){return Dq.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kq(e,t){return n=>xq(e,t,n)}function Aq(e){return typeof e==`number`?kq:typeof e==`string`?jK(e)?bq:tq.test(e)?Eq:Pq:Array.isArray(e)?jq:typeof e==`object`?tq.test(e)?Eq:Mq:bq}function jq(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Aq(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Mq(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Aq(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Nq(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Pq=(e,t)=>{let n=_q.createTransformer(t),r=uq(e),i=uq(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Dq.has(e)&&!i.values.length||Dq.has(t)&&!r.values.length?Oq(e,t):VG(jq(Nq(r,i),i.values),n):(`${e}${t}`,bq(e,t))};function Fq(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?xq(e,t,n):Aq(e)(e,t)}var Iq=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>xK.update(t,e),stop:()=>SK(t),now:()=>CK.isProcessing?CK.timestamp:DK.now()}},Lq=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Rq=2e4;function zq(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Bq(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(zq(r),Rq);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:GG(i)}}var Vq={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Hq(e,t){return e*Math.sqrt(1-t*t)}var Uq=12;function Wq(e,t,n){let r=n;for(let n=1;n<Uq;n++)r-=e(r)/t(r);return r}var Gq=.001;function Kq({duration:e=Vq.duration,bounce:t=Vq.bounce,velocity:n=Vq.velocity,mass:r=Vq.mass}){let i,a;Vq.maxDuration;let o=1-t;o=PG(Vq.minDamping,Vq.maxDamping,o),e=PG(Vq.minDuration,Vq.maxDuration,GG(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Hq(t,o),c=Math.exp(-i);return Gq-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Hq(t**2,o);return(-i(t)+Gq>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Wq(i,a,s);if(e=WG(e),isNaN(c))return{stiffness:Vq.stiffness,damping:Vq.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var qq=[`duration`,`bounce`],Jq=[`stiffness`,`damping`,`mass`];function Yq(e,t){return t.some(t=>e[t]!==void 0)}function Xq(e){let t={velocity:Vq.velocity,stiffness:Vq.stiffness,damping:Vq.damping,mass:Vq.mass,isResolvedFromDuration:!1,...e};if(!Yq(e,Jq)&&Yq(e,qq)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*PG(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Vq.mass,stiffness:i,damping:a}}else{let n=Kq({...e,velocity:0});t={...t,...n,mass:Vq.mass},t.isResolvedFromDuration=!0}}return t}function Zq(e=Vq.visualDuration,t=Vq.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Xq({...n,velocity:-GG(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=GG(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Vq.restSpeed.granular:Vq.restSpeed.default,i||=v?Vq.restDelta.granular:Vq.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Hq(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>WG(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=WG(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=WG(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(zq(T),Rq),t=Lq(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Zq.applyToOptions=e=>{let t=Bq(e,100,Zq);return e.ease=t.ease,e.duration=WG(t.duration),e.type=`keyframes`,e};var Qq=5;function $q(e,t,n){let r=Math.max(t-Qq,0);return KG(n-e(r),t-r)}function eJ({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Zq({keyframes:[f.value,m(f.value)],velocity:$q(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function tJ(e,t,n){let r=[],i=n||FG.mix||Fq,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=VG(Array.isArray(t)?t[n]||BG:t,a)),r.push(a)}return r}function nJ(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=tJ(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=HG(e[r],e[r+1],n);return s[r](i)};return n?t=>l(PG(e[0],e[a-1],t)):l}function rJ(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=HG(0,t,r);e.push(xq(n,1,i))}}function iJ(e){let t=[0];return rJ(t,e.length-1),t}function aJ(e,t){return e.map(e=>e*t)}function oJ(e,t){return e.map(()=>t||uK).splice(0,e.length-1)}function sJ({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=dK(r)?r.map(gK):gK(r),a={done:!1,value:t[0]},o=nJ(aJ(n&&n.length===t.length?n:iJ(t),e),t,{ease:Array.isArray(i)?i:oJ(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var cJ=e=>e!==null;function lJ(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(cJ),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var uJ={decay:eJ,inertia:eJ,tween:sJ,keyframes:sJ,spring:Zq};function dJ(e){typeof e.type==`string`&&(e.type=uJ[e.type])}var fJ=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},pJ=e=>e/100,mJ=class extends fJ{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==DK.now()&&this.tick(DK.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;dJ(e);let{type:t=sJ,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||sJ;s!==sJ&&typeof o[0]!=`number`&&(this.mixKeyframes=VG(pJ,Fq(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=zq(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=PG(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==eJ&&(b.value=lJ(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return GG(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+GG(e)}get time(){return GG(this.currentTime)}set time(e){e=WG(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return $q(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(DK.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=GG(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Iq,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(DK.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function hJ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var gJ=e=>e*180/Math.PI,_J=e=>yJ(gJ(Math.atan2(e[1],e[0]))),vJ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:_J,rotateZ:_J,skewX:e=>gJ(Math.atan(e[1])),skewY:e=>gJ(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},yJ=e=>(e%=360,e<0&&(e+=360),e),bJ=_J,xJ=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),SJ=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),CJ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xJ,scaleY:SJ,scale:e=>(xJ(e)+SJ(e))/2,rotateX:e=>yJ(gJ(Math.atan2(e[6],e[5]))),rotateY:e=>yJ(gJ(Math.atan2(-e[2],e[0]))),rotateZ:bJ,rotate:bJ,skewX:e=>gJ(Math.atan(e[4])),skewY:e=>gJ(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wJ(e){return+!!e.includes(`scale`)}function TJ(e,t){if(!e||e===`none`)return wJ(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=CJ,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vJ,i=t}if(!i)return wJ(t);let a=r[t],o=i[1].split(`,`).map(DJ);return typeof a==`function`?a(o):o[a]}var EJ=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return TJ(n,t)};function DJ(e){return parseFloat(e.trim())}var OJ=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],kJ=new Set([...OJ,`pathRotation`]),AJ=e=>e===PK||e===$,jJ=new Set([`x`,`y`,`z`]),MJ=OJ.filter(e=>!jJ.has(e));function NJ(e){let t=[];return MJ.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var PJ={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>TJ(t,`x`),y:(e,{transform:t})=>TJ(t,`y`)};PJ.translateX=PJ.x,PJ.translateY=PJ.y;var FJ=new Set,IJ=!1,LJ=!1,RJ=!1;function zJ(){if(LJ){let e=Array.from(FJ).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=NJ(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}LJ=!1,IJ=!1,FJ.forEach(e=>e.complete(RJ)),FJ.clear()}function BJ(){FJ.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(LJ=!0)})}function VJ(){RJ=!0,BJ(),zJ(),RJ=!1}var HJ=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(FJ.add(this),IJ||(IJ=!0,xK.read(BJ),xK.resolveKeyframes(zJ))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}hJ(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),FJ.delete(this)}cancel(){this.state===`scheduled`&&(FJ.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},UJ=e=>e.startsWith(`--`);function WJ(e,t,n){UJ(t)?e.style.setProperty(t,n):e.style[t]=n}var GJ={};function KJ(e,t){let n=zG(e);return()=>GJ[t]??n()}var qJ=KJ(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),JJ=KJ(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),YJ=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,XJ={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:YJ([0,.65,.55,1]),circOut:YJ([.55,0,1,.45]),backIn:YJ([.31,.01,.66,-.59]),backOut:YJ([.33,1.53,.69,.99])};function ZJ(e,t){if(e)return typeof e==`function`?JJ()?Lq(e,t):`ease-out`:pK(e)?YJ(e):Array.isArray(e)?e.map(e=>ZJ(e,t)||XJ.easeOut):XJ[e]}function QJ(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ZJ(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function $J(e){return typeof e==`function`&&`applyToOptions`in e}function eY({type:e,...t}){return $J(e)&&JJ()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var tY=class extends fJ{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=eY(e);this.animation=QJ(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=lJ(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),WJ(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return GG(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+GG(e)}get time(){return GG(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=WG(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&qJ()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),BG):r(this)}},nY={anticipate:iK,backInOut:rK,circInOut:sK};function rY(e){return e in nY}function iY(e){typeof e.ease==`string`&&rY(e.ease)&&(e.ease=nY[e.ease])}var aY=10,oY=class extends tY{constructor(e){iY(e),dJ(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new mJ({...a,autoplay:!1}),s=Math.max(aY,DK.now()-this.startTime),c=PG(0,aY,s-aY),l=o.sample(s).value,{name:u}=this.options;i&&u&&WJ(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},sY=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(_q.test(e)||e===`0`)&&!e.startsWith(`url(`));function cY(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function lY(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=sY(i,t),s=sY(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:cY(e)||(n===`spring`||$J(n))&&r}function uY(e){e.duration=0,e.type=`keyframes`}var dY=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),fY=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function pY(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&fY.test(e[t]))return!0;return!1}var mY=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),hY=zG(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function gY(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return hY()&&n&&(dY.has(n)||mY.has(n)&&pY(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var _Y=40,vY=class extends fJ{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=DK.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||HJ;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=DK.now();let u=!0;lY(e,i,a,o)||(u=!1,(FG.instantAnimations||!s)&&l?.(lJ(e,n,t)),e[0]=e[e.length-1],uY(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>_Y?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&gY(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new oY({...d,element:p})}catch{m=new mJ(d)}else m=new mJ(d);m.finished.then(()=>{this.notifyFinished()}).catch(BG),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),VJ()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},yY=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return bY(this.animations,`duration`)}get iterationDuration(){return bY(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function bY(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var xY=class extends yY{then(e,t){return this.finished.finally(e).then(()=>{})}},SY=30,CY=e=>!isNaN(parseFloat(e)),wY={current:void 0},TY=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=DK.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=DK.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=CY(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new UG);let n=this.events[e].add(t);return e===`change`?()=>{n(),xK.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wY.current&&wY.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=DK.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>SY)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,SY);return KG(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function EY(e,t){return new TY(e,t)}function DY(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function OY(e,t){let n=e?.[t]??e?.default??e;return n===e?n:DY(n,e)}var kY={type:`spring`,stiffness:500,damping:25,restSpeed:10},AY=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jY={type:`keyframes`,duration:.8},MY={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},NY=(e,{keyframes:t})=>t.length>2?jY:kJ.has(e)?e.startsWith(`scale`)?AY(t[1]):kY:MY,PY=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function FY(e){for(let t in e)if(!PY.has(t))return!0;return!1}var IY=(e,t,n,r={},i,a)=>o=>{let s=OY(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=WG(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};FY(s)||Object.assign(u,NY(e,u)),u.duration&&=WG(u.duration),u.repeatDelay&&=WG(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(uY(u),u.delay===0&&(d=!0)),(FG.instantAnimations||FG.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,uY(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=lJ(u.keyframes,s);if(e!==void 0){xK.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new mJ(u):new vY(u)},LY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RY(e){let t=LY.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zY(e,t,n=1){`${e}`;let[r,i]=RY(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return IG(e)?parseFloat(e):e}return jK(i)?zY(i,t,n+1):i}function BY(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function VY(e,t,n,r){if(typeof t==`function`){let[i,a]=BY(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=BY(r);t=t(n===void 0?e.custom:n,i,a)}return t}function HY(e,t,n){let r=e.getProps();return VY(r,t,n===void 0?r.custom:n,e)}var UY=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...OJ]),WY=e=>Array.isArray(e);function GY(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,EY(n))}function KY(e){return WY(e)?e[e.length-1]||0:e}function qY(e,t){let{transitionEnd:n={},transition:r={},...i}=HY(e,t)||{};i={...i,...n};for(let t in i)GY(e,t,KY(i[t]))}var JY=e=>!!(e&&e.getVelocity);function YY(e){return!!(JY(e)&&e.add)}function XY(e,t){let n=e.getValue(`willChange`);if(YY(n))return n.add(t);if(!n&&FG.WillChange){let n=new FG.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ZY(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var QY=`data-`+ZY(`framerAppearId`);function $Y(e){return e.props[QY]}function eX({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tX(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?DY(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&eX(f,t))continue;let o={delay:n,...OY(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){xK.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=$Y(e);if(n){let e=window.MotionHandoffAnimation(n,t,xK);e!==null&&(o.startTime=e,p=!0)}}XY(e,t);let m=l??e.shouldReduceMotion;r.start(IY(t,r,i,m&&UY.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>xK.update(()=>{o&&qY(e,o)});d.length?Promise.all(d).then(t):t()}return d}var nX={test:e=>e===`auto`,parse:e=>e},rX=e=>t=>t.test(e),iX=[PK,$,XK,YK,QK,ZK,nX],aX=e=>iX.find(rX(e));function oX(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||RG(e)}var sX=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function cX(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(RK)||[];if(!r)return e;let i=n.replace(r,``),a=+!!sX.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var lX=/\b([a-z-]*)\(.*?\)/gu,uX={..._q,getAnimatableNone:e=>{let t=e.match(lX);return t?t.map(cX).join(` `):e}},dX={..._q,getAnimatableNone:e=>{let t=_q.parse(e);return _q.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},fX={...PK,transform:Math.round},pX={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,rotate:YK,pathRotation:YK,rotateX:YK,rotateY:YK,rotateZ:YK,scale:IK,scaleX:IK,scaleY:IK,scaleZ:IK,skew:YK,skewX:YK,skewY:YK,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:FK,originX:$K,originY:$K,originZ:$,zIndex:fX,fillOpacity:FK,strokeOpacity:FK,numOctaves:fX},mX={...pX,color:tq,backgroundColor:tq,outlineColor:tq,fill:tq,stroke:tq,borderColor:tq,borderTopColor:tq,borderRightColor:tq,borderBottomColor:tq,borderLeftColor:tq,filter:uX,WebkitFilter:uX,mask:dX,WebkitMask:dX},hX=e=>mX[e],gX=new Set([uX,dX]);function _X(e,t){let n=hX(e);return gX.has(n)||(n=_q),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var vX=new Set([`auto`,`none`,`0`]);function yX(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!vX.has(t)&&uq(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=_X(n,i)}var bX=class extends HJ{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),jK(r))){let i=zY(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!UY.has(n)||e.length!==2)return;let[r,i]=e,a=aX(r),o=aX(i);if(NK(r)!==NK(i)&&PJ[n]){this.needsMeasurement=!0;return}if(a!==o){if(AJ(a)&&AJ(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else PJ[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||oX(e[t]))&&n.push(t);n.length&&yX(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=PJ[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=PJ[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},xX=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function SX(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var CX=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:wX,cancel:TX}=bK(queueMicrotask,!1);function EX(e){return LG(e)&&`ownerSVGElement`in e}function DX(e){return EX(e)&&e.tagName===`svg`}var OX=[...iX,tq,_q],kX=e=>OX.find(rX(e)),AX=()=>({min:0,max:0}),jX=()=>({x:AX(),y:AX()}),MX=new WeakMap;function NX(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function PX(e){return typeof e==`string`||Array.isArray(e)}var FX=[`initial`,`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`];function IX(e){return NX(e.animate)||FX.some(t=>PX(e[t]))}function LX(e){return!!(IX(e)||e.variants)}function RX(e,t,n){for(let r in t){let i=t[r],a=n[r];if(JY(i))e.addValue(r,i);else if(JY(a))e.addValue(r,EY(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,EY(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var zX={current:null},BX={current:!1},VX=typeof window<`u`;function HX(){if(BX.current=!0,VX){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>zX.current=e.matches;e.addEventListener(`change`,t),t()}else zX.current=!1}}var UX=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],WX={},GX=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=HJ,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=DK.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,xK.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=IX(t),this.isVariantNode=LX(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&JY(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,MX.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(BX.current||HX(),this.shouldReduceMotion=zX.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),SK(this.notifyUpdate),SK(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&dY.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new tY({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:WG(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=kJ.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&xK.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in WX){let t=WX[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jX()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<UX.length;t++){let n=UX[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=RX(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=EY(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(IG(n)||RG(n))?n=parseFloat(n):!kX(n)&&_q.test(t)&&(n=_X(e,t)),this.setBaseTarget(e,JY(n)?n.get():n)),JY(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=VY(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!JY(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new UG),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){wX.render(this.render)}},KX=class extends GX{constructor(){super(...arguments),this.KeyframeResolver=bX}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;JY(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function qX({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function JX(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function YX(e,t){return qX(JX(e.getBoundingClientRect(),t))}var XX={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ZX=OJ.length;function QX(e,t,n){let r=``,i=!0;for(let a=0;a<ZX;a++){let o=OJ[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=CX(s,pX[o]);if(!c){i=!1;let t=XX[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${CX(a,pX.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function $X(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(kJ.has(e)){o=!0;continue}if(kK(e)){i[e]=n;continue}{let t=CX(n,pX[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=QX(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function eZ(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function tZ(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var nZ={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if($.test(e))e=parseFloat(e);else return e}return`${tZ(e,t.target.x)}% ${tZ(e,t.target.y)}%`}},rZ={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=_q.parse(e);if(i.length>5)return r;let a=_q.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=xq(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},iZ={borderRadius:{...nZ,applyTo:[...xX]},borderTopLeftRadius:nZ,borderTopRightRadius:nZ,borderBottomLeftRadius:nZ,borderBottomRightRadius:nZ,boxShadow:rZ};function aZ(e,{layout:t,layoutId:n}){return kJ.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!iZ[e]||e===`opacity`)}function oZ(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(JY(r[t])||i&&JY(i[t])||aZ(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function sZ(e){return window.getComputedStyle(e)}var cZ=class extends KX{constructor(){super(...arguments),this.type=`html`,this.renderInstance=eZ}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(kJ.has(t))return this.projection?.isProjecting?wJ(t):EJ(e,t);{let n=sZ(e),r=(kK(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return YX(e,t)}build(e,t,n){$X(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return oZ(e,t,n)}};function lZ(e,t){return e in t}var uZ=class extends GX{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(lZ(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return jX()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},dZ={offset:`stroke-dashoffset`,array:`stroke-dasharray`},fZ={offset:`strokeDashoffset`,array:`strokeDasharray`};function pZ(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?dZ:fZ;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var mZ=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function hZ(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if($X(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of mZ)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&pZ(d,i,a,o,!1)}var gZ=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),_Z=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function vZ(e,t,n,r){eZ(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(gZ.has(n)?n:ZY(n),t.attrs[n])}function yZ(e,t,n){let r=oZ(e,t,n);for(let n in e)if(JY(e[n])||JY(t[n])){let t=OJ.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var bZ=class extends KX{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=jX}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(kJ.has(t)){let e=hX(t);return e&&e.default||0}return t=gZ.has(t)?t:ZY(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return yZ(e,t,n)}build(e,t,n){hZ(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){vZ(e,t,n,r)}mount(e){this.isSVGTag=_Z(e.tagName),super.mount(e)}};function xZ(e,t,n){let r=JY(e)?e:EY(e);return r.start(IY(``,r,t,n)),r.animation}function SZ(e){return typeof e==`object`&&!Array.isArray(e)}function CZ(e,t,n,r){return e==null?[]:typeof e==`string`&&SZ(t)?SX(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function wZ(e,t,n){return e*(t+1)+n*t}function TZ(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function EZ(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(NG(e,i),r--)}}function DZ(e,t,n,r,i,a){EZ(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:xq(i,a,r[o]),easing:fK(n,o)})}function OZ(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function kZ(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var AZ=`easeInOut`,jZ=20;function MZ(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,TZ(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=TZ(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=FZ(e),{delay:l=0,times:u=iJ(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=$J(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&RZ(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=WG(b));let r=Bq(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&rJ(u,T),c.length===1&&c.unshift(null),m&&`${m}${jZ}`,m&&m<jZ){let e=b>0?_/b:0;b=wZ(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?eK(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:fK(f,e-1))}OZ(u,m,e)}let E=w+b;DZ(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(JY(p)){let e=NZ(p,s);_(m,h,PZ(`default`,e))}else{let e=CZ(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=NZ(r,s);for(let e in m)_(m[e],IZ(h,e),PZ(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(kZ);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(HG(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(AZ)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function NZ(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function PZ(e,t){return t[e]||(t[e]=[]),t[e]}function FZ(e){return Array.isArray(e)?e:[e]}function IZ(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var LZ=e=>typeof e==`number`,RZ=e=>e.every(LZ);function zZ(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=EX(e)&&!DX(e)?new bZ(t):new cZ(t);n.mount(e),MX.set(e,n)}function BZ(e){let t=new uZ({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),MX.set(e,t)}function VZ(e,t){return JY(e)||typeof e==`number`||typeof e==`string`&&!SZ(t)}function HZ(e,t,n,r){let i=[];if(VZ(e,t))i.push(xZ(e,SZ(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=CZ(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?zZ:BZ;MX.has(r)||s(r);let c=MX.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...tX(c,{...t,transition:l},{}))}}return i}function UZ(e,t,n){let r=[];return MZ(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=EY(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Zq}).forEach(({keyframes:e,transition:t},n)=>{r.push(...HZ(n,e,t))}),r}function WZ(e){return Array.isArray(e)&&e.some(Array.isArray)}function GZ(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),WZ(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=UZ(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=HZ(e,i,{...c,...r},t)}let l=new xY(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{NG(t.animations,l)})),l}return i}var KZ=GZ();La({},{Collapsible:()=>QZ,Content:()=>YZ,Root:()=>XZ,Trigger:()=>ZZ,useCollapsibleContext:()=>JZ});var qZ=L();function JZ(){let e=R(qZ);if(e===void 0)throw Error("[kobalte]: `useCollapsibleContext` must be used within a `Collapsible.Root` component");return e}function YZ(e){let[t,n]=A(),r=JZ(),[i,a]=V(Hi({id:r.generateId(`content`)},e),[`ref`,`id`,`style`]),{present:o}=io({show:r.shouldMount,element:()=>t()??null}),[s,c]=A(0),[l,u]=A(0),d=r.isOpen()||o();return oe(()=>{let e=requestAnimationFrame(()=>{d=!1});F(()=>{cancelAnimationFrame(e)})}),M(ae(o,()=>{if(!t())return;t().style.transitionDuration=`0s`,t().style.animationName=`none`;let e=t().getBoundingClientRect();c(e.height),u(e.width),d||(t().style.transitionDuration=``,t().style.animationName=``)})),M(ae(r.isOpen,e=>{!e&&t()&&(t().style.transitionDuration=``,t().style.animationName=``)},{defer:!0})),M(()=>F(r.registerContentId(i.id))),z(H,{get when(){return o()},get children(){return z(Ea,B({as:`div`,ref(e){var t=Xr(n,i.ref);typeof t==`function`&&t(e)},get id(){return i.id},get style(){return Yr({"--kb-collapsible-content-height":s()?`${s()}px`:void 0,"--kb-collapsible-content-width":l()?`${l()}px`:void 0},i.style)}},()=>r.dataset(),a))}})}function XZ(e){let[t,n]=V(Hi({id:`collapsible-${Ue()}`},e),[`open`,`defaultOpen`,`onOpenChange`,`disabled`,`forceMount`]),[r,i]=A(),a=Na({open:()=>t.open,defaultOpen:()=>t.defaultOpen,onOpenChange:e=>t.onOpenChange?.(e)}),o=N(()=>({"data-expanded":a.isOpen()?``:void 0,"data-closed":a.isOpen()?void 0:``,"data-disabled":t.disabled?``:void 0})),s={dataset:o,isOpen:a.isOpen,disabled:()=>t.disabled??!1,shouldMount:()=>t.forceMount||a.isOpen(),contentId:r,toggle:a.toggle,generateId:ni(()=>n.id),registerContentId:Ha(i)};return z(qZ.Provider,{value:s,get children(){return z(Ea,B({as:`div`},o,n))}})}function ZZ(e){let t=JZ(),[n,r]=V(e,[`onClick`]);return z(Ba,B({get"aria-expanded"(){return t.isOpen()},get"aria-controls"(){return U(()=>!!t.isOpen())()?t.contentId():void 0},get disabled(){return t.disabled()},onClick:e=>{vi(e,n.onClick),t.toggle()}},()=>t.dataset(),r))}var QZ=Object.assign(XZ,{Content:YZ,Trigger:ZZ}),$Z=W(`<div data-slot=collapsible-arrow><span data-slot=collapsible-arrow-icon>`);function eQ(e){let[t,n]=V(e,[`class`,`classList`,`variant`]);return z(QZ,B({"data-component":`collapsible`,get"data-variant"(){return t.variant||`normal`},get classList(){return{...t.classList,[t.class??``]:!!t.class}}},n))}function tQ(e){return z(QZ.Trigger,B({"data-slot":`collapsible-trigger`},e))}function nQ(e){return z(QZ.Content,B({"data-slot":`collapsible-content`},e))}function rQ(e){return(()=>{var t=$Z(),n=t.firstChild;return gt(t,e||{},!1,!0),K(n,z(X,{name:`fill-triangle-down`,size:`small`})),t})()}var iQ=Object.assign(eQ,{Arrow:rQ,Trigger:tQ,Content:nQ}),aQ=W(`<div data-component=tool-trigger><div data-slot=basic-tool-tool-trigger-content><div data-slot=basic-tool-tool-info>`),oQ=W(`<span data-slot=basic-tool-tool-subtitle>`),sQ=W(`<span data-slot=basic-tool-tool-action>`),cQ=W(`<div data-slot=basic-tool-tool-info-structured><div data-slot=basic-tool-tool-info-main><span data-slot=basic-tool-tool-title>`),lQ=W(`<span data-slot=basic-tool-tool-arg>`),uQ=W(`<div data-slot=collapsible-content data-animated>`),dQ=W(`<div data-slot=collapsible-trigger data-locked>`),fQ=e=>typeof e!=`object`||!e||typeof Node<`u`&&e instanceof Node?!1:`title`in e&&typeof e.title==`string`,pQ={type:`spring`,visualDuration:.35,bounce:0},mQ=[],hQ;function gQ(){for(;mQ.length>0;){let e=mQ.pop();if(e.active){hQ=mQ.length>0?requestAnimationFrame(gQ):void 0,e.fn();return}}hQ=void 0}function _Q(){hQ===void 0&&(hQ=requestAnimationFrame(()=>{hQ=requestAnimationFrame(gQ)}))}function vQ(e){let t={active:!0,fn:e};return mQ.push(t),_Q(),()=>{t.active=!1}}function yQ(e){let t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)}function bQ(e){let[t,n]=$t({open:e.defaultOpen??!1,ready:!e.defer&&(e.defaultOpen??!1)}),r=()=>e.open??t.open,i=()=>t.ready,a=()=>e.status===`streaming`||e.status===`running`,o=()=>e.hasContent??(e.defer?`children`in e:e.children),s=N(()=>{let t=e.trigger;return typeof t==`function`?t(r):t}),c=N(()=>{let e=s();return fQ(e)?e:void 0}),l,u=()=>{l?.(),l=void 0},d=(e=!1)=>{u(),l=(e?vQ:yQ)(()=>{l=void 0,r()&&n(`ready`,!0)})};F(u),oe(()=>{e.defer&&r()&&d(!0)});let f=t=>{e.open===void 0&&n(`open`,t),e.onOpenChange?.(t)};M(()=>{e.forceOpen&&(r()||f(!0))}),M(ae(r,t=>{if(e.defer){if(!t){u(),n(`ready`,!1);return}d()}},{defer:!0}));let p,m,h=r();M(ae(r,t=>{e.animated&&p&&(m?.stop(),t?(p.style.overflow=`hidden`,m=KZ(p,{height:`auto`},pQ),m.finished.then(()=>{p&&r()&&(p.style.overflow=`visible`,p.style.height=`auto`)})):(p.style.overflow=`hidden`,m=KZ(p,{height:`0px`},pQ)))},{defer:!0})),F(()=>{m?.stop()});let g=t=>{(!a()||e.allowOpenWhilePending)&&(!e.locked||t)&&f(t)},_=()=>(()=>{var t=aQ(),n=t.firstChild.firstChild;return K(n,z(qe,{get children(){return[z(Je,{get when(){return c()},children:t=>(()=>{var n=cQ(),r=n.firstChild,i=r.firstChild;return K(i,z(jG,{get text(){return t().title},get active(){return a()}})),K(r,z(H,{get when(){return!a()||t().subtitle||t().args?.length},get children(){return[z(H,{get when(){return t().subtitle},get children(){var n=oQ();return n.$$click=t=>{e.onSubtitleClick&&(t.stopPropagation(),e.onSubtitleClick())},K(n,()=>t().subtitle),j(r=>pt(n,{[t().subtitleClass??``]:!!t().subtitleClass,clickable:!!e.onSubtitleClick},r)),n}}),z(H,{get when(){return t().args?.length},get children(){return z(Ge,{get each(){return t().args},children:e=>(()=>{var n=lQ();return K(n,e),j(e=>pt(n,{[t().argsClass??``]:!!t().argsClass},e)),n})()})}})]}}),null),K(n,z(H,{get when(){return U(()=>!a())()&&t().action},get children(){var e=sQ();return K(e,()=>t().action),e}}),null),j(e=>pt(i,{[t().titleClass??``]:!!t().titleClass},e)),n})()}),z(Je,{when:!0,get children(){return s()}})]}})),K(t,z(H,{get when(){return U(()=>!(!o()||e.hideDetails||e.locked))()&&(!a()||e.allowOpenWhilePending)},get children(){return z(iQ.Arrow,{})}}),null),j(n=>{var r=e.clickable?`true`:void 0,i=e.hideDetails?`true`:void 0;return r!==n.e&&G(t,`data-clickable`,n.e=r),i!==n.t&&G(t,`data-hide-details`,n.t=i),n},{e:void 0,t:void 0}),t})();return z(iQ,{get open(){return r()},get onOpenChange(){return e.locked?void 0:g},class:`tool-collapsible`,get"data-compact"(){return e.compact?`true`:void 0},get"data-rail"(){return e.rail===!1?`false`:void 0},get children(){return[z(H,{get when(){return U(()=>!e.locked)()&&(e.triggerAsLink||e.triggerHref)},get fallback(){return z(H,{get when(){return!e.locked},get fallback(){return(()=>{var t=dQ();return K(t,_),j(()=>G(t,`data-hide-details`,e.hideDetails?`true`:void 0)),t})()},get children(){return z(iQ.Trigger,{get"data-hide-details"(){return e.hideDetails?`true`:void 0},get onClick(){return e.onTriggerClick},get children(){return _()}})}})},get children(){return z(iQ.Trigger,{as:`a`,get href(){return e.triggerHref},get role(){return!e.triggerHref&&e.clickable?`button`:void 0},get tabIndex(){return!e.triggerHref&&e.clickable?0:void 0},get"data-hide-details"(){return e.hideDetails?`true`:void 0},get onClick(){return e.onTriggerClick},get onKeyDown(){return e.onTriggerKeyDown},get children(){return _()}})}}),z(H,{get when(){return U(()=>!!(e.animated&&o()))()&&!e.hideDetails},get children(){var t=uQ(),n=p;return typeof n==`function`?_t(n,t):p=t,ht(t,`height`,h?`auto`:`0px`),ht(t,`overflow`,h?`visible`:`hidden`),K(t,z(H,{get when(){return!e.defer||i()},get children(){return e.children}})),t}}),z(H,{get when(){return U(()=>!(e.animated||!o()))()&&!e.hideDetails},get children(){return z(iQ.Content,{get children(){return z(H,{get when(){return!e.defer||i()},get children(){return e.children}})}})}})]}})}function xQ(e){return[`description`,`query`,`url`,`path`,`pattern`,`name`].map(t=>e?.[t]).find(e=>typeof e==`string`&&e.length>0)}function SQ(e){if(!e)return[];let t=new Set([`description`,`query`,`url`,`path`,`pattern`,`name`]);return Object.entries(e).filter(([e])=>!t.has(e)).flatMap(([e,t])=>typeof t==`string`||typeof t==`number`||typeof t==`boolean`?[`${e}=${t}`]:[]).slice(0,3)}function CQ(e){let t=Al();return z(bQ,{icon:`mcp`,get status(){return e.status},get trigger(){return{title:t.t(`ui.basicTool.called`,{tool:e.tool}),subtitle:xQ(e.input),args:SQ(e.input)}},get hideDetails(){return e.hideDetails}})}ct([`click`]);var wQ=W(`<div>`);function TQ(e,t){return t?e?typeof e==`string`?`${e};--card-accent:${t};`:{...e,"--card-accent":t}:{"--card-accent":t}:e}function EQ(e){let[t,n]=V(e,[`variant`,`style`,`class`,`classList`]),r=()=>t.variant??`normal`,i=()=>{let e=r();if(e===`error`)return`var(--v2-state-fg-danger)`;if(e===`warning`)return`var(--icon-warning-active)`;if(e===`success`)return`var(--icon-success-active)`;if(e===`info`)return`var(--icon-info-active)`};return(()=>{var a=wQ();return gt(a,B(n,{"data-component":`card`,get"data-variant"(){return r()},get style(){return TQ(t.style,i())},get classList(){return{...t.classList,[t.class??``]:!!t.class}}}),!1,!0),K(a,()=>e.children),a})()}function DQ(e){let[t,n]=V(e,[`class`,`classList`,`children`]);return(()=>{var e=wQ();return gt(e,B(n,{"data-slot":`card-description`,get classList(){return{...t.classList,[t.class??``]:!!t.class}}}),!1,!0),K(e,()=>t.children),e})()}var OQ=new Map(Gh.flatMap(e=>[e.id,...e.aliases??[]].map(t=>[t,e.name])));function kQ(e,t,n){if(t===`application/pdf`)return`PDF`;let r=oG(e),i=r.lastIndexOf(`.`),a=i<=0?``:r.slice(i+1).toLowerCase();return a?OQ.get(a)??a.toUpperCase():n}var AQ=W(`<div data-slot=user-message-comments>`),jQ=W(`<div data-slot=user-message-attachments>`),MQ=W(`<div data-slot=user-message-attachment data-type=image data-clickable=true><img data-slot=user-message-attachment-image>`),NQ=W(`<div data-slot=user-message-body><div data-slot=user-message-text dir=auto>`),PQ=W(`<span data-slot=user-message-meta class="text-12-regular text-text-weak cursor-default">`),FQ=W(`<span data-slot=user-message-meta-sep class="text-12-regular text-text-weak cursor-default">\xA0·\xA0`),IQ=W(`<div data-slot=user-message-copy-wrapper><span data-slot=user-message-meta-wrap><span data-slot=user-message-meta-tail class="text-12-regular text-text-weak cursor-default">`),LQ=W(`<div data-component=user-message>`),RQ=W(`<span>`),zQ=W(`<div data-component=text-part><div data-slot=text-part-body>`),BQ=W(`<div data-component=session-compaction-message><div class=py-2>`),VQ=W(`<span data-slot=text-part-meta class="text-12-regular text-text-weak cursor-default">`),HQ=W(`<div data-slot=text-part-copy-wrapper>`),UQ=W(`<div data-component=reasoning-part>`),WQ=W(`<span data-slot=basic-tool-tool-subtitle>`),GQ=W(`<div data-slot=basic-tool-tool-info-structured><div data-slot=basic-tool-tool-info-main><span data-slot=basic-tool-tool-title>`);async function KQ(e){let t=typeof document>`u`?void 0:document.body;if(t){let n=document.createElement(`textarea`);n.value=e,n.setAttribute(`readonly`,``),n.style.position=`fixed`,n.style.opacity=`0`,n.style.pointerEvents=`none`,t.appendChild(n),n.select();let r=document.execCommand(`copy`);if(t.removeChild(n),r)return!0}let n=typeof navigator>`u`?void 0:navigator.clipboard;return n?.writeText?n.writeText(e).then(()=>!0,()=>!1):!1}function qQ(e){let t=()=>e.icon===`copy`?`outline-copy`:e.icon;return z(Sl,{appearance:`compact`,get value(){return e.label},placement:`top`,gutter:4,get children(){return z(Lo,{get icon(){return z(X,{get name(){return t()},size:`small`})},size:`normal`,variant:`ghost-muted`,get disabled(){return e.disabled},get onMouseDown(){return e.onMouseDown},get onClick(){return e.onClick},get"aria-label"(){return e[`aria-label`]}})}})}var JQ=24,YQ=512,XQ=/[\s.,!?;:)\]]/;function ZQ(e){return e<=12?2:e<=48?4:e<=96?8:Math.min(256,Math.ceil(e/4))}function QQ(e,t){let n=Math.min(e.length,t+ZQ(e.length-t)),r=Math.min(e.length,n+8);for(let t=n;t<r;t++)if(XQ.test(e[t]??``))return t+1;return n}function $Q(e,t){let[n,r]=A(e()),i=e(),a,o=()=>{a&&=(clearTimeout(a),void 0)},s=e=>{i=e,r(e)},c=()=>{a=void 0;let n=e();if(!t?.()){s(n);return}if(!n.startsWith(i)||n.length<=i.length){s(n);return}if(n.length-i.length<=YQ){s(n);return}let r=QQ(n,i.length);s(n.slice(0,r)),r<n.length&&(a=setTimeout(c,JQ))};return M(()=>{let n=e();if(!t?.()){o(),s(n);return}if(!n.startsWith(i)||n.length<i.length){o(),s(n);return}if(n.length-i.length<=YQ){o(),s(n);return}n.length===i.length||a||(a=setTimeout(c,JQ))}),F(()=>{o()}),n}function e$(e){let t=$Q(()=>e.text,()=>e.streaming);return z(H,{get when(){return t()},get children(){return z(YW,{get text(){return t()},get cacheKey(){return e.cacheKey},get streaming(){return e.streaming},deferUntilReady:!0})}})}function t$(e){let t=Al(),[n,r]=$t({expanded:!1}),i=N(()=>e.bounded&&!n.expanded?e.comments.slice(0,5):e.comments);return(()=>{var a=AQ();return K(a,z(Ge,{get each(){return i()},children:e=>z(wG,{get comment(){return e.comment},get path(){return e.path},get selection(){return e.selection},get title(){return e.comment},tooltip:!0,wide:!0})}),null),K(a,z(H,{get when(){return U(()=>!!(e.bounded&&e.comments.length>5))()&&!n.expanded},get children(){return z(Po,{size:`small`,variant:`ghost-muted`,onClick:()=>r(`expanded`,!0),get children(){return t.t(`ui.common.showMore`)}})}}),null),j(()=>G(a,`data-bounded`,e.bounded?`true`:void 0)),a})()}function n$(e){let t=JA(),n=Co(),r=Al(),[i,a]=$t({copied:!1,reverting:!1}),o=N(()=>(e.message.files??[]).filter(e=>!e.mention)),s=N(()=>(e.message.files??[]).filter(e=>!!e.mention)),c=N(()=>e.message.agents??[]),l=N(()=>e.comments??[]),u=N(()=>(t.store.provider?.all?.get(e.model.providerID))?.models?.[e.model.id]?.name??e.model.id),d=N(()=>new Intl.DateTimeFormat(r.locale(),{timeStyle:`short`})),f=N(()=>{let t=e.agent;return[t?t[0]?.toUpperCase()+t.slice(1):``,u()].filter(Boolean).join(`\xA0·\xA0`)}),p=N(()=>d().format(e.message.time.created)),m=async()=>{e.text&&await KQ(e.text)&&(a(`copied`,!0),setTimeout(()=>a(`copied`,!1),2e3))},h=async()=>{if(e.actions?.revert&&!i.reverting){a(`reverting`,!0);try{await e.actions.revert({sessionID:e.sessionID,messageID:e.message.id})}finally{a(`reverting`,!1)}}},g=()=>z(H,{get when(){return o().length>0},get children(){var t=jQ();return K(t,z(Ge,{get each(){return o()},children:t=>{let i=()=>t.source.type===`uri`?t.source.uri:`data:${t.mime};base64,${t.data}`,a=()=>t.name??r.t(`ui.message.attachment.alt`),o=()=>t.mime.startsWith(`image/`);return z(H,{get when(){return!o()},get fallback(){return(()=>{var e=MQ(),t=e.firstChild;return e.$$click=()=>n.show(()=>z(aG,{get src(){return i()},get alt(){return a()}})),j(e=>{var n=i(),r=a();return n!==e.e&&G(t,`src`,e.e=n),r!==e.t&&G(t,`alt`,e.t=r),e},{e:void 0,t:void 0}),e})()},get children(){return z(uG,{get title(){return oG(a())},get hover(){return a()},get clickable(){return!!e.actions?.openAttachment},onClick:()=>e.actions?.openAttachment?.(t),get children(){return kQ(a(),t.mime,r.t(`ui.common.file`))}})}})}})),t}});return(()=>{var t=LQ();return K(t,z(H,{get when(){return e.text},get fallback(){return z(H,{get when(){return l().length>0},get children(){return z(t$,{get comments(){return l()},bounded:!1})}})},get children(){var t=NQ(),n=t.firstChild;return K(n,z(r$,{get text(){return e.text},get files(){return s()},get agents(){return c()}}),null),K(n,z(H,{get when(){return l().length>0},get children(){return z(t$,{get comments(){return l()},bounded:!0})}}),null),j(()=>G(n,`data-comments`,l().length>0?`true`:void 0)),t}}),null),K(t,g,null),K(t,z(H,{get when(){return e.text||l().length>0},get children(){var t=IQ(),n=t.firstChild,a=n.firstChild;return K(n,z(H,{get when(){return f()},get children(){var e=PQ();return K(e,f),e}}),a),K(n,z(H,{get when(){return U(()=>!!f())()&&p()},get children(){return FQ()}}),a),K(a,p),K(t,z(H,{get when(){return e.actions?.revert},get children(){return z(qQ,{icon:`reset`,get label(){return r.t(`ui.message.revertMessage`)},get disabled(){return i.reverting},onMouseDown:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),h()},get"aria-label"(){return r.t(`ui.message.revertMessage`)}})}}),null),K(t,z(H,{get when(){return e.text},get children(){return z(qQ,{get icon(){return i.copied?`check`:`copy`},get label(){return U(()=>!!i.copied)()?r.t(`ui.message.copied`):r.t(`ui.message.copyMessage`)},onMouseDown:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),m()},get"aria-label"(){return U(()=>!!i.copied)()?r.t(`ui.message.copied`):r.t(`ui.message.copyMessage`)}})}}),null),t}}),null),j(()=>G(t,`data-timeline-part-id`,e.text?`${e.message.id}:text:0`:void 0)),t})()}function r$(e){let t=N(()=>{let t=[...e.files.flatMap(e=>e.mention?[{start:e.mention.start,end:e.mention.end,type:`file`}]:[]),...e.agents.flatMap(e=>e.mention?[{start:e.mention.start,end:e.mention.end,type:`agent`}]:[])].sort((e,t)=>e.start-t.start),n=[],r=0;return t.forEach(t=>{t.start<r||(t.start>r&&n.push({text:e.text.slice(r,t.start)}),n.push({text:e.text.slice(t.start,t.end),type:t.type}),r=t.end)}),r<e.text.length&&n.push({text:e.text.slice(r)}),n});return z(Ge,{get each(){return t()},children:e=>(()=>{var t=RQ();return K(t,()=>e.text),j(()=>G(t,`data-highlight`,e.type)),t})()})}function i$(e){let t=Al(),n=()=>e.message.status===`failed`?``:e.message.summary,r=()=>e.message.status!==`failed`||e.message.error.type===`aborted`?``:e.error;return(()=>{var i=BQ(),a=i.firstChild;return K(a,z(rB,{get label(){return t.t(`ui.messagePart.compaction`)}})),K(i,z(H,{get when(){return n().trim()},get children(){var t=zQ(),r=t.firstChild;return K(r,z(e$,{get text(){return n()},get cacheKey(){return e.message.id},get streaming(){return e.message.status===`running`}})),j(()=>G(t,`data-timeline-part-id`,e.message.id)),t}}),null),K(i,z(H,{get when(){return r()},get children(){return z(EQ,{variant:`error`,class:`error-card`,get children(){return r()}})}}),null),i})()}function a$(e){let t=JA(),n=Al(),r=N(()=>new Intl.NumberFormat(n.locale())),i=()=>{let t=e.message.error?.type.toLowerCase();return!!t&&(t.includes(`abort`)||t.includes(`interrupt`))},a=N(()=>(t.store.provider?.all?.get(e.message.model.providerID))?.models?.[e.message.model.id]?.name??e.message.model.id),o=N(()=>{let t=e.message.time.completed,i=e.turnDurationMs===null?-1:typeof e.turnDurationMs==`number`?e.turnDurationMs:typeof t==`number`?t-e.message.time.created:-1;if(!(i>=0))return``;let a=Math.round(i/1e3);return a<60?n.t(`ui.message.duration.seconds`,{count:r().format(a)}):n.t(`ui.message.duration.minutesSeconds`,{minutes:r().format(Math.floor(a/60)),seconds:r().format(a%60)})}),s=N(()=>{let t=e.message.agent;return[t?t[0]?.toUpperCase()+t.slice(1):``,a(),o(),i()?n.t(`ui.message.interrupted`):``].filter(Boolean).join(` · `)}),[c,l]=A(!1),u=async()=>{await KQ(e.text)&&(l(!0),setTimeout(()=>l(!1),2e3))};return z(H,{get when(){return e.text},get children(){var t=zQ(),r=t.firstChild;return K(r,z(e$,{get text(){return e.text},get cacheKey(){return e.id},get streaming(){return typeof e.message.time.completed!=`number`}})),K(t,z(H,{get when(){return e.showCopy},get children(){var e=HQ();return K(e,z(qQ,{get icon(){return c()?`check`:`copy`},get label(){return U(()=>!!c())()?n.t(`ui.message.copied`):n.t(`ui.message.copyResponse`)},onMouseDown:e=>e.preventDefault(),onClick:u,get"aria-label"(){return U(()=>!!c())()?n.t(`ui.message.copied`):n.t(`ui.message.copyResponse`)}}),null),K(e,z(H,{get when(){return s()},get children(){var e=VQ();return K(e,s),e}}),null),j(()=>G(e,`data-interrupted`,i()?``:void 0)),e}}),null),j(()=>G(t,`data-timeline-part-id`,e.id)),t}})}function o$(e){let t=Al(),[n,r]=$t({}),i=()=>e.open??n.open??e.defaultOpen??!1,a=N(()=>e.streaming?Yz(e.content.text):``),o=N(()=>{let n=e.content.time;if(n?.completed===void 0)return;let r=Math.max(0,Math.round((n.completed-n.created)/1e3)),i=new Intl.NumberFormat(t.locale());return r<60?t.t(`ui.message.duration.seconds`,{count:i.format(r)}):t.t(`ui.message.duration.minutesSeconds`,{minutes:i.format(Math.floor(r/60)),seconds:i.format(r%60)})});return(()=>{var n=UQ();return K(n,z(bQ,{icon:`mcp`,get status(){return e.streaming?`running`:`completed`},compact:!0,hasContent:!0,allowOpenWhilePending:!0,get hideDetails(){return!e.content.text.trim()},get open(){return i()},onOpenChange:t=>{r(`open`,t),e.onOpenChange?.(t),e.onContentRendered?.()},get trigger(){return(()=>{var n=GQ(),r=n.firstChild,s=r.firstChild;return K(s,z(jG,{get text(){return t.t(e.streaming?`ui.sessionTurn.status.thinking`:`ui.message.thought`)},get active(){return e.streaming}})),K(r,z(H,{get when(){return U(()=>!!e.streaming)()&&!i()},get fallback(){return z(H,{get when(){return U(()=>!e.streaming)()&&o()},children:e=>(()=>{var t=WQ();return K(t,e),t})()})},get children(){var e=WQ();return K(e,z(kG,{get text(){return a()}})),e}}),null),n})()},get children(){return z(e$,{get text(){return e.content.text},get cacheKey(){return e.id},get streaming(){return e.streaming}})}})),j(()=>G(n,`data-timeline-part-id`,e.id)),n})()}ct([`click`]);function s$({onlyFirst:e=!1}={}){return RegExp(`(?:\\u001B\\][^\\u0007\\u001B\\u009C]*(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`,e?void 0:`g`)}var c$=s$();function l$(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(c$,``)}La({},{Accordion:()=>y$,Content:()=>f$,Header:()=>p$,Item:()=>g$,Root:()=>_$,Trigger:()=>v$,useAccordionContext:()=>h$});var u$=L();function d$(){let e=R(u$);if(e===void 0)throw Error("[kobalte]: `useAccordionItemContext` must be used within a `Accordion.Item` component");return e}function f$(e){let t=d$(),[n,r]=V(Hi({id:t.generateId(`content`)},e),[`id`,`style`]);return M(()=>F(t.registerContentId(n.id))),z(YZ,B({role:`region`,get"aria-labelledby"(){return t.triggerId()},get style(){return Yr({"--kb-accordion-content-height":`var(--kb-collapsible-content-height)`,"--kb-accordion-content-width":`var(--kb-collapsible-content-width)`},n.style)}},r))}function p$(e){let t=JZ();return z(Ea,B({as:`h3`},()=>t.dataset(),e))}var m$=L();function h$(){let e=R(m$);if(e===void 0)throw Error("[kobalte]: `useAccordionContext` must be used within a `Accordion.Root` component");return e}function g$(e){let t=h$(),[n,r]=V(Hi({id:`${t.generateId(`item`)}-${Ue()}`},e),[`value`,`disabled`]),[i,a]=A(),[o,s]=A(),c=()=>t.listState().selectionManager(),l=()=>c().isSelected(n.value),u={value:()=>n.value,triggerId:i,contentId:o,generateId:ni(()=>r.id),registerTriggerId:Ha(a),registerContentId:Ha(s)};return z(u$.Provider,{value:u,get children(){return z(XZ,B({get open(){return l()},get disabled(){return n.disabled}},r))}})}function _$(e){let t,[n,r]=V(Hi({id:`accordion-${Ue()}`,multiple:!1,collapsible:!1,shouldFocusWrap:!0},e),[`id`,`ref`,`value`,`defaultValue`,`onChange`,`multiple`,`collapsible`,`shouldFocusWrap`,`onKeyDown`,`onMouseDown`,`onFocusIn`,`onFocusOut`]),[i,a]=A([]),{DomCollectionProvider:o}=lu({items:i,onItemsChange:a}),s=Ql({selectedKeys:()=>n.value,defaultSelectedKeys:()=>n.defaultValue,onSelectionChange:e=>n.onChange?.(Array.from(e)),disallowEmptySelection:()=>!n.multiple&&!n.collapsible,selectionMode:()=>n.multiple?`multiple`:`single`,dataSource:i});s.selectionManager().setFocusedKey(`item-1`);let c=Wu({selectionManager:()=>s.selectionManager(),collection:()=>s.collection(),disallowEmptySelection:()=>s.selectionManager().disallowEmptySelection(),shouldFocusWrap:()=>n.shouldFocusWrap,disallowTypeAhead:!0,allowsTabNavigation:!0},()=>t),l={listState:()=>s,generateId:ni(()=>n.id)};return z(o,{get children(){return z(m$.Provider,{value:l,get children(){return z(Ea,B({as:`div`,get id(){return n.id},ref(e){var r=Xr(e=>t=e,n.ref);typeof r==`function`&&r(e)},get onKeyDown(){return yi([n.onKeyDown,c.onKeyDown])},get onMouseDown(){return yi([n.onMouseDown,c.onMouseDown])},get onFocusIn(){return yi([n.onFocusIn])},get onFocusOut(){return yi([n.onFocusOut,c.onFocusOut])}},r))}})}})}function v$(e){let t,n=h$(),r=d$(),i=JZ(),[a,o]=V(Hi({id:r.generateId(`trigger`)},e),[`ref`,`onPointerDown`,`onPointerUp`,`onClick`,`onKeyDown`,`onMouseDown`,`onFocus`]);uu({getItem:()=>({ref:()=>t,type:`item`,key:r.value(),textValue:``,disabled:i.disabled()})});let s=Yl({key:()=>r.value(),selectionManager:()=>n.listState().selectionManager(),disabled:()=>i.disabled(),shouldSelectOnPressUp:!0},()=>t);return M(()=>F(r.registerTriggerId(o.id))),z(ZZ,B({ref(e){var n=Xr(e=>t=e,a.ref);typeof n==`function`&&n(e)},get"data-key"(){return s.dataKey()},get onPointerDown(){return yi([a.onPointerDown,s.onPointerDown])},get onPointerUp(){return yi([a.onPointerUp,s.onPointerUp])},get onClick(){return yi([a.onClick,s.onClick])},onKeyDown:e=>{[`Enter`,` `].includes(e.key)&&e.preventDefault(),vi(e,a.onKeyDown),vi(e,s.onKeyDown)},get onMouseDown(){return yi([a.onMouseDown,s.onMouseDown])},get onFocus(){return yi([a.onFocus,s.onFocus])}},o))}var y$=Object.assign(_$,{Content:f$,Header:p$,Item:g$,Trigger:v$});function b$(e){let[t,n]=V(e,[`class`,`classList`]);return z(_$,B(n,{"data-component":`accordion`,get classList(){return{...t.classList,[t.class??``]:!!t.class}}}))}function x$(e){let[t,n]=V(e,[`class`,`classList`]);return z(g$,B(n,{"data-slot":`accordion-item`,get classList(){return{...t.classList,[t.class??``]:!!t.class}}}))}function S$(e){let[t,n]=V(e,[`class`,`classList`,`children`]);return z(p$,B(n,{"data-slot":`accordion-header`,get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return t.children}}))}function C$(e){let[t,n]=V(e,[`class`,`classList`,`children`]);return z(v$,B(n,{"data-slot":`accordion-trigger`,get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return t.children}}))}function w$(e){let[t,n]=V(e,[`class`,`classList`,`children`]);return z(f$,B(n,{"data-slot":`accordion-content`,get classList(){return{...t.classList,[t.class??``]:!!t.class}},get children(){return t.children}}))}var T$=Object.assign(b$,{Item:x$,Header:S$,Trigger:C$,Content:w$});function E$(e){return z(T$.Header,{"data-component":`sticky-accordion-header`,get classList(){return{...e.classList,[e.class??``]:!!e.class}},get children(){return e.children}})}var D$=W(`<a data-slot=basic-tool-tool-subtitle class="clickable subagent-link">`),O$=W(`<div data-component=tool-trigger><div data-slot=basic-tool-tool-trigger-content><span data-slot=basic-tool-tool-indicator data-component=tool-error-card-icon></span><div data-slot=basic-tool-tool-info><div data-slot=basic-tool-tool-info-structured><div data-slot=basic-tool-tool-info-main><span data-slot=basic-tool-tool-title></span><span data-slot=tool-error-card-summary>`),k$=W(`<div data-slot=tool-error-card-copy>`),A$=W(`<div data-slot=tool-error-card-content>`),j$=W(`<span data-slot=basic-tool-tool-subtitle>`);function M$(e){let t=Al(),[n,r]=$t({open:e.defaultOpen??!1,copied:!1}),i=()=>e.open??n.open,a=()=>n.copied,[o,s]=V(e,[`tool`,`error`,`title`,`defaultOpen`,`open`,`onOpenChange`,`subtitle`,`href`,`onSubtitleClick`]),c=t=>{e.open===void 0&&r(`open`,t),e.onOpenChange?.(t)},l=N(()=>{if(o.title)return o.title;let e={read:`ui.tool.read`,list:`ui.tool.list`,glob:`ui.tool.glob`,grep:`ui.tool.grep`,subagent:`ui.tool.agent.default`,webfetch:`ui.tool.webfetch`,websearch:`ui.tool.websearch`,shell:`ui.tool.shell`,execute:`ui.tool.execute`,patch:`ui.tool.patch`,question:`ui.tool.questions`}[o.tool];return e?e.includes(`.`)?t.t(e):e:o.tool}),u=N(()=>o.error.replace(/^Error:\s*/,``).trim()),d=N(()=>{let e=u(),t=`${o.tool} `;return e.startsWith(t)?e.slice(t.length):e}),f=N(()=>{let e=(d().split(`: `)[0]??``).trim();return e?e[0].toUpperCase()+e.slice(1):t.t(`ui.toolErrorCard.failed`)}),p=N(()=>{let e=d().split(`: `);return e.length<=1?``:e.slice(1).join(`: `).trim()}),m=async()=>{let e=u();e&&(await navigator.clipboard.writeText(e),r(`copied`,!0),setTimeout(()=>r(`copied`,!1),2e3))};return z(EQ,B(s,{"data-kind":`tool-error-card`,get"data-open"(){return i()?`true`:`false`},variant:`error`,get children(){return z(iQ,{class:`tool-collapsible`,get"data-open"(){return i()?`true`:`false`},get open(){return i()},onOpenChange:c,get children(){return[z(iQ.Trigger,{get children(){var e=O$(),t=e.firstChild.firstChild,n=t.nextSibling.firstChild.firstChild,r=n.firstChild,i=r.nextSibling;return K(t,z(X,{name:`outline-hexagonal-warning`})),K(r,l),K(n,z(H,{get when(){return o.subtitle},get children(){return z(H,{get when(){return o.href},get fallback(){return(()=>{var e=j$();return K(e,()=>o.subtitle),e})()},get children(){var e=D$();return e.$$click=e=>{e.stopPropagation(),o.onSubtitleClick?.(e)},K(e,()=>o.subtitle),j(()=>G(e,`href`,o.href)),e}})}}),i),K(i,f),K(e,z(iQ.Arrow,{}),null),e}}),z(H,{get when(){return p()},get children(){return z(iQ.Content,{get children(){var e=A$();return K(e,z(H,{get when(){return i()},get children(){var e=k$();return K(e,z(Sl,{appearance:`standard`,get value(){return U(()=>!!a())()?t.t(`ui.message.copied`):t.t(`ui.toolErrorCard.copyError`)},placement:`top`,gutter:4,get children(){return z(Lo,{get icon(){return z(X,{get name(){return a()?`check`:`copy`}})},size:`normal`,variant:`ghost`,onMouseDown:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),m()},get"aria-label"(){return U(()=>!!a())()?t.t(`ui.message.copied`):t.t(`ui.toolErrorCard.copyError`)}})}})),e}}),null),K(e,z(DQ,{get children(){return p()}}),null),e}})}})]}})}}))}ct([`click`]);var N$=W(`<div data-component=diff-changes><span data-slot=diff-changes-additions></span><span data-slot=diff-changes-deletions>`);function P$(e){let t=N(()=>Array.isArray(e.changes)?e.changes.reduce((e,t)=>e+(t.additions??0),0):e.changes.additions),n=N(()=>Array.isArray(e.changes)?e.changes.reduce((e,t)=>e+(t.deletions??0),0):e.changes.deletions),r=N(()=>(t()??0)+(n()??0));return z(H,{get when(){return r()>0},get children(){var r=N$(),i=r.firstChild,a=i.nextSibling;return K(i,()=>`+${t()}`),K(a,()=>`-${n()}`),j(t=>{var n=e.appearance??`compact`,i={[e.class??``]:!0};return n!==t.e&&G(r,`data-appearance`,t.e=n),t.t=pt(r,i,t.t),t},{e:void 0,t:void 0}),r}})}var F$=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends F${};function I$(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function L$(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function R$(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function z$(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function B$(e,t){return R$(e,t,``)}function V$(e,t){return z$(e,t,``)}function H$(e,t){return t.slice(0,U$(e,t))}function U$(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function W$(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function G$(e,t){if(t)return q$(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function K$(e,t){if(t)return q$(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function q$(e,t){if(!t)return[K$(e),G$(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=W$(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var J$=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,Y$=RegExp(`[${J$}]+|\\s+|[^${J$}]`,`ug`);new class extends F${equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=W$(e,r)}else n=e.match(Y$)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&X$(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&X$(n,i,r,null,t.intlSegmenter),e}};function X$(e,t,n,r,i){if(t&&n){let[a,o]=q$(t.value,i),[s,c]=q$(n.value,i);if(e){let r=I$(a,s);e.value=z$(e.value,s,r),t.value=B$(t.value,r),n.value=B$(n.value,r)}if(r){let e=L$(o,c);r.value=R$(r.value,c,e),t.value=V$(t.value,e),n.value=V$(n.value,e)}}else if(n){if(e){let e=K$(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=K$(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=K$(r.value,i),[a,o]=q$(t.value,i),s=I$(n,a);t.value=B$(t.value,s);let c=L$(B$(n,s),o);t.value=V$(t.value,c),r.value=R$(r.value,n,c),e.value=z$(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=K$(r.value,i),n=H$(G$(t.value,i),e);t.value=V$(t.value,n)}else if(e){let n=H$(G$(e.value,i),K$(t.value,i));t.value=B$(t.value,n)}}new class extends F${tokenize(e){let t=RegExp(`(\\r?\\n)|[${J$}]+|[^\\S\\n\\r]+|[^${J$}]`,`ug`);return e.match(t)||[]}},new class extends F${constructor(){super(...arguments),this.tokenize=Z$}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
785
787
  `))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
@@ -790,4 +792,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
790
792
  `:``)).join(``);return{before:o(r),after:o(i)}}catch{return}}function s1(e,t){try{let n=e1(t)[0];return n?n.index||n.oldFileName||n.newFileName?t:n.hunks.length?`Index: ${e}\n===================================================================\n--- ${e}\t\n+++ ${e}\t\n${t}`:void 0:void 0}catch{return}}function c1(e,t,n){if(!t&&!n)return u1(e);let r=vD({name:e,contents:t},{name:e,contents:n});return r.cacheKey=l1(`${e}\0${t}\0${n}`),r}function l1(e){return`${e.length}:${mf(e)??0}`}function u1(e){return vD({name:e,contents:``},{name:e,contents:``})}function d1(e){return!e||typeof e!=`object`||!(`file`in e)||typeof e.file!=`string`||!(`patch`in e)||typeof e.patch!=`string`||!(`additions`in e)||typeof e.additions!=`number`||!(`deletions`in e)||typeof e.deletions!=`number`||!(`status`in e)||e.status!==`added`&&e.status!==`deleted`&&e.status!==`modified`?!1:e.additions>0||e.deletions>0}function f1(e){if(!d1(e))return;let t;return{path:e.file,type:e.status===`added`?`add`:e.status===`deleted`?`delete`:`update`,additions:e.additions,deletions:e.deletions,get view(){return t??=i1(e)},contents:o1(e.patch)}}function p1(e){return Array.isArray(e)?e.map(f1).filter(e=>!!e):[]}function m1(e){return[...p1(e).reduce((e,t)=>{let n=e.get(t.path);return n&&n.push(t),n||e.set(t.path,[t]),e},new Map)].map(([e,t])=>{let n=t[0],r=t.at(-1),i=r.type===`delete`?`delete`:n.type===`add`?`add`:`update`;if(!t.every((e,n)=>!!e.contents&&(n===0||t[n-1]?.contents?.after===e.contents.before)))return{path:e,type:i,additions:t.reduce((e,t)=>e+t.additions,0),deletions:t.reduce((e,t)=>e+t.deletions,0),views:t.map(e=>e.view)};let a=t.length===1?n.view:i1({file:e,before:n.contents.before,after:r.contents.after,status:i===`add`?`added`:i===`delete`?`deleted`:`modified`,additions:0,deletions:0}),o=a.fileDiff.hunks.reduce((e,t)=>({additions:e.additions+t.additionLines,deletions:e.deletions+t.deletionLines}),{additions:0,deletions:0});return{path:e,type:i,...o,views:[{...a,...o}]}})}var h1=W(`<svg><defs><filter filterUnits=userSpaceOnUse x=0 y=0 width=16 height=16><feFlood flood-color=currentColor result=color></feFlood><feComposite in=color in2=SourceAlpha operator=in></feComposite></filter><clipPath><path></path></clipPath></defs><image data-frame-content x=0 y=0 width=16 height=16></image><rect data-reduced-motion x=7.5 y=7.5 width=2 height=2>`),g1=new URL(`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACGFjVEwAAAAkAAAAAL0MSdQAAAAaZmNUTAAAAAAAAAAQAAAAEAAAAAAAAAAAAAEAHgAAeGnEiQAAAChJREFUeNpjYKAG+P//vzG5eNQAOhiADIaBAfVIeIgasB8Jww0beAMAAcvtF7z+xvIAAAAaZmNUTAAAAAEAAAAQAAAAEAAAAAAAAAAAAAEAHgAA4xouXQAAADlmZEFUAAAAAnjaY2CgBvj//78xuXjUADoYgAyGkAEVSPglEk5DwoPQAGRNyUj4ChKegIThhg28AQCHCO3v9vSM9QAAABpmY1RMAAAAAwAAABAAAAAQAAAAAAAAAAAAAQAeAAAOjP20AAAAOWZkQVQAAAAEeNpjYKAG+P//vzG5eNQAOhiADIaQAZuQ8HUkHICEB6EByJq6kPAGJJyBhOGGDbwBAME/7ogd07A4AAAAGmZjVEwAAAAFAAAAEAAAABAAAAAAAAAAAAABAB4AAONGj84AAAA5ZmRBVAAAAAZ42mNgoAb4//+/Mbl41AA6GIAMhpAB95HwSSRsj4QHoQHImlYi4clI2BMJww0beAMAtN7u/Yo3jeUAAAAaZmNUTAAAAAcAAAAQAAAAEAAAAAAAAAAAAAEAHgAADtBcJwAAADlmZEFUAAAACHjaY2CgBvj//78xuXjUADoYgAyGkAG/kfBBJGyKhAehAcia9iDhJiRshoThhg28AQBd9e9gN/7mcAAAABpmY1RMAAAACQAAABAAAAAQAAAAAAAAAAAAAQAeAADjo217AAAANWZkQVQAAAAKeNpjYKAG+P//vzG5eNQAKhoQjgMjg0FugA8SfoGElyHhQW4ALk1FSHiQGgAAlc/u64UC44QAAAAaZmNUTAAAAAsAAAAQAAAAEAAAAAAAAAAAAAEAHgAADjW+kgAAADVmZEFUAAAADHjaY2CgBvj//78xuXjUACoaMB0HRgaD3IByJHwQCVcj4UFuAC5NUUh4kBoAAF9m7lIeWdi1AAAAGmZjVEwAAAANAAAAEAAAABAAAAAAAAAAAAABAB4AAOP/zOgAAAA1ZmRBVAAAAA542mNgoAb4//+/Mbl41AAqGnAKB0YGg9yA2Uh4ARIOR8KD3ABcmtyR8CA1AADbGe2n0LJXAwAAABpmY1RMAAAADwAAABAAAAAQAAAAAAAAAAAAAQAeAAAOaR8BAAAANWZkQVQAAAAQeNpjYKAG+P//vzG5eNQAKhrwAQdGBoPcgK1IuBMJ2yHhQW4ALk2WSHiQGgAAWnvtX1kT8yQAAAAaZmNUTAAAABEAAAAQAAAAEAAAAAAAAAAAAAEAHgAA4mioEQAAADBmZEFUAAAAEnjaY2CgBvj//78xuXjUACoaQAwY5AbsR8L1SJjoMBh4A0jSNLgMAACaJe0XdM6fPgAAABpmY1RMAAAAEwAAABAAAAAQAAAAAAAAAAAAAQAeAAAP/nv4AAAAPmZkQVQAAAAUeNpjYKAG+P//fwUSNiYFDx4DkpEwSYYNHgOuIOGXSBgZDHIDJiDhNCRMdBgMvAEkaRpcBgAAVrTt7/r/V2YAAAAaZmNUTAAAABUAAAAQAAAAEAAAAAAAAAAAAAEAHgAA4jQJggAAAD5mZEFUAAAAFnjaY2CgBvj///8mJGxMCh48BnQhYZIMGzwGbEDC15EwMhjkBmQg4QAkTHQYDLwBJGkaXAYAAAoz7ojYXBW3AAAAGmZjVEwAAAAXAAAAEAAAABAAAAAAAAAAAAABAB4AAA+i2msAAAA+ZmRBVAAAABh42mNgoAb4////fSRsTAoePAasRMIkGTZ4DJiMhE8iYWQwyA3wRML2SJjoMBh4A0jSNLgMAACRCO798w7XFgAAABpmY1RMAAAAGQAAABAAAAAQAAAAAAAAAAAAAQAeAADi0es3AAAAPmZkQVQAAAAaeNpjYKAG+P///28kbEwKHjwG7EHCJBk2eAxoQsIHkTAyGOQGmCFhUyRMdBgMvAEkaRpcBgAAY5fvYHjnWwYAAAAaZmNUTAAAABsAAAAQAAAAEAAAAAAAAAAAAAEAHgAAD0c43gAAADpmZEFUAAAAHHjaY2CgBvj///8LJOyDhMORsDE2PHgMWIaEkQ0bQgYUIWFkw5DBIDfAmFw8agAVDAAAo7bu644KyeIAAAAaZmNUTAAAAB0AAAAQAAAAEAAAAAAAAAAAAAEAHgAA4o1KpAAAADpmZEFUAAAAHnjaY2CgBvj///9BJFyOhKcjYWNsePAYUI2EkQ0bQgZEIWFkw5DBIDfAmFw8agAVDAAAQZ7uUlrM3IIAAAAaZmNUTAAAAB8AAAAQAAAAEAAAAAAAAAAAAAEAHgAADxuZTQAAADpmZEFUAAAAIHjaY2CgBvj///8CJDwbCZ9CwsbY8OAxIBwJIxs2hAxwR8LIhiGDQW6AMbl41AAqGAAADzPtp1TcBaQAAAAaZmNUTAAAACEAAAAQAAAAEAAAAAAAAAAAAAEAHgAA4f8ixQAAADpmZEFUAAAAInjaY2CgBvj//38nEt6KhD8gYWNsePAYYIeEkQ0bQgZYImFkw5DBIDfAmFw8agAVDAAANyLtX/RrDIEAAAAaZmNUTAAAACMAAAAQAAAAEAAAAAAAAAAAAAEAHgAADGnxLAAAADJmZEFUAAAAJHjaY2CgBvj//389Et6PhJGBMTY8eAxAFkQ2bIgagIyHgQEE8agBVDAAADge7RendZX+AAAAGmZjVEwAAAAlAAAAEAAAABAAAAAAAAAAAAABAB4AAOGjg1YAAABBZmRBVAAAACZ42mNgoAb4//9/GhKegISvIOFkJFwBw4PHAGMkjGzYSyRcgYTh6genAcgYGWBVM/gNIIhHDaCCAQDjv+3vdQR+4gAAABpmY1RMAAAAJwAAABAAAAAQAAAAAAAAAAAAAQAeAAAMNVC/AAAAQWZkQVQAAAAoeNpjYKAG+P//fwASzkDCG5BwFxLeBMODxwBjJIxs2HUkvAkJw9UPTgOQMTLAqmbwG0AQjxpABQMA7C7uiK2dJ18AAAAaZmNUTAAAACkAAAAQAAAAEAAAAAAAAAAAAAEAHgAA4UZh4wAAAEJmZEFUAAAAKnjaY2CgBvj//789EvZEwpOR8EokfB+GB48BxkgY2bCTSPg+EoarH5wGIGNkgFXN4DeAIB41gAoGAACzFe79C/hS/gAAABpmY1RMAAAAKwAAABAAAAAQAAAAAAAAAAAAAQAeAAAM0LIKAAAAQWZkQVQAAAAseNpjYKAG+P//vykSNkPCTUh4DxL+DcODxwBjJIxs2EEk/BsJw9UPTgOQMTLAqmbwG0AQjxpABQMAgHTvYDK8McMAAAAaZmNUTAAAAC0AAAAQAAAAEAAAAAAAAAAAAAEAHgAA4RrAcAAAADlmZEFUAAAALnjaY2CgBvj//78xDlyEhJch4RcwPPgNQNb0BQn7wPDgNwAZhGPDg98AgnjUACoYAACnh+9Xt0fS2AAAABpmY1RMAAAALwAAABAAAAAQAAAAAAAAAAAAAQAeAAAMjBOZAAAAOWZkQVQAAAAweNpjYKAG+P//vzEOHIWEq5HwQRge/AYga3qAhMthePAbgAymY8OD3wCCeNQAKhgAAFjx72k7d0QkAAAAGmZjVEwAAAAxAAAAEAAAABAAAAAAAAAAAAABAB4AAOCNpIkAAAA5ZmRBVAAAADJ42mNgoAb4//+/MQ7sjoTDkfACGB78BiBruoCEZ8Pw4DcAGZzChge/AQTxqAFUMAAA5SvvVy2nfzsAAAAaZmNUTAAAADMAAAAQAAAAEAAAAAAAAAAAAAEAHgAADRt3YAAAADlmZEFUAAAANHjaY2CgBvj//78xDmyJhO2QcCcMD34DkDUdQcJbYXjwG4AMPmDDg98AgnjUACoYAABXie9yJzS1EAAAABpmY1RMAAAANQAAABAAAAAQAAAAAAAAAAAAAQAeAADg0QUaAAAALGZkQVQAAAA2eNpjYKAG+P//vzGJuB6Gh5YB+7HhwW8AQTD4DSCIRw2gggEAfM/vV+aCsd4AAAAaZmNUTAAAADcAAAAQAAAAEAAAAAAAAAAAAAEAHgAADUfW8wAAADRmZEFUAAAAOHjaY2CgBvj//78xiTgNhoeWAROw4cFvAEEw+A1AxsnY8NAyABn7wvDAGwAA23vvcr83e3EAAAAaZmNUTAAAADkAAAAQAAAAEAAAAAAAAAAAAAEAHgAA4DTnrwAAADRmZEFUAAAAOnjaY2CgBvj//78xiTgAhoeWARnY8OA3gCAY/AYg4y5seGgZgIyTYXjgDQAAI+vvYKC9wpMAAAAaZmNUTAAAADsAAAAQAAAAEAAAAAAAAAAAAAEAHgAADaI0RgAAADRmZEFUAAAAPHjaY2CgBvj//78xidgehoeWAZ7Y8OA3gCAY/AYg45XY8NAyABmXwPDAGwAA/1HvYKNC9mMAAAAaZmNUTAAAAD0AAAAQAAAAEAAAAAAAAAAAAAEAHgAA4GhGPAAAADRmZEFUAAAAPnjaY2CgBvj//78xidgUhoeWAWbY8OA3gCAY/AYg4z3Y8NAyABnXwfDAGwAA4+jvYGU9ydgAAAAaZmNUTAAAAD8AAAAQAAAAEAAAAAAAAAAAAAEAHgAADf6V1QAAADVmZEFUAAAAQHjaY2CgBvj//78xuXjUADoYgAxuY8OD34BwJLwFCS+D4aFlgA8SboDhgTcAAJfG7v2dtCjJAAAAGmZjVEwAAABBAAAAEAAAABAAAAAAAAAAAAABAB4AAObQN20AAAA1ZmRBVAAAAEJ42mNgoAb4//+/Mbl41AA6GIAMZmPDg9+A6Uh4ARKuhuGhZUA5Em6A4YE3AADstO5J4rYdbgAAABpmY1RMAAAAQwAAABAAAAAQAAAAAAAAAAAAAQAeAAALRuSEAAAANWZkQVQAAABEeNpjYKAG+P//vzG5eNQAOhiADDKw4cFvwCkkPAEJh8Pw0DJgNhJugOGBNwAAkKbtudOlpwsAAAAaZmNUTAAAAEUAAAAQAAAAEAAAAAAAAAAAAAEAHgAA5oyW/gAAADVmZEFUAAAARnjaY2CgBvj//78xuXjUADoYgAycsOHBb8AHJNyChO1geGgZsBUJN8DwwBsAAKAr7VaKiqTBAAAAAElFTkSuQmCC`,``+import.meta.url).href,_1=Array.from({length:25},(e,t)=>`M${1.5+t%5*3} ${1.5+Math.floor(t/5)*3}h2v2h-2z`).join(``);function v1(e){let[t,n]=V(e,[`class`,`classList`,`width`,`height`]),r=Ue(),i=`session-progress-indicator-filter-${r}`,a=`session-progress-indicator-clip-${r}`;return(()=>{var e=h1(),r=e.firstChild,o=r.firstChild,s=o.nextSibling,c=s.firstChild,l=r.nextSibling;return gt(e,B(n,{get class(){return t.class},get classList(){return t.classList},get width(){return t.width??16},get height(){return t.height??16},viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"data-component":`session-progress-indicator-v2`,get"aria-hidden"(){return n[`aria-hidden`]??`true`}}),!0,!0),G(o,`id`,i),G(s,`id`,a),G(c,`d`,_1),G(l,`href`,g1),G(l,`filter`,`url(#${i})`),G(l,`clip-path`,`url(#${a})`),e})()}var y1=W(`<span data-component=shell-submessage dir=ltr><span data-slot=shell-submessage-width><span data-slot=basic-tool-tool-subtitle><span data-slot=shell-submessage-value>`),b1=W(`<div data-component=diagnostics>`),x1=W(`<div data-slot=diagnostic><span data-slot=diagnostic-label></span><span data-slot=diagnostic-location>[<!>:<!>]</span><span data-slot=diagnostic-message>`),S1=W(`<button type=button data-slot=exa-tool-more>`),C1=W(`<div data-component=exa-tool-output><div data-slot=exa-tool-links>`),w1=W(`<a data-slot=exa-tool-link class=webfetch-link target=_blank rel="noopener noreferrer"><span data-slot=webfetch-link-text>`),T1=W(`<div data-component=context-tool-group-list>`),E1=W(`<div data-component=collapsed-tool-group>`),D1=W(`<div data-component=context-tool-group-trigger><span data-slot=context-tool-group-title><span data-slot=basic-tool-tool-title>`),O1=W(`<span data-slot=context-tool-group-prefix>`),k1=W(`<div data-slot=context-tool-group-item>`),A1=W(`<div data-component=tool-trigger><div data-slot=basic-tool-tool-trigger-content><div data-slot=basic-tool-tool-info><div data-slot=basic-tool-tool-info-structured><div data-slot=basic-tool-tool-info-main><span data-slot=basic-tool-tool-title>`),j1=W(`<div data-component=tool-loaded-item><span data-slot=tool-loaded-label aria-hidden=true></span><span data-slot=tool-loaded-value aria-hidden=true>`),M1=W(`<span data-slot=tool-loaded-kind aria-hidden=true>`),N1=W(`<span data-slot=basic-tool-tool-subtitle>`),P1=W(`<span data-slot=basic-tool-tool-arg>`),F1=W(`<span data-slot=context-tool-group-dot>`),I1=W(`<span data-slot=context-tool-group-matches>`),L1=W(`<div data-component=tool-part-wrapper>`),R1=W(`<span data-slot=apply-patch-directory>`),z1=W(`<div data-slot=apply-patch-trigger-content><div data-slot=apply-patch-file-info><div data-slot=apply-patch-file-name-container><span data-slot=apply-patch-filename></span></div></div><div data-slot=apply-patch-trigger-actions>`),B1=W(`<div style=width:100%;display:flex;justify-content:flex-end><span class="text-13-regular text-text-weak cursor-default">`),V1=W(`<div data-component=read-image><img>`),H1=W(`<div data-component=tool-output data-scrollable tabindex=0 role=region>`),U1=W(`<a data-slot=basic-tool-tool-subtitle class=webfetch-link target=_blank rel="noopener noreferrer"><span data-slot=webfetch-link-text>`),W1=W(`<div data-slot=basic-tool-tool-info-structured><div data-slot=basic-tool-tool-info-main><span data-slot=basic-tool-tool-title>`),G1=W(`<span data-component=task-tool-spinner>`),K1=W(`<div data-component=task-tool-action>`),q1=W(`<div data-component=task-tool-card><div data-component=task-tool-surface><div data-slot=basic-tool-tool-info-structured><div data-slot=basic-tool-tool-info-main><span data-component=task-tool-title>`),J1=W(`<span data-component=task-tool-icon>`),Y1=W(`<div data-component=task-tool-delegating class="flex h-9 w-fit max-w-full items-center gap-2 rounded-[8px] bg-v2-background-bg-layer-02 p-2.5 text-[13px] font-[530] leading-text-compact tracking-[-0.04px]">`),X1=W(`<div data-component=bash-output dir=ltr><div data-slot=bash-copy></div><div data-slot=bash-scroll data-scrollable tabindex=0 role=region><pre data-slot=bash-pre><code>`),Z1=W(`<span data-slot=bash-command>`),Q1=W(`<span data-slot=bash-result>`),$1=W(`<div data-component=session-shell-message>`),e0=W(`<div data-component=edit-content>`),t0=W(`<div data-component=edit-tool>`),n0=W(`<div data-component=write-content>`),r0=W(`<div data-component=write-tool>`),i0=W(`<div data-component=apply-patch-tool>`),a0=W(`<span data-slot=apply-patch-change data-type=added>`),o0=W(`<span data-slot=apply-patch-change data-type=removed>`),s0=W(`<div data-component=apply-patch-file-diff>`),c0=W(`<div data-component=question-answers>`),l0=W(`<div data-slot=question-answer-item><div data-slot=question-text></div><div data-slot=answer-text>`);function u0(e){let t,n;return oe(()=>{e.animate&&requestAnimationFrame(()=>{t&&KZ(t,{width:`auto`},{type:`spring`,visualDuration:.25,bounce:0}),n&&KZ(n,{opacity:1,filter:`blur(0px)`},{duration:.32,ease:[.16,1,.3,1]})})}),(()=>{var r=y1(),i=r.firstChild,a=i.firstChild.firstChild,o=t;typeof o==`function`?_t(o,i):t=i;var s=n;return typeof s==`function`?_t(s,a):n=a,K(a,()=>e.text),j(t=>{var n=e.animate?`0px`:void 0,r=e.animate?{opacity:0,filter:`blur(2px)`}:void 0;return n!==t.e&&ht(i,`width`,t.e=n),t.t=mt(a,r,t.t),t},{e:void 0,t:void 0}),r})()}function d0(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function f0(e){return d0(e)&&typeof e.question==`string`}function p0(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function m0(e){return!e||typeof e!=`object`||!(`message`in e)||typeof e.message!=`string`||!(`range`in e)||!e.range||typeof e.range!=`object`?!1:`start`in e.range&&!!e.range.start&&typeof e.range.start==`object`}function h0(e,t){if(!d0(e)||!t)return[];let n=e[t];return Array.isArray(n)?n.filter(m0).filter(e=>e.severity===1).slice(0,3):[]}function g0(e){let t=Al();return z(H,{get when(){return e.diagnostics.length>0},get children(){var n=b1();return K(n,z(Ge,{get each(){return e.diagnostics},children:e=>(()=>{var n=x1(),r=n.firstChild,i=r.nextSibling,a=i.firstChild.nextSibling,o=a.nextSibling.nextSibling;o.nextSibling;var s=i.nextSibling;return K(r,()=>t.t(`ui.messagePart.diagnostic.error`)),K(i,()=>e.range.start.line+1,a),K(i,()=>e.range.start.character+1,o),K(s,()=>e.message),n})()})),n}})}function _0(e,t){if(!e)return``;if(!t||t===`/`||t===`\\`)return e;if(e===t)return``;let n=t.includes(`\\`)?`\\`:`/`,r=t.endsWith(n)?t:t+n;return e.startsWith(r)?e.slice(t.length):e}function v0(e){let t=JA();return _0(sG(e),t.directory)}function y0(e,t){return t?e.t(`ui.tool.agent`,{type:t}):e.t(`ui.tool.agent.default`)}var b0={ask:`var(--icon-agent-ask-base)`,build:`var(--icon-agent-build-base)`,docs:`var(--icon-agent-docs-base)`,plan:`var(--icon-agent-plan-base)`},x0={build:`var(--v2-agent-build-solid)`,explore:`var(--v2-agent-explore-solid)`,plan:`var(--v2-agent-plan-solid)`,review:`var(--v2-agent-review-solid)`,writer:`var(--v2-agent-writer-solid)`},S0={primary:`var(--text-interactive-base)`,secondary:`var(--text-base)`,accent:`var(--icon-info-base)`,success:`var(--icon-success-base)`,warning:`var(--icon-warning-base)`,error:`var(--icon-critical-base)`,info:`var(--icon-info-base)`},C0={primary:`var(--v2-text-text-accent)`,secondary:`var(--v2-text-text-muted)`,accent:`var(--v2-icon-icon-accent)`,success:`var(--v2-state-fg-success)`,warning:`var(--v2-state-fg-warning)`,error:`var(--v2-state-fg-danger)`,info:`var(--v2-state-fg-info)`},w0=[`var(--icon-agent-ask-base)`,`var(--icon-agent-build-base)`,`var(--icon-agent-docs-base)`,`var(--icon-agent-plan-base)`,`var(--syntax-info)`,`var(--syntax-success)`,`var(--syntax-warning)`,`var(--syntax-property)`,`var(--syntax-constant)`,`var(--text-diff-add-base)`,`var(--text-diff-delete-base)`,`var(--icon-warning-base)`];function T0(e){let t=0;for(let n of e)t=t*31+n.charCodeAt(0)>>>0;return w0[t%w0.length]}function E0(e,t){if(typeof e!=`string`||!e)return{};let n=e.toLowerCase(),r=t?.find(t=>t.name===e||t.name.toLowerCase()===n),i=r?.color?void 0:x0[n],a=D0(r?.color,S0)??b0[n]??T0(n),o=D0(r?.color,C0)??i??a;return{name:r?.name??`${e[0].toUpperCase()}${e.slice(1)}`,color:a,v2Color:o}}function D0(e,t){if(e)return t[e]??e}function O0(e,t){let n=e===`parallel`?`Parallel`:e===`exa`?`Exa`:e===`firecrawl`?`Firecrawl`:e===`tavily`?`Tavily`:void 0;return n?t.t(`ui.tool.websearch.provider`,{provider:n}):t.t(`ui.tool.websearch`)}function k0(e){if(typeof e.path==`string`)return e.path}function A0(e){let t=k0(e);if(t&&/\.(png|jpe?g|gif|webp|svg|avif|bmp|ico)$/i.test(t))return t.replaceAll(`\\`,`/`)}function j0(e,t){if(typeof t?.name==`string`)return t.name;if(typeof e.id==`string`)return e.id;if(typeof e.name==`string`)return e.name}function M0(e,t={},n={}){let r=Al();switch(e){case`read`:{let e=k0(t);return{icon:`glasses`,title:r.t(`ui.tool.read`),subtitle:e?oG(e):void 0}}case`list`:return{icon:`bullet-list`,title:r.t(`ui.tool.list`),subtitle:typeof t.path==`string`?oG(t.path):void 0};case`glob`:return{icon:`magnifying-glass-menu`,title:r.t(`ui.tool.glob`),subtitle:typeof t.pattern==`string`?t.pattern:void 0};case`grep`:return{icon:`magnifying-glass-menu`,title:r.t(`ui.tool.grep`),subtitle:typeof t.pattern==`string`?t.pattern:void 0};case`webfetch`:return{icon:`window-cursor`,title:r.t(`ui.tool.webfetch`),subtitle:typeof t.url==`string`?t.url:void 0};case`websearch`:return{icon:`window-cursor`,title:O0(n?.provider,r),subtitle:typeof t.query==`string`?t.query:void 0};case`subagent`:{let e=t.agent;return{icon:`task`,title:y0(r,typeof e==`string`&&e?e[0].toUpperCase()+e.slice(1):void 0),subtitle:typeof t.description==`string`?t.description:void 0}}case`shell`:return{icon:`console`,title:r.t(`ui.tool.shell`),subtitle:typeof t.command==`string`?t.command:void 0};case`execute`:return{icon:`console`,title:r.t(`ui.tool.execute`),subtitle:typeof t.code==`string`?t.code:void 0};case`edit`:return{icon:`code-lines`,title:r.t(`ui.messagePart.title.edit`),subtitle:typeof t.path==`string`?oG(t.path):void 0};case`write`:return{icon:`code-lines`,title:r.t(`ui.messagePart.title.write`),subtitle:typeof t.path==`string`?oG(t.path):void 0};case`patch`:return{icon:`code-lines`,title:r.t(`ui.tool.patch`),subtitle:Array.isArray(t.files)&&t.files.length?`${t.files.length} ${r.plural(`ui.common.file`,t.files.length)}`:void 0};case`todowrite`:return{icon:`checklist`,title:r.t(`ui.tool.todos`)};case`question`:return{icon:`bubble-5`,title:r.t(`ui.tool.questions`)};case`skill`:return{icon:`brain`,title:j0(t,n)||r.t(`ui.tool.skill`)};default:return{icon:`mcp`,title:e}}}function N0(e){if(!e)return[];let t=new Set;return[...e.matchAll(/https?:\/\/[^\s<>"'`)\]]+/g)].map(e=>e[0].replace(/[),.;:!?]+$/g,``)).filter(e=>!t.has(e)&&(t.add(e),!0))}function P0(e,t){if(e)return t?.(e)}function F0(e,t,n){if(!t)return;let r=typeof e.description==`string`?e.description:``;return(n??[]).filter(e=>e.parentID===t&&!e.time?.archived).filter(e=>!r||e.title?.startsWith(r)).sort((e,t)=>(t.time.created??0)-(e.time.created??0))[0]?.id}function I0(e){let t=Al(),[n,r]=A(!1),i,a=N(()=>N0(e.output)),o=N(()=>{let e=a();return n()||e.length<=10?e:e.slice(0,10)}),s=N(()=>Math.max(0,a().length-10)),c=e=>{e.stopPropagation(),r(!0),requestAnimationFrame(()=>{i?.focus()})};return z(H,{get when(){return a().length>0},get children(){var e=C1(),r=e.firstChild;return K(r,z(Ge,{get each(){return o()},children:(e,t)=>(()=>{var n=w1(),r=n.firstChild;return n.$$click=e=>e.stopPropagation(),_t(e=>{t()===10&&(i=e)},n),G(n,`href`,e),K(r,e),K(n,z(X,{name:`outline-square-arrow`,class:`webfetch-link-icon`}),null),n})()}),null),K(r,z(H,{get when(){return U(()=>!n())()&&s()>0},get children(){var e=S1();return e.$$click=c,K(e,()=>t.plural(`ui.common.moreCount`,s())),e}}),null),e}})}function L0(e){let t=Al(),n=N(()=>e.parts.filter(e=>e.type===`tool`)),r=N(()=>e.busy||n().some(e=>e.state.status===`streaming`||e.state.status===`running`)),i=N(()=>[...e.parts.reduce((e,n)=>{if(n.type!==`tool`&&n.type!==`shell`)return e;let r=n.type===`tool`?n.name===`skill`?t.t(`ui.tool.skill`):n.name===`subagent`?t.t(`ui.tool.agent.default`):M0(n.name,Sz(n),Cz(n)).title:t.t(`ui.tool.shell`);return e.set(r,(e.get(r)??0)+1),e},new Map)].map(([e,t])=>`${t} ${e}`).join(`, `)),a=N(()=>{let n=e.parts.filter(e=>e.type===`reasoning`).length;if(!i()&&!n){let e=t.t(`ui.messagePart.context.details`);return{text:e,title:e,before:``,after:``}}let r=i()||t.plural(`ui.messagePart.context.thought`,n),a=t.t(`ui.messagePart.tools.used`,{tools:r}),o=a.indexOf(r);return{text:a,title:r,before:a.slice(0,o).trim(),after:a.slice(o+r.length).trim()}}),o=N(()=>e.parts.reduce((e,t)=>{if(t.type!==`tool`)return e.push(t),e;let n=e.at(-1);return t.name===`patch`&&t.state.status!==`error`&&Array.isArray(n)&&n?.[0]?.name===`patch`&&n[0].state.status!==`error`||t.name===`skill`&&t.state.status!==`error`&&j0(Sz(t),Cz(t))&&Array.isArray(n)&&n?.[0]?.name===`skill`&&n[0].state.status!==`error`&&j0(Sz(n[0]),Cz(n[0]))?(n.push(t),e):(e.push([t]),e)},[])),s=N(()=>{let t=new Map;return o().forEach(n=>{if(!Array.isArray(n)||n[0]?.name!==`patch`||n[0].state.status===`error`)return;let r=e.patchGroupKey?.(n)??n[0].id;n.forEach(e=>t.set(e,r))}),t}),c=t=>{e.onOpenChange(t),e.onSizeChange?.()};return(()=>{var n=E1();return K(n,z(bQ,{icon:`glasses`,get status(){return r()?`running`:`completed`},compact:!0,hasContent:!0,allowOpenWhilePending:!0,get open(){return e.open},onOpenChange:c,get trigger(){return(()=>{var e=D1(),t=e.firstChild,n=t.firstChild;return K(t,z(H,{get when(){return a().before},children:e=>(()=>{var t=O1();return K(t,e),t})()}),n),K(n,()=>a().title),K(t,z(H,{get when(){return a().after},children:e=>(()=>{var t=O1();return K(t,e),t})()}),null),j(()=>G(e,`aria-label`,a().text)),e})()},get children(){var n=T1();return K(n,z(Ke,{get each(){return o()},children:n=>{let r=N(()=>{let e=n();return Array.isArray(e)?e:void 0}),i=N(()=>{let e=n();return!Array.isArray(e)&&e.type===`reasoning`?e:void 0}),a=N(()=>{let e=n();return!Array.isArray(e)&&(e.type===`notice`||e.type===`shell`)?e:void 0});return z(H,{get when(){return r()},get fallback(){return z(H,{get when(){return i()},get fallback(){return z(H,{get when(){return a()},children:e=>(()=>{var t=k1();return K(t,()=>e().render()),t})()})},children:t=>(()=>{var n=k1();return K(n,z(o$,{get id(){return t().id},get content(){return t()},get streaming(){return t().streaming??!1},get defaultOpen(){return e.reasoningDefaultOpen},get open(){return e.reasoningOpen?.(t().id)},onOpenChange:n=>e.onReasoningOpenChange?.(t().id,n),get onContentRendered(){return e.onSizeChange}})),n})()})},children:n=>{let r=N(()=>n()[0]),i=N(()=>B0(r(),t)),a=N(()=>n().flatMap(e=>{let t=j0(Sz(e),Cz(e));return t?[t]:[]})),o=`__OPENCODE_LOADED_SKILL__`,c=N(()=>t.plural(`ui.tool.loadedSkills`,a().length,{name:o}));return(()=>{var l=k1();return K(l,z(H,{get when(){return U(()=>!(r().state.status===`error`||![`read`,`glob`,`grep`,`list`].includes(r().name)||r().name===`read`&&A0(Sz(r()))))()&&!kz(r())},get fallback(){return z(H,{get when(){return U(()=>r().name===`skill`&&n().length>1)()&&a().length===n().length},get fallback(){return z(H,{get when(){return U(()=>r().name===`patch`)()&&r().state.status!==`error`},get fallback(){return z(q0,{get id(){return r().id},get tool(){return r().name},get input(){return Sz(r())},get metadata(){return Cz(r())},get output(){return wz(r())},get error(){return Tz(r())},get status(){return r().state.status},get defaultOpen(){return e.toolDefaultOpen?.(r())??!1},get open(){return e.toolOpen?.(r().id)??e.toolDefaultOpen?.(r())},onOpenChange:t=>e.onToolOpenChange?.(r().id,t),deferContent:!0,virtualizeDiff:!1,get onContentRendered(){return e.onSizeChange}})},get children(){return z(R0,{get tools(){return n()},get fileOpen(){return e.fileOpen&&(t=>e.fileOpen?.(`${s().get(r())}:${t}`))},get onFileOpenChange(){return e.onFileOpenChange&&((t,n)=>e.onFileOpenChange?.(`${s().get(r())}:${t}`,n))},get onSizeChange(){return e.onSizeChange}})}})},get children(){var e=j1(),r=e.firstChild,i=r.nextSibling;return K(r,()=>c().split(o)[0]?.trim()),K(i,z(Ge,{get each(){return a()},children:(e,t)=>[z(H,{get when(){return t()>0},children:`, `}),z(jG,{as:`span`,text:e,get active(){return[`streaming`,`running`].includes(n()[t()].state.status)}})]})),K(e,z(H,{get when(){return c().split(o)[1]?.trim()},children:e=>(()=>{var t=M1();return K(t,e),t})()}),null),j(r=>{var i=n().map(e=>e.id).join(`,`),o=t.plural(`ui.tool.loadedSkills`,a().length,{name:a().join(`, `)});return i!==r.e&&G(e,`data-timeline-part-ids`,r.e=i),o!==r.t&&G(e,`aria-label`,r.t=o),r},{e:void 0,t:void 0}),e}})},get children(){var e=A1(),t=e.firstChild.firstChild.firstChild,n=t.firstChild,a=n.firstChild;return K(a,z(jG,{get text(){return i().title},get active(){return r().state.status===`streaming`||r().state.status===`running`}})),K(n,z(H,{get when(){return i().subtitle},children:e=>(()=>{var t=N1();return K(t,e),t})()}),null),K(n,z(Ge,{get each(){return i().args},children:e=>(()=>{var t=P1();return K(t,e),t})()}),null),K(t,z(H,{get when(){return i().matches},children:e=>[F1(),(()=>{var t=I1();return K(t,e),t})()]}),null),e}})),l})()}})}})),n}})),j(()=>G(n,`data-timeline-part-ids`,e.parts.map(e=>e.id).join(`,`))),n})()}function R0(e){let t=N(t=>{let n=e.tools.flatMap(e=>{let t=Cz(e).files;return Array.isArray(t)?t.map((t,n)=>({key:`${e.id}:${n}`,toolID:e.id,value:t})):[]}),r=new Map(n.map(e=>[e.key,e.value])),i=new Set(t.map(e=>e.key)),a=new Set(e.tools.map(e=>e.id)),o=[...t.filter(e=>a.has(e.toolID)).map(e=>{if(!r.has(e.key))return e;let t=r.get(e.key);return z0(t,e.value)?e:{...e,value:t}}),...n.filter(e=>!i.has(e.key))];return o.length===t.length&&o.every((e,n)=>e===t[n])?t:o},[]),n=N(()=>({files:t().map(e=>e.value)})),r=N(()=>e.tools.some(e=>e.state.status===`streaming`||e.state.status===`running`)),i=W0.render(`patch`)??CQ,a=N(()=>e.tools[0]?.name===`edit`?`edit`:`patch`);return(()=>{var t=L1();return K(t,z(Pt,{component:i,get tool(){return a()},input:{},get metadata(){return n()},get status(){return r()?`running`:`completed`},get fileOpen(){return e.fileOpen},get onFileOpenChange(){return e.onFileOpenChange},deferContent:!0,virtualizeDiff:!1,get onContentRendered(){return e.onSizeChange}})),j(n=>{var r=e.tools.length===1?e.tools[0]?.id:void 0,i=e.tools.length>1?e.tools.map(e=>e.id).join(`,`):void 0;return r!==n.e&&G(t,`data-timeline-part-id`,n.e=r),i!==n.t&&G(t,`data-timeline-part-ids`,n.t=i),n},{e:void 0,t:void 0}),t})()}function z0(e,t){return e===t?!0:!d0(e)||!d0(t)?!1:e.file===t.file&&e.patch===t.patch&&e.additions===t.additions&&e.deletions===t.deletions&&e.status===t.status}function B0(e,t){let n=Sz(e),r=Cz(e),i=typeof n.path==`string`?n.path:`/`,a=typeof n.pattern==`string`?n.pattern:void 0,o=typeof n.include==`string`?n.include:void 0,s=e.name===`glob`?r.count:e.name===`grep`?r.matches:void 0,c=typeof s==`number`&&Number.isFinite(s)&&s!==0?t.plural(`ui.messagePart.context.match`,s):void 0;if(e.name===`read`){let e=[...typeof n.offset==`number`?[`offset=${n.offset}`]:[],...typeof n.limit==`number`?[`limit=${n.limit}`]:[]];return{title:t.t(`ui.tool.read`),subtitle:oG(i),args:e,matches:void 0}}return e.name===`list`?{title:t.t(`ui.tool.list`),subtitle:v0(i),args:[],matches:void 0}:e.name===`glob`?{title:t.t(`ui.tool.glob`),subtitle:v0(i),args:a?[`pattern=${a}`]:[],matches:c}:{title:t.t(`ui.tool.grep`),subtitle:v0(i),args:[...a?[`pattern=${a}`]:[],...o?[`include=${o}`]:[]],matches:c}}var V0={};function H0(e){return V0[e.name]=e,e}function U0(e){return V0[e]?.render}var W0={register:H0,render:U0};function G0(e){let t=Al();return z(bQ,B(e,{open:!0,onOpenChange:void 0,locked:!0,icon:`code-lines`,defer:!1,rail:!1,get trigger(){return{title:e.title,subtitle:e.count>0?`${e.count} ${t.plural(`ui.common.file`,e.count)}`:``}},get children(){return e.children}}))}function K0(e){let t=N(()=>e.path||`tool-file`),[n,r]=A(e.defaultOpen??!1),[i,a]=A(!1),o=()=>e.open??n(),s=t=>{e.open===void 0&&r(t),e.onOpenChange?.(t)};return M(()=>{e.forceOpen&&!o()&&s(!0)}),M(()=>{if(!o()){a(!1);return}let e=requestAnimationFrame(()=>a(!0));F(()=>cancelAnimationFrame(e))}),z(T$,{multiple:!0,"data-scope":`apply-patch`,style:{"--sticky-accordion-offset":`calc(32px + var(--tool-content-gap))`},get value(){return U(()=>!!o())()?[t()]:[]},onChange:e=>s(e.includes(t())),get children(){return z(T$.Item,{get value(){return t()},get children(){return[z(E$,{get children(){return z(T$.Trigger,{get children(){var t=z1(),n=t.firstChild,r=n.firstChild,i=r.firstChild,a=n.nextSibling;return K(n,z(gG,{get node(){return{path:e.path,type:`file`}}}),r),K(r,z(H,{get when(){return e.path.includes(`/`)},get children(){var t=R1();return K(t,()=>`\u202A${v0(e.path)}\u202C`),t}}),i),K(i,()=>oG(e.path)),K(a,()=>e.actions,null),K(a,z(X,{name:`chevron-grabber-vertical`,size:`small`}),null),t}})}}),z(T$.Content,{get children(){return z(H,{get when(){return!e.defer||i()},get children(){return e.children}})}})]}})}})}function q0(e){let t=JA(),n=Al();if(e.tool===`todowrite`)return null;let r=()=>e.tool===`question`&&(e.status===`streaming`||e.status===`running`),i=N(()=>{if(e.tool!==`subagent`)return;let t=e.metadata.sessionID;if(typeof t==`string`&&t)return t}),a=N(()=>P0(i(),t.sessionHref)),o=N(()=>{if(e.tool!==`subagent`)return;let t=e.input.description;return typeof t==`string`&&t?t:i()}),s=N(()=>J0(e,n)),c=N(()=>Y0(e,n.t(`ui.toolErrorCard.failed`))),l=N(()=>W0.render(e.tool)??CQ);return z(H,{get when(){return!r()},get children(){var r=L1();return K(r,z(qe,{get children(){return[z(Je,{get when(){return c()},children:r=>{let c=r().replace(`Error: `,``);return e.tool===`question`&&c.includes(`dismissed this question`)?(()=>{var e=B1(),t=e.firstChild;return K(t,()=>n.t(`ui.messagePart.questions.dismissed`)),e})():z(M$,{get tool(){return e.tool},get error(){return r()},get title(){return U(()=>e.tool===`websearch`)()?O0(e.metadata.provider,n):void 0},get defaultOpen(){return e.defaultOpen},get open(){return e.open},get onOpenChange(){return e.onOpenChange},get subtitle(){return o()??s()},get href(){return a()},onSubtitleClick:e=>{if(!t.navigateToSession||e.button!==0||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;let n=i();n&&(e.preventDefault(),t.navigateToSession(n))}})}}),z(Je,{when:!0,get children(){return z(Pt,B({get component(){return l()}},e))}})]}})),j(()=>G(r,`data-timeline-part-id`,e.id)),r}})}function J0(e,t){let n=e=>typeof e==`string`&&e?e:void 0;if(e.tool===`shell`)return n(e.input.command)??n(e.metadata.command);if(e.tool===`execute`)return n(e.input.code);if(e.tool===`read`)return oG(k0(e.input)??``);if(e.tool===`edit`||e.tool===`write`)return oG(n(e.input.path)??``);if(e.tool===`list`||e.tool===`glob`||e.tool===`grep`)return v0(n(e.input.path)??`/`);if(e.tool===`webfetch`)return n(e.input.url);if(e.tool===`websearch`)return n(e.input.query);if(e.tool===`skill`)return j0(e.input,e.metadata);if(e.tool===`patch`){let n=new Set(Array.isArray(e.metadata.files)?e.metadata.files.filter(d1).map(e=>e.file):[]).size;return n===0?void 0:`${n} ${t.plural(`ui.common.file`,n)}`}if(e.tool===`question`){let n=Array.isArray(e.input.questions)?e.input.questions.filter(f0).length:0;return n===0?void 0:`${n} ${t.plural(`ui.common.question`,n)}`}}function Y0(e,t){if(e.status===`error`)return e.error;if(e.tool===`execute`&&Oz(e.metadata))return typeof e.output==`string`&&e.output?e.output:t}W0.register({name:`read`,render(e){let t=JA(),n=Al(),r=N(()=>e.status===`completed`?A0(e.input):void 0),i=[];typeof e.input.offset==`number`&&i.push(`offset=`+e.input.offset),typeof e.input.limit==`number`&&i.push(`limit=`+e.input.limit);let a=N(()=>{if(e.status!==`completed`)return[];let t=e.metadata.loaded;return!t||!Array.isArray(t)?[]:t.filter(e=>typeof e==`string`)}),o=N(()=>a().map(e=>{let n=_0(e,t.directory);return n===e?n:n.replace(/^[/\\]/,``)})),s=`__OPENCODE_LOADED_PATH__`,c=N(()=>n.t(`ui.tool.loadedFile`,{path:s}).split(s));return[z(bQ,B(e,{icon:`glasses`,get hasContent(){return!!r()},defer:!0,onOpenChange:t=>{e.onOpenChange?.(t),e.onContentRendered?.()},get trigger(){return{title:n.t(`ui.tool.read`),subtitle:oG(k0(e.input)??``),args:i}},get children(){return z(H,{get when(){return r()},keyed:!0,children:t=>z(X0,{path:t,get onContentRendered(){return e.onContentRendered}})})}})),z(H,{get when(){return o().length>0},get children(){var e=j1(),t=e.firstChild,r=t.nextSibling;return K(t,()=>c()[0]?.trim()),K(r,()=>o().join(`, `)),K(e,z(H,{get when(){return c()[1]?.trim()},children:e=>(()=>{var t=M1();return K(t,e),t})()}),null),j(()=>G(e,`aria-label`,n.t(`ui.tool.loadedFile`,{path:o().join(`, `)}))),e}})]}});function X0(e){let t=CW(),n;return M(()=>{if(!t?.readImage)return;let e=YU(t.readImage);e.update(n),F(()=>e.dispose())}),oe(()=>e.onContentRendered?.()),(()=>{var t=V1(),r=t.firstChild,i=n;return typeof i==`function`?_t(i,t):n=t,r.addEventListener(`error`,()=>e.onContentRendered?.()),r.addEventListener(`load`,()=>e.onContentRendered?.()),j(t=>{var n=e.path,i=oG(e.path);return n!==t.e&&G(r,`data-local-image`,t.e=n),i!==t.t&&G(r,`alt`,t.t=i),t},{e:void 0,t:void 0}),t})()}W0.register({name:`list`,render(e){let t=Al();return z(bQ,B(e,{icon:`bullet-list`,get trigger(){return{title:t.t(`ui.tool.list`),subtitle:v0(typeof e.input.path==`string`?e.input.path:`/`)}},get children(){return z(H,{get when(){return e.output},get children(){var n=H1();return K(n,z(YW,{get text(){return e.output}})),j(()=>G(n,`aria-label`,t.t(`ui.scrollView.ariaLabel`))),n}})}}))}}),W0.register({name:`glob`,render(e){let t=Al();return z(bQ,B(e,{icon:`magnifying-glass-menu`,get trigger(){return{title:t.t(`ui.tool.glob`),subtitle:v0(typeof e.input.path==`string`?e.input.path:`/`),args:typeof e.input.pattern==`string`?[`pattern=`+e.input.pattern]:[]}},get children(){return z(H,{get when(){return e.output},get children(){var n=H1();return K(n,z(YW,{get text(){return e.output}})),j(()=>G(n,`aria-label`,t.t(`ui.scrollView.ariaLabel`))),n}})}}))}}),W0.register({name:`grep`,render(e){let t=Al(),n=[];return typeof e.input.pattern==`string`&&n.push(`pattern=`+e.input.pattern),typeof e.input.include==`string`&&n.push(`include=`+e.input.include),z(bQ,B(e,{icon:`magnifying-glass-menu`,get trigger(){return{title:t.t(`ui.tool.grep`),subtitle:v0(typeof e.input.path==`string`?e.input.path:`/`),args:n}},get children(){return z(H,{get when(){return e.output},get children(){var n=H1();return K(n,z(YW,{get text(){return e.output}})),j(()=>G(n,`aria-label`,t.t(`ui.scrollView.ariaLabel`))),n}})}}))}}),W0.register({name:`webfetch`,render(e){let t=Al(),n=N(()=>e.status===`streaming`||e.status===`running`),r=N(()=>{let t=e.input.url;return typeof t==`string`?t:``});return z(bQ,B(e,{hideDetails:!0,icon:`window-cursor`,get trigger(){return(()=>{var e=W1(),i=e.firstChild,a=i.firstChild;return K(a,z(jG,{get text(){return t.t(`ui.tool.webfetch`)},get active(){return n()}})),K(i,z(H,{get when(){return U(()=>!n())()&&r()},get children(){var e=U1(),t=e.firstChild;return e.$$click=e=>e.stopPropagation(),K(t,r),K(e,z(X,{name:`outline-square-arrow`,class:`webfetch-link-icon`}),null),j(()=>G(e,`href`,r())),e}}),null),e})()}}))}}),W0.register({name:`websearch`,render(e){let t=Al(),n=N(()=>{let t=e.input.query;return typeof t==`string`?t:``}),r=N(()=>O0(e.metadata.provider,t));return z(bQ,B(e,{icon:`window-cursor`,get trigger(){return{title:r(),subtitle:n(),subtitleClass:`exa-tool-query`}},get children(){return z(I0,{get output(){return e.output}})}}))}}),W0.register({name:`subagent`,render(e){let t=JA(),n=Al(),r=()=>e.status===`streaming`,i=N(()=>{let n=e.metadata.sessionID;return typeof n==`string`&&n?n:F0(e.input,t.sessionID,t.store.session)}),a=N(()=>E0(e.input.agent,t.store.agent)),o=N(()=>a().name??n.t(`ui.tool.agent.default`)),s=N(()=>a().color),c=N(()=>a().v2Color),l=N(()=>e.metadata.background===!0||e.status===`completed`&&e.metadata.status===`running`),u=N(()=>{let t=typeof e.input.description==`string`&&e.input.description?e.input.description:i();return t&&(l()?`${t} (background)`:t)}),d=N(()=>{if(e.status===`streaming`||e.status===`running`)return!0;let n=i();return n?(t.store.session_status[n]?.type??`idle`)!==`idle`:!1}),f=N(()=>P0(i(),t.sessionHref)),p=N(()=>!!(i()&&(t.navigateToSession||f()))),m=()=>{let e=i();e&&t.navigateToSession?.(e)},h=e=>{t.navigateToSession&&(e.button!==0||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.preventDefault(),m()))},g=e=>{p()&&!f()&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),m())},_=()=>(()=>{var e=q1(),t=e.firstChild.firstChild,n=t.firstChild,r=n.firstChild;return K(n,z(H,{get when(){return d()},get fallback(){return(()=>{var e=J1();return K(e,z(X,{name:`subagent`,size:`small`})),e})()},get children(){var e=G1();return K(e,z(v1,{get style(){return{color:c()??`light-dark(var(--v2-text-text-base), #ffffff)`}}})),j(t=>ht(e,`color`,s()??`var(--icon-interactive-base)`)),e}}),r),K(r,o),K(n,z(H,{get when(){return u()},get children(){var e=N1();return K(e,u),e}}),null),K(t,z(H,{get when(){return p()},get children(){var e=K1();return K(e,z(X,{name:`chevron-right`,size:`normal`})),e}}),null),j(t=>{var n=c(),r=s();return n!==t.e&&ht(e,`--task-agent-color`,t.e=n),r!==t.t&&ht(e,`--task-agent-color-fallback`,t.t=r),t},{e:void 0,t:void 0}),e})();return z(H,{get when(){return r()},get fallback(){return z(bQ,{icon:`task`,get status(){return e.status},get trigger(){return _()},hideDetails:!0,triggerAsLink:!0,get triggerHref(){return f()},get clickable(){return p()},onTriggerClick:h,onTriggerKeyDown:g})},get children(){var e=Y1();return K(e,z(X,{name:`subagent`,size:`small`,class:`shrink-0 text-v2-icon-icon-faint`}),null),K(e,z(jG,{get text(){return n.t(`ui.tool.agent.delegating`)},class:`min-w-0 truncate`}),null),e}})}});function Z0(e){let t=Al(),[n,r]=A(!1),i=async()=>{e.copy&&await KQ(e.copy)&&(r(!0),setTimeout(()=>r(!1),2e3))};return(()=>{var r=X1(),a=r.firstChild,o=a.nextSibling,s=o.firstChild.firstChild;return K(a,z(Sl,{get value(){return U(()=>!!n())()?t.t(`ui.message.copied`):t.t(`ui.message.copy`)},placement:`top`,get children(){return z(Lo,{get icon(){return z(X,{get name(){return n()?`check`:`outline-copy`},size:`small`})},size:`normal`,variant:`ghost-muted`,onMouseDown:e=>e.preventDefault(),onClick:i,get"aria-label"(){return U(()=>!!n())()?t.t(`ui.message.copied`):t.t(`ui.message.copy`)}})}})),K(s,()=>e.children),j(n=>{var i=e.variant,a=t.t(`ui.scrollView.ariaLabel`);return i!==n.e&&G(r,`data-variant`,n.e=i),a!==n.t&&G(o,`aria-label`,n.t=a),n},{e:void 0,t:void 0}),r})()}W0.register({name:`execute`,render(e){let t=Al(),n=()=>e.status===`streaming`||e.status===`running`,r=N(()=>typeof e.input.code==`string`?e.input.code:``),i=N(()=>l$(e.output??``).replace(/\r\n?/g,`
791
793
  `)),a=n();return z(bQ,B(e,{icon:`console`,rail:!1,compact:!0,allowOpenWhilePending:!0,trigger:e=>(()=>{var i=W1(),o=i.firstChild,s=o.firstChild;return K(s,z(jG,{get text(){return t.t(`ui.tool.execute`)},get active(){return n()}})),K(o,z(H,{get when(){return U(()=>!e())()&&r()},get children(){return z(u0,{get text(){return r().split(`
792
794
  `)[0]},animate:a})}}),null),i})(),get children(){return z(Z0,{get copy(){return r()},variant:`shell`,get children(){return[(()=>{var e=Z1();return K(e,r),e})(),z(H,{get when(){return i()},children:e=>(()=>{var t=Q1();return K(t,e),t})()})]}})}}))}}),W0.register({name:`shell`,render(e){let t=Al(),n=JA(),r=()=>e.status===`streaming`,i=()=>r()||e.status===`running`||typeof e.metadata.shellID==`string`&&n.shellRunning?.(e.metadata.shellID)===!0,a=r(),[o,s]=A(``),c=N(()=>e.metadata.status===`exited`||e.metadata.status===`timeout`||e.metadata.status===`killed`?e.output:void 0);M(()=>{if(c()!==void 0)return;let t=e.metadata.shellID,r=n.shellOutput;if(typeof t!=`string`||!r)return;let a=n.directory,o=i(),l=0,u=!1,d=!1,f=async()=>{if(!u){u=!0;do{let e=await r({id:t,location:{directory:a},cursor:l}).catch(()=>void 0);if(d||!e||(s(t=>l===0?e.data.output:t+e.data.output),e.data.cursor<=l)||(l=e.data.cursor,o||l>=e.data.size))break}while(!d);u=!1}};f();let p=o?setInterval(()=>void f(),1e3):void 0;F(()=>{d=!0,clearInterval(p)})});let l=()=>typeof e.input.command==`string`?e.input.command:typeof e.metadata.command==`string`?e.metadata.command:``,u=N(()=>l$(c()??(typeof e.metadata.shellID==`string`&&o()||e.output||``)).replace(/\r\n?/g,`
793
- `));return z(bQ,B(e,{icon:`console`,rail:!1,compact:!0,allowOpenWhilePending:!0,trigger:e=>(()=>{var n=W1(),o=n.firstChild,s=o.firstChild;return K(s,z(jG,{get text(){return t.t(`ui.tool.shell`)},get active(){return i()}})),K(o,z(H,{get when(){return!e()},get children(){return z(H,{get when(){return l()},get fallback(){return z(H,{get when(){return r()},get children(){var e=N1();return K(e,()=>t.t(`ui.tool.shell.writingCommand`)),e}})},children:e=>z(u0,{get text(){return e()},animate:a})})}}),null),n})(),get children(){return z(Z0,{get copy(){return l()},variant:`shell`,get children(){return[(()=>{var e=Z1();return K(e,l),e})(),z(H,{get when(){return u()},children:e=>(()=>{var t=Q1();return K(t,e),t})()})]}})}}))}});function Q0(e){let t=Al(),n=W0.render(`shell`)??CQ,r=N(()=>{let n=e.message;if(n.status===`timeout`)return t.t(`ui.tool.shell.timeout`);if(n.status===`killed`)return t.t(`ui.tool.shell.cancelled`);if(n.status===`exited`&&n.exit!==void 0&&n.exit!==0)return t.t(`ui.tool.shell.exit`,{code:n.exit})});return(()=>{var t=$1();return K(t,z(Pt,{component:n,tool:`shell`,get input(){return{command:e.message.command}},get metadata(){return{shellID:e.message.shellID,status:e.message.status,exit:e.message.exit,truncated:e.message.output?.truncated}},get output(){return e.message.output?.output},get status(){return e.message.status===`running`?`running`:`completed`},get defaultOpen(){return e.defaultOpen},get open(){return e.open},get onOpenChange(){return e.onOpenChange}}),null),K(t,z(H,{get when(){return r()},children:t=>z(M$,{tool:`shell`,get error(){return t()},get subtitle(){return e.message.command}})}),null),j(()=>G(t,`data-timeline-part-id`,e.message.id)),t})()}W0.register({name:`edit`,render(e){let t=Al(),n=pf(),r=()=>typeof e.input.path==`string`?e.input.path:``,i=N(()=>{let t=e.metadata.files;if(Array.isArray(t))return t.find(d1)}),a=N(()=>h0(e.metadata.diagnostics,r())),o=N(()=>{let e=i();return typeof e?.file==`string`?e.file:r()}),s=()=>e.status===`streaming`||e.status===`running`,c=N(()=>{let e=i();if(e)return{file:typeof e.file==`string`?e.file:r(),patch:typeof e.patch==`string`?e.patch:void 0}},void 0,{equals:(e,t)=>e?.file===t?.file&&e?.patch===t?.patch}),l=N(()=>{try{let e=c();if(e){let t=r1(e);if(t)return{fileDiff:t,hunkSeparators:t.isPartial?`simple`:`line-info-basic`}}}catch{}return{before:{name:o(),contents:typeof e.input.oldString==`string`?e.input.oldString:``},after:{name:o(),contents:typeof e.input.newString==`string`?e.input.newString:``}}});return(()=>{var r=t0();return K(r,z(G0,B(e,{get title(){return t.t(`ui.messagePart.title.edit`)},get count(){return+!!o()},get children(){return[z(H,{get when(){return o()},get children(){return z(K0,{get path(){return o()},get defaultOpen(){return e.defaultOpen},get open(){return e.open},get onOpenChange(){return e.onOpenChange},get forceOpen(){return e.forceOpen},get defer(){return e.deferContent!==!1},get actions(){return z(H,{get when(){return U(()=>!s())()?i():void 0},children:e=>z(P$,{appearance:`standard`,get changes(){return e()}})})},get children(){var t=e0();return K(t,z(Pt,B({component:n,mode:`diff`,get virtualize(){return e.virtualizeDiff},get onRendered(){return e.onContentRendered}},l))),t}})}}),z(g0,{get diagnostics(){return a()}})]}}))),r})()}}),W0.register({name:`write`,render(e){let t=Al(),n=pf(),r=N(()=>typeof e.input.path==`string`?e.input.path:``),i=N(()=>typeof e.input.content==`string`?e.input.content:``),a=N(()=>h0(e.metadata.diagnostics,r()));return(()=>{var o=r0();return K(o,z(G0,B(e,{get title(){return t.t(`ui.messagePart.title.write`)},get count(){return+!!r()},get children(){return[z(H,{get when(){return r()},get children(){return z(K0,{get path(){return r()},get defaultOpen(){return e.defaultOpen},get open(){return e.open},get onOpenChange(){return e.onOpenChange},get forceOpen(){return e.forceOpen},get defer(){return e.deferContent!==!1},get children(){var t=n0();return K(t,z(Pt,{component:n,mode:`text`,get file(){return{name:r(),contents:i(),cacheKey:mf(i())}},overflow:`scroll`,get onRendered(){return e.onContentRendered}})),t}})}}),z(g0,{get diagnostics(){return a()}})]}}))),o})()}}),W0.register({name:`patch`,render(e){let t=Al(),n=pf(),r=N(()=>m1(e.metadata.files)),[i,a]=A([]),o=N(()=>e.tool===`edit`?t.t(`ui.messagePart.title.edit`):t.t(`ui.tool.patch`)),s=N(()=>e.fileOpen?r().flatMap(t=>e.fileOpen?.(t.path)===!0?[t.path]:[]):i()),c=t=>{let n=Array.isArray(t)?t:t?[t]:[];if(!e.onFileOpenChange){a(n);return}r().forEach(t=>e.onFileOpenChange?.(t.path,n.includes(t.path)))};return(()=>{var i=i0();return K(i,z(G0,B(e,{get title(){return o()},get count(){return r().length},get children(){return z(H,{get when(){return r().length>0},get children(){return z(T$,{multiple:!0,"data-scope":`apply-patch`,style:{"--sticky-accordion-offset":`calc(32px + var(--tool-content-gap))`},get value(){return s()},onChange:c,get children(){return z(Ke,{get each(){return r()},children:r=>{let i=()=>r().path,a=N(()=>s().includes(i())),[o,c]=A(!1);return M(()=>{if(!a()){c(!1);return}requestAnimationFrame(()=>{a()&&c(!0)})}),z(T$.Item,{get value(){return i()},get"data-type"(){return r().type},get children(){return[z(E$,{get children(){return z(T$.Trigger,{get children(){var e=z1(),n=e.firstChild,i=n.firstChild,a=i.firstChild,o=n.nextSibling;return K(n,z(gG,{get node(){return{path:r().path,type:`file`}}}),i),K(i,z(H,{get when(){return r().path.includes(`/`)},get children(){var e=R1();return K(e,()=>`\u202A${v0(r().path)}\u202C`),e}}),a),K(a,()=>oG(r().path)),K(o,z(qe,{get children(){return[z(Je,{get when(){return r().type===`add`},get children(){var e=a0();return K(e,()=>t.t(`ui.patch.action.created`)),e}}),z(Je,{get when(){return r().type===`delete`},get children(){var e=o0();return K(e,()=>t.t(`ui.patch.action.deleted`)),e}}),z(Je,{when:!0,get children(){return z(P$,{appearance:`standard`,get changes(){return{additions:r().additions,deletions:r().deletions}}})}})]}}),null),K(o,z(X,{name:`chevron-grabber-vertical`,size:`small`}),null),e}})}}),z(T$.Content,{get children(){return z(H,{get when(){return e.deferContent===!1||o()},get children(){return z(Ge,{get each(){return r().views},children:t=>(()=>{var r=s0();return K(r,z(Pt,{component:n,mode:`diff`,get virtualize(){return e.virtualizeDiff},get fileDiff(){return t.fileDiff},get hunkSeparators(){return t.fileDiff.isPartial?`simple`:`line-info-basic`},get onRendered(){return e.onContentRendered}})),r})()})}})}})]}})}})}})}})}}))),i})()}}),W0.register({name:`question`,render(e){let t=Al(),n=N(()=>Array.isArray(e.input.questions)?e.input.questions.filter(f0):[]),r=N(()=>Array.isArray(e.metadata.answers)?e.metadata.answers.filter(p0):[]),i=N(()=>r().length>0),a=N(()=>{let e=n().length;return e===0?``:i()?t.t(`ui.question.subtitle.answered`,{count:e}):`${e} ${t.plural(`ui.common.question`,e)}`});return z(bQ,B(e,{get defaultOpen(){return i()},icon:`bubble-5`,get trigger(){return{title:t.t(`ui.tool.questions`),subtitle:a()}},get children(){return z(H,{get when(){return i()},get children(){var e=c0();return K(e,z(Ge,{get each(){return n()},children:(e,n)=>{let i=()=>r()[n()]??[];return(()=>{var n=l0(),r=n.firstChild,a=r.nextSibling;return K(r,()=>e.question),K(a,()=>i().join(`, `)||t.t(`ui.question.answer.none`)),n})()}})),e}})}}))}}),W0.register({name:`skill`,render(e){let t=Al(),n=N(()=>j0(e.input,e.metadata)),r=N(()=>e.status===`streaming`||e.status===`running`),i=`__OPENCODE_LOADED_SKILL__`,a=N(()=>t.t(`ui.tool.loadedSkill`,{name:i}).split(i));return z(H,{get when(){return n()},get fallback(){return z(jG,{get text(){return t.t(`ui.tool.skill`)},get active(){return r()}})},children:e=>(()=>{var n=j1(),i=n.firstChild,o=i.nextSibling;return K(i,()=>a()[0].trim()),K(o,z(jG,{as:`span`,get text(){return e()},get active(){return r()}})),K(n,z(H,{get when(){return a()[1]?.trim()},children:e=>(()=>{var t=M1();return K(t,e),t})()}),null),j(()=>G(n,`aria-label`,t.t(`ui.tool.loadedSkill`,{name:e()}))),n})()})}}),ct([`click`]);function $0(e){return z(n$,{get sessionID(){return e.sessionID},get message(){return e.message},get text(){return e.displayText??e.message.text},get comments(){return e.comments},get agent(){return e.historicalAgent},get model(){return e.historicalModel},get actions(){return e.actions}})}function e2(e){return z(qe,{get children(){return[z(Je,{get when(){return U(()=>e.content.type===`text`)()?e.content:void 0},children:t=>z(a$,{get id(){return e.contentID},get text(){return t().text},get message(){return e.message},get showCopy(){return e.showAssistantCopyPartID===e.contentID},get turnDurationMs(){return e.turnDurationMs}})}),z(Je,{get when(){return U(()=>e.content.type===`reasoning`)()?e.content:void 0},children:t=>z(o$,{get id(){return e.contentID},get content(){return t()},streaming:!1,get defaultOpen(){return e.reasoningDefaultOpen},get open(){return e.toolOpen},get onOpenChange(){return e.onToolOpenChange},get onContentRendered(){return e.onContentRendered}})}),z(Je,{get when(){return U(()=>e.content.type===`tool`)()?e.content:void 0},children:t=>z(q0,{get id(){return e.contentID},get tool(){return t().name},get input(){return Sz(t())},get metadata(){return Cz(t())},get output(){return wz(t())},get status(){return t().state.status},get error(){return Tz(t())},get defaultOpen(){return e.defaultOpen},get open(){return e.toolOpen},get onOpenChange(){return e.onToolOpenChange},deferContent:!0,virtualizeDiff:!1,get onContentRendered(){return e.onContentRendered}})})]}})}function t2(e){return z(L0,e)}function n2(e){return z(R0,{get tools(){return e.tools},get fileOpen(){return e.fileOpen},get onFileOpenChange(){return e.onFileOpenChange},get onSizeChange(){return e.onSizeChange}})}var r2=W(`<strong class=font-[530]>`),i2=W(`<div class="flex w-full min-w-0 items-center gap-2"><div class=min-w-0>`);function a2(e){let t=N(()=>{let t=e.message.indexOf(`:`);return t===-1?{detail:e.message}:{title:e.message.slice(0,t+1),detail:e.message.slice(t+1)}});return[z(H,{get when(){return t().title},children:e=>(()=>{var t=r2();return K(t,e),t})()}),U(()=>t().detail)]}function o2(e){return z(EQ,{variant:`error`,class:`error-card`,"data-kind":`session-error-card`,get children(){var t=i2(),n=t.firstChild;return K(t,z(X,{name:`outline-hexagonal-warning`,class:`shrink-0 text-v2-state-fg-danger`}),n),K(n,z(a2,{get message(){return e.message}})),t}})}var s2=W(`<div data-slot=session-turn-retry-message class="cursor-help truncate">`),c2=W(`<div class="flex w-full items-start gap-2"><div class="min-w-0 flex-1">`),l2=W(`<div data-slot=session-turn-retry class="w-full min-w-0">`),u2=W(`<div data-slot=session-turn-retry-info>`);function d2(e){let t=Al(),n=N(()=>{if(e.status.type===`retry`)return e.status}),[r,i]=A(0);M(ae(n,e=>{if(!e)return;let t=()=>{let e=n()?.next;e&&i(Math.round((e-Date.now())/1e3))};t();let r=setInterval(t,1e3);F(()=>clearInterval(r))}));let a=N(()=>{let e=n();return e?e.message.includes(`exceeded your current quota`)&&e.message.includes(`gemini`)?t.t(`ui.sessionTurn.retry.geminiHot`):e.message.length>80?e.message.slice(0,80)+`…`:e.message:``}),o=N(()=>{let e=n();if(!e)return``;let i=Math.max(0,r()),a=i>0?t.t(`ui.sessionTurn.retry.inSeconds`,{seconds:i}):``,o=[t.t(`ui.sessionTurn.retry.retrying`),a].filter(Boolean).join(` `);return o?t.t(`ui.sessionTurn.retry.attemptRetrying`,{line:o,attempt:e.attempt}):t.t(`ui.sessionTurn.retry.attemptLabel`,{attempt:e.attempt})});return z(H,{get when(){return U(()=>!!n())()&&(e.show??!0)},get children(){var e=l2();return K(e,z(EQ,{variant:`error`,class:`error-card`,"data-kind":`session-retry-card`,get children(){var e=c2(),t=e.firstChild;return K(e,z(X,{name:`outline-hexagonal-warning`,class:`mt-0.5 shrink-0 text-v2-state-fg-danger`}),t),K(t,z(Sl,{appearance:`standard`,get value(){return n()?.message??``},placement:`top`,get children(){var e=s2();return K(e,z(a2,{get message(){return a()}})),e}}),null),K(t,z(H,{get when(){return o()},children:e=>(()=>{var t=u2();return K(t,z(jG,{get text(){return e()},active:!0})),t})()}),null),e}})),e}})}var f2=W(`<div><div data-component=session-turn class="min-w-0 w-full relative"style=height:auto>`),p2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-compaction>`),m2=W(`<div data-slot=session-timeline-notice><div class="flex min-h-5 min-w-0 items-center gap-2 overflow-hidden"><bdi dir=auto class="shrink-0 text-[13px] font-[530] leading-text-compact tracking-[-0.04px] text-v2-text-text-faint">`),h2=W(`<div data-slot=session-timeline-notice><bdi dir=auto class=font-[530]>`),g2=W(`<span><bdi dir=auto>`),_2=W(`<bdi dir=auto class="min-w-0 truncate text-[13px] font-[440] leading-text-compact tracking-[-0.04px] text-v2-text-text-faint">`),v2=W(`<div data-slot=session-timeline-notice data-type=model-switched>`),y2=W(`<bdi data-slot=session-timeline-notice-label dir=auto class=font-[530]>`),b2=W(`<div data-slot=session-timeline-notice data-type=location-switched> <bdi data-slot=session-timeline-notice-value dir=ltr class="min-w-0 truncate font-[440]">`),x2=W(`<div data-slot=session-turn-message-container>`),S2=W(`<div data-timeline-row=TurnGap aria-hidden=true class=h-6>`),C2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-message-content aria-live=off>`),w2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-compaction><div class=py-2>`),T2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-assistant-content>`),E2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-thinking-row>`),D2=[];function O2(e){let t=Al(),n=JA(),r=e.disclosure.patchGroupKeys??new Map,i=new WeakMap,a=N(()=>{let t=new Map;return e.projection.rows().forEach(n=>{n._tag===`AssistantPart`&&n.group.type===`context`&&n.group.refs.forEach(n=>{let i=Lz.resolveContent(e.projection.messageByID().get(n.messageID),n.partID);if(i?.type!==`tool`||i.name!==`patch`||i.state.status===`error`)return;let a=`${n.messageID}:${n.partID}`,o=r.get(a);o&&!t.has(o)&&t.set(o,a)})}),t}),o=t=>e.status().type!==`idle`&&e.projection.activeMessageID()===t,s=t=>{let n=e.projection.messageByID().get(t);if(n?.type!==`user`)return null;let r=(e.projection.assistantMessagesByParent().get(t)??D2).reduce((e,t)=>t.time.completed===void 0?e:e===void 0?t.time.completed:Math.max(e,t.time.completed),void 0);if(!(r===void 0||r<n.time.created))return r-n.time.created},c=t=>o(t)?null:(e.projection.assistantMessagesByParent().get(t)??D2).toReversed().flatMap(e=>Lz.contentEntries(e).toReversed()).find(e=>e.content.type===`text`&&!!e.content.text.trim())?.id,l=()=>e.padding?.()??`px-4 md:px-5`,u=t=>{let n=new Map;return t.forEach(t=>{if(n.has(t.messageID))return;let r=new Map,i=e.projection.messageByID().get(t.messageID);i?.type===`assistant`&&Lz.contentEntries(i).forEach(e=>{r.has(e.id)||r.set(e.id,e.content)}),n.set(t.messageID,r)}),n},d=(t,n)=>{if(t().group.type===`context`){let s=N(()=>{let n=t().group;if(n.type!==`context`)return[];let r=u(n.refs),a=e.projection.assistantMessagesByParent().get(t().userMessageID)?.at(-1);return n.refs.flatMap(n=>{let s=r.get(n.messageID)?.get(n.partID);if(s?.type===`tool`)return i.set(s,`${n.messageID}:${n.partID}`),[s];if(s?.type===`reasoning`)return[{...s,id:n.partID,streaming:o(t().userMessageID)&&e.status().type===`busy`&&a?.id===n.messageID&&a.time.completed===void 0&&!a.error&&!a.retry&&a.content.at(-1)===s&&s.time?.completed===void 0}];let c=e.projection.messageByID().get(n.messageID);return n.messageID!==n.partID||!c?[]:c.type===`shell`?[{type:`shell`,id:n.partID,render:()=>z(g,{get messageID(){return n.messageID},grouped:!0})}]:c.type!==`assistant`&&c.type!==`user`?[{type:`notice`,id:n.partID,render:()=>z(h,{get messageID(){return n.messageID},grouped:!0})}]:[]})}),c=()=>`context:${t().group.key}`;return z(t2,{get parts(){return s()},patchGroupKey:e=>{let t=e.map(e=>i.get(e)),n=t.map(e=>r.get(e)).find(e=>e!==void 0&&t.includes(a().get(e)))??t[0];return t.forEach(e=>r.set(e,n)),n},get reasoningDefaultOpen(){return U(()=>!!e.timelineDetail)()?e.timelineDetail().thinking.details===`expanded`:e.reasoningMode()===`full`},reasoningOpen:t=>e.disclosure.value(t),onReasoningOpenChange:(t,n)=>e.disclosure.set(t,n),toolDefaultOpen:t=>e.timelineDetail?f(t):!1,toolOpen:n=>e.disclosure.value(`${t().group.key}:tool:${n}`),onToolOpenChange:(n,r)=>e.disclosure.set(`${t().group.key}:tool:${n}`,r),fileOpen:t=>e.disclosure.value(`patch:${t}`)??e.timelineDetail?.().edit.details===`expanded`,onFileOpenChange:(t,n)=>e.disclosure.set(`patch:${t}`,n),get open(){return e.disclosure.value(c())===!0},get busy(){return U(()=>!!o(t().userMessageID))()&&e.projection.lastAssistantGroupKey().get(t().userMessageID)===t().group.key},onOpenChange:t=>e.disclosure.set(c(),t),onSizeChange:n})}if(t().group.type===`file`){let r=N(()=>{let e=t().group;if(e.type!==`file`)return[];let n=u(e.refs);return e.refs.flatMap(e=>{let t=n.get(e.messageID)?.get(e.partID);return t?.type===`tool`?[t]:[]})}),i=N(()=>{let e=r()[0];if(!e||!(`metadata`in e.state))return;let t=e.state.metadata?.files;if(!Array.isArray(t))return;let n=t[0];return n&&typeof n==`object`&&`file`in n&&typeof n.file==`string`?n.file:void 0});return z(n2,{get tools(){return r()},fileOpen:n=>{let a=e.disclosure.value(`${t().group.key}:file:${n}`);return a===void 0?e.timelineDetail?e.timelineDetail().edit.details===`expanded`:r()[0]?.name!==`edit`||n!==i()?!1:e.disclosure.value(t().group.key)??e.editToolDefaultOpen():a},onFileOpenChange:(n,r)=>e.disclosure.set(`${t().group.key}:file:${n}`,r),onSizeChange:n})}let l=N(()=>{let e=t().group;return e.type===`part`?e.ref:void 0}),d=N(()=>{let t=l(),n=t?e.projection.messageByID().get(t.messageID):void 0;return n?.type===`assistant`?n:void 0}),p=N(()=>{let e=l();return e?Lz.resolveContent(d(),e.partID):void 0}),m=N(()=>{let e=p();return e?f(e):void 0}),_=()=>p()?.type===`reasoning`?l().partID:t().group.key;return z(H,{get when(){return d()},children:r=>z(H,{get when(){return p()},children:i=>z(e2,{get message(){return r()},get content(){return i()},get contentID(){return l().partID},get showAssistantCopyPartID(){return c(t().userMessageID)},get turnDurationMs(){return s(t().userMessageID)},get defaultOpen(){return m()},get toolOpen(){return e.disclosure.value(_())??m()},onToolOpenChange:t=>e.disclosure.set(_(),t),onContentRendered:n})})})};function f(t){if(e.timelineDetail){let n=Nz(t);if(n&&e.timelineDetail()[n].placement===`hidden`&&t.type===`tool`&&Ez(t))return!0;if(n===`shell`||n===`edit`||n===`thinking`)return e.timelineDetail()[n].details===`expanded`}return t.type===`reasoning`?e.reasoningMode()===`full`:Az(t,e.shellToolDefaultOpen(),e.editToolDefaultOpen())}let p=e=>{if(e.type===`agent-switched`)return{label:t.t(`ui.sessionTimeline.notice.agentChanged`),data:e.previous?`${k2(e.previous)} → ${k2(e.agent)}`:k2(e.agent)};if(e.type===`model-switched`)return;if(e.type===`skill`)return{label:t.t(`ui.tool.skill`),data:e.name};if(e.type===`system`){if(e.description?.startsWith(`Instructions updated: `)){let n=e.description.slice(22).split(`,`).map(e=>e.trim()).filter(Boolean);return{label:t.t(`ui.sessionTimeline.notice.instructionsUpdated`),items:n}}return{label:e.description??e.text}}if(e.type!==`synthetic`)return;if(e.description===`Continuing after restart`)return{label:e.description};let n=typeof e.metadata?.source==`string`?e.metadata.source:void 0,r=typeof e.metadata?.state==`string`?e.metadata.state:void 0;if(n===`subagent`||n===`shell`){let i=typeof e.metadata?.agent==`string`?e.metadata.agent:void 0,a=n===`shell`?t.t(`ui.tool.shell`):i??t.t(`ui.tool.agent.default`);return{label:t.t(r===`error`?`ui.sessionTimeline.notice.failed`:r===`cancelled`?`ui.sessionTimeline.notice.cancelled`:`ui.sessionTimeline.notice.finished`,{actor:a}),data:e.description}}return{label:e.description??e.text}},m=t=>(()=>{var n=f2(),r=n.firstChild;return K(r,()=>t.children),j(r=>{var i=t.row._tag===`UserMessage`?e.anchor?.(t.row.userMessageID):void 0,a=t.row.userMessageID,o=t.row._tag,s=t.row._tag===`AssistantPart`?t.row.spacing:void 0,c={"min-w-0 w-full max-w-full":!0,"md:max-w-[1000px] md:mx-auto":e.centered?.(),"pt-2":t.row._tag===`AssistantPart`&&t.row.spacing===`tool`,"pt-4":t.row._tag===`AssistantPart`&&t.row.spacing===`content`};return i!==r.e&&G(n,`id`,r.e=i),a!==r.t&&G(n,`data-message-id`,r.t=a),o!==r.a&&G(n,`data-timeline-row`,r.a=o),s!==r.o&&G(n,`data-timeline-spacing`,r.o=s),r.i=pt(n,c,r.i),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n})();function h(r){let i=()=>r.grouped?``:l(),a=N(()=>e.projection.messageByID().get(r.messageID)),o=N(()=>{let e=a();return e?.type===`compaction`?e:void 0}),s=N(()=>{let e=o();return e?.status===`failed`?Zz(e.error.message):``}),c=N(()=>{let e=a();return e?.type===`location-switched`?e:void 0}),u=N(()=>{let e=a();if(e?.type!==`model-switched`)return;let r=n.store.provider?.all?.get(e.model.providerID);return{providerID:e.model.providerID,variant:e.model.variant,label:t.t(`ui.sessionTimeline.notice.modelSwitched`,{model:r?.models?.[e.model.id]?.name??e.model.id})}}),d=N(()=>{let e=a();return e?p(e):void 0});return[z(H,{get when(){return o()},children:e=>(()=>{var t=p2(),n=t.firstChild;return K(n,z(i$,{get message(){return e()},get error(){return s()}})),j(()=>dt(t,`w-full ${i()}`)),t})()}),z(H,{get when(){return c()},get fallback(){return z(H,{get when(){return u()},get fallback(){return z(H,{get when(){return d()},children:e=>z(H,{get when(){return e().items?.length},get fallback(){return(()=>{var t=h2(),n=t.firstChild;return K(n,()=>e().label),K(t,z(H,{get when(){return e().data},children:e=>(()=>{var t=g2(),n=t.firstChild;return K(t,z(H,{get when(){return a()?.type!==`agent-switched`},children:` · `}),n),K(n,e),j(()=>t.classList.toggle(`ms-2`,a()?.type===`agent-switched`)),t})()}),null),j(e=>{var o=`w-full truncate ${r.grouped?`py-1`:`pt-3 pb-1`} text-13-regular leading-text-compact text-text-weak ${i()}`,s=a()?.type===`agent-switched`;return o!==e.e&&dt(t,e.e=o),s!==e.t&&n.classList.toggle(`text-v2-text-text-faint`,e.t=s),e},{e:void 0,t:void 0}),t})()},get children(){var t=m2(),n=t.firstChild,r=n.firstChild;return K(r,()=>e().label),K(n,z(Ge,{get each(){return e().items},children:e=>(()=>{var t=_2();return K(t,e),t})()}),null),j(()=>dt(t,`w-full py-1 ${i()}`)),t}})})},children:e=>(()=>{var t=v2();return K(t,z(rB,{get label(){return e().label},get providerID(){return e().providerID},get variant(){return e().variant}})),j(()=>dt(t,`w-full py-2 ${i()}`)),t})()})},children:e=>(()=>{var n=b2(),r=n.firstChild,a=r.nextSibling;return K(n,z(Sl,{appearance:`compact`,placement:`top`,get value(){return t.t(`ui.sessionTimeline.notice.movedTooltip`)},class:`shrink-0`,triggerTabIndex:0,get children(){var e=y2();return K(e,()=>t.t(`ui.sessionTimeline.notice.movedTo`)),e}}),r),K(a,()=>e().location.directory),j(()=>dt(n,`flex h-7 w-full min-w-0 items-center gap-2 py-1 text-[13px] leading-text-compact tracking-[-0.04px] text-v2-text-text-faint ${i()}`)),n})()})]}function g(t){let n=N(()=>{let n=e.projection.messageByID().get(t.messageID);return n?.type===`shell`?n:void 0}),r=N(()=>{if(!e.timelineDetail)return e.shellToolDefaultOpen();let t=n();return e.timelineDetail().shell.details===`expanded`||e.timelineDetail().shell.placement===`hidden`&&(t?.status===`timeout`||t?.status===`exited`&&t.exit!==void 0&&t.exit!==0)});return z(H,{get when(){return n()},children:n=>(()=>{var i=x2();return K(i,z(Q0,{get message(){return n()},get defaultOpen(){return r()},get open(){return e.disclosure.value(n().id)??(e.timelineDetail?r():void 0)},onOpenChange:t=>e.disclosure.set(n().id,t)})),j(()=>dt(i,`w-full ${t.grouped?``:l()}`)),i})()})}let _=(n,r)=>{if(n()._tag===`TurnGap`)return S2();if(n()._tag===`UserMessage`){let t=()=>{let e=n();if(e._tag!==`UserMessage`)throw Error(`Expected a user-message timeline row`);return e},r=N(()=>{let n=e.projection.messageByID().get(t().userMessageID);return n?.type===`user`?n:void 0}),i=N(()=>e.projection.userContextByID().get(t().userMessageID));return z(m,{get row(){return t()},get children(){return z(H,{get when(){return r()},children:t=>{let n=()=>e.presentation(t());return(()=>{var r=C2(),a=r.firstChild;return K(a,z($0,{get sessionID(){return e.sessionID()},get message(){return t()},get displayText(){return n()?.displayText},get comments(){return n()?.comments},get historicalAgent(){return i()?.agent??``},get historicalModel(){return i()?.model??{id:``,providerID:``}},get actions(){return e.actions}})),j(()=>dt(r,`w-full ${l()}`)),r})()}})}})}if(n()._tag===`Shell`){let e=()=>{let e=n();if(e._tag!==`Shell`)throw Error(`Expected a shell timeline row`);return e};return z(m,{get row(){return e()},get children(){return z(g,{get messageID(){return e().messageID}})}})}if(n()._tag===`Notice`){let e=()=>{let e=n();if(e._tag!==`Notice`)throw Error(`Expected a notice timeline row`);return e};return z(m,{get row(){return e()},get children(){return z(h,{get messageID(){return e().messageID}})}})}if(n()._tag===`TurnDivider`){let e=()=>{let e=n();if(e._tag!==`TurnDivider`)throw Error(`Expected a turn-divider timeline row`);return e};return z(m,{get row(){return e()},get children(){var e=w2(),n=e.firstChild.firstChild;return K(n,z(rB,{get label(){return t.t(`ui.message.interrupted`)}})),j(()=>dt(e,`w-full ${l()}`)),e}})}if(n()._tag===`AssistantPart`){let e=()=>{let e=n();if(e._tag!==`AssistantPart`)throw Error(`Expected an assistant-part timeline row`);return e},t=d(e,r);return z(m,{get row(){return e()},get children(){var n=T2(),r=n.firstChild;return K(r,t),j(t=>{var i=`w-full ${l()}`,a=o(e().userMessageID);return i!==t.e&&dt(n,t.e=i),a!==t.t&&G(r,`aria-hidden`,t.t=a),t},{e:void 0,t:void 0}),n}})}if(n()._tag===`Thinking`){let t=()=>{let e=n();if(e._tag!==`Thinking`)throw Error(`Expected a thinking timeline row`);return e},i=N(()=>{let n=t().ref,r=Lz.resolveContent(e.projection.messageByID().get(n.messageID),n.partID);return r?.type===`reasoning`?r:void 0});return z(m,{get row(){return t()},get children(){var n=E2(),a=n.firstChild;return K(a,z(H,{get when(){return i()},children:n=>z(o$,{get id(){return t().ref.partID},get content(){return n()},streaming:!0,get defaultOpen(){return U(()=>!!e.timelineDetail)()?e.timelineDetail().thinking.details===`expanded`:e.reasoningMode()===`full`},get open(){return e.disclosure.value(t().ref.partID)??(e.timelineDetail?e.timelineDetail().thinking.details===`expanded`:void 0)},onOpenChange:n=>e.disclosure.set(t().ref.partID,n),onContentRendered:r})})),j(()=>dt(n,`w-full ${l()}`)),n}})}if(n()._tag===`Retry`){let t=()=>{let e=n();if(e._tag!==`Retry`)throw Error(`Expected a retry timeline row`);return e},r=N(()=>{let n=(e.projection.assistantMessagesByParent().get(t().userMessageID)??D2).at(-1)?.retry;return n?{type:`retry`,attempt:n.attempt,message:n.error.message,next:n.at}:e.status()});return z(m,{get row(){return t()},get children(){var n=x2();return K(n,z(d2,{get status(){return r()},get show(){return e.projection.activeMessageID()===t().userMessageID}})),j(()=>dt(n,`w-full ${l()}`)),n}})}let i=()=>{let e=n();if(e._tag!==`Error`)throw Error(`Expected an error timeline row`);return e};return z(m,{get row(){return i()},get children(){var e=x2();return K(e,z(o2,{get message(){return i().text}})),j(()=>dt(e,`w-full ${l()}`)),e}})};function v(e){return z(H,{get when(){return jz.key(e.row())},keyed:!0,children:t=>_(e.row,e.onSizeChange)})}return{Row:v}}function k2(e){return e.slice(0,1).toUpperCase()+e.slice(1)}var A2=W(`<div data-component=session-timeline>`),j2=W(`<div class=native-transcript data-workspace-session>`),M2=W(`<p class=empty-inline>`),N2=Mz.find(e=>e.id===`compact`).value;function P2(e){let t=Iz({sessionMessages:()=>e.session.messages,status:()=>e.status,reasoningMode:()=>`compact`,timelineDetail:()=>N2,shellToolDefaultOpen:()=>!1,editToolDefaultOpen:()=>!1}),[n,r]=$t({}),i=O2({sessionID:()=>e.session.sessionID,status:()=>e.status,projection:t,presentation:()=>void 0,reasoningMode:()=>`compact`,timelineDetail:()=>N2,shellToolDefaultOpen:()=>!1,editToolDefaultOpen:()=>!1,padding:()=>``,disclosure:{value:e=>n[e],set:(e,t)=>r(e,t)}}),a=N(()=>t.rows().map(jz.key));function o(e){let n=t.rowByKey().get(e.rowKey),r=N(()=>t.rowByKey().get(e.rowKey)??n);return z(i.Row,{row:r})}return(()=>{var e=A2();return K(e,z(Ge,{get each(){return a()},children:e=>z(o,{rowKey:e})})),e})()}function F2(e){let[t,n]=A(``),r=()=>e.stage.sessions.find(e=>!e.parentID)??e.stage.sessions[0],i=()=>e.stage.sessions.find(e=>e.sessionID===t())??r(),a=t=>e.running?t.status:{type:`idle`},o=N(()=>{let t=new Map;for(let n of e.stage.sessions){let e=[n.model,...n.messages.flatMap(e=>e.type===`assistant`?[e.model]:[])];for(let n of e)t.has(n.providerID)||t.set(n.providerID,{models:{}}),t.get(n.providerID).models[n.id]={name:Gd(`${n.providerID}/${n.id}`)}}return{all:t,connected:[...t.keys()],default:{}}});return(()=>{var t=j2();return K(t,z(H,{get when(){return U(()=>!!i())()&&i()!==r()},get children(){return z(Po,{size:`small`,variant:`ghost-muted`,icon:`arrow-left`,onClick:()=>n(``),children:`Parent session`})}}),null),K(t,z(H,{get when(){return i()?.sessionID},keyed:!0,get fallback(){return(()=>{var t=M2();return K(t,()=>e.pending?`Waiting for session activity…`:`No session was recorded.`),t})()},children:t=>z(YA,{directory:`/workspace`,sessionID:t,get data(){return{agent:[...new Set(e.stage.sessions.map(e=>e.agent))].map(e=>({name:e})),provider:o(),session:e.stage.sessions.map(e=>({id:e.sessionID,parentID:e.parentID,title:e.title,time:{created:e.created,updated:e.created}})),session_status:Object.fromEntries(e.stage.sessions.map(e=>[e.sessionID,a(e)])),session_diff:{}}},onNavigateToSession:t=>{e.stage.sessions.some(e=>e.sessionID===t)&&n(t)},get children(){return z(ff,{component:qA,get children(){return z(P2,{get session(){return i()},get status(){return a(i())}})}})}})}),null),t})()}var I2=()=>({prompt:``,model:``,sessions:[]}),L2=e=>{let[t,n]=e.split(`#`),r=t.indexOf(`/`);return{providerID:r<0?`recorded`:t.slice(0,r),id:r<0?t:t.slice(r+1),variant:n}},R2=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},z2=e=>{let t=(Array.isArray(e)?e:[]).filter(e=>!!e&&typeof e==`object`&&(e.type===`text`&&typeof e.text==`string`||e.type===`file`&&typeof e.uri==`string`&&typeof e.mime==`string`));return t.length?t:[{type:`text`,text:typeof e==`string`?e:JSON.stringify(e??``)}]},B2=e=>{let t=R2(e);return{type:typeof t.type==`string`?t.type:`RecordedError`,message:typeof t.message==`string`?t.message:String(e??`Unknown error`)}};function V2(e,t){if(!(`data`in t.event))return;let n=t.event,r=n.data,i=Date.parse(t.time);if(typeof r.sessionID!=`string`)return;let a=e.sessions.find(e=>e.sessionID===r.sessionID);if(a||(a={sessionID:r.sessionID,title:``,created:i,model:L2(e.model),agent:`build`,messages:[],diffs:[],status:{type:`idle`},parts:{}},e.sessions.push(a)),n.type===`session.created`&&(typeof r.parentID==`string`&&(a.parentID=r.parentID),typeof r.agent==`string`&&(a.agent=r.agent),typeof r.title==`string`&&(a.title=r.title),r.model&&typeof r.model==`object`&&(a.model=r.model)),n.type===`session.renamed`&&typeof r.title==`string`&&(a.title=r.title),n.type===`session.execution.started`&&(a.status={type:`busy`}),[`session.execution.succeeded`,`session.execution.failed`,`session.execution.interrupted`].includes(n.type)&&(a.status={type:`idle`}),n.type===`session.inbox.enqueued`){let e=r.item;e?.type===`user`&&typeof e.payload?.text==`string`&&!a.messages.some(e=>e.id===r.inboxID)&&a.messages.push({type:`user`,id:String(r.inboxID),text:e.payload.text,time:{created:i}})}if(typeof r.assistantMessageID!=`string`)return;let o=a.messages.find(e=>e.type===`assistant`&&e.id===r.assistantMessageID);o||(o={type:`assistant`,id:r.assistantMessageID,time:{created:i},agent:a.agent,model:a.model,content:[]},a.messages.push(o)),n.type===`session.step.started`&&(o.agent=typeof r.agent==`string`?r.agent:a.agent,o.model=r.model&&typeof r.model==`object`?r.model:a.model),n.type===`session.step.streamed`&&(o.time.streamed=i),n.type===`session.step.ended`&&(o.time.completed=i,o.finish=r.finish);let s=/^session\.(text|reasoning)\.(started|delta|ended)$/.exec(n.type);if(s){let e=s[1],t=`${o.id}:${e}:${r.ordinal}`,n=a.parts[t];n||(n={messageID:o.id,index:o.content.length,complete:!1},a.parts[t]=n,o.content.push(e===`reasoning`?{type:e,text:``,time:{created:i}}:{type:e,text:``}));let c=o.content[n.index];if(c.type===`tool`)return;s[2]===`delta`&&!n.complete&&(c.text+=String(r.delta??``)),s[2]===`ended`&&(c.text=String(r.text??c.text),n.complete=!0,c.type===`reasoning`&&(c.time={created:c.time?.created??i,completed:i}))}if(!n.type.startsWith(`session.tool.`)||typeof r.id!=`string`)return;let c=o.content.find(e=>e.type===`tool`&&e.id===r.id);if(c||(c={type:`tool`,id:r.id,name:String(r.name??`tool`),time:{created:i},state:{status:`streaming`,input:``}},o.content.push(c)),typeof r.name==`string`&&(c.name=r.name),n.type===`session.tool.input.delta`&&c.state.status===`streaming`&&(c.state.input+=String(r.delta??``)),n.type===`session.tool.input.ended`&&c.state.status===`streaming`&&(c.state.input=String(r.text??``)),n.type===`session.tool.called`&&(c.state={status:`running`,input:R2(r.input),metadata:{}},c.time.ran=i),n.type===`session.tool.progress`&&c.state.status!==`streaming`&&(c.state.metadata=R2(r.metadata)),n.type===`session.tool.success`||n.type===`session.tool.failed`){let e=c.state.status===`streaming`?{}:c.state.input,t=r.metadata?R2(r.metadata):c.state.status===`streaming`?{}:c.state.metadata;c.state=n.type===`session.tool.success`?{status:`completed`,input:e,metadata:t,content:z2(r.content)}:{status:`error`,input:e,metadata:t,error:B2(r.error),...r.content?{content:z2(r.content)}:{}},c.time.completed=i}typeof r.executed==`boolean`&&(c.executed=r.executed)}var H2=new Map;function U2(e){let[t,n]=$t(I2()),[r,i]=A(),[a,o]=A(`Connecting…`),[s,c]=A(0);M(ae(N(()=>`${e.benchmark()}:${e.execution()}`),t=>{let r=I2(),a=H2.get(t);if(ie(()=>{n(rn(structuredClone(a?.document??r))),i(void 0),o(a?`Session saved`:`Connecting…`),c(e=>e+1)}),a)return;if(!e.execution()){o(`Waiting for session`);return}let s=new EventSource(`/api/session?benchmark=${encodeURIComponent(e.benchmark())}&execution=${encodeURIComponent(e.execution())}`);s.onopen=()=>o(`Streaming`),s.onerror=()=>o(`Reconnecting…`),s.addEventListener(`snapshot`,e=>{r=JSON.parse(e.data).document,ie(()=>{n(rn(structuredClone(r))),c(e=>e+1)})}),s.addEventListener(`records`,e=>{let t=JSON.parse(e.data);for(let e of t)V2(r,e);ie(()=>{n(rn(structuredClone(r))),c(e=>e+1)})}),s.addEventListener(`state`,e=>i(JSON.parse(e.data))),s.addEventListener(`done`,()=>{H2.delete(t),H2.set(t,{document:structuredClone(r)}),H2.size>8&&H2.delete(H2.keys().next().value),o(`Session saved`),s.close()}),s.addEventListener(`session-error`,()=>{o(`Session unavailable`),s.close()}),F(()=>s.close())}));let l=I2();return{state:r,connection:a,revision:s,stage:n=>n===e.stage()?t:l}}var W2=W(`<span class=eval-name>`),G2=`openeval.top-secret`,[K2,q2]=A((()=>{try{return localStorage.getItem(G2)===`true`}catch{return!1}})());function J2(){return z(Sl,{get value(){return K2()?`Click to show eval names and enable traces`:`Click to blur eval names and disable traces`},get children(){return z(Lo,{size:`small`,variant:`ghost`,get icon(){return z(X,{name:`glasses`})},class:`secret-toggle`,"aria-label":`Top secret`,get"aria-pressed"(){return K2()},onClick:()=>q2(!K2())})}})}function Y2(e){return(()=>{var t=W2();return K(t,()=>e.children),j(n=>{var r=!!(K2()&&e.sensitive!==!1),i=K2()&&e.sensitive!==!1?!0:void 0;return r!==n.e&&t.classList.toggle(`is-secret`,n.e=r),i!==n.t&&G(t,`aria-hidden`,n.t=i),n},{e:void 0,t:void 0}),t})()}var X2=W(`<p class=error-banner>Could not load judging checkpoints.`),Z2=W(`<p class=error-banner>`),Q2=W(`<button>Next page`),$2=W(`<div class=judge-check-detail><pre class=checkpoint-content>`),e4=W(`<div class=judge-history>`),t4=W(`<p class=judge-audit-warning>Monitoring ended <!>: <!>. Final grading uses the saved work.`),n4=W(`<p class=judge-audit-warning>. The candidate continues normally; final grading uses its completed evidence.`),r4=W(`<details class=judge-audit open><summary><strong>Judgment and evidence</strong><span></span></summary><div class=judgment-metrics></div><ol class=judge-checks>`),i4=W(`<article><header><strong></strong><span></span></header><p></p><div class=checkpoint-actions>`),a4=W(`<button>Read `),o4=W(`<a class=judgment-source target=_blank rel=noreferrer>`),s4=W(`<p class=judge-check-stop>Stop requested `),c4=W(`<dt>Evidence cutoff`),l4=W(`<dd>`),u4=W(`<dt>Boundary event`),d4=W(`<dt>Native cursors`),f4=W(`<p class=checkpoint-status>Loading evidence…`),p4=W(`<div class=checkpoint-items>`),m4=W(`<button>Back`),h4=W(`<div class=checkpoint-actions>`),g4=W(`<div class=judge-check-detail><details class=checkpoint-identity><summary>Evidence identity <code></code></summary><dl><dt>Check</dt><dd></dd><dt>Evidence SHA-256</dt><dd></dd><dt>Judge events</dt><dd>–</dd><dt>Duration</dt><dd></dd></dl></details><nav aria-label="Checkpoint evidence"class=checkpoint-actions>`),_4=W(`<li><button class=judge-check-heading><span class=judge-check-number></span><strong></strong><span></span><time></time></button><p class=judge-check-reason>`),v4=W(`<button>`),y4=W(`<pre class=checkpoint-content>`),b4=W(`<p>`),x4=W(`<button><strong></strong><span>`);async function S4(e){let t=await fetch(e);if(!t.ok)throw Error(await t.text());return t.json()}function C4(e){let[t,n]=re(()=>!K2()&&`${e.benchmarkId}:${e.judgeId}`,()=>S4(`/api/judge-checks?${new URLSearchParams({benchmark:e.benchmarkId,judge:e.judgeId})}`)),[r,i]=A(``),[a,o]=A({action:`summary`}),[s,c]=A([]),[l]=re(()=>!K2()&&r()?{check:r(),...a()}:!1,n=>{let r=new URLSearchParams({benchmark:e.benchmarkId,judge:e.judgeId,check:n.check===`judgment`?t()?.judge.decisionCheckId??``:n.check,action:n.action});return n.id!==void 0&&r.set(`id`,n.id),n.offset!==void 0&&r.set(`offset`,String(n.offset)),n.path&&r.set(`path`,n.path),n.revision&&r.set(`revision`,n.revision),S4(`/api/check-evidence?${r}`)});M(()=>{e.judgeId,i(``),o({action:`summary`}),c([])});let u=setInterval(()=>{!K2()&&t()?.judge.state===`running`&&!t.loading&&n.refetch()},2e3);F(()=>clearInterval(u));let d=e=>{i(r()===e?``:e),o({action:`summary`}),c([])},f=e=>{c([...s(),a()]),o(e)},p=()=>Array.isArray(l()?.items)?l().items:void 0,m=e=>e.state===`completed`?e.decision?.kind===`continue`?`Continue`:e.decision?.judgment.value===1?`Pass`:e.decision?.judgment.value===0?`Fail`:typeof e.decision?.judgment.value==`number`?`${Math.round(e.decision.judgment.value*100)}%`:`Unknown`:tf(e.state);return z(H,{get when(){return U(()=>!K2())()&&(t()?.checks.length||t()?.judge.judgment?.metrics.length||t()?.judge.monitorError||t()?.judge.monitorLimit||(t()?.history.length??0)>1||t.error)},get children(){var n=r4(),u=n.firstChild,h=u.firstChild,g=h.nextSibling,_=u.nextSibling,v=_.nextSibling;return K(u,z(X,{name:`shield`}),h),K(g,(()=>{var e=U(()=>!!t()?.checks.length);return()=>e()?`${t().checks.length} checkpoint checks`:`Final judgment`})()),K(n,z(H,{get when(){return t.error},get children(){return X2()}}),_),K(_,z(Ge,{get each(){return t()?.judge.judgment?.metrics},children:e=>(()=>{var n=i4(),r=n.firstChild,a=r.firstChild,s=a.nextSibling,l=r.nextSibling,u=l.nextSibling;return K(a,()=>t()?.metrics.find(t=>t.id===e.id)?.name??e.id),K(s,(()=>{var t=U(()=>e.value===null);return()=>t()?`Unknown`:e.value?`Pass`:`Fail`})()),K(l,()=>e.reason),K(u,z(Ge,{get each(){return e.evidence},children:e=>(()=>{var t=a4();return t.firstChild,t.$$click=()=>{i(`judgment`),c([]),o({action:e.kind,...`id`in e?{id:e.id}:{},...`path`in e?{path:e.path,revision:e.revision}:{},offset:e.offset})},K(t,()=>e.kind,null),K(t,(()=>{var t=U(()=>`path`in e);return()=>t()?`: ${e.path}`:``})(),null),t})()})),K(n,z(Ge,{get each(){return e.sources},children:e=>(()=>{var t=o4();return G(t,`href`,e),K(t,e),t})()}),null),n})()})),K(n,z(H,{get when(){return r()===`judgment`},get children(){var e=$2(),t=e.firstChild;return K(e,z(H,{get when(){return l.error},get children(){var e=Z2();return K(e,()=>String(l.error)),e}}),t),K(t,(()=>{var e=U(()=>!!l.loading);return()=>e()?`Loading evidence…`:U(()=>typeof l()?.text==`string`)()?l().text:JSON.stringify(l(),null,2)})()),K(e,z(H,{get when(){return typeof l()?.next==`number`},get children(){var e=Q2();return e.$$click=()=>o({...a(),offset:l().next}),e}}),null),e}}),v),K(n,z(H,{get when(){return(t()?.history.length??0)>1},get children(){var n=e4();return K(n,z(jd,{"aria-label":`Judging history`,get options(){return t().history.map(e=>e.id)},get current(){return e.judgeId},label:e=>{let n=t().history.find(t=>t.id===e);return`${n.mode===`monitor`?`Monitoring`:`Final judge`} · ${new Date(n.startedAt).toLocaleTimeString()} · ${tf(n.state)}`},onSelect:t=>{t&&e.onSelectJudge(t)}})),n}}),v),K(n,z(H,{get when(){return t()?.judge.monitorError},get children(){var e=t4(),n=e.firstChild.nextSibling,r=n.nextSibling.nextSibling;return r.nextSibling,K(e,(()=>{var e=U(()=>!!t().judge.monitorErrorAt);return()=>e()?`at ${new Date(t().judge.monitorErrorAt).toLocaleTimeString()}`:``})(),n),K(e,()=>t().judge.monitorError,r),e}}),v),K(n,z(H,{get when(){return t()?.judge.monitorLimit},get children(){var e=n4(),n=e.firstChild;return K(e,()=>t().judge.monitorLimit,n),e}}),v),K(v,z(Ge,{get each(){return t()?.checks},children:(e,n)=>(()=>{var i=_4(),u=i.firstChild,h=u.firstChild,g=h.nextSibling,_=g.nextSibling,v=_.nextSibling,y=u.nextSibling;return u.$$click=()=>d(e.id),K(h,()=>String(n()+1).padStart(2,`0`)),K(g,()=>m(e)),K(_,(()=>{var t=U(()=>e.purpose===`final`);return()=>t()?`Final archive`:`Through event #${e.checkpoint.through}`})()),K(v,()=>new Date(e.startedAt).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`})),K(u,z(X,{get name(){return r()===e.id?`chevron-down`:`chevron-right`}}),null),K(y,(()=>{var t=U(()=>e.decision?.kind===`continue`);return()=>t()?e.decision.reason:e.decision?.judgment.reason??e.error??`Waiting for the judge`})()),K(i,z(H,{get when(){return t()?.stop?.checkId===e.id},get children(){var e=s4();return e.firstChild,K(e,()=>new Date(t().stop.requestedAt).toLocaleTimeString(),null),K(e,(()=>{var e=U(()=>t().stop.applied===void 0);return()=>e()?` · Awaiting interruption`:t().stop.applied?` · Session stopped early`:` · Session had already ended`})(),null),e}}),null),K(i,z(H,{get when(){return r()===e.id},get children(){var t=g4(),n=t.firstChild,r=n.firstChild,i=r.firstChild.nextSibling,u=r.nextSibling,d=u.firstChild.nextSibling,m=d.nextSibling.nextSibling,h=m.nextSibling.nextSibling,g=h.firstChild,_=h.nextSibling,v=_.nextSibling,y=n.nextSibling;return K(i,()=>e.checkpoint.hash.slice(0,12)),K(d,()=>e.id),K(m,()=>e.checkpoint.hash),K(h,()=>e.events.after+1,g),K(h,()=>e.events.through??`live`,null),K(u,z(H,{get when(){return e.checkpoint.cutoffAt!==void 0},get children(){return[c4(),(()=>{var t=l4();return K(t,()=>new Date(e.checkpoint.cutoffAt).toISOString()),t})(),u4(),(()=>{var t=l4();return K(t,()=>e.checkpoint.boundaryEventId),t})(),d4(),(()=>{var t=l4();return K(t,()=>JSON.stringify(e.checkpoint.cursors)),t})()]}}),_),K(v,(()=>{var t=U(()=>e.runtimeMs!==void 0);return()=>t()?ef(e.runtimeMs):`—`})()),K(y,z(Ge,{each:[`summary`,`messages`,`tools`,`events`,`response`],children:e=>(()=>{var t=v4();return t.$$click=()=>{o({action:e}),c([])},K(t,e),j(()=>t.classList.toggle(`selected`,a().action===e)),t})()})),K(t,z(H,{get when(){return l.loading},get children(){return f4()}}),null),K(t,z(H,{get when(){return l.error},get children(){var e=Z2();return K(e,()=>String(l.error)),e}}),null),K(t,z(H,{get when(){return U(()=>!l.loading)()&&l()},get children(){return[z(H,{get when(){return p()},get fallback(){return(()=>{var e=y4();return K(e,(()=>{var e=U(()=>typeof l().text==`string`);return()=>e()?l().text:JSON.stringify(l(),null,2)})()),e})()},get children(){var e=p4();return K(e,z(Ge,{get each(){return p()},children:e=>(()=>{var t=x4(),n=t.firstChild,r=n.nextSibling;return t.$$click=()=>f({action:a().action===`events`?`event`:a().action===`tools`?`tool`:`message`,id:String(e.id??e.sequence)}),K(n,()=>String(e.name??e.type??e.role??`Item`)),K(r,()=>String(e.id??`#${e.sequence}`)),K(t,z(H,{get when(){return e.preview},get children(){var t=b4();return K(t,()=>String(e.preview)),t}}),null),t})()})),e}}),(()=>{var e=h4();return K(e,z(H,{get when(){return s().length},get children(){var e=m4();return e.$$click=()=>{let e=s();o(e[e.length-1]),c(e.slice(0,-1))},e}}),null),K(e,z(H,{get when(){return typeof l()?.next==`number`},get children(){var e=Q2();return e.$$click=()=>f({...a(),offset:l().next}),e}}),null),e})()]}}),null),t}}),null),j(n=>{var a=t()?.judge.decisionCheckId===e.id,o=r()===e.id,s=e.startedAt,c=e.startedAt;return a!==n.e&&i.classList.toggle(`decisive`,n.e=a),o!==n.t&&G(u,`aria-expanded`,n.t=o),s!==n.a&&G(v,`datetime`,n.a=s),c!==n.o&&G(v,`title`,n.o=c),n},{e:void 0,t:void 0,a:void 0,o:void 0}),i})()})),n}})}ct([`click`]);var w4=W(`<div class=session-tab-heading><span class=session-connection role=status>`),T4=W(`<div class=early-stop-note><span> · evidence through #</span><button>View decision`),E4=W(`<div class=early-stop-note><span>Judge session that requested the early stop</span><button>Current judgment`),D4=W(`<div class=session-timeline-scroll>`),O4=W(`<div class=session-inspector>`),k4=W(`<pre class=raw-document>`),A4=W(`<div class=error-banner role=alert>Could not render this recorded timeline. The saved data is available from the code icon.`);function j4(e){let[t,n]=A(e.initialTab??`session`),[r,i]=A(),a=()=>r()??e.judgeId;M(ae(()=>e.initialTab,e=>{e&&n(e)},{defer:!0}));let o=U2({benchmark:()=>e.benchmarkId,execution:()=>t()===`judge`?a():e.candidateId,stage:()=>t()===`judge`?`judge`:`candidate`}),[s,c]=A(!1);M(ae(N(()=>`${e.benchmarkId}:${e.candidateId}`),()=>{c(!1),i(void 0)}));let[l,u]=A(!0),d,f,p=()=>o.state()??e.state;M(()=>{o.revision(),t(),l()&&(f!==void 0&&cancelAnimationFrame(f),f=requestAnimationFrame(()=>{d&&l()&&(d.scrollTop=d.scrollHeight)}))}),F(()=>{f!==void 0&&cancelAnimationFrame(f)});let m=t=>e.state?(t===`judge`?e.state.judge:e.state.eval).status===`in_progress`:p()?.status===`in_progress`&&(p()?.stage??`candidate`)===t;return(()=>{var f=O4();return K(f,z(Mu,{variant:`pill`,get value(){return t()},onChange:e=>{n(e),u(!0)},class:`session-tabs`,get children(){return[(()=>{var e=w4(),t=e.firstChild;return K(e,z(Mu.List,{"aria-label":`Eval run sessions`,get children(){return[z(Mu.Trigger,{value:`session`,children:`Session`}),z(Mu.Trigger,{value:`judge`,get children(){return[z(X,{name:`shield`}),`Judge`]}})]}}),t),K(t,()=>o.connection()),K(e,z(Sl,{get value(){return s()?`Show timeline`:`Show raw JSON`},get children(){return z(Lo,{size:`small`,variant:`ghost-muted`,get icon(){return z(X,{name:`code`})},get"aria-label"(){return s()?`Show timeline`:`Show raw JSON`},get"aria-pressed"(){return s()},onClick:()=>c(!s())})}}),null),e})(),z(H,{get when(){return U(()=>t()===`session`)()&&e.state?.stop},get children(){var t=T4(),r=t.firstChild,a=r.firstChild,o=r.nextSibling;return K(t,z(X,{name:`shield`}),r),K(r,()=>e.state.stop.applied?`Stopped early`:`Stop requested`,a),K(r,()=>e.state.stop.checkpoint.through,null),o.$$click=()=>{i(e.state.stop.judgeRunId),n(`judge`),u(!1)},t}}),z(H,{get when(){return U(()=>!!(t()===`judge`&&r()))()&&r()!==e.judgeId},get children(){var e=E4(),t=e.firstChild.nextSibling;return t.$$click=()=>i(void 0),e}}),z(H,{get when(){return U(()=>t()===`judge`)()&&a()},get children(){return z(C4,{get benchmarkId(){return e.benchmarkId},get judgeId(){return a()},onSelectJudge:i})}}),(()=>{var e=D4();e.addEventListener(`scroll`,()=>{d&&d.scrollHeight-d.scrollTop-d.clientHeight<50&&u(!0)}),e.$$keydown=e=>{[`ArrowUp`,`PageUp`,`Home`].includes(e.key)&&u(!1)},e.$$pointerdown=e=>{e.target===d&&u(!1)},e.$$touchstart=()=>u(!1),e.addEventListener(`wheel`,e=>{e.deltaY<0&&u(!1)});var n=d;return typeof n==`function`?_t(n,e):d=e,K(e,z(H,{get when(){return!s()},get fallback(){return(()=>{var e=k4();return K(e,()=>JSON.stringify({stage:t(),document:o.stage(t()===`judge`?`judge`:`candidate`)},null,2)),e})()},get children(){return z(Xe,{get fallback(){return A4()},get children(){return[z(Mu.Content,{value:`session`,get children(){return z(F2,{get stage(){return o.stage(`candidate`)},get running(){return m(`candidate`)},get pending(){return p()?.status===`queued`||p()?.status===`in_progress`}})}}),z(Mu.Content,{value:`judge`,get children(){return z(F2,{get stage(){return o.stage(`judge`)},get running(){return m(`judge`)},get pending(){return p()?.status===`queued`||p()?.status===`in_progress`}})}})]}})}})),e})()]}}),null),K(f,z(H,{get when(){return U(()=>!l())()&&p()?.status===`in_progress`},get children(){return z(Po,{class:`follow-stream`,size:`small`,variant:`outline`,onClick:()=>u(!0),children:`Follow stream`})}}),null),j(e=>{var t=o.stage(`candidate`).sessions.length,n=o.stage(`judge`).sessions.length;return t!==e.e&&G(f,`data-candidate-sessions`,e.e=t),n!==e.t&&G(f,`data-judge-sessions`,e.t=n),e},{e:void 0,t:void 0}),f})()}ct([`click`,`touchstart`,`pointerdown`,`keydown`]);var M4=W(`<div class=error-banner>`),N4=W(`<section class=trace-view><div class=trace-heading><div><h1></h1><p><span>·</span><span>·</span><span>·</span>Cost </p></div><div class=trace-actions>`);function P4(e){return(()=>{var t=N4(),n=t.firstChild.firstChild,r=n.firstChild,i=r.nextSibling,a=i.firstChild,o=a.nextSibling,s=o.nextSibling;s.nextSibling;var c=n.nextSibling;return K(n,z(Po,{size:`small`,variant:`ghost-muted`,icon:`arrow-left`,get onClick(){return e.onBack},children:`Eval results`}),r),K(r,()=>Gd(e.selected.model)),K(i,()=>e.run.eval,a),K(i,()=>e.selected.reasoning,o),K(i,()=>ef(e.selected.elapsedMs),s),K(i,()=>Qd(e.selected.cost.usd),null),K(c,z(Io,{get children(){return e.selected.status}}),null),K(c,z(H,{get when(){return e.run.runs.length>1},get children(){return z(jd,{"aria-label":`Eval run`,get options(){return e.run.runs},get current(){return e.selected},value:e=>e.id,label:e=>`${Gd(e.model)} · ${e.reasoning} · run ${e.repetition}`,onSelect:t=>{t&&e.onRun(t.id)}})}}),null),K(t,z(H,{get when(){return e.selected.message},get children(){var t=M4();return K(t,()=>e.selected.message),t}}),null),K(t,z(j4,{get benchmarkId(){return e.run.benchmarkId},get candidateId(){return e.selected.evalRunId},get judgeId(){return e.selected.judgeRunId},get state(){return e.selected}}),null),t})()}var F4=W(`<div class=session-drawer-actions>`);function I4(e){let t=document.activeElement instanceof HTMLElement?document.activeElement:void 0,n=t?.dataset.runKey;return z(_o,{get open(){return e.open},modal:!0,onOpenChange:t=>{t||e.onClose()},get children(){return z(_o.Portal,{get children(){return[z(_o.Overlay,{class:`session-drawer-backdrop`}),z(_o.Content,{class:`session-drawer`,onCloseAutoFocus:e=>{e.preventDefault(),queueMicrotask(()=>{(t?.isConnected?t:[...document.querySelectorAll(`[data-run-key]`)].find(e=>e.dataset.runKey===n))?.focus({preventScroll:!0})})},get children(){return[z(_o.Title,{class:`sr-only`,get children(){return e.title}}),(()=>{var t=F4();return K(t,z(J2,{}),null),K(t,z(Lo,{size:`small`,variant:`ghost-muted`,get icon(){return z(X,{name:`close`})},"aria-label":`Close eval run`,get onClick(){return e.onClose}}),null),t})(),U(()=>e.children)]}})]}})}})}var L4=e=>e.status===`completed`||e.status===`failed`,R4=e=>[`completed`,`stopped`,`failed`,`timed_out`].includes(e.eval.status),z4=e=>typeof e.judge.score==`number`&&e.judge.score>=0&&e.judge.score<=1,B4=e=>+(e.eval.status===`in_progress`)+ +(e.judge.status===`in_progress`),V4=e=>+!![`completed`,`stopped`].includes(e.eval.status)+ +!!z4(e),H4=e=>+!![`failed`,`timed_out`,`interrupted`].includes(e.eval.status)+([`failed`,`timed_out`,`interrupted`,`blocked`].includes(e.judge.status)||e.judge.score===null?1:0),U4=e=>JSON.stringify([e.model,e.reasoning]);function W4(e,t){let n=e.some(e=>e.state.status===`running`&&t-Date.parse(e.state.heartbeatAt)<=3e4),r=e.toSorted((e,t)=>e.state.evalOrder-t.state.evalOrder).flatMap(e=>e.state.runs.map(t=>({eval:e.state.eval,run:t,key:`${e.id}:${t.id}`}))),i=[...new Set(r.map(({run:e})=>U4(e)))].map(e=>{let t=r.filter(({run:t})=>U4(t)===e).map(({run:e})=>e);return{key:e,model:t[0].model,reasoning:t[0].reasoning,total:t.length*2,completed:t.reduce((e,t)=>e+V4(t),0),attention:t.reduce((e,t)=>e+H4(t),0),active:n?t.reduce((e,t)=>e+B4(t),0):0,scheduled:t.some(e=>e.scheduled),stopped:t.filter(e=>[`cancelled`,`interrupted`].includes(e.status)).length}}),a=r.flatMap(e=>[`eval`,`judge`].flatMap(n=>{let r=e.run[n],i=Wd(r,t);return[`completed`,`stopped`].includes(r.status)&&i>0&&Date.parse(r.completedAt)<=t?[{...e,kind:n,duration:i}]:[]})),o=Math.max(1,...e.map(e=>e.state.concurrency)),s=r.filter(({run:e})=>e.scheduled),c=s.filter(({run:e})=>e.eval.status===`queued`),l=Ld(e.flatMap(e=>{let n=zd(t,e.state.heartbeatAt,e.state.status===`running`);return e.state.runtime.map(e=>({...e,end:e.end??n}))}),t),u=null;if(n&&a.length){let e=(e,t)=>{let n=a.filter(e=>e.kind===t),r=n.filter(t=>t.eval===e.eval&&U4(t.run)===U4(e.run));if(r.length)return r;let i=n.filter(t=>t.eval===e.eval);if(i.length)return i;let o=n.filter(t=>U4(t.run)===U4(e.run));return o.length?o:n},n=e=>e.reduce((e,t)=>e+t,0)/e.length,r=(r,i)=>{let a=Wd(r.run[i],t),o=e(r,i).map(e=>e.duration),s=o.filter(e=>e>a);if(o.length)return Math.max(1e3,s.length?n(s)-a:n(o)*.25)},i=[],c=new Map,l=!1;for(let e of s){let t=[`queued`,`in_progress`].includes(e.run.eval.status),n=[`queued`,`in_progress`,`watching`].includes(e.run.judge.status)||e.run.judge.status===`waiting`&&(t||[`completed`,`stopped`,`timed_out`].includes(e.run.eval.status));t||c.set(`${e.key}:eval`,0);for(let a of[`eval`,`judge`]){if(!(a===`eval`?t:n))continue;let o=r(e,a);if(o===void 0){l=!0;continue}let s=e.run[a].status===`in_progress`;i.push({id:`${e.key}:${a}`,kind:a,duration:o,active:s,dependency:a===`judge`&&!s&&t?`${e.key}:eval`:void 0})}}if(!l&&i.length){let e=i.filter(e=>e.active).map(e=>(c.set(e.id,e.duration),e.duration));for(;e.length<o;)e.push(0);let t=i.filter(e=>!e.active);for(;t.length;){let n=e.indexOf(Math.min(...e)),r=t.filter(e=>!e.dependency||c.has(e.dependency)),i=e=>e.dependency?c.get(e.dependency):0,a=r.filter(t=>i(t)<=e[n]),o=a.find(e=>e.kind===`judge`)??a[0]??r.sort((e,t)=>i(e)-i(t))[0];if(!o){l=!0;break}e[n]=Math.max(e[n],i(o))+o.duration,c.set(o.id,e[n]),t.splice(t.indexOf(o),1)}l||(u=Math.max(...e))}}return{models:i,total:r.length,finished:r.filter(({run:e})=>L4(e)).length,evals:r.filter(({run:e})=>R4(e)).length,scored:r.filter(({run:e})=>z4(e)).length,attention:r.filter(({run:e})=>e.attention).length,active:n?r.reduce((e,{run:t})=>e+B4(t),0):0,queued:c.length,running:n,samples:a.length,concurrency:o,elapsedMs:l,remainingMs:u,finishAt:u===null?null:t+u}}function G4(e){let t=Math.max(1,Math.ceil(e/6e4));return t<60?`${t} min`:`${Math.floor(t/60)} hr${t%60?` ${t%60} min`:``}`}var K4=W(`<div class=error-banner>`),q4=W(`<section class=live-trace-panel><header class=live-trace-heading><div><h2></h2><p> · run <!> · `);function J4(e){let t=()=>e.stage===`judge`?e.selected.judge:e.selected.eval,n=()=>e.stage===`judge`&&t().status===`completed`?`Judge · ${y3(t())}`:`${e.stage===`judge`?`Judge`:`Eval run`} · ${tf(t().status)}`;return(()=>{var t=q4(),r=t.firstChild,i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.firstChild,c=s.nextSibling;return c.nextSibling,K(r,z(Po,{size:`small`,variant:`ghost-muted`,icon:`arrow-left`,get onClick(){return e.onBack},children:`Queue`}),i),K(a,()=>Gd(e.selected.model)),K(o,()=>e.run.state.eval,s),K(o,()=>e.selected.repetition,c),K(o,()=>e.selected.reasoning,null),K(r,z(Io,{get children(){return n()}}),null),K(t,z(H,{get when(){return e.selected.attention??e.selected.message},get children(){var t=K4();return K(t,()=>e.selected.attention??e.selected.message),t}}),null),K(t,z(j4,{get benchmarkId(){return e.run.benchmarkId},get candidateId(){return e.selected.evalRunId},get judgeId(){return e.selected.judgeRunId},get state(){return e.selected},get initialTab(){return e.stage===`judge`?`judge`:`session`}}),null),t})()}var Y4=W(`<span class=queue-workers>Workers <strong>/`),X4=W(`<span class=queue-eta><span></span><strong>`),Z4=W(`<span>Est. finish <strong>`),Q4=W(`<span>Elapsed <strong>`),$4=W(`<span>Cost so far <strong>`),e3=W(`<div class=queue-timing>`),t3=W(`<div class=queue-strip>`),n3=W(`<span class=progress-attention><strong></strong> need attention`),r3=W(`<details class=model-race open><summary><span>Model progress</span><small class=progress-summary><span><strong></strong>/<!> eval runs done</span><span><strong></strong>/<!> scored</span></small></summary><div class=model-race-grid>`),i3=W(`<div class=activity-page><header class=activity-heading><h1>Eval run queue</h1></header><div class=activity-workspace><div class=queue-board aria-label="Eval and judge status columns">`),a3=W(`<span>`),o3=W(`<span>/`),s3=W(`<div class=model-race-row><div class=model-race-lane><div class=model-race-label><span class=model-race-name><strong></strong><small></small></span><span class=model-race-count><small></small></span></div><div class=model-race-track role=progressbar aria-valuemin=0><span>`),c3=W(`<small class=queue-waiting-count title="Judges waiting for finalized eval evidence"> waiting`),l3=W(`<small class=queue-waiting-count> not scheduled`),u3=W(`<p class=queue-column-empty>`),d3=W(`<section class=queue-column><header class=queue-column-heading><span aria-hidden=true></span><h2></h2></header><div class=queue-column-list role=region tabindex=0>`),f3=W(`<span class=early-stop-label>Stopped early`),p3=W(`<time class=queue-card-elapsed>`),m3=W(`<button class=queue-card><span class=queue-card-heading><span aria-hidden=true></span><strong></strong><small></small><span class=stage-icon role=img></span></span><span class=queue-card-meta><span class=queue-card-numbers><span>#`),h3=2,g3=2,_3=9,v3=e=>[`queued`,`waiting`,`watching`].includes(e.stage.status)?`queued`:e.stage.status===`in_progress`?`in_progress`:e.stage.status===`completed`||e.stage.status===`stopped`?e.kind===`judge`&&e.stage.score===null?`attention`:`completed`:`attention`,y3=e=>e.score===1?`Pass`:e.score===0?`Fail`:typeof e.score==`number`?`${Math.round(e.score*100)}%`:`Unknown`,b3=e=>e.kind===`judge`&&e.stage.score===null?`unknown`:e.stage.status;function x3(e){let[t,n]=A(``),[r,i]=A(Date.now());oe(()=>{let e=setInterval(()=>i(Date.now()),1e3);F(()=>clearInterval(e))});let a=N(()=>[...new Set(e.runs.map(e=>e.benchmarkId))]),o=N(()=>e.runs.find(t=>t.id===e.run));M(()=>{o()?n(o().benchmarkId):!t()&&a().length&&n(a()[0])});let s=N(()=>e.runs.filter(e=>e.benchmarkId===t()).toSorted((e,t)=>e.state.evalOrder-t.state.evalOrder)),c=N(()=>W4(s(),r())),l=N(()=>Ud(s().map(e=>e.cost))),u=N(()=>s().flatMap(e=>e.state.runs.map(t=>({key:`${e.id}:${t.id}`,group:e,run:t})))),d=N(()=>u().flatMap(({key:e,group:t,run:n})=>[{key:`${e}:eval`,group:t,run:n,kind:`eval`,stage:n.eval},{key:`${e}:judge`,group:t,run:n,kind:`judge`,stage:n.judge}])),f=[{id:`queued`,label:`Queued`,dot:`queued`},{id:`in_progress`,label:`In progress`,dot:`in_progress`},{id:`completed`,label:`Completed`,dot:`completed`},{id:`attention`,label:`Needs attention`,dot:`failed`}],p=e=>d().filter(t=>v3(t)===e).map(e=>e.key),m=()=>d().filter(e=>e.run.scheduled&&e.stage.status===`queued`).length,h=()=>d().filter(e=>e.run.scheduled&&[`waiting`,`watching`].includes(e.stage.status)).length,g=()=>d().filter(e=>e.run.scheduled===!1&&[`queued`,`waiting`,`watching`].includes(e.stage.status)).length,[_,v]=A({width:0,tick:h3,gap:g3,height:_3}),y=e=>{let t=()=>{let t=window.devicePixelRatio||1,n=e=>Math.max(1,Math.round(e*t))/t;v({width:e.getBoundingClientRect().width,tick:n(h3),gap:n(g3),height:n(_3)})},n=new ResizeObserver(([e])=>{e.contentRect.width!==_().width&&t()});n.observe(e),window.addEventListener(`resize`,t),F(()=>{n.disconnect(),window.removeEventListener(`resize`,t)})},b=N(()=>{let e=[`completed`,`attention`,`in_progress`,`queued`],t=d().map(e=>v3(e)).sort((t,n)=>e.indexOf(t)-e.indexOf(n));if(!t.length)return[];let{width:n,tick:r,gap:i}=_(),a=Math.floor((n+i)/(r+i)),o=Math.max(1,a||t.length);return Array.from({length:o},(e,n)=>{let r=Math.floor(n*t.length/o),i=Math.max(r+1,Math.floor((n+1)*t.length/o)),a=new Map;for(let e of t.slice(r,i))a.set(e,(a.get(e)??0)+1);let[s]=[...a.entries()].sort((e,t)=>t[1]-e[1])[0];return{column:s,title:[...a.entries()].map(([e,t])=>`${t} ${f.find(t=>t.id===e).label.toLowerCase()}`).join(`, `)}})}),x=()=>o()?.state.runs.find(t=>t.id===e.evalRun);return(()=>{var i=i3(),s=i.firstChild;s.firstChild;var v=s.nextSibling,S=v.firstChild;return K(s,z(H,{get when(){return a().length},get children(){return z(jd,{"aria-label":`Benchmark run`,get options(){return a()},get current(){return t()},label:t=>`Benchmark · ${$d(e.runs.find(e=>e.benchmarkId===t).state.startedAt)}`,onSelect:r=>{r&&r!==t()&&(e.onSelect(``,``),n(r))}})}}),null),K(i,z(H,{get when(){return u().length},get children(){return[(()=>{var e=e3();return K(e,z(Sl,{value:`Free workers immediately start ready work. Judges wait for finalized eval evidence.`,get children(){var e=Y4(),t=e.firstChild.nextSibling,n=t.firstChild;return K(t,()=>c().active,n),K(t,()=>c().concurrency,null),e}}),null),K(e,z(Sl,{get value(){return`Estimated from ${c().samples} completed eval/judge stage runtimes for the current execution scope, using ${c().concurrency} parallel workers. Idle gaps and deferred work are excluded.`},get children(){var e=X4(),t=e.firstChild,n=t.nextSibling;return K(t,()=>c().running?`ETA`:`Run ended`),K(n,(()=>{var e=U(()=>c().remainingMs!==null);return()=>e()?`About ${G4(c().remainingMs)} left`:U(()=>!!c().running)()?`Estimating…`:`${c().finished}/${c().total} finished`})()),e}}),null),K(e,z(H,{get when(){return c().finishAt!==null},get children(){var e=Z4(),t=e.firstChild.nextSibling;return K(t,()=>new Date(c().finishAt).toLocaleString([],{...new Date(c().finishAt).toDateString()===new Date(r()).toDateString()?{}:{month:`short`,day:`numeric`},hour:`numeric`,minute:`2-digit`})),e}}),null),K(e,z(Sl,{value:`Recorded eval and judge wall-clock runtime across all executions. Overlapping workers count once; idle gaps and passive monitoring are excluded.`,get children(){var e=Q4(),t=e.firstChild.nextSibling;return K(t,()=>ef(c().elapsedMs)),e}}),null),K(e,z(Sl,{value:`Reported eval and judge cost, including active-session usage and previous executions.`,get children(){var e=$4(),t=e.firstChild.nextSibling;return K(t,()=>Qd(l().reportedUSD)),e}}),null),e})(),(()=>{var e=t3();return _t(y,e),K(e,z(Ge,{get each(){return b()},children:e=>(()=>{var t=a3();return j(n=>{var r=e.column,i=e.title;return r!==n.e&&dt(t,n.e=r),i!==n.t&&G(t,`title`,n.t=i),n},{e:void 0,t:void 0}),t})()})),j(t=>{var n=`${_().tick}px`,r=`${_().gap}px`,i=`${_().height}px`,a=`${c().evals} of ${c().total} eval runs done, ${c().scored} scored`;return n!==t.e&&ht(e,`--strip-tick`,t.e=n),r!==t.t&&ht(e,`--strip-gap`,t.t=r),i!==t.a&&ht(e,`--strip-height`,t.a=i),a!==t.o&&G(e,`aria-label`,t.o=a),t},{e:void 0,t:void 0,a:void 0,o:void 0}),e})(),(()=>{var e=r3(),t=e.firstChild,n=t.firstChild.nextSibling,r=n.firstChild,i=r.firstChild,a=i.nextSibling.nextSibling;a.nextSibling;var o=r.nextSibling,s=o.firstChild,l=s.nextSibling.nextSibling;l.nextSibling;var u=t.nextSibling;return K(i,()=>c().evals),K(r,()=>c().total,a),K(s,()=>c().scored),K(o,()=>c().total,l),K(n,z(H,{get when(){return c().attention},get children(){var e=n3(),t=e.firstChild;return K(t,()=>c().attention),e}}),null),K(u,z(Ge,{get each(){return c().models.map(e=>e.key)},children:e=>{let t=()=>c().models.find(t=>t.key===e);return(()=>{var e=s3(),n=e.firstChild,r=n.firstChild,i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=i.nextSibling,c=s.firstChild,l=r.nextSibling,u=l.firstChild;return K(e,z(Fd,{get id(){return Kd(t().model)}}),n),K(a,()=>Gd(t().model)),K(o,()=>t().reasoning),K(c,(()=>{var e=U(()=>!!t().active);return()=>e()?`${t().active} running`:U(()=>!!t().stopped)()?`${t().stopped} stopped`:U(()=>t().completed+t().attention===t().total)()?`Done`:t().scheduled?`Queued`:`Not scheduled`})()),K(s,z(Sl,{get value(){return`${t().completed} of ${t().total} eval and judge stages completed${t().attention?`, ${t().attention} need attention`:``}`},get children(){var e=o3(),n=e.firstChild;return K(e,()=>t().completed,n),K(e,()=>t().total,null),e}}),null),j(e=>{var n=`${Gd(t().model)} · ${t().reasoning} completed stages`,r=t().total,i=t().completed,a=`${t().completed/t().total*100}%`;return n!==e.e&&G(l,`aria-label`,e.e=n),r!==e.t&&G(l,`aria-valuemax`,e.t=r),i!==e.a&&G(l,`aria-valuenow`,e.a=i),a!==e.o&&ht(u,`width`,e.o=a),e},{e:void 0,t:void 0,a:void 0,o:void 0}),e})()}})),e})()]}}),v),K(S,z(Ge,{each:f,children:t=>(()=>{var n=d3(),i=n.firstChild,a=i.firstChild,o=a.nextSibling,s=i.nextSibling;return K(o,()=>t.label),K(i,z(Io,{get children(){return U(()=>t.id===`queued`)()?`${m()} ready`:p(t.id).length}}),null),K(i,z(H,{get when(){return U(()=>t.id===`queued`)()&&h()},get children(){var e=c3(),t=e.firstChild;return K(e,h,t),e}}),null),K(i,z(H,{get when(){return U(()=>t.id===`queued`)()&&g()},get children(){var e=l3(),t=e.firstChild;return K(e,g,t),e}}),null),K(s,z(Ge,{get each(){return p(t.id)},children:t=>{let n=()=>d().find(e=>e.key===t),i=()=>e.run===n().group.id&&e.evalRun===n().run.id&&e.stage===n().kind,a=()=>Wd(n().stage,zd(r(),n().group.state.heartbeatAt,n().group.state.status===`running`)),o=()=>K2()?`Hidden eval`:n().group.state.eval,s=()=>n().run.scheduled===!1&&[`queued`,`waiting`,`watching`].includes(n().stage.status)?`Not scheduled`:n().kind===`judge`&&n().stage.status===`completed`?y3(n().stage):n().stage.status===`waiting`?`Waiting for eval run`:n().stage.status===`blocked`?`Blocked by eval run`:tf(n().stage.status);return(()=>{var r=m3(),c=r.firstChild,l=c.firstChild,u=l.nextSibling,d=u.nextSibling,f=d.nextSibling,p=c.nextSibling,m=p.firstChild,h=m.firstChild;return h.firstChild,r.$$click=()=>{K2()||e.onSelect(n().group.id,n().run.id,n().kind)},G(r,`data-run-key`,t),K(u,()=>Gd(n().run.model)),K(d,()=>n().run.reasoning),K(f,z(X,{get name(){return n().kind===`eval`?`flask`:`shield`}})),K(p,z(Y2,{get children(){return n().group.state.eval}}),m),K(m,z(H,{get when(){return U(()=>n().kind===`eval`)()&&n().stage.status===`stopped`},get children(){var e=f3();return j(()=>G(e,`title`,`Stopped after judge check through evidence event ${n().run.stop?.checkpoint.through??``}`)),e}}),h),K(m,z(H,{get when(){return U(()=>n().stage.status===`in_progress`)()&&a()!==void 0},get children(){var e=p3();return K(e,()=>ef(a())),e}}),h),K(m,z(H,{get when(){return U(()=>n().kind===`judge`)()&&n().stage.status===`completed`},get children(){var e=a3();return K(e,()=>y3(n().stage)),j(()=>dt(e,`verdict ${y3(n().stage).toLowerCase()}`)),e}}),h),K(h,()=>n().run.repetition,null),j(e=>{var t=n().kind,a=n().stage.status,c=!!i(),u=i(),d=K2(),p=`${n().kind===`eval`?`Eval run`:`Judge`}, ${Gd(n().run.model)}, ${n().run.reasoning}, ${o()}, run ${n().run.repetition}, ${s()}`,m=`status-dot ${b3(n())}`,h=n().kind,g=`${n().kind===`eval`?`Eval run`:`Judge`} · ${s()}`,_=n().kind===`eval`?`Eval run`:`Judge`;return t!==e.e&&G(r,`data-stage`,e.e=t),a!==e.t&&G(r,`data-state`,e.t=a),c!==e.a&&r.classList.toggle(`selected`,e.a=c),u!==e.o&&G(r,`aria-pressed`,e.o=u),d!==e.i&&(r.disabled=e.i=d),p!==e.n&&G(r,`aria-label`,e.n=p),m!==e.s&&dt(l,e.s=m),h!==e.h&&G(f,`data-stage`,e.h=h),g!==e.r&&G(f,`title`,e.r=g),_!==e.d&&G(f,`aria-label`,e.d=_),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),r})()}}),null),K(s,z(H,{get when(){return!p(t.id).length},get children(){var e=u3();return K(e,()=>t.id===`attention`?`Nothing needs attention`:`No eval or judge runs`),e}}),null),j(e=>{var r=`queue-${t.id}`,i=`status-dot ${t.dot}`,c=`queue-${t.id}`,l=`${t.label} eval and judge runs`;return r!==e.e&&G(n,`aria-labelledby`,e.e=r),i!==e.t&&dt(a,e.t=i),c!==e.a&&G(o,`id`,e.a=c),l!==e.o&&G(s,`aria-label`,e.o=l),e},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()})),K(v,z(H,{get when(){return U(()=>!K2())()&&x()},get children(){return z(I4,{open:!0,get title(){return`${Gd(x().model)} ${e.stage===`judge`?`judge`:`eval run`}`},onClose:()=>e.onSelect(``,``),get children(){return z(J4,{get run(){return o()},get selected(){return x()},get stage(){return e.stage},onBack:()=>e.onSelect(``,``)})}})}}),null),i})()}ct([`click`]);function S3(e={}){let[t,n]=ja({value:()=>q(e.isSelected),defaultValue:()=>!!q(e.defaultIsSelected),onChange:t=>e.onSelectedChange?.(t)});return{isSelected:t,setIsSelected:t=>{!q(e.isReadOnly)&&!q(e.isDisabled)&&n(t)},toggle:()=>{!q(e.isReadOnly)&&!q(e.isDisabled)&&n(!t())}}}La({},{Checkbox:()=>N3,Control:()=>T3,Description:()=>E3,ErrorMessage:()=>D3,Indicator:()=>O3,Input:()=>k3,Label:()=>A3,Root:()=>j3,useCheckboxContext:()=>w3});var C3=L();function w3(){let e=R(C3);if(e===void 0)throw Error("[kobalte]: `useCheckboxContext` must be used within a `Checkbox` component");return e}function T3(e){let t=Iu(),n=w3(),[r,i]=V(Hi({id:n.generateId(`control`)},e),[`onClick`,`onKeyDown`]);return z(Ea,B({as:`div`,onClick:e=>{vi(e,r.onClick),n.toggle(),n.inputRef()?.focus({preventScroll:!0})},onKeyDown:e=>{vi(e,r.onKeyDown),e.key===ci.Space&&(n.toggle(),n.inputRef()?.focus({preventScroll:!0}))}},()=>t.dataset(),()=>n.dataset(),i))}function E3(e){let t=w3();return z(Lu,B(()=>t.dataset(),e))}function D3(e){let t=w3();return z(cd,B(()=>t.dataset(),e))}function O3(e){let t=Iu(),n=w3(),[r,i]=A(),[a,o]=V(Hi({id:n.generateId(`indicator`)},e),[`ref`,`forceMount`]),{present:s}=io({show:()=>a.forceMount||n.indeterminate()||n.checked(),element:()=>r()??null});return z(H,{get when(){return s()},get children(){return z(Ea,B({as:`div`,ref(e){var t=Xr(i,a.ref);typeof t==`function`&&t(e)}},()=>t.dataset(),()=>n.dataset(),o))}})}function k3(e){let t,n=Iu(),r=w3(),[i,a,o]=V(Hi({id:r.generateId(`input`)},e),[`ref`,`style`,`onChange`,`onFocus`,`onBlur`],nd),{fieldProps:s}=rd(a),[c,l]=A(!1);return M(ae([()=>r.checked(),()=>r.value()],()=>{l(!0),t?.dispatchEvent(new Event(`input`,{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event(`change`,{bubbles:!0,cancelable:!0}))},{defer:!0})),M(ae([()=>t,()=>r.indeterminate(),()=>r.checked()],([e,t])=>{e&&(e.indeterminate=t)})),z(Ea,B({as:`input`,ref(e){var n=Xr(e=>{r.setInputRef(e),t=e},i.ref);typeof n==`function`&&n(e)},type:`checkbox`,get id(){return s.id()},get name(){return n.name()},get value(){return r.value()},get checked(){return r.checked()},get required(){return n.isRequired()},get disabled(){return n.isDisabled()},get readonly(){return n.isReadOnly()},get style(){return Yr(Ji,i.style)},get"aria-label"(){return s.ariaLabel()},get"aria-labelledby"(){return s.ariaLabelledBy()},get"aria-describedby"(){return s.ariaDescribedBy()},get"aria-invalid"(){return n.validationState()===`invalid`||void 0},get"aria-required"(){return n.isRequired()},get"aria-disabled"(){return n.isDisabled()},get"aria-readonly"(){return n.isReadOnly()},onChange:e=>{if(vi(e,i.onChange),e.stopPropagation(),!c()){let t=e.target;r.setIsChecked(t.checked),t.checked=r.checked()}l(!1)},onFocus:e=>{vi(e,i.onFocus),r.setIsFocused(!0)},onBlur:e=>{vi(e,i.onBlur),r.setIsFocused(!1)}},()=>n.dataset(),()=>r.dataset(),o))}function A3(e){let t=w3();return z(id,B(()=>t.dataset(),e))}function j3(e){let t,[n,r,i]=V(Hi({value:`on`,id:`checkbox-${Ue()}`},e),[`ref`,`children`,`value`,`checked`,`defaultChecked`,`indeterminate`,`onChange`,`onPointerDown`],Nu),[a,o]=A(),[s,c]=A(!1),{formControlContext:l}=Pu(r),u=S3({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:e=>n.onChange?.(e),isDisabled:()=>l.isDisabled(),isReadOnly:()=>l.isReadOnly()});ad(()=>t,()=>u.setIsSelected(n.defaultChecked??!1));let d=e=>{vi(e,n.onPointerDown),s()&&e.preventDefault()},f=N(()=>({"data-checked":u.isSelected()?``:void 0,"data-indeterminate":n.indeterminate?``:void 0})),p={value:()=>n.value,dataset:f,checked:()=>u.isSelected(),indeterminate:()=>n.indeterminate??!1,inputRef:a,generateId:ni(()=>q(r.id)),toggle:()=>u.toggle(),setIsChecked:e=>u.setIsSelected(e),setIsFocused:c,setInputRef:o};return z(Fu.Provider,{value:l,get children(){return z(C3.Provider,{value:p,get children(){return z(Ea,B({as:`div`,ref(e){var r=Xr(e=>t=e,n.ref);typeof r==`function`&&r(e)},role:`group`,get id(){return q(r.id)},onPointerDown:d},()=>l.dataset(),f,i,{get children(){return z(M3,{state:p,get children(){return n.children}})}}))}})}})}function M3(e){return U(pe(()=>{let t=e.children;return ti(t)?t(e.state):t}))}var N3=Object.assign(j3,{Control:T3,Description:E3,ErrorMessage:D3,Indicator:O3,Input:k3,Label:A3}),P3=W(`<div data-slot=checkbox-checkbox-content>`),F3=W(`<svg viewBox="0 0 12 12"fill=none width=10 height=10 xmlns=http://www.w3.org/2000/svg><path d="M3 7.17905L5.02703 8.85135L9 3.5"stroke=currentColor stroke-width=1.5 stroke-linecap=square>`);function I3(e){let[t,n]=V(e,[`children`,`class`,`label`,`hideLabel`,`description`,`icon`]);return z(j3,B(n,{"data-component":`checkbox`,get children(){return[z(k3,{"data-slot":`checkbox-checkbox-input`}),z(T3,{"data-slot":`checkbox-checkbox-control`,get children(){return z(O3,{"data-slot":`checkbox-checkbox-indicator`,get children(){return t.icon||F3()}})}}),(()=>{var n=P3();return K(n,z(H,{get when(){return e.children},get children(){return z(A3,{"data-slot":`checkbox-checkbox-label`,get classList(){return{"sr-only":t.hideLabel}},get children(){return e.children}})}}),null),K(n,z(H,{get when(){return t.description},get children(){return z(E3,{"data-slot":`checkbox-checkbox-description`,get children(){return t.description}})}}),null),K(n,z(D3,{"data-slot":`checkbox-checkbox-error`}),null),n})()]}}))}La({},{Anchor:()=>z3,Arrow:()=>Qc,CloseButton:()=>B3,Content:()=>V3,Description:()=>H3,Popover:()=>J3,Portal:()=>U3,Root:()=>G3,Title:()=>K3,Trigger:()=>q3,usePopoverContext:()=>R3});var L3=L();function R3(){let e=R(L3);if(e===void 0)throw Error("[kobalte]: `usePopoverContext` must be used within a `Popover` component");return e}function z3(e){let t=R3(),[n,r]=V(e,[`ref`]);return z(Ea,B({as:`div`,ref(e){var r=Xr(t.setDefaultAnchorRef,n.ref);typeof r==`function`&&r(e)}},()=>t.dataset(),r))}function B3(e){let t=R3(),[n,r]=V(e,[`aria-label`,`onClick`]);return z(Ba,B({get"aria-label"(){return n[`aria-label`]||t.translations().dismiss},onClick:e=>{vi(e,n.onClick),t.close()}},()=>t.dataset(),r))}function V3(e){let t,n=R3(),[r,i]=V(Hi({id:n.generateId(`content`)},e),[`ref`,`style`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onPointerDownOutside`,`onFocusOutside`,`onInteractOutside`]),a=!1,o=!1,s=!1,c=e=>{r.onCloseAutoFocus?.(e),n.isModal()?(e.preventDefault(),a||xi(n.triggerRef())):(e.defaultPrevented||(o||xi(n.triggerRef()),e.preventDefault()),o=!1,s=!1)},l=e=>{r.onPointerDownOutside?.(e),n.isModal()&&(a=e.detail.isContextMenu)},u=e=>{r.onFocusOutside?.(e),n.isOpen()&&n.isModal()&&e.preventDefault()},d=e=>{r.onInteractOutside?.(e),!n.isModal()&&(e.defaultPrevented||(o=!0,e.detail.originalEvent.type===`pointerdown`&&(s=!0)),ri(n.triggerRef(),e.target)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&s&&e.preventDefault())};return va({isDisabled:()=>!(n.isOpen()&&n.isModal()),targets:()=>t?[t]:[]}),ro({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),ga({trapFocus:()=>n.isOpen()&&n.isModal(),onMountAutoFocus:r.onOpenAutoFocus,onUnmountAutoFocus:c},()=>t),M(()=>F(n.registerContentId(i.id))),z(H,{get when(){return n.contentPresent()},get children(){return z(sl.Positioner,{get children(){return z(ka,B({ref(e){var i=Xr(e=>{n.setContentRef(e),t=e},r.ref);typeof i==`function`&&i(e)},role:`dialog`,tabIndex:-1,get disableOutsidePointerEvents(){return U(()=>!!n.isOpen())()&&n.isModal()},get excludedElements(){return[n.triggerRef]},get style(){return Yr({"--kb-popover-content-transform-origin":`var(--kb-popper-content-transform-origin)`,position:`relative`},r.style)},get"aria-labelledby"(){return n.titleId()},get"aria-describedby"(){return n.descriptionId()},onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,get onDismiss(){return n.close}},()=>n.dataset(),i))}})}})}function H3(e){let t=R3(),[n,r]=V(Hi({id:t.generateId(`description`)},e),[`id`]);return M(()=>F(t.registerDescriptionId(n.id))),z(Ea,B({as:`p`,get id(){return n.id}},()=>t.dataset(),r))}function U3(e){let t=R3();return z(H,{get when(){return t.contentPresent()},get children(){return z(Mt,e)}})}var W3={dismiss:`Dismiss`};function G3(e){let[t,n]=V(Hi({id:`popover-${Ue()}`,modal:!1,translations:W3},e),[`translations`,`id`,`open`,`defaultOpen`,`onOpenChange`,`modal`,`preventScroll`,`forceMount`,`anchorRef`]),[r,i]=A(),[a,o]=A(),[s,c]=A(),[l,u]=A(),[d,f]=A(),[p,m]=A(),h=Na({open:()=>t.open,defaultOpen:()=>t.defaultOpen,onOpenChange:e=>t.onOpenChange?.(e)}),g=()=>t.anchorRef?.()??r()??a(),{present:_}=io({show:()=>t.forceMount||h.isOpen(),element:()=>s()??null}),v={translations:()=>t.translations??W3,dataset:N(()=>({"data-expanded":h.isOpen()?``:void 0,"data-closed":h.isOpen()?void 0:``})),isOpen:h.isOpen,isModal:()=>t.modal??!1,preventScroll:()=>t.preventScroll??v.isModal(),contentPresent:_,triggerRef:a,contentId:l,titleId:d,descriptionId:p,setDefaultAnchorRef:i,setTriggerRef:o,setContentRef:c,close:h.close,toggle:h.toggle,generateId:ni(()=>t.id),registerContentId:Ha(u),registerTitleId:Ha(f),registerDescriptionId:Ha(m)};return z(L3.Provider,{value:v,get children(){return z(sl,B({anchorRef:g,contentRef:s},n))}})}function K3(e){let t=R3(),[n,r]=V(Hi({id:t.generateId(`title`)},e),[`id`]);return M(()=>F(t.registerTitleId(n.id))),z(Ea,B({as:`h2`,get id(){return n.id}},()=>t.dataset(),r))}function q3(e){let t=R3(),[n,r]=V(e,[`ref`,`onClick`,`onPointerDown`]);return z(Ba,B({ref(e){var r=Xr(t.setTriggerRef,n.ref);typeof r==`function`&&r(e)},"aria-haspopup":`dialog`,get"aria-expanded"(){return t.isOpen()},get"aria-controls"(){return U(()=>!!t.isOpen())()?t.contentId():void 0},onPointerDown:e=>{vi(e,n.onPointerDown),e.preventDefault()},onClick:e=>{vi(e,n.onClick),t.toggle()}},()=>t.dataset(),r))}var J3=Object.assign(G3,{Anchor:z3,Arrow:Qc,CloseButton:B3,Content:V3,Description:H3,Portal:U3,Title:K3,Trigger:q3}),Y3=W(`<div data-slot=popover-header>`),X3=W(`<div data-slot=popover-body>`);function Z3(e){let t=Al(),[n,r]=V(e,[`trigger`,`triggerAs`,`triggerProps`,`title`,`description`,`class`,`classList`,`style`,`children`,`portal`,`open`,`defaultOpen`,`onOpenChange`,`modal`]),[i,a]=$t({contentRef:void 0,triggerRef:void 0,dismiss:null,uncontrolledOpen:n.defaultOpen??!1}),o=()=>n.open!==void 0,s=()=>o()?n.open??!1:i.uncontrolledOpen,c=e=>{e&&a(`dismiss`,null),n.onOpenChange&&n.onOpenChange(e),!o()&&a(`uncontrolledOpen`,e)};M(()=>{if(!s())return;let e=e=>{if(!e)return!1;let t=i.contentRef;if(t&&t.contains(e))return!0;let n=i.triggerRef;return!!(n&&n.contains(e))},t=e=>{a(`dismiss`,e),c(!1)};pn(window,`keydown`,e=>{e.key===`Escape`&&(t(`escape`),e.preventDefault(),e.stopPropagation())},{capture:!0}),pn(window,`pointerdown`,n=>{let r=n.target;r instanceof Node&&(e(r)||t(`outside`))},{capture:!0}),pn(window,`focusin`,n=>{let r=n.target;r instanceof Node&&(e(r)||t(`outside`))},{capture:!0})});let l=()=>z(J3.Content,{ref:e=>a(`contentRef`,e),"data-component":`popover-content`,get classList(){return{...n.classList,[n.class??``]:!!n.class}},get style(){return n.style},onCloseAutoFocus:e=>{i.dismiss===`outside`&&e.preventDefault(),a(`dismiss`,null)},get children(){return[z(H,{get when(){return n.title},get children(){var e=Y3();return K(e,z(J3.Title,{"data-slot":`popover-title`,get children(){return n.title}}),null),K(e,z(J3.CloseButton,{"data-slot":`popover-close-button`,as:Lo,get icon(){return z(X,{name:`close`})},variant:`ghost`,get"aria-label"(){return t.t(`ui.common.close`)}}),null),e}}),z(H,{get when(){return n.description},get children(){return z(J3.Description,{"data-slot":`popover-description`,get children(){return n.description}})}}),(()=>{var e=X3();return K(e,()=>n.children),e})()]}});return z(J3,B({gutter:4},r,{get open(){return s()},onOpenChange:c,get modal(){return n.modal??!1},get children(){return[z(J3.Trigger,B({ref:e=>a(`triggerRef`,e),get as(){return n.triggerAs??`div`},"data-slot":`popover-trigger`},()=>n.triggerProps,{get children(){return n.trigger}})),z(H,{get when(){return n.portal??!0},get fallback(){return l()},get children(){return z(J3.Portal,{get children(){return l()}})}})]}}))}var Q3=W(`<p class=model-filter-hint>Show models matching any selection.`),$3=W(`<div class=model-filter-groups>`),e6=W(`<div class=model-filter-footer><span> of <!> models`),t6=W(`<div class=model-filter>`),n6=W(`<span>`),r6=W(`<fieldset><legend>`),i6=W(`<div class=model-filter-option><span>`);function a6(e){let t=N(()=>[`lab`,`family`].map(t=>{let n=new Map;for(let r of e.models){let e=Jd(r)[t];n.set(e,(n.get(e)??0)+1)}return{kind:t,label:t===`lab`?`Labs`:`Model families`,options:[...n].sort(([e],[t])=>e.localeCompare(t)).map(([e,n])=>({key:`${t}:${e}`,label:e,count:n}))}})),n=()=>e.selected.map(e=>e.slice(e.indexOf(`:`)+1)),r=()=>n().length?n().length===1?n()[0]:`${n()[0]} +${n().length-1}`:`All models`,i=(t,n)=>e.onChange(n?[...new Set([...e.selected,t])]:e.selected.filter(e=>e!==t));return(()=>{var a=t6();return K(a,z(Z3,{title:`Labs / model families`,placement:`bottom-end`,class:`model-filter-popover`,triggerAs:Po,get triggerProps(){return{size:`small`,variant:`outline`,"aria-label":`Filter labs and model families: ${n().join(`, `)||`All models`}`}},get trigger(){return[(()=>{var e=n6();return K(e,r),e})(),z(X,{name:`chevron-down`})]},get children(){return[Q3(),(()=>{var n=$3();return K(n,z(Ge,{get each(){return t()},children:t=>(()=>{var n=r6(),r=n.firstChild;return K(r,()=>t.label),K(n,z(Ge,{get each(){return t.options},children:t=>(()=>{var n=i6(),r=n.firstChild;return K(n,z(I3,{get checked(){return e.selected.includes(t.key)},onChange:e=>i(t.key,e),get children(){return t.label}}),r),K(r,()=>t.count),j(()=>G(r,`aria-label`,`${t.count} models`)),n})()}),null),n})()})),n})(),(()=>{var t=e6(),n=t.firstChild,r=n.firstChild,i=r.nextSibling;return i.nextSibling,K(n,()=>e.models.filter(t=>Yd(t,e.selected)).length,r),K(n,()=>e.models.length,i),K(t,z(Po,{size:`small`,variant:`ghost-muted`,get disabled(){return!e.selected.length},onClick:()=>e.onChange([]),children:`Clear filters`}),null),t})()]}}),null),K(a,z(H,{get when(){return e.selected.length},get children(){return z(Po,{size:`small`,variant:`ghost-muted`,"aria-label":`Clear model filters`,onClick:()=>e.onChange([]),children:`Clear`})}}),null),a})()}var o6={width:1600,height:900},s6=e=>{let t=document.createElement(`span`);t.style.color=`var(${e})`,t.hidden=!0,document.body.append(t);let n=getComputedStyle(t).color;return t.remove(),n},c6=async(e,t)=>{let n=document.createElement(`div`);n.hidden=!0,document.body.append(n);let r=st(()=>z(Ge,{each:e,children:e=>z(Fd,{id:e})}),n),i=new Map;try{return await Promise.all([...n.querySelectorAll(`use`)].map(async e=>{let n=new URL(e.getAttribute(`href`),location.href),r=n.hash.slice(1);n.hash=``,i.has(n.href)||i.set(n.href,fetch(n).then(async e=>{if(!e.ok)throw Error(`Could not load model icons`);return new DOMParser().parseFromString(await e.text(),`image/svg+xml`)}));let a=(await i.get(n.href)).getElementById(r);if(!a)throw Error(`Missing model icon: ${r}`);let o=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);o.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),o.setAttribute(`viewBox`,a.getAttribute(`viewBox`)??`0 0 40 40`),o.setAttribute(`width`,`128`),o.setAttribute(`height`,`128`),o.setAttribute(`color`,t);for(let e of a.childNodes)o.append(e.cloneNode(!0));let s=URL.createObjectURL(new Blob([new XMLSerializer().serializeToString(o)],{type:`image/svg+xml`}));try{let e=new Image;return e.src=s,await e.decode(),e}finally{URL.revokeObjectURL(s)}}))}finally{r(),n.remove()}};async function l6(e){if(!e.scores.length)throw Error(`No model totals to export`);await document.fonts.load(`600 84px Inter`),await document.fonts.load(`440 24px Inter`);let t=e.scores.map(e=>({...e,percentage:typeof e.percentage==`number`&&Number.isFinite(e.percentage)&&e.percentage>=0&&e.percentage<=100?e.percentage:null})).sort((e,t)=>Vd(t).lower-Vd(e).lower),n={background:s6(`--app-bg`),text:s6(`--app-text`),muted:s6(`--app-muted`),border:s6(`--app-border`),bar:s6(`--app-success`)},r=[...new Set(t.map(e=>Kd(e.model)))],i=await c6(r,n.text),a=document.createElement(`canvas`);a.width=o6.width,a.height=o6.height;let o=a.getContext(`2d`);if(!o)throw Error(`Image export is unavailable in this browser`);o.fillStyle=n.background,o.fillRect(0,0,a.width,a.height),o.textBaseline=`alphabetic`;let s=(e,t,n,r,i,a,s=600,c=`left`)=>{o.font=`${s} ${r}px Inter, sans-serif`;let l=o.measureText(e).width;l>i&&(o.font=`${s} ${r*i/l}px Inter, sans-serif`),o.fillStyle=a,o.textAlign=c,o.fillText(e,t,n)};s(e.name,40,99,82,1520,n.text);let c=(a.height-145-24)/t.length;return t.forEach((e,t)=>{let a=Vd(e),l=145+c*t,u=l+c/2,d=Math.min(72,c*.62),f=Math.min(44,c*.37),p=Math.min(88,c*.76);o.strokeStyle=n.border,o.lineWidth=1,o.beginPath(),o.moveTo(40,l),o.lineTo(1560,l),o.stroke(),o.drawImage(i[r.indexOf(Kd(e.model))],36,u-d/2,d,d),s(Gd(e.model),132,u-1,f,520,n.text),s(qd(e.model),134,u+Math.min(30,c*.26),Math.min(25,c*.22),510,n.muted,440);let m=Math.min(32,c*.28);if(a.lower>0&&(o.fillStyle=n.bar,o.fillRect(700,u-m/2,510*a.lower/100,m)),a.upper>a.lower+1e-6){let e=700+510*a.lower/100,t=700+510*a.upper/100;o.strokeStyle=n.muted,o.lineWidth=2,o.beginPath(),o.moveTo(e,u),o.lineTo(t,u),o.stroke(),o.lineWidth=3,o.beginPath(),o.moveTo(Math.round(t)+.5,u-10),o.lineTo(Math.round(t)+.5,u+10),o.stroke()}let h=a.upper>a.lower+1e-6?`${Xd(a.lower)}–${Xd(a.upper)}%`:`${Xd(a.lower)}%`;s(h,1560,u+p*.34,p,310,e.percentage===null?n.muted:n.text,600,`right`)}),new Promise((e,t)=>a.toBlob(n=>n?e(n):t(Error(`Could not encode the PNG`)),`image/png`))}async function u6(e,t){let n=await l6(e),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`${e.name.replace(/[^a-zA-Z0-9_.-]/g,`-`)}-${t.slice(0,10)}-results.png`,document.body.append(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}var d6=W(`<button class=history-item><div><span></span><strong></strong></div><small><span> models`),f6=W(`<button class=activity-link><span>Currently running`),p6=W(`<p class=sidebar-empty>No benchmark runs yet.`),m6=W(`<div class=error-banner role=alert>`),h6=W(`<div class=error-banner>`),g6=W(`<div class=app-shell><header class=app-titlebar><div class=app-brand><strong>OpenEval</strong><span class=titlebar-divider></span> <span>Results</span></div><div class=titlebar-actions></div></header><aside class=sidebar><div class=sidebar-heading><span>RUN HISTORY</span></div><div class=history-scroll><div class=history-group><span class=group-label>Benchmark runs</span></div></div><div class=sidebar-footer><span></span></div></aside><main class=main-panel>`),_6=W(`<div class=eval-selector><span id=eval-label>Evaluation`),v6=W(`<div class=run-facts><div><span>Models</span><strong></strong></div><div><span>Evaluations</span><strong></strong></div><div><span>Scored checks</span><strong> <small>/ </small></strong></div><div><span></span><strong></strong></div><div><span></span><strong>`),y6=W(`<div class=pending-note><p>`),b6=W(`<p class=section-caption>Opening eval run…`),x6=W(`<div class=results-page><div class=page-heading><div><div class=breadcrumb></div><h1></h1><p><span>·</span></p></div><div class=results-actions></div></div><div class=results-toolbar></div><section class=chart-panel><div class=panel-heading><h2>`),S6=W(`<div class=empty-state><h1></h1><p>Run a benchmark, then its model comparisons will appear here.`),C6=W(`<div class=empty-state>Loading eval run…`),w6=W(`<div class=model-filter-empty><p>No models match these filters.`),T6=()=>{if(history.state?.openevalRoute)return history.state.openevalRoute;let e=new URLSearchParams(location.search);return{id:e.get(`result`)??``,view:e.get(`view`)===`trace`?e.get(`eval`)?`evals`:`results`:[`evals`,`activity`].includes(e.get(`view`)??``)?e.get(`view`):`results`,eval:e.get(`eval`)??``,run:e.get(`run`)??``,evalRun:e.get(`evalRun`)??``,stage:e.get(`stage`)===`judge`?`judge`:`eval`,models:e.get(`models`)??``}},E6=async e=>{let t=await fetch(e);if(!t.ok)throw Error((await t.json().catch(()=>({}))).error??`Request failed (${t.status})`);return t.json()},D6=new Map,O6=new Map,k6=(e,t,n=0)=>{let r=`${e}:${t}`,i=D6.get(r);if(i&&i.entry.updatedAt>=n)return i;let a=O6.get(r);if(a)return a;let o=E6(`/api/result?id=${encodeURIComponent(e)}&format=${t}`).then(e=>(D6.delete(r),D6.set(r,e),D6.size>8&&D6.delete(D6.keys().next().value),e)).finally(()=>O6.delete(r));return O6.set(r,o),o};function A6(e){let t=!1;return oe(()=>{queueMicrotask(()=>{t=!0})}),z(Mu,{variant:`pill`,get value(){return e.value},class:`level-tabs`,onChange:n=>{t&&[`results`,`evals`].includes(e.value)&&n!==e.value&&e.onChange(n)},get children(){return z(Mu.List,{get children(){return[z(Mu.Trigger,{value:`results`,children:`Benchmark results`}),z(Mu.Trigger,{value:`evals`,children:`Eval breakdown`})]}})}})}function j6(){let e=zr(),[t,n]=A(T6()),[r,i]=A(``),[a,o]=A(!1),[s,c]=A(``),[l,u]=A(!1),[d,f]=A(Date.now());oe(()=>{let e=setInterval(()=>f(Date.now()),1e3);F(()=>clearInterval(e))});let[p,m]=A(!1),[h,g]=re(()=>E6(`/api/results`)),_=()=>h()?.public??!1,[v,y]=re(()=>h()&&!h().public,()=>E6(`/api/activity`)),b=e=>h()?.entries.find(t=>t.id===e.split(`~`)[0])?.updatedAt,x=e=>k6(e,`runs`,b(e)),S=()=>t().view!==`activity`&&!!t().run&&!!t().evalRun&&!_()&&!K2(),[C]=re(()=>!!t().id&&{id:t().id,version:b(t().id)},({id:e,version:t})=>k6(e,`summary`,t)),[w]=re(()=>S()&&!!t().run&&{id:t().run,version:b(t().run)},({id:e,version:t})=>k6(e,`runs`,t)),T=N(()=>C()?.overview),E=()=>w()?.entry.id===t().run?w():void 0,D=N(()=>t().eval||T()?.evals[0]||``),O=(e,r=!1)=>{let i={...t(),...e};n(i);let a=new URLSearchParams;for(let[e,t]of Object.entries({result:K2()?i.id.split(`~`)[0]:i.id,view:i.view===`results`?``:i.view,eval:K2()?``:i.eval,run:K2()?``:i.run,evalRun:K2()?``:i.evalRun,stage:!K2()&&i.evalRun&&i.stage===`judge`?`judge`:``,models:i.models}))t&&a.set(e,t);history[r?`replaceState`:`pushState`]({openevalRoute:i},``,`?`+a.toString()),c(``)};M(ae(K2,e=>{try{localStorage.setItem(G2,String(e))}catch{}O(e?{run:``,evalRun:``}:{},!0)}));let k=e=>{O({id:e.id,view:`results`,eval:``,run:``,evalRun:``}),o(!1)},ee=()=>O({run:``,evalRun:``});M(()=>{let e=h()?.entries;if(e?.length&&!e.some(e=>e.id===t().id.split(`~`)[0])){let t=e.find(e=>e.kind===`benchmark`)??e[0];O({id:t.id,run:``,evalRun:``},!0)}_()&&t().view!==`results`&&O({view:`results`,eval:``,run:``,evalRun:``},!0)}),oe(()=>{e.setTheme(`oc-2`),e.setColorScheme(`dark`);let t=()=>{let e=T6();K2()?O({...e,run:``,evalRun:``},!0):n(e)};window.addEventListener(`popstate`,t);let r=()=>{h.loading||g.refetch(),h()&&!h().public&&!v.loading&&y.refetch()},i=new EventSource(`/api/events`);i.addEventListener(`change`,r);let a=setInterval(r,5e3);F(()=>{i.close(),clearInterval(a),window.removeEventListener(`popstate`,t)})});let te=e=>h()?.entries.filter(t=>t.kind===e&&`${t.name} ${t.startedAt}`.toLowerCase().includes(r().toLowerCase()))??[],ne=N(()=>t().models.split(`,`).filter(Boolean)),ie=()=>ue().reduce((e,t)=>e+t.components.reduce((e,t)=>e+t.scored,0),0)??0,P=()=>ue().reduce((e,t)=>e+t.components.reduce((e,t)=>e+t.expected,0),0),se=()=>{let e=t().view===`evals`?C()?.related.find(e=>e.eval===D())?.runtime:T()?.runtime,n=e?Ld(e,zd(d(),C()?.entry.updatedAt,T()?.status===`running`)):void 0;return n===void 0?`—`:ef(n)},ce=()=>{let e=t().view===`evals`?T()?.evalCosts?.[D()]:T()?.cost;return e?.usd??(T()?.status===`running`?e?.reportedUSD:void 0)},le=N(()=>T()?.scores.map(e=>{let t=e.components.filter(e=>e.eval===D());return Bd(e.model,t)})??[]),ue=N(()=>(t().view===`evals`?le():T()?.scores??[]).filter(e=>Yd(e.model,ne()))),de=async e=>{let n=t(),r=C();if(!(!r||_()||K2())){u(!0);try{let i=r.entry.kind===`eval`?r.entry.id:r.related.find(e=>e.eval===D())?.id;if(!i)throw Error(`This eval has not saved its results yet.`);let a=x(i),o=a instanceof Promise?await a:a;if(t()!==n||K2())return;let s=o.runs.find(t=>t.model===e.split(`#`)[0]&&t.reasoning===(e.split(`#`)[1]??`default`));if(!s)throw Error(`No saved eval run for this model yet.`);O({run:i,evalRun:s.id,eval:o.eval})}catch(e){c(e instanceof Error?e.message:String(e))}finally{u(!1)}}},fe=()=>{let e=T();if(!e)return;let t=new Blob([JSON.stringify({benchmark:K2()&&e.kind===`eval`?`Evaluation results`:e.name,startedAt:e.startedAt,filters:ne(),scores:ue().map(e=>({model:e.model,percentage:e.percentage,bounds:Vd(e)}))},null,2)],{type:`application/json`}),n=URL.createObjectURL(t),r=window.document.createElement(`a`);r.href=n,r.download=`${K2()&&e.kind===`eval`?`evaluation`:e.name}-totals.json`,r.click(),URL.revokeObjectURL(n)},I=async()=>{let e=T();if(e&&!p()){m(!0);try{await u6({name:K2()&&(t().view===`evals`||e.kind===`eval`)?`Evaluation results`:t().view===`evals`?D():e.name,scores:ue().map(e=>({model:e.model,percentage:e.percentage,bounds:Vd(e)}))},e.startedAt)}catch(e){c(e instanceof Error?e.message:String(e))}finally{m(!1)}}},L=e=>(()=>{var n=d6(),r=n.firstChild,i=r.firstChild,a=i.nextSibling,o=r.nextSibling,s=o.firstChild,c=s.firstChild;return n.$$click=()=>k(e.item),K(a,z(Y2,{get sensitive(){return e.item.kind===`eval`},get children(){return e.item.name}})),K(o,()=>$d(e.item.startedAt),s),K(s,()=>e.item.models,c),j(r=>{var a=t().view!==`activity`&&t().id===e.item.id,o=t().view!==`activity`&&t().id===e.item.id?`page`:void 0,s=`status-dot ${e.item.status}`;return a!==r.e&&n.classList.toggle(`active`,r.e=a),o!==r.t&&G(n,`aria-current`,r.t=o),s!==r.a&&dt(i,r.a=s),r},{e:void 0,t:void 0,a:void 0}),n})();return(()=>{var e=g6(),n=e.firstChild,c=n.firstChild,u=c.firstChild,d=c.nextSibling,f=n.nextSibling,m=f.firstChild;m.firstChild;var g=m.nextSibling,y=g.firstChild;y.firstChild;var b=g.nextSibling,x=b.firstChild,w=f.nextSibling;return K(c,z(Po,{size:`small`,variant:`ghost`,icon:`menu`,class:`mobile-menu`,"aria-label":`Toggle run history`,onClick:()=>o(!a())}),u),K(c,z(X,{name:`flask`}),u),K(d,z(J2,{})),K(f,z(H,{get when(){return U(()=>!!h())()&&!_()},get children(){var e=f6(),n=e.firstChild;return e.$$click=()=>{O({view:`activity`,run:``,evalRun:``}),o(!1)},K(e,z(X,{name:`flask`}),n),K(e,z(Io,{get children(){return v()?.reduce((e,t)=>e+t.state.runs.reduce((e,t)=>e+ +(t.eval.status===`in_progress`)+ +(t.judge.status===`in_progress`),0),0)??0}}),null),j(n=>{var r=t().view===`activity`,i=t().view===`activity`?`page`:void 0;return r!==n.e&&e.classList.toggle(`active`,n.e=r),i!==n.t&&G(e,`aria-current`,n.t=i),n},{e:void 0,t:void 0}),e}}),m),K(m,z(Io,{get children(){return te(`benchmark`).length}}),null),K(f,z(Pl,{"aria-label":`Filter runs`,placeholder:`Find a run…`,get value(){return r()},onInput:e=>i(e.currentTarget.value),get leadingIcon(){return z(X,{name:`magnifying-glass`})}}),g),K(y,z(Ge,{get each(){return te(`benchmark`)},children:e=>z(L,{item:e})}),null),K(y,z(H,{get when(){return!te(`benchmark`).length},get children(){return p6()}}),null),K(b,z(X,{name:`folder`}),x),K(x,()=>_()?`Totals only`:`Local results`),K(w,z(H,{get when(){return h.error||C.error},get children(){var e=m6();return K(e,(()=>{var e=U(()=>!!K2());return()=>e()?`Could not load results.`:String(h.error??C.error)})()),e}}),null),K(w,z(H,{get when(){return s()},get children(){var e=m6();return K(e,(()=>{var e=U(()=>!!K2());return()=>e()?`The requested operation could not be completed.`:s()})()),e}}),null),K(w,z(H,{get when(){return U(()=>t().view===`activity`)()&&!_()},get fallback(){return z(H,{get when(){return T()},get fallback(){return(()=>{var e=S6(),t=e.firstChild;return K(e,z(X,{name:`flask`}),t),K(t,()=>h.loading?`Loading results…`:`Your results start here`),e})()},get children(){return[z(H,{get when(){return S()},get children(){return z(H,{get when(){return E()},get fallback(){return C6()},children:e=>{let n=()=>e().runs.find(e=>e.id===t().evalRun);return z(H,{get when(){return n()},children:t=>z(I4,{open:!0,title:`Eval run session`,onClose:ee,get children(){return z(P4,{get run(){return e()},get selected(){return t()},onRun:e=>O({evalRun:e}),onBack:ee})}})})}})}}),(()=>{var e=x6(),n=e.firstChild,r=n.firstChild,i=r.firstChild,a=i.nextSibling,o=a.nextSibling,s=o.firstChild,c=r.nextSibling,u=n.nextSibling,d=u.nextSibling,f=d.firstChild.firstChild;return K(i,()=>T().kind===`benchmark`?`Benchmarks`:`Eval results`,null),K(i,z(X,{name:`chevron-right`}),null),K(i,z(Y2,{get sensitive(){return T().kind===`eval`},get children(){return T().name}}),null),K(a,z(Y2,{get sensitive(){return T().kind===`eval`},get children(){return T().name}})),K(o,()=>$d(T().startedAt),s),K(o,z(Io,{get children(){return T().status}}),null),K(c,z(H,{get when(){return T().kind===`benchmark`},get children(){return z(Sl,{get value(){return p()?`Exporting image…`:`Export image`},get children(){return z(Lo,{variant:`neutral`,size:`small`,get icon(){return z(X,{name:`photo`})},"aria-label":`Export image`,get"aria-busy"(){return p()},onClick:I,get disabled(){return p()||!T().scores.length}})}})}}),null),K(c,z(Sl,{value:`Export totals`,get children(){return z(Lo,{variant:`neutral`,size:`small`,get icon(){return z(X,{name:`download`})},"aria-label":`Export totals`,onClick:fe})}}),null),K(u,z(H,{get when(){return U(()=>!_())()&&T().kind===`benchmark`},get children(){return z(A6,{get value(){return t().view},onChange:e=>O({view:e,eval:D()})})}}),null),K(u,z(a6,{get models(){return T().scores.map(e=>e.model)},get selected(){return ne()},onChange:e=>O({models:e.join(`,`)})}),null),K(e,z(H,{get when(){return U(()=>t().view===`evals`)()&&!_()},get children(){var e=_6();return e.firstChild,K(e,z(jd,{"aria-labelledby":`eval-label`,get options(){return T().evals},get current(){return D()},get valueClass(){return K2()?`eval-name is-secret`:`eval-name`},label:e=>K2()?`Eval ${T().evals.indexOf(e)+1}`:T()?.evalNames?.[e]??e,onSelect:e=>{e&&O({eval:e})},children:e=>z(Y2,{get children(){return T()?.evalNames?.[e]??e}})}),null),e}}),d),K(f,z(Y2,{get sensitive(){return t().view===`evals`||T().kind===`eval`},get children(){return U(()=>!(t().view!==`evals`||_()))()?T()?.evalNames?.[D()]??D():T().name}})),K(d,z(H,{get when(){return ue().length},get fallback(){return(()=>{var e=w6();return e.firstChild,K(e,z(Po,{size:`small`,variant:`outline`,onClick:()=>O({models:``}),children:`Clear filters`}),null),e})()},get children(){return z(uf,{get scores(){return ue()},get public(){return _()},get incomplete(){return T().status!==`running`},get metrics(){return U(()=>t().view===`evals`||T().kind===`eval`)()&&!K2()},get onSelect(){return!_()&&!K2()&&(t().view===`evals`||T().kind===`eval`)?de:void 0}})}}),null),K(e,z(H,{get when(){return!_()},get children(){var e=v6(),n=e.firstChild,r=n.firstChild.nextSibling,i=n.nextSibling,a=i.firstChild.nextSibling,o=i.nextSibling,s=o.firstChild.nextSibling,c=s.firstChild,l=c.nextSibling;l.firstChild;var u=o.nextSibling,d=u.firstChild,f=d.nextSibling,p=u.nextSibling.firstChild,m=p.nextSibling;return K(r,()=>ue().length),K(a,(()=>{var e=U(()=>t().view===`evals`);return()=>e()?1:T().evals.length})()),K(s,ie,c),K(l,P,null),K(d,()=>ne().length?`Run duration`:`Duration`),K(f,se),K(p,()=>ne().length?`Run cost`:`Cost`),K(m,()=>Qd(ce())),e}}),null),K(e,z(H,{get when(){return ue().some(e=>e.percentage===null)},get children(){var e=y6(),t=e.firstChild;return K(e,z(X,{name:`info`}),t),K(t,()=>T().status===`running`?`Solid bars show earned points. Whiskers show the possible range for unresolved checks.`:`Whiskers show the possible range for unscored checks; graded failures remain known zeros.`),e}}),null),K(e,z(H,{get when(){return l()},get children(){return b6()}}),null),e})()]}})},get children(){return[z(H,{get when(){return v.error},get children(){var e=h6();return K(e,(()=>{var e=U(()=>!!K2());return()=>e()?`Could not load activity.`:String(v.error)})()),e}}),z(x3,{get runs(){return v()??[]},get run(){return t().run},get evalRun(){return t().evalRun},get stage(){return t().stage},onSelect:(e,t,n=`eval`)=>{(!K2()||!t)&&O({view:`activity`,run:e,evalRun:t,stage:n})}})]}}),null),j(()=>f.classList.toggle(`visible`,!!a())),e})()}ct([`click`]),st(()=>z(Br,{defaultTheme:`oc-2`,get children(){return z(So,{get children(){return z(j6,{})}})}}),document.getElementById(`root`));export{l as i,o as n,s as r,Y as t};
795
+ `));return z(bQ,B(e,{icon:`console`,rail:!1,compact:!0,allowOpenWhilePending:!0,trigger:e=>(()=>{var n=W1(),o=n.firstChild,s=o.firstChild;return K(s,z(jG,{get text(){return t.t(`ui.tool.shell`)},get active(){return i()}})),K(o,z(H,{get when(){return!e()},get children(){return z(H,{get when(){return l()},get fallback(){return z(H,{get when(){return r()},get children(){var e=N1();return K(e,()=>t.t(`ui.tool.shell.writingCommand`)),e}})},children:e=>z(u0,{get text(){return e()},animate:a})})}}),null),n})(),get children(){return z(Z0,{get copy(){return l()},variant:`shell`,get children(){return[(()=>{var e=Z1();return K(e,l),e})(),z(H,{get when(){return u()},children:e=>(()=>{var t=Q1();return K(t,e),t})()})]}})}}))}});function Q0(e){let t=Al(),n=W0.render(`shell`)??CQ,r=N(()=>{let n=e.message;if(n.status===`timeout`)return t.t(`ui.tool.shell.timeout`);if(n.status===`killed`)return t.t(`ui.tool.shell.cancelled`);if(n.status===`exited`&&n.exit!==void 0&&n.exit!==0)return t.t(`ui.tool.shell.exit`,{code:n.exit})});return(()=>{var t=$1();return K(t,z(Pt,{component:n,tool:`shell`,get input(){return{command:e.message.command}},get metadata(){return{shellID:e.message.shellID,status:e.message.status,exit:e.message.exit,truncated:e.message.output?.truncated}},get output(){return e.message.output?.output},get status(){return e.message.status===`running`?`running`:`completed`},get defaultOpen(){return e.defaultOpen},get open(){return e.open},get onOpenChange(){return e.onOpenChange}}),null),K(t,z(H,{get when(){return r()},children:t=>z(M$,{tool:`shell`,get error(){return t()},get subtitle(){return e.message.command}})}),null),j(()=>G(t,`data-timeline-part-id`,e.message.id)),t})()}W0.register({name:`edit`,render(e){let t=Al(),n=pf(),r=()=>typeof e.input.path==`string`?e.input.path:``,i=N(()=>{let t=e.metadata.files;if(Array.isArray(t))return t.find(d1)}),a=N(()=>h0(e.metadata.diagnostics,r())),o=N(()=>{let e=i();return typeof e?.file==`string`?e.file:r()}),s=()=>e.status===`streaming`||e.status===`running`,c=N(()=>{let e=i();if(e)return{file:typeof e.file==`string`?e.file:r(),patch:typeof e.patch==`string`?e.patch:void 0}},void 0,{equals:(e,t)=>e?.file===t?.file&&e?.patch===t?.patch}),l=N(()=>{try{let e=c();if(e){let t=r1(e);if(t)return{fileDiff:t,hunkSeparators:t.isPartial?`simple`:`line-info-basic`}}}catch{}return{before:{name:o(),contents:typeof e.input.oldString==`string`?e.input.oldString:``},after:{name:o(),contents:typeof e.input.newString==`string`?e.input.newString:``}}});return(()=>{var r=t0();return K(r,z(G0,B(e,{get title(){return t.t(`ui.messagePart.title.edit`)},get count(){return+!!o()},get children(){return[z(H,{get when(){return o()},get children(){return z(K0,{get path(){return o()},get defaultOpen(){return e.defaultOpen},get open(){return e.open},get onOpenChange(){return e.onOpenChange},get forceOpen(){return e.forceOpen},get defer(){return e.deferContent!==!1},get actions(){return z(H,{get when(){return U(()=>!s())()?i():void 0},children:e=>z(P$,{appearance:`standard`,get changes(){return e()}})})},get children(){var t=e0();return K(t,z(Pt,B({component:n,mode:`diff`,get virtualize(){return e.virtualizeDiff},get onRendered(){return e.onContentRendered}},l))),t}})}}),z(g0,{get diagnostics(){return a()}})]}}))),r})()}}),W0.register({name:`write`,render(e){let t=Al(),n=pf(),r=N(()=>typeof e.input.path==`string`?e.input.path:``),i=N(()=>typeof e.input.content==`string`?e.input.content:``),a=N(()=>h0(e.metadata.diagnostics,r()));return(()=>{var o=r0();return K(o,z(G0,B(e,{get title(){return t.t(`ui.messagePart.title.write`)},get count(){return+!!r()},get children(){return[z(H,{get when(){return r()},get children(){return z(K0,{get path(){return r()},get defaultOpen(){return e.defaultOpen},get open(){return e.open},get onOpenChange(){return e.onOpenChange},get forceOpen(){return e.forceOpen},get defer(){return e.deferContent!==!1},get children(){var t=n0();return K(t,z(Pt,{component:n,mode:`text`,get file(){return{name:r(),contents:i(),cacheKey:mf(i())}},overflow:`scroll`,get onRendered(){return e.onContentRendered}})),t}})}}),z(g0,{get diagnostics(){return a()}})]}}))),o})()}}),W0.register({name:`patch`,render(e){let t=Al(),n=pf(),r=N(()=>m1(e.metadata.files)),[i,a]=A([]),o=N(()=>e.tool===`edit`?t.t(`ui.messagePart.title.edit`):t.t(`ui.tool.patch`)),s=N(()=>e.fileOpen?r().flatMap(t=>e.fileOpen?.(t.path)===!0?[t.path]:[]):i()),c=t=>{let n=Array.isArray(t)?t:t?[t]:[];if(!e.onFileOpenChange){a(n);return}r().forEach(t=>e.onFileOpenChange?.(t.path,n.includes(t.path)))};return(()=>{var i=i0();return K(i,z(G0,B(e,{get title(){return o()},get count(){return r().length},get children(){return z(H,{get when(){return r().length>0},get children(){return z(T$,{multiple:!0,"data-scope":`apply-patch`,style:{"--sticky-accordion-offset":`calc(32px + var(--tool-content-gap))`},get value(){return s()},onChange:c,get children(){return z(Ke,{get each(){return r()},children:r=>{let i=()=>r().path,a=N(()=>s().includes(i())),[o,c]=A(!1);return M(()=>{if(!a()){c(!1);return}requestAnimationFrame(()=>{a()&&c(!0)})}),z(T$.Item,{get value(){return i()},get"data-type"(){return r().type},get children(){return[z(E$,{get children(){return z(T$.Trigger,{get children(){var e=z1(),n=e.firstChild,i=n.firstChild,a=i.firstChild,o=n.nextSibling;return K(n,z(gG,{get node(){return{path:r().path,type:`file`}}}),i),K(i,z(H,{get when(){return r().path.includes(`/`)},get children(){var e=R1();return K(e,()=>`\u202A${v0(r().path)}\u202C`),e}}),a),K(a,()=>oG(r().path)),K(o,z(qe,{get children(){return[z(Je,{get when(){return r().type===`add`},get children(){var e=a0();return K(e,()=>t.t(`ui.patch.action.created`)),e}}),z(Je,{get when(){return r().type===`delete`},get children(){var e=o0();return K(e,()=>t.t(`ui.patch.action.deleted`)),e}}),z(Je,{when:!0,get children(){return z(P$,{appearance:`standard`,get changes(){return{additions:r().additions,deletions:r().deletions}}})}})]}}),null),K(o,z(X,{name:`chevron-grabber-vertical`,size:`small`}),null),e}})}}),z(T$.Content,{get children(){return z(H,{get when(){return e.deferContent===!1||o()},get children(){return z(Ge,{get each(){return r().views},children:t=>(()=>{var r=s0();return K(r,z(Pt,{component:n,mode:`diff`,get virtualize(){return e.virtualizeDiff},get fileDiff(){return t.fileDiff},get hunkSeparators(){return t.fileDiff.isPartial?`simple`:`line-info-basic`},get onRendered(){return e.onContentRendered}})),r})()})}})}})]}})}})}})}})}}))),i})()}}),W0.register({name:`question`,render(e){let t=Al(),n=N(()=>Array.isArray(e.input.questions)?e.input.questions.filter(f0):[]),r=N(()=>Array.isArray(e.metadata.answers)?e.metadata.answers.filter(p0):[]),i=N(()=>r().length>0),a=N(()=>{let e=n().length;return e===0?``:i()?t.t(`ui.question.subtitle.answered`,{count:e}):`${e} ${t.plural(`ui.common.question`,e)}`});return z(bQ,B(e,{get defaultOpen(){return i()},icon:`bubble-5`,get trigger(){return{title:t.t(`ui.tool.questions`),subtitle:a()}},get children(){return z(H,{get when(){return i()},get children(){var e=c0();return K(e,z(Ge,{get each(){return n()},children:(e,n)=>{let i=()=>r()[n()]??[];return(()=>{var n=l0(),r=n.firstChild,a=r.nextSibling;return K(r,()=>e.question),K(a,()=>i().join(`, `)||t.t(`ui.question.answer.none`)),n})()}})),e}})}}))}}),W0.register({name:`skill`,render(e){let t=Al(),n=N(()=>j0(e.input,e.metadata)),r=N(()=>e.status===`streaming`||e.status===`running`),i=`__OPENCODE_LOADED_SKILL__`,a=N(()=>t.t(`ui.tool.loadedSkill`,{name:i}).split(i));return z(H,{get when(){return n()},get fallback(){return z(jG,{get text(){return t.t(`ui.tool.skill`)},get active(){return r()}})},children:e=>(()=>{var n=j1(),i=n.firstChild,o=i.nextSibling;return K(i,()=>a()[0].trim()),K(o,z(jG,{as:`span`,get text(){return e()},get active(){return r()}})),K(n,z(H,{get when(){return a()[1]?.trim()},children:e=>(()=>{var t=M1();return K(t,e),t})()}),null),j(()=>G(n,`aria-label`,t.t(`ui.tool.loadedSkill`,{name:e()}))),n})()})}}),ct([`click`]);function $0(e){return z(n$,{get sessionID(){return e.sessionID},get message(){return e.message},get text(){return e.displayText??e.message.text},get comments(){return e.comments},get agent(){return e.historicalAgent},get model(){return e.historicalModel},get actions(){return e.actions}})}function e2(e){return z(qe,{get children(){return[z(Je,{get when(){return U(()=>e.content.type===`text`)()?e.content:void 0},children:t=>z(a$,{get id(){return e.contentID},get text(){return t().text},get message(){return e.message},get showCopy(){return e.showAssistantCopyPartID===e.contentID},get turnDurationMs(){return e.turnDurationMs}})}),z(Je,{get when(){return U(()=>e.content.type===`reasoning`)()?e.content:void 0},children:t=>z(o$,{get id(){return e.contentID},get content(){return t()},streaming:!1,get defaultOpen(){return e.reasoningDefaultOpen},get open(){return e.toolOpen},get onOpenChange(){return e.onToolOpenChange},get onContentRendered(){return e.onContentRendered}})}),z(Je,{get when(){return U(()=>e.content.type===`tool`)()?e.content:void 0},children:t=>z(q0,{get id(){return e.contentID},get tool(){return t().name},get input(){return Sz(t())},get metadata(){return Cz(t())},get output(){return wz(t())},get status(){return t().state.status},get error(){return Tz(t())},get defaultOpen(){return e.defaultOpen},get open(){return e.toolOpen},get onOpenChange(){return e.onToolOpenChange},deferContent:!0,virtualizeDiff:!1,get onContentRendered(){return e.onContentRendered}})})]}})}function t2(e){return z(L0,e)}function n2(e){return z(R0,{get tools(){return e.tools},get fileOpen(){return e.fileOpen},get onFileOpenChange(){return e.onFileOpenChange},get onSizeChange(){return e.onSizeChange}})}var r2=W(`<strong class=font-[530]>`),i2=W(`<div class="flex w-full min-w-0 items-center gap-2"><div class=min-w-0>`);function a2(e){let t=N(()=>{let t=e.message.indexOf(`:`);return t===-1?{detail:e.message}:{title:e.message.slice(0,t+1),detail:e.message.slice(t+1)}});return[z(H,{get when(){return t().title},children:e=>(()=>{var t=r2();return K(t,e),t})()}),U(()=>t().detail)]}function o2(e){return z(EQ,{variant:`error`,class:`error-card`,"data-kind":`session-error-card`,get children(){var t=i2(),n=t.firstChild;return K(t,z(X,{name:`outline-hexagonal-warning`,class:`shrink-0 text-v2-state-fg-danger`}),n),K(n,z(a2,{get message(){return e.message}})),t}})}var s2=W(`<div data-slot=session-turn-retry-message class="cursor-help truncate">`),c2=W(`<div class="flex w-full items-start gap-2"><div class="min-w-0 flex-1">`),l2=W(`<div data-slot=session-turn-retry class="w-full min-w-0">`),u2=W(`<div data-slot=session-turn-retry-info>`);function d2(e){let t=Al(),n=N(()=>{if(e.status.type===`retry`)return e.status}),[r,i]=A(0);M(ae(n,e=>{if(!e)return;let t=()=>{let e=n()?.next;e&&i(Math.round((e-Date.now())/1e3))};t();let r=setInterval(t,1e3);F(()=>clearInterval(r))}));let a=N(()=>{let e=n();return e?e.message.includes(`exceeded your current quota`)&&e.message.includes(`gemini`)?t.t(`ui.sessionTurn.retry.geminiHot`):e.message.length>80?e.message.slice(0,80)+`…`:e.message:``}),o=N(()=>{let e=n();if(!e)return``;let i=Math.max(0,r()),a=i>0?t.t(`ui.sessionTurn.retry.inSeconds`,{seconds:i}):``,o=[t.t(`ui.sessionTurn.retry.retrying`),a].filter(Boolean).join(` `);return o?t.t(`ui.sessionTurn.retry.attemptRetrying`,{line:o,attempt:e.attempt}):t.t(`ui.sessionTurn.retry.attemptLabel`,{attempt:e.attempt})});return z(H,{get when(){return U(()=>!!n())()&&(e.show??!0)},get children(){var e=l2();return K(e,z(EQ,{variant:`error`,class:`error-card`,"data-kind":`session-retry-card`,get children(){var e=c2(),t=e.firstChild;return K(e,z(X,{name:`outline-hexagonal-warning`,class:`mt-0.5 shrink-0 text-v2-state-fg-danger`}),t),K(t,z(Sl,{appearance:`standard`,get value(){return n()?.message??``},placement:`top`,get children(){var e=s2();return K(e,z(a2,{get message(){return a()}})),e}}),null),K(t,z(H,{get when(){return o()},children:e=>(()=>{var t=u2();return K(t,z(jG,{get text(){return e()},active:!0})),t})()}),null),e}})),e}})}var f2=W(`<div><div data-component=session-turn class="min-w-0 w-full relative"style=height:auto>`),p2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-compaction>`),m2=W(`<div data-slot=session-timeline-notice><div class="flex min-h-5 min-w-0 items-center gap-2 overflow-hidden"><bdi dir=auto class="shrink-0 text-[13px] font-[530] leading-text-compact tracking-[-0.04px] text-v2-text-text-faint">`),h2=W(`<div data-slot=session-timeline-notice><bdi dir=auto class=font-[530]>`),g2=W(`<span><bdi dir=auto>`),_2=W(`<bdi dir=auto class="min-w-0 truncate text-[13px] font-[440] leading-text-compact tracking-[-0.04px] text-v2-text-text-faint">`),v2=W(`<div data-slot=session-timeline-notice data-type=model-switched>`),y2=W(`<bdi data-slot=session-timeline-notice-label dir=auto class=font-[530]>`),b2=W(`<div data-slot=session-timeline-notice data-type=location-switched> <bdi data-slot=session-timeline-notice-value dir=ltr class="min-w-0 truncate font-[440]">`),x2=W(`<div data-slot=session-turn-message-container>`),S2=W(`<div data-timeline-row=TurnGap aria-hidden=true class=h-6>`),C2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-message-content aria-live=off>`),w2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-compaction><div class=py-2>`),T2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-assistant-content>`),E2=W(`<div data-slot=session-turn-message-container><div data-slot=session-turn-thinking-row>`),D2=[];function O2(e){let t=Al(),n=JA(),r=e.disclosure.patchGroupKeys??new Map,i=new WeakMap,a=N(()=>{let t=new Map;return e.projection.rows().forEach(n=>{n._tag===`AssistantPart`&&n.group.type===`context`&&n.group.refs.forEach(n=>{let i=Lz.resolveContent(e.projection.messageByID().get(n.messageID),n.partID);if(i?.type!==`tool`||i.name!==`patch`||i.state.status===`error`)return;let a=`${n.messageID}:${n.partID}`,o=r.get(a);o&&!t.has(o)&&t.set(o,a)})}),t}),o=t=>e.status().type!==`idle`&&e.projection.activeMessageID()===t,s=t=>{let n=e.projection.messageByID().get(t);if(n?.type!==`user`)return null;let r=(e.projection.assistantMessagesByParent().get(t)??D2).reduce((e,t)=>t.time.completed===void 0?e:e===void 0?t.time.completed:Math.max(e,t.time.completed),void 0);if(!(r===void 0||r<n.time.created))return r-n.time.created},c=t=>o(t)?null:(e.projection.assistantMessagesByParent().get(t)??D2).toReversed().flatMap(e=>Lz.contentEntries(e).toReversed()).find(e=>e.content.type===`text`&&!!e.content.text.trim())?.id,l=()=>e.padding?.()??`px-4 md:px-5`,u=t=>{let n=new Map;return t.forEach(t=>{if(n.has(t.messageID))return;let r=new Map,i=e.projection.messageByID().get(t.messageID);i?.type===`assistant`&&Lz.contentEntries(i).forEach(e=>{r.has(e.id)||r.set(e.id,e.content)}),n.set(t.messageID,r)}),n},d=(t,n)=>{if(t().group.type===`context`){let s=N(()=>{let n=t().group;if(n.type!==`context`)return[];let r=u(n.refs),a=e.projection.assistantMessagesByParent().get(t().userMessageID)?.at(-1);return n.refs.flatMap(n=>{let s=r.get(n.messageID)?.get(n.partID);if(s?.type===`tool`)return i.set(s,`${n.messageID}:${n.partID}`),[s];if(s?.type===`reasoning`)return[{...s,id:n.partID,streaming:o(t().userMessageID)&&e.status().type===`busy`&&a?.id===n.messageID&&a.time.completed===void 0&&!a.error&&!a.retry&&a.content.at(-1)===s&&s.time?.completed===void 0}];let c=e.projection.messageByID().get(n.messageID);return n.messageID!==n.partID||!c?[]:c.type===`shell`?[{type:`shell`,id:n.partID,render:()=>z(g,{get messageID(){return n.messageID},grouped:!0})}]:c.type!==`assistant`&&c.type!==`user`?[{type:`notice`,id:n.partID,render:()=>z(h,{get messageID(){return n.messageID},grouped:!0})}]:[]})}),c=()=>`context:${t().group.key}`;return z(t2,{get parts(){return s()},patchGroupKey:e=>{let t=e.map(e=>i.get(e)),n=t.map(e=>r.get(e)).find(e=>e!==void 0&&t.includes(a().get(e)))??t[0];return t.forEach(e=>r.set(e,n)),n},get reasoningDefaultOpen(){return U(()=>!!e.timelineDetail)()?e.timelineDetail().thinking.details===`expanded`:e.reasoningMode()===`full`},reasoningOpen:t=>e.disclosure.value(t),onReasoningOpenChange:(t,n)=>e.disclosure.set(t,n),toolDefaultOpen:t=>e.timelineDetail?f(t):!1,toolOpen:n=>e.disclosure.value(`${t().group.key}:tool:${n}`),onToolOpenChange:(n,r)=>e.disclosure.set(`${t().group.key}:tool:${n}`,r),fileOpen:t=>e.disclosure.value(`patch:${t}`)??e.timelineDetail?.().edit.details===`expanded`,onFileOpenChange:(t,n)=>e.disclosure.set(`patch:${t}`,n),get open(){return e.disclosure.value(c())===!0},get busy(){return U(()=>!!o(t().userMessageID))()&&e.projection.lastAssistantGroupKey().get(t().userMessageID)===t().group.key},onOpenChange:t=>e.disclosure.set(c(),t),onSizeChange:n})}if(t().group.type===`file`){let r=N(()=>{let e=t().group;if(e.type!==`file`)return[];let n=u(e.refs);return e.refs.flatMap(e=>{let t=n.get(e.messageID)?.get(e.partID);return t?.type===`tool`?[t]:[]})}),i=N(()=>{let e=r()[0];if(!e||!(`metadata`in e.state))return;let t=e.state.metadata?.files;if(!Array.isArray(t))return;let n=t[0];return n&&typeof n==`object`&&`file`in n&&typeof n.file==`string`?n.file:void 0});return z(n2,{get tools(){return r()},fileOpen:n=>{let a=e.disclosure.value(`${t().group.key}:file:${n}`);return a===void 0?e.timelineDetail?e.timelineDetail().edit.details===`expanded`:r()[0]?.name!==`edit`||n!==i()?!1:e.disclosure.value(t().group.key)??e.editToolDefaultOpen():a},onFileOpenChange:(n,r)=>e.disclosure.set(`${t().group.key}:file:${n}`,r),onSizeChange:n})}let l=N(()=>{let e=t().group;return e.type===`part`?e.ref:void 0}),d=N(()=>{let t=l(),n=t?e.projection.messageByID().get(t.messageID):void 0;return n?.type===`assistant`?n:void 0}),p=N(()=>{let e=l();return e?Lz.resolveContent(d(),e.partID):void 0}),m=N(()=>{let e=p();return e?f(e):void 0}),_=()=>p()?.type===`reasoning`?l().partID:t().group.key;return z(H,{get when(){return d()},children:r=>z(H,{get when(){return p()},children:i=>z(e2,{get message(){return r()},get content(){return i()},get contentID(){return l().partID},get showAssistantCopyPartID(){return c(t().userMessageID)},get turnDurationMs(){return s(t().userMessageID)},get defaultOpen(){return m()},get toolOpen(){return e.disclosure.value(_())??m()},onToolOpenChange:t=>e.disclosure.set(_(),t),onContentRendered:n})})})};function f(t){if(e.timelineDetail){let n=Nz(t);if(n&&e.timelineDetail()[n].placement===`hidden`&&t.type===`tool`&&Ez(t))return!0;if(n===`shell`||n===`edit`||n===`thinking`)return e.timelineDetail()[n].details===`expanded`}return t.type===`reasoning`?e.reasoningMode()===`full`:Az(t,e.shellToolDefaultOpen(),e.editToolDefaultOpen())}let p=e=>{if(e.type===`agent-switched`)return{label:t.t(`ui.sessionTimeline.notice.agentChanged`),data:e.previous?`${k2(e.previous)} → ${k2(e.agent)}`:k2(e.agent)};if(e.type===`model-switched`)return;if(e.type===`skill`)return{label:t.t(`ui.tool.skill`),data:e.name};if(e.type===`system`){if(e.description?.startsWith(`Instructions updated: `)){let n=e.description.slice(22).split(`,`).map(e=>e.trim()).filter(Boolean);return{label:t.t(`ui.sessionTimeline.notice.instructionsUpdated`),items:n}}return{label:e.description??e.text}}if(e.type!==`synthetic`)return;if(e.description===`Continuing after restart`)return{label:e.description};let n=typeof e.metadata?.source==`string`?e.metadata.source:void 0,r=typeof e.metadata?.state==`string`?e.metadata.state:void 0;if(n===`subagent`||n===`shell`){let i=typeof e.metadata?.agent==`string`?e.metadata.agent:void 0,a=n===`shell`?t.t(`ui.tool.shell`):i??t.t(`ui.tool.agent.default`);return{label:t.t(r===`error`?`ui.sessionTimeline.notice.failed`:r===`cancelled`?`ui.sessionTimeline.notice.cancelled`:`ui.sessionTimeline.notice.finished`,{actor:a}),data:e.description}}return{label:e.description??e.text}},m=t=>(()=>{var n=f2(),r=n.firstChild;return K(r,()=>t.children),j(r=>{var i=t.row._tag===`UserMessage`?e.anchor?.(t.row.userMessageID):void 0,a=t.row.userMessageID,o=t.row._tag,s=t.row._tag===`AssistantPart`?t.row.spacing:void 0,c={"min-w-0 w-full max-w-full":!0,"md:max-w-[1000px] md:mx-auto":e.centered?.(),"pt-2":t.row._tag===`AssistantPart`&&t.row.spacing===`tool`,"pt-4":t.row._tag===`AssistantPart`&&t.row.spacing===`content`};return i!==r.e&&G(n,`id`,r.e=i),a!==r.t&&G(n,`data-message-id`,r.t=a),o!==r.a&&G(n,`data-timeline-row`,r.a=o),s!==r.o&&G(n,`data-timeline-spacing`,r.o=s),r.i=pt(n,c,r.i),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n})();function h(r){let i=()=>r.grouped?``:l(),a=N(()=>e.projection.messageByID().get(r.messageID)),o=N(()=>{let e=a();return e?.type===`compaction`?e:void 0}),s=N(()=>{let e=o();return e?.status===`failed`?Zz(e.error.message):``}),c=N(()=>{let e=a();return e?.type===`location-switched`?e:void 0}),u=N(()=>{let e=a();if(e?.type!==`model-switched`)return;let r=n.store.provider?.all?.get(e.model.providerID);return{providerID:e.model.providerID,variant:e.model.variant,label:t.t(`ui.sessionTimeline.notice.modelSwitched`,{model:r?.models?.[e.model.id]?.name??e.model.id})}}),d=N(()=>{let e=a();return e?p(e):void 0});return[z(H,{get when(){return o()},children:e=>(()=>{var t=p2(),n=t.firstChild;return K(n,z(i$,{get message(){return e()},get error(){return s()}})),j(()=>dt(t,`w-full ${i()}`)),t})()}),z(H,{get when(){return c()},get fallback(){return z(H,{get when(){return u()},get fallback(){return z(H,{get when(){return d()},children:e=>z(H,{get when(){return e().items?.length},get fallback(){return(()=>{var t=h2(),n=t.firstChild;return K(n,()=>e().label),K(t,z(H,{get when(){return e().data},children:e=>(()=>{var t=g2(),n=t.firstChild;return K(t,z(H,{get when(){return a()?.type!==`agent-switched`},children:` · `}),n),K(n,e),j(()=>t.classList.toggle(`ms-2`,a()?.type===`agent-switched`)),t})()}),null),j(e=>{var o=`w-full truncate ${r.grouped?`py-1`:`pt-3 pb-1`} text-13-regular leading-text-compact text-text-weak ${i()}`,s=a()?.type===`agent-switched`;return o!==e.e&&dt(t,e.e=o),s!==e.t&&n.classList.toggle(`text-v2-text-text-faint`,e.t=s),e},{e:void 0,t:void 0}),t})()},get children(){var t=m2(),n=t.firstChild,r=n.firstChild;return K(r,()=>e().label),K(n,z(Ge,{get each(){return e().items},children:e=>(()=>{var t=_2();return K(t,e),t})()}),null),j(()=>dt(t,`w-full py-1 ${i()}`)),t}})})},children:e=>(()=>{var t=v2();return K(t,z(rB,{get label(){return e().label},get providerID(){return e().providerID},get variant(){return e().variant}})),j(()=>dt(t,`w-full py-2 ${i()}`)),t})()})},children:e=>(()=>{var n=b2(),r=n.firstChild,a=r.nextSibling;return K(n,z(Sl,{appearance:`compact`,placement:`top`,get value(){return t.t(`ui.sessionTimeline.notice.movedTooltip`)},class:`shrink-0`,triggerTabIndex:0,get children(){var e=y2();return K(e,()=>t.t(`ui.sessionTimeline.notice.movedTo`)),e}}),r),K(a,()=>e().location.directory),j(()=>dt(n,`flex h-7 w-full min-w-0 items-center gap-2 py-1 text-[13px] leading-text-compact tracking-[-0.04px] text-v2-text-text-faint ${i()}`)),n})()})]}function g(t){let n=N(()=>{let n=e.projection.messageByID().get(t.messageID);return n?.type===`shell`?n:void 0}),r=N(()=>{if(!e.timelineDetail)return e.shellToolDefaultOpen();let t=n();return e.timelineDetail().shell.details===`expanded`||e.timelineDetail().shell.placement===`hidden`&&(t?.status===`timeout`||t?.status===`exited`&&t.exit!==void 0&&t.exit!==0)});return z(H,{get when(){return n()},children:n=>(()=>{var i=x2();return K(i,z(Q0,{get message(){return n()},get defaultOpen(){return r()},get open(){return e.disclosure.value(n().id)??(e.timelineDetail?r():void 0)},onOpenChange:t=>e.disclosure.set(n().id,t)})),j(()=>dt(i,`w-full ${t.grouped?``:l()}`)),i})()})}let _=(n,r)=>{if(n()._tag===`TurnGap`)return S2();if(n()._tag===`UserMessage`){let t=()=>{let e=n();if(e._tag!==`UserMessage`)throw Error(`Expected a user-message timeline row`);return e},r=N(()=>{let n=e.projection.messageByID().get(t().userMessageID);return n?.type===`user`?n:void 0}),i=N(()=>e.projection.userContextByID().get(t().userMessageID));return z(m,{get row(){return t()},get children(){return z(H,{get when(){return r()},children:t=>{let n=()=>e.presentation(t());return(()=>{var r=C2(),a=r.firstChild;return K(a,z($0,{get sessionID(){return e.sessionID()},get message(){return t()},get displayText(){return n()?.displayText},get comments(){return n()?.comments},get historicalAgent(){return i()?.agent??``},get historicalModel(){return i()?.model??{id:``,providerID:``}},get actions(){return e.actions}})),j(()=>dt(r,`w-full ${l()}`)),r})()}})}})}if(n()._tag===`Shell`){let e=()=>{let e=n();if(e._tag!==`Shell`)throw Error(`Expected a shell timeline row`);return e};return z(m,{get row(){return e()},get children(){return z(g,{get messageID(){return e().messageID}})}})}if(n()._tag===`Notice`){let e=()=>{let e=n();if(e._tag!==`Notice`)throw Error(`Expected a notice timeline row`);return e};return z(m,{get row(){return e()},get children(){return z(h,{get messageID(){return e().messageID}})}})}if(n()._tag===`TurnDivider`){let e=()=>{let e=n();if(e._tag!==`TurnDivider`)throw Error(`Expected a turn-divider timeline row`);return e};return z(m,{get row(){return e()},get children(){var e=w2(),n=e.firstChild.firstChild;return K(n,z(rB,{get label(){return t.t(`ui.message.interrupted`)}})),j(()=>dt(e,`w-full ${l()}`)),e}})}if(n()._tag===`AssistantPart`){let e=()=>{let e=n();if(e._tag!==`AssistantPart`)throw Error(`Expected an assistant-part timeline row`);return e},t=d(e,r);return z(m,{get row(){return e()},get children(){var n=T2(),r=n.firstChild;return K(r,t),j(t=>{var i=`w-full ${l()}`,a=o(e().userMessageID);return i!==t.e&&dt(n,t.e=i),a!==t.t&&G(r,`aria-hidden`,t.t=a),t},{e:void 0,t:void 0}),n}})}if(n()._tag===`Thinking`){let t=()=>{let e=n();if(e._tag!==`Thinking`)throw Error(`Expected a thinking timeline row`);return e},i=N(()=>{let n=t().ref,r=Lz.resolveContent(e.projection.messageByID().get(n.messageID),n.partID);return r?.type===`reasoning`?r:void 0});return z(m,{get row(){return t()},get children(){var n=E2(),a=n.firstChild;return K(a,z(H,{get when(){return i()},children:n=>z(o$,{get id(){return t().ref.partID},get content(){return n()},streaming:!0,get defaultOpen(){return U(()=>!!e.timelineDetail)()?e.timelineDetail().thinking.details===`expanded`:e.reasoningMode()===`full`},get open(){return e.disclosure.value(t().ref.partID)??(e.timelineDetail?e.timelineDetail().thinking.details===`expanded`:void 0)},onOpenChange:n=>e.disclosure.set(t().ref.partID,n),onContentRendered:r})})),j(()=>dt(n,`w-full ${l()}`)),n}})}if(n()._tag===`Retry`){let t=()=>{let e=n();if(e._tag!==`Retry`)throw Error(`Expected a retry timeline row`);return e},r=N(()=>{let n=(e.projection.assistantMessagesByParent().get(t().userMessageID)??D2).at(-1)?.retry;return n?{type:`retry`,attempt:n.attempt,message:n.error.message,next:n.at}:e.status()});return z(m,{get row(){return t()},get children(){var n=x2();return K(n,z(d2,{get status(){return r()},get show(){return e.projection.activeMessageID()===t().userMessageID}})),j(()=>dt(n,`w-full ${l()}`)),n}})}let i=()=>{let e=n();if(e._tag!==`Error`)throw Error(`Expected an error timeline row`);return e};return z(m,{get row(){return i()},get children(){var e=x2();return K(e,z(o2,{get message(){return i().text}})),j(()=>dt(e,`w-full ${l()}`)),e}})};function v(e){return z(H,{get when(){return jz.key(e.row())},keyed:!0,children:t=>_(e.row,e.onSizeChange)})}return{Row:v}}function k2(e){return e.slice(0,1).toUpperCase()+e.slice(1)}var A2=W(`<div data-component=session-timeline>`),j2=W(`<div class=native-transcript data-workspace-session>`),M2=W(`<p class=empty-inline>`),N2=Mz.find(e=>e.id===`compact`).value;function P2(e){let t=Iz({sessionMessages:()=>e.session.messages,status:()=>e.status,reasoningMode:()=>`compact`,timelineDetail:()=>N2,shellToolDefaultOpen:()=>!1,editToolDefaultOpen:()=>!1}),[n,r]=$t({}),i=O2({sessionID:()=>e.session.sessionID,status:()=>e.status,projection:t,presentation:()=>void 0,reasoningMode:()=>`compact`,timelineDetail:()=>N2,shellToolDefaultOpen:()=>!1,editToolDefaultOpen:()=>!1,padding:()=>``,disclosure:{value:e=>n[e],set:(e,t)=>r(e,t)}}),a=N(()=>t.rows().map(jz.key));function o(e){let n=t.rowByKey().get(e.rowKey),r=N(()=>t.rowByKey().get(e.rowKey)??n);return z(i.Row,{row:r})}return(()=>{var e=A2();return K(e,z(Ge,{get each(){return a()},children:e=>z(o,{rowKey:e})})),e})()}function F2(e){let[t,n]=A(``),r=()=>e.stage.sessions.find(e=>!e.parentID)??e.stage.sessions[0],i=()=>e.stage.sessions.find(e=>e.sessionID===t())??r(),a=t=>e.running?t.status:{type:`idle`},o=N(()=>{let t=new Map;for(let n of e.stage.sessions){let e=[n.model,...n.messages.flatMap(e=>e.type===`assistant`?[e.model]:[])];for(let n of e)t.has(n.providerID)||t.set(n.providerID,{models:{}}),t.get(n.providerID).models[n.id]={name:Gd(`${n.providerID}/${n.id}`)}}return{all:t,connected:[...t.keys()],default:{}}});return(()=>{var t=j2();return K(t,z(H,{get when(){return U(()=>!!i())()&&i()!==r()},get children(){return z(Po,{size:`small`,variant:`ghost-muted`,icon:`arrow-left`,onClick:()=>n(``),children:`Parent session`})}}),null),K(t,z(H,{get when(){return i()?.sessionID},keyed:!0,get fallback(){return(()=>{var t=M2();return K(t,()=>e.pending?`Waiting for session activity…`:`No session was recorded.`),t})()},children:t=>z(YA,{directory:`/workspace`,sessionID:t,get data(){return{agent:[...new Set(e.stage.sessions.map(e=>e.agent))].map(e=>({name:e})),provider:o(),session:e.stage.sessions.map(e=>({id:e.sessionID,parentID:e.parentID,title:e.title,time:{created:e.created,updated:e.created}})),session_status:Object.fromEntries(e.stage.sessions.map(e=>[e.sessionID,a(e)])),session_diff:{}}},onNavigateToSession:t=>{e.stage.sessions.some(e=>e.sessionID===t)&&n(t)},get children(){return z(ff,{component:qA,get children(){return z(P2,{get session(){return i()},get status(){return a(i())}})}})}})}),null),t})()}var I2=()=>({prompt:``,model:``,sessions:[]}),L2=e=>{let[t,n]=e.split(`#`),r=t.indexOf(`/`);return{providerID:r<0?`recorded`:t.slice(0,r),id:r<0?t:t.slice(r+1),variant:n}},R2=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},z2=e=>{let t=(Array.isArray(e)?e:[]).filter(e=>!!e&&typeof e==`object`&&(e.type===`text`&&typeof e.text==`string`||e.type===`file`&&typeof e.uri==`string`&&typeof e.mime==`string`));return t.length?t:[{type:`text`,text:typeof e==`string`?e:JSON.stringify(e??``)}]},B2=e=>{let t=R2(e);return{type:typeof t.type==`string`?t.type:`RecordedError`,message:typeof t.message==`string`?t.message:String(e??`Unknown error`)}};function V2(e,t){if(!(`data`in t.event))return;let n=t.event,r=n.data,i=Date.parse(t.time);if(typeof r.sessionID!=`string`)return;let a=e.sessions.find(e=>e.sessionID===r.sessionID);if(a||(a={sessionID:r.sessionID,title:``,created:i,model:L2(e.model),agent:`build`,messages:[],diffs:[],status:{type:`idle`},parts:{}},e.sessions.push(a)),n.type===`session.created`&&(typeof r.parentID==`string`&&(a.parentID=r.parentID),typeof r.agent==`string`&&(a.agent=r.agent),typeof r.title==`string`&&(a.title=r.title),r.model&&typeof r.model==`object`&&(a.model=r.model)),n.type===`session.renamed`&&typeof r.title==`string`&&(a.title=r.title),n.type===`session.execution.started`&&(a.status={type:`busy`}),[`session.execution.succeeded`,`session.execution.failed`,`session.execution.interrupted`].includes(n.type)&&(a.status={type:`idle`}),n.type===`session.inbox.enqueued`){let e=r.item;e?.type===`user`&&typeof e.payload?.text==`string`&&!a.messages.some(e=>e.id===r.inboxID)&&a.messages.push({type:`user`,id:String(r.inboxID),text:e.payload.text,time:{created:i}})}if(typeof r.assistantMessageID!=`string`)return;let o=a.messages.find(e=>e.type===`assistant`&&e.id===r.assistantMessageID);o||(o={type:`assistant`,id:r.assistantMessageID,time:{created:i},agent:a.agent,model:a.model,content:[]},a.messages.push(o)),n.type===`session.step.started`&&(o.agent=typeof r.agent==`string`?r.agent:a.agent,o.model=r.model&&typeof r.model==`object`?r.model:a.model),n.type===`session.step.streamed`&&(o.time.streamed=i),n.type===`session.step.ended`&&(o.time.completed=i,o.finish=r.finish);let s=/^session\.(text|reasoning)\.(started|delta|ended)$/.exec(n.type);if(s){let e=s[1],t=`${o.id}:${e}:${r.ordinal}`,n=a.parts[t];n||(n={messageID:o.id,index:o.content.length,complete:!1},a.parts[t]=n,o.content.push(e===`reasoning`?{type:e,text:``,time:{created:i}}:{type:e,text:``}));let c=o.content[n.index];if(c.type===`tool`)return;s[2]===`delta`&&!n.complete&&(c.text+=String(r.delta??``)),s[2]===`ended`&&(c.text=String(r.text??c.text),n.complete=!0,c.type===`reasoning`&&(c.time={created:c.time?.created??i,completed:i}))}if(!n.type.startsWith(`session.tool.`)||typeof r.id!=`string`)return;let c=o.content.find(e=>e.type===`tool`&&e.id===r.id);if(c||(c={type:`tool`,id:r.id,name:String(r.name??`tool`),time:{created:i},state:{status:`streaming`,input:``}},o.content.push(c)),typeof r.name==`string`&&(c.name=r.name),n.type===`session.tool.input.delta`&&c.state.status===`streaming`&&(c.state.input+=String(r.delta??``)),n.type===`session.tool.input.ended`&&c.state.status===`streaming`&&(c.state.input=String(r.text??``)),n.type===`session.tool.called`&&(c.state={status:`running`,input:R2(r.input),metadata:{}},c.time.ran=i),n.type===`session.tool.progress`&&c.state.status!==`streaming`&&(c.state.metadata=R2(r.metadata)),n.type===`session.tool.success`||n.type===`session.tool.failed`){let e=c.state.status===`streaming`?{}:c.state.input,t=r.metadata?R2(r.metadata):c.state.status===`streaming`?{}:c.state.metadata;c.state=n.type===`session.tool.success`?{status:`completed`,input:e,metadata:t,content:z2(r.content)}:{status:`error`,input:e,metadata:t,error:B2(r.error),...r.content?{content:z2(r.content)}:{}},c.time.completed=i}typeof r.executed==`boolean`&&(c.executed=r.executed)}var H2=new Map;function U2(e){let[t,n]=$t(I2()),[r,i]=A(),[a,o]=A(`Connecting…`),[s,c]=A(0);M(ae(N(()=>`${e.benchmark()}:${e.execution()}`),t=>{let r=I2(),a=H2.get(t);if(ie(()=>{n(rn(structuredClone(a?.document??r))),i(void 0),o(a?`Session saved`:`Connecting…`),c(e=>e+1)}),a)return;if(!e.execution()){o(`Waiting for session`);return}let s=new EventSource(`/api/session?benchmark=${encodeURIComponent(e.benchmark())}&execution=${encodeURIComponent(e.execution())}`);s.onopen=()=>o(`Streaming`),s.onerror=()=>o(`Reconnecting…`),s.addEventListener(`snapshot`,e=>{r=JSON.parse(e.data).document,ie(()=>{n(rn(structuredClone(r))),c(e=>e+1)})}),s.addEventListener(`records`,e=>{let t=JSON.parse(e.data);for(let e of t)V2(r,e);ie(()=>{n(rn(structuredClone(r))),c(e=>e+1)})}),s.addEventListener(`state`,e=>i(JSON.parse(e.data))),s.addEventListener(`done`,()=>{H2.delete(t),H2.set(t,{document:structuredClone(r)}),H2.size>8&&H2.delete(H2.keys().next().value),o(`Session saved`),s.close()}),s.addEventListener(`session-error`,()=>{o(`Session unavailable`),s.close()}),F(()=>s.close())}));let l=I2();return{state:r,connection:a,revision:s,stage:n=>n===e.stage()?t:l}}var W2=W(`<span class=eval-name>`),G2=`openeval.top-secret`,[K2,q2]=A((()=>{try{return localStorage.getItem(G2)===`true`}catch{return!1}})());function J2(){return z(Sl,{get value(){return K2()?`Click to show eval names and enable traces`:`Click to blur eval names and disable traces`},get children(){return z(Lo,{size:`small`,variant:`ghost`,get icon(){return z(X,{name:`glasses`})},class:`secret-toggle`,"aria-label":`Top secret`,get"aria-pressed"(){return K2()},onClick:()=>q2(!K2())})}})}function Y2(e){return(()=>{var t=W2();return K(t,()=>e.children),j(n=>{var r=!!(K2()&&e.sensitive!==!1),i=K2()&&e.sensitive!==!1?!0:void 0;return r!==n.e&&t.classList.toggle(`is-secret`,n.e=r),i!==n.t&&G(t,`aria-hidden`,n.t=i),n},{e:void 0,t:void 0}),t})()}var X2=W(`<p class=error-banner>Could not load judging checkpoints.`),Z2=W(`<p class=error-banner>`),Q2=W(`<details class=recorded-metrics><summary>Recorded metrics · candidate only</summary><pre class=checkpoint-content>`),$2=W(`<button>Next page`),e4=W(`<div class=judge-check-detail><pre class=checkpoint-content>`),t4=W(`<div class=judge-history>`),n4=W(`<p class=judge-audit-warning>Monitoring ended <!>: <!>. Final grading uses the saved work.`),r4=W(`<p class=judge-audit-warning>. The candidate continues normally; final grading uses its completed evidence.`),i4=W(`<details class=judge-audit open><summary><strong>Judgment and evidence</strong><span></span></summary><div class=judgment-criteria></div><ol class=judge-checks>`),a4=W(`<article><header><strong></strong><span></span></header><p></p><div class=checkpoint-actions>`),o4=W(`<button>Read `),s4=W(`<a class=judgment-source target=_blank rel=noreferrer>`),c4=W(`<details open><summary>Returned JSON</summary><pre class=checkpoint-content>`),l4=W(`<details><summary>Standard output</summary><pre class=checkpoint-content>`),u4=W(`<details><summary>Standard error</summary><pre class=checkpoint-content>`),d4=W(`<section class=code-judgment aria-label="Code judgment"><header><strong>judge.ts</strong><span> · </span></header><details><summary>Frozen source · </summary><pre class=checkpoint-content>`),f4=W(`<p class=judge-check-stop>Stop requested `),p4=W(`<dt>Evidence cutoff`),m4=W(`<dd>`),h4=W(`<dt>Boundary event`),g4=W(`<dt>Native cursors`),_4=W(`<p class=checkpoint-status>Loading evidence…`),v4=W(`<div class=checkpoint-items>`),y4=W(`<button>Back`),b4=W(`<div class=checkpoint-actions>`),x4=W(`<div class=judge-check-detail><details class=checkpoint-identity><summary>Evidence identity <code></code></summary><dl><dt>Check</dt><dd></dd><dt>Evidence SHA-256</dt><dd></dd><dt>Judge events</dt><dd>–</dd><dt>Duration</dt><dd></dd></dl></details><nav aria-label="Checkpoint evidence"class=checkpoint-actions>`),S4=W(`<li><button class=judge-check-heading><span class=judge-check-number></span><strong></strong><span></span><time></time></button><p class=judge-check-reason>`),C4=W(`<button>`),w4=W(`<pre class=checkpoint-content>`),T4=W(`<p>`),E4=W(`<button><strong></strong><span>`);async function D4(e){let t=await fetch(e);if(!t.ok)throw Error(await t.text());return t.json()}function O4(e){let[t,n]=re(()=>!K2()&&`${e.benchmarkId}:${e.judgeId}`,()=>D4(`/api/judge-checks?${new URLSearchParams({benchmark:e.benchmarkId,judge:e.judgeId})}`)),[r,i]=A(``),[a,o]=A({action:`summary`}),[s,c]=A([]),[l]=re(()=>!K2()&&r()?{check:r(),...a()}:!1,n=>{let r=new URLSearchParams({benchmark:e.benchmarkId,judge:e.judgeId,check:n.check===`judgment`?t()?.judge.decisionCheckId??``:n.check,action:n.action});return n.id!==void 0&&r.set(`id`,n.id),n.offset!==void 0&&r.set(`offset`,String(n.offset)),n.path&&r.set(`path`,n.path),n.revision&&r.set(`revision`,n.revision),n.metric&&r.set(`metric`,n.metric),D4(`/api/check-evidence?${r}`)});M(()=>{e.judgeId,i(``),o({action:`summary`}),c([])});let u=setInterval(()=>{!K2()&&t()?.judge.state===`running`&&!t.loading&&n.refetch()},2e3);F(()=>clearInterval(u));let d=e=>{i(r()===e?``:e),o({action:`summary`}),c([])},f=e=>{c([...s(),a()]),o(e)},p=()=>Array.isArray(l()?.items)?l().items:void 0,m=e=>e.state===`completed`?e.decision?.kind===`continue`?`Continue`:e.decision?.judgment.value===1?`Pass`:e.decision?.judgment.value===0?`Fail`:typeof e.decision?.judgment.value==`number`?`${Math.round(e.decision.judgment.value*100)}%`:`Unknown`:tf(e.state);return z(H,{get when(){return U(()=>!K2())()&&(t()?.checks.length||Object.keys(t()?.judge.judgment?.scores??{}).length||t()?.judge.code||t()?.judge.error||t()?.metrics||t()?.judge.monitorError||t()?.judge.monitorLimit||(t()?.history.length??0)>1||t.error)},get children(){var n=i4(),u=n.firstChild,h=u.firstChild,g=h.nextSibling,_=u.nextSibling,v=_.nextSibling;return K(u,z(X,{name:`shield`}),h),K(g,(()=>{var e=U(()=>!!t()?.checks.length);return()=>e()?`${t().checks.length} checkpoint checks`:`Final judgment`})()),K(n,z(H,{get when(){return t.error},get children(){return X2()}}),_),K(n,z(H,{get when(){return t()?.judge.error},get children(){var e=Z2();return K(e,()=>t().judge.error),e}}),_),K(_,z(Ge,{get each(){return Object.entries(t()?.judge.judgment?.scores??{})},children:([e,n])=>(()=>{var r=a4(),a=r.firstChild,s=a.firstChild,l=s.nextSibling,u=a.nextSibling,d=u.nextSibling;return K(s,()=>t()?.criteria.find(t=>t.id===e)?.name??e),K(l,(()=>{var e=U(()=>n.value===null);return()=>e()?`Unknown`:U(()=>n.value===1)()?`Pass`:U(()=>n.value===0)()?`Fail`:Zd(n.value*100)})()),K(u,()=>n.reason),K(d,z(Ge,{get each(){return n.evidence},children:e=>(()=>{var t=o4();return t.firstChild,t.$$click=()=>{i(`judgment`),c([]),o({action:e.kind===`recording`?`summary`:e.kind===`metric`?`metrics`:e.kind,...e.kind===`metric`?{metric:e.id}:{},...`id`in e?{id:e.id}:{},...`path`in e?{path:e.path,revision:e.revision}:{},offset:e.offset})},K(t,()=>e.kind,null),K(t,(()=>{var t=U(()=>`path`in e);return()=>t()?`: ${e.path}`:``})(),null),t})()})),K(r,z(Ge,{get each(){return n.sources},children:e=>(()=>{var t=s4();return G(t,`href`,e),K(t,e),t})()}),null),r})()})),K(n,z(H,{get when(){return t()?.judge.code},children:e=>(()=>{var n=d4(),r=n.firstChild,i=r.firstChild.nextSibling,a=i.firstChild,o=r.nextSibling,s=o.firstChild;s.firstChild;var c=s.nextSibling;return K(i,()=>tf(e().state),a),K(i,()=>ef(e().elapsedMs),null),K(n,z(H,{get when(){return e().output!==void 0},get children(){var t=c4(),n=t.firstChild.nextSibling;return K(n,()=>JSON.stringify(e().output,null,2)),t}}),o),K(s,()=>e().sourceHash.slice(0,12),null),K(c,()=>t()?.codeSource),K(n,z(H,{get when(){return t()?.codeStdout},get children(){var e=l4(),n=e.firstChild.nextSibling;return K(n,()=>t()?.codeStdout),e}}),null),K(n,z(H,{get when(){return t()?.codeStderr},get children(){var e=u4(),n=e.firstChild.nextSibling;return K(n,()=>t()?.codeStderr),e}}),null),n})()}),v),K(n,z(H,{get when(){return t()?.metrics},get children(){var e=Q2(),n=e.firstChild.nextSibling;return K(n,()=>JSON.stringify(t()?.metrics,null,2)),e}}),v),K(n,z(H,{get when(){return r()===`judgment`},get children(){var e=e4(),t=e.firstChild;return K(e,z(H,{get when(){return l.error},get children(){var e=Z2();return K(e,()=>String(l.error)),e}}),t),K(t,(()=>{var e=U(()=>!!l.loading);return()=>e()?`Loading evidence…`:U(()=>typeof l()?.text==`string`)()?l().text:JSON.stringify(l(),null,2)})()),K(e,z(H,{get when(){return typeof l()?.next==`number`},get children(){var e=$2();return e.$$click=()=>o({...a(),offset:l().next}),e}}),null),e}}),v),K(n,z(H,{get when(){return(t()?.history.length??0)>1},get children(){var n=t4();return K(n,z(jd,{"aria-label":`Judging history`,get options(){return t().history.map(e=>e.id)},get current(){return e.judgeId},label:e=>{let n=t().history.find(t=>t.id===e);return`${n.mode===`monitor`?`Monitoring`:`Final judge`} · ${new Date(n.startedAt).toLocaleTimeString()} · ${tf(n.state)}`},onSelect:t=>{t&&e.onSelectJudge(t)}})),n}}),v),K(n,z(H,{get when(){return t()?.judge.monitorError},get children(){var e=n4(),n=e.firstChild.nextSibling,r=n.nextSibling.nextSibling;return r.nextSibling,K(e,(()=>{var e=U(()=>!!t().judge.monitorErrorAt);return()=>e()?`at ${new Date(t().judge.monitorErrorAt).toLocaleTimeString()}`:``})(),n),K(e,()=>t().judge.monitorError,r),e}}),v),K(n,z(H,{get when(){return t()?.judge.monitorLimit},get children(){var e=r4(),n=e.firstChild;return K(e,()=>t().judge.monitorLimit,n),e}}),v),K(v,z(Ge,{get each(){return t()?.checks},children:(e,n)=>(()=>{var i=S4(),u=i.firstChild,h=u.firstChild,g=h.nextSibling,_=g.nextSibling,v=_.nextSibling,y=u.nextSibling;return u.$$click=()=>d(e.id),K(h,()=>String(n()+1).padStart(2,`0`)),K(g,()=>m(e)),K(_,(()=>{var t=U(()=>e.purpose===`final`);return()=>t()?`Final archive`:`Through event #${e.checkpoint.through}`})()),K(v,()=>new Date(e.startedAt).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`})),K(u,z(X,{get name(){return r()===e.id?`chevron-down`:`chevron-right`}}),null),K(y,(()=>{var t=U(()=>e.decision?.kind===`continue`);return()=>t()?e.decision.reason:e.decision?.judgment.reason??e.error??`Waiting for the judge`})()),K(i,z(H,{get when(){return t()?.stop?.checkId===e.id},get children(){var e=f4();return e.firstChild,K(e,()=>new Date(t().stop.requestedAt).toLocaleTimeString(),null),K(e,(()=>{var e=U(()=>t().stop.applied===void 0);return()=>e()?` · Awaiting interruption`:t().stop.applied?` · Session stopped early`:` · Session had already ended`})(),null),e}}),null),K(i,z(H,{get when(){return r()===e.id},get children(){var t=x4(),n=t.firstChild,r=n.firstChild,i=r.firstChild.nextSibling,u=r.nextSibling,d=u.firstChild.nextSibling,m=d.nextSibling.nextSibling,h=m.nextSibling.nextSibling,g=h.firstChild,_=h.nextSibling,v=_.nextSibling,y=n.nextSibling;return K(i,()=>e.checkpoint.hash.slice(0,12)),K(d,()=>e.id),K(m,()=>e.checkpoint.hash),K(h,()=>e.events.after+1,g),K(h,()=>e.events.through??`live`,null),K(u,z(H,{get when(){return e.checkpoint.cutoffAt!==void 0},get children(){return[p4(),(()=>{var t=m4();return K(t,()=>new Date(e.checkpoint.cutoffAt).toISOString()),t})(),h4(),(()=>{var t=m4();return K(t,()=>e.checkpoint.boundaryEventId),t})(),g4(),(()=>{var t=m4();return K(t,()=>JSON.stringify(e.checkpoint.cursors)),t})()]}}),_),K(v,(()=>{var t=U(()=>e.runtimeMs!==void 0);return()=>t()?ef(e.runtimeMs):`—`})()),K(y,z(Ge,{each:[`summary`,`messages`,`tools`,`events`,`response`],children:e=>(()=>{var t=C4();return t.$$click=()=>{o({action:e}),c([])},K(t,e),j(()=>t.classList.toggle(`selected`,a().action===e)),t})()})),K(t,z(H,{get when(){return l.loading},get children(){return _4()}}),null),K(t,z(H,{get when(){return l.error},get children(){var e=Z2();return K(e,()=>String(l.error)),e}}),null),K(t,z(H,{get when(){return U(()=>!l.loading)()&&l()},get children(){return[z(H,{get when(){return p()},get fallback(){return(()=>{var e=w4();return K(e,(()=>{var e=U(()=>typeof l().text==`string`);return()=>e()?l().text:JSON.stringify(l(),null,2)})()),e})()},get children(){var e=v4();return K(e,z(Ge,{get each(){return p()},children:e=>(()=>{var t=E4(),n=t.firstChild,r=n.nextSibling;return t.$$click=()=>f({action:a().action===`events`?`event`:a().action===`tools`?`tool`:`message`,id:String(e.id??e.sequence)}),K(n,()=>String(e.name??e.type??e.role??`Item`)),K(r,()=>String(e.id??`#${e.sequence}`)),K(t,z(H,{get when(){return e.preview},get children(){var t=T4();return K(t,()=>String(e.preview)),t}}),null),t})()})),e}}),(()=>{var e=b4();return K(e,z(H,{get when(){return s().length},get children(){var e=y4();return e.$$click=()=>{let e=s();o(e[e.length-1]),c(e.slice(0,-1))},e}}),null),K(e,z(H,{get when(){return typeof l()?.next==`number`},get children(){var e=$2();return e.$$click=()=>f({...a(),offset:l().next}),e}}),null),e})()]}}),null),t}}),null),j(n=>{var a=t()?.judge.decisionCheckId===e.id,o=r()===e.id,s=e.startedAt,c=e.startedAt;return a!==n.e&&i.classList.toggle(`decisive`,n.e=a),o!==n.t&&G(u,`aria-expanded`,n.t=o),s!==n.a&&G(v,`datetime`,n.a=s),c!==n.o&&G(v,`title`,n.o=c),n},{e:void 0,t:void 0,a:void 0,o:void 0}),i})()})),n}})}ct([`click`]);var k4=W(`<div class=session-tab-heading><span class=session-connection role=status>`),A4=W(`<div class=early-stop-note><span> · evidence through #</span><button>View decision`),j4=W(`<div class=early-stop-note><span>Judge session that requested the early stop</span><button>Current judgment`),M4=W(`<div class=session-timeline-scroll>`),N4=W(`<div class=session-inspector>`),P4=W(`<pre class=raw-document>`),F4=W(`<div class=error-banner role=alert>Could not render this recorded timeline. The saved data is available from the code icon.`);function I4(e){let[t,n]=A(e.initialTab??`session`),[r,i]=A(),a=()=>r()??e.judgeId,o=()=>t()===`judge`&&e.state?.judge.kind===`code`;M(ae(()=>e.initialTab,e=>{e&&n(e)},{defer:!0}));let s=U2({benchmark:()=>e.benchmarkId,execution:()=>o()?void 0:t()===`judge`?a():e.candidateId,stage:()=>t()===`judge`?`judge`:`candidate`}),[c,l]=A(!1);M(ae(N(()=>`${e.benchmarkId}:${e.candidateId}`),()=>{l(!1),i(void 0)}));let[u,d]=A(!0),f,p,m=()=>s.state()??e.state;M(()=>{s.revision(),t(),u()&&(p!==void 0&&cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&u()&&(f.scrollTop=f.scrollHeight)}))}),F(()=>{p!==void 0&&cancelAnimationFrame(p)});let h=t=>e.state?(t===`judge`?e.state.judge:e.state.eval).status===`in_progress`:m()?.status===`in_progress`&&(m()?.stage??`candidate`)===t;return(()=>{var p=N4();return K(p,z(Mu,{variant:`pill`,get value(){return t()},onChange:e=>{n(e),d(!0)},class:`session-tabs`,get children(){return[(()=>{var e=k4(),t=e.firstChild;return K(e,z(Mu.List,{"aria-label":`Eval run sessions`,get children(){return[z(Mu.Trigger,{value:`session`,children:`Session`}),z(Mu.Trigger,{value:`judge`,get children(){return[z(X,{name:`shield`}),`Judge`]}})]}}),t),K(t,(()=>{var e=U(()=>!!o());return()=>e()?`Code judgment`:s.connection()})()),K(e,z(H,{get when(){return!o()},get children(){return z(Sl,{get value(){return c()?`Show timeline`:`Show raw JSON`},get children(){return z(Lo,{size:`small`,variant:`ghost-muted`,get icon(){return z(X,{name:`code`})},get"aria-label"(){return c()?`Show timeline`:`Show raw JSON`},get"aria-pressed"(){return c()},onClick:()=>l(!c())})}})}}),null),e})(),z(H,{get when(){return U(()=>t()===`session`)()&&e.state?.stop},get children(){var t=A4(),r=t.firstChild,a=r.firstChild,o=r.nextSibling;return K(t,z(X,{name:`shield`}),r),K(r,()=>e.state.stop.applied?`Stopped early`:`Stop requested`,a),K(r,()=>e.state.stop.checkpoint.through,null),o.$$click=()=>{i(e.state.stop.judgeRunId),n(`judge`),d(!1)},t}}),z(H,{get when(){return U(()=>!!(t()===`judge`&&r()))()&&r()!==e.judgeId},get children(){var e=j4(),t=e.firstChild.nextSibling;return t.$$click=()=>i(void 0),e}}),z(H,{get when(){return U(()=>t()===`judge`)()&&a()},get children(){return z(O4,{get benchmarkId(){return e.benchmarkId},get judgeId(){return a()},onSelectJudge:i})}}),z(H,{get when(){return!o()},get children(){var e=M4();e.addEventListener(`scroll`,()=>{f&&f.scrollHeight-f.scrollTop-f.clientHeight<50&&d(!0)}),e.$$keydown=e=>{[`ArrowUp`,`PageUp`,`Home`].includes(e.key)&&d(!1)},e.$$pointerdown=e=>{e.target===f&&d(!1)},e.$$touchstart=()=>d(!1),e.addEventListener(`wheel`,e=>{e.deltaY<0&&d(!1)});var n=f;return typeof n==`function`?_t(n,e):f=e,K(e,z(H,{get when(){return!c()},get fallback(){return(()=>{var e=P4();return K(e,()=>JSON.stringify({stage:t(),document:s.stage(t()===`judge`?`judge`:`candidate`)},null,2)),e})()},get children(){return z(Xe,{get fallback(){return F4()},get children(){return[z(Mu.Content,{value:`session`,get children(){return z(F2,{get stage(){return s.stage(`candidate`)},get running(){return h(`candidate`)},get pending(){return m()?.status===`queued`||m()?.status===`in_progress`}})}}),z(Mu.Content,{value:`judge`,get children(){return z(F2,{get stage(){return s.stage(`judge`)},get running(){return h(`judge`)},get pending(){return m()?.status===`queued`||m()?.status===`in_progress`}})}})]}})}})),e}})]}}),null),K(p,z(H,{get when(){return U(()=>!u())()&&m()?.status===`in_progress`},get children(){return z(Po,{class:`follow-stream`,size:`small`,variant:`outline`,onClick:()=>d(!0),children:`Follow stream`})}}),null),j(e=>{var t=o()?`true`:void 0,n=s.stage(`candidate`).sessions.length,r=s.stage(`judge`).sessions.length;return t!==e.e&&G(p,`data-code-only`,e.e=t),n!==e.t&&G(p,`data-candidate-sessions`,e.t=n),r!==e.a&&G(p,`data-judge-sessions`,e.a=r),e},{e:void 0,t:void 0,a:void 0}),p})()}ct([`click`,`touchstart`,`pointerdown`,`keydown`]);var L4=W(`<div class=error-banner>`),R4=W(`<section class=trace-view><div class=trace-heading><div><h1></h1><p><span>·</span><span>·</span><span>·</span>Cost </p></div><div class=trace-actions>`);function z4(e){return(()=>{var t=R4(),n=t.firstChild.firstChild,r=n.firstChild,i=r.nextSibling,a=i.firstChild,o=a.nextSibling,s=o.nextSibling;s.nextSibling;var c=n.nextSibling;return K(n,z(Po,{size:`small`,variant:`ghost-muted`,icon:`arrow-left`,get onClick(){return e.onBack},children:`Eval results`}),r),K(r,()=>Gd(e.selected.model)),K(i,()=>e.run.eval,a),K(i,()=>e.selected.reasoning,o),K(i,()=>ef(e.selected.elapsedMs),s),K(i,()=>Qd(e.selected.cost.usd),null),K(c,z(Io,{get children(){return e.selected.status}}),null),K(c,z(H,{get when(){return e.run.runs.length>1},get children(){return z(jd,{"aria-label":`Eval run`,get options(){return e.run.runs},get current(){return e.selected},value:e=>e.id,label:e=>`${Gd(e.model)} · ${e.reasoning} · run ${e.repetition}`,onSelect:t=>{t&&e.onRun(t.id)}})}}),null),K(t,z(H,{get when(){return e.selected.message},get children(){var t=L4();return K(t,()=>e.selected.message),t}}),null),K(t,z(I4,{get benchmarkId(){return e.run.benchmarkId},get candidateId(){return e.selected.evalRunId},get judgeId(){return e.selected.judgeRunId},get state(){return e.selected}}),null),t})()}var B4=W(`<div class=session-drawer-actions>`);function V4(e){let t=document.activeElement instanceof HTMLElement?document.activeElement:void 0,n=t?.dataset.runKey;return z(_o,{get open(){return e.open},modal:!0,onOpenChange:t=>{t||e.onClose()},get children(){return z(_o.Portal,{get children(){return[z(_o.Overlay,{class:`session-drawer-backdrop`}),z(_o.Content,{class:`session-drawer`,onCloseAutoFocus:e=>{e.preventDefault(),queueMicrotask(()=>{(t?.isConnected?t:[...document.querySelectorAll(`[data-run-key]`)].find(e=>e.dataset.runKey===n))?.focus({preventScroll:!0})})},get children(){return[z(_o.Title,{class:`sr-only`,get children(){return e.title}}),(()=>{var t=B4();return K(t,z(J2,{}),null),K(t,z(Lo,{size:`small`,variant:`ghost-muted`,get icon(){return z(X,{name:`close`})},"aria-label":`Close eval run`,get onClick(){return e.onClose}}),null),t})(),U(()=>e.children)]}})]}})}})}var H4=e=>e.status===`completed`||e.status===`failed`,U4=e=>[`completed`,`stopped`,`failed`,`timed_out`].includes(e.eval.status),W4=e=>typeof e.judge.score==`number`&&e.judge.score>=0&&e.judge.score<=1,G4=e=>+(e.eval.status===`in_progress`)+ +(e.judge.status===`in_progress`),K4=e=>+!![`completed`,`stopped`].includes(e.eval.status)+ +!!W4(e),q4=e=>+!![`failed`,`timed_out`,`interrupted`].includes(e.eval.status)+([`failed`,`timed_out`,`interrupted`,`blocked`].includes(e.judge.status)||e.judge.score===null?1:0),J4=e=>JSON.stringify([e.model,e.reasoning]);function Y4(e,t){let n=e.some(e=>e.state.status===`running`&&t-Date.parse(e.state.heartbeatAt)<=3e4),r=e.toSorted((e,t)=>e.state.evalOrder-t.state.evalOrder).flatMap(e=>e.state.runs.map(t=>({eval:e.state.eval,run:t,key:`${e.id}:${t.id}`}))),i=[...new Set(r.map(({run:e})=>J4(e)))].map(e=>{let t=r.filter(({run:t})=>J4(t)===e).map(({run:e})=>e);return{key:e,model:t[0].model,reasoning:t[0].reasoning,total:t.length*2,completed:t.reduce((e,t)=>e+K4(t),0),attention:t.reduce((e,t)=>e+q4(t),0),active:n?t.reduce((e,t)=>e+G4(t),0):0,scheduled:t.some(e=>e.scheduled),stopped:t.filter(e=>[`cancelled`,`interrupted`].includes(e.status)).length}}),a=r.flatMap(e=>[`eval`,`judge`].flatMap(n=>{let r=e.run[n],i=Wd(r,t);return[`completed`,`stopped`].includes(r.status)&&i>0&&Date.parse(r.completedAt)<=t?[{...e,kind:n,duration:i}]:[]})),o=Math.max(1,...e.map(e=>e.state.concurrency)),s=r.filter(({run:e})=>e.scheduled),c=s.filter(({run:e})=>e.eval.status===`queued`),l=Ld(e.flatMap(e=>{let n=zd(t,e.state.heartbeatAt,e.state.status===`running`);return e.state.runtime.map(e=>({...e,end:e.end??n}))}),t),u=null;if(n&&a.length){let e=(e,t)=>{let n=a.filter(e=>e.kind===t),r=n.filter(t=>t.eval===e.eval&&J4(t.run)===J4(e.run));if(r.length)return r;let i=n.filter(t=>t.eval===e.eval);if(i.length)return i;let o=n.filter(t=>J4(t.run)===J4(e.run));return o.length?o:n},n=e=>e.reduce((e,t)=>e+t,0)/e.length,r=(r,i)=>{let a=Wd(r.run[i],t),o=e(r,i).map(e=>e.duration),s=o.filter(e=>e>a);if(o.length)return Math.max(1e3,s.length?n(s)-a:n(o)*.25)},i=[],c=new Map,l=!1;for(let e of s){let t=[`queued`,`in_progress`].includes(e.run.eval.status),n=[`queued`,`in_progress`,`watching`].includes(e.run.judge.status)||e.run.judge.status===`waiting`&&(t||[`completed`,`stopped`,`timed_out`].includes(e.run.eval.status));t||c.set(`${e.key}:eval`,0);for(let a of[`eval`,`judge`]){if(!(a===`eval`?t:n))continue;let o=r(e,a);if(o===void 0){l=!0;continue}let s=e.run[a].status===`in_progress`;i.push({id:`${e.key}:${a}`,kind:a,duration:o,active:s,dependency:a===`judge`&&!s&&t?`${e.key}:eval`:void 0})}}if(!l&&i.length){let e=i.filter(e=>e.active).map(e=>(c.set(e.id,e.duration),e.duration));for(;e.length<o;)e.push(0);let t=i.filter(e=>!e.active);for(;t.length;){let n=e.indexOf(Math.min(...e)),r=t.filter(e=>!e.dependency||c.has(e.dependency)),i=e=>e.dependency?c.get(e.dependency):0,a=r.filter(t=>i(t)<=e[n]),o=a.find(e=>e.kind===`judge`)??a[0]??r.sort((e,t)=>i(e)-i(t))[0];if(!o){l=!0;break}e[n]=Math.max(e[n],i(o))+o.duration,c.set(o.id,e[n]),t.splice(t.indexOf(o),1)}l||(u=Math.max(...e))}}return{models:i,total:r.length,finished:r.filter(({run:e})=>H4(e)).length,evals:r.filter(({run:e})=>U4(e)).length,scored:r.filter(({run:e})=>W4(e)).length,attention:r.filter(({run:e})=>e.attention).length,active:n?r.reduce((e,{run:t})=>e+G4(t),0):0,queued:c.length,running:n,samples:a.length,concurrency:o,elapsedMs:l,remainingMs:u,finishAt:u===null?null:t+u}}function X4(e){let t=Math.max(1,Math.ceil(e/6e4));return t<60?`${t} min`:`${Math.floor(t/60)} hr${t%60?` ${t%60} min`:``}`}var Z4=W(`<div class=error-banner>`),Q4=W(`<section class=live-trace-panel><header class=live-trace-heading><div><h2></h2><p> · run <!> · `);function $4(e){let t=()=>e.stage===`judge`?e.selected.judge:e.selected.eval,n=()=>e.stage===`judge`&&t().status===`completed`?`Judge · ${w3(t())}`:`${e.stage===`judge`?`Judge`:`Eval run`} · ${tf(t().status)}`;return(()=>{var t=Q4(),r=t.firstChild,i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.firstChild,c=s.nextSibling;return c.nextSibling,K(r,z(Po,{size:`small`,variant:`ghost-muted`,icon:`arrow-left`,get onClick(){return e.onBack},children:`Queue`}),i),K(a,()=>Gd(e.selected.model)),K(o,()=>e.run.state.eval,s),K(o,()=>e.selected.repetition,c),K(o,()=>e.selected.reasoning,null),K(r,z(Io,{get children(){return n()}}),null),K(t,z(H,{get when(){return e.selected.attention??e.selected.message},get children(){var t=Z4();return K(t,()=>e.selected.attention??e.selected.message),t}}),null),K(t,z(I4,{get benchmarkId(){return e.run.benchmarkId},get candidateId(){return e.selected.evalRunId},get judgeId(){return e.selected.judgeRunId},get state(){return e.selected},get initialTab(){return e.stage===`judge`?`judge`:`session`}}),null),t})()}var e3=W(`<span class=queue-workers>Workers <strong>/`),t3=W(`<span class=queue-eta><span></span><strong>`),n3=W(`<span>Est. finish <strong>`),r3=W(`<span>Elapsed <strong>`),i3=W(`<span>Cost so far <strong>`),a3=W(`<div class=queue-timing>`),o3=W(`<div class=queue-strip>`),s3=W(`<span class=progress-attention><strong></strong> need attention`),c3=W(`<details class=model-race open><summary><span>Model progress</span><small class=progress-summary><span><strong></strong>/<!> eval runs done</span><span><strong></strong>/<!> scored</span></small></summary><div class=model-race-grid>`),l3=W(`<div class=activity-page><header class=activity-heading><h1>Eval run queue</h1></header><div class=activity-workspace><div class=queue-board aria-label="Eval and judge status columns">`),u3=W(`<span>`),d3=W(`<span>/`),f3=W(`<div class=model-race-row><div class=model-race-lane><div class=model-race-label><span class=model-race-name><strong></strong><small></small></span><span class=model-race-count><small></small></span></div><div class=model-race-track role=progressbar aria-valuemin=0><span>`),p3=W(`<small class=queue-waiting-count title="Judges waiting for finalized eval evidence"> waiting`),m3=W(`<small class=queue-waiting-count> not scheduled`),h3=W(`<p class=queue-column-empty>`),g3=W(`<section class=queue-column><header class=queue-column-heading><span aria-hidden=true></span><h2></h2></header><div class=queue-column-list role=region tabindex=0>`),_3=W(`<span class=early-stop-label>Stopped early`),v3=W(`<time class=queue-card-elapsed>`),y3=W(`<button class=queue-card><span class=queue-card-heading><span aria-hidden=true></span><strong></strong><small></small><span class=stage-icon role=img></span></span><span class=queue-card-meta><span class=queue-card-numbers><span>#`),b3=2,x3=2,S3=9,C3=e=>[`queued`,`waiting`,`watching`].includes(e.stage.status)?`queued`:e.stage.status===`in_progress`?`in_progress`:e.stage.status===`completed`||e.stage.status===`stopped`?e.kind===`judge`&&e.stage.score===null?`attention`:`completed`:`attention`,w3=e=>e.score===1?`Pass`:e.score===0?`Fail`:typeof e.score==`number`?`${Math.round(e.score*100)}%`:`Unknown`,T3=e=>e.kind===`judge`&&e.stage.score===null?`unknown`:e.stage.status;function E3(e){let[t,n]=A(``),[r,i]=A(Date.now());oe(()=>{let e=setInterval(()=>i(Date.now()),1e3);F(()=>clearInterval(e))});let a=N(()=>[...new Set(e.runs.map(e=>e.benchmarkId))]),o=N(()=>e.runs.find(t=>t.id===e.run));M(()=>{o()?n(o().benchmarkId):!t()&&a().length&&n(a()[0])});let s=N(()=>e.runs.filter(e=>e.benchmarkId===t()).toSorted((e,t)=>e.state.evalOrder-t.state.evalOrder)),c=N(()=>Y4(s(),r())),l=N(()=>Ud(s().map(e=>e.cost))),u=N(()=>s().flatMap(e=>e.state.runs.map(t=>({key:`${e.id}:${t.id}`,group:e,run:t})))),d=N(()=>u().flatMap(({key:e,group:t,run:n})=>[{key:`${e}:eval`,group:t,run:n,kind:`eval`,stage:n.eval},{key:`${e}:judge`,group:t,run:n,kind:`judge`,stage:n.judge}])),f=[{id:`queued`,label:`Queued`,dot:`queued`},{id:`in_progress`,label:`In progress`,dot:`in_progress`},{id:`completed`,label:`Completed`,dot:`completed`},{id:`attention`,label:`Needs attention`,dot:`failed`}],p=e=>d().filter(t=>C3(t)===e).map(e=>e.key),m=()=>d().filter(e=>e.run.scheduled&&e.stage.status===`queued`).length,h=()=>d().filter(e=>e.run.scheduled&&[`waiting`,`watching`].includes(e.stage.status)).length,g=()=>d().filter(e=>e.run.scheduled===!1&&[`queued`,`waiting`,`watching`].includes(e.stage.status)).length,[_,v]=A({width:0,tick:b3,gap:x3,height:S3}),y=e=>{let t=()=>{let t=window.devicePixelRatio||1,n=e=>Math.max(1,Math.round(e*t))/t;v({width:e.getBoundingClientRect().width,tick:n(b3),gap:n(x3),height:n(S3)})},n=new ResizeObserver(([e])=>{e.contentRect.width!==_().width&&t()});n.observe(e),window.addEventListener(`resize`,t),F(()=>{n.disconnect(),window.removeEventListener(`resize`,t)})},b=N(()=>{let e=[`completed`,`attention`,`in_progress`,`queued`],t=d().map(e=>C3(e)).sort((t,n)=>e.indexOf(t)-e.indexOf(n));if(!t.length)return[];let{width:n,tick:r,gap:i}=_(),a=Math.floor((n+i)/(r+i)),o=Math.max(1,a||t.length);return Array.from({length:o},(e,n)=>{let r=Math.floor(n*t.length/o),i=Math.max(r+1,Math.floor((n+1)*t.length/o)),a=new Map;for(let e of t.slice(r,i))a.set(e,(a.get(e)??0)+1);let[s]=[...a.entries()].sort((e,t)=>t[1]-e[1])[0];return{column:s,title:[...a.entries()].map(([e,t])=>`${t} ${f.find(t=>t.id===e).label.toLowerCase()}`).join(`, `)}})}),x=()=>o()?.state.runs.find(t=>t.id===e.evalRun);return(()=>{var i=l3(),s=i.firstChild;s.firstChild;var v=s.nextSibling,S=v.firstChild;return K(s,z(H,{get when(){return a().length},get children(){return z(jd,{"aria-label":`Benchmark run`,get options(){return a()},get current(){return t()},label:t=>`Benchmark · ${$d(e.runs.find(e=>e.benchmarkId===t).state.startedAt)}`,onSelect:r=>{r&&r!==t()&&(e.onSelect(``,``),n(r))}})}}),null),K(i,z(H,{get when(){return u().length},get children(){return[(()=>{var e=a3();return K(e,z(Sl,{value:`Free workers immediately start ready work. Judges wait for finalized eval evidence.`,get children(){var e=e3(),t=e.firstChild.nextSibling,n=t.firstChild;return K(t,()=>c().active,n),K(t,()=>c().concurrency,null),e}}),null),K(e,z(Sl,{get value(){return`Estimated from ${c().samples} completed eval/judge stage runtimes for the current execution scope, using ${c().concurrency} parallel workers. Idle gaps and deferred work are excluded.`},get children(){var e=t3(),t=e.firstChild,n=t.nextSibling;return K(t,()=>c().running?`ETA`:`Run ended`),K(n,(()=>{var e=U(()=>c().remainingMs!==null);return()=>e()?`About ${X4(c().remainingMs)} left`:U(()=>!!c().running)()?`Estimating…`:`${c().finished}/${c().total} finished`})()),e}}),null),K(e,z(H,{get when(){return c().finishAt!==null},get children(){var e=n3(),t=e.firstChild.nextSibling;return K(t,()=>new Date(c().finishAt).toLocaleString([],{...new Date(c().finishAt).toDateString()===new Date(r()).toDateString()?{}:{month:`short`,day:`numeric`},hour:`numeric`,minute:`2-digit`})),e}}),null),K(e,z(Sl,{value:`Recorded eval and judge wall-clock runtime across all executions. Overlapping workers count once; idle gaps and passive monitoring are excluded.`,get children(){var e=r3(),t=e.firstChild.nextSibling;return K(t,()=>ef(c().elapsedMs)),e}}),null),K(e,z(Sl,{value:`Reported eval and judge cost, including active-session usage and previous executions.`,get children(){var e=i3(),t=e.firstChild.nextSibling;return K(t,()=>Qd(l().reportedUSD)),e}}),null),e})(),(()=>{var e=o3();return _t(y,e),K(e,z(Ge,{get each(){return b()},children:e=>(()=>{var t=u3();return j(n=>{var r=e.column,i=e.title;return r!==n.e&&dt(t,n.e=r),i!==n.t&&G(t,`title`,n.t=i),n},{e:void 0,t:void 0}),t})()})),j(t=>{var n=`${_().tick}px`,r=`${_().gap}px`,i=`${_().height}px`,a=`${c().evals} of ${c().total} eval runs done, ${c().scored} scored`;return n!==t.e&&ht(e,`--strip-tick`,t.e=n),r!==t.t&&ht(e,`--strip-gap`,t.t=r),i!==t.a&&ht(e,`--strip-height`,t.a=i),a!==t.o&&G(e,`aria-label`,t.o=a),t},{e:void 0,t:void 0,a:void 0,o:void 0}),e})(),(()=>{var e=c3(),t=e.firstChild,n=t.firstChild.nextSibling,r=n.firstChild,i=r.firstChild,a=i.nextSibling.nextSibling;a.nextSibling;var o=r.nextSibling,s=o.firstChild,l=s.nextSibling.nextSibling;l.nextSibling;var u=t.nextSibling;return K(i,()=>c().evals),K(r,()=>c().total,a),K(s,()=>c().scored),K(o,()=>c().total,l),K(n,z(H,{get when(){return c().attention},get children(){var e=s3(),t=e.firstChild;return K(t,()=>c().attention),e}}),null),K(u,z(Ge,{get each(){return c().models.map(e=>e.key)},children:e=>{let t=()=>c().models.find(t=>t.key===e);return(()=>{var e=f3(),n=e.firstChild,r=n.firstChild,i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=i.nextSibling,c=s.firstChild,l=r.nextSibling,u=l.firstChild;return K(e,z(Fd,{get id(){return Kd(t().model)}}),n),K(a,()=>Gd(t().model)),K(o,()=>t().reasoning),K(c,(()=>{var e=U(()=>!!t().active);return()=>e()?`${t().active} running`:U(()=>!!t().stopped)()?`${t().stopped} stopped`:U(()=>t().completed+t().attention===t().total)()?`Done`:t().scheduled?`Queued`:`Not scheduled`})()),K(s,z(Sl,{get value(){return`${t().completed} of ${t().total} eval and judge stages completed${t().attention?`, ${t().attention} need attention`:``}`},get children(){var e=d3(),n=e.firstChild;return K(e,()=>t().completed,n),K(e,()=>t().total,null),e}}),null),j(e=>{var n=`${Gd(t().model)} · ${t().reasoning} completed stages`,r=t().total,i=t().completed,a=`${t().completed/t().total*100}%`;return n!==e.e&&G(l,`aria-label`,e.e=n),r!==e.t&&G(l,`aria-valuemax`,e.t=r),i!==e.a&&G(l,`aria-valuenow`,e.a=i),a!==e.o&&ht(u,`width`,e.o=a),e},{e:void 0,t:void 0,a:void 0,o:void 0}),e})()}})),e})()]}}),v),K(S,z(Ge,{each:f,children:t=>(()=>{var n=g3(),i=n.firstChild,a=i.firstChild,o=a.nextSibling,s=i.nextSibling;return K(o,()=>t.label),K(i,z(Io,{get children(){return U(()=>t.id===`queued`)()?`${m()} ready`:p(t.id).length}}),null),K(i,z(H,{get when(){return U(()=>t.id===`queued`)()&&h()},get children(){var e=p3(),t=e.firstChild;return K(e,h,t),e}}),null),K(i,z(H,{get when(){return U(()=>t.id===`queued`)()&&g()},get children(){var e=m3(),t=e.firstChild;return K(e,g,t),e}}),null),K(s,z(Ge,{get each(){return p(t.id)},children:t=>{let n=()=>d().find(e=>e.key===t),i=()=>e.run===n().group.id&&e.evalRun===n().run.id&&e.stage===n().kind,a=()=>Wd(n().stage,zd(r(),n().group.state.heartbeatAt,n().group.state.status===`running`)),o=()=>K2()?`Hidden eval`:n().group.state.eval,s=()=>n().run.scheduled===!1&&[`queued`,`waiting`,`watching`].includes(n().stage.status)?`Not scheduled`:n().kind===`judge`&&n().stage.status===`completed`?w3(n().stage):n().stage.status===`waiting`?`Waiting for eval run`:n().stage.status===`blocked`?`Blocked by eval run`:tf(n().stage.status);return(()=>{var r=y3(),c=r.firstChild,l=c.firstChild,u=l.nextSibling,d=u.nextSibling,f=d.nextSibling,p=c.nextSibling,m=p.firstChild,h=m.firstChild;return h.firstChild,r.$$click=()=>{K2()||e.onSelect(n().group.id,n().run.id,n().kind)},G(r,`data-run-key`,t),K(u,()=>Gd(n().run.model)),K(d,()=>n().run.reasoning),K(f,z(X,{get name(){return n().kind===`eval`?`flask`:`shield`}})),K(p,z(Y2,{get children(){return n().group.state.eval}}),m),K(m,z(H,{get when(){return U(()=>n().kind===`eval`)()&&n().stage.status===`stopped`},get children(){var e=_3();return j(()=>G(e,`title`,`Stopped after judge check through evidence event ${n().run.stop?.checkpoint.through??``}`)),e}}),h),K(m,z(H,{get when(){return U(()=>n().stage.status===`in_progress`)()&&a()!==void 0},get children(){var e=v3();return K(e,()=>ef(a())),e}}),h),K(m,z(H,{get when(){return U(()=>n().kind===`judge`)()&&n().stage.status===`completed`},get children(){var e=u3();return K(e,()=>w3(n().stage)),j(()=>dt(e,`verdict ${w3(n().stage).toLowerCase()}`)),e}}),h),K(h,()=>n().run.repetition,null),j(e=>{var t=n().kind,a=n().stage.status,c=!!i(),u=i(),d=K2(),p=`${n().kind===`eval`?`Eval run`:`Judge`}, ${Gd(n().run.model)}, ${n().run.reasoning}, ${o()}, run ${n().run.repetition}, ${s()}`,m=`status-dot ${T3(n())}`,h=n().kind,g=`${n().kind===`eval`?`Eval run`:`Judge`} · ${s()}`,_=n().kind===`eval`?`Eval run`:`Judge`;return t!==e.e&&G(r,`data-stage`,e.e=t),a!==e.t&&G(r,`data-state`,e.t=a),c!==e.a&&r.classList.toggle(`selected`,e.a=c),u!==e.o&&G(r,`aria-pressed`,e.o=u),d!==e.i&&(r.disabled=e.i=d),p!==e.n&&G(r,`aria-label`,e.n=p),m!==e.s&&dt(l,e.s=m),h!==e.h&&G(f,`data-stage`,e.h=h),g!==e.r&&G(f,`title`,e.r=g),_!==e.d&&G(f,`aria-label`,e.d=_),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),r})()}}),null),K(s,z(H,{get when(){return!p(t.id).length},get children(){var e=h3();return K(e,()=>t.id===`attention`?`Nothing needs attention`:`No eval or judge runs`),e}}),null),j(e=>{var r=`queue-${t.id}`,i=`status-dot ${t.dot}`,c=`queue-${t.id}`,l=`${t.label} eval and judge runs`;return r!==e.e&&G(n,`aria-labelledby`,e.e=r),i!==e.t&&dt(a,e.t=i),c!==e.a&&G(o,`id`,e.a=c),l!==e.o&&G(s,`aria-label`,e.o=l),e},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()})),K(v,z(H,{get when(){return U(()=>!K2())()&&x()},get children(){return z(V4,{open:!0,get title(){return`${Gd(x().model)} ${e.stage===`judge`?`judge`:`eval run`}`},onClose:()=>e.onSelect(``,``),get children(){return z($4,{get run(){return o()},get selected(){return x()},get stage(){return e.stage},onBack:()=>e.onSelect(``,``)})}})}}),null),i})()}ct([`click`]);function D3(e={}){let[t,n]=ja({value:()=>q(e.isSelected),defaultValue:()=>!!q(e.defaultIsSelected),onChange:t=>e.onSelectedChange?.(t)});return{isSelected:t,setIsSelected:t=>{!q(e.isReadOnly)&&!q(e.isDisabled)&&n(t)},toggle:()=>{!q(e.isReadOnly)&&!q(e.isDisabled)&&n(!t())}}}La({},{Checkbox:()=>R3,Control:()=>A3,Description:()=>j3,ErrorMessage:()=>M3,Indicator:()=>N3,Input:()=>P3,Label:()=>F3,Root:()=>I3,useCheckboxContext:()=>k3});var O3=L();function k3(){let e=R(O3);if(e===void 0)throw Error("[kobalte]: `useCheckboxContext` must be used within a `Checkbox` component");return e}function A3(e){let t=Iu(),n=k3(),[r,i]=V(Hi({id:n.generateId(`control`)},e),[`onClick`,`onKeyDown`]);return z(Ea,B({as:`div`,onClick:e=>{vi(e,r.onClick),n.toggle(),n.inputRef()?.focus({preventScroll:!0})},onKeyDown:e=>{vi(e,r.onKeyDown),e.key===ci.Space&&(n.toggle(),n.inputRef()?.focus({preventScroll:!0}))}},()=>t.dataset(),()=>n.dataset(),i))}function j3(e){let t=k3();return z(Lu,B(()=>t.dataset(),e))}function M3(e){let t=k3();return z(cd,B(()=>t.dataset(),e))}function N3(e){let t=Iu(),n=k3(),[r,i]=A(),[a,o]=V(Hi({id:n.generateId(`indicator`)},e),[`ref`,`forceMount`]),{present:s}=io({show:()=>a.forceMount||n.indeterminate()||n.checked(),element:()=>r()??null});return z(H,{get when(){return s()},get children(){return z(Ea,B({as:`div`,ref(e){var t=Xr(i,a.ref);typeof t==`function`&&t(e)}},()=>t.dataset(),()=>n.dataset(),o))}})}function P3(e){let t,n=Iu(),r=k3(),[i,a,o]=V(Hi({id:r.generateId(`input`)},e),[`ref`,`style`,`onChange`,`onFocus`,`onBlur`],nd),{fieldProps:s}=rd(a),[c,l]=A(!1);return M(ae([()=>r.checked(),()=>r.value()],()=>{l(!0),t?.dispatchEvent(new Event(`input`,{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event(`change`,{bubbles:!0,cancelable:!0}))},{defer:!0})),M(ae([()=>t,()=>r.indeterminate(),()=>r.checked()],([e,t])=>{e&&(e.indeterminate=t)})),z(Ea,B({as:`input`,ref(e){var n=Xr(e=>{r.setInputRef(e),t=e},i.ref);typeof n==`function`&&n(e)},type:`checkbox`,get id(){return s.id()},get name(){return n.name()},get value(){return r.value()},get checked(){return r.checked()},get required(){return n.isRequired()},get disabled(){return n.isDisabled()},get readonly(){return n.isReadOnly()},get style(){return Yr(Ji,i.style)},get"aria-label"(){return s.ariaLabel()},get"aria-labelledby"(){return s.ariaLabelledBy()},get"aria-describedby"(){return s.ariaDescribedBy()},get"aria-invalid"(){return n.validationState()===`invalid`||void 0},get"aria-required"(){return n.isRequired()},get"aria-disabled"(){return n.isDisabled()},get"aria-readonly"(){return n.isReadOnly()},onChange:e=>{if(vi(e,i.onChange),e.stopPropagation(),!c()){let t=e.target;r.setIsChecked(t.checked),t.checked=r.checked()}l(!1)},onFocus:e=>{vi(e,i.onFocus),r.setIsFocused(!0)},onBlur:e=>{vi(e,i.onBlur),r.setIsFocused(!1)}},()=>n.dataset(),()=>r.dataset(),o))}function F3(e){let t=k3();return z(id,B(()=>t.dataset(),e))}function I3(e){let t,[n,r,i]=V(Hi({value:`on`,id:`checkbox-${Ue()}`},e),[`ref`,`children`,`value`,`checked`,`defaultChecked`,`indeterminate`,`onChange`,`onPointerDown`],Nu),[a,o]=A(),[s,c]=A(!1),{formControlContext:l}=Pu(r),u=D3({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:e=>n.onChange?.(e),isDisabled:()=>l.isDisabled(),isReadOnly:()=>l.isReadOnly()});ad(()=>t,()=>u.setIsSelected(n.defaultChecked??!1));let d=e=>{vi(e,n.onPointerDown),s()&&e.preventDefault()},f=N(()=>({"data-checked":u.isSelected()?``:void 0,"data-indeterminate":n.indeterminate?``:void 0})),p={value:()=>n.value,dataset:f,checked:()=>u.isSelected(),indeterminate:()=>n.indeterminate??!1,inputRef:a,generateId:ni(()=>q(r.id)),toggle:()=>u.toggle(),setIsChecked:e=>u.setIsSelected(e),setIsFocused:c,setInputRef:o};return z(Fu.Provider,{value:l,get children(){return z(O3.Provider,{value:p,get children(){return z(Ea,B({as:`div`,ref(e){var r=Xr(e=>t=e,n.ref);typeof r==`function`&&r(e)},role:`group`,get id(){return q(r.id)},onPointerDown:d},()=>l.dataset(),f,i,{get children(){return z(L3,{state:p,get children(){return n.children}})}}))}})}})}function L3(e){return U(pe(()=>{let t=e.children;return ti(t)?t(e.state):t}))}var R3=Object.assign(I3,{Control:A3,Description:j3,ErrorMessage:M3,Indicator:N3,Input:P3,Label:F3}),z3=W(`<div data-slot=checkbox-checkbox-content>`),B3=W(`<svg viewBox="0 0 12 12"fill=none width=10 height=10 xmlns=http://www.w3.org/2000/svg><path d="M3 7.17905L5.02703 8.85135L9 3.5"stroke=currentColor stroke-width=1.5 stroke-linecap=square>`);function V3(e){let[t,n]=V(e,[`children`,`class`,`label`,`hideLabel`,`description`,`icon`]);return z(I3,B(n,{"data-component":`checkbox`,get children(){return[z(P3,{"data-slot":`checkbox-checkbox-input`}),z(A3,{"data-slot":`checkbox-checkbox-control`,get children(){return z(N3,{"data-slot":`checkbox-checkbox-indicator`,get children(){return t.icon||B3()}})}}),(()=>{var n=z3();return K(n,z(H,{get when(){return e.children},get children(){return z(F3,{"data-slot":`checkbox-checkbox-label`,get classList(){return{"sr-only":t.hideLabel}},get children(){return e.children}})}}),null),K(n,z(H,{get when(){return t.description},get children(){return z(j3,{"data-slot":`checkbox-checkbox-description`,get children(){return t.description}})}}),null),K(n,z(M3,{"data-slot":`checkbox-checkbox-error`}),null),n})()]}}))}La({},{Anchor:()=>W3,Arrow:()=>Qc,CloseButton:()=>G3,Content:()=>K3,Description:()=>q3,Popover:()=>$3,Portal:()=>J3,Root:()=>X3,Title:()=>Z3,Trigger:()=>Q3,usePopoverContext:()=>U3});var H3=L();function U3(){let e=R(H3);if(e===void 0)throw Error("[kobalte]: `usePopoverContext` must be used within a `Popover` component");return e}function W3(e){let t=U3(),[n,r]=V(e,[`ref`]);return z(Ea,B({as:`div`,ref(e){var r=Xr(t.setDefaultAnchorRef,n.ref);typeof r==`function`&&r(e)}},()=>t.dataset(),r))}function G3(e){let t=U3(),[n,r]=V(e,[`aria-label`,`onClick`]);return z(Ba,B({get"aria-label"(){return n[`aria-label`]||t.translations().dismiss},onClick:e=>{vi(e,n.onClick),t.close()}},()=>t.dataset(),r))}function K3(e){let t,n=U3(),[r,i]=V(Hi({id:n.generateId(`content`)},e),[`ref`,`style`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onPointerDownOutside`,`onFocusOutside`,`onInteractOutside`]),a=!1,o=!1,s=!1,c=e=>{r.onCloseAutoFocus?.(e),n.isModal()?(e.preventDefault(),a||xi(n.triggerRef())):(e.defaultPrevented||(o||xi(n.triggerRef()),e.preventDefault()),o=!1,s=!1)},l=e=>{r.onPointerDownOutside?.(e),n.isModal()&&(a=e.detail.isContextMenu)},u=e=>{r.onFocusOutside?.(e),n.isOpen()&&n.isModal()&&e.preventDefault()},d=e=>{r.onInteractOutside?.(e),!n.isModal()&&(e.defaultPrevented||(o=!0,e.detail.originalEvent.type===`pointerdown`&&(s=!0)),ri(n.triggerRef(),e.target)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&s&&e.preventDefault())};return va({isDisabled:()=>!(n.isOpen()&&n.isModal()),targets:()=>t?[t]:[]}),ro({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),ga({trapFocus:()=>n.isOpen()&&n.isModal(),onMountAutoFocus:r.onOpenAutoFocus,onUnmountAutoFocus:c},()=>t),M(()=>F(n.registerContentId(i.id))),z(H,{get when(){return n.contentPresent()},get children(){return z(sl.Positioner,{get children(){return z(ka,B({ref(e){var i=Xr(e=>{n.setContentRef(e),t=e},r.ref);typeof i==`function`&&i(e)},role:`dialog`,tabIndex:-1,get disableOutsidePointerEvents(){return U(()=>!!n.isOpen())()&&n.isModal()},get excludedElements(){return[n.triggerRef]},get style(){return Yr({"--kb-popover-content-transform-origin":`var(--kb-popper-content-transform-origin)`,position:`relative`},r.style)},get"aria-labelledby"(){return n.titleId()},get"aria-describedby"(){return n.descriptionId()},onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,get onDismiss(){return n.close}},()=>n.dataset(),i))}})}})}function q3(e){let t=U3(),[n,r]=V(Hi({id:t.generateId(`description`)},e),[`id`]);return M(()=>F(t.registerDescriptionId(n.id))),z(Ea,B({as:`p`,get id(){return n.id}},()=>t.dataset(),r))}function J3(e){let t=U3();return z(H,{get when(){return t.contentPresent()},get children(){return z(Mt,e)}})}var Y3={dismiss:`Dismiss`};function X3(e){let[t,n]=V(Hi({id:`popover-${Ue()}`,modal:!1,translations:Y3},e),[`translations`,`id`,`open`,`defaultOpen`,`onOpenChange`,`modal`,`preventScroll`,`forceMount`,`anchorRef`]),[r,i]=A(),[a,o]=A(),[s,c]=A(),[l,u]=A(),[d,f]=A(),[p,m]=A(),h=Na({open:()=>t.open,defaultOpen:()=>t.defaultOpen,onOpenChange:e=>t.onOpenChange?.(e)}),g=()=>t.anchorRef?.()??r()??a(),{present:_}=io({show:()=>t.forceMount||h.isOpen(),element:()=>s()??null}),v={translations:()=>t.translations??Y3,dataset:N(()=>({"data-expanded":h.isOpen()?``:void 0,"data-closed":h.isOpen()?void 0:``})),isOpen:h.isOpen,isModal:()=>t.modal??!1,preventScroll:()=>t.preventScroll??v.isModal(),contentPresent:_,triggerRef:a,contentId:l,titleId:d,descriptionId:p,setDefaultAnchorRef:i,setTriggerRef:o,setContentRef:c,close:h.close,toggle:h.toggle,generateId:ni(()=>t.id),registerContentId:Ha(u),registerTitleId:Ha(f),registerDescriptionId:Ha(m)};return z(H3.Provider,{value:v,get children(){return z(sl,B({anchorRef:g,contentRef:s},n))}})}function Z3(e){let t=U3(),[n,r]=V(Hi({id:t.generateId(`title`)},e),[`id`]);return M(()=>F(t.registerTitleId(n.id))),z(Ea,B({as:`h2`,get id(){return n.id}},()=>t.dataset(),r))}function Q3(e){let t=U3(),[n,r]=V(e,[`ref`,`onClick`,`onPointerDown`]);return z(Ba,B({ref(e){var r=Xr(t.setTriggerRef,n.ref);typeof r==`function`&&r(e)},"aria-haspopup":`dialog`,get"aria-expanded"(){return t.isOpen()},get"aria-controls"(){return U(()=>!!t.isOpen())()?t.contentId():void 0},onPointerDown:e=>{vi(e,n.onPointerDown),e.preventDefault()},onClick:e=>{vi(e,n.onClick),t.toggle()}},()=>t.dataset(),r))}var $3=Object.assign(X3,{Anchor:W3,Arrow:Qc,CloseButton:G3,Content:K3,Description:q3,Portal:J3,Title:Z3,Trigger:Q3}),e6=W(`<div data-slot=popover-header>`),t6=W(`<div data-slot=popover-body>`);function n6(e){let t=Al(),[n,r]=V(e,[`trigger`,`triggerAs`,`triggerProps`,`title`,`description`,`class`,`classList`,`style`,`children`,`portal`,`open`,`defaultOpen`,`onOpenChange`,`modal`]),[i,a]=$t({contentRef:void 0,triggerRef:void 0,dismiss:null,uncontrolledOpen:n.defaultOpen??!1}),o=()=>n.open!==void 0,s=()=>o()?n.open??!1:i.uncontrolledOpen,c=e=>{e&&a(`dismiss`,null),n.onOpenChange&&n.onOpenChange(e),!o()&&a(`uncontrolledOpen`,e)};M(()=>{if(!s())return;let e=e=>{if(!e)return!1;let t=i.contentRef;if(t&&t.contains(e))return!0;let n=i.triggerRef;return!!(n&&n.contains(e))},t=e=>{a(`dismiss`,e),c(!1)};pn(window,`keydown`,e=>{e.key===`Escape`&&(t(`escape`),e.preventDefault(),e.stopPropagation())},{capture:!0}),pn(window,`pointerdown`,n=>{let r=n.target;r instanceof Node&&(e(r)||t(`outside`))},{capture:!0}),pn(window,`focusin`,n=>{let r=n.target;r instanceof Node&&(e(r)||t(`outside`))},{capture:!0})});let l=()=>z($3.Content,{ref:e=>a(`contentRef`,e),"data-component":`popover-content`,get classList(){return{...n.classList,[n.class??``]:!!n.class}},get style(){return n.style},onCloseAutoFocus:e=>{i.dismiss===`outside`&&e.preventDefault(),a(`dismiss`,null)},get children(){return[z(H,{get when(){return n.title},get children(){var e=e6();return K(e,z($3.Title,{"data-slot":`popover-title`,get children(){return n.title}}),null),K(e,z($3.CloseButton,{"data-slot":`popover-close-button`,as:Lo,get icon(){return z(X,{name:`close`})},variant:`ghost`,get"aria-label"(){return t.t(`ui.common.close`)}}),null),e}}),z(H,{get when(){return n.description},get children(){return z($3.Description,{"data-slot":`popover-description`,get children(){return n.description}})}}),(()=>{var e=t6();return K(e,()=>n.children),e})()]}});return z($3,B({gutter:4},r,{get open(){return s()},onOpenChange:c,get modal(){return n.modal??!1},get children(){return[z($3.Trigger,B({ref:e=>a(`triggerRef`,e),get as(){return n.triggerAs??`div`},"data-slot":`popover-trigger`},()=>n.triggerProps,{get children(){return n.trigger}})),z(H,{get when(){return n.portal??!0},get fallback(){return l()},get children(){return z($3.Portal,{get children(){return l()}})}})]}}))}var r6=W(`<p class=model-filter-hint>Show models matching any selection.`),i6=W(`<div class=model-filter-groups>`),a6=W(`<div class=model-filter-footer><span> of <!> models`),o6=W(`<div class=model-filter>`),s6=W(`<span>`),c6=W(`<fieldset><legend>`),l6=W(`<div class=model-filter-option><span>`);function u6(e){let t=N(()=>[`lab`,`family`].map(t=>{let n=new Map;for(let r of e.models){let e=Jd(r)[t];n.set(e,(n.get(e)??0)+1)}return{kind:t,label:t===`lab`?`Labs`:`Model families`,options:[...n].sort(([e],[t])=>e.localeCompare(t)).map(([e,n])=>({key:`${t}:${e}`,label:e,count:n}))}})),n=()=>e.selected.map(e=>e.slice(e.indexOf(`:`)+1)),r=()=>n().length?n().length===1?n()[0]:`${n()[0]} +${n().length-1}`:`All models`,i=(t,n)=>e.onChange(n?[...new Set([...e.selected,t])]:e.selected.filter(e=>e!==t));return(()=>{var a=o6();return K(a,z(n6,{title:`Labs / model families`,placement:`bottom-end`,class:`model-filter-popover`,triggerAs:Po,get triggerProps(){return{size:`small`,variant:`outline`,"aria-label":`Filter labs and model families: ${n().join(`, `)||`All models`}`}},get trigger(){return[(()=>{var e=s6();return K(e,r),e})(),z(X,{name:`chevron-down`})]},get children(){return[r6(),(()=>{var n=i6();return K(n,z(Ge,{get each(){return t()},children:t=>(()=>{var n=c6(),r=n.firstChild;return K(r,()=>t.label),K(n,z(Ge,{get each(){return t.options},children:t=>(()=>{var n=l6(),r=n.firstChild;return K(n,z(V3,{get checked(){return e.selected.includes(t.key)},onChange:e=>i(t.key,e),get children(){return t.label}}),r),K(r,()=>t.count),j(()=>G(r,`aria-label`,`${t.count} models`)),n})()}),null),n})()})),n})(),(()=>{var t=a6(),n=t.firstChild,r=n.firstChild,i=r.nextSibling;return i.nextSibling,K(n,()=>e.models.filter(t=>Yd(t,e.selected)).length,r),K(n,()=>e.models.length,i),K(t,z(Po,{size:`small`,variant:`ghost-muted`,get disabled(){return!e.selected.length},onClick:()=>e.onChange([]),children:`Clear filters`}),null),t})()]}}),null),K(a,z(H,{get when(){return e.selected.length},get children(){return z(Po,{size:`small`,variant:`ghost-muted`,"aria-label":`Clear model filters`,onClick:()=>e.onChange([]),children:`Clear`})}}),null),a})()}var d6={width:1600,height:900},f6=e=>{let t=document.createElement(`span`);t.style.color=`var(${e})`,t.hidden=!0,document.body.append(t);let n=getComputedStyle(t).color;return t.remove(),n},p6=async(e,t)=>{let n=document.createElement(`div`);n.hidden=!0,document.body.append(n);let r=st(()=>z(Ge,{each:e,children:e=>z(Fd,{id:e})}),n),i=new Map;try{return await Promise.all([...n.querySelectorAll(`use`)].map(async e=>{let n=new URL(e.getAttribute(`href`),location.href),r=n.hash.slice(1);n.hash=``,i.has(n.href)||i.set(n.href,fetch(n).then(async e=>{if(!e.ok)throw Error(`Could not load model icons`);return new DOMParser().parseFromString(await e.text(),`image/svg+xml`)}));let a=(await i.get(n.href)).getElementById(r);if(!a)throw Error(`Missing model icon: ${r}`);let o=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);o.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),o.setAttribute(`viewBox`,a.getAttribute(`viewBox`)??`0 0 40 40`),o.setAttribute(`width`,`128`),o.setAttribute(`height`,`128`),o.setAttribute(`color`,t);for(let e of a.childNodes)o.append(e.cloneNode(!0));let s=URL.createObjectURL(new Blob([new XMLSerializer().serializeToString(o)],{type:`image/svg+xml`}));try{let e=new Image;return e.src=s,await e.decode(),e}finally{URL.revokeObjectURL(s)}}))}finally{r(),n.remove()}};async function m6(e){if(!e.scores.length)throw Error(`No model totals to export`);await document.fonts.load(`600 84px Inter`),await document.fonts.load(`440 24px Inter`);let t=e.scores.map(e=>({...e,percentage:typeof e.percentage==`number`&&Number.isFinite(e.percentage)&&e.percentage>=0&&e.percentage<=100?e.percentage:null})).sort((e,t)=>Vd(t).lower-Vd(e).lower),n={background:f6(`--app-bg`),text:f6(`--app-text`),muted:f6(`--app-muted`),border:f6(`--app-border`),bar:f6(`--app-success`)},r=[...new Set(t.map(e=>Kd(e.model)))],i=await p6(r,n.text),a=document.createElement(`canvas`);a.width=d6.width,a.height=d6.height;let o=a.getContext(`2d`);if(!o)throw Error(`Image export is unavailable in this browser`);o.fillStyle=n.background,o.fillRect(0,0,a.width,a.height),o.textBaseline=`alphabetic`;let s=(e,t,n,r,i,a,s=600,c=`left`)=>{o.font=`${s} ${r}px Inter, sans-serif`;let l=o.measureText(e).width;l>i&&(o.font=`${s} ${r*i/l}px Inter, sans-serif`),o.fillStyle=a,o.textAlign=c,o.fillText(e,t,n)};s(e.name,40,99,82,1520,n.text);let c=(a.height-145-24)/t.length;return t.forEach((e,t)=>{let a=Vd(e),l=145+c*t,u=l+c/2,d=Math.min(72,c*.62),f=Math.min(44,c*.37),p=Math.min(88,c*.76);o.strokeStyle=n.border,o.lineWidth=1,o.beginPath(),o.moveTo(40,l),o.lineTo(1560,l),o.stroke(),o.drawImage(i[r.indexOf(Kd(e.model))],36,u-d/2,d,d),s(Gd(e.model),132,u-1,f,520,n.text),s(qd(e.model),134,u+Math.min(30,c*.26),Math.min(25,c*.22),510,n.muted,440);let m=Math.min(32,c*.28);if(a.lower>0&&(o.fillStyle=n.bar,o.fillRect(700,u-m/2,510*a.lower/100,m)),a.upper>a.lower+1e-6){let e=700+510*a.lower/100,t=700+510*a.upper/100;o.strokeStyle=n.muted,o.lineWidth=2,o.beginPath(),o.moveTo(e,u),o.lineTo(t,u),o.stroke(),o.lineWidth=3,o.beginPath(),o.moveTo(Math.round(t)+.5,u-10),o.lineTo(Math.round(t)+.5,u+10),o.stroke()}let h=a.upper>a.lower+1e-6?`${Xd(a.lower)}–${Xd(a.upper)}%`:`${Xd(a.lower)}%`;s(h,1560,u+p*.34,p,310,e.percentage===null?n.muted:n.text,600,`right`)}),new Promise((e,t)=>a.toBlob(n=>n?e(n):t(Error(`Could not encode the PNG`)),`image/png`))}async function h6(e,t){let n=await m6(e),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`${e.name.replace(/[^a-zA-Z0-9_.-]/g,`-`)}-${t.slice(0,10)}-results.png`,document.body.append(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}var g6=W(`<button class=history-item><div><span></span><strong></strong></div><small><span> models`),_6=W(`<button class=activity-link><span>Currently running`),v6=W(`<p class=sidebar-empty>No benchmark runs yet.`),y6=W(`<div class=error-banner role=alert>`),b6=W(`<div class=error-banner>`),x6=W(`<div class=app-shell><header class=app-titlebar><div class=app-brand><strong>OpenEval</strong><span class=titlebar-divider></span> <span>Results</span></div><div class=titlebar-actions></div></header><aside class=sidebar><div class=sidebar-heading><span>RUN HISTORY</span></div><div class=history-scroll><div class=history-group><span class=group-label>Benchmark runs</span></div></div><div class=sidebar-footer><span></span></div></aside><main class=main-panel>`),S6=W(`<div class=eval-selector><span id=eval-label>Evaluation`),C6=W(`<div class=run-facts><div><span>Models</span><strong></strong></div><div><span>Evaluations</span><strong></strong></div><div><span>Scored checks</span><strong> <small>/ </small></strong></div><div><span></span><strong></strong></div><div><span></span><strong>`),w6=W(`<div class=pending-note><p>`),T6=W(`<p class=section-caption>Opening eval run…`),E6=W(`<div class=results-page><div class=page-heading><div><div class=breadcrumb></div><h1></h1><p><span>·</span></p></div><div class=results-actions></div></div><div class=results-toolbar></div><section class=chart-panel><div class=panel-heading><h2>`),D6=W(`<div class=empty-state><h1></h1><p>Run a benchmark, then its model comparisons will appear here.`),O6=W(`<div class=empty-state>Loading eval run…`),k6=W(`<div class=model-filter-empty><p>No models match these filters.`),A6=()=>{if(history.state?.openevalRoute)return history.state.openevalRoute;let e=new URLSearchParams(location.search);return{id:e.get(`result`)??``,view:e.get(`view`)===`trace`?e.get(`eval`)?`evals`:`results`:[`evals`,`activity`].includes(e.get(`view`)??``)?e.get(`view`):`results`,eval:e.get(`eval`)??``,run:e.get(`run`)??``,evalRun:e.get(`evalRun`)??``,stage:e.get(`stage`)===`judge`?`judge`:`eval`,models:e.get(`models`)??``}},j6=async e=>{let t=await fetch(e);if(!t.ok)throw Error((await t.json().catch(()=>({}))).error??`Request failed (${t.status})`);return t.json()},M6=new Map,N6=new Map,P6=(e,t,n=0)=>{let r=`${e}:${t}`,i=M6.get(r);if(i&&i.entry.updatedAt>=n)return i;let a=N6.get(r);if(a)return a;let o=j6(`/api/result?id=${encodeURIComponent(e)}&format=${t}`).then(e=>(M6.delete(r),M6.set(r,e),M6.size>8&&M6.delete(M6.keys().next().value),e)).finally(()=>N6.delete(r));return N6.set(r,o),o};function F6(e){let t=!1;return oe(()=>{queueMicrotask(()=>{t=!0})}),z(Mu,{variant:`pill`,get value(){return e.value},class:`level-tabs`,onChange:n=>{t&&[`results`,`evals`].includes(e.value)&&n!==e.value&&e.onChange(n)},get children(){return z(Mu.List,{get children(){return[z(Mu.Trigger,{value:`results`,children:`Benchmark results`}),z(Mu.Trigger,{value:`evals`,children:`Eval breakdown`})]}})}})}function I6(){let e=zr(),[t,n]=A(A6()),[r,i]=A(``),[a,o]=A(!1),[s,c]=A(``),[l,u]=A(!1),[d,f]=A(Date.now());oe(()=>{let e=setInterval(()=>f(Date.now()),1e3);F(()=>clearInterval(e))});let[p,m]=A(!1),[h,g]=re(()=>j6(`/api/results`)),_=()=>h()?.public??!1,[v,y]=re(()=>h()&&!h().public,()=>j6(`/api/activity`)),b=e=>h()?.entries.find(t=>t.id===e.split(`~`)[0])?.updatedAt,x=e=>P6(e,`runs`,b(e)),S=()=>t().view!==`activity`&&!!t().run&&!!t().evalRun&&!_()&&!K2(),[C]=re(()=>!!t().id&&{id:t().id,version:b(t().id)},({id:e,version:t})=>P6(e,`summary`,t)),[w]=re(()=>S()&&!!t().run&&{id:t().run,version:b(t().run)},({id:e,version:t})=>P6(e,`runs`,t)),T=N(()=>C()?.overview),E=()=>w()?.entry.id===t().run?w():void 0,D=N(()=>t().eval||T()?.evals[0]||``),O=(e,r=!1)=>{let i={...t(),...e};n(i);let a=new URLSearchParams;for(let[e,t]of Object.entries({result:K2()?i.id.split(`~`)[0]:i.id,view:i.view===`results`?``:i.view,eval:K2()?``:i.eval,run:K2()?``:i.run,evalRun:K2()?``:i.evalRun,stage:!K2()&&i.evalRun&&i.stage===`judge`?`judge`:``,models:i.models}))t&&a.set(e,t);history[r?`replaceState`:`pushState`]({openevalRoute:i},``,`?`+a.toString()),c(``)};M(ae(K2,e=>{try{localStorage.setItem(G2,String(e))}catch{}O(e?{run:``,evalRun:``}:{},!0)}));let k=e=>{O({id:e.id,view:`results`,eval:``,run:``,evalRun:``}),o(!1)},ee=()=>O({run:``,evalRun:``});M(()=>{let e=h()?.entries;if(e?.length&&!e.some(e=>e.id===t().id.split(`~`)[0])){let t=e.find(e=>e.kind===`benchmark`)??e[0];O({id:t.id,run:``,evalRun:``},!0)}_()&&t().view!==`results`&&O({view:`results`,eval:``,run:``,evalRun:``},!0)}),oe(()=>{e.setTheme(`oc-2`),e.setColorScheme(`dark`);let t=()=>{let e=A6();K2()?O({...e,run:``,evalRun:``},!0):n(e)};window.addEventListener(`popstate`,t);let r=()=>{h.loading||g.refetch(),h()&&!h().public&&!v.loading&&y.refetch()},i=new EventSource(`/api/events`);i.addEventListener(`change`,r);let a=setInterval(r,5e3);F(()=>{i.close(),clearInterval(a),window.removeEventListener(`popstate`,t)})});let te=e=>h()?.entries.filter(t=>t.kind===e&&`${t.name} ${t.startedAt}`.toLowerCase().includes(r().toLowerCase()))??[],ne=N(()=>t().models.split(`,`).filter(Boolean)),ie=()=>ue().reduce((e,t)=>e+t.components.reduce((e,t)=>e+t.scored,0),0)??0,P=()=>ue().reduce((e,t)=>e+t.components.reduce((e,t)=>e+t.expected,0),0),se=()=>{let e=t().view===`evals`?C()?.related.find(e=>e.eval===D())?.runtime:T()?.runtime,n=e?Ld(e,zd(d(),C()?.entry.updatedAt,T()?.status===`running`)):void 0;return n===void 0?`—`:ef(n)},ce=()=>{let e=t().view===`evals`?T()?.evalCosts?.[D()]:T()?.cost;return e?.usd??(T()?.status===`running`?e?.reportedUSD:void 0)},le=N(()=>T()?.scores.map(e=>{let t=e.components.filter(e=>e.eval===D());return Bd(e.model,t)})??[]),ue=N(()=>(t().view===`evals`?le():T()?.scores??[]).filter(e=>Yd(e.model,ne()))),de=async e=>{let n=t(),r=C();if(!(!r||_()||K2())){u(!0);try{let i=r.entry.kind===`eval`?r.entry.id:r.related.find(e=>e.eval===D())?.id;if(!i)throw Error(`This eval has not saved its results yet.`);let a=x(i),o=a instanceof Promise?await a:a;if(t()!==n||K2())return;let s=o.runs.find(t=>t.model===e.split(`#`)[0]&&t.reasoning===(e.split(`#`)[1]??`default`));if(!s)throw Error(`No saved eval run for this model yet.`);O({run:i,evalRun:s.id,eval:o.eval})}catch(e){c(e instanceof Error?e.message:String(e))}finally{u(!1)}}},fe=()=>{let e=T();if(!e)return;let t=new Blob([JSON.stringify({benchmark:K2()&&e.kind===`eval`?`Evaluation results`:e.name,startedAt:e.startedAt,filters:ne(),scores:ue().map(e=>({model:e.model,percentage:e.percentage,bounds:Vd(e)}))},null,2)],{type:`application/json`}),n=URL.createObjectURL(t),r=window.document.createElement(`a`);r.href=n,r.download=`${K2()&&e.kind===`eval`?`evaluation`:e.name}-totals.json`,r.click(),URL.revokeObjectURL(n)},I=async()=>{let e=T();if(e&&!p()){m(!0);try{await h6({name:K2()&&(t().view===`evals`||e.kind===`eval`)?`Evaluation results`:t().view===`evals`?D():e.name,scores:ue().map(e=>({model:e.model,percentage:e.percentage,bounds:Vd(e)}))},e.startedAt)}catch(e){c(e instanceof Error?e.message:String(e))}finally{m(!1)}}},L=e=>(()=>{var n=g6(),r=n.firstChild,i=r.firstChild,a=i.nextSibling,o=r.nextSibling,s=o.firstChild,c=s.firstChild;return n.$$click=()=>k(e.item),K(a,z(Y2,{get sensitive(){return e.item.kind===`eval`},get children(){return e.item.name}})),K(o,()=>$d(e.item.startedAt),s),K(s,()=>e.item.models,c),j(r=>{var a=t().view!==`activity`&&t().id===e.item.id,o=t().view!==`activity`&&t().id===e.item.id?`page`:void 0,s=`status-dot ${e.item.status}`;return a!==r.e&&n.classList.toggle(`active`,r.e=a),o!==r.t&&G(n,`aria-current`,r.t=o),s!==r.a&&dt(i,r.a=s),r},{e:void 0,t:void 0,a:void 0}),n})();return(()=>{var e=x6(),n=e.firstChild,c=n.firstChild,u=c.firstChild,d=c.nextSibling,f=n.nextSibling,m=f.firstChild;m.firstChild;var g=m.nextSibling,y=g.firstChild;y.firstChild;var b=g.nextSibling,x=b.firstChild,w=f.nextSibling;return K(c,z(Po,{size:`small`,variant:`ghost`,icon:`menu`,class:`mobile-menu`,"aria-label":`Toggle run history`,onClick:()=>o(!a())}),u),K(c,z(X,{name:`flask`}),u),K(d,z(J2,{})),K(f,z(H,{get when(){return U(()=>!!h())()&&!_()},get children(){var e=_6(),n=e.firstChild;return e.$$click=()=>{O({view:`activity`,run:``,evalRun:``}),o(!1)},K(e,z(X,{name:`flask`}),n),K(e,z(Io,{get children(){return v()?.reduce((e,t)=>e+t.state.runs.reduce((e,t)=>e+ +(t.eval.status===`in_progress`)+ +(t.judge.status===`in_progress`),0),0)??0}}),null),j(n=>{var r=t().view===`activity`,i=t().view===`activity`?`page`:void 0;return r!==n.e&&e.classList.toggle(`active`,n.e=r),i!==n.t&&G(e,`aria-current`,n.t=i),n},{e:void 0,t:void 0}),e}}),m),K(m,z(Io,{get children(){return te(`benchmark`).length}}),null),K(f,z(Pl,{"aria-label":`Filter runs`,placeholder:`Find a run…`,get value(){return r()},onInput:e=>i(e.currentTarget.value),get leadingIcon(){return z(X,{name:`magnifying-glass`})}}),g),K(y,z(Ge,{get each(){return te(`benchmark`)},children:e=>z(L,{item:e})}),null),K(y,z(H,{get when(){return!te(`benchmark`).length},get children(){return v6()}}),null),K(b,z(X,{name:`folder`}),x),K(x,()=>_()?`Totals only`:`Local results`),K(w,z(H,{get when(){return h.error||C.error},get children(){var e=y6();return K(e,(()=>{var e=U(()=>!!K2());return()=>e()?`Could not load results.`:String(h.error??C.error)})()),e}}),null),K(w,z(H,{get when(){return s()},get children(){var e=y6();return K(e,(()=>{var e=U(()=>!!K2());return()=>e()?`The requested operation could not be completed.`:s()})()),e}}),null),K(w,z(H,{get when(){return U(()=>t().view===`activity`)()&&!_()},get fallback(){return z(H,{get when(){return T()},get fallback(){return(()=>{var e=D6(),t=e.firstChild;return K(e,z(X,{name:`flask`}),t),K(t,()=>h.loading?`Loading results…`:`Your results start here`),e})()},get children(){return[z(H,{get when(){return S()},get children(){return z(H,{get when(){return E()},get fallback(){return O6()},children:e=>{let n=()=>e().runs.find(e=>e.id===t().evalRun);return z(H,{get when(){return n()},children:t=>z(V4,{open:!0,title:`Eval run session`,onClose:ee,get children(){return z(z4,{get run(){return e()},get selected(){return t()},onRun:e=>O({evalRun:e}),onBack:ee})}})})}})}}),(()=>{var e=E6(),n=e.firstChild,r=n.firstChild,i=r.firstChild,a=i.nextSibling,o=a.nextSibling,s=o.firstChild,c=r.nextSibling,u=n.nextSibling,d=u.nextSibling,f=d.firstChild.firstChild;return K(i,()=>T().kind===`benchmark`?`Benchmarks`:`Eval results`,null),K(i,z(X,{name:`chevron-right`}),null),K(i,z(Y2,{get sensitive(){return T().kind===`eval`},get children(){return T().name}}),null),K(a,z(Y2,{get sensitive(){return T().kind===`eval`},get children(){return T().name}})),K(o,()=>$d(T().startedAt),s),K(o,z(Io,{get children(){return T().status}}),null),K(c,z(H,{get when(){return T().kind===`benchmark`},get children(){return z(Sl,{get value(){return p()?`Exporting image…`:`Export image`},get children(){return z(Lo,{variant:`neutral`,size:`small`,get icon(){return z(X,{name:`photo`})},"aria-label":`Export image`,get"aria-busy"(){return p()},onClick:I,get disabled(){return p()||!T().scores.length}})}})}}),null),K(c,z(Sl,{value:`Export totals`,get children(){return z(Lo,{variant:`neutral`,size:`small`,get icon(){return z(X,{name:`download`})},"aria-label":`Export totals`,onClick:fe})}}),null),K(u,z(H,{get when(){return U(()=>!_())()&&T().kind===`benchmark`},get children(){return z(F6,{get value(){return t().view},onChange:e=>O({view:e,eval:D()})})}}),null),K(u,z(u6,{get models(){return T().scores.map(e=>e.model)},get selected(){return ne()},onChange:e=>O({models:e.join(`,`)})}),null),K(e,z(H,{get when(){return U(()=>t().view===`evals`)()&&!_()},get children(){var e=S6();return e.firstChild,K(e,z(jd,{"aria-labelledby":`eval-label`,get options(){return T().evals},get current(){return D()},get valueClass(){return K2()?`eval-name is-secret`:`eval-name`},label:e=>K2()?`Eval ${T().evals.indexOf(e)+1}`:T()?.evalNames?.[e]??e,onSelect:e=>{e&&O({eval:e})},children:e=>z(Y2,{get children(){return T()?.evalNames?.[e]??e}})}),null),e}}),d),K(f,z(Y2,{get sensitive(){return t().view===`evals`||T().kind===`eval`},get children(){return U(()=>!(t().view!==`evals`||_()))()?T()?.evalNames?.[D()]??D():T().name}})),K(d,z(H,{get when(){return ue().length},get fallback(){return(()=>{var e=k6();return e.firstChild,K(e,z(Po,{size:`small`,variant:`outline`,onClick:()=>O({models:``}),children:`Clear filters`}),null),e})()},get children(){return z(uf,{get scores(){return ue()},get public(){return _()},get incomplete(){return T().status!==`running`},get criteria(){return U(()=>t().view===`evals`||T().kind===`eval`)()&&!K2()},get onSelect(){return!_()&&!K2()&&(t().view===`evals`||T().kind===`eval`)?de:void 0}})}}),null),K(e,z(H,{get when(){return!_()},get children(){var e=C6(),n=e.firstChild,r=n.firstChild.nextSibling,i=n.nextSibling,a=i.firstChild.nextSibling,o=i.nextSibling,s=o.firstChild.nextSibling,c=s.firstChild,l=c.nextSibling;l.firstChild;var u=o.nextSibling,d=u.firstChild,f=d.nextSibling,p=u.nextSibling.firstChild,m=p.nextSibling;return K(r,()=>ue().length),K(a,(()=>{var e=U(()=>t().view===`evals`);return()=>e()?1:T().evals.length})()),K(s,ie,c),K(l,P,null),K(d,()=>ne().length?`Run duration`:`Duration`),K(f,se),K(p,()=>ne().length?`Run cost`:`Cost`),K(m,()=>Qd(ce())),e}}),null),K(e,z(H,{get when(){return ue().some(e=>e.percentage===null)},get children(){var e=w6(),t=e.firstChild;return K(e,z(X,{name:`info`}),t),K(t,()=>T().status===`running`?`Solid bars show earned points. Whiskers show the possible range for unresolved checks.`:`Whiskers show the possible range for unscored checks; graded failures remain known zeros.`),e}}),null),K(e,z(H,{get when(){return l()},get children(){return T6()}}),null),e})()]}})},get children(){return[z(H,{get when(){return v.error},get children(){var e=b6();return K(e,(()=>{var e=U(()=>!!K2());return()=>e()?`Could not load activity.`:String(v.error)})()),e}}),z(E3,{get runs(){return v()??[]},get run(){return t().run},get evalRun(){return t().evalRun},get stage(){return t().stage},onSelect:(e,t,n=`eval`)=>{(!K2()||!t)&&O({view:`activity`,run:e,evalRun:t,stage:n})}})]}}),null),j(()=>f.classList.toggle(`visible`,!!a())),e})()}ct([`click`]),st(()=>z(Br,{defaultTheme:`oc-2`,get children(){return z(So,{get children(){return z(I6,{})}})}}),document.getElementById(`root`));export{l as i,o as n,s as r,Y as t};