allyhub 0.5.0 → 0.7.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 (632) hide show
  1. package/dist/audio-text.js +1 -1
  2. package/dist/commands/add.js +2 -2
  3. package/dist/commands/cloud-tools.js +5 -5
  4. package/dist/commands/dev.js +1 -1
  5. package/dist/commands/frames/piece.js +1 -1
  6. package/dist/commands/frames/sheet.js +1 -1
  7. package/dist/commands/frames.js +8 -8
  8. package/dist/commands/index.js +1 -1
  9. package/dist/commands/inspect/common.js +1 -1
  10. package/dist/commands/inspect/layout.js +1 -1
  11. package/dist/commands/render.js +1 -1
  12. package/dist/commands/sheet.js +7 -7
  13. package/dist/commands/site.js +3 -2
  14. package/dist/commands/skills.js +3 -3
  15. package/dist/commands/slides.js +2 -2
  16. package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
  17. package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
  18. package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
  19. package/dist/node_modules/@allyhub-next/browser/dist/html.js +1 -1
  20. package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
  21. package/dist/node_modules/@allyhub-next/build/dist/content.d.ts +4 -0
  22. package/dist/node_modules/@allyhub-next/build/dist/content.js +1 -1
  23. package/dist/node_modules/@allyhub-next/build/dist/index.d.ts +2 -2
  24. package/dist/node_modules/@allyhub-next/build/dist/index.js +1 -1
  25. package/dist/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +2 -2
  26. package/dist/node_modules/@allyhub-next/build/dist/meta-worker.js +3 -3
  27. package/dist/node_modules/@allyhub-next/build/dist/move-refs.d.ts +1 -1
  28. package/dist/node_modules/@allyhub-next/build/dist/move-refs.js +1 -1
  29. package/dist/node_modules/@allyhub-next/build/dist/plugin.d.ts +12 -3
  30. package/dist/node_modules/@allyhub-next/build/dist/plugin.js +7 -6
  31. package/dist/node_modules/@allyhub-next/build/dist/prepare.d.ts +9 -5
  32. package/dist/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
  33. package/dist/node_modules/@allyhub-next/build/dist/vite.d.ts +10 -0
  34. package/dist/node_modules/@allyhub-next/build/dist/vite.js +2 -2
  35. package/dist/node_modules/@allyhub-next/build/package.json +1 -1
  36. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
  37. package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
  38. package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
  39. package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
  40. package/dist/node_modules/@allyhub-next/check/dist/check.js +3 -3
  41. package/dist/node_modules/@allyhub-next/check/package.json +1 -1
  42. package/dist/node_modules/@allyhub-next/cloud/dist/blobs.js +2 -0
  43. package/dist/node_modules/@allyhub-next/cloud/dist/call.js +4 -2
  44. package/dist/node_modules/@allyhub-next/cloud/dist/client.js +1 -1
  45. package/dist/node_modules/@allyhub-next/cloud/dist/errors.js +1 -1
  46. package/dist/node_modules/@allyhub-next/cloud/dist/hashes.js +2 -0
  47. package/dist/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
  48. package/dist/node_modules/@allyhub-next/cloud/dist/sites.js +2 -0
  49. package/dist/node_modules/@allyhub-next/cloud/dist/voice.js +1 -1
  50. package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
  51. package/dist/node_modules/@allyhub-next/components/package.json +1 -1
  52. package/dist/node_modules/@allyhub-next/components/r/caption-subtitle.json +1 -1
  53. package/dist/node_modules/@allyhub-next/components/src/caption-subtitle.ts +54 -16
  54. package/dist/node_modules/@allyhub-next/dev-server/dist/background.js +1 -1
  55. package/dist/node_modules/@allyhub-next/dev-server/dist/exports.js +1 -1
  56. package/dist/node_modules/@allyhub-next/dev-server/dist/fonts.js +2 -0
  57. package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
  58. package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
  59. package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
  60. package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +2 -0
  61. package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +2 -0
  62. package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
  63. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
  64. package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +2 -0
  65. package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
  66. package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
  67. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +1 -1
  68. package/dist/node_modules/@allyhub-next/export/dist/export.js +5 -5
  69. package/dist/node_modules/@allyhub-next/export/dist/index.js +1 -1
  70. package/dist/node_modules/@allyhub-next/export/package.json +1 -1
  71. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
  72. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
  73. package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
  74. package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  75. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +248 -18
  76. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
  77. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1114 -91
  78. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
  79. package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
  80. package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
  81. package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +4 -0
  82. package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  83. package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
  84. package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  85. package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
  86. package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
  87. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +625 -30
  88. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  89. package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
  90. package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
  91. package/dist/node_modules/@allyhub-next/formats/dist/zip.d.ts +17 -0
  92. package/dist/node_modules/@allyhub-next/formats/dist/zip.js +2 -0
  93. package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
  94. package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
  95. package/dist/node_modules/@allyhub-next/media/dist/index.d.ts +1 -1
  96. package/dist/node_modules/@allyhub-next/media/dist/index.js +1 -1
  97. package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +2 -0
  98. package/dist/node_modules/@allyhub-next/media/dist/sheet.js +7 -7
  99. package/dist/node_modules/@allyhub-next/media/package.json +1 -1
  100. package/dist/node_modules/@allyhub-next/model/package.json +1 -1
  101. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
  102. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
  103. package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
  104. package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
  105. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
  106. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
  107. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
  108. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
  109. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
  110. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
  111. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
  112. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
  113. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
  114. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
  115. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
  116. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
  117. package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
  118. package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
  119. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
  120. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
  121. package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
  122. package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
  123. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
  124. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
  125. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
  126. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
  127. package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
  128. package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
  129. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
  130. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
  131. package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
  132. package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +2 -0
  133. package/dist/node_modules/@allyhub-next/project/dist/deck-measure.js +2 -0
  134. package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +2 -0
  135. package/dist/node_modules/@allyhub-next/project/dist/index.js +1 -1
  136. package/dist/node_modules/@allyhub-next/project/dist/session.js +1 -1
  137. package/dist/node_modules/@allyhub-next/project/dist/stills.js +2 -0
  138. package/dist/node_modules/@allyhub-next/project/package.json +1 -1
  139. package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
  140. package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
  141. package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
  142. package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  143. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
  144. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
  145. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
  146. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
  147. package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +89 -5
  148. package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  149. package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
  150. package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
  151. package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  152. package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +23 -0
  153. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
  154. package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
  155. package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
  156. package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
  157. package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
  158. package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
  159. package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
  160. package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
  161. package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
  162. package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
  163. package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
  164. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
  165. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
  166. package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
  167. package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
  168. package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
  169. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  170. package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
  171. package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
  172. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.js +3 -2
  173. package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
  174. package/dist/node_modules/@allyhub-next/render/dist/doc/pdf.js +34 -0
  175. package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +4 -4
  176. package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
  177. package/dist/node_modules/@allyhub-next/render/dist/pdf.js +2 -0
  178. package/dist/node_modules/@allyhub-next/render/package.json +1 -1
  179. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.js +1 -1
  180. package/dist/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
  181. package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
  182. package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
  183. package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
  184. package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +4 -4
  185. package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
  186. package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
  187. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +10 -0
  188. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
  189. package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
  190. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +1 -1
  191. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +1 -0
  192. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +1 -1
  193. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +83 -0
  194. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +2 -0
  195. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +40 -1
  196. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +1 -1
  197. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
  198. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
  199. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
  200. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
  201. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
  202. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
  203. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
  204. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
  205. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
  206. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
  207. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
  208. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
  209. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
  210. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
  211. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
  212. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
  213. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
  214. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
  215. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
  216. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
  217. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
  218. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
  219. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
  220. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
  221. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
  222. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
  223. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
  224. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
  225. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
  226. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
  227. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
  228. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
  229. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
  230. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
  231. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
  232. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
  233. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
  234. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
  235. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
  236. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
  237. package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
  238. package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
  239. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
  240. package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
  241. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
  242. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
  243. package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
  244. package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
  245. package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
  246. package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
  247. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
  248. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
  249. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
  250. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
  251. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
  252. package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
  253. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
  254. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
  255. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
  256. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
  257. package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
  258. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
  259. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +12 -1
  261. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
  262. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
  263. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
  264. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
  265. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
  266. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +6 -1
  267. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
  268. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +44 -2
  269. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
  270. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
  271. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
  272. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
  273. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
  274. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
  275. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
  276. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
  277. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
  278. package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
  279. package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
  280. package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +121 -44
  281. package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
  282. package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
  283. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +50 -13
  284. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
  285. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +1 -1
  286. package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
  287. package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
  288. package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
  289. package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
  290. package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
  291. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +188 -5
  292. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
  293. package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
  294. package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
  295. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
  296. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
  297. package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -0
  298. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
  299. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
  300. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
  301. package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
  302. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
  303. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
  304. package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +38 -4
  305. package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +27 -1
  306. package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
  307. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +26 -5
  308. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
  309. package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
  310. package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
  311. package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
  312. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
  313. package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
  314. package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
  315. package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
  316. package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
  317. package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
  318. package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.js +1 -1
  319. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +4 -0
  320. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +3 -0
  321. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +2 -0
  322. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +2 -0
  323. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.js +1 -1
  324. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +2 -0
  325. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +2 -0
  326. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +4 -0
  327. package/dist/{site.js → node_modules/@allyhub-next/slides-pptx/dist/read/model.js} +1 -1
  328. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +2 -0
  329. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/table.js +2 -0
  330. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +2 -0
  331. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +2 -0
  332. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
  333. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
  334. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +1 -1
  335. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +1 -1
  336. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
  337. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
  338. package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
  339. package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +2 -0
  340. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
  341. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +1 -1
  342. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +5 -5
  343. package/dist/node_modules/@allyhub-next/slides-runtime/package.json +5 -1
  344. package/dist/node_modules/@allyhub-next/stage/dist/graphics.js +1 -1
  345. package/dist/node_modules/@allyhub-next/stage/dist/index.js +1 -1
  346. package/dist/node_modules/@allyhub-next/stage/dist/page.js +22 -12
  347. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +5 -5
  348. package/dist/node_modules/@allyhub-next/stage/dist/server.js +1 -1
  349. package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
  350. package/dist/node_modules/@allyhub-next/stage-page/dist/host.js +1 -20
  351. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/probe.html +8 -0
  352. package/dist/{astro.js → node_modules/@allyhub-next/stage-page/dist/runtime/probe.js} +1 -1
  353. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +79 -0
  354. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.html +21 -0
  355. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +3 -0
  356. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.html +9 -0
  357. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.js +3 -0
  358. package/dist/node_modules/@allyhub-next/stage-page/package.json +2 -3
  359. package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
  360. package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
  361. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  362. package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
  363. package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  364. package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
  365. package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
  366. package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
  367. package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
  368. package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
  369. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  370. package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
  371. package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
  372. package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
  373. package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  374. package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
  375. package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
  376. package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
  377. package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
  378. package/dist/node_modules/@allyhub-next/website/LICENSE +241 -0
  379. package/dist/node_modules/@allyhub-next/website/dist/index.js +2 -0
  380. package/dist/node_modules/@allyhub-next/website/dist/publish.js +3 -0
  381. package/dist/node_modules/@allyhub-next/website/dist/rules.js +2 -0
  382. package/dist/node_modules/@allyhub-next/website/dist/website.js +4 -0
  383. package/dist/node_modules/@allyhub-next/website/package.json +13 -0
  384. package/dist/text/facts-text.js +4 -4
  385. package/dist/works.js +1 -1
  386. package/editor-web/assets/calc-worker-Bz9r26p1.js +158 -0
  387. package/editor-web/assets/dist-0emakyZE.js +36 -0
  388. package/editor-web/assets/dist-B3UoDUa5.js +37 -0
  389. package/editor-web/assets/dist-B6KzR3pN.js +10 -0
  390. package/editor-web/assets/dist-Bc5iA5k1.js +1 -0
  391. package/editor-web/assets/dist-CTQIm8Im.js +10 -0
  392. package/editor-web/assets/dist-CiHNHwyq.js +2 -0
  393. package/editor-web/assets/dist-DNZ8PQ-E.js +224 -0
  394. package/editor-web/assets/index-CFt3ovRY.js +69 -0
  395. package/editor-web/assets/index-ujKjdu_s.css +2 -0
  396. package/editor-web/assets/minus-BhoPZC5P.js +1 -0
  397. package/editor-web/assets/react-C_-rEEBU.js +101 -0
  398. package/editor-web/assets/tabs-Den4gHrU.js +105 -0
  399. package/editor-web/assets/text-align-start-CsW4nqqL.js +1 -0
  400. package/editor-web/index.html +5 -5
  401. package/package.json +8 -14
  402. package/dist/astro.d.ts +0 -2
  403. package/dist/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +0 -52
  404. package/dist/node_modules/@allyhub-next/audio/dist/decode.d.ts +0 -33
  405. package/dist/node_modules/@allyhub-next/audio/dist/envelope.d.ts +0 -37
  406. package/dist/node_modules/@allyhub-next/audio/dist/index.d.ts +0 -17
  407. package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
  408. package/dist/node_modules/@allyhub-next/audio/dist/master.d.ts +0 -29
  409. package/dist/node_modules/@allyhub-next/audio/dist/music.d.ts +0 -11
  410. package/dist/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +0 -39
  411. package/dist/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -25
  412. package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
  413. package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +0 -8
  414. package/dist/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +0 -18
  415. package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +0 -42
  416. package/dist/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +0 -60
  417. package/dist/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +0 -31
  418. package/dist/node_modules/@allyhub-next/audio/dist/plan.d.ts +0 -143
  419. package/dist/node_modules/@allyhub-next/audio/dist/recorded.d.ts +0 -26
  420. package/dist/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -47
  421. package/dist/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +0 -89
  422. package/dist/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -64
  423. package/dist/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +0 -26
  424. package/dist/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +0 -42
  425. package/dist/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +0 -56
  426. package/dist/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +0 -10
  427. package/dist/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -12
  428. package/dist/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +0 -67
  429. package/dist/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +0 -32
  430. package/dist/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +0 -27
  431. package/dist/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +0 -64
  432. package/dist/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +0 -78
  433. package/dist/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +0 -111
  434. package/dist/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +0 -3
  435. package/dist/node_modules/@allyhub-next/audio/dist/render.d.ts +0 -26
  436. package/dist/node_modules/@allyhub-next/audio/dist/sfx.d.ts +0 -10
  437. package/dist/node_modules/@allyhub-next/audio/dist/shape.d.ts +0 -118
  438. package/dist/node_modules/@allyhub-next/audio/dist/voice.d.ts +0 -45
  439. package/dist/node_modules/@allyhub-next/browser/dist/browser.d.ts +0 -24
  440. package/dist/node_modules/@allyhub-next/browser/dist/capture.d.ts +0 -61
  441. package/dist/node_modules/@allyhub-next/browser/dist/cdp.d.ts +0 -51
  442. package/dist/node_modules/@allyhub-next/browser/dist/flags.d.ts +0 -13
  443. package/dist/node_modules/@allyhub-next/browser/dist/frames.d.ts +0 -35
  444. package/dist/node_modules/@allyhub-next/browser/dist/html.d.ts +0 -19
  445. package/dist/node_modules/@allyhub-next/browser/dist/index.d.ts +0 -10
  446. package/dist/node_modules/@allyhub-next/browser/dist/launch.d.ts +0 -35
  447. package/dist/node_modules/@allyhub-next/browser/dist/page.d.ts +0 -67
  448. package/dist/node_modules/@allyhub-next/browser/dist/server.d.ts +0 -26
  449. package/dist/node_modules/@allyhub-next/check/dist/cache.d.ts +0 -46
  450. package/dist/node_modules/@allyhub-next/check/dist/check.d.ts +0 -142
  451. package/dist/node_modules/@allyhub-next/check/dist/generated.d.ts +0 -22
  452. package/dist/node_modules/@allyhub-next/check/dist/index.d.ts +0 -7
  453. package/dist/node_modules/@allyhub-next/check/dist/plans.d.ts +0 -111
  454. package/dist/node_modules/@allyhub-next/check/dist/result.d.ts +0 -12
  455. package/dist/node_modules/@allyhub-next/check/dist/scenery.d.ts +0 -23
  456. package/dist/node_modules/@allyhub-next/dev-server/dist/background.d.ts +0 -50
  457. package/dist/node_modules/@allyhub-next/dev-server/dist/card.d.ts +0 -17
  458. package/dist/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +0 -18
  459. package/dist/node_modules/@allyhub-next/dev-server/dist/index.d.ts +0 -11
  460. package/dist/node_modules/@allyhub-next/dev-server/dist/live.d.ts +0 -77
  461. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +0 -2
  462. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.js +0 -2
  463. package/dist/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +0 -27
  464. package/dist/node_modules/@allyhub-next/dev-server/dist/project.d.ts +0 -153
  465. package/dist/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +0 -6
  466. package/dist/node_modules/@allyhub-next/dev-server/dist/server.d.ts +0 -47
  467. package/dist/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +0 -21
  468. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +0 -82
  469. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.js +0 -121
  470. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +0 -24
  471. package/dist/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +0 -6
  472. package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +0 -47
  473. package/dist/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +0 -51
  474. package/dist/node_modules/@allyhub-next/export/dist/batch.d.ts +0 -70
  475. package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +0 -24
  476. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +0 -12
  477. package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +0 -123
  478. package/dist/node_modules/@allyhub-next/export/dist/index.d.ts +0 -5
  479. package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +0 -36
  480. package/dist/node_modules/@allyhub-next/measure/dist/compare.d.ts +0 -195
  481. package/dist/node_modules/@allyhub-next/measure/dist/contrast.d.ts +0 -14
  482. package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +0 -90
  483. package/dist/node_modules/@allyhub-next/measure/dist/cuts.d.ts +0 -108
  484. package/dist/node_modules/@allyhub-next/measure/dist/facts.d.ts +0 -60
  485. package/dist/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +0 -40
  486. package/dist/node_modules/@allyhub-next/measure/dist/flat.d.ts +0 -42
  487. package/dist/node_modules/@allyhub-next/measure/dist/index.d.ts +0 -24
  488. package/dist/node_modules/@allyhub-next/measure/dist/loop.d.ts +0 -22
  489. package/dist/node_modules/@allyhub-next/measure/dist/overlay.d.ts +0 -57
  490. package/dist/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +0 -66
  491. package/dist/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +0 -118
  492. package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +0 -75
  493. package/dist/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +0 -39
  494. package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +0 -53
  495. package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +0 -53
  496. package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +0 -84
  497. package/dist/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +0 -27
  498. package/dist/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +0 -55
  499. package/dist/node_modules/@allyhub-next/measure/dist/seams.d.ts +0 -46
  500. package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +0 -74
  501. package/dist/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +0 -156
  502. package/dist/node_modules/@allyhub-next/measure/dist/still.d.ts +0 -58
  503. package/dist/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +0 -12
  504. package/dist/node_modules/@allyhub-next/project/dist/console.d.ts +0 -34
  505. package/dist/node_modules/@allyhub-next/project/dist/digest.d.ts +0 -9
  506. package/dist/node_modules/@allyhub-next/project/dist/index.d.ts +0 -11
  507. package/dist/node_modules/@allyhub-next/project/dist/ledger.d.ts +0 -17
  508. package/dist/node_modules/@allyhub-next/project/dist/media-index.d.ts +0 -27
  509. package/dist/node_modules/@allyhub-next/project/dist/page.d.ts +0 -119
  510. package/dist/node_modules/@allyhub-next/project/dist/says.d.ts +0 -15
  511. package/dist/node_modules/@allyhub-next/project/dist/scenery.d.ts +0 -35
  512. package/dist/node_modules/@allyhub-next/project/dist/session.d.ts +0 -37
  513. package/dist/node_modules/@allyhub-next/project/dist/stretch.d.ts +0 -38
  514. package/dist/node_modules/@allyhub-next/project/dist/version.d.ts +0 -114
  515. package/dist/node_modules/@allyhub-next/render/dist/cap.d.ts +0 -41
  516. package/dist/node_modules/@allyhub-next/render/dist/capture.d.ts +0 -78
  517. package/dist/node_modules/@allyhub-next/render/dist/clip.d.ts +0 -27
  518. package/dist/node_modules/@allyhub-next/render/dist/composite.d.ts +0 -106
  519. package/dist/node_modules/@allyhub-next/render/dist/delivery.d.ts +0 -18
  520. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +0 -3
  521. package/dist/node_modules/@allyhub-next/render/dist/doc/index.d.ts +0 -3
  522. package/dist/node_modules/@allyhub-next/render/dist/doc/print.d.ts +0 -51
  523. package/dist/node_modules/@allyhub-next/render/dist/encode.d.ts +0 -111
  524. package/dist/node_modules/@allyhub-next/render/dist/errors.d.ts +0 -15
  525. package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +0 -76
  526. package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +0 -75
  527. package/dist/node_modules/@allyhub-next/render/dist/footage.d.ts +0 -169
  528. package/dist/node_modules/@allyhub-next/render/dist/image.d.ts +0 -16
  529. package/dist/node_modules/@allyhub-next/render/dist/index.d.ts +0 -26
  530. package/dist/node_modules/@allyhub-next/render/dist/junction.d.ts +0 -70
  531. package/dist/node_modules/@allyhub-next/render/dist/look.d.ts +0 -21
  532. package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +0 -186
  533. package/dist/node_modules/@allyhub-next/render/dist/parts.d.ts +0 -140
  534. package/dist/node_modules/@allyhub-next/render/dist/png.d.ts +0 -37
  535. package/dist/node_modules/@allyhub-next/render/dist/pool.d.ts +0 -54
  536. package/dist/node_modules/@allyhub-next/render/dist/post-probe.d.ts +0 -27
  537. package/dist/node_modules/@allyhub-next/render/dist/post.d.ts +0 -27
  538. package/dist/node_modules/@allyhub-next/render/dist/render.d.ts +0 -151
  539. package/dist/node_modules/@allyhub-next/render/dist/segments.d.ts +0 -40
  540. package/dist/node_modules/@allyhub-next/render/dist/sound.d.ts +0 -24
  541. package/dist/node_modules/@allyhub-next/render/dist/stills.d.ts +0 -41
  542. package/dist/node_modules/@allyhub-next/render/dist/tools.d.ts +0 -25
  543. package/dist/node_modules/@allyhub-next/render/dist/webp.d.ts +0 -17
  544. package/dist/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +0 -211
  545. package/dist/node_modules/@allyhub-next/runtime/dist/captions.d.ts +0 -24
  546. package/dist/node_modules/@allyhub-next/runtime/dist/clock.d.ts +0 -32
  547. package/dist/node_modules/@allyhub-next/runtime/dist/compose.d.ts +0 -149
  548. package/dist/node_modules/@allyhub-next/runtime/dist/console.d.ts +0 -21
  549. package/dist/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +0 -13
  550. package/dist/node_modules/@allyhub-next/runtime/dist/embed.d.ts +0 -50
  551. package/dist/node_modules/@allyhub-next/runtime/dist/env.d.ts +0 -101
  552. package/dist/node_modules/@allyhub-next/runtime/dist/errors.d.ts +0 -21
  553. package/dist/node_modules/@allyhub-next/runtime/dist/facade.d.ts +0 -42
  554. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +0 -110
  555. package/dist/node_modules/@allyhub-next/runtime/dist/footage.d.ts +0 -52
  556. package/dist/node_modules/@allyhub-next/runtime/dist/frame.d.ts +0 -61
  557. package/dist/node_modules/@allyhub-next/runtime/dist/guards.d.ts +0 -32
  558. package/dist/node_modules/@allyhub-next/runtime/dist/index.d.ts +0 -14
  559. package/dist/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +0 -112
  560. package/dist/node_modules/@allyhub-next/runtime/dist/locate.d.ts +0 -11
  561. package/dist/node_modules/@allyhub-next/runtime/dist/measure.d.ts +0 -41
  562. package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +0 -42
  563. package/dist/node_modules/@allyhub-next/runtime/dist/music.d.ts +0 -29
  564. package/dist/node_modules/@allyhub-next/runtime/dist/output.d.ts +0 -5
  565. package/dist/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +0 -39
  566. package/dist/node_modules/@allyhub-next/runtime/dist/piece.d.ts +0 -34
  567. package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +0 -41
  568. package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +0 -57
  569. package/dist/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +0 -78
  570. package/dist/node_modules/@allyhub-next/runtime/dist/reads.d.ts +0 -132
  571. package/dist/node_modules/@allyhub-next/runtime/dist/sound.d.ts +0 -22
  572. package/dist/node_modules/@allyhub-next/runtime/dist/speech.d.ts +0 -107
  573. package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +0 -12
  574. package/dist/node_modules/@allyhub-next/runtime/dist/stage.d.ts +0 -34
  575. package/dist/node_modules/@allyhub-next/runtime/dist/styles.d.ts +0 -35
  576. package/dist/node_modules/@allyhub-next/runtime/dist/takes.d.ts +0 -72
  577. package/dist/node_modules/@allyhub-next/runtime/dist/titles.d.ts +0 -10
  578. package/dist/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +0 -26
  579. package/dist/node_modules/@allyhub-next/site/dist/assets.d.ts +0 -59
  580. package/dist/node_modules/@allyhub-next/site/dist/assets.js +0 -2
  581. package/dist/node_modules/@allyhub-next/site/dist/astro.d.ts +0 -22
  582. package/dist/node_modules/@allyhub-next/site/dist/astro.js +0 -3
  583. package/dist/node_modules/@allyhub-next/site/dist/lockfile.d.ts +0 -40
  584. package/dist/node_modules/@allyhub-next/site/dist/lockfile.js +0 -3
  585. package/dist/node_modules/@allyhub-next/site/dist/media.d.ts +0 -24
  586. package/dist/node_modules/@allyhub-next/site/dist/media.js +0 -4
  587. package/dist/node_modules/@allyhub-next/site/package.json +0 -25
  588. package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +0 -6
  589. package/dist/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +0 -45
  590. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +0 -18
  591. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +0 -3
  592. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +0 -5
  593. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +0 -55
  594. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +0 -4
  595. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +0 -67
  596. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +0 -21
  597. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +0 -4
  598. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +0 -32
  599. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +0 -32
  600. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +0 -26
  601. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +0 -40
  602. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +0 -4
  603. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +0 -2
  604. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +0 -4
  605. package/dist/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +0 -10
  606. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +0 -6
  607. package/dist/node_modules/@allyhub-next/stage/dist/bakes.d.ts +0 -42
  608. package/dist/node_modules/@allyhub-next/stage/dist/graphics.d.ts +0 -7
  609. package/dist/node_modules/@allyhub-next/stage/dist/identity.d.ts +0 -2
  610. package/dist/node_modules/@allyhub-next/stage/dist/index.d.ts +0 -9
  611. package/dist/node_modules/@allyhub-next/stage/dist/page.d.ts +0 -87
  612. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +0 -69
  613. package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +0 -49
  614. package/dist/node_modules/@allyhub-next/stage/dist/scenery.d.ts +0 -8
  615. package/dist/node_modules/@allyhub-next/stage/dist/server.d.ts +0 -21
  616. package/dist/node_modules/@allyhub-next/stage-page/dist/host.d.ts +0 -22
  617. package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +0 -79
  618. package/dist/site.d.ts +0 -2
  619. package/editor-web/assets/dist-Cg2PdedY.js +0 -6
  620. package/editor-web/assets/dist-CuW84oPe.js +0 -233
  621. package/editor-web/assets/dist-CxAS_vp7.js +0 -2
  622. package/editor-web/assets/dist-DCVaj9i1.js +0 -4
  623. package/editor-web/assets/dist-DGVUuVPB.js +0 -33
  624. package/editor-web/assets/dist-Yi3sy7Ea.js +0 -1
  625. package/editor-web/assets/index-B7S9RZhL.css +0 -2
  626. package/editor-web/assets/index-pwRfZ2Jv.js +0 -69
  627. package/editor-web/assets/minus-BizJdinJ.js +0 -1
  628. package/editor-web/assets/react-D54s6gwK.js +0 -101
  629. package/editor-web/assets/textarea-CvxipnGW.js +0 -105
  630. package/editor-web/assets/trash-2-Bq1Dt8XG.js +0 -1
  631. package/editor-web/assets/undo-2-Djhvu4xt.js +0 -1
  632. /package/dist/node_modules/@allyhub-next/{site → ooxml}/LICENSE +0 -0
@@ -0,0 +1,101 @@
1
+ import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";var n=t((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`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.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`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return D(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+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(w,w):(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,C(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(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=h(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=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ne(e){var t=T.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 re={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=f,e.Children=re,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.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=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.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 D(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)E.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 D(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 T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),r=t(((e,t)=>{t.exports=n()})),i=t((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),a=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=i()}));function o(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function s(e,t=`|`){return e.map(e=>N(e)).join(t)}function c(e,t){return typeof t==`bigint`?t.toString():t}var l=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function u(e){return new l(e)}function d(e){return e==null}function f(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function p(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var m=Symbol(`evaluating`);function h(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==m)return r===void 0&&(r=m,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function g(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function _(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function v(e){return _(e._zod.def)??e._zod.def.shape}function y(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return g(this,t,e),e},enumerable:!0,configurable:!0})}function b(e,t,n){t in e?g(e,t,n):e[t]=n}function x(e,t,n,r){let i=v(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?y(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):b(e,a,r?r(n.value,a):n.value))}}function S(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?y(e,n,()=>t[n]):b(e,n,r.value))}}function C(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function w(e){return JSON.stringify(e)}function T(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var E=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function D(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ee=u(()=>{if(Ve.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function O(e){if(D(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return D(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function k(e){return O(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var te=new Set([`string`,`number`,`symbol`]);function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function j(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function N(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function P(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var F={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},I={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function ne(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return x(i,e,re(e,t)),j(e,C(n,{shape:i,checks:[]}))}function re(e,t){let n=v(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function ie(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(re(e,t)),a={};return x(a,e,Reflect.ownKeys(v(e)).filter(e=>!i.has(e))),j(e,C(n,{shape:a,checks:[]}))}function ae(e,t){if(!O(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=v(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return j(e,C(e._zod.def,{shape:oe(e,t)}))}function oe(e,t){let n={};return x(n,e,Reflect.ownKeys(v(e))),S(n,t),n}function se(e,t){if(!O(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return j(e,C(e._zod.def,{shape:oe(e,t)}))}function ce(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return x(n,e,Reflect.ownKeys(v(e))),x(n,t,Reflect.ownKeys(v(t))),j(e,C(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function le(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(re(t,n)):void 0,o={};return x(o,t,Reflect.ownKeys(v(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),j(t,C(t._zod.def,{shape:o,checks:[]}))}function ue(e,t,n){let r=n?new Set(re(t,n)):void 0,i={};return x(i,t,Reflect.ownKeys(v(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),j(t,C(t._zod.def,{shape:i}))}function de(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function fe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function pe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function me(e){return typeof e==`string`?e:e?.message}function he(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function ge(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function _e(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:me(e.inst?._zod.def?.error?.(e))??me(a?.(e))??me(t?.error?.(e))??me(n.customError?.(e))??me(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var ve=/[\uD800-\uDBFF]/;function ye(e){let t=e.length;if(!ve.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function be(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function xe(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Se(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ce(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):De(e,n,r.value)}}function we(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Te(e,t,n){return we(e,t,n,!1)}function Ee(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return we(this,n,r(this))},set(e){we(this,n,e)}})}return t}function De(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:we(this,t,n.bind(this))},set(e){we(this,t,e)}})}function Oe(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var ke,Ae=!1,je={configurable:!0,get(){Ae=!0}};function L(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&ke!==e._zod?ke=void 0:(ke=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,je);let e=Ae;Ae=!1;try{let r=n(this);return Ae?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),Ae||=e,r}catch(n){throw delete this[t],Ae||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Me(e,t,n,r){let i=Oe(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var Ne=`~constantCatch`;function Pe(e){let t=()=>e;return t[Ne]=!0,t}var Fe,Ie={value:void 0,enumerable:!1},Le=`captureStackTrace`in Error?Error:null;function Re(e){let t=Le;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Le=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function R(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Ie.value=new a(r);try{Object.defineProperty(n,"_zod",Ie)}finally{Ie.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Ce(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?Re(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var ze=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Be=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Fe=globalThis).__zod_globalConfig??(Fe.__zod_globalConfig={});var Ve=globalThis.__zod_globalConfig;function He(e){return e&&Object.assign(Ve,e),Ve}function Ue(){let e=this._zod;return e.message??=JSON.stringify(e.def,c,2),e.message}function We(e){this._zod.message=e}var Ge={get:Ue,set:We,enumerable:!0,configurable:!0},Ke={value:void 0,enumerable:!1},qe=new WeakSet([Object.prototype,Error.prototype]),Je=R(`$ZodError`,(e,t)=>{e.name=`$ZodError`,Ke.value=t,Object.defineProperty(e,"issues",Ke),Ke.value=void 0,Object.defineProperty(e,"message",Ge);let n=Object.getPrototypeOf(e);qe.has(n)||(qe.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))});function Ye(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Xe(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Ye(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Ze(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function Qe(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function $e(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${Qe(e.path)}`);return t.join(`
2
+ `)}function et(e,t){return{callee:t?.callee??e,Err:t?.Err}}var tt=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new ze;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>_e(e,o,He())));throw E(n,a?.callee??t),n}return s.value};return t},nt=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>_e(e,o,He())));throw E(n,a?.callee??t),n}return s.value};return t},rt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ze;return a.issues.length?it(e,a.issues,i):{success:!0,data:a.value}};function it(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>_e(e,n,He()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var at=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?it(e,a.issues,i):{success:!0,data:a.value}},ot=Symbol.for(`zod.compile.invalid`),st=Symbol.for(`zod.compile.fallback`),ct=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==ot)return!0;if(r.definite===!0&&n===void 0)return!1}return lt(e,t,n)});function lt(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[st]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new ze;return a.issues.length===0}var ut=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},dt=e=>{let t=tt(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,et(n,a))};return n},ft=e=>{let t=tt(e),n=(e,r,i,a)=>t(e,r,i,et(n,a));return n},pt=e=>{let t=nt(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,et(n,a))};return n},mt=e=>{let t=nt(e),n=async(e,r,i,a)=>await t(e,r,i,et(n,a));return n},ht=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return rt(e)(t,n,i)},gt=e=>(t,n,r)=>rt(e)(t,n,r),_t=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return at(e)(t,n,i)},vt=e=>async(t,n,r)=>at(e)(t,n,r),yt=/^[cC][0-9a-z]{6,}$/,bt=/^[0-9a-z]+$/,xt=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,St=/^[0-9a-vA-V]{20}$/,Ct=/^[A-Za-z0-9]{27}$/,wt=/^[a-zA-Z0-9_-]{21}$/;function Tt(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Et=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ot=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,kt=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,At=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function jt(){return new RegExp(At,`u`)}var Mt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Nt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Pt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ft=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,It=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lt=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Rt=/^https?$/,zt=/^\+[1-9]\d{6,14}$/,Bt=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Vt(e){return RegExp(`^${e}$`)}var Ht=Vt(Bt);function Ut(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wt(e){return RegExp(`^${Ut(e)}$`)}function Gt(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Ut({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Ut({precision:e.precision})}`:n;return RegExp(`^${Bt}T(?:${r})$`)}var Kt=/^[\s\S]{0,}$/,qt=/^-?\d+$/,Jt=/^-?\d+(?:\.\d+)?$/,Yt=/^(?:true|false)$/i,Xt=/^null$/i,Zt=/^[^A-Z]*$/,Qt=/^[^a-z]*$/,$t=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),en=e=>{let t=e.value;return!d(t)&&t.length!==void 0},tn={number:`number`,bigint:`bigint`,object:`date`},nn=R(`$ZodCheckLessThan`,(e,t)=>{$t.init(e,t);let n=tn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:tn[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rn=R(`$ZodCheckGreaterThan`,(e,t)=>{$t.init(e,t);let n=tn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:tn[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),an=R(`$ZodCheckMultipleOf`,(e,t)=>{$t.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):p(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),on=R(`$ZodCheckNumberFormat`,(e,t)=>{$t.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=F[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),sn=R(`$ZodCheckMaxLength`,(e,t)=>{var n;$t.init(e,t),(n=e._zod.def).when??(n.when=en),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?ye(r):i)<=t.maximum)return;let a=be(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cn=R(`$ZodCheckMinLength`,(e,t)=>{var n;$t.init(e,t),(n=e._zod.def).when??(n.when=en),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?ye(r):i)>=t.minimum)return;let a=be(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ln=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;$t.init(e,t),(n=e._zod.def).when??(n.when=en),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?ye(r):i;if(a===t.length)return;let o=be(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),un=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;$t.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),dn=R(`$ZodCheckRegex`,(e,t)=>{un.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),fn=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Zt,un.init(e,t)}),pn=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Qt,un.init(e,t)}),mn=R(`$ZodCheckIncludes`,(e,t)=>{$t.init(e,t);let n=A(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),hn=R(`$ZodCheckStartsWith`,(e,t)=>{$t.init(e,t);let n=RegExp(`^${A(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),gn=R(`$ZodCheckEndsWith`,(e,t)=>{$t.init(e,t);let n=RegExp(`.*${A(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),_n=R(`$ZodCheckOverwrite`,(e,t)=>{$t.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),vn=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
3
+ `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
4
+ `)}\n};`)(...Object.values(this.closed))}},yn={major:4,minor:6,patch:7},z=R(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=yn;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=de(t),a;for(let o of n){if(o._zod.def.when){if(fe(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new ze;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(ge(t.issues,n,e),i||=de(t,n))});else{if(t.issues.length===n)continue;ge(t.issues,n,e),i||=de(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(de(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new ze;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new ze;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Te(this,`~standard`,Sn(this))},set"~standard"(e){we(this,`~standard`,e)}}),bn=(e,t)=>e.issues.length?{issues:e.issues.map(e=>_e(e,t,He()))}:{value:e.value};async function xn(e,t){let n={async:!0};return bn(await e._zod.run({value:t,issues:[]},n),n)}function Sn(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return bn(r,n)}catch{}return xn(e,t)},vendor:`zod`,version:1}}var Cn=R(`$ZodString`,(e,t)=>{z.init(e,t),e._zod.pattern=t.pattern??Kt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),B=R(`$ZodStringFormat`,(e,t)=>{un.init(e,t),Cn.init(e,t)}),wn=R(`$ZodGUID`,(e,t)=>{t.pattern??=Dt,B.init(e,t)}),Tn=R(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Ot(e)}else t.pattern??=Ot();B.init(e,t)}),En=R(`$ZodEmail`,(e,t)=>{t.pattern??=kt,B.init(e,t)});function Dn(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function On(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Dn(e)||2:kn(e,t)}function kn(e,t){if(!t.normalize&&t.protocol?.source===Rt.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var An=/[\t\n\r]/g;function jn(e){return e.replace(An,``)}function Mn(e,t){return t.lastIndex=0,t.test(e.hostname)}function Nn(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var Pn=R(`$ZodURL`,(e,t)=>{B.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=On(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=jn(r);return}t.hostname&&!Mn(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Nn(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:jn(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Fn=R(`$ZodEmoji`,(e,t)=>{t.pattern??=jt(),B.init(e,t)}),In=R(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?wt:Tt(t.length),B.init(e,t)}),Ln=R(`$ZodCUID`,(e,t)=>{t.pattern??=yt,B.init(e,t)}),Rn=R(`$ZodCUID2`,(e,t)=>{t.pattern??=bt,B.init(e,t)}),zn=R(`$ZodULID`,(e,t)=>{t.pattern??=xt,B.init(e,t)}),Bn=R(`$ZodXID`,(e,t)=>{t.pattern??=St,B.init(e,t)}),Vn=R(`$ZodKSUID`,(e,t)=>{t.pattern??=Ct,B.init(e,t)}),Hn=R(`$ZodISODateTime`,(e,t)=>{t.pattern??=Gt(t),B.init(e,t)}),Un=R(`$ZodISODate`,(e,t)=>{t.pattern??=Ht,B.init(e,t)}),Wn=R(`$ZodISOTime`,(e,t)=>{t.pattern??=Wt(t),B.init(e,t)}),Gn=R(`$ZodISODuration`,(e,t)=>{t.pattern??=Et,B.init(e,t)}),Kn=R(`$ZodIPv4`,(e,t)=>{t.pattern??=Mt,B.init(e,t)}),qn=/^[0-9a-fA-F:.]+$/;function Jn(e){return qn.test(e)?Dn(`http://[${e}]`):!1}var Yn=R(`$ZodIPv6`,(e,t)=>{t.pattern??=Nt,B.init(e,t),e._zod.check=n=>{Jn(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Xn=R(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Pt,B.init(e,t)});function Zn(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Jn(n)}var Qn=R(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Ft,B.init(e,t),e._zod.check=n=>{Zn(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function $n(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var er=/^[0-9a-zA-Z+/]*={0,2}$/,tr=R(`$ZodBase64`,(e,t)=>{t.pattern??=er,B.init(e,t),e._zod.check=n=>{$n(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),nr=/^[A-Za-z0-9_-]*$/;function rr(e){if(!nr.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return $n(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var ir=R(`$ZodBase64URL`,(e,t)=>{t.pattern??=nr,B.init(e,t),e._zod.check=n=>{rr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),ar=R(`$ZodE164`,(e,t)=>{t.pattern??=zt,B.init(e,t)});function or(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var sr=R(`$ZodJWT`,(e,t)=>{B.init(e,t),e._zod.check=n=>{or(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),cr=R(`$ZodNumber`,(e,t)=>{z.init(e,t),e._zod.pattern=Jt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),lr=R(`$ZodNumberFormat`,(e,t)=>{on.init(e,t),cr.init(e,t)}),ur=R(`$ZodBoolean`,(e,t)=>{z.init(e,t),e._zod.pattern=Yt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),dr=R(`$ZodNull`,(e,t)=>{z.init(e,t),e._zod.pattern=Xt,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),fr=R(`$ZodUnknown`,(e,t)=>{z.init(e,t),e._zod.parse=e=>e}),pr=R(`$ZodNever`,(e,t)=>{z.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function mr(e,t){let n=he(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of he(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,ge(n.issues,t,e),n}}return i(n,a)}}var hr=e=>Array.isArray(e)?e.length:-1;function gr(e,t,n){e.issues.length&&t.issues.push(...pe(n,e.issues)),t.value[n]=e.value}var _r=R(`$ZodArray`,(e,t)=>{z.init(e,t);let n=Ve.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>gr(t,r,e)));else if(gr(c,r,e),s&&c.issues.length!==0&&de(c))break}return o.length?Promise.all(o).then(()=>r):r},mr(e,hr)});function vr(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...pe(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var yr=[];function br(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:yr,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=P(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function xr(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(de(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>vr(e,n,i,t,d,f))):vr(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Sr=R(`$ZodObject`,(e,t)=>{z.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=u(()=>br(t));L(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||g(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=D,o=t.catchall,s,c=Ve.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(de(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>vr(n,t,e,r,a,o))):vr(s,t,e,r,a,o)}return o?xr(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Cr=R(`$ZodObjectJIT`,(e,t)=>{Sr.init(e,t);let n=e._zod.parse,r=u(()=>br(t)),i=Ve.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new vn([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
5
+ let ${e}_ab = false;
6
+ for (let i = 0; i < ${e}.issues.length; i++) {
7
+ const iss = ${e}.issues[i];
8
+ iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
9
+ payload.issues.push(iss);
10
+ if (iss.continue !== true) ${e}_ab = true;
11
+ }
12
+ if (${e}_ab && ctx && ctx.abortEarly) {
13
+ payload.value = newResult;
14
+ return payload;
15
+ }`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:w(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
16
+ const ${n}_present = ${i};
17
+ if (!${n}.issues.length || ${n}_present) {
18
+ if (${n}.issues.length) {${c(n,r)}
19
+ }
20
+
21
+ if (${e}) {
22
+ newResult[${r}] = ${n}.value;
23
+ }
24
+ }
25
+
26
+ `)}else f?(o.write(`
27
+ if (${n}.issues.length) {${c(n,r)}
28
+ }
29
+ `),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
30
+ if (${n}.value !== undefined || ${i}) {
31
+ newResult[${r}] = ${n}.value;
32
+ }
33
+ `)):o.write(`
34
+ const ${n}_present = ${i};
35
+ if (${n}.issues.length) {${c(n,r)}
36
+ }
37
+ if (!${n}_present && !${n}.issues.length) {
38
+ payload.issues.push({
39
+ code: "invalid_type",
40
+ expected: "nonoptional",
41
+ input: undefined,
42
+ path: [${r}]
43
+ });
44
+ if (ctx && ctx.abortEarly) {
45
+ payload.value = newResult;
46
+ return payload;
47
+ }
48
+ }
49
+
50
+ if (${n}_present) {
51
+ newResult[${r}] = ${n}.value;
52
+ }
53
+
54
+ `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=D,c=!Ve.jitless,l=c&&ee.value,d=t.catchall,f;e._zod.parse=(i,u)=>{f??=r.value;let p=i.value;return s(p)?c&&l&&u?.async===!1&&u.jitless!==!0?(o||=a(t.shape),i=o(i,u),d?xr([],p,i,u,f,e,u?.abortEarly===!0):i):n(i,u):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function wr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!de(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>_e(e,r,He())))}),t)}var Tr=R(`$ZodUnion`,(e,t)=>{z.init(e,t),L(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),L(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),L(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),L(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>f(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>wr(t,r,e,i)):wr(o,r,e,i)}});function Er(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var Dr=R(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Tr.init(e,t);let n=e._zod.parse;L(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||g(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=_(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=u(()=>Er(t));e._zod.parse=(i,a)=>{let o=i.value;if(!D(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),Or=R(`$ZodIntersection`,(e,t)=>{z.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Ar(e,t,n)):Ar(e,i,a)}});function kr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(O(e)&&O(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=kr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=kr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ar(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=kr(t.value,n.value);if(!c.valid){if(de(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var jr=R(`$ZodTuple`,(e,t)=>{z.init(e,t);let n=t.items,r=Ve.memoizer;r?.attach(e),e._zod.parse=(i,a)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:`tuple`,code:`invalid_type`}),i;i.value=r?r.alloc(e,i,[],a):[];let s=[],c=Mr(n,`optin`),l=Mr(n,`optout`);if(!t.rest){if(o.length<c)return i.issues.push({code:`too_small`,minimum:c,inclusive:!0,input:o,inst:e,origin:`array`}),i;o.length>n.length&&i.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:o,inst:e,origin:`array`})}let u=Array(n.length),d=t.rest?a?.abortEarly:void 0,f=!1;for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:o[e],issues:[]},a);t instanceof Promise?s.push(t.then(t=>{u[e]=t})):(u[e]=t,d&&!f&&t.issues.length&&(f=de(t)))}if(t.rest&&!f){let e=n.length-1,r=o.slice(n.length),c=i.issues.length;for(let n of r){if(d&&i.issues.length!==c){if(de(i,c))break;c=i.issues.length}e++;let r=t.rest._zod.run({value:n,issues:[]},a);r instanceof Promise?s.push(r.then(t=>Nr(t,i,e))):Nr(r,i,e)}}return s.length?Promise.all(s).then(()=>Pr(u,i,n,o,l)):Pr(u,i,n,o,l)}});function Mr(e,t){for(let n=e.length-1;n>=0;n--)if(!(t===`optin`?e[n]._zod.optin!==void 0:e[n]._zod.optout===`optional`))return n+1;return 0}function Nr(e,t,n){e.issues.length&&t.issues.push(...pe(n,e.issues)),t.value[n]=e.value}function Pr(e,t,n,r,i){for(let a=0;a<n.length;a++){let o=e[a],s=a<r.length;if(!s&&a>=i&&n[a]._zod.optin===`optional`){t.value.length=a;break}if(o.issues.length){if(!s&&a>=i){t.value.length=a;break}t.issues.push(...pe(a,o.issues))}t.value[a]=o.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}var Fr=R(`$ZodRecord`,(e,t)=>{z.init(e,t);let n=Ve.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!O(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>_e(e,i,He())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...pe(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...pe(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&Jt.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>_e(e,i,He())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...pe(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...pe(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),Ir=R(`$ZodEnum`,(e,t)=>{z.init(e,t);let n=o(t.entries),r=new Set(n);e._zod.values=r,L(e,`pattern`,e=>{let t=o(e.def.entries).filter(e=>te.has(typeof e));return RegExp(t.length?`^(${t.map(e=>A(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Lr=R(`$ZodLiteral`,(e,t)=>{z.init(e,t);let n=new Set(t.values);e._zod.values=n,L(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?A(e):e?A(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Rr=R(`$ZodTransform`,(e,t)=>{z.init(e,t),e._zod.optin=`optional`,Ve.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Be(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new ze;return n.value=i,n}});function zr(e,t){return e.value=t.issues.length?void 0:t.value,e}var Br=R(`$ZodOptional`,(e,t)=>{z.init(e,t),L(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,L(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),L(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${f(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>zr(e,t)):zr(e,r)}return t.innerType._zod.run(e,n)}}),Vr=R(`$ZodExactOptional`,(e,t)=>{Br.init(e,t),L(e,`values`,e=>e.def.innerType._zod.values),L(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Hr=R(`$ZodNullable`,(e,t)=>{z.init(e,t),L(e,`optin`,e=>e.def.innerType._zod.optin),L(e,`optout`,e=>e.def.innerType._zod.optout),L(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${f(t.source)}|null)$`):void 0}),L(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Ur=R(`$ZodDefault`,(e,t)=>{z.init(e,t),e._zod.optin=`defaulted`,L(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t)):Wr(r,t)}});function Wr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Gr=R(`$ZodPrefault`,(e,t)=>{z.init(e,t),e._zod.optin=`defaulted`,L(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Kr=R(`$ZodNonOptional`,(e,t)=>{z.init(e,t),L(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>qr(t,e)):qr(i,e)}});function qr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Jr(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>_e(e,r,He()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Yr=R(`$ZodCatch`,(e,t)=>{z.init(e,t),L(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),L(e,`optout`,e=>e.def.innerType._zod.optout),L(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Jr(e,r,t,n)):Jr(e,r,t,n)}}),Xr=R(`$ZodPipe`,(e,t)=>{z.init(e,t),L(e,`values`,e=>e.def.in._zod.values),L(e,`optin`,e=>e.def.in._zod.optin),L(e,`optout`,e=>e.def.out._zod.optout),L(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Zr(e,t.in,n)):Zr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Zr(e,t.out,n)):Zr(r,t.out,n)}});function Zr(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Qr=R(`$ZodReadonly`,(e,t)=>{z.init(e,t),L(e,`propValues`,e=>e.def.innerType._zod.propValues),L(e,`values`,e=>e.def.innerType._zod.values),L(e,`optin`,e=>e.def.innerType?._zod?.optin),L(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then($r):$r(r)}});function $r(e){return e.memo||(e.value=Object.freeze(e.value)),e}var ei=R(`$ZodLazy`,(e,t)=>{z.init(e,t),h(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),L(e,`pattern`,e=>e.innerType?._zod?.pattern),L(e,`propValues`,e=>e.innerType?._zod?.propValues),L(e,`optin`,e=>e.innerType?._zod?.optin??void 0),L(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),ti=R(`$ZodCustom`,(e,t)=>{$t.init(e,t),z.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>ni(t,n,r,e));ni(i,n,r,e)}});function ni(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Se(e))}}var ri=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},ii=`~memo`,ai=[];function oi(e){return typeof e==`object`&&!!e}function si(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var ci=new WeakMap,li=0,ui=1,di=2;function fi(e,t,n){let r=ci.get(e);if(r!==void 0)return r?di:li;if(t.has(e))return di;t.add(e);let i=li,a=e=>{if(i!==di&&e?._zod){let r=fi(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=li;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?ui:o.value?._zod?fi(o.value,t,n):li;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=_(c);s(e?o(e,!0):ui),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?fi(r,t,!1):ui);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),pi(e,i)}function pi(e,t){return t!==ui&&ci.set(e,t===di),t}function mi(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var hi,gi=[],_i={alloc(e,t,n){let r=hi;if(!r)return n;hi=void 0;let i={value:n,issues:null};return r.set(t.value,i),gi.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&yi(n,e.value))throw new ri;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=fi(e,new Set,!1);if(i===li)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===di||r?n=!0:r=!0}let l=s.value;if(!oi(l))return t(s,c);let u=c[ii];u||(u={buckets:new WeakMap,backEdges:void 0},c[ii]=u);let d;i===c?d=a:(d=mi(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...si(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;hi=d;let p=gi.length,m=t(s,c);hi=void 0;let h=gi.length>p?gi.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?si(e.issues):ai),e)):(h&&(h.issues=m.issues.length?si(m.issues):ai),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function vi(){return _i}function yi(e,t){let n=e[ii]?.backEdges;return n!==void 0&&oi(t)&&n.has(t)}var bi=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(xe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${N(e.values[0])}`:`Invalid option: expected one of ${s(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${s(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function xi(){return{localeError:bi()}}var Si,Ci=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function wi(){return new Ci}(Si=globalThis).__zod_globalRegistry??(Si.__zod_globalRegistry=wi());var Ti=globalThis.__zod_globalRegistry;function Ei(e){return e.checks&&=[...e.checks],e}function Di(e,t){return new e(Ei({type:`string`,...M(t)}))}function Oi(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...M(t)})}function ki(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...M(t)})}function Ai(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...M(t)})}function ji(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...M(t)})}function Mi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...M(t)})}function Ni(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...M(t)})}function Pi(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...M(t)})}function Fi(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...M(t)})}function Ii(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...M(t)})}function Li(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...M(t)})}function Ri(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...M(t)})}function zi(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...M(t)})}function Bi(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...M(t)})}function Vi(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...M(t)})}function Hi(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...M(t)})}function Ui(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...M(t)})}function Wi(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...M(t)})}function Gi(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...M(t)})}function Ki(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...M(t)})}function qi(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...M(t)})}function Ji(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...M(t)})}function Yi(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...M(t)})}function Xi(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...M(t)})}function Zi(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...M(t)})}function Qi(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...M(t)})}function $i(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...M(t)})}function ea(e,t){return new e(Ei({type:`number`,checks:[],...M(t)}))}function ta(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...M(t)})}function na(e,t){return new e({type:`boolean`,...M(t)})}function ra(e,t){return new e({type:`null`,...M(t)})}function ia(e){return new e({type:`unknown`})}function aa(e,t){return new e({type:`never`,...M(t)})}function oa(e,t){return new nn({check:`less_than`,...M(t),value:e,inclusive:!1})}function sa(e,t){return new nn({check:`less_than`,...M(t),value:e,inclusive:!0})}function ca(e,t){return new rn({check:`greater_than`,...M(t),value:e,inclusive:!1})}function la(e,t){return new rn({check:`greater_than`,...M(t),value:e,inclusive:!0})}function ua(e,t){return new an({check:`multiple_of`,...M(t),value:e})}function da(e,t){return new sn({check:`max_length`,...M(t),maximum:e})}function fa(e,t){return new cn({check:`min_length`,...M(t),minimum:e})}function pa(e,t){return new ln({check:`length_equals`,...M(t),length:e})}function ma(e,t){return new dn({check:`string_format`,format:`regex`,...M(t),pattern:e})}function ha(e){return new fn({check:`string_format`,format:`lowercase`,...M(e)})}function ga(e){return new pn({check:`string_format`,format:`uppercase`,...M(e)})}function _a(e,t){return new mn({check:`string_format`,format:`includes`,...M(t),includes:e})}function va(e,t){return new hn({check:`string_format`,format:`starts_with`,...M(t),prefix:e})}function ya(e,t){return new gn({check:`string_format`,format:`ends_with`,...M(t),suffix:e})}function ba(e){return new _n({check:`overwrite`,tx:e})}function xa(e){return ba(t=>t.normalize(e))}function Sa(){return ba(e=>e.trim())}function Ca(){return ba(e=>e.toLowerCase())}function wa(){return ba(e=>e.toUpperCase())}function Ta(){return ba(e=>T(e))}function Ea(e,t,n){return new e({type:`array`,element:t,...M(n)})}function Da(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...M(n)})}function Oa(e,t){let n=ka(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Se(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Se(r))}},e(t.value,t)),t);return n}function ka(e,t){let n=new $t({check:`custom`,...M(t)});return n._zod.check=e,n}function Aa(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&g(e,t,n[t]);return e}function ja(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Ti,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function Ma(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function Na(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Na(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Aa(o.schema,c),t.io===`input`&&Ua(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Pa(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Fa(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Pa(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Pa(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
55
+
56
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ia(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Ia(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var La=new Set([`type`,`properties`,`required`,`additionalProperties`]),Ra=[`oneOf`,`anyOf`];function za(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Ba(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!La.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??za(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}g(n,r,e.length===1?e[0]:Ba(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=za(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Va(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of La)if(t in e)return;let n=t.filter(e=>Ra.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Ba(t);else{let e=n[0],i=Ra.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Ba([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Aa(e,r))}function Ha(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Aa(i,s),Aa(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Ia(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Va(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Aa(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,g(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Ga(t,`input`,e.processors),output:Ga(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Ua(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Ua(r.element,n);if(r.type===`set`)return Ua(r.valueType,n);if(r.type===`lazy`)return Ua(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Ua(r.innerType,n);if(r.type===`intersection`)return Ua(r.left,n)||Ua(r.right,n);if(r.type===`record`||r.type===`map`)return Ua(r.keyType,n)||Ua(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Ua(r.in,n)||Ua(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Ua(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Ua(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Ua(e,n))return!0;return!!(r.rest&&Ua(r.rest,n))}return!1}var Wa=(e,t={})=>n=>{let r=ja({...n,processors:t});return Na(e,r),Fa(r,e),Ha(r,e)},Ga=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ja({...i??{},target:a,io:t,processors:n});return Na(e,o),Fa(o,e),Ha(o,e)},Ka=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},qa=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Ja=(e,t)=>{Ka(e,`minimum`,t),qa(e,`maximum`,t)},Ya=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Xa=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},Za=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Qa=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},$a=(e,t)=>Ka(e,`minimum`,t.minimum),eo=(e,t)=>qa(e,`maximum`,t.maximum),to=e=>(t,n)=>{Qa(t,n.format);let[r,i]=e[n.format];Ka(t,`minimum`,r),qa(t,`maximum`,i)},no={greater_than:(e,t)=>Ka(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>qa(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Ya(e,t.value),number_format:to(F),bigint_format:to(I),min_length:$a,max_length:eo,length_equals:(e,t)=>Ja(e,t.length),min_size:$a,max_size:eo,size_equals:(e,t)=>Ja(e,t.size),string_format:(e,t)=>{Qa(e,t.format),t.pattern&&Xa(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Za(e,t.mime)};function ro(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)no[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&Ka(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&Ka(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&qa(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&qa(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Ya(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Za(t,i.mime);for(let e of i.patterns??[])Xa(t,e);return t}var io={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ao=new Map([[er,It],[nr,Lt]]),oo=e=>ao.get(e)??e,so=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=ro(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=io[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(oo);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},co=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=ro(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):Ma(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},lo=(e,t,n,r)=>{n.type=`boolean`},uo=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},fo=(e,t,n,r)=>{n.not={}},po=(e,t,n,r)=>{let i=e._zod.def,a=o(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},mo=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(Ma(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(Ma(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},ho=(e,t,n,r)=>{Ma(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},go=(e,t,n,r)=>{Ma(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},_o=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=ro(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Na(a.element,t,{...r,path:[...r.path,`items`]})};function vo(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?vo(t.out):t.type===`catch`?vo(t.innerType):e._zod.optin}var yo=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Ma(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)g(i.properties,e,Na(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?vo(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Na(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},bo=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Na(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},xo=(e,t,n,r)=>{let i=e._zod.def,a=Na(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Na(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},So=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>Na(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?Na(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null,u=a.items.length;for(;u>0;){let e=a.items[u-1];if(!(t.io===`input`?vo(e)!==void 0:e._zod.optout===`optional`))break;u--}let d=a.items.length,f=!a.rest;t.target===`draft-2020-12`?(i.prefixItems=c,f?i.items=!1:l&&(i.items=l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):(i.items=c,f?i.additionalItems=!1:l&&(i.additionalItems=l),u>0&&(i.minItems=u),f&&(i.maxItems=d));let{minimum:p,maximum:m}=ro(e);typeof p==`number`&&(i.minItems=p),typeof m==`number`&&(i.maxItems=m)};function Co(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=Co(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>Co(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?Jt:qt).source)),p}var wo=new WeakMap;function To(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of wo.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=Co(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var Eo=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=ro(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Na(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)g(i.patternProperties,oo(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=Na(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=wo.get(t);n||(n=[],wo.set(t,n),t.deferred.push(()=>To(t))),n.push(e)}i.additionalProperties=Na(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&vo(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},Do=(e,t,n,r)=>{let i=e._zod.def,a=Na(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Oo=(e,t,n,r)=>{let i=e._zod.def;Na(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ko=Symbol();function Ao(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Ma(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),ko):JSON.parse(o)}var jo=(e,t,n,r)=>{let i=e._zod.def;Na(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=Ao(i.defaultValue,e,t,n,r);o!==ko&&(n.default=o)},Mo=(e,t,n,r)=>{let i=e._zod.def;Na(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=Ao(i.defaultValue,e,t,n,r);o!==ko&&(n._prefault=o)},No=(e,t,n,r)=>{let i=e._zod.def;Na(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Ma(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},Po=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Na(o,t,r);let s=t.seen.get(e);s.ref=o},Fo=(e,t,n,r)=>{let i=e._zod.def;Na(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Io=(e,t,n,r)=>{let i=e._zod.def;Na(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Lo=(e,t,n,r)=>{let i=e._zod.innerType;Na(i,t,r);let a=t.seen.get(e);a.ref=i},Ro=new WeakSet([Object.prototype,Error.prototype]);function zo(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Bo=R(`ZodError`,(e,t)=>{Je.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);Ro.has(n)||(Ro.add(n),zo(n,`format`,e=>t=>Ze(e,t)),zo(n,`flatten`,e=>t=>Xe(e,t)),zo(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,c,2)}),zo(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,c,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Vo=tt(Bo),Ho=nt(Bo),Uo=rt(Bo),Wo=at(Bo),Go=dt(Bo),Ko=ft(Bo),qo=pt(Bo),Jo=mt(Bo),Yo=ht(Bo),Xo=gt(Bo),Zo=_t(Bo),Qo=vt(Bo);function $o(){Ve.localeError||He(xi())}function es(){Ve.memoizer||He({memoizer:vi()})}var V=R(`ZodType`,(e,t)=>($o(),z.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(C(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return j(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ec(e,t))},superRefine(e,t){return this.check(Dc(e,t))},overwrite(e){return this.check(ba(e))},optional(){return oc(this)},exactOptional(){return cc(this)},nullable(){return uc(this)},nullish(){return oc(uc(this))},nonoptional(e){return gc(this,e)},array(){return G(this)},or(e){return Us([this,e])},and(e){return qs(this,e)},transform(e){return bc(this,ic(e))},default(e){return fc(this,e)},prefault(e){return mc(this,e)},catch(e){return vc(this,e)},pipe(e){return bc(this,e)},readonly(){return Sc(this)},describe(e){let t=this.clone();return Ti.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ti.get(this);let t=this.clone();return Ti.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Te(this,`~standard`,{...Sn(this),jsonSchema:{input:Ga(this,`input`),output:Ga(this,`output`)}})},set"~standard"(e){we(this,`~standard`,e)},parse:function e(t,n){return Vo(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Ho(this,t,n,{callee:e})},safeParse(e,t){return Uo(this,e,t)},async safeParseAsync(e,t){return Wo(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){we(this,`spa`,e)},validate(e,t){return ct(this,e,t)},validateAsync(e,t){return ut(this,e,t)},encode:function e(t,n){return Go(this,t,n,{callee:e})},decode:function e(t,n){return Ko(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await qo(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Jo(this,t,n,{callee:e})},safeEncode(e,t){return Yo(this,e,t)},safeDecode(e,t){return Xo(this,e,t)},async safeEncodeAsync(e,t){return Zo(this,e,t)},async safeDecodeAsync(e,t){return Qo(this,e,t)},toJSONSchema(e){return Wa(this,{})(e)},get description(){return Ti.get(this)?.description},get _def(){return this._zod.def}}),ts=R(`_ZodString`,(e,t)=>{Cn.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>so(e,t,n,r)},Ee({format:e=>ro(e).format??null,minLength:e=>ro(e).minimum??null,maxLength:e=>ro(e).maximum??null},{regex(...e){return this.check(ma(...e))},includes(...e){return this.check(_a(...e))},startsWith(...e){return this.check(va(...e))},endsWith(...e){return this.check(ya(...e))},min(...e){return this.check(fa(...e))},max(...e){return this.check(da(...e))},length(...e){return this.check(pa(...e))},nonempty(...e){return this.check(fa(1,...e))},lowercase(e){return this.check(ha(e))},uppercase(e){return this.check(ga(e))},trim(){return this.check(Sa())},normalize(...e){return this.check(xa(...e))},toLowerCase(){return this.check(Ca())},toUpperCase(){return this.check(wa())},slugify(){return this.check(Ta())}})),ns=R(`ZodString`,(e,t)=>{Cn.init(e,t),ts.init(e,t)},{email(e){return this.check(Oi(cs,e))},url(e){return this.check(Pi(ds,e))},jwt(e){return this.check(Yi(Os,e))},emoji(e){return this.check(Fi(ps,e))},guid(e){return this.check(ki(ls,e))},uuid(e){return this.check(Ai(us,e))},uuidv4(e){return this.check(ji(us,e))},uuidv6(e){return this.check(Mi(us,e))},uuidv7(e){return this.check(Ni(us,e))},nanoid(e){return this.check(Ii(ms,e))},cuid(e){return this.check(Li(hs,e))},cuid2(e){return this.check(Ri(gs,e))},ulid(e){return this.check(zi(_s,e))},base64(e){return this.check(Ki(ws,e))},base64url(e){return this.check(qi(Es,e))},xid(e){return this.check(Bi(vs,e))},ksuid(e){return this.check(Vi(ys,e))},ipv4(e){return this.check(Hi(bs,e))},ipv6(e){return this.check(Ui(xs,e))},cidrv4(e){return this.check(Wi(Ss,e))},cidrv6(e){return this.check(Gi(Cs,e))},e164(e){return this.check(Ji(Ds,e))},datetime(e){return this.check(Xi(is,e))},date(e){return this.check(Zi(as,e))},time(e){return this.check(Qi(os,e))},duration(e){return this.check($i(ss,e))}});function H(e){return Di(ns,e)}var rs=R(`ZodStringFormat`,(e,t)=>{B.init(e,t),ts.init(e,t)}),is=R(`ZodISODateTime`,(e,t)=>{Hn.init(e,t),rs.init(e,t)}),as=R(`ZodISODate`,(e,t)=>{Un.init(e,t),rs.init(e,t)}),os=R(`ZodISOTime`,(e,t)=>{Wn.init(e,t),rs.init(e,t)}),ss=R(`ZodISODuration`,(e,t)=>{Gn.init(e,t),rs.init(e,t)}),cs=R(`ZodEmail`,(e,t)=>{En.init(e,t),rs.init(e,t)}),ls=R(`ZodGUID`,(e,t)=>{wn.init(e,t),rs.init(e,t)}),us=R(`ZodUUID`,(e,t)=>{Tn.init(e,t),rs.init(e,t)}),ds=R(`ZodURL`,(e,t)=>{Pn.init(e,t),rs.init(e,t)});function fs(e){return Pi(ds,e)}var ps=R(`ZodEmoji`,(e,t)=>{Fn.init(e,t),rs.init(e,t)}),ms=R(`ZodNanoID`,(e,t)=>{In.init(e,t),rs.init(e,t)}),hs=R(`ZodCUID`,(e,t)=>{Ln.init(e,t),rs.init(e,t)}),gs=R(`ZodCUID2`,(e,t)=>{Rn.init(e,t),rs.init(e,t)}),_s=R(`ZodULID`,(e,t)=>{zn.init(e,t),rs.init(e,t)}),vs=R(`ZodXID`,(e,t)=>{Bn.init(e,t),rs.init(e,t)}),ys=R(`ZodKSUID`,(e,t)=>{Vn.init(e,t),rs.init(e,t)}),bs=R(`ZodIPv4`,(e,t)=>{Kn.init(e,t),rs.init(e,t)}),xs=R(`ZodIPv6`,(e,t)=>{Yn.init(e,t),rs.init(e,t)}),Ss=R(`ZodCIDRv4`,(e,t)=>{Xn.init(e,t),rs.init(e,t)}),Cs=R(`ZodCIDRv6`,(e,t)=>{Qn.init(e,t),rs.init(e,t)}),ws=R(`ZodBase64`,(e,t)=>{tr.init(e,t),rs.init(e,t)});function Ts(e){return Ki(ws,e)}var Es=R(`ZodBase64URL`,(e,t)=>{ir.init(e,t),rs.init(e,t)}),Ds=R(`ZodE164`,(e,t)=>{ar.init(e,t),rs.init(e,t)}),Os=R(`ZodJWT`,(e,t)=>{sr.init(e,t),rs.init(e,t)}),ks=R(`ZodNumber`,(e,t)=>{cr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>co(e,t,n,r),e.isFinite=!0},Ee({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=ro(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=ro(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=ro(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>ro(e).format??null},{gt(e,t){return this.check(ca(e,t))},gte(e,t){return this.check(la(e,t))},min(e,t){return this.check(la(e,t))},lt(e,t){return this.check(oa(e,t))},lte(e,t){return this.check(sa(e,t))},max(e,t){return this.check(sa(e,t))},int(e){return this.check(js(e))},safe(e){return this.check(js(e))},positive(e){return this.check(ca(0,e))},nonnegative(e){return this.check(la(0,e))},negative(e){return this.check(oa(0,e))},nonpositive(e){return this.check(sa(0,e))},multipleOf(e,t){return this.check(ua(e,t))},step(e,t){return this.check(ua(e,t))},finite(){return this}}));function U(e){return ea(ks,e)}var As=R(`ZodNumberFormat`,(e,t)=>{lr.init(e,t),ks.init(e,t)});function js(e){return ta(As,e)}var Ms=R(`ZodBoolean`,(e,t)=>{ur.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lo(e,t,n,r)});function Ns(e){return na(Ms,e)}var Ps=R(`ZodNull`,(e,t)=>{dr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uo(e,t,n,r)});function Fs(e){return ra(Ps,e)}var Is=R(`ZodUnknown`,(e,t)=>{fr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function W(){return ia(Is)}var Ls=R(`ZodNever`,(e,t)=>{pr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fo(e,t,n,r)});function Rs(e){return aa(Ls,e)}var zs=R(`ZodArray`,(e,t)=>{es(),_r.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_o(e,t,n,r),e.element=t.element},{min(e,t){return this.check(fa(e,t))},nonempty(e){return this.check(fa(1,e))},max(e,t){return this.check(da(e,t))},length(e,t){return this.check(pa(e,t))},unwrap(){return this.element}});function G(e,t){return Ea(zs,e,t)}var Bs=R(`ZodObject`,(e,t)=>{es(),Cr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yo(e,t,n,r),Me(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return ec(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(C(this._zod.def,{catchall:e}))},passthrough(){return this.clone(C(this._zod.def,{catchall:W()}))},loose(){return this.clone(C(this._zod.def,{catchall:W()}))},strict(){return this.clone(C(this._zod.def,{catchall:Rs()}))},strip(){return this.clone(C(this._zod.def,{catchall:void 0}))},extend(e){return ae(this,e)},safeExtend(e){return se(this,e)},merge(e){return ce(this,e)},pick(e){return ne(this,e)},omit(e){return ie(this,e)},partial(...e){return le(ac,this,e[0])},exactPartial(...e){return le(sc,this,e[0],`exactPartial`)},required(...e){return ue(hc,this,e[0])}});function K(e,t){return new Bs({type:`object`,shape:e??{},...M(t)})}function q(e,t){return new Bs({type:`object`,shape:e,catchall:Rs(),...M(t)})}function Vs(e,t){return new Bs({type:`object`,shape:e,catchall:W(),...M(t)})}var Hs=R(`ZodUnion`,(e,t)=>{Tr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bo(e,t,n,r),e.options=t.options});function Us(e,t){return new Hs({type:`union`,options:e,...M(t)})}var Ws=R(`ZodDiscriminatedUnion`,(e,t)=>{Hs.init(e,t),Dr.init(e,t)});function Gs(e,t,n){return new Ws({type:`union`,options:t,discriminator:e,...M(n)})}var Ks=R(`ZodIntersection`,(e,t)=>{Or.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xo(e,t,n,r)});function qs(e,t){return new Ks({type:`intersection`,left:e,right:t})}var Js=R(`ZodTuple`,(e,t)=>{es(),jr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>So(e,t,n,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw Error(`.partial() cannot be used on tuple schemas containing refinements`);return this.clone({...e,items:e.items.map(e=>new ac({type:`optional`,innerType:e}))})}});function Ys(e,t,n){let r=t instanceof z;return new Js({type:`tuple`,items:e,rest:r?t:null,...M(r?n:t)})}var Xs=R(`ZodRecord`,(e,t)=>{es(),Fr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eo(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Zs(e,t,n){return!t||!t._zod?new Xs({type:`record`,keyType:H(),valueType:e,...M(t)}):new Xs({type:`record`,keyType:e,valueType:t,...M(n)})}function Qs(e,t,n){return new Xs({type:`record`,keyType:e,valueType:t,...M(n),partial:!0})}var $s=R(`ZodEnum`,(e,t)=>{Ir.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>po(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new $s({...t,checks:[],...M(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new $s({...t,checks:[],...M(r),entries:i})}});function ec(e,t){return new $s({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...M(t)})}var tc=R(`ZodLiteral`,(e,t)=>{Lr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mo(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function nc(e,t){return new tc({type:`literal`,values:Array.isArray(e)?e:[e],...M(t)})}var rc=R(`ZodTransform`,(e,t)=>{es(),Rr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>go(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Be(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Se(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Se(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function ic(e){return new rc({type:`transform`,transform:e})}var ac=R(`ZodOptional`,(e,t)=>{Br.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Io(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function oc(e){return new ac({type:`optional`,innerType:e})}var sc=R(`ZodExactOptional`,(e,t)=>{Vr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Io(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cc(e){return new sc({type:`optional`,innerType:e})}var lc=R(`ZodNullable`,(e,t)=>{Hr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Do(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function uc(e){return new lc({type:`nullable`,innerType:e})}var dc=R(`ZodDefault`,(e,t)=>{Ur.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fc(e,t){return new dc({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():k(t)}})}var pc=R(`ZodPrefault`,(e,t)=>{Gr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function mc(e,t){return new pc({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():k(t)}})}var hc=R(`ZodNonOptional`,(e,t)=>{Kr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gc(e,t){return new hc({type:`nonoptional`,innerType:e,...M(t)})}var _c=R(`ZodCatch`,(e,t)=>{Yr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vc(e,t){return new _c({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Pe(t)})}var yc=R(`ZodPipe`,(e,t)=>{Xr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Po(e,t,n,r),e.in=t.in,e.out=t.out});function bc(e,t){return new yc({type:`pipe`,in:e,out:t})}var xc=R(`ZodReadonly`,(e,t)=>{Qr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Sc(e){return new xc({type:`readonly`,innerType:e})}var Cc=R(`ZodLazy`,(e,t)=>{ei.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function wc(e){return new Cc({type:`lazy`,getter:e})}var Tc=R(`ZodCustom`,(e,t)=>{ti.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ho(e,t,n,r)});function Ec(e,t={}){return Da(Tc,e,t)}function Dc(e,t){return Oa(e,t)}function Oc(e){return Xi(is,e)}function kc(e){return Zi(as,e)}q({jsonrpc:nc(`2.0`),id:Us([H(),js()]),method:H().min(1),params:W().optional()}),q({jsonrpc:nc(`2.0`),method:H().min(1),params:W().optional()});var Ac=q({code:js(),message:H(),data:W().optional()});Us([q({jsonrpc:nc(`2.0`),id:Us([H(),js()]),result:W()}),q({jsonrpc:nc(`2.0`),id:Us([H(),js(),Fs()]),error:Ac})]);var jc={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},J=(e,t,n)=>({params:e,result:t,about:n}),Mc=(e,t)=>({params:e,about:t}),Nc=class extends Error{code;data;constructor(e,t,n){super(t),this.name=`RpcError`,this.code=e,this.data=n}};async function Pc(e,t,n){let{id:r}=n,i=Object.hasOwn(e,n.method)?e[n.method]:void 0;if(!i)return{jsonrpc:`2.0`,id:r,error:{code:jc.methodNotFound,message:`There is no method "${n.method}".`}};let a=i.params.safeParse(n.params??{});if(!a.success)return{jsonrpc:`2.0`,id:r,error:{code:jc.invalidParams,message:$e(a.error)}};try{let e=t[n.method],o=await e(a.data);return{jsonrpc:`2.0`,id:r,result:i.result.parse(o)}}catch(e){return e instanceof Nc?{jsonrpc:`2.0`,id:r,error:{code:e.code,message:e.message,...e.data===void 0?{}:{data:e.data}}}:{jsonrpc:`2.0`,id:r,error:{code:jc.internal,message:e instanceof Error?e.message:String(e)}}}}var Y=H().min(1).refine(e=>!e.startsWith(`/`)&&!e.split(`/`).includes(`..`),{message:`A path is inside the project.`}),Fc=H().regex(/^[0-9a-f]{64}$/u).nullable(),Ic=q({kind:ec([`person`,`agent`,`tool`]),name:H().min(1)}),Lc=q({path:Y,size:js().nonnegative(),modified:U()}),Rc={"files/read":J(q({path:Y}),q({text:H(),version:Fc}),`A text file, with its version; a file that is not there reads as empty with version null.`),"files/write":J(q({path:Y,text:H(),over:Fc}),q({version:Fc}),`Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it.`),"files/upload":J(q({dir:Y,name:H().min(1),data:Ts()}),q({path:Y}),`Keeps a file the person added, under a free name in the folder.`),"files/url":J(q({path:Y}),q({url:H()}),`An address a page can load the file from (a picture, a video).`),"files/list":J(q({dir:H()}),q({files:G(Lc),dirs:G(Y)}),`A folder's files and folders, as on disk.`),"files/move":J(q({from:Y,to:Y}),q({rewritten:G(Y)}),`Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does.`),"files/remove":J(q({path:Y}),q({trash:H()}),`Moves a file or folder to the recycle bin (nothing is deleted).`),"files/trash":J(q({}),q({entries:G(q({id:H(),path:Y,removed:U()}))}),`What the recycle bin holds.`),"files/restore":J(q({id:H()}),q({path:Y}),`Puts a removed thing back where it was; refused while something is there.`),"files/watch":J(q({paths:G(Y).min(1)}),q({watch:H()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":J(q({watch:H()}),q({}),`Stops a watch.`)},zc={"files/changed":Mc(q({watch:H(),changes:G(q({path:Y,version:Fc,by:Ic.optional()}))}),`Files under a watch changed, other than by this client's own writes.`)},Bc=`website.json`,Vc=q({$schema:H().optional(),dev:H().min(1).optional().describe("The command that serves the website while it is made, run in its folder by a shell. It listens on $PORT at $HOST, which the host sets (`astro dev --port $PORT --host $HOST --ignore-lock`), and allows the hosts in $ALLYHUB_PREVIEW_HOSTS when its server checks the Host header. None: the output folder is served as it is."),build:H().min(1).optional().describe("The command that builds the website into its output folder (`astro build`). None: it is not built."),output:H().min(1).describe("The folder that is the built website, from the website's folder (`dist`); `.` for a website of plain files."),site:H().min(1).optional().describe("The hosted site this website publishes to, written by `allyhub site deploy` the first time, so the folder publishes to the same site from any computer.")}),Hc=[`ts`,`tsx`,`mts`,`js`,`jsx`,`mjs`],Uc=e=>Hc.map(t=>`${e}.${t}`),Wc=[`video`,`slides`,`doc`,`sheet`,`scenery`,`website`],Gc={video:{entries:Uc(`video`),editor:`video`,name:`video`},slides:{entries:Uc(`slides`),editor:`slides`,name:`slides`},doc:{entries:[`doc.mdx`],editor:`doc`,name:`doc`},sheet:{entries:[`sheet.yaml`],editor:`sheet`,name:`sheet`},scenery:{entries:Uc(`scenery`),editor:`scenery`,name:`3D scenery`},model:{entries:Uc(`model`),editor:`scenery`,name:`3D model`},website:{entries:[Bc],editor:`website`,name:`website`}},Kc={video:{types:[`mp4`,`mov`,`gif`],extras:[`srt`,`cover`]},slides:{types:[`pptx`,`pdf`,`png`],extras:[`cover`],options:[{name:`pptx`,only:[`pptx`],values:[`native`,`picture`]},{name:`steps`,only:[`pdf`,`png`]}]},doc:{types:[`pdf`,`docx`,`png`,`md`],extras:[]},sheet:{types:[`xlsx`,`pdf`,`png`,`csv`,`md`,`json`],extras:[]},model:{types:[`glb`],extras:[]}},qc=Object.keys(Gc);new Map(qc.flatMap(e=>Gc[e].entries.map(t=>[t,e])));var Jc={item:Y,version:H().optional()},Yc=q({mime:H().regex(/^image\//u),data:Ts()}),Xc=Vs({code:H(),level:ec([`error`,`warn`]),message:H(),piece:H().optional(),part:H().optional(),t:U().optional()}),Zc=Vs({kind:H(),data:W()}),Qc=Vs({fps:U(),width:U(),height:U(),duration:U(),parts:G(W())}),$c=q({status:ec([`off`,`waiting`,`running`,`done`,`failed`]),revision:js().nonnegative(),problems:G(Xc),facts:G(Zc),versions:q({total:js(),loaded:js(),reused:js()}).optional(),error:H().optional()}),el=[`queued`,`running`,`done`,`failed`,`cancelled`],tl=Zs(H(),Us([H(),Ns()])),nl=q({id:H(),item:Y,versions:G(H()),types:G(H()),options:tl.optional(),state:ec(el),progress:U().min(0).max(1),files:G(Y),error:H().optional()}),rl=q({file:Y,status:ec([`running`,`done`,`failed`]),message:H(),share:U().min(0).max(1).optional()}),il=Ys([U(),U(),U()]),al=q({url:H(),probe:H()}),ol={"project/items":J(q({}),q({items:G(q({kind:ec(qc),dir:Y,entry:Y,title:H().optional()})),name:H(),scope:H(),revision:js().nonnegative()}),`The project's items, as the build finds them.`),"sheet/generated":J(q({item:Y}),q({generated:W().optional(),failed:Ns()}),`What a sheet's sheet.ts makes now: sheets as sheet.yaml would hold them. Never written to a file.`),"video/versions":J(q({item:Y}),q({piece:H(),kind:ec([`video`,`slides`]),title:H().optional(),width:U(),height:U(),versions:G(q({key:H(),lang:H().optional()}))}),`A video's or a deck's versions, one per language: what its stage, its timeline and its exports are asked for.`),"slides/deck":J(q({item:Y}),q({piece:H(),file:Y,prefix:H(),layouts:G(H()),components:Zs(H(),W()),generators:G(H()),scripts:Zs(H(),Y),code:W(),theme:q({name:H(),colors:Zs(H(),H()),fonts:Zs(H(),H())})}),`A deck's layouts, components and generators, and its files: slides.yaml (its slides) and its script in each language (their words and notes), which the deck's editor edits.`),"video/stage":J(q({...Jc,start:q({t:U().nonnegative().optional(),part:H().optional(),offset:U().nonnegative().optional(),dur:U().positive().optional()}).optional(),play:Ns().optional(),chrome:Ns().optional(),mode:ec([`code`,`component`]).optional()}),al,`The address of a version's stage page, for a sandboxed frame: it plays the piece and talks to its parent by postMessage.`),"video/timeline":J(q(Jc),q({timeline:Qc,text:G(W())}),`A version's timeline, drawn nowhere.`),"video/still":J(q({...Jc,t:U().nonnegative().optional()}),q({t:U(),image:Yc,width:js().positive(),height:js().positive(),duration:U().nonnegative()}),`A moment of a version as the render draws it, as a picture.`),"video/stills":J(q({...Jc,moments:G(U().nonnegative()).min(1).max(32)}),q({stills:G(q({t:U(),image:Yc}))}),"Several moments of a version as the render draws them: what `video/still` gives, on one page."),"slides/fonts":J(q({item:Y}),q({faces:G(q({family:H(),url:fs(),weight:H().optional(),style:H().optional(),stretch:H().optional(),unicodeRange:H().optional()}))}),`The font faces a deck's slides draw with: the stage's own (the theme's standard fonts), allyhub.config.ts's fonts and what the deck's code imports, for a document that draws its slides without the project's stylesheets.`),"slides/component-stills":J(q({...Jc,components:G(q({name:H(),props:Zs(H(),W()),width:U().positive(),height:U().positive(),t:U().nonnegative()})).min(1).max(64)}),q({stills:G(q({key:H(),url:fs()}).nullable())}),`Components of a deck drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses.`),"check/results":J(q({}),$c,`The check run after edits, as it stands.`),"check/run":J(q({}),q({}),`Runs the check again now.`),"export/start":J(q({item:Y,versions:G(H()).optional(),types:G(H().min(1)).max(10).optional(),options:tl.optional()}),q({job:nl}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":J(q({job:H()}),q({}),`Stops an export.`),"export/list":J(q({}),q({jobs:G(nl),reveal:Ns()}),`The exports asked for since the server started.`),"export/reveal":J(q({path:Y}),q({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`)."),"scenery/viewer":J(q({item:Y,camera:q({position:il,target:il}).optional()}),al,`The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.`)},sl={"project/changed":Mc(q({revision:js().nonnegative()}),`The build saw a change: a stage or a timeline asked for now is the new one's.`),"check/changed":Mc($c,`The check started, ended or failed.`),"export/changed":Mc(q({job:nl}),`An export moved on.`),"index/changed":Mc(q({jobs:G(rl)}),`Making what the media index lacks moved on.`)},cl=ec([`light`,`dark`]),ll=Us([q({t:U().nonnegative()}),q({slide:H().min(1)})]),ul=[`t`,`slide`];function dl(e){return e===void 0?{}:`t`in e?{t:String(Math.round(e.t*1e3)/1e3)}:{slide:e.slide}}function fl(e){let t=e.get(`t`),n=ll.safeParse(t===null?{slide:e.get(`slide`)}:{t:Number(t)});return n.success?n.data:void 0}var pl=q({locale:H().min(2),theme:cl,agent:q({name:H().min(1)}).optional(),project:q({name:H().min(1)}),notes:Ns().optional(),audienceWindow:Ns().optional(),readOnly:Ns().optional(),viewer:Ns().optional(),place:ll.optional(),item:q({kind:ec(qc),dir:Y,entry:Y}),editor:ec(Wc)}),ml=Gs(`type`,[q({type:nc(`file`),path:Y,line:js().positive().optional()}),q({type:nc(`browser`),url:fs({protocol:/^https?$/u}).optional(),tabId:H().min(1).optional()})]),hl=`allyhub-audience`,gl={"host/context":J(q({}),pl,`Where the editor runs.`),"items/open":J(q({target:ml}),q({}),`Shows another item, a file or a page, where the host shows things.`),"storage/get":J(q({key:H().min(1)}),q({value:W()}),`What the editor kept for this person on this computer (a hand sort, what was last seen), or null.`),"storage/set":J(q({key:H().min(1),value:W()}),q({}),`Keeps a value for this person on this computer; null removes it.`),"editor/state":J(q({state:ec([`saved`,`saving`,`unsaved`,`error`]),message:H().optional()}),q({}),`Says whether what the person typed is saved.`),"editor/place":J(q({place:ll}),q({}),"Says where the person is in the item (a video's moment, a deck's slide), on a pause, a seek or another slide, never each frame, so the host opens it there again (HostContext's `place`)."),"agent/ask":J(q({text:H().min(1)}),q({delivered:Ns()}),`Puts words before the person's agent, for them to go on and send; false where no agent takes them. Never sent by itself.`),"note/begin":J(q({}),q({begun:Ns()}),`Starts the host's Note mode on what is on show, as its own Note button does, so a person can mark anything up for their agent from wherever they are; false where the host has none. Sends nothing.`),"edit/request":J(q({}),q({asked:Ns()}),"The person tried to change what a read-only host shows (`readOnly`): the host offers to wake the machine that changes it; false where nothing does."),"tools/call":J(q({name:H().min(1),arguments:Zs(H(),W()).default({})}),q({result:W()}),`Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).`)};q({command:ec([`export`])}),{...zc,...sl};var _l={...Rc,...gl},vl=e=>Us([ec(e),H().min(1).brand()]),yl=e=>G(W()).transform(t=>t.flatMap(t=>{let n=e.safeParse(t);return n.success?[n.data]:[]})),bl=[`no_card`,`saving_card`,`not_a_card`,`declined`,`needs_authentication`,`not_charged`,`under_line`,`refunded`,`disputed`,`monthly_limit`],xl=[`month`,`year`];K({credits:U(),held:U(),owed:U(),frozen:H().nullable().default(null),plan:K({id:H(),name:H(),interval:vl(xl),status:H(),renewsAt:Oc().nullable(),endsAt:Oc().nullable(),monthlyCredits:U().default(0),price:K({amountCents:U(),currency:H()}).nullable().default(null)}).nullable(),allowance:K({total:U(),used:U(),renewsAt:Oc()}).nullable().default(null),bought:U().default(0),customer:Ns().default(!1),autoTopUp:K({below:U(),amountCents:U(),monthlyLimitCents:U().nullable().default(null),chargedThisMonthCents:U().default(0),stopped:vl(bl).nullable()}).nullable()}),K({plans:G(K({id:H(),name:H(),family:H().nullable().default(null),recommended:Ns().default(!1),monthlyCredits:U(),prices:G(K({interval:vl(xl),amountCents:U(),currency:H()}))})),topUp:K({currency:H(),creditsPerDollar:U(),minCents:U(),maxCents:U(),presetsCents:G(U()).default([])})}),K({days:G(K({day:kc(),credits:U(),byKind:Zs(H(),U()).default({})}))}),Us([q({plan:H(),interval:ec(xl)}),q({topUpCents:U().int()})]),Us([q({flow:ec([`home`,`payment_method`,`cancel`])}),q({flow:nc(`change_plan`),plan:H(),interval:ec(xl)})]).default({flow:`home`}),K({card:K({brand:H(),last4:H(),expMonth:U(),expYear:U()}).nullable(),email:H().nullable()}),q({topUpCents:U().int()}),q({below:U().nonnegative(),amountCents:U().int().positive(),monthlyLimitCents:U().int().positive().nullable().optional(),newCard:Ns().optional()});var Sl={tier:vl([`premium`,`standard`,`efficient`]).optional(),maker:H().min(1).optional()};K({models:G(Vs({id:H().min(1),name:H().min(1),...Sl,reasoning:Ns().optional(),input:G(H()).optional(),contextWindow:U().int().positive().optional(),maxOutput:U().int().positive().optional()})).min(1),defaultModel:H().min(1),needPlan:G(Vs({id:H().min(1),name:H().min(1),...Sl})).default([])});var Cl=Zs(H(),W()),wl=K({id:H().min(1),title:H().min(1),description:H().min(1)}),Tl=K({name:H().min(1),work:H().min(1),title:H().min(1),description:H().min(1),input:Cl,output:Cl,long:Ns()});K({version:H().min(1),works:G(wl),tools:G(Tl)}),q({input:Zs(H(),W())}),K({id:H().min(1),tool:H().min(1),status:vl([`working`,`completed`,`failed`]),output:W().optional(),error:K({kind:H().min(1),message:H().min(1)}).optional(),credits:U().nonnegative().optional(),pollAfterMs:U().int().nonnegative().optional(),createdAt:H(),endedAt:H().optional()});var El=1073741824;q({name:H().min(1).max(255),size:js().positive().max(El),sha256:H().regex(/^[0-9a-f]{64}$/u),contentType:H().min(1).max(255)}),K({id:H().min(1),upload:K({url:fs(),headers:Zs(H(),H())}).nullable()}),K({id:H().min(1),name:H()}),K({url:fs()});var Dl=H().regex(/^[0-9a-f]{64}$/u),Ol=H().min(1).max(1024).refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&e.split(`/`).every(e=>e!==``&&e!==`.`&&e!==`..`),`a relative path of forward slashes, without . or ..`),kl=K({sha256:Dl,size:js().nonnegative().max(El)}),Al=kl.extend({type:H().min(1).max(255)});q({blobs:G(kl.extend({contentType:H().min(1).max(255)})).min(1).max(1e3)}),K({uploads:G(K({sha256:Dl,url:fs(),headers:Zs(H(),H())}))});var jl=K({sessionId:H().min(1),agent:H().min(1),title:H().optional(),createdAt:Oc(),updatedAt:Oc(),transcript:Dl});K({sessionId:H().min(1),messages:G(K({method:H().min(1),params:W()}))});var Ml=[`project`,`home`],Nl=H().refine(e=>e.endsWith(`/`)&&Ol.safeParse(e.slice(0,-1)).success,`a folder of the tree, ending in /`),Pl=K({tree:G(Ol),files:G(Ol),own:Zs(Ol,Al)}),Fl=K({shared:G(Nl),items:Zs(H(),Pl)}),Il=K({format:nc(1),kind:ec(Ml),project:K({name:H().min(1).max(255)}),host:K({version:H().min(1)}),madeAt:Oc(),files:Zs(Ol,kl),tree:Zs(Ol,Al),conversations:G(jl),reach:Fl.optional()}),Ll={editor:`editor/`,runtime:`runtime/`,build:`build/`,media:`media/`,matte:`matte/`,scenery:`scenery/`,bakes:`bakes/`,stills:`stills/`,answers:`answers/`,previews:`previews/`};function Rl(e){return Array.isArray(e)?e.map(Rl):typeof e==`object`&&e?Object.fromEntries(Object.keys(e).sort().map(t=>[t,Rl(e[t])])):e}var zl=(e,t)=>`${Ll.answers}${e}/${encodeURIComponent(JSON.stringify(Rl(t??{})))}.json`,Bl=e=>`${Ll.stills}${e}.webp`,Vl=(e,t)=>`${Ll.stills}index/${encodeURIComponent(e)}/${encodeURIComponent(t)}.json`,Hl=K({stills:Zs(H(),H().regex(/^[0-9a-f]{64}$/u))}),Ul=e=>JSON.stringify(Rl(e)),Wl={stage:`${Ll.runtime}stage.html`,viewer:`${Ll.runtime}viewer.html`,probe:`${Ll.runtime}probe.html`},Gl=e=>e.split(`/`).map(encodeURIComponent).join(`/`),Kl=[`cloud`,`computer`];H().regex(/^[A-Za-z0-9_-]{16,64}$/u);var ql=K({kind:vl(Kl),here:Ns()});q({project:q({id:H().min(1).optional(),kind:ec(Ml),name:H().min(1).max(255)}),manifest:Dl}),K({id:H().min(1),projectId:H().min(1)}),K({missing:G(Dl)});var Jl=K({id:H().min(1),madeAt:Oc(),hostVersion:H()});K({projects:yl(K({id:H().min(1),kind:ec(Ml),name:H(),latest:Jl.nullable(),executor:ql}))}),q({kind:ec(Kl)}),K({origin:fs(),expiresAt:Oc()});var Yl={manifest:`manifest.json`,files:`files/`,conversations:`conversations/`},Xl=-32010,Zl=3e5,Ql=class{next=1;pending=new Map;listeners=new Map;stop;channel;timeout;constructor(e,t={}){this.channel=e,this.timeout=t.timeout??Zl,this.stop=e.listen(e=>{this.receive(e)})}request(e,t){let n=this.next++;return new Promise((r,i)=>{let a=setTimeout(()=>{this.pending.delete(n),i(new Nc(jc.unavailable,`${e} had no answer.`))},this.timeout);this.pending.set(n,{resolve:r,reject:i,timer:a});try{this.channel.send({jsonrpc:`2.0`,id:n,method:e,params:t})}catch(e){clearTimeout(a),this.pending.delete(n),i(e instanceof Error?e:Error(String(e)))}})}on(e,t){let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add(t),()=>n.delete(t)}fail(e){for(let[t,n]of this.pending)clearTimeout(n.timer),n.reject(new Nc(jc.unavailable,e)),this.pending.delete(t)}close(){this.stop(),this.fail(`The host closed.`),this.channel.close?.()}receive(e){if(typeof e!=`object`||!e)return;let t=e;if(t.jsonrpc!==`2.0`)return;if(typeof t.method==`string`&&!(`id`in t)){for(let e of this.listeners.get(t.method)??[])e(t.params);return}if(typeof t.id!=`number`)return;let n=this.pending.get(t.id);if(!n)return;this.pending.delete(t.id),clearTimeout(n.timer);let r=t.error;r?n.reject(new Nc(r.code,r.message,r.data)):n.resolve(t.result)}},$l=(e,t,n)=>{let r=e.result.safeParse(t);if(!r.success)throw new Nc(jc.internal,`The host's answer to ${n} is not what the protocol says.`);return r.data};function eu(e){let t={on:(t,n)=>e.on(t,n)};for(let[n,r]of Object.entries(_l))t[n]=async t=>$l(r,await e.request(n,t??{}),n);return t}function tu(e,t={}){let n=new Ql(e,t);return Object.assign(eu(n),{close:()=>{n.close()}})}function nu(e,t){let n=new Map,r={...e};for(let e of Object.keys(t)){let n=gl[e];r[e]=async r=>{let i=await Pc({[e]:n},{[e]:t[e]},{jsonrpc:`2.0`,id:0,method:e,params:r??{}});if(`error`in i)throw new Nc(i.error.code,i.error.message,i.error.data);return $l(n,i.result,e)}}r.on=(t,r)=>{let i=e.on(t,r),a=n.get(t);return a||(a=new Set,n.set(t,a)),a.add(r),()=>{i(),a.delete(r)}},r.notify=(e,t)=>{for(let r of n.get(e)??[])r(t)};let i,a=new Set;return r.notes=e=>{i=e;for(let e of a)e(!0);return()=>{if(i===e){i=void 0;for(let e of a)e(!1)}}},r.noteSurface=()=>i,r.onNoteSurface=e=>(a.add(e),()=>{a.delete(e)}),r}var ru=e=>new Nc(Xl,`${e} needs the machine: this is the project as it was.`),iu={...Rc,"tools/call":gl[`tools/call`]};function au(e,t={}){let n=t.fetch??fetch.bind(globalThis),r=t=>new URL(Gl(t),e).href,i=t=>new URL(t,e).href,a,o=()=>(a??=(async()=>{let e=await n(r(Yl.manifest));if(!e.ok)throw ru(`Reading this project`);let t=Il.safeParse(await e.json());if(!t.success)throw ru(`Reading this project`);return t.data})(),a),s=async(e,t)=>{let i=await n(r(zl(e,t)));if(!i.ok)throw ru(e);let a=await i.json();if(a.error)throw new Nc(a.error.code,a.error.message);return a.result},c=new Map,l=(e,t)=>{let i=Vl(e,t),a=c.get(i);return a||(a=(async()=>{let e=await n(r(i)).catch(()=>void 0),t=e?.ok===!0?await e.json().catch(()=>({})):{},a=Hl.safeParse(t);return a.success?a.data:{stills:{}}})(),c.set(i,a)),a},u=0,d={"files/read":async({path:e})=>{let t=(await o()).files[e];if(!t)return{text:``,version:null};let i=await n(r(`${Yl.files}${e}`));if(!i.ok)throw new Nc(jc.notFound,`${e} could not be read.`);return{text:await i.text(),version:t.sha256}},"files/url":async({path:e})=>{if(!(await o()).files[e])throw new Nc(jc.notFound,`There is no file ${e}.`);return{url:r(`${Yl.files}${e}`)}},"files/list":async({dir:e})=>{let t=await o(),n=Date.parse(t.madeAt),r=e===``?``:`${e.replace(/\/$/u,``)}/`,i=[],a=new Set;for(let[e,o]of Object.entries(t.files)){if(!e.startsWith(r))continue;i.push({path:e,size:o.size,modified:n});let t=e.slice(r.length).split(`/`).slice(0,-1);for(let e=1;e<=t.length;e++)a.add(`${r}${t.slice(0,e).join(`/`)}`)}return{files:i.sort((e,t)=>e.path.localeCompare(t.path)),dirs:[...a].sort()}},"files/watch":()=>Promise.resolve({watch:`w${String(++u)}`}),"files/unwatch":()=>Promise.resolve({}),"files/trash":()=>Promise.resolve({entries:[]}),"files/write":()=>Promise.reject(ru(`Saving`)),"files/upload":()=>Promise.reject(ru(`Adding a file`)),"files/move":()=>Promise.reject(ru(`Moving`)),"files/remove":()=>Promise.reject(ru(`Removing`)),"files/restore":()=>Promise.reject(ru(`Restoring`)),"tools/call":async({name:e,arguments:t})=>{if(!Object.hasOwn(ol,e))throw new Nc(jc.methodNotFound,`There is no tool ${e}.`);let n=e,r=ol[n].params.safeParse(t);if(!r.success)throw new Nc(jc.invalidParams,`${e}'s arguments.`);return{result:await f(n,r.data)}}},f=async(e,t)=>{switch(e){case`video/stage`:{let{item:n,version:r,start:a,play:o,chrome:c,mode:l}=t,u=await s(e,{item:n,...r===void 0?{}:{version:r}}),d=new URL(i(u.url));for(let[e,t]of Object.entries(a??{}))d.searchParams.set(e,String(t));return o===!0&&d.searchParams.set(`play`,`1`),c===!1&&d.searchParams.set(`chrome`,`0`),l!==void 0&&d.searchParams.set(`mode`,l),{url:d.href,probe:i(u.probe)}}case`scenery/viewer`:{let{item:e,camera:n}=t,{items:r}=await s(`project/items`,{}),a=r.find(t=>t.dir===e&&(t.kind===`scenery`||t.kind===`model`));if(!a)throw new Nc(jc.notFound,`There is no scenery or 3D model ${e}.`);let o=new URL(i(Wl.viewer));return o.searchParams.set(`file`,a.entry),n!==void 0&&o.searchParams.set(`camera`,JSON.stringify(n)),{url:o.href,probe:i(Wl.probe)}}case`slides/fonts`:{let n=await s(e,t);return{...n,faces:n.faces.map(e=>({...e,url:i(e.url)}))}}case`slides/component-stills`:{let{item:e,version:n,components:i}=t,a=n??(await s(`video/versions`,{item:e})).versions[0]?.key,{stills:o}=a===void 0?{stills:{}}:await l(e,a);return{stills:i.map(e=>{let t=o[Ul(e)];return t===void 0?null:{key:t,url:r(Bl(t))}})}}case`export/list`:return{jobs:[],reveal:!1};case`video/timeline`:case`video/still`:case`video/stills`:throw ru(e);default:return s(e,t)}},p=new Set;return tu({send(e){Pc(iu,d,e).then(e=>{for(let t of p)t(e)})},listen(e){return p.add(e),()=>p.delete(e)}})}async function ou(e,t,n){let{result:r}=await e[`tools/call`]({name:t,arguments:n}),i=ol[t].result.safeParse(r);if(!i.success)throw new Nc(jc.internal,`The answer to the tool ${t} is not what the protocol says.`);return i.data}var su=`allyhub.stage-sandbox`;function cu(e){let t=e;return typeof t==`object`&&!!t&&t.allyhub===!0&&t.type===`probe`}function lu(e){try{let t=e?.getItem(su);return t===`1`||t!==`0`&&void 0}catch{return}}async function uu(e){let t=lu(e.storage);if(t!==void 0)return t;let n,r=()=>void 0,i=await new Promise(t=>{n=setTimeout(()=>{t(!1)},e.ms??1500),r=e.open(()=>{t(!0)})});clearTimeout(n),r();try{e.storage?.setItem(su,i?`1`:`0`)}catch{}return i}function du(e){return t=>{let n=document.createElement(`iframe`);n.setAttribute(`sandbox`,`allow-scripts`),n.setAttribute(`aria-hidden`,`true`),n.tabIndex=-1,n.style.cssText=`position:fixed;width:1px;height:1px;left:-10px;top:-10px;border:0;opacity:0`;let r=e=>{e.source===n.contentWindow&&cu(e.data)&&t()};return window.addEventListener(`message`,r),n.src=e,document.body.append(n),()=>{window.removeEventListener(`message`,r),n.remove()}}}var fu;function pu(e){let t;try{t=sessionStorage}catch{t=void 0}return fu??=uu({open:du(e),storage:t}),fu}var mu=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r)setTimeout(function(){r(e)},0);else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h)d[r]=void 0;else{if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends mu{};function hu(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function gu(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function _u(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function vu(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function yu(e,t){return _u(e,t,``)}function bu(e,t){return vu(e,t,``)}function xu(e,t){return t.slice(0,Su(e,t))}function Su(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function Cu(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function wu(e,t){if(t)return Eu(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function Tu(e,t){if(t)return Eu(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function Eu(e,t){if(!t)return[Tu(e),wu(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=Cu(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var Du=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,Ou=RegExp(`[${Du}]+|\\s+|[^${Du}]`,`ug`);new class extends mu{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=Cu(e,r)}else n=e.match(Ou)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&ku(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&ku(n,i,r,null,t.intlSegmenter),e}};function ku(e,t,n,r,i){if(t&&n){let[a,o]=Eu(t.value,i),[s,c]=Eu(n.value,i);if(e){let r=hu(a,s);e.value=vu(e.value,s,r),t.value=yu(t.value,r),n.value=yu(n.value,r)}if(r){let e=gu(o,c);r.value=_u(r.value,c,e),t.value=bu(t.value,e),n.value=bu(n.value,e)}}else if(n){if(e){let e=Tu(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=Tu(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=Tu(r.value,i),[a,o]=Eu(t.value,i),s=hu(n,a);t.value=yu(t.value,s);let c=gu(yu(n,s),o);t.value=bu(t.value,c),r.value=_u(r.value,n,c),e.value=vu(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=Tu(r.value,i),n=xu(wu(t.value,i),e);t.value=bu(t.value,n)}else if(e){let n=xu(wu(e.value,i),Tu(t.value,i));t.value=yu(t.value,n)}}new class extends mu{tokenize(e){let t=RegExp(`(\\r?\\n)|[${Du}]+|[^\\S\\n\\r]+|[^${Du}]`,`ug`);return e.match(t)||[]}},new class extends mu{constructor(){super(...arguments),this.tokenize=Au}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes(`
57
+ `)||(e=e.trim()),n.newlineIsToken&&t.includes(`
58
+ `)||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
59
+ `)&&(e=e.slice(0,-1)),t.endsWith(`
60
+ `)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function Au(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
61
+ `));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function ju(e){return e==`.`||e==`!`||e==`?`}new class extends mu{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(ju(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends mu{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends mu{constructor(){super(...arguments),this.tokenize=Au}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(Mu(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function Mu(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a=0;for(;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=Mu(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=Mu(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}var Nu=new class extends mu{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function Pu(e,t,n){return Nu.diff(e,t,n)}var Fu=1e3;function Iu(e,t,n=Fu){let r=[],i=0;for(;i<e.length&&i<t.length&&e[i]===t[i];)r.push([i,i]),i++;let a=e.length,o=t.length,s=[];for(;a>i&&o>i&&e[a-1]===t[o-1];)a--,o--,s.push([a,o]);let c=Pu(e.slice(i,a),t.slice(i,o),{maxEditLength:n});if(c){let e=i,t=i;for(let n of c)if(n.added)t+=n.count;else if(n.removed)e+=n.count;else for(let i=0;i<n.count;i++)r.push([e++,t++])}return r.push(...s.reverse()),r}function Lu(e,t,n){let r=Iu(e.map(n),t.map(n)),i=[],a=0,o=0;for(let[n,s]of[...r,[e.length,t.length]])(n>a||s>o)&&i.push({at:a,remove:n-a,insert:t.slice(o,s)}),a=n+1,o=s+1;return i.reverse()}var Ru=[`en`,`zh-cn`,`zh-tw`,`ja`,`ko`,`es`,`fr`,`de`,`it`,`pt`,`ru`,`tr`,`vi`,`th`,`hi`],zu={en:`en`,"zh-cn":`zh-CN`,"zh-tw":`zh-TW`,ja:`ja`,ko:`ko`,es:`es`,fr:`fr`,de:`de`,it:`it`,pt:`pt-BR`,ru:`ru`,tr:`tr`,vi:`vi`,th:`th`,hi:`hi`};function Bu(e){return typeof e==`string`&&Ru.includes(e)}var Vu=new Set([`hant`,`tw`,`hk`,`mo`]);function Hu(e){for(let t of e){let e=t.trim().toLowerCase().replaceAll(`_`,`-`).split(`-`),n=e[0];if(n!==void 0&&n!==``){if(n===`zh`){let t=e.slice(1);return t.includes(`hans`)?`zh-cn`:t.some(e=>Vu.has(e))?`zh-tw`:`zh-cn`}if(Bu(n))return n}}}function Uu(e){return e===void 0?`en`:Hu([e])??`en`}function Wu(e,t){return e[Uu(t)]}function Gu(e){return{all:e,of:t=>Wu(e,t)}}var Ku=t((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})),qu=t(((e,t)=>{t.exports=Ku()})),X=e(r()),Ju=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Yu=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Xu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Zu=e=>{let t=Xu(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qu={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},$u=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ed=(0,X.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,X.createElement)(`svg`,{ref:c,...Qu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ju(`lucide`,i),...!a&&!$u(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,X.createElement)(e,t)),...Array.isArray(a)?a:[a]])),td=(e,t)=>{let n=(0,X.forwardRef)(({className:n,...r},i)=>(0,X.createElement)(ed,{ref:i,iconNode:t,className:Ju(`lucide-${Yu(Zu(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Zu(e),n},nd=td(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),rd=td(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),id=td(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),ad=td(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),od=e(a(),1);function sd(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var cd=e=>{switch(e){case`success`:return dd;case`info`:return pd;case`warning`:return fd;case`error`:return md;default:return null}},ld=Array(12).fill(0),ud=({visible:e,className:t})=>X.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},X.createElement(`div`,{className:`sonner-spinner`},ld.map((e,t)=>X.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),dd=X.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},X.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),fd=X.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},X.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),pd=X.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},X.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),md=X.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},X.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),hd=X.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},X.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),X.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),gd=()=>{let[e,t]=X.useState(document.hidden);return X.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},_d=1,vd=100,yd=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:_d++,bd=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-vd;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=yd(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],X.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Sd(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!X.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!X.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!X.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!X.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=yd(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},xd=(e,t)=>bd.message(e,t),Sd=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Cd=Object.assign(xd,{success:bd.success,info:bd.info,warning:bd.warning,error:bd.error,custom:bd.custom,message:bd.message,promise:bd.promise,dismiss:bd.dismiss,loading:bd.loading},{getHistory:()=>bd.toasts,getToasts:()=>bd.getActiveToasts()});sd(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function wd(e){return e.label!==void 0}var Td=3,Ed=`24px`,Dd=`16px`,Od=4e3,kd=356,Ad=14,jd=45,Md=200;function Nd(...e){return e.filter(Boolean).join(` `)}function Pd(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Fd=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=X.useState(null),[ee,O]=X.useState(null),[k,te]=X.useState(!1),[A,j]=X.useState(!1),[M,N]=X.useState(!1),[P,F]=X.useState(!1),[I,ne]=X.useState(!1),[re,ie]=X.useState(0),[ae,oe]=X.useState(0),se=X.useRef(n.duration||y||Od),ce=X.useRef(null),le=X.useRef(null),ue=c===0,de=c+1<=o,fe=n.type,pe=fe??`default`,me=n.dismissible!==!1,he=n.className||``,ge=n.descriptionClassName||``,_e=X.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ve=X.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ye=X.useMemo(()=>n.duration||y||Od,[n.duration,y]),be=X.useRef(0),xe=X.useRef(0),Se=X.useRef(0),Ce=X.useRef(null),[we,Te]=b.split(`-`),Ee=X.useMemo(()=>s.reduce((e,t,n)=>n>=_e?e:e+t.height,0),[s,_e]),De=gd(),Oe=X.useMemo(()=>e.swipeDirections??Pd(b),[e.swipeDirections,b]),ke=n.invert||t,Ae=fe===`loading`;xe.current=X.useMemo(()=>_e*x+Ee,[_e,Ee]),X.useEffect(()=>{se.current=ye},[ye]),X.useEffect(()=>{te(!0)},[]),X.useEffect(()=>{let e=le.current;if(e){let t=e.getBoundingClientRect().height;return oe(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),X.useLayoutEffect(()=>{if(!k)return;let e=le.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,oe(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[k,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let je=X.useCallback(()=>{j(!0),ie(xe.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Md)},[n,d,a,xe]);X.useEffect(()=>{if(n.promise&&fe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||De?(()=>{if(Se.current<be.current){let e=new Date().getTime()-be.current;se.current-=e}Se.current=new Date().getTime()})():se.current!==1/0&&(be.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),je()},se.current)),()=>clearTimeout(e)},[u,i,n,fe,De,je]),X.useEffect(()=>{n.delete&&(je(),n.onDismiss==null||n.onDismiss.call(n,n))},[je,n.delete]);function L(){return w?.loading?X.createElement(`div`,{className:Nd(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":fe===`loading`},w.loading):X.createElement(ud,{className:Nd(C?.loader,n?.classNames?.loader),visible:fe===`loading`})}let Me=n.icon||w?.[fe]||cd(fe);return X.createElement(`li`,{tabIndex:0,ref:le,className:Nd(_,he,C?.toast,n?.classNames?.toast,C?.[pe],n?.classNames?.[pe]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":k,"data-promise":!!n.promise,"data-swiped":I,"data-removed":A,"data-visible":de,"data-y-position":we,"data-x-position":Te,"data-index":c,"data-front":ue,"data-swiping":M,"data-dismissible":me,"data-type":fe,"data-invert":ke,"data-swipe-out":P,"data-swipe-direction":ee,"data-expanded":!!(u||S&&k),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${A?re:xe.current}px`,"--initial-height":S?`auto`:`${ae}px`,...m,...n.style},onDragEnd:()=>{N(!1),D(null),Ce.current=null},onPointerDown:e=>{e.button!==2&&!Ae&&me&&(ce.current=new Date,ie(xe.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(N(!0),Ce.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(P||!me)return;Ce.current=null;let e=Number(le.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(le.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-ce.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if((E===`x`?Oe.includes(e>0?`right`:`left`):Oe.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=jd||a>.11))ie(xe.current),n.onDismiss==null||n.onDismiss.call(n,n),O(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),je(),F(!0);else{var o,s;(o=le.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=le.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),ne(!1),N(!1),D(null)}},onPointerMove:e=>{var t,n;if(!Ce.current||!me||window.getSelection()?.toString().length>0)return;let r=e.clientY-Ce.current.y,i=e.clientX-Ce.current.x;!E&&(Math.abs(i)>1||Math.abs(r)>1)&&D(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(Oe.includes(`top`)||Oe.includes(`bottom`)){if(Oe.includes(`top`)&&r<0||Oe.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(E===`x`&&(Oe.includes(`left`)||Oe.includes(`right`))){if(Oe.includes(`left`)&&i<0||Oe.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&ne(!0),(t=le.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=le.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},ve&&!n.jsx&&fe!==`loading`?X.createElement(`button`,{"aria-label":T,"data-disabled":Ae,"data-close-button":!0,onClick:Ae||!me?()=>{}:()=>{je(),n.onDismiss==null||n.onDismiss.call(n,n)},className:Nd(C?.closeButton,n?.classNames?.closeButton)},w?.close??hd):null,(fe||n.icon||n.promise)&&n.icon!==null&&(w?.[fe]!==null||n.icon)?X.createElement(`div`,{"data-icon":``,className:Nd(C?.icon,n?.classNames?.icon)},fe===`loading`?n.icon||L():n.promise?L():null,fe===`loading`?null:Me):null,X.createElement(`div`,{"data-content":``,className:Nd(C?.content,n?.classNames?.content)},X.createElement(`div`,{"data-title":``,className:Nd(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?X.createElement(`div`,{"data-description":``,className:Nd(v,ge,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),X.isValidElement(n.cancel)?n.cancel:n.cancel&&wd(n.cancel)?X.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{wd(n.cancel)&&me&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),je())},className:Nd(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,X.isValidElement(n.action)?n.action:n.action&&wd(n.action)?X.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{wd(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&je())},className:Nd(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Id(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Ld(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Dd:Ed;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Rd=X.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=Td,toastOptions:g,dir:_=Id(),gap:v=Ad,icons:y,customAriaLabel:b,containerAriaLabel:x=`Notifications`}=e,[S,C]=X.useState([]),w=X.useMemo(()=>n?S.filter(e=>e.toasterId===n):S.filter(e=>!e.toasterId),[S,n]),T=X.useMemo(()=>Array.from(new Set([i].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,i]),[E,D]=X.useState([]),[ee,O]=X.useState(!1),[k,te]=X.useState(!1),[A,j]=X.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),M=X.useRef(null),N=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),P=X.useRef(null),F=X.useRef(!1),I=X.useCallback(e=>{C(t=>(t.find(t=>t.id===e.id)?.delete||bd.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return X.useEffect(()=>bd.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{od.flushSync(()=>{C(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),X.useEffect(()=>{if(d!==`system`){j(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?j(`dark`):j(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{j(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{j(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),X.useEffect(()=>{S.length<=1&&O(!1)},[S]),X.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=M.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===M.current||M.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),X.useEffect(()=>{if(M.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,F.current=!1)}},[M.current]),X.createElement(`section`,{ref:t,"aria-label":b??`${x} ${N}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},T.map((t,n)=>{let[i,a]=t.split(`-`);return w.length?X.createElement(`ol`,{key:t,dir:_===`auto`?Id():_,tabIndex:-1,ref:M,className:c,"data-sonner-toaster":!0,"data-sonner-theme":A,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${kd}px`,"--gap":`${v}px`,...m,...Ld(l,u)},onBlur:e=>{F.current&&!e.currentTarget.contains(e.relatedTarget)&&(F.current=!1,P.current&&=(P.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||F.current||(F.current=!0,P.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{k||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||te(!0)},onPointerUp:()=>te(!1)},w.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>X.createElement(Fd,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:k,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:I,toasts:w.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:D,expandByDefault:o,gap:v,expanded:ee,swipeDirections:e.swipeDirections}))):null}))}),zd=Object.defineProperty,Bd=((e,t)=>{let n={};for(var r in e)zd(n,r,{get:e[r],enumerable:!0});return t||zd(n,Symbol.toStringTag,{value:`Module`}),n})({isAny:()=>ef,isAnyNonArbitrary:()=>of,isArbitraryFamilyName:()=>Cf,isArbitraryImage:()=>Tf,isArbitraryLength:()=>bf,isArbitraryNumber:()=>xf,isArbitraryPosition:()=>wf,isArbitraryShadow:()=>Ef,isArbitrarySize:()=>vf,isArbitraryValue:()=>yf,isArbitraryVariable:()=>Df,isArbitraryVariableFamilyName:()=>kf,isArbitraryVariableImage:()=>Mf,isArbitraryVariableLength:()=>Of,isArbitraryVariablePosition:()=>Af,isArbitraryVariableShadow:()=>Nf,isArbitraryVariableSize:()=>jf,isArbitraryVariableWeight:()=>Pf,isArbitraryWeight:()=>Sf,isFraction:()=>Yd,isInteger:()=>Zd,isNamedContainerQuery:()=>sf,isNumber:()=>Xd,isPercent:()=>Qd,isTshirtSize:()=>$d}),Vd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ud=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Wd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Kd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yd=e=>Ud.test(e),Xd=e=>!!e&&!Number.isNaN(Number(e)),Zd=e=>!!e&&Number.isInteger(Number(e)),Qd=e=>e.endsWith(`%`)&&Xd(e.slice(0,-1)),$d=e=>Wd.test(e),ef=()=>!0,tf=e=>Gd.test(e)&&!Kd.test(e),nf=()=>!1,rf=e=>qd.test(e),af=e=>Jd.test(e),of=e=>!yf(e)&&!Df(e),sf=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)),cf=(e,t,n)=>{let r=Vd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},lf=(e,t,n=!1)=>{let r=Hd.exec(e);return r?r[1]?t(r[1]):n:!1},uf=e=>e===`position`||e===`percentage`,df=e=>e===`image`||e===`url`,ff=e=>e===`length`||e===`size`||e===`bg-size`,pf=e=>e===`length`,mf=e=>e===`number`,hf=e=>e===`family-name`,gf=e=>e===`number`||e===`weight`,_f=e=>e===`shadow`,vf=e=>cf(e,ff,nf),yf=e=>Vd.test(e),bf=e=>cf(e,pf,tf),xf=e=>cf(e,mf,Xd),Sf=e=>cf(e,gf,ef),Cf=e=>cf(e,hf,nf),wf=e=>cf(e,uf,nf),Tf=e=>cf(e,df,af),Ef=e=>cf(e,_f,rf),Df=e=>Hd.test(e),Of=e=>lf(e,pf),kf=e=>lf(e,hf),Af=e=>lf(e,uf),jf=e=>lf(e,ff),Mf=e=>lf(e,df),Nf=e=>lf(e,_f,!0),Pf=e=>lf(e,gf,!0),Ff=(e,t)=>{let n=Object.keys(e);return n.length===1&&n[0]===t&&typeof e[t]==`string`},If=e=>typeof e==`function`&&e.isThemeGetter===!0,Lf=e=>({...e,theme:{...e.theme},classGroups:{...e.classGroups},conflictingClassGroups:{...e.conflictingClassGroups},conflictingClassGroupModifiers:{...e.conflictingClassGroupModifiers},orderSensitiveModifiers:[...e.orderSensitiveModifiers],postfixLookupClassGroups:[...e.postfixLookupClassGroups??[]]}),Rf=(e,t)=>{let n=Lf(e);t.prefix!==void 0&&(n.prefix=t.prefix);let r=(e,t)=>{if(t)for(let n in t)t[n]!==void 0&&(e[n]=t[n])},i=t.override;i&&(i.orderSensitiveModifiers&&(n.orderSensitiveModifiers=[...i.orderSensitiveModifiers]),r(n.theme,i.theme),r(n.classGroups,i.classGroups),r(n.conflictingClassGroups,i.conflictingClassGroups),r(n.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers));let a=(e,t)=>{if(t)for(let n in t){let r=t[n];r&&(e[n]=(e[n]??[]).concat(r))}},o=t.extend;return o&&(o.orderSensitiveModifiers&&(n.orderSensitiveModifiers=[...n.orderSensitiveModifiers,...o.orderSensitiveModifiers]),a(n.theme,o.theme),a(n.classGroups,o.classGroups),a(n.conflictingClassGroups,o.conflictingClassGroups),a(n.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers)),n},zf={isAny:0,isAnyNonArbitrary:1,isArbitraryValue:2,isArbitraryVariable:3,isFraction:4,isNumber:5,isInteger:6,isPercent:7,isTshirtSize:8,isNamedContainerQuery:9,isArbitraryLength:10,isArbitraryNumber:11,isArbitraryWeight:12,isArbitraryFamilyName:13,isArbitraryPosition:14,isArbitrarySize:15,isArbitraryImage:16,isArbitraryShadow:17,isArbitraryVariableLength:18,isArbitraryVariableFamilyName:19,isArbitraryVariablePosition:20,isArbitraryVariableSize:21,isArbitraryVariableImage:22,isArbitraryVariableShadow:23,isArbitraryVariableWeight:24},Bf=25,Vf=()=>({names:[],idByName:new Map,impls:{},fnName:new Map,classifierFns:new Map}),Hf=(e,t,n)=>{let r=e.idByName.get(t);return r===void 0&&(r=e.names.length,e.names.push(t),e.idByName.set(t,r),e.classifierFns.set(t,n)),r},Uf=(e,t)=>{if(typeof t==`function`){let n=e.fnName.get(t);return n===void 0&&(n=`$c`+e.fnName.size,e.fnName.set(t,n),e.impls[n]=t),Hf(e,n,t)}let n=t.$v,r=Bd[n];if(zf[n]===void 0||!r)throw Error(`cn: unknown validator "${n}"`);return Hf(e,n,r)},Wf=()=>({nextPart:new Map,validators:null,classGroupId:-1,lit:[]}),Gf=(e,t)=>e.theme[t]??[],Kf=(e,t,n)=>{let r=Wf(),i=(e,t)=>{for(let n of t.split(`-`)){let t=e.nextPart.get(n);t||(t=Wf(),e.nextPart.set(n,t)),e=t}return e},a=(n,r,o)=>{if(typeof n==`string`){let e=n===``?r:i(r,n);e.classGroupId=o}else if(typeof n==`function`){if(If(n)){for(let t of n(e.theme))a(t,r,o);return}(r.validators??=[]).push({validatorId:Uf(t,n),groupId:o})}else if(Ff(n,`$t`))for(let t of Gf(e,n.$t))a(t,r,o);else if(Ff(n,`$v`))(r.validators??=[]).push({validatorId:Uf(t,n),groupId:o});else for(let[e,t]of Object.entries(n)){let n=i(r,e);for(let e of t)a(e,n,o)}};for(let[t,i]of Object.entries(e.classGroups)){let e=n(t);for(let t of i)a(t,r,e)}return r},qf=e=>{let t=Vf(),n=[],r=new Map,i=e=>{let t=r.get(e);return t===void 0&&(t=n.length,n.push(e),r.set(e,t)),t},a=Kf(e,t,i),o=e=>{if(e.validators)return!1;for(let t of e.nextPart.values())if(!o(t))return!1;return!0},s=(e,t,n)=>{e.classGroupId>=0&&n.push({tail:t,gid:e.classGroupId});for(let[r,i]of e.nextPart)s(i,t+`-`+r,n)},c=e=>{for(let[t,n]of[...e.nextPart])o(n)?(s(n,t,e.lit),e.nextPart.delete(t)):c(n)};c(a);let l=[{edges:new Map,groupId:-1,vlist:-1}],u=()=>(l.push({edges:new Map,groupId:-1,vlist:-1}),l.length-1),d=[],f=new Map,p=e=>{let t=e.map(e=>e.validatorId+`:`+e.groupId).join(`,`),n=f.get(t);return n===void 0&&(n=d.length,d.push(e.map(e=>[e.validatorId,e.groupId])),f.set(t,n)),n},m=(e,t)=>{let n=e;for(let e=0;e<t.length;e++){let r=t.charCodeAt(e),i=l[n].edges.get(r);i===void 0&&(i=u(),l[n].edges.set(r,i)),n=i}return n},h=[],g=(e,t,n)=>{e.classGroupId>=0&&(l[t].groupId=e.classGroupId),e.validators&&(l[t].vlist=p(e.validators));for(let{tail:n,gid:r}of e.lit)h.push({anchor:t,tail:n,gid:r});for(let[r,i]of e.nextPart){let e=t;if(!n){let n=l[t].edges.get(45);n===void 0&&(n=u(),l[t].edges.set(45,n)),e=n}let a=m(e,r);g(i,a,!1)}};g(a,0,!0);let _=new Set(h.map(e=>e.anchor)),v=e=>l[e].groupId>=0||l[e].vlist>=0||_.has(e),y=new Map,b=[],x=e=>{let t=b.length;y.set(e,t);let n={edges:[],groupId:l[e].groupId,vlist:l[e].vlist};b.push(n);let r=[...l[e].edges.entries()].sort((e,t)=>e[0]-t[0]);for(let[e,t]of r){let r=String.fromCharCode(e),i=t;for(;l[i].edges.size===1&&!v(i);){let[[e,t]]=l[i].edges.entries();r+=String.fromCharCode(e),i=t}n.edges.push({label:r,oldTarget:i})}for(let e of n.edges)x(e.oldTarget);return t};x(0);let S=b.length,C=0;for(let e of b)C+=e.edges.length;let w=new Int32Array(S),T=new Int32Array(C),E=``,D=new Int32Array(S),ee=new Int32Array(S),O=[];{let e=0;for(let t=0;t<S;t++){let n=b[t];w[t]=n.edges.length;for(let t of n.edges)T[e]=t.label.length,E+=t.label,O.push(y.get(t.oldTarget)),e++;D[t]=n.groupId,ee[t]=n.vlist}}{let e=new Int32Array(S);for(let t=S-1;t>=0;t--){let n=1,r=t+1;for(let i=0;i<w[t];i++)n+=e[r],r+=e[r];e[t]=n}let t=0;for(let n=0;n<S;n++){let r=n+1;for(let i=0;i<w[n];i++){if(r!==O[t])throw Error(`cn compiler: edge target mismatch at ${t}`);r+=e[r],t++}}}for(let e of h)e.anchor=y.get(e.anchor);{let e=new Int32Array(d.length).fill(-1),t=[];for(let n=0;n<S;n++){let r=ee[n];r>=0&&(e[r]===-1&&(e[r]=t.length,t.push(d[r])),ee[n]=e[r])}d.length=0,d.push(...t)}let k=0;for(let e of d)k+=e.length;let te=new Int32Array(k),A=new Int32Array(k);{let e=0;for(let t of d)for(let[n,r]of t)te[e]=n,A[e]=r,e++}h.sort((e,t)=>e.anchor-t.anchor||e.gid-t.gid||(e.tail<t.tail?-1:1));let j=[];for(let e of h){let t=j[j.length-1];t&&t.anchor===e.anchor&&t.gid===e.gid?t.tails.push(e.tail):j.push({anchor:e.anchor,gid:e.gid,tails:[e.tail],set:-1})}let M=new Map,N=[];for(let e of j){let t=e.tails.join(` `),n=M.get(t);n===void 0&&(n=N.length,M.set(t,n),N.push(e.tails)),e.set=n}for(let e of N.flat())if(e.includes(`|`)||e.includes(` `))throw Error(`cn compiler: tail contains delimiter: `+e);let P=new Set(N.flat()).size;j.sort((e,t)=>e.anchor-t.anchor||e.set-t.set);for(let t of Object.values(e.conflictingClassGroups))for(let e of t)i(e);for(let t of Object.values(e.conflictingClassGroupModifiers))for(let e of t)i(e);for(let t of e.postfixLookupClassGroups??[])i(t);let F=n.length,I=new Int32Array(F).fill(-1),ne=0,re=e=>(I[e]===-1&&(I[e]=ne++),I[e]);for(let e=0;e<A.length;e++)A[e]=re(A[e]);for(let e of j)e.gid=re(e.gid);for(let e=0;e<D.length;e++)D[e]>=0&&(D[e]=re(D[e]));for(let e=0;e<F;e++)I[e]===-1&&(I[e]=ne++);let ie=Array(F);for(let e=0;e<F;e++)ie[I[e]]=n[e];let ae=[],oe=[],se=[],ce=[],le=[];for(let t=0;t<F;t++){let n=ie[t],i=(e.conflictingClassGroups[n]??[]).map(e=>I[r.get(e)]),a=(e.conflictingClassGroupModifiers[n]??[]).map(e=>I[r.get(e)]);i.length&&(ae.push(t),oe.push(i.length),se.push(...i));for(let e of a)ce.push(t),le.push(e)}let ue=(e.postfixLookupClassGroups??[]).map(e=>I[r.get(e)]),de=[],fe=new Int32Array(te.length);for(let e=0;e<te.length;e++){let n=t.names[te[e]],r=zf[n];if(r!==void 0)fe[e]=r;else{let t=de.indexOf(n);t===-1&&(t=de.length,de.push(n)),fe[e]=Bf+t}}let pe=new Map,me=[],he=[],ge=[];{let e=0;for(let t of d){let n=[];for(let r=0;r<t.length;r++)n.push(fe[e++]);let r=n.join(`,`),i=pe.get(r);i===void 0&&(i=me.length,pe.set(r,i),me.push(n.length),he.push(...n)),ge.push(i)}}let _e={};for(let e of de)_e[e]=t.classifierFns.get(e);return{G:F,customNames:de,impls:_e,edgeCounts:w,edgeLabelLen:T,labelText:E,edgeTargetActual:O,nodeGroup:D,nodeVlist:ee,nodeCount:S,totalEdges:C,patCounts:me,patOps:he,listPat:ge,vlistGroup:A,litEntries:h,sets:N,attachments:j,uniqueTailCount:P,adjGid:ae,adjCnt:oe,adjTgt:se,patGid:ce,patTgt:le,postfixLookup:ue,orderSensitiveModifiers:e.orderSensitiveModifiers.join(` `),prefix:e.prefix}},Jf=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},Yf=e=>{let t=qf(e),n=t.litEntries.length,r=new Int32Array(n),i=new Int32Array(n),a=new Int32Array(n),o=``,s=new Int32Array(t.uniqueTailCount*2);{let e=new Map,n=0,c=0;for(let l of t.attachments)for(let u of t.sets[l.set]){let t=e.get(u);t===void 0&&(t=n++,e.set(u,t),s[t*2]=o.length,s[t*2+1]=u.length,o+=u),r[c]=l.anchor,i[c]=l.gid,a[c]=t,c++}}return{tables:{GROUP_COUNT:t.G,edgeStart:Jf(t.edgeCounts),labelStart:Jf(t.edgeLabelLen),labelText:t.labelText,edgeTarget:Int32Array.from(t.edgeTargetActual),nodeGroup:t.nodeGroup,nodeVlist:t.nodeVlist,vlistPat:Jf(t.patCounts),vlistOps:Int32Array.from(t.patOps),vlistRef:Int32Array.from(t.listPat),vlistGroup:t.vlistGroup,litAnchor:r,litGroup:i,litPool:a,poolOffsets:s,poolText:o,adjGid:Int32Array.from(t.adjGid),adjStart:Jf(t.adjCnt),adjTgt:Int32Array.from(t.adjTgt),patGid:Int32Array.from(t.patGid),patTgt:Int32Array.from(t.patTgt),postfixLookupGroups:Int32Array.from(t.postfixLookup),customValidatorNames:t.customNames,orderSensitiveModifiers:t.orderSensitiveModifiers},validatorImpls:t.impls,prefix:t.prefix}},Xf=`line`in Error(),Zf=-1,Qf=-1,$f=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},ep=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},tp=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let ee=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>ee&&(ee=t)}let O=32;for(;O<2*(1+ee+S.length);)O<<=1;let k=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)k[e+1]=k[e]+u[f[e]+1]-u[f[e]];let te=new Uint8Array(r);for(let e=0;e<w.length;e++)te[w[e]]=1;let A=i.length-1,j=new Uint8Array(A),M=0,N=!0;for(let e=0;e<m.length;e++){j[m[e]]=1;let t=_[g[e]*2+1];t>M&&(M=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(N=!1)}let P=1;for(;P<m.length*2;)P<<=1;let F=new Int32Array(P).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=($f(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&P-1;for(;F[n]!==-1;)n=n+1&P-1;F[n]=e}let I=(e,t,n,r)=>{let i=($f(t,n,r)^Math.imul(e,2654435761)|0)&P-1,a=r-n;for(;;){let r=F[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&P-1}},ne=n.cacheSize??8192,re=n.prefix??e.prefix??``,ie=re===``?``:re+`:`,ae=ie.length,oe=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),se=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ce=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,le=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=0,fe=-1,pe=-1,me=-1,he=-1,ge=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,_e=e=>/\s/.test(String.fromCharCode(e)),ve=(e,t,n)=>{if(de=0,fe=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)de=1;else if(r===40&&i===41)de=2;else return;me=t+1,he=n-1;let a=t+1;if(ge(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!ge(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(fe=t+1,pe=a,me=a+1)}},ye=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},be=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Se=e=>!!e&&!Number.isNaN(Number(e)),Ce=(e,t,n)=>{if(n-t<11||!ye(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&ye(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&ye(e,t+10,t+18,`-normal/`)},we=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],Te=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Ee=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],De=(e,t,n,r)=>{if(e>=10){if(e>=25)return oe[e-25](t.slice(n,r));let i=e-10;if(de!==we[i])return!1;if(fe>=0){for(let e of Te[i])if(ye(t,fe,pe,e))return!0;return!1}switch(Ee[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(me,he);return se.test(e)&&!ce.test(e)}case 3:return Se(t.slice(me,he));case 4:return ue.test(t.slice(me,he));default:return le.test(t.slice(me,he))}}switch(e){case 0:return!0;case 1:return de===0;case 2:return de===1;case 3:return de===2;case 4:return be.test(t.slice(n,r));case 5:return Se(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&Se(t.slice(n,r-1));case 8:return xe.test(t.slice(n,r));default:return Ce(t,n,r)}},Oe=new Set(typeof E==`string`?E.split(` `):E),ke=(e,t,n,r,i,a)=>{let o=$f(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},Ae=new Map,je=new Map,L=2,Me=4096,Ne=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||Oe.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=je.get(s);return c===void 0&&je.set(s,c=L++),c},Pe=new Map,Fe=r,Ie=r+4096,Le=()=>Fe++,Re=2097152,R=8192,ze=new Int32Array(R),Be=Array(R).fill(null),Ve=new Int32Array(R),He=new Int32Array(R),Ue=new Uint8Array(R),We=0,Ge=(e,t,n,r,i,a,o,s)=>{let c=e;if(Be[e]!==null){if(Be[e|1]===null)c=e|1;else if(!(We++&3))c=e|We>>2&1;else return}Be[c]=t.slice(n,r),ze[c]=i,Ve[c]=a,He[c]=o,Ue[c]=s},Ke=()=>Be.fill(null),qe=256,Je=[new Int32Array(qe),new Int32Array(qe),new Int32Array(qe),new Int32Array(qe)],[Ye,Xe,Ze,Qe]=Je,$e=new Uint8Array(qe),et=new Uint8Array(qe),tt=()=>{qe*=2,Je=Je.map(e=>{let t=new Int32Array(qe);return t.set(e),t}),[Ye,Xe,Ze,Qe]=Je;let e=new Uint8Array(qe);e.set($e),$e=e,et=new Uint8Array(qe)},nt=64,rt=new Int32Array(nt),it=new Int32Array(nt),at=new Int32Array(r),ot=2048,st=21,ct=new Float64Array(ot),lt=new Int32Array(ot),ut=0,dt=(e,t)=>{if(e===0&&t<r)return at[t]===ut?1:(at[t]=ut,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>st;for(;lt[i]===ut;){if(ct[i]===n)return 1;i=i+1&ot-1}return ct[i]=n,lt[i]=ut,0},ft=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?Zf:ke(Pe,e,t+1,r,0,Le)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=it[t];if(r>n)continue;let i=rt[t],a=n-r;if(j[i]===1&&a>0&&a<=M){let t=e.charCodeAt(r);if(N===!1||t!==91&&t!==40){let t=I(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;ve(e,r,n);let h=k[o]-c;for(let t=c;t<m;t++)if(De(d[t],e,r,n))return p[h+t]}return Zf},pt=e=>{let t=e.length,n=0,c=0,u=!1;(L>Me||Ae.size>Me)&&(Ae=new Map,je=new Map,L=2,Ke()),Fe>Ie&&(Pe=new Map,Fe=r,Ke());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&_e(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&_e(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===qe&&tt();let _=n++;Ye[_]=p,Xe[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(ze[y]===v&&Be[y]!==null&&Be[y].length===g?t=y:ze[y|1]===v&&Be[y|1]!==null&&Be[y|1].length===g&&(t=y|1),t>=0){let n=Be[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){Ze[_]=Ve[t],Qe[_]=He[t],$e[_]=Ue[t];continue}}}let b=p;if(ae!==0){if(h-p<=ae||!e.startsWith(ie,p)){Ze[_]=Zf,Ge(y,e,p,h,v,Zf,0,0);continue}b=p+ae}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,ee=!1,O=0;D>E&&e.charCodeAt(D-1)===33?(ee=!0,D--):D>E&&e.charCodeAt(E)===33&&(ee=!0,E++,O=1);let k=-1;w>T&&(k=w+O,k>=D&&(k=-1));let A=E;D-E>1&&e.charCodeAt(E)===45&&(A=E+1);let M=0,N=0,P=0,F=-1,I=0;(l[0]>=0||j[0]===1)&&(rt[0]=0,it[0]=A,I=1);let ne=Qf,re=0;for(let t=A;t<D;t++)if(t===k&&(ne=N<P?Qf:M,re=I),M!==Qf){let n=e.charCodeAt(t),r=-1;if(N<P)o.charCodeAt(N)===n?(N++,N===P&&(r=M=F)):M=Qf;else{let e=i[M],t=i[M+1],c=Qf;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(N=e+1,P=a[i+1],F=s[i],c=M);break}}M=c}if(r>=0&&(l[r]>=0||j[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(I===nt){nt*=2;let e=new Int32Array(nt);e.set(rt),rt=e;let t=new Int32Array(nt);t.set(it),it=t}rt[I]=r,it[I]=t+2,I++}}k===D&&(ne=N<P?Qf:M,re=I);let oe=N<P?Qf:M,se,ce=!1;if(k>=0){if(ce=!0,se=ft(e,E,k,ne,re),se!==Zf&&se<r&&te[se]){let t=ft(e,E,D,oe,I);t!==Zf&&t!==se&&(se=t,ce=!1)}else se===Zf&&(se=ft(e,E,D,oe,I),ce=!1)}else se=ft(e,E,D,oe,I);let le=0,ue=0;se===Zf?Ze[_]=Zf:(ue=+!!ce,le=b>=C?+!!ee:ke(Ae,e,b,C,+!!ee,e=>Ne(e,ee)),Ze[_]=se,$e[_]=ue,Qe[_]=le),Ge(y,e,p,h,v,se,le,ue)}if(n===0)return``;if(n===1)return Ye[0]===0&&Xe[0]===t?e:e.slice(Ye[0],Xe[0]);if(n*O>ot){for(;n*O>ot;)ot<<=1,st--;ct=new Float64Array(ot),lt=new Int32Array(ot)}if(L>=Re||Fe>=Re)throw Error(`cn: too many distinct classes in one merge`);ut=ut+1|0,ut===0&&(at.fill(0),lt.fill(0),ut=1);let f=!1;for(let e=n-1;e>=0;e--){let t=Ze[e];if(t===Zf){et[e]=1;continue}let n=Qe[e];if(dt(n,t)===1)et[e]=0,f=!0;else if(et[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)dt(n,x[e]);if($e[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&dt(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!et[m]){m++;continue}let t=Ye[m],r=Xe[m],i=m+1;for(;i<n&&et[i]&&Ye[i]===r+1&&e.charCodeAt(r)===32;)r=Xe[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},mt=16384,ht=new Int32Array(mt*2),gt=0,_t=1,vt=Object.create(null),yt=Object.create(null),bt=new Map,xt=new Map,St=0,Ct=0,wt=()=>{gt^=mt,_t=_t+1|0,Ct=0},Tt=e=>{let t=vt[e];if(t!==void 0)return t;let n=ep(e,0,e.length),r=(n&16383)+gt,i=ht[r]===(n^_t)||ht[r^mt]===(n^_t-1);return i&&(t=yt[e],t!==void 0)?(vt[e]=t,t):(t=pt(e),i?(vt[e]=t,++St>ne&&(St=0,yt=vt,vt=Object.create(null),wt())):(ht[r]=n^_t,++Ct>mt&&wt()),t)},Et=e=>{let t=bt.get(e);if(t!==void 0)return t;let n=ep(e,0,e.length),r=(n&16383)+gt,i=ht[r]===(n^_t)||ht[r^mt]===(n^_t-1);return i&&(t=xt.get(e),t!==void 0)?(bt.set(e,t),t):(t=pt(e),i?(bt.set(e,t),++St>ne&&(St=0,xt=bt,bt=new Map,wt())):(ht[r]=n^_t,++Ct>mt&&wt()),t)},Dt=e=>{let t=ep(e,0,e.length),n=(t&16383)+gt;return ht[n]===(t^_t)||ht[n^mt]===(t^_t-1)||(ht[n]=t^_t,++Ct>mt&&wt(),!1)},Ot=ne===0?pt:Xf?e=>{let t=bt.get(e);return t===void 0?Et(e):t}:Tt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?Ot(arguments[0]):Ot(ip.apply(null,arguments))},mergeString:Ot,seenBefore:ne===0?()=>!1:Dt,mergeUncached:pt}},np=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:np(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},rp=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:np(i,t);a&&(n&&(n+=` `),n+=a)}return n},ip=function(){return rp(arguments,!1)},ap=256,op=16,sp=1024,cp=4096,lp=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(cp).fill(``),l=Array(cp).fill(``),u=Array(cp).fill(``));let i=ep(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=np(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>op&&(_.miss=op,_.skip=sp,_.e.length=0,_.at=0);let u=_.e;u.length<ap?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(np(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},up=`{"theme":{"animate":["spin","ping","pulse","bounce"],"aspect":["video"],"blur":[{"$v":"isTshirtSize"}],"breakpoint":[{"$v":"isTshirtSize"}],"color":[{"$v":"isAny"}],"container":[{"$v":"isTshirtSize"}],"drop-shadow":[{"$v":"isTshirtSize"}],"ease":["in","out","in-out"],"font":[{"$v":"isAnyNonArbitrary"}],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[{"$v":"isTshirtSize"}],"leading":["none","tight","snug","normal","relaxed","loose"],"perspective":["dramatic","near","normal","midrange","distant","none"],"radius":[{"$v":"isTshirtSize"}],"shadow":[{"$v":"isTshirtSize"}],"spacing":["px",{"$v":"isNumber"}],"text":[{"$v":"isTshirtSize"}],"text-shadow":[{"$v":"isTshirtSize"}],"tracking":["tighter","tight","normal","wide","wider","widest"]},"classGroups":{"aspect":[{"aspect":["auto","square",{"$v":"isFraction"},{"$v":"isArbitraryValue"},{"$v":"isArbitraryVariable"},{"$t":"aspect"}]}],"container":["container"],"container-type":[{"@container":["","normal","size",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"container-named":[{"$v":"isNamedContainerQuery"}],"columns":[{"columns":[{"$v":"isNumber"},"auto",{"$v":"isArbitraryValue"},{"$v":"isArbitraryVariable"},{"$t":"container"}]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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-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":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"overflow":[{"overflow":["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],"overscroll":[{"overscroll":["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],"position":["static","fixed","absolute","relative","sticky"],"inset":[{"inset":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inset-x":[{"inset-x":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inset-y":[{"inset-y":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"start":[{"inset-s":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}],"start":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"end":[{"inset-e":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}],"end":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inset-bs":[{"inset-bs":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inset-be":[{"inset-be":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"top":[{"top":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"right":[{"right":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"bottom":[{"bottom":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"left":[{"left":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"visibility":["visible","invisible","collapse"],"z":[{"z":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"basis":[{"basis":[{"$v":"isFraction"},"full","auto",{"$t":"container"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"flex-direction":[{"flex":["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{"flex":["nowrap","wrap","wrap-reverse"]}],"flex":[{"flex":[{"$v":"isNumber"},{"$v":"isFraction"},"auto","initial","none",{"$v":"isArbitraryValue"}]}],"grow":[{"grow":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"shrink":[{"shrink":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"order":[{"order":[{"$v":"isInteger"},"first","last","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"grid-cols":[{"grid-cols":[{"$v":"isInteger"},"none","subgrid",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"col-start-end":[{"col":["auto",{"span":["full",{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"col-start":[{"col-start":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"col-end":[{"col-end":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"grid-rows":[{"grid-rows":[{"$v":"isInteger"},"none","subgrid",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"row-start-end":[{"row":["auto",{"span":["full",{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"row-start":[{"row-start":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"row-end":[{"row-end":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"auto-cols":[{"$t":"spacing"}]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"auto-rows":[{"$t":"spacing"}]}],"gap":[{"gap":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"gap-x":[{"gap-x":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"gap-y":[{"gap-y":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"justify-content":[{"justify":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{"content":["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{"items":["start","end","center","stretch","center-safe","end-safe",{"baseline":["","last"]}]}],"align-self":[{"self":["auto","start","end","center","stretch","center-safe","end-safe",{"baseline":["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"p":[{"p":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"px":[{"px":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"py":[{"py":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"ps":[{"ps":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pe":[{"pe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pbs":[{"pbs":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pbe":[{"pbe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pt":[{"pt":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pr":[{"pr":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pb":[{"pb":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pl":[{"pl":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"m":[{"m":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mx":[{"mx":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"my":[{"my":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"ms":[{"ms":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"me":[{"me":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mbs":[{"mbs":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mbe":[{"mbe":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mt":[{"mt":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mr":[{"mr":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mb":[{"mb":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"ml":[{"ml":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"space-x":[{"space-x":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"space-y-reverse":["space-y-reverse"],"size":[{"size":[{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inline-size":[{"inline":["auto",{"$t":"container"},{"$v":"isFraction"},"screen","full","dvw","lvw","svw","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"min-inline-size":[{"min-inline":["auto",{"$t":"container"},{"$v":"isFraction"},"screen","full","dvw","lvw","svw","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"max-inline-size":[{"max-inline":["none",{"$t":"container"},{"$v":"isFraction"},"screen","full","dvw","lvw","svw","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"block-size":[{"block":["auto",{"$v":"isFraction"},"screen","full","lh","dvh","lvh","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"min-block-size":[{"min-block":["auto",{"$v":"isFraction"},"screen","full","lh","dvh","lvh","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"max-block-size":[{"max-block":["none",{"$v":"isFraction"},"screen","full","lh","dvh","lvh","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"w":[{"w":[{"$t":"container"},"screen",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"min-w":[{"min-w":[{"$t":"container"},"screen","none",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"max-w":[{"max-w":[{"$t":"container"},"screen","none","prose",{"screen":[{"$t":"breakpoint"}]},{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"h":[{"h":["screen","lh",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"min-h":[{"min-h":["screen","lh","none",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"max-h":[{"max-h":["screen","lh","none",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"font-size":[{"text":["base",{"$t":"text"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{"font":[{"$t":"font-weight"},{"$v":"isArbitraryVariableWeight"},{"$v":"isArbitraryWeight"}]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",{"$v":"isPercent"},{"$v":"isArbitraryValue"}]}],"font-family":[{"font":[{"$v":"isArbitraryVariableFamilyName"},{"$v":"isArbitraryFamilyName"},{"$t":"font"}]}],"font-features":[{"font-features":[{"$v":"isArbitraryValue"}]}],"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":[{"$t":"tracking"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"line-clamp":[{"line-clamp":[{"$v":"isNumber"},"none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryNumber"}]}],"leading":[{"leading":["none",{"$t":"leading"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"list-image":[{"list-image":["none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"list-style-position":[{"list":["inside","outside"]}],"list-style-type":[{"list":["disc","decimal","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-alignment":[{"text":["left","center","right","justify","start","end"]}],"placeholder-color":[{"placeholder":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-color":[{"text":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{"decoration":["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{"decoration":[{"$v":"isNumber"},"from-font","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryLength"}]}],"text-decoration-color":[{"decoration":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"underline-offset":[{"underline-offset":[{"$v":"isNumber"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{"text":["wrap","nowrap","balance","pretty"]}],"indent":[{"indent":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"tab-size":[{"tab":[{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"vertical-align":[{"align":["baseline","top","middle","bottom","text-top","text-bottom","sub","super",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"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",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"bg-attachment":[{"bg":["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{"bg":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"},{"position":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}]}],"bg-repeat":[{"bg":["no-repeat",{"repeat":["","x","y","space","round"]}]}],"bg-size":[{"bg":["auto","cover","contain",{"$v":"isArbitraryVariableSize"},{"$v":"isArbitrarySize"},{"size":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}]}],"bg-image":[{"bg":["none",{"linear":[{"to":["t","tr","r","br","b","bl","l","tl"]},{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}],"radial":["",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}],"conic":["",{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"$v":"isArbitraryVariableImage"},{"$v":"isArbitraryImage"}]},{"bg-gradient-to":["t","tr","r","br","b","bl","l","tl"]}],"bg-color":[{"bg":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"gradient-from-pos":[{"from":[{"$v":"isPercent"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"gradient-via-pos":[{"via":[{"$v":"isPercent"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"gradient-to-pos":[{"to":[{"$v":"isPercent"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"gradient-from":[{"from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"gradient-via":[{"via":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"gradient-to":[{"to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded":[{"rounded":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-s":[{"rounded-s":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-e":[{"rounded-e":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-t":[{"rounded-t":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-r":[{"rounded-r":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-b":[{"rounded-b":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-l":[{"rounded-l":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-ss":[{"rounded-ss":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-se":[{"rounded-se":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-ee":[{"rounded-ee":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-es":[{"rounded-es":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-tl":[{"rounded-tl":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-tr":[{"rounded-tr":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-br":[{"rounded-br":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-bl":[{"rounded-bl":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-w":[{"border":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-x":[{"border-x":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-y":[{"border-y":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-s":[{"border-s":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-e":[{"border-e":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-bs":[{"border-bs":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-be":[{"border-be":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-t":[{"border-t":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-r":[{"border-r":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-b":[{"border-b":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-l":[{"border-l":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"divide-x":[{"divide-x":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{"border":["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{"divide":["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{"border":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-x":[{"border-x":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-y":[{"border-y":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-s":[{"border-s":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-e":[{"border-e":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-bs":[{"border-bs":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-be":[{"border-be":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-t":[{"border-t":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-r":[{"border-r":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-b":[{"border-b":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-l":[{"border-l":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"divide-color":[{"divide":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"outline-style":[{"outline":["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"outline-w":[{"outline":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"outline-color":[{"outline":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"shadow":[{"shadow":["","inner","none",{"$t":"shadow"},{"$v":"isArbitraryVariableShadow"},{"$v":"isArbitraryShadow"}]}],"shadow-color":[{"shadow":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"inset-shadow":[{"inset-shadow":["none",{"$t":"inset-shadow"},{"$v":"isArbitraryVariableShadow"},{"$v":"isArbitraryShadow"}]}],"inset-shadow-color":[{"inset-shadow":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"ring-w":[{"ring":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"ring-w-inset":["ring-inset"],"ring-color":[{"ring":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"ring-offset-w":[{"ring-offset":[{"$v":"isNumber"},{"$v":"isArbitraryLength"}]}],"ring-offset-color":[{"ring-offset":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"inset-ring-w":[{"inset-ring":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"inset-ring-color":[{"inset-ring":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-shadow":[{"text-shadow":["none",{"$t":"text-shadow"},{"$v":"isArbitraryVariableShadow"},{"$v":"isArbitraryShadow"}]}],"text-shadow-color":[{"text-shadow":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"opacity":[{"opacity":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"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":[{"$v":"isNumber"}]}],"mask-image-linear-from-pos":[{"mask-linear-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-linear-to-pos":[{"mask-linear-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-linear-from-color":[{"mask-linear-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-linear-to-color":[{"mask-linear-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-t-from-pos":[{"mask-t-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-t-to-pos":[{"mask-t-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-t-from-color":[{"mask-t-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-t-to-color":[{"mask-t-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-r-from-pos":[{"mask-r-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-r-to-pos":[{"mask-r-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-r-from-color":[{"mask-r-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-r-to-color":[{"mask-r-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-b-from-pos":[{"mask-b-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-b-to-pos":[{"mask-b-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-b-from-color":[{"mask-b-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-b-to-color":[{"mask-b-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-l-from-pos":[{"mask-l-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-l-to-pos":[{"mask-l-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-l-from-color":[{"mask-l-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-l-to-color":[{"mask-l-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-x-from-pos":[{"mask-x-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-x-to-pos":[{"mask-x-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-x-from-color":[{"mask-x-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-x-to-color":[{"mask-x-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-y-from-pos":[{"mask-y-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-y-to-pos":[{"mask-y-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-y-from-color":[{"mask-y-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-y-to-color":[{"mask-y-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-radial":[{"mask-radial":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-radial-from-pos":[{"mask-radial-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-radial-to-pos":[{"mask-radial-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-radial-from-color":[{"mask-radial-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-radial-to-color":[{"mask-radial-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{"closest":["side","corner"],"farthest":["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[{"$v":"isNumber"}]}],"mask-image-conic-from-pos":[{"mask-conic-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-conic-to-pos":[{"mask-conic-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-conic-from-color":[{"mask-conic-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-conic-to-color":[{"mask-conic-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-mode":[{"mask":["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{"mask":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"},{"position":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}]}],"mask-repeat":[{"mask":["no-repeat",{"repeat":["","x","y","space","round"]}]}],"mask-size":[{"mask":["auto","cover","contain",{"$v":"isArbitraryVariableSize"},{"$v":"isArbitrarySize"},{"size":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}]}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{"mask":["none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"filter":[{"filter":["","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"blur":[{"blur":["","none",{"$t":"blur"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"brightness":[{"brightness":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"contrast":[{"contrast":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"drop-shadow":[{"drop-shadow":["","none",{"$t":"drop-shadow"},{"$v":"isArbitraryVariableShadow"},{"$v":"isArbitraryShadow"}]}],"drop-shadow-color":[{"drop-shadow":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"grayscale":[{"grayscale":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"hue-rotate":[{"hue-rotate":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"invert":[{"invert":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"saturate":[{"saturate":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"sepia":[{"sepia":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-filter":[{"backdrop-filter":["","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-blur":[{"backdrop-blur":["","none",{"$t":"blur"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-brightness":[{"backdrop-brightness":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-contrast":[{"backdrop-contrast":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-grayscale":[{"backdrop-grayscale":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-invert":[{"backdrop-invert":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-opacity":[{"backdrop-opacity":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-saturate":[{"backdrop-saturate":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-sepia":[{"backdrop-sepia":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-collapse":[{"border":["collapse","separate"]}],"border-spacing":[{"border-spacing":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"border-spacing-x":[{"border-spacing-x":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"border-spacing-y":[{"border-spacing-y":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"table-layout":[{"table":["auto","fixed"]}],"caption":[{"caption":["top","bottom"]}],"transition":[{"transition":["","all","colors","opacity","shadow","transform","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"transition-behavior":[{"transition":["normal","discrete"]}],"duration":[{"duration":[{"$v":"isNumber"},"initial",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"ease":[{"ease":["linear","initial",{"$t":"ease"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"delay":[{"delay":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"animate":[{"animate":["none",{"$t":"animate"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backface":[{"backface":["hidden","visible"]}],"perspective":[{"perspective":[{"$t":"perspective"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"perspective-origin":[{"perspective-origin":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rotate":[{"rotate":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rotate-x":[{"rotate-x":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rotate-y":[{"rotate-y":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rotate-z":[{"rotate-z":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale":[{"scale":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale-x":[{"scale-x":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale-y":[{"scale-y":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale-z":[{"scale-z":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale-3d":["scale-3d"],"skew":[{"skew":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"skew-x":[{"skew-x":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"skew-y":[{"skew-y":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"transform":[{"transform":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},"","none","gpu","cpu"]}],"transform-origin":[{"origin":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"transform-style":[{"transform":["3d","flat"]}],"translate":[{"translate":[{"$v":"isFraction"},"full",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"translate-x":[{"translate-x":[{"$v":"isFraction"},"full",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"translate-y":[{"translate-y":[{"$v":"isFraction"},"full",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"translate-z":[{"translate-z":[{"$v":"isFraction"},"full",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"translate-none":["translate-none"],"zoom":[{"zoom":[{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"accent":[{"accent":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"appearance":[{"appearance":["none","auto"]}],"caret-color":[{"caret":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"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",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"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":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scrollbar-track-color":[{"scrollbar-track":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{"scrollbar":["auto","thin","none"]}],"scroll-m":[{"scroll-m":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mx":[{"scroll-mx":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-my":[{"scroll-my":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-ms":[{"scroll-ms":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-me":[{"scroll-me":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mbs":[{"scroll-mbs":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mbe":[{"scroll-mbe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mt":[{"scroll-mt":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mr":[{"scroll-mr":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mb":[{"scroll-mb":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-ml":[{"scroll-ml":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-p":[{"scroll-p":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-px":[{"scroll-px":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-py":[{"scroll-py":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-ps":[{"scroll-ps":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pe":[{"scroll-pe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pbs":[{"scroll-pbs":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pbe":[{"scroll-pbe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pt":[{"scroll-pt":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pr":[{"scroll-pr":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pb":[{"scroll-pb":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pl":[{"scroll-pl":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"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",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"fill":[{"fill":["none",{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"stroke-w":[{"stroke":[{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"},{"$v":"isArbitraryNumber"}]}],"stroke":[{"stroke":["none",{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}],"contain":[{"contain":["none","content","strict",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"contain-size":[{"contain":["size","inline-size"]}],"contain-layout":["contain-layout"],"contain-paint":["contain-paint"],"contain-style":["contain-style"]},"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"],"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"],"font-size":["leading"],"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"],"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"],"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"],"contain":["contain-size","contain-layout","contain-paint","contain-style"],"contain-size":["contain"],"contain-layout":["contain"],"contain-paint":["contain"],"contain-style":["contain"]},"conflictingClassGroupModifiers":{"font-size":["leading"]},"orderSensitiveModifiers":["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"],"postfixLookupClassGroups":["container-type"]}`,dp=()=>JSON.parse(up),fp=e=>`classGroups`in e&&`theme`in e&&`conflictingClassGroups`in e,pp=e=>e===void 0?{config:dp()}:typeof e==`function`?{config:e(dp())}:fp(e)?{config:e}:{config:Rf(dp(),e),cacheSize:e.cacheSize},mp=e=>{let{config:t,cacheSize:n}=pp(e),{tables:r,validatorImpls:i,prefix:a}=Yf(t);return tp(r,i,{cacheSize:n,prefix:a})},hp=e=>{let t=null,n=()=>t??=mp(e);return lp(e=>n().mergeString(e),{seenBefore:e=>n().seenBefore(e),mergeUncached:e=>n().mergeUncached(e)})},Z=qu(),gp=hp({extend:{classGroups:{"font-size":[{text:[`display`,`title`,`heading`,`read`,`dense`,`micro`]}],shadow:[{shadow:[`overlay`]}],tracking:[{tracking:[`label`]}]}}});function _p(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=_p(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function vp(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_p(e))&&(r&&(r+=` `),r+=t);return r}var yp=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,bp=vp,xp=(e,t)=>n=>{if(t?.variants==null)return bp(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=yp(t)||yp(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return bp(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Sp=Object.defineProperty,Cp=(e,t)=>Sp(e,`name`,{value:t,configurable:!0});function wp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Cp(wp,`setRef`);function Tp(...e){return t=>{let n=!1,r=e.map(e=>{let r=wp(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():wp(e[t],null)}}}}Cp(Tp,`composeRefs`);function Ep(...e){return X.useCallback(Tp(...e),e)}Cp(Ep,`useComposedRefs`);var Dp=Object.defineProperty,Op=(e,t)=>Dp(e,`name`,{value:t,configurable:!0});function kp(e){let t=X.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Rp(r)&&typeof Up==`function`&&(r=Up(r._payload)),X.Children.forEach(r,e=>{if(Ip(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Rp(n)&&typeof Up==`function`&&(n=Up(n._payload)),a=Np(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=X.cloneElement(a,void 0,s):!o&&X.Children.count(r)===1&&X.isValidElement(r)&&(a=r);let c=a?Fp(a):void 0,l=Ep(n,c);if(!a){if(r||r===0)throw Error(o?Hp(e):Vp(e));return r}let u=Pp(i,a.props??{});return a.type!==X.Fragment&&(u.ref=n?l:c),X.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Op(kp,`createSlot`);var Ap=kp(`Slot`),jp=Symbol.for(`radix.slottable`);function Mp(e){let t=Op(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=jp,t}Op(Mp,`createSlottable`);var Np=Op((e,t)=>{if(`child`in e.props){let t=e.props.child;return X.isValidElement(t)?X.cloneElement(t,void 0,e.props.children(t.props.children)):null}return X.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Pp(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Bp(a,i))}return{...e,...n}}Op(Pp,`mergeProps`);function Fp(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Op(Fp,`getElementRef`);function Ip(e){return X.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===jp}Op(Ip,`isSlottable`);var Lp=Symbol.for(`react.lazy`);function Rp(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Lp&&`_payload`in e&&zp(e._payload)}Op(Rp,`isLazyComponent`);function zp(e){return typeof e==`object`&&!!e&&`then`in e}Op(zp,`isPromiseLike`);function Bp(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Op(Bp,`concatAriaDescribedby`);var Vp=Op(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Hp=Op(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Up=X.use,Wp=Object.defineProperty,Gp=(e,t)=>Wp(e,`name`,{value:t,configurable:!0}),Kp=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=kp(`Primitive.${t}`),r=X.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,Z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qp(e,t){e&&od.flushSync(()=>e.dispatchEvent(t))}Gp(qp,`dispatchDiscreteCustomEvent`);var Jp=Object.defineProperty,Yp=(e,t)=>Jp(e,`name`,{value:t,configurable:!0});function Xp(e,t){let n=X.createContext(t);n.displayName=e+`Context`;let r=Yp(e=>{let{children:t,...r}=e,i=X.useMemo(()=>r,Object.values(r));return(0,Z.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=X.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Yp(i,`useContext`),[r,i]}Yp(Xp,`createContext`);function Zp(e,t=[]){let n=[];function r(t,r){let i=X.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Yp(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=X.useMemo(()=>o,Object.values(o));return(0,Z.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=X.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Yp(s,`useContext`),[o,s]}Yp(r,`createContext`);let i=Yp(()=>{let t=n.map(e=>X.createContext(e));return Yp(function(n){let r=n?.[e]||t;return X.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Qp(i,...t)]}Yp(Zp,`createContextScope`);function Qp(...e){let t=e[0];if(e.length===1)return t;let n=Yp(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Yp(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return X.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Yp(Qp,`composeContextScopes`);var $p=Object.defineProperty,em=(e,t)=>$p(e,`name`,{value:t,configurable:!0});function tm(e){let t=e+`CollectionProvider`,[n,r]=Zp(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=em(e=>{let{scope:t,children:n}=e,r=X.useRef(null),a=X.useRef(new Map).current;return(0,Z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=kp(s),l=X.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Ep(t,a(s,n).collectionRef);return(0,Z.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=kp(u),p=X.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=X.useRef(null),s=Ep(t,o),c=a(u,n);return X.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,Z.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return X.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return em(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}em(tm,`createCollection`);var nm=new WeakMap,rm=class e extends Map{static{em(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],nm.set(this,!0)}set(e,t){return nm.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=om(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=im(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=im(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return im(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function im(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=am(e,t);return n===-1?void 0:e[n]}em(im,`at`);function am(e,t){let n=e.length,r=om(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}em(am,`toSafeIndex`);function om(e){return e!==e||e===0?0:Math.trunc(e)}em(om,`toSafeInteger`);function sm(e){let t=e+`CollectionProvider`,[n,r]=Zp(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new rm,setItemMap:em(()=>void 0,`setItemMap`)}),o=em(({state:e,...t})=>e?(0,Z.jsx)(c,{...t,state:e}):(0,Z.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=em(e=>{let t=h();return(0,Z.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=em(e=>{let{scope:t,children:n,state:r}=e,a=X.useRef(null),[o,s]=X.useState(null),c=Ep(a,s),[l,u]=r;return X.useEffect(()=>{if(!o)return;let e=dm(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,Z.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=kp(l),d=X.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Ep(t,a(l,n).collectionRef);return(0,Z.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=kp(f),m=X.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=X.useRef(null),[s,c]=X.useState(null),l=Ep(t,o,c),{setItemMap:u}=a(f,n),d=X.useRef(i);cm(d.current,i)||(d.current=i);let m=d.current;return X.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(um):(t.set(s,{...e,element:s}),t.toSorted(um)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new rm(e)))}},[s,m,u]),(0,Z.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return X.useState(new rm)}em(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return em(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}em(sm,`createCollection`);function cm(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}em(cm,`shallowEqual`);function lm(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}em(lm,`isElementPreceding`);function um(e,t){return!e[1].element||!t[1].element?0:lm(e[1].element,t[1].element)?-1:1}em(um,`sortByDocumentPosition`);function dm(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}em(dm,`getChildListObserver`);var fm=Object.defineProperty,pm=(e,t)=>fm(e,`name`,{value:t,configurable:!0}),mm=!!(typeof window<`u`&&window.document&&window.document.createElement);function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return pm(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}pm(Q,`composeEventHandlers`);function hm(e){if(!mm)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}pm(hm,`getOwnerWindow`);function gm(e){if(!mm)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}pm(gm,`getOwnerDocument`);function _m(e,t=!1){let{activeElement:n}=gm(e);if(!n?.nodeName)return null;if(vm(n)&&n.contentDocument)return _m(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=gm(n).getElementById(e);if(t)return t}}return n}pm(_m,`getActiveElement`);function vm(e){return e.tagName===`IFRAME`}pm(vm,`isFrame`);var ym=globalThis?.document?X.useLayoutEffect:()=>{},bm=Object.defineProperty,xm=(e,t)=>bm(e,`name`,{value:t,configurable:!0}),Sm=X.useEffectEvent,Cm=X.useInsertionEffect;function wm(e){if(typeof Sm==`function`)return Sm(e);let t=X.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Cm==`function`?Cm(()=>{t.current=e}):ym(()=>{t.current=e}),X.useMemo(()=>((...e)=>t.current?.(...e)),[])}xm(wm,`useEffectEvent`);var Tm=Object.defineProperty,Em=(e,t)=>Tm(e,`name`,{value:t,configurable:!0}),Dm=X.useInsertionEffect||ym;function Om({prop:e,defaultProp:t,onChange:n=Em(()=>{},`onChange`),caller:r}){let[i,a,o]=km({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,X.useCallback(t=>{if(s){let n=Am(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Em(Om,`useControllableState`);function km({defaultProp:e,onChange:t}){let[n,r]=X.useState(e),i=X.useRef(n),a=X.useRef(t);return Dm(()=>{a.current=t},[t]),X.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Em(km,`useUncontrolledState`);function Am(e){return typeof e==`function`}Em(Am,`isFunction`);var jm=Symbol(`RADIX:SYNC_STATE`);function Mm(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=wm(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=X.useReducer((t,n)=>{if(n.type===jm)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=X.useRef(p);X.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=X.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return X.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:jm,state:i})},[i,d.state,c]),[h,f]}Em(Mm,`useControllableStateReducer`);var Nm=Object.defineProperty,Pm=(e,t)=>Nm(e,`name`,{value:t,configurable:!0});function Fm(e,t){return X.useReducer((e,n)=>t[e][n]??e,e)}Pm(Fm,`useStateMachine`);var Im=Pm(e=>{let{present:t,children:n}=e,r=Lm(t),i=typeof n==`function`?n({present:r.isPresent}):X.Children.only(n),a=zm(r.ref,Vm(i));return typeof n==`function`||r.isPresent?X.cloneElement(i,{ref:a}):null},`Presence`);function Lm(e){let[t,n]=X.useState(),r=X.useRef(null),i=X.useRef(e),a=X.useRef(`none`),o=X.useRef(void 0),[s,c]=Fm(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return X.useEffect(()=>{s===`mounted`?(a.current=o.current??Bm(r.current),o.current=void 0):a.current=`none`},[s]),ym(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Bm(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),ym(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Pm(a=>{let o=Bm(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Pm(e=>{e.target===t&&(a.current=Bm(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:X.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Bm(t)}else r.current=null;n(e)},[])}}Pm(Lm,`usePresence`);function Rm(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Pm(Rm,`setRef`);function zm(...e){let t=X.useRef(e);return t.current=e,X.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Rm(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Rm(n[e],null)}}},[])}Pm(zm,`useStableComposedRefs`);function Bm(e){return e?.animationName||`none`}Pm(Bm,`getAnimationName`);function Vm(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Pm(Vm,`getElementRef`);var Hm=Object.defineProperty,Um=(e,t)=>Hm(e,`name`,{value:t,configurable:!0}),Wm=X.useId||(()=>void 0),Gm=0;function Km(e){let[t,n]=X.useState(Wm());return ym(()=>{e||n(e=>e??String(Gm++))},[e]),e||(t?`radix-${t}`:``)}Um(Km,`useId`);var qm=Object.defineProperty,Jm=(e,t)=>qm(e,`name`,{value:t,configurable:!0}),Ym={LTR:`ltr`,RTL:`rtl`},Xm=X.createContext(void 0);function Zm(e){let t=X.useContext(Xm);return e||t||Ym.LTR}Jm(Zm,`useDirection`);var Qm=Object.defineProperty,$m=(e,t)=>Qm(e,`name`,{value:t,configurable:!0});function eh(e){let t=X.useRef(e);return X.useEffect(()=>{t.current=e}),X.useMemo(()=>((...e)=>t.current?.(...e)),[])}$m(eh,`useCallbackRef`);var th=Object.defineProperty,nh=(e,t)=>th(e,`name`,{value:t,configurable:!0}),rh=`dismissableLayer.update`,ih=`dismissableLayer.pointerDownOutside`,ah=`dismissableLayer.focusOutside`,oh,sh=X.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ch=X.forwardRef(nh(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=X.useContext(sh),[d,f]=X.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=X.useState({}),h=Ep(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=X.useRef(!1),C=dh(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:X.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=fh(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=eh(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return X.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),X.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(oh=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ph(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=oh))}},[d,p,n,u]),X.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ph())},[d,u]),X.useEffect(()=>{let e=nh(()=>m({}),`handleUpdate`);return document.addEventListener(rh,e),()=>document.removeEventListener(rh,e)},[]),(0,Z.jsx)(Kp.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function lh(){let e=X.useContext(sh),[t,n]=X.useState(null);return X.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}nh(lh,`useDismissableLayerSurface`);var uh=nh(()=>!0,`IS_TRUE`);function dh(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=uh}=t,s=eh(e),c=X.useRef(!1),l=X.useRef(!1),u=X.useRef(new Map),d=X.useRef(()=>{});return X.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}nh(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}nh(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}nh(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}nh(p,`handleInteractionBubble`);let m=nh(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||mh(ih,s,p,{discrete:!0})};if(nh(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:nh(()=>c.current=!0,`onPointerDownCapture`)}}nh(dh,`usePointerDownOutside`);function fh(e,t=globalThis?.document){let n=eh(e),r=X.useRef(!1);return X.useEffect(()=>{let e=nh(e=>{e.target&&!r.current&&mh(ah,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:nh(()=>r.current=!0,`onFocusCapture`),onBlurCapture:nh(()=>r.current=!1,`onBlurCapture`)}}nh(fh,`useFocusOutside`);function ph(){let e=new CustomEvent(rh);document.dispatchEvent(e)}nh(ph,`dispatchUpdate`);function mh(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?qp(i,a):i.dispatchEvent(a)}nh(mh,`handleAndDispatchCustomEvent`);var hh=Object.defineProperty,gh=(e,t)=>hh(e,`name`,{value:t,configurable:!0}),_h=`focusScope.autoFocusOnMount`,vh=`focusScope.autoFocusOnUnmount`,yh={bubbles:!1,cancelable:!0},bh=X.forwardRef(gh(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=X.useState(null),u=eh(a),d=eh(o),f=X.useRef(null),p=Ep(t,l),m=X.useRef(i);X.useEffect(()=>{m.current=i});let h=X.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=X.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;X.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:jh(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||jh(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&jh(c)};gh(e,`handleFocusIn`),gh(t,`handleFocusOut`),gh(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),X.useEffect(()=>{if(c){Mh.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(_h,yh);c.addEventListener(_h,u),c.dispatchEvent(t),t.defaultPrevented||(Th(Fh(Dh(c)),{select:!0}),document.activeElement===e&&jh(c))}return()=>{c.removeEventListener(_h,u),setTimeout(()=>{let t=new CustomEvent(vh,yh);c.addEventListener(vh,d),c.dispatchEvent(t),t.defaultPrevented||jh(e??document.body,{select:!0}),c.removeEventListener(vh,d),Mh.remove(g)},0)}}},[c,u,d,g]);let _=X.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Eh(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&jh(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&jh(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,Z.jsx)(Kp.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),xh=X.createContext(null);function Sh({registry:e,children:t}){return e?(0,Z.jsx)(xh.Provider,{value:e,children:t}):t}gh(Sh,`FocusScopeBranchProvider`);function Ch(){let[e,t]=X.useState([]);return{nodes:e,registry:X.useMemo(()=>({add:gh(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:gh(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}gh(Ch,`useFocusScopeBranchRegistry`);function wh(e){let t=X.useContext(xh);X.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}gh(wh,`useFocusScopeBranch`);function Th(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(jh(r,{select:t}),document.activeElement!==n)return}gh(Th,`focusFirst`);function Eh(e){let t=Dh(e);return[Oh(t,e),Oh(t.reverse(),e)]}gh(Eh,`getTabbableEdges`);function Dh(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:gh(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}gh(Dh,`getTabbableCandidates`);function Oh(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):kh(r,{upTo:t})))return r}gh(Oh,`findVisible`);function kh(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}gh(kh,`isHidden`);function Ah(e){return e instanceof HTMLInputElement&&`select`in e}gh(Ah,`isSelectableInput`);function jh(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ah(e)&&t&&e.select()}}gh(jh,`focus`);var Mh=Nh();function Nh(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ph(e,t),e.unshift(t)},remove(t){e=Ph(e,t),e[0]?.resume()}}}gh(Nh,`createFocusScopesStack`);function Ph(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}gh(Ph,`arrayRemove`);function Fh(e){return e.filter(e=>e.tagName!==`A`)}gh(Fh,`removeLinks`);var Ih=Object.defineProperty,Lh=X.forwardRef(((e,t)=>Ih(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=X.useState(!1);ym(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?od.createPortal((0,Z.jsx)(Kp.div,{...r,ref:t}),o):null},`Portal`)),Rh=Object.defineProperty,zh=(e,t)=>Rh(e,`name`,{value:t,configurable:!0}),Bh=0,Vh=null;function Hh(e){return Uh(),e.children}zh(Hh,`FocusGuards`);function Uh(){X.useEffect(()=>{Vh||={start:Wh(),end:Wh()};let{start:e,end:t}=Vh;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Bh++,()=>{Bh===1&&(Vh?.start.remove(),Vh?.end.remove(),Vh=null),Bh=Math.max(0,Bh-1)}},[])}zh(Uh,`useFocusGuards`);function Wh(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}zh(Wh,`createFocusGuard`);var Gh=function(){return Gh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Gh.apply(this,arguments)};function Kh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function qh(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Jh=`right-scroll-bar-position`,Yh=`width-before-scroll-bar`,Xh=`with-scroll-bars-hidden`,Zh=`--removed-body-scroll-bar-size`;function Qh(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function $h(e,t){var n=(0,X.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var eg=typeof window<`u`?X.useLayoutEffect:X.useEffect,tg=new WeakMap;function ng(e,t){var n=$h(t||null,function(t){return e.forEach(function(e){return Qh(e,t)})});return eg(function(){var t=tg.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Qh(e,null)}),i.forEach(function(e){r.has(e)||Qh(e,a)})}tg.set(n,e)},[e]),n}function rg(e){return e}function ig(e,t){t===void 0&&(t=rg);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function ag(e){e===void 0&&(e={});var t=ig(null);return t.options=Gh({async:!0,ssr:!1},e),t}var og=function(e){var t=e.sideCar,n=Kh(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return X.createElement(r,Gh({},n))};og.isSideCarExport=!0;function sg(e,t){return e.useMedium(t),og}var cg=ag(),lg=function(){},ug=X.forwardRef(function(e,t){var n=X.useRef(null),r=X.useState({onScrollCapture:lg,onWheelCapture:lg,onTouchMoveCapture:lg}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Kh(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=ng([n,t]),C=Gh(Gh({},b),i);return X.createElement(X.Fragment,null,u&&X.createElement(x,{sideCar:cg,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?X.cloneElement(X.Children.only(s),Gh(Gh({},C),{ref:S})):X.createElement(v,Gh({},C,{className:c,ref:S}),s))});ug.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ug.classNames={fullWidth:Yh,zeroRight:Jh};var dg=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function fg(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=dg();return t&&e.setAttribute(`nonce`,t),e}function pg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mg(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var hg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fg())&&(pg(t,n),mg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gg=function(){var e=hg();return function(t,n){X.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_g=function(){var e=gg();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},vg={left:0,top:0,right:0,gap:0},yg=function(e){return parseInt(e||``,10)||0},bg=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[yg(n),yg(r),yg(i)]},xg=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return vg;var t=bg(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Sg=_g(),Cg=`data-scroll-locked`,wg=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
62
+ .${Xh} {
63
+ overflow: hidden ${r};
64
+ padding-right: ${s}px ${r};
65
+ }
66
+ body[${Cg}] {
67
+ overflow: hidden ${r};
68
+ overscroll-behavior: contain;
69
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
70
+ padding-left: ${i}px;
71
+ padding-top: ${a}px;
72
+ padding-right: ${o}px;
73
+ margin-left:0;
74
+ margin-top:0;
75
+ margin-right: ${s}px ${r};
76
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
77
+ }
78
+
79
+ .${Jh} {
80
+ right: ${s}px ${r};
81
+ }
82
+
83
+ .${Yh} {
84
+ margin-right: ${s}px ${r};
85
+ }
86
+
87
+ .${Jh} .${Jh} {
88
+ right: 0 ${r};
89
+ }
90
+
91
+ .${Yh} .${Yh} {
92
+ margin-right: 0 ${r};
93
+ }
94
+
95
+ body[${Cg}] {
96
+ ${Zh}: ${s}px;
97
+ }
98
+ `},Tg=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Eg=function(){X.useEffect(function(){return document.body.setAttribute(Cg,(Tg()+1).toString()),function(){var e=Tg()-1;e<=0?document.body.removeAttribute(Cg):document.body.setAttribute(Cg,e.toString())}},[])},Dg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Eg();var a=X.useMemo(function(){return xg(i)},[i]);return X.createElement(Sg,{styles:wg(a,!t,i,n?``:`!important`)})},Og=!1;if(typeof window<`u`)try{var kg=Object.defineProperty({},"passive",{get:function(){return Og=!0,!0}});window.addEventListener(`test`,kg,kg),window.removeEventListener(`test`,kg,kg)}catch{Og=!1}var Ag=Og?{passive:!1}:!1,jg=function(e){return e.tagName===`TEXTAREA`},Mg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!jg(e)&&n[t]===`visible`)},Ng=function(e){return Mg(e,`overflowY`)},Pg=function(e){return Mg(e,`overflowX`)},Fg=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Rg(e,r)){var i=zg(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ig=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Lg=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Rg=function(e,t){return e===`v`?Ng(t):Pg(t)},zg=function(e,t){return e===`v`?Ig(t):Lg(t)},Bg=function(e,t){return e===`h`&&t===`rtl`?-1:1},Vg=function(e,t,n,r,i){var a=Bg(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=zg(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Rg(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Hg=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ug=function(e){return[e.deltaX,e.deltaY]},Wg=function(e){return e&&`current`in e?e.current:e},Gg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kg=function(e){return`
99
+ .block-interactivity-${e} {pointer-events: none;}
100
+ .allow-interactivity-${e} {pointer-events: all;}
101
+ `},qg=0,Jg=[];function Yg(e){var t=X.useRef([]),n=X.useRef([0,0]),r=X.useRef(),i=X.useState(qg++)[0],a=X.useState(_g)[0],o=X.useRef(e);X.useEffect(function(){o.current=e},[e]),X.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=qh([e.lockRef.current],(e.shards||[]).map(Wg),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=X.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Hg(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Fg(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Fg(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Vg(h,t,e,h===`h`?s:c,!0)},[]),c=X.useCallback(function(e){var n=e;if(Jg.length&&Jg[Jg.length-1]===a){var r=`deltaY`in n?Ug(n):Hg(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Gg(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Wg).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=X.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Xg(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=X.useCallback(function(e){n.current=Hg(e),r.current=void 0},[]),d=X.useCallback(function(t){l(t.type,Ug(t),t.target,s(t,e.lockRef.current))},[]),f=X.useCallback(function(t){l(t.type,Hg(t),t.target,s(t,e.lockRef.current))},[]);X.useEffect(function(){return Jg.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Ag),document.addEventListener(`touchmove`,c,Ag),document.addEventListener(`touchstart`,u,Ag),function(){Jg=Jg.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Ag),document.removeEventListener(`touchmove`,c,Ag),document.removeEventListener(`touchstart`,u,Ag)}},[]);var p=e.removeScrollBar,m=e.inert;return X.createElement(X.Fragment,null,m?X.createElement(a,{styles:Kg(i)}):null,p?X.createElement(Dg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Zg=sg(cg,Yg),Qg=X.forwardRef(function(e,t){return X.createElement(ug,Gh({},e,{ref:t,sideCar:Zg}))});Qg.classNames=ug.classNames;var $g=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},e_=new WeakMap,t_=new WeakMap,n_={},r_=0,i_=function(e){return e&&(e.host||i_(e.parentNode))},a_=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=i_(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},o_=function(e,t,n,r){var i=a_(t,Array.isArray(e)?e:[e]);n_[n]||(n_[n]=new WeakMap);var a=n_[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(e_.get(e)||0)+1,l=(a.get(e)||0)+1;e_.set(e,c),a.set(e,l),o.push(e),c===1&&i&&t_.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),r_++,function(){o.forEach(function(e){var t=e_.get(e)-1,i=a.get(e)-1;e_.set(e,t),a.set(e,i),t||(t_.has(e)||e.removeAttribute(r),t_.delete(e)),i||e.removeAttribute(n)}),r_--,r_||(e_=new WeakMap,e_=new WeakMap,t_=new WeakMap,n_={})}},s_=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||$g(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),o_(r,i,n,`aria-hidden`)):function(){return null}},c_=Object.defineProperty,l_=(e,t)=>c_(e,`name`,{value:t,configurable:!0}),u_=`Dialog`,[d_,f_]=Zp(u_),[p_,m_]=d_(u_),h_=l_(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=X.useRef(null),c=X.useRef(null),{nodes:l,registry:u}=Ch(),[d,f]=Om({prop:r,defaultProp:i??!1,onChange:a,caller:u_}),[p,m]=X.useState(0),[h,g]=X.useState(0);return(0,Z.jsx)(p_,{scope:t,triggerRef:s,contentRef:c,contentId:Km(),titleId:Km(),descriptionId:Km(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:X.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),g_=`DialogPortal`,[__,v_]=d_(g_,{forceMount:void 0}),y_=l_(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=m_(g_,t);return(0,Z.jsx)(__,{scope:t,forceMount:n,children:X.Children.map(r,e=>(0,Z.jsx)(Im,{present:n||a.open,children:(0,Z.jsx)(Lh,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),b_=`DialogOverlay`,x_=X.forwardRef(l_(function(e,t){let n=v_(b_,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=m_(b_,e.__scopeDialog);return a.modal?(0,Z.jsx)(Im,{present:r||a.open,children:(0,Z.jsx)(C_,{...i,ref:t})}):null},`DialogOverlay`)),S_=kp(`DialogOverlay.RemoveScroll`),C_=X.forwardRef(l_(function(e,t){let{__scopeDialog:n,...r}=e,i=m_(b_,n),a=Ep(t,lh());return(0,Z.jsx)(Qg,{as:S_,allowPinchZoom:!0,shards:X.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,Z.jsx)(Kp.div,{"data-state":N_(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),w_=`DialogContent`,T_=X.forwardRef(l_(function(e,t){let n=v_(w_,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=m_(w_,e.__scopeDialog);return(0,Z.jsx)(Im,{present:r||a.open,children:a.modal?(0,Z.jsx)(E_,{...i,ref:t}):(0,Z.jsx)(D_,{...i,ref:t})})},`DialogContent`)),E_=X.forwardRef(l_(function(e,t){let n=m_(w_,e.__scopeDialog),r=X.useRef(null),i=Ep(t,n.contentRef,r);return X.useEffect(()=>{let e=r.current;if(e)return s_(e)},[]),(0,Z.jsx)(O_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Q(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),D_=X.forwardRef(l_(function(e,t){let n=m_(w_,e.__scopeDialog),r=X.useRef(!1),i=X.useRef(!1);return(0,Z.jsx)(O_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),O_=X.forwardRef(l_(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=m_(w_,n);return Uh(),(0,Z.jsx)(Sh,{registry:l.branchRegistry,children:(0,Z.jsx)(bh,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,Z.jsx)(ch,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?M_(o,l.descriptionId):o,"data-state":N_(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),k_=X.forwardRef(l_(function(e,t){let{__scopeDialog:n,...r}=e,i=m_(`DialogTitle`,n),{setTitleCount:a}=i;return ym(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,Z.jsx)(Kp.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),A_=`DialogClose`,j_=X.forwardRef(l_(function(e,t){let{__scopeDialog:n,...r}=e,i=m_(A_,n);return(0,Z.jsx)(Kp.button,{type:`button`,...r,ref:t,onClick:Q(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function M_(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}l_(M_,`concatAriaDescribedby`);function N_(e){return e?`open`:`closed`}l_(N_,`getState`);var P_=Object.defineProperty,F_=(e,t)=>P_(e,`name`,{value:t,configurable:!0});function I_(e){let[t,n]=X.useState(void 0);return ym(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}F_(I_,`useSize`);var L_=[`top`,`right`,`bottom`,`left`],R_=[`start`,`end`],z_=L_.reduce((e,t)=>e.concat(t,t+`-`+R_[0],t+`-`+R_[1]),[]),B_=Math.min,V_=Math.max,H_=Math.round,U_=Math.floor,W_=e=>({x:e,y:e}),G_={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function K_(e,t,n){return V_(e,B_(t,n))}function q_(e,t){return typeof e==`function`?e(t):e}function J_(e){return e.split(`-`)[0]}function Y_(e){return e.split(`-`)[1]}function X_(e){return e===`x`?`y`:`x`}function Z_(e){return e===`y`?`height`:`width`}function Q_(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function $_(e){return X_(Q_(e))}function ev(e,t,n){n===void 0&&(n=!1);let r=Y_(e),i=$_(e),a=Z_(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=lv(o)),[o,lv(o)]}function tv(e){let t=lv(e);return[nv(e),t,nv(t)]}function nv(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var rv=[`left`,`right`],iv=[`right`,`left`],av=[`top`,`bottom`],ov=[`bottom`,`top`];function sv(e,t,n){switch(e){case`top`:case`bottom`:return n?t?iv:rv:t?rv:iv;case`left`:case`right`:return t?av:ov;default:return[]}}function cv(e,t,n,r){let i=Y_(e),a=sv(J_(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(nv)))),a}function lv(e){let t=J_(e);return G_[t]+e.slice(t.length)}function uv(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function dv(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:uv(e)}function fv(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function pv(e,t,n){let{reference:r,floating:i}=e,a=Q_(t),o=$_(t),s=Z_(o),c=J_(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Y_(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function mv(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=q_(t,e),p=dv(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=fv(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=fv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var hv=50,gv=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:mv},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=pv(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<hv&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=pv(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},_v=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=q_(e,t)||{};if(l==null)return{};let d=dv(u),f={x:n,y:r},p=$_(i),m=Z_(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=B_(d[_],T),D=B_(d[v],T),ee=C-h[m]-D,O=C/2-h[m]/2+w,k=K_(E,O,ee),te=!c.arrow&&Y_(i)!=null&&O!==k&&a.reference[m]/2-(O<E?E:D)-h[m]/2<0,A=te?O<E?O-E:O-ee:0;return{[p]:f[p]+A,data:{[p]:k,centerOffset:O-k-A,...te&&{alignmentOffset:A}},reset:te}}});function vv(e,t,n){return(e?[...n.filter(t=>Y_(t)===e),...n.filter(t=>Y_(t)!==e)]:n.filter(e=>J_(e)===e)).filter(n=>!e||Y_(n)===e||(t?nv(n)!==n:!1))}var yv=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=z_,autoAlignment:u=!0,...d}=q_(e,t),f=c!==void 0||l===z_?vv(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=ev(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[J_(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Y_(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Y_(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},bv=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=q_(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=J_(r),_=Q_(o),v=J_(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[lv(o)]:tv(o)),x=p!==`none`;!d&&x&&b.push(...cv(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ev(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Q_(t)||T.every(e=>Q_(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Q_(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function xv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sv(e){return L_.some(t=>e[t]>=0)}var Cv=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=q_(e,t);switch(i){case`referenceHidden`:{let e=xv(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Sv(e)}}}case`escaped`:{let e=xv(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Sv(e)}}}default:return{}}}}};function wv(e){let t=B_(...e.map(e=>e.left)),n=B_(...e.map(e=>e.top)),r=V_(...e.map(e=>e.right)),i=V_(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Tv(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>fv(wv(e)))}var Ev=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=q_(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=Tv(u),f=fv(wv(u)),p=dv(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(Q_(n)===`y`){let e=d[0],t=d[d.length-1],r=J_(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return fv({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=J_(n)===`left`,t=V_(...d.map(e=>e.right)),r=B_(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return fv({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Dv=new Set([`left`,`top`]);async function Ov(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=J_(n),s=Y_(n),c=Q_(n)===`y`,l=Dv.has(o)?-1:1,u=a&&c?-1:1,d=q_(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var kv=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ov(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Av=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=q_(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Q_(i),p=X_(f),m=u[p],h=u[f],g=(e,t)=>K_(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},jv=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=q_(e,t),u={x:n,y:r},d=Q_(i),f=X_(d),p=u[f],m=u[d],h=q_(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Dv.has(J_(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Mv=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=q_(e,t),c=await i.detectOverflow(t,s),l=J_(n),u=Y_(n),d=Q_(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=B_(p-c[m],g),y=B_(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*V_(c.left,c.right):S=p-2*V_(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Nv(){return typeof window<`u`}function Pv(e){return Lv(e)?(e.nodeName||``).toLowerCase():`#document`}function Fv(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Iv(e){return((Lv(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Lv(e){return Nv()?e instanceof Node||e instanceof Fv(e).Node:!1}function Rv(e){return Nv()?e instanceof Element||e instanceof Fv(e).Element:!1}function zv(e){return Nv()?e instanceof HTMLElement||e instanceof Fv(e).HTMLElement:!1}function Bv(e){return!Nv()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Fv(e).ShadowRoot}function Vv(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Qv(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Hv(e){return/^(table|td|th)$/.test(Pv(e))}function Uv(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Wv=/transform|translate|scale|rotate|perspective|filter/,Gv=/paint|layout|strict|content/,Kv=e=>!!e&&e!==`none`,qv;function Jv(e){let t=Rv(e)?Qv(e):e;return Kv(t.transform)||Kv(t.translate)||Kv(t.scale)||Kv(t.rotate)||Kv(t.perspective)||!Xv()&&(Kv(t.backdropFilter)||Kv(t.filter))||Wv.test(t.willChange||``)||Gv.test(t.contain||``)}function Yv(e){let t=ey(e);for(;zv(t)&&!Zv(t);){if(Jv(t))return t;if(Uv(t))return null;t=ey(t)}return null}function Xv(){return qv??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),qv}function Zv(e){return/^(html|body|#document)$/.test(Pv(e))}function Qv(e){return Fv(e).getComputedStyle(e)}function $v(e){return Rv(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ey(e){if(Pv(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Bv(e)&&e.host||Iv(e);return Bv(t)?t.host:t}function ty(e){let t=ey(e);return Zv(t)?(e.ownerDocument||e).body:zv(t)&&Vv(t)?t:ty(t)}function ny(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ty(e),i=r===e.ownerDocument?.body,a=Fv(r);if(i){let e=ry(a);return t.concat(a,a.visualViewport||[],Vv(r)?r:[],e&&n?ny(e):[])}return t.concat(r,ny(r,[],n))}function ry(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iy(e){let t=Qv(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=zv(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=H_(n)!==a||H_(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ay(e){return Rv(e)?e:e.contextElement}function oy(e){let t=ay(e);if(!zv(t))return W_(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=iy(t),o=(a?H_(n.width):n.width)/r,s=(a?H_(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var sy=W_(0);function cy(e){let t=Fv(e);return!Xv()||!t.visualViewport?sy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ly(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Fv(e)}function uy(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ay(e),o=W_(1);t&&(r?Rv(r)&&(o=oy(r)):o=oy(e));let s=ly(a,n,r)?cy(a):W_(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Fv(a),t=Rv(r)?Fv(r):r,n=e,i=ry(n);for(;i&&t!==n;){let e=oy(i),t=i.getBoundingClientRect(),r=Qv(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Fv(i),i=ry(n)}}return fv({width:u,height:d,x:c,y:l})}function dy(e,t){let n=$v(e).scrollLeft;return t?t.left+n:uy(Iv(e)).left+n}function fy(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-dy(e,n),y:n.top+t.scrollTop}}function py(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Iv(r),s=t?Uv(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=W_(1),u=W_(0),d=zv(r);if((d||!a)&&((Pv(r)!==`body`||Vv(o))&&(c=$v(r)),d)){let e=uy(r);l=oy(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?fy(o,c):W_(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function my(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function hy(e){let t=$v(e),n=e.ownerDocument.body,r=V_(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=V_(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+dy(e),o=-t.scrollTop;return Qv(n).direction===`rtl`&&(a+=V_(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var gy=25;function _y(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Fv(e),a=Iv(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Xv()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(dy(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=gy&&(s-=o)}return{width:s,height:c,x:l,y:u}}function vy(e,t){let n=uy(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=oy(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function yy(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=_y(e,n,t);else if(t===`document`)r=hy(Iv(e));else if(Rv(t))r=vy(t,n);else{let n=cy(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return fv(r)}function by(e,t){let n=t.get(e);if(n)return n;let r=ny(e,[],!1).filter(e=>Rv(e)&&Pv(e)!==`body`),i=null,a=Qv(e).position===`fixed`,o=a?ey(e):e;for(;Rv(o)&&!Zv(o);){let e=Qv(o),t=Jv(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ey(o)}return t.set(e,r),r}function xy(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Uv(t)?[]:by(t,this._c):[].concat(n),r],o=yy(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=yy(t,a[e],i);s=V_(n.top,s),c=B_(n.right,c),l=B_(n.bottom,l),u=V_(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Sy(e){let{width:t,height:n}=iy(e);return{width:t,height:n}}function Cy(e,t,n){let r=zv(t),i=Iv(t),a=n===`fixed`,o=uy(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=W_(0);if((r||!a)&&((Pv(t)!==`body`||Vv(i))&&(s=$v(t)),r)){let e=uy(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=dy(i));let l=i&&!r&&!a?fy(i,s):W_(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function wy(e){return Qv(e).position===`static`}function Ty(e,t){if(!zv(e)||Qv(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Iv(e)===n&&(n=n.ownerDocument.body),n}function Ey(e,t){let n=Fv(e);if(Uv(e))return n;if(!zv(e)){let t=ey(e);for(;t&&!Zv(t);){if(Rv(t)&&!wy(t))return t;t=ey(t)}return n}let r=Ty(e,t);for(;r&&Hv(r)&&wy(r);)r=Ty(r,t);return r&&Zv(r)&&wy(r)&&!Jv(r)?n:r||Yv(e)||n}var Dy=async function(e){let t=this.getOffsetParent||Ey,n=this.getDimensions,r=await n(e.floating);return{reference:Cy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Oy(e){return Qv(e).direction===`rtl`}var ky={convertOffsetParentRelativeRectToViewportRelativeRect:py,getDocumentElement:Iv,getClippingRect:xy,getOffsetParent:Ey,getElementRects:Dy,getClientRects:my,getDimensions:Sy,getScale:oy,isElement:Rv,isRTL:Oy};function Ay(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jy(e,t,n){let r=null,i,a=Iv(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=U_(d),h=U_(a.clientWidth-(u+f)),g=U_(a.clientHeight-(d+p)),_=U_(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:V_(0,B_(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ay(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Fv(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function My(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ay(e),u=i||a?[...l?ny(l):[],...t?ny(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?jy(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?uy(e):null;c&&g();function g(){let t=uy(e);h&&!Ay(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ny=kv,Py=yv,Fy=Av,Iy=bv,Ly=Mv,Ry=Cv,zy=_v,By=Ev,Vy=jv,Hy=(e,t,n)=>{let r=new Map,i=n??{},a={...ky,...i.platform,_c:r};return gv(e,t,{...i,platform:a})},Uy=typeof document<`u`?X.useLayoutEffect:function(){};function Wy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Wy(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Wy(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Gy(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ky(e,t){let n=Gy(e);return Math.round(t*n)/n}function qy(e){let t=X.useRef(e);return Uy(()=>{t.current=e}),t}function Jy(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=X.useState(r);Wy(f,r)||p(r);let[m,h]=X.useState(null),[g,_]=X.useState(null),v=X.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=X.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=X.useRef(null),C=X.useRef(null),w=X.useRef(u),T=c!=null,E=qy(c),D=qy(i),ee=qy(l),O=X.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Hy(S.current,C.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};k.current&&!Wy(w.current,t)&&(w.current=t,od.flushSync(()=>{d(t)}))})},[f,t,n,D,ee]);Uy(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=X.useRef(!1);Uy(()=>(k.current=!0,()=>{k.current=!1}),[]),Uy(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let te=X.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=X.useMemo(()=>({reference:b,floating:x}),[b,x]),j=X.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=Ky(A.floating,u.x),r=Ky(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Gy(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return X.useMemo(()=>({...u,update:O,refs:te,elements:A,floatingStyles:j}),[u,O,te,A,j])}var Yy=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:zy({element:r.current,padding:i}).fn(n):r?zy({element:r,padding:i}).fn(n):{}}}},Xy=(e,t)=>{let n=Ny(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zy=(e,t)=>{let n=Fy(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qy=(e,t)=>({fn:Vy(e).fn,options:[e,t]}),$y=(e,t)=>{let n=Iy(e);return{name:n.name,fn:n.fn,options:[e,t]}},eb=(e,t)=>{let n=Ly(e);return{name:n.name,fn:n.fn,options:[e,t]}},tb=(e,t)=>{let n=Py(e);return{name:n.name,fn:n.fn,options:[e,t]}},nb=(e,t)=>{let n=Ry(e);return{name:n.name,fn:n.fn,options:[e,t]}},rb=(e,t)=>{let n=By(e);return{name:n.name,fn:n.fn,options:[e,t]}},ib=(e,t)=>{let n=Yy(e);return{name:n.name,fn:n.fn,options:[e,t]}},ab=Object.defineProperty,ob=X.forwardRef(((e,t)=>ab(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,Z.jsx)(Kp.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,Z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),sb=Object.defineProperty,cb=(e,t)=>sb(e,`name`,{value:t,configurable:!0}),lb={Partial:`partial`,Always:`always`},ub={Optimized:`optimized`,Always:`always`},db=`Popper`,[fb,pb]=Zp(db),[mb,hb]=fb(db),gb=cb(e=>{let{__scopePopper:t,children:n}=e,[r,i]=X.useState(null),[a,o]=X.useState(void 0);return(0,Z.jsx)(mb,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),_b=`PopperAnchor`,vb=X.forwardRef(cb(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=hb(_b,n),o=X.useRef(null),s=a.onAnchorChange,c=Ep(t,X.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=X.useRef(null);X.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Ob(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,Z.jsx)(Kp.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),yb=`PopperContent`,[bb,xb]=fb(yb),Sb=X.forwardRef(cb(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=lb.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=ub.Optimized,onPlaced:m,...h}=e,g=hb(yb,n),[_,v]=X.useState(null),y=Ep(t,v),[b,x]=X.useState(null),S=I_(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],ee=D.length>0,O={padding:E,boundary:D.filter(Eb),altBoundary:ee},{refs:k,floatingStyles:te,placement:A,isPositioned:j,middlewareData:M}=Jy({strategy:`fixed`,placement:T,whileElementsMounted:cb((...e)=>My(...e,{animationFrame:p===ub.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Xy({mainAxis:i+w,alignmentAxis:o}),c&&Zy({mainAxis:!0,crossAxis:!1,limiter:d===lb.Partial?Qy():void 0,...O}),c&&$y({...O}),eb({...O,apply:cb(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&ib({element:b,padding:s}),Db({arrowWidth:C,arrowHeight:w}),f&&nb({strategy:`referenceHidden`,...O,boundary:ee?O.boundary:void 0})]}),N=g.setPlacementState;ym(()=>(N(A),()=>{N(void 0)}),[A,N]);let[P,F]=Ob(A),I=eh(m);ym(()=>{j&&I?.()},[j,I]);let ne=M.arrow?.x,re=M.arrow?.y,ie=M.arrow?.centerOffset!==0,[ae,oe]=X.useState();return ym(()=>{_&&oe(window.getComputedStyle(_).zIndex)},[_]),(0,Z.jsx)(`div`,{ref:k.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:j?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(` `),...M.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,Z.jsx)(bb,{scope:n,placedSide:P,placedAlign:F,onArrowChange:x,arrowX:ne,arrowY:re,shouldHideArrow:ie,children:(0,Z.jsx)(Kp.div,{"data-side":P,"data-align":F,...h,ref:y,style:{...h.style,animation:j?h.style?.animation:`none`}})})})},`PopperContent`)),Cb=`PopperArrow`,wb={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Tb=X.forwardRef(cb(function(e,t){let{__scopePopper:n,...r}=e,i=xb(Cb,n),a=wb[i.placedSide];return(0,Z.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,Z.jsx)(ob,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function Eb(e){return e!==null}cb(Eb,`isNotNull`);var Db=cb(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ob(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Ob(e){let[t,n=`center`]=e.split(`-`);return[t,n]}cb(Ob,`getSideAndAlignFromPlacement`);var kb=Object.defineProperty,Ab=(e,t)=>kb(e,`name`,{value:t,configurable:!0}),jb=!1;function Mb(){let[e,t]=X.useState(jb);return X.useEffect(()=>{jb||(jb=!0,t(!0))},[]),e}Ab(Mb,`useIsHydrated`);var Nb=X.useSyncExternalStore;function Pb(){return()=>{}}Ab(Pb,`subscribe`);function Fb(){return Nb(Pb,()=>!0,()=>!1)}Ab(Fb,`useIsHydratedModern`);var Ib=typeof Nb==`function`?Fb:Mb,Lb=Object.defineProperty,Rb=(e,t)=>Lb(e,`name`,{value:t,configurable:!0}),zb=`rovingFocusGroup.onEntryFocus`,Bb={bubbles:!1,cancelable:!0},Vb=`RovingFocusGroup`,[Hb,Ub,Wb]=tm(Vb),[Gb,Kb]=Zp(Vb,[Wb]),qb={Vertical:`vertical`,Horizontal:`horizontal`},Jb={LTR:`ltr`,RTL:`rtl`},[Yb,Xb]=Gb(Vb),Zb=X.forwardRef(Rb(function(e,t){return(0,Z.jsx)(Hb.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Z.jsx)(Hb.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Z.jsx)(Qb,{...e,ref:t})})})},`RovingFocusGroup`)),Qb=X.forwardRef(Rb(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=X.useRef(null),p=Ep(t,f),m=Zm(a),[h,g]=Om({prop:o,defaultProp:s??null,onChange:c,caller:Vb}),[_,v]=X.useState(!1),y=eh(l),b=Ub(n),x=X.useRef(!1),[S,C]=X.useState(0);return X.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(zb,y),()=>e.removeEventListener(zb,y)},[y]),(0,Z.jsx)(Yb,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:X.useCallback(e=>g(e),[g]),onItemShiftTab:X.useCallback(()=>v(!0),[]),onFocusableItemAdd:X.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:X.useCallback(()=>C(e=>e-1),[]),children:(0,Z.jsx)(Kp.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:Q(e.onMouseDown,()=>{x.current=!0}),onFocus:Q(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(zb,Bb);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);ix([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:Q(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),$b=`RovingFocusGroupItem`,ex=X.forwardRef(Rb(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Km(),l=a||c,u=Xb($b,n),d=u.currentTabStopId===l,f=Ub(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Ib();return ym(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),X.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,Z.jsx)(Hb.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,Z.jsx)(Kp.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Q(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:Q(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Q(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=rx(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?ax(n,r+1):n.slice(r+1)}setTimeout(()=>ix(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),tx={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function nx(e,t){return t===Jb.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}Rb(nx,`getDirectionAwareKey`);function rx(e,t,n){let r=nx(e.key,n);if(!(t===qb.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===qb.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return tx[r]}Rb(rx,`getFocusIntent`);function ix(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Rb(ix,`focusFirst`);function ax(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Rb(ax,`wrapArray`);var ox=Object.defineProperty,$=(e,t)=>ox(e,`name`,{value:t,configurable:!0}),sx={LTR:`ltr`,RTL:`rtl`},cx=[`Enter`,` `],lx=[`ArrowDown`,`PageUp`,`Home`],ux=[`ArrowUp`,`PageDown`,`End`],dx=[...lx,...ux],fx={ltr:[...cx,`ArrowRight`],rtl:[...cx,`ArrowLeft`]},px={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},mx=`Menu`,[hx,gx,_x]=tm(mx),[vx,yx]=Zp(mx,[_x,pb,Kb]),bx=pb(),xx=Kb(),[Sx,Cx]=vx(mx),[wx,Tx]=vx(mx),Ex=$(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=bx(t),[c,l]=X.useState(null),u=X.useRef(!1),d=eh(a),f=Zm(i);return X.useEffect(()=>{let e=$(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=$(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),X.useEffect(()=>{if(!n)return;let e=$(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,Z.jsx)(gb,{...s,children:(0,Z.jsx)(Sx,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,Z.jsx)(wx,{scope:t,onClose:X.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Dx=X.forwardRef($(function(e,t){let{__scopeMenu:n,...r}=e,i=bx(n);return(0,Z.jsx)(vb,{...i,...r,ref:t})},`MenuAnchor`)),Ox=`MenuPortal`,[kx,Ax]=vx(Ox,{forceMount:void 0}),jx=$(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Cx(Ox,t);return(0,Z.jsx)(kx,{scope:t,forceMount:n,children:(0,Z.jsx)(Im,{present:n||a.open,children:(0,Z.jsx)(Lh,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Mx=`MenuContent`,[Nx,Px]=vx(Mx),Fx=X.forwardRef($(function(e,t){let n=Ax(Mx,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Cx(Mx,e.__scopeMenu),o=Tx(Mx,e.__scopeMenu);return(0,Z.jsx)(hx.Provider,{scope:e.__scopeMenu,children:(0,Z.jsx)(Im,{present:r||a.open,children:(0,Z.jsx)(hx.Slot,{scope:e.__scopeMenu,children:o.modal?(0,Z.jsx)(Ix,{...i,ref:t}):(0,Z.jsx)(Lx,{...i,ref:t})})})})},`MenuContent`)),Ix=X.forwardRef($(function(e,t){let n=Cx(Mx,e.__scopeMenu),r=X.useRef(null),i=Ep(t,r);return X.useEffect(()=>{let e=r.current;if(e)return s_(e)},[]),(0,Z.jsx)(zx,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Q(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Lx=X.forwardRef($(function(e,t){let n=Cx(Mx,e.__scopeMenu);return(0,Z.jsx)(zx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Rx=kp(`MenuContent.ScrollLock`),zx=X.forwardRef($(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=Cx(Mx,n),_=Tx(Mx,n),v=bx(n),y=xx(n),b=gx(n),[x,S]=X.useState(null),C=X.useRef(null),[w,T]=X.useState(null);wh(w);let{nodes:E,registry:D}=Ch(),ee=!!(i||m),O=Ep(t,C,g.onContentChange,T),k=X.useRef(0),te=X.useRef(``),A=X.useRef(0),j=X.useRef(null),M=X.useRef(`right`),N=X.useRef(0),P=X.useMemo(()=>m?[C,...E.map(e=>({current:e}))]:[],[C,E,m]),F=m?Qg:X.Fragment,I=m?{as:Rx,allowPinchZoom:!0,shards:P}:void 0,ne=$(e=>{let t=te.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=pS(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;$((function e(t){te.current=t,window.clearTimeout(k.current),t!==``&&(k.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);X.useEffect(()=>()=>window.clearTimeout(k.current),[]),Uh();let re=X.useCallback(e=>M.current===j.current?.side&&hS(e,j.current?.area),[]);return(0,Z.jsx)(Nx,{scope:n,searchRef:te,onItemEnter:X.useCallback(e=>{re(e)&&e.preventDefault()},[re]),onItemLeave:X.useCallback(e=>{re(e)||(C.current?.focus(),S(null))},[re]),onTriggerLeave:X.useCallback(e=>{re(e)&&e.preventDefault()},[re]),pointerGraceTimerRef:A,onPointerGraceIntentChange:X.useCallback(e=>{j.current=e},[]),children:(0,Z.jsx)(Sh,{registry:ee?D:null,children:(0,Z.jsx)(F,{...I,children:(0,Z.jsx)(bh,{asChild:!0,trapped:i,branches:E,onMountAutoFocus:Q(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,Z.jsx)(ch,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,Z.jsx)(Zb,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:Q(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,Z.jsx)(Sb,{role:`menu`,"aria-orientation":`vertical`,"data-state":cS(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:O,style:{outline:`none`,...h.style},onKeyDown:Q(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ne(e.key));let i=C.current;if(e.target!==i||!dx.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);ux.includes(e.key)&&a.reverse(),dS(a)}),onBlur:Q(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),te.current=``)}),onPointerMove:Q(e.onPointerMove,gS(e=>{let t=e.target,n=N.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>N.current?`right`:`left`;M.current=t,N.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),Bx=X.forwardRef($(function(e,t){let{__scopeMenu:n,...r}=e;return(0,Z.jsx)(Kp.div,{role:`group`,...r,ref:t})},`MenuGroup`)),Vx=X.forwardRef($(function(e,t){let{__scopeMenu:n,...r}=e;return(0,Z.jsx)(Kp.div,{...r,ref:t})},`MenuLabel`)),Hx=`MenuItem`,Ux=`menu.itemSelect`,Wx=X.forwardRef($(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=X.useRef(null),o=Tx(Hx,e.__scopeMenu),s=Px(Hx,e.__scopeMenu),c=Ep(t,a),l=X.useRef(!1),u=$(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Ux,{bubbles:!0,cancelable:!0});e.addEventListener(Ux,e=>r?.(e),{once:!0}),qp(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,Z.jsx)(Gx,{...i,ref:c,disabled:n,onClick:Q(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:Q(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:Q(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&cx.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Gx=X.forwardRef($(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Px(Hx,n),s=xx(n),c=X.useRef(null),l=Ep(t,c),[u,d]=X.useState(!1),[f,p]=X.useState(``);return X.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,Z.jsx)(hx.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,Z.jsx)(ex,{asChild:!0,...s,focusable:!r,children:(0,Z.jsx)(Kp.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:Q(e.onPointerMove,gS(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Q(e.onPointerLeave,gS(e=>o.onItemLeave(e))),onFocus:Q(e.onFocus,()=>d(!0)),onBlur:Q(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),Kx=X.forwardRef($(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,Z.jsx)(Xx,{scope:e.__scopeMenu,checked:n,children:(0,Z.jsx)(Wx,{role:`menuitemcheckbox`,"aria-checked":lS(n)?`mixed`:n,...i,ref:t,"data-state":uS(n),onSelect:Q(i.onSelect,()=>r?.(lS(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[qx,Jx]=vx(`MenuRadioGroup`,{value:void 0,onValueChange:$(()=>{},`onValueChange`)}),Yx=`MenuItemIndicator`,[Xx,Zx]=vx(Yx,{checked:!1}),Qx=X.forwardRef($(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=Zx(Yx,n);return(0,Z.jsx)(Im,{present:r||lS(a.checked)||a.checked===!0,children:(0,Z.jsx)(Kp.span,{...i,ref:t,"data-state":uS(a.checked)})})},`MenuItemIndicator`)),$x=X.forwardRef($(function(e,t){let{__scopeMenu:n,...r}=e;return(0,Z.jsx)(Kp.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),eS=`MenuSub`,[tS,nS]=vx(eS),rS=$(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Cx(eS,t),o=bx(t),[s,c]=X.useState(null),[l,u]=X.useState(null),d=eh(i);return X.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,Z.jsx)(gb,{...o,children:(0,Z.jsx)(Sx,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,Z.jsx)(tS,{scope:t,contentId:Km(),triggerId:Km(),trigger:s,onTriggerChange:c,children:n})})})},`MenuSub`),iS=`MenuSubTrigger`,aS=X.forwardRef($(function(e,t){let n=Cx(iS,e.__scopeMenu),r=Tx(iS,e.__scopeMenu),i=nS(iS,e.__scopeMenu),a=Px(iS,e.__scopeMenu),o=X.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=X.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);X.useEffect(()=>u,[u]),X.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=Ep(t,i.onTriggerChange);return(0,Z.jsx)(Dx,{asChild:!0,...l,children:(0,Z.jsx)(Gx,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":cS(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Q(e.onPointerMove,gS(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||o.current||(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:Q(e.onPointerLeave,gS(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Q(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(a.searchRef.current===``||t.key!==` `)&&fx[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),oS=`MenuSubContent`,sS=X.forwardRef($(function(e,t){let n=Ax(Mx,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=Cx(Mx,e.__scopeMenu),s=Tx(Mx,e.__scopeMenu),c=nS(oS,e.__scopeMenu),l=X.useRef(null),u=Ep(t,l);return(0,Z.jsx)(hx.Provider,{scope:e.__scopeMenu,children:(0,Z.jsx)(Im,{present:r||o.open,children:(0,Z.jsx)(hx.Slot,{scope:e.__scopeMenu,children:(0,Z.jsx)(zx,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===sx.RTL?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Q(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:Q(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:Q(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=px[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function cS(e){return e?`open`:`closed`}$(cS,`getOpenState`);function lS(e){return e===`indeterminate`}$(lS,`isIndeterminate`);function uS(e){return lS(e)?`indeterminate`:e?`checked`:`unchecked`}$(uS,`getCheckedState`);function dS(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}$(dS,`focusFirst`);function fS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}$(fS,`wrapArray`);function pS(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=fS(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}$(pS,`getNextMatch`);function mS(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}$(mS,`isPointInPolygon`);function hS(e,t){return t?mS({x:e.clientX,y:e.clientY},t):!1}$(hS,`isPointerInGraceArea`);function gS(e){return t=>t.pointerType===`mouse`?e(t):void 0}$(gS,`whenMouse`);var _S=Object.defineProperty,vS=(e,t)=>_S(e,`name`,{value:t,configurable:!0}),yS=`DropdownMenu`,[bS,xS]=Zp(yS,[yx]),SS=yx(),[CS,wS]=bS(yS),TS=vS(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=SS(t),l=X.useRef(null),[u,d]=Om({prop:i,defaultProp:a??!1,onChange:o,caller:yS});return(0,Z.jsx)(CS,{scope:t,triggerId:Km(),triggerRef:l,contentId:Km(),open:u,onOpenChange:d,onOpenToggle:X.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,Z.jsx)(Ex,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),ES=`DropdownMenuTrigger`,DS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=wS(ES,n),o=SS(n),s=Ep(t,a.triggerRef);return(0,Z.jsx)(Dx,{asChild:!0,...o,children:(0,Z.jsx)(Kp.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:Q(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:Q(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),OS=vS(e=>{let{__scopeDropdownMenu:t,...n}=e,r=SS(t);return(0,Z.jsx)(jx,{...r,...n})},`DropdownMenuPortal`),kS=`DropdownMenuContent`,AS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=wS(kS,n),a=SS(n),o=X.useRef(!1);return(0,Z.jsx)(Fx,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:Q(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:Q(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),jS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=SS(n);return(0,Z.jsx)(Bx,{...i,...r,ref:t})},`DropdownMenuGroup`)),MS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=SS(n);return(0,Z.jsx)(Vx,{...i,...r,ref:t})},`DropdownMenuLabel`)),NS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=SS(n);return(0,Z.jsx)(Wx,{...i,...r,ref:t})},`DropdownMenuItem`)),PS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=SS(n);return(0,Z.jsx)(Kx,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),FS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=SS(n);return(0,Z.jsx)(Qx,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),IS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=SS(n);return(0,Z.jsx)($x,{...i,...r,ref:t})},`DropdownMenuSeparator`)),LS=vS(e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=SS(t),[s,c]=Om({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,Z.jsx)(rS,{...o,open:s,onOpenChange:c,children:n})},`DropdownMenuSub`),RS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=SS(n);return(0,Z.jsx)(aS,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),zS=X.forwardRef(vS(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=SS(n);return(0,Z.jsx)(sS,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`)),BS=xp(`inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function VS({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?Ap:`button`;return(0,Z.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:gp(BS({variant:t,size:n,className:e})),...i})}function HS({...e}){return(0,Z.jsx)(TS,{"data-slot":`dropdown-menu`,...e})}function US({...e}){return(0,Z.jsx)(DS,{"data-slot":`dropdown-menu-trigger`,...e})}function WS({className:e,sideOffset:t=4,...n}){return(0,Z.jsx)(OS,{children:(0,Z.jsx)(AS,{"data-slot":`dropdown-menu-content`,sideOffset:t,className:gp(`z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...n})})}function GS({...e}){return(0,Z.jsx)(jS,{"data-slot":`dropdown-menu-group`,...e})}function KS({className:e,inset:t,variant:n=`default`,...r}){return(0,Z.jsx)(NS,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:gp(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,e),...r})}function qS({className:e,children:t,checked:n,...r}){return(0,Z.jsxs)(PS,{"data-slot":`dropdown-menu-checkbox-item`,className:gp(`relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:n,...r,children:[(0,Z.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,Z.jsx)(FS,{children:(0,Z.jsx)(nd,{className:`size-4`})})}),t]})}function JS({className:e,inset:t,...n}){return(0,Z.jsx)(MS,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:gp(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...n})}function YS({className:e,...t}){return(0,Z.jsx)(IS,{"data-slot":`dropdown-menu-separator`,className:gp(`-mx-1 my-1 h-px bg-border`,e),...t})}function XS({className:e,...t}){return(0,Z.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:gp(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t})}function ZS({...e}){return(0,Z.jsx)(LS,{"data-slot":`dropdown-menu-sub`,...e})}function QS({className:e,inset:t,children:n,...r}){return(0,Z.jsxs)(RS,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":t,className:gp(`flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,Z.jsx)(rd,{className:`ml-auto size-4`})]})}function $S({className:e,...t}){return(0,Z.jsx)(zS,{"data-slot":`dropdown-menu-sub-content`,className:gp(`z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...t})}var eC=(0,X.createContext)(null);function tC(e){return(0,Z.jsx)(eC.Provider,{value:e.host,children:e.children})}function nC(){let e=(0,X.useContext)(eC);if(!e)throw Error(`An editor runs inside a HostProvider.`);return e}function rC(e,t){let n=nC(),r=(0,X.useEffectEvent)(t);(0,X.useEffect)(()=>n.on(e,e=>{r(e)}),[n,e])}function iC(e){let t=nC(),n=(0,X.useEffectEvent)(()=>e.freeze()),r=(0,X.useEffectEvent)(()=>e.pictures?.()??[]),i=(0,X.useEffectEvent)(t=>e.locate?.(t)??[]),a=(0,X.useEffectEvent)(()=>{e.thaw?.()});(0,X.useEffect)(()=>t.notes?.({freeze:()=>n(),pictures:()=>Promise.resolve(r()),locate:e=>Promise.resolve(i(e)),thaw:()=>{a()}}),[t])}function aC(){let e=nC(),[t,n]=(0,X.useState)();return(0,X.useEffect)(()=>{let t=!0;e[`host/context`]({}).then(e=>{t&&n(e)},()=>void 0);let r=e.on(`host/context-changed`,e=>{n(e)});return()=>{t=!1,r()}},[e]),t}function oC(){let e=nC(),t=aC(),n=t?.readOnly===!0,r=t?.viewer===!0,i=(0,X.useRef)(0);return{readOnly:n,ask:()=>{!n||r||Date.now()-i.current<1e3||(i.current=Date.now(),e[`edit/request`]({}).catch(()=>void 0))}}}function sC(){return aC()?.viewer===!0}function cC(){try{return lu(sessionStorage)}catch{return}}function lC(e){let[t,n]=(0,X.useState)(cC);return(0,X.useEffect)(()=>{if(t!==void 0||e===void 0)return;let r=!0;return pu(e).then(e=>{r&&n(e)}),()=>{r=!1}},[t,e]),t}export{ny as $,r as $n,id as $t,aS as A,Pc as An,Sh as At,tb as B,nc as Bn,Q as Bt,Dx as C,Gc as Cn,y_ as Ct,$x as D,Y as Dn,Uh as Dt,jx as E,Vc as En,Qg as Et,gb as F,G as Fn,Zm as Ft,Xy as G,Zs as Gn,Mp as Gt,nb as H,U as Hn,Zp as Ht,vb as I,Ns as In,Km as It,Jy as J,Ys as Jn,vp as Jt,Zy as K,q as Kn,Ep as Kt,Tb as L,Gs as Ln,Im as Lt,Zb as M,Oc as Mn,Ch as Mt,ex as N,ec as Nn,ch as Nt,rS as O,jc as On,Lh as Ot,Kb as P,Fs as Pn,eh as Pt,Pv as Q,a as Qn,ad as Qt,Sb as R,js as Rn,Om as Rt,Ex as S,Kc as Sn,x_ as St,Wx as T,Bc as Tn,s_ as Tt,rb as U,K as Un,Kp as Ut,$y as V,Vs as Vn,tm as Vt,Qy as W,Qs as Wn,kp as Wt,ky as X,W as Xn,Rd as Xt,My as Y,Us as Yn,gp as Yt,Qv as Z,fs as Zn,Cd as Zt,ZS as _,hl as _n,fv as _t,iC as a,Gu as an,Lv as at,US as b,fl as bn,j_ as bt,sC as c,Wu as cn,Xv as ct,WS as d,Pu as dn,Y_ as dt,rd as en,ey as et,GS as f,ou as fn,$_ as ft,XS as g,nu as gn,Q_ as gt,YS as h,eu as hn,J_ as ht,rC as i,zu as in,Zv as it,yx as j,J as jn,wh as jt,sS as k,Nc as kn,bh as kt,HS as l,Iu as ln,K_ as lt,JS as m,Ql as mn,dv as mt,nC as n,td as nn,Rv as nt,oC as o,Uu as on,Vv as ot,KS as p,au as pn,Z_ as pt,eb as q,H as qn,xp as qt,aC as r,qu as rn,zv as rt,lC as s,Hu as sn,Bv as st,tC as t,nd as tn,Fv as tt,qS as u,Lu as un,q_ as ut,$S as v,ul as vn,I_ as vt,Fx as w,qc as wn,k_ as wt,VS as x,dl as xn,T_ as xt,QS as y,ll as yn,h_ as yt,pb as z,wc as zn,ym as zt};