palettecn 0.1.0

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 (460) hide show
  1. package/dist/index.mjs +10 -0
  2. package/dist/web/nitro.json +17 -0
  3. package/dist/web/public/assets/abap-BdvmRIgS.js +1 -0
  4. package/dist/web/public/assets/actionscript-3-et0rQaqm.js +1 -0
  5. package/dist/web/public/assets/ada-DPgrustg.js +1 -0
  6. package/dist/web/public/assets/andromeeda-DJl1yeV_.js +1 -0
  7. package/dist/web/public/assets/angular-html-Dm7s7tSx.js +1 -0
  8. package/dist/web/public/assets/angular-ts-B_ywTULt.js +1 -0
  9. package/dist/web/public/assets/apache-CFpsYX8S.js +1 -0
  10. package/dist/web/public/assets/apex-CN5n6pbI.js +1 -0
  11. package/dist/web/public/assets/apl-Dm11wHHc.js +1 -0
  12. package/dist/web/public/assets/applescript-JrY23hsL.js +1 -0
  13. package/dist/web/public/assets/ara-DR83hn3A.js +1 -0
  14. package/dist/web/public/assets/asciidoc-Dpu9XLB1.js +1 -0
  15. package/dist/web/public/assets/asm-BYI3A31V.js +1 -0
  16. package/dist/web/public/assets/astro-DP1naDCT.js +1 -0
  17. package/dist/web/public/assets/aurora-x-Nav5jnoQ.js +1 -0
  18. package/dist/web/public/assets/awk-BIoTx_w6.js +1 -0
  19. package/dist/web/public/assets/ayu-dark-H5QV5J7K.js +1 -0
  20. package/dist/web/public/assets/ayu-light-BrwTNGnU.js +1 -0
  21. package/dist/web/public/assets/ayu-mirage-Bg6FpF5w.js +1 -0
  22. package/dist/web/public/assets/ballerina-BFvDNd4T.js +1 -0
  23. package/dist/web/public/assets/bat-DtQkx7Ny.js +1 -0
  24. package/dist/web/public/assets/beancount-BIjKALa1.js +1 -0
  25. package/dist/web/public/assets/berry-BPkDN_EZ.js +1 -0
  26. package/dist/web/public/assets/bibtex-Dur2CNW6.js +1 -0
  27. package/dist/web/public/assets/bicep-BMz1bZ7m.js +1 -0
  28. package/dist/web/public/assets/bird2-91rdr9s7.js +1 -0
  29. package/dist/web/public/assets/blade-DD5O596X.js +1 -0
  30. package/dist/web/public/assets/bsl-FmB7U2qd.js +1 -0
  31. package/dist/web/public/assets/bundle-mjs-Bso3xn9x.js +1 -0
  32. package/dist/web/public/assets/c-DqqBLLyl.js +1 -0
  33. package/dist/web/public/assets/c3-CJTbEooS.js +1 -0
  34. package/dist/web/public/assets/cadence-C0GI7BZZ.js +1 -0
  35. package/dist/web/public/assets/cairo-B5JMmIC0.js +1 -0
  36. package/dist/web/public/assets/catppuccin-frappe-D76-cUjK.js +1 -0
  37. package/dist/web/public/assets/catppuccin-latte-DUHNJ_6_.js +1 -0
  38. package/dist/web/public/assets/catppuccin-macchiato-CFhPH2wd.js +1 -0
  39. package/dist/web/public/assets/catppuccin-mocha-BRD0cvUW.js +1 -0
  40. package/dist/web/public/assets/chunk-FRKYWMV7-DUkk3w4h.js +122 -0
  41. package/dist/web/public/assets/clarity-KgUVrNfC.js +1 -0
  42. package/dist/web/public/assets/clojure-BhQuoGIG.js +1 -0
  43. package/dist/web/public/assets/cmake-CA59gUFQ.js +1 -0
  44. package/dist/web/public/assets/cobol-CCFShgGZ.js +1 -0
  45. package/dist/web/public/assets/codeowners-CD36YqjJ.js +1 -0
  46. package/dist/web/public/assets/codeql-CrMosKUt.js +1 -0
  47. package/dist/web/public/assets/coffee-C-Mn3tBT.js +1 -0
  48. package/dist/web/public/assets/common-lisp-DYnOjAFz.js +1 -0
  49. package/dist/web/public/assets/components-DiZ1dSl3.js +77 -0
  50. package/dist/web/public/assets/coq-BaHtq3Qt.js +1 -0
  51. package/dist/web/public/assets/cpp-D8Y73ItU.js +1 -0
  52. package/dist/web/public/assets/crystal-CnXWqbxx.js +1 -0
  53. package/dist/web/public/assets/csharp-D6sghVPa.js +1 -0
  54. package/dist/web/public/assets/css-CUGjdPw_.js +1 -0
  55. package/dist/web/public/assets/csv-DuxyxUAI.js +1 -0
  56. package/dist/web/public/assets/cue-D9NRAX0_.js +1 -0
  57. package/dist/web/public/assets/cypher-HJRdtilF.js +1 -0
  58. package/dist/web/public/assets/d-B4Ont7_X.js +1 -0
  59. package/dist/web/public/assets/dark-plus-DZSBycyp.js +1 -0
  60. package/dist/web/public/assets/dart-Dp4asavE.js +1 -0
  61. package/dist/web/public/assets/dax-DBUubp6S.js +1 -0
  62. package/dist/web/public/assets/desktop-DQ0n6zIQ.js +1 -0
  63. package/dist/web/public/assets/diff-CFHlrffC.js +1 -0
  64. package/dist/web/public/assets/docker-BuefmsF5.js +1 -0
  65. package/dist/web/public/assets/dotenv-BKTsUQ_r.js +1 -0
  66. package/dist/web/public/assets/dracula-MOn9qacs.js +1 -0
  67. package/dist/web/public/assets/dracula-soft-C4r_sC_D.js +1 -0
  68. package/dist/web/public/assets/dream-maker-BNdv5lLS.js +1 -0
  69. package/dist/web/public/assets/edge-C-Mi8Oda.js +1 -0
  70. package/dist/web/public/assets/elixir-CTS5wQtX.js +1 -0
  71. package/dist/web/public/assets/elm-rM310x8D.js +1 -0
  72. package/dist/web/public/assets/emacs-lisp-D9FIGRtM.js +1 -0
  73. package/dist/web/public/assets/erb-oaGjGVGO.js +1 -0
  74. package/dist/web/public/assets/erlang-q4Mkyw3m.js +1 -0
  75. package/dist/web/public/assets/everforest-dark-CNa2QFRn.js +1 -0
  76. package/dist/web/public/assets/everforest-light-DRbUDqJT.js +1 -0
  77. package/dist/web/public/assets/fennel-DpqQTaVZ.js +1 -0
  78. package/dist/web/public/assets/field-1-Ujza0S5j.js +1 -0
  79. package/dist/web/public/assets/fish-hyk5x6Q4.js +1 -0
  80. package/dist/web/public/assets/fluent-DMll-MGX.js +1 -0
  81. package/dist/web/public/assets/fortran-fixed-form-BmdfKovV.js +1 -0
  82. package/dist/web/public/assets/fortran-free-form-MCAifii4.js +1 -0
  83. package/dist/web/public/assets/fsharp-DLlBn9Nl.js +1 -0
  84. package/dist/web/public/assets/gdresource-BzFzBRli.js +1 -0
  85. package/dist/web/public/assets/gdscript-D3R4J0Cv.js +1 -0
  86. package/dist/web/public/assets/gdshader-BAubtqqN.js +1 -0
  87. package/dist/web/public/assets/genie-BnIIX2pC.js +1 -0
  88. package/dist/web/public/assets/gherkin-CL3NUuB1.js +1 -0
  89. package/dist/web/public/assets/git-commit-BYPE8h85.js +1 -0
  90. package/dist/web/public/assets/git-rebase-Bmmgf6eN.js +1 -0
  91. package/dist/web/public/assets/github-dark-default-C6I2oE4c.js +1 -0
  92. package/dist/web/public/assets/github-dark-dimmed-DEqwxg6D.js +1 -0
  93. package/dist/web/public/assets/github-dark-high-contrast-DDt3j0cs.js +1 -0
  94. package/dist/web/public/assets/github-dark-oLN6SDKl.js +1 -0
  95. package/dist/web/public/assets/github-light-DaN-N2Gj.js +1 -0
  96. package/dist/web/public/assets/github-light-default-B3EwMbS7.js +1 -0
  97. package/dist/web/public/assets/github-light-high-contrast-Cl9D0f_e.js +1 -0
  98. package/dist/web/public/assets/gleam-Cvj8QRtQ.js +1 -0
  99. package/dist/web/public/assets/glimmer-js-CahbROb1.js +1 -0
  100. package/dist/web/public/assets/glimmer-ts-JMFYNbot.js +1 -0
  101. package/dist/web/public/assets/global-XWAvxWcA.css +2 -0
  102. package/dist/web/public/assets/glsl-BCuCNM3V.js +1 -0
  103. package/dist/web/public/assets/gn-DxCHSEMl.js +1 -0
  104. package/dist/web/public/assets/gnuplot-CkGXHK7B.js +1 -0
  105. package/dist/web/public/assets/go-B_NLCuTj.js +1 -0
  106. package/dist/web/public/assets/graphql-RXOfHGfI.js +1 -0
  107. package/dist/web/public/assets/groovy-DVge8oRs.js +1 -0
  108. package/dist/web/public/assets/gruvbox-dark-hard-BwZz1yni.js +1 -0
  109. package/dist/web/public/assets/gruvbox-dark-medium-Bqy6jkuO.js +1 -0
  110. package/dist/web/public/assets/gruvbox-dark-soft-DjUvyUfH.js +1 -0
  111. package/dist/web/public/assets/gruvbox-light-hard-BTLmfPdm.js +1 -0
  112. package/dist/web/public/assets/gruvbox-light-medium-DeWqsWs6.js +1 -0
  113. package/dist/web/public/assets/gruvbox-light-soft-BL8ld-1F.js +1 -0
  114. package/dist/web/public/assets/hack-BBQpwyf_.js +1 -0
  115. package/dist/web/public/assets/haml-mWELc9kh.js +1 -0
  116. package/dist/web/public/assets/handlebars-COrUo8cC.js +1 -0
  117. package/dist/web/public/assets/haskell-DRmM8XlQ.js +1 -0
  118. package/dist/web/public/assets/haxe-BEhq8ZEr.js +1 -0
  119. package/dist/web/public/assets/hcl-B5ZIaGS0.js +1 -0
  120. package/dist/web/public/assets/highlighted-body-TPN3WLV5-YJgGFx4e.js +1 -0
  121. package/dist/web/public/assets/hjson-B9uRLqIO.js +1 -0
  122. package/dist/web/public/assets/hlsl-Hv1kKjrS.js +1 -0
  123. package/dist/web/public/assets/horizon-ClXGBjWw.js +1 -0
  124. package/dist/web/public/assets/horizon-bright-CvUCr3ux.js +1 -0
  125. package/dist/web/public/assets/houston-NqkqG60q.js +1 -0
  126. package/dist/web/public/assets/html-cmigv1ou.js +1 -0
  127. package/dist/web/public/assets/html-derivative-B3me0pSu.js +1 -0
  128. package/dist/web/public/assets/http-BojM9cyU.js +1 -0
  129. package/dist/web/public/assets/hurl-BxEmMiGP.js +1 -0
  130. package/dist/web/public/assets/hxml-CoBuVbfs.js +1 -0
  131. package/dist/web/public/assets/hy-CeISYGGU.js +1 -0
  132. package/dist/web/public/assets/imba-xjcDFXUW.js +1 -0
  133. package/dist/web/public/assets/ini-D0ZCSj6e.js +1 -0
  134. package/dist/web/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  135. package/dist/web/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  136. package/dist/web/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  137. package/dist/web/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  138. package/dist/web/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  139. package/dist/web/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  140. package/dist/web/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  141. package/dist/web/public/assets/java-BvheClGI.js +1 -0
  142. package/dist/web/public/assets/javascript-DjlJORDg.js +1 -0
  143. package/dist/web/public/assets/jinja-Bi4sG72X.js +1 -0
  144. package/dist/web/public/assets/jison-BTz5Ik2Y.js +1 -0
  145. package/dist/web/public/assets/json-CiTd40Rg.js +1 -0
  146. package/dist/web/public/assets/json5-FR9EyF7a.js +1 -0
  147. package/dist/web/public/assets/jsonc-CHIeFfsD.js +1 -0
  148. package/dist/web/public/assets/jsonl-B4WQkwTf.js +1 -0
  149. package/dist/web/public/assets/jsonnet-vd-gzGkL.js +1 -0
  150. package/dist/web/public/assets/jssm-C_bj1LkZ.js +1 -0
  151. package/dist/web/public/assets/jsx-Bx-RZMFH.js +1 -0
  152. package/dist/web/public/assets/jsx-runtime-n8k0hwt8.js +1 -0
  153. package/dist/web/public/assets/julia-BKcIfSxk.js +1 -0
  154. package/dist/web/public/assets/just-IkZCagAs.js +1 -0
  155. package/dist/web/public/assets/kanagawa-dragon-B3Cz89vt.js +1 -0
  156. package/dist/web/public/assets/kanagawa-lotus-CRe_W5Ft.js +1 -0
  157. package/dist/web/public/assets/kanagawa-wave-BPqZ5XB7.js +1 -0
  158. package/dist/web/public/assets/kdl-BzL_Ak31.js +1 -0
  159. package/dist/web/public/assets/kotlin-BQQFk6ql.js +1 -0
  160. package/dist/web/public/assets/kusto-vWe6OLKV.js +1 -0
  161. package/dist/web/public/assets/laserwave-CwtvEUcj.js +1 -0
  162. package/dist/web/public/assets/latex-9N90_WFU.js +1 -0
  163. package/dist/web/public/assets/lean-CaqenOqv.js +1 -0
  164. package/dist/web/public/assets/less-CERnPzn6.js +1 -0
  165. package/dist/web/public/assets/light-plus-B9_M_OKq.js +1 -0
  166. package/dist/web/public/assets/liquid-CQLPDP7m.js +1 -0
  167. package/dist/web/public/assets/llvm-BylJXvm7.js +1 -0
  168. package/dist/web/public/assets/log-CBBcNcbO.js +1 -0
  169. package/dist/web/public/assets/logo-r-8Jc8Xk.js +1 -0
  170. package/dist/web/public/assets/lua-BBL6LXKd.js +1 -0
  171. package/dist/web/public/assets/luau-B2g7L-zP.js +1 -0
  172. package/dist/web/public/assets/main-0lKVDR64.css +2 -0
  173. package/dist/web/public/assets/main-CcNf0BOb.js +126 -0
  174. package/dist/web/public/assets/make-DK-HzJ2w.js +1 -0
  175. package/dist/web/public/assets/markdown-FgdsukgR.js +1 -0
  176. package/dist/web/public/assets/marko-CLZwt2N2.js +1 -0
  177. package/dist/web/public/assets/material-theme-DOJ9PS4O.js +1 -0
  178. package/dist/web/public/assets/material-theme-darker-DOurH5jT.js +1 -0
  179. package/dist/web/public/assets/material-theme-lighter-BfPWxCP6.js +1 -0
  180. package/dist/web/public/assets/material-theme-ocean-BcO5PKoq.js +1 -0
  181. package/dist/web/public/assets/material-theme-palenight-ClWQBDDd.js +1 -0
  182. package/dist/web/public/assets/matlab-DwyUVNXd.js +1 -0
  183. package/dist/web/public/assets/mdc-Bo8CRPg4.js +1 -0
  184. package/dist/web/public/assets/mdx-3EBShbsD.js +1 -0
  185. package/dist/web/public/assets/mermaid-ByG2-SLz.js +1 -0
  186. package/dist/web/public/assets/mermaid-O7DHMXV3-COAgR3aM.js +1 -0
  187. package/dist/web/public/assets/min-dark-ClJ2x5pc.js +1 -0
  188. package/dist/web/public/assets/min-light-BsOUz5iE.js +1 -0
  189. package/dist/web/public/assets/mipsasm-BKDtQCf3.js +1 -0
  190. package/dist/web/public/assets/mojo-DmEAK7iv.js +1 -0
  191. package/dist/web/public/assets/monokai-BKc3VADO.js +1 -0
  192. package/dist/web/public/assets/moonbit-Qm8v_cKN.js +1 -0
  193. package/dist/web/public/assets/move-CMectUPk.js +1 -0
  194. package/dist/web/public/assets/narrat-Bdm8NaK8.js +1 -0
  195. package/dist/web/public/assets/nextflow-BpSt05nC.js +1 -0
  196. package/dist/web/public/assets/nextflow-groovy-BZ-bqJ-u.js +1 -0
  197. package/dist/web/public/assets/nginx-ChZL5FWE.js +1 -0
  198. package/dist/web/public/assets/night-owl-CbFc5pXO.js +1 -0
  199. package/dist/web/public/assets/night-owl-light-zYbVCVuz.js +1 -0
  200. package/dist/web/public/assets/nim-5JnPAJWa.js +1 -0
  201. package/dist/web/public/assets/nix-P5P-2qHs.js +1 -0
  202. package/dist/web/public/assets/nord-C7hKGudV.js +1 -0
  203. package/dist/web/public/assets/nushell-DKPnC5RG.js +1 -0
  204. package/dist/web/public/assets/objective-c-BPwXtM0v.js +1 -0
  205. package/dist/web/public/assets/objective-cpp-CWYEdWNG.js +1 -0
  206. package/dist/web/public/assets/ocaml-CL7OJ02v.js +1 -0
  207. package/dist/web/public/assets/odin-Dtay25eA.js +1 -0
  208. package/dist/web/public/assets/one-dark-pro-CrdFNNwF.js +1 -0
  209. package/dist/web/public/assets/one-light-BUiz8X4B.js +1 -0
  210. package/dist/web/public/assets/openscad-WD4sXUUp.js +1 -0
  211. package/dist/web/public/assets/pascal-A6-MZnZ8.js +1 -0
  212. package/dist/web/public/assets/perl-Yq3AfnVV.js +1 -0
  213. package/dist/web/public/assets/php-CCj0foPx.js +1 -0
  214. package/dist/web/public/assets/pkl-cmPbg8fI.js +1 -0
  215. package/dist/web/public/assets/plastic-DtQ_LnDB.js +1 -0
  216. package/dist/web/public/assets/plsql-DwmuVd7q.js +1 -0
  217. package/dist/web/public/assets/po-CkVxkZaj.js +1 -0
  218. package/dist/web/public/assets/poimandres-Dt0xZuaa.js +1 -0
  219. package/dist/web/public/assets/polar-hStNz_W2.js +1 -0
  220. package/dist/web/public/assets/postcss-ZIk0AQ7M.js +1 -0
  221. package/dist/web/public/assets/powerquery-D0gqoHHD.js +1 -0
  222. package/dist/web/public/assets/powershell-DXB5HoVh.js +1 -0
  223. package/dist/web/public/assets/prisma-DmTrfxC0.js +1 -0
  224. package/dist/web/public/assets/prolog-CdoyriEj.js +1 -0
  225. package/dist/web/public/assets/proto-4MrN11dS.js +1 -0
  226. package/dist/web/public/assets/pug-svYJKDOQ.js +1 -0
  227. package/dist/web/public/assets/puppet-MEaLGpAP.js +1 -0
  228. package/dist/web/public/assets/purescript-CPxCorqB.js +1 -0
  229. package/dist/web/public/assets/python-f4fp5z0z.js +1 -0
  230. package/dist/web/public/assets/qml-BzEtWdqI.js +1 -0
  231. package/dist/web/public/assets/qmldir-DCjSceJ_.js +1 -0
  232. package/dist/web/public/assets/qss-BdM02NUc.js +1 -0
  233. package/dist/web/public/assets/r-luosIeJH.js +1 -0
  234. package/dist/web/public/assets/racket-D2tfa8Zc.js +1 -0
  235. package/dist/web/public/assets/raku-KeGPJVZg.js +1 -0
  236. package/dist/web/public/assets/razor-Bokxs4Qx.js +1 -0
  237. package/dist/web/public/assets/red-C0qZ-1lN.js +1 -0
  238. package/dist/web/public/assets/reg-DdnswvOj.js +1 -0
  239. package/dist/web/public/assets/regexp-CYC8h6V9.js +1 -0
  240. package/dist/web/public/assets/rel-RhzEfSRc.js +1 -0
  241. package/dist/web/public/assets/riscv-dS5TzX10.js +1 -0
  242. package/dist/web/public/assets/ron-CQjQSCVp.js +1 -0
  243. package/dist/web/public/assets/rose-pine-C89ViLdr.js +1 -0
  244. package/dist/web/public/assets/rose-pine-dawn-Dq2gf0yi.js +1 -0
  245. package/dist/web/public/assets/rose-pine-moon-CBDvXVs_.js +1 -0
  246. package/dist/web/public/assets/rosmsg-nvjuSIGu.js +1 -0
  247. package/dist/web/public/assets/routes-BXqJCOpL.js +542 -0
  248. package/dist/web/public/assets/rst-1xwvVGf7.js +1 -0
  249. package/dist/web/public/assets/ruby-Blad-eDx.js +1 -0
  250. package/dist/web/public/assets/rust-rV8q_xyI.js +1 -0
  251. package/dist/web/public/assets/sas-DUPWtptg.js +1 -0
  252. package/dist/web/public/assets/sass-CuxdoNN0.js +1 -0
  253. package/dist/web/public/assets/scala-Df4L7N3R.js +1 -0
  254. package/dist/web/public/assets/scheme-DalRmAPH.js +1 -0
  255. package/dist/web/public/assets/scss-CYQ8LEwP.js +1 -0
  256. package/dist/web/public/assets/sdbl-B_TmFnGf.js +1 -0
  257. package/dist/web/public/assets/shaderlab-DYEMDY3e.js +1 -0
  258. package/dist/web/public/assets/shellscript-DjKZ34ac.js +1 -0
  259. package/dist/web/public/assets/shellsession-C3kcnBnh.js +1 -0
  260. package/dist/web/public/assets/slack-dark-ak_jOeLl.js +1 -0
  261. package/dist/web/public/assets/slack-ochin-ByiYhLwu.js +1 -0
  262. package/dist/web/public/assets/smalltalk-DTTnjjZJ.js +1 -0
  263. package/dist/web/public/assets/snazzy-light-BBRYeY60.js +1 -0
  264. package/dist/web/public/assets/solarized-dark-BtoLnWkw.js +1 -0
  265. package/dist/web/public/assets/solarized-light-CtzUA7GI.js +1 -0
  266. package/dist/web/public/assets/solidity-CSIHEQ2t.js +1 -0
  267. package/dist/web/public/assets/soy-BN0uzUAI.js +1 -0
  268. package/dist/web/public/assets/sparql-B6k9tA6Q.js +1 -0
  269. package/dist/web/public/assets/splunk-DkRzN7V_.js +1 -0
  270. package/dist/web/public/assets/sql-Bx-WX28V.js +1 -0
  271. package/dist/web/public/assets/ssh-config-Bqp7ng33.js +1 -0
  272. package/dist/web/public/assets/stata-HAj7doU8.js +1 -0
  273. package/dist/web/public/assets/stylus-CdbCxDLX.js +1 -0
  274. package/dist/web/public/assets/surrealql-BkGf0I3k.js +1 -0
  275. package/dist/web/public/assets/svelte-DtWg6ssL.js +1 -0
  276. package/dist/web/public/assets/swift-yRu2dtgr.js +1 -0
  277. package/dist/web/public/assets/synthwave-84-2WIu6MHX.js +1 -0
  278. package/dist/web/public/assets/system-verilog-GUE_oP1V.js +1 -0
  279. package/dist/web/public/assets/systemd-FLIJAQZV.js +1 -0
  280. package/dist/web/public/assets/talonscript-DTR-8ILs.js +1 -0
  281. package/dist/web/public/assets/tasl-WHNWP-1F.js +1 -0
  282. package/dist/web/public/assets/tcl-BaBXNNp6.js +1 -0
  283. package/dist/web/public/assets/templ-Dc9vj00n.js +1 -0
  284. package/dist/web/public/assets/terraform-uJUFpr8t.js +1 -0
  285. package/dist/web/public/assets/tex-DA3dAz55.js +1 -0
  286. package/dist/web/public/assets/tokyo-night-BbogFqAr.js +1 -0
  287. package/dist/web/public/assets/toml-CyR4Gqq1.js +1 -0
  288. package/dist/web/public/assets/ts-tags-BD1j21LH.js +1 -0
  289. package/dist/web/public/assets/tsv-COLVYI6A.js +1 -0
  290. package/dist/web/public/assets/tsx-CFm2E6uK.js +1 -0
  291. package/dist/web/public/assets/turtle-PQwt4gkb.js +1 -0
  292. package/dist/web/public/assets/twig-DrUXy85s.js +1 -0
  293. package/dist/web/public/assets/typescript-Dy-5sXFx.js +1 -0
  294. package/dist/web/public/assets/typespec-Bb7qHV0g.js +1 -0
  295. package/dist/web/public/assets/typst-Bj_JElGz.js +1 -0
  296. package/dist/web/public/assets/v-BTkrtik4.js +1 -0
  297. package/dist/web/public/assets/vala-AXT1CI9v.js +1 -0
  298. package/dist/web/public/assets/vb-DzTKUgW8.js +1 -0
  299. package/dist/web/public/assets/verilog-aI3j5Xj8.js +1 -0
  300. package/dist/web/public/assets/vesper-BmnwIC_B.js +1 -0
  301. package/dist/web/public/assets/vhdl-4IgBB7vO.js +1 -0
  302. package/dist/web/public/assets/viml-D_XMKSR6.js +1 -0
  303. package/dist/web/public/assets/vitesse-black-DhmxIXiA.js +1 -0
  304. package/dist/web/public/assets/vitesse-dark-dvEH_9qt.js +1 -0
  305. package/dist/web/public/assets/vitesse-light-Ca0W2L1O.js +1 -0
  306. package/dist/web/public/assets/vue-DC_yTvy2.js +1 -0
  307. package/dist/web/public/assets/vue-html-Bp8x4gdt.js +1 -0
  308. package/dist/web/public/assets/vue-vine-ZcUkuUUp.js +1 -0
  309. package/dist/web/public/assets/vyper-Dz2f7-FK.js +1 -0
  310. package/dist/web/public/assets/wasm-CuXPCj65.js +1 -0
  311. package/dist/web/public/assets/wasm-DHkXUMsP.js +1 -0
  312. package/dist/web/public/assets/wenyan-BRAtM0Iv.js +1 -0
  313. package/dist/web/public/assets/wgsl-CMpn9jTa.js +1 -0
  314. package/dist/web/public/assets/wikitext-DRmBVmVA.js +1 -0
  315. package/dist/web/public/assets/wit-Drp_HLqJ.js +1 -0
  316. package/dist/web/public/assets/wolfram-C33umj7M.js +1 -0
  317. package/dist/web/public/assets/xml-BHoOtGbO.js +1 -0
  318. package/dist/web/public/assets/xsl-CN1PlFqm.js +1 -0
  319. package/dist/web/public/assets/yaml-DT0mpn8u.js +1 -0
  320. package/dist/web/public/assets/zenscript-BlYQ_Frf.js +1 -0
  321. package/dist/web/public/assets/zig-Buk7I0y-.js +1 -0
  322. package/dist/web/server/_chunks/ssr-renderer.mjs +15 -0
  323. package/dist/web/server/_libs/@ai-sdk/anthropic+[...].mjs +14021 -0
  324. package/dist/web/server/_libs/@ai-sdk/moonshotai+[...].mjs +898 -0
  325. package/dist/web/server/_libs/@ai-sdk/react+[...].mjs +8969 -0
  326. package/dist/web/server/_libs/@emotion/is-prop-valid+[...].mjs +34 -0
  327. package/dist/web/server/_libs/@floating-ui/core+[...].mjs +698 -0
  328. package/dist/web/server/_libs/@floating-ui/dom+[...].mjs +644 -0
  329. package/dist/web/server/_libs/@floating-ui/react-dom+[...].mjs +475 -0
  330. package/dist/web/server/_libs/@lobehub/icons+[...].mjs +3079 -0
  331. package/dist/web/server/_libs/@radix-ui/react-arrow+[...].mjs +184 -0
  332. package/dist/web/server/_libs/@radix-ui/react-collapsible+[...].mjs +374 -0
  333. package/dist/web/server/_libs/@radix-ui/react-dialog+[...].mjs +1503 -0
  334. package/dist/web/server/_libs/@radix-ui/react-menu+[...].mjs +1236 -0
  335. package/dist/web/server/_libs/@radix-ui/react-select+[...].mjs +1007 -0
  336. package/dist/web/server/_libs/@shikijs/core+[...].mjs +9017 -0
  337. package/dist/web/server/_libs/@shikijs/engine-javascript+[...].mjs +3159 -0
  338. package/dist/web/server/_libs/@streamdown/math+[...].mjs +37559 -0
  339. package/dist/web/server/_libs/@tanstack/react-router+[...].mjs +14074 -0
  340. package/dist/web/server/_libs/_.mjs +3 -0
  341. package/dist/web/server/_libs/_2.mjs +3 -0
  342. package/dist/web/server/_libs/_3.mjs +2 -0
  343. package/dist/web/server/_libs/_4.mjs +2 -0
  344. package/dist/web/server/_libs/ai-sdk__gateway+vercel__oidc.mjs +1255 -0
  345. package/dist/web/server/_libs/ai-sdk__google.mjs +1630 -0
  346. package/dist/web/server/_libs/ai-sdk__openai+zod.mjs +4951 -0
  347. package/dist/web/server/_libs/ai-sdk__provider-utils.mjs +411 -0
  348. package/dist/web/server/_libs/ai-sdk__provider.mjs +222 -0
  349. package/dist/web/server/_libs/bail.mjs +13 -0
  350. package/dist/web/server/_libs/character-entities.mjs +2135 -0
  351. package/dist/web/server/_libs/class-variance-authority+clsx.mjs +69 -0
  352. package/dist/web/server/_libs/color+[...].mjs +2185 -0
  353. package/dist/web/server/_libs/copy-text-to-clipboard.mjs +40 -0
  354. package/dist/web/server/_libs/d3-array.mjs +231 -0
  355. package/dist/web/server/_libs/d3-color.mjs +330 -0
  356. package/dist/web/server/_libs/d3-format.mjs +252 -0
  357. package/dist/web/server/_libs/d3-interpolate.mjs +207 -0
  358. package/dist/web/server/_libs/d3-path.mjs +77 -0
  359. package/dist/web/server/_libs/d3-scale+[...].mjs +1907 -0
  360. package/dist/web/server/_libs/d3-shape.mjs +818 -0
  361. package/dist/web/server/_libs/date-fns.mjs +3012 -0
  362. package/dist/web/server/_libs/date-fns__tz.mjs +249 -0
  363. package/dist/web/server/_libs/decimal.js-light.mjs +884 -0
  364. package/dist/web/server/_libs/decode-named-character-reference+[...].mjs +19 -0
  365. package/dist/web/server/_libs/dexie.mjs +3745 -0
  366. package/dist/web/server/_libs/escape-string-regexp.mjs +7 -0
  367. package/dist/web/server/_libs/estree-util-is-identifier-name.mjs +20 -0
  368. package/dist/web/server/_libs/eventemitter3.mjs +237 -0
  369. package/dist/web/server/_libs/extend.mjs +75 -0
  370. package/dist/web/server/_libs/fast-equals.mjs +423 -0
  371. package/dist/web/server/_libs/framer-motion+[...].mjs +9573 -0
  372. package/dist/web/server/_libs/fuzzysort.mjs +621 -0
  373. package/dist/web/server/_libs/h3+rou3+srvx.mjs +1158 -0
  374. package/dist/web/server/_libs/hast-util-raw+[...].mjs +800 -0
  375. package/dist/web/server/_libs/hast-util-sanitize.mjs +780 -0
  376. package/dist/web/server/_libs/hast-util-to-jsx-runtime+[...].mjs +853 -0
  377. package/dist/web/server/_libs/hookable.mjs +41 -0
  378. package/dist/web/server/_libs/html-url-attributes.mjs +44 -0
  379. package/dist/web/server/_libs/is-plain-obj.mjs +8 -0
  380. package/dist/web/server/_libs/lodash.mjs +4532 -0
  381. package/dist/web/server/_libs/lucide-react.mjs +605 -0
  382. package/dist/web/server/_libs/markdown-table.mjs +289 -0
  383. package/dist/web/server/_libs/marked.mjs +1511 -0
  384. package/dist/web/server/_libs/mdast-util-find-and-replace.mjs +198 -0
  385. package/dist/web/server/_libs/mdast-util-from-markdown+[...].mjs +8121 -0
  386. package/dist/web/server/_libs/mdast-util-gfm+[...].mjs +2060 -0
  387. package/dist/web/server/_libs/mdast-util-to-hast+[...].mjs +1770 -0
  388. package/dist/web/server/_libs/micromark-extension-gfm+[...].mjs +2235 -0
  389. package/dist/web/server/_libs/nanoid.mjs +26 -0
  390. package/dist/web/server/_libs/next-themes.mjs +124 -0
  391. package/dist/web/server/_libs/prop-types.mjs +69 -0
  392. package/dist/web/server/_libs/radix-ui__number.mjs +6 -0
  393. package/dist/web/server/_libs/radix-ui__primitive.mjs +9 -0
  394. package/dist/web/server/_libs/radix-ui__react-collection.mjs +80 -0
  395. package/dist/web/server/_libs/radix-ui__react-direction.mjs +11 -0
  396. package/dist/web/server/_libs/radix-ui__react-label.mjs +23 -0
  397. package/dist/web/server/_libs/radix-ui__react-menubar.mjs +400 -0
  398. package/dist/web/server/_libs/radix-ui__react-popover.mjs +251 -0
  399. package/dist/web/server/_libs/radix-ui__react-progress.mjs +81 -0
  400. package/dist/web/server/_libs/radix-ui__react-scroll-area.mjs +669 -0
  401. package/dist/web/server/_libs/radix-ui__react-separator.mjs +32 -0
  402. package/dist/web/server/_libs/radix-ui__react-slider.mjs +464 -0
  403. package/dist/web/server/_libs/radix-ui__react-switch.mjs +120 -0
  404. package/dist/web/server/_libs/radix-ui__react-tabs.mjs +145 -0
  405. package/dist/web/server/_libs/radix-ui__react-tooltip.mjs +494 -0
  406. package/dist/web/server/_libs/react-day-picker.mjs +3510 -0
  407. package/dist/web/server/_libs/react-is.mjs +48 -0
  408. package/dist/web/server/_libs/react-resizable-panels.mjs +1517 -0
  409. package/dist/web/server/_libs/react-smooth.mjs +1024 -0
  410. package/dist/web/server/_libs/recharts+[...].mjs +12998 -0
  411. package/dist/web/server/_libs/rehype-harden.mjs +210 -0
  412. package/dist/web/server/_libs/rehype-raw.mjs +37 -0
  413. package/dist/web/server/_libs/rehype-sanitize.mjs +27 -0
  414. package/dist/web/server/_libs/remark-gfm.mjs +34 -0
  415. package/dist/web/server/_libs/remark-parse.mjs +37 -0
  416. package/dist/web/server/_libs/remark-rehype.mjs +169 -0
  417. package/dist/web/server/_libs/remend.mjs +544 -0
  418. package/dist/web/server/_libs/scule.mjs +55 -0
  419. package/dist/web/server/_libs/shiki+streamdown__code.mjs +1748 -0
  420. package/dist/web/server/_libs/shiki.mjs +16 -0
  421. package/dist/web/server/_libs/shikijs__engine-oniguruma.mjs +387 -0
  422. package/dist/web/server/_libs/shikijs__langs.mjs +1357 -0
  423. package/dist/web/server/_libs/shikijs__themes.mjs +268 -0
  424. package/dist/web/server/_libs/sonner.mjs +909 -0
  425. package/dist/web/server/_libs/streamdown+[...].mjs +5842 -0
  426. package/dist/web/server/_libs/tanstack__history.mjs +342 -0
  427. package/dist/web/server/_libs/tanstack__query-core.mjs +2073 -0
  428. package/dist/web/server/_libs/tanstack__react-query.mjs +146 -0
  429. package/dist/web/server/_libs/tanstack__router-core.mjs +6 -0
  430. package/dist/web/server/_libs/tanstack__zod-adapter.mjs +16 -0
  431. package/dist/web/server/_libs/ufo.mjs +64 -0
  432. package/dist/web/server/_libs/ungap__structured-clone.mjs +197 -0
  433. package/dist/web/server/_libs/use-stick-to-bottom.mjs +410 -0
  434. package/dist/web/server/_libs/vercel__oidc.mjs +393 -0
  435. package/dist/web/server/_libs/zhipu-ai-provider.mjs +13483 -0
  436. package/dist/web/server/_libs/zustand.mjs +48 -0
  437. package/dist/web/server/_runtime.mjs +35 -0
  438. package/dist/web/server/_ssr/components-BzCiScpA.mjs +1452 -0
  439. package/dist/web/server/_ssr/dist-3Mu7PF0n.mjs +137 -0
  440. package/dist/web/server/_ssr/dist-BRaLXgxZ.mjs +17 -0
  441. package/dist/web/server/_ssr/field-1-agM60DBf.mjs +167 -0
  442. package/dist/web/server/_ssr/get-providers-BoYkp0Of.mjs +40 -0
  443. package/dist/web/server/_ssr/initialize-provider-B6W8V5Eg.mjs +19 -0
  444. package/dist/web/server/_ssr/model-list-CDFjdz2P.mjs +60 -0
  445. package/dist/web/server/_ssr/router-BmmOCtJZ.mjs +168 -0
  446. package/dist/web/server/_ssr/routes-CvlpZK4Q.mjs +2630 -0
  447. package/dist/web/server/_ssr/schemas-DsZ5O3zp.mjs +67 -0
  448. package/dist/web/server/_ssr/send-message-DUT1vRvx.mjs +135 -0
  449. package/dist/web/server/_ssr/ssr.mjs +5253 -0
  450. package/dist/web/server/_ssr/start-rewezkfD.mjs +4 -0
  451. package/dist/web/server/_ssr/submit-key-CcCv6-yy.mjs +62 -0
  452. package/dist/web/server/_ssr/suggestions-B0Uc3p7F.mjs +38 -0
  453. package/dist/web/server/_ssr/use-providers-Bwqg2U3N.mjs +1554 -0
  454. package/dist/web/server/_tanstack-start-manifest_v-BMIvh4y6.mjs +60 -0
  455. package/dist/web/server/index.mjs +2531 -0
  456. package/dist/web/server/node_modules/tslib/modules/index.js +70 -0
  457. package/dist/web/server/node_modules/tslib/modules/package.json +3 -0
  458. package/dist/web/server/node_modules/tslib/package.json +47 -0
  459. package/dist/web/server/node_modules/tslib/tslib.js +484 -0
  460. package/package.json +32 -0
@@ -0,0 +1,1517 @@
1
+ import { i as __toESM } from "../_runtime.mjs";
2
+ import { u as require_react } from "./@ai-sdk/react+[...].mjs";
3
+ import { s as require_jsx_runtime } from "./@lobehub/icons+[...].mjs";
4
+ //#region ../../node_modules/.pnpm/react-resizable-panels@4.7.3_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-resizable-panels/dist/react-resizable-panels.js
5
+ var import_jsx_runtime = require_jsx_runtime();
6
+ var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
7
+ function gt(e, t) {
8
+ const n = getComputedStyle(e);
9
+ return t * parseFloat(n.fontSize);
10
+ }
11
+ function St(e, t) {
12
+ const n = getComputedStyle(e.ownerDocument.body);
13
+ return t * parseFloat(n.fontSize);
14
+ }
15
+ function yt(e) {
16
+ return e / 100 * window.innerHeight;
17
+ }
18
+ function vt(e) {
19
+ return e / 100 * window.innerWidth;
20
+ }
21
+ function zt(e) {
22
+ switch (typeof e) {
23
+ case "number": return [e, "px"];
24
+ case "string": {
25
+ const t = parseFloat(e);
26
+ return e.endsWith("%") ? [t, "%"] : e.endsWith("px") ? [t, "px"] : e.endsWith("rem") ? [t, "rem"] : e.endsWith("em") ? [t, "em"] : e.endsWith("vh") ? [t, "vh"] : e.endsWith("vw") ? [t, "vw"] : [t, "%"];
27
+ }
28
+ }
29
+ }
30
+ function te({ groupSize: e, panelElement: t, styleProp: n }) {
31
+ let o;
32
+ const [i, s] = zt(n);
33
+ switch (s) {
34
+ case "%":
35
+ o = i / 100 * e;
36
+ break;
37
+ case "px":
38
+ o = i;
39
+ break;
40
+ case "rem":
41
+ o = St(t, i);
42
+ break;
43
+ case "em":
44
+ o = gt(t, i);
45
+ break;
46
+ case "vh":
47
+ o = yt(i);
48
+ break;
49
+ case "vw":
50
+ o = vt(i);
51
+ break;
52
+ }
53
+ return o;
54
+ }
55
+ function D(e) {
56
+ return parseFloat(e.toFixed(3));
57
+ }
58
+ function Q({ group: e }) {
59
+ const { orientation: t, panels: n } = e;
60
+ return n.reduce((o, i) => (o += t === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, o), 0);
61
+ }
62
+ function ge(e) {
63
+ const { panels: t } = e, n = Q({ group: e });
64
+ return n === 0 ? t.map((o) => ({
65
+ groupResizeBehavior: o.panelConstraints.groupResizeBehavior,
66
+ collapsedSize: 0,
67
+ collapsible: o.panelConstraints.collapsible === !0,
68
+ defaultSize: void 0,
69
+ disabled: o.panelConstraints.disabled,
70
+ minSize: 0,
71
+ maxSize: 100,
72
+ panelId: o.id
73
+ })) : t.map((o) => {
74
+ const { element: i, panelConstraints: s } = o;
75
+ let l = 0;
76
+ if (s.collapsedSize !== void 0) l = D(te({
77
+ groupSize: n,
78
+ panelElement: i,
79
+ styleProp: s.collapsedSize
80
+ }) / n * 100);
81
+ let r;
82
+ if (s.defaultSize !== void 0) r = D(te({
83
+ groupSize: n,
84
+ panelElement: i,
85
+ styleProp: s.defaultSize
86
+ }) / n * 100);
87
+ let a = 0;
88
+ if (s.minSize !== void 0) a = D(te({
89
+ groupSize: n,
90
+ panelElement: i,
91
+ styleProp: s.minSize
92
+ }) / n * 100);
93
+ let u = 100;
94
+ if (s.maxSize !== void 0) u = D(te({
95
+ groupSize: n,
96
+ panelElement: i,
97
+ styleProp: s.maxSize
98
+ }) / n * 100);
99
+ return {
100
+ groupResizeBehavior: s.groupResizeBehavior,
101
+ collapsedSize: l,
102
+ collapsible: s.collapsible === !0,
103
+ defaultSize: r,
104
+ disabled: s.disabled,
105
+ minSize: a,
106
+ maxSize: u,
107
+ panelId: o.id
108
+ };
109
+ });
110
+ }
111
+ function L(e, t = "Assertion error") {
112
+ if (!e) throw Error(t);
113
+ }
114
+ function Se(e, t) {
115
+ return Array.from(t).sort(e === "horizontal" ? bt : xt);
116
+ }
117
+ function bt(e, t) {
118
+ const n = e.element.offsetLeft - t.element.offsetLeft;
119
+ return n !== 0 ? n : e.element.offsetWidth - t.element.offsetWidth;
120
+ }
121
+ function xt(e, t) {
122
+ const n = e.element.offsetTop - t.element.offsetTop;
123
+ return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
124
+ }
125
+ function Xe(e) {
126
+ return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
127
+ }
128
+ function qe(e, t) {
129
+ return {
130
+ x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(Math.abs(e.x - t.left), Math.abs(e.x - t.right)),
131
+ y: e.y >= t.top && e.y <= t.bottom ? 0 : Math.min(Math.abs(e.y - t.top), Math.abs(e.y - t.bottom))
132
+ };
133
+ }
134
+ function wt({ orientation: e, rects: t, targetRect: n }) {
135
+ const o = {
136
+ x: n.x + n.width / 2,
137
+ y: n.y + n.height / 2
138
+ };
139
+ let i, s = Number.MAX_VALUE;
140
+ for (const l of t) {
141
+ const { x: r, y: a } = qe(o, l), u = e === "horizontal" ? r : a;
142
+ u < s && (s = u, i = l);
143
+ }
144
+ return L(i, "No rect found"), i;
145
+ }
146
+ var ue;
147
+ function Pt() {
148
+ return ue === void 0 && (typeof matchMedia == "function" ? ue = !!matchMedia("(pointer:coarse)").matches : ue = !1), ue;
149
+ }
150
+ function Ye(e) {
151
+ const { element: t, orientation: n, panels: o, separators: i } = e, s = Se(n, Array.from(t.children).filter(Xe).map((x) => ({ element: x }))).map(({ element: x }) => x), l = [];
152
+ let r = !1, a = !1, u = -1, c = -1, m = 0, d, v = [];
153
+ {
154
+ let x = -1;
155
+ for (const f of s) f.hasAttribute("data-panel") && (x++, f.ariaDisabled === null && (m++, u === -1 && (u = x), c = x));
156
+ }
157
+ if (m > 1) {
158
+ let x = -1;
159
+ for (const f of s) if (f.hasAttribute("data-panel")) {
160
+ x++;
161
+ const h = o.find((g) => g.element === f);
162
+ if (h) {
163
+ if (d) {
164
+ const g = d.element.getBoundingClientRect(), y = f.getBoundingClientRect();
165
+ let z;
166
+ if (a) {
167
+ const S = n === "horizontal" ? new DOMRect(g.right, g.top, 0, g.height) : new DOMRect(g.left, g.bottom, g.width, 0), p = n === "horizontal" ? new DOMRect(y.left, y.top, 0, y.height) : new DOMRect(y.left, y.top, y.width, 0);
168
+ switch (v.length) {
169
+ case 0:
170
+ z = [S, p];
171
+ break;
172
+ case 1: {
173
+ const P = v[0];
174
+ z = [P, wt({
175
+ orientation: n,
176
+ rects: [g, y],
177
+ targetRect: P.element.getBoundingClientRect()
178
+ }) === g ? p : S];
179
+ break;
180
+ }
181
+ default:
182
+ z = v;
183
+ break;
184
+ }
185
+ } else v.length ? z = v : z = [n === "horizontal" ? new DOMRect(g.right, y.top, y.left - g.right, y.height) : new DOMRect(y.left, g.bottom, y.width, y.top - g.bottom)];
186
+ for (const S of z) {
187
+ let p = "width" in S ? S : S.element.getBoundingClientRect();
188
+ const P = Pt() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
189
+ if (p.width < P) {
190
+ const C = P - p.width;
191
+ p = new DOMRect(p.x - C / 2, p.y, p.width + C, p.height);
192
+ }
193
+ if (p.height < P) {
194
+ const C = P - p.height;
195
+ p = new DOMRect(p.x, p.y - C / 2, p.width, p.height + C);
196
+ }
197
+ !r && !(x <= u || x > c) && l.push({
198
+ group: e,
199
+ groupSize: Q({ group: e }),
200
+ panels: [d, h],
201
+ separator: "width" in S ? void 0 : S,
202
+ rect: p
203
+ }), r = !1;
204
+ }
205
+ }
206
+ a = !1, d = h, v = [];
207
+ }
208
+ } else if (f.hasAttribute("data-separator")) {
209
+ f.ariaDisabled !== null && (r = !0);
210
+ const h = i.find((g) => g.element === f);
211
+ h ? v.push(h) : (d = void 0, v = []);
212
+ } else a = !0;
213
+ }
214
+ return l;
215
+ }
216
+ var Je = class {
217
+ #e = {};
218
+ addListener(t, n) {
219
+ const o = this.#e[t];
220
+ return o === void 0 ? this.#e[t] = [n] : o.includes(n) || o.push(n), () => {
221
+ this.removeListener(t, n);
222
+ };
223
+ }
224
+ emit(t, n) {
225
+ const o = this.#e[t];
226
+ if (o !== void 0) if (o.length === 1) o[0].call(null, n);
227
+ else {
228
+ let i = !1, s = null;
229
+ const l = Array.from(o);
230
+ for (let r = 0; r < l.length; r++) {
231
+ const a = l[r];
232
+ try {
233
+ a.call(null, n);
234
+ } catch (u) {
235
+ s === null && (i = !0, s = u);
236
+ }
237
+ }
238
+ if (i) throw s;
239
+ }
240
+ }
241
+ removeAllListeners() {
242
+ this.#e = {};
243
+ }
244
+ removeListener(t, n) {
245
+ const o = this.#e[t];
246
+ if (o !== void 0) {
247
+ const i = o.indexOf(n);
248
+ i >= 0 && o.splice(i, 1);
249
+ }
250
+ }
251
+ };
252
+ var A = /* @__PURE__ */ new Map();
253
+ var Ze = new Je();
254
+ function Lt(e) {
255
+ A = new Map(A), A.delete(e);
256
+ }
257
+ function Me(e, t) {
258
+ for (const [n] of A) if (n.id === e) return n;
259
+ }
260
+ function $(e, t) {
261
+ for (const [n, o] of A) if (n.id === e) return o;
262
+ if (t) throw Error(`Could not find data for Group with id ${e}`);
263
+ }
264
+ function U() {
265
+ return A;
266
+ }
267
+ function ye(e, t) {
268
+ return Ze.addListener("groupChange", (n) => {
269
+ n.group.id === e && t(n);
270
+ });
271
+ }
272
+ function _(e, t) {
273
+ const n = A.get(e);
274
+ A = new Map(A), A.set(e, t), Ze.emit("groupChange", {
275
+ group: e,
276
+ prev: n,
277
+ next: t
278
+ });
279
+ }
280
+ function Ct(e, t, n) {
281
+ let o, i = {
282
+ x: Infinity,
283
+ y: Infinity
284
+ };
285
+ for (const s of t) {
286
+ const l = qe(n, s.rect);
287
+ switch (e) {
288
+ case "horizontal":
289
+ l.x <= i.x && (o = s, i = l);
290
+ break;
291
+ case "vertical":
292
+ l.y <= i.y && (o = s, i = l);
293
+ break;
294
+ }
295
+ }
296
+ return o ? {
297
+ distance: i,
298
+ hitRegion: o
299
+ } : void 0;
300
+ }
301
+ function Rt(e) {
302
+ return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
303
+ }
304
+ function Mt(e, t) {
305
+ if (e === t) throw new Error("Cannot compare node with itself");
306
+ const n = {
307
+ a: ke(e),
308
+ b: ke(t)
309
+ };
310
+ let o;
311
+ for (; n.a.at(-1) === n.b.at(-1);) o = n.a.pop(), n.b.pop();
312
+ L(o, "Stacking order can only be calculated for elements with a common ancestor");
313
+ const i = {
314
+ a: Ie(Ee(n.a)),
315
+ b: Ie(Ee(n.b))
316
+ };
317
+ if (i.a === i.b) {
318
+ const s = o.childNodes, l = {
319
+ a: n.a.at(-1),
320
+ b: n.b.at(-1)
321
+ };
322
+ let r = s.length;
323
+ for (; r--;) {
324
+ const a = s[r];
325
+ if (a === l.a) return 1;
326
+ if (a === l.b) return -1;
327
+ }
328
+ }
329
+ return Math.sign(i.a - i.b);
330
+ }
331
+ var Et = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
332
+ function It(e) {
333
+ const t = getComputedStyle(Qe(e) ?? e).display;
334
+ return t === "flex" || t === "inline-flex";
335
+ }
336
+ function kt(e) {
337
+ const t = getComputedStyle(e);
338
+ return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || It(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || Et.test(t.willChange) || t.webkitOverflowScrolling === "touch");
339
+ }
340
+ function Ee(e) {
341
+ let t = e.length;
342
+ for (; t--;) {
343
+ const n = e[t];
344
+ if (L(n, "Missing node"), kt(n)) return n;
345
+ }
346
+ return null;
347
+ }
348
+ function Ie(e) {
349
+ return e && Number(getComputedStyle(e).zIndex) || 0;
350
+ }
351
+ function ke(e) {
352
+ const t = [];
353
+ for (; e;) t.push(e), e = Qe(e);
354
+ return t;
355
+ }
356
+ function Qe(e) {
357
+ const { parentNode: t } = e;
358
+ return Rt(t) ? t.host : t;
359
+ }
360
+ function Dt(e, t) {
361
+ return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
362
+ }
363
+ function Tt({ groupElement: e, hitRegion: t, pointerEventTarget: n }) {
364
+ if (!Xe(n) || n.contains(e) || e.contains(n)) return !0;
365
+ if (Mt(n, e) > 0) {
366
+ let o = n;
367
+ for (; o;) {
368
+ if (o.contains(e)) return !0;
369
+ if (Dt(o.getBoundingClientRect(), t)) return !1;
370
+ o = o.parentElement;
371
+ }
372
+ }
373
+ return !0;
374
+ }
375
+ function ve(e, t) {
376
+ const n = [];
377
+ return t.forEach((o, i) => {
378
+ if (i.disabled) return;
379
+ const s = Ye(i), l = Ct(i.orientation, s, {
380
+ x: e.clientX,
381
+ y: e.clientY
382
+ });
383
+ l && l.distance.x <= 0 && l.distance.y <= 0 && Tt({
384
+ groupElement: i.element,
385
+ hitRegion: l.hitRegion.rect,
386
+ pointerEventTarget: e.target
387
+ }) && n.push(l.hitRegion);
388
+ }), n;
389
+ }
390
+ function Ot(e, t) {
391
+ if (e.length !== t.length) return !1;
392
+ for (let n = 0; n < e.length; n++) if (e[n] != t[n]) return !1;
393
+ return !0;
394
+ }
395
+ function I(e, t, n = 0) {
396
+ return Math.abs(D(e) - D(t)) <= n;
397
+ }
398
+ function G(e, t) {
399
+ return I(e, t) ? 0 : e > t ? 1 : -1;
400
+ }
401
+ function Y({ overrideDisabledPanels: e, panelConstraints: t, prevSize: n, size: o }) {
402
+ const { collapsedSize: i = 0, collapsible: s, disabled: l, maxSize: r = 100, minSize: a = 0 } = t;
403
+ if (l && !e) return n;
404
+ if (G(o, a) < 0) if (s) {
405
+ const u = (i + a) / 2;
406
+ G(o, u) < 0 ? o = i : o = a;
407
+ } else o = a;
408
+ return o = Math.min(r, o), o = D(o), o;
409
+ }
410
+ function se({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: o, prevLayout: i, trigger: s }) {
411
+ if (I(e, 0)) return t;
412
+ const l = s === "imperative-api", r = Object.values(t), a = Object.values(i), u = [...r], [c, m] = o;
413
+ L(c != null, "Invalid first pivot index"), L(m != null, "Invalid second pivot index");
414
+ let d = 0;
415
+ switch (s) {
416
+ case "keyboard":
417
+ {
418
+ const f = e < 0 ? m : c, h = n[f];
419
+ L(h, `Panel constraints not found for index ${f}`);
420
+ const { collapsedSize: g = 0, collapsible: y, minSize: z = 0 } = h;
421
+ if (y) {
422
+ const S = r[f];
423
+ if (L(S != null, `Previous layout not found for panel index ${f}`), I(S, g)) {
424
+ const p = z - S;
425
+ G(p, Math.abs(e)) > 0 && (e = e < 0 ? 0 - p : p);
426
+ }
427
+ }
428
+ }
429
+ {
430
+ const f = e < 0 ? c : m, h = n[f];
431
+ L(h, `No panel constraints found for index ${f}`);
432
+ const { collapsedSize: g = 0, collapsible: y, minSize: z = 0 } = h;
433
+ if (y) {
434
+ const S = r[f];
435
+ if (L(S != null, `Previous layout not found for panel index ${f}`), I(S, z)) {
436
+ const p = S - g;
437
+ G(p, Math.abs(e)) > 0 && (e = e < 0 ? 0 - p : p);
438
+ }
439
+ }
440
+ }
441
+ break;
442
+ default: {
443
+ const f = e < 0 ? m : c, h = n[f];
444
+ L(h, `Panel constraints not found for index ${f}`);
445
+ const g = r[f], { collapsible: y, collapsedSize: z, minSize: S } = h;
446
+ if (y && G(g, S) < 0) if (e > 0) {
447
+ const p = S - z, P = p / 2;
448
+ G(g + e, S) < 0 && (e = G(e, P) <= 0 ? 0 : p);
449
+ } else {
450
+ const p = S - z, P = 100 - p / 2;
451
+ G(g - e, S) < 0 && (e = G(100 + e, P) > 0 ? 0 : -p);
452
+ }
453
+ break;
454
+ }
455
+ }
456
+ {
457
+ const f = e < 0 ? 1 : -1;
458
+ let h = e < 0 ? m : c, g = 0;
459
+ for (;;) {
460
+ const z = r[h];
461
+ L(z != null, `Previous layout not found for panel index ${h}`);
462
+ const p = Y({
463
+ overrideDisabledPanels: l,
464
+ panelConstraints: n[h],
465
+ prevSize: z,
466
+ size: 100
467
+ }) - z;
468
+ if (g += p, h += f, h < 0 || h >= n.length) break;
469
+ }
470
+ const y = Math.min(Math.abs(e), Math.abs(g));
471
+ e = e < 0 ? 0 - y : y;
472
+ }
473
+ {
474
+ let h = e < 0 ? c : m;
475
+ for (; h >= 0 && h < n.length;) {
476
+ const g = Math.abs(e) - Math.abs(d), y = r[h];
477
+ L(y != null, `Previous layout not found for panel index ${h}`);
478
+ const z = y - g, S = Y({
479
+ overrideDisabledPanels: l,
480
+ panelConstraints: n[h],
481
+ prevSize: y,
482
+ size: z
483
+ });
484
+ if (!I(y, S) && (d += y - S, u[h] = S, d.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, { numeric: !0 }) >= 0)) break;
485
+ e < 0 ? h-- : h++;
486
+ }
487
+ }
488
+ if (Ot(a, u)) return i;
489
+ {
490
+ const f = e < 0 ? m : c, h = r[f];
491
+ L(h != null, `Previous layout not found for panel index ${f}`);
492
+ const g = h + d, y = Y({
493
+ overrideDisabledPanels: l,
494
+ panelConstraints: n[f],
495
+ prevSize: h,
496
+ size: g
497
+ });
498
+ if (u[f] = y, !I(y, g)) {
499
+ let z = g - y, p = e < 0 ? m : c;
500
+ for (; p >= 0 && p < n.length;) {
501
+ const P = u[p];
502
+ L(P != null, `Previous layout not found for panel index ${p}`);
503
+ const R = P + z, C = Y({
504
+ overrideDisabledPanels: l,
505
+ panelConstraints: n[p],
506
+ prevSize: P,
507
+ size: R
508
+ });
509
+ if (I(P, C) || (z -= C - P, u[p] = C), I(z, 0)) break;
510
+ e > 0 ? p-- : p++;
511
+ }
512
+ }
513
+ }
514
+ if (!I(Object.values(u).reduce((f, h) => h + f, 0), 100, .1)) return i;
515
+ const x = Object.keys(i);
516
+ return u.reduce((f, h, g) => (f[x[g]] = h, f), {});
517
+ }
518
+ function j(e, t) {
519
+ if (Object.keys(e).length !== Object.keys(t).length) return !1;
520
+ for (const n in e) if (t[n] === void 0 || G(e[n], t[n]) !== 0) return !1;
521
+ return !0;
522
+ }
523
+ function B({ layout: e, panelConstraints: t }) {
524
+ const n = Object.values(e), o = [...n], i = o.reduce((r, a) => r + a, 0);
525
+ if (o.length !== t.length) throw Error(`Invalid ${t.length} panel layout: ${o.map((r) => `${r}%`).join(", ")}`);
526
+ if (!I(i, 100) && o.length > 0) for (let r = 0; r < t.length; r++) {
527
+ const a = o[r];
528
+ L(a != null, `No layout data found for index ${r}`);
529
+ o[r] = 100 / i * a;
530
+ }
531
+ let s = 0;
532
+ for (let r = 0; r < t.length; r++) {
533
+ const a = n[r];
534
+ L(a != null, `No layout data found for index ${r}`);
535
+ const u = o[r];
536
+ L(u != null, `No layout data found for index ${r}`);
537
+ const c = Y({
538
+ overrideDisabledPanels: !0,
539
+ panelConstraints: t[r],
540
+ prevSize: a,
541
+ size: u
542
+ });
543
+ u != c && (s += u - c, o[r] = c);
544
+ }
545
+ if (!I(s, 0)) for (let r = 0; r < t.length; r++) {
546
+ const a = o[r];
547
+ L(a != null, `No layout data found for index ${r}`);
548
+ const u = a + s, c = Y({
549
+ overrideDisabledPanels: !0,
550
+ panelConstraints: t[r],
551
+ prevSize: a,
552
+ size: u
553
+ });
554
+ if (a !== c && (s -= c - a, o[r] = c, I(s, 0))) break;
555
+ }
556
+ const l = Object.keys(e);
557
+ return o.reduce((r, a, u) => (r[l[u]] = a, r), {});
558
+ }
559
+ function et({ groupId: e, panelId: t }) {
560
+ const n = () => {
561
+ const r = U();
562
+ for (const [a, { defaultLayoutDeferred: u, derivedPanelConstraints: c, layout: m, groupSize: d, separatorToPanels: v }] of r) if (a.id === e) return {
563
+ defaultLayoutDeferred: u,
564
+ derivedPanelConstraints: c,
565
+ group: a,
566
+ groupSize: d,
567
+ layout: m,
568
+ separatorToPanels: v
569
+ };
570
+ throw Error(`Group ${e} not found`);
571
+ }, o = () => {
572
+ const r = n().derivedPanelConstraints.find((a) => a.panelId === t);
573
+ if (r !== void 0) return r;
574
+ throw Error(`Panel constraints not found for Panel ${t}`);
575
+ }, i = () => {
576
+ const r = n().group.panels.find((a) => a.id === t);
577
+ if (r !== void 0) return r;
578
+ throw Error(`Layout not found for Panel ${t}`);
579
+ }, s = () => {
580
+ const r = n().layout[t];
581
+ if (r !== void 0) return r;
582
+ throw Error(`Layout not found for Panel ${t}`);
583
+ }, l = (r) => {
584
+ const a = s();
585
+ if (r === a) return;
586
+ const { defaultLayoutDeferred: u, derivedPanelConstraints: c, group: m, groupSize: d, layout: v, separatorToPanels: x } = n(), f = m.panels.findIndex((z) => z.id === t), h = f === m.panels.length - 1, y = B({
587
+ layout: se({
588
+ delta: h ? a - r : r - a,
589
+ initialLayout: v,
590
+ panelConstraints: c,
591
+ pivotIndices: h ? [f - 1, f] : [f, f + 1],
592
+ prevLayout: v,
593
+ trigger: "imperative-api"
594
+ }),
595
+ panelConstraints: c
596
+ });
597
+ j(v, y) || _(m, {
598
+ defaultLayoutDeferred: u,
599
+ derivedPanelConstraints: c,
600
+ groupSize: d,
601
+ layout: y,
602
+ separatorToPanels: x
603
+ });
604
+ };
605
+ return {
606
+ collapse: () => {
607
+ const { collapsible: r, collapsedSize: a } = o(), { mutableValues: u } = i(), c = s();
608
+ r && c !== a && (u.expandToSize = c, l(a));
609
+ },
610
+ expand: () => {
611
+ const { collapsible: r, collapsedSize: a, minSize: u } = o(), { mutableValues: c } = i(), m = s();
612
+ if (r && m === a) {
613
+ let d = c.expandToSize ?? u;
614
+ d === 0 && (d = 1), l(d);
615
+ }
616
+ },
617
+ getSize: () => {
618
+ const { group: r } = n(), a = s(), { element: u } = i();
619
+ return {
620
+ asPercentage: a,
621
+ inPixels: r.orientation === "horizontal" ? u.offsetWidth : u.offsetHeight
622
+ };
623
+ },
624
+ isCollapsed: () => {
625
+ const { collapsible: r, collapsedSize: a } = o(), u = s();
626
+ return r && I(a, u);
627
+ },
628
+ resize: (r) => {
629
+ const { group: a } = n(), { element: u } = i(), c = Q({ group: a });
630
+ l(D(te({
631
+ groupSize: c,
632
+ panelElement: u,
633
+ styleProp: r
634
+ }) / c * 100));
635
+ }
636
+ };
637
+ }
638
+ function De(e) {
639
+ if (e.defaultPrevented) return;
640
+ ve(e, U()).forEach((o) => {
641
+ if (o.separator) {
642
+ const i = o.panels.find((s) => s.panelConstraints.defaultSize !== void 0);
643
+ if (i) {
644
+ const s = i.panelConstraints.defaultSize, l = et({
645
+ groupId: o.group.id,
646
+ panelId: i.id
647
+ });
648
+ l && s !== void 0 && (l.resize(s), e.preventDefault());
649
+ }
650
+ }
651
+ });
652
+ }
653
+ function fe(e) {
654
+ const t = U();
655
+ for (const [n] of t) if (n.separators.some((o) => o.element === e)) return n;
656
+ throw Error("Could not find parent Group for separator element");
657
+ }
658
+ function tt({ groupId: e }) {
659
+ const t = () => {
660
+ const n = U();
661
+ for (const [o, i] of n) if (o.id === e) return {
662
+ group: o,
663
+ ...i
664
+ };
665
+ throw Error(`Could not find Group with id "${e}"`);
666
+ };
667
+ return {
668
+ getLayout() {
669
+ const { defaultLayoutDeferred: n, layout: o } = t();
670
+ return n ? {} : o;
671
+ },
672
+ setLayout(n) {
673
+ const { defaultLayoutDeferred: o, derivedPanelConstraints: i, group: s, groupSize: l, layout: r, separatorToPanels: a } = t(), u = B({
674
+ layout: n,
675
+ panelConstraints: i
676
+ });
677
+ return o ? r : (j(r, u) || _(s, {
678
+ defaultLayoutDeferred: o,
679
+ derivedPanelConstraints: i,
680
+ groupSize: l,
681
+ layout: u,
682
+ separatorToPanels: a
683
+ }), u);
684
+ }
685
+ };
686
+ }
687
+ function V(e, t) {
688
+ const n = fe(e), o = $(n.id, !0), i = n.separators.find((m) => m.element === e);
689
+ L(i, "Matching separator not found");
690
+ const s = o.separatorToPanels.get(i);
691
+ L(s, "Matching panels not found");
692
+ const l = s.map((m) => n.panels.indexOf(m)), a = tt({ groupId: n.id }).getLayout(), c = B({
693
+ layout: se({
694
+ delta: t,
695
+ initialLayout: a,
696
+ panelConstraints: o.derivedPanelConstraints,
697
+ pivotIndices: l,
698
+ prevLayout: a,
699
+ trigger: "keyboard"
700
+ }),
701
+ panelConstraints: o.derivedPanelConstraints
702
+ });
703
+ j(a, c) || _(n, {
704
+ defaultLayoutDeferred: o.defaultLayoutDeferred,
705
+ derivedPanelConstraints: o.derivedPanelConstraints,
706
+ groupSize: o.groupSize,
707
+ layout: c,
708
+ separatorToPanels: o.separatorToPanels
709
+ });
710
+ }
711
+ function Te(e) {
712
+ if (e.defaultPrevented) return;
713
+ const t = e.currentTarget, n = fe(t);
714
+ if (!n.disabled) switch (e.key) {
715
+ case "ArrowDown":
716
+ e.preventDefault(), n.orientation === "vertical" && V(t, 5);
717
+ break;
718
+ case "ArrowLeft":
719
+ e.preventDefault(), n.orientation === "horizontal" && V(t, -5);
720
+ break;
721
+ case "ArrowRight":
722
+ e.preventDefault(), n.orientation === "horizontal" && V(t, 5);
723
+ break;
724
+ case "ArrowUp":
725
+ e.preventDefault(), n.orientation === "vertical" && V(t, -5);
726
+ break;
727
+ case "End":
728
+ e.preventDefault(), V(t, 100);
729
+ break;
730
+ case "Enter": {
731
+ e.preventDefault();
732
+ const o = fe(t), { derivedPanelConstraints: s, layout: l, separatorToPanels: r } = $(o.id, !0), a = o.separators.find((d) => d.element === t);
733
+ L(a, "Matching separator not found");
734
+ const u = r.get(a);
735
+ L(u, "Matching panels not found");
736
+ const c = u[0], m = s.find((d) => d.panelId === c.id);
737
+ if (L(m, "Panel metadata not found"), m.collapsible) {
738
+ const d = l[c.id];
739
+ V(t, (m.collapsedSize === d ? o.mutableState.expandedPanelSizes[c.id] ?? m.minSize : m.collapsedSize) - d);
740
+ }
741
+ break;
742
+ }
743
+ case "F6": {
744
+ e.preventDefault();
745
+ const i = fe(t).separators.map((a) => a.element), s = Array.from(i).findIndex((a) => a === e.currentTarget);
746
+ L(s !== null, "Index not found");
747
+ i[e.shiftKey ? s > 0 ? s - 1 : i.length - 1 : s + 1 < i.length ? s + 1 : 0].focus({ preventScroll: !0 });
748
+ break;
749
+ }
750
+ case "Home":
751
+ e.preventDefault(), V(t, -100);
752
+ break;
753
+ }
754
+ }
755
+ var J = {
756
+ cursorFlags: 0,
757
+ state: "inactive"
758
+ };
759
+ var ze = new Je();
760
+ function W() {
761
+ return J;
762
+ }
763
+ function Gt(e) {
764
+ return ze.addListener("change", e);
765
+ }
766
+ function At(e) {
767
+ const t = J, n = { ...J };
768
+ n.cursorFlags = e, J = n, ze.emit("change", {
769
+ prev: t,
770
+ next: n
771
+ });
772
+ }
773
+ function Z(e) {
774
+ const t = J;
775
+ J = e, ze.emit("change", {
776
+ prev: t,
777
+ next: e
778
+ });
779
+ }
780
+ function Oe(e) {
781
+ if (e.defaultPrevented) return;
782
+ if (e.pointerType === "mouse" && e.button > 0) return;
783
+ const t = U(), n = ve(e, t), o = /* @__PURE__ */ new Map();
784
+ let i = !1;
785
+ n.forEach((s) => {
786
+ s.separator && (i || (i = !0, s.separator.element.focus({ preventScroll: !0 })));
787
+ const l = t.get(s.group);
788
+ l && o.set(s.group, l.layout);
789
+ }), Z({
790
+ cursorFlags: 0,
791
+ hitRegions: n,
792
+ initialLayoutMap: o,
793
+ pointerDownAtPoint: {
794
+ x: e.clientX,
795
+ y: e.clientY
796
+ },
797
+ state: "active"
798
+ }), n.length && e.preventDefault();
799
+ }
800
+ var Nt = (e) => e, he = () => {}, nt = 1, ot = 2, it = 4, rt = 8, Ge = 3, Ae = 12;
801
+ var ce;
802
+ function Ne() {
803
+ return ce === void 0 && (ce = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (ce = !0)), ce;
804
+ }
805
+ function _t({ cursorFlags: e, groups: t, state: n }) {
806
+ let o = 0, i = 0;
807
+ switch (n) {
808
+ case "active":
809
+ case "hover": t.forEach((s) => {
810
+ if (!s.mutableState.disableCursor) switch (s.orientation) {
811
+ case "horizontal":
812
+ o++;
813
+ break;
814
+ case "vertical":
815
+ i++;
816
+ break;
817
+ }
818
+ });
819
+ }
820
+ if (!(o === 0 && i === 0)) {
821
+ switch (n) {
822
+ case "active":
823
+ if (e && Ne()) {
824
+ const s = (e & nt) !== 0, l = (e & ot) !== 0, r = (e & it) !== 0, a = (e & rt) !== 0;
825
+ if (s) return r ? "se-resize" : a ? "ne-resize" : "e-resize";
826
+ if (l) return r ? "sw-resize" : a ? "nw-resize" : "w-resize";
827
+ if (r) return "s-resize";
828
+ if (a) return "n-resize";
829
+ }
830
+ break;
831
+ }
832
+ return Ne() ? o > 0 && i > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && i > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
833
+ }
834
+ }
835
+ var _e = /* @__PURE__ */ new WeakMap();
836
+ function be(e) {
837
+ if (e.defaultView === null || e.defaultView === void 0) return;
838
+ let { prevStyle: t, styleSheet: n } = _e.get(e) ?? {};
839
+ n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && e.adoptedStyleSheets.push(n));
840
+ const o = W();
841
+ switch (o.state) {
842
+ case "active":
843
+ case "hover": {
844
+ const i = _t({
845
+ cursorFlags: o.cursorFlags,
846
+ groups: o.hitRegions.map((l) => l.group),
847
+ state: o.state
848
+ }), s = `*, *:hover {cursor: ${i} !important; }`;
849
+ if (t === s) return;
850
+ t = s, i ? n.cssRules.length === 0 ? n.insertRule(s) : n.replaceSync(s) : n.cssRules.length === 1 && n.deleteRule(0);
851
+ break;
852
+ }
853
+ case "inactive":
854
+ t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
855
+ break;
856
+ }
857
+ _e.set(e, {
858
+ prevStyle: t,
859
+ styleSheet: n
860
+ });
861
+ }
862
+ function st({ document: e, event: t, hitRegions: n, initialLayoutMap: o, mountedGroups: i, pointerDownAtPoint: s, prevCursorFlags: l }) {
863
+ let r = 0;
864
+ n.forEach((u) => {
865
+ const { group: c, groupSize: m } = u, { orientation: d, panels: v } = c, { disableCursor: x } = c.mutableState;
866
+ let f = 0;
867
+ s ? d === "horizontal" ? f = (t.clientX - s.x) / m * 100 : f = (t.clientY - s.y) / m * 100 : d === "horizontal" ? f = t.clientX < 0 ? -100 : 100 : f = t.clientY < 0 ? -100 : 100;
868
+ const h = o.get(c), g = i.get(c);
869
+ if (!h || !g) return;
870
+ const { defaultLayoutDeferred: y, derivedPanelConstraints: z, groupSize: S, layout: p, separatorToPanels: P } = g;
871
+ if (z && p && P) {
872
+ const R = se({
873
+ delta: f,
874
+ initialLayout: h,
875
+ panelConstraints: z,
876
+ pivotIndices: u.panels.map((C) => v.indexOf(C)),
877
+ prevLayout: p,
878
+ trigger: "mouse-or-touch"
879
+ });
880
+ if (j(R, p)) {
881
+ if (f !== 0 && !x) switch (d) {
882
+ case "horizontal":
883
+ r |= f < 0 ? nt : ot;
884
+ break;
885
+ case "vertical":
886
+ r |= f < 0 ? it : rt;
887
+ break;
888
+ }
889
+ } else _(u.group, {
890
+ defaultLayoutDeferred: y,
891
+ derivedPanelConstraints: z,
892
+ groupSize: S,
893
+ layout: R,
894
+ separatorToPanels: P
895
+ });
896
+ }
897
+ });
898
+ let a = 0;
899
+ t.movementX === 0 ? a |= l & Ge : a |= r & Ge, t.movementY === 0 ? a |= l & Ae : a |= r & Ae, At(a), be(e);
900
+ }
901
+ function Fe(e) {
902
+ const t = U(), n = W();
903
+ switch (n.state) {
904
+ case "active": st({
905
+ document: e.currentTarget,
906
+ event: e,
907
+ hitRegions: n.hitRegions,
908
+ initialLayoutMap: n.initialLayoutMap,
909
+ mountedGroups: t,
910
+ prevCursorFlags: n.cursorFlags
911
+ });
912
+ }
913
+ }
914
+ function $e(e) {
915
+ if (e.defaultPrevented) return;
916
+ const t = W(), n = U();
917
+ switch (t.state) {
918
+ case "active":
919
+ if (e.buttons === 0) {
920
+ Z({
921
+ cursorFlags: 0,
922
+ state: "inactive"
923
+ }), t.hitRegions.forEach((o) => {
924
+ const i = $(o.group.id, !0);
925
+ _(o.group, i);
926
+ });
927
+ return;
928
+ }
929
+ st({
930
+ document: e.currentTarget,
931
+ event: e,
932
+ hitRegions: t.hitRegions,
933
+ initialLayoutMap: t.initialLayoutMap,
934
+ mountedGroups: n,
935
+ pointerDownAtPoint: t.pointerDownAtPoint,
936
+ prevCursorFlags: t.cursorFlags
937
+ });
938
+ break;
939
+ default: {
940
+ const o = ve(e, n);
941
+ o.length === 0 ? t.state !== "inactive" && Z({
942
+ cursorFlags: 0,
943
+ state: "inactive"
944
+ }) : Z({
945
+ cursorFlags: 0,
946
+ hitRegions: o,
947
+ state: "hover"
948
+ }), be(e.currentTarget);
949
+ break;
950
+ }
951
+ }
952
+ }
953
+ function He(e) {
954
+ if (e.relatedTarget instanceof HTMLIFrameElement) switch (W().state) {
955
+ case "hover": Z({
956
+ cursorFlags: 0,
957
+ state: "inactive"
958
+ });
959
+ }
960
+ }
961
+ function Ve(e) {
962
+ if (e.defaultPrevented) return;
963
+ if (e.pointerType === "mouse" && e.button > 0) return;
964
+ const t = W();
965
+ switch (t.state) {
966
+ case "active": Z({
967
+ cursorFlags: 0,
968
+ state: "inactive"
969
+ }), t.hitRegions.length > 0 && (be(e.currentTarget), t.hitRegions.forEach((n) => {
970
+ const o = $(n.group.id, !0);
971
+ _(n.group, o);
972
+ }), e.preventDefault());
973
+ }
974
+ }
975
+ function je(e) {
976
+ let t = 0, n = 0;
977
+ const o = {};
978
+ for (const s of e) if (s.defaultSize !== void 0) {
979
+ t++;
980
+ const l = D(s.defaultSize);
981
+ n += l, o[s.panelId] = l;
982
+ } else o[s.panelId] = void 0;
983
+ const i = e.length - t;
984
+ if (i !== 0) {
985
+ const s = D((100 - n) / i);
986
+ for (const l of e) l.defaultSize === void 0 && (o[l.panelId] = s);
987
+ }
988
+ return o;
989
+ }
990
+ function Ft(e, t, n) {
991
+ if (!n[0]) return;
992
+ const i = e.panels.find((u) => u.element === t);
993
+ if (!i || !i.onResize) return;
994
+ const s = Q({ group: e }), l = e.orientation === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, r = i.mutableValues.prevSize, a = {
995
+ asPercentage: D(l / s * 100),
996
+ inPixels: l
997
+ };
998
+ i.mutableValues.prevSize = a, i.onResize(a, i.id, r);
999
+ }
1000
+ function $t(e, t) {
1001
+ if (Object.keys(e).length !== Object.keys(t).length) return !1;
1002
+ for (const o in e) if (e[o] !== t[o]) return !1;
1003
+ return !0;
1004
+ }
1005
+ function Ht({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: o }) {
1006
+ if (n <= 0 || t <= 0 || n === t) return o;
1007
+ let i = 0, s = 0, l = !1;
1008
+ const r = /* @__PURE__ */ new Map(), a = [];
1009
+ for (const m of e.panels) {
1010
+ const d = o[m.id] ?? 0;
1011
+ switch (m.panelConstraints.groupResizeBehavior) {
1012
+ case "preserve-pixel-size": {
1013
+ l = !0;
1014
+ const x = D(d / 100 * n / t * 100);
1015
+ r.set(m.id, x), i += x;
1016
+ break;
1017
+ }
1018
+ default:
1019
+ a.push(m.id), s += d;
1020
+ break;
1021
+ }
1022
+ }
1023
+ if (!l || a.length === 0) return o;
1024
+ const u = 100 - i, c = { ...o };
1025
+ if (r.forEach((m, d) => {
1026
+ c[d] = m;
1027
+ }), s > 0) for (const m of a) c[m] = D((o[m] ?? 0) / s * u);
1028
+ else {
1029
+ const m = D(u / a.length);
1030
+ for (const d of a) c[d] = m;
1031
+ }
1032
+ return c;
1033
+ }
1034
+ function Vt(e, t) {
1035
+ const n = e.map((i) => i.id), o = Object.keys(t);
1036
+ if (n.length !== o.length) return !1;
1037
+ for (const i of n) if (!o.includes(i)) return !1;
1038
+ return !0;
1039
+ }
1040
+ var q = /* @__PURE__ */ new Map();
1041
+ function jt(e) {
1042
+ let t = !0;
1043
+ L(e.element.ownerDocument.defaultView, "Cannot register an unmounted Group");
1044
+ const n = e.element.ownerDocument.defaultView.ResizeObserver, o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = new n((f) => {
1045
+ for (const h of f) {
1046
+ const { borderBoxSize: g, target: y } = h;
1047
+ if (y === e.element) {
1048
+ if (t) {
1049
+ const z = Q({ group: e });
1050
+ if (z === 0) return;
1051
+ const S = $(e.id);
1052
+ if (!S) return;
1053
+ const p = ge(e), P = S.defaultLayoutDeferred ? je(p) : S.layout, C = B({
1054
+ layout: Ht({
1055
+ group: e,
1056
+ nextGroupSize: z,
1057
+ prevGroupSize: S.groupSize,
1058
+ prevLayout: P
1059
+ }),
1060
+ panelConstraints: p
1061
+ });
1062
+ if (!S.defaultLayoutDeferred && j(S.layout, C) && $t(S.derivedPanelConstraints, p) && S.groupSize === z) return;
1063
+ _(e, {
1064
+ defaultLayoutDeferred: !1,
1065
+ derivedPanelConstraints: p,
1066
+ groupSize: z,
1067
+ layout: C,
1068
+ separatorToPanels: S.separatorToPanels
1069
+ });
1070
+ }
1071
+ } else Ft(e, y, g);
1072
+ }
1073
+ });
1074
+ s.observe(e.element), e.panels.forEach((f) => {
1075
+ L(!o.has(f.id), `Panel ids must be unique; id "${f.id}" was used more than once`), o.add(f.id), f.onResize && s.observe(f.element);
1076
+ });
1077
+ const l = Q({ group: e }), r = ge(e), a = e.panels.map(({ id: f }) => f).join(",");
1078
+ let u = e.mutableState.defaultLayout;
1079
+ u && (Vt(e.panels, u) || (u = void 0));
1080
+ const m = B({
1081
+ layout: e.mutableState.layouts[a] ?? u ?? je(r),
1082
+ panelConstraints: r
1083
+ }), d = e.element.ownerDocument;
1084
+ q.set(d, (q.get(d) ?? 0) + 1);
1085
+ const v = /* @__PURE__ */ new Map();
1086
+ return Ye(e).forEach((f) => {
1087
+ f.separator && v.set(f.separator, f.panels);
1088
+ }), _(e, {
1089
+ defaultLayoutDeferred: l === 0,
1090
+ derivedPanelConstraints: r,
1091
+ groupSize: l,
1092
+ layout: m,
1093
+ separatorToPanels: v
1094
+ }), e.separators.forEach((f) => {
1095
+ L(!i.has(f.id), `Separator ids must be unique; id "${f.id}" was used more than once`), i.add(f.id), f.element.addEventListener("keydown", Te);
1096
+ }), q.get(d) === 1 && (d.addEventListener("dblclick", De, !0), d.addEventListener("pointerdown", Oe, !0), d.addEventListener("pointerleave", Fe), d.addEventListener("pointermove", $e), d.addEventListener("pointerout", He), d.addEventListener("pointerup", Ve, !0)), function() {
1097
+ t = !1, q.set(d, Math.max(0, (q.get(d) ?? 0) - 1)), Lt(e), e.separators.forEach((h) => {
1098
+ h.element.removeEventListener("keydown", Te);
1099
+ }), q.get(d) || (d.removeEventListener("dblclick", De, !0), d.removeEventListener("pointerdown", Oe, !0), d.removeEventListener("pointerleave", Fe), d.removeEventListener("pointermove", $e), d.removeEventListener("pointerout", He), d.removeEventListener("pointerup", Ve, !0)), s.disconnect();
1100
+ };
1101
+ }
1102
+ function Bt() {
1103
+ const [e, t] = (0, import_react.useState)({});
1104
+ return [e, (0, import_react.useCallback)(() => t({}), [])];
1105
+ }
1106
+ function xe(e) {
1107
+ const t = (0, import_react.useId)();
1108
+ return `${e ?? t}`;
1109
+ }
1110
+ var K = typeof window < "u" ? import_react.useLayoutEffect : import_react.useEffect;
1111
+ function oe(e) {
1112
+ const t = (0, import_react.useRef)(e);
1113
+ return K(() => {
1114
+ t.current = e;
1115
+ }, [e]), (0, import_react.useCallback)((...n) => t.current?.(...n), [t]);
1116
+ }
1117
+ function we(...e) {
1118
+ return oe((t) => {
1119
+ e.forEach((n) => {
1120
+ if (n) switch (typeof n) {
1121
+ case "function":
1122
+ n(t);
1123
+ break;
1124
+ case "object":
1125
+ n.current = t;
1126
+ break;
1127
+ }
1128
+ });
1129
+ });
1130
+ }
1131
+ function Pe(e) {
1132
+ const t = (0, import_react.useRef)({ ...e });
1133
+ return K(() => {
1134
+ for (const n in e) t.current[n] = e[n];
1135
+ }, [e]), t.current;
1136
+ }
1137
+ var at = (0, import_react.createContext)(null);
1138
+ function Wt(e, t) {
1139
+ const n = (0, import_react.useRef)({
1140
+ getLayout: () => ({}),
1141
+ setLayout: Nt
1142
+ });
1143
+ (0, import_react.useImperativeHandle)(t, () => n.current, []), K(() => {
1144
+ Object.assign(n.current, tt({ groupId: e }));
1145
+ });
1146
+ }
1147
+ function Ut({ children: e, className: t, defaultLayout: n, disableCursor: o, disabled: i, elementRef: s, groupRef: l, id: r, onLayoutChange: a, onLayoutChanged: u, orientation: c = "horizontal", resizeTargetMinimumSize: m = {
1148
+ coarse: 20,
1149
+ fine: 10
1150
+ }, style: d, ...v }) {
1151
+ const x = (0, import_react.useRef)({
1152
+ onLayoutChange: {},
1153
+ onLayoutChanged: {}
1154
+ }), f = oe((b) => {
1155
+ j(x.current.onLayoutChange, b) || (x.current.onLayoutChange = b, a?.(b));
1156
+ }), h = oe((b) => {
1157
+ j(x.current.onLayoutChanged, b) || (x.current.onLayoutChanged = b, u?.(b));
1158
+ }), g = xe(r), y = (0, import_react.useRef)(null), [z, S] = Bt(), p = (0, import_react.useRef)({
1159
+ lastExpandedPanelSizes: {},
1160
+ layouts: {},
1161
+ panels: [],
1162
+ resizeTargetMinimumSize: m,
1163
+ separators: []
1164
+ }), P = we(y, s);
1165
+ Wt(g, l);
1166
+ const R = oe((b, w) => {
1167
+ const E = W(), M = Me(b), k = $(b);
1168
+ if (k) {
1169
+ let O = !1;
1170
+ switch (E.state) {
1171
+ case "active":
1172
+ O = E.hitRegions.some((H) => H.group === M);
1173
+ break;
1174
+ }
1175
+ return {
1176
+ flexGrow: k.layout[w] ?? 1,
1177
+ pointerEvents: O ? "none" : void 0
1178
+ };
1179
+ }
1180
+ return { flexGrow: n?.[w] ?? 1 };
1181
+ }), C = Pe({
1182
+ defaultLayout: n,
1183
+ disableCursor: o
1184
+ }), X = (0, import_react.useMemo)(() => ({
1185
+ get disableCursor() {
1186
+ return !!C.disableCursor;
1187
+ },
1188
+ getPanelStyles: R,
1189
+ id: g,
1190
+ orientation: c,
1191
+ registerPanel: (b) => {
1192
+ const w = p.current;
1193
+ return w.panels = Se(c, [...w.panels, b]), S(), () => {
1194
+ w.panels = w.panels.filter((E) => E !== b), S();
1195
+ };
1196
+ },
1197
+ registerSeparator: (b) => {
1198
+ const w = p.current;
1199
+ return w.separators = Se(c, [...w.separators, b]), S(), () => {
1200
+ w.separators = w.separators.filter((E) => E !== b), S();
1201
+ };
1202
+ },
1203
+ togglePanelDisabled: (b, w) => {
1204
+ const M = p.current.panels.find((H) => H.id === b);
1205
+ M && (M.panelConstraints.disabled = w);
1206
+ const k = Me(g), O = $(g);
1207
+ k && O && _(k, {
1208
+ ...O,
1209
+ derivedPanelConstraints: ge(k)
1210
+ });
1211
+ },
1212
+ toggleSeparatorDisabled: (b, w) => {
1213
+ const M = p.current.separators.find((k) => k.id === b);
1214
+ M && (M.disabled = w);
1215
+ }
1216
+ }), [
1217
+ R,
1218
+ g,
1219
+ S,
1220
+ c,
1221
+ C
1222
+ ]), F = (0, import_react.useRef)(null);
1223
+ return K(() => {
1224
+ const b = y.current;
1225
+ if (b === null) return;
1226
+ const w = p.current;
1227
+ let E;
1228
+ if (C.defaultLayout !== void 0 && Object.keys(C.defaultLayout).length === w.panels.length) {
1229
+ E = {};
1230
+ for (const ee of w.panels) {
1231
+ const ae = C.defaultLayout[ee.id];
1232
+ ae !== void 0 && (E[ee.id] = ae);
1233
+ }
1234
+ }
1235
+ const M = {
1236
+ disabled: !!i,
1237
+ element: b,
1238
+ id: g,
1239
+ mutableState: {
1240
+ defaultLayout: E,
1241
+ disableCursor: !!C.disableCursor,
1242
+ expandedPanelSizes: p.current.lastExpandedPanelSizes,
1243
+ layouts: p.current.layouts
1244
+ },
1245
+ orientation: c,
1246
+ panels: w.panels,
1247
+ resizeTargetMinimumSize: w.resizeTargetMinimumSize,
1248
+ separators: w.separators
1249
+ };
1250
+ F.current = M;
1251
+ const k = jt(M), { defaultLayoutDeferred: O, derivedPanelConstraints: H, layout: Ce } = $(M.id, !0);
1252
+ !O && H.length > 0 && (f(Ce), h(Ce));
1253
+ const lt = ye(g, (ee) => {
1254
+ const { defaultLayoutDeferred: ae, derivedPanelConstraints: Re, layout: le } = ee.next;
1255
+ if (ae || Re.length === 0) return;
1256
+ const ut = M.panels.map(({ id: N }) => N).join(",");
1257
+ M.mutableState.layouts[ut] = le, Re.forEach((N) => {
1258
+ if (N.collapsible) {
1259
+ const { layout: pe } = ee.prev ?? {};
1260
+ if (pe) {
1261
+ const ft = I(N.collapsedSize, le[N.panelId]), dt = I(N.collapsedSize, pe[N.panelId]);
1262
+ ft && !dt && (M.mutableState.expandedPanelSizes[N.panelId] = pe[N.panelId]);
1263
+ }
1264
+ }
1265
+ });
1266
+ const ct = W().state !== "active";
1267
+ f(le), ct && h(le);
1268
+ });
1269
+ return () => {
1270
+ F.current = null, k(), lt();
1271
+ };
1272
+ }, [
1273
+ i,
1274
+ g,
1275
+ h,
1276
+ f,
1277
+ c,
1278
+ z,
1279
+ C
1280
+ ]), (0, import_react.useEffect)(() => {
1281
+ const b = F.current;
1282
+ b && (b.mutableState.defaultLayout = n, b.mutableState.disableCursor = !!o);
1283
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(at.Provider, {
1284
+ value: X,
1285
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1286
+ ...v,
1287
+ className: t,
1288
+ "data-group": !0,
1289
+ "data-testid": g,
1290
+ id: g,
1291
+ ref: P,
1292
+ style: {
1293
+ height: "100%",
1294
+ width: "100%",
1295
+ overflow: "hidden",
1296
+ ...d,
1297
+ display: "flex",
1298
+ flexDirection: c === "horizontal" ? "row" : "column",
1299
+ flexWrap: "nowrap",
1300
+ touchAction: c === "horizontal" ? "pan-y" : "pan-x"
1301
+ },
1302
+ children: e
1303
+ })
1304
+ });
1305
+ }
1306
+ Ut.displayName = "Group";
1307
+ function Le() {
1308
+ const e = (0, import_react.useContext)(at);
1309
+ return L(e, "Group Context not found; did you render a Panel or Separator outside of a Group?"), e;
1310
+ }
1311
+ function Xt(e, t) {
1312
+ const { id: n } = Le(), o = (0, import_react.useRef)({
1313
+ collapse: he,
1314
+ expand: he,
1315
+ getSize: () => ({
1316
+ asPercentage: 0,
1317
+ inPixels: 0
1318
+ }),
1319
+ isCollapsed: () => !1,
1320
+ resize: he
1321
+ });
1322
+ (0, import_react.useImperativeHandle)(t, () => o.current, []), K(() => {
1323
+ Object.assign(o.current, et({
1324
+ groupId: n,
1325
+ panelId: e
1326
+ }));
1327
+ });
1328
+ }
1329
+ function qt({ children: e, className: t, collapsedSize: n = "0%", collapsible: o = !1, defaultSize: i, disabled: s, elementRef: l, groupResizeBehavior: r = "preserve-relative-size", id: a, maxSize: u = "100%", minSize: c = "0%", onResize: m, panelRef: d, style: v, ...x }) {
1330
+ const f = !!a, h = xe(a), g = Pe({ disabled: s }), y = (0, import_react.useRef)(null), z = we(y, l), { getPanelStyles: S, id: p, orientation: P, registerPanel: R, togglePanelDisabled: C } = Le(), X = m !== null, F = oe((w, E, M) => {
1331
+ m?.(w, a, M);
1332
+ });
1333
+ K(() => {
1334
+ const w = y.current;
1335
+ if (w !== null) return R({
1336
+ element: w,
1337
+ id: h,
1338
+ idIsStable: f,
1339
+ mutableValues: {
1340
+ expandToSize: void 0,
1341
+ prevSize: void 0
1342
+ },
1343
+ onResize: X ? F : void 0,
1344
+ panelConstraints: {
1345
+ groupResizeBehavior: r,
1346
+ collapsedSize: n,
1347
+ collapsible: o,
1348
+ defaultSize: i,
1349
+ disabled: g.disabled,
1350
+ maxSize: u,
1351
+ minSize: c
1352
+ }
1353
+ });
1354
+ }, [
1355
+ r,
1356
+ n,
1357
+ o,
1358
+ i,
1359
+ X,
1360
+ h,
1361
+ f,
1362
+ u,
1363
+ c,
1364
+ F,
1365
+ R,
1366
+ g
1367
+ ]), (0, import_react.useEffect)(() => {
1368
+ C(h, !!s);
1369
+ }, [
1370
+ s,
1371
+ h,
1372
+ C
1373
+ ]), Xt(h, d);
1374
+ const b = (0, import_react.useSyncExternalStore)((w) => ye(p, w), () => JSON.stringify(S(p, h)), () => JSON.stringify(S(p, h)));
1375
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1376
+ ...x,
1377
+ "aria-disabled": s || void 0,
1378
+ "data-panel": !0,
1379
+ "data-testid": h,
1380
+ id: h,
1381
+ ref: z,
1382
+ style: {
1383
+ ...Yt,
1384
+ display: "flex",
1385
+ flexBasis: 0,
1386
+ flexShrink: 1,
1387
+ overflow: "visible",
1388
+ ...JSON.parse(b)
1389
+ },
1390
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1391
+ className: t,
1392
+ style: {
1393
+ maxHeight: "100%",
1394
+ maxWidth: "100%",
1395
+ flexGrow: 1,
1396
+ overflow: "auto",
1397
+ ...v,
1398
+ touchAction: P === "horizontal" ? "pan-y" : "pan-x"
1399
+ },
1400
+ children: e
1401
+ })
1402
+ });
1403
+ }
1404
+ qt.displayName = "Panel";
1405
+ var Yt = {
1406
+ minHeight: 0,
1407
+ maxHeight: "100%",
1408
+ height: "auto",
1409
+ minWidth: 0,
1410
+ maxWidth: "100%",
1411
+ width: "auto",
1412
+ border: "none",
1413
+ borderWidth: 0,
1414
+ padding: 0,
1415
+ margin: 0
1416
+ };
1417
+ function Jt({ layout: e, panelConstraints: t, panelId: n, panelIndex: o }) {
1418
+ let i, s;
1419
+ const l = e[n], r = t.find((a) => a.panelId === n);
1420
+ if (r) {
1421
+ const a = r.maxSize, u = r.collapsible ? r.collapsedSize : r.minSize, c = [o, o + 1];
1422
+ s = B({
1423
+ layout: se({
1424
+ delta: u - l,
1425
+ initialLayout: e,
1426
+ panelConstraints: t,
1427
+ pivotIndices: c,
1428
+ prevLayout: e
1429
+ }),
1430
+ panelConstraints: t
1431
+ })[n], i = B({
1432
+ layout: se({
1433
+ delta: a - l,
1434
+ initialLayout: e,
1435
+ panelConstraints: t,
1436
+ pivotIndices: c,
1437
+ prevLayout: e
1438
+ }),
1439
+ panelConstraints: t
1440
+ })[n];
1441
+ }
1442
+ return {
1443
+ valueControls: n,
1444
+ valueMax: i,
1445
+ valueMin: s,
1446
+ valueNow: l
1447
+ };
1448
+ }
1449
+ function Zt({ children: e, className: t, disabled: n, elementRef: o, id: i, style: s, ...l }) {
1450
+ const r = xe(i), a = Pe({ disabled: n }), [u, c] = (0, import_react.useState)({}), [m, d] = (0, import_react.useState)("inactive"), v = (0, import_react.useRef)(null), x = we(v, o), { disableCursor: f, id: h, orientation: g, registerSeparator: y, toggleSeparatorDisabled: z } = Le(), S = g === "horizontal" ? "vertical" : "horizontal";
1451
+ K(() => {
1452
+ const P = v.current;
1453
+ if (P !== null) {
1454
+ const R = {
1455
+ disabled: a.disabled,
1456
+ element: P,
1457
+ id: r
1458
+ }, C = y(R), X = Gt((b) => {
1459
+ d(b.next.state !== "inactive" && b.next.hitRegions.some((w) => w.separator === R) ? b.next.state : "inactive");
1460
+ }), F = ye(h, (b) => {
1461
+ const { derivedPanelConstraints: w, layout: E, separatorToPanels: M } = b.next, k = M.get(R);
1462
+ if (k) {
1463
+ const O = k[0], H = k.indexOf(O);
1464
+ c(Jt({
1465
+ layout: E,
1466
+ panelConstraints: w,
1467
+ panelId: O.id,
1468
+ panelIndex: H
1469
+ }));
1470
+ }
1471
+ });
1472
+ return () => {
1473
+ X(), F(), C();
1474
+ };
1475
+ }
1476
+ }, [
1477
+ h,
1478
+ r,
1479
+ y,
1480
+ a
1481
+ ]), (0, import_react.useEffect)(() => {
1482
+ z(r, !!n);
1483
+ }, [
1484
+ n,
1485
+ r,
1486
+ z
1487
+ ]);
1488
+ let p;
1489
+ return n && !f && (p = "not-allowed"), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1490
+ ...l,
1491
+ "aria-controls": u.valueControls,
1492
+ "aria-disabled": n || void 0,
1493
+ "aria-orientation": S,
1494
+ "aria-valuemax": u.valueMax,
1495
+ "aria-valuemin": u.valueMin,
1496
+ "aria-valuenow": u.valueNow,
1497
+ children: e,
1498
+ className: t,
1499
+ "data-separator": n ? "disabled" : m,
1500
+ "data-testid": r,
1501
+ id: r,
1502
+ ref: x,
1503
+ role: "separator",
1504
+ style: {
1505
+ flexBasis: "auto",
1506
+ cursor: p,
1507
+ ...s,
1508
+ flexGrow: 0,
1509
+ flexShrink: 0,
1510
+ touchAction: "none"
1511
+ },
1512
+ tabIndex: n ? void 0 : 0
1513
+ });
1514
+ }
1515
+ Zt.displayName = "Separator";
1516
+ //#endregion
1517
+ export { Zt as n, qt as r, Ut as t };