@neurouter/server 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1000) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +10 -0
  3. package/dist/.tsbuildinfo +1 -0
  4. package/dist/app.d.ts +29 -0
  5. package/dist/app.d.ts.map +1 -0
  6. package/dist/app.js +79 -0
  7. package/dist/app.js.map +1 -0
  8. package/dist/console.d.ts +16 -0
  9. package/dist/console.d.ts.map +1 -0
  10. package/dist/console.js +149 -0
  11. package/dist/console.js.map +1 -0
  12. package/dist/controlplane/api/context.d.ts +64 -0
  13. package/dist/controlplane/api/context.d.ts.map +1 -0
  14. package/dist/controlplane/api/context.js +7 -0
  15. package/dist/controlplane/api/context.js.map +1 -0
  16. package/dist/controlplane/api/plugin.d.ts +8 -0
  17. package/dist/controlplane/api/plugin.d.ts.map +1 -0
  18. package/dist/controlplane/api/plugin.js +36 -0
  19. package/dist/controlplane/api/plugin.js.map +1 -0
  20. package/dist/controlplane/api/ports.d.ts +40 -0
  21. package/dist/controlplane/api/ports.d.ts.map +1 -0
  22. package/dist/controlplane/api/ports.js +2 -0
  23. package/dist/controlplane/api/ports.js.map +1 -0
  24. package/dist/controlplane/api/problem.d.ts +15 -0
  25. package/dist/controlplane/api/problem.d.ts.map +1 -0
  26. package/dist/controlplane/api/problem.js +80 -0
  27. package/dist/controlplane/api/problem.js.map +1 -0
  28. package/dist/controlplane/api/routes/audit.d.ts +6 -0
  29. package/dist/controlplane/api/routes/audit.d.ts.map +1 -0
  30. package/dist/controlplane/api/routes/audit.js +139 -0
  31. package/dist/controlplane/api/routes/audit.js.map +1 -0
  32. package/dist/controlplane/api/routes/auth.d.ts +10 -0
  33. package/dist/controlplane/api/routes/auth.d.ts.map +1 -0
  34. package/dist/controlplane/api/routes/auth.js +125 -0
  35. package/dist/controlplane/api/routes/auth.js.map +1 -0
  36. package/dist/controlplane/api/routes/environments.d.ts +5 -0
  37. package/dist/controlplane/api/routes/environments.d.ts.map +1 -0
  38. package/dist/controlplane/api/routes/environments.js +118 -0
  39. package/dist/controlplane/api/routes/environments.js.map +1 -0
  40. package/dist/controlplane/api/routes/evals.d.ts +5 -0
  41. package/dist/controlplane/api/routes/evals.d.ts.map +1 -0
  42. package/dist/controlplane/api/routes/evals.js +348 -0
  43. package/dist/controlplane/api/routes/evals.js.map +1 -0
  44. package/dist/controlplane/api/routes/inbox.d.ts +5 -0
  45. package/dist/controlplane/api/routes/inbox.d.ts.map +1 -0
  46. package/dist/controlplane/api/routes/inbox.js +226 -0
  47. package/dist/controlplane/api/routes/inbox.js.map +1 -0
  48. package/dist/controlplane/api/routes/keys.d.ts +5 -0
  49. package/dist/controlplane/api/routes/keys.d.ts.map +1 -0
  50. package/dist/controlplane/api/routes/keys.js +176 -0
  51. package/dist/controlplane/api/routes/keys.js.map +1 -0
  52. package/dist/controlplane/api/routes/metrics.d.ts +5 -0
  53. package/dist/controlplane/api/routes/metrics.d.ts.map +1 -0
  54. package/dist/controlplane/api/routes/metrics.js +197 -0
  55. package/dist/controlplane/api/routes/metrics.js.map +1 -0
  56. package/dist/controlplane/api/routes/overlays.d.ts +36 -0
  57. package/dist/controlplane/api/routes/overlays.d.ts.map +1 -0
  58. package/dist/controlplane/api/routes/overlays.js +244 -0
  59. package/dist/controlplane/api/routes/overlays.js.map +1 -0
  60. package/dist/controlplane/api/routes/public.d.ts +7 -0
  61. package/dist/controlplane/api/routes/public.d.ts.map +1 -0
  62. package/dist/controlplane/api/routes/public.js +71 -0
  63. package/dist/controlplane/api/routes/public.js.map +1 -0
  64. package/dist/controlplane/api/routes/servers.d.ts +45 -0
  65. package/dist/controlplane/api/routes/servers.d.ts.map +1 -0
  66. package/dist/controlplane/api/routes/servers.js +423 -0
  67. package/dist/controlplane/api/routes/servers.js.map +1 -0
  68. package/dist/controlplane/api/routes/settings.d.ts +21 -0
  69. package/dist/controlplane/api/routes/settings.d.ts.map +1 -0
  70. package/dist/controlplane/api/routes/settings.js +408 -0
  71. package/dist/controlplane/api/routes/settings.js.map +1 -0
  72. package/dist/controlplane/api/routes/tasks.d.ts +12 -0
  73. package/dist/controlplane/api/routes/tasks.d.ts.map +1 -0
  74. package/dist/controlplane/api/routes/tasks.js +144 -0
  75. package/dist/controlplane/api/routes/tasks.js.map +1 -0
  76. package/dist/controlplane/api/routes/tools.d.ts +14 -0
  77. package/dist/controlplane/api/routes/tools.d.ts.map +1 -0
  78. package/dist/controlplane/api/routes/tools.js +174 -0
  79. package/dist/controlplane/api/routes/tools.js.map +1 -0
  80. package/dist/controlplane/api/routes.d.ts +25 -0
  81. package/dist/controlplane/api/routes.d.ts.map +1 -0
  82. package/dist/controlplane/api/routes.js +43 -0
  83. package/dist/controlplane/api/routes.js.map +1 -0
  84. package/dist/controlplane/api/views.d.ts +53 -0
  85. package/dist/controlplane/api/views.d.ts.map +1 -0
  86. package/dist/controlplane/api/views.js +290 -0
  87. package/dist/controlplane/api/views.js.map +1 -0
  88. package/dist/controlplane/auth/guards.d.ts +40 -0
  89. package/dist/controlplane/auth/guards.d.ts.map +1 -0
  90. package/dist/controlplane/auth/guards.js +87 -0
  91. package/dist/controlplane/auth/guards.js.map +1 -0
  92. package/dist/controlplane/auth/local-link.d.ts +28 -0
  93. package/dist/controlplane/auth/local-link.d.ts.map +1 -0
  94. package/dist/controlplane/auth/local-link.js +41 -0
  95. package/dist/controlplane/auth/local-link.js.map +1 -0
  96. package/dist/controlplane/auth/login.d.ts +51 -0
  97. package/dist/controlplane/auth/login.d.ts.map +1 -0
  98. package/dist/controlplane/auth/login.js +115 -0
  99. package/dist/controlplane/auth/login.js.map +1 -0
  100. package/dist/controlplane/auth/oidc.d.ts +63 -0
  101. package/dist/controlplane/auth/oidc.d.ts.map +1 -0
  102. package/dist/controlplane/auth/oidc.js +76 -0
  103. package/dist/controlplane/auth/oidc.js.map +1 -0
  104. package/dist/controlplane/auth/sessions.d.ts +46 -0
  105. package/dist/controlplane/auth/sessions.d.ts.map +1 -0
  106. package/dist/controlplane/auth/sessions.js +65 -0
  107. package/dist/controlplane/auth/sessions.js.map +1 -0
  108. package/dist/controlplane/config-sync/reconcile.d.ts +88 -0
  109. package/dist/controlplane/config-sync/reconcile.d.ts.map +1 -0
  110. package/dist/controlplane/config-sync/reconcile.js +287 -0
  111. package/dist/controlplane/config-sync/reconcile.js.map +1 -0
  112. package/dist/controlplane/environments/environments.service.d.ts +46 -0
  113. package/dist/controlplane/environments/environments.service.d.ts.map +1 -0
  114. package/dist/controlplane/environments/environments.service.js +209 -0
  115. package/dist/controlplane/environments/environments.service.js.map +1 -0
  116. package/dist/controlplane/evals/evals.service.d.ts +126 -0
  117. package/dist/controlplane/evals/evals.service.d.ts.map +1 -0
  118. package/dist/controlplane/evals/evals.service.js +551 -0
  119. package/dist/controlplane/evals/evals.service.js.map +1 -0
  120. package/dist/controlplane/evals/model-keys.d.ts +37 -0
  121. package/dist/controlplane/evals/model-keys.d.ts.map +1 -0
  122. package/dist/controlplane/evals/model-keys.js +43 -0
  123. package/dist/controlplane/evals/model-keys.js.map +1 -0
  124. package/dist/controlplane/keys/api-key-format.d.ts +19 -0
  125. package/dist/controlplane/keys/api-key-format.d.ts.map +1 -0
  126. package/dist/controlplane/keys/api-key-format.js +39 -0
  127. package/dist/controlplane/keys/api-key-format.js.map +1 -0
  128. package/dist/controlplane/keys/api-keys.service.d.ts +42 -0
  129. package/dist/controlplane/keys/api-keys.service.d.ts.map +1 -0
  130. package/dist/controlplane/keys/api-keys.service.js +91 -0
  131. package/dist/controlplane/keys/api-keys.service.js.map +1 -0
  132. package/dist/controlplane/oauth/authorize.d.ts +101 -0
  133. package/dist/controlplane/oauth/authorize.d.ts.map +1 -0
  134. package/dist/controlplane/oauth/authorize.js +172 -0
  135. package/dist/controlplane/oauth/authorize.js.map +1 -0
  136. package/dist/controlplane/oauth/cimd.d.ts +52 -0
  137. package/dist/controlplane/oauth/cimd.d.ts.map +1 -0
  138. package/dist/controlplane/oauth/cimd.js +173 -0
  139. package/dist/controlplane/oauth/cimd.js.map +1 -0
  140. package/dist/controlplane/oauth/clients.service.d.ts +101 -0
  141. package/dist/controlplane/oauth/clients.service.d.ts.map +1 -0
  142. package/dist/controlplane/oauth/clients.service.js +269 -0
  143. package/dist/controlplane/oauth/clients.service.js.map +1 -0
  144. package/dist/controlplane/oauth/metadata.d.ts +27 -0
  145. package/dist/controlplane/oauth/metadata.d.ts.map +1 -0
  146. package/dist/controlplane/oauth/metadata.js +35 -0
  147. package/dist/controlplane/oauth/metadata.js.map +1 -0
  148. package/dist/controlplane/oauth/pkce.d.ts +8 -0
  149. package/dist/controlplane/oauth/pkce.d.ts.map +1 -0
  150. package/dist/controlplane/oauth/pkce.js +16 -0
  151. package/dist/controlplane/oauth/pkce.js.map +1 -0
  152. package/dist/controlplane/oauth/redirect-uri.d.ts +15 -0
  153. package/dist/controlplane/oauth/redirect-uri.d.ts.map +1 -0
  154. package/dist/controlplane/oauth/redirect-uri.js +61 -0
  155. package/dist/controlplane/oauth/redirect-uri.js.map +1 -0
  156. package/dist/controlplane/oauth/resource.d.ts +28 -0
  157. package/dist/controlplane/oauth/resource.d.ts.map +1 -0
  158. package/dist/controlplane/oauth/resource.js +49 -0
  159. package/dist/controlplane/oauth/resource.js.map +1 -0
  160. package/dist/controlplane/oauth/routes.d.ts +28 -0
  161. package/dist/controlplane/oauth/routes.d.ts.map +1 -0
  162. package/dist/controlplane/oauth/routes.js +191 -0
  163. package/dist/controlplane/oauth/routes.js.map +1 -0
  164. package/dist/controlplane/oauth/session.d.ts +36 -0
  165. package/dist/controlplane/oauth/session.d.ts.map +1 -0
  166. package/dist/controlplane/oauth/session.js +38 -0
  167. package/dist/controlplane/oauth/session.js.map +1 -0
  168. package/dist/controlplane/oauth/tokens.service.d.ts +105 -0
  169. package/dist/controlplane/oauth/tokens.service.d.ts.map +1 -0
  170. package/dist/controlplane/oauth/tokens.service.js +209 -0
  171. package/dist/controlplane/oauth/tokens.service.js.map +1 -0
  172. package/dist/controlplane/servers/builds.service.d.ts +54 -0
  173. package/dist/controlplane/servers/builds.service.d.ts.map +1 -0
  174. package/dist/controlplane/servers/builds.service.js +173 -0
  175. package/dist/controlplane/servers/builds.service.js.map +1 -0
  176. package/dist/controlplane/servers/fetch-spec.d.ts +13 -0
  177. package/dist/controlplane/servers/fetch-spec.d.ts.map +1 -0
  178. package/dist/controlplane/servers/fetch-spec.js +30 -0
  179. package/dist/controlplane/servers/fetch-spec.js.map +1 -0
  180. package/dist/controlplane/servers/servers.service.d.ts +87 -0
  181. package/dist/controlplane/servers/servers.service.d.ts.map +1 -0
  182. package/dist/controlplane/servers/servers.service.js +168 -0
  183. package/dist/controlplane/servers/servers.service.js.map +1 -0
  184. package/dist/controlplane/traces/traces.service.d.ts +38 -0
  185. package/dist/controlplane/traces/traces.service.d.ts.map +1 -0
  186. package/dist/controlplane/traces/traces.service.js +189 -0
  187. package/dist/controlplane/traces/traces.service.js.map +1 -0
  188. package/dist/controlplane/upstream-oauth/upstream-oauth.service.d.ts +70 -0
  189. package/dist/controlplane/upstream-oauth/upstream-oauth.service.d.ts.map +1 -0
  190. package/dist/controlplane/upstream-oauth/upstream-oauth.service.js +208 -0
  191. package/dist/controlplane/upstream-oauth/upstream-oauth.service.js.map +1 -0
  192. package/dist/controlplane/users/users.service.d.ts +33 -0
  193. package/dist/controlplane/users/users.service.d.ts.map +1 -0
  194. package/dist/controlplane/users/users.service.js +68 -0
  195. package/dist/controlplane/users/users.service.js.map +1 -0
  196. package/dist/dataplane/auth/authenticate.d.ts +58 -0
  197. package/dist/dataplane/auth/authenticate.d.ts.map +1 -0
  198. package/dist/dataplane/auth/authenticate.js +152 -0
  199. package/dist/dataplane/auth/authenticate.js.map +1 -0
  200. package/dist/dataplane/auth/external-jwt.d.ts +30 -0
  201. package/dist/dataplane/auth/external-jwt.d.ts.map +1 -0
  202. package/dist/dataplane/auth/external-jwt.js +78 -0
  203. package/dist/dataplane/auth/external-jwt.js.map +1 -0
  204. package/dist/dataplane/code/executor-health.d.ts +24 -0
  205. package/dist/dataplane/code/executor-health.d.ts.map +1 -0
  206. package/dist/dataplane/code/executor-health.js +49 -0
  207. package/dist/dataplane/code/executor-health.js.map +1 -0
  208. package/dist/dataplane/code/run-script.d.ts +90 -0
  209. package/dist/dataplane/code/run-script.d.ts.map +1 -0
  210. package/dist/dataplane/code/run-script.js +320 -0
  211. package/dist/dataplane/code/run-script.js.map +1 -0
  212. package/dist/dataplane/code/tokenize.d.ts +44 -0
  213. package/dist/dataplane/code/tokenize.d.ts.map +1 -0
  214. package/dist/dataplane/code/tokenize.js +267 -0
  215. package/dist/dataplane/code/tokenize.js.map +1 -0
  216. package/dist/dataplane/code/validate.d.ts +30 -0
  217. package/dist/dataplane/code/validate.d.ts.map +1 -0
  218. package/dist/dataplane/code/validate.js +94 -0
  219. package/dist/dataplane/code/validate.js.map +1 -0
  220. package/dist/dataplane/code/wrap.d.ts +20 -0
  221. package/dist/dataplane/code/wrap.d.ts.map +1 -0
  222. package/dist/dataplane/code/wrap.js +108 -0
  223. package/dist/dataplane/code/wrap.js.map +1 -0
  224. package/dist/dataplane/http/circuit-breaker.d.ts +23 -0
  225. package/dist/dataplane/http/circuit-breaker.d.ts.map +1 -0
  226. package/dist/dataplane/http/circuit-breaker.js +53 -0
  227. package/dist/dataplane/http/circuit-breaker.js.map +1 -0
  228. package/dist/dataplane/http/credentials.d.ts +59 -0
  229. package/dist/dataplane/http/credentials.d.ts.map +1 -0
  230. package/dist/dataplane/http/credentials.js +93 -0
  231. package/dist/dataplane/http/credentials.js.map +1 -0
  232. package/dist/dataplane/http/errors.d.ts +16 -0
  233. package/dist/dataplane/http/errors.d.ts.map +1 -0
  234. package/dist/dataplane/http/errors.js +32 -0
  235. package/dist/dataplane/http/errors.js.map +1 -0
  236. package/dist/dataplane/http/invoker.d.ts +56 -0
  237. package/dist/dataplane/http/invoker.d.ts.map +1 -0
  238. package/dist/dataplane/http/invoker.js +114 -0
  239. package/dist/dataplane/http/invoker.js.map +1 -0
  240. package/dist/dataplane/http/request-builder.d.ts +39 -0
  241. package/dist/dataplane/http/request-builder.d.ts.map +1 -0
  242. package/dist/dataplane/http/request-builder.js +162 -0
  243. package/dist/dataplane/http/request-builder.js.map +1 -0
  244. package/dist/dataplane/mcp/challenge.d.ts +14 -0
  245. package/dist/dataplane/mcp/challenge.d.ts.map +1 -0
  246. package/dist/dataplane/mcp/challenge.js +25 -0
  247. package/dist/dataplane/mcp/challenge.js.map +1 -0
  248. package/dist/dataplane/mcp/dispatch.d.ts +64 -0
  249. package/dist/dataplane/mcp/dispatch.d.ts.map +1 -0
  250. package/dist/dataplane/mcp/dispatch.js +165 -0
  251. package/dist/dataplane/mcp/dispatch.js.map +1 -0
  252. package/dist/dataplane/mcp/event-bus.d.ts +19 -0
  253. package/dist/dataplane/mcp/event-bus.d.ts.map +1 -0
  254. package/dist/dataplane/mcp/event-bus.js +39 -0
  255. package/dist/dataplane/mcp/event-bus.js.map +1 -0
  256. package/dist/dataplane/mcp/inflight.d.ts +66 -0
  257. package/dist/dataplane/mcp/inflight.d.ts.map +1 -0
  258. package/dist/dataplane/mcp/inflight.js +135 -0
  259. package/dist/dataplane/mcp/inflight.js.map +1 -0
  260. package/dist/dataplane/mcp/origin.d.ts +7 -0
  261. package/dist/dataplane/mcp/origin.d.ts.map +1 -0
  262. package/dist/dataplane/mcp/origin.js +27 -0
  263. package/dist/dataplane/mcp/origin.js.map +1 -0
  264. package/dist/dataplane/mcp/route.d.ts +43 -0
  265. package/dist/dataplane/mcp/route.d.ts.map +1 -0
  266. package/dist/dataplane/mcp/route.js +280 -0
  267. package/dist/dataplane/mcp/route.js.map +1 -0
  268. package/dist/dataplane/mcp/surface.d.ts +43 -0
  269. package/dist/dataplane/mcp/surface.d.ts.map +1 -0
  270. package/dist/dataplane/mcp/surface.js +133 -0
  271. package/dist/dataplane/mcp/surface.js.map +1 -0
  272. package/dist/dataplane/mcp/translate.d.ts +16 -0
  273. package/dist/dataplane/mcp/translate.d.ts.map +1 -0
  274. package/dist/dataplane/mcp/translate.js +33 -0
  275. package/dist/dataplane/mcp/translate.js.map +1 -0
  276. package/dist/dataplane/mock/mock-upstream.d.ts +23 -0
  277. package/dist/dataplane/mock/mock-upstream.d.ts.map +1 -0
  278. package/dist/dataplane/mock/mock-upstream.js +26 -0
  279. package/dist/dataplane/mock/mock-upstream.js.map +1 -0
  280. package/dist/dataplane/ops/ops.d.ts +66 -0
  281. package/dist/dataplane/ops/ops.d.ts.map +1 -0
  282. package/dist/dataplane/ops/ops.js +315 -0
  283. package/dist/dataplane/ops/ops.js.map +1 -0
  284. package/dist/dataplane/pipeline/arg-validate.d.ts +19 -0
  285. package/dist/dataplane/pipeline/arg-validate.d.ts.map +1 -0
  286. package/dist/dataplane/pipeline/arg-validate.js +61 -0
  287. package/dist/dataplane/pipeline/arg-validate.js.map +1 -0
  288. package/dist/dataplane/pipeline/context.d.ts +78 -0
  289. package/dist/dataplane/pipeline/context.d.ts.map +1 -0
  290. package/dist/dataplane/pipeline/context.js +13 -0
  291. package/dist/dataplane/pipeline/context.js.map +1 -0
  292. package/dist/dataplane/pipeline/errors.d.ts +53 -0
  293. package/dist/dataplane/pipeline/errors.d.ts.map +1 -0
  294. package/dist/dataplane/pipeline/errors.js +61 -0
  295. package/dist/dataplane/pipeline/errors.js.map +1 -0
  296. package/dist/dataplane/pipeline/pipeline.d.ts +128 -0
  297. package/dist/dataplane/pipeline/pipeline.d.ts.map +1 -0
  298. package/dist/dataplane/pipeline/pipeline.js +443 -0
  299. package/dist/dataplane/pipeline/pipeline.js.map +1 -0
  300. package/dist/dataplane/pipeline/policy.d.ts +24 -0
  301. package/dist/dataplane/pipeline/policy.d.ts.map +1 -0
  302. package/dist/dataplane/pipeline/policy.js +93 -0
  303. package/dist/dataplane/pipeline/policy.js.map +1 -0
  304. package/dist/dataplane/rate-limit/limiter.d.ts +42 -0
  305. package/dist/dataplane/rate-limit/limiter.d.ts.map +1 -0
  306. package/dist/dataplane/rate-limit/limiter.js +34 -0
  307. package/dist/dataplane/rate-limit/limiter.js.map +1 -0
  308. package/dist/dataplane/rate-limit/stores.d.ts +56 -0
  309. package/dist/dataplane/rate-limit/stores.d.ts.map +1 -0
  310. package/dist/dataplane/rate-limit/stores.js +95 -0
  311. package/dist/dataplane/rate-limit/stores.js.map +1 -0
  312. package/dist/dataplane/rate-limit/token-bucket.d.ts +19 -0
  313. package/dist/dataplane/rate-limit/token-bucket.d.ts.map +1 -0
  314. package/dist/dataplane/rate-limit/token-bucket.js +16 -0
  315. package/dist/dataplane/rate-limit/token-bucket.js.map +1 -0
  316. package/dist/dataplane/search/document.d.ts +22 -0
  317. package/dist/dataplane/search/document.d.ts.map +1 -0
  318. package/dist/dataplane/search/document.js +45 -0
  319. package/dist/dataplane/search/document.js.map +1 -0
  320. package/dist/dataplane/search/embed-worker.d.ts +2 -0
  321. package/dist/dataplane/search/embed-worker.d.ts.map +1 -0
  322. package/dist/dataplane/search/embed-worker.js +55 -0
  323. package/dist/dataplane/search/embed-worker.js.map +1 -0
  324. package/dist/dataplane/search/embedder.d.ts +113 -0
  325. package/dist/dataplane/search/embedder.d.ts.map +1 -0
  326. package/dist/dataplane/search/embedder.js +216 -0
  327. package/dist/dataplane/search/embedder.js.map +1 -0
  328. package/dist/dataplane/search/hybrid.d.ts +28 -0
  329. package/dist/dataplane/search/hybrid.d.ts.map +1 -0
  330. package/dist/dataplane/search/hybrid.js +45 -0
  331. package/dist/dataplane/search/hybrid.js.map +1 -0
  332. package/dist/dataplane/search/indexer.d.ts +62 -0
  333. package/dist/dataplane/search/indexer.d.ts.map +1 -0
  334. package/dist/dataplane/search/indexer.js +105 -0
  335. package/dist/dataplane/search/indexer.js.map +1 -0
  336. package/dist/dataplane/search/keyword-index.d.ts +26 -0
  337. package/dist/dataplane/search/keyword-index.d.ts.map +1 -0
  338. package/dist/dataplane/search/keyword-index.js +60 -0
  339. package/dist/dataplane/search/keyword-index.js.map +1 -0
  340. package/dist/dataplane/search/model-profiles.d.ts +12 -0
  341. package/dist/dataplane/search/model-profiles.d.ts.map +1 -0
  342. package/dist/dataplane/search/model-profiles.js +12 -0
  343. package/dist/dataplane/search/model-profiles.js.map +1 -0
  344. package/dist/dataplane/search/search.service.d.ts +39 -0
  345. package/dist/dataplane/search/search.service.d.ts.map +1 -0
  346. package/dist/dataplane/search/search.service.js +69 -0
  347. package/dist/dataplane/search/search.service.js.map +1 -0
  348. package/dist/dataplane/search/suggest.d.ts +15 -0
  349. package/dist/dataplane/search/suggest.d.ts.map +1 -0
  350. package/dist/dataplane/search/suggest.js +76 -0
  351. package/dist/dataplane/search/suggest.js.map +1 -0
  352. package/dist/dataplane/search/vector-index.d.ts +49 -0
  353. package/dist/dataplane/search/vector-index.d.ts.map +1 -0
  354. package/dist/dataplane/search/vector-index.js +72 -0
  355. package/dist/dataplane/search/vector-index.js.map +1 -0
  356. package/dist/dataplane/shaping/result-pages.d.ts +19 -0
  357. package/dist/dataplane/shaping/result-pages.d.ts.map +1 -0
  358. package/dist/dataplane/shaping/result-pages.js +37 -0
  359. package/dist/dataplane/shaping/result-pages.js.map +1 -0
  360. package/dist/dataplane/shaping/sanitize.d.ts +6 -0
  361. package/dist/dataplane/shaping/sanitize.d.ts.map +1 -0
  362. package/dist/dataplane/shaping/sanitize.js +31 -0
  363. package/dist/dataplane/shaping/sanitize.js.map +1 -0
  364. package/dist/dataplane/tasks/tracker.d.ts +60 -0
  365. package/dist/dataplane/tasks/tracker.d.ts.map +1 -0
  366. package/dist/dataplane/tasks/tracker.js +178 -0
  367. package/dist/dataplane/tasks/tracker.js.map +1 -0
  368. package/dist/dataplane/tasks/usage.d.ts +8 -0
  369. package/dist/dataplane/tasks/usage.d.ts.map +1 -0
  370. package/dist/dataplane/tasks/usage.js +35 -0
  371. package/dist/dataplane/tasks/usage.js.map +1 -0
  372. package/dist/deps.d.ts +133 -0
  373. package/dist/deps.d.ts.map +1 -0
  374. package/dist/deps.js +356 -0
  375. package/dist/deps.js.map +1 -0
  376. package/dist/health/routes.d.ts +22 -0
  377. package/dist/health/routes.d.ts.map +1 -0
  378. package/dist/health/routes.js +40 -0
  379. package/dist/health/routes.js.map +1 -0
  380. package/dist/index.d.ts +8 -0
  381. package/dist/index.d.ts.map +1 -0
  382. package/dist/index.js +8 -0
  383. package/dist/index.js.map +1 -0
  384. package/dist/instrumentation.d.ts +10 -0
  385. package/dist/instrumentation.d.ts.map +1 -0
  386. package/dist/instrumentation.js +72 -0
  387. package/dist/instrumentation.js.map +1 -0
  388. package/dist/jobs.d.ts +5 -0
  389. package/dist/jobs.d.ts.map +1 -0
  390. package/dist/jobs.js +96 -0
  391. package/dist/jobs.js.map +1 -0
  392. package/dist/kernel/audit/archive/azure.d.ts +42 -0
  393. package/dist/kernel/audit/archive/azure.d.ts.map +1 -0
  394. package/dist/kernel/audit/archive/azure.js +80 -0
  395. package/dist/kernel/audit/archive/azure.js.map +1 -0
  396. package/dist/kernel/audit/archive/gcs.d.ts +27 -0
  397. package/dist/kernel/audit/archive/gcs.d.ts.map +1 -0
  398. package/dist/kernel/audit/archive/gcs.js +42 -0
  399. package/dist/kernel/audit/archive/gcs.js.map +1 -0
  400. package/dist/kernel/audit/archive/index.d.ts +20 -0
  401. package/dist/kernel/audit/archive/index.d.ts.map +1 -0
  402. package/dist/kernel/audit/archive/index.js +90 -0
  403. package/dist/kernel/audit/archive/index.js.map +1 -0
  404. package/dist/kernel/audit/archive/local-fs.d.ts +10 -0
  405. package/dist/kernel/audit/archive/local-fs.d.ts.map +1 -0
  406. package/dist/kernel/audit/archive/local-fs.js +24 -0
  407. package/dist/kernel/audit/archive/local-fs.js.map +1 -0
  408. package/dist/kernel/audit/archive/s3.d.ts +49 -0
  409. package/dist/kernel/audit/archive/s3.d.ts.map +1 -0
  410. package/dist/kernel/audit/archive/s3.js +85 -0
  411. package/dist/kernel/audit/archive/s3.js.map +1 -0
  412. package/dist/kernel/audit/archive/store.d.ts +34 -0
  413. package/dist/kernel/audit/archive/store.d.ts.map +1 -0
  414. package/dist/kernel/audit/archive/store.js +27 -0
  415. package/dist/kernel/audit/archive/store.js.map +1 -0
  416. package/dist/kernel/audit/chain.d.ts +33 -0
  417. package/dist/kernel/audit/chain.d.ts.map +1 -0
  418. package/dist/kernel/audit/chain.js +64 -0
  419. package/dist/kernel/audit/chain.js.map +1 -0
  420. package/dist/kernel/audit/checkpoints.d.ts +30 -0
  421. package/dist/kernel/audit/checkpoints.d.ts.map +1 -0
  422. package/dist/kernel/audit/checkpoints.js +33 -0
  423. package/dist/kernel/audit/checkpoints.js.map +1 -0
  424. package/dist/kernel/audit/export.d.ts +14 -0
  425. package/dist/kernel/audit/export.d.ts.map +1 -0
  426. package/dist/kernel/audit/export.js +88 -0
  427. package/dist/kernel/audit/export.js.map +1 -0
  428. package/dist/kernel/audit/partitions.d.ts +29 -0
  429. package/dist/kernel/audit/partitions.d.ts.map +1 -0
  430. package/dist/kernel/audit/partitions.js +58 -0
  431. package/dist/kernel/audit/partitions.js.map +1 -0
  432. package/dist/kernel/audit/query.d.ts +28 -0
  433. package/dist/kernel/audit/query.d.ts.map +1 -0
  434. package/dist/kernel/audit/query.js +114 -0
  435. package/dist/kernel/audit/query.js.map +1 -0
  436. package/dist/kernel/audit/recorder.d.ts +53 -0
  437. package/dist/kernel/audit/recorder.d.ts.map +1 -0
  438. package/dist/kernel/audit/recorder.js +71 -0
  439. package/dist/kernel/audit/recorder.js.map +1 -0
  440. package/dist/kernel/audit/redact.d.ts +69 -0
  441. package/dist/kernel/audit/redact.d.ts.map +1 -0
  442. package/dist/kernel/audit/redact.js +202 -0
  443. package/dist/kernel/audit/redact.js.map +1 -0
  444. package/dist/kernel/audit/redaction-rules.service.d.ts +34 -0
  445. package/dist/kernel/audit/redaction-rules.service.d.ts.map +1 -0
  446. package/dist/kernel/audit/redaction-rules.service.js +53 -0
  447. package/dist/kernel/audit/redaction-rules.service.js.map +1 -0
  448. package/dist/kernel/audit/retention.d.ts +54 -0
  449. package/dist/kernel/audit/retention.d.ts.map +1 -0
  450. package/dist/kernel/audit/retention.js +119 -0
  451. package/dist/kernel/audit/retention.js.map +1 -0
  452. package/dist/kernel/audit/sinks/dispatcher.d.ts +38 -0
  453. package/dist/kernel/audit/sinks/dispatcher.d.ts.map +1 -0
  454. package/dist/kernel/audit/sinks/dispatcher.js +68 -0
  455. package/dist/kernel/audit/sinks/dispatcher.js.map +1 -0
  456. package/dist/kernel/audit/sinks/otel-logs.d.ts +25 -0
  457. package/dist/kernel/audit/sinks/otel-logs.d.ts.map +1 -0
  458. package/dist/kernel/audit/sinks/otel-logs.js +51 -0
  459. package/dist/kernel/audit/sinks/otel-logs.js.map +1 -0
  460. package/dist/kernel/audit/sinks/sink.d.ts +14 -0
  461. package/dist/kernel/audit/sinks/sink.d.ts.map +1 -0
  462. package/dist/kernel/audit/sinks/sink.js +9 -0
  463. package/dist/kernel/audit/sinks/sink.js.map +1 -0
  464. package/dist/kernel/audit/sinks/webhook.d.ts +29 -0
  465. package/dist/kernel/audit/sinks/webhook.d.ts.map +1 -0
  466. package/dist/kernel/audit/sinks/webhook.js +49 -0
  467. package/dist/kernel/audit/sinks/webhook.js.map +1 -0
  468. package/dist/kernel/audit/store.d.ts +158 -0
  469. package/dist/kernel/audit/store.d.ts.map +1 -0
  470. package/dist/kernel/audit/store.js +155 -0
  471. package/dist/kernel/audit/store.js.map +1 -0
  472. package/dist/kernel/audit/types.d.ts +136 -0
  473. package/dist/kernel/audit/types.d.ts.map +1 -0
  474. package/dist/kernel/audit/types.js +2 -0
  475. package/dist/kernel/audit/types.js.map +1 -0
  476. package/dist/kernel/audit/verify.d.ts +22 -0
  477. package/dist/kernel/audit/verify.d.ts.map +1 -0
  478. package/dist/kernel/audit/verify.js +96 -0
  479. package/dist/kernel/audit/verify.js.map +1 -0
  480. package/dist/kernel/audit/writer.d.ts +85 -0
  481. package/dist/kernel/audit/writer.d.ts.map +1 -0
  482. package/dist/kernel/audit/writer.js +255 -0
  483. package/dist/kernel/audit/writer.js.map +1 -0
  484. package/dist/kernel/config/env.d.ts +119 -0
  485. package/dist/kernel/config/env.d.ts.map +1 -0
  486. package/dist/kernel/config/env.js +173 -0
  487. package/dist/kernel/config/env.js.map +1 -0
  488. package/dist/kernel/config/load.d.ts +51 -0
  489. package/dist/kernel/config/load.d.ts.map +1 -0
  490. package/dist/kernel/config/load.js +102 -0
  491. package/dist/kernel/config/load.js.map +1 -0
  492. package/dist/kernel/coordination/memory.d.ts +20 -0
  493. package/dist/kernel/coordination/memory.d.ts.map +1 -0
  494. package/dist/kernel/coordination/memory.js +92 -0
  495. package/dist/kernel/coordination/memory.js.map +1 -0
  496. package/dist/kernel/coordination/postgres.d.ts +47 -0
  497. package/dist/kernel/coordination/postgres.d.ts.map +1 -0
  498. package/dist/kernel/coordination/postgres.js +111 -0
  499. package/dist/kernel/coordination/postgres.js.map +1 -0
  500. package/dist/kernel/coordination/types.d.ts +37 -0
  501. package/dist/kernel/coordination/types.d.ts.map +1 -0
  502. package/dist/kernel/coordination/types.js +2 -0
  503. package/dist/kernel/coordination/types.js.map +1 -0
  504. package/dist/kernel/coordination/wait.d.ts +4 -0
  505. package/dist/kernel/coordination/wait.d.ts.map +1 -0
  506. package/dist/kernel/coordination/wait.js +38 -0
  507. package/dist/kernel/coordination/wait.js.map +1 -0
  508. package/dist/kernel/db/columns.d.ts +25 -0
  509. package/dist/kernel/db/columns.d.ts.map +1 -0
  510. package/dist/kernel/db/columns.js +32 -0
  511. package/dist/kernel/db/columns.js.map +1 -0
  512. package/dist/kernel/db/empty-in-plugin.d.ts +7 -0
  513. package/dist/kernel/db/empty-in-plugin.d.ts.map +1 -0
  514. package/dist/kernel/db/empty-in-plugin.js +28 -0
  515. package/dist/kernel/db/empty-in-plugin.js.map +1 -0
  516. package/dist/kernel/db/index.d.ts +67 -0
  517. package/dist/kernel/db/index.d.ts.map +1 -0
  518. package/dist/kernel/db/index.js +72 -0
  519. package/dist/kernel/db/index.js.map +1 -0
  520. package/dist/kernel/db/migrations/audit/0006_audit.d.ts +7 -0
  521. package/dist/kernel/db/migrations/audit/0006_audit.d.ts.map +1 -0
  522. package/dist/kernel/db/migrations/audit/0006_audit.js +125 -0
  523. package/dist/kernel/db/migrations/audit/0006_audit.js.map +1 -0
  524. package/dist/kernel/db/migrations/audit/0007_metrics.d.ts +6 -0
  525. package/dist/kernel/db/migrations/audit/0007_metrics.d.ts.map +1 -0
  526. package/dist/kernel/db/migrations/audit/0007_metrics.js +38 -0
  527. package/dist/kernel/db/migrations/audit/0007_metrics.js.map +1 -0
  528. package/dist/kernel/db/migrations/index.d.ts +10 -0
  529. package/dist/kernel/db/migrations/index.d.ts.map +1 -0
  530. package/dist/kernel/db/migrations/index.js +15 -0
  531. package/dist/kernel/db/migrations/index.js.map +1 -0
  532. package/dist/kernel/db/migrations/main/0001_core.d.ts +4 -0
  533. package/dist/kernel/db/migrations/main/0001_core.d.ts.map +1 -0
  534. package/dist/kernel/db/migrations/main/0001_core.js +178 -0
  535. package/dist/kernel/db/migrations/main/0001_core.js.map +1 -0
  536. package/dist/kernel/db/migrations/main/0002_servers.d.ts +4 -0
  537. package/dist/kernel/db/migrations/main/0002_servers.d.ts.map +1 -0
  538. package/dist/kernel/db/migrations/main/0002_servers.js +240 -0
  539. package/dist/kernel/db/migrations/main/0002_servers.js.map +1 -0
  540. package/dist/kernel/db/migrations/main/0003_auth.d.ts +4 -0
  541. package/dist/kernel/db/migrations/main/0003_auth.d.ts.map +1 -0
  542. package/dist/kernel/db/migrations/main/0003_auth.js +125 -0
  543. package/dist/kernel/db/migrations/main/0003_auth.js.map +1 -0
  544. package/dist/kernel/db/migrations/main/0004_ops.d.ts +4 -0
  545. package/dist/kernel/db/migrations/main/0004_ops.d.ts.map +1 -0
  546. package/dist/kernel/db/migrations/main/0004_ops.js +196 -0
  547. package/dist/kernel/db/migrations/main/0004_ops.js.map +1 -0
  548. package/dist/kernel/db/migrations/main/0005_evals.d.ts +4 -0
  549. package/dist/kernel/db/migrations/main/0005_evals.d.ts.map +1 -0
  550. package/dist/kernel/db/migrations/main/0005_evals.js +117 -0
  551. package/dist/kernel/db/migrations/main/0005_evals.js.map +1 -0
  552. package/dist/kernel/db/migrations/types.d.ts +17 -0
  553. package/dist/kernel/db/migrations/types.d.ts.map +1 -0
  554. package/dist/kernel/db/migrations/types.js +7 -0
  555. package/dist/kernel/db/migrations/types.js.map +1 -0
  556. package/dist/kernel/db/migrator.d.ts +29 -0
  557. package/dist/kernel/db/migrator.d.ts.map +1 -0
  558. package/dist/kernel/db/migrator.js +64 -0
  559. package/dist/kernel/db/migrator.js.map +1 -0
  560. package/dist/kernel/db/postgres.d.ts +35 -0
  561. package/dist/kernel/db/postgres.d.ts.map +1 -0
  562. package/dist/kernel/db/postgres.js +44 -0
  563. package/dist/kernel/db/postgres.js.map +1 -0
  564. package/dist/kernel/db/schema.d.ts +936 -0
  565. package/dist/kernel/db/schema.d.ts.map +1 -0
  566. package/dist/kernel/db/schema.js +61 -0
  567. package/dist/kernel/db/schema.js.map +1 -0
  568. package/dist/kernel/db/sqlite.d.ts +20 -0
  569. package/dist/kernel/db/sqlite.d.ts.map +1 -0
  570. package/dist/kernel/db/sqlite.js +31 -0
  571. package/dist/kernel/db/sqlite.js.map +1 -0
  572. package/dist/kernel/db/tools-fts.d.ts +11 -0
  573. package/dist/kernel/db/tools-fts.d.ts.map +1 -0
  574. package/dist/kernel/db/tools-fts.js +17 -0
  575. package/dist/kernel/db/tools-fts.js.map +1 -0
  576. package/dist/kernel/db/url.d.ts +17 -0
  577. package/dist/kernel/db/url.d.ts.map +1 -0
  578. package/dist/kernel/db/url.js +30 -0
  579. package/dist/kernel/db/url.js.map +1 -0
  580. package/dist/kernel/jobs/jobs.service.d.ts +24 -0
  581. package/dist/kernel/jobs/jobs.service.d.ts.map +1 -0
  582. package/dist/kernel/jobs/jobs.service.js +65 -0
  583. package/dist/kernel/jobs/jobs.service.js.map +1 -0
  584. package/dist/kernel/jobs/scheduler.d.ts +34 -0
  585. package/dist/kernel/jobs/scheduler.d.ts.map +1 -0
  586. package/dist/kernel/jobs/scheduler.js +70 -0
  587. package/dist/kernel/jobs/scheduler.js.map +1 -0
  588. package/dist/kernel/lib/clock.d.ts +11 -0
  589. package/dist/kernel/lib/clock.d.ts.map +1 -0
  590. package/dist/kernel/lib/clock.js +15 -0
  591. package/dist/kernel/lib/clock.js.map +1 -0
  592. package/dist/kernel/lib/crypto.d.ts +12 -0
  593. package/dist/kernel/lib/crypto.d.ts.map +1 -0
  594. package/dist/kernel/lib/crypto.js +48 -0
  595. package/dist/kernel/lib/crypto.js.map +1 -0
  596. package/dist/kernel/lib/errors.d.ts +29 -0
  597. package/dist/kernel/lib/errors.d.ts.map +1 -0
  598. package/dist/kernel/lib/errors.js +40 -0
  599. package/dist/kernel/lib/errors.js.map +1 -0
  600. package/dist/kernel/lib/histogram.d.ts +28 -0
  601. package/dist/kernel/lib/histogram.d.ts.map +1 -0
  602. package/dist/kernel/lib/histogram.js +70 -0
  603. package/dist/kernel/lib/histogram.js.map +1 -0
  604. package/dist/kernel/lib/ids.d.ts +3 -0
  605. package/dist/kernel/lib/ids.d.ts.map +1 -0
  606. package/dist/kernel/lib/ids.js +6 -0
  607. package/dist/kernel/lib/ids.js.map +1 -0
  608. package/dist/kernel/lib/jcs.d.ts +5 -0
  609. package/dist/kernel/lib/jcs.d.ts.map +1 -0
  610. package/dist/kernel/lib/jcs.js +14 -0
  611. package/dist/kernel/lib/jcs.js.map +1 -0
  612. package/dist/kernel/lib/json.d.ts +9 -0
  613. package/dist/kernel/lib/json.d.ts.map +1 -0
  614. package/dist/kernel/lib/json.js +21 -0
  615. package/dist/kernel/lib/json.js.map +1 -0
  616. package/dist/kernel/lib/keyset.d.ts +25 -0
  617. package/dist/kernel/lib/keyset.d.ts.map +1 -0
  618. package/dist/kernel/lib/keyset.js +36 -0
  619. package/dist/kernel/lib/keyset.js.map +1 -0
  620. package/dist/kernel/lib/logger.d.ts +12 -0
  621. package/dist/kernel/lib/logger.d.ts.map +1 -0
  622. package/dist/kernel/lib/logger.js +41 -0
  623. package/dist/kernel/lib/logger.js.map +1 -0
  624. package/dist/kernel/lib/net/safe-fetch.d.ts +36 -0
  625. package/dist/kernel/lib/net/safe-fetch.d.ts.map +1 -0
  626. package/dist/kernel/lib/net/safe-fetch.js +106 -0
  627. package/dist/kernel/lib/net/safe-fetch.js.map +1 -0
  628. package/dist/kernel/lib/net/ssrf-guard.d.ts +30 -0
  629. package/dist/kernel/lib/net/ssrf-guard.d.ts.map +1 -0
  630. package/dist/kernel/lib/net/ssrf-guard.js +78 -0
  631. package/dist/kernel/lib/net/ssrf-guard.js.map +1 -0
  632. package/dist/kernel/lib/pagination.d.ts +14 -0
  633. package/dist/kernel/lib/pagination.d.ts.map +1 -0
  634. package/dist/kernel/lib/pagination.js +40 -0
  635. package/dist/kernel/lib/pagination.js.map +1 -0
  636. package/dist/kernel/observability/metrics.d.ts +53 -0
  637. package/dist/kernel/observability/metrics.d.ts.map +1 -0
  638. package/dist/kernel/observability/metrics.js +95 -0
  639. package/dist/kernel/observability/metrics.js.map +1 -0
  640. package/dist/kernel/observability/tracing.d.ts +32 -0
  641. package/dist/kernel/observability/tracing.d.ts.map +1 -0
  642. package/dist/kernel/observability/tracing.js +116 -0
  643. package/dist/kernel/observability/tracing.js.map +1 -0
  644. package/dist/kernel/principal.d.ts +16 -0
  645. package/dist/kernel/principal.d.ts.map +1 -0
  646. package/dist/kernel/principal.js +9 -0
  647. package/dist/kernel/principal.js.map +1 -0
  648. package/dist/kernel/runtime-config.d.ts +194 -0
  649. package/dist/kernel/runtime-config.d.ts.map +1 -0
  650. package/dist/kernel/runtime-config.js +192 -0
  651. package/dist/kernel/runtime-config.js.map +1 -0
  652. package/dist/kernel/secrets/builtin.provider.d.ts +26 -0
  653. package/dist/kernel/secrets/builtin.provider.d.ts.map +1 -0
  654. package/dist/kernel/secrets/builtin.provider.js +65 -0
  655. package/dist/kernel/secrets/builtin.provider.js.map +1 -0
  656. package/dist/kernel/secrets/envelope.d.ts +16 -0
  657. package/dist/kernel/secrets/envelope.d.ts.map +1 -0
  658. package/dist/kernel/secrets/envelope.js +44 -0
  659. package/dist/kernel/secrets/envelope.js.map +1 -0
  660. package/dist/kernel/secrets/envelope.service.d.ts +38 -0
  661. package/dist/kernel/secrets/envelope.service.d.ts.map +1 -0
  662. package/dist/kernel/secrets/envelope.service.js +86 -0
  663. package/dist/kernel/secrets/envelope.service.js.map +1 -0
  664. package/dist/kernel/secrets/keyring.d.ts +30 -0
  665. package/dist/kernel/secrets/keyring.d.ts.map +1 -0
  666. package/dist/kernel/secrets/keyring.js +32 -0
  667. package/dist/kernel/secrets/keyring.js.map +1 -0
  668. package/dist/kernel/secrets/named-secrets.d.ts +33 -0
  669. package/dist/kernel/secrets/named-secrets.d.ts.map +1 -0
  670. package/dist/kernel/secrets/named-secrets.js +63 -0
  671. package/dist/kernel/secrets/named-secrets.js.map +1 -0
  672. package/dist/kernel/secrets/provider.d.ts +17 -0
  673. package/dist/kernel/secrets/provider.d.ts.map +1 -0
  674. package/dist/kernel/secrets/provider.js +2 -0
  675. package/dist/kernel/secrets/provider.js.map +1 -0
  676. package/dist/kernel/secrets/rotation.d.ts +25 -0
  677. package/dist/kernel/secrets/rotation.d.ts.map +1 -0
  678. package/dist/kernel/secrets/rotation.js +32 -0
  679. package/dist/kernel/secrets/rotation.js.map +1 -0
  680. package/dist/kernel/settings/settings.service.d.ts +98 -0
  681. package/dist/kernel/settings/settings.service.d.ts.map +1 -0
  682. package/dist/kernel/settings/settings.service.js +92 -0
  683. package/dist/kernel/settings/settings.service.js.map +1 -0
  684. package/dist/main.d.ts +2 -0
  685. package/dist/main.d.ts.map +1 -0
  686. package/dist/main.js +39 -0
  687. package/dist/main.js.map +1 -0
  688. package/dist/routes.d.ts +5 -0
  689. package/dist/routes.d.ts.map +1 -0
  690. package/dist/routes.js +58 -0
  691. package/dist/routes.js.map +1 -0
  692. package/dist/scripts/fetch-model.d.ts +2 -0
  693. package/dist/scripts/fetch-model.d.ts.map +1 -0
  694. package/dist/scripts/fetch-model.js +34 -0
  695. package/dist/scripts/fetch-model.js.map +1 -0
  696. package/dist/scripts/gen-schema.d.ts +2 -0
  697. package/dist/scripts/gen-schema.d.ts.map +1 -0
  698. package/dist/scripts/gen-schema.js +71 -0
  699. package/dist/scripts/gen-schema.js.map +1 -0
  700. package/dist/scripts/keys.d.ts +2 -0
  701. package/dist/scripts/keys.d.ts.map +1 -0
  702. package/dist/scripts/keys.js +24 -0
  703. package/dist/scripts/keys.js.map +1 -0
  704. package/dist/scripts/migrate.d.ts +2 -0
  705. package/dist/scripts/migrate.d.ts.map +1 -0
  706. package/dist/scripts/migrate.js +45 -0
  707. package/dist/scripts/migrate.js.map +1 -0
  708. package/dist/server.d.ts +30 -0
  709. package/dist/server.d.ts.map +1 -0
  710. package/dist/server.js +129 -0
  711. package/dist/server.js.map +1 -0
  712. package/dist/version.d.ts +3 -0
  713. package/dist/version.d.ts.map +1 -0
  714. package/dist/version.js +13 -0
  715. package/dist/version.js.map +1 -0
  716. package/dist/web/static.d.ts +30 -0
  717. package/dist/web/static.d.ts.map +1 -0
  718. package/dist/web/static.js +65 -0
  719. package/dist/web/static.js.map +1 -0
  720. package/package.json +106 -4
  721. package/web-dist/assets/CompositeItem-B2Bd2eM-.js +2 -0
  722. package/web-dist/assets/CompositeItem-B2Bd2eM-.js.map +1 -0
  723. package/web-dist/assets/DialogRoot-h0udFiba.js +2 -0
  724. package/web-dist/assets/DialogRoot-h0udFiba.js.map +1 -0
  725. package/web-dist/assets/DialogTitle-fTXvJGbH.js +2 -0
  726. package/web-dist/assets/DialogTitle-fTXvJGbH.js.map +1 -0
  727. package/web-dist/assets/DirectionContext-CRBE3EOa.js +2 -0
  728. package/web-dist/assets/DirectionContext-CRBE3EOa.js.map +1 -0
  729. package/web-dist/assets/FieldItemContext-B4r08RkZ.js +2 -0
  730. package/web-dist/assets/FieldItemContext-B4r08RkZ.js.map +1 -0
  731. package/web-dist/assets/FloatingPortal-D_eDEbvZ.js +2 -0
  732. package/web-dist/assets/FloatingPortal-D_eDEbvZ.js.map +1 -0
  733. package/web-dist/assets/FloatingPortalLite-DWlDzoqv.js +2 -0
  734. package/web-dist/assets/FloatingPortalLite-DWlDzoqv.js.map +1 -0
  735. package/web-dist/assets/Separator-DDDyVkeP.js +2 -0
  736. package/web-dist/assets/Separator-DDDyVkeP.js.map +1 -0
  737. package/web-dist/assets/_app-BY6-IpyI.js +2 -0
  738. package/web-dist/assets/_app-BY6-IpyI.js.map +1 -0
  739. package/web-dist/assets/_app-Ba10rJVa.js +2 -0
  740. package/web-dist/assets/_app-Ba10rJVa.js.map +1 -0
  741. package/web-dist/assets/_app-Bv2dBVot.js +2 -0
  742. package/web-dist/assets/_app-Bv2dBVot.js.map +1 -0
  743. package/web-dist/assets/_groupId-ENiG99V5.js +2 -0
  744. package/web-dist/assets/_groupId-ENiG99V5.js.map +1 -0
  745. package/web-dist/assets/_issueId-CAHjIiZ8.js +2 -0
  746. package/web-dist/assets/_issueId-CAHjIiZ8.js.map +1 -0
  747. package/web-dist/assets/_runId-XmmZmpWa.js +4 -0
  748. package/web-dist/assets/_runId-XmmZmpWa.js.map +1 -0
  749. package/web-dist/assets/_serverId-C9y6ztaL.js +2 -0
  750. package/web-dist/assets/_serverId-C9y6ztaL.js.map +1 -0
  751. package/web-dist/assets/_taskId-D8fVBV_H.js +2 -0
  752. package/web-dist/assets/_taskId-D8fVBV_H.js.map +1 -0
  753. package/web-dist/assets/_toolId-CnbF7zls.js +6 -0
  754. package/web-dist/assets/_toolId-CnbF7zls.js.map +1 -0
  755. package/web-dist/assets/alert-OPOFnW2X.js +2 -0
  756. package/web-dist/assets/alert-OPOFnW2X.js.map +1 -0
  757. package/web-dist/assets/api-client-CnTzbAbK.js +56 -0
  758. package/web-dist/assets/api-client-CnTzbAbK.js.map +1 -0
  759. package/web-dist/assets/appearance-D7nZLK7y.js +2 -0
  760. package/web-dist/assets/appearance-D7nZLK7y.js.map +1 -0
  761. package/web-dist/assets/arrow-up-Dop2Zfy9.js +2 -0
  762. package/web-dist/assets/arrow-up-Dop2Zfy9.js.map +1 -0
  763. package/web-dist/assets/audit-Cws4Sb1Z.js +2 -0
  764. package/web-dist/assets/audit-Cws4Sb1Z.js.map +1 -0
  765. package/web-dist/assets/button-0-kx6BS-.js +2 -0
  766. package/web-dist/assets/button-0-kx6BS-.js.map +1 -0
  767. package/web-dist/assets/card-bOMGzWND.js +2 -0
  768. package/web-dist/assets/card-bOMGzWND.js.map +1 -0
  769. package/web-dist/assets/chevron-right-jlmAjiMj.js +2 -0
  770. package/web-dist/assets/chevron-right-jlmAjiMj.js.map +1 -0
  771. package/web-dist/assets/client-snippet-DyzxqQDv.js +2 -0
  772. package/web-dist/assets/client-snippet-DyzxqQDv.js.map +1 -0
  773. package/web-dist/assets/code-view-Dp3S3g6k.js +4 -0
  774. package/web-dist/assets/code-view-Dp3S3g6k.js.map +1 -0
  775. package/web-dist/assets/compare-CHKwYuEP.js +2 -0
  776. package/web-dist/assets/compare-CHKwYuEP.js.map +1 -0
  777. package/web-dist/assets/components-CNkWqS3X.js +2 -0
  778. package/web-dist/assets/components-CNkWqS3X.js.map +1 -0
  779. package/web-dist/assets/components-DYbjYUzw.js +2 -0
  780. package/web-dist/assets/components-DYbjYUzw.js.map +1 -0
  781. package/web-dist/assets/composite-Bfwhy6qy.js +2 -0
  782. package/web-dist/assets/composite-Bfwhy6qy.js.map +1 -0
  783. package/web-dist/assets/confirm-dialog-BY5FJuQC.js +2 -0
  784. package/web-dist/assets/confirm-dialog-BY5FJuQC.js.map +1 -0
  785. package/web-dist/assets/connect-DEWuCUqH.js +2 -0
  786. package/web-dist/assets/connect-DEWuCUqH.js.map +1 -0
  787. package/web-dist/assets/core-CveQFPAO.js +13 -0
  788. package/web-dist/assets/core-CveQFPAO.js.map +1 -0
  789. package/web-dist/assets/create-key-dialog-DbtnDlv9.js +3 -0
  790. package/web-dist/assets/create-key-dialog-DbtnDlv9.js.map +1 -0
  791. package/web-dist/assets/createLucideIcon-4wkYGrAu.js +2 -0
  792. package/web-dist/assets/createLucideIcon-4wkYGrAu.js.map +1 -0
  793. package/web-dist/assets/crumbs-CFOzyevD.js +2 -0
  794. package/web-dist/assets/crumbs-CFOzyevD.js.map +1 -0
  795. package/web-dist/assets/data-table-DL8nsehq.js +2 -0
  796. package/web-dist/assets/data-table-DL8nsehq.js.map +1 -0
  797. package/web-dist/assets/download-BJL2mMMG.js +2 -0
  798. package/web-dist/assets/download-BJL2mMMG.js.map +1 -0
  799. package/web-dist/assets/download-Ct9K1Blk.js +2 -0
  800. package/web-dist/assets/download-Ct9K1Blk.js.map +1 -0
  801. package/web-dist/assets/draft-bar-DQo326FN.js +2 -0
  802. package/web-dist/assets/draft-bar-DQo326FN.js.map +1 -0
  803. package/web-dist/assets/engine-javascript-C30F4iNc.js +142 -0
  804. package/web-dist/assets/engine-javascript-C30F4iNc.js.map +1 -0
  805. package/web-dist/assets/env-summary-C8OSGAi1.js +2 -0
  806. package/web-dist/assets/env-summary-C8OSGAi1.js.map +1 -0
  807. package/web-dist/assets/environments-xDHrvcC0.js +2 -0
  808. package/web-dist/assets/environments-xDHrvcC0.js.map +1 -0
  809. package/web-dist/assets/evals-D103yj9M.js +2 -0
  810. package/web-dist/assets/evals-D103yj9M.js.map +1 -0
  811. package/web-dist/assets/file-drop-BUz7NVu0.js +2 -0
  812. package/web-dist/assets/file-drop-BUz7NVu0.js.map +1 -0
  813. package/web-dist/assets/file-text-BzSWwAXx.js +2 -0
  814. package/web-dist/assets/file-text-BzSWwAXx.js.map +1 -0
  815. package/web-dist/assets/file-up-DhxoycHf.js +2 -0
  816. package/web-dist/assets/file-up-DhxoycHf.js.map +1 -0
  817. package/web-dist/assets/gauge-DB20Sf_v.js +2 -0
  818. package/web-dist/assets/gauge-DB20Sf_v.js.map +1 -0
  819. package/web-dist/assets/github-dark-default-DXG-b-1a.js +2 -0
  820. package/web-dist/assets/github-dark-default-DXG-b-1a.js.map +1 -0
  821. package/web-dist/assets/github-light-default-BXViO-2h.js +2 -0
  822. package/web-dist/assets/github-light-default-BXViO-2h.js.map +1 -0
  823. package/web-dist/assets/graphql-CSsyTQ1B.js +2 -0
  824. package/web-dist/assets/graphql-CSsyTQ1B.js.map +1 -0
  825. package/web-dist/assets/inbox--axfoemS.js +2 -0
  826. package/web-dist/assets/inbox--axfoemS.js.map +1 -0
  827. package/web-dist/assets/inbox-Bg9XxN9I.js +2 -0
  828. package/web-dist/assets/inbox-Bg9XxN9I.js.map +1 -0
  829. package/web-dist/assets/index-CI-LmJP7.css +2 -0
  830. package/web-dist/assets/index-EqRZkjd6.js +17 -0
  831. package/web-dist/assets/index-EqRZkjd6.js.map +1 -0
  832. package/web-dist/assets/inertValue-BEKHztUQ.js +2 -0
  833. package/web-dist/assets/inertValue-BEKHztUQ.js.map +1 -0
  834. package/web-dist/assets/json-qhed-kSA.js +2 -0
  835. package/web-dist/assets/json-qhed-kSA.js.map +1 -0
  836. package/web-dist/assets/json-viewer-DFAY-JaC.js +2 -0
  837. package/web-dist/assets/json-viewer-DFAY-JaC.js.map +1 -0
  838. package/web-dist/assets/key-round-CPrc1zQr.js +2 -0
  839. package/web-dist/assets/key-round-CPrc1zQr.js.map +1 -0
  840. package/web-dist/assets/keys-D2H6bYnB.js +2 -0
  841. package/web-dist/assets/keys-D2H6bYnB.js.map +1 -0
  842. package/web-dist/assets/labels-B8sf8Hg_.js +2 -0
  843. package/web-dist/assets/labels-B8sf8Hg_.js.map +1 -0
  844. package/web-dist/assets/link-CByMaQfX.js +3 -0
  845. package/web-dist/assets/link-CByMaQfX.js.map +1 -0
  846. package/web-dist/assets/link-tabs-C06q3Y1p.js +2 -0
  847. package/web-dist/assets/link-tabs-C06q3Y1p.js.map +1 -0
  848. package/web-dist/assets/link-xDlPECzC.js +2 -0
  849. package/web-dist/assets/link-xDlPECzC.js.map +1 -0
  850. package/web-dist/assets/list-tree-Cq6aoA_B.js +2 -0
  851. package/web-dist/assets/list-tree-Cq6aoA_B.js.map +1 -0
  852. package/web-dist/assets/logged-out-Cia2QO9r.js +2 -0
  853. package/web-dist/assets/logged-out-Cia2QO9r.js.map +1 -0
  854. package/web-dist/assets/login-DgDPuB_V.js +2 -0
  855. package/web-dist/assets/login-DgDPuB_V.js.map +1 -0
  856. package/web-dist/assets/mode-recommendation-DoHGuZUm.js +2 -0
  857. package/web-dist/assets/mode-recommendation-DoHGuZUm.js.map +1 -0
  858. package/web-dist/assets/models-DPi2Bzvy.js +2 -0
  859. package/web-dist/assets/models-DPi2Bzvy.js.map +1 -0
  860. package/web-dist/assets/navigation-Crt8lW1m.js +2 -0
  861. package/web-dist/assets/navigation-Crt8lW1m.js.map +1 -0
  862. package/web-dist/assets/new-Ccw0Hlfl.js +5 -0
  863. package/web-dist/assets/new-Ccw0Hlfl.js.map +1 -0
  864. package/web-dist/assets/overlay-C_UeOJOw.js +2 -0
  865. package/web-dist/assets/overlay-C_UeOJOw.js.map +1 -0
  866. package/web-dist/assets/page-header-CHk7bso7.js +2 -0
  867. package/web-dist/assets/page-header-CHk7bso7.js.map +1 -0
  868. package/web-dist/assets/permissions-Bf3wb1Jv.js +2 -0
  869. package/web-dist/assets/permissions-Bf3wb1Jv.js.map +1 -0
  870. package/web-dist/assets/plug-CrM5MZO2.js +2 -0
  871. package/web-dist/assets/plug-CrM5MZO2.js.map +1 -0
  872. package/web-dist/assets/plus-C6_H380k.js +2 -0
  873. package/web-dist/assets/plus-C6_H380k.js.map +1 -0
  874. package/web-dist/assets/progress-DaZnZarb.js +2 -0
  875. package/web-dist/assets/progress-DaZnZarb.js.map +1 -0
  876. package/web-dist/assets/python-gzcpVVnB.js +2 -0
  877. package/web-dist/assets/python-gzcpVVnB.js.map +1 -0
  878. package/web-dist/assets/queries-3DiENdpp.js +2 -0
  879. package/web-dist/assets/queries-3DiENdpp.js.map +1 -0
  880. package/web-dist/assets/queries-CJD0QpGi.js +2 -0
  881. package/web-dist/assets/queries-CJD0QpGi.js.map +1 -0
  882. package/web-dist/assets/queries-CaU3gifI.js +2 -0
  883. package/web-dist/assets/queries-CaU3gifI.js.map +1 -0
  884. package/web-dist/assets/queries-DOMFJPBg.js +2 -0
  885. package/web-dist/assets/queries-DOMFJPBg.js.map +1 -0
  886. package/web-dist/assets/queries-DzYj_ZKK.js +2 -0
  887. package/web-dist/assets/queries-DzYj_ZKK.js.map +1 -0
  888. package/web-dist/assets/queries-O4X2594T.js +2 -0
  889. package/web-dist/assets/queries-O4X2594T.js.map +1 -0
  890. package/web-dist/assets/queries-iauKjcDt.js +2 -0
  891. package/web-dist/assets/queries-iauKjcDt.js.map +1 -0
  892. package/web-dist/assets/queries-yxFwGLDb.js +2 -0
  893. package/web-dist/assets/queries-yxFwGLDb.js.map +1 -0
  894. package/web-dist/assets/reason-parts-B6nt3n-F.js +2 -0
  895. package/web-dist/assets/reason-parts-B6nt3n-F.js.map +1 -0
  896. package/web-dist/assets/redirect-B4OxYbs2.js +2 -0
  897. package/web-dist/assets/redirect-B4OxYbs2.js.map +1 -0
  898. package/web-dist/assets/refresh-cw-Dk41furN.js +2 -0
  899. package/web-dist/assets/refresh-cw-Dk41furN.js.map +1 -0
  900. package/web-dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  901. package/web-dist/assets/route-Ba10rJVa.js +2 -0
  902. package/web-dist/assets/route-Ba10rJVa.js.map +1 -0
  903. package/web-dist/assets/route-DFvqBlRc.js +2 -0
  904. package/web-dist/assets/route-DFvqBlRc.js.map +1 -0
  905. package/web-dist/assets/score-ring-D3Ff8hXt.js +2 -0
  906. package/web-dist/assets/score-ring-D3Ff8hXt.js.map +1 -0
  907. package/web-dist/assets/section-Bq1blJ9c.js +2 -0
  908. package/web-dist/assets/section-Bq1blJ9c.js.map +1 -0
  909. package/web-dist/assets/segmented-RsFdV9xJ.js +2 -0
  910. package/web-dist/assets/segmented-RsFdV9xJ.js.map +1 -0
  911. package/web-dist/assets/separator-CcxDVEHH.js +2 -0
  912. package/web-dist/assets/separator-CcxDVEHH.js.map +1 -0
  913. package/web-dist/assets/server-BvD6BIlz.js +2 -0
  914. package/web-dist/assets/server-BvD6BIlz.js.map +1 -0
  915. package/web-dist/assets/server-switcher-hOm8Popx.js +2 -0
  916. package/web-dist/assets/server-switcher-hOm8Popx.js.map +1 -0
  917. package/web-dist/assets/servers-DBjU_qiZ.js +2 -0
  918. package/web-dist/assets/servers-DBjU_qiZ.js.map +1 -0
  919. package/web-dist/assets/settings-DCmODejD.js +2 -0
  920. package/web-dist/assets/settings-DCmODejD.js.map +1 -0
  921. package/web-dist/assets/settings-zp4uTZ2u.js +2 -0
  922. package/web-dist/assets/settings-zp4uTZ2u.js.map +1 -0
  923. package/web-dist/assets/sheet-CZ77BIgN.js +2 -0
  924. package/web-dist/assets/sheet-CZ77BIgN.js.map +1 -0
  925. package/web-dist/assets/skeleton-CuU6NqIG.js +2 -0
  926. package/web-dist/assets/skeleton-CuU6NqIG.js.map +1 -0
  927. package/web-dist/assets/sparkles-DMF5S9tx.js +2 -0
  928. package/web-dist/assets/sparkles-DMF5S9tx.js.map +1 -0
  929. package/web-dist/assets/spec-Bhk7L9IF.js +2 -0
  930. package/web-dist/assets/spec-Bhk7L9IF.js.map +1 -0
  931. package/web-dist/assets/spinner-BLf8_Ajk.js +2 -0
  932. package/web-dist/assets/spinner-BLf8_Ajk.js.map +1 -0
  933. package/web-dist/assets/states-Z2xH3pUB.js +2 -0
  934. package/web-dist/assets/states-Z2xH3pUB.js.map +1 -0
  935. package/web-dist/assets/storage-CuUK35fn.js +2 -0
  936. package/web-dist/assets/storage-CuUK35fn.js.map +1 -0
  937. package/web-dist/assets/store-SrwTVjPk.js +2 -0
  938. package/web-dist/assets/store-SrwTVjPk.js.map +1 -0
  939. package/web-dist/assets/switch-C_lbqEIt.js +2 -0
  940. package/web-dist/assets/switch-C_lbqEIt.js.map +1 -0
  941. package/web-dist/assets/tasks-CRKt_Suy.js +2 -0
  942. package/web-dist/assets/tasks-CRKt_Suy.js.map +1 -0
  943. package/web-dist/assets/timeline-Cye1s7g_.js +2 -0
  944. package/web-dist/assets/timeline-Cye1s7g_.js.map +1 -0
  945. package/web-dist/assets/tools-C5I1npEn.js +2 -0
  946. package/web-dist/assets/tools-C5I1npEn.js.map +1 -0
  947. package/web-dist/assets/tooltip--tDonqxM.js +2 -0
  948. package/web-dist/assets/tooltip--tDonqxM.js.map +1 -0
  949. package/web-dist/assets/use-cursor-stack-DIOApcfL.js +2 -0
  950. package/web-dist/assets/use-cursor-stack-DIOApcfL.js.map +1 -0
  951. package/web-dist/assets/use-debounced-value-CSowsQHr.js +2 -0
  952. package/web-dist/assets/use-debounced-value-CSowsQHr.js.map +1 -0
  953. package/web-dist/assets/use-min-width-b55txtG6.js +2 -0
  954. package/web-dist/assets/use-min-width-b55txtG6.js.map +1 -0
  955. package/web-dist/assets/use-mobile-R850ZQZG.js +2 -0
  956. package/web-dist/assets/use-mobile-R850ZQZG.js.map +1 -0
  957. package/web-dist/assets/useAriaLabelledBy-DjHYrmeF.js +2 -0
  958. package/web-dist/assets/useAriaLabelledBy-DjHYrmeF.js.map +1 -0
  959. package/web-dist/assets/useBaseQuery-BoQjiPOp.js +2 -0
  960. package/web-dist/assets/useBaseQuery-BoQjiPOp.js.map +1 -0
  961. package/web-dist/assets/useBaseUiId-BUBV7JiZ.js +2 -0
  962. package/web-dist/assets/useBaseUiId-BUBV7JiZ.js.map +1 -0
  963. package/web-dist/assets/useButton-DQ6Sgg7h.js +2 -0
  964. package/web-dist/assets/useButton-DQ6Sgg7h.js.map +1 -0
  965. package/web-dist/assets/useControlled-B9BFcdfh.js +2 -0
  966. package/web-dist/assets/useControlled-B9BFcdfh.js.map +1 -0
  967. package/web-dist/assets/useNavigate-CrwlTILa.js +2 -0
  968. package/web-dist/assets/useNavigate-CrwlTILa.js.map +1 -0
  969. package/web-dist/assets/useOpenChangeComplete-DUM-_E2z.js +2 -0
  970. package/web-dist/assets/useOpenChangeComplete-DUM-_E2z.js.map +1 -0
  971. package/web-dist/assets/usePositioner-BQnDdcQL.js +2 -0
  972. package/web-dist/assets/usePositioner-BQnDdcQL.js.map +1 -0
  973. package/web-dist/assets/useQuery-BkgWvtTa.js +2 -0
  974. package/web-dist/assets/useQuery-BkgWvtTa.js.map +1 -0
  975. package/web-dist/assets/useRegisterFieldControl-DuodOtnM.js +2 -0
  976. package/web-dist/assets/useRegisterFieldControl-DuodOtnM.js.map +1 -0
  977. package/web-dist/assets/useRouterState-DeGPqG1m.js +2 -0
  978. package/web-dist/assets/useRouterState-DeGPqG1m.js.map +1 -0
  979. package/web-dist/assets/useScrollLock-BWBVawYJ.js +2 -0
  980. package/web-dist/assets/useScrollLock-BWBVawYJ.js.map +1 -0
  981. package/web-dist/assets/useTimeout-SGSgaiy1.js +2 -0
  982. package/web-dist/assets/useTimeout-SGSgaiy1.js.map +1 -0
  983. package/web-dist/assets/useTransitionStatus-Dy_zd4z2.js +2 -0
  984. package/web-dist/assets/useTransitionStatus-Dy_zd4z2.js.map +1 -0
  985. package/web-dist/assets/useTriggerFocusGuards-9VjGYE1p.js +2 -0
  986. package/web-dist/assets/useTriggerFocusGuards-9VjGYE1p.js.map +1 -0
  987. package/web-dist/assets/useValueChanged-BqSvidps.js +2 -0
  988. package/web-dist/assets/useValueChanged-BqSvidps.js.map +1 -0
  989. package/web-dist/assets/utils-BFSetRo1.js +2 -0
  990. package/web-dist/assets/utils-BFSetRo1.js.map +1 -0
  991. package/web-dist/assets/wrench-CIdGHcvJ.js +2 -0
  992. package/web-dist/assets/wrench-CIdGHcvJ.js.map +1 -0
  993. package/web-dist/assets/x-5OcgPlDp.js +2 -0
  994. package/web-dist/assets/x-5OcgPlDp.js.map +1 -0
  995. package/web-dist/assets/yaml-rwi0_p6S.js +2 -0
  996. package/web-dist/assets/yaml-rwi0_p6S.js.map +1 -0
  997. package/web-dist/favicon.svg +1 -0
  998. package/web-dist/index.html +55 -0
  999. package/web-dist/theme-init.js +44 -0
  1000. package/README.md +0 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRegisterFieldControl-DuodOtnM.js","names":["FieldControlDataAttributes.valid","FieldControlDataAttributes.invalid","_formatErrorMessage","__toESM","require_react","EMPTY_OBJECT","NOOP","useIsoLayoutEffect","useRefWithInit","useStableCallback","formatErrorMessage","useBaseUiId","import_react","valid","invalid","DEFAULT_VALIDITY_STATE","DEFAULT_FIELD_ROOT_STATE","fieldValidityMapping","value","DEFAULT_FIELD_ROOT_CONTEXT","props","FieldRootContext","useFieldRootContext","context","optional","FormContext","useFormContext","LabelableContext","externalProps","useLabelableContext","useLabelableId","params","defaultId","controlSourceRef","hasRegisteredRef","hadExplicitIdRef","unregisterControlId","registerControlId","enabled","nextId","id","resetControlId","controlId","useSetFieldFocused","setFieldFocused","focused","disabled","focusOwnerRef","onFocusedChange","setFocused","el","focusTargetRef","useRegisterFieldControl","sourceRef","source","registerFieldControl","getFormValueOverride","controlRef","name"],"sources":["../../../../node_modules/@base-ui/react/field/control/FieldControlDataAttributes.mjs","../../../../node_modules/@base-ui/react/internals/field-constants/constants.mjs","../../../../node_modules/@base-ui/react/internals/field-root-context/FieldRootContext.mjs","../../../../node_modules/@base-ui/react/internals/form-context/FormContext.mjs","../../../../node_modules/@base-ui/react/internals/labelable-provider/LabelableContext.mjs","../../../../node_modules/@base-ui/react/internals/labelable-provider/useLabelableId.mjs","../../../../node_modules/@base-ui/react/internals/field-root-context/useSetFieldFocused.mjs","../../../../node_modules/@base-ui/react/internals/field-register-control/useRegisterFieldControl.mjs"],"sourcesContent":["/**\n * Present when the field is disabled.\n */\nexport const disabled = 'data-disabled';\n/**\n * Present when the field is in a valid state.\n */\nexport const valid = 'data-valid';\n/**\n * Present when the field is in an invalid state.\n */\nexport const invalid = 'data-invalid';\n/**\n * Present when the field has been touched.\n */\nexport const touched = 'data-touched';\n/**\n * Present when the field's value has changed.\n */\nexport const dirty = 'data-dirty';\n/**\n * Present when the field is filled.\n */\nexport const filled = 'data-filled';\n/**\n * Present when the field control is focused.\n */\nexport const focused = 'data-focused';","import * as FieldControlDataAttributes from \"../../field/control/FieldControlDataAttributes.mjs\";\nexport const DEFAULT_VALIDITY_STATE = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: null,\n valueMissing: false\n};\nexport const DEFAULT_FIELD_STATE_ATTRIBUTES = {\n valid: null,\n touched: false,\n dirty: false,\n filled: false,\n focused: false\n};\nexport const DEFAULT_FIELD_ROOT_STATE = {\n disabled: false,\n ...DEFAULT_FIELD_STATE_ATTRIBUTES\n};\nexport const fieldValidityMapping = {\n valid(value) {\n if (value === null) {\n return null;\n }\n if (value) {\n return {\n [FieldControlDataAttributes.valid]: ''\n };\n }\n return {\n [FieldControlDataAttributes.invalid]: ''\n };\n }\n};","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { NOOP } from \"../noop.mjs\";\nimport { DEFAULT_FIELD_ROOT_STATE, DEFAULT_VALIDITY_STATE } from \"../field-constants/constants.mjs\";\nexport const DEFAULT_FIELD_ROOT_CONTEXT = {\n invalid: undefined,\n name: undefined,\n validityData: {\n state: DEFAULT_VALIDITY_STATE,\n errors: [],\n error: '',\n value: '',\n initialValue: null\n },\n setValidityData: NOOP,\n disabled: undefined,\n setTouched: NOOP,\n setDirty: NOOP,\n setFilled: NOOP,\n setFocused: NOOP,\n focusOwnerRef: {\n current: undefined\n },\n validationMode: 'onSubmit',\n shouldValidateOnChange: () => false,\n state: DEFAULT_FIELD_ROOT_STATE,\n registerFieldControl: NOOP,\n validation: {\n getValidationProps: (_disabled, props = EMPTY_OBJECT) => props,\n inputRef: {\n current: null\n },\n registeredInputs: new Map(),\n registerInput: NOOP,\n getInputControl: () => null,\n commit: async () => {},\n change: NOOP\n }\n};\nexport const FieldRootContext = /*#__PURE__*/React.createContext(DEFAULT_FIELD_ROOT_CONTEXT);\nif (process.env.NODE_ENV !== \"production\") FieldRootContext.displayName = \"FieldRootContext\";\nexport function useFieldRootContext(optional = true) {\n const context = React.useContext(FieldRootContext);\n if (context.setValidityData === NOOP && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.' : _formatErrorMessage(28));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.mjs\";\nexport const FormContext = /*#__PURE__*/React.createContext({\n elementRef: {\n current: null\n },\n formRef: {\n current: {\n fields: new Map()\n }\n },\n errors: {},\n clearErrors: NOOP,\n validationMode: 'onSubmit',\n submitCountRef: {\n current: 0\n }\n});\nif (process.env.NODE_ENV !== \"production\") FormContext.displayName = \"FormContext\";\nexport function useFormContext() {\n return React.useContext(FormContext);\n}","'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.mjs\";\n/**\n * A context for providing [labelable elements](https://html.spec.whatwg.org/multipage/forms.html#category-label)\\\n * with an accessible name (label) and description.\n */\nexport const LabelableContext = /*#__PURE__*/React.createContext({\n controlId: undefined,\n registerControlId: NOOP,\n resetControlId: NOOP,\n labelId: undefined,\n setLabelId: NOOP,\n messageIds: [],\n setMessageIds: NOOP,\n getDescriptionProps: externalProps => externalProps\n});\nif (process.env.NODE_ENV !== \"production\") LabelableContext.displayName = \"LabelableContext\";\nexport function useLabelableContext() {\n return React.useContext(LabelableContext);\n}","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { NOOP } from \"../noop.mjs\";\nimport { useBaseUiId } from \"../useBaseUiId.mjs\";\nimport { useLabelableContext } from \"./LabelableContext.mjs\";\nexport function useLabelableId(params = {}) {\n const {\n id,\n enabled = true\n } = params;\n const {\n controlId,\n registerControlId,\n resetControlId\n } = useLabelableContext();\n\n // Deliberately not seeded with `id`: on React 17 the seed would stick around after the\n // `id` prop is removed, leaving the control on a stale id forever.\n const defaultId = useBaseUiId();\n const controlSourceRef = useRefWithInit(() => Symbol());\n const hasRegisteredRef = React.useRef(false);\n const hadExplicitIdRef = React.useRef(false);\n const unregisterControlId = useStableCallback(() => {\n if (!hasRegisteredRef.current || registerControlId === NOOP) {\n return;\n }\n hasRegisteredRef.current = false;\n registerControlId(controlSourceRef.current, undefined);\n });\n useIsoLayoutEffect(() => {\n if (!enabled || registerControlId === NOOP) {\n unregisterControlId();\n return undefined;\n }\n let nextId;\n if (id !== undefined) {\n hadExplicitIdRef.current = true;\n nextId = id;\n } else if (hadExplicitIdRef.current) {\n nextId = defaultId;\n } else {\n // An id-less replacement must claim the provider's fallback so a previously registered\n // explicit id is not retained after its control unmounts.\n resetControlId();\n return undefined;\n }\n\n // Either the control never had an explicit `id`, or React 17 has not assigned the\n // fallback id yet. Neither is worth registering.\n if (nextId === undefined) {\n unregisterControlId();\n return undefined;\n }\n hasRegisteredRef.current = true;\n registerControlId(controlSourceRef.current, nextId);\n return undefined;\n }, [id, enabled, registerControlId, resetControlId, defaultId, controlSourceRef, unregisterControlId]);\n\n // Unregistering in the layout phase, not a passive effect: a replacement control's layout\n // effect would otherwise run first and still see the outgoing control's registration.\n useIsoLayoutEffect(() => {\n return unregisterControlId;\n }, [unregisterControlId]);\n\n // The provider's id wins until registration runs: the label renders `htmlFor` from the\n // provider's pre-registration state, so preempting it with an explicit `id` here would\n // leave the pair unassociated in server-rendered markup.\n return (enabled ? controlId : undefined) ?? id ?? defaultId;\n}","'use client';\n\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useFieldRootContext } from \"./FieldRootContext.mjs\";\n\n/**\n * Returns the field's `setFocused`, recording which control the focused state belongs to.\n *\n * Disabling or unmounting a focused control moves focus away without firing `blur`, so the focused\n * state would otherwise stay latched. A field can have several focus targets, so a control only\n * clears the shared state when focus last landed on itself. The stable callback doubles as that\n * identity.\n */\nexport function useSetFieldFocused(disabled, focusTargetRef, onFocusedChange) {\n const {\n setFocused,\n focusOwnerRef\n } = useFieldRootContext();\n const setFieldFocused = useStableCallback(focused => {\n // A disabled target can still be focused (`aria-disabled` elements stay programmatically\n // focusable), but must not publish the field's focused styling.\n if (focused ? !disabled : focusOwnerRef.current === setFieldFocused) {\n focusOwnerRef.current = focused && setFieldFocused;\n onFocusedChange?.(focused);\n setFocused(focused);\n }\n });\n\n // Re-run when `disabled` changes so a focused control releases the field even when the browser\n // does not fire `blur`. The setup reclaims focus that no focus event reported: StrictMode\n // re-running effects after a mount-time focus, a control focused before hydration, or an\n // `aria-disabled` control re-enabled while it kept focus.\n useIsoLayoutEffect(() => {\n const el = focusTargetRef.current;\n const root = el?.getRootNode();\n if (root?.activeElement === el) {\n setFieldFocused(true);\n }\n return () => setFieldFocused(false);\n }, [disabled, focusTargetRef, setFieldFocused]);\n return setFieldFocused;\n}","'use client';\n\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useFieldRootContext } from \"../field-root-context/FieldRootContext.mjs\";\nexport function useRegisterFieldControl(controlRef, id, value, getFormValueOverride, enabled = true, name) {\n const {\n registerFieldControl\n } = useFieldRootContext();\n const sourceRef = useRefWithInit(() => Symbol());\n\n // Re-register without unregistering first: re-registration with the same id updates the\n // form's fields Map entry in place, while a delete + re-add would move the field to the\n // end of the Map every time its value changes.\n useIsoLayoutEffect(() => {\n const source = sourceRef.current;\n if (!enabled) {\n registerFieldControl(source, undefined);\n return;\n }\n const registration = {\n controlRef,\n getValue: getFormValueOverride,\n id,\n name,\n value\n };\n registerFieldControl(source, registration);\n }, [controlRef, enabled, getFormValueOverride, id, name, registerFieldControl, sourceRef, value]);\n useIsoLayoutEffect(() => {\n const source = sourceRef.current;\n return () => {\n registerFieldControl(source, undefined);\n };\n }, [registerFieldControl, sourceRef]);\n}"],"ignoreList":[0,1,2,3,4,5,6,7],"mappings":"A,uOAOaa,EAAQ,aAIRC,EAAU,eCVVC,EAAyB,CACpC,SAAU,GACV,YAAa,GACb,gBAAiB,GACjB,cAAe,GACf,eAAgB,GAChB,aAAc,GACd,QAAS,GACT,SAAU,GACV,aAAc,GACd,MAAO,KACP,aAAc,EAChB,EAQaC,EAA2B,CACtC,SAAU,GAPV,MAAO,KACP,QAAS,GACT,MAAO,GACP,OAAQ,GACR,QAAS,EAKX,EACaC,EAAuB,CAClC,MAAM,EAAO,CASX,OARIC,IAAU,KACL,KAELA,EACK,EACJlB,GAAmC,EACtC,EAEK,EACJC,GAAqC,EACxC,CACF,CACF,EChCakB,EAA6B,CACxC,QAAS,IAAA,GACT,KAAM,IAAA,GACN,aAAc,CACZ,MAAOJ,EACP,OAAQ,CAAC,EACT,MAAO,GACP,MAAO,GACP,aAAc,IAChB,EACA,gBAAiBT,EACjB,SAAU,IAAA,GACV,WAAYA,EACZ,SAAUA,EACV,UAAWA,EACX,WAAYA,EACZ,cAAe,CACb,QAAS,IAAA,EACX,EACA,eAAgB,WAChB,2BAA8B,GAC9B,MAAOU,EACP,qBAAsBV,EACtB,WAAY,CACV,oBAAqB,EAAW,EAAQD,IAAiBe,EACzD,SAAU,CACR,QAAS,IACX,EACA,iBAAkB,IAAI,IACtB,cAAed,EACf,oBAAuB,KACvB,OAAQ,SAAY,CAAC,EACrB,OAAQA,CACV,CACF,EACae,EAAgCT,EAAM,cAAcO,CAA0B,EAE3F,SAAgBG,EAAoB,EAAW,GAAM,CACnD,IAAMC,EAAAX,EAAgB,WAAWS,CAAgB,EACjD,GAAIE,EAAQ,kBAAoBjB,GAAQ,CAACkB,EACvC,MAAU,MAAwItB,EAAoB,EAAE,CAAC,EAE3K,OAAOqB,CACT,CC9CA,IAAaE,EAA2Bb,EAAM,cAAc,CAC1D,WAAY,CACV,QAAS,IACX,EACA,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mB,CAAC,GAKhBE,EAAUI,EAAY,IAAA,KAAcF,GAAMR,CACpD,CC1DA,SAAgBW,EAAmB,EAAU,EAAgB,EAAiB,CAC5E,GAAM,CACJ,aACA,iBACErB,EAAoB,EAClBsB,EAAkBnC,EAAkB,GAAW,EAG/CoC,EAAU,CAACC,EAAWC,EAAc,UAAYH,KAClD,EAAc,QAAUC,GAAWD,EACnCI,IAAkBH,CAAO,EACzBI,EAAWJ,CAAO,EAEtB,CAAC,EAcD,OARAtC,MAAyB,CACvB,IAAM2C,EAAKC,EAAe,QAK1B,OAJaD,GAAI,YAAY,CAAA,EACnB,gBAAkBA,GAC1BN,EAAgB,EAAI,MAETA,EAAgB,EAAK,CACpC,EAAG,CAACE,EAAUK,EAAgBP,CAAe,CAAC,EACvCA,CACT,CCrCA,SAAgBQ,EAAwB,EAAY,EAAI,EAAO,EAAsB,EAAU,GAAM,EAAM,CACzG,GAAM,CACJ,wBACE9B,EAAoB,EAClB+B,EAAY7C,MAAqB,OAAO,CAAC,EAK/CD,MAAyB,CACvB,IAAM+C,EAASD,EAAU,QACpBf,EAWLiB,EAAqBD,EAAQ,CAN3B,aACA,SAAUE,EACV,KACA,OACA,OAEsC,CAAC,EAVvCD,EAAqBD,EAAQ,IAAA,EAAS,CAW1C,EAAG,CAACG,EAAYnB,EAASkB,EAAsBhB,EAAIkB,EAAMH,EAAsBF,EAAWnC,CAAK,CAAC,EAChGX,MAAyB,CACvB,IAAM+C,EAASD,EAAU,QACzB,UAAa,CACXE,EAAqBD,EAAQ,IAAA,EAAS,CACxC,CACF,EAAG,CAACC,EAAsBF,CAAS,CAAC,CACtC,C"}
@@ -0,0 +1,2 @@
1
+ import{i as e}from"./link-CByMaQfX.js";import{i as t,r as n}from"./useNavigate-CrwlTILa.js";function r(r){let i=e({warn:r?.router===void 0}),a=r?.router||i;return t(a.stores.__store,n(r,a))}export{r as t};
2
+ //# sourceMappingURL=useRouterState-DeGPqG1m.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRouterState-DeGPqG1m.js","names":["useRouter","useSelector","useStructuralSharing","useRouterState","contextRouter","opts","router"],"sources":["../../../../node_modules/@tanstack/react-router/dist/esm/useRouterState.js"],"sourcesContent":["\"use client\";\nimport { useRouter } from \"./useRouter.js\";\nimport { useStructuralSharing } from \"./useMatch.js\";\nimport { isServer } from \"@tanstack/router-core/isServer\";\nimport { useSelector } from \"@tanstack/react-store\";\n//#region src/useRouterState.tsx\n/**\n* Subscribe to the router's state store with optional selection and\n* structural sharing for render optimization.\n*\n* Options:\n* - `select`: Project the full router state to a derived slice\n* - `structuralSharing`: Replace-equal semantics for stable references\n* - `router`: Read state from a specific router instance instead of context\n*\n* @returns The selected router state (or the full state by default).\n* @link https://tanstack.com/router/latest/docs/framework/react/api/router/useRouterStateHook\n*/\nfunction useRouterState(opts) {\n\tconst contextRouter = useRouter({ warn: opts?.router === void 0 });\n\tconst router = opts?.router || contextRouter;\n\tif (isServer ?? router.isServer) {\n\t\tconst state = router.stores.__store.get();\n\t\treturn opts?.select ? opts.select(state) : state;\n\t}\n\treturn useSelector(router.stores.__store, useStructuralSharing(opts, router));\n}\n//#endregion\nexport { useRouterState };\n\n//# sourceMappingURL=useRouterState.js.map"],"ignoreList":[0],"mappings":"A,4FAkBA,SAASG,EAAe,EAAM,CAC7B,IAAMC,EAAgBJ,EAAU,CAAE,KAAMK,GAAM,SAAW,IAAK,EAAE,CAAC,EAC3DC,EAASD,GAAM,QAAUD,EAK/B,OAAOH,EAAYK,EAAO,OAAO,QAASJ,EAAqBG,EAAMC,CAAM,CAAC,CAC7E,C"}
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,r as n}from"./utils-BFSetRo1.js";import{_ as r,b as i,g as a,r as o,u as s,v as c,x as l,y as u}from"./useOpenChangeComplete-DUM-_E2z.js";import{C as d,I as f,M as p,O as m,_ as h,b as g,c as _,p as v,w as y}from"./useButton-DQ6Sgg7h.js";import{_ as ee,a as te}from"./reason-parts-B6nt3n-F.js";import{B as b,H as ne,I as re,R as x,T as ie,V as S,_ as ae,d as oe,f as C,g as se,i as ce,m as le,p as ue,r as de,v as fe,w as pe,y as me}from"./FloatingPortal-D_eDEbvZ.js";import{n as he,t as ge}from"./useTimeout-SGSgaiy1.js";import{A as _e,D as ve,E as ye,O as be,S as xe,k as Se,w}from"./store-SrwTVjPk.js";var T=e(t(),1),E=0;function D(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(E);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),f;let o=requestAnimationFrame(a);return E=o,()=>{E===o&&(cancelAnimationFrame(o),E=0)}}var O=`data-base-ui-inert`,k=new WeakMap,A=new WeakSet,j=new WeakMap,M=0;function N(e){return e?y(e)?e.host:N(e.parentNode):null}var P=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=N(t);return e.contains(n)?n:null}).filter(e=>e!=null),F=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},I=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{v(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function L(e,t,n,{mark:r=!0}){let i=P(t,e),a=r?I(t,F(i),new Set(i)):[],o=[],s=[];if(n){let e=P(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);I(t,F(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(k.get(e)||0)+1;k.set(e,r),o.push(e),r===1&&n&&A.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(j.get(e)||0)+1;j.set(e,t),s.push(e),t===1&&e.setAttribute(O,``)}),M+=1,()=>{o.forEach(e=>{let t=(k.get(e)||0)-1;k.set(e,t),t||(A.has(e)||e.removeAttribute(`aria-hidden`),A.delete(e))}),r&&s.forEach(e=>{let t=(j.get(e)||0)-1;j.set(e,t),t||e.removeAttribute(O)}),--M,M||(k=new WeakMap,A=new WeakSet,j=new WeakMap)}}function Ce(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=S(e[0]).body;return L(e,i,n,{mark:r})}var R=n();function we(e,t){let n=h(u(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(ye(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Te=20,z=[];function Ee(){z=z.filter(e=>e.deref()?.isConnected)}function De(e){Ee(),e&&v(e)!==`body`&&(z.push(new WeakRef(e)),z.length>Te&&(z=z.slice(-20)))}function Oe(){return Ee(),z[z.length-1]?.deref()}function ke(e){return e?ae(e)?e:fe(e)[0]||e:null}function Ae(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=C(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return ae(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function je(e){let{context:t,children:n,disabled:i=!1,initialFocus:d=!0,returnFocus:f=!0,explicitReturnFocus:h,restoreFocus:y=!1,modal:x=!0,closeOnFocusOut:C=!0,openInteractionType:ge=``,nextFocusableElement:E,previousFocusableElement:O,beforeContentFocusGuardRef:k,externalTree:A,getInsideElements:j}=e,M=t.useState(`open`),N=t.useState(`domReferenceElement`),P=t.useState(`floatingElement`),{events:F,dataRef:I}=t.context,L=m(()=>I.current.floatingContext?.nodeId),Te=d===!1,z=pe(N)&&Te,je=w(d),Me=w(f),Ne=w(h),B=w(ge),V=w(M),H=xe(A),U=de(),W=T.useRef(!1),G=T.useRef(!1),K=T.useRef(!1),Pe=T.useRef(null),q=T.useRef(``),J=T.useRef(``),Fe=T.useRef(null),Ie=T.useRef(null),Le=_(Fe,k,U?.beforeInsideRef),Re=_(Ie,U?.afterInsideRef),ze=he(),Y=he(),Be=l(),Ve=U!=null,X=me(P),Z=m((e=X)=>e?fe(e):[]),Q=m(()=>j?.().filter(e=>e!=null)??[]);T.useEffect(()=>{if(i||!x)return;function e(e){e.key===`Tab`&&c(X,a(S(X)))&&Z().length===0&&!z&&be(e)}let t=S(X);return b(t,`keydown`,e)},[i,X,x,z,Z]),T.useEffect(()=>{if(i||!M)return;let e=S(X);function t(){K.current=!1}function n(e){let t=u(e),n=Q(),i=c(P,t)||c(N,t)||c(U?.portalNode,t)||n.some(e=>e===t||c(e,t));K.current=!i,J.current=e.pointerType||`keyboard`,r(t,`[data-base-ui-click-trigger]`)&&(G.current=!0,Y.start(0,()=>{G.current=!1}))}function a(){J.current=`keyboard`}return ne(b(e,`pointerdown`,n,!0),b(e,`pointerup`,t,!0),b(e,`pointercancel`,t,!0),b(e,`keydown`,a,!0),t)},[i,P,N,X,M,U,Y,Q]),T.useEffect(()=>{if(i||!C)return;let e=S(X);function n(){G.current=!0,Y.start(0,()=>{G.current=!1})}function r(e){let t=u(e);ae(t)&&(Pe.current=t)}function l(n){let r=n.relatedTarget,i=n.currentTarget,l=u(n);x&&r==null&&l!=null&&c(P,l)&&De(l),queueMicrotask(()=>{let u=L(),d=t.context.triggerElements,f=Q(),p=r?.hasAttribute(ce(`focus-guard`))&&[Fe.current,Ie.current,U?.beforeInsideRef.current,U?.afterInsideRef.current,U?.beforeOutsideRef.current,U?.afterOutsideRef.current,o(O),o(E)].includes(r),m=!(c(N,r)||c(P,r)||c(r,P)||c(U?.portalNode,r)||f.some(e=>e===r||c(e,r))||d.hasMatchingElement(e=>c(e,r))||p||H&&(_e(H.nodesRef.current,u).find(e=>c(e.context?.elements.floating,r)||c(e.context?.elements.domReference,r))||Se(H.nodesRef.current,u).find(e=>[e.context?.elements.floating,me(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===N&&X&&Ae(X),y&&i!==N&&!s(l)&&a(e)===e.body){if(g(X)&&(X.focus(),y===`popup`)){Be.request(()=>{X.focus()});return}let e=Z(),t=Pe.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||X;g(n)&&n.focus()}I.current.insideReactTree?I.current.insideReactTree=!1:(z||!x)&&r&&m&&!G.current&&(z||r!==Oe())&&(W.current=!0,t.setOpen(!1,ee(te,n)))})}function d(){K.current||(I.current.insideReactTree=!0,ze.start(0,()=>{I.current.insideReactTree=!1}))}let f=g(N)?N:null;if(P||f)return ne(f&&b(f,`focusout`,l),f&&b(f,`pointerdown`,n),P&&b(P,`focusin`,r),P&&b(P,`focusout`,l),P&&U&&b(P,`focusout`,d,!0))},[i,N,P,X,x,H,U,t,C,y,Z,z,L,I,ze,Y,Be,E,O,Q]),T.useEffect(()=>{if(i||!P||!M)return;let e=Array.from(U?.portalNode?.querySelectorAll(`[${ce(`portal`)}]`)||[]),t=(H?Se(H.nodesRef.current,L()):[]).find(e=>pe(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Ce([P,...e,Fe.current,Ie.current,U?.beforeOutsideRef.current,U?.afterOutsideRef.current,...Q(),t,o(O),o(E),z?N:null].filter(e=>e!=null),{ariaHidden:x||z,mark:!1}),r=Ce([P,...e].filter(e=>e!=null));return()=>{r(),n()}},[M,i,N,P,x,U,z,H,L,E,O,Q]),p(()=>{if(!M||i||!g(X))return;q.current=``,J.current=``;let e=S(X),t=a(e);queueMicrotask(()=>{let n=je.current,r=typeof n==`function`?n(B.current||``):n;if(r===void 0||r===!1||c(X,t))return;let i=null,s=()=>(i??=Z(X),i[0]||X),l;l=r===!0||r===null?s():o(r),l||=s();let u=c(X,a(e)),d=I.current.openEvent,f=d?.type===`mousedown`&&ye(d);D(l,{sync:f,preventScroll:l===X,shouldFocus(){if(!V.current)return!1;if(u)return!0;let t=a(e);return!(t!==l&&c(X,t))}})})},[i,M,X,Z,je,B,V,I]);let $=T.useRef(null);p(()=>{if(i||!X){$.current=null;return}$.current&&=($.current.cancelled=!0,null);let e=S(X),t=a(e),n=B.current==null;De(t);function r(e){if(e.open||(q.current=we(e.nativeEvent,J.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(ce(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(W.current=!0),e.reason===`outside-press`){if(e.nested)W.current=!1;else if(ye(e.nativeEvent)||ve(e.nativeEvent))W.current=!1;else{let e=!1;S(X).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?W.current=!1:W.current=!0}}}F.on(`openchange`,r);function s(e){let r=Me.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=N?.isConnected?N:null,s=t?.isConnected&&v(t)!==`body`?t:null,c=n?s||a:a||s;return c||=Oe()||null,typeof i==`boolean`?c:o(i)||c||null}return()=>{F.off(`openchange`,r);let t=a(e),n=Q(),i=c(P,t)||n.some(e=>e===t||c(e,t))||H&&_e(H.nodesRef.current,L(),!1).some(e=>c(e.context?.elements.floating,t)),o=Me.current,l=q.current,u=s(l),d={cancelled:!1};$.current=d,queueMicrotask(()=>{$.current===d&&($.current=null);let n=ke(u),r=Ne.current??typeof o!=`boolean`;if(!d.cancelled&&o&&!W.current&&g(n)&&(r||n===t||t===e.body||i)){let e={preventScroll:!0};l===`keyboard`&&(e.focusVisible=!0),n.focus(e)}W.current=!1})}},[i,P,X,Me,Ne,B,F,H,N,L,Q]),p(()=>{if(!re||M||!P)return;let e=a(S(P));g(e)&&ie(e)&&c(P,e)&&e.blur()},[M,P]),p(()=>{if(!i&&U)return U.setFocusManagerState({modal:x,closeOnFocusOut:C,open:M,onOpenChange:t.setOpen,domReference:N}),()=>{U.setFocusManagerState(null)}},[i,U,x,M,t,C,N]),p(()=>{if(!i&&X)return Ae(X),()=>{queueMicrotask(Ee)}},[i,X]);let He=!i&&(!x||!z)&&(Ve||x);return(0,R.jsxs)(T.Fragment,{children:[He&&(0,R.jsx)(oe,{"data-type":`inside`,ref:Le,onFocus:e=>{if(x){let e=Z();D(e[e.length-1])}else U?.portalNode&&(W.current=!1,se(e,U.portalNode)?ue(N)?.focus():o(O??U.beforeOutsideRef)?.focus())}}),n,He&&(0,R.jsx)(oe,{"data-type":`inside`,ref:Re,onFocus:e=>{x?D(Z()[0]):U?.portalNode&&(C&&(W.current=!0),se(e,U.portalNode)?le(N)?.focus():o(E??U.afterOutsideRef)?.focus())}})]})}var Me=T.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,R.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Ne={},B={},V=``;function H(e,t){return d(e)?e:t}function U(e,t,n){return/hidden|clip/.test(e.getComputedStyle(H(t,n)).overflowY)}function W(e){if(typeof document>`u`)return!1;let t=S(e);return h(t).innerWidth-t.documentElement.clientWidth>0}function G(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=S(e),n=t.documentElement,r=t.body,i=H(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function K(e){let t=S(e),n=t.documentElement,r=t.body,i=H(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Pe(e){let t=S(e),n=t.documentElement,r=t.body,a=h(n),o=0,s=0,c=!1,l=i.create();if(re&&(a.visualViewport?.scale??1)!==1)return()=>{};function u(){let t=a.getComputedStyle(n),i=a.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;o=n.scrollTop,s=n.scrollLeft,Ne={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},V=n.style.scrollBehavior,B={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||i.overflowY===`scroll`,p=t.overflowX===`scroll`||i.overflowX===`scroll`,m=Math.max(0,a.innerWidth-r.clientWidth),h=Math.max(0,a.innerHeight-r.clientHeight),g=parseFloat(i.marginTop)+parseFloat(i.marginBottom),_=parseFloat(i.marginLeft)+parseFloat(i.marginRight),v=H(n,r);c=G(e),c?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=o,r.scrollLeft=s,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function d(){Object.assign(n.style,Ne),Object.assign(r.style,B),c||(n.scrollTop=o,n.scrollLeft=s,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=V)}function f(){d(),l.request(u)}u();let p=b(a,`resize`,f);return()=>{l.cancel(),d(),typeof a.removeEventListener==`function`&&p()}}var q=new class{lockCount=0;restore=null;timeoutLock=ge.create();timeoutUnlock=ge.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=S(e),n=t.documentElement,r=t.body,i=h(n);if(U(i,n,r)){let t=new i.MutationObserver(()=>{U(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=x||!W(e);this.restore=a?K(e):Pe(e)}};function J(e=!0,t=null){p(()=>{if(e)return q.acquire(t)},[e,t])}export{D as i,Me as n,je as r,J as t};
2
+ //# sourceMappingURL=useScrollLock-BWBVawYJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollLock-BWBVawYJ.js","names":["ownerWindow","REASONS.focusOut","platform.engine.webkit","ownerWindow","platform.engine.webkit","platform.os.ios","__toESM","require_react","require_jsx_runtime","closest","AnimationFrame","activeElement","resolveRef","isElementVisible","contains","useAnimationFrame","getTarget","isOverflowElement","NOOP","useIsoLayoutEffect","useStableCallback","getWindow","isHTMLElement","useMergedRefs","getNodeName","isShadowRoot","createChangeEventDetails","focusOut","addEventListener","mergeCleanups","webkit","ios","isTypeableElement","ownerDocument","isTabbable","FocusGuard","focusable","isOutsideEvent","createAttribute","getPreviousTabbable","getNextTabbable","usePortalContext","tabbable","isTypeableCombobox","getFloatingFocusElement","useTimeout","Timeout","getNodeChildren","isVirtualPointerEvent","isVirtualClick","stopEvent","useFloatingTree","getNodeAncestors","import_react","rafId","enqueueFocus","options","exec","shouldFocus","el","sync","currentRafId","markerName","ariaHiddenCounterMap","uncontrolledElementsSet","markerCounterMap","lockCount","unwrapHost","node","correctElements","targets","parent","target","correctedTarget","x","buildKeepSet","keep","collectOutsideElements","outside","walk","keepElements","root","applyAttributeToOthers","avoidElements","body","uncorrectedAvoidElements","markerTargets","mark","hiddenElements","markedElements","ariaHidden","ariaLiveElements","controlElements","attr","alreadyHidden","counterValue","markerValue","element","markOthers","import_jsx_runtime","getEventType","win","event","lastInteractionType","LIST_LIMIT","previouslyFocusedElements","clearDisconnectedPreviouslyFocusedElements","entry","addPreviouslyFocusedElement","getPreviouslyFocusedElement","getFirstTabbableElement","container","handleTabIndex","floatingFocusElement","tabbableContent","dataTabIndex","tabIndex","FloatingFocusManager","store","props","open","domReference","floating","getNodeId","dataRef","ignoreInitialFocus","initialFocus","isUntrappedTypeableCombobox","initialFocusRef","useValueAsRef","returnFocusRef","returnFocus","explicitReturnFocusRef","explicitReturnFocus","openInteractionTypeRef","openInteractionType","openRef","tree","externalTree","portalContext","preventReturnFocusRef","isPointerDownRef","pointerDownOutsideRef","lastFocusedTabbableRef","closeTypeRef","lastInteractionTypeRef","beforeGuardRef","afterGuardRef","mergedBeforeGuardRef","beforeContentFocusGuardRef","mergedAfterGuardRef","blurTimeout","pointerDownTimeout","restoreFocusFrame","isInsidePortal","getTabbableContent","getResolvedInsideElements","getInsideElements","disabled","modal","onKeyDown","doc","clearPointerDownOutside","onPointerDown","insideElements","pointerTargetInside","closeOnFocusOut","handlePointerDown","handleFocusIn","handleFocusOutside","relatedTarget","currentTarget","nodeId","triggers","isRelatedFocusGuard","previousFocusableElement","nextFocusableElement","movedToUnrelatedNode","trigger","restoreFocus","prevTabbable","nodeToFocus","markInsideReactTree","domReferenceElement","portalNodes","rootAncestorComboboxDomReference","ariaHiddenCleanup","markerCleanup","previouslyFocusedElement","initialFocusValueOrFn","resolvedInitialFocus","focusableElements","getDefaultFocusElement","elToFocus","hadFocusInside","openEvent","openedByVirtualPress","currentActiveElement","pendingReturnFocusRef","elementFocusedBeforeOpen","preferPreviousFocus","onOpenChangeLocal","details","isPreventScrollSupported","events","getReturnElement","returnFocusValueOrFn","resolvedReturnFocusValue","closeType","referenceReturnElement","previousReturnElement","defaultReturnElement","activeEl","isFocusInsideFloatingTree","returnElement","job","tabbableReturnElement","hasExplicitReturnFocus","focusOptions","shouldRenderGuards","els","children","InternalBackdrop","otherProps","clipPath","cutout","rect","originalHtmlStyles","originalBodyStyles","originalHtmlScrollBehavior","getViewportScroller","html","isPageScrollLocked","hasInsetScrollbars","referenceElement","supportsStableScrollbarGutter","scrollContainer","originalScrollContainerOverflowY","originalHtmlStyleGutter","before","after","preventScrollOverlayScrollbars","elementToLock","originalElementToLockStyles","preventScrollInsetScrollbars","scrollTop","scrollLeft","updateGutterOnly","resizeFrame","lockScroll","htmlStyles","bodyStyles","scrollbarGutterValue","isScrollableY","isScrollableX","hasConstantOverflowY","hasConstantOverflowX","scrollbarWidth","scrollbarHeight","marginY","marginX","cleanup","handleResize","unsubscribeResize","SCROLL_LOCKER","observer","hasOverlayScrollbars","useScrollLock","enabled"],"sources":["../../../../node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs","../../../../node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs","../../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs","../../../../node_modules/@base-ui/react/utils/InternalBackdrop.mjs","../../../../node_modules/@base-ui/utils/useScrollLock.mjs"],"sourcesContent":["import { NOOP } from '@base-ui/utils/empty';\nlet rafId = 0;\nexport function enqueueFocus(el, options = {}) {\n const {\n preventScroll = false,\n sync = false,\n shouldFocus\n } = options;\n cancelAnimationFrame(rafId);\n function exec() {\n if (shouldFocus && !shouldFocus()) {\n return;\n }\n el?.focus({\n preventScroll\n });\n }\n if (sync) {\n exec();\n return NOOP;\n }\n const currentRafId = requestAnimationFrame(exec);\n rafId = currentRafId;\n return () => {\n if (rafId === currentRafId) {\n cancelAnimationFrame(currentRafId);\n rafId = 0;\n }\n };\n}","// Modified to add conditional `aria-hidden` support:\n// https://github.com/theKashey/aria-hidden/blob/9220c8f4a4fd35f63bee5510a9f41a37264382d4/src/index.ts\nimport { getNodeName, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nconst markerName = 'data-base-ui-inert';\nlet ariaHiddenCounterMap = new WeakMap();\nlet uncontrolledElementsSet = new WeakSet();\nlet markerCounterMap = new WeakMap();\nlet lockCount = 0;\nfunction unwrapHost(node) {\n if (!node) {\n return null;\n }\n return isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);\n}\nconst correctElements = (parent, targets) => targets.map(target => {\n if (parent.contains(target)) {\n return target;\n }\n const correctedTarget = unwrapHost(target);\n if (parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n return null;\n}).filter(x => x != null);\nconst buildKeepSet = targets => {\n const keep = new Set();\n targets.forEach(target => {\n let node = target;\n while (node && !keep.has(node)) {\n keep.add(node);\n node = node.parentNode;\n }\n });\n return keep;\n};\nconst collectOutsideElements = (root, keepElements, stopElements) => {\n const outside = [];\n const walk = parent => {\n if (!parent || stopElements.has(parent)) {\n return;\n }\n Array.from(parent.children).forEach(node => {\n if (getNodeName(node) === 'script') {\n return;\n }\n if (keepElements.has(node)) {\n walk(node);\n } else {\n outside.push(node);\n }\n });\n };\n walk(root);\n return outside;\n};\nfunction applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, {\n mark = true\n}) {\n const avoidElements = correctElements(body, uncorrectedAvoidElements);\n const markerTargets = mark ? collectOutsideElements(body, buildKeepSet(avoidElements), new Set(avoidElements)) : [];\n const hiddenElements = [];\n const markedElements = [];\n if (ariaHidden) {\n const ariaLiveElements = correctElements(body, Array.from(body.querySelectorAll('[aria-live]')));\n const controlElements = avoidElements.concat(ariaLiveElements);\n const controlTargets = collectOutsideElements(body, buildKeepSet(controlElements), new Set(controlElements));\n controlTargets.forEach(node => {\n const attr = node.getAttribute('aria-hidden');\n const alreadyHidden = attr !== null && attr !== 'false';\n const counterValue = (ariaHiddenCounterMap.get(node) || 0) + 1;\n ariaHiddenCounterMap.set(node, counterValue);\n hiddenElements.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledElementsSet.add(node);\n }\n if (!alreadyHidden) {\n node.setAttribute('aria-hidden', 'true');\n }\n });\n }\n if (mark) {\n markerTargets.forEach(node => {\n const markerValue = (markerCounterMap.get(node) || 0) + 1;\n markerCounterMap.set(node, markerValue);\n markedElements.push(node);\n if (markerValue === 1) {\n node.setAttribute(markerName, '');\n }\n });\n }\n lockCount += 1;\n return () => {\n hiddenElements.forEach(element => {\n const counterValue = (ariaHiddenCounterMap.get(element) || 0) - 1;\n ariaHiddenCounterMap.set(element, counterValue);\n if (!counterValue) {\n if (!uncontrolledElementsSet.has(element)) {\n element.removeAttribute('aria-hidden');\n }\n uncontrolledElementsSet.delete(element);\n }\n });\n if (mark) {\n markedElements.forEach(element => {\n const markerValue = (markerCounterMap.get(element) || 0) - 1;\n markerCounterMap.set(element, markerValue);\n if (!markerValue) {\n element.removeAttribute(markerName);\n }\n });\n }\n lockCount -= 1;\n if (!lockCount) {\n ariaHiddenCounterMap = new WeakMap();\n uncontrolledElementsSet = new WeakSet();\n markerCounterMap = new WeakMap();\n }\n };\n}\nexport function markOthers(avoidElements, options = {}) {\n const {\n ariaHidden = false,\n mark = true\n } = options;\n const body = ownerDocument(avoidElements[0]).body;\n return applyAttributeToOthers(avoidElements, body, ariaHidden, {\n mark\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { getNodeName, isHTMLElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { platform } from '@base-ui/utils/platform';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { activeElement, closest, contains, getTarget, isTypeableCombobox, getFloatingFocusElement, isTypeableElement } from \"../utils/element.mjs\";\nimport { isVirtualClick, isVirtualPointerEvent, stopEvent } from \"../utils/event.mjs\";\nimport { tabbable, focusable, isOutsideEvent, isTabbable, getNextTabbable, getPreviousTabbable } from \"../utils/tabbable.mjs\";\nimport { getNodeAncestors, getNodeChildren } from \"../utils/nodes.mjs\";\nimport { isElementVisible } from \"../utils/composite.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { createAttribute } from \"../utils/createAttribute.mjs\";\nimport { enqueueFocus } from \"../utils/enqueueFocus.mjs\";\nimport { markOthers } from \"../utils/markOthers.mjs\";\nimport { usePortalContext } from \"./FloatingPortal.mjs\";\nimport { useFloatingTree } from \"./FloatingTree.mjs\";\nimport { CLICK_TRIGGER_IDENTIFIER } from \"../../internals/constants.mjs\";\nimport { resolveRef } from \"../../utils/resolveRef.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction getEventType(event, lastInteractionType) {\n const win = ownerWindow(getTarget(event));\n if (event instanceof win.KeyboardEvent) {\n return 'keyboard';\n }\n if (event instanceof win.FocusEvent) {\n // Focus events can be caused by a preceding pointer interaction (e.g., focusout on outside press).\n // Prefer the last known pointer type if provided, else treat as keyboard.\n return lastInteractionType || 'keyboard';\n }\n if ('pointerType' in event) {\n // A trusted click without a pointerType is keyboard/AT; only synthesized\n // clicks (e.g. a test harness) pair an empty pointerType with a click count.\n return event.pointerType || (isVirtualClick(event) ? 'keyboard' : lastInteractionType || 'mouse');\n }\n if ('touches' in event) {\n return 'touch';\n }\n if (event instanceof win.MouseEvent) {\n // onClick events may not contain pointer events, and will fall through to here\n return lastInteractionType || (event.detail === 0 ? 'keyboard' : 'mouse');\n }\n return '';\n}\nconst LIST_LIMIT = 20;\nlet previouslyFocusedElements = [];\nfunction clearDisconnectedPreviouslyFocusedElements() {\n previouslyFocusedElements = previouslyFocusedElements.filter(entry => {\n return entry.deref()?.isConnected;\n });\n}\nfunction addPreviouslyFocusedElement(element) {\n clearDisconnectedPreviouslyFocusedElements();\n if (element && getNodeName(element) !== 'body') {\n previouslyFocusedElements.push(new WeakRef(element));\n if (previouslyFocusedElements.length > LIST_LIMIT) {\n previouslyFocusedElements = previouslyFocusedElements.slice(-LIST_LIMIT);\n }\n }\n}\nfunction getPreviouslyFocusedElement() {\n clearDisconnectedPreviouslyFocusedElements();\n return previouslyFocusedElements[previouslyFocusedElements.length - 1]?.deref();\n}\nfunction getFirstTabbableElement(container) {\n if (!container) {\n return null;\n }\n if (isTabbable(container)) {\n return container;\n }\n return tabbable(container)[0] || container;\n}\nfunction handleTabIndex(floatingFocusElement) {\n if (floatingFocusElement.hasAttribute('tabindex') && !floatingFocusElement.hasAttribute('data-tabindex')) {\n return;\n }\n if (!floatingFocusElement.getAttribute('role')?.includes('dialog')) {\n return;\n }\n const focusableElements = focusable(floatingFocusElement);\n const tabbableContent = focusableElements.filter(element => {\n const dataTabIndex = element.getAttribute('data-tabindex') || '';\n return isTabbable(element) || element.hasAttribute('data-tabindex') && !dataTabIndex.startsWith('-');\n });\n const tabIndex = floatingFocusElement.getAttribute('tabindex');\n if (tabbableContent.length === 0) {\n if (tabIndex !== '0') {\n floatingFocusElement.setAttribute('tabindex', '0');\n // Mark our own write so the externally-managed early-return above doesn't\n // mistake it for a user-authored `tabindex` and freeze management.\n floatingFocusElement.setAttribute('data-tabindex', '0');\n }\n } else if (tabIndex !== '-1' || floatingFocusElement.hasAttribute('data-tabindex') && floatingFocusElement.getAttribute('data-tabindex') !== '-1') {\n floatingFocusElement.setAttribute('tabindex', '-1');\n floatingFocusElement.setAttribute('data-tabindex', '-1');\n }\n}\n/**\n * Provides focus management for the floating element.\n * @see https://floating-ui.com/docs/FloatingFocusManager\n * @internal\n */\nexport function FloatingFocusManager(props) {\n const {\n context: store,\n children,\n disabled = false,\n initialFocus = true,\n returnFocus = true,\n explicitReturnFocus,\n restoreFocus = false,\n modal = true,\n closeOnFocusOut = true,\n openInteractionType = '',\n nextFocusableElement,\n previousFocusableElement,\n beforeContentFocusGuardRef,\n externalTree,\n getInsideElements\n } = props;\n const open = store.useState('open');\n const domReference = store.useState('domReferenceElement');\n const floating = store.useState('floatingElement');\n const {\n events,\n dataRef\n } = store.context;\n const getNodeId = useStableCallback(() => dataRef.current.floatingContext?.nodeId);\n const ignoreInitialFocus = initialFocus === false;\n // A typeable combobox reference (e.g. input/textarea) with `initialFocus={false}`\n // has different focus semantics: focus is not trapped inside the floating element,\n // so in the modal case the guards are not rendered, but `aria-hidden` is still\n // applied to the outside nodes.\n const isUntrappedTypeableCombobox = isTypeableCombobox(domReference) && ignoreInitialFocus;\n const initialFocusRef = useValueAsRef(initialFocus);\n const returnFocusRef = useValueAsRef(returnFocus);\n // Read through a ref so a mid-open change can't re-run the return-focus effect, whose cleanup\n // would move focus while the floating element is still open.\n const explicitReturnFocusRef = useValueAsRef(explicitReturnFocus);\n const openInteractionTypeRef = useValueAsRef(openInteractionType);\n const openRef = useValueAsRef(open);\n const tree = useFloatingTree(externalTree);\n const portalContext = usePortalContext();\n const preventReturnFocusRef = React.useRef(false);\n const isPointerDownRef = React.useRef(false);\n const pointerDownOutsideRef = React.useRef(false);\n const lastFocusedTabbableRef = React.useRef(null);\n const closeTypeRef = React.useRef('');\n const lastInteractionTypeRef = React.useRef('');\n const beforeGuardRef = React.useRef(null);\n const afterGuardRef = React.useRef(null);\n const mergedBeforeGuardRef = useMergedRefs(beforeGuardRef, beforeContentFocusGuardRef, portalContext?.beforeInsideRef);\n const mergedAfterGuardRef = useMergedRefs(afterGuardRef, portalContext?.afterInsideRef);\n const blurTimeout = useTimeout();\n const pointerDownTimeout = useTimeout();\n const restoreFocusFrame = useAnimationFrame();\n const isInsidePortal = portalContext != null;\n const floatingFocusElement = getFloatingFocusElement(floating);\n const getTabbableContent = useStableCallback((container = floatingFocusElement) => {\n return container ? tabbable(container) : [];\n });\n const getResolvedInsideElements = useStableCallback(() => getInsideElements?.().filter(element => element != null) ?? []);\n\n // Prevent Tab from escaping the modal when there are no tabbable elements.\n React.useEffect(() => {\n if (disabled || !modal) {\n return undefined;\n }\n function onKeyDown(event) {\n if (event.key === 'Tab') {\n // The focus guards have nothing to focus, so we need to stop the event.\n if (contains(floatingFocusElement, activeElement(ownerDocument(floatingFocusElement))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) {\n stopEvent(event);\n }\n }\n }\n const doc = ownerDocument(floatingFocusElement);\n return addEventListener(doc, 'keydown', onKeyDown);\n }, [disabled, floatingFocusElement, modal, isUntrappedTypeableCombobox, getTabbableContent]);\n\n // Track pointer/keyboard interactions to disambiguate focus and outside presses.\n React.useEffect(() => {\n if (disabled || !open) {\n return undefined;\n }\n const doc = ownerDocument(floatingFocusElement);\n function clearPointerDownOutside() {\n pointerDownOutsideRef.current = false;\n }\n function onPointerDown(event) {\n const target = getTarget(event);\n const insideElements = getResolvedInsideElements();\n const pointerTargetInside = contains(floating, target) || contains(domReference, target) || contains(portalContext?.portalNode, target) || insideElements.some(element => element === target || contains(element, target));\n pointerDownOutsideRef.current = !pointerTargetInside;\n lastInteractionTypeRef.current = event.pointerType || 'keyboard';\n if (closest(target, `[${CLICK_TRIGGER_IDENTIFIER}]`)) {\n isPointerDownRef.current = true;\n // Reset on the next tick so a single click on a click-trigger doesn't\n // permanently suppress focus-out closing for the lifetime of the instance.\n pointerDownTimeout.start(0, () => {\n isPointerDownRef.current = false;\n });\n }\n }\n function onKeyDown() {\n lastInteractionTypeRef.current = 'keyboard';\n }\n return mergeCleanups(addEventListener(doc, 'pointerdown', onPointerDown, true), addEventListener(doc, 'pointerup', clearPointerDownOutside, true), addEventListener(doc, 'pointercancel', clearPointerDownOutside, true), addEventListener(doc, 'keydown', onKeyDown, true),\n // Avoid a stale `true` leaking into the next open (e.g. keep-mounted popups)\n // if the popup dismissed between pointerdown and pointerup.\n clearPointerDownOutside);\n }, [disabled, floating, domReference, floatingFocusElement, open, portalContext, pointerDownTimeout, getResolvedInsideElements]);\n\n // Close on focus out and restore focus within the floating tree when needed.\n React.useEffect(() => {\n if (disabled || !closeOnFocusOut) {\n return undefined;\n }\n const doc = ownerDocument(floatingFocusElement);\n\n // In Safari, buttons lose focus when pressing them.\n function handlePointerDown() {\n isPointerDownRef.current = true;\n pointerDownTimeout.start(0, () => {\n isPointerDownRef.current = false;\n });\n }\n function handleFocusIn(event) {\n const target = getTarget(event);\n if (isTabbable(target)) {\n lastFocusedTabbableRef.current = target;\n }\n }\n function handleFocusOutside(event) {\n const relatedTarget = event.relatedTarget;\n const currentTarget = event.currentTarget;\n const target = getTarget(event);\n\n // When focus is lost to the body (e.g. on a backdrop press), record the element that\n // had focus so a confirmation dialog opened while the body is focused can return focus\n // to it. Scoped to `modal` to avoid non-modal popups polluting the shared stack.\n if (modal && relatedTarget == null && target != null && contains(floating, target)) {\n addPreviouslyFocusedElement(target);\n }\n queueMicrotask(() => {\n const nodeId = getNodeId();\n const triggers = store.context.triggerElements;\n const insideElements = getResolvedInsideElements();\n const isRelatedFocusGuard = relatedTarget?.hasAttribute(createAttribute('focus-guard')) && [beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeInsideRef.current, portalContext?.afterInsideRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement)].includes(relatedTarget);\n const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext?.portalNode, relatedTarget) || insideElements.some(element => element === relatedTarget || contains(element, relatedTarget)) || triggers.hasMatchingElement(trigger => contains(trigger, relatedTarget)) || isRelatedFocusGuard || tree && (getNodeChildren(tree.nodesRef.current, nodeId).find(node => contains(node.context?.elements.floating, relatedTarget) || contains(node.context?.elements.domReference, relatedTarget)) || getNodeAncestors(tree.nodesRef.current, nodeId).find(node => [node.context?.elements.floating, getFloatingFocusElement(node.context?.elements.floating)].includes(relatedTarget) || node.context?.elements.domReference === relatedTarget)));\n if (currentTarget === domReference && floatingFocusElement) {\n handleTabIndex(floatingFocusElement);\n }\n\n // Restore focus to the previously focused tabbable element to prevent\n // focus from being lost outside the floating tree.\n if (restoreFocus && currentTarget !== domReference && !isElementVisible(target) && activeElement(doc) === doc.body) {\n // Let `FloatingPortal` effect knows that focus is still inside the\n // floating tree.\n if (isHTMLElement(floatingFocusElement)) {\n floatingFocusElement.focus();\n // If explicitly requested to restore focus to the popup container, do not search\n // for the next/previous tabbable element.\n if (restoreFocus === 'popup') {\n // If the focused element is removed on pointerdown, the browser\n // tries to move focus to it right after the `.focus()` call above,\n // but because it's removed in the same tick, focus is lost instead.\n // Re-focusing asynchronously (next frame) wins that race.\n restoreFocusFrame.request(() => {\n floatingFocusElement.focus();\n });\n return;\n }\n }\n const tabbableContent = getTabbableContent();\n const prevTabbable = lastFocusedTabbableRef.current;\n const nodeToFocus = (prevTabbable && tabbableContent.includes(prevTabbable) ? prevTabbable : null) || tabbableContent[tabbableContent.length - 1] || floatingFocusElement;\n if (isHTMLElement(nodeToFocus)) {\n nodeToFocus.focus();\n }\n }\n\n // https://github.com/floating-ui/floating-ui/issues/3060\n if (dataRef.current.insideReactTree) {\n dataRef.current.insideReactTree = false;\n return;\n }\n\n // Focus did not move inside the floating tree, and there are no tabbable\n // portal guards to handle closing.\n if ((isUntrappedTypeableCombobox ? true : !modal) && relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current && (\n // Fix React 18 Strict Mode returnFocus due to double rendering.\n // For an \"untrapped\" typeable combobox (input role=combobox with\n // initialFocus=false), re-opening the popup and tabbing out should still close it even\n // when the previously focused element (e.g. the next tabbable outside the popup) is\n // focused again. Otherwise, the popup remains open on the second Tab sequence:\n // click input -> Tab (closes) -> click input -> Tab.\n // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.\n isUntrappedTypeableCombobox || relatedTarget !== getPreviouslyFocusedElement())) {\n preventReturnFocusRef.current = true;\n store.setOpen(false, createChangeEventDetails(REASONS.focusOut, event));\n }\n });\n }\n function markInsideReactTree() {\n if (pointerDownOutsideRef.current) {\n return;\n }\n dataRef.current.insideReactTree = true;\n blurTimeout.start(0, () => {\n dataRef.current.insideReactTree = false;\n });\n }\n const domReferenceElement = isHTMLElement(domReference) ? domReference : null;\n if (!floating && !domReferenceElement) {\n return undefined;\n }\n return mergeCleanups(domReferenceElement && addEventListener(domReferenceElement, 'focusout', handleFocusOutside), domReferenceElement && addEventListener(domReferenceElement, 'pointerdown', handlePointerDown), floating && addEventListener(floating, 'focusin', handleFocusIn), floating && addEventListener(floating, 'focusout', handleFocusOutside), floating && portalContext && addEventListener(floating, 'focusout', markInsideReactTree, true));\n }, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, store, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, dataRef, blurTimeout, pointerDownTimeout, restoreFocusFrame, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);\n\n // Hide everything outside the floating tree from assistive tech while open.\n React.useEffect(() => {\n if (disabled || !floating || !open) {\n return undefined;\n }\n\n // Don't hide portals nested within the parent portal.\n const portalNodes = Array.from(portalContext?.portalNode?.querySelectorAll(`[${createAttribute('portal')}]`) || []);\n const ancestors = tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : [];\n const rootAncestorComboboxDomReference = ancestors.find(node => isTypeableCombobox(node.context?.elements.domReference || null))?.context?.elements.domReference;\n const controlInsideElements = [floating, ...portalNodes, beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, ...getResolvedInsideElements()];\n const insideElements = [...controlInsideElements, rootAncestorComboboxDomReference, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement), isUntrappedTypeableCombobox ? domReference : null].filter(x => x != null);\n const ariaHiddenCleanup = markOthers(insideElements, {\n ariaHidden: modal || isUntrappedTypeableCombobox,\n mark: false\n });\n const markerInsideElements = [floating, ...portalNodes].filter(x => x != null);\n const markerCleanup = markOthers(markerInsideElements);\n return () => {\n markerCleanup();\n ariaHiddenCleanup();\n };\n }, [open, disabled, domReference, floating, modal, portalContext, isUntrappedTypeableCombobox, tree, getNodeId, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);\n\n // Focus the initial element when the floating element opens.\n useIsoLayoutEffect(() => {\n if (!open || disabled || !isHTMLElement(floatingFocusElement)) {\n return;\n }\n closeTypeRef.current = '';\n lastInteractionTypeRef.current = '';\n const doc = ownerDocument(floatingFocusElement);\n const previouslyFocusedElement = activeElement(doc);\n\n // Wait for any layout effect state setters to execute to set `tabIndex`.\n queueMicrotask(() => {\n const initialFocusValueOrFn = initialFocusRef.current;\n const resolvedInitialFocus = typeof initialFocusValueOrFn === 'function' ? initialFocusValueOrFn(openInteractionTypeRef.current || '') : initialFocusValueOrFn;\n\n // `null` should fallback to default behavior in case of an empty ref.\n if (resolvedInitialFocus === undefined || resolvedInitialFocus === false) {\n return;\n }\n const focusAlreadyInsideFloatingEl = contains(floatingFocusElement, previouslyFocusedElement);\n if (focusAlreadyInsideFloatingEl) {\n return;\n }\n let focusableElements = null;\n const getDefaultFocusElement = () => {\n if (focusableElements == null) {\n focusableElements = getTabbableContent(floatingFocusElement);\n }\n return focusableElements[0] || floatingFocusElement;\n };\n let elToFocus;\n if (resolvedInitialFocus === true || resolvedInitialFocus === null) {\n elToFocus = getDefaultFocusElement();\n } else {\n elToFocus = resolveRef(resolvedInitialFocus);\n }\n elToFocus = elToFocus || getDefaultFocusElement();\n const hadFocusInside = contains(floatingFocusElement, activeElement(doc));\n\n // Screen readers re-sync focus to their cursor right after a synthesized press. A focus\n // that lands a frame later reads as a stray move and gets pulled back to the reference.\n const openEvent = dataRef.current.openEvent;\n const openedByVirtualPress = openEvent?.type === 'mousedown' && isVirtualClick(openEvent);\n\n // enqueueFocus returns a rAF-cancel function; we intentionally don't cancel this focus.\n void enqueueFocus(elToFocus, {\n sync: openedByVirtualPress,\n preventScroll: elToFocus === floatingFocusElement,\n shouldFocus() {\n // If the floating element has closed before this runs — e.g. tabbing out of a\n // kept-mounted popup — don't pull focus back onto the initial element after it has\n // legitimately moved elsewhere.\n if (!openRef.current) {\n return false;\n }\n if (hadFocusInside) {\n return true;\n }\n const currentActiveElement = activeElement(doc);\n const focusMovedInside = currentActiveElement !== elToFocus && contains(floatingFocusElement, currentActiveElement);\n return !focusMovedInside;\n }\n });\n });\n }, [disabled, open, floatingFocusElement, getTabbableContent, initialFocusRef, openInteractionTypeRef, openRef, dataRef]);\n\n // A return-focus queued by the effect cleanup. If the effect re-arms in the same commit, a\n // dependency changed while the popup stayed open, so the cleanup was not a close.\n const pendingReturnFocusRef = React.useRef(null);\n\n // Track return focus targets and restore focus on unmount/close.\n useIsoLayoutEffect(() => {\n if (disabled || !floatingFocusElement) {\n pendingReturnFocusRef.current = null;\n return undefined;\n }\n if (pendingReturnFocusRef.current) {\n pendingReturnFocusRef.current.cancelled = true;\n pendingReturnFocusRef.current = null;\n }\n const doc = ownerDocument(floatingFocusElement);\n const elementFocusedBeforeOpen = activeElement(doc);\n // Only an explicit `null` interaction type represents a programmatic open.\n // `undefined` is normalized to `''` by the prop default, so it never reaches\n // here as nullish and is intentionally not treated as programmatic.\n const preferPreviousFocus = openInteractionTypeRef.current == null;\n addPreviouslyFocusedElement(elementFocusedBeforeOpen);\n function onOpenChangeLocal(details) {\n if (!details.open) {\n closeTypeRef.current = getEventType(details.nativeEvent, lastInteractionTypeRef.current);\n }\n\n // Focus guards transfer focus themselves; other close handlers may still need return focus.\n if (details.reason === REASONS.focusOut && details.triggerElement?.hasAttribute(createAttribute('focus-guard')) || details.reason === REASONS.triggerHover && details.nativeEvent.type === 'mouseleave') {\n preventReturnFocusRef.current = true;\n }\n if (details.reason !== REASONS.outsidePress) {\n return;\n }\n if (details.nested) {\n preventReturnFocusRef.current = false;\n } else if (isVirtualClick(details.nativeEvent) || isVirtualPointerEvent(details.nativeEvent)) {\n preventReturnFocusRef.current = false;\n } else {\n // On outside press, only return focus to the reference when the browser supports the\n // `focus({ preventScroll })` option; without it, restoring focus scrolls the page.\n // Chrome on Android and Samsung Internet still don't support `preventScroll`\n // (https://issues.chromium.org/issues/41453122), so the runtime check keeps return\n // focus disabled there to avoid the scroll jump.\n let isPreventScrollSupported = false;\n ownerDocument(floatingFocusElement).createElement('div').focus({\n get preventScroll() {\n isPreventScrollSupported = true;\n return false;\n }\n });\n if (isPreventScrollSupported) {\n preventReturnFocusRef.current = false;\n } else {\n preventReturnFocusRef.current = true;\n }\n }\n }\n events.on('openchange', onOpenChangeLocal);\n function getReturnElement(closeType) {\n const returnFocusValueOrFn = returnFocusRef.current;\n let resolvedReturnFocusValue = typeof returnFocusValueOrFn === 'function' ? returnFocusValueOrFn(closeType) : returnFocusValueOrFn;\n\n // `null` should fallback to default behavior in case of an empty ref.\n if (resolvedReturnFocusValue === undefined || resolvedReturnFocusValue === false) {\n return null;\n }\n if (resolvedReturnFocusValue === null) {\n resolvedReturnFocusValue = true;\n }\n const referenceReturnElement = domReference?.isConnected ? domReference : null;\n const previousReturnElement = elementFocusedBeforeOpen?.isConnected && getNodeName(elementFocusedBeforeOpen) !== 'body' ? elementFocusedBeforeOpen : null;\n let defaultReturnElement = preferPreviousFocus ? previousReturnElement || referenceReturnElement : referenceReturnElement || previousReturnElement;\n if (!defaultReturnElement) {\n defaultReturnElement = getPreviouslyFocusedElement() || null;\n }\n if (typeof resolvedReturnFocusValue === 'boolean') {\n return defaultReturnElement;\n }\n return resolveRef(resolvedReturnFocusValue) || defaultReturnElement || null;\n }\n return () => {\n events.off('openchange', onOpenChangeLocal);\n const activeEl = activeElement(doc);\n const insideElements = getResolvedInsideElements();\n const isFocusInsideFloatingTree = contains(floating, activeEl) || insideElements.some(element => element === activeEl || contains(element, activeEl)) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some(node => contains(node.context?.elements.floating, activeEl));\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const returnFocusValueOrFn = returnFocusRef.current;\n const closeType = closeTypeRef.current;\n const returnElement = getReturnElement(closeType);\n const job = {\n cancelled: false\n };\n pendingReturnFocusRef.current = job;\n queueMicrotask(() => {\n if (pendingReturnFocusRef.current === job) {\n pendingReturnFocusRef.current = null;\n }\n // `returnElement` if it is tabbable, otherwise its first tabbable child,\n // otherwise `returnElement` itself (which may not be tabbable at all).\n const tabbableReturnElement = getFirstTabbableElement(returnElement);\n // Read in the cleanup on purpose: the latest `explicitReturnFocus` decides.\n const hasExplicitReturnFocus =\n // eslint-disable-next-line react-hooks/exhaustive-deps\n explicitReturnFocusRef.current ?? typeof returnFocusValueOrFn !== 'boolean';\n if (!job.cancelled && returnFocusValueOrFn && !preventReturnFocusRef.current && isHTMLElement(tabbableReturnElement) && (\n // If the focus moved somewhere else after mount, avoid returning focus\n // since it likely entered a different element which should be\n // respected: https://github.com/floating-ui/floating-ui/issues/2607\n !hasExplicitReturnFocus && tabbableReturnElement !== activeEl && activeEl !== doc.body ? isFocusInsideFloatingTree : true)) {\n const focusOptions = {\n preventScroll: true\n };\n if (closeType === 'keyboard') {\n focusOptions.focusVisible = true;\n }\n tabbableReturnElement.focus(focusOptions);\n }\n\n // A cancelled return must also clear suppression before the next close.\n preventReturnFocusRef.current = false;\n });\n };\n }, [disabled, floating, floatingFocusElement, returnFocusRef, explicitReturnFocusRef, openInteractionTypeRef, events, tree, domReference, getNodeId, getResolvedInsideElements]);\n\n // Safari may randomly scroll to the bottom of the page if an input inside a popup has focus\n // when the popup unmounts from the DOM.\n // By blurring it before the popup unmounts, we can prevent this behavior.\n useIsoLayoutEffect(() => {\n if (!platform.engine.webkit || open || !floating) {\n return;\n }\n const activeEl = activeElement(ownerDocument(floating));\n if (!isHTMLElement(activeEl) || !isTypeableElement(activeEl)) {\n return;\n }\n if (contains(floating, activeEl)) {\n activeEl.blur();\n }\n }, [open, floating]);\n\n // Synchronize the focus manager state (modal, closeOnFocusOut, open, etc.) to the\n // FloatingPortal context, which uses it to decide whether to render its own guards.\n useIsoLayoutEffect(() => {\n if (disabled || !portalContext) {\n return undefined;\n }\n portalContext.setFocusManagerState({\n modal,\n closeOnFocusOut,\n open,\n onOpenChange: store.setOpen,\n domReference\n });\n return () => {\n portalContext.setFocusManagerState(null);\n };\n }, [disabled, portalContext, modal, open, store, closeOnFocusOut, domReference]);\n\n // Keep the floating element tabIndex in sync and clear stale focus records.\n useIsoLayoutEffect(() => {\n if (disabled || !floatingFocusElement) {\n return undefined;\n }\n handleTabIndex(floatingFocusElement);\n return () => {\n queueMicrotask(clearDisconnectedPreviouslyFocusedElements);\n };\n }, [disabled, floatingFocusElement]);\n const shouldRenderGuards = !disabled && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [shouldRenderGuards && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"inside\",\n ref: mergedBeforeGuardRef,\n onFocus: event => {\n if (modal) {\n const els = getTabbableContent();\n // enqueueFocus returns a rAF-cancel function we don't need here.\n void enqueueFocus(els[els.length - 1]);\n } else if (portalContext?.portalNode) {\n preventReturnFocusRef.current = false;\n if (isOutsideEvent(event, portalContext.portalNode)) {\n const nextTabbable = getNextTabbable(domReference);\n nextTabbable?.focus();\n } else {\n resolveRef(previousFocusableElement ?? portalContext.beforeOutsideRef)?.focus();\n }\n }\n }\n }), children, shouldRenderGuards && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"inside\",\n ref: mergedAfterGuardRef,\n onFocus: event => {\n if (modal) {\n // enqueueFocus returns a rAF-cancel function we don't need here.\n void enqueueFocus(getTabbableContent()[0]);\n } else if (portalContext?.portalNode) {\n if (closeOnFocusOut) {\n preventReturnFocusRef.current = true;\n }\n if (isOutsideEvent(event, portalContext.portalNode)) {\n const prevTabbable = getPreviousTabbable(domReference);\n prevTabbable?.focus();\n } else {\n resolveRef(nextFocusableElement ?? portalContext.afterOutsideRef)?.focus();\n }\n }\n }\n })]\n });\n}","import * as React from 'react';\n\n/**\n * @internal\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const InternalBackdrop = /*#__PURE__*/React.forwardRef(function InternalBackdrop(props, ref) {\n const {\n cutout,\n ...otherProps\n } = props;\n let clipPath;\n if (cutout) {\n const rect = cutout.getBoundingClientRect();\n clipPath = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${rect.left}px ${rect.top}px,${rect.left}px ${rect.bottom}px,${rect.right}px ${rect.bottom}px,${rect.right}px ${rect.top}px,${rect.left}px ${rect.top}px)`;\n }\n return /*#__PURE__*/_jsx(\"div\", {\n ref: ref,\n role: \"presentation\"\n // Ensures Floating UI's outside press detection runs, as it considers\n // it an element that existed when the popup rendered.\n ,\n \"data-base-ui-inert\": \"\",\n ...otherProps,\n style: {\n position: 'fixed',\n inset: 0,\n userSelect: 'none',\n WebkitUserSelect: 'none',\n clipPath\n }\n });\n});\nif (process.env.NODE_ENV !== \"production\") InternalBackdrop.displayName = \"InternalBackdrop\";","'use client';\n\nimport { isOverflowElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from \"./addEventListener.mjs\";\nimport { platform } from \"./platform/index.mjs\";\nimport { ownerDocument, ownerWindow } from \"./owner.mjs\";\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.mjs\";\nimport { Timeout } from \"./useTimeout.mjs\";\nimport { AnimationFrame } from \"./useAnimationFrame.mjs\";\nlet originalHtmlStyles = {};\nlet originalBodyStyles = {};\nlet originalHtmlScrollBehavior = '';\n\n// The viewport's overflow comes from <html> when it establishes its own scroll container, and\n// propagates from <body> otherwise. An `overflow` style on the other element doesn't lock the page.\nfunction getViewportScroller(html, body) {\n return isOverflowElement(html) ? html : body;\n}\nfunction isPageScrollLocked(win, html, body) {\n return /hidden|clip/.test(win.getComputedStyle(getViewportScroller(html, body)).overflowY);\n}\nfunction hasInsetScrollbars(referenceElement) {\n if (typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const win = ownerWindow(doc);\n return win.innerWidth - doc.documentElement.clientWidth > 0;\n}\nfunction supportsStableScrollbarGutter(referenceElement) {\n const supported = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('scrollbar-gutter', 'stable');\n if (!supported || typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const scrollContainer = getViewportScroller(html, body);\n const originalScrollContainerOverflowY = scrollContainer.style.overflowY;\n const originalHtmlStyleGutter = html.style.scrollbarGutter;\n html.style.scrollbarGutter = 'stable';\n scrollContainer.style.overflowY = 'scroll';\n const before = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = 'hidden';\n const after = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = originalScrollContainerOverflowY;\n html.style.scrollbarGutter = originalHtmlStyleGutter;\n return before === after;\n}\nfunction preventScrollOverlayScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n\n // If an `overflow` style is present on <html>, we need to lock it, because a lock on <body>\n // won't have any effect.\n // But if <body> has an `overflow` style (like `overflow-x: hidden`), we need to lock it\n // instead, as sticky elements shift otherwise.\n const elementToLock = getViewportScroller(html, body);\n const originalElementToLockStyles = {\n overflowY: elementToLock.style.overflowY,\n overflowX: elementToLock.style.overflowX\n };\n Object.assign(elementToLock.style, {\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n return () => {\n Object.assign(elementToLock.style, originalElementToLockStyles);\n };\n}\nfunction preventScrollInsetScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const win = ownerWindow(html);\n let scrollTop = 0;\n let scrollLeft = 0;\n let updateGutterOnly = false;\n const resizeFrame = AnimationFrame.create();\n\n // Pinch-zoom in Safari causes a shift. Just don't lock scroll if there's any pinch-zoom.\n if (platform.engine.webkit && (win.visualViewport?.scale ?? 1) !== 1) {\n return () => {};\n }\n function lockScroll() {\n /* DOM reads: */\n\n const htmlStyles = win.getComputedStyle(html);\n const bodyStyles = win.getComputedStyle(body);\n const htmlScrollbarGutterValue = htmlStyles.scrollbarGutter || '';\n const hasBothEdges = htmlScrollbarGutterValue.includes('both-edges');\n const scrollbarGutterValue = hasBothEdges ? 'stable both-edges' : 'stable';\n scrollTop = html.scrollTop;\n scrollLeft = html.scrollLeft;\n originalHtmlStyles = {\n scrollbarGutter: html.style.scrollbarGutter,\n overflowY: html.style.overflowY,\n overflowX: html.style.overflowX\n };\n originalHtmlScrollBehavior = html.style.scrollBehavior;\n originalBodyStyles = {\n position: body.style.position,\n height: body.style.height,\n width: body.style.width,\n boxSizing: body.style.boxSizing,\n overflowY: body.style.overflowY,\n overflowX: body.style.overflowX,\n scrollBehavior: body.style.scrollBehavior\n };\n const isScrollableY = html.scrollHeight > html.clientHeight;\n const isScrollableX = html.scrollWidth > html.clientWidth;\n const hasConstantOverflowY = htmlStyles.overflowY === 'scroll' || bodyStyles.overflowY === 'scroll';\n const hasConstantOverflowX = htmlStyles.overflowX === 'scroll' || bodyStyles.overflowX === 'scroll';\n\n // Values can be negative in Firefox\n const scrollbarWidth = Math.max(0, win.innerWidth - body.clientWidth);\n const scrollbarHeight = Math.max(0, win.innerHeight - body.clientHeight);\n\n // Avoid shift due to the default <body> margin. This does cause elements to be clipped\n // with whitespace. Warn if <body> has margins?\n const marginY = parseFloat(bodyStyles.marginTop) + parseFloat(bodyStyles.marginBottom);\n const marginX = parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight);\n const elementToLock = getViewportScroller(html, body);\n updateGutterOnly = supportsStableScrollbarGutter(referenceElement);\n\n /*\n * DOM writes:\n * Do not read the DOM past this point!\n */\n\n if (updateGutterOnly) {\n html.style.scrollbarGutter = scrollbarGutterValue;\n elementToLock.style.overflowY = 'hidden';\n elementToLock.style.overflowX = 'hidden';\n return;\n }\n Object.assign(html.style, {\n scrollbarGutter: scrollbarGutterValue,\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n if (isScrollableY || hasConstantOverflowY) {\n html.style.overflowY = 'scroll';\n }\n if (isScrollableX || hasConstantOverflowX) {\n html.style.overflowX = 'scroll';\n }\n Object.assign(body.style, {\n position: 'relative',\n height: marginY || scrollbarHeight ? `calc(100dvh - ${marginY + scrollbarHeight}px)` : '100dvh',\n width: marginX || scrollbarWidth ? `calc(100vw - ${marginX + scrollbarWidth}px)` : '100vw',\n boxSizing: 'border-box',\n // Assign the longhands that `cleanup` restores, so nothing is left behind.\n overflowY: 'hidden',\n overflowX: 'hidden',\n scrollBehavior: 'unset'\n });\n body.scrollTop = scrollTop;\n body.scrollLeft = scrollLeft;\n html.setAttribute('data-base-ui-scroll-locked', '');\n html.style.scrollBehavior = 'unset';\n }\n function cleanup() {\n Object.assign(html.style, originalHtmlStyles);\n Object.assign(body.style, originalBodyStyles);\n if (!updateGutterOnly) {\n html.scrollTop = scrollTop;\n html.scrollLeft = scrollLeft;\n html.removeAttribute('data-base-ui-scroll-locked');\n html.style.scrollBehavior = originalHtmlScrollBehavior;\n }\n }\n function handleResize() {\n cleanup();\n resizeFrame.request(lockScroll);\n }\n lockScroll();\n const unsubscribeResize = addEventListener(win, 'resize', handleResize);\n return () => {\n resizeFrame.cancel();\n cleanup();\n // Sometimes this cleanup can run after test teardown because it is called\n // in a `setTimeout(fn, 0)`. Guard the returned cleanup to avoid calling\n // `removeEventListener` when it is no longer available in tests.\n if (typeof win.removeEventListener === 'function') {\n unsubscribeResize();\n }\n };\n}\nclass ScrollLocker {\n lockCount = 0;\n restore = null;\n timeoutLock = Timeout.create();\n timeoutUnlock = Timeout.create();\n acquire(referenceElement) {\n this.lockCount += 1;\n if (this.lockCount === 1 && this.restore === null) {\n this.timeoutLock.start(0, () => this.lock(referenceElement));\n }\n return this.release;\n }\n release = () => {\n this.lockCount -= 1;\n if (this.lockCount === 0 && this.restore) {\n this.timeoutUnlock.start(0, this.unlock);\n }\n };\n unlock = () => {\n if (this.lockCount === 0 && this.restore) {\n this.restore?.();\n this.restore = null;\n }\n };\n lock(referenceElement) {\n if (this.lockCount === 0 || this.restore !== null) {\n return;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const win = ownerWindow(html);\n\n // The page is already locked, either by the site author or by a non-Base UI overlay that\n // hasn't cleaned up yet. Leave it alone and wait for the lock to clear before taking over,\n // otherwise we'd snapshot the locked state and restore it after our own lock is released.\n if (isPageScrollLocked(win, html, body)) {\n const observer = new win.MutationObserver(() => {\n if (isPageScrollLocked(win, html, body)) {\n return;\n }\n observer.disconnect();\n this.restore = null;\n this.lock(referenceElement);\n });\n\n // Watch every attribute: locks are applied through inline styles, classes, or attributes\n // paired with a stylesheet (`data-scroll-locked` in react-remove-scroll, for example).\n const options = {\n attributes: true\n };\n observer.observe(html, options);\n observer.observe(body, options);\n this.restore = () => observer.disconnect();\n return;\n }\n const hasOverlayScrollbars = platform.os.ios || !hasInsetScrollbars(referenceElement);\n\n // On iOS, scroll locking does not work if the navbar is collapsed. Due to numerous\n // side effects and bugs that arise on iOS, it must be researched extensively before\n // being enabled to ensure it doesn't cause the following issues:\n // - Textboxes must scroll into view when focused, nor cause a glitchy scroll animation.\n // - The navbar must not force itself into view and cause layout shift.\n // - Scroll containers must not flicker upon closing a popup when it has an exit animation.\n this.restore = hasOverlayScrollbars ? preventScrollOverlayScrollbars(referenceElement) : preventScrollInsetScrollbars(referenceElement);\n }\n}\nconst SCROLL_LOCKER = new ScrollLocker();\n\n/**\n * Locks the scroll of the document when enabled.\n *\n * @param enabled - Whether to enable the scroll lock.\n * @param referenceElement - Element to use as a reference for lock calculations.\n */\nexport function useScrollLock(enabled = true, referenceElement = null) {\n useIsoLayoutEffect(() => {\n if (!enabled) {\n return undefined;\n }\n return SCROLL_LOCKER.acquire(referenceElement);\n }, [enabled, referenceElement]);\n}"],"ignoreList":[0,1,2,3,4],"mappings":"A,6qBACIsD,EAAQ,EACZ,SAAgBC,EAAa,EAAI,EAAU,CAAC,EAAG,CAC7C,GAAM,CACJ,gBAAgB,GAChB,OAAO,GACP,eACEC,EACJ,qBAAqBF,CAAK,EAC1B,SAASG,GAAO,EACV,IAAgBC,EAAY,IAGhCC,GAAI,MAAM,CACR,eACF,CAAC,CACH,CACA,GAAIC,EAEF,OADAH,EAAK,EACEvC,EAET,IAAM2C,EAAe,sBAAsBJ,CAAI,EAE/C,MADA,GAAQI,MACK,CACPP,IAAUO,IACZ,qBAAqBA,CAAY,EACjC,EAAQ,EAEZ,CACF,CCzBA,IAAMC,EAAa,qBACfC,EAAuB,IAAI,QAC3BC,EAA0B,IAAI,QAC9BC,EAAmB,IAAI,QACvBC,EAAY,EAChB,SAASC,EAAW,EAAM,CAIxB,OAHKC,EAGE3C,EAAa2C,CAAI,EAAIA,EAAK,KAAOD,EAAWC,EAAK,UAAU,EAFzD,IAGX,CACA,IAAMC,GAAmB,EAAQ,IAAYC,EAAQ,IAAI,GAAU,CACjE,GAAIC,EAAO,SAASC,CAAM,EACxB,OAAOA,EAET,IAAMC,EAAkBN,EAAWK,CAAM,EAIzC,OAHID,EAAO,SAASE,CAAe,EAC1BA,EAEF,IACT,CAAC,CAAC,CAAC,OAAO,GAAKC,GAAK,IAAI,EAClBC,EAAe,GAAW,CAC9B,IAAMC,EAAO,IAAI,IAQjB,OAPAN,EAAQ,QAAQ,GAAU,CACxB,IAAIF,EAAOI,EACX,KAAOJ,GAAQ,CAACQ,EAAK,IAAIR,CAAI,GAC3BQ,EAAK,IAAIR,CAAI,EACb,EAAOA,EAAK,UAEhB,CAAC,EACMQ,CACT,EACMC,GAA0B,EAAM,EAAc,IAAiB,CACnE,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AAK,UAAU,EACf,KAAK,QAAU,KAEnB,EACA,KAAK,EAAkB,CACrB,GAAI,KAAK,YAAc,GAAK,KAAK,UAAY,KAC3C,OAEF,IAAMzE,EAAMhI,EAAcyM,CAAgB,EACpCH,EAAOtE,EAAI,gBACX7E,EAAO6E,EAAI,KACX5D,EAAMlG,EAAYoO,CAAI,EAK5B,GAAIC,EAAmBnI,EAAKkI,EAAMnJ,CAAI,EAAG,CACvC,IAAMqL,EAAW,IAAIpK,EAAI,qBAAuB,CAC1CmI,EAAmBnI,EAAKkI,EAAMnJ,CAAI,IAGtCqL,EAAS,WAAW,EACpB,KAAK,QAAU,KACf,KAAK,KAAK/B,CAAgB,EAC5B,CAAC,EAIKlL,EAAU,CACd,WAAY,EACd,EACAiN,EAAS,QAAQlC,EAAM/K,CAAO,EAC9BiN,EAAS,QAAQrL,EAAM5B,CAAO,EAC9B,KAAK,YAAgBiN,EAAS,WAAW,EACzC,MACF,CACA,IAAMC,EAAuBrQ,GAAmB,CAACoO,EAAmBC,CAAgB,EAQpF,KAAK,QAAUgC,EAAuBzB,EAA+BP,CAAgB,EAAIU,GAA6BV,CAAgB,CACxI,CACF,EASA,SAAgBiC,EAAc,EAAU,GAAM,EAAmB,KAAM,CACrExP,MAAyB,CACvB,GAAKyP,EAGL,OAAOJ,EAAc,QAAQ9B,CAAgB,CAC/C,EAAG,CAACkC,EAASlC,CAAgB,CAAC,CAChC,C"}
@@ -0,0 +1,2 @@
1
+ import{N as e}from"./useButton-DQ6Sgg7h.js";import{x as t}from"./reason-parts-B6nt3n-F.js";var n=0,r=class e{static create(){return new e}currentId=n;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=n,t()},e)}isStarted(){return this.currentId!==n}clear=()=>{this.currentId!==n&&(clearTimeout(this.currentId),this.currentId=n)};disposeEffect=()=>this.clear};function i(){let n=e(r.create).current;return t(n.disposeEffect),n}export{i as n,r as t};
2
+ //# sourceMappingURL=useTimeout-SGSgaiy1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTimeout-SGSgaiy1.js","names":["useRefWithInit","useOnMount","EMPTY","Timeout","fn","delay","useTimeout","timeout"],"sources":["../../../../node_modules/@base-ui/utils/useTimeout.mjs"],"sourcesContent":["'use client';\n\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nimport { useOnMount } from \"./useOnMount.mjs\";\nconst EMPTY = 0;\nexport class Timeout {\n static create() {\n return new Timeout();\n }\n currentId = EMPTY;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = EMPTY;\n fn();\n }, delay); /* Node.js types are enabled in development */\n }\n isStarted() {\n return this.currentId !== EMPTY;\n }\n clear = () => {\n if (this.currentId !== EMPTY) {\n clearTimeout(this.currentId);\n this.currentId = EMPTY;\n }\n };\n disposeEffect = () => {\n return this.clear;\n };\n}\n\n/**\n * A `setTimeout` with automatic cleanup and guard.\n */\nexport function useTimeout() {\n const timeout = useRefWithInit(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}"],"ignoreList":[0],"mappings":"A,2FAIA,IAAME,EAAQ,EACDC,EAAb,MAAaA,CAAQ,CACnB,OAAO,QAAS,CACd,OAAO,IAAIA,CACb,CACA,UAAYD,EAKZ,MAAM,EAAO,EAAI,CACf,KAAK,MAAM,EACX,KAAK,UAAY,eAAiB,CAChC,KAAK,UAAYA,EACjBE,EAAG,CACL,EAAGC,CAAK,CACV,CACA,WAAY,CACV,OAAO,KAAK,YAAcH,CAC5B,CACA,UAAc,CACR,KAAK,YAAcA,IACrB,aAAa,KAAK,SAAS,EAC3B,KAAK,UAAYA,EAErB,EACA,kBACS,KAAK,KAEhB,EAKA,SAAgBI,GAAa,CAC3B,IAAMC,EAAUP,EAAeG,EAAQ,MAAM,CAAC,CAAC,QAE/C,OADAF,EAAWM,EAAQ,aAAa,EACzBA,CACT,C"}
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t}from"./utils-BFSetRo1.js";import{M as n}from"./useButton-DQ6Sgg7h.js";import{b as r}from"./useOpenChangeComplete-DUM-_E2z.js";var i=e(t(),1);function a(e,t=!1,a=!1,o=!1){let[s,c]=i.useState(e&&t?`idle`:void 0),[l,u]=i.useState(e&&!o);return e&&!l&&(u(!0),c(`starting`)),!e&&l&&s!==`ending`&&!a&&c(`ending`),!e&&!l&&s===`ending`&&c(void 0),n(()=>{if(!e&&l&&s!==`ending`&&a){let e=r.request(()=>{c(`ending`)});return()=>{r.cancel(e)}}},[e,l,s,a]),n(()=>{if(!e||t||s===void 0)return;let n=r.request(()=>{c(void 0)});return()=>{r.cancel(n)}},[t,e,s]),n(()=>{if(!e||!t)return;e&&l&&s!==`idle`&&c(`starting`);let n=r.request(()=>{c(`idle`)});return()=>{r.cancel(n)}},[t,e,l,s]),{mounted:l,setMounted:u,transitionStatus:s}}export{a as t};
2
+ //# sourceMappingURL=useTransitionStatus-Dy_zd4z2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTransitionStatus-Dy_zd4z2.js","names":["__toESM","require_react","useIsoLayoutEffect","AnimationFrame","import_react","useTransitionStatus","transitionStatus","setTransitionStatus","open","enableIdleState","mounted","setMounted","animateInitialOpen","deferEndingState","frame"],"sources":["../../../../node_modules/@base-ui/react/internals/useTransitionStatus.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { AnimationFrame } from '@base-ui/utils/useAnimationFrame';\n/**\n * Provides a status string for CSS animations.\n * @param open - a boolean that determines if the element is open.\n * @param enableIdleState - a boolean that enables the `'idle'` state between `'starting'` and `'ending'`\n * @param deferEndingState - a boolean that delays the `'ending'` state by a frame\n * @param animateInitialOpen - a boolean that makes an element which mounts already open still go\n * through `'starting'`. Off by default so content that was open on the first render (a\n * `defaultOpen` popup on page load, SSR'd markup) doesn't animate in.\n */\nexport function useTransitionStatus(open, enableIdleState = false, deferEndingState = false, animateInitialOpen = false) {\n const [transitionStatus, setTransitionStatus] = React.useState(open && enableIdleState ? 'idle' : undefined);\n // Starting at `false` while open lets the `open && !mounted` branch below run on the first\n // render, which is what produces the `'starting'` phase. React re-renders before committing, so\n // the element is still mounted in the same pass.\n const [mounted, setMounted] = React.useState(open && !animateInitialOpen);\n if (open && !mounted) {\n setMounted(true);\n setTransitionStatus('starting');\n }\n if (!open && mounted && transitionStatus !== 'ending' && !deferEndingState) {\n setTransitionStatus('ending');\n }\n if (!open && !mounted && transitionStatus === 'ending') {\n setTransitionStatus(undefined);\n }\n useIsoLayoutEffect(() => {\n if (!open && mounted && transitionStatus !== 'ending' && deferEndingState) {\n const frame = AnimationFrame.request(() => {\n setTransitionStatus('ending');\n });\n return () => {\n AnimationFrame.cancel(frame);\n };\n }\n return undefined;\n }, [open, mounted, transitionStatus, deferEndingState]);\n useIsoLayoutEffect(() => {\n // Nothing to clear when the element mounted open or reopened after its exit settled.\n if (!open || enableIdleState || transitionStatus === undefined) {\n return undefined;\n }\n const frame = AnimationFrame.request(() => {\n // Avoid `flushSync` here due to Firefox.\n // See https://github.com/mui/base-ui/pull/3424\n setTransitionStatus(undefined);\n });\n return () => {\n AnimationFrame.cancel(frame);\n };\n }, [enableIdleState, open, transitionStatus]);\n useIsoLayoutEffect(() => {\n if (!open || !enableIdleState) {\n return undefined;\n }\n if (open && mounted && transitionStatus !== 'idle') {\n setTransitionStatus('starting');\n }\n const frame = AnimationFrame.request(() => {\n setTransitionStatus('idle');\n });\n return () => {\n AnimationFrame.cancel(frame);\n };\n }, [enableIdleState, open, mounted, transitionStatus]);\n return {\n mounted,\n setMounted,\n transitionStatus\n };\n}"],"ignoreList":[0],"mappings":"A,8MAcA,SAAgBK,EAAoB,EAAM,EAAkB,GAAO,EAAmB,GAAO,EAAqB,GAAO,CACvH,GAAM,CAACC,EAAkBC,GAAAH,EAA6B,SAASI,GAAQC,EAAkB,OAAS,IAAA,EAAS,EAIrG,CAACC,EAASC,GAAAP,EAAoB,SAASI,GAAQ,CAACI,CAAkB,EAkDxE,OAjDIJ,GAAQ,CAACE,IACXC,EAAW,EAAI,EACfJ,EAAoB,UAAU,GAE5B,CAACC,GAAQE,GAAWJ,IAAqB,UAAY,CAACO,GACxDN,EAAoB,QAAQ,EAE1B,CAACC,GAAQ,CAACE,GAAWJ,IAAqB,UAC5CC,EAAoB,IAAA,EAAS,EAE/BL,MAAyB,CACvB,GAAI,CAACM,GAAQE,GAAWJ,IAAqB,UAAYO,EAAkB,CACzE,IAAMC,EAAQX,EAAe,YAAc,CACzCI,EAAoB,QAAQ,CAC9B,CAAC,EACD,UAAa,CACXJ,EAAe,OAAOW,CAAK,CAC7B,CACF,CAEF,EAAG,CAACN,EAAME,EAASJ,EAAkBO,CAAgB,CAAC,EACtDX,MAAyB,CAEvB,GAAI,CAACM,GAAQC,GAAmBH,IAAqB,IAAA,GACnD,OAEF,IAAMQ,EAAQX,EAAe,YAAc,CAGzCI,EAAoB,IAAA,EAAS,CAC/B,CAAC,EACD,UAAa,CACXJ,EAAe,OAAOW,CAAK,CAC7B,CACF,EAAG,CAACL,EAAiBD,EAAMF,CAAgB,CAAC,EAC5CJ,MAAyB,CACvB,GAAI,CAACM,GAAQ,CAACC,EACZ,OAEED,GAAQE,GAAWJ,IAAqB,QAC1CC,EAAoB,UAAU,EAEhC,IAAMO,EAAQX,EAAe,YAAc,CACzCI,EAAoB,MAAM,CAC5B,CAAC,EACD,UAAa,CACXJ,EAAe,OAAOW,CAAK,CAC7B,CACF,EAAG,CAACL,EAAiBD,EAAME,EAASJ,CAAgB,CAAC,EAC9C,CACL,UACA,aACA,kBACF,CACF,C"}
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t}from"./utils-BFSetRo1.js";import{S as n,n as r,x as i,y as a}from"./useOpenChangeComplete-DUM-_E2z.js";import{F as o,M as s,O as c,j as l}from"./useButton-DQ6Sgg7h.js";import{_ as u,a as d,g as f}from"./reason-parts-B6nt3n-F.js";import{R as p,T as m,V as h,g,h as _}from"./FloatingPortal-D_eDEbvZ.js";import{n as v}from"./useTimeout-SGSgaiy1.js";import{D as y,T as b}from"./store-SrwTVjPk.js";import{t as x}from"./useScrollLock-BWBVawYJ.js";import{t as S}from"./useValueChanged-BqSvidps.js";var C=e(t(),1);function w(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:s=!0,ignoreMouse:c=!1,stickIfOpen:l=!0,touchOpenDelay:d=0,reason:p=f}=t,h=e.context.dataRef,g=C.useRef(void 0),_=i(),x=v(),S=C.useMemo(()=>{function t(t,n,r,i){let a=u(p,n,r);t&&i===`touch`&&d>0?x.start(d,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let i=h.current.openEvent,a=e.select(`domReferenceElement`)!==n;return t&&a||!t||!s?!0:i&&(typeof l==`function`?l():l)?!r(i.type):!1}return{onPointerDown(e){g.current=b(e.pointerType,!0)&&y(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=g.current,s=i.nativeEvent,l=e.select(`open`);if(i.button!==0||r===`click`||b(o,!0)&&c)return;let u=n(l,i.currentTarget,e=>e===`click`||e===`mousedown`),d=a(s),f=m(d);if(f||o===`virtual`){t(u,s,f?d:i.currentTarget,o);return}let p=i.currentTarget;_.request(()=>{t(u,s,p,o)})},onClick(i){if(r===`mousedown-only`)return;let a=g.current;r===`mousedown`&&a?g.current=void 0:b(a,!0)&&c||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,a)},onKeyDown(){g.current=void 0}}},[h,r,c,p,e,l,s,_,x,d]);return C.useMemo(()=>n?{reference:S}:o,[n,S])}function T(e){let t=C.useRef(``),n=C.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:C.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function E(e,t){let{onClick:n,onPointerDown:r}=T(c((n,r)=>{(typeof e==`function`?e():e)||t(r||(p?`touch`:``))}));return C.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function D(e){let[t,n]=C.useState(null),r=E(e,n);return S(e,t=>{t&&!e&&n(null)}),C.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var O=C.createContext(void 0);function k(e){let t=C.useContext(O);if(t===void 0&&!e)throw Error(l(69));return t}function A(e){let{store:t,domReference:n,positionerElement:i,open:a}=e,o=C.useRef(null),c=C.useRef(null),l=r(i);s(()=>{a||(c.current?.abort(),c.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[a,t]),s(()=>{let e=n,r=o.current;if(e&&(o.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return c.current=i,l(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,l,t])}var j=20;function M(e,t,n,r){let[i,a]=C.useState(!1);s(()=>{if(!e||!t||n==null){a(!1);return}let r=h(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-j)},[e,t,n]),x(e&&(!t||i),r)}var N=e(n(),1);function P(e,t){function n(n,r,i){let a=n.currentTarget;N.flushSync(()=>{e.setOpen(!1,u(d,n.nativeEvent,a))}),_(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&g(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}export{D as a,k as i,M as n,E as o,A as r,w as s,P as t};
2
+ //# sourceMappingURL=useTriggerFocusGuards-9VjGYE1p.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTriggerFocusGuards-9VjGYE1p.js","names":["REASONS.triggerPress","platform.os.ios","_formatErrorMessage","REASONS.focusOut","__toESM","require_react","require_react_dom","useAnimationsFinished","useAnimationFrame","getTarget","EMPTY_OBJECT","useIsoLayoutEffect","useStableCallback","formatErrorMessage","createChangeEventDetails","focusOut","triggerPress","ios","isTypeableElement","ownerDocument","getTabbableNearElement","useTimeout","isVirtualPointerEvent","isMouseLikePointerType","useScrollLock","useValueChanged","import_react","useClick","eventOption","props","dataRef","store","pointerTypeRef","frame","touchOpenTimeout","reference","setOpenWithTouchDelay","details","reason","nativeEvent","target","nextOpen","pointerType","touchOpenDelay","getNextOpen","openEvent","hasClickedOnInactiveTrigger","currentTarget","open","toggle","stickIfOpen","isClickLikeOpenEvent","event","ignoreMouse","openEventType","isTypeable","eventCurrentTarget","enabled","useEnhancedClickHandler","lastClickInteractionTypeRef","handlePointerDown","handler","useOpenMethodTriggerProps","setOpenMethod","interactionType","onClick","onPointerDown","useOpenInteractionType","openMethod","triggerProps","previousOpen","ToolbarRootContext","useToolbarRootContext","context","optional","useTriggerSwitchTransition","parameters","previousTriggerRef","pendingSwitchRef","runOnceAnimationsFinish","positionerElement","currentTrigger","domReference","previousTrigger","abortController","VIEWPORT_WIDTH_TOLERANCE_PX","useAnchoredPopupScrollLock","touchOpenShouldLockScroll","setTouchOpenShouldLockScroll","touchOpen","viewportWidth","popupWidth","referenceElement","import_react_dom","useTriggerFocusGuards","closeAndFocus","guard","triggerElementRef","direction","handlePreFocusGuardFocus","handleFocusTargetFocus","isOutsideEvent"],"sources":["../../../../node_modules/@base-ui/react/floating-ui-react/hooks/useClick.mjs","../../../../node_modules/@base-ui/utils/useEnhancedClickHandler.mjs","../../../../node_modules/@base-ui/react/utils/useOpenInteractionType.mjs","../../../../node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs","../../../../node_modules/@base-ui/react/internals/useTriggerSwitchTransition.mjs","../../../../node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs","../../../../node_modules/@base-ui/react/utils/popups/useTriggerFocusGuards.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getTarget, isTypeableElement } from \"../utils/element.mjs\";\nimport { isMouseLikePointerType, isVirtualPointerEvent } from \"../utils/event.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\n/**\n * Opens or closes the floating element when clicking the reference element.\n * @see https://floating-ui.com/docs/useClick\n */\nexport function useClick(store, props = {}) {\n const {\n enabled = true,\n event: eventOption = 'click',\n toggle = true,\n ignoreMouse = false,\n stickIfOpen = true,\n touchOpenDelay = 0,\n reason = REASONS.triggerPress\n } = props;\n const dataRef = store.context.dataRef;\n const pointerTypeRef = React.useRef(undefined);\n const frame = useAnimationFrame();\n const touchOpenTimeout = useTimeout();\n const reference = React.useMemo(() => {\n function setOpenWithTouchDelay(nextOpen, nativeEvent, target, pointerType) {\n const details = createChangeEventDetails(reason, nativeEvent, target);\n if (nextOpen && pointerType === 'touch' && touchOpenDelay > 0) {\n touchOpenTimeout.start(touchOpenDelay, () => {\n store.setOpen(true, details);\n });\n } else {\n store.setOpen(nextOpen, details);\n }\n }\n function getNextOpen(open, currentTarget, isClickLikeOpenEvent) {\n const openEvent = dataRef.current.openEvent;\n const hasClickedOnInactiveTrigger = store.select('domReferenceElement') !== currentTarget;\n if (open && hasClickedOnInactiveTrigger) {\n // Moving between triggers should always open the newly active one.\n return true;\n }\n if (!open) {\n // A closed popup should open on the next press.\n return true;\n }\n if (!toggle) {\n // Non-toggle mode never closes on a repeated trigger press.\n return true;\n }\n if (openEvent && (typeof stickIfOpen === 'function' ? stickIfOpen() : stickIfOpen)) {\n // Preserve hover/focus-opened popups until the matching click-like event closes them.\n return !isClickLikeOpenEvent(openEvent.type);\n }\n\n // Otherwise, a repeated click toggles the popup closed.\n return false;\n }\n return {\n onPointerDown(event) {\n // Screen reader activations (Android TalkBack, desktop screen readers) report a\n // mouse-like `pointerType`, but `ignoreMouse` must not drop them: hover logic cannot\n // open for a virtual press since there is no real pointer movement to wait for.\n // Virtual `touch` presses (iOS VoiceOver) keep their type so `touchOpenDelay` applies.\n pointerTypeRef.current = isMouseLikePointerType(event.pointerType, true) && isVirtualPointerEvent(event.nativeEvent) ? 'virtual' : event.pointerType;\n },\n onMouseDown(event) {\n const pointerType = pointerTypeRef.current;\n const nativeEvent = event.nativeEvent;\n const open = store.select('open');\n\n // Ignore all buttons except for the \"main\" button.\n // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button\n if (event.button !== 0 || eventOption === 'click' || isMouseLikePointerType(pointerType, true) && ignoreMouse) {\n return;\n }\n const nextOpen = getNextOpen(open, event.currentTarget, openEventType => openEventType === 'click' || openEventType === 'mousedown');\n\n // Animations sometimes won't run on a typeable element if using a rAF.\n // Focus is always set on these elements. For touch, we may delay opening.\n // A screen reader press opens synchronously, so the popup's focus lands before the reader\n // re-syncs focus to its cursor, which would otherwise read as a stray move.\n const target = getTarget(nativeEvent);\n const isTypeable = isTypeableElement(target);\n if (isTypeable || pointerType === 'virtual') {\n // A virtual press may target a descendant of the trigger; the trigger is what opened.\n setOpenWithTouchDelay(nextOpen, nativeEvent, isTypeable ? target : event.currentTarget, pointerType);\n return;\n }\n\n // Capture the currentTarget before the rAF.\n // as React sets it to null after the event handler completes.\n const eventCurrentTarget = event.currentTarget;\n\n // Wait until focus is set on the element. This is an alternative to\n // `event.preventDefault()` to avoid :focus-visible from appearing when using a pointer.\n frame.request(() => {\n setOpenWithTouchDelay(nextOpen, nativeEvent, eventCurrentTarget, pointerType);\n });\n },\n onClick(event) {\n if (eventOption === 'mousedown-only') {\n return;\n }\n const pointerType = pointerTypeRef.current;\n if (eventOption === 'mousedown' && pointerType) {\n pointerTypeRef.current = undefined;\n return;\n }\n if (isMouseLikePointerType(pointerType, true) && ignoreMouse) {\n return;\n }\n const open = store.select('open');\n const nextOpen = getNextOpen(open, event.currentTarget, openEventType => openEventType === 'click' || openEventType === 'mousedown' || openEventType === 'keydown' || openEventType === 'keyup');\n setOpenWithTouchDelay(nextOpen, event.nativeEvent, event.currentTarget, pointerType);\n },\n onKeyDown() {\n pointerTypeRef.current = undefined;\n }\n };\n }, [dataRef, eventOption, ignoreMouse, reason, store, stickIfOpen, toggle, frame, touchOpenTimeout, touchOpenDelay]);\n return React.useMemo(() => enabled ? {\n reference\n } : EMPTY_OBJECT, [enabled, reference]);\n}","'use client';\n\nimport * as React from 'react';\n/**\n * Provides a cross-browser way to determine the type of the pointer used to click.\n * Safari and Firefox do not provide the PointerEvent to the click handler (they use MouseEvent) yet.\n * Additionally, this implementation detects if the click was triggered by the keyboard.\n *\n * @param handler The function to be called when the button is clicked. The first parameter is the original event and the second parameter is the pointer type.\n */\nexport function useEnhancedClickHandler(handler) {\n const lastClickInteractionTypeRef = React.useRef('');\n const handlePointerDown = React.useCallback(event => {\n if (event.defaultPrevented) {\n return;\n }\n lastClickInteractionTypeRef.current = event.pointerType;\n handler(event, event.pointerType);\n }, [handler]);\n const handleClick = React.useCallback(event => {\n // event.detail has the number of clicks performed on the element. 0 means it was triggered by the keyboard.\n if (event.detail === 0) {\n handler(event, 'keyboard');\n return;\n }\n if ('pointerType' in event) {\n // Chrome and Edge correctly use PointerEvent\n handler(event, event.pointerType);\n } else {\n handler(event, lastClickInteractionTypeRef.current);\n }\n lastClickInteractionTypeRef.current = '';\n }, [handler]);\n return {\n onClick: handleClick,\n onPointerDown: handlePointerDown\n };\n}","'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useEnhancedClickHandler } from '@base-ui/utils/useEnhancedClickHandler';\nimport { platform } from '@base-ui/utils/platform';\nimport { useValueChanged } from \"../internals/useValueChanged.mjs\";\nexport function useOpenMethodTriggerProps(open, setOpenMethod) {\n const handleTriggerClick = useStableCallback((_, interactionType) => {\n const isOpen = typeof open === 'function' ? open() : open;\n if (!isOpen) {\n setOpenMethod(interactionType || (\n // On iOS Safari, the hitslop around touch targets means tapping outside an element's\n // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`\n // will be \"\" in that case.\n platform.os.ios ? 'touch' : ''));\n }\n });\n const {\n onClick,\n onPointerDown\n } = useEnhancedClickHandler(handleTriggerClick);\n return React.useMemo(() => ({\n onClick,\n onPointerDown\n }), [onClick, onPointerDown]);\n}\n\n/**\n * Determines the interaction type (keyboard, mouse, touch, etc.) that opened the component.\n *\n * @param open The open state of the component.\n */\nexport function useOpenInteractionType(open) {\n const [openMethod, setOpenMethod] = React.useState(null);\n const triggerProps = useOpenMethodTriggerProps(open, setOpenMethod);\n useValueChanged(open, previousOpen => {\n if (previousOpen && !open) {\n setOpenMethod(null);\n }\n });\n return React.useMemo(() => ({\n openMethod,\n triggerProps\n }), [openMethod, triggerProps]);\n}","'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const ToolbarRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") ToolbarRootContext.displayName = \"ToolbarRootContext\";\nexport function useToolbarRootContext(optional) {\n const context = React.useContext(ToolbarRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.' : _formatErrorMessage(69));\n }\n return context;\n}","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useAnimationsFinished } from \"./useAnimationsFinished.mjs\";\n\n/**\n * Popover and Menu declare different `instantType` unions, so only the members\n * this hook touches are typed.\n */\n\n/**\n * Lets the positioner animate while a popup moves between detached triggers.\n *\n * The positioner is normally marked instant, so a hand-off from one trigger to\n * another would teleport. Clearing `instantType` for the duration of the move\n * lets it transition, and `trigger-change` is restored once the move finishes.\n *\n * The restoration is deferred until the move's animations finish, so it can\n * outlive the move that scheduled it. The trigger element is retained through\n * the exit transition, so a close alone does not change `domReference` and\n * nothing would otherwise re-run this effect to abort it — a popup that closes\n * and reopens on the same trigger mid-exit would inherit the stale callback and\n * lose its own transition. Closing therefore cancels the pending restoration\n * explicitly.\n *\n * Applying `trigger-change` to a closed popup is prevented separately, by the\n * stores' `instantType` selector, since a controlled `open={false}` commit\n * reaches the popup without passing through `setOpen`.\n */\nexport function useTriggerSwitchTransition(parameters) {\n const {\n store,\n domReference,\n positionerElement,\n open\n } = parameters;\n const previousTriggerRef = React.useRef(null);\n const pendingSwitchRef = React.useRef(null);\n const runOnceAnimationsFinish = useAnimationsFinished(positionerElement);\n useIsoLayoutEffect(() => {\n if (open) {\n return;\n }\n pendingSwitchRef.current?.abort();\n pendingSwitchRef.current = null;\n\n // `trigger-change` belongs to the open cycle that scheduled it. The selector\n // stops a closed popup from rendering it, but the value has to be dropped\n // too: a controlled reopen changes only `openProp`, so neither this effect\n // nor `setOpen` would run again to replace it, and the selector would start\n // exposing the old value against the new cycle.\n if (store.state.instantType === 'trigger-change') {\n store.set('instantType', undefined);\n }\n }, [open, store]);\n useIsoLayoutEffect(() => {\n const currentTrigger = domReference;\n const previousTrigger = previousTriggerRef.current;\n if (currentTrigger) {\n previousTriggerRef.current = currentTrigger;\n }\n if (!previousTrigger || !currentTrigger || currentTrigger === previousTrigger) {\n return undefined;\n }\n\n // The trigger element can also change while the popup is closing, when a\n // trigger is replaced by a new element. There is no move to animate, and\n // the cancellation effect above has already run for this commit, so a\n // restoration scheduled here would survive into whatever opens next.\n if (!store.select('open')) {\n return undefined;\n }\n store.set('instantType', undefined);\n const abortController = new AbortController();\n pendingSwitchRef.current = abortController;\n runOnceAnimationsFinish(() => {\n // The abort above covers a committed close, but the animations can finish\n // in the same frame the close commits. Writing `trigger-change` then would\n // leave stale state behind for the next open to inherit.\n if (store.select('open')) {\n store.set('instantType', 'trigger-change');\n }\n }, abortController.signal);\n return () => {\n abortController.abort();\n };\n }, [domReference, runOnceAnimationsFinish, store]);\n}","'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\n\n// Touch-opened popups normally avoid scroll locking so users can still swipe outside to dismiss.\n// This hook re-enables scroll lock only when the popup is effectively full-width.\n// Treat popups with up to 20px of total horizontal gutter as full-width so common ~10px side\n// padding still locks scroll, since that leaves too little outside space for a reliable swipe.\nconst VIEWPORT_WIDTH_TOLERANCE_PX = 20;\n\n/**\n * Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when\n * enabled. For touch opens, scroll lock is applied only when the positioner width is effectively\n * viewport-sized.\n */\nexport function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {\n const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React.useState(false);\n useIsoLayoutEffect(() => {\n if (!enabled || !touchOpen || positionerElement == null) {\n setTouchOpenShouldLockScroll(false);\n return;\n }\n const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;\n const popupWidth = positionerElement.offsetWidth;\n setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);\n }, [enabled, touchOpen, positionerElement]);\n useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);\n}","'use client';\n\nimport * as ReactDOM from 'react-dom';\nimport { getTabbableNearElement, isOutsideEvent } from \"../../floating-ui-react/utils.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\n\n/**\n * Minimal store interface required by the focus guard hook.\n * Both PopoverStore and MenuStore satisfy this interface.\n */\n\n/**\n * Provides focus guard handlers for popup triggers (Popover, Menu).\n *\n * When the popup is open, invisible focus guard elements are placed before and after\n * the trigger. These handlers close the popup and move focus to the appropriate\n * tabbable element when the guards receive focus (i.e. when the user tabs out).\n */\nexport function useTriggerFocusGuards(store, triggerElementRef) {\n function closeAndFocus(event, direction, positionerElement) {\n const guard = event.currentTarget;\n ReactDOM.flushSync(() => {\n store.setOpen(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent, guard));\n });\n\n // The close callback may change the tab order. Resolve it after the flush, using\n // the trigger as the anchor if the guard unmounted, even when its tabIndex is -1.\n getTabbableNearElement(guard.isConnected ? guard : triggerElementRef.current, direction, positionerElement)?.focus();\n }\n function handlePreFocusGuardFocus(event) {\n closeAndFocus(event, -1, store.select('positionerElement'));\n }\n function handleFocusTargetFocus(event) {\n const positionerElement = store.select('positionerElement');\n if (positionerElement && isOutsideEvent(event, positionerElement)) {\n store.context.beforeContentFocusGuardRef.current?.focus();\n } else {\n closeAndFocus(event, 1, positionerElement);\n }\n }\n return {\n handlePreFocusGuardFocus,\n handleFocusTargetFocus\n };\n}"],"ignoreList":[0,1,2,3,4,5,6],"mappings":"A,2jBAcA,SAAgB2B,EAAS,EAAO,EAAQ,CAAC,EAAG,CAC1C,GAAM,CACJ,UAAU,GACV,MAAOC,EAAc,QACrB,SAAS,GACT,cAAc,GACd,cAAc,GACd,iBAAiB,EACjB,SAAS5B,GACP6B,EACEC,EAAUC,EAAM,QAAQ,QACxBC,EAAAN,EAAuB,OAAO,IAAA,EAAS,EACvCO,EAAQzB,EAAkB,EAC1B0B,EAAmBb,EAAW,EAC9Bc,EAAAT,EAAkB,YAAc,CACpC,SAASU,EAAsB,EAAU,EAAa,EAAQ,EAAa,CACzE,IAAMC,EAAUvB,EAAyBwB,EAAQC,EAAaC,CAAM,EAChEC,GAAYC,IAAgB,SAAWC,EAAiB,EAC1DT,EAAiB,MAAMS,MAAsB,CAC3CZ,EAAM,QAAQ,GAAMM,CAAO,CAC7B,CAAC,EAEDN,EAAM,QAAQU,EAAUJ,CAAO,CAEnC,CACA,SAASO,EAAY,EAAM,EAAe,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AK,EACtFf,MAAyB,CACvB,GAAI,CAAC8C,GAAW,CAACgC,GAAaT,GAAqB,KAAM,CACvDQ,EAA6B,EAAK,EAClC,MACF,CACA,IAAME,EAAgBvE,EAAc6D,CAAiB,CAAC,CAAC,gBAAgB,YACjEW,EAAaX,EAAkB,YACrCQ,EAA6BE,EAAgB,GAAKC,EAAa,GAAKA,GAAcD,EAAgBL,CAA2B,CAC/H,EAAG,CAAC5B,EAASgC,EAAWT,CAAiB,CAAC,EAC1CxD,EAAciC,IAAY,CAACgC,GAAaF,GAA4BK,CAAgB,CACtF,C,eCXA,SAAgBE,EAAsB,EAAO,EAAmB,CAC9D,SAASC,EAAc,EAAO,EAAW,EAAmB,CAC1D,IAAMC,EAAQ5C,EAAM,cACpByC,EAAS,cAAgB,CACvB9D,EAAM,QAAQ,GAAOjB,EAAyBX,EAAkBiD,EAAM,YAAa4C,CAAK,CAAC,CAC3F,CAAC,EAID5E,EAAuB4E,EAAM,YAAcA,EAAQC,EAAkB,QAASC,EAAWlB,CAAiB,CAAC,EAAE,MAAM,CACrH,CACA,SAASmB,EAAyB,EAAO,CACvCJ,EAAc3C,EAAO,GAAIrB,EAAM,OAAO,mBAAmB,CAAC,CAC5D,CACA,SAASqE,EAAuB,EAAO,CACrC,IAAMpB,EAAoBjD,EAAM,OAAO,mBAAmB,EACtDiD,GAAqBqB,EAAejD,EAAO4B,CAAiB,EAC9DjD,EAAM,QAAQ,2BAA2B,SAAS,MAAM,EAExDgE,EAAc3C,EAAO,EAAG4B,CAAiB,CAE7C,CACA,MAAO,CACL,2BACA,wBACF,CACF,C"}
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t}from"./utils-BFSetRo1.js";import{M as n,O as r}from"./useButton-DQ6Sgg7h.js";var i=e(t(),1);function a(e,t){let a=i.useRef(e),o=r(t);n(()=>{a.current!==e&&o(a.current),a.current=e},[e,o])}export{a as t};
2
+ //# sourceMappingURL=useValueChanged-BqSvidps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useValueChanged-BqSvidps.js","names":["__toESM","require_react","useIsoLayoutEffect","useStableCallback","import_react","useValueChanged","valueRef","value","onChangeCallback","onChange"],"sources":["../../../../node_modules/@base-ui/react/internals/useValueChanged.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport function useValueChanged(value, onChange) {\n const valueRef = React.useRef(value);\n const onChangeCallback = useStableCallback(onChange);\n useIsoLayoutEffect(() => {\n if (valueRef.current !== value) {\n onChangeCallback(valueRef.current);\n }\n valueRef.current = value;\n }, [value, onChangeCallback]);\n}"],"ignoreList":[0],"mappings":"A,6JAKA,SAAgBK,EAAgB,EAAO,EAAU,CAC/C,IAAMC,EAAAF,EAAiB,OAAOG,CAAK,EAC7BC,EAAmBL,EAAkBM,CAAQ,EACnDP,MAAyB,CACnBI,EAAS,UAAYC,GACvBC,EAAiBF,EAAS,OAAO,EAEnC,EAAS,QAAUC,CACrB,EAAG,CAACA,EAAOC,CAAgB,CAAC,CAC9B,C"}
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./rolldown-runtime-XKyaHtl9.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),f=Symbol.for(`react.view_transition`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function j(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+A(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+A(a,u),c+=M(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+A(a,u++),c+=M(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return M(j(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function N(e,t,n){if(e==null)return e;var r=[],i=0;return M(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function P(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var F=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function I(e){var t=w.T,n={};n.types=t===null?null:t.types,w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}}function ne(e){var t=w.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else I(ne.bind(null,e))}var L={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=ee,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.ViewTransition=f,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.addTransitionType=ne,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=I,e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.3.1`})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),i=e(((e,t)=>{t.exports=r()}));function a(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=a(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function o(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=a(e))&&(r&&(r+=` `),r+=t);return r}var s=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},c=(e,t)=>({classGroupId:e,validator:t}),l=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),u=`-`,d=[],ee=`arbitrary..`,f=e=>{let t=h(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return m(e);let n=e.split(u);return p(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?s(i,t):t:i||d}return n[e]||d}}},p=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=p(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(u):e.slice(t).join(u),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},m=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ee+r:void 0})(),h=e=>{let{theme:t,classGroups:n}=e;return g(n,t)},g=(e,t)=>{let n=l();for(let r in e){let i=e[r];_(i,n,r,t)}return n},_=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];v(i,t,n,r)}},v=(e,t,n,r)=>{typeof e==`string`?y(e,t,n):typeof e==`function`?b(e,t,n,r):x(e,t,n,r)},y=(e,t,n)=>{let r=e===``?t:S(t,e);r.classGroupId=n},b=(e,t,n,r)=>{C(e)?_(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(c(n,e)))},x=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];_(o,S(t,a),n,r)}},S=(e,t)=>{let n=e,r=t.split(u),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=l(),n.nextPart.set(t,i)),n=i}return n},C=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,w=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},T=`!`,E=`:`,D=[],O=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),te=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let c=e[s];if(n===0&&r===0){if(c===E){t.push(e.slice(i,s)),i=s+1;continue}if(c===`/`){a=s;continue}}if(c===`[`)n++;else if(c===`]`)n--;else if(c===`(`)r++;else if(c===`)`)r--;else if(c===`\\`)s++;else if(c===`"`||c===`'`)for(;++s<o;){let t=e[s];if(t===`\\`)s++;else if(t===c)break}}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(T)?(c=s.slice(0,-1),l=!0):s.startsWith(T)&&(c=s.slice(1),l=!0);let u=l&&s.startsWith(T)?1:0,d=a&&a>i?a-i-u:void 0;return O(t,l,c,d)};if(t){let e=t+E,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):O(D,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},k=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},A=e=>({cache:w(e.cacheSize),parseClassName:te(e),sortModifiers:k(e),postfixLookupClassGroupIds:j(e),...f(e)}),j=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},M=/\s+/,N=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(M),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:ee,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let m=!!p,h;if(m){h=r(f.substring(0,p));let e=h&&o[h]?r(f):void 0;e&&e!==h&&(h=e,m=!1)}else h=r(f);if(!h){if(!m||(h=r(f),!h)){l=t+(l.length>0?` `+l:l);continue}m=!1}let g=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),_=ee?g+T:g,v=_+h;if(s.indexOf(v)>-1)continue;s.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];s.push(_+t)}l=t+(l.length>0?` `+l:l)}return l},P=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=F(n))&&(i&&(i+=` `),i+=r);return i},F=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=F(e[r]))&&(n&&(n+=` `),n+=t);return n},I=(e,...t)=>{let n,r,i,a,o=o=>(n=A(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=N(e,n);return i(e,a),a};return a=o,(...e)=>a(P(...e))},ne=[],L=e=>{let t=t=>t[e]||ne;return t.isThemeGetter=!0,t.themeKey=e,t},re=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,R=/^\((?:(\w[\w-]*):)?(.+)\)$/i,z=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ie=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|Q|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^--spacing\(.+\)|^0$/,V=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark|contrast-color|device-cmyk|--alpha)\(.+\)$/i,ae=/^(?:_*[+-]?(?:\d|\.\d)|[\w-]+\(|_*(?:inherit|initial|revert(?:-layer)?|unset)_*$)/i,H=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>z.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),se=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>B.test(e),ce=()=>!0,le=e=>ie.test(e)&&!V.test(e),q=e=>ae.test(e)&&!V.test(e),ue=()=>!1,de=e=>H.test(e),fe=e=>oe.test(e),pe=e=>!J(e)&&!X(e),me=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),he=e=>Q(e,Me,ue),J=e=>re.test(e),Y=e=>Q(e,Ne,le),ge=e=>Q(e,Pe,q),_e=e=>Q(e,Fe,W),ve=e=>Q(e,Le,ce),ye=e=>Q(e,Ie,ue),be=e=>Q(e,Ae,ue),xe=e=>Q(e,je,fe),Se=e=>Q(e,Re,de),X=e=>R.test(e),Z=e=>$(e,Ne),Ce=e=>$(e,Pe,!0),we=e=>$(e,Ie),Te=e=>$(e,Ae),Ee=e=>$(e,Me),De=e=>$(e,je),Oe=e=>$(e,Re,!0),ke=e=>$(e,Le,!0),Q=(e,t,n)=>{let r=re.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=R.exec(e);return r?r[1]?t(r[1]):n:!1},Ae=e=>e===`position`||e===`percentage`,je=e=>e===`image`||e===`url`,Me=e=>e===`length`||e===`size`||e===`bg-size`,Ne=e=>e===`length`,Pe=e=>e!==`color`,Fe=e=>e===`number`,Ie=e=>e===`family-name`,Le=e=>e===`number`||e===`weight`,Re=e=>e===`shadow`,ze=I(()=>{let e=L(`color`),t=L(`font`),n=L(`text`),r=L(`font-weight`),i=L(`tracking`),a=L(`leading`),o=L(`breakpoint`),s=L(`container`),c=L(`spacing`),l=L(`radius`),u=L(`shadow`),d=L(`inset-shadow`),ee=L(`text-shadow`),f=L(`drop-shadow`),p=L(`blur`),m=L(`perspective`),h=L(`aspect`),g=L(`ease`),_=L(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),X,J],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],S=()=>[`auto`,`contain`,`none`],C=()=>[X,J,c],w=()=>[U,`full`,`auto`,...C()],T=()=>[G,`none`,`subgrid`,X,J],E=()=>[`auto`,{span:[`full`,G,X,J]},G,X,J],D=()=>[G,`auto`,X,J],O=()=>[`auto`,`min`,`max`,`fr`,X,J],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...C()],j=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],M=()=>[s,U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],N=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],P=()=>[e,X,J],F=()=>[...y(),Te,be,{position:[X,J]}],I=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,Ee,he,{size:[X,J]}],re=()=>[se,Z,Y],R=()=>[``,`none`,`full`,l,X,J],z=()=>[``,W,Z,Y],B=()=>[`solid`,`dashed`,`dotted`,`double`],ie=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],V=()=>[W,se,Ce,ge],ae=()=>[``,`none`,p,X,J],H=()=>[`none`,W,X,J],oe=()=>[`none`,W,X,J],le=()=>[W,X,J],q=()=>[U,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[ce],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[pe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,J,X,h]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,J]}],"container-named":[me],columns:[{columns:[W,`auto`,J,X,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`],"not-sr":[`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,X,J]}],basis:[{basis:[U,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,X,J]}],grow:[{grow:[``,W,X,J]}],shrink:[{shrink:[``,W,X,J]}],order:[{order:[G,`first`,`last`,`none`,X,J]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...j()]}],"font-size":[{text:[`base`,n,Z,Y]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ke,ve]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,se,J]}],"font-family":[{font:[we,ye,t]}],"font-features":[{"font-features":[J]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,J]}],"line-clamp":[{"line-clamp":[W,`none`,X,J]}],leading:[{leading:[`none`,a,...C()]}],"list-image":[{"list-image":[`none`,X,J]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,J]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...B(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,Z,Te,Y]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[W,`auto`,X,J]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"tab-size":[{tab:[G,X,J]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,J]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,J]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,X,J],radial:[``,X,J],conic:[``,G,X,J]},De,xe]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...B(),`hidden`,`none`]}],"divide-style":[{divide:[...B(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...B(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,X,J]}],"outline-w":[{outline:[``,W,Z,Y]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`inner`,`none`,u,Oe,Se]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Oe,Se]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[W,Y]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,ee,Oe,Se]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[W,X,J]}],"mix-blend":[{"mix-blend":[...ie(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[X,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{mask:[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,J]}],filter:[{filter:[``,`none`,X,J]}],blur:[{blur:ae()}],brightness:[{brightness:[W,X,J]}],contrast:[{contrast:[W,X,J]}],"drop-shadow":[{"drop-shadow":[``,`none`,f,Oe,Se]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,W,X,J]}],"hue-rotate":[{"hue-rotate":[W,X,J]}],invert:[{invert:[``,W,X,J]}],saturate:[{saturate:[W,X,J]}],sepia:[{sepia:[``,W,X,J]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,J]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[W,X,J]}],"backdrop-contrast":[{"backdrop-contrast":[W,X,J]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,X,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,X,J]}],"backdrop-invert":[{"backdrop-invert":[``,W,X,J]}],"backdrop-opacity":[{"backdrop-opacity":[W,X,J]}],"backdrop-saturate":[{"backdrop-saturate":[W,X,J]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,X,J]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,J]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,X,J]}],ease:[{ease:[`linear`,`initial`,g,X,J]}],delay:[{delay:[W,X,J]}],animate:[{animate:[`none`,_,X,J]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,X,J]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":[`scale-3d`],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[X,J,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":[`translate-none`],zoom:[{zoom:[G,X,J]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,J]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,J]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[W,Z,Y,_e]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],"place-content":[`align-content`,`justify-content`],"place-items":[`align-items`,`justify-items`],"place-self":[`align-self`,`justify-self`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],sr:`not-sr.position.size.w.h.p.px.py.ps.pe.pbs.pbe.pt.pr.pb.pl.m.mx.my.ms.me.mbs.mbe.mt.mr.mb.ml.overflow.overflow-x.overflow-y.whitespace`.split(`.`),"not-sr":[`sr`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],"mask-image-x-from-pos":[`mask-image-r-from-pos`,`mask-image-l-from-pos`],"mask-image-x-to-pos":[`mask-image-r-to-pos`,`mask-image-l-to-pos`],"mask-image-x-from-color":[`mask-image-r-from-color`,`mask-image-l-from-color`],"mask-image-x-to-color":[`mask-image-r-to-color`,`mask-image-l-to-color`],"mask-image-y-from-pos":[`mask-image-t-from-pos`,`mask-image-b-from-pos`],"mask-image-y-to-pos":[`mask-image-t-to-pos`,`mask-image-b-to-pos`],"mask-image-y-from-color":[`mask-image-t-from-color`,`mask-image-b-from-color`],"mask-image-y-to-color":[`mask-image-t-to-color`,`mask-image-b-to-color`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Be(...e){return ze(o(e))}export{n as i,o as n,i as r,Be as t};
2
+ //# sourceMappingURL=utils-BFSetRo1.js.map