diffx-cli 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (611) hide show
  1. package/README.md +15 -10
  2. package/dist/cli.mjs +220 -0
  3. package/dist/client/assets/abap-CkQ0tsz-.js +1 -0
  4. package/dist/client/assets/actionscript-3-DHm0ZfF4.js +1 -0
  5. package/dist/client/assets/ada-DK_ua92Z.js +1 -0
  6. package/dist/client/assets/andromeeda-D2ccw8v4.js +1 -0
  7. package/dist/client/assets/angular-html-8H0ZWt4y.js +1 -0
  8. package/dist/client/assets/angular-ts-D9RlAoA-.js +1 -0
  9. package/dist/client/assets/apache-DXtpFu7o.js +1 -0
  10. package/dist/client/assets/apex-DlnRRWpl.js +1 -0
  11. package/dist/client/assets/apl-BfLu2kJ1.js +1 -0
  12. package/dist/client/assets/applescript-CShk62ad.js +1 -0
  13. package/dist/client/assets/ara-CWN-FDkm.js +1 -0
  14. package/dist/client/assets/asciidoc-Bg-PM9Vn.js +1 -0
  15. package/dist/client/assets/asm-DKOhR24S.js +1 -0
  16. package/dist/client/assets/astro-DNEfYp2W.js +1 -0
  17. package/dist/client/assets/aurora-x-DpaEirL8.js +1 -0
  18. package/dist/client/assets/awk-3ibKHffv.js +1 -0
  19. package/dist/client/assets/ayu-dark-ursiSH5k.js +1 -0
  20. package/dist/client/assets/ayu-light-DMjlrKmx.js +1 -0
  21. package/dist/client/assets/ayu-mirage-DZEMb75h.js +1 -0
  22. package/dist/client/assets/ballerina-xx7VNGxs.js +1 -0
  23. package/dist/client/assets/bat-DGYsZ5wR.js +1 -0
  24. package/dist/client/assets/beancount-D_ATR1UV.js +1 -0
  25. package/dist/client/assets/berry-BqYMORfH.js +1 -0
  26. package/dist/client/assets/bibtex-CQTBDajW.js +1 -0
  27. package/dist/client/assets/bicep-CfNtxPrK.js +1 -0
  28. package/dist/client/assets/bird2-C0dUPe3I.js +1 -0
  29. package/dist/client/assets/blade--Q05qXrx.js +1 -0
  30. package/dist/client/assets/bsl-Dx5tFn3i.js +1 -0
  31. package/dist/client/assets/c-DQNMOzfO.js +1 -0
  32. package/dist/client/assets/c3-BUwZ5e3k.js +1 -0
  33. package/dist/client/assets/cadence-C3OKDYrr.js +1 -0
  34. package/dist/client/assets/cairo-wCCQTdA9.js +1 -0
  35. package/dist/client/assets/catppuccin-frappe-CMnRXVZP.js +1 -0
  36. package/dist/client/assets/catppuccin-latte-CqhXSjCC.js +1 -0
  37. package/dist/client/assets/catppuccin-macchiato-B6kneE0C.js +1 -0
  38. package/dist/client/assets/catppuccin-mocha-CP8YZpvj.js +1 -0
  39. package/dist/client/assets/clarity-Crxe8gSr.js +1 -0
  40. package/dist/client/assets/clojure-BuzOUPMr.js +1 -0
  41. package/dist/client/assets/cmake-CCpZLdLI.js +1 -0
  42. package/dist/client/assets/cobol-73nJT3f_.js +1 -0
  43. package/dist/client/assets/codeowners-Bo1VYpHz.js +1 -0
  44. package/dist/client/assets/codeql-Db01hzHE.js +1 -0
  45. package/dist/client/assets/coffee-BgBv1Dph.js +1 -0
  46. package/dist/client/assets/common-lisp-CMlJIc6Y.js +1 -0
  47. package/dist/client/assets/coq-BlzBYp3f.js +1 -0
  48. package/dist/client/assets/cpp-BJ1urtQt.js +1 -0
  49. package/dist/client/assets/crystal-BKEDcRoV.js +1 -0
  50. package/dist/client/assets/csharp-kfNshAa7.js +1 -0
  51. package/dist/client/assets/css-BLq8sW30.js +1 -0
  52. package/dist/client/assets/csv-Dr8ri5Nd.js +1 -0
  53. package/dist/client/assets/cue-jXfhyOwY.js +1 -0
  54. package/dist/client/assets/cypher-CayLeiaR.js +1 -0
  55. package/dist/client/assets/d-BMZQ0mAy.js +1 -0
  56. package/dist/client/assets/dark-plus-B__q47Nr.js +1 -0
  57. package/dist/client/assets/dart-gMOEMyuz.js +1 -0
  58. package/dist/client/assets/dax-C3t5LadU.js +1 -0
  59. package/dist/client/assets/desktop-DmhXLwLR.js +1 -0
  60. package/dist/client/assets/diff-togOXQX6.js +1 -0
  61. package/dist/client/assets/docker--6N01olR.js +1 -0
  62. package/dist/client/assets/dotenv-Bq930Yx8.js +1 -0
  63. package/dist/client/assets/dracula-CBkSghcw.js +1 -0
  64. package/dist/client/assets/dracula-soft-CCSYeoxL.js +1 -0
  65. package/dist/client/assets/dream-maker-BiMf3DHl.js +1 -0
  66. package/dist/client/assets/edge-DcJinIXR.js +1 -0
  67. package/dist/client/assets/elixir--c2F7xC0.js +1 -0
  68. package/dist/client/assets/elm-DwPXg-SH.js +1 -0
  69. package/dist/client/assets/emacs-lisp-Dhht7he2.js +1 -0
  70. package/dist/client/assets/erb-s0rF6epj.js +1 -0
  71. package/dist/client/assets/erlang-CtK0kQ6z.js +1 -0
  72. package/dist/client/assets/everforest-dark-NqSz4oHS.js +1 -0
  73. package/dist/client/assets/everforest-light-a3Yzs_lT.js +1 -0
  74. package/dist/client/assets/fennel-BExc9TZf.js +1 -0
  75. package/dist/client/assets/fish-C2p-AJmZ.js +1 -0
  76. package/dist/client/assets/fluent-CeYzs8Qy.js +1 -0
  77. package/dist/client/assets/fortran-fixed-form-DBM4e0_k.js +1 -0
  78. package/dist/client/assets/fortran-free-form-BIQEK2Jw.js +1 -0
  79. package/dist/client/assets/fsharp-CmzzGQLe.js +1 -0
  80. package/dist/client/assets/gdresource-B_wbPqHd.js +1 -0
  81. package/dist/client/assets/gdscript-B5JQPh_-.js +1 -0
  82. package/dist/client/assets/gdshader-vVjJ_Qr8.js +1 -0
  83. package/dist/client/assets/genie-DGl5rqC8.js +1 -0
  84. package/dist/client/assets/gherkin-CY_VLUnD.js +1 -0
  85. package/dist/client/assets/git-commit-1z4D6NzL.js +1 -0
  86. package/dist/client/assets/git-rebase-DgOHEmtn.js +1 -0
  87. package/dist/client/assets/github-dark-ClO4AStc.js +1 -0
  88. package/dist/client/assets/github-dark-default-CM0dPco8.js +1 -0
  89. package/dist/client/assets/github-dark-dimmed-Cb6xxpXY.js +1 -0
  90. package/dist/client/assets/github-dark-high-contrast-BpYtx2-M.js +1 -0
  91. package/dist/client/assets/github-light-CeOVFgf_.js +1 -0
  92. package/dist/client/assets/github-light-default-BmnCWL6x.js +1 -0
  93. package/dist/client/assets/github-light-high-contrast-rpagNF5O.js +1 -0
  94. package/dist/client/assets/gleam-BarIG9kQ.js +1 -0
  95. package/dist/client/assets/glimmer-js-3ANaqOY2.js +1 -0
  96. package/dist/client/assets/glimmer-ts-p5bI2MgX.js +1 -0
  97. package/dist/client/assets/glsl-iE9R6rp-.js +1 -0
  98. package/dist/client/assets/gn-DhYsTPYc.js +1 -0
  99. package/dist/client/assets/gnuplot-CucLlTBc.js +1 -0
  100. package/dist/client/assets/go-toi-uWvg.js +1 -0
  101. package/dist/client/assets/graphql-BUf0hqo0.js +1 -0
  102. package/dist/client/assets/groovy-Ds4dis_k.js +1 -0
  103. package/dist/client/assets/gruvbox-dark-hard-aPiW8pQh.js +1 -0
  104. package/dist/client/assets/gruvbox-dark-medium-2HJCvzsS.js +1 -0
  105. package/dist/client/assets/gruvbox-dark-soft-Da97ODX9.js +1 -0
  106. package/dist/client/assets/gruvbox-light-hard-BXlEipFe.js +1 -0
  107. package/dist/client/assets/gruvbox-light-medium-Cun-GjGk.js +1 -0
  108. package/dist/client/assets/gruvbox-light-soft-Bd3qiiSw.js +1 -0
  109. package/dist/client/assets/hack-DA2IS1Ao.js +1 -0
  110. package/dist/client/assets/{haml-B8DHNrY2.js → haml-B70ZGVBd.js} +1 -1
  111. package/dist/client/assets/handlebars-C0H1a2t5.js +1 -0
  112. package/dist/client/assets/haskell-B_jvz5Po.js +1 -0
  113. package/dist/client/assets/haxe-BRbuo5UO.js +1 -0
  114. package/dist/client/assets/hcl-BzNUCtsK.js +1 -0
  115. package/dist/client/assets/hjson-BxVo3sS2.js +1 -0
  116. package/dist/client/assets/hlsl-C8Wes1nf.js +1 -0
  117. package/dist/client/assets/horizon-D54PjLAY.js +1 -0
  118. package/dist/client/assets/horizon-bright-D9RccdIr.js +1 -0
  119. package/dist/client/assets/houston-CMu1N_4K.js +1 -0
  120. package/dist/client/assets/{html-GMplVEZG.js → html-BefisqTm.js} +1 -1
  121. package/dist/client/assets/html-derivative-BM85PXdC.js +1 -0
  122. package/dist/client/assets/http-BD7GsRIT.js +1 -0
  123. package/dist/client/assets/hurl-BL-t64AO.js +1 -0
  124. package/dist/client/assets/hxml-DC4KwKt2.js +1 -0
  125. package/dist/client/assets/hy-dMrJKKU_.js +1 -0
  126. package/dist/client/assets/imba-DG_oO8tg.js +1 -0
  127. package/dist/client/assets/index-CnejqTtR.css +1 -0
  128. package/dist/client/assets/index-c5V0vv16.js +1876 -0
  129. package/dist/client/assets/ini-geHw79Aj.js +1 -0
  130. package/dist/client/assets/java-niLIheTf.js +1 -0
  131. package/dist/client/assets/javascript-BxNCPGOi.js +1 -0
  132. package/dist/client/assets/jinja-BEoywoFD.js +1 -0
  133. package/dist/client/assets/jison-DmDWC27X.js +1 -0
  134. package/dist/client/assets/json-lwILW505.js +1 -0
  135. package/dist/client/assets/json5-CDUsNqz6.js +1 -0
  136. package/dist/client/assets/jsonc-D48xcwyD.js +1 -0
  137. package/dist/client/assets/jsonl-cpIYDXEe.js +1 -0
  138. package/dist/client/assets/jsonnet-Da1lhszN.js +1 -0
  139. package/dist/client/assets/jssm-B8BLrEGL.js +1 -0
  140. package/dist/client/assets/jsx-CUSzRqa1.js +1 -0
  141. package/dist/client/assets/julia-CyNhvlhW.js +1 -0
  142. package/dist/client/assets/just-BrjCtPoR.js +1 -0
  143. package/dist/client/assets/kanagawa-dragon-2Sk8Rx83.js +1 -0
  144. package/dist/client/assets/kanagawa-lotus-CQVSWfJp.js +1 -0
  145. package/dist/client/assets/kanagawa-wave-BKWNioLX.js +1 -0
  146. package/dist/client/assets/kdl-B-2tSRmp.js +1 -0
  147. package/dist/client/assets/kotlin-DepsEzh3.js +1 -0
  148. package/dist/client/assets/kusto-BcCtXIb8.js +1 -0
  149. package/dist/client/assets/laserwave-BUqkO46F.js +1 -0
  150. package/dist/client/assets/latex-C0uFokcM.js +1 -0
  151. package/dist/client/assets/lean-CNO9ffpX.js +1 -0
  152. package/dist/client/assets/less-Dj0T9pWC.js +1 -0
  153. package/dist/client/assets/light-plus-C9Hnuc1T.js +1 -0
  154. package/dist/client/assets/liquid-DAjiPGq0.js +1 -0
  155. package/dist/client/assets/llvm-DbV9b66l.js +1 -0
  156. package/dist/client/assets/log-BMblmPyH.js +1 -0
  157. package/dist/client/assets/logo-B78qMxws.js +1 -0
  158. package/dist/client/assets/lua-CLbpHVgE.js +1 -0
  159. package/dist/client/assets/luau-BUd8xsdE.js +1 -0
  160. package/dist/client/assets/make-Ev-6cJrd.js +1 -0
  161. package/dist/client/assets/markdown-CS4LI6sN.js +1 -0
  162. package/dist/client/assets/marko-BFcKeCG5.js +1 -0
  163. package/dist/client/assets/material-theme-5rA1zn0D.js +1 -0
  164. package/dist/client/assets/material-theme-darker-DGOEiL65.js +1 -0
  165. package/dist/client/assets/material-theme-lighter-CULfFRX0.js +1 -0
  166. package/dist/client/assets/material-theme-ocean-LQZ9CleP.js +1 -0
  167. package/dist/client/assets/material-theme-palenight-Di_f5oks.js +1 -0
  168. package/dist/client/assets/matlab-C0qEtAx9.js +1 -0
  169. package/dist/client/assets/mdc-EJ3ndmVP.js +1 -0
  170. package/dist/client/assets/mdx-CzvnbLXb.js +1 -0
  171. package/dist/client/assets/mermaid-BPquZaKt.js +1 -0
  172. package/dist/client/assets/min-dark-rkuIbtJV.js +1 -0
  173. package/dist/client/assets/min-light-Dj_HOGsr.js +1 -0
  174. package/dist/client/assets/mipsasm-k5DQoS6j.js +1 -0
  175. package/dist/client/assets/mojo-sTTDuNnR.js +1 -0
  176. package/dist/client/assets/monokai-D5p-u2ij.js +1 -0
  177. package/dist/client/assets/moonbit-j5ChFtBC.js +1 -0
  178. package/dist/client/assets/move-Dj0Gmn6R.js +1 -0
  179. package/dist/client/assets/narrat-DJgMz2oW.js +1 -0
  180. package/dist/client/assets/nextflow-CApkvBGW.js +1 -0
  181. package/dist/client/assets/nextflow-groovy-eDLuZ_oi.js +1 -0
  182. package/dist/client/assets/nginx-DAFCLGHX.js +1 -0
  183. package/dist/client/assets/night-owl-CEdtPl3A.js +1 -0
  184. package/dist/client/assets/night-owl-light-GdSldewm.js +1 -0
  185. package/dist/client/assets/nim-BLZH45DZ.js +1 -0
  186. package/dist/client/assets/nix-CxIPS3pb.js +1 -0
  187. package/dist/client/assets/nord-3WFAz5H9.js +1 -0
  188. package/dist/client/assets/nushell-GDfBmoBU.js +1 -0
  189. package/dist/client/assets/objective-c-MFQ_MGUa.js +1 -0
  190. package/dist/client/assets/objective-cpp-Y83LcBE7.js +1 -0
  191. package/dist/client/assets/ocaml-FxYfaJxu.js +1 -0
  192. package/dist/client/assets/odin-CprihY3z.js +1 -0
  193. package/dist/client/assets/one-dark-pro-BB6mpmmA.js +1 -0
  194. package/dist/client/assets/one-light-BYLoxNtg.js +1 -0
  195. package/dist/client/assets/openscad-Bc1FbpOi.js +1 -0
  196. package/dist/client/assets/pascal-Bb4d8cUL.js +1 -0
  197. package/dist/client/assets/perl-15WbkOxC.js +1 -0
  198. package/dist/client/assets/php-BIkwPvzD.js +1 -0
  199. package/dist/client/assets/pierre-dark-DbQedTMH.js +1 -0
  200. package/dist/client/assets/pierre-light-DxtrzyCi.js +1 -0
  201. package/dist/client/assets/pkl-tM25Sq0w.js +1 -0
  202. package/dist/client/assets/plastic-D3k2Xp_5.js +1 -0
  203. package/dist/client/assets/plsql-CLEfFhSj.js +1 -0
  204. package/dist/client/assets/po-CaAzdrrh.js +1 -0
  205. package/dist/client/assets/poimandres-bPTvT4Da.js +1 -0
  206. package/dist/client/assets/polar-TG7aTGdK.js +1 -0
  207. package/dist/client/assets/postcss-8kqfa9f0.js +1 -0
  208. package/dist/client/assets/powerquery-CtSu1Nfd.js +1 -0
  209. package/dist/client/assets/powershell-87lLBHMy.js +1 -0
  210. package/dist/client/assets/prisma-Dnf694DZ.js +1 -0
  211. package/dist/client/assets/prolog-C0XbHTWa.js +1 -0
  212. package/dist/client/assets/proto-BZP-HLIb.js +1 -0
  213. package/dist/client/assets/pug-g_k5pWQ1.js +1 -0
  214. package/dist/client/assets/puppet-CJYWgYC5.js +1 -0
  215. package/dist/client/assets/purescript-B95Q6BAd.js +1 -0
  216. package/dist/client/assets/python-CqTCsi7P.js +1 -0
  217. package/dist/client/assets/qml-CXMaWkf-.js +1 -0
  218. package/dist/client/assets/qmldir-DlIL4hls.js +1 -0
  219. package/dist/client/assets/qss-BW72E0q_.js +1 -0
  220. package/dist/client/assets/r-Dubo80ey.js +1 -0
  221. package/dist/client/assets/racket-CCAimEsC.js +1 -0
  222. package/dist/client/assets/raku-mSuqElkM.js +1 -0
  223. package/dist/client/assets/razor-BLbwDC6I.js +1 -0
  224. package/dist/client/assets/red-C-DA4yBI.js +1 -0
  225. package/dist/client/assets/reg-CGwMBJ2c.js +1 -0
  226. package/dist/client/assets/regexp-C9KwodhH.js +1 -0
  227. package/dist/client/assets/rel-JwrbYgX4.js +1 -0
  228. package/dist/client/assets/riscv-CoYyE75b.js +1 -0
  229. package/dist/client/assets/ron-C5wrhnmJ.js +1 -0
  230. package/dist/client/assets/rose-pine-DlrMPYYd.js +1 -0
  231. package/dist/client/assets/rose-pine-dawn-DBHFtZD2.js +1 -0
  232. package/dist/client/assets/rose-pine-moon-BBfrpe5q.js +1 -0
  233. package/dist/client/assets/rosmsg-DlimTR9t.js +1 -0
  234. package/dist/client/assets/rst-DJEs614A.js +1 -0
  235. package/dist/client/assets/ruby-BLbSnkFN.js +1 -0
  236. package/dist/client/assets/rust-Cxnkxx3h.js +1 -0
  237. package/dist/client/assets/sas-CJ-cqx8g.js +1 -0
  238. package/dist/client/assets/sass-DEyqUIpU.js +1 -0
  239. package/dist/client/assets/scala-i3RN3yAN.js +1 -0
  240. package/dist/client/assets/scheme-BcKdjYkO.js +1 -0
  241. package/dist/client/assets/scss-ToJQyRVw.js +1 -0
  242. package/dist/client/assets/sdbl-Be_XWc3n.js +1 -0
  243. package/dist/client/assets/shaderlab-DXAhMdPo.js +1 -0
  244. package/dist/client/assets/shellscript-C6Ax8_Vb.js +1 -0
  245. package/dist/client/assets/shellsession-Dz6l6d4Z.js +1 -0
  246. package/dist/client/assets/slack-dark-3PDtm74m.js +1 -0
  247. package/dist/client/assets/slack-ochin-CwiuFRJD.js +1 -0
  248. package/dist/client/assets/smalltalk-BdBlL6ks.js +1 -0
  249. package/dist/client/assets/snazzy-light-Dyqc8Is2.js +1 -0
  250. package/dist/client/assets/solarized-dark-DZiTscIX.js +1 -0
  251. package/dist/client/assets/solarized-light-DBcfxrfG.js +1 -0
  252. package/dist/client/assets/solidity-DH-yUSWc.js +1 -0
  253. package/dist/client/assets/soy-BmBDzl-e.js +1 -0
  254. package/dist/client/assets/sparql-BdcL8cbr.js +1 -0
  255. package/dist/client/assets/splunk-CIjc4kxs.js +1 -0
  256. package/dist/client/assets/sql-CrofSO8J.js +1 -0
  257. package/dist/client/assets/ssh-config-BKVd4drG.js +1 -0
  258. package/dist/client/assets/stata-DrXfKt7R.js +1 -0
  259. package/dist/client/assets/stylus-tqAsmugv.js +1 -0
  260. package/dist/client/assets/surrealql-BgUQMBOB.js +1 -0
  261. package/dist/client/assets/svelte-gRPEnlik.js +1 -0
  262. package/dist/client/assets/swift-CdDBQ3_Z.js +1 -0
  263. package/dist/client/assets/synthwave-84-CbbRs73K.js +1 -0
  264. package/dist/client/assets/system-verilog-CBqEY-9v.js +1 -0
  265. package/dist/client/assets/systemd-khRP5zwK.js +1 -0
  266. package/dist/client/assets/talonscript-D_lneH-6.js +1 -0
  267. package/dist/client/assets/tasl-CLymawGe.js +1 -0
  268. package/dist/client/assets/tcl-BRY1S87U.js +1 -0
  269. package/dist/client/assets/templ-CUXu1KNx.js +1 -0
  270. package/dist/client/assets/terraform-BqohMo2f.js +1 -0
  271. package/dist/client/assets/tex-RsgjzYS9.js +1 -0
  272. package/dist/client/assets/tokyo-night-BWUONxad.js +1 -0
  273. package/dist/client/assets/toml-C4c85Lwg.js +1 -0
  274. package/dist/client/assets/ts-tags-BxahcAYZ.js +1 -0
  275. package/dist/client/assets/tsv-DsZq9HBQ.js +1 -0
  276. package/dist/client/assets/tsx-CpWY6-A9.js +1 -0
  277. package/dist/client/assets/turtle-Dpr8zLlw.js +1 -0
  278. package/dist/client/assets/twig-H4Xmhbvn.js +1 -0
  279. package/dist/client/assets/typescript-DwhFINNR.js +1 -0
  280. package/dist/client/assets/typespec-DcqgATB-.js +1 -0
  281. package/dist/client/assets/typst-CeVxmuPg.js +1 -0
  282. package/dist/client/assets/v-C2Qsh2-1.js +1 -0
  283. package/dist/client/assets/vala-CvZ3yL7c.js +1 -0
  284. package/dist/client/assets/vb-B_p4qDw4.js +1 -0
  285. package/dist/client/assets/verilog-D8MGjxD7.js +1 -0
  286. package/dist/client/assets/vesper-DossXiE1.js +1 -0
  287. package/dist/client/assets/vhdl-MLyYh_Gz.js +1 -0
  288. package/dist/client/assets/viml-BuYIArcz.js +1 -0
  289. package/dist/client/assets/vitesse-black-C3kc1227.js +1 -0
  290. package/dist/client/assets/vitesse-dark-kWOu5V36.js +1 -0
  291. package/dist/client/assets/vitesse-light-DMtiL8bK.js +1 -0
  292. package/dist/client/assets/vue-C5uXmMmy.js +1 -0
  293. package/dist/client/assets/vue-html-BQ--4Zsm.js +1 -0
  294. package/dist/client/assets/vue-vine-Cm8UjLP5.js +1 -0
  295. package/dist/client/assets/vyper-CNqG09-_.js +1 -0
  296. package/dist/client/assets/wasm-BsQDV7Y0.js +1 -0
  297. package/dist/client/assets/{wasm-CG6Dc4jp.js → wasm-DFVlQlgd.js} +1 -1
  298. package/dist/client/assets/wenyan-BmOQge13.js +1 -0
  299. package/dist/client/assets/wgsl-CgWrmvIg.js +1 -0
  300. package/dist/client/assets/wikitext-DkwckXCk.js +1 -0
  301. package/dist/client/assets/wit-CtyVFGe7.js +1 -0
  302. package/dist/client/assets/wolfram-CXE4FrKz.js +1 -0
  303. package/dist/client/assets/xml-BIul2KIm.js +1 -0
  304. package/dist/client/assets/xsl-CC6hpr3h.js +1 -0
  305. package/dist/client/assets/yaml-B3zsVfP-.js +1 -0
  306. package/dist/client/assets/zenscript-DH15wJt0.js +1 -0
  307. package/dist/client/assets/zig-CqXN9brD.js +1 -0
  308. package/dist/client/index.html +2 -2
  309. package/package.json +6 -6
  310. package/dist/client/assets/abap-BdImnpbu.js +0 -1
  311. package/dist/client/assets/actionscript-3-CoDkCxhg.js +0 -1
  312. package/dist/client/assets/ada-bCR0ucgS.js +0 -1
  313. package/dist/client/assets/andromeeda-C4gqWexZ.js +0 -1
  314. package/dist/client/assets/angular-html-CU67Zn6k.js +0 -1
  315. package/dist/client/assets/angular-ts-BwZT4LLn.js +0 -1
  316. package/dist/client/assets/apache-Pmp26Uib.js +0 -1
  317. package/dist/client/assets/apex-D8_7TLub.js +0 -1
  318. package/dist/client/assets/apl-dKokRX4l.js +0 -1
  319. package/dist/client/assets/applescript-Co6uUVPk.js +0 -1
  320. package/dist/client/assets/ara-BRHolxvo.js +0 -1
  321. package/dist/client/assets/asciidoc-Ve4PFQV2.js +0 -1
  322. package/dist/client/assets/asm-D_Q5rh1f.js +0 -1
  323. package/dist/client/assets/astro-CbQHKStN.js +0 -1
  324. package/dist/client/assets/aurora-x-D-2ljcwZ.js +0 -1
  325. package/dist/client/assets/awk-DMzUqQB5.js +0 -1
  326. package/dist/client/assets/ayu-dark-DYE7WIF3.js +0 -1
  327. package/dist/client/assets/ayu-light-BA47KaF1.js +0 -1
  328. package/dist/client/assets/ayu-mirage-32ctXXKs.js +0 -1
  329. package/dist/client/assets/ballerina-BFfxhgS-.js +0 -1
  330. package/dist/client/assets/bat-BkioyH1T.js +0 -1
  331. package/dist/client/assets/beancount-k_qm7-4y.js +0 -1
  332. package/dist/client/assets/berry-uYugtg8r.js +0 -1
  333. package/dist/client/assets/bibtex-CHM0blh-.js +0 -1
  334. package/dist/client/assets/bicep-Bmn6On1c.js +0 -1
  335. package/dist/client/assets/bird2-DPOp833l.js +0 -1
  336. package/dist/client/assets/blade-D4QpJJKB.js +0 -1
  337. package/dist/client/assets/bsl-BO_Y6i37.js +0 -1
  338. package/dist/client/assets/c-BIGW1oBm.js +0 -1
  339. package/dist/client/assets/c3-eo99z4R2.js +0 -1
  340. package/dist/client/assets/cadence-Bv_4Rxtq.js +0 -1
  341. package/dist/client/assets/cairo-KRGpt6FW.js +0 -1
  342. package/dist/client/assets/catppuccin-frappe-DFWUc33u.js +0 -1
  343. package/dist/client/assets/catppuccin-latte-C9dUb6Cb.js +0 -1
  344. package/dist/client/assets/catppuccin-macchiato-DQyhUUbL.js +0 -1
  345. package/dist/client/assets/catppuccin-mocha-D87Tk5Gz.js +0 -1
  346. package/dist/client/assets/clarity-D53aC0YG.js +0 -1
  347. package/dist/client/assets/clojure-P80f7IUj.js +0 -1
  348. package/dist/client/assets/cmake-D1j8_8rp.js +0 -1
  349. package/dist/client/assets/cobol-nwyudZeR.js +0 -1
  350. package/dist/client/assets/codeowners-Bp6g37R7.js +0 -1
  351. package/dist/client/assets/codeql-DsOJ9woJ.js +0 -1
  352. package/dist/client/assets/coffee-Ch7k5sss.js +0 -1
  353. package/dist/client/assets/common-lisp-Cg-RD9OK.js +0 -1
  354. package/dist/client/assets/coq-DkFqJrB1.js +0 -1
  355. package/dist/client/assets/cpp-CofmeUqb.js +0 -1
  356. package/dist/client/assets/crystal-tKQVLTB8.js +0 -1
  357. package/dist/client/assets/csharp-COcwbKMJ.js +0 -1
  358. package/dist/client/assets/css-DPfMkruS.js +0 -1
  359. package/dist/client/assets/csv-fuZLfV_i.js +0 -1
  360. package/dist/client/assets/cue-D82EKSYY.js +0 -1
  361. package/dist/client/assets/cypher-COkxafJQ.js +0 -1
  362. package/dist/client/assets/d-85-TOEBH.js +0 -1
  363. package/dist/client/assets/dark-plus-C3mMm8J8.js +0 -1
  364. package/dist/client/assets/dart-CF10PKvl.js +0 -1
  365. package/dist/client/assets/dax-CEL-wOlO.js +0 -1
  366. package/dist/client/assets/desktop-BmXAJ9_W.js +0 -1
  367. package/dist/client/assets/diff-D97Zzqfu.js +0 -1
  368. package/dist/client/assets/docker-BcOcwvcX.js +0 -1
  369. package/dist/client/assets/dotenv-Da5cRb03.js +0 -1
  370. package/dist/client/assets/dracula-BzJJZx-M.js +0 -1
  371. package/dist/client/assets/dracula-soft-BXkSAIEj.js +0 -1
  372. package/dist/client/assets/dream-maker-BtqSS_iP.js +0 -1
  373. package/dist/client/assets/edge-BkV0erSs.js +0 -1
  374. package/dist/client/assets/elixir-CDX3lj18.js +0 -1
  375. package/dist/client/assets/elm-DbKCFpqz.js +0 -1
  376. package/dist/client/assets/emacs-lisp-C9XAeP06.js +0 -1
  377. package/dist/client/assets/erb-B12qg9BL.js +0 -1
  378. package/dist/client/assets/erlang-DsQrWhSR.js +0 -1
  379. package/dist/client/assets/everforest-dark-BgDCqdQA.js +0 -1
  380. package/dist/client/assets/everforest-light-C8M2exoo.js +0 -1
  381. package/dist/client/assets/fennel-BYunw83y.js +0 -1
  382. package/dist/client/assets/fish-BvzEVeQv.js +0 -1
  383. package/dist/client/assets/fluent-C4IJs8-o.js +0 -1
  384. package/dist/client/assets/fortran-fixed-form-CkoXwp7k.js +0 -1
  385. package/dist/client/assets/fortran-free-form-BxgE0vQu.js +0 -1
  386. package/dist/client/assets/fsharp-CXgrBDvD.js +0 -1
  387. package/dist/client/assets/gdresource-BOOCDP_w.js +0 -1
  388. package/dist/client/assets/gdscript-C5YyOfLZ.js +0 -1
  389. package/dist/client/assets/gdshader-DkwncUOv.js +0 -1
  390. package/dist/client/assets/genie-D0YGMca9.js +0 -1
  391. package/dist/client/assets/gherkin-DyxjwDmM.js +0 -1
  392. package/dist/client/assets/git-commit-F4YmCXRG.js +0 -1
  393. package/dist/client/assets/git-rebase-r7XF79zn.js +0 -1
  394. package/dist/client/assets/github-dark-DHJKELXO.js +0 -1
  395. package/dist/client/assets/github-dark-default-Cuk6v7N8.js +0 -1
  396. package/dist/client/assets/github-dark-dimmed-DH5Ifo-i.js +0 -1
  397. package/dist/client/assets/github-dark-high-contrast-E3gJ1_iC.js +0 -1
  398. package/dist/client/assets/github-light-DAi9KRSo.js +0 -1
  399. package/dist/client/assets/github-light-default-D7oLnXFd.js +0 -1
  400. package/dist/client/assets/github-light-high-contrast-BfjtVDDH.js +0 -1
  401. package/dist/client/assets/gleam-BspZqrRM.js +0 -1
  402. package/dist/client/assets/glimmer-js-Rg0-pVw9.js +0 -1
  403. package/dist/client/assets/glimmer-ts-U6CK756n.js +0 -1
  404. package/dist/client/assets/glsl-DplSGwfg.js +0 -1
  405. package/dist/client/assets/gn-n2N0HUVH.js +0 -1
  406. package/dist/client/assets/gnuplot-DdkO51Og.js +0 -1
  407. package/dist/client/assets/go-CxLEBnE3.js +0 -1
  408. package/dist/client/assets/graphql-ChdNCCLP.js +0 -1
  409. package/dist/client/assets/groovy-gcz8RCvz.js +0 -1
  410. package/dist/client/assets/gruvbox-dark-hard-CFHQjOhq.js +0 -1
  411. package/dist/client/assets/gruvbox-dark-medium-GsRaNv29.js +0 -1
  412. package/dist/client/assets/gruvbox-dark-soft-CVdnzihN.js +0 -1
  413. package/dist/client/assets/gruvbox-light-hard-CH1njM8p.js +0 -1
  414. package/dist/client/assets/gruvbox-light-medium-DRw_LuNl.js +0 -1
  415. package/dist/client/assets/gruvbox-light-soft-hJgmCMqR.js +0 -1
  416. package/dist/client/assets/hack-CaT9iCJl.js +0 -1
  417. package/dist/client/assets/handlebars-BL8al0AC.js +0 -1
  418. package/dist/client/assets/haskell-Df6bDoY_.js +0 -1
  419. package/dist/client/assets/haxe-CzTSHFRz.js +0 -1
  420. package/dist/client/assets/hcl-BWvSN4gD.js +0 -1
  421. package/dist/client/assets/hjson-D5-asLiD.js +0 -1
  422. package/dist/client/assets/hlsl-D3lLCCz7.js +0 -1
  423. package/dist/client/assets/horizon-BUw7H-hv.js +0 -1
  424. package/dist/client/assets/horizon-bright-Cn-bp-IR.js +0 -1
  425. package/dist/client/assets/houston-DnULxvSX.js +0 -1
  426. package/dist/client/assets/html-derivative-BFtXZ54Q.js +0 -1
  427. package/dist/client/assets/http-jrhK8wxY.js +0 -1
  428. package/dist/client/assets/hurl-irOxFIW8.js +0 -1
  429. package/dist/client/assets/hxml-Bvhsp5Yf.js +0 -1
  430. package/dist/client/assets/hy-DFXneXwc.js +0 -1
  431. package/dist/client/assets/imba-DGztddWO.js +0 -1
  432. package/dist/client/assets/index-BIk1RGuV.css +0 -1
  433. package/dist/client/assets/index-DTAogJg5.js +0 -2011
  434. package/dist/client/assets/ini-BEwlwnbL.js +0 -1
  435. package/dist/client/assets/java-CylS5w8V.js +0 -1
  436. package/dist/client/assets/javascript-wDzz0qaB.js +0 -1
  437. package/dist/client/assets/jinja-4LBKfQ-Z.js +0 -1
  438. package/dist/client/assets/jison-wvAkD_A8.js +0 -1
  439. package/dist/client/assets/json-Cp-IABpG.js +0 -1
  440. package/dist/client/assets/json5-C9tS-k6U.js +0 -1
  441. package/dist/client/assets/jsonc-Des-eS-w.js +0 -1
  442. package/dist/client/assets/jsonl-DcaNXYhu.js +0 -1
  443. package/dist/client/assets/jsonnet-DFQXde-d.js +0 -1
  444. package/dist/client/assets/jssm-C2t-YnRu.js +0 -1
  445. package/dist/client/assets/jsx-g9-lgVsj.js +0 -1
  446. package/dist/client/assets/julia-CxzCAyBv.js +0 -1
  447. package/dist/client/assets/just-Cw27pwNe.js +0 -1
  448. package/dist/client/assets/kanagawa-dragon-CkXjmgJE.js +0 -1
  449. package/dist/client/assets/kanagawa-lotus-CfQXZHmo.js +0 -1
  450. package/dist/client/assets/kanagawa-wave-DWedfzmr.js +0 -1
  451. package/dist/client/assets/kdl-DV7GczEv.js +0 -1
  452. package/dist/client/assets/kotlin-BdnUsdx6.js +0 -1
  453. package/dist/client/assets/kusto-DZf3V79B.js +0 -1
  454. package/dist/client/assets/laserwave-DUszq2jm.js +0 -1
  455. package/dist/client/assets/latex-CWtU0Tv5.js +0 -1
  456. package/dist/client/assets/lean-BZvkOJ9d.js +0 -1
  457. package/dist/client/assets/less-B1dDrJ26.js +0 -1
  458. package/dist/client/assets/light-plus-B7mTdjB0.js +0 -1
  459. package/dist/client/assets/liquid-DYVedYrR.js +0 -1
  460. package/dist/client/assets/llvm-DjAJT7YJ.js +0 -1
  461. package/dist/client/assets/log-2UxHyX5q.js +0 -1
  462. package/dist/client/assets/logo-BtOb2qkB.js +0 -1
  463. package/dist/client/assets/lua-BaeVxFsk.js +0 -1
  464. package/dist/client/assets/luau-C-HG3fhB.js +0 -1
  465. package/dist/client/assets/make-CHLpvVh8.js +0 -1
  466. package/dist/client/assets/markdown-Cvjx9yec.js +0 -1
  467. package/dist/client/assets/marko-CnJfTvn9.js +0 -1
  468. package/dist/client/assets/material-theme-D5KoaKCx.js +0 -1
  469. package/dist/client/assets/material-theme-darker-BfHTSMKl.js +0 -1
  470. package/dist/client/assets/material-theme-lighter-B0m2ddpp.js +0 -1
  471. package/dist/client/assets/material-theme-ocean-CyktbL80.js +0 -1
  472. package/dist/client/assets/material-theme-palenight-Csfq5Kiy.js +0 -1
  473. package/dist/client/assets/matlab-D7o27uSR.js +0 -1
  474. package/dist/client/assets/mdc-BMNejdWA.js +0 -1
  475. package/dist/client/assets/mdx-Cmh6b_Ma.js +0 -1
  476. package/dist/client/assets/mermaid-mWjccvbQ.js +0 -1
  477. package/dist/client/assets/min-dark-CafNBF8u.js +0 -1
  478. package/dist/client/assets/min-light-CTRr51gU.js +0 -1
  479. package/dist/client/assets/mipsasm-CKIfxQSi.js +0 -1
  480. package/dist/client/assets/mojo-rZm6bMo-.js +0 -1
  481. package/dist/client/assets/monokai-D4h5O-jR.js +0 -1
  482. package/dist/client/assets/moonbit-_H4v1dQx.js +0 -1
  483. package/dist/client/assets/move-IF9eRakj.js +0 -1
  484. package/dist/client/assets/narrat-DRg8JJMk.js +0 -1
  485. package/dist/client/assets/nextflow-Zz6hmt5N.js +0 -1
  486. package/dist/client/assets/nextflow-groovy-BeH2EWoN.js +0 -1
  487. package/dist/client/assets/nginx-BpAMiNFr.js +0 -1
  488. package/dist/client/assets/night-owl-C39BiMTA.js +0 -1
  489. package/dist/client/assets/night-owl-light-CMTm3GFP.js +0 -1
  490. package/dist/client/assets/nim-CVrawwO9.js +0 -1
  491. package/dist/client/assets/nix-CwoSXNpI.js +0 -1
  492. package/dist/client/assets/nord-Ddv68eIx.js +0 -1
  493. package/dist/client/assets/nushell-Cz2AlsmD.js +0 -1
  494. package/dist/client/assets/objective-c-DXmwc3jG.js +0 -1
  495. package/dist/client/assets/objective-cpp-CLxacb5B.js +0 -1
  496. package/dist/client/assets/ocaml-C0hk2d4L.js +0 -1
  497. package/dist/client/assets/odin-BBf5iR-q.js +0 -1
  498. package/dist/client/assets/one-dark-pro-DVMEJ2y_.js +0 -1
  499. package/dist/client/assets/one-light-C3Wv6jpd.js +0 -1
  500. package/dist/client/assets/openscad-C4EeE6gA.js +0 -1
  501. package/dist/client/assets/pascal-D93ZcfNL.js +0 -1
  502. package/dist/client/assets/perl-C0TMdlhV.js +0 -1
  503. package/dist/client/assets/php-Dhbhpdrm.js +0 -1
  504. package/dist/client/assets/pierre-dark-ClCaJvdG.js +0 -1
  505. package/dist/client/assets/pierre-light-zjGsWSiE.js +0 -1
  506. package/dist/client/assets/pkl-u5AG7uiY.js +0 -1
  507. package/dist/client/assets/plastic-3e1v2bzS.js +0 -1
  508. package/dist/client/assets/plsql-ChMvpjG-.js +0 -1
  509. package/dist/client/assets/po-BTJTHyun.js +0 -1
  510. package/dist/client/assets/poimandres-CS3Unz2-.js +0 -1
  511. package/dist/client/assets/polar-C0HS_06l.js +0 -1
  512. package/dist/client/assets/postcss-CXtECtnM.js +0 -1
  513. package/dist/client/assets/powerquery-CEu0bR-o.js +0 -1
  514. package/dist/client/assets/powershell-Dpen1YoG.js +0 -1
  515. package/dist/client/assets/prisma-Dd19v3D-.js +0 -1
  516. package/dist/client/assets/prolog-CbFg5uaA.js +0 -1
  517. package/dist/client/assets/proto-C7zT0LnQ.js +0 -1
  518. package/dist/client/assets/pug-CGlum2m_.js +0 -1
  519. package/dist/client/assets/puppet-BMWR74SV.js +0 -1
  520. package/dist/client/assets/purescript-CklMAg4u.js +0 -1
  521. package/dist/client/assets/python-B6aJPvgy.js +0 -1
  522. package/dist/client/assets/qml-3beO22l8.js +0 -1
  523. package/dist/client/assets/qmldir-C8lEn-DE.js +0 -1
  524. package/dist/client/assets/qss-IeuSbFQv.js +0 -1
  525. package/dist/client/assets/r-Dspwwk_N.js +0 -1
  526. package/dist/client/assets/racket-BqYA7rlc.js +0 -1
  527. package/dist/client/assets/raku-DXvB9xmW.js +0 -1
  528. package/dist/client/assets/razor-Uh8Bk_45.js +0 -1
  529. package/dist/client/assets/red-bN70gL4F.js +0 -1
  530. package/dist/client/assets/reg-C-SQnVFl.js +0 -1
  531. package/dist/client/assets/regexp-CDVJQ6XC.js +0 -1
  532. package/dist/client/assets/rel-C3B-1QV4.js +0 -1
  533. package/dist/client/assets/riscv-BM1_JUlF.js +0 -1
  534. package/dist/client/assets/ron-D8l8udqQ.js +0 -1
  535. package/dist/client/assets/rose-pine-dawn-DHQR4-dF.js +0 -1
  536. package/dist/client/assets/rose-pine-moon-D4_iv3hh.js +0 -1
  537. package/dist/client/assets/rose-pine-qdsjHGoJ.js +0 -1
  538. package/dist/client/assets/rosmsg-BJDFO7_C.js +0 -1
  539. package/dist/client/assets/rst-BrH8l1NY.js +0 -1
  540. package/dist/client/assets/ruby-Dw2BHqvy.js +0 -1
  541. package/dist/client/assets/rust-B1yitclQ.js +0 -1
  542. package/dist/client/assets/sas-cz2c8ADy.js +0 -1
  543. package/dist/client/assets/sass-Cj5Yp3dK.js +0 -1
  544. package/dist/client/assets/scala-C151Ov-r.js +0 -1
  545. package/dist/client/assets/scheme-C98Dy4si.js +0 -1
  546. package/dist/client/assets/scss-OYdSNvt2.js +0 -1
  547. package/dist/client/assets/sdbl-DVxCFoDh.js +0 -1
  548. package/dist/client/assets/shaderlab-Dg9Lc6iA.js +0 -1
  549. package/dist/client/assets/shellscript-Yzrsuije.js +0 -1
  550. package/dist/client/assets/shellsession-BADoaaVG.js +0 -1
  551. package/dist/client/assets/slack-dark-BthQWCQV.js +0 -1
  552. package/dist/client/assets/slack-ochin-DqwNpetd.js +0 -1
  553. package/dist/client/assets/smalltalk-BERRCDM3.js +0 -1
  554. package/dist/client/assets/snazzy-light-Bw305WKR.js +0 -1
  555. package/dist/client/assets/solarized-dark-DXbdFlpD.js +0 -1
  556. package/dist/client/assets/solarized-light-L9t79GZl.js +0 -1
  557. package/dist/client/assets/solidity-rGO070M0.js +0 -1
  558. package/dist/client/assets/soy-Brmx7dQM.js +0 -1
  559. package/dist/client/assets/sparql-rVzFXLq3.js +0 -1
  560. package/dist/client/assets/splunk-BtCnVYZw.js +0 -1
  561. package/dist/client/assets/sql-BLtJtn59.js +0 -1
  562. package/dist/client/assets/ssh-config-_ykCGR6B.js +0 -1
  563. package/dist/client/assets/stata-BH5u7GGu.js +0 -1
  564. package/dist/client/assets/stylus-BEDo0Tqx.js +0 -1
  565. package/dist/client/assets/surrealql-Bq5Q-fJD.js +0 -1
  566. package/dist/client/assets/svelte-C_ipcX3V.js +0 -1
  567. package/dist/client/assets/swift-D82vCrfD.js +0 -1
  568. package/dist/client/assets/synthwave-84-CbfX1IO0.js +0 -1
  569. package/dist/client/assets/system-verilog-CnnmHF94.js +0 -1
  570. package/dist/client/assets/systemd-4A_iFExJ.js +0 -1
  571. package/dist/client/assets/talonscript-CkByrt1z.js +0 -1
  572. package/dist/client/assets/tasl-QIJgUcNo.js +0 -1
  573. package/dist/client/assets/tcl-dwOrl1Do.js +0 -1
  574. package/dist/client/assets/templ-P3uqSqPl.js +0 -1
  575. package/dist/client/assets/terraform-BETggiCN.js +0 -1
  576. package/dist/client/assets/tex-idrVyKtj.js +0 -1
  577. package/dist/client/assets/tokyo-night-hegEt444.js +0 -1
  578. package/dist/client/assets/toml-vGWfd6FD.js +0 -1
  579. package/dist/client/assets/ts-tags-zn1MmPIZ.js +0 -1
  580. package/dist/client/assets/tsv-B_m7g4N7.js +0 -1
  581. package/dist/client/assets/tsx-COt5Ahok.js +0 -1
  582. package/dist/client/assets/turtle-BsS91CYL.js +0 -1
  583. package/dist/client/assets/twig-DNn4PbVi.js +0 -1
  584. package/dist/client/assets/typescript-BPQ3VLAy.js +0 -1
  585. package/dist/client/assets/typespec-BGHnOYBU.js +0 -1
  586. package/dist/client/assets/typst-DHCkPAjA.js +0 -1
  587. package/dist/client/assets/v-BcVCzyr7.js +0 -1
  588. package/dist/client/assets/vala-CsfeWuGM.js +0 -1
  589. package/dist/client/assets/vb-D17OF-Vu.js +0 -1
  590. package/dist/client/assets/verilog-BQ8w6xss.js +0 -1
  591. package/dist/client/assets/vesper-DU1UobuO.js +0 -1
  592. package/dist/client/assets/vhdl-CeAyd5Ju.js +0 -1
  593. package/dist/client/assets/viml-CJc9bBzg.js +0 -1
  594. package/dist/client/assets/vitesse-black-Bkuqu6BP.js +0 -1
  595. package/dist/client/assets/vitesse-dark-D0r3Knsf.js +0 -1
  596. package/dist/client/assets/vitesse-light-CVO1_9PV.js +0 -1
  597. package/dist/client/assets/vue-DN_0RTcg.js +0 -1
  598. package/dist/client/assets/vue-html-AaS7Mt5G.js +0 -1
  599. package/dist/client/assets/vue-vine-CQOfvN7w.js +0 -1
  600. package/dist/client/assets/vyper-CDx5xZoG.js +0 -1
  601. package/dist/client/assets/wasm-MzD3tlZU.js +0 -1
  602. package/dist/client/assets/wenyan-BV7otONQ.js +0 -1
  603. package/dist/client/assets/wgsl-Dx-B1_4e.js +0 -1
  604. package/dist/client/assets/wikitext-BhOHFoWU.js +0 -1
  605. package/dist/client/assets/wit-5i3qLPDT.js +0 -1
  606. package/dist/client/assets/wolfram-lXgVvXCa.js +0 -1
  607. package/dist/client/assets/xml-sdJ4AIDG.js +0 -1
  608. package/dist/client/assets/xsl-CtQFsRM5.js +0 -1
  609. package/dist/client/assets/yaml-Buea-lGh.js +0 -1
  610. package/dist/client/assets/zenscript-DVFEvuxE.js +0 -1
  611. package/dist/client/assets/zig-VOosw3JB.js +0 -1
@@ -1,2011 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-B12qg9BL.js","assets/ruby-Dw2BHqvy.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-Cw27pwNe.js","assets/perl-C0TMdlhV.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-DYVedYrR.js","assets/marko-CnJfTvn9.js","assets/less-B1dDrJ26.js","assets/mdc-BMNejdWA.js","assets/nextflow-Zz6hmt5N.js","assets/nextflow-groovy-BeH2EWoN.js","assets/nginx-BpAMiNFr.js","assets/nim-CVrawwO9.js","assets/php-Dhbhpdrm.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-Uh8Bk_45.js","assets/csharp-COcwbKMJ.js","assets/rst-BrH8l1NY.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-C_ipcX3V.js","assets/templ-P3uqSqPl.js","assets/go-CxLEBnE3.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-DNn4PbVi.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
- var D_=Object.defineProperty;var O_=Object.getPrototypeOf;var N_=Reflect.get;var rg=i=>{throw TypeError(i)};var M_=(i,n,a)=>n in i?D_(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a;var x=(i,n,a)=>M_(i,typeof n!="symbol"?n+"":n,a),Dc=(i,n,a)=>n.has(i)||rg("Cannot "+a);var yt=(i,n,a)=>(Dc(i,n,"read from private field"),a?a.call(i):n.get(i)),Bi=(i,n,a)=>n.has(i)?rg("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(i):n.set(i,a),on=(i,n,a,r)=>(Dc(i,n,"write to private field"),r?r.call(i,a):n.set(i,a),a),Oc=(i,n,a)=>(Dc(i,n,"access private method"),a);var og=(i,n,a)=>N_(O_(i),a,n);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function a(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(s){if(s.ep)return;s.ep=!0;const u=a(s);fetch(s.href,u)}})();var Nc={exports:{}},ql={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var sg;function z_(){if(sg)return ql;sg=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,s,u){var f=null;if(u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),"key"in s){u={};for(var d in s)d!=="key"&&(u[d]=s[d])}else u=s;return s=u.ref,{$$typeof:i,type:r,key:f,ref:s!==void 0?s:null,props:u}}return ql.Fragment=n,ql.jsx=a,ql.jsxs=a,ql}var ug;function I_(){return ug||(ug=1,Nc.exports=z_()),Nc.exports}var F=I_(),Mc={exports:{}},Yl={},zc={exports:{}},Ic={};/**
11
- * @license React
12
- * scheduler.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var cg;function U_(){return cg||(cg=1,(function(i){function n(B,Q){var W=B.length;B.push(Q);e:for(;0<W;){var fe=W-1>>>1,xe=B[fe];if(0<s(xe,Q))B[fe]=Q,B[W]=xe,W=fe;else break e}}function a(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var Q=B[0],W=B.pop();if(W!==Q){B[0]=W;e:for(var fe=0,xe=B.length,R=xe>>>1;fe<R;){var Y=2*(fe+1)-1,J=B[Y],te=Y+1,se=B[te];if(0>s(J,W))te<xe&&0>s(se,J)?(B[fe]=se,B[te]=W,fe=te):(B[fe]=J,B[Y]=W,fe=Y);else if(te<xe&&0>s(se,W))B[fe]=se,B[te]=W,fe=te;else break e}}return Q}function s(B,Q){var W=B.sortIndex-Q.sortIndex;return W!==0?W:B.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;i.unstable_now=function(){return u.now()}}else{var f=Date,d=f.now();i.unstable_now=function(){return f.now()-d}}var h=[],m=[],v=1,g=null,y=3,_=!1,E=!1,w=!1,N=!1,D=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function U(B){for(var Q=a(m);Q!==null;){if(Q.callback===null)r(m);else if(Q.startTime<=B)r(m),Q.sortIndex=Q.expirationTime,n(h,Q);else break;Q=a(m)}}function q(B){if(w=!1,U(B),!E)if(a(h)!==null)E=!0,V||(V=!0,re());else{var Q=a(m);Q!==null&&Ce(q,Q.startTime-B)}}var V=!1,M=-1,P=5,Z=-1;function ee(){return N?!0:!(i.unstable_now()-Z<P)}function ae(){if(N=!1,V){var B=i.unstable_now();Z=B;var Q=!0;try{e:{E=!1,w&&(w=!1,L(M),M=-1),_=!0;var W=y;try{t:{for(U(B),g=a(h);g!==null&&!(g.expirationTime>B&&ee());){var fe=g.callback;if(typeof fe=="function"){g.callback=null,y=g.priorityLevel;var xe=fe(g.expirationTime<=B);if(B=i.unstable_now(),typeof xe=="function"){g.callback=xe,U(B),Q=!0;break t}g===a(h)&&r(h),U(B)}else r(h);g=a(h)}if(g!==null)Q=!0;else{var R=a(m);R!==null&&Ce(q,R.startTime-B),Q=!1}}break e}finally{g=null,y=W,_=!1}Q=void 0}}finally{Q?re():V=!1}}}var re;if(typeof T=="function")re=function(){T(ae)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,le=he.port2;he.port1.onmessage=ae,re=function(){le.postMessage(null)}}else re=function(){D(ae,0)};function Ce(B,Q){M=D(function(){B(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(B){B.callback=null},i.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<B?Math.floor(1e3/B):5},i.unstable_getCurrentPriorityLevel=function(){return y},i.unstable_next=function(B){switch(y){case 1:case 2:case 3:var Q=3;break;default:Q=y}var W=y;y=Q;try{return B()}finally{y=W}},i.unstable_requestPaint=function(){N=!0},i.unstable_runWithPriority=function(B,Q){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var W=y;y=B;try{return Q()}finally{y=W}},i.unstable_scheduleCallback=function(B,Q,W){var fe=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?fe+W:fe):W=fe,B){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=W+xe,B={id:v++,callback:Q,priorityLevel:B,startTime:W,expirationTime:xe,sortIndex:-1},W>fe?(B.sortIndex=W,n(m,B),a(h)===null&&B===a(m)&&(w?(L(M),M=-1):w=!0,Ce(q,W-fe))):(B.sortIndex=xe,n(h,B),E||_||(E=!0,V||(V=!0,re()))),B},i.unstable_shouldYield=ee,i.unstable_wrapCallback=function(B){var Q=y;return function(){var W=y;y=Q;try{return B.apply(this,arguments)}finally{y=W}}}})(Ic)),Ic}var fg;function H_(){return fg||(fg=1,zc.exports=U_()),zc.exports}var Uc={exports:{}},me={};/**
19
- * @license React
20
- * react.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var dg;function V_(){if(dg)return me;dg=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function _(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,N={};function D(R,Y,J){this.props=R,this.context=Y,this.refs=N,this.updater=J||E}D.prototype.isReactComponent={},D.prototype.setState=function(R,Y){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,Y,"setState")},D.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function L(){}L.prototype=D.prototype;function T(R,Y,J){this.props=R,this.context=Y,this.refs=N,this.updater=J||E}var U=T.prototype=new L;U.constructor=T,w(U,D.prototype),U.isPureReactComponent=!0;var q=Array.isArray;function V(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function Z(R,Y,J){var te=J.ref;return{$$typeof:i,type:R,key:Y,ref:te!==void 0?te:null,props:J}}function ee(R,Y){return Z(R.type,Y,R.props)}function ae(R){return typeof R=="object"&&R!==null&&R.$$typeof===i}function re(R){var Y={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(J){return Y[J]})}var he=/\/+/g;function le(R,Y){return typeof R=="object"&&R!==null&&R.key!=null?re(""+R.key):Y.toString(36)}function Ce(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(V,V):(R.status="pending",R.then(function(Y){R.status==="pending"&&(R.status="fulfilled",R.value=Y)},function(Y){R.status==="pending"&&(R.status="rejected",R.reason=Y)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function B(R,Y,J,te,se){var de=typeof R;(de==="undefined"||de==="boolean")&&(R=null);var we=!1;if(R===null)we=!0;else switch(de){case"bigint":case"string":case"number":we=!0;break;case"object":switch(R.$$typeof){case i:case n:we=!0;break;case v:return we=R._init,B(we(R._payload),Y,J,te,se)}}if(we)return se=se(R),we=te===""?"."+le(R,0):te,q(se)?(J="",we!=null&&(J=we.replace(he,"$&/")+"/"),B(se,Y,J,"",function(qe){return qe})):se!=null&&(ae(se)&&(se=ee(se,J+(se.key==null||R&&R.key===se.key?"":(""+se.key).replace(he,"$&/")+"/")+we)),Y.push(se)),1;we=0;var pe=te===""?".":te+":";if(q(R))for(var Le=0;Le<R.length;Le++)te=R[Le],de=pe+le(te,Le),we+=B(te,Y,J,de,se);else if(Le=_(R),typeof Le=="function")for(R=Le.call(R),Le=0;!(te=R.next()).done;)te=te.value,de=pe+le(te,Le++),we+=B(te,Y,J,de,se);else if(de==="object"){if(typeof R.then=="function")return B(Ce(R),Y,J,te,se);throw Y=String(R),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return we}function Q(R,Y,J){if(R==null)return R;var te=[],se=0;return B(R,te,"","",function(de){return Y.call(J,de,se++)}),te}function W(R){if(R._status===-1){var Y=R._result;Y=Y(),Y.then(function(J){(R._status===0||R._status===-1)&&(R._status=1,R._result=J)},function(J){(R._status===0||R._status===-1)&&(R._status=2,R._result=J)}),R._status===-1&&(R._status=0,R._result=Y)}if(R._status===1)return R._result.default;throw R._result}var fe=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},xe={map:Q,forEach:function(R,Y,J){Q(R,function(){Y.apply(this,arguments)},J)},count:function(R){var Y=0;return Q(R,function(){Y++}),Y},toArray:function(R){return Q(R,function(Y){return Y})||[]},only:function(R){if(!ae(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return me.Activity=g,me.Children=xe,me.Component=D,me.Fragment=a,me.Profiler=s,me.PureComponent=T,me.StrictMode=r,me.Suspense=h,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,me.__COMPILER_RUNTIME={__proto__:null,c:function(R){return M.H.useMemoCache(R)}},me.cache=function(R){return function(){return R.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(R,Y,J){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var te=w({},R.props),se=R.key;if(Y!=null)for(de in Y.key!==void 0&&(se=""+Y.key),Y)!P.call(Y,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&Y.ref===void 0||(te[de]=Y[de]);var de=arguments.length-2;if(de===1)te.children=J;else if(1<de){for(var we=Array(de),pe=0;pe<de;pe++)we[pe]=arguments[pe+2];te.children=we}return Z(R.type,se,te)},me.createContext=function(R){return R={$$typeof:f,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:u,_context:R},R},me.createElement=function(R,Y,J){var te,se={},de=null;if(Y!=null)for(te in Y.key!==void 0&&(de=""+Y.key),Y)P.call(Y,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(se[te]=Y[te]);var we=arguments.length-2;if(we===1)se.children=J;else if(1<we){for(var pe=Array(we),Le=0;Le<we;Le++)pe[Le]=arguments[Le+2];se.children=pe}if(R&&R.defaultProps)for(te in we=R.defaultProps,we)se[te]===void 0&&(se[te]=we[te]);return Z(R,de,se)},me.createRef=function(){return{current:null}},me.forwardRef=function(R){return{$$typeof:d,render:R}},me.isValidElement=ae,me.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:W}},me.memo=function(R,Y){return{$$typeof:m,type:R,compare:Y===void 0?null:Y}},me.startTransition=function(R){var Y=M.T,J={};M.T=J;try{var te=R(),se=M.S;se!==null&&se(J,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(V,fe)}catch(de){fe(de)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),M.T=Y}},me.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},me.use=function(R){return M.H.use(R)},me.useActionState=function(R,Y,J){return M.H.useActionState(R,Y,J)},me.useCallback=function(R,Y){return M.H.useCallback(R,Y)},me.useContext=function(R){return M.H.useContext(R)},me.useDebugValue=function(){},me.useDeferredValue=function(R,Y){return M.H.useDeferredValue(R,Y)},me.useEffect=function(R,Y){return M.H.useEffect(R,Y)},me.useEffectEvent=function(R){return M.H.useEffectEvent(R)},me.useId=function(){return M.H.useId()},me.useImperativeHandle=function(R,Y,J){return M.H.useImperativeHandle(R,Y,J)},me.useInsertionEffect=function(R,Y){return M.H.useInsertionEffect(R,Y)},me.useLayoutEffect=function(R,Y){return M.H.useLayoutEffect(R,Y)},me.useMemo=function(R,Y){return M.H.useMemo(R,Y)},me.useOptimistic=function(R,Y){return M.H.useOptimistic(R,Y)},me.useReducer=function(R,Y,J){return M.H.useReducer(R,Y,J)},me.useRef=function(R){return M.H.useRef(R)},me.useState=function(R){return M.H.useState(R)},me.useSyncExternalStore=function(R,Y,J){return M.H.useSyncExternalStore(R,Y,J)},me.useTransition=function(){return M.H.useTransition()},me.version="19.2.4",me}var hg;function Gf(){return hg||(hg=1,Uc.exports=V_()),Uc.exports}var Hc={exports:{}},mt={};/**
27
- * @license React
28
- * react-dom.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var pg;function G_(){if(pg)return mt;pg=1;var i=Gf();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(h,m,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:h,containerInfo:m,implementation:v}}var f=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mt.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return u(h,m,null,v)},mt.flushSync=function(h){var m=f.T,v=r.p;try{if(f.T=null,r.p=2,h)return h()}finally{f.T=m,r.p=v,r.d.f()}},mt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},mt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},mt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,g=d(v,m.crossOrigin),y=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:_}):v==="script"&&r.d.X(h,{crossOrigin:g,integrity:y,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},mt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=d(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},mt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,g=d(v,m.crossOrigin);r.d.L(h,v,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},mt.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=d(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},mt.requestFormReset=function(h){r.d.r(h)},mt.unstable_batchedUpdates=function(h,m){return h(m)},mt.useFormState=function(h,m,v){return f.H.useFormState(h,m,v)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var mg;function B_(){if(mg)return Hc.exports;mg=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Hc.exports=G_(),Hc.exports}/**
35
- * @license React
36
- * react-dom-client.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var gg;function j_(){if(gg)return Yl;gg=1;var i=H_(),n=Gf(),a=B_();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,o=t;;){var c=l.return;if(c===null)break;var p=c.alternate;if(p===null){if(o=c.return,o!==null){l=o;continue}break}if(c.child===p.child){for(p=c.child;p;){if(p===l)return h(c),e;if(p===o)return h(c),t;p=p.sibling}throw Error(r(188))}if(l.return!==o.return)l=c,o=p;else{for(var b=!1,S=c.child;S;){if(S===l){b=!0,l=c,o=p;break}if(S===o){b=!0,o=c,l=p;break}S=S.sibling}if(!b){for(S=p.child;S;){if(S===l){b=!0,l=p,o=c;break}if(S===o){b=!0,o=p,l=c;break}S=S.sibling}if(!b)throw Error(r(189))}}if(l.alternate!==o)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),T=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case D:return"Profiler";case N:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case T:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var Ce=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},fe=[],xe=-1;function R(e){return{current:e}}function Y(e){0>xe||(e.current=fe[xe],fe[xe]=null,xe--)}function J(e,t){xe++,fe[xe]=e.current,e.current=t}var te=R(null),se=R(null),de=R(null),we=R(null);function pe(e,t){switch(J(de,t),J(se,e),J(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?km(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=km(t),e=Rm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(te),J(te,e)}function Le(){Y(te),Y(se),Y(de)}function qe(e){e.memoizedState!==null&&J(we,e);var t=te.current,l=Rm(t,e.type);t!==l&&(J(se,e),J(te,l))}function Rt(e){se.current===e&&(Y(te),Y(se)),we.current===e&&(Y(we),Bl._currentValue=W)}var pt,_t;function dn(e){if(pt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);pt=t&&t[1]||"",_t=-1<l.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+pt+e+_t}var St=!1;function ms(e,t){if(!e||St)return"";St=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(G){var H=G}Reflect.construct(e,[],X)}else{try{X.call()}catch(G){H=G}e.call(X.prototype)}}else{try{throw Error()}catch(G){H=G}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(G){if(G&&H&&typeof G.stack=="string")return[G.stack,H.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),b=p[0],S=p[1];if(b&&S){var A=b.split(`
45
- `),I=S.split(`
46
- `);for(c=o=0;o<A.length&&!A[o].includes("DetermineComponentFrameRoot");)o++;for(;c<I.length&&!I[c].includes("DetermineComponentFrameRoot");)c++;if(o===A.length||c===I.length)for(o=A.length-1,c=I.length-1;1<=o&&0<=c&&A[o]!==I[c];)c--;for(;1<=o&&0<=c;o--,c--)if(A[o]!==I[c]){if(o!==1||c!==1)do if(o--,c--,0>c||A[o]!==I[c]){var j=`
47
- `+A[o].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=o&&0<=c);break}}}finally{St=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?dn(l):""}function sb(e,t){switch(e.tag){case 26:case 27:case 5:return dn(e.type);case 16:return dn("Lazy");case 13:return e.child!==t&&t!==null?dn("Suspense Fallback"):dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return ms(e.type,!1);case 11:return ms(e.type.render,!1);case 1:return ms(e.type,!0);case 31:return dn("Activity");default:return""}}function rd(e){try{var t="",l=null;do t+=sb(e,l),l=e,e=e.return;while(e);return t}catch(o){return`
48
- Error generating stack: `+o.message+`
49
- `+o.stack}}var gs=Object.prototype.hasOwnProperty,vs=i.unstable_scheduleCallback,bs=i.unstable_cancelCallback,ub=i.unstable_shouldYield,cb=i.unstable_requestPaint,Dt=i.unstable_now,fb=i.unstable_getCurrentPriorityLevel,od=i.unstable_ImmediatePriority,sd=i.unstable_UserBlockingPriority,ur=i.unstable_NormalPriority,db=i.unstable_LowPriority,ud=i.unstable_IdlePriority,hb=i.log,pb=i.unstable_setDisableYieldValue,Ja=null,Ot=null;function Yn(e){if(typeof hb=="function"&&pb(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Ja,e)}catch{}}var Nt=Math.clz32?Math.clz32:vb,mb=Math.log,gb=Math.LN2;function vb(e){return e>>>=0,e===0?32:31-(mb(e)/gb|0)|0}var cr=256,fr=262144,dr=4194304;function Ci(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function hr(e,t,l){var o=e.pendingLanes;if(o===0)return 0;var c=0,p=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~p,o!==0?c=Ci(o):(b&=S,b!==0?c=Ci(b):l||(l=S&~e,l!==0&&(c=Ci(l))))):(S=o&~p,S!==0?c=Ci(S):b!==0?c=Ci(b):l||(l=o&~e,l!==0&&(c=Ci(l)))),c===0?0:t!==0&&t!==c&&(t&p)===0&&(p=c&-c,l=t&-t,p>=l||p===32&&(l&4194048)!==0)?t:c}function el(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cd(){var e=dr;return dr<<=1,(dr&62914560)===0&&(dr=4194304),e}function ys(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yb(e,t,l,o,c,p){var b=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,I=e.hiddenUpdates;for(l=b&~l;0<l;){var j=31-Nt(l),X=1<<j;S[j]=0,A[j]=-1;var H=I[j];if(H!==null)for(I[j]=null,j=0;j<H.length;j++){var G=H[j];G!==null&&(G.lane&=-536870913)}l&=~X}o!==0&&fd(e,o,0),p!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=p&~(b&~t))}function fd(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Nt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function dd(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var o=31-Nt(l),c=1<<o;c&t|e[o]&t&&(e[o]|=t),l&=~c}}function hd(e,t){var l=t&-t;return l=(l&42)!==0?1:_s(l),(l&(e.suspendedLanes|t))!==0?0:l}function _s(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ss(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pd(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Jm(e.type))}function md(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var Xn=Math.random().toString(36).slice(2),ut="__reactFiber$"+Xn,Et="__reactProps$"+Xn,Ki="__reactContainer$"+Xn,Es="__reactEvents$"+Xn,_b="__reactListeners$"+Xn,Sb="__reactHandles$"+Xn,gd="__reactResources$"+Xn,nl="__reactMarker$"+Xn;function Cs(e){delete e[ut],delete e[Et],delete e[Es],delete e[_b],delete e[Sb]}function Wi(e){var t=e[ut];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ki]||l[ut]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Um(e);e!==null;){if(l=e[ut])return l;e=Um(e)}return t}e=l,l=e.parentNode}return null}function Ji(e){if(e=e[ut]||e[Ki]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ea(e){var t=e[gd];return t||(t=e[gd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[nl]=!0}var vd=new Set,bd={};function Ai(e,t){ta(e,t),ta(e+"Capture",t)}function ta(e,t){for(bd[e]=t,e=0;e<t.length;e++)vd.add(t[e])}var Eb=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),yd={},_d={};function Cb(e){return gs.call(_d,e)?!0:gs.call(yd,e)?!1:Eb.test(e)?_d[e]=!0:(yd[e]=!0,!1)}function pr(e,t,l){if(Cb(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function mr(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Sn(e,t,l,o){if(o===null)e.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+o)}}function jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ab(e,t,l){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,p=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(b){l=""+b,p.call(this,b)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function As(e){if(!e._valueTracker){var t=Sd(e)?"checked":"value";e._valueTracker=Ab(e,t,""+e[t])}}function Ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),o="";return e&&(o=Sd(e)?e.checked?"true":"false":e.value),e=o,e!==l?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Tb=/[\n"\\]/g;function Pt(e){return e.replace(Tb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ts(e,t,l,o,c,p,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+jt(t)):e.value!==""+jt(t)&&(e.value=""+jt(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?xs(e,b,jt(t)):l!=null?xs(e,b,jt(l)):o!=null&&e.removeAttribute("value"),c==null&&p!=null&&(e.defaultChecked=!!p),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+jt(S):e.removeAttribute("name")}function Cd(e,t,l,o,c,p,b,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),t!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||t!=null)){As(e);return}l=l!=null?""+jt(l):"",t=t!=null?""+jt(t):l,S||t===e.value||(e.value=t),e.defaultValue=t}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=S?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),As(e)}function xs(e,t,l){t==="number"&&gr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function na(e,t,l,o){if(e=e.options,t){t={};for(var c=0;c<l.length;c++)t["$"+l[c]]=!0;for(l=0;l<e.length;l++)c=t.hasOwnProperty("$"+e[l].value),e[l].selected!==c&&(e[l].selected=c),c&&o&&(e[l].defaultSelected=!0)}else{for(l=""+jt(l),t=null,c=0;c<e.length;c++){if(e[c].value===l){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Ad(e,t,l){if(t!=null&&(t=""+jt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+jt(l):""}function Td(e,t,l,o){if(t==null){if(o!=null){if(l!=null)throw Error(r(92));if(Ce(o)){if(1<o.length)throw Error(r(93));o=o[0]}l=o}l==null&&(l=""),t=l}l=jt(t),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),As(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var xb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xd(e,t,l){var o=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,l):typeof l!="number"||l===0||xb.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function wd(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in t)o=t[c],t.hasOwnProperty(c)&&l[c]!==o&&xd(e,c,o)}else for(var p in t)t.hasOwnProperty(p)&&xd(e,p,t[p])}function ws(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Lb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vr(e){return Lb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var Ls=null;function ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var aa=null,la=null;function Ld(e){var t=Ji(e);if(t&&(e=t.stateNode)){var l=e[Et]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ts(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Pt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var o=l[t];if(o!==e&&o.form===e.form){var c=o[Et]||null;if(!c)throw Error(r(90));Ts(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<l.length;t++)o=l[t],o.form===e.form&&Ed(o)}break e;case"textarea":Ad(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&na(e,!!l.multiple,t,!1)}}}var Rs=!1;function kd(e,t,l){if(Rs)return e(t,l);Rs=!0;try{var o=e(t);return o}finally{if(Rs=!1,(aa!==null||la!==null)&&(ao(),aa&&(t=aa,e=la,la=aa=null,Ld(t),e)))for(t=0;t<e.length;t++)Ld(e[t])}}function al(e,t){var l=e.stateNode;if(l===null)return null;var o=l[Et]||null;if(o===null)return null;l=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=!1;if(Cn)try{var ll={};Object.defineProperty(ll,"passive",{get:function(){Ds=!0}}),window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{Ds=!1}var Qn=null,Os=null,br=null;function Rd(){if(br)return br;var e,t=Os,l=t.length,o,c="value"in Qn?Qn.value:Qn.textContent,p=c.length;for(e=0;e<l&&t[e]===c[e];e++);var b=l-e;for(o=1;o<=b&&t[l-o]===c[p-o];o++);return br=c.slice(e,1<o?1-o:void 0)}function yr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _r(){return!0}function Dd(){return!1}function Ct(e){function t(l,o,c,p,b){this._reactName=l,this._targetInst=c,this.type=o,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?_r:Dd,this.isPropagationStopped=Dd,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=_r)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_r)},persist:function(){},isPersistent:_r}),t}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sr=Ct(Ti),rl=g({},Ti,{view:0,detail:0}),kb=Ct(rl),Ns,Ms,ol,Er=g({},rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Is,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ol&&(ol&&e.type==="mousemove"?(Ns=e.screenX-ol.screenX,Ms=e.screenY-ol.screenY):Ms=Ns=0,ol=e),Ns)},movementY:function(e){return"movementY"in e?e.movementY:Ms}}),Od=Ct(Er),Rb=g({},Er,{dataTransfer:0}),Db=Ct(Rb),Ob=g({},rl,{relatedTarget:0}),zs=Ct(Ob),Nb=g({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),Mb=Ct(Nb),zb=g({},Ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ib=Ct(zb),Ub=g({},Ti,{data:0}),Nd=Ct(Ub),Hb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gb[e])?!!t[e]:!1}function Is(){return Bb}var jb=g({},rl,{key:function(e){if(e.key){var t=Hb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Is,charCode:function(e){return e.type==="keypress"?yr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pb=Ct(jb),$b=g({},Er,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Md=Ct($b),qb=g({},rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Is}),Yb=Ct(qb),Xb=g({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qb=Ct(Xb),Fb=g({},Er,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zb=Ct(Fb),Kb=g({},Ti,{newState:0,oldState:0}),Wb=Ct(Kb),Jb=[9,13,27,32],Us=Cn&&"CompositionEvent"in window,sl=null;Cn&&"documentMode"in document&&(sl=document.documentMode);var ey=Cn&&"TextEvent"in window&&!sl,zd=Cn&&(!Us||sl&&8<sl&&11>=sl),Id=" ",Ud=!1;function Hd(e,t){switch(e){case"keyup":return Jb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function ty(e,t){switch(e){case"compositionend":return Vd(t);case"keypress":return t.which!==32?null:(Ud=!0,Id);case"textInput":return e=t.data,e===Id&&Ud?null:e;default:return null}}function ny(e,t){if(ra)return e==="compositionend"||!Us&&Hd(e,t)?(e=Rd(),br=Os=Qn=null,ra=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zd&&t.locale!=="ko"?null:t.data;default:return null}}var iy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iy[e.type]:t==="textarea"}function Bd(e,t,l,o){aa?la?la.push(o):la=[o]:aa=o,t=fo(t,"onChange"),0<t.length&&(l=new Sr("onChange","change",null,l,o),e.push({event:l,listeners:t}))}var ul=null,cl=null;function ay(e){Cm(e,0)}function Cr(e){var t=il(e);if(Ed(t))return e}function jd(e,t){if(e==="change")return t}var Pd=!1;if(Cn){var Hs;if(Cn){var Vs="oninput"in document;if(!Vs){var $d=document.createElement("div");$d.setAttribute("oninput","return;"),Vs=typeof $d.oninput=="function"}Hs=Vs}else Hs=!1;Pd=Hs&&(!document.documentMode||9<document.documentMode)}function qd(){ul&&(ul.detachEvent("onpropertychange",Yd),cl=ul=null)}function Yd(e){if(e.propertyName==="value"&&Cr(cl)){var t=[];Bd(t,cl,e,ks(e)),kd(ay,t)}}function ly(e,t,l){e==="focusin"?(qd(),ul=t,cl=l,ul.attachEvent("onpropertychange",Yd)):e==="focusout"&&qd()}function ry(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cr(cl)}function oy(e,t){if(e==="click")return Cr(t)}function sy(e,t){if(e==="input"||e==="change")return Cr(t)}function uy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:uy;function fl(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var c=l[o];if(!gs.call(t,c)||!Mt(e[c],t[c]))return!1}return!0}function Xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qd(e,t){var l=Xd(e);e=0;for(var o;l;){if(l.nodeType===3){if(o=e+l.textContent.length,e<=t&&o>=t)return{node:l,offset:t-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Xd(l)}}function Fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gr(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=gr(e.document)}return t}function Gs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var cy=Cn&&"documentMode"in document&&11>=document.documentMode,oa=null,Bs=null,dl=null,js=!1;function Kd(e,t,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;js||oa==null||oa!==gr(o)||(o=oa,"selectionStart"in o&&Gs(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),dl&&fl(dl,o)||(dl=o,o=fo(Bs,"onSelect"),0<o.length&&(t=new Sr("onSelect","select",null,t,l),e.push({event:t,listeners:o}),t.target=oa)))}function xi(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var sa={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionrun:xi("Transition","TransitionRun"),transitionstart:xi("Transition","TransitionStart"),transitioncancel:xi("Transition","TransitionCancel"),transitionend:xi("Transition","TransitionEnd")},Ps={},Wd={};Cn&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);function wi(e){if(Ps[e])return Ps[e];if(!sa[e])return e;var t=sa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Wd)return Ps[e]=t[l];return e}var Jd=wi("animationend"),eh=wi("animationiteration"),th=wi("animationstart"),fy=wi("transitionrun"),dy=wi("transitionstart"),hy=wi("transitioncancel"),nh=wi("transitionend"),ih=new Map,$s="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");$s.push("scrollEnd");function an(e,t){ih.set(e,t),Ai(t,[e])}var Ar=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},$t=[],ua=0,qs=0;function Tr(){for(var e=ua,t=qs=ua=0;t<e;){var l=$t[t];$t[t++]=null;var o=$t[t];$t[t++]=null;var c=$t[t];$t[t++]=null;var p=$t[t];if($t[t++]=null,o!==null&&c!==null){var b=o.pending;b===null?c.next=c:(c.next=b.next,b.next=c),o.pending=c}p!==0&&ah(l,c,p)}}function xr(e,t,l,o){$t[ua++]=e,$t[ua++]=t,$t[ua++]=l,$t[ua++]=o,qs|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ys(e,t,l,o){return xr(e,t,l,o),wr(e)}function Li(e,t){return xr(e,null,null,t),wr(e)}function ah(e,t,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var c=!1,p=e.return;p!==null;)p.childLanes|=l,o=p.alternate,o!==null&&(o.childLanes|=l),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(c=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,c&&t!==null&&(c=31-Nt(l),e=p.hiddenUpdates,o=e[c],o===null?e[c]=[t]:o.push(t),t.lane=l|536870912),p):null}function wr(e){if(50<Ml)throw Ml=0,tc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ca={};function py(e,t,l,o){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,l,o){return new py(e,t,l,o)}function Xs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function An(e,t){var l=e.alternate;return l===null?(l=zt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function lh(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Lr(e,t,l,o,c,p){var b=0;if(o=e,typeof e=="function")Xs(e)&&(b=1);else if(typeof e=="string")b=y_(e,l,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=zt(31,l,t,c),e.elementType=Z,e.lanes=p,e;case w:return ki(l.children,c,p,t);case N:b=8,c|=24;break;case D:return e=zt(12,l,t,c|2),e.elementType=D,e.lanes=p,e;case q:return e=zt(13,l,t,c),e.elementType=q,e.lanes=p,e;case V:return e=zt(19,l,t,c),e.elementType=V,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:b=10;break e;case L:b=9;break e;case U:b=11;break e;case M:b=14;break e;case P:b=16,o=null;break e}b=29,l=Error(r(130,e===null?"null":typeof e,"")),o=null}return t=zt(b,l,t,c),t.elementType=e,t.type=o,t.lanes=p,t}function ki(e,t,l,o){return e=zt(7,e,o,t),e.lanes=l,e}function Qs(e,t,l){return e=zt(6,e,null,t),e.lanes=l,e}function rh(e){var t=zt(18,null,null,0);return t.stateNode=e,t}function Fs(e,t,l){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var oh=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var l=oh.get(e);return l!==void 0?l:(t={value:e,source:t,stack:rd(t)},oh.set(e,t),t)}return{value:e,source:t,stack:rd(t)}}var fa=[],da=0,kr=null,hl=0,Yt=[],Xt=0,Fn=null,hn=1,pn="";function Tn(e,t){fa[da++]=hl,fa[da++]=kr,kr=e,hl=t}function sh(e,t,l){Yt[Xt++]=hn,Yt[Xt++]=pn,Yt[Xt++]=Fn,Fn=e;var o=hn;e=pn;var c=32-Nt(o)-1;o&=~(1<<c),l+=1;var p=32-Nt(t)+c;if(30<p){var b=c-c%5;p=(o&(1<<b)-1).toString(32),o>>=b,c-=b,hn=1<<32-Nt(t)+c|l<<c|o,pn=p+e}else hn=1<<p|l<<c|o,pn=e}function Zs(e){e.return!==null&&(Tn(e,1),sh(e,1,0))}function Ks(e){for(;e===kr;)kr=fa[--da],fa[da]=null,hl=fa[--da],fa[da]=null;for(;e===Fn;)Fn=Yt[--Xt],Yt[Xt]=null,pn=Yt[--Xt],Yt[Xt]=null,hn=Yt[--Xt],Yt[Xt]=null}function uh(e,t){Yt[Xt++]=hn,Yt[Xt++]=pn,Yt[Xt++]=Fn,hn=t.id,pn=t.overflow,Fn=e}var ct=null,Ge=null,ke=!1,Zn=null,Qt=!1,Ws=Error(r(519));function Kn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pl(qt(t,e)),Ws}function ch(e){var t=e.stateNode,l=e.type,o=e.memoizedProps;switch(t[ut]=e,t[Et]=o,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<Il.length;l++)Ee(Il[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),Cd(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),Td(t,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||o.suppressHydrationWarning===!0||wm(t.textContent,l)?(o.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),o.onScroll!=null&&Ee("scroll",t),o.onScrollEnd!=null&&Ee("scrollend",t),o.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||Kn(e,!0)}function fh(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:ct=ct.return}}function ha(e){if(e!==ct)return!1;if(!ke)return fh(e),ke=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||gc(e.type,e.memoizedProps)),l=!l),l&&Ge&&Kn(e),fh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ge=Im(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ge=Im(e)}else t===27?(t=Ge,fi(e.type)?(e=Sc,Sc=null,Ge=e):Ge=t):Ge=ct?Zt(e.stateNode.nextSibling):null;return!0}function Ri(){Ge=ct=null,ke=!1}function Js(){var e=Zn;return e!==null&&(wt===null?wt=e:wt.push.apply(wt,e),Zn=null),e}function pl(e){Zn===null?Zn=[e]:Zn.push(e)}var eu=R(null),Di=null,xn=null;function Wn(e,t,l){J(eu,t._currentValue),t._currentValue=l}function wn(e){e._currentValue=eu.current,Y(eu)}function tu(e,t,l){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===l)break;e=e.return}}function nu(e,t,l,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var p=c.dependencies;if(p!==null){var b=c.child;p=p.firstContext;e:for(;p!==null;){var S=p;p=c;for(var A=0;A<t.length;A++)if(S.context===t[A]){p.lanes|=l,S=p.alternate,S!==null&&(S.lanes|=l),tu(p.return,l,e),o||(b=null);break e}p=S.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(r(341));b.lanes|=l,p=b.alternate,p!==null&&(p.lanes|=l),tu(b,l,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function pa(e,t,l,o){e=null;for(var c=t,p=!1;c!==null;){if(!p){if((c.flags&524288)!==0)p=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(r(387));if(b=b.memoizedProps,b!==null){var S=c.type;Mt(c.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(c===we.current){if(b=c.alternate,b===null)throw Error(r(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Bl):e=[Bl])}c=c.return}e!==null&&nu(t,e,l,o),t.flags|=262144}function Rr(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oi(e){Di=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return dh(Di,e)}function Dr(e,t){return Di===null&&Oi(e),dh(e,t)}function dh(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},xn===null){if(e===null)throw Error(r(308));xn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xn=xn.next=t;return l}var my=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},gy=i.unstable_scheduleCallback,vy=i.unstable_NormalPriority,Fe={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function iu(){return{controller:new my,data:new Map,refCount:0}}function ml(e){e.refCount--,e.refCount===0&&gy(vy,function(){e.controller.abort()})}var gl=null,au=0,ma=0,ga=null;function by(e,t){if(gl===null){var l=gl=[];au=0,ma=oc(),ga={status:"pending",value:void 0,then:function(o){l.push(o)}}}return au++,t.then(hh,hh),t}function hh(){if(--au===0&&gl!==null){ga!==null&&(ga.status="fulfilled");var e=gl;gl=null,ma=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yy(e,t){var l=[],o={status:"pending",value:null,reason:null,then:function(c){l.push(c)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var c=0;c<l.length;c++)(0,l[c])(t)},function(c){for(o.status="rejected",o.reason=c,c=0;c<l.length;c++)(0,l[c])(void 0)}),o}var ph=B.S;B.S=function(e,t){Kp=Dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&by(e,t),ph!==null&&ph(e,t)};var Ni=R(null);function lu(){var e=Ni.current;return e!==null?e:He.pooledCache}function Or(e,t){t===null?J(Ni,Ni.current):J(Ni,t.pool)}function mh(){var e=lu();return e===null?null:{parent:Fe._currentValue,pool:e}}var va=Error(r(460)),ru=Error(r(474)),Nr=Error(r(542)),Mr={then:function(){}};function gh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vh(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(En,En),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yh(e),e;default:if(typeof t.status=="string")t.then(En,En);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=o}},function(o){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yh(e),e}throw zi=t,va}}function Mi(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(zi=l,va):l}}var zi=null;function bh(){if(zi===null)throw Error(r(459));var e=zi;return zi=null,e}function yh(e){if(e===va||e===Nr)throw Error(r(483))}var ba=null,vl=0;function zr(e){var t=vl;return vl+=1,ba===null&&(ba=[]),vh(ba,e,t)}function bl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ir(e,t){throw t.$$typeof===y?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _h(e){function t(O,k){if(e){var z=O.deletions;z===null?(O.deletions=[k],O.flags|=16):z.push(k)}}function l(O,k){if(!e)return null;for(;k!==null;)t(O,k),k=k.sibling;return null}function o(O){for(var k=new Map;O!==null;)O.key!==null?k.set(O.key,O):k.set(O.index,O),O=O.sibling;return k}function c(O,k){return O=An(O,k),O.index=0,O.sibling=null,O}function p(O,k,z){return O.index=z,e?(z=O.alternate,z!==null?(z=z.index,z<k?(O.flags|=67108866,k):z):(O.flags|=67108866,k)):(O.flags|=1048576,k)}function b(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function S(O,k,z,$){return k===null||k.tag!==6?(k=Qs(z,O.mode,$),k.return=O,k):(k=c(k,z),k.return=O,k)}function A(O,k,z,$){var oe=z.type;return oe===w?j(O,k,z.props.children,$,z.key):k!==null&&(k.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&Mi(oe)===k.type)?(k=c(k,z.props),bl(k,z),k.return=O,k):(k=Lr(z.type,z.key,z.props,null,O.mode,$),bl(k,z),k.return=O,k)}function I(O,k,z,$){return k===null||k.tag!==4||k.stateNode.containerInfo!==z.containerInfo||k.stateNode.implementation!==z.implementation?(k=Fs(z,O.mode,$),k.return=O,k):(k=c(k,z.children||[]),k.return=O,k)}function j(O,k,z,$,oe){return k===null||k.tag!==7?(k=ki(z,O.mode,$,oe),k.return=O,k):(k=c(k,z),k.return=O,k)}function X(O,k,z){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Qs(""+k,O.mode,z),k.return=O,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case _:return z=Lr(k.type,k.key,k.props,null,O.mode,z),bl(z,k),z.return=O,z;case E:return k=Fs(k,O.mode,z),k.return=O,k;case P:return k=Mi(k),X(O,k,z)}if(Ce(k)||re(k))return k=ki(k,O.mode,z,null),k.return=O,k;if(typeof k.then=="function")return X(O,zr(k),z);if(k.$$typeof===T)return X(O,Dr(O,k),z);Ir(O,k)}return null}function H(O,k,z,$){var oe=k!==null?k.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return oe!==null?null:S(O,k,""+z,$);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case _:return z.key===oe?A(O,k,z,$):null;case E:return z.key===oe?I(O,k,z,$):null;case P:return z=Mi(z),H(O,k,z,$)}if(Ce(z)||re(z))return oe!==null?null:j(O,k,z,$,null);if(typeof z.then=="function")return H(O,k,zr(z),$);if(z.$$typeof===T)return H(O,k,Dr(O,z),$);Ir(O,z)}return null}function G(O,k,z,$,oe){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return O=O.get(z)||null,S(k,O,""+$,oe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case _:return O=O.get($.key===null?z:$.key)||null,A(k,O,$,oe);case E:return O=O.get($.key===null?z:$.key)||null,I(k,O,$,oe);case P:return $=Mi($),G(O,k,z,$,oe)}if(Ce($)||re($))return O=O.get(z)||null,j(k,O,$,oe,null);if(typeof $.then=="function")return G(O,k,z,zr($),oe);if($.$$typeof===T)return G(O,k,z,Dr(k,$),oe);Ir(k,$)}return null}function ne(O,k,z,$){for(var oe=null,Re=null,ie=k,be=k=0,Te=null;ie!==null&&be<z.length;be++){ie.index>be?(Te=ie,ie=null):Te=ie.sibling;var De=H(O,ie,z[be],$);if(De===null){ie===null&&(ie=Te);break}e&&ie&&De.alternate===null&&t(O,ie),k=p(De,k,be),Re===null?oe=De:Re.sibling=De,Re=De,ie=Te}if(be===z.length)return l(O,ie),ke&&Tn(O,be),oe;if(ie===null){for(;be<z.length;be++)ie=X(O,z[be],$),ie!==null&&(k=p(ie,k,be),Re===null?oe=ie:Re.sibling=ie,Re=ie);return ke&&Tn(O,be),oe}for(ie=o(ie);be<z.length;be++)Te=G(ie,O,be,z[be],$),Te!==null&&(e&&Te.alternate!==null&&ie.delete(Te.key===null?be:Te.key),k=p(Te,k,be),Re===null?oe=Te:Re.sibling=Te,Re=Te);return e&&ie.forEach(function(gi){return t(O,gi)}),ke&&Tn(O,be),oe}function ce(O,k,z,$){if(z==null)throw Error(r(151));for(var oe=null,Re=null,ie=k,be=k=0,Te=null,De=z.next();ie!==null&&!De.done;be++,De=z.next()){ie.index>be?(Te=ie,ie=null):Te=ie.sibling;var gi=H(O,ie,De.value,$);if(gi===null){ie===null&&(ie=Te);break}e&&ie&&gi.alternate===null&&t(O,ie),k=p(gi,k,be),Re===null?oe=gi:Re.sibling=gi,Re=gi,ie=Te}if(De.done)return l(O,ie),ke&&Tn(O,be),oe;if(ie===null){for(;!De.done;be++,De=z.next())De=X(O,De.value,$),De!==null&&(k=p(De,k,be),Re===null?oe=De:Re.sibling=De,Re=De);return ke&&Tn(O,be),oe}for(ie=o(ie);!De.done;be++,De=z.next())De=G(ie,O,be,De.value,$),De!==null&&(e&&De.alternate!==null&&ie.delete(De.key===null?be:De.key),k=p(De,k,be),Re===null?oe=De:Re.sibling=De,Re=De);return e&&ie.forEach(function(R_){return t(O,R_)}),ke&&Tn(O,be),oe}function Ue(O,k,z,$){if(typeof z=="object"&&z!==null&&z.type===w&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case _:e:{for(var oe=z.key;k!==null;){if(k.key===oe){if(oe=z.type,oe===w){if(k.tag===7){l(O,k.sibling),$=c(k,z.props.children),$.return=O,O=$;break e}}else if(k.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&Mi(oe)===k.type){l(O,k.sibling),$=c(k,z.props),bl($,z),$.return=O,O=$;break e}l(O,k);break}else t(O,k);k=k.sibling}z.type===w?($=ki(z.props.children,O.mode,$,z.key),$.return=O,O=$):($=Lr(z.type,z.key,z.props,null,O.mode,$),bl($,z),$.return=O,O=$)}return b(O);case E:e:{for(oe=z.key;k!==null;){if(k.key===oe)if(k.tag===4&&k.stateNode.containerInfo===z.containerInfo&&k.stateNode.implementation===z.implementation){l(O,k.sibling),$=c(k,z.children||[]),$.return=O,O=$;break e}else{l(O,k);break}else t(O,k);k=k.sibling}$=Fs(z,O.mode,$),$.return=O,O=$}return b(O);case P:return z=Mi(z),Ue(O,k,z,$)}if(Ce(z))return ne(O,k,z,$);if(re(z)){if(oe=re(z),typeof oe!="function")throw Error(r(150));return z=oe.call(z),ce(O,k,z,$)}if(typeof z.then=="function")return Ue(O,k,zr(z),$);if(z.$$typeof===T)return Ue(O,k,Dr(O,z),$);Ir(O,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,k!==null&&k.tag===6?(l(O,k.sibling),$=c(k,z),$.return=O,O=$):(l(O,k),$=Qs(z,O.mode,$),$.return=O,O=$),b(O)):l(O,k)}return function(O,k,z,$){try{vl=0;var oe=Ue(O,k,z,$);return ba=null,oe}catch(ie){if(ie===va||ie===Nr)throw ie;var Re=zt(29,ie,null,O.mode);return Re.lanes=$,Re.return=O,Re}finally{}}}var Ii=_h(!0),Sh=_h(!1),Jn=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function su(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ei(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ti(e,t,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Oe&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,t=wr(e),ah(e,null,l),t}return xr(e,o,t,l),wr(e)}function yl(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,dd(e,l)}}function uu(e,t){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var c=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?c=p=b:p=p.next=b,l=l.next}while(l!==null);p===null?c=p=t:p=p.next=t}else c=p=t;l={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var cu=!1;function _l(){if(cu){var e=ga;if(e!==null)throw e}}function Sl(e,t,l,o){cu=!1;var c=e.updateQueue;Jn=!1;var p=c.firstBaseUpdate,b=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var A=S,I=A.next;A.next=null,b===null?p=I:b.next=I,b=A;var j=e.alternate;j!==null&&(j=j.updateQueue,S=j.lastBaseUpdate,S!==b&&(S===null?j.firstBaseUpdate=I:S.next=I,j.lastBaseUpdate=A))}if(p!==null){var X=c.baseState;b=0,j=I=A=null,S=p;do{var H=S.lane&-536870913,G=H!==S.lane;if(G?(Ae&H)===H:(o&H)===H){H!==0&&H===ma&&(cu=!0),j!==null&&(j=j.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ne=e,ce=S;H=t;var Ue=l;switch(ce.tag){case 1:if(ne=ce.payload,typeof ne=="function"){X=ne.call(Ue,X,H);break e}X=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ce.payload,H=typeof ne=="function"?ne.call(Ue,X,H):ne,H==null)break e;X=g({},X,H);break e;case 2:Jn=!0}}H=S.callback,H!==null&&(e.flags|=64,G&&(e.flags|=8192),G=c.callbacks,G===null?c.callbacks=[H]:G.push(H))}else G={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},j===null?(I=j=G,A=X):j=j.next=G,b|=H;if(S=S.next,S===null){if(S=c.shared.pending,S===null)break;G=S,S=G.next,G.next=null,c.lastBaseUpdate=G,c.shared.pending=null}}while(!0);j===null&&(A=X),c.baseState=A,c.firstBaseUpdate=I,c.lastBaseUpdate=j,p===null&&(c.shared.lanes=0),ri|=b,e.lanes=b,e.memoizedState=X}}function Eh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ch(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Eh(l[e],t)}var ya=R(null),Ur=R(0);function Ah(e,t){e=In,J(Ur,e),J(ya,t),In=e|t.baseLanes}function fu(){J(Ur,In),J(ya,ya.current)}function du(){In=Ur.current,Y(ya),Y(Ur)}var It=R(null),Ft=null;function ni(e){var t=e.alternate;J(Ye,Ye.current&1),J(It,e),Ft===null&&(t===null||ya.current!==null||t.memoizedState!==null)&&(Ft=e)}function hu(e){J(Ye,Ye.current),J(It,e),Ft===null&&(Ft=e)}function Th(e){e.tag===22?(J(Ye,Ye.current),J(It,e),Ft===null&&(Ft=e)):ii()}function ii(){J(Ye,Ye.current),J(It,It.current)}function Ut(e){Y(It),Ft===e&&(Ft=null),Y(Ye)}var Ye=R(0);function Hr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yc(l)||_c(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ln=0,ve=null,ze=null,Ze=null,Vr=!1,_a=!1,Ui=!1,Gr=0,El=0,Sa=null,_y=0;function Pe(){throw Error(r(321))}function pu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Mt(e[l],t[l]))return!1;return!0}function mu(e,t,l,o,c,p){return Ln=p,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?sp:Ru,Ui=!1,p=l(o,c),Ui=!1,_a&&(p=wh(t,l,o,c)),xh(e),p}function xh(e){B.H=Tl;var t=ze!==null&&ze.next!==null;if(Ln=0,Ze=ze=ve=null,Vr=!1,El=0,Sa=null,t)throw Error(r(300));e===null||Ke||(e=e.dependencies,e!==null&&Rr(e)&&(Ke=!0))}function wh(e,t,l,o){ve=e;var c=0;do{if(_a&&(Sa=null),El=0,_a=!1,25<=c)throw Error(r(301));if(c+=1,Ze=ze=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}B.H=up,p=t(l,o)}while(_a);return p}function Sy(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Cl(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ve.flags|=1024),t}function gu(){var e=Gr!==0;return Gr=0,e}function vu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function bu(e){if(Vr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vr=!1}Ln=0,Ze=ze=ve=null,_a=!1,El=Gr=0,Sa=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ve.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(ze===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ze===null?ve.memoizedState:Ze.next;if(t!==null)Ze=t,ze=e;else{if(e===null)throw ve.alternate===null?Error(r(467)):Error(r(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ze===null?ve.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Br(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cl(e){var t=El;return El+=1,Sa===null&&(Sa=[]),e=vh(Sa,e,t),t=ve,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?sp:Ru),e}function jr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cl(e);if(e.$$typeof===T)return ft(e)}throw Error(r(438,String(e)))}function yu(e){var t=null,l=ve.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var o=ve.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Br(),ve.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),o=0;o<e;o++)l[o]=ee;return t.index++,l}function kn(e,t){return typeof t=="function"?t(e):t}function Pr(e){var t=Xe();return _u(t,ze,e)}function _u(e,t,l){var o=e.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=l;var c=e.baseQueue,p=o.pending;if(p!==null){if(c!==null){var b=c.next;c.next=p.next,p.next=b}t.baseQueue=c=p,o.pending=null}if(p=e.baseState,c===null)e.memoizedState=p;else{t=c.next;var S=b=null,A=null,I=t,j=!1;do{var X=I.lane&-536870913;if(X!==I.lane?(Ae&X)===X:(Ln&X)===X){var H=I.revertLane;if(H===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),X===ma&&(j=!0);else if((Ln&H)===H){I=I.next,H===ma&&(j=!0);continue}else X={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},A===null?(S=A=X,b=p):A=A.next=X,ve.lanes|=H,ri|=H;X=I.action,Ui&&l(p,X),p=I.hasEagerState?I.eagerState:l(p,X)}else H={lane:X,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},A===null?(S=A=H,b=p):A=A.next=H,ve.lanes|=X,ri|=X;I=I.next}while(I!==null&&I!==t);if(A===null?b=p:A.next=S,!Mt(p,e.memoizedState)&&(Ke=!0,j&&(l=ga,l!==null)))throw l;e.memoizedState=p,e.baseState=b,e.baseQueue=A,o.lastRenderedState=p}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Su(e){var t=Xe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var o=l.dispatch,c=l.pending,p=t.memoizedState;if(c!==null){l.pending=null;var b=c=c.next;do p=e(p,b.action),b=b.next;while(b!==c);Mt(p,t.memoizedState)||(Ke=!0),t.memoizedState=p,t.baseQueue===null&&(t.baseState=p),l.lastRenderedState=p}return[p,o]}function Lh(e,t,l){var o=ve,c=Xe(),p=ke;if(p){if(l===void 0)throw Error(r(407));l=l()}else l=t();var b=!Mt((ze||c).memoizedState,l);if(b&&(c.memoizedState=l,Ke=!0),c=c.queue,Au(Dh.bind(null,o,c,e),[e]),c.getSnapshot!==t||b||Ze!==null&&Ze.memoizedState.tag&1){if(o.flags|=2048,Ea(9,{destroy:void 0},Rh.bind(null,o,c,l,t),null),He===null)throw Error(r(349));p||(Ln&127)!==0||kh(o,t,l)}return l}function kh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ve.updateQueue,t===null?(t=Br(),ve.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Rh(e,t,l,o){t.value=l,t.getSnapshot=o,Oh(t)&&Nh(e)}function Dh(e,t,l){return l(function(){Oh(t)&&Nh(e)})}function Oh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Mt(e,l)}catch{return!0}}function Nh(e){var t=Li(e,2);t!==null&&Lt(t,e,2)}function Eu(e){var t=bt();if(typeof e=="function"){var l=e;if(e=l(),Ui){Yn(!0);try{l()}finally{Yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:e},t}function Mh(e,t,l,o){return e.baseState=l,_u(e,ze,typeof o=="function"?o:kn)}function Ey(e,t,l,o,c){if(Yr(e))throw Error(r(485));if(e=t.action,e!==null){var p={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};B.T!==null?l(!0):p.isTransition=!1,o(p),l=t.pending,l===null?(p.next=t.pending=p,zh(t,p)):(p.next=l.next,t.pending=l.next=p)}}function zh(e,t){var l=t.action,o=t.payload,c=e.state;if(t.isTransition){var p=B.T,b={};B.T=b;try{var S=l(c,o),A=B.S;A!==null&&A(b,S),Ih(e,t,S)}catch(I){Cu(e,t,I)}finally{p!==null&&b.types!==null&&(p.types=b.types),B.T=p}}else try{p=l(c,o),Ih(e,t,p)}catch(I){Cu(e,t,I)}}function Ih(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){Uh(e,t,o)},function(o){return Cu(e,t,o)}):Uh(e,t,l)}function Uh(e,t,l){t.status="fulfilled",t.value=l,Hh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,zh(e,l)))}function Cu(e,t,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=l,Hh(t),t=t.next;while(t!==o)}e.action=null}function Hh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vh(e,t){return t}function Gh(e,t){if(ke){var l=He.formState;if(l!==null){e:{var o=ve;if(ke){if(Ge){t:{for(var c=Ge,p=Qt;c.nodeType!==8;){if(!p){c=null;break t}if(c=Zt(c.nextSibling),c===null){c=null;break t}}p=c.data,c=p==="F!"||p==="F"?c:null}if(c){Ge=Zt(c.nextSibling),o=c.data==="F!";break e}}Kn(o)}o=!1}o&&(t=l[0])}}return l=bt(),l.memoizedState=l.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:t},l.queue=o,l=lp.bind(null,ve,o),o.dispatch=l,o=Eu(!1),p=ku.bind(null,ve,!1,o.queue),o=bt(),c={state:t,dispatch:null,action:e,pending:null},o.queue=c,l=Ey.bind(null,ve,c,p,l),c.dispatch=l,o.memoizedState=e,[t,l,!1]}function Bh(e){var t=Xe();return jh(t,ze,e)}function jh(e,t,l){if(t=_u(e,t,Vh)[0],e=Pr(kn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Cl(t)}catch(b){throw b===va?Nr:b}else o=t;t=Xe();var c=t.queue,p=c.dispatch;return l!==t.memoizedState&&(ve.flags|=2048,Ea(9,{destroy:void 0},Cy.bind(null,c,l),null)),[o,p,e]}function Cy(e,t){e.action=t}function Ph(e){var t=Xe(),l=ze;if(l!==null)return jh(t,l,e);Xe(),t=t.memoizedState,l=Xe();var o=l.queue.dispatch;return l.memoizedState=e,[t,o,!1]}function Ea(e,t,l,o){return e={tag:e,create:l,deps:o,inst:t,next:null},t=ve.updateQueue,t===null&&(t=Br(),ve.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(o=l.next,l.next=e,e.next=o,t.lastEffect=e),e}function $h(){return Xe().memoizedState}function $r(e,t,l,o){var c=bt();ve.flags|=e,c.memoizedState=Ea(1|t,{destroy:void 0},l,o===void 0?null:o)}function qr(e,t,l,o){var c=Xe();o=o===void 0?null:o;var p=c.memoizedState.inst;ze!==null&&o!==null&&pu(o,ze.memoizedState.deps)?c.memoizedState=Ea(t,p,l,o):(ve.flags|=e,c.memoizedState=Ea(1|t,p,l,o))}function qh(e,t){$r(8390656,8,e,t)}function Au(e,t){qr(2048,8,e,t)}function Ay(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=Br(),ve.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Yh(e){var t=Xe().memoizedState;return Ay({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Xh(e,t){return qr(4,2,e,t)}function Qh(e,t){return qr(4,4,e,t)}function Fh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zh(e,t,l){l=l!=null?l.concat([e]):null,qr(4,4,Fh.bind(null,t,e),l)}function Tu(){}function Kh(e,t){var l=Xe();t=t===void 0?null:t;var o=l.memoizedState;return t!==null&&pu(t,o[1])?o[0]:(l.memoizedState=[e,t],e)}function Wh(e,t){var l=Xe();t=t===void 0?null:t;var o=l.memoizedState;if(t!==null&&pu(t,o[1]))return o[0];if(o=e(),Ui){Yn(!0);try{e()}finally{Yn(!1)}}return l.memoizedState=[o,t],o}function xu(e,t,l){return l===void 0||(Ln&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jp(),ve.lanes|=e,ri|=e,l)}function Jh(e,t,l,o){return Mt(l,t)?l:ya.current!==null?(e=xu(e,l,o),Mt(e,t)||(Ke=!0),e):(Ln&42)===0||(Ln&1073741824)!==0&&(Ae&261930)===0?(Ke=!0,e.memoizedState=l):(e=Jp(),ve.lanes|=e,ri|=e,t)}function ep(e,t,l,o,c){var p=Q.p;Q.p=p!==0&&8>p?p:8;var b=B.T,S={};B.T=S,ku(e,!1,t,l);try{var A=c(),I=B.S;if(I!==null&&I(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var j=yy(A,o);Al(e,t,j,Gt(e))}else Al(e,t,o,Gt(e))}catch(X){Al(e,t,{then:function(){},status:"rejected",reason:X},Gt())}finally{Q.p=p,b!==null&&S.types!==null&&(b.types=S.types),B.T=b}}function Ty(){}function wu(e,t,l,o){if(e.tag!==5)throw Error(r(476));var c=tp(e).queue;ep(e,c,t,W,l===null?Ty:function(){return np(e),l(o)})}function tp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:W},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function np(e){var t=tp(e);t.next===null&&(t=e.alternate.memoizedState),Al(e,t.next.queue,{},Gt())}function Lu(){return ft(Bl)}function ip(){return Xe().memoizedState}function ap(){return Xe().memoizedState}function xy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Gt();e=ei(l);var o=ti(t,e,l);o!==null&&(Lt(o,t,l),yl(o,t,l)),t={cache:iu()},e.payload=t;return}t=t.return}}function wy(e,t,l){var o=Gt();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Yr(e)?rp(t,l):(l=Ys(e,t,l,o),l!==null&&(Lt(l,e,o),op(l,t,o)))}function lp(e,t,l){var o=Gt();Al(e,t,l,o)}function Al(e,t,l,o){var c={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Yr(e))rp(t,c);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=t.lastRenderedReducer,p!==null))try{var b=t.lastRenderedState,S=p(b,l);if(c.hasEagerState=!0,c.eagerState=S,Mt(S,b))return xr(e,t,c,0),He===null&&Tr(),!1}catch{}finally{}if(l=Ys(e,t,c,o),l!==null)return Lt(l,e,o),op(l,t,o),!0}return!1}function ku(e,t,l,o){if(o={lane:2,revertLane:oc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Yr(e)){if(t)throw Error(r(479))}else t=Ys(e,l,o,2),t!==null&&Lt(t,e,2)}function Yr(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function rp(e,t){_a=Vr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function op(e,t,l){if((l&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,dd(e,l)}}var Tl={readContext:ft,use:jr,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useLayoutEffect:Pe,useInsertionEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useSyncExternalStore:Pe,useId:Pe,useHostTransitionStatus:Pe,useFormState:Pe,useActionState:Pe,useOptimistic:Pe,useMemoCache:Pe,useCacheRefresh:Pe};Tl.useEffectEvent=Pe;var sp={readContext:ft,use:jr,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:qh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,$r(4194308,4,Fh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){$r(4,2,e,t)},useMemo:function(e,t){var l=bt();t=t===void 0?null:t;var o=e();if(Ui){Yn(!0);try{e()}finally{Yn(!1)}}return l.memoizedState=[o,t],o},useReducer:function(e,t,l){var o=bt();if(l!==void 0){var c=l(t);if(Ui){Yn(!0);try{l(t)}finally{Yn(!1)}}}else c=t;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=wy.bind(null,ve,e),[o.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Eu(e);var t=e.queue,l=lp.bind(null,ve,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Tu,useDeferredValue:function(e,t){var l=bt();return xu(l,e,t)},useTransition:function(){var e=Eu(!1);return e=ep.bind(null,ve,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var o=ve,c=bt();if(ke){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),He===null)throw Error(r(349));(Ae&127)!==0||kh(o,t,l)}c.memoizedState=l;var p={value:l,getSnapshot:t};return c.queue=p,qh(Dh.bind(null,o,p,e),[e]),o.flags|=2048,Ea(9,{destroy:void 0},Rh.bind(null,o,p,l,t),null),l},useId:function(){var e=bt(),t=He.identifierPrefix;if(ke){var l=pn,o=hn;l=(o&~(1<<32-Nt(o)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Gr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=_y++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Lu,useFormState:Gh,useActionState:Gh,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ku.bind(null,ve,!0,l),l.dispatch=t,[e,t]},useMemoCache:yu,useCacheRefresh:function(){return bt().memoizedState=xy.bind(null,ve)},useEffectEvent:function(e){var t=bt(),l={impl:e};return t.memoizedState=l,function(){if((Oe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Ru={readContext:ft,use:jr,useCallback:Kh,useContext:ft,useEffect:Au,useImperativeHandle:Zh,useInsertionEffect:Xh,useLayoutEffect:Qh,useMemo:Wh,useReducer:Pr,useRef:$h,useState:function(){return Pr(kn)},useDebugValue:Tu,useDeferredValue:function(e,t){var l=Xe();return Jh(l,ze.memoizedState,e,t)},useTransition:function(){var e=Pr(kn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Cl(e),t]},useSyncExternalStore:Lh,useId:ip,useHostTransitionStatus:Lu,useFormState:Bh,useActionState:Bh,useOptimistic:function(e,t){var l=Xe();return Mh(l,ze,e,t)},useMemoCache:yu,useCacheRefresh:ap};Ru.useEffectEvent=Yh;var up={readContext:ft,use:jr,useCallback:Kh,useContext:ft,useEffect:Au,useImperativeHandle:Zh,useInsertionEffect:Xh,useLayoutEffect:Qh,useMemo:Wh,useReducer:Su,useRef:$h,useState:function(){return Su(kn)},useDebugValue:Tu,useDeferredValue:function(e,t){var l=Xe();return ze===null?xu(l,e,t):Jh(l,ze.memoizedState,e,t)},useTransition:function(){var e=Su(kn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Cl(e),t]},useSyncExternalStore:Lh,useId:ip,useHostTransitionStatus:Lu,useFormState:Ph,useActionState:Ph,useOptimistic:function(e,t){var l=Xe();return ze!==null?Mh(l,ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:yu,useCacheRefresh:ap};up.useEffectEvent=Yh;function Du(e,t,l,o){t=e.memoizedState,l=l(o,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ou={enqueueSetState:function(e,t,l){e=e._reactInternals;var o=Gt(),c=ei(o);c.payload=t,l!=null&&(c.callback=l),t=ti(e,c,o),t!==null&&(Lt(t,e,o),yl(t,e,o))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var o=Gt(),c=ei(o);c.tag=1,c.payload=t,l!=null&&(c.callback=l),t=ti(e,c,o),t!==null&&(Lt(t,e,o),yl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Gt(),o=ei(l);o.tag=2,t!=null&&(o.callback=t),t=ti(e,o,l),t!==null&&(Lt(t,e,l),yl(t,e,l))}};function cp(e,t,l,o,c,p,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,p,b):t.prototype&&t.prototype.isPureReactComponent?!fl(l,o)||!fl(c,p):!0}function fp(e,t,l,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,o),t.state!==e&&Ou.enqueueReplaceState(t,t.state,null)}function Hi(e,t){var l=t;if("ref"in t){l={};for(var o in t)o!=="ref"&&(l[o]=t[o])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var c in e)l[c]===void 0&&(l[c]=e[c])}return l}function dp(e){Ar(e)}function hp(e){console.error(e)}function pp(e){Ar(e)}function Xr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function mp(e,t,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Nu(e,t,l){return l=ei(l),l.tag=3,l.payload={element:null},l.callback=function(){Xr(e,t)},l}function gp(e){return e=ei(e),e.tag=3,e}function vp(e,t,l,o){var c=l.type.getDerivedStateFromError;if(typeof c=="function"){var p=o.value;e.payload=function(){return c(p)},e.callback=function(){mp(t,l,o)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){mp(t,l,o),typeof c!="function"&&(oi===null?oi=new Set([this]):oi.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function Ly(e,t,l,o,c){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=l.alternate,t!==null&&pa(t,l,c,!0),l=It.current,l!==null){switch(l.tag){case 31:case 13:return Ft===null?lo():l.alternate===null&&$e===0&&($e=3),l.flags&=-257,l.flags|=65536,l.lanes=c,o===Mr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([o]):t.add(o),ac(e,o,c)),!1;case 22:return l.flags|=65536,o===Mr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([o]):l.add(o)),ac(e,o,c)),!1}throw Error(r(435,l.tag))}return ac(e,o,c),lo(),!1}if(ke)return t=It.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,o!==Ws&&(e=Error(r(422),{cause:o}),pl(qt(e,l)))):(o!==Ws&&(t=Error(r(423),{cause:o}),pl(qt(t,l))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=qt(o,l),c=Nu(e.stateNode,o,c),uu(e,c),$e!==4&&($e=2)),!1;var p=Error(r(520),{cause:o});if(p=qt(p,l),Nl===null?Nl=[p]:Nl.push(p),$e!==4&&($e=2),t===null)return!0;o=qt(o,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=c&-c,l.lanes|=e,e=Nu(l.stateNode,o,e),uu(l,e),!1;case 1:if(t=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(oi===null||!oi.has(p))))return l.flags|=65536,c&=-c,l.lanes|=c,c=gp(c),vp(c,e,l,o),uu(l,c),!1}l=l.return}while(l!==null);return!1}var Mu=Error(r(461)),Ke=!1;function dt(e,t,l,o){t.child=e===null?Sh(t,null,l,o):Ii(t,e.child,l,o)}function bp(e,t,l,o,c){l=l.render;var p=t.ref;if("ref"in o){var b={};for(var S in o)S!=="ref"&&(b[S]=o[S])}else b=o;return Oi(t),o=mu(e,t,l,b,p,c),S=gu(),e!==null&&!Ke?(vu(e,t,c),Rn(e,t,c)):(ke&&S&&Zs(t),t.flags|=1,dt(e,t,o,c),t.child)}function yp(e,t,l,o,c){if(e===null){var p=l.type;return typeof p=="function"&&!Xs(p)&&p.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=p,_p(e,t,p,o,c)):(e=Lr(l.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(p=e.child,!ju(e,c)){var b=p.memoizedProps;if(l=l.compare,l=l!==null?l:fl,l(b,o)&&e.ref===t.ref)return Rn(e,t,c)}return t.flags|=1,e=An(p,o),e.ref=t.ref,e.return=t,t.child=e}function _p(e,t,l,o,c){if(e!==null){var p=e.memoizedProps;if(fl(p,o)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=o=p,ju(e,c))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,Rn(e,t,c)}return zu(e,t,l,o,c)}function Sp(e,t,l,o){var c=o.children,p=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,e!==null){for(o=t.child=e.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;o=c&~p}else o=0,t.child=null;return Ep(e,t,p,l,o)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Or(t,p!==null?p.cachePool:null),p!==null?Ah(t,p):fu(),Th(t);else return o=t.lanes=536870912,Ep(e,t,p!==null?p.baseLanes|l:l,l,o)}else p!==null?(Or(t,p.cachePool),Ah(t,p),ii(),t.memoizedState=null):(e!==null&&Or(t,null),fu(),ii());return dt(e,t,c,l),t.child}function xl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ep(e,t,l,o,c){var p=lu();return p=p===null?null:{parent:Fe._currentValue,pool:p},t.memoizedState={baseLanes:l,cachePool:p},e!==null&&Or(t,null),fu(),Th(t),e!==null&&pa(e,t,o,!0),t.childLanes=c,null}function Qr(e,t){return t=Zr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Cp(e,t,l){return Ii(t,e.child,null,l),e=Qr(t,t.pendingProps),e.flags|=2,Ut(t),t.memoizedState=null,e}function ky(e,t,l){var o=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(o.mode==="hidden")return e=Qr(t,o),t.lanes=536870912,xl(null,e);if(hu(t),(e=Ge)?(e=zm(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:hn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},l=rh(e),l.return=t,t.child=l,ct=t,Ge=null)):e=null,e===null)throw Kn(t);return t.lanes=536870912,null}return Qr(t,o)}var p=e.memoizedState;if(p!==null){var b=p.dehydrated;if(hu(t),c)if(t.flags&256)t.flags&=-257,t=Cp(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ke||pa(e,t,l,!1),c=(l&e.childLanes)!==0,Ke||c){if(o=He,o!==null&&(b=hd(o,l),b!==0&&b!==p.retryLane))throw p.retryLane=b,Li(e,b),Lt(o,e,b),Mu;lo(),t=Cp(e,t,l)}else e=p.treeContext,Ge=Zt(b.nextSibling),ct=t,ke=!0,Zn=null,Qt=!1,e!==null&&uh(t,e),t=Qr(t,o),t.flags|=4096;return t}return e=An(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fr(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function zu(e,t,l,o,c){return Oi(t),l=mu(e,t,l,o,void 0,c),o=gu(),e!==null&&!Ke?(vu(e,t,c),Rn(e,t,c)):(ke&&o&&Zs(t),t.flags|=1,dt(e,t,l,c),t.child)}function Ap(e,t,l,o,c,p){return Oi(t),t.updateQueue=null,l=wh(t,o,l,c),xh(e),o=gu(),e!==null&&!Ke?(vu(e,t,p),Rn(e,t,p)):(ke&&o&&Zs(t),t.flags|=1,dt(e,t,l,p),t.child)}function Tp(e,t,l,o,c){if(Oi(t),t.stateNode===null){var p=ca,b=l.contextType;typeof b=="object"&&b!==null&&(p=ft(b)),p=new l(o,p),t.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Ou,t.stateNode=p,p._reactInternals=t,p=t.stateNode,p.props=o,p.state=t.memoizedState,p.refs={},ou(t),b=l.contextType,p.context=typeof b=="object"&&b!==null?ft(b):ca,p.state=t.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(Du(t,l,b,o),p.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&Ou.enqueueReplaceState(p,p.state,null),Sl(t,o,p,c),_l(),p.state=t.memoizedState),typeof p.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){p=t.stateNode;var S=t.memoizedProps,A=Hi(l,S);p.props=A;var I=p.context,j=l.contextType;b=ca,typeof j=="object"&&j!==null&&(b=ft(j));var X=l.getDerivedStateFromProps;j=typeof X=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,j||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||I!==b)&&fp(t,p,o,b),Jn=!1;var H=t.memoizedState;p.state=H,Sl(t,o,p,c),_l(),I=t.memoizedState,S||H!==I||Jn?(typeof X=="function"&&(Du(t,l,X,o),I=t.memoizedState),(A=Jn||cp(t,l,A,o,H,I,b))?(j||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=I),p.props=o,p.state=I,p.context=b,o=A):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{p=t.stateNode,su(e,t),b=t.memoizedProps,j=Hi(l,b),p.props=j,X=t.pendingProps,H=p.context,I=l.contextType,A=ca,typeof I=="object"&&I!==null&&(A=ft(I)),S=l.getDerivedStateFromProps,(I=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==X||H!==A)&&fp(t,p,o,A),Jn=!1,H=t.memoizedState,p.state=H,Sl(t,o,p,c),_l();var G=t.memoizedState;b!==X||H!==G||Jn||e!==null&&e.dependencies!==null&&Rr(e.dependencies)?(typeof S=="function"&&(Du(t,l,S,o),G=t.memoizedState),(j=Jn||cp(t,l,j,o,H,G,A)||e!==null&&e.dependencies!==null&&Rr(e.dependencies))?(I||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,G,A),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,G,A)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=G),p.props=o,p.state=G,p.context=A,o=j):(typeof p.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),o=!1)}return p=o,Fr(e,t),o=(t.flags&128)!==0,p||o?(p=t.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:p.render(),t.flags|=1,e!==null&&o?(t.child=Ii(t,e.child,null,c),t.child=Ii(t,null,l,c)):dt(e,t,l,c),t.memoizedState=p.state,e=t.child):e=Rn(e,t,c),e}function xp(e,t,l,o){return Ri(),t.flags|=256,dt(e,t,l,o),t.child}var Iu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uu(e){return{baseLanes:e,cachePool:mh()}}function Hu(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function wp(e,t,l){var o=t.pendingProps,c=!1,p=(t.flags&128)!==0,b;if((b=p)||(b=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),b&&(c=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(c?ni(t):ii(),(e=Ge)?(e=zm(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:hn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},l=rh(e),l.return=t,t.child=l,ct=t,Ge=null)):e=null,e===null)throw Kn(t);return _c(e)?t.lanes=32:t.lanes=536870912,null}var S=o.children;return o=o.fallback,c?(ii(),c=t.mode,S=Zr({mode:"hidden",children:S},c),o=ki(o,c,l,null),S.return=t,o.return=t,S.sibling=o,t.child=S,o=t.child,o.memoizedState=Uu(l),o.childLanes=Hu(e,b,l),t.memoizedState=Iu,xl(null,o)):(ni(t),Vu(t,S))}var A=e.memoizedState;if(A!==null&&(S=A.dehydrated,S!==null)){if(p)t.flags&256?(ni(t),t.flags&=-257,t=Gu(e,t,l)):t.memoizedState!==null?(ii(),t.child=e.child,t.flags|=128,t=null):(ii(),S=o.fallback,c=t.mode,o=Zr({mode:"visible",children:o.children},c),S=ki(S,c,l,null),S.flags|=2,o.return=t,S.return=t,o.sibling=S,t.child=o,Ii(t,e.child,null,l),o=t.child,o.memoizedState=Uu(l),o.childLanes=Hu(e,b,l),t.memoizedState=Iu,t=xl(null,o));else if(ni(t),_c(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var I=b.dgst;b=I,o=Error(r(419)),o.stack="",o.digest=b,pl({value:o,source:null,stack:null}),t=Gu(e,t,l)}else if(Ke||pa(e,t,l,!1),b=(l&e.childLanes)!==0,Ke||b){if(b=He,b!==null&&(o=hd(b,l),o!==0&&o!==A.retryLane))throw A.retryLane=o,Li(e,o),Lt(b,e,o),Mu;yc(S)||lo(),t=Gu(e,t,l)}else yc(S)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ge=Zt(S.nextSibling),ct=t,ke=!0,Zn=null,Qt=!1,e!==null&&uh(t,e),t=Vu(t,o.children),t.flags|=4096);return t}return c?(ii(),S=o.fallback,c=t.mode,A=e.child,I=A.sibling,o=An(A,{mode:"hidden",children:o.children}),o.subtreeFlags=A.subtreeFlags&65011712,I!==null?S=An(I,S):(S=ki(S,c,l,null),S.flags|=2),S.return=t,o.return=t,o.sibling=S,t.child=o,xl(null,o),o=t.child,S=e.child.memoizedState,S===null?S=Uu(l):(c=S.cachePool,c!==null?(A=Fe._currentValue,c=c.parent!==A?{parent:A,pool:A}:c):c=mh(),S={baseLanes:S.baseLanes|l,cachePool:c}),o.memoizedState=S,o.childLanes=Hu(e,b,l),t.memoizedState=Iu,xl(e.child,o)):(ni(t),l=e.child,e=l.sibling,l=An(l,{mode:"visible",children:o.children}),l.return=t,l.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=l,t.memoizedState=null,l)}function Vu(e,t){return t=Zr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Zr(e,t){return e=zt(22,e,null,t),e.lanes=0,e}function Gu(e,t,l){return Ii(t,e.child,null,l),e=Vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lp(e,t,l){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),tu(e.return,t,l)}function Bu(e,t,l,o,c,p){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:c,treeForkCount:p}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=o,b.tail=l,b.tailMode=c,b.treeForkCount=p)}function kp(e,t,l){var o=t.pendingProps,c=o.revealOrder,p=o.tail;o=o.children;var b=Ye.current,S=(b&2)!==0;if(S?(b=b&1|2,t.flags|=128):b&=1,J(Ye,b),dt(e,t,o,l),o=ke?hl:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lp(e,l,t);else if(e.tag===19)Lp(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(l=t.child,c=null;l!==null;)e=l.alternate,e!==null&&Hr(e)===null&&(c=l),l=l.sibling;l=c,l===null?(c=t.child,t.child=null):(c=l.sibling,l.sibling=null),Bu(t,!1,c,l,p,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Hr(e)===null){t.child=c;break}e=c.sibling,c.sibling=l,l=c,c=e}Bu(t,!0,l,null,p,o);break;case"together":Bu(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Rn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ri|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=An(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=An(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ju(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rr(e)))}function Ry(e,t,l){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Wn(t,Fe,e.memoizedState.cache),Ri();break;case 27:case 5:qe(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Wn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,hu(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(ni(t),t.flags|=128,null):(l&t.child.childLanes)!==0?wp(e,t,l):(ni(t),e=Rn(e,t,l),e!==null?e.sibling:null);ni(t);break;case 19:var c=(e.flags&128)!==0;if(o=(l&t.childLanes)!==0,o||(pa(e,t,l,!1),o=(l&t.childLanes)!==0),c){if(o)return kp(e,t,l);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(Ye,Ye.current),o)break;return null;case 22:return t.lanes=0,Sp(e,t,l,t.pendingProps);case 24:Wn(t,Fe,e.memoizedState.cache)}return Rn(e,t,l)}function Rp(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!ju(e,l)&&(t.flags&128)===0)return Ke=!1,Ry(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,ke&&(t.flags&1048576)!==0&&sh(t,hl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Mi(t.elementType),t.type=e,typeof e=="function")Xs(e)?(o=Hi(e,o),t.tag=1,t=Tp(null,t,e,o,l)):(t.tag=0,t=zu(null,t,e,o,l));else{if(e!=null){var c=e.$$typeof;if(c===U){t.tag=11,t=bp(null,t,e,o,l);break e}else if(c===M){t.tag=14,t=yp(null,t,e,o,l);break e}}throw t=le(e)||e,Error(r(306,t,""))}}return t;case 0:return zu(e,t,t.type,t.pendingProps,l);case 1:return o=t.type,c=Hi(o,t.pendingProps),Tp(e,t,o,c,l);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));o=t.pendingProps;var p=t.memoizedState;c=p.element,su(e,t),Sl(t,o,null,l);var b=t.memoizedState;if(o=b.cache,Wn(t,Fe,o),o!==p.cache&&nu(t,[Fe],l,!0),_l(),o=b.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=p,t.memoizedState=p,t.flags&256){t=xp(e,t,o,l);break e}else if(o!==c){c=qt(Error(r(424)),t),pl(c),t=xp(e,t,o,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=Zt(e.firstChild),ct=t,ke=!0,Zn=null,Qt=!0,l=Sh(t,null,o,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ri(),o===c){t=Rn(e,t,l);break e}dt(e,t,o,l)}t=t.child}return t;case 26:return Fr(e,t),e===null?(l=Bm(t.type,null,t.pendingProps,null))?t.memoizedState=l:ke||(l=t.type,e=t.pendingProps,o=ho(de.current).createElement(l),o[ut]=t,o[Et]=e,ht(o,l,e),lt(o),t.stateNode=o):t.memoizedState=Bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qe(t),e===null&&ke&&(o=t.stateNode=Hm(t.type,t.pendingProps,de.current),ct=t,Qt=!0,c=Ge,fi(t.type)?(Sc=c,Ge=Zt(o.firstChild)):Ge=c),dt(e,t,t.pendingProps.children,l),Fr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((c=o=Ge)&&(o=r_(o,t.type,t.pendingProps,Qt),o!==null?(t.stateNode=o,ct=t,Ge=Zt(o.firstChild),Qt=!1,c=!0):c=!1),c||Kn(t)),qe(t),c=t.type,p=t.pendingProps,b=e!==null?e.memoizedProps:null,o=p.children,gc(c,p)?o=null:b!==null&&gc(c,b)&&(t.flags|=32),t.memoizedState!==null&&(c=mu(e,t,Sy,null,null,l),Bl._currentValue=c),Fr(e,t),dt(e,t,o,l),t.child;case 6:return e===null&&ke&&((e=l=Ge)&&(l=o_(l,t.pendingProps,Qt),l!==null?(t.stateNode=l,ct=t,Ge=null,e=!0):e=!1),e||Kn(t)),null;case 13:return wp(e,t,l);case 4:return pe(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ii(t,null,o,l):dt(e,t,o,l),t.child;case 11:return bp(e,t,t.type,t.pendingProps,l);case 7:return dt(e,t,t.pendingProps,l),t.child;case 8:return dt(e,t,t.pendingProps.children,l),t.child;case 12:return dt(e,t,t.pendingProps.children,l),t.child;case 10:return o=t.pendingProps,Wn(t,t.type,o.value),dt(e,t,o.children,l),t.child;case 9:return c=t.type._context,o=t.pendingProps.children,Oi(t),c=ft(c),o=o(c),t.flags|=1,dt(e,t,o,l),t.child;case 14:return yp(e,t,t.type,t.pendingProps,l);case 15:return _p(e,t,t.type,t.pendingProps,l);case 19:return kp(e,t,l);case 31:return ky(e,t,l);case 22:return Sp(e,t,l,t.pendingProps);case 24:return Oi(t),o=ft(Fe),e===null?(c=lu(),c===null&&(c=He,p=iu(),c.pooledCache=p,p.refCount++,p!==null&&(c.pooledCacheLanes|=l),c=p),t.memoizedState={parent:o,cache:c},ou(t),Wn(t,Fe,c)):((e.lanes&l)!==0&&(su(e,t),Sl(t,null,null,l),_l()),c=e.memoizedState,p=t.memoizedState,c.parent!==o?(c={parent:o,cache:o},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Wn(t,Fe,o)):(o=p.cache,Wn(t,Fe,o),o!==c.cache&&nu(t,[Fe],l,!0))),dt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Dn(e){e.flags|=4}function Pu(e,t,l,o,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(im())e.flags|=8192;else throw zi=Mr,ru}else e.flags&=-16777217}function Dp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t))if(im())e.flags|=8192;else throw zi=Mr,ru}function Kr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cd():536870912,e.lanes|=t,xa|=t)}function wl(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(t)for(var c=e.child;c!==null;)l|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)l|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=l,t}function Dy(e,t,l){var o=t.pendingProps;switch(Ks(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return l=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),wn(Fe),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ha(t)?Dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Js())),Be(t),null;case 26:var c=t.type,p=t.memoizedState;return e===null?(Dn(t),p!==null?(Be(t),Dp(t,p)):(Be(t),Pu(t,c,null,o,l))):p?p!==e.memoizedState?(Dn(t),Be(t),Dp(t,p)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Dn(t),Be(t),Pu(t,c,e,o,l)),null;case 27:if(Rt(t),l=de.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Dn(t);else{if(!o){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=te.current,ha(t)?ch(t):(e=Hm(c,o,l),t.stateNode=e,Dn(t))}return Be(t),null;case 5:if(Rt(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Dn(t);else{if(!o){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(p=te.current,ha(t))ch(t);else{var b=ho(de.current);switch(p){case 1:p=b.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:p=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":p=b.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":p=b.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":p=b.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?b.createElement("select",{is:o.is}):b.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?b.createElement(c,{is:o.is}):b.createElement(c)}}p[ut]=t,p[Et]=o;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)p.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=p;e:switch(ht(p,c,o),c){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Dn(t)}}return Be(t),Pu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Dn(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(r(166));if(e=de.current,ha(t)){if(e=t.stateNode,l=t.memoizedProps,o=null,c=ct,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[ut]=t,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||wm(e.nodeValue,l)),e||Kn(t,!0)}else e=ho(e).createTextNode(o),e[ut]=t,t.stateNode=e}return Be(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(o=ha(t),l!==null){if(e===null){if(!o)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ut]=t}else Ri(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else l=Js(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ha(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[ut]=t}else Ri(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),c=!1}else c=Js(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),(t.flags&128)!==0?(t.lanes=l,t):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=t.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==c&&(o.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Kr(t,t.updateQueue),Be(t),null);case 4:return Le(),e===null&&fc(t.stateNode.containerInfo),Be(t),null;case 10:return wn(t.type),Be(t),null;case 19:if(Y(Ye),o=t.memoizedState,o===null)return Be(t),null;if(c=(t.flags&128)!==0,p=o.rendering,p===null)if(c)wl(o,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=Hr(e),p!==null){for(t.flags|=128,wl(o,!1),e=p.updateQueue,t.updateQueue=e,Kr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)lh(l,e),l=l.sibling;return J(Ye,Ye.current&1|2),ke&&Tn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Dt()>no&&(t.flags|=128,c=!0,wl(o,!1),t.lanes=4194304)}else{if(!c)if(e=Hr(p),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Kr(t,e),wl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!ke)return Be(t),null}else 2*Dt()-o.renderingStartTime>no&&l!==536870912&&(t.flags|=128,c=!0,wl(o,!1),t.lanes=4194304);o.isBackwards?(p.sibling=t.child,t.child=p):(e=o.last,e!==null?e.sibling=p:t.child=p,o.last=p)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Dt(),e.sibling=null,l=Ye.current,J(Ye,c?l&1|2:l&1),ke&&Tn(t,o.treeForkCount),e):(Be(t),null);case 22:case 23:return Ut(t),du(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(l&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),l=t.updateQueue,l!==null&&Kr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(t.flags|=2048),e!==null&&Y(Ni),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wn(Fe),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Oy(e,t){switch(Ks(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wn(Fe),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Rt(t),null;case 31:if(t.memoizedState!==null){if(Ut(t),t.alternate===null)throw Error(r(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Ye),null;case 4:return Le(),null;case 10:return wn(t.type),null;case 22:case 23:return Ut(t),du(),e!==null&&Y(Ni),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wn(Fe),null;case 25:return null;default:return null}}function Op(e,t){switch(Ks(t),t.tag){case 3:wn(Fe),Le();break;case 26:case 27:case 5:Rt(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:Y(Ye);break;case 10:wn(t.type);break;case 22:case 23:Ut(t),du(),e!==null&&Y(Ni);break;case 24:wn(Fe)}}function Ll(e,t){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){o=void 0;var p=l.create,b=l.inst;o=p(),b.destroy=o}l=l.next}while(l!==c)}}catch(S){Me(t,t.return,S)}}function ai(e,t,l){try{var o=t.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var p=c.next;o=p;do{if((o.tag&e)===e){var b=o.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,c=t;var A=l,I=S;try{I()}catch(j){Me(c,A,j)}}}o=o.next}while(o!==p)}}catch(j){Me(t,t.return,j)}}function Np(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ch(t,l)}catch(o){Me(e,e.return,o)}}}function Mp(e,t,l){l.props=Hi(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Me(e,t,o)}}function kl(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof l=="function"?e.refCleanup=l(o):l.current=o}}catch(c){Me(e,t,c)}}function mn(e,t){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(c){Me(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(c){Me(e,t,c)}else l.current=null}function zp(e){var t=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(c){Me(e,e.return,c)}}function $u(e,t,l){try{var o=e.stateNode;e_(o,e.type,l,t),o[Et]=t}catch(c){Me(e,e.return,c)}}function Ip(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fi(e.type)||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ip(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&fi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yu(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=En));else if(o!==4&&(o===27&&fi(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Yu(e,t,l),e=e.sibling;e!==null;)Yu(e,t,l),e=e.sibling}function Wr(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(o!==4&&(o===27&&fi(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Wr(e,t,l),e=e.sibling;e!==null;)Wr(e,t,l),e=e.sibling}function Up(e){var t=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ht(t,o,l),t[ut]=e,t[Et]=l}catch(p){Me(e,e.return,p)}}var On=!1,We=!1,Xu=!1,Hp=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Ny(e,t){if(e=e.containerInfo,pc=_o,e=Zd(e),Gs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var c=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var b=0,S=-1,A=-1,I=0,j=0,X=e,H=null;t:for(;;){for(var G;X!==l||c!==0&&X.nodeType!==3||(S=b+c),X!==p||o!==0&&X.nodeType!==3||(A=b+o),X.nodeType===3&&(b+=X.nodeValue.length),(G=X.firstChild)!==null;)H=X,X=G;for(;;){if(X===e)break t;if(H===l&&++I===c&&(S=b),H===p&&++j===o&&(A=b),(G=X.nextSibling)!==null)break;X=H,H=X.parentNode}X=G}l=S===-1||A===-1?null:{start:S,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(mc={focusedElem:e,selectionRange:l},_o=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,p=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)c=e[l],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,l=t,c=p.memoizedProps,p=p.memoizedState,o=l.stateNode;try{var ne=Hi(l.type,c);e=o.getSnapshotBeforeUpdate(ne,p),o.__reactInternalSnapshotBeforeUpdate=e}catch(ce){Me(l,l.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)bc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function Vp(e,t,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:Mn(e,l),o&4&&Ll(5,l);break;case 1:if(Mn(e,l),o&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Me(l,l.return,b)}else{var c=Hi(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Me(l,l.return,b)}}o&64&&Np(l),o&512&&kl(l,l.return);break;case 3:if(Mn(e,l),o&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Ch(e,t)}catch(b){Me(l,l.return,b)}}break;case 27:t===null&&o&4&&Up(l);case 26:case 5:Mn(e,l),t===null&&o&4&&zp(l),o&512&&kl(l,l.return);break;case 12:Mn(e,l);break;case 31:Mn(e,l),o&4&&jp(e,l);break;case 13:Mn(e,l),o&4&&Pp(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=jy.bind(null,l),s_(e,l))));break;case 22:if(o=l.memoizedState!==null||On,!o){t=t!==null&&t.memoizedState!==null||We,c=On;var p=We;On=o,(We=t)&&!p?zn(e,l,(l.subtreeFlags&8772)!==0):Mn(e,l),On=c,We=p}break;case 30:break;default:Mn(e,l)}}function Gp(e){var t=e.alternate;t!==null&&(e.alternate=null,Gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var je=null,At=!1;function Nn(e,t,l){for(l=l.child;l!==null;)Bp(e,t,l),l=l.sibling}function Bp(e,t,l){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Ja,l)}catch{}switch(l.tag){case 26:We||mn(l,t),Nn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:We||mn(l,t);var o=je,c=At;fi(l.type)&&(je=l.stateNode,At=!1),Nn(e,t,l),Hl(l.stateNode),je=o,At=c;break;case 5:We||mn(l,t);case 6:if(o=je,c=At,je=null,Nn(e,t,l),je=o,At=c,je!==null)if(At)try{(je.nodeType===9?je.body:je.nodeName==="HTML"?je.ownerDocument.body:je).removeChild(l.stateNode)}catch(p){Me(l,t,p)}else try{je.removeChild(l.stateNode)}catch(p){Me(l,t,p)}break;case 18:je!==null&&(At?(e=je,Nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ma(e)):Nm(je,l.stateNode));break;case 4:o=je,c=At,je=l.stateNode.containerInfo,At=!0,Nn(e,t,l),je=o,At=c;break;case 0:case 11:case 14:case 15:ai(2,l,t),We||ai(4,l,t),Nn(e,t,l);break;case 1:We||(mn(l,t),o=l.stateNode,typeof o.componentWillUnmount=="function"&&Mp(l,t,o)),Nn(e,t,l);break;case 21:Nn(e,t,l);break;case 22:We=(o=We)||l.memoizedState!==null,Nn(e,t,l),We=o;break;default:Nn(e,t,l)}}function jp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ma(e)}catch(l){Me(t,t.return,l)}}}function Pp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ma(e)}catch(l){Me(t,t.return,l)}}function My(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hp),t;default:throw Error(r(435,e.tag))}}function Jr(e,t){var l=My(e);t.forEach(function(o){if(!l.has(o)){l.add(o);var c=Py.bind(null,e,o);o.then(c,c)}})}function Tt(e,t){var l=t.deletions;if(l!==null)for(var o=0;o<l.length;o++){var c=l[o],p=e,b=t,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(fi(S.type)){je=S.stateNode,At=!1;break e}break;case 5:je=S.stateNode,At=!1;break e;case 3:case 4:je=S.stateNode.containerInfo,At=!0;break e}S=S.return}if(je===null)throw Error(r(160));Bp(p,b,c),je=null,At=!1,p=c.alternate,p!==null&&(p.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)$p(t,e),t=t.sibling}var ln=null;function $p(e,t){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tt(t,e),xt(e),o&4&&(ai(3,e,e.return),Ll(3,e),ai(5,e,e.return));break;case 1:Tt(t,e),xt(e),o&512&&(We||l===null||mn(l,l.return)),o&64&&On&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var c=ln;if(Tt(t,e),xt(e),o&512&&(We||l===null||mn(l,l.return)),o&4){var p=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":p=c.getElementsByTagName("title")[0],(!p||p[nl]||p[ut]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=c.createElement(o),c.head.insertBefore(p,c.querySelector("head > title"))),ht(p,o,l),p[ut]=e,lt(p),o=p;break e;case"link":var b=$m("link","href",c).get(o+(l.href||""));if(b){for(var S=0;S<b.length;S++)if(p=b[S],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(S,1);break t}}p=c.createElement(o),ht(p,o,l),c.head.appendChild(p);break;case"meta":if(b=$m("meta","content",c).get(o+(l.content||""))){for(S=0;S<b.length;S++)if(p=b[S],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(S,1);break t}}p=c.createElement(o),ht(p,o,l),c.head.appendChild(p);break;default:throw Error(r(468,o))}p[ut]=e,lt(p),o=p}e.stateNode=o}else qm(c,e.type,e.stateNode);else e.stateNode=Pm(c,o,e.memoizedProps);else p!==o?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,o===null?qm(c,e.type,e.stateNode):Pm(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&$u(e,e.memoizedProps,l.memoizedProps)}break;case 27:Tt(t,e),xt(e),o&512&&(We||l===null||mn(l,l.return)),l!==null&&o&4&&$u(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Tt(t,e),xt(e),o&512&&(We||l===null||mn(l,l.return)),e.flags&32){c=e.stateNode;try{ia(c,"")}catch(ne){Me(e,e.return,ne)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,$u(e,c,l!==null?l.memoizedProps:c)),o&1024&&(Xu=!0);break;case 6:if(Tt(t,e),xt(e),o&4){if(e.stateNode===null)throw Error(r(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(ne){Me(e,e.return,ne)}}break;case 3:if(go=null,c=ln,ln=po(t.containerInfo),Tt(t,e),ln=c,xt(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{Ma(t.containerInfo)}catch(ne){Me(e,e.return,ne)}Xu&&(Xu=!1,qp(e));break;case 4:o=ln,ln=po(e.stateNode.containerInfo),Tt(t,e),xt(e),ln=o;break;case 12:Tt(t,e),xt(e);break;case 31:Tt(t,e),xt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Jr(e,o)));break;case 13:Tt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(to=Dt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Jr(e,o)));break;case 22:c=e.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,I=On,j=We;if(On=I||c,We=j||A,Tt(t,e),We=j,On=I,xt(e),o&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(l===null||A||On||We||Vi(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(p=A.stateNode,c)b=p.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=A.stateNode;var X=A.memoizedProps.style,H=X!=null&&X.hasOwnProperty("display")?X.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ne){Me(A,A.return,ne)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=c?"":A.memoizedProps}catch(ne){Me(A,A.return,ne)}}}else if(t.tag===18){if(l===null){A=t;try{var G=A.stateNode;c?Mm(G,!0):Mm(A.stateNode,!1)}catch(ne){Me(A,A.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,Jr(e,l))));break;case 19:Tt(t,e),xt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Jr(e,o)));break;case 30:break;case 21:break;default:Tt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var l,o=e.return;o!==null;){if(Ip(o)){l=o;break}o=o.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var c=l.stateNode,p=qu(e);Wr(e,p,c);break;case 5:var b=l.stateNode;l.flags&32&&(ia(b,""),l.flags&=-33);var S=qu(e);Wr(e,S,b);break;case 3:case 4:var A=l.stateNode.containerInfo,I=qu(e);Yu(e,I,A);break;default:throw Error(r(161))}}catch(j){Me(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Mn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vp(e,t.alternate,t),t=t.sibling}function Vi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ai(4,t,t.return),Vi(t);break;case 1:mn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Mp(t,t.return,l),Vi(t);break;case 27:Hl(t.stateNode);case 26:case 5:mn(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function zn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,c=e,p=t,b=p.flags;switch(p.tag){case 0:case 11:case 15:zn(c,p,l),Ll(4,p);break;case 1:if(zn(c,p,l),o=p,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(I){Me(o,o.return,I)}if(o=p,c=o.updateQueue,c!==null){var S=o.stateNode;try{var A=c.shared.hiddenCallbacks;if(A!==null)for(c.shared.hiddenCallbacks=null,c=0;c<A.length;c++)Eh(A[c],S)}catch(I){Me(o,o.return,I)}}l&&b&64&&Np(p),kl(p,p.return);break;case 27:Up(p);case 26:case 5:zn(c,p,l),l&&o===null&&b&4&&zp(p),kl(p,p.return);break;case 12:zn(c,p,l);break;case 31:zn(c,p,l),l&&b&4&&jp(c,p);break;case 13:zn(c,p,l),l&&b&4&&Pp(c,p);break;case 22:p.memoizedState===null&&zn(c,p,l),kl(p,p.return);break;case 30:break;default:zn(c,p,l)}t=t.sibling}}function Qu(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ml(l))}function Fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ml(e))}function rn(e,t,l,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yp(e,t,l,o),t=t.sibling}function Yp(e,t,l,o){var c=t.flags;switch(t.tag){case 0:case 11:case 15:rn(e,t,l,o),c&2048&&Ll(9,t);break;case 1:rn(e,t,l,o);break;case 3:rn(e,t,l,o),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ml(e)));break;case 12:if(c&2048){rn(e,t,l,o),e=t.stateNode;try{var p=t.memoizedProps,b=p.id,S=p.onPostCommit;typeof S=="function"&&S(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Me(t,t.return,A)}}else rn(e,t,l,o);break;case 31:rn(e,t,l,o);break;case 13:rn(e,t,l,o);break;case 23:break;case 22:p=t.stateNode,b=t.alternate,t.memoizedState!==null?p._visibility&2?rn(e,t,l,o):Rl(e,t):p._visibility&2?rn(e,t,l,o):(p._visibility|=2,Ca(e,t,l,o,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Qu(b,t);break;case 24:rn(e,t,l,o),c&2048&&Fu(t.alternate,t);break;default:rn(e,t,l,o)}}function Ca(e,t,l,o,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var p=e,b=t,S=l,A=o,I=b.flags;switch(b.tag){case 0:case 11:case 15:Ca(p,b,S,A,c),Ll(8,b);break;case 23:break;case 22:var j=b.stateNode;b.memoizedState!==null?j._visibility&2?Ca(p,b,S,A,c):Rl(p,b):(j._visibility|=2,Ca(p,b,S,A,c)),c&&I&2048&&Qu(b.alternate,b);break;case 24:Ca(p,b,S,A,c),c&&I&2048&&Fu(b.alternate,b);break;default:Ca(p,b,S,A,c)}t=t.sibling}}function Rl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,o=t,c=o.flags;switch(o.tag){case 22:Rl(l,o),c&2048&&Qu(o.alternate,o);break;case 24:Rl(l,o),c&2048&&Fu(o.alternate,o);break;default:Rl(l,o)}t=t.sibling}}var Dl=8192;function Aa(e,t,l){if(e.subtreeFlags&Dl)for(e=e.child;e!==null;)Xp(e,t,l),e=e.sibling}function Xp(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&Dl&&e.memoizedState!==null&&__(l,ln,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var o=ln;ln=po(e.stateNode.containerInfo),Aa(e,t,l),ln=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Dl,Dl=16777216,Aa(e,t,l),Dl=o):Aa(e,t,l));break;default:Aa(e,t,l)}}function Qp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ol(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];rt=o,Zp(o,e)}Qp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fp(e),e=e.sibling}function Fp(e){switch(e.tag){case 0:case 11:case 15:Ol(e),e.flags&2048&&ai(9,e,e.return);break;case 3:Ol(e);break;case 12:Ol(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,eo(e)):Ol(e);break;default:Ol(e)}}function eo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];rt=o,Zp(o,e)}Qp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ai(8,t,t.return),eo(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,eo(t));break;default:eo(t)}e=e.sibling}}function Zp(e,t){for(;rt!==null;){var l=rt;switch(l.tag){case 0:case 11:case 15:ai(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:ml(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,rt=o;else e:for(l=e;rt!==null;){o=rt;var c=o.sibling,p=o.return;if(Gp(o),o===l){rt=null;break e}if(c!==null){c.return=p,rt=c;break e}rt=p}}}var zy={getCacheForType:function(e){var t=ft(Fe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ft(Fe).controller.signal}},Iy=typeof WeakMap=="function"?WeakMap:Map,Oe=0,He=null,Se=null,Ae=0,Ne=0,Ht=null,li=!1,Ta=!1,Zu=!1,In=0,$e=0,ri=0,Gi=0,Ku=0,Vt=0,xa=0,Nl=null,wt=null,Wu=!1,to=0,Kp=0,no=1/0,io=null,oi=null,tt=0,si=null,wa=null,Un=0,Ju=0,ec=null,Wp=null,Ml=0,tc=null;function Gt(){return(Oe&2)!==0&&Ae!==0?Ae&-Ae:B.T!==null?oc():pd()}function Jp(){if(Vt===0)if((Ae&536870912)===0||ke){var e=fr;fr<<=1,(fr&3932160)===0&&(fr=262144),Vt=e}else Vt=536870912;return e=It.current,e!==null&&(e.flags|=32),Vt}function Lt(e,t,l){(e===He&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(La(e,0),ui(e,Ae,Vt,!1)),tl(e,l),((Oe&2)===0||e!==He)&&(e===He&&((Oe&2)===0&&(Gi|=l),$e===4&&ui(e,Ae,Vt,!1)),gn(e))}function em(e,t,l){if((Oe&6)!==0)throw Error(r(327));var o=!l&&(t&127)===0&&(t&e.expiredLanes)===0||el(e,t),c=o?Vy(e,t):ic(e,t,!0),p=o;do{if(c===0){Ta&&!o&&ui(e,t,0,!1);break}else{if(l=e.current.alternate,p&&!Uy(l)){c=ic(e,t,!1),p=!1;continue}if(c===2){if(p=t,e.errorRecoveryDisabledLanes&p)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var S=e;c=Nl;var A=S.current.memoizedState.isDehydrated;if(A&&(La(S,b).flags|=256),b=ic(S,b,!1),b!==2){if(Zu&&!A){S.errorRecoveryDisabledLanes|=p,Gi|=p,c=4;break e}p=wt,wt=c,p!==null&&(wt===null?wt=p:wt.push.apply(wt,p))}c=b}if(p=!1,c!==2)continue}}if(c===1){La(e,0),ui(e,t,0,!0);break}e:{switch(o=e,p=c,p){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ui(o,t,Vt,!li);break e;case 2:wt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=to+300-Dt(),10<c)){if(ui(o,t,Vt,!li),hr(o,0,!0)!==0)break e;Un=t,o.timeoutHandle=Dm(tm.bind(null,o,l,wt,io,Wu,t,Vt,Gi,xa,li,p,"Throttled",-0,0),c);break e}tm(o,l,wt,io,Wu,t,Vt,Gi,xa,li,p,null,-0,0)}}break}while(!0);gn(e)}function tm(e,t,l,o,c,p,b,S,A,I,j,X,H,G){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Xp(t,p,X);var ne=(p&62914560)===p?to-Dt():(p&4194048)===p?Kp-Dt():0;if(ne=S_(X,ne),ne!==null){Un=p,e.cancelPendingCommit=ne(um.bind(null,e,t,p,l,o,c,b,S,A,j,X,null,H,G)),ui(e,p,b,!I);return}}um(e,t,p,l,o,c,b,S,A)}function Uy(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var c=l[o],p=c.getSnapshot;c=c.value;try{if(!Mt(p(),c))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ui(e,t,l,o){t&=~Ku,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var c=t;0<c;){var p=31-Nt(c),b=1<<p;o[p]=-1,c&=~b}l!==0&&fd(e,l,t)}function ao(){return(Oe&6)===0?(zl(0),!1):!0}function nc(){if(Se!==null){if(Ne===0)var e=Se.return;else e=Se,xn=Di=null,bu(e),ba=null,vl=0,e=Se;for(;e!==null;)Op(e.alternate,e),e=e.return;Se=null}}function La(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,i_(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Un=0,nc(),He=e,Se=l=An(e.current,null),Ae=t,Ne=0,Ht=null,li=!1,Ta=el(e,t),Zu=!1,xa=Vt=Ku=Gi=ri=$e=0,wt=Nl=null,Wu=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var c=31-Nt(o),p=1<<c;t|=e[c],o&=~p}return In=t,Tr(),l}function nm(e,t){ve=null,B.H=Tl,t===va||t===Nr?(t=bh(),Ne=3):t===ru?(t=bh(),Ne=4):Ne=t===Mu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ht=t,Se===null&&($e=1,Xr(e,qt(t,e.current)))}function im(){var e=It.current;return e===null?!0:(Ae&4194048)===Ae?Ft===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Ft:!1}function am(){var e=B.H;return B.H=Tl,e===null?Tl:e}function lm(){var e=B.A;return B.A=zy,e}function lo(){$e=4,li||(Ae&4194048)!==Ae&&It.current!==null||(Ta=!0),(ri&134217727)===0&&(Gi&134217727)===0||He===null||ui(He,Ae,Vt,!1)}function ic(e,t,l){var o=Oe;Oe|=2;var c=am(),p=lm();(He!==e||Ae!==t)&&(io=null,La(e,t)),t=!1;var b=$e;e:do try{if(Ne!==0&&Se!==null){var S=Se,A=Ht;switch(Ne){case 8:nc(),b=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(t=!0);var I=Ne;if(Ne=0,Ht=null,ka(e,S,A,I),l&&Ta){b=0;break e}break;default:I=Ne,Ne=0,Ht=null,ka(e,S,A,I)}}Hy(),b=$e;break}catch(j){nm(e,j)}while(!0);return t&&e.shellSuspendCounter++,xn=Di=null,Oe=o,B.H=c,B.A=p,Se===null&&(He=null,Ae=0,Tr()),b}function Hy(){for(;Se!==null;)rm(Se)}function Vy(e,t){var l=Oe;Oe|=2;var o=am(),c=lm();He!==e||Ae!==t?(io=null,no=Dt()+500,La(e,t)):Ta=el(e,t);e:do try{if(Ne!==0&&Se!==null){t=Se;var p=Ht;t:switch(Ne){case 1:Ne=0,Ht=null,ka(e,t,p,1);break;case 2:case 9:if(gh(p)){Ne=0,Ht=null,om(t);break}t=function(){Ne!==2&&Ne!==9||He!==e||(Ne=7),gn(e)},p.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:gh(p)?(Ne=0,Ht=null,om(t)):(Ne=0,Ht=null,ka(e,t,p,7));break;case 5:var b=null;switch(Se.tag){case 26:b=Se.memoizedState;case 5:case 27:var S=Se;if(b?Ym(b):S.stateNode.complete){Ne=0,Ht=null;var A=S.sibling;if(A!==null)Se=A;else{var I=S.return;I!==null?(Se=I,ro(I)):Se=null}break t}}Ne=0,Ht=null,ka(e,t,p,5);break;case 6:Ne=0,Ht=null,ka(e,t,p,6);break;case 8:nc(),$e=6;break e;default:throw Error(r(462))}}Gy();break}catch(j){nm(e,j)}while(!0);return xn=Di=null,B.H=o,B.A=c,Oe=l,Se!==null?0:(He=null,Ae=0,Tr(),$e)}function Gy(){for(;Se!==null&&!ub();)rm(Se)}function rm(e){var t=Rp(e.alternate,e,In);e.memoizedProps=e.pendingProps,t===null?ro(e):Se=t}function om(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ap(l,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=Ap(l,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:bu(t);default:Op(l,t),t=Se=lh(t,In),t=Rp(l,t,In)}e.memoizedProps=e.pendingProps,t===null?ro(e):Se=t}function ka(e,t,l,o){xn=Di=null,bu(t),ba=null,vl=0;var c=t.return;try{if(Ly(e,c,t,l,Ae)){$e=1,Xr(e,qt(l,e.current)),Se=null;return}}catch(p){if(c!==null)throw Se=c,p;$e=1,Xr(e,qt(l,e.current)),Se=null;return}t.flags&32768?(ke||o===1?e=!0:Ta||(Ae&536870912)!==0?e=!1:(li=e=!0,(o===2||o===9||o===3||o===6)&&(o=It.current,o!==null&&o.tag===13&&(o.flags|=16384))),sm(t,e)):ro(t)}function ro(e){var t=e;do{if((t.flags&32768)!==0){sm(t,li);return}e=t.return;var l=Dy(t.alternate,t,In);if(l!==null){Se=l;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);$e===0&&($e=5)}function sm(e,t){do{var l=Oy(e.alternate,e);if(l!==null){l.flags&=32767,Se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=l}while(e!==null);$e=6,Se=null}function um(e,t,l,o,c,p,b,S,A){e.cancelPendingCommit=null;do oo();while(tt!==0);if((Oe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(p=t.lanes|t.childLanes,p|=qs,yb(e,l,p,b,S,A),e===He&&(Se=He=null,Ae=0),wa=t,si=e,Un=l,Ju=p,ec=c,Wp=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$y(ur,function(){return pm(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=B.T,B.T=null,c=Q.p,Q.p=2,b=Oe,Oe|=4;try{Ny(e,t,l)}finally{Oe=b,Q.p=c,B.T=o}}tt=1,cm(),fm(),dm()}}function cm(){if(tt===1){tt=0;var e=si,t=wa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var o=Q.p;Q.p=2;var c=Oe;Oe|=4;try{$p(t,e);var p=mc,b=Zd(e.containerInfo),S=p.focusedElem,A=p.selectionRange;if(b!==S&&S&&S.ownerDocument&&Fd(S.ownerDocument.documentElement,S)){if(A!==null&&Gs(S)){var I=A.start,j=A.end;if(j===void 0&&(j=I),"selectionStart"in S)S.selectionStart=I,S.selectionEnd=Math.min(j,S.value.length);else{var X=S.ownerDocument||document,H=X&&X.defaultView||window;if(H.getSelection){var G=H.getSelection(),ne=S.textContent.length,ce=Math.min(A.start,ne),Ue=A.end===void 0?ce:Math.min(A.end,ne);!G.extend&&ce>Ue&&(b=Ue,Ue=ce,ce=b);var O=Qd(S,ce),k=Qd(S,Ue);if(O&&k&&(G.rangeCount!==1||G.anchorNode!==O.node||G.anchorOffset!==O.offset||G.focusNode!==k.node||G.focusOffset!==k.offset)){var z=X.createRange();z.setStart(O.node,O.offset),G.removeAllRanges(),ce>Ue?(G.addRange(z),G.extend(k.node,k.offset)):(z.setEnd(k.node,k.offset),G.addRange(z))}}}}for(X=[],G=S;G=G.parentNode;)G.nodeType===1&&X.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<X.length;S++){var $=X[S];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}_o=!!pc,mc=pc=null}finally{Oe=c,Q.p=o,B.T=l}}e.current=t,tt=2}}function fm(){if(tt===2){tt=0;var e=si,t=wa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var o=Q.p;Q.p=2;var c=Oe;Oe|=4;try{Vp(e,t.alternate,t)}finally{Oe=c,Q.p=o,B.T=l}}tt=3}}function dm(){if(tt===4||tt===3){tt=0,cb();var e=si,t=wa,l=Un,o=Wp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,wa=si=null,hm(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(oi=null),Ss(l),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Ja,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=B.T,c=Q.p,Q.p=2,B.T=null;try{for(var p=e.onRecoverableError,b=0;b<o.length;b++){var S=o[b];p(S.value,{componentStack:S.stack})}}finally{B.T=t,Q.p=c}}(Un&3)!==0&&oo(),gn(e),c=e.pendingLanes,(l&261930)!==0&&(c&42)!==0?e===tc?Ml++:(Ml=0,tc=e):Ml=0,zl(0)}}function hm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ml(t)))}function oo(){return cm(),fm(),dm(),pm()}function pm(){if(tt!==5)return!1;var e=si,t=Ju;Ju=0;var l=Ss(Un),o=B.T,c=Q.p;try{Q.p=32>l?32:l,B.T=null,l=ec,ec=null;var p=si,b=Un;if(tt=0,wa=si=null,Un=0,(Oe&6)!==0)throw Error(r(331));var S=Oe;if(Oe|=4,Fp(p.current),Yp(p,p.current,b,l),Oe=S,zl(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Ja,p)}catch{}return!0}finally{Q.p=c,B.T=o,hm(e,t)}}function mm(e,t,l){t=qt(l,t),t=Nu(e.stateNode,t,2),e=ti(e,t,2),e!==null&&(tl(e,2),gn(e))}function Me(e,t,l){if(e.tag===3)mm(e,e,l);else for(;t!==null;){if(t.tag===3){mm(t,e,l);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(oi===null||!oi.has(o))){e=qt(l,e),l=gp(2),o=ti(t,l,2),o!==null&&(vp(l,o,t,e),tl(o,2),gn(o));break}}t=t.return}}function ac(e,t,l){var o=e.pingCache;if(o===null){o=e.pingCache=new Iy;var c=new Set;o.set(t,c)}else c=o.get(t),c===void 0&&(c=new Set,o.set(t,c));c.has(l)||(Zu=!0,c.add(l),e=By.bind(null,e,t,l),t.then(e,e))}function By(e,t,l){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(Ae&l)===l&&($e===4||$e===3&&(Ae&62914560)===Ae&&300>Dt()-to?(Oe&2)===0&&La(e,0):Ku|=l,xa===Ae&&(xa=0)),gn(e)}function gm(e,t){t===0&&(t=cd()),e=Li(e,t),e!==null&&(tl(e,t),gn(e))}function jy(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),gm(e,l)}function Py(e,t){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(l=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(t),gm(e,l)}function $y(e,t){return vs(e,t)}var so=null,Ra=null,lc=!1,uo=!1,rc=!1,ci=0;function gn(e){e!==Ra&&e.next===null&&(Ra===null?so=Ra=e:Ra=Ra.next=e),uo=!0,lc||(lc=!0,Yy())}function zl(e,t){if(!rc&&uo){rc=!0;do for(var l=!1,o=so;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var p=0;else{var b=o.suspendedLanes,S=o.pingedLanes;p=(1<<31-Nt(42|e)+1)-1,p&=c&~(b&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,_m(o,p))}else p=Ae,p=hr(o,o===He?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||el(o,p)||(l=!0,_m(o,p));o=o.next}while(l);rc=!1}}function qy(){vm()}function vm(){uo=lc=!1;var e=0;ci!==0&&n_()&&(e=ci);for(var t=Dt(),l=null,o=so;o!==null;){var c=o.next,p=bm(o,t);p===0?(o.next=null,l===null?so=c:l.next=c,c===null&&(Ra=l)):(l=o,(e!==0||(p&3)!==0)&&(uo=!0)),o=c}tt!==0&&tt!==5||zl(e),ci!==0&&(ci=0)}function bm(e,t){for(var l=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var b=31-Nt(p),S=1<<b,A=c[b];A===-1?((S&l)===0||(S&o)!==0)&&(c[b]=bb(S,t)):A<=t&&(e.expiredLanes|=S),p&=~S}if(t=He,l=Ae,l=hr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&bs(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||el(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(o!==null&&bs(o),Ss(l)){case 2:case 8:l=sd;break;case 32:l=ur;break;case 268435456:l=ud;break;default:l=ur}return o=ym.bind(null,e),l=vs(l,o),e.callbackPriority=t,e.callbackNode=l,t}return o!==null&&o!==null&&bs(o),e.callbackPriority=2,e.callbackNode=null,2}function ym(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(oo()&&e.callbackNode!==l)return null;var o=Ae;return o=hr(e,e===He?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(em(e,o,t),bm(e,Dt()),e.callbackNode!=null&&e.callbackNode===l?ym.bind(null,e):null)}function _m(e,t){if(oo())return null;em(e,t,!0)}function Yy(){a_(function(){(Oe&6)!==0?vs(od,qy):vm()})}function oc(){if(ci===0){var e=ma;e===0&&(e=cr,cr<<=1,(cr&261888)===0&&(cr=256)),ci=e}return ci}function Sm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vr(""+e)}function Em(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Xy(e,t,l,o,c){if(t==="submit"&&l&&l.stateNode===c){var p=Sm((c[Et]||null).action),b=o.submitter;b&&(t=(t=b[Et]||null)?Sm(t.formAction):b.getAttribute("formAction"),t!==null&&(p=t,b=null));var S=new Sr("action","action",null,o,c);e.push({event:S,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ci!==0){var A=b?Em(c,b):new FormData(c);wu(l,{pending:!0,data:A,method:c.method,action:p},null,A)}}else typeof p=="function"&&(S.preventDefault(),A=b?Em(c,b):new FormData(c),wu(l,{pending:!0,data:A,method:c.method,action:p},p,A))},currentTarget:c}]})}}for(var sc=0;sc<$s.length;sc++){var uc=$s[sc],Qy=uc.toLowerCase(),Fy=uc[0].toUpperCase()+uc.slice(1);an(Qy,"on"+Fy)}an(Jd,"onAnimationEnd"),an(eh,"onAnimationIteration"),an(th,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(fy,"onTransitionRun"),an(dy,"onTransitionStart"),an(hy,"onTransitionCancel"),an(nh,"onTransitionEnd"),ta("onMouseEnter",["mouseout","mouseover"]),ta("onMouseLeave",["mouseout","mouseover"]),ta("onPointerEnter",["pointerout","pointerover"]),ta("onPointerLeave",["pointerout","pointerover"]),Ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Il="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Il));function Cm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],c=o.event;o=o.listeners;e:{var p=void 0;if(t)for(var b=o.length-1;0<=b;b--){var S=o[b],A=S.instance,I=S.currentTarget;if(S=S.listener,A!==p&&c.isPropagationStopped())break e;p=S,c.currentTarget=I;try{p(c)}catch(j){Ar(j)}c.currentTarget=null,p=A}else for(b=0;b<o.length;b++){if(S=o[b],A=S.instance,I=S.currentTarget,S=S.listener,A!==p&&c.isPropagationStopped())break e;p=S,c.currentTarget=I;try{p(c)}catch(j){Ar(j)}c.currentTarget=null,p=A}}}}function Ee(e,t){var l=t[Es];l===void 0&&(l=t[Es]=new Set);var o=e+"__bubble";l.has(o)||(Am(t,e,2,!1),l.add(o))}function cc(e,t,l){var o=0;t&&(o|=4),Am(l,e,o,t)}var co="_reactListening"+Math.random().toString(36).slice(2);function fc(e){if(!e[co]){e[co]=!0,vd.forEach(function(l){l!=="selectionchange"&&(Zy.has(l)||cc(l,!1,e),cc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[co]||(t[co]=!0,cc("selectionchange",!1,t))}}function Am(e,t,l,o){switch(Jm(t)){case 2:var c=A_;break;case 8:c=T_;break;default:c=xc}l=c.bind(null,t,l,e),c=void 0,!Ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(t,l,{capture:!0,passive:c}):e.addEventListener(t,l,!0):c!==void 0?e.addEventListener(t,l,{passive:c}):e.addEventListener(t,l,!1)}function dc(e,t,l,o,c){var p=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var S=o.stateNode.containerInfo;if(S===c)break;if(b===4)for(b=o.return;b!==null;){var A=b.tag;if((A===3||A===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;S!==null;){if(b=Wi(S),b===null)return;if(A=b.tag,A===5||A===6||A===26||A===27){o=p=b;continue e}S=S.parentNode}}o=o.return}kd(function(){var I=p,j=ks(l),X=[];e:{var H=ih.get(e);if(H!==void 0){var G=Sr,ne=e;switch(e){case"keypress":if(yr(l)===0)break e;case"keydown":case"keyup":G=Pb;break;case"focusin":ne="focus",G=zs;break;case"focusout":ne="blur",G=zs;break;case"beforeblur":case"afterblur":G=zs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Db;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Yb;break;case Jd:case eh:case th:G=Mb;break;case nh:G=Qb;break;case"scroll":case"scrollend":G=kb;break;case"wheel":G=Zb;break;case"copy":case"cut":case"paste":G=Ib;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Md;break;case"toggle":case"beforetoggle":G=Wb}var ce=(t&4)!==0,Ue=!ce&&(e==="scroll"||e==="scrollend"),O=ce?H!==null?H+"Capture":null:H;ce=[];for(var k=I,z;k!==null;){var $=k;if(z=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||z===null||O===null||($=al(k,O),$!=null&&ce.push(Ul(k,$,z))),Ue)break;k=k.return}0<ce.length&&(H=new G(H,ne,null,l,j),X.push({event:H,listeners:ce}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",H&&l!==Ls&&(ne=l.relatedTarget||l.fromElement)&&(Wi(ne)||ne[Ki]))break e;if((G||H)&&(H=j.window===j?j:(H=j.ownerDocument)?H.defaultView||H.parentWindow:window,G?(ne=l.relatedTarget||l.toElement,G=I,ne=ne?Wi(ne):null,ne!==null&&(Ue=u(ne),ce=ne.tag,ne!==Ue||ce!==5&&ce!==27&&ce!==6)&&(ne=null)):(G=null,ne=I),G!==ne)){if(ce=Od,$="onMouseLeave",O="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Md,$="onPointerLeave",O="onPointerEnter",k="pointer"),Ue=G==null?H:il(G),z=ne==null?H:il(ne),H=new ce($,k+"leave",G,l,j),H.target=Ue,H.relatedTarget=z,$=null,Wi(j)===I&&(ce=new ce(O,k+"enter",ne,l,j),ce.target=z,ce.relatedTarget=Ue,$=ce),Ue=$,G&&ne)t:{for(ce=Ky,O=G,k=ne,z=0,$=O;$;$=ce($))z++;$=0;for(var oe=k;oe;oe=ce(oe))$++;for(;0<z-$;)O=ce(O),z--;for(;0<$-z;)k=ce(k),$--;for(;z--;){if(O===k||k!==null&&O===k.alternate){ce=O;break t}O=ce(O),k=ce(k)}ce=null}else ce=null;G!==null&&Tm(X,H,G,ce,!1),ne!==null&&Ue!==null&&Tm(X,Ue,ne,ce,!0)}}e:{if(H=I?il(I):window,G=H.nodeName&&H.nodeName.toLowerCase(),G==="select"||G==="input"&&H.type==="file")var Re=jd;else if(Gd(H))if(Pd)Re=sy;else{Re=ry;var ie=ly}else G=H.nodeName,!G||G.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?I&&ws(I.elementType)&&(Re=jd):Re=oy;if(Re&&(Re=Re(e,I))){Bd(X,Re,l,j);break e}ie&&ie(e,H,I),e==="focusout"&&I&&H.type==="number"&&I.memoizedProps.value!=null&&xs(H,"number",H.value)}switch(ie=I?il(I):window,e){case"focusin":(Gd(ie)||ie.contentEditable==="true")&&(oa=ie,Bs=I,dl=null);break;case"focusout":dl=Bs=oa=null;break;case"mousedown":js=!0;break;case"contextmenu":case"mouseup":case"dragend":js=!1,Kd(X,l,j);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":Kd(X,l,j)}var be;if(Us)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else ra?Hd(e,l)&&(Te="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Te="onCompositionStart");Te&&(zd&&l.locale!=="ko"&&(ra||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&ra&&(be=Rd()):(Qn=j,Os="value"in Qn?Qn.value:Qn.textContent,ra=!0)),ie=fo(I,Te),0<ie.length&&(Te=new Nd(Te,e,null,l,j),X.push({event:Te,listeners:ie}),be?Te.data=be:(be=Vd(l),be!==null&&(Te.data=be)))),(be=ey?ty(e,l):ny(e,l))&&(Te=fo(I,"onBeforeInput"),0<Te.length&&(ie=new Nd("onBeforeInput","beforeinput",null,l,j),X.push({event:ie,listeners:Te}),ie.data=be)),Xy(X,e,I,l,j)}Cm(X,t)})}function Ul(e,t,l){return{instance:e,listener:t,currentTarget:l}}function fo(e,t){for(var l=t+"Capture",o=[];e!==null;){var c=e,p=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||p===null||(c=al(e,l),c!=null&&o.unshift(Ul(e,c,p)),c=al(e,t),c!=null&&o.push(Ul(e,c,p))),e.tag===3)return o;e=e.return}return[]}function Ky(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tm(e,t,l,o,c){for(var p=t._reactName,b=[];l!==null&&l!==o;){var S=l,A=S.alternate,I=S.stateNode;if(S=S.tag,A!==null&&A===o)break;S!==5&&S!==26&&S!==27||I===null||(A=I,c?(I=al(l,p),I!=null&&b.unshift(Ul(l,I,A))):c||(I=al(l,p),I!=null&&b.push(Ul(l,I,A)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var Wy=/\r\n?/g,Jy=/\u0000|\uFFFD/g;function xm(e){return(typeof e=="string"?e:""+e).replace(Wy,`
50
- `).replace(Jy,"")}function wm(e,t){return t=xm(t),xm(e)===t}function Ie(e,t,l,o,c,p){switch(l){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||ia(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&ia(e,""+o);break;case"className":mr(e,"class",o);break;case"tabIndex":mr(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":mr(e,l,o);break;case"style":wd(e,o,p);break;case"data":if(t!=="object"){mr(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=vr(""+o),e.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(t!=="input"&&Ie(e,t,"name",c.name,c,null),Ie(e,t,"formEncType",c.formEncType,c,null),Ie(e,t,"formMethod",c.formMethod,c,null),Ie(e,t,"formTarget",c.formTarget,c,null)):(Ie(e,t,"encType",c.encType,c,null),Ie(e,t,"method",c.method,c,null),Ie(e,t,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=vr(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=En);break;case"onScroll":o!=null&&Ee("scroll",e);break;case"onScrollEnd":o!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}l=vr(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""+o):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),pr(e,"popover",o);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":pr(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=wb.get(l)||l,pr(e,l,o))}}function hc(e,t,l,o,c,p){switch(l){case"style":wd(e,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof o=="string"?ia(e,o):(typeof o=="number"||typeof o=="bigint")&&ia(e,""+o);break;case"onScroll":o!=null&&Ee("scroll",e);break;case"onScrollEnd":o!=null&&Ee("scrollend",e);break;case"onClick":o!=null&&(e.onclick=En);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bd.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(c=l.endsWith("Capture"),t=l.slice(2,c?l.length-7:void 0),p=e[Et]||null,p=p!=null?p[l]:null,typeof p=="function"&&e.removeEventListener(t,p,c),typeof o=="function")){typeof p!="function"&&p!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,o,c);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):pr(e,l,o)}}}function ht(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var o=!1,c=!1,p;for(p in l)if(l.hasOwnProperty(p)){var b=l[p];if(b!=null)switch(p){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ie(e,t,p,b,l,null)}}c&&Ie(e,t,"srcSet",l.srcSet,l,null),o&&Ie(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var S=p=b=c=null,A=null,I=null;for(o in l)if(l.hasOwnProperty(o)){var j=l[o];if(j!=null)switch(o){case"name":c=j;break;case"type":b=j;break;case"checked":A=j;break;case"defaultChecked":I=j;break;case"value":p=j;break;case"defaultValue":S=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:Ie(e,t,o,j,l,null)}}Cd(e,p,S,A,I,b,c,!1);return;case"select":Ee("invalid",e),o=b=p=null;for(c in l)if(l.hasOwnProperty(c)&&(S=l[c],S!=null))switch(c){case"value":p=S;break;case"defaultValue":b=S;break;case"multiple":o=S;default:Ie(e,t,c,S,l,null)}t=p,l=b,e.multiple=!!o,t!=null?na(e,!!o,t,!1):l!=null&&na(e,!!o,l,!0);return;case"textarea":Ee("invalid",e),p=c=o=null;for(b in l)if(l.hasOwnProperty(b)&&(S=l[b],S!=null))switch(b){case"value":o=S;break;case"defaultValue":c=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Ie(e,t,b,S,l,null)}Td(e,o,c,p);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(o=l[A],o!=null))switch(A){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ie(e,t,A,o,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(o=0;o<Il.length;o++)Ee(Il[o],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in l)if(l.hasOwnProperty(I)&&(o=l[I],o!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ie(e,t,I,o,l,null)}return;default:if(ws(t)){for(j in l)l.hasOwnProperty(j)&&(o=l[j],o!==void 0&&hc(e,t,j,o,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(o=l[S],o!=null&&Ie(e,t,S,o,l,null))}function e_(e,t,l,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,p=null,b=null,S=null,A=null,I=null,j=null;for(G in l){var X=l[G];if(l.hasOwnProperty(G)&&X!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":A=X;default:o.hasOwnProperty(G)||Ie(e,t,G,null,o,X)}}for(var H in o){var G=o[H];if(X=l[H],o.hasOwnProperty(H)&&(G!=null||X!=null))switch(H){case"type":p=G;break;case"name":c=G;break;case"checked":I=G;break;case"defaultChecked":j=G;break;case"value":b=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,t));break;default:G!==X&&Ie(e,t,H,G,o,X)}}Ts(e,b,S,A,I,j,p,c);return;case"select":G=b=S=H=null;for(p in l)if(A=l[p],l.hasOwnProperty(p)&&A!=null)switch(p){case"value":break;case"multiple":G=A;default:o.hasOwnProperty(p)||Ie(e,t,p,null,o,A)}for(c in o)if(p=o[c],A=l[c],o.hasOwnProperty(c)&&(p!=null||A!=null))switch(c){case"value":H=p;break;case"defaultValue":S=p;break;case"multiple":b=p;default:p!==A&&Ie(e,t,c,p,o,A)}t=S,l=b,o=G,H!=null?na(e,!!l,H,!1):!!o!=!!l&&(t!=null?na(e,!!l,t,!0):na(e,!!l,l?[]:"",!1));return;case"textarea":G=H=null;for(S in l)if(c=l[S],l.hasOwnProperty(S)&&c!=null&&!o.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ie(e,t,S,null,o,c)}for(b in o)if(c=o[b],p=l[b],o.hasOwnProperty(b)&&(c!=null||p!=null))switch(b){case"value":H=c;break;case"defaultValue":G=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==p&&Ie(e,t,b,c,o,p)}Ad(e,H,G);return;case"option":for(var ne in l)if(H=l[ne],l.hasOwnProperty(ne)&&H!=null&&!o.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Ie(e,t,ne,null,o,H)}for(A in o)if(H=o[A],G=l[A],o.hasOwnProperty(A)&&H!==G&&(H!=null||G!=null))switch(A){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ie(e,t,A,H,o,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ce in l)H=l[ce],l.hasOwnProperty(ce)&&H!=null&&!o.hasOwnProperty(ce)&&Ie(e,t,ce,null,o,H);for(I in o)if(H=o[I],G=l[I],o.hasOwnProperty(I)&&H!==G&&(H!=null||G!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:Ie(e,t,I,H,o,G)}return;default:if(ws(t)){for(var Ue in l)H=l[Ue],l.hasOwnProperty(Ue)&&H!==void 0&&!o.hasOwnProperty(Ue)&&hc(e,t,Ue,void 0,o,H);for(j in o)H=o[j],G=l[j],!o.hasOwnProperty(j)||H===G||H===void 0&&G===void 0||hc(e,t,j,H,o,G);return}}for(var O in l)H=l[O],l.hasOwnProperty(O)&&H!=null&&!o.hasOwnProperty(O)&&Ie(e,t,O,null,o,H);for(X in o)H=o[X],G=l[X],!o.hasOwnProperty(X)||H===G||H==null&&G==null||Ie(e,t,X,H,o,G)}function Lm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function t_(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var c=l[o],p=c.transferSize,b=c.initiatorType,S=c.duration;if(p&&S&&Lm(b)){for(b=0,S=c.responseEnd,o+=1;o<l.length;o++){var A=l[o],I=A.startTime;if(I>S)break;var j=A.transferSize,X=A.initiatorType;j&&Lm(X)&&(A=A.responseEnd,b+=j*(A<S?1:(S-I)/(A-I)))}if(--o,t+=8*(p+b)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var pc=null,mc=null;function ho(e){return e.nodeType===9?e:e.ownerDocument}function km(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Rm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vc=null;function n_(){var e=window.event;return e&&e.type==="popstate"?e===vc?!1:(vc=e,!0):(vc=null,!1)}var Dm=typeof setTimeout=="function"?setTimeout:void 0,i_=typeof clearTimeout=="function"?clearTimeout:void 0,Om=typeof Promise=="function"?Promise:void 0,a_=typeof queueMicrotask=="function"?queueMicrotask:typeof Om<"u"?function(e){return Om.resolve(null).then(e).catch(l_)}:Dm;function l_(e){setTimeout(function(){throw e})}function fi(e){return e==="head"}function Nm(e,t){var l=t,o=0;do{var c=l.nextSibling;if(e.removeChild(l),c&&c.nodeType===8)if(l=c.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(c),Ma(t);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")Hl(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Hl(l);for(var p=l.firstChild;p;){var b=p.nextSibling,S=p.nodeName;p[nl]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=b}}else l==="body"&&Hl(e.ownerDocument.body);l=c}while(l);Ma(t)}function Mm(e,t){var l=e;e=0;do{var o=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=o}while(l)}function bc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":bc(l),Cs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function r_(e,t,l,o){for(;e.nodeType===1;){var c=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[nl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var p=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=Zt(e.nextSibling),e===null)break}return null}function o_(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Zt(e.nextSibling),e===null))return null;return e}function zm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Zt(e.nextSibling),e===null))return null;return e}function yc(e){return e.data==="$?"||e.data==="$~"}function _c(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function s_(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var o=function(){t(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Sc=null;function Im(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Zt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Um(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Hm(e,t,l){switch(t=ho(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Hl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cs(e)}var Kt=new Map,Vm=new Set;function po(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=Q.d;Q.d={f:u_,r:c_,D:f_,C:d_,L:h_,m:p_,X:g_,S:m_,M:v_};function u_(){var e=Hn.f(),t=ao();return e||t}function c_(e){var t=Ji(e);t!==null&&t.tag===5&&t.type==="form"?np(t):Hn.r(e)}var Da=typeof document>"u"?null:document;function Gm(e,t,l){var o=Da;if(o&&typeof t=="string"&&t){var c=Pt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof l=="string"&&(c+='[crossorigin="'+l+'"]'),Vm.has(c)||(Vm.add(c),e={rel:e,crossOrigin:l,href:t},o.querySelector(c)===null&&(t=o.createElement("link"),ht(t,"link",e),lt(t),o.head.appendChild(t)))}}function f_(e){Hn.D(e),Gm("dns-prefetch",e,null)}function d_(e,t){Hn.C(e,t),Gm("preconnect",e,t)}function h_(e,t,l){Hn.L(e,t,l);var o=Da;if(o&&e&&t){var c='link[rel="preload"][as="'+Pt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(c+='[imagesrcset="'+Pt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(c+='[imagesizes="'+Pt(l.imageSizes)+'"]')):c+='[href="'+Pt(e)+'"]';var p=c;switch(t){case"style":p=Oa(e);break;case"script":p=Na(e)}Kt.has(p)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Kt.set(p,e),o.querySelector(c)!==null||t==="style"&&o.querySelector(Vl(p))||t==="script"&&o.querySelector(Gl(p))||(t=o.createElement("link"),ht(t,"link",e),lt(t),o.head.appendChild(t)))}}function p_(e,t){Hn.m(e,t);var l=Da;if(l&&e){var o=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Pt(o)+'"][href="'+Pt(e)+'"]',p=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Na(e)}if(!Kt.has(p)&&(e=g({rel:"modulepreload",href:e},t),Kt.set(p,e),l.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gl(p)))return}o=l.createElement("link"),ht(o,"link",e),lt(o),l.head.appendChild(o)}}}function m_(e,t,l){Hn.S(e,t,l);var o=Da;if(o&&e){var c=ea(o).hoistableStyles,p=Oa(e);t=t||"default";var b=c.get(p);if(!b){var S={loading:0,preload:null};if(b=o.querySelector(Vl(p)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Kt.get(p))&&Ec(e,l);var A=b=o.createElement("link");lt(A),ht(A,"link",e),A._p=new Promise(function(I,j){A.onload=I,A.onerror=j}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,mo(b,t,o)}b={type:"stylesheet",instance:b,count:1,state:S},c.set(p,b)}}}function g_(e,t){Hn.X(e,t);var l=Da;if(l&&e){var o=ea(l).hoistableScripts,c=Na(e),p=o.get(c);p||(p=l.querySelector(Gl(c)),p||(e=g({src:e,async:!0},t),(t=Kt.get(c))&&Cc(e,t),p=l.createElement("script"),lt(p),ht(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(c,p))}}function v_(e,t){Hn.M(e,t);var l=Da;if(l&&e){var o=ea(l).hoistableScripts,c=Na(e),p=o.get(c);p||(p=l.querySelector(Gl(c)),p||(e=g({src:e,async:!0,type:"module"},t),(t=Kt.get(c))&&Cc(e,t),p=l.createElement("script"),lt(p),ht(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(c,p))}}function Bm(e,t,l,o){var c=(c=de.current)?po(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Oa(l.href),l=ea(c).hoistableStyles,o=l.get(t),o||(o={type:"style",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Oa(l.href);var p=ea(c).hoistableStyles,b=p.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,b),(p=c.querySelector(Vl(e)))&&!p._p&&(b.instance=p,b.state.loading=5),Kt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Kt.set(e,l),p||b_(c,e,l,b.state))),t&&o===null)throw Error(r(528,""));return b}if(t&&o!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Na(l),l=ea(c).hoistableScripts,o=l.get(t),o||(o={type:"script",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Oa(e){return'href="'+Pt(e)+'"'}function Vl(e){return'link[rel="stylesheet"]['+e+"]"}function jm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function b_(e,t,l,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),ht(t,"link",l),lt(t),e.head.appendChild(t))}function Na(e){return'[src="'+Pt(e)+'"]'}function Gl(e){return"script[async]"+e}function Pm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Pt(l.href)+'"]');if(o)return t.instance=o,lt(o),o;var c=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),lt(o),ht(o,"style",c),mo(o,l.precedence,e),t.instance=o;case"stylesheet":c=Oa(l.href);var p=e.querySelector(Vl(c));if(p)return t.state.loading|=4,t.instance=p,lt(p),p;o=jm(l),(c=Kt.get(c))&&Ec(o,c),p=(e.ownerDocument||e).createElement("link"),lt(p);var b=p;return b._p=new Promise(function(S,A){b.onload=S,b.onerror=A}),ht(p,"link",o),t.state.loading|=4,mo(p,l.precedence,e),t.instance=p;case"script":return p=Na(l.src),(c=e.querySelector(Gl(p)))?(t.instance=c,lt(c),c):(o=l,(c=Kt.get(p))&&(o=g({},l),Cc(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),lt(c),ht(c,"link",o),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,mo(o,l.precedence,e));return t.instance}function mo(e,t,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,p=c,b=0;b<o.length;b++){var S=o[b];if(S.dataset.precedence===t)p=S;else if(p!==c)break}p?p.parentNode.insertBefore(e,p.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var go=null;function $m(e,t,l){if(go===null){var o=new Map,c=go=new Map;c.set(l,o)}else c=go,o=c.get(l),o||(o=new Map,c.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),c=0;c<l.length;c++){var p=l[c];if(!(p[nl]||p[ut]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(t)||"";b=e+b;var S=o.get(b);S?S.push(p):o.set(b,[p])}}return o}function qm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function y_(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ym(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function __(e,t,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var c=Oa(o.href),p=t.querySelector(Vl(c));if(p){t=p._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vo.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=p,lt(p);return}p=t.ownerDocument||t,o=jm(o),(c=Kt.get(c))&&Ec(o,c),p=p.createElement("link"),lt(p);var b=p;b._p=new Promise(function(S,A){b.onload=S,b.onerror=A}),ht(p,"link",o),l.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=vo.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ac=0;function S_(e,t){return e.stylesheets&&e.count===0&&yo(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&yo(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+t);0<e.imgBytes&&Ac===0&&(Ac=62500*t_());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&yo(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>Ac?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(c)}}:null}function vo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bo=null;function yo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bo=new Map,t.forEach(E_,e),bo=null,vo.call(e))}function E_(e,t){if(!(t.state.loading&4)){var l=bo.get(e);if(l)var o=l.get(null);else{l=new Map,bo.set(e,l);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<c.length;p++){var b=c[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),o=b)}o&&l.set(null,o)}c=t.instance,b=c.getAttribute("data-precedence"),p=l.get(b)||o,p===o&&l.set(null,c),l.set(b,c),this.count++,o=vo.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),p?p.parentNode.insertBefore(c,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Bl={$$typeof:T,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function C_(e,t,l,o,c,p,b,S,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ys(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.hiddenUpdates=ys(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Xm(e,t,l,o,c,p,b,S,A,I,j,X){return e=new C_(e,t,l,b,A,I,j,X,S),t=1,p===!0&&(t|=24),p=zt(3,null,null,t),e.current=p,p.stateNode=e,t=iu(),t.refCount++,e.pooledCache=t,t.refCount++,p.memoizedState={element:o,isDehydrated:l,cache:t},ou(p),e}function Qm(e){return e?(e=ca,e):ca}function Fm(e,t,l,o,c,p){c=Qm(c),o.context===null?o.context=c:o.pendingContext=c,o=ei(t),o.payload={element:l},p=p===void 0?null:p,p!==null&&(o.callback=p),l=ti(e,o,t),l!==null&&(Lt(l,e,t),yl(l,e,t))}function Zm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Tc(e,t){Zm(e,t),(e=e.alternate)&&Zm(e,t)}function Km(e){if(e.tag===13||e.tag===31){var t=Li(e,67108864);t!==null&&Lt(t,e,67108864),Tc(e,67108864)}}function Wm(e){if(e.tag===13||e.tag===31){var t=Gt();t=_s(t);var l=Li(e,t);l!==null&&Lt(l,e,t),Tc(e,t)}}var _o=!0;function A_(e,t,l,o){var c=B.T;B.T=null;var p=Q.p;try{Q.p=2,xc(e,t,l,o)}finally{Q.p=p,B.T=c}}function T_(e,t,l,o){var c=B.T;B.T=null;var p=Q.p;try{Q.p=8,xc(e,t,l,o)}finally{Q.p=p,B.T=c}}function xc(e,t,l,o){if(_o){var c=wc(o);if(c===null)dc(e,t,o,So,l),eg(e,o);else if(w_(c,e,t,l,o))o.stopPropagation();else if(eg(e,o),t&4&&-1<x_.indexOf(e)){for(;c!==null;){var p=Ji(c);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=Ci(p.pendingLanes);if(b!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var A=1<<31-Nt(b);S.entanglements[1]|=A,b&=~A}gn(p),(Oe&6)===0&&(no=Dt()+500,zl(0))}}break;case 31:case 13:S=Li(p,2),S!==null&&Lt(S,p,2),ao(),Tc(p,2)}if(p=wc(o),p===null&&dc(e,t,o,So,l),p===c)break;c=p}c!==null&&o.stopPropagation()}else dc(e,t,o,null,l)}}function wc(e){return e=ks(e),Lc(e)}var So=null;function Lc(e){if(So=null,e=Wi(e),e!==null){var t=u(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=d(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return So=e,null}function Jm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fb()){case od:return 2;case sd:return 8;case ur:case db:return 32;case ud:return 268435456;default:return 32}default:return 32}}var kc=!1,di=null,hi=null,pi=null,jl=new Map,Pl=new Map,mi=[],x_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function eg(e,t){switch(e){case"focusin":case"focusout":di=null;break;case"dragenter":case"dragleave":hi=null;break;case"mouseover":case"mouseout":pi=null;break;case"pointerover":case"pointerout":jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(t.pointerId)}}function $l(e,t,l,o,c,p){return e===null||e.nativeEvent!==p?(e={blockedOn:t,domEventName:l,eventSystemFlags:o,nativeEvent:p,targetContainers:[c]},t!==null&&(t=Ji(t),t!==null&&Km(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function w_(e,t,l,o,c){switch(t){case"focusin":return di=$l(di,e,t,l,o,c),!0;case"dragenter":return hi=$l(hi,e,t,l,o,c),!0;case"mouseover":return pi=$l(pi,e,t,l,o,c),!0;case"pointerover":var p=c.pointerId;return jl.set(p,$l(jl.get(p)||null,e,t,l,o,c)),!0;case"gotpointercapture":return p=c.pointerId,Pl.set(p,$l(Pl.get(p)||null,e,t,l,o,c)),!0}return!1}function tg(e){var t=Wi(e.target);if(t!==null){var l=u(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,md(e.priority,function(){Wm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,md(e.priority,function(){Wm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Eo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=wc(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);Ls=o,l.target.dispatchEvent(o),Ls=null}else return t=Ji(l),t!==null&&Km(t),e.blockedOn=l,!1;t.shift()}return!0}function ng(e,t,l){Eo(e)&&l.delete(t)}function L_(){kc=!1,di!==null&&Eo(di)&&(di=null),hi!==null&&Eo(hi)&&(hi=null),pi!==null&&Eo(pi)&&(pi=null),jl.forEach(ng),Pl.forEach(ng)}function Co(e,t){e.blockedOn===t&&(e.blockedOn=null,kc||(kc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,L_)))}var Ao=null;function ig(e){Ao!==e&&(Ao=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ao===e&&(Ao=null);for(var t=0;t<e.length;t+=3){var l=e[t],o=e[t+1],c=e[t+2];if(typeof o!="function"){if(Lc(o||l)===null)continue;break}var p=Ji(l);p!==null&&(e.splice(t,3),t-=3,wu(p,{pending:!0,data:c,method:l.method,action:o},o,c))}}))}function Ma(e){function t(A){return Co(A,e)}di!==null&&Co(di,e),hi!==null&&Co(hi,e),pi!==null&&Co(pi,e),jl.forEach(t),Pl.forEach(t);for(var l=0;l<mi.length;l++){var o=mi[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<mi.length&&(l=mi[0],l.blockedOn===null);)tg(l),l.blockedOn===null&&mi.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var c=l[o],p=l[o+1],b=c[Et]||null;if(typeof p=="function")b||ig(l);else if(b){var S=null;if(p&&p.hasAttribute("formAction")){if(c=p,b=p[Et]||null)S=b.formAction;else if(Lc(c)!==null)continue}else S=b.action;typeof S=="function"?l[o+1]=S:(l.splice(o,3),o-=3),ig(l)}}}function ag(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(b){return c=b})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Rc(e){this._internalRoot=e}To.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,o=Gt();Fm(l,o,e,t,null,null)},To.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fm(e.current,2,null,e,null,null),ao(),t[Ki]=null}};function To(e){this._internalRoot=e}To.prototype.unstable_scheduleHydration=function(e){if(e){var t=pd();e={blockedOn:null,target:e,priority:t};for(var l=0;l<mi.length&&t!==0&&t<mi[l].priority;l++);mi.splice(l,0,e),l===0&&tg(e)}};var lg=n.version;if(lg!=="19.2.4")throw Error(r(527,lg,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var k_={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xo.isDisabled&&xo.supportsFiber)try{Ja=xo.inject(k_),Ot=xo}catch{}}return Yl.createRoot=function(e,t){if(!s(e))throw Error(r(299));var l=!1,o="",c=dp,p=hp,b=pp;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(p=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=Xm(e,1,!1,null,null,l,o,null,c,p,b,ag),e[Ki]=t.current,fc(e),new Rc(t)},Yl.hydrateRoot=function(e,t,l){if(!s(e))throw Error(r(299));var o=!1,c="",p=dp,b=hp,S=pp,A=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(c=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=Xm(e,1,!0,t,l??null,o,c,A,p,b,S,ag),t.context=Qm(null),l=t.current,o=Gt(),o=_s(o),c=ei(o),c.callback=null,ti(l,c,o),l=o,t.current.lanes=l,tl(t,l),gn(t),e[Ki]=t.current,fc(e),new To(t)},Yl.version="19.2.4",Yl}var vg;function P_(){if(vg)return Mc.exports;vg=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Mc.exports=j_(),Mc.exports}var $_=P_(),ue=Gf();const Yo="diffs-container",q_=/(?=^From [a-f0-9]+ .+$)/m,Go=/(?=^diff --git)/gm,bg=/(?=^---\s+\S)/gm,Y_=/(?=^@@ )/gm,X_=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,Vc=new RegExp("(?<=\\n)"),Q_=/^(---|\+\+\+)\s+([^\t\r\n]+)/,F_=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Z_=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,K_=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Bf="header-prefix",jf="header-metadata",Pf="header-custom",_n={dark:"pierre-dark",light:"pierre-light"},I0="data-theme-css",U0="data-unsafe-css",ja=1,W_={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},J_=Object.freeze({fromStart:0,fromEnd:0}),yg={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},e1={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function _g(i,n){return(i==null?void 0:i.start)===(n==null?void 0:n.start)&&(i==null?void 0:i.end)===(n==null?void 0:n.end)&&(i==null?void 0:i.side)===(n==null?void 0:n.side)&&(i==null?void 0:i.endSide)===(n==null?void 0:n.endSide)}function qn(i){return{type:"text",value:i}}function _e({tagName:i,children:n=[],properties:a={}}){return{type:"element",tagName:i,properties:a,children:n}}function Xo({name:i,width:n=16,height:a=16,properties:r}){return _e({tagName:"svg",properties:{width:n,height:a,viewBox:"0 0 16 16",...r},children:[_e({tagName:"use",properties:{href:`#${i.replace(/^#/,"")}`}})]})}function t1(i){let n=i.children[0];for(;n!=null;){if(n.type==="element"&&n.tagName==="code")return n;"children"in n?n=n.children[0]:n=null}}function wo(i){return _e({tagName:"div",properties:{"data-gutter":""},children:i})}function n1(i,n,a,r={}){return _e({tagName:"div",properties:{"data-line-type":i,"data-column-number":n,"data-line-index":a,...r},children:n!=null?[_e({tagName:"span",properties:{"data-line-number-content":""},children:[qn(`${n}`)]})]:void 0})}function sn(i,n,a){return _e({tagName:"div",properties:{"data-gutter-buffer":n,"data-buffer-size":a,"data-line-type":n==="annotation"?void 0:i,style:n==="annotation"?`grid-row: span ${a};`:`grid-row: span ${a};min-height:calc(${a} * 1lh);`}})}function i1(){return _e({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[Xo({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function a1(i,n){return i.lineNumber===n.lineNumber&&i.side===n.side}const l1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class rr{constructor(n,a,r){this.normal=a,this.property=n,r&&(this.space=r)}}rr.prototype.normal={};rr.prototype.property={};rr.prototype.space=void 0;function H0(i,n){const a={},r={};for(const s of i)Object.assign(a,s.property),Object.assign(r,s.normal);return new rr(a,r,n)}function gf(i){return i.toLowerCase()}class kt{constructor(n,a){this.attribute=a,this.property=n}}kt.prototype.attribute="";kt.prototype.booleanish=!1;kt.prototype.boolean=!1;kt.prototype.commaOrSpaceSeparated=!1;kt.prototype.commaSeparated=!1;kt.prototype.defined=!1;kt.prototype.mustUseProperty=!1;kt.prototype.number=!1;kt.prototype.overloadedBoolean=!1;kt.prototype.property="";kt.prototype.spaceSeparated=!1;kt.prototype.space=void 0;let r1=0;const ye=Zi(),Je=Zi(),vf=Zi(),K=Zi(),Ve=Zi(),Pa=Zi(),Bt=Zi();function Zi(){return 2**++r1}const bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:Je,commaOrSpaceSeparated:Bt,commaSeparated:Pa,number:K,overloadedBoolean:vf,spaceSeparated:Ve},Symbol.toStringTag,{value:"Module"})),Gc=Object.keys(bf);class $f extends kt{constructor(n,a,r,s){let u=-1;if(super(n,a),Sg(this,"space",s),typeof r=="number")for(;++u<Gc.length;){const f=Gc[u];Sg(this,Gc[u],(r&bf[f])===bf[f])}}}$f.prototype.defined=!0;function Sg(i,n,a){a&&(i[n]=a)}function Fa(i){const n={},a={};for(const[r,s]of Object.entries(i.properties)){const u=new $f(r,i.transform(i.attributes||{},r),s,i.space);i.mustUseProperty&&i.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),n[r]=u,a[gf(r)]=r,a[gf(u.attribute)]=r}return new rr(n,a,i.space)}const V0=Fa({properties:{ariaActiveDescendant:null,ariaAtomic:Je,ariaAutoComplete:null,ariaBusy:Je,ariaChecked:Je,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Ve,ariaCurrent:null,ariaDescribedBy:Ve,ariaDetails:null,ariaDisabled:Je,ariaDropEffect:Ve,ariaErrorMessage:null,ariaExpanded:Je,ariaFlowTo:Ve,ariaGrabbed:Je,ariaHasPopup:null,ariaHidden:Je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ve,ariaLevel:K,ariaLive:null,ariaModal:Je,ariaMultiLine:Je,ariaMultiSelectable:Je,ariaOrientation:null,ariaOwns:Ve,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:Je,ariaReadOnly:Je,ariaRelevant:null,ariaRequired:Je,ariaRoleDescription:Ve,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:Je,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(i,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function G0(i,n){return n in i?i[n]:n}function B0(i,n){return G0(i,n.toLowerCase())}const o1=Fa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pa,acceptCharset:Ve,accessKey:Ve,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Ve,autoFocus:ye,autoPlay:ye,blocking:Ve,capture:null,charSet:null,checked:ye,cite:null,className:Ve,cols:K,colSpan:null,content:null,contentEditable:Je,controls:ye,controlsList:Ve,coords:K|Pa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:vf,draggable:Je,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Ve,height:K,hidden:vf,high:K,href:null,hrefLang:null,htmlFor:Ve,httpEquiv:Ve,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Ve,itemRef:Ve,itemScope:ye,itemType:Ve,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,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:ye,optimum:K,pattern:null,ping:Ve,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Ve,required:ye,reversed:ye,rows:K,rowSpan:K,sandbox:Ve,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:Je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:Je,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ve,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:Je,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:B0}),s1=Fa({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:Bt,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:Ve,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:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,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:Pa,g2:Pa,glyphName:Pa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:Bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,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:K,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:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ve,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bt,rev:Bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bt,requiredFeatures:Bt,requiredFonts:Bt,requiredFormats:Bt,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:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:Bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bt,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:G0}),j0=Fa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(i,n){return"xlink:"+n.slice(5).toLowerCase()}}),P0=Fa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:B0}),$0=Fa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(i,n){return"xml:"+n.slice(3).toLowerCase()}}),u1=/[A-Z]/g,Eg=/-[a-z]/g,c1=/^data[-\w.:]+$/i;function f1(i,n){const a=gf(n);let r=n,s=kt;if(a in i.normal)return i.property[i.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&c1.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(Eg,h1);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!Eg.test(u)){let f=u.replace(u1,d1);f.charAt(0)!=="-"&&(f="-"+f),n="data"+f}}s=$f}return new s(r,n)}function d1(i){return"-"+i.toLowerCase()}function h1(i){return i.charAt(1).toUpperCase()}const p1=H0([V0,o1,j0,P0,$0],"html"),q0=H0([V0,s1,j0,P0,$0],"svg"),Cg={}.hasOwnProperty;function m1(i,n){const a=n||{};function r(s,...u){let f=r.invalid;const d=r.handlers;if(s&&Cg.call(s,i)){const h=String(s[i]);f=Cg.call(d,h)?d[h]:r.unknown}if(f)return f.call(this,s,...u)}return r.handlers=a.handlers||{},r.invalid=a.invalid,r.unknown=a.unknown,r}const g1=/["&'<>`]/g,v1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,y1=/[|\\{}()[\]^$+*?.]/g,Ag=new WeakMap;function _1(i,n){if(i=i.replace(n.subset?S1(n.subset):g1,r),n.subset||n.escapeOnly)return i;return i.replace(v1,a).replace(b1,r);function a(s,u,f){return n.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,f.charCodeAt(u+2),n)}function r(s,u,f){return n.format(s.charCodeAt(0),f.charCodeAt(u+1),n)}}function S1(i){let n=Ag.get(i);return n||(n=E1(i),Ag.set(i,n)),n}function E1(i){const n=[];let a=-1;for(;++a<i.length;)n.push(i[a].replace(y1,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const C1=/[\dA-Fa-f]/;function A1(i,n,a){const r="&#x"+i.toString(16).toUpperCase();return a&&n&&!C1.test(String.fromCharCode(n))?r:r+";"}const T1=/\d/;function x1(i,n,a){const r="&#"+String(i);return a&&n&&!T1.test(String.fromCharCode(n))?r:r+";"}const w1=["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"],Bc={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:"€"},L1=["cent","copy","divide","gt","lt","not","para","times"],Y0={}.hasOwnProperty,yf={};let Lo;for(Lo in Bc)Y0.call(Bc,Lo)&&(yf[Bc[Lo]]=Lo);const k1=/[^\dA-Za-z]/;function R1(i,n,a,r){const s=String.fromCharCode(i);if(Y0.call(yf,s)){const u=yf[s],f="&"+u;return a&&w1.includes(u)&&!L1.includes(u)&&(!r||n&&n!==61&&k1.test(String.fromCharCode(n)))?f:f+";"}return""}function D1(i,n,a){let r=A1(i,n,a.omitOptionalSemicolons),s;if((a.useNamedReferences||a.useShortestReferences)&&(s=R1(i,n,a.omitOptionalSemicolons,a.attribute)),(a.useShortestReferences||!s)&&a.useShortestReferences){const u=x1(i,n,a.omitOptionalSemicolons);u.length<r.length&&(r=u)}return s&&(!a.useShortestReferences||s.length<r.length)?s:r}function $a(i,n){return _1(i,Object.assign({format:D1},n))}const O1=/^>|^->|<!--|-->|--!>|<!-$/g,N1=[">"],M1=["<",">"];function z1(i,n,a,r){return r.settings.bogusComments?"<?"+$a(i.value,Object.assign({},r.settings.characterReferences,{subset:N1}))+">":"<!--"+i.value.replace(O1,s)+"-->";function s(u){return $a(u,Object.assign({},r.settings.characterReferences,{subset:M1}))}}function I1(i,n,a,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Tg(i,n){const a=String(i);if(typeof n!="string")throw new TypeError("Expected character");let r=0,s=a.indexOf(n);for(;s!==-1;)r++,s=a.indexOf(n,s+n.length);return r}function U1(i,n){const a=n||{};return(i[i.length-1]===""?[...i,""]:i).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}function H1(i){return i.join(" ").trim()}const V1=/[ \t\n\f\r]/g;function qf(i){return typeof i=="object"?i.type==="text"?xg(i.value):!1:xg(i)}function xg(i){return i.replace(V1,"")===""}const at=Q0(1),X0=Q0(-1),G1=[];function Q0(i){return n;function n(a,r,s){const u=a?a.children:G1;let f=(r||0)+i,d=u[f];if(!s)for(;d&&qf(d);)f+=i,d=u[f];return d}}const B1={}.hasOwnProperty;function F0(i){return n;function n(a,r,s){return B1.call(i,a.tagName)&&i[a.tagName](a,r,s)}}const Yf=F0({body:P1,caption:jc,colgroup:jc,dd:X1,dt:Y1,head:jc,html:j1,li:q1,optgroup:Q1,option:F1,p:$1,rp:wg,rt:wg,tbody:K1,td:Lg,tfoot:W1,th:Lg,thead:Z1,tr:J1});function jc(i,n,a){const r=at(a,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&qf(r.value.charAt(0)))}function j1(i,n,a){const r=at(a,n);return!r||r.type!=="comment"}function P1(i,n,a){const r=at(a,n);return!r||r.type!=="comment"}function $1(i,n,a){const r=at(a,n);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!a||!(a.type==="element"&&(a.tagName==="a"||a.tagName==="audio"||a.tagName==="del"||a.tagName==="ins"||a.tagName==="map"||a.tagName==="noscript"||a.tagName==="video"))}function q1(i,n,a){const r=at(a,n);return!r||r.type==="element"&&r.tagName==="li"}function Y1(i,n,a){const r=at(a,n);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function X1(i,n,a){const r=at(a,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function wg(i,n,a){const r=at(a,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Q1(i,n,a){const r=at(a,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function F1(i,n,a){const r=at(a,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Z1(i,n,a){const r=at(a,n);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function K1(i,n,a){const r=at(a,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function W1(i,n,a){return!at(a,n)}function J1(i,n,a){const r=at(a,n);return!r||r.type==="element"&&r.tagName==="tr"}function Lg(i,n,a){const r=at(a,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const eS=F0({body:iS,colgroup:aS,head:nS,html:tS,tbody:lS});function tS(i){const n=at(i,-1);return!n||n.type!=="comment"}function nS(i){const n=new Set;for(const r of i.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(n.has(r.tagName))return!1;n.add(r.tagName)}const a=i.children[0];return!a||a.type==="element"}function iS(i){const n=at(i,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&qf(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function aS(i,n,a){const r=X0(a,n),s=at(i,-1,!0);return a&&r&&r.type==="element"&&r.tagName==="colgroup"&&Yf(r,a.children.indexOf(r),a)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function lS(i,n,a){const r=X0(a,n),s=at(i,-1);return a&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Yf(r,a.children.indexOf(r),a)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const ko={name:[[`
51
- \f\r &/=>`.split(""),`
52
- \f\r "&'/=>\``.split("")],[`\0
53
- \f\r "&'/<=>`.split(""),`\0
54
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
55
- \f\r &>`.split(""),`\0
56
- \f\r "&'<=>\``.split("")],[`\0
57
- \f\r "&'<=>\``.split(""),`\0
58
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function rS(i,n,a,r){const s=r.schema,u=s.space==="svg"?!1:r.settings.omitOptionalTags;let f=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(i.tagName.toLowerCase());const d=[];let h;s.space==="html"&&i.tagName==="svg"&&(r.schema=q0);const m=oS(r,i.properties),v=r.all(s.space==="html"&&i.tagName==="template"?i.content:i);return r.schema=s,v&&(f=!1),(m||!u||!eS(i,n,a))&&(d.push("<",i.tagName,m?" "+m:""),f&&(s.space==="svg"||r.settings.closeSelfClosing)&&(h=m.charAt(m.length-1),(!r.settings.tightSelfClosing||h==="/"||h&&h!=='"'&&h!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(v),!f&&(!u||!Yf(i,n,a))&&d.push("</"+i.tagName+">"),d.join("")}function oS(i,n){const a=[];let r=-1,s;if(n){for(s in n)if(n[s]!==null&&n[s]!==void 0){const u=sS(i,s,n[s]);u&&a.push(u)}}for(;++r<a.length;){const u=i.settings.tightAttributes?a[r].charAt(a[r].length-1):void 0;r!==a.length-1&&u!=='"'&&u!=="'"&&(a[r]+=" ")}return a.join("")}function sS(i,n,a){const r=f1(i.schema,n),s=i.settings.allowParseErrors&&i.schema.space==="html"?0:1,u=i.settings.allowDangerousCharacters?0:1;let f=i.quote,d;if(r.overloadedBoolean&&(a===r.attribute||a==="")?a=!0:(r.boolean||r.overloadedBoolean)&&(typeof a!="string"||a===r.attribute||a==="")&&(a=!!a),a==null||a===!1||typeof a=="number"&&Number.isNaN(a))return"";const h=$a(r.attribute,Object.assign({},i.settings.characterReferences,{subset:ko.name[s][u]}));return a===!0||(a=Array.isArray(a)?(r.commaSeparated?U1:H1)(a,{padLeft:!i.settings.tightCommaSeparatedLists}):String(a),i.settings.collapseEmptyAttributes&&!a)?h:(i.settings.preferUnquoted&&(d=$a(a,Object.assign({},i.settings.characterReferences,{attribute:!0,subset:ko.unquoted[s][u]}))),d!==a&&(i.settings.quoteSmart&&Tg(a,f)>Tg(a,i.alternative)&&(f=i.alternative),d=f+$a(a,Object.assign({},i.settings.characterReferences,{subset:(f==="'"?ko.single:ko.double)[s][u],attribute:!0}))+f),h+(d&&"="+d))}const uS=["<","&"];function Z0(i,n,a,r){return a&&a.type==="element"&&(a.tagName==="script"||a.tagName==="style")?i.value:$a(i.value,Object.assign({},r.settings.characterReferences,{subset:uS}))}function cS(i,n,a,r){return r.settings.allowDangerousHtml?i.value:Z0(i,n,a,r)}function fS(i,n,a,r){return r.all(i)}const dS=m1("type",{invalid:hS,unknown:pS,handlers:{comment:z1,doctype:I1,element:rS,raw:cS,root:fS,text:Z0}});function hS(i){throw new Error("Expected node, not `"+i+"`")}function pS(i){const n=i;throw new Error("Cannot compile unknown node `"+n.type+"`")}const mS={},gS={},vS=[];function qa(i,n){const a=n||mS,r=a.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:bS,all:yS,settings:{omitOptionalTags:a.omitOptionalTags||!1,allowParseErrors:a.allowParseErrors||!1,allowDangerousCharacters:a.allowDangerousCharacters||!1,quoteSmart:a.quoteSmart||!1,preferUnquoted:a.preferUnquoted||!1,tightAttributes:a.tightAttributes||!1,upperDoctype:a.upperDoctype||!1,tightDoctype:a.tightDoctype||!1,bogusComments:a.bogusComments||!1,tightCommaSeparatedLists:a.tightCommaSeparatedLists||!1,tightSelfClosing:a.tightSelfClosing||!1,collapseEmptyAttributes:a.collapseEmptyAttributes||!1,allowDangerousHtml:a.allowDangerousHtml||!1,voids:a.voids||l1,characterReferences:a.characterReferences||gS,closeSelfClosing:a.closeSelfClosing||!1,closeEmptyElements:a.closeEmptyElements||!1},schema:a.space==="svg"?q0:p1,quote:r,alternative:s}.one(Array.isArray(i)?{type:"root",children:i}:i,void 0,void 0)}function bS(i,n,a){return dS(i,n,a,this)}function yS(i){const n=[],a=i&&i.children||vS;let r=-1;for(;++r<a.length;)n[r]=this.one(a[r],r,i);return n.join("")}var _S=class{constructor(i,n){x(this,"hoveredLine");x(this,"hoveredToken");x(this,"pre");x(this,"gutterUtilityContainer");x(this,"gutterUtilityButton");x(this,"gutterUtilitySlot");x(this,"interactiveLinesAttr",!1);x(this,"interactiveLineNumbersAttr",!1);x(this,"hasPointerListeners",!1);x(this,"hasDocumentPointerListeners",!1);x(this,"selectedRange",null);x(this,"renderedSelectionRange");x(this,"selectionAnchor");x(this,"queuedSelectionRender");x(this,"pointerSession",{mode:"idle"});x(this,"getHoveredLine",()=>{if(this.hoveredLine!=null){if(this.mode==="diff"&&this.hoveredLine.type==="diff-line")return{lineNumber:this.hoveredLine.lineNumber,side:this.hoveredLine.annotationSide};if(this.mode==="file"&&this.hoveredLine.type==="line")return{lineNumber:this.hoveredLine.lineNumber}}});x(this,"handlePointerClick",i=>{const{onHunkExpand:n,onLineClick:a,onLineNumberClick:r,onTokenClick:s,onMergeConflictActionClick:u}=this.options;n==null&&a==null&&r==null&&u==null&&s==null||this.options.onGutterUtilityClick!=null&&Ng(i.composedPath())||(Vn(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",i),this.handlePointerEvent({eventType:"click",event:i}))});x(this,"handlePointerMove",i=>{const{lineHoverHighlight:n="disabled",onLineEnter:a,onLineLeave:r,onTokenEnter:s,onTokenLeave:u,enableGutterUtility:f=!1}=this.options;n==="disabled"&&!f&&a==null&&r==null&&s==null&&u==null||(Vn(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",i),this.handlePointerEvent({eventType:"move",event:i}))});x(this,"handlePointerLeave",i=>{var a,r,s,u,f;const{__debugPointerEvents:n}=this.options;if(Vn(n,"move","FileDiff.DEBUG.handlePointerLeave: no event"),this.hoveredLine==null&&this.hoveredToken==null){Vn(n,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token");return}(a=this.gutterUtilityContainer)==null||a.remove(),this.hoveredToken!=null&&((s=(r=this.options).onTokenLeave)==null||s.call(r,this.hoveredToken,i),this.clearHoveredToken()),this.hoveredLine!=null&&((f=(u=this.options).onLineLeave)==null||f.call(u,{...this.hoveredLine,event:i}),this.clearHoveredLine())});x(this,"handlePointerDown",i=>{if(i.pointerType==="mouse"&&i.button!==0||this.pre==null||this.pointerSession.mode!=="idle")return;const n=i.composedPath();Ng(n)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(i,n):this.startLineSelectionFromPointerDown(i,n)});x(this,"handleDocumentPointerMove",i=>{const{enableLineSelection:n=!1}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(i.pointerId!==this.pointerSession.pointerId)return;const a=this.getSelectionPointFromPath(i.composedPath());if(a==null)return;this.pointerSession.current=a,n===!0&&this.updateSelection(a.lineNumber,a.side);return}case"selecting":{if(i.pointerId!==this.pointerSession.pointerId)return;const a=this.getSelectionPointerInfo(i.composedPath(),!1);if(a==null||this.selectionAnchor==null)return;this.updateSelection(a.lineNumber,a.eventSide);return}case"pendingSingleLineUnselect":{if(i.pointerId!==this.pointerSession.pointerId)return;const a=this.getSelectionPointerInfo(i.composedPath(),!1);if(a==null||this.selectionAnchor==null)return;const r={lineNumber:a.lineNumber,side:a.eventSide};if(a1(this.pointerSession.pending,r))return;this.updateSelection(a.lineNumber,a.eventSide,!1),this.notifySelectionStart(this.selectedRange),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:i.pointerId};return}}});x(this,"handleDocumentPointerUp",i=>{const{enableLineSelection:n=!1,onGutterUtilityClick:a}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(i.pointerId!==this.pointerSession.pointerId)return;const r=this.getSelectionPointFromPath(i.composedPath());r!=null&&(this.pointerSession.current=r,n&&this.updateSelection(r.lineNumber,r.side)),a==null||a(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,n&&(this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(i.pointerId!==this.pointerSession.pointerId)return;this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted();return;case"selecting":if(i.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted()}});x(this,"handleDocumentPointerCancel",i=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":case"selecting":case"pendingSingleLineUnselect":if("pointerId"in this.pointerSession&&i.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}});x(this,"renderSelection",()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;const i=this.pre.querySelectorAll("[data-selected-line]");for(const d of i)d.removeAttribute("data-selected-line");if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;const{children:n}=this.pre;if(n.length===0)return;if(n.length>2)throw console.error(n),new Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");const a=this.pre.getAttribute("data-diff-type")==="split",r=this.getIndexesFromSelection(this.selectedRange,a);if(r==null)throw console.error({rowRange:r,selectedRange:this.selectedRange}),new Error("InteractionManager.renderSelection: No valid rowRange");const s=r.start===r.end,u=Math.min(r.start,r.end),f=Math.max(r.start,r.end);for(const d of n){const[h,m]=d.children,v=m.children.length;if(v!==h.children.length)throw new Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");for(let g=0;g<v;g++){const y=m.children[g],_=h.children[g];if(!(y instanceof HTMLElement)||!(_ instanceof HTMLElement))continue;const E=this.parseLineIndex(y,a);if((E??0)>f)break;if(E==null||E<u)continue;let w=s?"single":E===u?"first":E===f?"last":"";y.setAttribute("data-selected-line",w),_.setAttribute("data-selected-line",w),_.nextSibling instanceof HTMLElement&&y.nextSibling instanceof HTMLElement&&(y.nextSibling.hasAttribute("data-line-annotation")||y.nextSibling.hasAttribute("data-merge-conflict-actions"))&&(s?(w="last",y.setAttribute("data-selected-line","first")):E===u?w="":E===f&&y.setAttribute("data-selected-line",""),y.nextSibling.setAttribute("data-selected-line",w),_.nextSibling.setAttribute("data-selected-line",w))}}});this.mode=i,this.options=n}setOptions(i){this.options=i}cleanUp(){var i,n,a,r,s,u,f;(i=this.pre)==null||i.removeEventListener("click",this.handlePointerClick),(n=this.pre)==null||n.removeEventListener("pointerdown",this.handlePointerDown),(a=this.pre)==null||a.removeEventListener("pointermove",this.handlePointerMove),(r=this.pre)==null||r.removeEventListener("pointerleave",this.handlePointerLeave),(s=this.pre)==null||s.removeAttribute("data-interactive-lines"),(u=this.pre)==null||u.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,(f=this.gutterUtilityContainer)==null||f.remove(),this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(i){this.setSelectionDirty();const{usesCustomGutterUtility:n=!1,enableGutterUtility:a=!1}=this.options;this.pre!==i&&(this.cleanUp(),this.pre=i),a?this.ensureGutterUtilityNode(n):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode==="gutterSelecting"&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(i),this.updateInteractiveLineAttributes(),this.renderSelection()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(i){const n=!(i===this.selectedRange||_g(i??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!n||(this.selectedRange=i,this.renderSelection(),n&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}handlePointerEvent({eventType:i,event:n}){var E,w,N;const{__debugPointerEvents:a}=this.options,r=n.composedPath();Vn(a,i,"FileDiff.DEBUG.handlePointerEvent:",{eventType:i,composedPath:r});const s=this.resolvePointerTarget(r);Vn(a,i,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",s);const{onLineClick:u,onLineNumberClick:f,onLineEnter:d,onLineLeave:h,onTokenClick:m,onTokenEnter:v,onTokenLeave:g,onHunkExpand:y,onMergeConflictActionClick:_}=this.options;switch(i){case"move":{const D=Pc(s)&&((E=this.hoveredLine)==null?void 0:E.lineElement)===s.lineElement;Bo(s)&&((w=this.hoveredToken)==null?void 0:w.tokenElement)===s.tokenElement||(this.hoveredToken!=null&&(g==null||g(this.hoveredToken,n),this.clearHoveredToken()),Bo(s)&&(this.setHoveredToken(this.toTokenEventBaseProps(s)),v==null||v(this.hoveredToken,n))),D||(this.hoveredLine!=null&&((N=this.gutterUtilityContainer)==null||N.remove(),h==null||h({...this.hoveredLine,event:n}),this.clearHoveredLine()),Pc(s)&&(this.setHoveredLine(this.toEventBaseProps(s)),this.gutterUtilityContainer!=null&&s.numberElement.appendChild(this.gutterUtilityContainer),d==null||d({...this.hoveredLine,event:n})));break}case"click":{if(s==null)break;if(CS(s)&&_!=null){_(s);break}if(ES(s)&&y!=null){y(s.hunkIndex,n.shiftKey?"both":s.direction,n.shiftKey?Number.POSITIVE_INFINITY:void 0);break}if(!Pc(s))break;Bo(s)&&m!=null&&m(this.toTokenEventBaseProps(s),n);const D=this.toEventBaseProps(s);f!=null&&s.numberColumn?f({...D,event:n}):u!=null&&u({...D,event:n});break}}}syncPointerListeners(i){const{__debugPointerEvents:n,lineHoverHighlight:a="disabled",onLineClick:r,onLineNumberClick:s,onLineEnter:u,onLineLeave:f,onTokenClick:d,onTokenEnter:h,onTokenLeave:m,onHunkExpand:v,onMergeConflictActionClick:g,enableGutterUtility:y=!1,enableLineSelection:_=!1,onGutterUtilityClick:E}=this.options,w=E!=null,N=a!=="disabled"||r!=null||s!=null||u!=null||f!=null||d!=null||h!=null||m!=null||v!=null||g!=null||y||_||w;N&&!this.hasPointerListeners?(i.addEventListener("click",this.handlePointerClick),i.addEventListener("pointerdown",this.handlePointerDown),i.addEventListener("pointermove",this.handlePointerMove),i.addEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!0,Vn(n,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(()=>{const T=[];return(n==="both"||n==="click")&&(r!=null&&T.push("onLineClick"),s!=null&&T.push("onLineNumberClick"),v!=null&&T.push("expandable hunk separators"),g!=null&&T.push("merge conflict actions")),T})()),Vn(n,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),Vn(n,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")):!N&&this.hasPointerListeners&&(i.removeEventListener("click",this.handlePointerClick),i.removeEventListener("pointerdown",this.handlePointerDown),i.removeEventListener("pointermove",this.handlePointerMove),i.removeEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!1);const D=this.pointerSession.mode==="selecting"||this.pointerSession.mode==="pendingSingleLineUnselect",L=this.pointerSession.mode==="gutterSelecting";(!_&&D||!w&&L)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;const{onLineClick:i,onLineNumberClick:n,enableLineSelection:a=!1}=this.options,r=i!=null,s=n!=null||a;r&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!r&&this.interactiveLinesAttr&&(this.pre.removeAttribute("data-interactive-lines"),this.interactiveLinesAttr=!1),s&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute("data-interactive-line-numbers",""),this.interactiveLineNumbersAttr=!0):!s&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute("data-interactive-line-numbers"),this.interactiveLineNumbersAttr=!1)}startLineSelectionFromPointerDown(i,n){var h,m;const{enableLineSelection:a=!1}=this.options;if(!a)return;const r=this.getSelectionPointerInfo(n,!0);if(r==null)return;const{pre:s}=this;if(s==null)return;i.preventDefault();const{lineNumber:u,eventSide:f,lineIndex:d}=r;if(i.shiftKey&&this.selectedRange!=null){const v=this.getIndexesFromSelection(this.selectedRange,s.getAttribute("data-diff-type")==="split");if(v==null)return;const g=v.start<=v.end?d>=v.start:d<=v.end;this.selectionAnchor={lineNumber:g?this.selectedRange.start:this.selectedRange.end,side:g?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(u,f,!1),this.notifySelectionStart(this.selectedRange),this.pointerSession={mode:"selecting",pointerId:i.pointerId},this.attachDocumentPointerListeners();return}if(((h=this.selectedRange)==null?void 0:h.start)===u&&((m=this.selectedRange)==null?void 0:m.end)===u){const v={lineNumber:u,side:f};this.selectionAnchor=v,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:i.pointerId,anchor:v,pending:v},this.attachDocumentPointerListeners();return}this.selectedRange=null,this.selectionAnchor={lineNumber:u,side:f},this.updateSelection(u,f,!1),this.notifySelectionStart(this.selectedRange),this.pointerSession={mode:"selecting",pointerId:i.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(i,n){const{enableLineSelection:a=!1,onGutterUtilityClick:r}=this.options;if(r==null)return;const s=this.getSelectionPointFromPath(n);s!=null&&(i.preventDefault(),i.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:i.pointerId,anchor:s,current:s},a&&(this.selectionAnchor={lineNumber:s.lineNumber,side:s.side},this.updateSelection(s.lineNumber,s.side,!1),this.notifySelectionStart(this.selectedRange)),this.attachDocumentPointerListeners())}clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute("data-hovered"),this.hoveredLine.numberElement.removeAttribute("data-hovered"),this.hoveredLine=void 0)}setHoveredLine(i){const{lineHoverHighlight:n="disabled"}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=i,n!=="disabled"&&((n==="both"||n==="line")&&this.hoveredLine.lineElement.setAttribute("data-hovered",""),(n==="both"||n==="number")&&this.hoveredLine.numberElement.setAttribute("data-hovered",""))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(i){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=i}ensureGutterUtilityNode(i){var n;if(this.gutterUtilityContainer==null&&(this.gutterUtilityContainer=document.createElement("div"),this.gutterUtilityContainer.setAttribute("data-gutter-utility-slot","")),i)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot==null&&(this.gutterUtilitySlot=document.createElement("slot"),this.gutterUtilitySlot.name="gutter-utility-slot"),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if((n=this.gutterUtilitySlot)==null||n.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){const a=document.createElement("div");a.innerHTML=qa(i1());const r=a.firstElementChild;if(!(r instanceof HTMLButtonElement))throw new Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");r.remove(),this.gutterUtilityButton=r}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||(document.addEventListener("pointermove",this.handleDocumentPointerMove),document.addEventListener("pointerup",this.handleDocumentPointerUp),document.addEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&(document.removeEventListener("pointermove",this.handleDocumentPointerMove),document.removeEventListener("pointerup",this.handleDocumentPointerUp),document.removeEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!1)}clearPointerSession(){this.pointerSession={mode:"idle"}}clearPendingSingleLineState(){this.pointerSession.mode==="pendingSingleLineUnselect"&&(this.pointerSession={mode:"idle"})}getSelectionPointerInfo(i,n){const a=this.resolvePointerTarget(i);if(_f(a)&&!(n&&!a.numberColumn)&&a.splitLineIndex!=null)return{lineIndex:a.splitLineIndex,lineNumber:a.lineNumber,eventSide:this.mode==="diff"?a.side:void 0}}getSelectionPointFromPath(i){const n=this.resolvePointerTarget(i);if(_f(n))return{lineNumber:n.lineNumber,side:this.mode==="diff"?n.side:void 0}}getLineIndex(i,n){const{getLineIndex:a}=this.options;return a!=null?a(i,n):[i-1,i-1]}updateSelection(i,n,a=!0){var u,f;const{selectedRange:r}=this;let s;if(i==null)s=null;else{const d=((u=this.selectionAnchor)==null?void 0:u.side)??n,h=((f=this.selectionAnchor)==null?void 0:f.lineNumber)??i;s=this.buildSelectionRange(h,i,d,n)}_g(r??void 0,s??void 0)||(this.selectedRange=s,a&&this.notifySelectionChangeDelta(),this.queuedSelectionRender??(this.queuedSelectionRender=requestAnimationFrame(this.renderSelection)))}getIndexesFromSelection(i,n){if(this.pre==null)return;const a=this.getLineIndex(i.start,i.side),r=this.getLineIndex(i.end,i.endSide??i.side);return a!=null&&r!=null?{start:n?a[1]:a[0],end:n?r[1]:r[0]}:void 0}notifySelectionCommitted(){var i,n;(n=(i=this.options).onLineSelected)==null||n.call(i,this.selectedRange??null)}notifySelectionChangeDelta(){var i,n;(n=(i=this.options).onLineSelectionChange)==null||n.call(i,this.selectedRange??null)}notifySelectionStart(i){var n,a;(a=(n=this.options).onLineSelectionStart)==null||a.call(n,i)}notifySelectionEnd(i){var n,a;(a=(n=this.options).onLineSelectionEnd)==null||a.call(n,i)}toEventBaseProps(i){return this.mode==="file"?{type:"line",lineElement:i.lineElement,lineNumber:i.lineNumber,numberColumn:i.numberColumn,numberElement:i.numberElement}:{type:"diff-line",annotationSide:i.side,lineType:i.lineType,lineElement:i.lineElement,numberElement:i.numberElement,lineNumber:i.lineNumber,numberColumn:i.numberColumn}}toTokenEventBaseProps({lineCharEnd:i,lineCharStart:n,lineNumber:a,side:r,tokenElement:s,tokenText:u}){return this.mode==="file"?{type:"token",lineCharEnd:i,lineCharStart:n,lineNumber:a,tokenElement:s,tokenText:u}:{type:"token",lineCharEnd:i,lineCharStart:n,lineNumber:a,side:r,tokenElement:s,tokenText:u}}buildSelectedLineRange(i,n){return this.buildSelectionRange(i.lineNumber,n.lineNumber,i.side,n.side)}buildSelectionRange(i,n,a,r){return{start:i,end:n,...a!=null?{side:a}:{},...a!==r&&r!=null?{endSide:r}:{}}}resolvePointerTarget(i){let n=!1,a,r,s,u,f,d,h,m,v,g;for(const _ of i){if(!(_ instanceof HTMLElement))continue;if(g==null&&_.hasAttribute("data-merge-conflict-action")){const D=_.getAttribute("data-merge-conflict-action")??void 0,L=_.getAttribute("data-merge-conflict-conflict-index")??void 0,T=L!=null?Number.parseInt(L,10):NaN;AS(D)&&Number.isFinite(T)&&(g={kind:"merge-conflict-action",resolution:D,conflictIndex:T})}if(d==null&&_.hasAttribute("data-char")){d=_;const D=_.getAttribute("data-char");if(D!=null){const L=Number.parseInt(D,10);if(!Number.isNaN(L)){const T=_.textContent??"",U=L+T.length;(T.trim()!==""||this.options.enableTokenInteractionsOnWhitespace===!0)&&(h={tokenElement:d,lineCharStart:L,lineCharEnd:U,tokenText:T});continue}}}const E=f==null?_.getAttribute("data-column-number")??void 0:void 0;if(E!=null){f=_,v=Number.parseInt(E,10),n=!0,a=Og(_),u=_.getAttribute("data-line-index")??void 0;continue}const w=s==null?_.getAttribute("data-line")??void 0:void 0;if(w!=null){s=_,v=Number.parseInt(w,10),a=Og(_),u=_.getAttribute("data-line-index")??void 0;continue}if(m==null&&_.hasAttribute("data-expand-button")){m={hunkIndex:void 0,direction:_.hasAttribute("data-expand-up")?"up":_.hasAttribute("data-expand-down")?"down":"both"};continue}const N=m!=null?_.getAttribute("data-expand-index")??void 0:void 0;if(m!=null&&N!=null){const D=Number.parseInt(N,10);Number.isNaN(D)||(m.hunkIndex=D);continue}if(r==null&&_.hasAttribute("data-code")){r=_;break}}if(g!=null)return g;if((m==null?void 0:m.hunkIndex)!=null)return{type:"line-info",hunkIndex:m.hunkIndex,direction:m.direction};if(s??(s=u!=null?Rg(r,`[data-line][data-line-index="${u}"]`):void 0),f??(f=u!=null?Rg(r,`[data-column-number][data-line-index="${u}"]`):void 0),r==null||s==null||f==null||a==null||v==null||Number.isNaN(v))return;const y=this.parseLineIndex(s,this.isSplitDiff());return h!=null?this.mode==="file"?{kind:"token",lineType:a,lineElement:s,lineNumber:v,numberColumn:n,numberElement:f,side:void 0,splitLineIndex:y,...h}:{kind:"token",lineType:a,lineElement:s,lineNumber:v,numberColumn:n,numberElement:f,side:Dg(a,r),splitLineIndex:y,...h}:this.mode==="file"?{kind:"line",lineType:a,lineElement:s,lineNumber:v,numberColumn:n,numberElement:f,side:void 0,splitLineIndex:y}:{kind:"line",lineType:a,lineElement:s,lineNumber:v,numberColumn:n,numberElement:f,side:Dg(a,r),splitLineIndex:y}}isSplitDiff(){var i;return((i=this.pre)==null?void 0:i.getAttribute("data-diff-type"))==="split"}parseLineIndex(i,n){const a=(i.getAttribute("data-line-index")??"").split(",").map(r=>Number.parseInt(r,10)).filter(r=>!Number.isNaN(r));if(n&&a.length===2)return a[1];if(!n)return a[0]}};function kg({enableTokenInteractionsOnWhitespace:i,enableGutterUtility:n,enableHoverUtility:a,lineHoverHighlight:r,onGutterUtilityClick:s,onLineClick:u,onLineEnter:f,onLineLeave:d,onLineNumberClick:h,onTokenClick:m,onTokenEnter:v,onTokenLeave:g,renderGutterUtility:y,renderHoverUtility:_,__debugPointerEvents:E,enableLineSelection:w,onLineSelected:N,onLineSelectionStart:D,onLineSelectionChange:L,onLineSelectionEnd:T},U,q,V){return{enableTokenInteractionsOnWhitespace:i,enableGutterUtility:SS({enableGutterUtility:n,enableHoverUtility:a,renderGutterUtility:y,renderHoverUtility:_,onGutterUtilityClick:s}),usesCustomGutterUtility:y!=null||_!=null,lineHoverHighlight:r,onGutterUtilityClick:s,onHunkExpand:U,onMergeConflictActionClick:V,onLineClick:u,onLineEnter:f,onLineLeave:d,onLineNumberClick:h,onTokenClick:m,onTokenEnter:v,onTokenLeave:g,__debugPointerEvents:E,enableLineSelection:w,onLineSelected:N,onLineSelectionStart:D,onLineSelectionChange:L,onLineSelectionEnd:T,getLineIndex:q}}function SS({enableGutterUtility:i,enableHoverUtility:n,renderGutterUtility:a,renderHoverUtility:r,onGutterUtilityClick:s}){if(i!==void 0&&n!==void 0)throw new Error("Cannot use both 'enableGutterUtility' and deprecated 'enableHoverUtility'. Use only 'enableGutterUtility'.");if(a!=null&&r!=null)throw new Error("Cannot use both 'renderGutterUtility' and deprecated 'renderHoverUtility'. Use only 'renderGutterUtility'.");if(s!=null&&(a!=null||r!=null))throw new Error("Cannot use both 'onGutterUtilityClick' and render utility callbacks ('renderGutterUtility'/'renderHoverUtility'). Use only one gutter utility API.");return i??n??!1}function _f(i){return i!=null&&"kind"in i&&i.kind==="line"}function Bo(i){return i!=null&&"kind"in i&&i.kind==="token"}function Pc(i){return _f(i)||Bo(i)}function ES(i){return"type"in i&&i.type==="line-info"}function CS(i){return"kind"in i&&i.kind==="merge-conflict-action"}function AS(i){return i==="current"||i==="incoming"||i==="both"}function Rg(i,n){const a=i==null?void 0:i.querySelector(n);return a instanceof HTMLElement?a:void 0}function Dg(i,n){switch(i){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return n.hasAttribute("data-deletions")?"deletions":"additions"}}function Og(i){const n=i.getAttribute("data-line-type");if(n!=null)switch(n){case"change-deletion":case"change-addition":case"context":case"context-expanded":return n;default:return}}function Ng(i){for(const n of i)if(n instanceof HTMLElement&&n.hasAttribute("data-utility-button"))return!0;return!1}function Vn(i="none",n,...a){switch(i){case"none":return;case"both":break;case"click":if(n!=="click")return;break;case"move":if(n!=="move")return;break}console.log(...a)}var TS=class{constructor(){x(this,"observedNodes",new Map);x(this,"queuedUpdates",new Map);x(this,"resizeObserver");x(this,"handleResizeObserver",i=>{for(const n of i){const{target:a,borderBoxSize:r}=n;if(!(a instanceof HTMLElement)){console.error("FileDiff.handleResizeObserver: Invalid element for ResizeObserver",n);continue}const s=this.observedNodes.get(a);if(s==null){console.error("FileDiff.handleResizeObserver: Not a valid observed node",n);continue}const u=r[0];if(s.type==="annotations"){const f=(()=>{if(a===s.column1.child)return s.column1;if(a===s.column2.child)return s.column2})();if(f==null){console.error("FileDiff.handleResizeObserver: Couldn't find a column for",{item:s,target:a});continue}f.childHeight=u.blockSize;const d=Math.max(s.column1.childHeight,s.column2.childHeight);this.applyNewHeight(s,d)}else if(s.type==="code"){const f=[a,u.inlineSize],d=this.queuedUpdates.get(s)??[];d.push(f),this.queuedUpdates.set(s,d)}}this.handleColumnChange()});x(this,"handleColumnChange",()=>{for(const[i,n]of this.queuedUpdates)for(const[a,r]of n)if(a===i.codeElement){const s=Math.max(Math.floor(r),0);if(s!==i.codeWidth){const u=Math.max(s-i.numberWidth,0);i.codeWidth=s===0?"auto":s,i.codeElement.style.setProperty("--diffs-column-content-width",`${u>0?`${u}px`:"auto"}`),i.codeElement.style.setProperty("--diffs-column-width",`${typeof i.codeWidth=="number"?`${i.codeWidth}px`:"auto"}`)}i.numberElement!=null&&typeof i.codeWidth=="number"&&i.numberWidth===0&&n.push([i.numberElement,i.numberElement.getBoundingClientRect().width])}else if(a===i.numberElement){const s=Math.max(Math.ceil(r),0);if(s!==i.numberWidth&&(i.numberWidth=s,i.codeElement.style.setProperty("--diffs-column-number-width",`${i.numberWidth===0?"auto":`${i.numberWidth}px`}`),i.codeWidth!=="auto")){const u=Math.max(i.codeWidth-i.numberWidth,0);i.codeElement.style.setProperty("--diffs-column-content-width",`${u===0?"auto":`${u}px`}`)}}this.queuedUpdates.clear()})}cleanUp(){var i;(i=this.resizeObserver)==null||i.disconnect(),this.observedNodes.clear(),this.queuedUpdates.clear()}setup(i,n){this.resizeObserver??(this.resizeObserver=new ResizeObserver(this.handleResizeObserver));const a=i.querySelectorAll("code"),r=new Map(this.observedNodes);this.observedNodes.clear();for(const s of a){let u=r.get(s);if(u!=null&&u.type!=="code")throw new Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let f=s.firstElementChild;f instanceof HTMLElement||(f=null),u!=null?(this.observedNodes.set(s,u),r.delete(s),u.numberElement!==f?(u.numberElement!=null&&this.resizeObserver.unobserve(u.numberElement),f!=null&&(this.resizeObserver.observe(f),r.delete(f),this.observedNodes.set(f,u)),u.numberElement=f):u.numberElement!=null&&(r.delete(u.numberElement),this.observedNodes.set(u.numberElement,u))):(u={type:"code",codeElement:s,numberElement:f,codeWidth:"auto",numberWidth:0},this.observedNodes.set(s,u),this.resizeObserver.observe(s),f!=null&&(this.observedNodes.set(f,u),this.resizeObserver.observe(f)))}if(a.length>1&&!n){const s=i.querySelectorAll('[data-line-annotation*=","]'),u=new Map;for(const f of s){if(!(f instanceof HTMLElement))continue;const{lineAnnotation:d=""}=f.dataset;if(!/^\d+,\d+$/.test(d)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:d,element:f});continue}let h=u.get(d);h==null&&(h=[],u.set(d,h)),h.push(f)}for(const[f,d]of u){if(d.length!==2){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",f,d);continue}const[h,m]=d,v=h.firstElementChild,g=m.firstElementChild;if(!(h instanceof HTMLElement)||!(m instanceof HTMLElement)||!(v instanceof HTMLElement)||!(g instanceof HTMLElement))continue;let y=r.get(v);if(y!=null){this.observedNodes.set(v,y),this.observedNodes.set(g,y),r.delete(v),r.delete(g);continue}y={type:"annotations",column1:{container:h,child:v,childHeight:v.getBoundingClientRect().height},column2:{container:m,child:g,childHeight:g.getBoundingClientRect().height},currentHeight:"auto"};const _=Math.max(y.column1.childHeight,y.column2.childHeight);this.applyNewHeight(y,_),this.observedNodes.set(v,y),this.observedNodes.set(g,y),this.resizeObserver.observe(v),this.resizeObserver.observe(g)}}for(const s of r.keys())s.isConnected&&(s.style.removeProperty("--diffs-column-content-width"),s.style.removeProperty("--diffs-column-number-width"),s.style.removeProperty("--diffs-column-width"),s.parentElement instanceof HTMLElement&&s.parentElement.style.removeProperty("--diffs-annotation-min-height")),this.resizeObserver.unobserve(s);r.clear()}applyNewHeight(i,n){n!==i.currentHeight&&(i.currentHeight=Math.max(n,0),i.column1.container.style.setProperty("--diffs-annotation-min-height",`${i.currentHeight}px`),i.column2.container.style.setProperty("--diffs-annotation-min-height",`${i.currentHeight}px`))}};const Wl=new Map,$c=new Map,xS=new Map,Sf=new Set;function Mg(i){for(const n of Array.isArray(i)?i:[i])if(!Sf.has(n))return!1;return!0}function zg(i,n){i=Array.isArray(i)?i:[i];for(const a of i){if(Sf.has(a.name))continue;let r=Wl.get(a.name);r==null&&(r=a,Wl.set(a.name,r)),Sf.add(r.name),n.loadLanguageSync(r.data)}}function K0(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}const wS="modulepreload",LS=function(i){return"/"+i},Ig={},C=function(n,a,r){let s=Promise.resolve();if(a&&a.length>0){let f=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));s=f(a.map(m=>{if(m=LS(m),m in Ig)return;Ig[m]=!0;const v=m.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const y=document.createElement("link");if(y.rel=v?"stylesheet":wS,v||(y.as="script"),y.crossOrigin="",y.href=m,h&&y.setAttribute("nonce",h),document.head.appendChild(y),v)return new Promise((_,E)=>{y.addEventListener("load",_),y.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(f){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=f,window.dispatchEvent(d),!d.defaultPrevented)throw f}return s.then(f=>{for(const d of f||[])d.status==="rejected"&&u(d.reason);return n().catch(u)})};let et=class extends Error{constructor(n){super(n),this.name="ShikiError"}};function kS(i){return Xf(i)}function Xf(i){return Array.isArray(i)?RS(i):i instanceof RegExp?i:typeof i=="object"?DS(i):i}function RS(i){let n=[];for(let a=0,r=i.length;a<r;a++)n[a]=Xf(i[a]);return n}function DS(i){let n={};for(let a in i)n[a]=Xf(i[a]);return n}function W0(i,...n){return n.forEach(a=>{for(let r in a)i[r]=a[r]}),i}function J0(i){const n=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return n===0?i:~n===i.length-1?J0(i.substring(0,i.length-1)):i.substr(~n+1)}var qc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ro=class{static hasCaptures(i){return i===null?!1:(qc.lastIndex=0,qc.test(i))}static replaceCaptures(i,n,a){return i.replace(qc,(r,s,u,f)=>{let d=a[parseInt(s||u,10)];if(d){let h=n.substring(d.start,d.end);for(;h[0]===".";)h=h.substring(1);switch(f){case"downcase":return h.toLowerCase();case"upcase":return h.toUpperCase();default:return h}}else return r})}};function ev(i,n){return i<n?-1:i>n?1:0}function tv(i,n){if(i===null&&n===null)return 0;if(!i)return-1;if(!n)return 1;let a=i.length,r=n.length;if(a===r){for(let s=0;s<a;s++){let u=ev(i[s],n[s]);if(u!==0)return u}return 0}return a-r}function Ug(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function nv(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var iv=class{constructor(i){x(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const n=this.fn(i);return this.cache.set(i,n),n}},Qo=class{constructor(i,n,a){x(this,"_cachedMatchRoot",new iv(i=>this._root.match(i)));this._colorMap=i,this._defaults=n,this._root=a}static createFromRawTheme(i,n){return this.createFromParsedTheme(MS(i),n)}static createFromParsedTheme(i,n){return IS(i,n)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const n=i.scopeName,r=this._cachedMatchRoot.get(n).find(s=>OS(i.parent,s.parentScopes));return r?new av(r.fontStyle,r.foreground,r.background):null}},Yc=class jo{constructor(n,a){this.parent=n,this.scopeName=a}static push(n,a){for(const r of a)n=new jo(n,r);return n}static from(...n){let a=null;for(let r=0;r<n.length;r++)a=new jo(a,n[r]);return a}push(n){return new jo(this,n)}getSegments(){let n=this;const a=[];for(;n;)a.push(n.scopeName),n=n.parent;return a.reverse(),a}toString(){return this.getSegments().join(" ")}extends(n){return this===n?!0:this.parent===null?!1:this.parent.extends(n)}getExtensionIfDefined(n){const a=[];let r=this;for(;r&&r!==n;)a.push(r.scopeName),r=r.parent;return r===n?a.reverse():void 0}};function OS(i,n){if(n.length===0)return!0;for(let a=0;a<n.length;a++){let r=n[a],s=!1;if(r===">"){if(a===n.length-1)return!1;r=n[++a],s=!0}for(;i&&!NS(i.scopeName,r);){if(s)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function NS(i,n){return n===i||i.startsWith(n)&&i[n.length]==="."}var av=class{constructor(i,n,a){this.fontStyle=i,this.foregroundId=n,this.backgroundId=a}};function MS(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let n=i.settings,a=[],r=0;for(let s=0,u=n.length;s<u;s++){let f=n[s];if(!f.settings)continue;let d;if(typeof f.scope=="string"){let g=f.scope;g=g.replace(/^[,]+/,""),g=g.replace(/[,]+$/,""),d=g.split(",")}else Array.isArray(f.scope)?d=f.scope:d=[""];let h=-1;if(typeof f.settings.fontStyle=="string"){h=0;let g=f.settings.fontStyle.split(" ");for(let y=0,_=g.length;y<_;y++)switch(g[y]){case"italic":h=h|1;break;case"bold":h=h|2;break;case"underline":h=h|4;break;case"strikethrough":h=h|8;break}}let m=null;typeof f.settings.foreground=="string"&&Ug(f.settings.foreground)&&(m=f.settings.foreground);let v=null;typeof f.settings.background=="string"&&Ug(f.settings.background)&&(v=f.settings.background);for(let g=0,y=d.length;g<y;g++){let E=d[g].trim().split(" "),w=E[E.length-1],N=null;E.length>1&&(N=E.slice(0,E.length-1),N.reverse()),a[r++]=new zS(w,N,s,h,m,v)}}return a}var zS=class{constructor(i,n,a,r,s,u){this.scope=i,this.parentScopes=n,this.index=a,this.fontStyle=r,this.foreground=s,this.background=u}},vt=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(vt||{});function IS(i,n){i.sort((h,m)=>{let v=ev(h.scope,m.scope);return v!==0||(v=tv(h.parentScopes,m.parentScopes),v!==0)?v:h.index-m.index});let a=0,r="#000000",s="#ffffff";for(;i.length>=1&&i[0].scope==="";){let h=i.shift();h.fontStyle!==-1&&(a=h.fontStyle),h.foreground!==null&&(r=h.foreground),h.background!==null&&(s=h.background)}let u=new US(n),f=new av(a,u.getId(r),u.getId(s)),d=new VS(new Ef(0,null,-1,0,0),[]);for(let h=0,m=i.length;h<m;h++){let v=i[h];d.insert(0,v.scope,v.parentScopes,v.fontStyle,u.getId(v.foreground),u.getId(v.background))}return new Qo(u,f,d)}var US=class{constructor(i){x(this,"_isFrozen");x(this,"_lastColorId");x(this,"_id2color");x(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let n=0,a=i.length;n<a;n++)this._color2id[i[n]]=n,this._id2color[n]=i[n]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let n=this._color2id[i];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return n=++this._lastColorId,this._color2id[i]=n,this._id2color[n]=i,n}getColorMap(){return this._id2color.slice(0)}},HS=Object.freeze([]),Ef=class lv{constructor(n,a,r,s,u){x(this,"scopeDepth");x(this,"parentScopes");x(this,"fontStyle");x(this,"foreground");x(this,"background");this.scopeDepth=n,this.parentScopes=a||HS,this.fontStyle=r,this.foreground=s,this.background=u}clone(){return new lv(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(n){let a=[];for(let r=0,s=n.length;r<s;r++)a[r]=n[r].clone();return a}acceptOverwrite(n,a,r,s){this.scopeDepth>n?console.log("how did this happen?"):this.scopeDepth=n,a!==-1&&(this.fontStyle=a),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},VS=class Cf{constructor(n,a=[],r={}){x(this,"_rulesWithParentScopes");this._mainRule=n,this._children=r,this._rulesWithParentScopes=a}static _cmpBySpecificity(n,a){if(n.scopeDepth!==a.scopeDepth)return a.scopeDepth-n.scopeDepth;let r=0,s=0;for(;n.parentScopes[r]===">"&&r++,a.parentScopes[s]===">"&&s++,!(r>=n.parentScopes.length||s>=a.parentScopes.length);){const u=a.parentScopes[s].length-n.parentScopes[r].length;if(u!==0)return u;r++,s++}return a.parentScopes.length-n.parentScopes.length}match(n){if(n!==""){let r=n.indexOf("."),s,u;if(r===-1?(s=n,u=""):(s=n.substring(0,r),u=n.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(u)}const a=this._rulesWithParentScopes.concat(this._mainRule);return a.sort(Cf._cmpBySpecificity),a}insert(n,a,r,s,u,f){if(a===""){this._doInsertHere(n,r,s,u,f);return}let d=a.indexOf("."),h,m;d===-1?(h=a,m=""):(h=a.substring(0,d),m=a.substring(d+1));let v;this._children.hasOwnProperty(h)?v=this._children[h]:(v=new Cf(this._mainRule.clone(),Ef.cloneArr(this._rulesWithParentScopes)),this._children[h]=v),v.insert(n+1,m,r,s,u,f)}_doInsertHere(n,a,r,s,u){if(a===null){this._mainRule.acceptOverwrite(n,r,s,u);return}for(let f=0,d=this._rulesWithParentScopes.length;f<d;f++){let h=this._rulesWithParentScopes[f];if(tv(h.parentScopes,a)===0){h.acceptOverwrite(n,r,s,u);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),u===0&&(u=this._mainRule.background),this._rulesWithParentScopes.push(new Ef(n,a,r,s,u))}},Ya=class Wt{static toBinaryStr(n){return n.toString(2).padStart(32,"0")}static print(n){const a=Wt.getLanguageId(n),r=Wt.getTokenType(n),s=Wt.getFontStyle(n),u=Wt.getForeground(n),f=Wt.getBackground(n);console.log({languageId:a,tokenType:r,fontStyle:s,foreground:u,background:f})}static getLanguageId(n){return(n&255)>>>0}static getTokenType(n){return(n&768)>>>8}static containsBalancedBrackets(n){return(n&1024)!==0}static getFontStyle(n){return(n&30720)>>>11}static getForeground(n){return(n&16744448)>>>15}static getBackground(n){return(n&4278190080)>>>24}static set(n,a,r,s,u,f,d){let h=Wt.getLanguageId(n),m=Wt.getTokenType(n),v=Wt.containsBalancedBrackets(n)?1:0,g=Wt.getFontStyle(n),y=Wt.getForeground(n),_=Wt.getBackground(n);return a!==0&&(h=a),r!==8&&(m=r),s!==null&&(v=s?1:0),u!==-1&&(g=u),f!==0&&(y=f),d!==0&&(_=d),(h<<0|m<<8|v<<10|g<<11|y<<15|_<<24)>>>0}};function Fo(i,n){const a=[],r=GS(i);let s=r.next();for(;s!==null;){let h=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":h=1;break;case"L":h=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let m=f();if(a.push({matcher:m,priority:h}),s!==",")break;s=r.next()}return a;function u(){if(s==="-"){s=r.next();const h=u();return m=>!!h&&!h(m)}if(s==="("){s=r.next();const h=d();return s===")"&&(s=r.next()),h}if(Hg(s)){const h=[];do h.push(s),s=r.next();while(Hg(s));return m=>n(h,m)}return null}function f(){const h=[];let m=u();for(;m;)h.push(m),m=u();return v=>h.every(g=>g(v))}function d(){const h=[];let m=f();for(;m&&(h.push(m),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");m=f()}return v=>h.some(g=>g(v))}}function Hg(i){return!!i&&!!i.match(/[\w\.:]+/)}function GS(i){let n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,a=n.exec(i);return{next:()=>{if(!a)return null;const r=a[0];return a=n.exec(i),r}}}function rv(i){typeof i.dispose=="function"&&i.dispose()}var Jl=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},BS=class{constructor(i,n){this.scopeName=i,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},jS=class{constructor(){x(this,"_references",[]);x(this,"_seenReferenceKeys",new Set);x(this,"visitedRule",new Set)}get references(){return this._references}add(i){const n=i.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(i))}},PS=class{constructor(i,n){x(this,"seenFullScopeRequests",new Set);x(this,"seenPartialScopeRequests",new Set);x(this,"Q");this.repo=i,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Jl(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const n=new jS;for(const a of i)$S(a,this.initialScopeName,this.repo,n);for(const a of n.references)if(a instanceof Jl){if(this.seenFullScopeRequests.has(a.scopeName))continue;this.seenFullScopeRequests.add(a.scopeName),this.Q.push(a)}else{if(this.seenFullScopeRequests.has(a.scopeName)||this.seenPartialScopeRequests.has(a.toKey()))continue;this.seenPartialScopeRequests.add(a.toKey()),this.Q.push(a)}}};function $S(i,n,a,r){const s=a.lookup(i.scopeName);if(!s){if(i.scopeName===n)throw new Error(`No grammar provided for <${n}>`);return}const u=a.lookup(n);i instanceof Jl?Po({baseGrammar:u,selfGrammar:s},r):Af(i.ruleName,{baseGrammar:u,selfGrammar:s,repository:s.repository},r);const f=a.injections(i.scopeName);if(f)for(const d of f)r.add(new Jl(d))}function Af(i,n,a){if(n.repository&&n.repository[i]){const r=n.repository[i];Zo([r],n,a)}}function Po(i,n){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&Zo(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},n),i.selfGrammar.injections&&Zo(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},n)}function Zo(i,n,a){for(const r of i){if(a.visitedRule.has(r))continue;a.visitedRule.add(r);const s=r.repository?W0({},n.repository,r.repository):n.repository;Array.isArray(r.patterns)&&Zo(r.patterns,{...n,repository:s},a);const u=r.include;if(!u)continue;const f=ov(u);switch(f.kind){case 0:Po({...n,selfGrammar:n.baseGrammar},a);break;case 1:Po(n,a);break;case 2:Af(f.ruleName,{...n,repository:s},a);break;case 3:case 4:const d=f.scopeName===n.selfGrammar.scopeName?n.selfGrammar:f.scopeName===n.baseGrammar.scopeName?n.baseGrammar:void 0;if(d){const h={baseGrammar:n.baseGrammar,selfGrammar:d,repository:s};f.kind===4?Af(f.ruleName,h,a):Po(h,a)}else f.kind===4?a.add(new BS(f.scopeName,f.ruleName)):a.add(new Jl(f.scopeName));break}}}var qS=class{constructor(){x(this,"kind",0)}},YS=class{constructor(){x(this,"kind",1)}},XS=class{constructor(i){x(this,"kind",2);this.ruleName=i}},QS=class{constructor(i){x(this,"kind",3);this.scopeName=i}},FS=class{constructor(i,n){x(this,"kind",4);this.scopeName=i,this.ruleName=n}};function ov(i){if(i==="$base")return new qS;if(i==="$self")return new YS;const n=i.indexOf("#");if(n===-1)return new QS(i);if(n===0)return new XS(i.substring(1));{const a=i.substring(0,n),r=i.substring(n+1);return new FS(a,r)}}var ZS=/\\(\d+)/,Vg=/\\(\d+)/g,KS=-1,sv=-2;var or=class{constructor(i,n,a,r){x(this,"$location");x(this,"id");x(this,"_nameIsCapturing");x(this,"_name");x(this,"_contentNameIsCapturing");x(this,"_contentName");this.$location=i,this.id=n,this._name=a||null,this._nameIsCapturing=Ro.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Ro.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${J0(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,n){return!this._nameIsCapturing||this._name===null||i===null||n===null?this._name:Ro.replaceCaptures(this._name,i,n)}getContentName(i,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ro.replaceCaptures(this._contentName,i,n)}},WS=class extends or{constructor(n,a,r,s,u){super(n,a,r,s);x(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=u}dispose(){}collectPatterns(n,a){throw new Error("Not supported!")}compile(n,a){throw new Error("Not supported!")}compileAG(n,a,r,s){throw new Error("Not supported!")}},JS=class extends or{constructor(n,a,r,s,u){super(n,a,r,null);x(this,"_match");x(this,"captures");x(this,"_cachedCompiledPatterns");this._match=new er(s,this.id),this.captures=u,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,a){a.push(this._match)}compile(n,a){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,a,r,s){return this._getCachedCompiledPatterns(n).compileAG(n,r,s)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Gg=class extends or{constructor(n,a,r,s,u){super(n,a,r,s);x(this,"hasMissingPatterns");x(this,"patterns");x(this,"_cachedCompiledPatterns");this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,a){for(const r of this.patterns)n.getRule(r).collectPatterns(n,a)}compile(n,a){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,a,r,s){return this._getCachedCompiledPatterns(n).compileAG(n,r,s)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Tf=class extends or{constructor(n,a,r,s,u,f,d,h,m,v){super(n,a,r,s);x(this,"_begin");x(this,"beginCaptures");x(this,"_end");x(this,"endHasBackReferences");x(this,"endCaptures");x(this,"applyEndPatternLast");x(this,"hasMissingPatterns");x(this,"patterns");x(this,"_cachedCompiledPatterns");this._begin=new er(u,this.id),this.beginCaptures=f,this._end=new er(d||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=h,this.applyEndPatternLast=m||!1,this.patterns=v.patterns,this.hasMissingPatterns=v.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(n,a){return this._end.resolveBackReferences(n,a)}collectPatterns(n,a){a.push(this._begin)}compile(n,a){return this._getCachedCompiledPatterns(n,a).compile(n)}compileAG(n,a,r,s){return this._getCachedCompiledPatterns(n,a).compileAG(n,r,s)}_getCachedCompiledPatterns(n,a){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new tr;for(const r of this.patterns)n.getRule(r).collectPatterns(n,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,a):this._cachedCompiledPatterns.setSource(0,a)),this._cachedCompiledPatterns}},Ko=class extends or{constructor(n,a,r,s,u,f,d,h,m){super(n,a,r,s);x(this,"_begin");x(this,"beginCaptures");x(this,"whileCaptures");x(this,"_while");x(this,"whileHasBackReferences");x(this,"hasMissingPatterns");x(this,"patterns");x(this,"_cachedCompiledPatterns");x(this,"_cachedCompiledWhilePatterns");this._begin=new er(u,this.id),this.beginCaptures=f,this.whileCaptures=h,this._while=new er(d,sv),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=m.patterns,this.hasMissingPatterns=m.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(n,a){return this._while.resolveBackReferences(n,a)}collectPatterns(n,a){a.push(this._begin)}compile(n,a){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,a,r,s){return this._getCachedCompiledPatterns(n).compileAG(n,r,s)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new tr;for(const a of this.patterns)n.getRule(a).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,a){return this._getCachedCompiledWhilePatterns(n,a).compile(n)}compileWhileAG(n,a,r,s){return this._getCachedCompiledWhilePatterns(n,a).compileAG(n,r,s)}_getCachedCompiledWhilePatterns(n,a){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new tr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,a||"￿"),this._cachedCompiledWhilePatterns}},uv=class gt{static createCaptureRule(n,a,r,s,u){return n.registerRule(f=>new WS(a,f,r,s,u))}static getCompiledRuleId(n,a,r){return n.id||a.registerRule(s=>{if(n.id=s,n.match)return new JS(n.$vscodeTextmateLocation,n.id,n.name,n.match,gt._compileCaptures(n.captures,a,r));if(typeof n.begin>"u"){n.repository&&(r=W0({},r,n.repository));let u=n.patterns;return typeof u>"u"&&n.include&&(u=[{include:n.include}]),new Gg(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,gt._compilePatterns(u,a,r))}return n.while?new Ko(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,gt._compileCaptures(n.beginCaptures||n.captures,a,r),n.while,gt._compileCaptures(n.whileCaptures||n.captures,a,r),gt._compilePatterns(n.patterns,a,r)):new Tf(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,gt._compileCaptures(n.beginCaptures||n.captures,a,r),n.end,gt._compileCaptures(n.endCaptures||n.captures,a,r),n.applyEndPatternLast,gt._compilePatterns(n.patterns,a,r))}),n.id}static _compileCaptures(n,a,r){let s=[];if(n){let u=0;for(const f in n){if(f==="$vscodeTextmateLocation")continue;const d=parseInt(f,10);d>u&&(u=d)}for(let f=0;f<=u;f++)s[f]=null;for(const f in n){if(f==="$vscodeTextmateLocation")continue;const d=parseInt(f,10);let h=0;n[f].patterns&&(h=gt.getCompiledRuleId(n[f],a,r)),s[d]=gt.createCaptureRule(a,n[f].$vscodeTextmateLocation,n[f].name,n[f].contentName,h)}}return s}static _compilePatterns(n,a,r){let s=[];if(n)for(let u=0,f=n.length;u<f;u++){const d=n[u];let h=-1;if(d.include){const m=ov(d.include);switch(m.kind){case 0:case 1:h=gt.getCompiledRuleId(r[d.include],a,r);break;case 2:let v=r[m.ruleName];v&&(h=gt.getCompiledRuleId(v,a,r));break;case 3:case 4:const g=m.scopeName,y=m.kind===4?m.ruleName:null,_=a.getExternalGrammar(g,r);if(_)if(y){let E=_.repository[y];E&&(h=gt.getCompiledRuleId(E,a,_.repository))}else h=gt.getCompiledRuleId(_.repository.$self,a,_.repository);break}}else h=gt.getCompiledRuleId(d,a,r);if(h!==-1){const m=a.getRule(h);let v=!1;if((m instanceof Gg||m instanceof Tf||m instanceof Ko)&&m.hasMissingPatterns&&m.patterns.length===0&&(v=!0),v)continue;s.push(h)}}return{patterns:s,hasMissingPatterns:(n?n.length:0)!==s.length}}},er=class cv{constructor(n,a){x(this,"source");x(this,"ruleId");x(this,"hasAnchor");x(this,"hasBackReferences");x(this,"_anchorCache");if(n&&typeof n=="string"){const r=n.length;let s=0,u=[],f=!1;for(let d=0;d<r;d++)if(n.charAt(d)==="\\"&&d+1<r){const m=n.charAt(d+1);m==="z"?(u.push(n.substring(s,d)),u.push("$(?!\\n)(?<!\\n)"),s=d+2):(m==="A"||m==="G")&&(f=!0),d++}this.hasAnchor=f,s===0?this.source=n:(u.push(n.substring(s,r)),this.source=u.join(""))}else this.hasAnchor=!1,this.source=n;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=a,typeof this.source=="string"?this.hasBackReferences=ZS.test(this.source):this.hasBackReferences=!1}clone(){return new cv(this.source,this.ruleId)}setSource(n){this.source!==n&&(this.source=n,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(n,a){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=a.map(s=>n.substring(s.start,s.end));return Vg.lastIndex=0,this.source.replace(Vg,(s,u)=>nv(r[parseInt(u,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=[],a=[],r=[],s=[],u,f,d,h;for(u=0,f=this.source.length;u<f;u++)d=this.source.charAt(u),n[u]=d,a[u]=d,r[u]=d,s[u]=d,d==="\\"&&u+1<f&&(h=this.source.charAt(u+1),h==="A"?(n[u+1]="￿",a[u+1]="￿",r[u+1]="A",s[u+1]="A"):h==="G"?(n[u+1]="￿",a[u+1]="G",r[u+1]="￿",s[u+1]="G"):(n[u+1]=h,a[u+1]=h,r[u+1]=h,s[u+1]=h),u++);return{A0_G0:n.join(""),A0_G1:a.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(n,a){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:n?a?this._anchorCache.A1_G1:this._anchorCache.A1_G0:a?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},tr=class{constructor(){x(this,"_items");x(this,"_hasAnchors");x(this,"_cached");x(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(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,n){this._items[i].source!==n&&(this._disposeCaches(),this._items[i].setSource(n))}compile(i){if(!this._cached){let n=this._items.map(a=>a.source);this._cached=new Bg(i,n,this._items.map(a=>a.ruleId))}return this._cached}compileAG(i,n,a){return this._hasAnchors?n?a?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,n,a)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,n,a)),this._anchorCache.A1_G0):a?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,n,a)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,n,a)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,n,a){let r=this._items.map(s=>s.resolveAnchors(n,a));return new Bg(i,r,this._items.map(s=>s.ruleId))}},Bg=class{constructor(i,n,a){x(this,"scanner");this.regExps=n,this.rules=a,this.scanner=i.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let n=0,a=this.rules.length;n<a;n++)i.push(" - "+this.rules[n]+": "+this.regExps[n]);return i.join(`
59
- `)}findNextMatchSync(i,n,a){const r=this.scanner.findNextMatchSync(i,n,a);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Xc=class{constructor(i,n){this.languageId=i,this.tokenType=n}},Pn,eE=(Pn=class{constructor(n,a){x(this,"_defaultAttributes");x(this,"_embeddedLanguagesMatcher");x(this,"_getBasicScopeAttributes",new iv(n=>{const a=this._scopeToLanguage(n),r=this._toStandardTokenType(n);return new Xc(a,r)}));this._defaultAttributes=new Xc(n,8),this._embeddedLanguagesMatcher=new tE(Object.entries(a||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(n){return n===null?Pn._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(n)}_scopeToLanguage(n){return this._embeddedLanguagesMatcher.match(n)||0}_toStandardTokenType(n){const a=n.match(Pn.STANDARD_TOKEN_TYPE_REGEXP);if(!a)return 8;switch(a[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!")}},x(Pn,"_NULL_SCOPE_METADATA",new Xc(0,0)),x(Pn,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Pn),tE=class{constructor(i){x(this,"values");x(this,"scopesRegExp");if(i.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(i);const n=i.map(([a,r])=>nv(a));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(i){if(!this.scopesRegExp)return;const n=i.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},jg=class{constructor(i,n){this.stack=i,this.stoppedEarly=n}};function fv(i,n,a,r,s,u,f,d){const h=n.content.length;let m=!1,v=-1;if(f){const _=nE(i,n,a,r,s,u);s=_.stack,r=_.linePos,a=_.isFirstLine,v=_.anchorPosition}const g=Date.now();for(;!m;){if(d!==0&&Date.now()-g>d)return new jg(s,!0);y()}return new jg(s,!1);function y(){const _=iE(i,n,a,r,s,v);if(!_){u.produce(s,h),m=!0;return}const E=_.captureIndices,w=_.matchedRuleId,N=E&&E.length>0?E[0].end>r:!1;if(w===KS){const D=s.getRule(i);u.produce(s,E[0].start),s=s.withContentNameScopesList(s.nameScopesList),Fl(i,n,a,s,u,D.endCaptures,E),u.produce(s,E[0].end);const L=s;if(s=s.parent,v=L.getAnchorPos(),!N&&L.getEnterPos()===r){s=L,u.produce(s,h),m=!0;return}}else{const D=i.getRule(w);u.produce(s,E[0].start);const L=s,T=D.getName(n.content,E),U=s.contentNameScopesList.pushAttributed(T,i);if(s=s.push(w,r,v,E[0].end===h,null,U,U),D instanceof Tf){const q=D;Fl(i,n,a,s,u,q.beginCaptures,E),u.produce(s,E[0].end),v=E[0].end;const V=q.getContentName(n.content,E),M=U.pushAttributed(V,i);if(s=s.withContentNameScopesList(M),q.endHasBackReferences&&(s=s.withEndRule(q.getEndWithResolvedBackReferences(n.content,E))),!N&&L.hasSameRuleAs(s)){s=s.pop(),u.produce(s,h),m=!0;return}}else if(D instanceof Ko){const q=D;Fl(i,n,a,s,u,q.beginCaptures,E),u.produce(s,E[0].end),v=E[0].end;const V=q.getContentName(n.content,E),M=U.pushAttributed(V,i);if(s=s.withContentNameScopesList(M),q.whileHasBackReferences&&(s=s.withEndRule(q.getWhileWithResolvedBackReferences(n.content,E))),!N&&L.hasSameRuleAs(s)){s=s.pop(),u.produce(s,h),m=!0;return}}else if(Fl(i,n,a,s,u,D.captures,E),u.produce(s,E[0].end),s=s.pop(),!N){s=s.safePop(),u.produce(s,h),m=!0;return}}E[0].end>r&&(r=E[0].end,a=!1)}}function nE(i,n,a,r,s,u){let f=s.beginRuleCapturedEOL?0:-1;const d=[];for(let h=s;h;h=h.pop()){const m=h.getRule(i);m instanceof Ko&&d.push({rule:m,stack:h})}for(let h=d.pop();h;h=d.pop()){const{ruleScanner:m,findOptions:v}=rE(h.rule,i,h.stack.endRule,a,r===f),g=m.findNextMatchSync(n,r,v);if(g){if(g.ruleId!==sv){s=h.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(u.produce(h.stack,g.captureIndices[0].start),Fl(i,n,a,h.stack,u,h.rule.whileCaptures,g.captureIndices),u.produce(h.stack,g.captureIndices[0].end),f=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,a=!1))}else{s=h.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:f,isFirstLine:a}}function iE(i,n,a,r,s,u){const f=aE(i,n,a,r,s,u),d=i.getInjections();if(d.length===0)return f;const h=lE(d,i,n,a,r,s,u);if(!h)return f;if(!f)return h;const m=f.captureIndices[0].start,v=h.captureIndices[0].start;return v<m||h.priorityMatch&&v===m?h:f}function aE(i,n,a,r,s,u){const f=s.getRule(i),{ruleScanner:d,findOptions:h}=dv(f,i,s.endRule,a,r===u),m=d.findNextMatchSync(n,r,h);return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}function lE(i,n,a,r,s,u,f){let d=Number.MAX_VALUE,h=null,m,v=0;const g=u.contentNameScopesList.getScopeNames();for(let y=0,_=i.length;y<_;y++){const E=i[y];if(!E.matcher(g))continue;const w=n.getRule(E.ruleId),{ruleScanner:N,findOptions:D}=dv(w,n,null,r,s===f),L=N.findNextMatchSync(a,s,D);if(!L)continue;const T=L.captureIndices[0].start;if(!(T>=d)&&(d=T,h=L.captureIndices,m=L.ruleId,v=E.priority,d===s))break}return h?{priorityMatch:v===-1,captureIndices:h,matchedRuleId:m}:null}function dv(i,n,a,r,s){return{ruleScanner:i.compileAG(n,a,r,s),findOptions:0}}function rE(i,n,a,r,s){return{ruleScanner:i.compileWhileAG(n,a,r,s),findOptions:0}}function Fl(i,n,a,r,s,u,f){if(u.length===0)return;const d=n.content,h=Math.min(u.length,f.length),m=[],v=f[0].end;for(let g=0;g<h;g++){const y=u[g];if(y===null)continue;const _=f[g];if(_.length===0)continue;if(_.start>v)break;for(;m.length>0&&m[m.length-1].endPos<=_.start;)s.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?s.produceFromScopes(m[m.length-1].scopes,_.start):s.produce(r,_.start),y.retokenizeCapturedWithRuleId){const w=y.getName(d,f),N=r.contentNameScopesList.pushAttributed(w,i),D=y.getContentName(d,f),L=N.pushAttributed(D,i),T=r.push(y.retokenizeCapturedWithRuleId,_.start,-1,!1,null,N,L),U=i.createOnigString(d.substring(0,_.end));fv(i,U,a&&_.start===0,_.start,T,s,!1,0),rv(U);continue}const E=y.getName(d,f);if(E!==null){const N=(m.length>0?m[m.length-1].scopes:r.contentNameScopesList).pushAttributed(E,i);m.push(new oE(N,_.end))}}for(;m.length>0;)s.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}var oE=class{constructor(i,n){x(this,"scopes");x(this,"endPos");this.scopes=i,this.endPos=n}};function sE(i,n,a,r,s,u,f,d){return new cE(i,n,a,r,s,u,f,d)}function Pg(i,n,a,r,s){const u=Fo(n,Wo),f=uv.getCompiledRuleId(a,r,s.repository);for(const d of u)i.push({debugSelector:n,matcher:d.matcher,ruleId:f,grammar:s,priority:d.priority})}function Wo(i,n){if(n.length<i.length)return!1;let a=0;return i.every(r=>{for(let s=a;s<n.length;s++)if(uE(n[s],r))return a=s+1,!0;return!1})}function uE(i,n){if(!i)return!1;if(i===n)return!0;const a=n.length;return i.length>a&&i.substr(0,a)===n&&i[a]==="."}var cE=class{constructor(i,n,a,r,s,u,f,d){x(this,"_rootId");x(this,"_lastRuleId");x(this,"_ruleId2desc");x(this,"_includedGrammars");x(this,"_grammarRepository");x(this,"_grammar");x(this,"_injections");x(this,"_basicScopeAttributesProvider");x(this,"_tokenTypeMatchers");if(this._rootScopeName=i,this.balancedBracketSelectors=u,this._onigLib=d,this._basicScopeAttributesProvider=new eE(a,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=f,this._grammar=$g(n,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const h of Object.keys(s)){const m=Fo(h,Wo);for(const v of m)this._tokenTypeMatchers.push({matcher:v.matcher,type:s[h]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const i of this._ruleId2desc)i&&i.dispose()}createOnigScanner(i){return this._onigLib.createOnigScanner(i)}createOnigString(i){return this._onigLib.createOnigString(i)}getMetadataForScope(i){return this._basicScopeAttributesProvider.getBasicScopeAttributes(i)}_collectInjections(){const i={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},n=[],a=this._rootScopeName,r=i.lookup(a);if(r){const s=r.injections;if(s)for(let f in s)Pg(n,f,s[f],this,r);const u=this._grammarRepository.injections(a);u&&u.forEach(f=>{const d=this.getExternalGrammar(f);if(d){const h=d.injectionSelector;h&&Pg(n,h,d,this,d)}})}return n.sort((s,u)=>s.priority-u.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(i){const n=++this._lastRuleId,a=i(n);return this._ruleId2desc[n]=a,a}getRule(i){return this._ruleId2desc[i]}getExternalGrammar(i,n){if(this._includedGrammars[i])return this._includedGrammars[i];if(this._grammarRepository){const a=this._grammarRepository.lookup(i);if(a)return this._includedGrammars[i]=$g(a,n&&n.$base),this._includedGrammars[i]}}tokenizeLine(i,n,a=0){const r=this._tokenize(i,n,!1,a);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(i,n,a=0){const r=this._tokenize(i,n,!0,a);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(i,n,a,r){this._rootId===-1&&(this._rootId=uv.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!n||n===xf.NULL){s=!0;const m=this._basicScopeAttributesProvider.getDefaultAttributes(),v=this.themeProvider.getDefaults(),g=Ya.set(0,m.languageId,m.tokenType,null,v.fontStyle,v.foregroundId,v.backgroundId),y=this.getRule(this._rootId).getName(null,null);let _;y?_=Zl.createRootAndLookUpScopeName(y,g,this):_=Zl.createRoot("unknown",g),n=new xf(null,this._rootId,-1,-1,!1,null,_,_)}else s=!1,n.reset();i=i+`
60
- `;const u=this.createOnigString(i),f=u.content.length,d=new dE(a,i,this._tokenTypeMatchers,this.balancedBracketSelectors),h=fv(this,u,s,0,n,d,!0,r);return rv(u),{lineLength:f,lineTokens:d,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}};function $g(i,n){return i=kS(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=n||i.repository.$self,i}var Zl=class vn{constructor(n,a,r){this.parent=n,this.scopePath=a,this.tokenAttributes=r}static fromExtension(n,a){let r=n,s=(n==null?void 0:n.scopePath)??null;for(const u of a)s=Yc.push(s,u.scopeNames),r=new vn(r,s,u.encodedTokenAttributes);return r}static createRoot(n,a){return new vn(null,new Yc(null,n),a)}static createRootAndLookUpScopeName(n,a,r){const s=r.getMetadataForScope(n),u=new Yc(null,n),f=r.themeProvider.themeMatch(u),d=vn.mergeAttributes(a,s,f);return new vn(null,u,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(n){return vn.equals(this,n)}static equals(n,a){do{if(n===a||!n&&!a)return!0;if(!n||!a||n.scopeName!==a.scopeName||n.tokenAttributes!==a.tokenAttributes)return!1;n=n.parent,a=a.parent}while(!0)}static mergeAttributes(n,a,r){let s=-1,u=0,f=0;return r!==null&&(s=r.fontStyle,u=r.foregroundId,f=r.backgroundId),Ya.set(n,a.languageId,a.tokenType,null,s,u,f)}pushAttributed(n,a){if(n===null)return this;if(n.indexOf(" ")===-1)return vn._pushAttributed(this,n,a);const r=n.split(/ /g);let s=this;for(const u of r)s=vn._pushAttributed(s,u,a);return s}static _pushAttributed(n,a,r){const s=r.getMetadataForScope(a),u=n.scopePath.push(a),f=r.themeProvider.themeMatch(u),d=vn.mergeAttributes(n.tokenAttributes,s,f);return new vn(n,u,d)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(n){var s;const a=[];let r=this;for(;r&&r!==n;)a.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((s=r.parent)==null?void 0:s.scopePath)??null)}),r=r.parent;return r===n?a.reverse():void 0}},Jt,xf=(Jt=class{constructor(n,a,r,s,u,f,d,h){x(this,"_stackElementBrand");x(this,"_enterPos");x(this,"_anchorPos");x(this,"depth");this.parent=n,this.ruleId=a,this.beginRuleCapturedEOL=u,this.endRule=f,this.nameScopesList=d,this.contentNameScopesList=h,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}equals(n){return n===null?!1:Jt._equals(this,n)}static _equals(n,a){return n===a?!0:this._structuralEquals(n,a)?Zl.equals(n.contentNameScopesList,a.contentNameScopesList):!1}static _structuralEquals(n,a){do{if(n===a||!n&&!a)return!0;if(!n||!a||n.depth!==a.depth||n.ruleId!==a.ruleId||n.endRule!==a.endRule)return!1;n=n.parent,a=a.parent}while(!0)}clone(){return this}static _reset(n){for(;n;)n._enterPos=-1,n._anchorPos=-1,n=n.parent}reset(){Jt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(n,a,r,s,u,f,d){return new Jt(this,n,a,r,s,u,f,d)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(n){return n.getRule(this.ruleId)}toString(){const n=[];return this._writeString(n,0),"["+n.join(",")+"]"}_writeString(n,a){var r,s;return this.parent&&(a=this.parent._writeString(n,a)),n[a++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,a}withContentNameScopesList(n){return this.contentNameScopesList===n?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,n)}withEndRule(n){return this.endRule===n?this:new Jt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,n,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(n){let a=this;for(;a&&a._enterPos===n._enterPos;){if(a.ruleId===n.ruleId)return!0;a=a.parent}return!1}toStateStackFrame(){var n,a,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((a=this.nameScopesList)==null?void 0:a.getExtensionIfDefined(((n=this.parent)==null?void 0:n.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(n,a){const r=Zl.fromExtension((n==null?void 0:n.nameScopesList)??null,a.nameScopesList);return new Jt(n,a.ruleId,a.enterPos??-1,a.anchorPos??-1,a.beginRuleCapturedEOL,a.endRule,r,Zl.fromExtension(r,a.contentNameScopesList))}},x(Jt,"NULL",new Jt(null,0,0,0,!1,null,null,null)),Jt),fE=class{constructor(i,n){x(this,"balancedBracketScopes");x(this,"unbalancedBracketScopes");x(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(a=>a==="*"?(this.allowAny=!0,[]):Fo(a,Wo).map(r=>r.matcher)),this.unbalancedBracketScopes=n.flatMap(a=>Fo(a,Wo).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const n of this.unbalancedBracketScopes)if(n(i))return!1;for(const n of this.balancedBracketScopes)if(n(i))return!0;return this.allowAny}},dE=class{constructor(i,n,a,r){x(this,"_emitBinaryTokens");x(this,"_lineText");x(this,"_tokens");x(this,"_binaryTokens");x(this,"_lastTokenEndIndex");x(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=i,this._tokenTypeOverrides=a,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,n){this.produceFromScopes(i.contentNameScopesList,n)}produceFromScopes(i,n){var r;if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let s=(i==null?void 0:i.tokenAttributes)??0,u=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(u=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const f=(i==null?void 0:i.getScopeNames())??[];for(const d of this._tokenTypeOverrides)d.matcher(f)&&(s=Ya.set(s,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(u=this.balancedBracketSelectors.match(f))}if(u&&(s=Ya.set(s,0,8,u,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=n;return}const a=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:a}),this._lastTokenEndIndex=n}getResult(i,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,n),this._binaryTokens[this._binaryTokens.length-2]=0);const a=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)a[r]=this._binaryTokens[r];return a}},hE=class{constructor(i,n){x(this,"_grammars",new Map);x(this,"_rawGrammars",new Map);x(this,"_injectionGrammars",new Map);x(this,"_theme");this._onigLib=n,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,n){this._rawGrammars.set(i.scopeName,i),n&&this._injectionGrammars.set(i.scopeName,n)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,n,a,r,s){if(!this._grammars.has(i)){let u=this._rawGrammars.get(i);if(!u)return null;this._grammars.set(i,sE(i,u,n,a,r,s,this,this._onigLib))}return this._grammars.get(i)}},pE=class{constructor(n){x(this,"_options");x(this,"_syncRegistry");x(this,"_ensureGrammarCache");this._options=n,this._syncRegistry=new hE(Qo.createFromRawTheme(n.theme,n.colorMap),n.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(n,a){this._syncRegistry.setTheme(Qo.createFromRawTheme(n,a))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(n,a,r){return this.loadGrammarWithConfiguration(n,a,{embeddedLanguages:r})}loadGrammarWithConfiguration(n,a,r){return this._loadGrammar(n,a,r.embeddedLanguages,r.tokenTypes,new fE(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(n){return this._loadGrammar(n,0,null,null,null)}_loadGrammar(n,a,r,s,u){const f=new PS(this._syncRegistry,n);for(;f.Q.length>0;)f.Q.map(d=>this._loadSingleGrammar(d.scopeName)),f.processQueue();return this._grammarForScopeName(n,a,r,s,u)}_loadSingleGrammar(n){this._ensureGrammarCache.has(n)||(this._doLoadSingleGrammar(n),this._ensureGrammarCache.set(n,!0))}_doLoadSingleGrammar(n){const a=this._options.loadGrammar(n);if(a){const r=typeof this._options.getInjections=="function"?this._options.getInjections(n):void 0;this._syncRegistry.addGrammar(a,r)}}addGrammar(n,a=[],r=0,s=null){return this._syncRegistry.addGrammar(n,a),this._grammarForScopeName(n.scopeName,r,s)}_grammarForScopeName(n,a=0,r=null,s=null,u=null){return this._syncRegistry.grammarForScopeName(n,a,r,s,u)}},wf=xf.NULL;function Jo(i,n){const a=typeof i=="string"?{}:{...i.colorReplacements},r=typeof i=="string"?i:i.name;for(const[s,u]of Object.entries((n==null?void 0:n.colorReplacements)||{}))typeof u=="string"?a[s]=u:s===r&&Object.assign(a,u);return a}function Si(i,n){return i&&((n==null?void 0:n[i==null?void 0:i.toLowerCase()])||i)}function mE(i){return Array.isArray(i)?i:[i]}async function hv(i){return Promise.resolve(typeof i=="function"?i():i).then(n=>n.default||n)}function Qf(i){return!i||["plaintext","txt","text","plain"].includes(i)}function pv(i){return i==="ansi"||Qf(i)}function Ff(i){return i==="none"}function mv(i){return Ff(i)}function gv(i,n){var r;if(!n)return i;i.properties||(i.properties={}),(r=i.properties).class||(r.class=[]),typeof i.properties.class=="string"&&(i.properties.class=i.properties.class.split(/\s+/g)),Array.isArray(i.properties.class)||(i.properties.class=[]);const a=Array.isArray(n)?n:n.split(/\s+/g);for(const s of a)s&&!i.properties.class.includes(s)&&i.properties.class.push(s);return i}function rs(i,n=!1){var u;if(i.length===0)return[["",0]];const a=i.split(/(\r?\n)/g);let r=0;const s=[];for(let f=0;f<a.length;f+=2){const d=n?a[f]+(a[f+1]||""):a[f];s.push([d,r]),r+=a[f].length,r+=((u=a[f+1])==null?void 0:u.length)||0}return s}function gE(i){const n=rs(i,!0).map(([s])=>s);function a(s){if(s===i.length)return{line:n.length-1,character:n[n.length-1].length};let u=s,f=0;for(const d of n){if(u<d.length)break;u-=d.length,f++}return{line:f,character:u}}function r(s,u){let f=0;for(let d=0;d<s;d++)f+=n[d].length;return f+=u,f}return{lines:n,indexToPos:a,posToIndex:r}}const Zf="light-dark()",vE=["color","background-color"];function bE(i,n){let a=0;const r=[];for(const s of n)s>a&&r.push({...i,content:i.content.slice(a,s),offset:i.offset+a}),a=s;return a<i.content.length&&r.push({...i,content:i.content.slice(a),offset:i.offset+a}),r}function yE(i,n){const a=Array.from(n instanceof Set?n:new Set(n)).sort((r,s)=>r-s);return a.length?i.map(r=>r.flatMap(s=>{const u=a.filter(f=>s.offset<f&&f<s.offset+s.content.length).map(f=>f-s.offset).sort((f,d)=>f-d);return u.length?bE(s,u):s})):i}function _E(i,n,a,r,s="css-vars"){const u={content:i.content,explanation:i.explanation,offset:i.offset},f=n.map(v=>es(i.variants[v])),d=new Set(f.flatMap(v=>Object.keys(v))),h={},m=(v,g)=>{const y=g==="color"?"":g==="background-color"?"-bg":`-${g}`;return a+n[v]+(g==="color"?"":y)};return f.forEach((v,g)=>{for(const y of d){const _=v[y]||"inherit";if(g===0&&r&&vE.includes(y))if(r===Zf&&f.length>1){const E=n.findIndex(L=>L==="light"),w=n.findIndex(L=>L==="dark");if(E===-1||w===-1)throw new et('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const N=f[E][y]||"inherit",D=f[w][y]||"inherit";h[y]=`light-dark(${N}, ${D})`,s==="css-vars"&&(h[m(g,y)]=_)}else h[y]=_;else s==="css-vars"&&(h[m(g,y)]=_)}}),u.htmlStyle=h,u}function es(i){const n={};if(i.color&&(n.color=i.color),i.bgColor&&(n["background-color"]=i.bgColor),i.fontStyle){i.fontStyle&vt.Italic&&(n["font-style"]="italic"),i.fontStyle&vt.Bold&&(n["font-weight"]="bold");const a=[];i.fontStyle&vt.Underline&&a.push("underline"),i.fontStyle&vt.Strikethrough&&a.push("line-through"),a.length&&(n["text-decoration"]=a.join(" "))}return n}function Lf(i){return typeof i=="string"?i:Object.entries(i).map(([n,a])=>`${n}:${a}`).join(";")}const vv=new WeakMap;function os(i,n){vv.set(i,n)}function nr(i){return vv.get(i)}class Za{constructor(...n){x(this,"_stacks",{});x(this,"lang");if(n.length===2){const[a,r]=n;this.lang=r,this._stacks=a}else{const[a,r,s]=n;this.lang=r,this._stacks={[s]:a}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(n,a){return new Za(Object.fromEntries(mE(a).map(r=>[r,wf])),n)}getInternalStack(n=this.theme){return this._stacks[n]}getScopes(n=this.theme){return SE(this._stacks[n])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function SE(i){const n=[],a=new Set;function r(s){var f;if(a.has(s))return;a.add(s);const u=(f=s==null?void 0:s.nameScopesList)==null?void 0:f.scopeName;u&&n.push(u),s.parent&&r(s.parent)}return r(i),n}function EE(i,n){if(!(i instanceof Za))throw new et("Invalid grammar state");return i.getInternalStack(n)}function CE(){const i=new WeakMap;function n(a){if(!i.has(a.meta)){let r=function(f){if(typeof f=="number"){if(f<0||f>a.source.length)throw new et(`Invalid decoration offset: ${f}. Code length: ${a.source.length}`);return{...s.indexToPos(f),offset:f}}else{const d=s.lines[f.line];if(d===void 0)throw new et(`Invalid decoration position ${JSON.stringify(f)}. Lines length: ${s.lines.length}`);let h=f.character;if(h<0&&(h=d.length+h),h<0||h>d.length)throw new et(`Invalid decoration position ${JSON.stringify(f)}. Line ${f.line} length: ${d.length}`);return{...f,character:h,offset:s.posToIndex(f.line,h)}}};const s=gE(a.source),u=(a.options.decorations||[]).map(f=>({...f,start:r(f.start),end:r(f.end)}));AE(u),i.set(a.meta,{decorations:u,converter:s,source:a.source})}return i.get(a.meta)}return{name:"shiki:decorations",tokens(a){var f;if(!((f=this.options.decorations)!=null&&f.length))return;const s=n(this).decorations.flatMap(d=>[d.start.offset,d.end.offset]);return yE(a,s)},code(a){var v;if(!((v=this.options.decorations)!=null&&v.length))return;const r=n(this),s=Array.from(a.children).filter(g=>g.type==="element"&&g.tagName==="span");if(s.length!==r.converter.lines.length)throw new et(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function u(g,y,_,E){const w=s[g];let N="",D=-1,L=-1;if(y===0&&(D=0),_===0&&(L=0),_===Number.POSITIVE_INFINITY&&(L=w.children.length),D===-1||L===-1)for(let U=0;U<w.children.length;U++)N+=bv(w.children[U]),D===-1&&N.length===y&&(D=U+1),L===-1&&N.length===_&&(L=U+1);if(D===-1)throw new et(`Failed to find start index for decoration ${JSON.stringify(E.start)}`);if(L===-1)throw new et(`Failed to find end index for decoration ${JSON.stringify(E.end)}`);const T=w.children.slice(D,L);if(!E.alwaysWrap&&T.length===w.children.length)d(w,E,"line");else if(!E.alwaysWrap&&T.length===1&&T[0].type==="element")d(T[0],E,"token");else{const U={type:"element",tagName:"span",properties:{},children:T};d(U,E,"wrapper"),w.children.splice(D,T.length,U)}}function f(g,y){s[g]=d(s[g],y,"line")}function d(g,y,_){var N;const E=y.properties||{},w=y.transform||(D=>D);return g.tagName=y.tagName||"span",g.properties={...g.properties,...E,class:g.properties.class},(N=y.properties)!=null&&N.class&&gv(g,y.properties.class),g=w(g,_)||g,g}const h=[],m=r.decorations.sort((g,y)=>y.start.offset-g.start.offset||g.end.offset-y.end.offset);for(const g of m){const{start:y,end:_}=g;if(y.line===_.line)u(y.line,y.character,_.character,g);else if(y.line<_.line){u(y.line,y.character,Number.POSITIVE_INFINITY,g);for(let E=y.line+1;E<_.line;E++)h.unshift(()=>f(E,g));u(_.line,0,_.character,g)}}h.forEach(g=>g())}}}function AE(i){for(let n=0;n<i.length;n++){const a=i[n];if(a.start.offset>a.end.offset)throw new et(`Invalid decoration range: ${JSON.stringify(a.start)} - ${JSON.stringify(a.end)}`);for(let r=n+1;r<i.length;r++){const s=i[r],u=a.start.offset<=s.start.offset&&s.start.offset<a.end.offset,f=a.start.offset<s.end.offset&&s.end.offset<=a.end.offset,d=s.start.offset<=a.start.offset&&a.start.offset<s.end.offset,h=s.start.offset<a.end.offset&&a.end.offset<=s.end.offset;if(u||f||d||h){if(u&&f||d&&h||d&&a.start.offset===a.end.offset||f&&s.start.offset===s.end.offset)continue;throw new et(`Decorations ${JSON.stringify(a.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function bv(i){return i.type==="text"?i.value:i.type==="element"?i.children.map(bv).join(""):""}const TE=[CE()];function ts(i){const n=xE(i.transformers||[]);return[...n.pre,...n.normal,...n.post,...TE]}function xE(i){const n=[],a=[],r=[];for(const s of i)switch(s.enforce){case"pre":n.push(s);break;case"post":a.push(s);break;default:r.push(s)}return{pre:n,post:a,normal:r}}var $i=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Qc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function wE(i,n){const a=i.indexOf("\x1B",n);if(a!==-1&&i[a+1]==="["){const r=i.indexOf("m",a);if(r!==-1)return{sequence:i.substring(a+2,r).split(";"),startPosition:a,position:r+1}}return{position:i.length}}function qg(i){const n=i.shift();if(n==="2"){const a=i.splice(0,3).map(r=>Number.parseInt(r));return a.length!==3||a.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:a}}else if(n==="5"){const a=i.shift();if(a)return{type:"table",index:Number(a)}}}function LE(i){const n=[];for(;i.length>0;){const a=i.shift();if(!a)continue;const r=Number.parseInt(a);if(!Number.isNaN(r))if(r===0)n.push({type:"resetAll"});else if(r<=9)Qc[r]&&n.push({type:"setDecoration",value:Qc[r]});else if(r<=29){const s=Qc[r-20];s&&(n.push({type:"resetDecoration",value:s}),s==="dim"&&n.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)n.push({type:"setForegroundColor",value:{type:"named",name:$i[r-30]}});else if(r===38){const s=qg(i);s&&n.push({type:"setForegroundColor",value:s})}else if(r===39)n.push({type:"resetForegroundColor"});else if(r<=47)n.push({type:"setBackgroundColor",value:{type:"named",name:$i[r-40]}});else if(r===48){const s=qg(i);s&&n.push({type:"setBackgroundColor",value:s})}else r===49?n.push({type:"resetBackgroundColor"}):r===53?n.push({type:"setDecoration",value:"overline"}):r===55?n.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?n.push({type:"setForegroundColor",value:{type:"named",name:$i[r-90+8]}}):r>=100&&r<=107&&n.push({type:"setBackgroundColor",value:{type:"named",name:$i[r-100+8]}})}return n}function kE(){let i=null,n=null,a=new Set;return{parse(r){const s=[];let u=0;do{const f=wE(r,u),d=f.sequence?r.substring(u,f.startPosition):r.substring(u);if(d.length>0&&s.push({value:d,foreground:i,background:n,decorations:new Set(a)}),f.sequence){const h=LE(f.sequence);for(const m of h)m.type==="resetAll"?(i=null,n=null,a.clear()):m.type==="resetForegroundColor"?i=null:m.type==="resetBackgroundColor"?n=null:m.type==="resetDecoration"&&a.delete(m.value);for(const m of h)m.type==="setForegroundColor"?i=m.value:m.type==="setBackgroundColor"?n=m.value:m.type==="setDecoration"&&a.add(m.value)}u=f.position}while(u<r.length);return s}}}var RE={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 DE(i=RE){function n(d){return i[d]}function a(d){return`#${d.map(h=>Math.max(0,Math.min(h,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let m=0;m<$i.length;m++)r.push(n($i[m]));let d=[0,95,135,175,215,255];for(let m=0;m<6;m++)for(let v=0;v<6;v++)for(let g=0;g<6;g++)r.push(a([d[m],d[v],d[g]]));let h=8;for(let m=0;m<24;m++,h+=10)r.push(a([h,h,h]));return r}function u(d){return s()[d]}function f(d){switch(d.type){case"named":return n(d.name);case"rgb":return a(d.rgb);case"table":return u(d.index)}}return{value:f}}const OE={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function NE(i,n,a){const r=Jo(i,a),s=rs(n),u=Object.fromEntries($i.map(h=>{var g;const m=`terminal.ansi${h[0].toUpperCase()}${h.substring(1)}`,v=(g=i.colors)==null?void 0:g[m];return[h,v||OE[h]]})),f=DE(u),d=kE();return s.map(h=>d.parse(h[0]).map(m=>{let v,g;m.decorations.has("reverse")?(v=m.background?f.value(m.background):i.bg,g=m.foreground?f.value(m.foreground):i.fg):(v=m.foreground?f.value(m.foreground):i.fg,g=m.background?f.value(m.background):void 0),v=Si(v,r),g=Si(g,r),m.decorations.has("dim")&&(v=ME(v));let y=vt.None;return m.decorations.has("bold")&&(y|=vt.Bold),m.decorations.has("italic")&&(y|=vt.Italic),m.decorations.has("underline")&&(y|=vt.Underline),m.decorations.has("strikethrough")&&(y|=vt.Strikethrough),{content:m.value,offset:h[1],color:v,bgColor:g,fontStyle:y}}))}function ME(i){const n=i.match(/#([0-9a-f]{3,8})/i);if(n){const r=n[1];if(r.length===8){const s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const s=r[0],u=r[1],f=r[2],d=r[3],h=Math.round(Number.parseInt(`${d}${d}`,16)/2).toString(16).padStart(2,"0");return`#${s}${s}${u}${u}${f}${f}${h}`}else if(r.length===3){const s=r[0],u=r[1],f=r[2];return`#${s}${s}${u}${u}${f}${f}80`}}}const a=i.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return a?`var(${a[1]}-dim)`:i}function Kf(i,n,a={}){const{theme:r=i.getLoadedThemes()[0]}=a,s=i.resolveLangAlias(a.lang||"text");if(Qf(s)||Ff(r))return rs(n).map(h=>[{content:h[0],offset:h[1]}]);const{theme:u,colorMap:f}=i.setTheme(r);if(s==="ansi")return NE(u,n,a);const d=i.getLanguage(a.lang||"text");if(a.grammarState){if(a.grammarState.lang!==d.name)throw new et(`Grammar state language "${a.grammarState.lang}" does not match highlight language "${d.name}"`);if(!a.grammarState.themes.includes(u.name))throw new et(`Grammar state themes "${a.grammarState.themes}" do not contain highlight theme "${u.name}"`)}return IE(n,d,u,f,a)}function zE(...i){if(i.length===2)return nr(i[1]);const[n,a,r={}]=i,{lang:s="text",theme:u=n.getLoadedThemes()[0]}=r;if(Qf(s)||Ff(u))throw new et("Plain language does not have grammar state");if(s==="ansi")throw new et("ANSI language does not have grammar state");const{theme:f,colorMap:d}=n.setTheme(u),h=n.getLanguage(s);return new Za(Wf(a,h,f,d,r).stateStack,h.name,f.name)}function IE(i,n,a,r,s){const u=Wf(i,n,a,r,s),f=new Za(u.stateStack,n.name,a.name);return os(u.tokens,f),u.tokens}function Wf(i,n,a,r,s){const u=Jo(a,s),{tokenizeMaxLineLength:f=0,tokenizeTimeLimit:d=500}=s,h=rs(i);let m=s.grammarState?EE(s.grammarState,a.name)??wf:s.grammarContextCode!=null?Wf(s.grammarContextCode,n,a,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:wf,v=[];const g=[];for(let y=0,_=h.length;y<_;y++){const[E,w]=h[y];if(E===""){v=[],g.push([]);continue}if(f>0&&E.length>=f){v=[],g.push([{content:E,offset:w,color:"",fontStyle:0}]);continue}let N,D,L;s.includeExplanation&&(N=n.tokenizeLine(E,m,d),D=N.tokens,L=0);const T=n.tokenizeLine2(E,m,d),U=T.tokens.length/2;for(let q=0;q<U;q++){const V=T.tokens[2*q],M=q+1<U?T.tokens[2*q+2]:E.length;if(V===M)continue;const P=T.tokens[2*q+1],Z=Si(r[Ya.getForeground(P)],u),ee=Ya.getFontStyle(P),ae={content:E.substring(V,M),offset:w+V,color:Z,fontStyle:ee};if(s.includeExplanation){const re=[];if(s.includeExplanation!=="scopeName")for(const le of a.settings){let Ce;switch(typeof le.scope){case"string":Ce=le.scope.split(/,/).map(B=>B.trim());break;case"object":Ce=le.scope;break;default:continue}re.push({settings:le,selectors:Ce.map(B=>B.split(/ /))})}ae.explanation=[];let he=0;for(;V+he<M;){const le=D[L],Ce=E.substring(le.startIndex,le.endIndex);he+=Ce.length,ae.explanation.push({content:Ce,scopes:s.includeExplanation==="scopeName"?UE(le.scopes):HE(re,le.scopes)}),L+=1}}v.push(ae)}g.push(v),v=[],m=T.ruleStack}return{tokens:g,stateStack:m}}function UE(i){return i.map(n=>({scopeName:n}))}function HE(i,n){const a=[];for(let r=0,s=n.length;r<s;r++){const u=n[r];a[r]={scopeName:u,themeMatches:GE(i,u,n.slice(0,r))}}return a}function Yg(i,n){return i===n||n.substring(0,i.length)===i&&n[i.length]==="."}function VE(i,n,a){if(!Yg(i[i.length-1],n))return!1;let r=i.length-2,s=a.length-1;for(;r>=0&&s>=0;)Yg(i[r],a[s])&&(r-=1),s-=1;return r===-1}function GE(i,n,a){const r=[];for(const{selectors:s,settings:u}of i)for(const f of s)if(VE(f,n,a)){r.push(u);break}return r}function yv(i,n,a){const r=Object.entries(a.themes).filter(h=>h[1]).map(h=>({color:h[0],theme:h[1]})),s=r.map(h=>{const m=Kf(i,n,{...a,theme:h.theme}),v=nr(m),g=typeof h.theme=="string"?h.theme:h.theme.name;return{tokens:m,state:v,theme:g}}),u=BE(...s.map(h=>h.tokens)),f=u[0].map((h,m)=>h.map((v,g)=>{const y={content:v.content,variants:{},offset:v.offset};return"includeExplanation"in a&&a.includeExplanation&&(y.explanation=v.explanation),u.forEach((_,E)=>{const{content:w,explanation:N,offset:D,...L}=_[m][g];y.variants[r[E].color]=L}),y})),d=s[0].state?new Za(Object.fromEntries(s.map(h=>{var m;return[h.theme,(m=h.state)==null?void 0:m.getInternalStack(h.theme)]})),s[0].state.lang):void 0;return d&&os(f,d),f}function BE(...i){const n=i.map(()=>[]),a=i.length;for(let r=0;r<i[0].length;r++){const s=i.map(h=>h[r]),u=n.map(()=>[]);n.forEach((h,m)=>h.push(u[m]));const f=s.map(()=>0),d=s.map(h=>h[0]);for(;d.every(h=>h);){const h=Math.min(...d.map(m=>m.content.length));for(let m=0;m<a;m++){const v=d[m];v.content.length===h?(u[m].push(v),f[m]+=1,d[m]=s[m][f[m]]):(u[m].push({...v,content:v.content.slice(0,h)}),d[m]={...v,content:v.content.slice(h),offset:v.offset+h})}}}return n}function ns(i,n,a){let r,s,u,f,d,h;if("themes"in a){const{defaultColor:m="light",cssVariablePrefix:v="--shiki-",colorsRendering:g="css-vars"}=a,y=Object.entries(a.themes).filter(D=>D[1]).map(D=>({color:D[0],theme:D[1]})).sort((D,L)=>D.color===m?-1:L.color===m?1:0);if(y.length===0)throw new et("`themes` option must not be empty");const _=yv(i,n,a);if(h=nr(_),m&&Zf!==m&&!y.find(D=>D.color===m))throw new et(`\`themes\` option must contain the defaultColor key \`${m}\``);const E=y.map(D=>i.getTheme(D.theme)),w=y.map(D=>D.color);u=_.map(D=>D.map(L=>_E(L,w,v,m,g))),h&&os(u,h);const N=y.map(D=>Jo(D.theme,a));s=Xg(y,E,N,v,m,"fg",g),r=Xg(y,E,N,v,m,"bg",g),f=`shiki-themes ${E.map(D=>D.name).join(" ")}`,d=m?void 0:[s,r].join(";")}else if("theme"in a){const m=Jo(a.theme,a);u=Kf(i,n,a);const v=i.getTheme(a.theme);r=Si(v.bg,m),s=Si(v.fg,m),f=v.name,h=nr(u)}else throw new et("Invalid options, either `theme` or `themes` must be provided");return{tokens:u,fg:s,bg:r,themeName:f,rootStyle:d,grammarState:h}}function Xg(i,n,a,r,s,u,f){return i.map((d,h)=>{const m=Si(n[h][u],a[h])||"inherit",v=`${r+d.color}${u==="bg"?"-bg":""}:${m}`;if(h===0&&s){if(s===Zf&&i.length>1){const g=i.findIndex(w=>w.color==="light"),y=i.findIndex(w=>w.color==="dark");if(g===-1||y===-1)throw new et('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=Si(n[g][u],a[g])||"inherit",E=Si(n[y][u],a[y])||"inherit";return`light-dark(${_}, ${E});${v}`}return m}return f==="css-vars"?v:null}).filter(d=>!!d).join(";")}function is(i,n,a,r={meta:{},options:a,codeToHast:(s,u)=>is(i,s,u),codeToTokens:(s,u)=>ns(i,s,u)}){var E,w;let s=n;for(const N of ts(a))s=((E=N.preprocess)==null?void 0:E.call(r,s,a))||s;let{tokens:u,fg:f,bg:d,themeName:h,rootStyle:m,grammarState:v}=ns(i,s,a);const{mergeWhitespaces:g=!0,mergeSameStyleTokens:y=!1}=a;g===!0?u=PE(u):g==="never"&&(u=$E(u)),y&&(u=qE(u));const _={...r,get source(){return s}};for(const N of ts(a))u=((w=N.tokens)==null?void 0:w.call(_,u))||u;return jE(u,{...a,fg:f,bg:d,themeName:h,rootStyle:a.rootStyle===!1?!1:a.rootStyle??m},_,v)}function jE(i,n,a,r=nr(i)){var w,N,D,L;const s=ts(n),u=[],f={type:"root",children:[]},{structure:d="classic",tabindex:h="0"}=n,m={class:`shiki ${n.themeName||""}`};n.rootStyle!==!1&&(n.rootStyle!=null?m.style=n.rootStyle:m.style=`background-color:${n.bg};color:${n.fg}`),h!==!1&&h!=null&&(m.tabindex=h.toString());for(const[T,U]of Object.entries(n.meta||{}))T.startsWith("_")||(m[T]=U);let v={type:"element",tagName:"pre",properties:m,children:[],data:n.data},g={type:"element",tagName:"code",properties:{},children:u};const y=[],_={...a,structure:d,addClassToHast:gv,get source(){return a.source},get tokens(){return i},get options(){return n},get root(){return f},get pre(){return v},get code(){return g},get lines(){return y}};if(i.forEach((T,U)=>{var M,P;U&&(d==="inline"?f.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&u.push({type:"text",value:`
61
- `}));let q={type:"element",tagName:"span",properties:{class:"line"},children:[]},V=0;for(const Z of T){let ee={type:"element",tagName:"span",properties:{...Z.htmlAttrs},children:[{type:"text",value:Z.content}]};const ae=Lf(Z.htmlStyle||es(Z));ae&&(ee.properties.style=ae);for(const re of s)ee=((M=re==null?void 0:re.span)==null?void 0:M.call(_,ee,U+1,V,q,Z))||ee;d==="inline"?f.children.push(ee):d==="classic"&&q.children.push(ee),V+=Z.content.length}if(d==="classic"){for(const Z of s)q=((P=Z==null?void 0:Z.line)==null?void 0:P.call(_,q,U+1))||q;y.push(q),u.push(q)}else d==="inline"&&y.push(q)}),d==="classic"){for(const T of s)g=((w=T==null?void 0:T.code)==null?void 0:w.call(_,g))||g;v.children.push(g);for(const T of s)v=((N=T==null?void 0:T.pre)==null?void 0:N.call(_,v))||v;f.children.push(v)}else if(d==="inline"){const T=[];let U={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const M of f.children)M.type==="element"&&M.tagName==="br"?(T.push(U),U={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(M.type==="element"||M.type==="text")&&U.children.push(M);T.push(U);let V={type:"element",tagName:"code",properties:{},children:T};for(const M of s)V=((D=M==null?void 0:M.code)==null?void 0:D.call(_,V))||V;f.children=[];for(let M=0;M<V.children.length;M++){M>0&&f.children.push({type:"element",tagName:"br",properties:{},children:[]});const P=V.children[M];P.type==="element"&&f.children.push(...P.children)}}let E=f;for(const T of s)E=((L=T==null?void 0:T.root)==null?void 0:L.call(_,E))||E;return r&&os(E,r),E}function PE(i){return i.map(n=>{const a=[];let r="",s;return n.forEach((u,f)=>{const h=!(u.fontStyle&&(u.fontStyle&vt.Underline||u.fontStyle&vt.Strikethrough));h&&u.content.match(/^\s+$/)&&n[f+1]?(s===void 0&&(s=u.offset),r+=u.content):r?(h?a.push({...u,offset:s,content:r+u.content}):a.push({content:r,offset:s},u),s=void 0,r=""):a.push(u)}),a})}function $E(i){return i.map(n=>n.flatMap(a=>{if(a.content.match(/^\s+$/))return a;const r=a.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return a;const[,s,u,f]=r;if(!s&&!f)return a;const d=[{...a,offset:a.offset+s.length,content:u}];return s&&d.unshift({content:s,offset:a.offset}),f&&d.push({content:f,offset:a.offset+s.length+u.length}),d}))}function qE(i){return i.map(n=>{const a=[];for(const r of n){if(a.length===0){a.push({...r});continue}const s=a[a.length-1],u=Lf(s.htmlStyle||es(s)),f=Lf(r.htmlStyle||es(r)),d=s.fontStyle&&(s.fontStyle&vt.Underline||s.fontStyle&vt.Strikethrough),h=r.fontStyle&&(r.fontStyle&vt.Underline||r.fontStyle&vt.Strikethrough);!d&&!h&&u===f?s.content+=r.content:a.push({...r})}return a})}const YE=qa;function XE(i,n,a){var u;const r={meta:{},options:a,codeToHast:(f,d)=>is(i,f,d),codeToTokens:(f,d)=>ns(i,f,d)};let s=YE(is(i,n,a,r));for(const f of ts(a))s=((u=f.postprocess)==null?void 0:u.call(r,s,a))||s;return s}const Qg={light:"#333333",dark:"#bbbbbb"},Fg={light:"#fffffe",dark:"#1e1e1e"},Zg="__shiki_resolved";function ss(i){var d,h,m,v,g;if(i!=null&&i[Zg])return i;const n={...i};n.tokenColors&&!n.settings&&(n.settings=n.tokenColors,delete n.tokenColors),n.type||(n.type="dark"),n.colorReplacements={...n.colorReplacements},n.settings||(n.settings=[]);let{bg:a,fg:r}=n;if(!a||!r){const y=n.settings?n.settings.find(_=>!_.name&&!_.scope):void 0;(d=y==null?void 0:y.settings)!=null&&d.foreground&&(r=y.settings.foreground),(h=y==null?void 0:y.settings)!=null&&h.background&&(a=y.settings.background),!r&&((m=n==null?void 0:n.colors)!=null&&m["editor.foreground"])&&(r=n.colors["editor.foreground"]),!a&&((v=n==null?void 0:n.colors)!=null&&v["editor.background"])&&(a=n.colors["editor.background"]),r||(r=n.type==="light"?Qg.light:Qg.dark),a||(a=n.type==="light"?Fg.light:Fg.dark),n.fg=r,n.bg=a}n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}});let s=0;const u=new Map;function f(y){var E;if(u.has(y))return u.get(y);s+=1;const _=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(E=n.colorReplacements)!=null&&E[`#${_}`]?f(y):(u.set(y,_),_)}n.settings=n.settings.map(y=>{var N,D;const _=((N=y.settings)==null?void 0:N.foreground)&&!y.settings.foreground.startsWith("#"),E=((D=y.settings)==null?void 0:D.background)&&!y.settings.background.startsWith("#");if(!_&&!E)return y;const w={...y,settings:{...y.settings}};if(_){const L=f(y.settings.foreground);n.colorReplacements[L]=y.settings.foreground,w.settings.foreground=L}if(E){const L=f(y.settings.background);n.colorReplacements[L]=y.settings.background,w.settings.background=L}return w});for(const y of Object.keys(n.colors||{}))if((y==="editor.foreground"||y==="editor.background"||y.startsWith("terminal.ansi"))&&!((g=n.colors[y])!=null&&g.startsWith("#"))){const _=f(n.colors[y]);n.colorReplacements[_]=n.colors[y],n.colors[y]=_}return Object.defineProperty(n,Zg,{enumerable:!1,writable:!1,value:!0}),n}async function _v(i){return Array.from(new Set((await Promise.all(i.filter(n=>!pv(n)).map(async n=>await hv(n).then(a=>Array.isArray(a)?a:[a])))).flat()))}async function Sv(i){return(await Promise.all(i.map(async a=>mv(a)?null:ss(await hv(a))))).filter(a=>!!a)}let QE=3;function FE(i,n=3){n>QE||console.trace(`[SHIKI DEPRECATE]: ${i}`)}let Ba=class extends Error{constructor(n){super(n),this.name="ShikiError"}};function Ev(i,n){if(!n)return i;if(n[i]){const a=new Set([i]);for(;n[i];){if(i=n[i],a.has(i))throw new Ba(`Circular alias \`${Array.from(a).join(" -> ")} -> ${i}\``);a.add(i)}}return i}class ZE extends pE{constructor(a,r,s,u={}){super(a);x(this,"_resolvedThemes",new Map);x(this,"_resolvedGrammars",new Map);x(this,"_langMap",new Map);x(this,"_langGraph",new Map);x(this,"_textmateThemeCache",new WeakMap);x(this,"_loadedThemesCache",null);x(this,"_loadedLanguagesCache",null);this._resolver=a,this._themes=r,this._langs=s,this._alias=u,this._themes.map(f=>this.loadTheme(f)),this.loadLanguages(this._langs)}getTheme(a){return typeof a=="string"?this._resolvedThemes.get(a):this.loadTheme(a)}loadTheme(a){const r=ss(a);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(a){let r=this._textmateThemeCache.get(a);r||(r=Qo.createFromRawTheme(a),this._textmateThemeCache.set(a,r)),this._syncRegistry.setTheme(r)}getGrammar(a){return a=Ev(a,this._alias),this._resolvedGrammars.get(a)}loadLanguage(a){var f,d,h,m;if(this.getGrammar(a.name))return;const r=new Set([...this._langMap.values()].filter(v=>{var g;return(g=v.embeddedLangsLazy)==null?void 0:g.includes(a.name)}));this._resolver.addLanguage(a);const s={balancedBracketSelectors:a.balancedBracketSelectors||["*"],unbalancedBracketSelectors:a.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(a.scopeName,a);const u=this.loadGrammarWithConfiguration(a.scopeName,1,s);if(u.name=a.name,this._resolvedGrammars.set(a.name,u),a.aliases&&a.aliases.forEach(v=>{this._alias[v]=a.name}),this._loadedLanguagesCache=null,r.size)for(const v of r)this._resolvedGrammars.delete(v.name),this._loadedLanguagesCache=null,(d=(f=this._syncRegistry)==null?void 0:f._injectionGrammars)==null||d.delete(v.scopeName),(m=(h=this._syncRegistry)==null?void 0:h._grammars)==null||m.delete(v.scopeName),this.loadLanguage(this._langMap.get(v.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(a){for(const u of a)this.resolveEmbeddedLanguages(u);const r=Array.from(this._langGraph.entries()),s=r.filter(([u,f])=>!f);if(s.length){const u=r.filter(([f,d])=>{if(!d)return!1;const h=d.embeddedLanguages||d.embeddedLangs;return h==null?void 0:h.some(m=>s.map(([v])=>v).includes(m))}).filter(f=>!s.includes(f));throw new Ba(`Missing languages ${s.map(([f])=>`\`${f}\``).join(", ")}, required by ${u.map(([f])=>`\`${f}\``).join(", ")}`)}for(const[u,f]of r)this._resolver.addLanguage(f);for(const[u,f]of r)this.loadLanguage(f)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(a){this._langMap.set(a.name,a),this._langGraph.set(a.name,a);const r=a.embeddedLanguages??a.embeddedLangs;if(r)for(const s of r)this._langGraph.set(s,this._langMap.get(s))}}class KE{constructor(n,a){x(this,"_langs",new Map);x(this,"_scopeToLang",new Map);x(this,"_injections",new Map);x(this,"_onigLib");this._onigLib={createOnigScanner:r=>n.createScanner(r),createOnigString:r=>n.createString(r)},a.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(n){return this._langs.get(n)}loadGrammar(n){return this._scopeToLang.get(n)}addLanguage(n){this._langs.set(n.name,n),n.aliases&&n.aliases.forEach(a=>{this._langs.set(a,n)}),this._scopeToLang.set(n.scopeName,n),n.injectTo&&n.injectTo.forEach(a=>{this._injections.get(a)||this._injections.set(a,[]),this._injections.get(a).push(n.scopeName)})}getInjections(n){const a=n.split(".");let r=[];for(let s=1;s<=a.length;s++){const u=a.slice(0,s).join(".");r=[...r,...this._injections.get(u)||[]]}return r}}let Xl=0;function WE(i){Xl+=1,i.warnings!==!1&&Xl>=10&&Xl%10===0&&console.warn(`[Shiki] ${Xl} 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 n=!1;if(!i.engine)throw new Ba("`engine` option is required for synchronous mode");const a=(i.langs||[]).flat(1),r=(i.themes||[]).flat(1).map(ss),s=new KE(i.engine,a),u=new ZE(s,r,a,i.langAlias);let f;function d(T){return Ev(T,i.langAlias)}function h(T){D();const U=u.getGrammar(typeof T=="string"?T:T.name);if(!U)throw new Ba(`Language \`${T}\` not found, you may need to load it first`);return U}function m(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};D();const U=u.getTheme(T);if(!U)throw new Ba(`Theme \`${T}\` not found, you may need to load it first`);return U}function v(T){D();const U=m(T);f!==T&&(u.setTheme(U),f=T);const q=u.getColorMap();return{theme:U,colorMap:q}}function g(){return D(),u.getLoadedThemes()}function y(){return D(),u.getLoadedLanguages()}function _(...T){D(),u.loadLanguages(T.flat(1))}async function E(...T){return _(await _v(T))}function w(...T){D();for(const U of T.flat(1))u.loadTheme(U)}async function N(...T){return D(),w(await Sv(T))}function D(){if(n)throw new Ba("Shiki instance has been disposed")}function L(){n||(n=!0,u.dispose(),Xl-=1)}return{setTheme:v,getTheme:m,getLanguage:h,getLoadedThemes:g,getLoadedLanguages:y,resolveLangAlias:d,loadLanguage:E,loadLanguageSync:_,loadTheme:N,loadThemeSync:w,dispose:L,[Symbol.dispose]:L}}async function JE(i){i.engine||FE("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[n,a,r]=await Promise.all([Sv(i.themes||[]),_v(i.langs||[]),i.engine]);return WE({...i,themes:n,langs:a,engine:r})}async function eC(i){const n=await JE(i);return{getLastGrammarState:(...a)=>zE(n,...a),codeToTokensBase:(a,r)=>Kf(n,a,r),codeToTokensWithThemes:(a,r)=>yv(n,a,r),codeToTokens:(a,r)=>ns(n,a,r),codeToHast:(a,r)=>is(n,a,r),codeToHtml:(a,r)=>XE(n,a,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...n,getInternalContext:()=>n}}function tC(i){const n=i.langs,a=i.themes,r=i.engine;async function s(u){function f(g){var y;if(typeof g=="string"){if(g=((y=u.langAlias)==null?void 0:y[g])||g,pv(g))return[];const _=n[g];if(!_)throw new et(`Language \`${g}\` is not included in this bundle. You may want to load it from external source.`);return _}return g}function d(g){if(mv(g))return"none";if(typeof g=="string"){const y=a[g];if(!y)throw new et(`Theme \`${g}\` is not included in this bundle. You may want to load it from external source.`);return y}return g}const h=(u.themes??[]).map(g=>d(g)),m=(u.langs??[]).map(g=>f(g)),v=await eC({engine:u.engine??r(),...u,themes:h,langs:m});return{...v,loadLanguage(...g){return v.loadLanguage(...g.map(f))},loadTheme(...g){return v.loadTheme(...g.map(d))},getBundledLanguages(){return n},getBundledThemes(){return a}}}return s}const Cv=[{id:"abap",name:"ABAP",import:(()=>C(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>C(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>C(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>C(()=>import("./angular-html-CU67Zn6k.js").then(i=>i.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>C(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>C(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>C(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>C(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>C(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>C(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>C(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>C(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>C(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>C(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>C(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>C(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>C(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>C(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>C(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>C(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>C(()=>import("./bird2-DPOp833l.js"),[]))},{id:"blade",name:"Blade",import:(()=>C(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>C(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>C(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>C(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>C(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>C(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>C(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>C(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>C(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>C(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>C(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>C(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>C(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>C(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>C(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>C(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>C(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>C(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>C(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>C(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>C(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>C(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>C(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>C(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>C(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>C(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>C(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>C(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>C(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>C(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>C(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>C(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>C(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>C(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>C(()=>import("./erb-B12qg9BL.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>C(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>C(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>C(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>C(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>C(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>C(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>C(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>C(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>C(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>C(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>C(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>C(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>C(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>C(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>C(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>C(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>C(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>C(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gn",name:"GN",import:(()=>C(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>C(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>C(()=>import("./go-CxLEBnE3.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>C(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>C(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>C(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>C(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>C(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>C(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>C(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>C(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>C(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>C(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>C(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>C(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>C(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>C(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>C(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>C(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>C(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>C(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>C(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>C(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>C(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>C(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>C(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>C(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>C(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>C(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>C(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>C(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>C(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>C(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"just",name:"Just",import:(()=>C(()=>import("./just-Cw27pwNe.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38])))},{id:"kdl",name:"KDL",import:(()=>C(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>C(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>C(()=>import("./kusto-DZf3V79B.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>C(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>C(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>C(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>C(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([67,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>C(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>C(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>C(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>C(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>C(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>C(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>C(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>C(()=>import("./marko-CnJfTvn9.js"),__vite__mapDeps([68,3,69,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>C(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>C(()=>import("./mdc-BMNejdWA.js"),__vite__mapDeps([70,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>C(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>C(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>C(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>C(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>C(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>C(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>C(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>C(()=>import("./nextflow-Zz6hmt5N.js"),__vite__mapDeps([71,72])))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>C(()=>import("./nextflow-groovy-BeH2EWoN.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>C(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26])))},{id:"nim",name:"Nim",import:(()=>C(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>C(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>C(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>C(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>C(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>C(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>C(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>C(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>C(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>C(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([64,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>C(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([75,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>C(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>C(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>C(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>C(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>C(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>C(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>C(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>C(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>C(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>C(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>C(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([76,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>C(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>C(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>C(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>C(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2])))},{id:"qmldir",name:"QML Directory",import:(()=>C(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>C(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>C(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>C(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>C(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>C(()=>import("./razor-Uh8Bk_45.js"),__vite__mapDeps([78,1,2,3,79])))},{id:"reg",name:"Windows Registry Script",import:(()=>C(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>C(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>C(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>C(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>C(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>C(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>C(()=>import("./rst-BrH8l1NY.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>C(()=>import("./ruby-Dw2BHqvy.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>C(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>C(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16])))},{id:"sass",name:"Sass",import:(()=>C(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>C(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>C(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>C(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>C(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>C(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>C(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>C(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>C(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>C(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>C(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([86,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>C(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>C(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>C(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>C(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>C(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>C(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>C(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2])))},{id:"svelte",name:"Svelte",import:(()=>C(()=>import("./svelte-C_ipcX3V.js"),__vite__mapDeps([91,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>C(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>C(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>C(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>C(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>C(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>C(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>C(()=>import("./templ-P3uqSqPl.js"),__vite__mapDeps([92,93,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>C(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>C(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62])))},{id:"toml",name:"TOML",import:(()=>C(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>C(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>C(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>C(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>C(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>C(()=>import("./twig-DNn4PbVi.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>C(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>C(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>C(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>C(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>C(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>C(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>C(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>C(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>C(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>C(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([96,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>C(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>C(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([98,3,5,69,99,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>C(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>C(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>C(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>C(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>C(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>C(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>C(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>C(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>C(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>C(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>C(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>C(()=>import("./zig-VOosw3JB.js"),[]))}],nC=Object.fromEntries(Cv.map(i=>[i.id,i.import])),iC=Object.fromEntries(Cv.flatMap(i=>{var n;return((n=i.aliases)==null?void 0:n.map(a=>[a,i.import]))||[]})),kf={...nC,...iC},aC=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>C(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>C(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>C(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>C(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>C(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>C(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>C(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>C(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>C(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>C(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>C(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>C(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>C(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>C(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>C(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>C(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>C(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>C(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>C(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>C(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>C(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>C(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>C(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>C(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>C(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>C(()=>import("./horizon-bright-Cn-bp-IR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>C(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>C(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>C(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>C(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>C(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>C(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>C(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>C(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>C(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>C(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>C(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>C(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>C(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>C(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>C(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>C(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>C(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>C(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>C(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>C(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>C(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>C(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>C(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>C(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>C(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>C(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>C(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>C(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>C(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>C(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>C(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>C(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>C(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>C(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>C(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>C(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Av=Object.fromEntries(aC.map(i=>[i.id,i.import]));class Jf extends Error{constructor(n){super(n),this.name="ShikiError"}}function lC(){return 2147483648}function rC(){return typeof performance<"u"?performance.now():Date.now()}const oC=(i,n)=>i+(n-i%n)%n;async function sC(i){let n,a;const r={};function s(_){a=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function u(_,E,w){r.HEAPU8.copyWithin(_,E,E+w)}function f(_){try{return n.grow(_-a.byteLength+65535>>>16),s(n.buffer),1}catch{}}function d(_){const E=r.HEAPU8.length;_=_>>>0;const w=lC();if(_>w)return!1;for(let N=1;N<=4;N*=2){let D=E*(1+.2/N);D=Math.min(D,_+100663296);const L=Math.min(w,oC(Math.max(_,D),65536));if(f(L))return!0}return!1}const h=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function m(_,E,w=1024){const N=E+w;let D=E;for(;_[D]&&!(D>=N);)++D;if(D-E>16&&_.buffer&&h)return h.decode(_.subarray(E,D));let L="";for(;E<D;){let T=_[E++];if(!(T&128)){L+=String.fromCharCode(T);continue}const U=_[E++]&63;if((T&224)===192){L+=String.fromCharCode((T&31)<<6|U);continue}const q=_[E++]&63;if((T&240)===224?T=(T&15)<<12|U<<6|q:T=(T&7)<<18|U<<12|q<<6|_[E++]&63,T<65536)L+=String.fromCharCode(T);else{const V=T-65536;L+=String.fromCharCode(55296|V>>10,56320|V&1023)}}return L}function v(_,E){return _?m(r.HEAPU8,_,E):""}const g={emscripten_get_now:rC,emscripten_memcpy_big:u,emscripten_resize_heap:d,fd_write:()=>0};async function y(){const E=await i({env:g,wasi_snapshot_preview1:g});n=E.memory,s(n.buffer),Object.assign(r,E),r.UTF8ToString=v}return await y(),r}var uC=Object.defineProperty,cC=(i,n,a)=>n in i?uC(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,nt=(i,n,a)=>cC(i,typeof n!="symbol"?n+"":n,a);let ot=null;function fC(i){throw new Jf(i.UTF8ToString(i.getLastOnigError()))}class us{constructor(n){nt(this,"utf16Length"),nt(this,"utf8Length"),nt(this,"utf16Value"),nt(this,"utf8Value"),nt(this,"utf16OffsetToUtf8"),nt(this,"utf8OffsetToUtf16");const a=n.length,r=us._utf8ByteLength(n),s=r!==a,u=s?new Uint32Array(a+1):null;s&&(u[a]=r);const f=s?new Uint32Array(r+1):null;s&&(f[r]=a);const d=new Uint8Array(r);let h=0;for(let m=0;m<a;m++){const v=n.charCodeAt(m);let g=v,y=!1;if(v>=55296&&v<=56319&&m+1<a){const _=n.charCodeAt(m+1);_>=56320&&_<=57343&&(g=(v-55296<<10)+65536|_-56320,y=!0)}s&&(u[m]=h,y&&(u[m+1]=h),g<=127?f[h+0]=m:g<=2047?(f[h+0]=m,f[h+1]=m):g<=65535?(f[h+0]=m,f[h+1]=m,f[h+2]=m):(f[h+0]=m,f[h+1]=m,f[h+2]=m,f[h+3]=m)),g<=127?d[h++]=g:g<=2047?(d[h++]=192|(g&1984)>>>6,d[h++]=128|(g&63)>>>0):g<=65535?(d[h++]=224|(g&61440)>>>12,d[h++]=128|(g&4032)>>>6,d[h++]=128|(g&63)>>>0):(d[h++]=240|(g&1835008)>>>18,d[h++]=128|(g&258048)>>>12,d[h++]=128|(g&4032)>>>6,d[h++]=128|(g&63)>>>0),y&&m++}this.utf16Length=a,this.utf8Length=r,this.utf16Value=n,this.utf8Value=d,this.utf16OffsetToUtf8=u,this.utf8OffsetToUtf16=f}static _utf8ByteLength(n){let a=0;for(let r=0,s=n.length;r<s;r++){const u=n.charCodeAt(r);let f=u,d=!1;if(u>=55296&&u<=56319&&r+1<s){const h=n.charCodeAt(r+1);h>=56320&&h<=57343&&(f=(u-55296<<10)+65536|h-56320,d=!0)}f<=127?a+=1:f<=2047?a+=2:f<=65535?a+=3:a+=4,d&&r++}return a}createString(n){const a=n.omalloc(this.utf8Length);return n.HEAPU8.set(this.utf8Value,a),a}}const cs=class bn{constructor(n){if(nt(this,"id",++bn.LAST_ID),nt(this,"_onigBinding"),nt(this,"content"),nt(this,"utf16Length"),nt(this,"utf8Length"),nt(this,"utf16OffsetToUtf8"),nt(this,"utf8OffsetToUtf16"),nt(this,"ptr"),!ot)throw new Jf("Must invoke loadWasm first.");this._onigBinding=ot,this.content=n;const a=new us(n);this.utf16Length=a.utf16Length,this.utf8Length=a.utf8Length,this.utf16OffsetToUtf8=a.utf16OffsetToUtf8,this.utf8OffsetToUtf16=a.utf8OffsetToUtf16,this.utf8Length<1e4&&!bn._sharedPtrInUse?(bn._sharedPtr||(bn._sharedPtr=ot.omalloc(1e4)),bn._sharedPtrInUse=!0,ot.HEAPU8.set(a.utf8Value,bn._sharedPtr),this.ptr=bn._sharedPtr):this.ptr=a.createString(ot)}convertUtf8OffsetToUtf16(n){return this.utf8OffsetToUtf16?n<0?0:n>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[n]:n}convertUtf16OffsetToUtf8(n){return this.utf16OffsetToUtf8?n<0?0:n>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[n]:n}dispose(){this.ptr===bn._sharedPtr?bn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};nt(cs,"LAST_ID",0);nt(cs,"_sharedPtr",0);nt(cs,"_sharedPtrInUse",!1);let Tv=cs;class dC{constructor(n){if(nt(this,"_onigBinding"),nt(this,"_ptr"),!ot)throw new Jf("Must invoke loadWasm first.");const a=[],r=[];for(let d=0,h=n.length;d<h;d++){const m=new us(n[d]);a[d]=m.createString(ot),r[d]=m.utf8Length}const s=ot.omalloc(4*n.length);ot.HEAPU32.set(a,s/4);const u=ot.omalloc(4*n.length);ot.HEAPU32.set(r,u/4);const f=ot.createOnigScanner(s,u,n.length);for(let d=0,h=n.length;d<h;d++)ot.ofree(a[d]);ot.ofree(u),ot.ofree(s),f===0&&fC(ot),this._onigBinding=ot,this._ptr=f}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(n,a,r){let s=0;if(typeof r=="number"&&(s=r),typeof n=="string"){n=new Tv(n);const u=this._findNextMatchSync(n,a,!1,s);return n.dispose(),u}return this._findNextMatchSync(n,a,!1,s)}_findNextMatchSync(n,a,r,s){const u=this._onigBinding,f=u.findNextOnigScannerMatch(this._ptr,n.id,n.ptr,n.utf8Length,n.convertUtf16OffsetToUtf8(a),s);if(f===0)return null;const d=u.HEAPU32;let h=f/4;const m=d[h++],v=d[h++],g=[];for(let y=0;y<v;y++){const _=n.convertUtf8OffsetToUtf16(d[h++]),E=n.convertUtf8OffsetToUtf16(d[h++]);g[y]={start:_,end:E,length:E-_}}return{index:m,captureIndices:g}}}function hC(i){return typeof i.instantiator=="function"}function pC(i){return typeof i.default=="function"}function mC(i){return typeof i.data<"u"}function gC(i){return typeof Response<"u"&&i instanceof Response}function vC(i){var n;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((n=Buffer.isBuffer)==null?void 0:n.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let Do;function bC(i){if(Do)return Do;async function n(){ot=await sC(async a=>{let r=i;return r=await r,typeof r=="function"&&(r=await r(a)),typeof r=="function"&&(r=await r(a)),hC(r)?r=await r.instantiator(a):pC(r)?r=await r.default(a):(mC(r)&&(r=r.data),gC(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await yC(r)(a):r=await _C(r)(a):vC(r)?r=await Fc(r)(a):r instanceof WebAssembly.Module?r=await Fc(r)(a):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Fc(r.default)(a))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Do=n(),Do}function Fc(i){return n=>WebAssembly.instantiate(i,n)}function yC(i){return n=>WebAssembly.instantiateStreaming(i,n)}function _C(i){return async n=>{const a=await i.arrayBuffer();return WebAssembly.instantiate(a,n)}}async function xv(i){return i&&await bC(i),{createScanner(n){return new dC(n.map(a=>typeof a=="string"?a:a.source))},createString(n){return new Tv(n)}}}const SC=tC({langs:kf,themes:Av,engine:()=>xv(C(()=>import("./wasm-CG6Dc4jp.js"),[]))});function Ka(i){if([...i].length!==1)throw new Error(`Expected "${i}" to be a single code point`);return i.codePointAt(0)}function EC(i,n,a){return i.has(n)||i.set(n,a),i.get(n)}const ed=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),st=String.raw;function Wa(i,n){if(i==null)throw new Error(n??"Value expected");return i}const wv=st`\[\^?`,Lv=`c.? | C(?:-.?)?|${st`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${st`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${st`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${st`o\{[^\}]*\}?`}|${st`\d{1,3}`}`,td=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Oo=new RegExp(st`
62
- \\ (?:
63
- ${Lv}
64
- | [gk]<[^>]*>?
65
- | [gk]'[^']*'?
66
- | .
67
- )
68
- | \( (?:
69
- \? (?:
70
- [:=!>({]
71
- | <[=!]
72
- | <[^>]*>
73
- | '[^']*'
74
- | ~\|?
75
- | #(?:[^)\\]|\\.?)*
76
- | [^:)]*[:)]
77
- )?
78
- | \*[^\)]*\)?
79
- )?
80
- | (?:${td.source})+
81
- | ${wv}
82
- | .
83
- `.replace(/\s+/g,""),"gsu"),Zc=new RegExp(st`
84
- \\ (?:
85
- ${Lv}
86
- | .
87
- )
88
- | \[:(?:\^?\p{Alpha}+|\^):\]
89
- | ${wv}
90
- | &&
91
- | .
92
- `.replace(/\s+/g,""),"gsu");function CC(i,n={}){const a={flags:"",...n,rules:{captureGroup:!1,singleline:!1,...n.rules}};if(typeof i!="string")throw new Error("String expected as pattern");const r=jC(a.flags),s=[r.extended],u={captureGroup:a.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(g){s.push(g)},replaceCurrentModX(g){s[s.length-1]=g},singleline:a.rules.singleline};let f=[],d;for(Oo.lastIndex=0;d=Oo.exec(i);){const g=AC(u,i,d[0],Oo.lastIndex);g.tokens?f.push(...g.tokens):g.token&&f.push(g.token),g.lastIndex!==void 0&&(Oo.lastIndex=g.lastIndex)}const h=[];let m=0;f.filter(g=>g.type==="GroupOpen").forEach(g=>{g.kind==="capturing"?g.number=++m:g.raw==="("&&h.push(g)}),m||h.forEach((g,y)=>{g.kind="capturing",g.number=y+1});const v=m||h.length;return{tokens:f.map(g=>g.type==="EscapedNumber"?$C(g,v):g).flat(),flags:r}}function AC(i,n,a,r){const[s,u]=a;if(a==="["||a==="[^"){const f=TC(n,a,r);return{tokens:f.tokens,lastIndex:f.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(u))return{token:Kg(a,a)};if(/^\\g[<']/.test(a)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(a))throw new Error(`Invalid group name "${a}"`);return{token:zC(a)}}if(/^\\k[<']/.test(a)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(a))throw new Error(`Invalid group name "${a}"`);return{token:Rv(a)}}if(u==="K")return{token:Dv("keep",a)};if(u==="N"||u==="R")return{token:qi("newline",a,{negate:u==="N"})};if(u==="O")return{token:qi("any",a)};if(u==="X")return{token:qi("text_segment",a)};const f=kv(a,{inCharClass:!1});return Array.isArray(f)?{tokens:f}:{token:f}}if(s==="("){if(u==="*")return{token:VC(a)};if(a==="(?{")throw new Error(`Unsupported callout "${a}"`);if(a.startsWith("(?#")){if(n[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(a))return{token:HC(a,i)};if(i.pushModX(i.getCurrentModX()),i.numOpenGroups++,a==="("&&!i.captureGroup||a==="(?:")return{token:Va("group",a)};if(a==="(?>")return{token:Va("atomic",a)};if(a==="(?="||a==="(?!"||a==="(?<="||a==="(?<!")return{token:Va(a[2]==="<"?"lookbehind":"lookahead",a,{negate:a.endsWith("!")})};if(a==="("&&i.captureGroup||a.startsWith("(?<")&&a.endsWith(">")||a.startsWith("(?'")&&a.endsWith("'"))return{token:Va("capturing",a,{...a!=="("&&{name:a.slice(3,-1)}})};if(a.startsWith("(?~")){if(a==="(?~|")throw new Error(`Unsupported absence function kind "${a}"`);return{token:Va("absence_repeater",a)}}throw a==="(?("?new Error(`Unsupported conditional "${a}"`):new Error(`Invalid or unsupported group option "${a}"`)}if(a===")"){if(i.popModX(),i.numOpenGroups--,i.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:OC(a)}}if(i.getCurrentModX()){if(a==="#"){const f=n.indexOf(`
93
- `,r);return{lastIndex:f===-1?n.length:f}}if(/^\s$/.test(a)){const f=/\s+/y;return f.lastIndex=r,{lastIndex:f.exec(n)?f.lastIndex:r}}}if(a===".")return{token:qi("dot",a)};if(a==="^"||a==="$"){const f=i.singleline?{"^":st`\A`,$:st`\Z`}[a]:a;return{token:Kg(f,a)}}return a==="|"?{token:wC(a)}:td.test(a)?{tokens:qC(a)}:{token:$n(Ka(a),a)}}function TC(i,n,a){const r=[Wg(n[1]==="^",n)];let s=1,u;for(Zc.lastIndex=a;u=Zc.exec(i);){const f=u[0];if(f[0]==="["&&f[1]!==":")s++,r.push(Wg(f[1]==="^",f));else if(f==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push($n(93,f));else if(s--,r.push(LC(f)),!s)break}else{const d=xC(f);Array.isArray(d)?r.push(...d):r.push(d)}}return{tokens:r,lastIndex:Zc.lastIndex||i.length}}function xC(i){if(i[0]==="\\")return kv(i,{inCharClass:!0});if(i[0]==="["){const n=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(i);if(!n||!ed.has(n.groups.name))throw new Error(`Invalid POSIX class "${i}"`);return qi("posix",i,{value:n.groups.name,negate:!!n.groups.negate})}return i==="-"?kC(i):i==="&&"?RC(i):$n(Ka(i),i)}function kv(i,{inCharClass:n}){const a=i[1];if(a==="c"||a==="C")return UC(i);if("dDhHsSwW".includes(a))return GC(i);if(i.startsWith(st`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${i}"`);if(/^\\[pP]\{/.test(i)){if(i.length===3)throw new Error(`Incomplete or invalid Unicode property "${i}"`);return BC(i)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(i))try{const r=i.split(/\\x/).slice(1).map(f=>parseInt(f,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),u=new TextEncoder;return[...s].map(f=>{const d=[...u.encode(f)].map(h=>`\\x${h.toString(16)}`).join("");return $n(Ka(f),d)})}catch{throw new Error(`Multibyte code "${i}" incomplete or invalid in Oniguruma`)}if(a==="u"||a==="x")return $n(PC(i),i);if(Jg.has(a))return $n(Jg.get(a),i);if(/\d/.test(a))return DC(n,i);if(i==="\\")throw new Error(st`Incomplete escape "\"`);if(a==="M")throw new Error(`Unsupported meta "${i}"`);if([...i].length===2)return $n(i.codePointAt(1),i);throw new Error(`Unexpected escape "${i}"`)}function wC(i){return{type:"Alternator",raw:i}}function Kg(i,n){return{type:"Assertion",kind:i,raw:n}}function Rv(i){return{type:"Backreference",raw:i}}function $n(i,n){return{type:"Character",value:i,raw:n}}function LC(i){return{type:"CharacterClassClose",raw:i}}function kC(i){return{type:"CharacterClassHyphen",raw:i}}function RC(i){return{type:"CharacterClassIntersector",raw:i}}function Wg(i,n){return{type:"CharacterClassOpen",negate:i,raw:n}}function qi(i,n,a={}){return{type:"CharacterSet",kind:i,...a,raw:n}}function Dv(i,n,a={}){return i==="keep"?{type:"Directive",kind:i,raw:n}:{type:"Directive",kind:i,flags:Wa(a.flags),raw:n}}function DC(i,n){return{type:"EscapedNumber",inCharClass:i,raw:n}}function OC(i){return{type:"GroupClose",raw:i}}function Va(i,n,a={}){return{type:"GroupOpen",kind:i,...a,raw:n}}function NC(i,n,a,r){return{type:"NamedCallout",kind:i,tag:n,arguments:a,raw:r}}function MC(i,n,a,r){return{type:"Quantifier",kind:i,min:n,max:a,raw:r}}function zC(i){return{type:"Subroutine",raw:i}}const IC=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Jg=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function UC(i){const n=i[1]==="c"?i[2]:i[3];if(!n||!/[A-Za-z]/.test(n))throw new Error(`Unsupported control character "${i}"`);return $n(Ka(n.toUpperCase())-64,i)}function HC(i,n){let{on:a,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(i).groups;r??(r="");const s=(n.getCurrentModX()||a.includes("x"))&&!r.includes("x"),u=t0(a),f=t0(r),d={};if(u&&(d.enable=u),f&&(d.disable=f),i.endsWith(")"))return n.replaceCurrentModX(s),Dv("flags",i,{flags:d});if(i.endsWith(":"))return n.pushModX(s),n.numOpenGroups++,Va("group",i,{...(u||f)&&{flags:d}});throw new Error(`Unexpected flag modifier "${i}"`)}function VC(i){const n=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(i);if(!n)throw new Error(`Incomplete or invalid named callout "${i}"`);const{name:a,tag:r,args:s}=n.groups;if(!a)throw new Error(`Invalid named callout "${i}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${i}"`);const u=s?s.split(",").filter(v=>v!=="").map(v=>/^[+-]?\d+$/.test(v)?+v:v):[],[f,d,h]=u,m=IC.has(a)?a.toLowerCase():"custom";switch(m){case"fail":case"mismatch":case"skip":if(u.length>0)throw new Error(`Named callout arguments not allowed "${u}"`);break;case"error":if(u.length>1)throw new Error(`Named callout allows only one argument "${u}"`);if(typeof f=="string")throw new Error(`Named callout argument must be a number "${f}"`);break;case"max":if(!u.length||u.length>2)throw new Error(`Named callout must have one or two arguments "${u}"`);if(typeof f=="string"&&!/^[A-Za-z_]\w*$/.test(f))throw new Error(`Named callout argument one must be a tag or number "${f}"`);if(u.length===2&&(typeof d=="number"||!/^[<>X]$/.test(d)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${d}"`);break;case"count":case"total_count":if(u.length>1)throw new Error(`Named callout allows only one argument "${u}"`);if(u.length===1&&(typeof f=="number"||!/^[<>X]$/.test(f)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${f}"`);break;case"cmp":if(u.length!==3)throw new Error(`Named callout must have three arguments "${u}"`);if(typeof f=="string"&&!/^[A-Za-z_]\w*$/.test(f))throw new Error(`Named callout argument one must be a tag or number "${f}"`);if(typeof d=="number"||!/^(?:[<>!=]=|[<>])$/.test(d))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${d}"`);if(typeof h=="string"&&!/^[A-Za-z_]\w*$/.test(h))throw new Error(`Named callout argument three must be a tag or number "${h}"`);break;case"custom":throw new Error(`Undefined callout name "${a}"`);default:throw new Error(`Unexpected named callout kind "${m}"`)}return NC(m,r??null,(s==null?void 0:s.split(","))??null,i)}function e0(i){let n=null,a,r;if(i[0]==="{"){const{minStr:s,maxStr:u}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(i).groups,f=1e5;if(+s>f||u&&+u>f)throw new Error("Quantifier value unsupported in Oniguruma");if(a=+s,r=u===void 0?+s:u===""?1/0:+u,a>r&&(n="possessive",[a,r]=[r,a]),i.endsWith("?")){if(n==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');n="lazy"}else n||(n="greedy")}else a=i[0]==="+"?1:0,r=i[0]==="?"?1:1/0,n=i[1]==="+"?"possessive":i[1]==="?"?"lazy":"greedy";return MC(n,a,r,i)}function GC(i){const n=i[1].toLowerCase();return qi({d:"digit",h:"hex",s:"space",w:"word"}[n],i,{negate:i[1]!==n})}function BC(i){const{p:n,neg:a,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(i).groups;return qi("property",i,{value:r,negate:n==="P"&&!a||n==="p"&&!!a})}function t0(i){const n={};return i.includes("i")&&(n.ignoreCase=!0),i.includes("m")&&(n.dotAll=!0),i.includes("x")&&(n.extended=!0),Object.keys(n).length?n:null}function jC(i){const n={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let a=0;a<i.length;a++){const r=i[a];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(i.slice(a)))throw new Error('Invalid or unspecified flag "y" mode');n.textSegmentMode=i[a+2]==="g"?"grapheme":"word",a+=3;continue}n[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return n}function PC(i){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(i))throw new Error(`Incomplete or invalid escape "${i}"`);const n=i[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(i).groups.hex:i.slice(2);return parseInt(n,16)}function $C(i,n){const{raw:a,inCharClass:r}=i,s=a.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=n))return[Rv(a)];const u=[],f=s.match(/^[0-7]+|\d/g);for(let d=0;d<f.length;d++){const h=f[d];let m;if(d===0&&h!=="8"&&h!=="9"){if(m=parseInt(h,8),m>127)throw new Error(st`Octal encoded byte above 177 unsupported "${a}"`)}else m=Ka(h);u.push($n(m,(d===0?"\\":"")+h))}return u}function qC(i){const n=[],a=new RegExp(td,"gy");let r;for(;r=a.exec(i);){const s=r[0];if(s[0]==="{"){const u=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(u){const{min:f,max:d}=u.groups;if(+f>+d&&s.endsWith("?")){a.lastIndex--,n.push(e0(s.slice(0,-1)));continue}}}n.push(e0(s))}return n}function Ov(i,n){if(!Array.isArray(i.body))throw new Error("Expected node with body array");if(i.body.length!==1)return!1;const a=i.body[0];return!n||Object.keys(n).every(r=>n[r]===a[r])}function YC(i){return XC.has(i.type)}const XC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Nv(i,n={}){const a={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...n,rules:{captureGroup:!1,singleline:!1,...n.rules}},r=CC(i,{flags:a.flags,rules:{captureGroup:a.rules.captureGroup,singleline:a.rules.singleline}}),s=(y,_)=>{const E=r.tokens[u.nextIndex];switch(u.parent=y,u.nextIndex++,E.type){case"Alternator":return Fi();case"Assertion":return QC(E);case"Backreference":return FC(E,u);case"Character":return fs(E.value,{useLastValid:!!_.isCheckingRangeEnd});case"CharacterClassHyphen":return ZC(E,u,_);case"CharacterClassOpen":return KC(E,u,_);case"CharacterSet":return WC(E,u);case"Directive":return aA(E.kind,{flags:E.flags});case"GroupOpen":return JC(E,u,_);case"NamedCallout":return rA(E.kind,E.tag,E.arguments);case"Quantifier":return eA(E,u);case"Subroutine":return tA(E,u);default:throw new Error(`Unexpected token type "${E.type}"`)}},u={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:a.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:a.skipBackrefValidation,skipLookbehindValidation:a.skipLookbehindValidation,skipPropertyNameValidation:a.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:a.unicodePropertyMap,walk:s},f=sA(lA(r.flags));let d=f.body[0];for(;u.nextIndex<r.tokens.length;){const y=s(d,{});y.type==="Alternative"?(f.body.push(y),d=y):d.body.push(y)}const{capturingGroups:h,hasNumberedRef:m,namedGroupsByName:v,subroutines:g}=u;if(m&&v.size&&!a.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:y}of g)if(typeof y=="number"){if(y>h.length)throw new Error("Subroutine uses a group number that's not defined");y&&(h[y-1].isSubroutined=!0)}else if(v.has(y)){if(v.get(y).length>1)throw new Error(st`Subroutine uses a duplicate group name "\g<${y}>"`);v.get(y)[0].isSubroutined=!0}else throw new Error(st`Subroutine uses a group name that's not defined "\g<${y}>"`);return f}function QC({kind:i}){return Rf(Wa({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[i],`Unexpected assertion kind "${i}"`),{negate:i===st`\B`||i===st`\Y`})}function FC({raw:i},n){const a=/^\\k[<']/.test(i),r=a?i.slice(3,-1):i.slice(1),s=(u,f=!1)=>{const d=n.capturingGroups.length;let h=!1;if(u>d)if(n.skipBackrefValidation)h=!0;else throw new Error(`Not enough capturing groups defined to the left "${i}"`);return n.hasNumberedRef=!0,Df(f?d+1-u:u,{orphan:h})};if(a){const u=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(u)return s(+u.groups.num,!!u.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${i}"`);if(!n.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${i}"`);return Df(r)}return s(+r)}function ZC(i,n,a){const{tokens:r,walk:s}=n,u=n.parent,f=u.body.at(-1),d=r[n.nextIndex];if(!a.isCheckingRangeEnd&&f&&f.type!=="CharacterClass"&&f.type!=="CharacterClassRange"&&d&&d.type!=="CharacterClassOpen"&&d.type!=="CharacterClassClose"&&d.type!=="CharacterClassIntersector"){const h=s(u,{...a,isCheckingRangeEnd:!0});if(f.type==="Character"&&h.type==="Character")return u.body.pop(),iA(f,h);throw new Error("Invalid character class range")}return fs(Ka("-"))}function KC({negate:i},n,a){const{tokens:r,walk:s}=n,u=r[n.nextIndex],f=[$o()];let d=a0(u);for(;d.type!=="CharacterClassClose";){if(d.type==="CharacterClassIntersector")f.push($o()),n.nextIndex++;else{const m=f.at(-1);m.body.push(s(m,a))}d=a0(r[n.nextIndex],u)}const h=$o({negate:i});return f.length===1?h.body=f[0].body:(h.kind="intersection",h.body=f.map(m=>m.body.length===1?m.body[0]:m)),n.nextIndex++,h}function WC({kind:i,negate:n,value:a},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:u,unicodePropertyMap:f}=r;if(i==="property"){const d=ds(a);if(ed.has(d)&&!(f!=null&&f.has(d)))i="posix",a=d;else return Ga(a,{negate:n,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:u,unicodePropertyMap:f})}return i==="posix"?oA(a,{negate:n}):Of(i,{negate:n})}function JC(i,n,a){const{tokens:r,capturingGroups:s,namedGroupsByName:u,skipLookbehindValidation:f,walk:d}=n,h=uA(i),m=h.type==="AbsenceFunction",v=i0(h),g=v&&h.negate;if(h.type==="CapturingGroup"&&(s.push(h),h.name&&EC(u,h.name,[]).push(h)),m&&a.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let y=l0(r[n.nextIndex]);for(;y.type!=="GroupClose";){if(y.type==="Alternator")h.body.push(Fi()),n.nextIndex++;else{const _=h.body.at(-1),E=d(_,{...a,isInAbsenceFunction:a.isInAbsenceFunction||m,isInLookbehind:a.isInLookbehind||v,isInNegLookbehind:a.isInNegLookbehind||g});if(_.body.push(E),(v||a.isInLookbehind)&&!f){const w="Lookbehind includes a pattern not allowed by Oniguruma";if(g||a.isInNegLookbehind){if(n0(E)||E.type==="CapturingGroup")throw new Error(w)}else if(n0(E)||i0(E)&&E.negate)throw new Error(w)}}y=l0(r[n.nextIndex])}return n.nextIndex++,h}function eA({kind:i,min:n,max:a},r){const s=r.parent,u=s.body.at(-1);if(!u||!YC(u))throw new Error("Quantifier requires a repeatable token");const f=zv(i,n,a,u);return s.body.pop(),f}function tA({raw:i},n){const{capturingGroups:a,subroutines:r}=n;let s=i.slice(3,-1);const u=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(u){const d=+u.groups.num,h=a.length;if(n.hasNumberedRef=!0,s={"":d,"+":h+d,"-":h+1-d}[u.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const f=Iv(s);return r.push(f),f}function nA(i,n){return{type:"AbsenceFunction",kind:i,body:sr(n==null?void 0:n.body)}}function Fi(i){return{type:"Alternative",body:Uv(i==null?void 0:i.body)}}function Rf(i,n){const a={type:"Assertion",kind:i};return(i==="word_boundary"||i==="text_segment_boundary")&&(a.negate=!!(n!=null&&n.negate)),a}function Df(i,n){const a=!!(n!=null&&n.orphan);return{type:"Backreference",ref:i,...a&&{orphan:a}}}function Mv(i,n){const a={name:void 0,isSubroutined:!1,...n};if(a.name!==void 0&&!cA(a.name))throw new Error(`Group name "${a.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:i,...a.name&&{name:a.name},...a.isSubroutined&&{isSubroutined:a.isSubroutined},body:sr(n==null?void 0:n.body)}}function fs(i,n){const a={useLastValid:!1,...n};if(i>1114111){const r=i.toString(16);if(a.useLastValid)i=1114111;else throw i>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:i}}function $o(i){const n={kind:"union",negate:!1,...i};return{type:"CharacterClass",kind:n.kind,negate:n.negate,body:Uv(i==null?void 0:i.body)}}function iA(i,n){if(n.value<i.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:i,max:n}}function Of(i,n){const a=!!(n!=null&&n.negate),r={type:"CharacterSet",kind:i};return(i==="digit"||i==="hex"||i==="newline"||i==="space"||i==="word")&&(r.negate=a),(i==="text_segment"||i==="newline"&&!a)&&(r.variableLength=!0),r}function aA(i,n={}){if(i==="keep")return{type:"Directive",kind:i};if(i==="flags")return{type:"Directive",kind:i,flags:Wa(n.flags)};throw new Error(`Unexpected directive kind "${i}"`)}function lA(i){return{type:"Flags",...i}}function cn(i){const n=i==null?void 0:i.atomic,a=i==null?void 0:i.flags;if(n&&a)throw new Error("Atomic group cannot have flags");return{type:"Group",...n&&{atomic:n},...a&&{flags:a},body:sr(i==null?void 0:i.body)}}function Pi(i){const n={behind:!1,negate:!1,...i};return{type:"LookaroundAssertion",kind:n.behind?"lookbehind":"lookahead",negate:n.negate,body:sr(i==null?void 0:i.body)}}function rA(i,n,a){return{type:"NamedCallout",kind:i,tag:n,arguments:a}}function oA(i,n){const a=!!(n!=null&&n.negate);if(!ed.has(i))throw new Error(`Invalid POSIX class "${i}"`);return{type:"CharacterSet",kind:"posix",value:i,negate:a}}function zv(i,n,a,r){if(n>a)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:i,min:n,max:a,body:r}}function sA(i,n){return{type:"Regex",body:sr(n==null?void 0:n.body),flags:i}}function Iv(i){return{type:"Subroutine",ref:i}}function Ga(i,n){var s;const a={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...n};let r=(s=a.unicodePropertyMap)==null?void 0:s.get(ds(i));if(!r){if(a.normalizeUnknownPropertyNames)r=fA(i);else if(a.unicodePropertyMap&&!a.skipPropertyNameValidation)throw new Error(st`Invalid Unicode property "\p{${i}}"`)}return{type:"CharacterSet",kind:"property",value:r??i,negate:a.negate}}function uA({flags:i,kind:n,name:a,negate:r,number:s}){switch(n){case"absence_repeater":return nA("repeater");case"atomic":return cn({atomic:!0});case"capturing":return Mv(s,{name:a});case"group":return cn({flags:i});case"lookahead":case"lookbehind":return Pi({behind:n==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${n}"`)}}function sr(i){if(i===void 0)i=[Fi()];else if(!Array.isArray(i)||!i.length||!i.every(n=>n.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return i}function Uv(i){if(i===void 0)i=[];else if(!Array.isArray(i)||!i.every(n=>!!n.type))throw new Error("Invalid body; expected array of nodes");return i}function n0(i){return i.type==="LookaroundAssertion"&&i.kind==="lookahead"}function i0(i){return i.type==="LookaroundAssertion"&&i.kind==="lookbehind"}function cA(i){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(i)}function fA(i){return i.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}function ds(i){return i.replace(/[- _]+/g,"").toLowerCase()}function a0(i,n){return Wa(i,`${(n==null?void 0:n.type)==="Character"&&n.value===93?"Empty":"Unclosed"} character class`)}function l0(i){return Wa(i,"Unclosed group")}function Kl(i,n,a=null){function r(u,f){for(let d=0;d<u.length;d++){const h=s(u[d],f,d,u);d=Math.max(-1,d+h)}}function s(u,f=null,d=null,h=null){var D,L;let m=0,v=!1;const g={node:u,parent:f,key:d,container:h,root:i,remove(){No(h).splice(Math.max(0,za(d)+m),1),m--,v=!0},removeAllNextSiblings(){return No(h).splice(za(d)+1)},removeAllPrevSiblings(){const T=za(d)+m;return m-=T,No(h).splice(0,Math.max(0,T))},replaceWith(T,U={}){const q=!!U.traverse;h?h[Math.max(0,za(d)+m)]=T:Wa(f,"Can't replace root node")[d]=T,q&&s(T,f,d,h),v=!0},replaceWithMultiple(T,U={}){const q=!!U.traverse;if(No(h).splice(Math.max(0,za(d)+m),1,...T),m+=T.length-1,q){let V=0;for(let M=0;M<T.length;M++)V+=s(T[M],f,za(d)+M+V,h)}v=!0},skip(){v=!0}},{type:y}=u,_=n["*"],E=n[y],w=typeof _=="function"?_:_==null?void 0:_.enter,N=typeof E=="function"?E:E==null?void 0:E.enter;if(w==null||w(g,a),N==null||N(g,a),!v)switch(y){case"AbsenceFunction":case"CapturingGroup":case"Group":r(u.body,u);break;case"Alternative":case"CharacterClass":r(u.body,u);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(u.min,u,"min"),s(u.max,u,"max");break;case"LookaroundAssertion":r(u.body,u);break;case"Quantifier":s(u.body,u,"body");break;case"Regex":r(u.body,u),s(u.flags,u,"flags");break;default:throw new Error(`Unexpected node type "${y}"`)}return(D=E==null?void 0:E.exit)==null||D.call(E,g,a),(L=_==null?void 0:_.exit)==null||L.call(_,g,a),m}return s(i),i}function No(i){if(!Array.isArray(i))throw new Error("Container expected");return i}function za(i){if(typeof i!="number")throw new Error("Numeric key expected");return i}const dA=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function hA(i,n){for(let a=0;a<i.length;a++)i[a]>=n&&i[a]++}function pA(i,n,a,r){return i.slice(0,n)+r+i.slice(n+a.length)}const tn=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function nd(i,n,a,r){const s=new RegExp(String.raw`${n}|(?<$skip>\[\^?|\\?.)`,"gsu"),u=[!1];let f=0,d="";for(const h of i.matchAll(s)){const{0:m,groups:{$skip:v}}=h;if(!v&&(!r||r===tn.DEFAULT==!f)){a instanceof Function?d+=a(h,{context:f?tn.CHAR_CLASS:tn.DEFAULT,negated:u[u.length-1]}):d+=a;continue}m[0]==="["?(f++,u.push(m[1]==="^")):m==="]"&&f&&(f--,u.pop()),d+=m}return d}function Hv(i,n,a,r){nd(i,n,a,r)}function mA(i,n,a=0,r){if(!new RegExp(n,"su").test(i))return null;const s=new RegExp(`${n}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=a;let u=0,f;for(;f=s.exec(i);){const{0:d,groups:{$skip:h}}=f;if(!h&&(!r||r===tn.DEFAULT==!u))return f;d==="["?u++:d==="]"&&u&&u--,s.lastIndex==f.index&&s.lastIndex++}return null}function Mo(i,n,a){return!!mA(i,n,0,a)}function gA(i,n){const a=/\\?./gsu;a.lastIndex=n;let r=i.length,s=0,u=1,f;for(;f=a.exec(i);){const[d]=f;if(d==="[")s++;else if(s)d==="]"&&s--;else if(d==="(")u++;else if(d===")"&&(u--,!u)){r=f.index;break}}return i.slice(n,r)}const r0=new RegExp(String.raw`(?<noncapturingStart>${dA})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function vA(i,n){const a=(n==null?void 0:n.hiddenCaptures)??[];let r=(n==null?void 0:n.captureTransfers)??new Map;if(!/\(\?>/.test(i))return{pattern:i,captureTransfers:r,hiddenCaptures:a};const s="(?>",u="(?:(?=(",f=[0],d=[];let h=0,m=0,v=NaN,g;do{g=!1;let y=0,_=0,E=!1,w;for(r0.lastIndex=Number.isNaN(v)?0:v+u.length;w=r0.exec(i);){const{0:N,index:D,groups:{capturingStart:L,noncapturingStart:T}}=w;if(N==="[")y++;else if(y)N==="]"&&y--;else if(N===s&&!E)v=D,E=!0;else if(E&&T)_++;else if(L)E?_++:(h++,f.push(h+m));else if(N===")"&&E){if(!_){m++;const U=h+m;if(i=`${i.slice(0,v)}${u}${i.slice(v+s.length,D)}))<$$${U}>)${i.slice(D+1)}`,g=!0,d.push(U),hA(a,U),r.size){const q=new Map;r.forEach((V,M)=>{q.set(M>=U?M+1:M,V.map(P=>P>=U?P+1:P))}),r=q}break}_--}}}while(g);return a.push(...d),i=nd(i,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:y,groups:{backrefNum:_,wrappedBackrefNum:E}})=>{if(_){const w=+_;if(w>f.length-1)throw new Error(`Backref "${y}" greater than number of captures`);return`\\${f[w]}`}return`\\${E}`},tn.DEFAULT),{pattern:i,captureTransfers:r,hiddenCaptures:a}}const Vv=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Kc=new RegExp(String.raw`
94
- \\(?: \d+
95
- | c[A-Za-z]
96
- | [gk]<[^>]+>
97
- | [pPu]\{[^\}]+\}
98
- | u[A-Fa-f\d]{4}
99
- | x[A-Fa-f\d]{2}
100
- )
101
- | \((?: \? (?: [:=!>]
102
- | <(?:[=!]|[^>]+>)
103
- | [A-Za-z\-]+:
104
- | \(DEFINE\)
105
- ))?
106
- | (?<qBase>${Vv})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
107
- | \\?.
108
- `.replace(/\s+/g,""),"gsu");function bA(i){if(!new RegExp(`${Vv}\\+`).test(i))return{pattern:i};const n=[];let a=null,r=null,s="",u=0,f;for(Kc.lastIndex=0;f=Kc.exec(i);){const{0:d,index:h,groups:{qBase:m,qMod:v,invalidQ:g}}=f;if(d==="[")u||(r=h),u++;else if(d==="]")u?u--:r=null;else if(!u)if(v==="+"&&s&&!s.startsWith("(")){if(g)throw new Error(`Invalid quantifier "${d}"`);let y=-1;if(/^\{\d+\}$/.test(m))i=pA(i,h+m.length,v,"");else{if(s===")"||s==="]"){const _=s===")"?a:r;if(_===null)throw new Error(`Invalid unmatched "${s}"`);i=`${i.slice(0,_)}(?>${i.slice(_,h)}${m})${i.slice(h+d.length)}`}else i=`${i.slice(0,h-s.length)}(?>${s}${m})${i.slice(h+d.length)}`;y+=4}Kc.lastIndex+=y}else d[0]==="("?n.push(h):d===")"&&(a=n.length?n.pop():null);s=d}return{pattern:i}}const en=String.raw,yA=en`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Nf=en`\(\?R=(?<rDepth>[^\)]+)\)|${yA}`,hs=en`\(\?<(?![=!])(?<captureName>[^>]+)>`,Gv=en`${hs}|(?<unnamed>\()(?!\?)`,ji=new RegExp(en`${hs}|${Nf}|\(\?|\\?.`,"gsu"),Wc="Cannot use multiple overlapping recursions";function _A(i,n){const{hiddenCaptures:a,mode:r}={hiddenCaptures:[],mode:"plugin",...n};let s=(n==null?void 0:n.captureTransfers)??new Map;if(!new RegExp(Nf,"su").test(i))return{pattern:i,captureTransfers:s,hiddenCaptures:a};if(r==="plugin"&&Mo(i,en`\(\?\(DEFINE\)`,tn.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const u=[],f=Mo(i,en`\\[1-9]`,tn.DEFAULT),d=new Map,h=[];let m=!1,v=0,g=0,y;for(ji.lastIndex=0;y=ji.exec(i);){const{0:_,groups:{captureName:E,rDepth:w,gRNameOrNum:N,gRDepth:D}}=y;if(_==="[")v++;else if(v)_==="]"&&v--;else if(w){if(o0(w),m)throw new Error(Wc);if(f)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const L=i.slice(0,y.index),T=i.slice(ji.lastIndex);if(Mo(T,Nf,tn.DEFAULT))throw new Error(Wc);const U=+w-1;i=s0(L,T,U,!1,a,u,g),s=c0(s,L,U,u.length,0,g);break}else if(N){o0(D);let L=!1;for(const re of h)if(re.name===N||re.num===+N){if(L=!0,re.hasRecursedWithin)throw new Error(Wc);break}if(!L)throw new Error(en`Recursive \g cannot be used outside the referenced group "${r==="external"?N:en`\g<${N}&R=${D}>`}"`);const T=d.get(N),U=gA(i,T);if(f&&Mo(U,en`${hs}|\((?!\?)`,tn.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const q=i.slice(T,y.index),V=U.slice(q.length+_.length),M=u.length,P=+D-1,Z=s0(q,V,P,!0,a,u,g);s=c0(s,q,P,u.length-M,M,g);const ee=i.slice(0,T),ae=i.slice(T+U.length);i=`${ee}${Z}${ae}`,ji.lastIndex+=Z.length-_.length-q.length-V.length,h.forEach(re=>re.hasRecursedWithin=!0),m=!0}else if(E)g++,d.set(String(g),ji.lastIndex),d.set(E,ji.lastIndex),h.push({num:g,name:E});else if(_[0]==="("){const L=_==="(";L&&(g++,d.set(String(g),ji.lastIndex)),h.push(L?{num:g}:{})}else _===")"&&h.pop()}return a.push(...u),{pattern:i,captureTransfers:s,hiddenCaptures:a}}function o0(i){const n=`Max depth must be integer between 2 and 100; used ${i}`;if(!/^[1-9]\d*$/.test(i))throw new Error(n);if(i=+i,i<2||i>100)throw new Error(n)}function s0(i,n,a,r,s,u,f){const d=new Set;r&&Hv(i+n,hs,({groups:{captureName:m}})=>{d.add(m)},tn.DEFAULT);const h=[a,r?d:null,s,u,f];return`${i}${u0(`(?:${i}`,"forward",...h)}(?:)${u0(`${n})`,"backward",...h)}${n}`}function u0(i,n,a,r,s,u,f){const h=v=>n==="forward"?v+2:a-v+2-1;let m="";for(let v=0;v<a;v++){const g=h(v);m+=nd(i,en`${Gv}|\\k<(?<backref>[^>]+)>`,({0:y,groups:{captureName:_,unnamed:E,backref:w}})=>{if(w&&r&&!r.has(w))return y;const N=`_$${g}`;if(E||_){const D=f+u.length+1;return u.push(D),SA(s,D),E?y:`(?<${_}${N}>`}return en`\k<${w}${N}>`},tn.DEFAULT)}return m}function SA(i,n){for(let a=0;a<i.length;a++)i[a]>=n&&i[a]++}function c0(i,n,a,r,s,u){if(i.size&&r){let f=0;Hv(n,Gv,()=>f++,tn.DEFAULT);const d=u-f+s,h=new Map;return i.forEach((m,v)=>{const g=(r-f*a)/a,y=f*a,_=v>d+f?v+r:v,E=[];for(const w of m)if(w<=d)E.push(w);else if(w>d+f+g)E.push(w+r);else if(w<=d+f)for(let N=0;N<=a;N++)E.push(w+f*N);else for(let N=0;N<=a;N++)E.push(w+y+g*N);h.set(_,E)}),h}return i}var it=String.fromCodePoint,ge=String.raw,fn={},ps=globalThis.RegExp;fn.flagGroups=(()=>{try{new ps("(?i:)")}catch{return!1}return!0})();fn.unicodeSets=(()=>{try{new ps("[[]]","v")}catch{return!1}return!0})();fn.bugFlagVLiteralHyphenIsRange=fn.unicodeSets?(()=>{try{new ps(ge`[\d\-a]`,"v")}catch{return!0}return!1})():!1;fn.bugNestedClassIgnoresNegation=fn.unicodeSets&&new ps("[[^a]]","v").test("a");function as(i,{enable:n,disable:a}){return{dotAll:!(a!=null&&a.dotAll)&&!!(n!=null&&n.dotAll||i.dotAll),ignoreCase:!(a!=null&&a.ignoreCase)&&!!(n!=null&&n.ignoreCase||i.ignoreCase)}}function ir(i,n,a){return i.has(n)||i.set(n,a),i.get(n)}function Mf(i,n){return f0[i]>=f0[n]}function EA(i,n){if(i==null)throw new Error(n??"Value expected");return i}var f0={ES2025:2025,ES2024:2024,ES2018:2018},CA={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Bv(i={}){if({}.toString.call(i)!=="[object Object]")throw new Error("Unexpected options");if(i.target!==void 0&&!CA[i.target])throw new Error(`Unexpected target "${i.target}"`);const n={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...i,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...i.rules}};return n.target==="auto"&&(n.target=fn.flagGroups?"ES2025":fn.unicodeSets?"ES2024":"ES2018"),n}var AA="[ -\r ]",TA=new Set([it(304),it(305)]),Gn=ge`[\p{L}\p{M}\p{N}\p{Pc}]`;function jv(i){if(TA.has(i))return[i];const n=new Set,a=i.toLowerCase(),r=a.toUpperCase(),s=LA.get(a),u=xA.get(a),f=wA.get(a);return[...r].length===1&&n.add(r),f&&n.add(f),s&&n.add(s),n.add(a),u&&n.add(u),[...n]}var id=new Map(`C Other
109
- Cc Control cntrl
110
- Cf Format
111
- Cn Unassigned
112
- Co Private_Use
113
- Cs Surrogate
114
- L Letter
115
- LC Cased_Letter
116
- Ll Lowercase_Letter
117
- Lm Modifier_Letter
118
- Lo Other_Letter
119
- Lt Titlecase_Letter
120
- Lu Uppercase_Letter
121
- M Mark Combining_Mark
122
- Mc Spacing_Mark
123
- Me Enclosing_Mark
124
- Mn Nonspacing_Mark
125
- N Number
126
- Nd Decimal_Number digit
127
- Nl Letter_Number
128
- No Other_Number
129
- P Punctuation punct
130
- Pc Connector_Punctuation
131
- Pd Dash_Punctuation
132
- Pe Close_Punctuation
133
- Pf Final_Punctuation
134
- Pi Initial_Punctuation
135
- Po Other_Punctuation
136
- Ps Open_Punctuation
137
- S Symbol
138
- Sc Currency_Symbol
139
- Sk Modifier_Symbol
140
- Sm Math_Symbol
141
- So Other_Symbol
142
- Z Separator
143
- Zl Line_Separator
144
- Zp Paragraph_Separator
145
- Zs Space_Separator
146
- ASCII
147
- ASCII_Hex_Digit AHex
148
- Alphabetic Alpha
149
- Any
150
- Assigned
151
- Bidi_Control Bidi_C
152
- Bidi_Mirrored Bidi_M
153
- Case_Ignorable CI
154
- Cased
155
- Changes_When_Casefolded CWCF
156
- Changes_When_Casemapped CWCM
157
- Changes_When_Lowercased CWL
158
- Changes_When_NFKC_Casefolded CWKCF
159
- Changes_When_Titlecased CWT
160
- Changes_When_Uppercased CWU
161
- Dash
162
- Default_Ignorable_Code_Point DI
163
- Deprecated Dep
164
- Diacritic Dia
165
- Emoji
166
- Emoji_Component EComp
167
- Emoji_Modifier EMod
168
- Emoji_Modifier_Base EBase
169
- Emoji_Presentation EPres
170
- Extended_Pictographic ExtPict
171
- Extender Ext
172
- Grapheme_Base Gr_Base
173
- Grapheme_Extend Gr_Ext
174
- Hex_Digit Hex
175
- IDS_Binary_Operator IDSB
176
- IDS_Trinary_Operator IDST
177
- ID_Continue IDC
178
- ID_Start IDS
179
- Ideographic Ideo
180
- Join_Control Join_C
181
- Logical_Order_Exception LOE
182
- Lowercase Lower
183
- Math
184
- Noncharacter_Code_Point NChar
185
- Pattern_Syntax Pat_Syn
186
- Pattern_White_Space Pat_WS
187
- Quotation_Mark QMark
188
- Radical
189
- Regional_Indicator RI
190
- Sentence_Terminal STerm
191
- Soft_Dotted SD
192
- Terminal_Punctuation Term
193
- Unified_Ideograph UIdeo
194
- Uppercase Upper
195
- Variation_Selector VS
196
- White_Space space
197
- XID_Continue XIDC
198
- XID_Start XIDS`.split(/\s/).map(i=>[ds(i),i])),xA=new Map([["s",it(383)],[it(383),"s"]]),wA=new Map([[it(223),it(7838)],[it(107),it(8490)],[it(229),it(8491)],[it(969),it(8486)]]),LA=new Map([vi(453),vi(456),vi(459),vi(498),...Jc(8072,8079),...Jc(8088,8095),...Jc(8104,8111),vi(8124),vi(8140),vi(8188)]),kA=new Map([["alnum",ge`[\p{Alpha}\p{Nd}]`],["alpha",ge`\p{Alpha}`],["ascii",ge`\p{ASCII}`],["blank",ge`[\p{Zs}\t]`],["cntrl",ge`\p{Cc}`],["digit",ge`\p{Nd}`],["graph",ge`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ge`\p{Lower}`],["print",ge`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ge`[\p{P}\p{S}]`],["space",ge`\p{space}`],["upper",ge`\p{Upper}`],["word",ge`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ge`\p{AHex}`]]);function RA(i,n){const a=[];for(let r=i;r<=n;r++)a.push(r);return a}function vi(i){const n=it(i);return[n.toLowerCase(),n]}function Jc(i,n){return RA(i,n).map(a=>vi(a))}var Pv=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function DA(i,n){const a={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...n};$v(i);const r={accuracy:a.accuracy,asciiWordBoundaries:a.asciiWordBoundaries,avoidSubclass:a.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Mf(a.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:i.flags.digitIsAscii,spaceIsAscii:i.flags.spaceIsAscii,wordIsAscii:i.flags.wordIsAscii};Kl(i,OA,r);const s={dotAll:i.flags.dotAll,ignoreCase:i.flags.ignoreCase},u={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Kl(i,NA,u);const f={groupsByName:u.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:u.reffedNodesByReferencer};return Kl(i,MA,f),i._originMap=u.groupOriginByCopy,i._strategy=r.strategy,i}var OA={AbsenceFunction({node:i,parent:n,replaceWith:a}){const{body:r,kind:s}=i;if(s==="repeater"){const u=cn();u.body[0].body.push(Pi({negate:!0,body:r}),Ga("Any"));const f=cn();f.body[0].body.push(zv("greedy",0,1/0,u)),a(Qe(f,n),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:i,parent:n,key:a},{flagDirectivesByAlt:r}){const s=i.body.filter(u=>u.kind==="flags");for(let u=a+1;u<n.body.length;u++){const f=n.body[u];ir(r,f,[]).push(...s)}},exit({node:i},{flagDirectivesByAlt:n}){var a;if((a=n.get(i))!=null&&a.length){const r=Yv(n.get(i));if(r){const s=cn({flags:r});s.body[0].body=i.body,i.body=[Qe(s,i)]}}}},Assertion({node:i,parent:n,key:a,container:r,root:s,remove:u,replaceWith:f},d){const{kind:h,negate:m}=i,{asciiWordBoundaries:v,avoidSubclass:g,supportedGNodes:y,wordIsAscii:_}=d;if(h==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${m?"Y":"y"}"`);if(h==="line_end")f(Qe(Pi({body:[Fi({body:[Rf("string_end")]}),Fi({body:[fs(10)]})]}),n));else if(h==="line_start")f(Qe(Bn(ge`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),n));else if(h==="search_start")if(y.has(i))s.flags.sticky=!0,u();else{const E=r[a-1];if(E&&GA(E))f(Qe(Pi({negate:!0}),n));else{if(g)throw new Error(ge`Uses "\G" in a way that requires a subclass`);f(bi(Rf("string_start"),n)),d.strategy="clip_search"}}else if(!(h==="string_end"||h==="string_start"))if(h==="string_end_newline")f(Qe(Bn(ge`(?=\n?\z)`),n));else if(h==="word_boundary"){if(!_&&!v){const E=`(?:(?<=${Gn})(?!${Gn})|(?<!${Gn})(?=${Gn}))`,w=`(?:(?<=${Gn})(?=${Gn})|(?<!${Gn})(?!${Gn}))`;f(Qe(Bn(m?w:E),n))}}else throw new Error(`Unexpected assertion kind "${h}"`)},Backreference({node:i},{jsGroupNameMap:n}){let{ref:a}=i;typeof a=="string"&&!tf(a)&&(a=ef(a,n),i.ref=a)},CapturingGroup({node:i},{jsGroupNameMap:n,subroutineRefMap:a}){let{name:r}=i;r&&!tf(r)&&(r=ef(r,n),i.name=r),a.set(i.number,i),r&&a.set(r,i)},CharacterClassRange({node:i,parent:n,replaceWith:a}){if(n.kind==="intersection"){const r=$o({body:[i]});a(Qe(r,n),{traverse:!0})}},CharacterSet({node:i,parent:n,replaceWith:a},{accuracy:r,minTargetEs2024:s,digitIsAscii:u,spaceIsAscii:f,wordIsAscii:d}){const{kind:h,negate:m,value:v}=i;if(u&&(h==="digit"||v==="digit")){a(bi(Of("digit",{negate:m}),n));return}if(f&&(h==="space"||v==="space")){a(Qe(nf(Bn(AA),m),n));return}if(d&&(h==="word"||v==="word")){a(bi(Of("word",{negate:m}),n));return}if(h==="any")a(bi(Ga("Any"),n));else if(h==="digit")a(bi(Ga("Nd",{negate:m}),n));else if(h!=="dot")if(h==="text_segment"){if(r==="strict")throw new Error(ge`Use of "\X" requires non-strict accuracy`);const g="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",y=ge`\p{RI}{2}|${g}(?:\u200D${g})*`;a(Qe(Bn(ge`(?>\r\n|${s?ge`\p{RGI_Emoji}`:y}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),n))}else if(h==="hex")a(bi(Ga("AHex",{negate:m}),n));else if(h==="newline")a(Qe(Bn(m?`[^
199
- ]`:`(?>\r
200
- ?|[
201
- \v\f…\u2028\u2029])`),n));else if(h==="posix")if(!s&&(v==="graph"||v==="print")){if(r==="strict")throw new Error(`POSIX class "${v}" requires min target ES2024 or non-strict accuracy`);let g={graph:"!-~",print:" -~"}[v];m&&(g=`\0-${it(g.codePointAt(0)-1)}${it(g.codePointAt(2)+1)}-􏿿`),a(Qe(Bn(`[${g}]`),n))}else a(Qe(nf(Bn(kA.get(v)),m),n));else if(h==="property")id.has(ds(v))||(i.key="sc");else if(h==="space")a(bi(Ga("space",{negate:m}),n));else if(h==="word")a(Qe(nf(Bn(Gn),m),n));else throw new Error(`Unexpected character set kind "${h}"`)},Directive({node:i,parent:n,root:a,remove:r,replaceWith:s,removeAllPrevSiblings:u,removeAllNextSiblings:f}){const{kind:d,flags:h}=i;if(d==="flags")if(!h.enable&&!h.disable)r();else{const m=cn({flags:h});m.body[0].body=f(),s(Qe(m,n),{traverse:!0})}else if(d==="keep"){const m=a.body[0],g=a.body.length===1&&Ov(m,{type:"Group"})&&m.body[0].body.length===1?m.body[0]:a;if(n.parent!==g||g.body.length>1)throw new Error(ge`Uses "\K" in a way that's unsupported`);const y=Pi({behind:!0});y.body[0].body=u(),s(Qe(y,n))}else throw new Error(`Unexpected directive kind "${d}"`)},Flags({node:i,parent:n}){if(i.posixIsAscii)throw new Error('Unsupported flag "P"');if(i.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(a=>delete i[a]),Object.assign(i,{global:!1,hasIndices:!1,multiline:!1,sticky:i.sticky??!1}),n.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:i}){if(!i.flags)return;const{enable:n,disable:a}=i.flags;n!=null&&n.extended&&delete n.extended,a!=null&&a.extended&&delete a.extended,n!=null&&n.dotAll&&(a!=null&&a.dotAll)&&delete n.dotAll,n!=null&&n.ignoreCase&&(a!=null&&a.ignoreCase)&&delete n.ignoreCase,n&&!Object.keys(n).length&&delete i.flags.enable,a&&!Object.keys(a).length&&delete i.flags.disable,!i.flags.enable&&!i.flags.disable&&delete i.flags},LookaroundAssertion({node:i},n){const{kind:a}=i;a==="lookbehind"&&(n.passedLookbehind=!0)},NamedCallout({node:i,parent:n,replaceWith:a}){const{kind:r}=i;if(r==="fail")a(Qe(Pi({negate:!0}),n));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:i}){if(i.body.type==="Quantifier"){const n=cn();n.body[0].body.push(i.body),i.body=Qe(n,i)}},Regex:{enter({node:i},{supportedGNodes:n}){const a=[];let r=!1,s=!1;for(const u of i.body)if(u.body.length===1&&u.body[0].kind==="search_start")u.body.pop();else{const f=Qv(u.body);f?(r=!0,Array.isArray(f)?a.push(...f):a.push(f)):s=!0}r&&!s&&a.forEach(u=>n.add(u))},exit(i,{accuracy:n,passedLookbehind:a,strategy:r}){if(n==="strict"&&a&&r)throw new Error(ge`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:i},{jsGroupNameMap:n}){let{ref:a}=i;typeof a=="string"&&!tf(a)&&(a=ef(a,n),i.ref=a)}},NA={Backreference({node:i},{multiplexCapturesToLeftByRef:n,reffedNodesByReferencer:a}){const{orphan:r,ref:s}=i;r||a.set(i,[...n.get(s).map(({node:u})=>u)])},CapturingGroup:{enter({node:i,parent:n,replaceWith:a,skip:r},{groupOriginByCopy:s,groupsByName:u,multiplexCapturesToLeftByRef:f,openRefs:d,reffedNodesByReferencer:h}){const m=s.get(i);if(m&&d.has(i.number)){const g=bi(d0(i.number),n);h.set(g,d.get(i.number)),a(g);return}d.set(i.number,i),f.set(i.number,[]),i.name&&ir(f,i.name,[]);const v=f.get(i.name??i.number);for(let g=0;g<v.length;g++){const y=v[g];if(m===y.node||m&&m===y.origin||i===y.origin){v.splice(g,1);break}}if(f.get(i.number).push({node:i,origin:m}),i.name&&f.get(i.name).push({node:i,origin:m}),i.name){const g=ir(u,i.name,new Map);let y=!1;if(m)y=!0;else for(const _ of g.values())if(!_.hasDuplicateNameToRemove){y=!0;break}u.get(i.name).set(i,{node:i,hasDuplicateNameToRemove:y})}},exit({node:i},{openRefs:n}){n.delete(i.number)}},Group:{enter({node:i},n){n.prevFlags=n.currentFlags,i.flags&&(n.currentFlags=as(n.currentFlags,i.flags))},exit(i,n){n.currentFlags=n.prevFlags}},Subroutine({node:i,parent:n,replaceWith:a},r){const{isRecursive:s,ref:u}=i;if(s){let v=n;for(;(v=v.parent)&&!(v.type==="CapturingGroup"&&(v.name===u||v.number===u)););r.reffedNodesByReferencer.set(i,v);return}const f=r.subroutineRefMap.get(u),d=u===0,h=d?d0(0):qv(f,r.groupOriginByCopy,null);let m=h;if(!d){const v=Yv(UA(f,y=>y.type==="Group"&&!!y.flags)),g=v?as(r.globalFlags,v):r.globalFlags;zA(g,r.currentFlags)||(m=cn({flags:HA(g)}),m.body[0].body.push(h))}a(Qe(m,n),{traverse:!d})}},MA={Backreference({node:i,parent:n,replaceWith:a},r){if(i.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,i.ref);return}const u=r.reffedNodesByReferencer.get(i).filter(f=>IA(f,i));if(!u.length)a(Qe(Pi({negate:!0}),n));else if(u.length>1){const f=cn({atomic:!0,body:u.reverse().map(d=>Fi({body:[Df(d.number)]}))});a(Qe(f,n))}else i.ref=u[0].number},CapturingGroup({node:i},n){i.number=++n.numCapturesToLeft,i.name&&n.groupsByName.get(i.name).get(i).hasDuplicateNameToRemove&&delete i.name},Regex:{exit({node:i},n){const a=Math.max(n.highestOrphanBackref-n.numCapturesToLeft,0);for(let r=0;r<a;r++){const s=Mv();i.body.at(-1).body.push(s)}}},Subroutine({node:i},n){!i.isRecursive||i.ref===0||(i.ref=n.reffedNodesByReferencer.get(i).number)}};function $v(i){Kl(i,{"*"({node:n,parent:a}){n.parent=a}})}function zA(i,n){return i.dotAll===n.dotAll&&i.ignoreCase===n.ignoreCase}function IA(i,n){let a=n;do{if(a.type==="Regex")return!1;if(a.type==="Alternative")continue;if(a===i)return!1;const r=Xv(a.parent);for(const s of r){if(s===a)break;if(s===i||Fv(s,i))return!0}}while(a=a.parent);throw new Error("Unexpected path")}function qv(i,n,a,r){const s=Array.isArray(i)?[]:{};for(const[u,f]of Object.entries(i))u==="parent"?s.parent=Array.isArray(a)?r:a:f&&typeof f=="object"?s[u]=qv(f,n,s,a):(u==="type"&&f==="CapturingGroup"&&n.set(s,n.get(i)??i),s[u]=f);return s}function d0(i){const n=Iv(i);return n.isRecursive=!0,n}function UA(i,n){const a=[];for(;i=i.parent;)(!n||n(i))&&a.push(i);return a}function ef(i,n){if(n.has(i))return n.get(i);const a=`$${n.size}_${i.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return n.set(i,a),a}function Yv(i){const n=["dotAll","ignoreCase"],a={enable:{},disable:{}};return i.forEach(({flags:r})=>{n.forEach(s=>{var u,f;(u=r.enable)!=null&&u[s]&&(delete a.disable[s],a.enable[s]=!0),(f=r.disable)!=null&&f[s]&&(a.disable[s]=!0)})}),Object.keys(a.enable).length||delete a.enable,Object.keys(a.disable).length||delete a.disable,a.enable||a.disable?a:null}function HA({dotAll:i,ignoreCase:n}){const a={};return(i||n)&&(a.enable={},i&&(a.enable.dotAll=!0),n&&(a.enable.ignoreCase=!0)),(!i||!n)&&(a.disable={},!i&&(a.disable.dotAll=!0),!n&&(a.disable.ignoreCase=!0)),a}function Xv(i){if(!i)throw new Error("Node expected");const{body:n}=i;return Array.isArray(n)?n:n?[n]:null}function Qv(i){const n=i.find(a=>a.kind==="search_start"||BA(a,{negate:!1})||!VA(a));if(!n)return null;if(n.kind==="search_start")return n;if(n.type==="LookaroundAssertion")return n.body[0].body[0];if(n.type==="CapturingGroup"||n.type==="Group"){const a=[];for(const r of n.body){const s=Qv(r.body);if(!s)return null;Array.isArray(s)?a.push(...s):a.push(s)}return a}return null}function Fv(i,n){const a=Xv(i)??[];for(const r of a)if(r===n||Fv(r,n))return!0;return!1}function VA({type:i}){return i==="Assertion"||i==="Directive"||i==="LookaroundAssertion"}function GA(i){const n=["Character","CharacterClass","CharacterSet"];return n.includes(i.type)||i.type==="Quantifier"&&i.min&&n.includes(i.body.type)}function BA(i,n){const a={negate:null,...n};return i.type==="LookaroundAssertion"&&(a.negate===null||i.negate===a.negate)&&i.body.length===1&&Ov(i.body[0],{type:"Assertion",kind:"search_start"})}function tf(i){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(i)}function Bn(i,n){const r=Nv(i,{...n,unicodePropertyMap:id}).body;return r.length>1||r[0].body.length>1?cn({body:r}):r[0].body[0]}function nf(i,n){return i.negate=n,i}function bi(i,n){return i.parent=n,i}function Qe(i,n){return $v(i),i.parent=n,i}function jA(i,n){const a=Bv(n),r=Mf(a.target,"ES2024"),s=Mf(a.target,"ES2025"),u=a.rules.recursionLimit;if(!Number.isInteger(u)||u<2||u>20)throw new Error("Invalid recursionLimit; use 2-20");let f=null,d=null;if(!s){const _=[i.flags.ignoreCase];Kl(i,PA,{getCurrentModI:()=>_.at(-1),popModI(){_.pop()},pushModI(E){_.push(E)},setHasCasedChar(){_.at(-1)?f=!0:d=!0}})}const h={dotAll:i.flags.dotAll,ignoreCase:!!((i.flags.ignoreCase||f)&&!d)};let m=i;const v={accuracy:a.accuracy,appliedGlobalFlags:h,captureMap:new Map,currentFlags:{dotAll:i.flags.dotAll,ignoreCase:i.flags.ignoreCase},inCharClass:!1,lastNode:m,originMap:i._originMap,recursionLimit:u,useAppliedIgnoreCase:!!(!s&&f&&d),useFlagMods:s,useFlagV:r,verbose:a.verbose};function g(_){return v.lastNode=m,m=_,EA($A[_.type],`Unexpected node type "${_.type}"`)(_,v,g)}const y={pattern:i.body.map(g).join("|"),flags:g(i.flags),options:{...i.options}};return r||(delete y.options.force.v,y.options.disable.v=!0,y.options.unicodeSetsPlugin=null),y._captureTransfers=new Map,y._hiddenCaptures=[],v.captureMap.forEach((_,E)=>{_.hidden&&y._hiddenCaptures.push(E),_.transferTo&&ir(y._captureTransfers,_.transferTo,[]).push(E)}),y}var PA={"*":{enter({node:i},n){if(p0(i)){const a=n.getCurrentModI();n.pushModI(i.flags?as({ignoreCase:a},i.flags).ignoreCase:a)}},exit({node:i},n){p0(i)&&n.popModI()}},Backreference(i,n){n.setHasCasedChar()},Character({node:i},n){ad(it(i.value))&&n.setHasCasedChar()},CharacterClassRange({node:i,skip:n},a){n(),Zv(i,{firstOnly:!0}).length&&a.setHasCasedChar()},CharacterSet({node:i},n){i.kind==="property"&&Pv.has(i.value)&&n.setHasCasedChar()}},$A={Alternative({body:i},n,a){return i.map(a).join("")},Assertion({kind:i,negate:n}){if(i==="string_end")return"$";if(i==="string_start")return"^";if(i==="word_boundary")return n?ge`\B`:ge`\b`;throw new Error(`Unexpected assertion kind "${i}"`)},Backreference({ref:i},n){if(typeof i!="number")throw new Error("Unexpected named backref in transformed AST");if(!n.useFlagMods&&n.accuracy==="strict"&&n.currentFlags.ignoreCase&&!n.captureMap.get(i).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+i},CapturingGroup(i,n,a){const{body:r,name:s,number:u}=i,f={ignoreCase:n.currentFlags.ignoreCase},d=n.originMap.get(i);return d&&(f.hidden=!0,u>d.number&&(f.transferTo=d.number)),n.captureMap.set(u,f),`(${s?`?<${s}>`:""}${r.map(a).join("|")})`},Character({value:i},n){const a=it(i),r=Ia(i,{escDigit:n.lastNode.type==="Backreference",inCharClass:n.inCharClass,useFlagV:n.useFlagV});if(r!==a)return r;if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&ad(a)){const s=jv(a);return n.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return a},CharacterClass(i,n,a){const{kind:r,negate:s,parent:u}=i;let{body:f}=i;if(r==="intersection"&&!n.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");fn.bugFlagVLiteralHyphenIsRange&&n.useFlagV&&f.some(m0)&&(f=[fs(45),...f.filter(m=>!m0(m))]);const d=()=>`[${s?"^":""}${f.map(a).join(r==="intersection"?"&&":"")}]`;if(!n.inCharClass){if((!n.useFlagV||fn.bugNestedClassIgnoresNegation)&&!s){const v=f.filter(g=>g.type==="CharacterClass"&&g.kind==="union"&&g.negate);if(v.length){const g=cn(),y=g.body[0];return g.parent=u,y.parent=g,f=f.filter(_=>!v.includes(_)),i.body=f,f.length?(i.parent=y,y.body.push(i)):g.body.pop(),v.forEach(_=>{const E=Fi({body:[_]});_.parent=E,E.parent=g,g.body.push(E)}),a(g)}}n.inCharClass=!0;const m=d();return n.inCharClass=!1,m}const h=f[0];if(r==="union"&&!s&&h&&((!n.useFlagV||!n.verbose)&&u.kind==="union"&&!(fn.bugFlagVLiteralHyphenIsRange&&n.useFlagV)||!n.verbose&&u.kind==="intersection"&&f.length===1&&h.type!=="CharacterClassRange"))return f.map(a).join("");if(!n.useFlagV&&u.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return d()},CharacterClassRange(i,n){const a=i.min.value,r=i.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:n.useFlagV},u=Ia(a,s),f=Ia(r,s),d=new Set;if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase){const h=Zv(i);FA(h).forEach(v=>{d.add(Array.isArray(v)?`${Ia(v[0],s)}-${Ia(v[1],s)}`:Ia(v,s))})}return`${u}-${f}${[...d].join("")}`},CharacterSet({kind:i,negate:n,value:a,key:r},s){if(i==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":ge`[^\n]`;if(i==="digit")return n?ge`\D`:ge`\d`;if(i==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Pv.has(a))throw new Error(`Unicode property "${a}" can't be case-insensitive when other chars have specific case`);return`${n?ge`\P`:ge`\p`}{${r?`${r}=`:""}${a}}`}if(i==="word")return n?ge`\W`:ge`\w`;throw new Error(`Unexpected character set kind "${i}"`)},Flags(i,n){return(n.appliedGlobalFlags.ignoreCase?"i":"")+(i.dotAll?"s":"")+(i.sticky?"y":"")},Group({atomic:i,body:n,flags:a,parent:r},s,u){const f=s.currentFlags;a&&(s.currentFlags=as(f,a));const d=n.map(u).join("|"),h=!s.verbose&&n.length===1&&r.type!=="Quantifier"&&!i&&(!s.useFlagMods||!a)?d:`(?${ZA(i,a,s.useFlagMods)}${d})`;return s.currentFlags=f,h},LookaroundAssertion({body:i,kind:n,negate:a},r,s){return`(?${`${n==="lookahead"?"":"<"}${a?"!":"="}`}${i.map(s).join("|")})`},Quantifier(i,n,a){return a(i.body)+KA(i)},Subroutine({isRecursive:i,ref:n},a){if(!i)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=a.recursionLimit;return n===0?`(?R=${r})`:ge`\g<${n}&R=${r}>`}},qA=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),YA=new Set(["-","\\","]","^","["]),XA=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),h0=new Map([[9,ge`\t`],[10,ge`\n`],[11,ge`\v`],[12,ge`\f`],[13,ge`\r`],[8232,ge`\u2028`],[8233,ge`\u2029`],[65279,ge`\uFEFF`]]),QA=new RegExp("^\\p{Cased}$","u");function ad(i){return QA.test(i)}function Zv(i,n){const a=!!(n!=null&&n.firstOnly),r=i.min.value,s=i.max.value,u=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return u;for(let f=r;f<=s;f++){const d=it(f);if(!ad(d))continue;const h=jv(d).filter(m=>{const v=m.codePointAt(0);return v<r||v>s});if(h.length&&(u.push(...h),a))break}return u}function Ia(i,{escDigit:n,inCharClass:a,useFlagV:r}){if(h0.has(i))return h0.get(i);if(i<32||i>126&&i<160||i>262143||n&&WA(i))return i>255?`\\u{${i.toString(16).toUpperCase()}}`:`\\x${i.toString(16).toUpperCase().padStart(2,"0")}`;const s=a?r?XA:YA:qA,u=it(i);return(s.has(u)?"\\":"")+u}function FA(i){const n=i.map(s=>s.codePointAt(0)).sort((s,u)=>s-u),a=[];let r=null;for(let s=0;s<n.length;s++)n[s+1]===n[s]+1?r??(r=n[s]):r===null?a.push(n[s]):(a.push([r,n[s]]),r=null);return a}function ZA(i,n,a){if(i)return">";let r="";if(n&&a){const{enable:s,disable:u}=n;r=(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")+(u?"-":"")+(u!=null&&u.ignoreCase?"i":"")+(u!=null&&u.dotAll?"s":"")}return`${r}:`}function KA({kind:i,max:n,min:a}){let r;return!a&&n===1?r="?":!a&&n===1/0?r="*":a===1&&n===1/0?r="+":a===n?r=`{${a}}`:r=`{${a},${n===1/0?"":n}}`,r+{greedy:"",lazy:"?",possessive:"+"}[i]}function p0({type:i}){return i==="CapturingGroup"||i==="Group"||i==="LookaroundAssertion"}function WA(i){return i>47&&i<58}function m0({type:i,value:n}){return i==="Character"&&n===45}var yi,jn,Yi,_i,Xi,lr,zf,Ei,JA=(Ei=class extends RegExp{constructor(a,r,s){var n=(...xw)=>(super(...xw),Bi(this,lr),Bi(this,yi,new Map),Bi(this,jn,null),Bi(this,Yi),Bi(this,_i,null),Bi(this,Xi,null),x(this,"rawOptions",{}),this);const u=!!(s!=null&&s.lazyCompile);if(a instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");const f=a;n(f,r),on(this,Yi,f.source),f instanceof Ei&&(on(this,yi,yt(f,yi)),on(this,_i,yt(f,_i)),on(this,Xi,yt(f,Xi)),this.rawOptions=f.rawOptions)}else{const f={hiddenCaptures:[],strategy:null,transfers:[],...s};n(u?"":a,r),on(this,Yi,a),on(this,yi,t2(f.hiddenCaptures,f.transfers)),on(this,Xi,f.strategy),this.rawOptions=s??{}}u||on(this,jn,this)}get source(){return yt(this,Yi)||"(?:)"}exec(a){if(!yt(this,jn)){const{lazyCompile:u,...f}=this.rawOptions;on(this,jn,new Ei(yt(this,Yi),this.flags,f))}const r=this.global||this.sticky,s=this.lastIndex;if(yt(this,Xi)==="clip_search"&&r&&s){this.lastIndex=0;const u=Oc(this,lr,zf).call(this,a.slice(s));return u&&(e2(u,s,a,this.hasIndices),this.lastIndex+=s),u}return Oc(this,lr,zf).call(this,a)}},yi=new WeakMap,jn=new WeakMap,Yi=new WeakMap,_i=new WeakMap,Xi=new WeakMap,lr=new WeakSet,zf=function(a){yt(this,jn).lastIndex=this.lastIndex;const r=og(Ei.prototype,this,"exec").call(yt(this,jn),a);if(this.lastIndex=yt(this,jn).lastIndex,!r||!yt(this,yi).size)return r;const s=[...r];r.length=1;let u;this.hasIndices&&(u=[...r.indices],r.indices.length=1);const f=[0];for(let d=1;d<s.length;d++){const{hidden:h,transferTo:m}=yt(this,yi).get(d)??{};if(h?f.push(null):(f.push(r.length),r.push(s[d]),this.hasIndices&&r.indices.push(u[d])),m&&s[d]!==void 0){const v=f[m];if(!v)throw new Error(`Invalid capture transfer to "${v}"`);if(r[v]=s[d],this.hasIndices&&(r.indices[v]=u[d]),r.groups){yt(this,_i)||on(this,_i,n2(this.source));const g=yt(this,_i).get(m);g&&(r.groups[g]=s[d],this.hasIndices&&(r.indices.groups[g]=u[d]))}}}return r},Ei);function e2(i,n,a,r){if(i.index+=n,i.input=a,r){const s=i.indices;for(let f=0;f<s.length;f++){const d=s[f];d&&(s[f]=[d[0]+n,d[1]+n])}const u=s.groups;u&&Object.keys(u).forEach(f=>{const d=u[f];d&&(u[f]=[d[0]+n,d[1]+n])})}}function t2(i,n){const a=new Map;for(const r of i)a.set(r,{hidden:!0});for(const[r,s]of n)for(const u of s)ir(a,u,{}).transferTo=r;return a}function n2(i){const n=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,a=new Map;let r=0,s=0,u;for(;u=n.exec(i);){const{0:f,groups:{capture:d,name:h}}=u;f==="["?r++:r?f==="]"&&r--:d&&(s++,h&&a.set(s,h))}return a}function i2(i,n){const a=a2(i,n);return a.options?new JA(a.pattern,a.flags,a.options):new RegExp(a.pattern,a.flags)}function a2(i,n){const a=Bv(n),r=Nv(i,{flags:a.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:a.rules.captureGroup,singleline:a.rules.singleline},skipBackrefValidation:a.rules.allowOrphanBackrefs,unicodePropertyMap:id}),s=DA(r,{accuracy:a.accuracy,asciiWordBoundaries:a.rules.asciiWordBoundaries,avoidSubclass:a.avoidSubclass,bestEffortTarget:a.target}),u=jA(s,a),f=_A(u.pattern,{captureTransfers:u._captureTransfers,hiddenCaptures:u._hiddenCaptures,mode:"external"}),d=bA(f.pattern),h=vA(d.pattern,{captureTransfers:f.captureTransfers,hiddenCaptures:f.hiddenCaptures}),m={pattern:h.pattern,flags:`${a.hasIndices?"d":""}${a.global?"g":""}${u.flags}${u.options.disable.v?"u":"v"}`};if(a.avoidSubclass){if(a.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const v=h.hiddenCaptures.sort((E,w)=>E-w),g=Array.from(h.captureTransfers),y=s._strategy,_=m.pattern.length>=a.lazyCompileLength;(v.length||g.length||y||_)&&(m.options={...v.length&&{hiddenCaptures:v},...g.length&&{transfers:g},...y&&{strategy:y},..._&&{lazyCompile:_}})}return m}const g0=4294967295;class l2{constructor(n,a={}){x(this,"regexps");this.patterns=n,this.options=a;const{forgiving:r=!1,cache:s,regexConstructor:u}=a;if(!u)throw new Error("Option `regexConstructor` is not provided");this.regexps=n.map(f=>{if(typeof f!="string")return f;const d=s==null?void 0:s.get(f);if(d){if(d instanceof RegExp)return d;if(r)return null;throw d}try{const h=u(f);return s==null||s.set(f,h),h}catch(h){if(s==null||s.set(f,h),r)return null;throw h}})}findNextMatchSync(n,a,r){const s=typeof n=="string"?n:n.content,u=[];function f(d,h,m=0){return{index:d,captureIndices:h.indices.map(v=>v==null?{start:g0,end:g0,length:0}:{start:v[0]+m,end:v[1]+m,length:v[1]-v[0]})}}for(let d=0;d<this.regexps.length;d++){const h=this.regexps[d];if(h)try{h.lastIndex=a;const m=h.exec(s);if(!m)continue;if(m.index===a)return f(d,m,0);u.push([d,m,0])}catch(m){if(this.options.forgiving)continue;throw m}}if(u.length){const d=Math.min(...u.map(h=>h[1].index));for(const[h,m,v]of u)if(m.index===d)return f(h,m,v)}return null}}function r2(i,n){return i2(i,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...n})}function o2(i={}){const n=Object.assign({target:"auto",cache:new Map},i);return n.regexConstructor||(n.regexConstructor=a=>r2(a,{target:n.target})),{createScanner(a){return new l2(a,n)},createString(a){return{content:a}}}}async function s2(i){if(K0())throw new Error(`resolveLanguage("${i}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const n=$c.get(i);if(n!=null)return n;try{let a=xS.get(i);if(a==null&&Object.prototype.hasOwnProperty.call(kf,i)&&(a=kf[i]),a==null)throw new Error(`resolveLanguage: "${i}" not found in bundled or custom languages`);const r=a().then(({default:s})=>{const u={name:i,data:s};return Wl.has(i)||Wl.set(i,u),u});return $c.set(i,r),await r}finally{$c.delete(i)}}function u2(i){return Wl.get(i)??s2(i)}const Qi=new Map,af=new Map,If=new Map,Uf=new Set;function v0(i,n){i=Array.isArray(i)?i:[i];for(let a of i){let r;if(typeof a=="string"){if(r=Qi.get(a),r==null)throw new Error(`loadResolvedThemes: ${a} is not resolved, you must resolve it before calling loadResolvedThemes`)}else r=a,a=a.name,Qi.has(a)||Qi.set(a,r);Uf.has(a)||(Uf.add(a),n.loadThemeSync(r))}}async function c2(i){if(K0())throw new Error(`resolveTheme("${i}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const n=af.get(i);if(n!=null)return n;try{const a=If.get(i)??Av[i];if(a==null)throw new Error(`resolveTheme: No valid loader for ${i}`);const r=a().then(u=>f2(i,"default"in u?u.default:u));af.set(i,r);const s=await r;if(s.name!==i)throw new Error(`resolvedTheme: themeName: ${i} does not match theme.name: ${s.name}`);return Qi.set(s.name,s),s}finally{af.delete(i)}}function f2(i,n){const a=Qi.get(i);return a??(n=ss(n),Qi.set(i,n),n)}function d2(i){return Qi.get(i)??c2(i)}function Kv(i,n){if(If.has(i)){console.error("SharedHighlight.registerCustomTheme: theme name already registered",i);return}If.set(i,n)}let yn;async function h2({themes:i,langs:n,preferredHighlighter:a="shiki-js"}){yn??(yn=SC({themes:[],langs:["text"],engine:a==="shiki-wasm"?xv(C(()=>import("./wasm-CG6Dc4jp.js"),[])):o2()}));const r=m2(yn)?await yn:yn;yn=r;const s=[];for(const f of n){if(f==="text"||f==="ansi")continue;const d=u2(f);"then"in d?s.push(d):zg(d,r)}const u=[];for(const f of i){const d=d2(f);"then"in d?u.push(d):v0(d,yn)}return(s.length>0||u.length>0)&&await Promise.all([Promise.all(s).then(f=>{zg(f,r)}),Promise.all(u).then(f=>{v0(f,r)})]),r}function p2(){if(yn!=null&&!("then"in yn))return yn}function m2(i=yn){return i!=null&&"then"in i}Kv("pierre-dark",async()=>{const i=await C(()=>import("./pierre-dark-ClCaJvdG.js"),[]);return{...i.default??i,name:"pierre-dark"}});Kv("pierre-light",async()=>{const i=await C(()=>import("./pierre-light-zjGsWSiE.js"),[]);return{...i.default??i,name:"pierre-light"}});function Wv(i=_n){const n=[];return typeof i=="string"?n.push(i):(n.push(i.dark),n.push(i.light)),n}function lf(i){for(const n of Wv(i))if(!Uf.has(n))return!1;return!0}function Jv(i,n){return i==null||n==null?i===n:i.startingLine===n.startingLine&&i.totalLines===n.totalLines&&i.bufferBefore===n.bufferBefore&&i.bufferAfter===n.bufferAfter}function eb(i,n){return i==null||n==null||typeof i=="string"||typeof n=="string"?i===n:i.dark===n.dark&&i.light===n.light}function g2(i){var n;return _e({tagName:"div",children:[_e({tagName:"div",children:(n=i.annotations)==null?void 0:n.map(a=>_e({tagName:"slot",properties:{name:a}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${i.hunkIndex},${i.lineIndex}`}})}function v2(i){switch(i){case"file":return"diffs-icon-file-code";case"change":return"diffs-icon-symbol-modified";case"new":return"diffs-icon-symbol-added";case"deleted":return"diffs-icon-symbol-deleted";case"rename-pure":case"rename-changed":return"diffs-icon-symbol-moved"}}function b2({fileOrDiff:i,mode:n}){const a="type"in i?i:void 0,r={"data-diffs-header":n,"data-change-type":a==null?void 0:a.type};return _e({tagName:"div",children:[n==="custom"?_e({tagName:"slot",properties:{name:Pf}}):y2({name:i.name,prevName:"prevName"in i?i.prevName:void 0,iconType:(a==null?void 0:a.type)??"file"}),...n==="custom"?[]:[_2(a)]],properties:r})}function y2({name:i,prevName:n,iconType:a}){const r=[_e({tagName:"slot",properties:{name:Bf}}),Xo({name:v2(a),properties:{"data-change-icon":a}})];return n!=null&&(r.push(_e({tagName:"div",children:[_e({tagName:"bdi",children:[qn(n)]})],properties:{"data-prev-name":""}})),r.push(Xo({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),r.push(_e({tagName:"div",children:[_e({tagName:"bdi",children:[qn(i)]})],properties:{"data-title":""}})),_e({tagName:"div",children:r,properties:{"data-header-content":""}})}function _2(i){const n=[];if(i!=null){let a=0,r=0;for(const s of i.hunks)a+=s.additionLines,r+=s.deletionLines;(r>0||a===0)&&n.push(_e({tagName:"span",children:[qn(`-${r}`)],properties:{"data-deletions-count":""}})),(a>0||r===0)&&n.push(_e({tagName:"span",children:[qn(`+${a}`)],properties:{"data-additions-count":""}}))}return n.push(_e({tagName:"slot",properties:{name:jf}})),_e({tagName:"div",children:n,properties:{"data-metadata":""}})}function S2(i){return _e({tagName:"pre",properties:E2(i)})}function E2({diffIndicators:i,disableBackground:n,disableLineNumbers:a,overflow:r,split:s,totalLines:u,type:f,customProperties:d}){return{...d,"data-diff":f==="diff"?"":void 0,"data-file":f==="file"?"":void 0,"data-diff-type":f==="diff"?s?"split":"single":void 0,"data-overflow":r,"data-disable-line-numbers":a?"":void 0,"data-background":n?void 0:"","data-indicators":i==="bars"||i==="classic"?i:void 0,tabIndex:0,style:`--diffs-min-number-column-width-default:${`${u}`.length}ch;`}}const Ua=new Map,Ql={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function Xa(i){var r;if(Ua.has(i))return Ua.get(i)??"text";if(Ql[i]!=null)return Ql[i];const n=i.match(/\.([^/\\]+\.[^/\\]+)$/);if(n!=null){if(Ua.has(n[1]))return Ua.get(n[1])??"text";if(Ql[n[1]]!=null)return Ql[n[1]]??"text"}const a=((r=i.match(/\.([^.]+)$/))==null?void 0:r[1])??"";return Ua.has(a)?Ua.get(a)??"text":Ql[a]??"text"}function C2(i,{theme:n,preferredHighlighter:a="shiki-js"}){return{langs:[i??"text"],themes:Wv(n),preferredHighlighter:a}}function ar(i){return`annotation-${"side"in i?`${i.side}-`:""}${i.lineNumber}`}function Qa(i){return i.replace(/\n$|\r\n$/,"")}function A2(i,n,a){const r=typeof a.lineInfo=="function"?a.lineInfo(n):a.lineInfo[n-1];if(r==null){const s=`processLine: line ${n}, contains no state.lineInfo`;throw console.error(s,{node:i,line:n,state:a}),new Error(s)}return i.tagName="div",i.properties["data-line"]=r.lineNumber,i.properties["data-alt-line"]=r.altLineNumber,i.properties["data-line-type"]=r.type,i.properties["data-line-index"]=r.lineIndex,i.children.length===0&&i.children.push(qn(`
202
- `)),i}const zo=Symbol("no-token"),rf=Symbol("multiple-tokens");function tb(i){const n=T2(i);if(n!=null)return n;let a=zo;const r=[];let s=[],u;const f=()=>{if(s.length===0||u==null){s=[],u=void 0;return}if(s.length===1){const h=s[0];if((h==null?void 0:h.type)==="element"){x2(h,u);for(const m of h.children)qo(m)}else qo(h);r.push(h),s=[],u=void 0;return}for(const h of s)qo(h);r.push(_e({tagName:"span",properties:{"data-char":u},children:s})),s=[],u=void 0},d=h=>{if(h!==zo){if(h===rf){a=rf;return}if(a===zo){a=h;return}a!==h&&(a=rf)}};for(const h of i.children){const m=h.type==="element"?tb(h):zo;if(d(m),typeof m!="number"){f(),r.push(h);continue}u!=null&&u!==m&&f(),u??(u=m),s.push(h)}return f(),i.children=r,a}function T2(i){const n=i.properties["data-char"];if(typeof n=="number")return n}function qo(i){if(i.type==="element"){i.properties["data-char"]=void 0;for(const n of i.children)qo(n)}}function x2(i,n){i.properties["data-char"]=n}function w2(i={}){const{classPrefix:n="__shiki_",classSuffix:a="",classReplacer:r=d=>d}=i,s=new Map;function u(d){return Object.entries(d).map(([h,m])=>`${h}:${m}`).join(";")}function f(d){const h=typeof d=="string"?d:u(d);let m=n+L2(h)+a;return m=r(m),s.has(m)||s.set(m,typeof d=="string"?d:{...d}),m}return{name:"@shikijs/transformers:style-to-class",pre(d){if(!d.properties.style)return;const h=f(d.properties.style);delete d.properties.style,this.addClassToHast(d,h)},tokens(d){for(const h of d)for(const m of h){if(!m.htmlStyle)continue;const v=f(m.htmlStyle);m.htmlStyle={},m.htmlAttrs||(m.htmlAttrs={}),m.htmlAttrs.class?m.htmlAttrs.class+=` ${v}`:m.htmlAttrs.class=v}},getClassRegistry(){return s},getCSS(){let d="";for(const[h,m]of s.entries())d+=`.${h}{${typeof m=="string"?m:u(m)}}`;return d},clearRegistry(){s.clear()}}}function L2(i,n=0){let a=3735928559^n,r=1103547991^n;for(let s=0,u;s<i.length;s++)u=i.charCodeAt(s),a=Math.imul(a^u,2654435761),r=Math.imul(r^u,1597334677);return a=Math.imul(a^a>>>16,2246822507),a^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(a^a>>>13,3266489909),(4294967296*(2097151&r)+(a>>>0)).toString(36).slice(0,6)}function k2(i=!1,n=!1){const a={lineInfo:[]},r=[{line(s){return delete s.properties.class,s},pre(s){const u=t1(s),f=[];if(u!=null){let d=1;for(const h of u.children)h.type==="element"&&(i&&tb(h),f.push(A2(h,d,a)),d++);u.children=f}return s},...i?{tokens(s){for(const u of s){let f=0;for(const d of u){const h=d;h.__lineChar??(h.__lineChar=f),f+=d.content.length}}},preprocess(s,u){u.mergeWhitespaces="never"},span(s,u,f,d,h){if((h==null?void 0:h.offset)!=null&&h.content!=null){const m=h.__lineChar;return m!=null&&(s.properties["data-char"]=m),s}return s}}:null}];return n&&r.push(R2,b0),{state:a,transformers:r,toClass:b0}}const b0=w2({classPrefix:"hl-"}),R2={name:"token-style-normalizer",tokens(i){for(const n of i)for(const a of n){if(a.htmlStyle!=null)continue;const r={};a.color!=null&&(r.color=a.color),a.bgColor!=null&&(r["background-color"]=a.bgColor),a.fontStyle!=null&&a.fontStyle!==0&&((a.fontStyle&1)!==0&&(r["font-style"]="italic"),(a.fontStyle&2)!==0&&(r["font-weight"]="bold"),(a.fontStyle&4)!==0&&(r["text-decoration"]="underline")),Object.keys(r).length>0&&(a.htmlStyle=r)}}};function un(i){return`--${i==="token"?"diffs-token":"diffs"}-`}function D2({theme:i=_n,highlighter:n,prefix:a}){let r="";if(typeof i=="string"){const s=n.getTheme(i);r+=`color:${s.fg};`,r+=`background-color:${s.bg};`,r+=`${un("global")}fg:${s.fg};`,r+=`${un("global")}bg:${s.bg};`,r+=of(s,a)}else{let s=n.getTheme(i.dark);r+=`${un("global")}dark:${s.fg};`,r+=`${un("global")}dark-bg:${s.bg};`,r+=of(s,"dark"),s=n.getTheme(i.light),r+=`${un("global")}light:${s.fg};`,r+=`${un("global")}light-bg:${s.bg};`,r+=of(s,"light")}return r}function of(i,n){var f,d,h,m,v,g;n=n!=null?`${n}-`:"";let a="";const r=((f=i.colors)==null?void 0:f["gitDecoration.addedResourceForeground"])??((d=i.colors)==null?void 0:d["terminal.ansiGreen"]);r!=null&&(a+=`${un("global")}${n}addition-color:${r};`);const s=((h=i.colors)==null?void 0:h["gitDecoration.deletedResourceForeground"])??((m=i.colors)==null?void 0:m["terminal.ansiRed"]);s!=null&&(a+=`${un("global")}${n}deletion-color:${s};`);const u=((v=i.colors)==null?void 0:v["gitDecoration.modifiedResourceForeground"])??((g=i.colors)==null?void 0:g["terminal.ansiBlue"]);return u!=null&&(a+=`${un("global")}${n}modified-color:${u};`),a}function y0(i){let n=i.children[0];for(;n!=null;){if(n.type==="element"&&n.tagName==="code")return n.children;"children"in n?n=n.children[0]:n=null}throw console.error(i),new Error("getLineNodes: Unable to find children")}function O2(i,n){return _e({tagName:"div",children:i,properties:{"data-content":"",style:`grid-row: span ${n}`}})}function N2(i){return i.useTokenTransformer===!0||i.onTokenClick!=null||i.onTokenEnter!=null||i.onTokenLeave!=null}const M2=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
203
- <symbol id="diffs-icon-arrow-right-short" viewBox="0 0 16 16">
204
- <path d="M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"/>
205
- </symbol>
206
- <symbol id="diffs-icon-brand-github" viewBox="0 0 16 16">
207
- <path d="M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8"/>
208
- </symbol>
209
- <symbol id="diffs-icon-chevron" viewBox="0 0 16 16">
210
- <path d="M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06"/>
211
- </symbol>
212
- <symbol id="diffs-icon-chevrons-narrow" viewBox="0 0 10 16">
213
- <path d="M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06"/>
214
- </symbol>
215
- <symbol id="diffs-icon-diff-split" viewBox="0 0 16 16">
216
- <path d="M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0"/><path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1" opacity=".3"/>
217
- </symbol>
218
- <symbol id="diffs-icon-diff-unified" viewBox="0 0 16 16">
219
- <path fill-rule="evenodd" d="M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z" clip-rule="evenodd" opacity=".4"/>
220
- </symbol>
221
- <symbol id="diffs-icon-expand" viewBox="0 0 16 16">
222
- <path d="M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06"/>
223
- </symbol>
224
- <symbol id="diffs-icon-expand-all" viewBox="0 0 16 16">
225
- <path d="M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z"/>
226
- </symbol>
227
- <symbol id="diffs-icon-file-code" viewBox="0 0 16 16">
228
- <path d="M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z"/><path d="M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z"/>
229
- </symbol>
230
- <symbol id="diffs-icon-plus" viewBox="0 0 16 16">
231
- <path d="M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3"/>
232
- </symbol>
233
- <symbol id="diffs-icon-symbol-added" viewBox="0 0 16 16">
234
- <path d="M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
235
- </symbol>
236
- <symbol id="diffs-icon-symbol-deleted" viewBox="0 0 16 16">
237
- <path d="M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
238
- </symbol>
239
- <symbol id="diffs-icon-symbol-diffstat" viewBox="0 0 16 16">
240
- <path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/><path d="M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z"/>
241
- </symbol>
242
- <symbol id="diffs-icon-symbol-ignored" viewBox="0 0 16 16">
243
- <path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z"/>
244
- </symbol>
245
- <symbol id="diffs-icon-symbol-modified" viewBox="0 0 16 16">
246
- <path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6"/>
247
- </symbol>
248
- <symbol id="diffs-icon-symbol-moved" viewBox="0 0 16 16">
249
- <path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/><path d="M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05"/>
250
- </symbol>
251
- <symbol id="diffs-icon-symbol-ref" viewBox="0 0 16 16">
252
- <path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z"/>
253
- </symbol>
254
- </svg>`;function _0(i,n){return(i==null?void 0:i.cacheKey)===(n==null?void 0:n.cacheKey)&&(i==null?void 0:i.contents)===(n==null?void 0:n.contents)&&(i==null?void 0:i.name)===(n==null?void 0:n.name)&&(i==null?void 0:i.lang)===(n==null?void 0:n.lang)}function z2(i,n){return i==null||n==null?i===n:I2(i.customProperties,n.customProperties)&&i.type===n.type&&i.diffIndicators===n.diffIndicators&&i.disableBackground===n.disableBackground&&i.disableLineNumbers===n.disableLineNumbers&&i.overflow===n.overflow&&i.split===n.split&&i.totalLines===n.totalLines}const S0={};function I2(i=S0,n=S0){if(i===n)return!0;const a=Object.keys(i),r=Object.keys(n);if(a.length!==r.length)return!1;for(const s of a)if(i[s]!==n[s])return!1;return!0}function U2(i){const n=document.createElement("div");return n.dataset.annotationSlot="",n.slot=i,n.style.whiteSpace="normal",n}function H2(){const i=document.createElement("div");return i.slot="gutter-utility-slot",i.style.position="absolute",i.style.top="0",i.style.bottom="0",i.style.textAlign="center",i.style.whiteSpace="normal",i}function V2(){const i=document.createElement("style");return i.setAttribute(U0,""),i}var G2=`@layer base, theme, rendered, unsafe;
255
-
256
- @layer base {
257
- :host {
258
- --diffs-font-fallback:
259
- 'SF Mono', Monaco, Consolas, 'Ubuntu Mono', 'Liberation Mono',
260
- 'Courier New', monospace;
261
- --diffs-header-font-fallback:
262
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
263
- 'Noto Sans', 'Liberation Sans', Arial, sans-serif;
264
-
265
- --diffs-mixer: light-dark(black, white);
266
- --diffs-gap-fallback: 8px;
267
-
268
- --diffs-added-light: #0dbe4e;
269
- --diffs-added-dark: #5ecc71;
270
- --diffs-modified-light: #009fff;
271
- --diffs-modified-dark: #69b1ff;
272
- --diffs-deleted-light: #ff2e3f;
273
- --diffs-deleted-dark: #ff6762;
274
-
275
- /*
276
- // Available CSS Color Overrides
277
- --diffs-bg-buffer-override
278
- --diffs-bg-hover-override
279
- --diffs-bg-context-override
280
- --diffs-bg-separator-override
281
-
282
- --diffs-fg-number-override
283
- --diffs-fg-number-addition-override
284
- --diffs-fg-number-deletion-override
285
- --diffs-fg-conflict-marker-override
286
-
287
- --diffs-deletion-color-override
288
- --diffs-addition-color-override
289
- --diffs-modified-color-override
290
-
291
- --diffs-bg-deletion-override
292
- --diffs-bg-deletion-number-override
293
- --diffs-bg-deletion-hover-override
294
- --diffs-bg-deletion-emphasis-override
295
-
296
- --diffs-bg-addition-override
297
- --diffs-bg-addition-number-override
298
- --diffs-bg-addition-hover-override
299
- --diffs-bg-addition-emphasis-override
300
-
301
- // Line Selection Color Overrides (for enableLineSelection)
302
- --diffs-selection-color-override
303
- --diffs-bg-selection-override
304
- --diffs-bg-selection-number-override
305
- --diffs-bg-selection-background-override
306
- --diffs-bg-selection-number-background-override
307
-
308
- // Available CSS Layout Overrides
309
- --diffs-gap-inline
310
- --diffs-gap-block
311
- --diffs-gap-style
312
- --diffs-tab-size
313
- */
314
-
315
- color-scheme: light dark;
316
- display: block;
317
- font-family: var(
318
- --diffs-header-font-family,
319
- var(--diffs-header-font-fallback)
320
- );
321
- font-size: var(--diffs-font-size, 13px);
322
- line-height: var(--diffs-line-height, 20px);
323
- font-feature-settings: var(--diffs-font-features);
324
-
325
- /* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
326
- * and vscode use an older build of chrome that appears to have a bug with
327
- * color-mix and 'in oklch', so use 'in lab' instead */
328
- --diffs-bg: light-dark(
329
- var(--diffs-light-bg, #fff),
330
- var(--diffs-dark-bg, #000)
331
- );
332
- --diffs-bg-buffer: var(
333
- --diffs-bg-buffer-override,
334
- light-dark(
335
- color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)),
336
- color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))
337
- )
338
- );
339
- --diffs-bg-hover: var(
340
- --diffs-bg-hover-override,
341
- light-dark(
342
- color-mix(in lab, var(--diffs-bg) 97%, var(--diffs-mixer)),
343
- color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-mixer))
344
- )
345
- );
346
-
347
- --diffs-bg-context: var(
348
- --diffs-bg-context-override,
349
- light-dark(
350
- color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)),
351
- color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))
352
- )
353
- );
354
- --diffs-bg-context-number: var(
355
- --diffs-bg-context-number-override,
356
- light-dark(
357
- color-mix(in lab, var(--diffs-bg-context) 80%, var(--diffs-bg)),
358
- color-mix(in lab, var(--diffs-bg-context) 60%, var(--diffs-bg))
359
- )
360
- );
361
- --diffs-bg-conflict-marker: var(
362
- --diffs-bg-conflict-marker-override,
363
- light-dark(
364
- color-mix(
365
- in lab,
366
- var(--diffs-bg-context) 88%,
367
- var(--diffs-modified-base)
368
- ),
369
- color-mix(
370
- in lab,
371
- var(--diffs-bg-context) 80%,
372
- var(--diffs-modified-base)
373
- )
374
- )
375
- );
376
- --diffs-bg-conflict-current: var(
377
- --diffs-bg-conflict-current-override,
378
- light-dark(#e5f8ea, #274432)
379
- );
380
- --diffs-bg-conflict-base: var(
381
- --diffs-bg-conflict-base-override,
382
- light-dark(
383
- color-mix(
384
- in lab,
385
- var(--diffs-bg-context) 90%,
386
- var(--diffs-modified-base)
387
- ),
388
- color-mix(
389
- in lab,
390
- var(--diffs-bg-context) 82%,
391
- var(--diffs-modified-base)
392
- )
393
- )
394
- );
395
- --diffs-bg-conflict-incoming: var(
396
- --diffs-bg-conflict-incoming-override,
397
- light-dark(#e6f1ff, #253b5a)
398
- );
399
- --diffs-bg-conflict-marker-number: var(
400
- --diffs-bg-conflict-marker-number-override,
401
- light-dark(
402
- color-mix(in lab, var(--diffs-bg-conflict-marker) 72%, var(--diffs-bg)),
403
- color-mix(in lab, var(--diffs-bg-conflict-marker) 54%, var(--diffs-bg))
404
- )
405
- );
406
- --diffs-bg-conflict-current-number: var(
407
- --diffs-bg-conflict-current-number-override,
408
- light-dark(#d7f1de, #30533d)
409
- );
410
- --diffs-bg-conflict-base-number: var(
411
- --diffs-bg-conflict-base-number-override,
412
- light-dark(
413
- color-mix(in lab, var(--diffs-bg-conflict-base) 72%, var(--diffs-bg)),
414
- color-mix(in lab, var(--diffs-bg-conflict-base) 54%, var(--diffs-bg))
415
- )
416
- );
417
- --diffs-bg-conflict-incoming-number: var(
418
- --diffs-bg-conflict-incoming-number-override,
419
- light-dark(#d8e8ff, #2f4b73)
420
- );
421
- --conflict-bg-current: var(
422
- --conflict-bg-current-override,
423
- var(--diffs-bg-addition)
424
- );
425
- --conflict-bg-incoming: var(
426
- --conflict-bg-incoming-override,
427
- light-dark(
428
- color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-modified-base)),
429
- color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-modified-base))
430
- )
431
- );
432
- --conflict-bg-current-number: var(
433
- --conflict-bg-current-number-override,
434
- var(--diffs-bg-addition-number)
435
- );
436
- --conflict-bg-incoming-number: var(
437
- --conflict-bg-incoming-number-override,
438
- light-dark(
439
- color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-modified-base)),
440
- color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-modified-base))
441
- )
442
- );
443
- --conflict-bg-current-header: var(
444
- --conflict-bg-current-header-override,
445
- light-dark(
446
- color-mix(in lab, var(--diffs-bg) 78%, var(--diffs-addition-base)),
447
- color-mix(in lab, var(--diffs-bg) 68%, var(--diffs-addition-base))
448
- )
449
- );
450
- --conflict-bg-incoming-header: var(
451
- --conflict-bg-incoming-header-override,
452
- light-dark(
453
- color-mix(in lab, var(--diffs-bg) 78%, var(--diffs-modified-base)),
454
- color-mix(in lab, var(--diffs-bg) 68%, var(--diffs-modified-base))
455
- )
456
- );
457
- --conflict-bg-current-header-number: var(
458
- --conflict-bg-current-header-number-override,
459
- light-dark(
460
- color-mix(in lab, var(--diffs-bg) 72%, var(--diffs-addition-base)),
461
- color-mix(in lab, var(--diffs-bg) 62%, var(--diffs-addition-base))
462
- )
463
- );
464
- --conflict-bg-incoming-header-number: var(
465
- --conflict-bg-incoming-header-number-override,
466
- light-dark(
467
- color-mix(in lab, var(--diffs-bg) 72%, var(--diffs-modified-base)),
468
- color-mix(in lab, var(--diffs-bg) 62%, var(--diffs-modified-base))
469
- )
470
- );
471
-
472
- --diffs-bg-separator: var(
473
- --diffs-bg-separator-override,
474
- light-dark(
475
- color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)),
476
- color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))
477
- )
478
- );
479
-
480
- --diffs-fg: light-dark(var(--diffs-light, #000), var(--diffs-dark, #fff));
481
- --diffs-fg-number: var(
482
- --diffs-fg-number-override,
483
- light-dark(
484
- color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)),
485
- color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))
486
- )
487
- );
488
- --diffs-fg-conflict-marker: var(
489
- --diffs-fg-conflict-marker-override,
490
- var(--diffs-fg-number)
491
- );
492
-
493
- --diffs-deletion-base: var(
494
- --diffs-deletion-color-override,
495
- light-dark(
496
- var(
497
- --diffs-light-deletion-color,
498
- var(--diffs-deletion-color, var(--diffs-deleted-light))
499
- ),
500
- var(
501
- --diffs-dark-deletion-color,
502
- var(--diffs-deletion-color, var(--diffs-deleted-dark))
503
- )
504
- )
505
- );
506
- --diffs-addition-base: var(
507
- --diffs-addition-color-override,
508
- light-dark(
509
- var(
510
- --diffs-light-addition-color,
511
- var(--diffs-addition-color, var(--diffs-added-light))
512
- ),
513
- var(
514
- --diffs-dark-addition-color,
515
- var(--diffs-addition-color, var(--diffs-added-dark))
516
- )
517
- )
518
- );
519
- --diffs-modified-base: var(
520
- --diffs-modified-color-override,
521
- light-dark(
522
- var(
523
- --diffs-light-modified-color,
524
- var(--diffs-modified-color, var(--diffs-modified-light))
525
- ),
526
- var(
527
- --diffs-dark-modified-color,
528
- var(--diffs-modified-color, var(--diffs-modified-dark))
529
- )
530
- )
531
- );
532
-
533
- /* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
534
- * and vscode use an older build of chrome that appears to have a bug with
535
- * color-mix and 'in oklch', so use 'in lab' instead */
536
- --diffs-bg-deletion: var(
537
- --diffs-bg-deletion-override,
538
- light-dark(
539
- color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)),
540
- color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))
541
- )
542
- );
543
- --diffs-bg-deletion-number: var(
544
- --diffs-bg-deletion-number-override,
545
- light-dark(
546
- color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-deletion-base)),
547
- color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-deletion-base))
548
- )
549
- );
550
- --diffs-bg-deletion-hover: var(
551
- --diffs-bg-deletion-hover-override,
552
- light-dark(
553
- color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base)),
554
- color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-deletion-base))
555
- )
556
- );
557
- --diffs-bg-deletion-emphasis: var(
558
- --diffs-bg-deletion-emphasis-override,
559
- light-dark(
560
- rgb(from var(--diffs-deletion-base) r g b / 0.15),
561
- rgb(from var(--diffs-deletion-base) r g b / 0.2)
562
- )
563
- );
564
-
565
- --diffs-bg-addition: var(
566
- --diffs-bg-addition-override,
567
- light-dark(
568
- color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)),
569
- color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))
570
- )
571
- );
572
- --diffs-bg-addition-number: var(
573
- --diffs-bg-addition-number-override,
574
- light-dark(
575
- color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-addition-base)),
576
- color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-addition-base))
577
- )
578
- );
579
- --diffs-bg-addition-hover: var(
580
- --diffs-bg-addition-hover-override,
581
- light-dark(
582
- color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base)),
583
- color-mix(in lab, var(--diffs-bg) 70%, var(--diffs-addition-base))
584
- )
585
- );
586
- --diffs-bg-addition-emphasis: var(
587
- --diffs-bg-addition-emphasis-override,
588
- light-dark(
589
- rgb(from var(--diffs-addition-base) r g b / 0.15),
590
- rgb(from var(--diffs-addition-base) r g b / 0.2)
591
- )
592
- );
593
-
594
- --diffs-selection-base: var(--diffs-modified-base);
595
- --diffs-selection-number-fg: light-dark(
596
- color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)),
597
- color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer))
598
- );
599
- --diffs-bg-selection: var(
600
- --diffs-bg-selection-override,
601
- light-dark(
602
- color-mix(in lab, var(--diffs-bg) 82%, var(--diffs-selection-base)),
603
- color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base))
604
- )
605
- );
606
- --diffs-bg-selection-number: var(
607
- --diffs-bg-selection-number-override,
608
- light-dark(
609
- color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base)),
610
- color-mix(in lab, var(--diffs-bg) 60%, var(--diffs-selection-base))
611
- )
612
- );
613
-
614
- background-color: var(--diffs-bg);
615
- color: var(--diffs-fg);
616
- }
617
-
618
- /* NOTE(mdo): Some semantic HTML elements (e.g. \`pre\`, \`code\`) have default
619
- * user-agent styles. These must be overridden to use our custom styles. */
620
- pre,
621
- code,
622
- [data-error-wrapper] {
623
- isolation: isolate;
624
- margin: 0;
625
- padding: 0;
626
- display: block;
627
- outline: none;
628
- font-family: var(--diffs-font-family, var(--diffs-font-fallback));
629
- }
630
-
631
- pre,
632
- code {
633
- background-color: var(--diffs-bg);
634
- }
635
-
636
- code {
637
- contain: content;
638
- }
639
-
640
- *,
641
- *::before,
642
- *::after {
643
- box-sizing: border-box;
644
- }
645
-
646
- [data-icon-sprite] {
647
- display: none;
648
- }
649
-
650
- /* NOTE(mdo): Headers and separators are within pre/code, so we need to reset
651
- * their font-family explicitly. */
652
- [data-diffs-header],
653
- [data-separator] {
654
- font-family: var(
655
- --diffs-header-font-family,
656
- var(--diffs-header-font-fallback)
657
- );
658
- }
659
-
660
- [data-file-info] {
661
- padding: 10px;
662
- font-weight: 700;
663
- color: var(--fg);
664
- /* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
665
- * and vscode use an older build of chrome that appears to have a bug with
666
- * color-mix and 'in oklch', so use 'in lab' instead */
667
- background-color: color-mix(in lab, var(--bg) 98%, var(--fg));
668
- border-block: 1px solid color-mix(in lab, var(--bg) 95%, var(--fg));
669
- }
670
-
671
- [data-diff],
672
- [data-file] {
673
- /* This feels a bit crazy to me... so I need to think about it a bit more... */
674
- --diffs-grid-number-column-width: minmax(min-content, max-content);
675
- --diffs-code-grid: var(--diffs-grid-number-column-width) 1fr;
676
-
677
- &[data-dehydrated] {
678
- --diffs-code-grid: var(--diffs-grid-number-column-width) minmax(0, 1fr);
679
- }
680
-
681
- &:hover [data-code]::-webkit-scrollbar-thumb {
682
- background-color: var(--diffs-bg-context);
683
- }
684
- }
685
-
686
- [data-line] span {
687
- color: light-dark(
688
- var(--diffs-token-light, var(--diffs-light)),
689
- var(--diffs-token-dark, var(--diffs-dark))
690
- );
691
- background-color: light-dark(
692
- var(--diffs-token-light-bg, inherit),
693
- var(--diffs-token-dark-bg, inherit)
694
- );
695
- font-weight: light-dark(
696
- var(--diffs-token-light-font-weight, inherit),
697
- var(--diffs-token-dark-font-weight, inherit)
698
- );
699
- font-style: light-dark(
700
- var(--diffs-token-light-font-style, inherit),
701
- var(--diffs-token-dark-font-style, inherit)
702
- );
703
- -webkit-text-decoration: light-dark(
704
- var(--diffs-token-light-text-decoration, inherit),
705
- var(--diffs-token-dark-text-decoration, inherit)
706
- );
707
- text-decoration: light-dark(
708
- var(--diffs-token-light-text-decoration, inherit),
709
- var(--diffs-token-dark-text-decoration, inherit)
710
- );
711
- }
712
-
713
- [data-line],
714
- [data-gutter-buffer],
715
- [data-line-annotation],
716
- [data-no-newline] {
717
- color: var(--diffs-fg);
718
- background-color: var(--diffs-line-bg, var(--diffs-bg));
719
- }
720
-
721
- [data-no-newline] {
722
- -webkit-user-select: none;
723
- user-select: none;
724
-
725
- span {
726
- opacity: 0.6;
727
- }
728
- }
729
-
730
- [data-diff-type='split'][data-overflow='scroll'] {
731
- display: grid;
732
- grid-template-columns: 1fr 1fr;
733
-
734
- [data-additions] {
735
- border-left: 1px solid var(--diffs-bg);
736
- }
737
-
738
- [data-deletions] {
739
- border-right: 1px solid var(--diffs-bg);
740
- }
741
- }
742
-
743
- [data-code] {
744
- display: grid;
745
- grid-auto-flow: dense;
746
- grid-template-columns: var(--diffs-code-grid);
747
- overflow: scroll clip;
748
- overscroll-behavior-x: none;
749
- tab-size: var(--diffs-tab-size, 2);
750
- align-self: flex-start;
751
- padding-top: var(--diffs-gap-block, var(--diffs-gap-fallback));
752
- padding-bottom: max(
753
- 0px,
754
- calc(var(--diffs-gap-block, var(--diffs-gap-fallback)) - 6px)
755
- );
756
- }
757
-
758
- [data-container-size] {
759
- container-type: inline-size;
760
- }
761
-
762
- [data-code]::-webkit-scrollbar {
763
- width: 0;
764
- height: 6px;
765
- }
766
-
767
- [data-code]::-webkit-scrollbar-track {
768
- background: transparent;
769
- }
770
-
771
- [data-code]::-webkit-scrollbar-thumb {
772
- background-color: transparent;
773
- border: 1px solid transparent;
774
- background-clip: content-box;
775
- border-radius: 3px;
776
- }
777
-
778
- [data-code]::-webkit-scrollbar-corner {
779
- background-color: transparent;
780
- }
781
-
782
- /*
783
- * If we apply these rules globally it will mean that webkit will opt into the
784
- * standards compliant version of custom css scrollbars, which we do not want
785
- * because the custom stuff will look better
786
- */
787
- @supports (-moz-appearance: none) {
788
- [data-code] {
789
- scrollbar-width: thin;
790
- scrollbar-color: var(--diffs-bg-context) transparent;
791
- padding-bottom: var(--diffs-gap-block, var(--diffs-gap-fallback));
792
- }
793
- }
794
-
795
- [data-diffs-header] ~ [data-diff],
796
- [data-diffs-header] ~ [data-file] {
797
- [data-code],
798
- &[data-overflow='wrap'] {
799
- padding-top: 0;
800
- }
801
- }
802
-
803
- [data-gutter] {
804
- display: grid;
805
- grid-template-rows: subgrid;
806
- grid-template-columns: subgrid;
807
- grid-column: 1;
808
- z-index: 3;
809
- position: relative;
810
- background-color: var(--diffs-bg);
811
-
812
- [data-gutter-buffer],
813
- [data-column-number] {
814
- border-right: var(--diffs-gap-style, 2px solid var(--diffs-bg));
815
- }
816
- }
817
-
818
- [data-content] {
819
- display: grid;
820
- grid-template-rows: subgrid;
821
- grid-template-columns: subgrid;
822
- grid-column: 2;
823
- min-width: 0;
824
- }
825
-
826
- [data-diff-type='split'][data-overflow='wrap'] {
827
- display: grid;
828
- grid-auto-flow: dense;
829
- grid-template-columns: repeat(2, var(--diffs-code-grid));
830
- padding-block: var(--diffs-gap-block, var(--diffs-gap-fallback));
831
-
832
- [data-deletions] {
833
- display: contents;
834
-
835
- [data-gutter] {
836
- grid-column: 1;
837
- }
838
-
839
- [data-content] {
840
- grid-column: 2;
841
- border-right: 1px solid var(--diffs-bg);
842
- }
843
- }
844
-
845
- [data-additions] {
846
- display: contents;
847
-
848
- [data-gutter] {
849
- grid-column: 3;
850
- border-left: 1px solid var(--diffs-bg);
851
- }
852
-
853
- [data-content] {
854
- grid-column: 4;
855
- }
856
- }
857
- }
858
-
859
- [data-overflow='scroll'] [data-gutter] {
860
- position: sticky;
861
- left: 0;
862
- }
863
-
864
- [data-line-annotation][data-selected-line] {
865
- background-color: unset;
866
-
867
- &::before {
868
- content: '';
869
- /* FIXME(amadeus): This needs to be audited ... */
870
- position: sticky;
871
- top: 0;
872
- left: 0;
873
- display: block;
874
- border-right: var(--diffs-gap-style, 1px solid var(--diffs-bg));
875
- background-color: var(--diffs-bg-selection-number);
876
- }
877
-
878
- [data-annotation-content] {
879
- background-color: var(--diffs-bg-selection);
880
- }
881
- }
882
-
883
- [data-interactive-lines] [data-line] {
884
- cursor: pointer;
885
- }
886
-
887
- [data-content-buffer],
888
- [data-gutter-buffer] {
889
- position: relative;
890
- -webkit-user-select: none;
891
- user-select: none;
892
- min-height: 1lh;
893
- }
894
-
895
- [data-gutter-buffer='annotation'] {
896
- min-height: 0;
897
- }
898
-
899
- [data-gutter-buffer='buffer'] {
900
- background-size: 8px 8px;
901
- background-position: 0 0;
902
- background-origin: border-box;
903
- background-color: var(--diffs-bg);
904
- /* This is incredibley expensive... */
905
- background-image: repeating-linear-gradient(
906
- -45deg,
907
- transparent,
908
- transparent calc(3px * 1.414),
909
- rgb(from var(--diffs-bg-buffer) r g b / 0.8) calc(3px * 1.414),
910
- rgb(from var(--diffs-bg-buffer) r g b / 0.8) calc(4px * 1.414)
911
- );
912
- }
913
-
914
- [data-content-buffer] {
915
- grid-column: 1;
916
- /* We multiply by 1.414 (√2) to better approximate the diagonal repeat distance */
917
- background-size: 8px 8px;
918
- background-position: 5px 0;
919
- background-origin: border-box;
920
- background-color: var(--diffs-bg);
921
- /* This is incredibley expensive... */
922
- background-image: repeating-linear-gradient(
923
- -45deg,
924
- transparent,
925
- transparent calc(3px * 1.414),
926
- var(--diffs-bg-buffer) calc(3px * 1.414),
927
- var(--diffs-bg-buffer) calc(4px * 1.414)
928
- );
929
- }
930
-
931
- [data-separator] {
932
- box-sizing: content-box;
933
- background-color: var(--diffs-bg);
934
- }
935
-
936
- [data-separator='simple'] {
937
- min-height: 4px;
938
- }
939
-
940
- [data-separator='line-info'],
941
- [data-separator='line-info-basic'],
942
- [data-separator='metadata'],
943
- [data-separator='simple'] {
944
- background-color: var(--diffs-bg-separator);
945
- }
946
-
947
- [data-separator='line-info'],
948
- [data-separator='line-info-basic'],
949
- [data-separator='metadata'] {
950
- height: 32px;
951
- position: relative;
952
- }
953
-
954
- [data-separator-wrapper] {
955
- -webkit-user-select: none;
956
- user-select: none;
957
- fill: currentColor;
958
- position: absolute;
959
- inset-inline: 0;
960
- display: flex;
961
- align-items: center;
962
- background-color: var(--diffs-bg);
963
- height: 100%;
964
- }
965
-
966
- [data-content] [data-separator-wrapper] {
967
- display: none;
968
- }
969
-
970
- [data-separator='metadata'] [data-separator-wrapper] {
971
- inset-inline: 100% auto;
972
- padding-inline: 1ch;
973
- height: 100%;
974
- background-color: var(--diffs-bg-separator);
975
- color: var(--diffs-fg-number);
976
- white-space: nowrap;
977
- overflow: hidden;
978
- text-overflow: ellipsis;
979
- min-width: min-content;
980
- }
981
-
982
- [data-separator='line-info'] {
983
- margin-block: var(--diffs-gap-block, var(--diffs-gap-fallback));
984
- }
985
-
986
- [data-separator='line-info-basic'],
987
- [data-separator='metadata'] {
988
- margin-block: 0;
989
- }
990
-
991
- [data-separator='line-info'][data-separator-first] {
992
- margin-top: 0;
993
- }
994
-
995
- [data-separator='line-info'][data-separator-last] {
996
- margin-bottom: 0;
997
- }
998
-
999
- [data-expand-index] [data-separator-wrapper] {
1000
- display: grid;
1001
- grid-template-columns: 32px auto;
1002
- }
1003
-
1004
- [data-expand-index] [data-separator-wrapper][data-separator-multi-button] {
1005
- grid-template-columns: 32px 32px auto;
1006
- }
1007
-
1008
- [data-expand-button],
1009
- [data-separator-content] {
1010
- display: flex;
1011
- flex: 0 0 auto;
1012
- align-items: center;
1013
- background-color: var(--diffs-bg-separator);
1014
- }
1015
-
1016
- [data-expand-button] {
1017
- justify-content: center;
1018
- flex-shrink: 0;
1019
- cursor: pointer;
1020
- min-width: 32px;
1021
- align-self: stretch;
1022
- color: var(--diffs-fg-number);
1023
- border-right: 2px solid var(--diffs-bg);
1024
-
1025
- &:hover {
1026
- color: var(--diffs-fg);
1027
- }
1028
- }
1029
-
1030
- [data-expand-down] [data-icon] {
1031
- transform: scaleY(-1);
1032
- }
1033
-
1034
- [data-separator-content] {
1035
- flex: 1 1 auto;
1036
- padding: 0 1ch;
1037
- height: 100%;
1038
- color: var(--diffs-fg-number);
1039
-
1040
- overflow: hidden;
1041
- justify-content: flex-start;
1042
- }
1043
-
1044
- [data-separator='line-info'],
1045
- [data-separator='line-info-basic'] {
1046
- [data-separator-content] {
1047
- height: 100%;
1048
- -webkit-user-select: none;
1049
- user-select: none;
1050
- overflow: clip;
1051
- }
1052
- }
1053
-
1054
- @supports (width: 1cqi) {
1055
- [data-unified] {
1056
- [data-separator='line-info'] [data-separator-wrapper] {
1057
- padding-inline: var(--diffs-gap-inline, var(--diffs-gap-fallback));
1058
- width: 100cqi;
1059
-
1060
- [data-separator-content] {
1061
- border-radius: 6px;
1062
- }
1063
- }
1064
-
1065
- [data-separator='line-info'][data-expand-index]
1066
- [data-separator-wrapper]
1067
- [data-separator-content] {
1068
- border-top-left-radius: unset;
1069
- border-bottom-left-radius: unset;
1070
- }
1071
- }
1072
-
1073
- [data-gutter] {
1074
- [data-separator='line-info'] [data-separator-wrapper] {
1075
- padding-left: var(--diffs-gap-inline, var(--diffs-gap-fallback));
1076
- }
1077
-
1078
- [data-separator='line-info'] [data-separator-content] {
1079
- border-top-left-radius: 6px;
1080
- border-bottom-left-radius: 6px;
1081
- }
1082
-
1083
- [data-separator='line-info'][data-expand-index] [data-separator-content] {
1084
- border-top-left-radius: unset;
1085
- border-bottom-left-radius: unset;
1086
- }
1087
- }
1088
-
1089
- [data-additions] {
1090
- [data-content] [data-separator='line-info'] {
1091
- background-color: var(--diffs-bg);
1092
-
1093
- [data-separator-wrapper] {
1094
- display: none;
1095
- }
1096
- }
1097
-
1098
- [data-gutter] [data-separator='line-info'] [data-separator-wrapper] {
1099
- display: block;
1100
- height: 100%;
1101
- background-color: var(--diffs-bg-separator);
1102
- border-top-right-radius: 6px;
1103
- border-bottom-right-radius: 6px;
1104
-
1105
- [data-separator-content],
1106
- [data-expand-button] {
1107
- display: none;
1108
- }
1109
- }
1110
- }
1111
-
1112
- [data-overflow='scroll']
1113
- [data-additions]
1114
- [data-gutter]
1115
- [data-separator='line-info']
1116
- [data-separator-wrapper] {
1117
- width: calc(100cqi - var(--diffs-gap-inline, var(--diffs-gap-fallback)));
1118
- }
1119
-
1120
- [data-overflow='wrap']
1121
- [data-additions]
1122
- [data-content]
1123
- [data-separator='line-info']
1124
- [data-separator-wrapper] {
1125
- background-color: var(--diffs-bg-separator);
1126
- display: block;
1127
- height: 100%;
1128
- margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));
1129
- border-top-right-radius: 6px;
1130
- border-bottom-right-radius: 6px;
1131
-
1132
- [data-separator-content],
1133
- [data-expand-button] {
1134
- display: none;
1135
- }
1136
- }
1137
-
1138
- [data-separator='line-info'] [data-separator-wrapper] {
1139
- [data-expand-both],
1140
- [data-expand-down],
1141
- [data-expand-up] {
1142
- border-top-left-radius: 6px;
1143
- border-bottom-left-radius: 6px;
1144
- }
1145
- }
1146
-
1147
- @media (pointer: fine) {
1148
- [data-separator='line-info'] [data-separator-wrapper] {
1149
- &[data-separator-multi-button] {
1150
- [data-expand-up] {
1151
- border-top-left-radius: 6px;
1152
- border-bottom-left-radius: unset;
1153
- }
1154
-
1155
- [data-expand-down] {
1156
- border-bottom-left-radius: 6px;
1157
- border-top-left-radius: unset;
1158
- }
1159
- }
1160
- }
1161
- }
1162
- }
1163
-
1164
- @media (pointer: coarse) {
1165
- [data-separator='line-info-basic']
1166
- [data-separator-wrapper][data-separator-multi-button] {
1167
- grid-template-columns: 34px 34px auto;
1168
-
1169
- [data-separator-content] {
1170
- grid-column: unset;
1171
- grid-row: unset;
1172
- }
1173
- }
1174
-
1175
- @supports (width: 1cqi) {
1176
- [data-separator='line-info'] [data-separator-wrapper] {
1177
- [data-expand-both],
1178
- [data-expand-down],
1179
- [data-expand-up] {
1180
- border-top-left-radius: 6px;
1181
- border-bottom-left-radius: 6px;
1182
- }
1183
-
1184
- &[data-separator-multi-button] {
1185
- [data-expand-up] {
1186
- border-top-left-radius: 6px;
1187
- border-bottom-left-radius: 6px;
1188
- }
1189
-
1190
- [data-expand-down] {
1191
- border-bottom-left-radius: unset;
1192
- border-top-left-radius: unset;
1193
- }
1194
- }
1195
- }
1196
- }
1197
- }
1198
-
1199
- @media (pointer: fine) {
1200
- [data-separator-wrapper][data-separator-multi-button] {
1201
- display: grid;
1202
- grid-template-rows: 50% 50%;
1203
-
1204
- [data-separator-content] {
1205
- grid-column: 2;
1206
- grid-row: 1 / -1;
1207
- min-width: min-content;
1208
- }
1209
-
1210
- [data-expand-button] {
1211
- grid-column: 1;
1212
- }
1213
- }
1214
-
1215
- [data-separator='line-info'] [data-separator-wrapper],
1216
- [data-separator='line-info']
1217
- [data-separator-wrapper][data-separator-multi-button] {
1218
- grid-template-columns: 34px auto;
1219
- }
1220
-
1221
- [data-separator='line-info-basic'][data-expand-index]
1222
- [data-separator-wrapper] {
1223
- grid-template-columns: 100% auto;
1224
- }
1225
-
1226
- [data-separator='line-info'],
1227
- [data-separator='line-info-basic'] {
1228
- [data-separator-multi-button] {
1229
- [data-expand-up] {
1230
- border-bottom: 1px solid var(--diffs-bg);
1231
- border-right: 2px solid var(--diffs-bg);
1232
- }
1233
- [data-expand-down] {
1234
- border-top: 1px solid var(--diffs-bg);
1235
- border-right: 2px solid var(--diffs-bg);
1236
- }
1237
- }
1238
- }
1239
- }
1240
-
1241
- [data-additions] [data-gutter] [data-separator-wrapper],
1242
- [data-additions] [data-separator='line-info-basic'] [data-separator-wrapper],
1243
- [data-content] [data-separator-wrapper] {
1244
- display: none;
1245
- }
1246
-
1247
- [data-line-annotation],
1248
- [data-gutter-buffer='annotation'] {
1249
- --diffs-line-bg: var(--diffs-bg-context);
1250
- }
1251
-
1252
- [data-merge-conflict-actions],
1253
- [data-gutter-buffer='merge-conflict-action'] {
1254
- --diffs-line-bg: var(--diffs-bg-context);
1255
- }
1256
-
1257
- [data-has-merge-conflict] [data-line-annotation],
1258
- [data-has-merge-conflict] [data-gutter-buffer='annotation'] {
1259
- --diffs-line-bg: var(--diffs-bg);
1260
- }
1261
-
1262
- [data-has-merge-conflict] [data-gutter-buffer='merge-conflict-action'] {
1263
- --diffs-line-bg: var(--diffs-bg);
1264
- }
1265
-
1266
- [data-line-annotation] {
1267
- min-height: var(--diffs-annotation-min-height, 0);
1268
- z-index: 2;
1269
- }
1270
-
1271
- [data-merge-conflict-actions] {
1272
- z-index: 2;
1273
- }
1274
-
1275
- [data-separator='custom'] {
1276
- display: grid;
1277
- grid-template-columns: subgrid;
1278
- }
1279
-
1280
- [data-line],
1281
- [data-column-number],
1282
- [data-no-newline] {
1283
- position: relative;
1284
- padding-inline: 1ch;
1285
- }
1286
-
1287
- [data-indicators='classic'] [data-line] {
1288
- padding-inline-start: 2ch;
1289
- }
1290
-
1291
- [data-indicators='classic'] {
1292
- [data-line-type='change-addition'],
1293
- [data-line-type='change-deletion'] {
1294
- &[data-no-newline],
1295
- &[data-line] {
1296
- &::before {
1297
- display: inline-block;
1298
- width: 1ch;
1299
- height: 1lh;
1300
- position: absolute;
1301
- top: 0;
1302
- left: 0;
1303
- -webkit-user-select: none;
1304
- user-select: none;
1305
- }
1306
- }
1307
- }
1308
-
1309
- [data-line-type='change-addition'] {
1310
- &[data-line],
1311
- &[data-no-newline] {
1312
- &::before {
1313
- content: '+';
1314
- color: var(--diffs-addition-base);
1315
- }
1316
- }
1317
- }
1318
-
1319
- [data-line-type='change-deletion'] {
1320
- &[data-line],
1321
- &[data-no-newline] {
1322
- &::before {
1323
- content: '-';
1324
- color: var(--diffs-deletion-base);
1325
- }
1326
- }
1327
- }
1328
- }
1329
-
1330
- [data-indicators='bars'] {
1331
- [data-line-type='change-deletion'],
1332
- [data-line-type='change-addition'] {
1333
- &[data-column-number] {
1334
- &::before {
1335
- content: '';
1336
- display: block;
1337
- width: 4px;
1338
- height: 100%;
1339
- position: absolute;
1340
- top: 0;
1341
- left: 0;
1342
- -webkit-user-select: none;
1343
- user-select: none;
1344
- contain: strict;
1345
- }
1346
- }
1347
- }
1348
-
1349
- [data-line-type='change-deletion'] {
1350
- &[data-column-number] {
1351
- &::before {
1352
- background-image: linear-gradient(
1353
- 0deg,
1354
- var(--diffs-bg-deletion) 50%,
1355
- var(--diffs-deletion-base) 50%
1356
- );
1357
- background-repeat: repeat;
1358
- background-size: 2px 2px;
1359
- background-size: calc(1lh / round(1lh / 2px))
1360
- calc(1lh / round(1lh / 2px));
1361
- }
1362
- }
1363
- }
1364
-
1365
- [data-line-type='change-addition'] {
1366
- &[data-column-number] {
1367
- &::before {
1368
- background-color: var(--diffs-addition-base);
1369
- }
1370
- }
1371
- }
1372
- }
1373
-
1374
- [data-overflow='wrap'] {
1375
- [data-line],
1376
- [data-annotation-content] {
1377
- white-space: pre-wrap;
1378
- word-break: break-word;
1379
- }
1380
- }
1381
-
1382
- [data-overflow='scroll'] [data-line] {
1383
- white-space: pre;
1384
- min-height: 1lh;
1385
- }
1386
-
1387
- [data-column-number] {
1388
- box-sizing: content-box;
1389
- text-align: right;
1390
- -webkit-user-select: none;
1391
- user-select: none;
1392
- background-color: var(--diffs-bg);
1393
- color: var(--diffs-fg-number);
1394
- padding-left: 2ch;
1395
- }
1396
-
1397
- [data-line-number-content] {
1398
- display: inline-block;
1399
- min-width: var(
1400
- --diffs-min-number-column-width,
1401
- var(--diffs-min-number-column-width-default, 3ch)
1402
- );
1403
- }
1404
-
1405
- [data-disable-line-numbers] {
1406
- [data-column-number] {
1407
- min-width: 4px;
1408
- padding: 0;
1409
- }
1410
-
1411
- [data-line-number-content] {
1412
- display: none;
1413
- }
1414
-
1415
- [data-gutter-utility-slot] {
1416
- right: unset;
1417
- left: 0;
1418
- justify-content: flex-start;
1419
- }
1420
-
1421
- &[data-indicators='bars'] [data-gutter-utility-slot] {
1422
- /* Using 5px here because theres a 1px separator after the bar */
1423
- left: 5px;
1424
- }
1425
- }
1426
-
1427
- [data-file][data-disable-line-numbers] {
1428
- [data-gutter-buffer],
1429
- [data-column-number] {
1430
- min-width: 0;
1431
- border-right: 0;
1432
- }
1433
- }
1434
-
1435
- [data-interactive-line-numbers] [data-column-number] {
1436
- cursor: pointer;
1437
- }
1438
-
1439
- [data-diff-span] {
1440
- border-radius: 3px;
1441
- -webkit-box-decoration-break: clone;
1442
- box-decoration-break: clone;
1443
- }
1444
-
1445
- [data-line-type='change-addition'] {
1446
- &[data-column-number] {
1447
- color: var(
1448
- --diffs-fg-number-addition-override,
1449
- var(--diffs-addition-base)
1450
- );
1451
- }
1452
-
1453
- [data-diff-span] {
1454
- background-color: var(--diffs-bg-addition-emphasis);
1455
- }
1456
- }
1457
-
1458
- [data-line-type='change-deletion'] {
1459
- &[data-column-number] {
1460
- color: var(
1461
- --diffs-fg-number-deletion-override,
1462
- var(--diffs-deletion-base)
1463
- );
1464
- }
1465
-
1466
- [data-diff-span] {
1467
- background-color: var(--diffs-bg-deletion-emphasis);
1468
- }
1469
- }
1470
-
1471
- [data-background] [data-line-type='change-addition'] {
1472
- --diffs-line-bg: var(--diffs-bg-addition);
1473
-
1474
- &[data-column-number] {
1475
- background-color: var(--diffs-bg-addition-number);
1476
- }
1477
- }
1478
-
1479
- [data-background] [data-line-type='change-deletion'] {
1480
- --diffs-line-bg: var(--diffs-bg-deletion);
1481
-
1482
- &[data-column-number] {
1483
- background-color: var(--diffs-bg-deletion-number);
1484
- }
1485
- }
1486
-
1487
- [data-merge-conflict='marker-start'],
1488
- [data-merge-conflict='marker-base'],
1489
- [data-merge-conflict='marker-separator'],
1490
- [data-merge-conflict='marker-end'] {
1491
- padding-left: 1ch;
1492
- color: var(--diffs-fg);
1493
- }
1494
-
1495
- [data-merge-conflict='marker-start'],
1496
- [data-merge-conflict='marker-end'] {
1497
- display: flex;
1498
- align-items: center;
1499
-
1500
- &::after {
1501
- color: var(--diffs-fg-conflict-marker);
1502
- font-style: normal;
1503
- font-size: 0.75rem;
1504
- line-height: 1.25rem;
1505
- padding-left: 1ch;
1506
- font-family: var(
1507
- --diffs-header-font-family,
1508
- var(--diffs-header-font-fallback)
1509
- );
1510
- }
1511
- }
1512
-
1513
- [data-merge-conflict='marker-start']::after {
1514
- content: '(Current Change)';
1515
- }
1516
-
1517
- [data-merge-conflict='marker-end']::after {
1518
- content: '(Incoming Change)';
1519
- }
1520
-
1521
- [data-merge-conflict='marker-base'],
1522
- [data-merge-conflict='marker-end'] {
1523
- &[data-line],
1524
- &[data-no-newline] {
1525
- background-color: var(--diffs-bg-conflict-marker);
1526
- }
1527
-
1528
- &[data-column-number] {
1529
- background-color: var(--diffs-bg-conflict-marker-number);
1530
- color: var(--diffs-fg-conflict-marker);
1531
-
1532
- [data-line-number-content] {
1533
- color: var(--diffs-fg-conflict-marker);
1534
- }
1535
- }
1536
- }
1537
-
1538
- [data-merge-conflict='current'] {
1539
- &[data-line],
1540
- &[data-no-newline] {
1541
- background-color: var(--conflict-bg-current);
1542
- }
1543
-
1544
- &[data-column-number] {
1545
- background-color: var(--conflict-bg-current-number);
1546
- color: var(--diffs-addition-base);
1547
- }
1548
- }
1549
-
1550
- [data-gutter-buffer='merge-conflict-marker-start'],
1551
- [data-merge-conflict='marker-start'] {
1552
- background-color: var(--conflict-bg-current-header);
1553
- }
1554
-
1555
- [data-gutter-buffer='merge-conflict-marker-end'],
1556
- [data-merge-conflict='marker-end'] {
1557
- background-color: var(--conflict-bg-incoming-header);
1558
- }
1559
-
1560
- [data-merge-conflict='marker-separator'] {
1561
- &[data-line],
1562
- &[data-no-newline] {
1563
- background-color: var(--diffs-bg);
1564
- }
1565
-
1566
- &[data-column-number] {
1567
- background-color: var(--diffs-bg);
1568
- }
1569
- }
1570
-
1571
- [data-merge-conflict='base'] {
1572
- &[data-line],
1573
- &[data-no-newline] {
1574
- background-color: var(--diffs-bg-conflict-base);
1575
- }
1576
-
1577
- &[data-column-number] {
1578
- background-color: var(--diffs-bg-conflict-base-number);
1579
- color: var(--diffs-modified-base);
1580
- }
1581
- }
1582
-
1583
- [data-merge-conflict='incoming'] {
1584
- &[data-line],
1585
- &[data-no-newline] {
1586
- background-color: var(--conflict-bg-incoming);
1587
- }
1588
-
1589
- &[data-column-number] {
1590
- background-color: var(--conflict-bg-incoming-number);
1591
- color: var(--diffs-modified-base);
1592
- }
1593
- }
1594
-
1595
- @media (pointer: fine) {
1596
- [data-column-number],
1597
- [data-line] {
1598
- &[data-hovered] {
1599
- background-color: var(--diffs-bg-hover);
1600
- }
1601
- }
1602
-
1603
- [data-background] {
1604
- [data-column-number],
1605
- [data-line] {
1606
- &[data-hovered] {
1607
- &[data-line-type='change-deletion'] {
1608
- background-color: var(--diffs-bg-deletion-hover);
1609
- }
1610
-
1611
- &[data-line-type='change-addition'] {
1612
- background-color: var(--diffs-bg-addition-hover);
1613
- }
1614
- }
1615
- }
1616
- }
1617
- }
1618
-
1619
- [data-diffs-header='default'] {
1620
- position: relative;
1621
- background-color: var(--diffs-bg);
1622
- display: flex;
1623
- flex-direction: row;
1624
- justify-content: space-between;
1625
- align-items: center;
1626
- gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));
1627
- min-height: calc(
1628
- 1lh + (var(--diffs-gap-block, var(--diffs-gap-fallback)) * 3)
1629
- );
1630
- padding-inline: 16px;
1631
- top: 0;
1632
- z-index: 2;
1633
- }
1634
-
1635
- [data-header-content] {
1636
- display: flex;
1637
- flex-direction: row;
1638
- align-items: center;
1639
- gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));
1640
- min-width: 0;
1641
- white-space: nowrap;
1642
- }
1643
-
1644
- [data-header-content] [data-prev-name],
1645
- [data-header-content] [data-title] {
1646
- direction: rtl;
1647
- overflow: hidden;
1648
- text-overflow: ellipsis;
1649
- min-width: 0;
1650
- white-space: nowrap;
1651
- }
1652
-
1653
- [data-prev-name] {
1654
- opacity: 0.7;
1655
- }
1656
-
1657
- [data-rename-icon] {
1658
- fill: currentColor;
1659
- flex-shrink: 0;
1660
- flex-grow: 0;
1661
- }
1662
-
1663
- [data-diffs-header='default'] [data-metadata] {
1664
- display: flex;
1665
- align-items: center;
1666
- gap: 1ch;
1667
- white-space: nowrap;
1668
- }
1669
-
1670
- [data-diffs-header='default'] [data-additions-count] {
1671
- font-family: var(--diffs-font-family, var(--diffs-font-fallback));
1672
- color: var(--diffs-addition-base);
1673
- }
1674
-
1675
- [data-diffs-header='default'] [data-deletions-count] {
1676
- font-family: var(--diffs-font-family, var(--diffs-font-fallback));
1677
- color: var(--diffs-deletion-base);
1678
- }
1679
-
1680
- [data-annotation-content] {
1681
- position: relative;
1682
- display: flow-root;
1683
- align-self: flex-start;
1684
- z-index: 2;
1685
- min-width: 0;
1686
- isolation: isolate;
1687
- }
1688
-
1689
- [data-merge-conflict-actions-content] {
1690
- display: flex;
1691
- align-items: center;
1692
- gap: 0.25rem;
1693
- padding-inline: 0.5rem;
1694
- min-height: 1.75rem;
1695
- font-family: var(
1696
- --diffs-header-font-family,
1697
- var(--diffs-header-font-fallback)
1698
- );
1699
- font-size: 0.75rem;
1700
- line-height: 1.2;
1701
- color: var(--diffs-fg);
1702
- }
1703
-
1704
- [data-merge-conflict-action] {
1705
- appearance: none;
1706
- border: 0;
1707
- background: transparent;
1708
- color: var(--diffs-fg-number);
1709
- font: inherit;
1710
- font-style: normal;
1711
- cursor: pointer;
1712
- padding: 0;
1713
- }
1714
-
1715
- [data-merge-conflict-action]:hover {
1716
- color: var(--diffs-fg);
1717
- }
1718
-
1719
- [data-merge-conflict-action='current']:hover {
1720
- color: var(--diffs-addition-base);
1721
- }
1722
-
1723
- [data-merge-conflict-action='incoming']:hover {
1724
- color: var(--diffs-modified-base);
1725
- }
1726
-
1727
- [data-merge-conflict-action-separator] {
1728
- color: var(--diffs-fg-number);
1729
- opacity: 0.6;
1730
- -webkit-user-select: none;
1731
- user-select: none;
1732
- }
1733
-
1734
- /* Sticky positioning has a composite costs, so we should _only_ pay it if we
1735
- * need to */
1736
- [data-overflow='scroll'] [data-annotation-content] {
1737
- position: sticky;
1738
- width: var(--diffs-column-content-width, auto);
1739
- left: var(--diffs-column-number-width, 0);
1740
- }
1741
-
1742
- [data-overflow='scroll'] [data-merge-conflict-actions-content] {
1743
- position: sticky;
1744
- width: var(--diffs-column-content-width, auto);
1745
- left: var(--diffs-column-number-width, 0);
1746
- }
1747
-
1748
- /* Undo some of the stuff that the 'pre' tag does */
1749
- [data-annotation-slot] {
1750
- text-wrap-mode: wrap;
1751
- word-break: normal;
1752
- white-space-collapse: collapse;
1753
- }
1754
-
1755
- [data-change-icon] {
1756
- fill: currentColor;
1757
- flex-shrink: 0;
1758
- }
1759
-
1760
- [data-change-icon='change'],
1761
- [data-change-icon='rename-pure'],
1762
- [data-change-icon='rename-changed'] {
1763
- color: var(--diffs-modified-base);
1764
- }
1765
-
1766
- [data-change-icon='new'] {
1767
- color: var(--diffs-addition-base);
1768
- }
1769
-
1770
- [data-change-icon='deleted'] {
1771
- color: var(--diffs-deletion-base);
1772
- }
1773
-
1774
- [data-change-icon='file'] {
1775
- opacity: 0.6;
1776
- }
1777
-
1778
- /* Line selection highlighting */
1779
- [data-selected-line] {
1780
- &[data-gutter-buffer='annotation'],
1781
- &[data-column-number] {
1782
- color: var(--diffs-selection-number-fg);
1783
- background-color: var(--diffs-bg-selection-number);
1784
- }
1785
-
1786
- &[data-line] {
1787
- background-color: var(--diffs-bg-selection);
1788
- }
1789
- }
1790
-
1791
- [data-line-type='change-addition'],
1792
- [data-line-type='change-deletion'] {
1793
- &[data-selected-line] {
1794
- &[data-line],
1795
- &[data-line][data-hovered] {
1796
- background-color: light-dark(
1797
- color-mix(
1798
- in lab,
1799
- var(--diffs-line-bg, var(--diffs-bg)) 82%,
1800
- var(--diffs-selection-base)
1801
- ),
1802
- color-mix(
1803
- in lab,
1804
- var(--diffs-line-bg, var(--diffs-bg)) 75%,
1805
- var(--diffs-selection-base)
1806
- )
1807
- );
1808
- }
1809
-
1810
- &[data-column-number],
1811
- &[data-column-number][data-hovered] {
1812
- color: var(--diffs-selection-number-fg);
1813
- background-color: light-dark(
1814
- color-mix(
1815
- in lab,
1816
- var(--diffs-line-bg, var(--diffs-bg)) 75%,
1817
- var(--diffs-selection-base)
1818
- ),
1819
- color-mix(
1820
- in lab,
1821
- var(--diffs-line-bg, var(--diffs-bg)) 60%,
1822
- var(--diffs-selection-base)
1823
- )
1824
- );
1825
- }
1826
- }
1827
- }
1828
-
1829
- [data-gutter-utility-slot] {
1830
- position: absolute;
1831
- top: 0;
1832
- bottom: 0;
1833
- right: 0;
1834
- display: flex;
1835
- justify-content: flex-end;
1836
- }
1837
-
1838
- [data-unmodified-lines] {
1839
- display: block;
1840
- overflow: hidden;
1841
- min-width: 0;
1842
- text-overflow: ellipsis;
1843
- white-space: nowrap;
1844
- flex: 0 1 auto;
1845
- }
1846
-
1847
- [data-error-wrapper] {
1848
- overflow: auto;
1849
- padding: var(--diffs-gap-block, var(--diffs-gap-fallback))
1850
- var(--diffs-gap-inline, var(--diffs-gap-fallback));
1851
- max-height: 400px;
1852
- scrollbar-width: none;
1853
-
1854
- [data-error-message] {
1855
- font-weight: bold;
1856
- font-size: 18px;
1857
- color: var(--diffs-deletion-base);
1858
- }
1859
-
1860
- [data-error-stack] {
1861
- color: var(--diffs-fg-number);
1862
- }
1863
- }
1864
-
1865
- [data-placeholder] {
1866
- contain: strict;
1867
- }
1868
-
1869
- [data-utility-button] {
1870
- display: flex;
1871
- align-items: center;
1872
- justify-content: center;
1873
- border: none;
1874
- appearance: none;
1875
- width: 1lh;
1876
- height: 1lh;
1877
- margin-right: calc((1lh - 1ch) * -1);
1878
- padding: 0;
1879
- cursor: pointer;
1880
- font-size: var(--diffs-font-size, 13px);
1881
- line-height: var(--diffs-line-height, 20px);
1882
- border-radius: 4px;
1883
- background-color: var(--diffs-modified-base);
1884
- color: var(--diffs-bg);
1885
- fill: currentColor;
1886
- position: relative;
1887
- z-index: 4;
1888
- }
1889
- }
1890
- `;const nb="@layer base, theme, rendered, unsafe;";function B2(i){return`${nb}
1891
- @layer unsafe {
1892
- ${i}
1893
- }`}function j2(i,n="system"){return`${nb}
1894
- @layer rendered {
1895
- :host {${n==="system"?"":`
1896
- color-scheme: ${n};`}
1897
- ${i}
1898
- }
1899
- }`}function sf({code:i,pre:n,columnType:a,rowSpan:r,containerSize:s=!1}={}){return i==null&&(i=document.createElement("code"),i.setAttribute("data-code",""),a!=null&&i.setAttribute(`data-${a}`,""),n==null||n.appendChild(i)),r!=null?i.style.setProperty("grid-row",`span ${r}`):i.style.removeProperty("grid-row"),s?i.setAttribute("data-container-size",""):i.removeAttribute("data-container-size"),i}function P2(i,n){if(n==null)return;const a=i.shadowRoot??i.attachShadow({mode:"open"});a.innerHTML===""&&(a.innerHTML=n)}function $2(i,{type:n,diffIndicators:a,disableBackground:r,disableLineNumbers:s,overflow:u,split:f,totalLines:d,customProperties:h}){if(h!=null)for(const m in h){const v=h[m];v!=null&&i.setAttribute(m,`${v}`)}switch(n==="diff"?(i.setAttribute("data-diff",""),i.removeAttribute("data-file")):(i.setAttribute("data-file",""),i.removeAttribute("data-diff")),a){case"bars":case"classic":i.setAttribute("data-indicators",a);break;case"none":i.removeAttribute("data-indicators");break}return s?i.setAttribute("data-disable-line-numbers",""):i.removeAttribute("data-disable-line-numbers"),r?i.removeAttribute("data-background"):i.setAttribute("data-background",""),n==="diff"?i.setAttribute("data-diff-type",f?"split":"single"):i.removeAttribute("data-diff-type"),i.setAttribute("data-overflow",u),i.tabIndex=0,i.style.setProperty("--diffs-min-number-column-width-default",`${`${d}`.length}ch`),i}function q2({shadowRoot:i,currentNode:n,themeCSS:a}){if(a.trim()===""){n==null||n.remove();return}return n??(n=Y2()),n.textContent=a,n.parentNode!==i&&i.appendChild(n),n}function Y2(){const i=document.createElement("style");return i.setAttribute(I0,""),i}if(typeof HTMLElement<"u"&&customElements.get(Yo)==null){let i;class n extends HTMLElement{constructor(){if(super(),this.shadowRoot!=null)return;const r=this.attachShadow({mode:"open"});i==null&&(i=new CSSStyleSheet,i.replaceSync(G2)),r.adoptedStyleSheets=[i]}}customElements.define(Yo,n)}const X2=!0;var Q2=class{constructor(){x(this,"isDeletionsScrolling",!1);x(this,"isAdditionsScrolling",!1);x(this,"timeoutId",-1);x(this,"codeDeletions");x(this,"codeAdditions");x(this,"enabled",!1);x(this,"handleDeletionsScroll",()=>{var i,n;this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),(n=this.codeAdditions)==null||n.scrollTo({left:(i=this.codeDeletions)==null?void 0:i.scrollLeft}))});x(this,"handleAdditionsScroll",()=>{var i,n;this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),(n=this.codeDeletions)==null||n.scrollTo({left:(i=this.codeAdditions)==null?void 0:i.scrollLeft}))})}cleanUp(){var i,n;this.enabled&&((i=this.codeDeletions)==null||i.removeEventListener("scroll",this.handleDeletionsScroll),(n=this.codeAdditions)==null||n.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(i,n,a){var r,s;if(n==null||a==null)for(const u of i.children??[])u instanceof HTMLElement&&("deletions"in u.dataset?n=u:"additions"in u.dataset&&(a=u));if(a==null||n==null){this.cleanUp();return}this.codeDeletions!==n&&((r=this.codeDeletions)==null||r.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=n,n.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==a&&((s=this.codeAdditions)==null||s.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=a,a.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0}};function uf(i,n){return eb(i.theme,n.theme)&&i.useTokenTransformer===n.useTokenTransformer&&i.tokenizeMaxLineLength===n.tokenizeMaxLineLength&&i.lineDiffType===n.lineDiffType&&i.maxLineDiffLength===n.maxLineDiffLength}function Io(i){return _e({tagName:"div",properties:{"data-content-buffer":"","data-buffer-size":i,style:`grid-row: span ${i};min-height:calc(${i} * 1lh)`}})}function Uo(i){return _e({tagName:"div",children:[_e({tagName:"span",children:[qn("No newline at end of file")]})],properties:{"data-no-newline":"","data-line-type":i,"data-column-content":""}})}function cf(i){return _e({tagName:"div",children:[Xo({name:i==="both"?"diffs-icon-expand-all":"diffs-icon-expand",properties:{"data-icon":""}})],properties:{"data-expand-button":"","data-expand-both":i==="both"?"":void 0,"data-expand-up":i==="up"?"":void 0,"data-expand-down":i==="down"?"":void 0}})}function Ha({type:i,content:n,expandIndex:a,chunked:r=!1,slotName:s,isFirstHunk:u,isLastHunk:f}){const d=[];if(i==="metadata"&&n!=null&&d.push(_e({tagName:"div",children:[qn(n)],properties:{"data-separator-wrapper":""}})),(i==="line-info"||i==="line-info-basic")&&n!=null){const h=[];a!=null&&(r?(u||h.push(cf("up")),f||h.push(cf("down"))):h.push(cf(!u&&!f?"both":u?"down":"up"))),h.push(_e({tagName:"div",children:[_e({tagName:"span",children:[qn(n)],properties:{"data-unmodified-lines":""}})],properties:{"data-separator-content":""}})),d.push(_e({tagName:"div",children:h,properties:{"data-separator-wrapper":"","data-separator-multi-button":h.length>2?"":void 0}}))}return i==="custom"&&s!=null&&d.push(_e({tagName:"slot",properties:{name:s}})),_e({tagName:"div",children:d,properties:{"data-separator":d.length===0?"simple":i,"data-expand-index":a,"data-separator-first":u?"":void 0,"data-separator-last":f?"":void 0}})}function F2(i,n){return`hunk-separator-${i}-${n}`}function Z2(i){const n=i.at(-1);return n==null?0:Math.max(n.additionStart+n.additionCount,n.deletionStart+n.deletionCount)}function K2(i){return i.startingLine===0&&i.totalLines===1/0&&i.bufferBefore===0&&i.bufferAfter===0}class ld{diff(n,a,r={}){let s;typeof r=="function"?(s=r,r={}):"callback"in r&&(s=r.callback);const u=this.castInput(n,r),f=this.castInput(a,r),d=this.removeEmpty(this.tokenize(u,r)),h=this.removeEmpty(this.tokenize(f,r));return this.diffWithOptionsObj(d,h,r,s)}diffWithOptionsObj(n,a,r,s){var u;const f=L=>{if(L=this.postProcess(L,r),s){setTimeout(function(){s(L)},0);return}else return L},d=a.length,h=n.length;let m=1,v=d+h;r.maxEditLength!=null&&(v=Math.min(v,r.maxEditLength));const g=(u=r.timeout)!==null&&u!==void 0?u:1/0,y=Date.now()+g,_=[{oldPos:-1,lastComponent:void 0}];let E=this.extractCommon(_[0],a,n,0,r);if(_[0].oldPos+1>=h&&E+1>=d)return f(this.buildValues(_[0].lastComponent,a,n));let w=-1/0,N=1/0;const D=()=>{for(let L=Math.max(w,-m);L<=Math.min(N,m);L+=2){let T;const U=_[L-1],q=_[L+1];U&&(_[L-1]=void 0);let V=!1;if(q){const P=q.oldPos-L;V=q&&0<=P&&P<d}const M=U&&U.oldPos+1<h;if(!V&&!M){_[L]=void 0;continue}if(!M||V&&U.oldPos<q.oldPos?T=this.addToPath(q,!0,!1,0,r):T=this.addToPath(U,!1,!0,1,r),E=this.extractCommon(T,a,n,L,r),T.oldPos+1>=h&&E+1>=d)return f(this.buildValues(T.lastComponent,a,n))||!0;_[L]=T,T.oldPos+1>=h&&(N=Math.min(N,L-1)),E+1>=d&&(w=Math.max(w,L+1))}m++};if(s)(function L(){setTimeout(function(){if(m>v||Date.now()>y)return s(void 0);D()||L()},0)})();else for(;m<=v&&Date.now()<=y;){const L=D();if(L)return L}}addToPath(n,a,r,s,u){const f=n.lastComponent;return f&&!u.oneChangePerToken&&f.added===a&&f.removed===r?{oldPos:n.oldPos+s,lastComponent:{count:f.count+1,added:a,removed:r,previousComponent:f.previousComponent}}:{oldPos:n.oldPos+s,lastComponent:{count:1,added:a,removed:r,previousComponent:f}}}extractCommon(n,a,r,s,u){const f=a.length,d=r.length;let h=n.oldPos,m=h-s,v=0;for(;m+1<f&&h+1<d&&this.equals(r[h+1],a[m+1],u);)m++,h++,v++,u.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return v&&!u.oneChangePerToken&&(n.lastComponent={count:v,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=h,m}equals(n,a,r){return r.comparator?r.comparator(n,a):n===a||!!r.ignoreCase&&n.toLowerCase()===a.toLowerCase()}removeEmpty(n){const a=[];for(let r=0;r<n.length;r++)n[r]&&a.push(n[r]);return a}castInput(n,a){return n}tokenize(n,a){return Array.from(n)}join(n){return n.join("")}postProcess(n,a){return n}get useLongestToken(){return!1}buildValues(n,a,r){const s=[];let u;for(;n;)s.push(n),u=n.previousComponent,delete n.previousComponent,n=u;s.reverse();const f=s.length;let d=0,h=0,m=0;for(;d<f;d++){const v=s[d];if(v.removed)v.value=this.join(r.slice(m,m+v.count)),m+=v.count;else{if(!v.added&&this.useLongestToken){let g=a.slice(h,h+v.count);g=g.map(function(y,_){const E=r[m+_];return E.length>y.length?E:y}),v.value=this.join(g)}else v.value=this.join(a.slice(h,h+v.count));h+=v.count,v.added||(m+=v.count)}}return s}}class W2 extends ld{}const J2=new W2;function eT(i,n,a){return J2.diff(i,n,a)}const E0="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class tT extends ld{tokenize(n){const a=new RegExp(`(\\r?\\n)|[${E0}]+|[^\\S\\n\\r]+|[^${E0}]`,"ug");return n.match(a)||[]}}const nT=new tT;function iT(i,n,a){return nT.diff(i,n,a)}class aT extends ld{constructor(){super(...arguments),this.tokenize=rT}equals(n,a,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`
1900
- `))&&(n=n.trim()),(!r.newlineIsToken||!a.includes(`
1901
- `))&&(a=a.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`
1902
- `)&&(n=n.slice(0,-1)),a.endsWith(`
1903
- `)&&(a=a.slice(0,-1))),super.equals(n,a,r)}}const lT=new aT;function C0(i,n,a){return lT.diff(i,n,a)}function rT(i,n){n.stripTrailingCr&&(i=i.replace(/\r\n/g,`
1904
- `));const a=[],r=i.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let s=0;s<r.length;s++){const u=r[s];s%2&&!n.newlineIsToken?a[a.length-1]+=u:a.push(u)}return a}const oT={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function A0(i,n,a,r,s,u,f){let d;f?typeof f=="function"?d={callback:f}:d=f:d={},typeof d.context>"u"&&(d.context=4);const h=d.context;if(d.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(d.callback){const{callback:v}=d;C0(a,r,Object.assign(Object.assign({},d),{callback:g=>{const y=m(g);v(y)}}))}else return m(C0(a,r,d));function m(v){if(!v)return;v.push({value:"",lines:[]});function g(L){return L.map(function(T){return" "+T})}const y=[];let _=0,E=0,w=[],N=1,D=1;for(let L=0;L<v.length;L++){const T=v[L],U=T.lines||uT(T.value);if(T.lines=U,T.added||T.removed){if(!_){const q=v[L-1];_=N,E=D,q&&(w=h>0?g(q.lines.slice(-h)):[],_-=w.length,E-=w.length)}for(const q of U)w.push((T.added?"+":"-")+q);T.added?D+=U.length:N+=U.length}else{if(_)if(U.length<=h*2&&L<v.length-2)for(const q of g(U))w.push(q);else{const q=Math.min(U.length,h);for(const M of g(U.slice(0,q)))w.push(M);const V={oldStart:_,oldLines:N-_+q,newStart:E,newLines:D-E+q,lines:w};y.push(V),_=0,E=0,w=[]}N+=U.length,D+=U.length}}for(const L of y)for(let T=0;T<L.lines.length;T++)L.lines[T].endsWith(`
1905
- `)?L.lines[T]=L.lines[T].slice(0,-1):(L.lines.splice(T+1,0,"\"),T++);return{oldFileName:i,newFileName:n,oldHeader:s,newHeader:u,hunks:y}}}function Hf(i,n){if(n||(n=oT),Array.isArray(i)){if(i.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return i.map(r=>Hf(r,n)).join(`
1906
- `)}const a=[];n.includeIndex&&i.oldFileName==i.newFileName&&a.push("Index: "+i.oldFileName),n.includeUnderline&&a.push("==================================================================="),n.includeFileHeaders&&(a.push("--- "+i.oldFileName+(typeof i.oldHeader>"u"?"":" "+i.oldHeader)),a.push("+++ "+i.newFileName+(typeof i.newHeader>"u"?"":" "+i.newHeader)));for(let r=0;r<i.hunks.length;r++){const s=i.hunks[r];s.oldLines===0&&(s.oldStart-=1),s.newLines===0&&(s.newStart-=1),a.push("@@ -"+s.oldStart+","+s.oldLines+" +"+s.newStart+","+s.newLines+" @@");for(const u of s.lines)a.push(u)}return a.join(`
1907
- `)+`
1908
- `}function sT(i,n,a,r,s,u,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;A0(i,n,a,r,s,u,Object.assign(Object.assign({},f),{callback:h=>{d(h?Hf(h,f.headerOptions):void 0)}}))}else{const d=A0(i,n,a,r,s,u,f);return d?Hf(d,f==null?void 0:f.headerOptions):void 0}}function uT(i){const n=i.endsWith(`
1909
- `),a=i.split(`
1910
- `).map(r=>r+`
1911
- `);return n?a.pop():a.push(a.pop().slice(0,-1)),a}function T0({line:i,spanStart:n,spanLength:a}){return{start:{line:i,character:n},end:{line:i,character:n+a},properties:{"data-diff-span":""},alwaysWrap:!0}}function Ho({item:i,arr:n,enableJoin:a,isNeutral:r=!1,isLastItem:s=!1}){const u=n[n.length-1];if(u==null||s||!a){n.push([r?0:1,i.value]);return}const f=u[0]===0;if(r===f||r&&i.value.length===1&&!f){u[1]+=i.value;return}n.push([r?0:1,i.value])}function ls({diff:i,diffStyle:n,startingLine:a=0,totalLines:r=1/0,expandedHunks:s,collapsedContextThreshold:u=ja,callback:f}){const d={finalHunk:i.hunks.at(-1),viewportStart:a,viewportEnd:a+r,isWindowedHighlight:a>0||r<1/0,splitCount:0,unifiedCount:0,shouldBreak(){if(!d.isWindowedHighlight)return!1;const v=d.unifiedCount>=a+r,g=d.splitCount>=a+r;return n==="unified"?v:(n==="split"||v)&&g},shouldSkip(v,g){if(!d.isWindowedHighlight)return!1;const y=d.unifiedCount+v<a,_=d.splitCount+g<a;return n==="unified"?y:(n==="split"||y)&&_},incrementCounts(v,g){(n==="unified"||n==="both")&&(d.unifiedCount+=v),(n==="split"||n==="both")&&(d.splitCount+=g)},isInWindow(v,g){if(!d.isWindowedHighlight)return!0;const y=d.isInUnifiedWindow(v),_=d.isInSplitWindow(g);return n==="unified"?y:n==="split"?_:y||_},isInUnifiedWindow(v){return!d.isWindowedHighlight||d.unifiedCount>=a-v&&d.unifiedCount<a+r},isInSplitWindow(v){return!d.isWindowedHighlight||d.splitCount>=a-v&&d.splitCount<a+r},emit(v,g=!1){return g||(n==="unified"?d.incrementCounts(1,0):n==="split"?d.incrementCounts(0,1):d.incrementCounts(1,1)),f(v)??!1}};e:for(const[v,g]of i.hunks.entries()){let w=function(P,Z){return _==null||_.collapsedLines<=0||_.fromStart+_.fromEnd>0?0:n==="unified"?P===g.unifiedLineStart+g.unifiedLineCount-1?_.collapsedLines:0:Z===g.splitLineStart+g.splitLineCount-1?_.collapsedLines:0},N=function(){if(y.collapsedLines===0)return 0;const P=y.collapsedLines;return y.collapsedLines=0,P};var h=w,m=N;if(d.shouldBreak())break;const y=x0(i.isPartial,g.collapsedBefore,s,v,u),_=(()=>{if(g!==d.finalHunk||!cT(i))return;const P=i.additionLines.length-(g.additionLineIndex+g.additionCount),Z=i.deletionLines.length-(g.deletionLineIndex+g.deletionCount);if(P!==Z)throw new Error(`iterateOverDiff: trailing context mismatch (additions=${P}, deletions=${Z}) for ${i.name}`);const ee=Math.min(P,Z);return x0(i.isPartial,ee,s,i.hunks.length,u)})(),E=y.fromStart+y.fromEnd;if(d.shouldSkip(E,E))d.incrementCounts(E,E),N();else{let P=g.unifiedLineStart-y.rangeSize,Z=g.splitLineStart-y.rangeSize,ee=g.deletionLineIndex-y.rangeSize,ae=g.additionLineIndex-y.rangeSize,re=g.deletionStart-y.rangeSize,he=g.additionStart-y.rangeSize,le=0;for(;le<y.fromStart;){if(d.isInWindow(0,0)){if(d.emit({hunkIndex:v,hunk:g,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:re+le,lineIndex:ee+le,noEOFCR:!1,unifiedLineIndex:P+le,splitLineIndex:Z+le},additionLine:{unifiedLineIndex:P+le,splitLineIndex:Z+le,lineIndex:ae+le,lineNumber:he+le,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);le++}for(P=g.unifiedLineStart-y.fromEnd,Z=g.splitLineStart-y.fromEnd,ee=g.deletionLineIndex-y.fromEnd,ae=g.additionLineIndex-y.fromEnd,re=g.deletionStart-y.fromEnd,he=g.additionStart-y.fromEnd,le=0;le<y.fromEnd;){if(d.isInWindow(0,0)){if(d.emit({hunkIndex:v,hunk:g,collapsedBefore:N(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:re+le,lineIndex:ee+le,noEOFCR:!1,unifiedLineIndex:P+le,splitLineIndex:Z+le},additionLine:{unifiedLineIndex:P+le,splitLineIndex:Z+le,lineIndex:ae+le,lineNumber:he+le,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);le++}}let D=g.unifiedLineStart,L=g.splitLineStart,T=g.deletionLineIndex,U=g.additionLineIndex,q=g.deletionStart,V=g.additionStart;const M=g.hunkContent.at(-1);for(const P of g.hunkContent){if(d.shouldBreak())break e;const Z=P===M;if(P.type==="context"){if(d.shouldSkip(P.lines,P.lines))d.incrementCounts(P.lines,P.lines),N();else{let ee=0;for(;ee<P.lines;){if(d.isInWindow(0,0)){const ae=Z&&ee===P.lines-1,re=D+ee,he=L+ee;if(d.emit({hunkIndex:v,hunk:g,collapsedBefore:N(),collapsedAfter:w(re,he),type:"context",deletionLine:{lineNumber:q+ee,lineIndex:T+ee,noEOFCR:ae&&g.noEOFCRDeletions,unifiedLineIndex:re,splitLineIndex:he},additionLine:{unifiedLineIndex:re,splitLineIndex:he,lineIndex:U+ee,lineNumber:V+ee,noEOFCR:ae&&g.noEOFCRAdditions}}))break e}else d.incrementCounts(1,1);ee++}}D+=P.lines,L+=P.lines,T+=P.lines,U+=P.lines,q+=P.lines,V+=P.lines}else{const ee=Math.max(P.deletions,P.additions),ae=P.deletions+P.additions;if(!d.shouldSkip(ae,ee)){const re=fT(d,P,n);for(const[he,le]of re)for(let Ce=he;Ce<le;Ce++){const B=w(D+Ce,n==="unified"?L+(Ce<P.deletions?Ce:Ce-P.deletions):L+Ce);if(d.emit(dT({hunkIndex:v,hunk:g,collapsedBefore:N(),collapsedAfter:B,diffStyle:n,index:Ce,unifiedLineIndex:D,splitLineIndex:L,additionLineIndex:U,deletionLineIndex:T,additionLineNumber:V,deletionLineNumber:q,content:P,isLastContent:Z,unifiedCount:ae,splitCount:ee}),!0))break e}}N(),d.incrementCounts(ae,ee),D+=ae,L+=ee,T+=P.deletions,U+=P.additions,q+=P.deletions,V+=P.additions}}if(_!=null){const{collapsedLines:P,fromStart:Z,fromEnd:ee}=_,ae=Z+ee;let re=0;for(;re<ae;){if(d.shouldBreak())break e;if(d.isInWindow(0,0)){const he=re===ae-1;if(d.emit({hunkIndex:i.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:he?P:0,type:"context-expanded",deletionLine:{lineNumber:q+re,lineIndex:T+re,noEOFCR:!1,unifiedLineIndex:D+re,splitLineIndex:L+re},additionLine:{unifiedLineIndex:D+re,splitLineIndex:L+re,lineIndex:U+re,lineNumber:V+re,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);re++}}}}function x0(i,n,a,r,s){if(n=Math.max(n,0),n===0||i)return{fromStart:0,fromEnd:0,rangeSize:n,collapsedLines:Math.max(n,0)};if(a===!0||n<=s)return{fromStart:n,fromEnd:0,rangeSize:n,collapsedLines:0};const u=a==null?void 0:a.get(r),f=Math.min(Math.max((u==null?void 0:u.fromStart)??0,0),n),d=Math.min(Math.max((u==null?void 0:u.fromEnd)??0,0),n),h=f+d,m=h>=n;return{fromStart:m?n:f,fromEnd:m?0:d,rangeSize:n,collapsedLines:Math.max(n-h,0)}}function cT(i){const n=i.hunks.at(-1);return n==null||i.isPartial||i.additionLines.length===0||i.deletionLines.length===0?!1:n.additionLineIndex+n.additionCount<i.additionLines.length||n.deletionLineIndex+n.deletionCount<i.deletionLines.length}function fT(i,n,a){if(!i.isWindowedHighlight)return[[0,a==="unified"?n.deletions+n.additions:Math.max(n.deletions,n.additions)]];const r=a!=="split",s=a!=="unified",u=a==="unified"?"unified":"split",f=[];function d(g,y){if(g+y<=i.viewportStart||g>=i.viewportEnd)return;const _=Math.max(0,i.viewportStart-g),E=Math.min(y,i.viewportEnd-g);return E>_?[_,E]:void 0}function h(g,y){return u==="split"?g:y==="additions"?[g[0]+n.deletions,g[1]+n.deletions]:g}function m(g,y){if(g==null)return;const[_,E]=h(g,y);E>_&&f.push([_,E])}if(r&&(m(d(i.unifiedCount,n.deletions),"deletions"),m(d(i.unifiedCount+n.deletions,n.additions),"additions")),s&&(m(d(i.splitCount,n.deletions),"deletions"),m(d(i.splitCount,n.additions),"additions")),f.length===0)return f;f.sort((g,y)=>g[0]-y[0]);const v=[f[0]];for(const[g,y]of f.slice(1)){const _=v[v.length-1];g<=_[1]?_[1]=Math.max(_[1],y):v.push([g,y])}return v}function dT({hunkIndex:i,hunk:n,collapsedAfter:a,collapsedBefore:r,diffStyle:s,index:u,unifiedLineIndex:f,splitLineIndex:d,additionLineIndex:h,deletionLineIndex:m,additionLineNumber:v,deletionLineNumber:g,content:y,isLastContent:_,unifiedCount:E,splitCount:w}){const N=u<y.deletions?f+u:void 0,D=s==="unified"?u>=y.deletions?f+u:void 0:u<y.additions?f+y.deletions+u:void 0,L=s==="unified"?d+(u<y.deletions?u:u-y.deletions):d+u,T=u<y.deletions?m+u:void 0,U=u<y.deletions?g+u:void 0,q=s==="unified"?u>=y.deletions?h+(u-y.deletions):void 0:u<y.additions?h+u:void 0,V=s==="unified"?u>=y.deletions?v+(u-y.deletions):void 0:u<y.additions?v+u:void 0,M=s==="unified"?_&&u===y.deletions-1&&n.noEOFCRDeletions:_&&u===w-1&&n.noEOFCRDeletions,P=s==="unified"?_&&u===E-1&&n.noEOFCRAdditions:_&&u===w-1&&n.noEOFCRAdditions,Z=T!=null&&U!=null&&N!=null?{lineNumber:U,lineIndex:T,noEOFCR:M,unifiedLineIndex:N,splitLineIndex:L}:void 0,ee=q!=null&&V!=null&&D!=null?{unifiedLineIndex:D,splitLineIndex:L,lineIndex:q,lineNumber:V,noEOFCR:P}:void 0;if(Z==null&&ee!=null)return{type:"change",hunkIndex:i,hunk:n,collapsedAfter:a,collapsedBefore:r,deletionLine:void 0,additionLine:ee};if(Z!=null&&ee==null)return{type:"change",hunkIndex:i,hunk:n,collapsedAfter:a,collapsedBefore:r,deletionLine:Z,additionLine:void 0};if(Z==null||ee==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:i,hunk:n,collapsedAfter:a,collapsedBefore:r,deletionLine:Z,additionLine:ee}}const hT={forcePlainText:!1};function pT(i,n,a,{forcePlainText:r,startingLine:s,totalLines:u,expandedHunks:f,collapsedContextThreshold:d=ja}=hT){r?(s??(s=0),u??(u=1/0)):(s=0,u=1/0);const h=s>0||u<1/0,m=typeof a.theme=="string"?n.getTheme(a.theme).type:void 0,v=D2({theme:a.theme,highlighter:n}),g=r&&!h&&(i.unifiedLineCount>1e3||i.splitLineCount>1e3)?"none":a.lineDiffType,y={deletionLines:[],additionLines:[]},{maxLineDiffLength:_}=a,E=!r&&!i.isPartial,w=r?f:void 0,N=new Map;function D(T){const U=E?0:T,q=N.get(U)??gT();return N.set(U,q),q}function L(T,U,q,V){if(h){let M=q.at(-1);(M==null||M.targetIndex+M.count!==U)&&(M={targetIndex:U,originalOffset:V.length,count:0},q.push(M)),M.count++}V.push(T)}ls({diff:i,diffStyle:"both",startingLine:s,totalLines:u,expandedHunks:h?w:!0,collapsedContextThreshold:d,callback:({hunkIndex:T,additionLine:U,deletionLine:q,type:V})=>{const M=D(T),P=U!=null?U.splitLineIndex:q.splitLineIndex;V==="change"&&U!=null&&q!=null&&mT({additionLine:i.additionLines[U.lineIndex],deletionLine:i.deletionLines[q.lineIndex],deletionLineIndex:M.deletionContent.length,additionLineIndex:M.additionContent.length,deletionDecorations:M.deletionDecorations,additionDecorations:M.additionDecorations,lineDiffType:g,maxLineDiffLength:_}),q!=null&&(L(i.deletionLines[q.lineIndex],q.lineIndex,M.deletionSegments,M.deletionContent),M.deletionInfo.push({type:V==="change"?"change-deletion":V,lineNumber:q.lineNumber,altLineNumber:V==="change"?void 0:U.lineNumber??void 0,lineIndex:`${q.unifiedLineIndex},${P}`})),U!=null&&(L(i.additionLines[U.lineIndex],U.lineIndex,M.additionSegments,M.additionContent),M.additionInfo.push({type:V==="change"?"change-addition":V,lineNumber:U.lineNumber,altLineNumber:V==="change"?void 0:q.lineNumber??void 0,lineIndex:`${U.unifiedLineIndex},${P}`}))}});for(const T of N.values()){if(T.deletionContent.length===0&&T.additionContent.length===0)continue;const U={name:i.prevName??i.name,contents:T.deletionContent.value},q={name:i.name,contents:T.additionContent.value},{deletionLines:V,additionLines:M}=vT({deletionFile:U,deletionInfo:T.deletionInfo,deletionDecorations:T.deletionDecorations,additionFile:q,additionInfo:T.additionInfo,additionDecorations:T.additionDecorations,highlighter:n,options:a,languageOverride:r?"text":i.lang});if(E){y.deletionLines=V,y.additionLines=M;continue}if(T.deletionSegments.length>0)for(const P of T.deletionSegments)for(let Z=0;Z<P.count;Z++)y.deletionLines[P.targetIndex+Z]=V[P.originalOffset+Z];else y.deletionLines.push(...V);if(T.additionSegments.length>0)for(const P of T.additionSegments)for(let Z=0;Z<P.count;Z++)y.additionLines[P.targetIndex+Z]=M[P.originalOffset+Z];else y.additionLines.push(...M)}return{code:y,themeStyles:v,baseThemeType:m}}function mT({deletionLine:i,additionLine:n,deletionLineIndex:a,additionLineIndex:r,deletionDecorations:s,additionDecorations:u,lineDiffType:f,maxLineDiffLength:d}){if(i==null||n==null||f==="none"||(i=Qa(i),n=Qa(n),i.length>d||n.length>d))return;const h=f==="char"?eT(i,n):iT(i,n),m=[],v=[],g=f==="word-alt",y=h.at(-1);for(const E of h){const w=E===y;!E.added&&!E.removed?(Ho({item:E,arr:m,enableJoin:g,isNeutral:!0,isLastItem:w}),Ho({item:E,arr:v,enableJoin:g,isNeutral:!0,isLastItem:w})):E.removed?Ho({item:E,arr:m,enableJoin:g,isLastItem:w}):Ho({item:E,arr:v,enableJoin:g,isLastItem:w})}let _=0;for(const E of m)E[0]===1&&s.push(T0({line:a,spanStart:_,spanLength:E[1].length})),_+=E[1].length;_=0;for(const E of v)E[0]===1&&u.push(T0({line:r,spanStart:_,spanLength:E[1].length})),_+=E[1].length}function gT(){return{deletionContent:{push(i){this.value+=i,this.length++},value:"",length:0},additionContent:{push(i){this.value+=i,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]}}function vT({deletionFile:i,additionFile:n,deletionInfo:a,additionInfo:r,highlighter:s,deletionDecorations:u,additionDecorations:f,languageOverride:d,options:{theme:h=_n,...m}}){const v=d??Xa(i.name),g=d??Xa(n.name),{state:y,transformers:_}=k2(m.useTokenTransformer),E=typeof h=="string"?{...m,lang:"text",theme:h,transformers:_,decorations:void 0,defaultColor:!1,cssVariablePrefix:un("token")}:{...m,lang:"text",themes:h,transformers:_,decorations:void 0,defaultColor:!1,cssVariablePrefix:un("token")};return{deletionLines:i.contents===""?[]:(E.lang=v,y.lineInfo=a,E.decorations=u,y0(s.codeToHast(Qa(i.contents),E))),additionLines:n.contents===""?[]:(E.lang=g,E.decorations=f,y.lineInfo=r,y0(s.codeToHast(Qa(n.contents),E)))}}function bT(i){const n=i.lang??Xa(i.name),a=i.lang??(i.prevName!=null?Xa(i.prevName):"text");return n==="text"&&a==="text"}let yT=-1;var _T=class{constructor(i={theme:_n},n,a){x(this,"__id",`diff-hunks-renderer:${++yT}`);x(this,"highlighter");x(this,"diff");x(this,"expandedHunks",new Map);x(this,"deletionAnnotations",{});x(this,"additionAnnotations",{});x(this,"computedLang","text");x(this,"renderCache");this.options=i,this.onRenderUpdate=n,this.workerManager=a,(a==null?void 0:a.isWorkingPool())!==!0&&(this.highlighter=lf(i.theme??_n)?p2():void 0)}cleanUp(){var i;this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,(i=this.workerManager)==null||i.cleanUpPendingTasks(this),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){var i;this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,(i=this.workerManager)==null||i.cleanUpPendingTasks(this)}setOptions(i){this.options=i}mergeOptions(i){this.options={...this.options,...i}}expandHunk(i,n,a=this.getOptionsWithDefaults().expansionLineCount){var s;const r={...this.expandedHunks.get(i)??{fromStart:0,fromEnd:0}};(n==="up"||n==="both")&&(r.fromStart+=a),(n==="down"||n==="both")&&(r.fromEnd+=a),((s=this.renderCache)==null?void 0:s.highlighted)!==!0&&(this.renderCache=void 0),this.expandedHunks.set(i,r)}getExpandedHunk(i){return this.expandedHunks.get(i)??J_}getExpandedHunksMap(){return this.expandedHunks}setLineAnnotations(i){this.additionAnnotations={},this.deletionAnnotations={};for(const n of i){const a=(()=>{switch(n.side){case"deletions":return this.deletionAnnotations;case"additions":return this.additionAnnotations}})(),r=a[n.lineNumber]??[];a[n.lineNumber]=r,r.push(n)}}getUnifiedLineDecoration({lineType:i}){return{gutterLineType:i}}getSplitLineDecoration({side:i,type:n}){return n!=="change"?{gutterLineType:n}:{gutterLineType:i==="deletions"?"change-deletion":"change-addition"}}createAnnotationElement(i){return g2(i)}getOptionsWithDefaults(){var T;const{diffIndicators:i="bars",diffStyle:n="split",disableBackground:a=!1,disableFileHeader:r=!1,disableLineNumbers:s=!1,disableVirtualizationBuffers:u=!1,collapsed:f=!1,expandUnchanged:d=!1,collapsedContextThreshold:h=ja,expansionLineCount:m=100,hunkSeparators:v="line-info",lineDiffType:g="word-alt",maxLineDiffLength:y=1e3,overflow:_="scroll",theme:E=_n,headerRenderMode:w="default",tokenizeMaxLineLength:N=1e3,useTokenTransformer:D=!1,useCSSClasses:L=!1}=this.options;return{diffIndicators:i,diffStyle:n,disableBackground:a,disableFileHeader:r,disableLineNumbers:s,disableVirtualizationBuffers:u,collapsed:f,expandUnchanged:d,collapsedContextThreshold:h,expansionLineCount:m,hunkSeparators:v,lineDiffType:g,maxLineDiffLength:y,overflow:_,theme:((T=this.workerManager)==null?void 0:T.getDiffRenderOptions().theme)??E,headerRenderMode:w,tokenizeMaxLineLength:N,useTokenTransformer:D,useCSSClasses:L}}async initializeHighlighter(){return this.highlighter=await h2(C2(this.computedLang,this.options)),this.highlighter}hydrate(i){var r,s;if(i==null)return;this.diff=i;const{options:n}=this.getRenderOptions(i);let a=(r=this.workerManager)==null?void 0:r.getDiffResultCache(i);a!=null&&!uf(n,a.options)&&(a=void 0),this.renderCache??(this.renderCache={diff:i,highlighted:!bT(i),options:n,result:a==null?void 0:a.result,renderRange:void 0}),((s=this.workerManager)==null?void 0:s.isWorkingPool())===!0&&this.renderCache.result==null&&this.workerManager.highlightDiffAST(this,this.diff)}getRenderOptions(i){const n=(()=>{var d;if(((d=this.workerManager)==null?void 0:d.isWorkingPool())===!0)return this.workerManager.getDiffRenderOptions();const{theme:r,tokenizeMaxLineLength:s,lineDiffType:u,maxLineDiffLength:f}=this.getOptionsWithDefaults();return{theme:r,useTokenTransformer:N2(this.options),tokenizeMaxLineLength:s,lineDiffType:u,maxLineDiffLength:f}})();this.getOptionsWithDefaults();const{renderCache:a}=this;return(a==null?void 0:a.result)==null?{options:n,forceRender:!0}:i!==a.diff||!uf(n,a.options)?{options:n,forceRender:!0}:{options:n,forceRender:!1}}renderDiff(i=(a=>(a=this.renderCache)==null?void 0:a.diff)(),n=yg){var h,m;if(i==null)return;const{expandUnchanged:r=!1,collapsedContextThreshold:s}=this.getOptionsWithDefaults(),u=(h=this.workerManager)==null?void 0:h.getDiffResultCache(i);u!=null&&this.renderCache==null&&(this.renderCache={diff:i,highlighted:!0,renderRange:void 0,...u});const{options:f,forceRender:d}=this.getRenderOptions(i);if(this.renderCache??(this.renderCache={diff:i,highlighted:!1,options:f,result:void 0,renderRange:void 0}),((m=this.workerManager)==null?void 0:m.isWorkingPool())===!0)(this.renderCache.result==null||!this.renderCache.highlighted&&(i!==this.renderCache.diff||!Jv(this.renderCache.renderRange,n)))&&(this.renderCache.diff=i,this.renderCache.result=this.workerManager.getPlainDiffAST(i,n.startingLine,n.totalLines,K2(n)||r?!0:this.expandedHunks,s),this.renderCache.renderRange=n),n.totalLines>0&&(!this.renderCache.highlighted||d)&&this.workerManager.highlightDiffAST(this,i);else{this.computedLang=i.lang??Xa(i.name);const v=this.highlighter!=null&&lf(f.theme),g=this.highlighter!=null&&Mg(this.computedLang);if(this.highlighter!=null&&v&&(d||!this.renderCache.highlighted&&g||this.renderCache.result==null)){const{result:y,options:_}=this.renderDiffWithHighlighter(i,this.highlighter,!g);this.renderCache={diff:i,options:_,highlighted:g,result:y,renderRange:void 0}}(!v||!g)&&this.asyncHighlight(i).then(({result:y,options:_})=>{this.onHighlightSuccess(i,y,_)})}return this.renderCache.result!=null?this.processDiffResult(this.renderCache.diff,n,this.renderCache.result):void 0}async asyncRender(i,n=yg){const{result:a}=await this.asyncHighlight(i);return this.processDiffResult(i,n,a)}createPreElement(i,n,a){const{diffIndicators:r,disableBackground:s,disableLineNumbers:u,overflow:f}=this.getOptionsWithDefaults();return S2({type:"diff",diffIndicators:r,disableBackground:s,disableLineNumbers:u,overflow:f,split:i,totalLines:n,customProperties:a})}async asyncHighlight(i){this.computedLang=i.lang??Xa(i.name);const n=this.highlighter!=null&&lf(this.options.theme??_n),a=this.highlighter!=null&&Mg(this.computedLang);return(this.highlighter==null||!n||!a)&&(this.highlighter=await this.initializeHighlighter()),this.renderDiffWithHighlighter(i,this.highlighter)}renderDiffWithHighlighter(i,n,a=!1){const{options:r}=this.getRenderOptions(i),{collapsedContextThreshold:s}=this.getOptionsWithDefaults();return{result:pT(i,n,r,{forcePlainText:a,expandedHunks:a?!0:void 0,collapsedContextThreshold:s}),options:r}}onHighlightSuccess(i,n,a){var s;if(this.renderCache==null)return;const r=!this.renderCache.highlighted||!uf(this.renderCache.options,a)||this.renderCache.diff!==i;this.renderCache={diff:i,options:a,highlighted:!0,result:n,renderRange:void 0},r&&((s=this.onRenderUpdate)==null||s.call(this))}onHighlightError(i){console.error(i)}processDiffResult(i,n,{code:a,themeStyles:r,baseThemeType:s}){const{diffStyle:u,disableFileHeader:f,expandUnchanged:d,expansionLineCount:h,collapsedContextThreshold:m,hunkSeparators:v}=this.getOptionsWithDefaults();this.diff=i;const g=u==="unified";let y=[],_=[],E=[];const w=[],{additionLines:N,deletionLines:D}=a,L={rowCount:0,hunkSeparators:v,additionsContentAST:y,deletionsContentAST:_,unifiedContentAST:E,unifiedGutterAST:wo(),deletionsGutterAST:wo(),additionsGutterAST:wo(),expansionLineCount:h,hunkData:w,incrementRowCount(he=1){L.rowCount+=he},pushToGutter(he,le){switch(he){case"unified":L.unifiedGutterAST.children.push(le);break;case"deletions":L.deletionsGutterAST.children.push(le);break;case"additions":L.additionsGutterAST.children.push(le);break}}},T=ST(i),U={size:0,side:void 0,increment(){this.size+=1},flush(){if(u!=="unified"){if(this.size<=0||this.side==null){this.side=void 0,this.size=0;return}this.side==="additions"?(L.pushToGutter("additions",sn(void 0,"buffer",this.size)),y==null||y.push(Io(this.size))):(L.pushToGutter("deletions",sn(void 0,"buffer",this.size)),_==null||_.push(Io(this.size))),this.size=0,this.side=void 0}}},q=(he,le,Ce,B,Q)=>{L.pushToGutter(he,n1(le,Ce,B,Q))};function V(he){U.flush(),u==="unified"?ff("unified",he,L):(ff("deletions",he,L),ff("additions",he,L))}ls({diff:i,diffStyle:u,startingLine:n.startingLine,totalLines:n.totalLines,expandedHunks:d?!0:this.expandedHunks,collapsedContextThreshold:m,callback:({hunkIndex:he,hunk:le,collapsedBefore:Ce,collapsedAfter:B,additionLine:Q,deletionLine:W,type:fe})=>{var de,we;const xe=W!=null?W.splitLineIndex:Q.splitLineIndex,R=Q!=null?Q.unifiedLineIndex:W.unifiedLineIndex;u==="split"&&fe!=="change"&&U.flush(),Ce>0&&V({hunkIndex:he,collapsedLines:Ce,rangeSize:Math.max((le==null?void 0:le.collapsedBefore)??0,0),hunkSpecs:le==null?void 0:le.hunkSpecs,isFirstHunk:he===0,isLastHunk:!1,isExpandable:!i.isPartial});const Y=u==="unified"?R:xe,J={type:fe,hunkIndex:he,lineIndex:Y,unifiedLineIndex:R,splitLineIndex:xe,deletionLine:W,additionLine:Q};if(u==="unified"){const pe=(de=this.getUnifiedInjectedRowsForLine)==null?void 0:de.call(this,J);(pe==null?void 0:pe.before)!=null&&L0(pe.before,L);let Le=W!=null?D[W.lineIndex]:void 0,qe=Q!=null?N[Q.lineIndex]:void 0;if(Le==null&&qe==null){const _t="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(_t,{file:i.name}),new Error(_t)}const Rt=fe==="change"?Q!=null?"change-addition":"change-deletion":fe,pt=this.getUnifiedLineDecoration({type:fe,lineType:Rt,additionLineIndex:Q==null?void 0:Q.lineIndex,deletionLineIndex:W==null?void 0:W.lineIndex});q("unified",pt.gutterLineType,Q!=null?Q.lineNumber:W.lineNumber,`${R},${xe}`,pt.gutterProperties),qe!=null?qe=Vo(qe,pt.contentProperties):Le!=null&&(Le=Vo(Le,pt.contentProperties)),R0({diffStyle:"unified",type:fe,deletionLine:Le,additionLine:qe,unifiedSpan:this.getAnnotations("unified",W==null?void 0:W.lineNumber,Q==null?void 0:Q.lineNumber,he,Y),createAnnotationElement:_t=>this.createAnnotationElement(_t),context:L}),(pe==null?void 0:pe.after)!=null&&L0(pe.after,L)}else{const pe=(we=this.getSplitInjectedRowsForLine)==null?void 0:we.call(this,J);(pe==null?void 0:pe.before)!=null&&k0(pe.before,L,U);let Le=W!=null?D[W.lineIndex]:void 0,qe=Q!=null?N[Q.lineIndex]:void 0;const Rt=this.getSplitLineDecoration({side:"deletions",type:fe,lineIndex:W==null?void 0:W.lineIndex}),pt=this.getSplitLineDecoration({side:"additions",type:fe,lineIndex:Q==null?void 0:Q.lineIndex});if(Le==null&&qe==null){const St="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(St,{file:i.name}),new Error(St)}const _t=(()=>{if(fe==="change"){if(qe==null)return"additions";if(Le==null)return"deletions"}})();if(_t!=null){if(U.side!=null&&U.side!==_t)throw new Error("DiffHunksRenderer.processDiffResult: iterateOverDiff, invalid pending splits");U.side=_t,U.increment()}const dn=this.getAnnotations("split",W==null?void 0:W.lineNumber,Q==null?void 0:Q.lineNumber,he,Y);if(dn!=null&&U.size>0&&U.flush(),W!=null){const St=Vo(Le,Rt.contentProperties);q("deletions",Rt.gutterLineType,W.lineNumber,`${W.unifiedLineIndex},${xe}`,Rt.gutterProperties),St!=null&&(Le=St)}if(Q!=null){const St=Vo(qe,pt.contentProperties);q("additions",pt.gutterLineType,Q.lineNumber,`${Q.unifiedLineIndex},${xe}`,pt.gutterProperties),St!=null&&(qe=St)}R0({diffStyle:"split",type:fe,additionLine:qe,deletionLine:Le,...dn,createAnnotationElement:St=>this.createAnnotationElement(St),context:L}),(pe==null?void 0:pe.after)!=null&&k0(pe.after,L,U)}const te=(W==null?void 0:W.noEOFCR)??!1,se=(Q==null?void 0:Q.noEOFCR)??!1;if(se||te){if(te){const pe=fe==="context"||fe==="context-expanded"?fe:"change-deletion";u==="unified"?(L.unifiedContentAST.push(Uo(pe)),L.pushToGutter("unified",sn(pe,"metadata",1))):(L.deletionsContentAST.push(Uo(pe)),L.pushToGutter("deletions",sn(pe,"metadata",1)),se||(L.pushToGutter("additions",sn(void 0,"buffer",1)),L.additionsContentAST.push(Io(1))))}if(se){const pe=fe==="context"||fe==="context-expanded"?fe:"change-addition";u==="unified"?(L.unifiedContentAST.push(Uo(pe)),L.pushToGutter("unified",sn(pe,"metadata",1))):(L.additionsContentAST.push(Uo(pe)),L.pushToGutter("additions",sn(pe,"metadata",1)),te||(L.pushToGutter("deletions",sn(void 0,"buffer",1)),L.deletionsContentAST.push(Io(1))))}L.incrementRowCount(1)}B>0&&v!=="simple"&&V({hunkIndex:fe==="context-expanded"?he:he+1,collapsedLines:B,rangeSize:T,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,isExpandable:!i.isPartial}),L.incrementRowCount(1)}}),u==="split"&&U.flush();const M=Math.max(Z2(i.hunks),i.additionLines.length??0,i.deletionLines.length??0),P=n.bufferBefore>0||n.bufferAfter>0,Z=!g&&i.type!=="deleted",ee=!g&&i.type!=="new",ae=L.rowCount>0||P;y=Z&&ae?y:void 0,_=ee&&ae?_:void 0,E=g&&ae?E:void 0;const re=this.createPreElement(_!=null&&y!=null,M);return{unifiedGutterAST:g&&ae?L.unifiedGutterAST.children:void 0,unifiedContentAST:E,deletionsGutterAST:ee&&ae?L.deletionsGutterAST.children:void 0,deletionsContentAST:_,additionsGutterAST:Z&&ae?L.additionsGutterAST.children:void 0,additionsContentAST:y,hunkData:w,preNode:re,themeStyles:r,baseThemeType:s,headerElement:f?void 0:this.renderHeader(this.diff),totalLines:M,rowCount:L.rowCount,bufferBefore:n.bufferBefore,bufferAfter:n.bufferAfter,css:""}}renderCodeAST(i,n){const a=i==="unified"?n.unifiedGutterAST:i==="deletions"?n.deletionsGutterAST:n.additionsGutterAST,r=i==="unified"?n.unifiedContentAST:i==="deletions"?n.deletionsContentAST:n.additionsContentAST;if(a==null||r==null)return;const s=wo(a);return s.properties.style=`grid-row: span ${n.rowCount}`,[s,O2(r,n.rowCount)]}renderFullAST(i,n=[]){const a=this.getOptionsWithDefaults().hunkSeparators==="line-info",r=this.renderCodeAST("unified",i);if(r!=null)return n.push(_e({tagName:"code",children:r,properties:{"data-code":"","data-container-size":a?"":void 0,"data-unified":""}})),{...i.preNode,children:n};const s=this.renderCodeAST("deletions",i);s!=null&&n.push(_e({tagName:"code",children:s,properties:{"data-code":"","data-container-size":a?"":void 0,"data-deletions":""}}));const u=this.renderCodeAST("additions",i);return u!=null&&n.push(_e({tagName:"code",children:u,properties:{"data-code":"","data-container-size":a?"":void 0,"data-additions":""}})),{...i.preNode,children:n}}renderFullHTML(i,n=[]){return qa(this.renderFullAST(i,n))}renderPartialHTML(i,n){return n==null?qa(i):qa(_e({tagName:"code",children:i,properties:{"data-code":"","data-container-size":this.getOptionsWithDefaults().hunkSeparators==="line-info"?"":void 0,[`data-${n}`]:""}}))}getAnnotations(i,n,a,r,s){const u={type:"annotation",hunkIndex:r,lineIndex:s,annotations:[]};if(n!=null)for(const d of this.deletionAnnotations[n]??[])u.annotations.push(ar(d));const f={type:"annotation",hunkIndex:r,lineIndex:s,annotations:[]};if(a!=null)for(const d of this.additionAnnotations[a]??[])(i==="unified"?u:f).annotations.push(ar(d));if(i==="unified")return u.annotations.length>0?u:void 0;if(!(f.annotations.length===0&&u.annotations.length===0))return{deletionSpan:u,additionSpan:f}}renderHeader(i){const{headerRenderMode:n}=this.getOptionsWithDefaults();return b2({fileOrDiff:i,mode:n})}};function w0(i){return`${i} unmodified line${i>1?"s":""}`}function L0(i,n){for(const a of i)n.unifiedContentAST.push(a.content),n.pushToGutter("unified",a.gutter),n.incrementRowCount(1)}function k0(i,n,a){for(const{deletion:r,addition:s}of i){if(r==null&&s==null)continue;const u=r!=null&&s!=null?void 0:r==null?"deletions":"additions";(u==null||a.side!==u)&&a.flush(),r!=null&&(n.deletionsContentAST.push(r.content),n.pushToGutter("deletions",r.gutter)),s!=null&&(n.additionsContentAST.push(s.content),n.pushToGutter("additions",s.gutter)),u!=null&&(a.side=u,a.increment()),n.incrementRowCount(1)}}function R0({diffStyle:i,type:n,deletionLine:a,additionLine:r,unifiedSpan:s,deletionSpan:u,additionSpan:f,createAnnotationElement:d,context:h}){let m=!1;if(i==="unified"){if(r!=null?h.unifiedContentAST.push(r):a!=null&&h.unifiedContentAST.push(a),s!=null){const v=n==="change"?a!=null?"change-deletion":"change-addition":n;h.unifiedContentAST.push(d(s)),h.pushToGutter("unified",sn(v,"annotation",1)),m=!0}}else if(i==="split"){if(a!=null&&h.deletionsContentAST.push(a),r!=null&&h.additionsContentAST.push(r),u!=null){const v=n==="change"?a!=null?"change-deletion":"context":n;h.deletionsContentAST.push(d(u)),h.pushToGutter("deletions",sn(v,"annotation",1)),m=!0}if(f!=null){const v=n==="change"?r!=null?"change-addition":"context":n;h.additionsContentAST.push(d(f)),h.pushToGutter("additions",sn(v,"annotation",1)),m=!0}}m&&h.incrementRowCount(1)}function ff(i,{hunkIndex:n,collapsedLines:a,rangeSize:r,hunkSpecs:s,isFirstHunk:u,isLastHunk:f,isExpandable:d},h){if(a<=0)return;const m=i==="unified"?h.unifiedContentAST:i==="deletions"?h.deletionsContentAST:h.additionsContentAST;if(h.hunkSeparators==="metadata"){s!=null&&(h.pushToGutter(i,Ha({type:"metadata",content:s,isFirstHunk:u,isLastHunk:f})),m.push(Ha({type:"metadata",content:s,isFirstHunk:u,isLastHunk:f})),i!=="additions"&&h.incrementRowCount(1));return}if(h.hunkSeparators==="simple"){n>0&&(h.pushToGutter(i,Ha({type:"simple",isFirstHunk:u,isLastHunk:!1})),m.push(Ha({type:"simple",isFirstHunk:u,isLastHunk:!1})),i!=="additions"&&h.incrementRowCount(1));return}const v=F2(i,n),g=r>h.expansionLineCount,y=d?n:void 0;h.pushToGutter(i,Ha({type:h.hunkSeparators,content:w0(a),expandIndex:y,chunked:g,slotName:v,isFirstHunk:u,isLastHunk:f})),m.push(Ha({type:h.hunkSeparators,content:w0(a),expandIndex:y,chunked:g,slotName:v,isFirstHunk:u,isLastHunk:f})),i!=="additions"&&h.incrementRowCount(1),h.hunkData.push({slotName:v,hunkIndex:n,lines:a,type:i,expandable:d?{up:!u,down:!f,chunked:g}:void 0})}function Vo(i,n){return i==null||i.type!=="element"||n==null?i:{...i,properties:{...i.properties,...n}}}function ST(i){const n=i.hunks.at(-1);if(n==null||i.isPartial||i.additionLines.length===0||i.deletionLines.length===0)return 0;const a=i.additionLines.length-(n.additionLineIndex+n.additionCount),r=i.deletionLines.length-(n.deletionLineIndex+n.deletionCount);if(a!==r)throw new Error(`DiffHunksRenderer.processDiffResult: trailing context mismatch (additions=${a}, deletions=${r}) for ${i.name}`);return Math.min(a,r)}function ET(i,n){return i.lineNumber===n.lineNumber&&i.side===n.side&&i.metadata===n.metadata}function CT(i,n){var a,r,s,u,f,d;return i.slotName===n.slotName&&i.hunkIndex===n.hunkIndex&&i.lines===n.lines&&i.type===n.type&&((a=i.expandable)==null?void 0:a.chunked)===((r=n.expandable)==null?void 0:r.chunked)&&((s=i.expandable)==null?void 0:s.up)===((u=n.expandable)==null?void 0:u.up)&&((f=i.expandable)==null?void 0:f.down)===((d=n.expandable)==null?void 0:d.down)}function AT(i){const n=i[0];if(n!=="+"&&n!=="-"&&n!==" "&&n!=="\\"){console.error(`parseLineType: Invalid firstChar: "${n}", full line: "${i}"`);return}const a=i.substring(1);return{line:a===""?`
1912
- `:a,type:n===" "?"context":n==="\\"?"metadata":n==="+"?"addition":"deletion"}}function TT(i,n,a=!1){const r=Go.test(i),s=i.split(r?Go:bg);let u;const f=[];for(const d of s){if(r&&!Go.test(d)){if(u==null)u=d;else{if(a)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",d)}continue}else if(!r&&!bg.test(d)){if(u==null)u=d;else{if(a)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",d)}continue}const h=ib(d,{cacheKey:void 0,isGitDiff:r,throwOnError:a});h!=null&&f.push(h)}return{patchMetadata:u,files:f}}function ib(i,{cacheKey:n,isGitDiff:a=Go.test(i),oldFile:r,newFile:s,throwOnError:u=!1}={}){let f=0;const d=i.split(Y_);let h;const m=r==null||s==null;let v=0,g=0;for(const y of d){const _=y.split(Vc),E=_.shift();if(E==null){if(u)throw Error("parsePatchContent: invalid hunk");console.error("parsePatchContent: invalid hunk",y);continue}const w=E.match(X_);let N=0,D=0;if(w==null||h==null){if(h!=null){if(u)throw Error("parsePatchContent: Invalid hunk");console.error("parsePatchContent: Invalid hunk",y);continue}h={name:"",type:"change",hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:m,additionLines:!m&&r!=null&&s!=null?s.contents.split(Vc):[],deletionLines:!m&&r!=null&&s!=null?r.contents.split(Vc):[],cacheKey:n},h.additionLines.length===1&&(s==null?void 0:s.contents)===""&&(h.additionLines.length=0),h.deletionLines.length===1&&(r==null?void 0:r.contents)===""&&(h.deletionLines.length=0),_.unshift(E);for(const M of _){const P=M.match(a?F_:Q_);if(M.startsWith("diff --git")){const[,,Z,,ee]=M.trim().match(Z_)??[];h.name=ee.trim(),Z!==ee&&(h.prevName=Z.trim())}else if(P!=null){const[,Z,ee]=P;Z==="---"&&ee!=="/dev/null"?(h.prevName=ee.trim(),h.name=ee.trim()):Z==="+++"&&ee!=="/dev/null"&&(h.name=ee.trim())}else if(a){if(M.startsWith("new mode ")&&(h.mode=M.replace("new mode","").trim()),M.startsWith("old mode ")&&(h.prevMode=M.replace("old mode","").trim()),M.startsWith("new file mode")&&(h.type="new",h.mode=M.replace("new file mode","").trim()),M.startsWith("deleted file mode")&&(h.type="deleted",h.mode=M.replace("deleted file mode","").trim()),M.startsWith("similarity index")&&(M.startsWith("similarity index 100%")?h.type="rename-pure":h.type="rename-changed"),M.startsWith("index ")){const[,Z,ee,ae]=M.trim().match(K_)??[];Z!=null&&(h.prevObjectId=Z),ee!=null&&(h.newObjectId=ee),ae!=null&&(h.mode=ae)}M.startsWith("rename from ")&&(h.prevName=M.replace("rename from ","").trim()),M.startsWith("rename to ")&&(h.name=M.replace("rename to ","").trim())}}continue}let L,T;for(;_.length>0&&(_[_.length-1]===`
1913
- `||_[_.length-1]==="\r"||_[_.length-1]===`\r
1914
- `||_[_.length-1]==="");)_.pop();const U=parseInt(w[3]),q=parseInt(w[1]);v=m?v:q-1,g=m?g:U-1;const V={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:parseInt(w[4]??"1"),additionStart:U,additionLines:N,deletionCount:parseInt(w[2]??"1"),deletionStart:q,deletionLines:D,deletionLineIndex:v,additionLineIndex:g,hunkContent:[],hunkContext:w[5],hunkSpecs:E,noEOFCRAdditions:!1,noEOFCRDeletions:!1};if(isNaN(V.additionCount)||isNaN(V.deletionCount)||isNaN(V.additionStart)||isNaN(V.deletionStart)){if(u)throw Error("parsePatchContent: invalid hunk metadata");console.error("parsePatchContent: invalid hunk metadata",V);continue}for(const M of _){const P=AT(M);if(P==null){console.error("processFile: invalid rawLine:",M);continue}const{type:Z,line:ee}=P;if(Z==="addition")(L==null||L.type!=="change")&&(L=df("change",v,g),V.hunkContent.push(L)),g++,m&&h.additionLines.push(ee),L.additions++,N++,T="addition";else if(Z==="deletion")(L==null||L.type!=="change")&&(L=df("change",v,g),V.hunkContent.push(L)),v++,m&&h.deletionLines.push(ee),L.deletions++,D++,T="deletion";else if(Z==="context")(L==null||L.type!=="context")&&(L=df("context",v,g),V.hunkContent.push(L)),g++,v++,m&&(h.deletionLines.push(ee),h.additionLines.push(ee)),L.lines++,T="context";else if(Z==="metadata"&&L!=null){if(L.type==="context"?(V.noEOFCRAdditions=!0,V.noEOFCRDeletions=!0):T==="deletion"?V.noEOFCRDeletions=!0:T==="addition"&&(V.noEOFCRAdditions=!0),m&&(T==="addition"||T==="context")){const ae=h.additionLines.length-1;ae>=0&&(h.additionLines[ae]=Qa(h.additionLines[ae]))}if(m&&(T==="deletion"||T==="context")){const ae=h.deletionLines.length-1;ae>=0&&(h.deletionLines[ae]=Qa(h.deletionLines[ae]))}}}V.additionLines=N,V.deletionLines=D,V.collapsedBefore=Math.max(V.additionStart-1-f,0),h.hunks.push(V),f=V.additionStart+V.additionCount-1;for(const M of V.hunkContent)M.type==="context"?(V.splitLineCount+=M.lines,V.unifiedLineCount+=M.lines):(V.splitLineCount+=Math.max(M.additions,M.deletions),V.unifiedLineCount+=M.deletions+M.additions);V.splitLineStart=h.splitLineCount+V.collapsedBefore,V.unifiedLineStart=h.unifiedLineCount+V.collapsedBefore,h.splitLineCount+=V.collapsedBefore+V.splitLineCount,h.unifiedLineCount+=V.collapsedBefore+V.unifiedLineCount}if(h!=null){if(h.hunks.length>0&&!m&&h.additionLines.length>0&&h.deletionLines.length>0){const y=h.hunks[h.hunks.length-1],_=y.additionStart+y.additionCount-1,E=h.additionLines.length,w=Math.max(E-_,0);h.splitLineCount+=w,h.unifiedLineCount+=w}return a||(h.prevName!=null&&h.name!==h.prevName?h.hunks.length>0?h.type="rename-changed":h.type="rename-pure":s!=null&&s.contents===""?h.type="deleted":r!=null&&r.contents===""&&(h.type="new")),h.type!=="rename-pure"&&h.type!=="rename-changed"&&(h.prevName=void 0),h}}function xT(i,n,a=!1){const r=[];for(const s of i.split(q_))try{r.push(TT(s,n!=null?`${n}-${r.length}`:void 0,a))}catch(u){if(a)throw u;console.error(u)}return r}function df(i,n,a){return i==="change"?{type:"change",additions:0,deletions:0,additionLineIndex:a,deletionLineIndex:n}:{type:"context",lines:0,additionLineIndex:a,deletionLineIndex:n}}function Vf(i,n,a,r=!1){const s=ib(sT(i.name,n.name,i.contents,n.contents,i.header,n.header,a),{cacheKey:(()=>{if(i.cacheKey!=null&&n.cacheKey!=null)return`${i.cacheKey}:${n.cacheKey}`})(),oldFile:i,newFile:n,throwOnError:r});if(s==null)throw new Error("parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?");return n.lang!=null&&(s.lang=n.lang),s}let wT=-1;var mf,ab=(mf=class{constructor(n={theme:_n},a,r=!1){x(this,"__id",`file-diff:${++wT}`);x(this,"fileContainer");x(this,"spriteSVG");x(this,"pre");x(this,"codeUnified");x(this,"codeDeletions");x(this,"codeAdditions");x(this,"bufferBefore");x(this,"bufferAfter");x(this,"themeCSSStyle");x(this,"appliedThemeCSS");x(this,"unsafeCSSStyle");x(this,"appliedUnsafeCSS");x(this,"gutterUtilityContent");x(this,"headerElement");x(this,"headerPrefix");x(this,"headerMetadata");x(this,"headerCustom");x(this,"separatorCache",new Map);x(this,"errorWrapper");x(this,"placeHolder");x(this,"hunksRenderer");x(this,"resizeManager");x(this,"scrollSyncManager");x(this,"interactionManager");x(this,"annotationCache",new Map);x(this,"lineAnnotations",[]);x(this,"deletionFile");x(this,"additionFile");x(this,"fileDiff");x(this,"renderRange");x(this,"appliedPreAttributes");x(this,"lastRenderedHeaderHTML");x(this,"lastRowCount");x(this,"enabled",!0);x(this,"handleHighlightRender",()=>{this.rerender()});x(this,"getLineIndex",(n,a="additions")=>{if(this.fileDiff==null)return;const r=this.fileDiff.hunks.at(-1);let s,u;e:for(const f of this.fileDiff.hunks){let d=a==="deletions"?f.deletionStart:f.additionStart;const h=a==="deletions"?f.deletionCount:f.additionCount;let m=f.splitLineStart,v=f.unifiedLineStart;if(n<d){const g=d-n;s=Math.max(v-g,0),u=Math.max(m-g,0);break e}if(n>=d+h){if(f===r){const g=n-(d+h);s=v+f.unifiedLineCount+g,u=m+f.splitLineCount+g;break e}continue}for(const g of f.hunkContent)if(g.type==="context")if(n<d+g.lines){const y=n-d;u=m+y,s=v+y;break e}else d+=g.lines,m+=g.lines,v+=g.lines;else{const y=a==="deletions"?g.deletions:g.additions;if(n<d+y){const _=n-d;s=v+(a==="additions"?g.deletions:0)+_,u=m+_;break e}else d+=y,m+=Math.max(g.deletions,g.additions),v+=g.deletions+g.additions}break e}if(!(s==null||u==null))return[s,u]});x(this,"getHoveredLine",()=>this.interactionManager.getHoveredLine());x(this,"handleExpandHunk",(n,a,r)=>{this.expandHunk(n,a,r)});x(this,"expandHunk",(n,a,r)=>{this.hunksRenderer.expandHunk(n,a,r),this.rerender()});var s;this.options=n,this.workerManager=a,this.isContainerManaged=r,this.hunksRenderer=this.createHunksRenderer(n),this.resizeManager=new TS,this.scrollSyncManager=new Q2,this.interactionManager=new _S("diff",kg(n,typeof n.hunkSeparators=="function"||(n.hunkSeparators??"line-info")==="line-info"||n.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex)),(s=this.workerManager)==null||s.subscribeToThemeChanges(this),this.enabled=!0}getHunksRendererOptions(n){return{...n,headerRenderMode:n.renderCustomHeader!=null?"custom":"default",hunkSeparators:typeof n.hunkSeparators=="function"?"custom":n.hunkSeparators}}createHunksRenderer(n){return new _T(this.getHunksRendererOptions(n),this.handleHighlightRender,this.workerManager)}setOptions(n){n!=null&&(this.options=n,this.hunksRenderer.setOptions(this.getHunksRendererOptions(n)),this.interactionManager.setOptions(kg(n,typeof n.hunkSeparators=="function"||(n.hunkSeparators??"line-info")==="line-info"||n.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex)))}mergeOptions(n){this.options={...this.options,...n}}setThemeType(n){(this.options.themeType??"system")!==n&&(this.mergeOptions({themeType:n}),!(typeof this.options.theme=="string"||this.fileContainer==null||this.appliedThemeCSS==null)&&this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,n,this.appliedThemeCSS.baseThemeType))}setLineAnnotations(n){this.lineAnnotations=n}canPartiallyRender(n,a,r){return!(n||a||r||typeof this.options.hunkSeparators=="function")}setSelectedLines(n){this.interactionManager.setSelection(n)}cleanUp(n=!1){var a,r,s;this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),(a=this.workerManager)==null||a.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||(r=this.fileContainer)==null||r.remove(),((s=this.fileContainer)==null?void 0:s.shadowRoot)!=null&&(this.fileContainer.shadowRoot.innerHTML=""),this.fileContainer=void 0,this.pre!=null&&(this.pre.innerHTML="",this.pre=void 0),this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,n?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.enabled=!1}virtualizedSetup(){var n;this.enabled=!0,(n=this.workerManager)==null||n.subscribeToThemeChanges(this)}hydrate(n){const{fileContainer:a,prerenderedHTML:r,preventEmit:s=!1,lineAnnotations:u,oldFile:f,newFile:d,fileDiff:h}=n;this.hydrateElements(a,r),this.pre==null&&this.headerElement==null?this.render({...n,preventEmit:!0}):this.hydrationSetup({fileDiff:h,oldFile:f,newFile:d,lineAnnotations:u}),s||this.emitPostRender()}hydrateElements(n,a){var r;P2(n,a);for(const s of((r=n.shadowRoot)==null?void 0:r.children)??[]){if(s instanceof SVGElement){this.spriteSVG=s;continue}if(s instanceof HTMLElement){if(s instanceof HTMLPreElement){this.pre=s;for(const u of s.children)!(u instanceof HTMLElement)||u.tagName.toLowerCase()!=="code"||("deletions"in u.dataset&&(this.codeDeletions=u),"additions"in u.dataset&&(this.codeAdditions=u),"unified"in u.dataset&&(this.codeUnified=u));continue}if("diffsHeader"in s.dataset){this.headerElement=s;continue}if(s instanceof HTMLStyleElement&&s.hasAttribute(I0)){this.themeCSSStyle=s;continue}if(s instanceof HTMLStyleElement&&s.hasAttribute(U0)){this.unsafeCSSStyle=s,this.appliedUnsafeCSS=s.textContent;continue}}}this.pre!=null&&(this.syncCodeNodesFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),this.fileContainer=n}hydrationSetup({fileDiff:n,oldFile:a,newFile:r,lineAnnotations:s}){const{diffStyle:u="split",overflow:f="scroll"}=this.options;this.lineAnnotations=s??this.lineAnnotations,this.additionFile=r,this.deletionFile=a,this.fileDiff=n??(a!=null&&r!=null?Vf(a,r,this.options.parseDiffOptions):void 0),this.pre!=null&&(this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,f==="wrap"),f==="scroll"&&u==="split"&&this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions))}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||this.render({forceRender:!0,renderRange:this.renderRange})}render({oldFile:n,newFile:a,fileDiff:r,forceRender:s=!1,preventEmit:u=!1,lineAnnotations:f,fileContainer:d,containerWrapper:h,renderRange:m}){var q;if(!this.enabled)throw new Error("FileDiff.render: attempting to call render after cleaned up");const{collapsed:v=!1}=this.options,g=v?void 0:m,y=n!=null&&a!=null&&(!_0(n,this.deletionFile)||!_0(a,this.additionFile));let _=r!=null&&r!==this.fileDiff;const E=f!=null&&(f.length>0||this.lineAnnotations.length>0)?f!==this.lineAnnotations:!1;if(!v&&Jv(g,this.renderRange)&&!s&&!E&&(r!=null&&r===this.fileDiff||r==null&&!y))return!1;const{renderRange:w}=this;if(this.renderRange=g,this.deletionFile=n,this.additionFile=a,r!=null?this.fileDiff=r:n!=null&&a!=null&&y&&(_=!0,this.fileDiff=Vf(n,a,this.options.parseDiffOptions)),f!=null&&this.setLineAnnotations(f),this.fileDiff==null)return!1;this.hunksRenderer.setOptions(this.getHunksRendererOptions(this.options)),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);const{diffStyle:N="split",disableErrorHandling:D=!1,disableFileHeader:L=!1,overflow:T="scroll",themeType:U="system"}=this.options;if(L&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),d=this.getOrCreateFileContainer(d,h),v){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{const V=this.hunksRenderer.renderDiff(this.fileDiff,e1);V!=null&&this.applyThemeState(d,V.themeStyles,U,V.baseThemeType),(V==null?void 0:V.headerElement)!=null&&this.applyHeaderToDOM(V.headerElement,d),this.renderSeparators([]),this.injectUnsafeCSS()}catch(V){if(D)throw V;console.error(V),V instanceof Error&&this.applyErrorToDOM(V,d)}return u||this.emitPostRender(),!0}try{const V=this.getOrCreatePreNode(d);if(!(this.canPartiallyRender(s,E,y||_)&&this.applyPartialRender({previousRenderRange:w,renderRange:g}))){const M=this.hunksRenderer.renderDiff(this.fileDiff,g);if(M==null)return((q=this.workerManager)==null?void 0:q.isInitialized())===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(d,M.themeStyles,U,M.baseThemeType),M.headerElement!=null&&this.applyHeaderToDOM(M.headerElement,d),M.additionsContentAST!=null||M.deletionsContentAST!=null||M.unifiedContentAST!=null?this.applyHunksToDOM(V,M):this.pre!=null&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(M.hunkData)}this.applyBuffers(V,g),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.interactionManager.setup(V),this.resizeManager.setup(V,T==="wrap"),T==="scroll"&&N==="split"?this.scrollSyncManager.setup(V,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp()}catch(V){if(D)throw V;console.error(V),V instanceof Error&&this.applyErrorToDOM(V,d)}return u||this.emitPostRender(),!0}emitPostRender(){var n,a;this.fileContainer!=null&&((a=(n=this.options).onPostRender)==null||a.call(n,this.fileContainer,this))}removeRenderedCode(){var n,a,r,s,u,f;this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),(n=this.bufferBefore)==null||n.remove(),this.bufferBefore=void 0,(a=this.bufferAfter)==null||a.remove(),this.bufferAfter=void 0,(r=this.codeUnified)==null||r.remove(),this.codeUnified=void 0,(s=this.codeDeletions)==null||s.remove(),this.codeDeletions=void 0,(u=this.codeAdditions)==null||u.remove(),this.codeAdditions=void 0,(f=this.pre)==null||f.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){var n;for(const{element:a}of this.separatorCache.values())a.remove();this.separatorCache.clear();for(const{element:a}of this.annotationCache.values())a.remove();this.annotationCache.clear(),(n=this.gutterUtilityContent)==null||n.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(n){if(this.fileContainer==null)return!1;if(this.cleanChildNodes(),this.placeHolder==null){const a=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",a.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty("height",`${n}px`),!0}cleanChildNodes(){var n,a,r,s,u,f,d,h,m,v,g,y,_,E,w;this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),(n=this.bufferAfter)==null||n.remove(),(a=this.bufferBefore)==null||a.remove(),(r=this.codeAdditions)==null||r.remove(),(s=this.codeDeletions)==null||s.remove(),(u=this.codeUnified)==null||u.remove(),(f=this.errorWrapper)==null||f.remove(),(d=this.headerElement)==null||d.remove(),(h=this.gutterUtilityContent)==null||h.remove(),(m=this.headerPrefix)==null||m.remove(),(v=this.headerMetadata)==null||v.remove(),(g=this.headerCustom)==null||g.remove(),(y=this.pre)==null||y.remove(),(_=this.spriteSVG)==null||_.remove(),(E=this.themeCSSStyle)==null||E.remove(),(w=this.unsafeCSSStyle)==null||w.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.codeAdditions=void 0,this.codeDeletions=void 0,this.codeUnified=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.gutterUtilityContent=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0}renderSeparators(n){const{hunkSeparators:a}=this.options;if(this.isContainerManaged||this.fileContainer==null||typeof a!="function"){for(const{element:s}of this.separatorCache.values())s.remove();this.separatorCache.clear();return}const r=new Map(this.separatorCache);for(const s of n){const u=s.slotName;let f=this.separatorCache.get(u);if(f==null||!CT(s,f.hunkData)){f==null||f.element.remove();const d=document.createElement("div");d.style.display="contents",d.slot=s.slotName;const h=a(s,this);h!=null&&d.appendChild(h),this.fileContainer.appendChild(d),f={element:d,hunkData:s},this.separatorCache.set(u,f)}r.delete(u)}for(const[s,{element:u}]of r.entries())this.separatorCache.delete(s),u.remove()}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(const{element:r}of this.annotationCache.values())r.remove();this.annotationCache.clear();return}const n=new Map(this.annotationCache),{renderAnnotation:a}=this.options;if(a!=null&&this.lineAnnotations.length>0)for(const[r,s]of this.lineAnnotations.entries()){const u=`${r}-${ar(s)}`;let f=this.annotationCache.get(u);if(f==null||!ET(s,f.annotation)){f==null||f.element.remove();const d=a(s);if(d==null)continue;f={element:U2(ar(s)),annotation:s},f.element.appendChild(d),this.fileContainer.appendChild(f.element),this.annotationCache.set(u,f)}n.delete(u)}for(const[r,{element:s}]of n.entries())this.annotationCache.delete(r),s.remove()}renderGutterUtility(){var s,u;const n=this.options.renderGutterUtility??this.options.renderHoverUtility;if(this.fileContainer==null||n==null){(s=this.gutterUtilityContent)==null||s.remove(),this.gutterUtilityContent=void 0;return}const a=n(this.interactionManager.getHoveredLine);if(a!=null&&this.gutterUtilityContent!=null)return;if(a==null){(u=this.gutterUtilityContent)==null||u.remove(),this.gutterUtilityContent=void 0;return}const r=H2();r.appendChild(a),this.fileContainer.appendChild(r),this.gutterUtilityContent=r}getOrCreateFileContainer(n,a){var s;const r=this.fileContainer;if(this.fileContainer=n??this.fileContainer??document.createElement(Yo),r!=null&&r!==this.fileContainer&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),a!=null&&this.fileContainer.parentNode!==a&&a.appendChild(this.fileContainer),this.spriteSVG==null){const u=document.createElement("div");u.innerHTML=M2;const f=u.firstChild;f instanceof SVGElement&&(this.spriteSVG=f,(s=this.fileContainer.shadowRoot)==null||s.appendChild(this.spriteSVG))}return this.fileContainer}getFileContainer(){return this.fileContainer}getOrCreatePreNode(n){var r;const a=n.shadowRoot??n.attachShadow({mode:"open"});return this.pre==null?(this.pre=document.createElement("pre"),this.appliedPreAttributes=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,a.appendChild(this.pre)):this.pre.parentNode!==a&&(a.appendChild(this.pre),this.appliedPreAttributes=void 0),(r=this.placeHolder)==null||r.remove(),this.placeHolder=void 0,this.pre}syncCodeNodesFromPre(n){this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0;for(const a of Array.from(n.children))a instanceof HTMLElement&&(a.hasAttribute("data-unified")?this.codeUnified=a:a.hasAttribute("data-deletions")?this.codeDeletions=a:a.hasAttribute("data-additions")&&(this.codeAdditions=a))}applyHeaderToDOM(n,a){var v,g,y,_,E,w;this.cleanupErrorWrapper(),(v=this.placeHolder)==null||v.remove(),this.placeHolder=void 0;const{fileDiff:r}=this,s=qa(n);if(s!==this.lastRenderedHeaderHTML){const N=document.createElement("div");N.innerHTML=s;const D=N.firstElementChild;if(!(D instanceof HTMLElement))return;this.headerElement!=null?(g=a.shadowRoot)==null||g.replaceChild(D,this.headerElement):(y=a.shadowRoot)==null||y.prepend(D),this.headerElement=D,this.lastRenderedHeaderHTML=s}if(this.isContainerManaged||r==null)return;const{renderCustomHeader:u,renderHeaderPrefix:f,renderHeaderMetadata:d}=this.options;if(u!=null){const N=u(r)??void 0;this.headerCustom=this.upsertHeaderSlotElement(a,this.headerCustom,Pf,N),(_=this.headerPrefix)==null||_.remove(),(E=this.headerMetadata)==null||E.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0;return}const h=(f==null?void 0:f(r))??void 0,m=(d==null?void 0:d(r))??void 0;this.headerPrefix=this.upsertHeaderSlotElement(a,this.headerPrefix,Bf,h),this.headerMetadata=this.upsertHeaderSlotElement(a,this.headerMetadata,jf,m),(w=this.headerCustom)==null||w.remove(),this.headerCustom=void 0}clearHeaderSlots(){var n,a,r;(n=this.headerPrefix)==null||n.remove(),(a=this.headerMetadata)==null||a.remove(),(r=this.headerCustom)==null||r.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(n,a,r,s){if(s==null){a==null||a.remove();return}const u=a??this.createHeaderSlotElement(r);return a==null&&n.appendChild(u),this.replaceHeaderSlotContent(u,s),u}replaceHeaderSlotContent(n,a){n.replaceChildren(),a instanceof Element?n.appendChild(a):n.innerText=`${a}`}createHeaderSlotElement(n){const a=document.createElement("div");return a.slot=n,a}injectUnsafeCSS(){var r,s;const{unsafeCSS:n}=this.options,a=(r=this.fileContainer)==null?void 0:r.shadowRoot;if(a!=null){if(n==null||n===""){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}((s=this.unsafeCSSStyle)==null?void 0:s.parentNode)===a&&this.appliedUnsafeCSS===n||(this.unsafeCSSStyle??(this.unsafeCSSStyle=V2()),this.unsafeCSSStyle.parentNode!==a&&a.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=B2(n),this.appliedUnsafeCSS=n)}}applyThemeState(n,a,r,s){var d,h;const u=n.shadowRoot??n.attachShadow({mode:"open"}),f=s??r;((d=this.themeCSSStyle)==null?void 0:d.parentNode)===u&&((h=this.appliedThemeCSS)==null?void 0:h.themeStyles)===a&&this.appliedThemeCSS.themeType===f||(this.themeCSSStyle=q2({shadowRoot:u,currentNode:this.themeCSSStyle,themeCSS:j2(a,f)}),this.appliedThemeCSS=this.themeCSSStyle!=null?{themeStyles:a,themeType:f,baseThemeType:s}:void 0)}applyHunksToDOM(n,a){var g,y,_,E,w,N,D,L,T;const{overflow:r="scroll"}=this.options,s=(this.options.hunkSeparators??"line-info")==="line-info",u=r==="wrap"?a.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(n,a);let f=!1;const d=[],h=this.hunksRenderer.renderCodeAST("unified",a),m=this.hunksRenderer.renderCodeAST("deletions",a),v=this.hunksRenderer.renderCodeAST("additions",a);h!=null?(f=this.codeUnified==null||this.codeAdditions!=null||this.codeDeletions!=null,(g=this.codeDeletions)==null||g.remove(),this.codeDeletions=void 0,(y=this.codeAdditions)==null||y.remove(),this.codeAdditions=void 0,this.codeUnified=sf({code:this.codeUnified,columnType:"unified",rowSpan:u,containerSize:s}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(h),d.push(this.codeUnified)):m!=null||v!=null?(m!=null?(f=this.codeDeletions==null||this.codeUnified!=null,(_=this.codeUnified)==null||_.remove(),this.codeUnified=void 0,this.codeDeletions=sf({code:this.codeDeletions,columnType:"deletions",rowSpan:u,containerSize:s}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(m),d.push(this.codeDeletions)):((E=this.codeDeletions)==null||E.remove(),this.codeDeletions=void 0),v!=null?(f=f||this.codeAdditions==null||this.codeUnified!=null,(w=this.codeUnified)==null||w.remove(),this.codeUnified=void 0,this.codeAdditions=sf({code:this.codeAdditions,columnType:"additions",rowSpan:u,containerSize:s}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(v),d.push(this.codeAdditions)):((N=this.codeAdditions)==null||N.remove(),this.codeAdditions=void 0)):((D=this.codeUnified)==null||D.remove(),this.codeUnified=void 0,(L=this.codeDeletions)==null||L.remove(),this.codeDeletions=void 0,(T=this.codeAdditions)==null||T.remove(),this.codeAdditions=void 0),d.length===0?n.textContent="":f&&n.replaceChildren(...d),this.lastRowCount=a.rowCount}applyPartialRender({previousRenderRange:n,renderRange:a}){const{pre:r,codeUnified:s,codeAdditions:u,codeDeletions:f,options:{diffStyle:d="split"}}=this;if(r==null||n==null||a==null||!Number.isFinite(n.totalLines)||!Number.isFinite(a.totalLines)||this.lastRowCount==null)return!1;const h=this.getCodeColumns(d,s,f,u);if(h==null)return!1;const m=n.startingLine,v=a.startingLine,g=m+n.totalLines,y=v+a.totalLines,_=Math.max(m,v),E=Math.min(g,y);if(E<=_)return!1;const w=Math.max(0,_-m),N=Math.max(0,g-E),D=this.trimColumns({columns:h,trimStart:w,trimEnd:N,previousStart:m,overlapStart:_,overlapEnd:E,diffStyle:d});if(D<0)throw new Error("applyPartialRender: failed to trim to overlap");if(this.lastRowCount<D)throw new Error("applyPartialRender: trimmed beyond DOM row count");let L=this.lastRowCount-D;const T=(M,P)=>{if(!(P<=0||this.fileDiff==null))return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:M,totalLines:P,bufferBefore:0,bufferAfter:0})},U=T(v,Math.max(_-v,0));if(U==null&&v<_)return!1;const q=T(E,Math.max(y-E,0));if(q==null&&y>E)return!1;const V=(M,P)=>{if(M!=null){if(d==="unified"&&!Array.isArray(h))this.insertPartialHTML(d,h,M,P);else if(d==="split"&&Array.isArray(h))this.insertPartialHTML(d,h,M,P);else throw new Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");L+=M.rowCount}};return this.cleanupErrorWrapper(),V(U,"afterbegin"),V(q,"beforeend"),this.lastRowCount!==L&&(this.applyRowSpan(d,h,L),this.lastRowCount=L),!0}insertPartialHTML(n,a,r,s){if(n==="unified"&&!Array.isArray(a)){const u=this.hunksRenderer.renderCodeAST("unified",r);this.renderPartialColumn(a,u,s)}else if(n==="split"&&Array.isArray(a)){const u=this.hunksRenderer.renderCodeAST("deletions",r),f=this.hunksRenderer.renderCodeAST("additions",r);this.renderPartialColumn(a[0],u,s),this.renderPartialColumn(a[1],f,s)}else throw new Error("FileDiff.insertPartialHTML: Invalid argument composition")}renderPartialColumn(n,a,r){if(n==null||a==null)return;const s=D0(a[0]),u=D0(a[1]);if(s==null||u==null)throw new Error("FileDiff.insertPartialHTML: Unexpected AST structure");const f=u.at(0);r==="beforeend"&&(f==null?void 0:f.type)==="element"&&typeof f.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(f.properties["data-buffer-size"],n.content.children[n.content.children.length-1],n.gutter.children[n.gutter.children.length-1],s,u,!0);const d=u.at(-1);r==="afterbegin"&&(d==null?void 0:d.type)==="element"&&typeof d.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(d.properties["data-buffer-size"],n.content.children[0],n.gutter.children[0],s,u,!1),n.gutter.insertAdjacentHTML(r,this.hunksRenderer.renderPartialHTML(s)),n.content.insertAdjacentHTML(r,this.hunksRenderer.renderPartialHTML(u))}mergeBuffersIfNecessary(n,a,r,s,u,f){if(!(a instanceof HTMLElement)||!(r instanceof HTMLElement))return;const d=this.getBufferSize(a.dataset);d!=null&&(f?(s.shift(),u.shift()):(s.pop(),u.pop()),this.updateBufferSize(a,d+n),this.updateBufferSize(r,d+n))}applyRowSpan(n,a,r){const s=u=>{u!=null&&(u.gutter.style.setProperty("grid-row",`span ${r}`),u.content.style.setProperty("grid-row",`span ${r}`))};if(n==="unified"&&!Array.isArray(a))s(a);else if(n==="split"&&Array.isArray(a))s(a[0]),s(a[1]);else throw new Error("dun fuuuuked up")}trimColumnRows(n,a,r){let s=0,u=0,f=0,d=!1;const h=r>=0;if(n==null)return 0;const m=Array.from(n.content.children),v=Array.from(n.gutter.children);if(m.length!==v.length)throw new Error("FileDiff.trimColumnRows: columns do not match");for(;f<m.length&&!(a<=0&&!h&&!d);){const g=v[f],y=m[f];if(f++,!(g instanceof HTMLElement)||!(y instanceof HTMLElement))throw console.error({gutterElement:g,contentElement:y}),new Error("FileDiff.trimColumnRows: invalid row elements");if(d&&(d=!1,g.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in y.dataset||g.dataset.gutterBuffer==="metadata"&&"noNewline"in y.dataset)){g.remove(),y.remove(),u++;continue}if("lineIndex"in g.dataset&&"lineIndex"in y.dataset){(a>0||h&&s>=r)&&(g.remove(),y.remove(),a>0&&(a--,a===0&&(d=!0)),u++),s++;continue}if("separator"in g.dataset&&"separator"in y.dataset){(a>0||h&&s>=r)&&(g.remove(),y.remove(),u++);continue}if(g.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in y.dataset){(a>0||h&&s>=r)&&(g.remove(),y.remove(),u++);continue}if(g.dataset.gutterBuffer==="metadata"&&"noNewline"in y.dataset){(a>0||h&&s>=r)&&(g.remove(),y.remove(),u++);continue}if(g.dataset.gutterBuffer==="buffer"&&"contentBuffer"in y.dataset){const _=this.getBufferSize(y.dataset);if(_==null)throw new Error("FileDiff.trimColumnRows: invalid element");if(a>0){const E=Math.min(a,_),w=_-E;w>0?(this.updateBufferSize(g,w),this.updateBufferSize(y,w),u+=E):(g.remove(),y.remove(),u+=_),a-=E}else if(h){const E=s,w=s+_-1;if(r<=E)g.remove(),y.remove(),u+=_;else if(r<=w){const N=w-r+1,D=_-N;this.updateBufferSize(g,D),this.updateBufferSize(y,D),u+=N}}s+=_;continue}throw console.error({gutterElement:g,contentElement:y}),new Error("FileDiff.trimColumnRows: unknown row elements")}return u}trimColumns({columns:n,diffStyle:a,overlapEnd:r,overlapStart:s,previousStart:u,trimEnd:f,trimStart:d}){const h=Math.max(0,s-u),m=r-u;if(m<0)throw new Error("FileDiff.trimColumns: overlap ends before previous");const v=d>0,g=f>0;if(!v&&!g)return 0;const y=v?h:0,_=g?m:-1;if(a==="unified"&&!Array.isArray(n))return this.trimColumnRows(n,y,_);if(a==="split"&&Array.isArray(n)){const E=this.trimColumnRows(n[0],y,_),w=this.trimColumnRows(n[1],y,_);if(n[0]!=null&&n[1]!=null&&E!==w)throw new Error("FileDiff.trimColumns: split columns out of sync");return n[0]!=null?E:w}else throw console.error({diffStyle:a,columns:n}),new Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(n){const a=Number.parseInt((n==null?void 0:n.bufferSize)??"",10);return Number.isNaN(a)?void 0:a}updateBufferSize(n,a){n.dataset.bufferSize=`${a}`,n.style.setProperty("grid-row",`span ${a}`),n.style.setProperty("min-height",`calc(${a} * 1lh)`)}getCodeColumns(n,a,r,s){function u(f){if(f==null)return;const d=f.children[0],h=f.children[1];if(!(!(d instanceof HTMLElement)||!(h instanceof HTMLElement)||d.dataset.gutter==null||h.dataset.content==null))return{gutter:d,content:h}}if(n==="unified")return u(a);{const f=u(r),d=u(s);return f!=null||d!=null?[f,d]:void 0}}applyBuffers(n,a){const{disableVirtualizationBuffers:r=!1}=this.options;if(r||a==null){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}a.bufferBefore>0?(this.bufferBefore==null&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",n.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${a.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),a.bufferAfter>0?(this.bufferAfter==null&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",n.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${a.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}applyPreNodeAttributes(n,{additionsContentAST:a,deletionsContentAST:r,totalLines:s},u){const{diffIndicators:f="bars",disableBackground:d=!1,disableLineNumbers:h=!1,overflow:m="scroll",diffStyle:v="split"}=this.options,g={type:"diff",diffIndicators:f,disableBackground:d,disableLineNumbers:h,overflow:m,split:v==="unified"?!1:a!=null&&r!=null,totalLines:s,customProperties:u};z2(g,this.appliedPreAttributes)||($2(n,g),this.appliedPreAttributes=g)}applyErrorToDOM(n,a){this.cleanupErrorWrapper();const r=this.getOrCreatePreNode(a);r.innerHTML="",r.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;const s=a.shadowRoot??a.attachShadow({mode:"open"});this.errorWrapper??(this.errorWrapper=document.createElement("div")),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.innerHTML="",s.appendChild(this.errorWrapper);const u=document.createElement("div");u.dataset.errorMessage="",u.innerText=n.message,this.errorWrapper.appendChild(u);const f=document.createElement("pre");f.dataset.errorStack="",f.innerText=n.stack??"No Error Stack",this.errorWrapper.appendChild(f)}cleanupErrorWrapper(){var n;(n=this.errorWrapper)==null||n.remove(),this.errorWrapper=void 0}},x(mf,"LoadedCustomComponent",X2),mf);function D0(i){if(!(i==null||i.type!=="element"))return i.children??[]}function LT({hunkIndex:i,lineIndex:n,conflictIndex:a}){return`merge-conflict-action-${i}-${n}-${a}`}function kT(i,n){const a=n.hunks[i.hunkIndex];if(a!=null)return{hunkIndex:i.hunkIndex,lineIndex:RT(a,i.startContentIndex)}}function RT(i,n){let a=i.unifiedLineStart;for(let r=0;r<n;r++){const s=i.hunkContent[r];a+=s.type==="context"?s.lines:s.deletions+s.additions}return a}function DT(i,n){const a={...W_,...n};return a.hunkSeparatorHeight=OT(i,n==null?void 0:n.hunkSeparatorHeight),a}function OT(i,n){if(n!=null)return n;switch(i){case"simple":return 4;case"metadata":case"line-info":case"line-info-basic":case"custom":return 32}}let NT=-1;var MT=class extends ab{constructor(n,a,r,s,u=!1){super(n,s,u);x(this,"__id",`little-virtualized-file-diff:${++NT}`);x(this,"top");x(this,"height",0);x(this,"metrics");x(this,"heightCache",new Map);x(this,"isVisible",!1);x(this,"virtualizer");x(this,"onRender",n=>this.fileContainer==null?!1:(n&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.render()));x(this,"expandHunk",(n,a,r)=>{this.hunksRenderer.expandHunk(n,a,r),this.computeApproximateSize(),this.renderRange=void 0,this.virtualizer.instanceChanged(this)});const{hunkSeparators:f="line-info"}=this.options;this.virtualizer=a,this.metrics=DT(typeof f=="function"?"custom":f,r)}getLineHeight(n,a=!1){const r=this.heightCache.get(n);if(r!=null)return r;const s=a?2:1;return this.metrics.lineHeight*s}setOptions(n){if(n==null)return;const a=this.options.diffStyle,r=this.options.overflow,s=this.options.collapsed;super.setOptions(n),(a!==this.options.diffStyle||r!==this.options.overflow||s!==this.options.collapsed)&&(this.heightCache.clear(),this.computeApproximateSize(),this.renderRange=void 0),this.virtualizer.instanceChanged(this)}reconcileHeights(){const{overflow:n="scroll"}=this.options;if(this.fileContainer!=null&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.fileContainer==null||this.fileDiff==null){this.height=0;return}if(n==="scroll"&&this.lineAnnotations.length===0&&!this.virtualizer.config.resizeDebugging)return;const a=this.getDiffStyle();let r=!1;const s=a==="split"?[this.codeDeletions,this.codeAdditions]:[this.codeUnified];for(const u of s){if(u==null)continue;const f=u.children[1];if(f instanceof HTMLElement)for(const d of f.children){if(!(d instanceof HTMLElement))continue;const h=d.dataset.lineIndex;if(h==null)continue;const m=IT(h,a);let v=d.getBoundingClientRect().height,g=!1;d.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in d.nextElementSibling.dataset||"noNewline"in d.nextElementSibling.dataset)&&("noNewline"in d.nextElementSibling.dataset&&(g=!0),v+=d.nextElementSibling.getBoundingClientRect().height);const y=this.getLineHeight(m,g);v!==y&&(r=!0,v===this.metrics.lineHeight*(g?2:1)?this.heightCache.delete(m):this.heightCache.set(m,v))}}(r||this.virtualizer.config.resizeDebugging)&&this.computeApproximateSize()}cleanUp(){this.fileContainer!=null&&this.virtualizer.disconnect(this.fileContainer),super.cleanUp()}setVisibility(n){this.fileContainer!=null&&(this.renderRange=void 0,n&&!this.isVisible?(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer),this.isVisible=!0):!n&&this.isVisible&&(this.isVisible=!1,this.rerender()))}computeApproximateSize(){const n=this.height===0;if(this.height=0,this.fileDiff==null)return;const{disableFileHeader:a=!1,expandUnchanged:r=!1,collapsed:s=!1,collapsedContextThreshold:u=ja,hunkSeparators:f="line-info"}=this.options,{diffHeaderHeight:d,fileGap:h,hunkSeparatorHeight:m}=this.metrics,v=this.getDiffStyle(),g=f!=="simple"&&f!=="metadata"&&f!=="line-info-basic"?h:0;if(a?f!=="simple"&&f!=="metadata"&&(this.height+=h):this.height+=d,!s&&(ls({diff:this.fileDiff,diffStyle:v,expandedHunks:r?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:u,callback:({hunkIndex:y,collapsedBefore:_,collapsedAfter:E,deletionLine:w,additionLine:N})=>{const D=N!=null?N.splitLineIndex:w.splitLineIndex,L=N!=null?N.unifiedLineIndex:w.unifiedLineIndex,T=((N==null?void 0:N.noEOFCR)??!1)||((w==null?void 0:w.noEOFCR)??!1);_>0&&(y>0&&(this.height+=g),this.height+=m+g),this.height+=this.getLineHeight(v==="split"?D:L,T),E>0&&f!=="simple"&&(this.height+=g+m)}}),this.fileDiff.hunks.length>0&&(this.height+=h),this.fileContainer!=null&&this.virtualizer.config.resizeDebugging&&!n)){const y=this.fileContainer.getBoundingClientRect();y.height!==this.height?console.log("VirtualizedFileDiff.computeApproximateSize: computed height doesnt match",{name:this.fileDiff.name,elementHeight:y.height,computedHeight:this.height}):console.log("VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT")}}render({fileContainer:n,oldFile:a,newFile:r,fileDiff:s,...u}={}){const f=this.fileContainer==null;if(this.fileDiff??(this.fileDiff=s??(a!=null&&r!=null?Vf(a,r,this.options.parseDiffOptions):void 0)),n=this.getOrCreateFileContainer(n),this.fileDiff==null)return console.error("VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data"),!1;if(f?(this.computeApproximateSize(),this.virtualizer.connect(n,this),this.top??(this.top=this.virtualizer.getOffsetInScrollContainer(n)),this.isVisible=this.virtualizer.isInstanceVisible(this.top,this.height)):this.top??(this.top=this.virtualizer.getOffsetInScrollContainer(n)),!this.isVisible)return this.renderPlaceholder(this.height);const d=this.virtualizer.getWindowSpecs(),h=this.computeRenderRangeFromWindow(this.fileDiff,this.top,d);return super.render({fileDiff:this.fileDiff,fileContainer:n,renderRange:h,oldFile:a,newFile:r,...u})}getDiffStyle(){return this.options.diffStyle??"split"}getExpandedRegion(n,a,r){if(r<=0||n)return{fromStart:0,fromEnd:0,collapsedLines:Math.max(r,0),renderAll:!1};const{expandUnchanged:s=!1,collapsedContextThreshold:u=ja}=this.options;if(s||r<=u)return{fromStart:r,fromEnd:0,collapsedLines:0,renderAll:!0};const f=this.hunksRenderer.getExpandedHunk(a),d=Math.min(Math.max(f.fromStart,0),r),h=Math.min(Math.max(f.fromEnd,0),r),m=d+h,v=m>=r;return{fromStart:d,fromEnd:h,collapsedLines:Math.max(r-m,0),renderAll:v}}getExpandedLineCount(n,a){let r=0;if(n.isPartial){for(const u of n.hunks)r+=a==="split"?u.splitLineCount:u.unifiedLineCount;return r}for(const[u,f]of n.hunks.entries()){const d=a==="split"?f.splitLineCount:f.unifiedLineCount;r+=d;const h=Math.max(f.collapsedBefore,0),{fromStart:m,fromEnd:v,renderAll:g}=this.getExpandedRegion(n.isPartial,u,h);h>0&&(r+=g?h:m+v)}const s=n.hunks.at(-1);if(s!=null&&zT(n)){const u=n.additionLines.length-(s.additionLineIndex+s.additionCount),f=n.deletionLines.length-(s.deletionLineIndex+s.deletionCount);if(s!=null&&u!==f)throw new Error(`VirtualizedFileDiff: trailing context mismatch (additions=${u}, deletions=${f}) for ${n.name}`);const d=Math.min(u,f);if(s!=null&&d>0){const{fromStart:h,renderAll:m}=this.getExpandedRegion(n.isPartial,n.hunks.length,d);r+=m?d:h}}return r}computeRenderRangeFromWindow(n,a,{top:r,bottom:s}){const{disableFileHeader:u=!1,expandUnchanged:f=!1,collapsedContextThreshold:d=ja,hunkSeparators:h="line-info"}=this.options,{diffHeaderHeight:m,fileGap:v,hunkLineCount:g,hunkSeparatorHeight:y,lineHeight:_}=this.metrics,E=this.getDiffStyle(),w=this.height,N=this.getExpandedLineCount(n,E),D=u?v:m;if(a<r-w||a>s)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:w-D-v};if(N<=g||n.hunks.length===0)return{startingLine:0,totalLines:g,bufferBefore:0,bufferAfter:0};const L=Math.ceil(Math.max(s-r,0)/_),T=Math.ceil(L/g)*g+g,U=T/g,q=U,V=[],M=(r+s)/2,P=h==="simple"||h==="metadata"||h==="line-info-basic"?0:v;let Z=a+D,ee=0,ae,re,he;if(ls({diff:n,diffStyle:E,expandedHunks:f?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:d,callback:({hunkIndex:Y,collapsedBefore:J,collapsedAfter:te,deletionLine:se,additionLine:de})=>{const we=de!=null?de.splitLineIndex:se.splitLineIndex,pe=de!=null?de.unifiedLineIndex:se.unifiedLineIndex,Le=((de==null?void 0:de.noEOFCR)??!1)||((se==null?void 0:se.noEOFCR)??!1);let qe=J>0?y+P+(Y>0?P:0):0;Y===0&&h==="simple"&&(qe=0),Z+=qe;const Rt=ee%g===0;if(Rt&&(V.push(Z-(a+D+qe)),he!=null)){if(he<=0)return!0;he--}const pt=this.getLineHeight(E==="split"?we:pe,Le),_t=Math.floor(ee/g);return Z>r-pt&&Z<s&&(ae??(ae=_t)),re==null&&Z+pt>M&&(re=_t),he==null&&Z>=s&&Rt&&(he=q),ee++,Z+=pt,te>0&&h!=="simple"&&(Z+=y+P),!1}}),ae==null)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:w-D-v};const le=V.length;re??(re=ae);const Ce=Math.round(re-U/2),B=Math.max(0,le-U),Q=Math.max(0,Math.min(Ce,B)),W=Q*g,fe=Ce<0?T+Ce*g:T,xe=V[Q]??0,R=Q+fe/g;return{startingLine:W,totalLines:fe,bufferBefore:xe,bufferAfter:R<V.length?w-D-V[R]-v:w-(Z-a)-v}}};function zT(i){const n=i.hunks.at(-1);return n==null||i.isPartial||i.additionLines.length===0||i.deletionLines.length===0?!1:n.additionLineIndex+n.additionCount<i.additionLines.length||n.deletionLineIndex+n.deletionCount<i.deletionLines.length}function IT(i,n){const[a,r]=i.split(",").map(Number);return n==="split"?r:a}function O0(i,n,a){if(i===n||i==null||n==null)return i===n;const r=new Set(a),s=Object.keys(i),u=new Set(Object.keys(n));for(const f of s)if(u.delete(f),!r.has(f)&&(!(f in n)||i[f]!==n[f]))return!1;for(const f of Array.from(u))if(!r.has(f))return!1;return!0}function UT(i,n){const a=(i==null?void 0:i.theme)??_n,r=(n==null?void 0:n.theme)??_n,s=N0(i),u=N0(n);return eb(a,r)&&O0(i,n,["theme","parseDiffOptions"])&&O0(s,u)}function N0(i){if(i!=null&&"parseDiffOptions"in i)return i.parseDiffOptions}function HT(i){const[n,a]=ue.useState(null),[r,s]=ue.useState(!0),[u,f]=ue.useState(null);return ue.useEffect(()=>{s(!0),f(null),fetch(`/api/diff?staged=${i.staged}&untracked=${i.untracked}`).then(d=>{if(!d.ok)throw new Error(`HTTP ${d.status}`);return d.json()}).then(d=>a(d)).catch(d=>f(d.message)).finally(()=>s(!1))},[i.staged,i.untracked]),{patch:(n==null?void 0:n.patch)??null,repoName:(n==null?void 0:n.repoName)??"",branch:(n==null?void 0:n.branch)??"",customMode:(n==null?void 0:n.customMode)??!1,loading:r,error:u}}let VT=Date.now();function GT(){const[i,n]=ue.useState([]),a=ue.useCallback((h,m,v,g)=>{const y={id:String(VT++),filePath:h,side:m,lineNumber:v,body:g,createdAt:Date.now()};n(_=>[..._,y])},[]),r=ue.useCallback(h=>{n(m=>m.filter(v=>v.id!==h))},[]),s=ue.useCallback((h,m)=>{n(v=>v.map(g=>g.id===h?{...g,body:m}:g))},[]),u=ue.useCallback(()=>{if(i.length===0)return"";const h=new Map;for(const v of i){const g=h.get(v.filePath)??[];g.push(v),h.set(v.filePath,g)}const m=["# Code Review Comments",""];for(const[v,g]of h){m.push(`## ${v}`,"");for(const y of g)m.push(`### Line ${y.lineNumber} (${y.side})`,""),m.push(y.body,"")}return m.join(`
1915
- `)},[i]),f=ue.useCallback(h=>i.filter(m=>m.filePath===h).map(m=>({side:m.side,lineNumber:m.lineNumber,metadata:m})),[i]),d=ue.useCallback(async()=>{const h=u();await navigator.clipboard.writeText(h)},[u]);return{comments:i,addComment:a,removeComment:r,editComment:s,getAnnotationsForFile:f,formatAllComments:u,copyAllComments:d}}const BT={staged:!0,untracked:!0,diffStyle:"split"};function jT(){const[i,n]=ue.useState(BT),[a,r]=ue.useState(!1);ue.useEffect(()=>{fetch("/api/settings").then(u=>u.json()).then(u=>{n(u),r(!0)}).catch(()=>r(!0))},[]);const s=ue.useCallback(u=>{n(f=>{const d={...f,...u};return fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}),d})},[]);return{settings:i,loaded:a,updateSettings:s}}/**
1916
- * @license lucide-react v1.7.0 - ISC
1917
- *
1918
- * This source code is licensed under the ISC license.
1919
- * See the LICENSE file in the root directory of this source tree.
1920
- */const lb=(...i)=>i.filter((n,a,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===a).join(" ").trim();/**
1921
- * @license lucide-react v1.7.0 - ISC
1922
- *
1923
- * This source code is licensed under the ISC license.
1924
- * See the LICENSE file in the root directory of this source tree.
1925
- */const PT=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
1926
- * @license lucide-react v1.7.0 - ISC
1927
- *
1928
- * This source code is licensed under the ISC license.
1929
- * See the LICENSE file in the root directory of this source tree.
1930
- */const $T=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,r)=>r?r.toUpperCase():a.toLowerCase());/**
1931
- * @license lucide-react v1.7.0 - ISC
1932
- *
1933
- * This source code is licensed under the ISC license.
1934
- * See the LICENSE file in the root directory of this source tree.
1935
- */const M0=i=>{const n=$T(i);return n.charAt(0).toUpperCase()+n.slice(1)};/**
1936
- * @license lucide-react v1.7.0 - ISC
1937
- *
1938
- * This source code is licensed under the ISC license.
1939
- * See the LICENSE file in the root directory of this source tree.
1940
- */var hf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
1941
- * @license lucide-react v1.7.0 - ISC
1942
- *
1943
- * This source code is licensed under the ISC license.
1944
- * See the LICENSE file in the root directory of this source tree.
1945
- */const qT=i=>{for(const n in i)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},YT=ue.createContext({}),XT=()=>ue.useContext(YT),QT=ue.forwardRef(({color:i,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:s="",children:u,iconNode:f,...d},h)=>{const{size:m=24,strokeWidth:v=2,absoluteStrokeWidth:g=!1,color:y="currentColor",className:_=""}=XT()??{},E=r??g?Number(a??v)*24/Number(n??m):a??v;return ue.createElement("svg",{ref:h,...hf,width:n??m??hf.width,height:n??m??hf.height,stroke:i??y,strokeWidth:E,className:lb("lucide",_,s),...!u&&!qT(d)&&{"aria-hidden":"true"},...d},[...f.map(([w,N])=>ue.createElement(w,N)),...Array.isArray(u)?u:[u]])});/**
1946
- * @license lucide-react v1.7.0 - ISC
1947
- *
1948
- * This source code is licensed under the ISC license.
1949
- * See the LICENSE file in the root directory of this source tree.
1950
- */const nn=(i,n)=>{const a=ue.forwardRef(({className:r,...s},u)=>ue.createElement(QT,{ref:u,iconNode:n,className:lb(`lucide-${PT(M0(i))}`,`lucide-${i}`,r),...s}));return a.displayName=M0(i),a};/**
1951
- * @license lucide-react v1.7.0 - ISC
1952
- *
1953
- * This source code is licensed under the ISC license.
1954
- * See the LICENSE file in the root directory of this source tree.
1955
- */const FT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ZT=nn("chevron-right",FT);/**
1956
- * @license lucide-react v1.7.0 - ISC
1957
- *
1958
- * This source code is licensed under the ISC license.
1959
- * See the LICENSE file in the root directory of this source tree.
1960
- */const KT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],WT=nn("circle-user",KT);/**
1961
- * @license lucide-react v1.7.0 - ISC
1962
- *
1963
- * This source code is licensed under the ISC license.
1964
- * See the LICENSE file in the root directory of this source tree.
1965
- */const JT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],ex=nn("file-check",JT);/**
1966
- * @license lucide-react v1.7.0 - ISC
1967
- *
1968
- * This source code is licensed under the ISC license.
1969
- * See the LICENSE file in the root directory of this source tree.
1970
- */const tx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],nx=nn("file-diff",tx);/**
1971
- * @license lucide-react v1.7.0 - ISC
1972
- *
1973
- * This source code is licensed under the ISC license.
1974
- * See the LICENSE file in the root directory of this source tree.
1975
- */const ix=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}]],ax=nn("file-minus",ix);/**
1976
- * @license lucide-react v1.7.0 - ISC
1977
- *
1978
- * This source code is licensed under the ISC license.
1979
- * See the LICENSE file in the root directory of this source tree.
1980
- */const lx=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],rx=nn("file-pen",lx);/**
1981
- * @license lucide-react v1.7.0 - ISC
1982
- *
1983
- * This source code is licensed under the ISC license.
1984
- * See the LICENSE file in the root directory of this source tree.
1985
- */const ox=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],sx=nn("file-plus",ox);/**
1986
- * @license lucide-react v1.7.0 - ISC
1987
- *
1988
- * This source code is licensed under the ISC license.
1989
- * See the LICENSE file in the root directory of this source tree.
1990
- */const ux=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],cx=nn("folder-open",ux);/**
1991
- * @license lucide-react v1.7.0 - ISC
1992
- *
1993
- * This source code is licensed under the ISC license.
1994
- * See the LICENSE file in the root directory of this source tree.
1995
- */const fx=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],dx=nn("folder",fx);/**
1996
- * @license lucide-react v1.7.0 - ISC
1997
- *
1998
- * This source code is licensed under the ISC license.
1999
- * See the LICENSE file in the root directory of this source tree.
2000
- */const hx=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],px=nn("git-branch",hx);/**
2001
- * @license lucide-react v1.7.0 - ISC
2002
- *
2003
- * This source code is licensed under the ISC license.
2004
- * See the LICENSE file in the root directory of this source tree.
2005
- */const mx=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],gx=nn("message-square",mx);/**
2006
- * @license lucide-react v1.7.0 - ISC
2007
- *
2008
- * This source code is licensed under the ISC license.
2009
- * See the LICENSE file in the root directory of this source tree.
2010
- */const vx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bx=nn("search",vx);function yx({repoName:i,branch:n,fileCount:a,additions:r,deletions:s,commentCount:u,diffStyle:f,diffOptions:d,customMode:h,onDiffStyleChange:m,onDiffOptionsChange:v,onCopyComments:g}){const[y,_]=ue.useState(!1),E=async()=>{await g(),_(!0),setTimeout(()=>_(!1),2e3)};return F.jsxs("div",{className:"toolbar",children:[F.jsxs("div",{className:"toolbar-left",children:[F.jsx("h1",{className:"toolbar-title",children:i}),n&&F.jsxs("span",{className:"toolbar-branch",children:[F.jsx(px,{size:12}),n]}),F.jsxs("span",{className:"toolbar-stat",children:[a," file",a!==1?"s":""," changed",r>0&&F.jsxs("span",{className:"stat-additions",children:[" +",r]}),s>0&&F.jsxs("span",{className:"stat-deletions",children:[" -",s]})]})]}),F.jsxs("div",{className:"toolbar-right",children:[!h&&F.jsxs(F.Fragment,{children:[F.jsxs("label",{className:"toolbar-checkbox",children:[F.jsx("input",{type:"checkbox",checked:d.staged,onChange:w=>v({...d,staged:w.target.checked})}),"Staged"]}),F.jsxs("label",{className:"toolbar-checkbox",children:[F.jsx("input",{type:"checkbox",checked:d.untracked,onChange:w=>v({...d,untracked:w.target.checked})}),"Untracked"]})]}),F.jsxs("div",{className:"toolbar-toggle",children:[F.jsx("button",{className:`btn btn-sm ${f==="split"?"btn-active":""}`,onClick:()=>m("split"),children:"Split"}),F.jsx("button",{className:`btn btn-sm ${f==="unified"?"btn-active":""}`,onClick:()=>m("unified"),children:"Unified"})]}),F.jsx("button",{className:"btn btn-primary btn-sm",onClick:E,disabled:u===0,children:y?"Copied!":`Copy comments (${u})`})]})]})}const _x={position:"absolute",top:0,bottom:0,textAlign:"center"},Sx={display:"contents"};function z0(){return null}function Ex(i,n){return typeof window>"u"&&n!=null?F.jsxs(F.Fragment,{children:[F.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:n}}),i]}):F.jsx(F.Fragment,{children:i})}const Cx=ue.createContext(void 0);function Ax(){return ue.useContext(Cx)}const Tx=ue.createContext(void 0);function xx(i){const n=ue.useRef(i);return ue.useInsertionEffect(()=>void(n.current=i)),ue.useCallback((...a)=>n.current(...a),[])}function wx({fileDiff:i,actions:n,renderCustomHeader:a,renderHeaderPrefix:r,renderHeaderMetadata:s,renderAnnotation:u,renderGutterUtility:f,renderHoverUtility:d,renderMergeConflictUtility:h,lineAnnotations:m,getHoveredLine:v,getInstance:g}){const y=f??d,_=a==null?void 0:a(i),E=r==null?void 0:r(i),w=s==null?void 0:s(i);return F.jsxs(F.Fragment,{children:[_!=null?F.jsx("div",{slot:Pf,children:_}):F.jsxs(F.Fragment,{children:[E!=null&&F.jsx("div",{slot:Bf,children:E}),w!=null&&F.jsx("div",{slot:jf,children:w})]}),u!=null&&(m==null?void 0:m.map((N,D)=>F.jsx("div",{slot:ar(N),children:u(N)},D))),n!=null&&h!=null&&g!=null&&n.map(N=>{if(N==null)return;const D=Lx(N,i);return F.jsx("div",{slot:D,style:Sx,children:h(N,g)},D)}),y!=null&&F.jsx("div",{slot:"gutter-utility-slot",style:_x,children:y(v)})]})}function Lx(i,n){const a=kT(i,n);return a!=null?LT({hunkIndex:a.hunkIndex,lineIndex:a.lineIndex,conflictIndex:i.conflictIndex}):void 0}const kx=typeof window>"u"?ue.useEffect:ue.useLayoutEffect;function Rx({fileDiff:i,options:n,lineAnnotations:a,selectedLines:r,prerenderedHTML:s,metrics:u,hasGutterRenderUtility:f,hasCustomHeader:d,disableWorkerPool:h}){const m=Ax(),v=ue.useContext(Tx),g=ue.useRef(null),y=xx(_=>{if(_!=null){if(g.current!=null)throw new Error("useFileDiffInstance: An instance should not already exist when a node is created");m!=null?g.current=new MT(pf({hasCustomHeader:d,hasGutterRenderUtility:f,options:n}),m,u,h?void 0:v,!0):g.current=new ab(pf({hasCustomHeader:d,hasGutterRenderUtility:f,options:n}),h?void 0:v,!0),g.current.hydrate({fileDiff:i,fileContainer:_,lineAnnotations:a,prerenderedHTML:s})}else{if(g.current==null)throw new Error("useFileDiffInstance: A FileDiff instance should exist when unmounting");g.current.cleanUp(),g.current=null}});return kx(()=>{const{current:_}=g;if(_==null)return;const E=pf({hasCustomHeader:d,hasGutterRenderUtility:f,options:n}),w=!UT(_.options,E);_.setOptions(E),_.render({forceRender:w,fileDiff:i,lineAnnotations:a}),r!==void 0&&_.setSelectedLines(r)}),{ref:y,getHoveredLine:ue.useCallback(()=>{var _;return(_=g.current)==null?void 0:_.getHoveredLine()},[])}}function pf({options:i,hasCustomHeader:n,hasGutterRenderUtility:a}){return a||n?{...i,renderCustomHeader:n?z0:void 0,renderGutterUtility:a?z0:void 0}:i}function Dx({fileDiff:i,options:n,metrics:a,lineAnnotations:r,selectedLines:s,className:u,style:f,prerenderedHTML:d,renderAnnotation:h,renderCustomHeader:m,renderHeaderPrefix:v,renderHeaderMetadata:g,renderGutterUtility:y,renderHoverUtility:_,disableWorkerPool:E=!1}){const{ref:w,getHoveredLine:N}=Rx({fileDiff:i,options:n,metrics:a,lineAnnotations:r,selectedLines:s,prerenderedHTML:d,hasGutterRenderUtility:y!=null||_!=null,hasCustomHeader:m!=null,disableWorkerPool:E});return F.jsx(Yo,{ref:w,className:u,style:f,children:Ex(wx({fileDiff:i,renderCustomHeader:m,renderHeaderPrefix:v,renderHeaderMetadata:g,renderAnnotation:h,renderGutterUtility:y,lineAnnotations:r,renderHoverUtility:_,getHoveredLine:N}),d)})}function Ox({onSubmit:i,onCancel:n}){const[a,r]=ue.useState(""),s=ue.useRef(null);ue.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[]);const u=()=>{const d=a.trim();d&&i(d)},f=d=>{d.key==="Enter"&&(d.metaKey||d.ctrlKey)&&(d.preventDefault(),u()),d.key==="Escape"&&n()};return F.jsxs("div",{className:"comment-form",children:[F.jsx("textarea",{ref:s,value:a,onChange:d=>r(d.target.value),onKeyDown:f,placeholder:"Leave a review comment...",rows:3}),F.jsxs("div",{className:"comment-form-actions",children:[F.jsx("button",{className:"btn btn-secondary",onClick:n,children:"Cancel"}),F.jsx("button",{className:"btn btn-primary",onClick:u,disabled:!a.trim(),children:"Comment"})]})]})}function Nx(i){const n=Math.floor((Date.now()-i)/1e3);if(n<5)return"just now";if(n<60)return`${n}s ago`;const a=Math.floor(n/60);if(a<60)return`${a}m ago`;const r=Math.floor(a/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function Mx({comment:i,onDelete:n}){const[,a]=ue.useState(0);return ue.useEffect(()=>{const r=setInterval(()=>a(s=>s+1),3e4);return()=>clearInterval(r)},[]),F.jsxs("div",{className:"comment-bubble",children:[F.jsxs("div",{className:"comment-bubble-header",children:[F.jsx(WT,{size:18,className:"comment-bubble-avatar"}),F.jsx("span",{className:"comment-bubble-time",children:Nx(i.createdAt)}),F.jsx("button",{className:"comment-bubble-delete",onClick:()=>n(i.id),title:"Delete comment",children:"×"})]}),F.jsx("div",{className:"comment-bubble-body",children:i.body})]})}function zx({id:i,fileDiff:n,filePath:a,annotations:r,diffStyle:s,viewed:u,onViewedChange:f,onAddComment:d,onDeleteComment:h}){const[m,v]=ue.useState(null),g=[...r,...m?[{side:m.side,lineNumber:m.lineNumber,metadata:{_pending:!0}}]:[]];return F.jsx("div",{className:`file-diff-card ${u?"file-diff-viewed":""}`,id:i,children:u?F.jsxs("div",{className:"file-diff-viewed-header",children:[F.jsx("span",{className:"file-diff-viewed-name",children:a}),F.jsxs("label",{className:"viewed-label viewed-checked",onClick:y=>y.stopPropagation(),children:[F.jsx("input",{type:"checkbox",checked:u,onChange:y=>f(a,y.target.checked)}),"Viewed"]})]}):F.jsx(F.Fragment,{children:F.jsx(Dx,{fileDiff:n,options:{diffStyle:s,enableGutterUtility:!0,theme:{dark:"github-dark",light:"github-light"},themeType:"system"},lineAnnotations:g,renderHeaderMetadata:()=>F.jsxs("label",{className:"viewed-label",onClick:y=>y.stopPropagation(),children:[F.jsx("input",{type:"checkbox",checked:u,onChange:y=>f(a,y.target.checked)}),"Viewed"]}),renderAnnotation:y=>"_pending"in y.metadata?F.jsx(Ox,{onSubmit:_=>{d(a,m.side,m.lineNumber,_),v(null)},onCancel:()=>v(null)}):F.jsx(Mx,{comment:y.metadata,onDelete:h}),renderGutterUtility:y=>F.jsx("button",{className:"gutter-add-btn",onClick:()=>{const _=y();_&&v({side:_.side,lineNumber:_.lineNumber})},children:"+"})})})})}function Ix({files:i,diffStyle:n,viewedFiles:a,onViewedChange:r,getAnnotationsForFile:s,onAddComment:u,onDeleteComment:f}){return i.length===0?F.jsx("div",{className:"empty-state",children:F.jsx("p",{children:"No changes found."})}):F.jsx("div",{className:"diff-viewer",children:i.map((d,h)=>{const m=d.name;return F.jsx(zx,{id:`file-${m}`,fileDiff:d,filePath:m,annotations:s(m),diffStyle:n,viewed:a.has(m),onViewedChange:r,onAddComment:u,onDeleteComment:f},`${m}-${h}`)})})}function Ux(i){const n=[];for(const r of i){const s=r.name.split("/");let u=n;for(let f=0;f<s.length;f++){const d=s[f],h=s.slice(0,f+1).join("/"),m=f<s.length-1;let v=u.find(g=>g.name===d&&g.isDir===m);v||(v={name:d,path:h,isDir:m,children:[]},m||(v.file=r),u.push(v)),u=v.children}}function a(r){r.sort((s,u)=>s.isDir!==u.isDir?s.isDir?-1:1:s.name.localeCompare(u.name));for(const s of r)s.isDir&&a(s.children)}return a(n),n}function Hx(i){if(i.changeType)return i.changeType;if(i.prevName)return"rename-changed";const n=i.prevObjectId,a=i.newObjectId;return n==="0000000"||n==="0000000000000000000000000000000000000000"?"new":a==="0000000"||a==="0000000000000000000000000000000000000000"?"deleted":"change"}function Vx(i,n){if(n)return F.jsx(ex,{size:16,className:"ft-icon icon-viewed"});switch(i?Hx(i):"change"){case"new":return F.jsx(sx,{size:16,className:"ft-icon icon-added"});case"deleted":return F.jsx(ax,{size:16,className:"ft-icon icon-deleted"});case"rename-pure":case"rename-changed":return F.jsx(rx,{size:16,className:"ft-icon icon-renamed"});default:return F.jsx(nx,{size:16,className:"ft-icon icon-modified"})}}function rb({node:i,activeFile:n,commentCounts:a,viewedFiles:r,onFileClick:s,depth:u,defaultExpanded:f}){const[d,h]=ue.useState(f);return F.jsxs("li",{children:[F.jsxs("div",{className:"ft-row ft-dir",style:{paddingLeft:`${12+u*16}px`},onClick:()=>h(!d),children:[F.jsx(ZT,{size:14,className:`ft-chevron ${d?"ft-chevron-expanded":""}`}),d?F.jsx(cx,{size:16,className:"ft-icon ft-folder-icon"}):F.jsx(dx,{size:16,className:"ft-icon ft-folder-icon"}),F.jsx("span",{className:"ft-dir-name",children:i.name})]}),d&&F.jsx("ul",{className:"ft-list",children:i.children.map(m=>{var v,g;return m.isDir?F.jsx(rb,{node:m,activeFile:n,commentCounts:a,viewedFiles:r,onFileClick:s,depth:u+1,defaultExpanded:!0},m.path):F.jsx(ob,{node:m,activeFile:n,commentCount:a[((v=m.file)==null?void 0:v.name)??""]??0,viewed:r.has(((g=m.file)==null?void 0:g.name)??""),onFileClick:s,depth:u+1},m.path)})})]})}function ob({node:i,activeFile:n,commentCount:a,viewed:r,onFileClick:s,depth:u}){var h;const f=((h=i.file)==null?void 0:h.name)??i.path,d=n===f;return F.jsx("li",{children:F.jsxs("div",{className:`ft-row ft-file ${d?"ft-file-active":""} ${r?"ft-file-viewed":""}`,style:{paddingLeft:`${12+u*16+20}px`},onClick:()=>s(f),title:f,children:[Vx(i.file,r),F.jsx("span",{className:"ft-file-name",children:i.name}),a>0&&F.jsxs("span",{className:"ft-comment-count",children:[F.jsx(gx,{size:14}),a]})]})})}function Gx({files:i,activeFile:n,commentCounts:a,viewedFiles:r,onFileClick:s}){const[u,f]=ue.useState(""),d=ue.useMemo(()=>{if(!u)return i;const m=u.toLowerCase();return i.filter(v=>v.name.toLowerCase().includes(m))},[i,u]),h=ue.useMemo(()=>Ux(d),[d]);return F.jsxs("div",{className:"ft",children:[F.jsx("div",{className:"ft-search",children:F.jsxs("div",{className:"ft-search-wrapper",children:[F.jsx(bx,{size:14,className:"ft-search-icon"}),F.jsx("input",{type:"text",placeholder:"Filter files...",value:u,onChange:m=>f(m.target.value),className:"ft-search-input"})]})}),F.jsx("ul",{className:"ft-list ft-root",children:h.map(m=>{var v,g;return m.isDir?F.jsx(rb,{node:m,activeFile:n,commentCounts:a,viewedFiles:r,onFileClick:s,depth:0,defaultExpanded:!0},m.path):F.jsx(ob,{node:m,activeFile:n,commentCount:a[((v=m.file)==null?void 0:v.name)??""]??0,viewed:r.has(((g=m.file)==null?void 0:g.name)??""),onFileClick:s,depth:0},m.path)})})]})}function Bx(){const{settings:i,loaded:n,updateSettings:a}=jT(),{patch:r,repoName:s,branch:u,customMode:f,loading:d,error:h}=HT({staged:i.staged,untracked:i.untracked}),{comments:m,addComment:v,removeComment:g,getAnnotationsForFile:y,copyAllComments:_}=GT(),[E,w]=ue.useState(null),[N,D]=ue.useState(new Set),L=ue.useRef(null),T=ue.useMemo(()=>{if(!r)return[];try{return xT(r).flatMap(Z=>Z.files)}catch{return[]}},[r]),U=ue.useMemo(()=>{if(!r)return{additions:0,deletions:0};let P=0,Z=0;for(const ee of r.split(`
2011
- `))ee.startsWith("+")&&!ee.startsWith("+++")?P++:ee.startsWith("-")&&!ee.startsWith("---")&&Z++;return{additions:P,deletions:Z}},[r]),q=ue.useMemo(()=>{const P={};for(const Z of m)P[Z.filePath]=(P[Z.filePath]??0)+1;return P},[m]),V=ue.useCallback(P=>{w(P);const Z=document.getElementById(`file-${P}`);Z&&Z.scrollIntoView({block:"start"})},[]),M=ue.useCallback((P,Z)=>{D(ee=>{const ae=new Set(ee);return Z?ae.add(P):ae.delete(P),ae})},[]);return!n||d?F.jsx("div",{className:"loading",children:F.jsx("p",{children:"Loading diff..."})}):h?F.jsx("div",{className:"error",children:F.jsxs("p",{children:["Error: ",h]})}):F.jsxs("div",{className:"app",children:[F.jsx(yx,{repoName:s,branch:u,fileCount:T.length,additions:U.additions,deletions:U.deletions,commentCount:m.length,diffStyle:i.diffStyle,diffOptions:{staged:i.staged,untracked:i.untracked},customMode:f,onDiffStyleChange:P=>a({diffStyle:P}),onDiffOptionsChange:P=>a(P),onCopyComments:_}),F.jsxs("div",{className:"app-body",children:[F.jsx("aside",{className:"sidebar",children:F.jsx(Gx,{files:T,activeFile:E,commentCounts:q,viewedFiles:N,onFileClick:V})}),F.jsx("main",{className:"main",ref:L,children:F.jsx(Ix,{files:T,diffStyle:i.diffStyle,viewedFiles:N,onViewedChange:M,getAnnotationsForFile:y,onAddComment:v,onDeleteComment:g})})]})]})}$_.createRoot(document.getElementById("root")).render(F.jsx(Bx,{}));