intlayer-editor 9.4.1 → 9.4.3

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 (390) hide show
  1. package/client/dist/assets/CodeBlockShiki-C2jZfupZ.js +2 -0
  2. package/client/dist/assets/MarkDownRender-CiKQVquM.js +1 -0
  3. package/client/dist/assets/MarkDownRender-OKmQ5wkB.js +23 -0
  4. package/client/dist/assets/MarkdownEditor-QEPrPZ-E.js +160 -0
  5. package/client/dist/assets/{astro-CP_fXwLT.js → astro-JHDYjn39.js} +1 -1
  6. package/client/dist/assets/bash-CLZ0U2zV.js +1 -0
  7. package/client/dist/assets/css-CdtkT07m.js +1 -0
  8. package/client/dist/assets/css-LbU1hoFO.js +1 -0
  9. package/client/dist/assets/{dist-BMR831Ty.js → dist-CMBnegHe.js} +1 -1
  10. package/client/dist/assets/dist-DmXGrB9_.js +1 -0
  11. package/client/dist/assets/dynamic-Cu9eK9Sn.js +41 -0
  12. package/client/dist/assets/html-B2cKP6UN.js +1 -0
  13. package/client/dist/assets/html-DYtkB_T1.js +1 -0
  14. package/client/dist/assets/index-CIl3DRiy.js +108 -0
  15. package/client/dist/assets/index-DAo12t9O.css +2 -0
  16. package/client/dist/assets/javascript-BzbQS41l.js +1 -0
  17. package/client/dist/assets/javascript-Yelw-5ZN.js +1 -0
  18. package/client/dist/assets/json-B88Oqtu5.js +1 -0
  19. package/client/dist/assets/json-CaljABEy.js +1 -0
  20. package/client/dist/assets/postcss-D_Wz94rJ.js +1 -0
  21. package/client/dist/assets/purify.es-ChwZkWde.js +3 -0
  22. package/client/dist/assets/react-SIfiwpqq.js +1 -0
  23. package/client/dist/assets/shikiBundle-DErVn1dN.js +12 -0
  24. package/client/dist/assets/{svelte-ilNq7Lfa.js → svelte-tEuLYt3E.js} +1 -1
  25. package/client/dist/assets/tsx-5f3ulCja.js +1 -0
  26. package/client/dist/assets/tsx-BOvsFOI6.js +1 -0
  27. package/client/dist/assets/typescript-Utq2Cl8c.js +1 -0
  28. package/client/dist/assets/typescript-j_1H8WHN.js +1 -0
  29. package/client/dist/assets/vue-Bg0byEaI.js +1 -0
  30. package/client/dist/assets/xml-DMbpbO54.js +1 -0
  31. package/client/dist/assets/yaml-rwi0_p6S.js +1 -0
  32. package/client/dist/index.html +5 -6
  33. package/package.json +18 -18
  34. package/client/dist/assets/CodeBlockShiki-BLho0YfQ.js +0 -2
  35. package/client/dist/assets/MarkDownRender-B_EX6v-r.js +0 -1
  36. package/client/dist/assets/MarkDownRender-BtLP6PlU.js +0 -22
  37. package/client/dist/assets/MarkdownEditor-C2G7YjL1.js +0 -195
  38. package/client/dist/assets/abap-CLvhMVsD.js +0 -1
  39. package/client/dist/assets/actionscript-3-Cs6JJXT5.js +0 -1
  40. package/client/dist/assets/ada-C5qYipkI.js +0 -1
  41. package/client/dist/assets/ahk-CA9gdOdF.js +0 -1
  42. package/client/dist/assets/ahk2-_6rzW9BS.js +0 -1
  43. package/client/dist/assets/andromeeda-vGVdxbeo.js +0 -1
  44. package/client/dist/assets/angular-html-B8mrqUL5.js +0 -1
  45. package/client/dist/assets/angular-html-DdvhLupu.js +0 -1
  46. package/client/dist/assets/angular-ts-Bzix210W.js +0 -1
  47. package/client/dist/assets/angular-ts-D1ZzN69u.js +0 -1
  48. package/client/dist/assets/apache-U0d_L8uA.js +0 -1
  49. package/client/dist/assets/apex-KFGFyKwG.js +0 -1
  50. package/client/dist/assets/apl-Dhin1L29.js +0 -1
  51. package/client/dist/assets/applescript-CCn79oCD.js +0 -1
  52. package/client/dist/assets/ara-4CJ0cIlV.js +0 -1
  53. package/client/dist/assets/asciidoc-SCjQUq34.js +0 -1
  54. package/client/dist/assets/asm-Cmm7eHzH.js +0 -1
  55. package/client/dist/assets/astro-BOigG5MK.js +0 -1
  56. package/client/dist/assets/aurora-x-CDeNXAV0.js +0 -1
  57. package/client/dist/assets/awk-BWXHIvNe.js +0 -1
  58. package/client/dist/assets/ayu-dark-DluEY0Gj.js +0 -1
  59. package/client/dist/assets/ayu-light-C3h-C4tm.js +0 -1
  60. package/client/dist/assets/ayu-mirage-Bqwy1Gya.js +0 -1
  61. package/client/dist/assets/ballerina-B7ZEbQpA.js +0 -1
  62. package/client/dist/assets/bash-DJPw08Gl.js +0 -1
  63. package/client/dist/assets/bat-qdxAdBWQ.js +0 -1
  64. package/client/dist/assets/beancount-D-usSTwE.js +0 -1
  65. package/client/dist/assets/berry-DKpUyyne.js +0 -1
  66. package/client/dist/assets/bibtex-Ci_nEsc7.js +0 -1
  67. package/client/dist/assets/bicep-CUHmPFLl.js +0 -1
  68. package/client/dist/assets/bird2-CYIUgYqB.js +0 -1
  69. package/client/dist/assets/blade-C9OtwYXd.js +0 -1
  70. package/client/dist/assets/bsl-_VjlB9mv.js +0 -1
  71. package/client/dist/assets/bundle-web-C6ZY4vfl.js +0 -2
  72. package/client/dist/assets/c-BXFGequq.js +0 -1
  73. package/client/dist/assets/c-iCihek07.js +0 -1
  74. package/client/dist/assets/c3-D0apG41V.js +0 -1
  75. package/client/dist/assets/cadence-CQ2zXKGN.js +0 -1
  76. package/client/dist/assets/cairo-DLTphjLi.js +0 -1
  77. package/client/dist/assets/catppuccin-frappe-C9Q5zVZY.js +0 -1
  78. package/client/dist/assets/catppuccin-latte-CtsyrtPq.js +0 -1
  79. package/client/dist/assets/catppuccin-macchiato-R8nAf1vR.js +0 -1
  80. package/client/dist/assets/catppuccin-mocha-DjuaAJKi.js +0 -1
  81. package/client/dist/assets/chapel-DmtgEXO_.js +0 -1
  82. package/client/dist/assets/clarity-CtfBBspg.js +0 -1
  83. package/client/dist/assets/clojure-DqKBuwfJ.js +0 -1
  84. package/client/dist/assets/cmake-Bj61d0ZC.js +0 -1
  85. package/client/dist/assets/cobol-Cw2-KvLW.js +0 -1
  86. package/client/dist/assets/codeowners-C8r90Shi.js +0 -1
  87. package/client/dist/assets/codeql-oeQT6MSM.js +0 -1
  88. package/client/dist/assets/coffee-CiiSLhB6.js +0 -1
  89. package/client/dist/assets/common-lisp-Cv5bFMCO.js +0 -1
  90. package/client/dist/assets/coq-DuBRPxYg.js +0 -1
  91. package/client/dist/assets/cpp-71xkOQct.js +0 -1
  92. package/client/dist/assets/cpp-B-FuqbHP.js +0 -1
  93. package/client/dist/assets/crystal-DGPAtLeY.js +0 -1
  94. package/client/dist/assets/csharp-D87KiH5q.js +0 -1
  95. package/client/dist/assets/csharp-oqKa8noW.js +0 -1
  96. package/client/dist/assets/css-B4wZOiGx.js +0 -1
  97. package/client/dist/assets/css-CNuuLpMC.js +0 -1
  98. package/client/dist/assets/csv-BjES08DR.js +0 -1
  99. package/client/dist/assets/csv-Dx-8-gkx.js +0 -1
  100. package/client/dist/assets/cue-CE9AQfxI.js +0 -1
  101. package/client/dist/assets/cypher-ClKdZ_lG.js +0 -1
  102. package/client/dist/assets/d-qD-0Kul2.js +0 -1
  103. package/client/dist/assets/dark-plus-Cs2F2srj.js +0 -1
  104. package/client/dist/assets/dart-CnvKMtbv.js +0 -1
  105. package/client/dist/assets/dart-D76ST_ms.js +0 -1
  106. package/client/dist/assets/dax-BkyTk9wS.js +0 -1
  107. package/client/dist/assets/desktop-Dlh5hvp9.js +0 -1
  108. package/client/dist/assets/diff-CGoPSmAs.js +0 -1
  109. package/client/dist/assets/diff-woXpYk--.js +0 -1
  110. package/client/dist/assets/dist-Dx0ApjIF.js +0 -12
  111. package/client/dist/assets/dist-KPVyyi8J.js +0 -1
  112. package/client/dist/assets/docker-B0VNDs-l.js +0 -1
  113. package/client/dist/assets/docker-IyjqRm3v.js +0 -1
  114. package/client/dist/assets/dotenv-_5a1GRtc.js +0 -1
  115. package/client/dist/assets/dracula-BHWKrbxM.js +0 -1
  116. package/client/dist/assets/dracula-soft-5eyTD99u.js +0 -1
  117. package/client/dist/assets/dream-maker-DW3nJb8Q.js +0 -1
  118. package/client/dist/assets/dynamic-BEUMYIIS.js +0 -41
  119. package/client/dist/assets/edge-BssoORKC.js +0 -1
  120. package/client/dist/assets/elixir-DP304Xio.js +0 -1
  121. package/client/dist/assets/elm-o4NJxfws.js +0 -1
  122. package/client/dist/assets/emacs-lisp-c_oH4hRZ.js +0 -1
  123. package/client/dist/assets/erb-C7MPl934.js +0 -1
  124. package/client/dist/assets/erlang-Cphh6RMH.js +0 -1
  125. package/client/dist/assets/everforest-dark-sB-x3p7T.js +0 -1
  126. package/client/dist/assets/everforest-light-Df2xbC6M.js +0 -1
  127. package/client/dist/assets/fennel-DQxkIbk2.js +0 -1
  128. package/client/dist/assets/fish-BJitypiv.js +0 -1
  129. package/client/dist/assets/fluent-C03EYrpw.js +0 -1
  130. package/client/dist/assets/fortran-fixed-form-DEKoE2YW.js +0 -1
  131. package/client/dist/assets/fortran-free-form-CYNrtFtB.js +0 -1
  132. package/client/dist/assets/fsharp-D13ZGOAj.js +0 -1
  133. package/client/dist/assets/gdresource-xMC7jr7x.js +0 -1
  134. package/client/dist/assets/gdscript-DYvRD3hg.js +0 -1
  135. package/client/dist/assets/gdshader-CBce3t8t.js +0 -1
  136. package/client/dist/assets/genie-CV2tkWYe.js +0 -1
  137. package/client/dist/assets/gherkin-DExj1W_8.js +0 -1
  138. package/client/dist/assets/git-commit-BSykSTBG.js +0 -1
  139. package/client/dist/assets/git-rebase-BDPpS8w6.js +0 -1
  140. package/client/dist/assets/github-dark-BXcQsJYB.js +0 -1
  141. package/client/dist/assets/github-dark-default-DXG-b-1a.js +0 -1
  142. package/client/dist/assets/github-dark-dimmed-Bx1FflLF.js +0 -1
  143. package/client/dist/assets/github-dark-high-contrast-B_tTalzw.js +0 -1
  144. package/client/dist/assets/github-light-DnUD0JAn.js +0 -1
  145. package/client/dist/assets/github-light-default-BXViO-2h.js +0 -1
  146. package/client/dist/assets/github-light-high-contrast-B68TUdTA.js +0 -1
  147. package/client/dist/assets/gleam-CSRkHgEL.js +0 -1
  148. package/client/dist/assets/glimmer-js-BONyzAsu.js +0 -1
  149. package/client/dist/assets/glimmer-ts-f9c0GCOe.js +0 -1
  150. package/client/dist/assets/glsl-D5MA2a_X.js +0 -1
  151. package/client/dist/assets/gn-ilITqXS6.js +0 -1
  152. package/client/dist/assets/gnuplot-7GGW24-e.js +0 -1
  153. package/client/dist/assets/go-ByX_zvWx.js +0 -1
  154. package/client/dist/assets/go-rLFTqkRN.js +0 -1
  155. package/client/dist/assets/graphql-BhltWPVB.js +0 -1
  156. package/client/dist/assets/graphql-Ctjuxyvl.js +0 -1
  157. package/client/dist/assets/groovy-CacY0gHj.js +0 -1
  158. package/client/dist/assets/gruvbox-dark-hard-C820rvS2.js +0 -1
  159. package/client/dist/assets/gruvbox-dark-medium-BPjhmG05.js +0 -1
  160. package/client/dist/assets/gruvbox-dark-soft-MrdJrrXF.js +0 -1
  161. package/client/dist/assets/gruvbox-light-hard-BC_s9l72.js +0 -1
  162. package/client/dist/assets/gruvbox-light-medium-BAWPOn9u.js +0 -1
  163. package/client/dist/assets/gruvbox-light-soft-BSMLrYjP.js +0 -1
  164. package/client/dist/assets/hack-Dh_ZLRbs.js +0 -1
  165. package/client/dist/assets/haml-CwEpbK1d.js +0 -1
  166. package/client/dist/assets/handlebars-ryMP1rBR.js +0 -1
  167. package/client/dist/assets/haskell-D8IpX4py.js +0 -1
  168. package/client/dist/assets/haxe-C8oCnwJJ.js +0 -1
  169. package/client/dist/assets/hcl-Dh228itO.js +0 -1
  170. package/client/dist/assets/hjson-CxZEssPk.js +0 -1
  171. package/client/dist/assets/hlsl-Cvrh5tZx.js +0 -1
  172. package/client/dist/assets/horizon-CE9ld1lL.js +0 -1
  173. package/client/dist/assets/horizon-bright-DSNQnXHK.js +0 -1
  174. package/client/dist/assets/houston-CsvMBhTu.js +0 -1
  175. package/client/dist/assets/html-C8J32C4L.js +0 -1
  176. package/client/dist/assets/html-XwrE-1r6.js +0 -1
  177. package/client/dist/assets/html-derivative-CZmrFNOW.js +0 -1
  178. package/client/dist/assets/http-NCBdpUR_.js +0 -1
  179. package/client/dist/assets/http-kmH8AyfE.js +0 -1
  180. package/client/dist/assets/hurl-DCZHXKU4.js +0 -1
  181. package/client/dist/assets/hxml-Dcm88srW.js +0 -1
  182. package/client/dist/assets/hy-CZbG8q4J.js +0 -1
  183. package/client/dist/assets/imba-DsUTQ-LC.js +0 -1
  184. package/client/dist/assets/index-BreD6vF9.js +0 -122
  185. package/client/dist/assets/index-DWNHyE4L.css +0 -2
  186. package/client/dist/assets/ini-B5eOa1yu.js +0 -1
  187. package/client/dist/assets/ini-CxAuzHS9.js +0 -1
  188. package/client/dist/assets/java-DacLdzTj.js +0 -1
  189. package/client/dist/assets/java-DdHNQ9hk.js +0 -1
  190. package/client/dist/assets/javascript-D3QwfYpG.js +0 -1
  191. package/client/dist/assets/javascript-obGGvMPs.js +0 -1
  192. package/client/dist/assets/jinja-B-tLrNsM.js +0 -1
  193. package/client/dist/assets/jison-CBjhYtSs.js +0 -1
  194. package/client/dist/assets/json-BEKLEUsd.js +0 -1
  195. package/client/dist/assets/json-DAgxKhMr.js +0 -1
  196. package/client/dist/assets/json5-CAt3W1dj.js +0 -1
  197. package/client/dist/assets/jsonl-CmCQp5Yx.js +0 -1
  198. package/client/dist/assets/jsonnet-CJTPZ8u_.js +0 -1
  199. package/client/dist/assets/jssm-DXw9l8Rf.js +0 -1
  200. package/client/dist/assets/jsx-gTgmArGx.js +0 -1
  201. package/client/dist/assets/julia-CXJVy74_.js +0 -1
  202. package/client/dist/assets/just-B9Xn_Dp4.js +0 -1
  203. package/client/dist/assets/kanagawa-dragon-Bozd7klA.js +0 -1
  204. package/client/dist/assets/kanagawa-lotus-BmuOG9ZW.js +0 -1
  205. package/client/dist/assets/kanagawa-wave-BML5mF2J.js +0 -1
  206. package/client/dist/assets/kdl-CsD5j6eV.js +0 -1
  207. package/client/dist/assets/kotlin-DFAlwc6n.js +0 -1
  208. package/client/dist/assets/kotlin-DhhofPvG.js +0 -1
  209. package/client/dist/assets/kusto-C7mF5XQf.js +0 -1
  210. package/client/dist/assets/laserwave-C_8bwKvT.js +0 -1
  211. package/client/dist/assets/latex-o9DRzaEe.js +0 -1
  212. package/client/dist/assets/lean-CewbzKMR.js +0 -1
  213. package/client/dist/assets/less-BAH4QT9G.js +0 -1
  214. package/client/dist/assets/less-DVTAwKKz.js +0 -1
  215. package/client/dist/assets/light-plus-DVQuIRkW.js +0 -1
  216. package/client/dist/assets/liquid-G0MH4h_m.js +0 -1
  217. package/client/dist/assets/llvm-DqHOMS-s.js +0 -1
  218. package/client/dist/assets/log-BNLmms1o.js +0 -1
  219. package/client/dist/assets/logo-Cluzi2Zq.js +0 -1
  220. package/client/dist/assets/lua-9Gg56-4d.js +0 -1
  221. package/client/dist/assets/lua-FONpmTUP.js +0 -1
  222. package/client/dist/assets/luau-C2pBCSgt.js +0 -1
  223. package/client/dist/assets/make-Dixweg8N.js +0 -1
  224. package/client/dist/assets/markdown-BK4fiefF.js +0 -1
  225. package/client/dist/assets/marko-DV5GrDmo.js +0 -1
  226. package/client/dist/assets/material-theme-Bm3Qr25_.js +0 -1
  227. package/client/dist/assets/material-theme-darker-2IIEA8gg.js +0 -1
  228. package/client/dist/assets/material-theme-lighter-uhdI0v04.js +0 -1
  229. package/client/dist/assets/material-theme-ocean-CHQ94UKr.js +0 -1
  230. package/client/dist/assets/material-theme-palenight-B5W6OYN7.js +0 -1
  231. package/client/dist/assets/matlab-D7qyCx1q.js +0 -1
  232. package/client/dist/assets/mdc-DDp9N6h-.js +0 -1
  233. package/client/dist/assets/mdx-DQZ5AkYe.js +0 -1
  234. package/client/dist/assets/mermaid-BxpfTIzt.js +0 -1
  235. package/client/dist/assets/min-dark-BSWPekZh.js +0 -1
  236. package/client/dist/assets/min-light-DDpmG2fV.js +0 -1
  237. package/client/dist/assets/mipsasm-BMqwQI7S.js +0 -1
  238. package/client/dist/assets/mojo-fg40_ntQ.js +0 -1
  239. package/client/dist/assets/monokai-B_bV9PQ9.js +0 -1
  240. package/client/dist/assets/moonbit-DgjMoLWr.js +0 -1
  241. package/client/dist/assets/move-BYnGhZoM.js +0 -1
  242. package/client/dist/assets/narrat-_X_XdTYD.js +0 -1
  243. package/client/dist/assets/nextflow-BJtWHP5T.js +0 -1
  244. package/client/dist/assets/nextflow-groovy-DJMQeKeT.js +0 -1
  245. package/client/dist/assets/nginx-BTMw9COX.js +0 -1
  246. package/client/dist/assets/nginx-D0i2Z83b.js +0 -1
  247. package/client/dist/assets/night-owl-DhmEMT88.js +0 -1
  248. package/client/dist/assets/night-owl-light-eJ-hLW7d.js +0 -1
  249. package/client/dist/assets/nim-B6yJ_yaC.js +0 -1
  250. package/client/dist/assets/nix-IvuFDN5E.js +0 -1
  251. package/client/dist/assets/nord-Cb4Vim4T.js +0 -1
  252. package/client/dist/assets/nsis-CjNLYCLg.js +0 -1
  253. package/client/dist/assets/nushell-DHYfO66s.js +0 -1
  254. package/client/dist/assets/objective-c-D1A_Heim.js +0 -1
  255. package/client/dist/assets/objective-cpp-BsSzOQcm.js +0 -1
  256. package/client/dist/assets/ocaml-O90oeIOV.js +0 -1
  257. package/client/dist/assets/odin-B1RWQWA5.js +0 -1
  258. package/client/dist/assets/one-dark-pro-CLwyXe_n.js +0 -1
  259. package/client/dist/assets/one-light-D7Lr4KcI.js +0 -1
  260. package/client/dist/assets/openscad-BUDT5pXO.js +0 -1
  261. package/client/dist/assets/org-Ddi8Gs6E.js +0 -1
  262. package/client/dist/assets/pascal-4ZHwLPI5.js +0 -1
  263. package/client/dist/assets/perl-DEgXgjuC.js +0 -1
  264. package/client/dist/assets/php-B3WFIgcK.js +0 -1
  265. package/client/dist/assets/php-B9UPq-vz.js +0 -1
  266. package/client/dist/assets/pkl-ot-7Btpt.js +0 -1
  267. package/client/dist/assets/plastic-DQwYfKfQ.js +0 -1
  268. package/client/dist/assets/plsql-DGHpHOYJ.js +0 -1
  269. package/client/dist/assets/po-BiJDBrnU.js +0 -1
  270. package/client/dist/assets/poimandres-DRFjx7u4.js +0 -1
  271. package/client/dist/assets/polar-C7UOKdEL.js +0 -1
  272. package/client/dist/assets/postcss-DjpeKS93.js +0 -1
  273. package/client/dist/assets/powerquery-DNMTfnFr.js +0 -1
  274. package/client/dist/assets/powershell-CCSX75yM.js +0 -1
  275. package/client/dist/assets/powershell-npZ7I2uH.js +0 -1
  276. package/client/dist/assets/prisma-DMUTjaHc.js +0 -1
  277. package/client/dist/assets/prisma-DMgNhnYS.js +0 -1
  278. package/client/dist/assets/prolog-iXnhIJG7.js +0 -1
  279. package/client/dist/assets/proto-DB4EqR-F.js +0 -1
  280. package/client/dist/assets/pug-DkgDHZci.js +0 -1
  281. package/client/dist/assets/puppet-CDv2pdJW.js +0 -1
  282. package/client/dist/assets/purescript-9MfHhQsQ.js +0 -1
  283. package/client/dist/assets/purify.es-JEAr64Sr.js +0 -3
  284. package/client/dist/assets/python-6UJTEiNq.js +0 -1
  285. package/client/dist/assets/python-gzcpVVnB.js +0 -1
  286. package/client/dist/assets/qml-_a-QhfPD.js +0 -1
  287. package/client/dist/assets/qmldir-DCQb3MpD.js +0 -1
  288. package/client/dist/assets/qss-Fe1Jh2GI.js +0 -1
  289. package/client/dist/assets/r-BHcO8Vjq.js +0 -1
  290. package/client/dist/assets/racket-DcIDlBhZ.js +0 -1
  291. package/client/dist/assets/raku-B3gFvitq.js +0 -1
  292. package/client/dist/assets/razor-BMJ0eI3p.js +0 -1
  293. package/client/dist/assets/rbs-C0MpOrj4.js +0 -1
  294. package/client/dist/assets/react-CwJFpaho.js +0 -1
  295. package/client/dist/assets/red-DX1BQOs8.js +0 -1
  296. package/client/dist/assets/reg-CRGYupPL.js +0 -1
  297. package/client/dist/assets/regexp-DR20uMnK.js +0 -1
  298. package/client/dist/assets/rel-BtDbiS_P.js +0 -1
  299. package/client/dist/assets/riscv-Ckw8ddFX.js +0 -1
  300. package/client/dist/assets/rolldown-runtime-hePW80VL.js +0 -1
  301. package/client/dist/assets/ron-VUp2lXgN.js +0 -1
  302. package/client/dist/assets/rose-pine-aMsaMD1D.js +0 -1
  303. package/client/dist/assets/rose-pine-dawn-8PwUyIlP.js +0 -1
  304. package/client/dist/assets/rose-pine-moon-DO-qXg-I.js +0 -1
  305. package/client/dist/assets/rosmsg-CAekHB0j.js +0 -1
  306. package/client/dist/assets/rst-D_zF0oSf.js +0 -1
  307. package/client/dist/assets/ruby-B8JcIHv0.js +0 -1
  308. package/client/dist/assets/ruby-BwZ6L1bt.js +0 -1
  309. package/client/dist/assets/rust-Cfkwpbl8.js +0 -1
  310. package/client/dist/assets/rust-hysUUyJr.js +0 -1
  311. package/client/dist/assets/sas-CBpMWA2M.js +0 -1
  312. package/client/dist/assets/sass-DXrisJhu.js +0 -1
  313. package/client/dist/assets/scala-BiFt_7mu.js +0 -1
  314. package/client/dist/assets/scheme-DQCgrYNe.js +0 -1
  315. package/client/dist/assets/scss-BcTpOuGQ.js +0 -1
  316. package/client/dist/assets/scss-YesllqfO.js +0 -1
  317. package/client/dist/assets/sdbl-bTVj8UrX.js +0 -1
  318. package/client/dist/assets/shaderlab-TOUzSsQk.js +0 -1
  319. package/client/dist/assets/shellscript-Da78Ox-3.js +0 -1
  320. package/client/dist/assets/shellsession-CVsQGYfZ.js +0 -1
  321. package/client/dist/assets/slack-dark-DnToyrRv.js +0 -1
  322. package/client/dist/assets/slack-ochin-B2OO5cIa.js +0 -1
  323. package/client/dist/assets/smalltalk-BHpQb5nM.js +0 -1
  324. package/client/dist/assets/smithy-Dgaz7aur.js +0 -1
  325. package/client/dist/assets/snazzy-light-4G7pJPwS.js +0 -1
  326. package/client/dist/assets/solarized-dark-UdsmMDCL.js +0 -1
  327. package/client/dist/assets/solarized-light-C1IUL_tW.js +0 -1
  328. package/client/dist/assets/solidity-Bj7E1mRn.js +0 -1
  329. package/client/dist/assets/soy-DEd-qcad.js +0 -1
  330. package/client/dist/assets/sparql-D_iOobhT.js +0 -1
  331. package/client/dist/assets/splunk-BC2Px7Mm.js +0 -1
  332. package/client/dist/assets/sql-DdD7vxS4.js +0 -1
  333. package/client/dist/assets/sql-cVYxS3zp.js +0 -1
  334. package/client/dist/assets/ssh-config-BgfXC-Er.js +0 -1
  335. package/client/dist/assets/stata-CMv7m7Gi.js +0 -1
  336. package/client/dist/assets/stylus-B6D30XZt.js +0 -1
  337. package/client/dist/assets/surrealql-BZoq2lXR.js +0 -1
  338. package/client/dist/assets/svelte-BfB1UVP4.js +0 -1
  339. package/client/dist/assets/swift-CyEgAFGc.js +0 -1
  340. package/client/dist/assets/swift-DD8iODVb.js +0 -1
  341. package/client/dist/assets/synthwave-84-nFMaYfgc.js +0 -1
  342. package/client/dist/assets/system-verilog-Dh5ihWbf.js +0 -1
  343. package/client/dist/assets/systemd-BxMlprV5.js +0 -1
  344. package/client/dist/assets/talonscript-CohzipZa.js +0 -1
  345. package/client/dist/assets/tasl-DMoTqEGO.js +0 -1
  346. package/client/dist/assets/tcl-CZd0xW_V.js +0 -1
  347. package/client/dist/assets/templ-TjxbArHn.js +0 -1
  348. package/client/dist/assets/terraform-DswuEJGm.js +0 -1
  349. package/client/dist/assets/tex-BK-H2Wn4.js +0 -1
  350. package/client/dist/assets/tokyo-night-oM2G3aXe.js +0 -1
  351. package/client/dist/assets/toml-CcmNWLt0.js +0 -1
  352. package/client/dist/assets/toml-ClfFv0hG.js +0 -1
  353. package/client/dist/assets/ts-tags-Cc5do7zu.js +0 -1
  354. package/client/dist/assets/tsv-sltzmVWM.js +0 -1
  355. package/client/dist/assets/tsx-CUOciP0b.js +0 -1
  356. package/client/dist/assets/tsx-pz6HK4Kt.js +0 -1
  357. package/client/dist/assets/turtle-ByJddavk.js +0 -1
  358. package/client/dist/assets/twig-BVSnuTf-.js +0 -1
  359. package/client/dist/assets/typescript-BydbNFcO.js +0 -1
  360. package/client/dist/assets/typescript-C1HUSq0F.js +0 -1
  361. package/client/dist/assets/typespec-BRdr0IET.js +0 -1
  362. package/client/dist/assets/typst-C40W_gC6.js +0 -1
  363. package/client/dist/assets/v-DBj4K9d_.js +0 -1
  364. package/client/dist/assets/vala-zf12oZj6.js +0 -1
  365. package/client/dist/assets/vb-DOwzaHZ0.js +0 -1
  366. package/client/dist/assets/verilog-B2gwz-sJ.js +0 -1
  367. package/client/dist/assets/vesper-DdrHHSXu.js +0 -1
  368. package/client/dist/assets/vhdl-BroJfC0k.js +0 -1
  369. package/client/dist/assets/viml-DvXPmvsu.js +0 -1
  370. package/client/dist/assets/vitesse-black-fwtXNY1n.js +0 -1
  371. package/client/dist/assets/vitesse-dark-BZCL-v6S.js +0 -1
  372. package/client/dist/assets/vitesse-light-VbXTXTou.js +0 -1
  373. package/client/dist/assets/vue-CPLyymta.js +0 -1
  374. package/client/dist/assets/vue-Dp3wEN59.js +0 -1
  375. package/client/dist/assets/vue-html-DkKkQnZL.js +0 -1
  376. package/client/dist/assets/vue-vine-BQzmGpSB.js +0 -1
  377. package/client/dist/assets/vyper-CgoNMtux.js +0 -1
  378. package/client/dist/assets/wasm-ByWQv1Qj.js +0 -1
  379. package/client/dist/assets/wenyan-C8pVoKbM.js +0 -1
  380. package/client/dist/assets/wgsl-BsKzXJz4.js +0 -1
  381. package/client/dist/assets/wikitext-ClFFjSW2.js +0 -1
  382. package/client/dist/assets/wit-DdvCle-K.js +0 -1
  383. package/client/dist/assets/wolfram-DLL8P-h_.js +0 -1
  384. package/client/dist/assets/xml-BlnrEAEy.js +0 -1
  385. package/client/dist/assets/xml-CgBKDvjc.js +0 -1
  386. package/client/dist/assets/xsl-BOPS8gLt.js +0 -1
  387. package/client/dist/assets/yaml-CxGkb6KZ.js +0 -1
  388. package/client/dist/assets/yaml-Du_6cdrH.js +0 -1
  389. package/client/dist/assets/zenscript-BnlCZFoB.js +0 -1
  390. package/client/dist/assets/zig-CMLA9XwU.js +0 -1
@@ -1,41 +0,0 @@
1
- import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-CwJFpaho.js";import{n as r,r as i,t as a}from"./dist-KPVyyi8J.js";var o=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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 i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),s=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=o()})),c={locales:[`en`,`en-GB`,`fr`,`es`,`de`,`ja`,`ko`,`zh`,`it`,`pt`,`hi`,`ar`,`ru`],requiredLocales:[`en`,`en-GB`,`fr`,`es`,`de`,`ja`,`ko`,`zh`,`it`,`pt`,`hi`,`ar`,`ru`],strictMode:`strict`,defaultLocale:`en`},l={mode:`prefix-no-default`,storage:{cookies:[{name:`INTLAYER_LOCALE`,attributes:{path:`/`}}],headers:[{name:`x-intlayer-locale`}]},basePath:``},u={editorURL:`http://localhost:8000`,cmsURL:`https://app.intlayer.org`,backendURL:`https://back.intlayer.org`,port:8e3,enabled:!1,dictionaryPriorityStrategy:`local_first`,liveSync:!1,liveSyncPort:4e3,liveSyncURL:`http://localhost:4000`},d={mode:`default`,prefix:`\x1B[38;5;239m[intlayer] \x1B[0m`},f=i(),p=e(n(),1),m=r(),h=({children:e,value:t,additionalProps:n})=>{let r=(0,p.isValidElement)(e)?e:(0,m.jsx)(m.Fragment,{children:e});return new Proxy(r,{get(e,r,i){if(r===`value`)return t;if(r===Symbol.toPrimitive)return()=>t??``;if(r===`toString`)return()=>String(t??``);if(r===`valueOf`)return()=>t;if(n&&Object.hasOwn(n,r))return n[r];if(t!=null&&typeof r==`string`&&r!==`constructor`&&!(r in e)){let e=Object(t);if(r in e){let n=e[r];return typeof n==`function`?n.bind(t):n}}return Reflect.get(e,r,i)}})},g=new WeakMap,_=0,v=e=>{if(!e)return`base`;let t=g.get(e);if(t)return t;_+=1;let n=`p${_}`;return g.set(e,n),n},y=256,b=new WeakMap,x=e=>typeof e==`object`&&!!e,S=(e,t,n)=>`${e}_${t}_${v(n)}`,C=(e,t)=>{if(!x(e))return{hit:!1};let n=b.get(e);return n?.has(t)?{hit:!0,content:n.get(t)}:{hit:!1}},w=(e,t,n)=>{if(!x(e))return n;let r=b.get(e);return r||(r=new Map,b.set(e,r)),r.size>=y&&r.clear(),r.set(t,n),n},T=(e,t)=>{let n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},E=`translation`,D=`enumeration`,O=`plural`,k=`condition`,A=`insertion`,j=`file`,ee=`object`,M=`array`,te=`nested`,ne=`reactNode`,re=`preactNode`,ie=`solidNode`,ae=`markdown`,oe=`html`,se=`text`,ce=`number`,le=`boolean`,ue=`gender`,de=`select`,fe=`null`,pe=`unknown`,me=(e,t)=>{for(let n of t.plugins??[])if(n.canHandle(e))return n.transform(e,t,(e,t)=>me(e,t));if(typeof e!=`object`||!e||e.$$typeof!==void 0||e.__v_isVNode!==void 0||e._isVNode!==void 0||e.isJSX!==void 0||typeof e==`function`)return e;if(Array.isArray(e))return e.map((e,n)=>me(e,{...t,children:e,keyPath:[...t.keyPath,{type:M,key:n}]}));let n={};for(let r in e){let i={...t,children:e[r],keyPath:[...t.keyPath,{type:ee,key:r}]};if(t.eager){n[r]=me(e[r],i);continue}Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get:function(){let t=me(e[r],i);return Object.defineProperty(this,r,{value:t,enumerable:!0,configurable:!0}),t}})}return n},he=(e,t)=>e.replace(/\{\{\s*(.*?)\s*\}\}/g,(e,n)=>(t[n.trim()]??``).toString()),ge=`default`,_e=/[^A-Za-z0-9._&=-]/g,ve=/[^A-Za-z0-9._-]/g,ye=e=>`%${e.charCodeAt(0).toString(16).toUpperCase().padStart(4,`0`)}`,be=(e,t)=>{if(e===``)return`%`;let n=e.replace(t,ye);return n===`.`||n===`..`?n.replace(/\./g,`%002E`):n},xe=e=>e===void 0?ge:typeof e==`string`?be(e,_e):Object.keys(e).sort().map(t=>`${be(t,ve)}=${be(String(e[t]),ve)}`).join(`&`),Se=e=>Array.isArray(e)?e.length===0?[ge]:e.map(xe):[xe(e)],Ce=(e,t)=>{for(let n of e)if(t(n))return n;return t(`default`)?ge:e[0]??`default`},we=(e,t,n,r)=>{let i=e.split(`/`);return t.every((e,t)=>e===`variant`?i[t]===r:n?.item===void 0||i[t]===String(n.item))},Te=e=>typeof e==`object`&&!!e&&`qualifierTypes`in e&&Array.isArray(e.qualifierTypes)&&`content`in e,Ee=(e,t)=>{let n=t.split(`/`),r={key:e.key,content:e.content[t]};return e.qualifierTypes.forEach((e,t)=>{e===`variant`?r.variant=n[t]:e===`item`&&(r.item=Number(n[t]))}),r},De=(e,t)=>{if(!Te(e))return e;let{qualifierTypes:n,content:r}=e,i=n.includes(`item`)&&t?.item===void 0,a=Object.keys(r),o=n.indexOf(`variant`),s=o===-1?ge:Ce(Se(t?.variant),e=>a.some(t=>t.split(`/`)[o]===e)),c=a.filter(e=>we(e,n,t,s)).map(t=>Ee(e,t));return i?c.sort((e,t)=>(e.item??0)-(t.item??0)):c[0]??null},Oe=e=>typeof e==`object`&&e?{locale:e.locale,selector:e}:{locale:e},ke=e=>e?Object.keys(e).filter(e=>e!==`locale`).sort().map(t=>{let n=e[t];return`${t}:${t===`variant`?Se(n).join(`,`):String(n)}`}).join(`|`):``,Ae=`\x1B[0m`,je=`\x1B[34m`,Me=`\x1B[31m`,Ne=`\x1B[32m`,Pe=`\x1B[38;5;3m`,Fe=e=>e,Ie=(e,t)=>{let n=t?.config??{},r=n.mode??`default`;if(r===`disabled`||t?.isVerbose&&r!==`verbose`)return;let i=Fe(n.prefix),a=i?[i,...[e].flat()]:[e].flat(),o=t?.level??`info`;(n[o]??console[o]??n.log??console.log)(...a)},Le=(e,t)=>(n,r)=>Ie(n,{...r??{},config:{...e?.log,...t?.config,...r?.config??{}}}),Re=(e,t,n)=>t&&typeof window>`u`?`${t}${e}${n?typeof n==`boolean`?Ae:n:Ae}`:e,ze=(e,t=Pe,n=Ae)=>[e].flat().map(e=>Re(e,t,n)).join(`, `);Re(`✗`,Me),Re(`✓`,Ne),Re(`⏲`,je);var Be={},Ve=()=>Be,He=new Set([`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`]),Ue=(e=``)=>new Proxy(()=>e,{get:(t,n)=>n===`toJSON`||n===Symbol.toPrimitive||n===`toString`||n===`valueOf`?()=>e:n===`then`?void 0:He.has(n)?Object.prototype[n].bind(t):n===Symbol.iterator?function*(){yield e}:Ue(e?`${e}.${String(n)}`:String(n))}),We=new Set,Ge=(e,t,n)=>{let r=Ve()[e];return r?ut(r,t,n):(We.has(e)||(Le({log:d})(typeof window>`u`?`Dictionary ${ze(e)} was not found. Using fallback proxy.`:`Dictionary ${e} was not found. Using fallback proxy.`,{level:`warn`}),We.add(e)),Ue(e))},Ke=e=>{if(typeof e!=`object`||!e||typeof e.then==`function`||e.$$typeof!==void 0||e.__v_isVNode!==void 0||e._isVNode!==void 0||e.isJSX!==void 0)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Array.isArray(e)},qe=(e,t)=>{if(e===void 0)return t;if(t===void 0||Array.isArray(e))return e;if(Ke(e)&&Ke(t)){let n={...e};for(let r of Object.keys(t))r!==`__proto__`&&r!==`constructor`&&t[r]!==void 0&&(n[r]=e[r]===void 0?t[r]:qe(e[r],t[r]));return n}return e},Je=(e,t,n)=>{let r=t=>e[t],i=new Set,a=[],o=e=>{e&&!i.has(e)&&(i.add(e),a.push(e))};o(t),t.includes(`-`)&&o(t.split(`-`)[0]),o(n),n?.includes(`-`)&&o(n.split(`-`)[0]);let s=[];for(let e of a){let t=r(e);if(t!==void 0){if(typeof t==`string`){if(s.length===0)return t;continue}s.push(t)}}if(s.length!==0)return s.length===1||Array.isArray(s[0])?s[0]:s.reduce((e,t)=>qe(e,t))},Ye=e=>{if(typeof e!=`object`||!e||!(`nodeType`in e))return!1;let{nodeType:t}=e;return!1},Xe=e=>{if(typeof e==`string`)return e;if(Ye(e))return e.nodeType===`html`?e[oe]:e[ae]},Ze=(e,t)=>{if(typeof e==`string`)return t;if(Ye(e)){let n=e.nodeType===`html`?oe:ae;return{...e,[n]:t}}return e},Qe=(e,t,n,r,i)=>{let a=Ze(e,he(Xe(e),t));return i(a,{...n,plugins:r,children:a})},N={id:`fallback-plugin`,canHandle:()=>!1,transform:e=>e},$e=(e,t)=>({}).INTLAYER_NODE_TYPE_TRANSLATION===`false`?N:{id:`translation-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`translation`,transform:(n,r,i)=>{let a=n.translation??{},o={};for(let e in a){let t={...r,children:a[e],keyPath:[...r.keyPath,{type:E,key:e}]};o[e]=i(a[e],t)}return Je(o,e,t)}},et=N,tt=e=>N,nt={}.INTLAYER_NODE_TYPE_CONDITION===`false`?N:{id:`condition-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`condition`,transform:(e,t,n)=>{let r=e[k],i={};for(let e in r){let a=r[e];i[e]=n(a,{...t,children:a,keyPath:[...t.keyPath,{type:k,key:e}]})}return e=>{let t=typeof e==`boolean`?e:e.value,n=T(i,t);return typeof n==`function`&&typeof e==`object`?n(e):n}}},rt={}.INTLAYER_NODE_TYPE_INSERTION===`false`?N:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`insertion`,transform:(e,t,n)=>{let r=[...t.keyPath,{type:A}],i=e[A],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`||Ye(e),transform:(e,n,r)=>{if(Ye(e))return i=>Qe(e,i,n,t.plugins,r);let i=r(e,{...n,children:e,plugins:[...(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)]});return e=>{let a=he(i,e);return r(a,{...n,plugins:t.plugins,children:a})}}};return n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]})}},it=N,at=N,ot=e=>N,st=N,ct=(e,t=!0)=>[$e(e??c.defaultLocale,t?c.defaultLocale:void 0),et,nt,rt,ot(e??c.defaultLocale),st,it,at],lt=(e,t,n=[])=>me(e,{...t,plugins:n}),ut=(e,t,n)=>{let{locale:r,selector:i}=Oe(t),a=S(r??c.defaultLocale,ke(i),n),o=C(e,a);if(o.hit)return o.content;let s=n??ct(r),l=De(e,i),u=e=>{let t={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:s,nestedDictionaries:e.nestedDictionaries};return lt(e.content,t,s)};return l===null?w(e,a,null):Array.isArray(l)?w(e,a,l.map(u)):w(e,a,u(l))},dt=[`en`],ft=e=>e!=null&&typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`,pt=/\{\{\s*(.*?)\s*\}\}/g,mt=(e,t={})=>{if(!Object.values(t).some(ft))return{isSimple:!0,parts:e.replace(pt,(e,n)=>(t[n.trim()]??``).toString())};let n=e.split(pt),r=[];for(let e=0;e<n.length;e++)if(e%2==0)n[e]&&r.push(n[e]);else{let i=t[n[e].trim()];i!=null&&r.push(i)}return{isSimple:!1,parts:r}},ht={id:`intlayer-node-plugin`,canHandle:e=>typeof e==`bigint`||typeof e==`string`||typeof e==`number`,transform:(e,{plugins:t,...n})=>h({...n,value:n.children,children:n.children})},gt=N,_t=(e,t)=>{let n=mt(e,t);return n.isSimple?n.parts:(0,p.createElement)(p.Fragment,null,...n.parts.map((e,t)=>(0,p.createElement)(p.Fragment,{key:t},e)))},vt={}.INTLAYER_NODE_TYPE_INSERTION===`false`?N:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===`insertion`,transform:(e,t,n)=>{let r=[...t.keyPath,{type:A}],i=e[A],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`||Ye(e),transform:(e,n,r)=>{if(Ye(e))return i=>Qe(e,i,n,t.plugins,r);let i=r(e,{...n,children:e,plugins:[...(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)]});return e=>{let a=_t(i,e);return r(a,{...n,plugins:t.plugins,children:a})}}},o=n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]});return typeof i==`object`&&i&&`nodeType`in i&&[`enumeration`,`condition`].includes(i.nodeType)?e=>t=>{let n=o(t);return typeof n==`function`?n(e):n}:o}},yt=N,bt=N,xt=new Map,St=(e,t=!0)=>{let n=`${e??c.defaultLocale}_${t}`;if(xt.has(n))return xt.get(n);let r=[$e(e??c.defaultLocale,t?c.defaultLocale:void 0),et,tt(e??c.defaultLocale),nt,ot(e??c.defaultLocale),st,it,at,ht,gt,vt,yt,bt];return xt.set(n,r),r},Ct=(e,t)=>Ge(e,t,St(typeof t==`object`&&t?t.locale:t)),wt=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),Tt=e=>{if(typeof e==`number`)return Date.now()+e*1e3;if(typeof e==`string`){let t=Date.parse(e);return Number.isNaN(t)?void 0:t}},Et=(e,t,n)=>{let r=[`${e}=${encodeURIComponent(t)}`];n.path&&r.push(`Path=${n.path}`),n.domain&&r.push(`Domain=${n.domain}`);let i=Tt(n.expires);return i!==void 0&&r.push(`Expires=${new Date(i).toUTCString()}`),n.secure&&r.push(`Secure`),n.sameSite&&r.push(`SameSite=${n.sameSite}`),r.join(`; `)},Dt={}.INTLAYER_ROUTING_STORAGE_COOKIES===`false`;({}).INTLAYER_ROUTING_STORAGE_HEADERS;var Ot={getCookie:e=>document.cookie.split(`;`).find(t=>t.trim().startsWith(`${e}=`))?.split(`=`)[1],getLocaleStorage:e=>localStorage.getItem(e),getSessionStorage:e=>sessionStorage.getItem(e),isCookieEnabled:!0,setCookieStore:(e,t,n)=>cookieStore.set({name:e,value:t,path:n.path,domain:n.domain,expires:n.expires,sameSite:n.sameSite}),setCookieString:(e,t)=>{document.cookie=t},setSessionStorage:(e,t)=>sessionStorage.setItem(e,t),setLocaleStorage:(e,t)=>localStorage.setItem(e,t)},kt=(e=Ot)=>{let{locales:t}=c;if(e?.isCookieEnabled===!1)return;let n=e=>!!e&&t.includes(e);if(!Dt)for(let t=0;t<(l.storage.cookies??[]).length;t++)try{let r=e?.getCookie?.(l.storage.cookies[t].name);if(n(r))return r}catch{}},At=(e,t)=>{if(t?.isCookieEnabled!==!1&&!Dt&&l.storage.cookies)for(let n=0;n<l.storage.cookies.length;n++){let{name:r,attributes:i}=l.storage.cookies[n];try{t?.setCookieStore&&t.setCookieStore(r,e,{...i,expires:Tt(i.expires)})}catch{try{t?.setCookieString&&t.setCookieString(r,Et(r,e,i))}catch{}}}},jt=kt(Ot),Mt=(e,t)=>At(e,{...Ot,isCookieEnabled:t}),Nt=()=>{typeof window<`u`&&(window.intlayer={enabled:!0})},Pt=(e,t=c?.locales)=>{let n=wt(e),r=e;e?.endsWith(`/`)&&(r=e.slice(0,-1));let i=n?new URL(r):new URL(r,`http://e.com`),a=i.pathname;a.startsWith(`/`)||(i.pathname=`/${a}`);{let e=a.split(`/`),n=e[1];t?.includes(n)&&(e.splice(1,1),i.pathname=e.join(`/`)??`/`)}return n?i.toString():i.toString().replace(`http://e.com`,``)},Ft=(e={})=>({defaultLocale:c?.defaultLocale??`en`,mode:l?.mode??`prefix-no-default`,locales:c?.locales??dt,rewrite:l?.rewrite,domains:l?.domains,...e}),It=(e,t)=>!!e&&(t??c.locales).includes(e),Lt=(e,t={})=>{let{defaultLocale:n,mode:r,locales:i,domains:a}=Ft(t);return!e||!It(e,i)?{prefix:``,localePrefix:void 0}:r===`prefix-all`||r===`prefix-no-default`&&n!==e?{prefix:`${e}/`,localePrefix:e}:{prefix:``,localePrefix:void 0}},Rt=(e,t,n)=>e,zt=(e,t,n)=>({path:e,isRewritten:!1}),Bt=(e,t=c?.defaultLocale,n={})=>{let{defaultLocale:r,mode:i,locales:a,rewrite:o,domains:s}=Ft(n),l=Pt(e,a),u=new URL(l,`http://e.com`),d=zt(Rt(u.pathname,void 0,void 0),t,void 0).path,{prefix:f}=Lt(t,{defaultLocale:r,mode:i,locales:a,domains:s}),p=`/${f}${d}`.replace(/\/+/g,`/`);return p.length>1&&p.endsWith(`/`)&&(p=p.slice(0,-1)),`${p}${u.search}${u.hash}`},Vt=(e,t=c?.defaultLocale,n={})=>{let{domains:r,currentDomain:i}=Ft(n),a=wt(e),o=a?new URL(e):new URL(e,`http://e.com`);return`${a?`${o.protocol}//${o.host}`:``}${Bt(`${o.pathname}${o.search}${o.hash}`,t,n)}`},Ht=(e,t=c?.locales,n=c?.defaultLocale)=>{let r=[e].flat(),i=e=>e.trim().toLowerCase();try{for(let e of r){let n=i(e),r=t.find(e=>i(e)===n);if(r)return r;let[a]=n.split(`-`),o=t.find(e=>i(e).split(`-`)[0]===a);if(o)return o}}catch{}return n},Ut=(0,p.createContext)({locale:jt??c?.defaultLocale,setLocale:()=>null,isCookieEnabled:!0}),Wt=e=>{let t=(0,f.c)(6),{locale:n,defaultLocale:r,variant:i,children:a,setLocale:o,disableEditor:s,isCookieEnabled:l}=e,{locales:u,defaultLocale:d}=c??{},[h,g]=(0,p.useState)(n??jt??r??d),_;t[0]!==h||t[1]!==n?(_=()=>{n&&n!==h&&g(n)},t[0]=h,t[1]=n,t[2]=_):_=t[2];let v;t[3]===n?v=t[4]:(v=[n],t[3]=n,t[4]=v),(0,p.useEffect)(_,v);let y;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(y=[],t[5]=y):y=t[5],(0,p.useEffect)(Gt,y);let b=o??(e=>{if(h.toString()!==e.toString()){if(!u?.map(String).includes(e)){console.error(`Locale ${e} is not available`);return}g(e),Mt(e,l)}}),x=Ht(h);return(0,m.jsx)(Ut.Provider,{value:{locale:x,setLocale:b,variant:i,disableEditor:s},children:a})};function Gt(){Nt()}var Kt=(e,t)=>{let{locale:n,variant:r}=(0,p.useContext)(Ut)??{},i=t??n,a=typeof i==`object`&&i?`${i.locale??``}|${ke(i)}`:i;return(0,p.useMemo)(()=>Ct(e,i),[e,a])},qt=e(s(),1),Jt=Object.defineProperty,Yt=(e,t)=>Jt(e,`name`,{value:t,configurable:!0}),Xt=!!(typeof window<`u`&&window.document&&window.document.createElement);function P(e,t,{checkForDefaultPrevented:n=!0}={}){return Yt(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Yt(P,`composeEventHandlers`);function Zt(e){if(!Xt)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Yt(Zt,`getOwnerWindow`);function Qt(e){if(!Xt)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Yt(Qt,`getOwnerDocument`);function $t(e,t=!1){let{activeElement:n}=Qt(e);if(!n?.nodeName)return null;if(en(n)&&n.contentDocument)return $t(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Qt(n).getElementById(e);if(t)return t}}return n}Yt($t,`getActiveElement`);function en(e){return e.tagName===`IFRAME`}Yt(en,`isFrame`);var tn=Object.defineProperty,nn=(e,t)=>tn(e,`name`,{value:t,configurable:!0});function rn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}nn(rn,`setRef`);function an(...e){return t=>{let n=!1,r=e.map(e=>{let r=rn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():rn(e[t],null)}}}}nn(an,`composeRefs`);function F(...e){return p.useCallback(an(...e),e)}nn(F,`useComposedRefs`);var on=Object.defineProperty,sn=(e,t)=>on(e,`name`,{value:t,configurable:!0});function cn(e,t){let n=p.createContext(t);n.displayName=e+`Context`;let r=sn(e=>{let{children:t,...r}=e,i=p.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=p.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return sn(i,`useContext`),[r,i]}sn(cn,`createContext`);function ln(e,t=[]){let n=[];function r(t,r){let i=p.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=sn(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=p.useMemo(()=>o,Object.values(o));return(0,m.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=p.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return sn(s,`useContext`),[o,s]}sn(r,`createContext`);let i=sn(()=>{let t=n.map(e=>p.createContext(e));return sn(function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,un(i,...t)]}sn(ln,`createContextScope`);function un(...e){let t=e[0];if(e.length===1)return t;let n=sn(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return sn(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}sn(un,`composeContextScopes`);var dn=Object.defineProperty,fn=(e,t)=>dn(e,`name`,{value:t,configurable:!0});function pn(e){let t=p.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Sn(r)&&typeof En==`function`&&(r=En(r._payload)),p.Children.forEach(r,e=>{if(bn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Sn(n)&&typeof En==`function`&&(n=En(n._payload)),a=_n(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=p.cloneElement(a,void 0,s):!o&&p.Children.count(r)===1&&p.isValidElement(r)&&(a=r);let c=a?yn(a):void 0,l=F(n,c);if(!a){if(r||r===0)throw Error(o?Tn(e):wn(e));return r}let u=vn(i,a.props??{});return a.type!==p.Fragment&&(u.ref=n?l:c),p.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}fn(pn,`createSlot`);var mn=pn(`Slot`),hn=Symbol.for(`radix.slottable`);function gn(e){let t=fn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=hn,t}fn(gn,`createSlottable`);var _n=fn((e,t)=>{if(`child`in e.props){let t=e.props.child;return p.isValidElement(t)?p.cloneElement(t,void 0,e.props.children(t.props.children)):null}return p.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function vn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}fn(vn,`mergeProps`);function yn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}fn(yn,`getElementRef`);function bn(e){return p.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===hn}fn(bn,`isSlottable`);var xn=Symbol.for(`react.lazy`);function Sn(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===xn&&`_payload`in e&&Cn(e._payload)}fn(Sn,`isLazyComponent`);function Cn(e){return typeof e==`object`&&!!e&&`then`in e}fn(Cn,`isPromiseLike`);var wn=fn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Tn=fn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),En=p.use,Dn=Object.defineProperty,I=(e,t)=>Dn(e,`name`,{value:t,configurable:!0});function On(e){let t=e+`CollectionProvider`,[n,r]=ln(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=I(e=>{let{scope:t,children:n}=e,r=p.useRef(null),a=p.useRef(new Map).current;return(0,m.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=pn(s),l=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=F(t,a(s,n).collectionRef);return(0,m.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=pn(u),h=p.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=p.useRef(null),s=F(t,o),c=a(u,n);return p.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,m.jsx)(f,{[d]:``,ref:s,children:r})});h.displayName=u;function g(t){let n=a(e+`CollectionConsumer`,t);return p.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return I(g,`useCollection`),[{Provider:o,Slot:l,ItemSlot:h},g,r]}I(On,`createCollection`);var kn=new WeakMap,An=class e extends Map{static{I(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],kn.set(this,!0)}set(e,t){return kn.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=Nn(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=jn(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=jn(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return jn(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function jn(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Mn(e,t);return n===-1?void 0:e[n]}I(jn,`at`);function Mn(e,t){let n=e.length,r=Nn(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}I(Mn,`toSafeIndex`);function Nn(e){return e!==e||e===0?0:Math.trunc(e)}I(Nn,`toSafeInteger`);function Pn(e){let t=e+`CollectionProvider`,[n,r]=ln(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new An,setItemMap:I(()=>void 0,`setItemMap`)}),o=I(({state:e,...t})=>e?(0,m.jsx)(c,{...t,state:e}):(0,m.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=I(e=>{let t=_();return(0,m.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=I(e=>{let{scope:t,children:n,state:r}=e,a=p.useRef(null),[o,s]=p.useState(null),c=F(a,s),[l,u]=r;return p.useEffect(()=>{if(!o)return;let e=Rn(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,m.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=pn(l),d=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=F(t,a(l,n).collectionRef);return(0,m.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,h=pn(f),g=p.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=p.useRef(null),[s,c]=p.useState(null),l=F(t,o,c),{setItemMap:u}=a(f,n),d=p.useRef(i);Fn(d.current,i)||(d.current=i);let g=d.current;return p.useEffect(()=>{let e=g;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Ln):(t.set(s,{...e,element:s}),t.toSorted(Ln)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new An(e)))}},[s,g,u]),(0,m.jsx)(h,{"data-radix-collection-item":``,ref:l,children:r})});g.displayName=f;function _(){return p.useState(new An)}I(_,`useInitCollection`);function v(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return I(v,`useCollection`),[{Provider:o,Slot:d,ItemSlot:g},{createCollectionScope:r,useCollection:v,useInitCollection:_}]}I(Pn,`createCollection`);function Fn(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}I(Fn,`shallowEqual`);function In(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}I(In,`isElementPreceding`);function Ln(e,t){return!e[1].element||!t[1].element?0:In(e[1].element,t[1].element)?-1:1}I(Ln,`sortByDocumentPosition`);function Rn(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}I(Rn,`getChildListObserver`);var zn=Object.defineProperty,Bn=(e,t)=>zn(e,`name`,{value:t,configurable:!0}),L=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=pn(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,m.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vn(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}Bn(Vn,`dispatchDiscreteCustomEvent`);var Hn=Object.defineProperty,Un=(e,t)=>Hn(e,`name`,{value:t,configurable:!0});function Wn(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>((...e)=>t.current?.(...e)),[])}Un(Wn,`useCallbackRef`);var Gn=Object.defineProperty,R=(e,t)=>Gn(e,`name`,{value:t,configurable:!0}),Kn=`dismissableLayer.update`,qn=`dismissableLayer.pointerDownOutside`,Jn=`dismissableLayer.focusOutside`,Yn,Xn=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Zn=p.forwardRef(R(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=p.useContext(Xn),[d,f]=p.useState(null),h=d?.ownerDocument??globalThis?.document,[,g]=p.useState({}),_=F(t,f),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y?v.indexOf(y):-1,x=d?v.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=p.useRef(!1),T=tr(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:p.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return C&&!t},[u.branches,C])}),E=nr(e=>{if(r&&w.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},h),D=d?x===v.length-1:!1,O=Wn(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return p.useEffect(()=>{if(D)return h.addEventListener(`keydown`,O,{capture:!0}),()=>h.removeEventListener(`keydown`,O,{capture:!0})},[h,D,O]),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yn=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),rr(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Yn))}},[d,h,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),rr())},[d,u]),p.useEffect(()=>{let e=R(()=>g({}),`handleUpdate`);return document.addEventListener(Kn,e),()=>document.removeEventListener(Kn,e)},[]),(0,m.jsx)(L.div,{...l,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:P(e.onFocusCapture,E.onFocusCapture),onBlurCapture:P(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`)),Qn=p.forwardRef(R(function(e,t){let n=p.useContext(Xn),r=p.useRef(null),i=F(t,r);return p.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(L.div,{...e,ref:i})},`DismissableLayerBranch`));function $n(){let e=p.useContext(Xn),[t,n]=p.useState(null);return p.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}R($n,`useDismissableLayerSurface`);var er=R(()=>!0,`IS_TRUE`);function tr(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=er}=t,s=Wn(e),c=p.useRef(!1),l=p.useRef(!1),u=p.useRef(new Map),d=p.useRef(()=>{});return p.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}R(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}R(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}R(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}R(p,`handleInteractionBubble`);let m=R(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ir(qn,s,p,{discrete:!0})};if(R(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:R(()=>c.current=!0,`onPointerDownCapture`)}}R(tr,`usePointerDownOutside`);function nr(e,t=globalThis?.document){let n=Wn(e),r=p.useRef(!1);return p.useEffect(()=>{let e=R(e=>{e.target&&!r.current&&ir(Jn,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:R(()=>r.current=!0,`onFocusCapture`),onBlurCapture:R(()=>r.current=!1,`onBlurCapture`)}}R(nr,`useFocusOutside`);function rr(){let e=new CustomEvent(Kn);document.dispatchEvent(e)}R(rr,`dispatchUpdate`);function ir(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Vn(i,a):i.dispatchEvent(a)}R(ir,`handleAndDispatchCustomEvent`);var ar=Zn,or=Qn,z=globalThis?.document?p.useLayoutEffect:()=>{},sr=Object.defineProperty,cr=p.forwardRef(((e,t)=>sr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=p.useState(!1);z(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?qt.createPortal((0,m.jsx)(L.div,{...r,ref:t}),o):null},`Portal`)),lr=Object.defineProperty,ur=(e,t)=>lr(e,`name`,{value:t,configurable:!0});function dr(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}ur(dr,`useStateMachine`);var fr=ur(e=>{let{present:t,children:n}=e,r=pr(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=hr(r.ref,_r(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null},`Presence`);function pr(e){let[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),a=p.useRef(`none`),o=p.useRef(void 0),[s,c]=dr(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{s===`mounted`?(a.current=o.current??gr(r.current),o.current=void 0):a.current=`none`},[s]),z(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=gr(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),z(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=ur(a=>{let o=gr(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=ur(e=>{e.target===t&&(a.current=gr(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:p.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=gr(t)}else r.current=null;n(e)},[])}}ur(pr,`usePresence`);function mr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ur(mr,`setRef`);function hr(...e){let t=p.useRef(e);return t.current=e,p.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=mr(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():mr(n[e],null)}}},[])}ur(hr,`useStableComposedRefs`);function gr(e){return e?.animationName||`none`}ur(gr,`getAnimationName`);function _r(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ur(_r,`getElementRef`);var vr=Object.defineProperty,yr=(e,t)=>vr(e,`name`,{value:t,configurable:!0}),br=p.useEffectEvent,xr=p.useInsertionEffect;function Sr(e){if(typeof br==`function`)return br(e);let t=p.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof xr==`function`?xr(()=>{t.current=e}):z(()=>{t.current=e}),p.useMemo(()=>((...e)=>t.current?.(...e)),[])}yr(Sr,`useEffectEvent`);var Cr=Object.defineProperty,wr=(e,t)=>Cr(e,`name`,{value:t,configurable:!0}),Tr=p.useInsertionEffect||z;function Er({prop:e,defaultProp:t,onChange:n=wr(()=>{},`onChange`),caller:r}){let[i,a,o]=Dr({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,p.useCallback(t=>{if(s){let n=Or(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}wr(Er,`useControllableState`);function Dr({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),i=p.useRef(n),a=p.useRef(t);return Tr(()=>{a.current=t},[t]),p.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}wr(Dr,`useUncontrolledState`);function Or(e){return typeof e==`function`}wr(Or,`isFunction`);var kr=Symbol(`RADIX:SYNC_STATE`);function Ar(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Sr(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=p.useReducer((t,n)=>{if(n.type===kr)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),m=d.state,h=p.useRef(m);p.useEffect(()=>{h.current!==m&&(h.current=m,c||l(m))},[m,h,c]);let g=p.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return p.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:kr,state:i})},[i,d.state,c]),[g,f]}wr(Ar,`useControllableStateReducer`);var jr=Object.defineProperty,Mr=(e,t)=>jr(e,`name`,{value:t,configurable:!0}),Nr=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Pr=p.forwardRef(Mr(function(e,t){return(0,m.jsx)(L.span,{...e,ref:t,style:{...Nr,...e.style}})},`VisuallyHidden`));function Fr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Fr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Ir(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Fr(e))&&(r&&(r+=` `),r+=t);return r}var Lr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Rr=Ir,zr=(e,t)=>n=>{if(t?.variants==null)return Rr(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Lr(t)||Lr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Rr(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Br=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Vr=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Hr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Ur=e=>{let t=Hr(e);return t.charAt(0).toUpperCase()+t.slice(1)},Wr={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`},Gr=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Kr=(0,p.createContext)({}),qr=()=>(0,p.useContext)(Kr),Jr=(0,p.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:m=``}=qr()??{},h=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,p.createElement)(`svg`,{ref:c,...Wr,width:t??l??Wr.width,height:t??l??Wr.height,stroke:e??f,strokeWidth:h,className:Br(`lucide`,m,i),...!a&&!Gr(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Yr=(e,t)=>{let n=(0,p.forwardRef)(({className:n,...r},i)=>(0,p.createElement)(Jr,{ref:i,iconNode:t,className:Br(`lucide-${Vr(Ur(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Ur(e),n},Xr=Yr(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Zr=Yr(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Qr=Yr(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),$r=Yr(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),ei=Yr(`copy-check`,[[`path`,{d:`m12 15 2 2 4-4`,key:`2c609p`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),ti=Yr(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),ni=Yr(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),ri=Yr(`move-right`,[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]),ii=Yr(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),ai=(0,p.createContext)({});function oi(e){let t=(0,p.useRef)(null);return t.current===null&&(t.current=e()),t.current}var si=typeof window<`u`?p.useLayoutEffect:p.useEffect,ci=(0,p.createContext)(null);function li(e,t){e.indexOf(t)===-1&&e.push(t)}function ui(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var di=(e,t,n)=>n>t?t:n<e?e:n,fi={},pi=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mi=e=>typeof e==`object`&&!!e,hi=e=>/^0[^.\s]+$/u.test(e);function gi(e){let t;return()=>(t===void 0&&(t=e()),t)}var _i=e=>e,vi=(...e)=>e.reduce((e,t)=>n=>t(e(n))),yi=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},bi=class{constructor(){this.subscriptions=[]}add(e){return li(this.subscriptions,e),()=>ui(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},B=e=>e*1e3,xi=e=>e/1e3,Si=(e,t)=>t?1e3/t*e:0,Ci=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,wi=1e-7,Ti=12;function Ei(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ci(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>wi&&++s<Ti);return o}function Di(e,t,n,r){if(e===t&&n===r)return _i;let i=t=>Ei(t,0,1,e,n);return e=>e===0||e===1?e:Ci(i(e),t,r)}var Oi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ki=e=>t=>1-e(1-t),Ai=Di(.33,1.53,.69,.99),ji=ki(Ai),Mi=Oi(ji),Ni=e=>e>=1?1:(e*=2)<1?.5*ji(e):.5*(2-2**(-10*(e-1))),Pi=e=>1-Math.sin(Math.acos(e)),Fi=ki(Pi),Ii=Oi(Pi),Li=Di(.42,0,1,1),Ri=Di(0,0,.58,1),zi=Di(.42,0,.58,1),Bi=e=>Array.isArray(e)&&typeof e[0]!=`number`,Vi=e=>Array.isArray(e)&&typeof e[0]==`number`,Hi={linear:_i,easeIn:Li,easeInOut:zi,easeOut:Ri,circIn:Pi,circInOut:Ii,circOut:Fi,backIn:ji,backInOut:Mi,backOut:Ai,anticipate:Ni},Ui=e=>typeof e==`string`,Wi=e=>{if(Vi(e)){e.length;let[t,n,r,i]=e;return Di(t,n,r,i)}return Ui(e)?(Hi[e],`${e}`,Hi[e]):e},Gi=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ki(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var qi=40;function Ji(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Gi.reduce((e,t)=>(e[t]=Ki(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=fi.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,qi),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Gi.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Gi.length;t++)o[Gi[t]].cancel(e)},state:i,steps:o}}var{schedule:V,cancel:Yi,state:H,steps:Xi}=Ji(typeof requestAnimationFrame<`u`?requestAnimationFrame:_i,!0),Zi;function Qi(){Zi=void 0}var U={now:()=>(Zi===void 0&&U.set(H.isProcessing||fi.useManualTiming?H.timestamp:performance.now()),Zi),set:e=>{Zi=e,queueMicrotask(Qi)}},$i=e=>t=>typeof t==`string`&&t.startsWith(e),ea=$i(`--`),ta=$i(`var(--`),na=e=>ta(e)?ra.test(e.split(`/*`)[0].trim()):!1,ra=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ia(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var aa={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},oa={...aa,transform:e=>di(0,1,e)},sa={...aa,default:1},ca=e=>Math.round(e*1e5)/1e5,la=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ua(e){return e==null}var da=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fa=(e,t)=>n=>!!(typeof n==`string`&&da.test(n)&&n.startsWith(e)||t&&!ua(n)&&Object.prototype.hasOwnProperty.call(n,t)),pa=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(la);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ma=e=>di(0,255,e),ha={...aa,transform:e=>Math.round(ma(e))},ga={test:fa(`rgb`,`red`),parse:pa(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+ha.transform(e)+`, `+ha.transform(t)+`, `+ha.transform(n)+`, `+ca(oa.transform(r))+`)`};function _a(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var va={test:fa(`#`),parse:_a,transform:ga.transform},ya=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ba=ya(`deg`),xa=ya(`%`),W=ya(`px`),Sa=ya(`vh`),Ca=ya(`vw`),wa={...xa,parse:e=>xa.parse(e)/100,transform:e=>xa.transform(e*100)},Ta={test:fa(`hsl`,`hue`),parse:pa(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+xa.transform(ca(t))+`, `+xa.transform(ca(n))+`, `+ca(oa.transform(r))+`)`},G={test:e=>ga.test(e)||va.test(e)||Ta.test(e),parse:e=>ga.test(e)?ga.parse(e):Ta.test(e)?Ta.parse(e):va.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?ga.transform(e):Ta.transform(e),getAnimatableNone:e=>{let t=G.parse(e);return t.alpha=0,G.transform(t)}},Ea=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Da(e){return isNaN(e)&&typeof e==`string`&&(e.match(la)?.length||0)+(e.match(Ea)?.length||0)>0}var Oa=`number`,ka=`color`,Aa=`var`,ja=`var(`,Ma="${}",Na=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pa(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Na,e=>(G.test(e)?(r.color.push(a),i.push(ka),n.push(G.parse(e))):e.startsWith(ja)?(r.var.push(a),i.push(Aa),n.push(e)):(r.number.push(a),i.push(Oa),n.push(parseFloat(e))),++a,Ma)).split(Ma),indexes:r,types:i}}function Fa(e){return Pa(e).values}function Ia({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Oa?ca(r[a]):e===ka?G.transform(r[a]):r[a]}return i}}function La(e){return Ia(Pa(e))}var Ra=e=>typeof e==`number`?0:G.test(e)?G.getAnimatableNone(e):e,za=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ra(e);function Ba(e){let t=Pa(e);return Ia(t)(t.values.map((e,n)=>za(e,t.split[n])))}var Va={test:Da,parse:Fa,createTransformer:La,getAnimatableNone:Ba};function Ha(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ua({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ha(s,r,e+1/3),a=Ha(s,r,e),o=Ha(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Wa(e,t){return n=>n>0?t:e}var K=(e,t,n)=>e+(t-e)*n,Ga=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ka=[va,ga,Ta],qa=e=>Ka.find(t=>t.test(e));function Ja(e){let t=qa(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Ta&&(n=Ua(n)),n}var Ya=(e,t)=>{let n=Ja(e),r=Ja(t);if(!n||!r)return Wa(e,t);let i={...n};return e=>(i.red=Ga(n.red,r.red,e),i.green=Ga(n.green,r.green,e),i.blue=Ga(n.blue,r.blue,e),i.alpha=K(n.alpha,r.alpha,e),ga.transform(i))},Xa=new Set([`none`,`hidden`]);function Za(e,t){return Xa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qa(e,t){return n=>K(e,t,n)}function $a(e){return typeof e==`number`?Qa:typeof e==`string`?na(e)?Wa:G.test(e)?Ya:ro:Array.isArray(e)?eo:typeof e==`object`?G.test(e)?Ya:to:Wa}function eo(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>$a(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function to(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=$a(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function no(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var ro=(e,t)=>{let n=Va.createTransformer(t),r=Pa(e),i=Pa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Xa.has(e)&&!i.values.length||Xa.has(t)&&!r.values.length?Za(e,t):vi(eo(no(r,i),i.values),n):(`${e}${t}`,Wa(e,t))};function io(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?K(e,t,n):$a(e)(e,t)}var ao=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>V.update(t,e),stop:()=>Yi(t),now:()=>H.isProcessing?H.timestamp:U.now()}},oo=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},so=2e4;function co(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function lo(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(co(r),so);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:xi(i)}}var q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function uo(e,t){return e*Math.sqrt(1-t*t)}var fo=12;function po(e,t,n){let r=n;for(let n=1;n<fo;n++)r-=e(r)/t(r);return r}var mo=.001;function ho({duration:e=q.duration,bounce:t=q.bounce,velocity:n=q.velocity,mass:r=q.mass}){let i,a;q.maxDuration;let o=1-t;o=di(q.minDamping,q.maxDamping,o),e=di(q.minDuration,q.maxDuration,xi(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=uo(t,o),c=Math.exp(-i);return mo-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=uo(t**2,o);return(-i(t)+mo>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=po(i,a,s);if(e=B(e),isNaN(c))return{stiffness:q.stiffness,damping:q.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var go=[`duration`,`bounce`],_o=[`stiffness`,`damping`,`mass`];function vo(e,t){return t.some(t=>e[t]!==void 0)}function yo(e){let t={velocity:q.velocity,stiffness:q.stiffness,damping:q.damping,mass:q.mass,isResolvedFromDuration:!1,...e};if(!vo(e,_o)&&vo(e,go)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*di(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:q.mass,stiffness:i,damping:a}}else{let n=ho({...e,velocity:0});t={...t,...n,mass:q.mass},t.isResolvedFromDuration=!0}}return t}function bo(e=q.visualDuration,t=q.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=yo({...n,velocity:-xi(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=xi(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?q.restSpeed.granular:q.restSpeed.default,i||=v?q.restDelta.granular:q.restDelta.default;let y,b,x,S,C,w;if(h<1)x=uo(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>B(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=B(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=B(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(co(T),so),t=oo(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}bo.applyToOptions=e=>{let t=lo(e,100,bo);return e.ease=t.ease,e.duration=B(t.duration),e.type=`keyframes`,e};var xo=5;function So(e,t,n){let r=Math.max(t-xo,0);return Si(n-e(r),t-r)}function Co({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=bo({keyframes:[f.value,m(f.value)],velocity:So(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function wo(e,t,n){let r=[],i=n||fi.mix||io,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=vi(Array.isArray(t)?t[n]||_i:t,a)),r.push(a)}return r}function To(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=wo(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=yi(e[r],e[r+1],n);return s[r](i)};return n?t=>l(di(e[0],e[a-1],t)):l}function Eo(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=yi(0,t,r);e.push(K(n,1,i))}}function Do(e){let t=[0];return Eo(t,e.length-1),t}function Oo(e,t){return e.map(e=>e*t)}function ko(e,t){return e.map(()=>t||zi).splice(0,e.length-1)}function Ao({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Bi(r)?r.map(Wi):Wi(r),a={done:!1,value:t[0]},o=To(Oo(n&&n.length===t.length?n:Do(t),e),t,{ease:Array.isArray(i)?i:ko(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var jo=e=>e!==null;function Mo(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(jo),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var No={decay:Co,inertia:Co,tween:Ao,keyframes:Ao,spring:bo};function Po(e){typeof e.type==`string`&&(e.type=No[e.type])}var Fo=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Io=e=>e/100,Lo=class extends Fo{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==U.now()&&this.tick(U.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Po(e);let{type:t=Ao,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Ao;s!==Ao&&typeof o[0]!=`number`&&(this.mixKeyframes=vi(Io,io(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=co(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=di(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Co&&(b.value=Mo(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return xi(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+xi(e)}get time(){return xi(this.currentTime)}set time(e){e=B(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return So(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(U.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=xi(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=ao,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(U.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Ro(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var zo=e=>e*180/Math.PI,Bo=e=>Ho(zo(Math.atan2(e[1],e[0]))),Vo={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bo,rotateZ:Bo,skewX:e=>zo(Math.atan(e[1])),skewY:e=>zo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ho=e=>(e%=360,e<0&&(e+=360),e),Uo=Bo,Wo=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Go=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ko={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wo,scaleY:Go,scale:e=>(Wo(e)+Go(e))/2,rotateX:e=>Ho(zo(Math.atan2(e[6],e[5]))),rotateY:e=>Ho(zo(Math.atan2(-e[2],e[0]))),rotateZ:Uo,rotate:Uo,skewX:e=>zo(Math.atan(e[4])),skewY:e=>zo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function qo(e){return+!!e.includes(`scale`)}function Jo(e,t){if(!e||e===`none`)return qo(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ko,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vo,i=t}if(!i)return qo(t);let a=r[t],o=i[1].split(`,`).map(Xo);return typeof a==`function`?a(o):o[a]}var Yo=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Jo(n,t)};function Xo(e){return parseFloat(e.trim())}var Zo=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Qo=new Set([...Zo,`pathRotation`]),$o=e=>e===aa||e===W,es=new Set([`x`,`y`,`z`]),ts=Zo.filter(e=>!es.has(e));function ns(e){let t=[];return ts.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var rs={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jo(t,`x`),y:(e,{transform:t})=>Jo(t,`y`)};rs.translateX=rs.x,rs.translateY=rs.y;var is=new Set,as=!1,os=!1,ss=!1;function cs(){if(os){let e=Array.from(is).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=ns(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}os=!1,as=!1,is.forEach(e=>e.complete(ss)),is.clear()}function ls(){is.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(os=!0)})}function us(){ss=!0,ls(),cs(),ss=!1}var ds=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(is.add(this),as||(as=!0,V.read(ls),V.resolveKeyframes(cs))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Ro(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),is.delete(this)}cancel(){this.state===`scheduled`&&(is.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},fs=e=>e.startsWith(`--`);function ps(e,t,n){fs(t)?e.style.setProperty(t,n):e.style[t]=n}var ms={};function hs(e,t){let n=gi(e);return()=>ms[t]??n()}var gs=hs(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),_s=hs(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),vs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ys={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:vs([0,.65,.55,1]),circOut:vs([.55,0,1,.45]),backIn:vs([.31,.01,.66,-.59]),backOut:vs([.33,1.53,.69,.99])};function bs(e,t){if(e)return typeof e==`function`?_s()?oo(e,t):`ease-out`:Vi(e)?vs(e):Array.isArray(e)?e.map(e=>bs(e,t)||ys.easeOut):ys[e]}function xs(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=bs(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Ss(e){return typeof e==`function`&&`applyToOptions`in e}function Cs({type:e,...t}){return Ss(e)&&_s()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ws=class extends Fo{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Cs(e);this.animation=xs(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Mo(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ps(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return xi(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+xi(e)}get time(){return xi(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=B(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&gs()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),_i):r(this)}},Ts={anticipate:Ni,backInOut:Mi,circInOut:Ii};function Es(e){return e in Ts}function Ds(e){typeof e.ease==`string`&&Es(e.ease)&&(e.ease=Ts[e.ease])}var Os=10,ks=class extends ws{constructor(e){Ds(e),Po(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Lo({...a,autoplay:!1}),s=Math.max(Os,U.now()-this.startTime),c=di(0,Os,s-Os),l=o.sample(s).value,{name:u}=this.options;i&&u&&ps(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},As=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Va.test(e)||e===`0`)&&!e.startsWith(`url(`));function js(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ms(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=As(i,t),s=As(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:js(e)||(n===`spring`||Ss(n))&&r}function Ns(e){e.duration=0,e.type=`keyframes`}var Ps=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Fs=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Is(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Fs.test(e[t]))return!0;return!1}var Ls=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Rs=gi(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function zs(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Rs()&&n&&(Ps.has(n)||Ls.has(n)&&Is(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Bs=40,Vs=class extends Fo{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=U.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||ds;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=U.now();let u=!0;Ms(e,i,a,o)||(u=!1,(fi.instantAnimations||!s)&&l?.(Mo(e,n,t)),e[0]=e[e.length-1],Ns(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Bs?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&zs(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new ks({...d,element:p})}catch{m=new Lo(d)}else m=new Lo(d);m.finished.then(()=>{this.notifyFinished()}).catch(_i),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),us()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Hs(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Us=30,Ws=e=>!isNaN(parseFloat(e)),Gs={current:void 0},Ks=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=U.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=U.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ws(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new bi);let n=this.events[e].add(t);return e===`change`?()=>{n(),V.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Gs.current&&Gs.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=U.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Us)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Us);return Si(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function qs(e,t){return new Ks(e,t)}function Js(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ys(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Js(n,e)}var Xs={type:`spring`,stiffness:500,damping:25,restSpeed:10},Zs=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Qs={type:`keyframes`,duration:.8},$s={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ec=(e,{keyframes:t})=>t.length>2?Qs:Qo.has(e)?e.startsWith(`scale`)?Zs(t[1]):Xs:$s,tc=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function nc(e){for(let t in e)if(!tc.has(t))return!0;return!1}var rc=(e,t,n,r={},i,a)=>o=>{let s=Ys(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=B(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};nc(s)||Object.assign(u,ec(e,u)),u.duration&&=B(u.duration),u.repeatDelay&&=B(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ns(u),u.delay===0&&(d=!0)),(fi.instantAnimations||fi.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Ns(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Mo(u.keyframes,s);if(e!==void 0){V.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Lo(u):new Vs(u)},ic=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ac(e){let t=ic.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function oc(e,t,n=1){`${e}`;let[r,i]=ac(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return pi(e)?parseFloat(e):e}return na(i)?oc(i,t,n+1):i}function sc(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function cc(e,t,n,r){if(typeof t==`function`){let[i,a]=sc(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=sc(r);t=t(n===void 0?e.custom:n,i,a)}return t}function lc(e,t,n){let r=e.getProps();return cc(r,t,n===void 0?r.custom:n,e)}var uc=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Zo]),dc=e=>Array.isArray(e);function fc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qs(n))}function pc(e){return dc(e)?e[e.length-1]||0:e}function mc(e,t){let{transitionEnd:n={},transition:r={},...i}=lc(e,t)||{};i={...i,...n};for(let t in i)fc(e,t,pc(i[t]))}var J=e=>!!(e&&e.getVelocity);function hc(e){return!!(J(e)&&e.add)}function gc(e,t){let n=e.getValue(`willChange`);if(hc(n))return n.add(t);if(!n&&fi.WillChange){let n=new fi.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function _c(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var vc=`data-`+_c(`framerAppearId`);function yc(e){return e.props[vc]}var bc=typeof window<`u`;function xc({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Sc(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Js(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&xc(f,t))continue;let o={delay:n,...Ys(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){V.update(()=>r.set(i));continue}let p=!1;if(bc&&window.MotionHandoffAnimation){let n=yc(e);if(n){let e=window.MotionHandoffAnimation(n,t,V);e!==null&&(o.startTime=e,p=!0)}}gc(e,t);let m=l??e.shouldReduceMotion;r.start(rc(t,r,i,m&&uc.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>V.update(()=>{o&&mc(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Cc(e,t,n={}){let r=lc(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Sc(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return wc(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function wc(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Cc(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Hs(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Tc(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Cc(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Cc(e,t,n);else{let i=typeof t==`function`?lc(e,t,n.custom):t;r=Promise.all(Sc(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Ec={test:e=>e===`auto`,parse:e=>e},Dc=e=>t=>t.test(e),Oc=[aa,W,xa,ba,Ca,Sa,Ec],kc=e=>Oc.find(Dc(e));function Ac(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||hi(e)}var jc=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Mc(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(la)||[];if(!r)return e;let i=n.replace(r,``),a=+!!jc.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Nc=/\b([a-z-]*)\(.*?\)/gu,Pc={...Va,getAnimatableNone:e=>{let t=e.match(Nc);return t?t.map(Mc).join(` `):e}},Fc={...Va,getAnimatableNone:e=>{let t=Va.parse(e);return Va.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Ic={...aa,transform:Math.round},Lc={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:ba,pathRotation:ba,rotateX:ba,rotateY:ba,rotateZ:ba,scale:sa,scaleX:sa,scaleY:sa,scaleZ:sa,skew:ba,skewX:ba,skewY:ba,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:oa,originX:wa,originY:wa,originZ:W,zIndex:Ic,fillOpacity:oa,strokeOpacity:oa,numOctaves:Ic},Rc={...Lc,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Pc,WebkitFilter:Pc,mask:Fc,WebkitMask:Fc},zc=e=>Rc[e],Bc=new Set([Pc,Fc]);function Vc(e,t){let n=zc(e);return Bc.has(n)||(n=Va),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Hc=new Set([`auto`,`none`,`0`]);function Uc(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Hc.has(t)&&Pa(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Vc(n,i)}var Wc=class extends ds{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),na(r))){let i=oc(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!uc.has(n)||e.length!==2)return;let[r,i]=e,a=kc(r),o=kc(i);if(ia(r)!==ia(i)&&rs[n]){this.needsMeasurement=!0;return}if(a!==o){if($o(a)&&$o(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else rs[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ac(e[t]))&&n.push(t);n.length&&Uc(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rs[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=rs[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Gc=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Kc(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var qc=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Jc(e){return mi(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Yc,cancel:Xc}=Ji(queueMicrotask,!1),Zc={x:!1,y:!1};function Qc(){return Zc.x||Zc.y}function $c(e){return e===`x`||e===`y`?Zc[e]?null:(Zc[e]=!0,()=>{Zc[e]=!1}):Zc.x||Zc.y?null:(Zc.x=Zc.y=!0,()=>{Zc.x=Zc.y=!1})}function el(e,t){let n=Kc(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function tl(e){return!(e.pointerType===`touch`||Qc())}function nl(e,t,n={}){let[r,i,a]=el(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!tl(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var rl=(e,t)=>t?e===t||rl(e,t.parentElement):!1,il=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,al=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ol(e){return al.has(e.tagName)||e.isContentEditable===!0}var sl=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function cl(e){return sl.has(e.tagName)||e.isContentEditable===!0}var ll=new WeakSet;function ul(e){return t=>{t.key===`Enter`&&e(t)}}function dl(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var fl=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ul(()=>{if(ll.has(n))return;dl(n,`down`);let e=ul(()=>{dl(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>dl(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function pl(e){return il(e)&&!Qc()}var ml=new WeakSet;function hl(e,t,n={}){let[r,i,a]=el(e,n),o=e=>{let r=e.currentTarget;if(!pl(e)||ml.has(e))return;ll.add(r),n.stopPropagation&&ml.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),ll.has(r)&&ll.delete(r),pl(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||rl(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Jc(e)&&(e.addEventListener(`focus`,e=>fl(e,i)),!ol(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function gl(e){return mi(e)&&`ownerSVGElement`in e}var _l=new WeakMap,vl,yl=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:gl(r)&&`getBBox`in r?r.getBBox()[t]:r[n],bl=yl(`inline`,`width`,`offsetWidth`),xl=yl(`block`,`height`,`offsetHeight`);function Sl({target:e,borderBoxSize:t}){_l.get(e)?.forEach(n=>{n(e,{get width(){return bl(e,t)},get height(){return xl(e,t)}})})}function Cl(e){e.forEach(Sl)}function wl(){typeof ResizeObserver>`u`||(vl=new ResizeObserver(Cl))}function Tl(e,t){vl||wl();let n=Kc(e);return n.forEach(e=>{let n=_l.get(e);n||(n=new Set,_l.set(e,n)),n.add(t),vl?.observe(e)}),()=>{n.forEach(e=>{let n=_l.get(e);n?.delete(t),n?.size||vl?.unobserve(e)})}}var El=new Set,Dl;function Ol(){Dl=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};El.forEach(t=>t(e))},window.addEventListener(`resize`,Dl)}function kl(e){return El.add(e),Dl||Ol(),()=>{El.delete(e),!El.size&&typeof Dl==`function`&&(window.removeEventListener(`resize`,Dl),Dl=void 0)}}function Al(e,t){return typeof e==`function`?kl(e):Tl(e,t)}var jl={value:null,addProjectionMetrics:null};function Ml(e){return gl(e)&&e.tagName===`svg`}var Nl=[...Oc,G,Va],Pl=e=>Nl.find(Dc(e)),Fl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Il=()=>({x:Fl(),y:Fl()}),Ll=()=>({min:0,max:0}),Y=()=>({x:Ll(),y:Ll()}),Rl=new WeakMap;function zl(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Bl(e){return typeof e==`string`||Array.isArray(e)}var Vl=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Hl=[`initial`,...Vl];function Ul(e){return zl(e.animate)||Hl.some(t=>Bl(e[t]))}function Wl(e){return!!(Ul(e)||e.variants)}function Gl(e,t,n){for(let r in t){let i=t[r],a=n[r];if(J(i))e.addValue(r,i);else if(J(a))e.addValue(r,qs(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,qs(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Kl={current:null},ql={current:!1},Jl=typeof window<`u`;function Yl(){if(ql.current=!0,Jl){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Kl.current=e.matches;e.addEventListener(`change`,t),t()}else Kl.current=!1}}var Xl=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Zl={};function Ql(e){Zl=e}function $l(){return Zl}var eu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ds,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=U.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,V.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Ul(t),this.isVariantNode=Wl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&J(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Rl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ql.current||Yl(),this.shouldReduceMotion=Kl.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Yi(this.notifyUpdate),Yi(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Ps.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ws({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:B(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Qo.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&V.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Zl){let t=Zl[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Xl.length;t++){let n=Xl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Gl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=qs(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(pi(n)||hi(n))?n=parseFloat(n):!Pl(n)&&Va.test(t)&&(n=Vc(e,t)),this.setBaseTarget(e,J(n)?n.get():n)),J(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=cc(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!J(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new bi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Yc.render(this.render)}},tu=class extends eu{constructor(){super(...arguments),this.KeyframeResolver=Wc}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;J(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},nu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ru({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function au(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ou(e){return e===void 0||e===1}function su({scale:e,scaleX:t,scaleY:n}){return!ou(e)||!ou(t)||!ou(n)}function cu(e){return su(e)||lu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function lu(e){return uu(e.x)||uu(e.y)}function uu(e){return e&&e!==`0%`}function du(e,t,n){return n+t*(e-n)}function fu(e,t,n,r,i){return i!==void 0&&(e=du(e,i,r)),du(e,n,r)+t}function pu(e,t=0,n=1,r,i){e.min=fu(e.min,t,n,r,i),e.max=fu(e.max,t,n,r,i)}function mu(e,{x:t,y:n}){pu(e.x,t.translate,t.scale,t.originPoint),pu(e.y,n.translate,n.scale,n.originPoint)}var hu=.999999999999,gu=1.0000000000001;function _u(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(vu(e.x,-a.scroll.offset.x),vu(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,mu(e,o)),r&&cu(a.latestValues)&&xu(e,a.latestValues,a.layout?.layoutBox))}t.x<gu&&t.x>hu&&(t.x=1),t.y<gu&&t.y>hu&&(t.y=1)}function vu(e,t){e.min+=t,e.max+=t}function yu(e,t,n,r,i=.5){pu(e,t,n,K(e.min,e.max,i),r)}function bu(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function xu(e,t,n){let r=n??e;yu(e.x,bu(t.x,r.x),t.scaleX,t.scale,t.originX),yu(e.y,bu(t.y,r.y),t.scaleY,t.scale,t.originY)}function Su(e,t){return ru(au(e.getBoundingClientRect(),t))}function Cu(e,t,n){let r=Su(e,n),{scroll:i}=t;return i&&(vu(r.x,i.offset.x),vu(r.y,i.offset.y)),r}var wu={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Tu=Zo.length;function Eu(e,t,n){let r=``,i=!0;for(let a=0;a<Tu;a++){let o=Zo[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=qc(s,Lc[o]);if(!c){i=!1;let t=wu[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${qc(a,Lc.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Du(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Qo.has(e)){o=!0;continue}if(ea(e)){i[e]=n;continue}{let t=qc(n,Lc[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Eu(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Ou(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ku(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Au={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(W.test(e))e=parseFloat(e);else return e}return`${ku(e,t.target.x)}% ${ku(e,t.target.y)}%`}},ju={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Va.parse(e);if(i.length>5)return r;let a=Va.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=K(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Mu={borderRadius:{...Au,applyTo:[...Gc]},borderTopLeftRadius:Au,borderTopRightRadius:Au,borderBottomLeftRadius:Au,borderBottomRightRadius:Au,boxShadow:ju};function Nu(e,{layout:t,layoutId:n}){return Qo.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Mu[e]||e===`opacity`)}function Pu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(J(r[t])||i&&J(i[t])||Nu(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Fu(e){return window.getComputedStyle(e)}var Iu=class extends tu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ou}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Qo.has(t))return this.projection?.isProjecting?qo(t):Yo(e,t);{let n=Fu(e),r=(ea(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Su(e,t)}build(e,t,n){Du(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Pu(e,t,n)}},Lu={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ru={offset:`strokeDashoffset`,array:`strokeDasharray`};function zu(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Lu:Ru;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Bu=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Vu(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Du(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Bu)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&zu(d,i,a,o,!1)}var Hu=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Uu=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Wu(e,t,n,r){Ou(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Hu.has(n)?n:_c(n),t.attrs[n])}function Gu(e,t,n){let r=Pu(e,t,n);for(let n in e)if(J(e[n])||J(t[n])){let t=Zo.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Ku=class extends tu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Qo.has(t)){let e=zc(t);return e&&e.default||0}if(Bu.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Hu.has(t)?t:_c(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Gu(e,t,n)}build(e,t,n){Vu(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Wu(e,t,n,r)}mount(e){this.isSVGTag=Uu(e.tagName),super.mount(e)}},qu=Hl.length;function Ju(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Ju(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<qu;n++){let r=Hl[n],i=e.props[r];(Bl(i)||i===!1)&&(t[r]=i)}return t}function Yu(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Xu=[...Vl].reverse(),Zu=Vl.length;function Qu(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Tc(e,t,n)))}function $u(e){let t=Qu(e),n=nd(),r=!0,i=!1,a=t=>(n,r)=>{let i=lc(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Ju(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Zu;t++){let p=Xu[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Bl(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||zl(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=ed(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=dc(t)&&dc(n)?!Yu(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=lc(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Hs(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=lc(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=nd(),i=!0}}}function ed(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Yu(t,e):!1}function td(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nd(){return{animate:td(!0),whileInView:td(),whileHover:td(),whileTap:td(),whileDrag:td(),whileFocus:td(),exit:td()}}function rd(e,t){e.min=t.min,e.max=t.max}function id(e,t){rd(e.x,t.x),rd(e.y,t.y)}function ad(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var od=.9999,sd=1.0001,cd=-.01,ld=.01;function X(e){return e.max-e.min}function ud(e,t,n){return Math.abs(e-t)<=n}function dd(e,t,n,r=.5){e.origin=r,e.originPoint=K(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=K(n.min,n.max,e.origin)-e.originPoint,(e.scale>=od&&e.scale<=sd||isNaN(e.scale))&&(e.scale=1),(e.translate>=cd&&e.translate<=ld||isNaN(e.translate))&&(e.translate=0)}function fd(e,t,n,r){dd(e.x,t.x,n.x,r?r.originX:void 0),dd(e.y,t.y,n.y,r?r.originY:void 0)}function pd(e,t,n,r=0){e.min=(r?K(n.min,n.max,r):n.min)+t.min,e.max=e.min+X(t)}function md(e,t,n,r){pd(e.x,t.x,n.x,r?.x),pd(e.y,t.y,n.y,r?.y)}function hd(e,t,n,r=0){let i=r?K(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+X(t)}function gd(e,t,n,r){hd(e.x,t.x,n.x,r?.x),hd(e.y,t.y,n.y,r?.y)}function _d(e,t,n,r,i){return e-=t,e=du(e,1/n,r),i!==void 0&&(e=du(e,1/i,r)),e}function vd(e,t=0,n=1,r=.5,i,a=e,o=e){if(xa.test(t)&&(t=parseFloat(t),t=K(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=K(a.min,a.max,r);e===a&&(s-=t),e.min=_d(e.min,t,n,s,i),e.max=_d(e.max,t,n,s,i)}function yd(e,t,[n,r,i],a,o){vd(e,t[n],t[r],t[i],t.scale,a,o)}var bd=[`x`,`scaleX`,`originX`],xd=[`y`,`scaleY`,`originY`];function Sd(e,t,n,r){yd(e.x,t,bd,n?n.x:void 0,r?r.x:void 0),yd(e.y,t,xd,n?n.y:void 0,r?r.y:void 0)}function Cd(e){return e.translate===0&&e.scale===1}function wd(e){return Cd(e.x)&&Cd(e.y)}function Td(e,t){return e.min===t.min&&e.max===t.max}function Ed(e,t){return Td(e.x,t.x)&&Td(e.y,t.y)}function Dd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Od(e,t){return Dd(e.x,t.x)&&Dd(e.y,t.y)}function kd(e){return X(e.x)/X(e.y)}function Ad(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function jd(e){return[e(`x`),e(`y`)]}function Md(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Nd=Gc.length,Pd=e=>typeof e==`string`?parseFloat(e):e,Fd=e=>typeof e==`number`||W.test(e);function Id(e,t,n,r,i,a){i?(e.opacity=K(0,n.opacity??1,Rd(r)),e.opacityExit=K(t.opacity??1,0,zd(r))):a&&(e.opacity=K(t.opacity??1,n.opacity??1,r));for(let i=0;i<Nd;i++){let a=Gc[i],o=Ld(t,a),s=Ld(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Fd(o)===Fd(s)?(e[a]=Math.max(K(Pd(o),Pd(s),r),0),(xa.test(s)||xa.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=K(t.rotate||0,n.rotate||0,r))}function Ld(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Rd=Bd(0,.5,Fi),zd=Bd(.5,.95,_i);function Bd(e,t,n){return r=>r<e?0:r>t?1:n(yi(e,t,r))}function Vd(e,t,n){let r=J(e)?e:qs(e);return r.start(rc(``,r,t,n)),r.animation}function Hd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ud=(e,t)=>e.depth-t.depth,Wd=class{constructor(){this.children=[],this.isDirty=!1}add(e){li(this.children,e),this.isDirty=!0}remove(e){ui(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ud),this.isDirty=!1,this.children.forEach(e)}};function Gd(e,t){let n=U.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Yi(r),e(a-t))};return V.setup(r,!0),()=>Yi(r)}function Kd(e){return J(e)?e.get():e}var qd=class{constructor(){this.members=[]}add(e){li(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ui(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ui(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Jd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yd={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Xd=[``,`X`,`Y`,`Z`],Zd=1e3,Qd=0;function $d(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ef(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=yc(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,V,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ef(r)}function tf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Qd++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,jl.value&&(Yd.nodes=Yd.calculatedTargetDeltas=Yd.calculatedProjections=0),this.nodes.forEach(af),this.nodes.forEach(mf),this.nodes.forEach(hf),this.nodes.forEach(of),jl.addProjectionMetrics&&jl.addProjectionMetrics(Yd)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Wd)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new bi),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=gl(t)&&!Ml(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;V.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Gd(i,250),Jd.hasAnimatedSinceResize&&(Jd.hasAnimatedSinceResize=!1,this.nodes.forEach(pf)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Sf,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Od(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ys(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||pf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Yi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gf),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ef(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(lf),this.nodes.forEach(cf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(uf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(df),this.nodes.forEach(ff),this.nodes.forEach(nf),this.nodes.forEach(rf)):this.nodes.forEach(uf),this.clearAllSnapshots();let e=U.now();H.delta=di(0,1e3/60,e-H.timestamp),H.timestamp=e,H.isProcessing=!0,Xi.update.process(H),Xi.preRender.process(H),Xi.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sf),this.sharedNodes.forEach(_f)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!wd(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||cu(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Ef(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Of))){let{scroll:e}=this.root;e&&(vu(t.x,e.offset.x),vu(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(id(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&id(t,e),vu(t.x,i.offset.x),vu(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Y();id(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(vu(r.x,-n.scroll.offset.x),vu(r.y,-n.scroll.offset.y)),cu(n.latestValues)&&xu(r,n.latestValues,n.layout?.layoutBox)}return cu(this.latestValues)&&xu(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Y();id(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!cu(n.latestValues))continue;let r;n.instance&&(su(n.latestValues)&&n.updateSnapshot(),r=Y(),id(r,n.measurePageBox())),Sd(t,n.latestValues,n.snapshot?.layoutBox,r)}return cu(this.latestValues)&&Sd(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=H.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),md(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):id(this.target,this.layout.layoutBox),mu(this.target,this.targetDelta)):id(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),jl.value&&Yd.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||su(this.parent.latestValues)||lu(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),gd(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),id(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===H.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;id(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;_u(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ad(this.prevProjectionDelta.x,this.projectionDelta.x),ad(this.prevProjectionDelta.y,this.projectionDelta.y)),fd(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Ad(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ad(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),jl.value&&Yd.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Il(),this.projectionDelta=Il(),this.projectionDeltaWithTransform=Il()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Il();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Y(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(xf));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=K(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=K(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(vf(o.x,e.x,n),vf(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gd(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),bf(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ed(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Y(),id(f,this.relativeTarget)),c&&(this.animationValues=a,Id(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Yi(this.pendingAnimation),void 0),this.pendingAnimation=V.update(()=>{Jd.hasAnimatedSinceResize=!0,this.motionValue||=qs(0),this.motionValue.jump(0,!1),this.currentAnimation=Vd(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Df(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Y();let t=X(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=X(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}id(t,n),xu(t,i),fd(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qd),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&$d(`z`,e,r,this.animationValues);for(let t=0;t<Xd.length;t++)$d(`rotate${Xd[t]}`,e,r,this.animationValues),$d(`skew${Xd[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Kd(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Kd(t?.pointerEvents)||``),this.hasProjected&&!cu(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Md(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Mu){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Mu[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Kd(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(cf),this.root.sharedNodes.clear()}}}function nf(e){e.updateLayout()}function rf(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)jd(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=X(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;rd(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Df(i,t.layoutBox,n)&&jd(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=X(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Il();fd(o,n,t.layoutBox);let s=Il();a?fd(s,e.applyTransform(r,!0),t.measuredBox):fd(s,n,t.layoutBox);let c=!wd(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Y();gd(s,t.layoutBox,i.layoutBox,o);let c=Y();gd(c,n,a.layoutBox,o),Od(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function af(e){jl.value&&Yd.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function of(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sf(e){e.clearSnapshot()}function cf(e){e.clearMeasurements()}function lf(e){e.isLayoutDirty=!0,e.updateLayout()}function uf(e){e.isLayoutDirty=!1}function df(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ff(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function pf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mf(e){e.resolveTargetDelta()}function hf(e){e.calcProjection()}function gf(e){e.resetSkewAndRotation()}function _f(e){e.removeLeadSnapshot()}function vf(e,t,n){e.translate=K(t.translate,0,n),e.scale=K(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function yf(e,t,n,r){e.min=K(t.min,n.min,r),e.max=K(t.max,n.max,r)}function bf(e,t,n,r){yf(e.x,t.x,n.x,r),yf(e.y,t.y,n.y,r)}function xf(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Sf={duration:.45,ease:[.4,0,.1,1]},Cf=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),wf=Cf(`applewebkit/`)&&!Cf(`chrome/`)?Math.round:_i;function Tf(e){e.min=wf(e.min),e.max=wf(e.max)}function Ef(e){Tf(e.x),Tf(e.y)}function Df(e,t,n){return e===`position`||e===`preserve-aspect`&&!ud(kd(t),kd(n),.2)}function Of(e){return e!==e.root&&e.scroll?.wasRoot}var kf=tf({attachResizeListener:(e,t)=>Hd(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Af={current:void 0},jf=tf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Af.current){let e=new kf({});e.mount(window),e.setOptions({layoutScroll:!0}),Af.current=e}return Af.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Mf=(0,p.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Nf(e=!0){let t=(0,p.useContext)(ci);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,p.useId)();(0,p.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,p.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Pf=(0,p.createContext)({strict:!1}),Ff={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},If=!1;function Lf(){if(If)return;let e={};for(let t in Ff)e[t]={isEnabled:e=>Ff[t].some(t=>!!e[t])};Ql(e),If=!0}function Rf(){return Lf(),$l()}function zf(e){let t=Rf();for(let n in e)t[n]={...t[n],...e[n]};Ql(t)}var Bf=(0,p.createContext)({});function Vf(e,t){if(Ul(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Bl(t)?t:void 0,animate:Bl(n)?n:void 0}}return e.inherit===!1?{}:t}function Hf(e){let{initial:t,animate:n}=Vf(e,(0,p.useContext)(Bf));return(0,p.useMemo)(()=>({initial:t,animate:n}),[Uf(t),Uf(n)])}function Uf(e){return Array.isArray(e)?e.join(` `):e}var Wf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gf(e,t,n){for(let r in t)!J(t[r])&&!Nu(r,n)&&(e[r]=t[r])}function Kf({transformTemplate:e},t){return(0,p.useMemo)(()=>{let n=Wf();return Du(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qf(e,t){let n=e.style||{},r={};return Gf(r,n,e),Object.assign(r,Kf(e,t)),r}function Jf(e,t){let n={},r=qf(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Yf=()=>({...Wf(),attrs:{}});function Xf(e,t,n,r){let i=(0,p.useMemo)(()=>{let n=Yf();return Vu(n,t,Uu(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Gf(t,e.style,e),i.style={...t,...i.style}}return i}var Zf=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Qf(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Zf.has(e)}function $f(e,t){return e.startsWith(`on`)?!Qf(e):t?.(e)??!Qf(e)}function ep(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(J(e[a])||($f(a,r)||n===!0&&Qf(a)||!t&&!Qf(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var tp=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function np(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(tp.indexOf(e)>-1||/[A-Z]/u.test(e))}function rp(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??np(e)?Xf:Jf)(t,r,i,e),l=ep(t,typeof e==`string`,a,s),u=e===p.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,p.useMemo)(()=>J(d)?d.get():d,[d]);return(0,p.createElement)(e,{...u,children:f})}function ip({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ap(n,r,i,e),renderState:t()}}function ap(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Kd(a[e]);let{initial:o,animate:s}=e,c=Ul(e),l=Wl(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!zl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=cc(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var op=e=>(t,n)=>{let r=(0,p.useContext)(Bf),i=(0,p.useContext)(ci),a=()=>ip(e,t,r,i);return n?a():oi(a)},sp=op({scrapeMotionValuesFromProps:Pu,createRenderState:Wf}),cp=op({scrapeMotionValuesFromProps:Gu,createRenderState:Yf}),lp=Symbol.for(`motionComponentSymbol`);function up(e,t,n){let r=(0,p.useRef)(n);(0,p.useInsertionEffect)(()=>{r.current=n});let i=(0,p.useRef)(null);return(0,p.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var dp=(0,p.createContext)({});function fp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function pp(e,t,n,r,i,a){let{visualElement:o}=(0,p.useContext)(Bf),s=(0,p.useContext)(Pf),c=(0,p.useContext)(ci),l=(0,p.useContext)(Mf),u=l.reducedMotion,d=l.skipAnimations,f=(0,p.useRef)(null),m=(0,p.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,g=(0,p.useContext)(dp);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&mp(f.current,n,i,g);let _=(0,p.useRef)(!1);(0,p.useInsertionEffect)(()=>{h&&_.current&&h.update(n,c)});let v=n[vc],y=(0,p.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return si(()=>{m.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),y.current&&h.animationState&&h.animationState.animateChanges())}),(0,p.useEffect)(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),h.enteringChildren=void 0)}),h}function mp(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:hp(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&fp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function hp(e){if(e)return e.options.allowProjection===!1?hp(e.parent):e.projection}function gp(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&zf(r);let a=n?n===`svg`:np(e),o=a?cp:sp;function s(n,s){let c,l={...(0,p.useContext)(Mf),...n,layoutId:_p(n)},{isStatic:u,isValidProp:d}=l,f=Hf(n),h=o(n,u);if(!u&&typeof window<`u`){vp(l,r);let t=yp(l);c=t.MeasureLayout,f.visualElement=pp(e,h,l,i,t.ProjectionNode,a)}return(0,m.jsxs)(Bf.Provider,{value:f,children:[c&&f.visualElement?(0,m.jsx)(c,{visualElement:f.visualElement,...l}):null,rp(e,n,up(h,f.visualElement,s),h,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,p.forwardRef)(s);return c[lp]=e,c}function _p({layoutId:e}){let t=(0,p.useContext)(ai).id;return t&&e!==void 0?t+`-`+e:e}function vp(e,t){(0,p.useContext)(Pf).strict}function yp(e){let{drag:t,layout:n}=Rf();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function bp(e,t){if(typeof Proxy>`u`)return gp;let n=new Map,r=(n,r)=>gp(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,gp(a,void 0,e,t)),n.get(a))})}var xp=(e,t)=>t.isSVG??np(e)?new Ku(t):new Iu(t,{allowProjection:e!==p.Fragment}),Sp=class extends nu{constructor(e){super(e),e.animationState||=$u(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();zl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Cp=0,wp={animation:{Feature:Sp},exit:{Feature:class extends nu{constructor(){super(...arguments),this.id=Cp++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=lc(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Tp(e){return{point:{x:e.pageX,y:e.pageY}}}var Ep=e=>t=>il(t)&&e(t,Tp(t));function Dp(e,t,n,r){return Hd(e,t,Ep(n),r)}var Op=({current:e})=>e?e.ownerDocument.defaultView:null,kp=(e,t)=>Math.abs(e-t);function Ap(e,t){let n=kp(e.x,t.x),r=kp(e.y,t.y);return Math.sqrt(n**2+r**2)}var jp=new Set([`auto`,`scroll`]),Mp=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Np(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Fp(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Ap(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=H;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Np(t,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Fp(e.type===`pointercancel`?this.lastMoveEventInfo:Np(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!il(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Np(Tp(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=H;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Fp(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=vi(Dp(this.contextWindow,`pointermove`,this.handlePointerMove,d),Dp(this.contextWindow,`pointerup`,this.handlePointerUp,d),Dp(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(jp.has(e.overflowX)||jp.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Yi(this.updatePoint)}};function Np(e,t){return t?{point:t(e.point)}:e}function Pp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fp({point:e},t){return{point:e,delta:Pp(e,Lp(t)),offset:Pp(e,Ip(t)),velocity:Rp(t,.1)}}function Ip(e){return e[0]}function Lp(e){return e[e.length-1]}function Rp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Lp(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>B(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>B(t)*2&&(r=e[1]);let a=xi(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function zp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?K(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?K(n,e,r.max):Math.min(e,n)),e}function Bp(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Vp(e,{top:t,left:n,bottom:r,right:i}){return{x:Bp(e.x,n,i),y:Bp(e.y,t,r)}}function Hp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Up(e,t){return{x:Hp(e.x,t.x),y:Hp(e.y,t.y)}}function Wp(e,t){let n=.5,r=X(e),i=X(t);return i>r?n=yi(t.min,t.max-r,e.min):r>i&&(n=yi(e.min,e.max-i,t.min)),di(0,1,n)}function Gp(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Kp=.35;function qp(e=Kp){return e===!1?e=0:e===!0&&(e=Kp),{x:Jp(e,`left`,`right`),y:Jp(e,`top`,`bottom`)}}function Jp(e,t,n){return{min:Yp(e,t),max:Yp(e,n)}}function Yp(e,t){return typeof e==`number`?e:e[t]||0}var Xp=new WeakMap,Zp=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Tp(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$c(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jd(e=>{let t=this.getAxisMotionValue(e).get()||0;if(xa.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=X(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&V.update(()=>i(e,t),!1,!0),gc(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=tm(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&V.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Mp(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Op(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&V.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!em(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=zp(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&fp(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Vp(n.layoutBox,e):!1,this.elastic=qp(t),r!==this.constraints&&!fp(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&jd(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Gp(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!fp(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Cu(n,r.root,this.visualElement.getTransformPagePoint()),a=Up(r.layout.layoutBox,i);if(t){let e=t(iu(a));this.hasMutatedConstraints=!!e,e&&(a=ru(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=jd(o=>{if(!em(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return gc(this.visualElement,e),n.start(rc(e,n,0,t,this.visualElement,!1))}stopAnimation(){jd(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){jd(t=>{let{drag:n}=this.getProps();if(!em(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-K(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!fp(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};jd(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Wp({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),jd(t=>{if(!em(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(K(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Xp.set(this.visualElement,this);let e=this.visualElement.current,t=Dp(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&cl(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();fp(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=$p(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(r);let o=Hd(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(jd(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Kp,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Qp(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function $p(e,t,n){let r=Al(e,Qp(n)),i=Al(t,Qp(n));return()=>{r(),i()}}function em(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tm(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var nm=class extends nu{constructor(e){super(e),this.removeGroupControls=_i,this.removeListeners=_i,this.controls=new Zp(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_i}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},rm=e=>(t,n)=>{e&&V.update(()=>e(t,n),!1,!0)},im=class extends nu{constructor(){super(...arguments),this.removePointerDownListener=_i}onPointerDown(e){this.session=new Mp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Op(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rm(e),onStart:rm(t),onMove:rm(n),onEnd:(e,t)=>{delete this.session,r&&V.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Dp(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},am=!1,om=class extends p.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),am&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Jd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),am=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||V.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Yc.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;am=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function sm(e){let[t,n]=Nf(),r=(0,p.useContext)(ai);return(0,m.jsx)(om,{...e,layoutGroup:r,switchLayoutGroup:(0,p.useContext)(dp),isPresent:t,safeToRemove:n})}var cm={pan:{Feature:im},drag:{Feature:nm,ProjectionNode:jf,MeasureLayout:sm}};function lm(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&V.postRender(()=>i(t,Tp(t)))}var um=class extends nu{mount(){let{current:e}=this.node;e&&(this.unmount=nl(e,(e,t)=>(lm(this.node,t,`Start`),e=>lm(this.node,e,`End`))))}unmount(){}},dm=class extends nu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=vi(Hd(this.node.current,`focus`,()=>this.onFocus()),Hd(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function fm(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&V.postRender(()=>i(t,Tp(t)))}var pm=class extends nu{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=hl(e,(e,t)=>(fm(this.node,t,`Start`),(e,{success:t})=>fm(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},mm=new WeakMap,hm=new WeakMap,gm=e=>{let t=mm.get(e.target);t&&t(e)},_m=e=>{e.forEach(gm)};function vm({root:e,...t}){let n=e||document;hm.has(n)||hm.set(n,{});let r=hm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(_m,{root:e,...t})),r[i]}function ym(e,t,n){let r=vm(t);return mm.set(e,n),r.observe(e),()=>{mm.delete(e),r.unobserve(e)}}var bm={some:0,all:1},xm=class extends nu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:bm[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=ym(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Sm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Sm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Cm={inView:{Feature:xm},tap:{Feature:pm},focus:{Feature:dm},hover:{Feature:um}},wm={layout:{ProjectionNode:jf,MeasureLayout:sm}},Tm=bp({...wp,...Cm,...cm,...wm},xp),Em=({className:e,strokeWidth:t=4})=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`44`,height:`44`,viewBox:`0 0 44 44`,stroke:`currentColor`,role:`img`,"aria-label":`Spinner`,className:a(`size-full`,e),children:(0,m.jsxs)(`g`,{fill:`none`,fillRule:`evenodd`,strokeWidth:t,children:[(0,m.jsxs)(`circle`,{cx:`22`,cy:`22`,r:`1`,children:[(0,m.jsx)(`animate`,{attributeName:`r`,begin:`0s`,dur:`1.8s`,values:`1; 20`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.165, 0.84, 0.44, 1`,repeatCount:`indefinite`}),(0,m.jsx)(`animate`,{attributeName:`stroke-opacity`,begin:`0s`,dur:`1.8s`,values:`1; 0`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.3, 0.61, 0.355, 1`,repeatCount:`indefinite`})]}),(0,m.jsxs)(`circle`,{cx:`22`,cy:`22`,r:`1`,children:[(0,m.jsx)(`animate`,{attributeName:`r`,begin:`-0.9s`,dur:`1.8s`,values:`1; 20`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.165, 0.84, 0.44, 1`,repeatCount:`indefinite`}),(0,m.jsx)(`animate`,{attributeName:`stroke-opacity`,begin:`-0.9s`,dur:`1.8s`,values:`1; 0`,calcMode:`spline`,keyTimes:`0; 1`,keySplines:`0.3, 0.61, 0.355, 1`,repeatCount:`indefinite`})]})]})}),Dm=({children:e,isLoading:t=!0,keepChildren:n=!1,className:r,...i})=>(0,m.jsx)(m.Fragment,{children:t&&n?(0,m.jsxs)(`div`,{className:`relative size-full`,children:[(0,m.jsx)(`div`,{className:a(`absolute top-0 left-0 flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center`,r),role:`status`,"aria-label":`Animated icon, meaning that the website is processing`,...i,children:(0,m.jsx)(Em,{className:`size-10 max-h-full max-w-full`})}),e]}):t?(0,m.jsx)(`div`,{className:a(`flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center`,r),role:`status`,"aria-label":`Animated icon, meaning that the website is processing`,...i,children:(0,m.jsx)(Em,{className:`size-10 max-h-full max-w-full`})}):e??(0,m.jsx)(m.Fragment,{})}),Om=zr(`flex-none shrink-0`,{variants:{size:{xs:`size-2`,sm:`size-3`,md:`size-4`,lg:`size-5`,xl:`size-6`,"icon-sm":`size-3`,"icon-md":`size-4`,"icon-lg":`size-5`,"icon-xl":`size-6`,custom:``}},defaultVariants:{size:`md`}}),km=zr(`relative inline-flex cursor-pointer items-center justify-center font-medium ring-0 transition-all duration-300 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,{variants:{size:{xs:`min-h-7 px-3 text-xs max-md:py-1`,sm:`min-h-7 px-3 text-xs max-md:py-1`,md:`min-h-8 px-6 text-sm max-md:py-2`,lg:`min-h-10 px-8 text-lg max-md:py-3`,xl:`min-h-11 px-10 text-xl max-md:py-4`,"icon-sm":`p-1.5`,"icon-md":`p-1.5`,"icon-lg":`p-1.5`,"icon-xl":`p-3`,custom:``},color:{primary:`hover-primary-500/20 text-primary ring-primary-500/20 *:text-text-light`,secondary:`hover-secondary-500/20 text-secondary ring-secondary-500/20 *:text-text-light`,neutral:`text-neutral ring-neutral-500/5 *:text-text-light`,card:`hover-card-500/20 text-card ring-card-500/20 *:text-text-light`,light:`hover-white-500/20 text-white ring-white/20 *:text-text-light`,dark:`text-neutral-800 ring-text-light/50 *:text-text-light`,text:`text-text ring-text/20 *:text-text-opposite`,current:`hover-current-500/10 text-current ring-current/10 *:text-text-light`,"text-inverse":`text-text-opposite ring-text-opposite/20 *:text-text`,error:`hover-error-500/20 text-error ring-error/20 *:text-text-light`,success:`hover-success-500/20 text-success ring-success/20 *:text-text-light`,custom:``},roundedSize:{none:`rounded-none`,sm:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,md:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,lg:`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,xl:`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"2xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,"3xl":`rounded-[2.5rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[3rem]`,"4xl":`rounded-[3rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[4rem]`,"5xl":`rounded-[4rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[5rem]`,full:`rounded-full`},variant:{default:[`bg-current`,`hover:bg-current/90`,`hover:ring-5`,`aria-selected:ring-5`],outline:[`rounded-2xl border-[1.3px] border-current bg-current/0 *:text-current!`,`hover:bg-current/20 focus-visible:bg-current/20`,`hover:ring-5 focus-visible:ring-5`,`aria-selected:ring-5`],none:`border-none bg-current/0 text-inherit hover:bg-current/0`,link:`h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 *:text-current! hover:bg-transparent hover:underline`,"invisible-link":`h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 *:text-current! hover:bg-transparent`,hoverable:`rounded-lg border-none bg-current/0 transition *:text-current! hover:bg-current/10 aria-[current]:bg-current/5`,fade:[`rounded-lg border-none bg-current/10 ring-current/5 transition *:text-current! hover:bg-current/20 aria-[current]:bg-current/5`,`hover:ring-5 focus-visible:ring-5`,`aria-selected:ring-5`],input:[`text-text`,`w-full select-text resize-none rounded-2xl text-base shadow-none outline-none supports-[corner-shape:squircle]:rounded-4xl`,`transition-shadow duration-100 md:text-sm`,`ring-0`,`disabled:opacity-50`,`text-text`,`bg-neutral-50 dark:bg-neutral-950`,`ring-neutral-100 dark:ring-neutral-700`,`hover:ring-3`,`aria-selected:ring-4`,`focus-visible:ring-3`,`disabled:ring-0`,`focus-visible:outline-none`,`[box-shadow:none] focus:[box-shadow:none]`,`aria-invalid:border-error`]},textAlign:{left:`justify-start text-left`,center:`justify-center text-center`,right:`justify-end text-right`},isFullWidth:{true:`w-full`,false:``}},defaultVariants:{variant:`default`,size:`md`,color:`text`,roundedSize:`md`,textAlign:`center`,isFullWidth:!1}}),Am=({variant:e,size:t,color:n,children:r,Icon:i,IconRight:o,iconClassName:s,isLoading:c=!1,isActive:l,isSelected:u,isFullWidth:d,roundedSize:f,textAlign:p,disabled:h,label:g,className:_,type:v=`button`,"aria-describedby":y,"aria-expanded":b,"aria-haspopup":x,"aria-pressed":S,...C})=>{let w=e===`link`||e===`invisible-link`,T=!r&&(i||o),E={"aria-label":T?g??void 0:void 0,"aria-labelledby":void 0,"aria-describedby":y,"aria-expanded":b,"aria-haspopup":x,"aria-pressed":l===void 0?S:l,"aria-busy":c,"aria-current":l?`page`:void 0,"aria-disabled":h||c,"aria-selected":u},D=t===`icon-sm`||t===`icon-md`||t===`icon-lg`||t===`icon-xl`;return(0,m.jsxs)(`button`,{disabled:c||h,role:w?`link`:`button`,type:v,className:km({variant:e,size:t,color:n,isFullWidth:d,roundedSize:f,textAlign:p??(o?`left`:`center`),className:_}),...E,...C,children:[i&&!c&&(0,m.jsx)(i,{className:Om({size:t,className:a(!D&&`mr-3`,s)}),"aria-hidden":`true`}),(0,m.jsx)(`div`,{className:a(`flex items-center justify-center transition-[width] duration-300`,c&&t===`sm`&&`w-3`,c&&t===`md`&&`w-4`,c&&t===`lg`&&`w-6`,c&&t===`xl`&&`w-8`),children:(0,m.jsx)(Dm,{className:Om({size:t,className:a(!D&&`mr-3`,s)}),isLoading:c,"aria-hidden":`true`,"data-testid":`loader`})}),r&&(0,m.jsx)(`span`,{className:`flex-1 truncate whitespace-nowrap`,children:r}),!r&&T&&(0,m.jsx)(`span`,{className:`sr-only`,children:g}),o&&(0,m.jsx)(o,{className:Om({size:t,className:a(!D&&`ml-3`,s)}),"aria-hidden":`true`})]})},jm=({children:e,isHidden:t,className:n=``,isOverable:r=!1,isFocusable:i=!1,minHeight:o=0,...s})=>(0,m.jsx)(`div`,{"aria-hidden":i?t:void 0,tabIndex:i?0:void 0,role:i?`button`:`none`,className:a(`group/height-smoother relative grid w-full grid-rows-[0fr] overflow-hidden transition-[grid-template-rows] duration-700 ease-in-out`,t!==void 0&&!t&&`grid-rows-[1fr] overflow-x-auto`,r&&`hover:grid-rows-[1fr] hover:overflow-x-auto`,i&&`focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto`,n),...s,children:(0,m.jsx)(`div`,{style:{minHeight:`${o}px`},className:a(r&&`group-hover/height-smoother:visible`,i&&`group-focus/height-smoother:visible`,n),children:e})}),Mm=new Set,Nm=null,Pm=()=>{Nm=null;let e=[...Mm];Mm.clear();for(let t of e)t()},Fm=e=>typeof requestAnimationFrame>`u`?()=>{}:(Mm.add(e),Nm??=requestAnimationFrame(Pm),()=>{Mm.delete(e),Mm.size===0&&Nm!==null&&(cancelAnimationFrame(Nm),Nm=null)}),Im=e=>e?.getAttribute(`aria-selected`)===`true`,Lm=[`aria-selected`,`data-active`,`data-indicator`],Rm=150,zm=(e,{selector:t=Im,isHoverable:n=!1,orientation:r=`horizontal`}={selector:Im,isHoverable:!1,orientation:`horizontal`})=>{let[i,a]=(0,p.useState)(null),o=(0,p.useRef)(null),s=(0,p.useRef)(null),c=(0,p.useRef)(null),l=(0,p.useRef)(null),u=(0,p.useRef)(t);u.current=t;let d=(0,p.useRef)(r);d.current=r;let f=e.current.length,m=(0,p.useCallback)(()=>{let t=o.current??e.current.find(u.current)??null;o.current&&s.current&&(clearTimeout(s.current),s.current=null);let n=d.current===`vertical`;if(!t){if(c.current?.opacity===0)return;let e=n?{top:c.current?.top??0,height:c.current?.height??0,opacity:0}:{left:c.current?.left??0,width:c.current?.width??0,opacity:0};a(e),c.current=e;return}if(n){let e=t.offsetTop,n=t.offsetHeight,r=c.current;if(r?.top===e&&r.height===n&&r.opacity===1)return;let i={top:e,height:n,opacity:1};a(i),c.current=i;return}let r=t.offsetLeft,i=t.offsetWidth,l=c.current;if(l?.left===r&&l.width===i&&l.opacity===1)return;let f={left:r,width:i,opacity:1};a(f),c.current=f},[e]),h=(0,p.useCallback)(()=>{l.current===null&&(l.current=Fm(()=>{l.current=null,m()}))},[m]);return(0,p.useEffect)(()=>{h(),window.addEventListener(`resize`,h,{passive:!0}),window.addEventListener(`DOMContentLoaded`,h);let t=e.current.filter(Boolean),r=new MutationObserver(h),i=new ResizeObserver(h),a=e=>{s.current&&=(clearTimeout(s.current),null),o.current=e.currentTarget,h()},c=()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{o.current=null,h()},Rm)};for(let e of t)r.observe(e,{attributes:!0,attributeFilter:Lm}),i.observe(e),n&&(e.addEventListener(`mouseenter`,a,{passive:!0}),e.addEventListener(`mouseleave`,c,{passive:!0}));return()=>{if(l.current?.(),l.current=null,s.current&&=(clearTimeout(s.current),null),window.removeEventListener(`resize`,h),window.removeEventListener(`DOMContentLoaded`,h),r.disconnect(),i.disconnect(),n)for(let e of t)e.removeEventListener(`mouseenter`,a),e.removeEventListener(`mouseleave`,c)}},[e,f,n,r,h]),{choiceIndicatorPosition:i,calculatePosition:m,scheduleMeasurement:h,orientation:r}},Bm=zr(`flex flex-col text-text backdrop-blur`,{variants:{roundedSize:{none:`rounded-none`,sm:`rounded-sm [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-md`,md:`rounded-md [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-lg`,lg:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,xl:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,"2xl":`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,"3xl":`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"4xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,full:`rounded-full`},transparency:{none:`bg-card`,xs:`bg-card/95`,sm:`bg-card/90`,md:`bg-card/70`,lg:`bg-card/40`,xl:`bg-card/20`,full:``},padding:{none:`p-0`,sm:`px-3 py-2`,md:`px-4 py-3`,lg:`px-6 py-4`,xl:`px-8 py-6`,"2xl":`px-10 py-8`},separator:{without:``,x:`divide-x divide-dashed divide-text/20`,y:`divide-y divide-dashed divide-text/20`,both:`divide-x divide-y divide-dashed divide-text/20`},border:{none:``,with:`border-[1.3px]`},borderColor:{primary:`border-primary`,secondary:`border-secondary`,neutral:`border-neutral/20`,card:`border-card`,text:`border-text`,error:`border-error`,warning:`border-warning`,success:`border-success`},background:{none:`backdrop-blur-none`,hoverable:`bg-opacity-5! backdrop-blur-0 hover:bg-opacity-10! hover:backdrop-blur focus:bg-opacity-10! focus:backdrop-blur aria-selected:bg-opacity-15! aria-selected:backdrop-blur`,with:``},gap:{none:`gap-0`,sm:`gap-1`,md:`gap-3`,lg:`gap-5`,xl:`gap-8`,"2xl":`gap-10`}},defaultVariants:{roundedSize:`lg`,border:`none`,borderColor:`text`,transparency:`md`,padding:`none`,separator:`without`,gap:`none`},compoundVariants:[{background:`none`,class:`bg-transparent`}]}),Vm=({children:e,roundedSize:t,padding:n,transparency:r,separator:i,className:o,border:s,borderColor:c,background:l,gap:u,...d})=>(0,m.jsx)(`div`,{className:a(Bm({roundedSize:t,transparency:r,padding:n,separator:i,border:typeof s==`boolean`?s?`with`:`none`:void 0,background:l,borderColor:c,gap:u}),o),...d,children:e}),Hm=(e,t)=>{let n=(0,f.c)(21),r;n[0]!==t||n[1]!==e?(r=()=>{if(t!==void 0){let n=typeof t==`function`?t():t;if(typeof window>`u`)return n;let r=localStorage?.getItem(e);if(r)try{return JSON.parse(r)}catch(e){console.error(e)}return n}},n[0]=t,n[1]=e,n[2]=r):r=n[2];let[i,a]=(0,p.useState)(r),o;n[3]!==t||n[4]!==e||n[5]!==i?(o=()=>{let n=localStorage?.getItem(e);if(n&&n!==`undefined`&&i===void 0)try{a(JSON.parse(n))}catch(e){console.error(e)}else t!==void 0&&i===void 0&&a(t)},n[3]=t,n[4]=e,n[5]=i,n[6]=o):o=n[6];let s;n[7]!==e||n[8]!==i?(s=[e,i],n[7]=e,n[8]=i,n[9]=s):s=n[9],(0,p.useEffect)(o,s);let c;n[10]===e?c=n[11]:(c=t=>{a(n=>{let r=typeof t==`function`?t(n):t;return r===void 0?n:(localStorage?.setItem(e,JSON.stringify(r)),r)})},n[10]=e,n[11]=c);let l=c,u;n[12]===e?u=n[13]:(u=()=>{let t=localStorage?.getItem(e);t&&a(JSON.parse(t))},n[12]=e,n[13]=u);let d=u,m;n[14]===e?m=n[15]:(m=()=>{localStorage?.removeItem(e),a(void 0)},n[14]=e,n[15]=m);let h=m,g;return n[16]!==h||n[17]!==d||n[18]!==l||n[19]!==i?(g=[i,l,d,h],n[16]=h,n[17]=d,n[18]=l,n[19]=i,n[20]=g):g=n[20],g},Um=Object.defineProperty,Wm=(e,t)=>Um(e,`name`,{value:t,configurable:!0});function Gm(e,[t,n]){return Math.min(n,Math.max(t,e))}Wm(Gm,`clamp`);var Km=Object.defineProperty,qm=(e,t)=>Km(e,`name`,{value:t,configurable:!0}),Jm=p.createContext(void 0);function Ym(e){let t=p.useContext(Jm);return e||t||`ltr`}qm(Ym,`useDirection`);var Xm=Object.defineProperty,Zm=(e,t)=>Xm(e,`name`,{value:t,configurable:!0}),Qm=0,$m=null;function eh(e){return th(),e.children}Zm(eh,`FocusGuards`);function th(){p.useEffect(()=>{$m||={start:nh(),end:nh()};let{start:e,end:t}=$m;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Qm++,()=>{Qm===1&&($m?.start.remove(),$m?.end.remove(),$m=null),Qm=Math.max(0,Qm-1)}},[])}Zm(th,`useFocusGuards`);function nh(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Zm(nh,`createFocusGuard`);var rh=Object.defineProperty,Z=(e,t)=>rh(e,`name`,{value:t,configurable:!0}),ih=`focusScope.autoFocusOnMount`,ah=`focusScope.autoFocusOnUnmount`,oh={bubbles:!1,cancelable:!0},sh=p.forwardRef(Z(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=p.useState(null),l=Wn(i),u=Wn(a),d=p.useRef(null),f=F(t,c),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:mh(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||mh(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&mh(s)};Z(e,`handleFocusIn`),Z(t,`handleFocusOut`),Z(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,h.paused]),p.useEffect(()=>{if(s){hh.add(h);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ih,oh);s.addEventListener(ih,l),s.dispatchEvent(t),t.defaultPrevented||(ch(vh(uh(s)),{select:!0}),document.activeElement===e&&mh(s))}return()=>{s.removeEventListener(ih,l),setTimeout(()=>{let t=new CustomEvent(ah,oh);s.addEventListener(ah,u),s.dispatchEvent(t),t.defaultPrevented||mh(e??document.body,{select:!0}),s.removeEventListener(ah,u),hh.remove(h)},0)}}},[s,l,u,h]);let g=p.useCallback(e=>{if(!n&&!r||h.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=lh(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&mh(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&mh(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,m.jsx)(L.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})},`FocusScope`));function ch(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(mh(r,{select:t}),document.activeElement!==n)return}Z(ch,`focusFirst`);function lh(e){let t=uh(e);return[dh(t,e),dh(t.reverse(),e)]}Z(lh,`getTabbableEdges`);function uh(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Z(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Z(uh,`getTabbableCandidates`);function dh(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):fh(r,{upTo:t})))return r}Z(dh,`findVisible`);function fh(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}Z(fh,`isHidden`);function ph(e){return e instanceof HTMLInputElement&&`select`in e}Z(ph,`isSelectableInput`);function mh(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ph(e)&&t&&e.select()}}Z(mh,`focus`);var hh=gh();function gh(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=_h(e,t),e.unshift(t)},remove(t){e=_h(e,t),e[0]?.resume()}}}Z(gh,`createFocusScopesStack`);function _h(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Z(_h,`arrayRemove`);function vh(e){return e.filter(e=>e.tagName!==`A`)}Z(vh,`removeLinks`);var yh=Object.defineProperty,bh=(e,t)=>yh(e,`name`,{value:t,configurable:!0}),xh=p.useId||(()=>void 0),Sh=0;function Ch(e){let[t,n]=p.useState(xh());return z(()=>{e||n(e=>e??String(Sh++))},[e]),e||(t?`radix-${t}`:``)}bh(Ch,`useId`);var wh=[`top`,`right`,`bottom`,`left`],Th=[`start`,`end`],Eh=wh.reduce((e,t)=>e.concat(t,t+`-`+Th[0],t+`-`+Th[1]),[]),Dh=Math.min,Oh=Math.max,kh=Math.round,Ah=Math.floor,jh=e=>({x:e,y:e}),Mh={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Nh(e,t,n){return Oh(e,Dh(t,n))}function Ph(e,t){return typeof e==`function`?e(t):e}function Fh(e){return e.split(`-`)[0]}function Ih(e){return e.split(`-`)[1]}function Lh(e){return e===`x`?`y`:`x`}function Rh(e){return e===`y`?`height`:`width`}function zh(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Bh(e){return Lh(zh(e))}function Vh(e,t,n){n===void 0&&(n=!1);let r=Ih(e),i=Bh(e),a=Rh(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Xh(o)),[o,Xh(o)]}function Hh(e){let t=Xh(e);return[Uh(e),t,Uh(t)]}function Uh(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Wh=[`left`,`right`],Gh=[`right`,`left`],Kh=[`top`,`bottom`],qh=[`bottom`,`top`];function Jh(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Gh:Wh:t?Wh:Gh;case`left`:case`right`:return t?Kh:qh;default:return[]}}function Yh(e,t,n,r){let i=Ih(e),a=Jh(Fh(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Uh)))),a}function Xh(e){let t=Fh(e);return Mh[t]+e.slice(t.length)}function Zh(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Qh(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Zh(e)}function $h(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eg(e,t,n){let{reference:r,floating:i}=e,a=zh(t),o=Bh(t),s=Rh(o),c=Fh(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Ih(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function tg(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ph(t,e),p=Qh(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=$h(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=$h(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var ng=50,rg=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:tg},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=eg(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<ng&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=eg(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ig=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ph(e,t)||{};if(l==null)return{};let d=Qh(u),f={x:n,y:r},p=Bh(i),m=Rh(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Dh(d[_],T),D=Dh(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Nh(E,k,O),j=!c.arrow&&Ih(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ee=j?k<E?k-E:k-O:0;return{[p]:f[p]+ee,data:{[p]:A,centerOffset:k-A-ee,...j&&{alignmentOffset:ee}},reset:j}}});function ag(e,t,n){return(e?[...n.filter(t=>Ih(t)===e),...n.filter(t=>Ih(t)!==e)]:n.filter(e=>Fh(e)===e)).filter(n=>!e||Ih(n)===e||(t?Uh(n)!==n:!1))}var og=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=Eh,autoAlignment:u=!0,...d}=Ph(e,t),f=c!==void 0||l===Eh?ag(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Vh(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[Fh(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Ih(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Ih(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},sg=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Ph(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Fh(r),_=zh(o),v=Fh(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Xh(o)]:Hh(o)),x=p!==`none`;!d&&x&&b.push(...Yh(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Vh(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===zh(t)||T.every(e=>zh(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=zh(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function cg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lg(e){return wh.some(t=>e[t]>=0)}var ug=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ph(e,t);switch(i){case`referenceHidden`:{let e=cg(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:lg(e)}}}case`escaped`:{let e=cg(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:lg(e)}}}default:return{}}}}};function dg(e){let t=Dh(...e.map(e=>e.left)),n=Dh(...e.map(e=>e.top)),r=Oh(...e.map(e=>e.right)),i=Oh(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function fg(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>$h(dg(e)))}var pg=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Ph(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=fg(u),f=$h(dg(u)),p=Qh(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(zh(n)===`y`){let e=d[0],t=d[d.length-1],r=Fh(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return $h({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=Fh(n)===`left`,t=Oh(...d.map(e=>e.right)),r=Dh(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return $h({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},mg=new Set([`left`,`top`]);async function hg(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Fh(n),s=Ih(n),c=zh(n)===`y`,l=mg.has(o)?-1:1,u=a&&c?-1:1,d=Ph(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var gg=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await hg(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},_g=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ph(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=zh(i),p=Lh(f),m=u[p],h=u[f],g=(e,t)=>Nh(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},vg=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ph(e,t),u={x:n,y:r},d=zh(i),f=Lh(d),p=u[f],m=u[d],h=Ph(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=mg.has(Fh(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},yg=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Ph(e,t),c=await i.detectOverflow(t,s),l=Fh(n),u=Ih(n),d=zh(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Dh(p-c[m],g),y=Dh(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Oh(c.left,c.right):S=p-2*Oh(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function bg(){return typeof window<`u`}function xg(e){return Cg(e)?(e.nodeName||``).toLowerCase():`#document`}function Q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sg(e){return((Cg(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Cg(e){return bg()?e instanceof Node||e instanceof Q(e).Node:!1}function wg(e){return bg()?e instanceof Element||e instanceof Q(e).Element:!1}function Tg(e){return bg()?e instanceof HTMLElement||e instanceof Q(e).HTMLElement:!1}function Eg(e){return!bg()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}function Dg(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Rg(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Og(e){return/^(table|td|th)$/.test(xg(e))}function kg(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ag=/transform|translate|scale|rotate|perspective|filter/,jg=/paint|layout|strict|content/,Mg=e=>!!e&&e!==`none`,Ng;function Pg(e){let t=wg(e)?Rg(e):e;return Mg(t.transform)||Mg(t.translate)||Mg(t.scale)||Mg(t.rotate)||Mg(t.perspective)||!Ig()&&(Mg(t.backdropFilter)||Mg(t.filter))||Ag.test(t.willChange||``)||jg.test(t.contain||``)}function Fg(e){let t=Bg(e);for(;Tg(t)&&!Lg(t);){if(Pg(t))return t;if(kg(t))return null;t=Bg(t)}return null}function Ig(){return Ng??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ng}function Lg(e){return/^(html|body|#document)$/.test(xg(e))}function Rg(e){return Q(e).getComputedStyle(e)}function zg(e){return wg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bg(e){if(xg(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Eg(e)&&e.host||Sg(e);return Eg(t)?t.host:t}function Vg(e){let t=Bg(e);return Lg(t)?(e.ownerDocument||e).body:Tg(t)&&Dg(t)?t:Vg(t)}function Hg(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Vg(e),i=r===e.ownerDocument?.body,a=Q(r);if(i){let e=Ug(a);return t.concat(a,a.visualViewport||[],Dg(r)?r:[],e&&n?Hg(e):[])}return t.concat(r,Hg(r,[],n))}function Ug(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wg(e){let t=Rg(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Tg(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=kh(n)!==a||kh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Gg(e){return wg(e)?e:e.contextElement}function Kg(e){let t=Gg(e);if(!Tg(t))return jh(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Wg(t),o=(a?kh(n.width):n.width)/r,s=(a?kh(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var qg=jh(0);function Jg(e){let t=Q(e);return!Ig()||!t.visualViewport?qg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yg(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Q(e)}function Xg(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Gg(e),o=jh(1);t&&(r?wg(r)&&(o=Kg(r)):o=Kg(e));let s=Yg(a,n,r)?Jg(a):jh(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Q(a),t=wg(r)?Q(r):r,n=e,i=Ug(n);for(;i&&t!==n;){let e=Kg(i),t=i.getBoundingClientRect(),r=Rg(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Q(i),i=Ug(n)}}return $h({width:u,height:d,x:c,y:l})}function Zg(e,t){let n=zg(e).scrollLeft;return t?t.left+n:Xg(Sg(e)).left+n}function Qg(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Zg(e,n),y:n.top+t.scrollTop}}function $g(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Sg(r),s=t?kg(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=jh(1),u=jh(0),d=Tg(r);if((d||!a)&&((xg(r)!==`body`||Dg(o))&&(c=zg(r)),d)){let e=Xg(r);l=Kg(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Qg(o,c):jh(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function e_(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function t_(e){let t=zg(e),n=e.ownerDocument.body,r=Oh(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Oh(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Zg(e),o=-t.scrollTop;return Rg(n).direction===`rtl`&&(a+=Oh(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var n_=25;function r_(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Q(e),a=Sg(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ig()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Zg(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=n_&&(s-=o)}return{width:s,height:c,x:l,y:u}}function i_(e,t){let n=Xg(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Kg(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function a_(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=r_(e,n,t);else if(t===`document`)r=t_(Sg(e));else if(wg(t))r=i_(t,n);else{let n=Jg(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $h(r)}function o_(e,t){let n=t.get(e);if(n)return n;let r=Hg(e,[],!1).filter(e=>wg(e)&&xg(e)!==`body`),i=null,a=Rg(e).position===`fixed`,o=a?Bg(e):e;for(;wg(o)&&!Lg(o);){let e=Rg(o),t=Pg(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Bg(o)}return t.set(e,r),r}function s_(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?kg(t)?[]:o_(t,this._c):[].concat(n),r],o=a_(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=a_(t,a[e],i);s=Oh(n.top,s),c=Dh(n.right,c),l=Dh(n.bottom,l),u=Oh(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function c_(e){let{width:t,height:n}=Wg(e);return{width:t,height:n}}function l_(e,t,n){let r=Tg(t),i=Sg(t),a=n===`fixed`,o=Xg(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=jh(0);if((r||!a)&&((xg(t)!==`body`||Dg(i))&&(s=zg(t)),r)){let e=Xg(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Zg(i));let l=i&&!r&&!a?Qg(i,s):jh(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function u_(e){return Rg(e).position===`static`}function d_(e,t){if(!Tg(e)||Rg(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Sg(e)===n&&(n=n.ownerDocument.body),n}function f_(e,t){let n=Q(e);if(kg(e))return n;if(!Tg(e)){let t=Bg(e);for(;t&&!Lg(t);){if(wg(t)&&!u_(t))return t;t=Bg(t)}return n}let r=d_(e,t);for(;r&&Og(r)&&u_(r);)r=d_(r,t);return r&&Lg(r)&&u_(r)&&!Pg(r)?n:r||Fg(e)||n}var p_=async function(e){let t=this.getOffsetParent||f_,n=this.getDimensions,r=await n(e.floating);return{reference:l_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function m_(e){return Rg(e).direction===`rtl`}var h_={convertOffsetParentRelativeRectToViewportRelativeRect:$g,getDocumentElement:Sg,getClippingRect:s_,getOffsetParent:f_,getElementRects:p_,getClientRects:e_,getDimensions:c_,getScale:Kg,isElement:wg,isRTL:m_};function g_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function __(e,t,n){let r=null,i,a=Sg(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Ah(d),h=Ah(a.clientWidth-(u+f)),g=Ah(a.clientHeight-(d+p)),_=Ah(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Oh(0,Dh(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!g_(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Q(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function v_(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Gg(e),u=i||a?[...l?Hg(l):[],...t?Hg(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?__(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Xg(e):null;c&&g();function g(){let t=Xg(e);h&&!g_(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var y_=gg,b_=og,x_=_g,S_=sg,C_=yg,w_=ug,T_=ig,E_=pg,D_=vg,O_=(e,t,n)=>{let r=new Map,i=n??{},a={...h_,...i.platform,_c:r};return rg(e,t,{...i,platform:a})},k_=typeof document<`u`?p.useLayoutEffect:function(){};function A_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!A_(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!A_(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function j_(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function M_(e,t){let n=j_(e);return Math.round(t*n)/n}function N_(e){let t=p.useRef(e);return k_(()=>{t.current=e}),t}function P_(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=p.useState(r);A_(f,r)||m(r);let[h,g]=p.useState(null),[_,v]=p.useState(null),y=p.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=p.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=p.useRef(null),w=p.useRef(null),T=p.useRef(u),E=c!=null,D=N_(c),O=N_(i),k=N_(l),A=p.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),O_(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!A_(T.current,t)&&(T.current=t,qt.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);k_(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=p.useRef(!1);k_(()=>(j.current=!0,()=>{j.current=!1}),[]),k_(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let ee=p.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),M=p.useMemo(()=>({reference:x,floating:S}),[x,S]),te=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=M_(M.floating,u.x),r=M_(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...j_(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:A,refs:ee,elements:M,floatingStyles:te}),[u,A,ee,M,te])}var F_=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:T_({element:r.current,padding:i}).fn(n):r?T_({element:r,padding:i}).fn(n):{}}}},I_=(e,t)=>{let n=y_(e);return{name:n.name,fn:n.fn,options:[e,t]}},L_=(e,t)=>{let n=x_(e);return{name:n.name,fn:n.fn,options:[e,t]}},R_=(e,t)=>({fn:D_(e).fn,options:[e,t]}),z_=(e,t)=>{let n=S_(e);return{name:n.name,fn:n.fn,options:[e,t]}},B_=(e,t)=>{let n=C_(e);return{name:n.name,fn:n.fn,options:[e,t]}},V_=(e,t)=>{let n=w_(e);return{name:n.name,fn:n.fn,options:[e,t]}},H_=(e,t)=>{let n=F_(e);return{name:n.name,fn:n.fn,options:[e,t]}},U_=Object.defineProperty,W_=(e,t)=>U_(e,`name`,{value:t,configurable:!0});function G_(e){let[t,n]=p.useState(void 0);return z(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}W_(G_,`useSize`);var K_=Object.defineProperty,q_=(e,t)=>K_(e,`name`,{value:t,configurable:!0}),J_=`Popper`,[Y_,X_]=ln(J_),[Z_,Q_]=Y_(J_),$_=q_(e=>{let{__scopePopper:t,children:n}=e,[r,i]=p.useState(null),[a,o]=p.useState(void 0);return(0,m.jsx)(Z_,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),ev=`PopperAnchor`,tv=p.forwardRef(q_(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Q_(ev,n),o=p.useRef(null),s=a.onAnchorChange,c=F(t,p.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=p.useRef(null);p.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&cv(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,m.jsx)(L.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),nv=`PopperContent`,[rv,iv]=Y_(nv),av=p.forwardRef(q_(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:h=`optimized`,onPlaced:g,..._}=e,v=Q_(nv,n),[y,b]=p.useState(null),x=F(t,b),[S,C]=p.useState(null),w=G_(S),T=w?.width??0,E=w?.height??0,D=r+(a===`center`?``:`-`+a),O=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(l)?l:[l],A=k.length>0,j={padding:O,boundary:k.filter(ov),altBoundary:A},{refs:ee,floatingStyles:M,placement:te,isPositioned:ne,middlewareData:re}=P_({strategy:`fixed`,placement:D,whileElementsMounted:q_((...e)=>v_(...e,{animationFrame:h===`always`}),`whileElementsMounted`),elements:{reference:v.anchor},middleware:[I_({mainAxis:i+E,alignmentAxis:o}),c&&L_({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?R_():void 0,...j}),c&&z_({...j}),B_({...j,apply:q_(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),S&&H_({element:S,padding:s}),sv({arrowWidth:T,arrowHeight:E}),f&&V_({strategy:`referenceHidden`,...j,boundary:A?j.boundary:void 0})]}),ie=v.setPlacementState;z(()=>(ie(te),()=>{ie(void 0)}),[te,ie]);let[ae,oe]=cv(te),se=Wn(g);z(()=>{ne&&se?.()},[ne,se]);let ce=re.arrow?.x,le=re.arrow?.y,ue=re.arrow?.centerOffset!==0,[de,fe]=p.useState();return z(()=>{y&&fe(window.getComputedStyle(y).zIndex)},[y]),(0,m.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:ne?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:de,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(` `),...re.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,m.jsx)(rv,{scope:n,placedSide:ae,placedAlign:oe,onArrowChange:C,arrowX:ce,arrowY:le,shouldHideArrow:ue,children:(0,m.jsx)(L.div,{"data-side":ae,"data-align":oe,..._,ref:x,style:{..._.style,animation:ne?_.style?.animation:`none`}})})})},`PopperContent`));function ov(e){return e!==null}q_(ov,`isNotNull`);var sv=q_(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=cv(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function cv(e){let[t,n=`center`]=e.split(`-`);return[t,n]}q_(cv,`getSideAndAlignFromPlacement`);var lv=$_,uv=tv,dv=av,fv=Object.defineProperty,pv=(e,t)=>fv(e,`name`,{value:t,configurable:!0});function mv(e){let t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}pv(mv,`usePrevious`);var hv=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},gv=new WeakMap,_v=new WeakMap,vv={},yv=0,bv=function(e){return e&&(e.host||bv(e.parentNode))},xv=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=bv(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Sv=function(e,t,n,r){var i=xv(t,Array.isArray(e)?e:[e]);vv[n]||(vv[n]=new WeakMap);var a=vv[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(gv.get(e)||0)+1,l=(a.get(e)||0)+1;gv.set(e,c),a.set(e,l),o.push(e),c===1&&i&&_v.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),yv++,function(){o.forEach(function(e){var t=gv.get(e)-1,i=a.get(e)-1;gv.set(e,t),a.set(e,i),t||(_v.has(e)||e.removeAttribute(r),_v.delete(e)),i||e.removeAttribute(n)}),yv--,yv||(gv=new WeakMap,gv=new WeakMap,_v=new WeakMap,vv={})}},Cv=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||hv(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Sv(r,i,n,`aria-hidden`)):function(){return null}},wv=function(){return wv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},wv.apply(this,arguments)};function Tv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ev(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Dv=`right-scroll-bar-position`,Ov=`width-before-scroll-bar`,kv=`with-scroll-bars-hidden`,Av=`--removed-body-scroll-bar-size`;function jv(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Mv(e,t){var n=(0,p.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Nv=typeof window<`u`?p.useLayoutEffect:p.useEffect,Pv=new WeakMap;function Fv(e,t){var n=Mv(t||null,function(t){return e.forEach(function(e){return jv(e,t)})});return Nv(function(){var t=Pv.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||jv(e,null)}),i.forEach(function(e){r.has(e)||jv(e,a)})}Pv.set(n,e)},[e]),n}function Iv(e){return e}function Lv(e,t){t===void 0&&(t=Iv);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Rv(e){e===void 0&&(e={});var t=Lv(null);return t.options=wv({async:!0,ssr:!1},e),t}var zv=function(e){var t=e.sideCar,n=Tv(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return p.createElement(r,wv({},n))};zv.isSideCarExport=!0;function Bv(e,t){return e.useMedium(t),zv}var Vv=Rv(),Hv=function(){},Uv=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Hv,onWheelCapture:Hv,onTouchMoveCapture:Hv}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Tv(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Fv([n,t]),w=wv(wv({},x),i);return p.createElement(p.Fragment,null,u&&p.createElement(S,{sideCar:Vv,removeScrollBar:l,shards:d,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?p.cloneElement(p.Children.only(s),wv(wv({},w),{ref:C})):p.createElement(y,wv({},w,{className:c,ref:C}),s))});Uv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Uv.classNames={fullWidth:Ov,zeroRight:Dv};var Wv=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Gv(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Wv();return t&&e.setAttribute(`nonce`,t),e}function Kv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qv(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Jv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gv())&&(Kv(t,n),qv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yv=function(){var e=Jv();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xv=function(){var e=Yv();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Zv={left:0,top:0,right:0,gap:0},Qv=function(e){return parseInt(e||``,10)||0},$v=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Qv(n),Qv(r),Qv(i)]},ey=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Zv;var t=$v(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ty=Xv(),ny=`data-scroll-locked`,ry=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
- .${kv} {
3
- overflow: hidden ${r};
4
- padding-right: ${s}px ${r};
5
- }
6
- body[${ny}] {
7
- overflow: hidden ${r};
8
- overscroll-behavior: contain;
9
- ${[t&&`position: relative ${r};`,n===`margin`&&`
10
- padding-left: ${i}px;
11
- padding-top: ${a}px;
12
- padding-right: ${o}px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: ${s}px ${r};
16
- `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
- }
18
-
19
- .${Dv} {
20
- right: ${s}px ${r};
21
- }
22
-
23
- .${Ov} {
24
- margin-right: ${s}px ${r};
25
- }
26
-
27
- .${Dv} .${Dv} {
28
- right: 0 ${r};
29
- }
30
-
31
- .${Ov} .${Ov} {
32
- margin-right: 0 ${r};
33
- }
34
-
35
- body[${ny}] {
36
- ${Av}: ${s}px;
37
- }
38
- `},iy=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ay=function(){p.useEffect(function(){return document.body.setAttribute(ny,(iy()+1).toString()),function(){var e=iy()-1;e<=0?document.body.removeAttribute(ny):document.body.setAttribute(ny,e.toString())}},[])},oy=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;ay();var a=p.useMemo(function(){return ey(i)},[i]);return p.createElement(ty,{styles:ry(a,!t,i,n?``:`!important`)})},sy=!1;if(typeof window<`u`)try{var cy=Object.defineProperty({},"passive",{get:function(){return sy=!0,!0}});window.addEventListener(`test`,cy,cy),window.removeEventListener(`test`,cy,cy)}catch{sy=!1}var ly=sy?{passive:!1}:!1,uy=function(e){return e.tagName===`TEXTAREA`},dy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!uy(e)&&n[t]===`visible`)},fy=function(e){return dy(e,`overflowY`)},py=function(e){return dy(e,`overflowX`)},my=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),_y(e,r)){var i=vy(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hy=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},gy=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},_y=function(e,t){return e===`v`?fy(t):py(t)},vy=function(e,t){return e===`v`?hy(t):gy(t)},yy=function(e,t){return e===`h`&&t===`rtl`?-1:1},by=function(e,t,n,r,i){var a=yy(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=vy(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&_y(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},xy=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sy=function(e){return[e.deltaX,e.deltaY]},Cy=function(e){return e&&`current`in e?e.current:e},wy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ty=function(e){return`
39
- .block-interactivity-${e} {pointer-events: none;}
40
- .allow-interactivity-${e} {pointer-events: all;}
41
- `},Ey=0,Dy=[];function Oy(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(Ey++)[0],a=p.useState(Xv)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ev([e.lockRef.current],(e.shards||[]).map(Cy),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=xy(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=my(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=my(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return by(h,t,e,h===`h`?s:c,!0)},[]),c=p.useCallback(function(e){var n=e;if(!(!Dy.length||Dy[Dy.length-1]!==a)){var r=`deltaY`in n?Sy(n):xy(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&wy(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Cy).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=p.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ky(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=p.useCallback(function(e){n.current=xy(e),r.current=void 0},[]),d=p.useCallback(function(t){l(t.type,Sy(t),t.target,s(t,e.lockRef.current))},[]),f=p.useCallback(function(t){l(t.type,xy(t),t.target,s(t,e.lockRef.current))},[]);p.useEffect(function(){return Dy.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ly),document.addEventListener(`touchmove`,c,ly),document.addEventListener(`touchstart`,u,ly),function(){Dy=Dy.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ly),document.removeEventListener(`touchmove`,c,ly),document.removeEventListener(`touchstart`,u,ly)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(a,{styles:Ty(i)}):null,m?p.createElement(oy,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ky(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ay=Bv(Vv,Oy),jy=p.forwardRef(function(e,t){return p.createElement(Uv,wv({},e,{ref:t,sideCar:Ay}))});jy.classNames=Uv.classNames;var My=Object.defineProperty,$=(e,t)=>My(e,`name`,{value:t,configurable:!0}),Ny=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Py=[` `,`Enter`],Fy=`Select`,[Iy,Ly,Ry]=On(Fy),[zy,By]=ln(Fy,[Ry,X_]),Vy=X_(),[Hy,Uy]=zy(Fy),[Wy,Gy]=zy(Fy);function Ky(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:h,form:g,internal_do_not_use_render:_}=e,v=Vy(t),[y,b]=p.useState(null),[x,S]=p.useState(null),[C,w]=p.useState(!1),T=Ym(l),[E,D]=Er({prop:r,defaultProp:i??!1,onChange:a,caller:Fy}),[O,k]=Er({prop:o,defaultProp:s,onChange:c,caller:Fy}),A=p.useRef(null),j=p.useRef(O);p.useEffect(()=>{let e=g?y?.ownerDocument.getElementById(g):y?.form;if(e instanceof HTMLFormElement){let t=$(()=>k(j.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[g,y,k]);let ee=!y||!!g||!!y.closest(`form`),[M,te]=p.useState(new Set),ne=Ch(),re=Array.from(M).map(e=>e.props.value).join(`;`),ie=p.useCallback(e=>{te(t=>new Set(t).add(e))},[]),ae=p.useCallback(e=>{te(t=>{let n=new Set(t);return n.delete(e),n})},[]),oe={required:h,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:ne,value:O,onValueChange:k,open:E,onOpenChange:D,dir:T,triggerPointerDownPosRef:A,disabled:f,name:u,autoComplete:d,form:g,nativeOptions:M,nativeSelectKey:re,isFormControl:ee};return(0,m.jsx)(lv,{...v,children:(0,m.jsx)(Hy,{scope:t,...oe,children:(0,m.jsx)(Iy.Provider,{scope:t,children:(0,m.jsx)(Wy,{scope:t,onNativeOptionAdd:ie,onNativeOptionRemove:ae,children:Lb(_)?_(oe):n})})})})}$(Ky,`SelectProvider`);var qy=$(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,m.jsx)(Ky,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[n,e?(0,m.jsx)(Ib,{__scopeSelect:t}):null]})})},`Select`),Jy=`SelectTrigger`,Yy=p.forwardRef($(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Vy(n),o=Uy(Jy,n),s=o.disabled||r,c=F(t,o.onTriggerChange),l=Ly(n),u=p.useRef(`touch`),[d,f,h]=zb(e=>{let t=l().filter(e=>!e.disabled),n=Bb(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),g=$(e=>{s||(o.onOpenChange(!0),h()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,m.jsx)(uv,{asChild:!0,...a,children:(0,m.jsx)(L.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Rb(o.value)?``:void 0,...i,ref:c,onClick:P(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&g(e)}),onPointerDown:P(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:P(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Ny.includes(e.key)&&(g(),e.preventDefault())})})})},`SelectTrigger`)),Xy=`SelectValue`,Zy=p.forwardRef($(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Uy(Xy,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=F(t,c.onValueNodeChange);z(()=>{l(u)},[l,u]);let f=Rb(c.value);return(0,m.jsx)(L.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,m.jsx)(p.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),Qy=p.forwardRef($(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,m.jsx)(L.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[$y,eb]=zy(`SelectPortal`,{forceMount:void 0}),tb=$(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,m.jsx)($y,{scope:e.__scopeSelect,forceMount:n,children:(0,m.jsx)(cr,{asChild:!0,...r})})},`SelectPortal`),nb=`SelectContent`,rb=p.forwardRef($(function(e,t){let n=eb(nb,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Uy(nb,e.__scopeSelect),[o,s]=p.useState();return z(()=>{s(new DocumentFragment)},[]),(0,m.jsx)(fr,{present:r||a.open,children:({present:e})=>e?(0,m.jsx)(lb,{...i,ref:t}):(0,m.jsx)(ib,{...i,fragment:o})})},`SelectContent`)),ib=p.forwardRef($(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?qt.createPortal((0,m.jsx)(ob,{scope:n,children:(0,m.jsx)(Iy.Slot,{scope:n,children:(0,m.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),ab=10,[ob,sb]=zy(nb),cb=pn(`SelectContent.RemoveScroll`),lb=p.forwardRef($(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:_,avoidCollisions:v,...y}=e,b=Uy(nb,n),[x,S]=p.useState(null),[C,w]=p.useState(null),T=F(t,S),[E,D]=p.useState(null),[O,k]=p.useState(null),A=Ly(n),[j,ee]=p.useState(!1),M=p.useRef(!1);p.useEffect(()=>{if(x)return Cv(x)},[x]),th();let te=p.useCallback(e=>{let[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==i))return},[A,C]),ne=p.useCallback(()=>te([E,x]),[te,E,x]);p.useEffect(()=>{j&&ne()},[j,ne]);let{onOpenChange:re,triggerPointerDownPosRef:ie}=b;p.useEffect(()=>{if(x){let e={x:0,y:0},t=$(t=>{e={x:Math.abs(Math.round(t.pageX)-(ie.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ie.current?.y??0))}},`handlePointerMove`),n=$(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(x)||re(!1),document.removeEventListener(`pointermove`,t),ie.current=null},`handlePointerUp`);return ie.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[x,re,ie]),p.useEffect(()=>{let e=$(()=>re(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[re]);let[ae,oe]=zb(e=>{let t=A().filter(e=>!e.disabled),n=Bb(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),se=p.useCallback((e,t,n)=>{let r=!M.current&&!n;(b.value!==void 0&&b.value===t||r)&&(D(e),r&&(M.current=!0))},[b.value]),ce=p.useCallback(()=>x?.focus(),[x]),le=p.useCallback((e,t,n)=>{let r=!M.current&&!n;(b.value!==void 0&&b.value===t||r)&&k(e)},[b.value]),ue=r===`popper`?db:ub,de=ue===db?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:_,avoidCollisions:v}:{};return(0,m.jsx)(ob,{scope:n,content:x,viewport:C,onViewportChange:w,itemRefCallback:se,selectedItem:E,onItemLeave:ce,itemTextRefCallback:le,focusSelectedItem:ne,selectedItemText:O,position:r,isPositioned:j,searchRef:ae,children:(0,m.jsx)(jy,{as:cb,allowPinchZoom:!0,children:(0,m.jsx)(sh,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:P(i,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,m.jsx)(Zn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,m.jsx)(ue,{role:`listbox`,id:b.contentId,"data-state":b.open?`open`:`closed`,dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...de,onPlaced:()=>ee(!0),ref:T,style:{display:`flex`,flexDirection:`column`,outline:`none`,...y.style},onKeyDown:P(y.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&oe(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>te(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),ub=p.forwardRef($(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Uy(nb,n),o=sb(nb,n),[s,c]=p.useState(null),[l,u]=p.useState(null),d=F(t,u),f=Ly(n),h=p.useRef(!1),g=p.useRef(!0),{viewport:_,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=o,x=p.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&_&&v&&y){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-ab,d=Gm(a,[ab,Math.max(ab,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-ab,d=Gm(a,[ab,Math.max(ab,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-ab*2,u=_.scrollHeight,d=window.getComputedStyle(l),p=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=p+m+u+b+g,S=Math.min(v.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-ab,D=c-E,O=v.offsetHeight/2,k=v.offsetTop+O,A=p+m+k,j=x-A;if(A<=E){let e=o.length>0&&v===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-_.offsetTop-_.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+g);s.style.height=n+`px`}else{let e=o.length>0&&v===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,p+_.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,_.scrollTop=A-E+_.offsetTop}s.style.margin=`${ab}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>h.current=!0)}},[f,a.trigger,a.valueNode,s,l,_,v,y,a.dir,r]);z(()=>x(),[x]);let[S,C]=p.useState();z(()=>{l&&C(window.getComputedStyle(l).zIndex)},[l]);let w=p.useCallback(e=>{e&&g.current===!0&&(x(),b?.(),g.current=!1)},[x,b]);return(0,m.jsx)(fb,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:w,children:(0,m.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:S},children:(0,m.jsx)(L.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),db=p.forwardRef($(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=ab,...a}=e,o=Vy(n);return(0,m.jsx)(dv,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[fb,pb]=zy(nb,{}),mb=`SelectViewport`,hb=p.forwardRef($(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=sb(mb,n),o=pb(mb,n),s=F(t,a.onViewportChange),c=p.useRef(0);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,m.jsx)(Iy.Slot,{scope:n,children:(0,m.jsx)(L.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:P(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-ab*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[gb,_b]=zy(`SelectGroup`),vb=p.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e,i=Ch();return(0,m.jsx)(gb,{scope:n,id:i,children:(0,m.jsx)(L.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})},`SelectGroup`)),yb=`SelectLabel`,bb=p.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e,i=_b(yb,n);return(0,m.jsx)(L.div,{id:i.id,...r,ref:t})},`SelectLabel`)),xb=`SelectItem`,[Sb,Cb]=zy(xb),wb=p.forwardRef($(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Uy(xb,n),c=sb(xb,n),l=s.value===r,[u,d]=p.useState(a??``),[f,h]=p.useState(!1),g=F(t,Wn(e=>c.itemRefCallback?.(e,r,i))),_=Ch(),v=p.useRef(`touch`),y=$(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,m.jsx)(Sb,{scope:n,value:r,disabled:i,textId:_,isSelected:l,onItemTextChange:p.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,m.jsx)(Iy.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,m.jsx)(L.div,{role:`option`,"aria-labelledby":_,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:g,onFocus:P(o.onFocus,()=>h(!0)),onBlur:P(o.onBlur,()=>h(!1)),onClick:P(o.onClick,()=>{v.current!==`mouse`&&y()}),onPointerUp:P(o.onPointerUp,()=>{v.current===`mouse`&&y()}),onPointerDown:P(o.onPointerDown,e=>{v.current=e.pointerType}),onPointerMove:P(o.onPointerMove,e=>{v.current=e.pointerType,i?c.onItemLeave?.():v.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:P(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Py.includes(e.key)&&y(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Tb=`SelectItemText`,Eb=p.forwardRef($(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Uy(Tb,n),s=sb(Tb,n),c=Cb(Tb,n),l=Gy(Tb,n),[u,d]=p.useState(null),f=Wn(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),h=F(t,d,c.onItemTextChange,f),g=u?.textContent,_=p.useMemo(()=>(0,m.jsx)(`option`,{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=l;return z(()=>(v(_),()=>y(_)),[v,y,_]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(L.span,{id:c.textId,...a,ref:h}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Rb(o.value)?qt.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Db=`SelectItemIndicator`,Ob=p.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e;return Cb(Db,n).isSelected?(0,m.jsx)(L.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),kb=`SelectScrollUpButton`,Ab=p.forwardRef($(function(e,t){let n=sb(kb,e.__scopeSelect),r=pb(kb,e.__scopeSelect),[i,a]=p.useState(!1),o=F(t,r.onScrollButtonChange);return z(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};$(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,m.jsx)(Nb,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),jb=`SelectScrollDownButton`,Mb=p.forwardRef($(function(e,t){let n=sb(jb,e.__scopeSelect),r=pb(jb,e.__scopeSelect),[i,a]=p.useState(!1),o=F(t,r.onScrollButtonChange);return z(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};$(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,m.jsx)(Nb,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Nb=p.forwardRef($(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=sb(`SelectScrollButton`,n),o=p.useRef(null),s=Ly(n),c=p.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return p.useEffect(()=>()=>c(),[c]),z(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,m.jsx)(L.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:P(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:P(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:P(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Pb=p.forwardRef($(function(e,t){let{__scopeSelect:n,...r}=e;return(0,m.jsx)(L.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Fb=`SelectBubbleInput`,Ib=p.forwardRef($(function({__scopeSelect:e,...t},n){let r=Uy(Fb,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,h=p.useRef(null),g=F(n,h),_=i??``,v=mv(_),y=Array.from(d).some(e=>(e.props.value??``)===``);return p.useEffect(()=>{let e=h.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(v!==_&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,_),e.dispatchEvent(t)}},[v,_]),(0,m.jsxs)(L.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Nr,...t.style},ref:g,defaultValue:_,children:[Rb(i)&&!y?(0,m.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function Lb(e){return typeof e==`function`}$(Lb,`isFunction`);function Rb(e){return e===``||e===void 0}$(Rb,`shouldShowPlaceholder`);function zb(e){let t=Wn(e),n=p.useRef(``),r=p.useRef(0),i=p.useCallback(e=>{let i=n.current+e;t(i),$((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=p.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}$(zb,`useTypeaheadSearch`);function Bb(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Vb(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}$(Bb,`findNextItem`);function Vb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}$(Vb,`wrapArray`);var Hb=qy,Ub=vb,Wb=Zy,Gb=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>(0,m.jsxs)(Yy,{suppressHydrationWarning:!0,className:a(`flex w-full cursor-pointer items-center justify-between whitespace-nowrap`,`select-text text-base shadow-none outline-none md:text-sm`,`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,`px-2 py-3 md:py-2`,`bg-neutral-50 dark:bg-neutral-950`,`text-text`,`ring-0`,`focus-visible:outline-none`,`focus-visible:ring-3`,`focus-visible:ring-neutral-200`,`dark:focus-visible:ring-neutral-500`,`focus-visible:ring-offset-white`,`dark:focus-visible:ring-offset-neutral-500`,`[box-shadow:none] focus:[box-shadow:none]`,`disabled:cursor-not-allowed disabled:opacity-50`,`aria-invalid:border-error`,`[&>span]:line-clamp-1`,e&&`valid:border-success invalid:border-error`,t),...r,children:[n,(0,m.jsx)(Qy,{asChild:!0,children:(0,m.jsx)($r,{className:`size-4 opacity-50`})})]}),Kb=({className:e,...t})=>(0,m.jsx)(Ab,{className:a(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,m.jsx)(Qr,{})}),qb=({className:e,...t})=>(0,m.jsx)(Mb,{className:a(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,m.jsx)(Zr,{})}),Jb=({className:e,children:t,position:n=`popper`,...r})=>(0,m.jsx)(tb,{children:(0,m.jsxs)(rb,{className:a(`relative z-50 max-h-96 min-w-32 overflow-hidden`,`rounded-xl shadow-md`,`bg-white dark:bg-neutral-950`,`text-text`,`border border-neutral-200 dark:border-neutral-800`,`data-[state=closed]:animate-out data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,`data-[side=bottom]:slide-in-from-top-2`,`data-[side=left]:slide-in-from-right-2`,`data-[side=right]:slide-in-from-left-2`,`data-[side=top]:slide-in-from-bottom-2`,n===`popper`&&`data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,m.jsx)(Kb,{}),(0,m.jsx)(hb,{className:a(`p-1`,n===`popper`&&`h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)`),children:t}),(0,m.jsx)(qb,{})]})}),Yb=({className:e,...t})=>(0,m.jsx)(bb,{className:a(`px-1 py-0.5 font-semibold text-sm`,e),...t}),Xb=({className:e,children:t,...n})=>(0,m.jsxs)(wb,{className:a(`relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-neutral/10 data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,m.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,m.jsx)(Ob,{children:(0,m.jsx)(Xr,{className:`size-4`})})}),(0,m.jsx)(Eb,{children:t})]}),Zb=({className:e,...t})=>(0,m.jsx)(Pb,{className:a(`-mx-1 my-1 h-px`,`bg-neutral-200 dark:bg-neutral-800`,e),...t}),Qb=Hb;Qb.Group=Ub,Qb.Value=Wb,Qb.Trigger=Gb,Qb.ScrollUpButton=Kb,Qb.ScrollDownButton=qb,Qb.Content=Jb,Qb.Label=Yb,Qb.Item=Xb,Qb.Separator=Zb;var $b=zr(`gap-3 transition-all duration-300 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`h-auto justify-start border-inherit bg-current/0 px-1 font-medium decoration-[1.5] underline-offset-5 hover:bg-current/0 hover:text-current/80 hover:underline hover:underline-offset-6`,"invisible-link":`h-auto justify-start border-inherit bg-current/0 px-1`,button:`relative inline-flex min-h-8 cursor-pointer flex-row items-center justify-center gap-2 rounded-full bg-current px-6 text-center font-medium text-sm text-text ring-0 *:text-text-opposite hover:bg-current/90 hover:ring-5 aria-selected:ring-5 aria-[current]:ring-5 max-md:py-2`,"button-outlined":`relative inline-flex min-h-8 cursor-pointer flex-row items-center justify-center gap-2 rounded-full border-[1.3px] border-current px-6 text-center font-medium text-sm text-text ring-0 *:text-text hover:bg-current/20 hover:ring-5 aria-selected:ring-5 aria-[current]:ring-5 max-md:py-2`,hoverable:`rounded-lg border-none bg-current/0 transition *:text-current! hover:bg-current/10 aria-[current]:bg-current/5`},roundedSize:{none:`rounded-none`,sm:`rounded-lg [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-xl`,md:`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,lg:`rounded-2xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,xl:`rounded-3xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-4xl`,"2xl":`rounded-4xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[2.5rem]`,"3xl":`rounded-[2.5rem] [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-[3rem]`,full:`rounded-full`},color:{primary:`text-primary`,secondary:`text-secondary`,neutral:`text-neutral`,light:`text-white`,dark:`text-neutral-800`,text:`text-text`,"text-inverse":`text-text-opposite`,error:`text-error`,success:`text-success`,custom:``},size:{sm:`text-sm`,md:`text-base`,lg:`text-lg`,xl:`text-xl`,custom:``},underlined:{default:``,true:`underline`,false:`no-underline`}},compoundVariants:[{variant:`button`,color:`text-inverse`,class:`*:text-text`},{variant:`button-outlined`,color:`text-inverse`,class:`text-text-opposite *:text-text-opposite`},{variant:[`button`,`button-outlined`],size:`sm`,class:`min-h-7 px-3 text-xs max-md:py-1`},{variant:[`button`,`button-outlined`],size:`md`,class:`min-h-8 px-6 text-sm max-md:py-2`},{variant:[`button`,`button-outlined`],size:`lg`,class:`min-h-10 px-8 text-lg max-md:py-3`},{variant:[`button`,`button-outlined`],size:`xl`,class:`min-h-11 px-10 text-xl max-md:py-4`},{variant:[`button`,`button-outlined`],color:`primary`,class:`ring-primary/20`},{variant:[`button`,`button-outlined`],color:`secondary`,class:`ring-secondary/20`},{variant:[`button`,`button-outlined`],color:`neutral`,class:`ring-neutral/20`},{variant:[`button`,`button-outlined`],color:`light`,class:`ring-white/20`},{variant:[`button`,`button-outlined`],color:`dark`,class:`ring-neutral-800/20`},{variant:[`button`,`button-outlined`],color:`text`,class:`ring-text/20`},{variant:[`button`,`button-outlined`],color:`text-inverse`,class:`ring-text-opposite/20`},{variant:[`button`,`button-outlined`],color:`error`,class:`ring-error/20`},{variant:[`button`,`button-outlined`],color:`success`,class:`ring-success/20`}],defaultVariants:{variant:`default`,roundedSize:`md`,underlined:`default`,size:`custom`}}),ex=({href:e,isExternalLink:t},n)=>{if(typeof t==`boolean`)return t;if(typeof e!=`string`||e.trim()===``||!/^https?:\/\//.test(e))return!1;if(n)try{let t=new URL(e).hostname,r=new URL(n.startsWith(`http`)?n:`https://${n}`).hostname,i=e=>e.split(`.`).slice(-2).join(`.`);return i(t)!==i(r)}catch{return!0}return!0},tx=e=>typeof e==`string`||typeof e==`number`?!0:Array.isArray(e)?e.every(tx):(0,p.isValidElement)(e)?tx(e.props.children):!1,nx=e=>{let{variant:t=`default`,color:n=`custom`,roundedSize:r,children:i,label:o,className:s,isActive:c,underlined:l,locale:u,size:d,isExternalLink:f,isPageSection:p,href:h,rel:g,target:_,...v}=e,y=t===`button`||t===`button-outlined`,b=d??(y?`md`:`custom`),x=f??ex(e),S=p??h?.startsWith(`#`)??!1,C=tx(i),w=x?`noopener noreferrer nofollow`:g,T=x?`_blank`:_??`_self`,E=u&&h&&!x&&!S?Vt(h,u):h,D=E===``?void 0:E;return(0,m.jsxs)(`a`,{...v,href:D,"aria-label":o,rel:w,target:T,"aria-current":c?`page`:void 0,suppressHydrationWarning:!0,className:a($b({variant:t,color:n,roundedSize:r,underlined:l,size:b,className:s})),children:[y&&C?(0,m.jsx)(`span`,{children:i}):i,x&&C&&(0,m.jsx)(ni,{className:`ml-2 inline-block size-4`}),S&&(0,m.jsx)(ri,{className:`ml-2 inline-block size-4`})]})},rx=e=>{let t=(0,f.c)(3),[n,r]=(0,p.useState)(e),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{r(e??window.document.body)},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,p.useEffect)(i,a),n},ix=new class{listeners=new Set;scrollBlockers=[];subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.scrollBlockers;addBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);if(n){if(n.blockers.includes(e))return;this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:[...n.blockers,e]}:n)}else t.style.overflowY=`hidden`,t.style.overflowX=`hidden`,this.scrollBlockers=[...this.scrollBlockers,{element:t,blockers:[e]}];this.emit()};removeBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);n&&(n.blockers.length>1?this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:n.blockers.filter(t=>t!==e)}:n):(t.style.overflowY=``,t.style.overflowX=``,this.scrollBlockers=this.scrollBlockers.filter(e=>e.element!==t)),this.emit())};isElementScrollBlocked=e=>this.scrollBlockers.some(t=>t.element===e);emit=()=>{this.listeners.forEach(e=>{e()})}},ax=()=>!1,ox=e=>{let{disableScroll:t=!1,element:n,key:r=`unnamed_blocker`}=e??{},i=rx(n);(0,p.useEffect)(()=>{let e=n??window.document.body;return t?ix.addBlockage(r,e):ix.removeBlockage(r,e),()=>{ix.removeBlockage(r,e)}},[t,n,r]);let a=(0,p.useCallback)(()=>i?ix.isElementScrollBlocked(i):!1,[i]);return{isScrollBlocked:(0,p.useSyncExternalStore)(ix.subscribe,a,ax)}},sx=`relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8`,cx=`after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-left-12 after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100`,lx=({className:e,...t})=>(0,m.jsx)(`h1`,{className:a(`text-3xl`,e),...t}),ux=({className:e,...t})=>(0,m.jsx)(`h2`,{className:a(`mb-2 text-2xl`,sx,e),...t}),dx=({className:e,...t})=>(0,m.jsx)(`h3`,{className:a(`mb-2 text-xl`,sx,e),...t}),fx=({className:e,...t})=>(0,m.jsx)(`h4`,{className:a(`text-lg`,sx,e),...t}),px=({className:e,...t})=>(0,m.jsx)(`h5`,{className:a(`text-base`,sx,e),...t}),mx=({className:e,...t})=>(0,m.jsx)(`h6`,{className:a(`ml-3 text-base`,sx,e),...t}),hx=e=>String(e).normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/\s+/g,`-`).toLowerCase(),gx=e=>{let t=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:t,behavior:`smooth`})},_x=(e,t)=>{let n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,i=window.getComputedStyle(e,`:after`),a=n+parseInt(i.getPropertyValue(`left`),10),o=a+parseInt(i.width,10),s=r+parseInt(i.getPropertyValue(`top`),10),c=s+parseInt(i.height,10),l=t.clientX,u=t.clientY;return l>=a&&l<=o&&u>=s&&u<=c},vx=({H:e,children:t,className:n,isClickable:r,...i})=>{let o=typeof t==`string`?hx(t):void 0;return(0,m.jsx)(e,{id:o,onClick:r?e=>{let{id:t}=e.currentTarget;if(_x(e.currentTarget,e)&&typeof t==`string`){let e=`${window.location.href.split(`#`)[0]}#${t}`;navigator.clipboard.writeText(e),gx(t)}}:void 0,"aria-label":r?`Click to scroll to section ${o} and copy the link to the clipboard`:void 0,className:a(r&&cx,n),...i,children:t})},yx=({isClickable:e,...t})=>(0,m.jsx)(lx,{...t}),bx=({isClickable:e=!1,...t})=>(0,m.jsx)(vx,{H:ux,isClickable:e,...t}),xx=({isClickable:e=!1,...t})=>(0,m.jsx)(vx,{H:dx,isClickable:e,...t}),Sx=({isClickable:e=!1,...t})=>(0,m.jsx)(vx,{H:fx,isClickable:e,...t}),Cx=({isClickable:e=!1,...t})=>(0,m.jsx)(vx,{H:px,isClickable:e,...t}),wx=({isClickable:e=!1,...t})=>(0,m.jsx)(vx,{H:mx,isClickable:e,...t}),Tx=zr(`flex cursor-default flex-col overflow-hidden shadow-sm`,{variants:{size:{sm:`h-auto max-h-[30vh] w-[95vw] max-w-xl`,md:`h-auto max-h-[50vh] w-[95vw] max-w-xl`,lg:`h-auto max-h-[70vh] w-[95vw] max-w-4xl`,xl:`h-auto max-h-[95vh] w-[95vw] max-w-6xl`,unset:`h-auto max-h-[95vh] w-[95vw]`}},defaultVariants:{size:`unset`}}),Ex={none:`p-0`,sm:`px-2 py-4`,md:`px-4 py-6`,lg:`px-6 py-8`,xl:`px-8 py-10`,"2xl":`px-10 py-12`},Dx=Tm.create(Vm),Ox=({children:e,isOpen:t,container:n,onClose:r,hasCloseButton:i=!1,title:o,size:s=`md`,className:c,isScrollable:l=!1,disableScroll:u=!0,padding:d=`none`,...f})=>{let h=rx(n);if(ox({key:`modal`,disableScroll:t&&u}),(0,p.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t&&r&&r()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t,r]),!h)return(0,m.jsx)(m.Fragment,{});let g=!!o,_=Ex[d||`none`];return(0,qt.createPortal)((0,m.jsx)(Tm.div,{className:`invisible fixed top-0 left-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-hidden bg-background/40 backdrop-blur`,animate:t?`visible`:`invisible`,variants:{visible:{opacity:1,visibility:`visible`,transition:{duration:.1,when:`beforeChildren`}},invisible:{opacity:0,visibility:`hidden`,transition:{duration:.1,when:`afterChildren`}}},onClick:e=>{e.stopPropagation(),r?.()},"aria-hidden":!t,children:(0,m.jsxs)(Dx,{onClick:e=>e.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:Tx({size:s,className:c}),role:`dialog`,"aria-modal":!0,roundedSize:`4xl`,padding:`none`,...f,children:[(0,m.jsxs)(`div`,{className:a(`relative flex-none px-4 pt-4`,i&&g?`flex items-start`:i?`flex justify-end`:g?`items-center`:`hidden`),children:[g&&(0,m.jsx)(xx,{className:`mb-2 ml-1 flex items-center justify-center font-bold text-lg`,children:o}),i&&(0,m.jsx)(Am,{variant:`hoverable`,color:`text`,label:`Close modal`,className:`ml-auto`,onClick:e=>{e.stopPropagation(),r?.()},Icon:ii,size:`icon-md`})]}),(0,m.jsx)(`div`,{className:a(`flex min-h-0 w-full flex-1 flex-col`,l===!0&&`overflow-auto`,l===`y`&&`overflow-y-auto overflow-x-hidden`,l===`x`&&`overflow-x-auto overflow-y-hidden`,!l&&`overflow-visible`),children:(0,m.jsx)(`div`,{className:a(`flex size-full flex-1 flex-col`,_),children:e})})]})}),h)},kx=zr(`relative z-0 flex size-full flex-row items-center gap-2`,{variants:{color:{primary:`border-primary text-primary`,secondary:`border-secondary text-secondary`,error:`border-error bg-error text-error`,neutral:`border-neutral text-neutral`,light:`border-white text-white`,dark:`border-neutral-800 text-neutral-800`,text:`border-text text-text`}},defaultVariants:{color:`primary`}}),Ax=zr(`absolute -z-1 rounded-lg duration-300 ease-in-out motion-reduce:transition-none`,{variants:{color:{primary:`bg-primary/10 aria-selected:text-text`,secondary:`bg-secondary/10 aria-selected:text-text`,error:`bg-error/10 aria-selected:text-text`,neutral:`bg-neutral/10 aria-selected:text-white/10`,light:`bg-white/10 aria-selected:text-black`,dark:`bg-neutral-800/10 aria-selected:text-white`,text:`bg-text/10 aria-selected:text-text-opposite`},orientation:{horizontal:`top-0 h-full w-auto transition-[left,width]`,vertical:`left-0 h-auto w-full transition-[top,height]`}},defaultVariants:{orientation:`horizontal`}}),jx=({tabs:e,selectedChoice:t,onTabClick:n,color:r=`primary`,hoverable:i=!1,orientation:o=`horizontal`,className:s})=>{let c=(0,p.useRef)([]),l=(0,p.useRef)(null),{choiceIndicatorPosition:u,scheduleMeasurement:d}=zm(c,{isHoverable:i,orientation:o});return(0,p.useEffect)(()=>{d()},[t]),(0,m.jsxs)(`div`,{className:a(kx({color:r}),s),"aria-orientation":o,"aria-multiselectable":`false`,role:`tablist`,children:[e.map((e,r)=>{let i=e.key,a=t===i;return(0,p.cloneElement)(e,{key:i??r,role:`tab`,onClick:t=>{e.props?.onClick?.(t),n?.(i)},"aria-selected":a,"data-active":a,tabIndex:a?0:-1,ref:e=>{c.current[r]=e}})}),u&&(0,m.jsx)(`div`,{className:a(Ax({color:r,orientation:o})),style:u,ref:l},`${t}${JSON.stringify(e.map(e=>e.key))}`)]})},Mx=({content:e,...t})=>{let[n,r]=(0,p.useState)(!1),[i,a]=(0,p.useState)(!1),{label:o}=Kt(`copy-button`),s=async()=>{try{a(!1);let t=typeof e==`function`?await e():e;await navigator.clipboard.writeText(t),r(!0)}catch(e){console.error(`Failed to copy text: `,e),a(!0)}};(0,p.useEffect)(()=>{if(n||i){let e=setTimeout(()=>{r(!1),a(!1)},1e3);return()=>clearTimeout(e)}},[n,i]);let c=()=>n?`Content copied to clipboard`:i?`Failed to copy content`:t.label??o.value;return(0,m.jsx)(Am,{Icon:n?ei:ti,onClick:s,variant:`hoverable`,color:`text`,size:`icon-sm`,tabIndex:0,title:c(),...t,label:c(),"aria-describedby":n?`copy-success`:i?`copy-error`:void 0})},Nx=(0,p.createContext)(null),Px=e=>{let t=(0,f.c)(3),n=(0,p.useContext)(Nx)??e,r=`unrollable-panel-button-${n}`,i=`unrollable-panel-${n}`,a;return t[0]!==r||t[1]!==i?(a={triggerId:r,panelId:i},t[0]=r,t[1]=i,t[2]=a):a=t[2],a},Fx=e=>{let{children:t,className:n,identifier:r,...i}=e,o=`${r}${(0,p.useId)()}`,{triggerId:s}=Px(o);return(0,m.jsx)(Nx,{value:o,children:(0,m.jsx)(`div`,{className:a(`group/popover relative flex cursor-pointer`,n),id:s,"aria-haspopup":!0,...i,children:t})})},Ix=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:i=`start`,yAlign:o=`below`,identifier:s,className:c,displayArrow:l=!0,...u})=>{let{triggerId:d,panelId:f}=Px(s);return(0,m.jsx)(Vm,{transparency:`xs`,role:`group`,"aria-hidden":t,"aria-labelledby":d,id:f,className:a(`absolute z-60 min-w-full rounded-md ring-1 ring-neutral`,i===`start`&&`left-0`,i===`center`&&`left-1/2 -translate-x-1/2`,i===`end`&&`right-0`,o===`below`&&`top-[calc(100%+1rem)]`,o===`above`&&`bottom-[calc(100%+1rem)]`,l&&`before:absolute before:z-[999] before:h-0 before:w-0 before:content-[""]`,l&&i===`start`&&`before:left-2`,l&&i===`center`&&`before:left-1/2 before:-translate-x-1/2`,l&&i===`end`&&`before:right-2`,l&&o===`below`&&`before:-top-2.5 before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral before:border-l-[10px] before:border-l-transparent`,l&&o===`above`&&`before:-bottom-2.5 before:border-t-[10px] before:border-t-neutral before:border-r-[10px] before:border-r-transparent before:border-l-[10px] before:border-l-transparent`,`overflow-x-visible opacity-0 transition-all duration-400 ease-in-out`,t===!1?`visible opacity-100 delay-800`:`invisible`,n&&`group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800`,r&&`group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800`,c),...u,children:e})};Fx.Detail=Ix;var Lx=16,Rx=16,zx=e=>(0,m.jsx)(Fx,{...e}),Bx=({xAlign:e=`start`,yAlign:t=`below`,...n})=>{let r=(0,p.useRef)(null),{triggerId:i}=Px(n.identifier),[a,o]=(0,p.useState)(e),[s,c]=(0,p.useState)(t),[l,u]=(0,p.useState)(void 0);return(0,p.useLayoutEffect)(()=>{let n=null,a=null,s=!1,l=()=>{let n=r.current,s=document.getElementById(i);if(!n||!s)return;let l=s.getBoundingClientRect(),d=window.innerWidth,f=window.innerHeight,p=d-l.left-Rx,m=l.right-Rx;u(Math.max(p,m));let h=n.classList.contains(`invisible`);h&&(n.style.visibility=`hidden`,n.classList.remove(`invisible`)),a=Fm(()=>{a=null;let r=n.getBoundingClientRect();h&&(n.style.visibility=``,n.classList.add(`invisible`));let i=t,s=f-l.bottom-Lx,u=l.top-Lx;t===`below`&&s<r.height?u>=r.height&&(i=`above`):t===`above`&&u<r.height&&s>=r.height&&(i=`below`);let p=e,m=d-l.left-Rx,g=l.right-Rx;e===`start`&&m<r.width?g>=r.width&&(p=`end`):e===`end`&&g<r.width&&m>=r.width&&(p=`start`),c(i),o(p)})},d=()=>{n||=Fm(()=>{n=null,l()})},f=()=>{s||(s=!0,window.addEventListener(`scroll`,d,{passive:!0,capture:!0})),d()},p=()=>{s&&(s=!1,window.removeEventListener(`scroll`,d,!0))},m=document.getElementById(i);m&&(m.addEventListener(`mouseenter`,f,{passive:!0}),m.addEventListener(`focusin`,f,{passive:!0}),m.addEventListener(`mouseleave`,p,{passive:!0}),m.addEventListener(`focusout`,p,{passive:!0}));let h=new ResizeObserver(()=>{s&&d()});return r.current&&h.observe(r.current),window.addEventListener(`resize`,d,{passive:!0}),()=>{n?.(),a?.(),m&&(m.removeEventListener(`mouseenter`,f),m.removeEventListener(`focusin`,f),m.removeEventListener(`mouseleave`,p),m.removeEventListener(`focusout`,p)),h.disconnect(),window.removeEventListener(`resize`,d),window.removeEventListener(`scroll`,d,!0)}},[i,e,t]),(0,m.jsx)(Ix,{...n,xAlign:a,yAlign:s,ref:r,style:{...n.style,maxWidth:l?`${l}px`:void 0}})},Vx=zx;Vx.Detail=Bx;export{Xr as $,u as $t,Hm as A,Ge as At,zf as B,ae as Bt,E_ as C,Ut as Ct,Ch as D,ut as Dt,C_ as E,St as Et,Dm as F,D as Ft,ci as G,O as Gt,Nf as H,fe as Ht,Tm as I,j as It,ai as J,de as Jt,si as K,re as Kt,Cm as L,ue as Lt,zm as M,M as Mt,jm as N,le as Nt,sh as O,ct as Ot,Am as P,k as Pt,Zr as Q,pe as Qt,wp as R,oe as Rt,w_ as S,Kt as St,x_ as T,Mt as Tt,Mf as U,ce as Ut,Pf as V,te as Vt,Jc as W,ee as Wt,ti as X,se as Xt,ii as Y,ie as Yt,ei as Z,E as Zt,T_ as _,pn as _t,yx as a,fr as at,O_ as b,F as bt,Sx as c,or as ct,ox as d,$n as dt,c as en,Yr as et,rx as f,Wn as ft,Cv as g,mn as gt,jy as h,On as ht,Ox as i,Er as it,Vm as j,ke as jt,th as k,lt as kt,Cx as l,Zn as lt,Qb as m,Vn as mt,Mx as n,Rr as nt,bx as o,cr as ot,nx as p,L as pt,oi as q,ne as qt,jx as r,Pr as rt,xx as s,z as st,Vx as t,s as tn,zr as tt,wx as u,ar as ut,b_ as v,ln as vt,y_ as w,Wt as wt,S_ as x,P as xt,v_ as y,an as yt,xp as z,A as zt};