@cloudraker/reki 2.6.1 → 2.7.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.
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/ai/component-registry.json +1271 -41
- package/ai/component-registry.md +1310 -34
- package/ai/schemas.ts +226 -2
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +554 -5
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/ai/schemas.js +1699 -1405
- package/dist/ai/schemas.js.map +1 -1
- package/dist/chunks/{SankeyChart-jwwpwps4npqzbrvn.js → SankeyChart-gogf860o4u387kjn.js} +2 -2
- package/dist/chunks/{SankeyChart-jwwpwps4npqzbrvn.js.map → SankeyChart-gogf860o4u387kjn.js.map} +1 -1
- package/dist/chunks/actor-display-izds1bhw0yswurqm.js +35 -0
- package/dist/chunks/actor-display-izds1bhw0yswurqm.js.map +1 -0
- package/dist/chunks/address-input-g1la0xqrpg8ic6ak.js +80 -0
- package/dist/chunks/address-input-g1la0xqrpg8ic6ak.js.map +1 -0
- package/dist/chunks/array-display-lu1259ap3qrl847e.js +12 -0
- package/dist/chunks/array-display-lu1259ap3qrl847e.js.map +1 -0
- package/dist/chunks/{autocomplete-f4vetako14h2aqsw.js → autocomplete-htuy5t9ag29qhuwa.js} +4 -4
- package/dist/chunks/{autocomplete-f4vetako14h2aqsw.js.map → autocomplete-htuy5t9ag29qhuwa.js.map} +1 -1
- package/dist/chunks/avatar-g40cun6cn17fcxd4.js +57 -0
- package/dist/chunks/avatar-g40cun6cn17fcxd4.js.map +1 -0
- package/dist/chunks/avatar-group-fpcaziey1yu7226v.js +23 -0
- package/dist/chunks/avatar-group-fpcaziey1yu7226v.js.map +1 -0
- package/dist/chunks/{breadcrumbs-d6149hyct4puz3x4.js → breadcrumbs-mq1utzm0q4u2r5v5.js} +2 -2
- package/dist/chunks/{breadcrumbs-d6149hyct4puz3x4.js.map → breadcrumbs-mq1utzm0q4u2r5v5.js.map} +1 -1
- package/dist/chunks/{button-nc5p1h28cwes0tjw.js → button-fvlz1rzc3s1hpyxs.js} +14 -14
- package/dist/chunks/button-fvlz1rzc3s1hpyxs.js.map +1 -0
- package/dist/chunks/{checkbox-g2661n3eodgoispq.js → checkbox-h3kfhlron3b6sfhv.js} +3 -3
- package/dist/chunks/{checkbox-g2661n3eodgoispq.js.map → checkbox-h3kfhlron3b6sfhv.js.map} +1 -1
- package/dist/chunks/chip-iu7movvthovdurgb.js +69 -0
- package/dist/chunks/chip-iu7movvthovdurgb.js.map +1 -0
- package/dist/chunks/circular-progress-bar-ofg0ps2axad1wsr6.js +60 -0
- package/dist/chunks/circular-progress-bar-ofg0ps2axad1wsr6.js.map +1 -0
- package/dist/chunks/{clipboard-text-g3659lejx2d7i93e.js → clipboard-text-ogue8iq06n1z7q7v.js} +4 -4
- package/dist/chunks/{clipboard-text-g3659lejx2d7i93e.js.map → clipboard-text-ogue8iq06n1z7q7v.js.map} +1 -1
- package/dist/chunks/{collapsible-ndvmgo29s5iqfcor.js → collapsible-ivqat099ene9z3bv.js} +2 -2
- package/dist/chunks/{collapsible-ndvmgo29s5iqfcor.js.map → collapsible-ivqat099ene9z3bv.js.map} +1 -1
- package/dist/chunks/color-sample-h7hspma3rb91go3z.js +32 -0
- package/dist/chunks/color-sample-h7hspma3rb91go3z.js.map +1 -0
- package/dist/chunks/{combobox-i38w67netm8ukw4f.js → combobox-iytvpzp5poljxgek.js} +4 -4
- package/dist/chunks/{combobox-i38w67netm8ukw4f.js.map → combobox-iytvpzp5poljxgek.js.map} +1 -1
- package/dist/chunks/{command-palette-fe5cjfdgsg3t17vq.js → command-palette-k6vrx8ely8rmf4a5.js} +4 -4
- package/dist/chunks/command-palette-k6vrx8ely8rmf4a5.js.map +1 -0
- package/dist/chunks/data-grid-i7kfgm7zr5tj0e0a.js +3110 -0
- package/dist/chunks/data-grid-i7kfgm7zr5tj0e0a.js.map +1 -0
- package/dist/chunks/{dialog-m4go8xof25fospqo.js → dialog-ggx34i6k4eulfvgk.js} +3 -3
- package/dist/chunks/{dialog-m4go8xof25fospqo.js.map → dialog-ggx34i6k4eulfvgk.js.map} +1 -1
- package/dist/chunks/double-text-input-k0i5xnfq6khv01wu.js +39 -0
- package/dist/chunks/double-text-input-k0i5xnfq6khv01wu.js.map +1 -0
- package/dist/chunks/{dropdown-j5uht8mn4z7xc9fc.js → dropdown-bt1lfs2jli0khnex.js} +2 -2
- package/dist/chunks/{dropdown-j5uht8mn4z7xc9fc.js.map → dropdown-bt1lfs2jli0khnex.js.map} +1 -1
- package/dist/chunks/emails-display-nsbqzscr0f9bqimg.js +12 -0
- package/dist/chunks/emails-display-nsbqzscr0f9bqimg.js.map +1 -0
- package/dist/chunks/{empty-kazxr0248zjemw6n.js → empty-dxy8jti5bsxxh905.js} +2 -2
- package/dist/chunks/{empty-kazxr0248zjemw6n.js.map → empty-dxy8jti5bsxxh905.js.map} +1 -1
- package/dist/chunks/expandable-list-bjceh467ocazog53.js +26 -0
- package/dist/chunks/expandable-list-bjceh467ocazog53.js.map +1 -0
- package/dist/chunks/{field-fe5m8z3vbpvtctbe.js → field-b0aywboxuss4rpu7.js} +3 -3
- package/dist/chunks/{field-fe5m8z3vbpvtctbe.js.map → field-b0aywboxuss4rpu7.js.map} +1 -1
- package/dist/chunks/{input-area-ciw85g3fno06t4tw.js → input-area-cuijpofpark5w5qq.js} +4 -4
- package/dist/chunks/{input-area-ciw85g3fno06t4tw.js.map → input-area-cuijpofpark5w5qq.js.map} +1 -1
- package/dist/chunks/{input-i5nefqk213n4z7pr.js → input-eno4q26x68rx3i8q.js} +3 -3
- package/dist/chunks/{input-i5nefqk213n4z7pr.js.map → input-eno4q26x68rx3i8q.js.map} +1 -1
- package/dist/chunks/{input-group-mo7tq7jr19hmgor5.js → input-group-dl9htnza7kq4om4c.js} +5 -5
- package/dist/chunks/{input-group-mo7tq7jr19hmgor5.js.map → input-group-dl9htnza7kq4om4c.js.map} +1 -1
- package/dist/chunks/json-display-fy0t2khc4itn130p.js +31 -0
- package/dist/chunks/json-display-fy0t2khc4itn130p.js.map +1 -0
- package/dist/chunks/{label-fcho4757rbdess0c.js → label-ld57mr4ocdxsf06p.js} +3 -3
- package/dist/chunks/{label-fcho4757rbdess0c.js.map → label-ld57mr4ocdxsf06p.js.map} +1 -1
- package/dist/chunks/{layer-card-kzu48dhzxm3e9p4u.js → layer-card-iuquuc1w3116umfw.js} +2 -2
- package/dist/chunks/{layer-card-kzu48dhzxm3e9p4u.js.map → layer-card-iuquuc1w3116umfw.js.map} +1 -1
- package/dist/chunks/{link-j2gu5dr3nr4i4yf0.js → link-8pn6y27h3m3ud8fl.js} +2 -2
- package/dist/chunks/{link-j2gu5dr3nr4i4yf0.js.map → link-8pn6y27h3m3ud8fl.js.map} +1 -1
- package/dist/chunks/link-chip-cz5v6lw9icmcndzl.js +58 -0
- package/dist/chunks/link-chip-cz5v6lw9icmcndzl.js.map +1 -0
- package/dist/chunks/links-display-dfaehepz86s2wxx1.js +20 -0
- package/dist/chunks/links-display-dfaehepz86s2wxx1.js.map +1 -0
- package/dist/chunks/menu-item-kyqq7o2krghxbpw5.js +178 -0
- package/dist/chunks/menu-item-kyqq7o2krghxbpw5.js.map +1 -0
- package/dist/chunks/{menubar-ir5gbjmsizsddz7g.js → menubar-56kqktsa5a28xyzj.js} +2 -2
- package/dist/chunks/{menubar-ir5gbjmsizsddz7g.js.map → menubar-56kqktsa5a28xyzj.js.map} +1 -1
- package/dist/chunks/{meter-o5yd7ctjf80vvyjx.js → meter-b5rnmibceu4z8i6a.js} +2 -2
- package/dist/chunks/{meter-o5yd7ctjf80vvyjx.js.map → meter-b5rnmibceu4z8i6a.js.map} +1 -1
- package/dist/chunks/notification-counter-hiq85elmcydnhzoo.js +30 -0
- package/dist/chunks/notification-counter-hiq85elmcydnhzoo.js.map +1 -0
- package/dist/chunks/overflowing-text-mm8bkx7voc6h8ra4.js +49 -0
- package/dist/chunks/overflowing-text-mm8bkx7voc6h8ra4.js.map +1 -0
- package/dist/chunks/{pagination-bryw6rohfr7mm3km.js → pagination-iczb9ooenevbxslx.js} +3 -3
- package/dist/chunks/{pagination-bryw6rohfr7mm3km.js.map → pagination-iczb9ooenevbxslx.js.map} +1 -1
- package/dist/chunks/phones-display-cdsrl07dv6obf4eg.js +19 -0
- package/dist/chunks/phones-display-cdsrl07dv6obf4eg.js.map +1 -0
- package/dist/chunks/pill-pfpvgbcnqhtyksz5.js +22 -0
- package/dist/chunks/pill-pfpvgbcnqhtyksz5.js.map +1 -0
- package/dist/chunks/{popover-elxcmvv7mu7m7uk4.js → popover-ldqdlpv6sqvkjume.js} +2 -2
- package/dist/chunks/{popover-elxcmvv7mu7m7uk4.js.map → popover-ldqdlpv6sqvkjume.js.map} +1 -1
- package/dist/chunks/{radio-newyq331uk4lltr6.js → radio-lyeniil3x20cyb8z.js} +2 -2
- package/dist/chunks/{radio-newyq331uk4lltr6.js.map → radio-lyeniil3x20cyb8z.js.map} +1 -1
- package/dist/chunks/rating-yyd4t8e62ast4obo.js +48 -0
- package/dist/chunks/rating-yyd4t8e62ast4obo.js.map +1 -0
- package/dist/chunks/record-board-iapx3cw5rusehrta.js +3395 -0
- package/dist/chunks/record-board-iapx3cw5rusehrta.js.map +1 -0
- package/dist/chunks/{select-h5480mbro0ypxu0b.js → select-hmoccee4zagd34tq.js} +6 -6
- package/dist/chunks/{select-h5480mbro0ypxu0b.js.map → select-hmoccee4zagd34tq.js.map} +1 -1
- package/dist/chunks/{sensitive-input-lqugq6uvx0lkpu0u.js → sensitive-input-nkfx72rduc7aijaf.js} +4 -4
- package/dist/chunks/{sensitive-input-lqugq6uvx0lkpu0u.js.map → sensitive-input-nkfx72rduc7aijaf.js.map} +1 -1
- package/dist/chunks/{sidebar-noz668nhdu2gso12.js → sidebar-gwfibai76tw069d4.js} +34 -33
- package/dist/chunks/sidebar-gwfibai76tw069d4.js.map +1 -0
- package/dist/chunks/status-ot0itdwxloqgahi0.js +29 -0
- package/dist/chunks/status-ot0itdwxloqgahi0.js.map +1 -0
- package/dist/chunks/{surface-cyxme7mlr49l33f8.js → surface-fqmma34ju0agh5pe.js} +2 -2
- package/dist/chunks/{surface-cyxme7mlr49l33f8.js.map → surface-fqmma34ju0agh5pe.js.map} +1 -1
- package/dist/chunks/{switch-bigo96fyjlh7ivbi.js → switch-nhtmn65n5s7gg6vb.js} +3 -3
- package/dist/chunks/{switch-bigo96fyjlh7ivbi.js.map → switch-nhtmn65n5s7gg6vb.js.map} +1 -1
- package/dist/chunks/{table-mwcmwp6a80zvyrxw.js → table-cjj894o3niouq4tg.js} +2 -2
- package/dist/chunks/{table-mwcmwp6a80zvyrxw.js.map → table-cjj894o3niouq4tg.js.map} +1 -1
- package/dist/chunks/{tabs-e4pcjkw94kpe35x0.js → tabs-klj6wapad6fpd9at.js} +14 -16
- package/dist/chunks/tabs-klj6wapad6fpd9at.js.map +1 -0
- package/dist/chunks/tag-h5kwf5eh7dyyvc2c.js +58 -0
- package/dist/chunks/tag-h5kwf5eh7dyyvc2c.js.map +1 -0
- package/dist/chunks/timeline-lqurr2lcxkayomk2.js +109 -0
- package/dist/chunks/timeline-lqurr2lcxkayomk2.js.map +1 -0
- package/dist/chunks/{toast-ivr4097bstjcjotf.js → toast-j47dl441zpxa1yw3.js} +3 -3
- package/dist/chunks/{toast-ivr4097bstjcjotf.js.map → toast-j47dl441zpxa1yw3.js.map} +1 -1
- package/dist/chunks/{tooltip-ncaia8n1lavkyw8n.js → tooltip-bkgxuz77xzg5fooc.js} +2 -2
- package/dist/chunks/{tooltip-ncaia8n1lavkyw8n.js.map → tooltip-bkgxuz77xzg5fooc.js.map} +1 -1
- package/dist/chunks/{vendor-base-ui-bgl9g5nkvqy3tn36.js → vendor-base-ui-djdjrfuoxlb1lubi.js} +2358 -2358
- package/dist/chunks/{vendor-base-ui-bgl9g5nkvqy3tn36.js.map → vendor-base-ui-djdjrfuoxlb1lubi.js.map} +1 -1
- package/dist/code.js +1 -1
- package/dist/components/actor-display.js +6 -0
- package/dist/components/actor-display.js.map +1 -0
- package/dist/components/address-input.js +6 -0
- package/dist/components/address-input.js.map +1 -0
- package/dist/components/array-display.js +6 -0
- package/dist/components/array-display.js.map +1 -0
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/avatar-group.js +6 -0
- package/dist/components/avatar-group.js.map +1 -0
- package/dist/components/avatar.js +6 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +8 -0
- package/dist/components/chip.js.map +1 -0
- package/dist/components/circular-progress-bar.js +6 -0
- package/dist/components/circular-progress-bar.js.map +1 -0
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/color-sample.js +6 -0
- package/dist/components/color-sample.js.map +1 -0
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/data-grid.js +8 -0
- package/dist/components/data-grid.js.map +1 -0
- package/dist/components/dialog.js +1 -1
- package/dist/components/double-text-input.js +6 -0
- package/dist/components/double-text-input.js.map +1 -0
- package/dist/components/dropdown.js +1 -1
- package/dist/components/emails-display.js +6 -0
- package/dist/components/emails-display.js.map +1 -0
- package/dist/components/empty.js +1 -1
- package/dist/components/expandable-list.js +6 -0
- package/dist/components/expandable-list.js.map +1 -0
- package/dist/components/field.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/json-display.js +6 -0
- package/dist/components/json-display.js.map +1 -0
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/link-chip.js +6 -0
- package/dist/components/link-chip.js.map +1 -0
- package/dist/components/link.js +1 -1
- package/dist/components/links-display.js +6 -0
- package/dist/components/links-display.js.map +1 -0
- package/dist/components/menu-item.js +11 -0
- package/dist/components/menu-item.js.map +1 -0
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/notification-counter.js +6 -0
- package/dist/components/notification-counter.js.map +1 -0
- package/dist/components/overflowing-text.js +6 -0
- package/dist/components/overflowing-text.js.map +1 -0
- package/dist/components/pagination.js +1 -1
- package/dist/components/phones-display.js +6 -0
- package/dist/components/phones-display.js.map +1 -0
- package/dist/components/pill.js +6 -0
- package/dist/components/pill.js.map +1 -0
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/rating.js +6 -0
- package/dist/components/rating.js.map +1 -0
- package/dist/components/record-board.js +8 -0
- package/dist/components/record-board.js.map +1 -0
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/status.js +6 -0
- package/dist/components/status.js.map +1 -0
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag.js +10 -0
- package/dist/components/tag.js.map +1 -0
- package/dist/components/timeline.js +8 -0
- package/dist/components/timeline.js.map +1 -0
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +380 -251
- package/dist/index.js.map +1 -1
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/otp-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/scripts/theme-generator/config.d.ts.map +1 -1
- package/dist/scripts/theme-generator/config.js +229 -5
- package/dist/scripts/theme-generator/config.js.map +1 -1
- package/dist/src/components/actor-display/actor-display.d.ts +33 -0
- package/dist/src/components/actor-display/actor-display.d.ts.map +1 -0
- package/dist/src/components/actor-display/index.d.ts +2 -0
- package/dist/src/components/actor-display/index.d.ts.map +1 -0
- package/dist/src/components/address-input/address-input.d.ts +42 -0
- package/dist/src/components/address-input/address-input.d.ts.map +1 -0
- package/dist/src/components/address-input/index.d.ts +2 -0
- package/dist/src/components/address-input/index.d.ts.map +1 -0
- package/dist/src/components/array-display/array-display.d.ts +30 -0
- package/dist/src/components/array-display/array-display.d.ts.map +1 -0
- package/dist/src/components/array-display/index.d.ts +2 -0
- package/dist/src/components/array-display/index.d.ts.map +1 -0
- package/dist/src/components/avatar/avatar.d.ts +80 -0
- package/dist/src/components/avatar/avatar.d.ts.map +1 -0
- package/dist/src/components/avatar/index.d.ts +2 -0
- package/dist/src/components/avatar/index.d.ts.map +1 -0
- package/dist/src/components/avatar-group/avatar-group.d.ts +35 -0
- package/dist/src/components/avatar-group/avatar-group.d.ts.map +1 -0
- package/dist/src/components/avatar-group/index.d.ts +2 -0
- package/dist/src/components/avatar-group/index.d.ts.map +1 -0
- package/dist/src/components/button/button.d.ts +4 -4
- package/dist/src/components/chip/chip.d.ts +78 -0
- package/dist/src/components/chip/chip.d.ts.map +1 -0
- package/dist/src/components/chip/index.d.ts +2 -0
- package/dist/src/components/chip/index.d.ts.map +1 -0
- package/dist/src/components/circular-progress-bar/circular-progress-bar.d.ts +35 -0
- package/dist/src/components/circular-progress-bar/circular-progress-bar.d.ts.map +1 -0
- package/dist/src/components/circular-progress-bar/index.d.ts +2 -0
- package/dist/src/components/circular-progress-bar/index.d.ts.map +1 -0
- package/dist/src/components/color-sample/color-sample.d.ts +56 -0
- package/dist/src/components/color-sample/color-sample.d.ts.map +1 -0
- package/dist/src/components/color-sample/index.d.ts +2 -0
- package/dist/src/components/color-sample/index.d.ts.map +1 -0
- package/dist/src/components/data-grid/data-grid.d.ts +25 -0
- package/dist/src/components/data-grid/data-grid.d.ts.map +1 -0
- package/dist/src/components/data-grid/index.d.ts +3 -0
- package/dist/src/components/data-grid/index.d.ts.map +1 -0
- package/dist/src/components/data-grid/types.d.ts +103 -0
- package/dist/src/components/data-grid/types.d.ts.map +1 -0
- package/dist/src/components/data-grid/use-data-grid-edit.d.ts +34 -0
- package/dist/src/components/data-grid/use-data-grid-edit.d.ts.map +1 -0
- package/dist/src/components/double-text-input/double-text-input.d.ts +47 -0
- package/dist/src/components/double-text-input/double-text-input.d.ts.map +1 -0
- package/dist/src/components/double-text-input/index.d.ts +2 -0
- package/dist/src/components/double-text-input/index.d.ts.map +1 -0
- package/dist/src/components/emails-display/emails-display.d.ts +30 -0
- package/dist/src/components/emails-display/emails-display.d.ts.map +1 -0
- package/dist/src/components/emails-display/index.d.ts +2 -0
- package/dist/src/components/emails-display/index.d.ts.map +1 -0
- package/dist/src/components/expandable-list/expandable-list.d.ts +41 -0
- package/dist/src/components/expandable-list/expandable-list.d.ts.map +1 -0
- package/dist/src/components/expandable-list/index.d.ts +2 -0
- package/dist/src/components/expandable-list/index.d.ts.map +1 -0
- package/dist/src/components/json-display/index.d.ts +2 -0
- package/dist/src/components/json-display/index.d.ts.map +1 -0
- package/dist/src/components/json-display/json-display.d.ts +29 -0
- package/dist/src/components/json-display/json-display.d.ts.map +1 -0
- package/dist/src/components/link-chip/index.d.ts +2 -0
- package/dist/src/components/link-chip/index.d.ts.map +1 -0
- package/dist/src/components/link-chip/link-chip.d.ts +50 -0
- package/dist/src/components/link-chip/link-chip.d.ts.map +1 -0
- package/dist/src/components/links-display/index.d.ts +2 -0
- package/dist/src/components/links-display/index.d.ts.map +1 -0
- package/dist/src/components/links-display/links-display.d.ts +37 -0
- package/dist/src/components/links-display/links-display.d.ts.map +1 -0
- package/dist/src/components/menu-item/index.d.ts +2 -0
- package/dist/src/components/menu-item/index.d.ts.map +1 -0
- package/dist/src/components/menu-item/menu-item.d.ts +104 -0
- package/dist/src/components/menu-item/menu-item.d.ts.map +1 -0
- package/dist/src/components/notification-counter/index.d.ts +2 -0
- package/dist/src/components/notification-counter/index.d.ts.map +1 -0
- package/dist/src/components/notification-counter/notification-counter.d.ts +51 -0
- package/dist/src/components/notification-counter/notification-counter.d.ts.map +1 -0
- package/dist/src/components/overflowing-text/index.d.ts +2 -0
- package/dist/src/components/overflowing-text/index.d.ts.map +1 -0
- package/dist/src/components/overflowing-text/overflowing-text.d.ts +48 -0
- package/dist/src/components/overflowing-text/overflowing-text.d.ts.map +1 -0
- package/dist/src/components/phones-display/index.d.ts +2 -0
- package/dist/src/components/phones-display/index.d.ts.map +1 -0
- package/dist/src/components/phones-display/phones-display.d.ts +31 -0
- package/dist/src/components/phones-display/phones-display.d.ts.map +1 -0
- package/dist/src/components/pill/index.d.ts +2 -0
- package/dist/src/components/pill/index.d.ts.map +1 -0
- package/dist/src/components/pill/pill.d.ts +31 -0
- package/dist/src/components/pill/pill.d.ts.map +1 -0
- package/dist/src/components/rating/index.d.ts +2 -0
- package/dist/src/components/rating/index.d.ts.map +1 -0
- package/dist/src/components/rating/rating.d.ts +37 -0
- package/dist/src/components/rating/rating.d.ts.map +1 -0
- package/dist/src/components/record-board/index.d.ts +2 -0
- package/dist/src/components/record-board/index.d.ts.map +1 -0
- package/dist/src/components/record-board/record-board.d.ts +75 -0
- package/dist/src/components/record-board/record-board.d.ts.map +1 -0
- package/dist/src/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/src/components/status/index.d.ts +2 -0
- package/dist/src/components/status/index.d.ts.map +1 -0
- package/dist/src/components/status/status.d.ts +52 -0
- package/dist/src/components/status/status.d.ts.map +1 -0
- package/dist/src/components/tabs/tabs.d.ts.map +1 -1
- package/dist/src/components/tag/index.d.ts +2 -0
- package/dist/src/components/tag/index.d.ts.map +1 -0
- package/dist/src/components/tag/tag.d.ts +153 -0
- package/dist/src/components/tag/tag.d.ts.map +1 -0
- package/dist/src/components/timeline/index.d.ts +2 -0
- package/dist/src/components/timeline/index.d.ts.map +1 -0
- package/dist/src/components/timeline/timeline.d.ts +155 -0
- package/dist/src/components/timeline/timeline.d.ts.map +1 -0
- package/dist/src/index.d.ts +26 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/utils/use-is-dark-mode.d.ts +18 -0
- package/dist/src/utils/use-is-dark-mode.d.ts.map +1 -0
- package/dist/styles/reki-standalone.css +1 -1
- package/dist/styles/reki.css +19 -0
- package/dist/styles/theme-fedramp.css +6 -0
- package/dist/styles/theme-reki.css +164 -10
- package/package.json +118 -4
- package/scripts/component-registry/index.ts +6 -11
- package/scripts/extract-demo-examples.ts +323 -0
- package/scripts/generate-stories.ts +205 -0
- package/scripts/theme-generator/config.ts +230 -5
- package/dist/chunks/button-nc5p1h28cwes0tjw.js.map +0 -1
- package/dist/chunks/command-palette-fe5cjfdgsg3t17vq.js.map +0 -1
- package/dist/chunks/sidebar-noz668nhdu2gso12.js.map +0 -1
- package/dist/chunks/tabs-e4pcjkw94kpe35x0.js.map +0 -1
package/dist/ai/schemas.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function
|
|
2
|
+
function f(e, o, t) {
|
|
3
3
|
function n(l, u) {
|
|
4
4
|
if (l._zod || Object.defineProperty(l, "_zod", {
|
|
5
5
|
value: {
|
|
@@ -11,23 +11,23 @@ function d(e, o, t) {
|
|
|
11
11
|
}), l._zod.traits.has(e))
|
|
12
12
|
return;
|
|
13
13
|
l._zod.traits.add(e), o(l, u);
|
|
14
|
-
const
|
|
15
|
-
for (let
|
|
16
|
-
const w =
|
|
17
|
-
w in l || (l[w] =
|
|
14
|
+
const d = i.prototype, m = Object.keys(d);
|
|
15
|
+
for (let z = 0; z < m.length; z++) {
|
|
16
|
+
const w = m[z];
|
|
17
|
+
w in l || (l[w] = d[w].bind(l));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
const r = t?.Parent ?? Object;
|
|
21
|
-
class
|
|
21
|
+
class s extends r {
|
|
22
22
|
}
|
|
23
|
-
Object.defineProperty(
|
|
23
|
+
Object.defineProperty(s, "name", { value: e });
|
|
24
24
|
function i(l) {
|
|
25
25
|
var u;
|
|
26
|
-
const
|
|
27
|
-
n(
|
|
28
|
-
for (const
|
|
29
|
-
|
|
30
|
-
return
|
|
26
|
+
const d = t?.Parent ? new s() : this;
|
|
27
|
+
n(d, l), (u = d._zod).deferred ?? (u.deferred = []);
|
|
28
|
+
for (const m of d._zod.deferred)
|
|
29
|
+
m();
|
|
30
|
+
return d;
|
|
31
31
|
}
|
|
32
32
|
return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
|
|
33
33
|
value: (l) => t?.Parent && l instanceof t.Parent ? !0 : l?._zod?.traits?.has(e)
|
|
@@ -38,13 +38,13 @@ class q extends Error {
|
|
|
38
38
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
class
|
|
41
|
+
class We extends Error {
|
|
42
42
|
constructor(o) {
|
|
43
43
|
super(`Encountered unidirectional transform during encode: ${o}`), this.name = "ZodEncodeError";
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
const qe = {};
|
|
47
|
-
function
|
|
47
|
+
function U(e) {
|
|
48
48
|
return qe;
|
|
49
49
|
}
|
|
50
50
|
function Ke(e) {
|
|
@@ -78,16 +78,16 @@ function To(e, o) {
|
|
|
78
78
|
const u = n.match(/\d?e-(\d?)/);
|
|
79
79
|
u?.[1] && (r = Number.parseInt(u[1]));
|
|
80
80
|
}
|
|
81
|
-
const
|
|
82
|
-
return i % l / 10 **
|
|
81
|
+
const s = t > r ? t : r, i = Number.parseInt(e.toFixed(s).replace(".", "")), l = Number.parseInt(o.toFixed(s).replace(".", ""));
|
|
82
|
+
return i % l / 10 ** s;
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const Pe = Symbol("evaluating");
|
|
85
85
|
function $(e, o, t) {
|
|
86
86
|
let n;
|
|
87
87
|
Object.defineProperty(e, o, {
|
|
88
88
|
get() {
|
|
89
|
-
if (n !==
|
|
90
|
-
return n === void 0 && (n =
|
|
89
|
+
if (n !== Pe)
|
|
90
|
+
return n === void 0 && (n = Pe, n = t()), n;
|
|
91
91
|
},
|
|
92
92
|
set(r) {
|
|
93
93
|
Object.defineProperty(e, o, {
|
|
@@ -98,7 +98,7 @@ function $(e, o, t) {
|
|
|
98
98
|
configurable: !0
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function V(e, o, t) {
|
|
102
102
|
Object.defineProperty(e, o, {
|
|
103
103
|
value: t,
|
|
104
104
|
writable: !0,
|
|
@@ -114,7 +114,7 @@ function M(...e) {
|
|
|
114
114
|
}
|
|
115
115
|
return Object.defineProperties({}, o);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Ze(e) {
|
|
118
118
|
return JSON.stringify(e);
|
|
119
119
|
}
|
|
120
120
|
function Oo(e) {
|
|
@@ -125,7 +125,7 @@ const Xe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
|
125
125
|
function ae(e) {
|
|
126
126
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const No = be(() => {
|
|
129
129
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
130
130
|
return !1;
|
|
131
131
|
try {
|
|
@@ -147,7 +147,7 @@ function K(e) {
|
|
|
147
147
|
function Ye(e) {
|
|
148
148
|
return K(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const Io = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
151
151
|
function ue(e) {
|
|
152
152
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
153
153
|
}
|
|
@@ -182,7 +182,7 @@ function Ao(e, o) {
|
|
|
182
182
|
const t = e._zod.def, n = t.checks;
|
|
183
183
|
if (n && n.length > 0)
|
|
184
184
|
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
185
|
-
const
|
|
185
|
+
const s = M(e._zod.def, {
|
|
186
186
|
get shape() {
|
|
187
187
|
const i = {};
|
|
188
188
|
for (const l in o) {
|
|
@@ -190,17 +190,17 @@ function Ao(e, o) {
|
|
|
190
190
|
throw new Error(`Unrecognized key: "${l}"`);
|
|
191
191
|
o[l] && (i[l] = t.shape[l]);
|
|
192
192
|
}
|
|
193
|
-
return
|
|
193
|
+
return V(this, "shape", i), i;
|
|
194
194
|
},
|
|
195
195
|
checks: []
|
|
196
196
|
});
|
|
197
|
-
return J(e,
|
|
197
|
+
return J(e, s);
|
|
198
198
|
}
|
|
199
199
|
function xo(e, o) {
|
|
200
200
|
const t = e._zod.def, n = t.checks;
|
|
201
201
|
if (n && n.length > 0)
|
|
202
202
|
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
203
|
-
const
|
|
203
|
+
const s = M(e._zod.def, {
|
|
204
204
|
get shape() {
|
|
205
205
|
const i = { ...e._zod.def.shape };
|
|
206
206
|
for (const l in o) {
|
|
@@ -208,26 +208,26 @@ function xo(e, o) {
|
|
|
208
208
|
throw new Error(`Unrecognized key: "${l}"`);
|
|
209
209
|
o[l] && delete i[l];
|
|
210
210
|
}
|
|
211
|
-
return
|
|
211
|
+
return V(this, "shape", i), i;
|
|
212
212
|
},
|
|
213
213
|
checks: []
|
|
214
214
|
});
|
|
215
|
-
return J(e,
|
|
215
|
+
return J(e, s);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Do(e, o) {
|
|
218
218
|
if (!K(o))
|
|
219
219
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
220
220
|
const t = e._zod.def.checks;
|
|
221
221
|
if (t && t.length > 0) {
|
|
222
|
-
const
|
|
222
|
+
const s = e._zod.def.shape;
|
|
223
223
|
for (const i in o)
|
|
224
|
-
if (Object.getOwnPropertyDescriptor(
|
|
224
|
+
if (Object.getOwnPropertyDescriptor(s, i) !== void 0)
|
|
225
225
|
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
226
226
|
}
|
|
227
227
|
const r = M(e._zod.def, {
|
|
228
228
|
get shape() {
|
|
229
|
-
const
|
|
230
|
-
return
|
|
229
|
+
const s = { ...e._zod.def.shape, ...o };
|
|
230
|
+
return V(this, "shape", s), s;
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
return J(e, r);
|
|
@@ -238,16 +238,16 @@ function Ro(e, o) {
|
|
|
238
238
|
const t = M(e._zod.def, {
|
|
239
239
|
get shape() {
|
|
240
240
|
const n = { ...e._zod.def.shape, ...o };
|
|
241
|
-
return
|
|
241
|
+
return V(this, "shape", n), n;
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
return J(e, t);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function jo(e, o) {
|
|
247
247
|
const t = M(e._zod.def, {
|
|
248
248
|
get shape() {
|
|
249
249
|
const n = { ...e._zod.def.shape, ...o._zod.def.shape };
|
|
250
|
-
return
|
|
250
|
+
return V(this, "shape", n), n;
|
|
251
251
|
},
|
|
252
252
|
get catchall() {
|
|
253
253
|
return o._zod.def.catchall;
|
|
@@ -257,7 +257,7 @@ function Do(e, o) {
|
|
|
257
257
|
});
|
|
258
258
|
return J(e, t);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Lo(e, o, t) {
|
|
261
261
|
const r = o._zod.def.checks;
|
|
262
262
|
if (r && r.length > 0)
|
|
263
263
|
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
@@ -265,51 +265,51 @@ function Uo(e, o, t) {
|
|
|
265
265
|
get shape() {
|
|
266
266
|
const l = o._zod.def.shape, u = { ...l };
|
|
267
267
|
if (t)
|
|
268
|
-
for (const
|
|
269
|
-
if (!(
|
|
270
|
-
throw new Error(`Unrecognized key: "${
|
|
271
|
-
t[
|
|
268
|
+
for (const d in t) {
|
|
269
|
+
if (!(d in l))
|
|
270
|
+
throw new Error(`Unrecognized key: "${d}"`);
|
|
271
|
+
t[d] && (u[d] = e ? new e({
|
|
272
272
|
type: "optional",
|
|
273
|
-
innerType: l[
|
|
274
|
-
}) : l[
|
|
273
|
+
innerType: l[d]
|
|
274
|
+
}) : l[d]);
|
|
275
275
|
}
|
|
276
276
|
else
|
|
277
|
-
for (const
|
|
278
|
-
u[
|
|
277
|
+
for (const d in l)
|
|
278
|
+
u[d] = e ? new e({
|
|
279
279
|
type: "optional",
|
|
280
|
-
innerType: l[
|
|
281
|
-
}) : l[
|
|
282
|
-
return
|
|
280
|
+
innerType: l[d]
|
|
281
|
+
}) : l[d];
|
|
282
|
+
return V(this, "shape", u), u;
|
|
283
283
|
},
|
|
284
284
|
checks: []
|
|
285
285
|
});
|
|
286
286
|
return J(o, i);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Uo(e, o, t) {
|
|
289
289
|
const n = M(o._zod.def, {
|
|
290
290
|
get shape() {
|
|
291
|
-
const r = o._zod.def.shape,
|
|
291
|
+
const r = o._zod.def.shape, s = { ...r };
|
|
292
292
|
if (t)
|
|
293
293
|
for (const i in t) {
|
|
294
|
-
if (!(i in
|
|
294
|
+
if (!(i in s))
|
|
295
295
|
throw new Error(`Unrecognized key: "${i}"`);
|
|
296
|
-
t[i] && (
|
|
296
|
+
t[i] && (s[i] = new e({
|
|
297
297
|
type: "nonoptional",
|
|
298
298
|
innerType: r[i]
|
|
299
299
|
}));
|
|
300
300
|
}
|
|
301
301
|
else
|
|
302
302
|
for (const i in r)
|
|
303
|
-
|
|
303
|
+
s[i] = new e({
|
|
304
304
|
type: "nonoptional",
|
|
305
305
|
innerType: r[i]
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return V(this, "shape", s), s;
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
310
|
return J(o, n);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function W(e, o = 0) {
|
|
313
313
|
if (e.aborted === !0)
|
|
314
314
|
return !0;
|
|
315
315
|
for (let t = o; t < e.issues.length; t++)
|
|
@@ -317,7 +317,7 @@ function G(e, o = 0) {
|
|
|
317
317
|
return !0;
|
|
318
318
|
return !1;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function B(e, o) {
|
|
321
321
|
return o.map((t) => {
|
|
322
322
|
var n;
|
|
323
323
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
@@ -326,7 +326,7 @@ function V(e, o) {
|
|
|
326
326
|
function oe(e) {
|
|
327
327
|
return typeof e == "string" ? e : e?.message;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function F(e, o, t) {
|
|
330
330
|
const n = { ...e, path: e.path ?? [] };
|
|
331
331
|
if (!e.message) {
|
|
332
332
|
const r = oe(e.inst?._zod.def?.error?.(e)) ?? oe(o?.error?.(e)) ?? oe(t.customError?.(e)) ?? oe(t.localeError?.(e)) ?? "Invalid input";
|
|
@@ -357,8 +357,8 @@ const He = (e, o) => {
|
|
|
357
357
|
value: () => e.message,
|
|
358
358
|
enumerable: !1
|
|
359
359
|
});
|
|
360
|
-
}, Qe =
|
|
361
|
-
function
|
|
360
|
+
}, Qe = f("$ZodError", He), eo = f("$ZodError", He, { Parent: Error });
|
|
361
|
+
function Fo(e, o = (t) => t.message) {
|
|
362
362
|
const t = {}, n = [];
|
|
363
363
|
for (const r of e.issues)
|
|
364
364
|
r.path.length > 0 ? (t[r.path[0]] = t[r.path[0]] || [], t[r.path[0]].push(o(r))) : n.push(o(r));
|
|
@@ -366,61 +366,61 @@ function Lo(e, o = (t) => t.message) {
|
|
|
366
366
|
}
|
|
367
367
|
function Mo(e, o = (t) => t.message) {
|
|
368
368
|
const t = { _errors: [] }, n = (r) => {
|
|
369
|
-
for (const
|
|
370
|
-
if (
|
|
371
|
-
|
|
372
|
-
else if (
|
|
373
|
-
n({ issues:
|
|
374
|
-
else if (
|
|
375
|
-
n({ issues:
|
|
376
|
-
else if (
|
|
377
|
-
t._errors.push(o(
|
|
369
|
+
for (const s of r.issues)
|
|
370
|
+
if (s.code === "invalid_union" && s.errors.length)
|
|
371
|
+
s.errors.map((i) => n({ issues: i }));
|
|
372
|
+
else if (s.code === "invalid_key")
|
|
373
|
+
n({ issues: s.issues });
|
|
374
|
+
else if (s.code === "invalid_element")
|
|
375
|
+
n({ issues: s.issues });
|
|
376
|
+
else if (s.path.length === 0)
|
|
377
|
+
t._errors.push(o(s));
|
|
378
378
|
else {
|
|
379
379
|
let i = t, l = 0;
|
|
380
|
-
for (; l <
|
|
381
|
-
const u =
|
|
382
|
-
l ===
|
|
380
|
+
for (; l < s.path.length; ) {
|
|
381
|
+
const u = s.path[l];
|
|
382
|
+
l === s.path.length - 1 ? (i[u] = i[u] || { _errors: [] }, i[u]._errors.push(o(s))) : i[u] = i[u] || { _errors: [] }, i = i[u], l++;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
return n(e), t;
|
|
387
387
|
}
|
|
388
388
|
const we = (e) => (o, t, n, r) => {
|
|
389
|
-
const
|
|
389
|
+
const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = o._zod.run({ value: t, issues: [] }, s);
|
|
390
390
|
if (i instanceof Promise)
|
|
391
391
|
throw new q();
|
|
392
392
|
if (i.issues.length) {
|
|
393
|
-
const l = new (r?.Err ?? e)(i.issues.map((u) =>
|
|
393
|
+
const l = new (r?.Err ?? e)(i.issues.map((u) => F(u, s, U())));
|
|
394
394
|
throw Xe(l, r?.callee), l;
|
|
395
395
|
}
|
|
396
396
|
return i.value;
|
|
397
397
|
}, Se = (e) => async (o, t, n, r) => {
|
|
398
|
-
const
|
|
399
|
-
let i = o._zod.run({ value: t, issues: [] },
|
|
398
|
+
const s = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
399
|
+
let i = o._zod.run({ value: t, issues: [] }, s);
|
|
400
400
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
401
|
-
const l = new (r?.Err ?? e)(i.issues.map((u) =>
|
|
401
|
+
const l = new (r?.Err ?? e)(i.issues.map((u) => F(u, s, U())));
|
|
402
402
|
throw Xe(l, r?.callee), l;
|
|
403
403
|
}
|
|
404
404
|
return i.value;
|
|
405
405
|
}, pe = (e) => (o, t, n) => {
|
|
406
|
-
const r = n ? { ...n, async: !1 } : { async: !1 },
|
|
407
|
-
if (
|
|
406
|
+
const r = n ? { ...n, async: !1 } : { async: !1 }, s = o._zod.run({ value: t, issues: [] }, r);
|
|
407
|
+
if (s instanceof Promise)
|
|
408
408
|
throw new q();
|
|
409
|
-
return
|
|
409
|
+
return s.issues.length ? {
|
|
410
410
|
success: !1,
|
|
411
|
-
error: new (e ?? Qe)(
|
|
412
|
-
} : { success: !0, data:
|
|
411
|
+
error: new (e ?? Qe)(s.issues.map((i) => F(i, r, U())))
|
|
412
|
+
} : { success: !0, data: s.value };
|
|
413
413
|
}, Jo = /* @__PURE__ */ pe(eo), de = (e) => async (o, t, n) => {
|
|
414
414
|
const r = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
415
|
-
let
|
|
416
|
-
return
|
|
415
|
+
let s = o._zod.run({ value: t, issues: [] }, r);
|
|
416
|
+
return s instanceof Promise && (s = await s), s.issues.length ? {
|
|
417
417
|
success: !1,
|
|
418
|
-
error: new e(
|
|
419
|
-
} : { success: !0, data:
|
|
420
|
-
},
|
|
418
|
+
error: new e(s.issues.map((i) => F(i, r, U())))
|
|
419
|
+
} : { success: !0, data: s.value };
|
|
420
|
+
}, Bo = /* @__PURE__ */ de(eo), Vo = (e) => (o, t, n) => {
|
|
421
421
|
const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
|
|
422
422
|
return we(e)(o, t, r);
|
|
423
|
-
},
|
|
423
|
+
}, Go = (e) => (o, t, n) => we(e)(o, t, n), Wo = (e) => async (o, t, n) => {
|
|
424
424
|
const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
|
|
425
425
|
return Se(e)(o, t, r);
|
|
426
426
|
}, qo = (e) => async (o, t, n) => Se(e)(o, t, n), Ko = (e) => (o, t, n) => {
|
|
@@ -450,19 +450,19 @@ function vt(e) {
|
|
|
450
450
|
const bt = (e) => {
|
|
451
451
|
const o = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
452
452
|
return new RegExp(`^${o}$`);
|
|
453
|
-
}, yt = /^-?\d+$/, ro = /^-?\d+(?:\.\d+)?$/, zt = /^(?:true|false)$/i, kt = /^null$/i, wt = /^[^A-Z]*$/, St = /^[^a-z]*$/,
|
|
453
|
+
}, yt = /^-?\d+$/, ro = /^-?\d+(?:\.\d+)?$/, zt = /^(?:true|false)$/i, kt = /^null$/i, wt = /^[^A-Z]*$/, St = /^[^a-z]*$/, D = /* @__PURE__ */ f("$ZodCheck", (e, o) => {
|
|
454
454
|
var t;
|
|
455
455
|
e._zod ?? (e._zod = {}), e._zod.def = o, (t = e._zod).onattach ?? (t.onattach = []);
|
|
456
456
|
}), io = {
|
|
457
457
|
number: "number",
|
|
458
458
|
bigint: "bigint",
|
|
459
459
|
object: "date"
|
|
460
|
-
}, ao = /* @__PURE__ */
|
|
461
|
-
|
|
460
|
+
}, ao = /* @__PURE__ */ f("$ZodCheckLessThan", (e, o) => {
|
|
461
|
+
D.init(e, o);
|
|
462
462
|
const t = io[typeof o.value];
|
|
463
463
|
e._zod.onattach.push((n) => {
|
|
464
|
-
const r = n._zod.bag,
|
|
465
|
-
o.value <
|
|
464
|
+
const r = n._zod.bag, s = (o.inclusive ? r.maximum : r.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
465
|
+
o.value < s && (o.inclusive ? r.maximum = o.value : r.exclusiveMaximum = o.value);
|
|
466
466
|
}), e._zod.check = (n) => {
|
|
467
467
|
(o.inclusive ? n.value <= o.value : n.value < o.value) || n.issues.push({
|
|
468
468
|
origin: t,
|
|
@@ -474,12 +474,12 @@ const bt = (e) => {
|
|
|
474
474
|
continue: !o.abort
|
|
475
475
|
});
|
|
476
476
|
};
|
|
477
|
-
}), so = /* @__PURE__ */
|
|
478
|
-
|
|
477
|
+
}), so = /* @__PURE__ */ f("$ZodCheckGreaterThan", (e, o) => {
|
|
478
|
+
D.init(e, o);
|
|
479
479
|
const t = io[typeof o.value];
|
|
480
480
|
e._zod.onattach.push((n) => {
|
|
481
|
-
const r = n._zod.bag,
|
|
482
|
-
o.value >
|
|
481
|
+
const r = n._zod.bag, s = (o.inclusive ? r.minimum : r.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
482
|
+
o.value > s && (o.inclusive ? r.minimum = o.value : r.exclusiveMinimum = o.value);
|
|
483
483
|
}), e._zod.check = (n) => {
|
|
484
484
|
(o.inclusive ? n.value >= o.value : n.value > o.value) || n.issues.push({
|
|
485
485
|
origin: t,
|
|
@@ -491,8 +491,8 @@ const bt = (e) => {
|
|
|
491
491
|
continue: !o.abort
|
|
492
492
|
});
|
|
493
493
|
};
|
|
494
|
-
}), $t = /* @__PURE__ */
|
|
495
|
-
|
|
494
|
+
}), $t = /* @__PURE__ */ f("$ZodCheckMultipleOf", (e, o) => {
|
|
495
|
+
D.init(e, o), e._zod.onattach.push((t) => {
|
|
496
496
|
var n;
|
|
497
497
|
(n = t._zod.bag).multipleOf ?? (n.multipleOf = o.value);
|
|
498
498
|
}), e._zod.check = (t) => {
|
|
@@ -507,12 +507,12 @@ const bt = (e) => {
|
|
|
507
507
|
continue: !o.abort
|
|
508
508
|
});
|
|
509
509
|
};
|
|
510
|
-
}),
|
|
511
|
-
|
|
512
|
-
const t = o.format?.includes("int"), n = t ? "int" : "number", [r,
|
|
510
|
+
}), Pt = /* @__PURE__ */ f("$ZodCheckNumberFormat", (e, o) => {
|
|
511
|
+
D.init(e, o), o.format = o.format || "float64";
|
|
512
|
+
const t = o.format?.includes("int"), n = t ? "int" : "number", [r, s] = Co[o.format];
|
|
513
513
|
e._zod.onattach.push((i) => {
|
|
514
514
|
const l = i._zod.bag;
|
|
515
|
-
l.format = o.format, l.minimum = r, l.maximum =
|
|
515
|
+
l.format = o.format, l.minimum = r, l.maximum = s, t && (l.pattern = yt);
|
|
516
516
|
}), e._zod.check = (i) => {
|
|
517
517
|
const l = i.value;
|
|
518
518
|
if (t) {
|
|
@@ -558,19 +558,19 @@ const bt = (e) => {
|
|
|
558
558
|
inclusive: !0,
|
|
559
559
|
inst: e,
|
|
560
560
|
continue: !o.abort
|
|
561
|
-
}), l >
|
|
561
|
+
}), l > s && i.issues.push({
|
|
562
562
|
origin: "number",
|
|
563
563
|
input: l,
|
|
564
564
|
code: "too_big",
|
|
565
|
-
maximum:
|
|
565
|
+
maximum: s,
|
|
566
566
|
inclusive: !0,
|
|
567
567
|
inst: e,
|
|
568
568
|
continue: !o.abort
|
|
569
569
|
});
|
|
570
570
|
};
|
|
571
|
-
}),
|
|
571
|
+
}), Zt = /* @__PURE__ */ f("$ZodCheckMaxLength", (e, o) => {
|
|
572
572
|
var t;
|
|
573
|
-
|
|
573
|
+
D.init(e, o), (t = e._zod.def).when ?? (t.when = (n) => {
|
|
574
574
|
const r = n.value;
|
|
575
575
|
return !ye(r) && r.length !== void 0;
|
|
576
576
|
}), e._zod.onattach.push((n) => {
|
|
@@ -591,9 +591,9 @@ const bt = (e) => {
|
|
|
591
591
|
continue: !o.abort
|
|
592
592
|
});
|
|
593
593
|
};
|
|
594
|
-
}), Tt = /* @__PURE__ */
|
|
594
|
+
}), Tt = /* @__PURE__ */ f("$ZodCheckMinLength", (e, o) => {
|
|
595
595
|
var t;
|
|
596
|
-
|
|
596
|
+
D.init(e, o), (t = e._zod.def).when ?? (t.when = (n) => {
|
|
597
597
|
const r = n.value;
|
|
598
598
|
return !ye(r) && r.length !== void 0;
|
|
599
599
|
}), e._zod.onattach.push((n) => {
|
|
@@ -614,19 +614,19 @@ const bt = (e) => {
|
|
|
614
614
|
continue: !o.abort
|
|
615
615
|
});
|
|
616
616
|
};
|
|
617
|
-
}), Ot = /* @__PURE__ */
|
|
617
|
+
}), Ot = /* @__PURE__ */ f("$ZodCheckLengthEquals", (e, o) => {
|
|
618
618
|
var t;
|
|
619
|
-
|
|
619
|
+
D.init(e, o), (t = e._zod.def).when ?? (t.when = (n) => {
|
|
620
620
|
const r = n.value;
|
|
621
621
|
return !ye(r) && r.length !== void 0;
|
|
622
622
|
}), e._zod.onattach.push((n) => {
|
|
623
623
|
const r = n._zod.bag;
|
|
624
624
|
r.minimum = o.length, r.maximum = o.length, r.length = o.length;
|
|
625
625
|
}), e._zod.check = (n) => {
|
|
626
|
-
const r = n.value,
|
|
627
|
-
if (
|
|
626
|
+
const r = n.value, s = r.length;
|
|
627
|
+
if (s === o.length)
|
|
628
628
|
return;
|
|
629
|
-
const i = ke(r), l =
|
|
629
|
+
const i = ke(r), l = s > o.length;
|
|
630
630
|
n.issues.push({
|
|
631
631
|
origin: i,
|
|
632
632
|
...l ? { code: "too_big", maximum: o.length } : { code: "too_small", minimum: o.length },
|
|
@@ -637,11 +637,11 @@ const bt = (e) => {
|
|
|
637
637
|
continue: !o.abort
|
|
638
638
|
});
|
|
639
639
|
};
|
|
640
|
-
}), fe = /* @__PURE__ */
|
|
640
|
+
}), fe = /* @__PURE__ */ f("$ZodCheckStringFormat", (e, o) => {
|
|
641
641
|
var t, n;
|
|
642
|
-
|
|
643
|
-
const
|
|
644
|
-
|
|
642
|
+
D.init(e, o), e._zod.onattach.push((r) => {
|
|
643
|
+
const s = r._zod.bag;
|
|
644
|
+
s.format = o.format, o.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(o.pattern));
|
|
645
645
|
}), o.pattern ? (t = e._zod).check ?? (t.check = (r) => {
|
|
646
646
|
o.pattern.lastIndex = 0, !o.pattern.test(r.value) && r.issues.push({
|
|
647
647
|
origin: "string",
|
|
@@ -654,7 +654,7 @@ const bt = (e) => {
|
|
|
654
654
|
});
|
|
655
655
|
}) : (n = e._zod).check ?? (n.check = () => {
|
|
656
656
|
});
|
|
657
|
-
}),
|
|
657
|
+
}), Nt = /* @__PURE__ */ f("$ZodCheckRegex", (e, o) => {
|
|
658
658
|
fe.init(e, o), e._zod.check = (t) => {
|
|
659
659
|
o.pattern.lastIndex = 0, !o.pattern.test(t.value) && t.issues.push({
|
|
660
660
|
origin: "string",
|
|
@@ -666,16 +666,16 @@ const bt = (e) => {
|
|
|
666
666
|
continue: !o.abort
|
|
667
667
|
});
|
|
668
668
|
};
|
|
669
|
-
}),
|
|
669
|
+
}), It = /* @__PURE__ */ f("$ZodCheckLowerCase", (e, o) => {
|
|
670
670
|
o.pattern ?? (o.pattern = wt), fe.init(e, o);
|
|
671
|
-
}), Et = /* @__PURE__ */
|
|
671
|
+
}), Et = /* @__PURE__ */ f("$ZodCheckUpperCase", (e, o) => {
|
|
672
672
|
o.pattern ?? (o.pattern = St), fe.init(e, o);
|
|
673
|
-
}), Ct = /* @__PURE__ */
|
|
674
|
-
|
|
673
|
+
}), Ct = /* @__PURE__ */ f("$ZodCheckIncludes", (e, o) => {
|
|
674
|
+
D.init(e, o);
|
|
675
675
|
const t = ue(o.includes), n = new RegExp(typeof o.position == "number" ? `^.{${o.position}}${t}` : t);
|
|
676
676
|
o.pattern = n, e._zod.onattach.push((r) => {
|
|
677
|
-
const
|
|
678
|
-
|
|
677
|
+
const s = r._zod.bag;
|
|
678
|
+
s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
|
|
679
679
|
}), e._zod.check = (r) => {
|
|
680
680
|
r.value.includes(o.includes, o.position) || r.issues.push({
|
|
681
681
|
origin: "string",
|
|
@@ -687,8 +687,8 @@ const bt = (e) => {
|
|
|
687
687
|
continue: !o.abort
|
|
688
688
|
});
|
|
689
689
|
};
|
|
690
|
-
}), At = /* @__PURE__ */
|
|
691
|
-
|
|
690
|
+
}), At = /* @__PURE__ */ f("$ZodCheckStartsWith", (e, o) => {
|
|
691
|
+
D.init(e, o);
|
|
692
692
|
const t = new RegExp(`^${ue(o.prefix)}.*`);
|
|
693
693
|
o.pattern ?? (o.pattern = t), e._zod.onattach.push((n) => {
|
|
694
694
|
const r = n._zod.bag;
|
|
@@ -704,8 +704,8 @@ const bt = (e) => {
|
|
|
704
704
|
continue: !o.abort
|
|
705
705
|
});
|
|
706
706
|
};
|
|
707
|
-
}), xt = /* @__PURE__ */
|
|
708
|
-
|
|
707
|
+
}), xt = /* @__PURE__ */ f("$ZodCheckEndsWith", (e, o) => {
|
|
708
|
+
D.init(e, o);
|
|
709
709
|
const t = new RegExp(`.*${ue(o.suffix)}$`);
|
|
710
710
|
o.pattern ?? (o.pattern = t), e._zod.onattach.push((n) => {
|
|
711
711
|
const r = n._zod.bag;
|
|
@@ -721,8 +721,8 @@ const bt = (e) => {
|
|
|
721
721
|
continue: !o.abort
|
|
722
722
|
});
|
|
723
723
|
};
|
|
724
|
-
}),
|
|
725
|
-
|
|
724
|
+
}), Dt = /* @__PURE__ */ f("$ZodCheckOverwrite", (e, o) => {
|
|
725
|
+
D.init(e, o), e._zod.check = (t) => {
|
|
726
726
|
t.value = o.tx(t.value);
|
|
727
727
|
};
|
|
728
728
|
});
|
|
@@ -739,78 +739,78 @@ class Rt {
|
|
|
739
739
|
return;
|
|
740
740
|
}
|
|
741
741
|
const n = o.split(`
|
|
742
|
-
`).filter((i) => i), r = Math.min(...n.map((i) => i.length - i.trimStart().length)),
|
|
743
|
-
for (const i of
|
|
742
|
+
`).filter((i) => i), r = Math.min(...n.map((i) => i.length - i.trimStart().length)), s = n.map((i) => i.slice(r)).map((i) => " ".repeat(this.indent * 2) + i);
|
|
743
|
+
for (const i of s)
|
|
744
744
|
this.content.push(i);
|
|
745
745
|
}
|
|
746
746
|
compile() {
|
|
747
|
-
const o = Function, t = this?.args, r = [...(this?.content ?? [""]).map((
|
|
747
|
+
const o = Function, t = this?.args, r = [...(this?.content ?? [""]).map((s) => ` ${s}`)];
|
|
748
748
|
return new o(...t, r.join(`
|
|
749
749
|
`));
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
|
-
const
|
|
752
|
+
const jt = {
|
|
753
753
|
major: 4,
|
|
754
754
|
minor: 3,
|
|
755
755
|
patch: 6
|
|
756
|
-
},
|
|
756
|
+
}, P = /* @__PURE__ */ f("$ZodType", (e, o) => {
|
|
757
757
|
var t;
|
|
758
|
-
e ?? (e = {}), e._zod.def = o, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
758
|
+
e ?? (e = {}), e._zod.def = o, e._zod.bag = e._zod.bag || {}, e._zod.version = jt;
|
|
759
759
|
const n = [...e._zod.def.checks ?? []];
|
|
760
760
|
e._zod.traits.has("$ZodCheck") && n.unshift(e);
|
|
761
761
|
for (const r of n)
|
|
762
|
-
for (const
|
|
763
|
-
|
|
762
|
+
for (const s of r._zod.onattach)
|
|
763
|
+
s(e);
|
|
764
764
|
if (n.length === 0)
|
|
765
765
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred?.push(() => {
|
|
766
766
|
e._zod.run = e._zod.parse;
|
|
767
767
|
});
|
|
768
768
|
else {
|
|
769
769
|
const r = (i, l, u) => {
|
|
770
|
-
let
|
|
771
|
-
for (const
|
|
772
|
-
if (
|
|
773
|
-
if (!
|
|
770
|
+
let d = W(i), m;
|
|
771
|
+
for (const z of l) {
|
|
772
|
+
if (z._zod.def.when) {
|
|
773
|
+
if (!z._zod.def.when(i))
|
|
774
774
|
continue;
|
|
775
|
-
} else if (
|
|
775
|
+
} else if (d)
|
|
776
776
|
continue;
|
|
777
|
-
const w = i.issues.length, S =
|
|
777
|
+
const w = i.issues.length, S = z._zod.check(i);
|
|
778
778
|
if (S instanceof Promise && u?.async === !1)
|
|
779
779
|
throw new q();
|
|
780
|
-
if (
|
|
781
|
-
|
|
782
|
-
await S, i.issues.length !== w && (
|
|
780
|
+
if (m || S instanceof Promise)
|
|
781
|
+
m = (m ?? Promise.resolve()).then(async () => {
|
|
782
|
+
await S, i.issues.length !== w && (d || (d = W(i, w)));
|
|
783
783
|
});
|
|
784
784
|
else {
|
|
785
785
|
if (i.issues.length === w)
|
|
786
786
|
continue;
|
|
787
|
-
|
|
787
|
+
d || (d = W(i, w));
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
return
|
|
791
|
-
},
|
|
792
|
-
if (
|
|
790
|
+
return m ? m.then(() => i) : i;
|
|
791
|
+
}, s = (i, l, u) => {
|
|
792
|
+
if (W(i))
|
|
793
793
|
return i.aborted = !0, i;
|
|
794
|
-
const
|
|
795
|
-
if (
|
|
794
|
+
const d = r(l, n, u);
|
|
795
|
+
if (d instanceof Promise) {
|
|
796
796
|
if (u.async === !1)
|
|
797
797
|
throw new q();
|
|
798
|
-
return
|
|
798
|
+
return d.then((m) => e._zod.parse(m, u));
|
|
799
799
|
}
|
|
800
|
-
return e._zod.parse(
|
|
800
|
+
return e._zod.parse(d, u);
|
|
801
801
|
};
|
|
802
802
|
e._zod.run = (i, l) => {
|
|
803
803
|
if (l.skipChecks)
|
|
804
804
|
return e._zod.parse(i, l);
|
|
805
805
|
if (l.direction === "backward") {
|
|
806
|
-
const
|
|
807
|
-
return
|
|
806
|
+
const d = e._zod.parse({ value: i.value, issues: [] }, { ...l, skipChecks: !0 });
|
|
807
|
+
return d instanceof Promise ? d.then((m) => s(m, i, l)) : s(d, i, l);
|
|
808
808
|
}
|
|
809
809
|
const u = e._zod.parse(i, l);
|
|
810
810
|
if (u instanceof Promise) {
|
|
811
811
|
if (l.async === !1)
|
|
812
812
|
throw new q();
|
|
813
|
-
return u.then((
|
|
813
|
+
return u.then((d) => r(d, n, l));
|
|
814
814
|
}
|
|
815
815
|
return r(u, n, l);
|
|
816
816
|
};
|
|
@@ -818,17 +818,17 @@ const Dt = {
|
|
|
818
818
|
$(e, "~standard", () => ({
|
|
819
819
|
validate: (r) => {
|
|
820
820
|
try {
|
|
821
|
-
const
|
|
822
|
-
return
|
|
821
|
+
const s = Jo(e, r);
|
|
822
|
+
return s.success ? { value: s.data } : { issues: s.error?.issues };
|
|
823
823
|
} catch {
|
|
824
|
-
return
|
|
824
|
+
return Bo(e, r).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
825
825
|
}
|
|
826
826
|
},
|
|
827
827
|
vendor: "zod",
|
|
828
828
|
version: 1
|
|
829
829
|
}));
|
|
830
|
-
}), $e = /* @__PURE__ */
|
|
831
|
-
|
|
830
|
+
}), $e = /* @__PURE__ */ f("$ZodString", (e, o) => {
|
|
831
|
+
P.init(e, o), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? bt(e._zod.bag), e._zod.parse = (t, n) => {
|
|
832
832
|
if (o.coerce)
|
|
833
833
|
try {
|
|
834
834
|
t.value = String(t.value);
|
|
@@ -841,11 +841,11 @@ const Dt = {
|
|
|
841
841
|
inst: e
|
|
842
842
|
}), t;
|
|
843
843
|
};
|
|
844
|
-
}), T = /* @__PURE__ */
|
|
844
|
+
}), T = /* @__PURE__ */ f("$ZodStringFormat", (e, o) => {
|
|
845
845
|
fe.init(e, o), $e.init(e, o);
|
|
846
|
-
}),
|
|
846
|
+
}), Lt = /* @__PURE__ */ f("$ZodGUID", (e, o) => {
|
|
847
847
|
o.pattern ?? (o.pattern = at), T.init(e, o);
|
|
848
|
-
}),
|
|
848
|
+
}), Ut = /* @__PURE__ */ f("$ZodUUID", (e, o) => {
|
|
849
849
|
if (o.version) {
|
|
850
850
|
const n = {
|
|
851
851
|
v1: 1,
|
|
@@ -863,9 +863,9 @@ const Dt = {
|
|
|
863
863
|
} else
|
|
864
864
|
o.pattern ?? (o.pattern = Te());
|
|
865
865
|
T.init(e, o);
|
|
866
|
-
}),
|
|
866
|
+
}), Ft = /* @__PURE__ */ f("$ZodEmail", (e, o) => {
|
|
867
867
|
o.pattern ?? (o.pattern = st), T.init(e, o);
|
|
868
|
-
}), Mt = /* @__PURE__ */
|
|
868
|
+
}), Mt = /* @__PURE__ */ f("$ZodURL", (e, o) => {
|
|
869
869
|
T.init(e, o), e._zod.check = (t) => {
|
|
870
870
|
try {
|
|
871
871
|
const n = t.value.trim(), r = new URL(n);
|
|
@@ -897,31 +897,31 @@ const Dt = {
|
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
|
-
}), Jt = /* @__PURE__ */
|
|
900
|
+
}), Jt = /* @__PURE__ */ f("$ZodEmoji", (e, o) => {
|
|
901
901
|
o.pattern ?? (o.pattern = lt()), T.init(e, o);
|
|
902
|
-
}),
|
|
902
|
+
}), Bt = /* @__PURE__ */ f("$ZodNanoID", (e, o) => {
|
|
903
903
|
o.pattern ?? (o.pattern = rt), T.init(e, o);
|
|
904
|
-
}),
|
|
904
|
+
}), Vt = /* @__PURE__ */ f("$ZodCUID", (e, o) => {
|
|
905
905
|
o.pattern ?? (o.pattern = Qo), T.init(e, o);
|
|
906
|
-
}),
|
|
906
|
+
}), Gt = /* @__PURE__ */ f("$ZodCUID2", (e, o) => {
|
|
907
907
|
o.pattern ?? (o.pattern = et), T.init(e, o);
|
|
908
|
-
}),
|
|
908
|
+
}), Wt = /* @__PURE__ */ f("$ZodULID", (e, o) => {
|
|
909
909
|
o.pattern ?? (o.pattern = ot), T.init(e, o);
|
|
910
|
-
}), qt = /* @__PURE__ */
|
|
910
|
+
}), qt = /* @__PURE__ */ f("$ZodXID", (e, o) => {
|
|
911
911
|
o.pattern ?? (o.pattern = tt), T.init(e, o);
|
|
912
|
-
}), Kt = /* @__PURE__ */
|
|
912
|
+
}), Kt = /* @__PURE__ */ f("$ZodKSUID", (e, o) => {
|
|
913
913
|
o.pattern ?? (o.pattern = nt), T.init(e, o);
|
|
914
|
-
}), Xt = /* @__PURE__ */
|
|
914
|
+
}), Xt = /* @__PURE__ */ f("$ZodISODateTime", (e, o) => {
|
|
915
915
|
o.pattern ?? (o.pattern = vt(o)), T.init(e, o);
|
|
916
|
-
}), Yt = /* @__PURE__ */
|
|
916
|
+
}), Yt = /* @__PURE__ */ f("$ZodISODate", (e, o) => {
|
|
917
917
|
o.pattern ?? (o.pattern = gt), T.init(e, o);
|
|
918
|
-
}), Ht = /* @__PURE__ */
|
|
918
|
+
}), Ht = /* @__PURE__ */ f("$ZodISOTime", (e, o) => {
|
|
919
919
|
o.pattern ?? (o.pattern = _t(o)), T.init(e, o);
|
|
920
|
-
}), Qt = /* @__PURE__ */
|
|
920
|
+
}), Qt = /* @__PURE__ */ f("$ZodISODuration", (e, o) => {
|
|
921
921
|
o.pattern ?? (o.pattern = it), T.init(e, o);
|
|
922
|
-
}), en = /* @__PURE__ */
|
|
922
|
+
}), en = /* @__PURE__ */ f("$ZodIPv4", (e, o) => {
|
|
923
923
|
o.pattern ?? (o.pattern = ut), T.init(e, o), e._zod.bag.format = "ipv4";
|
|
924
|
-
}), on = /* @__PURE__ */
|
|
924
|
+
}), on = /* @__PURE__ */ f("$ZodIPv6", (e, o) => {
|
|
925
925
|
o.pattern ?? (o.pattern = pt), T.init(e, o), e._zod.bag.format = "ipv6", e._zod.check = (t) => {
|
|
926
926
|
try {
|
|
927
927
|
new URL(`http://[${t.value}]`);
|
|
@@ -935,19 +935,19 @@ const Dt = {
|
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
|
-
}), tn = /* @__PURE__ */
|
|
938
|
+
}), tn = /* @__PURE__ */ f("$ZodCIDRv4", (e, o) => {
|
|
939
939
|
o.pattern ?? (o.pattern = dt), T.init(e, o);
|
|
940
|
-
}), nn = /* @__PURE__ */
|
|
940
|
+
}), nn = /* @__PURE__ */ f("$ZodCIDRv6", (e, o) => {
|
|
941
941
|
o.pattern ?? (o.pattern = ft), T.init(e, o), e._zod.check = (t) => {
|
|
942
942
|
const n = t.value.split("/");
|
|
943
943
|
try {
|
|
944
944
|
if (n.length !== 2)
|
|
945
945
|
throw new Error();
|
|
946
|
-
const [r,
|
|
947
|
-
if (!
|
|
946
|
+
const [r, s] = n;
|
|
947
|
+
if (!s)
|
|
948
948
|
throw new Error();
|
|
949
|
-
const i = Number(
|
|
950
|
-
if (`${i}` !==
|
|
949
|
+
const i = Number(s);
|
|
950
|
+
if (`${i}` !== s)
|
|
951
951
|
throw new Error();
|
|
952
952
|
if (i < 0 || i > 128)
|
|
953
953
|
throw new Error();
|
|
@@ -974,7 +974,7 @@ function co(e) {
|
|
|
974
974
|
return !1;
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
const rn = /* @__PURE__ */
|
|
977
|
+
const rn = /* @__PURE__ */ f("$ZodBase64", (e, o) => {
|
|
978
978
|
o.pattern ?? (o.pattern = ht), T.init(e, o), e._zod.bag.contentEncoding = "base64", e._zod.check = (t) => {
|
|
979
979
|
co(t.value) || t.issues.push({
|
|
980
980
|
code: "invalid_format",
|
|
@@ -991,7 +991,7 @@ function an(e) {
|
|
|
991
991
|
const o = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), t = o.padEnd(Math.ceil(o.length / 4) * 4, "=");
|
|
992
992
|
return co(t);
|
|
993
993
|
}
|
|
994
|
-
const sn = /* @__PURE__ */
|
|
994
|
+
const sn = /* @__PURE__ */ f("$ZodBase64URL", (e, o) => {
|
|
995
995
|
o.pattern ?? (o.pattern = oo), T.init(e, o), e._zod.bag.contentEncoding = "base64url", e._zod.check = (t) => {
|
|
996
996
|
an(t.value) || t.issues.push({
|
|
997
997
|
code: "invalid_format",
|
|
@@ -1001,7 +1001,7 @@ const sn = /* @__PURE__ */ d("$ZodBase64URL", (e, o) => {
|
|
|
1001
1001
|
continue: !o.abort
|
|
1002
1002
|
});
|
|
1003
1003
|
};
|
|
1004
|
-
}), cn = /* @__PURE__ */
|
|
1004
|
+
}), cn = /* @__PURE__ */ f("$ZodE164", (e, o) => {
|
|
1005
1005
|
o.pattern ?? (o.pattern = mt), T.init(e, o);
|
|
1006
1006
|
});
|
|
1007
1007
|
function ln(e, o = null) {
|
|
@@ -1018,7 +1018,7 @@ function ln(e, o = null) {
|
|
|
1018
1018
|
return !1;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
const un = /* @__PURE__ */
|
|
1021
|
+
const un = /* @__PURE__ */ f("$ZodJWT", (e, o) => {
|
|
1022
1022
|
T.init(e, o), e._zod.check = (t) => {
|
|
1023
1023
|
ln(t.value, o.alg) || t.issues.push({
|
|
1024
1024
|
code: "invalid_format",
|
|
@@ -1028,8 +1028,8 @@ const un = /* @__PURE__ */ d("$ZodJWT", (e, o) => {
|
|
|
1028
1028
|
continue: !o.abort
|
|
1029
1029
|
});
|
|
1030
1030
|
};
|
|
1031
|
-
}), lo = /* @__PURE__ */
|
|
1032
|
-
|
|
1031
|
+
}), lo = /* @__PURE__ */ f("$ZodNumber", (e, o) => {
|
|
1032
|
+
P.init(e, o), e._zod.pattern = e._zod.bag.pattern ?? ro, e._zod.parse = (t, n) => {
|
|
1033
1033
|
if (o.coerce)
|
|
1034
1034
|
try {
|
|
1035
1035
|
t.value = Number(t.value);
|
|
@@ -1038,19 +1038,19 @@ const un = /* @__PURE__ */ d("$ZodJWT", (e, o) => {
|
|
|
1038
1038
|
const r = t.value;
|
|
1039
1039
|
if (typeof r == "number" && !Number.isNaN(r) && Number.isFinite(r))
|
|
1040
1040
|
return t;
|
|
1041
|
-
const
|
|
1041
|
+
const s = typeof r == "number" ? Number.isNaN(r) ? "NaN" : Number.isFinite(r) ? void 0 : "Infinity" : void 0;
|
|
1042
1042
|
return t.issues.push({
|
|
1043
1043
|
expected: "number",
|
|
1044
1044
|
code: "invalid_type",
|
|
1045
1045
|
input: r,
|
|
1046
1046
|
inst: e,
|
|
1047
|
-
...
|
|
1047
|
+
...s ? { received: s } : {}
|
|
1048
1048
|
}), t;
|
|
1049
1049
|
};
|
|
1050
|
-
}), pn = /* @__PURE__ */
|
|
1051
|
-
|
|
1052
|
-
}), dn = /* @__PURE__ */
|
|
1053
|
-
|
|
1050
|
+
}), pn = /* @__PURE__ */ f("$ZodNumberFormat", (e, o) => {
|
|
1051
|
+
Pt.init(e, o), lo.init(e, o);
|
|
1052
|
+
}), dn = /* @__PURE__ */ f("$ZodBoolean", (e, o) => {
|
|
1053
|
+
P.init(e, o), e._zod.pattern = zt, e._zod.parse = (t, n) => {
|
|
1054
1054
|
if (o.coerce)
|
|
1055
1055
|
try {
|
|
1056
1056
|
t.value = !!t.value;
|
|
@@ -1064,8 +1064,8 @@ const un = /* @__PURE__ */ d("$ZodJWT", (e, o) => {
|
|
|
1064
1064
|
inst: e
|
|
1065
1065
|
}), t;
|
|
1066
1066
|
};
|
|
1067
|
-
}), fn = /* @__PURE__ */
|
|
1068
|
-
|
|
1067
|
+
}), fn = /* @__PURE__ */ f("$ZodNull", (e, o) => {
|
|
1068
|
+
P.init(e, o), e._zod.pattern = kt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
|
|
1069
1069
|
const r = t.value;
|
|
1070
1070
|
return r === null || t.issues.push({
|
|
1071
1071
|
expected: "null",
|
|
@@ -1074,10 +1074,10 @@ const un = /* @__PURE__ */ d("$ZodJWT", (e, o) => {
|
|
|
1074
1074
|
inst: e
|
|
1075
1075
|
}), t;
|
|
1076
1076
|
};
|
|
1077
|
-
}), hn = /* @__PURE__ */
|
|
1078
|
-
|
|
1079
|
-
}), mn = /* @__PURE__ */
|
|
1080
|
-
|
|
1077
|
+
}), hn = /* @__PURE__ */ f("$ZodUnknown", (e, o) => {
|
|
1078
|
+
P.init(e, o), e._zod.parse = (t) => t;
|
|
1079
|
+
}), mn = /* @__PURE__ */ f("$ZodNever", (e, o) => {
|
|
1080
|
+
P.init(e, o), e._zod.parse = (t, n) => (t.issues.push({
|
|
1081
1081
|
expected: "never",
|
|
1082
1082
|
code: "invalid_type",
|
|
1083
1083
|
input: t.value,
|
|
@@ -1085,10 +1085,10 @@ const un = /* @__PURE__ */ d("$ZodJWT", (e, o) => {
|
|
|
1085
1085
|
}), t);
|
|
1086
1086
|
});
|
|
1087
1087
|
function Oe(e, o, t) {
|
|
1088
|
-
e.issues.length && o.issues.push(...
|
|
1088
|
+
e.issues.length && o.issues.push(...B(t, e.issues)), o.value[t] = e.value;
|
|
1089
1089
|
}
|
|
1090
|
-
const gn = /* @__PURE__ */
|
|
1091
|
-
|
|
1090
|
+
const gn = /* @__PURE__ */ f("$ZodArray", (e, o) => {
|
|
1091
|
+
P.init(e, o), e._zod.parse = (t, n) => {
|
|
1092
1092
|
const r = t.value;
|
|
1093
1093
|
if (!Array.isArray(r))
|
|
1094
1094
|
return t.issues.push({
|
|
@@ -1098,22 +1098,22 @@ const gn = /* @__PURE__ */ d("$ZodArray", (e, o) => {
|
|
|
1098
1098
|
inst: e
|
|
1099
1099
|
}), t;
|
|
1100
1100
|
t.value = Array(r.length);
|
|
1101
|
-
const
|
|
1101
|
+
const s = [];
|
|
1102
1102
|
for (let i = 0; i < r.length; i++) {
|
|
1103
1103
|
const l = r[i], u = o.element._zod.run({
|
|
1104
1104
|
value: l,
|
|
1105
1105
|
issues: []
|
|
1106
1106
|
}, n);
|
|
1107
|
-
u instanceof Promise ?
|
|
1107
|
+
u instanceof Promise ? s.push(u.then((d) => Oe(d, t, i))) : Oe(u, t, i);
|
|
1108
1108
|
}
|
|
1109
|
-
return
|
|
1109
|
+
return s.length ? Promise.all(s).then(() => t) : t;
|
|
1110
1110
|
};
|
|
1111
1111
|
});
|
|
1112
1112
|
function se(e, o, t, n, r) {
|
|
1113
1113
|
if (e.issues.length) {
|
|
1114
1114
|
if (r && !(t in n))
|
|
1115
1115
|
return;
|
|
1116
|
-
o.issues.push(...
|
|
1116
|
+
o.issues.push(...B(t, e.issues));
|
|
1117
1117
|
}
|
|
1118
1118
|
e.value === void 0 ? t in n && (o.value[t] = void 0) : o.value[t] = e.value;
|
|
1119
1119
|
}
|
|
@@ -1131,27 +1131,27 @@ function uo(e) {
|
|
|
1131
1131
|
optionalKeys: new Set(t)
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
|
-
function po(e, o, t, n, r,
|
|
1135
|
-
const i = [], l = r.keySet, u = r.catchall._zod,
|
|
1136
|
-
for (const
|
|
1137
|
-
if (l.has(
|
|
1134
|
+
function po(e, o, t, n, r, s) {
|
|
1135
|
+
const i = [], l = r.keySet, u = r.catchall._zod, d = u.def.type, m = u.optout === "optional";
|
|
1136
|
+
for (const z in o) {
|
|
1137
|
+
if (l.has(z))
|
|
1138
1138
|
continue;
|
|
1139
|
-
if (
|
|
1140
|
-
i.push(
|
|
1139
|
+
if (d === "never") {
|
|
1140
|
+
i.push(z);
|
|
1141
1141
|
continue;
|
|
1142
1142
|
}
|
|
1143
|
-
const w = u.run({ value: o[
|
|
1144
|
-
w instanceof Promise ? e.push(w.then((S) => se(S, t,
|
|
1143
|
+
const w = u.run({ value: o[z], issues: [] }, n);
|
|
1144
|
+
w instanceof Promise ? e.push(w.then((S) => se(S, t, z, o, m))) : se(w, t, z, o, m);
|
|
1145
1145
|
}
|
|
1146
1146
|
return i.length && t.issues.push({
|
|
1147
1147
|
code: "unrecognized_keys",
|
|
1148
1148
|
keys: i,
|
|
1149
1149
|
input: o,
|
|
1150
|
-
inst:
|
|
1150
|
+
inst: s
|
|
1151
1151
|
}), e.length ? Promise.all(e).then(() => t) : t;
|
|
1152
1152
|
}
|
|
1153
|
-
const _n = /* @__PURE__ */
|
|
1154
|
-
if (
|
|
1153
|
+
const _n = /* @__PURE__ */ f("$ZodObject", (e, o) => {
|
|
1154
|
+
if (P.init(e, o), !Object.getOwnPropertyDescriptor(o, "shape")?.get) {
|
|
1155
1155
|
const l = o.shape;
|
|
1156
1156
|
Object.defineProperty(o, "shape", {
|
|
1157
1157
|
get: () => {
|
|
@@ -1165,98 +1165,98 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, o) => {
|
|
|
1165
1165
|
const n = be(() => uo(o));
|
|
1166
1166
|
$(e._zod, "propValues", () => {
|
|
1167
1167
|
const l = o.shape, u = {};
|
|
1168
|
-
for (const
|
|
1169
|
-
const
|
|
1170
|
-
if (
|
|
1171
|
-
u[
|
|
1172
|
-
for (const
|
|
1173
|
-
u[
|
|
1168
|
+
for (const d in l) {
|
|
1169
|
+
const m = l[d]._zod;
|
|
1170
|
+
if (m.values) {
|
|
1171
|
+
u[d] ?? (u[d] = /* @__PURE__ */ new Set());
|
|
1172
|
+
for (const z of m.values)
|
|
1173
|
+
u[d].add(z);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
return u;
|
|
1177
1177
|
});
|
|
1178
|
-
const r = ae,
|
|
1178
|
+
const r = ae, s = o.catchall;
|
|
1179
1179
|
let i;
|
|
1180
1180
|
e._zod.parse = (l, u) => {
|
|
1181
1181
|
i ?? (i = n.value);
|
|
1182
|
-
const
|
|
1183
|
-
if (!r(
|
|
1182
|
+
const d = l.value;
|
|
1183
|
+
if (!r(d))
|
|
1184
1184
|
return l.issues.push({
|
|
1185
1185
|
expected: "object",
|
|
1186
1186
|
code: "invalid_type",
|
|
1187
|
-
input:
|
|
1187
|
+
input: d,
|
|
1188
1188
|
inst: e
|
|
1189
1189
|
}), l;
|
|
1190
1190
|
l.value = {};
|
|
1191
|
-
const
|
|
1191
|
+
const m = [], z = i.shape;
|
|
1192
1192
|
for (const w of i.keys) {
|
|
1193
|
-
const S =
|
|
1194
|
-
|
|
1193
|
+
const S = z[w], E = S._zod.optout === "optional", I = S._zod.run({ value: d[w], issues: [] }, u);
|
|
1194
|
+
I instanceof Promise ? m.push(I.then((ee) => se(ee, l, w, d, E))) : se(I, l, w, d, E);
|
|
1195
1195
|
}
|
|
1196
|
-
return
|
|
1196
|
+
return s ? po(m, d, l, u, n.value, e) : m.length ? Promise.all(m).then(() => l) : l;
|
|
1197
1197
|
};
|
|
1198
|
-
}), vn = /* @__PURE__ */
|
|
1198
|
+
}), vn = /* @__PURE__ */ f("$ZodObjectJIT", (e, o) => {
|
|
1199
1199
|
_n.init(e, o);
|
|
1200
1200
|
const t = e._zod.parse, n = be(() => uo(o)), r = (w) => {
|
|
1201
|
-
const S = new Rt(["shape", "payload", "ctx"]), E = n.value,
|
|
1202
|
-
const
|
|
1203
|
-
return `shape[${
|
|
1201
|
+
const S = new Rt(["shape", "payload", "ctx"]), E = n.value, I = (L) => {
|
|
1202
|
+
const x = Ze(L);
|
|
1203
|
+
return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
|
|
1204
1204
|
};
|
|
1205
1205
|
S.write("const input = payload.value;");
|
|
1206
1206
|
const ee = /* @__PURE__ */ Object.create(null);
|
|
1207
1207
|
let $o = 0;
|
|
1208
|
-
for (const
|
|
1209
|
-
ee[
|
|
1208
|
+
for (const L of E.keys)
|
|
1209
|
+
ee[L] = `key_${$o++}`;
|
|
1210
1210
|
S.write("const newResult = {};");
|
|
1211
|
-
for (const
|
|
1212
|
-
const
|
|
1213
|
-
S.write(`const ${
|
|
1214
|
-
if (${
|
|
1215
|
-
if (${
|
|
1216
|
-
payload.issues = payload.issues.concat(${
|
|
1211
|
+
for (const L of E.keys) {
|
|
1212
|
+
const x = ee[L], j = Ze(L), Zo = w[L]?._zod?.optout === "optional";
|
|
1213
|
+
S.write(`const ${x} = ${I(L)};`), Zo ? S.write(`
|
|
1214
|
+
if (${x}.issues.length) {
|
|
1215
|
+
if (${j} in input) {
|
|
1216
|
+
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
1217
1217
|
...iss,
|
|
1218
|
-
path: iss.path ? [${
|
|
1218
|
+
path: iss.path ? [${j}, ...iss.path] : [${j}]
|
|
1219
1219
|
})));
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
|
-
if (${
|
|
1224
|
-
if (${
|
|
1225
|
-
newResult[${
|
|
1223
|
+
if (${x}.value === undefined) {
|
|
1224
|
+
if (${j} in input) {
|
|
1225
|
+
newResult[${j}] = undefined;
|
|
1226
1226
|
}
|
|
1227
1227
|
} else {
|
|
1228
|
-
newResult[${
|
|
1228
|
+
newResult[${j}] = ${x}.value;
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
`) : S.write(`
|
|
1232
|
-
if (${
|
|
1233
|
-
payload.issues = payload.issues.concat(${
|
|
1232
|
+
if (${x}.issues.length) {
|
|
1233
|
+
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
1234
1234
|
...iss,
|
|
1235
|
-
path: iss.path ? [${
|
|
1235
|
+
path: iss.path ? [${j}, ...iss.path] : [${j}]
|
|
1236
1236
|
})));
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
|
-
if (${
|
|
1240
|
-
if (${
|
|
1241
|
-
newResult[${
|
|
1239
|
+
if (${x}.value === undefined) {
|
|
1240
|
+
if (${j} in input) {
|
|
1241
|
+
newResult[${j}] = undefined;
|
|
1242
1242
|
}
|
|
1243
1243
|
} else {
|
|
1244
|
-
newResult[${
|
|
1244
|
+
newResult[${j}] = ${x}.value;
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
1247
|
`);
|
|
1248
1248
|
}
|
|
1249
1249
|
S.write("payload.value = newResult;"), S.write("return payload;");
|
|
1250
|
-
const
|
|
1251
|
-
return (
|
|
1250
|
+
const Po = S.compile();
|
|
1251
|
+
return (L, x) => Po(w, L, x);
|
|
1252
1252
|
};
|
|
1253
|
-
let
|
|
1254
|
-
const i = ae, l = !qe.jitless,
|
|
1255
|
-
let
|
|
1253
|
+
let s;
|
|
1254
|
+
const i = ae, l = !qe.jitless, d = l && No.value, m = o.catchall;
|
|
1255
|
+
let z;
|
|
1256
1256
|
e._zod.parse = (w, S) => {
|
|
1257
|
-
|
|
1257
|
+
z ?? (z = n.value);
|
|
1258
1258
|
const E = w.value;
|
|
1259
|
-
return i(E) ? l &&
|
|
1259
|
+
return i(E) ? l && d && S?.async === !1 && S.jitless !== !0 ? (s || (s = r(o.shape)), w = s(w, S), m ? po([], E, w, S, z, e) : w) : t(w, S) : (w.issues.push({
|
|
1260
1260
|
expected: "object",
|
|
1261
1261
|
code: "invalid_type",
|
|
1262
1262
|
input: E,
|
|
@@ -1264,53 +1264,53 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, o) => {
|
|
|
1264
1264
|
}), w);
|
|
1265
1265
|
};
|
|
1266
1266
|
});
|
|
1267
|
-
function
|
|
1268
|
-
for (const
|
|
1269
|
-
if (
|
|
1270
|
-
return o.value =
|
|
1271
|
-
const r = e.filter((
|
|
1267
|
+
function Ne(e, o, t, n) {
|
|
1268
|
+
for (const s of e)
|
|
1269
|
+
if (s.issues.length === 0)
|
|
1270
|
+
return o.value = s.value, o;
|
|
1271
|
+
const r = e.filter((s) => !W(s));
|
|
1272
1272
|
return r.length === 1 ? (o.value = r[0].value, r[0]) : (o.issues.push({
|
|
1273
1273
|
code: "invalid_union",
|
|
1274
1274
|
input: o.value,
|
|
1275
1275
|
inst: t,
|
|
1276
|
-
errors: e.map((
|
|
1276
|
+
errors: e.map((s) => s.issues.map((i) => F(i, n, U())))
|
|
1277
1277
|
}), o);
|
|
1278
1278
|
}
|
|
1279
|
-
const bn = /* @__PURE__ */
|
|
1280
|
-
|
|
1279
|
+
const bn = /* @__PURE__ */ f("$ZodUnion", (e, o) => {
|
|
1280
|
+
P.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
1281
|
if (o.options.every((r) => r._zod.values))
|
|
1282
1282
|
return new Set(o.options.flatMap((r) => Array.from(r._zod.values)));
|
|
1283
1283
|
}), $(e._zod, "pattern", () => {
|
|
1284
1284
|
if (o.options.every((r) => r._zod.pattern)) {
|
|
1285
|
-
const r = o.options.map((
|
|
1286
|
-
return new RegExp(`^(${r.map((
|
|
1285
|
+
const r = o.options.map((s) => s._zod.pattern);
|
|
1286
|
+
return new RegExp(`^(${r.map((s) => ze(s.source)).join("|")})$`);
|
|
1287
1287
|
}
|
|
1288
1288
|
});
|
|
1289
1289
|
const t = o.options.length === 1, n = o.options[0]._zod.run;
|
|
1290
|
-
e._zod.parse = (r,
|
|
1290
|
+
e._zod.parse = (r, s) => {
|
|
1291
1291
|
if (t)
|
|
1292
|
-
return n(r,
|
|
1292
|
+
return n(r, s);
|
|
1293
1293
|
let i = !1;
|
|
1294
1294
|
const l = [];
|
|
1295
1295
|
for (const u of o.options) {
|
|
1296
|
-
const
|
|
1296
|
+
const d = u._zod.run({
|
|
1297
1297
|
value: r.value,
|
|
1298
1298
|
issues: []
|
|
1299
|
-
},
|
|
1300
|
-
if (
|
|
1301
|
-
l.push(
|
|
1299
|
+
}, s);
|
|
1300
|
+
if (d instanceof Promise)
|
|
1301
|
+
l.push(d), i = !0;
|
|
1302
1302
|
else {
|
|
1303
|
-
if (
|
|
1304
|
-
return
|
|
1305
|
-
l.push(
|
|
1303
|
+
if (d.issues.length === 0)
|
|
1304
|
+
return d;
|
|
1305
|
+
l.push(d);
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
|
-
return i ? Promise.all(l).then((u) =>
|
|
1308
|
+
return i ? Promise.all(l).then((u) => Ne(u, r, e, s)) : Ne(l, r, e, s);
|
|
1309
1309
|
};
|
|
1310
|
-
}), yn = /* @__PURE__ */
|
|
1311
|
-
|
|
1312
|
-
const r = t.value,
|
|
1313
|
-
return
|
|
1310
|
+
}), yn = /* @__PURE__ */ f("$ZodIntersection", (e, o) => {
|
|
1311
|
+
P.init(e, o), e._zod.parse = (t, n) => {
|
|
1312
|
+
const r = t.value, s = o.left._zod.run({ value: r, issues: [] }, n), i = o.right._zod.run({ value: r, issues: [] }, n);
|
|
1313
|
+
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([u, d]) => Ie(t, u, d)) : Ie(t, s, i);
|
|
1314
1314
|
};
|
|
1315
1315
|
});
|
|
1316
1316
|
function _e(e, o) {
|
|
@@ -1319,15 +1319,15 @@ function _e(e, o) {
|
|
|
1319
1319
|
if (e instanceof Date && o instanceof Date && +e == +o)
|
|
1320
1320
|
return { valid: !0, data: e };
|
|
1321
1321
|
if (K(e) && K(o)) {
|
|
1322
|
-
const t = Object.keys(o), n = Object.keys(e).filter((
|
|
1323
|
-
for (const
|
|
1324
|
-
const i = _e(e[
|
|
1322
|
+
const t = Object.keys(o), n = Object.keys(e).filter((s) => t.indexOf(s) !== -1), r = { ...e, ...o };
|
|
1323
|
+
for (const s of n) {
|
|
1324
|
+
const i = _e(e[s], o[s]);
|
|
1325
1325
|
if (!i.valid)
|
|
1326
1326
|
return {
|
|
1327
1327
|
valid: !1,
|
|
1328
|
-
mergeErrorPath: [
|
|
1328
|
+
mergeErrorPath: [s, ...i.mergeErrorPath]
|
|
1329
1329
|
};
|
|
1330
|
-
r[
|
|
1330
|
+
r[s] = i.data;
|
|
1331
1331
|
}
|
|
1332
1332
|
return { valid: !0, data: r };
|
|
1333
1333
|
}
|
|
@@ -1336,7 +1336,7 @@ function _e(e, o) {
|
|
|
1336
1336
|
return { valid: !1, mergeErrorPath: [] };
|
|
1337
1337
|
const t = [];
|
|
1338
1338
|
for (let n = 0; n < e.length; n++) {
|
|
1339
|
-
const r = e[n],
|
|
1339
|
+
const r = e[n], s = o[n], i = _e(r, s);
|
|
1340
1340
|
if (!i.valid)
|
|
1341
1341
|
return {
|
|
1342
1342
|
valid: !1,
|
|
@@ -1348,7 +1348,7 @@ function _e(e, o) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return { valid: !1, mergeErrorPath: [] };
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Ie(e, o, t) {
|
|
1352
1352
|
const n = /* @__PURE__ */ new Map();
|
|
1353
1353
|
let r;
|
|
1354
1354
|
for (const l of o.issues)
|
|
@@ -1364,67 +1364,67 @@ function Ne(e, o, t) {
|
|
|
1364
1364
|
n.has(u) || n.set(u, {}), n.get(u).r = !0;
|
|
1365
1365
|
else
|
|
1366
1366
|
e.issues.push(l);
|
|
1367
|
-
const
|
|
1368
|
-
if (
|
|
1367
|
+
const s = [...n].filter(([, l]) => l.l && l.r).map(([l]) => l);
|
|
1368
|
+
if (s.length && r && e.issues.push({ ...r, keys: s }), W(e))
|
|
1369
1369
|
return e;
|
|
1370
1370
|
const i = _e(o.value, t.value);
|
|
1371
1371
|
if (!i.valid)
|
|
1372
1372
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
|
|
1373
1373
|
return e.value = i.data, e;
|
|
1374
1374
|
}
|
|
1375
|
-
const zn = /* @__PURE__ */
|
|
1376
|
-
|
|
1375
|
+
const zn = /* @__PURE__ */ f("$ZodTuple", (e, o) => {
|
|
1376
|
+
P.init(e, o);
|
|
1377
1377
|
const t = o.items;
|
|
1378
1378
|
e._zod.parse = (n, r) => {
|
|
1379
|
-
const
|
|
1380
|
-
if (!Array.isArray(
|
|
1379
|
+
const s = n.value;
|
|
1380
|
+
if (!Array.isArray(s))
|
|
1381
1381
|
return n.issues.push({
|
|
1382
|
-
input:
|
|
1382
|
+
input: s,
|
|
1383
1383
|
inst: e,
|
|
1384
1384
|
expected: "tuple",
|
|
1385
1385
|
code: "invalid_type"
|
|
1386
1386
|
}), n;
|
|
1387
1387
|
n.value = [];
|
|
1388
|
-
const i = [], l = [...t].reverse().findIndex((
|
|
1388
|
+
const i = [], l = [...t].reverse().findIndex((m) => m._zod.optin !== "optional"), u = l === -1 ? 0 : t.length - l;
|
|
1389
1389
|
if (!o.rest) {
|
|
1390
|
-
const
|
|
1391
|
-
if (
|
|
1390
|
+
const m = s.length > t.length, z = s.length < u - 1;
|
|
1391
|
+
if (m || z)
|
|
1392
1392
|
return n.issues.push({
|
|
1393
|
-
...
|
|
1394
|
-
input:
|
|
1393
|
+
...m ? { code: "too_big", maximum: t.length, inclusive: !0 } : { code: "too_small", minimum: t.length },
|
|
1394
|
+
input: s,
|
|
1395
1395
|
inst: e,
|
|
1396
1396
|
origin: "array"
|
|
1397
1397
|
}), n;
|
|
1398
1398
|
}
|
|
1399
|
-
let
|
|
1400
|
-
for (const
|
|
1401
|
-
if (
|
|
1399
|
+
let d = -1;
|
|
1400
|
+
for (const m of t) {
|
|
1401
|
+
if (d++, d >= s.length && d >= u)
|
|
1402
1402
|
continue;
|
|
1403
|
-
const
|
|
1404
|
-
value:
|
|
1403
|
+
const z = m._zod.run({
|
|
1404
|
+
value: s[d],
|
|
1405
1405
|
issues: []
|
|
1406
1406
|
}, r);
|
|
1407
|
-
|
|
1407
|
+
z instanceof Promise ? i.push(z.then((w) => te(w, n, d))) : te(z, n, d);
|
|
1408
1408
|
}
|
|
1409
1409
|
if (o.rest) {
|
|
1410
|
-
const
|
|
1411
|
-
for (const
|
|
1412
|
-
|
|
1410
|
+
const m = s.slice(t.length);
|
|
1411
|
+
for (const z of m) {
|
|
1412
|
+
d++;
|
|
1413
1413
|
const w = o.rest._zod.run({
|
|
1414
|
-
value:
|
|
1414
|
+
value: z,
|
|
1415
1415
|
issues: []
|
|
1416
1416
|
}, r);
|
|
1417
|
-
w instanceof Promise ? i.push(w.then((S) => te(S, n,
|
|
1417
|
+
w instanceof Promise ? i.push(w.then((S) => te(S, n, d))) : te(w, n, d);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
return i.length ? Promise.all(i).then(() => n) : n;
|
|
1421
1421
|
};
|
|
1422
1422
|
});
|
|
1423
1423
|
function te(e, o, t) {
|
|
1424
|
-
e.issues.length && o.issues.push(...
|
|
1424
|
+
e.issues.length && o.issues.push(...B(t, e.issues)), o.value[t] = e.value;
|
|
1425
1425
|
}
|
|
1426
|
-
const kn = /* @__PURE__ */
|
|
1427
|
-
|
|
1426
|
+
const kn = /* @__PURE__ */ f("$ZodRecord", (e, o) => {
|
|
1427
|
+
P.init(e, o), e._zod.parse = (t, n) => {
|
|
1428
1428
|
const r = t.value;
|
|
1429
1429
|
if (!K(r))
|
|
1430
1430
|
return t.issues.push({
|
|
@@ -1433,21 +1433,21 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, o) => {
|
|
|
1433
1433
|
input: r,
|
|
1434
1434
|
inst: e
|
|
1435
1435
|
}), t;
|
|
1436
|
-
const
|
|
1436
|
+
const s = [], i = o.keyType._zod.values;
|
|
1437
1437
|
if (i) {
|
|
1438
1438
|
t.value = {};
|
|
1439
1439
|
const l = /* @__PURE__ */ new Set();
|
|
1440
|
-
for (const
|
|
1441
|
-
if (typeof
|
|
1442
|
-
l.add(typeof
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
})) : (
|
|
1440
|
+
for (const d of i)
|
|
1441
|
+
if (typeof d == "string" || typeof d == "number" || typeof d == "symbol") {
|
|
1442
|
+
l.add(typeof d == "number" ? d.toString() : d);
|
|
1443
|
+
const m = o.valueType._zod.run({ value: r[d], issues: [] }, n);
|
|
1444
|
+
m instanceof Promise ? s.push(m.then((z) => {
|
|
1445
|
+
z.issues.length && t.issues.push(...B(d, z.issues)), t.value[d] = z.value;
|
|
1446
|
+
})) : (m.issues.length && t.issues.push(...B(d, m.issues)), t.value[d] = m.value);
|
|
1447
1447
|
}
|
|
1448
1448
|
let u;
|
|
1449
|
-
for (const
|
|
1450
|
-
l.has(
|
|
1449
|
+
for (const d in r)
|
|
1450
|
+
l.has(d) || (u = u ?? [], u.push(d));
|
|
1451
1451
|
u && u.length > 0 && t.issues.push({
|
|
1452
1452
|
code: "unrecognized_keys",
|
|
1453
1453
|
input: r,
|
|
@@ -1463,34 +1463,34 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, o) => {
|
|
|
1463
1463
|
if (u instanceof Promise)
|
|
1464
1464
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1465
1465
|
if (typeof l == "string" && ro.test(l) && u.issues.length) {
|
|
1466
|
-
const
|
|
1467
|
-
if (
|
|
1466
|
+
const z = o.keyType._zod.run({ value: Number(l), issues: [] }, n);
|
|
1467
|
+
if (z instanceof Promise)
|
|
1468
1468
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1469
|
-
|
|
1469
|
+
z.issues.length === 0 && (u = z);
|
|
1470
1470
|
}
|
|
1471
1471
|
if (u.issues.length) {
|
|
1472
1472
|
o.mode === "loose" ? t.value[l] = r[l] : t.issues.push({
|
|
1473
1473
|
code: "invalid_key",
|
|
1474
1474
|
origin: "record",
|
|
1475
|
-
issues: u.issues.map((
|
|
1475
|
+
issues: u.issues.map((z) => F(z, n, U())),
|
|
1476
1476
|
input: l,
|
|
1477
1477
|
path: [l],
|
|
1478
1478
|
inst: e
|
|
1479
1479
|
});
|
|
1480
1480
|
continue;
|
|
1481
1481
|
}
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
})) : (
|
|
1482
|
+
const m = o.valueType._zod.run({ value: r[l], issues: [] }, n);
|
|
1483
|
+
m instanceof Promise ? s.push(m.then((z) => {
|
|
1484
|
+
z.issues.length && t.issues.push(...B(l, z.issues)), t.value[u.value] = z.value;
|
|
1485
|
+
})) : (m.issues.length && t.issues.push(...B(l, m.issues)), t.value[u.value] = m.value);
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
|
-
return
|
|
1488
|
+
return s.length ? Promise.all(s).then(() => t) : t;
|
|
1489
1489
|
};
|
|
1490
|
-
}), wn = /* @__PURE__ */
|
|
1491
|
-
|
|
1490
|
+
}), wn = /* @__PURE__ */ f("$ZodEnum", (e, o) => {
|
|
1491
|
+
P.init(e, o);
|
|
1492
1492
|
const t = Ke(o.entries), n = new Set(t);
|
|
1493
|
-
e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.filter((r) =>
|
|
1493
|
+
e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.filter((r) => Io.has(typeof r)).map((r) => typeof r == "string" ? ue(r) : r.toString()).join("|")})$`), e._zod.parse = (r, s) => {
|
|
1494
1494
|
const i = r.value;
|
|
1495
1495
|
return n.has(i) || r.issues.push({
|
|
1496
1496
|
code: "invalid_value",
|
|
@@ -1499,10 +1499,10 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, o) => {
|
|
|
1499
1499
|
inst: e
|
|
1500
1500
|
}), r;
|
|
1501
1501
|
};
|
|
1502
|
-
}), Sn = /* @__PURE__ */
|
|
1503
|
-
|
|
1502
|
+
}), Sn = /* @__PURE__ */ f("$ZodTransform", (e, o) => {
|
|
1503
|
+
P.init(e, o), e._zod.parse = (t, n) => {
|
|
1504
1504
|
if (n.direction === "backward")
|
|
1505
|
-
throw new
|
|
1505
|
+
throw new We(e.constructor.name);
|
|
1506
1506
|
const r = o.transform(t.value, t);
|
|
1507
1507
|
if (n.async)
|
|
1508
1508
|
return (r instanceof Promise ? r : Promise.resolve(r)).then((i) => (t.value = i, t));
|
|
@@ -1514,46 +1514,46 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, o) => {
|
|
|
1514
1514
|
function Ee(e, o) {
|
|
1515
1515
|
return e.issues.length && o === void 0 ? { issues: [], value: void 0 } : e;
|
|
1516
1516
|
}
|
|
1517
|
-
const fo = /* @__PURE__ */
|
|
1518
|
-
|
|
1517
|
+
const fo = /* @__PURE__ */ f("$ZodOptional", (e, o) => {
|
|
1518
|
+
P.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
1519
|
const t = o.innerType._zod.pattern;
|
|
1520
1520
|
return t ? new RegExp(`^(${ze(t.source)})?$`) : void 0;
|
|
1521
1521
|
}), e._zod.parse = (t, n) => {
|
|
1522
1522
|
if (o.innerType._zod.optin === "optional") {
|
|
1523
1523
|
const r = o.innerType._zod.run(t, n);
|
|
1524
|
-
return r instanceof Promise ? r.then((
|
|
1524
|
+
return r instanceof Promise ? r.then((s) => Ee(s, t.value)) : Ee(r, t.value);
|
|
1525
1525
|
}
|
|
1526
1526
|
return t.value === void 0 ? t : o.innerType._zod.run(t, n);
|
|
1527
1527
|
};
|
|
1528
|
-
}), $n = /* @__PURE__ */
|
|
1528
|
+
}), $n = /* @__PURE__ */ f("$ZodExactOptional", (e, o) => {
|
|
1529
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
|
-
}),
|
|
1531
|
-
|
|
1530
|
+
}), Pn = /* @__PURE__ */ f("$ZodNullable", (e, o) => {
|
|
1531
|
+
P.init(e, o), $(e._zod, "optin", () => o.innerType._zod.optin), $(e._zod, "optout", () => o.innerType._zod.optout), $(e._zod, "pattern", () => {
|
|
1532
1532
|
const t = o.innerType._zod.pattern;
|
|
1533
1533
|
return t ? new RegExp(`^(${ze(t.source)}|null)$`) : void 0;
|
|
1534
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
|
-
}),
|
|
1536
|
-
|
|
1535
|
+
}), Zn = /* @__PURE__ */ f("$ZodDefault", (e, o) => {
|
|
1536
|
+
P.init(e, o), e._zod.optin = "optional", $(e._zod, "values", () => o.innerType._zod.values), e._zod.parse = (t, n) => {
|
|
1537
1537
|
if (n.direction === "backward")
|
|
1538
1538
|
return o.innerType._zod.run(t, n);
|
|
1539
1539
|
if (t.value === void 0)
|
|
1540
1540
|
return t.value = o.defaultValue, t;
|
|
1541
1541
|
const r = o.innerType._zod.run(t, n);
|
|
1542
|
-
return r instanceof Promise ? r.then((
|
|
1542
|
+
return r instanceof Promise ? r.then((s) => Ce(s, o)) : Ce(r, o);
|
|
1543
1543
|
};
|
|
1544
1544
|
});
|
|
1545
1545
|
function Ce(e, o) {
|
|
1546
1546
|
return e.value === void 0 && (e.value = o.defaultValue), e;
|
|
1547
1547
|
}
|
|
1548
|
-
const Tn = /* @__PURE__ */
|
|
1549
|
-
|
|
1550
|
-
}), On = /* @__PURE__ */
|
|
1551
|
-
|
|
1548
|
+
const Tn = /* @__PURE__ */ f("$ZodPrefault", (e, o) => {
|
|
1549
|
+
P.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__ */ f("$ZodNonOptional", (e, o) => {
|
|
1551
|
+
P.init(e, o), $(e._zod, "values", () => {
|
|
1552
1552
|
const t = o.innerType._zod.values;
|
|
1553
1553
|
return t ? new Set([...t].filter((n) => n !== void 0)) : void 0;
|
|
1554
1554
|
}), e._zod.parse = (t, n) => {
|
|
1555
1555
|
const r = o.innerType._zod.run(t, n);
|
|
1556
|
-
return r instanceof Promise ? r.then((
|
|
1556
|
+
return r instanceof Promise ? r.then((s) => Ae(s, e)) : Ae(r, e);
|
|
1557
1557
|
};
|
|
1558
1558
|
});
|
|
1559
1559
|
function Ae(e, o) {
|
|
@@ -1564,40 +1564,40 @@ function Ae(e, o) {
|
|
|
1564
1564
|
inst: o
|
|
1565
1565
|
}), e;
|
|
1566
1566
|
}
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1567
|
+
const Nn = /* @__PURE__ */ f("$ZodCatch", (e, o) => {
|
|
1568
|
+
P.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
1569
|
if (n.direction === "backward")
|
|
1570
1570
|
return o.innerType._zod.run(t, n);
|
|
1571
1571
|
const r = o.innerType._zod.run(t, n);
|
|
1572
|
-
return r instanceof Promise ? r.then((
|
|
1572
|
+
return r instanceof Promise ? r.then((s) => (t.value = s.value, s.issues.length && (t.value = o.catchValue({
|
|
1573
1573
|
...t,
|
|
1574
1574
|
error: {
|
|
1575
|
-
issues:
|
|
1575
|
+
issues: s.issues.map((i) => F(i, n, U()))
|
|
1576
1576
|
},
|
|
1577
1577
|
input: t.value
|
|
1578
1578
|
}), t.issues = []), t)) : (t.value = r.value, r.issues.length && (t.value = o.catchValue({
|
|
1579
1579
|
...t,
|
|
1580
1580
|
error: {
|
|
1581
|
-
issues: r.issues.map((
|
|
1581
|
+
issues: r.issues.map((s) => F(s, n, U()))
|
|
1582
1582
|
},
|
|
1583
1583
|
input: t.value
|
|
1584
1584
|
}), t.issues = []), t);
|
|
1585
1585
|
};
|
|
1586
|
-
}),
|
|
1587
|
-
|
|
1586
|
+
}), In = /* @__PURE__ */ f("$ZodPipe", (e, o) => {
|
|
1587
|
+
P.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
1588
|
if (n.direction === "backward") {
|
|
1589
|
-
const
|
|
1590
|
-
return
|
|
1589
|
+
const s = o.out._zod.run(t, n);
|
|
1590
|
+
return s instanceof Promise ? s.then((i) => ne(i, o.in, n)) : ne(s, o.in, n);
|
|
1591
1591
|
}
|
|
1592
1592
|
const r = o.in._zod.run(t, n);
|
|
1593
|
-
return r instanceof Promise ? r.then((
|
|
1593
|
+
return r instanceof Promise ? r.then((s) => ne(s, o.out, n)) : ne(r, o.out, n);
|
|
1594
1594
|
};
|
|
1595
1595
|
});
|
|
1596
1596
|
function ne(e, o, t) {
|
|
1597
1597
|
return e.issues.length ? (e.aborted = !0, e) : o._zod.run({ value: e.value, issues: e.issues }, t);
|
|
1598
1598
|
}
|
|
1599
|
-
const En = /* @__PURE__ */
|
|
1600
|
-
|
|
1599
|
+
const En = /* @__PURE__ */ f("$ZodReadonly", (e, o) => {
|
|
1600
|
+
P.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
1601
|
if (n.direction === "backward")
|
|
1602
1602
|
return o.innerType._zod.run(t, n);
|
|
1603
1603
|
const r = o.innerType._zod.run(t, n);
|
|
@@ -1607,17 +1607,17 @@ const En = /* @__PURE__ */ d("$ZodReadonly", (e, o) => {
|
|
|
1607
1607
|
function xe(e) {
|
|
1608
1608
|
return e.value = Object.freeze(e.value), e;
|
|
1609
1609
|
}
|
|
1610
|
-
const Cn = /* @__PURE__ */
|
|
1611
|
-
|
|
1612
|
-
}), An = /* @__PURE__ */
|
|
1613
|
-
|
|
1610
|
+
const Cn = /* @__PURE__ */ f("$ZodLazy", (e, o) => {
|
|
1611
|
+
P.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__ */ f("$ZodCustom", (e, o) => {
|
|
1613
|
+
D.init(e, o), P.init(e, o), e._zod.parse = (t, n) => t, e._zod.check = (t) => {
|
|
1614
1614
|
const n = t.value, r = o.fn(n);
|
|
1615
1615
|
if (r instanceof Promise)
|
|
1616
|
-
return r.then((
|
|
1617
|
-
|
|
1616
|
+
return r.then((s) => De(s, t, n, e));
|
|
1617
|
+
De(r, t, n, e);
|
|
1618
1618
|
};
|
|
1619
1619
|
});
|
|
1620
|
-
function
|
|
1620
|
+
function De(e, o, t, n) {
|
|
1621
1621
|
if (!e) {
|
|
1622
1622
|
const r = {
|
|
1623
1623
|
code: "custom",
|
|
@@ -1662,10 +1662,10 @@ class xn {
|
|
|
1662
1662
|
return this._map.has(o);
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function Dn() {
|
|
1666
1666
|
return new xn();
|
|
1667
1667
|
}
|
|
1668
|
-
(Re = globalThis).__zod_globalRegistry ?? (Re.__zod_globalRegistry =
|
|
1668
|
+
(Re = globalThis).__zod_globalRegistry ?? (Re.__zod_globalRegistry = Dn());
|
|
1669
1669
|
const Y = globalThis.__zod_globalRegistry;
|
|
1670
1670
|
// @__NO_SIDE_EFFECTS__
|
|
1671
1671
|
function Rn(e, o) {
|
|
@@ -1675,7 +1675,7 @@ function Rn(e, o) {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
// @__NO_SIDE_EFFECTS__
|
|
1678
|
-
function
|
|
1678
|
+
function jn(e, o) {
|
|
1679
1679
|
return new e({
|
|
1680
1680
|
type: "string",
|
|
1681
1681
|
format: "email",
|
|
@@ -1685,7 +1685,7 @@ function Dn(e, o) {
|
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
// @__NO_SIDE_EFFECTS__
|
|
1688
|
-
function
|
|
1688
|
+
function je(e, o) {
|
|
1689
1689
|
return new e({
|
|
1690
1690
|
type: "string",
|
|
1691
1691
|
format: "guid",
|
|
@@ -1695,7 +1695,7 @@ function De(e, o) {
|
|
|
1695
1695
|
});
|
|
1696
1696
|
}
|
|
1697
1697
|
// @__NO_SIDE_EFFECTS__
|
|
1698
|
-
function
|
|
1698
|
+
function Ln(e, o) {
|
|
1699
1699
|
return new e({
|
|
1700
1700
|
type: "string",
|
|
1701
1701
|
format: "uuid",
|
|
@@ -1705,7 +1705,7 @@ function Un(e, o) {
|
|
|
1705
1705
|
});
|
|
1706
1706
|
}
|
|
1707
1707
|
// @__NO_SIDE_EFFECTS__
|
|
1708
|
-
function
|
|
1708
|
+
function Un(e, o) {
|
|
1709
1709
|
return new e({
|
|
1710
1710
|
type: "string",
|
|
1711
1711
|
format: "uuid",
|
|
@@ -1716,7 +1716,7 @@ function Fn(e, o) {
|
|
|
1716
1716
|
});
|
|
1717
1717
|
}
|
|
1718
1718
|
// @__NO_SIDE_EFFECTS__
|
|
1719
|
-
function
|
|
1719
|
+
function Fn(e, o) {
|
|
1720
1720
|
return new e({
|
|
1721
1721
|
type: "string",
|
|
1722
1722
|
format: "uuid",
|
|
@@ -1748,7 +1748,7 @@ function Jn(e, o) {
|
|
|
1748
1748
|
});
|
|
1749
1749
|
}
|
|
1750
1750
|
// @__NO_SIDE_EFFECTS__
|
|
1751
|
-
function
|
|
1751
|
+
function Bn(e, o) {
|
|
1752
1752
|
return new e({
|
|
1753
1753
|
type: "string",
|
|
1754
1754
|
format: "emoji",
|
|
@@ -1758,7 +1758,7 @@ function Vn(e, o) {
|
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
1760
|
// @__NO_SIDE_EFFECTS__
|
|
1761
|
-
function
|
|
1761
|
+
function Vn(e, o) {
|
|
1762
1762
|
return new e({
|
|
1763
1763
|
type: "string",
|
|
1764
1764
|
format: "nanoid",
|
|
@@ -1768,7 +1768,7 @@ function Bn(e, o) {
|
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
1770
|
// @__NO_SIDE_EFFECTS__
|
|
1771
|
-
function
|
|
1771
|
+
function Gn(e, o) {
|
|
1772
1772
|
return new e({
|
|
1773
1773
|
type: "string",
|
|
1774
1774
|
format: "cuid",
|
|
@@ -1778,7 +1778,7 @@ function Wn(e, o) {
|
|
|
1778
1778
|
});
|
|
1779
1779
|
}
|
|
1780
1780
|
// @__NO_SIDE_EFFECTS__
|
|
1781
|
-
function
|
|
1781
|
+
function Wn(e, o) {
|
|
1782
1782
|
return new e({
|
|
1783
1783
|
type: "string",
|
|
1784
1784
|
format: "cuid2",
|
|
@@ -1983,7 +1983,7 @@ function hr(e, o) {
|
|
|
1983
1983
|
});
|
|
1984
1984
|
}
|
|
1985
1985
|
// @__NO_SIDE_EFFECTS__
|
|
1986
|
-
function
|
|
1986
|
+
function Le(e, o) {
|
|
1987
1987
|
return new ao({
|
|
1988
1988
|
check: "less_than",
|
|
1989
1989
|
...k(o),
|
|
@@ -2001,7 +2001,7 @@ function he(e, o) {
|
|
|
2001
2001
|
});
|
|
2002
2002
|
}
|
|
2003
2003
|
// @__NO_SIDE_EFFECTS__
|
|
2004
|
-
function
|
|
2004
|
+
function Ue(e, o) {
|
|
2005
2005
|
return new so({
|
|
2006
2006
|
check: "greater_than",
|
|
2007
2007
|
...k(o),
|
|
@@ -2019,7 +2019,7 @@ function me(e, o) {
|
|
|
2019
2019
|
});
|
|
2020
2020
|
}
|
|
2021
2021
|
// @__NO_SIDE_EFFECTS__
|
|
2022
|
-
function
|
|
2022
|
+
function Fe(e, o) {
|
|
2023
2023
|
return new $t({
|
|
2024
2024
|
check: "multiple_of",
|
|
2025
2025
|
...k(o),
|
|
@@ -2028,7 +2028,7 @@ function Le(e, o) {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
// @__NO_SIDE_EFFECTS__
|
|
2030
2030
|
function ho(e, o) {
|
|
2031
|
-
return new
|
|
2031
|
+
return new Zt({
|
|
2032
2032
|
check: "max_length",
|
|
2033
2033
|
...k(o),
|
|
2034
2034
|
maximum: e
|
|
@@ -2052,7 +2052,7 @@ function mo(e, o) {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
// @__NO_SIDE_EFFECTS__
|
|
2054
2054
|
function mr(e, o) {
|
|
2055
|
-
return new
|
|
2055
|
+
return new Nt({
|
|
2056
2056
|
check: "string_format",
|
|
2057
2057
|
format: "regex",
|
|
2058
2058
|
...k(o),
|
|
@@ -2061,7 +2061,7 @@ function mr(e, o) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
// @__NO_SIDE_EFFECTS__
|
|
2063
2063
|
function gr(e) {
|
|
2064
|
-
return new
|
|
2064
|
+
return new It({
|
|
2065
2065
|
check: "string_format",
|
|
2066
2066
|
format: "lowercase",
|
|
2067
2067
|
...k(e)
|
|
@@ -2104,7 +2104,7 @@ function yr(e, o) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
// @__NO_SIDE_EFFECTS__
|
|
2106
2106
|
function X(e) {
|
|
2107
|
-
return new
|
|
2107
|
+
return new Dt({
|
|
2108
2108
|
check: "overwrite",
|
|
2109
2109
|
tx: e
|
|
2110
2110
|
});
|
|
@@ -2130,7 +2130,7 @@ function $r() {
|
|
|
2130
2130
|
return /* @__PURE__ */ X((e) => Oo(e));
|
|
2131
2131
|
}
|
|
2132
2132
|
// @__NO_SIDE_EFFECTS__
|
|
2133
|
-
function
|
|
2133
|
+
function Pr(e, o, t) {
|
|
2134
2134
|
return new e({
|
|
2135
2135
|
type: "array",
|
|
2136
2136
|
element: o,
|
|
@@ -2141,7 +2141,7 @@ function Zr(e, o, t) {
|
|
|
2141
2141
|
});
|
|
2142
2142
|
}
|
|
2143
2143
|
// @__NO_SIDE_EFFECTS__
|
|
2144
|
-
function
|
|
2144
|
+
function Zr(e, o, t) {
|
|
2145
2145
|
return new e({
|
|
2146
2146
|
type: "custom",
|
|
2147
2147
|
check: "custom",
|
|
@@ -2163,7 +2163,7 @@ function Tr(e) {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
// @__NO_SIDE_EFFECTS__
|
|
2165
2165
|
function Or(e, o) {
|
|
2166
|
-
const t = new
|
|
2166
|
+
const t = new D({
|
|
2167
2167
|
check: "custom",
|
|
2168
2168
|
...k(o)
|
|
2169
2169
|
});
|
|
@@ -2188,30 +2188,30 @@ function go(e) {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
function O(e, o, t = { path: [], schemaPath: [] }) {
|
|
2190
2190
|
var n;
|
|
2191
|
-
const r = e._zod.def,
|
|
2192
|
-
if (
|
|
2193
|
-
return
|
|
2191
|
+
const r = e._zod.def, s = o.seen.get(e);
|
|
2192
|
+
if (s)
|
|
2193
|
+
return s.count++, t.schemaPath.includes(e) && (s.cycle = t.path), s.schema;
|
|
2194
2194
|
const i = { schema: {}, count: 1, cycle: void 0, path: t.path };
|
|
2195
2195
|
o.seen.set(e, i);
|
|
2196
2196
|
const l = e._zod.toJSONSchema?.();
|
|
2197
2197
|
if (l)
|
|
2198
2198
|
i.schema = l;
|
|
2199
2199
|
else {
|
|
2200
|
-
const
|
|
2200
|
+
const m = {
|
|
2201
2201
|
...t,
|
|
2202
2202
|
schemaPath: [...t.schemaPath, e],
|
|
2203
2203
|
path: t.path
|
|
2204
2204
|
};
|
|
2205
2205
|
if (e._zod.processJSONSchema)
|
|
2206
|
-
e._zod.processJSONSchema(o, i.schema,
|
|
2206
|
+
e._zod.processJSONSchema(o, i.schema, m);
|
|
2207
2207
|
else {
|
|
2208
2208
|
const w = i.schema, S = o.processors[r.type];
|
|
2209
2209
|
if (!S)
|
|
2210
2210
|
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);
|
|
2211
|
-
S(e, o, w,
|
|
2211
|
+
S(e, o, w, m);
|
|
2212
2212
|
}
|
|
2213
|
-
const
|
|
2214
|
-
|
|
2213
|
+
const z = e._zod.parent;
|
|
2214
|
+
z && (i.ref || (i.ref = z), O(z, o, m), o.seen.get(z).isParent = !0);
|
|
2215
2215
|
}
|
|
2216
2216
|
const u = o.metadataRegistry.get(e);
|
|
2217
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;
|
|
@@ -2233,25 +2233,25 @@ function _o(e, o) {
|
|
|
2233
2233
|
const r = (i) => {
|
|
2234
2234
|
const l = e.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2235
2235
|
if (e.external) {
|
|
2236
|
-
const
|
|
2237
|
-
if (
|
|
2238
|
-
return { ref: w(
|
|
2236
|
+
const z = e.external.registry.get(i[0])?.id, w = e.external.uri ?? ((E) => E);
|
|
2237
|
+
if (z)
|
|
2238
|
+
return { ref: w(z) };
|
|
2239
2239
|
const S = i[1].defId ?? i[1].schema.id ?? `schema${e.counter++}`;
|
|
2240
2240
|
return i[1].defId = S, { defId: S, ref: `${w("__shared")}#/${l}/${S}` };
|
|
2241
2241
|
}
|
|
2242
2242
|
if (i[1] === t)
|
|
2243
2243
|
return { ref: "#" };
|
|
2244
|
-
const
|
|
2245
|
-
return { defId:
|
|
2246
|
-
},
|
|
2244
|
+
const d = `#/${l}/`, m = i[1].schema.id ?? `__schema${e.counter++}`;
|
|
2245
|
+
return { defId: m, ref: d + m };
|
|
2246
|
+
}, s = (i) => {
|
|
2247
2247
|
if (i[1].schema.$ref)
|
|
2248
2248
|
return;
|
|
2249
|
-
const l = i[1], { ref: u, defId:
|
|
2250
|
-
l.def = { ...l.schema },
|
|
2251
|
-
const
|
|
2252
|
-
for (const
|
|
2253
|
-
delete
|
|
2254
|
-
|
|
2249
|
+
const l = i[1], { ref: u, defId: d } = r(i);
|
|
2250
|
+
l.def = { ...l.schema }, d && (l.defId = d);
|
|
2251
|
+
const m = l.schema;
|
|
2252
|
+
for (const z in m)
|
|
2253
|
+
delete m[z];
|
|
2254
|
+
m.$ref = u;
|
|
2255
2255
|
};
|
|
2256
2256
|
if (e.cycles === "throw")
|
|
2257
2257
|
for (const i of e.seen.entries()) {
|
|
@@ -2264,26 +2264,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2264
2264
|
for (const i of e.seen.entries()) {
|
|
2265
2265
|
const l = i[1];
|
|
2266
2266
|
if (o === i[0]) {
|
|
2267
|
-
|
|
2267
|
+
s(i);
|
|
2268
2268
|
continue;
|
|
2269
2269
|
}
|
|
2270
2270
|
if (e.external) {
|
|
2271
|
-
const
|
|
2272
|
-
if (o !== i[0] &&
|
|
2273
|
-
|
|
2271
|
+
const d = e.external.registry.get(i[0])?.id;
|
|
2272
|
+
if (o !== i[0] && d) {
|
|
2273
|
+
s(i);
|
|
2274
2274
|
continue;
|
|
2275
2275
|
}
|
|
2276
2276
|
}
|
|
2277
2277
|
if (e.metadataRegistry.get(i[0])?.id) {
|
|
2278
|
-
|
|
2278
|
+
s(i);
|
|
2279
2279
|
continue;
|
|
2280
2280
|
}
|
|
2281
2281
|
if (l.cycle) {
|
|
2282
|
-
|
|
2282
|
+
s(i);
|
|
2283
2283
|
continue;
|
|
2284
2284
|
}
|
|
2285
2285
|
if (l.count > 1 && e.reused === "ref") {
|
|
2286
|
-
|
|
2286
|
+
s(i);
|
|
2287
2287
|
continue;
|
|
2288
2288
|
}
|
|
2289
2289
|
}
|
|
@@ -2296,21 +2296,21 @@ function vo(e, o) {
|
|
|
2296
2296
|
const l = e.seen.get(i);
|
|
2297
2297
|
if (l.ref === null)
|
|
2298
2298
|
return;
|
|
2299
|
-
const u = l.def ?? l.schema,
|
|
2300
|
-
if (l.ref = null,
|
|
2301
|
-
n(
|
|
2302
|
-
const w = e.seen.get(
|
|
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,
|
|
2304
|
-
for (const
|
|
2305
|
-
|
|
2299
|
+
const u = l.def ?? l.schema, d = { ...u }, m = l.ref;
|
|
2300
|
+
if (l.ref = null, m) {
|
|
2301
|
+
n(m);
|
|
2302
|
+
const w = e.seen.get(m), 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, d), i._zod.parent === m)
|
|
2304
|
+
for (const I in u)
|
|
2305
|
+
I === "$ref" || I === "allOf" || I in d || delete u[I];
|
|
2306
2306
|
if (S.$ref && w.def)
|
|
2307
|
-
for (const
|
|
2308
|
-
|
|
2307
|
+
for (const I in u)
|
|
2308
|
+
I === "$ref" || I === "allOf" || I in w.def && JSON.stringify(u[I]) === JSON.stringify(w.def[I]) && delete u[I];
|
|
2309
2309
|
}
|
|
2310
|
-
const
|
|
2311
|
-
if (
|
|
2312
|
-
n(
|
|
2313
|
-
const w = e.seen.get(
|
|
2310
|
+
const z = i._zod.parent;
|
|
2311
|
+
if (z && z !== m) {
|
|
2312
|
+
n(z);
|
|
2313
|
+
const w = e.seen.get(z);
|
|
2314
2314
|
if (w?.schema.$ref && (u.$ref = w.schema.$ref, w.def))
|
|
2315
2315
|
for (const S in u)
|
|
2316
2316
|
S === "$ref" || S === "allOf" || S in w.def && JSON.stringify(u[S]) === JSON.stringify(w.def[S]) && delete u[S];
|
|
@@ -2331,12 +2331,12 @@ function vo(e, o) {
|
|
|
2331
2331
|
r.$id = e.external.uri(i);
|
|
2332
2332
|
}
|
|
2333
2333
|
Object.assign(r, t.def ?? t.schema);
|
|
2334
|
-
const
|
|
2334
|
+
const s = e.external?.defs ?? {};
|
|
2335
2335
|
for (const i of e.seen.entries()) {
|
|
2336
2336
|
const l = i[1];
|
|
2337
|
-
l.def && l.defId && (
|
|
2337
|
+
l.def && l.defId && (s[l.defId] = l.def);
|
|
2338
2338
|
}
|
|
2339
|
-
e.external || Object.keys(
|
|
2339
|
+
e.external || Object.keys(s).length > 0 && (e.target === "draft-2020-12" ? r.$defs = s : r.definitions = s);
|
|
2340
2340
|
try {
|
|
2341
2341
|
const i = JSON.parse(JSON.stringify(r));
|
|
2342
2342
|
return Object.defineProperty(i, "~standard", {
|
|
@@ -2396,13 +2396,13 @@ function C(e, o) {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
return !1;
|
|
2398
2398
|
}
|
|
2399
|
-
const
|
|
2399
|
+
const Nr = (e, o = {}) => (t) => {
|
|
2400
2400
|
const n = go({ ...t, processors: o });
|
|
2401
2401
|
return O(e, n), _o(n, e), vo(n, e);
|
|
2402
2402
|
}, le = (e, o, t = {}) => (n) => {
|
|
2403
|
-
const { libraryOptions: r, target:
|
|
2403
|
+
const { libraryOptions: r, target: s } = n ?? {}, i = go({ ...r ?? {}, target: s, io: o, processors: t });
|
|
2404
2404
|
return O(e, i), _o(i, e), vo(i, e);
|
|
2405
|
-
},
|
|
2405
|
+
}, Ir = {
|
|
2406
2406
|
guid: "uuid",
|
|
2407
2407
|
url: "uri",
|
|
2408
2408
|
datetime: "date-time",
|
|
@@ -2412,136 +2412,136 @@ const Ir = (e, o = {}) => (t) => {
|
|
|
2412
2412
|
}, Er = (e, o, t, n) => {
|
|
2413
2413
|
const r = t;
|
|
2414
2414
|
r.type = "string";
|
|
2415
|
-
const { minimum:
|
|
2416
|
-
if (typeof
|
|
2417
|
-
const
|
|
2418
|
-
|
|
2419
|
-
...
|
|
2415
|
+
const { minimum: s, maximum: i, format: l, patterns: u, contentEncoding: d } = e._zod.bag;
|
|
2416
|
+
if (typeof s == "number" && (r.minLength = s), typeof i == "number" && (r.maxLength = i), l && (r.format = Ir[l] ?? l, r.format === "" && delete r.format, l === "time" && delete r.format), d && (r.contentEncoding = d), u && u.size > 0) {
|
|
2417
|
+
const m = [...u];
|
|
2418
|
+
m.length === 1 ? r.pattern = m[0].source : m.length > 1 && (r.allOf = [
|
|
2419
|
+
...m.map((z) => ({
|
|
2420
2420
|
...o.target === "draft-07" || o.target === "draft-04" || o.target === "openapi-3.0" ? { type: "string" } : {},
|
|
2421
|
-
pattern:
|
|
2421
|
+
pattern: z.source
|
|
2422
2422
|
}))
|
|
2423
2423
|
]);
|
|
2424
2424
|
}
|
|
2425
2425
|
}, Cr = (e, o, t, n) => {
|
|
2426
|
-
const r = t, { minimum:
|
|
2427
|
-
typeof l == "string" && l.includes("int") ? r.type = "integer" : r.type = "number", typeof
|
|
2426
|
+
const r = t, { minimum: s, maximum: i, format: l, multipleOf: u, exclusiveMaximum: d, exclusiveMinimum: m } = e._zod.bag;
|
|
2427
|
+
typeof l == "string" && l.includes("int") ? r.type = "integer" : r.type = "number", typeof m == "number" && (o.target === "draft-04" || o.target === "openapi-3.0" ? (r.minimum = m, r.exclusiveMinimum = !0) : r.exclusiveMinimum = m), typeof s == "number" && (r.minimum = s, typeof m == "number" && o.target !== "draft-04" && (m >= s ? delete r.minimum : delete r.exclusiveMinimum)), typeof d == "number" && (o.target === "draft-04" || o.target === "openapi-3.0" ? (r.maximum = d, r.exclusiveMaximum = !0) : r.exclusiveMaximum = d), typeof i == "number" && (r.maximum = i, typeof d == "number" && o.target !== "draft-04" && (d <= i ? delete r.maximum : delete r.exclusiveMaximum)), typeof u == "number" && (r.multipleOf = u);
|
|
2428
2428
|
}, Ar = (e, o, t, n) => {
|
|
2429
2429
|
t.type = "boolean";
|
|
2430
2430
|
}, xr = (e, o, t, n) => {
|
|
2431
2431
|
o.target === "openapi-3.0" ? (t.type = "string", t.nullable = !0, t.enum = [null]) : t.type = "null";
|
|
2432
|
-
},
|
|
2432
|
+
}, Dr = (e, o, t, n) => {
|
|
2433
2433
|
t.not = {};
|
|
2434
2434
|
}, Rr = (e, o, t, n) => {
|
|
2435
|
-
},
|
|
2436
|
-
const r = e._zod.def,
|
|
2437
|
-
|
|
2438
|
-
},
|
|
2435
|
+
}, jr = (e, o, t, n) => {
|
|
2436
|
+
const r = e._zod.def, s = Ke(r.entries);
|
|
2437
|
+
s.every((i) => typeof i == "number") && (t.type = "number"), s.every((i) => typeof i == "string") && (t.type = "string"), t.enum = s;
|
|
2438
|
+
}, Lr = (e, o, t, n) => {
|
|
2439
2439
|
if (o.unrepresentable === "throw")
|
|
2440
2440
|
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
2441
|
-
},
|
|
2441
|
+
}, Ur = (e, o, t, n) => {
|
|
2442
2442
|
if (o.unrepresentable === "throw")
|
|
2443
2443
|
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
2444
|
-
},
|
|
2445
|
-
const r = t,
|
|
2446
|
-
typeof i == "number" && (r.minItems = i), typeof l == "number" && (r.maxItems = l), r.type = "array", r.items = O(
|
|
2444
|
+
}, Fr = (e, o, t, n) => {
|
|
2445
|
+
const r = t, s = 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(s.element, o, { ...n, path: [...n.path, "items"] });
|
|
2447
2447
|
}, Mr = (e, o, t, n) => {
|
|
2448
|
-
const r = t,
|
|
2448
|
+
const r = t, s = e._zod.def;
|
|
2449
2449
|
r.type = "object", r.properties = {};
|
|
2450
|
-
const i =
|
|
2451
|
-
for (const
|
|
2452
|
-
r.properties[
|
|
2450
|
+
const i = s.shape;
|
|
2451
|
+
for (const d in i)
|
|
2452
|
+
r.properties[d] = O(i[d], o, {
|
|
2453
2453
|
...n,
|
|
2454
|
-
path: [...n.path, "properties",
|
|
2454
|
+
path: [...n.path, "properties", d]
|
|
2455
2455
|
});
|
|
2456
|
-
const l = new Set(Object.keys(i)), u = new Set([...l].filter((
|
|
2457
|
-
const
|
|
2458
|
-
return o.io === "input" ?
|
|
2456
|
+
const l = new Set(Object.keys(i)), u = new Set([...l].filter((d) => {
|
|
2457
|
+
const m = s.shape[d]._zod;
|
|
2458
|
+
return o.io === "input" ? m.optin === void 0 : m.optout === void 0;
|
|
2459
2459
|
}));
|
|
2460
|
-
u.size > 0 && (r.required = Array.from(u)),
|
|
2460
|
+
u.size > 0 && (r.required = Array.from(u)), s.catchall?._zod.def.type === "never" ? r.additionalProperties = !1 : s.catchall ? s.catchall && (r.additionalProperties = O(s.catchall, o, {
|
|
2461
2461
|
...n,
|
|
2462
2462
|
path: [...n.path, "additionalProperties"]
|
|
2463
2463
|
})) : o.io === "output" && (r.additionalProperties = !1);
|
|
2464
2464
|
}, Jr = (e, o, t, n) => {
|
|
2465
|
-
const r = e._zod.def,
|
|
2465
|
+
const r = e._zod.def, s = r.inclusive === !1, i = r.options.map((l, u) => O(l, o, {
|
|
2466
2466
|
...n,
|
|
2467
|
-
path: [...n.path,
|
|
2467
|
+
path: [...n.path, s ? "oneOf" : "anyOf", u]
|
|
2468
2468
|
}));
|
|
2469
|
-
|
|
2470
|
-
},
|
|
2471
|
-
const r = e._zod.def,
|
|
2469
|
+
s ? t.oneOf = i : t.anyOf = i;
|
|
2470
|
+
}, Br = (e, o, t, n) => {
|
|
2471
|
+
const r = e._zod.def, s = O(r.left, o, {
|
|
2472
2472
|
...n,
|
|
2473
2473
|
path: [...n.path, "allOf", 0]
|
|
2474
2474
|
}), i = O(r.right, o, {
|
|
2475
2475
|
...n,
|
|
2476
2476
|
path: [...n.path, "allOf", 1]
|
|
2477
|
-
}), l = (
|
|
2478
|
-
...l(
|
|
2477
|
+
}), l = (d) => "allOf" in d && Object.keys(d).length === 1, u = [
|
|
2478
|
+
...l(s) ? s.allOf : [s],
|
|
2479
2479
|
...l(i) ? i.allOf : [i]
|
|
2480
2480
|
];
|
|
2481
2481
|
t.allOf = u;
|
|
2482
|
-
},
|
|
2483
|
-
const r = t,
|
|
2482
|
+
}, Vr = (e, o, t, n) => {
|
|
2483
|
+
const r = t, s = e._zod.def;
|
|
2484
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 =
|
|
2485
|
+
const i = o.target === "draft-2020-12" ? "prefixItems" : "items", l = o.target === "draft-2020-12" || o.target === "openapi-3.0" ? "items" : "additionalItems", u = s.items.map((w, S) => O(w, o, {
|
|
2486
2486
|
...n,
|
|
2487
2487
|
path: [...n.path, i, S]
|
|
2488
|
-
})),
|
|
2488
|
+
})), d = s.rest ? O(s.rest, o, {
|
|
2489
2489
|
...n,
|
|
2490
|
-
path: [...n.path, l, ...o.target === "openapi-3.0" ? [
|
|
2490
|
+
path: [...n.path, l, ...o.target === "openapi-3.0" ? [s.items.length] : []]
|
|
2491
2491
|
}) : null;
|
|
2492
|
-
o.target === "draft-2020-12" ? (r.prefixItems = u,
|
|
2492
|
+
o.target === "draft-2020-12" ? (r.prefixItems = u, d && (r.items = d)) : o.target === "openapi-3.0" ? (r.items = {
|
|
2493
2493
|
anyOf: u
|
|
2494
|
-
},
|
|
2495
|
-
const { minimum:
|
|
2496
|
-
typeof
|
|
2497
|
-
},
|
|
2498
|
-
const r = t,
|
|
2494
|
+
}, d && r.items.anyOf.push(d), r.minItems = u.length, d || (r.maxItems = u.length)) : (r.items = u, d && (r.additionalItems = d));
|
|
2495
|
+
const { minimum: m, maximum: z } = e._zod.bag;
|
|
2496
|
+
typeof m == "number" && (r.minItems = m), typeof z == "number" && (r.maxItems = z);
|
|
2497
|
+
}, Gr = (e, o, t, n) => {
|
|
2498
|
+
const r = t, s = e._zod.def;
|
|
2499
2499
|
r.type = "object";
|
|
2500
|
-
const i =
|
|
2501
|
-
if (
|
|
2502
|
-
const
|
|
2500
|
+
const i = s.keyType, u = i._zod.bag?.patterns;
|
|
2501
|
+
if (s.mode === "loose" && u && u.size > 0) {
|
|
2502
|
+
const m = O(s.valueType, o, {
|
|
2503
2503
|
...n,
|
|
2504
2504
|
path: [...n.path, "patternProperties", "*"]
|
|
2505
2505
|
});
|
|
2506
2506
|
r.patternProperties = {};
|
|
2507
|
-
for (const
|
|
2508
|
-
r.patternProperties[
|
|
2507
|
+
for (const z of u)
|
|
2508
|
+
r.patternProperties[z.source] = m;
|
|
2509
2509
|
} else
|
|
2510
|
-
(o.target === "draft-07" || o.target === "draft-2020-12") && (r.propertyNames = O(
|
|
2510
|
+
(o.target === "draft-07" || o.target === "draft-2020-12") && (r.propertyNames = O(s.keyType, o, {
|
|
2511
2511
|
...n,
|
|
2512
2512
|
path: [...n.path, "propertyNames"]
|
|
2513
|
-
})), r.additionalProperties = O(
|
|
2513
|
+
})), r.additionalProperties = O(s.valueType, o, {
|
|
2514
2514
|
...n,
|
|
2515
2515
|
path: [...n.path, "additionalProperties"]
|
|
2516
2516
|
});
|
|
2517
|
-
const
|
|
2518
|
-
if (
|
|
2519
|
-
const
|
|
2520
|
-
|
|
2517
|
+
const d = i._zod.values;
|
|
2518
|
+
if (d) {
|
|
2519
|
+
const m = [...d].filter((z) => typeof z == "string" || typeof z == "number");
|
|
2520
|
+
m.length > 0 && (r.required = m);
|
|
2521
2521
|
}
|
|
2522
|
-
},
|
|
2523
|
-
const r = e._zod.def,
|
|
2524
|
-
o.target === "openapi-3.0" ? (i.ref = r.innerType, t.nullable = !0) : t.anyOf = [
|
|
2522
|
+
}, Wr = (e, o, t, n) => {
|
|
2523
|
+
const r = e._zod.def, s = 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 = [s, { type: "null" }];
|
|
2525
2525
|
}, qr = (e, o, t, n) => {
|
|
2526
2526
|
const r = e._zod.def;
|
|
2527
2527
|
O(r.innerType, o, n);
|
|
2528
|
-
const
|
|
2529
|
-
|
|
2528
|
+
const s = o.seen.get(e);
|
|
2529
|
+
s.ref = r.innerType;
|
|
2530
2530
|
}, Kr = (e, o, t, n) => {
|
|
2531
2531
|
const r = e._zod.def;
|
|
2532
2532
|
O(r.innerType, o, n);
|
|
2533
|
-
const
|
|
2534
|
-
|
|
2533
|
+
const s = o.seen.get(e);
|
|
2534
|
+
s.ref = r.innerType, t.default = JSON.parse(JSON.stringify(r.defaultValue));
|
|
2535
2535
|
}, Xr = (e, o, t, n) => {
|
|
2536
2536
|
const r = e._zod.def;
|
|
2537
2537
|
O(r.innerType, o, n);
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2538
|
+
const s = o.seen.get(e);
|
|
2539
|
+
s.ref = r.innerType, o.io === "input" && (t._prefault = JSON.parse(JSON.stringify(r.defaultValue)));
|
|
2540
2540
|
}, Yr = (e, o, t, n) => {
|
|
2541
2541
|
const r = e._zod.def;
|
|
2542
2542
|
O(r.innerType, o, n);
|
|
2543
|
-
const
|
|
2544
|
-
|
|
2543
|
+
const s = o.seen.get(e);
|
|
2544
|
+
s.ref = r.innerType;
|
|
2545
2545
|
let i;
|
|
2546
2546
|
try {
|
|
2547
2547
|
i = r.catchValue(void 0);
|
|
@@ -2550,45 +2550,45 @@ const Ir = (e, o = {}) => (t) => {
|
|
|
2550
2550
|
}
|
|
2551
2551
|
t.default = i;
|
|
2552
2552
|
}, Hr = (e, o, t, n) => {
|
|
2553
|
-
const r = e._zod.def,
|
|
2554
|
-
O(
|
|
2553
|
+
const r = e._zod.def, s = o.io === "input" ? r.in._zod.def.type === "transform" ? r.out : r.in : r.out;
|
|
2554
|
+
O(s, o, n);
|
|
2555
2555
|
const i = o.seen.get(e);
|
|
2556
|
-
i.ref =
|
|
2556
|
+
i.ref = s;
|
|
2557
2557
|
}, Qr = (e, o, t, n) => {
|
|
2558
2558
|
const r = e._zod.def;
|
|
2559
2559
|
O(r.innerType, o, n);
|
|
2560
|
-
const
|
|
2561
|
-
|
|
2560
|
+
const s = o.seen.get(e);
|
|
2561
|
+
s.ref = r.innerType, t.readOnly = !0;
|
|
2562
2562
|
}, bo = (e, o, t, n) => {
|
|
2563
2563
|
const r = e._zod.def;
|
|
2564
2564
|
O(r.innerType, o, n);
|
|
2565
|
-
const
|
|
2566
|
-
|
|
2565
|
+
const s = o.seen.get(e);
|
|
2566
|
+
s.ref = r.innerType;
|
|
2567
2567
|
}, ei = (e, o, t, n) => {
|
|
2568
2568
|
const r = e._zod.innerType;
|
|
2569
2569
|
O(r, o, n);
|
|
2570
|
-
const
|
|
2571
|
-
|
|
2572
|
-
}, oi = /* @__PURE__ */
|
|
2573
|
-
Xt.init(e, o),
|
|
2570
|
+
const s = o.seen.get(e);
|
|
2571
|
+
s.ref = r;
|
|
2572
|
+
}, oi = /* @__PURE__ */ f("ZodISODateTime", (e, o) => {
|
|
2573
|
+
Xt.init(e, o), N.init(e, o);
|
|
2574
2574
|
});
|
|
2575
2575
|
function ti(e) {
|
|
2576
2576
|
return /* @__PURE__ */ ir(oi, e);
|
|
2577
2577
|
}
|
|
2578
|
-
const ni = /* @__PURE__ */
|
|
2579
|
-
Yt.init(e, o),
|
|
2578
|
+
const ni = /* @__PURE__ */ f("ZodISODate", (e, o) => {
|
|
2579
|
+
Yt.init(e, o), N.init(e, o);
|
|
2580
2580
|
});
|
|
2581
2581
|
function ri(e) {
|
|
2582
2582
|
return /* @__PURE__ */ ar(ni, e);
|
|
2583
2583
|
}
|
|
2584
|
-
const ii = /* @__PURE__ */
|
|
2585
|
-
Ht.init(e, o),
|
|
2584
|
+
const ii = /* @__PURE__ */ f("ZodISOTime", (e, o) => {
|
|
2585
|
+
Ht.init(e, o), N.init(e, o);
|
|
2586
2586
|
});
|
|
2587
2587
|
function ai(e) {
|
|
2588
2588
|
return /* @__PURE__ */ sr(ii, e);
|
|
2589
2589
|
}
|
|
2590
|
-
const si = /* @__PURE__ */
|
|
2591
|
-
Qt.init(e, o),
|
|
2590
|
+
const si = /* @__PURE__ */ f("ZodISODuration", (e, o) => {
|
|
2591
|
+
Qt.init(e, o), N.init(e, o);
|
|
2592
2592
|
});
|
|
2593
2593
|
function ci(e) {
|
|
2594
2594
|
return /* @__PURE__ */ cr(si, e);
|
|
@@ -2600,7 +2600,7 @@ const yo = (e, o) => {
|
|
|
2600
2600
|
// enumerable: false,
|
|
2601
2601
|
},
|
|
2602
2602
|
flatten: {
|
|
2603
|
-
value: (t) =>
|
|
2603
|
+
value: (t) => Fo(e, t)
|
|
2604
2604
|
// enumerable: false,
|
|
2605
2605
|
},
|
|
2606
2606
|
addIssue: {
|
|
@@ -2622,21 +2622,21 @@ const yo = (e, o) => {
|
|
|
2622
2622
|
// enumerable: false,
|
|
2623
2623
|
}
|
|
2624
2624
|
});
|
|
2625
|
-
}, li =
|
|
2625
|
+
}, li = f("ZodError", yo), R = f("ZodError", yo, {
|
|
2626
2626
|
Parent: Error
|
|
2627
|
-
}), ui = /* @__PURE__ */ we(
|
|
2627
|
+
}), ui = /* @__PURE__ */ we(R), pi = /* @__PURE__ */ Se(R), di = /* @__PURE__ */ pe(R), fi = /* @__PURE__ */ de(R), hi = /* @__PURE__ */ Vo(R), mi = /* @__PURE__ */ Go(R), gi = /* @__PURE__ */ Wo(R), _i = /* @__PURE__ */ qo(R), vi = /* @__PURE__ */ Ko(R), bi = /* @__PURE__ */ Xo(R), yi = /* @__PURE__ */ Yo(R), zi = /* @__PURE__ */ Ho(R), Z = /* @__PURE__ */ f("ZodType", (e, o) => (P.init(e, o), Object.assign(e["~standard"], {
|
|
2628
2628
|
jsonSchema: {
|
|
2629
2629
|
input: le(e, "input"),
|
|
2630
2630
|
output: le(e, "output")
|
|
2631
2631
|
}
|
|
2632
|
-
}), e.toJSONSchema =
|
|
2632
|
+
}), e.toJSONSchema = Nr(e, {}), e.def = o, e.type = o.type, Object.defineProperty(e, "_def", { value: o }), e.check = (...t) => e.clone(M(o, {
|
|
2633
2633
|
checks: [
|
|
2634
2634
|
...o.checks ?? [],
|
|
2635
2635
|
...t.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
|
|
2636
2636
|
]
|
|
2637
2637
|
}), {
|
|
2638
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 = () =>
|
|
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 = () => Be(e), e.exactOptional = () => ta(e), e.nullable = () => Ve(e), e.nullish = () => Be(Ve(e)), e.nonoptional = (t) => ca(e, t), e.array = () => A(e), e.or = (t) => b([e, t]), e.and = (t) => Xi(e, t), e.transform = (t) => Ge(e, ea(t)), e.default = (t) => ia(e, t), e.prefault = (t) => sa(e, t), e.catch = (t) => ua(e, t), e.pipe = (t) => Ge(e, t), e.readonly = () => fa(e), e.describe = (t) => {
|
|
2640
2640
|
const n = e.clone();
|
|
2641
2641
|
return Y.add(n, { description: t }), n;
|
|
2642
2642
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2649,123 +2649,123 @@ const yo = (e, o) => {
|
|
|
2649
2649
|
return Y.get(e);
|
|
2650
2650
|
const n = e.clone();
|
|
2651
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__ */
|
|
2653
|
-
$e.init(e, o),
|
|
2652
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), zo = /* @__PURE__ */ f("_ZodString", (e, o) => {
|
|
2653
|
+
$e.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (n, r, s) => Er(e, n, r);
|
|
2654
2654
|
const t = e._zod.bag;
|
|
2655
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__ */
|
|
2657
|
-
$e.init(e, o), zo.init(e, o), e.email = (t) => e.check(/* @__PURE__ */
|
|
2656
|
+
}), ki = /* @__PURE__ */ f("ZodString", (e, o) => {
|
|
2657
|
+
$e.init(e, o), zo.init(e, o), e.email = (t) => e.check(/* @__PURE__ */ jn(wi, t)), e.url = (t) => e.check(/* @__PURE__ */ Jn(Si, t)), e.jwt = (t) => e.check(/* @__PURE__ */ rr(Li, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Bn($i, t)), e.guid = (t) => e.check(/* @__PURE__ */ je(Me, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Ln(re, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Un(re, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Fn(re, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Mn(re, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Vn(Pi, t)), e.guid = (t) => e.check(/* @__PURE__ */ je(Me, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Gn(Zi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ Wn(Ti, t)), e.ulid = (t) => e.check(/* @__PURE__ */ qn(Oi, t)), e.base64 = (t) => e.check(/* @__PURE__ */ or(Di, t)), e.base64url = (t) => e.check(/* @__PURE__ */ tr(Ri, t)), e.xid = (t) => e.check(/* @__PURE__ */ Kn(Ni, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Xn(Ii, 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(ji, 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
2658
|
});
|
|
2659
|
-
function
|
|
2659
|
+
function a(e) {
|
|
2660
2660
|
return /* @__PURE__ */ Rn(ki, e);
|
|
2661
2661
|
}
|
|
2662
|
-
const
|
|
2662
|
+
const N = /* @__PURE__ */ f("ZodStringFormat", (e, o) => {
|
|
2663
2663
|
T.init(e, o), zo.init(e, o);
|
|
2664
|
-
}), wi = /* @__PURE__ */
|
|
2665
|
-
|
|
2666
|
-
}), Me = /* @__PURE__ */
|
|
2667
|
-
|
|
2668
|
-
}), re = /* @__PURE__ */
|
|
2669
|
-
|
|
2670
|
-
}), Si = /* @__PURE__ */
|
|
2671
|
-
Mt.init(e, o),
|
|
2672
|
-
}), $i = /* @__PURE__ */
|
|
2673
|
-
Jt.init(e, o),
|
|
2674
|
-
}),
|
|
2675
|
-
|
|
2676
|
-
}),
|
|
2677
|
-
|
|
2678
|
-
}), Ti = /* @__PURE__ */
|
|
2679
|
-
|
|
2680
|
-
}), Oi = /* @__PURE__ */
|
|
2681
|
-
|
|
2682
|
-
}),
|
|
2683
|
-
qt.init(e, o),
|
|
2684
|
-
}),
|
|
2685
|
-
Kt.init(e, o),
|
|
2686
|
-
}), Ei = /* @__PURE__ */
|
|
2687
|
-
en.init(e, o),
|
|
2688
|
-
}), Ci = /* @__PURE__ */
|
|
2689
|
-
on.init(e, o),
|
|
2690
|
-
}), Ai = /* @__PURE__ */
|
|
2691
|
-
tn.init(e, o),
|
|
2692
|
-
}), xi = /* @__PURE__ */
|
|
2693
|
-
nn.init(e, o),
|
|
2694
|
-
}),
|
|
2695
|
-
rn.init(e, o),
|
|
2696
|
-
}), Ri = /* @__PURE__ */
|
|
2697
|
-
sn.init(e, o),
|
|
2698
|
-
}),
|
|
2699
|
-
cn.init(e, o),
|
|
2700
|
-
}),
|
|
2701
|
-
un.init(e, o),
|
|
2702
|
-
}), ko = /* @__PURE__ */
|
|
2703
|
-
lo.init(e, o),
|
|
2664
|
+
}), wi = /* @__PURE__ */ f("ZodEmail", (e, o) => {
|
|
2665
|
+
Ft.init(e, o), N.init(e, o);
|
|
2666
|
+
}), Me = /* @__PURE__ */ f("ZodGUID", (e, o) => {
|
|
2667
|
+
Lt.init(e, o), N.init(e, o);
|
|
2668
|
+
}), re = /* @__PURE__ */ f("ZodUUID", (e, o) => {
|
|
2669
|
+
Ut.init(e, o), N.init(e, o);
|
|
2670
|
+
}), Si = /* @__PURE__ */ f("ZodURL", (e, o) => {
|
|
2671
|
+
Mt.init(e, o), N.init(e, o);
|
|
2672
|
+
}), $i = /* @__PURE__ */ f("ZodEmoji", (e, o) => {
|
|
2673
|
+
Jt.init(e, o), N.init(e, o);
|
|
2674
|
+
}), Pi = /* @__PURE__ */ f("ZodNanoID", (e, o) => {
|
|
2675
|
+
Bt.init(e, o), N.init(e, o);
|
|
2676
|
+
}), Zi = /* @__PURE__ */ f("ZodCUID", (e, o) => {
|
|
2677
|
+
Vt.init(e, o), N.init(e, o);
|
|
2678
|
+
}), Ti = /* @__PURE__ */ f("ZodCUID2", (e, o) => {
|
|
2679
|
+
Gt.init(e, o), N.init(e, o);
|
|
2680
|
+
}), Oi = /* @__PURE__ */ f("ZodULID", (e, o) => {
|
|
2681
|
+
Wt.init(e, o), N.init(e, o);
|
|
2682
|
+
}), Ni = /* @__PURE__ */ f("ZodXID", (e, o) => {
|
|
2683
|
+
qt.init(e, o), N.init(e, o);
|
|
2684
|
+
}), Ii = /* @__PURE__ */ f("ZodKSUID", (e, o) => {
|
|
2685
|
+
Kt.init(e, o), N.init(e, o);
|
|
2686
|
+
}), Ei = /* @__PURE__ */ f("ZodIPv4", (e, o) => {
|
|
2687
|
+
en.init(e, o), N.init(e, o);
|
|
2688
|
+
}), Ci = /* @__PURE__ */ f("ZodIPv6", (e, o) => {
|
|
2689
|
+
on.init(e, o), N.init(e, o);
|
|
2690
|
+
}), Ai = /* @__PURE__ */ f("ZodCIDRv4", (e, o) => {
|
|
2691
|
+
tn.init(e, o), N.init(e, o);
|
|
2692
|
+
}), xi = /* @__PURE__ */ f("ZodCIDRv6", (e, o) => {
|
|
2693
|
+
nn.init(e, o), N.init(e, o);
|
|
2694
|
+
}), Di = /* @__PURE__ */ f("ZodBase64", (e, o) => {
|
|
2695
|
+
rn.init(e, o), N.init(e, o);
|
|
2696
|
+
}), Ri = /* @__PURE__ */ f("ZodBase64URL", (e, o) => {
|
|
2697
|
+
sn.init(e, o), N.init(e, o);
|
|
2698
|
+
}), ji = /* @__PURE__ */ f("ZodE164", (e, o) => {
|
|
2699
|
+
cn.init(e, o), N.init(e, o);
|
|
2700
|
+
}), Li = /* @__PURE__ */ f("ZodJWT", (e, o) => {
|
|
2701
|
+
un.init(e, o), N.init(e, o);
|
|
2702
|
+
}), ko = /* @__PURE__ */ f("ZodNumber", (e, o) => {
|
|
2703
|
+
lo.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (n, r, s) => Cr(e, n, r), e.gt = (n, r) => e.check(/* @__PURE__ */ Ue(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__ */ Le(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__ */ Ue(0, n)), e.nonnegative = (n) => e.check(/* @__PURE__ */ me(0, n)), e.negative = (n) => e.check(/* @__PURE__ */ Le(0, n)), e.nonpositive = (n) => e.check(/* @__PURE__ */ he(0, n)), e.multipleOf = (n, r) => e.check(/* @__PURE__ */ Fe(n, r)), e.step = (n, r) => e.check(/* @__PURE__ */ Fe(n, r)), e.finite = () => e;
|
|
2704
2704
|
const t = e._zod.bag;
|
|
2705
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
2706
|
});
|
|
2707
|
-
function
|
|
2707
|
+
function h(e) {
|
|
2708
2708
|
return /* @__PURE__ */ lr(ko, e);
|
|
2709
2709
|
}
|
|
2710
|
-
const
|
|
2710
|
+
const Ui = /* @__PURE__ */ f("ZodNumberFormat", (e, o) => {
|
|
2711
2711
|
pn.init(e, o), ko.init(e, o);
|
|
2712
2712
|
});
|
|
2713
2713
|
function Je(e) {
|
|
2714
|
-
return /* @__PURE__ */ ur(
|
|
2714
|
+
return /* @__PURE__ */ ur(Ui, e);
|
|
2715
2715
|
}
|
|
2716
|
-
const
|
|
2717
|
-
dn.init(e, o),
|
|
2716
|
+
const Fi = /* @__PURE__ */ f("ZodBoolean", (e, o) => {
|
|
2717
|
+
dn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n);
|
|
2718
2718
|
});
|
|
2719
|
-
function
|
|
2720
|
-
return /* @__PURE__ */ pr(
|
|
2719
|
+
function p(e) {
|
|
2720
|
+
return /* @__PURE__ */ pr(Fi, e);
|
|
2721
2721
|
}
|
|
2722
|
-
const Mi = /* @__PURE__ */
|
|
2723
|
-
fn.init(e, o),
|
|
2722
|
+
const Mi = /* @__PURE__ */ f("ZodNull", (e, o) => {
|
|
2723
|
+
fn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => xr(e, t, n);
|
|
2724
2724
|
});
|
|
2725
2725
|
function y(e) {
|
|
2726
2726
|
return /* @__PURE__ */ dr(Mi, e);
|
|
2727
2727
|
}
|
|
2728
|
-
const Ji = /* @__PURE__ */
|
|
2729
|
-
hn.init(e, o),
|
|
2728
|
+
const Ji = /* @__PURE__ */ f("ZodUnknown", (e, o) => {
|
|
2729
|
+
hn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Rr();
|
|
2730
2730
|
});
|
|
2731
|
-
function
|
|
2731
|
+
function c() {
|
|
2732
2732
|
return /* @__PURE__ */ fr(Ji);
|
|
2733
2733
|
}
|
|
2734
|
-
const
|
|
2735
|
-
mn.init(e, o),
|
|
2734
|
+
const Bi = /* @__PURE__ */ f("ZodNever", (e, o) => {
|
|
2735
|
+
mn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Dr(e, t, n);
|
|
2736
2736
|
});
|
|
2737
|
-
function
|
|
2738
|
-
return /* @__PURE__ */ hr(
|
|
2737
|
+
function Vi(e) {
|
|
2738
|
+
return /* @__PURE__ */ hr(Bi, e);
|
|
2739
2739
|
}
|
|
2740
|
-
const
|
|
2741
|
-
gn.init(e, o),
|
|
2740
|
+
const Gi = /* @__PURE__ */ f("ZodArray", (e, o) => {
|
|
2741
|
+
gn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Fr(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
2742
|
});
|
|
2743
|
-
function
|
|
2744
|
-
return /* @__PURE__ */
|
|
2743
|
+
function A(e, o) {
|
|
2744
|
+
return /* @__PURE__ */ Pr(Gi, e, o);
|
|
2745
2745
|
}
|
|
2746
|
-
const
|
|
2747
|
-
vn.init(e, o),
|
|
2746
|
+
const Wi = /* @__PURE__ */ f("ZodObject", (e, o) => {
|
|
2747
|
+
vn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Mr(e, t, n, r), $(e, "shape", () => o.shape), e.keyof = () => v(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({ ...e._zod.def, catchall: t }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: c() }), e.loose = () => e.clone({ ...e._zod.def, catchall: c() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Vi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (t) => Do(e, t), e.safeExtend = (t) => Ro(e, t), e.merge = (t) => jo(e, t), e.pick = (t) => Ao(e, t), e.omit = (t) => xo(e, t), e.partial = (...t) => Lo(wo, e, t[0]), e.required = (...t) => Uo(So, e, t[0]);
|
|
2748
2748
|
});
|
|
2749
|
-
function
|
|
2749
|
+
function _(e, o) {
|
|
2750
2750
|
const t = {
|
|
2751
2751
|
type: "object",
|
|
2752
2752
|
shape: e ?? {},
|
|
2753
2753
|
...k(o)
|
|
2754
2754
|
};
|
|
2755
|
-
return new
|
|
2755
|
+
return new Wi(t);
|
|
2756
2756
|
}
|
|
2757
|
-
const qi = /* @__PURE__ */
|
|
2758
|
-
bn.init(e, o),
|
|
2757
|
+
const qi = /* @__PURE__ */ f("ZodUnion", (e, o) => {
|
|
2758
|
+
bn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Jr(e, t, n, r), e.options = o.options;
|
|
2759
2759
|
});
|
|
2760
|
-
function
|
|
2760
|
+
function b(e, o) {
|
|
2761
2761
|
return new qi({
|
|
2762
2762
|
type: "union",
|
|
2763
2763
|
options: e,
|
|
2764
2764
|
...k(o)
|
|
2765
2765
|
});
|
|
2766
2766
|
}
|
|
2767
|
-
const Ki = /* @__PURE__ */
|
|
2768
|
-
yn.init(e, o),
|
|
2767
|
+
const Ki = /* @__PURE__ */ f("ZodIntersection", (e, o) => {
|
|
2768
|
+
yn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Br(e, t, n, r);
|
|
2769
2769
|
});
|
|
2770
2770
|
function Xi(e, o) {
|
|
2771
2771
|
return new Ki({
|
|
@@ -2774,23 +2774,23 @@ function Xi(e, o) {
|
|
|
2774
2774
|
right: o
|
|
2775
2775
|
});
|
|
2776
2776
|
}
|
|
2777
|
-
const Yi = /* @__PURE__ */
|
|
2778
|
-
zn.init(e, o),
|
|
2777
|
+
const Yi = /* @__PURE__ */ f("ZodTuple", (e, o) => {
|
|
2778
|
+
zn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Vr(e, t, n, r), e.rest = (t) => e.clone({
|
|
2779
2779
|
...e._zod.def,
|
|
2780
2780
|
rest: t
|
|
2781
2781
|
});
|
|
2782
2782
|
});
|
|
2783
|
-
function
|
|
2784
|
-
const n = o instanceof
|
|
2783
|
+
function G(e, o, t) {
|
|
2784
|
+
const n = o instanceof P, r = n ? t : o, s = n ? o : null;
|
|
2785
2785
|
return new Yi({
|
|
2786
2786
|
type: "tuple",
|
|
2787
2787
|
items: e,
|
|
2788
|
-
rest:
|
|
2788
|
+
rest: s,
|
|
2789
2789
|
...k(r)
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
|
-
const Hi = /* @__PURE__ */
|
|
2793
|
-
kn.init(e, o),
|
|
2792
|
+
const Hi = /* @__PURE__ */ f("ZodRecord", (e, o) => {
|
|
2793
|
+
kn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Gr(e, t, n, r), e.keyType = o.keyType, e.valueType = o.valueType;
|
|
2794
2794
|
});
|
|
2795
2795
|
function H(e, o, t) {
|
|
2796
2796
|
return new Hi({
|
|
@@ -2800,38 +2800,38 @@ function H(e, o, t) {
|
|
|
2800
2800
|
...k(t)
|
|
2801
2801
|
});
|
|
2802
2802
|
}
|
|
2803
|
-
const ve = /* @__PURE__ */
|
|
2804
|
-
wn.init(e, o),
|
|
2803
|
+
const ve = /* @__PURE__ */ f("ZodEnum", (e, o) => {
|
|
2804
|
+
wn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (n, r, s) => jr(e, n, r), e.enum = o.entries, e.options = Object.values(o.entries);
|
|
2805
2805
|
const t = new Set(Object.keys(o.entries));
|
|
2806
2806
|
e.extract = (n, r) => {
|
|
2807
|
-
const
|
|
2807
|
+
const s = {};
|
|
2808
2808
|
for (const i of n)
|
|
2809
2809
|
if (t.has(i))
|
|
2810
|
-
|
|
2810
|
+
s[i] = o.entries[i];
|
|
2811
2811
|
else
|
|
2812
2812
|
throw new Error(`Key ${i} not found in enum`);
|
|
2813
2813
|
return new ve({
|
|
2814
2814
|
...o,
|
|
2815
2815
|
checks: [],
|
|
2816
2816
|
...k(r),
|
|
2817
|
-
entries:
|
|
2817
|
+
entries: s
|
|
2818
2818
|
});
|
|
2819
2819
|
}, e.exclude = (n, r) => {
|
|
2820
|
-
const
|
|
2820
|
+
const s = { ...o.entries };
|
|
2821
2821
|
for (const i of n)
|
|
2822
2822
|
if (t.has(i))
|
|
2823
|
-
delete
|
|
2823
|
+
delete s[i];
|
|
2824
2824
|
else
|
|
2825
2825
|
throw new Error(`Key ${i} not found in enum`);
|
|
2826
2826
|
return new ve({
|
|
2827
2827
|
...o,
|
|
2828
2828
|
checks: [],
|
|
2829
2829
|
...k(r),
|
|
2830
|
-
entries:
|
|
2830
|
+
entries: s
|
|
2831
2831
|
});
|
|
2832
2832
|
};
|
|
2833
2833
|
});
|
|
2834
|
-
function
|
|
2834
|
+
function v(e, o) {
|
|
2835
2835
|
const t = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
|
|
2836
2836
|
return new ve({
|
|
2837
2837
|
type: "enum",
|
|
@@ -2839,20 +2839,20 @@ function b(e, o) {
|
|
|
2839
2839
|
...k(o)
|
|
2840
2840
|
});
|
|
2841
2841
|
}
|
|
2842
|
-
const Qi = /* @__PURE__ */
|
|
2843
|
-
Sn.init(e, o),
|
|
2842
|
+
const Qi = /* @__PURE__ */ f("ZodTransform", (e, o) => {
|
|
2843
|
+
Sn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Ur(e, t), e._zod.parse = (t, n) => {
|
|
2844
2844
|
if (n.direction === "backward")
|
|
2845
|
-
throw new
|
|
2846
|
-
t.addIssue = (
|
|
2847
|
-
if (typeof
|
|
2848
|
-
t.issues.push(Q(
|
|
2845
|
+
throw new We(e.constructor.name);
|
|
2846
|
+
t.addIssue = (s) => {
|
|
2847
|
+
if (typeof s == "string")
|
|
2848
|
+
t.issues.push(Q(s, t.value, o));
|
|
2849
2849
|
else {
|
|
2850
|
-
const i =
|
|
2850
|
+
const i = s;
|
|
2851
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
2852
|
}
|
|
2853
2853
|
};
|
|
2854
2854
|
const r = o.transform(t.value, t);
|
|
2855
|
-
return r instanceof Promise ? r.then((
|
|
2855
|
+
return r instanceof Promise ? r.then((s) => (t.value = s, t)) : (t.value = r, t);
|
|
2856
2856
|
};
|
|
2857
2857
|
});
|
|
2858
2858
|
function ea(e) {
|
|
@@ -2861,17 +2861,17 @@ function ea(e) {
|
|
|
2861
2861
|
transform: e
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
|
-
const wo = /* @__PURE__ */
|
|
2865
|
-
fo.init(e, o),
|
|
2864
|
+
const wo = /* @__PURE__ */ f("ZodOptional", (e, o) => {
|
|
2865
|
+
fo.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => bo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2866
2866
|
});
|
|
2867
|
-
function
|
|
2867
|
+
function Be(e) {
|
|
2868
2868
|
return new wo({
|
|
2869
2869
|
type: "optional",
|
|
2870
2870
|
innerType: e
|
|
2871
2871
|
});
|
|
2872
2872
|
}
|
|
2873
|
-
const oa = /* @__PURE__ */
|
|
2874
|
-
$n.init(e, o),
|
|
2873
|
+
const oa = /* @__PURE__ */ f("ZodExactOptional", (e, o) => {
|
|
2874
|
+
$n.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => bo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2875
2875
|
});
|
|
2876
2876
|
function ta(e) {
|
|
2877
2877
|
return new oa({
|
|
@@ -2879,17 +2879,17 @@ function ta(e) {
|
|
|
2879
2879
|
innerType: e
|
|
2880
2880
|
});
|
|
2881
2881
|
}
|
|
2882
|
-
const na = /* @__PURE__ */
|
|
2883
|
-
|
|
2882
|
+
const na = /* @__PURE__ */ f("ZodNullable", (e, o) => {
|
|
2883
|
+
Pn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Wr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2884
2884
|
});
|
|
2885
|
-
function
|
|
2885
|
+
function Ve(e) {
|
|
2886
2886
|
return new na({
|
|
2887
2887
|
type: "nullable",
|
|
2888
2888
|
innerType: e
|
|
2889
2889
|
});
|
|
2890
2890
|
}
|
|
2891
|
-
const ra = /* @__PURE__ */
|
|
2892
|
-
|
|
2891
|
+
const ra = /* @__PURE__ */ f("ZodDefault", (e, o) => {
|
|
2892
|
+
Zn.init(e, o), Z.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
2893
|
});
|
|
2894
2894
|
function ia(e, o) {
|
|
2895
2895
|
return new ra({
|
|
@@ -2900,8 +2900,8 @@ function ia(e, o) {
|
|
|
2900
2900
|
}
|
|
2901
2901
|
});
|
|
2902
2902
|
}
|
|
2903
|
-
const aa = /* @__PURE__ */
|
|
2904
|
-
Tn.init(e, o),
|
|
2903
|
+
const aa = /* @__PURE__ */ f("ZodPrefault", (e, o) => {
|
|
2904
|
+
Tn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Xr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2905
2905
|
});
|
|
2906
2906
|
function sa(e, o) {
|
|
2907
2907
|
return new aa({
|
|
@@ -2912,8 +2912,8 @@ function sa(e, o) {
|
|
|
2912
2912
|
}
|
|
2913
2913
|
});
|
|
2914
2914
|
}
|
|
2915
|
-
const So = /* @__PURE__ */
|
|
2916
|
-
On.init(e, o),
|
|
2915
|
+
const So = /* @__PURE__ */ f("ZodNonOptional", (e, o) => {
|
|
2916
|
+
On.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2917
2917
|
});
|
|
2918
2918
|
function ca(e, o) {
|
|
2919
2919
|
return new So({
|
|
@@ -2922,8 +2922,8 @@ function ca(e, o) {
|
|
|
2922
2922
|
...k(o)
|
|
2923
2923
|
});
|
|
2924
2924
|
}
|
|
2925
|
-
const la = /* @__PURE__ */
|
|
2926
|
-
|
|
2925
|
+
const la = /* @__PURE__ */ f("ZodCatch", (e, o) => {
|
|
2926
|
+
Nn.init(e, o), Z.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
2927
|
});
|
|
2928
2928
|
function ua(e, o) {
|
|
2929
2929
|
return new la({
|
|
@@ -2932,10 +2932,10 @@ function ua(e, o) {
|
|
|
2932
2932
|
catchValue: typeof o == "function" ? o : () => o
|
|
2933
2933
|
});
|
|
2934
2934
|
}
|
|
2935
|
-
const pa = /* @__PURE__ */
|
|
2936
|
-
|
|
2935
|
+
const pa = /* @__PURE__ */ f("ZodPipe", (e, o) => {
|
|
2936
|
+
In.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Hr(e, t, n, r), e.in = o.in, e.out = o.out;
|
|
2937
2937
|
});
|
|
2938
|
-
function
|
|
2938
|
+
function Ge(e, o) {
|
|
2939
2939
|
return new pa({
|
|
2940
2940
|
type: "pipe",
|
|
2941
2941
|
in: e,
|
|
@@ -2943,8 +2943,8 @@ function We(e, o) {
|
|
|
2943
2943
|
// ...util.normalizeParams(params),
|
|
2944
2944
|
});
|
|
2945
2945
|
}
|
|
2946
|
-
const da = /* @__PURE__ */
|
|
2947
|
-
En.init(e, o),
|
|
2946
|
+
const da = /* @__PURE__ */ f("ZodReadonly", (e, o) => {
|
|
2947
|
+
En.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2948
2948
|
});
|
|
2949
2949
|
function fa(e) {
|
|
2950
2950
|
return new da({
|
|
@@ -2952,8 +2952,8 @@ function fa(e) {
|
|
|
2952
2952
|
innerType: e
|
|
2953
2953
|
});
|
|
2954
2954
|
}
|
|
2955
|
-
const ha = /* @__PURE__ */
|
|
2956
|
-
Cn.init(e, o),
|
|
2955
|
+
const ha = /* @__PURE__ */ f("ZodLazy", (e, o) => {
|
|
2956
|
+
Cn.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => ei(e, t, n, r), e.unwrap = () => e._zod.def.getter();
|
|
2957
2957
|
});
|
|
2958
2958
|
function ma(e) {
|
|
2959
2959
|
return new ha({
|
|
@@ -2961,1025 +2961,1319 @@ function ma(e) {
|
|
|
2961
2961
|
getter: e
|
|
2962
2962
|
});
|
|
2963
2963
|
}
|
|
2964
|
-
const ga = /* @__PURE__ */
|
|
2965
|
-
An.init(e, o),
|
|
2964
|
+
const ga = /* @__PURE__ */ f("ZodCustom", (e, o) => {
|
|
2965
|
+
An.init(e, o), Z.init(e, o), e._zod.processJSONSchema = (t, n, r) => Lr(e, t);
|
|
2966
2966
|
});
|
|
2967
2967
|
function _a(e, o = {}) {
|
|
2968
|
-
return /* @__PURE__ */
|
|
2968
|
+
return /* @__PURE__ */ Zr(ga, e, o);
|
|
2969
2969
|
}
|
|
2970
2970
|
function va(e) {
|
|
2971
2971
|
return /* @__PURE__ */ Tr(e);
|
|
2972
2972
|
}
|
|
2973
|
-
const
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2973
|
+
const g = b([
|
|
2974
|
+
a(),
|
|
2975
|
+
h(),
|
|
2976
|
+
p(),
|
|
2977
2977
|
y(),
|
|
2978
|
-
|
|
2978
|
+
_({ path: a() })
|
|
2979
2979
|
]), ie = ma(
|
|
2980
|
-
() =>
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2980
|
+
() => b([
|
|
2981
|
+
_({ and: A(ie) }),
|
|
2982
|
+
_({ or: A(ie) }),
|
|
2983
|
+
_({ not: ie }),
|
|
2984
|
+
_({ path: a() }),
|
|
2985
|
+
_({ eq: G([g, g]) }),
|
|
2986
|
+
_({ neq: G([g, g]) }),
|
|
2987
|
+
_({ gt: G([g, g]) }),
|
|
2988
|
+
_({ gte: G([g, g]) }),
|
|
2989
|
+
_({ lt: G([g, g]) }),
|
|
2990
|
+
_({ lte: G([g, g]) })
|
|
2991
2991
|
])
|
|
2992
|
-
), ba =
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2992
|
+
), ba = b([
|
|
2993
|
+
p(),
|
|
2994
|
+
_({ path: a() }),
|
|
2995
|
+
_({ auth: v(["signedIn", "signedOut"]) }),
|
|
2996
2996
|
ie
|
|
2997
|
-
]), ya =
|
|
2998
|
-
title:
|
|
2999
|
-
message:
|
|
3000
|
-
variant:
|
|
3001
|
-
confirmLabel:
|
|
3002
|
-
cancelLabel:
|
|
3003
|
-
}), za =
|
|
3004
|
-
name:
|
|
3005
|
-
params: H(
|
|
2997
|
+
]), ya = _({
|
|
2998
|
+
title: a(),
|
|
2999
|
+
message: a(),
|
|
3000
|
+
variant: v(["default", "danger"]).optional(),
|
|
3001
|
+
confirmLabel: a().optional(),
|
|
3002
|
+
cancelLabel: a().optional()
|
|
3003
|
+
}), za = _({
|
|
3004
|
+
name: a(),
|
|
3005
|
+
params: H(a(), g).optional(),
|
|
3006
3006
|
confirm: ya.optional(),
|
|
3007
|
-
onSuccess:
|
|
3008
|
-
onError:
|
|
3009
|
-
}), ka =
|
|
3010
|
-
|
|
3007
|
+
onSuccess: _({ set: H(a(), g) }).optional(),
|
|
3008
|
+
onError: _({ set: H(a(), g) }).optional()
|
|
3009
|
+
}), ka = _({
|
|
3010
|
+
name: a(),
|
|
3011
|
+
// Display name of the actor (workspace member, system, or API).
|
|
3012
|
+
avatarUrl: c().optional(),
|
|
3013
|
+
// Avatar image URL. Falls back to the name's initial when absent.
|
|
3014
|
+
avatarSize: v(["xs", "sm", "base", "lg", "xl"]).optional(),
|
|
3015
|
+
// Avatar size.
|
|
3016
|
+
className: a().optional()
|
|
3017
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3018
|
+
}), wa = _({
|
|
3019
|
+
value: c(),
|
|
3020
|
+
// Current address value.
|
|
3021
|
+
disabled: p().optional(),
|
|
3022
|
+
// Disables all fields.
|
|
3023
|
+
className: a().optional()
|
|
3024
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3025
|
+
}), Sa = _({
|
|
3026
|
+
values: A(a()),
|
|
3027
|
+
// String values to render as chips.
|
|
3028
|
+
className: a().optional()
|
|
3029
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3030
|
+
}), $a = _({
|
|
3031
|
+
items: A(c()),
|
|
3011
3032
|
// Array of items to display in the dropdown
|
|
3012
|
-
value:
|
|
3033
|
+
value: A(c()).optional(),
|
|
3013
3034
|
// The controlled input value
|
|
3014
|
-
open:
|
|
3035
|
+
open: p().optional(),
|
|
3015
3036
|
// Whether the popup is open (controlled)
|
|
3016
|
-
children:
|
|
3037
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3017
3038
|
// Autocomplete content (input group, popup content)
|
|
3018
|
-
className:
|
|
3039
|
+
className: a().optional(),
|
|
3019
3040
|
// Additional CSS classes
|
|
3020
|
-
label:
|
|
3041
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3021
3042
|
// Label content (enables Field wrapper)
|
|
3022
|
-
required:
|
|
3043
|
+
required: p().optional(),
|
|
3023
3044
|
// Whether the field is required
|
|
3024
|
-
labelTooltip:
|
|
3045
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3025
3046
|
// Tooltip content to display next to the label
|
|
3026
|
-
description:
|
|
3047
|
+
description: b([a(), h(), p(), y(), g]).optional(),
|
|
3027
3048
|
// Helper text displayed below the field
|
|
3028
|
-
error:
|
|
3049
|
+
error: c().optional()
|
|
3029
3050
|
// Error message or validation error object
|
|
3030
|
-
}),
|
|
3031
|
-
|
|
3051
|
+
}), Pa = _({
|
|
3052
|
+
initials: a().optional(),
|
|
3053
|
+
// Up to ~2 characters shown when there is no image.
|
|
3054
|
+
alt: a().optional(),
|
|
3055
|
+
// Accessible name / image alt text.
|
|
3056
|
+
size: v(["xs", "sm", "base", "lg", "xl"]).optional(),
|
|
3057
|
+
// Glyph scale.
|
|
3058
|
+
shape: v(["circle", "square"]).optional(),
|
|
3059
|
+
// Round (default) or rounded-square.
|
|
3060
|
+
className: a().optional()
|
|
3061
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3062
|
+
}), Za = _({
|
|
3063
|
+
avatars: A(c()),
|
|
3064
|
+
// Avatar nodes to stack (typically reki `Avatar` elements).
|
|
3065
|
+
className: a().optional()
|
|
3066
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3067
|
+
}), Ta = _({
|
|
3068
|
+
variant: v(["primary", "secondary", "error", "warning", "success", "destructive", "info", "beta", "outline", "red", "green", "neutral", "orange", "purple", "teal", "teal-subtle", "blue"]).optional(),
|
|
3032
3069
|
// 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:
|
|
3070
|
+
appearance: v(["filled", "dot"]).optional(),
|
|
3034
3071
|
// 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:
|
|
3072
|
+
className: a().optional(),
|
|
3036
3073
|
// Additional CSS classes merged via `cn()`.
|
|
3037
|
-
children:
|
|
3074
|
+
children: b([a(), h(), p(), y(), g]).optional()
|
|
3038
3075
|
// Content rendered inside the badge.
|
|
3039
|
-
}),
|
|
3040
|
-
className:
|
|
3076
|
+
}), Oa = _({
|
|
3077
|
+
className: a().optional(),
|
|
3041
3078
|
// Additional CSS classes merged via `cn()`.
|
|
3042
|
-
id:
|
|
3043
|
-
lang:
|
|
3044
|
-
icon:
|
|
3079
|
+
id: a().optional(),
|
|
3080
|
+
lang: a().optional(),
|
|
3081
|
+
icon: b([a(), h(), p(), y(), g]).optional(),
|
|
3045
3082
|
// Icon element rendered before the banner content (e.g. from `@phosphor-icons/react`).
|
|
3046
|
-
title:
|
|
3083
|
+
title: a().optional(),
|
|
3047
3084
|
// Primary heading text for the banner. Use for i18n string injection.
|
|
3048
|
-
description:
|
|
3085
|
+
description: b([a(), h(), p(), y(), g]).optional(),
|
|
3049
3086
|
// Secondary description text displayed below the title. Use for i18n string injection.
|
|
3050
|
-
action:
|
|
3087
|
+
action: b([a(), h(), p(), y(), g]).optional(),
|
|
3051
3088
|
// 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:
|
|
3053
|
-
children:
|
|
3054
|
-
variant:
|
|
3089
|
+
text: a().optional(),
|
|
3090
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3091
|
+
variant: v(["default", "alert", "error", "secondary"]).optional()
|
|
3055
3092
|
// 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
|
-
}),
|
|
3057
|
-
size:
|
|
3093
|
+
}), Na = _({
|
|
3094
|
+
size: v(["sm", "base"]).optional(),
|
|
3058
3095
|
// Size of the breadcrumbs. - `"sm"` — Compact breadcrumbs for dense UIs - `"base"` — Default breadcrumbs size
|
|
3059
|
-
children:
|
|
3060
|
-
className:
|
|
3096
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3097
|
+
className: a().optional()
|
|
3061
3098
|
// Additional CSS classes merged via `cn()`.
|
|
3062
|
-
}),
|
|
3063
|
-
shape:
|
|
3064
|
-
size:
|
|
3065
|
-
variant:
|
|
3066
|
-
children:
|
|
3067
|
-
className:
|
|
3068
|
-
icon:
|
|
3099
|
+
}), Ia = _({
|
|
3100
|
+
shape: v(["base", "square", "circle"]).optional(),
|
|
3101
|
+
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3102
|
+
variant: v(["primary", "secondary", "ghost", "destructive", "secondary-destructive", "outline"]).optional(),
|
|
3103
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3104
|
+
className: a().optional(),
|
|
3105
|
+
icon: b([a(), h(), p(), y(), g]).optional(),
|
|
3069
3106
|
// Icon from `@phosphor-icons/react` or a React element. Rendered before children.
|
|
3070
|
-
loading:
|
|
3107
|
+
loading: p().optional(),
|
|
3071
3108
|
// Shows a loading spinner and disables interaction.
|
|
3072
|
-
title:
|
|
3073
|
-
id:
|
|
3074
|
-
lang:
|
|
3075
|
-
disabled:
|
|
3076
|
-
name:
|
|
3077
|
-
type:
|
|
3078
|
-
value:
|
|
3079
|
-
}),
|
|
3080
|
-
variant:
|
|
3109
|
+
title: a().optional(),
|
|
3110
|
+
id: a().optional(),
|
|
3111
|
+
lang: a().optional(),
|
|
3112
|
+
disabled: p().optional(),
|
|
3113
|
+
name: a().optional(),
|
|
3114
|
+
type: v(["submit", "reset", "button"]).optional(),
|
|
3115
|
+
value: c().optional()
|
|
3116
|
+
}), Ea = _({
|
|
3117
|
+
variant: v(["default", "error"]).optional(),
|
|
3081
3118
|
// Visual variant: "default" or "error" for validation failures (visual only, no error text)
|
|
3082
|
-
label:
|
|
3119
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3083
3120
|
// Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
|
|
3084
|
-
labelTooltip:
|
|
3121
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3085
3122
|
// Tooltip content to display next to the label via an info icon
|
|
3086
|
-
controlFirst:
|
|
3123
|
+
controlFirst: p().optional(),
|
|
3087
3124
|
// When true (default), checkbox appears before label. When false, label appears before checkbox.
|
|
3088
|
-
checked:
|
|
3125
|
+
checked: p().optional(),
|
|
3089
3126
|
// Whether the checkbox is checked (controlled)
|
|
3090
|
-
indeterminate:
|
|
3127
|
+
indeterminate: p().optional(),
|
|
3091
3128
|
// Whether the checkbox is in indeterminate state
|
|
3092
|
-
disabled:
|
|
3129
|
+
disabled: p().optional(),
|
|
3093
3130
|
// Whether the checkbox is disabled
|
|
3094
|
-
name:
|
|
3131
|
+
name: a().optional(),
|
|
3095
3132
|
// Name for form submission
|
|
3096
|
-
required:
|
|
3133
|
+
required: p().optional(),
|
|
3097
3134
|
// Whether the field is required
|
|
3098
|
-
className:
|
|
3135
|
+
className: a().optional()
|
|
3099
3136
|
// Additional class name
|
|
3100
|
-
}),
|
|
3101
|
-
|
|
3137
|
+
}), Ca = _({
|
|
3138
|
+
label: a(),
|
|
3139
|
+
// Text label (truncated with a tooltip on overflow).
|
|
3140
|
+
tooltipLabel: a().optional(),
|
|
3141
|
+
// Tooltip content shown when the label overflows. Defaults to `label`.
|
|
3142
|
+
variant: v(["regular", "highlighted", "transparent", "static"]).optional(),
|
|
3143
|
+
// Visual variant.
|
|
3144
|
+
size: v(["small", "large"]).optional(),
|
|
3145
|
+
// Size of the chip.
|
|
3146
|
+
accent: v(["primary", "secondary"]).optional(),
|
|
3147
|
+
// Text emphasis. `"secondary"` renders muted, medium-weight text.
|
|
3148
|
+
isBold: p().optional(),
|
|
3149
|
+
// Renders the label in a medium font weight.
|
|
3150
|
+
leftComponent: b([a(), h(), p(), y(), g]).optional(),
|
|
3151
|
+
// Node rendered before the label (e.g. an avatar or icon).
|
|
3152
|
+
rightComponent: b([a(), h(), p(), y(), g]).optional(),
|
|
3153
|
+
// Node rendered after the label (e.g. a remove button or count).
|
|
3154
|
+
disabled: p().optional(),
|
|
3155
|
+
// Disables the chip and dims it.
|
|
3156
|
+
className: a().optional()
|
|
3157
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3158
|
+
}), Aa = _({
|
|
3159
|
+
value: h(),
|
|
3160
|
+
// Progress as a percentage (0–100).
|
|
3161
|
+
size: h().optional(),
|
|
3162
|
+
// Diameter in pixels.
|
|
3163
|
+
barWidth: h().optional(),
|
|
3164
|
+
// Stroke width in pixels.
|
|
3165
|
+
label: a().optional(),
|
|
3166
|
+
// Accessible label.
|
|
3167
|
+
className: a().optional()
|
|
3168
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3169
|
+
}), xa = _({
|
|
3170
|
+
size: v(["sm", "base", "lg"]).optional(),
|
|
3102
3171
|
// 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:
|
|
3172
|
+
text: a(),
|
|
3104
3173
|
// The text to display and copy to clipboard.
|
|
3105
|
-
textToCopy:
|
|
3174
|
+
textToCopy: a().optional(),
|
|
3106
3175
|
// If provided, this text will be copied to clipboard instead of the `text` prop.
|
|
3107
|
-
className:
|
|
3176
|
+
className: a().optional(),
|
|
3108
3177
|
// Additional CSS classes merged via `cn()`.
|
|
3109
|
-
tooltip:
|
|
3178
|
+
tooltip: c().optional(),
|
|
3110
3179
|
// Tooltip config. Shows tooltip on hover, anchored toast on click.
|
|
3111
|
-
labels:
|
|
3180
|
+
labels: c().optional()
|
|
3112
3181
|
// Accessible labels for i18n.
|
|
3113
|
-
}),
|
|
3114
|
-
children:
|
|
3115
|
-
className:
|
|
3116
|
-
height:
|
|
3117
|
-
id:
|
|
3118
|
-
lang:
|
|
3119
|
-
media:
|
|
3120
|
-
method:
|
|
3121
|
-
name:
|
|
3122
|
-
target:
|
|
3123
|
-
type:
|
|
3124
|
-
width:
|
|
3125
|
-
accentHeight:
|
|
3126
|
-
accumulate:
|
|
3127
|
-
additive:
|
|
3128
|
-
alignmentBaseline:
|
|
3129
|
-
allowReorder:
|
|
3130
|
-
alphabetic:
|
|
3131
|
-
amplitude:
|
|
3132
|
-
arabicForm:
|
|
3133
|
-
ascent:
|
|
3134
|
-
attributeName:
|
|
3135
|
-
attributeType:
|
|
3136
|
-
autoReverse:
|
|
3137
|
-
azimuth:
|
|
3138
|
-
baseFrequency:
|
|
3139
|
-
baselineShift:
|
|
3140
|
-
baseProfile:
|
|
3141
|
-
bbox:
|
|
3142
|
-
begin:
|
|
3143
|
-
bias:
|
|
3144
|
-
by:
|
|
3145
|
-
calcMode:
|
|
3146
|
-
capHeight:
|
|
3147
|
-
clip:
|
|
3148
|
-
clipPath:
|
|
3149
|
-
clipPathUnits:
|
|
3150
|
-
clipRule:
|
|
3151
|
-
colorInterpolation:
|
|
3152
|
-
colorInterpolationFilters:
|
|
3153
|
-
colorProfile:
|
|
3154
|
-
colorRendering:
|
|
3155
|
-
contentScriptType:
|
|
3156
|
-
contentStyleType:
|
|
3157
|
-
cursor:
|
|
3158
|
-
cx:
|
|
3159
|
-
cy:
|
|
3160
|
-
d:
|
|
3161
|
-
decelerate:
|
|
3162
|
-
descent:
|
|
3163
|
-
diffuseConstant:
|
|
3164
|
-
direction:
|
|
3165
|
-
display:
|
|
3166
|
-
divisor:
|
|
3167
|
-
dominantBaseline:
|
|
3168
|
-
dur:
|
|
3169
|
-
dx:
|
|
3170
|
-
dy:
|
|
3171
|
-
edgeMode:
|
|
3172
|
-
elevation:
|
|
3173
|
-
enableBackground:
|
|
3174
|
-
end:
|
|
3175
|
-
exponent:
|
|
3176
|
-
externalResourcesRequired:
|
|
3177
|
-
fill:
|
|
3178
|
-
fillOpacity:
|
|
3179
|
-
fillRule:
|
|
3180
|
-
filter:
|
|
3181
|
-
filterRes:
|
|
3182
|
-
filterUnits:
|
|
3183
|
-
floodColor:
|
|
3184
|
-
floodOpacity:
|
|
3185
|
-
focusable:
|
|
3186
|
-
fontFamily:
|
|
3187
|
-
fontSize:
|
|
3188
|
-
fontSizeAdjust:
|
|
3189
|
-
fontStretch:
|
|
3190
|
-
fontStyle:
|
|
3191
|
-
fontVariant:
|
|
3192
|
-
fontWeight:
|
|
3193
|
-
format:
|
|
3194
|
-
fr:
|
|
3195
|
-
from:
|
|
3196
|
-
fx:
|
|
3197
|
-
fy:
|
|
3198
|
-
g1:
|
|
3199
|
-
g2:
|
|
3200
|
-
glyphName:
|
|
3201
|
-
glyphOrientationHorizontal:
|
|
3202
|
-
glyphOrientationVertical:
|
|
3203
|
-
glyphRef:
|
|
3204
|
-
gradientTransform:
|
|
3205
|
-
gradientUnits:
|
|
3206
|
-
hanging:
|
|
3207
|
-
horizAdvX:
|
|
3208
|
-
horizOriginX:
|
|
3209
|
-
href:
|
|
3210
|
-
ideographic:
|
|
3211
|
-
imageRendering:
|
|
3212
|
-
in2:
|
|
3213
|
-
in:
|
|
3214
|
-
intercept:
|
|
3215
|
-
k1:
|
|
3216
|
-
k2:
|
|
3217
|
-
k3:
|
|
3218
|
-
k4:
|
|
3219
|
-
k:
|
|
3220
|
-
kernelMatrix:
|
|
3221
|
-
kernelUnitLength:
|
|
3222
|
-
kerning:
|
|
3223
|
-
keyPoints:
|
|
3224
|
-
keySplines:
|
|
3225
|
-
keyTimes:
|
|
3226
|
-
lengthAdjust:
|
|
3227
|
-
letterSpacing:
|
|
3228
|
-
lightingColor:
|
|
3229
|
-
limitingConeAngle:
|
|
3230
|
-
local:
|
|
3231
|
-
markerEnd:
|
|
3232
|
-
markerHeight:
|
|
3233
|
-
markerMid:
|
|
3234
|
-
markerStart:
|
|
3235
|
-
markerUnits:
|
|
3236
|
-
markerWidth:
|
|
3237
|
-
mask:
|
|
3238
|
-
maskContentUnits:
|
|
3239
|
-
maskUnits:
|
|
3240
|
-
mathematical:
|
|
3241
|
-
mode:
|
|
3242
|
-
numOctaves:
|
|
3243
|
-
offset:
|
|
3244
|
-
opacity:
|
|
3245
|
-
operator:
|
|
3246
|
-
order:
|
|
3247
|
-
orient:
|
|
3248
|
-
orientation:
|
|
3249
|
-
origin:
|
|
3250
|
-
overflow:
|
|
3251
|
-
overlinePosition:
|
|
3252
|
-
overlineThickness:
|
|
3253
|
-
paintOrder:
|
|
3254
|
-
panose1:
|
|
3255
|
-
path:
|
|
3256
|
-
pathLength:
|
|
3257
|
-
patternContentUnits:
|
|
3258
|
-
patternTransform:
|
|
3259
|
-
patternUnits:
|
|
3260
|
-
pointerEvents:
|
|
3261
|
-
points:
|
|
3262
|
-
pointsAtX:
|
|
3263
|
-
pointsAtY:
|
|
3264
|
-
pointsAtZ:
|
|
3265
|
-
preserveAlpha:
|
|
3266
|
-
preserveAspectRatio:
|
|
3267
|
-
primitiveUnits:
|
|
3268
|
-
r:
|
|
3269
|
-
radius:
|
|
3270
|
-
refX:
|
|
3271
|
-
refY:
|
|
3272
|
-
renderingIntent:
|
|
3273
|
-
repeatCount:
|
|
3274
|
-
repeatDur:
|
|
3275
|
-
requiredExtensions:
|
|
3276
|
-
requiredFeatures:
|
|
3277
|
-
restart:
|
|
3278
|
-
result:
|
|
3279
|
-
rotate:
|
|
3280
|
-
rx:
|
|
3281
|
-
ry:
|
|
3282
|
-
scale:
|
|
3283
|
-
seed:
|
|
3284
|
-
shapeRendering:
|
|
3285
|
-
slope:
|
|
3286
|
-
spacing:
|
|
3287
|
-
specularConstant:
|
|
3288
|
-
specularExponent:
|
|
3289
|
-
speed:
|
|
3290
|
-
spreadMethod:
|
|
3291
|
-
startOffset:
|
|
3292
|
-
stdDeviation:
|
|
3293
|
-
stemh:
|
|
3294
|
-
stemv:
|
|
3295
|
-
stitchTiles:
|
|
3296
|
-
stopColor:
|
|
3297
|
-
stopOpacity:
|
|
3298
|
-
strikethroughPosition:
|
|
3299
|
-
strikethroughThickness:
|
|
3300
|
-
string:
|
|
3301
|
-
stroke:
|
|
3302
|
-
strokeDasharray:
|
|
3303
|
-
strokeDashoffset:
|
|
3304
|
-
strokeLinecap:
|
|
3305
|
-
strokeLinejoin:
|
|
3306
|
-
strokeMiterlimit:
|
|
3307
|
-
strokeOpacity:
|
|
3308
|
-
strokeWidth:
|
|
3309
|
-
surfaceScale:
|
|
3310
|
-
systemLanguage:
|
|
3311
|
-
tableValues:
|
|
3312
|
-
targetX:
|
|
3313
|
-
targetY:
|
|
3314
|
-
textAnchor:
|
|
3315
|
-
textDecoration:
|
|
3316
|
-
textLength:
|
|
3317
|
-
textRendering:
|
|
3318
|
-
to:
|
|
3319
|
-
transform:
|
|
3320
|
-
u1:
|
|
3321
|
-
u2:
|
|
3322
|
-
underlinePosition:
|
|
3323
|
-
underlineThickness:
|
|
3324
|
-
unicode:
|
|
3325
|
-
unicodeBidi:
|
|
3326
|
-
unicodeRange:
|
|
3327
|
-
unitsPerEm:
|
|
3328
|
-
vAlphabetic:
|
|
3329
|
-
values:
|
|
3330
|
-
vectorEffect:
|
|
3331
|
-
version:
|
|
3332
|
-
vertAdvY:
|
|
3333
|
-
vertOriginX:
|
|
3334
|
-
vertOriginY:
|
|
3335
|
-
vHanging:
|
|
3336
|
-
vIdeographic:
|
|
3337
|
-
viewBox:
|
|
3338
|
-
viewTarget:
|
|
3339
|
-
visibility:
|
|
3340
|
-
vMathematical:
|
|
3341
|
-
widths:
|
|
3342
|
-
wordSpacing:
|
|
3343
|
-
writingMode:
|
|
3344
|
-
x1:
|
|
3345
|
-
x2:
|
|
3346
|
-
x:
|
|
3347
|
-
xChannelSelector:
|
|
3348
|
-
xHeight:
|
|
3349
|
-
xlinkActuate:
|
|
3350
|
-
xlinkArcrole:
|
|
3351
|
-
xlinkHref:
|
|
3352
|
-
xlinkRole:
|
|
3353
|
-
xlinkShow:
|
|
3354
|
-
xlinkTitle:
|
|
3355
|
-
xlinkType:
|
|
3356
|
-
xmlBase:
|
|
3357
|
-
xmlLang:
|
|
3358
|
-
xmlns:
|
|
3359
|
-
xmlnsXlink:
|
|
3360
|
-
xmlSpace:
|
|
3361
|
-
y1:
|
|
3362
|
-
y2:
|
|
3363
|
-
y:
|
|
3364
|
-
yChannelSelector:
|
|
3365
|
-
z:
|
|
3366
|
-
zoomAndPan:
|
|
3367
|
-
variant:
|
|
3182
|
+
}), Da = _({
|
|
3183
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3184
|
+
className: a().optional(),
|
|
3185
|
+
height: c().optional(),
|
|
3186
|
+
id: a().optional(),
|
|
3187
|
+
lang: a().optional(),
|
|
3188
|
+
media: a().optional(),
|
|
3189
|
+
method: a().optional(),
|
|
3190
|
+
name: a().optional(),
|
|
3191
|
+
target: a().optional(),
|
|
3192
|
+
type: a().optional(),
|
|
3193
|
+
width: c().optional(),
|
|
3194
|
+
accentHeight: c().optional(),
|
|
3195
|
+
accumulate: v(["none", "sum"]).optional(),
|
|
3196
|
+
additive: v(["replace", "sum"]).optional(),
|
|
3197
|
+
alignmentBaseline: v(["auto", "baseline", "before-edge", "text-before-edge", "middle", "central", "after-edge", "text-after-edge", "ideographic", "alphabetic", "hanging", "mathematical", "inherit"]).optional(),
|
|
3198
|
+
allowReorder: v(["no", "yes"]).optional(),
|
|
3199
|
+
alphabetic: c().optional(),
|
|
3200
|
+
amplitude: c().optional(),
|
|
3201
|
+
arabicForm: v(["initial", "medial", "terminal", "isolated"]).optional(),
|
|
3202
|
+
ascent: c().optional(),
|
|
3203
|
+
attributeName: a().optional(),
|
|
3204
|
+
attributeType: a().optional(),
|
|
3205
|
+
autoReverse: c().optional(),
|
|
3206
|
+
azimuth: c().optional(),
|
|
3207
|
+
baseFrequency: c().optional(),
|
|
3208
|
+
baselineShift: c().optional(),
|
|
3209
|
+
baseProfile: c().optional(),
|
|
3210
|
+
bbox: c().optional(),
|
|
3211
|
+
begin: c().optional(),
|
|
3212
|
+
bias: c().optional(),
|
|
3213
|
+
by: c().optional(),
|
|
3214
|
+
calcMode: c().optional(),
|
|
3215
|
+
capHeight: c().optional(),
|
|
3216
|
+
clip: c().optional(),
|
|
3217
|
+
clipPath: a().optional(),
|
|
3218
|
+
clipPathUnits: c().optional(),
|
|
3219
|
+
clipRule: c().optional(),
|
|
3220
|
+
colorInterpolation: c().optional(),
|
|
3221
|
+
colorInterpolationFilters: v(["auto", "sRGB", "linearRGB", "inherit"]).optional(),
|
|
3222
|
+
colorProfile: c().optional(),
|
|
3223
|
+
colorRendering: c().optional(),
|
|
3224
|
+
contentScriptType: c().optional(),
|
|
3225
|
+
contentStyleType: c().optional(),
|
|
3226
|
+
cursor: c().optional(),
|
|
3227
|
+
cx: c().optional(),
|
|
3228
|
+
cy: c().optional(),
|
|
3229
|
+
d: a().optional(),
|
|
3230
|
+
decelerate: c().optional(),
|
|
3231
|
+
descent: c().optional(),
|
|
3232
|
+
diffuseConstant: c().optional(),
|
|
3233
|
+
direction: c().optional(),
|
|
3234
|
+
display: c().optional(),
|
|
3235
|
+
divisor: c().optional(),
|
|
3236
|
+
dominantBaseline: v(["auto", "use-script", "no-change", "reset-size", "ideographic", "alphabetic", "hanging", "mathematical", "central", "middle", "text-after-edge", "text-before-edge", "inherit"]).optional(),
|
|
3237
|
+
dur: c().optional(),
|
|
3238
|
+
dx: c().optional(),
|
|
3239
|
+
dy: c().optional(),
|
|
3240
|
+
edgeMode: c().optional(),
|
|
3241
|
+
elevation: c().optional(),
|
|
3242
|
+
enableBackground: c().optional(),
|
|
3243
|
+
end: c().optional(),
|
|
3244
|
+
exponent: c().optional(),
|
|
3245
|
+
externalResourcesRequired: c().optional(),
|
|
3246
|
+
fill: a().optional(),
|
|
3247
|
+
fillOpacity: c().optional(),
|
|
3248
|
+
fillRule: v(["nonzero", "evenodd", "inherit"]).optional(),
|
|
3249
|
+
filter: a().optional(),
|
|
3250
|
+
filterRes: c().optional(),
|
|
3251
|
+
filterUnits: c().optional(),
|
|
3252
|
+
floodColor: c().optional(),
|
|
3253
|
+
floodOpacity: c().optional(),
|
|
3254
|
+
focusable: c().optional(),
|
|
3255
|
+
fontFamily: a().optional(),
|
|
3256
|
+
fontSize: c().optional(),
|
|
3257
|
+
fontSizeAdjust: c().optional(),
|
|
3258
|
+
fontStretch: c().optional(),
|
|
3259
|
+
fontStyle: c().optional(),
|
|
3260
|
+
fontVariant: c().optional(),
|
|
3261
|
+
fontWeight: c().optional(),
|
|
3262
|
+
format: c().optional(),
|
|
3263
|
+
fr: c().optional(),
|
|
3264
|
+
from: c().optional(),
|
|
3265
|
+
fx: c().optional(),
|
|
3266
|
+
fy: c().optional(),
|
|
3267
|
+
g1: c().optional(),
|
|
3268
|
+
g2: c().optional(),
|
|
3269
|
+
glyphName: c().optional(),
|
|
3270
|
+
glyphOrientationHorizontal: c().optional(),
|
|
3271
|
+
glyphOrientationVertical: c().optional(),
|
|
3272
|
+
glyphRef: c().optional(),
|
|
3273
|
+
gradientTransform: a().optional(),
|
|
3274
|
+
gradientUnits: a().optional(),
|
|
3275
|
+
hanging: c().optional(),
|
|
3276
|
+
horizAdvX: c().optional(),
|
|
3277
|
+
horizOriginX: c().optional(),
|
|
3278
|
+
href: a().optional(),
|
|
3279
|
+
ideographic: c().optional(),
|
|
3280
|
+
imageRendering: c().optional(),
|
|
3281
|
+
in2: c().optional(),
|
|
3282
|
+
in: a().optional(),
|
|
3283
|
+
intercept: c().optional(),
|
|
3284
|
+
k1: c().optional(),
|
|
3285
|
+
k2: c().optional(),
|
|
3286
|
+
k3: c().optional(),
|
|
3287
|
+
k4: c().optional(),
|
|
3288
|
+
k: c().optional(),
|
|
3289
|
+
kernelMatrix: c().optional(),
|
|
3290
|
+
kernelUnitLength: c().optional(),
|
|
3291
|
+
kerning: c().optional(),
|
|
3292
|
+
keyPoints: c().optional(),
|
|
3293
|
+
keySplines: c().optional(),
|
|
3294
|
+
keyTimes: c().optional(),
|
|
3295
|
+
lengthAdjust: c().optional(),
|
|
3296
|
+
letterSpacing: c().optional(),
|
|
3297
|
+
lightingColor: c().optional(),
|
|
3298
|
+
limitingConeAngle: c().optional(),
|
|
3299
|
+
local: c().optional(),
|
|
3300
|
+
markerEnd: a().optional(),
|
|
3301
|
+
markerHeight: c().optional(),
|
|
3302
|
+
markerMid: a().optional(),
|
|
3303
|
+
markerStart: a().optional(),
|
|
3304
|
+
markerUnits: c().optional(),
|
|
3305
|
+
markerWidth: c().optional(),
|
|
3306
|
+
mask: a().optional(),
|
|
3307
|
+
maskContentUnits: c().optional(),
|
|
3308
|
+
maskUnits: c().optional(),
|
|
3309
|
+
mathematical: c().optional(),
|
|
3310
|
+
mode: c().optional(),
|
|
3311
|
+
numOctaves: c().optional(),
|
|
3312
|
+
offset: c().optional(),
|
|
3313
|
+
opacity: c().optional(),
|
|
3314
|
+
operator: c().optional(),
|
|
3315
|
+
order: c().optional(),
|
|
3316
|
+
orient: c().optional(),
|
|
3317
|
+
orientation: c().optional(),
|
|
3318
|
+
origin: c().optional(),
|
|
3319
|
+
overflow: c().optional(),
|
|
3320
|
+
overlinePosition: c().optional(),
|
|
3321
|
+
overlineThickness: c().optional(),
|
|
3322
|
+
paintOrder: c().optional(),
|
|
3323
|
+
panose1: c().optional(),
|
|
3324
|
+
path: a().optional(),
|
|
3325
|
+
pathLength: c().optional(),
|
|
3326
|
+
patternContentUnits: a().optional(),
|
|
3327
|
+
patternTransform: c().optional(),
|
|
3328
|
+
patternUnits: a().optional(),
|
|
3329
|
+
pointerEvents: c().optional(),
|
|
3330
|
+
points: a().optional(),
|
|
3331
|
+
pointsAtX: c().optional(),
|
|
3332
|
+
pointsAtY: c().optional(),
|
|
3333
|
+
pointsAtZ: c().optional(),
|
|
3334
|
+
preserveAlpha: c().optional(),
|
|
3335
|
+
preserveAspectRatio: a().optional(),
|
|
3336
|
+
primitiveUnits: c().optional(),
|
|
3337
|
+
r: c().optional(),
|
|
3338
|
+
radius: c().optional(),
|
|
3339
|
+
refX: c().optional(),
|
|
3340
|
+
refY: c().optional(),
|
|
3341
|
+
renderingIntent: c().optional(),
|
|
3342
|
+
repeatCount: c().optional(),
|
|
3343
|
+
repeatDur: c().optional(),
|
|
3344
|
+
requiredExtensions: c().optional(),
|
|
3345
|
+
requiredFeatures: c().optional(),
|
|
3346
|
+
restart: c().optional(),
|
|
3347
|
+
result: a().optional(),
|
|
3348
|
+
rotate: c().optional(),
|
|
3349
|
+
rx: c().optional(),
|
|
3350
|
+
ry: c().optional(),
|
|
3351
|
+
scale: c().optional(),
|
|
3352
|
+
seed: c().optional(),
|
|
3353
|
+
shapeRendering: c().optional(),
|
|
3354
|
+
slope: c().optional(),
|
|
3355
|
+
spacing: c().optional(),
|
|
3356
|
+
specularConstant: c().optional(),
|
|
3357
|
+
specularExponent: c().optional(),
|
|
3358
|
+
speed: c().optional(),
|
|
3359
|
+
spreadMethod: a().optional(),
|
|
3360
|
+
startOffset: c().optional(),
|
|
3361
|
+
stdDeviation: c().optional(),
|
|
3362
|
+
stemh: c().optional(),
|
|
3363
|
+
stemv: c().optional(),
|
|
3364
|
+
stitchTiles: c().optional(),
|
|
3365
|
+
stopColor: a().optional(),
|
|
3366
|
+
stopOpacity: c().optional(),
|
|
3367
|
+
strikethroughPosition: c().optional(),
|
|
3368
|
+
strikethroughThickness: c().optional(),
|
|
3369
|
+
string: c().optional(),
|
|
3370
|
+
stroke: a().optional(),
|
|
3371
|
+
strokeDasharray: c().optional(),
|
|
3372
|
+
strokeDashoffset: c().optional(),
|
|
3373
|
+
strokeLinecap: v(["butt", "round", "square", "inherit"]).optional(),
|
|
3374
|
+
strokeLinejoin: v(["miter", "round", "bevel", "inherit"]).optional(),
|
|
3375
|
+
strokeMiterlimit: c().optional(),
|
|
3376
|
+
strokeOpacity: c().optional(),
|
|
3377
|
+
strokeWidth: c().optional(),
|
|
3378
|
+
surfaceScale: c().optional(),
|
|
3379
|
+
systemLanguage: c().optional(),
|
|
3380
|
+
tableValues: c().optional(),
|
|
3381
|
+
targetX: c().optional(),
|
|
3382
|
+
targetY: c().optional(),
|
|
3383
|
+
textAnchor: v(["start", "middle", "end", "inherit"]).optional(),
|
|
3384
|
+
textDecoration: c().optional(),
|
|
3385
|
+
textLength: c().optional(),
|
|
3386
|
+
textRendering: c().optional(),
|
|
3387
|
+
to: c().optional(),
|
|
3388
|
+
transform: a().optional(),
|
|
3389
|
+
u1: c().optional(),
|
|
3390
|
+
u2: c().optional(),
|
|
3391
|
+
underlinePosition: c().optional(),
|
|
3392
|
+
underlineThickness: c().optional(),
|
|
3393
|
+
unicode: c().optional(),
|
|
3394
|
+
unicodeBidi: c().optional(),
|
|
3395
|
+
unicodeRange: c().optional(),
|
|
3396
|
+
unitsPerEm: c().optional(),
|
|
3397
|
+
vAlphabetic: c().optional(),
|
|
3398
|
+
values: a().optional(),
|
|
3399
|
+
vectorEffect: c().optional(),
|
|
3400
|
+
version: a().optional(),
|
|
3401
|
+
vertAdvY: c().optional(),
|
|
3402
|
+
vertOriginX: c().optional(),
|
|
3403
|
+
vertOriginY: c().optional(),
|
|
3404
|
+
vHanging: c().optional(),
|
|
3405
|
+
vIdeographic: c().optional(),
|
|
3406
|
+
viewBox: a().optional(),
|
|
3407
|
+
viewTarget: c().optional(),
|
|
3408
|
+
visibility: c().optional(),
|
|
3409
|
+
vMathematical: c().optional(),
|
|
3410
|
+
widths: c().optional(),
|
|
3411
|
+
wordSpacing: c().optional(),
|
|
3412
|
+
writingMode: c().optional(),
|
|
3413
|
+
x1: c().optional(),
|
|
3414
|
+
x2: c().optional(),
|
|
3415
|
+
x: c().optional(),
|
|
3416
|
+
xChannelSelector: a().optional(),
|
|
3417
|
+
xHeight: c().optional(),
|
|
3418
|
+
xlinkActuate: a().optional(),
|
|
3419
|
+
xlinkArcrole: a().optional(),
|
|
3420
|
+
xlinkHref: a().optional(),
|
|
3421
|
+
xlinkRole: a().optional(),
|
|
3422
|
+
xlinkShow: a().optional(),
|
|
3423
|
+
xlinkTitle: a().optional(),
|
|
3424
|
+
xlinkType: a().optional(),
|
|
3425
|
+
xmlBase: a().optional(),
|
|
3426
|
+
xmlLang: a().optional(),
|
|
3427
|
+
xmlns: a().optional(),
|
|
3428
|
+
xmlnsXlink: a().optional(),
|
|
3429
|
+
xmlSpace: a().optional(),
|
|
3430
|
+
y1: c().optional(),
|
|
3431
|
+
y2: c().optional(),
|
|
3432
|
+
y: c().optional(),
|
|
3433
|
+
yChannelSelector: a().optional(),
|
|
3434
|
+
z: c().optional(),
|
|
3435
|
+
zoomAndPan: a().optional(),
|
|
3436
|
+
variant: v(["glyph", "full"]).optional()
|
|
3368
3437
|
// Logo variant - `glyph`: Cloud icon only - `full`: Cloud icon with "CLOUDFLARE" wordmark below
|
|
3369
|
-
}),
|
|
3370
|
-
lang:
|
|
3438
|
+
}), Ra = _({
|
|
3439
|
+
lang: v(["ts", "tsx", "jsonc", "bash", "css"]).optional(),
|
|
3371
3440
|
// 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:
|
|
3441
|
+
code: a(),
|
|
3373
3442
|
// The code string to display.
|
|
3374
|
-
values:
|
|
3443
|
+
values: c().optional(),
|
|
3375
3444
|
// Template values for `{{key}}` interpolation. Values with `highlight: true` are visually emphasized.
|
|
3376
|
-
className:
|
|
3445
|
+
className: a().optional()
|
|
3377
3446
|
// Additional CSS classes merged via `cn()`.
|
|
3378
|
-
}),
|
|
3379
|
-
className:
|
|
3447
|
+
}), ja = _({
|
|
3448
|
+
className: a().optional(),
|
|
3380
3449
|
// Additional CSS classes
|
|
3381
|
-
onOpenChange:
|
|
3450
|
+
onOpenChange: c().optional()
|
|
3382
3451
|
// Callback when collapsed state changes
|
|
3383
|
-
}),
|
|
3384
|
-
|
|
3452
|
+
}), La = _({
|
|
3453
|
+
colorName: v(["gray", "red", "orange", "yellow", "green", "turquoise", "sky", "blue", "purple", "pink", "transparent"]),
|
|
3454
|
+
// Named CRM tag color to display.
|
|
3455
|
+
variant: v(["default", "circle", "pipeline"]).optional(),
|
|
3456
|
+
// Swatch shape. - `"default"` — small rounded square (default) - `"circle"` — full circle - `"pipeline"` — wider rounded bar (for pipeline/stage pickers)
|
|
3457
|
+
className: a().optional()
|
|
3458
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3459
|
+
}), Ua = _({
|
|
3460
|
+
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3385
3461
|
// 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:
|
|
3462
|
+
inputSide: v(["right", "top"]).optional(),
|
|
3387
3463
|
// 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:
|
|
3464
|
+
items: A(c()),
|
|
3389
3465
|
// Array of items to display in the dropdown
|
|
3390
|
-
value:
|
|
3466
|
+
value: A(c()).optional(),
|
|
3391
3467
|
// Currently selected value(s)
|
|
3392
|
-
children:
|
|
3468
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3393
3469
|
// Combobox content (trigger, content, items)
|
|
3394
|
-
className:
|
|
3470
|
+
className: a().optional(),
|
|
3395
3471
|
// Additional CSS classes
|
|
3396
|
-
label:
|
|
3472
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3397
3473
|
// Label content for the combobox (enables Field wrapper) - can be a string or any React node
|
|
3398
|
-
required:
|
|
3474
|
+
required: p().optional(),
|
|
3399
3475
|
// Whether the combobox is required
|
|
3400
|
-
labelTooltip:
|
|
3476
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3401
3477
|
// Tooltip content to display next to the label via an info icon
|
|
3402
|
-
description:
|
|
3478
|
+
description: b([a(), h(), p(), y(), g]).optional(),
|
|
3403
3479
|
// Helper text displayed below the combobox
|
|
3404
|
-
error:
|
|
3480
|
+
error: c().optional(),
|
|
3405
3481
|
// Error message or validation error object
|
|
3406
|
-
onValueChange:
|
|
3482
|
+
onValueChange: c().optional(),
|
|
3407
3483
|
// Callback when selection changes
|
|
3408
|
-
multiple:
|
|
3484
|
+
multiple: p().optional(),
|
|
3409
3485
|
// Allow multiple selections
|
|
3410
|
-
isItemEqualToValue:
|
|
3486
|
+
isItemEqualToValue: c().optional()
|
|
3411
3487
|
// Custom equality function for comparing items
|
|
3412
|
-
}),
|
|
3413
|
-
open:
|
|
3488
|
+
}), Fa = _({
|
|
3489
|
+
open: p(),
|
|
3414
3490
|
// Whether the dialog is open
|
|
3415
|
-
children:
|
|
3491
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3416
3492
|
// Child content - typically one or more Panel components
|
|
3417
|
-
container:
|
|
3493
|
+
container: c().optional()
|
|
3418
3494
|
// Container element for the portal. Use this to render the command palette inside a Shadow DOM or custom container. Overrides `RekiPortalProvider` context.
|
|
3419
|
-
}),
|
|
3420
|
-
|
|
3495
|
+
}), Ma = _({
|
|
3496
|
+
kind: v(["text", "number"]),
|
|
3497
|
+
initialValue: c(),
|
|
3498
|
+
initialKey: a().optional(),
|
|
3499
|
+
align: v(["left", "right", "center"])
|
|
3500
|
+
}), Ja = _({
|
|
3501
|
+
className: a().optional(),
|
|
3421
3502
|
// Additional CSS classes
|
|
3422
|
-
children:
|
|
3503
|
+
children: b([a(), h(), p(), y(), g]).optional()
|
|
3423
3504
|
// Child elements
|
|
3424
|
-
}),
|
|
3425
|
-
size:
|
|
3505
|
+
}), Ba = _({
|
|
3506
|
+
size: v(["sm", "base", "lg"]).optional(),
|
|
3426
3507
|
// Calendar size. - `"sm"` — Compact calendar for tight spaces - `"base"` — Default calendar size - `"lg"` — Large calendar for prominent date selection
|
|
3427
|
-
variant:
|
|
3508
|
+
variant: v(["default", "subtle"]).optional(),
|
|
3428
3509
|
// Visual variant. - `"default"` — Standard appearance with overlay background - `"subtle"` — Minimal background
|
|
3429
|
-
timezone:
|
|
3510
|
+
timezone: a().optional(),
|
|
3430
3511
|
// Display timezone string shown in the footer.
|
|
3431
|
-
className:
|
|
3512
|
+
className: a().optional(),
|
|
3432
3513
|
// Additional CSS classes merged via `cn()`.
|
|
3433
|
-
onStartDateChange:
|
|
3514
|
+
onStartDateChange: c().optional(),
|
|
3434
3515
|
// Callback when start date changes
|
|
3435
|
-
onEndDateChange:
|
|
3516
|
+
onEndDateChange: c().optional()
|
|
3436
3517
|
// Callback when end date changes
|
|
3437
|
-
}),
|
|
3438
|
-
className:
|
|
3518
|
+
}), Va = _({
|
|
3519
|
+
className: a().optional(),
|
|
3439
3520
|
// Additional CSS classes merged via `cn()`.
|
|
3440
|
-
children:
|
|
3521
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3441
3522
|
// Dialog content (typically Title, Description, Close, and action buttons).
|
|
3442
|
-
container:
|
|
3523
|
+
container: c().optional(),
|
|
3443
3524
|
// Container element for the portal. Use this to render the dialog inside a Shadow DOM or custom container. Overrides `RekiPortalProvider` context.
|
|
3444
|
-
size:
|
|
3525
|
+
size: v(["base", "sm", "lg", "xl"]).optional()
|
|
3445
3526
|
// 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
|
-
}),
|
|
3447
|
-
|
|
3527
|
+
}), Ga = _({
|
|
3528
|
+
value: c(),
|
|
3529
|
+
// Current paired value.
|
|
3530
|
+
firstPlaceholder: a().optional(),
|
|
3531
|
+
// Placeholder for the first input.
|
|
3532
|
+
secondPlaceholder: a().optional(),
|
|
3533
|
+
// Placeholder for the second input.
|
|
3534
|
+
disabled: p().optional(),
|
|
3535
|
+
// Disables both inputs.
|
|
3536
|
+
className: a().optional()
|
|
3537
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3538
|
+
}), Wa = _({
|
|
3539
|
+
variant: v(["default", "danger"]).optional()
|
|
3448
3540
|
// Visual style of the dropdown item. - `"default"` — Standard item appearance - `"danger"` — Destructive action with red text
|
|
3449
|
-
}),
|
|
3450
|
-
|
|
3541
|
+
}), qa = _({
|
|
3542
|
+
emails: A(a()),
|
|
3543
|
+
// Email addresses, primary first.
|
|
3544
|
+
className: a().optional()
|
|
3545
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3546
|
+
}), Ka = _({
|
|
3547
|
+
size: v(["sm", "base", "lg"]).optional(),
|
|
3451
3548
|
// 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:
|
|
3549
|
+
icon: b([a(), h(), p(), y(), g]).optional(),
|
|
3453
3550
|
// Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`).
|
|
3454
|
-
title:
|
|
3551
|
+
title: a(),
|
|
3455
3552
|
// Primary heading text for the empty state.
|
|
3456
|
-
description:
|
|
3553
|
+
description: a().optional(),
|
|
3457
3554
|
// Secondary description text displayed below the title.
|
|
3458
|
-
commandLine:
|
|
3555
|
+
commandLine: a().optional(),
|
|
3459
3556
|
// Shell command displayed in a copyable code block.
|
|
3460
|
-
contents:
|
|
3557
|
+
contents: b([a(), h(), p(), y(), g]).optional(),
|
|
3461
3558
|
// Additional content (buttons, links) rendered below the description.
|
|
3462
|
-
className:
|
|
3559
|
+
className: a().optional()
|
|
3463
3560
|
// Additional CSS classes merged via `cn()`.
|
|
3464
|
-
}),
|
|
3465
|
-
|
|
3561
|
+
}), Xa = _({
|
|
3562
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3563
|
+
// Items to render. The first `max` are shown inline; the rest collapse into a `+N` chip.
|
|
3564
|
+
className: a().optional()
|
|
3565
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3566
|
+
}), Ya = _({
|
|
3567
|
+
controlFirst: p().optional(),
|
|
3466
3568
|
// When `true`, places the control before the label (for checkbox/switch layouts).
|
|
3467
|
-
children:
|
|
3569
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3468
3570
|
// The form control element(s) to wrap (Input, Select, Checkbox, etc.).
|
|
3469
|
-
label:
|
|
3571
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3470
3572
|
// The label content — can be a string or any React node.
|
|
3471
|
-
required:
|
|
3573
|
+
required: p().optional(),
|
|
3472
3574
|
// When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
|
|
3473
|
-
labelTooltip:
|
|
3575
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3474
3576
|
// Tooltip content displayed next to the label via an info icon.
|
|
3475
|
-
error:
|
|
3577
|
+
error: c().optional(),
|
|
3476
3578
|
// Validation error with a message and a browser `ValidityState` match key.
|
|
3477
|
-
description:
|
|
3579
|
+
description: b([a(), h(), p(), y(), g]).optional(),
|
|
3478
3580
|
// Helper text displayed below the control (hidden when `error` is present).
|
|
3479
|
-
hideLabel:
|
|
3581
|
+
hideLabel: p().optional()
|
|
3480
3582
|
// 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
|
-
}),
|
|
3482
|
-
children:
|
|
3583
|
+
}), Ha = _({
|
|
3584
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3483
3585
|
// Grid items to render.
|
|
3484
|
-
className:
|
|
3586
|
+
className: a().optional(),
|
|
3485
3587
|
// Additional CSS classes merged via `cn()`.
|
|
3486
|
-
id:
|
|
3487
|
-
lang:
|
|
3488
|
-
title:
|
|
3489
|
-
mobileDivider:
|
|
3588
|
+
id: a().optional(),
|
|
3589
|
+
lang: a().optional(),
|
|
3590
|
+
title: a().optional(),
|
|
3591
|
+
mobileDivider: p().optional(),
|
|
3490
3592
|
// Show dividers between grid items on mobile (only works with `"4up"` variant).
|
|
3491
|
-
gap:
|
|
3593
|
+
gap: v(["none", "sm", "base", "lg"]).optional(),
|
|
3492
3594
|
// Gap size between grid items. - `"none"` — No gap - `"sm"` — 12px gap - `"base"` — Responsive gap (8px → 24px → 32px) - `"lg"` — 32px gap
|
|
3493
|
-
variant:
|
|
3595
|
+
variant: v(["2up", "side-by-side", "2-1", "1-2", "1-3up", "3up", "4up", "6up", "1-2-4up"]).optional()
|
|
3494
3596
|
// 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
|
-
}),
|
|
3496
|
-
label:
|
|
3597
|
+
}), Qa = _({
|
|
3598
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3497
3599
|
// Label content for the input (enables Field wrapper) - can be a string or any React node
|
|
3498
|
-
labelTooltip:
|
|
3600
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3499
3601
|
// Tooltip content to display next to the label via an info icon
|
|
3500
|
-
description:
|
|
3602
|
+
description: b([a(), h(), p(), y(), g]).optional(),
|
|
3501
3603
|
// Helper text displayed below the input
|
|
3502
|
-
error:
|
|
3604
|
+
error: c().optional(),
|
|
3503
3605
|
// Error message or validation error object
|
|
3504
|
-
passwordManagerIgnore:
|
|
3606
|
+
passwordManagerIgnore: p().optional(),
|
|
3505
3607
|
// Suppress browser extension password manager overlays on non-credential inputs.
|
|
3506
|
-
size:
|
|
3608
|
+
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3507
3609
|
// Input size. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default size - `"lg"` — Large for prominent fields
|
|
3508
|
-
variant:
|
|
3610
|
+
variant: v(["default", "error"]).optional()
|
|
3509
3611
|
// Visual variant. - `"default"` — Standard input - `"error"` — Error state for validation failures
|
|
3510
|
-
}),
|
|
3511
|
-
label:
|
|
3612
|
+
}), es = _({}), os = _({
|
|
3613
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3512
3614
|
// The label content — can be a string or any React node.
|
|
3513
|
-
description:
|
|
3615
|
+
description: b([a(), h(), p(), y(), g]).optional(),
|
|
3514
3616
|
// Helper text displayed below the control (hidden when `error` is present).
|
|
3515
|
-
error:
|
|
3617
|
+
error: c().optional(),
|
|
3516
3618
|
// Validation error with a message and a browser `ValidityState` match key.
|
|
3517
|
-
required:
|
|
3619
|
+
required: p().optional(),
|
|
3518
3620
|
// When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
|
|
3519
|
-
labelTooltip:
|
|
3621
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3520
3622
|
// Tooltip content displayed next to the label via an info icon.
|
|
3521
|
-
children:
|
|
3522
|
-
className:
|
|
3523
|
-
id:
|
|
3524
|
-
lang:
|
|
3525
|
-
title:
|
|
3526
|
-
size:
|
|
3527
|
-
disabled:
|
|
3528
|
-
}),
|
|
3529
|
-
|
|
3623
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3624
|
+
className: a().optional(),
|
|
3625
|
+
id: a().optional(),
|
|
3626
|
+
lang: a().optional(),
|
|
3627
|
+
title: a().optional(),
|
|
3628
|
+
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3629
|
+
disabled: p().optional()
|
|
3630
|
+
}), ts = _({
|
|
3631
|
+
value: c(),
|
|
3632
|
+
// Value to render. Objects/arrays are stringified; strings are shown as-is.
|
|
3633
|
+
className: a().optional()
|
|
3634
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3635
|
+
}), ns = _({
|
|
3636
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3530
3637
|
// The label content — can be a string or any React node.
|
|
3531
|
-
showOptional:
|
|
3638
|
+
showOptional: p().optional(),
|
|
3532
3639
|
// When `true`, shows gray "(optional)" text after the label.
|
|
3533
|
-
tooltip:
|
|
3640
|
+
tooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3534
3641
|
// Tooltip content displayed next to the label via an info icon.
|
|
3535
|
-
className:
|
|
3642
|
+
className: a().optional(),
|
|
3536
3643
|
// Additional CSS classes merged via `cn()`.
|
|
3537
|
-
htmlFor:
|
|
3644
|
+
htmlFor: a().optional(),
|
|
3538
3645
|
// The id of the form element this label is associated with
|
|
3539
|
-
asContent:
|
|
3646
|
+
asContent: p().optional()
|
|
3540
3647
|
// 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
|
-
}),
|
|
3542
|
-
render:
|
|
3648
|
+
}), rs = _({
|
|
3649
|
+
render: b([a(), h(), p(), y(), g]).optional(),
|
|
3543
3650
|
// 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:
|
|
3545
|
-
className:
|
|
3546
|
-
id:
|
|
3547
|
-
lang:
|
|
3548
|
-
title:
|
|
3549
|
-
}),
|
|
3550
|
-
variant:
|
|
3651
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3652
|
+
className: a().optional(),
|
|
3653
|
+
id: a().optional(),
|
|
3654
|
+
lang: a().optional(),
|
|
3655
|
+
title: a().optional()
|
|
3656
|
+
}), is = _({
|
|
3657
|
+
variant: v(["inline", "current", "plain"]).optional(),
|
|
3551
3658
|
// 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:
|
|
3553
|
-
children:
|
|
3554
|
-
className:
|
|
3555
|
-
id:
|
|
3556
|
-
lang:
|
|
3557
|
-
title:
|
|
3558
|
-
download:
|
|
3559
|
-
href:
|
|
3560
|
-
hrefLang:
|
|
3561
|
-
media:
|
|
3562
|
-
ping:
|
|
3563
|
-
target:
|
|
3564
|
-
type:
|
|
3565
|
-
referrerPolicy:
|
|
3566
|
-
render:
|
|
3659
|
+
to: a().optional(),
|
|
3660
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3661
|
+
className: a().optional(),
|
|
3662
|
+
id: a().optional(),
|
|
3663
|
+
lang: a().optional(),
|
|
3664
|
+
title: a().optional(),
|
|
3665
|
+
download: c().optional(),
|
|
3666
|
+
href: a().optional(),
|
|
3667
|
+
hrefLang: a().optional(),
|
|
3668
|
+
media: a().optional(),
|
|
3669
|
+
ping: a().optional(),
|
|
3670
|
+
target: c().optional(),
|
|
3671
|
+
type: a().optional(),
|
|
3672
|
+
referrerPolicy: v(["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"]).optional(),
|
|
3673
|
+
render: b([a(), h(), p(), y(), g]).optional()
|
|
3567
3674
|
// 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
|
-
}),
|
|
3569
|
-
|
|
3675
|
+
}), as = _({
|
|
3676
|
+
label: a(),
|
|
3677
|
+
// Text label (truncated with a tooltip on overflow).
|
|
3678
|
+
href: a(),
|
|
3679
|
+
// Destination href. Resolved through the configured `LinkProvider`.
|
|
3680
|
+
tooltipLabel: a().optional(),
|
|
3681
|
+
// Tooltip content shown when the label overflows. Defaults to `label`.
|
|
3682
|
+
size: v(["small", "large"]).optional(),
|
|
3683
|
+
// Size of the chip.
|
|
3684
|
+
accent: v(["primary", "secondary"]).optional(),
|
|
3685
|
+
// Text emphasis.
|
|
3686
|
+
isBold: p().optional(),
|
|
3687
|
+
// Renders the label in a medium font weight.
|
|
3688
|
+
leftComponent: b([a(), h(), p(), y(), g]).optional(),
|
|
3689
|
+
// Node rendered before the label (e.g. an avatar or icon).
|
|
3690
|
+
rightComponent: b([a(), h(), p(), y(), g]).optional(),
|
|
3691
|
+
// Node rendered after the label.
|
|
3692
|
+
target: a().optional(),
|
|
3693
|
+
// Opens the link in a new tab.
|
|
3694
|
+
className: a().optional()
|
|
3695
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3696
|
+
}), ss = _({
|
|
3697
|
+
links: A(c()),
|
|
3698
|
+
// Links to render, primary first.
|
|
3699
|
+
className: a().optional()
|
|
3700
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3701
|
+
}), cs = _({
|
|
3702
|
+
className: a().optional(),
|
|
3570
3703
|
// Additional CSS classes merged via `cn()`.
|
|
3571
|
-
size:
|
|
3704
|
+
size: v(["sm", "base", "lg"]).optional()
|
|
3572
3705
|
// 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
|
-
}),
|
|
3574
|
-
className:
|
|
3706
|
+
}), ls = _({
|
|
3707
|
+
className: a().optional(),
|
|
3575
3708
|
// Additional CSS classes merged via `cn()`.
|
|
3576
|
-
isActive:
|
|
3709
|
+
isActive: c().optional(),
|
|
3577
3710
|
// The currently active option value — matched against option index or `id`.
|
|
3578
|
-
options:
|
|
3711
|
+
options: A(c()),
|
|
3579
3712
|
// Array of menu option configurations.
|
|
3580
|
-
optionIds:
|
|
3713
|
+
optionIds: p().optional()
|
|
3581
3714
|
// When true, each option's `id` field is used for matching instead of its array index.
|
|
3582
|
-
}),
|
|
3583
|
-
|
|
3715
|
+
}), us = _({
|
|
3716
|
+
text: a(),
|
|
3717
|
+
// Row label.
|
|
3718
|
+
LeftIcon: c().optional(),
|
|
3719
|
+
// Optional leading icon.
|
|
3720
|
+
leftComponent: b([a(), h(), p(), y(), g]).optional(),
|
|
3721
|
+
// Optional leading element (avatar, color sample, …) shown before the text.
|
|
3722
|
+
rightComponent: b([a(), h(), p(), y(), g]).optional(),
|
|
3723
|
+
// Optional trailing element shown after the text.
|
|
3724
|
+
selected: p().optional(),
|
|
3725
|
+
// Shows a trailing check mark when true.
|
|
3726
|
+
focused: p().optional(),
|
|
3727
|
+
// Keyboard-focused / active styling.
|
|
3728
|
+
disabled: p().optional(),
|
|
3729
|
+
// Disables the row.
|
|
3730
|
+
className: a().optional()
|
|
3731
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3732
|
+
}), ps = _({
|
|
3733
|
+
customValue: a().optional(),
|
|
3584
3734
|
// Custom formatted value text (e.g. "750 / 1,000") displayed instead of percentage.
|
|
3585
|
-
label:
|
|
3735
|
+
label: a(),
|
|
3586
3736
|
// Label text displayed above the meter track.
|
|
3587
|
-
showValue:
|
|
3737
|
+
showValue: p().optional(),
|
|
3588
3738
|
// Whether to display the percentage value next to the label.
|
|
3589
|
-
trackClassName:
|
|
3739
|
+
trackClassName: a().optional(),
|
|
3590
3740
|
// Additional CSS classes for the track (background bar).
|
|
3591
|
-
indicatorClassName:
|
|
3741
|
+
indicatorClassName: a().optional(),
|
|
3592
3742
|
// Additional CSS classes for the indicator (filled bar).
|
|
3593
|
-
value:
|
|
3743
|
+
value: h().optional(),
|
|
3594
3744
|
// Current value of the meter
|
|
3595
|
-
max:
|
|
3745
|
+
max: h().optional(),
|
|
3596
3746
|
// Maximum value of the meter (default: 100)
|
|
3597
|
-
min:
|
|
3747
|
+
min: h().optional()
|
|
3598
3748
|
// Minimum value of the meter (default: 0)
|
|
3599
|
-
}),
|
|
3600
|
-
|
|
3749
|
+
}), ds = _({
|
|
3750
|
+
count: h(),
|
|
3751
|
+
// Number to display. Values above `max` render as `{max}+`.
|
|
3752
|
+
variant: v(["primary", "secondary"]).optional(),
|
|
3753
|
+
// Visual variant. - `"primary"` — brand background (default) - `"secondary"` — neutral fill
|
|
3754
|
+
className: a().optional()
|
|
3755
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3756
|
+
}), fs = _({
|
|
3757
|
+
text: a(),
|
|
3758
|
+
// Text to render, truncated when it overflows its container.
|
|
3759
|
+
tooltipContent: b([a(), h(), p(), y(), g]).optional(),
|
|
3760
|
+
// Tooltip content shown when the text overflows. Defaults to `text`. Provide a custom node to show richer content than the raw string.
|
|
3761
|
+
lines: h().optional(),
|
|
3762
|
+
// Maximum number of lines before clamping. `1` (default) truncates to a single line with an ellipsis; higher values clamp to that many lines.
|
|
3763
|
+
alwaysShowTooltip: p().optional(),
|
|
3764
|
+
// Always show the tooltip on hover, even when the text is not overflowing.
|
|
3765
|
+
className: a().optional()
|
|
3766
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3767
|
+
}), hs = _({
|
|
3768
|
+
setPage: c(),
|
|
3601
3769
|
// Callback when page changes
|
|
3602
|
-
page:
|
|
3770
|
+
page: h().optional(),
|
|
3603
3771
|
// Current page number (1-indexed).
|
|
3604
|
-
perPage:
|
|
3772
|
+
perPage: h().optional(),
|
|
3605
3773
|
// Number of items displayed per page.
|
|
3606
|
-
totalCount:
|
|
3774
|
+
totalCount: h().optional(),
|
|
3607
3775
|
// Total number of items across all pages.
|
|
3608
|
-
className:
|
|
3776
|
+
className: a().optional(),
|
|
3609
3777
|
// Additional CSS classes for the container
|
|
3610
|
-
labels:
|
|
3778
|
+
labels: c().optional(),
|
|
3611
3779
|
// 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:
|
|
3780
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3613
3781
|
// Compound component children for custom layouts. Use Pagination.Info, Pagination.PageSize, Pagination.Controls, and Pagination.Separator.
|
|
3614
|
-
controls:
|
|
3615
|
-
text:
|
|
3616
|
-
}),
|
|
3617
|
-
|
|
3782
|
+
controls: v(["full", "simple"]).optional(),
|
|
3783
|
+
text: c().optional()
|
|
3784
|
+
}), ms = _({
|
|
3785
|
+
phones: A(a()),
|
|
3786
|
+
// Pre-formatted phone numbers, primary first.
|
|
3787
|
+
className: a().optional()
|
|
3788
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3789
|
+
}), gs = _({
|
|
3790
|
+
label: a(),
|
|
3791
|
+
// Text label.
|
|
3792
|
+
icon: c().optional(),
|
|
3793
|
+
// Optional leading icon (phosphor or any SVG component).
|
|
3794
|
+
className: a().optional()
|
|
3795
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3796
|
+
}), _s = _({
|
|
3797
|
+
side: v(["top", "bottom", "left", "right"]).optional()
|
|
3618
3798
|
// 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
|
-
}),
|
|
3620
|
-
variant:
|
|
3621
|
-
appearance:
|
|
3622
|
-
className:
|
|
3799
|
+
}), vs = _({
|
|
3800
|
+
variant: v(["default", "error"]).optional(),
|
|
3801
|
+
appearance: v(["default", "card"]).optional(),
|
|
3802
|
+
className: a().optional(),
|
|
3623
3803
|
// Additional CSS classes
|
|
3624
|
-
children:
|
|
3804
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3625
3805
|
// Child elements
|
|
3626
|
-
value:
|
|
3806
|
+
value: c().optional(),
|
|
3627
3807
|
// The controlled value of the selected radio item.
|
|
3628
|
-
defaultValue:
|
|
3808
|
+
defaultValue: c().optional(),
|
|
3629
3809
|
// The uncontrolled initial value of the selected radio item.
|
|
3630
|
-
onValueChange:
|
|
3810
|
+
onValueChange: c().optional()
|
|
3631
3811
|
// Callback fired when the selected value changes. The second argument carries native event details about the interaction.
|
|
3632
|
-
}),
|
|
3633
|
-
|
|
3812
|
+
}), bs = _({
|
|
3813
|
+
value: c(),
|
|
3814
|
+
// Current rating (1..max), or `null` for unrated.
|
|
3815
|
+
readonly: p().optional(),
|
|
3816
|
+
// Renders as read-only (no hover/click).
|
|
3817
|
+
className: a().optional()
|
|
3818
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3819
|
+
}), ys = _({
|
|
3820
|
+
className: a().optional(),
|
|
3821
|
+
// Additional CSS classes
|
|
3822
|
+
children: b([a(), h(), p(), y(), g]).optional()
|
|
3823
|
+
// Child elements
|
|
3824
|
+
}), zs = _({
|
|
3825
|
+
className: a().optional(),
|
|
3634
3826
|
// Additional CSS classes merged via `cn()`.
|
|
3635
|
-
size:
|
|
3827
|
+
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3636
3828
|
// Size of the select trigger. Matches Input component sizes.
|
|
3637
|
-
label:
|
|
3829
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3638
3830
|
// 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:
|
|
3640
|
-
placeholder:
|
|
3831
|
+
hideLabel: p().optional(),
|
|
3832
|
+
placeholder: a().optional(),
|
|
3641
3833
|
// Placeholder text shown when no value is selected.
|
|
3642
|
-
loading:
|
|
3834
|
+
loading: p().optional(),
|
|
3643
3835
|
// When `true`, shows a skeleton loader in place of the selected value.
|
|
3644
|
-
disabled:
|
|
3836
|
+
disabled: p().optional(),
|
|
3645
3837
|
// Whether the select is disabled.
|
|
3646
|
-
required:
|
|
3838
|
+
required: p().optional(),
|
|
3647
3839
|
// Whether the select is required. When `false`, shows "(optional)" text.
|
|
3648
|
-
labelTooltip:
|
|
3840
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3649
3841
|
// Tooltip content displayed next to the label via an info icon.
|
|
3650
|
-
value:
|
|
3842
|
+
value: c().optional(),
|
|
3651
3843
|
// Currently selected value (controlled mode).
|
|
3652
|
-
children:
|
|
3844
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3653
3845
|
// `Select.Option` elements to render in the dropdown.
|
|
3654
|
-
description:
|
|
3846
|
+
description: b([a(), h(), p(), y(), g]).optional(),
|
|
3655
3847
|
// Helper text displayed below the select.
|
|
3656
|
-
error:
|
|
3848
|
+
error: c().optional(),
|
|
3657
3849
|
// Error message string or validation error object with `match` key.
|
|
3658
|
-
onValueChange:
|
|
3850
|
+
onValueChange: c().optional(),
|
|
3659
3851
|
// Callback when selection changes
|
|
3660
|
-
defaultValue:
|
|
3852
|
+
defaultValue: c().optional(),
|
|
3661
3853
|
// Initial value for uncontrolled mode
|
|
3662
|
-
renderValue:
|
|
3854
|
+
renderValue: c().optional(),
|
|
3663
3855
|
// 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:
|
|
3856
|
+
items: c().optional(),
|
|
3665
3857
|
// 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:
|
|
3858
|
+
isItemEqualToValue: c().optional()
|
|
3667
3859
|
// Custom equality function for comparing items. Required when value is an object, since object identity (`===`) won't match across renders.
|
|
3668
|
-
}),
|
|
3669
|
-
alt:
|
|
3670
|
-
autoComplete:
|
|
3671
|
-
checked:
|
|
3672
|
-
disabled:
|
|
3673
|
-
height:
|
|
3674
|
-
list:
|
|
3675
|
-
name:
|
|
3676
|
-
placeholder:
|
|
3677
|
-
readOnly:
|
|
3678
|
-
required:
|
|
3679
|
-
width:
|
|
3680
|
-
className:
|
|
3681
|
-
id:
|
|
3682
|
-
lang:
|
|
3683
|
-
title:
|
|
3684
|
-
children:
|
|
3685
|
-
value:
|
|
3860
|
+
}), ks = _({
|
|
3861
|
+
alt: a().optional(),
|
|
3862
|
+
autoComplete: c().optional(),
|
|
3863
|
+
checked: p().optional(),
|
|
3864
|
+
disabled: p().optional(),
|
|
3865
|
+
height: c().optional(),
|
|
3866
|
+
list: a().optional(),
|
|
3867
|
+
name: a().optional(),
|
|
3868
|
+
placeholder: a().optional(),
|
|
3869
|
+
readOnly: p().optional(),
|
|
3870
|
+
required: p().optional(),
|
|
3871
|
+
width: c().optional(),
|
|
3872
|
+
className: a().optional(),
|
|
3873
|
+
id: a().optional(),
|
|
3874
|
+
lang: a().optional(),
|
|
3875
|
+
title: a().optional(),
|
|
3876
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3877
|
+
value: a().optional(),
|
|
3686
3878
|
// Controlled value
|
|
3687
|
-
size:
|
|
3879
|
+
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3688
3880
|
// 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:
|
|
3881
|
+
variant: v(["default", "error"]).optional(),
|
|
3690
3882
|
// Style variant of the input. - `"default"` — Default input appearance - `"error"` — Error state for validation failures
|
|
3691
|
-
label:
|
|
3883
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3692
3884
|
// Label content for the input (enables Field wrapper and sets masked state label) - can be a string or any React node
|
|
3693
|
-
labelTooltip:
|
|
3885
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3694
3886
|
// Tooltip content to display next to the label via an info icon
|
|
3695
|
-
description:
|
|
3887
|
+
description: b([a(), h(), p(), y(), g]).optional(),
|
|
3696
3888
|
// Helper text displayed below the input
|
|
3697
|
-
error:
|
|
3889
|
+
error: c().optional()
|
|
3698
3890
|
// Error message or validation error object
|
|
3699
|
-
}),
|
|
3700
|
-
defaultOpen:
|
|
3891
|
+
}), ws = _({
|
|
3892
|
+
defaultOpen: p().optional(),
|
|
3701
3893
|
// Initial open state when uncontrolled.
|
|
3702
|
-
open:
|
|
3894
|
+
open: p().optional(),
|
|
3703
3895
|
// Controlled open state.
|
|
3704
|
-
variant:
|
|
3896
|
+
variant: v(["sidebar", "floating", "inset"]).optional(),
|
|
3705
3897
|
// Sidebar layout variant.
|
|
3706
|
-
side:
|
|
3898
|
+
side: v(["left", "right"]).optional(),
|
|
3707
3899
|
// Which side the sidebar is on.
|
|
3708
|
-
collapsible:
|
|
3709
|
-
resizable:
|
|
3900
|
+
collapsible: v(["icon", "offcanvas", "none"]).optional(),
|
|
3901
|
+
resizable: p().optional(),
|
|
3710
3902
|
// Enable drag-to-resize on the sidebar edge.
|
|
3711
|
-
defaultWidth:
|
|
3903
|
+
defaultWidth: h().optional(),
|
|
3712
3904
|
// Initial width in pixels when resizable.
|
|
3713
|
-
minWidth:
|
|
3905
|
+
minWidth: h().optional(),
|
|
3714
3906
|
// Minimum width in pixels when resizing.
|
|
3715
|
-
maxWidth:
|
|
3907
|
+
maxWidth: h().optional(),
|
|
3716
3908
|
// Maximum width in pixels when resizing.
|
|
3717
|
-
contained:
|
|
3909
|
+
contained: p().optional(),
|
|
3718
3910
|
// 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:
|
|
3911
|
+
peekable: p().optional(),
|
|
3720
3912
|
// 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:
|
|
3913
|
+
animationDuration: h().optional(),
|
|
3722
3914
|
// Duration of sidebar expand/collapse animation in milliseconds.
|
|
3723
|
-
mobileBreakpoint:
|
|
3915
|
+
mobileBreakpoint: h().optional(),
|
|
3724
3916
|
// Viewport width (in px) below which the sidebar renders as a mobile dialog sheet instead of the desktop aside rail.
|
|
3725
|
-
children:
|
|
3917
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3726
3918
|
// Content — typically `<Sidebar>` + main content.
|
|
3727
|
-
className:
|
|
3919
|
+
className: a().optional()
|
|
3728
3920
|
// Additional CSS classes for the wrapper div.
|
|
3729
|
-
}),
|
|
3730
|
-
|
|
3731
|
-
|
|
3921
|
+
}), Ss = _({
|
|
3922
|
+
text: a(),
|
|
3923
|
+
// Status label text.
|
|
3924
|
+
isLoaderVisible: p().optional(),
|
|
3925
|
+
// Shows an inline loader after the text (e.g. while a transition runs).
|
|
3926
|
+
weight: v(["regular", "medium"]).optional(),
|
|
3927
|
+
// Font weight of the label.
|
|
3928
|
+
className: a().optional()
|
|
3929
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
3930
|
+
}), $s = _({
|
|
3931
|
+
as: c().optional(),
|
|
3932
|
+
render: b([a(), h(), p(), y(), g]).optional(),
|
|
3732
3933
|
// 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:
|
|
3734
|
-
className:
|
|
3735
|
-
id:
|
|
3736
|
-
lang:
|
|
3737
|
-
title:
|
|
3738
|
-
}),
|
|
3739
|
-
variant:
|
|
3934
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3935
|
+
className: a().optional(),
|
|
3936
|
+
id: a().optional(),
|
|
3937
|
+
lang: a().optional(),
|
|
3938
|
+
title: a().optional()
|
|
3939
|
+
}), Ps = _({
|
|
3940
|
+
variant: v(["default", "neutral"]).optional(),
|
|
3740
3941
|
// Visual variant: "default" (pill, brand color) or "neutral" (squircle, monochrome)
|
|
3741
|
-
label:
|
|
3942
|
+
label: b([a(), h(), p(), y(), g]).optional(),
|
|
3742
3943
|
// 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:
|
|
3944
|
+
labelTooltip: b([a(), h(), p(), y(), g]).optional(),
|
|
3744
3945
|
// Tooltip content to display next to the label via an info icon
|
|
3745
|
-
required:
|
|
3946
|
+
required: p().optional(),
|
|
3746
3947
|
// Whether the switch is required. When explicitly false, shows "(optional)" text after the label.
|
|
3747
|
-
controlFirst:
|
|
3948
|
+
controlFirst: p().optional(),
|
|
3748
3949
|
// When true (default), switch appears before label. When false, label appears before switch.
|
|
3749
|
-
size:
|
|
3750
|
-
checked:
|
|
3751
|
-
disabled:
|
|
3752
|
-
transitioning:
|
|
3753
|
-
name:
|
|
3754
|
-
type:
|
|
3755
|
-
value:
|
|
3756
|
-
className:
|
|
3757
|
-
id:
|
|
3758
|
-
lang:
|
|
3759
|
-
title:
|
|
3760
|
-
onClick:
|
|
3950
|
+
size: v(["sm", "base", "lg"]).optional(),
|
|
3951
|
+
checked: p().optional(),
|
|
3952
|
+
disabled: p().optional(),
|
|
3953
|
+
transitioning: p().optional(),
|
|
3954
|
+
name: a().optional(),
|
|
3955
|
+
type: v(["submit", "reset", "button"]).optional(),
|
|
3956
|
+
value: c().optional(),
|
|
3957
|
+
className: a().optional(),
|
|
3958
|
+
id: a().optional(),
|
|
3959
|
+
lang: a().optional(),
|
|
3960
|
+
title: a().optional(),
|
|
3961
|
+
onClick: c()
|
|
3761
3962
|
// Callback when switch is clicked
|
|
3762
|
-
}),
|
|
3763
|
-
layout:
|
|
3764
|
-
variant:
|
|
3765
|
-
sticky:
|
|
3766
|
-
className:
|
|
3963
|
+
}), Zs = _({
|
|
3964
|
+
layout: v(["auto", "fixed"]).optional(),
|
|
3965
|
+
variant: v(["default", "selected"]).optional(),
|
|
3966
|
+
sticky: v(["left", "right"]).optional(),
|
|
3967
|
+
className: a().optional(),
|
|
3767
3968
|
// Additional CSS classes
|
|
3768
|
-
children:
|
|
3969
|
+
children: b([a(), h(), p(), y(), g]).optional()
|
|
3769
3970
|
// Child elements
|
|
3770
|
-
}),
|
|
3771
|
-
children:
|
|
3772
|
-
className:
|
|
3773
|
-
id:
|
|
3774
|
-
lang:
|
|
3775
|
-
title:
|
|
3776
|
-
}),
|
|
3777
|
-
tabs:
|
|
3971
|
+
}), Ts = _({
|
|
3972
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3973
|
+
className: a().optional(),
|
|
3974
|
+
id: a().optional(),
|
|
3975
|
+
lang: a().optional(),
|
|
3976
|
+
title: a().optional()
|
|
3977
|
+
}), Os = _({
|
|
3978
|
+
tabs: A(c()).optional(),
|
|
3778
3979
|
// Array of tab items to render.
|
|
3779
|
-
value:
|
|
3980
|
+
value: a().optional(),
|
|
3780
3981
|
// Controlled value. When set, component becomes controlled.
|
|
3781
|
-
selectedValue:
|
|
3982
|
+
selectedValue: a().optional(),
|
|
3782
3983
|
// Default selected value for uncontrolled mode. Ignored when `value` is set.
|
|
3783
|
-
activateOnFocus:
|
|
3984
|
+
activateOnFocus: p().optional(),
|
|
3784
3985
|
// 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:
|
|
3986
|
+
className: a().optional(),
|
|
3786
3987
|
// Additional CSS classes for the root element.
|
|
3787
|
-
listClassName:
|
|
3988
|
+
listClassName: a().optional(),
|
|
3788
3989
|
// Additional CSS classes for the tab list element.
|
|
3789
|
-
indicatorClassName:
|
|
3990
|
+
indicatorClassName: a().optional(),
|
|
3790
3991
|
// Additional CSS classes for the indicator element.
|
|
3791
|
-
variant:
|
|
3992
|
+
variant: v(["segmented", "underline"]).optional(),
|
|
3792
3993
|
// Tab style. - `"segmented"` — Pill-shaped indicator on a filled track - `"underline"` — Underline indicator below tab text
|
|
3793
|
-
size:
|
|
3994
|
+
size: v(["base", "sm"]).optional(),
|
|
3794
3995
|
// Tab size. - `"base"` — Default size (h-9, text-base) - `"sm"` — Compact size (h-6.5, text-xs) — matches Input size="sm"
|
|
3795
|
-
onValueChange:
|
|
3996
|
+
onValueChange: c().optional()
|
|
3796
3997
|
// Callback when active tab changes
|
|
3797
|
-
}),
|
|
3798
|
-
|
|
3998
|
+
}), Ns = _({
|
|
3999
|
+
text: a(),
|
|
4000
|
+
// Text label rendered inside the tag (truncated with a tooltip on overflow).
|
|
4001
|
+
icon: c().optional(),
|
|
4002
|
+
// Optional leading icon (phosphor or any SVG component).
|
|
4003
|
+
variant: v(["solid", "outline", "border"]).optional(),
|
|
4004
|
+
// Visual style. - `"solid"` — subtle colored background (default) - `"outline"` — transparent background with a colored ring - `"border"` — subtle background with a matching colored ring
|
|
4005
|
+
weight: v(["regular", "medium"]).optional(),
|
|
4006
|
+
// Font weight of the label. - `"regular"` (default) - `"medium"`
|
|
4007
|
+
preventShrink: p().optional(),
|
|
4008
|
+
// Prevents the tag from shrinking inside flex containers.
|
|
4009
|
+
className: a().optional()
|
|
4010
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
4011
|
+
}), Is = _({
|
|
4012
|
+
variant: v(["heading1", "heading2", "heading3", "body", "secondary", "success", "error", "mono", "mono-secondary"]).optional(),
|
|
3799
4013
|
// 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:
|
|
4014
|
+
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3801
4015
|
// Text size (only applies to body/secondary/success/error variants). - `"xs"` — 12px - `"sm"` — 14px - `"base"` — 16px - `"lg"` — 18px
|
|
3802
|
-
bold:
|
|
4016
|
+
bold: p().optional(),
|
|
3803
4017
|
// Whether to use bold font weight (only applies to body variants).
|
|
3804
|
-
truncate:
|
|
4018
|
+
truncate: p().optional(),
|
|
3805
4019
|
// Whether to truncate overflowing text with an ellipsis. Adds `truncate min-w-0` classes.
|
|
3806
|
-
as:
|
|
4020
|
+
as: v(["h1", "h2", "h3", "h4", "h5", "h6", "p", "span", "label", "dt", "dd", "li", "figcaption", "legend", "pre", "code", "em", "strong", "small", "abbr", "time"]).optional(),
|
|
3807
4021
|
// 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:
|
|
4022
|
+
children: b([a(), h(), p(), y(), g]).optional()
|
|
3809
4023
|
// Text content.
|
|
3810
|
-
}),
|
|
3811
|
-
|
|
3812
|
-
|
|
4024
|
+
}), Es = _({
|
|
4025
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
4026
|
+
// `Timeline.Item` elements.
|
|
4027
|
+
className: a().optional()
|
|
4028
|
+
// Additional CSS classes merged via `cn()`. Use reki semantic tokens only.
|
|
4029
|
+
}), Cs = _({
|
|
4030
|
+
variant: v(["default", "success", "error", "warning", "info"]).optional(),
|
|
4031
|
+
className: a().optional(),
|
|
3813
4032
|
// Additional CSS classes
|
|
3814
|
-
children:
|
|
4033
|
+
children: b([a(), h(), p(), y(), g]).optional()
|
|
3815
4034
|
// Child elements
|
|
3816
|
-
}),
|
|
3817
|
-
side:
|
|
3818
|
-
className:
|
|
4035
|
+
}), As = _({
|
|
4036
|
+
side: v(["top", "bottom", "left", "right"]).optional(),
|
|
4037
|
+
className: a().optional(),
|
|
3819
4038
|
// Additional CSS classes
|
|
3820
|
-
children:
|
|
4039
|
+
children: b([a(), h(), p(), y(), g]).optional(),
|
|
3821
4040
|
// Child elements
|
|
3822
|
-
content:
|
|
4041
|
+
content: b([a(), h(), p(), y(), g])
|
|
3823
4042
|
// Content to display in the tooltip
|
|
3824
|
-
}),
|
|
4043
|
+
}), xs = v([
|
|
4044
|
+
"ActorDisplay",
|
|
4045
|
+
"AddressInput",
|
|
4046
|
+
"ArrayDisplay",
|
|
3825
4047
|
"Autocomplete",
|
|
4048
|
+
"Avatar",
|
|
4049
|
+
"AvatarGroup",
|
|
3826
4050
|
"Badge",
|
|
3827
4051
|
"Banner",
|
|
3828
4052
|
"Breadcrumbs",
|
|
3829
4053
|
"Button",
|
|
3830
4054
|
"Checkbox",
|
|
4055
|
+
"Chip",
|
|
4056
|
+
"CircularProgressBar",
|
|
3831
4057
|
"ClipboardText",
|
|
3832
4058
|
"CloudflareLogo",
|
|
3833
4059
|
"Code",
|
|
3834
4060
|
"Collapsible",
|
|
4061
|
+
"ColorSample",
|
|
3835
4062
|
"Combobox",
|
|
3836
4063
|
"CommandPalette",
|
|
4064
|
+
"DataGrid",
|
|
3837
4065
|
"DatePicker",
|
|
3838
4066
|
"DateRangePicker",
|
|
3839
4067
|
"Dialog",
|
|
4068
|
+
"DoubleTextInput",
|
|
3840
4069
|
"DropdownMenu",
|
|
4070
|
+
"EmailsDisplay",
|
|
3841
4071
|
"Empty",
|
|
4072
|
+
"ExpandableList",
|
|
3842
4073
|
"Field",
|
|
3843
4074
|
"Grid",
|
|
3844
4075
|
"Input",
|
|
3845
4076
|
"InputArea",
|
|
3846
4077
|
"InputGroup",
|
|
4078
|
+
"JsonDisplay",
|
|
3847
4079
|
"Label",
|
|
3848
4080
|
"LayerCard",
|
|
3849
4081
|
"Link",
|
|
4082
|
+
"LinkChip",
|
|
4083
|
+
"LinksDisplay",
|
|
3850
4084
|
"Loader",
|
|
3851
4085
|
"MenuBar",
|
|
4086
|
+
"MenuItem",
|
|
3852
4087
|
"Meter",
|
|
4088
|
+
"NotificationCounter",
|
|
4089
|
+
"OverflowingText",
|
|
3853
4090
|
"Pagination",
|
|
4091
|
+
"PhonesDisplay",
|
|
4092
|
+
"Pill",
|
|
3854
4093
|
"Popover",
|
|
3855
4094
|
"Radio",
|
|
4095
|
+
"Rating",
|
|
4096
|
+
"RecordBoard",
|
|
3856
4097
|
"Select",
|
|
3857
4098
|
"SensitiveInput",
|
|
3858
4099
|
"Sidebar",
|
|
4100
|
+
"Status",
|
|
3859
4101
|
"Surface",
|
|
3860
4102
|
"Switch",
|
|
3861
4103
|
"Table",
|
|
3862
4104
|
"TableOfContents",
|
|
3863
4105
|
"Tabs",
|
|
4106
|
+
"Tag",
|
|
3864
4107
|
"Text",
|
|
4108
|
+
"Timeline",
|
|
3865
4109
|
"Toasty",
|
|
3866
4110
|
"Tooltip"
|
|
3867
|
-
]),
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
4111
|
+
]), Ds = {
|
|
4112
|
+
ActorDisplay: ka,
|
|
4113
|
+
AddressInput: wa,
|
|
4114
|
+
ArrayDisplay: Sa,
|
|
4115
|
+
Autocomplete: $a,
|
|
4116
|
+
Avatar: Pa,
|
|
4117
|
+
AvatarGroup: Za,
|
|
4118
|
+
Badge: Ta,
|
|
4119
|
+
Banner: Oa,
|
|
4120
|
+
Breadcrumbs: Na,
|
|
4121
|
+
Button: Ia,
|
|
4122
|
+
Checkbox: Ea,
|
|
4123
|
+
Chip: Ca,
|
|
4124
|
+
CircularProgressBar: Aa,
|
|
4125
|
+
ClipboardText: xa,
|
|
4126
|
+
CloudflareLogo: Da,
|
|
4127
|
+
Code: Ra,
|
|
4128
|
+
Collapsible: ja,
|
|
4129
|
+
ColorSample: La,
|
|
4130
|
+
Combobox: Ua,
|
|
4131
|
+
CommandPalette: Fa,
|
|
4132
|
+
DataGrid: Ma,
|
|
4133
|
+
DatePicker: Ja,
|
|
4134
|
+
DateRangePicker: Ba,
|
|
4135
|
+
Dialog: Va,
|
|
4136
|
+
DoubleTextInput: Ga,
|
|
4137
|
+
DropdownMenu: Wa,
|
|
4138
|
+
EmailsDisplay: qa,
|
|
4139
|
+
Empty: Ka,
|
|
4140
|
+
ExpandableList: Xa,
|
|
4141
|
+
Field: Ya,
|
|
4142
|
+
Grid: Ha,
|
|
4143
|
+
Input: Qa,
|
|
4144
|
+
InputArea: es,
|
|
4145
|
+
InputGroup: os,
|
|
4146
|
+
JsonDisplay: ts,
|
|
4147
|
+
Label: ns,
|
|
4148
|
+
LayerCard: rs,
|
|
4149
|
+
Link: is,
|
|
4150
|
+
LinkChip: as,
|
|
4151
|
+
LinksDisplay: ss,
|
|
4152
|
+
Loader: cs,
|
|
4153
|
+
MenuBar: ls,
|
|
4154
|
+
MenuItem: us,
|
|
4155
|
+
Meter: ps,
|
|
4156
|
+
NotificationCounter: ds,
|
|
4157
|
+
OverflowingText: fs,
|
|
4158
|
+
Pagination: hs,
|
|
4159
|
+
PhonesDisplay: ms,
|
|
4160
|
+
Pill: gs,
|
|
4161
|
+
Popover: _s,
|
|
4162
|
+
Radio: vs,
|
|
4163
|
+
Rating: bs,
|
|
4164
|
+
RecordBoard: ys,
|
|
4165
|
+
Select: zs,
|
|
4166
|
+
SensitiveInput: ks,
|
|
4167
|
+
Sidebar: ws,
|
|
4168
|
+
Status: Ss,
|
|
4169
|
+
Surface: $s,
|
|
4170
|
+
Switch: Ps,
|
|
4171
|
+
Table: Zs,
|
|
4172
|
+
TableOfContents: Ts,
|
|
4173
|
+
Tabs: Os,
|
|
4174
|
+
Tag: Ns,
|
|
4175
|
+
Text: Is,
|
|
4176
|
+
Timeline: Es,
|
|
4177
|
+
Toasty: Cs,
|
|
4178
|
+
Tooltip: As
|
|
4179
|
+
}, Rs = _({
|
|
4180
|
+
key: a(),
|
|
4181
|
+
type: xs,
|
|
4182
|
+
props: H(a(), c()),
|
|
4183
|
+
children: A(a()).optional(),
|
|
4184
|
+
parentKey: a().nullable().optional(),
|
|
3916
4185
|
visible: ba.optional(),
|
|
3917
4186
|
action: za.optional()
|
|
3918
|
-
}),
|
|
3919
|
-
root:
|
|
3920
|
-
elements: H(
|
|
4187
|
+
}), js = _({
|
|
4188
|
+
root: a(),
|
|
4189
|
+
elements: H(a(), Rs)
|
|
3921
4190
|
});
|
|
3922
|
-
function
|
|
3923
|
-
const o =
|
|
4191
|
+
function Us(e) {
|
|
4192
|
+
const o = Ds[e.type];
|
|
3924
4193
|
return o ? o.safeParse(e.props) : { success: !1, error: new li([{ code: "custom", message: `Unknown component type: ${e.type}`, path: ["type"] }]) };
|
|
3925
4194
|
}
|
|
3926
|
-
function
|
|
3927
|
-
return
|
|
4195
|
+
function Fs(e) {
|
|
4196
|
+
return js.safeParse(e);
|
|
3928
4197
|
}
|
|
3929
|
-
const
|
|
4198
|
+
const Ms = ["ActorDisplay", "AddressInput", "ArrayDisplay", "Autocomplete", "Avatar", "AvatarGroup", "Badge", "Banner", "Breadcrumbs", "Button", "Checkbox", "Chip", "CircularProgressBar", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "ColorSample", "Combobox", "CommandPalette", "DataGrid", "DatePicker", "DateRangePicker", "Dialog", "DoubleTextInput", "DropdownMenu", "EmailsDisplay", "Empty", "ExpandableList", "Field", "Grid", "Input", "InputArea", "InputGroup", "JsonDisplay", "Label", "LayerCard", "Link", "LinkChip", "LinksDisplay", "Loader", "MenuBar", "MenuItem", "Meter", "NotificationCounter", "OverflowingText", "Pagination", "PhonesDisplay", "Pill", "Popover", "Radio", "Rating", "RecordBoard", "Select", "SensitiveInput", "Sidebar", "Status", "Surface", "Switch", "Table", "TableOfContents", "Tabs", "Tag", "Text", "Timeline", "Toasty", "Tooltip"];
|
|
3930
4199
|
export {
|
|
3931
4200
|
ya as ActionConfirmSchema,
|
|
3932
4201
|
za as ActionSchema,
|
|
3933
|
-
ka as
|
|
3934
|
-
wa as
|
|
3935
|
-
Sa as
|
|
3936
|
-
$a as
|
|
3937
|
-
Za as
|
|
3938
|
-
Pa as
|
|
3939
|
-
Ta as
|
|
3940
|
-
Oa as
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
Ea as
|
|
3944
|
-
Ca as
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
Ma as
|
|
3955
|
-
Ja as
|
|
3956
|
-
|
|
3957
|
-
Va as
|
|
3958
|
-
|
|
3959
|
-
Wa as
|
|
3960
|
-
|
|
3961
|
-
qa as
|
|
3962
|
-
Ka as
|
|
3963
|
-
Xa as
|
|
3964
|
-
Ya as
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
Qa as
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
is as
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
ds as
|
|
3980
|
-
fs as
|
|
4202
|
+
ka as ActorDisplayPropsSchema,
|
|
4203
|
+
wa as AddressInputPropsSchema,
|
|
4204
|
+
Sa as ArrayDisplayPropsSchema,
|
|
4205
|
+
$a as AutocompletePropsSchema,
|
|
4206
|
+
Za as AvatarGroupPropsSchema,
|
|
4207
|
+
Pa as AvatarPropsSchema,
|
|
4208
|
+
Ta as BadgePropsSchema,
|
|
4209
|
+
Oa as BannerPropsSchema,
|
|
4210
|
+
Na as BreadcrumbsPropsSchema,
|
|
4211
|
+
Ia as ButtonPropsSchema,
|
|
4212
|
+
Ea as CheckboxPropsSchema,
|
|
4213
|
+
Ca as ChipPropsSchema,
|
|
4214
|
+
Aa as CircularProgressBarPropsSchema,
|
|
4215
|
+
xa as ClipboardTextPropsSchema,
|
|
4216
|
+
Da as CloudflareLogoPropsSchema,
|
|
4217
|
+
Ra as CodePropsSchema,
|
|
4218
|
+
ja as CollapsiblePropsSchema,
|
|
4219
|
+
La as ColorSamplePropsSchema,
|
|
4220
|
+
Ua as ComboboxPropsSchema,
|
|
4221
|
+
Fa as CommandPalettePropsSchema,
|
|
4222
|
+
Ds as ComponentPropsSchemas,
|
|
4223
|
+
Ma as DataGridPropsSchema,
|
|
4224
|
+
Ja as DatePickerPropsSchema,
|
|
4225
|
+
Ba as DateRangePickerPropsSchema,
|
|
4226
|
+
Va as DialogPropsSchema,
|
|
4227
|
+
Ga as DoubleTextInputPropsSchema,
|
|
4228
|
+
Wa as DropdownMenuPropsSchema,
|
|
4229
|
+
g as DynamicValueSchema,
|
|
4230
|
+
qa as EmailsDisplayPropsSchema,
|
|
4231
|
+
Ka as EmptyPropsSchema,
|
|
4232
|
+
Xa as ExpandableListPropsSchema,
|
|
4233
|
+
Ya as FieldPropsSchema,
|
|
4234
|
+
Ha as GridPropsSchema,
|
|
4235
|
+
es as InputAreaPropsSchema,
|
|
4236
|
+
os as InputGroupPropsSchema,
|
|
4237
|
+
Qa as InputPropsSchema,
|
|
4238
|
+
ts as JsonDisplayPropsSchema,
|
|
4239
|
+
ns as LabelPropsSchema,
|
|
4240
|
+
rs as LayerCardPropsSchema,
|
|
4241
|
+
as as LinkChipPropsSchema,
|
|
4242
|
+
is as LinkPropsSchema,
|
|
4243
|
+
ss as LinksDisplayPropsSchema,
|
|
4244
|
+
cs as LoaderPropsSchema,
|
|
4245
|
+
ls as MenuBarPropsSchema,
|
|
4246
|
+
us as MenuItemPropsSchema,
|
|
4247
|
+
ps as MeterPropsSchema,
|
|
4248
|
+
ds as NotificationCounterPropsSchema,
|
|
4249
|
+
fs as OverflowingTextPropsSchema,
|
|
4250
|
+
hs as PaginationPropsSchema,
|
|
4251
|
+
ms as PhonesDisplayPropsSchema,
|
|
4252
|
+
gs as PillPropsSchema,
|
|
4253
|
+
_s as PopoverPropsSchema,
|
|
4254
|
+
Ms as REKI_COMPONENT_NAMES,
|
|
4255
|
+
vs as RadioPropsSchema,
|
|
4256
|
+
bs as RatingPropsSchema,
|
|
4257
|
+
ys as RecordBoardPropsSchema,
|
|
4258
|
+
xs as RekiComponentTypeSchema,
|
|
4259
|
+
zs as SelectPropsSchema,
|
|
4260
|
+
ks as SensitiveInputPropsSchema,
|
|
4261
|
+
ws as SidebarPropsSchema,
|
|
4262
|
+
Ss as StatusPropsSchema,
|
|
4263
|
+
$s as SurfacePropsSchema,
|
|
4264
|
+
Ps as SwitchPropsSchema,
|
|
4265
|
+
Ts as TableOfContentsPropsSchema,
|
|
4266
|
+
Zs as TablePropsSchema,
|
|
4267
|
+
Os as TabsPropsSchema,
|
|
4268
|
+
Ns as TagPropsSchema,
|
|
4269
|
+
Is as TextPropsSchema,
|
|
4270
|
+
Es as TimelinePropsSchema,
|
|
4271
|
+
Cs as ToastyPropsSchema,
|
|
4272
|
+
As as TooltipPropsSchema,
|
|
4273
|
+
Rs as UIElementBaseSchema,
|
|
4274
|
+
js as UITreeSchema,
|
|
3981
4275
|
ba as VisibilityConditionSchema,
|
|
3982
|
-
|
|
3983
|
-
|
|
4276
|
+
Us as validateElementProps,
|
|
4277
|
+
Fs as validateUITree
|
|
3984
4278
|
};
|
|
3985
4279
|
//# sourceMappingURL=schemas.js.map
|