@cloudraker/reki 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (762) hide show
  1. package/CHANGELOG.md +1892 -0
  2. package/README.md +525 -0
  3. package/ai/USAGE.md +201 -0
  4. package/ai/component-registry.json +6707 -0
  5. package/ai/component-registry.md +8346 -0
  6. package/ai/schemas.ts +955 -0
  7. package/bin/reki.js +36 -0
  8. package/dist/.build-complete +1 -0
  9. package/dist/ai/schemas.d.ts +2514 -0
  10. package/dist/ai/schemas.d.ts.map +1 -0
  11. package/dist/ai/schemas.js +3985 -0
  12. package/dist/ai/schemas.js.map +1 -0
  13. package/dist/blocks-source/delete-resource/delete-resource.tsx +213 -0
  14. package/dist/blocks-source/page-header/page-header.tsx +99 -0
  15. package/dist/blocks-source/resource-list/resource-list.test.tsx +28 -0
  16. package/dist/blocks-source/resource-list/resource-list.tsx +69 -0
  17. package/dist/catalog.js +229 -0
  18. package/dist/catalog.js.map +1 -0
  19. package/dist/chunks/SankeyChart-jwwpwps4npqzbrvn.js +890 -0
  20. package/dist/chunks/SankeyChart-jwwpwps4npqzbrvn.js.map +1 -0
  21. package/dist/chunks/autocomplete-f4vetako14h2aqsw.js +193 -0
  22. package/dist/chunks/autocomplete-f4vetako14h2aqsw.js.map +1 -0
  23. package/dist/chunks/badge-pc33c5ir7muabgfh.js +163 -0
  24. package/dist/chunks/badge-pc33c5ir7muabgfh.js.map +1 -0
  25. package/dist/chunks/banner-kis9h1yq636liunc.js +120 -0
  26. package/dist/chunks/banner-kis9h1yq636liunc.js.map +1 -0
  27. package/dist/chunks/bash-g5z23u7me5rx7bzt.js +15 -0
  28. package/dist/chunks/bash-g5z23u7me5rx7bzt.js.map +1 -0
  29. package/dist/chunks/breadcrumbs-d6149hyct4puz3x4.js +169 -0
  30. package/dist/chunks/breadcrumbs-d6149hyct4puz3x4.js.map +1 -0
  31. package/dist/chunks/button-nc5p1h28cwes0tjw.js +237 -0
  32. package/dist/chunks/button-nc5p1h28cwes0tjw.js.map +1 -0
  33. package/dist/chunks/checkbox-g2661n3eodgoispq.js +216 -0
  34. package/dist/chunks/checkbox-g2661n3eodgoispq.js.map +1 -0
  35. package/dist/chunks/clipboard-text-g3659lejx2d7i93e.js +191 -0
  36. package/dist/chunks/clipboard-text-g3659lejx2d7i93e.js.map +1 -0
  37. package/dist/chunks/cloudflare-logo-k0f07zztsda8m4ca.js +175 -0
  38. package/dist/chunks/cloudflare-logo-k0f07zztsda8m4ca.js.map +1 -0
  39. package/dist/chunks/cn-ct4n7r74mh8y0f48.js +26 -0
  40. package/dist/chunks/cn-ct4n7r74mh8y0f48.js.map +1 -0
  41. package/dist/chunks/code-fm5rpi47v6cj9o8o.js +61 -0
  42. package/dist/chunks/code-fm5rpi47v6cj9o8o.js.map +1 -0
  43. package/dist/chunks/collapsible-ndvmgo29s5iqfcor.js +76 -0
  44. package/dist/chunks/collapsible-ndvmgo29s5iqfcor.js.map +1 -0
  45. package/dist/chunks/combobox-i38w67netm8ukw4f.js +408 -0
  46. package/dist/chunks/combobox-i38w67netm8ukw4f.js.map +1 -0
  47. package/dist/chunks/command-palette-fe5cjfdgsg3t17vq.js +403 -0
  48. package/dist/chunks/command-palette-fe5cjfdgsg3t17vq.js.map +1 -0
  49. package/dist/chunks/core-oowp00biqxe3hvjc.js +5806 -0
  50. package/dist/chunks/core-oowp00biqxe3hvjc.js.map +1 -0
  51. package/dist/chunks/css-d1mi3wy1sl3fzekh.js +8 -0
  52. package/dist/chunks/css-d1mi3wy1sl3fzekh.js.map +1 -0
  53. package/dist/chunks/date-picker-81mc3zrsmobm3ydm.js +2921 -0
  54. package/dist/chunks/date-picker-81mc3zrsmobm3ydm.js.map +1 -0
  55. package/dist/chunks/date-range-picker-c8ttrfaos9mb1w5n.js +408 -0
  56. package/dist/chunks/date-range-picker-c8ttrfaos9mb1w5n.js.map +1 -0
  57. package/dist/chunks/dialog-m4go8xof25fospqo.js +134 -0
  58. package/dist/chunks/dialog-m4go8xof25fospqo.js.map +1 -0
  59. package/dist/chunks/diff-cpj1h9lg0bw716mj.js +8 -0
  60. package/dist/chunks/diff-cpj1h9lg0bw716mj.js.map +1 -0
  61. package/dist/chunks/dropdown-j5uht8mn4z7xc9fc.js +313 -0
  62. package/dist/chunks/dropdown-j5uht8mn4z7xc9fc.js.map +1 -0
  63. package/dist/chunks/empty-kazxr0248zjemw6n.js +94 -0
  64. package/dist/chunks/empty-kazxr0248zjemw6n.js.map +1 -0
  65. package/dist/chunks/engine-javascript-iqcmg6wi2pjun29k.js +2637 -0
  66. package/dist/chunks/engine-javascript-iqcmg6wi2pjun29k.js.map +1 -0
  67. package/dist/chunks/engine-oniguruma-g75h8oxao68cjmhg.js +295 -0
  68. package/dist/chunks/engine-oniguruma-g75h8oxao68cjmhg.js.map +1 -0
  69. package/dist/chunks/field-fe5m8z3vbpvtctbe.js +77 -0
  70. package/dist/chunks/field-fe5m8z3vbpvtctbe.js.map +1 -0
  71. package/dist/chunks/github-light-ulev8flhimfg79ob.js +6 -0
  72. package/dist/chunks/github-light-ulev8flhimfg79ob.js.map +1 -0
  73. package/dist/chunks/graphql-ft2h47erta7isqn4.js +16 -0
  74. package/dist/chunks/graphql-ft2h47erta7isqn4.js.map +1 -0
  75. package/dist/chunks/grid-enlbb88vucgeq1np.js +128 -0
  76. package/dist/chunks/grid-enlbb88vucgeq1np.js.map +1 -0
  77. package/dist/chunks/hcl-hcu7d6ja6t540ijn.js +8 -0
  78. package/dist/chunks/hcl-hcu7d6ja6t540ijn.js.map +1 -0
  79. package/dist/chunks/html-kl304jmqj4jxj777.js +12 -0
  80. package/dist/chunks/html-kl304jmqj4jxj777.js.map +1 -0
  81. package/dist/chunks/input-area-ciw85g3fno06t4tw.js +78 -0
  82. package/dist/chunks/input-area-ciw85g3fno06t4tw.js.map +1 -0
  83. package/dist/chunks/input-group-mo7tq7jr19hmgor5.js +505 -0
  84. package/dist/chunks/input-group-mo7tq7jr19hmgor5.js.map +1 -0
  85. package/dist/chunks/input-i5nefqk213n4z7pr.js +130 -0
  86. package/dist/chunks/input-i5nefqk213n4z7pr.js.map +1 -0
  87. package/dist/chunks/javascript-hhx3avh9uv2o27ay.js +8 -0
  88. package/dist/chunks/javascript-hhx3avh9uv2o27ay.js.map +1 -0
  89. package/dist/chunks/json-jovp9qemdkp5cziz.js +8 -0
  90. package/dist/chunks/json-jovp9qemdkp5cziz.js.map +1 -0
  91. package/dist/chunks/jsonc-jbkkgjer6ispw2u3.js +8 -0
  92. package/dist/chunks/jsonc-jbkkgjer6ispw2u3.js.map +1 -0
  93. package/dist/chunks/jsx-ij885l2li2lzfoss.js +8 -0
  94. package/dist/chunks/jsx-ij885l2li2lzfoss.js.map +1 -0
  95. package/dist/chunks/label-fcho4757rbdess0c.js +68 -0
  96. package/dist/chunks/label-fcho4757rbdess0c.js.map +1 -0
  97. package/dist/chunks/layer-card-kzu48dhzxm3e9p4u.js +47 -0
  98. package/dist/chunks/layer-card-kzu48dhzxm3e9p4u.js.map +1 -0
  99. package/dist/chunks/link-j2gu5dr3nr4i4yf0.js +95 -0
  100. package/dist/chunks/link-j2gu5dr3nr4i4yf0.js.map +1 -0
  101. package/dist/chunks/link-provider-bgljdgs4hs438h0u.js +22 -0
  102. package/dist/chunks/link-provider-bgljdgs4hs438h0u.js.map +1 -0
  103. package/dist/chunks/loader-cxzp72mn53lzbv9c.js +109 -0
  104. package/dist/chunks/loader-cxzp72mn53lzbv9c.js.map +1 -0
  105. package/dist/chunks/markdown-n2vyyq7l68fy32wc.js +8 -0
  106. package/dist/chunks/markdown-n2vyyq7l68fy32wc.js.map +1 -0
  107. package/dist/chunks/menubar-ir5gbjmsizsddz7g.js +98 -0
  108. package/dist/chunks/menubar-ir5gbjmsizsddz7g.js.map +1 -0
  109. package/dist/chunks/meter-o5yd7ctjf80vvyjx.js +51 -0
  110. package/dist/chunks/meter-o5yd7ctjf80vvyjx.js.map +1 -0
  111. package/dist/chunks/pagination-bryw6rohfr7mm3km.js +266 -0
  112. package/dist/chunks/pagination-bryw6rohfr7mm3km.js.map +1 -0
  113. package/dist/chunks/popover-elxcmvv7mu7m7uk4.js +181 -0
  114. package/dist/chunks/popover-elxcmvv7mu7m7uk4.js.map +1 -0
  115. package/dist/chunks/portal-provider-off76og7tjyz96ys.js +18 -0
  116. package/dist/chunks/portal-provider-off76og7tjyz96ys.js.map +1 -0
  117. package/dist/chunks/python-gg755pb8oe9ra1d1.js +8 -0
  118. package/dist/chunks/python-gg755pb8oe9ra1d1.js.map +1 -0
  119. package/dist/chunks/radio-newyq331uk4lltr6.js +226 -0
  120. package/dist/chunks/radio-newyq331uk4lltr6.js.map +1 -0
  121. package/dist/chunks/resolve-variant-t8jcltsizeg29ege.js +11 -0
  122. package/dist/chunks/resolve-variant-t8jcltsizeg29ege.js.map +1 -0
  123. package/dist/chunks/select-h5480mbro0ypxu0b.js +237 -0
  124. package/dist/chunks/select-h5480mbro0ypxu0b.js.map +1 -0
  125. package/dist/chunks/sensitive-input-lqugq6uvx0lkpu0u.js +273 -0
  126. package/dist/chunks/sensitive-input-lqugq6uvx0lkpu0u.js.map +1 -0
  127. package/dist/chunks/sidebar-noz668nhdu2gso12.js +1144 -0
  128. package/dist/chunks/sidebar-noz668nhdu2gso12.js.map +1 -0
  129. package/dist/chunks/skeleton-line-epxenksfesr2fkcv.js +33 -0
  130. package/dist/chunks/skeleton-line-epxenksfesr2fkcv.js.map +1 -0
  131. package/dist/chunks/sql-ovukp5mrfunfk5tv.js +8 -0
  132. package/dist/chunks/sql-ovukp5mrfunfk5tv.js.map +1 -0
  133. package/dist/chunks/surface-cyxme7mlr49l33f8.js +29 -0
  134. package/dist/chunks/surface-cyxme7mlr49l33f8.js.map +1 -0
  135. package/dist/chunks/switch-bigo96fyjlh7ivbi.js +256 -0
  136. package/dist/chunks/switch-bigo96fyjlh7ivbi.js.map +1 -0
  137. package/dist/chunks/table-mwcmwp6a80zvyrxw.js +208 -0
  138. package/dist/chunks/table-mwcmwp6a80zvyrxw.js.map +1 -0
  139. package/dist/chunks/table-of-contents-gkuvkr2w6lbhi7wt.js +106 -0
  140. package/dist/chunks/table-of-contents-gkuvkr2w6lbhi7wt.js.map +1 -0
  141. package/dist/chunks/tabs-e4pcjkw94kpe35x0.js +177 -0
  142. package/dist/chunks/tabs-e4pcjkw94kpe35x0.js.map +1 -0
  143. package/dist/chunks/text-oxsrbmjmfq99ue85.js +103 -0
  144. package/dist/chunks/text-oxsrbmjmfq99ue85.js.map +1 -0
  145. package/dist/chunks/toast-ivr4097bstjcjotf.js +370 -0
  146. package/dist/chunks/toast-ivr4097bstjcjotf.js.map +1 -0
  147. package/dist/chunks/toml-nczb2z9n0o23o3ci.js +8 -0
  148. package/dist/chunks/toml-nczb2z9n0o23o3ci.js.map +1 -0
  149. package/dist/chunks/tooltip-ncaia8n1lavkyw8n.js +103 -0
  150. package/dist/chunks/tooltip-ncaia8n1lavkyw8n.js.map +1 -0
  151. package/dist/chunks/tsx-ehy8lrzet6v54zur.js +8 -0
  152. package/dist/chunks/tsx-ehy8lrzet6v54zur.js.map +1 -0
  153. package/dist/chunks/typescript-k4ggjrxhrhcdni6u.js +8 -0
  154. package/dist/chunks/typescript-k4ggjrxhrhcdni6u.js.map +1 -0
  155. package/dist/chunks/vendor-base-ui-bgl9g5nkvqy3tn36.js +24690 -0
  156. package/dist/chunks/vendor-base-ui-bgl9g5nkvqy3tn36.js.map +1 -0
  157. package/dist/chunks/vendor-floating-ui-dn8xswn8036udsqq.js +1311 -0
  158. package/dist/chunks/vendor-floating-ui-dn8xswn8036udsqq.js.map +1 -0
  159. package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js +2775 -0
  160. package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js.map +1 -0
  161. package/dist/chunks/vendor-utils-m5h2xu7s2rs3pgk5.js +217 -0
  162. package/dist/chunks/vendor-utils-m5h2xu7s2rs3pgk5.js.map +1 -0
  163. package/dist/chunks/vesper-ebfu9ns65f2v830s.js +6 -0
  164. package/dist/chunks/vesper-ebfu9ns65f2v830s.js.map +1 -0
  165. package/dist/chunks/wasm-oj22f8usru9h7dzg.js +9 -0
  166. package/dist/chunks/wasm-oj22f8usru9h7dzg.js.map +1 -0
  167. package/dist/chunks/yaml-e2v22lr79tss2brj.js +8 -0
  168. package/dist/chunks/yaml-e2v22lr79tss2brj.js.map +1 -0
  169. package/dist/code/server.js +88 -0
  170. package/dist/code/server.js.map +1 -0
  171. package/dist/code.js +256 -0
  172. package/dist/code.js.map +1 -0
  173. package/dist/command-line/cli.js +850 -0
  174. package/dist/command-line/commands/add.js +282 -0
  175. package/dist/command-line/commands/ai.js +22 -0
  176. package/dist/command-line/commands/blocks.js +61 -0
  177. package/dist/command-line/commands/doc.js +167 -0
  178. package/dist/command-line/commands/init.js +95 -0
  179. package/dist/command-line/commands/ls.js +53 -0
  180. package/dist/components/autocomplete.js +9 -0
  181. package/dist/components/autocomplete.js.map +1 -0
  182. package/dist/components/badge.js +7 -0
  183. package/dist/components/badge.js.map +1 -0
  184. package/dist/components/banner.js +7 -0
  185. package/dist/components/banner.js.map +1 -0
  186. package/dist/components/breadcrumbs.js +9 -0
  187. package/dist/components/breadcrumbs.js.map +1 -0
  188. package/dist/components/button.js +9 -0
  189. package/dist/components/button.js.map +1 -0
  190. package/dist/components/chart.js +10 -0
  191. package/dist/components/chart.js.map +1 -0
  192. package/dist/components/checkbox.js +8 -0
  193. package/dist/components/checkbox.js.map +1 -0
  194. package/dist/components/clipboard-text.js +6 -0
  195. package/dist/components/clipboard-text.js.map +1 -0
  196. package/dist/components/cloudflare-logo.js +10 -0
  197. package/dist/components/cloudflare-logo.js.map +1 -0
  198. package/dist/components/code.js +7 -0
  199. package/dist/components/code.js.map +1 -0
  200. package/dist/components/collapsible.js +6 -0
  201. package/dist/components/collapsible.js.map +1 -0
  202. package/dist/components/combobox.js +6 -0
  203. package/dist/components/combobox.js.map +1 -0
  204. package/dist/components/command-palette.js +8 -0
  205. package/dist/components/command-palette.js.map +1 -0
  206. package/dist/components/date-picker.js +6 -0
  207. package/dist/components/date-picker.js.map +1 -0
  208. package/dist/components/date-range-picker.js +6 -0
  209. package/dist/components/date-range-picker.js.map +1 -0
  210. package/dist/components/dialog.js +11 -0
  211. package/dist/components/dialog.js.map +1 -0
  212. package/dist/components/dropdown.js +6 -0
  213. package/dist/components/dropdown.js.map +1 -0
  214. package/dist/components/empty.js +9 -0
  215. package/dist/components/empty.js.map +1 -0
  216. package/dist/components/field.js +10 -0
  217. package/dist/components/field.js.map +1 -0
  218. package/dist/components/flow.js +5831 -0
  219. package/dist/components/flow.js.map +1 -0
  220. package/dist/components/grid.js +11 -0
  221. package/dist/components/grid.js.map +1 -0
  222. package/dist/components/input-group.js +8 -0
  223. package/dist/components/input-group.js.map +1 -0
  224. package/dist/components/input.js +14 -0
  225. package/dist/components/input.js.map +1 -0
  226. package/dist/components/label.js +10 -0
  227. package/dist/components/label.js.map +1 -0
  228. package/dist/components/layer-card.js +6 -0
  229. package/dist/components/layer-card.js.map +1 -0
  230. package/dist/components/link.js +9 -0
  231. package/dist/components/link.js.map +1 -0
  232. package/dist/components/loader.js +8 -0
  233. package/dist/components/loader.js.map +1 -0
  234. package/dist/components/menubar.js +7 -0
  235. package/dist/components/menubar.js.map +1 -0
  236. package/dist/components/meter.js +6 -0
  237. package/dist/components/meter.js.map +1 -0
  238. package/dist/components/pagination.js +6 -0
  239. package/dist/components/pagination.js.map +1 -0
  240. package/dist/components/popover.js +14 -0
  241. package/dist/components/popover.js.map +1 -0
  242. package/dist/components/radio.js +10 -0
  243. package/dist/components/radio.js.map +1 -0
  244. package/dist/components/select.js +6 -0
  245. package/dist/components/select.js.map +1 -0
  246. package/dist/components/sensitive-input.js +8 -0
  247. package/dist/components/sensitive-input.js.map +1 -0
  248. package/dist/components/sidebar.js +34 -0
  249. package/dist/components/sidebar.js.map +1 -0
  250. package/dist/components/surface.js +6 -0
  251. package/dist/components/surface.js.map +1 -0
  252. package/dist/components/switch.js +8 -0
  253. package/dist/components/switch.js.map +1 -0
  254. package/dist/components/table-of-contents.js +8 -0
  255. package/dist/components/table-of-contents.js.map +1 -0
  256. package/dist/components/table.js +8 -0
  257. package/dist/components/table.js.map +1 -0
  258. package/dist/components/tabs.js +6 -0
  259. package/dist/components/tabs.js.map +1 -0
  260. package/dist/components/text.js +6 -0
  261. package/dist/components/text.js.map +1 -0
  262. package/dist/components/toast.js +11 -0
  263. package/dist/components/toast.js.map +1 -0
  264. package/dist/components/tooltip.js +7 -0
  265. package/dist/components/tooltip.js.map +1 -0
  266. package/dist/index.js +344 -0
  267. package/dist/index.js.map +1 -0
  268. package/dist/primitives/accordion.js +6 -0
  269. package/dist/primitives/accordion.js.map +1 -0
  270. package/dist/primitives/alert-dialog.js +6 -0
  271. package/dist/primitives/alert-dialog.js.map +1 -0
  272. package/dist/primitives/autocomplete.js +6 -0
  273. package/dist/primitives/autocomplete.js.map +1 -0
  274. package/dist/primitives/avatar.js +6 -0
  275. package/dist/primitives/avatar.js.map +1 -0
  276. package/dist/primitives/button.js +6 -0
  277. package/dist/primitives/button.js.map +1 -0
  278. package/dist/primitives/checkbox-group.js +6 -0
  279. package/dist/primitives/checkbox-group.js.map +1 -0
  280. package/dist/primitives/checkbox.js +6 -0
  281. package/dist/primitives/checkbox.js.map +1 -0
  282. package/dist/primitives/collapsible.js +6 -0
  283. package/dist/primitives/collapsible.js.map +1 -0
  284. package/dist/primitives/combobox.js +6 -0
  285. package/dist/primitives/combobox.js.map +1 -0
  286. package/dist/primitives/context-menu.js +6 -0
  287. package/dist/primitives/context-menu.js.map +1 -0
  288. package/dist/primitives/csp-provider.js +6 -0
  289. package/dist/primitives/csp-provider.js.map +1 -0
  290. package/dist/primitives/dialog.js +6 -0
  291. package/dist/primitives/dialog.js.map +1 -0
  292. package/dist/primitives/direction-provider.js +7 -0
  293. package/dist/primitives/direction-provider.js.map +1 -0
  294. package/dist/primitives/drawer.js +6 -0
  295. package/dist/primitives/drawer.js.map +1 -0
  296. package/dist/primitives/field.js +6 -0
  297. package/dist/primitives/field.js.map +1 -0
  298. package/dist/primitives/fieldset.js +6 -0
  299. package/dist/primitives/fieldset.js.map +1 -0
  300. package/dist/primitives/form.js +6 -0
  301. package/dist/primitives/form.js.map +1 -0
  302. package/dist/primitives/input.js +6 -0
  303. package/dist/primitives/input.js.map +1 -0
  304. package/dist/primitives/menu.js +6 -0
  305. package/dist/primitives/menu.js.map +1 -0
  306. package/dist/primitives/menubar.js +6 -0
  307. package/dist/primitives/menubar.js.map +1 -0
  308. package/dist/primitives/meter.js +6 -0
  309. package/dist/primitives/meter.js.map +1 -0
  310. package/dist/primitives/navigation-menu.js +6 -0
  311. package/dist/primitives/navigation-menu.js.map +1 -0
  312. package/dist/primitives/number-field.js +6 -0
  313. package/dist/primitives/number-field.js.map +1 -0
  314. package/dist/primitives/otp-field.js +6 -0
  315. package/dist/primitives/otp-field.js.map +1 -0
  316. package/dist/primitives/popover.js +6 -0
  317. package/dist/primitives/popover.js.map +1 -0
  318. package/dist/primitives/preview-card.js +6 -0
  319. package/dist/primitives/preview-card.js.map +1 -0
  320. package/dist/primitives/progress.js +6 -0
  321. package/dist/primitives/progress.js.map +1 -0
  322. package/dist/primitives/radio-group.js +6 -0
  323. package/dist/primitives/radio-group.js.map +1 -0
  324. package/dist/primitives/radio.js +6 -0
  325. package/dist/primitives/radio.js.map +1 -0
  326. package/dist/primitives/scroll-area.js +6 -0
  327. package/dist/primitives/scroll-area.js.map +1 -0
  328. package/dist/primitives/select.js +6 -0
  329. package/dist/primitives/select.js.map +1 -0
  330. package/dist/primitives/separator.js +6 -0
  331. package/dist/primitives/separator.js.map +1 -0
  332. package/dist/primitives/slider.js +6 -0
  333. package/dist/primitives/slider.js.map +1 -0
  334. package/dist/primitives/switch.js +6 -0
  335. package/dist/primitives/switch.js.map +1 -0
  336. package/dist/primitives/tabs.js +6 -0
  337. package/dist/primitives/tabs.js.map +1 -0
  338. package/dist/primitives/toast.js +6 -0
  339. package/dist/primitives/toast.js.map +1 -0
  340. package/dist/primitives/toggle-group.js +6 -0
  341. package/dist/primitives/toggle-group.js.map +1 -0
  342. package/dist/primitives/toggle.js +6 -0
  343. package/dist/primitives/toggle.js.map +1 -0
  344. package/dist/primitives/toolbar.js +6 -0
  345. package/dist/primitives/toolbar.js.map +1 -0
  346. package/dist/primitives/tooltip.js +6 -0
  347. package/dist/primitives/tooltip.js.map +1 -0
  348. package/dist/primitives.js +46 -0
  349. package/dist/primitives.js.map +1 -0
  350. package/dist/registry.js +2 -0
  351. package/dist/registry.js.map +1 -0
  352. package/dist/scripts/theme-generator/config.d.ts +6 -0
  353. package/dist/scripts/theme-generator/config.d.ts.map +1 -0
  354. package/dist/scripts/theme-generator/config.js +629 -0
  355. package/dist/scripts/theme-generator/config.js.map +1 -0
  356. package/dist/scripts/theme-generator/generate-css.d.ts +31 -0
  357. package/dist/scripts/theme-generator/generate-css.d.ts.map +1 -0
  358. package/dist/scripts/theme-generator/index.d.ts +13 -0
  359. package/dist/scripts/theme-generator/index.d.ts.map +1 -0
  360. package/dist/scripts/theme-generator/migrate.d.ts +56 -0
  361. package/dist/scripts/theme-generator/migrate.d.ts.map +1 -0
  362. package/dist/scripts/theme-generator/types.d.ts +82 -0
  363. package/dist/scripts/theme-generator/types.d.ts.map +1 -0
  364. package/dist/scripts/theme-generator/types.js +2 -0
  365. package/dist/scripts/theme-generator/types.js.map +1 -0
  366. package/dist/src/blocks/delete-resource/delete-resource.d.ts +46 -0
  367. package/dist/src/blocks/delete-resource/delete-resource.d.ts.map +1 -0
  368. package/dist/src/blocks/delete-resource/index.d.ts +2 -0
  369. package/dist/src/blocks/delete-resource/index.d.ts.map +1 -0
  370. package/dist/src/blocks/page-header/index.d.ts +2 -0
  371. package/dist/src/blocks/page-header/index.d.ts.map +1 -0
  372. package/dist/src/blocks/page-header/page-header.d.ts +38 -0
  373. package/dist/src/blocks/page-header/page-header.d.ts.map +1 -0
  374. package/dist/src/blocks/resource-list/index.d.ts +2 -0
  375. package/dist/src/blocks/resource-list/index.d.ts.map +1 -0
  376. package/dist/src/blocks/resource-list/resource-list.d.ts +18 -0
  377. package/dist/src/blocks/resource-list/resource-list.d.ts.map +1 -0
  378. package/dist/src/catalog/catalog.d.ts +75 -0
  379. package/dist/src/catalog/catalog.d.ts.map +1 -0
  380. package/dist/src/catalog/data.d.ts +44 -0
  381. package/dist/src/catalog/data.d.ts.map +1 -0
  382. package/dist/src/catalog/index.d.ts +39 -0
  383. package/dist/src/catalog/index.d.ts.map +1 -0
  384. package/dist/src/catalog/types.d.ts +226 -0
  385. package/dist/src/catalog/types.d.ts.map +1 -0
  386. package/dist/src/catalog/visibility.d.ts +37 -0
  387. package/dist/src/catalog/visibility.d.ts.map +1 -0
  388. package/dist/src/code/code-highlighted.d.ts +32 -0
  389. package/dist/src/code/code-highlighted.d.ts.map +1 -0
  390. package/dist/src/code/context.d.ts +16 -0
  391. package/dist/src/code/context.d.ts.map +1 -0
  392. package/dist/src/code/index.d.ts +32 -0
  393. package/dist/src/code/index.d.ts.map +1 -0
  394. package/dist/src/code/provider.d.ts +13 -0
  395. package/dist/src/code/provider.d.ts.map +1 -0
  396. package/dist/src/code/server.d.ts +95 -0
  397. package/dist/src/code/server.d.ts.map +1 -0
  398. package/dist/src/code/types.d.ts +130 -0
  399. package/dist/src/code/types.d.ts.map +1 -0
  400. package/dist/src/code/use-shiki-highlighter.d.ts +36 -0
  401. package/dist/src/code/use-shiki-highlighter.d.ts.map +1 -0
  402. package/dist/src/command-line/build-cli.d.ts +7 -0
  403. package/dist/src/command-line/build-cli.d.ts.map +1 -0
  404. package/dist/src/command-line/cli.d.ts +13 -0
  405. package/dist/src/command-line/cli.d.ts.map +1 -0
  406. package/dist/src/command-line/commands/add.d.ts +10 -0
  407. package/dist/src/command-line/commands/add.d.ts.map +1 -0
  408. package/dist/src/command-line/commands/ai.d.ts +10 -0
  409. package/dist/src/command-line/commands/ai.d.ts.map +1 -0
  410. package/dist/src/command-line/commands/blocks.d.ts +10 -0
  411. package/dist/src/command-line/commands/blocks.d.ts.map +1 -0
  412. package/dist/src/command-line/commands/doc.d.ts +14 -0
  413. package/dist/src/command-line/commands/doc.d.ts.map +1 -0
  414. package/dist/src/command-line/commands/init.d.ts +18 -0
  415. package/dist/src/command-line/commands/init.d.ts.map +1 -0
  416. package/dist/src/command-line/commands/ls.d.ts +10 -0
  417. package/dist/src/command-line/commands/ls.d.ts.map +1 -0
  418. package/dist/src/command-line/commands/migrate.d.ts +10 -0
  419. package/dist/src/command-line/commands/migrate.d.ts.map +1 -0
  420. package/dist/src/command-line/utils/config.d.ts +42 -0
  421. package/dist/src/command-line/utils/config.d.ts.map +1 -0
  422. package/dist/src/command-line/utils/transformer.d.ts +21 -0
  423. package/dist/src/command-line/utils/transformer.d.ts.map +1 -0
  424. package/dist/src/components/autocomplete/autocomplete.d.ts +181 -0
  425. package/dist/src/components/autocomplete/autocomplete.d.ts.map +1 -0
  426. package/dist/src/components/autocomplete/index.d.ts +3 -0
  427. package/dist/src/components/autocomplete/index.d.ts.map +1 -0
  428. package/dist/src/components/badge/badge.d.ts +180 -0
  429. package/dist/src/components/badge/badge.d.ts.map +1 -0
  430. package/dist/src/components/badge/index.d.ts +2 -0
  431. package/dist/src/components/badge/index.d.ts.map +1 -0
  432. package/dist/src/components/banner/banner.d.ts +106 -0
  433. package/dist/src/components/banner/banner.d.ts.map +1 -0
  434. package/dist/src/components/banner/index.d.ts +2 -0
  435. package/dist/src/components/banner/index.d.ts.map +1 -0
  436. package/dist/src/components/breadcrumbs/breadcrumbs.d.ts +78 -0
  437. package/dist/src/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  438. package/dist/src/components/breadcrumbs/index.d.ts +2 -0
  439. package/dist/src/components/breadcrumbs/index.d.ts.map +1 -0
  440. package/dist/src/components/button/button.d.ts +214 -0
  441. package/dist/src/components/button/button.d.ts.map +1 -0
  442. package/dist/src/components/button/index.d.ts +2 -0
  443. package/dist/src/components/button/index.d.ts.map +1 -0
  444. package/dist/src/components/chart/Color.d.ts +91 -0
  445. package/dist/src/components/chart/Color.d.ts.map +1 -0
  446. package/dist/src/components/chart/EChart.d.ts +159 -0
  447. package/dist/src/components/chart/EChart.d.ts.map +1 -0
  448. package/dist/src/components/chart/Legend.d.ts +51 -0
  449. package/dist/src/components/chart/Legend.d.ts.map +1 -0
  450. package/dist/src/components/chart/SankeyChart.d.ts +98 -0
  451. package/dist/src/components/chart/SankeyChart.d.ts.map +1 -0
  452. package/dist/src/components/chart/TimeseriesChart.d.ts +181 -0
  453. package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -0
  454. package/dist/src/components/chart/index.d.ts +6 -0
  455. package/dist/src/components/chart/index.d.ts.map +1 -0
  456. package/dist/src/components/checkbox/checkbox.d.ts +197 -0
  457. package/dist/src/components/checkbox/checkbox.d.ts.map +1 -0
  458. package/dist/src/components/checkbox/index.d.ts +2 -0
  459. package/dist/src/components/checkbox/index.d.ts.map +1 -0
  460. package/dist/src/components/clipboard-text/clipboard-text.d.ts +88 -0
  461. package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -0
  462. package/dist/src/components/clipboard-text/index.d.ts +2 -0
  463. package/dist/src/components/clipboard-text/index.d.ts.map +1 -0
  464. package/dist/src/components/cloudflare-logo/cloudflare-logo.d.ts +133 -0
  465. package/dist/src/components/cloudflare-logo/cloudflare-logo.d.ts.map +1 -0
  466. package/dist/src/components/cloudflare-logo/index.d.ts +2 -0
  467. package/dist/src/components/cloudflare-logo/index.d.ts.map +1 -0
  468. package/dist/src/components/code/code.d.ts +189 -0
  469. package/dist/src/components/code/code.d.ts.map +1 -0
  470. package/dist/src/components/code/index.d.ts +4 -0
  471. package/dist/src/components/code/index.d.ts.map +1 -0
  472. package/dist/src/components/collapsible/collapsible.d.ts +109 -0
  473. package/dist/src/components/collapsible/collapsible.d.ts.map +1 -0
  474. package/dist/src/components/collapsible/index.d.ts +2 -0
  475. package/dist/src/components/collapsible/index.d.ts.map +1 -0
  476. package/dist/src/components/combobox/combobox.d.ts +246 -0
  477. package/dist/src/components/combobox/combobox.d.ts.map +1 -0
  478. package/dist/src/components/combobox/index.d.ts +3 -0
  479. package/dist/src/components/combobox/index.d.ts.map +1 -0
  480. package/dist/src/components/command-palette/command-palette.d.ts +258 -0
  481. package/dist/src/components/command-palette/command-palette.d.ts.map +1 -0
  482. package/dist/src/components/command-palette/index.d.ts +3 -0
  483. package/dist/src/components/command-palette/index.d.ts.map +1 -0
  484. package/dist/src/components/command-palette/types.d.ts +168 -0
  485. package/dist/src/components/command-palette/types.d.ts.map +1 -0
  486. package/dist/src/components/date-picker/date-picker.d.ts +65 -0
  487. package/dist/src/components/date-picker/date-picker.d.ts.map +1 -0
  488. package/dist/src/components/date-picker/index.d.ts +4 -0
  489. package/dist/src/components/date-picker/index.d.ts.map +1 -0
  490. package/dist/src/components/date-range-picker/date-range-picker.d.ts +125 -0
  491. package/dist/src/components/date-range-picker/date-range-picker.d.ts.map +1 -0
  492. package/dist/src/components/date-range-picker/index.d.ts +5 -0
  493. package/dist/src/components/date-range-picker/index.d.ts.map +1 -0
  494. package/dist/src/components/dialog/dialog.d.ts +242 -0
  495. package/dist/src/components/dialog/dialog.d.ts.map +1 -0
  496. package/dist/src/components/dialog/index.d.ts +2 -0
  497. package/dist/src/components/dialog/index.d.ts.map +1 -0
  498. package/dist/src/components/dropdown/dropdown.d.ts +116 -0
  499. package/dist/src/components/dropdown/dropdown.d.ts.map +1 -0
  500. package/dist/src/components/dropdown/index.d.ts +2 -0
  501. package/dist/src/components/dropdown/index.d.ts.map +1 -0
  502. package/dist/src/components/empty/empty.d.ts +69 -0
  503. package/dist/src/components/empty/empty.d.ts.map +1 -0
  504. package/dist/src/components/empty/index.d.ts +2 -0
  505. package/dist/src/components/empty/index.d.ts.map +1 -0
  506. package/dist/src/components/field/field.d.ts +89 -0
  507. package/dist/src/components/field/field.d.ts.map +1 -0
  508. package/dist/src/components/field/index.d.ts +2 -0
  509. package/dist/src/components/field/index.d.ts.map +1 -0
  510. package/dist/src/components/flow/connectors.d.ts +41 -0
  511. package/dist/src/components/flow/connectors.d.ts.map +1 -0
  512. package/dist/src/components/flow/diagram.d.ts +96 -0
  513. package/dist/src/components/flow/diagram.d.ts.map +1 -0
  514. package/dist/src/components/flow/index.d.ts +26 -0
  515. package/dist/src/components/flow/index.d.ts.map +1 -0
  516. package/dist/src/components/flow/node.d.ts +61 -0
  517. package/dist/src/components/flow/node.d.ts.map +1 -0
  518. package/dist/src/components/flow/parallel.d.ts +13 -0
  519. package/dist/src/components/flow/parallel.d.ts.map +1 -0
  520. package/dist/src/components/flow/use-children.d.ts +87 -0
  521. package/dist/src/components/flow/use-children.d.ts.map +1 -0
  522. package/dist/src/components/grid/grid.d.ts +135 -0
  523. package/dist/src/components/grid/grid.d.ts.map +1 -0
  524. package/dist/src/components/grid/index.d.ts +2 -0
  525. package/dist/src/components/grid/index.d.ts.map +1 -0
  526. package/dist/src/components/input/index.d.ts +19 -0
  527. package/dist/src/components/input/index.d.ts.map +1 -0
  528. package/dist/src/components/input/input-area.d.ts +65 -0
  529. package/dist/src/components/input/input-area.d.ts.map +1 -0
  530. package/dist/src/components/input/input.d.ts +175 -0
  531. package/dist/src/components/input/input.d.ts.map +1 -0
  532. package/dist/src/components/input-group/context.d.ts +96 -0
  533. package/dist/src/components/input-group/context.d.ts.map +1 -0
  534. package/dist/src/components/input-group/index.d.ts +2 -0
  535. package/dist/src/components/input-group/index.d.ts.map +1 -0
  536. package/dist/src/components/input-group/input-group-addon.d.ts +15 -0
  537. package/dist/src/components/input-group/input-group-addon.d.ts.map +1 -0
  538. package/dist/src/components/input-group/input-group-button.d.ts +36 -0
  539. package/dist/src/components/input-group/input-group-button.d.ts.map +1 -0
  540. package/dist/src/components/input-group/input-group-input.d.ts +9 -0
  541. package/dist/src/components/input-group/input-group-input.d.ts.map +1 -0
  542. package/dist/src/components/input-group/input-group-suffix.d.ts +13 -0
  543. package/dist/src/components/input-group/input-group-suffix.d.ts.map +1 -0
  544. package/dist/src/components/input-group/input-group.d.ts +43 -0
  545. package/dist/src/components/input-group/input-group.d.ts.map +1 -0
  546. package/dist/src/components/label/index.d.ts +2 -0
  547. package/dist/src/components/label/index.d.ts.map +1 -0
  548. package/dist/src/components/label/label.d.ts +67 -0
  549. package/dist/src/components/label/label.d.ts.map +1 -0
  550. package/dist/src/components/layer-card/index.d.ts +2 -0
  551. package/dist/src/components/layer-card/index.d.ts.map +1 -0
  552. package/dist/src/components/layer-card/layer-card.d.ts +60 -0
  553. package/dist/src/components/layer-card/layer-card.d.ts.map +1 -0
  554. package/dist/src/components/link/index.d.ts +2 -0
  555. package/dist/src/components/link/index.d.ts.map +1 -0
  556. package/dist/src/components/link/link.d.ts +66 -0
  557. package/dist/src/components/link/link.d.ts.map +1 -0
  558. package/dist/src/components/loader/index.d.ts +3 -0
  559. package/dist/src/components/loader/index.d.ts.map +1 -0
  560. package/dist/src/components/loader/loader.d.ts +70 -0
  561. package/dist/src/components/loader/loader.d.ts.map +1 -0
  562. package/dist/src/components/loader/skeleton-line.d.ts +11 -0
  563. package/dist/src/components/loader/skeleton-line.d.ts.map +1 -0
  564. package/dist/src/components/menubar/index.d.ts +3 -0
  565. package/dist/src/components/menubar/index.d.ts.map +1 -0
  566. package/dist/src/components/menubar/menubar.d.ts +66 -0
  567. package/dist/src/components/menubar/menubar.d.ts.map +1 -0
  568. package/dist/src/components/menubar/use-menu-navigation.d.ts +8 -0
  569. package/dist/src/components/menubar/use-menu-navigation.d.ts.map +1 -0
  570. package/dist/src/components/meter/index.d.ts +2 -0
  571. package/dist/src/components/meter/index.d.ts.map +1 -0
  572. package/dist/src/components/meter/meter.d.ts +44 -0
  573. package/dist/src/components/meter/meter.d.ts.map +1 -0
  574. package/dist/src/components/pagination/index.d.ts +2 -0
  575. package/dist/src/components/pagination/index.d.ts.map +1 -0
  576. package/dist/src/components/pagination/pagination.d.ts +241 -0
  577. package/dist/src/components/pagination/pagination.d.ts.map +1 -0
  578. package/dist/src/components/popover/index.d.ts +3 -0
  579. package/dist/src/components/popover/index.d.ts.map +1 -0
  580. package/dist/src/components/popover/popover.d.ts +178 -0
  581. package/dist/src/components/popover/popover.d.ts.map +1 -0
  582. package/dist/src/components/radio/index.d.ts +2 -0
  583. package/dist/src/components/radio/index.d.ts.map +1 -0
  584. package/dist/src/components/radio/radio.d.ts +277 -0
  585. package/dist/src/components/radio/radio.d.ts.map +1 -0
  586. package/dist/src/components/radio/radio.type-spec.d.ts +12 -0
  587. package/dist/src/components/radio/radio.type-spec.d.ts.map +1 -0
  588. package/dist/src/components/select/index.d.ts +2 -0
  589. package/dist/src/components/select/index.d.ts.map +1 -0
  590. package/dist/src/components/select/select.d.ts +288 -0
  591. package/dist/src/components/select/select.d.ts.map +1 -0
  592. package/dist/src/components/sensitive-input/index.d.ts +2 -0
  593. package/dist/src/components/sensitive-input/index.d.ts.map +1 -0
  594. package/dist/src/components/sensitive-input/sensitive-input.d.ts +94 -0
  595. package/dist/src/components/sensitive-input/sensitive-input.d.ts.map +1 -0
  596. package/dist/src/components/sidebar/index.d.ts +2 -0
  597. package/dist/src/components/sidebar/index.d.ts.map +1 -0
  598. package/dist/src/components/sidebar/sidebar.d.ts +581 -0
  599. package/dist/src/components/sidebar/sidebar.d.ts.map +1 -0
  600. package/dist/src/components/surface/index.d.ts +5 -0
  601. package/dist/src/components/surface/index.d.ts.map +1 -0
  602. package/dist/src/components/surface/surface.d.ts +64 -0
  603. package/dist/src/components/surface/surface.d.ts.map +1 -0
  604. package/dist/src/components/switch/index.d.ts +2 -0
  605. package/dist/src/components/switch/index.d.ts.map +1 -0
  606. package/dist/src/components/switch/switch.d.ts +197 -0
  607. package/dist/src/components/switch/switch.d.ts.map +1 -0
  608. package/dist/src/components/table/index.d.ts +2 -0
  609. package/dist/src/components/table/index.d.ts.map +1 -0
  610. package/dist/src/components/table/table.d.ts +138 -0
  611. package/dist/src/components/table/table.d.ts.map +1 -0
  612. package/dist/src/components/table-of-contents/index.d.ts +2 -0
  613. package/dist/src/components/table-of-contents/index.d.ts.map +1 -0
  614. package/dist/src/components/table-of-contents/table-of-contents.d.ts +72 -0
  615. package/dist/src/components/table-of-contents/table-of-contents.d.ts.map +1 -0
  616. package/dist/src/components/tabs/index.d.ts +3 -0
  617. package/dist/src/components/tabs/index.d.ts.map +1 -0
  618. package/dist/src/components/tabs/tabs.d.ts +116 -0
  619. package/dist/src/components/tabs/tabs.d.ts.map +1 -0
  620. package/dist/src/components/text/index.d.ts +2 -0
  621. package/dist/src/components/text/index.d.ts.map +1 -0
  622. package/dist/src/components/text/text.d.ts +214 -0
  623. package/dist/src/components/text/text.d.ts.map +1 -0
  624. package/dist/src/components/text/text.type-spec.d.ts +44 -0
  625. package/dist/src/components/text/text.type-spec.d.ts.map +1 -0
  626. package/dist/src/components/toast/index.d.ts +5 -0
  627. package/dist/src/components/toast/index.d.ts.map +1 -0
  628. package/dist/src/components/toast/toast.d.ts +197 -0
  629. package/dist/src/components/toast/toast.d.ts.map +1 -0
  630. package/dist/src/components/tooltip/index.d.ts +2 -0
  631. package/dist/src/components/tooltip/index.d.ts.map +1 -0
  632. package/dist/src/components/tooltip/tooltip.d.ts +108 -0
  633. package/dist/src/components/tooltip/tooltip.d.ts.map +1 -0
  634. package/dist/src/index.d.ts +84 -0
  635. package/dist/src/index.d.ts.map +1 -0
  636. package/dist/src/primitives/accordion.d.ts +13 -0
  637. package/dist/src/primitives/accordion.d.ts.map +1 -0
  638. package/dist/src/primitives/alert-dialog.d.ts +13 -0
  639. package/dist/src/primitives/alert-dialog.d.ts.map +1 -0
  640. package/dist/src/primitives/autocomplete.d.ts +13 -0
  641. package/dist/src/primitives/autocomplete.d.ts.map +1 -0
  642. package/dist/src/primitives/avatar.d.ts +13 -0
  643. package/dist/src/primitives/avatar.d.ts.map +1 -0
  644. package/dist/src/primitives/button.d.ts +13 -0
  645. package/dist/src/primitives/button.d.ts.map +1 -0
  646. package/dist/src/primitives/checkbox-group.d.ts +13 -0
  647. package/dist/src/primitives/checkbox-group.d.ts.map +1 -0
  648. package/dist/src/primitives/checkbox.d.ts +13 -0
  649. package/dist/src/primitives/checkbox.d.ts.map +1 -0
  650. package/dist/src/primitives/collapsible.d.ts +13 -0
  651. package/dist/src/primitives/collapsible.d.ts.map +1 -0
  652. package/dist/src/primitives/combobox.d.ts +13 -0
  653. package/dist/src/primitives/combobox.d.ts.map +1 -0
  654. package/dist/src/primitives/context-menu.d.ts +13 -0
  655. package/dist/src/primitives/context-menu.d.ts.map +1 -0
  656. package/dist/src/primitives/csp-provider.d.ts +13 -0
  657. package/dist/src/primitives/csp-provider.d.ts.map +1 -0
  658. package/dist/src/primitives/dialog.d.ts +13 -0
  659. package/dist/src/primitives/dialog.d.ts.map +1 -0
  660. package/dist/src/primitives/direction-provider.d.ts +13 -0
  661. package/dist/src/primitives/direction-provider.d.ts.map +1 -0
  662. package/dist/src/primitives/drawer.d.ts +13 -0
  663. package/dist/src/primitives/drawer.d.ts.map +1 -0
  664. package/dist/src/primitives/field.d.ts +13 -0
  665. package/dist/src/primitives/field.d.ts.map +1 -0
  666. package/dist/src/primitives/fieldset.d.ts +13 -0
  667. package/dist/src/primitives/fieldset.d.ts.map +1 -0
  668. package/dist/src/primitives/form.d.ts +13 -0
  669. package/dist/src/primitives/form.d.ts.map +1 -0
  670. package/dist/src/primitives/index.d.ts +55 -0
  671. package/dist/src/primitives/index.d.ts.map +1 -0
  672. package/dist/src/primitives/input.d.ts +13 -0
  673. package/dist/src/primitives/input.d.ts.map +1 -0
  674. package/dist/src/primitives/menu.d.ts +13 -0
  675. package/dist/src/primitives/menu.d.ts.map +1 -0
  676. package/dist/src/primitives/menubar.d.ts +13 -0
  677. package/dist/src/primitives/menubar.d.ts.map +1 -0
  678. package/dist/src/primitives/meter.d.ts +13 -0
  679. package/dist/src/primitives/meter.d.ts.map +1 -0
  680. package/dist/src/primitives/navigation-menu.d.ts +13 -0
  681. package/dist/src/primitives/navigation-menu.d.ts.map +1 -0
  682. package/dist/src/primitives/number-field.d.ts +13 -0
  683. package/dist/src/primitives/number-field.d.ts.map +1 -0
  684. package/dist/src/primitives/otp-field.d.ts +13 -0
  685. package/dist/src/primitives/otp-field.d.ts.map +1 -0
  686. package/dist/src/primitives/popover.d.ts +13 -0
  687. package/dist/src/primitives/popover.d.ts.map +1 -0
  688. package/dist/src/primitives/preview-card.d.ts +13 -0
  689. package/dist/src/primitives/preview-card.d.ts.map +1 -0
  690. package/dist/src/primitives/progress.d.ts +13 -0
  691. package/dist/src/primitives/progress.d.ts.map +1 -0
  692. package/dist/src/primitives/radio-group.d.ts +13 -0
  693. package/dist/src/primitives/radio-group.d.ts.map +1 -0
  694. package/dist/src/primitives/radio.d.ts +13 -0
  695. package/dist/src/primitives/radio.d.ts.map +1 -0
  696. package/dist/src/primitives/scroll-area.d.ts +13 -0
  697. package/dist/src/primitives/scroll-area.d.ts.map +1 -0
  698. package/dist/src/primitives/select.d.ts +13 -0
  699. package/dist/src/primitives/select.d.ts.map +1 -0
  700. package/dist/src/primitives/separator.d.ts +13 -0
  701. package/dist/src/primitives/separator.d.ts.map +1 -0
  702. package/dist/src/primitives/slider.d.ts +13 -0
  703. package/dist/src/primitives/slider.d.ts.map +1 -0
  704. package/dist/src/primitives/switch.d.ts +13 -0
  705. package/dist/src/primitives/switch.d.ts.map +1 -0
  706. package/dist/src/primitives/tabs.d.ts +13 -0
  707. package/dist/src/primitives/tabs.d.ts.map +1 -0
  708. package/dist/src/primitives/toast.d.ts +13 -0
  709. package/dist/src/primitives/toast.d.ts.map +1 -0
  710. package/dist/src/primitives/toggle-group.d.ts +13 -0
  711. package/dist/src/primitives/toggle-group.d.ts.map +1 -0
  712. package/dist/src/primitives/toggle.d.ts +13 -0
  713. package/dist/src/primitives/toggle.d.ts.map +1 -0
  714. package/dist/src/primitives/toolbar.d.ts +13 -0
  715. package/dist/src/primitives/toolbar.d.ts.map +1 -0
  716. package/dist/src/primitives/tooltip.d.ts +13 -0
  717. package/dist/src/primitives/tooltip.d.ts.map +1 -0
  718. package/dist/src/registry/index.d.ts +8 -0
  719. package/dist/src/registry/index.d.ts.map +1 -0
  720. package/dist/src/registry/types.d.ts +191 -0
  721. package/dist/src/registry/types.d.ts.map +1 -0
  722. package/dist/src/utils/cn.d.ts +4 -0
  723. package/dist/src/utils/cn.d.ts.map +1 -0
  724. package/dist/src/utils/index.d.ts +4 -0
  725. package/dist/src/utils/index.d.ts.map +1 -0
  726. package/dist/src/utils/link-provider.d.ts +66 -0
  727. package/dist/src/utils/link-provider.d.ts.map +1 -0
  728. package/dist/src/utils/portal-provider.d.ts +56 -0
  729. package/dist/src/utils/portal-provider.d.ts.map +1 -0
  730. package/dist/src/utils/prop-examples.d.ts +36 -0
  731. package/dist/src/utils/prop-examples.d.ts.map +1 -0
  732. package/dist/src/utils/resolve-variant.d.ts +27 -0
  733. package/dist/src/utils/resolve-variant.d.ts.map +1 -0
  734. package/dist/styles/reki-binding.css +303 -0
  735. package/dist/styles/reki-standalone.css +2 -0
  736. package/dist/styles/reki.css +700 -0
  737. package/dist/styles/theme-fedramp.css +39 -0
  738. package/dist/styles/theme-reki.css +412 -0
  739. package/dist/utils.js +12 -0
  740. package/dist/utils.js.map +1 -0
  741. package/package.json +511 -0
  742. package/scripts/component-registry/cache.ts +123 -0
  743. package/scripts/component-registry/discovery.ts +469 -0
  744. package/scripts/component-registry/example-cleanup.ts +168 -0
  745. package/scripts/component-registry/index.test.ts +987 -0
  746. package/scripts/component-registry/index.ts +970 -0
  747. package/scripts/component-registry/markdown-generator.ts +222 -0
  748. package/scripts/component-registry/metadata.ts +956 -0
  749. package/scripts/component-registry/props-filter.ts +310 -0
  750. package/scripts/component-registry/schema-generator.ts +331 -0
  751. package/scripts/component-registry/sub-components.ts +380 -0
  752. package/scripts/component-registry/types.ts +158 -0
  753. package/scripts/component-registry/utils.ts +280 -0
  754. package/scripts/component-registry/variant-parser.ts +261 -0
  755. package/scripts/css-build.ts +105 -0
  756. package/scripts/generate-primitives.ts +183 -0
  757. package/scripts/theme-generator/config.ts +653 -0
  758. package/scripts/theme-generator/generate-css.test.ts +30 -0
  759. package/scripts/theme-generator/generate-css.ts +351 -0
  760. package/scripts/theme-generator/index.ts +159 -0
  761. package/scripts/theme-generator/migrate.ts +560 -0
  762. package/scripts/theme-generator/types.ts +92 -0
@@ -0,0 +1,3985 @@
1
+ "use client";
2
+ function d(e, o, t) {
3
+ function n(l, u) {
4
+ if (l._zod || Object.defineProperty(l, "_zod", {
5
+ value: {
6
+ def: u,
7
+ constr: i,
8
+ traits: /* @__PURE__ */ new Set()
9
+ },
10
+ enumerable: !1
11
+ }), l._zod.traits.has(e))
12
+ return;
13
+ l._zod.traits.add(e), o(l, u);
14
+ const p = i.prototype, h = Object.keys(p);
15
+ for (let _ = 0; _ < h.length; _++) {
16
+ const w = h[_];
17
+ w in l || (l[w] = p[w].bind(l));
18
+ }
19
+ }
20
+ const r = t?.Parent ?? Object;
21
+ class a extends r {
22
+ }
23
+ Object.defineProperty(a, "name", { value: e });
24
+ function i(l) {
25
+ var u;
26
+ const p = t?.Parent ? new a() : this;
27
+ n(p, l), (u = p._zod).deferred ?? (u.deferred = []);
28
+ for (const h of p._zod.deferred)
29
+ h();
30
+ return p;
31
+ }
32
+ return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
33
+ value: (l) => t?.Parent && l instanceof t.Parent ? !0 : l?._zod?.traits?.has(e)
34
+ }), Object.defineProperty(i, "name", { value: e }), i;
35
+ }
36
+ class q extends Error {
37
+ constructor() {
38
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
39
+ }
40
+ }
41
+ class Ge extends Error {
42
+ constructor(o) {
43
+ super(`Encountered unidirectional transform during encode: ${o}`), this.name = "ZodEncodeError";
44
+ }
45
+ }
46
+ const qe = {};
47
+ function F(e) {
48
+ return qe;
49
+ }
50
+ function Ke(e) {
51
+ const o = Object.values(e).filter((n) => typeof n == "number");
52
+ return Object.entries(e).filter(([n, r]) => o.indexOf(+n) === -1).map(([n, r]) => r);
53
+ }
54
+ function ge(e, o) {
55
+ return typeof o == "bigint" ? o.toString() : o;
56
+ }
57
+ function be(e) {
58
+ return {
59
+ get value() {
60
+ {
61
+ const o = e();
62
+ return Object.defineProperty(this, "value", { value: o }), o;
63
+ }
64
+ }
65
+ };
66
+ }
67
+ function ye(e) {
68
+ return e == null;
69
+ }
70
+ function ze(e) {
71
+ const o = e.startsWith("^") ? 1 : 0, t = e.endsWith("$") ? e.length - 1 : e.length;
72
+ return e.slice(o, t);
73
+ }
74
+ function To(e, o) {
75
+ const t = (e.toString().split(".")[1] || "").length, n = o.toString();
76
+ let r = (n.split(".")[1] || "").length;
77
+ if (r === 0 && /\d?e-\d?/.test(n)) {
78
+ const u = n.match(/\d?e-(\d?)/);
79
+ u?.[1] && (r = Number.parseInt(u[1]));
80
+ }
81
+ const a = t > r ? t : r, i = Number.parseInt(e.toFixed(a).replace(".", "")), l = Number.parseInt(o.toFixed(a).replace(".", ""));
82
+ return i % l / 10 ** a;
83
+ }
84
+ const Ze = Symbol("evaluating");
85
+ function $(e, o, t) {
86
+ let n;
87
+ Object.defineProperty(e, o, {
88
+ get() {
89
+ if (n !== Ze)
90
+ return n === void 0 && (n = Ze, n = t()), n;
91
+ },
92
+ set(r) {
93
+ Object.defineProperty(e, o, {
94
+ value: r
95
+ // configurable: true,
96
+ });
97
+ },
98
+ configurable: !0
99
+ });
100
+ }
101
+ function B(e, o, t) {
102
+ Object.defineProperty(e, o, {
103
+ value: t,
104
+ writable: !0,
105
+ enumerable: !0,
106
+ configurable: !0
107
+ });
108
+ }
109
+ function M(...e) {
110
+ const o = {};
111
+ for (const t of e) {
112
+ const n = Object.getOwnPropertyDescriptors(t);
113
+ Object.assign(o, n);
114
+ }
115
+ return Object.defineProperties({}, o);
116
+ }
117
+ function Pe(e) {
118
+ return JSON.stringify(e);
119
+ }
120
+ function Oo(e) {
121
+ return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
122
+ }
123
+ const Xe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
124
+ };
125
+ function ae(e) {
126
+ return typeof e == "object" && e !== null && !Array.isArray(e);
127
+ }
128
+ const Io = be(() => {
129
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
130
+ return !1;
131
+ try {
132
+ const e = Function;
133
+ return new e(""), !0;
134
+ } catch {
135
+ return !1;
136
+ }
137
+ });
138
+ function K(e) {
139
+ if (ae(e) === !1)
140
+ return !1;
141
+ const o = e.constructor;
142
+ if (o === void 0 || typeof o != "function")
143
+ return !0;
144
+ const t = o.prototype;
145
+ return !(ae(t) === !1 || Object.prototype.hasOwnProperty.call(t, "isPrototypeOf") === !1);
146
+ }
147
+ function Ye(e) {
148
+ return K(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
149
+ }
150
+ const No = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
151
+ function ue(e) {
152
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
153
+ }
154
+ function J(e, o, t) {
155
+ const n = new e._zod.constr(o ?? e._zod.def);
156
+ return (!o || t?.parent) && (n._zod.parent = e), n;
157
+ }
158
+ function k(e) {
159
+ const o = e;
160
+ if (!o)
161
+ return {};
162
+ if (typeof o == "string")
163
+ return { error: () => o };
164
+ if (o?.message !== void 0) {
165
+ if (o?.error !== void 0)
166
+ throw new Error("Cannot specify both `message` and `error` params");
167
+ o.error = o.message;
168
+ }
169
+ return delete o.message, typeof o.error == "string" ? { ...o, error: () => o.error } : o;
170
+ }
171
+ function Eo(e) {
172
+ return Object.keys(e).filter((o) => e[o]._zod.optin === "optional" && e[o]._zod.optout === "optional");
173
+ }
174
+ const Co = {
175
+ safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
176
+ int32: [-2147483648, 2147483647],
177
+ uint32: [0, 4294967295],
178
+ float32: [-34028234663852886e22, 34028234663852886e22],
179
+ float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
180
+ };
181
+ function Ao(e, o) {
182
+ const t = e._zod.def, n = t.checks;
183
+ if (n && n.length > 0)
184
+ throw new Error(".pick() cannot be used on object schemas containing refinements");
185
+ const a = M(e._zod.def, {
186
+ get shape() {
187
+ const i = {};
188
+ for (const l in o) {
189
+ if (!(l in t.shape))
190
+ throw new Error(`Unrecognized key: "${l}"`);
191
+ o[l] && (i[l] = t.shape[l]);
192
+ }
193
+ return B(this, "shape", i), i;
194
+ },
195
+ checks: []
196
+ });
197
+ return J(e, a);
198
+ }
199
+ function xo(e, o) {
200
+ const t = e._zod.def, n = t.checks;
201
+ if (n && n.length > 0)
202
+ throw new Error(".omit() cannot be used on object schemas containing refinements");
203
+ const a = M(e._zod.def, {
204
+ get shape() {
205
+ const i = { ...e._zod.def.shape };
206
+ for (const l in o) {
207
+ if (!(l in t.shape))
208
+ throw new Error(`Unrecognized key: "${l}"`);
209
+ o[l] && delete i[l];
210
+ }
211
+ return B(this, "shape", i), i;
212
+ },
213
+ checks: []
214
+ });
215
+ return J(e, a);
216
+ }
217
+ function jo(e, o) {
218
+ if (!K(o))
219
+ throw new Error("Invalid input to extend: expected a plain object");
220
+ const t = e._zod.def.checks;
221
+ if (t && t.length > 0) {
222
+ const a = e._zod.def.shape;
223
+ for (const i in o)
224
+ if (Object.getOwnPropertyDescriptor(a, i) !== void 0)
225
+ throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
226
+ }
227
+ const r = M(e._zod.def, {
228
+ get shape() {
229
+ const a = { ...e._zod.def.shape, ...o };
230
+ return B(this, "shape", a), a;
231
+ }
232
+ });
233
+ return J(e, r);
234
+ }
235
+ function Ro(e, o) {
236
+ if (!K(o))
237
+ throw new Error("Invalid input to safeExtend: expected a plain object");
238
+ const t = M(e._zod.def, {
239
+ get shape() {
240
+ const n = { ...e._zod.def.shape, ...o };
241
+ return B(this, "shape", n), n;
242
+ }
243
+ });
244
+ return J(e, t);
245
+ }
246
+ function Do(e, o) {
247
+ const t = M(e._zod.def, {
248
+ get shape() {
249
+ const n = { ...e._zod.def.shape, ...o._zod.def.shape };
250
+ return B(this, "shape", n), n;
251
+ },
252
+ get catchall() {
253
+ return o._zod.def.catchall;
254
+ },
255
+ checks: []
256
+ // delete existing checks
257
+ });
258
+ return J(e, t);
259
+ }
260
+ function Uo(e, o, t) {
261
+ const r = o._zod.def.checks;
262
+ if (r && r.length > 0)
263
+ throw new Error(".partial() cannot be used on object schemas containing refinements");
264
+ const i = M(o._zod.def, {
265
+ get shape() {
266
+ const l = o._zod.def.shape, u = { ...l };
267
+ if (t)
268
+ for (const p in t) {
269
+ if (!(p in l))
270
+ throw new Error(`Unrecognized key: "${p}"`);
271
+ t[p] && (u[p] = e ? new e({
272
+ type: "optional",
273
+ innerType: l[p]
274
+ }) : l[p]);
275
+ }
276
+ else
277
+ for (const p in l)
278
+ u[p] = e ? new e({
279
+ type: "optional",
280
+ innerType: l[p]
281
+ }) : l[p];
282
+ return B(this, "shape", u), u;
283
+ },
284
+ checks: []
285
+ });
286
+ return J(o, i);
287
+ }
288
+ function Fo(e, o, t) {
289
+ const n = M(o._zod.def, {
290
+ get shape() {
291
+ const r = o._zod.def.shape, a = { ...r };
292
+ if (t)
293
+ for (const i in t) {
294
+ if (!(i in a))
295
+ throw new Error(`Unrecognized key: "${i}"`);
296
+ t[i] && (a[i] = new e({
297
+ type: "nonoptional",
298
+ innerType: r[i]
299
+ }));
300
+ }
301
+ else
302
+ for (const i in r)
303
+ a[i] = new e({
304
+ type: "nonoptional",
305
+ innerType: r[i]
306
+ });
307
+ return B(this, "shape", a), a;
308
+ }
309
+ });
310
+ return J(o, n);
311
+ }
312
+ function G(e, o = 0) {
313
+ if (e.aborted === !0)
314
+ return !0;
315
+ for (let t = o; t < e.issues.length; t++)
316
+ if (e.issues[t]?.continue !== !0)
317
+ return !0;
318
+ return !1;
319
+ }
320
+ function V(e, o) {
321
+ return o.map((t) => {
322
+ var n;
323
+ return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
324
+ });
325
+ }
326
+ function oe(e) {
327
+ return typeof e == "string" ? e : e?.message;
328
+ }
329
+ function L(e, o, t) {
330
+ const n = { ...e, path: e.path ?? [] };
331
+ if (!e.message) {
332
+ const r = oe(e.inst?._zod.def?.error?.(e)) ?? oe(o?.error?.(e)) ?? oe(t.customError?.(e)) ?? oe(t.localeError?.(e)) ?? "Invalid input";
333
+ n.message = r;
334
+ }
335
+ return delete n.inst, delete n.continue, o?.reportInput || delete n.input, n;
336
+ }
337
+ function ke(e) {
338
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
339
+ }
340
+ function Q(...e) {
341
+ const [o, t, n] = e;
342
+ return typeof o == "string" ? {
343
+ message: o,
344
+ code: "custom",
345
+ input: t,
346
+ inst: n
347
+ } : { ...o };
348
+ }
349
+ const He = (e, o) => {
350
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
351
+ value: e._zod,
352
+ enumerable: !1
353
+ }), Object.defineProperty(e, "issues", {
354
+ value: o,
355
+ enumerable: !1
356
+ }), e.message = JSON.stringify(o, ge, 2), Object.defineProperty(e, "toString", {
357
+ value: () => e.message,
358
+ enumerable: !1
359
+ });
360
+ }, Qe = d("$ZodError", He), eo = d("$ZodError", He, { Parent: Error });
361
+ function Lo(e, o = (t) => t.message) {
362
+ const t = {}, n = [];
363
+ for (const r of e.issues)
364
+ r.path.length > 0 ? (t[r.path[0]] = t[r.path[0]] || [], t[r.path[0]].push(o(r))) : n.push(o(r));
365
+ return { formErrors: n, fieldErrors: t };
366
+ }
367
+ function Mo(e, o = (t) => t.message) {
368
+ const t = { _errors: [] }, n = (r) => {
369
+ for (const a of r.issues)
370
+ if (a.code === "invalid_union" && a.errors.length)
371
+ a.errors.map((i) => n({ issues: i }));
372
+ else if (a.code === "invalid_key")
373
+ n({ issues: a.issues });
374
+ else if (a.code === "invalid_element")
375
+ n({ issues: a.issues });
376
+ else if (a.path.length === 0)
377
+ t._errors.push(o(a));
378
+ else {
379
+ let i = t, l = 0;
380
+ for (; l < a.path.length; ) {
381
+ const u = a.path[l];
382
+ l === a.path.length - 1 ? (i[u] = i[u] || { _errors: [] }, i[u]._errors.push(o(a))) : i[u] = i[u] || { _errors: [] }, i = i[u], l++;
383
+ }
384
+ }
385
+ };
386
+ return n(e), t;
387
+ }
388
+ const we = (e) => (o, t, n, r) => {
389
+ const a = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = o._zod.run({ value: t, issues: [] }, a);
390
+ if (i instanceof Promise)
391
+ throw new q();
392
+ if (i.issues.length) {
393
+ const l = new (r?.Err ?? e)(i.issues.map((u) => L(u, a, F())));
394
+ throw Xe(l, r?.callee), l;
395
+ }
396
+ return i.value;
397
+ }, Se = (e) => async (o, t, n, r) => {
398
+ const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
399
+ let i = o._zod.run({ value: t, issues: [] }, a);
400
+ if (i instanceof Promise && (i = await i), i.issues.length) {
401
+ const l = new (r?.Err ?? e)(i.issues.map((u) => L(u, a, F())));
402
+ throw Xe(l, r?.callee), l;
403
+ }
404
+ return i.value;
405
+ }, pe = (e) => (o, t, n) => {
406
+ const r = n ? { ...n, async: !1 } : { async: !1 }, a = o._zod.run({ value: t, issues: [] }, r);
407
+ if (a instanceof Promise)
408
+ throw new q();
409
+ return a.issues.length ? {
410
+ success: !1,
411
+ error: new (e ?? Qe)(a.issues.map((i) => L(i, r, F())))
412
+ } : { success: !0, data: a.value };
413
+ }, Jo = /* @__PURE__ */ pe(eo), de = (e) => async (o, t, n) => {
414
+ const r = n ? Object.assign(n, { async: !0 }) : { async: !0 };
415
+ let a = o._zod.run({ value: t, issues: [] }, r);
416
+ return a instanceof Promise && (a = await a), a.issues.length ? {
417
+ success: !1,
418
+ error: new e(a.issues.map((i) => L(i, r, F())))
419
+ } : { success: !0, data: a.value };
420
+ }, Vo = /* @__PURE__ */ de(eo), Bo = (e) => (o, t, n) => {
421
+ const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
422
+ return we(e)(o, t, r);
423
+ }, Wo = (e) => (o, t, n) => we(e)(o, t, n), Go = (e) => async (o, t, n) => {
424
+ const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
425
+ return Se(e)(o, t, r);
426
+ }, qo = (e) => async (o, t, n) => Se(e)(o, t, n), Ko = (e) => (o, t, n) => {
427
+ const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
428
+ return pe(e)(o, t, r);
429
+ }, Xo = (e) => (o, t, n) => pe(e)(o, t, n), Yo = (e) => async (o, t, n) => {
430
+ const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
431
+ return de(e)(o, t, r);
432
+ }, Ho = (e) => async (o, t, n) => de(e)(o, t, n), Qo = /^[cC][^\s-]{8,}$/, et = /^[0-9a-z]+$/, ot = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, tt = /^[0-9a-vA-V]{20}$/, nt = /^[A-Za-z0-9]{27}$/, rt = /^[a-zA-Z0-9_-]{21}$/, it = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, at = /^([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})$/, Te = (e) => e ? new 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)$/, st = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, ct = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
433
+ function lt() {
434
+ return new RegExp(ct, "u");
435
+ }
436
+ const ut = /^(?:(?: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])$/, pt = /^(([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}|:))$/, dt = /^((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})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, ht = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, oo = /^[A-Za-z0-9_-]*$/, mt = /^\+[1-9]\d{6,14}$/, to = "(?:(?:\\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])))", gt = /* @__PURE__ */ new RegExp(`^${to}$`);
437
+ function no(e) {
438
+ const o = "(?:[01]\\d|2[0-3]):[0-5]\\d";
439
+ return typeof e.precision == "number" ? e.precision === -1 ? `${o}` : e.precision === 0 ? `${o}:[0-5]\\d` : `${o}:[0-5]\\d\\.\\d{${e.precision}}` : `${o}(?::[0-5]\\d(?:\\.\\d+)?)?`;
440
+ }
441
+ function _t(e) {
442
+ return new RegExp(`^${no(e)}$`);
443
+ }
444
+ function vt(e) {
445
+ const o = no({ precision: e.precision }), t = ["Z"];
446
+ e.local && t.push(""), e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
447
+ const n = `${o}(?:${t.join("|")})`;
448
+ return new RegExp(`^${to}T(?:${n})$`);
449
+ }
450
+ const bt = (e) => {
451
+ const o = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
452
+ return new RegExp(`^${o}$`);
453
+ }, yt = /^-?\d+$/, ro = /^-?\d+(?:\.\d+)?$/, zt = /^(?:true|false)$/i, kt = /^null$/i, wt = /^[^A-Z]*$/, St = /^[^a-z]*$/, x = /* @__PURE__ */ d("$ZodCheck", (e, o) => {
454
+ var t;
455
+ e._zod ?? (e._zod = {}), e._zod.def = o, (t = e._zod).onattach ?? (t.onattach = []);
456
+ }), io = {
457
+ number: "number",
458
+ bigint: "bigint",
459
+ object: "date"
460
+ }, ao = /* @__PURE__ */ d("$ZodCheckLessThan", (e, o) => {
461
+ x.init(e, o);
462
+ const t = io[typeof o.value];
463
+ e._zod.onattach.push((n) => {
464
+ const r = n._zod.bag, a = (o.inclusive ? r.maximum : r.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
465
+ o.value < a && (o.inclusive ? r.maximum = o.value : r.exclusiveMaximum = o.value);
466
+ }), e._zod.check = (n) => {
467
+ (o.inclusive ? n.value <= o.value : n.value < o.value) || n.issues.push({
468
+ origin: t,
469
+ code: "too_big",
470
+ maximum: typeof o.value == "object" ? o.value.getTime() : o.value,
471
+ input: n.value,
472
+ inclusive: o.inclusive,
473
+ inst: e,
474
+ continue: !o.abort
475
+ });
476
+ };
477
+ }), so = /* @__PURE__ */ d("$ZodCheckGreaterThan", (e, o) => {
478
+ x.init(e, o);
479
+ const t = io[typeof o.value];
480
+ e._zod.onattach.push((n) => {
481
+ const r = n._zod.bag, a = (o.inclusive ? r.minimum : r.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
482
+ o.value > a && (o.inclusive ? r.minimum = o.value : r.exclusiveMinimum = o.value);
483
+ }), e._zod.check = (n) => {
484
+ (o.inclusive ? n.value >= o.value : n.value > o.value) || n.issues.push({
485
+ origin: t,
486
+ code: "too_small",
487
+ minimum: typeof o.value == "object" ? o.value.getTime() : o.value,
488
+ input: n.value,
489
+ inclusive: o.inclusive,
490
+ inst: e,
491
+ continue: !o.abort
492
+ });
493
+ };
494
+ }), $t = /* @__PURE__ */ d("$ZodCheckMultipleOf", (e, o) => {
495
+ x.init(e, o), e._zod.onattach.push((t) => {
496
+ var n;
497
+ (n = t._zod.bag).multipleOf ?? (n.multipleOf = o.value);
498
+ }), e._zod.check = (t) => {
499
+ if (typeof t.value != typeof o.value)
500
+ throw new Error("Cannot mix number and bigint in multiple_of check.");
501
+ (typeof t.value == "bigint" ? t.value % o.value === BigInt(0) : To(t.value, o.value) === 0) || t.issues.push({
502
+ origin: typeof t.value,
503
+ code: "not_multiple_of",
504
+ divisor: o.value,
505
+ input: t.value,
506
+ inst: e,
507
+ continue: !o.abort
508
+ });
509
+ };
510
+ }), Zt = /* @__PURE__ */ d("$ZodCheckNumberFormat", (e, o) => {
511
+ x.init(e, o), o.format = o.format || "float64";
512
+ const t = o.format?.includes("int"), n = t ? "int" : "number", [r, a] = Co[o.format];
513
+ e._zod.onattach.push((i) => {
514
+ const l = i._zod.bag;
515
+ l.format = o.format, l.minimum = r, l.maximum = a, t && (l.pattern = yt);
516
+ }), e._zod.check = (i) => {
517
+ const l = i.value;
518
+ if (t) {
519
+ if (!Number.isInteger(l)) {
520
+ i.issues.push({
521
+ expected: n,
522
+ format: o.format,
523
+ code: "invalid_type",
524
+ continue: !1,
525
+ input: l,
526
+ inst: e
527
+ });
528
+ return;
529
+ }
530
+ if (!Number.isSafeInteger(l)) {
531
+ l > 0 ? i.issues.push({
532
+ input: l,
533
+ code: "too_big",
534
+ maximum: Number.MAX_SAFE_INTEGER,
535
+ note: "Integers must be within the safe integer range.",
536
+ inst: e,
537
+ origin: n,
538
+ inclusive: !0,
539
+ continue: !o.abort
540
+ }) : i.issues.push({
541
+ input: l,
542
+ code: "too_small",
543
+ minimum: Number.MIN_SAFE_INTEGER,
544
+ note: "Integers must be within the safe integer range.",
545
+ inst: e,
546
+ origin: n,
547
+ inclusive: !0,
548
+ continue: !o.abort
549
+ });
550
+ return;
551
+ }
552
+ }
553
+ l < r && i.issues.push({
554
+ origin: "number",
555
+ input: l,
556
+ code: "too_small",
557
+ minimum: r,
558
+ inclusive: !0,
559
+ inst: e,
560
+ continue: !o.abort
561
+ }), l > a && i.issues.push({
562
+ origin: "number",
563
+ input: l,
564
+ code: "too_big",
565
+ maximum: a,
566
+ inclusive: !0,
567
+ inst: e,
568
+ continue: !o.abort
569
+ });
570
+ };
571
+ }), Pt = /* @__PURE__ */ d("$ZodCheckMaxLength", (e, o) => {
572
+ var t;
573
+ x.init(e, o), (t = e._zod.def).when ?? (t.when = (n) => {
574
+ const r = n.value;
575
+ return !ye(r) && r.length !== void 0;
576
+ }), e._zod.onattach.push((n) => {
577
+ const r = n._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
578
+ o.maximum < r && (n._zod.bag.maximum = o.maximum);
579
+ }), e._zod.check = (n) => {
580
+ const r = n.value;
581
+ if (r.length <= o.maximum)
582
+ return;
583
+ const i = ke(r);
584
+ n.issues.push({
585
+ origin: i,
586
+ code: "too_big",
587
+ maximum: o.maximum,
588
+ inclusive: !0,
589
+ input: r,
590
+ inst: e,
591
+ continue: !o.abort
592
+ });
593
+ };
594
+ }), Tt = /* @__PURE__ */ d("$ZodCheckMinLength", (e, o) => {
595
+ var t;
596
+ x.init(e, o), (t = e._zod.def).when ?? (t.when = (n) => {
597
+ const r = n.value;
598
+ return !ye(r) && r.length !== void 0;
599
+ }), e._zod.onattach.push((n) => {
600
+ const r = n._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
601
+ o.minimum > r && (n._zod.bag.minimum = o.minimum);
602
+ }), e._zod.check = (n) => {
603
+ const r = n.value;
604
+ if (r.length >= o.minimum)
605
+ return;
606
+ const i = ke(r);
607
+ n.issues.push({
608
+ origin: i,
609
+ code: "too_small",
610
+ minimum: o.minimum,
611
+ inclusive: !0,
612
+ input: r,
613
+ inst: e,
614
+ continue: !o.abort
615
+ });
616
+ };
617
+ }), Ot = /* @__PURE__ */ d("$ZodCheckLengthEquals", (e, o) => {
618
+ var t;
619
+ x.init(e, o), (t = e._zod.def).when ?? (t.when = (n) => {
620
+ const r = n.value;
621
+ return !ye(r) && r.length !== void 0;
622
+ }), e._zod.onattach.push((n) => {
623
+ const r = n._zod.bag;
624
+ r.minimum = o.length, r.maximum = o.length, r.length = o.length;
625
+ }), e._zod.check = (n) => {
626
+ const r = n.value, a = r.length;
627
+ if (a === o.length)
628
+ return;
629
+ const i = ke(r), l = a > o.length;
630
+ n.issues.push({
631
+ origin: i,
632
+ ...l ? { code: "too_big", maximum: o.length } : { code: "too_small", minimum: o.length },
633
+ inclusive: !0,
634
+ exact: !0,
635
+ input: n.value,
636
+ inst: e,
637
+ continue: !o.abort
638
+ });
639
+ };
640
+ }), fe = /* @__PURE__ */ d("$ZodCheckStringFormat", (e, o) => {
641
+ var t, n;
642
+ x.init(e, o), e._zod.onattach.push((r) => {
643
+ const a = r._zod.bag;
644
+ a.format = o.format, o.pattern && (a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(o.pattern));
645
+ }), o.pattern ? (t = e._zod).check ?? (t.check = (r) => {
646
+ o.pattern.lastIndex = 0, !o.pattern.test(r.value) && r.issues.push({
647
+ origin: "string",
648
+ code: "invalid_format",
649
+ format: o.format,
650
+ input: r.value,
651
+ ...o.pattern ? { pattern: o.pattern.toString() } : {},
652
+ inst: e,
653
+ continue: !o.abort
654
+ });
655
+ }) : (n = e._zod).check ?? (n.check = () => {
656
+ });
657
+ }), It = /* @__PURE__ */ d("$ZodCheckRegex", (e, o) => {
658
+ fe.init(e, o), e._zod.check = (t) => {
659
+ o.pattern.lastIndex = 0, !o.pattern.test(t.value) && t.issues.push({
660
+ origin: "string",
661
+ code: "invalid_format",
662
+ format: "regex",
663
+ input: t.value,
664
+ pattern: o.pattern.toString(),
665
+ inst: e,
666
+ continue: !o.abort
667
+ });
668
+ };
669
+ }), Nt = /* @__PURE__ */ d("$ZodCheckLowerCase", (e, o) => {
670
+ o.pattern ?? (o.pattern = wt), fe.init(e, o);
671
+ }), Et = /* @__PURE__ */ d("$ZodCheckUpperCase", (e, o) => {
672
+ o.pattern ?? (o.pattern = St), fe.init(e, o);
673
+ }), Ct = /* @__PURE__ */ d("$ZodCheckIncludes", (e, o) => {
674
+ x.init(e, o);
675
+ const t = ue(o.includes), n = new RegExp(typeof o.position == "number" ? `^.{${o.position}}${t}` : t);
676
+ o.pattern = n, e._zod.onattach.push((r) => {
677
+ const a = r._zod.bag;
678
+ a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(n);
679
+ }), e._zod.check = (r) => {
680
+ r.value.includes(o.includes, o.position) || r.issues.push({
681
+ origin: "string",
682
+ code: "invalid_format",
683
+ format: "includes",
684
+ includes: o.includes,
685
+ input: r.value,
686
+ inst: e,
687
+ continue: !o.abort
688
+ });
689
+ };
690
+ }), At = /* @__PURE__ */ d("$ZodCheckStartsWith", (e, o) => {
691
+ x.init(e, o);
692
+ const t = new RegExp(`^${ue(o.prefix)}.*`);
693
+ o.pattern ?? (o.pattern = t), e._zod.onattach.push((n) => {
694
+ const r = n._zod.bag;
695
+ r.patterns ?? (r.patterns = /* @__PURE__ */ new Set()), r.patterns.add(t);
696
+ }), e._zod.check = (n) => {
697
+ n.value.startsWith(o.prefix) || n.issues.push({
698
+ origin: "string",
699
+ code: "invalid_format",
700
+ format: "starts_with",
701
+ prefix: o.prefix,
702
+ input: n.value,
703
+ inst: e,
704
+ continue: !o.abort
705
+ });
706
+ };
707
+ }), xt = /* @__PURE__ */ d("$ZodCheckEndsWith", (e, o) => {
708
+ x.init(e, o);
709
+ const t = new RegExp(`.*${ue(o.suffix)}$`);
710
+ o.pattern ?? (o.pattern = t), e._zod.onattach.push((n) => {
711
+ const r = n._zod.bag;
712
+ r.patterns ?? (r.patterns = /* @__PURE__ */ new Set()), r.patterns.add(t);
713
+ }), e._zod.check = (n) => {
714
+ n.value.endsWith(o.suffix) || n.issues.push({
715
+ origin: "string",
716
+ code: "invalid_format",
717
+ format: "ends_with",
718
+ suffix: o.suffix,
719
+ input: n.value,
720
+ inst: e,
721
+ continue: !o.abort
722
+ });
723
+ };
724
+ }), jt = /* @__PURE__ */ d("$ZodCheckOverwrite", (e, o) => {
725
+ x.init(e, o), e._zod.check = (t) => {
726
+ t.value = o.tx(t.value);
727
+ };
728
+ });
729
+ class Rt {
730
+ constructor(o = []) {
731
+ this.content = [], this.indent = 0, this && (this.args = o);
732
+ }
733
+ indented(o) {
734
+ this.indent += 1, o(this), this.indent -= 1;
735
+ }
736
+ write(o) {
737
+ if (typeof o == "function") {
738
+ o(this, { execution: "sync" }), o(this, { execution: "async" });
739
+ return;
740
+ }
741
+ const n = o.split(`
742
+ `).filter((i) => i), r = Math.min(...n.map((i) => i.length - i.trimStart().length)), a = n.map((i) => i.slice(r)).map((i) => " ".repeat(this.indent * 2) + i);
743
+ for (const i of a)
744
+ this.content.push(i);
745
+ }
746
+ compile() {
747
+ const o = Function, t = this?.args, r = [...(this?.content ?? [""]).map((a) => ` ${a}`)];
748
+ return new o(...t, r.join(`
749
+ `));
750
+ }
751
+ }
752
+ const Dt = {
753
+ major: 4,
754
+ minor: 3,
755
+ patch: 6
756
+ }, Z = /* @__PURE__ */ d("$ZodType", (e, o) => {
757
+ var t;
758
+ e ?? (e = {}), e._zod.def = o, e._zod.bag = e._zod.bag || {}, e._zod.version = Dt;
759
+ const n = [...e._zod.def.checks ?? []];
760
+ e._zod.traits.has("$ZodCheck") && n.unshift(e);
761
+ for (const r of n)
762
+ for (const a of r._zod.onattach)
763
+ a(e);
764
+ if (n.length === 0)
765
+ (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred?.push(() => {
766
+ e._zod.run = e._zod.parse;
767
+ });
768
+ else {
769
+ const r = (i, l, u) => {
770
+ let p = G(i), h;
771
+ for (const _ of l) {
772
+ if (_._zod.def.when) {
773
+ if (!_._zod.def.when(i))
774
+ continue;
775
+ } else if (p)
776
+ continue;
777
+ const w = i.issues.length, S = _._zod.check(i);
778
+ if (S instanceof Promise && u?.async === !1)
779
+ throw new q();
780
+ if (h || S instanceof Promise)
781
+ h = (h ?? Promise.resolve()).then(async () => {
782
+ await S, i.issues.length !== w && (p || (p = G(i, w)));
783
+ });
784
+ else {
785
+ if (i.issues.length === w)
786
+ continue;
787
+ p || (p = G(i, w));
788
+ }
789
+ }
790
+ return h ? h.then(() => i) : i;
791
+ }, a = (i, l, u) => {
792
+ if (G(i))
793
+ return i.aborted = !0, i;
794
+ const p = r(l, n, u);
795
+ if (p instanceof Promise) {
796
+ if (u.async === !1)
797
+ throw new q();
798
+ return p.then((h) => e._zod.parse(h, u));
799
+ }
800
+ return e._zod.parse(p, u);
801
+ };
802
+ e._zod.run = (i, l) => {
803
+ if (l.skipChecks)
804
+ return e._zod.parse(i, l);
805
+ if (l.direction === "backward") {
806
+ const p = e._zod.parse({ value: i.value, issues: [] }, { ...l, skipChecks: !0 });
807
+ return p instanceof Promise ? p.then((h) => a(h, i, l)) : a(p, i, l);
808
+ }
809
+ const u = e._zod.parse(i, l);
810
+ if (u instanceof Promise) {
811
+ if (l.async === !1)
812
+ throw new q();
813
+ return u.then((p) => r(p, n, l));
814
+ }
815
+ return r(u, n, l);
816
+ };
817
+ }
818
+ $(e, "~standard", () => ({
819
+ validate: (r) => {
820
+ try {
821
+ const a = Jo(e, r);
822
+ return a.success ? { value: a.data } : { issues: a.error?.issues };
823
+ } catch {
824
+ return Vo(e, r).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
825
+ }
826
+ },
827
+ vendor: "zod",
828
+ version: 1
829
+ }));
830
+ }), $e = /* @__PURE__ */ d("$ZodString", (e, o) => {
831
+ Z.init(e, o), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? bt(e._zod.bag), e._zod.parse = (t, n) => {
832
+ if (o.coerce)
833
+ try {
834
+ t.value = String(t.value);
835
+ } catch {
836
+ }
837
+ return typeof t.value == "string" || t.issues.push({
838
+ expected: "string",
839
+ code: "invalid_type",
840
+ input: t.value,
841
+ inst: e
842
+ }), t;
843
+ };
844
+ }), T = /* @__PURE__ */ d("$ZodStringFormat", (e, o) => {
845
+ fe.init(e, o), $e.init(e, o);
846
+ }), Ut = /* @__PURE__ */ d("$ZodGUID", (e, o) => {
847
+ o.pattern ?? (o.pattern = at), T.init(e, o);
848
+ }), Ft = /* @__PURE__ */ d("$ZodUUID", (e, o) => {
849
+ if (o.version) {
850
+ const n = {
851
+ v1: 1,
852
+ v2: 2,
853
+ v3: 3,
854
+ v4: 4,
855
+ v5: 5,
856
+ v6: 6,
857
+ v7: 7,
858
+ v8: 8
859
+ }[o.version];
860
+ if (n === void 0)
861
+ throw new Error(`Invalid UUID version: "${o.version}"`);
862
+ o.pattern ?? (o.pattern = Te(n));
863
+ } else
864
+ o.pattern ?? (o.pattern = Te());
865
+ T.init(e, o);
866
+ }), Lt = /* @__PURE__ */ d("$ZodEmail", (e, o) => {
867
+ o.pattern ?? (o.pattern = st), T.init(e, o);
868
+ }), Mt = /* @__PURE__ */ d("$ZodURL", (e, o) => {
869
+ T.init(e, o), e._zod.check = (t) => {
870
+ try {
871
+ const n = t.value.trim(), r = new URL(n);
872
+ o.hostname && (o.hostname.lastIndex = 0, o.hostname.test(r.hostname) || t.issues.push({
873
+ code: "invalid_format",
874
+ format: "url",
875
+ note: "Invalid hostname",
876
+ pattern: o.hostname.source,
877
+ input: t.value,
878
+ inst: e,
879
+ continue: !o.abort
880
+ })), o.protocol && (o.protocol.lastIndex = 0, o.protocol.test(r.protocol.endsWith(":") ? r.protocol.slice(0, -1) : r.protocol) || t.issues.push({
881
+ code: "invalid_format",
882
+ format: "url",
883
+ note: "Invalid protocol",
884
+ pattern: o.protocol.source,
885
+ input: t.value,
886
+ inst: e,
887
+ continue: !o.abort
888
+ })), o.normalize ? t.value = r.href : t.value = n;
889
+ return;
890
+ } catch {
891
+ t.issues.push({
892
+ code: "invalid_format",
893
+ format: "url",
894
+ input: t.value,
895
+ inst: e,
896
+ continue: !o.abort
897
+ });
898
+ }
899
+ };
900
+ }), Jt = /* @__PURE__ */ d("$ZodEmoji", (e, o) => {
901
+ o.pattern ?? (o.pattern = lt()), T.init(e, o);
902
+ }), Vt = /* @__PURE__ */ d("$ZodNanoID", (e, o) => {
903
+ o.pattern ?? (o.pattern = rt), T.init(e, o);
904
+ }), Bt = /* @__PURE__ */ d("$ZodCUID", (e, o) => {
905
+ o.pattern ?? (o.pattern = Qo), T.init(e, o);
906
+ }), Wt = /* @__PURE__ */ d("$ZodCUID2", (e, o) => {
907
+ o.pattern ?? (o.pattern = et), T.init(e, o);
908
+ }), Gt = /* @__PURE__ */ d("$ZodULID", (e, o) => {
909
+ o.pattern ?? (o.pattern = ot), T.init(e, o);
910
+ }), qt = /* @__PURE__ */ d("$ZodXID", (e, o) => {
911
+ o.pattern ?? (o.pattern = tt), T.init(e, o);
912
+ }), Kt = /* @__PURE__ */ d("$ZodKSUID", (e, o) => {
913
+ o.pattern ?? (o.pattern = nt), T.init(e, o);
914
+ }), Xt = /* @__PURE__ */ d("$ZodISODateTime", (e, o) => {
915
+ o.pattern ?? (o.pattern = vt(o)), T.init(e, o);
916
+ }), Yt = /* @__PURE__ */ d("$ZodISODate", (e, o) => {
917
+ o.pattern ?? (o.pattern = gt), T.init(e, o);
918
+ }), Ht = /* @__PURE__ */ d("$ZodISOTime", (e, o) => {
919
+ o.pattern ?? (o.pattern = _t(o)), T.init(e, o);
920
+ }), Qt = /* @__PURE__ */ d("$ZodISODuration", (e, o) => {
921
+ o.pattern ?? (o.pattern = it), T.init(e, o);
922
+ }), en = /* @__PURE__ */ d("$ZodIPv4", (e, o) => {
923
+ o.pattern ?? (o.pattern = ut), T.init(e, o), e._zod.bag.format = "ipv4";
924
+ }), on = /* @__PURE__ */ d("$ZodIPv6", (e, o) => {
925
+ o.pattern ?? (o.pattern = pt), T.init(e, o), e._zod.bag.format = "ipv6", e._zod.check = (t) => {
926
+ try {
927
+ new URL(`http://[${t.value}]`);
928
+ } catch {
929
+ t.issues.push({
930
+ code: "invalid_format",
931
+ format: "ipv6",
932
+ input: t.value,
933
+ inst: e,
934
+ continue: !o.abort
935
+ });
936
+ }
937
+ };
938
+ }), tn = /* @__PURE__ */ d("$ZodCIDRv4", (e, o) => {
939
+ o.pattern ?? (o.pattern = dt), T.init(e, o);
940
+ }), nn = /* @__PURE__ */ d("$ZodCIDRv6", (e, o) => {
941
+ o.pattern ?? (o.pattern = ft), T.init(e, o), e._zod.check = (t) => {
942
+ const n = t.value.split("/");
943
+ try {
944
+ if (n.length !== 2)
945
+ throw new Error();
946
+ const [r, a] = n;
947
+ if (!a)
948
+ throw new Error();
949
+ const i = Number(a);
950
+ if (`${i}` !== a)
951
+ throw new Error();
952
+ if (i < 0 || i > 128)
953
+ throw new Error();
954
+ new URL(`http://[${r}]`);
955
+ } catch {
956
+ t.issues.push({
957
+ code: "invalid_format",
958
+ format: "cidrv6",
959
+ input: t.value,
960
+ inst: e,
961
+ continue: !o.abort
962
+ });
963
+ }
964
+ };
965
+ });
966
+ function co(e) {
967
+ if (e === "")
968
+ return !0;
969
+ if (e.length % 4 !== 0)
970
+ return !1;
971
+ try {
972
+ return atob(e), !0;
973
+ } catch {
974
+ return !1;
975
+ }
976
+ }
977
+ const rn = /* @__PURE__ */ d("$ZodBase64", (e, o) => {
978
+ o.pattern ?? (o.pattern = ht), T.init(e, o), e._zod.bag.contentEncoding = "base64", e._zod.check = (t) => {
979
+ co(t.value) || t.issues.push({
980
+ code: "invalid_format",
981
+ format: "base64",
982
+ input: t.value,
983
+ inst: e,
984
+ continue: !o.abort
985
+ });
986
+ };
987
+ });
988
+ function an(e) {
989
+ if (!oo.test(e))
990
+ return !1;
991
+ const o = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), t = o.padEnd(Math.ceil(o.length / 4) * 4, "=");
992
+ return co(t);
993
+ }
994
+ const sn = /* @__PURE__ */ d("$ZodBase64URL", (e, o) => {
995
+ o.pattern ?? (o.pattern = oo), T.init(e, o), e._zod.bag.contentEncoding = "base64url", e._zod.check = (t) => {
996
+ an(t.value) || t.issues.push({
997
+ code: "invalid_format",
998
+ format: "base64url",
999
+ input: t.value,
1000
+ inst: e,
1001
+ continue: !o.abort
1002
+ });
1003
+ };
1004
+ }), cn = /* @__PURE__ */ d("$ZodE164", (e, o) => {
1005
+ o.pattern ?? (o.pattern = mt), T.init(e, o);
1006
+ });
1007
+ function ln(e, o = null) {
1008
+ try {
1009
+ const t = e.split(".");
1010
+ if (t.length !== 3)
1011
+ return !1;
1012
+ const [n] = t;
1013
+ if (!n)
1014
+ return !1;
1015
+ const r = JSON.parse(atob(n));
1016
+ return !("typ" in r && r?.typ !== "JWT" || !r.alg || o && (!("alg" in r) || r.alg !== o));
1017
+ } catch {
1018
+ return !1;
1019
+ }
1020
+ }
1021
+ const un = /* @__PURE__ */ d("$ZodJWT", (e, o) => {
1022
+ T.init(e, o), e._zod.check = (t) => {
1023
+ ln(t.value, o.alg) || t.issues.push({
1024
+ code: "invalid_format",
1025
+ format: "jwt",
1026
+ input: t.value,
1027
+ inst: e,
1028
+ continue: !o.abort
1029
+ });
1030
+ };
1031
+ }), lo = /* @__PURE__ */ d("$ZodNumber", (e, o) => {
1032
+ Z.init(e, o), e._zod.pattern = e._zod.bag.pattern ?? ro, e._zod.parse = (t, n) => {
1033
+ if (o.coerce)
1034
+ try {
1035
+ t.value = Number(t.value);
1036
+ } catch {
1037
+ }
1038
+ const r = t.value;
1039
+ if (typeof r == "number" && !Number.isNaN(r) && Number.isFinite(r))
1040
+ return t;
1041
+ const a = typeof r == "number" ? Number.isNaN(r) ? "NaN" : Number.isFinite(r) ? void 0 : "Infinity" : void 0;
1042
+ return t.issues.push({
1043
+ expected: "number",
1044
+ code: "invalid_type",
1045
+ input: r,
1046
+ inst: e,
1047
+ ...a ? { received: a } : {}
1048
+ }), t;
1049
+ };
1050
+ }), pn = /* @__PURE__ */ d("$ZodNumberFormat", (e, o) => {
1051
+ Zt.init(e, o), lo.init(e, o);
1052
+ }), dn = /* @__PURE__ */ d("$ZodBoolean", (e, o) => {
1053
+ Z.init(e, o), e._zod.pattern = zt, e._zod.parse = (t, n) => {
1054
+ if (o.coerce)
1055
+ try {
1056
+ t.value = !!t.value;
1057
+ } catch {
1058
+ }
1059
+ const r = t.value;
1060
+ return typeof r == "boolean" || t.issues.push({
1061
+ expected: "boolean",
1062
+ code: "invalid_type",
1063
+ input: r,
1064
+ inst: e
1065
+ }), t;
1066
+ };
1067
+ }), fn = /* @__PURE__ */ d("$ZodNull", (e, o) => {
1068
+ Z.init(e, o), e._zod.pattern = kt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
1069
+ const r = t.value;
1070
+ return r === null || t.issues.push({
1071
+ expected: "null",
1072
+ code: "invalid_type",
1073
+ input: r,
1074
+ inst: e
1075
+ }), t;
1076
+ };
1077
+ }), hn = /* @__PURE__ */ d("$ZodUnknown", (e, o) => {
1078
+ Z.init(e, o), e._zod.parse = (t) => t;
1079
+ }), mn = /* @__PURE__ */ d("$ZodNever", (e, o) => {
1080
+ Z.init(e, o), e._zod.parse = (t, n) => (t.issues.push({
1081
+ expected: "never",
1082
+ code: "invalid_type",
1083
+ input: t.value,
1084
+ inst: e
1085
+ }), t);
1086
+ });
1087
+ function Oe(e, o, t) {
1088
+ e.issues.length && o.issues.push(...V(t, e.issues)), o.value[t] = e.value;
1089
+ }
1090
+ const gn = /* @__PURE__ */ d("$ZodArray", (e, o) => {
1091
+ Z.init(e, o), e._zod.parse = (t, n) => {
1092
+ const r = t.value;
1093
+ if (!Array.isArray(r))
1094
+ return t.issues.push({
1095
+ expected: "array",
1096
+ code: "invalid_type",
1097
+ input: r,
1098
+ inst: e
1099
+ }), t;
1100
+ t.value = Array(r.length);
1101
+ const a = [];
1102
+ for (let i = 0; i < r.length; i++) {
1103
+ const l = r[i], u = o.element._zod.run({
1104
+ value: l,
1105
+ issues: []
1106
+ }, n);
1107
+ u instanceof Promise ? a.push(u.then((p) => Oe(p, t, i))) : Oe(u, t, i);
1108
+ }
1109
+ return a.length ? Promise.all(a).then(() => t) : t;
1110
+ };
1111
+ });
1112
+ function se(e, o, t, n, r) {
1113
+ if (e.issues.length) {
1114
+ if (r && !(t in n))
1115
+ return;
1116
+ o.issues.push(...V(t, e.issues));
1117
+ }
1118
+ e.value === void 0 ? t in n && (o.value[t] = void 0) : o.value[t] = e.value;
1119
+ }
1120
+ function uo(e) {
1121
+ const o = Object.keys(e.shape);
1122
+ for (const n of o)
1123
+ if (!e.shape?.[n]?._zod?.traits?.has("$ZodType"))
1124
+ throw new Error(`Invalid element at key "${n}": expected a Zod schema`);
1125
+ const t = Eo(e.shape);
1126
+ return {
1127
+ ...e,
1128
+ keys: o,
1129
+ keySet: new Set(o),
1130
+ numKeys: o.length,
1131
+ optionalKeys: new Set(t)
1132
+ };
1133
+ }
1134
+ function po(e, o, t, n, r, a) {
1135
+ const i = [], l = r.keySet, u = r.catchall._zod, p = u.def.type, h = u.optout === "optional";
1136
+ for (const _ in o) {
1137
+ if (l.has(_))
1138
+ continue;
1139
+ if (p === "never") {
1140
+ i.push(_);
1141
+ continue;
1142
+ }
1143
+ const w = u.run({ value: o[_], issues: [] }, n);
1144
+ w instanceof Promise ? e.push(w.then((S) => se(S, t, _, o, h))) : se(w, t, _, o, h);
1145
+ }
1146
+ return i.length && t.issues.push({
1147
+ code: "unrecognized_keys",
1148
+ keys: i,
1149
+ input: o,
1150
+ inst: a
1151
+ }), e.length ? Promise.all(e).then(() => t) : t;
1152
+ }
1153
+ const _n = /* @__PURE__ */ d("$ZodObject", (e, o) => {
1154
+ if (Z.init(e, o), !Object.getOwnPropertyDescriptor(o, "shape")?.get) {
1155
+ const l = o.shape;
1156
+ Object.defineProperty(o, "shape", {
1157
+ get: () => {
1158
+ const u = { ...l };
1159
+ return Object.defineProperty(o, "shape", {
1160
+ value: u
1161
+ }), u;
1162
+ }
1163
+ });
1164
+ }
1165
+ const n = be(() => uo(o));
1166
+ $(e._zod, "propValues", () => {
1167
+ const l = o.shape, u = {};
1168
+ for (const p in l) {
1169
+ const h = l[p]._zod;
1170
+ if (h.values) {
1171
+ u[p] ?? (u[p] = /* @__PURE__ */ new Set());
1172
+ for (const _ of h.values)
1173
+ u[p].add(_);
1174
+ }
1175
+ }
1176
+ return u;
1177
+ });
1178
+ const r = ae, a = o.catchall;
1179
+ let i;
1180
+ e._zod.parse = (l, u) => {
1181
+ i ?? (i = n.value);
1182
+ const p = l.value;
1183
+ if (!r(p))
1184
+ return l.issues.push({
1185
+ expected: "object",
1186
+ code: "invalid_type",
1187
+ input: p,
1188
+ inst: e
1189
+ }), l;
1190
+ l.value = {};
1191
+ const h = [], _ = i.shape;
1192
+ for (const w of i.keys) {
1193
+ const S = _[w], E = S._zod.optout === "optional", N = S._zod.run({ value: p[w], issues: [] }, u);
1194
+ N instanceof Promise ? h.push(N.then((ee) => se(ee, l, w, p, E))) : se(N, l, w, p, E);
1195
+ }
1196
+ return a ? po(h, p, l, u, n.value, e) : h.length ? Promise.all(h).then(() => l) : l;
1197
+ };
1198
+ }), vn = /* @__PURE__ */ d("$ZodObjectJIT", (e, o) => {
1199
+ _n.init(e, o);
1200
+ const t = e._zod.parse, n = be(() => uo(o)), r = (w) => {
1201
+ const S = new Rt(["shape", "payload", "ctx"]), E = n.value, N = (D) => {
1202
+ const A = Pe(D);
1203
+ return `shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`;
1204
+ };
1205
+ S.write("const input = payload.value;");
1206
+ const ee = /* @__PURE__ */ Object.create(null);
1207
+ let $o = 0;
1208
+ for (const D of E.keys)
1209
+ ee[D] = `key_${$o++}`;
1210
+ S.write("const newResult = {};");
1211
+ for (const D of E.keys) {
1212
+ const A = ee[D], R = Pe(D), Po = w[D]?._zod?.optout === "optional";
1213
+ S.write(`const ${A} = ${N(D)};`), Po ? S.write(`
1214
+ if (${A}.issues.length) {
1215
+ if (${R} in input) {
1216
+ payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
1217
+ ...iss,
1218
+ path: iss.path ? [${R}, ...iss.path] : [${R}]
1219
+ })));
1220
+ }
1221
+ }
1222
+
1223
+ if (${A}.value === undefined) {
1224
+ if (${R} in input) {
1225
+ newResult[${R}] = undefined;
1226
+ }
1227
+ } else {
1228
+ newResult[${R}] = ${A}.value;
1229
+ }
1230
+
1231
+ `) : S.write(`
1232
+ if (${A}.issues.length) {
1233
+ payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
1234
+ ...iss,
1235
+ path: iss.path ? [${R}, ...iss.path] : [${R}]
1236
+ })));
1237
+ }
1238
+
1239
+ if (${A}.value === undefined) {
1240
+ if (${R} in input) {
1241
+ newResult[${R}] = undefined;
1242
+ }
1243
+ } else {
1244
+ newResult[${R}] = ${A}.value;
1245
+ }
1246
+
1247
+ `);
1248
+ }
1249
+ S.write("payload.value = newResult;"), S.write("return payload;");
1250
+ const Zo = S.compile();
1251
+ return (D, A) => Zo(w, D, A);
1252
+ };
1253
+ let a;
1254
+ const i = ae, l = !qe.jitless, p = l && Io.value, h = o.catchall;
1255
+ let _;
1256
+ e._zod.parse = (w, S) => {
1257
+ _ ?? (_ = n.value);
1258
+ const E = w.value;
1259
+ return i(E) ? l && p && S?.async === !1 && S.jitless !== !0 ? (a || (a = r(o.shape)), w = a(w, S), h ? po([], E, w, S, _, e) : w) : t(w, S) : (w.issues.push({
1260
+ expected: "object",
1261
+ code: "invalid_type",
1262
+ input: E,
1263
+ inst: e
1264
+ }), w);
1265
+ };
1266
+ });
1267
+ function Ie(e, o, t, n) {
1268
+ for (const a of e)
1269
+ if (a.issues.length === 0)
1270
+ return o.value = a.value, o;
1271
+ const r = e.filter((a) => !G(a));
1272
+ return r.length === 1 ? (o.value = r[0].value, r[0]) : (o.issues.push({
1273
+ code: "invalid_union",
1274
+ input: o.value,
1275
+ inst: t,
1276
+ errors: e.map((a) => a.issues.map((i) => L(i, n, F())))
1277
+ }), o);
1278
+ }
1279
+ const bn = /* @__PURE__ */ d("$ZodUnion", (e, o) => {
1280
+ Z.init(e, o), $(e._zod, "optin", () => o.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), $(e._zod, "optout", () => o.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), $(e._zod, "values", () => {
1281
+ if (o.options.every((r) => r._zod.values))
1282
+ return new Set(o.options.flatMap((r) => Array.from(r._zod.values)));
1283
+ }), $(e._zod, "pattern", () => {
1284
+ if (o.options.every((r) => r._zod.pattern)) {
1285
+ const r = o.options.map((a) => a._zod.pattern);
1286
+ return new RegExp(`^(${r.map((a) => ze(a.source)).join("|")})$`);
1287
+ }
1288
+ });
1289
+ const t = o.options.length === 1, n = o.options[0]._zod.run;
1290
+ e._zod.parse = (r, a) => {
1291
+ if (t)
1292
+ return n(r, a);
1293
+ let i = !1;
1294
+ const l = [];
1295
+ for (const u of o.options) {
1296
+ const p = u._zod.run({
1297
+ value: r.value,
1298
+ issues: []
1299
+ }, a);
1300
+ if (p instanceof Promise)
1301
+ l.push(p), i = !0;
1302
+ else {
1303
+ if (p.issues.length === 0)
1304
+ return p;
1305
+ l.push(p);
1306
+ }
1307
+ }
1308
+ return i ? Promise.all(l).then((u) => Ie(u, r, e, a)) : Ie(l, r, e, a);
1309
+ };
1310
+ }), yn = /* @__PURE__ */ d("$ZodIntersection", (e, o) => {
1311
+ Z.init(e, o), e._zod.parse = (t, n) => {
1312
+ const r = t.value, a = o.left._zod.run({ value: r, issues: [] }, n), i = o.right._zod.run({ value: r, issues: [] }, n);
1313
+ return a instanceof Promise || i instanceof Promise ? Promise.all([a, i]).then(([u, p]) => Ne(t, u, p)) : Ne(t, a, i);
1314
+ };
1315
+ });
1316
+ function _e(e, o) {
1317
+ if (e === o)
1318
+ return { valid: !0, data: e };
1319
+ if (e instanceof Date && o instanceof Date && +e == +o)
1320
+ return { valid: !0, data: e };
1321
+ if (K(e) && K(o)) {
1322
+ const t = Object.keys(o), n = Object.keys(e).filter((a) => t.indexOf(a) !== -1), r = { ...e, ...o };
1323
+ for (const a of n) {
1324
+ const i = _e(e[a], o[a]);
1325
+ if (!i.valid)
1326
+ return {
1327
+ valid: !1,
1328
+ mergeErrorPath: [a, ...i.mergeErrorPath]
1329
+ };
1330
+ r[a] = i.data;
1331
+ }
1332
+ return { valid: !0, data: r };
1333
+ }
1334
+ if (Array.isArray(e) && Array.isArray(o)) {
1335
+ if (e.length !== o.length)
1336
+ return { valid: !1, mergeErrorPath: [] };
1337
+ const t = [];
1338
+ for (let n = 0; n < e.length; n++) {
1339
+ const r = e[n], a = o[n], i = _e(r, a);
1340
+ if (!i.valid)
1341
+ return {
1342
+ valid: !1,
1343
+ mergeErrorPath: [n, ...i.mergeErrorPath]
1344
+ };
1345
+ t.push(i.data);
1346
+ }
1347
+ return { valid: !0, data: t };
1348
+ }
1349
+ return { valid: !1, mergeErrorPath: [] };
1350
+ }
1351
+ function Ne(e, o, t) {
1352
+ const n = /* @__PURE__ */ new Map();
1353
+ let r;
1354
+ for (const l of o.issues)
1355
+ if (l.code === "unrecognized_keys") {
1356
+ r ?? (r = l);
1357
+ for (const u of l.keys)
1358
+ n.has(u) || n.set(u, {}), n.get(u).l = !0;
1359
+ } else
1360
+ e.issues.push(l);
1361
+ for (const l of t.issues)
1362
+ if (l.code === "unrecognized_keys")
1363
+ for (const u of l.keys)
1364
+ n.has(u) || n.set(u, {}), n.get(u).r = !0;
1365
+ else
1366
+ e.issues.push(l);
1367
+ const a = [...n].filter(([, l]) => l.l && l.r).map(([l]) => l);
1368
+ if (a.length && r && e.issues.push({ ...r, keys: a }), G(e))
1369
+ return e;
1370
+ const i = _e(o.value, t.value);
1371
+ if (!i.valid)
1372
+ throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
1373
+ return e.value = i.data, e;
1374
+ }
1375
+ const zn = /* @__PURE__ */ d("$ZodTuple", (e, o) => {
1376
+ Z.init(e, o);
1377
+ const t = o.items;
1378
+ e._zod.parse = (n, r) => {
1379
+ const a = n.value;
1380
+ if (!Array.isArray(a))
1381
+ return n.issues.push({
1382
+ input: a,
1383
+ inst: e,
1384
+ expected: "tuple",
1385
+ code: "invalid_type"
1386
+ }), n;
1387
+ n.value = [];
1388
+ const i = [], l = [...t].reverse().findIndex((h) => h._zod.optin !== "optional"), u = l === -1 ? 0 : t.length - l;
1389
+ if (!o.rest) {
1390
+ const h = a.length > t.length, _ = a.length < u - 1;
1391
+ if (h || _)
1392
+ return n.issues.push({
1393
+ ...h ? { code: "too_big", maximum: t.length, inclusive: !0 } : { code: "too_small", minimum: t.length },
1394
+ input: a,
1395
+ inst: e,
1396
+ origin: "array"
1397
+ }), n;
1398
+ }
1399
+ let p = -1;
1400
+ for (const h of t) {
1401
+ if (p++, p >= a.length && p >= u)
1402
+ continue;
1403
+ const _ = h._zod.run({
1404
+ value: a[p],
1405
+ issues: []
1406
+ }, r);
1407
+ _ instanceof Promise ? i.push(_.then((w) => te(w, n, p))) : te(_, n, p);
1408
+ }
1409
+ if (o.rest) {
1410
+ const h = a.slice(t.length);
1411
+ for (const _ of h) {
1412
+ p++;
1413
+ const w = o.rest._zod.run({
1414
+ value: _,
1415
+ issues: []
1416
+ }, r);
1417
+ w instanceof Promise ? i.push(w.then((S) => te(S, n, p))) : te(w, n, p);
1418
+ }
1419
+ }
1420
+ return i.length ? Promise.all(i).then(() => n) : n;
1421
+ };
1422
+ });
1423
+ function te(e, o, t) {
1424
+ e.issues.length && o.issues.push(...V(t, e.issues)), o.value[t] = e.value;
1425
+ }
1426
+ const kn = /* @__PURE__ */ d("$ZodRecord", (e, o) => {
1427
+ Z.init(e, o), e._zod.parse = (t, n) => {
1428
+ const r = t.value;
1429
+ if (!K(r))
1430
+ return t.issues.push({
1431
+ expected: "record",
1432
+ code: "invalid_type",
1433
+ input: r,
1434
+ inst: e
1435
+ }), t;
1436
+ const a = [], i = o.keyType._zod.values;
1437
+ if (i) {
1438
+ t.value = {};
1439
+ const l = /* @__PURE__ */ new Set();
1440
+ for (const p of i)
1441
+ if (typeof p == "string" || typeof p == "number" || typeof p == "symbol") {
1442
+ l.add(typeof p == "number" ? p.toString() : p);
1443
+ const h = o.valueType._zod.run({ value: r[p], issues: [] }, n);
1444
+ h instanceof Promise ? a.push(h.then((_) => {
1445
+ _.issues.length && t.issues.push(...V(p, _.issues)), t.value[p] = _.value;
1446
+ })) : (h.issues.length && t.issues.push(...V(p, h.issues)), t.value[p] = h.value);
1447
+ }
1448
+ let u;
1449
+ for (const p in r)
1450
+ l.has(p) || (u = u ?? [], u.push(p));
1451
+ u && u.length > 0 && t.issues.push({
1452
+ code: "unrecognized_keys",
1453
+ input: r,
1454
+ inst: e,
1455
+ keys: u
1456
+ });
1457
+ } else {
1458
+ t.value = {};
1459
+ for (const l of Reflect.ownKeys(r)) {
1460
+ if (l === "__proto__")
1461
+ continue;
1462
+ let u = o.keyType._zod.run({ value: l, issues: [] }, n);
1463
+ if (u instanceof Promise)
1464
+ throw new Error("Async schemas not supported in object keys currently");
1465
+ if (typeof l == "string" && ro.test(l) && u.issues.length) {
1466
+ const _ = o.keyType._zod.run({ value: Number(l), issues: [] }, n);
1467
+ if (_ instanceof Promise)
1468
+ throw new Error("Async schemas not supported in object keys currently");
1469
+ _.issues.length === 0 && (u = _);
1470
+ }
1471
+ if (u.issues.length) {
1472
+ o.mode === "loose" ? t.value[l] = r[l] : t.issues.push({
1473
+ code: "invalid_key",
1474
+ origin: "record",
1475
+ issues: u.issues.map((_) => L(_, n, F())),
1476
+ input: l,
1477
+ path: [l],
1478
+ inst: e
1479
+ });
1480
+ continue;
1481
+ }
1482
+ const h = o.valueType._zod.run({ value: r[l], issues: [] }, n);
1483
+ h instanceof Promise ? a.push(h.then((_) => {
1484
+ _.issues.length && t.issues.push(...V(l, _.issues)), t.value[u.value] = _.value;
1485
+ })) : (h.issues.length && t.issues.push(...V(l, h.issues)), t.value[u.value] = h.value);
1486
+ }
1487
+ }
1488
+ return a.length ? Promise.all(a).then(() => t) : t;
1489
+ };
1490
+ }), wn = /* @__PURE__ */ d("$ZodEnum", (e, o) => {
1491
+ Z.init(e, o);
1492
+ const t = Ke(o.entries), n = new Set(t);
1493
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.filter((r) => No.has(typeof r)).map((r) => typeof r == "string" ? ue(r) : r.toString()).join("|")})$`), e._zod.parse = (r, a) => {
1494
+ const i = r.value;
1495
+ return n.has(i) || r.issues.push({
1496
+ code: "invalid_value",
1497
+ values: t,
1498
+ input: i,
1499
+ inst: e
1500
+ }), r;
1501
+ };
1502
+ }), Sn = /* @__PURE__ */ d("$ZodTransform", (e, o) => {
1503
+ Z.init(e, o), e._zod.parse = (t, n) => {
1504
+ if (n.direction === "backward")
1505
+ throw new Ge(e.constructor.name);
1506
+ const r = o.transform(t.value, t);
1507
+ if (n.async)
1508
+ return (r instanceof Promise ? r : Promise.resolve(r)).then((i) => (t.value = i, t));
1509
+ if (r instanceof Promise)
1510
+ throw new q();
1511
+ return t.value = r, t;
1512
+ };
1513
+ });
1514
+ function Ee(e, o) {
1515
+ return e.issues.length && o === void 0 ? { issues: [], value: void 0 } : e;
1516
+ }
1517
+ const fo = /* @__PURE__ */ d("$ZodOptional", (e, o) => {
1518
+ Z.init(e, o), e._zod.optin = "optional", e._zod.optout = "optional", $(e._zod, "values", () => o.innerType._zod.values ? /* @__PURE__ */ new Set([...o.innerType._zod.values, void 0]) : void 0), $(e._zod, "pattern", () => {
1519
+ const t = o.innerType._zod.pattern;
1520
+ return t ? new RegExp(`^(${ze(t.source)})?$`) : void 0;
1521
+ }), e._zod.parse = (t, n) => {
1522
+ if (o.innerType._zod.optin === "optional") {
1523
+ const r = o.innerType._zod.run(t, n);
1524
+ return r instanceof Promise ? r.then((a) => Ee(a, t.value)) : Ee(r, t.value);
1525
+ }
1526
+ return t.value === void 0 ? t : o.innerType._zod.run(t, n);
1527
+ };
1528
+ }), $n = /* @__PURE__ */ d("$ZodExactOptional", (e, o) => {
1529
+ fo.init(e, o), $(e._zod, "values", () => o.innerType._zod.values), $(e._zod, "pattern", () => o.innerType._zod.pattern), e._zod.parse = (t, n) => o.innerType._zod.run(t, n);
1530
+ }), Zn = /* @__PURE__ */ d("$ZodNullable", (e, o) => {
1531
+ Z.init(e, o), $(e._zod, "optin", () => o.innerType._zod.optin), $(e._zod, "optout", () => o.innerType._zod.optout), $(e._zod, "pattern", () => {
1532
+ const t = o.innerType._zod.pattern;
1533
+ return t ? new RegExp(`^(${ze(t.source)}|null)$`) : void 0;
1534
+ }), $(e._zod, "values", () => o.innerType._zod.values ? /* @__PURE__ */ new Set([...o.innerType._zod.values, null]) : void 0), e._zod.parse = (t, n) => t.value === null ? t : o.innerType._zod.run(t, n);
1535
+ }), Pn = /* @__PURE__ */ d("$ZodDefault", (e, o) => {
1536
+ Z.init(e, o), e._zod.optin = "optional", $(e._zod, "values", () => o.innerType._zod.values), e._zod.parse = (t, n) => {
1537
+ if (n.direction === "backward")
1538
+ return o.innerType._zod.run(t, n);
1539
+ if (t.value === void 0)
1540
+ return t.value = o.defaultValue, t;
1541
+ const r = o.innerType._zod.run(t, n);
1542
+ return r instanceof Promise ? r.then((a) => Ce(a, o)) : Ce(r, o);
1543
+ };
1544
+ });
1545
+ function Ce(e, o) {
1546
+ return e.value === void 0 && (e.value = o.defaultValue), e;
1547
+ }
1548
+ const Tn = /* @__PURE__ */ d("$ZodPrefault", (e, o) => {
1549
+ Z.init(e, o), e._zod.optin = "optional", $(e._zod, "values", () => o.innerType._zod.values), e._zod.parse = (t, n) => (n.direction === "backward" || t.value === void 0 && (t.value = o.defaultValue), o.innerType._zod.run(t, n));
1550
+ }), On = /* @__PURE__ */ d("$ZodNonOptional", (e, o) => {
1551
+ Z.init(e, o), $(e._zod, "values", () => {
1552
+ const t = o.innerType._zod.values;
1553
+ return t ? new Set([...t].filter((n) => n !== void 0)) : void 0;
1554
+ }), e._zod.parse = (t, n) => {
1555
+ const r = o.innerType._zod.run(t, n);
1556
+ return r instanceof Promise ? r.then((a) => Ae(a, e)) : Ae(r, e);
1557
+ };
1558
+ });
1559
+ function Ae(e, o) {
1560
+ return !e.issues.length && e.value === void 0 && e.issues.push({
1561
+ code: "invalid_type",
1562
+ expected: "nonoptional",
1563
+ input: e.value,
1564
+ inst: o
1565
+ }), e;
1566
+ }
1567
+ const In = /* @__PURE__ */ d("$ZodCatch", (e, o) => {
1568
+ Z.init(e, o), $(e._zod, "optin", () => o.innerType._zod.optin), $(e._zod, "optout", () => o.innerType._zod.optout), $(e._zod, "values", () => o.innerType._zod.values), e._zod.parse = (t, n) => {
1569
+ if (n.direction === "backward")
1570
+ return o.innerType._zod.run(t, n);
1571
+ const r = o.innerType._zod.run(t, n);
1572
+ return r instanceof Promise ? r.then((a) => (t.value = a.value, a.issues.length && (t.value = o.catchValue({
1573
+ ...t,
1574
+ error: {
1575
+ issues: a.issues.map((i) => L(i, n, F()))
1576
+ },
1577
+ input: t.value
1578
+ }), t.issues = []), t)) : (t.value = r.value, r.issues.length && (t.value = o.catchValue({
1579
+ ...t,
1580
+ error: {
1581
+ issues: r.issues.map((a) => L(a, n, F()))
1582
+ },
1583
+ input: t.value
1584
+ }), t.issues = []), t);
1585
+ };
1586
+ }), Nn = /* @__PURE__ */ d("$ZodPipe", (e, o) => {
1587
+ Z.init(e, o), $(e._zod, "values", () => o.in._zod.values), $(e._zod, "optin", () => o.in._zod.optin), $(e._zod, "optout", () => o.out._zod.optout), $(e._zod, "propValues", () => o.in._zod.propValues), e._zod.parse = (t, n) => {
1588
+ if (n.direction === "backward") {
1589
+ const a = o.out._zod.run(t, n);
1590
+ return a instanceof Promise ? a.then((i) => ne(i, o.in, n)) : ne(a, o.in, n);
1591
+ }
1592
+ const r = o.in._zod.run(t, n);
1593
+ return r instanceof Promise ? r.then((a) => ne(a, o.out, n)) : ne(r, o.out, n);
1594
+ };
1595
+ });
1596
+ function ne(e, o, t) {
1597
+ return e.issues.length ? (e.aborted = !0, e) : o._zod.run({ value: e.value, issues: e.issues }, t);
1598
+ }
1599
+ const En = /* @__PURE__ */ d("$ZodReadonly", (e, o) => {
1600
+ Z.init(e, o), $(e._zod, "propValues", () => o.innerType._zod.propValues), $(e._zod, "values", () => o.innerType._zod.values), $(e._zod, "optin", () => o.innerType?._zod?.optin), $(e._zod, "optout", () => o.innerType?._zod?.optout), e._zod.parse = (t, n) => {
1601
+ if (n.direction === "backward")
1602
+ return o.innerType._zod.run(t, n);
1603
+ const r = o.innerType._zod.run(t, n);
1604
+ return r instanceof Promise ? r.then(xe) : xe(r);
1605
+ };
1606
+ });
1607
+ function xe(e) {
1608
+ return e.value = Object.freeze(e.value), e;
1609
+ }
1610
+ const Cn = /* @__PURE__ */ d("$ZodLazy", (e, o) => {
1611
+ Z.init(e, o), $(e._zod, "innerType", () => o.getter()), $(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), $(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), $(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), $(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
1612
+ }), An = /* @__PURE__ */ d("$ZodCustom", (e, o) => {
1613
+ x.init(e, o), Z.init(e, o), e._zod.parse = (t, n) => t, e._zod.check = (t) => {
1614
+ const n = t.value, r = o.fn(n);
1615
+ if (r instanceof Promise)
1616
+ return r.then((a) => je(a, t, n, e));
1617
+ je(r, t, n, e);
1618
+ };
1619
+ });
1620
+ function je(e, o, t, n) {
1621
+ if (!e) {
1622
+ const r = {
1623
+ code: "custom",
1624
+ input: t,
1625
+ inst: n,
1626
+ // incorporates params.error into issue reporting
1627
+ path: [...n._zod.def.path ?? []],
1628
+ // incorporates params.error into issue reporting
1629
+ continue: !n._zod.def.abort
1630
+ // params: inst._zod.def.params,
1631
+ };
1632
+ n._zod.def.params && (r.params = n._zod.def.params), o.issues.push(Q(r));
1633
+ }
1634
+ }
1635
+ var Re;
1636
+ class xn {
1637
+ constructor() {
1638
+ this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1639
+ }
1640
+ add(o, ...t) {
1641
+ const n = t[0];
1642
+ return this._map.set(o, n), n && typeof n == "object" && "id" in n && this._idmap.set(n.id, o), this;
1643
+ }
1644
+ clear() {
1645
+ return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
1646
+ }
1647
+ remove(o) {
1648
+ const t = this._map.get(o);
1649
+ return t && typeof t == "object" && "id" in t && this._idmap.delete(t.id), this._map.delete(o), this;
1650
+ }
1651
+ get(o) {
1652
+ const t = o._zod.parent;
1653
+ if (t) {
1654
+ const n = { ...this.get(t) ?? {} };
1655
+ delete n.id;
1656
+ const r = { ...n, ...this._map.get(o) };
1657
+ return Object.keys(r).length ? r : void 0;
1658
+ }
1659
+ return this._map.get(o);
1660
+ }
1661
+ has(o) {
1662
+ return this._map.has(o);
1663
+ }
1664
+ }
1665
+ function jn() {
1666
+ return new xn();
1667
+ }
1668
+ (Re = globalThis).__zod_globalRegistry ?? (Re.__zod_globalRegistry = jn());
1669
+ const Y = globalThis.__zod_globalRegistry;
1670
+ // @__NO_SIDE_EFFECTS__
1671
+ function Rn(e, o) {
1672
+ return new e({
1673
+ type: "string",
1674
+ ...k(o)
1675
+ });
1676
+ }
1677
+ // @__NO_SIDE_EFFECTS__
1678
+ function Dn(e, o) {
1679
+ return new e({
1680
+ type: "string",
1681
+ format: "email",
1682
+ check: "string_format",
1683
+ abort: !1,
1684
+ ...k(o)
1685
+ });
1686
+ }
1687
+ // @__NO_SIDE_EFFECTS__
1688
+ function De(e, o) {
1689
+ return new e({
1690
+ type: "string",
1691
+ format: "guid",
1692
+ check: "string_format",
1693
+ abort: !1,
1694
+ ...k(o)
1695
+ });
1696
+ }
1697
+ // @__NO_SIDE_EFFECTS__
1698
+ function Un(e, o) {
1699
+ return new e({
1700
+ type: "string",
1701
+ format: "uuid",
1702
+ check: "string_format",
1703
+ abort: !1,
1704
+ ...k(o)
1705
+ });
1706
+ }
1707
+ // @__NO_SIDE_EFFECTS__
1708
+ function Fn(e, o) {
1709
+ return new e({
1710
+ type: "string",
1711
+ format: "uuid",
1712
+ check: "string_format",
1713
+ abort: !1,
1714
+ version: "v4",
1715
+ ...k(o)
1716
+ });
1717
+ }
1718
+ // @__NO_SIDE_EFFECTS__
1719
+ function Ln(e, o) {
1720
+ return new e({
1721
+ type: "string",
1722
+ format: "uuid",
1723
+ check: "string_format",
1724
+ abort: !1,
1725
+ version: "v6",
1726
+ ...k(o)
1727
+ });
1728
+ }
1729
+ // @__NO_SIDE_EFFECTS__
1730
+ function Mn(e, o) {
1731
+ return new e({
1732
+ type: "string",
1733
+ format: "uuid",
1734
+ check: "string_format",
1735
+ abort: !1,
1736
+ version: "v7",
1737
+ ...k(o)
1738
+ });
1739
+ }
1740
+ // @__NO_SIDE_EFFECTS__
1741
+ function Jn(e, o) {
1742
+ return new e({
1743
+ type: "string",
1744
+ format: "url",
1745
+ check: "string_format",
1746
+ abort: !1,
1747
+ ...k(o)
1748
+ });
1749
+ }
1750
+ // @__NO_SIDE_EFFECTS__
1751
+ function Vn(e, o) {
1752
+ return new e({
1753
+ type: "string",
1754
+ format: "emoji",
1755
+ check: "string_format",
1756
+ abort: !1,
1757
+ ...k(o)
1758
+ });
1759
+ }
1760
+ // @__NO_SIDE_EFFECTS__
1761
+ function Bn(e, o) {
1762
+ return new e({
1763
+ type: "string",
1764
+ format: "nanoid",
1765
+ check: "string_format",
1766
+ abort: !1,
1767
+ ...k(o)
1768
+ });
1769
+ }
1770
+ // @__NO_SIDE_EFFECTS__
1771
+ function Wn(e, o) {
1772
+ return new e({
1773
+ type: "string",
1774
+ format: "cuid",
1775
+ check: "string_format",
1776
+ abort: !1,
1777
+ ...k(o)
1778
+ });
1779
+ }
1780
+ // @__NO_SIDE_EFFECTS__
1781
+ function Gn(e, o) {
1782
+ return new e({
1783
+ type: "string",
1784
+ format: "cuid2",
1785
+ check: "string_format",
1786
+ abort: !1,
1787
+ ...k(o)
1788
+ });
1789
+ }
1790
+ // @__NO_SIDE_EFFECTS__
1791
+ function qn(e, o) {
1792
+ return new e({
1793
+ type: "string",
1794
+ format: "ulid",
1795
+ check: "string_format",
1796
+ abort: !1,
1797
+ ...k(o)
1798
+ });
1799
+ }
1800
+ // @__NO_SIDE_EFFECTS__
1801
+ function Kn(e, o) {
1802
+ return new e({
1803
+ type: "string",
1804
+ format: "xid",
1805
+ check: "string_format",
1806
+ abort: !1,
1807
+ ...k(o)
1808
+ });
1809
+ }
1810
+ // @__NO_SIDE_EFFECTS__
1811
+ function Xn(e, o) {
1812
+ return new e({
1813
+ type: "string",
1814
+ format: "ksuid",
1815
+ check: "string_format",
1816
+ abort: !1,
1817
+ ...k(o)
1818
+ });
1819
+ }
1820
+ // @__NO_SIDE_EFFECTS__
1821
+ function Yn(e, o) {
1822
+ return new e({
1823
+ type: "string",
1824
+ format: "ipv4",
1825
+ check: "string_format",
1826
+ abort: !1,
1827
+ ...k(o)
1828
+ });
1829
+ }
1830
+ // @__NO_SIDE_EFFECTS__
1831
+ function Hn(e, o) {
1832
+ return new e({
1833
+ type: "string",
1834
+ format: "ipv6",
1835
+ check: "string_format",
1836
+ abort: !1,
1837
+ ...k(o)
1838
+ });
1839
+ }
1840
+ // @__NO_SIDE_EFFECTS__
1841
+ function Qn(e, o) {
1842
+ return new e({
1843
+ type: "string",
1844
+ format: "cidrv4",
1845
+ check: "string_format",
1846
+ abort: !1,
1847
+ ...k(o)
1848
+ });
1849
+ }
1850
+ // @__NO_SIDE_EFFECTS__
1851
+ function er(e, o) {
1852
+ return new e({
1853
+ type: "string",
1854
+ format: "cidrv6",
1855
+ check: "string_format",
1856
+ abort: !1,
1857
+ ...k(o)
1858
+ });
1859
+ }
1860
+ // @__NO_SIDE_EFFECTS__
1861
+ function or(e, o) {
1862
+ return new e({
1863
+ type: "string",
1864
+ format: "base64",
1865
+ check: "string_format",
1866
+ abort: !1,
1867
+ ...k(o)
1868
+ });
1869
+ }
1870
+ // @__NO_SIDE_EFFECTS__
1871
+ function tr(e, o) {
1872
+ return new e({
1873
+ type: "string",
1874
+ format: "base64url",
1875
+ check: "string_format",
1876
+ abort: !1,
1877
+ ...k(o)
1878
+ });
1879
+ }
1880
+ // @__NO_SIDE_EFFECTS__
1881
+ function nr(e, o) {
1882
+ return new e({
1883
+ type: "string",
1884
+ format: "e164",
1885
+ check: "string_format",
1886
+ abort: !1,
1887
+ ...k(o)
1888
+ });
1889
+ }
1890
+ // @__NO_SIDE_EFFECTS__
1891
+ function rr(e, o) {
1892
+ return new e({
1893
+ type: "string",
1894
+ format: "jwt",
1895
+ check: "string_format",
1896
+ abort: !1,
1897
+ ...k(o)
1898
+ });
1899
+ }
1900
+ // @__NO_SIDE_EFFECTS__
1901
+ function ir(e, o) {
1902
+ return new e({
1903
+ type: "string",
1904
+ format: "datetime",
1905
+ check: "string_format",
1906
+ offset: !1,
1907
+ local: !1,
1908
+ precision: null,
1909
+ ...k(o)
1910
+ });
1911
+ }
1912
+ // @__NO_SIDE_EFFECTS__
1913
+ function ar(e, o) {
1914
+ return new e({
1915
+ type: "string",
1916
+ format: "date",
1917
+ check: "string_format",
1918
+ ...k(o)
1919
+ });
1920
+ }
1921
+ // @__NO_SIDE_EFFECTS__
1922
+ function sr(e, o) {
1923
+ return new e({
1924
+ type: "string",
1925
+ format: "time",
1926
+ check: "string_format",
1927
+ precision: null,
1928
+ ...k(o)
1929
+ });
1930
+ }
1931
+ // @__NO_SIDE_EFFECTS__
1932
+ function cr(e, o) {
1933
+ return new e({
1934
+ type: "string",
1935
+ format: "duration",
1936
+ check: "string_format",
1937
+ ...k(o)
1938
+ });
1939
+ }
1940
+ // @__NO_SIDE_EFFECTS__
1941
+ function lr(e, o) {
1942
+ return new e({
1943
+ type: "number",
1944
+ checks: [],
1945
+ ...k(o)
1946
+ });
1947
+ }
1948
+ // @__NO_SIDE_EFFECTS__
1949
+ function ur(e, o) {
1950
+ return new e({
1951
+ type: "number",
1952
+ check: "number_format",
1953
+ abort: !1,
1954
+ format: "safeint",
1955
+ ...k(o)
1956
+ });
1957
+ }
1958
+ // @__NO_SIDE_EFFECTS__
1959
+ function pr(e, o) {
1960
+ return new e({
1961
+ type: "boolean",
1962
+ ...k(o)
1963
+ });
1964
+ }
1965
+ // @__NO_SIDE_EFFECTS__
1966
+ function dr(e, o) {
1967
+ return new e({
1968
+ type: "null",
1969
+ ...k(o)
1970
+ });
1971
+ }
1972
+ // @__NO_SIDE_EFFECTS__
1973
+ function fr(e) {
1974
+ return new e({
1975
+ type: "unknown"
1976
+ });
1977
+ }
1978
+ // @__NO_SIDE_EFFECTS__
1979
+ function hr(e, o) {
1980
+ return new e({
1981
+ type: "never",
1982
+ ...k(o)
1983
+ });
1984
+ }
1985
+ // @__NO_SIDE_EFFECTS__
1986
+ function Ue(e, o) {
1987
+ return new ao({
1988
+ check: "less_than",
1989
+ ...k(o),
1990
+ value: e,
1991
+ inclusive: !1
1992
+ });
1993
+ }
1994
+ // @__NO_SIDE_EFFECTS__
1995
+ function he(e, o) {
1996
+ return new ao({
1997
+ check: "less_than",
1998
+ ...k(o),
1999
+ value: e,
2000
+ inclusive: !0
2001
+ });
2002
+ }
2003
+ // @__NO_SIDE_EFFECTS__
2004
+ function Fe(e, o) {
2005
+ return new so({
2006
+ check: "greater_than",
2007
+ ...k(o),
2008
+ value: e,
2009
+ inclusive: !1
2010
+ });
2011
+ }
2012
+ // @__NO_SIDE_EFFECTS__
2013
+ function me(e, o) {
2014
+ return new so({
2015
+ check: "greater_than",
2016
+ ...k(o),
2017
+ value: e,
2018
+ inclusive: !0
2019
+ });
2020
+ }
2021
+ // @__NO_SIDE_EFFECTS__
2022
+ function Le(e, o) {
2023
+ return new $t({
2024
+ check: "multiple_of",
2025
+ ...k(o),
2026
+ value: e
2027
+ });
2028
+ }
2029
+ // @__NO_SIDE_EFFECTS__
2030
+ function ho(e, o) {
2031
+ return new Pt({
2032
+ check: "max_length",
2033
+ ...k(o),
2034
+ maximum: e
2035
+ });
2036
+ }
2037
+ // @__NO_SIDE_EFFECTS__
2038
+ function ce(e, o) {
2039
+ return new Tt({
2040
+ check: "min_length",
2041
+ ...k(o),
2042
+ minimum: e
2043
+ });
2044
+ }
2045
+ // @__NO_SIDE_EFFECTS__
2046
+ function mo(e, o) {
2047
+ return new Ot({
2048
+ check: "length_equals",
2049
+ ...k(o),
2050
+ length: e
2051
+ });
2052
+ }
2053
+ // @__NO_SIDE_EFFECTS__
2054
+ function mr(e, o) {
2055
+ return new It({
2056
+ check: "string_format",
2057
+ format: "regex",
2058
+ ...k(o),
2059
+ pattern: e
2060
+ });
2061
+ }
2062
+ // @__NO_SIDE_EFFECTS__
2063
+ function gr(e) {
2064
+ return new Nt({
2065
+ check: "string_format",
2066
+ format: "lowercase",
2067
+ ...k(e)
2068
+ });
2069
+ }
2070
+ // @__NO_SIDE_EFFECTS__
2071
+ function _r(e) {
2072
+ return new Et({
2073
+ check: "string_format",
2074
+ format: "uppercase",
2075
+ ...k(e)
2076
+ });
2077
+ }
2078
+ // @__NO_SIDE_EFFECTS__
2079
+ function vr(e, o) {
2080
+ return new Ct({
2081
+ check: "string_format",
2082
+ format: "includes",
2083
+ ...k(o),
2084
+ includes: e
2085
+ });
2086
+ }
2087
+ // @__NO_SIDE_EFFECTS__
2088
+ function br(e, o) {
2089
+ return new At({
2090
+ check: "string_format",
2091
+ format: "starts_with",
2092
+ ...k(o),
2093
+ prefix: e
2094
+ });
2095
+ }
2096
+ // @__NO_SIDE_EFFECTS__
2097
+ function yr(e, o) {
2098
+ return new xt({
2099
+ check: "string_format",
2100
+ format: "ends_with",
2101
+ ...k(o),
2102
+ suffix: e
2103
+ });
2104
+ }
2105
+ // @__NO_SIDE_EFFECTS__
2106
+ function X(e) {
2107
+ return new jt({
2108
+ check: "overwrite",
2109
+ tx: e
2110
+ });
2111
+ }
2112
+ // @__NO_SIDE_EFFECTS__
2113
+ function zr(e) {
2114
+ return /* @__PURE__ */ X((o) => o.normalize(e));
2115
+ }
2116
+ // @__NO_SIDE_EFFECTS__
2117
+ function kr() {
2118
+ return /* @__PURE__ */ X((e) => e.trim());
2119
+ }
2120
+ // @__NO_SIDE_EFFECTS__
2121
+ function wr() {
2122
+ return /* @__PURE__ */ X((e) => e.toLowerCase());
2123
+ }
2124
+ // @__NO_SIDE_EFFECTS__
2125
+ function Sr() {
2126
+ return /* @__PURE__ */ X((e) => e.toUpperCase());
2127
+ }
2128
+ // @__NO_SIDE_EFFECTS__
2129
+ function $r() {
2130
+ return /* @__PURE__ */ X((e) => Oo(e));
2131
+ }
2132
+ // @__NO_SIDE_EFFECTS__
2133
+ function Zr(e, o, t) {
2134
+ return new e({
2135
+ type: "array",
2136
+ element: o,
2137
+ // get element() {
2138
+ // return element;
2139
+ // },
2140
+ ...k(t)
2141
+ });
2142
+ }
2143
+ // @__NO_SIDE_EFFECTS__
2144
+ function Pr(e, o, t) {
2145
+ return new e({
2146
+ type: "custom",
2147
+ check: "custom",
2148
+ fn: o,
2149
+ ...k(t)
2150
+ });
2151
+ }
2152
+ // @__NO_SIDE_EFFECTS__
2153
+ function Tr(e) {
2154
+ const o = /* @__PURE__ */ Or((t) => (t.addIssue = (n) => {
2155
+ if (typeof n == "string")
2156
+ t.issues.push(Q(n, t.value, o._zod.def));
2157
+ else {
2158
+ const r = n;
2159
+ r.fatal && (r.continue = !1), r.code ?? (r.code = "custom"), r.input ?? (r.input = t.value), r.inst ?? (r.inst = o), r.continue ?? (r.continue = !o._zod.def.abort), t.issues.push(Q(r));
2160
+ }
2161
+ }, e(t.value, t)));
2162
+ return o;
2163
+ }
2164
+ // @__NO_SIDE_EFFECTS__
2165
+ function Or(e, o) {
2166
+ const t = new x({
2167
+ check: "custom",
2168
+ ...k(o)
2169
+ });
2170
+ return t._zod.check = e, t;
2171
+ }
2172
+ function go(e) {
2173
+ let o = e?.target ?? "draft-2020-12";
2174
+ return o === "draft-4" && (o = "draft-04"), o === "draft-7" && (o = "draft-07"), {
2175
+ processors: e.processors ?? {},
2176
+ metadataRegistry: e?.metadata ?? Y,
2177
+ target: o,
2178
+ unrepresentable: e?.unrepresentable ?? "throw",
2179
+ override: e?.override ?? (() => {
2180
+ }),
2181
+ io: e?.io ?? "output",
2182
+ counter: 0,
2183
+ seen: /* @__PURE__ */ new Map(),
2184
+ cycles: e?.cycles ?? "ref",
2185
+ reused: e?.reused ?? "inline",
2186
+ external: e?.external ?? void 0
2187
+ };
2188
+ }
2189
+ function O(e, o, t = { path: [], schemaPath: [] }) {
2190
+ var n;
2191
+ const r = e._zod.def, a = o.seen.get(e);
2192
+ if (a)
2193
+ return a.count++, t.schemaPath.includes(e) && (a.cycle = t.path), a.schema;
2194
+ const i = { schema: {}, count: 1, cycle: void 0, path: t.path };
2195
+ o.seen.set(e, i);
2196
+ const l = e._zod.toJSONSchema?.();
2197
+ if (l)
2198
+ i.schema = l;
2199
+ else {
2200
+ const h = {
2201
+ ...t,
2202
+ schemaPath: [...t.schemaPath, e],
2203
+ path: t.path
2204
+ };
2205
+ if (e._zod.processJSONSchema)
2206
+ e._zod.processJSONSchema(o, i.schema, h);
2207
+ else {
2208
+ const w = i.schema, S = o.processors[r.type];
2209
+ if (!S)
2210
+ throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);
2211
+ S(e, o, w, h);
2212
+ }
2213
+ const _ = e._zod.parent;
2214
+ _ && (i.ref || (i.ref = _), O(_, o, h), o.seen.get(_).isParent = !0);
2215
+ }
2216
+ const u = o.metadataRegistry.get(e);
2217
+ return u && Object.assign(i.schema, u), o.io === "input" && C(e) && (delete i.schema.examples, delete i.schema.default), o.io === "input" && i.schema._prefault && ((n = i.schema).default ?? (n.default = i.schema._prefault)), delete i.schema._prefault, o.seen.get(e).schema;
2218
+ }
2219
+ function _o(e, o) {
2220
+ const t = e.seen.get(o);
2221
+ if (!t)
2222
+ throw new Error("Unprocessed schema. This is a bug in Zod.");
2223
+ const n = /* @__PURE__ */ new Map();
2224
+ for (const i of e.seen.entries()) {
2225
+ const l = e.metadataRegistry.get(i[0])?.id;
2226
+ if (l) {
2227
+ const u = n.get(l);
2228
+ if (u && u !== i[0])
2229
+ throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
2230
+ n.set(l, i[0]);
2231
+ }
2232
+ }
2233
+ const r = (i) => {
2234
+ const l = e.target === "draft-2020-12" ? "$defs" : "definitions";
2235
+ if (e.external) {
2236
+ const _ = e.external.registry.get(i[0])?.id, w = e.external.uri ?? ((E) => E);
2237
+ if (_)
2238
+ return { ref: w(_) };
2239
+ const S = i[1].defId ?? i[1].schema.id ?? `schema${e.counter++}`;
2240
+ return i[1].defId = S, { defId: S, ref: `${w("__shared")}#/${l}/${S}` };
2241
+ }
2242
+ if (i[1] === t)
2243
+ return { ref: "#" };
2244
+ const p = `#/${l}/`, h = i[1].schema.id ?? `__schema${e.counter++}`;
2245
+ return { defId: h, ref: p + h };
2246
+ }, a = (i) => {
2247
+ if (i[1].schema.$ref)
2248
+ return;
2249
+ const l = i[1], { ref: u, defId: p } = r(i);
2250
+ l.def = { ...l.schema }, p && (l.defId = p);
2251
+ const h = l.schema;
2252
+ for (const _ in h)
2253
+ delete h[_];
2254
+ h.$ref = u;
2255
+ };
2256
+ if (e.cycles === "throw")
2257
+ for (const i of e.seen.entries()) {
2258
+ const l = i[1];
2259
+ if (l.cycle)
2260
+ throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
2261
+
2262
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
2263
+ }
2264
+ for (const i of e.seen.entries()) {
2265
+ const l = i[1];
2266
+ if (o === i[0]) {
2267
+ a(i);
2268
+ continue;
2269
+ }
2270
+ if (e.external) {
2271
+ const p = e.external.registry.get(i[0])?.id;
2272
+ if (o !== i[0] && p) {
2273
+ a(i);
2274
+ continue;
2275
+ }
2276
+ }
2277
+ if (e.metadataRegistry.get(i[0])?.id) {
2278
+ a(i);
2279
+ continue;
2280
+ }
2281
+ if (l.cycle) {
2282
+ a(i);
2283
+ continue;
2284
+ }
2285
+ if (l.count > 1 && e.reused === "ref") {
2286
+ a(i);
2287
+ continue;
2288
+ }
2289
+ }
2290
+ }
2291
+ function vo(e, o) {
2292
+ const t = e.seen.get(o);
2293
+ if (!t)
2294
+ throw new Error("Unprocessed schema. This is a bug in Zod.");
2295
+ const n = (i) => {
2296
+ const l = e.seen.get(i);
2297
+ if (l.ref === null)
2298
+ return;
2299
+ const u = l.def ?? l.schema, p = { ...u }, h = l.ref;
2300
+ if (l.ref = null, h) {
2301
+ n(h);
2302
+ const w = e.seen.get(h), S = w.schema;
2303
+ if (S.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (u.allOf = u.allOf ?? [], u.allOf.push(S)) : Object.assign(u, S), Object.assign(u, p), i._zod.parent === h)
2304
+ for (const N in u)
2305
+ N === "$ref" || N === "allOf" || N in p || delete u[N];
2306
+ if (S.$ref && w.def)
2307
+ for (const N in u)
2308
+ N === "$ref" || N === "allOf" || N in w.def && JSON.stringify(u[N]) === JSON.stringify(w.def[N]) && delete u[N];
2309
+ }
2310
+ const _ = i._zod.parent;
2311
+ if (_ && _ !== h) {
2312
+ n(_);
2313
+ const w = e.seen.get(_);
2314
+ if (w?.schema.$ref && (u.$ref = w.schema.$ref, w.def))
2315
+ for (const S in u)
2316
+ S === "$ref" || S === "allOf" || S in w.def && JSON.stringify(u[S]) === JSON.stringify(w.def[S]) && delete u[S];
2317
+ }
2318
+ e.override({
2319
+ zodSchema: i,
2320
+ jsonSchema: u,
2321
+ path: l.path ?? []
2322
+ });
2323
+ };
2324
+ for (const i of [...e.seen.entries()].reverse())
2325
+ n(i[0]);
2326
+ const r = {};
2327
+ if (e.target === "draft-2020-12" ? r.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? r.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? r.$schema = "http://json-schema.org/draft-04/schema#" : e.target, e.external?.uri) {
2328
+ const i = e.external.registry.get(o)?.id;
2329
+ if (!i)
2330
+ throw new Error("Schema is missing an `id` property");
2331
+ r.$id = e.external.uri(i);
2332
+ }
2333
+ Object.assign(r, t.def ?? t.schema);
2334
+ const a = e.external?.defs ?? {};
2335
+ for (const i of e.seen.entries()) {
2336
+ const l = i[1];
2337
+ l.def && l.defId && (a[l.defId] = l.def);
2338
+ }
2339
+ e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? r.$defs = a : r.definitions = a);
2340
+ try {
2341
+ const i = JSON.parse(JSON.stringify(r));
2342
+ return Object.defineProperty(i, "~standard", {
2343
+ value: {
2344
+ ...o["~standard"],
2345
+ jsonSchema: {
2346
+ input: le(o, "input", e.processors),
2347
+ output: le(o, "output", e.processors)
2348
+ }
2349
+ },
2350
+ enumerable: !1,
2351
+ writable: !1
2352
+ }), i;
2353
+ } catch {
2354
+ throw new Error("Error converting schema to JSON.");
2355
+ }
2356
+ }
2357
+ function C(e, o) {
2358
+ const t = o ?? { seen: /* @__PURE__ */ new Set() };
2359
+ if (t.seen.has(e))
2360
+ return !1;
2361
+ t.seen.add(e);
2362
+ const n = e._zod.def;
2363
+ if (n.type === "transform")
2364
+ return !0;
2365
+ if (n.type === "array")
2366
+ return C(n.element, t);
2367
+ if (n.type === "set")
2368
+ return C(n.valueType, t);
2369
+ if (n.type === "lazy")
2370
+ return C(n.getter(), t);
2371
+ if (n.type === "promise" || n.type === "optional" || n.type === "nonoptional" || n.type === "nullable" || n.type === "readonly" || n.type === "default" || n.type === "prefault")
2372
+ return C(n.innerType, t);
2373
+ if (n.type === "intersection")
2374
+ return C(n.left, t) || C(n.right, t);
2375
+ if (n.type === "record" || n.type === "map")
2376
+ return C(n.keyType, t) || C(n.valueType, t);
2377
+ if (n.type === "pipe")
2378
+ return C(n.in, t) || C(n.out, t);
2379
+ if (n.type === "object") {
2380
+ for (const r in n.shape)
2381
+ if (C(n.shape[r], t))
2382
+ return !0;
2383
+ return !1;
2384
+ }
2385
+ if (n.type === "union") {
2386
+ for (const r of n.options)
2387
+ if (C(r, t))
2388
+ return !0;
2389
+ return !1;
2390
+ }
2391
+ if (n.type === "tuple") {
2392
+ for (const r of n.items)
2393
+ if (C(r, t))
2394
+ return !0;
2395
+ return !!(n.rest && C(n.rest, t));
2396
+ }
2397
+ return !1;
2398
+ }
2399
+ const Ir = (e, o = {}) => (t) => {
2400
+ const n = go({ ...t, processors: o });
2401
+ return O(e, n), _o(n, e), vo(n, e);
2402
+ }, le = (e, o, t = {}) => (n) => {
2403
+ const { libraryOptions: r, target: a } = n ?? {}, i = go({ ...r ?? {}, target: a, io: o, processors: t });
2404
+ return O(e, i), _o(i, e), vo(i, e);
2405
+ }, Nr = {
2406
+ guid: "uuid",
2407
+ url: "uri",
2408
+ datetime: "date-time",
2409
+ json_string: "json-string",
2410
+ regex: ""
2411
+ // do not set
2412
+ }, Er = (e, o, t, n) => {
2413
+ const r = t;
2414
+ r.type = "string";
2415
+ const { minimum: a, maximum: i, format: l, patterns: u, contentEncoding: p } = e._zod.bag;
2416
+ if (typeof a == "number" && (r.minLength = a), typeof i == "number" && (r.maxLength = i), l && (r.format = Nr[l] ?? l, r.format === "" && delete r.format, l === "time" && delete r.format), p && (r.contentEncoding = p), u && u.size > 0) {
2417
+ const h = [...u];
2418
+ h.length === 1 ? r.pattern = h[0].source : h.length > 1 && (r.allOf = [
2419
+ ...h.map((_) => ({
2420
+ ...o.target === "draft-07" || o.target === "draft-04" || o.target === "openapi-3.0" ? { type: "string" } : {},
2421
+ pattern: _.source
2422
+ }))
2423
+ ]);
2424
+ }
2425
+ }, Cr = (e, o, t, n) => {
2426
+ const r = t, { minimum: a, maximum: i, format: l, multipleOf: u, exclusiveMaximum: p, exclusiveMinimum: h } = e._zod.bag;
2427
+ typeof l == "string" && l.includes("int") ? r.type = "integer" : r.type = "number", typeof h == "number" && (o.target === "draft-04" || o.target === "openapi-3.0" ? (r.minimum = h, r.exclusiveMinimum = !0) : r.exclusiveMinimum = h), typeof a == "number" && (r.minimum = a, typeof h == "number" && o.target !== "draft-04" && (h >= a ? delete r.minimum : delete r.exclusiveMinimum)), typeof p == "number" && (o.target === "draft-04" || o.target === "openapi-3.0" ? (r.maximum = p, r.exclusiveMaximum = !0) : r.exclusiveMaximum = p), typeof i == "number" && (r.maximum = i, typeof p == "number" && o.target !== "draft-04" && (p <= i ? delete r.maximum : delete r.exclusiveMaximum)), typeof u == "number" && (r.multipleOf = u);
2428
+ }, Ar = (e, o, t, n) => {
2429
+ t.type = "boolean";
2430
+ }, xr = (e, o, t, n) => {
2431
+ o.target === "openapi-3.0" ? (t.type = "string", t.nullable = !0, t.enum = [null]) : t.type = "null";
2432
+ }, jr = (e, o, t, n) => {
2433
+ t.not = {};
2434
+ }, Rr = (e, o, t, n) => {
2435
+ }, Dr = (e, o, t, n) => {
2436
+ const r = e._zod.def, a = Ke(r.entries);
2437
+ a.every((i) => typeof i == "number") && (t.type = "number"), a.every((i) => typeof i == "string") && (t.type = "string"), t.enum = a;
2438
+ }, Ur = (e, o, t, n) => {
2439
+ if (o.unrepresentable === "throw")
2440
+ throw new Error("Custom types cannot be represented in JSON Schema");
2441
+ }, Fr = (e, o, t, n) => {
2442
+ if (o.unrepresentable === "throw")
2443
+ throw new Error("Transforms cannot be represented in JSON Schema");
2444
+ }, Lr = (e, o, t, n) => {
2445
+ const r = t, a = e._zod.def, { minimum: i, maximum: l } = e._zod.bag;
2446
+ typeof i == "number" && (r.minItems = i), typeof l == "number" && (r.maxItems = l), r.type = "array", r.items = O(a.element, o, { ...n, path: [...n.path, "items"] });
2447
+ }, Mr = (e, o, t, n) => {
2448
+ const r = t, a = e._zod.def;
2449
+ r.type = "object", r.properties = {};
2450
+ const i = a.shape;
2451
+ for (const p in i)
2452
+ r.properties[p] = O(i[p], o, {
2453
+ ...n,
2454
+ path: [...n.path, "properties", p]
2455
+ });
2456
+ const l = new Set(Object.keys(i)), u = new Set([...l].filter((p) => {
2457
+ const h = a.shape[p]._zod;
2458
+ return o.io === "input" ? h.optin === void 0 : h.optout === void 0;
2459
+ }));
2460
+ u.size > 0 && (r.required = Array.from(u)), a.catchall?._zod.def.type === "never" ? r.additionalProperties = !1 : a.catchall ? a.catchall && (r.additionalProperties = O(a.catchall, o, {
2461
+ ...n,
2462
+ path: [...n.path, "additionalProperties"]
2463
+ })) : o.io === "output" && (r.additionalProperties = !1);
2464
+ }, Jr = (e, o, t, n) => {
2465
+ const r = e._zod.def, a = r.inclusive === !1, i = r.options.map((l, u) => O(l, o, {
2466
+ ...n,
2467
+ path: [...n.path, a ? "oneOf" : "anyOf", u]
2468
+ }));
2469
+ a ? t.oneOf = i : t.anyOf = i;
2470
+ }, Vr = (e, o, t, n) => {
2471
+ const r = e._zod.def, a = O(r.left, o, {
2472
+ ...n,
2473
+ path: [...n.path, "allOf", 0]
2474
+ }), i = O(r.right, o, {
2475
+ ...n,
2476
+ path: [...n.path, "allOf", 1]
2477
+ }), l = (p) => "allOf" in p && Object.keys(p).length === 1, u = [
2478
+ ...l(a) ? a.allOf : [a],
2479
+ ...l(i) ? i.allOf : [i]
2480
+ ];
2481
+ t.allOf = u;
2482
+ }, Br = (e, o, t, n) => {
2483
+ const r = t, a = e._zod.def;
2484
+ r.type = "array";
2485
+ const i = o.target === "draft-2020-12" ? "prefixItems" : "items", l = o.target === "draft-2020-12" || o.target === "openapi-3.0" ? "items" : "additionalItems", u = a.items.map((w, S) => O(w, o, {
2486
+ ...n,
2487
+ path: [...n.path, i, S]
2488
+ })), p = a.rest ? O(a.rest, o, {
2489
+ ...n,
2490
+ path: [...n.path, l, ...o.target === "openapi-3.0" ? [a.items.length] : []]
2491
+ }) : null;
2492
+ o.target === "draft-2020-12" ? (r.prefixItems = u, p && (r.items = p)) : o.target === "openapi-3.0" ? (r.items = {
2493
+ anyOf: u
2494
+ }, p && r.items.anyOf.push(p), r.minItems = u.length, p || (r.maxItems = u.length)) : (r.items = u, p && (r.additionalItems = p));
2495
+ const { minimum: h, maximum: _ } = e._zod.bag;
2496
+ typeof h == "number" && (r.minItems = h), typeof _ == "number" && (r.maxItems = _);
2497
+ }, Wr = (e, o, t, n) => {
2498
+ const r = t, a = e._zod.def;
2499
+ r.type = "object";
2500
+ const i = a.keyType, u = i._zod.bag?.patterns;
2501
+ if (a.mode === "loose" && u && u.size > 0) {
2502
+ const h = O(a.valueType, o, {
2503
+ ...n,
2504
+ path: [...n.path, "patternProperties", "*"]
2505
+ });
2506
+ r.patternProperties = {};
2507
+ for (const _ of u)
2508
+ r.patternProperties[_.source] = h;
2509
+ } else
2510
+ (o.target === "draft-07" || o.target === "draft-2020-12") && (r.propertyNames = O(a.keyType, o, {
2511
+ ...n,
2512
+ path: [...n.path, "propertyNames"]
2513
+ })), r.additionalProperties = O(a.valueType, o, {
2514
+ ...n,
2515
+ path: [...n.path, "additionalProperties"]
2516
+ });
2517
+ const p = i._zod.values;
2518
+ if (p) {
2519
+ const h = [...p].filter((_) => typeof _ == "string" || typeof _ == "number");
2520
+ h.length > 0 && (r.required = h);
2521
+ }
2522
+ }, Gr = (e, o, t, n) => {
2523
+ const r = e._zod.def, a = O(r.innerType, o, n), i = o.seen.get(e);
2524
+ o.target === "openapi-3.0" ? (i.ref = r.innerType, t.nullable = !0) : t.anyOf = [a, { type: "null" }];
2525
+ }, qr = (e, o, t, n) => {
2526
+ const r = e._zod.def;
2527
+ O(r.innerType, o, n);
2528
+ const a = o.seen.get(e);
2529
+ a.ref = r.innerType;
2530
+ }, Kr = (e, o, t, n) => {
2531
+ const r = e._zod.def;
2532
+ O(r.innerType, o, n);
2533
+ const a = o.seen.get(e);
2534
+ a.ref = r.innerType, t.default = JSON.parse(JSON.stringify(r.defaultValue));
2535
+ }, Xr = (e, o, t, n) => {
2536
+ const r = e._zod.def;
2537
+ O(r.innerType, o, n);
2538
+ const a = o.seen.get(e);
2539
+ a.ref = r.innerType, o.io === "input" && (t._prefault = JSON.parse(JSON.stringify(r.defaultValue)));
2540
+ }, Yr = (e, o, t, n) => {
2541
+ const r = e._zod.def;
2542
+ O(r.innerType, o, n);
2543
+ const a = o.seen.get(e);
2544
+ a.ref = r.innerType;
2545
+ let i;
2546
+ try {
2547
+ i = r.catchValue(void 0);
2548
+ } catch {
2549
+ throw new Error("Dynamic catch values are not supported in JSON Schema");
2550
+ }
2551
+ t.default = i;
2552
+ }, Hr = (e, o, t, n) => {
2553
+ const r = e._zod.def, a = o.io === "input" ? r.in._zod.def.type === "transform" ? r.out : r.in : r.out;
2554
+ O(a, o, n);
2555
+ const i = o.seen.get(e);
2556
+ i.ref = a;
2557
+ }, Qr = (e, o, t, n) => {
2558
+ const r = e._zod.def;
2559
+ O(r.innerType, o, n);
2560
+ const a = o.seen.get(e);
2561
+ a.ref = r.innerType, t.readOnly = !0;
2562
+ }, bo = (e, o, t, n) => {
2563
+ const r = e._zod.def;
2564
+ O(r.innerType, o, n);
2565
+ const a = o.seen.get(e);
2566
+ a.ref = r.innerType;
2567
+ }, ei = (e, o, t, n) => {
2568
+ const r = e._zod.innerType;
2569
+ O(r, o, n);
2570
+ const a = o.seen.get(e);
2571
+ a.ref = r;
2572
+ }, oi = /* @__PURE__ */ d("ZodISODateTime", (e, o) => {
2573
+ Xt.init(e, o), I.init(e, o);
2574
+ });
2575
+ function ti(e) {
2576
+ return /* @__PURE__ */ ir(oi, e);
2577
+ }
2578
+ const ni = /* @__PURE__ */ d("ZodISODate", (e, o) => {
2579
+ Yt.init(e, o), I.init(e, o);
2580
+ });
2581
+ function ri(e) {
2582
+ return /* @__PURE__ */ ar(ni, e);
2583
+ }
2584
+ const ii = /* @__PURE__ */ d("ZodISOTime", (e, o) => {
2585
+ Ht.init(e, o), I.init(e, o);
2586
+ });
2587
+ function ai(e) {
2588
+ return /* @__PURE__ */ sr(ii, e);
2589
+ }
2590
+ const si = /* @__PURE__ */ d("ZodISODuration", (e, o) => {
2591
+ Qt.init(e, o), I.init(e, o);
2592
+ });
2593
+ function ci(e) {
2594
+ return /* @__PURE__ */ cr(si, e);
2595
+ }
2596
+ const yo = (e, o) => {
2597
+ Qe.init(e, o), e.name = "ZodError", Object.defineProperties(e, {
2598
+ format: {
2599
+ value: (t) => Mo(e, t)
2600
+ // enumerable: false,
2601
+ },
2602
+ flatten: {
2603
+ value: (t) => Lo(e, t)
2604
+ // enumerable: false,
2605
+ },
2606
+ addIssue: {
2607
+ value: (t) => {
2608
+ e.issues.push(t), e.message = JSON.stringify(e.issues, ge, 2);
2609
+ }
2610
+ // enumerable: false,
2611
+ },
2612
+ addIssues: {
2613
+ value: (t) => {
2614
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, ge, 2);
2615
+ }
2616
+ // enumerable: false,
2617
+ },
2618
+ isEmpty: {
2619
+ get() {
2620
+ return e.issues.length === 0;
2621
+ }
2622
+ // enumerable: false,
2623
+ }
2624
+ });
2625
+ }, li = d("ZodError", yo), j = d("ZodError", yo, {
2626
+ Parent: Error
2627
+ }), ui = /* @__PURE__ */ we(j), pi = /* @__PURE__ */ Se(j), di = /* @__PURE__ */ pe(j), fi = /* @__PURE__ */ de(j), hi = /* @__PURE__ */ Bo(j), mi = /* @__PURE__ */ Wo(j), gi = /* @__PURE__ */ Go(j), _i = /* @__PURE__ */ qo(j), vi = /* @__PURE__ */ Ko(j), bi = /* @__PURE__ */ Xo(j), yi = /* @__PURE__ */ Yo(j), zi = /* @__PURE__ */ Ho(j), P = /* @__PURE__ */ d("ZodType", (e, o) => (Z.init(e, o), Object.assign(e["~standard"], {
2628
+ jsonSchema: {
2629
+ input: le(e, "input"),
2630
+ output: le(e, "output")
2631
+ }
2632
+ }), e.toJSONSchema = Ir(e, {}), e.def = o, e.type = o.type, Object.defineProperty(e, "_def", { value: o }), e.check = (...t) => e.clone(M(o, {
2633
+ checks: [
2634
+ ...o.checks ?? [],
2635
+ ...t.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
2636
+ ]
2637
+ }), {
2638
+ parent: !0
2639
+ }), e.with = e.check, e.clone = (t, n) => J(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => ui(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => di(e, t, n), e.parseAsync = async (t, n) => pi(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => fi(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => hi(e, t, n), e.decode = (t, n) => mi(e, t, n), e.encodeAsync = async (t, n) => gi(e, t, n), e.decodeAsync = async (t, n) => _i(e, t, n), e.safeEncode = (t, n) => vi(e, t, n), e.safeDecode = (t, n) => bi(e, t, n), e.safeEncodeAsync = async (t, n) => yi(e, t, n), e.safeDecodeAsync = async (t, n) => zi(e, t, n), e.refine = (t, n) => e.check(_a(t, n)), e.superRefine = (t) => e.check(va(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ X(t)), e.optional = () => Ve(e), e.exactOptional = () => ta(e), e.nullable = () => Be(e), e.nullish = () => Ve(Be(e)), e.nonoptional = (t) => ca(e, t), e.array = () => U(e), e.or = (t) => v([e, t]), e.and = (t) => Xi(e, t), e.transform = (t) => We(e, ea(t)), e.default = (t) => ia(e, t), e.prefault = (t) => sa(e, t), e.catch = (t) => ua(e, t), e.pipe = (t) => We(e, t), e.readonly = () => fa(e), e.describe = (t) => {
2640
+ const n = e.clone();
2641
+ return Y.add(n, { description: t }), n;
2642
+ }, Object.defineProperty(e, "description", {
2643
+ get() {
2644
+ return Y.get(e)?.description;
2645
+ },
2646
+ configurable: !0
2647
+ }), e.meta = (...t) => {
2648
+ if (t.length === 0)
2649
+ return Y.get(e);
2650
+ const n = e.clone();
2651
+ return Y.add(n, t[0]), n;
2652
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), zo = /* @__PURE__ */ d("_ZodString", (e, o) => {
2653
+ $e.init(e, o), P.init(e, o), e._zod.processJSONSchema = (n, r, a) => Er(e, n, r);
2654
+ const t = e._zod.bag;
2655
+ e.format = t.format ?? null, e.minLength = t.minimum ?? null, e.maxLength = t.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ mr(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ vr(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ br(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ yr(...n)), e.min = (...n) => e.check(/* @__PURE__ */ ce(...n)), e.max = (...n) => e.check(/* @__PURE__ */ ho(...n)), e.length = (...n) => e.check(/* @__PURE__ */ mo(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ ce(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ gr(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ _r(n)), e.trim = () => e.check(/* @__PURE__ */ kr()), e.normalize = (...n) => e.check(/* @__PURE__ */ zr(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ wr()), e.toUpperCase = () => e.check(/* @__PURE__ */ Sr()), e.slugify = () => e.check(/* @__PURE__ */ $r());
2656
+ }), ki = /* @__PURE__ */ d("ZodString", (e, o) => {
2657
+ $e.init(e, o), zo.init(e, o), e.email = (t) => e.check(/* @__PURE__ */ Dn(wi, t)), e.url = (t) => e.check(/* @__PURE__ */ Jn(Si, t)), e.jwt = (t) => e.check(/* @__PURE__ */ rr(Ui, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Vn($i, t)), e.guid = (t) => e.check(/* @__PURE__ */ De(Me, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Un(re, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Fn(re, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Ln(re, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Mn(re, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Bn(Zi, t)), e.guid = (t) => e.check(/* @__PURE__ */ De(Me, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Wn(Pi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ Gn(Ti, t)), e.ulid = (t) => e.check(/* @__PURE__ */ qn(Oi, t)), e.base64 = (t) => e.check(/* @__PURE__ */ or(ji, t)), e.base64url = (t) => e.check(/* @__PURE__ */ tr(Ri, t)), e.xid = (t) => e.check(/* @__PURE__ */ Kn(Ii, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Xn(Ni, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Yn(Ei, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Hn(Ci, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Qn(Ai, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ er(xi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ nr(Di, t)), e.datetime = (t) => e.check(ti(t)), e.date = (t) => e.check(ri(t)), e.time = (t) => e.check(ai(t)), e.duration = (t) => e.check(ci(t));
2658
+ });
2659
+ function c(e) {
2660
+ return /* @__PURE__ */ Rn(ki, e);
2661
+ }
2662
+ const I = /* @__PURE__ */ d("ZodStringFormat", (e, o) => {
2663
+ T.init(e, o), zo.init(e, o);
2664
+ }), wi = /* @__PURE__ */ d("ZodEmail", (e, o) => {
2665
+ Lt.init(e, o), I.init(e, o);
2666
+ }), Me = /* @__PURE__ */ d("ZodGUID", (e, o) => {
2667
+ Ut.init(e, o), I.init(e, o);
2668
+ }), re = /* @__PURE__ */ d("ZodUUID", (e, o) => {
2669
+ Ft.init(e, o), I.init(e, o);
2670
+ }), Si = /* @__PURE__ */ d("ZodURL", (e, o) => {
2671
+ Mt.init(e, o), I.init(e, o);
2672
+ }), $i = /* @__PURE__ */ d("ZodEmoji", (e, o) => {
2673
+ Jt.init(e, o), I.init(e, o);
2674
+ }), Zi = /* @__PURE__ */ d("ZodNanoID", (e, o) => {
2675
+ Vt.init(e, o), I.init(e, o);
2676
+ }), Pi = /* @__PURE__ */ d("ZodCUID", (e, o) => {
2677
+ Bt.init(e, o), I.init(e, o);
2678
+ }), Ti = /* @__PURE__ */ d("ZodCUID2", (e, o) => {
2679
+ Wt.init(e, o), I.init(e, o);
2680
+ }), Oi = /* @__PURE__ */ d("ZodULID", (e, o) => {
2681
+ Gt.init(e, o), I.init(e, o);
2682
+ }), Ii = /* @__PURE__ */ d("ZodXID", (e, o) => {
2683
+ qt.init(e, o), I.init(e, o);
2684
+ }), Ni = /* @__PURE__ */ d("ZodKSUID", (e, o) => {
2685
+ Kt.init(e, o), I.init(e, o);
2686
+ }), Ei = /* @__PURE__ */ d("ZodIPv4", (e, o) => {
2687
+ en.init(e, o), I.init(e, o);
2688
+ }), Ci = /* @__PURE__ */ d("ZodIPv6", (e, o) => {
2689
+ on.init(e, o), I.init(e, o);
2690
+ }), Ai = /* @__PURE__ */ d("ZodCIDRv4", (e, o) => {
2691
+ tn.init(e, o), I.init(e, o);
2692
+ }), xi = /* @__PURE__ */ d("ZodCIDRv6", (e, o) => {
2693
+ nn.init(e, o), I.init(e, o);
2694
+ }), ji = /* @__PURE__ */ d("ZodBase64", (e, o) => {
2695
+ rn.init(e, o), I.init(e, o);
2696
+ }), Ri = /* @__PURE__ */ d("ZodBase64URL", (e, o) => {
2697
+ sn.init(e, o), I.init(e, o);
2698
+ }), Di = /* @__PURE__ */ d("ZodE164", (e, o) => {
2699
+ cn.init(e, o), I.init(e, o);
2700
+ }), Ui = /* @__PURE__ */ d("ZodJWT", (e, o) => {
2701
+ un.init(e, o), I.init(e, o);
2702
+ }), ko = /* @__PURE__ */ d("ZodNumber", (e, o) => {
2703
+ lo.init(e, o), P.init(e, o), e._zod.processJSONSchema = (n, r, a) => Cr(e, n, r), e.gt = (n, r) => e.check(/* @__PURE__ */ Fe(n, r)), e.gte = (n, r) => e.check(/* @__PURE__ */ me(n, r)), e.min = (n, r) => e.check(/* @__PURE__ */ me(n, r)), e.lt = (n, r) => e.check(/* @__PURE__ */ Ue(n, r)), e.lte = (n, r) => e.check(/* @__PURE__ */ he(n, r)), e.max = (n, r) => e.check(/* @__PURE__ */ he(n, r)), e.int = (n) => e.check(Je(n)), e.safe = (n) => e.check(Je(n)), e.positive = (n) => e.check(/* @__PURE__ */ Fe(0, n)), e.nonnegative = (n) => e.check(/* @__PURE__ */ me(0, n)), e.negative = (n) => e.check(/* @__PURE__ */ Ue(0, n)), e.nonpositive = (n) => e.check(/* @__PURE__ */ he(0, n)), e.multipleOf = (n, r) => e.check(/* @__PURE__ */ Le(n, r)), e.step = (n, r) => e.check(/* @__PURE__ */ Le(n, r)), e.finite = () => e;
2704
+ const t = e._zod.bag;
2705
+ e.minValue = Math.max(t.minimum ?? Number.NEGATIVE_INFINITY, t.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(t.maximum ?? Number.POSITIVE_INFINITY, t.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (t.format ?? "").includes("int") || Number.isSafeInteger(t.multipleOf ?? 0.5), e.isFinite = !0, e.format = t.format ?? null;
2706
+ });
2707
+ function g(e) {
2708
+ return /* @__PURE__ */ lr(ko, e);
2709
+ }
2710
+ const Fi = /* @__PURE__ */ d("ZodNumberFormat", (e, o) => {
2711
+ pn.init(e, o), ko.init(e, o);
2712
+ });
2713
+ function Je(e) {
2714
+ return /* @__PURE__ */ ur(Fi, e);
2715
+ }
2716
+ const Li = /* @__PURE__ */ d("ZodBoolean", (e, o) => {
2717
+ dn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n);
2718
+ });
2719
+ function f(e) {
2720
+ return /* @__PURE__ */ pr(Li, e);
2721
+ }
2722
+ const Mi = /* @__PURE__ */ d("ZodNull", (e, o) => {
2723
+ fn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => xr(e, t, n);
2724
+ });
2725
+ function y(e) {
2726
+ return /* @__PURE__ */ dr(Mi, e);
2727
+ }
2728
+ const Ji = /* @__PURE__ */ d("ZodUnknown", (e, o) => {
2729
+ hn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Rr();
2730
+ });
2731
+ function s() {
2732
+ return /* @__PURE__ */ fr(Ji);
2733
+ }
2734
+ const Vi = /* @__PURE__ */ d("ZodNever", (e, o) => {
2735
+ mn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => jr(e, t, n);
2736
+ });
2737
+ function Bi(e) {
2738
+ return /* @__PURE__ */ hr(Vi, e);
2739
+ }
2740
+ const Wi = /* @__PURE__ */ d("ZodArray", (e, o) => {
2741
+ gn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Lr(e, t, n, r), e.element = o.element, e.min = (t, n) => e.check(/* @__PURE__ */ ce(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ ce(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ ho(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ mo(t, n)), e.unwrap = () => e.element;
2742
+ });
2743
+ function U(e, o) {
2744
+ return /* @__PURE__ */ Zr(Wi, e, o);
2745
+ }
2746
+ const Gi = /* @__PURE__ */ d("ZodObject", (e, o) => {
2747
+ vn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Mr(e, t, n, r), $(e, "shape", () => o.shape), e.keyof = () => b(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({ ...e._zod.def, catchall: t }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: s() }), e.loose = () => e.clone({ ...e._zod.def, catchall: s() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Bi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (t) => jo(e, t), e.safeExtend = (t) => Ro(e, t), e.merge = (t) => Do(e, t), e.pick = (t) => Ao(e, t), e.omit = (t) => xo(e, t), e.partial = (...t) => Uo(wo, e, t[0]), e.required = (...t) => Fo(So, e, t[0]);
2748
+ });
2749
+ function z(e, o) {
2750
+ const t = {
2751
+ type: "object",
2752
+ shape: e ?? {},
2753
+ ...k(o)
2754
+ };
2755
+ return new Gi(t);
2756
+ }
2757
+ const qi = /* @__PURE__ */ d("ZodUnion", (e, o) => {
2758
+ bn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Jr(e, t, n, r), e.options = o.options;
2759
+ });
2760
+ function v(e, o) {
2761
+ return new qi({
2762
+ type: "union",
2763
+ options: e,
2764
+ ...k(o)
2765
+ });
2766
+ }
2767
+ const Ki = /* @__PURE__ */ d("ZodIntersection", (e, o) => {
2768
+ yn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Vr(e, t, n, r);
2769
+ });
2770
+ function Xi(e, o) {
2771
+ return new Ki({
2772
+ type: "intersection",
2773
+ left: e,
2774
+ right: o
2775
+ });
2776
+ }
2777
+ const Yi = /* @__PURE__ */ d("ZodTuple", (e, o) => {
2778
+ zn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Br(e, t, n, r), e.rest = (t) => e.clone({
2779
+ ...e._zod.def,
2780
+ rest: t
2781
+ });
2782
+ });
2783
+ function W(e, o, t) {
2784
+ const n = o instanceof Z, r = n ? t : o, a = n ? o : null;
2785
+ return new Yi({
2786
+ type: "tuple",
2787
+ items: e,
2788
+ rest: a,
2789
+ ...k(r)
2790
+ });
2791
+ }
2792
+ const Hi = /* @__PURE__ */ d("ZodRecord", (e, o) => {
2793
+ kn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Wr(e, t, n, r), e.keyType = o.keyType, e.valueType = o.valueType;
2794
+ });
2795
+ function H(e, o, t) {
2796
+ return new Hi({
2797
+ type: "record",
2798
+ keyType: e,
2799
+ valueType: o,
2800
+ ...k(t)
2801
+ });
2802
+ }
2803
+ const ve = /* @__PURE__ */ d("ZodEnum", (e, o) => {
2804
+ wn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (n, r, a) => Dr(e, n, r), e.enum = o.entries, e.options = Object.values(o.entries);
2805
+ const t = new Set(Object.keys(o.entries));
2806
+ e.extract = (n, r) => {
2807
+ const a = {};
2808
+ for (const i of n)
2809
+ if (t.has(i))
2810
+ a[i] = o.entries[i];
2811
+ else
2812
+ throw new Error(`Key ${i} not found in enum`);
2813
+ return new ve({
2814
+ ...o,
2815
+ checks: [],
2816
+ ...k(r),
2817
+ entries: a
2818
+ });
2819
+ }, e.exclude = (n, r) => {
2820
+ const a = { ...o.entries };
2821
+ for (const i of n)
2822
+ if (t.has(i))
2823
+ delete a[i];
2824
+ else
2825
+ throw new Error(`Key ${i} not found in enum`);
2826
+ return new ve({
2827
+ ...o,
2828
+ checks: [],
2829
+ ...k(r),
2830
+ entries: a
2831
+ });
2832
+ };
2833
+ });
2834
+ function b(e, o) {
2835
+ const t = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
2836
+ return new ve({
2837
+ type: "enum",
2838
+ entries: t,
2839
+ ...k(o)
2840
+ });
2841
+ }
2842
+ const Qi = /* @__PURE__ */ d("ZodTransform", (e, o) => {
2843
+ Sn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Fr(e, t), e._zod.parse = (t, n) => {
2844
+ if (n.direction === "backward")
2845
+ throw new Ge(e.constructor.name);
2846
+ t.addIssue = (a) => {
2847
+ if (typeof a == "string")
2848
+ t.issues.push(Q(a, t.value, o));
2849
+ else {
2850
+ const i = a;
2851
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = t.value), i.inst ?? (i.inst = e), t.issues.push(Q(i));
2852
+ }
2853
+ };
2854
+ const r = o.transform(t.value, t);
2855
+ return r instanceof Promise ? r.then((a) => (t.value = a, t)) : (t.value = r, t);
2856
+ };
2857
+ });
2858
+ function ea(e) {
2859
+ return new Qi({
2860
+ type: "transform",
2861
+ transform: e
2862
+ });
2863
+ }
2864
+ const wo = /* @__PURE__ */ d("ZodOptional", (e, o) => {
2865
+ fo.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => bo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2866
+ });
2867
+ function Ve(e) {
2868
+ return new wo({
2869
+ type: "optional",
2870
+ innerType: e
2871
+ });
2872
+ }
2873
+ const oa = /* @__PURE__ */ d("ZodExactOptional", (e, o) => {
2874
+ $n.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => bo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2875
+ });
2876
+ function ta(e) {
2877
+ return new oa({
2878
+ type: "optional",
2879
+ innerType: e
2880
+ });
2881
+ }
2882
+ const na = /* @__PURE__ */ d("ZodNullable", (e, o) => {
2883
+ Zn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Gr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2884
+ });
2885
+ function Be(e) {
2886
+ return new na({
2887
+ type: "nullable",
2888
+ innerType: e
2889
+ });
2890
+ }
2891
+ const ra = /* @__PURE__ */ d("ZodDefault", (e, o) => {
2892
+ Pn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Kr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2893
+ });
2894
+ function ia(e, o) {
2895
+ return new ra({
2896
+ type: "default",
2897
+ innerType: e,
2898
+ get defaultValue() {
2899
+ return typeof o == "function" ? o() : Ye(o);
2900
+ }
2901
+ });
2902
+ }
2903
+ const aa = /* @__PURE__ */ d("ZodPrefault", (e, o) => {
2904
+ Tn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Xr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2905
+ });
2906
+ function sa(e, o) {
2907
+ return new aa({
2908
+ type: "prefault",
2909
+ innerType: e,
2910
+ get defaultValue() {
2911
+ return typeof o == "function" ? o() : Ye(o);
2912
+ }
2913
+ });
2914
+ }
2915
+ const So = /* @__PURE__ */ d("ZodNonOptional", (e, o) => {
2916
+ On.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2917
+ });
2918
+ function ca(e, o) {
2919
+ return new So({
2920
+ type: "nonoptional",
2921
+ innerType: e,
2922
+ ...k(o)
2923
+ });
2924
+ }
2925
+ const la = /* @__PURE__ */ d("ZodCatch", (e, o) => {
2926
+ In.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Yr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2927
+ });
2928
+ function ua(e, o) {
2929
+ return new la({
2930
+ type: "catch",
2931
+ innerType: e,
2932
+ catchValue: typeof o == "function" ? o : () => o
2933
+ });
2934
+ }
2935
+ const pa = /* @__PURE__ */ d("ZodPipe", (e, o) => {
2936
+ Nn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Hr(e, t, n, r), e.in = o.in, e.out = o.out;
2937
+ });
2938
+ function We(e, o) {
2939
+ return new pa({
2940
+ type: "pipe",
2941
+ in: e,
2942
+ out: o
2943
+ // ...util.normalizeParams(params),
2944
+ });
2945
+ }
2946
+ const da = /* @__PURE__ */ d("ZodReadonly", (e, o) => {
2947
+ En.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2948
+ });
2949
+ function fa(e) {
2950
+ return new da({
2951
+ type: "readonly",
2952
+ innerType: e
2953
+ });
2954
+ }
2955
+ const ha = /* @__PURE__ */ d("ZodLazy", (e, o) => {
2956
+ Cn.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => ei(e, t, n, r), e.unwrap = () => e._zod.def.getter();
2957
+ });
2958
+ function ma(e) {
2959
+ return new ha({
2960
+ type: "lazy",
2961
+ getter: e
2962
+ });
2963
+ }
2964
+ const ga = /* @__PURE__ */ d("ZodCustom", (e, o) => {
2965
+ An.init(e, o), P.init(e, o), e._zod.processJSONSchema = (t, n, r) => Ur(e, t);
2966
+ });
2967
+ function _a(e, o = {}) {
2968
+ return /* @__PURE__ */ Pr(ga, e, o);
2969
+ }
2970
+ function va(e) {
2971
+ return /* @__PURE__ */ Tr(e);
2972
+ }
2973
+ const m = v([
2974
+ c(),
2975
+ g(),
2976
+ f(),
2977
+ y(),
2978
+ z({ path: c() })
2979
+ ]), ie = ma(
2980
+ () => v([
2981
+ z({ and: U(ie) }),
2982
+ z({ or: U(ie) }),
2983
+ z({ not: ie }),
2984
+ z({ path: c() }),
2985
+ z({ eq: W([m, m]) }),
2986
+ z({ neq: W([m, m]) }),
2987
+ z({ gt: W([m, m]) }),
2988
+ z({ gte: W([m, m]) }),
2989
+ z({ lt: W([m, m]) }),
2990
+ z({ lte: W([m, m]) })
2991
+ ])
2992
+ ), ba = v([
2993
+ f(),
2994
+ z({ path: c() }),
2995
+ z({ auth: b(["signedIn", "signedOut"]) }),
2996
+ ie
2997
+ ]), ya = z({
2998
+ title: c(),
2999
+ message: c(),
3000
+ variant: b(["default", "danger"]).optional(),
3001
+ confirmLabel: c().optional(),
3002
+ cancelLabel: c().optional()
3003
+ }), za = z({
3004
+ name: c(),
3005
+ params: H(c(), m).optional(),
3006
+ confirm: ya.optional(),
3007
+ onSuccess: z({ set: H(c(), m) }).optional(),
3008
+ onError: z({ set: H(c(), m) }).optional()
3009
+ }), ka = z({
3010
+ items: U(s()),
3011
+ // Array of items to display in the dropdown
3012
+ value: U(s()).optional(),
3013
+ // The controlled input value
3014
+ open: f().optional(),
3015
+ // Whether the popup is open (controlled)
3016
+ children: v([c(), g(), f(), y(), m]).optional(),
3017
+ // Autocomplete content (input group, popup content)
3018
+ className: c().optional(),
3019
+ // Additional CSS classes
3020
+ label: v([c(), g(), f(), y(), m]).optional(),
3021
+ // Label content (enables Field wrapper)
3022
+ required: f().optional(),
3023
+ // Whether the field is required
3024
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3025
+ // Tooltip content to display next to the label
3026
+ description: v([c(), g(), f(), y(), m]).optional(),
3027
+ // Helper text displayed below the field
3028
+ error: s().optional()
3029
+ // Error message or validation error object
3030
+ }), wa = z({
3031
+ variant: b(["primary", "secondary", "error", "warning", "success", "destructive", "info", "beta", "outline", "red", "green", "neutral", "orange", "purple", "teal", "teal-subtle", "blue"]).optional(),
3032
+ // Color variant of the badge. Recommended semantic variants: - `"primary"` — Primary badge - `"secondary"` — Secondary badge - `"error"` — Error badge - `"warning"` — Warning badge - `"success"` — Success badge - `"info"` — Info badge Additional token variants: - `"red"`, `"orange"`, `"green"`, `"teal"`, `"blue"`, `"purple"`, `"neutral"` - `"teal-subtle"`, `"neutral-subtle"` - `"inverted"` - `"outline"` — Bordered badge with transparent background - `"beta"` — Dashed-border badge for beta/experimental features
3033
+ appearance: b(["filled", "dot"]).optional(),
3034
+ // Visual appearance of the badge. - `"filled"` — Filled background using the variant color (default) - `"dot"` — Outlined badge with a colored circle dot. Only `success`, `warning`, `error`, and `neutral` variants show a dot; other variants render the badge without a dot.
3035
+ className: c().optional(),
3036
+ // Additional CSS classes merged via `cn()`.
3037
+ children: v([c(), g(), f(), y(), m]).optional()
3038
+ // Content rendered inside the badge.
3039
+ }), Sa = z({
3040
+ className: c().optional(),
3041
+ // Additional CSS classes merged via `cn()`.
3042
+ id: c().optional(),
3043
+ lang: c().optional(),
3044
+ icon: v([c(), g(), f(), y(), m]).optional(),
3045
+ // Icon element rendered before the banner content (e.g. from `@phosphor-icons/react`).
3046
+ title: c().optional(),
3047
+ // Primary heading text for the banner. Use for i18n string injection.
3048
+ description: v([c(), g(), f(), y(), m]).optional(),
3049
+ // Secondary description text displayed below the title. Use for i18n string injection.
3050
+ action: v([c(), g(), f(), y(), m]).optional(),
3051
+ // Action slot rendered at the trailing end of the banner (e.g. a CTA button or link). Only used in structured mode (with `title` or `description`).
3052
+ text: c().optional(),
3053
+ children: v([c(), g(), f(), y(), m]).optional(),
3054
+ variant: b(["default", "alert", "error", "secondary"]).optional()
3055
+ // Visual style of the banner. - `"default"` — Informational blue banner for general messages - `"alert"` — Warning yellow banner for cautionary messages - `"error"` — Error red banner for critical issues - `"secondary"` — Neutral banner for secondary messages
3056
+ }), $a = z({
3057
+ size: b(["sm", "base"]).optional(),
3058
+ // Size of the breadcrumbs. - `"sm"` — Compact breadcrumbs for dense UIs - `"base"` — Default breadcrumbs size
3059
+ children: v([c(), g(), f(), y(), m]).optional(),
3060
+ className: c().optional()
3061
+ // Additional CSS classes merged via `cn()`.
3062
+ }), Za = z({
3063
+ shape: b(["base", "square", "circle"]).optional(),
3064
+ size: b(["xs", "sm", "base", "lg"]).optional(),
3065
+ variant: b(["primary", "secondary", "ghost", "destructive", "secondary-destructive", "outline"]).optional(),
3066
+ children: v([c(), g(), f(), y(), m]).optional(),
3067
+ className: c().optional(),
3068
+ icon: v([c(), g(), f(), y(), m]).optional(),
3069
+ // Icon from `@phosphor-icons/react` or a React element. Rendered before children.
3070
+ loading: f().optional(),
3071
+ // Shows a loading spinner and disables interaction.
3072
+ title: c().optional(),
3073
+ id: c().optional(),
3074
+ lang: c().optional(),
3075
+ disabled: f().optional(),
3076
+ name: c().optional(),
3077
+ type: b(["submit", "reset", "button"]).optional(),
3078
+ value: s().optional()
3079
+ }), Pa = z({
3080
+ variant: b(["default", "error"]).optional(),
3081
+ // Visual variant: "default" or "error" for validation failures (visual only, no error text)
3082
+ label: v([c(), g(), f(), y(), m]).optional(),
3083
+ // Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
3084
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3085
+ // Tooltip content to display next to the label via an info icon
3086
+ controlFirst: f().optional(),
3087
+ // When true (default), checkbox appears before label. When false, label appears before checkbox.
3088
+ checked: f().optional(),
3089
+ // Whether the checkbox is checked (controlled)
3090
+ indeterminate: f().optional(),
3091
+ // Whether the checkbox is in indeterminate state
3092
+ disabled: f().optional(),
3093
+ // Whether the checkbox is disabled
3094
+ name: c().optional(),
3095
+ // Name for form submission
3096
+ required: f().optional(),
3097
+ // Whether the field is required
3098
+ className: c().optional()
3099
+ // Additional class name
3100
+ }), Ta = z({
3101
+ size: b(["sm", "base", "lg"]).optional(),
3102
+ // Size of the clipboard text field. - `"sm"` — Small clipboard text for compact UIs - `"base"` — Default clipboard text size - `"lg"` — Large clipboard text for prominent display
3103
+ text: c(),
3104
+ // The text to display and copy to clipboard.
3105
+ textToCopy: c().optional(),
3106
+ // If provided, this text will be copied to clipboard instead of the `text` prop.
3107
+ className: c().optional(),
3108
+ // Additional CSS classes merged via `cn()`.
3109
+ tooltip: s().optional(),
3110
+ // Tooltip config. Shows tooltip on hover, anchored toast on click.
3111
+ labels: s().optional()
3112
+ // Accessible labels for i18n.
3113
+ }), Oa = z({
3114
+ children: v([c(), g(), f(), y(), m]).optional(),
3115
+ className: c().optional(),
3116
+ height: s().optional(),
3117
+ id: c().optional(),
3118
+ lang: c().optional(),
3119
+ media: c().optional(),
3120
+ method: c().optional(),
3121
+ name: c().optional(),
3122
+ target: c().optional(),
3123
+ type: c().optional(),
3124
+ width: s().optional(),
3125
+ accentHeight: s().optional(),
3126
+ accumulate: b(["none", "sum"]).optional(),
3127
+ additive: b(["replace", "sum"]).optional(),
3128
+ alignmentBaseline: b(["auto", "baseline", "before-edge", "text-before-edge", "middle", "central", "after-edge", "text-after-edge", "ideographic", "alphabetic", "hanging", "mathematical", "inherit"]).optional(),
3129
+ allowReorder: b(["no", "yes"]).optional(),
3130
+ alphabetic: s().optional(),
3131
+ amplitude: s().optional(),
3132
+ arabicForm: b(["initial", "medial", "terminal", "isolated"]).optional(),
3133
+ ascent: s().optional(),
3134
+ attributeName: c().optional(),
3135
+ attributeType: c().optional(),
3136
+ autoReverse: s().optional(),
3137
+ azimuth: s().optional(),
3138
+ baseFrequency: s().optional(),
3139
+ baselineShift: s().optional(),
3140
+ baseProfile: s().optional(),
3141
+ bbox: s().optional(),
3142
+ begin: s().optional(),
3143
+ bias: s().optional(),
3144
+ by: s().optional(),
3145
+ calcMode: s().optional(),
3146
+ capHeight: s().optional(),
3147
+ clip: s().optional(),
3148
+ clipPath: c().optional(),
3149
+ clipPathUnits: s().optional(),
3150
+ clipRule: s().optional(),
3151
+ colorInterpolation: s().optional(),
3152
+ colorInterpolationFilters: b(["auto", "sRGB", "linearRGB", "inherit"]).optional(),
3153
+ colorProfile: s().optional(),
3154
+ colorRendering: s().optional(),
3155
+ contentScriptType: s().optional(),
3156
+ contentStyleType: s().optional(),
3157
+ cursor: s().optional(),
3158
+ cx: s().optional(),
3159
+ cy: s().optional(),
3160
+ d: c().optional(),
3161
+ decelerate: s().optional(),
3162
+ descent: s().optional(),
3163
+ diffuseConstant: s().optional(),
3164
+ direction: s().optional(),
3165
+ display: s().optional(),
3166
+ divisor: s().optional(),
3167
+ dominantBaseline: b(["auto", "use-script", "no-change", "reset-size", "ideographic", "alphabetic", "hanging", "mathematical", "central", "middle", "text-after-edge", "text-before-edge", "inherit"]).optional(),
3168
+ dur: s().optional(),
3169
+ dx: s().optional(),
3170
+ dy: s().optional(),
3171
+ edgeMode: s().optional(),
3172
+ elevation: s().optional(),
3173
+ enableBackground: s().optional(),
3174
+ end: s().optional(),
3175
+ exponent: s().optional(),
3176
+ externalResourcesRequired: s().optional(),
3177
+ fill: c().optional(),
3178
+ fillOpacity: s().optional(),
3179
+ fillRule: b(["nonzero", "evenodd", "inherit"]).optional(),
3180
+ filter: c().optional(),
3181
+ filterRes: s().optional(),
3182
+ filterUnits: s().optional(),
3183
+ floodColor: s().optional(),
3184
+ floodOpacity: s().optional(),
3185
+ focusable: s().optional(),
3186
+ fontFamily: c().optional(),
3187
+ fontSize: s().optional(),
3188
+ fontSizeAdjust: s().optional(),
3189
+ fontStretch: s().optional(),
3190
+ fontStyle: s().optional(),
3191
+ fontVariant: s().optional(),
3192
+ fontWeight: s().optional(),
3193
+ format: s().optional(),
3194
+ fr: s().optional(),
3195
+ from: s().optional(),
3196
+ fx: s().optional(),
3197
+ fy: s().optional(),
3198
+ g1: s().optional(),
3199
+ g2: s().optional(),
3200
+ glyphName: s().optional(),
3201
+ glyphOrientationHorizontal: s().optional(),
3202
+ glyphOrientationVertical: s().optional(),
3203
+ glyphRef: s().optional(),
3204
+ gradientTransform: c().optional(),
3205
+ gradientUnits: c().optional(),
3206
+ hanging: s().optional(),
3207
+ horizAdvX: s().optional(),
3208
+ horizOriginX: s().optional(),
3209
+ href: c().optional(),
3210
+ ideographic: s().optional(),
3211
+ imageRendering: s().optional(),
3212
+ in2: s().optional(),
3213
+ in: c().optional(),
3214
+ intercept: s().optional(),
3215
+ k1: s().optional(),
3216
+ k2: s().optional(),
3217
+ k3: s().optional(),
3218
+ k4: s().optional(),
3219
+ k: s().optional(),
3220
+ kernelMatrix: s().optional(),
3221
+ kernelUnitLength: s().optional(),
3222
+ kerning: s().optional(),
3223
+ keyPoints: s().optional(),
3224
+ keySplines: s().optional(),
3225
+ keyTimes: s().optional(),
3226
+ lengthAdjust: s().optional(),
3227
+ letterSpacing: s().optional(),
3228
+ lightingColor: s().optional(),
3229
+ limitingConeAngle: s().optional(),
3230
+ local: s().optional(),
3231
+ markerEnd: c().optional(),
3232
+ markerHeight: s().optional(),
3233
+ markerMid: c().optional(),
3234
+ markerStart: c().optional(),
3235
+ markerUnits: s().optional(),
3236
+ markerWidth: s().optional(),
3237
+ mask: c().optional(),
3238
+ maskContentUnits: s().optional(),
3239
+ maskUnits: s().optional(),
3240
+ mathematical: s().optional(),
3241
+ mode: s().optional(),
3242
+ numOctaves: s().optional(),
3243
+ offset: s().optional(),
3244
+ opacity: s().optional(),
3245
+ operator: s().optional(),
3246
+ order: s().optional(),
3247
+ orient: s().optional(),
3248
+ orientation: s().optional(),
3249
+ origin: s().optional(),
3250
+ overflow: s().optional(),
3251
+ overlinePosition: s().optional(),
3252
+ overlineThickness: s().optional(),
3253
+ paintOrder: s().optional(),
3254
+ panose1: s().optional(),
3255
+ path: c().optional(),
3256
+ pathLength: s().optional(),
3257
+ patternContentUnits: c().optional(),
3258
+ patternTransform: s().optional(),
3259
+ patternUnits: c().optional(),
3260
+ pointerEvents: s().optional(),
3261
+ points: c().optional(),
3262
+ pointsAtX: s().optional(),
3263
+ pointsAtY: s().optional(),
3264
+ pointsAtZ: s().optional(),
3265
+ preserveAlpha: s().optional(),
3266
+ preserveAspectRatio: c().optional(),
3267
+ primitiveUnits: s().optional(),
3268
+ r: s().optional(),
3269
+ radius: s().optional(),
3270
+ refX: s().optional(),
3271
+ refY: s().optional(),
3272
+ renderingIntent: s().optional(),
3273
+ repeatCount: s().optional(),
3274
+ repeatDur: s().optional(),
3275
+ requiredExtensions: s().optional(),
3276
+ requiredFeatures: s().optional(),
3277
+ restart: s().optional(),
3278
+ result: c().optional(),
3279
+ rotate: s().optional(),
3280
+ rx: s().optional(),
3281
+ ry: s().optional(),
3282
+ scale: s().optional(),
3283
+ seed: s().optional(),
3284
+ shapeRendering: s().optional(),
3285
+ slope: s().optional(),
3286
+ spacing: s().optional(),
3287
+ specularConstant: s().optional(),
3288
+ specularExponent: s().optional(),
3289
+ speed: s().optional(),
3290
+ spreadMethod: c().optional(),
3291
+ startOffset: s().optional(),
3292
+ stdDeviation: s().optional(),
3293
+ stemh: s().optional(),
3294
+ stemv: s().optional(),
3295
+ stitchTiles: s().optional(),
3296
+ stopColor: c().optional(),
3297
+ stopOpacity: s().optional(),
3298
+ strikethroughPosition: s().optional(),
3299
+ strikethroughThickness: s().optional(),
3300
+ string: s().optional(),
3301
+ stroke: c().optional(),
3302
+ strokeDasharray: s().optional(),
3303
+ strokeDashoffset: s().optional(),
3304
+ strokeLinecap: b(["butt", "round", "square", "inherit"]).optional(),
3305
+ strokeLinejoin: b(["miter", "round", "bevel", "inherit"]).optional(),
3306
+ strokeMiterlimit: s().optional(),
3307
+ strokeOpacity: s().optional(),
3308
+ strokeWidth: s().optional(),
3309
+ surfaceScale: s().optional(),
3310
+ systemLanguage: s().optional(),
3311
+ tableValues: s().optional(),
3312
+ targetX: s().optional(),
3313
+ targetY: s().optional(),
3314
+ textAnchor: b(["start", "middle", "end", "inherit"]).optional(),
3315
+ textDecoration: s().optional(),
3316
+ textLength: s().optional(),
3317
+ textRendering: s().optional(),
3318
+ to: s().optional(),
3319
+ transform: c().optional(),
3320
+ u1: s().optional(),
3321
+ u2: s().optional(),
3322
+ underlinePosition: s().optional(),
3323
+ underlineThickness: s().optional(),
3324
+ unicode: s().optional(),
3325
+ unicodeBidi: s().optional(),
3326
+ unicodeRange: s().optional(),
3327
+ unitsPerEm: s().optional(),
3328
+ vAlphabetic: s().optional(),
3329
+ values: c().optional(),
3330
+ vectorEffect: s().optional(),
3331
+ version: c().optional(),
3332
+ vertAdvY: s().optional(),
3333
+ vertOriginX: s().optional(),
3334
+ vertOriginY: s().optional(),
3335
+ vHanging: s().optional(),
3336
+ vIdeographic: s().optional(),
3337
+ viewBox: c().optional(),
3338
+ viewTarget: s().optional(),
3339
+ visibility: s().optional(),
3340
+ vMathematical: s().optional(),
3341
+ widths: s().optional(),
3342
+ wordSpacing: s().optional(),
3343
+ writingMode: s().optional(),
3344
+ x1: s().optional(),
3345
+ x2: s().optional(),
3346
+ x: s().optional(),
3347
+ xChannelSelector: c().optional(),
3348
+ xHeight: s().optional(),
3349
+ xlinkActuate: c().optional(),
3350
+ xlinkArcrole: c().optional(),
3351
+ xlinkHref: c().optional(),
3352
+ xlinkRole: c().optional(),
3353
+ xlinkShow: c().optional(),
3354
+ xlinkTitle: c().optional(),
3355
+ xlinkType: c().optional(),
3356
+ xmlBase: c().optional(),
3357
+ xmlLang: c().optional(),
3358
+ xmlns: c().optional(),
3359
+ xmlnsXlink: c().optional(),
3360
+ xmlSpace: c().optional(),
3361
+ y1: s().optional(),
3362
+ y2: s().optional(),
3363
+ y: s().optional(),
3364
+ yChannelSelector: c().optional(),
3365
+ z: s().optional(),
3366
+ zoomAndPan: c().optional(),
3367
+ variant: b(["glyph", "full"]).optional()
3368
+ // Logo variant - `glyph`: Cloud icon only - `full`: Cloud icon with "CLOUDFLARE" wordmark below
3369
+ }), Ia = z({
3370
+ lang: b(["ts", "tsx", "jsonc", "bash", "css"]).optional(),
3371
+ // Language hint for the code content. - `"ts"` — TypeScript code - `"tsx"` — TypeScript JSX code - `"jsonc"` — JSON with comments - `"bash"` — Shell/Bash commands - `"css"` — CSS styles
3372
+ code: c(),
3373
+ // The code string to display.
3374
+ values: s().optional(),
3375
+ // Template values for `{{key}}` interpolation. Values with `highlight: true` are visually emphasized.
3376
+ className: c().optional()
3377
+ // Additional CSS classes merged via `cn()`.
3378
+ }), Na = z({
3379
+ className: c().optional(),
3380
+ // Additional CSS classes
3381
+ onOpenChange: s().optional()
3382
+ // Callback when collapsed state changes
3383
+ }), Ea = z({
3384
+ size: b(["xs", "sm", "base", "lg"]).optional(),
3385
+ // Size of the combobox trigger. Matches Input component sizes. - `"xs"` — Extra small for compact UIs (h-5 / 20px) - `"sm"` — Small for secondary fields (h-6.5 / 26px) - `"base"` — Default size (h-9 / 36px) - `"lg"` — Large for prominent fields (h-10 / 40px)
3386
+ inputSide: b(["right", "top"]).optional(),
3387
+ // Position of the text input relative to chips in multi-select mode. - `"right"` — Input inline to the right of chips - `"top"` — Input above chips
3388
+ items: U(s()),
3389
+ // Array of items to display in the dropdown
3390
+ value: U(s()).optional(),
3391
+ // Currently selected value(s)
3392
+ children: v([c(), g(), f(), y(), m]).optional(),
3393
+ // Combobox content (trigger, content, items)
3394
+ className: c().optional(),
3395
+ // Additional CSS classes
3396
+ label: v([c(), g(), f(), y(), m]).optional(),
3397
+ // Label content for the combobox (enables Field wrapper) - can be a string or any React node
3398
+ required: f().optional(),
3399
+ // Whether the combobox is required
3400
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3401
+ // Tooltip content to display next to the label via an info icon
3402
+ description: v([c(), g(), f(), y(), m]).optional(),
3403
+ // Helper text displayed below the combobox
3404
+ error: s().optional(),
3405
+ // Error message or validation error object
3406
+ onValueChange: s().optional(),
3407
+ // Callback when selection changes
3408
+ multiple: f().optional(),
3409
+ // Allow multiple selections
3410
+ isItemEqualToValue: s().optional()
3411
+ // Custom equality function for comparing items
3412
+ }), Ca = z({
3413
+ open: f(),
3414
+ // Whether the dialog is open
3415
+ children: v([c(), g(), f(), y(), m]).optional(),
3416
+ // Child content - typically one or more Panel components
3417
+ container: s().optional()
3418
+ // Container element for the portal. Use this to render the command palette inside a Shadow DOM or custom container. Overrides `RekiPortalProvider` context.
3419
+ }), Aa = z({
3420
+ className: c().optional(),
3421
+ // Additional CSS classes
3422
+ children: v([c(), g(), f(), y(), m]).optional()
3423
+ // Child elements
3424
+ }), xa = z({
3425
+ size: b(["sm", "base", "lg"]).optional(),
3426
+ // Calendar size. - `"sm"` — Compact calendar for tight spaces - `"base"` — Default calendar size - `"lg"` — Large calendar for prominent date selection
3427
+ variant: b(["default", "subtle"]).optional(),
3428
+ // Visual variant. - `"default"` — Standard appearance with overlay background - `"subtle"` — Minimal background
3429
+ timezone: c().optional(),
3430
+ // Display timezone string shown in the footer.
3431
+ className: c().optional(),
3432
+ // Additional CSS classes merged via `cn()`.
3433
+ onStartDateChange: s().optional(),
3434
+ // Callback when start date changes
3435
+ onEndDateChange: s().optional()
3436
+ // Callback when end date changes
3437
+ }), ja = z({
3438
+ className: c().optional(),
3439
+ // Additional CSS classes merged via `cn()`.
3440
+ children: v([c(), g(), f(), y(), m]).optional(),
3441
+ // Dialog content (typically Title, Description, Close, and action buttons).
3442
+ container: s().optional(),
3443
+ // Container element for the portal. Use this to render the dialog inside a Shadow DOM or custom container. Overrides `RekiPortalProvider` context.
3444
+ size: b(["base", "sm", "lg", "xl"]).optional()
3445
+ // Dialog width. - `"sm"` — Small (min 288px) for simple confirmations - `"base"` — Default (min 384px) - `"lg"` — Large (min 512px) for complex content - `"xl"` — Extra large (min 768px) for detailed views
3446
+ }), Ra = z({
3447
+ variant: b(["default", "danger"]).optional()
3448
+ // Visual style of the dropdown item. - `"default"` — Standard item appearance - `"danger"` — Destructive action with red text
3449
+ }), Da = z({
3450
+ size: b(["sm", "base", "lg"]).optional(),
3451
+ // Size of the empty state container. - `"sm"` — Compact empty state for smaller containers - `"base"` — Default empty state size - `"lg"` — Large empty state for prominent placement
3452
+ icon: v([c(), g(), f(), y(), m]).optional(),
3453
+ // Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`).
3454
+ title: c(),
3455
+ // Primary heading text for the empty state.
3456
+ description: c().optional(),
3457
+ // Secondary description text displayed below the title.
3458
+ commandLine: c().optional(),
3459
+ // Shell command displayed in a copyable code block.
3460
+ contents: v([c(), g(), f(), y(), m]).optional(),
3461
+ // Additional content (buttons, links) rendered below the description.
3462
+ className: c().optional()
3463
+ // Additional CSS classes merged via `cn()`.
3464
+ }), Ua = z({
3465
+ controlFirst: f().optional(),
3466
+ // When `true`, places the control before the label (for checkbox/switch layouts).
3467
+ children: v([c(), g(), f(), y(), m]).optional(),
3468
+ // The form control element(s) to wrap (Input, Select, Checkbox, etc.).
3469
+ label: v([c(), g(), f(), y(), m]).optional(),
3470
+ // The label content — can be a string or any React node.
3471
+ required: f().optional(),
3472
+ // When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
3473
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3474
+ // Tooltip content displayed next to the label via an info icon.
3475
+ error: s().optional(),
3476
+ // Validation error with a message and a browser `ValidityState` match key.
3477
+ description: v([c(), g(), f(), y(), m]).optional(),
3478
+ // Helper text displayed below the control (hidden when `error` is present).
3479
+ hideLabel: f().optional()
3480
+ // When `true`, Field renders layout, description, and error but skips the `<label>` element. Use when the child component provides its own accessible label (e.g. Select uses Base UI's `Select.Label` to avoid hover/focus coupling from native `<label>`).
3481
+ }), Fa = z({
3482
+ children: v([c(), g(), f(), y(), m]).optional(),
3483
+ // Grid items to render.
3484
+ className: c().optional(),
3485
+ // Additional CSS classes merged via `cn()`.
3486
+ id: c().optional(),
3487
+ lang: c().optional(),
3488
+ title: c().optional(),
3489
+ mobileDivider: f().optional(),
3490
+ // Show dividers between grid items on mobile (only works with `"4up"` variant).
3491
+ gap: b(["none", "sm", "base", "lg"]).optional(),
3492
+ // Gap size between grid items. - `"none"` — No gap - `"sm"` — 12px gap - `"base"` — Responsive gap (8px → 24px → 32px) - `"lg"` — 32px gap
3493
+ variant: b(["2up", "side-by-side", "2-1", "1-2", "1-3up", "3up", "4up", "6up", "1-2-4up"]).optional()
3494
+ // Responsive column layout variant. - `"2up"` — 1 col → 2 cols at md - `"side-by-side"` — Always 2 cols - `"2-1"` — 66%/33% split at md - `"1-2"` — 33%/66% split at md - `"3up"` — 1 → 2 → 3 cols - `"4up"` — 1 → 2 → 3 → 4 cols - `"6up"` — 2 → 3 → 4 → 6 cols - `"1-2-4up"` — 1 → 2 → 4 cols
3495
+ }), La = z({
3496
+ label: v([c(), g(), f(), y(), m]).optional(),
3497
+ // Label content for the input (enables Field wrapper) - can be a string or any React node
3498
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3499
+ // Tooltip content to display next to the label via an info icon
3500
+ description: v([c(), g(), f(), y(), m]).optional(),
3501
+ // Helper text displayed below the input
3502
+ error: s().optional(),
3503
+ // Error message or validation error object
3504
+ passwordManagerIgnore: f().optional(),
3505
+ // Suppress browser extension password manager overlays on non-credential inputs.
3506
+ size: b(["xs", "sm", "base", "lg"]).optional(),
3507
+ // Input size. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default size - `"lg"` — Large for prominent fields
3508
+ variant: b(["default", "error"]).optional()
3509
+ // Visual variant. - `"default"` — Standard input - `"error"` — Error state for validation failures
3510
+ }), Ma = z({}), Ja = z({
3511
+ label: v([c(), g(), f(), y(), m]).optional(),
3512
+ // The label content — can be a string or any React node.
3513
+ description: v([c(), g(), f(), y(), m]).optional(),
3514
+ // Helper text displayed below the control (hidden when `error` is present).
3515
+ error: s().optional(),
3516
+ // Validation error with a message and a browser `ValidityState` match key.
3517
+ required: f().optional(),
3518
+ // When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
3519
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3520
+ // Tooltip content displayed next to the label via an info icon.
3521
+ children: v([c(), g(), f(), y(), m]).optional(),
3522
+ className: c().optional(),
3523
+ id: c().optional(),
3524
+ lang: c().optional(),
3525
+ title: c().optional(),
3526
+ size: b(["xs", "sm", "base", "lg"]).optional(),
3527
+ disabled: f().optional()
3528
+ }), Va = z({
3529
+ children: v([c(), g(), f(), y(), m]).optional(),
3530
+ // The label content — can be a string or any React node.
3531
+ showOptional: f().optional(),
3532
+ // When `true`, shows gray "(optional)" text after the label.
3533
+ tooltip: v([c(), g(), f(), y(), m]).optional(),
3534
+ // Tooltip content displayed next to the label via an info icon.
3535
+ className: c().optional(),
3536
+ // Additional CSS classes merged via `cn()`.
3537
+ htmlFor: c().optional(),
3538
+ // The id of the form element this label is associated with
3539
+ asContent: f().optional()
3540
+ // When true, only renders the inline content (indicators, tooltip) without the outer label element with font styling. Useful when composed inside another label element that already provides the text styling.
3541
+ }), Ba = z({
3542
+ render: v([c(), g(), f(), y(), m]).optional(),
3543
+ // Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
3544
+ children: v([c(), g(), f(), y(), m]).optional(),
3545
+ className: c().optional(),
3546
+ id: c().optional(),
3547
+ lang: c().optional(),
3548
+ title: c().optional()
3549
+ }), Wa = z({
3550
+ variant: b(["inline", "current", "plain"]).optional(),
3551
+ // Visual style of the link. - `"inline"` — Inline text link that flows with content - `"current"` — Link that inherits color from parent text - `"plain"` — Link without underline decoration
3552
+ to: c().optional(),
3553
+ children: v([c(), g(), f(), y(), m]).optional(),
3554
+ className: c().optional(),
3555
+ id: c().optional(),
3556
+ lang: c().optional(),
3557
+ title: c().optional(),
3558
+ download: s().optional(),
3559
+ href: c().optional(),
3560
+ hrefLang: c().optional(),
3561
+ media: c().optional(),
3562
+ ping: c().optional(),
3563
+ target: s().optional(),
3564
+ type: c().optional(),
3565
+ referrerPolicy: b(["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"]).optional(),
3566
+ render: v([c(), g(), f(), y(), m]).optional()
3567
+ // Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
3568
+ }), Ga = z({
3569
+ className: c().optional(),
3570
+ // Additional CSS classes merged via `cn()`.
3571
+ size: b(["sm", "base", "lg"]).optional()
3572
+ // Size of the spinner. Use a preset name or a custom pixel number. - `"sm"` — 16px, for inline use - `"base"` — 24px, default size - `"lg"` — 32px, for prominent loading states
3573
+ }), qa = z({
3574
+ className: c().optional(),
3575
+ // Additional CSS classes merged via `cn()`.
3576
+ isActive: s().optional(),
3577
+ // The currently active option value — matched against option index or `id`.
3578
+ options: U(s()),
3579
+ // Array of menu option configurations.
3580
+ optionIds: f().optional()
3581
+ // When true, each option's `id` field is used for matching instead of its array index.
3582
+ }), Ka = z({
3583
+ customValue: c().optional(),
3584
+ // Custom formatted value text (e.g. "750 / 1,000") displayed instead of percentage.
3585
+ label: c(),
3586
+ // Label text displayed above the meter track.
3587
+ showValue: f().optional(),
3588
+ // Whether to display the percentage value next to the label.
3589
+ trackClassName: c().optional(),
3590
+ // Additional CSS classes for the track (background bar).
3591
+ indicatorClassName: c().optional(),
3592
+ // Additional CSS classes for the indicator (filled bar).
3593
+ value: g().optional(),
3594
+ // Current value of the meter
3595
+ max: g().optional(),
3596
+ // Maximum value of the meter (default: 100)
3597
+ min: g().optional()
3598
+ // Minimum value of the meter (default: 0)
3599
+ }), Xa = z({
3600
+ setPage: s(),
3601
+ // Callback when page changes
3602
+ page: g().optional(),
3603
+ // Current page number (1-indexed).
3604
+ perPage: g().optional(),
3605
+ // Number of items displayed per page.
3606
+ totalCount: g().optional(),
3607
+ // Total number of items across all pages.
3608
+ className: c().optional(),
3609
+ // Additional CSS classes for the container
3610
+ labels: s().optional(),
3611
+ // Labels for internationalization of aria-labels. All labels have English defaults. For visible text like "Showing X of Y", use render props on sub-components: - `Pagination.Info` children for the info text - `Pagination.PageSize` label prop for the "Per page:" text
3612
+ children: v([c(), g(), f(), y(), m]).optional(),
3613
+ // Compound component children for custom layouts. Use Pagination.Info, Pagination.PageSize, Pagination.Controls, and Pagination.Separator.
3614
+ controls: b(["full", "simple"]).optional(),
3615
+ text: s().optional()
3616
+ }), Ya = z({
3617
+ side: b(["top", "bottom", "left", "right"]).optional()
3618
+ // Which side of the trigger the popover appears on. - `"top"` — Above the trigger - `"bottom"` — Below the trigger - `"left"` — Left of the trigger - `"right"` — Right of the trigger
3619
+ }), Ha = z({
3620
+ variant: b(["default", "error"]).optional(),
3621
+ appearance: b(["default", "card"]).optional(),
3622
+ className: c().optional(),
3623
+ // Additional CSS classes
3624
+ children: v([c(), g(), f(), y(), m]).optional(),
3625
+ // Child elements
3626
+ value: s().optional(),
3627
+ // The controlled value of the selected radio item.
3628
+ defaultValue: s().optional(),
3629
+ // The uncontrolled initial value of the selected radio item.
3630
+ onValueChange: s().optional()
3631
+ // Callback fired when the selected value changes. The second argument carries native event details about the interaction.
3632
+ }), Qa = z({
3633
+ className: c().optional(),
3634
+ // Additional CSS classes merged via `cn()`.
3635
+ size: b(["xs", "sm", "base", "lg"]).optional(),
3636
+ // Size of the select trigger. Matches Input component sizes.
3637
+ label: v([c(), g(), f(), y(), m]).optional(),
3638
+ // Label content for the select. When provided, enables the Field wrapper with a visible label above the select. For accessibility without a visible label, use `aria-label` instead.
3639
+ hideLabel: f().optional(),
3640
+ placeholder: c().optional(),
3641
+ // Placeholder text shown when no value is selected.
3642
+ loading: f().optional(),
3643
+ // When `true`, shows a skeleton loader in place of the selected value.
3644
+ disabled: f().optional(),
3645
+ // Whether the select is disabled.
3646
+ required: f().optional(),
3647
+ // Whether the select is required. When `false`, shows "(optional)" text.
3648
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3649
+ // Tooltip content displayed next to the label via an info icon.
3650
+ value: s().optional(),
3651
+ // Currently selected value (controlled mode).
3652
+ children: v([c(), g(), f(), y(), m]).optional(),
3653
+ // `Select.Option` elements to render in the dropdown.
3654
+ description: v([c(), g(), f(), y(), m]).optional(),
3655
+ // Helper text displayed below the select.
3656
+ error: s().optional(),
3657
+ // Error message string or validation error object with `match` key.
3658
+ onValueChange: s().optional(),
3659
+ // Callback when selection changes
3660
+ defaultValue: s().optional(),
3661
+ // Initial value for uncontrolled mode
3662
+ renderValue: s().optional(),
3663
+ // A function that returns a ReactNode to format the selected value in the trigger. Required when using object values. Use `placeholder` for the empty state.
3664
+ items: s().optional(),
3665
+ // Data structure of items rendered in the popup. Accepts a plain object map (`{ key: "Label" }`) or an array of `{ label, value }` for object/complex values.
3666
+ isItemEqualToValue: s().optional()
3667
+ // Custom equality function for comparing items. Required when value is an object, since object identity (`===`) won't match across renders.
3668
+ }), es = z({
3669
+ alt: c().optional(),
3670
+ autoComplete: s().optional(),
3671
+ checked: f().optional(),
3672
+ disabled: f().optional(),
3673
+ height: s().optional(),
3674
+ list: c().optional(),
3675
+ name: c().optional(),
3676
+ placeholder: c().optional(),
3677
+ readOnly: f().optional(),
3678
+ required: f().optional(),
3679
+ width: s().optional(),
3680
+ className: c().optional(),
3681
+ id: c().optional(),
3682
+ lang: c().optional(),
3683
+ title: c().optional(),
3684
+ children: v([c(), g(), f(), y(), m]).optional(),
3685
+ value: c().optional(),
3686
+ // Controlled value
3687
+ size: b(["xs", "sm", "base", "lg"]).optional(),
3688
+ // Size of the input. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default input size - `"lg"` — Large for prominent fields
3689
+ variant: b(["default", "error"]).optional(),
3690
+ // Style variant of the input. - `"default"` — Default input appearance - `"error"` — Error state for validation failures
3691
+ label: v([c(), g(), f(), y(), m]).optional(),
3692
+ // Label content for the input (enables Field wrapper and sets masked state label) - can be a string or any React node
3693
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3694
+ // Tooltip content to display next to the label via an info icon
3695
+ description: v([c(), g(), f(), y(), m]).optional(),
3696
+ // Helper text displayed below the input
3697
+ error: s().optional()
3698
+ // Error message or validation error object
3699
+ }), os = z({
3700
+ defaultOpen: f().optional(),
3701
+ // Initial open state when uncontrolled.
3702
+ open: f().optional(),
3703
+ // Controlled open state.
3704
+ variant: b(["sidebar", "floating", "inset"]).optional(),
3705
+ // Sidebar layout variant.
3706
+ side: b(["left", "right"]).optional(),
3707
+ // Which side the sidebar is on.
3708
+ collapsible: b(["icon", "offcanvas", "none"]).optional(),
3709
+ resizable: f().optional(),
3710
+ // Enable drag-to-resize on the sidebar edge.
3711
+ defaultWidth: g().optional(),
3712
+ // Initial width in pixels when resizable.
3713
+ minWidth: g().optional(),
3714
+ // Minimum width in pixels when resizing.
3715
+ maxWidth: g().optional(),
3716
+ // Maximum width in pixels when resizing.
3717
+ contained: f().optional(),
3718
+ // When true, the collapsed sidebar uses absolute positioning instead of fixed, keeping it scoped inside a bounded parent. Useful for demos and embedded sidebars.
3719
+ peekable: f().optional(),
3720
+ // When true, hovering or focusing the collapsed sidebar temporarily expands it. The `state` will be `"peeking"` during the peek. Moving away collapses it back.
3721
+ animationDuration: g().optional(),
3722
+ // Duration of sidebar expand/collapse animation in milliseconds.
3723
+ mobileBreakpoint: g().optional(),
3724
+ // Viewport width (in px) below which the sidebar renders as a mobile dialog sheet instead of the desktop aside rail.
3725
+ children: v([c(), g(), f(), y(), m]).optional(),
3726
+ // Content — typically `<Sidebar>` + main content.
3727
+ className: c().optional()
3728
+ // Additional CSS classes for the wrapper div.
3729
+ }), ts = z({
3730
+ as: s().optional(),
3731
+ render: v([c(), g(), f(), y(), m]).optional(),
3732
+ // Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
3733
+ children: v([c(), g(), f(), y(), m]).optional(),
3734
+ className: c().optional(),
3735
+ id: c().optional(),
3736
+ lang: c().optional(),
3737
+ title: c().optional()
3738
+ }), ns = z({
3739
+ variant: b(["default", "neutral"]).optional(),
3740
+ // Visual variant: "default" (pill, brand color) or "neutral" (squircle, monochrome)
3741
+ label: v([c(), g(), f(), y(), m]).optional(),
3742
+ // Label content for the switch (Field wrapper is built-in) - can be a string or any React node. Optional when used standalone for visual-only purposes.
3743
+ labelTooltip: v([c(), g(), f(), y(), m]).optional(),
3744
+ // Tooltip content to display next to the label via an info icon
3745
+ required: f().optional(),
3746
+ // Whether the switch is required. When explicitly false, shows "(optional)" text after the label.
3747
+ controlFirst: f().optional(),
3748
+ // When true (default), switch appears before label. When false, label appears before switch.
3749
+ size: b(["sm", "base", "lg"]).optional(),
3750
+ checked: f().optional(),
3751
+ disabled: f().optional(),
3752
+ transitioning: f().optional(),
3753
+ name: c().optional(),
3754
+ type: b(["submit", "reset", "button"]).optional(),
3755
+ value: s().optional(),
3756
+ className: c().optional(),
3757
+ id: c().optional(),
3758
+ lang: c().optional(),
3759
+ title: c().optional(),
3760
+ onClick: s()
3761
+ // Callback when switch is clicked
3762
+ }), rs = z({
3763
+ layout: b(["auto", "fixed"]).optional(),
3764
+ variant: b(["default", "selected"]).optional(),
3765
+ sticky: b(["left", "right"]).optional(),
3766
+ className: c().optional(),
3767
+ // Additional CSS classes
3768
+ children: v([c(), g(), f(), y(), m]).optional()
3769
+ // Child elements
3770
+ }), is = z({
3771
+ children: v([c(), g(), f(), y(), m]).optional(),
3772
+ className: c().optional(),
3773
+ id: c().optional(),
3774
+ lang: c().optional(),
3775
+ title: c().optional()
3776
+ }), as = z({
3777
+ tabs: U(s()).optional(),
3778
+ // Array of tab items to render.
3779
+ value: c().optional(),
3780
+ // Controlled value. When set, component becomes controlled.
3781
+ selectedValue: c().optional(),
3782
+ // Default selected value for uncontrolled mode. Ignored when `value` is set.
3783
+ activateOnFocus: f().optional(),
3784
+ // When `true`, tabs are activated immediately upon receiving focus via arrow keys. When `false` (default), tabs receive focus but require Enter/Space to activate.
3785
+ className: c().optional(),
3786
+ // Additional CSS classes for the root element.
3787
+ listClassName: c().optional(),
3788
+ // Additional CSS classes for the tab list element.
3789
+ indicatorClassName: c().optional(),
3790
+ // Additional CSS classes for the indicator element.
3791
+ variant: b(["segmented", "underline"]).optional(),
3792
+ // Tab style. - `"segmented"` — Pill-shaped indicator on a filled track - `"underline"` — Underline indicator below tab text
3793
+ size: b(["base", "sm"]).optional(),
3794
+ // Tab size. - `"base"` — Default size (h-9, text-base) - `"sm"` — Compact size (h-6.5, text-xs) — matches Input size="sm"
3795
+ onValueChange: s().optional()
3796
+ // Callback when active tab changes
3797
+ }), ss = z({
3798
+ variant: b(["heading1", "heading2", "heading3", "body", "secondary", "success", "error", "mono", "mono-secondary"]).optional(),
3799
+ // Text style variant. Determines color, font, and weight. - `"heading1"` — Large page title (30px, semibold) - `"heading2"` — Section title (24px, semibold) - `"heading3"` — Subsection title (18px, semibold) - `"body"` — Default body text - `"secondary"` — Muted text for secondary information - `"success"` — Success state text - `"error"` — Error state text - `"mono"` — Monospace text for code - `"mono-secondary"` — Muted monospace text
3800
+ size: b(["xs", "sm", "base", "lg"]).optional(),
3801
+ // Text size (only applies to body/secondary/success/error variants). - `"xs"` — 12px - `"sm"` — 14px - `"base"` — 16px - `"lg"` — 18px
3802
+ bold: f().optional(),
3803
+ // Whether to use bold font weight (only applies to body variants).
3804
+ truncate: f().optional(),
3805
+ // Whether to truncate overflowing text with an ellipsis. Adds `truncate min-w-0` classes.
3806
+ as: b(["h1", "h2", "h3", "h4", "h5", "h6", "p", "span", "label", "dt", "dd", "li", "figcaption", "legend", "pre", "code", "em", "strong", "small", "abbr", "time"]).optional(),
3807
+ // The HTML element to render. Accepts headings (`"h1"`–`"h6"`), block text (`"p"`, `"pre"`), inline text (`"span"`, `"code"`, `"em"`, `"strong"`, `"small"`, `"abbr"`, `"time"`), form-related (`"label"`, `"legend"`), list/definition (`"dt"`, `"dd"`, `"li"`), and `"figcaption"`. - **Required** for heading variants (`"heading1"`, `"heading2"`, `"heading3"`) — pick the element that reflects this text's place in the document outline, or `"span"` for decorative heading-styled text that is not a section heading. - **Optional** for body variants (defaults to `"p"`) and monospace variants (defaults to `"span"`).
3808
+ children: v([c(), g(), f(), y(), m]).optional()
3809
+ // Text content.
3810
+ }), cs = z({
3811
+ variant: b(["default", "success", "error", "warning", "info"]).optional(),
3812
+ className: c().optional(),
3813
+ // Additional CSS classes
3814
+ children: v([c(), g(), f(), y(), m]).optional()
3815
+ // Child elements
3816
+ }), ls = z({
3817
+ side: b(["top", "bottom", "left", "right"]).optional(),
3818
+ className: c().optional(),
3819
+ // Additional CSS classes
3820
+ children: v([c(), g(), f(), y(), m]).optional(),
3821
+ // Child elements
3822
+ content: v([c(), g(), f(), y(), m])
3823
+ // Content to display in the tooltip
3824
+ }), us = b([
3825
+ "Autocomplete",
3826
+ "Badge",
3827
+ "Banner",
3828
+ "Breadcrumbs",
3829
+ "Button",
3830
+ "Checkbox",
3831
+ "ClipboardText",
3832
+ "CloudflareLogo",
3833
+ "Code",
3834
+ "Collapsible",
3835
+ "Combobox",
3836
+ "CommandPalette",
3837
+ "DatePicker",
3838
+ "DateRangePicker",
3839
+ "Dialog",
3840
+ "DropdownMenu",
3841
+ "Empty",
3842
+ "Field",
3843
+ "Grid",
3844
+ "Input",
3845
+ "InputArea",
3846
+ "InputGroup",
3847
+ "Label",
3848
+ "LayerCard",
3849
+ "Link",
3850
+ "Loader",
3851
+ "MenuBar",
3852
+ "Meter",
3853
+ "Pagination",
3854
+ "Popover",
3855
+ "Radio",
3856
+ "Select",
3857
+ "SensitiveInput",
3858
+ "Sidebar",
3859
+ "Surface",
3860
+ "Switch",
3861
+ "Table",
3862
+ "TableOfContents",
3863
+ "Tabs",
3864
+ "Text",
3865
+ "Toasty",
3866
+ "Tooltip"
3867
+ ]), ps = {
3868
+ Autocomplete: ka,
3869
+ Badge: wa,
3870
+ Banner: Sa,
3871
+ Breadcrumbs: $a,
3872
+ Button: Za,
3873
+ Checkbox: Pa,
3874
+ ClipboardText: Ta,
3875
+ CloudflareLogo: Oa,
3876
+ Code: Ia,
3877
+ Collapsible: Na,
3878
+ Combobox: Ea,
3879
+ CommandPalette: Ca,
3880
+ DatePicker: Aa,
3881
+ DateRangePicker: xa,
3882
+ Dialog: ja,
3883
+ DropdownMenu: Ra,
3884
+ Empty: Da,
3885
+ Field: Ua,
3886
+ Grid: Fa,
3887
+ Input: La,
3888
+ InputArea: Ma,
3889
+ InputGroup: Ja,
3890
+ Label: Va,
3891
+ LayerCard: Ba,
3892
+ Link: Wa,
3893
+ Loader: Ga,
3894
+ MenuBar: qa,
3895
+ Meter: Ka,
3896
+ Pagination: Xa,
3897
+ Popover: Ya,
3898
+ Radio: Ha,
3899
+ Select: Qa,
3900
+ SensitiveInput: es,
3901
+ Sidebar: os,
3902
+ Surface: ts,
3903
+ Switch: ns,
3904
+ Table: rs,
3905
+ TableOfContents: is,
3906
+ Tabs: as,
3907
+ Text: ss,
3908
+ Toasty: cs,
3909
+ Tooltip: ls
3910
+ }, ds = z({
3911
+ key: c(),
3912
+ type: us,
3913
+ props: H(c(), s()),
3914
+ children: U(c()).optional(),
3915
+ parentKey: c().nullable().optional(),
3916
+ visible: ba.optional(),
3917
+ action: za.optional()
3918
+ }), fs = z({
3919
+ root: c(),
3920
+ elements: H(c(), ds)
3921
+ });
3922
+ function ms(e) {
3923
+ const o = ps[e.type];
3924
+ return o ? o.safeParse(e.props) : { success: !1, error: new li([{ code: "custom", message: `Unknown component type: ${e.type}`, path: ["type"] }]) };
3925
+ }
3926
+ function gs(e) {
3927
+ return fs.safeParse(e);
3928
+ }
3929
+ const _s = ["Autocomplete", "Badge", "Banner", "Breadcrumbs", "Button", "Checkbox", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "Grid", "Input", "InputArea", "InputGroup", "Label", "LayerCard", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "Select", "SensitiveInput", "Sidebar", "Surface", "Switch", "Table", "TableOfContents", "Tabs", "Text", "Toasty", "Tooltip"];
3930
+ export {
3931
+ ya as ActionConfirmSchema,
3932
+ za as ActionSchema,
3933
+ ka as AutocompletePropsSchema,
3934
+ wa as BadgePropsSchema,
3935
+ Sa as BannerPropsSchema,
3936
+ $a as BreadcrumbsPropsSchema,
3937
+ Za as ButtonPropsSchema,
3938
+ Pa as CheckboxPropsSchema,
3939
+ Ta as ClipboardTextPropsSchema,
3940
+ Oa as CloudflareLogoPropsSchema,
3941
+ Ia as CodePropsSchema,
3942
+ Na as CollapsiblePropsSchema,
3943
+ Ea as ComboboxPropsSchema,
3944
+ Ca as CommandPalettePropsSchema,
3945
+ ps as ComponentPropsSchemas,
3946
+ Aa as DatePickerPropsSchema,
3947
+ xa as DateRangePickerPropsSchema,
3948
+ ja as DialogPropsSchema,
3949
+ Ra as DropdownMenuPropsSchema,
3950
+ m as DynamicValueSchema,
3951
+ Da as EmptyPropsSchema,
3952
+ Ua as FieldPropsSchema,
3953
+ Fa as GridPropsSchema,
3954
+ Ma as InputAreaPropsSchema,
3955
+ Ja as InputGroupPropsSchema,
3956
+ La as InputPropsSchema,
3957
+ Va as LabelPropsSchema,
3958
+ Ba as LayerCardPropsSchema,
3959
+ Wa as LinkPropsSchema,
3960
+ Ga as LoaderPropsSchema,
3961
+ qa as MenuBarPropsSchema,
3962
+ Ka as MeterPropsSchema,
3963
+ Xa as PaginationPropsSchema,
3964
+ Ya as PopoverPropsSchema,
3965
+ _s as REKI_COMPONENT_NAMES,
3966
+ Ha as RadioPropsSchema,
3967
+ us as RekiComponentTypeSchema,
3968
+ Qa as SelectPropsSchema,
3969
+ es as SensitiveInputPropsSchema,
3970
+ os as SidebarPropsSchema,
3971
+ ts as SurfacePropsSchema,
3972
+ ns as SwitchPropsSchema,
3973
+ is as TableOfContentsPropsSchema,
3974
+ rs as TablePropsSchema,
3975
+ as as TabsPropsSchema,
3976
+ ss as TextPropsSchema,
3977
+ cs as ToastyPropsSchema,
3978
+ ls as TooltipPropsSchema,
3979
+ ds as UIElementBaseSchema,
3980
+ fs as UITreeSchema,
3981
+ ba as VisibilityConditionSchema,
3982
+ ms as validateElementProps,
3983
+ gs as validateUITree
3984
+ };
3985
+ //# sourceMappingURL=schemas.js.map