@malloy-publisher/app 0.0.55 → 0.0.59

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 (295) hide show
  1. package/README.md +0 -115
  2. package/dist/App.d.ts +3 -2
  3. package/dist/components/Header.d.ts +5 -1
  4. package/dist/components/MainPage.d.ts +3 -2
  5. package/dist/components/index.d.ts +1 -0
  6. package/dist/index.cjs.js +19 -19
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.es.js +229 -235
  9. package/package.json +4 -12
  10. package/dist/app/api-doc.html +0 -28
  11. package/dist/app/api-doc.yaml +0 -1258
  12. package/dist/app/assets/RenderedResult-DXlUZo0k-XY0zCtYf.js +0 -1
  13. package/dist/app/assets/abap-BmBUA35e-DsBKuouk.js +0 -1
  14. package/dist/app/assets/actionscript-3-zFUbzQa9-D_z4Izcz.js +0 -1
  15. package/dist/app/assets/ada-CBvPkFpZ-727ZlQH0.js +0 -1
  16. package/dist/app/assets/andromeeda-uXNdzNpk-C3khCPGq.js +0 -1
  17. package/dist/app/assets/angular-html-0fTdLuKf-C_Z-qPys.js +0 -1
  18. package/dist/app/assets/angular-ts-wkniW60G-CLxf_aqD.js +0 -1
  19. package/dist/app/assets/apache-CVNlsSDc-Dn00JSTd.js +0 -1
  20. package/dist/app/assets/apex-DFk3KRB1-COJ4H7py.js +0 -1
  21. package/dist/app/assets/apl-TLDHFJX6-4Ja2pao0.js +0 -1
  22. package/dist/app/assets/applescript-CYMR_y0g-Bu5BbsvL.js +0 -1
  23. package/dist/app/assets/ara-4QmU5e04-7O62HKoU.js +0 -1
  24. package/dist/app/assets/asciidoc-v_1bjgUg-BPT9niGB.js +0 -1
  25. package/dist/app/assets/asm-RC0Yh-NZ-Dhn9LcZ4.js +0 -1
  26. package/dist/app/assets/astro-Uf8_VxKJ-CLNq6E27.js +0 -1
  27. package/dist/app/assets/aurora-x-BwoVEUWZ-D-2ljcwZ.js +0 -1
  28. package/dist/app/assets/awk-gPH8MVMW-eg146-Ew.js +0 -1
  29. package/dist/app/assets/ayu-dark-CxPZkpb2-Cv9koXgw.js +0 -1
  30. package/dist/app/assets/ballerina-kvLnRU_e-Du268qiB.js +0 -1
  31. package/dist/app/assets/bat-BHYy44sT-fje9CFhw.js +0 -1
  32. package/dist/app/assets/beancount-D-MADTs_-BwXTMy5W.js +0 -1
  33. package/dist/app/assets/berry-Ci9U0o4h-3xVqZejG.js +0 -1
  34. package/dist/app/assets/bibtex-CX618D15-xW4inM5L.js +0 -1
  35. package/dist/app/assets/bicep-iuYiPopT-DHo0CJ0O.js +0 -1
  36. package/dist/app/assets/blade-BtR00Gx0-BH_u9bLw.js +0 -1
  37. package/dist/app/assets/bsl-BIXPNqL4-B7NuXuWJ.js +0 -1
  38. package/dist/app/assets/c-DASdrs7p-C3t2pwGQ.js +0 -1
  39. package/dist/app/assets/cadence-BDALQi26-DNquZEk8.js +0 -1
  40. package/dist/app/assets/cairo-tXZKA2PT-BLBT-6ii.js +0 -1
  41. package/dist/app/assets/catppuccin-frappe-BrTOiad2-CD_QflpE.js +0 -1
  42. package/dist/app/assets/catppuccin-latte-D-dc_R4m-DRW-0cLl.js +0 -1
  43. package/dist/app/assets/catppuccin-macchiato-DN4jOp0G-C-_shW-Y.js +0 -1
  44. package/dist/app/assets/catppuccin-mocha-B8yCE3-3-LGGdnPYs.js +0 -1
  45. package/dist/app/assets/clarity-CNgV2Ths-BHOwM8T6.js +0 -1
  46. package/dist/app/assets/clojure-CsKKFGwv-DxSadP1t.js +0 -1
  47. package/dist/app/assets/cmake-Dr-A3iJx-DbXoA79R.js +0 -1
  48. package/dist/app/assets/cobol-DMssKNmC-B2fukI-w.js +0 -1
  49. package/dist/app/assets/codeowners-Bt9yU6NX-Bp6g37R7.js +0 -1
  50. package/dist/app/assets/codeql-DBNTqJi1-sacFqUAJ.js +0 -1
  51. package/dist/app/assets/coffee-D_GzM8k1-4lliG68M.js +0 -1
  52. package/dist/app/assets/common-lisp-r7ZEOG7T-C7gG9l05.js +0 -1
  53. package/dist/app/assets/coq-CB6Pv_W9-Dsg_Bt_b.js +0 -1
  54. package/dist/app/assets/cpp-CJF2i3ah-pZOsOWe_.js +0 -1
  55. package/dist/app/assets/crystal-BKWnaU3g-DLUiimt9.js +0 -1
  56. package/dist/app/assets/csharp-CYWRhZ2R-D9R-vmeu.js +0 -1
  57. package/dist/app/assets/css-D1aVdRIU-BPhBrDlE.js +0 -1
  58. package/dist/app/assets/csv-DvCncUGQ-C-TU5hQ_.js +0 -1
  59. package/dist/app/assets/cue-BXMrmvay-DtFQj3wx.js +0 -1
  60. package/dist/app/assets/cypher-DTm5zNR1-m2LEI-9-.js +0 -1
  61. package/dist/app/assets/d-D6ZXmn3l-BoXegm-a.js +0 -1
  62. package/dist/app/assets/dark-plus-pUHDTVV0-C3mMm8J8.js +0 -1
  63. package/dist/app/assets/dart-Dz59Is3F-B9wLZaAG.js +0 -1
  64. package/dist/app/assets/dax-DTVGzydb-ClGRhx96.js +0 -1
  65. package/dist/app/assets/desktop-Db9vb-dl-DEIpsLCJ.js +0 -1
  66. package/dist/app/assets/diff-XmNrvgM1-BgYniUM_.js +0 -1
  67. package/dist/app/assets/docker-DWH2onkn-COcR7UxN.js +0 -1
  68. package/dist/app/assets/dotenv-4337wvzu-BjQB5zDj.js +0 -1
  69. package/dist/app/assets/dracula-BtZx2Kac-BzJJZx-M.js +0 -1
  70. package/dist/app/assets/dracula-soft-BKa-aqBv-BXkSAIEj.js +0 -1
  71. package/dist/app/assets/dream-maker-CvvfrJSx-C-nORZOA.js +0 -1
  72. package/dist/app/assets/edge-CgxR-qhM-C4-j-4jN.js +0 -1
  73. package/dist/app/assets/elixir-DZkeSPwW-CcKXTVRL.js +0 -1
  74. package/dist/app/assets/elm-BKuV1HE1-DhehEoOI.js +0 -1
  75. package/dist/app/assets/emacs-lisp-BAefI874-BX77sIaO.js +0 -1
  76. package/dist/app/assets/erb-BLwkpXUJ-ChmaBI6f.js +0 -1
  77. package/dist/app/assets/erlang-CmIiwF3I-B-DoSBHF.js +0 -1
  78. package/dist/app/assets/everforest-dark-DMCBqXCK-BgDCqdQA.js +0 -1
  79. package/dist/app/assets/everforest-light-BbXl82Em-C8M2exoo.js +0 -1
  80. package/dist/app/assets/fennel-DNqkz9pE-bCA53EVm.js +0 -1
  81. package/dist/app/assets/fish-DIm72t2T-w-ucz2PV.js +0 -1
  82. package/dist/app/assets/fluent-BapTxJsC-Dayu4EKP.js +0 -1
  83. package/dist/app/assets/fortran-fixed-form-s9Hnb3av-DpX1AVnn.js +0 -1
  84. package/dist/app/assets/fortran-free-form-CNDsBFUj-DKXYxT9g.js +0 -1
  85. package/dist/app/assets/fsharp-Cv0x43wb-Dg8cqrY9.js +0 -1
  86. package/dist/app/assets/gdresource-CMcKXvgJ-CWt23EK3.js +0 -1
  87. package/dist/app/assets/gdscript-D7aheHm--DfxzS6Rs.js +0 -1
  88. package/dist/app/assets/gdshader-BGJEsM2Z-SKMF96pI.js +0 -1
  89. package/dist/app/assets/genie-C9gPjc6J-ajMbGru0.js +0 -1
  90. package/dist/app/assets/gherkin-bka1Exbx--30QC5Em.js +0 -1
  91. package/dist/app/assets/git-commit-BspYIY3P-n1pa9hpQ.js +0 -1
  92. package/dist/app/assets/git-rebase--zLBTjUa-D_BU2XLr.js +0 -1
  93. package/dist/app/assets/github-dark-DenFmJkN-DHJKELXO.js +0 -1
  94. package/dist/app/assets/github-dark-default-BJPUVz4H-Cuk6v7N8.js +0 -1
  95. package/dist/app/assets/github-dark-dimmed-DUshB20C-DH5Ifo-i.js +0 -1
  96. package/dist/app/assets/github-dark-high-contrast-D3aGCnF8-E3gJ1_iC.js +0 -1
  97. package/dist/app/assets/github-light-JYsPkUQd-DAi9KRSo.js +0 -1
  98. package/dist/app/assets/github-light-default-D99KPAby-D7oLnXFd.js +0 -1
  99. package/dist/app/assets/github-light-high-contrast-BbmZE-Mp-BfjtVDDH.js +0 -1
  100. package/dist/app/assets/gleam-B4k9YFGD-B430Bg39.js +0 -1
  101. package/dist/app/assets/glimmer-js-DhY9umHJ-VrvmblrN.js +0 -1
  102. package/dist/app/assets/glimmer-ts-CCrHcYH5-JtH9P_df.js +0 -1
  103. package/dist/app/assets/glsl-XLGYNq5B-BsoackK0.js +0 -1
  104. package/dist/app/assets/gnuplot-DnWoRZt--CM8KxXT1.js +0 -1
  105. package/dist/app/assets/go-BErP6iv1-B1SYOhNW.js +0 -1
  106. package/dist/app/assets/graphql-DWpQF4JI-Bg_kbUNo.js +0 -1
  107. package/dist/app/assets/groovy-IWs5-NIO-DkBy-JyN.js +0 -1
  108. package/dist/app/assets/hack-CQrV-ytR-DsU69WFl.js +0 -1
  109. package/dist/app/assets/haml-CMN0hQaL-P2mc1-Uz.js +0 -1
  110. package/dist/app/assets/handlebars-Cc-7fXX5-1wmMMko9.js +0 -1
  111. package/dist/app/assets/haskell-CtlGos0K-BILxekzW.js +0 -1
  112. package/dist/app/assets/haxe-CZZ33vZw-C5wWYbrZ.js +0 -1
  113. package/dist/app/assets/hcl-6hOg9WP4-HzYwdGDm.js +0 -1
  114. package/dist/app/assets/hjson-CgwED-oz-T-Tgc4AT.js +0 -1
  115. package/dist/app/assets/hlsl-3-lv4gi7-ifBTmRxC.js +0 -1
  116. package/dist/app/assets/houston-BDYrDoDW-DnULxvSX.js +0 -1
  117. package/dist/app/assets/html-B0P_v3yU-5FUQOWqS.js +0 -1
  118. package/dist/app/assets/html-derivative-D59SHfh8-CSkG6UyS.js +0 -1
  119. package/dist/app/assets/http-Dcjm_K1m-BIoBBtFi.js +0 -1
  120. package/dist/app/assets/hxml-BNKImryz-C86vEiUs.js +0 -1
  121. package/dist/app/assets/hy-C2xHhR6I-BMj5Y0dO.js +0 -1
  122. package/dist/app/assets/imba-Drd0AMDo-ClNo5Aft.js +0 -1
  123. package/dist/app/assets/index-C127D7lT.css +0 -1
  124. package/dist/app/assets/index-CXlRGPzt.js +0 -3217
  125. package/dist/app/assets/ini-BUcvsX-U-BjABl1g7.js +0 -1
  126. package/dist/app/assets/java-B7odJ7Ap-xI-RfyKK.js +0 -1
  127. package/dist/app/assets/javascript-fa8UlHZE-ySlJ1b_l.js +0 -1
  128. package/dist/app/assets/jinja-CCSYduCH-DYrHgqe4.js +0 -1
  129. package/dist/app/assets/jison-BygvlveW-CnxAXEK_.js +0 -1
  130. package/dist/app/assets/json-71t8ZF9g-BQoSv7ci.js +0 -1
  131. package/dist/app/assets/json5-Z7F6rA6a-w8dY5SsB.js +0 -1
  132. package/dist/app/assets/jsonc-Dphhs4m2-TU54ms6u.js +0 -1
  133. package/dist/app/assets/jsonl-D9jj92Gg-DREVFZK8.js +0 -1
  134. package/dist/app/assets/jsonnet-DEQ7IUoJ-BfivnA6A.js +0 -1
  135. package/dist/app/assets/jssm-j74e88UX-P4WzXJd0.js +0 -1
  136. package/dist/app/assets/jsx-Bkesy5tT-BAng5TT0.js +0 -1
  137. package/dist/app/assets/julia-CiahampL-V7UYV-sq.js +0 -1
  138. package/dist/app/assets/kanagawa-dragon-CiKur4Hl-CkXjmgJE.js +0 -1
  139. package/dist/app/assets/kanagawa-lotus-BKu-smKu-CfQXZHmo.js +0 -1
  140. package/dist/app/assets/kanagawa-wave-CQwozSzG-DWedfzmr.js +0 -1
  141. package/dist/app/assets/kotlin-DCgZY7Ii-B5lbUyaz.js +0 -1
  142. package/dist/app/assets/kusto-Cw029H-v-mebxcVVE.js +0 -1
  143. package/dist/app/assets/laserwave-6a00oqik-DUszq2jm.js +0 -1
  144. package/dist/app/assets/latex-LfGCYGw5-BH0TQ0ei.js +0 -1
  145. package/dist/app/assets/lean-CYSet4vs-XBlWyCtg.js +0 -1
  146. package/dist/app/assets/less-DQA4v-Nm-BfCpw3nA.js +0 -1
  147. package/dist/app/assets/light-plus-CZuVqSLX-B7mTdjB0.js +0 -1
  148. package/dist/app/assets/liquid-CvufO3kO-CDc-Ahzk.js +0 -1
  149. package/dist/app/assets/log-D2eRfqDn-Cc5clBb7.js +0 -1
  150. package/dist/app/assets/logo-QEAtGWZ9-IuBKFhSY.js +0 -1
  151. package/dist/app/assets/lua-BVfhNLDr-CWJMHgTQ.js +0 -1
  152. package/dist/app/assets/luau-BjYGiqID-Du5NY7AG.js +0 -1
  153. package/dist/app/assets/make-BjuHP00g-Bvotw-X0.js +0 -1
  154. package/dist/app/assets/markdown-B6guhLWd-UIAJJxZW.js +0 -1
  155. package/dist/app/assets/marko-CHlMS8w5-BMD3FaEa.js +0 -1
  156. package/dist/app/assets/material-theme-D6KBX41T-D5KoaKCx.js +0 -1
  157. package/dist/app/assets/material-theme-darker-CkRroheE-BfHTSMKl.js +0 -1
  158. package/dist/app/assets/material-theme-lighter-BUBw43Yz-B0m2ddpp.js +0 -1
  159. package/dist/app/assets/material-theme-ocean-ClGX14Ja-CyktbL80.js +0 -1
  160. package/dist/app/assets/material-theme-palenight-C1RVm8K1-Csfq5Kiy.js +0 -1
  161. package/dist/app/assets/matlab-BpQlIJiw-D9-PGadD.js +0 -1
  162. package/dist/app/assets/mdc-4K6B6lHG-BAGHtNo-.js +0 -1
  163. package/dist/app/assets/mdx-DIoECIFU-sdHcTMYB.js +0 -1
  164. package/dist/app/assets/mermaid-BZ7WHNIe-Ci6OQyBP.js +0 -1
  165. package/dist/app/assets/min-dark-C7ak0t6c-CafNBF8u.js +0 -1
  166. package/dist/app/assets/min-light-CKFxVcPp-CTRr51gU.js +0 -1
  167. package/dist/app/assets/mipsasm-DusDYkFc-BC5c_5Pe.js +0 -1
  168. package/dist/app/assets/mojo-CY9jaezJ-Tz6hzZYG.js +0 -1
  169. package/dist/app/assets/monokai-C1KBYcO0-D4h5O-jR.js +0 -1
  170. package/dist/app/assets/move-ChphFumd-DB_GagMm.js +0 -1
  171. package/dist/app/assets/mui-B87czpFx.js +0 -161
  172. package/dist/app/assets/narrat-Dz4d7OmN-DLbgOhZU.js +0 -1
  173. package/dist/app/assets/nextflow-DW0Yq9a2-B0XVJmRM.js +0 -1
  174. package/dist/app/assets/nginx-Can2eAjw-CdY2tLiv.js +0 -1
  175. package/dist/app/assets/night-owl-Bm2rzalh-C39BiMTA.js +0 -1
  176. package/dist/app/assets/nim-B3r2RtQZ-VfCbv_TB.js +0 -1
  177. package/dist/app/assets/nix-Cg5uV_xg-shcSOmrb.js +0 -1
  178. package/dist/app/assets/nord-CC5OiUXg-Ddv68eIx.js +0 -1
  179. package/dist/app/assets/nushell-BfRnzRWn-D4Tzg5kh.js +0 -1
  180. package/dist/app/assets/objective-c-BGg9R27G-Deuh7S70.js +0 -1
  181. package/dist/app/assets/objective-cpp-CJ3y3V_5-BUEGK8hf.js +0 -1
  182. package/dist/app/assets/ocaml-BZLsfx_o-BNioltXt.js +0 -1
  183. package/dist/app/assets/one-dark-pro-D7-kP8fv-GBQ2dnAY.js +0 -1
  184. package/dist/app/assets/one-light-D9sNaUtq-PoHY5YXO.js +0 -1
  185. package/dist/app/assets/pascal-l2bqd7Dz-JqZropPD.js +0 -1
  186. package/dist/app/assets/perl-DaMQyPwp-C4BFOiY3.js +0 -1
  187. package/dist/app/assets/php-BL3EfPBi-BMN5eA9q.js +0 -1
  188. package/dist/app/assets/plastic-CSTz3KZp-3e1v2bzS.js +0 -1
  189. package/dist/app/assets/plsql-oVq_K_wH-LKU2TuZ1.js +0 -1
  190. package/dist/app/assets/po-5jaeIyVd-BFLt1xDp.js +0 -1
  191. package/dist/app/assets/poimandres-C-VADXHD-CS3Unz2-.js +0 -1
  192. package/dist/app/assets/polar-wcLp8ci7-DKykz6zU.js +0 -1
  193. package/dist/app/assets/postcss-BZ3MNRIJ-B3ZDOciz.js +0 -1
  194. package/dist/app/assets/powerquery-CgRa2XRw-CSHBycmS.js +0 -1
  195. package/dist/app/assets/powershell-Diwyv8Eh-BIEUsx6d.js +0 -1
  196. package/dist/app/assets/prisma-COL_v1x4-B48N-Iqd.js +0 -1
  197. package/dist/app/assets/prolog-CuvJOxqT-BY-TUvya.js +0 -1
  198. package/dist/app/assets/proto-o9HLmF90-zocC4JxJ.js +0 -1
  199. package/dist/app/assets/pug-HKe4Luo3-BjTLA0bL.js +0 -1
  200. package/dist/app/assets/puppet-wpGOnQp5-Cza_XSSt.js +0 -1
  201. package/dist/app/assets/purescript-B_1NgE2N-Bg-kzb6g.js +0 -1
  202. package/dist/app/assets/python-xYxLFJY--DhUJRlN_.js +0 -1
  203. package/dist/app/assets/qml-FlMIyjU9-DSnJ_WBo.js +0 -1
  204. package/dist/app/assets/qmldir-BInDYbpo-C8lEn-DE.js +0 -1
  205. package/dist/app/assets/qss-D-h4NdUG-DhMKtDLN.js +0 -1
  206. package/dist/app/assets/r-F-9I-ITZ-CwjWoCRV.js +0 -1
  207. package/dist/app/assets/racket-BoD1TBFT-CzouJOBO.js +0 -1
  208. package/dist/app/assets/raku-IaYcw19m-B1bQXN8T.js +0 -1
  209. package/dist/app/assets/razor-CeqqNtyB-CTLKKD1r.js +0 -1
  210. package/dist/app/assets/red-7y8PH7HH-bN70gL4F.js +0 -1
  211. package/dist/app/assets/reg-CMUdAgIP-5LuOXUq_.js +0 -1
  212. package/dist/app/assets/regexp-GiFkbxS--DWJ3fJO_.js +0 -1
  213. package/dist/app/assets/rel-BaRn3QX7-DJlmqQ1C.js +0 -1
  214. package/dist/app/assets/riscv-B9V3SsvW-QhoSD0DR.js +0 -1
  215. package/dist/app/assets/rose-pine-DhT-HZE9-CmCqftbK.js +0 -1
  216. package/dist/app/assets/rose-pine-dawn-DiCjL2i4-Ds-gbosJ.js +0 -1
  217. package/dist/app/assets/rose-pine-moon-BNmGHlcn-CjDtw9vr.js +0 -1
  218. package/dist/app/assets/router-CmmUC7FI.js +0 -22
  219. package/dist/app/assets/rst-C3D6-dqL-DnZbUBhI.js +0 -1
  220. package/dist/app/assets/ruby-DcPLUUK3-ComHSJZD.js +0 -1
  221. package/dist/app/assets/rust-Pc7DCsZD-Be6lgOlo.js +0 -1
  222. package/dist/app/assets/sas-tDSYjXcL-BoaRjvJ1.js +0 -1
  223. package/dist/app/assets/sass-iCyS6eP9-BJ4Li9vH.js +0 -1
  224. package/dist/app/assets/scala-Cly-fENF-DQVVAn-B.js +0 -1
  225. package/dist/app/assets/scheme-Zi24oEYu-BJGe-b2p.js +0 -1
  226. package/dist/app/assets/scss-DhHc4lxB-DOVe6m7U.js +0 -1
  227. package/dist/app/assets/sdbl-BBamrXFL-BLhTXw86.js +0 -1
  228. package/dist/app/assets/shaderlab-CvqEIoL0-D4Zbm5h2.js +0 -1
  229. package/dist/app/assets/shellscript-Dn0-btNd-atvbtKCR.js +0 -1
  230. package/dist/app/assets/shellsession-8OLo3sB6-BcsC7Rtk.js +0 -1
  231. package/dist/app/assets/slack-dark-i7wN4OET-BthQWCQV.js +0 -1
  232. package/dist/app/assets/slack-ochin-ndHf0LoP-DqwNpetd.js +0 -1
  233. package/dist/app/assets/smalltalk-Cns31tKw-DkLiglaE.js +0 -1
  234. package/dist/app/assets/snazzy-light-BlSJXAu4-Bw305WKR.js +0 -1
  235. package/dist/app/assets/solarized-dark-UTmkh7lw-DXbdFlpD.js +0 -1
  236. package/dist/app/assets/solarized-light-BheCkDPT-L9t79GZl.js +0 -1
  237. package/dist/app/assets/solidity-BG_k8fA_-C1w2a3ep.js +0 -1
  238. package/dist/app/assets/soy-EwHMOVPj-g2bfMTqc.js +0 -1
  239. package/dist/app/assets/sparql-DhuelBut-DSDXMn9h.js +0 -1
  240. package/dist/app/assets/splunk-CTqDjQdo-Cf8iN4DR.js +0 -1
  241. package/dist/app/assets/sql-DCkt643--COK4E0Yg.js +0 -1
  242. package/dist/app/assets/ssh-config-DHHGll-v-BknIz3MU.js +0 -1
  243. package/dist/app/assets/stata-Dok6hMw0-Dx5Z5W33.js +0 -1
  244. package/dist/app/assets/stylus-n_9f0QQ5-BeQkCIfX.js +0 -1
  245. package/dist/app/assets/svelte-01qw6Rxm-BPq1Epw_.js +0 -1
  246. package/dist/app/assets/swift-BAWqNR8A-BSxZ-RaX.js +0 -1
  247. package/dist/app/assets/synthwave-84-NU3C_KFZ-CbfX1IO0.js +0 -1
  248. package/dist/app/assets/system-verilog-Cui-g-ut-C7L56vO4.js +0 -1
  249. package/dist/app/assets/systemd-CsKYQIQK-CUnW07Te.js +0 -1
  250. package/dist/app/assets/talonscript-D2dGh8FO-C1XDQQGZ.js +0 -1
  251. package/dist/app/assets/tasl-D3W8HMV6-CQjiPCtT.js +0 -1
  252. package/dist/app/assets/tcl-2y0Fuc4S-DQ1-QYvQ.js +0 -1
  253. package/dist/app/assets/templ-Hmy8U0DD-bZJvPZVc.js +0 -1
  254. package/dist/app/assets/terraform-BGW6Oerf-BbSNqyBO.js +0 -1
  255. package/dist/app/assets/tex-mHs7a43s-GNY7iZwJ.js +0 -1
  256. package/dist/app/assets/tokyo-night-LhP3hHhi-DBQeEorK.js +0 -1
  257. package/dist/app/assets/toml-CQSfOn0e-CB2ApiWb.js +0 -1
  258. package/dist/app/assets/ts-tags-DYZ4SGcN-DHCrqCAy.js +0 -1
  259. package/dist/app/assets/tsv-BtvSkaG0-B_m7g4N7.js +0 -1
  260. package/dist/app/assets/tsx-DiGsgWT8-B6W0miNI.js +0 -1
  261. package/dist/app/assets/turtle-BJ2wmjPc-BMR_PYu6.js +0 -1
  262. package/dist/app/assets/twig-BmytkGQV-gxvDbPvi.js +0 -1
  263. package/dist/app/assets/typescript-buWNZFwO-Dj6nwHGl.js +0 -1
  264. package/dist/app/assets/typespec-bLbdsxJL-BpWG_bgh.js +0 -1
  265. package/dist/app/assets/typst-Y9_SmXTs-BVUVsWT6.js +0 -1
  266. package/dist/app/assets/v-wa8Orrdd-CAQ2eGtk.js +0 -1
  267. package/dist/app/assets/vala-DRdriFr_-BFOHcciG.js +0 -1
  268. package/dist/app/assets/vb-E2_-jk4M-CdO5JTpU.js +0 -1
  269. package/dist/app/assets/vendor-Csw2ODfV.js +0 -17
  270. package/dist/app/assets/verilog-B1iBoR5_-CJaU5se_.js +0 -1
  271. package/dist/app/assets/vesper-CJsaOsSM-BEBZ7ncR.js +0 -1
  272. package/dist/app/assets/vhdl-CRVaAhXk-DYoNaHQp.js +0 -1
  273. package/dist/app/assets/viml-B-zWOd7Z-m4uW47V2.js +0 -1
  274. package/dist/app/assets/vitesse-black-BoGvW84i-Bkuqu6BP.js +0 -1
  275. package/dist/app/assets/vitesse-dark-Cym-eLtO-D0r3Knsf.js +0 -1
  276. package/dist/app/assets/vitesse-light-CcmG315c-CVO1_9PV.js +0 -1
  277. package/dist/app/assets/vue-Bl1uVNsA-B0HO5ROf.js +0 -1
  278. package/dist/app/assets/vue-html-DHr5wjBG-BZddcMPi.js +0 -1
  279. package/dist/app/assets/vyper-DWutKXpa-nyqBNV6O.js +0 -1
  280. package/dist/app/assets/wasm-Bv5f0gKv-C6j12Q_x.js +0 -1
  281. package/dist/app/assets/wasm-DQxwEHae-CG6Dc4jp.js +0 -1
  282. package/dist/app/assets/wenyan-BMYnfus1-7A4Fjokl.js +0 -1
  283. package/dist/app/assets/wgsl-DnPoPGDU-CB0Krxn9.js +0 -1
  284. package/dist/app/assets/wikitext-CntM04PE-DCE3LsBG.js +0 -1
  285. package/dist/app/assets/wolfram-Ws5qPlX9-C3FkfJm5.js +0 -1
  286. package/dist/app/assets/xml-ChBsf5uy-CRY5u_dA.js +0 -1
  287. package/dist/app/assets/xsl-BefjlXrd-kO2fudRX.js +0 -1
  288. package/dist/app/assets/yaml-Bbg74JKr-CVw76BM1.js +0 -1
  289. package/dist/app/assets/zenscript-C0RKE4nU-HnGAYVZD.js +0 -1
  290. package/dist/app/assets/zig-D6SXBGNm-BVz_zdnA.js +0 -1
  291. package/dist/app/error.png +0 -0
  292. package/dist/app/index.html +0 -24
  293. package/dist/app/logo.svg +0 -1
  294. package/dist/cli.d.ts +0 -2
  295. package/dist/cli.js +0 -116
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var qh=Object.defineProperty;var Fh=(e,t,r)=>t in e?qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var T=(e,t,r)=>Fh(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),_=require("react"),fe=require("@mui/system"),Bu=require("@emotion/styled"),zh=require("@emotion/react"),x=require("@mui/material"),De=require("axios"),Ns=require("@tanstack/react-query"),Uh=require("@malloydata/malloy-query-builder"),un=require("@malloydata/malloy-explorer"),Ms=require("markdown-to-jsx"),yo=require("@mui/icons-material"),qu=require("@react-spring/web"),ro=require("react-dom"),Wh=require("@uiw/react-md-editor");function As(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=As(_),Hh=As(Uh),Vh=As(ro);var Qn={},Bl;function Gh(){if(Bl)return Qn;Bl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.parse=i,Qn.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function i(h,f){const g=new a,y=h.length;if(y<2)return g;const v=f?.decode||u;let b=0;do{const C=h.indexOf("=",b);if(C===-1)break;const w=h.indexOf(";",b),k=w===-1?y:w;if(C>k){b=h.lastIndexOf(";",C-1)+1;continue}const j=s(h,b,C),P=l(h,C,j),B=h.slice(j,P);if(g[B]===void 0){let F=s(h,C+1,k),L=l(h,k,F);const m=v(h.slice(F,L));g[B]=m}b=k+1}while(b<y);return g}function s(h,f,g){do{const y=h.charCodeAt(f);if(y!==32&&y!==9)return f}while(++f<g);return g}function l(h,f,g){for(;f>g;){const y=h.charCodeAt(--f);if(y!==32&&y!==9)return f+1}return g}function c(h,f,g){const y=g?.encode||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const v=y(f);if(!t.test(v))throw new TypeError(`argument val is invalid: ${f}`);let b=h+"="+v;if(!g)return b;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);b+="; Max-Age="+g.maxAge}if(g.domain){if(!r.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);b+="; Domain="+g.domain}if(g.path){if(!n.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);b+="; Path="+g.path}if(g.expires){if(!p(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);b+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(b+="; HttpOnly"),g.secure&&(b+="; Secure"),g.partitioned&&(b+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":b+="; Priority=Low";break;case"medium":b+="; Priority=Medium";break;case"high":b+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":b+="; SameSite=Strict";break;case"lax":b+="; SameSite=Lax";break;case"none":b+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return b}function u(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function p(h){return o.call(h)==="[object Date]"}return Qn}Gh();/**
1
+ "use strict";var qh=Object.defineProperty;var Fh=(e,t,r)=>t in e?qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var T=(e,t,r)=>Fh(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),_=require("react"),fe=require("@mui/system"),Bu=require("@emotion/styled"),zh=require("@emotion/react"),x=require("@mui/material"),De=require("axios"),Ns=require("@tanstack/react-query"),Uh=require("@malloydata/malloy-query-builder"),dn=require("@malloydata/malloy-explorer"),Ms=require("markdown-to-jsx"),yo=require("@mui/icons-material"),qu=require("@react-spring/web"),ro=require("react-dom"),Wh=require("@uiw/react-md-editor");function As(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=As(_),Hh=As(Uh),Vh=As(ro);var Qn={},Bl;function Gh(){if(Bl)return Qn;Bl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.parse=i,Qn.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function i(h,f){const g=new a,y=h.length;if(y<2)return g;const v=f?.decode||u;let b=0;do{const C=h.indexOf("=",b);if(C===-1)break;const w=h.indexOf(";",b),k=w===-1?y:w;if(C>k){b=h.lastIndexOf(";",C-1)+1;continue}const j=s(h,b,C),P=l(h,C,j),B=h.slice(j,P);if(g[B]===void 0){let F=s(h,C+1,k),L=l(h,k,F);const m=v(h.slice(F,L));g[B]=m}b=k+1}while(b<y);return g}function s(h,f,g){do{const y=h.charCodeAt(f);if(y!==32&&y!==9)return f}while(++f<g);return g}function l(h,f,g){for(;f>g;){const y=h.charCodeAt(--f);if(y!==32&&y!==9)return f+1}return g}function c(h,f,g){const y=g?.encode||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const v=y(f);if(!t.test(v))throw new TypeError(`argument val is invalid: ${f}`);let b=h+"="+v;if(!g)return b;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);b+="; Max-Age="+g.maxAge}if(g.domain){if(!r.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);b+="; Domain="+g.domain}if(g.path){if(!n.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);b+="; Path="+g.path}if(g.expires){if(!p(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);b+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(b+="; HttpOnly"),g.secure&&(b+="; Secure"),g.partitioned&&(b+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":b+="; Priority=Low";break;case"medium":b+="; Priority=Medium";break;case"high":b+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":b+="; SameSite=Strict";break;case"lax":b+="; SameSite=Lax";break;case"none":b+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return b}function u(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function p(h){return o.call(h)==="[object Date]"}return Qn}Gh();/**
2
2
  * react-router v7.6.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -7,8 +7,8 @@
7
7
  * LICENSE.md file in the root directory of this source tree.
8
8
  *
9
9
  * @license MIT
10
- */var Fu=e=>{throw TypeError(e)},Kh=(e,t,r)=>t.has(e)||Fu("Cannot "+r),ki=(e,t,r)=>(Kh(e,t,"read from private field"),r?r.call(e):t.get(e)),Qh=(e,t,r)=>t.has(e)?Fu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ql="popstate";function Yh(e={}){function t(n,o){let{pathname:a,search:i,hash:s}=n.location;return bo("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:Tr(o)}return Xh(t,r,null,e)}function me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ye(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Jh(){return Math.random().toString(36).substring(2,10)}function Fl(e,t){return{usr:e.state,key:e.key,idx:t}}function bo(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ar(t):t,state:r,key:t&&t.key||n||Jh()}}function Tr({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ar(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Xh(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s="POP",l=null,c=u();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function u(){return(i.state||{idx:null}).idx}function p(){s="POP";let v=u(),b=v==null?null:v-c;c=v,l&&l({action:s,location:y.location,delta:b})}function h(v,b){s="PUSH";let C=bo(y.location,v,b);c=u()+1;let w=Fl(C,c),k=y.createHref(C);try{i.pushState(w,"",k)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;o.location.assign(k)}a&&l&&l({action:s,location:y.location,delta:1})}function f(v,b){s="REPLACE";let C=bo(y.location,v,b);c=u();let w=Fl(C,c),k=y.createHref(C);i.replaceState(w,"",k),a&&l&&l({action:s,location:y.location,delta:0})}function g(v){return zu(v)}let y={get action(){return s},get location(){return e(o,i)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(ql,p),l=v,()=>{o.removeEventListener(ql,p),l=null}},createHref(v){return t(o,v)},createURL:g,encodeLocation(v){let b=g(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:f,go(v){return i.go(v)}};return y}function zu(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),me(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Tr(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}var no,zl=class{constructor(e){if(Qh(this,no,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(ki(this,no).has(e))return ki(this,no).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){ki(this,no).set(e,t)}};no=new WeakMap;var Zh=new Set(["lazy","caseSensitive","path","id","index","children"]);function em(e){return Zh.has(e)}var tm=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function rm(e){return tm.has(e)}function nm(e){return e.index===!0}function wa(e,t,r=[],n={}){return e.map((o,a)=>{let i=[...r,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if(me(o.index!==!0||!o.children,"Cannot specify children on an index route"),me(!n[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),nm(o)){let l={...o,...t(o),id:s};return n[s]=l,l}else{let l={...o,...t(o),id:s,children:void 0};return n[s]=l,o.children&&(l.children=wa(o.children,t,i,n)),l}})}function Ir(e,t,r="/"){return da(e,t,r,!1)}function da(e,t,r,n){let o=typeof t=="string"?Ar(t):t,a=Bt(o.pathname||"/",r);if(a==null)return null;let i=Uu(e);am(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let c=gm(a);s=mm(i[l],c,n)}return s}function om(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}function Uu(e,t=[],r=[],n=""){let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(me(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length));let c=rr([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&(me(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Uu(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:pm(c,a.index),routesMeta:u})};return e.forEach((a,i)=>{if(a.path===""||!a.path?.includes("?"))o(a,i);else for(let s of Wu(a.path))o(a,i,s)}),t}function Wu(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=Wu(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function am(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hm(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var im=/^:[\w-]+$/,sm=3,lm=2,cm=1,um=10,dm=-2,Ul=e=>e==="*";function pm(e,t){let r=e.split("/"),n=r.length;return r.some(Ul)&&(n+=dm),t&&(n+=lm),r.filter(o=>!Ul(o)).reduce((o,a)=>o+(im.test(a)?sm:a===""?cm:um),n)}function hm(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function mm(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",p=Ca({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!p&&c&&r&&!n[n.length-1].route.index&&(p=Ca({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!p)return null;Object.assign(o,p.params),i.push({params:o,pathname:rr([a,p.pathname]),pathnameBase:xm(rr([a,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(a=rr([a,p.pathnameBase]))}return i}function Ca(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=fm(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((c,{paramName:u,isOptional:p},h)=>{if(u==="*"){let g=s[h]||"";i=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const f=s[h];return p&&!f?c[u]=void 0:c[u]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function fm(e,t=!1,r=!0){Ye(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function gm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ye(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Bt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function ym(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Ar(e):e;return{pathname:r?r.startsWith("/")?r:bm(r,t):t,search:vm(n),hash:Sm(o)}}function bm(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Pi(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hu(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _s(e){let t=Hu(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Os(e,t,r,n=!1){let o;typeof e=="string"?o=Ar(e):(o={...e},me(!o.pathname||!o.pathname.includes("?"),Pi("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),Pi("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),Pi("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let p=t.length-1;if(!n&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}s=p>=0?t[p]:"/"}let l=ym(o,s),c=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var rr=e=>e.join("/").replace(/\/\/+/g,"/"),xm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Sm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ka=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function xo(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Vu=["POST","PUT","PATCH","DELETE"],wm=new Set(Vu),Cm=["GET",...Vu],km=new Set(Cm),Pm=new Set([301,302,303,307,308]),Im=new Set([307,308]),Ii={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jm={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yn={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ls=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Em=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Gu="remix-router-transitions",Ku=Symbol("ResetLoaderData");function Rm(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";me(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],o=e.mapRouteProperties||Em,a={},i=wa(e.routes,o,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||_m,u={unstable_middleware:!1,...e.future},p=null,h=new Set,f=null,g=null,y=null,v=e.hydrationData!=null,b=Ir(i,e.history.location,l),C=!1,w=null,k;if(b==null&&!e.patchRoutesOnNavigation){let I=Mt(404,{pathname:e.history.location.pathname}),{matches:E,route:N}=tc(i);k=!0,b=E,w={[N.id]:I}}else if(b&&!e.hydrationData&&Qo(b,i,e.history.location.pathname).active&&(b=null),b)if(b.some(I=>I.route.lazy))k=!1;else if(!b.some(I=>I.route.loader))k=!0;else{let I=e.hydrationData?e.hydrationData.loaderData:null,E=e.hydrationData?e.hydrationData.errors:null;if(E){let N=b.findIndex(z=>E[z.route.id]!==void 0);k=b.slice(0,N+1).every(z=>!Ji(z.route,I,E))}else k=b.every(N=>!Ji(N.route,I,E))}else{k=!1,b=[];let I=Qo(null,i,e.history.location.pathname);I.active&&I.matches&&(C=!0,b=I.matches)}let j,P={historyAction:e.history.action,location:e.history.location,matches:b,initialized:k,navigation:Ii,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},B="POP",F=!1,L,m=!1,R=new Map,D=null,$=!1,H=!1,X=new Set,V=new Map,ce=0,K=-1,se=new Map,Z=new Set,J=new Map,W=new Map,O=new Set,q=new Map,oe,Pe=null;function it(){if(p=e.history.listen(({action:I,location:E,delta:N})=>{if(oe){oe(),oe=void 0;return}Ye(q.size===0||N!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let z=Ol({currentLocation:P.location,nextLocation:E,historyAction:I});if(z&&N!=null){let G=new Promise(te=>{oe=te});e.history.go(N*-1),Ko(z,{state:"blocked",location:E,proceed(){Ko(z,{state:"proceeding",proceed:void 0,reset:void 0,location:E}),G.then(()=>e.history.go(N))},reset(){let te=new Map(P.blockers);te.set(z,Yn),Ae({blockers:te})}});return}return dt(I,E)}),r){Hm(t,R);let I=()=>Vm(t,R);t.addEventListener("pagehide",I),D=()=>t.removeEventListener("pagehide",I)}return P.initialized||dt("POP",P.location,{initialHydration:!0}),j}function ht(){p&&p(),D&&D(),h.clear(),L&&L.abort(),P.fetchers.forEach((I,E)=>Un(E)),P.blockers.forEach((I,E)=>ge(E))}function Me(I){return h.add(I),()=>h.delete(I)}function Ae(I,E={}){P={...P,...I};let N=[],z=[];P.fetchers.forEach((G,te)=>{G.state==="idle"&&(O.has(te)?N.push(te):z.push(te))}),O.forEach(G=>{!P.fetchers.has(G)&&!V.has(G)&&N.push(G)}),[...h].forEach(G=>G(P,{deletedFetchers:N,viewTransitionOpts:E.viewTransitionOpts,flushSync:E.flushSync===!0})),N.forEach(G=>Un(G)),z.forEach(G=>P.fetchers.delete(G))}function jt(I,E,{flushSync:N}={}){let z=P.actionData!=null&&P.navigation.formMethod!=null&&xt(P.navigation.formMethod)&&P.navigation.state==="loading"&&I.state?._isRedirect!==!0,G;E.actionData?Object.keys(E.actionData).length>0?G=E.actionData:G=null:z?G=P.actionData:G=null;let te=E.loaderData?Zl(P.loaderData,E.loaderData,E.matches||[],E.errors):P.loaderData,ie=P.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((ee,ue)=>ie.set(ue,Yn)));let Q=F===!0||P.navigation.formMethod!=null&&xt(P.navigation.formMethod)&&I.state?._isRedirect!==!0;s&&(i=s,s=void 0),$||B==="POP"||(B==="PUSH"?e.history.push(I,I.state):B==="REPLACE"&&e.history.replace(I,I.state));let re;if(B==="POP"){let ee=R.get(P.location.pathname);ee&&ee.has(I.pathname)?re={currentLocation:P.location,nextLocation:I}:R.has(I.pathname)&&(re={currentLocation:I,nextLocation:P.location})}else if(m){let ee=R.get(P.location.pathname);ee?ee.add(I.pathname):(ee=new Set([I.pathname]),R.set(P.location.pathname,ee)),re={currentLocation:P.location,nextLocation:I}}Ae({...E,actionData:G,loaderData:te,historyAction:B,location:I,initialized:!0,navigation:Ii,revalidation:"idle",restoreScrollPosition:$l(I,E.matches||P.matches),preventScrollReset:Q,blockers:ie},{viewTransitionOpts:re,flushSync:N===!0}),B="POP",F=!1,m=!1,$=!1,H=!1,Pe?.resolve(),Pe=null}async function xr(I,E){if(typeof I=="number"){e.history.go(I);return}let N=Yi(P.location,P.matches,l,I,E?.fromRouteId,E?.relative),{path:z,submission:G,error:te}=Wl(!1,N,E),ie=P.location,Q=bo(P.location,z,E&&E.state);Q={...Q,...e.history.encodeLocation(Q)};let re=E&&E.replace!=null?E.replace:void 0,ee="PUSH";re===!0?ee="REPLACE":re===!1||G!=null&&xt(G.formMethod)&&G.formAction===P.location.pathname+P.location.search&&(ee="REPLACE");let ue=E&&"preventScrollReset"in E?E.preventScrollReset===!0:void 0,le=(E&&E.flushSync)===!0,he=Ol({currentLocation:ie,nextLocation:Q,historyAction:ee});if(he){Ko(he,{state:"blocked",location:Q,proceed(){Ko(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),xr(I,E)},reset(){let Ie=new Map(P.blockers);Ie.set(he,Yn),Ae({blockers:Ie})}});return}await dt(ee,Q,{submission:G,pendingError:te,preventScrollReset:ue,replace:E&&E.replace,enableViewTransition:E&&E.viewTransition,flushSync:le})}function Wt(){Pe||(Pe=Gm()),wr(),Ae({revalidation:"loading"});let I=Pe.promise;return P.navigation.state==="submitting"?I:P.navigation.state==="idle"?(dt(P.historyAction,P.location,{startUninterruptedRevalidation:!0}),I):(dt(B||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:m===!0}),I)}async function dt(I,E,N){L&&L.abort(),L=null,B=I,$=(N&&N.startUninterruptedRevalidation)===!0,Lh(P.location,P.matches),F=(N&&N.preventScrollReset)===!0,m=(N&&N.enableViewTransition)===!0;let z=s||i,G=N&&N.overrideNavigation,te=N?.initialHydration&&P.matches&&P.matches.length>0&&!C?P.matches:Ir(z,E,l),ie=(N&&N.flushSync)===!0;if(te&&P.initialized&&!H&&qm(P.location,E)&&!(N&&N.submission&&xt(N.submission.formMethod))){jt(E,{matches:te},{flushSync:ie});return}let Q=Qo(te,z,E.pathname);if(Q.active&&Q.matches&&(te=Q.matches),!te){let{error:st,notFoundMatches:gt,route:ye}=Si(E.pathname);jt(E,{matches:gt,loaderData:{},errors:{[ye.id]:st}},{flushSync:ie});return}L=new AbortController;let re=Cn(e.history,E,L.signal,N&&N.submission),ee=new zl(e.unstable_getContext?await e.unstable_getContext():void 0),ue;if(N&&N.pendingError)ue=[zr(te).route.id,{type:"error",error:N.pendingError}];else if(N&&N.submission&&xt(N.submission.formMethod)){let st=await Lr(re,E,N.submission,te,ee,Q.active,N&&N.initialHydration===!0,{replace:N.replace,flushSync:ie});if(st.shortCircuited)return;if(st.pendingActionResult){let[gt,ye]=st.pendingActionResult;if(bt(ye)&&xo(ye.error)&&ye.error.status===404){L=null,jt(E,{matches:st.matches,loaderData:{},errors:{[gt]:ye.error}});return}}te=st.matches||te,ue=st.pendingActionResult,G=ji(E,N.submission),ie=!1,Q.active=!1,re=Cn(e.history,re.url,re.signal)}let{shortCircuited:le,matches:he,loaderData:Ie,errors:Xe}=await Qt(re,E,te,ee,Q.active,G,N&&N.submission,N&&N.fetcherSubmission,N&&N.replace,N&&N.initialHydration===!0,ie,ue);le||(L=null,jt(E,{matches:he||te,...ec(ue),loaderData:Ie,errors:Xe}))}async function Lr(I,E,N,z,G,te,ie,Q={}){wr();let re=Um(E,N);if(Ae({navigation:re},{flushSync:Q.flushSync===!0}),te){let le=await Yo(z,E.pathname,I.signal);if(le.type==="aborted")return{shortCircuited:!0};if(le.type==="error"){let he=zr(le.partialMatches).route.id;return{matches:le.partialMatches,pendingActionResult:[he,{type:"error",error:le.error}]}}else if(le.matches)z=le.matches;else{let{notFoundMatches:he,error:Ie,route:Xe}=Si(E.pathname);return{matches:he,pendingActionResult:[Xe.id,{type:"error",error:Ie}]}}}let ee,ue=oo(z,E);if(!ue.route.action&&!ue.route.lazy)ee={type:"error",error:Mt(405,{method:I.method,pathname:E.pathname,routeId:ue.route.id})};else{let le=In(o,a,I,z,ue,ie?[]:n,G),he=await $r(I,le,G,null);if(ee=he[ue.route.id],!ee){for(let Ie of z)if(he[Ie.route.id]){ee=he[Ie.route.id];break}}if(I.signal.aborted)return{shortCircuited:!0}}if(Ur(ee)){let le;return Q&&Q.replace!=null?le=Q.replace:le=Yl(ee.response.headers.get("Location"),new URL(I.url),l)===P.location.pathname+P.location.search,await ne(I,ee,!0,{submission:N,replace:le}),{shortCircuited:!0}}if(bt(ee)){let le=zr(z,ue.route.id);return(Q&&Q.replace)!==!0&&(B="PUSH"),{matches:z,pendingActionResult:[le.route.id,ee,ue.route.id]}}return{matches:z,pendingActionResult:[ue.route.id,ee]}}async function Qt(I,E,N,z,G,te,ie,Q,re,ee,ue,le){let he=te||ji(E,ie),Ie=ie||Q||nc(he),Xe=!$&&!ee;if(G){if(Xe){let Rt=ot(le);Ae({navigation:he,...Rt!==void 0?{actionData:Rt}:{}},{flushSync:ue})}let be=await Yo(N,E.pathname,I.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){let Rt=zr(be.partialMatches).route.id;return{matches:be.partialMatches,loaderData:{},errors:{[Rt]:be.error}}}else if(be.matches)N=be.matches;else{let{error:Rt,notFoundMatches:Cr,route:Xo}=Si(E.pathname);return{matches:Cr,loaderData:{},errors:{[Xo.id]:Rt}}}}let st=s||i,{dsMatches:gt,revalidatingFetchers:ye}=Hl(I,z,o,a,e.history,P,N,Ie,E,ee?[]:n,ee===!0,H,X,O,J,Z,st,l,e.patchRoutesOnNavigation!=null,le);if(K=++ce,!e.dataStrategy&&!gt.some(be=>be.shouldLoad)&&ye.length===0){let be=Vo();return jt(E,{matches:N,loaderData:{},errors:le&&bt(le[1])?{[le[0]]:le[1].error}:null,...ec(le),...be?{fetchers:new Map(P.fetchers)}:{}},{flushSync:ue}),{shortCircuited:!0}}if(Xe){let be={};if(!G){be.navigation=he;let Rt=ot(le);Rt!==void 0&&(be.actionData=Rt)}ye.length>0&&(be.fetchers=Ht(ye)),Ae(be,{flushSync:ue})}ye.forEach(be=>{ft(be.key),be.controller&&V.set(be.key,be.controller)});let Hn=()=>ye.forEach(be=>ft(be.key));L&&L.signal.addEventListener("abort",Hn);let{loaderResults:Dr,fetcherResults:Vn}=await Uo(gt,ye,I,z);if(I.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Hn),ye.forEach(be=>V.delete(be.key));let Et=Zo(Dr);if(Et)return await ne(I,Et.result,!0,{replace:re}),{shortCircuited:!0};if(Et=Zo(Vn),Et)return Z.add(Et.key),await ne(I,Et.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:Gn,errors:Kn}=Xl(P,N,Dr,le,ye,Vn);ee&&P.errors&&(Kn={...P.errors,...Kn});let wi=Vo(),Br=Wn(K),Jo=wi||Br||ye.length>0;return{matches:N,loaderData:Gn,errors:Kn,...Jo?{fetchers:new Map(P.fetchers)}:{}}}function ot(I){if(I&&!bt(I[1]))return{[I[0]]:I[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function Ht(I){return I.forEach(E=>{let N=P.fetchers.get(E.key),z=Jn(void 0,N?N.data:void 0);P.fetchers.set(E.key,z)}),new Map(P.fetchers)}async function vr(I,E,N,z){ft(I);let G=(z&&z.flushSync)===!0,te=s||i,ie=Yi(P.location,P.matches,l,N,E,z?.relative),Q=Ir(te,ie,l),re=Qo(Q,te,ie);if(re.active&&re.matches&&(Q=re.matches),!Q){Vt(I,E,Mt(404,{pathname:ie}),{flushSync:G});return}let{path:ee,submission:ue,error:le}=Wl(!0,ie,z);if(le){Vt(I,E,le,{flushSync:G});return}let he=oo(Q,ee),Ie=new zl(e.unstable_getContext?await e.unstable_getContext():void 0),Xe=(z&&z.preventScrollReset)===!0;if(ue&&xt(ue.formMethod)){await Sr(I,E,ee,he,Q,Ie,re.active,G,Xe,ue);return}J.set(I,{routeId:E,path:ee}),await ae(I,E,ee,he,Q,Ie,re.active,G,Xe,ue)}async function Sr(I,E,N,z,G,te,ie,Q,re,ee){wr(),J.delete(I);function ue(Ue){if(!Ue.route.action&&!Ue.route.lazy){let cn=Mt(405,{method:ee.formMethod,pathname:N,routeId:E});return Vt(I,E,cn,{flushSync:Q}),!0}return!1}if(!ie&&ue(z))return;let le=P.fetchers.get(I);Yt(I,Wm(ee,le),{flushSync:Q});let he=new AbortController,Ie=Cn(e.history,N,he.signal,ee);if(ie){let Ue=await Yo(G,N,Ie.signal,I);if(Ue.type==="aborted")return;if(Ue.type==="error"){Vt(I,E,Ue.error,{flushSync:Q});return}else if(Ue.matches){if(G=Ue.matches,z=oo(G,N),ue(z))return}else{Vt(I,E,Mt(404,{pathname:N}),{flushSync:Q});return}}V.set(I,he);let Xe=ce,st=In(o,a,Ie,G,z,n,te),ye=(await $r(Ie,st,te,I))[z.route.id];if(Ie.signal.aborted){V.get(I)===he&&V.delete(I);return}if(O.has(I)){if(Ur(ye)||bt(ye)){Yt(I,Pr(void 0));return}}else{if(Ur(ye))if(V.delete(I),K>Xe){Yt(I,Pr(void 0));return}else return Z.add(I),Yt(I,Jn(ee)),ne(Ie,ye,!1,{fetcherSubmission:ee,preventScrollReset:re});if(bt(ye)){Vt(I,E,ye.error);return}}let Hn=P.navigation.location||P.location,Dr=Cn(e.history,Hn,he.signal),Vn=s||i,Et=P.navigation.state!=="idle"?Ir(Vn,P.navigation.location,l):P.matches;me(Et,"Didn't find any matches after fetcher action");let Gn=++ce;se.set(I,Gn);let Kn=Jn(ee,ye.data);P.fetchers.set(I,Kn);let{dsMatches:wi,revalidatingFetchers:Br}=Hl(Dr,te,o,a,e.history,P,Et,ee,Hn,n,!1,H,X,O,J,Z,Vn,l,e.patchRoutesOnNavigation!=null,[z.route.id,ye]);Br.filter(Ue=>Ue.key!==I).forEach(Ue=>{let cn=Ue.key,Dl=P.fetchers.get(cn),Bh=Jn(void 0,Dl?Dl.data:void 0);P.fetchers.set(cn,Bh),ft(cn),Ue.controller&&V.set(cn,Ue.controller)}),Ae({fetchers:new Map(P.fetchers)});let Jo=()=>Br.forEach(Ue=>ft(Ue.key));he.signal.addEventListener("abort",Jo);let{loaderResults:be,fetcherResults:Rt}=await Uo(wi,Br,Dr,te);if(he.signal.aborted)return;if(he.signal.removeEventListener("abort",Jo),se.delete(I),V.delete(I),Br.forEach(Ue=>V.delete(Ue.key)),P.fetchers.has(I)){let Ue=Pr(ye.data);P.fetchers.set(I,Ue)}let Cr=Zo(be);if(Cr)return ne(Dr,Cr.result,!1,{preventScrollReset:re});if(Cr=Zo(Rt),Cr)return Z.add(Cr.key),ne(Dr,Cr.result,!1,{preventScrollReset:re});let{loaderData:Xo,errors:Ci}=Xl(P,Et,be,void 0,Br,Rt);Wn(Gn),P.navigation.state==="loading"&&Gn>K?(me(B,"Expected pending action"),L&&L.abort(),jt(P.navigation.location,{matches:Et,loaderData:Xo,errors:Ci,fetchers:new Map(P.fetchers)})):(Ae({errors:Ci,loaderData:Zl(P.loaderData,Xo,Et,Ci),fetchers:new Map(P.fetchers)}),H=!1)}async function ae(I,E,N,z,G,te,ie,Q,re,ee){let ue=P.fetchers.get(I);Yt(I,Jn(ee,ue?ue.data:void 0),{flushSync:Q});let le=new AbortController,he=Cn(e.history,N,le.signal);if(ie){let ye=await Yo(G,N,he.signal,I);if(ye.type==="aborted")return;if(ye.type==="error"){Vt(I,E,ye.error,{flushSync:Q});return}else if(ye.matches)G=ye.matches,z=oo(G,N);else{Vt(I,E,Mt(404,{pathname:N}),{flushSync:Q});return}}V.set(I,le);let Ie=ce,Xe=In(o,a,he,G,z,n,te),gt=(await $r(he,Xe,te,I))[z.route.id];if(V.get(I)===le&&V.delete(I),!he.signal.aborted){if(O.has(I)){Yt(I,Pr(void 0));return}if(Ur(gt))if(K>Ie){Yt(I,Pr(void 0));return}else{Z.add(I),await ne(he,gt,!1,{preventScrollReset:re});return}if(bt(gt)){Vt(I,E,gt.error);return}Yt(I,Pr(gt.data))}}async function ne(I,E,N,{submission:z,fetcherSubmission:G,preventScrollReset:te,replace:ie}={}){E.response.headers.has("X-Remix-Revalidate")&&(H=!0);let Q=E.response.headers.get("Location");me(Q,"Expected a Location header on the redirect Response"),Q=Yl(Q,new URL(I.url),l);let re=bo(P.location,Q,{_isRedirect:!0});if(r){let Xe=!1;if(E.response.headers.has("X-Remix-Reload-Document"))Xe=!0;else if(Ls.test(Q)){const st=zu(Q,!0);Xe=st.origin!==t.location.origin||Bt(st.pathname,l)==null}if(Xe){ie?t.location.replace(Q):t.location.assign(Q);return}}L=null;let ee=ie===!0||E.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ue,formAction:le,formEncType:he}=P.navigation;!z&&!G&&ue&&le&&he&&(z=nc(P.navigation));let Ie=z||G;if(Im.has(E.response.status)&&Ie&&xt(Ie.formMethod))await dt(ee,re,{submission:{...Ie,formAction:Q},preventScrollReset:te||F,enableViewTransition:N?m:void 0});else{let Xe=ji(re,z);await dt(ee,re,{overrideNavigation:Xe,fetcherSubmission:G,preventScrollReset:te||F,enableViewTransition:N?m:void 0})}}async function $r(I,E,N,z){let G,te={};try{G=await Om(c,I,E,z,N,!1)}catch(ie){return E.filter(Q=>Q.shouldLoad).forEach(Q=>{te[Q.route.id]={type:"error",error:ie}}),te}if(I.signal.aborted)return te;for(let[ie,Q]of Object.entries(G))if(Fm(Q)){let re=Q.result;te[ie]={type:"redirect",response:Dm(re,I,ie,E,l)}}else te[ie]=await $m(Q);return te}async function Uo(I,E,N,z){let G=$r(N,I,z,null),te=Promise.all(E.map(async re=>{if(re.matches&&re.match&&re.request&&re.controller){let ue=(await $r(re.request,re.matches,z,re.key))[re.match.route.id];return{[re.key]:ue}}else return Promise.resolve({[re.key]:{type:"error",error:Mt(404,{pathname:re.path})}})})),ie=await G,Q=(await te).reduce((re,ee)=>Object.assign(re,ee),{});return{loaderResults:ie,fetcherResults:Q}}function wr(){H=!0,J.forEach((I,E)=>{V.has(E)&&X.add(E),ft(E)})}function Yt(I,E,N={}){P.fetchers.set(I,E),Ae({fetchers:new Map(P.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function Vt(I,E,N,z={}){let G=zr(P.matches,E);Un(I),Ae({errors:{[G.route.id]:N},fetchers:new Map(P.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function Wo(I){return W.set(I,(W.get(I)||0)+1),O.has(I)&&O.delete(I),P.fetchers.get(I)||jm}function Un(I){let E=P.fetchers.get(I);V.has(I)&&!(E&&E.state==="loading"&&se.has(I))&&ft(I),J.delete(I),se.delete(I),Z.delete(I),O.delete(I),X.delete(I),P.fetchers.delete(I)}function vi(I){let E=(W.get(I)||0)-1;E<=0?(W.delete(I),O.add(I)):W.set(I,E),Ae({fetchers:new Map(P.fetchers)})}function ft(I){let E=V.get(I);E&&(E.abort(),V.delete(I))}function Ho(I){for(let E of I){let N=Wo(E),z=Pr(N.data);P.fetchers.set(E,z)}}function Vo(){let I=[],E=!1;for(let N of Z){let z=P.fetchers.get(N);me(z,`Expected fetcher: ${N}`),z.state==="loading"&&(Z.delete(N),I.push(N),E=!0)}return Ho(I),E}function Wn(I){let E=[];for(let[N,z]of se)if(z<I){let G=P.fetchers.get(N);me(G,`Expected fetcher: ${N}`),G.state==="loading"&&(ft(N),se.delete(N),E.push(N))}return Ho(E),E.length>0}function Go(I,E){let N=P.blockers.get(I)||Yn;return q.get(I)!==E&&q.set(I,E),N}function ge(I){P.blockers.delete(I),q.delete(I)}function Ko(I,E){let N=P.blockers.get(I)||Yn;me(N.state==="unblocked"&&E.state==="blocked"||N.state==="blocked"&&E.state==="blocked"||N.state==="blocked"&&E.state==="proceeding"||N.state==="blocked"&&E.state==="unblocked"||N.state==="proceeding"&&E.state==="unblocked",`Invalid blocker state transition: ${N.state} -> ${E.state}`);let z=new Map(P.blockers);z.set(I,E),Ae({blockers:z})}function Ol({currentLocation:I,nextLocation:E,historyAction:N}){if(q.size===0)return;q.size>1&&Ye(!1,"A router only supports one blocker at a time");let z=Array.from(q.entries()),[G,te]=z[z.length-1],ie=P.blockers.get(G);if(!(ie&&ie.state==="proceeding")&&te({currentLocation:I,nextLocation:E,historyAction:N}))return G}function Si(I){let E=Mt(404,{pathname:I}),N=s||i,{matches:z,route:G}=tc(N);return{notFoundMatches:z,route:G,error:E}}function Oh(I,E,N){if(f=I,y=E,g=N||null,!v&&P.navigation===Ii){v=!0;let z=$l(P.location,P.matches);z!=null&&Ae({restoreScrollPosition:z})}return()=>{f=null,y=null,g=null}}function Ll(I,E){return g&&g(I,E.map(z=>om(z,P.loaderData)))||I.key}function Lh(I,E){if(f&&y){let N=Ll(I,E);f[N]=y()}}function $l(I,E){if(f){let N=Ll(I,E),z=f[N];if(typeof z=="number")return z}return null}function Qo(I,E,N){if(e.patchRoutesOnNavigation)if(I){if(Object.keys(I[0].params).length>0)return{active:!0,matches:da(E,N,l,!0)}}else return{active:!0,matches:da(E,N,l,!0)||[]};return{active:!1,matches:null}}async function Yo(I,E,N,z){if(!e.patchRoutesOnNavigation)return{type:"success",matches:I};let G=I;for(;;){let te=s==null,ie=s||i,Q=a;try{await e.patchRoutesOnNavigation({signal:N,path:E,matches:G,fetcherKey:z,patch:(ue,le)=>{N.aborted||Vl(ue,le,ie,Q,o)}})}catch(ue){return{type:"error",error:ue,partialMatches:G}}finally{te&&!N.aborted&&(i=[...i])}if(N.aborted)return{type:"aborted"};let re=Ir(ie,E,l);if(re)return{type:"success",matches:re};let ee=da(ie,E,l,!0);if(!ee||G.length===ee.length&&G.every((ue,le)=>ue.route.id===ee[le].route.id))return{type:"success",matches:null};G=ee}}function $h(I){a={},s=wa(I,o,void 0,a)}function Dh(I,E){let N=s==null;Vl(I,E,s||i,a,o),N&&(i=[...i],Ae({}))}return j={get basename(){return l},get future(){return u},get state(){return P},get routes(){return i},get window(){return t},initialize:it,subscribe:Me,enableScrollRestoration:Oh,navigate:xr,fetch:vr,revalidate:Wt,createHref:I=>e.history.createHref(I),encodeLocation:I=>e.history.encodeLocation(I),getFetcher:Wo,deleteFetcher:vi,dispose:ht,getBlocker:Go,deleteBlocker:ge,patchRoutes:Dh,_internalFetchControllers:V,_internalSetRoutes:$h},j}function Tm(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Yi(e,t,r,n,o,a){let i,s;if(o){i=[];for(let c of t)if(i.push(c),c.route.id===o){s=c;break}}else i=t,s=t[t.length-1];let l=Os(n||".",_s(i),Bt(e.pathname,r)||e.pathname,a==="path");if(n==null&&(l.search=e.search,l.hash=e.hash),(n==null||n===""||n===".")&&s){let c=$s(l.search);if(s.route.index&&!c)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&c){let u=new URLSearchParams(l.search),p=u.getAll("index");u.delete("index"),p.filter(f=>f).forEach(f=>u.append("index",f));let h=u.toString();l.search=h?`?${h}`:""}}return r!=="/"&&(l.pathname=l.pathname==="/"?r:rr([r,l.pathname])),Tr(l)}function Wl(e,t,r){if(!r||!Tm(r))return{path:t};if(r.formMethod&&!zm(r.formMethod))return{path:t,error:Mt(405,{method:r.formMethod})};let n=()=>({path:t,error:Mt(400,{type:"invalid-body"})}),a=(r.formMethod||"get").toUpperCase(),i=ed(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!xt(a))return n();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,[f,g])=>`${h}${f}=${g}
11
- `,""):String(r.body);return{path:t,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!xt(a))return n();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return n()}}}me(typeof FormData=="function","FormData is not available in this environment");let s,l;if(r.formData)s=Zi(r.formData),l=r.formData;else if(r.body instanceof FormData)s=Zi(r.body),l=r.body;else if(r.body instanceof URLSearchParams)s=r.body,l=Jl(s);else if(r.body==null)s=new URLSearchParams,l=new FormData;else try{s=new URLSearchParams(r.body),l=Jl(s)}catch{return n()}let c={formMethod:a,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(xt(c.formMethod))return{path:t,submission:c};let u=Ar(t);return e&&u.search&&$s(u.search)&&s.append("index",""),u.search=`?${s}`,{path:Tr(u),submission:c}}function Hl(e,t,r,n,o,a,i,s,l,c,u,p,h,f,g,y,v,b,C,w){let k=w?bt(w[1])?w[1].error:w[1].data:void 0,j=o.createURL(a.location),P=o.createURL(l),B;if(u&&a.errors){let $=Object.keys(a.errors)[0];B=i.findIndex(H=>H.route.id===$)}else if(w&&bt(w[1])){let $=w[0];B=i.findIndex(H=>H.route.id===$)-1}let F=w?w[1].statusCode:void 0,L=F&&F>=400,m={currentUrl:j,currentParams:a.matches[0]?.params||{},nextUrl:P,nextParams:i[0].params,...s,actionResult:k,actionStatus:F},R=i.map(($,H)=>{let{route:X}=$,V=null;if(B!=null&&H>B?V=!1:X.lazy?V=!0:X.loader==null?V=!1:u?V=Ji(X,a.loaderData,a.errors):Nm(a.loaderData,a.matches[H],$)&&(V=!0),V!==null)return Xi(r,n,e,$,c,t,V);let ce=L?!1:p||j.pathname+j.search===P.pathname+P.search||j.search!==P.search||Mm(a.matches[H],$),K={...m,defaultShouldRevalidate:ce},se=Pa($,K);return Xi(r,n,e,$,c,t,se,K)}),D=[];return g.forEach(($,H)=>{if(u||!i.some(W=>W.route.id===$.routeId)||f.has(H))return;let X=a.fetchers.get(H),V=X&&X.state!=="idle"&&X.data===void 0,ce=Ir(v,$.path,b);if(!ce){if(C&&V)return;D.push({key:H,routeId:$.routeId,path:$.path,matches:null,match:null,request:null,controller:null});return}if(y.has(H))return;let K=oo(ce,$.path),se=new AbortController,Z=Cn(o,$.path,se.signal),J=null;if(h.has(H))h.delete(H),J=In(r,n,Z,ce,K,c,t);else if(V)p&&(J=In(r,n,Z,ce,K,c,t));else{let W={...m,defaultShouldRevalidate:L?!1:p};Pa(K,W)&&(J=In(r,n,Z,ce,K,c,t,W))}J&&D.push({key:H,routeId:$.routeId,path:$.path,matches:J,match:K,request:Z,controller:se})}),{dsMatches:R,revalidatingFetchers:D}}function Ji(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&e.id in t,o=r!=null&&r[e.id]!==void 0;return!n&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!o}function Nm(e,t,r){let n=!t||r.route.id!==t.route.id,o=!e.hasOwnProperty(r.route.id);return n||o}function Mm(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Pa(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Vl(e,t,r,n,o){let a;if(e){let l=n[e];me(l,`No route found to patch children into: routeId = ${e}`),l.children||(l.children=[]),a=l.children}else a=r;let i=t.filter(l=>!a.some(c=>Qu(l,c))),s=wa(i,o,[e||"_","patch",String(a?.length||"0")],n);a.push(...s)}function Qu(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>t.children?.some(o=>Qu(r,o))):!1}var Gl=new WeakMap,Yu=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let o=r[t.id];if(me(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let i=Gl.get(o);i||(i={},Gl.set(o,i));let s=i[e];if(s)return s;let l=(async()=>{let c=em(e),p=o[e]!==void 0&&e!=="hasErrorBoundary";if(c)Ye(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(p)Ye(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let h=await a();h!=null&&(Object.assign(o,{[e]:h}),Object.assign(o,n(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(h=>h===void 0)&&(o.lazy=void 0))})();return i[e]=l,l},Kl=new WeakMap;function Am(e,t,r,n,o){let a=r[e.id];if(me(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let u=Kl.get(a);if(u)return{lazyRoutePromise:u,lazyHandlerPromise:u};let p=(async()=>{me(typeof e.lazy=="function","No lazy route function found");let h=await e.lazy(),f={};for(let g in h){let y=h[g];if(y===void 0)continue;let v=rm(g),C=a[g]!==void 0&&g!=="hasErrorBoundary";v?Ye(!v,"Route property "+g+" is not a supported property to be returned from a lazy route function. This property will be ignored."):C?Ye(!C,`Route "${a.id}" has a static property "${g}" defined but its lazy function is also returning a value for this property. The lazy route property "${g}" will be ignored.`):f[g]=y}Object.assign(a,f),Object.assign(a,{...n(a),lazy:void 0})})();return Kl.set(a,p),p.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:p}}let i=Object.keys(e.lazy),s=[],l;for(let u of i){if(o&&o.includes(u))continue;let p=Yu({key:u,route:e,manifest:r,mapRouteProperties:n});p&&(s.push(p),u===t&&(l=p))}let c=s.length>0?Promise.all(s).then(()=>{}):void 0;return c?.catch(()=>{}),l?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:l}}async function Ql(e){let t=e.matches.filter(o=>o.shouldLoad),r={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{r[t[a].route.id]=o}),r}async function _m(e){return e.matches.some(t=>t.route.unstable_middleware)?Ju(e,!1,()=>Ql(e),(t,r)=>({[r]:{type:"error",result:t}})):Ql(e)}async function Ju(e,t,r,n){let{matches:o,request:a,params:i,context:s}=e,l={handlerResult:void 0};try{let c=o.flatMap(p=>p.route.unstable_middleware?p.route.unstable_middleware.map(h=>[p.route.id,h]):[]),u=await Xu({request:a,params:i,context:s},c,t,l,r);return t?u:l.handlerResult}catch(c){if(!l.middlewareError)throw c;let u=await n(l.middlewareError.error,l.middlewareError.routeId);return l.handlerResult?Object.assign(l.handlerResult,u):u}}async function Xu(e,t,r,n,o,a=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason?i.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`);let s=t[a];if(!s)return n.handlerResult=await o(),n.handlerResult;let[l,c]=s,u=!1,p,h=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");u=!0,await Xu(e,t,r,n,o,a+1)};try{let f=await c({request:e.request,params:e.params,context:e.context},h);return u?f===void 0?p:f:h()}catch(f){throw n.middlewareError?n.middlewareError.error!==f&&(n.middlewareError={routeId:l,error:f}):n.middlewareError={routeId:l,error:f},f}}function Zu(e,t,r,n,o){let a=Yu({key:"unstable_middleware",route:n.route,manifest:t,mapRouteProperties:e}),i=Am(n.route,xt(r.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Xi(e,t,r,n,o,a,i,s=null){let l=!1,c=Zu(e,t,r,n,o);return{...n,_lazyPromises:c,shouldLoad:i,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler(u){return l=!0,s?typeof u=="boolean"?Pa(n,{...s,defaultShouldRevalidate:u}):Pa(n,s):i},resolve(u){return l||i||u&&r.method==="GET"&&(n.route.lazy||n.route.loader)?Lm({request:r,match:n,lazyHandlerPromise:c?.handler,lazyRoutePromise:c?.route,handlerOverride:u,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function In(e,t,r,n,o,a,i,s=null){return n.map(l=>l.route.id!==o.route.id?{...l,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:Zu(e,t,r,l,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Xi(e,t,r,l,a,i,!0,s))}async function Om(e,t,r,n,o,a){r.some(c=>c._lazyPromises?.middleware)&&await Promise.all(r.map(c=>c._lazyPromises?.middleware));let i={request:t,params:r[0].params,context:o,matches:r},l=await e({...i,fetcherKey:n,unstable_runClientMiddleware:c=>{let u=i;return Ju(u,!1,()=>c({...u,fetcherKey:n,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(p,h)=>({[h]:{type:"error",result:p}}))}});try{await Promise.all(r.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return l}async function Lm({request:e,match:t,lazyHandlerPromise:r,lazyRoutePromise:n,handlerOverride:o,scopedContext:a}){let i,s,l=xt(e.method),c=l?"action":"loader",u=p=>{let h,f=new Promise((v,b)=>h=b);s=()=>h(),e.signal.addEventListener("abort",s);let g=v=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${t.route.id}]`)):p({request:e,params:t.params,context:a},...v!==void 0?[v]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(b=>g(b)):g())}}catch(v){return{type:"error",result:v}}})();return Promise.race([y,f])};try{let p=l?t.route.action:t.route.loader;if(r||n)if(p){let h,[f]=await Promise.all([u(p).catch(g=>{h=g}),r,n]);if(h!==void 0)throw h;i=f}else{await r;let h=l?t.route.action:t.route.loader;if(h)[i]=await Promise.all([u(h),n]);else if(c==="action"){let f=new URL(e.url),g=f.pathname+f.search;throw Mt(405,{method:e.method,pathname:g,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(p)i=await u(p);else{let h=new URL(e.url),f=h.pathname+h.search;throw Mt(404,{pathname:f})}}catch(p){return{type:"error",result:p}}finally{s&&e.signal.removeEventListener("abort",s)}return i}async function $m(e){let{result:t,type:r}=e;if(td(t)){let n;try{let o=t.headers.get("Content-Type");o&&/\bapplication\/json\b/.test(o)?t.body==null?n=null:n=await t.json():n=await t.text()}catch(o){return{type:"error",error:o}}return r==="error"?{type:"error",error:new ka(t.status,t.statusText,n),statusCode:t.status,headers:t.headers}:{type:"data",data:n,statusCode:t.status,headers:t.headers}}return r==="error"?rc(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new ka(t.init?.status||500,void 0,t.data),statusCode:xo(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:xo(t)?t.status:void 0}:rc(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Dm(e,t,r,n,o){let a=e.headers.get("Location");if(me(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ls.test(a)){let i=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=Yi(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Yl(e,t,r){if(Ls.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),a=Bt(o.pathname,r)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Cn(e,t,r,n){let o=e.createURL(ed(t)).toString(),a={signal:r};if(n&&xt(n.formMethod)){let{formMethod:i,formEncType:s}=n;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Zi(n.formData):a.body=n.formData}return new Request(o,a)}function Zi(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Jl(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Bm(e,t,r,n=!1,o=!1){let a={},i=null,s,l=!1,c={},u=r&&bt(r[1])?r[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let h=p.route.id,f=t[h];if(me(!Ur(f),"Cannot handle redirect results in processLoaderData"),bt(f)){let g=f.error;if(u!==void 0&&(g=u,u=void 0),i=i||{},o)i[h]=g;else{let y=zr(e,h);i[y.route.id]==null&&(i[y.route.id]=g)}n||(a[h]=Ku),l||(l=!0,s=xo(f.error)?f.error.status:500),f.headers&&(c[h]=f.headers)}else a[h]=f.data,f.statusCode&&f.statusCode!==200&&!l&&(s=f.statusCode),f.headers&&(c[h]=f.headers)}),u!==void 0&&r&&(i={[r[0]]:u},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function Xl(e,t,r,n,o,a){let{loaderData:i,errors:s}=Bm(t,r,n);return o.filter(l=>!l.matches||l.matches.some(c=>c.shouldLoad)).forEach(l=>{let{key:c,match:u,controller:p}=l,h=a[c];if(me(h,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(bt(h)){let f=zr(e.matches,u?.route.id);s&&s[f.route.id]||(s={...s,[f.route.id]:h.error}),e.fetchers.delete(c)}else if(Ur(h))me(!1,"Unhandled fetcher revalidation redirect");else{let f=Pr(h.data);e.fetchers.set(c,f)}}),{loaderData:i,errors:s}}function Zl(e,t,r,n){let o=Object.entries(t).filter(([,a])=>a!==Ku).reduce((a,[i,s])=>(a[i]=s,a),{});for(let a of r){let i=a.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&a.route.loader&&(o[i]=e[i]),n&&n.hasOwnProperty(i))break}return o}function ec(e){return e?bt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function zr(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function tc(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Mt(e,{pathname:t,routeId:r,method:n,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s=`Route "${r}" does not match URL "${t}"`):e===404?(i="Not Found",s=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new ka(e||500,i,new Error(s),!0)}function Zo(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Ur(o))return{key:n,result:o}}}function ed(e){let t=typeof e=="string"?Ar(e):e;return Tr({...t,hash:""})}function qm(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Fm(e){return td(e.result)&&Pm.has(e.result.status)}function bt(e){return e.type==="error"}function Ur(e){return(e&&e.type)==="redirect"}function rc(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function td(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function zm(e){return km.has(e.toUpperCase())}function xt(e){return wm.has(e.toUpperCase())}function $s(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function oo(e,t){let r=typeof t=="string"?Ar(t).search:t.search;if(e[e.length-1].route.index&&$s(r||""))return e[e.length-1];let n=Hu(e);return n[n.length-1]}function nc(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function ji(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Um(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Jn(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Wm(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Pr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Hm(e,t){try{let r=e.sessionStorage.getItem(Gu);if(r){let n=JSON.parse(r);for(let[o,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function Vm(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(Gu,JSON.stringify(r))}catch(n){Ye(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}function Gm(){let e,t,r=new Promise((n,o)=>{e=async a=>{n(a);try{await r}catch{}},t=async a=>{o(a);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var rn=S.createContext(null);rn.displayName="DataRouter";var Ro=S.createContext(null);Ro.displayName="DataRouterState";var Ds=S.createContext({isTransitioning:!1});Ds.displayName="ViewTransition";var rd=S.createContext(new Map);rd.displayName="Fetchers";var Km=S.createContext(null);Km.displayName="Await";var nr=S.createContext(null);nr.displayName="Navigation";var Ga=S.createContext(null);Ga.displayName="Location";var Kt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Kt.displayName="Route";var Bs=S.createContext(null);Bs.displayName="RouteError";function Qm(e,{relative:t}={}){me(To(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=S.useContext(nr),{hash:o,pathname:a,search:i}=No(e,{relative:t}),s=a;return r!=="/"&&(s=a==="/"?r:rr([r,a])),n.createHref({pathname:s,search:i,hash:o})}function To(){return S.useContext(Ga)!=null}function nn(){return me(To(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Ga).location}var nd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function od(e){S.useContext(nr).static||S.useLayoutEffect(e)}function ad(){let{isDataRoute:e}=S.useContext(Kt);return e?uf():Ym()}function Ym(){me(To(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(rn),{basename:t,navigator:r}=S.useContext(nr),{matches:n}=S.useContext(Kt),{pathname:o}=nn(),a=JSON.stringify(_s(n)),i=S.useRef(!1);return od(()=>{i.current=!0}),S.useCallback((l,c={})=>{if(Ye(i.current,nd),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=Os(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:rr([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,a,o,e])}var Jm=S.createContext(null);function Xm(e){let t=S.useContext(Kt).outlet;return t&&S.createElement(Jm.Provider,{value:e},t)}function On(){let{matches:e}=S.useContext(Kt),t=e[e.length-1];return t?t.params:{}}function No(e,{relative:t}={}){let{matches:r}=S.useContext(Kt),{pathname:n}=nn(),o=JSON.stringify(_s(r));return S.useMemo(()=>Os(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}function Zm(e,t,r,n){me(To(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=S.useContext(nr),{matches:a}=S.useContext(Kt),i=a[a.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let b=u&&u.path||"";sd(l,!u||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+ */var Fu=e=>{throw TypeError(e)},Kh=(e,t,r)=>t.has(e)||Fu("Cannot "+r),ki=(e,t,r)=>(Kh(e,t,"read from private field"),r?r.call(e):t.get(e)),Qh=(e,t,r)=>t.has(e)?Fu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ql="popstate";function Yh(e={}){function t(n,o){let{pathname:a,search:i,hash:s}=n.location;return bo("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:Tr(o)}return Xh(t,r,null,e)}function me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ye(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Jh(){return Math.random().toString(36).substring(2,10)}function Fl(e,t){return{usr:e.state,key:e.key,idx:t}}function bo(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ar(t):t,state:r,key:t&&t.key||n||Jh()}}function Tr({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ar(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Xh(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s="POP",l=null,c=u();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function u(){return(i.state||{idx:null}).idx}function p(){s="POP";let v=u(),b=v==null?null:v-c;c=v,l&&l({action:s,location:y.location,delta:b})}function h(v,b){s="PUSH";let C=bo(y.location,v,b);c=u()+1;let w=Fl(C,c),k=y.createHref(C);try{i.pushState(w,"",k)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;o.location.assign(k)}a&&l&&l({action:s,location:y.location,delta:1})}function f(v,b){s="REPLACE";let C=bo(y.location,v,b);c=u();let w=Fl(C,c),k=y.createHref(C);i.replaceState(w,"",k),a&&l&&l({action:s,location:y.location,delta:0})}function g(v){return zu(v)}let y={get action(){return s},get location(){return e(o,i)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(ql,p),l=v,()=>{o.removeEventListener(ql,p),l=null}},createHref(v){return t(o,v)},createURL:g,encodeLocation(v){let b=g(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:f,go(v){return i.go(v)}};return y}function zu(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),me(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Tr(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}var no,zl=class{constructor(e){if(Qh(this,no,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(ki(this,no).has(e))return ki(this,no).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){ki(this,no).set(e,t)}};no=new WeakMap;var Zh=new Set(["lazy","caseSensitive","path","id","index","children"]);function em(e){return Zh.has(e)}var tm=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function rm(e){return tm.has(e)}function nm(e){return e.index===!0}function wa(e,t,r=[],n={}){return e.map((o,a)=>{let i=[...r,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if(me(o.index!==!0||!o.children,"Cannot specify children on an index route"),me(!n[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),nm(o)){let l={...o,...t(o),id:s};return n[s]=l,l}else{let l={...o,...t(o),id:s,children:void 0};return n[s]=l,o.children&&(l.children=wa(o.children,t,i,n)),l}})}function Ir(e,t,r="/"){return da(e,t,r,!1)}function da(e,t,r,n){let o=typeof t=="string"?Ar(t):t,a=Bt(o.pathname||"/",r);if(a==null)return null;let i=Uu(e);am(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let c=gm(a);s=mm(i[l],c,n)}return s}function om(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}function Uu(e,t=[],r=[],n=""){let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(me(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length));let c=rr([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&(me(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Uu(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:pm(c,a.index),routesMeta:u})};return e.forEach((a,i)=>{if(a.path===""||!a.path?.includes("?"))o(a,i);else for(let s of Wu(a.path))o(a,i,s)}),t}function Wu(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=Wu(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function am(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hm(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var im=/^:[\w-]+$/,sm=3,lm=2,cm=1,um=10,dm=-2,Ul=e=>e==="*";function pm(e,t){let r=e.split("/"),n=r.length;return r.some(Ul)&&(n+=dm),t&&(n+=lm),r.filter(o=>!Ul(o)).reduce((o,a)=>o+(im.test(a)?sm:a===""?cm:um),n)}function hm(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function mm(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",p=Ca({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!p&&c&&r&&!n[n.length-1].route.index&&(p=Ca({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!p)return null;Object.assign(o,p.params),i.push({params:o,pathname:rr([a,p.pathname]),pathnameBase:xm(rr([a,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(a=rr([a,p.pathnameBase]))}return i}function Ca(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=fm(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((c,{paramName:u,isOptional:p},h)=>{if(u==="*"){let g=s[h]||"";i=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const f=s[h];return p&&!f?c[u]=void 0:c[u]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function fm(e,t=!1,r=!0){Ye(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function gm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ye(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Bt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function ym(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Ar(e):e;return{pathname:r?r.startsWith("/")?r:bm(r,t):t,search:vm(n),hash:Sm(o)}}function bm(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Pi(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hu(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _s(e){let t=Hu(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Os(e,t,r,n=!1){let o;typeof e=="string"?o=Ar(e):(o={...e},me(!o.pathname||!o.pathname.includes("?"),Pi("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),Pi("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),Pi("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let p=t.length-1;if(!n&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}s=p>=0?t[p]:"/"}let l=ym(o,s),c=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var rr=e=>e.join("/").replace(/\/\/+/g,"/"),xm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Sm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ka=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function xo(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Vu=["POST","PUT","PATCH","DELETE"],wm=new Set(Vu),Cm=["GET",...Vu],km=new Set(Cm),Pm=new Set([301,302,303,307,308]),Im=new Set([307,308]),Ii={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jm={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yn={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ls=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Em=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Gu="remix-router-transitions",Ku=Symbol("ResetLoaderData");function Rm(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";me(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],o=e.mapRouteProperties||Em,a={},i=wa(e.routes,o,void 0,a),s,l=e.basename||"/",c=e.dataStrategy||_m,u={unstable_middleware:!1,...e.future},p=null,h=new Set,f=null,g=null,y=null,v=e.hydrationData!=null,b=Ir(i,e.history.location,l),C=!1,w=null,k;if(b==null&&!e.patchRoutesOnNavigation){let I=Mt(404,{pathname:e.history.location.pathname}),{matches:E,route:N}=tc(i);k=!0,b=E,w={[N.id]:I}}else if(b&&!e.hydrationData&&Qo(b,i,e.history.location.pathname).active&&(b=null),b)if(b.some(I=>I.route.lazy))k=!1;else if(!b.some(I=>I.route.loader))k=!0;else{let I=e.hydrationData?e.hydrationData.loaderData:null,E=e.hydrationData?e.hydrationData.errors:null;if(E){let N=b.findIndex(z=>E[z.route.id]!==void 0);k=b.slice(0,N+1).every(z=>!Ji(z.route,I,E))}else k=b.every(N=>!Ji(N.route,I,E))}else{k=!1,b=[];let I=Qo(null,i,e.history.location.pathname);I.active&&I.matches&&(C=!0,b=I.matches)}let j,P={historyAction:e.history.action,location:e.history.location,matches:b,initialized:k,navigation:Ii,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},B="POP",F=!1,L,m=!1,R=new Map,D=null,$=!1,H=!1,X=new Set,V=new Map,ce=0,K=-1,se=new Map,Z=new Set,J=new Map,W=new Map,O=new Set,q=new Map,oe,Pe=null;function it(){if(p=e.history.listen(({action:I,location:E,delta:N})=>{if(oe){oe(),oe=void 0;return}Ye(q.size===0||N!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let z=Ol({currentLocation:P.location,nextLocation:E,historyAction:I});if(z&&N!=null){let G=new Promise(te=>{oe=te});e.history.go(N*-1),Ko(z,{state:"blocked",location:E,proceed(){Ko(z,{state:"proceeding",proceed:void 0,reset:void 0,location:E}),G.then(()=>e.history.go(N))},reset(){let te=new Map(P.blockers);te.set(z,Yn),Ae({blockers:te})}});return}return dt(I,E)}),r){Hm(t,R);let I=()=>Vm(t,R);t.addEventListener("pagehide",I),D=()=>t.removeEventListener("pagehide",I)}return P.initialized||dt("POP",P.location,{initialHydration:!0}),j}function ht(){p&&p(),D&&D(),h.clear(),L&&L.abort(),P.fetchers.forEach((I,E)=>Un(E)),P.blockers.forEach((I,E)=>ge(E))}function Me(I){return h.add(I),()=>h.delete(I)}function Ae(I,E={}){P={...P,...I};let N=[],z=[];P.fetchers.forEach((G,te)=>{G.state==="idle"&&(O.has(te)?N.push(te):z.push(te))}),O.forEach(G=>{!P.fetchers.has(G)&&!V.has(G)&&N.push(G)}),[...h].forEach(G=>G(P,{deletedFetchers:N,viewTransitionOpts:E.viewTransitionOpts,flushSync:E.flushSync===!0})),N.forEach(G=>Un(G)),z.forEach(G=>P.fetchers.delete(G))}function jt(I,E,{flushSync:N}={}){let z=P.actionData!=null&&P.navigation.formMethod!=null&&xt(P.navigation.formMethod)&&P.navigation.state==="loading"&&I.state?._isRedirect!==!0,G;E.actionData?Object.keys(E.actionData).length>0?G=E.actionData:G=null:z?G=P.actionData:G=null;let te=E.loaderData?Zl(P.loaderData,E.loaderData,E.matches||[],E.errors):P.loaderData,ie=P.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((ee,ue)=>ie.set(ue,Yn)));let Q=F===!0||P.navigation.formMethod!=null&&xt(P.navigation.formMethod)&&I.state?._isRedirect!==!0;s&&(i=s,s=void 0),$||B==="POP"||(B==="PUSH"?e.history.push(I,I.state):B==="REPLACE"&&e.history.replace(I,I.state));let re;if(B==="POP"){let ee=R.get(P.location.pathname);ee&&ee.has(I.pathname)?re={currentLocation:P.location,nextLocation:I}:R.has(I.pathname)&&(re={currentLocation:I,nextLocation:P.location})}else if(m){let ee=R.get(P.location.pathname);ee?ee.add(I.pathname):(ee=new Set([I.pathname]),R.set(P.location.pathname,ee)),re={currentLocation:P.location,nextLocation:I}}Ae({...E,actionData:G,loaderData:te,historyAction:B,location:I,initialized:!0,navigation:Ii,revalidation:"idle",restoreScrollPosition:$l(I,E.matches||P.matches),preventScrollReset:Q,blockers:ie},{viewTransitionOpts:re,flushSync:N===!0}),B="POP",F=!1,m=!1,$=!1,H=!1,Pe?.resolve(),Pe=null}async function xr(I,E){if(typeof I=="number"){e.history.go(I);return}let N=Yi(P.location,P.matches,l,I,E?.fromRouteId,E?.relative),{path:z,submission:G,error:te}=Wl(!1,N,E),ie=P.location,Q=bo(P.location,z,E&&E.state);Q={...Q,...e.history.encodeLocation(Q)};let re=E&&E.replace!=null?E.replace:void 0,ee="PUSH";re===!0?ee="REPLACE":re===!1||G!=null&&xt(G.formMethod)&&G.formAction===P.location.pathname+P.location.search&&(ee="REPLACE");let ue=E&&"preventScrollReset"in E?E.preventScrollReset===!0:void 0,le=(E&&E.flushSync)===!0,he=Ol({currentLocation:ie,nextLocation:Q,historyAction:ee});if(he){Ko(he,{state:"blocked",location:Q,proceed(){Ko(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),xr(I,E)},reset(){let Ie=new Map(P.blockers);Ie.set(he,Yn),Ae({blockers:Ie})}});return}await dt(ee,Q,{submission:G,pendingError:te,preventScrollReset:ue,replace:E&&E.replace,enableViewTransition:E&&E.viewTransition,flushSync:le})}function Wt(){Pe||(Pe=Gm()),wr(),Ae({revalidation:"loading"});let I=Pe.promise;return P.navigation.state==="submitting"?I:P.navigation.state==="idle"?(dt(P.historyAction,P.location,{startUninterruptedRevalidation:!0}),I):(dt(B||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:m===!0}),I)}async function dt(I,E,N){L&&L.abort(),L=null,B=I,$=(N&&N.startUninterruptedRevalidation)===!0,Lh(P.location,P.matches),F=(N&&N.preventScrollReset)===!0,m=(N&&N.enableViewTransition)===!0;let z=s||i,G=N&&N.overrideNavigation,te=N?.initialHydration&&P.matches&&P.matches.length>0&&!C?P.matches:Ir(z,E,l),ie=(N&&N.flushSync)===!0;if(te&&P.initialized&&!H&&qm(P.location,E)&&!(N&&N.submission&&xt(N.submission.formMethod))){jt(E,{matches:te},{flushSync:ie});return}let Q=Qo(te,z,E.pathname);if(Q.active&&Q.matches&&(te=Q.matches),!te){let{error:st,notFoundMatches:gt,route:ye}=Si(E.pathname);jt(E,{matches:gt,loaderData:{},errors:{[ye.id]:st}},{flushSync:ie});return}L=new AbortController;let re=kn(e.history,E,L.signal,N&&N.submission),ee=new zl(e.unstable_getContext?await e.unstable_getContext():void 0),ue;if(N&&N.pendingError)ue=[zr(te).route.id,{type:"error",error:N.pendingError}];else if(N&&N.submission&&xt(N.submission.formMethod)){let st=await Lr(re,E,N.submission,te,ee,Q.active,N&&N.initialHydration===!0,{replace:N.replace,flushSync:ie});if(st.shortCircuited)return;if(st.pendingActionResult){let[gt,ye]=st.pendingActionResult;if(bt(ye)&&xo(ye.error)&&ye.error.status===404){L=null,jt(E,{matches:st.matches,loaderData:{},errors:{[gt]:ye.error}});return}}te=st.matches||te,ue=st.pendingActionResult,G=ji(E,N.submission),ie=!1,Q.active=!1,re=kn(e.history,re.url,re.signal)}let{shortCircuited:le,matches:he,loaderData:Ie,errors:Xe}=await Qt(re,E,te,ee,Q.active,G,N&&N.submission,N&&N.fetcherSubmission,N&&N.replace,N&&N.initialHydration===!0,ie,ue);le||(L=null,jt(E,{matches:he||te,...ec(ue),loaderData:Ie,errors:Xe}))}async function Lr(I,E,N,z,G,te,ie,Q={}){wr();let re=Um(E,N);if(Ae({navigation:re},{flushSync:Q.flushSync===!0}),te){let le=await Yo(z,E.pathname,I.signal);if(le.type==="aborted")return{shortCircuited:!0};if(le.type==="error"){let he=zr(le.partialMatches).route.id;return{matches:le.partialMatches,pendingActionResult:[he,{type:"error",error:le.error}]}}else if(le.matches)z=le.matches;else{let{notFoundMatches:he,error:Ie,route:Xe}=Si(E.pathname);return{matches:he,pendingActionResult:[Xe.id,{type:"error",error:Ie}]}}}let ee,ue=oo(z,E);if(!ue.route.action&&!ue.route.lazy)ee={type:"error",error:Mt(405,{method:I.method,pathname:E.pathname,routeId:ue.route.id})};else{let le=jn(o,a,I,z,ue,ie?[]:n,G),he=await $r(I,le,G,null);if(ee=he[ue.route.id],!ee){for(let Ie of z)if(he[Ie.route.id]){ee=he[Ie.route.id];break}}if(I.signal.aborted)return{shortCircuited:!0}}if(Ur(ee)){let le;return Q&&Q.replace!=null?le=Q.replace:le=Yl(ee.response.headers.get("Location"),new URL(I.url),l)===P.location.pathname+P.location.search,await ne(I,ee,!0,{submission:N,replace:le}),{shortCircuited:!0}}if(bt(ee)){let le=zr(z,ue.route.id);return(Q&&Q.replace)!==!0&&(B="PUSH"),{matches:z,pendingActionResult:[le.route.id,ee,ue.route.id]}}return{matches:z,pendingActionResult:[ue.route.id,ee]}}async function Qt(I,E,N,z,G,te,ie,Q,re,ee,ue,le){let he=te||ji(E,ie),Ie=ie||Q||nc(he),Xe=!$&&!ee;if(G){if(Xe){let Rt=ot(le);Ae({navigation:he,...Rt!==void 0?{actionData:Rt}:{}},{flushSync:ue})}let be=await Yo(N,E.pathname,I.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){let Rt=zr(be.partialMatches).route.id;return{matches:be.partialMatches,loaderData:{},errors:{[Rt]:be.error}}}else if(be.matches)N=be.matches;else{let{error:Rt,notFoundMatches:Cr,route:Xo}=Si(E.pathname);return{matches:Cr,loaderData:{},errors:{[Xo.id]:Rt}}}}let st=s||i,{dsMatches:gt,revalidatingFetchers:ye}=Hl(I,z,o,a,e.history,P,N,Ie,E,ee?[]:n,ee===!0,H,X,O,J,Z,st,l,e.patchRoutesOnNavigation!=null,le);if(K=++ce,!e.dataStrategy&&!gt.some(be=>be.shouldLoad)&&ye.length===0){let be=Vo();return jt(E,{matches:N,loaderData:{},errors:le&&bt(le[1])?{[le[0]]:le[1].error}:null,...ec(le),...be?{fetchers:new Map(P.fetchers)}:{}},{flushSync:ue}),{shortCircuited:!0}}if(Xe){let be={};if(!G){be.navigation=he;let Rt=ot(le);Rt!==void 0&&(be.actionData=Rt)}ye.length>0&&(be.fetchers=Ht(ye)),Ae(be,{flushSync:ue})}ye.forEach(be=>{ft(be.key),be.controller&&V.set(be.key,be.controller)});let Hn=()=>ye.forEach(be=>ft(be.key));L&&L.signal.addEventListener("abort",Hn);let{loaderResults:Dr,fetcherResults:Vn}=await Uo(gt,ye,I,z);if(I.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Hn),ye.forEach(be=>V.delete(be.key));let Et=Zo(Dr);if(Et)return await ne(I,Et.result,!0,{replace:re}),{shortCircuited:!0};if(Et=Zo(Vn),Et)return Z.add(Et.key),await ne(I,Et.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:Gn,errors:Kn}=Xl(P,N,Dr,le,ye,Vn);ee&&P.errors&&(Kn={...P.errors,...Kn});let wi=Vo(),Br=Wn(K),Jo=wi||Br||ye.length>0;return{matches:N,loaderData:Gn,errors:Kn,...Jo?{fetchers:new Map(P.fetchers)}:{}}}function ot(I){if(I&&!bt(I[1]))return{[I[0]]:I[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function Ht(I){return I.forEach(E=>{let N=P.fetchers.get(E.key),z=Jn(void 0,N?N.data:void 0);P.fetchers.set(E.key,z)}),new Map(P.fetchers)}async function vr(I,E,N,z){ft(I);let G=(z&&z.flushSync)===!0,te=s||i,ie=Yi(P.location,P.matches,l,N,E,z?.relative),Q=Ir(te,ie,l),re=Qo(Q,te,ie);if(re.active&&re.matches&&(Q=re.matches),!Q){Vt(I,E,Mt(404,{pathname:ie}),{flushSync:G});return}let{path:ee,submission:ue,error:le}=Wl(!0,ie,z);if(le){Vt(I,E,le,{flushSync:G});return}let he=oo(Q,ee),Ie=new zl(e.unstable_getContext?await e.unstable_getContext():void 0),Xe=(z&&z.preventScrollReset)===!0;if(ue&&xt(ue.formMethod)){await Sr(I,E,ee,he,Q,Ie,re.active,G,Xe,ue);return}J.set(I,{routeId:E,path:ee}),await ae(I,E,ee,he,Q,Ie,re.active,G,Xe,ue)}async function Sr(I,E,N,z,G,te,ie,Q,re,ee){wr(),J.delete(I);function ue(Ue){if(!Ue.route.action&&!Ue.route.lazy){let un=Mt(405,{method:ee.formMethod,pathname:N,routeId:E});return Vt(I,E,un,{flushSync:Q}),!0}return!1}if(!ie&&ue(z))return;let le=P.fetchers.get(I);Yt(I,Wm(ee,le),{flushSync:Q});let he=new AbortController,Ie=kn(e.history,N,he.signal,ee);if(ie){let Ue=await Yo(G,N,Ie.signal,I);if(Ue.type==="aborted")return;if(Ue.type==="error"){Vt(I,E,Ue.error,{flushSync:Q});return}else if(Ue.matches){if(G=Ue.matches,z=oo(G,N),ue(z))return}else{Vt(I,E,Mt(404,{pathname:N}),{flushSync:Q});return}}V.set(I,he);let Xe=ce,st=jn(o,a,Ie,G,z,n,te),ye=(await $r(Ie,st,te,I))[z.route.id];if(Ie.signal.aborted){V.get(I)===he&&V.delete(I);return}if(O.has(I)){if(Ur(ye)||bt(ye)){Yt(I,Pr(void 0));return}}else{if(Ur(ye))if(V.delete(I),K>Xe){Yt(I,Pr(void 0));return}else return Z.add(I),Yt(I,Jn(ee)),ne(Ie,ye,!1,{fetcherSubmission:ee,preventScrollReset:re});if(bt(ye)){Vt(I,E,ye.error);return}}let Hn=P.navigation.location||P.location,Dr=kn(e.history,Hn,he.signal),Vn=s||i,Et=P.navigation.state!=="idle"?Ir(Vn,P.navigation.location,l):P.matches;me(Et,"Didn't find any matches after fetcher action");let Gn=++ce;se.set(I,Gn);let Kn=Jn(ee,ye.data);P.fetchers.set(I,Kn);let{dsMatches:wi,revalidatingFetchers:Br}=Hl(Dr,te,o,a,e.history,P,Et,ee,Hn,n,!1,H,X,O,J,Z,Vn,l,e.patchRoutesOnNavigation!=null,[z.route.id,ye]);Br.filter(Ue=>Ue.key!==I).forEach(Ue=>{let un=Ue.key,Dl=P.fetchers.get(un),Bh=Jn(void 0,Dl?Dl.data:void 0);P.fetchers.set(un,Bh),ft(un),Ue.controller&&V.set(un,Ue.controller)}),Ae({fetchers:new Map(P.fetchers)});let Jo=()=>Br.forEach(Ue=>ft(Ue.key));he.signal.addEventListener("abort",Jo);let{loaderResults:be,fetcherResults:Rt}=await Uo(wi,Br,Dr,te);if(he.signal.aborted)return;if(he.signal.removeEventListener("abort",Jo),se.delete(I),V.delete(I),Br.forEach(Ue=>V.delete(Ue.key)),P.fetchers.has(I)){let Ue=Pr(ye.data);P.fetchers.set(I,Ue)}let Cr=Zo(be);if(Cr)return ne(Dr,Cr.result,!1,{preventScrollReset:re});if(Cr=Zo(Rt),Cr)return Z.add(Cr.key),ne(Dr,Cr.result,!1,{preventScrollReset:re});let{loaderData:Xo,errors:Ci}=Xl(P,Et,be,void 0,Br,Rt);Wn(Gn),P.navigation.state==="loading"&&Gn>K?(me(B,"Expected pending action"),L&&L.abort(),jt(P.navigation.location,{matches:Et,loaderData:Xo,errors:Ci,fetchers:new Map(P.fetchers)})):(Ae({errors:Ci,loaderData:Zl(P.loaderData,Xo,Et,Ci),fetchers:new Map(P.fetchers)}),H=!1)}async function ae(I,E,N,z,G,te,ie,Q,re,ee){let ue=P.fetchers.get(I);Yt(I,Jn(ee,ue?ue.data:void 0),{flushSync:Q});let le=new AbortController,he=kn(e.history,N,le.signal);if(ie){let ye=await Yo(G,N,he.signal,I);if(ye.type==="aborted")return;if(ye.type==="error"){Vt(I,E,ye.error,{flushSync:Q});return}else if(ye.matches)G=ye.matches,z=oo(G,N);else{Vt(I,E,Mt(404,{pathname:N}),{flushSync:Q});return}}V.set(I,le);let Ie=ce,Xe=jn(o,a,he,G,z,n,te),gt=(await $r(he,Xe,te,I))[z.route.id];if(V.get(I)===le&&V.delete(I),!he.signal.aborted){if(O.has(I)){Yt(I,Pr(void 0));return}if(Ur(gt))if(K>Ie){Yt(I,Pr(void 0));return}else{Z.add(I),await ne(he,gt,!1,{preventScrollReset:re});return}if(bt(gt)){Vt(I,E,gt.error);return}Yt(I,Pr(gt.data))}}async function ne(I,E,N,{submission:z,fetcherSubmission:G,preventScrollReset:te,replace:ie}={}){E.response.headers.has("X-Remix-Revalidate")&&(H=!0);let Q=E.response.headers.get("Location");me(Q,"Expected a Location header on the redirect Response"),Q=Yl(Q,new URL(I.url),l);let re=bo(P.location,Q,{_isRedirect:!0});if(r){let Xe=!1;if(E.response.headers.has("X-Remix-Reload-Document"))Xe=!0;else if(Ls.test(Q)){const st=zu(Q,!0);Xe=st.origin!==t.location.origin||Bt(st.pathname,l)==null}if(Xe){ie?t.location.replace(Q):t.location.assign(Q);return}}L=null;let ee=ie===!0||E.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ue,formAction:le,formEncType:he}=P.navigation;!z&&!G&&ue&&le&&he&&(z=nc(P.navigation));let Ie=z||G;if(Im.has(E.response.status)&&Ie&&xt(Ie.formMethod))await dt(ee,re,{submission:{...Ie,formAction:Q},preventScrollReset:te||F,enableViewTransition:N?m:void 0});else{let Xe=ji(re,z);await dt(ee,re,{overrideNavigation:Xe,fetcherSubmission:G,preventScrollReset:te||F,enableViewTransition:N?m:void 0})}}async function $r(I,E,N,z){let G,te={};try{G=await Om(c,I,E,z,N,!1)}catch(ie){return E.filter(Q=>Q.shouldLoad).forEach(Q=>{te[Q.route.id]={type:"error",error:ie}}),te}if(I.signal.aborted)return te;for(let[ie,Q]of Object.entries(G))if(Fm(Q)){let re=Q.result;te[ie]={type:"redirect",response:Dm(re,I,ie,E,l)}}else te[ie]=await $m(Q);return te}async function Uo(I,E,N,z){let G=$r(N,I,z,null),te=Promise.all(E.map(async re=>{if(re.matches&&re.match&&re.request&&re.controller){let ue=(await $r(re.request,re.matches,z,re.key))[re.match.route.id];return{[re.key]:ue}}else return Promise.resolve({[re.key]:{type:"error",error:Mt(404,{pathname:re.path})}})})),ie=await G,Q=(await te).reduce((re,ee)=>Object.assign(re,ee),{});return{loaderResults:ie,fetcherResults:Q}}function wr(){H=!0,J.forEach((I,E)=>{V.has(E)&&X.add(E),ft(E)})}function Yt(I,E,N={}){P.fetchers.set(I,E),Ae({fetchers:new Map(P.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function Vt(I,E,N,z={}){let G=zr(P.matches,E);Un(I),Ae({errors:{[G.route.id]:N},fetchers:new Map(P.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function Wo(I){return W.set(I,(W.get(I)||0)+1),O.has(I)&&O.delete(I),P.fetchers.get(I)||jm}function Un(I){let E=P.fetchers.get(I);V.has(I)&&!(E&&E.state==="loading"&&se.has(I))&&ft(I),J.delete(I),se.delete(I),Z.delete(I),O.delete(I),X.delete(I),P.fetchers.delete(I)}function vi(I){let E=(W.get(I)||0)-1;E<=0?(W.delete(I),O.add(I)):W.set(I,E),Ae({fetchers:new Map(P.fetchers)})}function ft(I){let E=V.get(I);E&&(E.abort(),V.delete(I))}function Ho(I){for(let E of I){let N=Wo(E),z=Pr(N.data);P.fetchers.set(E,z)}}function Vo(){let I=[],E=!1;for(let N of Z){let z=P.fetchers.get(N);me(z,`Expected fetcher: ${N}`),z.state==="loading"&&(Z.delete(N),I.push(N),E=!0)}return Ho(I),E}function Wn(I){let E=[];for(let[N,z]of se)if(z<I){let G=P.fetchers.get(N);me(G,`Expected fetcher: ${N}`),G.state==="loading"&&(ft(N),se.delete(N),E.push(N))}return Ho(E),E.length>0}function Go(I,E){let N=P.blockers.get(I)||Yn;return q.get(I)!==E&&q.set(I,E),N}function ge(I){P.blockers.delete(I),q.delete(I)}function Ko(I,E){let N=P.blockers.get(I)||Yn;me(N.state==="unblocked"&&E.state==="blocked"||N.state==="blocked"&&E.state==="blocked"||N.state==="blocked"&&E.state==="proceeding"||N.state==="blocked"&&E.state==="unblocked"||N.state==="proceeding"&&E.state==="unblocked",`Invalid blocker state transition: ${N.state} -> ${E.state}`);let z=new Map(P.blockers);z.set(I,E),Ae({blockers:z})}function Ol({currentLocation:I,nextLocation:E,historyAction:N}){if(q.size===0)return;q.size>1&&Ye(!1,"A router only supports one blocker at a time");let z=Array.from(q.entries()),[G,te]=z[z.length-1],ie=P.blockers.get(G);if(!(ie&&ie.state==="proceeding")&&te({currentLocation:I,nextLocation:E,historyAction:N}))return G}function Si(I){let E=Mt(404,{pathname:I}),N=s||i,{matches:z,route:G}=tc(N);return{notFoundMatches:z,route:G,error:E}}function Oh(I,E,N){if(f=I,y=E,g=N||null,!v&&P.navigation===Ii){v=!0;let z=$l(P.location,P.matches);z!=null&&Ae({restoreScrollPosition:z})}return()=>{f=null,y=null,g=null}}function Ll(I,E){return g&&g(I,E.map(z=>om(z,P.loaderData)))||I.key}function Lh(I,E){if(f&&y){let N=Ll(I,E);f[N]=y()}}function $l(I,E){if(f){let N=Ll(I,E),z=f[N];if(typeof z=="number")return z}return null}function Qo(I,E,N){if(e.patchRoutesOnNavigation)if(I){if(Object.keys(I[0].params).length>0)return{active:!0,matches:da(E,N,l,!0)}}else return{active:!0,matches:da(E,N,l,!0)||[]};return{active:!1,matches:null}}async function Yo(I,E,N,z){if(!e.patchRoutesOnNavigation)return{type:"success",matches:I};let G=I;for(;;){let te=s==null,ie=s||i,Q=a;try{await e.patchRoutesOnNavigation({signal:N,path:E,matches:G,fetcherKey:z,patch:(ue,le)=>{N.aborted||Vl(ue,le,ie,Q,o)}})}catch(ue){return{type:"error",error:ue,partialMatches:G}}finally{te&&!N.aborted&&(i=[...i])}if(N.aborted)return{type:"aborted"};let re=Ir(ie,E,l);if(re)return{type:"success",matches:re};let ee=da(ie,E,l,!0);if(!ee||G.length===ee.length&&G.every((ue,le)=>ue.route.id===ee[le].route.id))return{type:"success",matches:null};G=ee}}function $h(I){a={},s=wa(I,o,void 0,a)}function Dh(I,E){let N=s==null;Vl(I,E,s||i,a,o),N&&(i=[...i],Ae({}))}return j={get basename(){return l},get future(){return u},get state(){return P},get routes(){return i},get window(){return t},initialize:it,subscribe:Me,enableScrollRestoration:Oh,navigate:xr,fetch:vr,revalidate:Wt,createHref:I=>e.history.createHref(I),encodeLocation:I=>e.history.encodeLocation(I),getFetcher:Wo,deleteFetcher:vi,dispose:ht,getBlocker:Go,deleteBlocker:ge,patchRoutes:Dh,_internalFetchControllers:V,_internalSetRoutes:$h},j}function Tm(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Yi(e,t,r,n,o,a){let i,s;if(o){i=[];for(let c of t)if(i.push(c),c.route.id===o){s=c;break}}else i=t,s=t[t.length-1];let l=Os(n||".",_s(i),Bt(e.pathname,r)||e.pathname,a==="path");if(n==null&&(l.search=e.search,l.hash=e.hash),(n==null||n===""||n===".")&&s){let c=$s(l.search);if(s.route.index&&!c)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&c){let u=new URLSearchParams(l.search),p=u.getAll("index");u.delete("index"),p.filter(f=>f).forEach(f=>u.append("index",f));let h=u.toString();l.search=h?`?${h}`:""}}return r!=="/"&&(l.pathname=l.pathname==="/"?r:rr([r,l.pathname])),Tr(l)}function Wl(e,t,r){if(!r||!Tm(r))return{path:t};if(r.formMethod&&!zm(r.formMethod))return{path:t,error:Mt(405,{method:r.formMethod})};let n=()=>({path:t,error:Mt(400,{type:"invalid-body"})}),a=(r.formMethod||"get").toUpperCase(),i=ed(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!xt(a))return n();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,[f,g])=>`${h}${f}=${g}
11
+ `,""):String(r.body);return{path:t,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!xt(a))return n();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return n()}}}me(typeof FormData=="function","FormData is not available in this environment");let s,l;if(r.formData)s=Zi(r.formData),l=r.formData;else if(r.body instanceof FormData)s=Zi(r.body),l=r.body;else if(r.body instanceof URLSearchParams)s=r.body,l=Jl(s);else if(r.body==null)s=new URLSearchParams,l=new FormData;else try{s=new URLSearchParams(r.body),l=Jl(s)}catch{return n()}let c={formMethod:a,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(xt(c.formMethod))return{path:t,submission:c};let u=Ar(t);return e&&u.search&&$s(u.search)&&s.append("index",""),u.search=`?${s}`,{path:Tr(u),submission:c}}function Hl(e,t,r,n,o,a,i,s,l,c,u,p,h,f,g,y,v,b,C,w){let k=w?bt(w[1])?w[1].error:w[1].data:void 0,j=o.createURL(a.location),P=o.createURL(l),B;if(u&&a.errors){let $=Object.keys(a.errors)[0];B=i.findIndex(H=>H.route.id===$)}else if(w&&bt(w[1])){let $=w[0];B=i.findIndex(H=>H.route.id===$)-1}let F=w?w[1].statusCode:void 0,L=F&&F>=400,m={currentUrl:j,currentParams:a.matches[0]?.params||{},nextUrl:P,nextParams:i[0].params,...s,actionResult:k,actionStatus:F},R=i.map(($,H)=>{let{route:X}=$,V=null;if(B!=null&&H>B?V=!1:X.lazy?V=!0:X.loader==null?V=!1:u?V=Ji(X,a.loaderData,a.errors):Nm(a.loaderData,a.matches[H],$)&&(V=!0),V!==null)return Xi(r,n,e,$,c,t,V);let ce=L?!1:p||j.pathname+j.search===P.pathname+P.search||j.search!==P.search||Mm(a.matches[H],$),K={...m,defaultShouldRevalidate:ce},se=Pa($,K);return Xi(r,n,e,$,c,t,se,K)}),D=[];return g.forEach(($,H)=>{if(u||!i.some(W=>W.route.id===$.routeId)||f.has(H))return;let X=a.fetchers.get(H),V=X&&X.state!=="idle"&&X.data===void 0,ce=Ir(v,$.path,b);if(!ce){if(C&&V)return;D.push({key:H,routeId:$.routeId,path:$.path,matches:null,match:null,request:null,controller:null});return}if(y.has(H))return;let K=oo(ce,$.path),se=new AbortController,Z=kn(o,$.path,se.signal),J=null;if(h.has(H))h.delete(H),J=jn(r,n,Z,ce,K,c,t);else if(V)p&&(J=jn(r,n,Z,ce,K,c,t));else{let W={...m,defaultShouldRevalidate:L?!1:p};Pa(K,W)&&(J=jn(r,n,Z,ce,K,c,t,W))}J&&D.push({key:H,routeId:$.routeId,path:$.path,matches:J,match:K,request:Z,controller:se})}),{dsMatches:R,revalidatingFetchers:D}}function Ji(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&e.id in t,o=r!=null&&r[e.id]!==void 0;return!n&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!o}function Nm(e,t,r){let n=!t||r.route.id!==t.route.id,o=!e.hasOwnProperty(r.route.id);return n||o}function Mm(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Pa(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Vl(e,t,r,n,o){let a;if(e){let l=n[e];me(l,`No route found to patch children into: routeId = ${e}`),l.children||(l.children=[]),a=l.children}else a=r;let i=t.filter(l=>!a.some(c=>Qu(l,c))),s=wa(i,o,[e||"_","patch",String(a?.length||"0")],n);a.push(...s)}function Qu(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>t.children?.some(o=>Qu(r,o))):!1}var Gl=new WeakMap,Yu=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let o=r[t.id];if(me(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let i=Gl.get(o);i||(i={},Gl.set(o,i));let s=i[e];if(s)return s;let l=(async()=>{let c=em(e),p=o[e]!==void 0&&e!=="hasErrorBoundary";if(c)Ye(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(p)Ye(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let h=await a();h!=null&&(Object.assign(o,{[e]:h}),Object.assign(o,n(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(h=>h===void 0)&&(o.lazy=void 0))})();return i[e]=l,l},Kl=new WeakMap;function Am(e,t,r,n,o){let a=r[e.id];if(me(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let u=Kl.get(a);if(u)return{lazyRoutePromise:u,lazyHandlerPromise:u};let p=(async()=>{me(typeof e.lazy=="function","No lazy route function found");let h=await e.lazy(),f={};for(let g in h){let y=h[g];if(y===void 0)continue;let v=rm(g),C=a[g]!==void 0&&g!=="hasErrorBoundary";v?Ye(!v,"Route property "+g+" is not a supported property to be returned from a lazy route function. This property will be ignored."):C?Ye(!C,`Route "${a.id}" has a static property "${g}" defined but its lazy function is also returning a value for this property. The lazy route property "${g}" will be ignored.`):f[g]=y}Object.assign(a,f),Object.assign(a,{...n(a),lazy:void 0})})();return Kl.set(a,p),p.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:p}}let i=Object.keys(e.lazy),s=[],l;for(let u of i){if(o&&o.includes(u))continue;let p=Yu({key:u,route:e,manifest:r,mapRouteProperties:n});p&&(s.push(p),u===t&&(l=p))}let c=s.length>0?Promise.all(s).then(()=>{}):void 0;return c?.catch(()=>{}),l?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:l}}async function Ql(e){let t=e.matches.filter(o=>o.shouldLoad),r={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{r[t[a].route.id]=o}),r}async function _m(e){return e.matches.some(t=>t.route.unstable_middleware)?Ju(e,!1,()=>Ql(e),(t,r)=>({[r]:{type:"error",result:t}})):Ql(e)}async function Ju(e,t,r,n){let{matches:o,request:a,params:i,context:s}=e,l={handlerResult:void 0};try{let c=o.flatMap(p=>p.route.unstable_middleware?p.route.unstable_middleware.map(h=>[p.route.id,h]):[]),u=await Xu({request:a,params:i,context:s},c,t,l,r);return t?u:l.handlerResult}catch(c){if(!l.middlewareError)throw c;let u=await n(l.middlewareError.error,l.middlewareError.routeId);return l.handlerResult?Object.assign(l.handlerResult,u):u}}async function Xu(e,t,r,n,o,a=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason?i.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`);let s=t[a];if(!s)return n.handlerResult=await o(),n.handlerResult;let[l,c]=s,u=!1,p,h=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");u=!0,await Xu(e,t,r,n,o,a+1)};try{let f=await c({request:e.request,params:e.params,context:e.context},h);return u?f===void 0?p:f:h()}catch(f){throw n.middlewareError?n.middlewareError.error!==f&&(n.middlewareError={routeId:l,error:f}):n.middlewareError={routeId:l,error:f},f}}function Zu(e,t,r,n,o){let a=Yu({key:"unstable_middleware",route:n.route,manifest:t,mapRouteProperties:e}),i=Am(n.route,xt(r.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Xi(e,t,r,n,o,a,i,s=null){let l=!1,c=Zu(e,t,r,n,o);return{...n,_lazyPromises:c,shouldLoad:i,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler(u){return l=!0,s?typeof u=="boolean"?Pa(n,{...s,defaultShouldRevalidate:u}):Pa(n,s):i},resolve(u){return l||i||u&&r.method==="GET"&&(n.route.lazy||n.route.loader)?Lm({request:r,match:n,lazyHandlerPromise:c?.handler,lazyRoutePromise:c?.route,handlerOverride:u,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function jn(e,t,r,n,o,a,i,s=null){return n.map(l=>l.route.id!==o.route.id?{...l,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:Zu(e,t,r,l,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Xi(e,t,r,l,a,i,!0,s))}async function Om(e,t,r,n,o,a){r.some(c=>c._lazyPromises?.middleware)&&await Promise.all(r.map(c=>c._lazyPromises?.middleware));let i={request:t,params:r[0].params,context:o,matches:r},l=await e({...i,fetcherKey:n,unstable_runClientMiddleware:c=>{let u=i;return Ju(u,!1,()=>c({...u,fetcherKey:n,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(p,h)=>({[h]:{type:"error",result:p}}))}});try{await Promise.all(r.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return l}async function Lm({request:e,match:t,lazyHandlerPromise:r,lazyRoutePromise:n,handlerOverride:o,scopedContext:a}){let i,s,l=xt(e.method),c=l?"action":"loader",u=p=>{let h,f=new Promise((v,b)=>h=b);s=()=>h(),e.signal.addEventListener("abort",s);let g=v=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${t.route.id}]`)):p({request:e,params:t.params,context:a},...v!==void 0?[v]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(b=>g(b)):g())}}catch(v){return{type:"error",result:v}}})();return Promise.race([y,f])};try{let p=l?t.route.action:t.route.loader;if(r||n)if(p){let h,[f]=await Promise.all([u(p).catch(g=>{h=g}),r,n]);if(h!==void 0)throw h;i=f}else{await r;let h=l?t.route.action:t.route.loader;if(h)[i]=await Promise.all([u(h),n]);else if(c==="action"){let f=new URL(e.url),g=f.pathname+f.search;throw Mt(405,{method:e.method,pathname:g,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(p)i=await u(p);else{let h=new URL(e.url),f=h.pathname+h.search;throw Mt(404,{pathname:f})}}catch(p){return{type:"error",result:p}}finally{s&&e.signal.removeEventListener("abort",s)}return i}async function $m(e){let{result:t,type:r}=e;if(td(t)){let n;try{let o=t.headers.get("Content-Type");o&&/\bapplication\/json\b/.test(o)?t.body==null?n=null:n=await t.json():n=await t.text()}catch(o){return{type:"error",error:o}}return r==="error"?{type:"error",error:new ka(t.status,t.statusText,n),statusCode:t.status,headers:t.headers}:{type:"data",data:n,statusCode:t.status,headers:t.headers}}return r==="error"?rc(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new ka(t.init?.status||500,void 0,t.data),statusCode:xo(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:xo(t)?t.status:void 0}:rc(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Dm(e,t,r,n,o){let a=e.headers.get("Location");if(me(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ls.test(a)){let i=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=Yi(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function Yl(e,t,r){if(Ls.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),a=Bt(o.pathname,r)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function kn(e,t,r,n){let o=e.createURL(ed(t)).toString(),a={signal:r};if(n&&xt(n.formMethod)){let{formMethod:i,formEncType:s}=n;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Zi(n.formData):a.body=n.formData}return new Request(o,a)}function Zi(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Jl(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Bm(e,t,r,n=!1,o=!1){let a={},i=null,s,l=!1,c={},u=r&&bt(r[1])?r[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let h=p.route.id,f=t[h];if(me(!Ur(f),"Cannot handle redirect results in processLoaderData"),bt(f)){let g=f.error;if(u!==void 0&&(g=u,u=void 0),i=i||{},o)i[h]=g;else{let y=zr(e,h);i[y.route.id]==null&&(i[y.route.id]=g)}n||(a[h]=Ku),l||(l=!0,s=xo(f.error)?f.error.status:500),f.headers&&(c[h]=f.headers)}else a[h]=f.data,f.statusCode&&f.statusCode!==200&&!l&&(s=f.statusCode),f.headers&&(c[h]=f.headers)}),u!==void 0&&r&&(i={[r[0]]:u},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function Xl(e,t,r,n,o,a){let{loaderData:i,errors:s}=Bm(t,r,n);return o.filter(l=>!l.matches||l.matches.some(c=>c.shouldLoad)).forEach(l=>{let{key:c,match:u,controller:p}=l,h=a[c];if(me(h,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(bt(h)){let f=zr(e.matches,u?.route.id);s&&s[f.route.id]||(s={...s,[f.route.id]:h.error}),e.fetchers.delete(c)}else if(Ur(h))me(!1,"Unhandled fetcher revalidation redirect");else{let f=Pr(h.data);e.fetchers.set(c,f)}}),{loaderData:i,errors:s}}function Zl(e,t,r,n){let o=Object.entries(t).filter(([,a])=>a!==Ku).reduce((a,[i,s])=>(a[i]=s,a),{});for(let a of r){let i=a.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&a.route.loader&&(o[i]=e[i]),n&&n.hasOwnProperty(i))break}return o}function ec(e){return e?bt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function zr(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function tc(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Mt(e,{pathname:t,routeId:r,method:n,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s=`Route "${r}" does not match URL "${t}"`):e===404?(i="Not Found",s=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new ka(e||500,i,new Error(s),!0)}function Zo(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Ur(o))return{key:n,result:o}}}function ed(e){let t=typeof e=="string"?Ar(e):e;return Tr({...t,hash:""})}function qm(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Fm(e){return td(e.result)&&Pm.has(e.result.status)}function bt(e){return e.type==="error"}function Ur(e){return(e&&e.type)==="redirect"}function rc(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function td(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function zm(e){return km.has(e.toUpperCase())}function xt(e){return wm.has(e.toUpperCase())}function $s(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function oo(e,t){let r=typeof t=="string"?Ar(t).search:t.search;if(e[e.length-1].route.index&&$s(r||""))return e[e.length-1];let n=Hu(e);return n[n.length-1]}function nc(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function ji(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Um(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Jn(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Wm(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Pr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Hm(e,t){try{let r=e.sessionStorage.getItem(Gu);if(r){let n=JSON.parse(r);for(let[o,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function Vm(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(Gu,JSON.stringify(r))}catch(n){Ye(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}function Gm(){let e,t,r=new Promise((n,o)=>{e=async a=>{n(a);try{await r}catch{}},t=async a=>{o(a);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var rn=S.createContext(null);rn.displayName="DataRouter";var Ro=S.createContext(null);Ro.displayName="DataRouterState";var Ds=S.createContext({isTransitioning:!1});Ds.displayName="ViewTransition";var rd=S.createContext(new Map);rd.displayName="Fetchers";var Km=S.createContext(null);Km.displayName="Await";var nr=S.createContext(null);nr.displayName="Navigation";var Ga=S.createContext(null);Ga.displayName="Location";var Kt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Kt.displayName="Route";var Bs=S.createContext(null);Bs.displayName="RouteError";function Qm(e,{relative:t}={}){me(To(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=S.useContext(nr),{hash:o,pathname:a,search:i}=No(e,{relative:t}),s=a;return r!=="/"&&(s=a==="/"?r:rr([r,a])),n.createHref({pathname:s,search:i,hash:o})}function To(){return S.useContext(Ga)!=null}function nn(){return me(To(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Ga).location}var nd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function od(e){S.useContext(nr).static||S.useLayoutEffect(e)}function ad(){let{isDataRoute:e}=S.useContext(Kt);return e?uf():Ym()}function Ym(){me(To(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(rn),{basename:t,navigator:r}=S.useContext(nr),{matches:n}=S.useContext(Kt),{pathname:o}=nn(),a=JSON.stringify(_s(n)),i=S.useRef(!1);return od(()=>{i.current=!0}),S.useCallback((l,c={})=>{if(Ye(i.current,nd),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=Os(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:rr([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,a,o,e])}var Jm=S.createContext(null);function Xm(e){let t=S.useContext(Kt).outlet;return t&&S.createElement(Jm.Provider,{value:e},t)}function on(){let{matches:e}=S.useContext(Kt),t=e[e.length-1];return t?t.params:{}}function No(e,{relative:t}={}){let{matches:r}=S.useContext(Kt),{pathname:n}=nn(),o=JSON.stringify(_s(r));return S.useMemo(()=>Os(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}function Zm(e,t,r,n){me(To(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=S.useContext(nr),{matches:a}=S.useContext(Kt),i=a[a.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let b=u&&u.path||"";sd(l,!u||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
12
12
 
13
13
  Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let p=nn(),h;h=p;let f=h.pathname||"/",g=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");g="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=Ir(e,{pathname:g});return Ye(u||y!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Ye(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),of(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:rr([c,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:rr([c,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,r,n)}function ef(){let e=id(),t=xo(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:a},"ErrorBoundary")," or"," ",S.createElement("code",{style:a},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:o},r):null,i)}var tf=S.createElement(ef,null),rf=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(Kt.Provider,{value:this.props.routeContext},S.createElement(Bs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function nf({routeContext:e,match:t,children:r}){let n=S.useContext(rn);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Kt.Provider,{value:e},r)}function of(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=r?.errors;if(a!=null){let l=o.findIndex(c=>c.route.id&&a?.[c.route.id]!==void 0);me(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let i=!1,s=-1;if(r)for(let l=0;l<o.length;l++){let c=o[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(s=l),c.route.id){let{loaderData:u,errors:p}=r,h=c.route.loader&&!u.hasOwnProperty(c.route.id)&&(!p||p[c.route.id]===void 0);if(c.route.lazy||h){i=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((l,c,u)=>{let p,h=!1,f=null,g=null;r&&(p=a&&c.route.id?a[c.route.id]:void 0,f=c.route.errorElement||tf,i&&(s<0&&u===0?(sd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,g=null):s===u&&(h=!0,g=c.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,u+1)),v=()=>{let b;return p?b=f:h?b=g:c.route.Component?b=S.createElement(c.route.Component,null):c.route.element?b=c.route.element:b=l,S.createElement(nf,{match:c,routeContext:{outlet:l,matches:y,isDataRoute:r!=null},children:b})};return r&&(c.route.ErrorBoundary||c.route.errorElement||u===0)?S.createElement(rf,{location:r.location,revalidation:r.revalidation,component:f,error:p,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}function qs(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function af(e){let t=S.useContext(rn);return me(t,qs(e)),t}function sf(e){let t=S.useContext(Ro);return me(t,qs(e)),t}function lf(e){let t=S.useContext(Kt);return me(t,qs(e)),t}function Fs(e){let t=lf(e),r=t.matches[t.matches.length-1];return me(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function cf(){return Fs("useRouteId")}function id(){let e=S.useContext(Bs),t=sf("useRouteError"),r=Fs("useRouteError");return e!==void 0?e:t.errors?.[r]}function uf(){let{router:e}=af("useNavigate"),t=Fs("useNavigate"),r=S.useRef(!1);return od(()=>{r.current=!0}),S.useCallback(async(o,a={})=>{Ye(r.current,nd),r.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var oc={};function sd(e,t,r){!t&&!oc[e]&&(oc[e]=!0,Ye(!1,r))}var ac={};function ic(e,t){!e&&!ac[t]&&(ac[t]=!0,console.warn(t))}function df(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Ye(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:S.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Ye(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Ye(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var pf=["HydrateFallback","hydrateFallbackElement"],hf=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function mf({router:e,flushSync:t}){let[r,n]=S.useState(e.state),[o,a]=S.useState(),[i,s]=S.useState({isTransitioning:!1}),[l,c]=S.useState(),[u,p]=S.useState(),[h,f]=S.useState(),g=S.useRef(new Map),y=S.useCallback((w,{deletedFetchers:k,flushSync:j,viewTransitionOpts:P})=>{w.fetchers.forEach((F,L)=>{F.data!==void 0&&g.current.set(L,F.data)}),k.forEach(F=>g.current.delete(F)),ic(j===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let B=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(ic(P==null||B,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!P||!B){t&&j?t(()=>n(w)):S.startTransition(()=>n(w));return}if(t&&j){t(()=>{u&&(l&&l.resolve(),u.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let F=e.window.document.startViewTransition(()=>{t(()=>n(w))});F.finished.finally(()=>{t(()=>{c(void 0),p(void 0),a(void 0),s({isTransitioning:!1})})}),t(()=>p(F));return}u?(l&&l.resolve(),u.skipTransition(),f({state:w,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(a(w),s({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[e.window,t,u,l]);S.useLayoutEffect(()=>e.subscribe(y),[e,y]),S.useEffect(()=>{i.isTransitioning&&!i.flushSync&&c(new hf)},[i]),S.useEffect(()=>{if(l&&o&&e.window){let w=o,k=l.promise,j=e.window.document.startViewTransition(async()=>{S.startTransition(()=>n(w)),await k});j.finished.finally(()=>{c(void 0),p(void 0),a(void 0),s({isTransitioning:!1})}),p(j)}},[o,l,e.window]),S.useEffect(()=>{l&&o&&r.location.key===o.location.key&&l.resolve()},[l,u,r.location,o]),S.useEffect(()=>{!i.isTransitioning&&h&&(a(h.state),s({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),f(void 0))},[i.isTransitioning,h]);let v=S.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,k,j)=>e.navigate(w,{state:k,preventScrollReset:j?.preventScrollReset}),replace:(w,k,j)=>e.navigate(w,{replace:!0,state:k,preventScrollReset:j?.preventScrollReset})}),[e]),b=e.basename||"/",C=S.useMemo(()=>({router:e,navigator:v,static:!1,basename:b}),[e,v,b]);return S.createElement(S.Fragment,null,S.createElement(rn.Provider,{value:C},S.createElement(Ro.Provider,{value:r},S.createElement(rd.Provider,{value:g.current},S.createElement(Ds.Provider,{value:i},S.createElement(bf,{basename:b,location:r.location,navigationType:r.historyAction,navigator:v},S.createElement(ff,{routes:e.routes,future:e.future,state:r})))))),null)}var ff=S.memo(gf);function gf({routes:e,future:t,state:r}){return Zm(e,void 0,r,t)}function yf(e){return Xm(e.context)}function bf({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:a=!1}){me(!To(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=S.useMemo(()=>({basename:i,navigator:o,static:a,future:{}}),[i,o,a]);typeof r=="string"&&(r=Ar(r));let{pathname:l="/",search:c="",hash:u="",state:p=null,key:h="default"}=r,f=S.useMemo(()=>{let g=Bt(l,i);return g==null?null:{location:{pathname:g,search:c,hash:u,state:p,key:h},navigationType:n}},[i,l,c,u,p,h,n]);return Ye(f!=null,`<Router basename="${i}"> is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the <Router> won't render anything.`),f==null?null:S.createElement(nr.Provider,{value:s},S.createElement(Ga.Provider,{children:t,value:f}))}var pa="get",ha="application/x-www-form-urlencoded";function Ka(e){return e!=null&&typeof e.tagName=="string"}function xf(e){return Ka(e)&&e.tagName.toLowerCase()==="button"}function vf(e){return Ka(e)&&e.tagName.toLowerCase()==="form"}function Sf(e){return Ka(e)&&e.tagName.toLowerCase()==="input"}function wf(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Cf(e,t){return e.button===0&&(!t||t==="_self")&&!wf(e)}var ea=null;function kf(){if(ea===null)try{new FormData(document.createElement("form"),0),ea=!1}catch{ea=!0}return ea}var Pf=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ei(e){return e!=null&&!Pf.has(e)?(Ye(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ha}"`),null):e}function If(e,t){let r,n,o,a,i;if(vf(e)){let s=e.getAttribute("action");n=s?Bt(s,t):null,r=e.getAttribute("method")||pa,o=Ei(e.getAttribute("enctype"))||ha,a=new FormData(e)}else if(xf(e)||Sf(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(n=l?Bt(l,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||pa,o=Ei(e.getAttribute("formenctype"))||Ei(s.getAttribute("enctype"))||ha,a=new FormData(s,e),!kf()){let{name:c,type:u,value:p}=e;if(u==="image"){let h=c?`${c}.`:"";a.append(`${h}x`,"0"),a.append(`${h}y`,"0")}else c&&a.append(c,p)}}else{if(Ka(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=pa,n=null,o=ha,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}function zs(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function jf(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ef(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Rf(e,t,r){let n=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let i=await jf(a,r);return i.links?i.links():[]}return[]}));return Af(n.flat(1).filter(Ef).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function sc(e,t,r,n,o,a){let i=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,s=(l,c)=>r[c].pathname!==l.pathname||r[c].route.path?.endsWith("*")&&r[c].params["*"]!==l.params["*"];return a==="assets"?t.filter((l,c)=>i(l,c)||s(l,c)):a==="data"?t.filter((l,c)=>{let u=n.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(i(l,c)||s(l,c))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Tf(e,t,{includeHydrateFallback:r}={}){return Nf(e.map(n=>{let o=t.routes[n.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function Nf(e){return[...new Set(e)]}function Mf(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Af(e,t){let r=new Set;return new Set(t),e.reduce((n,o)=>{let a=JSON.stringify(Mf(o));return r.has(a)||(r.add(a),n.push({key:a,link:o})),n},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _f=new Set([100,101,204,205]);function Of(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&Bt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function ld(){let e=S.useContext(rn);return zs(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Lf(){let e=S.useContext(Ro);return zs(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Us=S.createContext(void 0);Us.displayName="FrameworkContext";function cd(){let e=S.useContext(Us);return zs(e,"You must render this element inside a <HydratedRouter> element"),e}function $f(e,t){let r=S.useContext(Us),[n,o]=S.useState(!1),[a,i]=S.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:p}=t,h=S.useRef(null);S.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let y=b=>{b.forEach(C=>{i(C.isIntersecting)})},v=new IntersectionObserver(y,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),S.useEffect(()=>{if(n){let y=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(y)}}},[n]);let f=()=>{o(!0)},g=()=>{o(!1),i(!1)};return r?e!=="intent"?[a,h,{}]:[a,h,{onFocus:Xn(s,f),onBlur:Xn(l,g),onMouseEnter:Xn(c,f),onMouseLeave:Xn(u,g),onTouchStart:Xn(p,f)}]:[!1,h,{}]}function Xn(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Df({page:e,...t}){let{router:r}=ld(),n=S.useMemo(()=>Ir(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?S.createElement(qf,{page:e,matches:n,...t}):null}function Bf(e){let{manifest:t,routeModules:r}=cd(),[n,o]=S.useState([]);return S.useEffect(()=>{let a=!1;return Rf(e,t,r).then(i=>{a||o(i)}),()=>{a=!0}},[e,t,r]),n}function qf({page:e,matches:t,...r}){let n=nn(),{manifest:o,routeModules:a}=cd(),{basename:i}=ld(),{loaderData:s,matches:l}=Lf(),c=S.useMemo(()=>sc(e,t,l,o,n,"data"),[e,t,l,o,n]),u=S.useMemo(()=>sc(e,t,l,o,n,"assets"),[e,t,l,o,n]),p=S.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let g=new Set,y=!1;if(t.forEach(b=>{let C=o.routes[b.route.id];!C||!C.hasLoader||(!c.some(w=>w.route.id===b.route.id)&&b.route.id in s&&a[b.route.id]?.shouldRevalidate||C.hasClientLoader?y=!0:g.add(b.route.id))}),g.size===0)return[];let v=Of(e,i);return y&&g.size>0&&v.searchParams.set("_routes",t.filter(b=>g.has(b.route.id)).map(b=>b.route.id).join(",")),[v.pathname+v.search]},[i,s,n,o,c,t,e,a]),h=S.useMemo(()=>Tf(u,o),[u,o]),f=Bf(u);return S.createElement(S.Fragment,null,p.map(g=>S.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),h.map(g=>S.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),f.map(({key:g,link:y})=>S.createElement("link",{key:g,...y})))}function Ff(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var ud=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ud&&(window.__reactRouterVersion="7.6.2")}catch{}function zf(e,t){return Rm({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:Yh({window:t?.window}),hydrationData:Uf(),routes:e,mapRouteProperties:df,hydrationRouteProperties:pf,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Uf(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Wf(e.errors)}),e}function Wf(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new ka(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let a=new Error(o.message);a.stack="",r[n]=a}}else r[n]=o;return r}var dd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pd=S.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:a,replace:i,state:s,target:l,to:c,preventScrollReset:u,viewTransition:p,...h},f){let{basename:g}=S.useContext(nr),y=typeof c=="string"&&dd.test(c),v,b=!1;if(typeof c=="string"&&y&&(v=c,ud))try{let L=new URL(window.location.href),m=c.startsWith("//")?new URL(L.protocol+c):new URL(c),R=Bt(m.pathname,g);m.origin===L.origin&&R!=null?c=R+m.search+m.hash:b=!0}catch{Ye(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=Qm(c,{relative:o}),[w,k,j]=$f(n,h),P=Kf(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:p});function B(L){t&&t(L),L.defaultPrevented||P(L)}let F=S.createElement("a",{...h,...j,href:v||C,onClick:b||a?t:B,ref:Ff(f,k),target:l,"data-discover":!y&&r==="render"?"true":void 0});return w&&!y?S.createElement(S.Fragment,null,F,S.createElement(Df,{page:C})):F});pd.displayName="Link";var Hf=S.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:a,to:i,viewTransition:s,children:l,...c},u){let p=No(i,{relative:c.relative}),h=nn(),f=S.useContext(Ro),{navigator:g,basename:y}=S.useContext(nr),v=f!=null&&Zf(p)&&s===!0,b=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,C=h.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(C=C.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&y&&(w=Bt(w,y)||w);const k=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let j=C===b||!o&&C.startsWith(b)&&C.charAt(k)==="/",P=w!=null&&(w===b||!o&&w.startsWith(b)&&w.charAt(b.length)==="/"),B={isActive:j,isPending:P,isTransitioning:v},F=j?t:void 0,L;typeof n=="function"?L=n(B):L=[n,j?"active":null,P?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let m=typeof a=="function"?a(B):a;return S.createElement(pd,{...c,"aria-current":F,className:L,ref:u,style:m,to:i,viewTransition:s},typeof l=="function"?l(B):l)});Hf.displayName="NavLink";var Vf=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:a,method:i=pa,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:p,...h},f)=>{let g=Jf(),y=Xf(s,{relative:c}),v=i.toLowerCase()==="get"?"get":"post",b=typeof s=="string"&&dd.test(s),C=w=>{if(l&&l(w),w.defaultPrevented)return;w.preventDefault();let k=w.nativeEvent.submitter,j=k?.getAttribute("formmethod")||i;g(k||w.currentTarget,{fetcherKey:t,method:j,navigate:r,replace:o,state:a,relative:c,preventScrollReset:u,viewTransition:p})};return S.createElement("form",{ref:f,method:v,action:y,onSubmit:n?l:C,...h,"data-discover":!b&&e==="render"?"true":void 0})});Vf.displayName="Form";function Gf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hd(e){let t=S.useContext(rn);return me(t,Gf(e)),t}function Kf(e,{target:t,replace:r,state:n,preventScrollReset:o,relative:a,viewTransition:i}={}){let s=ad(),l=nn(),c=No(e,{relative:a});return S.useCallback(u=>{if(Cf(u,t)){u.preventDefault();let p=r!==void 0?r:Tr(l)===Tr(c);s(e,{replace:p,state:n,preventScrollReset:o,relative:a,viewTransition:i})}},[l,s,c,r,n,t,e,o,a,i])}var Qf=0,Yf=()=>`__${String(++Qf)}__`;function Jf(){let{router:e}=hd("useSubmit"),{basename:t}=S.useContext(nr),r=cf();return S.useCallback(async(n,o={})=>{let{action:a,method:i,encType:s,formData:l,body:c}=If(n,t);if(o.navigate===!1){let u=o.fetcherKey||Yf();await e.fetch(u,r,o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||i,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,r])}function Xf(e,{relative:t}={}){let{basename:r}=S.useContext(nr),n=S.useContext(Kt);me(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={...No(e||".",{relative:t})},i=nn();if(e==null){a.search=i.search;let s=new URLSearchParams(a.search),l=s.getAll("index");if(l.some(u=>u==="")){s.delete("index"),l.filter(p=>p).forEach(p=>s.append("index",p));let u=s.toString();a.search=u?`?${u}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:rr([r,a.pathname])),Tr(a)}function Zf(e,t={}){let r=S.useContext(Ds);me(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=hd("useViewTransitionState"),o=No(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=Bt(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=Bt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ca(o.pathname,i)!=null||Ca(o.pathname,a)!=null}[..._f];/**
14
14
  * react-router v7.6.2
@@ -27,16 +27,16 @@ Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}
27
27
  *
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
- */var fc;function lg(){if(fc)return xe;fc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case r:case o:case n:case l:case c:case h:return y;default:switch(y=y&&y.$$typeof,y){case i:case s:case p:case u:return y;case a:return y;default:return v}}case t:return v}}}return xe.ContextConsumer=a,xe.ContextProvider=i,xe.Element=e,xe.ForwardRef=s,xe.Fragment=r,xe.Lazy=p,xe.Memo=u,xe.Portal=t,xe.Profiler=o,xe.StrictMode=n,xe.Suspense=l,xe.SuspenseList=c,xe.isContextConsumer=function(y){return g(y)===a},xe.isContextProvider=function(y){return g(y)===i},xe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},xe.isForwardRef=function(y){return g(y)===s},xe.isFragment=function(y){return g(y)===r},xe.isLazy=function(y){return g(y)===p},xe.isMemo=function(y){return g(y)===u},xe.isPortal=function(y){return g(y)===t},xe.isProfiler=function(y){return g(y)===o},xe.isStrictMode=function(y){return g(y)===n},xe.isSuspense=function(y){return g(y)===l},xe.isSuspenseList=function(y){return g(y)===c},xe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===l||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===u||y.$$typeof===i||y.$$typeof===a||y.$$typeof===s||y.$$typeof===f||y.getModuleId!==void 0)},xe.typeOf=g,xe}var gc;function cg(){return gc||(gc=1,mc.exports=lg()),mc.exports}var fd=cg();function dr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gd(e){if(S.isValidElement(e)||fd.isValidElementType(e)||!dr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=gd(e[r])}),t}function wt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return dr(e)&&dr(t)&&Object.keys(t).forEach(o=>{S.isValidElement(t[o])||fd.isValidElementType(t[o])?n[o]=t[o]:dr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&dr(e[o])?n[o]=wt(e[o],t[o],r):r.clone?n[o]=dr(t[o])?gd(t[o]):t[o]:n[o]=t[o]}),n}function po(e,t){return t?wt(e,t,{clone:!1}):e}function ug(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function dg(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function pg(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function hg(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const Qa={xs:0,sm:600,md:900,lg:1200,xl:1536},yc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qa[e]}px)`},mg={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Qa[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function gr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||yc;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=n.breakpoints||yc;return Object.keys(t).reduce((a,i)=>{if(dg(o.keys,i)){const s=pg(n.containerQueries?n:mg,i);s&&(a[s]=r(t[i],i))}else if(Object.keys(o.values||Qa).includes(i)){const s=o.up(i);a[s]=r(t[i],i)}else{const s=i;a[s]=t[s]}return a},{})}return r(t)}function fg(e={}){return e.keys?.reduce((t,r)=>{const n=e.up(r);return t[n]={},t},{})||{}}function gg(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Ya(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ia(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ya(e,r)||n,t&&(o=t(o,n,e)),o}function Fe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Ya(l,n)||{};return gr(i,s,u=>{let p=Ia(c,o,u);return u===p&&typeof u=="string"&&(p=Ia(c,o,`${t}${u==="default"?"":Gt(u)}`,u)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function yg(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const bg={m:"margin",p:"padding"},xg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vg=yg(e=>{if(e.length>2)if(bc[e])e=bc[e];else return[e];const[t,r]=e.split(""),n=bg[t],o=xg[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Ws=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ws,...Hs];function Ao(e,t,r,n){const o=Ya(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function Vs(e){return Ao(e,"spacing",8)}function _o(e,t){return typeof t=="string"||t==null?t:e(t)}function Sg(e,t){return r=>e.reduce((n,o)=>(n[o]=_o(t,r),n),{})}function wg(e,t,r,n){if(!t.includes(r))return null;const o=vg(r),a=Sg(o,n),i=e[r];return gr(e,i,a)}function yd(e,t){const r=Vs(e.theme);return Object.keys(e).map(n=>wg(e,t,n,r)).reduce(po,{})}function _e(e){return yd(e,Ws)}_e.propTypes={};_e.filterProps=Ws;function Oe(e){return yd(e,Hs)}Oe.propTypes={};Oe.filterProps=Hs;function Ja(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?po(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ot(e){return typeof e!="number"?e:`${e}px solid`}function qt(e,t){return Fe({prop:e,themeKey:"borders",transform:t})}const Cg=qt("border",Ot),kg=qt("borderTop",Ot),Pg=qt("borderRight",Ot),Ig=qt("borderBottom",Ot),jg=qt("borderLeft",Ot),Eg=qt("borderColor"),Rg=qt("borderTopColor"),Tg=qt("borderRightColor"),Ng=qt("borderBottomColor"),Mg=qt("borderLeftColor"),Ag=qt("outline",Ot),_g=qt("outlineColor"),Xa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ao(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:_o(t,n)});return gr(e,e.borderRadius,r)}return null};Xa.propTypes={};Xa.filterProps=["borderRadius"];Ja(Cg,kg,Pg,Ig,jg,Eg,Rg,Tg,Ng,Mg,Xa,Ag,_g);const Za=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ao(e.theme,"spacing",8),r=n=>({gap:_o(t,n)});return gr(e,e.gap,r)}return null};Za.propTypes={};Za.filterProps=["gap"];const ei=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ao(e.theme,"spacing",8),r=n=>({columnGap:_o(t,n)});return gr(e,e.columnGap,r)}return null};ei.propTypes={};ei.filterProps=["columnGap"];const ti=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ao(e.theme,"spacing",8),r=n=>({rowGap:_o(t,n)});return gr(e,e.rowGap,r)}return null};ti.propTypes={};ti.filterProps=["rowGap"];const Og=Fe({prop:"gridColumn"}),Lg=Fe({prop:"gridRow"}),$g=Fe({prop:"gridAutoFlow"}),Dg=Fe({prop:"gridAutoColumns"}),Bg=Fe({prop:"gridAutoRows"}),qg=Fe({prop:"gridTemplateColumns"}),Fg=Fe({prop:"gridTemplateRows"}),zg=Fe({prop:"gridTemplateAreas"}),Ug=Fe({prop:"gridArea"});Ja(Za,ei,ti,Og,Lg,$g,Dg,Bg,qg,Fg,zg,Ug);function jn(e,t){return t==="grey"?t:e}const Wg=Fe({prop:"color",themeKey:"palette",transform:jn}),Hg=Fe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jn}),Vg=Fe({prop:"backgroundColor",themeKey:"palette",transform:jn});Ja(Wg,Hg,Vg);function vt(e){return e<=1&&e!==0?`${e*100}%`:e}const Gg=Fe({prop:"width",transform:vt}),Gs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Qa[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:vt(r)}};return gr(e,e.maxWidth,t)}return null};Gs.filterProps=["maxWidth"];const Kg=Fe({prop:"minWidth",transform:vt}),Qg=Fe({prop:"height",transform:vt}),Yg=Fe({prop:"maxHeight",transform:vt}),Jg=Fe({prop:"minHeight",transform:vt});Fe({prop:"size",cssProperty:"width",transform:vt});Fe({prop:"size",cssProperty:"height",transform:vt});const Xg=Fe({prop:"boxSizing"});Ja(Gg,Gs,Kg,Qg,Yg,Jg,Xg);const ri={border:{themeKey:"borders",transform:Ot},borderTop:{themeKey:"borders",transform:Ot},borderRight:{themeKey:"borders",transform:Ot},borderBottom:{themeKey:"borders",transform:Ot},borderLeft:{themeKey:"borders",transform:Ot},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ot},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xa},color:{themeKey:"palette",transform:jn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jn},backgroundColor:{themeKey:"palette",transform:jn},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Za},rowGap:{style:ti},columnGap:{style:ei},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vt},maxWidth:{style:Gs},minWidth:{transform:vt},height:{transform:vt},maxHeight:{transform:vt},minHeight:{transform:vt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zg(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ey(e,t){return typeof e=="function"?e(t):e}function ty(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:p}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const h=Ya(o,c)||{};return p?p(i):gr(i,n,f=>{let g=Ia(h,u,f);return f===g&&typeof f=="string"&&(g=Ia(h,u,`${r}${f==="default"?"":Gt(f)}`,f)),l===!1?g:{[l]:g}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??ri;function i(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=fg(o.breakpoints),u=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const f=ey(l[h],o);if(f!=null)if(typeof f=="object")if(a[h])p=po(p,e(h,f,o,a));else{const g=gr({theme:o},f,y=>({[h]:y}));Zg(g,f)?p[h]=t({sx:f,theme:o}):p=po(p,g)}else p=po(p,e(h,f,o,a))}),ug(o,gg(u,p))}return Array.isArray(n)?n.map(i):i(n)}return t}const Mn=ty();Mn.filterProps=["sx"];function ry(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ks(e,t=0,r=1){return ry(e,t,r)}function ny(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Nr(e){if(e.type)return e;if(e.charAt(0)==="#")return Nr(ny(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Jr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Jr(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const oy=e=>{const t=Nr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ao=(e,t)=>{try{return oy(e)}catch{return e}};function ni(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function bd(e){e=Nr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,u=(c+r/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ni({type:s,values:l})}function es(e){e=Nr(e);let t=e.type==="hsl"||e.type==="hsla"?Nr(bd(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ay(e,t){const r=es(e),n=es(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ts(e,t){return e=Nr(e),t=Ks(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ni(e)}function ta(e,t,r){try{return ts(e,t)}catch{return e}}function Qs(e,t){if(e=Nr(e),t=Ks(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ni(e)}function Se(e,t,r){try{return Qs(e,t)}catch{return e}}function Ys(e,t){if(e=Nr(e),t=Ks(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ni(e)}function we(e,t,r){try{return Ys(e,t)}catch{return e}}function iy(e,t=.15){return es(e)>.5?Qs(e,t):Ys(e,t)}function ra(e,t,r){try{return iy(e,t)}catch{return e}}const vo={black:"#000",white:"#fff"},sy={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},dn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},pn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Zn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},hn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},mn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},fn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function xd(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vo.white,default:vo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ly=xd();function vd(){return{text:{primary:vo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:vo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const xc=vd();function vc(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ys(e.main,o):t==="dark"&&(e.dark=Qs(e.main,a)))}function cy(e="light"){return e==="dark"?{main:hn[200],light:hn[50],dark:hn[400]}:{main:hn[700],light:hn[400],dark:hn[800]}}function uy(e="light"){return e==="dark"?{main:dn[200],light:dn[50],dark:dn[400]}:{main:dn[500],light:dn[300],dark:dn[700]}}function dy(e="light"){return e==="dark"?{main:pn[500],light:pn[300],dark:pn[700]}:{main:pn[700],light:pn[400],dark:pn[800]}}function py(e="light"){return e==="dark"?{main:mn[400],light:mn[300],dark:mn[700]}:{main:mn[700],light:mn[500],dark:mn[900]}}function hy(e="light"){return e==="dark"?{main:fn[400],light:fn[300],dark:fn[700]}:{main:fn[800],light:fn[500],dark:fn[900]}}function my(e="light"){return e==="dark"?{main:Zn[400],light:Zn[300],dark:Zn[700]}:{main:"#ed6c02",light:Zn[500],dark:Zn[900]}}function Js(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,a=e.primary||cy(t),i=e.secondary||uy(t),s=e.error||dy(t),l=e.info||py(t),c=e.success||hy(t),u=e.warning||my(t);function p(g){return ay(g,xc.text.primary)>=r?xc.text.primary:ly.text.primary}const h=({color:g,name:y,mainShade:v=500,lightShade:b=300,darkShade:C=700})=>{if(g={...g},!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Jr(11,y?` (${y})`:"",v));if(typeof g.main!="string")throw new Error(Jr(12,y?` (${y})`:"",JSON.stringify(g.main)));return vc(g,"light",b,n),vc(g,"dark",C,n),g.contrastText||(g.contrastText=p(g.main)),g};let f;return t==="light"?f=xd():t==="dark"&&(f=vd()),wt({common:{...vo},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:sy,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...f},o)}function fy(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gy={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function yy(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var by=/[A-Z]|^ms/g,xy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sd=function(e){return e.charCodeAt(1)===45},Sc=function(e){return e!=null&&typeof e!="boolean"},Ni=yy(function(e){return Sd(e)?e:e.replace(by,"-$&").toLowerCase()}),wc=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(xy,function(r,n,o){return jr={name:n,styles:o,next:jr},n})}return gy[e]!==1&&!Sd(e)&&typeof t=="number"&&t!==0?t+"px":t};function ja(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return jr={name:o.name,styles:o.styles,next:jr},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)jr={name:i.name,styles:i.styles,next:jr},i=i.next;var s=a.styles+";";return s}return vy(e,t,r)}}var l=r;return l}function vy(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ja(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var s=i;Sc(s)&&(n+=Ni(a)+":"+wc(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)Sc(i[l])&&(n+=Ni(a)+":"+wc(a,i[l])+";");else{var c=ja(e,t,i);switch(a){case"animation":case"animationName":{n+=Ni(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var Cc=/label:\s*([^\s;{]+)\s*(;|$)/g,jr;function Sy(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";jr=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=ja(r,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=ja(r,t,e[s]),n){var l=a;o+=l[s]}Cc.lastIndex=0;for(var c="",u;(u=Cc.exec(o))!==null;)c+="-"+u[1];var p=fy(o)+c;return{name:p,styles:o,next:jr}}function wy(e,t){return Bu(e,t)}function Cy(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const kc=[];function Pc(e){return kc[0]=e,Sy(kc)}const ky=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Py(e){return Object.keys(e).length===0}function Iy(e=null){const t=S.useContext(zh.ThemeContext);return!t||Py(t)?e:t}const jy=S.createContext(),Ey=()=>S.useContext(jy)??!1;function Ea(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[o][l]=Ea(a[l],i[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const Ry=S.createContext(void 0);function Ty(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ea(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ea(o,n):n}function Ny({props:e,name:t}){const r=S.useContext(Ry);return Ty({props:e,name:t,theme:{components:r}})}const Ic=(e,t,r,n=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},My=(e,t,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}n(e)},Ay=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Mi(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return My(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,p=Ay(s,l);Object.assign(o,{[u]:p}),Ic(a,s,`var(${u})`,c),Ic(i,s,`var(${u}, ${p})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function _y(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:p}=Mi(l,t);let h=p;const f={},{[s]:g,...y}=a;if(Object.entries(y||{}).forEach(([b,C])=>{const{vars:w,css:k,varsWithDefaults:j}=Mi(C,t);h=wt(h,j),f[b]={css:k,vars:w}}),g){const{css:b,vars:C,varsWithDefaults:w}=Mi(g,t);h=wt(h,w),f[s]={css:b,vars:C}}function v(b,C){let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),b){if(w==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${a[b]?.palette?.mode||b})`]:{":root":C}};if(w)return e.defaultColorScheme===b?`:root, ${w.replace("%s",String(b))}`:w.replace("%s",String(b))}return":root"}return{vars:h,generateThemeVars:()=>{let b={...c};return Object.entries(f).forEach(([,{vars:C}])=>{b=wt(b,C)}),b},generateStyleSheets:()=>{const b=[],C=e.defaultColorScheme||"light";function w(P,B){Object.keys(B).length&&b.push(typeof P=="string"?{[P]:{...B}}:P)}w(r(void 0,{...u}),u);const{[C]:k,...j}=f;if(k){const{css:P}=k,B=a[C]?.palette?.mode,F=!n&&B?{colorScheme:B,...P}:{...P};w(r(C,{...F}),F)}return Object.entries(j).forEach(([P,{css:B}])=>{const F=a[P]?.palette?.mode,L=!n&&F?{colorScheme:F,...B}:{...B};w(r(P,{...L}),L)}),b}}}function Oy(e){const t={};return Object.entries(e).forEach(r=>{const[n,o]=r;typeof o=="object"&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Ly(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const $y=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Dy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=$y(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function c(h,f){const g=i.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:f)-n/100}${r})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):s(h)}function p(h){const f=i.indexOf(h);return f===0?s(i[1]):f===i.length-1?l(i[f]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:l,between:c,only:u,not:p,unit:r,...o}}const By={borderRadius:4};function qy(e=8,t=Vs({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Fy(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Xs(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=e,s=Dy(r),l=qy(o);let c=wt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...By,...a}},i);return c=hg(c),c.applyStyles=Fy,c=t.reduce((u,p)=>wt(u,p),c),c.unstable_sxConfig={...ri,...i?.unstable_sxConfig},c.unstable_sx=function(u){return Mn({sx:u,theme:this})},c}const zy={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ln(e,t,r="Mui"){const n=zy[t];return n?`${r}-${n}`:`${rg.generate(e)}-${t}`}function Uy(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Wy(e){return Math.round(e*1e5)/1e5}const jc={textTransform:"uppercase"},Ec='"Roboto", "Helvetica", "Arial", sans-serif';function Hy(e,t){const{fontFamily:r=Ec,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...p}=typeof t=="function"?t(e):t,h=n/14,f=u||(v=>`${v/l*h}rem`),g=(v,b,C,w,k)=>({fontFamily:r,fontWeight:v,fontSize:f(b),lineHeight:C,...r===Ec?{letterSpacing:`${Wy(w/b)}em`}:{},...k,...c}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,jc),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,jc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wt({htmlFontSize:l,pxToRem:f,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...y},p,{clone:!1})}const Vy=.2,Gy=.14,Ky=.12;function Re(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Vy})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Gy})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ky})`].join(",")}const Qy=["none",Re(0,2,1,-1,0,1,1,0,0,1,3,0),Re(0,3,1,-2,0,2,2,0,0,1,5,0),Re(0,3,3,-2,0,3,4,0,0,1,8,0),Re(0,2,4,-1,0,4,5,0,0,1,10,0),Re(0,3,5,-1,0,5,8,0,0,1,14,0),Re(0,3,5,-1,0,6,10,0,0,1,18,0),Re(0,4,5,-2,0,7,10,1,0,2,16,1),Re(0,5,5,-3,0,8,10,1,0,3,14,2),Re(0,5,6,-3,0,9,12,1,0,3,16,2),Re(0,6,6,-3,0,10,14,1,0,4,18,3),Re(0,6,7,-4,0,11,15,1,0,4,20,3),Re(0,7,8,-4,0,12,17,2,0,5,22,4),Re(0,7,8,-4,0,13,19,2,0,5,24,4),Re(0,7,9,-4,0,14,21,2,0,5,26,4),Re(0,8,9,-5,0,15,22,2,0,6,28,5),Re(0,8,10,-5,0,16,24,2,0,6,30,5),Re(0,8,11,-5,0,17,26,2,0,6,32,5),Re(0,9,11,-5,0,18,28,2,0,7,34,6),Re(0,9,12,-6,0,19,29,2,0,7,36,6),Re(0,10,13,-6,0,20,31,3,0,8,38,7),Re(0,10,13,-6,0,21,33,3,0,8,40,7),Re(0,10,14,-6,0,22,35,3,0,8,42,7),Re(0,11,14,-7,0,23,36,3,0,9,44,8),Re(0,11,15,-7,0,24,38,3,0,9,46,8)],Yy={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},wd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rc(e){return`${Math.round(e)}ms`}function Jy(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Xy(e){const t={...Yy,...e.easing},r={...wd,...e.duration};return{getAutoHeightDuration:Jy,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0,...l}=o;return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:Rc(a)} ${i} ${typeof s=="string"?s:Rc(s)}`).join(",")},...e,easing:t,duration:r}}const Zy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eb(e){return dr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Cd(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[i,s]=o[a];!eb(s)||i.startsWith("unstable_")?delete n[i]:dr(s)&&(n[i]={...s},r(n[i]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
30
+ */var fc;function lg(){if(fc)return xe;fc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case r:case o:case n:case l:case c:case h:return y;default:switch(y=y&&y.$$typeof,y){case i:case s:case p:case u:return y;case a:return y;default:return v}}case t:return v}}}return xe.ContextConsumer=a,xe.ContextProvider=i,xe.Element=e,xe.ForwardRef=s,xe.Fragment=r,xe.Lazy=p,xe.Memo=u,xe.Portal=t,xe.Profiler=o,xe.StrictMode=n,xe.Suspense=l,xe.SuspenseList=c,xe.isContextConsumer=function(y){return g(y)===a},xe.isContextProvider=function(y){return g(y)===i},xe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},xe.isForwardRef=function(y){return g(y)===s},xe.isFragment=function(y){return g(y)===r},xe.isLazy=function(y){return g(y)===p},xe.isMemo=function(y){return g(y)===u},xe.isPortal=function(y){return g(y)===t},xe.isProfiler=function(y){return g(y)===o},xe.isStrictMode=function(y){return g(y)===n},xe.isSuspense=function(y){return g(y)===l},xe.isSuspenseList=function(y){return g(y)===c},xe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===l||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===u||y.$$typeof===i||y.$$typeof===a||y.$$typeof===s||y.$$typeof===f||y.getModuleId!==void 0)},xe.typeOf=g,xe}var gc;function cg(){return gc||(gc=1,mc.exports=lg()),mc.exports}var fd=cg();function dr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gd(e){if(S.isValidElement(e)||fd.isValidElementType(e)||!dr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=gd(e[r])}),t}function wt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return dr(e)&&dr(t)&&Object.keys(t).forEach(o=>{S.isValidElement(t[o])||fd.isValidElementType(t[o])?n[o]=t[o]:dr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&dr(e[o])?n[o]=wt(e[o],t[o],r):r.clone?n[o]=dr(t[o])?gd(t[o]):t[o]:n[o]=t[o]}),n}function po(e,t){return t?wt(e,t,{clone:!1}):e}function ug(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function dg(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function pg(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function hg(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const Qa={xs:0,sm:600,md:900,lg:1200,xl:1536},yc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qa[e]}px)`},mg={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Qa[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function gr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||yc;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=n.breakpoints||yc;return Object.keys(t).reduce((a,i)=>{if(dg(o.keys,i)){const s=pg(n.containerQueries?n:mg,i);s&&(a[s]=r(t[i],i))}else if(Object.keys(o.values||Qa).includes(i)){const s=o.up(i);a[s]=r(t[i],i)}else{const s=i;a[s]=t[s]}return a},{})}return r(t)}function fg(e={}){return e.keys?.reduce((t,r)=>{const n=e.up(r);return t[n]={},t},{})||{}}function gg(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Ya(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ia(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ya(e,r)||n,t&&(o=t(o,n,e)),o}function Fe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Ya(l,n)||{};return gr(i,s,u=>{let p=Ia(c,o,u);return u===p&&typeof u=="string"&&(p=Ia(c,o,`${t}${u==="default"?"":Gt(u)}`,u)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function yg(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const bg={m:"margin",p:"padding"},xg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vg=yg(e=>{if(e.length>2)if(bc[e])e=bc[e];else return[e];const[t,r]=e.split(""),n=bg[t],o=xg[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Ws=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ws,...Hs];function Ao(e,t,r,n){const o=Ya(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function Vs(e){return Ao(e,"spacing",8)}function _o(e,t){return typeof t=="string"||t==null?t:e(t)}function Sg(e,t){return r=>e.reduce((n,o)=>(n[o]=_o(t,r),n),{})}function wg(e,t,r,n){if(!t.includes(r))return null;const o=vg(r),a=Sg(o,n),i=e[r];return gr(e,i,a)}function yd(e,t){const r=Vs(e.theme);return Object.keys(e).map(n=>wg(e,t,n,r)).reduce(po,{})}function _e(e){return yd(e,Ws)}_e.propTypes={};_e.filterProps=Ws;function Oe(e){return yd(e,Hs)}Oe.propTypes={};Oe.filterProps=Hs;function Ja(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?po(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ot(e){return typeof e!="number"?e:`${e}px solid`}function qt(e,t){return Fe({prop:e,themeKey:"borders",transform:t})}const Cg=qt("border",Ot),kg=qt("borderTop",Ot),Pg=qt("borderRight",Ot),Ig=qt("borderBottom",Ot),jg=qt("borderLeft",Ot),Eg=qt("borderColor"),Rg=qt("borderTopColor"),Tg=qt("borderRightColor"),Ng=qt("borderBottomColor"),Mg=qt("borderLeftColor"),Ag=qt("outline",Ot),_g=qt("outlineColor"),Xa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ao(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:_o(t,n)});return gr(e,e.borderRadius,r)}return null};Xa.propTypes={};Xa.filterProps=["borderRadius"];Ja(Cg,kg,Pg,Ig,jg,Eg,Rg,Tg,Ng,Mg,Xa,Ag,_g);const Za=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ao(e.theme,"spacing",8),r=n=>({gap:_o(t,n)});return gr(e,e.gap,r)}return null};Za.propTypes={};Za.filterProps=["gap"];const ei=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ao(e.theme,"spacing",8),r=n=>({columnGap:_o(t,n)});return gr(e,e.columnGap,r)}return null};ei.propTypes={};ei.filterProps=["columnGap"];const ti=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ao(e.theme,"spacing",8),r=n=>({rowGap:_o(t,n)});return gr(e,e.rowGap,r)}return null};ti.propTypes={};ti.filterProps=["rowGap"];const Og=Fe({prop:"gridColumn"}),Lg=Fe({prop:"gridRow"}),$g=Fe({prop:"gridAutoFlow"}),Dg=Fe({prop:"gridAutoColumns"}),Bg=Fe({prop:"gridAutoRows"}),qg=Fe({prop:"gridTemplateColumns"}),Fg=Fe({prop:"gridTemplateRows"}),zg=Fe({prop:"gridTemplateAreas"}),Ug=Fe({prop:"gridArea"});Ja(Za,ei,ti,Og,Lg,$g,Dg,Bg,qg,Fg,zg,Ug);function En(e,t){return t==="grey"?t:e}const Wg=Fe({prop:"color",themeKey:"palette",transform:En}),Hg=Fe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:En}),Vg=Fe({prop:"backgroundColor",themeKey:"palette",transform:En});Ja(Wg,Hg,Vg);function vt(e){return e<=1&&e!==0?`${e*100}%`:e}const Gg=Fe({prop:"width",transform:vt}),Gs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Qa[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:vt(r)}};return gr(e,e.maxWidth,t)}return null};Gs.filterProps=["maxWidth"];const Kg=Fe({prop:"minWidth",transform:vt}),Qg=Fe({prop:"height",transform:vt}),Yg=Fe({prop:"maxHeight",transform:vt}),Jg=Fe({prop:"minHeight",transform:vt});Fe({prop:"size",cssProperty:"width",transform:vt});Fe({prop:"size",cssProperty:"height",transform:vt});const Xg=Fe({prop:"boxSizing"});Ja(Gg,Gs,Kg,Qg,Yg,Jg,Xg);const ri={border:{themeKey:"borders",transform:Ot},borderTop:{themeKey:"borders",transform:Ot},borderRight:{themeKey:"borders",transform:Ot},borderBottom:{themeKey:"borders",transform:Ot},borderLeft:{themeKey:"borders",transform:Ot},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ot},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xa},color:{themeKey:"palette",transform:En},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:En},backgroundColor:{themeKey:"palette",transform:En},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Za},rowGap:{style:ti},columnGap:{style:ei},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vt},maxWidth:{style:Gs},minWidth:{transform:vt},height:{transform:vt},maxHeight:{transform:vt},minHeight:{transform:vt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zg(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ey(e,t){return typeof e=="function"?e(t):e}function ty(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:p}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const h=Ya(o,c)||{};return p?p(i):gr(i,n,f=>{let g=Ia(h,u,f);return f===g&&typeof f=="string"&&(g=Ia(h,u,`${r}${f==="default"?"":Gt(f)}`,f)),l===!1?g:{[l]:g}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??ri;function i(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=fg(o.breakpoints),u=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const f=ey(l[h],o);if(f!=null)if(typeof f=="object")if(a[h])p=po(p,e(h,f,o,a));else{const g=gr({theme:o},f,y=>({[h]:y}));Zg(g,f)?p[h]=t({sx:f,theme:o}):p=po(p,g)}else p=po(p,e(h,f,o,a))}),ug(o,gg(u,p))}return Array.isArray(n)?n.map(i):i(n)}return t}const An=ty();An.filterProps=["sx"];function ry(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ks(e,t=0,r=1){return ry(e,t,r)}function ny(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Nr(e){if(e.type)return e;if(e.charAt(0)==="#")return Nr(ny(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Jr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Jr(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const oy=e=>{const t=Nr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ao=(e,t)=>{try{return oy(e)}catch{return e}};function ni(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function bd(e){e=Nr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,u=(c+r/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ni({type:s,values:l})}function es(e){e=Nr(e);let t=e.type==="hsl"||e.type==="hsla"?Nr(bd(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ay(e,t){const r=es(e),n=es(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ts(e,t){return e=Nr(e),t=Ks(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ni(e)}function ta(e,t,r){try{return ts(e,t)}catch{return e}}function Qs(e,t){if(e=Nr(e),t=Ks(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ni(e)}function Se(e,t,r){try{return Qs(e,t)}catch{return e}}function Ys(e,t){if(e=Nr(e),t=Ks(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ni(e)}function we(e,t,r){try{return Ys(e,t)}catch{return e}}function iy(e,t=.15){return es(e)>.5?Qs(e,t):Ys(e,t)}function ra(e,t,r){try{return iy(e,t)}catch{return e}}const vo={black:"#000",white:"#fff"},sy={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},pn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},hn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Zn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},mn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},fn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},gn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function xd(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vo.white,default:vo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ly=xd();function vd(){return{text:{primary:vo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:vo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const xc=vd();function vc(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ys(e.main,o):t==="dark"&&(e.dark=Qs(e.main,a)))}function cy(e="light"){return e==="dark"?{main:mn[200],light:mn[50],dark:mn[400]}:{main:mn[700],light:mn[400],dark:mn[800]}}function uy(e="light"){return e==="dark"?{main:pn[200],light:pn[50],dark:pn[400]}:{main:pn[500],light:pn[300],dark:pn[700]}}function dy(e="light"){return e==="dark"?{main:hn[500],light:hn[300],dark:hn[700]}:{main:hn[700],light:hn[400],dark:hn[800]}}function py(e="light"){return e==="dark"?{main:fn[400],light:fn[300],dark:fn[700]}:{main:fn[700],light:fn[500],dark:fn[900]}}function hy(e="light"){return e==="dark"?{main:gn[400],light:gn[300],dark:gn[700]}:{main:gn[800],light:gn[500],dark:gn[900]}}function my(e="light"){return e==="dark"?{main:Zn[400],light:Zn[300],dark:Zn[700]}:{main:"#ed6c02",light:Zn[500],dark:Zn[900]}}function Js(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,a=e.primary||cy(t),i=e.secondary||uy(t),s=e.error||dy(t),l=e.info||py(t),c=e.success||hy(t),u=e.warning||my(t);function p(g){return ay(g,xc.text.primary)>=r?xc.text.primary:ly.text.primary}const h=({color:g,name:y,mainShade:v=500,lightShade:b=300,darkShade:C=700})=>{if(g={...g},!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Jr(11,y?` (${y})`:"",v));if(typeof g.main!="string")throw new Error(Jr(12,y?` (${y})`:"",JSON.stringify(g.main)));return vc(g,"light",b,n),vc(g,"dark",C,n),g.contrastText||(g.contrastText=p(g.main)),g};let f;return t==="light"?f=xd():t==="dark"&&(f=vd()),wt({common:{...vo},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:sy,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...f},o)}function fy(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gy={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function yy(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var by=/[A-Z]|^ms/g,xy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sd=function(e){return e.charCodeAt(1)===45},Sc=function(e){return e!=null&&typeof e!="boolean"},Ni=yy(function(e){return Sd(e)?e:e.replace(by,"-$&").toLowerCase()}),wc=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(xy,function(r,n,o){return jr={name:n,styles:o,next:jr},n})}return gy[e]!==1&&!Sd(e)&&typeof t=="number"&&t!==0?t+"px":t};function ja(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return jr={name:o.name,styles:o.styles,next:jr},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)jr={name:i.name,styles:i.styles,next:jr},i=i.next;var s=a.styles+";";return s}return vy(e,t,r)}}var l=r;return l}function vy(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ja(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var s=i;Sc(s)&&(n+=Ni(a)+":"+wc(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)Sc(i[l])&&(n+=Ni(a)+":"+wc(a,i[l])+";");else{var c=ja(e,t,i);switch(a){case"animation":case"animationName":{n+=Ni(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var Cc=/label:\s*([^\s;{]+)\s*(;|$)/g,jr;function Sy(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";jr=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=ja(r,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=ja(r,t,e[s]),n){var l=a;o+=l[s]}Cc.lastIndex=0;for(var c="",u;(u=Cc.exec(o))!==null;)c+="-"+u[1];var p=fy(o)+c;return{name:p,styles:o,next:jr}}function wy(e,t){return Bu(e,t)}function Cy(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const kc=[];function Pc(e){return kc[0]=e,Sy(kc)}const ky=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Py(e){return Object.keys(e).length===0}function Iy(e=null){const t=S.useContext(zh.ThemeContext);return!t||Py(t)?e:t}const jy=S.createContext(),Ey=()=>S.useContext(jy)??!1;function Ea(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[o][l]=Ea(a[l],i[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const Ry=S.createContext(void 0);function Ty(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ea(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ea(o,n):n}function Ny({props:e,name:t}){const r=S.useContext(Ry);return Ty({props:e,name:t,theme:{components:r}})}const Ic=(e,t,r,n=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},My=(e,t,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}n(e)},Ay=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Mi(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return My(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,p=Ay(s,l);Object.assign(o,{[u]:p}),Ic(a,s,`var(${u})`,c),Ic(i,s,`var(${u}, ${p})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function _y(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:p}=Mi(l,t);let h=p;const f={},{[s]:g,...y}=a;if(Object.entries(y||{}).forEach(([b,C])=>{const{vars:w,css:k,varsWithDefaults:j}=Mi(C,t);h=wt(h,j),f[b]={css:k,vars:w}}),g){const{css:b,vars:C,varsWithDefaults:w}=Mi(g,t);h=wt(h,w),f[s]={css:b,vars:C}}function v(b,C){let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),b){if(w==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${a[b]?.palette?.mode||b})`]:{":root":C}};if(w)return e.defaultColorScheme===b?`:root, ${w.replace("%s",String(b))}`:w.replace("%s",String(b))}return":root"}return{vars:h,generateThemeVars:()=>{let b={...c};return Object.entries(f).forEach(([,{vars:C}])=>{b=wt(b,C)}),b},generateStyleSheets:()=>{const b=[],C=e.defaultColorScheme||"light";function w(P,B){Object.keys(B).length&&b.push(typeof P=="string"?{[P]:{...B}}:P)}w(r(void 0,{...u}),u);const{[C]:k,...j}=f;if(k){const{css:P}=k,B=a[C]?.palette?.mode,F=!n&&B?{colorScheme:B,...P}:{...P};w(r(C,{...F}),F)}return Object.entries(j).forEach(([P,{css:B}])=>{const F=a[P]?.palette?.mode,L=!n&&F?{colorScheme:F,...B}:{...B};w(r(P,{...L}),L)}),b}}}function Oy(e){const t={};return Object.entries(e).forEach(r=>{const[n,o]=r;typeof o=="object"&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Ly(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const $y=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Dy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=$y(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function c(h,f){const g=i.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:f)-n/100}${r})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):s(h)}function p(h){const f=i.indexOf(h);return f===0?s(i[1]):f===i.length-1?l(i[f]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:l,between:c,only:u,not:p,unit:r,...o}}const By={borderRadius:4};function qy(e=8,t=Vs({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Fy(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Xs(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=e,s=Dy(r),l=qy(o);let c=wt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...By,...a}},i);return c=hg(c),c.applyStyles=Fy,c=t.reduce((u,p)=>wt(u,p),c),c.unstable_sxConfig={...ri,...i?.unstable_sxConfig},c.unstable_sx=function(u){return An({sx:u,theme:this})},c}const zy={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ln(e,t,r="Mui"){const n=zy[t];return n?`${r}-${n}`:`${rg.generate(e)}-${t}`}function Uy(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Wy(e){return Math.round(e*1e5)/1e5}const jc={textTransform:"uppercase"},Ec='"Roboto", "Helvetica", "Arial", sans-serif';function Hy(e,t){const{fontFamily:r=Ec,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...p}=typeof t=="function"?t(e):t,h=n/14,f=u||(v=>`${v/l*h}rem`),g=(v,b,C,w,k)=>({fontFamily:r,fontWeight:v,fontSize:f(b),lineHeight:C,...r===Ec?{letterSpacing:`${Wy(w/b)}em`}:{},...k,...c}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,jc),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,jc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wt({htmlFontSize:l,pxToRem:f,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...y},p,{clone:!1})}const Vy=.2,Gy=.14,Ky=.12;function Re(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Vy})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Gy})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ky})`].join(",")}const Qy=["none",Re(0,2,1,-1,0,1,1,0,0,1,3,0),Re(0,3,1,-2,0,2,2,0,0,1,5,0),Re(0,3,3,-2,0,3,4,0,0,1,8,0),Re(0,2,4,-1,0,4,5,0,0,1,10,0),Re(0,3,5,-1,0,5,8,0,0,1,14,0),Re(0,3,5,-1,0,6,10,0,0,1,18,0),Re(0,4,5,-2,0,7,10,1,0,2,16,1),Re(0,5,5,-3,0,8,10,1,0,3,14,2),Re(0,5,6,-3,0,9,12,1,0,3,16,2),Re(0,6,6,-3,0,10,14,1,0,4,18,3),Re(0,6,7,-4,0,11,15,1,0,4,20,3),Re(0,7,8,-4,0,12,17,2,0,5,22,4),Re(0,7,8,-4,0,13,19,2,0,5,24,4),Re(0,7,9,-4,0,14,21,2,0,5,26,4),Re(0,8,9,-5,0,15,22,2,0,6,28,5),Re(0,8,10,-5,0,16,24,2,0,6,30,5),Re(0,8,11,-5,0,17,26,2,0,6,32,5),Re(0,9,11,-5,0,18,28,2,0,7,34,6),Re(0,9,12,-6,0,19,29,2,0,7,36,6),Re(0,10,13,-6,0,20,31,3,0,8,38,7),Re(0,10,13,-6,0,21,33,3,0,8,40,7),Re(0,10,14,-6,0,22,35,3,0,8,42,7),Re(0,11,14,-7,0,23,36,3,0,9,44,8),Re(0,11,15,-7,0,24,38,3,0,9,46,8)],Yy={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},wd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rc(e){return`${Math.round(e)}ms`}function Jy(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Xy(e){const t={...Yy,...e.easing},r={...wd,...e.duration};return{getAutoHeightDuration:Jy,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0,...l}=o;return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:Rc(a)} ${i} ${typeof s=="string"?s:Rc(s)}`).join(",")},...e,easing:t,duration:r}}const Zy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eb(e){return dr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Cd(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[i,s]=o[a];!eb(s)||i.startsWith("unstable_")?delete n[i]:dr(s)&&(n[i]={...s},r(n[i]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
31
31
 
32
32
  const theme = ${JSON.stringify(t,null,2)};
33
33
 
34
34
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
35
35
  theme.transitions = createTransitions(theme.transitions || {});
36
36
 
37
- export default theme;`}function rs(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Jr(20));const u=Js(a),p=Xs(e);let h=wt(p,{mixins:Uy(p.breakpoints,n),palette:u,shadows:Qy.slice(),typography:Hy(u,s),transitions:Xy(i),zIndex:{...Zy}});return h=wt(h,c),h=t.reduce((f,g)=>wt(f,g),h),h.unstable_sxConfig={...ri,...c?.unstable_sxConfig},h.unstable_sx=function(f){return Mn({sx:f,theme:this})},h.toRuntimeSource=Cd,h}function tb(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const rb=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=tb(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function kd(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Pd(e){return e==="dark"?rb:[]}function nb(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,a=Js(t);return{palette:a,opacity:{...kd(a.mode),...r},overlays:n||Pd(a.mode),...o}}function ob(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const ab=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ib=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return ab(e.cssVarPrefix).forEach(s=>{i[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",t)]:i,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function sb(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function M(e,t,r){!e[t]&&r&&(e[t]=r)}function io(e){return typeof e!="string"||!e.startsWith("hsl")?e:bd(e)}function or(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ao(io(e[t])))}function lb(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Jt=e=>{try{return e()}catch{}},cb=(e="mui")=>fe.unstable_createGetCssVar(e);function Ai(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=nb({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...i}=rs({...r,palette:{mode:o,...t?.palette}});return e[n]={...t,palette:a,opacity:{...kd(o),...t?.opacity},overlays:t?.overlays||Pd(o)},i}function ub(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=ob,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(r)[0],p=n||(r.light&&u!=="light"?"light":u),h=cb(a),{[p]:f,light:g,dark:y,...v}=r,b={...v};let C=f;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(C=!0),!C)throw new Error(Jr(21,p));const w=Ai(b,C,c,p);g&&!b.light&&Ai(b,g,void 0,"light"),y&&!b.dark&&Ai(b,y,void 0,"dark");let k={defaultColorScheme:p,...w,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:b,font:{...Oy(w.typography),...w.font},spacing:lb(c.spacing)};Object.keys(k.colorSchemes).forEach(L=>{const m=k.colorSchemes[L].palette,R=D=>{const $=D.split("-"),H=$[1],X=$[2];return h(D,m[H][X])};if(m.mode==="light"&&(M(m.common,"background","#fff"),M(m.common,"onBackground","#000")),m.mode==="dark"&&(M(m.common,"background","#000"),M(m.common,"onBackground","#fff")),sb(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){M(m.Alert,"errorColor",Se(m.error.light,.6)),M(m.Alert,"infoColor",Se(m.info.light,.6)),M(m.Alert,"successColor",Se(m.success.light,.6)),M(m.Alert,"warningColor",Se(m.warning.light,.6)),M(m.Alert,"errorFilledBg",R("palette-error-main")),M(m.Alert,"infoFilledBg",R("palette-info-main")),M(m.Alert,"successFilledBg",R("palette-success-main")),M(m.Alert,"warningFilledBg",R("palette-warning-main")),M(m.Alert,"errorFilledColor",Jt(()=>m.getContrastText(m.error.main))),M(m.Alert,"infoFilledColor",Jt(()=>m.getContrastText(m.info.main))),M(m.Alert,"successFilledColor",Jt(()=>m.getContrastText(m.success.main))),M(m.Alert,"warningFilledColor",Jt(()=>m.getContrastText(m.warning.main))),M(m.Alert,"errorStandardBg",we(m.error.light,.9)),M(m.Alert,"infoStandardBg",we(m.info.light,.9)),M(m.Alert,"successStandardBg",we(m.success.light,.9)),M(m.Alert,"warningStandardBg",we(m.warning.light,.9)),M(m.Alert,"errorIconColor",R("palette-error-main")),M(m.Alert,"infoIconColor",R("palette-info-main")),M(m.Alert,"successIconColor",R("palette-success-main")),M(m.Alert,"warningIconColor",R("palette-warning-main")),M(m.AppBar,"defaultBg",R("palette-grey-100")),M(m.Avatar,"defaultBg",R("palette-grey-400")),M(m.Button,"inheritContainedBg",R("palette-grey-300")),M(m.Button,"inheritContainedHoverBg",R("palette-grey-A100")),M(m.Chip,"defaultBorder",R("palette-grey-400")),M(m.Chip,"defaultAvatarColor",R("palette-grey-700")),M(m.Chip,"defaultIconColor",R("palette-grey-700")),M(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),M(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),M(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),M(m.LinearProgress,"primaryBg",we(m.primary.main,.62)),M(m.LinearProgress,"secondaryBg",we(m.secondary.main,.62)),M(m.LinearProgress,"errorBg",we(m.error.main,.62)),M(m.LinearProgress,"infoBg",we(m.info.main,.62)),M(m.LinearProgress,"successBg",we(m.success.main,.62)),M(m.LinearProgress,"warningBg",we(m.warning.main,.62)),M(m.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),M(m.Slider,"primaryTrack",we(m.primary.main,.62)),M(m.Slider,"secondaryTrack",we(m.secondary.main,.62)),M(m.Slider,"errorTrack",we(m.error.main,.62)),M(m.Slider,"infoTrack",we(m.info.main,.62)),M(m.Slider,"successTrack",we(m.success.main,.62)),M(m.Slider,"warningTrack",we(m.warning.main,.62));const D=ra(m.background.default,.8);M(m.SnackbarContent,"bg",D),M(m.SnackbarContent,"color",Jt(()=>m.getContrastText(D))),M(m.SpeedDialAction,"fabHoverBg",ra(m.background.paper,.15)),M(m.StepConnector,"border",R("palette-grey-400")),M(m.StepContent,"border",R("palette-grey-400")),M(m.Switch,"defaultColor",R("palette-common-white")),M(m.Switch,"defaultDisabledColor",R("palette-grey-100")),M(m.Switch,"primaryDisabledColor",we(m.primary.main,.62)),M(m.Switch,"secondaryDisabledColor",we(m.secondary.main,.62)),M(m.Switch,"errorDisabledColor",we(m.error.main,.62)),M(m.Switch,"infoDisabledColor",we(m.info.main,.62)),M(m.Switch,"successDisabledColor",we(m.success.main,.62)),M(m.Switch,"warningDisabledColor",we(m.warning.main,.62)),M(m.TableCell,"border",we(ta(m.divider,1),.88)),M(m.Tooltip,"bg",ta(m.grey[700],.92))}if(m.mode==="dark"){M(m.Alert,"errorColor",we(m.error.light,.6)),M(m.Alert,"infoColor",we(m.info.light,.6)),M(m.Alert,"successColor",we(m.success.light,.6)),M(m.Alert,"warningColor",we(m.warning.light,.6)),M(m.Alert,"errorFilledBg",R("palette-error-dark")),M(m.Alert,"infoFilledBg",R("palette-info-dark")),M(m.Alert,"successFilledBg",R("palette-success-dark")),M(m.Alert,"warningFilledBg",R("palette-warning-dark")),M(m.Alert,"errorFilledColor",Jt(()=>m.getContrastText(m.error.dark))),M(m.Alert,"infoFilledColor",Jt(()=>m.getContrastText(m.info.dark))),M(m.Alert,"successFilledColor",Jt(()=>m.getContrastText(m.success.dark))),M(m.Alert,"warningFilledColor",Jt(()=>m.getContrastText(m.warning.dark))),M(m.Alert,"errorStandardBg",Se(m.error.light,.9)),M(m.Alert,"infoStandardBg",Se(m.info.light,.9)),M(m.Alert,"successStandardBg",Se(m.success.light,.9)),M(m.Alert,"warningStandardBg",Se(m.warning.light,.9)),M(m.Alert,"errorIconColor",R("palette-error-main")),M(m.Alert,"infoIconColor",R("palette-info-main")),M(m.Alert,"successIconColor",R("palette-success-main")),M(m.Alert,"warningIconColor",R("palette-warning-main")),M(m.AppBar,"defaultBg",R("palette-grey-900")),M(m.AppBar,"darkBg",R("palette-background-paper")),M(m.AppBar,"darkColor",R("palette-text-primary")),M(m.Avatar,"defaultBg",R("palette-grey-600")),M(m.Button,"inheritContainedBg",R("palette-grey-800")),M(m.Button,"inheritContainedHoverBg",R("palette-grey-700")),M(m.Chip,"defaultBorder",R("palette-grey-700")),M(m.Chip,"defaultAvatarColor",R("palette-grey-300")),M(m.Chip,"defaultIconColor",R("palette-grey-300")),M(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),M(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),M(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),M(m.LinearProgress,"primaryBg",Se(m.primary.main,.5)),M(m.LinearProgress,"secondaryBg",Se(m.secondary.main,.5)),M(m.LinearProgress,"errorBg",Se(m.error.main,.5)),M(m.LinearProgress,"infoBg",Se(m.info.main,.5)),M(m.LinearProgress,"successBg",Se(m.success.main,.5)),M(m.LinearProgress,"warningBg",Se(m.warning.main,.5)),M(m.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),M(m.Slider,"primaryTrack",Se(m.primary.main,.5)),M(m.Slider,"secondaryTrack",Se(m.secondary.main,.5)),M(m.Slider,"errorTrack",Se(m.error.main,.5)),M(m.Slider,"infoTrack",Se(m.info.main,.5)),M(m.Slider,"successTrack",Se(m.success.main,.5)),M(m.Slider,"warningTrack",Se(m.warning.main,.5));const D=ra(m.background.default,.98);M(m.SnackbarContent,"bg",D),M(m.SnackbarContent,"color",Jt(()=>m.getContrastText(D))),M(m.SpeedDialAction,"fabHoverBg",ra(m.background.paper,.15)),M(m.StepConnector,"border",R("palette-grey-600")),M(m.StepContent,"border",R("palette-grey-600")),M(m.Switch,"defaultColor",R("palette-grey-300")),M(m.Switch,"defaultDisabledColor",R("palette-grey-600")),M(m.Switch,"primaryDisabledColor",Se(m.primary.main,.55)),M(m.Switch,"secondaryDisabledColor",Se(m.secondary.main,.55)),M(m.Switch,"errorDisabledColor",Se(m.error.main,.55)),M(m.Switch,"infoDisabledColor",Se(m.info.main,.55)),M(m.Switch,"successDisabledColor",Se(m.success.main,.55)),M(m.Switch,"warningDisabledColor",Se(m.warning.main,.55)),M(m.TableCell,"border",Se(ta(m.divider,1),.68)),M(m.Tooltip,"bg",ta(m.grey[700],.92))}or(m.background,"default"),or(m.background,"paper"),or(m.common,"background"),or(m.common,"onBackground"),or(m,"divider"),Object.keys(m).forEach(D=>{const $=m[D];D!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&M(m[D],"mainChannel",ao(io($.main))),$.light&&M(m[D],"lightChannel",ao(io($.light))),$.dark&&M(m[D],"darkChannel",ao(io($.dark))),$.contrastText&&M(m[D],"contrastTextChannel",ao(io($.contrastText))),D==="text"&&(or(m[D],"primary"),or(m[D],"secondary")),D==="action"&&($.active&&or(m[D],"active"),$.selected&&or(m[D],"selected")))})}),k=t.reduce((L,m)=>wt(L,m),k);const j={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:ib(k)},{vars:P,generateThemeVars:B,generateStyleSheets:F}=_y(k,j);return k.vars=P,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([L,m])=>{k[L]=m}),k.generateThemeVars=B,k.generateStyleSheets=F,k.generateSpacing=function(){return fe.createSpacing(c.spacing,Vs(this))},k.getColorSchemeSelector=Ly(s),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=i,k.unstable_sxConfig={...ri,...c?.unstable_sxConfig},k.unstable_sx=function(L){return Mn({sx:L,theme:this})},k.toRuntimeSource=Cd,k}function Tc(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Js({...r===!0?{}:r.palette,mode:t})})}function db(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return rs(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const p=rs({...e,palette:u},...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},Tc(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Tc(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),ub({...i,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const Zs=db(),el="$$material";function pb(){const e=fe.useTheme(Zs);return e[el]||e}function hb(e){const{variants:t,...r}=e,n={variants:t,style:Pc(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Pc(o.style))}),n}const mb=Xs();function Rr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fb(e){return e?(t,r)=>r[e]:null}function gb(e,t,r){e.theme=bb(e.theme)?r:e.theme[t]||e.theme}function ma(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>ma(e,n));if(Array.isArray(r?.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return Id(e,r.variants,[n])}return r?.isProcessed?r.style:r}function Id(e,t,r=[]){let n;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const i in a.props)if(e[i]!==a.props[i]&&e.ownerState?.[i]!==a.props[i])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function yb(e={}){const{themeId:t,defaultTheme:r=mb,rootShouldForwardProp:n=Rr,slotShouldForwardProp:o=Rr}=e;function a(i){gb(i,t,r)}return(i,s={})=>{Cy(i,k=>k.filter(j=>j!==Mn));const{name:l,slot:c,skipVariantsResolver:u,skipSx:p,overridesResolver:h=fb(vb(c)),...f}=s,g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=p||!1;let v=Rr;c==="Root"||c==="root"?v=n:c?v=o:xb(i)&&(v=void 0);const b=wy(i,{shouldForwardProp:v,label:void 0,...f}),C=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(j){return ma(j,k)};if(dr(k)){const j=hb(k);return j.variants?function(P){return ma(P,j)}:j.style}return k},w=(...k)=>{const j=[],P=k.map(C),B=[];if(j.push(a),l&&h&&B.push(function(m){const R=m.theme.components?.[l]?.styleOverrides;if(!R)return null;const D={};for(const $ in R)D[$]=ma(m,R[$]);return h(m,D)}),l&&!g&&B.push(function(m){const R=m.theme?.components?.[l]?.variants;return R?Id(m,R):null}),y||B.push(Mn),Array.isArray(P[0])){const m=P.shift(),R=new Array(j.length).fill(""),D=new Array(B.length).fill("");let $;$=[...R,...m,...D],$.raw=[...R,...m.raw,...D],j.unshift($)}const F=[...j,...P,...B],L=b(...F);return i.muiName&&(L.muiName=i.muiName),L};return b.withConfig&&(w.withConfig=b.withConfig),w}}function bb(e){for(const t in e)return!1;return!0}function xb(e){return typeof e=="string"&&e.charCodeAt(0)>96}function vb(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Sb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const tl=e=>Sb(e)&&e!=="classes",Ee=yb({themeId:el,defaultTheme:Zs,rootShouldForwardProp:tl}),rl=fe.unstable_memoTheme;function $n(e){return Ny(e)}function Dn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ln(e,o,r)}),n}function wb(e){return Ln("MuiSvgIcon",e)}Dn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Cb=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Gt(t)}`,`fontSize${Gt(r)}`]};return Mo(o,wb,n)},kb=Ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Gt(r.color)}`],t[`fontSize${Gt(r.fontSize)}`]]}})(rl(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),ns=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:p="0 0 24 24",...h}=r,f=S.isValidElement(n)&&n.type==="svg",g={...r,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:f},y={};c||(y.viewBox=p);const v=Cb(g);return d.jsxs(kb,{as:i,className:qe(v.root,o),focusable:"false",color:l,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:t,...y,...h,...f&&n.props,ownerState:g,children:[f?n.props.children:n,u?d.jsx("title",{children:u}):null]})});ns.muiName="SvgIcon";function tt(e,t){function r(n,o){return d.jsx(ns,{"data-testid":void 0,ref:o,...n,children:e})}return r.muiName=ns.muiName,S.memo(S.forwardRef(r))}function Pb(e){const{controlled:t,default:r}=e,{current:n}=S.useRef(t!==void 0),[o,a]=S.useState(r),i=n?t:o,s=S.useCallback(l=>{n||a(l)},[]);return[i,s]}function fa(e){const t=S.useRef(e);return ky(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}function Ra(...e){const t=S.useRef(void 0),r=S.useCallback(n=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(n);return typeof s=="function"?s:()=>{i(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return S.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Ib(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function jb(e,t){if(!e)return t;function r(i,s){const l={};return Object.keys(s).forEach(c=>{Ib(c,s[c])&&typeof i[c]=="function"&&(l[c]=(...u)=>{i[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return i=>{const s=typeof t=="function"?t(i):t,l=typeof e=="function"?e({...i,...s}):e,c=qe(i?.className,s?.className,l?.className),u=r(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const n=t,o=r(e,n),a=qe(n?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const oi=tt(d.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),Oo=tt(d.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),Be="http://localhost/api/v0".replace(/\/+$/,"");class _r{constructor(t,r=Be,n=De){T(this,"configuration");this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class Eb extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const He={},Ve="https://example.com",pe=function(e,t,r){if(r==null)throw new Eb(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function os(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>os(e,n,r)):Object.keys(t).forEach(n=>os(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const Ge=function(e,...t){const r=new URLSearchParams(e.search);os(r,t),e.search=r.toString()},Ke=function(e){return e.pathname+e.search+e.hash},Qe=function(e,t,r,n){return(o=t,a=r)=>{const i={...e.options,url:(o.defaults.baseURL?"":n?.basePath??a)+e.url};return o.request(i)}},Rb=function(e){return{getConnection:async(t,r,n={})=>{pe("getConnection","projectName",t),pe("getConnection","connectionName",r);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),a=new URL(o,Ve);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},l={};Ge(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...n.headers},{url:Ke(a),options:s}},getQuerydata:async(t,r,n,o,a={})=>{pe("getQuerydata","projectName",t),pe("getQuerydata","connectionName",r);const i="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};n!==void 0&&(p.sqlStatement=n),o!==void 0&&(p.options=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},getSqlsource:async(t,r,n,o={})=>{pe("getSqlsource","projectName",t),pe("getSqlsource","connectionName",r);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.sqlStatement=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}},getTablesource:async(t,r,n,o,a={})=>{pe("getTablesource","projectName",t),pe("getTablesource","connectionName",r);const i="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};n!==void 0&&(p.tableKey=n),o!==void 0&&(p.tablePath=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},getTemporarytable:async(t,r,n,o={})=>{pe("getTemporarytable","projectName",t),pe("getTemporarytable","connectionName",r);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.sqlStatement=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}},getTest:async(t,r,n={})=>{pe("getTest","projectName",t),pe("getTest","connectionName",r);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),a=new URL(o,Ve);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},l={};Ge(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...n.headers},{url:Ke(a),options:s}},listConnections:async(t,r={})=>{pe("listConnections","projectName",t);const n="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(n,Ve);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},s={};Ge(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...r.headers},{url:Ke(o),options:i}},listSchemas:async(t,r,n={})=>{pe("listSchemas","projectName",t),pe("listSchemas","connectionName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),a=new URL(o,Ve);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},l={};Ge(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...n.headers},{url:Ke(a),options:s}},listTables:async(t,r,n,o={})=>{pe("listTables","projectName",t),pe("listTables","connectionName",r),pe("listTables","schemaName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(n))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={};Ge(i,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:Ke(i),options:l}}}},ar=function(e){const t=Rb(e);return{async getConnection(r,n,o){const a=await t.getConnection(r,n,o),i=e?.serverIndex??0,s=He["ConnectionsApi.getConnection"]?.[i]?.url;return(l,c)=>Qe(a,De,Be,e)(l,s||c)},async getQuerydata(r,n,o,a,i){const s=await t.getQuerydata(r,n,o,a,i),l=e?.serverIndex??0,c=He["ConnectionsApi.getQuerydata"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async getSqlsource(r,n,o,a){const i=await t.getSqlsource(r,n,o,a),s=e?.serverIndex??0,l=He["ConnectionsApi.getSqlsource"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)},async getTablesource(r,n,o,a,i){const s=await t.getTablesource(r,n,o,a,i),l=e?.serverIndex??0,c=He["ConnectionsApi.getTablesource"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async getTemporarytable(r,n,o,a){const i=await t.getTemporarytable(r,n,o,a),s=e?.serverIndex??0,l=He["ConnectionsApi.getTemporarytable"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)},async getTest(r,n,o){const a=await t.getTest(r,n,o),i=e?.serverIndex??0,s=He["ConnectionsApi.getTest"]?.[i]?.url;return(l,c)=>Qe(a,De,Be,e)(l,s||c)},async listConnections(r,n){const o=await t.listConnections(r,n),a=e?.serverIndex??0,i=He["ConnectionsApi.listConnections"]?.[a]?.url;return(s,l)=>Qe(o,De,Be,e)(s,i||l)},async listSchemas(r,n,o){const a=await t.listSchemas(r,n,o),i=e?.serverIndex??0,s=He["ConnectionsApi.listSchemas"]?.[i]?.url;return(l,c)=>Qe(a,De,Be,e)(l,s||c)},async listTables(r,n,o,a){const i=await t.listTables(r,n,o,a),s=e?.serverIndex??0,l=He["ConnectionsApi.listTables"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class jd extends _r{getConnection(t,r,n){return ar(this.configuration).getConnection(t,r,n).then(o=>o(this.axios,this.basePath))}getQuerydata(t,r,n,o,a){return ar(this.configuration).getQuerydata(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}getSqlsource(t,r,n,o){return ar(this.configuration).getSqlsource(t,r,n,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,r,n,o,a){return ar(this.configuration).getTablesource(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}getTemporarytable(t,r,n,o){return ar(this.configuration).getTemporarytable(t,r,n,o).then(a=>a(this.axios,this.basePath))}getTest(t,r,n){return ar(this.configuration).getTest(t,r,n).then(o=>o(this.axios,this.basePath))}listConnections(t,r){return ar(this.configuration).listConnections(t,r).then(n=>n(this.axios,this.basePath))}listSchemas(t,r,n){return ar(this.configuration).listSchemas(t,r,n).then(o=>o(this.axios,this.basePath))}listTables(t,r,n,o){return ar(this.configuration).listTables(t,r,n,o).then(a=>a(this.axios,this.basePath))}}const Tb=function(e){return{listDatabases:async(t,r,n,o={})=>{pe("listDatabases","projectName",t),pe("listDatabases","packageName",r);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.versionId=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}}}},Nb=function(e){const t=Tb(e);return{async listDatabases(r,n,o,a){const i=await t.listDatabases(r,n,o,a),s=e?.serverIndex??0,l=He["DatabasesApi.listDatabases"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class Mb extends _r{listDatabases(t,r,n,o){return Nb(this.configuration).listDatabases(t,r,n,o).then(a=>a(this.axios,this.basePath))}}const Ab=function(e){return{getModel:async(t,r,n,o,a={})=>{pe("getModel","projectName",t),pe("getModel","packageName",r),pe("getModel","path",n);const i="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))).replace("{path}",encodeURIComponent(String(n))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};o!==void 0&&(p.versionId=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},listModels:async(t,r,n,o={})=>{pe("listModels","projectName",t),pe("listModels","packageName",r);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.versionId=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}}}},Nc=function(e){const t=Ab(e);return{async getModel(r,n,o,a,i){const s=await t.getModel(r,n,o,a,i),l=e?.serverIndex??0,c=He["ModelsApi.getModel"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async listModels(r,n,o,a){const i=await t.listModels(r,n,o,a),s=e?.serverIndex??0,l=He["ModelsApi.listModels"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class ai extends _r{getModel(t,r,n,o,a){return Nc(this.configuration).getModel(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}listModels(t,r,n,o){return Nc(this.configuration).listModels(t,r,n,o).then(a=>a(this.axios,this.basePath))}}const _b=function(e){return{getNotebook:async(t,r,n,o,a={})=>{pe("getNotebook","projectName",t),pe("getNotebook","packageName",r),pe("getNotebook","path",n);const i="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))).replace("{path}",encodeURIComponent(String(n))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};o!==void 0&&(p.versionId=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},listNotebooks:async(t,r,n,o={})=>{pe("listNotebooks","projectName",t),pe("listNotebooks","packageName",r);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.versionId=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}}}},Mc=function(e){const t=_b(e);return{async getNotebook(r,n,o,a,i){const s=await t.getNotebook(r,n,o,a,i),l=e?.serverIndex??0,c=He["NotebooksApi.getNotebook"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async listNotebooks(r,n,o,a){const i=await t.listNotebooks(r,n,o,a),s=e?.serverIndex??0,l=He["NotebooksApi.listNotebooks"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class Ed extends _r{getNotebook(t,r,n,o,a){return Mc(this.configuration).getNotebook(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}listNotebooks(t,r,n,o){return Mc(this.configuration).listNotebooks(t,r,n,o).then(a=>a(this.axios,this.basePath))}}const Ob=function(e){return{getPackage:async(t,r,n,o,a={})=>{pe("getPackage","projectName",t),pe("getPackage","packageName",r);const i="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};n!==void 0&&(p.versionId=n),o!==void 0&&(p.reload=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},listPackages:async(t,r={})=>{pe("listPackages","projectName",t);const n="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(n,Ve);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},s={};Ge(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...r.headers},{url:Ke(o),options:i}}}},Ac=function(e){const t=Ob(e);return{async getPackage(r,n,o,a,i){const s=await t.getPackage(r,n,o,a,i),l=e?.serverIndex??0,c=He["PackagesApi.getPackage"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async listPackages(r,n){const o=await t.listPackages(r,n),a=e?.serverIndex??0,i=He["PackagesApi.listPackages"]?.[a]?.url;return(s,l)=>Qe(o,De,Be,e)(s,i||l)}}};class Rd extends _r{getPackage(t,r,n,o,a){return Ac(this.configuration).getPackage(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}listPackages(t,r){return Ac(this.configuration).listPackages(t,r).then(n=>n(this.axios,this.basePath))}}const Lb=function(e){return{getProject:async(t,r,n={})=>{pe("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,Ve);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},l={},c={};r!==void 0&&(c.reload=r),Ge(a,c);let u=i&&i.headers?i.headers:{};return s.headers={...l,...u,...n.headers},{url:Ke(a),options:s}},listProjects:async(t={})=>{const r="/projects",n=new URL(r,Ve);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};Ge(n,{});let s=o&&o.headers?o.headers:{};return a.headers={...i,...s,...t.headers},{url:Ke(n),options:a}}}},_c=function(e){const t=Lb(e);return{async getProject(r,n,o){const a=await t.getProject(r,n,o),i=e?.serverIndex??0,s=He["ProjectsApi.getProject"]?.[i]?.url;return(l,c)=>Qe(a,De,Be,e)(l,s||c)},async listProjects(r){const n=await t.listProjects(r),o=e?.serverIndex??0,a=He["ProjectsApi.listProjects"]?.[o]?.url;return(i,s)=>Qe(n,De,Be,e)(i,a||s)}}};class Td extends _r{getProject(t,r,n){return _c(this.configuration).getProject(t,r,n).then(o=>o(this.axios,this.basePath))}listProjects(t){return _c(this.configuration).listProjects(t).then(r=>r(this.axios,this.basePath))}}const $b=function(e){return{executeQuery:async(t,r,n,o,a,i,s,l={})=>{pe("executeQuery","projectName",t),pe("executeQuery","packageName",r),pe("executeQuery","path",n);const c="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))).replace("{path}",encodeURIComponent(String(n))),u=new URL(c,Ve);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...l},f={},g={};o!==void 0&&(g.query=o),a!==void 0&&(g.sourceName=a),i!==void 0&&(g.queryName=i),s!==void 0&&(g.versionId=s),Ge(u,g);let y=p&&p.headers?p.headers:{};return h.headers={...f,...y,...l.headers},{url:Ke(u),options:h}}}},Db=function(e){const t=$b(e);return{async executeQuery(r,n,o,a,i,s,l,c){const u=await t.executeQuery(r,n,o,a,i,s,l,c),p=e?.serverIndex??0,h=He["QueryresultsApi.executeQuery"]?.[p]?.url;return(f,g)=>Qe(u,De,Be,e)(f,h||g)}}};class Nd extends _r{executeQuery(t,r,n,o,a,i,s,l){return Db(this.configuration).executeQuery(t,r,n,o,a,i,s,l).then(c=>c(this.axios,this.basePath))}}const Bb=function(e){return{listSchedules:async(t,r,n,o={})=>{pe("listSchedules","projectName",t),pe("listSchedules","packageName",r);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.versionId=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}}}},qb=function(e){const t=Bb(e);return{async listSchedules(r,n,o,a){const i=await t.listSchedules(r,n,o,a),s=e?.serverIndex??0,l=He["SchedulesApi.listSchedules"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class Fb extends _r{listSchedules(t,r,n,o){return qb(this.configuration).listSchedules(t,r,n,o).then(a=>a(this.axios,this.basePath))}}class ct{constructor(t={}){T(this,"apiKey");T(this,"username");T(this,"password");T(this,"accessToken");T(this,"basePath");T(this,"serverIndex");T(this,"baseOptions");T(this,"formDataCtor");this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}}const Md=[{id:"abap",name:"ABAP",import:()=>Promise.resolve().then(()=>require("./abap-BmBUA35e-Dwt2rH6y.cjs"))},{id:"actionscript-3",name:"ActionScript",import:()=>Promise.resolve().then(()=>require("./actionscript-3-zFUbzQa9-mj8Uhnsc.cjs"))},{id:"ada",name:"Ada",import:()=>Promise.resolve().then(()=>require("./ada-CBvPkFpZ-DZM58Vqs.cjs"))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.resolve().then(()=>require("./angular-html-0fTdLuKf-iuJ7ajzA.cjs")).then(e=>e.f)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.resolve().then(()=>require("./angular-ts-wkniW60G-Cm4EfyWn.cjs"))},{id:"apache",name:"Apache Conf",import:()=>Promise.resolve().then(()=>require("./apache-CVNlsSDc-D7v5fxtZ.cjs"))},{id:"apex",name:"Apex",import:()=>Promise.resolve().then(()=>require("./apex-DFk3KRB1-4hrAnw0a.cjs"))},{id:"apl",name:"APL",import:()=>Promise.resolve().then(()=>require("./apl-TLDHFJX6-DZ13rf9a.cjs"))},{id:"applescript",name:"AppleScript",import:()=>Promise.resolve().then(()=>require("./applescript-CYMR_y0g-Cnd3Dxju.cjs"))},{id:"ara",name:"Ara",import:()=>Promise.resolve().then(()=>require("./ara-4QmU5e04-BQ2aGbFQ.cjs"))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>Promise.resolve().then(()=>require("./asciidoc-v_1bjgUg-C6nYvw8K.cjs"))},{id:"asm",name:"Assembly",import:()=>Promise.resolve().then(()=>require("./asm-RC0Yh-NZ-CQnBVCj-.cjs"))},{id:"astro",name:"Astro",import:()=>Promise.resolve().then(()=>require("./astro-Uf8_VxKJ--l1q7Jnf.cjs"))},{id:"awk",name:"AWK",import:()=>Promise.resolve().then(()=>require("./awk-gPH8MVMW-DUx4h__E.cjs"))},{id:"ballerina",name:"Ballerina",import:()=>Promise.resolve().then(()=>require("./ballerina-kvLnRU_e-CXlzbmzl.cjs"))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>Promise.resolve().then(()=>require("./bat-BHYy44sT-DlMT9sut.cjs"))},{id:"beancount",name:"Beancount",import:()=>Promise.resolve().then(()=>require("./beancount-D-MADTs_-CyyiuUzM.cjs"))},{id:"berry",name:"Berry",aliases:["be"],import:()=>Promise.resolve().then(()=>require("./berry-Ci9U0o4h-B0EjuzrL.cjs"))},{id:"bibtex",name:"BibTeX",import:()=>Promise.resolve().then(()=>require("./bibtex-CX618D15-CfoG9xRq.cjs"))},{id:"bicep",name:"Bicep",import:()=>Promise.resolve().then(()=>require("./bicep-iuYiPopT-D6PH_9IY.cjs"))},{id:"blade",name:"Blade",import:()=>Promise.resolve().then(()=>require("./blade-BtR00Gx0-CC9iBOSk.cjs"))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>Promise.resolve().then(()=>require("./bsl-BIXPNqL4-C8J0Suid.cjs"))},{id:"c",name:"C",import:()=>Promise.resolve().then(()=>require("./c-DASdrs7p-C4sXGJZM.cjs"))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>Promise.resolve().then(()=>require("./cadence-BDALQi26-Dq2CYzXG.cjs"))},{id:"cairo",name:"Cairo",import:()=>Promise.resolve().then(()=>require("./cairo-tXZKA2PT-XMsK9HSC.cjs"))},{id:"clarity",name:"Clarity",import:()=>Promise.resolve().then(()=>require("./clarity-CNgV2Ths-ytMkUD5Q.cjs"))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>Promise.resolve().then(()=>require("./clojure-CsKKFGwv-B_Wv414H.cjs"))},{id:"cmake",name:"CMake",import:()=>Promise.resolve().then(()=>require("./cmake-Dr-A3iJx-TBUaQXYY.cjs"))},{id:"cobol",name:"COBOL",import:()=>Promise.resolve().then(()=>require("./cobol-DMssKNmC-2IrH-LQK.cjs"))},{id:"codeowners",name:"CODEOWNERS",import:()=>Promise.resolve().then(()=>require("./codeowners-Bt9yU6NX-QhPK6lIJ.cjs"))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>Promise.resolve().then(()=>require("./codeql-DBNTqJi1-B7Q9tkDJ.cjs"))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.resolve().then(()=>require("./coffee-D_GzM8k1-DQThhwJg.cjs"))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>Promise.resolve().then(()=>require("./common-lisp-r7ZEOG7T-Ced3ctK5.cjs"))},{id:"coq",name:"Coq",import:()=>Promise.resolve().then(()=>require("./coq-CB6Pv_W9-BTRB4iqi.cjs"))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.resolve().then(()=>require("./cpp-CJF2i3ah-mxGthENV.cjs"))},{id:"crystal",name:"Crystal",import:()=>Promise.resolve().then(()=>require("./crystal-BKWnaU3g-Dh9wsPqT.cjs"))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>Promise.resolve().then(()=>require("./csharp-CYWRhZ2R-TKds-MhG.cjs"))},{id:"css",name:"CSS",import:()=>Promise.resolve().then(()=>require("./css-D1aVdRIU-B0kbn78J.cjs"))},{id:"csv",name:"CSV",import:()=>Promise.resolve().then(()=>require("./csv-DvCncUGQ-BVJjiaC3.cjs"))},{id:"cue",name:"CUE",import:()=>Promise.resolve().then(()=>require("./cue-BXMrmvay-Cz4J-rnd.cjs"))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>Promise.resolve().then(()=>require("./cypher-DTm5zNR1-DuKTiyez.cjs"))},{id:"d",name:"D",import:()=>Promise.resolve().then(()=>require("./d-D6ZXmn3l-BW9Wd7aK.cjs"))},{id:"dart",name:"Dart",import:()=>Promise.resolve().then(()=>require("./dart-Dz59Is3F-CWs-er6b.cjs"))},{id:"dax",name:"DAX",import:()=>Promise.resolve().then(()=>require("./dax-DTVGzydb-CDxFL2Kb.cjs"))},{id:"desktop",name:"Desktop",import:()=>Promise.resolve().then(()=>require("./desktop-Db9vb-dl-CFgo0jo7.cjs"))},{id:"diff",name:"Diff",import:()=>Promise.resolve().then(()=>require("./diff-XmNrvgM1-BsEkKwI8.cjs"))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>Promise.resolve().then(()=>require("./docker-DWH2onkn-hwiw4W8I.cjs"))},{id:"dotenv",name:"dotEnv",import:()=>Promise.resolve().then(()=>require("./dotenv-4337wvzu-CJ5o3G1C.cjs"))},{id:"dream-maker",name:"Dream Maker",import:()=>Promise.resolve().then(()=>require("./dream-maker-CvvfrJSx-DBharE9Q.cjs"))},{id:"edge",name:"Edge",import:()=>Promise.resolve().then(()=>require("./edge-CgxR-qhM-QOBckj2G.cjs"))},{id:"elixir",name:"Elixir",import:()=>Promise.resolve().then(()=>require("./elixir-DZkeSPwW-BCzkKkN0.cjs"))},{id:"elm",name:"Elm",import:()=>Promise.resolve().then(()=>require("./elm-BKuV1HE1-BuAwt4Hl.cjs"))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>Promise.resolve().then(()=>require("./emacs-lisp-BAefI874-CDDyFsvQ.cjs"))},{id:"erb",name:"ERB",import:()=>Promise.resolve().then(()=>require("./erb-BLwkpXUJ-D1H6o7M6.cjs"))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.resolve().then(()=>require("./erlang-CmIiwF3I-3VgdrQXV.cjs"))},{id:"fennel",name:"Fennel",import:()=>Promise.resolve().then(()=>require("./fennel-DNqkz9pE-RbmrEXt1.cjs"))},{id:"fish",name:"Fish",import:()=>Promise.resolve().then(()=>require("./fish-DIm72t2T-CnamI0Ar.cjs"))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>Promise.resolve().then(()=>require("./fluent-BapTxJsC-DFpT66K8.cjs"))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.resolve().then(()=>require("./fortran-fixed-form-s9Hnb3av-CEjzHIOU.cjs"))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>Promise.resolve().then(()=>require("./fortran-free-form-CNDsBFUj-IaGrWIda.cjs"))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.resolve().then(()=>require("./fsharp-Cv0x43wb-BCqXh2V2.cjs"))},{id:"gdresource",name:"GDResource",import:()=>Promise.resolve().then(()=>require("./gdresource-CMcKXvgJ-DKu0rUhv.cjs"))},{id:"gdscript",name:"GDScript",import:()=>Promise.resolve().then(()=>require("./gdscript-D7aheHm--5N_43TPQ.cjs"))},{id:"gdshader",name:"GDShader",import:()=>Promise.resolve().then(()=>require("./gdshader-BGJEsM2Z-Bl85Hrm5.cjs"))},{id:"genie",name:"Genie",import:()=>Promise.resolve().then(()=>require("./genie-C9gPjc6J-DGsxMAbQ.cjs"))},{id:"gherkin",name:"Gherkin",import:()=>Promise.resolve().then(()=>require("./gherkin-bka1Exbx-CVV6nEUH.cjs"))},{id:"git-commit",name:"Git Commit Message",import:()=>Promise.resolve().then(()=>require("./git-commit-BspYIY3P-BVfAvSRj.cjs"))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.resolve().then(()=>require("./git-rebase--zLBTjUa-yZFCfYZI.cjs"))},{id:"gleam",name:"Gleam",import:()=>Promise.resolve().then(()=>require("./gleam-B4k9YFGD-nR4mjrhK.cjs"))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.resolve().then(()=>require("./glimmer-js-DhY9umHJ-B8qSrQ6z.cjs"))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.resolve().then(()=>require("./glimmer-ts-CCrHcYH5-BhxePz75.cjs"))},{id:"glsl",name:"GLSL",import:()=>Promise.resolve().then(()=>require("./glsl-XLGYNq5B-CKVGq6Vy.cjs"))},{id:"gnuplot",name:"Gnuplot",import:()=>Promise.resolve().then(()=>require("./gnuplot-DnWoRZt--CurtDYoJ.cjs"))},{id:"go",name:"Go",import:()=>Promise.resolve().then(()=>require("./go-BErP6iv1-CM9_GlwL.cjs"))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.resolve().then(()=>require("./graphql-DWpQF4JI-DAzySKco.cjs"))},{id:"groovy",name:"Groovy",import:()=>Promise.resolve().then(()=>require("./groovy-IWs5-NIO-BaVp9Il5.cjs"))},{id:"hack",name:"Hack",import:()=>Promise.resolve().then(()=>require("./hack-CQrV-ytR-DlrP0wJF.cjs"))},{id:"haml",name:"Ruby Haml",import:()=>Promise.resolve().then(()=>require("./haml-CMN0hQaL-D-xy9KwO.cjs"))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.resolve().then(()=>require("./handlebars-Cc-7fXX5-C3QFNHjc.cjs"))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>Promise.resolve().then(()=>require("./haskell-CtlGos0K-suhyCHEm.cjs"))},{id:"haxe",name:"Haxe",import:()=>Promise.resolve().then(()=>require("./haxe-CZZ33vZw-BIQU1qHi.cjs"))},{id:"hcl",name:"HashiCorp HCL",import:()=>Promise.resolve().then(()=>require("./hcl-6hOg9WP4-CbQ1yCnz.cjs"))},{id:"hjson",name:"Hjson",import:()=>Promise.resolve().then(()=>require("./hjson-CgwED-oz-Ddklb4QM.cjs"))},{id:"hlsl",name:"HLSL",import:()=>Promise.resolve().then(()=>require("./hlsl-3-lv4gi7-B4NkiBfC.cjs"))},{id:"html",name:"HTML",import:()=>Promise.resolve().then(()=>require("./html-B0P_v3yU-Bx2ubL-P.cjs"))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.resolve().then(()=>require("./html-derivative-D59SHfh8-BWgQxp09.cjs"))},{id:"http",name:"HTTP",import:()=>Promise.resolve().then(()=>require("./http-Dcjm_K1m-CyYiumKc.cjs"))},{id:"hxml",name:"HXML",import:()=>Promise.resolve().then(()=>require("./hxml-BNKImryz-DflK5a38.cjs"))},{id:"hy",name:"Hy",import:()=>Promise.resolve().then(()=>require("./hy-C2xHhR6I-DpyTdO3T.cjs"))},{id:"imba",name:"Imba",import:()=>Promise.resolve().then(()=>require("./imba-Drd0AMDo-CtsqZbnp.cjs"))},{id:"ini",name:"INI",aliases:["properties"],import:()=>Promise.resolve().then(()=>require("./ini-BUcvsX-U-CymULaw_.cjs"))},{id:"java",name:"Java",import:()=>Promise.resolve().then(()=>require("./java-B7odJ7Ap-Bn1Lvoni.cjs"))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>Promise.resolve().then(()=>require("./javascript-fa8UlHZE-Bnnicc83.cjs"))},{id:"jinja",name:"Jinja",import:()=>Promise.resolve().then(()=>require("./jinja-CCSYduCH-DFH8FT_u.cjs"))},{id:"jison",name:"Jison",import:()=>Promise.resolve().then(()=>require("./jison-BygvlveW-CAVWywU2.cjs"))},{id:"json",name:"JSON",import:()=>Promise.resolve().then(()=>require("./json-71t8ZF9g-y-J1j5EW.cjs"))},{id:"json5",name:"JSON5",import:()=>Promise.resolve().then(()=>require("./json5-Z7F6rA6a-CzvlWgZ7.cjs"))},{id:"jsonc",name:"JSON with Comments",import:()=>Promise.resolve().then(()=>require("./jsonc-Dphhs4m2-BnhWfmQw.cjs"))},{id:"jsonl",name:"JSON Lines",import:()=>Promise.resolve().then(()=>require("./jsonl-D9jj92Gg-BbGkWPJz.cjs"))},{id:"jsonnet",name:"Jsonnet",import:()=>Promise.resolve().then(()=>require("./jsonnet-DEQ7IUoJ-Bn--UDZ1.cjs"))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>Promise.resolve().then(()=>require("./jssm-j74e88UX-4CSVp8lc.cjs"))},{id:"jsx",name:"JSX",import:()=>Promise.resolve().then(()=>require("./jsx-Bkesy5tT-D8YwVp-7.cjs"))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.resolve().then(()=>require("./julia-CiahampL-B6MmycY8.cjs"))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>Promise.resolve().then(()=>require("./kotlin-DCgZY7Ii-DDI6myF6.cjs"))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>Promise.resolve().then(()=>require("./kusto-Cw029H-v-OZxALJZT.cjs"))},{id:"latex",name:"LaTeX",import:()=>Promise.resolve().then(()=>require("./latex-LfGCYGw5-BpRkh3pg.cjs"))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>Promise.resolve().then(()=>require("./lean-CYSet4vs-D1iY-35j.cjs"))},{id:"less",name:"Less",import:()=>Promise.resolve().then(()=>require("./less-DQA4v-Nm-DIaY7vQJ.cjs"))},{id:"liquid",name:"Liquid",import:()=>Promise.resolve().then(()=>require("./liquid-CvufO3kO-HvZpXeqg.cjs"))},{id:"log",name:"Log file",import:()=>Promise.resolve().then(()=>require("./log-D2eRfqDn-BIXUeBaj.cjs"))},{id:"logo",name:"Logo",import:()=>Promise.resolve().then(()=>require("./logo-QEAtGWZ9-B2d3b27P.cjs"))},{id:"lua",name:"Lua",import:()=>Promise.resolve().then(()=>require("./lua-BVfhNLDr-uB28QHL6.cjs"))},{id:"luau",name:"Luau",import:()=>Promise.resolve().then(()=>require("./luau-BjYGiqID-CvqAeq4F.cjs"))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>Promise.resolve().then(()=>require("./make-BjuHP00g-Oob5Z9Pk.cjs"))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>Promise.resolve().then(()=>require("./markdown-B6guhLWd-BGBuj4LZ.cjs"))},{id:"marko",name:"Marko",import:()=>Promise.resolve().then(()=>require("./marko-CHlMS8w5-Bly6x4mc.cjs"))},{id:"matlab",name:"MATLAB",import:()=>Promise.resolve().then(()=>require("./matlab-BpQlIJiw-CbN2rF6P.cjs"))},{id:"mdc",name:"MDC",import:()=>Promise.resolve().then(()=>require("./mdc-4K6B6lHG-DgYKiLhu.cjs"))},{id:"mdx",name:"MDX",import:()=>Promise.resolve().then(()=>require("./mdx-DIoECIFU-Cl31h8mi.cjs"))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>Promise.resolve().then(()=>require("./mermaid-BZ7WHNIe-CSogK_LM.cjs"))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>Promise.resolve().then(()=>require("./mipsasm-DusDYkFc-BseoYJQp.cjs"))},{id:"mojo",name:"Mojo",import:()=>Promise.resolve().then(()=>require("./mojo-CY9jaezJ-D8QAG3Ze.cjs"))},{id:"move",name:"Move",import:()=>Promise.resolve().then(()=>require("./move-ChphFumd-DaBrcjat.cjs"))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>Promise.resolve().then(()=>require("./narrat-Dz4d7OmN-oOfAO4q8.cjs"))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>Promise.resolve().then(()=>require("./nextflow-DW0Yq9a2-BxJSKvPb.cjs"))},{id:"nginx",name:"Nginx",import:()=>Promise.resolve().then(()=>require("./nginx-Can2eAjw-rA5kE0A8.cjs"))},{id:"nim",name:"Nim",import:()=>Promise.resolve().then(()=>require("./nim-B3r2RtQZ-CRDytbsR.cjs"))},{id:"nix",name:"Nix",import:()=>Promise.resolve().then(()=>require("./nix-Cg5uV_xg-DNME0Ea7.cjs"))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>Promise.resolve().then(()=>require("./nushell-BfRnzRWn-DI9Z3l3M.cjs"))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>Promise.resolve().then(()=>require("./objective-c-BGg9R27G-DVx8Rcni.cjs"))},{id:"objective-cpp",name:"Objective-C++",import:()=>Promise.resolve().then(()=>require("./objective-cpp-CJ3y3V_5-s6XI7Jvk.cjs"))},{id:"ocaml",name:"OCaml",import:()=>Promise.resolve().then(()=>require("./ocaml-BZLsfx_o-kUzDDUf2.cjs"))},{id:"pascal",name:"Pascal",import:()=>Promise.resolve().then(()=>require("./pascal-l2bqd7Dz-D509_I72.cjs"))},{id:"perl",name:"Perl",import:()=>Promise.resolve().then(()=>require("./perl-DaMQyPwp-C9Yq1yZR.cjs"))},{id:"php",name:"PHP",import:()=>Promise.resolve().then(()=>require("./php-BL3EfPBi-Ctb1WwmF.cjs"))},{id:"plsql",name:"PL/SQL",import:()=>Promise.resolve().then(()=>require("./plsql-oVq_K_wH-C_qH_YOK.cjs"))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>Promise.resolve().then(()=>require("./po-5jaeIyVd-CBsLQIcu.cjs"))},{id:"polar",name:"Polar",import:()=>Promise.resolve().then(()=>require("./polar-wcLp8ci7-De-CDeYv.cjs"))},{id:"postcss",name:"PostCSS",import:()=>Promise.resolve().then(()=>require("./postcss-BZ3MNRIJ-BtcsgaYj.cjs"))},{id:"powerquery",name:"PowerQuery",import:()=>Promise.resolve().then(()=>require("./powerquery-CgRa2XRw-B0rHn13V.cjs"))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>Promise.resolve().then(()=>require("./powershell-Diwyv8Eh-rCX2OYXT.cjs"))},{id:"prisma",name:"Prisma",import:()=>Promise.resolve().then(()=>require("./prisma-COL_v1x4-BaaUHYMp.cjs"))},{id:"prolog",name:"Prolog",import:()=>Promise.resolve().then(()=>require("./prolog-CuvJOxqT-DrXD2tGS.cjs"))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>Promise.resolve().then(()=>require("./proto-o9HLmF90-BtmQjBQu.cjs"))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.resolve().then(()=>require("./pug-HKe4Luo3-DATD2ck2.cjs"))},{id:"puppet",name:"Puppet",import:()=>Promise.resolve().then(()=>require("./puppet-wpGOnQp5-cIrXIuy8.cjs"))},{id:"purescript",name:"PureScript",import:()=>Promise.resolve().then(()=>require("./purescript-B_1NgE2N-CX9QPs2N.cjs"))},{id:"python",name:"Python",aliases:["py"],import:()=>Promise.resolve().then(()=>require("./python-xYxLFJY--B9x3euv6.cjs"))},{id:"qml",name:"QML",import:()=>Promise.resolve().then(()=>require("./qml-FlMIyjU9-DosAZz3a.cjs"))},{id:"qmldir",name:"QML Directory",import:()=>Promise.resolve().then(()=>require("./qmldir-BInDYbpo-DNF9H2ir.cjs"))},{id:"qss",name:"Qt Style Sheets",import:()=>Promise.resolve().then(()=>require("./qss-D-h4NdUG-C744dLby.cjs"))},{id:"r",name:"R",import:()=>Promise.resolve().then(()=>require("./r-F-9I-ITZ-DgOc9oMe.cjs"))},{id:"racket",name:"Racket",import:()=>Promise.resolve().then(()=>require("./racket-BoD1TBFT-Do9_vqnd.cjs"))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>Promise.resolve().then(()=>require("./raku-IaYcw19m-BW8wAUIz.cjs"))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.resolve().then(()=>require("./razor-CeqqNtyB-BA9H6h3O.cjs"))},{id:"reg",name:"Windows Registry Script",import:()=>Promise.resolve().then(()=>require("./reg-CMUdAgIP-CGWN_v-z.cjs"))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>Promise.resolve().then(()=>require("./regexp-GiFkbxS--N7Z4hEeU.cjs"))},{id:"rel",name:"Rel",import:()=>Promise.resolve().then(()=>require("./rel-BaRn3QX7-BYqA7mnV.cjs"))},{id:"riscv",name:"RISC-V",import:()=>Promise.resolve().then(()=>require("./riscv-B9V3SsvW-ayQMUpo9.cjs"))},{id:"rst",name:"reStructuredText",import:()=>Promise.resolve().then(()=>require("./rst-C3D6-dqL-BT5HStkB.cjs"))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.resolve().then(()=>require("./ruby-DcPLUUK3-wN4H1UJ4.cjs"))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>Promise.resolve().then(()=>require("./rust-Pc7DCsZD-BnFKGEfa.cjs"))},{id:"sas",name:"SAS",import:()=>Promise.resolve().then(()=>require("./sas-tDSYjXcL-CVXyyAVy.cjs"))},{id:"sass",name:"Sass",import:()=>Promise.resolve().then(()=>require("./sass-iCyS6eP9-B9gYryDE.cjs"))},{id:"scala",name:"Scala",import:()=>Promise.resolve().then(()=>require("./scala-Cly-fENF-C85dOwSU.cjs"))},{id:"scheme",name:"Scheme",import:()=>Promise.resolve().then(()=>require("./scheme-Zi24oEYu-B_XUaARm.cjs"))},{id:"scss",name:"SCSS",import:()=>Promise.resolve().then(()=>require("./scss-DhHc4lxB-DlTye6oP.cjs"))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>Promise.resolve().then(()=>require("./sdbl-BBamrXFL-7Y5u0OW0.cjs"))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>Promise.resolve().then(()=>require("./shaderlab-CvqEIoL0-CHjycJTX.cjs"))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>Promise.resolve().then(()=>require("./shellscript-Dn0-btNd-3DYM9fut.cjs"))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.resolve().then(()=>require("./shellsession-8OLo3sB6-1ZxGYG-g.cjs"))},{id:"smalltalk",name:"Smalltalk",import:()=>Promise.resolve().then(()=>require("./smalltalk-Cns31tKw-CCvytUuW.cjs"))},{id:"solidity",name:"Solidity",import:()=>Promise.resolve().then(()=>require("./solidity-BG_k8fA_-BcNcjFC4.cjs"))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.resolve().then(()=>require("./soy-EwHMOVPj-BYqzy0Qe.cjs"))},{id:"sparql",name:"SPARQL",import:()=>Promise.resolve().then(()=>require("./sparql-DhuelBut-De7XP5Cr.cjs"))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>Promise.resolve().then(()=>require("./splunk-CTqDjQdo-CzITjJj7.cjs"))},{id:"sql",name:"SQL",import:()=>Promise.resolve().then(()=>require("./sql-DCkt643--BqWZrLHB.cjs"))},{id:"ssh-config",name:"SSH Config",import:()=>Promise.resolve().then(()=>require("./ssh-config-DHHGll-v-DUPeuEdB.cjs"))},{id:"stata",name:"Stata",import:()=>Promise.resolve().then(()=>require("./stata-Dok6hMw0-Dx7ri5v3.cjs"))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>Promise.resolve().then(()=>require("./stylus-n_9f0QQ5-ByHs6N-o.cjs"))},{id:"svelte",name:"Svelte",import:()=>Promise.resolve().then(()=>require("./svelte-01qw6Rxm-Dkzwx26T.cjs"))},{id:"swift",name:"Swift",import:()=>Promise.resolve().then(()=>require("./swift-BAWqNR8A-C5DnOriA.cjs"))},{id:"system-verilog",name:"SystemVerilog",import:()=>Promise.resolve().then(()=>require("./system-verilog-Cui-g-ut-ClPLYLwh.cjs"))},{id:"systemd",name:"Systemd Units",import:()=>Promise.resolve().then(()=>require("./systemd-CsKYQIQK-BASX0DlX.cjs"))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>Promise.resolve().then(()=>require("./talonscript-D2dGh8FO-DkCSnLHD.cjs"))},{id:"tasl",name:"Tasl",import:()=>Promise.resolve().then(()=>require("./tasl-D3W8HMV6-BAQJK7KZ.cjs"))},{id:"tcl",name:"Tcl",import:()=>Promise.resolve().then(()=>require("./tcl-2y0Fuc4S-CwJAYTvh.cjs"))},{id:"templ",name:"Templ",import:()=>Promise.resolve().then(()=>require("./templ-Hmy8U0DD-zKf-hrbF.cjs"))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>Promise.resolve().then(()=>require("./terraform-BGW6Oerf-s-pzyVvp.cjs"))},{id:"tex",name:"TeX",import:()=>Promise.resolve().then(()=>require("./tex-mHs7a43s-CNkFtfz8.cjs"))},{id:"toml",name:"TOML",import:()=>Promise.resolve().then(()=>require("./toml-CQSfOn0e-CyMM7IXy.cjs"))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.resolve().then(()=>require("./ts-tags-DYZ4SGcN-BlDvJKty.cjs"))},{id:"tsv",name:"TSV",import:()=>Promise.resolve().then(()=>require("./tsv-BtvSkaG0-DqNGnuVj.cjs"))},{id:"tsx",name:"TSX",import:()=>Promise.resolve().then(()=>require("./tsx-DiGsgWT8-DpBRUnKC.cjs"))},{id:"turtle",name:"Turtle",import:()=>Promise.resolve().then(()=>require("./turtle-BJ2wmjPc-DfO3eAsu.cjs"))},{id:"twig",name:"Twig",import:()=>Promise.resolve().then(()=>require("./twig-BmytkGQV-Cn_QYGU2.cjs"))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>Promise.resolve().then(()=>require("./typescript-buWNZFwO-BqvpT6pB.cjs"))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>Promise.resolve().then(()=>require("./typespec-bLbdsxJL-P-ZVy8yC.cjs"))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.resolve().then(()=>require("./typst-Y9_SmXTs-BVh2IsT9.cjs"))},{id:"v",name:"V",import:()=>Promise.resolve().then(()=>require("./v-wa8Orrdd-BUlE9136.cjs"))},{id:"vala",name:"Vala",import:()=>Promise.resolve().then(()=>require("./vala-DRdriFr_-BIymb2K_.cjs"))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>Promise.resolve().then(()=>require("./vb-E2_-jk4M-IXOh8mqV.cjs"))},{id:"verilog",name:"Verilog",import:()=>Promise.resolve().then(()=>require("./verilog-B1iBoR5_-BiglCqvO.cjs"))},{id:"vhdl",name:"VHDL",import:()=>Promise.resolve().then(()=>require("./vhdl-CRVaAhXk-CJUzuS2t.cjs"))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>Promise.resolve().then(()=>require("./viml-B-zWOd7Z-B1nKLcgt.cjs"))},{id:"vue",name:"Vue",import:()=>Promise.resolve().then(()=>require("./vue-Bl1uVNsA-B4RiOuMx.cjs"))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.resolve().then(()=>require("./vue-html-DHr5wjBG-BMqayJuq.cjs"))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>Promise.resolve().then(()=>require("./vyper-DWutKXpa-CO9xUkIY.cjs"))},{id:"wasm",name:"WebAssembly",import:()=>Promise.resolve().then(()=>require("./wasm-Bv5f0gKv-CdIThIat.cjs"))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>Promise.resolve().then(()=>require("./wenyan-BMYnfus1-BSJ3fk7e.cjs"))},{id:"wgsl",name:"WGSL",import:()=>Promise.resolve().then(()=>require("./wgsl-DnPoPGDU-d3zZE7ZN.cjs"))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>Promise.resolve().then(()=>require("./wikitext-CntM04PE-BRCqXN2g.cjs"))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>Promise.resolve().then(()=>require("./wolfram-Ws5qPlX9-C3rR92zj.cjs"))},{id:"xml",name:"XML",import:()=>Promise.resolve().then(()=>require("./xml-ChBsf5uy-CyV-nzFi.cjs"))},{id:"xsl",name:"XSL",import:()=>Promise.resolve().then(()=>require("./xsl-BefjlXrd-Bgz0N8I4.cjs"))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>Promise.resolve().then(()=>require("./yaml-Bbg74JKr-7DV6pRKj.cjs"))},{id:"zenscript",name:"ZenScript",import:()=>Promise.resolve().then(()=>require("./zenscript-C0RKE4nU-BWMxwjeH.cjs"))},{id:"zig",name:"Zig",import:()=>Promise.resolve().then(()=>require("./zig-D6SXBGNm-yAcNfpgW.cjs"))}],zb=Object.fromEntries(Md.map(e=>[e.id,e.import])),Ub=Object.fromEntries(Md.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Wb={...zb,...Ub},Hb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>Promise.resolve().then(()=>require("./andromeeda-uXNdzNpk-BXc5FOIb.cjs"))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>Promise.resolve().then(()=>require("./aurora-x-BwoVEUWZ-C5IpmIOG.cjs"))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./ayu-dark-CxPZkpb2-Cv7nTiif.cjs"))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-frappe-BrTOiad2-DXAedND3.cjs"))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>Promise.resolve().then(()=>require("./catppuccin-latte-D-dc_R4m-mwGw3-Ej.cjs"))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-macchiato-DN4jOp0G-cQCk9ADg.cjs"))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-mocha-B8yCE3-3-ClSzDZSl.cjs"))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>Promise.resolve().then(()=>require("./dark-plus-pUHDTVV0-Cd5emcYO.cjs"))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-BtZx2Kac-BNgwAJ-d.cjs"))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-soft-BKa-aqBv-BHZ7sHFu.cjs"))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./everforest-dark-DMCBqXCK-_sBMomR1.cjs"))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>Promise.resolve().then(()=>require("./everforest-light-BbXl82Em-H0xoYxl0.cjs"))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-DenFmJkN-BKL9xNgN.cjs"))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-default-BJPUVz4H-Dsv5MuSi.cjs"))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-dimmed-DUshB20C-CtB9hz8U.cjs"))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-high-contrast-D3aGCnF8-BqZVM-jF.cjs"))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-JYsPkUQd-BFTOhCbz.cjs"))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-default-D99KPAby-BZoWH9dH.cjs"))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-high-contrast-BbmZE-Mp-Ks3kPGJU.cjs"))},{id:"houston",displayName:"Houston",type:"dark",import:()=>Promise.resolve().then(()=>require("./houston-BDYrDoDW-T57H3gQZ.cjs"))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-dragon-CiKur4Hl-BJZF7xDr.cjs"))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>Promise.resolve().then(()=>require("./kanagawa-lotus-BKu-smKu-BhgzmRV4.cjs"))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-wave-CQwozSzG-BgJip59C.cjs"))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>Promise.resolve().then(()=>require("./laserwave-6a00oqik-CIb51Re4.cjs"))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>Promise.resolve().then(()=>require("./light-plus-CZuVqSLX-B5D0le0o.cjs"))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-D6KBX41T-Dj0-OyRN.cjs"))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-darker-CkRroheE-Dvfs29ir.cjs"))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>Promise.resolve().then(()=>require("./material-theme-lighter-BUBw43Yz-EU3ZGl_r.cjs"))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-ocean-ClGX14Ja-px_3Pwqa.cjs"))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-palenight-C1RVm8K1-38jxvsGX.cjs"))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./min-dark-C7ak0t6c-tt5o_I5e.cjs"))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>Promise.resolve().then(()=>require("./min-light-CKFxVcPp-tmTHl_CQ.cjs"))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>Promise.resolve().then(()=>require("./monokai-C1KBYcO0-DMIxv6MM.cjs"))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>Promise.resolve().then(()=>require("./night-owl-Bm2rzalh-BN78kThQ.cjs"))},{id:"nord",displayName:"Nord",type:"dark",import:()=>Promise.resolve().then(()=>require("./nord-CC5OiUXg-Ca5AGUWc.cjs"))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>Promise.resolve().then(()=>require("./one-dark-pro-D7-kP8fv-JOzzHStv.cjs"))},{id:"one-light",displayName:"One Light",type:"light",import:()=>Promise.resolve().then(()=>require("./one-light-D9sNaUtq-020-h_lv.cjs"))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>Promise.resolve().then(()=>require("./plastic-CSTz3KZp-r5piqq-S.cjs"))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>Promise.resolve().then(()=>require("./poimandres-C-VADXHD-BLP3NNjc.cjs"))},{id:"red",displayName:"Red",type:"dark",import:()=>Promise.resolve().then(()=>require("./red-7y8PH7HH-BQGOv1D5.cjs"))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-DhT-HZE9-DKEdv1Oe.cjs"))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>Promise.resolve().then(()=>require("./rose-pine-dawn-DiCjL2i4-Bvt6DtVH.cjs"))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-moon-BNmGHlcn-cHuJy0Ng.cjs"))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./slack-dark-i7wN4OET-akqwQ7ED.cjs"))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>Promise.resolve().then(()=>require("./slack-ochin-ndHf0LoP-BoQQWmTv.cjs"))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>Promise.resolve().then(()=>require("./snazzy-light-BlSJXAu4-D_IwRieF.cjs"))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./solarized-dark-UTmkh7lw-gmm-WbDC.cjs"))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>Promise.resolve().then(()=>require("./solarized-light-BheCkDPT-DzcxRSZP.cjs"))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>Promise.resolve().then(()=>require("./synthwave-84-NU3C_KFZ-BBRLOmNT.cjs"))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>Promise.resolve().then(()=>require("./tokyo-night-LhP3hHhi-9T7_vGSy.cjs"))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>Promise.resolve().then(()=>require("./vesper-CJsaOsSM-DqLWLxOu.cjs"))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-black-BoGvW84i-MF-1S1MG.cjs"))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-dark-Cym-eLtO-SIffJYSe.cjs"))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>Promise.resolve().then(()=>require("./vitesse-light-CcmG315c-U63SkYGT.cjs"))}],Vb=Object.fromEntries(Hb.map(e=>[e.id,e.import]));let fr=class extends Error{constructor(e){super(e),this.name="ShikiError"}},nl=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Gb(){return 2147483648}function Kb(){return typeof performance<"u"?performance.now():Date.now()}const Qb=(e,t)=>e+(t-e%t)%t;async function Yb(e){let t,r;const n={};function o(f){r=f,n.HEAPU8=new Uint8Array(f),n.HEAPU32=new Uint32Array(f)}function a(f,g,y){n.HEAPU8.copyWithin(f,g,g+y)}function i(f){try{return t.grow(f-r.byteLength+65535>>>16),o(t.buffer),1}catch{}}function s(f){const g=n.HEAPU8.length;f=f>>>0;const y=Gb();if(f>y)return!1;for(let v=1;v<=4;v*=2){let b=g*(1+.2/v);b=Math.min(b,f+100663296);const C=Math.min(y,Qb(Math.max(f,b),65536));if(i(C))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(f,g,y=1024){const v=g+y;let b=g;for(;f[b]&&!(b>=v);)++b;if(b-g>16&&f.buffer&&l)return l.decode(f.subarray(g,b));let C="";for(;g<b;){let w=f[g++];if(!(w&128)){C+=String.fromCharCode(w);continue}const k=f[g++]&63;if((w&224)===192){C+=String.fromCharCode((w&31)<<6|k);continue}const j=f[g++]&63;if((w&240)===224?w=(w&15)<<12|k<<6|j:w=(w&7)<<18|k<<12|j<<6|f[g++]&63,w<65536)C+=String.fromCharCode(w);else{const P=w-65536;C+=String.fromCharCode(55296|P>>10,56320|P&1023)}}return C}function u(f,g){return f?c(n.HEAPU8,f,g):""}const p={emscripten_get_now:Kb,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await e({env:p,wasi_snapshot_preview1:p});t=f.memory,o(t.buffer),Object.assign(n,f),n.UTF8ToString=u}return await h(),n}var Jb=Object.defineProperty,Xb=(e,t,r)=>t in e?Jb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t,r)=>(Xb(e,typeof t!="symbol"?t+"":t,r),r);let nt=null;function Zb(e){throw new nl(e.UTF8ToString(e.getLastOnigError()))}class ii{constructor(t){Ze(this,"utf16Length"),Ze(this,"utf8Length"),Ze(this,"utf16Value"),Ze(this,"utf8Value"),Ze(this,"utf16OffsetToUtf8"),Ze(this,"utf8OffsetToUtf16");const r=t.length,n=ii._utf8ByteLength(t),o=n!==r,a=o?new Uint32Array(r+1):null;o&&(a[r]=n);const i=o?new Uint32Array(n+1):null;o&&(i[n]=r);const s=new Uint8Array(n);let l=0;for(let c=0;c<r;c++){const u=t.charCodeAt(c);let p=u,h=!1;if(u>=55296&&u<=56319&&c+1<r){const f=t.charCodeAt(c+1);f>=56320&&f<=57343&&(p=(u-55296<<10)+65536|f-56320,h=!0)}o&&(a[c]=l,h&&(a[c+1]=l),p<=127?i[l+0]=c:p<=2047?(i[l+0]=c,i[l+1]=c):p<=65535?(i[l+0]=c,i[l+1]=c,i[l+2]=c):(i[l+0]=c,i[l+1]=c,i[l+2]=c,i[l+3]=c)),p<=127?s[l++]=p:p<=2047?(s[l++]=192|(p&1984)>>>6,s[l++]=128|(p&63)>>>0):p<=65535?(s[l++]=224|(p&61440)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0):(s[l++]=240|(p&1835008)>>>18,s[l++]=128|(p&258048)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0),h&&c++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let r=0;for(let n=0,o=t.length;n<o;n++){const a=t.charCodeAt(n);let i=a,s=!1;if(a>=55296&&a<=56319&&n+1<o){const l=t.charCodeAt(n+1);l>=56320&&l<=57343&&(i=(a-55296<<10)+65536|l-56320,s=!0)}i<=127?r+=1:i<=2047?r+=2:i<=65535?r+=3:r+=4,s&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const Zt=class{constructor(e){if(Ze(this,"id",++Zt.LAST_ID),Ze(this,"_onigBinding"),Ze(this,"content"),Ze(this,"utf16Length"),Ze(this,"utf8Length"),Ze(this,"utf16OffsetToUtf8"),Ze(this,"utf8OffsetToUtf16"),Ze(this,"ptr"),!nt)throw new nl("Must invoke loadWasm first.");this._onigBinding=nt,this.content=e;const t=new ii(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!Zt._sharedPtrInUse?(Zt._sharedPtr||(Zt._sharedPtr=nt.omalloc(1e4)),Zt._sharedPtrInUse=!0,nt.HEAPU8.set(t.utf8Value,Zt._sharedPtr),this.ptr=Zt._sharedPtr):this.ptr=t.createString(nt)}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===Zt._sharedPtr?Zt._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Lo=Zt;Ze(Lo,"LAST_ID",0);Ze(Lo,"_sharedPtr",0);Ze(Lo,"_sharedPtrInUse",!1);class e0{constructor(t){if(Ze(this,"_onigBinding"),Ze(this,"_ptr"),!nt)throw new nl("Must invoke loadWasm first.");const r=[],n=[];for(let s=0,l=t.length;s<l;s++){const c=new ii(t[s]);r[s]=c.createString(nt),n[s]=c.utf8Length}const o=nt.omalloc(4*t.length);nt.HEAPU32.set(r,o/4);const a=nt.omalloc(4*t.length);nt.HEAPU32.set(n,a/4);const i=nt.createOnigScanner(o,a,t.length);for(let s=0,l=t.length;s<l;s++)nt.ofree(r[s]);nt.ofree(a),nt.ofree(o),i===0&&Zb(nt),this._onigBinding=nt,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let o=0;if(typeof n=="number"&&(o=n),typeof t=="string"){t=new Lo(t);const a=this._findNextMatchSync(t,r,!1,o);return t.dispose(),a}return this._findNextMatchSync(t,r,!1,o)}_findNextMatchSync(t,r,n,o){const a=this._onigBinding,i=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),o);if(i===0)return null;const s=a.HEAPU32;let l=i/4;const c=s[l++],u=s[l++],p=[];for(let h=0;h<u;h++){const f=t.convertUtf8OffsetToUtf16(s[l++]),g=t.convertUtf8OffsetToUtf16(s[l++]);p[h]={start:f,end:g,length:g-f}}return{index:c,captureIndices:p}}}function t0(e){return typeof e.instantiator=="function"}function r0(e){return typeof e.default=="function"}function n0(e){return typeof e.data<"u"}function o0(e){return typeof Response<"u"&&e instanceof Response}function a0(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let na;function i0(e){if(na)return na;async function t(){nt=await Yb(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),t0(n)?n=await n.instantiator(r):r0(n)?n=await n.default(r):(n0(n)&&(n=n.data),o0(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await s0(n)(r):n=await l0(n)(r):a0(n)?n=await _i(n)(r):n instanceof WebAssembly.Module?n=await _i(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await _i(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return na=t(),na}function _i(e){return t=>WebAssembly.instantiate(e,t)}function s0(e){return t=>WebAssembly.instantiateStreaming(e,t)}function l0(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}let c0;function u0(){return c0}async function Ad(e){return e&&await i0(e),{createScanner(t){return new e0(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new Lo(t)}}}function d0(e){return ol(e)}function ol(e){return Array.isArray(e)?p0(e):e instanceof RegExp?e:typeof e=="object"?h0(e):e}function p0(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=ol(e[r]);return t}function h0(e){let t={};for(let r in e)t[r]=ol(e[r]);return t}function _d(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function Od(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Od(e.substring(0,e.length-1)):e.substr(~t+1)}var Oi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,oa=class{static hasCaptures(e){return e===null?!1:(Oi.lastIndex=0,Oi.test(e))}static replaceCaptures(e,t,r){return e.replace(Oi,(n,o,a,i)=>{let s=r[parseInt(o||a,10)];if(s){let l=t.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function Ld(e,t){return e<t?-1:e>t?1:0}function $d(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let o=0;o<r;o++){let a=Ld(e[o],t[o]);if(a!==0)return a}return 0}return r-n}function Oc(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 Dd(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Bd=class{constructor(e){T(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Ta=class{constructor(e,t,r){T(this,"_cachedMatchRoot",new Bd(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(g0(e),t)}static createFromParsedTheme(e,t){return b0(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(n=>m0(e.parent,n.parentScopes));return r?new qd(r.fontStyle,r.foreground,r.background):null}},Li=class ga{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new ga(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new ga(r,t[n]);return r}push(t){return new ga(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function m0(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],o=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],o=!0}for(;e&&!f0(e.scopeName,n);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function f0(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var qd=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function g0(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let o=0,a=t.length;o<a;o++){let i=t[o];if(!i.settings)continue;let s;if(typeof i.scope=="string"){let p=i.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),s=p.split(",")}else Array.isArray(i.scope)?s=i.scope:s=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let p=i.settings.fontStyle.split(" ");for(let h=0,f=p.length;h<f;h++)switch(p[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Oc(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Oc(i.settings.background)&&(u=i.settings.background);for(let p=0,h=s.length;p<h;p++){let f=s[p].trim().split(" "),g=f[f.length-1],y=null;f.length>1&&(y=f.slice(0,f.length-1),y.reverse()),r[n++]=new y0(g,y,o,l,c,u)}}return r}var y0=class{constructor(e,t,r,n,o,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=o,this.background=a}},hr=(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))(hr||{});function b0(e,t){e.sort((l,c)=>{let u=Ld(l.scope,c.scope);return u!==0||(u=$d(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let r=0,n="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(o=l.background)}let a=new x0(t),i=new qd(r,a.getId(n),a.getId(o)),s=new S0(new as(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let u=e[l];s.insert(0,u.scope,u.parentScopes,u.fontStyle,a.getId(u.foreground),a.getId(u.background))}return new Ta(a,i,s)}var x0=class{constructor(e){T(this,"_isFrozen");T(this,"_lastColorId");T(this,"_id2color");T(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},v0=Object.freeze([]),as=class Fd{constructor(t,r,n,o,a){T(this,"scopeDepth");T(this,"parentScopes");T(this,"fontStyle");T(this,"foreground");T(this,"background");this.scopeDepth=t,this.parentScopes=r||v0,this.fontStyle=n,this.foreground=o,this.background=a}clone(){return new Fd(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,o=t.length;n<o;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),o!==0&&(this.background=o)}},S0=class is{constructor(t,r=[],n={}){T(this,"_rulesWithParentScopes");this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,o=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[o]===">"&&o++,!(n>=t.parentScopes.length||o>=r.parentScopes.length);){const a=r.parentScopes[o].length-t.parentScopes[n].length;if(a!==0)return a;n++,o++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),o,a;if(n===-1?(o=t,a=""):(o=t.substring(0,n),a=t.substring(n+1)),this._children.hasOwnProperty(o))return this._children[o].match(a)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(is._cmpBySpecificity),r}insert(t,r,n,o,a,i){if(r===""){this._doInsertHere(t,n,o,a,i);return}let s=r.indexOf("."),l,c;s===-1?(l=r,c=""):(l=r.substring(0,s),c=r.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new is(this._mainRule.clone(),as.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,c,n,o,a,i)}_doInsertHere(t,r,n,o,a){if(r===null){this._mainRule.acceptOverwrite(t,n,o,a);return}for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let l=this._rulesWithParentScopes[i];if($d(l.parentScopes,r)===0){l.acceptOverwrite(t,n,o,a);return}}n===-1&&(n=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new as(t,r,n,o,a))}},An=class Tt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=Tt.getLanguageId(t),n=Tt.getTokenType(t),o=Tt.getFontStyle(t),a=Tt.getForeground(t),i=Tt.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:o,foreground:a,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,o,a,i,s){let l=Tt.getLanguageId(t),c=Tt.getTokenType(t),u=Tt.containsBalancedBrackets(t)?1:0,p=Tt.getFontStyle(t),h=Tt.getForeground(t),f=Tt.getBackground(t);return r!==0&&(l=r),n!==8&&(c=n),o!==null&&(u=o?1:0),a!==-1&&(p=a),i!==0&&(h=i),s!==0&&(f=s),(l<<0|c<<8|u<<10|p<<11|h<<15|f<<24)>>>0}};function Na(e,t){const r=[],n=w0(e);let o=n.next();for(;o!==null;){let l=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=n.next()}let c=i();if(r.push({matcher:c,priority:l}),o!==",")break;o=n.next()}return r;function a(){if(o==="-"){o=n.next();const l=a();return c=>!!l&&!l(c)}if(o==="("){o=n.next();const l=s();return o===")"&&(o=n.next()),l}if(Lc(o)){const l=[];do l.push(o),o=n.next();while(Lc(o));return c=>t(l,c)}return null}function i(){const l=[];let c=a();for(;c;)l.push(c),c=a();return u=>l.every(p=>p(u))}function s(){const l=[];let c=i();for(;c&&(l.push(c),o==="|"||o===",");){do o=n.next();while(o==="|"||o===",");c=i()}return u=>l.some(p=>p(u))}}function Lc(e){return!!e&&!!e.match(/[\w\.:]+/)}function w0(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function zd(e){typeof e.dispose=="function"&&e.dispose()}var So=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},C0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},k0=class{constructor(){T(this,"_references",[]);T(this,"_seenReferenceKeys",new Set);T(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},P0=class{constructor(e,t){T(this,"seenFullScopeRequests",new Set);T(this,"seenPartialScopeRequests",new Set);T(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new So(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new k0;for(const r of e)I0(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof So){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function I0(e,t,r,n){const o=r.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=r.lookup(t);e instanceof So?ya({baseGrammar:a,selfGrammar:o},n):ss(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},n);const i=r.injections(e.scopeName);if(i)for(const s of i)n.add(new So(s))}function ss(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];Ma([n],t,r)}}function ya(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ma(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ma(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ma(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const o=n.repository?_d({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&Ma(n.patterns,{...t,repository:o},r);const a=n.include;if(!a)continue;const i=Ud(a);switch(i.kind){case 0:ya({...t,selfGrammar:t.baseGrammar},r);break;case 1:ya(t,r);break;case 2:ss(i.ruleName,{...t,repository:o},r);break;case 3:case 4:const s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:o};i.kind===4?ss(i.ruleName,l,r):ya(l,r)}else i.kind===4?r.add(new C0(i.scopeName,i.ruleName)):r.add(new So(i.scopeName));break}}}var j0=class{constructor(){T(this,"kind",0)}},E0=class{constructor(){T(this,"kind",1)}},R0=class{constructor(e){T(this,"kind",2);this.ruleName=e}},T0=class{constructor(e){T(this,"kind",3);this.scopeName=e}},N0=class{constructor(e,t){T(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Ud(e){if(e==="$base")return new j0;if(e==="$self")return new E0;const t=e.indexOf("#");if(t===-1)return new T0(e);if(t===0)return new R0(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new N0(r,n)}}var M0=/\\(\d+)/,$c=/\\(\d+)/g,A0=-1,Wd=-2,$o=class{constructor(e,t,r,n){T(this,"$location");T(this,"id");T(this,"_nameIsCapturing");T(this,"_name");T(this,"_contentNameIsCapturing");T(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=oa.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=oa.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Od(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:oa.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:oa.replaceCaptures(this._contentName,e,t)}},_0=class extends $o{constructor(t,r,n,o,a){super(t,r,n,o);T(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,n,o){throw new Error("Not supported!")}},O0=class extends $o{constructor(t,r,n,o,a){super(t,r,n,null);T(this,"_match");T(this,"captures");T(this,"_cachedCompiledPatterns");this._match=new wo(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,o){return this._getCachedCompiledPatterns(t).compileAG(t,n,o)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Co,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Dc=class extends $o{constructor(t,r,n,o,a){super(t,r,n,o);T(this,"hasMissingPatterns");T(this,"patterns");T(this,"_cachedCompiledPatterns");this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const n of this.patterns)t.getRule(n).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,o){return this._getCachedCompiledPatterns(t).compileAG(t,n,o)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Co,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ls=class extends $o{constructor(t,r,n,o,a,i,s,l,c,u){super(t,r,n,o);T(this,"_begin");T(this,"beginCaptures");T(this,"_end");T(this,"endHasBackReferences");T(this,"endCaptures");T(this,"applyEndPatternLast");T(this,"hasMissingPatterns");T(this,"patterns");T(this,"_cachedCompiledPatterns");this._begin=new wo(a,this.id),this.beginCaptures=i,this._end=new wo(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,n,o){return this._getCachedCompiledPatterns(t,r).compileAG(t,n,o)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Co;for(const n of this.patterns)t.getRule(n).collectPatterns(t,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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},Aa=class extends $o{constructor(t,r,n,o,a,i,s,l,c){super(t,r,n,o);T(this,"_begin");T(this,"beginCaptures");T(this,"whileCaptures");T(this,"_while");T(this,"whileHasBackReferences");T(this,"hasMissingPatterns");T(this,"patterns");T(this,"_cachedCompiledPatterns");T(this,"_cachedCompiledWhilePatterns");this._begin=new wo(a,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new wo(s,Wd),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(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,o){return this._getCachedCompiledPatterns(t).compileAG(t,n,o)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Co;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,n,o){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,n,o)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Co,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},Hd=class lt{static createCaptureRule(t,r,n,o,a){return t.registerRule(i=>new _0(r,i,n,o,a))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(o=>{if(t.id=o,t.match)return new O0(t.$vscodeTextmateLocation,t.id,t.name,t.match,lt._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=_d({},n,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new Dc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,lt._compilePatterns(a,r,n))}return t.while?new Aa(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,lt._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,lt._compileCaptures(t.whileCaptures||t.captures,r,n),lt._compilePatterns(t.patterns,r,n)):new ls(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,lt._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,lt._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,lt._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let o=[];if(t){let a=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const s=parseInt(i,10);s>a&&(a=s)}for(let i=0;i<=a;i++)o[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const s=parseInt(i,10);let l=0;t[i].patterns&&(l=lt.getCompiledRuleId(t[i],r,n)),o[s]=lt.createCaptureRule(r,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return o}static _compilePatterns(t,r,n){let o=[];if(t)for(let a=0,i=t.length;a<i;a++){const s=t[a];let l=-1;if(s.include){const c=Ud(s.include);switch(c.kind){case 0:case 1:l=lt.getCompiledRuleId(n[s.include],r,n);break;case 2:let u=n[c.ruleName];u&&(l=lt.getCompiledRuleId(u,r,n));break;case 3:case 4:const p=c.scopeName,h=c.kind===4?c.ruleName:null,f=r.getExternalGrammar(p,n);if(f)if(h){let g=f.repository[h];g&&(l=lt.getCompiledRuleId(g,r,f.repository))}else l=lt.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else l=lt.getCompiledRuleId(s,r,n);if(l!==-1){const c=r.getRule(l);let u=!1;if((c instanceof Dc||c instanceof ls||c instanceof Aa)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},wo=class Vd{constructor(t,r){T(this,"source");T(this,"ruleId");T(this,"hasAnchor");T(this,"hasBackReferences");T(this,"_anchorCache");if(t&&typeof t=="string"){const n=t.length;let o=0,a=[],i=!1;for(let s=0;s<n;s++)if(t.charAt(s)==="\\"&&s+1<n){const l=t.charAt(s+1);l==="z"?(a.push(t.substring(o,s)),a.push("$(?!\\n)(?<!\\n)"),o=s+2):(l==="A"||l==="G")&&(i=!0),s++}this.hasAnchor=i,o===0?this.source=t:(a.push(t.substring(o,n)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=M0.test(this.source):this.hasBackReferences=!1}clone(){return new Vd(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(o=>t.substring(o.start,o.end));return $c.lastIndex=0,this.source.replace($c,(o,a)=>Dd(n[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],o=[],a,i,s,l;for(a=0,i=this.source.length;a<i;a++)s=this.source.charAt(a),t[a]=s,r[a]=s,n[a]=s,o[a]=s,s==="\\"&&a+1<i&&(l=this.source.charAt(a+1),l==="A"?(t[a+1]="￿",r[a+1]="￿",n[a+1]="A",o[a+1]="A"):l==="G"?(t[a+1]="￿",r[a+1]="G",n[a+1]="￿",o[a+1]="G"):(t[a+1]=l,r[a+1]=l,n[a+1]=l,o[a+1]=l),a++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:o.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Co=class{constructor(){T(this,"_items");T(this,"_hasAnchors");T(this,"_cached");T(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new Bc(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(o=>o.resolveAnchors(t,r));return new Bc(e,n,this._items.map(o=>o.ruleId))}},Bc=class{constructor(e,t,r){T(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
38
- `)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},$i=class{constructor(e,t){this.languageId=e,this.tokenType=t}},pr,L0=(pr=class{constructor(t,r){T(this,"_defaultAttributes");T(this,"_embeddedLanguagesMatcher");T(this,"_getBasicScopeAttributes",new Bd(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new $i(r,n)}));this._defaultAttributes=new $i(t,8),this._embeddedLanguagesMatcher=new $0(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?pr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(pr.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},T(pr,"_NULL_SCOPE_METADATA",new $i(0,0)),T(pr,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),pr),$0=class{constructor(e){T(this,"values");T(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>Dd(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var qc=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Gd(e,t,r,n,o,a,i,s){const l=t.content.length;let c=!1,u=-1;if(i){const f=D0(e,t,r,n,o,a);o=f.stack,n=f.linePos,r=f.isFirstLine,u=f.anchorPosition}const p=Date.now();for(;!c;){if(s!==0&&Date.now()-p>s)return new qc(o,!0);h()}return new qc(o,!1);function h(){const f=B0(e,t,r,n,o,u);if(!f){a.produce(o,l),c=!0;return}const g=f.captureIndices,y=f.matchedRuleId,v=g&&g.length>0?g[0].end>n:!1;if(y===A0){const b=o.getRule(e);a.produce(o,g[0].start),o=o.withContentNameScopesList(o.nameScopesList),so(e,t,r,o,a,b.endCaptures,g),a.produce(o,g[0].end);const C=o;if(o=o.parent,u=C.getAnchorPos(),!v&&C.getEnterPos()===n){o=C,a.produce(o,l),c=!0;return}}else{const b=e.getRule(y);a.produce(o,g[0].start);const C=o,w=b.getName(t.content,g),k=o.contentNameScopesList.pushAttributed(w,e);if(o=o.push(y,n,u,g[0].end===l,null,k,k),b instanceof ls){const j=b;so(e,t,r,o,a,j.beginCaptures,g),a.produce(o,g[0].end),u=g[0].end;const P=j.getContentName(t.content,g),B=k.pushAttributed(P,e);if(o=o.withContentNameScopesList(B),j.endHasBackReferences&&(o=o.withEndRule(j.getEndWithResolvedBackReferences(t.content,g))),!v&&C.hasSameRuleAs(o)){o=o.pop(),a.produce(o,l),c=!0;return}}else if(b instanceof Aa){const j=b;so(e,t,r,o,a,j.beginCaptures,g),a.produce(o,g[0].end),u=g[0].end;const P=j.getContentName(t.content,g),B=k.pushAttributed(P,e);if(o=o.withContentNameScopesList(B),j.whileHasBackReferences&&(o=o.withEndRule(j.getWhileWithResolvedBackReferences(t.content,g))),!v&&C.hasSameRuleAs(o)){o=o.pop(),a.produce(o,l),c=!0;return}}else if(so(e,t,r,o,a,b.captures,g),a.produce(o,g[0].end),o=o.pop(),!v){o=o.safePop(),a.produce(o,l),c=!0;return}}g[0].end>n&&(n=g[0].end,r=!1)}}function D0(e,t,r,n,o,a){let i=o.beginRuleCapturedEOL?0:-1;const s=[];for(let l=o;l;l=l.pop()){const c=l.getRule(e);c instanceof Aa&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:c,findOptions:u}=z0(l.rule,e,l.stack.endRule,r,n===i),p=c.findNextMatchSync(t,n,u);if(p){if(p.ruleId!==Wd){o=l.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(a.produce(l.stack,p.captureIndices[0].start),so(e,t,r,l.stack,a,l.rule.whileCaptures,p.captureIndices),a.produce(l.stack,p.captureIndices[0].end),i=p.captureIndices[0].end,p.captureIndices[0].end>n&&(n=p.captureIndices[0].end,r=!1))}else{o=l.stack.pop();break}}return{stack:o,linePos:n,anchorPosition:i,isFirstLine:r}}function B0(e,t,r,n,o,a){const i=q0(e,t,r,n,o,a),s=e.getInjections();if(s.length===0)return i;const l=F0(s,e,t,r,n,o,a);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:i}function q0(e,t,r,n,o,a){const i=o.getRule(e),{ruleScanner:s,findOptions:l}=Kd(i,e,o.endRule,r,n===a),c=s.findNextMatchSync(t,n,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function F0(e,t,r,n,o,a,i){let s=Number.MAX_VALUE,l=null,c,u=0;const p=a.contentNameScopesList.getScopeNames();for(let h=0,f=e.length;h<f;h++){const g=e[h];if(!g.matcher(p))continue;const y=t.getRule(g.ruleId),{ruleScanner:v,findOptions:b}=Kd(y,t,null,n,o===i),C=v.findNextMatchSync(r,o,b);if(!C)continue;const w=C.captureIndices[0].start;if(!(w>=s)&&(s=w,l=C.captureIndices,c=C.ruleId,u=g.priority,s===o))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function Kd(e,t,r,n,o){return{ruleScanner:e.compileAG(t,r,n,o),findOptions:0}}function z0(e,t,r,n,o){return{ruleScanner:e.compileWhileAG(t,r,n,o),findOptions:0}}function so(e,t,r,n,o,a,i){if(a.length===0)return;const s=t.content,l=Math.min(a.length,i.length),c=[],u=i[0].end;for(let p=0;p<l;p++){const h=a[p];if(h===null)continue;const f=i[p];if(f.length===0)continue;if(f.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=f.start;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?o.produceFromScopes(c[c.length-1].scopes,f.start):o.produce(n,f.start),h.retokenizeCapturedWithRuleId){const y=h.getName(s,i),v=n.contentNameScopesList.pushAttributed(y,e),b=h.getContentName(s,i),C=v.pushAttributed(b,e),w=n.push(h.retokenizeCapturedWithRuleId,f.start,-1,!1,null,v,C),k=e.createOnigString(s.substring(0,f.end));Gd(e,k,r&&f.start===0,f.start,w,o,!1,0),zd(k);continue}const g=h.getName(s,i);if(g!==null){const y=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(g,e);c.push(new U0(y,f.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var U0=class{constructor(e,t){T(this,"scopes");T(this,"endPos");this.scopes=e,this.endPos=t}};function W0(e,t,r,n,o,a,i,s){return new V0(e,t,r,n,o,a,i,s)}function Fc(e,t,r,n,o){const a=Na(t,_a),i=Hd.getCompiledRuleId(r,n,o.repository);for(const s of a)e.push({debugSelector:t,matcher:s.matcher,ruleId:i,grammar:o,priority:s.priority})}function _a(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let o=r;o<t.length;o++)if(H0(t[o],n))return r=o+1,!0;return!1})}function H0(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var V0=class{constructor(e,t,r,n,o,a,i,s){T(this,"_rootId");T(this,"_lastRuleId");T(this,"_ruleId2desc");T(this,"_includedGrammars");T(this,"_grammarRepository");T(this,"_grammar");T(this,"_injections");T(this,"_basicScopeAttributesProvider");T(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new L0(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=zc(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const l of Object.keys(o)){const c=Na(l,_a);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:o[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const o=n.injections;if(o)for(let i in o)Fc(t,i,o[i],this,n);const a=this._grammarRepository.injections(r);a&&a.forEach(i=>{const s=this.getExternalGrammar(i);if(s){const l=s.injectionSelector;l&&Fc(t,l,s,this,s)}})}return t.sort((o,a)=>o.priority-a.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=zc(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=Hd.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===cs.NULL){o=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),p=An.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),h=this.getRule(this._rootId).getName(null,null);let f;h?f=ho.createRootAndLookUpScopeName(h,p,this):f=ho.createRoot("unknown",p),t=new cs(null,this._rootId,-1,-1,!1,null,f,f)}else o=!1,t.reset();e=e+`
39
- `;const a=this.createOnigString(e),i=a.content.length,s=new K0(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Gd(this,a,o,0,t,s,!0,n);return zd(a),{lineLength:i,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function zc(e,t){return e=d0(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 ho=class er{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,o=t?.scopePath??null;for(const a of r)o=Li.push(o,a.scopeNames),n=new er(n,o,a.encodedTokenAttributes);return n}static createRoot(t,r){return new er(null,new Li(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const o=n.getMetadataForScope(t),a=new Li(null,t),i=n.themeProvider.themeMatch(a),s=er.mergeAttributes(r,o,i);return new er(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return er.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let o=-1,a=0,i=0;return n!==null&&(o=n.fontStyle,a=n.foregroundId,i=n.backgroundId),An.set(t,r.languageId,r.tokenType,null,o,a,i)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return er._pushAttributed(this,t,r);const n=t.split(/ /g);let o=this;for(const a of n)o=er._pushAttributed(o,a,r);return o}static _pushAttributed(t,r,n){const o=n.getMetadataForScope(r),a=t.scopePath.push(r),i=n.themeProvider.themeMatch(a),s=er.mergeAttributes(t.tokenAttributes,o,i);return new er(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?r.reverse():void 0}},$t,cs=($t=class{constructor(t,r,n,o,a,i,s,l){T(this,"_stackElementBrand");T(this,"_enterPos");T(this,"_anchorPos");T(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=a,this.endRule=i,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=o}equals(t){return t===null?!1:$t._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?ho.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){$t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,o,a,i,s){return new $t(this,t,r,n,o,a,i,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new $t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){const n=ho.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new $t(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,ho.fromExtension(n,r.contentNameScopesList))}},T($t,"NULL",new $t(null,0,0,0,!1,null,null,null)),$t),G0=class{constructor(e,t){T(this,"balancedBracketScopes");T(this,"unbalancedBracketScopes");T(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Na(r,_a).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Na(r,_a).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},K0=class{constructor(e,t,r,n){T(this,"_emitBinaryTokens");T(this,"_lineText");T(this,"_tokens");T(this,"_binaryTokens");T(this,"_lastTokenEndIndex");T(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(a)&&(n=An.set(n,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(n=An.set(n,0,8,o,-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}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,o=this._binaryTokens.length;n<o;n++)r[n]=this._binaryTokens[n];return r}},Q0=class{constructor(e,t){T(this,"_grammars",new Map);T(this,"_rawGrammars",new Map);T(this,"_injectionGrammars",new Map);T(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,o){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,W0(e,a,t,r,n,o,this,this._onigLib))}return this._grammars.get(e)}},Y0=class{constructor(e){T(this,"_options");T(this,"_syncRegistry");T(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new Q0(Ta.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Ta.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new G0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,o){const a=new P0(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(i=>this._loadSingleGrammar(i.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,n,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,o)}},us=cs.NULL;const J0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Do{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Do.prototype.normal={};Do.prototype.property={};Do.prototype.space=void 0;function Qd(e,t){const r={},n={};for(const o of e)Object.assign(r,o.property),Object.assign(n,o.normal);return new Do(r,n,t)}function ds(e){return e.toLowerCase()}class mt{constructor(t,r){this.attribute=r,this.property=t}}mt.prototype.attribute="";mt.prototype.booleanish=!1;mt.prototype.boolean=!1;mt.prototype.commaOrSpaceSeparated=!1;mt.prototype.commaSeparated=!1;mt.prototype.defined=!1;mt.prototype.mustUseProperty=!1;mt.prototype.number=!1;mt.prototype.overloadedBoolean=!1;mt.prototype.property="";mt.prototype.spaceSeparated=!1;mt.prototype.space=void 0;let X0=0;const de=on(),We=on(),Yd=on(),U=on(),je=on(),En=on(),yt=on();function on(){return 2**++X0}const ps=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:We,commaOrSpaceSeparated:yt,commaSeparated:En,number:U,overloadedBoolean:Yd,spaceSeparated:je},Symbol.toStringTag,{value:"Module"})),Di=Object.keys(ps);class al extends mt{constructor(t,r,n,o){let a=-1;if(super(t,r),Uc(this,"space",o),typeof n=="number")for(;++a<Di.length;){const i=Di[a];Uc(this,Di[a],(n&ps[i])===ps[i])}}}al.prototype.defined=!0;function Uc(e,t,r){r&&(e[t]=r)}function Bn(e){const t={},r={};for(const[n,o]of Object.entries(e.properties)){const a=new al(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[ds(n)]=n,r[ds(a.attribute)]=n}return new Do(t,r,e.space)}const Jd=Bn({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:We,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:je,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:U,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:je,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:We,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xd(e,t){return t in e?e[t]:t}function Zd(e,t){return Xd(e,t.toLowerCase())}const Z0=Bn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:En,acceptCharset:je,accessKey:je,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:je,autoFocus:de,autoPlay:de,blocking:je,capture:null,charSet:null,checked:de,cite:null,className:je,cols:U,colSpan:null,content:null,contentEditable:We,controls:de,controlsList:je,coords:U|En,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Yd,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:je,height:U,hidden:de,high:U,href:null,hrefLang:null,htmlFor:je,httpEquiv:je,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:je,itemRef:je,itemScope:de,itemType:je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,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:de,optimum:U,pattern:null,ping:je,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:je,required:de,reversed:de,rows:U,rowSpan:U,sandbox:je,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:We,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:je,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:Zd}),ex=Bn({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",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:yt,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:je,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:En,g2:En,glyphName:En,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xd}),ep=Bn({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=Bn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zd}),rp=Bn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),tx=/[A-Z]/g,Wc=/-[a-z]/g,rx=/^data[-\w.:]+$/i;function nx(e,t){const r=ds(t);let n=t,o=mt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&rx.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Wc,ax);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Wc.test(a)){let i=a.replace(tx,ox);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=al}return new o(n,t)}function ox(e){return"-"+e.toLowerCase()}function ax(e){return e.charAt(1).toUpperCase()}const ix=Qd([Jd,Z0,ep,tp,rp],"html"),np=Qd([Jd,ex,ep,tp,rp],"svg"),Hc={}.hasOwnProperty;function sx(e,t){const r=t||{};function n(o,...a){let i=n.invalid;const s=n.handlers;if(o&&Hc.call(o,e)){const l=String(o[e]);i=Hc.call(s,l)?s[l]:n.unknown}if(i)return i.call(this,o,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const lx=/["&'<>`]/g,cx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ux=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,dx=/[|\\{}()[\]^$+*?.]/g,Vc=new WeakMap;function px(e,t){if(e=e.replace(t.subset?hx(t.subset):lx,n),t.subset||t.escapeOnly)return e;return e.replace(cx,r).replace(ux,n);function r(o,a,i){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,i.charCodeAt(a+2),t)}function n(o,a,i){return t.format(o.charCodeAt(0),i.charCodeAt(a+1),t)}}function hx(e){let t=Vc.get(e);return t||(t=mx(e),Vc.set(e,t)),t}function mx(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(dx,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const fx=/[\dA-Fa-f]/;function gx(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!fx.test(String.fromCharCode(t))?n:n+";"}const yx=/\d/;function bx(e,t,r){const n="&#"+String(e);return r&&t&&!yx.test(String.fromCharCode(t))?n:n+";"}const xx=["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"],Bi={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},vx=["cent","copy","divide","gt","lt","not","para","times"],op={}.hasOwnProperty,hs={};let aa;for(aa in Bi)op.call(Bi,aa)&&(hs[Bi[aa]]=aa);const Sx=/[^\dA-Za-z]/;function wx(e,t,r,n){const o=String.fromCharCode(e);if(op.call(hs,o)){const a=hs[o],i="&"+a;return r&&xx.includes(a)&&!vx.includes(a)&&(!n||t&&t!==61&&Sx.test(String.fromCharCode(t)))?i:i+";"}return""}function Cx(e,t,r){let n=gx(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=wx(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){const a=bx(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}function Rn(e,t){return px(e,Object.assign({format:Cx},t))}const kx=/^>|^->|<!--|-->|--!>|<!-$/g,Px=[">"],Ix=["<",">"];function jx(e,t,r,n){return n.settings.bogusComments?"<?"+Rn(e.value,Object.assign({},n.settings.characterReferences,{subset:Px}))+">":"<!--"+e.value.replace(kx,o)+"-->";function o(a){return Rn(a,Object.assign({},n.settings.characterReferences,{subset:Ix}))}}function Ex(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Gc(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}function Rx(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Tx(e){return e.join(" ").trim()}const Nx=/[ \t\n\f\r]/g;function il(e){return typeof e=="object"?e.type==="text"?Kc(e.value):!1:Kc(e)}function Kc(e){return e.replace(Nx,"")===""}const rt=ip(1),ap=ip(-1),Mx=[];function ip(e){return t;function t(r,n,o){const a=r?r.children:Mx;let i=(n||0)+e,s=a[i];if(!o)for(;s&&il(s);)i+=e,s=a[i];return s}}const Ax={}.hasOwnProperty;function sp(e){return t;function t(r,n,o){return Ax.call(e,r.tagName)&&e[r.tagName](r,n,o)}}const sl=sp({body:Ox,caption:qi,colgroup:qi,dd:Bx,dt:Dx,head:qi,html:_x,li:$x,optgroup:qx,option:Fx,p:Lx,rp:Qc,rt:Qc,tbody:Ux,td:Yc,tfoot:Wx,th:Yc,thead:zx,tr:Hx});function qi(e,t,r){const n=rt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&il(n.value.charAt(0)))}function _x(e,t,r){const n=rt(r,t);return!n||n.type!=="comment"}function Ox(e,t,r){const n=rt(r,t);return!n||n.type!=="comment"}function Lx(e,t,r){const n=rt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function $x(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Dx(e,t,r){const n=rt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Bx(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Qc(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function qx(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function Fx(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function zx(e,t,r){const n=rt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Ux(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Wx(e,t,r){return!rt(r,t)}function Hx(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Yc(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Vx=sp({body:Qx,colgroup:Yx,head:Kx,html:Gx,tbody:Jx});function Gx(e){const t=rt(e,-1);return!t||t.type!=="comment"}function Kx(e){const t=new Set;for(const 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)}const r=e.children[0];return!r||r.type==="element"}function Qx(e){const t=rt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&il(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Yx(e,t,r){const n=ap(r,t),o=rt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&sl(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function Jx(e,t,r){const n=ap(r,t),o=rt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&sl(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const ia={name:[[`
37
+ export default theme;`}function rs(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Jr(20));const u=Js(a),p=Xs(e);let h=wt(p,{mixins:Uy(p.breakpoints,n),palette:u,shadows:Qy.slice(),typography:Hy(u,s),transitions:Xy(i),zIndex:{...Zy}});return h=wt(h,c),h=t.reduce((f,g)=>wt(f,g),h),h.unstable_sxConfig={...ri,...c?.unstable_sxConfig},h.unstable_sx=function(f){return An({sx:f,theme:this})},h.toRuntimeSource=Cd,h}function tb(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const rb=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=tb(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function kd(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Pd(e){return e==="dark"?rb:[]}function nb(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,a=Js(t);return{palette:a,opacity:{...kd(a.mode),...r},overlays:n||Pd(a.mode),...o}}function ob(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const ab=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ib=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return ab(e.cssVarPrefix).forEach(s=>{i[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",t)]:i,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function sb(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function M(e,t,r){!e[t]&&r&&(e[t]=r)}function io(e){return typeof e!="string"||!e.startsWith("hsl")?e:bd(e)}function or(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ao(io(e[t])))}function lb(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Jt=e=>{try{return e()}catch{}},cb=(e="mui")=>fe.unstable_createGetCssVar(e);function Ai(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=nb({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...i}=rs({...r,palette:{mode:o,...t?.palette}});return e[n]={...t,palette:a,opacity:{...kd(o),...t?.opacity},overlays:t?.overlays||Pd(o)},i}function ub(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=ob,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(r)[0],p=n||(r.light&&u!=="light"?"light":u),h=cb(a),{[p]:f,light:g,dark:y,...v}=r,b={...v};let C=f;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(C=!0),!C)throw new Error(Jr(21,p));const w=Ai(b,C,c,p);g&&!b.light&&Ai(b,g,void 0,"light"),y&&!b.dark&&Ai(b,y,void 0,"dark");let k={defaultColorScheme:p,...w,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:b,font:{...Oy(w.typography),...w.font},spacing:lb(c.spacing)};Object.keys(k.colorSchemes).forEach(L=>{const m=k.colorSchemes[L].palette,R=D=>{const $=D.split("-"),H=$[1],X=$[2];return h(D,m[H][X])};if(m.mode==="light"&&(M(m.common,"background","#fff"),M(m.common,"onBackground","#000")),m.mode==="dark"&&(M(m.common,"background","#000"),M(m.common,"onBackground","#fff")),sb(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){M(m.Alert,"errorColor",Se(m.error.light,.6)),M(m.Alert,"infoColor",Se(m.info.light,.6)),M(m.Alert,"successColor",Se(m.success.light,.6)),M(m.Alert,"warningColor",Se(m.warning.light,.6)),M(m.Alert,"errorFilledBg",R("palette-error-main")),M(m.Alert,"infoFilledBg",R("palette-info-main")),M(m.Alert,"successFilledBg",R("palette-success-main")),M(m.Alert,"warningFilledBg",R("palette-warning-main")),M(m.Alert,"errorFilledColor",Jt(()=>m.getContrastText(m.error.main))),M(m.Alert,"infoFilledColor",Jt(()=>m.getContrastText(m.info.main))),M(m.Alert,"successFilledColor",Jt(()=>m.getContrastText(m.success.main))),M(m.Alert,"warningFilledColor",Jt(()=>m.getContrastText(m.warning.main))),M(m.Alert,"errorStandardBg",we(m.error.light,.9)),M(m.Alert,"infoStandardBg",we(m.info.light,.9)),M(m.Alert,"successStandardBg",we(m.success.light,.9)),M(m.Alert,"warningStandardBg",we(m.warning.light,.9)),M(m.Alert,"errorIconColor",R("palette-error-main")),M(m.Alert,"infoIconColor",R("palette-info-main")),M(m.Alert,"successIconColor",R("palette-success-main")),M(m.Alert,"warningIconColor",R("palette-warning-main")),M(m.AppBar,"defaultBg",R("palette-grey-100")),M(m.Avatar,"defaultBg",R("palette-grey-400")),M(m.Button,"inheritContainedBg",R("palette-grey-300")),M(m.Button,"inheritContainedHoverBg",R("palette-grey-A100")),M(m.Chip,"defaultBorder",R("palette-grey-400")),M(m.Chip,"defaultAvatarColor",R("palette-grey-700")),M(m.Chip,"defaultIconColor",R("palette-grey-700")),M(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),M(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),M(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),M(m.LinearProgress,"primaryBg",we(m.primary.main,.62)),M(m.LinearProgress,"secondaryBg",we(m.secondary.main,.62)),M(m.LinearProgress,"errorBg",we(m.error.main,.62)),M(m.LinearProgress,"infoBg",we(m.info.main,.62)),M(m.LinearProgress,"successBg",we(m.success.main,.62)),M(m.LinearProgress,"warningBg",we(m.warning.main,.62)),M(m.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),M(m.Slider,"primaryTrack",we(m.primary.main,.62)),M(m.Slider,"secondaryTrack",we(m.secondary.main,.62)),M(m.Slider,"errorTrack",we(m.error.main,.62)),M(m.Slider,"infoTrack",we(m.info.main,.62)),M(m.Slider,"successTrack",we(m.success.main,.62)),M(m.Slider,"warningTrack",we(m.warning.main,.62));const D=ra(m.background.default,.8);M(m.SnackbarContent,"bg",D),M(m.SnackbarContent,"color",Jt(()=>m.getContrastText(D))),M(m.SpeedDialAction,"fabHoverBg",ra(m.background.paper,.15)),M(m.StepConnector,"border",R("palette-grey-400")),M(m.StepContent,"border",R("palette-grey-400")),M(m.Switch,"defaultColor",R("palette-common-white")),M(m.Switch,"defaultDisabledColor",R("palette-grey-100")),M(m.Switch,"primaryDisabledColor",we(m.primary.main,.62)),M(m.Switch,"secondaryDisabledColor",we(m.secondary.main,.62)),M(m.Switch,"errorDisabledColor",we(m.error.main,.62)),M(m.Switch,"infoDisabledColor",we(m.info.main,.62)),M(m.Switch,"successDisabledColor",we(m.success.main,.62)),M(m.Switch,"warningDisabledColor",we(m.warning.main,.62)),M(m.TableCell,"border",we(ta(m.divider,1),.88)),M(m.Tooltip,"bg",ta(m.grey[700],.92))}if(m.mode==="dark"){M(m.Alert,"errorColor",we(m.error.light,.6)),M(m.Alert,"infoColor",we(m.info.light,.6)),M(m.Alert,"successColor",we(m.success.light,.6)),M(m.Alert,"warningColor",we(m.warning.light,.6)),M(m.Alert,"errorFilledBg",R("palette-error-dark")),M(m.Alert,"infoFilledBg",R("palette-info-dark")),M(m.Alert,"successFilledBg",R("palette-success-dark")),M(m.Alert,"warningFilledBg",R("palette-warning-dark")),M(m.Alert,"errorFilledColor",Jt(()=>m.getContrastText(m.error.dark))),M(m.Alert,"infoFilledColor",Jt(()=>m.getContrastText(m.info.dark))),M(m.Alert,"successFilledColor",Jt(()=>m.getContrastText(m.success.dark))),M(m.Alert,"warningFilledColor",Jt(()=>m.getContrastText(m.warning.dark))),M(m.Alert,"errorStandardBg",Se(m.error.light,.9)),M(m.Alert,"infoStandardBg",Se(m.info.light,.9)),M(m.Alert,"successStandardBg",Se(m.success.light,.9)),M(m.Alert,"warningStandardBg",Se(m.warning.light,.9)),M(m.Alert,"errorIconColor",R("palette-error-main")),M(m.Alert,"infoIconColor",R("palette-info-main")),M(m.Alert,"successIconColor",R("palette-success-main")),M(m.Alert,"warningIconColor",R("palette-warning-main")),M(m.AppBar,"defaultBg",R("palette-grey-900")),M(m.AppBar,"darkBg",R("palette-background-paper")),M(m.AppBar,"darkColor",R("palette-text-primary")),M(m.Avatar,"defaultBg",R("palette-grey-600")),M(m.Button,"inheritContainedBg",R("palette-grey-800")),M(m.Button,"inheritContainedHoverBg",R("palette-grey-700")),M(m.Chip,"defaultBorder",R("palette-grey-700")),M(m.Chip,"defaultAvatarColor",R("palette-grey-300")),M(m.Chip,"defaultIconColor",R("palette-grey-300")),M(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),M(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),M(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),M(m.LinearProgress,"primaryBg",Se(m.primary.main,.5)),M(m.LinearProgress,"secondaryBg",Se(m.secondary.main,.5)),M(m.LinearProgress,"errorBg",Se(m.error.main,.5)),M(m.LinearProgress,"infoBg",Se(m.info.main,.5)),M(m.LinearProgress,"successBg",Se(m.success.main,.5)),M(m.LinearProgress,"warningBg",Se(m.warning.main,.5)),M(m.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),M(m.Slider,"primaryTrack",Se(m.primary.main,.5)),M(m.Slider,"secondaryTrack",Se(m.secondary.main,.5)),M(m.Slider,"errorTrack",Se(m.error.main,.5)),M(m.Slider,"infoTrack",Se(m.info.main,.5)),M(m.Slider,"successTrack",Se(m.success.main,.5)),M(m.Slider,"warningTrack",Se(m.warning.main,.5));const D=ra(m.background.default,.98);M(m.SnackbarContent,"bg",D),M(m.SnackbarContent,"color",Jt(()=>m.getContrastText(D))),M(m.SpeedDialAction,"fabHoverBg",ra(m.background.paper,.15)),M(m.StepConnector,"border",R("palette-grey-600")),M(m.StepContent,"border",R("palette-grey-600")),M(m.Switch,"defaultColor",R("palette-grey-300")),M(m.Switch,"defaultDisabledColor",R("palette-grey-600")),M(m.Switch,"primaryDisabledColor",Se(m.primary.main,.55)),M(m.Switch,"secondaryDisabledColor",Se(m.secondary.main,.55)),M(m.Switch,"errorDisabledColor",Se(m.error.main,.55)),M(m.Switch,"infoDisabledColor",Se(m.info.main,.55)),M(m.Switch,"successDisabledColor",Se(m.success.main,.55)),M(m.Switch,"warningDisabledColor",Se(m.warning.main,.55)),M(m.TableCell,"border",Se(ta(m.divider,1),.68)),M(m.Tooltip,"bg",ta(m.grey[700],.92))}or(m.background,"default"),or(m.background,"paper"),or(m.common,"background"),or(m.common,"onBackground"),or(m,"divider"),Object.keys(m).forEach(D=>{const $=m[D];D!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&M(m[D],"mainChannel",ao(io($.main))),$.light&&M(m[D],"lightChannel",ao(io($.light))),$.dark&&M(m[D],"darkChannel",ao(io($.dark))),$.contrastText&&M(m[D],"contrastTextChannel",ao(io($.contrastText))),D==="text"&&(or(m[D],"primary"),or(m[D],"secondary")),D==="action"&&($.active&&or(m[D],"active"),$.selected&&or(m[D],"selected")))})}),k=t.reduce((L,m)=>wt(L,m),k);const j={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:ib(k)},{vars:P,generateThemeVars:B,generateStyleSheets:F}=_y(k,j);return k.vars=P,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([L,m])=>{k[L]=m}),k.generateThemeVars=B,k.generateStyleSheets=F,k.generateSpacing=function(){return fe.createSpacing(c.spacing,Vs(this))},k.getColorSchemeSelector=Ly(s),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=i,k.unstable_sxConfig={...ri,...c?.unstable_sxConfig},k.unstable_sx=function(L){return An({sx:L,theme:this})},k.toRuntimeSource=Cd,k}function Tc(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Js({...r===!0?{}:r.palette,mode:t})})}function db(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return rs(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const p=rs({...e,palette:u},...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},Tc(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Tc(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),ub({...i,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const Zs=db(),el="$$material";function pb(){const e=fe.useTheme(Zs);return e[el]||e}function hb(e){const{variants:t,...r}=e,n={variants:t,style:Pc(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Pc(o.style))}),n}const mb=Xs();function Rr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fb(e){return e?(t,r)=>r[e]:null}function gb(e,t,r){e.theme=bb(e.theme)?r:e.theme[t]||e.theme}function ma(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>ma(e,n));if(Array.isArray(r?.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return Id(e,r.variants,[n])}return r?.isProcessed?r.style:r}function Id(e,t,r=[]){let n;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const i in a.props)if(e[i]!==a.props[i]&&e.ownerState?.[i]!==a.props[i])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function yb(e={}){const{themeId:t,defaultTheme:r=mb,rootShouldForwardProp:n=Rr,slotShouldForwardProp:o=Rr}=e;function a(i){gb(i,t,r)}return(i,s={})=>{Cy(i,k=>k.filter(j=>j!==An));const{name:l,slot:c,skipVariantsResolver:u,skipSx:p,overridesResolver:h=fb(vb(c)),...f}=s,g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,y=p||!1;let v=Rr;c==="Root"||c==="root"?v=n:c?v=o:xb(i)&&(v=void 0);const b=wy(i,{shouldForwardProp:v,label:void 0,...f}),C=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(j){return ma(j,k)};if(dr(k)){const j=hb(k);return j.variants?function(P){return ma(P,j)}:j.style}return k},w=(...k)=>{const j=[],P=k.map(C),B=[];if(j.push(a),l&&h&&B.push(function(m){const R=m.theme.components?.[l]?.styleOverrides;if(!R)return null;const D={};for(const $ in R)D[$]=ma(m,R[$]);return h(m,D)}),l&&!g&&B.push(function(m){const R=m.theme?.components?.[l]?.variants;return R?Id(m,R):null}),y||B.push(An),Array.isArray(P[0])){const m=P.shift(),R=new Array(j.length).fill(""),D=new Array(B.length).fill("");let $;$=[...R,...m,...D],$.raw=[...R,...m.raw,...D],j.unshift($)}const F=[...j,...P,...B],L=b(...F);return i.muiName&&(L.muiName=i.muiName),L};return b.withConfig&&(w.withConfig=b.withConfig),w}}function bb(e){for(const t in e)return!1;return!0}function xb(e){return typeof e=="string"&&e.charCodeAt(0)>96}function vb(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Sb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const tl=e=>Sb(e)&&e!=="classes",Ee=yb({themeId:el,defaultTheme:Zs,rootShouldForwardProp:tl}),rl=fe.unstable_memoTheme;function $n(e){return Ny(e)}function Dn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ln(e,o,r)}),n}function wb(e){return Ln("MuiSvgIcon",e)}Dn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Cb=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Gt(t)}`,`fontSize${Gt(r)}`]};return Mo(o,wb,n)},kb=Ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Gt(r.color)}`],t[`fontSize${Gt(r.fontSize)}`]]}})(rl(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),ns=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:i="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:p="0 0 24 24",...h}=r,f=S.isValidElement(n)&&n.type==="svg",g={...r,color:a,component:i,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:f},y={};c||(y.viewBox=p);const v=Cb(g);return d.jsxs(kb,{as:i,className:qe(v.root,o),focusable:"false",color:l,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:t,...y,...h,...f&&n.props,ownerState:g,children:[f?n.props.children:n,u?d.jsx("title",{children:u}):null]})});ns.muiName="SvgIcon";function tt(e,t){function r(n,o){return d.jsx(ns,{"data-testid":void 0,ref:o,...n,children:e})}return r.muiName=ns.muiName,S.memo(S.forwardRef(r))}function Pb(e){const{controlled:t,default:r}=e,{current:n}=S.useRef(t!==void 0),[o,a]=S.useState(r),i=n?t:o,s=S.useCallback(l=>{n||a(l)},[]);return[i,s]}function fa(e){const t=S.useRef(e);return ky(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}function Ra(...e){const t=S.useRef(void 0),r=S.useCallback(n=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(n);return typeof s=="function"?s:()=>{i(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return S.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Ib(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function jb(e,t){if(!e)return t;function r(i,s){const l={};return Object.keys(s).forEach(c=>{Ib(c,s[c])&&typeof i[c]=="function"&&(l[c]=(...u)=>{i[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return i=>{const s=typeof t=="function"?t(i):t,l=typeof e=="function"?e({...i,...s}):e,c=qe(i?.className,s?.className,l?.className),u=r(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const n=t,o=r(e,n),a=qe(n?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const oi=tt(d.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),Oo=tt(d.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),Be="http://localhost/api/v0".replace(/\/+$/,"");class _r{constructor(t,r=Be,n=De){T(this,"configuration");this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class Eb extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const He={},Ve="https://example.com",pe=function(e,t,r){if(r==null)throw new Eb(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function os(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>os(e,n,r)):Object.keys(t).forEach(n=>os(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const Ge=function(e,...t){const r=new URLSearchParams(e.search);os(r,t),e.search=r.toString()},Ke=function(e){return e.pathname+e.search+e.hash},Qe=function(e,t,r,n){return(o=t,a=r)=>{const i={...e.options,url:(o.defaults.baseURL?"":n?.basePath??a)+e.url};return o.request(i)}},Rb=function(e){return{getConnection:async(t,r,n={})=>{pe("getConnection","projectName",t),pe("getConnection","connectionName",r);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),a=new URL(o,Ve);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},l={};Ge(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...n.headers},{url:Ke(a),options:s}},getQuerydata:async(t,r,n,o,a={})=>{pe("getQuerydata","projectName",t),pe("getQuerydata","connectionName",r);const i="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};n!==void 0&&(p.sqlStatement=n),o!==void 0&&(p.options=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},getSqlsource:async(t,r,n,o={})=>{pe("getSqlsource","projectName",t),pe("getSqlsource","connectionName",r);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.sqlStatement=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}},getTablesource:async(t,r,n,o,a={})=>{pe("getTablesource","projectName",t),pe("getTablesource","connectionName",r);const i="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};n!==void 0&&(p.tableKey=n),o!==void 0&&(p.tablePath=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},getTemporarytable:async(t,r,n,o={})=>{pe("getTemporarytable","projectName",t),pe("getTemporarytable","connectionName",r);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.sqlStatement=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}},getTest:async(t,r,n={})=>{pe("getTest","projectName",t),pe("getTest","connectionName",r);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),a=new URL(o,Ve);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},l={};Ge(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...n.headers},{url:Ke(a),options:s}},listConnections:async(t,r={})=>{pe("listConnections","projectName",t);const n="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(n,Ve);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},s={};Ge(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...r.headers},{url:Ke(o),options:i}},listSchemas:async(t,r,n={})=>{pe("listSchemas","projectName",t),pe("listSchemas","connectionName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))),a=new URL(o,Ve);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},l={};Ge(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...l,...c,...n.headers},{url:Ke(a),options:s}},listTables:async(t,r,n,o={})=>{pe("listTables","projectName",t),pe("listTables","connectionName",r),pe("listTables","schemaName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(r))).replace("{schemaName}",encodeURIComponent(String(n))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={};Ge(i,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:Ke(i),options:l}}}},ar=function(e){const t=Rb(e);return{async getConnection(r,n,o){const a=await t.getConnection(r,n,o),i=e?.serverIndex??0,s=He["ConnectionsApi.getConnection"]?.[i]?.url;return(l,c)=>Qe(a,De,Be,e)(l,s||c)},async getQuerydata(r,n,o,a,i){const s=await t.getQuerydata(r,n,o,a,i),l=e?.serverIndex??0,c=He["ConnectionsApi.getQuerydata"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async getSqlsource(r,n,o,a){const i=await t.getSqlsource(r,n,o,a),s=e?.serverIndex??0,l=He["ConnectionsApi.getSqlsource"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)},async getTablesource(r,n,o,a,i){const s=await t.getTablesource(r,n,o,a,i),l=e?.serverIndex??0,c=He["ConnectionsApi.getTablesource"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async getTemporarytable(r,n,o,a){const i=await t.getTemporarytable(r,n,o,a),s=e?.serverIndex??0,l=He["ConnectionsApi.getTemporarytable"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)},async getTest(r,n,o){const a=await t.getTest(r,n,o),i=e?.serverIndex??0,s=He["ConnectionsApi.getTest"]?.[i]?.url;return(l,c)=>Qe(a,De,Be,e)(l,s||c)},async listConnections(r,n){const o=await t.listConnections(r,n),a=e?.serverIndex??0,i=He["ConnectionsApi.listConnections"]?.[a]?.url;return(s,l)=>Qe(o,De,Be,e)(s,i||l)},async listSchemas(r,n,o){const a=await t.listSchemas(r,n,o),i=e?.serverIndex??0,s=He["ConnectionsApi.listSchemas"]?.[i]?.url;return(l,c)=>Qe(a,De,Be,e)(l,s||c)},async listTables(r,n,o,a){const i=await t.listTables(r,n,o,a),s=e?.serverIndex??0,l=He["ConnectionsApi.listTables"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class jd extends _r{getConnection(t,r,n){return ar(this.configuration).getConnection(t,r,n).then(o=>o(this.axios,this.basePath))}getQuerydata(t,r,n,o,a){return ar(this.configuration).getQuerydata(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}getSqlsource(t,r,n,o){return ar(this.configuration).getSqlsource(t,r,n,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,r,n,o,a){return ar(this.configuration).getTablesource(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}getTemporarytable(t,r,n,o){return ar(this.configuration).getTemporarytable(t,r,n,o).then(a=>a(this.axios,this.basePath))}getTest(t,r,n){return ar(this.configuration).getTest(t,r,n).then(o=>o(this.axios,this.basePath))}listConnections(t,r){return ar(this.configuration).listConnections(t,r).then(n=>n(this.axios,this.basePath))}listSchemas(t,r,n){return ar(this.configuration).listSchemas(t,r,n).then(o=>o(this.axios,this.basePath))}listTables(t,r,n,o){return ar(this.configuration).listTables(t,r,n,o).then(a=>a(this.axios,this.basePath))}}const Tb=function(e){return{listDatabases:async(t,r,n,o={})=>{pe("listDatabases","projectName",t),pe("listDatabases","packageName",r);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.versionId=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}}}},Nb=function(e){const t=Tb(e);return{async listDatabases(r,n,o,a){const i=await t.listDatabases(r,n,o,a),s=e?.serverIndex??0,l=He["DatabasesApi.listDatabases"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class Mb extends _r{listDatabases(t,r,n,o){return Nb(this.configuration).listDatabases(t,r,n,o).then(a=>a(this.axios,this.basePath))}}const Ab=function(e){return{getModel:async(t,r,n,o,a={})=>{pe("getModel","projectName",t),pe("getModel","packageName",r),pe("getModel","path",n);const i="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))).replace("{path}",encodeURIComponent(String(n))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};o!==void 0&&(p.versionId=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},listModels:async(t,r,n,o={})=>{pe("listModels","projectName",t),pe("listModels","packageName",r);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.versionId=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}}}},Nc=function(e){const t=Ab(e);return{async getModel(r,n,o,a,i){const s=await t.getModel(r,n,o,a,i),l=e?.serverIndex??0,c=He["ModelsApi.getModel"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async listModels(r,n,o,a){const i=await t.listModels(r,n,o,a),s=e?.serverIndex??0,l=He["ModelsApi.listModels"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class ai extends _r{getModel(t,r,n,o,a){return Nc(this.configuration).getModel(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}listModels(t,r,n,o){return Nc(this.configuration).listModels(t,r,n,o).then(a=>a(this.axios,this.basePath))}}const _b=function(e){return{getNotebook:async(t,r,n,o,a={})=>{pe("getNotebook","projectName",t),pe("getNotebook","packageName",r),pe("getNotebook","path",n);const i="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))).replace("{path}",encodeURIComponent(String(n))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};o!==void 0&&(p.versionId=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},listNotebooks:async(t,r,n,o={})=>{pe("listNotebooks","projectName",t),pe("listNotebooks","packageName",r);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.versionId=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}}}},Mc=function(e){const t=_b(e);return{async getNotebook(r,n,o,a,i){const s=await t.getNotebook(r,n,o,a,i),l=e?.serverIndex??0,c=He["NotebooksApi.getNotebook"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async listNotebooks(r,n,o,a){const i=await t.listNotebooks(r,n,o,a),s=e?.serverIndex??0,l=He["NotebooksApi.listNotebooks"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class Ed extends _r{getNotebook(t,r,n,o,a){return Mc(this.configuration).getNotebook(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}listNotebooks(t,r,n,o){return Mc(this.configuration).listNotebooks(t,r,n,o).then(a=>a(this.axios,this.basePath))}}const Ob=function(e){return{getPackage:async(t,r,n,o,a={})=>{pe("getPackage","projectName",t),pe("getPackage","packageName",r);const i="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),s=new URL(i,Ve);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...a},u={},p={};n!==void 0&&(p.versionId=n),o!==void 0&&(p.reload=o),Ge(s,p);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...a.headers},{url:Ke(s),options:c}},listPackages:async(t,r={})=>{pe("listPackages","projectName",t);const n="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(n,Ve);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},s={};Ge(o,{});let l=a&&a.headers?a.headers:{};return i.headers={...s,...l,...r.headers},{url:Ke(o),options:i}}}},Ac=function(e){const t=Ob(e);return{async getPackage(r,n,o,a,i){const s=await t.getPackage(r,n,o,a,i),l=e?.serverIndex??0,c=He["PackagesApi.getPackage"]?.[l]?.url;return(u,p)=>Qe(s,De,Be,e)(u,c||p)},async listPackages(r,n){const o=await t.listPackages(r,n),a=e?.serverIndex??0,i=He["PackagesApi.listPackages"]?.[a]?.url;return(s,l)=>Qe(o,De,Be,e)(s,i||l)}}};class Rd extends _r{getPackage(t,r,n,o,a){return Ac(this.configuration).getPackage(t,r,n,o,a).then(i=>i(this.axios,this.basePath))}listPackages(t,r){return Ac(this.configuration).listPackages(t,r).then(n=>n(this.axios,this.basePath))}}const Lb=function(e){return{getProject:async(t,r,n={})=>{pe("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,Ve);let i;e&&(i=e.baseOptions);const s={method:"GET",...i,...n},l={},c={};r!==void 0&&(c.reload=r),Ge(a,c);let u=i&&i.headers?i.headers:{};return s.headers={...l,...u,...n.headers},{url:Ke(a),options:s}},listProjects:async(t={})=>{const r="/projects",n=new URL(r,Ve);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};Ge(n,{});let s=o&&o.headers?o.headers:{};return a.headers={...i,...s,...t.headers},{url:Ke(n),options:a}}}},_c=function(e){const t=Lb(e);return{async getProject(r,n,o){const a=await t.getProject(r,n,o),i=e?.serverIndex??0,s=He["ProjectsApi.getProject"]?.[i]?.url;return(l,c)=>Qe(a,De,Be,e)(l,s||c)},async listProjects(r){const n=await t.listProjects(r),o=e?.serverIndex??0,a=He["ProjectsApi.listProjects"]?.[o]?.url;return(i,s)=>Qe(n,De,Be,e)(i,a||s)}}};class Td extends _r{getProject(t,r,n){return _c(this.configuration).getProject(t,r,n).then(o=>o(this.axios,this.basePath))}listProjects(t){return _c(this.configuration).listProjects(t).then(r=>r(this.axios,this.basePath))}}const $b=function(e){return{executeQuery:async(t,r,n,o,a,i,s,l={})=>{pe("executeQuery","projectName",t),pe("executeQuery","packageName",r),pe("executeQuery","path",n);const c="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))).replace("{path}",encodeURIComponent(String(n))),u=new URL(c,Ve);let p;e&&(p=e.baseOptions);const h={method:"GET",...p,...l},f={},g={};o!==void 0&&(g.query=o),a!==void 0&&(g.sourceName=a),i!==void 0&&(g.queryName=i),s!==void 0&&(g.versionId=s),Ge(u,g);let y=p&&p.headers?p.headers:{};return h.headers={...f,...y,...l.headers},{url:Ke(u),options:h}}}},Db=function(e){const t=$b(e);return{async executeQuery(r,n,o,a,i,s,l,c){const u=await t.executeQuery(r,n,o,a,i,s,l,c),p=e?.serverIndex??0,h=He["QueryresultsApi.executeQuery"]?.[p]?.url;return(f,g)=>Qe(u,De,Be,e)(f,h||g)}}};class Nd extends _r{executeQuery(t,r,n,o,a,i,s,l){return Db(this.configuration).executeQuery(t,r,n,o,a,i,s,l).then(c=>c(this.axios,this.basePath))}}const Bb=function(e){return{listSchedules:async(t,r,n,o={})=>{pe("listSchedules","projectName",t),pe("listSchedules","packageName",r);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(r))),i=new URL(a,Ve);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={},u={};n!==void 0&&(u.versionId=n),Ge(i,u);let p=s&&s.headers?s.headers:{};return l.headers={...c,...p,...o.headers},{url:Ke(i),options:l}}}},qb=function(e){const t=Bb(e);return{async listSchedules(r,n,o,a){const i=await t.listSchedules(r,n,o,a),s=e?.serverIndex??0,l=He["SchedulesApi.listSchedules"]?.[s]?.url;return(c,u)=>Qe(i,De,Be,e)(c,l||u)}}};class Fb extends _r{listSchedules(t,r,n,o){return qb(this.configuration).listSchedules(t,r,n,o).then(a=>a(this.axios,this.basePath))}}class ct{constructor(t={}){T(this,"apiKey");T(this,"username");T(this,"password");T(this,"accessToken");T(this,"basePath");T(this,"serverIndex");T(this,"baseOptions");T(this,"formDataCtor");this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}}const Md=[{id:"abap",name:"ABAP",import:()=>Promise.resolve().then(()=>require("./abap-BmBUA35e-Dwt2rH6y.cjs"))},{id:"actionscript-3",name:"ActionScript",import:()=>Promise.resolve().then(()=>require("./actionscript-3-zFUbzQa9-mj8Uhnsc.cjs"))},{id:"ada",name:"Ada",import:()=>Promise.resolve().then(()=>require("./ada-CBvPkFpZ-DZM58Vqs.cjs"))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.resolve().then(()=>require("./angular-html-0fTdLuKf-iuJ7ajzA.cjs")).then(e=>e.f)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.resolve().then(()=>require("./angular-ts-wkniW60G-Cm4EfyWn.cjs"))},{id:"apache",name:"Apache Conf",import:()=>Promise.resolve().then(()=>require("./apache-CVNlsSDc-D7v5fxtZ.cjs"))},{id:"apex",name:"Apex",import:()=>Promise.resolve().then(()=>require("./apex-DFk3KRB1-4hrAnw0a.cjs"))},{id:"apl",name:"APL",import:()=>Promise.resolve().then(()=>require("./apl-TLDHFJX6-DZ13rf9a.cjs"))},{id:"applescript",name:"AppleScript",import:()=>Promise.resolve().then(()=>require("./applescript-CYMR_y0g-Cnd3Dxju.cjs"))},{id:"ara",name:"Ara",import:()=>Promise.resolve().then(()=>require("./ara-4QmU5e04-BQ2aGbFQ.cjs"))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>Promise.resolve().then(()=>require("./asciidoc-v_1bjgUg-C6nYvw8K.cjs"))},{id:"asm",name:"Assembly",import:()=>Promise.resolve().then(()=>require("./asm-RC0Yh-NZ-CQnBVCj-.cjs"))},{id:"astro",name:"Astro",import:()=>Promise.resolve().then(()=>require("./astro-Uf8_VxKJ--l1q7Jnf.cjs"))},{id:"awk",name:"AWK",import:()=>Promise.resolve().then(()=>require("./awk-gPH8MVMW-DUx4h__E.cjs"))},{id:"ballerina",name:"Ballerina",import:()=>Promise.resolve().then(()=>require("./ballerina-kvLnRU_e-CXlzbmzl.cjs"))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>Promise.resolve().then(()=>require("./bat-BHYy44sT-DlMT9sut.cjs"))},{id:"beancount",name:"Beancount",import:()=>Promise.resolve().then(()=>require("./beancount-D-MADTs_-CyyiuUzM.cjs"))},{id:"berry",name:"Berry",aliases:["be"],import:()=>Promise.resolve().then(()=>require("./berry-Ci9U0o4h-B0EjuzrL.cjs"))},{id:"bibtex",name:"BibTeX",import:()=>Promise.resolve().then(()=>require("./bibtex-CX618D15-CfoG9xRq.cjs"))},{id:"bicep",name:"Bicep",import:()=>Promise.resolve().then(()=>require("./bicep-iuYiPopT-D6PH_9IY.cjs"))},{id:"blade",name:"Blade",import:()=>Promise.resolve().then(()=>require("./blade-BtR00Gx0-CC9iBOSk.cjs"))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>Promise.resolve().then(()=>require("./bsl-BIXPNqL4-C8J0Suid.cjs"))},{id:"c",name:"C",import:()=>Promise.resolve().then(()=>require("./c-DASdrs7p-C4sXGJZM.cjs"))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>Promise.resolve().then(()=>require("./cadence-BDALQi26-Dq2CYzXG.cjs"))},{id:"cairo",name:"Cairo",import:()=>Promise.resolve().then(()=>require("./cairo-tXZKA2PT-XMsK9HSC.cjs"))},{id:"clarity",name:"Clarity",import:()=>Promise.resolve().then(()=>require("./clarity-CNgV2Ths-ytMkUD5Q.cjs"))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>Promise.resolve().then(()=>require("./clojure-CsKKFGwv-B_Wv414H.cjs"))},{id:"cmake",name:"CMake",import:()=>Promise.resolve().then(()=>require("./cmake-Dr-A3iJx-TBUaQXYY.cjs"))},{id:"cobol",name:"COBOL",import:()=>Promise.resolve().then(()=>require("./cobol-DMssKNmC-2IrH-LQK.cjs"))},{id:"codeowners",name:"CODEOWNERS",import:()=>Promise.resolve().then(()=>require("./codeowners-Bt9yU6NX-QhPK6lIJ.cjs"))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>Promise.resolve().then(()=>require("./codeql-DBNTqJi1-B7Q9tkDJ.cjs"))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.resolve().then(()=>require("./coffee-D_GzM8k1-DQThhwJg.cjs"))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>Promise.resolve().then(()=>require("./common-lisp-r7ZEOG7T-Ced3ctK5.cjs"))},{id:"coq",name:"Coq",import:()=>Promise.resolve().then(()=>require("./coq-CB6Pv_W9-BTRB4iqi.cjs"))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.resolve().then(()=>require("./cpp-CJF2i3ah-mxGthENV.cjs"))},{id:"crystal",name:"Crystal",import:()=>Promise.resolve().then(()=>require("./crystal-BKWnaU3g-Dh9wsPqT.cjs"))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>Promise.resolve().then(()=>require("./csharp-CYWRhZ2R-TKds-MhG.cjs"))},{id:"css",name:"CSS",import:()=>Promise.resolve().then(()=>require("./css-D1aVdRIU-B0kbn78J.cjs"))},{id:"csv",name:"CSV",import:()=>Promise.resolve().then(()=>require("./csv-DvCncUGQ-BVJjiaC3.cjs"))},{id:"cue",name:"CUE",import:()=>Promise.resolve().then(()=>require("./cue-BXMrmvay-Cz4J-rnd.cjs"))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>Promise.resolve().then(()=>require("./cypher-DTm5zNR1-DuKTiyez.cjs"))},{id:"d",name:"D",import:()=>Promise.resolve().then(()=>require("./d-D6ZXmn3l-BW9Wd7aK.cjs"))},{id:"dart",name:"Dart",import:()=>Promise.resolve().then(()=>require("./dart-Dz59Is3F-CWs-er6b.cjs"))},{id:"dax",name:"DAX",import:()=>Promise.resolve().then(()=>require("./dax-DTVGzydb-CDxFL2Kb.cjs"))},{id:"desktop",name:"Desktop",import:()=>Promise.resolve().then(()=>require("./desktop-Db9vb-dl-CFgo0jo7.cjs"))},{id:"diff",name:"Diff",import:()=>Promise.resolve().then(()=>require("./diff-XmNrvgM1-BsEkKwI8.cjs"))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>Promise.resolve().then(()=>require("./docker-DWH2onkn-hwiw4W8I.cjs"))},{id:"dotenv",name:"dotEnv",import:()=>Promise.resolve().then(()=>require("./dotenv-4337wvzu-CJ5o3G1C.cjs"))},{id:"dream-maker",name:"Dream Maker",import:()=>Promise.resolve().then(()=>require("./dream-maker-CvvfrJSx-DBharE9Q.cjs"))},{id:"edge",name:"Edge",import:()=>Promise.resolve().then(()=>require("./edge-CgxR-qhM-QOBckj2G.cjs"))},{id:"elixir",name:"Elixir",import:()=>Promise.resolve().then(()=>require("./elixir-DZkeSPwW-BCzkKkN0.cjs"))},{id:"elm",name:"Elm",import:()=>Promise.resolve().then(()=>require("./elm-BKuV1HE1-BuAwt4Hl.cjs"))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>Promise.resolve().then(()=>require("./emacs-lisp-BAefI874-CDDyFsvQ.cjs"))},{id:"erb",name:"ERB",import:()=>Promise.resolve().then(()=>require("./erb-BLwkpXUJ-D1H6o7M6.cjs"))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.resolve().then(()=>require("./erlang-CmIiwF3I-3VgdrQXV.cjs"))},{id:"fennel",name:"Fennel",import:()=>Promise.resolve().then(()=>require("./fennel-DNqkz9pE-RbmrEXt1.cjs"))},{id:"fish",name:"Fish",import:()=>Promise.resolve().then(()=>require("./fish-DIm72t2T-CnamI0Ar.cjs"))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>Promise.resolve().then(()=>require("./fluent-BapTxJsC-DFpT66K8.cjs"))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.resolve().then(()=>require("./fortran-fixed-form-s9Hnb3av-CEjzHIOU.cjs"))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>Promise.resolve().then(()=>require("./fortran-free-form-CNDsBFUj-IaGrWIda.cjs"))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.resolve().then(()=>require("./fsharp-Cv0x43wb-BCqXh2V2.cjs"))},{id:"gdresource",name:"GDResource",import:()=>Promise.resolve().then(()=>require("./gdresource-CMcKXvgJ-DKu0rUhv.cjs"))},{id:"gdscript",name:"GDScript",import:()=>Promise.resolve().then(()=>require("./gdscript-D7aheHm--5N_43TPQ.cjs"))},{id:"gdshader",name:"GDShader",import:()=>Promise.resolve().then(()=>require("./gdshader-BGJEsM2Z-Bl85Hrm5.cjs"))},{id:"genie",name:"Genie",import:()=>Promise.resolve().then(()=>require("./genie-C9gPjc6J-DGsxMAbQ.cjs"))},{id:"gherkin",name:"Gherkin",import:()=>Promise.resolve().then(()=>require("./gherkin-bka1Exbx-CVV6nEUH.cjs"))},{id:"git-commit",name:"Git Commit Message",import:()=>Promise.resolve().then(()=>require("./git-commit-BspYIY3P-BVfAvSRj.cjs"))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.resolve().then(()=>require("./git-rebase--zLBTjUa-yZFCfYZI.cjs"))},{id:"gleam",name:"Gleam",import:()=>Promise.resolve().then(()=>require("./gleam-B4k9YFGD-nR4mjrhK.cjs"))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.resolve().then(()=>require("./glimmer-js-DhY9umHJ-B8qSrQ6z.cjs"))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.resolve().then(()=>require("./glimmer-ts-CCrHcYH5-BhxePz75.cjs"))},{id:"glsl",name:"GLSL",import:()=>Promise.resolve().then(()=>require("./glsl-XLGYNq5B-CKVGq6Vy.cjs"))},{id:"gnuplot",name:"Gnuplot",import:()=>Promise.resolve().then(()=>require("./gnuplot-DnWoRZt--CurtDYoJ.cjs"))},{id:"go",name:"Go",import:()=>Promise.resolve().then(()=>require("./go-BErP6iv1-CM9_GlwL.cjs"))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.resolve().then(()=>require("./graphql-DWpQF4JI-DAzySKco.cjs"))},{id:"groovy",name:"Groovy",import:()=>Promise.resolve().then(()=>require("./groovy-IWs5-NIO-BaVp9Il5.cjs"))},{id:"hack",name:"Hack",import:()=>Promise.resolve().then(()=>require("./hack-CQrV-ytR-DlrP0wJF.cjs"))},{id:"haml",name:"Ruby Haml",import:()=>Promise.resolve().then(()=>require("./haml-CMN0hQaL-D-xy9KwO.cjs"))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.resolve().then(()=>require("./handlebars-Cc-7fXX5-C3QFNHjc.cjs"))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>Promise.resolve().then(()=>require("./haskell-CtlGos0K-suhyCHEm.cjs"))},{id:"haxe",name:"Haxe",import:()=>Promise.resolve().then(()=>require("./haxe-CZZ33vZw-BIQU1qHi.cjs"))},{id:"hcl",name:"HashiCorp HCL",import:()=>Promise.resolve().then(()=>require("./hcl-6hOg9WP4-CbQ1yCnz.cjs"))},{id:"hjson",name:"Hjson",import:()=>Promise.resolve().then(()=>require("./hjson-CgwED-oz-Ddklb4QM.cjs"))},{id:"hlsl",name:"HLSL",import:()=>Promise.resolve().then(()=>require("./hlsl-3-lv4gi7-B4NkiBfC.cjs"))},{id:"html",name:"HTML",import:()=>Promise.resolve().then(()=>require("./html-B0P_v3yU-Bx2ubL-P.cjs"))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.resolve().then(()=>require("./html-derivative-D59SHfh8-BWgQxp09.cjs"))},{id:"http",name:"HTTP",import:()=>Promise.resolve().then(()=>require("./http-Dcjm_K1m-CyYiumKc.cjs"))},{id:"hxml",name:"HXML",import:()=>Promise.resolve().then(()=>require("./hxml-BNKImryz-DflK5a38.cjs"))},{id:"hy",name:"Hy",import:()=>Promise.resolve().then(()=>require("./hy-C2xHhR6I-DpyTdO3T.cjs"))},{id:"imba",name:"Imba",import:()=>Promise.resolve().then(()=>require("./imba-Drd0AMDo-CtsqZbnp.cjs"))},{id:"ini",name:"INI",aliases:["properties"],import:()=>Promise.resolve().then(()=>require("./ini-BUcvsX-U-CymULaw_.cjs"))},{id:"java",name:"Java",import:()=>Promise.resolve().then(()=>require("./java-B7odJ7Ap-Bn1Lvoni.cjs"))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>Promise.resolve().then(()=>require("./javascript-fa8UlHZE-Bnnicc83.cjs"))},{id:"jinja",name:"Jinja",import:()=>Promise.resolve().then(()=>require("./jinja-CCSYduCH-DFH8FT_u.cjs"))},{id:"jison",name:"Jison",import:()=>Promise.resolve().then(()=>require("./jison-BygvlveW-CAVWywU2.cjs"))},{id:"json",name:"JSON",import:()=>Promise.resolve().then(()=>require("./json-71t8ZF9g-y-J1j5EW.cjs"))},{id:"json5",name:"JSON5",import:()=>Promise.resolve().then(()=>require("./json5-Z7F6rA6a-CzvlWgZ7.cjs"))},{id:"jsonc",name:"JSON with Comments",import:()=>Promise.resolve().then(()=>require("./jsonc-Dphhs4m2-BnhWfmQw.cjs"))},{id:"jsonl",name:"JSON Lines",import:()=>Promise.resolve().then(()=>require("./jsonl-D9jj92Gg-BbGkWPJz.cjs"))},{id:"jsonnet",name:"Jsonnet",import:()=>Promise.resolve().then(()=>require("./jsonnet-DEQ7IUoJ-Bn--UDZ1.cjs"))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>Promise.resolve().then(()=>require("./jssm-j74e88UX-4CSVp8lc.cjs"))},{id:"jsx",name:"JSX",import:()=>Promise.resolve().then(()=>require("./jsx-Bkesy5tT-D8YwVp-7.cjs"))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.resolve().then(()=>require("./julia-CiahampL-B6MmycY8.cjs"))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>Promise.resolve().then(()=>require("./kotlin-DCgZY7Ii-DDI6myF6.cjs"))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>Promise.resolve().then(()=>require("./kusto-Cw029H-v-OZxALJZT.cjs"))},{id:"latex",name:"LaTeX",import:()=>Promise.resolve().then(()=>require("./latex-LfGCYGw5-BpRkh3pg.cjs"))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>Promise.resolve().then(()=>require("./lean-CYSet4vs-D1iY-35j.cjs"))},{id:"less",name:"Less",import:()=>Promise.resolve().then(()=>require("./less-DQA4v-Nm-DIaY7vQJ.cjs"))},{id:"liquid",name:"Liquid",import:()=>Promise.resolve().then(()=>require("./liquid-CvufO3kO-HvZpXeqg.cjs"))},{id:"log",name:"Log file",import:()=>Promise.resolve().then(()=>require("./log-D2eRfqDn-BIXUeBaj.cjs"))},{id:"logo",name:"Logo",import:()=>Promise.resolve().then(()=>require("./logo-QEAtGWZ9-B2d3b27P.cjs"))},{id:"lua",name:"Lua",import:()=>Promise.resolve().then(()=>require("./lua-BVfhNLDr-uB28QHL6.cjs"))},{id:"luau",name:"Luau",import:()=>Promise.resolve().then(()=>require("./luau-BjYGiqID-CvqAeq4F.cjs"))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>Promise.resolve().then(()=>require("./make-BjuHP00g-Oob5Z9Pk.cjs"))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>Promise.resolve().then(()=>require("./markdown-B6guhLWd-BGBuj4LZ.cjs"))},{id:"marko",name:"Marko",import:()=>Promise.resolve().then(()=>require("./marko-CHlMS8w5-Bly6x4mc.cjs"))},{id:"matlab",name:"MATLAB",import:()=>Promise.resolve().then(()=>require("./matlab-BpQlIJiw-CbN2rF6P.cjs"))},{id:"mdc",name:"MDC",import:()=>Promise.resolve().then(()=>require("./mdc-4K6B6lHG-DgYKiLhu.cjs"))},{id:"mdx",name:"MDX",import:()=>Promise.resolve().then(()=>require("./mdx-DIoECIFU-Cl31h8mi.cjs"))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>Promise.resolve().then(()=>require("./mermaid-BZ7WHNIe-CSogK_LM.cjs"))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>Promise.resolve().then(()=>require("./mipsasm-DusDYkFc-BseoYJQp.cjs"))},{id:"mojo",name:"Mojo",import:()=>Promise.resolve().then(()=>require("./mojo-CY9jaezJ-D8QAG3Ze.cjs"))},{id:"move",name:"Move",import:()=>Promise.resolve().then(()=>require("./move-ChphFumd-DaBrcjat.cjs"))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>Promise.resolve().then(()=>require("./narrat-Dz4d7OmN-oOfAO4q8.cjs"))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>Promise.resolve().then(()=>require("./nextflow-DW0Yq9a2-BxJSKvPb.cjs"))},{id:"nginx",name:"Nginx",import:()=>Promise.resolve().then(()=>require("./nginx-Can2eAjw-rA5kE0A8.cjs"))},{id:"nim",name:"Nim",import:()=>Promise.resolve().then(()=>require("./nim-B3r2RtQZ-CRDytbsR.cjs"))},{id:"nix",name:"Nix",import:()=>Promise.resolve().then(()=>require("./nix-Cg5uV_xg-DNME0Ea7.cjs"))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>Promise.resolve().then(()=>require("./nushell-BfRnzRWn-DI9Z3l3M.cjs"))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>Promise.resolve().then(()=>require("./objective-c-BGg9R27G-DVx8Rcni.cjs"))},{id:"objective-cpp",name:"Objective-C++",import:()=>Promise.resolve().then(()=>require("./objective-cpp-CJ3y3V_5-s6XI7Jvk.cjs"))},{id:"ocaml",name:"OCaml",import:()=>Promise.resolve().then(()=>require("./ocaml-BZLsfx_o-kUzDDUf2.cjs"))},{id:"pascal",name:"Pascal",import:()=>Promise.resolve().then(()=>require("./pascal-l2bqd7Dz-D509_I72.cjs"))},{id:"perl",name:"Perl",import:()=>Promise.resolve().then(()=>require("./perl-DaMQyPwp-C9Yq1yZR.cjs"))},{id:"php",name:"PHP",import:()=>Promise.resolve().then(()=>require("./php-BL3EfPBi-Ctb1WwmF.cjs"))},{id:"plsql",name:"PL/SQL",import:()=>Promise.resolve().then(()=>require("./plsql-oVq_K_wH-C_qH_YOK.cjs"))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>Promise.resolve().then(()=>require("./po-5jaeIyVd-CBsLQIcu.cjs"))},{id:"polar",name:"Polar",import:()=>Promise.resolve().then(()=>require("./polar-wcLp8ci7-De-CDeYv.cjs"))},{id:"postcss",name:"PostCSS",import:()=>Promise.resolve().then(()=>require("./postcss-BZ3MNRIJ-BtcsgaYj.cjs"))},{id:"powerquery",name:"PowerQuery",import:()=>Promise.resolve().then(()=>require("./powerquery-CgRa2XRw-B0rHn13V.cjs"))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>Promise.resolve().then(()=>require("./powershell-Diwyv8Eh-rCX2OYXT.cjs"))},{id:"prisma",name:"Prisma",import:()=>Promise.resolve().then(()=>require("./prisma-COL_v1x4-BaaUHYMp.cjs"))},{id:"prolog",name:"Prolog",import:()=>Promise.resolve().then(()=>require("./prolog-CuvJOxqT-DrXD2tGS.cjs"))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>Promise.resolve().then(()=>require("./proto-o9HLmF90-BtmQjBQu.cjs"))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.resolve().then(()=>require("./pug-HKe4Luo3-DATD2ck2.cjs"))},{id:"puppet",name:"Puppet",import:()=>Promise.resolve().then(()=>require("./puppet-wpGOnQp5-cIrXIuy8.cjs"))},{id:"purescript",name:"PureScript",import:()=>Promise.resolve().then(()=>require("./purescript-B_1NgE2N-CX9QPs2N.cjs"))},{id:"python",name:"Python",aliases:["py"],import:()=>Promise.resolve().then(()=>require("./python-xYxLFJY--B9x3euv6.cjs"))},{id:"qml",name:"QML",import:()=>Promise.resolve().then(()=>require("./qml-FlMIyjU9-DosAZz3a.cjs"))},{id:"qmldir",name:"QML Directory",import:()=>Promise.resolve().then(()=>require("./qmldir-BInDYbpo-DNF9H2ir.cjs"))},{id:"qss",name:"Qt Style Sheets",import:()=>Promise.resolve().then(()=>require("./qss-D-h4NdUG-C744dLby.cjs"))},{id:"r",name:"R",import:()=>Promise.resolve().then(()=>require("./r-F-9I-ITZ-DgOc9oMe.cjs"))},{id:"racket",name:"Racket",import:()=>Promise.resolve().then(()=>require("./racket-BoD1TBFT-Do9_vqnd.cjs"))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>Promise.resolve().then(()=>require("./raku-IaYcw19m-BW8wAUIz.cjs"))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.resolve().then(()=>require("./razor-CeqqNtyB-BA9H6h3O.cjs"))},{id:"reg",name:"Windows Registry Script",import:()=>Promise.resolve().then(()=>require("./reg-CMUdAgIP-CGWN_v-z.cjs"))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>Promise.resolve().then(()=>require("./regexp-GiFkbxS--N7Z4hEeU.cjs"))},{id:"rel",name:"Rel",import:()=>Promise.resolve().then(()=>require("./rel-BaRn3QX7-BYqA7mnV.cjs"))},{id:"riscv",name:"RISC-V",import:()=>Promise.resolve().then(()=>require("./riscv-B9V3SsvW-ayQMUpo9.cjs"))},{id:"rst",name:"reStructuredText",import:()=>Promise.resolve().then(()=>require("./rst-C3D6-dqL-BT5HStkB.cjs"))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.resolve().then(()=>require("./ruby-DcPLUUK3-wN4H1UJ4.cjs"))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>Promise.resolve().then(()=>require("./rust-Pc7DCsZD-BnFKGEfa.cjs"))},{id:"sas",name:"SAS",import:()=>Promise.resolve().then(()=>require("./sas-tDSYjXcL-CVXyyAVy.cjs"))},{id:"sass",name:"Sass",import:()=>Promise.resolve().then(()=>require("./sass-iCyS6eP9-B9gYryDE.cjs"))},{id:"scala",name:"Scala",import:()=>Promise.resolve().then(()=>require("./scala-Cly-fENF-C85dOwSU.cjs"))},{id:"scheme",name:"Scheme",import:()=>Promise.resolve().then(()=>require("./scheme-Zi24oEYu-B_XUaARm.cjs"))},{id:"scss",name:"SCSS",import:()=>Promise.resolve().then(()=>require("./scss-DhHc4lxB-DlTye6oP.cjs"))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>Promise.resolve().then(()=>require("./sdbl-BBamrXFL-7Y5u0OW0.cjs"))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>Promise.resolve().then(()=>require("./shaderlab-CvqEIoL0-CHjycJTX.cjs"))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>Promise.resolve().then(()=>require("./shellscript-Dn0-btNd-3DYM9fut.cjs"))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.resolve().then(()=>require("./shellsession-8OLo3sB6-1ZxGYG-g.cjs"))},{id:"smalltalk",name:"Smalltalk",import:()=>Promise.resolve().then(()=>require("./smalltalk-Cns31tKw-CCvytUuW.cjs"))},{id:"solidity",name:"Solidity",import:()=>Promise.resolve().then(()=>require("./solidity-BG_k8fA_-BcNcjFC4.cjs"))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.resolve().then(()=>require("./soy-EwHMOVPj-BYqzy0Qe.cjs"))},{id:"sparql",name:"SPARQL",import:()=>Promise.resolve().then(()=>require("./sparql-DhuelBut-De7XP5Cr.cjs"))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>Promise.resolve().then(()=>require("./splunk-CTqDjQdo-CzITjJj7.cjs"))},{id:"sql",name:"SQL",import:()=>Promise.resolve().then(()=>require("./sql-DCkt643--BqWZrLHB.cjs"))},{id:"ssh-config",name:"SSH Config",import:()=>Promise.resolve().then(()=>require("./ssh-config-DHHGll-v-DUPeuEdB.cjs"))},{id:"stata",name:"Stata",import:()=>Promise.resolve().then(()=>require("./stata-Dok6hMw0-Dx7ri5v3.cjs"))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>Promise.resolve().then(()=>require("./stylus-n_9f0QQ5-ByHs6N-o.cjs"))},{id:"svelte",name:"Svelte",import:()=>Promise.resolve().then(()=>require("./svelte-01qw6Rxm-Dkzwx26T.cjs"))},{id:"swift",name:"Swift",import:()=>Promise.resolve().then(()=>require("./swift-BAWqNR8A-C5DnOriA.cjs"))},{id:"system-verilog",name:"SystemVerilog",import:()=>Promise.resolve().then(()=>require("./system-verilog-Cui-g-ut-ClPLYLwh.cjs"))},{id:"systemd",name:"Systemd Units",import:()=>Promise.resolve().then(()=>require("./systemd-CsKYQIQK-BASX0DlX.cjs"))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>Promise.resolve().then(()=>require("./talonscript-D2dGh8FO-DkCSnLHD.cjs"))},{id:"tasl",name:"Tasl",import:()=>Promise.resolve().then(()=>require("./tasl-D3W8HMV6-BAQJK7KZ.cjs"))},{id:"tcl",name:"Tcl",import:()=>Promise.resolve().then(()=>require("./tcl-2y0Fuc4S-CwJAYTvh.cjs"))},{id:"templ",name:"Templ",import:()=>Promise.resolve().then(()=>require("./templ-Hmy8U0DD-zKf-hrbF.cjs"))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>Promise.resolve().then(()=>require("./terraform-BGW6Oerf-s-pzyVvp.cjs"))},{id:"tex",name:"TeX",import:()=>Promise.resolve().then(()=>require("./tex-mHs7a43s-CNkFtfz8.cjs"))},{id:"toml",name:"TOML",import:()=>Promise.resolve().then(()=>require("./toml-CQSfOn0e-CyMM7IXy.cjs"))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.resolve().then(()=>require("./ts-tags-DYZ4SGcN-BlDvJKty.cjs"))},{id:"tsv",name:"TSV",import:()=>Promise.resolve().then(()=>require("./tsv-BtvSkaG0-DqNGnuVj.cjs"))},{id:"tsx",name:"TSX",import:()=>Promise.resolve().then(()=>require("./tsx-DiGsgWT8-DpBRUnKC.cjs"))},{id:"turtle",name:"Turtle",import:()=>Promise.resolve().then(()=>require("./turtle-BJ2wmjPc-DfO3eAsu.cjs"))},{id:"twig",name:"Twig",import:()=>Promise.resolve().then(()=>require("./twig-BmytkGQV-Cn_QYGU2.cjs"))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>Promise.resolve().then(()=>require("./typescript-buWNZFwO-BqvpT6pB.cjs"))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>Promise.resolve().then(()=>require("./typespec-bLbdsxJL-P-ZVy8yC.cjs"))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.resolve().then(()=>require("./typst-Y9_SmXTs-BVh2IsT9.cjs"))},{id:"v",name:"V",import:()=>Promise.resolve().then(()=>require("./v-wa8Orrdd-BUlE9136.cjs"))},{id:"vala",name:"Vala",import:()=>Promise.resolve().then(()=>require("./vala-DRdriFr_-BIymb2K_.cjs"))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>Promise.resolve().then(()=>require("./vb-E2_-jk4M-IXOh8mqV.cjs"))},{id:"verilog",name:"Verilog",import:()=>Promise.resolve().then(()=>require("./verilog-B1iBoR5_-BiglCqvO.cjs"))},{id:"vhdl",name:"VHDL",import:()=>Promise.resolve().then(()=>require("./vhdl-CRVaAhXk-CJUzuS2t.cjs"))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>Promise.resolve().then(()=>require("./viml-B-zWOd7Z-B1nKLcgt.cjs"))},{id:"vue",name:"Vue",import:()=>Promise.resolve().then(()=>require("./vue-Bl1uVNsA-B4RiOuMx.cjs"))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.resolve().then(()=>require("./vue-html-DHr5wjBG-BMqayJuq.cjs"))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>Promise.resolve().then(()=>require("./vyper-DWutKXpa-CO9xUkIY.cjs"))},{id:"wasm",name:"WebAssembly",import:()=>Promise.resolve().then(()=>require("./wasm-Bv5f0gKv-CdIThIat.cjs"))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>Promise.resolve().then(()=>require("./wenyan-BMYnfus1-BSJ3fk7e.cjs"))},{id:"wgsl",name:"WGSL",import:()=>Promise.resolve().then(()=>require("./wgsl-DnPoPGDU-d3zZE7ZN.cjs"))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>Promise.resolve().then(()=>require("./wikitext-CntM04PE-BRCqXN2g.cjs"))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>Promise.resolve().then(()=>require("./wolfram-Ws5qPlX9-C3rR92zj.cjs"))},{id:"xml",name:"XML",import:()=>Promise.resolve().then(()=>require("./xml-ChBsf5uy-CyV-nzFi.cjs"))},{id:"xsl",name:"XSL",import:()=>Promise.resolve().then(()=>require("./xsl-BefjlXrd-Bgz0N8I4.cjs"))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>Promise.resolve().then(()=>require("./yaml-Bbg74JKr-7DV6pRKj.cjs"))},{id:"zenscript",name:"ZenScript",import:()=>Promise.resolve().then(()=>require("./zenscript-C0RKE4nU-BWMxwjeH.cjs"))},{id:"zig",name:"Zig",import:()=>Promise.resolve().then(()=>require("./zig-D6SXBGNm-yAcNfpgW.cjs"))}],zb=Object.fromEntries(Md.map(e=>[e.id,e.import])),Ub=Object.fromEntries(Md.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Wb={...zb,...Ub},Hb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>Promise.resolve().then(()=>require("./andromeeda-uXNdzNpk-BXc5FOIb.cjs"))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>Promise.resolve().then(()=>require("./aurora-x-BwoVEUWZ-C5IpmIOG.cjs"))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./ayu-dark-CxPZkpb2-Cv7nTiif.cjs"))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-frappe-BrTOiad2-DXAedND3.cjs"))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>Promise.resolve().then(()=>require("./catppuccin-latte-D-dc_R4m-mwGw3-Ej.cjs"))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-macchiato-DN4jOp0G-cQCk9ADg.cjs"))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>Promise.resolve().then(()=>require("./catppuccin-mocha-B8yCE3-3-ClSzDZSl.cjs"))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>Promise.resolve().then(()=>require("./dark-plus-pUHDTVV0-Cd5emcYO.cjs"))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-BtZx2Kac-BNgwAJ-d.cjs"))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>Promise.resolve().then(()=>require("./dracula-soft-BKa-aqBv-BHZ7sHFu.cjs"))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./everforest-dark-DMCBqXCK-_sBMomR1.cjs"))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>Promise.resolve().then(()=>require("./everforest-light-BbXl82Em-H0xoYxl0.cjs"))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-DenFmJkN-BKL9xNgN.cjs"))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-default-BJPUVz4H-Dsv5MuSi.cjs"))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-dimmed-DUshB20C-CtB9hz8U.cjs"))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>Promise.resolve().then(()=>require("./github-dark-high-contrast-D3aGCnF8-BqZVM-jF.cjs"))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-JYsPkUQd-BFTOhCbz.cjs"))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-default-D99KPAby-BZoWH9dH.cjs"))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>Promise.resolve().then(()=>require("./github-light-high-contrast-BbmZE-Mp-Ks3kPGJU.cjs"))},{id:"houston",displayName:"Houston",type:"dark",import:()=>Promise.resolve().then(()=>require("./houston-BDYrDoDW-T57H3gQZ.cjs"))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-dragon-CiKur4Hl-BJZF7xDr.cjs"))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>Promise.resolve().then(()=>require("./kanagawa-lotus-BKu-smKu-BhgzmRV4.cjs"))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>Promise.resolve().then(()=>require("./kanagawa-wave-CQwozSzG-BgJip59C.cjs"))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>Promise.resolve().then(()=>require("./laserwave-6a00oqik-CIb51Re4.cjs"))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>Promise.resolve().then(()=>require("./light-plus-CZuVqSLX-B5D0le0o.cjs"))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-D6KBX41T-Dj0-OyRN.cjs"))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-darker-CkRroheE-Dvfs29ir.cjs"))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>Promise.resolve().then(()=>require("./material-theme-lighter-BUBw43Yz-EU3ZGl_r.cjs"))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-ocean-ClGX14Ja-px_3Pwqa.cjs"))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>Promise.resolve().then(()=>require("./material-theme-palenight-C1RVm8K1-38jxvsGX.cjs"))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./min-dark-C7ak0t6c-tt5o_I5e.cjs"))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>Promise.resolve().then(()=>require("./min-light-CKFxVcPp-tmTHl_CQ.cjs"))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>Promise.resolve().then(()=>require("./monokai-C1KBYcO0-DMIxv6MM.cjs"))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>Promise.resolve().then(()=>require("./night-owl-Bm2rzalh-BN78kThQ.cjs"))},{id:"nord",displayName:"Nord",type:"dark",import:()=>Promise.resolve().then(()=>require("./nord-CC5OiUXg-Ca5AGUWc.cjs"))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>Promise.resolve().then(()=>require("./one-dark-pro-D7-kP8fv-JOzzHStv.cjs"))},{id:"one-light",displayName:"One Light",type:"light",import:()=>Promise.resolve().then(()=>require("./one-light-D9sNaUtq-020-h_lv.cjs"))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>Promise.resolve().then(()=>require("./plastic-CSTz3KZp-r5piqq-S.cjs"))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>Promise.resolve().then(()=>require("./poimandres-C-VADXHD-BLP3NNjc.cjs"))},{id:"red",displayName:"Red",type:"dark",import:()=>Promise.resolve().then(()=>require("./red-7y8PH7HH-BQGOv1D5.cjs"))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-DhT-HZE9-DKEdv1Oe.cjs"))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>Promise.resolve().then(()=>require("./rose-pine-dawn-DiCjL2i4-Bvt6DtVH.cjs"))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>Promise.resolve().then(()=>require("./rose-pine-moon-BNmGHlcn-cHuJy0Ng.cjs"))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./slack-dark-i7wN4OET-akqwQ7ED.cjs"))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>Promise.resolve().then(()=>require("./slack-ochin-ndHf0LoP-BoQQWmTv.cjs"))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>Promise.resolve().then(()=>require("./snazzy-light-BlSJXAu4-D_IwRieF.cjs"))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./solarized-dark-UTmkh7lw-gmm-WbDC.cjs"))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>Promise.resolve().then(()=>require("./solarized-light-BheCkDPT-DzcxRSZP.cjs"))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>Promise.resolve().then(()=>require("./synthwave-84-NU3C_KFZ-BBRLOmNT.cjs"))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>Promise.resolve().then(()=>require("./tokyo-night-LhP3hHhi-9T7_vGSy.cjs"))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>Promise.resolve().then(()=>require("./vesper-CJsaOsSM-DqLWLxOu.cjs"))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-black-BoGvW84i-MF-1S1MG.cjs"))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>Promise.resolve().then(()=>require("./vitesse-dark-Cym-eLtO-SIffJYSe.cjs"))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>Promise.resolve().then(()=>require("./vitesse-light-CcmG315c-U63SkYGT.cjs"))}],Vb=Object.fromEntries(Hb.map(e=>[e.id,e.import]));let fr=class extends Error{constructor(e){super(e),this.name="ShikiError"}},nl=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Gb(){return 2147483648}function Kb(){return typeof performance<"u"?performance.now():Date.now()}const Qb=(e,t)=>e+(t-e%t)%t;async function Yb(e){let t,r;const n={};function o(f){r=f,n.HEAPU8=new Uint8Array(f),n.HEAPU32=new Uint32Array(f)}function a(f,g,y){n.HEAPU8.copyWithin(f,g,g+y)}function i(f){try{return t.grow(f-r.byteLength+65535>>>16),o(t.buffer),1}catch{}}function s(f){const g=n.HEAPU8.length;f=f>>>0;const y=Gb();if(f>y)return!1;for(let v=1;v<=4;v*=2){let b=g*(1+.2/v);b=Math.min(b,f+100663296);const C=Math.min(y,Qb(Math.max(f,b),65536));if(i(C))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(f,g,y=1024){const v=g+y;let b=g;for(;f[b]&&!(b>=v);)++b;if(b-g>16&&f.buffer&&l)return l.decode(f.subarray(g,b));let C="";for(;g<b;){let w=f[g++];if(!(w&128)){C+=String.fromCharCode(w);continue}const k=f[g++]&63;if((w&224)===192){C+=String.fromCharCode((w&31)<<6|k);continue}const j=f[g++]&63;if((w&240)===224?w=(w&15)<<12|k<<6|j:w=(w&7)<<18|k<<12|j<<6|f[g++]&63,w<65536)C+=String.fromCharCode(w);else{const P=w-65536;C+=String.fromCharCode(55296|P>>10,56320|P&1023)}}return C}function u(f,g){return f?c(n.HEAPU8,f,g):""}const p={emscripten_get_now:Kb,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await e({env:p,wasi_snapshot_preview1:p});t=f.memory,o(t.buffer),Object.assign(n,f),n.UTF8ToString=u}return await h(),n}var Jb=Object.defineProperty,Xb=(e,t,r)=>t in e?Jb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ze=(e,t,r)=>(Xb(e,typeof t!="symbol"?t+"":t,r),r);let nt=null;function Zb(e){throw new nl(e.UTF8ToString(e.getLastOnigError()))}class ii{constructor(t){Ze(this,"utf16Length"),Ze(this,"utf8Length"),Ze(this,"utf16Value"),Ze(this,"utf8Value"),Ze(this,"utf16OffsetToUtf8"),Ze(this,"utf8OffsetToUtf16");const r=t.length,n=ii._utf8ByteLength(t),o=n!==r,a=o?new Uint32Array(r+1):null;o&&(a[r]=n);const i=o?new Uint32Array(n+1):null;o&&(i[n]=r);const s=new Uint8Array(n);let l=0;for(let c=0;c<r;c++){const u=t.charCodeAt(c);let p=u,h=!1;if(u>=55296&&u<=56319&&c+1<r){const f=t.charCodeAt(c+1);f>=56320&&f<=57343&&(p=(u-55296<<10)+65536|f-56320,h=!0)}o&&(a[c]=l,h&&(a[c+1]=l),p<=127?i[l+0]=c:p<=2047?(i[l+0]=c,i[l+1]=c):p<=65535?(i[l+0]=c,i[l+1]=c,i[l+2]=c):(i[l+0]=c,i[l+1]=c,i[l+2]=c,i[l+3]=c)),p<=127?s[l++]=p:p<=2047?(s[l++]=192|(p&1984)>>>6,s[l++]=128|(p&63)>>>0):p<=65535?(s[l++]=224|(p&61440)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0):(s[l++]=240|(p&1835008)>>>18,s[l++]=128|(p&258048)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0),h&&c++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let r=0;for(let n=0,o=t.length;n<o;n++){const a=t.charCodeAt(n);let i=a,s=!1;if(a>=55296&&a<=56319&&n+1<o){const l=t.charCodeAt(n+1);l>=56320&&l<=57343&&(i=(a-55296<<10)+65536|l-56320,s=!0)}i<=127?r+=1:i<=2047?r+=2:i<=65535?r+=3:r+=4,s&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const Zt=class{constructor(e){if(Ze(this,"id",++Zt.LAST_ID),Ze(this,"_onigBinding"),Ze(this,"content"),Ze(this,"utf16Length"),Ze(this,"utf8Length"),Ze(this,"utf16OffsetToUtf8"),Ze(this,"utf8OffsetToUtf16"),Ze(this,"ptr"),!nt)throw new nl("Must invoke loadWasm first.");this._onigBinding=nt,this.content=e;const t=new ii(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!Zt._sharedPtrInUse?(Zt._sharedPtr||(Zt._sharedPtr=nt.omalloc(1e4)),Zt._sharedPtrInUse=!0,nt.HEAPU8.set(t.utf8Value,Zt._sharedPtr),this.ptr=Zt._sharedPtr):this.ptr=t.createString(nt)}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===Zt._sharedPtr?Zt._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Lo=Zt;Ze(Lo,"LAST_ID",0);Ze(Lo,"_sharedPtr",0);Ze(Lo,"_sharedPtrInUse",!1);class e0{constructor(t){if(Ze(this,"_onigBinding"),Ze(this,"_ptr"),!nt)throw new nl("Must invoke loadWasm first.");const r=[],n=[];for(let s=0,l=t.length;s<l;s++){const c=new ii(t[s]);r[s]=c.createString(nt),n[s]=c.utf8Length}const o=nt.omalloc(4*t.length);nt.HEAPU32.set(r,o/4);const a=nt.omalloc(4*t.length);nt.HEAPU32.set(n,a/4);const i=nt.createOnigScanner(o,a,t.length);for(let s=0,l=t.length;s<l;s++)nt.ofree(r[s]);nt.ofree(a),nt.ofree(o),i===0&&Zb(nt),this._onigBinding=nt,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let o=0;if(typeof n=="number"&&(o=n),typeof t=="string"){t=new Lo(t);const a=this._findNextMatchSync(t,r,!1,o);return t.dispose(),a}return this._findNextMatchSync(t,r,!1,o)}_findNextMatchSync(t,r,n,o){const a=this._onigBinding,i=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),o);if(i===0)return null;const s=a.HEAPU32;let l=i/4;const c=s[l++],u=s[l++],p=[];for(let h=0;h<u;h++){const f=t.convertUtf8OffsetToUtf16(s[l++]),g=t.convertUtf8OffsetToUtf16(s[l++]);p[h]={start:f,end:g,length:g-f}}return{index:c,captureIndices:p}}}function t0(e){return typeof e.instantiator=="function"}function r0(e){return typeof e.default=="function"}function n0(e){return typeof e.data<"u"}function o0(e){return typeof Response<"u"&&e instanceof Response}function a0(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let na;function i0(e){if(na)return na;async function t(){nt=await Yb(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),t0(n)?n=await n.instantiator(r):r0(n)?n=await n.default(r):(n0(n)&&(n=n.data),o0(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await s0(n)(r):n=await l0(n)(r):a0(n)?n=await _i(n)(r):n instanceof WebAssembly.Module?n=await _i(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await _i(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return na=t(),na}function _i(e){return t=>WebAssembly.instantiate(e,t)}function s0(e){return t=>WebAssembly.instantiateStreaming(e,t)}function l0(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}let c0;function u0(){return c0}async function Ad(e){return e&&await i0(e),{createScanner(t){return new e0(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new Lo(t)}}}function d0(e){return ol(e)}function ol(e){return Array.isArray(e)?p0(e):e instanceof RegExp?e:typeof e=="object"?h0(e):e}function p0(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=ol(e[r]);return t}function h0(e){let t={};for(let r in e)t[r]=ol(e[r]);return t}function _d(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function Od(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Od(e.substring(0,e.length-1)):e.substr(~t+1)}var Oi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,oa=class{static hasCaptures(e){return e===null?!1:(Oi.lastIndex=0,Oi.test(e))}static replaceCaptures(e,t,r){return e.replace(Oi,(n,o,a,i)=>{let s=r[parseInt(o||a,10)];if(s){let l=t.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function Ld(e,t){return e<t?-1:e>t?1:0}function $d(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let o=0;o<r;o++){let a=Ld(e[o],t[o]);if(a!==0)return a}return 0}return r-n}function Oc(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 Dd(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Bd=class{constructor(e){T(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Ta=class{constructor(e,t,r){T(this,"_cachedMatchRoot",new Bd(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(g0(e),t)}static createFromParsedTheme(e,t){return b0(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(n=>m0(e.parent,n.parentScopes));return r?new qd(r.fontStyle,r.foreground,r.background):null}},Li=class ga{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new ga(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new ga(r,t[n]);return r}push(t){return new ga(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function m0(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],o=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],o=!0}for(;e&&!f0(e.scopeName,n);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function f0(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var qd=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function g0(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let o=0,a=t.length;o<a;o++){let i=t[o];if(!i.settings)continue;let s;if(typeof i.scope=="string"){let p=i.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),s=p.split(",")}else Array.isArray(i.scope)?s=i.scope:s=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let p=i.settings.fontStyle.split(" ");for(let h=0,f=p.length;h<f;h++)switch(p[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Oc(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Oc(i.settings.background)&&(u=i.settings.background);for(let p=0,h=s.length;p<h;p++){let f=s[p].trim().split(" "),g=f[f.length-1],y=null;f.length>1&&(y=f.slice(0,f.length-1),y.reverse()),r[n++]=new y0(g,y,o,l,c,u)}}return r}var y0=class{constructor(e,t,r,n,o,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=o,this.background=a}},hr=(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))(hr||{});function b0(e,t){e.sort((l,c)=>{let u=Ld(l.scope,c.scope);return u!==0||(u=$d(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let r=0,n="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(o=l.background)}let a=new x0(t),i=new qd(r,a.getId(n),a.getId(o)),s=new S0(new as(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let u=e[l];s.insert(0,u.scope,u.parentScopes,u.fontStyle,a.getId(u.foreground),a.getId(u.background))}return new Ta(a,i,s)}var x0=class{constructor(e){T(this,"_isFrozen");T(this,"_lastColorId");T(this,"_id2color");T(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},v0=Object.freeze([]),as=class Fd{constructor(t,r,n,o,a){T(this,"scopeDepth");T(this,"parentScopes");T(this,"fontStyle");T(this,"foreground");T(this,"background");this.scopeDepth=t,this.parentScopes=r||v0,this.fontStyle=n,this.foreground=o,this.background=a}clone(){return new Fd(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,o=t.length;n<o;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),o!==0&&(this.background=o)}},S0=class is{constructor(t,r=[],n={}){T(this,"_rulesWithParentScopes");this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,o=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[o]===">"&&o++,!(n>=t.parentScopes.length||o>=r.parentScopes.length);){const a=r.parentScopes[o].length-t.parentScopes[n].length;if(a!==0)return a;n++,o++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),o,a;if(n===-1?(o=t,a=""):(o=t.substring(0,n),a=t.substring(n+1)),this._children.hasOwnProperty(o))return this._children[o].match(a)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(is._cmpBySpecificity),r}insert(t,r,n,o,a,i){if(r===""){this._doInsertHere(t,n,o,a,i);return}let s=r.indexOf("."),l,c;s===-1?(l=r,c=""):(l=r.substring(0,s),c=r.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new is(this._mainRule.clone(),as.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,c,n,o,a,i)}_doInsertHere(t,r,n,o,a){if(r===null){this._mainRule.acceptOverwrite(t,n,o,a);return}for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let l=this._rulesWithParentScopes[i];if($d(l.parentScopes,r)===0){l.acceptOverwrite(t,n,o,a);return}}n===-1&&(n=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new as(t,r,n,o,a))}},_n=class Tt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=Tt.getLanguageId(t),n=Tt.getTokenType(t),o=Tt.getFontStyle(t),a=Tt.getForeground(t),i=Tt.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:o,foreground:a,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,o,a,i,s){let l=Tt.getLanguageId(t),c=Tt.getTokenType(t),u=Tt.containsBalancedBrackets(t)?1:0,p=Tt.getFontStyle(t),h=Tt.getForeground(t),f=Tt.getBackground(t);return r!==0&&(l=r),n!==8&&(c=n),o!==null&&(u=o?1:0),a!==-1&&(p=a),i!==0&&(h=i),s!==0&&(f=s),(l<<0|c<<8|u<<10|p<<11|h<<15|f<<24)>>>0}};function Na(e,t){const r=[],n=w0(e);let o=n.next();for(;o!==null;){let l=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=n.next()}let c=i();if(r.push({matcher:c,priority:l}),o!==",")break;o=n.next()}return r;function a(){if(o==="-"){o=n.next();const l=a();return c=>!!l&&!l(c)}if(o==="("){o=n.next();const l=s();return o===")"&&(o=n.next()),l}if(Lc(o)){const l=[];do l.push(o),o=n.next();while(Lc(o));return c=>t(l,c)}return null}function i(){const l=[];let c=a();for(;c;)l.push(c),c=a();return u=>l.every(p=>p(u))}function s(){const l=[];let c=i();for(;c&&(l.push(c),o==="|"||o===",");){do o=n.next();while(o==="|"||o===",");c=i()}return u=>l.some(p=>p(u))}}function Lc(e){return!!e&&!!e.match(/[\w\.:]+/)}function w0(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function zd(e){typeof e.dispose=="function"&&e.dispose()}var So=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},C0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},k0=class{constructor(){T(this,"_references",[]);T(this,"_seenReferenceKeys",new Set);T(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},P0=class{constructor(e,t){T(this,"seenFullScopeRequests",new Set);T(this,"seenPartialScopeRequests",new Set);T(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new So(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new k0;for(const r of e)I0(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof So){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function I0(e,t,r,n){const o=r.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=r.lookup(t);e instanceof So?ya({baseGrammar:a,selfGrammar:o},n):ss(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},n);const i=r.injections(e.scopeName);if(i)for(const s of i)n.add(new So(s))}function ss(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];Ma([n],t,r)}}function ya(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ma(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ma(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ma(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const o=n.repository?_d({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&Ma(n.patterns,{...t,repository:o},r);const a=n.include;if(!a)continue;const i=Ud(a);switch(i.kind){case 0:ya({...t,selfGrammar:t.baseGrammar},r);break;case 1:ya(t,r);break;case 2:ss(i.ruleName,{...t,repository:o},r);break;case 3:case 4:const s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:o};i.kind===4?ss(i.ruleName,l,r):ya(l,r)}else i.kind===4?r.add(new C0(i.scopeName,i.ruleName)):r.add(new So(i.scopeName));break}}}var j0=class{constructor(){T(this,"kind",0)}},E0=class{constructor(){T(this,"kind",1)}},R0=class{constructor(e){T(this,"kind",2);this.ruleName=e}},T0=class{constructor(e){T(this,"kind",3);this.scopeName=e}},N0=class{constructor(e,t){T(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Ud(e){if(e==="$base")return new j0;if(e==="$self")return new E0;const t=e.indexOf("#");if(t===-1)return new T0(e);if(t===0)return new R0(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new N0(r,n)}}var M0=/\\(\d+)/,$c=/\\(\d+)/g,A0=-1,Wd=-2,$o=class{constructor(e,t,r,n){T(this,"$location");T(this,"id");T(this,"_nameIsCapturing");T(this,"_name");T(this,"_contentNameIsCapturing");T(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=oa.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=oa.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Od(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:oa.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:oa.replaceCaptures(this._contentName,e,t)}},_0=class extends $o{constructor(t,r,n,o,a){super(t,r,n,o);T(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,n,o){throw new Error("Not supported!")}},O0=class extends $o{constructor(t,r,n,o,a){super(t,r,n,null);T(this,"_match");T(this,"captures");T(this,"_cachedCompiledPatterns");this._match=new wo(o,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,o){return this._getCachedCompiledPatterns(t).compileAG(t,n,o)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Co,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Dc=class extends $o{constructor(t,r,n,o,a){super(t,r,n,o);T(this,"hasMissingPatterns");T(this,"patterns");T(this,"_cachedCompiledPatterns");this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const n of this.patterns)t.getRule(n).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,o){return this._getCachedCompiledPatterns(t).compileAG(t,n,o)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Co,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ls=class extends $o{constructor(t,r,n,o,a,i,s,l,c,u){super(t,r,n,o);T(this,"_begin");T(this,"beginCaptures");T(this,"_end");T(this,"endHasBackReferences");T(this,"endCaptures");T(this,"applyEndPatternLast");T(this,"hasMissingPatterns");T(this,"patterns");T(this,"_cachedCompiledPatterns");this._begin=new wo(a,this.id),this.beginCaptures=i,this._end=new wo(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,n,o){return this._getCachedCompiledPatterns(t,r).compileAG(t,n,o)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Co;for(const n of this.patterns)t.getRule(n).collectPatterns(t,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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},Aa=class extends $o{constructor(t,r,n,o,a,i,s,l,c){super(t,r,n,o);T(this,"_begin");T(this,"beginCaptures");T(this,"whileCaptures");T(this,"_while");T(this,"whileHasBackReferences");T(this,"hasMissingPatterns");T(this,"patterns");T(this,"_cachedCompiledPatterns");T(this,"_cachedCompiledWhilePatterns");this._begin=new wo(a,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new wo(s,Wd),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(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,o){return this._getCachedCompiledPatterns(t).compileAG(t,n,o)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Co;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,n,o){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,n,o)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Co,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},Hd=class lt{static createCaptureRule(t,r,n,o,a){return t.registerRule(i=>new _0(r,i,n,o,a))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(o=>{if(t.id=o,t.match)return new O0(t.$vscodeTextmateLocation,t.id,t.name,t.match,lt._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=_d({},n,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new Dc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,lt._compilePatterns(a,r,n))}return t.while?new Aa(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,lt._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,lt._compileCaptures(t.whileCaptures||t.captures,r,n),lt._compilePatterns(t.patterns,r,n)):new ls(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,lt._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,lt._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,lt._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let o=[];if(t){let a=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const s=parseInt(i,10);s>a&&(a=s)}for(let i=0;i<=a;i++)o[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const s=parseInt(i,10);let l=0;t[i].patterns&&(l=lt.getCompiledRuleId(t[i],r,n)),o[s]=lt.createCaptureRule(r,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return o}static _compilePatterns(t,r,n){let o=[];if(t)for(let a=0,i=t.length;a<i;a++){const s=t[a];let l=-1;if(s.include){const c=Ud(s.include);switch(c.kind){case 0:case 1:l=lt.getCompiledRuleId(n[s.include],r,n);break;case 2:let u=n[c.ruleName];u&&(l=lt.getCompiledRuleId(u,r,n));break;case 3:case 4:const p=c.scopeName,h=c.kind===4?c.ruleName:null,f=r.getExternalGrammar(p,n);if(f)if(h){let g=f.repository[h];g&&(l=lt.getCompiledRuleId(g,r,f.repository))}else l=lt.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else l=lt.getCompiledRuleId(s,r,n);if(l!==-1){const c=r.getRule(l);let u=!1;if((c instanceof Dc||c instanceof ls||c instanceof Aa)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},wo=class Vd{constructor(t,r){T(this,"source");T(this,"ruleId");T(this,"hasAnchor");T(this,"hasBackReferences");T(this,"_anchorCache");if(t&&typeof t=="string"){const n=t.length;let o=0,a=[],i=!1;for(let s=0;s<n;s++)if(t.charAt(s)==="\\"&&s+1<n){const l=t.charAt(s+1);l==="z"?(a.push(t.substring(o,s)),a.push("$(?!\\n)(?<!\\n)"),o=s+2):(l==="A"||l==="G")&&(i=!0),s++}this.hasAnchor=i,o===0?this.source=t:(a.push(t.substring(o,n)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=M0.test(this.source):this.hasBackReferences=!1}clone(){return new Vd(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(o=>t.substring(o.start,o.end));return $c.lastIndex=0,this.source.replace($c,(o,a)=>Dd(n[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],o=[],a,i,s,l;for(a=0,i=this.source.length;a<i;a++)s=this.source.charAt(a),t[a]=s,r[a]=s,n[a]=s,o[a]=s,s==="\\"&&a+1<i&&(l=this.source.charAt(a+1),l==="A"?(t[a+1]="￿",r[a+1]="￿",n[a+1]="A",o[a+1]="A"):l==="G"?(t[a+1]="￿",r[a+1]="G",n[a+1]="￿",o[a+1]="G"):(t[a+1]=l,r[a+1]=l,n[a+1]=l,o[a+1]=l),a++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:o.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Co=class{constructor(){T(this,"_items");T(this,"_hasAnchors");T(this,"_cached");T(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new Bc(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(o=>o.resolveAnchors(t,r));return new Bc(e,n,this._items.map(o=>o.ruleId))}},Bc=class{constructor(e,t,r){T(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
38
+ `)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},$i=class{constructor(e,t){this.languageId=e,this.tokenType=t}},pr,L0=(pr=class{constructor(t,r){T(this,"_defaultAttributes");T(this,"_embeddedLanguagesMatcher");T(this,"_getBasicScopeAttributes",new Bd(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new $i(r,n)}));this._defaultAttributes=new $i(t,8),this._embeddedLanguagesMatcher=new $0(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?pr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(pr.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},T(pr,"_NULL_SCOPE_METADATA",new $i(0,0)),T(pr,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),pr),$0=class{constructor(e){T(this,"values");T(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>Dd(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var qc=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Gd(e,t,r,n,o,a,i,s){const l=t.content.length;let c=!1,u=-1;if(i){const f=D0(e,t,r,n,o,a);o=f.stack,n=f.linePos,r=f.isFirstLine,u=f.anchorPosition}const p=Date.now();for(;!c;){if(s!==0&&Date.now()-p>s)return new qc(o,!0);h()}return new qc(o,!1);function h(){const f=B0(e,t,r,n,o,u);if(!f){a.produce(o,l),c=!0;return}const g=f.captureIndices,y=f.matchedRuleId,v=g&&g.length>0?g[0].end>n:!1;if(y===A0){const b=o.getRule(e);a.produce(o,g[0].start),o=o.withContentNameScopesList(o.nameScopesList),so(e,t,r,o,a,b.endCaptures,g),a.produce(o,g[0].end);const C=o;if(o=o.parent,u=C.getAnchorPos(),!v&&C.getEnterPos()===n){o=C,a.produce(o,l),c=!0;return}}else{const b=e.getRule(y);a.produce(o,g[0].start);const C=o,w=b.getName(t.content,g),k=o.contentNameScopesList.pushAttributed(w,e);if(o=o.push(y,n,u,g[0].end===l,null,k,k),b instanceof ls){const j=b;so(e,t,r,o,a,j.beginCaptures,g),a.produce(o,g[0].end),u=g[0].end;const P=j.getContentName(t.content,g),B=k.pushAttributed(P,e);if(o=o.withContentNameScopesList(B),j.endHasBackReferences&&(o=o.withEndRule(j.getEndWithResolvedBackReferences(t.content,g))),!v&&C.hasSameRuleAs(o)){o=o.pop(),a.produce(o,l),c=!0;return}}else if(b instanceof Aa){const j=b;so(e,t,r,o,a,j.beginCaptures,g),a.produce(o,g[0].end),u=g[0].end;const P=j.getContentName(t.content,g),B=k.pushAttributed(P,e);if(o=o.withContentNameScopesList(B),j.whileHasBackReferences&&(o=o.withEndRule(j.getWhileWithResolvedBackReferences(t.content,g))),!v&&C.hasSameRuleAs(o)){o=o.pop(),a.produce(o,l),c=!0;return}}else if(so(e,t,r,o,a,b.captures,g),a.produce(o,g[0].end),o=o.pop(),!v){o=o.safePop(),a.produce(o,l),c=!0;return}}g[0].end>n&&(n=g[0].end,r=!1)}}function D0(e,t,r,n,o,a){let i=o.beginRuleCapturedEOL?0:-1;const s=[];for(let l=o;l;l=l.pop()){const c=l.getRule(e);c instanceof Aa&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:c,findOptions:u}=z0(l.rule,e,l.stack.endRule,r,n===i),p=c.findNextMatchSync(t,n,u);if(p){if(p.ruleId!==Wd){o=l.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(a.produce(l.stack,p.captureIndices[0].start),so(e,t,r,l.stack,a,l.rule.whileCaptures,p.captureIndices),a.produce(l.stack,p.captureIndices[0].end),i=p.captureIndices[0].end,p.captureIndices[0].end>n&&(n=p.captureIndices[0].end,r=!1))}else{o=l.stack.pop();break}}return{stack:o,linePos:n,anchorPosition:i,isFirstLine:r}}function B0(e,t,r,n,o,a){const i=q0(e,t,r,n,o,a),s=e.getInjections();if(s.length===0)return i;const l=F0(s,e,t,r,n,o,a);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:i}function q0(e,t,r,n,o,a){const i=o.getRule(e),{ruleScanner:s,findOptions:l}=Kd(i,e,o.endRule,r,n===a),c=s.findNextMatchSync(t,n,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function F0(e,t,r,n,o,a,i){let s=Number.MAX_VALUE,l=null,c,u=0;const p=a.contentNameScopesList.getScopeNames();for(let h=0,f=e.length;h<f;h++){const g=e[h];if(!g.matcher(p))continue;const y=t.getRule(g.ruleId),{ruleScanner:v,findOptions:b}=Kd(y,t,null,n,o===i),C=v.findNextMatchSync(r,o,b);if(!C)continue;const w=C.captureIndices[0].start;if(!(w>=s)&&(s=w,l=C.captureIndices,c=C.ruleId,u=g.priority,s===o))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function Kd(e,t,r,n,o){return{ruleScanner:e.compileAG(t,r,n,o),findOptions:0}}function z0(e,t,r,n,o){return{ruleScanner:e.compileWhileAG(t,r,n,o),findOptions:0}}function so(e,t,r,n,o,a,i){if(a.length===0)return;const s=t.content,l=Math.min(a.length,i.length),c=[],u=i[0].end;for(let p=0;p<l;p++){const h=a[p];if(h===null)continue;const f=i[p];if(f.length===0)continue;if(f.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=f.start;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?o.produceFromScopes(c[c.length-1].scopes,f.start):o.produce(n,f.start),h.retokenizeCapturedWithRuleId){const y=h.getName(s,i),v=n.contentNameScopesList.pushAttributed(y,e),b=h.getContentName(s,i),C=v.pushAttributed(b,e),w=n.push(h.retokenizeCapturedWithRuleId,f.start,-1,!1,null,v,C),k=e.createOnigString(s.substring(0,f.end));Gd(e,k,r&&f.start===0,f.start,w,o,!1,0),zd(k);continue}const g=h.getName(s,i);if(g!==null){const y=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(g,e);c.push(new U0(y,f.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var U0=class{constructor(e,t){T(this,"scopes");T(this,"endPos");this.scopes=e,this.endPos=t}};function W0(e,t,r,n,o,a,i,s){return new V0(e,t,r,n,o,a,i,s)}function Fc(e,t,r,n,o){const a=Na(t,_a),i=Hd.getCompiledRuleId(r,n,o.repository);for(const s of a)e.push({debugSelector:t,matcher:s.matcher,ruleId:i,grammar:o,priority:s.priority})}function _a(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let o=r;o<t.length;o++)if(H0(t[o],n))return r=o+1,!0;return!1})}function H0(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var V0=class{constructor(e,t,r,n,o,a,i,s){T(this,"_rootId");T(this,"_lastRuleId");T(this,"_ruleId2desc");T(this,"_includedGrammars");T(this,"_grammarRepository");T(this,"_grammar");T(this,"_injections");T(this,"_basicScopeAttributesProvider");T(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new L0(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=zc(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const l of Object.keys(o)){const c=Na(l,_a);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:o[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const o=n.injections;if(o)for(let i in o)Fc(t,i,o[i],this,n);const a=this._grammarRepository.injections(r);a&&a.forEach(i=>{const s=this.getExternalGrammar(i);if(s){const l=s.injectionSelector;l&&Fc(t,l,s,this,s)}})}return t.sort((o,a)=>o.priority-a.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=zc(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=Hd.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===cs.NULL){o=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),p=_n.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),h=this.getRule(this._rootId).getName(null,null);let f;h?f=ho.createRootAndLookUpScopeName(h,p,this):f=ho.createRoot("unknown",p),t=new cs(null,this._rootId,-1,-1,!1,null,f,f)}else o=!1,t.reset();e=e+`
39
+ `;const a=this.createOnigString(e),i=a.content.length,s=new K0(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Gd(this,a,o,0,t,s,!0,n);return zd(a),{lineLength:i,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function zc(e,t){return e=d0(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 ho=class er{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,o=t?.scopePath??null;for(const a of r)o=Li.push(o,a.scopeNames),n=new er(n,o,a.encodedTokenAttributes);return n}static createRoot(t,r){return new er(null,new Li(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const o=n.getMetadataForScope(t),a=new Li(null,t),i=n.themeProvider.themeMatch(a),s=er.mergeAttributes(r,o,i);return new er(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return er.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let o=-1,a=0,i=0;return n!==null&&(o=n.fontStyle,a=n.foregroundId,i=n.backgroundId),_n.set(t,r.languageId,r.tokenType,null,o,a,i)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return er._pushAttributed(this,t,r);const n=t.split(/ /g);let o=this;for(const a of n)o=er._pushAttributed(o,a,r);return o}static _pushAttributed(t,r,n){const o=n.getMetadataForScope(r),a=t.scopePath.push(r),i=n.themeProvider.themeMatch(a),s=er.mergeAttributes(t.tokenAttributes,o,i);return new er(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?r.reverse():void 0}},$t,cs=($t=class{constructor(t,r,n,o,a,i,s,l){T(this,"_stackElementBrand");T(this,"_enterPos");T(this,"_anchorPos");T(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=a,this.endRule=i,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=o}equals(t){return t===null?!1:$t._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?ho.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){$t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,o,a,i,s){return new $t(this,t,r,n,o,a,i,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new $t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){const n=ho.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new $t(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,ho.fromExtension(n,r.contentNameScopesList))}},T($t,"NULL",new $t(null,0,0,0,!1,null,null,null)),$t),G0=class{constructor(e,t){T(this,"balancedBracketScopes");T(this,"unbalancedBracketScopes");T(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Na(r,_a).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Na(r,_a).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},K0=class{constructor(e,t,r,n){T(this,"_emitBinaryTokens");T(this,"_lineText");T(this,"_tokens");T(this,"_binaryTokens");T(this,"_lastTokenEndIndex");T(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(a)&&(n=_n.set(n,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(n=_n.set(n,0,8,o,-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}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,o=this._binaryTokens.length;n<o;n++)r[n]=this._binaryTokens[n];return r}},Q0=class{constructor(e,t){T(this,"_grammars",new Map);T(this,"_rawGrammars",new Map);T(this,"_injectionGrammars",new Map);T(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,o){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,W0(e,a,t,r,n,o,this,this._onigLib))}return this._grammars.get(e)}},Y0=class{constructor(e){T(this,"_options");T(this,"_syncRegistry");T(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new Q0(Ta.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Ta.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new G0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,o){const a=new P0(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(i=>this._loadSingleGrammar(i.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,n,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,o)}},us=cs.NULL;const J0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Do{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Do.prototype.normal={};Do.prototype.property={};Do.prototype.space=void 0;function Qd(e,t){const r={},n={};for(const o of e)Object.assign(r,o.property),Object.assign(n,o.normal);return new Do(r,n,t)}function ds(e){return e.toLowerCase()}class mt{constructor(t,r){this.attribute=r,this.property=t}}mt.prototype.attribute="";mt.prototype.booleanish=!1;mt.prototype.boolean=!1;mt.prototype.commaOrSpaceSeparated=!1;mt.prototype.commaSeparated=!1;mt.prototype.defined=!1;mt.prototype.mustUseProperty=!1;mt.prototype.number=!1;mt.prototype.overloadedBoolean=!1;mt.prototype.property="";mt.prototype.spaceSeparated=!1;mt.prototype.space=void 0;let X0=0;const de=an(),We=an(),Yd=an(),U=an(),je=an(),Rn=an(),yt=an();function an(){return 2**++X0}const ps=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:We,commaOrSpaceSeparated:yt,commaSeparated:Rn,number:U,overloadedBoolean:Yd,spaceSeparated:je},Symbol.toStringTag,{value:"Module"})),Di=Object.keys(ps);class al extends mt{constructor(t,r,n,o){let a=-1;if(super(t,r),Uc(this,"space",o),typeof n=="number")for(;++a<Di.length;){const i=Di[a];Uc(this,Di[a],(n&ps[i])===ps[i])}}}al.prototype.defined=!0;function Uc(e,t,r){r&&(e[t]=r)}function Bn(e){const t={},r={};for(const[n,o]of Object.entries(e.properties)){const a=new al(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[ds(n)]=n,r[ds(a.attribute)]=n}return new Do(t,r,e.space)}const Jd=Bn({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:We,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:je,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:U,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:je,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:We,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xd(e,t){return t in e?e[t]:t}function Zd(e,t){return Xd(e,t.toLowerCase())}const Z0=Bn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Rn,acceptCharset:je,accessKey:je,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:je,autoFocus:de,autoPlay:de,blocking:je,capture:null,charSet:null,checked:de,cite:null,className:je,cols:U,colSpan:null,content:null,contentEditable:We,controls:de,controlsList:je,coords:U|Rn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Yd,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:je,height:U,hidden:de,high:U,href:null,hrefLang:null,htmlFor:je,httpEquiv:je,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:je,itemRef:je,itemScope:de,itemType:je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,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:de,optimum:U,pattern:null,ping:je,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:je,required:de,reversed:de,rows:U,rowSpan:U,sandbox:je,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:We,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:je,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:Zd}),ex=Bn({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",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:yt,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:je,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:Rn,g2:Rn,glyphName:Rn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xd}),ep=Bn({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=Bn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zd}),rp=Bn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),tx=/[A-Z]/g,Wc=/-[a-z]/g,rx=/^data[-\w.:]+$/i;function nx(e,t){const r=ds(t);let n=t,o=mt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&rx.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Wc,ax);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Wc.test(a)){let i=a.replace(tx,ox);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=al}return new o(n,t)}function ox(e){return"-"+e.toLowerCase()}function ax(e){return e.charAt(1).toUpperCase()}const ix=Qd([Jd,Z0,ep,tp,rp],"html"),np=Qd([Jd,ex,ep,tp,rp],"svg"),Hc={}.hasOwnProperty;function sx(e,t){const r=t||{};function n(o,...a){let i=n.invalid;const s=n.handlers;if(o&&Hc.call(o,e)){const l=String(o[e]);i=Hc.call(s,l)?s[l]:n.unknown}if(i)return i.call(this,o,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const lx=/["&'<>`]/g,cx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ux=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,dx=/[|\\{}()[\]^$+*?.]/g,Vc=new WeakMap;function px(e,t){if(e=e.replace(t.subset?hx(t.subset):lx,n),t.subset||t.escapeOnly)return e;return e.replace(cx,r).replace(ux,n);function r(o,a,i){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,i.charCodeAt(a+2),t)}function n(o,a,i){return t.format(o.charCodeAt(0),i.charCodeAt(a+1),t)}}function hx(e){let t=Vc.get(e);return t||(t=mx(e),Vc.set(e,t)),t}function mx(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(dx,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const fx=/[\dA-Fa-f]/;function gx(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!fx.test(String.fromCharCode(t))?n:n+";"}const yx=/\d/;function bx(e,t,r){const n="&#"+String(e);return r&&t&&!yx.test(String.fromCharCode(t))?n:n+";"}const xx=["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"],Bi={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},vx=["cent","copy","divide","gt","lt","not","para","times"],op={}.hasOwnProperty,hs={};let aa;for(aa in Bi)op.call(Bi,aa)&&(hs[Bi[aa]]=aa);const Sx=/[^\dA-Za-z]/;function wx(e,t,r,n){const o=String.fromCharCode(e);if(op.call(hs,o)){const a=hs[o],i="&"+a;return r&&xx.includes(a)&&!vx.includes(a)&&(!n||t&&t!==61&&Sx.test(String.fromCharCode(t)))?i:i+";"}return""}function Cx(e,t,r){let n=gx(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=wx(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){const a=bx(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}function Tn(e,t){return px(e,Object.assign({format:Cx},t))}const kx=/^>|^->|<!--|-->|--!>|<!-$/g,Px=[">"],Ix=["<",">"];function jx(e,t,r,n){return n.settings.bogusComments?"<?"+Tn(e.value,Object.assign({},n.settings.characterReferences,{subset:Px}))+">":"<!--"+e.value.replace(kx,o)+"-->";function o(a){return Tn(a,Object.assign({},n.settings.characterReferences,{subset:Ix}))}}function Ex(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Gc(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}function Rx(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Tx(e){return e.join(" ").trim()}const Nx=/[ \t\n\f\r]/g;function il(e){return typeof e=="object"?e.type==="text"?Kc(e.value):!1:Kc(e)}function Kc(e){return e.replace(Nx,"")===""}const rt=ip(1),ap=ip(-1),Mx=[];function ip(e){return t;function t(r,n,o){const a=r?r.children:Mx;let i=(n||0)+e,s=a[i];if(!o)for(;s&&il(s);)i+=e,s=a[i];return s}}const Ax={}.hasOwnProperty;function sp(e){return t;function t(r,n,o){return Ax.call(e,r.tagName)&&e[r.tagName](r,n,o)}}const sl=sp({body:Ox,caption:qi,colgroup:qi,dd:Bx,dt:Dx,head:qi,html:_x,li:$x,optgroup:qx,option:Fx,p:Lx,rp:Qc,rt:Qc,tbody:Ux,td:Yc,tfoot:Wx,th:Yc,thead:zx,tr:Hx});function qi(e,t,r){const n=rt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&il(n.value.charAt(0)))}function _x(e,t,r){const n=rt(r,t);return!n||n.type!=="comment"}function Ox(e,t,r){const n=rt(r,t);return!n||n.type!=="comment"}function Lx(e,t,r){const n=rt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function $x(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Dx(e,t,r){const n=rt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Bx(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Qc(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function qx(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function Fx(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function zx(e,t,r){const n=rt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Ux(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Wx(e,t,r){return!rt(r,t)}function Hx(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Yc(e,t,r){const n=rt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Vx=sp({body:Qx,colgroup:Yx,head:Kx,html:Gx,tbody:Jx});function Gx(e){const t=rt(e,-1);return!t||t.type!=="comment"}function Kx(e){const t=new Set;for(const 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)}const r=e.children[0];return!r||r.type==="element"}function Qx(e){const t=rt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&il(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Yx(e,t,r){const n=ap(r,t),o=rt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&sl(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function Jx(e,t,r){const n=ap(r,t),o=rt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&sl(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const ia={name:[[`
40
40
  \f\r &/=>`.split(""),`
41
41
  \f\r "&'/=>\``.split("")],[`\0
42
42
  \f\r "&'/<=>`.split(""),`\0
@@ -44,12 +44,12 @@ export default theme;`}function rs(e={},...t){const{breakpoints:r,mixins:n={},sp
44
44
  \f\r &>`.split(""),`\0
45
45
  \f\r "&'<=>\``.split("")],[`\0
46
46
  \f\r "&'<=>\``.split(""),`\0
47
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Xx(e,t,r,n){const o=n.schema,a=o.space==="svg"?!1:n.settings.omitOptionalTags;let i=o.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;o.space==="html"&&e.tagName==="svg"&&(n.schema=np);const c=Zx(n,e.properties),u=n.all(o.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=o,u&&(i=!1),(c||!a||!Vx(e,t,r))&&(s.push("<",e.tagName,c?" "+c:""),i&&(o.space==="svg"||n.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!i&&(!a||!sl(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function Zx(e,t){const r=[];let n=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=ev(e,o,t[o]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function ev(e,t,r){const n=nx(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let i=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Rn(n.attribute,Object.assign({},e.settings.characterReferences,{subset:ia.name[o][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Rx:Tx)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Rn(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ia.unquoted[o][a]}))),s!==r&&(e.settings.quoteSmart&&Gc(r,i)>Gc(r,e.alternative)&&(i=e.alternative),s=i+Rn(r,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ia.single:ia.double)[o][a],attribute:!0}))+i),l+(s&&"="+s))}const tv=["<","&"];function lp(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Rn(e.value,Object.assign({},n.settings.characterReferences,{subset:tv}))}function rv(e,t,r,n){return n.settings.allowDangerousHtml?e.value:lp(e,t,r,n)}function nv(e,t,r,n){return n.all(e)}const ov=sx("type",{invalid:av,unknown:iv,handlers:{comment:jx,doctype:Ex,element:Xx,raw:rv,root:nv,text:lp}});function av(e){throw new Error("Expected node, not `"+e+"`")}function iv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const sv={},lv={},cv=[];function uv(e,t){const r=sv,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:dv,all:pv,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||J0,characterReferences:r.characterReferences||lv,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?np:ix,quote:n,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function dv(e,t,r){return ov(e,t,r,this)}function pv(e){const t=[],r=e&&e.children||cv;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function hv(e){return Array.isArray(e)?e:[e]}function si(e,t=!1){const r=e.split(/(\r?\n)/g);let n=0;const o=[];for(let a=0;a<r.length;a+=2){const i=t?r[a]+(r[a+1]||""):r[a];o.push([i,n]),n+=r[a].length,n+=r[a+1]?.length||0}return o}function ll(e){return!e||["plaintext","txt","text","plain"].includes(e)}function cp(e){return e==="ansi"||ll(e)}function cl(e){return e==="none"}function up(e){return cl(e)}function dp(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const o of r)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function mv(e,t){let r=0;const n=[];for(const o of t)o>r&&n.push({...e,content:e.content.slice(r,o),offset:e.offset+r}),r=o;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function fv(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,o)=>n-o);return r.length?e.map(n=>n.flatMap(o=>{const a=r.filter(i=>o.offset<i&&i<o.offset+o.content.length).map(i=>i-o.offset).sort((i,s)=>i-s);return a.length?mv(o,a):o})):e}async function pp(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Oa(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[o,a]of Object.entries(t?.colorReplacements||{}))typeof a=="string"?r[o]=a:o===n&&Object.assign(r,a);return r}function Wr(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function hp(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&hr.Italic&&(t["font-style"]="italic"),e.fontStyle&hr.Bold&&(t["font-weight"]="bold"),e.fontStyle&hr.Underline&&(t["text-decoration"]="underline")),t}function gv(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function yv(e){const t=si(e,!0).map(([o])=>o);function r(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=o,i=0;for(const s of t){if(a<s.length)break;a-=s.length,i++}return{line:i,character:a}}function n(o,a){let i=0;for(let s=0;s<o;s++)i+=t[s].length;return i+=a,i}return{lines:t,indexToPos:r,posToIndex:n}}class pt extends Error{constructor(t){super(t),this.name="ShikiError"}}const mp=new WeakMap;function li(e,t){mp.set(e,t)}function ko(e){return mp.get(e)}class qn{constructor(...t){T(this,"_stacks",{});T(this,"lang");if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,o]=t;this.lang=n,this._stacks={[o]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new qn(Object.fromEntries(hv(r).map(n=>[n,us])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Jc(this._stacks[this.theme])}getScopes(t=this.theme){return Jc(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Jc(e){const t=[],r=new Set;function n(o){if(r.has(o))return;r.add(o);const a=o?.nameScopesList?.scopeName;a&&t.push(a),o.parent&&n(o.parent)}return n(e),t}function bv(e,t){if(!(e instanceof qn))throw new pt("Invalid grammar state");return e.getInternalStack(t)}function xv(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let n=function(i){if(typeof i=="number"){if(i<0||i>r.source.length)throw new pt(`Invalid decoration offset: ${i}. Code length: ${r.source.length}`);return{...o.indexToPos(i),offset:i}}else{const s=o.lines[i.line];if(s===void 0)throw new pt(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${o.lines.length}`);if(i.character<0||i.character>s.length)throw new pt(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${s.length}`);return{...i,offset:o.posToIndex(i.line,i.character)}}};const o=yv(r.source),a=(r.options.decorations||[]).map(i=>({...i,start:n(i.start),end:n(i.end)}));vv(a),e.set(r.meta,{decorations:a,converter:o,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const n=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return fv(r,n)},code(r){if(!this.options.decorations?.length)return;const n=t(this),o=Array.from(r.children).filter(u=>u.type==="element"&&u.tagName==="span");if(o.length!==n.converter.lines.length)throw new pt(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function a(u,p,h,f){const g=o[u];let y="",v=-1,b=-1;if(p===0&&(v=0),h===0&&(b=0),h===Number.POSITIVE_INFINITY&&(b=g.children.length),v===-1||b===-1)for(let w=0;w<g.children.length;w++)y+=fp(g.children[w]),v===-1&&y.length===p&&(v=w+1),b===-1&&y.length===h&&(b=w+1);if(v===-1)throw new pt(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(b===-1)throw new pt(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const C=g.children.slice(v,b);if(!f.alwaysWrap&&C.length===g.children.length)s(g,f,"line");else if(!f.alwaysWrap&&C.length===1&&C[0].type==="element")s(C[0],f,"token");else{const w={type:"element",tagName:"span",properties:{},children:C};s(w,f,"wrapper"),g.children.splice(v,C.length,w)}}function i(u,p){o[u]=s(o[u],p,"line")}function s(u,p,h){const f=p.properties||{},g=p.transform||(y=>y);return u.tagName=p.tagName||"span",u.properties={...u.properties,...f,class:u.properties.class},p.properties?.class&&dp(u,p.properties.class),u=g(u,h)||u,u}const l=[],c=n.decorations.sort((u,p)=>p.start.offset-u.start.offset);for(const u of c){const{start:p,end:h}=u;if(p.line===h.line)a(p.line,p.character,h.character,u);else if(p.line<h.line){a(p.line,p.character,Number.POSITIVE_INFINITY,u);for(let f=p.line+1;f<h.line;f++)l.unshift(()=>i(f,u));a(h.line,0,h.character,u)}}l.forEach(u=>u())}}}function vv(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new pt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const o=e[n],a=r.start.offset<o.start.offset&&o.start.offset<r.end.offset,i=r.start.offset<o.end.offset&&o.end.offset<r.end.offset,s=o.start.offset<r.start.offset&&r.start.offset<o.end.offset,l=o.start.offset<r.end.offset&&r.end.offset<o.end.offset;if(a||i||s||l){if(i&&i||s&&l)continue;throw new pt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function fp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(fp).join(""):""}const Sv=[xv()];function La(e){return[...e.transformers||[],...Sv]}var Hr=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Fi={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function wv(e,t){const r=e.indexOf("\x1B[",t);if(r!==-1){const n=e.indexOf("m",r);return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function Xc(e,t){let r=1;const n=e[t+r++];let o;if(n==="2"){const a=[e[t+r++],e[t+r++],e[t+r]].map(i=>Number.parseInt(i));a.length===3&&!a.some(i=>Number.isNaN(i))&&(o={type:"rgb",rgb:a})}else if(n==="5"){const a=Number.parseInt(e[t+r]);Number.isNaN(a)||(o={type:"table",index:Number(a)})}return[r,o]}function Cv(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r],o=Number.parseInt(n);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)Fi[o]&&t.push({type:"setDecoration",value:Fi[o]});else if(o<=29){const a=Fi[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Hr[o-30]}});else if(o===38){const[a,i]=Xc(e,r);i&&t.push({type:"setForegroundColor",value:i}),r+=a}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Hr[o-40]}});else if(o===48){const[a,i]=Xc(e,r);i&&t.push({type:"setBackgroundColor",value:i}),r+=a}else o===49?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Hr[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Hr[o-100+8]}})}return t}function kv(){let e=null,t=null,r=new Set;return{parse(n){const o=[];let a=0;do{const i=wv(n,a),s=i.sequence?n.substring(a,i.startPosition):n.substring(a);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(r)}),i.sequence){const l=Cv(i.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,r.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&r.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&r.add(c.value)}a=i.position}while(a<n.length);return o}}}var Pv={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 Iv(e=Pv){function t(s){return e[s]}function r(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function o(){if(n)return n;n=[];for(let c=0;c<Hr.length;c++)n.push(t(Hr[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let p=0;p<6;p++)n.push(r([s[c],s[u],s[p]]));let l=8;for(let c=0;c<24;c++,l+=10)n.push(r([l,l,l]));return n}function a(s){return o()[s]}function i(s){switch(s.type){case"named":return t(s.name);case"rgb":return r(s.rgb);case"table":return a(s.index)}}return{value:i}}function jv(e,t,r){const n=Oa(e,r),o=si(t),a=Iv(Object.fromEntries(Hr.map(s=>[s,e.colors?.[`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`]]))),i=kv();return o.map(s=>i.parse(s[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?a.value(l.background):e.bg,u=l.foreground?a.value(l.foreground):e.fg):(c=l.foreground?a.value(l.foreground):e.fg,u=l.background?a.value(l.background):void 0),c=Wr(c,n),u=Wr(u,n),l.decorations.has("dim")&&(c=Ev(c));let p=hr.None;return l.decorations.has("bold")&&(p|=hr.Bold),l.decorations.has("italic")&&(p|=hr.Italic),l.decorations.has("underline")&&(p|=hr.Underline),{content:l.value,offset:s[1],color:c,bgColor:u,fontStyle:p}}))}function Ev(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const n=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${n}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(n=>`${n}${n}`).join("")}80`;const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function ul(e,t,r={}){const{lang:n="text",theme:o=e.getLoadedThemes()[0]}=r;if(ll(n)||cl(o))return si(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:a,colorMap:i}=e.setTheme(o);if(n==="ansi")return jv(a,t,r);const s=e.getLanguage(n);if(r.grammarState){if(r.grammarState.lang!==s.name)throw new fr(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${s.name}"`);if(!r.grammarState.themes.includes(a.name))throw new fr(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Tv(t,s,a,i,r)}function Rv(...e){if(e.length===2)return ko(e[1]);const[t,r,n={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=n;if(ll(o)||cl(a))throw new fr("Plain language does not have grammar state");if(o==="ansi")throw new fr("ANSI language does not have grammar state");const{theme:i,colorMap:s}=t.setTheme(a),l=t.getLanguage(o);return new qn($a(r,l,i,s,n).stateStack,l.name,i.name)}function Tv(e,t,r,n,o){const a=$a(e,t,r,n,o),i=new qn($a(e,t,r,n,o).stateStack,t.name,r.name);return li(a.tokens,i),a.tokens}function $a(e,t,r,n,o){const a=Oa(r,o),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:s=500}=o,l=si(e);let c=o.grammarState?bv(o.grammarState,r.name)??us:o.grammarContextCode!=null?$a(o.grammarContextCode,t,r,n,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:us,u=[];const p=[];for(let h=0,f=l.length;h<f;h++){const[g,y]=l[h];if(g===""){u=[],p.push([]);continue}if(i>0&&g.length>=i){u=[],p.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let v,b,C;o.includeExplanation&&(v=t.tokenizeLine(g,c),b=v.tokens,C=0);const w=t.tokenizeLine2(g,c,s),k=w.tokens.length/2;for(let j=0;j<k;j++){const P=w.tokens[2*j],B=j+1<k?w.tokens[2*j+2]:g.length;if(P===B)continue;const F=w.tokens[2*j+1],L=Wr(n[An.getForeground(F)],a),m=An.getFontStyle(F),R={content:g.substring(P,B),offset:y+P,color:L,fontStyle:m};if(o.includeExplanation){const D=[];if(o.includeExplanation!=="scopeName")for(const H of r.settings){let X;switch(typeof H.scope){case"string":X=H.scope.split(/,/).map(V=>V.trim());break;case"object":X=H.scope;break;default:continue}D.push({settings:H,selectors:X.map(V=>V.split(/ /))})}R.explanation=[];let $=0;for(;P+$<B;){const H=b[C],X=g.substring(H.startIndex,H.endIndex);$+=X.length,R.explanation.push({content:X,scopes:o.includeExplanation==="scopeName"?Nv(H.scopes):Mv(D,H.scopes)}),C+=1}}u.push(R)}p.push(u),u=[],c=w.ruleStack}return{tokens:p,stateStack:c}}function Nv(e){return e.map(t=>({scopeName:t}))}function Mv(e,t){const r=[];for(let n=0,o=t.length;n<o;n++){const a=t[n];r[n]={scopeName:a,themeMatches:_v(e,a,t.slice(0,n))}}return r}function Zc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Av(e,t,r){if(!Zc(e[e.length-1],t))return!1;let n=e.length-2,o=r.length-1;for(;n>=0&&o>=0;)Zc(e[n],r[o])&&(n-=1),o-=1;return n===-1}function _v(e,t,r){const n=[];for(const{selectors:o,settings:a}of e)for(const i of o)if(Av(i,t,r)){n.push(a);break}return n}function gp(e,t,r){const n=Object.entries(r.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),o=n.map(l=>{const c=ul(e,t,{...r,theme:l.theme}),u=ko(c),p=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:p}}),a=Ov(...o.map(l=>l.tokens)),i=a[0].map((l,c)=>l.map((u,p)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in r&&r.includeExplanation&&(h.explanation=u.explanation),a.forEach((f,g)=>{const{content:y,explanation:v,offset:b,...C}=f[c][p];h.variants[n[g].color]=C}),h})),s=o[0].state?new qn(Object.fromEntries(o.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),o[0].state.lang):void 0;return s&&li(i,s),i}function Ov(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const o=e.map(l=>l[n]),a=t.map(()=>[]);t.forEach((l,c)=>l.push(a[c]));const i=o.map(()=>0),s=o.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<r;c++){const u=s[c];u.content.length===l?(a[c].push(u),i[c]+=1,s[c]=o[c][i[c]]):(a[c].push({...u,content:u.content.slice(0,l)}),s[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}function Da(e,t,r){let n,o,a,i,s,l;if("themes"in r){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-"}=r,p=Object.entries(r.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,b)=>v.color===c?-1:b.color===c?1:0);if(p.length===0)throw new fr("`themes` option must not be empty");const h=gp(e,t,r);if(l=ko(h),c&&!p.find(v=>v.color===c))throw new fr(`\`themes\` option must contain the defaultColor key \`${c}\``);const f=p.map(v=>e.getTheme(v.theme)),g=p.map(v=>v.color);a=h.map(v=>v.map(b=>Lv(b,g,u,c))),l&&li(a,l);const y=p.map(v=>Oa(v.theme,r));o=p.map((v,b)=>(b===0&&c?"":`${u+v.color}:`)+(Wr(f[b].fg,y[b])||"inherit")).join(";"),n=p.map((v,b)=>(b===0&&c?"":`${u+v.color}-bg:`)+(Wr(f[b].bg,y[b])||"inherit")).join(";"),i=`shiki-themes ${f.map(v=>v.name).join(" ")}`,s=c?void 0:[o,n].join(";")}else if("theme"in r){const c=Oa(r.theme,r);a=ul(e,t,r);const u=e.getTheme(r.theme);n=Wr(u.bg,c),o=Wr(u.fg,c),i=u.name,l=ko(a)}else throw new fr("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:n,themeName:i,rootStyle:s,grammarState:l}}function Lv(e,t,r,n){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(l=>hp(e.variants[l])),i=new Set(a.flatMap(l=>Object.keys(l))),s={};return a.forEach((l,c)=>{for(const u of i){const p=l[u]||"inherit";if(c===0&&n)s[u]=p;else{const h=u==="color"?"":u==="background-color"?"-bg":`-${u}`,f=r+t[c]+(u==="color"?"":h);s[f]=p}}}),o.htmlStyle=s,o}function Ba(e,t,r,n={meta:{},options:r,codeToHast:(o,a)=>Ba(e,o,a),codeToTokens:(o,a)=>Da(e,o,a)}){let o=t;for(const f of La(r))o=f.preprocess?.call(n,o,r)||o;let{tokens:a,fg:i,bg:s,themeName:l,rootStyle:c,grammarState:u}=Da(e,o,r);const{mergeWhitespaces:p=!0}=r;p===!0?a=Dv(a):p==="never"&&(a=Bv(a));const h={...n,get source(){return o}};for(const f of La(r))a=f.tokens?.call(h,a)||a;return $v(a,{...r,fg:i,bg:s,themeName:l,rootStyle:c},h,u)}function $v(e,t,r,n=ko(e)){const o=La(t),a=[],i={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t;let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([g])=>!g.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:a};const p=[],h={...r,structure:s,addClassToHast:dp,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return u},get lines(){return p}};if(e.forEach((g,y)=>{y&&(s==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&a.push({type:"text",value:`
47
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Xx(e,t,r,n){const o=n.schema,a=o.space==="svg"?!1:n.settings.omitOptionalTags;let i=o.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;o.space==="html"&&e.tagName==="svg"&&(n.schema=np);const c=Zx(n,e.properties),u=n.all(o.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=o,u&&(i=!1),(c||!a||!Vx(e,t,r))&&(s.push("<",e.tagName,c?" "+c:""),i&&(o.space==="svg"||n.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!i&&(!a||!sl(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function Zx(e,t){const r=[];let n=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=ev(e,o,t[o]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function ev(e,t,r){const n=nx(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let i=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Tn(n.attribute,Object.assign({},e.settings.characterReferences,{subset:ia.name[o][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Rx:Tx)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Tn(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ia.unquoted[o][a]}))),s!==r&&(e.settings.quoteSmart&&Gc(r,i)>Gc(r,e.alternative)&&(i=e.alternative),s=i+Tn(r,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ia.single:ia.double)[o][a],attribute:!0}))+i),l+(s&&"="+s))}const tv=["<","&"];function lp(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Tn(e.value,Object.assign({},n.settings.characterReferences,{subset:tv}))}function rv(e,t,r,n){return n.settings.allowDangerousHtml?e.value:lp(e,t,r,n)}function nv(e,t,r,n){return n.all(e)}const ov=sx("type",{invalid:av,unknown:iv,handlers:{comment:jx,doctype:Ex,element:Xx,raw:rv,root:nv,text:lp}});function av(e){throw new Error("Expected node, not `"+e+"`")}function iv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const sv={},lv={},cv=[];function uv(e,t){const r=sv,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:dv,all:pv,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||J0,characterReferences:r.characterReferences||lv,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?np:ix,quote:n,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function dv(e,t,r){return ov(e,t,r,this)}function pv(e){const t=[],r=e&&e.children||cv;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function hv(e){return Array.isArray(e)?e:[e]}function si(e,t=!1){const r=e.split(/(\r?\n)/g);let n=0;const o=[];for(let a=0;a<r.length;a+=2){const i=t?r[a]+(r[a+1]||""):r[a];o.push([i,n]),n+=r[a].length,n+=r[a+1]?.length||0}return o}function ll(e){return!e||["plaintext","txt","text","plain"].includes(e)}function cp(e){return e==="ansi"||ll(e)}function cl(e){return e==="none"}function up(e){return cl(e)}function dp(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const o of r)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function mv(e,t){let r=0;const n=[];for(const o of t)o>r&&n.push({...e,content:e.content.slice(r,o),offset:e.offset+r}),r=o;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function fv(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,o)=>n-o);return r.length?e.map(n=>n.flatMap(o=>{const a=r.filter(i=>o.offset<i&&i<o.offset+o.content.length).map(i=>i-o.offset).sort((i,s)=>i-s);return a.length?mv(o,a):o})):e}async function pp(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Oa(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[o,a]of Object.entries(t?.colorReplacements||{}))typeof a=="string"?r[o]=a:o===n&&Object.assign(r,a);return r}function Wr(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function hp(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&hr.Italic&&(t["font-style"]="italic"),e.fontStyle&hr.Bold&&(t["font-weight"]="bold"),e.fontStyle&hr.Underline&&(t["text-decoration"]="underline")),t}function gv(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function yv(e){const t=si(e,!0).map(([o])=>o);function r(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=o,i=0;for(const s of t){if(a<s.length)break;a-=s.length,i++}return{line:i,character:a}}function n(o,a){let i=0;for(let s=0;s<o;s++)i+=t[s].length;return i+=a,i}return{lines:t,indexToPos:r,posToIndex:n}}class pt extends Error{constructor(t){super(t),this.name="ShikiError"}}const mp=new WeakMap;function li(e,t){mp.set(e,t)}function ko(e){return mp.get(e)}class qn{constructor(...t){T(this,"_stacks",{});T(this,"lang");if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,o]=t;this.lang=n,this._stacks={[o]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new qn(Object.fromEntries(hv(r).map(n=>[n,us])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Jc(this._stacks[this.theme])}getScopes(t=this.theme){return Jc(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Jc(e){const t=[],r=new Set;function n(o){if(r.has(o))return;r.add(o);const a=o?.nameScopesList?.scopeName;a&&t.push(a),o.parent&&n(o.parent)}return n(e),t}function bv(e,t){if(!(e instanceof qn))throw new pt("Invalid grammar state");return e.getInternalStack(t)}function xv(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let n=function(i){if(typeof i=="number"){if(i<0||i>r.source.length)throw new pt(`Invalid decoration offset: ${i}. Code length: ${r.source.length}`);return{...o.indexToPos(i),offset:i}}else{const s=o.lines[i.line];if(s===void 0)throw new pt(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${o.lines.length}`);if(i.character<0||i.character>s.length)throw new pt(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${s.length}`);return{...i,offset:o.posToIndex(i.line,i.character)}}};const o=yv(r.source),a=(r.options.decorations||[]).map(i=>({...i,start:n(i.start),end:n(i.end)}));vv(a),e.set(r.meta,{decorations:a,converter:o,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const n=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return fv(r,n)},code(r){if(!this.options.decorations?.length)return;const n=t(this),o=Array.from(r.children).filter(u=>u.type==="element"&&u.tagName==="span");if(o.length!==n.converter.lines.length)throw new pt(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function a(u,p,h,f){const g=o[u];let y="",v=-1,b=-1;if(p===0&&(v=0),h===0&&(b=0),h===Number.POSITIVE_INFINITY&&(b=g.children.length),v===-1||b===-1)for(let w=0;w<g.children.length;w++)y+=fp(g.children[w]),v===-1&&y.length===p&&(v=w+1),b===-1&&y.length===h&&(b=w+1);if(v===-1)throw new pt(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(b===-1)throw new pt(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const C=g.children.slice(v,b);if(!f.alwaysWrap&&C.length===g.children.length)s(g,f,"line");else if(!f.alwaysWrap&&C.length===1&&C[0].type==="element")s(C[0],f,"token");else{const w={type:"element",tagName:"span",properties:{},children:C};s(w,f,"wrapper"),g.children.splice(v,C.length,w)}}function i(u,p){o[u]=s(o[u],p,"line")}function s(u,p,h){const f=p.properties||{},g=p.transform||(y=>y);return u.tagName=p.tagName||"span",u.properties={...u.properties,...f,class:u.properties.class},p.properties?.class&&dp(u,p.properties.class),u=g(u,h)||u,u}const l=[],c=n.decorations.sort((u,p)=>p.start.offset-u.start.offset);for(const u of c){const{start:p,end:h}=u;if(p.line===h.line)a(p.line,p.character,h.character,u);else if(p.line<h.line){a(p.line,p.character,Number.POSITIVE_INFINITY,u);for(let f=p.line+1;f<h.line;f++)l.unshift(()=>i(f,u));a(h.line,0,h.character,u)}}l.forEach(u=>u())}}}function vv(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new pt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const o=e[n],a=r.start.offset<o.start.offset&&o.start.offset<r.end.offset,i=r.start.offset<o.end.offset&&o.end.offset<r.end.offset,s=o.start.offset<r.start.offset&&r.start.offset<o.end.offset,l=o.start.offset<r.end.offset&&r.end.offset<o.end.offset;if(a||i||s||l){if(i&&i||s&&l)continue;throw new pt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function fp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(fp).join(""):""}const Sv=[xv()];function La(e){return[...e.transformers||[],...Sv]}var Hr=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Fi={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function wv(e,t){const r=e.indexOf("\x1B[",t);if(r!==-1){const n=e.indexOf("m",r);return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function Xc(e,t){let r=1;const n=e[t+r++];let o;if(n==="2"){const a=[e[t+r++],e[t+r++],e[t+r]].map(i=>Number.parseInt(i));a.length===3&&!a.some(i=>Number.isNaN(i))&&(o={type:"rgb",rgb:a})}else if(n==="5"){const a=Number.parseInt(e[t+r]);Number.isNaN(a)||(o={type:"table",index:Number(a)})}return[r,o]}function Cv(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r],o=Number.parseInt(n);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)Fi[o]&&t.push({type:"setDecoration",value:Fi[o]});else if(o<=29){const a=Fi[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Hr[o-30]}});else if(o===38){const[a,i]=Xc(e,r);i&&t.push({type:"setForegroundColor",value:i}),r+=a}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Hr[o-40]}});else if(o===48){const[a,i]=Xc(e,r);i&&t.push({type:"setBackgroundColor",value:i}),r+=a}else o===49?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Hr[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Hr[o-100+8]}})}return t}function kv(){let e=null,t=null,r=new Set;return{parse(n){const o=[];let a=0;do{const i=wv(n,a),s=i.sequence?n.substring(a,i.startPosition):n.substring(a);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(r)}),i.sequence){const l=Cv(i.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,r.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&r.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&r.add(c.value)}a=i.position}while(a<n.length);return o}}}var Pv={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 Iv(e=Pv){function t(s){return e[s]}function r(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function o(){if(n)return n;n=[];for(let c=0;c<Hr.length;c++)n.push(t(Hr[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let p=0;p<6;p++)n.push(r([s[c],s[u],s[p]]));let l=8;for(let c=0;c<24;c++,l+=10)n.push(r([l,l,l]));return n}function a(s){return o()[s]}function i(s){switch(s.type){case"named":return t(s.name);case"rgb":return r(s.rgb);case"table":return a(s.index)}}return{value:i}}function jv(e,t,r){const n=Oa(e,r),o=si(t),a=Iv(Object.fromEntries(Hr.map(s=>[s,e.colors?.[`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`]]))),i=kv();return o.map(s=>i.parse(s[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?a.value(l.background):e.bg,u=l.foreground?a.value(l.foreground):e.fg):(c=l.foreground?a.value(l.foreground):e.fg,u=l.background?a.value(l.background):void 0),c=Wr(c,n),u=Wr(u,n),l.decorations.has("dim")&&(c=Ev(c));let p=hr.None;return l.decorations.has("bold")&&(p|=hr.Bold),l.decorations.has("italic")&&(p|=hr.Italic),l.decorations.has("underline")&&(p|=hr.Underline),{content:l.value,offset:s[1],color:c,bgColor:u,fontStyle:p}}))}function Ev(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const n=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${n}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(n=>`${n}${n}`).join("")}80`;const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function ul(e,t,r={}){const{lang:n="text",theme:o=e.getLoadedThemes()[0]}=r;if(ll(n)||cl(o))return si(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:a,colorMap:i}=e.setTheme(o);if(n==="ansi")return jv(a,t,r);const s=e.getLanguage(n);if(r.grammarState){if(r.grammarState.lang!==s.name)throw new fr(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${s.name}"`);if(!r.grammarState.themes.includes(a.name))throw new fr(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Tv(t,s,a,i,r)}function Rv(...e){if(e.length===2)return ko(e[1]);const[t,r,n={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=n;if(ll(o)||cl(a))throw new fr("Plain language does not have grammar state");if(o==="ansi")throw new fr("ANSI language does not have grammar state");const{theme:i,colorMap:s}=t.setTheme(a),l=t.getLanguage(o);return new qn($a(r,l,i,s,n).stateStack,l.name,i.name)}function Tv(e,t,r,n,o){const a=$a(e,t,r,n,o),i=new qn($a(e,t,r,n,o).stateStack,t.name,r.name);return li(a.tokens,i),a.tokens}function $a(e,t,r,n,o){const a=Oa(r,o),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:s=500}=o,l=si(e);let c=o.grammarState?bv(o.grammarState,r.name)??us:o.grammarContextCode!=null?$a(o.grammarContextCode,t,r,n,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:us,u=[];const p=[];for(let h=0,f=l.length;h<f;h++){const[g,y]=l[h];if(g===""){u=[],p.push([]);continue}if(i>0&&g.length>=i){u=[],p.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let v,b,C;o.includeExplanation&&(v=t.tokenizeLine(g,c),b=v.tokens,C=0);const w=t.tokenizeLine2(g,c,s),k=w.tokens.length/2;for(let j=0;j<k;j++){const P=w.tokens[2*j],B=j+1<k?w.tokens[2*j+2]:g.length;if(P===B)continue;const F=w.tokens[2*j+1],L=Wr(n[_n.getForeground(F)],a),m=_n.getFontStyle(F),R={content:g.substring(P,B),offset:y+P,color:L,fontStyle:m};if(o.includeExplanation){const D=[];if(o.includeExplanation!=="scopeName")for(const H of r.settings){let X;switch(typeof H.scope){case"string":X=H.scope.split(/,/).map(V=>V.trim());break;case"object":X=H.scope;break;default:continue}D.push({settings:H,selectors:X.map(V=>V.split(/ /))})}R.explanation=[];let $=0;for(;P+$<B;){const H=b[C],X=g.substring(H.startIndex,H.endIndex);$+=X.length,R.explanation.push({content:X,scopes:o.includeExplanation==="scopeName"?Nv(H.scopes):Mv(D,H.scopes)}),C+=1}}u.push(R)}p.push(u),u=[],c=w.ruleStack}return{tokens:p,stateStack:c}}function Nv(e){return e.map(t=>({scopeName:t}))}function Mv(e,t){const r=[];for(let n=0,o=t.length;n<o;n++){const a=t[n];r[n]={scopeName:a,themeMatches:_v(e,a,t.slice(0,n))}}return r}function Zc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Av(e,t,r){if(!Zc(e[e.length-1],t))return!1;let n=e.length-2,o=r.length-1;for(;n>=0&&o>=0;)Zc(e[n],r[o])&&(n-=1),o-=1;return n===-1}function _v(e,t,r){const n=[];for(const{selectors:o,settings:a}of e)for(const i of o)if(Av(i,t,r)){n.push(a);break}return n}function gp(e,t,r){const n=Object.entries(r.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),o=n.map(l=>{const c=ul(e,t,{...r,theme:l.theme}),u=ko(c),p=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:p}}),a=Ov(...o.map(l=>l.tokens)),i=a[0].map((l,c)=>l.map((u,p)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in r&&r.includeExplanation&&(h.explanation=u.explanation),a.forEach((f,g)=>{const{content:y,explanation:v,offset:b,...C}=f[c][p];h.variants[n[g].color]=C}),h})),s=o[0].state?new qn(Object.fromEntries(o.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),o[0].state.lang):void 0;return s&&li(i,s),i}function Ov(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const o=e.map(l=>l[n]),a=t.map(()=>[]);t.forEach((l,c)=>l.push(a[c]));const i=o.map(()=>0),s=o.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<r;c++){const u=s[c];u.content.length===l?(a[c].push(u),i[c]+=1,s[c]=o[c][i[c]]):(a[c].push({...u,content:u.content.slice(0,l)}),s[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}function Da(e,t,r){let n,o,a,i,s,l;if("themes"in r){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-"}=r,p=Object.entries(r.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,b)=>v.color===c?-1:b.color===c?1:0);if(p.length===0)throw new fr("`themes` option must not be empty");const h=gp(e,t,r);if(l=ko(h),c&&!p.find(v=>v.color===c))throw new fr(`\`themes\` option must contain the defaultColor key \`${c}\``);const f=p.map(v=>e.getTheme(v.theme)),g=p.map(v=>v.color);a=h.map(v=>v.map(b=>Lv(b,g,u,c))),l&&li(a,l);const y=p.map(v=>Oa(v.theme,r));o=p.map((v,b)=>(b===0&&c?"":`${u+v.color}:`)+(Wr(f[b].fg,y[b])||"inherit")).join(";"),n=p.map((v,b)=>(b===0&&c?"":`${u+v.color}-bg:`)+(Wr(f[b].bg,y[b])||"inherit")).join(";"),i=`shiki-themes ${f.map(v=>v.name).join(" ")}`,s=c?void 0:[o,n].join(";")}else if("theme"in r){const c=Oa(r.theme,r);a=ul(e,t,r);const u=e.getTheme(r.theme);n=Wr(u.bg,c),o=Wr(u.fg,c),i=u.name,l=ko(a)}else throw new fr("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:n,themeName:i,rootStyle:s,grammarState:l}}function Lv(e,t,r,n){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(l=>hp(e.variants[l])),i=new Set(a.flatMap(l=>Object.keys(l))),s={};return a.forEach((l,c)=>{for(const u of i){const p=l[u]||"inherit";if(c===0&&n)s[u]=p;else{const h=u==="color"?"":u==="background-color"?"-bg":`-${u}`,f=r+t[c]+(u==="color"?"":h);s[f]=p}}}),o.htmlStyle=s,o}function Ba(e,t,r,n={meta:{},options:r,codeToHast:(o,a)=>Ba(e,o,a),codeToTokens:(o,a)=>Da(e,o,a)}){let o=t;for(const f of La(r))o=f.preprocess?.call(n,o,r)||o;let{tokens:a,fg:i,bg:s,themeName:l,rootStyle:c,grammarState:u}=Da(e,o,r);const{mergeWhitespaces:p=!0}=r;p===!0?a=Dv(a):p==="never"&&(a=Bv(a));const h={...n,get source(){return o}};for(const f of La(r))a=f.tokens?.call(h,a)||a;return $v(a,{...r,fg:i,bg:s,themeName:l,rootStyle:c},h,u)}function $v(e,t,r,n=ko(e)){const o=La(t),a=[],i={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t;let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([g])=>!g.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:a};const p=[],h={...r,structure:s,addClassToHast:dp,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return u},get lines(){return p}};if(e.forEach((g,y)=>{y&&(s==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&a.push({type:"text",value:`
48
48
  `}));let v={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const C of g){let w={type:"element",tagName:"span",properties:{...C.htmlAttrs},children:[{type:"text",value:C.content}]};C.htmlStyle;const k=gv(C.htmlStyle||hp(C));k&&(w.properties.style=k);for(const j of o)w=j?.span?.call(h,w,y+1,b,v,C)||w;s==="inline"?i.children.push(w):s==="classic"&&v.children.push(w),b+=C.content.length}if(s==="classic"){for(const C of o)v=C?.line?.call(h,v,y+1)||v;p.push(v),a.push(v)}}),s==="classic"){for(const g of o)u=g?.code?.call(h,u)||u;c.children.push(u);for(const g of o)c=g?.pre?.call(h,c)||c;i.children.push(c)}let f=i;for(const g of o)f=g?.root?.call(h,f)||f;return n&&li(f,n),f}function Dv(e){return e.map(t=>{const r=[];let n="",o=0;return t.forEach((a,i)=>{const s=!(a.fontStyle&&a.fontStyle&hr.Underline);s&&a.content.match(/^\s+$/)&&t[i+1]?(o||(o=a.offset),n+=a.content):n?(s?r.push({...a,offset:o,content:n+a.content}):r.push({content:n,offset:o},a),o=0,n=""):r.push(a)}),r})}function Bv(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,o,a,i]=n;if(!o&&!i)return r;const s=[{...r,offset:r.offset+o.length,content:a}];return o&&s.unshift({content:o,offset:r.offset}),i&&s.push({content:i,offset:r.offset+o.length+a.length}),s}))}function qv(e,t,r){const n={meta:{},options:r,codeToHast:(a,i)=>Ba(e,a,i),codeToTokens:(a,i)=>Da(e,a,i)};let o=uv(Ba(e,t,r,n));for(const a of La(r))o=a.postprocess?.call(n,o,r)||o;return o}const eu={light:"#333333",dark:"#bbbbbb"},tu={light:"#fffffe",dark:"#1e1e1e"},ru="__shiki_resolved";function dl(e){if(e?.[ru])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:r,fg:n}=t;if(!r||!n){const s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(n=s.settings.foreground),s?.settings?.background&&(r=s.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?eu.light:eu.dark),r||(r=t.type==="light"?tu.light:tu.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let o=0;const a=new Map;function i(s){if(a.has(s))return a.get(s);o+=1;const l=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(s):(a.set(s,l),l)}t.settings=t.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;const u={...s,settings:{...s.settings}};if(l){const p=i(s.settings.foreground);t.colorReplacements[p]=s.settings.foreground,u.settings.foreground=p}if(c){const p=i(s.settings.background);t.colorReplacements[p]=s.settings.background,u.settings.background=p}return u});for(const s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){const l=i(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,ru,{enumerable:!1,writable:!1,value:!0}),t}async function yp(e){return Array.from(new Set((await Promise.all(e.filter(t=>!cp(t)).map(async t=>await pp(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function bp(e){return(await Promise.all(e.map(async t=>up(t)?null:dl(await pp(t))))).filter(t=>!!t)}class Fv extends Y0{constructor(r,n,o,a={}){super(r);T(this,"_resolvedThemes",new Map);T(this,"_resolvedGrammars",new Map);T(this,"_langMap",new Map);T(this,"_langGraph",new Map);T(this,"_textmateThemeCache",new WeakMap);T(this,"_loadedThemesCache",null);T(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=n,this._langs=o,this._alias=a,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const n=dl(r);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let n=this._textmateThemeCache.get(r);n||(n=Ta.createFromRawTheme(r),this._textmateThemeCache.set(r,n)),this._syncRegistry.setTheme(n)}getGrammar(r){if(this._alias[r]){const n=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],n.has(r))throw new pt(`Circular alias \`${Array.from(n).join(" -> ")} -> ${r}\``);n.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){if(this.getGrammar(r.name))return;const n=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(r.name)));this._resolver.addLanguage(r);const o={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const a=this.loadGrammarWithConfiguration(r.scopeName,1,o);if(a.name=r.name,this._resolvedGrammars.set(r.name,a),r.aliases&&r.aliases.forEach(i=>{this._alias[i]=r.name}),this._loadedLanguagesCache=null,n.size)for(const i of n)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const a of r)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),o=n.filter(([a,i])=>!i);if(o.length){const a=n.filter(([i,s])=>s&&s.embeddedLangs?.some(l=>o.map(([c])=>c).includes(l))).filter(i=>!o.includes(i));throw new pt(`Missing languages ${o.map(([i])=>`\`${i}\``).join(", ")}, required by ${a.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[a,i]of n)this._resolver.addLanguage(i);for(const[a,i]of n)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const n of r.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class zv{constructor(t,r){T(this,"_langs",new Map);T(this,"_scopeToLang",new Map);T(this,"_injections",new Map);T(this,"_onigLib");this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},r.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(r=>{this._langs.set(r,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(t.scopeName)})}getInjections(t){const r=t.split(".");let n=[];for(let o=1;o<=r.length;o++){const a=r.slice(0,o).join(".");n=[...n,...this._injections.get(a)||[]]}return n}}let eo=0;function Uv(e){eo+=1,e.warnings!==!1&&eo>=10&&eo%10===0&&console.warn(`[Shiki] ${eo} 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 pt("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(dl),o=new zv(e.engine,r),a=new Fv(o,n,r,e.langAlias);let i;function s(C){v();const w=a.getGrammar(typeof C=="string"?C:C.name);if(!w)throw new pt(`Language \`${C}\` not found, you may need to load it first`);return w}function l(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const w=a.getTheme(C);if(!w)throw new pt(`Theme \`${C}\` not found, you may need to load it first`);return w}function c(C){v();const w=l(C);i!==C&&(a.setTheme(w),i=C);const k=a.getColorMap();return{theme:w,colorMap:k}}function u(){return v(),a.getLoadedThemes()}function p(){return v(),a.getLoadedLanguages()}function h(...C){v(),a.loadLanguages(C.flat(1))}async function f(...C){return h(await yp(C))}function g(...C){v();for(const w of C.flat(1))a.loadTheme(w)}async function y(...C){return v(),g(await bp(C))}function v(){if(t)throw new pt("Shiki instance has been disposed")}function b(){t||(t=!0,a.dispose(),eo-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:p,loadLanguage:f,loadLanguageSync:h,loadTheme:y,loadThemeSync:g,dispose:b,[Symbol.dispose]:b}}async function Wv(e={}){e.loadWasm;const[t,r,n]=await Promise.all([bp(e.themes||[]),yp(e.langs||[]),e.engine||Ad(e.loadWasm||u0())]);return Uv({...e,themes:t,langs:r,engine:n})}async function Hv(e={}){const t=await Wv(e);return{getLastGrammarState:(...r)=>Rv(t,...r),codeToTokensBase:(r,n)=>ul(t,r,n),codeToTokensWithThemes:(r,n)=>gp(t,r,n),codeToTokens:(r,n)=>Da(t,r,n),codeToHast:(r,n)=>Ba(t,r,n),codeToHtml:(r,n)=>qv(t,r,n),...t,getInternalContext:()=>t}}function Vv(e,t,r){let n,o,a;{const s=e;n=s.langs,o=s.themes,a=s.engine}async function i(s){function l(f){if(typeof f=="string"){if(cp(f))return[];const g=n[f];if(!g)throw new fr(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);return g}return f}function c(f){if(up(f))return"none";if(typeof f=="string"){const g=o[f];if(!g)throw new fr(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);return g}return f}const u=(s.themes??[]).map(f=>c(f)),p=(s.langs??[]).map(f=>l(f)),h=await Hv({engine:s.engine??a(),...s,themes:u,langs:p});return{...h,loadLanguage(...f){return h.loadLanguage(...f.map(l))},loadTheme(...f){return h.loadTheme(...f.map(c))}}}return i}const Gv=Vv({langs:Wb,themes:Vb,engine:()=>Ad(Promise.resolve().then(()=>require("./wasm-DQxwEHae-Dw4u1m6u.cjs")))}),zi={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},Kv={...zi,patterns:[...zi.patterns,{include:"#docvar"}],repository:{...zi.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},Qv={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},xp="catppuccin-latte",Yv=Gv({themes:[xp],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...Kv},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...Qv}]});async function Xr(e,t){return(await Yv).codeToHtml(e,{lang:t,theme:xp})}const et=x.styled(x.Card)({display:"flex",flexDirection:"column",height:"100%"}),kt=x.styled(x.CardContent)({display:"flex",flexDirection:"column",padding:"10px",flexGrow:1}),ci=x.styled(x.CardMedia)({padding:"10px"}),Jv=x.styled("div")({display:"flex",flexDirection:"column",height:"100%"});x.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const Xv=x.styled("div")({display:"flex",height:"75vh",width:"100%",overflowY:"auto"});x.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const Zv=tt([d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"},"0"),d.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]),vp=_.createContext(void 0),qa=({projectName:e,packageName:t,versionId:r,children:n})=>d.jsx(vp.Provider,{value:{projectName:e,packageName:t,versionId:r},children:n});function Ft(){const e=_.useContext(vp);if(!e)throw new Error("usePackage must be used within a PackageProvider");return e}function Pt({error:e,context:t}){const r=e.data?.message||"Unknown Error";return d.jsxs(d.Fragment,{children:[t&&d.jsx(x.Typography,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),d.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:r})]})}function zt({text:e,size:t=20,color:r="primary",thickness:n=3.6,centered:o=!0,spacing:a=2,textVariant:i="body2"}){const s=d.jsxs(x.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[d.jsx(x.CircularProgress,{size:t,color:r,thickness:n}),e&&d.jsx(x.Typography,{variant:i,color:"text.secondary",children:e})]});return o?d.jsx(x.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:s}):s}const Sp=new Ns.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}});function It(e){const{server:t,accessToken:r}=Sl(),n={baseURL:t,withCredentials:!r,headers:{Authorization:r&&`Bearer ${r}`}},o={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn(n)}catch(a){if(a&&typeof a=="object"&&"response"in a){const i=a;if(i.response?.data){const s=new Error(i.response.data.message||i.message);throw s.status=i.response.status,s.data=i.response.data,s}}throw a}},retry:!1,throwOnError:!1};return Ns.useQuery(o,Sp)}function eS(e){const{server:t,accessToken:r}=Sl(),n={baseURL:t,withCredentials:!r,headers:{Authorization:r&&`Bearer ${r}`}},o={...e,mutationFn:async a=>{try{return await e.mutationFn(a,n)}catch(i){if(i&&typeof i=="object"&&"response"in i){const s=i;if(s.response?.data){const l=new Error(s.response.data.message||s.message);throw l.status=s.response.status,l.data=s.response.data,l}}throw i}},retry:!1,throwOnError:!1};return Ns.useMutation(o,Sp)}const tS=_.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-DXlUZo0k-CH-bOsNE.cjs"))),rS=new Nd(new ct);function nS({modelPath:e,query:t,sourceName:r,queryName:n}){const{projectName:o,packageName:a,versionId:i}=Ft(),{data:s,isSuccess:l,isError:c,error:u}=It({queryKey:["queryResult",o,a,e,i,t,r,n],queryFn:p=>rS.executeQuery(o,a,e,t,r,n,i,p)});return d.jsxs(d.Fragment,{children:[!l&&!c&&d.jsx(zt,{text:"Fetching Query Results..."}),l&&d.jsx(_.Suspense,{fallback:d.jsx("div",{children:"Loading..."}),children:d.jsx(tS,{result:s.data.result})}),c&&d.jsx(Pt,{context:`${o} > ${a} > ${e}`,error:u})]})}const oS=x.styled(x.Card)({display:"flex",flexDirection:"column",height:"100%"});function aS({modelPath:e,sourceName:t,queryName:r,expandResult:n,hideResultIcon:o,expandEmbedding:a,hideEmbeddingIcon:i,noView:s,annotations:l}){const[c,u]=_.useState(n),[p,h]=_.useState(a),[f,g]=_.useState(),[y,v]=_.useState(),b=iS(t,r);return _.useEffect(()=>{Xr(b,"typescript").then(C=>{g(C)})},[p,b]),_.useEffect(()=>{if(l&&l.length>0){const C=l.map(w=>`// ${w}`).join(`
49
49
  `);Xr(C,"typescript").then(w=>{v(w)})}},[l]),d.jsx(d.Fragment,{children:d.jsxs(oS,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[d.jsxs(x.Stack,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[d.jsx(x.Typography,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${s?"":"View >"} ${r}`}),d.jsxs(x.CardActions,{sx:{padding:"0px"},children:[!o&&d.jsx(x.Tooltip,{title:c?"Hide Results":"Show Results",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{u(!c)},children:d.jsx(Zv,{})})}),!i&&d.jsx(x.Tooltip,{title:p?"Hide Sharing":"Show Sharing",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{h(!p)},children:d.jsx(Oo,{})})})]})]}),d.jsxs(x.Collapse,{in:p,timeout:"auto",unmountOnExit:!0,children:[d.jsx(x.Divider,{}),d.jsxs(x.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[d.jsx(x.Typography,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:d.jsx("div",{dangerouslySetInnerHTML:{__html:f}})}),d.jsx(x.Tooltip,{title:"Copy Embeddable Code",children:d.jsx(x.IconButton,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(b)},children:d.jsx(oi,{})})})]})]}),d.jsxs(x.Collapse,{in:c,timeout:"auto",unmountOnExit:!0,children:[d.jsx(x.Divider,{sx:{mb:"4px"}}),y&&d.jsxs(d.Fragment,{children:[d.jsx(x.Stack,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:d.jsx(x.Typography,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:d.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:y}})})}),d.jsx(x.Divider,{sx:{mb:"4px"}})]}),d.jsx(x.CardContent,{children:d.jsx(nS,{modelPath:e,sourceName:t,queryName:r})})]})]})})}function iS(e,t){return`<QueryResult
50
50
  sourceName="${e}"
51
51
  queryName="${t}"
52
- />`}function sS(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ea(t.components[r].defaultProps,n)}const lS=Xs();function cS(e=lS){return Iy(e)}function uS({props:e,name:t,defaultTheme:r,themeId:n}){let o=cS(r);return o=o[n]||o,sS({theme:o,name:t,props:e})}function dS({props:e,name:t}){return uS({props:e,name:t,defaultTheme:Zs,themeId:el})}const pS=new Nd(new ct),hS=Ee(fe.Box)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),mS=Ee(x.Button)(({theme:e,selected:t})=>({minHeight:36,padding:e.spacing(.5,2),borderRadius:e.shape.borderRadius,background:t?e.palette.action.selected:"none",color:t?e.palette.primary.main:e.palette.text.primary,fontWeight:t?600:400,border:t?`1px solid ${e.palette.primary.main}`:"1px solid transparent",boxShadow:t?e.shadows[1]:"none",textTransform:"uppercase","&:hover":{background:e.palette.action.hover,border:`1px solid ${e.palette.primary.light}`}}));function wp({sourceAndPaths:e,existingQuery:t,existingSourceName:r,onQueryChange:n,onSourceChange:o}){const[a,i]=_.useState(r?e.findIndex(c=>c.sourceInfo.name===r):0),[s,l]=_.useState(t||mo());return _.useEffect(()=>{o&&o(a)},[a,o]),d.jsxs(et,{variant:"outlined",children:[d.jsx(kt,{children:d.jsx(fe.Stack,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&d.jsx(hS,{children:e.map((c,u)=>d.jsx(mS,{selected:a===u,onClick:()=>i(u),children:c.sourceInfo.name||`Source ${u+1}`},c.sourceInfo.name||u))})})}),d.jsx(ci,{children:d.jsxs(fe.Stack,{spacing:2,component:"section",children:[d.jsx(Cp,{sourceAndPath:e[a],existingQuery:s,onChange:c=>{l(c),n&&n(c)}}),d.jsx(fe.Box,{height:"5px"})]})})]})}function mo(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Cp({sourceAndPath:e,onChange:t,existingQuery:r}){const[n,o]=_.useState(r||mo()),[a,i]=_.useState([]);_.useEffect(()=>{t&&t(n)},[t,n]);const{projectName:s,packageName:l,versionId:c}=Ft(),u=eS({mutationFn:(g,y)=>{const v=new Hh.ASTQuery({source:e.sourceInfo,query:n?.malloyQuery}).toMalloy();return o({...n,query:v}),pS.executeQuery(s,l,e.modelPath,v,void 0,void 0,c,y)},onSuccess:g=>{if(g){const y=JSON.parse(g.data.result);o({...n,malloyResult:y})}}}),[p,h]=_.useState(e.sourceInfo.name);_.useEffect(()=>{p!==e.sourceInfo.name&&(h(e.sourceInfo.name),o(mo()))},[e,p]);const f=_.useCallback(g=>{o({...n,malloyQuery:g})},[n]);return p!==e.sourceInfo.name?d.jsx("div",{children:"Loading..."}):d.jsx(Jv,{children:d.jsx(Xv,{children:d.jsx(un.MalloyExplorerProvider,{source:e.sourceInfo,query:n?.malloyQuery,onQueryChange:f,focusedNestViewPath:a,onFocusedNestViewPathChange:i,onDrill:g=>{console.info(g)},children:d.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:d.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[d.jsx(un.ResizableCollapsiblePanel,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:d.jsx(un.SourcePanel,{onRefresh:()=>o(mo())})}),d.jsx(un.ResizableCollapsiblePanel,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:d.jsx(un.QueryPanel,{runQuery:()=>{u.mutate()}})}),d.jsx(un.ResultPanel,{source:e.sourceInfo,draftQuery:n?.malloyQuery,setDraftQuery:g=>o({...n,malloyQuery:g}),submittedQuery:n?.malloyQuery?{executionState:u.isPending?"running":"finished",response:{result:n.malloyResult},query:n.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:u.reset}:void 0,options:{showRawQuery:!0}})]})})})})},e.sourceInfo.name)}const fS=new ai(new ct);function gS({modelPath:e,expandResults:t,hideResultIcons:r,expandEmbeddings:n,hideEmbeddingIcons:o}){const[a,i]=_.useState(!1),[s,l]=_.useState(),[c,u]=_.useState(0),{projectName:p,packageName:h,versionId:f}=Ft(),g=yS(e);_.useEffect(()=>{Xr(g,"typescript").then(w=>{l(w)})},[a,g]);const{data:y,isError:v,isLoading:b,error:C}=It({queryKey:["package",p,h,e,f],queryFn:async w=>(await fS.getModel(p,h,e,f,w)).data});return b?d.jsx(zt,{text:"Fetching Model..."}):v?(console.log("error",C),d.jsx(Pt,{error:C,context:`${h} > ${e}`})):d.jsxs(et,{variant:"outlined",children:[d.jsxs(kt,{children:[d.jsxs(x.Stack,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&d.jsx(x.Tabs,{value:c,onChange:(w,k)=>u(k),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:y.sourceInfos.map((w,k)=>{let j;try{j=JSON.parse(w)}catch{j={name:String(k)}}return d.jsx(x.Tab,{label:j.name||`Source ${k+1}`,sx:{minHeight:36}},j.name||k)})}),!o&&d.jsx(x.CardActions,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:d.jsx(x.Tooltip,{title:a?"Hide Embedding":"View Embedding",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{i(!a)},children:d.jsx(Oo,{})})})})]}),d.jsxs(x.Collapse,{in:a,timeout:"auto",unmountOnExit:!0,children:[d.jsx(x.Divider,{}),d.jsxs(x.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[d.jsx(x.Typography,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:d.jsx("div",{dangerouslySetInnerHTML:{__html:s}})}),d.jsx(x.Tooltip,{title:"Copy Embeddable Code",children:d.jsx(x.IconButton,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(g)},children:d.jsx(oi,{})})})]})]}),d.jsx(x.Divider,{})]}),d.jsx(ci,{children:d.jsxs(x.Stack,{spacing:2,component:"section",children:[Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&d.jsx(Cp,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(y.sourceInfos[c])}}),y.queries?.length>0&&d.jsxs(et,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[d.jsx(kt,{sx:{p:"10px"},children:d.jsx(x.Typography,{variant:"subtitle1",children:"Named Queries"})}),d.jsx(x.Stack,{spacing:1,component:"section",children:y.queries.map(w=>d.jsx(aS,{modelPath:e,queryName:w.name,expandResult:t,hideResultIcon:r,expandEmbedding:n,hideEmbeddingIcon:o,noView:!0,annotations:w.annotations},w.name))}),d.jsx(x.Box,{height:"10px"})]}),d.jsx(x.Box,{height:"5px"})]})})]})}function yS(e){return`<Model
52
+ />`}function sS(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ea(t.components[r].defaultProps,n)}const lS=Xs();function cS(e=lS){return Iy(e)}function uS({props:e,name:t,defaultTheme:r,themeId:n}){let o=cS(r);return o=o[n]||o,sS({theme:o,name:t,props:e})}function dS({props:e,name:t}){return uS({props:e,name:t,defaultTheme:Zs,themeId:el})}const pS=new Nd(new ct),hS=Ee(fe.Box)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),mS=Ee(x.Button)(({theme:e,selected:t})=>({minHeight:36,padding:e.spacing(.5,2),borderRadius:e.shape.borderRadius,background:t?e.palette.action.selected:"none",color:t?e.palette.primary.main:e.palette.text.primary,fontWeight:t?600:400,border:t?`1px solid ${e.palette.primary.main}`:"1px solid transparent",boxShadow:t?e.shadows[1]:"none",textTransform:"uppercase","&:hover":{background:e.palette.action.hover,border:`1px solid ${e.palette.primary.light}`}}));function wp({sourceAndPaths:e,existingQuery:t,existingSourceName:r,onQueryChange:n,onSourceChange:o}){const[a,i]=_.useState(r?e.findIndex(c=>c.sourceInfo.name===r):0),[s,l]=_.useState(t||mo());return _.useEffect(()=>{o&&o(a)},[a,o]),d.jsxs(et,{variant:"outlined",children:[d.jsx(kt,{children:d.jsx(fe.Stack,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&d.jsx(hS,{children:e.map((c,u)=>d.jsx(mS,{selected:a===u,onClick:()=>i(u),children:c.sourceInfo.name||`Source ${u+1}`},c.sourceInfo.name||u))})})}),d.jsx(ci,{children:d.jsxs(fe.Stack,{spacing:2,component:"section",children:[d.jsx(Cp,{sourceAndPath:e[a],existingQuery:s,onChange:c=>{l(c),n&&n(c)}}),d.jsx(fe.Box,{height:"5px"})]})})]})}function mo(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Cp({sourceAndPath:e,onChange:t,existingQuery:r}){const[n,o]=_.useState(r||mo()),[a,i]=_.useState([]);_.useEffect(()=>{t&&t(n)},[t,n]);const{projectName:s,packageName:l,versionId:c}=Ft(),u=eS({mutationFn:(g,y)=>{const v=new Hh.ASTQuery({source:e.sourceInfo,query:n?.malloyQuery}).toMalloy();return o({...n,query:v}),pS.executeQuery(s,l,e.modelPath,v,void 0,void 0,c,y)},onSuccess:g=>{if(g){const y=JSON.parse(g.data.result);o({...n,malloyResult:y})}}}),[p,h]=_.useState(e.sourceInfo.name);_.useEffect(()=>{p!==e.sourceInfo.name&&(h(e.sourceInfo.name),o(mo()))},[e,p]);const f=_.useCallback(g=>{o({...n,malloyQuery:g})},[n]);return p!==e.sourceInfo.name?d.jsx("div",{children:"Loading..."}):d.jsx(Jv,{children:d.jsx(Xv,{children:d.jsx(dn.MalloyExplorerProvider,{source:e.sourceInfo,query:n?.malloyQuery,onQueryChange:f,focusedNestViewPath:a,onFocusedNestViewPathChange:i,onDrill:g=>{console.info(g)},children:d.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:d.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[d.jsx(dn.ResizableCollapsiblePanel,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:d.jsx(dn.SourcePanel,{onRefresh:()=>o(mo())})}),d.jsx(dn.ResizableCollapsiblePanel,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:d.jsx(dn.QueryPanel,{runQuery:()=>{u.mutate()}})}),d.jsx(dn.ResultPanel,{source:e.sourceInfo,draftQuery:n?.malloyQuery,setDraftQuery:g=>o({...n,malloyQuery:g}),submittedQuery:n?.malloyQuery?{executionState:u.isPending?"running":"finished",response:{result:n.malloyResult},query:n.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:u.reset}:void 0,options:{showRawQuery:!0}})]})})})})},e.sourceInfo.name)}const fS=new ai(new ct);function gS({modelPath:e,expandResults:t,hideResultIcons:r,expandEmbeddings:n,hideEmbeddingIcons:o}){const[a,i]=_.useState(!1),[s,l]=_.useState(),[c,u]=_.useState(0),{projectName:p,packageName:h,versionId:f}=Ft(),g=yS(e);_.useEffect(()=>{Xr(g,"typescript").then(w=>{l(w)})},[a,g]);const{data:y,isError:v,isLoading:b,error:C}=It({queryKey:["package",p,h,e,f],queryFn:async w=>(await fS.getModel(p,h,e,f,w)).data});return b?d.jsx(zt,{text:"Fetching Model..."}):v?(console.log("error",C),d.jsx(Pt,{error:C,context:`${h} > ${e}`})):d.jsxs(et,{variant:"outlined",children:[d.jsxs(kt,{children:[d.jsxs(x.Stack,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&d.jsx(x.Tabs,{value:c,onChange:(w,k)=>u(k),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:y.sourceInfos.map((w,k)=>{let j;try{j=JSON.parse(w)}catch{j={name:String(k)}}return d.jsx(x.Tab,{label:j.name||`Source ${k+1}`,sx:{minHeight:36}},j.name||k)})}),!o&&d.jsx(x.CardActions,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:d.jsx(x.Tooltip,{title:a?"Hide Embedding":"View Embedding",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{i(!a)},children:d.jsx(Oo,{})})})})]}),d.jsxs(x.Collapse,{in:a,timeout:"auto",unmountOnExit:!0,children:[d.jsx(x.Divider,{}),d.jsxs(x.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[d.jsx(x.Typography,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:d.jsx("div",{dangerouslySetInnerHTML:{__html:s}})}),d.jsx(x.Tooltip,{title:"Copy Embeddable Code",children:d.jsx(x.IconButton,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(g)},children:d.jsx(oi,{})})})]})]}),d.jsx(x.Divider,{})]}),d.jsx(ci,{children:d.jsxs(x.Stack,{spacing:2,component:"section",children:[Array.isArray(y.sourceInfos)&&y.sourceInfos.length>0&&d.jsx(Cp,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(y.sourceInfos[c])}}),y.queries?.length>0&&d.jsxs(et,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[d.jsx(kt,{sx:{p:"10px"},children:d.jsx(x.Typography,{variant:"subtitle1",children:"Named Queries"})}),d.jsx(x.Stack,{spacing:1,component:"section",children:y.queries.map(w=>d.jsx(aS,{modelPath:e,queryName:w.name,expandResult:t,hideResultIcon:r,expandEmbedding:n,hideEmbeddingIcon:o,noView:!0,annotations:w.annotations},w.name))}),d.jsx(x.Box,{height:"10px"})]}),d.jsx(x.Box,{height:"5px"})]})})]})}function yS(e){return`<Model
53
53
  modelPath="${e}"
54
54
  accessToken={accessToken}
55
55
  />`}const kp=tt(d.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),bS=_.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-DXlUZo0k-CH-bOsNE.cjs")));function Pp({result:e,minHeight:t,maxHeight:r}){const[n,o]=_.useState(!1),[a,i]=_.useState(0),[s,l]=_.useState(!1),c=_.useRef(null),u=_.useRef(null),[p,h]=_.useState(void 0),[f,g]=_.useState(!1),y=_.useCallback(()=>{const k=n;o(!n),k&&u.current&&setTimeout(()=>{u.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[n]),v=_.useCallback(k=>{i(k)},[]);if(_.useEffect(()=>{if(f){l(!0);return}if(a===0){l(!1);return}const k=t-20,j=a>k;a<k&&h(a+20),l(j)},[a,f,t]),!e)return null;const b=d.jsx(zt,{text:"Loading...",centered:!0,size:32}),C=f?n?r-40:t-40:void 0,w=p?{minHeight:`${p}px`,height:"100%"}:{height:"100%"};return d.jsx(d.Fragment,{children:d.jsxs(x.Box,{ref:u,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${n?r:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...w},children:[d.jsx(x.Box,{ref:c,sx:{flex:1,overflow:n?"auto":"hidden",p:0,pb:s?"40px":1},children:e&&d.jsx(_.Suspense,{fallback:b,children:d.jsx(bS,{result:e,height:C,isFillElement:k=>{g(k)},onSizeChange:v})})||b}),s&&d.jsx(x.Box,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx(x.IconButton,{size:"small",onClick:y,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:n?"Collapse to original size":"Expand to full size",children:n?d.jsx(yo.ExpandLess,{sx:{fontSize:30}}):d.jsx(yo.ExpandMore,{sx:{fontSize:30}})})})]})})}const xS=`
@@ -65,12 +65,12 @@ queryName="${t}"
65
65
  />`}function CS(e,t){return`<Notebook
66
66
  notebookPath="${e}"
67
67
  expandCodeCells={${t}}
68
- />`}class jp{makeKey(t,r){let n=`BROWSER_NOTEBOOK_STORAGE__${t.project}/${t.package}`;return r&&(n+=`/${r}`),n}listNotebooks(t){const r=this.makeKey(t),n=[];for(let o=0;o<localStorage.length;o++){const a=localStorage.key(o);if(a&&a.startsWith(r+"/")){const i=a.substring(r.length+1);n.push(i)}}return n}getNotebook(t,r){const n=this.makeKey(t,r),o=localStorage.getItem(n);if(o===null)throw new Error(`Notebook not found at path: ${r}`);return o}deleteNotebook(t,r){const n=this.makeKey(t,r);if(localStorage.getItem(n)===null)throw new Error(`Notebook not found at path: ${r}`);localStorage.removeItem(n)}saveNotebook(t,r,n){const o=this.makeKey(t,r);localStorage.setItem(o,n)}moveNotebook(t,r,n){const o=this.makeKey(t,r),a=this.makeKey(t,n),i=localStorage.getItem(o);if(i===null)throw new Error(`Notebook not found at path: ${r}`);localStorage.setItem(a,i),localStorage.removeItem(o)}}const kS=tt(d.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),gn=fe.createStack({createStyledComponent:Ee("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>$n({props:e,name:"MuiStack"})});function Fn(){const e=ad();return(t,r)=>{if(!r||!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&r.button!==1){e(t);return}const n=new URL(t,window.location.href).href;(r.metaKey||r.ctrlKey||r.button===1||r.shiftKey)&&window.open(n,"_blank")}}class fo{constructor(t,r,n){T(this,"isSaved");T(this,"notebookStorage");T(this,"userContext");this.notebookData=n,this.notebookStorage=t,this.userContext=r,this.notebookData?this.isSaved=!0:(this.notebookData={models:[],cells:[],notebookPath:void 0},this.isSaved=!1)}getNotebookData(){return this.notebookData}getNotebookPath(){return this.notebookData.notebookPath}renameNotebook(t){if(this.notebookData.notebookPath!==t)try{this.notebookStorage.deleteNotebook(this.userContext,this.notebookData.notebookPath)}catch{}return this.notebookData.notebookPath=t,this.isSaved=!1,this.saveNotebook(),this}getCells(){return this.notebookData.cells}deleteCell(t){return this.notebookData.cells=[...this.notebookData.cells.slice(0,t),...this.notebookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,r){return this.notebookData.cells=[...this.notebookData.cells.slice(0,t),r,...this.notebookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,r){return this.notebookData.cells[t]=r,this.isSaved=!1,this}setModels(t){return this.notebookData.models=t,this.isSaved=!1,this}getModels(){return this.notebookData.models}updateNotebookData(t){return this.notebookData=t,this.isSaved=!1,this}saveNotebook(){if(!this.isSaved){if(!this.notebookData.notebookPath)throw new Error("Notebook path is not set");this.notebookStorage.saveNotebook(this.userContext,this.notebookData.notebookPath,JSON.stringify(this.notebookData)),this.isSaved=!0}return new fo(this.notebookStorage,this.userContext,this.notebookData)}toMalloyNotebook(){return this.notebookData.cells.map(t=>t.isMarkdown?`>>>markdown
68
+ />`}class jp{makeKey(t,r){let n=`BROWSER_NOTEBOOK_STORAGE__${t.project}/${t.package}`;return r&&(n+=`/${r}`),n}listNotebooks(t){const r=this.makeKey(t),n=[];for(let o=0;o<localStorage.length;o++){const a=localStorage.key(o);if(a&&a.startsWith(r+"/")){const i=a.substring(r.length+1);n.push(i)}}return n}getNotebook(t,r){const n=this.makeKey(t,r),o=localStorage.getItem(n);if(o===null)throw new Error(`Notebook not found at path: ${r}`);return o}deleteNotebook(t,r){const n=this.makeKey(t,r);if(localStorage.getItem(n)===null)throw new Error(`Notebook not found at path: ${r}`);localStorage.removeItem(n)}saveNotebook(t,r,n){const o=this.makeKey(t,r);localStorage.setItem(o,n)}moveNotebook(t,r,n){const o=this.makeKey(t,r),a=this.makeKey(t,n),i=localStorage.getItem(o);if(i===null)throw new Error(`Notebook not found at path: ${r}`);localStorage.setItem(a,i),localStorage.removeItem(o)}}const kS=tt(d.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),yn=fe.createStack({createStyledComponent:Ee("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>$n({props:e,name:"MuiStack"})});function Fn(){const e=ad();return(t,r)=>{if(!r||!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&r.button!==1){e(t);return}const n=new URL(t,window.location.href).href;(r.metaKey||r.ctrlKey||r.button===1||r.shiftKey)&&window.open(n,"_blank")}}class fo{constructor(t,r,n){T(this,"isSaved");T(this,"notebookStorage");T(this,"userContext");this.notebookData=n,this.notebookStorage=t,this.userContext=r,this.notebookData?this.isSaved=!0:(this.notebookData={models:[],cells:[],notebookPath:void 0},this.isSaved=!1)}getNotebookData(){return this.notebookData}getNotebookPath(){return this.notebookData.notebookPath}renameNotebook(t){if(this.notebookData.notebookPath!==t)try{this.notebookStorage.deleteNotebook(this.userContext,this.notebookData.notebookPath)}catch{}return this.notebookData.notebookPath=t,this.isSaved=!1,this.saveNotebook(),this}getCells(){return this.notebookData.cells}deleteCell(t){return this.notebookData.cells=[...this.notebookData.cells.slice(0,t),...this.notebookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,r){return this.notebookData.cells=[...this.notebookData.cells.slice(0,t),r,...this.notebookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,r){return this.notebookData.cells[t]=r,this.isSaved=!1,this}setModels(t){return this.notebookData.models=t,this.isSaved=!1,this}getModels(){return this.notebookData.models}updateNotebookData(t){return this.notebookData=t,this.isSaved=!1,this}saveNotebook(){if(!this.isSaved){if(!this.notebookData.notebookPath)throw new Error("Notebook path is not set");this.notebookStorage.saveNotebook(this.userContext,this.notebookData.notebookPath,JSON.stringify(this.notebookData)),this.isSaved=!0}return new fo(this.notebookStorage,this.userContext,this.notebookData)}toMalloyNotebook(){return this.notebookData.cells.map(t=>t.isMarkdown?`>>>markdown
69
69
  `+t.value:`>>>malloy
70
70
  import {${t.sourceName}}" from '${t.modelPath}'"
71
71
  `+t.value+`
72
72
  `).join(`
73
- `)}static newNotebook(t,r){return new fo(t,r,void 0)}static loadNotebook(t,r,n){let o;try{const a=t.getNotebook(r,n);a&&(o=JSON.parse(a))}catch{o={models:[],cells:[],notebookPath:n}}return new fo(t,r,o)}}const Ep=tt(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),PS=new Rd(new ct);function IS(){const{projectName:e,packageName:t,versionId:r}=Ft(),{data:n,isSuccess:o,isError:a,error:i}=It({queryKey:["package",e,t,r],queryFn:s=>PS.getPackage(e,t,r,!1,s)});return d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Package Config"}),d.jsx(x.Divider,{}),d.jsx(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:d.jsxs(x.List,{dense:!0,disablePadding:!0,children:[d.jsx(x.ListItem,{dense:!0,disablePadding:!0,children:d.jsx(x.ListItemText,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!o&&!a&&d.jsx(x.ListItem,{children:d.jsx(zt,{text:"Fetching Package Metadata..."})}),o&&(n.data&&d.jsx(x.ListItem,{dense:!0,disablePadding:!0,children:d.jsx(x.ListItemText,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:n.data.description})})||d.jsxs(x.ListItem,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[d.jsx(Ep,{sx:{color:"grey.600",mr:"10px"}}),d.jsx(x.ListItemText,{primary:"No package manifest"})]})),a&&d.jsx(Pt,{error:i,context:`${e} > ${t} > ${r}`})]})})]})})}const jS=new jd(new ct);function ES({connection:e}){return d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{children:d.jsx(x.Typography,{variant:"body2",children:e.name})}),d.jsx(x.TableCell,{children:d.jsx(x.Typography,{variant:"body2",children:e.type})})]},e.name)}function RS(){const{projectName:e}=Ft(),{data:t,isSuccess:r,isError:n,error:o}=It({queryKey:["connections",e],queryFn:a=>jS.listConnections(e,a)});return d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),d.jsx(x.Divider,{}),d.jsxs(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!r&&!n&&d.jsx(x.Typography,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),r&&t.data.length>0&&d.jsx(x.Table,{size:"small",children:d.jsxs(x.TableBody,{children:[d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{children:d.jsx(x.Typography,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),d.jsx(x.TableCell,{children:d.jsx(x.Typography,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),t.data.map(a=>d.jsx(ES,{connection:a},a.name))]})}),r&&t.data.length===0&&d.jsx(x.Typography,{variant:"body2",children:"No Connections"}),n&&d.jsx(Pt,{error:o,context:`${e} > Connections`})]})]})})}const TS=new Mb(new ct);function NS(){const{projectName:e,packageName:t,versionId:r}=Ft(),[n,o]=_.useState(!1),[a,i]=_.useState(null),s=g=>{i(g),o(!0)},l=()=>{o(!1),i(null)},{data:c,isError:u,error:p,isSuccess:h}=It({queryKey:["databases",e,t,r],queryFn:g=>TS.listDatabases(e,t,r,g)}),f=g=>g>=1024*1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} T`:g>=1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} G`:g>=1024*1024?`${(g/(1024*1024)).toFixed(2)} M`:`${(g/1024).toFixed(2)} K`;return d.jsxs(d.Fragment,{children:[d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),d.jsx(x.Divider,{}),d.jsxs(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!h&&!u&&d.jsx(zt,{text:"Fetching Databases..."}),u&&d.jsx(Pt,{error:p,context:`${e} > ${t} > Databases`}),h&&c.data.length>0&&d.jsxs(x.Table,{size:"small",children:[d.jsx(x.TableHead,{children:d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{children:"Name"}),d.jsx(x.TableCell,{align:"right",children:"Rows"})]})}),d.jsx(x.TableBody,{children:c.data.map(g=>d.jsxs(x.TableRow,{onClick:()=>s(g),sx:{cursor:"pointer"},children:[d.jsx(x.TableCell,{component:"th",scope:"row",children:g.path}),d.jsx(x.TableCell,{align:"right",children:f(g.info.rowCount)})]},g.path))})]}),h&&c.data.length===0&&d.jsx(x.Typography,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),d.jsxs(x.Dialog,{open:n,onClose:l,maxWidth:"sm",fullWidth:!0,children:[d.jsx(x.DialogTitle,{children:a?.path}),d.jsx(x.DialogContent,{children:a?.info?.columns&&d.jsx(x.TableContainer,{children:d.jsxs(x.Table,{size:"small",children:[d.jsx(x.TableHead,{children:d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{children:"Column"}),d.jsx(x.TableCell,{children:"Type"})]})}),d.jsx(x.TableBody,{children:a.info.columns.map(g=>d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{component:"th",scope:"row",children:g.name}),d.jsx(x.TableCell,{children:g.type})]},g.name))})]})})})]})]})}function mr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y.apply(null,arguments)}function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ms.apply(null,arguments)}function Rp(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},fs(e,t)}function Tp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t)}const nu={disabled:!1},Fa=_.createContext(null);var MS=function(e){return e.scrollTop},lo="unmounted",qr="exited",Fr="entering",kn="entered",gs="exiting",br=function(e){Tp(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=qr,a.appearStatus=Fr):l=kn:n.unmountOnExit||n.mountOnEnter?l=lo:l=qr,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(n,o){var a=n.in;return a&&o.status===lo?{status:qr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var o=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==Fr&&a!==kn&&(o=Fr):(a===Fr||a===kn)&&(o=gs)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,o,a,i;return o=a=i=n,n!=null&&typeof n!="number"&&(o=n.exit,a=n.enter,i=n.appear!==void 0?n.appear:a),{exit:o,enter:a,appear:i}},r.updateStatus=function(n,o){if(n===void 0&&(n=!1),o!==null)if(this.cancelNextCallback(),o===Fr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ro.findDOMNode(this);a&&MS(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qr&&this.setState({status:lo})},r.performEnter=function(n){var o=this,a=this.props.enter,i=this.context?this.context.isMounting:n,s=this.props.nodeRef?[i]:[ro.findDOMNode(this),i],l=s[0],c=s[1],u=this.getTimeouts(),p=i?u.appear:u.enter;if(!n&&!a||nu.disabled){this.safeSetState({status:kn},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Fr},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:kn},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var n=this,o=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:ro.findDOMNode(this);if(!o||nu.disabled){this.safeSetState({status:qr},function(){n.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:gs},function(){n.props.onExiting(i),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:qr},function(){n.props.onExited(i)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,o){o=this.setNextCallback(o),this.setState(n,o)},r.setNextCallback=function(n){var o=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,o.nextCallback=null,n(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(n,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:ro.findDOMNode(this),i=n==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===lo)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var i=Rp(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Fa.Provider,{value:null},typeof a=="function"?a(n,i):_.cloneElement(_.Children.only(a),i))},t}(_.Component);br.contextType=Fa;br.propTypes={};function yn(){}br.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yn,onEntering:yn,onEntered:yn,onExit:yn,onExiting:yn,onExited:yn};br.UNMOUNTED=lo;br.EXITED=qr;br.ENTERING=Fr;br.ENTERED=kn;br.EXITING=gs;function AS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pl(e,t){var r=function(o){return t&&_.isValidElement(o)?t(o):o},n=Object.create(null);return e&&_.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function _S(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(n[l])for(i=0;i<n[l].length;i++){var c=n[l][i];s[n[l][i]]=r(c)}s[l]=r(l)}for(i=0;i<o.length;i++)s[o[i]]=r(o[i]);return s}function Vr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function OS(e,t){return pl(e.children,function(r){return _.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Vr(r,"appear",e),enter:Vr(r,"enter",e),exit:Vr(r,"exit",e)})})}function LS(e,t,r){var n=pl(e.children),o=_S(t,n);return Object.keys(o).forEach(function(a){var i=o[a];if(_.isValidElement(i)){var s=a in t,l=a in n,c=t[a],u=_.isValidElement(c)&&!c.props.in;l&&(!s||u)?o[a]=_.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:Vr(i,"exit",e),enter:Vr(i,"enter",e)}):!l&&s&&!u?o[a]=_.cloneElement(i,{in:!1}):l&&s&&_.isValidElement(c)&&(o[a]=_.cloneElement(i,{onExited:r.bind(null,i),in:c.props.in,exit:Vr(i,"exit",e),enter:Vr(i,"enter",e)}))}}),o}var $S=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},DS={component:"div",childFactory:function(e){return e}},hl=function(e){Tp(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=a.handleExited.bind(AS(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(n,o){var a=o.children,i=o.handleExited,s=o.firstRender;return{children:s?OS(n,i):LS(n,a,i),firstRender:!1}},r.handleExited=function(n,o){var a=pl(this.props.children);n.key in a||(n.props.onExited&&n.props.onExited(o),this.mounted&&this.setState(function(i){var s=ms({},i.children);return delete s[n.key],{children:s}}))},r.render=function(){var n=this.props,o=n.component,a=n.childFactory,i=Rp(n,["component","childFactory"]),s=this.state.contextValue,l=$S(this.state.children).map(a);return delete i.appear,delete i.enter,delete i.exit,o===null?_.createElement(Fa.Provider,{value:s},l):_.createElement(Fa.Provider,{value:s},_.createElement(o,i,l))},t}(_.Component);hl.propTypes={};hl.defaultProps=DS;const ou={};function Np(e,t){const r=S.useRef(ou);return r.current===ou&&(r.current=e(t)),r}const BS=[];function qS(e){S.useEffect(e,BS)}class ml{constructor(){T(this,"currentId",null);T(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});T(this,"disposeEffect",()=>this.clear)}static create(){return new ml}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Mp(){const e=Np(ml.create).current;return qS(e.disposeEffect),e}function au(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function FS(e){return Ln("MuiCollapse",e)}Dn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const zS=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Mo(n,FS,r)},US=Ee("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(rl(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),WS=Ee("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),HS=Ee("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Po=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiCollapse"}),{addEndListener:n,children:o,className:a,collapsedSize:i="0px",component:s,easing:l,in:c,onEnter:u,onEntered:p,onEntering:h,onExit:f,onExited:g,onExiting:y,orientation:v="vertical",style:b,timeout:C=wd.standard,TransitionComponent:w=br,...k}=r,j={...r,orientation:v,collapsedSize:i},P=zS(j),B=pb(),F=Mp(),L=S.useRef(null),m=S.useRef(),R=typeof i=="number"?`${i}px`:i,D=v==="horizontal",$=D?"width":"height",H=S.useRef(null),X=Ra(t,H),V=q=>oe=>{if(q){const Pe=H.current;oe===void 0?q(Pe):q(Pe,oe)}},ce=()=>L.current?L.current[D?"clientWidth":"clientHeight"]:0,K=V((q,oe)=>{L.current&&D&&(L.current.style.position="absolute"),q.style[$]=R,u&&u(q,oe)}),se=V((q,oe)=>{const Pe=ce();L.current&&D&&(L.current.style.position="");const{duration:it,easing:ht}=au({style:b,timeout:C,easing:l},{mode:"enter"});if(C==="auto"){const Me=B.transitions.getAutoHeightDuration(Pe);q.style.transitionDuration=`${Me}ms`,m.current=Me}else q.style.transitionDuration=typeof it=="string"?it:`${it}ms`;q.style[$]=`${Pe}px`,q.style.transitionTimingFunction=ht,h&&h(q,oe)}),Z=V((q,oe)=>{q.style[$]="auto",p&&p(q,oe)}),J=V(q=>{q.style[$]=`${ce()}px`,f&&f(q)}),W=V(g),O=V(q=>{const oe=ce(),{duration:Pe,easing:it}=au({style:b,timeout:C,easing:l},{mode:"exit"});if(C==="auto"){const ht=B.transitions.getAutoHeightDuration(oe);q.style.transitionDuration=`${ht}ms`,m.current=ht}else q.style.transitionDuration=typeof Pe=="string"?Pe:`${Pe}ms`;q.style[$]=R,q.style.transitionTimingFunction=it,y&&y(q)});return d.jsx(w,{in:c,onEnter:K,onEntered:Z,onEntering:se,onExit:J,onExited:W,onExiting:O,addEndListener:q=>{C==="auto"&&F.start(m.current||0,q),n&&n(H.current,q)},nodeRef:H,timeout:C==="auto"?null:C,...k,children:(q,{ownerState:oe,...Pe})=>d.jsx(US,{as:s,className:qe(P.root,a,{entered:P.entered,exited:!c&&R==="0px"&&P.hidden}[q]),style:{[D?"minWidth":"minHeight"]:R,...b},ref:X,ownerState:{...j,state:q},...Pe,children:d.jsx(WS,{ownerState:{...j,state:q},className:P.wrapper,ref:L,children:d.jsx(HS,{ownerState:{...j,state:q},className:P.wrapperInner,children:o})})})})});Po&&(Po.muiSupportAuto=!0);const VS=S.createContext(void 0);function GS(){return S.useContext(VS)}function iu(e){try{return e.matches(":focus-visible")}catch{}return!1}class za{constructor(){T(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new za}static use(){const t=Np(za.create).current,[r,n]=S.useState(!1);return t.shouldMount=r,t.setShouldMount=n,S.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=QS(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function KS(){return za.use()}function QS(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function YS(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,p]=S.useState(!1),h=qe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=qe(r.child,u&&r.childLeaving,n&&r.childPulsate);return!s&&!u&&p(!0),S.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),d.jsx("span",{className:h,style:f,children:d.jsx("span",{className:g})})}const At=Dn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ys=550,JS=80,XS=fe.keyframes`
73
+ `)}static newNotebook(t,r){return new fo(t,r,void 0)}static loadNotebook(t,r,n){let o;try{const a=t.getNotebook(r,n);a&&(o=JSON.parse(a))}catch{o={models:[],cells:[],notebookPath:n}}return new fo(t,r,o)}}const Ep=tt(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),PS=new Rd(new ct);function IS(){const{projectName:e,packageName:t,versionId:r}=Ft(),{data:n,isSuccess:o,isError:a,error:i}=It({queryKey:["package",e,t,r],queryFn:s=>PS.getPackage(e,t,r,!1,s)});return d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Package Config"}),d.jsx(x.Divider,{}),d.jsx(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:d.jsxs(x.List,{dense:!0,disablePadding:!0,children:[d.jsx(x.ListItem,{dense:!0,disablePadding:!0,children:d.jsx(x.ListItemText,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!o&&!a&&d.jsx(x.ListItem,{children:d.jsx(zt,{text:"Fetching Package Metadata..."})}),o&&(n.data&&d.jsx(x.ListItem,{dense:!0,disablePadding:!0,children:d.jsx(x.ListItemText,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:n.data.description})})||d.jsxs(x.ListItem,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[d.jsx(Ep,{sx:{color:"grey.600",mr:"10px"}}),d.jsx(x.ListItemText,{primary:"No package manifest"})]})),a&&d.jsx(Pt,{error:i,context:`${e} > ${t} > ${r}`})]})})]})})}const jS=new jd(new ct);function ES({connection:e}){return d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{children:d.jsx(x.Typography,{variant:"body2",children:e.name})}),d.jsx(x.TableCell,{children:d.jsx(x.Typography,{variant:"body2",children:e.type})})]},e.name)}function RS(){const{projectName:e}=Ft(),{data:t,isSuccess:r,isError:n,error:o}=It({queryKey:["connections",e],queryFn:a=>jS.listConnections(e,a)});return d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),d.jsx(x.Divider,{}),d.jsxs(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!r&&!n&&d.jsx(x.Typography,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),r&&t.data.length>0&&d.jsx(x.Table,{size:"small",children:d.jsxs(x.TableBody,{children:[d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{children:d.jsx(x.Typography,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),d.jsx(x.TableCell,{children:d.jsx(x.Typography,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),t.data.map(a=>d.jsx(ES,{connection:a},a.name))]})}),r&&t.data.length===0&&d.jsx(x.Typography,{variant:"body2",children:"No Connections"}),n&&d.jsx(Pt,{error:o,context:`${e} > Connections`})]})]})})}const TS=new Mb(new ct);function NS(){const{projectName:e,packageName:t,versionId:r}=Ft(),[n,o]=_.useState(!1),[a,i]=_.useState(null),s=g=>{i(g),o(!0)},l=()=>{o(!1),i(null)},{data:c,isError:u,error:p,isSuccess:h}=It({queryKey:["databases",e,t,r],queryFn:g=>TS.listDatabases(e,t,r,g)}),f=g=>g>=1024*1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} T`:g>=1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} G`:g>=1024*1024?`${(g/(1024*1024)).toFixed(2)} M`:`${(g/1024).toFixed(2)} K`;return d.jsxs(d.Fragment,{children:[d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),d.jsx(x.Divider,{}),d.jsxs(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!h&&!u&&d.jsx(zt,{text:"Fetching Databases..."}),u&&d.jsx(Pt,{error:p,context:`${e} > ${t} > Databases`}),h&&c.data.length>0&&d.jsxs(x.Table,{size:"small",children:[d.jsx(x.TableHead,{children:d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{children:"Name"}),d.jsx(x.TableCell,{align:"right",children:"Rows"})]})}),d.jsx(x.TableBody,{children:c.data.map(g=>d.jsxs(x.TableRow,{onClick:()=>s(g),sx:{cursor:"pointer"},children:[d.jsx(x.TableCell,{component:"th",scope:"row",children:g.path}),d.jsx(x.TableCell,{align:"right",children:f(g.info.rowCount)})]},g.path))})]}),h&&c.data.length===0&&d.jsx(x.Typography,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),d.jsxs(x.Dialog,{open:n,onClose:l,maxWidth:"sm",fullWidth:!0,children:[d.jsx(x.DialogTitle,{children:a?.path}),d.jsx(x.DialogContent,{children:a?.info?.columns&&d.jsx(x.TableContainer,{children:d.jsxs(x.Table,{size:"small",children:[d.jsx(x.TableHead,{children:d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{children:"Column"}),d.jsx(x.TableCell,{children:"Type"})]})}),d.jsx(x.TableBody,{children:a.info.columns.map(g=>d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{component:"th",scope:"row",children:g.name}),d.jsx(x.TableCell,{children:g.type})]},g.name))})]})})})]})]})}function mr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y.apply(null,arguments)}function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ms.apply(null,arguments)}function Rp(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},fs(e,t)}function Tp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t)}const nu={disabled:!1},Fa=_.createContext(null);var MS=function(e){return e.scrollTop},lo="unmounted",qr="exited",Fr="entering",Pn="entered",gs="exiting",br=function(e){Tp(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=qr,a.appearStatus=Fr):l=Pn:n.unmountOnExit||n.mountOnEnter?l=lo:l=qr,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(n,o){var a=n.in;return a&&o.status===lo?{status:qr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var o=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==Fr&&a!==Pn&&(o=Fr):(a===Fr||a===Pn)&&(o=gs)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,o,a,i;return o=a=i=n,n!=null&&typeof n!="number"&&(o=n.exit,a=n.enter,i=n.appear!==void 0?n.appear:a),{exit:o,enter:a,appear:i}},r.updateStatus=function(n,o){if(n===void 0&&(n=!1),o!==null)if(this.cancelNextCallback(),o===Fr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ro.findDOMNode(this);a&&MS(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qr&&this.setState({status:lo})},r.performEnter=function(n){var o=this,a=this.props.enter,i=this.context?this.context.isMounting:n,s=this.props.nodeRef?[i]:[ro.findDOMNode(this),i],l=s[0],c=s[1],u=this.getTimeouts(),p=i?u.appear:u.enter;if(!n&&!a||nu.disabled){this.safeSetState({status:Pn},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Fr},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:Pn},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var n=this,o=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:ro.findDOMNode(this);if(!o||nu.disabled){this.safeSetState({status:qr},function(){n.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:gs},function(){n.props.onExiting(i),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:qr},function(){n.props.onExited(i)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,o){o=this.setNextCallback(o),this.setState(n,o)},r.setNextCallback=function(n){var o=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,o.nextCallback=null,n(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(n,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:ro.findDOMNode(this),i=n==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===lo)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var i=Rp(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Fa.Provider,{value:null},typeof a=="function"?a(n,i):_.cloneElement(_.Children.only(a),i))},t}(_.Component);br.contextType=Fa;br.propTypes={};function bn(){}br.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bn,onEntering:bn,onEntered:bn,onExit:bn,onExiting:bn,onExited:bn};br.UNMOUNTED=lo;br.EXITED=qr;br.ENTERING=Fr;br.ENTERED=Pn;br.EXITING=gs;function AS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pl(e,t){var r=function(o){return t&&_.isValidElement(o)?t(o):o},n=Object.create(null);return e&&_.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function _S(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(n[l])for(i=0;i<n[l].length;i++){var c=n[l][i];s[n[l][i]]=r(c)}s[l]=r(l)}for(i=0;i<o.length;i++)s[o[i]]=r(o[i]);return s}function Vr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function OS(e,t){return pl(e.children,function(r){return _.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Vr(r,"appear",e),enter:Vr(r,"enter",e),exit:Vr(r,"exit",e)})})}function LS(e,t,r){var n=pl(e.children),o=_S(t,n);return Object.keys(o).forEach(function(a){var i=o[a];if(_.isValidElement(i)){var s=a in t,l=a in n,c=t[a],u=_.isValidElement(c)&&!c.props.in;l&&(!s||u)?o[a]=_.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:Vr(i,"exit",e),enter:Vr(i,"enter",e)}):!l&&s&&!u?o[a]=_.cloneElement(i,{in:!1}):l&&s&&_.isValidElement(c)&&(o[a]=_.cloneElement(i,{onExited:r.bind(null,i),in:c.props.in,exit:Vr(i,"exit",e),enter:Vr(i,"enter",e)}))}}),o}var $S=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},DS={component:"div",childFactory:function(e){return e}},hl=function(e){Tp(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=a.handleExited.bind(AS(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(n,o){var a=o.children,i=o.handleExited,s=o.firstRender;return{children:s?OS(n,i):LS(n,a,i),firstRender:!1}},r.handleExited=function(n,o){var a=pl(this.props.children);n.key in a||(n.props.onExited&&n.props.onExited(o),this.mounted&&this.setState(function(i){var s=ms({},i.children);return delete s[n.key],{children:s}}))},r.render=function(){var n=this.props,o=n.component,a=n.childFactory,i=Rp(n,["component","childFactory"]),s=this.state.contextValue,l=$S(this.state.children).map(a);return delete i.appear,delete i.enter,delete i.exit,o===null?_.createElement(Fa.Provider,{value:s},l):_.createElement(Fa.Provider,{value:s},_.createElement(o,i,l))},t}(_.Component);hl.propTypes={};hl.defaultProps=DS;const ou={};function Np(e,t){const r=S.useRef(ou);return r.current===ou&&(r.current=e(t)),r}const BS=[];function qS(e){S.useEffect(e,BS)}class ml{constructor(){T(this,"currentId",null);T(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});T(this,"disposeEffect",()=>this.clear)}static create(){return new ml}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Mp(){const e=Np(ml.create).current;return qS(e.disposeEffect),e}function au(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function FS(e){return Ln("MuiCollapse",e)}Dn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const zS=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Mo(n,FS,r)},US=Ee("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(rl(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),WS=Ee("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),HS=Ee("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Po=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiCollapse"}),{addEndListener:n,children:o,className:a,collapsedSize:i="0px",component:s,easing:l,in:c,onEnter:u,onEntered:p,onEntering:h,onExit:f,onExited:g,onExiting:y,orientation:v="vertical",style:b,timeout:C=wd.standard,TransitionComponent:w=br,...k}=r,j={...r,orientation:v,collapsedSize:i},P=zS(j),B=pb(),F=Mp(),L=S.useRef(null),m=S.useRef(),R=typeof i=="number"?`${i}px`:i,D=v==="horizontal",$=D?"width":"height",H=S.useRef(null),X=Ra(t,H),V=q=>oe=>{if(q){const Pe=H.current;oe===void 0?q(Pe):q(Pe,oe)}},ce=()=>L.current?L.current[D?"clientWidth":"clientHeight"]:0,K=V((q,oe)=>{L.current&&D&&(L.current.style.position="absolute"),q.style[$]=R,u&&u(q,oe)}),se=V((q,oe)=>{const Pe=ce();L.current&&D&&(L.current.style.position="");const{duration:it,easing:ht}=au({style:b,timeout:C,easing:l},{mode:"enter"});if(C==="auto"){const Me=B.transitions.getAutoHeightDuration(Pe);q.style.transitionDuration=`${Me}ms`,m.current=Me}else q.style.transitionDuration=typeof it=="string"?it:`${it}ms`;q.style[$]=`${Pe}px`,q.style.transitionTimingFunction=ht,h&&h(q,oe)}),Z=V((q,oe)=>{q.style[$]="auto",p&&p(q,oe)}),J=V(q=>{q.style[$]=`${ce()}px`,f&&f(q)}),W=V(g),O=V(q=>{const oe=ce(),{duration:Pe,easing:it}=au({style:b,timeout:C,easing:l},{mode:"exit"});if(C==="auto"){const ht=B.transitions.getAutoHeightDuration(oe);q.style.transitionDuration=`${ht}ms`,m.current=ht}else q.style.transitionDuration=typeof Pe=="string"?Pe:`${Pe}ms`;q.style[$]=R,q.style.transitionTimingFunction=it,y&&y(q)});return d.jsx(w,{in:c,onEnter:K,onEntered:Z,onEntering:se,onExit:J,onExited:W,onExiting:O,addEndListener:q=>{C==="auto"&&F.start(m.current||0,q),n&&n(H.current,q)},nodeRef:H,timeout:C==="auto"?null:C,...k,children:(q,{ownerState:oe,...Pe})=>d.jsx(US,{as:s,className:qe(P.root,a,{entered:P.entered,exited:!c&&R==="0px"&&P.hidden}[q]),style:{[D?"minWidth":"minHeight"]:R,...b},ref:X,ownerState:{...j,state:q},...Pe,children:d.jsx(WS,{ownerState:{...j,state:q},className:P.wrapper,ref:L,children:d.jsx(HS,{ownerState:{...j,state:q},className:P.wrapperInner,children:o})})})})});Po&&(Po.muiSupportAuto=!0);const VS=S.createContext(void 0);function GS(){return S.useContext(VS)}function iu(e){try{return e.matches(":focus-visible")}catch{}return!1}class za{constructor(){T(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new za}static use(){const t=Np(za.create).current,[r,n]=S.useState(!1);return t.shouldMount=r,t.setShouldMount=n,S.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=QS(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function KS(){return za.use()}function QS(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function YS(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,p]=S.useState(!1),h=qe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=qe(r.child,u&&r.childLeaving,n&&r.childPulsate);return!s&&!u&&p(!0),S.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),d.jsx("span",{className:h,style:f,children:d.jsx("span",{className:g})})}const At=Dn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ys=550,JS=80,XS=fe.keyframes`
74
74
  0% {
75
75
  transform: scale(0);
76
76
  opacity: 0.1;
@@ -143,12 +143,12 @@ import {${t.sourceName}}" from '${t.modelPath}'"
143
143
  animation-iteration-count: infinite;
144
144
  animation-delay: 200ms;
145
145
  }
146
- `,nw=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a,...i}=r,[s,l]=S.useState([]),c=S.useRef(0),u=S.useRef(null);S.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const p=S.useRef(!1),h=Mp(),f=S.useRef(null),g=S.useRef(null),y=S.useCallback(w=>{const{pulsate:k,rippleX:j,rippleY:P,rippleSize:B,cb:F}=w;l(L=>[...L,d.jsx(rw,{classes:{ripple:qe(o.ripple,At.ripple),rippleVisible:qe(o.rippleVisible,At.rippleVisible),ripplePulsate:qe(o.ripplePulsate,At.ripplePulsate),child:qe(o.child,At.child),childLeaving:qe(o.childLeaving,At.childLeaving),childPulsate:qe(o.childPulsate,At.childPulsate)},timeout:ys,pulsate:k,rippleX:j,rippleY:P,rippleSize:B},c.current)]),c.current+=1,u.current=F},[o]),v=S.useCallback((w={},k={},j=()=>{})=>{const{pulsate:P=!1,center:B=n||k.pulsate,fakeElement:F=!1}=k;if(w?.type==="mousedown"&&p.current){p.current=!1;return}w?.type==="touchstart"&&(p.current=!0);const L=F?null:g.current,m=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,D,$;if(B||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)R=Math.round(m.width/2),D=Math.round(m.height/2);else{const{clientX:H,clientY:X}=w.touches&&w.touches.length>0?w.touches[0]:w;R=Math.round(H-m.left),D=Math.round(X-m.top)}if(B)$=Math.sqrt((2*m.width**2+m.height**2)/3),$%2===0&&($+=1);else{const H=Math.max(Math.abs((L?L.clientWidth:0)-R),R)*2+2,X=Math.max(Math.abs((L?L.clientHeight:0)-D),D)*2+2;$=Math.sqrt(H**2+X**2)}w?.touches?f.current===null&&(f.current=()=>{y({pulsate:P,rippleX:R,rippleY:D,rippleSize:$,cb:j})},h.start(JS,()=>{f.current&&(f.current(),f.current=null)})):y({pulsate:P,rippleX:R,rippleY:D,rippleSize:$,cb:j})},[n,y,h]),b=S.useCallback(()=>{v({},{pulsate:!0})},[v]),C=S.useCallback((w,k)=>{if(h.clear(),w?.type==="touchend"&&f.current){f.current(),f.current=null,h.start(0,()=>{C(w,k)});return}f.current=null,l(j=>j.length>0?j.slice(1):j),u.current=k},[h]);return S.useImperativeHandle(t,()=>({pulsate:b,start:v,stop:C}),[b,v,C]),d.jsx(tw,{className:qe(At.root,o.root,a),ref:g,...i,children:d.jsx(hl,{component:null,exit:!0,children:s})})});function ow(e){return Ln("MuiButtonBase",e)}const aw=Dn("MuiButtonBase",["root","disabled","focusVisible"]),iw=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Mo({root:["root",t&&"disabled",r&&"focusVisible"]},ow,o);return r&&n&&(a.root+=` ${n}`),a},sw=Ee("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lw=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:f="a",onBlur:g,onClick:y,onContextMenu:v,onDragLeave:b,onFocus:C,onFocusVisible:w,onKeyDown:k,onKeyUp:j,onMouseDown:P,onMouseLeave:B,onMouseUp:F,onTouchEnd:L,onTouchMove:m,onTouchStart:R,tabIndex:D=0,TouchRippleProps:$,touchRippleRef:H,type:X,...V}=r,ce=S.useRef(null),K=KS(),se=Ra(K.ref,H),[Z,J]=S.useState(!1);l&&Z&&J(!1),S.useImperativeHandle(n,()=>({focusVisible:()=>{J(!0),ce.current.focus()}}),[]);const W=K.shouldMount&&!c&&!l;S.useEffect(()=>{Z&&p&&!c&&K.pulsate()},[c,p,Z,K]);const O=ir(K,"start",P,u),q=ir(K,"stop",v,u),oe=ir(K,"stop",b,u),Pe=ir(K,"stop",F,u),it=ir(K,"stop",ae=>{Z&&ae.preventDefault(),B&&B(ae)},u),ht=ir(K,"start",R,u),Me=ir(K,"stop",L,u),Ae=ir(K,"stop",m,u),jt=ir(K,"stop",ae=>{iu(ae.target)||J(!1),g&&g(ae)},!1),xr=fa(ae=>{ce.current||(ce.current=ae.currentTarget),iu(ae.target)&&(J(!0),w&&w(ae)),C&&C(ae)}),Wt=()=>{const ae=ce.current;return s&&s!=="button"&&!(ae.tagName==="A"&&ae.href)},dt=fa(ae=>{p&&!ae.repeat&&Z&&ae.key===" "&&K.stop(ae,()=>{K.start(ae)}),ae.target===ae.currentTarget&&Wt()&&ae.key===" "&&ae.preventDefault(),k&&k(ae),ae.target===ae.currentTarget&&Wt()&&ae.key==="Enter"&&!l&&(ae.preventDefault(),y&&y(ae))}),Lr=fa(ae=>{p&&ae.key===" "&&Z&&!ae.defaultPrevented&&K.stop(ae,()=>{K.pulsate(ae)}),j&&j(ae),y&&ae.target===ae.currentTarget&&Wt()&&ae.key===" "&&!ae.defaultPrevented&&y(ae)});let Qt=s;Qt==="button"&&(V.href||V.to)&&(Qt=f);const ot={};Qt==="button"?(ot.type=X===void 0?"button":X,ot.disabled=l):(!V.href&&!V.to&&(ot.role="button"),l&&(ot["aria-disabled"]=l));const Ht=Ra(t,ce),vr={...r,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:p,tabIndex:D,focusVisible:Z},Sr=iw(vr);return d.jsxs(sw,{as:Qt,className:qe(Sr.root,i),ownerState:vr,onBlur:jt,onClick:y,onContextMenu:q,onFocus:xr,onKeyDown:dt,onKeyUp:Lr,onMouseDown:O,onMouseLeave:it,onMouseUp:Pe,onDragLeave:oe,onTouchEnd:Me,onTouchMove:Ae,onTouchStart:ht,ref:Ht,tabIndex:l?-1:D,type:X,...ot,...V,children:[a,W?d.jsx(nw,{ref:se,center:o,...$}):null]})});function ir(e,t,r,n=!1){return fa(o=>(r&&r(o),n||e[t](o),!0))}function cw(e){return Ln("PrivateSwitchBase",e)}Dn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function uw(e){return typeof e=="string"}function dw(e,t,r){return e===void 0||uw(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function pw(e,t,r){return typeof e=="function"?e(t,r):e}function hw(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function su(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function mw(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const f=qe(r?.className,a,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},y={...r,...o,...n};return f.length>0&&(y.className=f),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=hw({...o,...n}),s=su(n),l=su(o),c=t(i),u=qe(c?.className,r?.className,a,o?.className,n?.className),p={...c?.style,...r?.style,...o?.style,...n?.style},h={...c,...r,...l,...s};return u.length>0&&(h.className=u),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}function bs(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:p={[e]:void 0},...h}=a,f=u[e]||n,g=pw(p[e],o),{props:{component:y,...v},internalRef:b}=mw({className:r,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),C=Ra(b,g?.ref,t.ref),w=e==="root"?y||c:y,k=dw(f,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...v,...w&&!s&&{as:w},...w&&s&&{component:w},ref:C},o);return[f,k]}const fw=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${Gt(o)}`],input:["input"]};return Mo(a,cw,t)},gw=Ee(lw)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),yw=Ee("input",{shouldForwardProp:tl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bw=S.forwardRef(function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,defaultChecked:a,disabled:i,disableFocusRipple:s=!1,edge:l=!1,icon:c,id:u,inputProps:p,inputRef:h,name:f,onBlur:g,onChange:y,onFocus:v,readOnly:b,required:C=!1,tabIndex:w,type:k,value:j,slots:P={},slotProps:B={},...F}=e,[L,m]=Pb({controlled:n,default:!!a}),R=GS(),D=q=>{v&&v(q),R&&R.onFocus&&R.onFocus(q)},$=q=>{g&&g(q),R&&R.onBlur&&R.onBlur(q)},H=q=>{if(q.nativeEvent.defaultPrevented)return;const oe=q.target.checked;m(oe),y&&y(q,oe)};let X=i;R&&typeof X>"u"&&(X=R.disabled);const V=k==="checkbox"||k==="radio",ce={...e,checked:L,disabled:X,disableFocusRipple:s,edge:l},K=fw(ce),se={slots:P,slotProps:{input:p,...B}},[Z,J]=bs("root",{ref:t,elementType:gw,className:K.root,shouldForwardComponentProp:!0,externalForwardedProps:{...se,component:"span",...F},getSlotProps:q=>({...q,onFocus:oe=>{q.onFocus?.(oe),D(oe)},onBlur:oe=>{q.onBlur?.(oe),$(oe)}}),ownerState:ce,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:X,role:void 0,tabIndex:null}}),[W,O]=bs("input",{ref:h,elementType:yw,className:K.input,externalForwardedProps:se,getSlotProps:q=>({...q,onChange:oe=>{q.onChange?.(oe),H(oe)}}),ownerState:ce,additionalProps:{autoFocus:r,checked:n,defaultChecked:a,disabled:X,id:V?u:void 0,name:f,readOnly:b,required:C,tabIndex:w,type:k,...k==="checkbox"&&j===void 0?{}:{value:j}}});return d.jsxs(Z,{...J,children:[d.jsx(W,{...O}),L?o:c]})}),xw=tt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),vw=tt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Sw=tt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function ww(e){return Ln("MuiCheckbox",e)}const Ui=Dn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function Cw(e){return typeof e.main=="string"}function kw(e,t=[]){if(!Cw(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function lu(e=[]){return([,t])=>t&&kw(t,e)}const Pw=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${Gt(n)}`,`size${Gt(o)}`]},i=Mo(a,ww,t);return{...t,...i}},Iw=Ee(bw,{shouldForwardProp:e=>tl(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Gt(r.size)}`],r.color!=="default"&&t[`color${Gt(r.color)}`]]}})(rl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ts(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(lu()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ts(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(lu()).map(([t])=>({props:{color:t},style:{[`&.${Ui.checked}, &.${Ui.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),jw=d.jsx(vw,{}),Ew=d.jsx(xw,{}),Rw=d.jsx(Sw,{}),Ap=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiCheckbox"}),{checkedIcon:n=jw,color:o="primary",icon:a=Ew,indeterminate:i=!1,indeterminateIcon:s=Rw,inputProps:l,size:c="medium",disableRipple:u=!1,className:p,slots:h={},slotProps:f={},...g}=r,y=i?s:a,v=i?s:n,b={...r,disableRipple:u,color:o,indeterminate:i,size:c},C=Pw(b),w=f.input??l,[k,j]=bs("root",{ref:t,elementType:Iw,className:qe(C.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:f,...g},ownerState:b,additionalProps:{type:"checkbox",icon:S.cloneElement(y,{fontSize:y.props.fontSize??c}),checkedIcon:S.cloneElement(v,{fontSize:v.props.fontSize??c}),disableRipple:u,slots:h,slotProps:{input:jb(typeof w=="function"?w(b):w,{"data-indeterminate":i})}}});return d.jsx(k,{...j,classes:C})});function _n(...e){const t=S.useRef(void 0),r=S.useCallback(n=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(n);return typeof s=="function"?s:()=>{i(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return S.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Tw(e){return typeof e=="string"}function Nw(e,t,r){return e===void 0||Tw(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Nt(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function cu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Mw(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const f=qe(r?.className,a,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},y={...r,...o,...n};return f.length>0&&(y.className=f),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=Nt({...o,...n}),s=cu(n),l=cu(o),c=t(i),u=qe(c?.className,r?.className,a,o?.className,n?.className),p={...c?.style,...r?.style,...o?.style,...n?.style},h={...c,...r,...l,...s};return u.length>0&&(h.className=u),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}function ur(e,t,r){return typeof e=="function"?e(t,r):e}function Gr(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:ur(r,n),{props:s,internalRef:l}=Mw({...a,externalSlotProps:i}),c=_n(l,i?.ref,e.additionalProps?.ref);return Nw(t,{...s,ref:c},n)}function _p(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(i+=" "+r[c]))}n[o]=i}return n}function Op(e){return dS}const Lp=S.createContext(null);function Aw(e){const{value:t,children:r}=e;return d.jsx(Lp.Provider,{value:t,children:t.wrapRoot({children:r,instance:t.instance})})}const an=()=>{const e=S.useContext(Lp);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
147
- `));return e},_w=({props:e})=>{const{instance:t}=an(),{label:r,itemId:n}=e,[o,a]=S.useState(r),i=t.isItemBeingEdited(n);return S.useEffect(()=>{i||a(r)},[i,r]),{propsEnhancers:{labelInput:({externalEventHandlers:s,interactions:l})=>t.isItemEditable(n)?{value:o??"","data-element":"labelInput",onChange:c=>{s.onChange?.(c),a(c.target.value)},onKeyDown:c=>{if(s.onKeyDown?.(c),c.defaultMuiPrevented)return;const u=c.target;c.key==="Enter"&&u.value?l.handleSaveItemLabel(c,u.value):c.key==="Escape"&&l.handleCancelItemLabelEditing(c)},onBlur:c=>{s.onBlur?.(c),!c.defaultMuiPrevented&&c.target.value&&l.handleSaveItemLabel(c,c.target.value)},autoFocus:!0,type:"text"}:{}}}},Dt=({instance:e,state:t,setState:r,params:n})=>{const o=S.useRef(t.editedItemId),a=p=>o.current===p,i=p=>{r(h=>Y({},h,{editedItemId:p})),o.current=p},s=p=>p===t.editedItemId,l=!!n.isItemEditable,c=p=>{if(p==null||!l)return!1;const h=e.getItem(p);return h?typeof n.isItemEditable=="function"?n.isItemEditable(h):!!n.isItemEditable:!1},u=(p,h)=>{if(!h)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",p].join(`
148
- `));r(f=>{const g=f.items.itemMetaMap[p];return g.label!==h?Y({},f,{items:Y({},f.items,{itemMetaMap:Y({},f.items.itemMetaMap,{[p]:Y({},g,{label:h})})})}):f}),n.onItemLabelChange&&n.onItemLabelChange(p,h)};return{instance:{setEditedItemId:i,isItemBeingEdited:s,updateItemLabel:u,isItemEditable:c,isTreeViewEditable:l,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:u}}};Dt.itemPlugin=_w;Dt.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const r=t?.labelEditing;return Y({},e,{isItemEditable:r?e.isItemEditable??!1:!1})};Dt.getInitialState=()=>({editedItemId:null});Dt.params={onItemLabelChange:!0,isItemEditable:!0};const Qr=(e,t)=>e.getAvailablePlugins().has(t),$p=e=>Array.isArray(e)?e.length>0&&e.some($p):!!e,Ow=({itemId:e,children:t})=>{const{instance:r,selection:{multiSelect:n},publicAPI:o}=an(),a={expandable:$p(t),expanded:r.isItemExpanded(e),focused:r.isItemFocused(e),selected:r.isItemSelected(e),disabled:r.isItemDisabled(e),editing:r?.isItemBeingEdited?r?.isItemBeingEdited(e):!1,editable:r.isItemEditable?r.isItemEditable(e):!1},i=u=>{if(a.disabled)return;a.focused||r.focusItem(u,e);const p=n&&(u.shiftKey||u.ctrlKey||u.metaKey);a.expandable&&!(p&&r.isItemExpanded(e))&&r.toggleItemExpansion(u,e)},s=u=>{a.disabled||(a.focused||r.focusItem(u,e),n&&(u.shiftKey||u.ctrlKey||u.metaKey)?u.shiftKey?r.expandSelectionRange(u,e):r.selectItem({event:u,itemId:e,keepExistingSelection:!0}):r.selectItem({event:u,itemId:e,shouldBeSelected:!0}))},l=u=>{const p=u.nativeEvent.shiftKey;n&&p?r.expandSelectionRange(u,e):r.selectItem({event:u,itemId:e,keepExistingSelection:n,shouldBeSelected:u.target.checked})},c=()=>{Qr(r,Dt)&&r.isItemEditable(e)&&(r.isItemBeingEdited(e)?r.setEditedItemId(null):r.setEditedItemId(e))};return{interactions:{handleExpansion:i,handleSelection:s,handleCheckboxSelection:l,toggleItemEditing:c,handleSaveItemLabel:(u,p)=>{Qr(r,Dt)&&r.isItemBeingEditedRef(e)&&(r.updateItemLabel(e,p),c(),r.focusItem(u,e))},handleCancelItemLabelEditing:u=>{Qr(r,Dt)&&r.isItemBeingEditedRef(e)&&(c(),r.focusItem(u,e))}},status:a,publicAPI:o}},fl=S.createContext(()=>-1),Dp=(e,t)=>{let r=t.length-1;for(;r>=0&&!e.isItemNavigable(t[r]);)r-=1;if(r!==-1)return t[r]},Bp=(e,t)=>{const r=e.getItemMeta(t),n=e.getItemOrderedChildrenIds(r.parentId),o=e.getItemIndex(t);if(o===0)return r.parentId;let a=o-1;for(;!e.isItemNavigable(n[a])&&a>=0;)a-=1;if(a===-1)return r.parentId==null?null:Bp(e,r.parentId);let i=n[a],s=Dp(e,e.getItemOrderedChildrenIds(i));for(;e.isItemExpanded(i)&&s!=null;)i=s,s=e.getItemOrderedChildrenIds(i).find(e.isItemNavigable);return i},ba=(e,t)=>{if(e.isItemExpanded(t)){const n=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(n!=null)return n}let r=e.getItemMeta(t);for(;r!=null;){const n=e.getItemOrderedChildrenIds(r.parentId),o=e.getItemIndex(r.id);if(o<n.length-1){let a=o+1;for(;!e.isItemNavigable(n[a])&&a<n.length-1;)a+=1;if(e.isItemNavigable(n[a]))return n[a]}r=e.getItemMeta(r.parentId)}return null},qp=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const r=e.getItemOrderedChildrenIds(t),n=Dp(e,r);if(n==null)return t;t=n}return t},Io=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),Fp=(e,t,r)=>{if(t===r)return[t,r];const n=e.getItemMeta(t),o=e.getItemMeta(r);if(n.parentId===o.id||o.parentId===n.id)return o.parentId===n.id?[n.id,o.id]:[o.id,n.id];const a=[n.id],i=[o.id];let s=n.parentId,l=o.parentId,c=i.indexOf(s)!==-1,u=a.indexOf(l)!==-1,p=!0,h=!0;for(;!u&&!c;)p&&(a.push(s),c=i.indexOf(s)!==-1,p=s!==null,!c&&p&&(s=e.getItemMeta(s).parentId)),h&&!c&&(i.push(l),u=a.indexOf(l)!==-1,h=l!==null,!u&&h&&(l=e.getItemMeta(l).parentId));const f=c?s:l,g=e.getItemOrderedChildrenIds(f),y=a[a.indexOf(f)-1],v=i[i.indexOf(f)-1];return g.indexOf(y)<g.indexOf(v)?[t,r]:[r,t]},Lw=(e,t,r)=>{const n=l=>{if(e.isItemExpandable(l)&&e.isItemExpanded(l))return e.getItemOrderedChildrenIds(l)[0];let c=e.getItemMeta(l);for(;c!=null;){const u=e.getItemOrderedChildrenIds(c.parentId),p=e.getItemIndex(c.id);if(p<u.length-1)return u[p+1];c=e.getItemMeta(c.parentId)}throw new Error("Invalid range")},[o,a]=Fp(e,t,r),i=[o];let s=o;for(;s!==a;)s=n(s),e.isItemDisabled(s)||i.push(s);return i},$w=e=>{let t=Io(e);const r=[];for(;t!=null;)r.push(t),t=ba(e,t);return r},jo=(e,t)=>t!==e.closest('*[role="treeitem"]');let uu=0;const Dw=()=>(uu+=1,`mui-tree-view-${uu}`),gl=({id:e,treeId:t="",itemId:r})=>e??`${t}-${r}`,Bw=e=>{const{runItemPlugins:t,items:{onItemClick:r,disabledItemsFocusable:n,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:i},expansion:{expansionTrigger:s},treeId:l,instance:c,publicAPI:u}=an(),p=S.useContext(fl),{id:h,itemId:f,label:g,children:y,rootRef:v}=e,{rootRef:b,contentRef:C,propsEnhancers:w}=t(e),{interactions:k,status:j}=Ow({itemId:f,children:y}),P=S.useRef(null),B=S.useRef(null),F=_n(v,b,P),L=_n(C,B),m=S.useRef(null),R=gl({itemId:f,treeId:l,id:h}),D=c.canItemBeTabbed(f)?0:-1,$={rootRefObject:P,contentRefObject:B,interactions:k},H=W=>O=>{if(W.onFocus?.(O),O.defaultMuiPrevented)return;const q=!j.disabled||n;!j.focused&&q&&O.currentTarget===O.target&&c.focusItem(O,f)},X=W=>O=>{if(W.onBlur?.(O),O.defaultMuiPrevented)return;const q=c.getItemDOMElement(f);j.editing||O.relatedTarget&&jo(O.relatedTarget,q)&&(O.target&&O.target?.dataset?.element==="labelInput"&&jo(O.target,q)||O.relatedTarget?.dataset?.element==="labelInput")||c.removeFocusedItem()},V=W=>O=>{W.onKeyDown?.(O),!(O.defaultMuiPrevented||O.target?.dataset?.element==="labelInput")&&c.handleItemKeyDown(O,f)},ce=W=>O=>{W.onDoubleClick?.(O),!O.defaultMuiPrevented&&k.toggleItemEditing()},K=W=>O=>{W.onClick?.(O),r?.(O,f),!(O.defaultMuiPrevented||m.current?.contains(O.target))&&(s==="content"&&k.handleExpansion(O),i||k.handleSelection(O))},se=W=>O=>{W.onMouseDown?.(O),!O.defaultMuiPrevented&&(O.shiftKey||O.ctrlKey||O.metaKey||j.disabled)&&O.preventDefault()},Z=W=>O=>{W.onChange?.(O),!O.defaultMuiPrevented&&(a||j.disabled||k.handleCheckboxSelection(O))},J=W=>O=>{W.onClick?.(O),!O.defaultMuiPrevented&&s==="iconContainer"&&k.handleExpansion(O)};return{getRootProps:(W={})=>{const O=Y({},Nt(e),Nt(W));let q;j.selected?q=!0:a||j.disabled?q=void 0:q=!1;const oe=Y({},O,{ref:F,role:"treeitem",tabIndex:D,id:R,"aria-expanded":j.expandable?j.expanded:void 0,"aria-selected":q,"aria-disabled":j.disabled||void 0},W,{onFocus:H(O),onBlur:X(O),onKeyDown:V(O)});o&&(oe.style={"--TreeView-itemDepth":typeof p=="function"?p(f):p});const Pe=w.root?.(Y({},$,{externalEventHandlers:O}))??{};return Y({},oe,Pe)},getContentProps:(W={})=>{const O=Nt(W),q=Y({},O,W,{ref:L,onClick:K(O),onMouseDown:se(O),status:j});o&&(q.indentationAtItemLevel=!0);const oe=w.content?.(Y({},$,{externalEventHandlers:O}))??{};return Y({},q,oe)},getGroupTransitionProps:(W={})=>{const O=Nt(W),q=Y({},O,{unmountOnExit:!0,component:"ul",role:"group",in:j.expanded,children:y},W);return o&&(q.indentationAtItemLevel=!0),q},getIconContainerProps:(W={})=>{const O=Nt(W);return Y({},O,W,{onClick:J(O)})},getCheckboxProps:(W={})=>{const O=Nt(W);return Y({},O,{visible:i,ref:m,checked:j.selected,disabled:a||j.disabled,tabIndex:-1},W,{onChange:Z(O)})},getLabelProps:(W={})=>{const O=Y({},Nt(W)),q=Y({},O,{children:g},W,{onDoubleClick:ce(O)});return c.isTreeViewEditable&&(q.editable=j.editable),q},getLabelInputProps:(W={})=>{const O=Nt(W),q=w.labelInput?.({rootRefObject:P,contentRefObject:B,externalEventHandlers:O,interactions:k})??{};return Y({},W,q)},getDragAndDropOverlayProps:(W={})=>{const O=Nt(W),q=w.dragAndDropOverlay?.(Y({},$,{externalEventHandlers:O}))??{};return Y({},W,q)},rootRef:F,status:j,publicAPI:u}},qw=Bw;function zp(e){const{instance:t,items:{onItemClick:r},selection:{multiSelect:n,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:i}}=an(),s=t.isItemExpandable(e),l=t.isItemExpanded(e),c=t.isItemFocused(e),u=t.isItemSelected(e),p=t.isItemDisabled(e),h=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,f=t.isItemEditable?t.isItemEditable(e):!1,g=w=>{if(!p){c||t.focusItem(w,e);const k=n&&(w.shiftKey||w.ctrlKey||w.metaKey);s&&!(k&&t.isItemExpanded(e))&&t.toggleItemExpansion(w,e)}},y=w=>{p||(c||t.focusItem(w,e),n&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:!0}):t.selectItem({event:w,itemId:e,shouldBeSelected:!0}))},v=w=>{if(a||p)return;const k=w.nativeEvent.shiftKey;n&&k?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:n,shouldBeSelected:w.target.checked})},b=w=>{(w.shiftKey||w.ctrlKey||w.metaKey||p)&&w.preventDefault()},C=()=>{Qr(t,Dt)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:p,expanded:l,selected:u,focused:c,editable:f,editing:h,disableSelection:a,checkboxSelection:o,handleExpansion:g,handleSelection:y,handleCheckboxSelection:v,handleContentClick:r,preventSelection:b,expansionTrigger:i,toggleItemEditing:C,handleSaveItemLabel:(w,k)=>{Qr(t,Dt)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,k),C(),t.focusItem(w,e))},handleCancelItemLabelEditing:w=>{Qr(t,Dt)&&t.isItemBeingEditedRef(e)&&(C(),t.focusItem(w,e))}}}const Fw=Ee("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>fe.shouldForwardProp(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:fe.alpha(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function zw(e){return e.action==null?null:d.jsx(Fw,Y({},e))}const Uw=Ee("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Y({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),Ww=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],Up=S.forwardRef(function(e,t){const{classes:r,className:n,displayIcon:o,expansionIcon:a,icon:i,label:s,itemId:l,onClick:c,onMouseDown:u,dragAndDropOverlayProps:p,labelInputProps:h}=e,f=mr(e,Ww),{disabled:g,expanded:y,selected:v,focused:b,editing:C,editable:w,disableSelection:k,checkboxSelection:j,handleExpansion:P,handleSelection:B,handleCheckboxSelection:F,handleContentClick:L,preventSelection:m,expansionTrigger:R,toggleItemEditing:D}=zp(l),$=i||a||o,H=S.useRef(null),X=K=>{m(K),u&&u(K)},V=K=>{L?.(K,l),!H.current?.contains(K.target)&&(R==="content"&&P(K),j||B(K),c&&c(K))},ce=K=>{K.defaultMuiPrevented||D()};return d.jsxs("div",Y({},f,{className:qe(r.root,n,y&&r.expanded,v&&r.selected,b&&r.focused,g&&r.disabled,C&&r.editing,w&&r.editable),onClick:V,onMouseDown:X,ref:t,children:[d.jsx("div",{className:r.iconContainer,children:$}),j&&d.jsx(Ap,{className:r.checkbox,checked:v,onChange:F,disabled:g||k,ref:H,tabIndex:-1}),C?d.jsx(Uw,Y({},h,{className:r.labelInput})):d.jsx("div",Y({className:r.label},w&&{onDoubleClick:ce},{children:s})),p&&d.jsx(zw,Y({},p))]}))}),du=e=>e,Hw=()=>{let e=du;return{configure(t){e=t},generate(t){return e(t)},reset(){e=du}}},Vw=Hw(),Gw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yl(e,t,r="Mui"){const n=Gw[t];return n?`${r}-${n}`:`${Vw.generate(e)}-${t}`}function Wp(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=yl(e,o,r)}),n}function Kw(e){return yl("MuiTreeItem",e)}const sr=Wp("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Hp=tt(d.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Vp=tt(d.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function bl(e){const{children:t,itemId:r}=e,{wrapItem:n,instance:o}=an();return n({children:t,itemId:r,instance:o})}bl.propTypes={children:hc.node,itemId:hc.string.isRequired};const Qw=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],Yw=["ownerState"],Jw=["ownerState"],Xw=["ownerState"],Zw=Op(),eC=e=>{const{classes:t}=e;return _p({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},Kw,t)},tC=Ee("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),rC=Ee(Up,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${sr.iconContainer}`]:t.iconContainer},t.label&&{[`& .${sr.label}`]:t.label}],shouldForwardProp:e=>Rr(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${sr.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${sr.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${sr.label}`]:Y({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${sr.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),nC=Ee(Po,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Rr(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),oC=S.forwardRef(function(e,t){const{icons:r,runItemPlugins:n,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:i},expansion:{expansionTrigger:s},treeId:l,instance:c}=an(),u=S.useContext(fl),p=Zw({props:e,name:"MuiTreeItem"}),{children:h,className:f,slots:g,slotProps:y,ContentComponent:v=Up,ContentProps:b,itemId:C,id:w,label:k,onClick:j,onMouseDown:P,onBlur:B,onKeyDown:F}=p,L=mr(p,Qw),{expanded:m,focused:R,selected:D,disabled:$,editing:H,handleExpansion:X,handleCancelItemLabelEditing:V,handleSaveItemLabel:ce}=zp(C),{contentRef:K,rootRef:se,propsEnhancers:Z}=n(p),J=S.useRef(null),W=S.useRef(null),O=_n(t,se,J),q=_n(b?.ref,K,W),oe={expandIcon:g?.expandIcon??r.slots.expandIcon??Hp,collapseIcon:g?.collapseIcon??r.slots.collapseIcon??Vp,endIcon:g?.endIcon??r.slots.endIcon,icon:g?.icon,groupTransition:g?.groupTransition},Pe=ge=>Array.isArray(ge)?ge.length>0&&ge.some(Pe):!!ge,it=Pe(h),ht=Y({},p,{expanded:m,focused:R,selected:D,disabled:$,indentationAtItemLevel:a}),Me=eC(ht),Ae=oe.groupTransition??void 0,jt=Gr({elementType:Ae,ownerState:{},externalSlotProps:y?.groupTransition,additionalProps:Y({unmountOnExit:!0,in:m,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:Me.groupTransition}),xr=ge=>{s==="iconContainer"&&X(ge)},Wt=m?oe.collapseIcon:oe.expandIcon,dt=Gr({elementType:Wt,ownerState:{},externalSlotProps:ge=>m?Y({},ur(r.slotProps.collapseIcon,ge),ur(y?.collapseIcon,ge)):Y({},ur(r.slotProps.expandIcon,ge),ur(y?.expandIcon,ge)),additionalProps:{onClick:xr}}),Lr=mr(dt,Yw),Qt=it&&Wt?d.jsx(Wt,Y({},Lr)):null,ot=it?void 0:oe.endIcon,Ht=Gr({elementType:ot,ownerState:{},externalSlotProps:ge=>it?{}:Y({},ur(r.slotProps.endIcon,ge),ur(y?.endIcon,ge))}),vr=mr(Ht,Jw),Sr=ot?d.jsx(ot,Y({},vr)):null,ae=oe.icon,ne=Gr({elementType:ae,ownerState:{},externalSlotProps:y?.icon}),$r=mr(ne,Xw),Uo=ae?d.jsx(ae,Y({},$r)):null;let wr;D?wr=!0:i||$?wr=void 0:wr=!1;function Yt(ge){!R&&(!$||o)&&ge.currentTarget===ge.target&&c.focusItem(ge,C)}function Vt(ge){B?.(ge),!(H||ge.relatedTarget&&jo(ge.relatedTarget,J.current)&&(ge.target&&ge.target?.dataset?.element==="labelInput"&&jo(ge.target,J.current)||ge.relatedTarget?.dataset?.element==="labelInput"))&&c.removeFocusedItem()}const Wo=ge=>{F?.(ge),ge.target?.dataset?.element!=="labelInput"&&c.handleItemKeyDown(ge,C)},Un=gl({itemId:C,treeId:l,id:w}),vi=c.canItemBeTabbed(C)?0:-1,ft={rootRefObject:J,contentRefObject:W,interactions:{handleSaveItemLabel:ce,handleCancelItemLabelEditing:V}},Ho=Z.root?.(Y({},ft,{externalEventHandlers:Nt(L)}))??{},Vo=Z.content?.(Y({},ft,{externalEventHandlers:Nt(b)}))??{},Wn=Z.dragAndDropOverlay?.(Y({},ft,{externalEventHandlers:{}}))??{},Go=Z.labelInput?.(Y({},ft,{externalEventHandlers:{}}))??{};return d.jsx(bl,{itemId:C,children:d.jsxs(tC,Y({className:qe(Me.root,f),role:"treeitem","aria-expanded":it?m:void 0,"aria-selected":wr,"aria-disabled":$||void 0,id:Un,tabIndex:vi},L,{ownerState:ht,onFocus:Yt,onBlur:Vt,onKeyDown:Wo,ref:O,style:a?Y({},L.style,{"--TreeView-itemDepth":typeof u=="function"?u(C):u}):L.style},Ho,{children:[d.jsx(rC,Y({as:v,classes:{root:Me.content,expanded:Me.expanded,selected:Me.selected,focused:Me.focused,disabled:Me.disabled,editable:Me.editable,editing:Me.editing,iconContainer:Me.iconContainer,label:Me.label,labelInput:Me.labelInput,checkbox:Me.checkbox},label:k,itemId:C,onClick:j,onMouseDown:P,icon:Uo,expansionIcon:Qt,displayIcon:Sr,ownerState:ht},b,Vo,Wn.action==null?{}:{dragAndDropOverlayProps:Wn},Go.value==null?{}:{labelInputProps:Go},{ref:q})),h&&d.jsx(nC,Y({as:Ae},jt,{children:h}))]}))})});function aC(e){const{slots:t,slotProps:r,status:n}=e,o=an(),a=Y({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??Hp,collapseIcon:o.icons.slots.collapseIcon??Vp}),i=o.icons.slotProps;let s;t?.icon?s="icon":n.expandable?n.expanded?s="collapseIcon":s="expandIcon":s="endIcon";const l=t?.[s]??a[s],c=Gr({elementType:l,externalSlotProps:u=>Y({},ur(i[s],u),ur(r?.[s],u)),ownerState:{}});return l?d.jsx(l,Y({},c)):null}const iC=["visible"],sC=Ee("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),lC=Ee("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Rr(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),cC=Ee("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Rr(e)&&e!=="editable"})(({theme:e})=>Y({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),uC=Ee("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Ee(Po,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Rr(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Ee(S.forwardRef((e,t)=>{const{visible:r}=e,n=mr(e,iC);return r?d.jsx(Ap,Y({},n,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function dC(e){return yl("MuiRichTreeView",e)}Wp("MuiRichTreeView",["root"]);const pC=(e,t)=>{const r=S.useRef({}),[n,o]=S.useState(()=>{const a={};return e.forEach(i=>{i.models&&Object.entries(i.models).forEach(([s,l])=>{r.current[s]={isControlled:t[s]!==void 0,getDefaultValue:l.getDefaultValue},a[s]=l.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(r.current).map(([a,i])=>{const s=t[a]??n[a];return[a,{value:s,setControlledValue:l=>{i.isControlled||o(c=>Y({},c,{[a]:l}))}}]}))};class hC{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,r,n={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),n.isFirst?o.highPriority.set(r,!0):o.regular.set(r,!0)}removeListener(t,r){this.events[t]&&(this.events[t].regular.delete(r),this.events[t].highPriority.delete(r))}removeAllListeners(){this.events={}}emit(t,...r){const n=this.events[t];if(!n)return;const o=Array.from(n.highPriority.keys()),a=Array.from(n.regular.keys());for(let i=o.length-1;i>=0;i-=1){const s=o[i];n.highPriority.has(s)&&s.apply(this,r)}for(let i=0;i<a.length;i+=1){const s=a[i];n.regular.has(s)&&s.apply(this,r)}}once(t,r){const n=this;this.on(t,function o(...a){n.removeListener(t,o),r.apply(n,a)})}}const mC=e=>e.isPropagationStopped!==void 0,Gp=()=>{const[e]=S.useState(()=>new hC),t=S.useCallback((...n)=>{const[o,a,i={}]=n;i.defaultMuiPrevented=!1,!(mC(i)&&i.isPropagationStopped())&&e.emit(o,a,i)},[e]),r=S.useCallback((n,o)=>(e.on(n,o),()=>{e.removeListener(n,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:r}}};Gp.params={};const Kp=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};Kp.params={};const xl=({params:e,state:t,setState:r})=>{S.useEffect(()=>{r(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:Y({},o,{id:Y({},o.id,{treeId:e.id??Dw()})}))},[r,e.id]);const n=e.id??t.id.treeId;return{getRootProps:()=>({id:n}),contextValue:{treeId:n}}};xl.params={id:!0};xl.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const fC=[Gp,Kp,xl],gC=["slots","slotProps","apiRef","experimentalFeatures"],yC=e=>{let{props:{slots:t,slotProps:r,apiRef:n,experimentalFeatures:o},plugins:a}=e,i=mr(e.props,gC);const s={};a.forEach(h=>{Object.assign(s,h.params)});const l={},c={};Object.keys(i).forEach(h=>{const f=i[h];s[h]?l[h]=f:c[h]=f});const u=o??{},p=a.reduce((h,f)=>f.getDefaultizedParams?f.getDefaultizedParams({params:h,experimentalFeatures:u}):h,l);return{apiRef:n,forwardedProps:c,pluginParams:p,slots:t??{},slotProps:r??{},experimentalFeatures:u}},bC=({plugins:e,instance:t,publicAPI:r,rootRef:n})=>({runItemPlugins:o=>{let a=null,i=null;const s=[],l={};e.forEach(p=>{if(!p.itemPlugin)return;const h=p.itemPlugin({props:o,rootRef:a,contentRef:i});h?.rootRef&&(a=h.rootRef),h?.contentRef&&(i=h.contentRef),h?.propsEnhancers&&(s.push(h.propsEnhancers),Object.keys(h.propsEnhancers).forEach(f=>{l[f]=!0}))});const c=p=>h=>{const f={};return s.forEach(g=>{const y=g[p];y!=null&&Object.assign(f,y(h))}),f},u=Object.fromEntries(Object.keys(l).map(p=>[p,c(p)]));return{contentRef:i,rootRef:a,propsEnhancers:u}},wrapItem:({itemId:o,children:a})=>{let i=a;for(let s=e.length-1;s>=0;s-=1){const l=e[s];l.wrapItem&&(i=l.wrapItem({itemId:o,children:i,instance:t}))}return i},wrapRoot:({children:o})=>{let a=o;for(let i=e.length-1;i>=0;i-=1){const s=e[i];s.wrapRoot&&(a=s.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:n,publicAPI:r});function xC(e){const t=S.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const vC=({plugins:e,rootRef:t,props:r})=>{const n=[...fC,...e],{pluginParams:o,forwardedProps:a,apiRef:i,experimentalFeatures:s,slots:l,slotProps:c}=yC({plugins:n,props:r}),u=pC(n,o),p=S.useRef({}).current,h=xC(i),f=S.useRef(null),g=_n(f,t),y=bC({plugins:n,instance:p,publicAPI:h,rootRef:f}),[v,b]=S.useState(()=>{const k={};return n.forEach(j=>{j.getInitialState&&Object.assign(k,j.getInitialState(o))}),k}),C=[],w=k=>{const j=k({instance:p,params:o,slots:l,slotProps:c,experimentalFeatures:s,state:v,setState:b,rootRef:f,models:u,plugins:n});j.getRootProps&&C.push(j.getRootProps),j.publicAPI&&Object.assign(h,j.publicAPI),j.instance&&Object.assign(p,j.instance),j.contextValue&&Object.assign(y,j.contextValue)};return n.forEach(w),{getRootProps:(k={})=>{const j=Y({role:"tree"},a,k,{ref:g});return C.forEach(P=>{Object.assign(j,P(k))}),j},rootRef:g,contextValue:y,instance:p}},SC=(e,t,r)=>{e.$$publishEvent(t,r)},Pn="__TREE_VIEW_ROOT_PARENT_ID__",wC=e=>{const t={};return e.forEach((r,n)=>{t[r]=n}),t},CC=["children"],Qp=({items:e,isItemDisabled:t,getItemLabel:r,getItemId:n})=>{const o={},a={},i={[Pn]:[]},s=(c,u,p)=>{const h=n?n(c):c.id;if(h==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(`
146
+ `,nw=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a,...i}=r,[s,l]=S.useState([]),c=S.useRef(0),u=S.useRef(null);S.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const p=S.useRef(!1),h=Mp(),f=S.useRef(null),g=S.useRef(null),y=S.useCallback(w=>{const{pulsate:k,rippleX:j,rippleY:P,rippleSize:B,cb:F}=w;l(L=>[...L,d.jsx(rw,{classes:{ripple:qe(o.ripple,At.ripple),rippleVisible:qe(o.rippleVisible,At.rippleVisible),ripplePulsate:qe(o.ripplePulsate,At.ripplePulsate),child:qe(o.child,At.child),childLeaving:qe(o.childLeaving,At.childLeaving),childPulsate:qe(o.childPulsate,At.childPulsate)},timeout:ys,pulsate:k,rippleX:j,rippleY:P,rippleSize:B},c.current)]),c.current+=1,u.current=F},[o]),v=S.useCallback((w={},k={},j=()=>{})=>{const{pulsate:P=!1,center:B=n||k.pulsate,fakeElement:F=!1}=k;if(w?.type==="mousedown"&&p.current){p.current=!1;return}w?.type==="touchstart"&&(p.current=!0);const L=F?null:g.current,m=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,D,$;if(B||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)R=Math.round(m.width/2),D=Math.round(m.height/2);else{const{clientX:H,clientY:X}=w.touches&&w.touches.length>0?w.touches[0]:w;R=Math.round(H-m.left),D=Math.round(X-m.top)}if(B)$=Math.sqrt((2*m.width**2+m.height**2)/3),$%2===0&&($+=1);else{const H=Math.max(Math.abs((L?L.clientWidth:0)-R),R)*2+2,X=Math.max(Math.abs((L?L.clientHeight:0)-D),D)*2+2;$=Math.sqrt(H**2+X**2)}w?.touches?f.current===null&&(f.current=()=>{y({pulsate:P,rippleX:R,rippleY:D,rippleSize:$,cb:j})},h.start(JS,()=>{f.current&&(f.current(),f.current=null)})):y({pulsate:P,rippleX:R,rippleY:D,rippleSize:$,cb:j})},[n,y,h]),b=S.useCallback(()=>{v({},{pulsate:!0})},[v]),C=S.useCallback((w,k)=>{if(h.clear(),w?.type==="touchend"&&f.current){f.current(),f.current=null,h.start(0,()=>{C(w,k)});return}f.current=null,l(j=>j.length>0?j.slice(1):j),u.current=k},[h]);return S.useImperativeHandle(t,()=>({pulsate:b,start:v,stop:C}),[b,v,C]),d.jsx(tw,{className:qe(At.root,o.root,a),ref:g,...i,children:d.jsx(hl,{component:null,exit:!0,children:s})})});function ow(e){return Ln("MuiButtonBase",e)}const aw=Dn("MuiButtonBase",["root","disabled","focusVisible"]),iw=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Mo({root:["root",t&&"disabled",r&&"focusVisible"]},ow,o);return r&&n&&(a.root+=` ${n}`),a},sw=Ee("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lw=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:i,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:f="a",onBlur:g,onClick:y,onContextMenu:v,onDragLeave:b,onFocus:C,onFocusVisible:w,onKeyDown:k,onKeyUp:j,onMouseDown:P,onMouseLeave:B,onMouseUp:F,onTouchEnd:L,onTouchMove:m,onTouchStart:R,tabIndex:D=0,TouchRippleProps:$,touchRippleRef:H,type:X,...V}=r,ce=S.useRef(null),K=KS(),se=Ra(K.ref,H),[Z,J]=S.useState(!1);l&&Z&&J(!1),S.useImperativeHandle(n,()=>({focusVisible:()=>{J(!0),ce.current.focus()}}),[]);const W=K.shouldMount&&!c&&!l;S.useEffect(()=>{Z&&p&&!c&&K.pulsate()},[c,p,Z,K]);const O=ir(K,"start",P,u),q=ir(K,"stop",v,u),oe=ir(K,"stop",b,u),Pe=ir(K,"stop",F,u),it=ir(K,"stop",ae=>{Z&&ae.preventDefault(),B&&B(ae)},u),ht=ir(K,"start",R,u),Me=ir(K,"stop",L,u),Ae=ir(K,"stop",m,u),jt=ir(K,"stop",ae=>{iu(ae.target)||J(!1),g&&g(ae)},!1),xr=fa(ae=>{ce.current||(ce.current=ae.currentTarget),iu(ae.target)&&(J(!0),w&&w(ae)),C&&C(ae)}),Wt=()=>{const ae=ce.current;return s&&s!=="button"&&!(ae.tagName==="A"&&ae.href)},dt=fa(ae=>{p&&!ae.repeat&&Z&&ae.key===" "&&K.stop(ae,()=>{K.start(ae)}),ae.target===ae.currentTarget&&Wt()&&ae.key===" "&&ae.preventDefault(),k&&k(ae),ae.target===ae.currentTarget&&Wt()&&ae.key==="Enter"&&!l&&(ae.preventDefault(),y&&y(ae))}),Lr=fa(ae=>{p&&ae.key===" "&&Z&&!ae.defaultPrevented&&K.stop(ae,()=>{K.pulsate(ae)}),j&&j(ae),y&&ae.target===ae.currentTarget&&Wt()&&ae.key===" "&&!ae.defaultPrevented&&y(ae)});let Qt=s;Qt==="button"&&(V.href||V.to)&&(Qt=f);const ot={};Qt==="button"?(ot.type=X===void 0?"button":X,ot.disabled=l):(!V.href&&!V.to&&(ot.role="button"),l&&(ot["aria-disabled"]=l));const Ht=Ra(t,ce),vr={...r,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:p,tabIndex:D,focusVisible:Z},Sr=iw(vr);return d.jsxs(sw,{as:Qt,className:qe(Sr.root,i),ownerState:vr,onBlur:jt,onClick:y,onContextMenu:q,onFocus:xr,onKeyDown:dt,onKeyUp:Lr,onMouseDown:O,onMouseLeave:it,onMouseUp:Pe,onDragLeave:oe,onTouchEnd:Me,onTouchMove:Ae,onTouchStart:ht,ref:Ht,tabIndex:l?-1:D,type:X,...ot,...V,children:[a,W?d.jsx(nw,{ref:se,center:o,...$}):null]})});function ir(e,t,r,n=!1){return fa(o=>(r&&r(o),n||e[t](o),!0))}function cw(e){return Ln("PrivateSwitchBase",e)}Dn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function uw(e){return typeof e=="string"}function dw(e,t,r){return e===void 0||uw(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function pw(e,t,r){return typeof e=="function"?e(t,r):e}function hw(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function su(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function mw(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const f=qe(r?.className,a,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},y={...r,...o,...n};return f.length>0&&(y.className=f),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=hw({...o,...n}),s=su(n),l=su(o),c=t(i),u=qe(c?.className,r?.className,a,o?.className,n?.className),p={...c?.style,...r?.style,...o?.style,...n?.style},h={...c,...r,...l,...s};return u.length>0&&(h.className=u),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}function bs(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:p={[e]:void 0},...h}=a,f=u[e]||n,g=pw(p[e],o),{props:{component:y,...v},internalRef:b}=mw({className:r,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),C=Ra(b,g?.ref,t.ref),w=e==="root"?y||c:y,k=dw(f,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...v,...w&&!s&&{as:w},...w&&s&&{component:w},ref:C},o);return[f,k]}const fw=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${Gt(o)}`],input:["input"]};return Mo(a,cw,t)},gw=Ee(lw)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),yw=Ee("input",{shouldForwardProp:tl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bw=S.forwardRef(function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,defaultChecked:a,disabled:i,disableFocusRipple:s=!1,edge:l=!1,icon:c,id:u,inputProps:p,inputRef:h,name:f,onBlur:g,onChange:y,onFocus:v,readOnly:b,required:C=!1,tabIndex:w,type:k,value:j,slots:P={},slotProps:B={},...F}=e,[L,m]=Pb({controlled:n,default:!!a}),R=GS(),D=q=>{v&&v(q),R&&R.onFocus&&R.onFocus(q)},$=q=>{g&&g(q),R&&R.onBlur&&R.onBlur(q)},H=q=>{if(q.nativeEvent.defaultPrevented)return;const oe=q.target.checked;m(oe),y&&y(q,oe)};let X=i;R&&typeof X>"u"&&(X=R.disabled);const V=k==="checkbox"||k==="radio",ce={...e,checked:L,disabled:X,disableFocusRipple:s,edge:l},K=fw(ce),se={slots:P,slotProps:{input:p,...B}},[Z,J]=bs("root",{ref:t,elementType:gw,className:K.root,shouldForwardComponentProp:!0,externalForwardedProps:{...se,component:"span",...F},getSlotProps:q=>({...q,onFocus:oe=>{q.onFocus?.(oe),D(oe)},onBlur:oe=>{q.onBlur?.(oe),$(oe)}}),ownerState:ce,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:X,role:void 0,tabIndex:null}}),[W,O]=bs("input",{ref:h,elementType:yw,className:K.input,externalForwardedProps:se,getSlotProps:q=>({...q,onChange:oe=>{q.onChange?.(oe),H(oe)}}),ownerState:ce,additionalProps:{autoFocus:r,checked:n,defaultChecked:a,disabled:X,id:V?u:void 0,name:f,readOnly:b,required:C,tabIndex:w,type:k,...k==="checkbox"&&j===void 0?{}:{value:j}}});return d.jsxs(Z,{...J,children:[d.jsx(W,{...O}),L?o:c]})}),xw=tt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),vw=tt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Sw=tt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function ww(e){return Ln("MuiCheckbox",e)}const Ui=Dn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function Cw(e){return typeof e.main=="string"}function kw(e,t=[]){if(!Cw(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function lu(e=[]){return([,t])=>t&&kw(t,e)}const Pw=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${Gt(n)}`,`size${Gt(o)}`]},i=Mo(a,ww,t);return{...t,...i}},Iw=Ee(bw,{shouldForwardProp:e=>tl(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Gt(r.size)}`],r.color!=="default"&&t[`color${Gt(r.color)}`]]}})(rl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ts(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(lu()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ts(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(lu()).map(([t])=>({props:{color:t},style:{[`&.${Ui.checked}, &.${Ui.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),jw=d.jsx(vw,{}),Ew=d.jsx(xw,{}),Rw=d.jsx(Sw,{}),Ap=S.forwardRef(function(e,t){const r=$n({props:e,name:"MuiCheckbox"}),{checkedIcon:n=jw,color:o="primary",icon:a=Ew,indeterminate:i=!1,indeterminateIcon:s=Rw,inputProps:l,size:c="medium",disableRipple:u=!1,className:p,slots:h={},slotProps:f={},...g}=r,y=i?s:a,v=i?s:n,b={...r,disableRipple:u,color:o,indeterminate:i,size:c},C=Pw(b),w=f.input??l,[k,j]=bs("root",{ref:t,elementType:Iw,className:qe(C.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:f,...g},ownerState:b,additionalProps:{type:"checkbox",icon:S.cloneElement(y,{fontSize:y.props.fontSize??c}),checkedIcon:S.cloneElement(v,{fontSize:v.props.fontSize??c}),disableRipple:u,slots:h,slotProps:{input:jb(typeof w=="function"?w(b):w,{"data-indeterminate":i})}}});return d.jsx(k,{...j,classes:C})});function On(...e){const t=S.useRef(void 0),r=S.useCallback(n=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(n);return typeof s=="function"?s:()=>{i(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return S.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Tw(e){return typeof e=="string"}function Nw(e,t,r){return e===void 0||Tw(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Nt(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function cu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Mw(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const f=qe(r?.className,a,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},y={...r,...o,...n};return f.length>0&&(y.className=f),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=Nt({...o,...n}),s=cu(n),l=cu(o),c=t(i),u=qe(c?.className,r?.className,a,o?.className,n?.className),p={...c?.style,...r?.style,...o?.style,...n?.style},h={...c,...r,...l,...s};return u.length>0&&(h.className=u),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}function ur(e,t,r){return typeof e=="function"?e(t,r):e}function Gr(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:ur(r,n),{props:s,internalRef:l}=Mw({...a,externalSlotProps:i}),c=On(l,i?.ref,e.additionalProps?.ref);return Nw(t,{...s,ref:c},n)}function _p(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(i+=" "+r[c]))}n[o]=i}return n}function Op(e){return dS}const Lp=S.createContext(null);function Aw(e){const{value:t,children:r}=e;return d.jsx(Lp.Provider,{value:t,children:t.wrapRoot({children:r,instance:t.instance})})}const sn=()=>{const e=S.useContext(Lp);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
147
+ `));return e},_w=({props:e})=>{const{instance:t}=sn(),{label:r,itemId:n}=e,[o,a]=S.useState(r),i=t.isItemBeingEdited(n);return S.useEffect(()=>{i||a(r)},[i,r]),{propsEnhancers:{labelInput:({externalEventHandlers:s,interactions:l})=>t.isItemEditable(n)?{value:o??"","data-element":"labelInput",onChange:c=>{s.onChange?.(c),a(c.target.value)},onKeyDown:c=>{if(s.onKeyDown?.(c),c.defaultMuiPrevented)return;const u=c.target;c.key==="Enter"&&u.value?l.handleSaveItemLabel(c,u.value):c.key==="Escape"&&l.handleCancelItemLabelEditing(c)},onBlur:c=>{s.onBlur?.(c),!c.defaultMuiPrevented&&c.target.value&&l.handleSaveItemLabel(c,c.target.value)},autoFocus:!0,type:"text"}:{}}}},Dt=({instance:e,state:t,setState:r,params:n})=>{const o=S.useRef(t.editedItemId),a=p=>o.current===p,i=p=>{r(h=>Y({},h,{editedItemId:p})),o.current=p},s=p=>p===t.editedItemId,l=!!n.isItemEditable,c=p=>{if(p==null||!l)return!1;const h=e.getItem(p);return h?typeof n.isItemEditable=="function"?n.isItemEditable(h):!!n.isItemEditable:!1},u=(p,h)=>{if(!h)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",p].join(`
148
+ `));r(f=>{const g=f.items.itemMetaMap[p];return g.label!==h?Y({},f,{items:Y({},f.items,{itemMetaMap:Y({},f.items.itemMetaMap,{[p]:Y({},g,{label:h})})})}):f}),n.onItemLabelChange&&n.onItemLabelChange(p,h)};return{instance:{setEditedItemId:i,isItemBeingEdited:s,updateItemLabel:u,isItemEditable:c,isTreeViewEditable:l,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:u}}};Dt.itemPlugin=_w;Dt.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const r=t?.labelEditing;return Y({},e,{isItemEditable:r?e.isItemEditable??!1:!1})};Dt.getInitialState=()=>({editedItemId:null});Dt.params={onItemLabelChange:!0,isItemEditable:!0};const Qr=(e,t)=>e.getAvailablePlugins().has(t),$p=e=>Array.isArray(e)?e.length>0&&e.some($p):!!e,Ow=({itemId:e,children:t})=>{const{instance:r,selection:{multiSelect:n},publicAPI:o}=sn(),a={expandable:$p(t),expanded:r.isItemExpanded(e),focused:r.isItemFocused(e),selected:r.isItemSelected(e),disabled:r.isItemDisabled(e),editing:r?.isItemBeingEdited?r?.isItemBeingEdited(e):!1,editable:r.isItemEditable?r.isItemEditable(e):!1},i=u=>{if(a.disabled)return;a.focused||r.focusItem(u,e);const p=n&&(u.shiftKey||u.ctrlKey||u.metaKey);a.expandable&&!(p&&r.isItemExpanded(e))&&r.toggleItemExpansion(u,e)},s=u=>{a.disabled||(a.focused||r.focusItem(u,e),n&&(u.shiftKey||u.ctrlKey||u.metaKey)?u.shiftKey?r.expandSelectionRange(u,e):r.selectItem({event:u,itemId:e,keepExistingSelection:!0}):r.selectItem({event:u,itemId:e,shouldBeSelected:!0}))},l=u=>{const p=u.nativeEvent.shiftKey;n&&p?r.expandSelectionRange(u,e):r.selectItem({event:u,itemId:e,keepExistingSelection:n,shouldBeSelected:u.target.checked})},c=()=>{Qr(r,Dt)&&r.isItemEditable(e)&&(r.isItemBeingEdited(e)?r.setEditedItemId(null):r.setEditedItemId(e))};return{interactions:{handleExpansion:i,handleSelection:s,handleCheckboxSelection:l,toggleItemEditing:c,handleSaveItemLabel:(u,p)=>{Qr(r,Dt)&&r.isItemBeingEditedRef(e)&&(r.updateItemLabel(e,p),c(),r.focusItem(u,e))},handleCancelItemLabelEditing:u=>{Qr(r,Dt)&&r.isItemBeingEditedRef(e)&&(c(),r.focusItem(u,e))}},status:a,publicAPI:o}},fl=S.createContext(()=>-1),Dp=(e,t)=>{let r=t.length-1;for(;r>=0&&!e.isItemNavigable(t[r]);)r-=1;if(r!==-1)return t[r]},Bp=(e,t)=>{const r=e.getItemMeta(t),n=e.getItemOrderedChildrenIds(r.parentId),o=e.getItemIndex(t);if(o===0)return r.parentId;let a=o-1;for(;!e.isItemNavigable(n[a])&&a>=0;)a-=1;if(a===-1)return r.parentId==null?null:Bp(e,r.parentId);let i=n[a],s=Dp(e,e.getItemOrderedChildrenIds(i));for(;e.isItemExpanded(i)&&s!=null;)i=s,s=e.getItemOrderedChildrenIds(i).find(e.isItemNavigable);return i},ba=(e,t)=>{if(e.isItemExpanded(t)){const n=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(n!=null)return n}let r=e.getItemMeta(t);for(;r!=null;){const n=e.getItemOrderedChildrenIds(r.parentId),o=e.getItemIndex(r.id);if(o<n.length-1){let a=o+1;for(;!e.isItemNavigable(n[a])&&a<n.length-1;)a+=1;if(e.isItemNavigable(n[a]))return n[a]}r=e.getItemMeta(r.parentId)}return null},qp=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const r=e.getItemOrderedChildrenIds(t),n=Dp(e,r);if(n==null)return t;t=n}return t},Io=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),Fp=(e,t,r)=>{if(t===r)return[t,r];const n=e.getItemMeta(t),o=e.getItemMeta(r);if(n.parentId===o.id||o.parentId===n.id)return o.parentId===n.id?[n.id,o.id]:[o.id,n.id];const a=[n.id],i=[o.id];let s=n.parentId,l=o.parentId,c=i.indexOf(s)!==-1,u=a.indexOf(l)!==-1,p=!0,h=!0;for(;!u&&!c;)p&&(a.push(s),c=i.indexOf(s)!==-1,p=s!==null,!c&&p&&(s=e.getItemMeta(s).parentId)),h&&!c&&(i.push(l),u=a.indexOf(l)!==-1,h=l!==null,!u&&h&&(l=e.getItemMeta(l).parentId));const f=c?s:l,g=e.getItemOrderedChildrenIds(f),y=a[a.indexOf(f)-1],v=i[i.indexOf(f)-1];return g.indexOf(y)<g.indexOf(v)?[t,r]:[r,t]},Lw=(e,t,r)=>{const n=l=>{if(e.isItemExpandable(l)&&e.isItemExpanded(l))return e.getItemOrderedChildrenIds(l)[0];let c=e.getItemMeta(l);for(;c!=null;){const u=e.getItemOrderedChildrenIds(c.parentId),p=e.getItemIndex(c.id);if(p<u.length-1)return u[p+1];c=e.getItemMeta(c.parentId)}throw new Error("Invalid range")},[o,a]=Fp(e,t,r),i=[o];let s=o;for(;s!==a;)s=n(s),e.isItemDisabled(s)||i.push(s);return i},$w=e=>{let t=Io(e);const r=[];for(;t!=null;)r.push(t),t=ba(e,t);return r},jo=(e,t)=>t!==e.closest('*[role="treeitem"]');let uu=0;const Dw=()=>(uu+=1,`mui-tree-view-${uu}`),gl=({id:e,treeId:t="",itemId:r})=>e??`${t}-${r}`,Bw=e=>{const{runItemPlugins:t,items:{onItemClick:r,disabledItemsFocusable:n,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:i},expansion:{expansionTrigger:s},treeId:l,instance:c,publicAPI:u}=sn(),p=S.useContext(fl),{id:h,itemId:f,label:g,children:y,rootRef:v}=e,{rootRef:b,contentRef:C,propsEnhancers:w}=t(e),{interactions:k,status:j}=Ow({itemId:f,children:y}),P=S.useRef(null),B=S.useRef(null),F=On(v,b,P),L=On(C,B),m=S.useRef(null),R=gl({itemId:f,treeId:l,id:h}),D=c.canItemBeTabbed(f)?0:-1,$={rootRefObject:P,contentRefObject:B,interactions:k},H=W=>O=>{if(W.onFocus?.(O),O.defaultMuiPrevented)return;const q=!j.disabled||n;!j.focused&&q&&O.currentTarget===O.target&&c.focusItem(O,f)},X=W=>O=>{if(W.onBlur?.(O),O.defaultMuiPrevented)return;const q=c.getItemDOMElement(f);j.editing||O.relatedTarget&&jo(O.relatedTarget,q)&&(O.target&&O.target?.dataset?.element==="labelInput"&&jo(O.target,q)||O.relatedTarget?.dataset?.element==="labelInput")||c.removeFocusedItem()},V=W=>O=>{W.onKeyDown?.(O),!(O.defaultMuiPrevented||O.target?.dataset?.element==="labelInput")&&c.handleItemKeyDown(O,f)},ce=W=>O=>{W.onDoubleClick?.(O),!O.defaultMuiPrevented&&k.toggleItemEditing()},K=W=>O=>{W.onClick?.(O),r?.(O,f),!(O.defaultMuiPrevented||m.current?.contains(O.target))&&(s==="content"&&k.handleExpansion(O),i||k.handleSelection(O))},se=W=>O=>{W.onMouseDown?.(O),!O.defaultMuiPrevented&&(O.shiftKey||O.ctrlKey||O.metaKey||j.disabled)&&O.preventDefault()},Z=W=>O=>{W.onChange?.(O),!O.defaultMuiPrevented&&(a||j.disabled||k.handleCheckboxSelection(O))},J=W=>O=>{W.onClick?.(O),!O.defaultMuiPrevented&&s==="iconContainer"&&k.handleExpansion(O)};return{getRootProps:(W={})=>{const O=Y({},Nt(e),Nt(W));let q;j.selected?q=!0:a||j.disabled?q=void 0:q=!1;const oe=Y({},O,{ref:F,role:"treeitem",tabIndex:D,id:R,"aria-expanded":j.expandable?j.expanded:void 0,"aria-selected":q,"aria-disabled":j.disabled||void 0},W,{onFocus:H(O),onBlur:X(O),onKeyDown:V(O)});o&&(oe.style={"--TreeView-itemDepth":typeof p=="function"?p(f):p});const Pe=w.root?.(Y({},$,{externalEventHandlers:O}))??{};return Y({},oe,Pe)},getContentProps:(W={})=>{const O=Nt(W),q=Y({},O,W,{ref:L,onClick:K(O),onMouseDown:se(O),status:j});o&&(q.indentationAtItemLevel=!0);const oe=w.content?.(Y({},$,{externalEventHandlers:O}))??{};return Y({},q,oe)},getGroupTransitionProps:(W={})=>{const O=Nt(W),q=Y({},O,{unmountOnExit:!0,component:"ul",role:"group",in:j.expanded,children:y},W);return o&&(q.indentationAtItemLevel=!0),q},getIconContainerProps:(W={})=>{const O=Nt(W);return Y({},O,W,{onClick:J(O)})},getCheckboxProps:(W={})=>{const O=Nt(W);return Y({},O,{visible:i,ref:m,checked:j.selected,disabled:a||j.disabled,tabIndex:-1},W,{onChange:Z(O)})},getLabelProps:(W={})=>{const O=Y({},Nt(W)),q=Y({},O,{children:g},W,{onDoubleClick:ce(O)});return c.isTreeViewEditable&&(q.editable=j.editable),q},getLabelInputProps:(W={})=>{const O=Nt(W),q=w.labelInput?.({rootRefObject:P,contentRefObject:B,externalEventHandlers:O,interactions:k})??{};return Y({},W,q)},getDragAndDropOverlayProps:(W={})=>{const O=Nt(W),q=w.dragAndDropOverlay?.(Y({},$,{externalEventHandlers:O}))??{};return Y({},W,q)},rootRef:F,status:j,publicAPI:u}},qw=Bw;function zp(e){const{instance:t,items:{onItemClick:r},selection:{multiSelect:n,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:i}}=sn(),s=t.isItemExpandable(e),l=t.isItemExpanded(e),c=t.isItemFocused(e),u=t.isItemSelected(e),p=t.isItemDisabled(e),h=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,f=t.isItemEditable?t.isItemEditable(e):!1,g=w=>{if(!p){c||t.focusItem(w,e);const k=n&&(w.shiftKey||w.ctrlKey||w.metaKey);s&&!(k&&t.isItemExpanded(e))&&t.toggleItemExpansion(w,e)}},y=w=>{p||(c||t.focusItem(w,e),n&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:!0}):t.selectItem({event:w,itemId:e,shouldBeSelected:!0}))},v=w=>{if(a||p)return;const k=w.nativeEvent.shiftKey;n&&k?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:n,shouldBeSelected:w.target.checked})},b=w=>{(w.shiftKey||w.ctrlKey||w.metaKey||p)&&w.preventDefault()},C=()=>{Qr(t,Dt)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:p,expanded:l,selected:u,focused:c,editable:f,editing:h,disableSelection:a,checkboxSelection:o,handleExpansion:g,handleSelection:y,handleCheckboxSelection:v,handleContentClick:r,preventSelection:b,expansionTrigger:i,toggleItemEditing:C,handleSaveItemLabel:(w,k)=>{Qr(t,Dt)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,k),C(),t.focusItem(w,e))},handleCancelItemLabelEditing:w=>{Qr(t,Dt)&&t.isItemBeingEditedRef(e)&&(C(),t.focusItem(w,e))}}}const Fw=Ee("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>fe.shouldForwardProp(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:fe.alpha(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function zw(e){return e.action==null?null:d.jsx(Fw,Y({},e))}const Uw=Ee("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Y({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),Ww=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],Up=S.forwardRef(function(e,t){const{classes:r,className:n,displayIcon:o,expansionIcon:a,icon:i,label:s,itemId:l,onClick:c,onMouseDown:u,dragAndDropOverlayProps:p,labelInputProps:h}=e,f=mr(e,Ww),{disabled:g,expanded:y,selected:v,focused:b,editing:C,editable:w,disableSelection:k,checkboxSelection:j,handleExpansion:P,handleSelection:B,handleCheckboxSelection:F,handleContentClick:L,preventSelection:m,expansionTrigger:R,toggleItemEditing:D}=zp(l),$=i||a||o,H=S.useRef(null),X=K=>{m(K),u&&u(K)},V=K=>{L?.(K,l),!H.current?.contains(K.target)&&(R==="content"&&P(K),j||B(K),c&&c(K))},ce=K=>{K.defaultMuiPrevented||D()};return d.jsxs("div",Y({},f,{className:qe(r.root,n,y&&r.expanded,v&&r.selected,b&&r.focused,g&&r.disabled,C&&r.editing,w&&r.editable),onClick:V,onMouseDown:X,ref:t,children:[d.jsx("div",{className:r.iconContainer,children:$}),j&&d.jsx(Ap,{className:r.checkbox,checked:v,onChange:F,disabled:g||k,ref:H,tabIndex:-1}),C?d.jsx(Uw,Y({},h,{className:r.labelInput})):d.jsx("div",Y({className:r.label},w&&{onDoubleClick:ce},{children:s})),p&&d.jsx(zw,Y({},p))]}))}),du=e=>e,Hw=()=>{let e=du;return{configure(t){e=t},generate(t){return e(t)},reset(){e=du}}},Vw=Hw(),Gw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yl(e,t,r="Mui"){const n=Gw[t];return n?`${r}-${n}`:`${Vw.generate(e)}-${t}`}function Wp(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=yl(e,o,r)}),n}function Kw(e){return yl("MuiTreeItem",e)}const sr=Wp("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Hp=tt(d.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Vp=tt(d.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function bl(e){const{children:t,itemId:r}=e,{wrapItem:n,instance:o}=sn();return n({children:t,itemId:r,instance:o})}bl.propTypes={children:hc.node,itemId:hc.string.isRequired};const Qw=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],Yw=["ownerState"],Jw=["ownerState"],Xw=["ownerState"],Zw=Op(),eC=e=>{const{classes:t}=e;return _p({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},Kw,t)},tC=Ee("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),rC=Ee(Up,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${sr.iconContainer}`]:t.iconContainer},t.label&&{[`& .${sr.label}`]:t.label}],shouldForwardProp:e=>Rr(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${sr.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${sr.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${sr.label}`]:Y({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${sr.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),nC=Ee(Po,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Rr(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),oC=S.forwardRef(function(e,t){const{icons:r,runItemPlugins:n,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:i},expansion:{expansionTrigger:s},treeId:l,instance:c}=sn(),u=S.useContext(fl),p=Zw({props:e,name:"MuiTreeItem"}),{children:h,className:f,slots:g,slotProps:y,ContentComponent:v=Up,ContentProps:b,itemId:C,id:w,label:k,onClick:j,onMouseDown:P,onBlur:B,onKeyDown:F}=p,L=mr(p,Qw),{expanded:m,focused:R,selected:D,disabled:$,editing:H,handleExpansion:X,handleCancelItemLabelEditing:V,handleSaveItemLabel:ce}=zp(C),{contentRef:K,rootRef:se,propsEnhancers:Z}=n(p),J=S.useRef(null),W=S.useRef(null),O=On(t,se,J),q=On(b?.ref,K,W),oe={expandIcon:g?.expandIcon??r.slots.expandIcon??Hp,collapseIcon:g?.collapseIcon??r.slots.collapseIcon??Vp,endIcon:g?.endIcon??r.slots.endIcon,icon:g?.icon,groupTransition:g?.groupTransition},Pe=ge=>Array.isArray(ge)?ge.length>0&&ge.some(Pe):!!ge,it=Pe(h),ht=Y({},p,{expanded:m,focused:R,selected:D,disabled:$,indentationAtItemLevel:a}),Me=eC(ht),Ae=oe.groupTransition??void 0,jt=Gr({elementType:Ae,ownerState:{},externalSlotProps:y?.groupTransition,additionalProps:Y({unmountOnExit:!0,in:m,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:Me.groupTransition}),xr=ge=>{s==="iconContainer"&&X(ge)},Wt=m?oe.collapseIcon:oe.expandIcon,dt=Gr({elementType:Wt,ownerState:{},externalSlotProps:ge=>m?Y({},ur(r.slotProps.collapseIcon,ge),ur(y?.collapseIcon,ge)):Y({},ur(r.slotProps.expandIcon,ge),ur(y?.expandIcon,ge)),additionalProps:{onClick:xr}}),Lr=mr(dt,Yw),Qt=it&&Wt?d.jsx(Wt,Y({},Lr)):null,ot=it?void 0:oe.endIcon,Ht=Gr({elementType:ot,ownerState:{},externalSlotProps:ge=>it?{}:Y({},ur(r.slotProps.endIcon,ge),ur(y?.endIcon,ge))}),vr=mr(Ht,Jw),Sr=ot?d.jsx(ot,Y({},vr)):null,ae=oe.icon,ne=Gr({elementType:ae,ownerState:{},externalSlotProps:y?.icon}),$r=mr(ne,Xw),Uo=ae?d.jsx(ae,Y({},$r)):null;let wr;D?wr=!0:i||$?wr=void 0:wr=!1;function Yt(ge){!R&&(!$||o)&&ge.currentTarget===ge.target&&c.focusItem(ge,C)}function Vt(ge){B?.(ge),!(H||ge.relatedTarget&&jo(ge.relatedTarget,J.current)&&(ge.target&&ge.target?.dataset?.element==="labelInput"&&jo(ge.target,J.current)||ge.relatedTarget?.dataset?.element==="labelInput"))&&c.removeFocusedItem()}const Wo=ge=>{F?.(ge),ge.target?.dataset?.element!=="labelInput"&&c.handleItemKeyDown(ge,C)},Un=gl({itemId:C,treeId:l,id:w}),vi=c.canItemBeTabbed(C)?0:-1,ft={rootRefObject:J,contentRefObject:W,interactions:{handleSaveItemLabel:ce,handleCancelItemLabelEditing:V}},Ho=Z.root?.(Y({},ft,{externalEventHandlers:Nt(L)}))??{},Vo=Z.content?.(Y({},ft,{externalEventHandlers:Nt(b)}))??{},Wn=Z.dragAndDropOverlay?.(Y({},ft,{externalEventHandlers:{}}))??{},Go=Z.labelInput?.(Y({},ft,{externalEventHandlers:{}}))??{};return d.jsx(bl,{itemId:C,children:d.jsxs(tC,Y({className:qe(Me.root,f),role:"treeitem","aria-expanded":it?m:void 0,"aria-selected":wr,"aria-disabled":$||void 0,id:Un,tabIndex:vi},L,{ownerState:ht,onFocus:Yt,onBlur:Vt,onKeyDown:Wo,ref:O,style:a?Y({},L.style,{"--TreeView-itemDepth":typeof u=="function"?u(C):u}):L.style},Ho,{children:[d.jsx(rC,Y({as:v,classes:{root:Me.content,expanded:Me.expanded,selected:Me.selected,focused:Me.focused,disabled:Me.disabled,editable:Me.editable,editing:Me.editing,iconContainer:Me.iconContainer,label:Me.label,labelInput:Me.labelInput,checkbox:Me.checkbox},label:k,itemId:C,onClick:j,onMouseDown:P,icon:Uo,expansionIcon:Qt,displayIcon:Sr,ownerState:ht},b,Vo,Wn.action==null?{}:{dragAndDropOverlayProps:Wn},Go.value==null?{}:{labelInputProps:Go},{ref:q})),h&&d.jsx(nC,Y({as:Ae},jt,{children:h}))]}))})});function aC(e){const{slots:t,slotProps:r,status:n}=e,o=sn(),a=Y({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??Hp,collapseIcon:o.icons.slots.collapseIcon??Vp}),i=o.icons.slotProps;let s;t?.icon?s="icon":n.expandable?n.expanded?s="collapseIcon":s="expandIcon":s="endIcon";const l=t?.[s]??a[s],c=Gr({elementType:l,externalSlotProps:u=>Y({},ur(i[s],u),ur(r?.[s],u)),ownerState:{}});return l?d.jsx(l,Y({},c)):null}const iC=["visible"],sC=Ee("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),lC=Ee("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Rr(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),cC=Ee("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Rr(e)&&e!=="editable"})(({theme:e})=>Y({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),uC=Ee("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Ee(Po,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Rr(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Ee(S.forwardRef((e,t)=>{const{visible:r}=e,n=mr(e,iC);return r?d.jsx(Ap,Y({},n,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function dC(e){return yl("MuiRichTreeView",e)}Wp("MuiRichTreeView",["root"]);const pC=(e,t)=>{const r=S.useRef({}),[n,o]=S.useState(()=>{const a={};return e.forEach(i=>{i.models&&Object.entries(i.models).forEach(([s,l])=>{r.current[s]={isControlled:t[s]!==void 0,getDefaultValue:l.getDefaultValue},a[s]=l.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(r.current).map(([a,i])=>{const s=t[a]??n[a];return[a,{value:s,setControlledValue:l=>{i.isControlled||o(c=>Y({},c,{[a]:l}))}}]}))};class hC{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,r,n={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),n.isFirst?o.highPriority.set(r,!0):o.regular.set(r,!0)}removeListener(t,r){this.events[t]&&(this.events[t].regular.delete(r),this.events[t].highPriority.delete(r))}removeAllListeners(){this.events={}}emit(t,...r){const n=this.events[t];if(!n)return;const o=Array.from(n.highPriority.keys()),a=Array.from(n.regular.keys());for(let i=o.length-1;i>=0;i-=1){const s=o[i];n.highPriority.has(s)&&s.apply(this,r)}for(let i=0;i<a.length;i+=1){const s=a[i];n.regular.has(s)&&s.apply(this,r)}}once(t,r){const n=this;this.on(t,function o(...a){n.removeListener(t,o),r.apply(n,a)})}}const mC=e=>e.isPropagationStopped!==void 0,Gp=()=>{const[e]=S.useState(()=>new hC),t=S.useCallback((...n)=>{const[o,a,i={}]=n;i.defaultMuiPrevented=!1,!(mC(i)&&i.isPropagationStopped())&&e.emit(o,a,i)},[e]),r=S.useCallback((n,o)=>(e.on(n,o),()=>{e.removeListener(n,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:r}}};Gp.params={};const Kp=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};Kp.params={};const xl=({params:e,state:t,setState:r})=>{S.useEffect(()=>{r(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:Y({},o,{id:Y({},o.id,{treeId:e.id??Dw()})}))},[r,e.id]);const n=e.id??t.id.treeId;return{getRootProps:()=>({id:n}),contextValue:{treeId:n}}};xl.params={id:!0};xl.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const fC=[Gp,Kp,xl],gC=["slots","slotProps","apiRef","experimentalFeatures"],yC=e=>{let{props:{slots:t,slotProps:r,apiRef:n,experimentalFeatures:o},plugins:a}=e,i=mr(e.props,gC);const s={};a.forEach(h=>{Object.assign(s,h.params)});const l={},c={};Object.keys(i).forEach(h=>{const f=i[h];s[h]?l[h]=f:c[h]=f});const u=o??{},p=a.reduce((h,f)=>f.getDefaultizedParams?f.getDefaultizedParams({params:h,experimentalFeatures:u}):h,l);return{apiRef:n,forwardedProps:c,pluginParams:p,slots:t??{},slotProps:r??{},experimentalFeatures:u}},bC=({plugins:e,instance:t,publicAPI:r,rootRef:n})=>({runItemPlugins:o=>{let a=null,i=null;const s=[],l={};e.forEach(p=>{if(!p.itemPlugin)return;const h=p.itemPlugin({props:o,rootRef:a,contentRef:i});h?.rootRef&&(a=h.rootRef),h?.contentRef&&(i=h.contentRef),h?.propsEnhancers&&(s.push(h.propsEnhancers),Object.keys(h.propsEnhancers).forEach(f=>{l[f]=!0}))});const c=p=>h=>{const f={};return s.forEach(g=>{const y=g[p];y!=null&&Object.assign(f,y(h))}),f},u=Object.fromEntries(Object.keys(l).map(p=>[p,c(p)]));return{contentRef:i,rootRef:a,propsEnhancers:u}},wrapItem:({itemId:o,children:a})=>{let i=a;for(let s=e.length-1;s>=0;s-=1){const l=e[s];l.wrapItem&&(i=l.wrapItem({itemId:o,children:i,instance:t}))}return i},wrapRoot:({children:o})=>{let a=o;for(let i=e.length-1;i>=0;i-=1){const s=e[i];s.wrapRoot&&(a=s.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:n,publicAPI:r});function xC(e){const t=S.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const vC=({plugins:e,rootRef:t,props:r})=>{const n=[...fC,...e],{pluginParams:o,forwardedProps:a,apiRef:i,experimentalFeatures:s,slots:l,slotProps:c}=yC({plugins:n,props:r}),u=pC(n,o),p=S.useRef({}).current,h=xC(i),f=S.useRef(null),g=On(f,t),y=bC({plugins:n,instance:p,publicAPI:h,rootRef:f}),[v,b]=S.useState(()=>{const k={};return n.forEach(j=>{j.getInitialState&&Object.assign(k,j.getInitialState(o))}),k}),C=[],w=k=>{const j=k({instance:p,params:o,slots:l,slotProps:c,experimentalFeatures:s,state:v,setState:b,rootRef:f,models:u,plugins:n});j.getRootProps&&C.push(j.getRootProps),j.publicAPI&&Object.assign(h,j.publicAPI),j.instance&&Object.assign(p,j.instance),j.contextValue&&Object.assign(y,j.contextValue)};return n.forEach(w),{getRootProps:(k={})=>{const j=Y({role:"tree"},a,k,{ref:g});return C.forEach(P=>{Object.assign(j,P(k))}),j},rootRef:g,contextValue:y,instance:p}},SC=(e,t,r)=>{e.$$publishEvent(t,r)},In="__TREE_VIEW_ROOT_PARENT_ID__",wC=e=>{const t={};return e.forEach((r,n)=>{t[r]=n}),t},CC=["children"],Qp=({items:e,isItemDisabled:t,getItemLabel:r,getItemId:n})=>{const o={},a={},i={[In]:[]},s=(c,u,p)=>{const h=n?n(c):c.id;if(h==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(`
149
149
  `));if(o[h]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${h}"`].join(`
150
150
  `));const f=r?r(c):c.label;if(f==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(c)].join(`
151
- `));o[h]={id:h,label:f,parentId:p,idAttribute:void 0,expandable:!!c.children?.length,disabled:t?t(c):!1,depth:u},a[h]=c;const g=p??Pn;i[g]||(i[g]=[]),i[g].push(h),c.children?.forEach(y=>s(y,u+1,h))};e.forEach(c=>s(c,0,null));const l={};return Object.keys(i).forEach(c=>{l[c]=wC(i[c])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:i,itemChildrenIndexes:l}},Bo=({instance:e,params:t,state:r,setState:n,experimentalFeatures:o})=>{const a=S.useCallback(v=>r.items.itemMetaMap[v],[r.items.itemMetaMap]),i=S.useCallback(v=>r.items.itemMap[v],[r.items.itemMap]),s=S.useCallback(()=>{const v=b=>{const C=r.items.itemMap[b],w=mr(C,CC),k=r.items.itemOrderedChildrenIds[b];return k&&(w.children=k.map(v)),w};return r.items.itemOrderedChildrenIds[Pn].map(v)},[r.items.itemMap,r.items.itemOrderedChildrenIds]),l=S.useCallback(v=>{if(v==null)return!1;let b=e.getItemMeta(v);if(!b)return!1;if(b.disabled)return!0;for(;b.parentId!=null;)if(b=e.getItemMeta(b.parentId),b.disabled)return!0;return!1},[e]),c=S.useCallback(v=>{const b=e.getItemMeta(v).parentId??Pn;return r.items.itemChildrenIndexes[b][v]},[e,r.items.itemChildrenIndexes]),u=S.useCallback(v=>r.items.itemOrderedChildrenIds[v??Pn]??[],[r.items.itemOrderedChildrenIds]),p=v=>{const b=e.getItemMeta(v);return b==null?null:document.getElementById(gl({treeId:r.id.treeId,itemId:v,id:b.idAttribute}))},h=v=>t.disabledItemsFocusable?!0:!e.isItemDisabled(v),f=S.useRef(!1),g=S.useCallback(()=>{f.current=!0},[]),y=S.useCallback(()=>f.current,[]);return S.useEffect(()=>{e.areItemUpdatesPrevented()||n(v=>{const b=Qp({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(v.items.itemMetaMap).forEach(C=>{b.itemMetaMap[C.id]||SC(e,"removeItem",{id:C.id})}),Y({},v,{items:b})})},[e,n,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:i,getItemDOMElement:p,getItemTree:s,getItemOrderedChildrenIds:u},instance:{getItemMeta:a,getItem:i,getItemTree:s,getItemsToRender:()=>{const v=b=>{const C=r.items.itemMetaMap[b];return{label:C.label,itemId:C.id,id:C.idAttribute,children:r.items.itemOrderedChildrenIds[b]?.map(v)}};return r.items.itemOrderedChildrenIds[Pn].map(v)},getItemIndex:c,getItemDOMElement:p,getItemOrderedChildrenIds:u,isItemDisabled:l,isItemNavigable:h,preventItemUpdates:g,areItemUpdatesPrevented:y},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};Bo.getInitialState=e=>({items:Qp({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Bo.getDefaultizedParams=({params:e})=>Y({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Bo.wrapRoot=({children:e,instance:t})=>d.jsx(fl.Provider,{value:r=>t.getItemMeta(r)?.depth??0,children:e});Bo.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const kC=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Tn(e){const t=S.useRef(e);return kC(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}const ui=({instance:e,params:t,models:r})=>{const n=S.useMemo(()=>{const p=new Map;return r.expandedItems.value.forEach(h=>{p.set(h,!0)}),p},[r.expandedItems.value]),o=(p,h)=>{t.onExpandedItemsChange?.(p,h),r.expandedItems.setControlledValue(h)},a=S.useCallback(p=>n.has(p),[n]),i=S.useCallback(p=>!!e.getItemMeta(p)?.expandable,[e]),s=Tn((p,h)=>{const f=e.isItemExpanded(h);e.setItemExpansion(p,h,!f)}),l=Tn((p,h,f)=>{if(e.isItemExpanded(h)===f)return;let g;f?g=[h].concat(r.expandedItems.value):g=r.expandedItems.value.filter(y=>y!==h),t.onItemExpansionToggle&&t.onItemExpansionToggle(p,h,f),o(p,g)}),c=(p,h)=>{const f=e.getItemMeta(h),g=e.getItemOrderedChildrenIds(f.parentId).filter(v=>e.isItemExpandable(v)&&!e.isItemExpanded(v)),y=r.expandedItems.value.concat(g);g.length>0&&(t.onItemExpansionToggle&&g.forEach(v=>{t.onItemExpansionToggle(p,v,!0)}),o(p,y))},u=S.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:l},instance:{isItemExpanded:a,isItemExpandable:i,setItemExpansion:l,toggleItemExpansion:s,expandAllSiblings:c},contextValue:{expansion:{expansionTrigger:u}}}};ui.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const PC=[];ui.getDefaultizedParams=({params:e})=>Y({},e,{defaultExpandedItems:e.defaultExpandedItems??PC});ui.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const xa=e=>Array.isArray(e)?e:e!=null?[e]:[],Wi=e=>{const t={};return e.forEach(r=>{t[r]=!0}),t},di=({instance:e,params:t,models:r})=>{const n=S.useRef(null),o=S.useRef({}),a=S.useMemo(()=>{const u=new Map;return Array.isArray(r.selectedItems.value)?r.selectedItems.value.forEach(p=>{u.set(p,!0)}):r.selectedItems.value!=null&&u.set(r.selectedItems.value,!0),u},[r.selectedItems.value]),i=(u,p)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const h=p.filter(g=>!e.isItemSelected(g)),f=r.selectedItems.value.filter(g=>!p.includes(g));h.forEach(g=>{t.onItemSelectionToggle(u,g,!0)}),f.forEach(g=>{t.onItemSelectionToggle(u,g,!1)})}else p!==r.selectedItems.value&&(r.selectedItems.value!=null&&t.onItemSelectionToggle(u,r.selectedItems.value,!1),p!=null&&t.onItemSelectionToggle(u,p,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(u,p),r.selectedItems.setControlledValue(p)},s=u=>a.has(u),l=({event:u,itemId:p,keepExistingSelection:h=!1,shouldBeSelected:f})=>{if(t.disableSelection)return;let g;if(h){const y=xa(r.selectedItems.value),v=e.isItemSelected(p);v&&(f===!1||f==null)?g=y.filter(b=>b!==p):!v&&(f===!0||f==null)?g=[p].concat(y):g=y}else f===!1||f==null&&e.isItemSelected(p)?g=t.multiSelect?[]:null:g=t.multiSelect?[p]:p;i(u,g),n.current=p,o.current={}},c=(u,[p,h])=>{if(t.disableSelection||!t.multiSelect)return;let f=xa(r.selectedItems.value).slice();Object.keys(o.current).length>0&&(f=f.filter(b=>!o.current[b]));const g=Wi(f),y=Lw(e,p,h),v=y.filter(b=>!g[b]);f=f.concat(v),i(u,f),o.current=Wi(y)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:l},instance:{isItemSelected:s,selectItem:l,selectAllNavigableItems:u=>{if(t.disableSelection||!t.multiSelect)return;const p=$w(e);i(u,p),o.current=Wi(p)},expandSelectionRange:(u,p)=>{if(n.current!=null){const[h,f]=Fp(e,p,n.current);c(u,[h,f])}},selectRangeFromStartToItem:(u,p)=>{c(u,[Io(e),p])},selectRangeFromItemToEnd:(u,p)=>{c(u,[p,qp(e)])},selectItemFromArrowNavigation:(u,p,h)=>{if(t.disableSelection||!t.multiSelect)return;let f=xa(r.selectedItems.value).slice();Object.keys(o.current).length===0?(f.push(h),o.current={[p]:!0,[h]:!0}):(o.current[p]||(o.current={}),o.current[h]?(f=f.filter(g=>g!==p),delete o.current[p]):(f.push(h),o.current[h]=!0)),i(u,f)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};di.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const IC=[];di.getDefaultizedParams=({params:e})=>Y({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?IC:null)});di.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};function jC(e){return e&&e.ownerDocument||document}const pu=1e3;class EC{constructor(t=pu){this.timeouts=new Map,this.cleanupTimeout=pu,this.cleanupTimeout=t}register(t,r,n){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof r=="function"&&r(),this.timeouts.delete(n.cleanupToken)},this.cleanupTimeout);this.timeouts.set(n.cleanupToken,o)}unregister(t){const r=this.timeouts.get(t.cleanupToken);r&&(this.timeouts.delete(t.cleanupToken),clearTimeout(r))}reset(){this.timeouts&&(this.timeouts.forEach((t,r)=>{this.unregister({cleanupToken:r})}),this.timeouts=void 0)}}class RC{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,r,n){this.registry.register(t,r,n)}unregister(t){this.registry.unregister(t)}reset(){}}class TC{}function NC(e){let t=0;return function(r,n,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new RC:new EC);const[a]=S.useState(new TC),i=S.useRef(null),s=S.useRef(void 0);s.current=o;const l=S.useRef(null);if(!i.current&&s.current){const c=(u,p)=>{p.defaultMuiPrevented||s.current?.(u,p)};i.current=r.$$subscribeEvent(n,c),t+=1,l.current={cleanupToken:t},e.registry.register(a,()=>{i.current?.(),i.current=null,l.current=null},l.current)}else!s.current&&i.current&&(i.current(),i.current=null,l.current&&(e.registry.unregister(l.current),l.current=null));S.useEffect(()=>{if(!i.current&&s.current){const c=(u,p)=>{p.defaultMuiPrevented||s.current?.(u,p)};i.current=r.$$subscribeEvent(n,c)}return l.current&&e.registry&&(e.registry.unregister(l.current),l.current=null),()=>{i.current?.(),i.current=null}},[r,n])}}const MC={registry:null},AC=NC(MC),Yp=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Yp(t.shadowRoot):t:null},_C=(e,t)=>{let r=xa(t).find(n=>{if(!e.isItemNavigable(n))return!1;const o=e.getItemMeta(n);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))});return r==null&&(r=Io(e)),r},vl=({instance:e,params:t,state:r,setState:n,models:o,rootRef:a})=>{const i=_C(e,o.selectedItems.value),s=Tn(v=>{const b=typeof v=="function"?v(r.focusedItemId):v;r.focusedItemId!==b&&n(C=>Y({},C,{focusedItemId:b}))}),l=S.useCallback(()=>!!a.current&&a.current.contains(Yp(jC(a.current))),[a]),c=S.useCallback(v=>r.focusedItemId===v&&l(),[r.focusedItemId,l]),u=v=>{const b=e.getItemMeta(v);return b&&(b.parentId==null||e.isItemExpanded(b.parentId))},p=(v,b)=>{const C=e.getItemDOMElement(b);C&&C.focus(),s(b),t.onItemFocus&&t.onItemFocus(v,b)},h=Tn((v,b)=>{u(b)&&p(v,b)}),f=Tn(()=>{if(r.focusedItemId!=null){if(e.getItemMeta(r.focusedItemId)){const v=e.getItemDOMElement(r.focusedItemId);v&&v.blur()}s(null)}}),g=v=>v===i;AC(e,"removeItem",({id:v})=>{r.focusedItemId===v&&p(null,i)});const y=v=>b=>{v.onFocus?.(b),!b.defaultMuiPrevented&&b.target===b.currentTarget&&p(b,i)};return{getRootProps:v=>({onFocus:y(v)}),publicAPI:{focusItem:h},instance:{isItemFocused:c,canItemBeTabbed:g,focusItem:h,removeFocusedItem:f}}};vl.getInitialState=()=>({focusedItemId:null});vl.params={onItemFocus:!0};function OC(e){return!!e&&e.length===1&&!!e.match(/\S/)}const Jp=({instance:e,params:t,state:r})=>{const n=Ey(),o=S.useRef({}),a=Tn(c=>{o.current=c(o.current)});S.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const c={},u=p=>{c[p.id]=p.label.substring(0,1).toLowerCase()};Object.values(r.items.itemMetaMap).forEach(u),o.current=c},[r.items.itemMetaMap,t.getItemId,e]);const i=(c,u)=>{const p=u.toLowerCase(),h=v=>{const b=ba(e,v);return b===null?Io(e):b};let f=null,g=h(c);const y={};for(;f==null&&!y[g];)o.current[g]===p?f=g:(y[g]=!0,g=h(g));return f},s=c=>!t.disableSelection&&!e.isItemDisabled(c),l=c=>!e.isItemDisabled(c)&&e.isItemExpandable(c);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(c,u)=>{if(c.defaultMuiPrevented||c.altKey||jo(c.target,c.currentTarget))return;const p=c.ctrlKey||c.metaKey,h=c.key;switch(!0){case(h===" "&&s(u)):{c.preventDefault(),t.multiSelect&&c.shiftKey?e.expandSelectionRange(c,u):e.selectItem({event:c,itemId:u,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case h==="Enter":{Qr(e,Dt)&&e.isItemEditable(u)&&!e.isItemBeingEdited(u)?e.setEditedItemId(u):l(u)?(e.toggleItemExpansion(c,u),c.preventDefault()):s(u)&&(t.multiSelect?(c.preventDefault(),e.selectItem({event:c,itemId:u,keepExistingSelection:!0})):e.isItemSelected(u)||(e.selectItem({event:c,itemId:u}),c.preventDefault()));break}case h==="ArrowDown":{const f=ba(e,u);f&&(c.preventDefault(),e.focusItem(c,f),t.multiSelect&&c.shiftKey&&s(f)&&e.selectItemFromArrowNavigation(c,u,f));break}case h==="ArrowUp":{const f=Bp(e,u);f&&(c.preventDefault(),e.focusItem(c,f),t.multiSelect&&c.shiftKey&&s(f)&&e.selectItemFromArrowNavigation(c,u,f));break}case(h==="ArrowRight"&&!n||h==="ArrowLeft"&&n):{if(p)return;if(e.isItemExpanded(u)){const f=ba(e,u);f&&(e.focusItem(c,f),c.preventDefault())}else l(u)&&(e.toggleItemExpansion(c,u),c.preventDefault());break}case(h==="ArrowLeft"&&!n||h==="ArrowRight"&&n):{if(p)return;if(l(u)&&e.isItemExpanded(u))e.toggleItemExpansion(c,u),c.preventDefault();else{const f=e.getItemMeta(u).parentId;f&&(e.focusItem(c,f),c.preventDefault())}break}case h==="Home":{s(u)&&t.multiSelect&&p&&c.shiftKey?e.selectRangeFromStartToItem(c,u):e.focusItem(c,Io(e)),c.preventDefault();break}case h==="End":{s(u)&&t.multiSelect&&p&&c.shiftKey?e.selectRangeFromItemToEnd(c,u):e.focusItem(c,qp(e)),c.preventDefault();break}case h==="*":{e.expandAllSiblings(c,u),c.preventDefault();break}case(String.fromCharCode(c.keyCode)==="A"&&p&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(c),c.preventDefault();break}case(!p&&!c.shiftKey&&OC(h)):{const f=i(u,h);f!=null&&(e.focusItem(c,f),c.preventDefault());break}}}}}};Jp.params={};const Xp=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});Xp.params={};const LC=[Bo,ui,di,vl,Jp,Xp,Dt],$C=["ownerState"];function DC({slots:e,slotProps:t,label:r,id:n,itemId:o,itemsToRender:a}){const i=e?.item??oC,s=Gr({elementType:i,externalSlotProps:t?.item,additionalProps:{itemId:o,id:n,label:r},ownerState:{itemId:o,label:r}}),l=mr(s,$C),c=S.useMemo(()=>a?d.jsx(Zp,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return d.jsx(i,Y({},l,{children:c}))}function Zp(e){const{itemsToRender:t,slots:r,slotProps:n}=e;return d.jsx(S.Fragment,{children:t.map(o=>d.jsx(DC,{slots:r,slotProps:n,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const BC=Op(),qC=e=>{const{classes:t}=e;return _p({root:["root"]},dC,t)},FC=Ee("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),zC=S.forwardRef(function(e,t){const r=BC({props:e,name:"MuiRichTreeView"}),{getRootProps:n,contextValue:o,instance:a}=vC({plugins:LC,rootRef:t,props:r}),{slots:i,slotProps:s}=r,l=qC(r),c=i?.root??FC,u=Gr({elementType:c,externalSlotProps:s?.root,className:l.root,getSlotProps:n,ownerState:r});return d.jsx(Aw,{value:o,children:d.jsx(c,Y({},u,{children:d.jsx(Zp,{slots:i,slotProps:s,itemsToRender:a.getItemsToRender()})}))})}),UC=tt(d.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),WC=tt([d.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),d.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),HC=tt(d.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),VC=tt(d.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function eh({items:e,defaultExpandedItems:t,navigate:r}){return d.jsx(zC,{items:JC(e,r),defaultExpandedItems:t,slots:{item:YC}})}const GC=qu.animated(Po);function KC(e){const t=qu.useSpring({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return d.jsx(GC,{style:t,...e})}function QC({item:e,...t}){const r=d.jsxs(cC,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&d.jsx(UC,{})||e.fileType==="notebook"&&d.jsx(WC,{})||e.fileType==="model"&&d.jsx(VC,{})||e.fileType=="database"&&d.jsx(HC,{})||d.jsx(Ep,{}),d.jsx(x.Typography,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?d.jsx(x.Tooltip,{title:e.error,placement:"right",children:r}):r}const YC=S.forwardRef(function(e,t){const{id:r,itemId:n,label:o,children:a,disabled:i,...s}=e,{getRootProps:l,getContentProps:c,getLabelProps:u,getIconContainerProps:p,getGroupTransitionProps:h,status:f,publicAPI:g}=qw({id:r,itemId:n,children:a,label:o,disabled:i,rootRef:t}),y=g.getItem(n);return f.selected=!1,f.focused=!1,d.jsx(bl,{itemId:n,children:d.jsxs(sC,{...l(s),children:[d.jsxs(lC,{...c(),...y.link&&{onClick:v=>y.link(v)},sx:{pointerEvents:!y.selectable&&"none"},children:[d.jsx(uC,{...p(),children:d.jsx(aC,{status:f})}),d.jsx(QC,{...u({item:y})})]}),a&&d.jsx(KC,{...h()})]})})});function JC(e,t){const r=new Map;return e.map(n=>{let o=r;const a=n.path.split("/");a.forEach((i,s)=>{s===a.length-1?o.set(i,n):(o.has(i)||o.set(i,new Map),o=o.get(i))})}),th(r,"",t)}function th(e,t,r){const n=[];return e.forEach((o,a)=>{const i=a.endsWith(".malloy")&&"model"||a.endsWith(".malloynb")&&"notebook"||a.endsWith(".parquet")&&"database"||"unknown";if(i!=="unknown"){const s=o;n.push({id:t+a,label:a,fileType:i,link:i==="model"||i==="notebook"?l=>r(t+a,l):void 0,selectable:i==="model"||i==="notebook",error:"error"in s?s.error:void 0})}else t+=`${a}/`,n.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:th(o,t,r)})}),n}const XC=new ai(new ct),ZC=["notebooks/","models/"];function e1({navigate:e}){const{projectName:t,packageName:r,versionId:n}=Ft(),{data:o,isError:a,error:i,isSuccess:s}=It({queryKey:["models",t,r,n],queryFn:l=>XC.listModels(t,r,n,l)});return d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),d.jsx(x.Divider,{}),d.jsxs(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!s&&!a&&d.jsx(zt,{text:"Fetching Models..."}),a&&d.jsx(Pt,{error:i,context:`${t} > ${r} > Models`}),s&&o.data.length>0&&d.jsx(eh,{items:o.data.sort((l,c)=>l.path.localeCompare(c.path)),navigate:e,defaultExpandedItems:ZC}),s&&o.data.length===0&&d.jsx(x.Typography,{variant:"body2",children:"No models found"})]})]})})}const t1=new Ed(new ct),r1=["notebooks/"];function n1({navigate:e}){const{projectName:t,packageName:r,versionId:n}=Ft(),{data:o,isError:a,error:i,isSuccess:s}=It({queryKey:["notebooks",t,r,n],queryFn:l=>t1.listNotebooks(t,r,n,l)});return d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),d.jsx(x.Divider,{}),d.jsxs(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!s&&!a&&d.jsx(zt,{text:"Fetching Notebooks..."}),a&&d.jsx(Pt,{error:i,context:`${t} > ${r} > Notebooks`}),s&&o.data.length>0&&d.jsx(eh,{items:o.data.sort((l,c)=>l.path.localeCompare(c.path)),defaultExpandedItems:r1,navigate:e}),s&&o.data.length===0&&d.jsx(x.Typography,{variant:"body2",children:"No notebooks found"})]})]})})}const o1=new Fb(new ct);function a1(){const{projectName:e,packageName:t,versionId:r}=Ft(),{data:n,isError:o,isLoading:a,error:i}=It({queryKey:["schedules",e,t,r],queryFn:s=>o1.listSchedules(e,t,r,s)});return a?d.jsx(zt,{text:"Fetching Schedules..."}):o?d.jsx(Pt,{error:i,context:`${e} > ${t} > Schedules`}):n.data.length?d.jsx(et,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),d.jsx(x.Divider,{}),d.jsx(x.Box,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:d.jsx(x.TableContainer,{component:x.Paper,children:d.jsxs(x.Table,{sx:{minWidth:300},size:"small",children:[d.jsx(x.TableHead,{children:d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{align:"left",children:"Resource"}),d.jsx(x.TableCell,{align:"left",children:"Schedule"}),d.jsx(x.TableCell,{align:"left",children:"Action"}),d.jsx(x.TableCell,{align:"left",children:"Connection"}),d.jsx(x.TableCell,{align:"left",children:"Last Run"}),d.jsx(x.TableCell,{align:"left",children:"Status"})]})}),d.jsx(x.TableBody,{children:n.data.map(s=>d.jsxs(x.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[d.jsx(x.TableCell,{align:"left",children:s.resource}),d.jsx(x.TableCell,{align:"left",children:s.schedule}),d.jsx(x.TableCell,{align:"left",children:s.action}),d.jsx(x.TableCell,{align:"left",children:s.connection}),d.jsx(x.TableCell,{align:"left",children:s.lastRunTime?new Date(s.lastRunTime).toLocaleString():"n/a"}),d.jsx(x.TableCell,{align:"left",children:s.lastRunStatus})]},s.resource))})]})})})]})}):null}const i1="README.malloynb";function s1({navigate:e}){return e||(e=t=>{window.location.href=t}),d.jsxs(x.Grid,{container:!0,spacing:2,columns:12,children:[d.jsx(x.Grid,{size:{xs:12,md:4},children:d.jsx(IS,{})}),d.jsx(x.Grid,{size:{xs:12,md:4},children:d.jsx(n1,{navigate:e})}),d.jsx(x.Grid,{size:{xs:12,md:4},children:d.jsx(e1,{navigate:e})}),d.jsx(x.Grid,{size:{xs:12,md:6},children:d.jsx(NS,{})}),d.jsx(x.Grid,{size:{xs:12,md:6},children:d.jsx(RS,{})}),d.jsx(x.Grid,{size:{xs:12,md:12},children:d.jsx(a1,{})}),d.jsx(x.Grid,{size:{xs:12,md:12},children:d.jsx(Ip,{notebookPath:i1,hideEmbeddingIcons:!0})})]})}const rh=_.createContext(void 0),l1=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,accessToken:t,children:r})=>{const n={server:e,accessToken:t};return d.jsx(rh.Provider,{value:n,children:r})},Sl=()=>{const e=_.useContext(rh);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},sa=tt(d.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),hu=tt(d.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}));function c1({cell:e,sourceAndPaths:t,onQueryChange:r,onSourceChange:n}){const o={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0,sourceName:e.sourceName,modelPath:e.modelPath};return d.jsx(wp,{sourceAndPaths:t,existingQuery:o,existingSourceName:e.sourceName,onQueryChange:r,onSourceChange:n})}function u1({cell:e,expandCodeCell:t,expandEmbedding:r,hideEmbeddingIcons:n,editingMalloy:o,editingMarkdown:a,sourceAndPaths:i,onCellChange:s,onClose:l,onEdit:c,onDelete:u,addButtonCallback:p}){const[h,f]=_.useState(t),[g,y]=_.useState(r),[v,b]=_.useState(),[C]=_.useState(),[w,k]=_.useState(mo()),[j,P]=_.useState(!1),[B,F]=_.useState(e.sourceName?i.findIndex(O=>O.sourceInfo.name===e.sourceName):0);_.useEffect(()=>{e.isMarkdown||Xr(e.value,"malloy").then(O=>{b(O)})},[e]);const[L,m]=_.useState(e.value);_.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const R=d1(O=>{s({...e,value:O})}),[D,$]=_.useState(!1),H=()=>{u(),$(!1)},X=i.length===0,V=()=>{const O=i[B],q=O?.modelPath||e.modelPath||"",oe=O?.sourceInfo.name||e.sourceName||"";s({...e,value:w.query,result:w.malloyResult?JSON.stringify(w.malloyResult):void 0,queryInfo:w.malloyQuery?JSON.stringify(w.malloyQuery):void 0,sourceName:oe,modelPath:q})},ce=d.jsx(x.Tooltip,{title:"Delete Cell",children:d.jsx(x.IconButton,{size:"small",onClick:()=>$(!0),children:d.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),K=d.jsxs(x.Dialog,{open:D,onClose:()=>$(!1),children:[d.jsx(x.DialogTitle,{children:"Confirm Delete"}),d.jsx(x.DialogContent,{children:d.jsx(x.Typography,{children:"Are you sure you want to delete this cell?"})}),d.jsxs(x.DialogActions,{children:[d.jsx(x.Button,{onClick:()=>$(!1),children:"Cancel"}),d.jsx(x.Button,{onClick:H,color:"error",children:"Delete"})]})]}),se=e.isMarkdown?d.jsxs(d.Fragment,{children:[a?d.jsx(x.Tooltip,{title:"Save",children:d.jsx(x.IconButton,{size:"small",onClick:l,children:d.jsx(sa,{})})}):d.jsx(x.Tooltip,{title:"Edit",children:d.jsx(x.IconButton,{size:"small",onClick:c,children:d.jsx(hu,{})})}),!a&&ce]}):d.jsxs(d.Fragment,{children:[!o&&d.jsx(x.Tooltip,{title:h?"Hide Code":"View Code",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{f(!h)},children:d.jsx(kp,{})})}),!n&&!o&&e.result&&d.jsx(x.Tooltip,{title:g?"Hide Embedding":"View Embedding",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{y(!g)},children:d.jsx(Oo,{})})}),o&&d.jsx(x.Tooltip,{title:"Save",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{V(),l()},children:d.jsx(sa,{})})}),!o&&d.jsx(x.Tooltip,{title:"Edit",children:d.jsx(x.IconButton,{size:"small",onClick:c,children:d.jsx(hu,{})})}),!o&&ce]}),Z=o||a,J=a?d.jsx(x.Tooltip,{title:"Save",children:d.jsx(x.IconButton,{size:"small",onClick:l,children:d.jsx(sa,{})})}):o?d.jsx(x.Tooltip,{title:"Save",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{V(),l()},children:d.jsx(sa,{})})}):null,W=j&&d.jsx(x.Box,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!Z&&d.jsxs(d.Fragment,{children:[p(!0),p(!1),se]})||J});return d.jsxs(et,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>P(!0),onMouseLeave:()=>{P(!1)},children:[W,e.isMarkdown?d.jsx(d.Fragment,{children:a?d.jsx(Wh,{value:L,preview:"edit",autoFocus:!0,onChange:O=>{m(O),R(O)},onBlur:()=>{V(),j||l()}}):d.jsx(x.Box,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:L?d.jsx(x.Box,{onClick:c,sx:{cursor:"pointer"},children:d.jsx(Ms,{children:L})}):d.jsxs(x.Box,{onClick:c,sx:{cursor:"pointer"},children:[d.jsx(x.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),d.jsx(x.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):d.jsxs(d.Fragment,{children:[d.jsx(x.Collapse,{in:g,timeout:"auto",unmountOnExit:!0,children:d.jsx(x.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:d.jsx(x.Typography,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:C}})})}),d.jsx(x.Collapse,{in:h,timeout:"auto",unmountOnExit:!0,children:d.jsx(x.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:d.jsx(x.Typography,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:v}})})}),o&&(X?d.jsxs(d.Fragment,{children:[d.jsx(x.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),d.jsx(x.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):d.jsx(c1,{sourceAndPaths:i,onQueryChange:O=>{k(O)},cell:e,onSourceChange:F})),!o&&e.result&&d.jsx(et,{variant:"outlined",sx:{borderRadius:0},children:d.jsx(Pp,{result:e.result,minHeight:300,maxHeight:800})}),!o&&!e.result&&d.jsxs(x.Box,{onClick:c,sx:{cursor:"pointer"},children:[d.jsx(x.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),d.jsx(x.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),D&&K]})}function d1(e,t=2e3){const r=_.useRef(void 0);return _.useCallback(n=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{e(n)},t)},[e,t])}const nh=_.createContext(void 0);function oh({children:e,userContext:t,notebookStorage:r}){const n=_.useMemo(()=>({notebookStorage:r,userContext:t}),[r,t]);return d.jsx(nh.Provider,{value:n,children:e})}function ah(){const e=_.useContext(nh);if(!e)throw new Error("useNotebookStorage must be used within a NotebookStorageProvider");return e}const p1=tt(d.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),h1=tt(d.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),m1=new ai(new ct);function f1({initialSelectedModels:e,onModelChange:t}){const{projectName:r,packageName:n,versionId:o}=Ft(),{data:a,isLoading:i,isSuccess:s,isError:l,error:c}=It({queryKey:["models",r,n,o],queryFn:b=>m1.listModels(r,n,o,b)}),[u,p]=_.useState(e||[]),[h,f]=_.useState(null);_.useEffect(()=>{p(e||[])},[e]);const g=b=>{const C=u.filter(w=>w!==b);p(C),t(C)},y=b=>{const C=[...u,b];p(C),t(C),f(null)};let v=[];return s&&a?.data&&(v=a.data.filter(b=>!u.includes(b.path)).map(b=>b.path)),l?d.jsx(Pt,{error:c,context:`${r} > ${n} > Model Picker`}):d.jsxs(d.Fragment,{children:[d.jsxs(x.FormControl,{fullWidth:!0,children:[i&&d.jsx(x.Typography,{children:"Loading..."}),d.jsxs(x.Stack,{direction:"row",spacing:1,children:[u.map(b=>d.jsx(x.Chip,{label:b,onDelete:()=>g(b),deleteIcon:d.jsx(p1,{}),sx:{marginBottom:"5px"}},b)),d.jsx(x.Button,{size:"small",startIcon:d.jsx(h1,{}),onClick:b=>f(b.currentTarget),disabled:i||l||v.length===0,children:"Add Model"})]})]}),d.jsxs(x.Menu,{anchorEl:h,open:!!h,onClose:()=>f(null),children:[d.jsx(x.Typography,{variant:"subtitle2",sx:{ml:1},children:"Models"}),d.jsx(x.Divider,{}),v.length===0?d.jsx(x.MenuItem,{disabled:!0,children:"No models available"}):v.map(b=>d.jsx(x.MenuItem,{onClick:()=>y(b),children:d.jsx(x.Typography,{variant:"body2",children:b})},b))]})]})}const g1=new ai(new ct);function y1({notebookPath:e,expandCodeCells:t,expandEmbeddings:r,hideEmbeddingIcons:n}){const o=Fn(),{projectName:a,packageName:i,versionId:s}=Ft(),{server:l,accessToken:c}=Sl(),{notebookStorage:u,userContext:p}=ah();if(!a||!i)throw new Error("Project and package must be provided via PubliserPackageProvider");if(!u||!p)throw new Error("Notebook storage and user context must be provided via NotebookStorageProvider");const[h,f]=_.useState(),[g,y]=_.useState(),[v,b]=_.useState(),[C,w]=_.useState([]),[k,j]=_.useState(null),[P,B]=_.useState(null),F=!!k,L=()=>{j(null),B(null)},m=(Z,J)=>{h.insertCell(J,{isMarkdown:Z,value:""}),V(),Z?b(J):y(J),L()},[R,D]=_.useState(!1),$=()=>{D(!0)},H=Z=>{e&&u&&p&&u.deleteNotebook(p,e),D(!1),o(`/${a}/${i}`,Z)},X=()=>{D(!1)},V=_.useCallback(()=>{f(h.saveNotebook())},[h]);if(_.useEffect(()=>{h&&(async()=>{const Z=new Map(C.map(({modelPath:O,sourceInfos:q})=>[O,q])),J=[],W=[];for(const O of h.getModels())Z.has(O)?J.push({modelPath:O,sourceInfos:Z.get(O)}):(console.log("Fetching model from Publisher",O),W.push(g1.getModel(a,i,O,s,{baseURL:l,withCredentials:!c}).then(q=>({modelPath:O,sourceInfos:q.data.sourceInfos.map(oe=>JSON.parse(oe))}))));if(W.length>0){const O=await Promise.all(W);w([...J,...O])}else w(J)})()},[c,h,i,a,l,s]),_.useEffect(()=>{e&&f(fo.loadNotebook(u,p,e))},[e,u,p]),!h)return d.jsx("div",{children:"Loading..."});const ce=Z=>{const J=[];for(const W of Z)for(const O of W.sourceInfos)J.push({modelPath:W.modelPath,sourceInfo:O});return J},K=(Z,J)=>d.jsx(x.Button,{size:"small",startIcon:d.jsx(kS,{}),onClick:()=>m(Z,J),variant:"contained",sx:{backgroundColor:"#fff",color:W=>W.palette.mode==="dark"?W.palette.grey[100]:W.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:W=>W.palette.mode==="dark"?W.palette.grey[500]:W.palette.grey[300],boxShadow:"none"}},children:Z?"Markdown":"Explore"}),se=d.jsxs(x.Box,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[K(!1,h.getCells().length),K(!0,h.getCells().length)]});return d.jsxs(et,{variant:"outlined",children:[d.jsxs(kt,{children:[d.jsxs(gn,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[d.jsxs(gn,{direction:"row",spacing:1,alignItems:"center",children:[d.jsx(x.Typography,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),d.jsx(x.Typography,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${a} > ${i} > ${e}`})]}),d.jsxs(gn,{sx:{display:"flex",flexDirection:"row",gap:1},children:[d.jsx(x.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:d.jsx(b1,{notebookData:h})}),d.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[d.jsx(x.Button,{color:"error",onClick:$,size:"small",children:"Delete"}),d.jsxs(x.Dialog,{open:R,onClose:X,children:[d.jsx(x.DialogTitle,{children:"Delete Notebook"}),d.jsx(x.DialogContent,{children:d.jsxs(x.DialogContentText,{children:['Are you sure you want to delete the notebook "',e,'"? This action cannot be undone.']})}),d.jsxs(x.DialogActions,{children:[d.jsx(x.Button,{onClick:X,color:"primary",size:"small",children:"Cancel"}),d.jsx(x.Button,{onClick:Z=>H(Z),color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),d.jsx(x.Divider,{}),d.jsxs(gn,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[d.jsx(x.Box,{sx:{flex:1},children:d.jsx(f1,{initialSelectedModels:h.getModels(),onModelChange:Z=>{f(h.setModels(Z)),V()}})}),d.jsx(x.Box,{sx:{flex:1}})]})]}),d.jsx(ci,{children:d.jsxs(gn,{children:[h.getCells().length===0&&d.jsxs(d.Fragment,{children:[d.jsx(x.Typography,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),d.jsx(x.Typography,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),h.getCells().map((Z,J)=>d.jsx(_.Fragment,{children:d.jsx(u1,{cell:Z,addButtonCallback:W=>K(W,J),sourceAndPaths:ce(C),expandCodeCell:t,expandEmbedding:r,hideEmbeddingIcons:n,editingMarkdown:v===J,editingMalloy:g===J,onDelete:()=>{f(h.deleteCell(J)),V()},onCellChange:W=>{f(h.setCell(J,W)),V()},onEdit:()=>{Z.isMarkdown?b(J):y(J)},onClose:()=>{Z.isMarkdown?b(void 0):y(void 0)}})},`${J}-${h.getCells().length}`)),se,d.jsxs(x.Menu,{anchorEl:k,open:F,onClose:L,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[d.jsx(x.MenuItem,{onClick:()=>m(!0,P??0),children:"Add Markdown"}),d.jsx(x.MenuItem,{onClick:()=>m(!1,P??0),children:"Add Malloy"})]}),d.jsx(gn,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function b1({notebookData:e}){const[t,r]=_.useState(!1);return d.jsx(x.Button,{color:"primary",onClick:async()=>{if(!e)return;const n=e.toMalloyNotebook();try{await navigator.clipboard.writeText(n),r(!0),setTimeout(()=>r(!1),1500)}catch{r(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}function x1({onNotebookClick:e}){const{notebookStorage:t,userContext:r}=ah(),[n,o]=_.useState([]);return _.useEffect(()=>{t&&r&&o(t.listNotebooks(r))},[t,r]),d.jsxs(d.Fragment,{children:[d.jsx(x.Divider,{}),d.jsx(x.Box,{sx:{maxHeight:"300px",overflow:"auto","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0,0,0,0.2)",borderRadius:"4px"}},children:d.jsxs(x.List,{dense:!0,children:[n.length===0&&d.jsx(x.ListItem,{children:d.jsx(x.ListItemText,{primary:"No notebooks found.",sx:{textAlign:"center"}})}),n.map(a=>d.jsx(x.ListItem,{onClick:i=>e(a,i),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:d.jsx(x.ListItemText,{primary:a})},a))]})})]})}const v1=new Td(new ct);function S1(){const{projectName:e}=sh(),{data:t,isSuccess:r,isError:n,error:o}=It({queryKey:["about",e],queryFn:a=>v1.getProject(e,!1,a)});return d.jsxs(d.Fragment,{children:[!r&&!n&&d.jsx(zt,{text:"Fetching About..."}),r&&d.jsxs(et,{variant:"outlined",sx:{p:2},children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),d.jsx(et,{sx:{p:1},children:d.jsx(Ms,{children:t.data.readme})})]}),n&&d.jsx(Pt,{error:o,context:`${e} > About`})]})}const w1=new Rd(new ct);function C1({navigate:e}){const{projectName:t}=sh(),{data:r,isSuccess:n,isError:o,error:a}=It({queryKey:["packages",t],queryFn:i=>w1.listPackages(t,i)});return d.jsxs(d.Fragment,{children:[!n&&!o&&d.jsx(zt,{text:"Fetching Packages..."}),n&&d.jsxs(et,{variant:"outlined",sx:{p:2},children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),d.jsx(x.Grid,{container:!0,spacing:2,columns:12,children:r.data.sort((i,s)=>i.name.localeCompare(s.name)).map(i=>d.jsx(x.Grid,{size:{xs:12,sm:12,md:12,lg:4},children:d.jsx(et,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",transform:"translateY(-2px)"}},onClick:s=>e(i.name+"/",s),children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",color:"primary.main",children:i.name}),d.jsx(x.Box,{sx:{maxHeight:"120px",overflowY:"auto"},children:d.jsx(x.Typography,{variant:"body2",children:i.description})})]})})},i.name))})]}),o&&d.jsx(Pt,{error:a,context:`${t} > Packages`})]})}const ih=_.createContext(void 0);function sh(){const e=_.useContext(ih);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function k1({children:e,projectName:t}){return d.jsx(ih.Provider,{value:{projectName:t},children:e})}function P1({navigate:e}){return d.jsxs(x.Grid,{container:!0,spacing:2,columns:12,children:[d.jsx(x.Grid,{size:{xs:12,md:12},children:d.jsx(C1,{navigate:e})}),d.jsx(x.Grid,{size:{xs:12,md:12},children:d.jsx(S1,{})})]})}const I1=new Td(new ct);function j1({navigate:e}){const{data:t,isSuccess:r,isError:n,error:o}=It({queryKey:["projects"],queryFn:a=>I1.listProjects(a)});return n?d.jsx(Pt,{error:o,context:"Projects List"}):r?t.data.length===0?d.jsx(x.Typography,{variant:"h4",children:"No projects found"}):t.data.length===1?(e(`/${t.data[0].name}/`),d.jsx(d.Fragment,{})):d.jsx(x.Grid,{container:!0,spacing:2,columns:12,sx:{mb:a=>a.spacing(2)},children:t.data.map(a=>d.jsx(x.Grid,{children:d.jsx(x.Typography,{variant:"h1",onClick:i=>e(`/${a.name}/`,i),children:a.name})},a.name))}):d.jsx(zt,{text:"Loading projects..."})}function E1({projectName:e,packageName:t}){const[r,n]=_.useState(""),[o,a]=_.useState(null),[i,s]=_.useState(!1),[l,c]=_.useState(!1),u=Fn(),p=!!o,h=C=>{a(C.currentTarget)},f=()=>{a(null)},g=()=>{c(!1)},y=()=>{s(!1)},v=(C,w)=>{c(!1),u(`/${e}/${t}/scratchNotebook/${encodeURIComponent(C)}`,w)},b=C=>{s(!1),u(`/${e}/${t}/scratchNotebook/${encodeURIComponent(r)}`,C),n("")};return d.jsxs(d.Fragment,{children:[d.jsx(x.Button,{"aria-controls":p?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":p?"true":void 0,onClick:h,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),d.jsxs(x.Menu,{id:"basic-menu",anchorEl:o,open:p,onClose:f,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[d.jsxs(x.MenuItem,{onClick:()=>{s(!0),f()},sx:{py:1,px:2},children:[d.jsx(x.ListItemIcon,{children:d.jsx(yo.Add,{fontSize:"small"})}),d.jsxs(x.ListItemText,{children:[d.jsx(x.Typography,{variant:"body2",fontWeight:500,children:"New Workbook"}),d.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),d.jsxs(x.MenuItem,{onClick:()=>{c(!0),f()},sx:{py:1,px:2},children:[d.jsx(x.ListItemIcon,{children:d.jsx(yo.Launch,{fontSize:"small"})}),d.jsxs(x.ListItemText,{children:[d.jsx(x.Typography,{variant:"body2",fontWeight:500,children:"Open Workbook"}),d.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),d.jsxs(x.Dialog,{open:i,onClose:y,maxWidth:"sm",fullWidth:!0,children:[d.jsxs(x.DialogTitle,{sx:{pb:1,pt:2,px:2},children:[d.jsx(x.Typography,{variant:"h6",fontWeight:600,sx:{mb:.5},children:"Create New Workbook"}),d.jsx(x.Typography,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),d.jsx(x.DialogContent,{sx:{px:2,pb:2},children:d.jsxs(x.Stack,{spacing:2,sx:{mt:1},children:[d.jsx(x.FormControl,{fullWidth:!0,children:d.jsx(x.TextField,{label:"Workbook Name",value:r,onChange:C=>n(C.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),d.jsxs(x.Stack,{direction:"row",spacing:1,justifyContent:"flex-end",children:[d.jsx(x.Button,{onClick:y,variant:"outlined",size:"small",children:"Cancel"}),d.jsx(x.Button,{onClick:C=>b(C),variant:"contained",disabled:!r.trim(),size:"small",children:"Create Workbook"})]})]})})]}),d.jsxs(x.Dialog,{open:l,onClose:g,maxWidth:"md",fullWidth:!0,children:[d.jsxs(x.DialogTitle,{sx:{pb:1,pt:2,px:2},children:[d.jsx(x.Typography,{variant:"h6",fontWeight:600,sx:{mb:.5},children:"Open Workbook"}),d.jsx(x.Typography,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),d.jsx(x.DialogContent,{sx:{px:2,pb:2},children:d.jsx(oh,{notebookStorage:new jp,userContext:{project:e,package:t},children:d.jsx(x1,{onNotebookClick:v})})})]})]})}new jd(new ct);De.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function Zr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const Yr="$$material",R1=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function T1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=R1(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function c(h,f){const g=i.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:f)-n/100}${r})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):s(h)}function p(h){const f=i.indexOf(h);return f===0?s(i[1]):f===i.length-1?l(i[f]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:l,between:c,only:u,not:p,unit:r,...o}}var Hi={exports:{}},ve={};/**
151
+ `));o[h]={id:h,label:f,parentId:p,idAttribute:void 0,expandable:!!c.children?.length,disabled:t?t(c):!1,depth:u},a[h]=c;const g=p??In;i[g]||(i[g]=[]),i[g].push(h),c.children?.forEach(y=>s(y,u+1,h))};e.forEach(c=>s(c,0,null));const l={};return Object.keys(i).forEach(c=>{l[c]=wC(i[c])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:i,itemChildrenIndexes:l}},Bo=({instance:e,params:t,state:r,setState:n,experimentalFeatures:o})=>{const a=S.useCallback(v=>r.items.itemMetaMap[v],[r.items.itemMetaMap]),i=S.useCallback(v=>r.items.itemMap[v],[r.items.itemMap]),s=S.useCallback(()=>{const v=b=>{const C=r.items.itemMap[b],w=mr(C,CC),k=r.items.itemOrderedChildrenIds[b];return k&&(w.children=k.map(v)),w};return r.items.itemOrderedChildrenIds[In].map(v)},[r.items.itemMap,r.items.itemOrderedChildrenIds]),l=S.useCallback(v=>{if(v==null)return!1;let b=e.getItemMeta(v);if(!b)return!1;if(b.disabled)return!0;for(;b.parentId!=null;)if(b=e.getItemMeta(b.parentId),b.disabled)return!0;return!1},[e]),c=S.useCallback(v=>{const b=e.getItemMeta(v).parentId??In;return r.items.itemChildrenIndexes[b][v]},[e,r.items.itemChildrenIndexes]),u=S.useCallback(v=>r.items.itemOrderedChildrenIds[v??In]??[],[r.items.itemOrderedChildrenIds]),p=v=>{const b=e.getItemMeta(v);return b==null?null:document.getElementById(gl({treeId:r.id.treeId,itemId:v,id:b.idAttribute}))},h=v=>t.disabledItemsFocusable?!0:!e.isItemDisabled(v),f=S.useRef(!1),g=S.useCallback(()=>{f.current=!0},[]),y=S.useCallback(()=>f.current,[]);return S.useEffect(()=>{e.areItemUpdatesPrevented()||n(v=>{const b=Qp({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(v.items.itemMetaMap).forEach(C=>{b.itemMetaMap[C.id]||SC(e,"removeItem",{id:C.id})}),Y({},v,{items:b})})},[e,n,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:i,getItemDOMElement:p,getItemTree:s,getItemOrderedChildrenIds:u},instance:{getItemMeta:a,getItem:i,getItemTree:s,getItemsToRender:()=>{const v=b=>{const C=r.items.itemMetaMap[b];return{label:C.label,itemId:C.id,id:C.idAttribute,children:r.items.itemOrderedChildrenIds[b]?.map(v)}};return r.items.itemOrderedChildrenIds[In].map(v)},getItemIndex:c,getItemDOMElement:p,getItemOrderedChildrenIds:u,isItemDisabled:l,isItemNavigable:h,preventItemUpdates:g,areItemUpdatesPrevented:y},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};Bo.getInitialState=e=>({items:Qp({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Bo.getDefaultizedParams=({params:e})=>Y({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Bo.wrapRoot=({children:e,instance:t})=>d.jsx(fl.Provider,{value:r=>t.getItemMeta(r)?.depth??0,children:e});Bo.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const kC=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Nn(e){const t=S.useRef(e);return kC(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}const ui=({instance:e,params:t,models:r})=>{const n=S.useMemo(()=>{const p=new Map;return r.expandedItems.value.forEach(h=>{p.set(h,!0)}),p},[r.expandedItems.value]),o=(p,h)=>{t.onExpandedItemsChange?.(p,h),r.expandedItems.setControlledValue(h)},a=S.useCallback(p=>n.has(p),[n]),i=S.useCallback(p=>!!e.getItemMeta(p)?.expandable,[e]),s=Nn((p,h)=>{const f=e.isItemExpanded(h);e.setItemExpansion(p,h,!f)}),l=Nn((p,h,f)=>{if(e.isItemExpanded(h)===f)return;let g;f?g=[h].concat(r.expandedItems.value):g=r.expandedItems.value.filter(y=>y!==h),t.onItemExpansionToggle&&t.onItemExpansionToggle(p,h,f),o(p,g)}),c=(p,h)=>{const f=e.getItemMeta(h),g=e.getItemOrderedChildrenIds(f.parentId).filter(v=>e.isItemExpandable(v)&&!e.isItemExpanded(v)),y=r.expandedItems.value.concat(g);g.length>0&&(t.onItemExpansionToggle&&g.forEach(v=>{t.onItemExpansionToggle(p,v,!0)}),o(p,y))},u=S.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:l},instance:{isItemExpanded:a,isItemExpandable:i,setItemExpansion:l,toggleItemExpansion:s,expandAllSiblings:c},contextValue:{expansion:{expansionTrigger:u}}}};ui.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const PC=[];ui.getDefaultizedParams=({params:e})=>Y({},e,{defaultExpandedItems:e.defaultExpandedItems??PC});ui.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const xa=e=>Array.isArray(e)?e:e!=null?[e]:[],Wi=e=>{const t={};return e.forEach(r=>{t[r]=!0}),t},di=({instance:e,params:t,models:r})=>{const n=S.useRef(null),o=S.useRef({}),a=S.useMemo(()=>{const u=new Map;return Array.isArray(r.selectedItems.value)?r.selectedItems.value.forEach(p=>{u.set(p,!0)}):r.selectedItems.value!=null&&u.set(r.selectedItems.value,!0),u},[r.selectedItems.value]),i=(u,p)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const h=p.filter(g=>!e.isItemSelected(g)),f=r.selectedItems.value.filter(g=>!p.includes(g));h.forEach(g=>{t.onItemSelectionToggle(u,g,!0)}),f.forEach(g=>{t.onItemSelectionToggle(u,g,!1)})}else p!==r.selectedItems.value&&(r.selectedItems.value!=null&&t.onItemSelectionToggle(u,r.selectedItems.value,!1),p!=null&&t.onItemSelectionToggle(u,p,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(u,p),r.selectedItems.setControlledValue(p)},s=u=>a.has(u),l=({event:u,itemId:p,keepExistingSelection:h=!1,shouldBeSelected:f})=>{if(t.disableSelection)return;let g;if(h){const y=xa(r.selectedItems.value),v=e.isItemSelected(p);v&&(f===!1||f==null)?g=y.filter(b=>b!==p):!v&&(f===!0||f==null)?g=[p].concat(y):g=y}else f===!1||f==null&&e.isItemSelected(p)?g=t.multiSelect?[]:null:g=t.multiSelect?[p]:p;i(u,g),n.current=p,o.current={}},c=(u,[p,h])=>{if(t.disableSelection||!t.multiSelect)return;let f=xa(r.selectedItems.value).slice();Object.keys(o.current).length>0&&(f=f.filter(b=>!o.current[b]));const g=Wi(f),y=Lw(e,p,h),v=y.filter(b=>!g[b]);f=f.concat(v),i(u,f),o.current=Wi(y)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:l},instance:{isItemSelected:s,selectItem:l,selectAllNavigableItems:u=>{if(t.disableSelection||!t.multiSelect)return;const p=$w(e);i(u,p),o.current=Wi(p)},expandSelectionRange:(u,p)=>{if(n.current!=null){const[h,f]=Fp(e,p,n.current);c(u,[h,f])}},selectRangeFromStartToItem:(u,p)=>{c(u,[Io(e),p])},selectRangeFromItemToEnd:(u,p)=>{c(u,[p,qp(e)])},selectItemFromArrowNavigation:(u,p,h)=>{if(t.disableSelection||!t.multiSelect)return;let f=xa(r.selectedItems.value).slice();Object.keys(o.current).length===0?(f.push(h),o.current={[p]:!0,[h]:!0}):(o.current[p]||(o.current={}),o.current[h]?(f=f.filter(g=>g!==p),delete o.current[p]):(f.push(h),o.current[h]=!0)),i(u,f)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};di.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const IC=[];di.getDefaultizedParams=({params:e})=>Y({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?IC:null)});di.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};function jC(e){return e&&e.ownerDocument||document}const pu=1e3;class EC{constructor(t=pu){this.timeouts=new Map,this.cleanupTimeout=pu,this.cleanupTimeout=t}register(t,r,n){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof r=="function"&&r(),this.timeouts.delete(n.cleanupToken)},this.cleanupTimeout);this.timeouts.set(n.cleanupToken,o)}unregister(t){const r=this.timeouts.get(t.cleanupToken);r&&(this.timeouts.delete(t.cleanupToken),clearTimeout(r))}reset(){this.timeouts&&(this.timeouts.forEach((t,r)=>{this.unregister({cleanupToken:r})}),this.timeouts=void 0)}}class RC{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,r,n){this.registry.register(t,r,n)}unregister(t){this.registry.unregister(t)}reset(){}}class TC{}function NC(e){let t=0;return function(r,n,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new RC:new EC);const[a]=S.useState(new TC),i=S.useRef(null),s=S.useRef(void 0);s.current=o;const l=S.useRef(null);if(!i.current&&s.current){const c=(u,p)=>{p.defaultMuiPrevented||s.current?.(u,p)};i.current=r.$$subscribeEvent(n,c),t+=1,l.current={cleanupToken:t},e.registry.register(a,()=>{i.current?.(),i.current=null,l.current=null},l.current)}else!s.current&&i.current&&(i.current(),i.current=null,l.current&&(e.registry.unregister(l.current),l.current=null));S.useEffect(()=>{if(!i.current&&s.current){const c=(u,p)=>{p.defaultMuiPrevented||s.current?.(u,p)};i.current=r.$$subscribeEvent(n,c)}return l.current&&e.registry&&(e.registry.unregister(l.current),l.current=null),()=>{i.current?.(),i.current=null}},[r,n])}}const MC={registry:null},AC=NC(MC),Yp=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Yp(t.shadowRoot):t:null},_C=(e,t)=>{let r=xa(t).find(n=>{if(!e.isItemNavigable(n))return!1;const o=e.getItemMeta(n);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))});return r==null&&(r=Io(e)),r},vl=({instance:e,params:t,state:r,setState:n,models:o,rootRef:a})=>{const i=_C(e,o.selectedItems.value),s=Nn(v=>{const b=typeof v=="function"?v(r.focusedItemId):v;r.focusedItemId!==b&&n(C=>Y({},C,{focusedItemId:b}))}),l=S.useCallback(()=>!!a.current&&a.current.contains(Yp(jC(a.current))),[a]),c=S.useCallback(v=>r.focusedItemId===v&&l(),[r.focusedItemId,l]),u=v=>{const b=e.getItemMeta(v);return b&&(b.parentId==null||e.isItemExpanded(b.parentId))},p=(v,b)=>{const C=e.getItemDOMElement(b);C&&C.focus(),s(b),t.onItemFocus&&t.onItemFocus(v,b)},h=Nn((v,b)=>{u(b)&&p(v,b)}),f=Nn(()=>{if(r.focusedItemId!=null){if(e.getItemMeta(r.focusedItemId)){const v=e.getItemDOMElement(r.focusedItemId);v&&v.blur()}s(null)}}),g=v=>v===i;AC(e,"removeItem",({id:v})=>{r.focusedItemId===v&&p(null,i)});const y=v=>b=>{v.onFocus?.(b),!b.defaultMuiPrevented&&b.target===b.currentTarget&&p(b,i)};return{getRootProps:v=>({onFocus:y(v)}),publicAPI:{focusItem:h},instance:{isItemFocused:c,canItemBeTabbed:g,focusItem:h,removeFocusedItem:f}}};vl.getInitialState=()=>({focusedItemId:null});vl.params={onItemFocus:!0};function OC(e){return!!e&&e.length===1&&!!e.match(/\S/)}const Jp=({instance:e,params:t,state:r})=>{const n=Ey(),o=S.useRef({}),a=Nn(c=>{o.current=c(o.current)});S.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const c={},u=p=>{c[p.id]=p.label.substring(0,1).toLowerCase()};Object.values(r.items.itemMetaMap).forEach(u),o.current=c},[r.items.itemMetaMap,t.getItemId,e]);const i=(c,u)=>{const p=u.toLowerCase(),h=v=>{const b=ba(e,v);return b===null?Io(e):b};let f=null,g=h(c);const y={};for(;f==null&&!y[g];)o.current[g]===p?f=g:(y[g]=!0,g=h(g));return f},s=c=>!t.disableSelection&&!e.isItemDisabled(c),l=c=>!e.isItemDisabled(c)&&e.isItemExpandable(c);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(c,u)=>{if(c.defaultMuiPrevented||c.altKey||jo(c.target,c.currentTarget))return;const p=c.ctrlKey||c.metaKey,h=c.key;switch(!0){case(h===" "&&s(u)):{c.preventDefault(),t.multiSelect&&c.shiftKey?e.expandSelectionRange(c,u):e.selectItem({event:c,itemId:u,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case h==="Enter":{Qr(e,Dt)&&e.isItemEditable(u)&&!e.isItemBeingEdited(u)?e.setEditedItemId(u):l(u)?(e.toggleItemExpansion(c,u),c.preventDefault()):s(u)&&(t.multiSelect?(c.preventDefault(),e.selectItem({event:c,itemId:u,keepExistingSelection:!0})):e.isItemSelected(u)||(e.selectItem({event:c,itemId:u}),c.preventDefault()));break}case h==="ArrowDown":{const f=ba(e,u);f&&(c.preventDefault(),e.focusItem(c,f),t.multiSelect&&c.shiftKey&&s(f)&&e.selectItemFromArrowNavigation(c,u,f));break}case h==="ArrowUp":{const f=Bp(e,u);f&&(c.preventDefault(),e.focusItem(c,f),t.multiSelect&&c.shiftKey&&s(f)&&e.selectItemFromArrowNavigation(c,u,f));break}case(h==="ArrowRight"&&!n||h==="ArrowLeft"&&n):{if(p)return;if(e.isItemExpanded(u)){const f=ba(e,u);f&&(e.focusItem(c,f),c.preventDefault())}else l(u)&&(e.toggleItemExpansion(c,u),c.preventDefault());break}case(h==="ArrowLeft"&&!n||h==="ArrowRight"&&n):{if(p)return;if(l(u)&&e.isItemExpanded(u))e.toggleItemExpansion(c,u),c.preventDefault();else{const f=e.getItemMeta(u).parentId;f&&(e.focusItem(c,f),c.preventDefault())}break}case h==="Home":{s(u)&&t.multiSelect&&p&&c.shiftKey?e.selectRangeFromStartToItem(c,u):e.focusItem(c,Io(e)),c.preventDefault();break}case h==="End":{s(u)&&t.multiSelect&&p&&c.shiftKey?e.selectRangeFromItemToEnd(c,u):e.focusItem(c,qp(e)),c.preventDefault();break}case h==="*":{e.expandAllSiblings(c,u),c.preventDefault();break}case(String.fromCharCode(c.keyCode)==="A"&&p&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(c),c.preventDefault();break}case(!p&&!c.shiftKey&&OC(h)):{const f=i(u,h);f!=null&&(e.focusItem(c,f),c.preventDefault());break}}}}}};Jp.params={};const Xp=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});Xp.params={};const LC=[Bo,ui,di,vl,Jp,Xp,Dt],$C=["ownerState"];function DC({slots:e,slotProps:t,label:r,id:n,itemId:o,itemsToRender:a}){const i=e?.item??oC,s=Gr({elementType:i,externalSlotProps:t?.item,additionalProps:{itemId:o,id:n,label:r},ownerState:{itemId:o,label:r}}),l=mr(s,$C),c=S.useMemo(()=>a?d.jsx(Zp,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return d.jsx(i,Y({},l,{children:c}))}function Zp(e){const{itemsToRender:t,slots:r,slotProps:n}=e;return d.jsx(S.Fragment,{children:t.map(o=>d.jsx(DC,{slots:r,slotProps:n,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const BC=Op(),qC=e=>{const{classes:t}=e;return _p({root:["root"]},dC,t)},FC=Ee("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),zC=S.forwardRef(function(e,t){const r=BC({props:e,name:"MuiRichTreeView"}),{getRootProps:n,contextValue:o,instance:a}=vC({plugins:LC,rootRef:t,props:r}),{slots:i,slotProps:s}=r,l=qC(r),c=i?.root??FC,u=Gr({elementType:c,externalSlotProps:s?.root,className:l.root,getSlotProps:n,ownerState:r});return d.jsx(Aw,{value:o,children:d.jsx(c,Y({},u,{children:d.jsx(Zp,{slots:i,slotProps:s,itemsToRender:a.getItemsToRender()})}))})}),UC=tt(d.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),WC=tt([d.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),d.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),HC=tt(d.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),VC=tt(d.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function eh({items:e,defaultExpandedItems:t,navigate:r}){return d.jsx(zC,{items:JC(e,r),defaultExpandedItems:t,slots:{item:YC}})}const GC=qu.animated(Po);function KC(e){const t=qu.useSpring({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return d.jsx(GC,{style:t,...e})}function QC({item:e,...t}){const r=d.jsxs(cC,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&d.jsx(UC,{})||e.fileType==="notebook"&&d.jsx(WC,{})||e.fileType==="model"&&d.jsx(VC,{})||e.fileType=="database"&&d.jsx(HC,{})||d.jsx(Ep,{}),d.jsx(x.Typography,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?d.jsx(x.Tooltip,{title:e.error,placement:"right",children:r}):r}const YC=S.forwardRef(function(e,t){const{id:r,itemId:n,label:o,children:a,disabled:i,...s}=e,{getRootProps:l,getContentProps:c,getLabelProps:u,getIconContainerProps:p,getGroupTransitionProps:h,status:f,publicAPI:g}=qw({id:r,itemId:n,children:a,label:o,disabled:i,rootRef:t}),y=g.getItem(n);return f.selected=!1,f.focused=!1,d.jsx(bl,{itemId:n,children:d.jsxs(sC,{...l(s),children:[d.jsxs(lC,{...c(),...y.link&&{onClick:v=>y.link(v)},sx:{pointerEvents:!y.selectable&&"none"},children:[d.jsx(uC,{...p(),children:d.jsx(aC,{status:f})}),d.jsx(QC,{...u({item:y})})]}),a&&d.jsx(KC,{...h()})]})})});function JC(e,t){const r=new Map;return e.map(n=>{let o=r;const a=n.path.split("/");a.forEach((i,s)=>{s===a.length-1?o.set(i,n):(o.has(i)||o.set(i,new Map),o=o.get(i))})}),th(r,"",t)}function th(e,t,r){const n=[];return e.forEach((o,a)=>{const i=a.endsWith(".malloy")&&"model"||a.endsWith(".malloynb")&&"notebook"||a.endsWith(".parquet")&&"database"||"unknown";if(i!=="unknown"){const s=o;n.push({id:t+a,label:a,fileType:i,link:i==="model"||i==="notebook"?l=>r(t+a,l):void 0,selectable:i==="model"||i==="notebook",error:"error"in s?s.error:void 0})}else t+=`${a}/`,n.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:th(o,t,r)})}),n}const XC=new ai(new ct),ZC=["notebooks/","models/"];function e1({navigate:e}){const{projectName:t,packageName:r,versionId:n}=Ft(),{data:o,isError:a,error:i,isSuccess:s}=It({queryKey:["models",t,r,n],queryFn:l=>XC.listModels(t,r,n,l)});return d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),d.jsx(x.Divider,{}),d.jsxs(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!s&&!a&&d.jsx(zt,{text:"Fetching Models..."}),a&&d.jsx(Pt,{error:i,context:`${t} > ${r} > Models`}),s&&o.data.length>0&&d.jsx(eh,{items:o.data.sort((l,c)=>l.path.localeCompare(c.path)),navigate:e,defaultExpandedItems:ZC}),s&&o.data.length===0&&d.jsx(x.Typography,{variant:"body2",children:"No models found"})]})]})})}const t1=new Ed(new ct),r1=["notebooks/"];function n1({navigate:e}){const{projectName:t,packageName:r,versionId:n}=Ft(),{data:o,isError:a,error:i,isSuccess:s}=It({queryKey:["notebooks",t,r,n],queryFn:l=>t1.listNotebooks(t,r,n,l)});return d.jsx(et,{variant:"outlined",sx:{width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),d.jsx(x.Divider,{}),d.jsxs(x.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!s&&!a&&d.jsx(zt,{text:"Fetching Notebooks..."}),a&&d.jsx(Pt,{error:i,context:`${t} > ${r} > Notebooks`}),s&&o.data.length>0&&d.jsx(eh,{items:o.data.sort((l,c)=>l.path.localeCompare(c.path)),defaultExpandedItems:r1,navigate:e}),s&&o.data.length===0&&d.jsx(x.Typography,{variant:"body2",children:"No notebooks found"})]})]})})}const o1=new Fb(new ct);function a1(){const{projectName:e,packageName:t,versionId:r}=Ft(),{data:n,isError:o,isLoading:a,error:i}=It({queryKey:["schedules",e,t,r],queryFn:s=>o1.listSchedules(e,t,r,s)});return a?d.jsx(zt,{text:"Fetching Schedules..."}):o?d.jsx(Pt,{error:i,context:`${e} > ${t} > Schedules`}):n.data.length?d.jsx(et,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),d.jsx(x.Divider,{}),d.jsx(x.Box,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:d.jsx(x.TableContainer,{component:x.Paper,children:d.jsxs(x.Table,{sx:{minWidth:300},size:"small",children:[d.jsx(x.TableHead,{children:d.jsxs(x.TableRow,{children:[d.jsx(x.TableCell,{align:"left",children:"Resource"}),d.jsx(x.TableCell,{align:"left",children:"Schedule"}),d.jsx(x.TableCell,{align:"left",children:"Action"}),d.jsx(x.TableCell,{align:"left",children:"Connection"}),d.jsx(x.TableCell,{align:"left",children:"Last Run"}),d.jsx(x.TableCell,{align:"left",children:"Status"})]})}),d.jsx(x.TableBody,{children:n.data.map(s=>d.jsxs(x.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[d.jsx(x.TableCell,{align:"left",children:s.resource}),d.jsx(x.TableCell,{align:"left",children:s.schedule}),d.jsx(x.TableCell,{align:"left",children:s.action}),d.jsx(x.TableCell,{align:"left",children:s.connection}),d.jsx(x.TableCell,{align:"left",children:s.lastRunTime?new Date(s.lastRunTime).toLocaleString():"n/a"}),d.jsx(x.TableCell,{align:"left",children:s.lastRunStatus})]},s.resource))})]})})})]})}):null}const i1="README.malloynb";function s1({navigate:e}){return e||(e=t=>{window.location.href=t}),d.jsxs(x.Grid,{container:!0,spacing:2,columns:12,children:[d.jsx(x.Grid,{size:{xs:12,md:4},children:d.jsx(IS,{})}),d.jsx(x.Grid,{size:{xs:12,md:4},children:d.jsx(n1,{navigate:e})}),d.jsx(x.Grid,{size:{xs:12,md:4},children:d.jsx(e1,{navigate:e})}),d.jsx(x.Grid,{size:{xs:12,md:6},children:d.jsx(NS,{})}),d.jsx(x.Grid,{size:{xs:12,md:6},children:d.jsx(RS,{})}),d.jsx(x.Grid,{size:{xs:12,md:12},children:d.jsx(a1,{})}),d.jsx(x.Grid,{size:{xs:12,md:12},children:d.jsx(Ip,{notebookPath:i1,hideEmbeddingIcons:!0})})]})}const rh=_.createContext(void 0),l1=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,accessToken:t,children:r})=>{const n={server:e,accessToken:t};return d.jsx(rh.Provider,{value:n,children:r})},Sl=()=>{const e=_.useContext(rh);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},sa=tt(d.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),hu=tt(d.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}));function c1({cell:e,sourceAndPaths:t,onQueryChange:r,onSourceChange:n}){const o={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0,sourceName:e.sourceName,modelPath:e.modelPath};return d.jsx(wp,{sourceAndPaths:t,existingQuery:o,existingSourceName:e.sourceName,onQueryChange:r,onSourceChange:n})}function u1({cell:e,expandCodeCell:t,expandEmbedding:r,hideEmbeddingIcons:n,editingMalloy:o,editingMarkdown:a,sourceAndPaths:i,onCellChange:s,onClose:l,onEdit:c,onDelete:u,addButtonCallback:p}){const[h,f]=_.useState(t),[g,y]=_.useState(r),[v,b]=_.useState(),[C]=_.useState(),[w,k]=_.useState(mo()),[j,P]=_.useState(!1),[B,F]=_.useState(e.sourceName?i.findIndex(O=>O.sourceInfo.name===e.sourceName):0);_.useEffect(()=>{e.isMarkdown||Xr(e.value,"malloy").then(O=>{b(O)})},[e]);const[L,m]=_.useState(e.value);_.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const R=d1(O=>{s({...e,value:O})}),[D,$]=_.useState(!1),H=()=>{u(),$(!1)},X=i.length===0,V=()=>{const O=i[B],q=O?.modelPath||e.modelPath||"",oe=O?.sourceInfo.name||e.sourceName||"";s({...e,value:w.query,result:w.malloyResult?JSON.stringify(w.malloyResult):void 0,queryInfo:w.malloyQuery?JSON.stringify(w.malloyQuery):void 0,sourceName:oe,modelPath:q})},ce=d.jsx(x.Tooltip,{title:"Delete Cell",children:d.jsx(x.IconButton,{size:"small",onClick:()=>$(!0),children:d.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),K=d.jsxs(x.Dialog,{open:D,onClose:()=>$(!1),children:[d.jsx(x.DialogTitle,{children:"Confirm Delete"}),d.jsx(x.DialogContent,{children:d.jsx(x.Typography,{children:"Are you sure you want to delete this cell?"})}),d.jsxs(x.DialogActions,{children:[d.jsx(x.Button,{onClick:()=>$(!1),children:"Cancel"}),d.jsx(x.Button,{onClick:H,color:"error",children:"Delete"})]})]}),se=e.isMarkdown?d.jsxs(d.Fragment,{children:[a?d.jsx(x.Tooltip,{title:"Save",children:d.jsx(x.IconButton,{size:"small",onClick:l,children:d.jsx(sa,{})})}):d.jsx(x.Tooltip,{title:"Edit",children:d.jsx(x.IconButton,{size:"small",onClick:c,children:d.jsx(hu,{})})}),!a&&ce]}):d.jsxs(d.Fragment,{children:[!o&&d.jsx(x.Tooltip,{title:h?"Hide Code":"View Code",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{f(!h)},children:d.jsx(kp,{})})}),!n&&!o&&e.result&&d.jsx(x.Tooltip,{title:g?"Hide Embedding":"View Embedding",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{y(!g)},children:d.jsx(Oo,{})})}),o&&d.jsx(x.Tooltip,{title:"Save",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{V(),l()},children:d.jsx(sa,{})})}),!o&&d.jsx(x.Tooltip,{title:"Edit",children:d.jsx(x.IconButton,{size:"small",onClick:c,children:d.jsx(hu,{})})}),!o&&ce]}),Z=o||a,J=a?d.jsx(x.Tooltip,{title:"Save",children:d.jsx(x.IconButton,{size:"small",onClick:l,children:d.jsx(sa,{})})}):o?d.jsx(x.Tooltip,{title:"Save",children:d.jsx(x.IconButton,{size:"small",onClick:()=>{V(),l()},children:d.jsx(sa,{})})}):null,W=j&&d.jsx(x.Box,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!Z&&d.jsxs(d.Fragment,{children:[p(!0),p(!1),se]})||J});return d.jsxs(et,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>P(!0),onMouseLeave:()=>{P(!1)},children:[W,e.isMarkdown?d.jsx(d.Fragment,{children:a?d.jsx(Wh,{value:L,preview:"edit",autoFocus:!0,onChange:O=>{m(O),R(O)},onBlur:()=>{V(),j||l()}}):d.jsx(x.Box,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:L?d.jsx(x.Box,{onClick:c,sx:{cursor:"pointer"},children:d.jsx(Ms,{children:L})}):d.jsxs(x.Box,{onClick:c,sx:{cursor:"pointer"},children:[d.jsx(x.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),d.jsx(x.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):d.jsxs(d.Fragment,{children:[d.jsx(x.Collapse,{in:g,timeout:"auto",unmountOnExit:!0,children:d.jsx(x.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:d.jsx(x.Typography,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:C}})})}),d.jsx(x.Collapse,{in:h,timeout:"auto",unmountOnExit:!0,children:d.jsx(x.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:d.jsx(x.Typography,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:v}})})}),o&&(X?d.jsxs(d.Fragment,{children:[d.jsx(x.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),d.jsx(x.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):d.jsx(c1,{sourceAndPaths:i,onQueryChange:O=>{k(O)},cell:e,onSourceChange:F})),!o&&e.result&&d.jsx(et,{variant:"outlined",sx:{borderRadius:0},children:d.jsx(Pp,{result:e.result,minHeight:300,maxHeight:800})}),!o&&!e.result&&d.jsxs(x.Box,{onClick:c,sx:{cursor:"pointer"},children:[d.jsx(x.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),d.jsx(x.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),D&&K]})}function d1(e,t=2e3){const r=_.useRef(void 0);return _.useCallback(n=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{e(n)},t)},[e,t])}const nh=_.createContext(void 0);function oh({children:e,userContext:t,notebookStorage:r}){const n=_.useMemo(()=>({notebookStorage:r,userContext:t}),[r,t]);return d.jsx(nh.Provider,{value:n,children:e})}function ah(){const e=_.useContext(nh);if(!e)throw new Error("useNotebookStorage must be used within a NotebookStorageProvider");return e}const p1=tt(d.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),h1=tt(d.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),m1=new ai(new ct);function f1({initialSelectedModels:e,onModelChange:t}){const{projectName:r,packageName:n,versionId:o}=Ft(),{data:a,isLoading:i,isSuccess:s,isError:l,error:c}=It({queryKey:["models",r,n,o],queryFn:b=>m1.listModels(r,n,o,b)}),[u,p]=_.useState(e||[]),[h,f]=_.useState(null);_.useEffect(()=>{p(e||[])},[e]);const g=b=>{const C=u.filter(w=>w!==b);p(C),t(C)},y=b=>{const C=[...u,b];p(C),t(C),f(null)};let v=[];return s&&a?.data&&(v=a.data.filter(b=>!u.includes(b.path)).map(b=>b.path)),l?d.jsx(Pt,{error:c,context:`${r} > ${n} > Model Picker`}):d.jsxs(d.Fragment,{children:[d.jsxs(x.FormControl,{fullWidth:!0,children:[i&&d.jsx(x.Typography,{children:"Loading..."}),d.jsxs(x.Stack,{direction:"row",spacing:1,children:[u.map(b=>d.jsx(x.Chip,{label:b,onDelete:()=>g(b),deleteIcon:d.jsx(p1,{}),sx:{marginBottom:"5px"}},b)),d.jsx(x.Button,{size:"small",startIcon:d.jsx(h1,{}),onClick:b=>f(b.currentTarget),disabled:i||l||v.length===0,children:"Add Model"})]})]}),d.jsxs(x.Menu,{anchorEl:h,open:!!h,onClose:()=>f(null),children:[d.jsx(x.Typography,{variant:"subtitle2",sx:{ml:1},children:"Models"}),d.jsx(x.Divider,{}),v.length===0?d.jsx(x.MenuItem,{disabled:!0,children:"No models available"}):v.map(b=>d.jsx(x.MenuItem,{onClick:()=>y(b),children:d.jsx(x.Typography,{variant:"body2",children:b})},b))]})]})}const g1=new ai(new ct);function y1({notebookPath:e,expandCodeCells:t,expandEmbeddings:r,hideEmbeddingIcons:n}){const o=Fn(),{projectName:a,packageName:i,versionId:s}=Ft(),{server:l,accessToken:c}=Sl(),{notebookStorage:u,userContext:p}=ah();if(!a||!i)throw new Error("Project and package must be provided via PubliserPackageProvider");if(!u||!p)throw new Error("Notebook storage and user context must be provided via NotebookStorageProvider");const[h,f]=_.useState(),[g,y]=_.useState(),[v,b]=_.useState(),[C,w]=_.useState([]),[k,j]=_.useState(null),[P,B]=_.useState(null),F=!!k,L=()=>{j(null),B(null)},m=(Z,J)=>{h.insertCell(J,{isMarkdown:Z,value:""}),V(),Z?b(J):y(J),L()},[R,D]=_.useState(!1),$=()=>{D(!0)},H=Z=>{e&&u&&p&&u.deleteNotebook(p,e),D(!1),o(`/${a}/${i}`,Z)},X=()=>{D(!1)},V=_.useCallback(()=>{f(h.saveNotebook())},[h]);if(_.useEffect(()=>{h&&(async()=>{const Z=new Map(C.map(({modelPath:O,sourceInfos:q})=>[O,q])),J=[],W=[];for(const O of h.getModels())Z.has(O)?J.push({modelPath:O,sourceInfos:Z.get(O)}):(console.log("Fetching model from Publisher",O),W.push(g1.getModel(a,i,O,s,{baseURL:l,withCredentials:!c}).then(q=>({modelPath:O,sourceInfos:q.data.sourceInfos.map(oe=>JSON.parse(oe))}))));if(W.length>0){const O=await Promise.all(W);w([...J,...O])}else w(J)})()},[c,h,i,a,l,s]),_.useEffect(()=>{e&&f(fo.loadNotebook(u,p,e))},[e,u,p]),!h)return d.jsx("div",{children:"Loading..."});const ce=Z=>{const J=[];for(const W of Z)for(const O of W.sourceInfos)J.push({modelPath:W.modelPath,sourceInfo:O});return J},K=(Z,J)=>d.jsx(x.Button,{size:"small",startIcon:d.jsx(kS,{}),onClick:()=>m(Z,J),variant:"contained",sx:{backgroundColor:"#fff",color:W=>W.palette.mode==="dark"?W.palette.grey[100]:W.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:W=>W.palette.mode==="dark"?W.palette.grey[500]:W.palette.grey[300],boxShadow:"none"}},children:Z?"Markdown":"Explore"}),se=d.jsxs(x.Box,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[K(!1,h.getCells().length),K(!0,h.getCells().length)]});return d.jsxs(et,{variant:"outlined",children:[d.jsxs(kt,{children:[d.jsxs(yn,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[d.jsxs(yn,{direction:"row",spacing:1,alignItems:"center",children:[d.jsx(x.Typography,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),d.jsx(x.Typography,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${a} > ${i} > ${e}`})]}),d.jsxs(yn,{sx:{display:"flex",flexDirection:"row",gap:1},children:[d.jsx(x.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:d.jsx(b1,{notebookData:h})}),d.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[d.jsx(x.Button,{color:"error",onClick:$,size:"small",children:"Delete"}),d.jsxs(x.Dialog,{open:R,onClose:X,children:[d.jsx(x.DialogTitle,{children:"Delete Notebook"}),d.jsx(x.DialogContent,{children:d.jsxs(x.DialogContentText,{children:['Are you sure you want to delete the notebook "',e,'"? This action cannot be undone.']})}),d.jsxs(x.DialogActions,{children:[d.jsx(x.Button,{onClick:X,color:"primary",size:"small",children:"Cancel"}),d.jsx(x.Button,{onClick:Z=>H(Z),color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),d.jsx(x.Divider,{}),d.jsxs(yn,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[d.jsx(x.Box,{sx:{flex:1},children:d.jsx(f1,{initialSelectedModels:h.getModels(),onModelChange:Z=>{f(h.setModels(Z)),V()}})}),d.jsx(x.Box,{sx:{flex:1}})]})]}),d.jsx(ci,{children:d.jsxs(yn,{children:[h.getCells().length===0&&d.jsxs(d.Fragment,{children:[d.jsx(x.Typography,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),d.jsx(x.Typography,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),h.getCells().map((Z,J)=>d.jsx(_.Fragment,{children:d.jsx(u1,{cell:Z,addButtonCallback:W=>K(W,J),sourceAndPaths:ce(C),expandCodeCell:t,expandEmbedding:r,hideEmbeddingIcons:n,editingMarkdown:v===J,editingMalloy:g===J,onDelete:()=>{f(h.deleteCell(J)),V()},onCellChange:W=>{f(h.setCell(J,W)),V()},onEdit:()=>{Z.isMarkdown?b(J):y(J)},onClose:()=>{Z.isMarkdown?b(void 0):y(void 0)}})},`${J}-${h.getCells().length}`)),se,d.jsxs(x.Menu,{anchorEl:k,open:F,onClose:L,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[d.jsx(x.MenuItem,{onClick:()=>m(!0,P??0),children:"Add Markdown"}),d.jsx(x.MenuItem,{onClick:()=>m(!1,P??0),children:"Add Malloy"})]}),d.jsx(yn,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function b1({notebookData:e}){const[t,r]=_.useState(!1);return d.jsx(x.Button,{color:"primary",onClick:async()=>{if(!e)return;const n=e.toMalloyNotebook();try{await navigator.clipboard.writeText(n),r(!0),setTimeout(()=>r(!1),1500)}catch{r(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}function x1({onNotebookClick:e}){const{notebookStorage:t,userContext:r}=ah(),[n,o]=_.useState([]);return _.useEffect(()=>{t&&r&&o(t.listNotebooks(r))},[t,r]),d.jsxs(d.Fragment,{children:[d.jsx(x.Divider,{}),d.jsx(x.Box,{sx:{maxHeight:"300px",overflow:"auto","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0,0,0,0.2)",borderRadius:"4px"}},children:d.jsxs(x.List,{dense:!0,children:[n.length===0&&d.jsx(x.ListItem,{children:d.jsx(x.ListItemText,{primary:"No notebooks found.",sx:{textAlign:"center"}})}),n.map(a=>d.jsx(x.ListItem,{onClick:i=>e(a,i),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:d.jsx(x.ListItemText,{primary:a})},a))]})})]})}const v1=new Td(new ct);function S1(){const{projectName:e}=sh(),{data:t,isSuccess:r,isError:n,error:o}=It({queryKey:["about",e],queryFn:a=>v1.getProject(e,!1,a)});return d.jsxs(d.Fragment,{children:[!r&&!n&&d.jsx(zt,{text:"Fetching About..."}),r&&d.jsxs(et,{variant:"outlined",sx:{p:2},children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),d.jsx(et,{sx:{p:1},children:d.jsx(Ms,{children:t.data.readme})})]}),n&&d.jsx(Pt,{error:o,context:`${e} > About`})]})}const w1=new Rd(new ct);function C1({navigate:e}){const{projectName:t}=sh(),{data:r,isSuccess:n,isError:o,error:a}=It({queryKey:["packages",t],queryFn:i=>w1.listPackages(t,i)});return d.jsxs(d.Fragment,{children:[!n&&!o&&d.jsx(zt,{text:"Fetching Packages..."}),n&&d.jsxs(et,{variant:"outlined",sx:{p:2},children:[d.jsx(x.Typography,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),d.jsx(x.Grid,{container:!0,spacing:2,columns:12,children:r.data.sort((i,s)=>i.name.localeCompare(s.name)).map(i=>d.jsx(x.Grid,{size:{xs:12,sm:12,md:12,lg:4},children:d.jsx(et,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",transform:"translateY(-2px)"}},onClick:s=>e(i.name+"/",s),children:d.jsxs(kt,{children:[d.jsx(x.Typography,{variant:"overline",color:"primary.main",children:i.name}),d.jsx(x.Box,{sx:{maxHeight:"120px",overflowY:"auto"},children:d.jsx(x.Typography,{variant:"body2",children:i.description})})]})})},i.name))})]}),o&&d.jsx(Pt,{error:a,context:`${t} > Packages`})]})}const ih=_.createContext(void 0);function sh(){const e=_.useContext(ih);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function k1({children:e,projectName:t}){return d.jsx(ih.Provider,{value:{projectName:t},children:e})}function P1({navigate:e}){return d.jsxs(x.Grid,{container:!0,spacing:2,columns:12,children:[d.jsx(x.Grid,{size:{xs:12,md:12},children:d.jsx(C1,{navigate:e})}),d.jsx(x.Grid,{size:{xs:12,md:12},children:d.jsx(S1,{})})]})}const I1=new Td(new ct);function j1({navigate:e}){const{data:t,isSuccess:r,isError:n,error:o}=It({queryKey:["projects"],queryFn:a=>I1.listProjects(a)});return n?d.jsx(Pt,{error:o,context:"Projects List"}):r?t.data.length===0?d.jsx(x.Typography,{variant:"h4",children:"No projects found"}):t.data.length===1?(e(`/${t.data[0].name}/`),d.jsx(d.Fragment,{})):d.jsx(x.Grid,{container:!0,spacing:2,columns:12,sx:{mb:a=>a.spacing(2)},children:t.data.map(a=>d.jsx(x.Grid,{children:d.jsx(x.Typography,{variant:"h1",onClick:i=>e(`/${a.name}/`,i),children:a.name})},a.name))}):d.jsx(zt,{text:"Loading projects..."})}function E1(){const{projectName:e,packageName:t}=on(),[r,n]=_.useState(""),[o,a]=_.useState(null),[i,s]=_.useState(!1),[l,c]=_.useState(!1),u=Fn(),p=!!o,h=C=>{a(C.currentTarget)},f=()=>{a(null)},g=()=>{c(!1)},y=()=>{s(!1)},v=(C,w)=>{c(!1),u(`/${e}/${t}/scratchNotebook/${encodeURIComponent(C)}`,w)},b=C=>{s(!1),u(`/${e}/${t}/scratchNotebook/${encodeURIComponent(r)}`,C),n("")};return!e||!t?null:d.jsxs(d.Fragment,{children:[d.jsx(x.Button,{"aria-controls":p?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":p?"true":void 0,onClick:h,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),d.jsxs(x.Menu,{id:"basic-menu",anchorEl:o,open:p,onClose:f,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[d.jsxs(x.MenuItem,{onClick:()=>{s(!0),f()},sx:{py:1,px:2},children:[d.jsx(x.ListItemIcon,{children:d.jsx(yo.Add,{fontSize:"small"})}),d.jsxs(x.ListItemText,{children:[d.jsx(x.Typography,{variant:"body2",fontWeight:500,children:"New Workbook"}),d.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),d.jsxs(x.MenuItem,{onClick:()=>{c(!0),f()},sx:{py:1,px:2},children:[d.jsx(x.ListItemIcon,{children:d.jsx(yo.Launch,{fontSize:"small"})}),d.jsxs(x.ListItemText,{children:[d.jsx(x.Typography,{variant:"body2",fontWeight:500,children:"Open Workbook"}),d.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),d.jsxs(x.Dialog,{open:i,onClose:y,maxWidth:"sm",fullWidth:!0,children:[d.jsxs(x.DialogTitle,{sx:{pb:1,pt:2,px:2},children:[d.jsx(x.Typography,{variant:"h6",fontWeight:600,sx:{mb:.5},children:"Create New Workbook"}),d.jsx(x.Typography,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),d.jsx(x.DialogContent,{sx:{px:2,pb:2},children:d.jsxs(x.Stack,{spacing:2,sx:{mt:1},children:[d.jsx(x.FormControl,{fullWidth:!0,children:d.jsx(x.TextField,{label:"Workbook Name",value:r,onChange:C=>n(C.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),d.jsxs(x.Stack,{direction:"row",spacing:1,justifyContent:"flex-end",children:[d.jsx(x.Button,{onClick:y,variant:"outlined",size:"small",children:"Cancel"}),d.jsx(x.Button,{onClick:C=>b(C),variant:"contained",disabled:!r.trim(),size:"small",children:"Create Workbook"})]})]})})]}),d.jsxs(x.Dialog,{open:l,onClose:g,maxWidth:"md",fullWidth:!0,children:[d.jsxs(x.DialogTitle,{sx:{pb:1,pt:2,px:2},children:[d.jsx(x.Typography,{variant:"h6",fontWeight:600,sx:{mb:.5},children:"Open Workbook"}),d.jsx(x.Typography,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),d.jsx(x.DialogContent,{sx:{px:2,pb:2},children:d.jsx(oh,{notebookStorage:new jp,userContext:{project:e,package:t},children:d.jsx(x1,{onNotebookClick:v})})})]})]})}new jd(new ct);De.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function Zr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const Yr="$$material",R1=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function T1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,a=R1(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function c(h,f){const g=i.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:f)-n/100}${r})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):s(h)}function p(h){const f=i.indexOf(h);return f===0?s(i[1]):f===i.length-1?l(i[f]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:l,between:c,only:u,not:p,unit:r,...o}}var Hi={exports:{}},ve={};/**
152
152
  * @license React
153
153
  * react-is.production.js
154
154
  *
@@ -156,14 +156,14 @@ import {${t.sourceName}}" from '${t.modelPath}'"
156
156
  *
157
157
  * This source code is licensed under the MIT license found in the
158
158
  * LICENSE file in the root directory of this source tree.
159
- */var mu;function N1(){if(mu)return ve;mu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case r:case o:case n:case l:case c:case h:return y;default:switch(y=y&&y.$$typeof,y){case i:case s:case p:case u:return y;case a:return y;default:return v}}case t:return v}}}return ve.ContextConsumer=a,ve.ContextProvider=i,ve.Element=e,ve.ForwardRef=s,ve.Fragment=r,ve.Lazy=p,ve.Memo=u,ve.Portal=t,ve.Profiler=o,ve.StrictMode=n,ve.Suspense=l,ve.SuspenseList=c,ve.isContextConsumer=function(y){return g(y)===a},ve.isContextProvider=function(y){return g(y)===i},ve.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ve.isForwardRef=function(y){return g(y)===s},ve.isFragment=function(y){return g(y)===r},ve.isLazy=function(y){return g(y)===p},ve.isMemo=function(y){return g(y)===u},ve.isPortal=function(y){return g(y)===t},ve.isProfiler=function(y){return g(y)===o},ve.isStrictMode=function(y){return g(y)===n},ve.isSuspense=function(y){return g(y)===l},ve.isSuspenseList=function(y){return g(y)===c},ve.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===l||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===u||y.$$typeof===i||y.$$typeof===a||y.$$typeof===s||y.$$typeof===f||y.getModuleId!==void 0)},ve.typeOf=g,ve}var fu;function M1(){return fu||(fu=1,Hi.exports=N1()),Hi.exports}var lh=M1();function tr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ch(e){if(S.isValidElement(e)||lh.isValidElementType(e)||!tr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ch(e[r])}),t}function Ct(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return tr(e)&&tr(t)&&Object.keys(t).forEach(o=>{S.isValidElement(t[o])||lh.isValidElementType(t[o])?n[o]=t[o]:tr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&tr(e[o])?n[o]=Ct(e[o],t[o],r):r.clone?n[o]=tr(t[o])?ch(t[o]):t[o]:n[o]=t[o]}),n}function A1(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function wl(e,t=0,r=1){return A1(e,t,r)}function _1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Mr(e){if(e.type)return e;if(e.charAt(0)==="#")return Mr(_1(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Zr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Zr(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const O1=e=>{const t=Mr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},co=(e,t)=>{try{return O1(e)}catch{return e}};function pi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function uh(e){e=Mr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,u=(c+r/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),pi({type:s,values:l})}function xs(e){e=Mr(e);let t=e.type==="hsl"||e.type==="hsla"?Mr(uh(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function L1(e,t){const r=xs(e),n=xs(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function vs(e,t){return e=Mr(e),t=wl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function la(e,t,r){try{return vs(e,t)}catch{return e}}function Cl(e,t){if(e=Mr(e),t=wl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return pi(e)}function Ce(e,t,r){try{return Cl(e,t)}catch{return e}}function kl(e,t){if(e=Mr(e),t=wl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return pi(e)}function ke(e,t,r){try{return kl(e,t)}catch{return e}}function Ss(e,t=.15){return xs(e)>.5?Cl(e,t):kl(e,t)}function ca(e,t,r){try{return Ss(e,t)}catch{return e}}const Eo={black:"#000",white:"#fff"},$1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},bn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},xn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},to={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},vn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Sn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},wn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function dh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Eo.white,default:Eo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const D1=dh();function ph(){return{text:{primary:Eo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Eo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const gu=ph();function yu(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=kl(e.main,o):t==="dark"&&(e.dark=Cl(e.main,a)))}function B1(e="light"){return e==="dark"?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[700],light:vn[400],dark:vn[800]}}function q1(e="light"){return e==="dark"?{main:bn[200],light:bn[50],dark:bn[400]}:{main:bn[500],light:bn[300],dark:bn[700]}}function F1(e="light"){return e==="dark"?{main:xn[500],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[400],dark:xn[800]}}function z1(e="light"){return e==="dark"?{main:Sn[400],light:Sn[300],dark:Sn[700]}:{main:Sn[700],light:Sn[500],dark:Sn[900]}}function U1(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[800],light:wn[500],dark:wn[900]}}function W1(e="light"){return e==="dark"?{main:to[400],light:to[300],dark:to[700]}:{main:"#ed6c02",light:to[500],dark:to[900]}}function Pl(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,a=e.primary||B1(t),i=e.secondary||q1(t),s=e.error||F1(t),l=e.info||z1(t),c=e.success||U1(t),u=e.warning||W1(t);function p(y){return L1(y,gu.text.primary)>=r?gu.text.primary:D1.text.primary}const h=({color:y,name:v,mainShade:b=500,lightShade:C=300,darkShade:w=700})=>{if(y={...y},!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(Zr(11,v?` (${v})`:"",b));if(typeof y.main!="string")throw new Error(Zr(12,v?` (${v})`:"",JSON.stringify(y.main)));return yu(y,"light",C,n),yu(y,"dark",w,n),y.contrastText||(y.contrastText=p(y.main)),y};let f;return t==="light"?f=dh():t==="dark"&&(f=ph()),Ct({common:{...Eo},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:$1,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...f},o)}function go(e,t){return t?Ct(e,t,{clone:!1}):e}function H1(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function V1(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function G1(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function K1(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const hi={xs:0,sm:600,md:900,lg:1200,xl:1536},bu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hi[e]}px)`},Q1={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:hi[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function yr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||bu;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||bu;return Object.keys(t).reduce((i,s)=>{if(V1(a.keys,s)){const l=G1(n.containerQueries?n:Q1,s);l&&(i[l]=r(t[s],s))}else if(Object.keys(a.values||hi).includes(s)){const l=a.up(s);i[l]=r(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return r(t)}function Y1(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function J1(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Je(e){if(typeof e!="string")throw new Error(Zr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mi(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ua(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=mi(e,r)||n,t&&(o=t(o,n,e)),o}function ze(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=mi(l,n)||{};return yr(i,s,p=>{let h=Ua(c,o,p);return p===h&&typeof p=="string"&&(h=Ua(c,o,`${t}${p==="default"?"":Je(p)}`,p)),r===!1?h:{[r]:h}})};return a.propTypes={},a.filterProps=[t],a}function X1(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Z1={m:"margin",p:"padding"},ek={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tk=X1(e=>{if(e.length>2)if(xu[e])e=xu[e];else return[e];const[t,r]=e.split(""),n=Z1[t],o=ek[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Il=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Il,...jl];function qo(e,t,r,n){const o=mi(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function El(e){return qo(e,"spacing",8)}function Fo(e,t){return typeof t=="string"||t==null?t:e(t)}function rk(e,t){return r=>e.reduce((n,o)=>(n[o]=Fo(t,r),n),{})}function nk(e,t,r,n){if(!t.includes(r))return null;const o=tk(r),a=rk(o,n),i=e[r];return yr(e,i,a)}function hh(e,t){const r=El(e.theme);return Object.keys(e).map(n=>nk(e,t,n,r)).reduce(go,{})}function Le(e){return hh(e,Il)}Le.propTypes={};Le.filterProps=Il;function $e(e){return hh(e,jl)}$e.propTypes={};$e.filterProps=jl;function ok(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ak={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ik(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var sk=/[A-Z]|^ms/g,lk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mh=function(t){return t.charCodeAt(1)===45},vu=function(t){return t!=null&&typeof t!="boolean"},Vi=ik(function(e){return mh(e)?e:e.replace(sk,"-$&").toLowerCase()}),Su=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(lk,function(n,o,a){return Er={name:o,styles:a,next:Er},o})}return ak[t]!==1&&!mh(t)&&typeof r=="number"&&r!==0?r+"px":r};function Wa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Er={name:o.name,styles:o.styles,next:Er},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Er={name:i.name,styles:i.styles,next:Er},i=i.next;var s=a.styles+";";return s}return ck(e,t,r)}}var l=r;return l}function ck(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Wa(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var s=i;vu(s)&&(n+=Vi(a)+":"+Su(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)vu(i[l])&&(n+=Vi(a)+":"+Su(a,i[l])+";");else{var c=Wa(e,t,i);switch(a){case"animation":case"animationName":{n+=Vi(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var wu=/label:\s*([^\s;{]+)\s*(;|$)/g,Er;function uk(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Er=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Wa(r,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=Wa(r,t,e[s]),n){var l=a;o+=l[s]}wu.lastIndex=0;for(var c="",u;(u=wu.exec(o))!==null;)c+="-"+u[1];var p=ok(o)+c;return{name:p,styles:o,next:Er}}function dk(e,t){return Bu(e,t)}function pk(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Cu=[];function ku(e){return Cu[0]=e,uk(Cu)}const hk=typeof window<"u"?S.useLayoutEffect:S.useEffect;function ws(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[o][l]=ws(a[l],i[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const mk=S.createContext(void 0);function fk(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?ws(o.defaultProps,n):!o.styleOverrides&&!o.variants?ws(o,n):n}function gk({props:e,name:t}){const r=S.useContext(mk);return fk({props:e,name:t,theme:{components:r}})}const Pu=(e,t,r,n=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},yk=(e,t,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}n(e)},bk=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Gi(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return yk(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,p=bk(s,l);Object.assign(o,{[u]:p}),Pu(a,s,`var(${u})`,c),Pu(i,s,`var(${u}, ${p})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function xk(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:p}=Gi(l,t);let h=p;const f={},{[s]:g,...y}=a;if(Object.entries(y||{}).forEach(([w,k])=>{const{vars:j,css:P,varsWithDefaults:B}=Gi(k,t);h=Ct(h,B),f[w]={css:P,vars:j}}),g){const{css:w,vars:k,varsWithDefaults:j}=Gi(g,t);h=Ct(h,j),f[s]={css:w,vars:k}}function v(w,k){let j=o;if(o==="class"&&(j=".%s"),o==="data"&&(j="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(j=`[${o}="%s"]`),w){if(j==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${a[w]?.palette?.mode||w})`]:{":root":k}};if(j)return e.defaultColorScheme===w?`:root, ${j.replace("%s",String(w))}`:j.replace("%s",String(w))}return":root"}return{vars:h,generateThemeVars:()=>{let w={...c};return Object.entries(f).forEach(([,{vars:k}])=>{w=Ct(w,k)}),w},generateStyleSheets:()=>{const w=[],k=e.defaultColorScheme||"light";function j(F,L){Object.keys(L).length&&w.push(typeof F=="string"?{[F]:{...L}}:F)}j(r(void 0,{...u}),u);const{[k]:P,...B}=f;if(P){const{css:F}=P,L=a[k]?.palette?.mode,m=!n&&L?{colorScheme:L,...F}:{...F};j(r(k,{...m}),m)}return Object.entries(B).forEach(([F,{css:L}])=>{const m=a[F]?.palette?.mode,R=!n&&m?{colorScheme:m,...L}:{...L};j(r(F,{...R}),R)}),w}}}function vk(e){const t={};return Object.entries(e).forEach(n=>{const[o,a]=n;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function Sk(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function fi(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?go(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ut(e,t){return ze({prop:e,themeKey:"borders",transform:t})}const wk=Ut("border",Lt),Ck=Ut("borderTop",Lt),kk=Ut("borderRight",Lt),Pk=Ut("borderBottom",Lt),Ik=Ut("borderLeft",Lt),jk=Ut("borderColor"),Ek=Ut("borderTopColor"),Rk=Ut("borderRightColor"),Tk=Ut("borderBottomColor"),Nk=Ut("borderLeftColor"),Mk=Ut("outline",Lt),Ak=Ut("outlineColor"),gi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=qo(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Fo(t,n)});return yr(e,e.borderRadius,r)}return null};gi.propTypes={};gi.filterProps=["borderRadius"];fi(wk,Ck,kk,Pk,Ik,jk,Ek,Rk,Tk,Nk,gi,Mk,Ak);const yi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=qo(e.theme,"spacing",8),r=n=>({gap:Fo(t,n)});return yr(e,e.gap,r)}return null};yi.propTypes={};yi.filterProps=["gap"];const bi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=qo(e.theme,"spacing",8),r=n=>({columnGap:Fo(t,n)});return yr(e,e.columnGap,r)}return null};bi.propTypes={};bi.filterProps=["columnGap"];const xi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=qo(e.theme,"spacing",8),r=n=>({rowGap:Fo(t,n)});return yr(e,e.rowGap,r)}return null};xi.propTypes={};xi.filterProps=["rowGap"];const _k=ze({prop:"gridColumn"}),Ok=ze({prop:"gridRow"}),Lk=ze({prop:"gridAutoFlow"}),$k=ze({prop:"gridAutoColumns"}),Dk=ze({prop:"gridAutoRows"}),Bk=ze({prop:"gridTemplateColumns"}),qk=ze({prop:"gridTemplateRows"}),Fk=ze({prop:"gridTemplateAreas"}),zk=ze({prop:"gridArea"});fi(yi,bi,xi,_k,Ok,Lk,$k,Dk,Bk,qk,Fk,zk);function Nn(e,t){return t==="grey"?t:e}const Uk=ze({prop:"color",themeKey:"palette",transform:Nn}),Wk=ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nn}),Hk=ze({prop:"backgroundColor",themeKey:"palette",transform:Nn});fi(Uk,Wk,Hk);function St(e){return e<=1&&e!==0?`${e*100}%`:e}const Vk=ze({prop:"width",transform:St}),Rl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||hi[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:St(r)}};return yr(e,e.maxWidth,t)}return null};Rl.filterProps=["maxWidth"];const Gk=ze({prop:"minWidth",transform:St}),Kk=ze({prop:"height",transform:St}),Qk=ze({prop:"maxHeight",transform:St}),Yk=ze({prop:"minHeight",transform:St});ze({prop:"size",cssProperty:"width",transform:St});ze({prop:"size",cssProperty:"height",transform:St});const Jk=ze({prop:"boxSizing"});fi(Vk,Rl,Gk,Kk,Qk,Yk,Jk);const zo={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gi},color:{themeKey:"palette",transform:Nn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nn},backgroundColor:{themeKey:"palette",transform:Nn},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Le},mt:{style:Le},mr:{style:Le},mb:{style:Le},ml:{style:Le},mx:{style:Le},my:{style:Le},margin:{style:Le},marginTop:{style:Le},marginRight:{style:Le},marginBottom:{style:Le},marginLeft:{style:Le},marginX:{style:Le},marginY:{style:Le},marginInline:{style:Le},marginInlineStart:{style:Le},marginInlineEnd:{style:Le},marginBlock:{style:Le},marginBlockStart:{style:Le},marginBlockEnd:{style:Le},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yi},rowGap:{style:xi},columnGap:{style:bi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:St},maxWidth:{style:Rl},minWidth:{transform:St},height:{transform:St},maxHeight:{transform:St},minHeight:{transform:St},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xk(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Zk(e,t){return typeof e=="function"?e(t):e}function eP(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:p}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const h=mi(o,c)||{};return p?p(i):yr(i,n,g=>{let y=Ua(h,u,g);return g===y&&typeof g=="string"&&(y=Ua(h,u,`${r}${g==="default"?"":Je(g)}`,g)),l===!1?y:{[l]:y}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??zo;function i(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=Y1(o.breakpoints),u=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const f=Zk(l[h],o);if(f!=null)if(typeof f=="object")if(a[h])p=go(p,e(h,f,o,a));else{const g=yr({theme:o},f,y=>({[h]:y}));Xk(g,f)?p[h]=t({sx:f,theme:o}):p=go(p,g)}else p=go(p,e(h,f,o,a))}),H1(o,J1(u,p))}return Array.isArray(n)?n.map(i):i(n)}return t}const en=eP();en.filterProps=["sx"];const tP=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??zo;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function rP(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=tP(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return tr(s)?{...n,...s}:n}:a={...n,...t},{...o,sx:a}}const nP={borderRadius:4};function oP(e=8,t=El({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function aP(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function fh(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=e,s=T1(r),l=oP(o);let c=Ct({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...nP,...a}},i);return c=K1(c),c.applyStyles=aP,c=t.reduce((u,p)=>Ct(u,p),c),c.unstable_sxConfig={...zo,...i?.unstable_sxConfig},c.unstable_sx=function(p){return en({sx:p,theme:this})},c}const Iu=e=>e,iP=()=>{let e=Iu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Iu}}},sP=iP(),lP={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sn(e,t,r="Mui"){const n=lP[t];return n?`${r}-${n}`:`${sP.generate(e)}-${t}`}function cP(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function uP(e){return Math.round(e*1e5)/1e5}const ju={textTransform:"uppercase"},Eu='"Roboto", "Helvetica", "Arial", sans-serif';function gh(e,t){const{fontFamily:r=Eu,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...p}=typeof t=="function"?t(e):t,h=n/14,f=u||(v=>`${v/l*h}rem`),g=(v,b,C,w,k)=>({fontFamily:r,fontWeight:v,fontSize:f(b),lineHeight:C,...r===Eu?{letterSpacing:`${uP(w/b)}em`}:{},...k,...c}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,ju),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,ju),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ct({htmlFontSize:l,pxToRem:f,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...y},p,{clone:!1})}const dP=.2,pP=.14,hP=.12;function Te(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${dP})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pP})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hP})`].join(",")}const mP=["none",Te(0,2,1,-1,0,1,1,0,0,1,3,0),Te(0,3,1,-2,0,2,2,0,0,1,5,0),Te(0,3,3,-2,0,3,4,0,0,1,8,0),Te(0,2,4,-1,0,4,5,0,0,1,10,0),Te(0,3,5,-1,0,5,8,0,0,1,14,0),Te(0,3,5,-1,0,6,10,0,0,1,18,0),Te(0,4,5,-2,0,7,10,1,0,2,16,1),Te(0,5,5,-3,0,8,10,1,0,3,14,2),Te(0,5,6,-3,0,9,12,1,0,3,16,2),Te(0,6,6,-3,0,10,14,1,0,4,18,3),Te(0,6,7,-4,0,11,15,1,0,4,20,3),Te(0,7,8,-4,0,12,17,2,0,5,22,4),Te(0,7,8,-4,0,13,19,2,0,5,24,4),Te(0,7,9,-4,0,14,21,2,0,5,26,4),Te(0,8,9,-5,0,15,22,2,0,6,28,5),Te(0,8,10,-5,0,16,24,2,0,6,30,5),Te(0,8,11,-5,0,17,26,2,0,6,32,5),Te(0,9,11,-5,0,18,28,2,0,7,34,6),Te(0,9,12,-6,0,19,29,2,0,7,36,6),Te(0,10,13,-6,0,20,31,3,0,8,38,7),Te(0,10,13,-6,0,21,33,3,0,8,40,7),Te(0,10,14,-6,0,22,35,3,0,8,42,7),Te(0,11,14,-7,0,23,36,3,0,9,44,8),Te(0,11,15,-7,0,24,38,3,0,9,46,8)],fP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ru(e){return`${Math.round(e)}ms`}function yP(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function bP(e){const t={...fP,...e.easing},r={...gP,...e.duration};return{getAutoHeightDuration:yP,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=a;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Ru(i)} ${s} ${typeof l=="string"?l:Ru(l)}`).join(",")},...e,easing:t,duration:r}}const xP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function vP(e){return tr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function yh(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[i,s]=o[a];!vP(s)||i.startsWith("unstable_")?delete n[i]:tr(s)&&(n[i]={...s},r(n[i]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
159
+ */var mu;function N1(){if(mu)return ve;mu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case r:case o:case n:case l:case c:case h:return y;default:switch(y=y&&y.$$typeof,y){case i:case s:case p:case u:return y;case a:return y;default:return v}}case t:return v}}}return ve.ContextConsumer=a,ve.ContextProvider=i,ve.Element=e,ve.ForwardRef=s,ve.Fragment=r,ve.Lazy=p,ve.Memo=u,ve.Portal=t,ve.Profiler=o,ve.StrictMode=n,ve.Suspense=l,ve.SuspenseList=c,ve.isContextConsumer=function(y){return g(y)===a},ve.isContextProvider=function(y){return g(y)===i},ve.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ve.isForwardRef=function(y){return g(y)===s},ve.isFragment=function(y){return g(y)===r},ve.isLazy=function(y){return g(y)===p},ve.isMemo=function(y){return g(y)===u},ve.isPortal=function(y){return g(y)===t},ve.isProfiler=function(y){return g(y)===o},ve.isStrictMode=function(y){return g(y)===n},ve.isSuspense=function(y){return g(y)===l},ve.isSuspenseList=function(y){return g(y)===c},ve.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===l||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===u||y.$$typeof===i||y.$$typeof===a||y.$$typeof===s||y.$$typeof===f||y.getModuleId!==void 0)},ve.typeOf=g,ve}var fu;function M1(){return fu||(fu=1,Hi.exports=N1()),Hi.exports}var lh=M1();function tr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ch(e){if(S.isValidElement(e)||lh.isValidElementType(e)||!tr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ch(e[r])}),t}function Ct(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return tr(e)&&tr(t)&&Object.keys(t).forEach(o=>{S.isValidElement(t[o])||lh.isValidElementType(t[o])?n[o]=t[o]:tr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&tr(e[o])?n[o]=Ct(e[o],t[o],r):r.clone?n[o]=tr(t[o])?ch(t[o]):t[o]:n[o]=t[o]}),n}function A1(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function wl(e,t=0,r=1){return A1(e,t,r)}function _1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Mr(e){if(e.type)return e;if(e.charAt(0)==="#")return Mr(_1(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Zr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Zr(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const O1=e=>{const t=Mr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},co=(e,t)=>{try{return O1(e)}catch{return e}};function pi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function uh(e){e=Mr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,u=(c+r/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),pi({type:s,values:l})}function xs(e){e=Mr(e);let t=e.type==="hsl"||e.type==="hsla"?Mr(uh(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function L1(e,t){const r=xs(e),n=xs(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function vs(e,t){return e=Mr(e),t=wl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function la(e,t,r){try{return vs(e,t)}catch{return e}}function Cl(e,t){if(e=Mr(e),t=wl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return pi(e)}function Ce(e,t,r){try{return Cl(e,t)}catch{return e}}function kl(e,t){if(e=Mr(e),t=wl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return pi(e)}function ke(e,t,r){try{return kl(e,t)}catch{return e}}function Ss(e,t=.15){return xs(e)>.5?Cl(e,t):kl(e,t)}function ca(e,t,r){try{return Ss(e,t)}catch{return e}}const Eo={black:"#000",white:"#fff"},$1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},vn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},to={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Sn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},wn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function dh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Eo.white,default:Eo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const D1=dh();function ph(){return{text:{primary:Eo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Eo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const gu=ph();function yu(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=kl(e.main,o):t==="dark"&&(e.dark=Cl(e.main,a)))}function B1(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[700],light:Sn[400],dark:Sn[800]}}function q1(e="light"){return e==="dark"?{main:xn[200],light:xn[50],dark:xn[400]}:{main:xn[500],light:xn[300],dark:xn[700]}}function F1(e="light"){return e==="dark"?{main:vn[500],light:vn[300],dark:vn[700]}:{main:vn[700],light:vn[400],dark:vn[800]}}function z1(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[700],light:wn[500],dark:wn[900]}}function U1(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function W1(e="light"){return e==="dark"?{main:to[400],light:to[300],dark:to[700]}:{main:"#ed6c02",light:to[500],dark:to[900]}}function Pl(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,a=e.primary||B1(t),i=e.secondary||q1(t),s=e.error||F1(t),l=e.info||z1(t),c=e.success||U1(t),u=e.warning||W1(t);function p(y){return L1(y,gu.text.primary)>=r?gu.text.primary:D1.text.primary}const h=({color:y,name:v,mainShade:b=500,lightShade:C=300,darkShade:w=700})=>{if(y={...y},!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(Zr(11,v?` (${v})`:"",b));if(typeof y.main!="string")throw new Error(Zr(12,v?` (${v})`:"",JSON.stringify(y.main)));return yu(y,"light",C,n),yu(y,"dark",w,n),y.contrastText||(y.contrastText=p(y.main)),y};let f;return t==="light"?f=dh():t==="dark"&&(f=ph()),Ct({common:{...Eo},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:$1,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...f},o)}function go(e,t){return t?Ct(e,t,{clone:!1}):e}function H1(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return r.length?r.reduce((n,o)=>{const a=t[o];return delete n[o],n[o]=a,n},{...t}):t}function V1(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function G1(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(a)}function K1(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function r(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=a=>(r(n,a),n);return r(o),{...e,containerQueries:o}}const hi={xs:0,sm:600,md:900,lg:1200,xl:1536},bu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hi[e]}px)`},Q1={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:hi[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function yr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||bu;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){const a=n.breakpoints||bu;return Object.keys(t).reduce((i,s)=>{if(V1(a.keys,s)){const l=G1(n.containerQueries?n:Q1,s);l&&(i[l]=r(t[s],s))}else if(Object.keys(a.values||hi).includes(s)){const l=a.up(s);i[l]=r(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return r(t)}function Y1(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function J1(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Je(e){if(typeof e!="string")throw new Error(Zr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mi(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ua(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=mi(e,r)||n,t&&(o=t(o,n,e)),o}function ze(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=mi(l,n)||{};return yr(i,s,p=>{let h=Ua(c,o,p);return p===h&&typeof p=="string"&&(h=Ua(c,o,`${t}${p==="default"?"":Je(p)}`,p)),r===!1?h:{[r]:h}})};return a.propTypes={},a.filterProps=[t],a}function X1(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Z1={m:"margin",p:"padding"},ek={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tk=X1(e=>{if(e.length>2)if(xu[e])e=xu[e];else return[e];const[t,r]=e.split(""),n=Z1[t],o=ek[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Il=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Il,...jl];function qo(e,t,r,n){const o=mi(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function El(e){return qo(e,"spacing",8)}function Fo(e,t){return typeof t=="string"||t==null?t:e(t)}function rk(e,t){return r=>e.reduce((n,o)=>(n[o]=Fo(t,r),n),{})}function nk(e,t,r,n){if(!t.includes(r))return null;const o=tk(r),a=rk(o,n),i=e[r];return yr(e,i,a)}function hh(e,t){const r=El(e.theme);return Object.keys(e).map(n=>nk(e,t,n,r)).reduce(go,{})}function Le(e){return hh(e,Il)}Le.propTypes={};Le.filterProps=Il;function $e(e){return hh(e,jl)}$e.propTypes={};$e.filterProps=jl;function ok(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ak={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ik(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var sk=/[A-Z]|^ms/g,lk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mh=function(t){return t.charCodeAt(1)===45},vu=function(t){return t!=null&&typeof t!="boolean"},Vi=ik(function(e){return mh(e)?e:e.replace(sk,"-$&").toLowerCase()}),Su=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(lk,function(n,o,a){return Er={name:o,styles:a,next:Er},o})}return ak[t]!==1&&!mh(t)&&typeof r=="number"&&r!==0?r+"px":r};function Wa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Er={name:o.name,styles:o.styles,next:Er},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Er={name:i.name,styles:i.styles,next:Er},i=i.next;var s=a.styles+";";return s}return ck(e,t,r)}}var l=r;return l}function ck(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Wa(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var s=i;vu(s)&&(n+=Vi(a)+":"+Su(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)vu(i[l])&&(n+=Vi(a)+":"+Su(a,i[l])+";");else{var c=Wa(e,t,i);switch(a){case"animation":case"animationName":{n+=Vi(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var wu=/label:\s*([^\s;{]+)\s*(;|$)/g,Er;function uk(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Er=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Wa(r,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=Wa(r,t,e[s]),n){var l=a;o+=l[s]}wu.lastIndex=0;for(var c="",u;(u=wu.exec(o))!==null;)c+="-"+u[1];var p=ok(o)+c;return{name:p,styles:o,next:Er}}function dk(e,t){return Bu(e,t)}function pk(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Cu=[];function ku(e){return Cu[0]=e,uk(Cu)}const hk=typeof window<"u"?S.useLayoutEffect:S.useEffect;function ws(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)r[o]=a||{};else if(!a)r[o]=i;else{r[o]={...i};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[o][l]=ws(a[l],i[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const mk=S.createContext(void 0);function fk(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?ws(o.defaultProps,n):!o.styleOverrides&&!o.variants?ws(o,n):n}function gk({props:e,name:t}){const r=S.useContext(mk);return fk({props:e,name:t,theme:{components:r}})}const Pu=(e,t,r,n=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},yk=(e,t,r)=>{function n(o,a=[],i=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...i,s]:i):t([...a,s],l,i))})}n(e)},bk=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Gi(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return yk(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,p=bk(s,l);Object.assign(o,{[u]:p}),Pu(a,s,`var(${u})`,c),Pu(i,s,`var(${u}, ${p})`,c)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function xk(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:p}=Gi(l,t);let h=p;const f={},{[s]:g,...y}=a;if(Object.entries(y||{}).forEach(([w,k])=>{const{vars:j,css:P,varsWithDefaults:B}=Gi(k,t);h=Ct(h,B),f[w]={css:P,vars:j}}),g){const{css:w,vars:k,varsWithDefaults:j}=Gi(g,t);h=Ct(h,j),f[s]={css:w,vars:k}}function v(w,k){let j=o;if(o==="class"&&(j=".%s"),o==="data"&&(j="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(j=`[${o}="%s"]`),w){if(j==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${a[w]?.palette?.mode||w})`]:{":root":k}};if(j)return e.defaultColorScheme===w?`:root, ${j.replace("%s",String(w))}`:j.replace("%s",String(w))}return":root"}return{vars:h,generateThemeVars:()=>{let w={...c};return Object.entries(f).forEach(([,{vars:k}])=>{w=Ct(w,k)}),w},generateStyleSheets:()=>{const w=[],k=e.defaultColorScheme||"light";function j(F,L){Object.keys(L).length&&w.push(typeof F=="string"?{[F]:{...L}}:F)}j(r(void 0,{...u}),u);const{[k]:P,...B}=f;if(P){const{css:F}=P,L=a[k]?.palette?.mode,m=!n&&L?{colorScheme:L,...F}:{...F};j(r(k,{...m}),m)}return Object.entries(B).forEach(([F,{css:L}])=>{const m=a[F]?.palette?.mode,R=!n&&m?{colorScheme:m,...L}:{...L};j(r(F,{...R}),R)}),w}}}function vk(e){const t={};return Object.entries(e).forEach(n=>{const[o,a]=n;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function Sk(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function fi(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?go(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ut(e,t){return ze({prop:e,themeKey:"borders",transform:t})}const wk=Ut("border",Lt),Ck=Ut("borderTop",Lt),kk=Ut("borderRight",Lt),Pk=Ut("borderBottom",Lt),Ik=Ut("borderLeft",Lt),jk=Ut("borderColor"),Ek=Ut("borderTopColor"),Rk=Ut("borderRightColor"),Tk=Ut("borderBottomColor"),Nk=Ut("borderLeftColor"),Mk=Ut("outline",Lt),Ak=Ut("outlineColor"),gi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=qo(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Fo(t,n)});return yr(e,e.borderRadius,r)}return null};gi.propTypes={};gi.filterProps=["borderRadius"];fi(wk,Ck,kk,Pk,Ik,jk,Ek,Rk,Tk,Nk,gi,Mk,Ak);const yi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=qo(e.theme,"spacing",8),r=n=>({gap:Fo(t,n)});return yr(e,e.gap,r)}return null};yi.propTypes={};yi.filterProps=["gap"];const bi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=qo(e.theme,"spacing",8),r=n=>({columnGap:Fo(t,n)});return yr(e,e.columnGap,r)}return null};bi.propTypes={};bi.filterProps=["columnGap"];const xi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=qo(e.theme,"spacing",8),r=n=>({rowGap:Fo(t,n)});return yr(e,e.rowGap,r)}return null};xi.propTypes={};xi.filterProps=["rowGap"];const _k=ze({prop:"gridColumn"}),Ok=ze({prop:"gridRow"}),Lk=ze({prop:"gridAutoFlow"}),$k=ze({prop:"gridAutoColumns"}),Dk=ze({prop:"gridAutoRows"}),Bk=ze({prop:"gridTemplateColumns"}),qk=ze({prop:"gridTemplateRows"}),Fk=ze({prop:"gridTemplateAreas"}),zk=ze({prop:"gridArea"});fi(yi,bi,xi,_k,Ok,Lk,$k,Dk,Bk,qk,Fk,zk);function Mn(e,t){return t==="grey"?t:e}const Uk=ze({prop:"color",themeKey:"palette",transform:Mn}),Wk=ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Mn}),Hk=ze({prop:"backgroundColor",themeKey:"palette",transform:Mn});fi(Uk,Wk,Hk);function St(e){return e<=1&&e!==0?`${e*100}%`:e}const Vk=ze({prop:"width",transform:St}),Rl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||hi[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:St(r)}};return yr(e,e.maxWidth,t)}return null};Rl.filterProps=["maxWidth"];const Gk=ze({prop:"minWidth",transform:St}),Kk=ze({prop:"height",transform:St}),Qk=ze({prop:"maxHeight",transform:St}),Yk=ze({prop:"minHeight",transform:St});ze({prop:"size",cssProperty:"width",transform:St});ze({prop:"size",cssProperty:"height",transform:St});const Jk=ze({prop:"boxSizing"});fi(Vk,Rl,Gk,Kk,Qk,Yk,Jk);const zo={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gi},color:{themeKey:"palette",transform:Mn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Mn},backgroundColor:{themeKey:"palette",transform:Mn},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Le},mt:{style:Le},mr:{style:Le},mb:{style:Le},ml:{style:Le},mx:{style:Le},my:{style:Le},margin:{style:Le},marginTop:{style:Le},marginRight:{style:Le},marginBottom:{style:Le},marginLeft:{style:Le},marginX:{style:Le},marginY:{style:Le},marginInline:{style:Le},marginInlineStart:{style:Le},marginInlineEnd:{style:Le},marginBlock:{style:Le},marginBlockStart:{style:Le},marginBlockEnd:{style:Le},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yi},rowGap:{style:xi},columnGap:{style:bi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:St},maxWidth:{style:Rl},minWidth:{transform:St},height:{transform:St},maxHeight:{transform:St},minHeight:{transform:St},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xk(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Zk(e,t){return typeof e=="function"?e(t):e}function eP(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:p}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const h=mi(o,c)||{};return p?p(i):yr(i,n,g=>{let y=Ua(h,u,g);return g===y&&typeof g=="string"&&(y=Ua(h,u,`${r}${g==="default"?"":Je(g)}`,g)),l===!1?y:{[l]:y}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const a=o.unstable_sxConfig??zo;function i(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=Y1(o.breakpoints),u=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const f=Zk(l[h],o);if(f!=null)if(typeof f=="object")if(a[h])p=go(p,e(h,f,o,a));else{const g=yr({theme:o},f,y=>({[h]:y}));Xk(g,f)?p[h]=t({sx:f,theme:o}):p=go(p,g)}else p=go(p,e(h,f,o,a))}),H1(o,J1(u,p))}return Array.isArray(n)?n.map(i):i(n)}return t}const en=eP();en.filterProps=["sx"];const tP=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??zo;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function rP(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=tP(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return tr(s)?{...n,...s}:n}:a={...n,...t},{...o,sx:a}}const nP={borderRadius:4};function oP(e=8,t=El({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function aP(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function fh(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...i}=e,s=T1(r),l=oP(o);let c=Ct({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...nP,...a}},i);return c=K1(c),c.applyStyles=aP,c=t.reduce((u,p)=>Ct(u,p),c),c.unstable_sxConfig={...zo,...i?.unstable_sxConfig},c.unstable_sx=function(p){return en({sx:p,theme:this})},c}const Iu=e=>e,iP=()=>{let e=Iu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Iu}}},sP=iP(),lP={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ln(e,t,r="Mui"){const n=lP[t];return n?`${r}-${n}`:`${sP.generate(e)}-${t}`}function cP(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function uP(e){return Math.round(e*1e5)/1e5}const ju={textTransform:"uppercase"},Eu='"Roboto", "Helvetica", "Arial", sans-serif';function gh(e,t){const{fontFamily:r=Eu,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...p}=typeof t=="function"?t(e):t,h=n/14,f=u||(v=>`${v/l*h}rem`),g=(v,b,C,w,k)=>({fontFamily:r,fontWeight:v,fontSize:f(b),lineHeight:C,...r===Eu?{letterSpacing:`${uP(w/b)}em`}:{},...k,...c}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,ju),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,ju),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ct({htmlFontSize:l,pxToRem:f,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...y},p,{clone:!1})}const dP=.2,pP=.14,hP=.12;function Te(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${dP})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pP})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hP})`].join(",")}const mP=["none",Te(0,2,1,-1,0,1,1,0,0,1,3,0),Te(0,3,1,-2,0,2,2,0,0,1,5,0),Te(0,3,3,-2,0,3,4,0,0,1,8,0),Te(0,2,4,-1,0,4,5,0,0,1,10,0),Te(0,3,5,-1,0,5,8,0,0,1,14,0),Te(0,3,5,-1,0,6,10,0,0,1,18,0),Te(0,4,5,-2,0,7,10,1,0,2,16,1),Te(0,5,5,-3,0,8,10,1,0,3,14,2),Te(0,5,6,-3,0,9,12,1,0,3,16,2),Te(0,6,6,-3,0,10,14,1,0,4,18,3),Te(0,6,7,-4,0,11,15,1,0,4,20,3),Te(0,7,8,-4,0,12,17,2,0,5,22,4),Te(0,7,8,-4,0,13,19,2,0,5,24,4),Te(0,7,9,-4,0,14,21,2,0,5,26,4),Te(0,8,9,-5,0,15,22,2,0,6,28,5),Te(0,8,10,-5,0,16,24,2,0,6,30,5),Te(0,8,11,-5,0,17,26,2,0,6,32,5),Te(0,9,11,-5,0,18,28,2,0,7,34,6),Te(0,9,12,-6,0,19,29,2,0,7,36,6),Te(0,10,13,-6,0,20,31,3,0,8,38,7),Te(0,10,13,-6,0,21,33,3,0,8,40,7),Te(0,10,14,-6,0,22,35,3,0,8,42,7),Te(0,11,14,-7,0,23,36,3,0,9,44,8),Te(0,11,15,-7,0,24,38,3,0,9,46,8)],fP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ru(e){return`${Math.round(e)}ms`}function yP(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function bP(e){const t={...fP,...e.easing},r={...gP,...e.duration};return{getAutoHeightDuration:yP,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=a;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Ru(i)} ${s} ${typeof l=="string"?l:Ru(l)}`).join(",")},...e,easing:t,duration:r}}const xP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function vP(e){return tr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function yh(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[i,s]=o[a];!vP(s)||i.startsWith("unstable_")?delete n[i]:tr(s)&&(n[i]={...s},r(n[i]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
160
160
 
161
161
  const theme = ${JSON.stringify(t,null,2)};
162
162
 
163
163
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
164
164
  theme.transitions = createTransitions(theme.transitions || {});
165
165
 
166
- export default theme;`}function Cs(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Zr(20));const u=Pl(a),p=fh(e);let h=Ct(p,{mixins:cP(p.breakpoints,n),palette:u,shadows:mP.slice(),typography:gh(u,s),transitions:bP(i),zIndex:{...xP}});return h=Ct(h,c),h=t.reduce((f,g)=>Ct(f,g),h),h.unstable_sxConfig={...zo,...c?.unstable_sxConfig},h.unstable_sx=function(g){return en({sx:g,theme:this})},h.toRuntimeSource=yh,h}function SP(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const wP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=SP(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function bh(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function xh(e){return e==="dark"?wP:[]}function CP(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,a=Pl(t);return{palette:a,opacity:{...bh(a.mode),...r},overlays:n||xh(a.mode),...o}}function kP(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const PP=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],IP=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return PP(e.cssVarPrefix).forEach(s=>{i[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",t)]:i,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function jP(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function A(e,t,r){!e[t]&&r&&(e[t]=r)}function uo(e){return typeof e!="string"||!e.startsWith("hsl")?e:uh(e)}function lr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=co(uo(e[t])))}function EP(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xt=e=>{try{return e()}catch{}},RP=(e="mui")=>fe.unstable_createGetCssVar(e);function Ki(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=CP({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...i}=Cs({...r,palette:{mode:o,...t?.palette}});return e[n]={...t,palette:a,opacity:{...bh(o),...t?.opacity},overlays:t?.overlays||xh(o)},i}function TP(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=kP,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(r)[0],p=n||(r.light&&u!=="light"?"light":u),h=RP(a),{[p]:f,light:g,dark:y,...v}=r,b={...v};let C=f;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(C=!0),!C)throw new Error(Zr(21,p));const w=Ki(b,C,c,p);g&&!b.light&&Ki(b,g,void 0,"light"),y&&!b.dark&&Ki(b,y,void 0,"dark");let k={defaultColorScheme:p,...w,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:b,font:{...vk(w.typography),...w.font},spacing:EP(c.spacing)};Object.keys(k.colorSchemes).forEach(L=>{const m=k.colorSchemes[L].palette,R=D=>{const $=D.split("-"),H=$[1],X=$[2];return h(D,m[H][X])};if(m.mode==="light"&&(A(m.common,"background","#fff"),A(m.common,"onBackground","#000")),m.mode==="dark"&&(A(m.common,"background","#000"),A(m.common,"onBackground","#fff")),jP(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){A(m.Alert,"errorColor",Ce(m.error.light,.6)),A(m.Alert,"infoColor",Ce(m.info.light,.6)),A(m.Alert,"successColor",Ce(m.success.light,.6)),A(m.Alert,"warningColor",Ce(m.warning.light,.6)),A(m.Alert,"errorFilledBg",R("palette-error-main")),A(m.Alert,"infoFilledBg",R("palette-info-main")),A(m.Alert,"successFilledBg",R("palette-success-main")),A(m.Alert,"warningFilledBg",R("palette-warning-main")),A(m.Alert,"errorFilledColor",Xt(()=>m.getContrastText(m.error.main))),A(m.Alert,"infoFilledColor",Xt(()=>m.getContrastText(m.info.main))),A(m.Alert,"successFilledColor",Xt(()=>m.getContrastText(m.success.main))),A(m.Alert,"warningFilledColor",Xt(()=>m.getContrastText(m.warning.main))),A(m.Alert,"errorStandardBg",ke(m.error.light,.9)),A(m.Alert,"infoStandardBg",ke(m.info.light,.9)),A(m.Alert,"successStandardBg",ke(m.success.light,.9)),A(m.Alert,"warningStandardBg",ke(m.warning.light,.9)),A(m.Alert,"errorIconColor",R("palette-error-main")),A(m.Alert,"infoIconColor",R("palette-info-main")),A(m.Alert,"successIconColor",R("palette-success-main")),A(m.Alert,"warningIconColor",R("palette-warning-main")),A(m.AppBar,"defaultBg",R("palette-grey-100")),A(m.Avatar,"defaultBg",R("palette-grey-400")),A(m.Button,"inheritContainedBg",R("palette-grey-300")),A(m.Button,"inheritContainedHoverBg",R("palette-grey-A100")),A(m.Chip,"defaultBorder",R("palette-grey-400")),A(m.Chip,"defaultAvatarColor",R("palette-grey-700")),A(m.Chip,"defaultIconColor",R("palette-grey-700")),A(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),A(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),A(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),A(m.LinearProgress,"primaryBg",ke(m.primary.main,.62)),A(m.LinearProgress,"secondaryBg",ke(m.secondary.main,.62)),A(m.LinearProgress,"errorBg",ke(m.error.main,.62)),A(m.LinearProgress,"infoBg",ke(m.info.main,.62)),A(m.LinearProgress,"successBg",ke(m.success.main,.62)),A(m.LinearProgress,"warningBg",ke(m.warning.main,.62)),A(m.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),A(m.Slider,"primaryTrack",ke(m.primary.main,.62)),A(m.Slider,"secondaryTrack",ke(m.secondary.main,.62)),A(m.Slider,"errorTrack",ke(m.error.main,.62)),A(m.Slider,"infoTrack",ke(m.info.main,.62)),A(m.Slider,"successTrack",ke(m.success.main,.62)),A(m.Slider,"warningTrack",ke(m.warning.main,.62));const D=ca(m.background.default,.8);A(m.SnackbarContent,"bg",D),A(m.SnackbarContent,"color",Xt(()=>m.getContrastText(D))),A(m.SpeedDialAction,"fabHoverBg",ca(m.background.paper,.15)),A(m.StepConnector,"border",R("palette-grey-400")),A(m.StepContent,"border",R("palette-grey-400")),A(m.Switch,"defaultColor",R("palette-common-white")),A(m.Switch,"defaultDisabledColor",R("palette-grey-100")),A(m.Switch,"primaryDisabledColor",ke(m.primary.main,.62)),A(m.Switch,"secondaryDisabledColor",ke(m.secondary.main,.62)),A(m.Switch,"errorDisabledColor",ke(m.error.main,.62)),A(m.Switch,"infoDisabledColor",ke(m.info.main,.62)),A(m.Switch,"successDisabledColor",ke(m.success.main,.62)),A(m.Switch,"warningDisabledColor",ke(m.warning.main,.62)),A(m.TableCell,"border",ke(la(m.divider,1),.88)),A(m.Tooltip,"bg",la(m.grey[700],.92))}if(m.mode==="dark"){A(m.Alert,"errorColor",ke(m.error.light,.6)),A(m.Alert,"infoColor",ke(m.info.light,.6)),A(m.Alert,"successColor",ke(m.success.light,.6)),A(m.Alert,"warningColor",ke(m.warning.light,.6)),A(m.Alert,"errorFilledBg",R("palette-error-dark")),A(m.Alert,"infoFilledBg",R("palette-info-dark")),A(m.Alert,"successFilledBg",R("palette-success-dark")),A(m.Alert,"warningFilledBg",R("palette-warning-dark")),A(m.Alert,"errorFilledColor",Xt(()=>m.getContrastText(m.error.dark))),A(m.Alert,"infoFilledColor",Xt(()=>m.getContrastText(m.info.dark))),A(m.Alert,"successFilledColor",Xt(()=>m.getContrastText(m.success.dark))),A(m.Alert,"warningFilledColor",Xt(()=>m.getContrastText(m.warning.dark))),A(m.Alert,"errorStandardBg",Ce(m.error.light,.9)),A(m.Alert,"infoStandardBg",Ce(m.info.light,.9)),A(m.Alert,"successStandardBg",Ce(m.success.light,.9)),A(m.Alert,"warningStandardBg",Ce(m.warning.light,.9)),A(m.Alert,"errorIconColor",R("palette-error-main")),A(m.Alert,"infoIconColor",R("palette-info-main")),A(m.Alert,"successIconColor",R("palette-success-main")),A(m.Alert,"warningIconColor",R("palette-warning-main")),A(m.AppBar,"defaultBg",R("palette-grey-900")),A(m.AppBar,"darkBg",R("palette-background-paper")),A(m.AppBar,"darkColor",R("palette-text-primary")),A(m.Avatar,"defaultBg",R("palette-grey-600")),A(m.Button,"inheritContainedBg",R("palette-grey-800")),A(m.Button,"inheritContainedHoverBg",R("palette-grey-700")),A(m.Chip,"defaultBorder",R("palette-grey-700")),A(m.Chip,"defaultAvatarColor",R("palette-grey-300")),A(m.Chip,"defaultIconColor",R("palette-grey-300")),A(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),A(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),A(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),A(m.LinearProgress,"primaryBg",Ce(m.primary.main,.5)),A(m.LinearProgress,"secondaryBg",Ce(m.secondary.main,.5)),A(m.LinearProgress,"errorBg",Ce(m.error.main,.5)),A(m.LinearProgress,"infoBg",Ce(m.info.main,.5)),A(m.LinearProgress,"successBg",Ce(m.success.main,.5)),A(m.LinearProgress,"warningBg",Ce(m.warning.main,.5)),A(m.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),A(m.Slider,"primaryTrack",Ce(m.primary.main,.5)),A(m.Slider,"secondaryTrack",Ce(m.secondary.main,.5)),A(m.Slider,"errorTrack",Ce(m.error.main,.5)),A(m.Slider,"infoTrack",Ce(m.info.main,.5)),A(m.Slider,"successTrack",Ce(m.success.main,.5)),A(m.Slider,"warningTrack",Ce(m.warning.main,.5));const D=ca(m.background.default,.98);A(m.SnackbarContent,"bg",D),A(m.SnackbarContent,"color",Xt(()=>m.getContrastText(D))),A(m.SpeedDialAction,"fabHoverBg",ca(m.background.paper,.15)),A(m.StepConnector,"border",R("palette-grey-600")),A(m.StepContent,"border",R("palette-grey-600")),A(m.Switch,"defaultColor",R("palette-grey-300")),A(m.Switch,"defaultDisabledColor",R("palette-grey-600")),A(m.Switch,"primaryDisabledColor",Ce(m.primary.main,.55)),A(m.Switch,"secondaryDisabledColor",Ce(m.secondary.main,.55)),A(m.Switch,"errorDisabledColor",Ce(m.error.main,.55)),A(m.Switch,"infoDisabledColor",Ce(m.info.main,.55)),A(m.Switch,"successDisabledColor",Ce(m.success.main,.55)),A(m.Switch,"warningDisabledColor",Ce(m.warning.main,.55)),A(m.TableCell,"border",Ce(la(m.divider,1),.68)),A(m.Tooltip,"bg",la(m.grey[700],.92))}lr(m.background,"default"),lr(m.background,"paper"),lr(m.common,"background"),lr(m.common,"onBackground"),lr(m,"divider"),Object.keys(m).forEach(D=>{const $=m[D];D!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&A(m[D],"mainChannel",co(uo($.main))),$.light&&A(m[D],"lightChannel",co(uo($.light))),$.dark&&A(m[D],"darkChannel",co(uo($.dark))),$.contrastText&&A(m[D],"contrastTextChannel",co(uo($.contrastText))),D==="text"&&(lr(m[D],"primary"),lr(m[D],"secondary")),D==="action"&&($.active&&lr(m[D],"active"),$.selected&&lr(m[D],"selected")))})}),k=t.reduce((L,m)=>Ct(L,m),k);const j={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:IP(k)},{vars:P,generateThemeVars:B,generateStyleSheets:F}=xk(k,j);return k.vars=P,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([L,m])=>{k[L]=m}),k.generateThemeVars=B,k.generateStyleSheets=F,k.generateSpacing=function(){return fe.createSpacing(c.spacing,El(this))},k.getColorSchemeSelector=Sk(s),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=i,k.unstable_sxConfig={...zo,...c?.unstable_sxConfig},k.unstable_sx=function(m){return en({sx:m,theme:this})},k.toRuntimeSource=yh,k}function Tu(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Pl({...r===!0?{}:r.palette,mode:t})})}function Tl(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Cs(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const p=Cs({...e,palette:u},...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},Tu(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Tu(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),TP({...i,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const NP=Tl();function MP(e){const{variants:t,...r}=e,n={variants:t,style:ku(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ku(o.style))}),n}const AP=fh();function Qi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function _P(e){return e?(t,r)=>r[e]:null}function OP(e,t,r){e.theme=DP(e.theme)?r:e.theme[t]||e.theme}function va(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>va(e,n));if(Array.isArray(r?.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return vh(e,r.variants,[n])}return r?.isProcessed?r.style:r}function vh(e,t,r=[]){let n;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const i in a.props)if(e[i]!==a.props[i]&&e.ownerState?.[i]!==a.props[i])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function LP(e={}){const{themeId:t,defaultTheme:r=AP,rootShouldForwardProp:n=Qi,slotShouldForwardProp:o=Qi}=e;function a(s){OP(s,t,r)}return(s,l={})=>{pk(s,j=>j.filter(P=>P!==en));const{name:c,slot:u,skipVariantsResolver:p,skipSx:h,overridesResolver:f=_P(qP(u)),...g}=l,y=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let b=Qi;u==="Root"||u==="root"?b=n:u?b=o:BP(s)&&(b=void 0);const C=dk(s,{shouldForwardProp:b,label:$P(),...g}),w=j=>{if(j.__emotion_real===j)return j;if(typeof j=="function")return function(B){return va(B,j)};if(tr(j)){const P=MP(j);return P.variants?function(F){return va(F,P)}:P.style}return j},k=(...j)=>{const P=[],B=j.map(w),F=[];if(P.push(a),c&&f&&F.push(function(D){const H=D.theme.components?.[c]?.styleOverrides;if(!H)return null;const X={};for(const V in H)X[V]=va(D,H[V]);return f(D,X)}),c&&!y&&F.push(function(D){const H=D.theme?.components?.[c]?.variants;return H?vh(D,H):null}),v||F.push(en),Array.isArray(B[0])){const R=B.shift(),D=new Array(P.length).fill(""),$=new Array(F.length).fill("");let H;H=[...D,...R,...$],H.raw=[...D,...R.raw,...$],P.unshift(H)}const L=[...P,...B,...F],m=C(...L);return s.muiName&&(m.muiName=s.muiName),m};return C.withConfig&&(k.withConfig=C.withConfig),k}}function $P(e,t){return void 0}function DP(e){for(const t in e)return!1;return!0}function BP(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qP(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function FP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zP=e=>FP(e)&&e!=="classes",ut=LP({themeId:Yr,defaultTheme:NP,rootShouldForwardProp:zP});function UP({theme:e,...t}){const r=Yr in e?e[Yr]:void 0;return d.jsx(fe.ThemeProvider,{...t,themeId:r?Yr:void 0,theme:r||e})}const ua={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:WP,useColorScheme:gj,getInitColorSchemeScript:yj}=fe.unstable_createCssVarsProvider({themeId:Yr,theme:()=>Tl({cssVariables:!0}),colorSchemeStorageKey:ua.colorSchemeStorageKey,modeStorageKey:ua.modeStorageKey,defaultColorScheme:{light:ua.defaultLightColorScheme,dark:ua.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:gh(e.palette,e.typography)};return t.unstable_sx=function(n){return en({sx:n,theme:this})},t}}),HP=WP;function VP({theme:e,...t}){const r=S.useMemo(()=>{if(typeof e=="function")return e;const n=Yr in e?e[Yr]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?d.jsx(UP,{theme:r,...t}):d.jsx(HP,{theme:e,...t})}function Sh(){const e=Fn();return d.jsx(j1,{navigate:e})}function Or(e){return gk(e)}const wh=fe.createContainer({createStyledComponent:ut("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Je(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Or({props:e,name:"MuiContainer"})});function ln(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=sn(e,o,r)}),n}function Ch(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ch(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function at(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ch(e))&&(n&&(n+=" "),n+=t);return n}function zn(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(i+=" "+r[c]))}n[o]=i}return n}function ks(...e){const t=S.useRef(void 0),r=S.useCallback(n=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(n);return typeof s=="function"?s:()=>{i(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return S.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function GP(e){return typeof e=="string"}function KP(e,t,r){return e===void 0||GP(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function QP(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Nu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function YP(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const f=at(r?.className,a,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},y={...r,...o,...n};return f.length>0&&(y.className=f),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=QP({...o,...n}),s=Nu(n),l=Nu(o),c=t(i),u=at(c?.className,r?.className,a,o?.className,n?.className),p={...c?.style,...r?.style,...o?.style,...n?.style},h={...c,...r,...l,...s};return u.length>0&&(h.className=u),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}function JP(e,t,r){return typeof e=="function"?e(t,r):e}function XP(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:JP(r,n),{props:s,internalRef:l}=YP({...a,externalSlotProps:i}),c=ks(l,i?.ref,e.additionalProps?.ref);return KP(t,{...s,ref:c},n)}function ZP(){return rP}const tn=fe.unstable_memoTheme;function eI(e){return typeof e.main=="string"}function tI(e,t=[]){if(!eI(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Ha(e=[]){return([,t])=>t&&tI(t,e)}function rI(e){return sn("MuiTypography",e)}ln("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const nI={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},oI=ZP(),aI=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Je(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return zn(s,rI,i)},iI=ut("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Je(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(tn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Ha()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Je(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Mu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},sI=S.forwardRef(function(t,r){const{color:n,...o}=Or({props:t,name:"MuiTypography"}),a=!nI[n],i=oI({...o,...a&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:p=!1,paragraph:h=!1,variant:f="body1",variantMapping:g=Mu,...y}=i,v={...i,align:s,color:n,className:l,component:c,gutterBottom:u,noWrap:p,paragraph:h,variant:f,variantMapping:g},b=c||(h?"p":g[f]||Mu[f])||"span",C=aI(v);return d.jsx(iI,{as:b,ref:r,className:at(C.root,l),...y,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...y.style}})});function lI(e){return sn("MuiSvgIcon",e)}ln("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cI=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Je(t)}`,`fontSize${Je(r)}`]};return zn(o,lI,n)},uI=ut("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Je(r.color)}`],t[`fontSize${Je(r.fontSize)}`]]}})(tn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ps=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:h="0 0 24 24",...f}=n,g=S.isValidElement(o)&&o.type==="svg",y={...n,color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},v={};u||(v.viewBox=h);const b=cI(y);return d.jsxs(uI,{as:s,className:at(b.root,a),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...v,...f,...g&&o.props,ownerState:y,children:[g?o.props.children:o,p?d.jsx("title",{children:p}):null]})});Ps.muiName="SvgIcon";function Nl(e,t){function r(n,o){return d.jsx(Ps,{"data-testid":void 0,ref:o,...n,children:e})}return r.muiName=Ps.muiName,S.memo(S.forwardRef(r))}const dI=Nl(d.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));function Au(e){try{return e.matches(":focus-visible")}catch{}return!1}function Sa(e){const t=S.useRef(e);return hk(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}const _u={};function kh(e,t){const r=S.useRef(_u);return r.current===_u&&(r.current=e(t)),r}class Va{constructor(){T(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Va}static use(){const t=kh(Va.create).current,[r,n]=S.useState(!1);return t.shouldMount=r,t.setShouldMount=n,S.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=hI(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function pI(){return Va.use()}function hI(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Is(){return Is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Is.apply(null,arguments)}function mI(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function js(e,t){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},js(e,t)}function fI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,js(e,t)}const Ou=_.createContext(null);function gI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ml(e,t){var r=function(a){return t&&_.isValidElement(a)?t(a):a},n=Object.create(null);return e&&_.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function yI(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(n[l])for(i=0;i<n[l].length;i++){var c=n[l][i];s[n[l][i]]=r(c)}s[l]=r(l)}for(i=0;i<o.length;i++)s[o[i]]=r(o[i]);return s}function Kr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bI(e,t){return Ml(e.children,function(r){return _.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Kr(r,"appear",e),enter:Kr(r,"enter",e),exit:Kr(r,"exit",e)})})}function xI(e,t,r){var n=Ml(e.children),o=yI(t,n);return Object.keys(o).forEach(function(a){var i=o[a];if(_.isValidElement(i)){var s=a in t,l=a in n,c=t[a],u=_.isValidElement(c)&&!c.props.in;l&&(!s||u)?o[a]=_.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:Kr(i,"exit",e),enter:Kr(i,"enter",e)}):!l&&s&&!u?o[a]=_.cloneElement(i,{in:!1}):l&&s&&_.isValidElement(c)&&(o[a]=_.cloneElement(i,{onExited:r.bind(null,i),in:c.props.in,exit:Kr(i,"exit",e),enter:Kr(i,"enter",e)}))}}),o}var vI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SI={component:"div",childFactory:function(t){return t}},Al=function(e){fI(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=a.handleExited.bind(gI(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,s=a.handleExited,l=a.firstRender;return{children:l?bI(o,s):xI(o,i,s),firstRender:!1}},r.handleExited=function(o,a){var i=Ml(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(s){var l=Is({},s.children);return delete l[o.key],{children:l}}))},r.render=function(){var o=this.props,a=o.component,i=o.childFactory,s=mI(o,["component","childFactory"]),l=this.state.contextValue,c=vI(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,a===null?_.createElement(Ou.Provider,{value:l},c):_.createElement(Ou.Provider,{value:l},_.createElement(a,s,c))},t}(_.Component);Al.propTypes={};Al.defaultProps=SI;const wI=[];function CI(e){S.useEffect(e,wI)}class _l{constructor(){T(this,"currentId",null);T(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});T(this,"disposeEffect",()=>this.clear)}static create(){return new _l}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function kI(){const e=kh(_l.create).current;return CI(e.disposeEffect),e}function PI(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,p]=S.useState(!1),h=at(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=at(r.child,u&&r.childLeaving,n&&r.childPulsate);return!s&&!u&&p(!0),S.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),d.jsx("span",{className:h,style:f,children:d.jsx("span",{className:g})})}const _t=ln("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Es=550,II=80,jI=fe.keyframes`
166
+ export default theme;`}function Cs(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Zr(20));const u=Pl(a),p=fh(e);let h=Ct(p,{mixins:cP(p.breakpoints,n),palette:u,shadows:mP.slice(),typography:gh(u,s),transitions:bP(i),zIndex:{...xP}});return h=Ct(h,c),h=t.reduce((f,g)=>Ct(f,g),h),h.unstable_sxConfig={...zo,...c?.unstable_sxConfig},h.unstable_sx=function(g){return en({sx:g,theme:this})},h.toRuntimeSource=yh,h}function SP(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const wP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=SP(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function bh(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function xh(e){return e==="dark"?wP:[]}function CP(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,a=Pl(t);return{palette:a,opacity:{...bh(a.mode),...r},overlays:n||xh(a.mode),...o}}function kP(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const PP=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],IP=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return PP(e.cssVarPrefix).forEach(s=>{i[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:a?{[a.replace("%s",t)]:i,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function jP(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function A(e,t,r){!e[t]&&r&&(e[t]=r)}function uo(e){return typeof e!="string"||!e.startsWith("hsl")?e:uh(e)}function lr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=co(uo(e[t])))}function EP(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xt=e=>{try{return e()}catch{}},RP=(e="mui")=>fe.unstable_createGetCssVar(e);function Ki(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=CP({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...i}=Cs({...r,palette:{mode:o,...t?.palette}});return e[n]={...t,palette:a,opacity:{...bh(o),...t?.opacity},overlays:t?.overlays||xh(o)},i}function TP(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=kP,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(r)[0],p=n||(r.light&&u!=="light"?"light":u),h=RP(a),{[p]:f,light:g,dark:y,...v}=r,b={...v};let C=f;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(C=!0),!C)throw new Error(Zr(21,p));const w=Ki(b,C,c,p);g&&!b.light&&Ki(b,g,void 0,"light"),y&&!b.dark&&Ki(b,y,void 0,"dark");let k={defaultColorScheme:p,...w,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:b,font:{...vk(w.typography),...w.font},spacing:EP(c.spacing)};Object.keys(k.colorSchemes).forEach(L=>{const m=k.colorSchemes[L].palette,R=D=>{const $=D.split("-"),H=$[1],X=$[2];return h(D,m[H][X])};if(m.mode==="light"&&(A(m.common,"background","#fff"),A(m.common,"onBackground","#000")),m.mode==="dark"&&(A(m.common,"background","#000"),A(m.common,"onBackground","#fff")),jP(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){A(m.Alert,"errorColor",Ce(m.error.light,.6)),A(m.Alert,"infoColor",Ce(m.info.light,.6)),A(m.Alert,"successColor",Ce(m.success.light,.6)),A(m.Alert,"warningColor",Ce(m.warning.light,.6)),A(m.Alert,"errorFilledBg",R("palette-error-main")),A(m.Alert,"infoFilledBg",R("palette-info-main")),A(m.Alert,"successFilledBg",R("palette-success-main")),A(m.Alert,"warningFilledBg",R("palette-warning-main")),A(m.Alert,"errorFilledColor",Xt(()=>m.getContrastText(m.error.main))),A(m.Alert,"infoFilledColor",Xt(()=>m.getContrastText(m.info.main))),A(m.Alert,"successFilledColor",Xt(()=>m.getContrastText(m.success.main))),A(m.Alert,"warningFilledColor",Xt(()=>m.getContrastText(m.warning.main))),A(m.Alert,"errorStandardBg",ke(m.error.light,.9)),A(m.Alert,"infoStandardBg",ke(m.info.light,.9)),A(m.Alert,"successStandardBg",ke(m.success.light,.9)),A(m.Alert,"warningStandardBg",ke(m.warning.light,.9)),A(m.Alert,"errorIconColor",R("palette-error-main")),A(m.Alert,"infoIconColor",R("palette-info-main")),A(m.Alert,"successIconColor",R("palette-success-main")),A(m.Alert,"warningIconColor",R("palette-warning-main")),A(m.AppBar,"defaultBg",R("palette-grey-100")),A(m.Avatar,"defaultBg",R("palette-grey-400")),A(m.Button,"inheritContainedBg",R("palette-grey-300")),A(m.Button,"inheritContainedHoverBg",R("palette-grey-A100")),A(m.Chip,"defaultBorder",R("palette-grey-400")),A(m.Chip,"defaultAvatarColor",R("palette-grey-700")),A(m.Chip,"defaultIconColor",R("palette-grey-700")),A(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),A(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),A(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),A(m.LinearProgress,"primaryBg",ke(m.primary.main,.62)),A(m.LinearProgress,"secondaryBg",ke(m.secondary.main,.62)),A(m.LinearProgress,"errorBg",ke(m.error.main,.62)),A(m.LinearProgress,"infoBg",ke(m.info.main,.62)),A(m.LinearProgress,"successBg",ke(m.success.main,.62)),A(m.LinearProgress,"warningBg",ke(m.warning.main,.62)),A(m.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),A(m.Slider,"primaryTrack",ke(m.primary.main,.62)),A(m.Slider,"secondaryTrack",ke(m.secondary.main,.62)),A(m.Slider,"errorTrack",ke(m.error.main,.62)),A(m.Slider,"infoTrack",ke(m.info.main,.62)),A(m.Slider,"successTrack",ke(m.success.main,.62)),A(m.Slider,"warningTrack",ke(m.warning.main,.62));const D=ca(m.background.default,.8);A(m.SnackbarContent,"bg",D),A(m.SnackbarContent,"color",Xt(()=>m.getContrastText(D))),A(m.SpeedDialAction,"fabHoverBg",ca(m.background.paper,.15)),A(m.StepConnector,"border",R("palette-grey-400")),A(m.StepContent,"border",R("palette-grey-400")),A(m.Switch,"defaultColor",R("palette-common-white")),A(m.Switch,"defaultDisabledColor",R("palette-grey-100")),A(m.Switch,"primaryDisabledColor",ke(m.primary.main,.62)),A(m.Switch,"secondaryDisabledColor",ke(m.secondary.main,.62)),A(m.Switch,"errorDisabledColor",ke(m.error.main,.62)),A(m.Switch,"infoDisabledColor",ke(m.info.main,.62)),A(m.Switch,"successDisabledColor",ke(m.success.main,.62)),A(m.Switch,"warningDisabledColor",ke(m.warning.main,.62)),A(m.TableCell,"border",ke(la(m.divider,1),.88)),A(m.Tooltip,"bg",la(m.grey[700],.92))}if(m.mode==="dark"){A(m.Alert,"errorColor",ke(m.error.light,.6)),A(m.Alert,"infoColor",ke(m.info.light,.6)),A(m.Alert,"successColor",ke(m.success.light,.6)),A(m.Alert,"warningColor",ke(m.warning.light,.6)),A(m.Alert,"errorFilledBg",R("palette-error-dark")),A(m.Alert,"infoFilledBg",R("palette-info-dark")),A(m.Alert,"successFilledBg",R("palette-success-dark")),A(m.Alert,"warningFilledBg",R("palette-warning-dark")),A(m.Alert,"errorFilledColor",Xt(()=>m.getContrastText(m.error.dark))),A(m.Alert,"infoFilledColor",Xt(()=>m.getContrastText(m.info.dark))),A(m.Alert,"successFilledColor",Xt(()=>m.getContrastText(m.success.dark))),A(m.Alert,"warningFilledColor",Xt(()=>m.getContrastText(m.warning.dark))),A(m.Alert,"errorStandardBg",Ce(m.error.light,.9)),A(m.Alert,"infoStandardBg",Ce(m.info.light,.9)),A(m.Alert,"successStandardBg",Ce(m.success.light,.9)),A(m.Alert,"warningStandardBg",Ce(m.warning.light,.9)),A(m.Alert,"errorIconColor",R("palette-error-main")),A(m.Alert,"infoIconColor",R("palette-info-main")),A(m.Alert,"successIconColor",R("palette-success-main")),A(m.Alert,"warningIconColor",R("palette-warning-main")),A(m.AppBar,"defaultBg",R("palette-grey-900")),A(m.AppBar,"darkBg",R("palette-background-paper")),A(m.AppBar,"darkColor",R("palette-text-primary")),A(m.Avatar,"defaultBg",R("palette-grey-600")),A(m.Button,"inheritContainedBg",R("palette-grey-800")),A(m.Button,"inheritContainedHoverBg",R("palette-grey-700")),A(m.Chip,"defaultBorder",R("palette-grey-700")),A(m.Chip,"defaultAvatarColor",R("palette-grey-300")),A(m.Chip,"defaultIconColor",R("palette-grey-300")),A(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),A(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),A(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),A(m.LinearProgress,"primaryBg",Ce(m.primary.main,.5)),A(m.LinearProgress,"secondaryBg",Ce(m.secondary.main,.5)),A(m.LinearProgress,"errorBg",Ce(m.error.main,.5)),A(m.LinearProgress,"infoBg",Ce(m.info.main,.5)),A(m.LinearProgress,"successBg",Ce(m.success.main,.5)),A(m.LinearProgress,"warningBg",Ce(m.warning.main,.5)),A(m.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),A(m.Slider,"primaryTrack",Ce(m.primary.main,.5)),A(m.Slider,"secondaryTrack",Ce(m.secondary.main,.5)),A(m.Slider,"errorTrack",Ce(m.error.main,.5)),A(m.Slider,"infoTrack",Ce(m.info.main,.5)),A(m.Slider,"successTrack",Ce(m.success.main,.5)),A(m.Slider,"warningTrack",Ce(m.warning.main,.5));const D=ca(m.background.default,.98);A(m.SnackbarContent,"bg",D),A(m.SnackbarContent,"color",Xt(()=>m.getContrastText(D))),A(m.SpeedDialAction,"fabHoverBg",ca(m.background.paper,.15)),A(m.StepConnector,"border",R("palette-grey-600")),A(m.StepContent,"border",R("palette-grey-600")),A(m.Switch,"defaultColor",R("palette-grey-300")),A(m.Switch,"defaultDisabledColor",R("palette-grey-600")),A(m.Switch,"primaryDisabledColor",Ce(m.primary.main,.55)),A(m.Switch,"secondaryDisabledColor",Ce(m.secondary.main,.55)),A(m.Switch,"errorDisabledColor",Ce(m.error.main,.55)),A(m.Switch,"infoDisabledColor",Ce(m.info.main,.55)),A(m.Switch,"successDisabledColor",Ce(m.success.main,.55)),A(m.Switch,"warningDisabledColor",Ce(m.warning.main,.55)),A(m.TableCell,"border",Ce(la(m.divider,1),.68)),A(m.Tooltip,"bg",la(m.grey[700],.92))}lr(m.background,"default"),lr(m.background,"paper"),lr(m.common,"background"),lr(m.common,"onBackground"),lr(m,"divider"),Object.keys(m).forEach(D=>{const $=m[D];D!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&A(m[D],"mainChannel",co(uo($.main))),$.light&&A(m[D],"lightChannel",co(uo($.light))),$.dark&&A(m[D],"darkChannel",co(uo($.dark))),$.contrastText&&A(m[D],"contrastTextChannel",co(uo($.contrastText))),D==="text"&&(lr(m[D],"primary"),lr(m[D],"secondary")),D==="action"&&($.active&&lr(m[D],"active"),$.selected&&lr(m[D],"selected")))})}),k=t.reduce((L,m)=>Ct(L,m),k);const j={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:IP(k)},{vars:P,generateThemeVars:B,generateStyleSheets:F}=xk(k,j);return k.vars=P,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([L,m])=>{k[L]=m}),k.generateThemeVars=B,k.generateStyleSheets=F,k.generateSpacing=function(){return fe.createSpacing(c.spacing,El(this))},k.getColorSchemeSelector=Sk(s),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=i,k.unstable_sxConfig={...zo,...c?.unstable_sxConfig},k.unstable_sx=function(m){return en({sx:m,theme:this})},k.toRuntimeSource=yh,k}function Tu(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Pl({...r===!0?{}:r.palette,mode:t})})}function Tl(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...i}=e,s=a||"light",l=o?.[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Cs(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const p=Cs({...e,palette:u},...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},Tu(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Tu(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),TP({...i,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const NP=Tl();function MP(e){const{variants:t,...r}=e,n={variants:t,style:ku(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ku(o.style))}),n}const AP=fh();function Qi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function _P(e){return e?(t,r)=>r[e]:null}function OP(e,t,r){e.theme=DP(e.theme)?r:e.theme[t]||e.theme}function va(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>va(e,n));if(Array.isArray(r?.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...a}=r;n=a}return vh(e,r.variants,[n])}return r?.isProcessed?r.style:r}function vh(e,t,r=[]){let n;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const i in a.props)if(e[i]!==a.props[i]&&e.ownerState?.[i]!==a.props[i])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function LP(e={}){const{themeId:t,defaultTheme:r=AP,rootShouldForwardProp:n=Qi,slotShouldForwardProp:o=Qi}=e;function a(s){OP(s,t,r)}return(s,l={})=>{pk(s,j=>j.filter(P=>P!==en));const{name:c,slot:u,skipVariantsResolver:p,skipSx:h,overridesResolver:f=_P(qP(u)),...g}=l,y=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let b=Qi;u==="Root"||u==="root"?b=n:u?b=o:BP(s)&&(b=void 0);const C=dk(s,{shouldForwardProp:b,label:$P(),...g}),w=j=>{if(j.__emotion_real===j)return j;if(typeof j=="function")return function(B){return va(B,j)};if(tr(j)){const P=MP(j);return P.variants?function(F){return va(F,P)}:P.style}return j},k=(...j)=>{const P=[],B=j.map(w),F=[];if(P.push(a),c&&f&&F.push(function(D){const H=D.theme.components?.[c]?.styleOverrides;if(!H)return null;const X={};for(const V in H)X[V]=va(D,H[V]);return f(D,X)}),c&&!y&&F.push(function(D){const H=D.theme?.components?.[c]?.variants;return H?vh(D,H):null}),v||F.push(en),Array.isArray(B[0])){const R=B.shift(),D=new Array(P.length).fill(""),$=new Array(F.length).fill("");let H;H=[...D,...R,...$],H.raw=[...D,...R.raw,...$],P.unshift(H)}const L=[...P,...B,...F],m=C(...L);return s.muiName&&(m.muiName=s.muiName),m};return C.withConfig&&(k.withConfig=C.withConfig),k}}function $P(e,t){return void 0}function DP(e){for(const t in e)return!1;return!0}function BP(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qP(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function FP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zP=e=>FP(e)&&e!=="classes",ut=LP({themeId:Yr,defaultTheme:NP,rootShouldForwardProp:zP});function UP({theme:e,...t}){const r=Yr in e?e[Yr]:void 0;return d.jsx(fe.ThemeProvider,{...t,themeId:r?Yr:void 0,theme:r||e})}const ua={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:WP,useColorScheme:gj,getInitColorSchemeScript:yj}=fe.unstable_createCssVarsProvider({themeId:Yr,theme:()=>Tl({cssVariables:!0}),colorSchemeStorageKey:ua.colorSchemeStorageKey,modeStorageKey:ua.modeStorageKey,defaultColorScheme:{light:ua.defaultLightColorScheme,dark:ua.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:gh(e.palette,e.typography)};return t.unstable_sx=function(n){return en({sx:n,theme:this})},t}}),HP=WP;function VP({theme:e,...t}){const r=S.useMemo(()=>{if(typeof e=="function")return e;const n=Yr in e?e[Yr]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?d.jsx(UP,{theme:r,...t}):d.jsx(HP,{theme:e,...t})}function Sh(){const e=Fn();return d.jsx(j1,{navigate:e})}function Or(e){return gk(e)}const wh=fe.createContainer({createStyledComponent:ut("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Je(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Or({props:e,name:"MuiContainer"})});function cn(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=ln(e,o,r)}),n}function Ch(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ch(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function at(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ch(e))&&(n&&(n+=" "),n+=t);return n}function zn(e,t,r=void 0){const n={};for(const o in e){const a=e[o];let i="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(i+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(i+=" "+r[c]))}n[o]=i}return n}function ks(...e){const t=S.useRef(void 0),r=S.useCallback(n=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(n);return typeof s=="function"?s:()=>{i(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return S.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function GP(e){return typeof e=="string"}function KP(e,t,r){return e===void 0||GP(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function QP(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Nu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function YP(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const f=at(r?.className,a,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},y={...r,...o,...n};return f.length>0&&(y.className=f),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=QP({...o,...n}),s=Nu(n),l=Nu(o),c=t(i),u=at(c?.className,r?.className,a,o?.className,n?.className),p={...c?.style,...r?.style,...o?.style,...n?.style},h={...c,...r,...l,...s};return u.length>0&&(h.className=u),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}function JP(e,t,r){return typeof e=="function"?e(t,r):e}function XP(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:JP(r,n),{props:s,internalRef:l}=YP({...a,externalSlotProps:i}),c=ks(l,i?.ref,e.additionalProps?.ref);return KP(t,{...s,ref:c},n)}function ZP(){return rP}const tn=fe.unstable_memoTheme;function eI(e){return typeof e.main=="string"}function tI(e,t=[]){if(!eI(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Ha(e=[]){return([,t])=>t&&tI(t,e)}function rI(e){return ln("MuiTypography",e)}cn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const nI={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},oI=ZP(),aI=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${Je(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return zn(s,rI,i)},iI=ut("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Je(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(tn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Ha()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Je(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Mu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},sI=S.forwardRef(function(t,r){const{color:n,...o}=Or({props:t,name:"MuiTypography"}),a=!nI[n],i=oI({...o,...a&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:p=!1,paragraph:h=!1,variant:f="body1",variantMapping:g=Mu,...y}=i,v={...i,align:s,color:n,className:l,component:c,gutterBottom:u,noWrap:p,paragraph:h,variant:f,variantMapping:g},b=c||(h?"p":g[f]||Mu[f])||"span",C=aI(v);return d.jsx(iI,{as:b,ref:r,className:at(C.root,l),...y,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...y.style}})});function lI(e){return ln("MuiSvgIcon",e)}cn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cI=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Je(t)}`,`fontSize${Je(r)}`]};return zn(o,lI,n)},uI=ut("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Je(r.color)}`],t[`fontSize${Je(r.fontSize)}`]]}})(tn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ps=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:h="0 0 24 24",...f}=n,g=S.isValidElement(o)&&o.type==="svg",y={...n,color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},v={};u||(v.viewBox=h);const b=cI(y);return d.jsxs(uI,{as:s,className:at(b.root,a),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...v,...f,...g&&o.props,ownerState:y,children:[g?o.props.children:o,p?d.jsx("title",{children:p}):null]})});Ps.muiName="SvgIcon";function Nl(e,t){function r(n,o){return d.jsx(Ps,{"data-testid":void 0,ref:o,...n,children:e})}return r.muiName=Ps.muiName,S.memo(S.forwardRef(r))}const dI=Nl(d.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));function Au(e){try{return e.matches(":focus-visible")}catch{}return!1}function Sa(e){const t=S.useRef(e);return hk(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}const _u={};function kh(e,t){const r=S.useRef(_u);return r.current===_u&&(r.current=e(t)),r}class Va{constructor(){T(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Va}static use(){const t=kh(Va.create).current,[r,n]=S.useState(!1);return t.shouldMount=r,t.setShouldMount=n,S.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=hI(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function pI(){return Va.use()}function hI(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Is(){return Is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Is.apply(null,arguments)}function mI(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function js(e,t){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},js(e,t)}function fI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,js(e,t)}const Ou=_.createContext(null);function gI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ml(e,t){var r=function(a){return t&&_.isValidElement(a)?t(a):a},n=Object.create(null);return e&&_.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function yI(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var l in t){if(n[l])for(i=0;i<n[l].length;i++){var c=n[l][i];s[n[l][i]]=r(c)}s[l]=r(l)}for(i=0;i<o.length;i++)s[o[i]]=r(o[i]);return s}function Kr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bI(e,t){return Ml(e.children,function(r){return _.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Kr(r,"appear",e),enter:Kr(r,"enter",e),exit:Kr(r,"exit",e)})})}function xI(e,t,r){var n=Ml(e.children),o=yI(t,n);return Object.keys(o).forEach(function(a){var i=o[a];if(_.isValidElement(i)){var s=a in t,l=a in n,c=t[a],u=_.isValidElement(c)&&!c.props.in;l&&(!s||u)?o[a]=_.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:Kr(i,"exit",e),enter:Kr(i,"enter",e)}):!l&&s&&!u?o[a]=_.cloneElement(i,{in:!1}):l&&s&&_.isValidElement(c)&&(o[a]=_.cloneElement(i,{onExited:r.bind(null,i),in:c.props.in,exit:Kr(i,"exit",e),enter:Kr(i,"enter",e)}))}}),o}var vI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SI={component:"div",childFactory:function(t){return t}},Al=function(e){fI(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=a.handleExited.bind(gI(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,s=a.handleExited,l=a.firstRender;return{children:l?bI(o,s):xI(o,i,s),firstRender:!1}},r.handleExited=function(o,a){var i=Ml(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(s){var l=Is({},s.children);return delete l[o.key],{children:l}}))},r.render=function(){var o=this.props,a=o.component,i=o.childFactory,s=mI(o,["component","childFactory"]),l=this.state.contextValue,c=vI(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,a===null?_.createElement(Ou.Provider,{value:l},c):_.createElement(Ou.Provider,{value:l},_.createElement(a,s,c))},t}(_.Component);Al.propTypes={};Al.defaultProps=SI;const wI=[];function CI(e){S.useEffect(e,wI)}class _l{constructor(){T(this,"currentId",null);T(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});T(this,"disposeEffect",()=>this.clear)}static create(){return new _l}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function kI(){const e=kh(_l.create).current;return CI(e.disposeEffect),e}function PI(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,p]=S.useState(!1),h=at(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=at(r.child,u&&r.childLeaving,n&&r.childPulsate);return!s&&!u&&p(!0),S.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),d.jsx("span",{className:h,style:f,children:d.jsx("span",{className:g})})}const _t=cn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Es=550,II=80,jI=fe.keyframes`
167
167
  0% {
168
168
  transform: scale(0);
169
169
  opacity: 0.1;
@@ -236,7 +236,7 @@ export default theme;`}function Cs(e={},...t){const{breakpoints:r,mixins:n={},sp
236
236
  animation-iteration-count: infinite;
237
237
  animation-delay: 200ms;
238
238
  }
239
- `,MI=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...s}=n,[l,c]=S.useState([]),u=S.useRef(0),p=S.useRef(null);S.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=S.useRef(!1),f=kI(),g=S.useRef(null),y=S.useRef(null),v=S.useCallback(k=>{const{pulsate:j,rippleX:P,rippleY:B,rippleSize:F,cb:L}=k;c(m=>[...m,d.jsx(NI,{classes:{ripple:at(a.ripple,_t.ripple),rippleVisible:at(a.rippleVisible,_t.rippleVisible),ripplePulsate:at(a.ripplePulsate,_t.ripplePulsate),child:at(a.child,_t.child),childLeaving:at(a.childLeaving,_t.childLeaving),childPulsate:at(a.childPulsate,_t.childPulsate)},timeout:Es,pulsate:j,rippleX:P,rippleY:B,rippleSize:F},u.current)]),u.current+=1,p.current=L},[a]),b=S.useCallback((k={},j={},P=()=>{})=>{const{pulsate:B=!1,center:F=o||j.pulsate,fakeElement:L=!1}=j;if(k?.type==="mousedown"&&h.current){h.current=!1;return}k?.type==="touchstart"&&(h.current=!0);const m=L?null:y.current,R=m?m.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,$,H;if(F||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)D=Math.round(R.width/2),$=Math.round(R.height/2);else{const{clientX:X,clientY:V}=k.touches&&k.touches.length>0?k.touches[0]:k;D=Math.round(X-R.left),$=Math.round(V-R.top)}if(F)H=Math.sqrt((2*R.width**2+R.height**2)/3),H%2===0&&(H+=1);else{const X=Math.max(Math.abs((m?m.clientWidth:0)-D),D)*2+2,V=Math.max(Math.abs((m?m.clientHeight:0)-$),$)*2+2;H=Math.sqrt(X**2+V**2)}k?.touches?g.current===null&&(g.current=()=>{v({pulsate:B,rippleX:D,rippleY:$,rippleSize:H,cb:P})},f.start(II,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:B,rippleX:D,rippleY:$,rippleSize:H,cb:P})},[o,v,f]),C=S.useCallback(()=>{b({},{pulsate:!0})},[b]),w=S.useCallback((k,j)=>{if(f.clear(),k?.type==="touchend"&&g.current){g.current(),g.current=null,f.start(0,()=>{w(k,j)});return}g.current=null,c(P=>P.length>0?P.slice(1):P),p.current=j},[f]);return S.useImperativeHandle(r,()=>({pulsate:C,start:b,stop:w}),[C,b,w]),d.jsx(TI,{className:at(_t.root,a.root,i),ref:y,...s,children:d.jsx(Al,{component:null,exit:!0,children:l})})});function AI(e){return sn("MuiButtonBase",e)}const _I=ln("MuiButtonBase",["root","disabled","focusVisible"]),OI=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=zn({root:["root",t&&"disabled",r&&"focusVisible"]},AI,o);return r&&n&&(i.root+=` ${n}`),i},LI=ut("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${_I.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ph=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:g="a",onBlur:y,onClick:v,onContextMenu:b,onDragLeave:C,onFocus:w,onFocusVisible:k,onKeyDown:j,onKeyUp:P,onMouseDown:B,onMouseLeave:F,onMouseUp:L,onTouchEnd:m,onTouchMove:R,onTouchStart:D,tabIndex:$=0,TouchRippleProps:H,touchRippleRef:X,type:V,...ce}=n,K=S.useRef(null),se=pI(),Z=ks(se.ref,X),[J,W]=S.useState(!1);c&&J&&W(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{W(!0),K.current.focus()}}),[]);const O=se.shouldMount&&!u&&!c;S.useEffect(()=>{J&&h&&!u&&se.pulsate()},[u,h,J,se]);const q=cr(se,"start",B,p),oe=cr(se,"stop",b,p),Pe=cr(se,"stop",C,p),it=cr(se,"stop",L,p),ht=cr(se,"stop",ne=>{J&&ne.preventDefault(),F&&F(ne)},p),Me=cr(se,"start",D,p),Ae=cr(se,"stop",m,p),jt=cr(se,"stop",R,p),xr=cr(se,"stop",ne=>{Au(ne.target)||W(!1),y&&y(ne)},!1),Wt=Sa(ne=>{K.current||(K.current=ne.currentTarget),Au(ne.target)&&(W(!0),k&&k(ne)),w&&w(ne)}),dt=()=>{const ne=K.current;return l&&l!=="button"&&!(ne.tagName==="A"&&ne.href)},Lr=Sa(ne=>{h&&!ne.repeat&&J&&ne.key===" "&&se.stop(ne,()=>{se.start(ne)}),ne.target===ne.currentTarget&&dt()&&ne.key===" "&&ne.preventDefault(),j&&j(ne),ne.target===ne.currentTarget&&dt()&&ne.key==="Enter"&&!c&&(ne.preventDefault(),v&&v(ne))}),Qt=Sa(ne=>{h&&ne.key===" "&&J&&!ne.defaultPrevented&&se.stop(ne,()=>{se.pulsate(ne)}),P&&P(ne),v&&ne.target===ne.currentTarget&&dt()&&ne.key===" "&&!ne.defaultPrevented&&v(ne)});let ot=l;ot==="button"&&(ce.href||ce.to)&&(ot=g);const Ht={};ot==="button"?(Ht.type=V===void 0?"button":V,Ht.disabled=c):(!ce.href&&!ce.to&&(Ht.role="button"),c&&(Ht["aria-disabled"]=c));const vr=ks(r,K),Sr={...n,centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:h,tabIndex:$,focusVisible:J},ae=OI(Sr);return d.jsxs(LI,{as:ot,className:at(ae.root,s),ownerState:Sr,onBlur:xr,onClick:v,onContextMenu:oe,onFocus:Wt,onKeyDown:Lr,onKeyUp:Qt,onMouseDown:q,onMouseLeave:ht,onMouseUp:it,onDragLeave:Pe,onTouchEnd:Ae,onTouchMove:jt,onTouchStart:Me,ref:vr,tabIndex:c?-1:$,type:V,...Ht,...ce,children:[i,O?d.jsx(MI,{ref:Z,center:a,...H}):null]})});function cr(e,t,r,n=!1){return Sa(o=>(r&&r(o),n||e[t](o),!0))}const $I=ut(Ph)(tn(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Ss(e.palette.grey[200],.12)}:{backgroundColor:Ss(e.palette.grey[600],.12)}}}))),DI=ut(dI)({width:24,height:16});function BI(e){const{slots:t={},slotProps:r={},...n}=e,o=e;return d.jsx("li",{children:d.jsx($I,{focusRipple:!0,...n,ownerState:o,children:d.jsx(DI,{as:t.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function qI(e){return sn("MuiBreadcrumbs",e)}const FI=ln("MuiBreadcrumbs",["root","ol","li","separator"]),zI=e=>{const{classes:t}=e;return zn({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},qI,t)},UI=ut(sI,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${FI.li}`]:t.li},t.root]})({}),WI=ut("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),HI=ut("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function VI(e,t,r,n){return e.reduce((o,a,i)=>(i<e.length-1?o=o.concat(a,d.jsx(HI,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${i}`)):o.push(a),o),[])}const GI=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:i="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:p=1,maxItems:h=8,separator:f="/",...g}=n,[y,v]=S.useState(!1),b={...n,component:i,expanded:y,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:p,maxItems:h,separator:f},C=zI(b),w=XP({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:b}),k=S.useRef(null),j=B=>{const F=()=>{v(!0);const L=k.current.querySelector("a[href],button,[tabindex]");L&&L.focus()};return p+u>=B.length?B:[...B.slice(0,p),d.jsx(BI,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:F},"ellipsis"),...B.slice(B.length-u,B.length)]},P=S.Children.toArray(o).filter(B=>S.isValidElement(B)).map((B,F)=>d.jsx("li",{className:C.li,children:B},`child-${F}`));return d.jsx(UI,{ref:r,component:i,color:"textSecondary",className:at(C.root,a),ownerState:b,...g,children:d.jsx(WI,{className:C.ol,ref:k,ownerState:b,children:VI(y||h&&P.length<=h?P:j(P),C.separator,f,b)})})});function Ih(){const e=On(),t=e["*"],r=Fn();return d.jsx(x.Box,{sx:{display:"flex",alignItems:"center"},children:d.jsxs(GI,{"aria-label":"breadcrumb",separator:d.jsx(yo.ChevronRight,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&d.jsx(x.Chip,{onClick:n=>r(`/${e.projectName}/`,n),label:e.projectName,size:"small",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"24px",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&d.jsx(x.Chip,{onClick:n=>r(`/${e.projectName}/${e.packageName}/`,n),label:e.packageName,size:"small",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"24px",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&d.jsx(x.Chip,{onClick:n=>r(`/${e.projectName}/${e.packageName}/${t}`,n),label:t,size:"small",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"24px",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function KI(){const{projectName:e,packageName:t}=On();return d.jsx(x.AppBar,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:d.jsxs(x.Toolbar,{sx:{justifyContent:"space-between"},children:[d.jsxs(x.Stack,{direction:"row",spacing:2,alignItems:"center",children:[d.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(x.Box,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),d.jsx(x.Typography,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em"},children:"Malloy Publisher"})]}),d.jsx(Ih,{})]}),d.jsx(x.Stack,{direction:"row",spacing:2,alignItems:"center",children:!e||!t?d.jsxs(d.Fragment,{children:[d.jsx(x.Button,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),d.jsx(x.Button,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),d.jsx(x.Button,{href:"/api-doc.html",children:"Publisher API"})]}):d.jsx(d.Fragment,{children:d.jsx(E1,{projectName:e,packageName:t})})})]})})}function jh({showHeader:e=!0}){return d.jsxs(x.Box,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[e&&d.jsx(KI,{}),d.jsx(wh,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:d.jsx(x.Box,{sx:{flex:1},children:d.jsx(yf,{})})})]})}function Eh(){const e=On(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?d.jsx(qa,{projectName:e.projectName,packageName:e.packageName,children:d.jsx(gS,{modelPath:t,hideEmbeddingIcons:!0})}):t?.endsWith(".malloynb")?d.jsx(qa,{projectName:e.projectName,packageName:e.packageName,children:d.jsx(Ip,{notebookPath:t,hideEmbeddingIcons:!0,expandResults:!1})}):d.jsx("div",{children:d.jsxs("h2",{children:["Unrecognized file type: ",t]})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing package name"})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing project name"})})}function Rh(){const{projectName:e,packageName:t}=On(),r=Fn();return e?t?d.jsx(qa,{projectName:e,packageName:t,children:d.jsx(s1,{navigate:r})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing package name"})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing project name"})})}function Th(){const e=Fn(),{projectName:t}=On();return t?d.jsx(k1,{projectName:t,children:d.jsx(P1,{navigate:e})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing project name"})})}function Nh(){const e=id();return console.error(e),d.jsx(wh,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:d.jsxs(x.Stack,{sx:{m:"auto",flexDirection:"column"},children:[d.jsx(x.Box,{sx:{height:"300px"}}),d.jsx("img",{src:"/error.png"}),d.jsx(x.Typography,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function Mh(){const{projectName:e,packageName:t,notebookPath:r}=On();return e?t?d.jsx(qa,{projectName:e,packageName:t,children:d.jsx(oh,{notebookStorage:new jp,userContext:{project:e,package:t},children:d.jsx(y1,{notebookPath:r,hideEmbeddingIcons:!0})})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing package name"})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing project name"})})}const Ne={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},Ah=Tl({palette:{mode:"light",primary:Ne.primary,secondary:Ne.secondary,grey:Ne.grey,success:Ne.success,warning:Ne.warning,error:Ne.error,info:Ne.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Ne.grey[900],secondary:Ne.grey[600]},divider:Ne.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${Ne.grey[300]} ${Ne.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Ne.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Ne.grey[300],borderRadius:"4px","&:hover":{background:Ne.grey[400]}},"&::-webkit-scrollbar-corner":{background:Ne.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Ne.grey[300]} ${Ne.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Ne.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Ne.grey[300],borderRadius:"4px","&:hover":{background:Ne.grey[400]}},"&::-webkit-scrollbar-corner":{background:Ne.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Ne.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Ne.grey[200]}},defaultProps:{sx:{my:1}}}}}),_h=(e="/",t=!0)=>zf([{path:e,element:d.jsxs(VP,{theme:Ah,children:[d.jsx(x.CssBaseline,{}),d.jsx(jh,{showHeader:t})]}),errorElement:d.jsx(Nh,{}),children:[{path:"",element:d.jsx(Sh,{})},{path:":projectName",element:d.jsx(Th,{})},{path:":projectName/:packageName",element:d.jsx(Rh,{})},{path:":projectName/:packageName/*",element:d.jsx(Eh,{})},{path:":projectName/:packageName/scratchNotebook/:notebookPath",element:d.jsx(Mh,{})}]}]),QI=({server:e,accessToken:t,basePath:r="/",showHeader:n=!0})=>{const o=_h(r,n);return d.jsx(l1,{server:e,accessToken:t,children:d.jsx(eg,{router:o})})};let Lu=0;function YI(e){const[t,r]=S.useState(e),n=e||t;return S.useEffect(()=>{t==null&&(Lu+=1,r(`mui-${Lu}`))},[t]),n}const JI={...S},$u=JI.useId;function XI(e){if($u!==void 0){const t=$u();return e??t}return YI(e)}function ZI(e){return sn("MuiCircularProgress",e)}ln("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const kr=44,Rs=fe.keyframes`
239
+ `,MI=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...s}=n,[l,c]=S.useState([]),u=S.useRef(0),p=S.useRef(null);S.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=S.useRef(!1),f=kI(),g=S.useRef(null),y=S.useRef(null),v=S.useCallback(k=>{const{pulsate:j,rippleX:P,rippleY:B,rippleSize:F,cb:L}=k;c(m=>[...m,d.jsx(NI,{classes:{ripple:at(a.ripple,_t.ripple),rippleVisible:at(a.rippleVisible,_t.rippleVisible),ripplePulsate:at(a.ripplePulsate,_t.ripplePulsate),child:at(a.child,_t.child),childLeaving:at(a.childLeaving,_t.childLeaving),childPulsate:at(a.childPulsate,_t.childPulsate)},timeout:Es,pulsate:j,rippleX:P,rippleY:B,rippleSize:F},u.current)]),u.current+=1,p.current=L},[a]),b=S.useCallback((k={},j={},P=()=>{})=>{const{pulsate:B=!1,center:F=o||j.pulsate,fakeElement:L=!1}=j;if(k?.type==="mousedown"&&h.current){h.current=!1;return}k?.type==="touchstart"&&(h.current=!0);const m=L?null:y.current,R=m?m.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,$,H;if(F||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)D=Math.round(R.width/2),$=Math.round(R.height/2);else{const{clientX:X,clientY:V}=k.touches&&k.touches.length>0?k.touches[0]:k;D=Math.round(X-R.left),$=Math.round(V-R.top)}if(F)H=Math.sqrt((2*R.width**2+R.height**2)/3),H%2===0&&(H+=1);else{const X=Math.max(Math.abs((m?m.clientWidth:0)-D),D)*2+2,V=Math.max(Math.abs((m?m.clientHeight:0)-$),$)*2+2;H=Math.sqrt(X**2+V**2)}k?.touches?g.current===null&&(g.current=()=>{v({pulsate:B,rippleX:D,rippleY:$,rippleSize:H,cb:P})},f.start(II,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:B,rippleX:D,rippleY:$,rippleSize:H,cb:P})},[o,v,f]),C=S.useCallback(()=>{b({},{pulsate:!0})},[b]),w=S.useCallback((k,j)=>{if(f.clear(),k?.type==="touchend"&&g.current){g.current(),g.current=null,f.start(0,()=>{w(k,j)});return}g.current=null,c(P=>P.length>0?P.slice(1):P),p.current=j},[f]);return S.useImperativeHandle(r,()=>({pulsate:C,start:b,stop:w}),[C,b,w]),d.jsx(TI,{className:at(_t.root,a.root,i),ref:y,...s,children:d.jsx(Al,{component:null,exit:!0,children:l})})});function AI(e){return ln("MuiButtonBase",e)}const _I=cn("MuiButtonBase",["root","disabled","focusVisible"]),OI=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=zn({root:["root",t&&"disabled",r&&"focusVisible"]},AI,o);return r&&n&&(i.root+=` ${n}`),i},LI=ut("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${_I.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ph=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:g="a",onBlur:y,onClick:v,onContextMenu:b,onDragLeave:C,onFocus:w,onFocusVisible:k,onKeyDown:j,onKeyUp:P,onMouseDown:B,onMouseLeave:F,onMouseUp:L,onTouchEnd:m,onTouchMove:R,onTouchStart:D,tabIndex:$=0,TouchRippleProps:H,touchRippleRef:X,type:V,...ce}=n,K=S.useRef(null),se=pI(),Z=ks(se.ref,X),[J,W]=S.useState(!1);c&&J&&W(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{W(!0),K.current.focus()}}),[]);const O=se.shouldMount&&!u&&!c;S.useEffect(()=>{J&&h&&!u&&se.pulsate()},[u,h,J,se]);const q=cr(se,"start",B,p),oe=cr(se,"stop",b,p),Pe=cr(se,"stop",C,p),it=cr(se,"stop",L,p),ht=cr(se,"stop",ne=>{J&&ne.preventDefault(),F&&F(ne)},p),Me=cr(se,"start",D,p),Ae=cr(se,"stop",m,p),jt=cr(se,"stop",R,p),xr=cr(se,"stop",ne=>{Au(ne.target)||W(!1),y&&y(ne)},!1),Wt=Sa(ne=>{K.current||(K.current=ne.currentTarget),Au(ne.target)&&(W(!0),k&&k(ne)),w&&w(ne)}),dt=()=>{const ne=K.current;return l&&l!=="button"&&!(ne.tagName==="A"&&ne.href)},Lr=Sa(ne=>{h&&!ne.repeat&&J&&ne.key===" "&&se.stop(ne,()=>{se.start(ne)}),ne.target===ne.currentTarget&&dt()&&ne.key===" "&&ne.preventDefault(),j&&j(ne),ne.target===ne.currentTarget&&dt()&&ne.key==="Enter"&&!c&&(ne.preventDefault(),v&&v(ne))}),Qt=Sa(ne=>{h&&ne.key===" "&&J&&!ne.defaultPrevented&&se.stop(ne,()=>{se.pulsate(ne)}),P&&P(ne),v&&ne.target===ne.currentTarget&&dt()&&ne.key===" "&&!ne.defaultPrevented&&v(ne)});let ot=l;ot==="button"&&(ce.href||ce.to)&&(ot=g);const Ht={};ot==="button"?(Ht.type=V===void 0?"button":V,Ht.disabled=c):(!ce.href&&!ce.to&&(Ht.role="button"),c&&(Ht["aria-disabled"]=c));const vr=ks(r,K),Sr={...n,centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:h,tabIndex:$,focusVisible:J},ae=OI(Sr);return d.jsxs(LI,{as:ot,className:at(ae.root,s),ownerState:Sr,onBlur:xr,onClick:v,onContextMenu:oe,onFocus:Wt,onKeyDown:Lr,onKeyUp:Qt,onMouseDown:q,onMouseLeave:ht,onMouseUp:it,onDragLeave:Pe,onTouchEnd:Ae,onTouchMove:jt,onTouchStart:Me,ref:vr,tabIndex:c?-1:$,type:V,...Ht,...ce,children:[i,O?d.jsx(MI,{ref:Z,center:a,...H}):null]})});function cr(e,t,r,n=!1){return Sa(o=>(r&&r(o),n||e[t](o),!0))}const $I=ut(Ph)(tn(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Ss(e.palette.grey[200],.12)}:{backgroundColor:Ss(e.palette.grey[600],.12)}}}))),DI=ut(dI)({width:24,height:16});function BI(e){const{slots:t={},slotProps:r={},...n}=e,o=e;return d.jsx("li",{children:d.jsx($I,{focusRipple:!0,...n,ownerState:o,children:d.jsx(DI,{as:t.CollapsedIcon,ownerState:o,...r.collapsedIcon})})})}function qI(e){return ln("MuiBreadcrumbs",e)}const FI=cn("MuiBreadcrumbs",["root","ol","li","separator"]),zI=e=>{const{classes:t}=e;return zn({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},qI,t)},UI=ut(sI,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${FI.li}`]:t.li},t.root]})({}),WI=ut("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),HI=ut("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function VI(e,t,r,n){return e.reduce((o,a,i)=>(i<e.length-1?o=o.concat(a,d.jsx(HI,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${i}`)):o.push(a),o),[])}const GI=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:i="nav",slots:s={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:p=1,maxItems:h=8,separator:f="/",...g}=n,[y,v]=S.useState(!1),b={...n,component:i,expanded:y,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:p,maxItems:h,separator:f},C=zI(b),w=XP({elementType:s.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:b}),k=S.useRef(null),j=B=>{const F=()=>{v(!0);const L=k.current.querySelector("a[href],button,[tabindex]");L&&L.focus()};return p+u>=B.length?B:[...B.slice(0,p),d.jsx(BI,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:F},"ellipsis"),...B.slice(B.length-u,B.length)]},P=S.Children.toArray(o).filter(B=>S.isValidElement(B)).map((B,F)=>d.jsx("li",{className:C.li,children:B},`child-${F}`));return d.jsx(UI,{ref:r,component:i,color:"textSecondary",className:at(C.root,a),ownerState:b,...g,children:d.jsx(WI,{className:C.ol,ref:k,ownerState:b,children:VI(y||h&&P.length<=h?P:j(P),C.separator,f,b)})})});function Ih(){const e=on(),t=e["*"],r=Fn();return d.jsx(x.Box,{sx:{display:"flex",alignItems:"center"},children:d.jsxs(GI,{"aria-label":"breadcrumb",separator:d.jsx(yo.ChevronRight,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&d.jsx(x.Chip,{onClick:n=>r(`/${e.projectName}/`,n),label:e.projectName,size:"small",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"24px",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&d.jsx(x.Chip,{onClick:n=>r(`/${e.projectName}/${e.packageName}/`,n),label:e.packageName,size:"small",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"24px",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&d.jsx(x.Chip,{onClick:n=>r(`/${e.projectName}/${e.packageName}/${t}`,n),label:t,size:"small",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"24px",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function KI({logoHeader:e,endCap:t}){const{projectName:r,packageName:n}=on();return d.jsx(x.AppBar,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:d.jsxs(x.Toolbar,{sx:{justifyContent:"space-between"},children:[d.jsxs(x.Stack,{direction:"row",spacing:2,alignItems:"center",children:[e||d.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(x.Box,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),d.jsx(x.Typography,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em"},children:"Malloy Publisher"})]}),d.jsx(Ih,{})]}),d.jsxs(x.Stack,{direction:"row",spacing:2,alignItems:"center",children:[!r||!n?!e&&d.jsxs(d.Fragment,{children:[d.jsx(x.Button,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),d.jsx(x.Button,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),d.jsx(x.Button,{href:"/api-doc.html",children:"Publisher API"})]}):d.jsx(d.Fragment,{children:d.jsx(E1,{})}),t]})]})})}function jh({headerProps:e}){return d.jsxs(x.Box,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[d.jsx(KI,{...e}),d.jsx(wh,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:d.jsx(x.Box,{sx:{flex:1},children:d.jsx(yf,{})})})]})}function Eh(){const e=on(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?d.jsx(qa,{projectName:e.projectName,packageName:e.packageName,children:d.jsx(gS,{modelPath:t,hideEmbeddingIcons:!0})}):t?.endsWith(".malloynb")?d.jsx(qa,{projectName:e.projectName,packageName:e.packageName,children:d.jsx(Ip,{notebookPath:t,hideEmbeddingIcons:!0,expandResults:!1})}):d.jsx("div",{children:d.jsxs("h2",{children:["Unrecognized file type: ",t]})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing package name"})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing project name"})})}function Rh(){const{projectName:e,packageName:t}=on(),r=Fn();return e?t?d.jsx(qa,{projectName:e,packageName:t,children:d.jsx(s1,{navigate:r})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing package name"})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing project name"})})}function Th(){const e=Fn(),{projectName:t}=on();return t?d.jsx(k1,{projectName:t,children:d.jsx(P1,{navigate:e})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing project name"})})}function Nh(){const e=id();return console.error(e),d.jsx(wh,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:d.jsxs(x.Stack,{sx:{m:"auto",flexDirection:"column"},children:[d.jsx(x.Box,{sx:{height:"300px"}}),d.jsx("img",{src:"/error.png"}),d.jsx(x.Typography,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function Mh(){const{projectName:e,packageName:t,notebookPath:r}=on();return e?t?d.jsx(qa,{projectName:e,packageName:t,children:d.jsx(oh,{notebookStorage:new jp,userContext:{project:e,package:t},children:d.jsx(y1,{notebookPath:r,hideEmbeddingIcons:!0})})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing package name"})}):d.jsx("div",{children:d.jsx("h2",{children:"Missing project name"})})}const Ne={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},Ah=Tl({palette:{mode:"light",primary:Ne.primary,secondary:Ne.secondary,grey:Ne.grey,success:Ne.success,warning:Ne.warning,error:Ne.error,info:Ne.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Ne.grey[900],secondary:Ne.grey[600]},divider:Ne.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${Ne.grey[300]} ${Ne.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Ne.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Ne.grey[300],borderRadius:"4px","&:hover":{background:Ne.grey[400]}},"&::-webkit-scrollbar-corner":{background:Ne.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Ne.grey[300]} ${Ne.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Ne.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Ne.grey[300],borderRadius:"4px","&:hover":{background:Ne.grey[400]}},"&::-webkit-scrollbar-corner":{background:Ne.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Ne.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Ne.grey[200]}},defaultProps:{sx:{my:1}}}}}),_h=(e="/",t)=>zf([{path:e,element:d.jsxs(VP,{theme:Ah,children:[d.jsx(x.CssBaseline,{}),d.jsx(jh,{headerProps:t})]}),errorElement:d.jsx(Nh,{}),children:[{path:"",element:d.jsx(Sh,{})},{path:":projectName",element:d.jsx(Th,{})},{path:":projectName/:packageName",element:d.jsx(Rh,{})},{path:":projectName/:packageName/*",element:d.jsx(Eh,{})},{path:":projectName/:packageName/scratchNotebook/:notebookPath",element:d.jsx(Mh,{})}]}]),QI=({server:e,accessToken:t,basePath:r="/",headerProps:n})=>{const o=_h(r,n);return d.jsx(l1,{server:e,accessToken:t,children:d.jsx(eg,{router:o})})};let Lu=0;function YI(e){const[t,r]=S.useState(e),n=e||t;return S.useEffect(()=>{t==null&&(Lu+=1,r(`mui-${Lu}`))},[t]),n}const JI={...S},$u=JI.useId;function XI(e){if($u!==void 0){const t=$u();return e??t}return YI(e)}function ZI(e){return ln("MuiCircularProgress",e)}cn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const kr=44,Rs=fe.keyframes`
240
240
  0% {
241
241
  transform: rotate(0deg);
242
242
  }
@@ -263,4 +263,4 @@ export default theme;`}function Cs(e={},...t){const{breakpoints:r,mixins:n={},sp
263
263
  animation: ${Rs} 1.4s linear infinite;
264
264
  `:null,tj=typeof Ts!="string"?fe.css`
265
265
  animation: ${Ts} 1.4s ease-in-out infinite;
266
- `:null,rj=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${Je(n)}`],svg:["svg"],circle:["circle",`circle${Je(r)}`,o&&"circleDisableShrink"]};return zn(a,ZI,t)},nj=ut("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Je(r.color)}`]]}})(tn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ej||{animation:`${Rs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ha()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),oj=ut("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),aj=ut("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Je(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(tn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:tj||{animation:`${Ts} 1.4s ease-in-out infinite`}}]}))),ij=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:p="indeterminate",...h}=n,f={...n,color:a,disableShrink:i,size:s,thickness:c,value:u,variant:p},g=rj(f),y={},v={},b={};if(p==="determinate"){const C=2*Math.PI*((kr-c)/2);y.strokeDasharray=C.toFixed(3),b["aria-valuenow"]=Math.round(u),y.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,v.transform="rotate(-90deg)"}return d.jsx(nj,{className:at(g.root,o),style:{width:s,height:s,...v,...l},ownerState:f,ref:r,role:"progressbar",...b,...h,children:d.jsx(oj,{className:g.svg,ownerState:f,viewBox:`${kr/2} ${kr/2} ${kr} ${kr}`,children:d.jsx(aj,{className:g.circle,style:y,ownerState:f,cx:kr,cy:kr,r:(kr-c)/2,fill:"none",strokeWidth:c})})})});function sj(e){return sn("MuiIconButton",e)}const Du=ln("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),lj=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a,loading:i}=e,s={root:["root",i&&"loading",r&&"disabled",n!=="default"&&`color${Je(n)}`,o&&`edge${Je(o)}`,`size${Je(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return zn(s,sj,t)},cj=ut(Ph,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Je(r.color)}`],r.edge&&t[`edge${Je(r.edge)}`],t[`size${Je(r.size)}`]]}})(tn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vs(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),tn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ha()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ha()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vs((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Du.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Du.loading}`]:{color:"transparent"}}))),uj=ut("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),dj=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:p,loading:h=null,loadingIndicator:f,...g}=n,y=XI(p),v=f??d.jsx(ij,{"aria-labelledby":y,color:"inherit",size:16}),b={...n,edge:o,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:v,size:u},C=lj(b);return d.jsxs(cj,{id:h?y:p,className:at(C.root,i),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:r,...g,ownerState:b,children:[typeof h=="boolean"&&d.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:d.jsx(uj,{className:C.loadingIndicator,ownerState:b,children:h&&v})}),a]})}),pj=Nl(d.jsx("path",{d:"M11.93 2.3c-2.04-.5-4.02-.35-5.77.28-.72.26-.91 1.22-.31 1.71C8.08 6.12 9.5 8.89 9.5 12s-1.42 5.88-3.65 7.71c-.59.49-.42 1.45.31 1.7 1.04.38 2.17.59 3.34.59 6.05 0 10.85-5.38 9.87-11.6-.61-3.92-3.59-7.16-7.44-8.1"})),hj=Nl(d.jsx("path",{d:"m6.05 4.14-.39-.39c-.39-.39-1.02-.38-1.4 0l-.01.01c-.39.39-.39 1.02 0 1.4l.39.39c.39.39 1.01.39 1.4 0l.01-.01c.39-.38.39-1.02 0-1.4M3.01 10.5H1.99c-.55 0-.99.44-.99.99v.01c0 .55.44.99.99.99H3c.56.01 1-.43 1-.98v-.01c0-.56-.44-1-.99-1m9-9.95H12c-.56 0-1 .44-1 .99v.96c0 .55.44.99.99.99H12c.56.01 1-.43 1-.98v-.97c0-.55-.44-.99-.99-.99m7.74 3.21c-.39-.39-1.02-.39-1.41-.01l-.39.39c-.39.39-.39 1.02 0 1.4l.01.01c.39.39 1.02.39 1.4 0l.39-.39c.39-.39.39-1.01 0-1.4m-1.81 15.1.39.39c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41l-.39-.39c-.39-.39-1.02-.38-1.4 0-.4.4-.4 1.02-.01 1.41M20 11.49v.01c0 .55.44.99.99.99H22c.55 0 .99-.44.99-.99v-.01c0-.55-.44-.99-.99-.99h-1.01c-.55 0-.99.44-.99.99M12 5.5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-.01 16.95H12c.55 0 .99-.44.99-.99v-.96c0-.55-.44-.99-.99-.99h-.01c-.55 0-.99.44-.99.99v.96c0 .55.44.99.99.99m-7.74-3.21c.39.39 1.02.39 1.41 0l.39-.39c.39-.39.38-1.02 0-1.4l-.01-.01a.996.996 0 0 0-1.41 0l-.39.39c-.38.4-.38 1.02.01 1.41"}));function mj({mode:e,toggleColorMode:t,...r}){return d.jsx(dj,{onClick:t,color:"primary",size:"small","aria-label":"Theme toggle button",...r,children:e==="dark"?d.jsx(hj,{fontSize:"small"}):d.jsx(pj,{fontSize:"small"})})}exports.BreadcrumbNav=Ih;exports.HomePage=Sh;exports.MainPage=jh;exports.MalloyPublisherApp=QI;exports.ModelPage=Eh;exports.PackagePage=Rh;exports.ProjectPage=Th;exports.RouteError=Nh;exports.ScratchNotebookPage=Mh;exports.ToggleColorMode=mj;exports.createMalloyRouter=_h;exports.theme=Ah;
266
+ `:null,rj=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${Je(n)}`],svg:["svg"],circle:["circle",`circle${Je(r)}`,o&&"circleDisableShrink"]};return zn(a,ZI,t)},nj=ut("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Je(r.color)}`]]}})(tn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ej||{animation:`${Rs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ha()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),oj=ut("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),aj=ut("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Je(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(tn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:tj||{animation:`${Ts} 1.4s ease-in-out infinite`}}]}))),ij=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:p="indeterminate",...h}=n,f={...n,color:a,disableShrink:i,size:s,thickness:c,value:u,variant:p},g=rj(f),y={},v={},b={};if(p==="determinate"){const C=2*Math.PI*((kr-c)/2);y.strokeDasharray=C.toFixed(3),b["aria-valuenow"]=Math.round(u),y.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,v.transform="rotate(-90deg)"}return d.jsx(nj,{className:at(g.root,o),style:{width:s,height:s,...v,...l},ownerState:f,ref:r,role:"progressbar",...b,...h,children:d.jsx(oj,{className:g.svg,ownerState:f,viewBox:`${kr/2} ${kr/2} ${kr} ${kr}`,children:d.jsx(aj,{className:g.circle,style:y,ownerState:f,cx:kr,cy:kr,r:(kr-c)/2,fill:"none",strokeWidth:c})})})});function sj(e){return ln("MuiIconButton",e)}const Du=cn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),lj=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a,loading:i}=e,s={root:["root",i&&"loading",r&&"disabled",n!=="default"&&`color${Je(n)}`,o&&`edge${Je(o)}`,`size${Je(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return zn(s,sj,t)},cj=ut(Ph,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Je(r.color)}`],r.edge&&t[`edge${Je(r.edge)}`],t[`size${Je(r.size)}`]]}})(tn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:vs(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),tn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ha()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ha()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:vs((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Du.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Du.loading}`]:{color:"transparent"}}))),uj=ut("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),dj=S.forwardRef(function(t,r){const n=Or({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:p,loading:h=null,loadingIndicator:f,...g}=n,y=XI(p),v=f??d.jsx(ij,{"aria-labelledby":y,color:"inherit",size:16}),b={...n,edge:o,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:v,size:u},C=lj(b);return d.jsxs(cj,{id:h?y:p,className:at(C.root,i),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:r,...g,ownerState:b,children:[typeof h=="boolean"&&d.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:d.jsx(uj,{className:C.loadingIndicator,ownerState:b,children:h&&v})}),a]})}),pj=Nl(d.jsx("path",{d:"M11.93 2.3c-2.04-.5-4.02-.35-5.77.28-.72.26-.91 1.22-.31 1.71C8.08 6.12 9.5 8.89 9.5 12s-1.42 5.88-3.65 7.71c-.59.49-.42 1.45.31 1.7 1.04.38 2.17.59 3.34.59 6.05 0 10.85-5.38 9.87-11.6-.61-3.92-3.59-7.16-7.44-8.1"})),hj=Nl(d.jsx("path",{d:"m6.05 4.14-.39-.39c-.39-.39-1.02-.38-1.4 0l-.01.01c-.39.39-.39 1.02 0 1.4l.39.39c.39.39 1.01.39 1.4 0l.01-.01c.39-.38.39-1.02 0-1.4M3.01 10.5H1.99c-.55 0-.99.44-.99.99v.01c0 .55.44.99.99.99H3c.56.01 1-.43 1-.98v-.01c0-.56-.44-1-.99-1m9-9.95H12c-.56 0-1 .44-1 .99v.96c0 .55.44.99.99.99H12c.56.01 1-.43 1-.98v-.97c0-.55-.44-.99-.99-.99m7.74 3.21c-.39-.39-1.02-.39-1.41-.01l-.39.39c-.39.39-.39 1.02 0 1.4l.01.01c.39.39 1.02.39 1.4 0l.39-.39c.39-.39.39-1.01 0-1.4m-1.81 15.1.39.39c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41l-.39-.39c-.39-.39-1.02-.38-1.4 0-.4.4-.4 1.02-.01 1.41M20 11.49v.01c0 .55.44.99.99.99H22c.55 0 .99-.44.99-.99v-.01c0-.55-.44-.99-.99-.99h-1.01c-.55 0-.99.44-.99.99M12 5.5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-.01 16.95H12c.55 0 .99-.44.99-.99v-.96c0-.55-.44-.99-.99-.99h-.01c-.55 0-.99.44-.99.99v.96c0 .55.44.99.99.99m-7.74-3.21c.39.39 1.02.39 1.41 0l.39-.39c.39-.39.38-1.02 0-1.4l-.01-.01a.996.996 0 0 0-1.41 0l-.39.39c-.38.4-.38 1.02.01 1.41"}));function mj({mode:e,toggleColorMode:t,...r}){return d.jsx(dj,{onClick:t,color:"primary",size:"small","aria-label":"Theme toggle button",...r,children:e==="dark"?d.jsx(hj,{fontSize:"small"}):d.jsx(pj,{fontSize:"small"})})}exports.BreadcrumbNav=Ih;exports.HomePage=Sh;exports.MainPage=jh;exports.MalloyPublisherApp=QI;exports.ModelPage=Eh;exports.PackagePage=Rh;exports.ProjectPage=Th;exports.RouteError=Nh;exports.ScratchNotebookPage=Mh;exports.ToggleColorMode=mj;exports.createMalloyRouter=_h;exports.theme=Ah;