@nullix/zod-mongoose-studio 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{B7ScFmDB.js → 5ZXm4f56.js} +1 -1
  3. package/.output/public/_nuxt/{DbqvVYbv.js → B2fcLSyW.js} +1 -1
  4. package/.output/public/_nuxt/{DKK0Mrrg.js → BBN7l5Hn.js} +1 -1
  5. package/.output/public/_nuxt/BBTTtb8r.js +41 -0
  6. package/.output/public/_nuxt/{C8xmwXC2.js → BDbISGvP.js} +1 -1
  7. package/.output/public/_nuxt/{DJa7_7Hz.js → BijI4RNx.js} +1 -1
  8. package/.output/public/_nuxt/{BlZ0x31M.js → Bp9qkJ9m.js} +1 -1
  9. package/.output/public/_nuxt/{BcYnCaqL.js → Bu3-sqCf.js} +1 -1
  10. package/.output/public/_nuxt/{C919AVYR.js → C-FtTvwz.js} +1 -1
  11. package/.output/public/_nuxt/C02JV0Aj.js +1 -0
  12. package/.output/public/_nuxt/{Bbi9UBvi.js → C1UkIsDc.js} +1 -1
  13. package/.output/public/_nuxt/{PXBhK7S_.js → CJT28r6J.js} +1 -1
  14. package/.output/public/_nuxt/{BC9tFNFa.js → CL7qtgl2.js} +3 -3
  15. package/.output/public/_nuxt/{B6lqezyA.js → CRMd2YH2.js} +3 -3
  16. package/.output/public/_nuxt/{YC-RLggm.js → CRkdQgFz.js} +1 -1
  17. package/.output/public/_nuxt/{iKW_mt0p.js → Cw1XFOz5.js} +1 -1
  18. package/.output/public/_nuxt/{d1NBz903.js → D5yWk6Ly.js} +1 -1
  19. package/.output/public/_nuxt/{iGzUozbF.js → DA9GjKpR.js} +1 -1
  20. package/.output/public/_nuxt/{JkiDMdYG.js → DaWAlZhp.js} +1 -1
  21. package/.output/public/_nuxt/{OVQ3C2Ge.js → DafLMUHo.js} +1 -1
  22. package/.output/public/_nuxt/{Bw82IGM8.js → Dyaldc-t.js} +1 -1
  23. package/.output/public/_nuxt/{CsQL5F-l.js → UU9fpRNQ.js} +1 -1
  24. package/.output/public/_nuxt/builds/latest.json +1 -1
  25. package/.output/public/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json +1 -0
  26. package/.output/public/_nuxt/entry.CDPplHzk.css +1 -0
  27. package/.output/public/_nuxt/error-404.hPtlUQpd.css +1 -0
  28. package/.output/public/_nuxt/error-500.E-PXUb6B.css +1 -0
  29. package/.output/public/_nuxt/{DbUZZZZu.js → kFZJW2-u.js} +2 -2
  30. package/.output/public/_nuxt/{B8gqXD2U.js → u3DlT5Mh.js} +1 -1
  31. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  32. package/.output/server/chunks/_/parse-request.mjs +29 -0
  33. package/.output/server/chunks/_/parse-request.mjs.map +1 -0
  34. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  35. package/.output/server/chunks/build/{error-404-KRkA0DPI.mjs → error-404-aQ5PiVuX.mjs} +6 -12
  36. package/.output/server/chunks/build/error-404-aQ5PiVuX.mjs.map +1 -0
  37. package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs +8 -0
  38. package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs.map +1 -0
  39. package/.output/server/chunks/build/{error-500-DIIFf55p.mjs → error-500-BY6ZAZZ2.mjs} +6 -12
  40. package/.output/server/chunks/build/error-500-BY6ZAZZ2.mjs.map +1 -0
  41. package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs +8 -0
  42. package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs.map +1 -0
  43. package/.output/server/chunks/build/index-57_mtIua.mjs +235 -0
  44. package/.output/server/chunks/build/index-57_mtIua.mjs.map +1 -0
  45. package/.output/server/chunks/build/{index-CB1N4gax.mjs → index-Qa-4KqCB.mjs} +7 -13
  46. package/.output/server/chunks/build/index-Qa-4KqCB.mjs.map +1 -0
  47. package/.output/server/chunks/build/server.mjs +3913 -3378
  48. package/.output/server/chunks/build/server.mjs.map +1 -1
  49. package/.output/server/chunks/build/styles.mjs +4 -4
  50. package/.output/server/chunks/nitro/nitro.mjs +562 -2188
  51. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  52. package/.output/server/chunks/routes/api/editor-types.get.mjs +0 -6
  53. package/.output/server/chunks/routes/api/editor-types.get.mjs.map +1 -1
  54. package/.output/server/chunks/routes/api/parse.post.mjs +1599 -7
  55. package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -1
  56. package/.output/server/chunks/routes/api/resolve.get.mjs +0 -6
  57. package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -1
  58. package/.output/server/chunks/routes/api/studio/run.post.mjs +41 -8
  59. package/.output/server/chunks/routes/api/studio/run.post.mjs.map +1 -1
  60. package/.output/server/chunks/routes/renderer.mjs +21 -44
  61. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  62. package/.output/server/index.mjs +1 -7
  63. package/.output/server/index.mjs.map +1 -1
  64. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/dist/compiler-core.cjs.prod.js +6801 -0
  65. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/package.json +58 -0
  66. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/dist/compiler-dom.cjs.prod.js +692 -0
  67. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/package.json +57 -0
  68. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/dist/reactivity.cjs.prod.js +1905 -0
  69. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/package.json +55 -0
  70. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/dist/runtime-core.cjs.prod.js +7006 -0
  71. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/package.json +52 -0
  72. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/dist/runtime-dom.cjs.prod.js +1867 -0
  73. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/package.json +60 -0
  74. package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/dist/shared.cjs.prod.js +655 -0
  75. package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/package.json +47 -0
  76. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/array-set.js +121 -0
  77. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64-vlq.js +140 -0
  78. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64.js +67 -0
  79. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/binary-search.js +111 -0
  80. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/mapping-list.js +79 -0
  81. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/quick-sort.js +141 -0
  82. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-consumer.js +1236 -0
  83. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-generator.js +446 -0
  84. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-node.js +420 -0
  85. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/util.js +594 -0
  86. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/package.json +71 -0
  87. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/source-map.js +8 -0
  88. package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.js +80 -0
  89. package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.prod.js +66 -0
  90. package/.output/server/node_modules/.nitro/vue@3.5.43/index.js +7 -0
  91. package/.output/server/node_modules/.nitro/vue@3.5.43/index.mjs +1 -0
  92. package/.output/server/node_modules/.nitro/vue@3.5.43/package.json +112 -0
  93. package/.output/server/node_modules/@babel/parser/lib/index.js +55 -21
  94. package/.output/server/node_modules/@babel/parser/package.json +7 -7
  95. package/.output/server/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  96. package/.output/server/node_modules/@esbuild/linux-x64/package.json +1 -1
  97. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +19 -16
  98. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +3 -4
  99. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +16 -16
  100. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +1 -2
  101. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +11 -14
  102. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +13 -16
  103. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +1 -2
  104. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +1 -3
  105. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +2 -5
  106. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +1 -3
  107. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +4 -5
  108. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +1 -3
  109. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +9 -11
  110. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +1 -2
  111. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +1 -3
  112. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +1 -3
  113. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +12 -18
  114. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +3 -4
  115. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +5 -7
  116. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +1 -8
  117. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +11 -12
  118. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +5 -7
  119. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +1 -3
  120. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +1 -3
  121. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +7 -7
  122. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +2 -4
  123. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +5 -9
  124. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +3 -5
  125. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +2 -4
  126. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +7 -8
  127. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +1 -2
  128. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +1 -3
  129. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +3 -4
  130. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +1 -2
  131. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +1 -2
  132. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +10 -15
  133. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +1 -3
  134. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +3 -5
  135. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +1 -3
  136. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +1 -3
  137. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +1 -3
  138. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +1 -2
  139. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +1 -3
  140. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +21 -13
  141. package/.output/server/node_modules/@iconify/utils/lib/index.js +1 -2
  142. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +3 -3
  143. package/.output/server/node_modules/@iconify/utils/lib/loader/hmr-utils.js +33 -0
  144. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +22 -22
  145. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +7 -22
  146. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +60 -16
  147. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +1 -2
  148. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +1 -2
  149. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +1 -2
  150. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +9 -11
  151. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +1 -2
  152. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +1 -3
  153. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +1 -2
  154. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +1 -2
  155. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +1 -2
  156. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +3 -5
  157. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +5 -4
  158. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +1 -2
  159. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +1 -2
  160. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +1 -2
  161. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +2 -3
  162. package/.output/server/node_modules/@iconify/utils/package.json +15 -13
  163. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +8 -1
  164. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  165. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +34 -13
  166. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -6
  167. package/.output/server/node_modules/devalue/index.js +15 -2
  168. package/.output/server/node_modules/devalue/package.json +5 -3
  169. package/.output/server/node_modules/devalue/src/base64.js +46 -96
  170. package/.output/server/node_modules/devalue/src/constants.js +5 -0
  171. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  172. package/.output/server/node_modules/devalue/src/parse.js +76 -62
  173. package/.output/server/node_modules/devalue/src/stringify.js +164 -81
  174. package/.output/server/node_modules/devalue/src/uneval.js +312 -104
  175. package/.output/server/node_modules/devalue/src/utils.js +61 -19
  176. package/.output/server/node_modules/esbuild/lib/main.js +12 -8
  177. package/.output/server/node_modules/esbuild/package.json +50 -50
  178. package/.output/server/node_modules/hookable/dist/index.mjs +2 -11
  179. package/.output/server/node_modules/hookable/package.json +23 -22
  180. package/.output/server/node_modules/ip-address/dist/ipv4.js +7 -0
  181. package/.output/server/node_modules/ip-address/package.json +1 -1
  182. package/.output/server/node_modules/zod/package.json +20 -8
  183. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
  184. package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
  185. package/.output/server/node_modules/zod/v4/classic/errors.js +44 -35
  186. package/.output/server/node_modules/zod/v4/classic/external.js +5 -8
  187. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +375 -78
  188. package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
  189. package/.output/server/node_modules/zod/v4/classic/index.js +2 -2
  190. package/.output/server/node_modules/zod/v4/classic/iso.js +2 -17
  191. package/.output/server/node_modules/zod/v4/classic/package.json +2 -1
  192. package/.output/server/node_modules/zod/v4/classic/parse.js +1 -0
  193. package/.output/server/node_modules/zod/v4/classic/schemas.js +601 -223
  194. package/.output/server/node_modules/zod/v4/core/api.js +51 -26
  195. package/.output/server/node_modules/zod/v4/core/checks.js +68 -127
  196. package/.output/server/node_modules/zod/v4/core/compile.js +1858 -0
  197. package/.output/server/node_modules/zod/v4/core/core.js +87 -22
  198. package/.output/server/node_modules/zod/v4/core/doc.js +12 -9
  199. package/.output/server/node_modules/zod/v4/core/errors.js +127 -42
  200. package/.output/server/node_modules/zod/v4/core/index.js +3 -0
  201. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +6 -2
  202. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +413 -175
  203. package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
  204. package/.output/server/node_modules/zod/v4/core/package.json +2 -1
  205. package/.output/server/node_modules/zod/v4/core/parse.js +130 -48
  206. package/.output/server/node_modules/zod/v4/core/regexes.js +39 -16
  207. package/.output/server/node_modules/zod/v4/core/registries.js +2 -2
  208. package/.output/server/node_modules/zod/v4/core/schemas.js +895 -382
  209. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +253 -39
  210. package/.output/server/node_modules/zod/v4/core/util.js +383 -175
  211. package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
  212. package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
  213. package/.output/server/node_modules/zod/v4/index.js +3 -2
  214. package/.output/server/node_modules/zod/v4/locales/ar.js +5 -0
  215. package/.output/server/node_modules/zod/v4/locales/az.js +5 -0
  216. package/.output/server/node_modules/zod/v4/locales/be.js +12 -0
  217. package/.output/server/node_modules/zod/v4/locales/bg.js +5 -0
  218. package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
  219. package/.output/server/node_modules/zod/v4/locales/ca.js +5 -0
  220. package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
  221. package/.output/server/node_modules/zod/v4/locales/cs.js +5 -0
  222. package/.output/server/node_modules/zod/v4/locales/da.js +7 -2
  223. package/.output/server/node_modules/zod/v4/locales/de.js +5 -0
  224. package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
  225. package/.output/server/node_modules/zod/v4/locales/en.js +20 -4
  226. package/.output/server/node_modules/zod/v4/locales/eo.js +5 -0
  227. package/.output/server/node_modules/zod/v4/locales/es.js +4 -0
  228. package/.output/server/node_modules/zod/v4/locales/fa.js +5 -0
  229. package/.output/server/node_modules/zod/v4/locales/fi.js +5 -0
  230. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +5 -0
  231. package/.output/server/node_modules/zod/v4/locales/fr.js +38 -17
  232. package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
  233. package/.output/server/node_modules/zod/v4/locales/he.js +7 -0
  234. package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
  235. package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
  236. package/.output/server/node_modules/zod/v4/locales/hu.js +5 -0
  237. package/.output/server/node_modules/zod/v4/locales/hy.js +11 -0
  238. package/.output/server/node_modules/zod/v4/locales/id.js +5 -0
  239. package/.output/server/node_modules/zod/v4/locales/index.js +14 -0
  240. package/.output/server/node_modules/zod/v4/locales/is.js +5 -0
  241. package/.output/server/node_modules/zod/v4/locales/it.js +6 -1
  242. package/.output/server/node_modules/zod/v4/locales/ja.js +5 -0
  243. package/.output/server/node_modules/zod/v4/locales/ka.js +13 -8
  244. package/.output/server/node_modules/zod/v4/locales/km.js +5 -0
  245. package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
  246. package/.output/server/node_modules/zod/v4/locales/ko.js +5 -0
  247. package/.output/server/node_modules/zod/v4/locales/lt.js +4 -0
  248. package/.output/server/node_modules/zod/v4/locales/mk.js +5 -0
  249. package/.output/server/node_modules/zod/v4/locales/ms.js +5 -0
  250. package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
  251. package/.output/server/node_modules/zod/v4/locales/nl.js +5 -0
  252. package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
  253. package/.output/server/node_modules/zod/v4/locales/no.js +7 -2
  254. package/.output/server/node_modules/zod/v4/locales/ota.js +5 -0
  255. package/.output/server/node_modules/zod/v4/locales/package.json +2 -1
  256. package/.output/server/node_modules/zod/v4/locales/pl.js +5 -0
  257. package/.output/server/node_modules/zod/v4/locales/ps.js +5 -0
  258. package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
  259. package/.output/server/node_modules/zod/v4/locales/pt.js +89 -55
  260. package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
  261. package/.output/server/node_modules/zod/v4/locales/ru.js +12 -0
  262. package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
  263. package/.output/server/node_modules/zod/v4/locales/sl.js +5 -0
  264. package/.output/server/node_modules/zod/v4/locales/sv.js +7 -2
  265. package/.output/server/node_modules/zod/v4/locales/ta.js +5 -0
  266. package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
  267. package/.output/server/node_modules/zod/v4/locales/th.js +5 -0
  268. package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
  269. package/.output/server/node_modules/zod/v4/locales/tr.js +5 -0
  270. package/.output/server/node_modules/zod/v4/locales/uk.js +5 -0
  271. package/.output/server/node_modules/zod/v4/locales/ur.js +5 -0
  272. package/.output/server/node_modules/zod/v4/locales/uz.js +4 -0
  273. package/.output/server/node_modules/zod/v4/locales/vi.js +5 -0
  274. package/.output/server/node_modules/zod/v4/locales/yo.js +5 -0
  275. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +5 -0
  276. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +5 -0
  277. package/.output/server/node_modules/zod/v4/package.json +2 -1
  278. package/.output/server/package.json +18 -18
  279. package/README.md +9 -0
  280. package/package.json +8 -8
  281. package/.output/public/_nuxt/Czp4_2o-.js +0 -33
  282. package/.output/public/_nuxt/builds/meta/46174b5e-cab6-4a73-95f8-66a1c9b1be2b.json +0 -1
  283. package/.output/public/_nuxt/entry.DaqrxXuH.css +0 -1
  284. package/.output/public/_nuxt/error-404.CTSXlFYa.css +0 -1
  285. package/.output/public/_nuxt/error-500.DqEfQnVZ.css +0 -1
  286. package/.output/server/chunks/build/error-404-KRkA0DPI.mjs.map +0 -1
  287. package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs +0 -8
  288. package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs.map +0 -1
  289. package/.output/server/chunks/build/error-500-DIIFf55p.mjs.map +0 -1
  290. package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs +0 -8
  291. package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs.map +0 -1
  292. package/.output/server/chunks/build/index-CB1N4gax.mjs.map +0 -1
  293. /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/dist/compiler-core.cjs.prod.js +0 -0
  294. /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/package.json +0 -0
  295. /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/dist/compiler-dom.cjs.prod.js +0 -0
  296. /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/package.json +0 -0
  297. /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/dist/reactivity.cjs.prod.js +0 -0
  298. /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/package.json +0 -0
  299. /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/dist/runtime-core.cjs.prod.js +0 -0
  300. /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/package.json +0 -0
  301. /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/dist/runtime-dom.cjs.prod.js +0 -0
  302. /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/package.json +0 -0
  303. /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/dist/shared.cjs.prod.js +0 -0
  304. /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/package.json +0 -0
  305. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/array-set.js +0 -0
  306. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64-vlq.js +0 -0
  307. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64.js +0 -0
  308. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/binary-search.js +0 -0
  309. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/mapping-list.js +0 -0
  310. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/quick-sort.js +0 -0
  311. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-consumer.js +0 -0
  312. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-generator.js +0 -0
  313. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-node.js +0 -0
  314. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/util.js +0 -0
  315. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/package.json +0 -0
  316. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/source-map.js +0 -0
  317. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.js +0 -0
  318. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.prod.js +0 -0
  319. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.js +0 -0
  320. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.mjs +0 -0
  321. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/package.json +0 -0
  322. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.43}/server-renderer/index.mjs +0 -0
@@ -1,103 +1,137 @@
1
1
  import * as util from "../core/util.js";
2
2
  const error = () => {
3
3
  const Sizable = {
4
- string: { unit: "caracteres", verb: "ter" },
5
- file: { unit: "bytes", verb: "ter" },
6
- array: { unit: "itens", verb: "ter" },
7
- set: { unit: "itens", verb: "ter" },
4
+ string: { unit: "caracteres" },
5
+ file: { unit: "bytes" },
6
+ array: { unit: "elementos" },
7
+ set: { unit: "elementos" },
8
+ map: { unit: "entradas" },
8
9
  };
9
10
  function getSizing(origin) {
10
11
  return Sizable[origin] ?? null;
11
12
  }
12
13
  const FormatDictionary = {
13
- regex: "padrão",
14
- email: "endereço de e-mail",
15
- url: "URL",
16
- emoji: "emoji",
17
- uuid: "UUID",
18
- uuidv4: "UUIDv4",
19
- uuidv6: "UUIDv6",
20
- nanoid: "nanoid",
21
- guid: "GUID",
22
- cuid: "cuid",
23
- cuid2: "cuid2",
24
- ulid: "ULID",
25
- xid: "XID",
26
- ksuid: "KSUID",
27
- datetime: "data e hora ISO",
28
- date: "data ISO",
29
- time: "hora ISO",
30
- duration: "duração ISO",
31
- ipv4: "endereço IPv4",
32
- ipv6: "endereço IPv6",
33
- cidrv4: "faixa de IPv4",
34
- cidrv6: "faixa de IPv6",
35
- base64: "texto codificado em base64",
36
- base64url: "URL codificada em base64",
37
- json_string: "texto JSON",
38
- e164: "número E.164",
39
- jwt: "JWT",
40
- template_literal: "entrada",
14
+ regex: "a entrada",
15
+ email: "o endereço de e-mail",
16
+ url: "o URL",
17
+ emoji: "o emoji",
18
+ uuid: "o UUID",
19
+ uuidv4: "o UUIDv4",
20
+ uuidv6: "o UUIDv6",
21
+ nanoid: "o nanoid",
22
+ guid: "o GUID",
23
+ cuid: "o cuid",
24
+ cuid2: "o cuid2",
25
+ ulid: "o ULID",
26
+ xid: "o XID",
27
+ ksuid: "o KSUID",
28
+ datetime: "a data e hora ISO",
29
+ date: "a data ISO",
30
+ time: "a hora ISO",
31
+ duration: "a duração ISO",
32
+ ipv4: "o endereço IPv4",
33
+ ipv6: "o endereço IPv6",
34
+ mac: "o endereço MAC",
35
+ cidrv4: "o intervalo de endereços IPv4",
36
+ cidrv6: "o intervalo de endereços IPv6",
37
+ base64: "o texto codificado em base64",
38
+ base64url: "o texto codificado em base64url",
39
+ json_string: "o texto JSON",
40
+ e164: "o número E.164",
41
+ credit_card: "o número de cartão de crédito",
42
+ currency_code: "o código de moeda",
43
+ iban: "o IBAN",
44
+ jwt: "o JWT",
45
+ template_literal: "a entrada",
46
+ };
47
+ const Gender = {
48
+ masculine: { definite: "o", indefinite: "um" },
49
+ feminine: { definite: "a", indefinite: "uma" },
41
50
  };
42
51
  const TypeDictionary = {
43
- nan: "NaN",
44
- number: "número",
45
- null: "nulo",
52
+ string: { name: "texto", articles: Gender.masculine },
53
+ number: { name: "número", articles: Gender.masculine },
54
+ int: { name: "número inteiro", articles: Gender.masculine },
55
+ boolean: { name: "valor booleano", articles: Gender.masculine },
56
+ bigint: { name: "número bigint", articles: Gender.masculine },
57
+ symbol: { name: "símbolo", articles: Gender.masculine },
58
+ undefined: { name: 'valor "undefined"', articles: Gender.masculine },
59
+ null: { name: 'valor "nulo"', articles: Gender.masculine },
60
+ never: { name: 'valor "never"', articles: Gender.masculine },
61
+ void: { name: 'valor "void"', articles: Gender.masculine },
62
+ date: { name: "data", articles: Gender.feminine },
63
+ array: { name: "vetor", articles: Gender.masculine },
64
+ object: { name: "objeto", articles: Gender.masculine },
65
+ tuple: { name: "tuplo", articles: Gender.masculine },
66
+ record: { name: "registo", articles: Gender.masculine },
67
+ map: { name: "mapa", articles: Gender.masculine },
68
+ set: { name: "conjunto", articles: Gender.masculine },
69
+ file: { name: "ficheiro", articles: Gender.masculine },
70
+ nonoptional: { name: "valor não opcional", articles: Gender.masculine },
71
+ nan: { name: 'valor "NaN"', articles: Gender.masculine }, // Compatibility: "nan" -> "NaN" for display
72
+ function: { name: "função", articles: Gender.feminine },
46
73
  };
74
+ function translateOriginWithArticle(type, articleType) {
75
+ const translatedValue = TypeDictionary[type] ?? { name: `valor "${type}"`, articles: Gender.masculine };
76
+ return `${translatedValue.articles[articleType]} ${translatedValue.name}`;
77
+ }
47
78
  return (issue) => {
48
79
  switch (issue.code) {
49
80
  case "invalid_type": {
50
- const expected = TypeDictionary[issue.expected] ?? issue.expected;
81
+ const expected = translateOriginWithArticle(issue.expected, "indefinite");
51
82
  const receivedType = util.parsedType(issue.input);
52
- const received = TypeDictionary[receivedType] ?? receivedType;
53
- if (/^[A-Z]/.test(issue.expected)) {
54
- return `Tipo inválido: esperado instanceof ${issue.expected}, recebido ${received}`;
55
- }
56
- return `Tipo inválido: esperado ${expected}, recebido ${received}`;
83
+ const received = translateOriginWithArticle(receivedType, "indefinite");
84
+ return `Entrada inválida: esperava ${expected}, recebeu ${received}`;
57
85
  }
58
86
  case "invalid_value":
59
87
  if (issue.values.length === 1)
60
- return `Entrada inválida: esperado ${util.stringifyPrimitive(issue.values[0])}`;
61
- return `Opção inválida: esperada uma das ${util.joinValues(issue.values, "|")}`;
88
+ return `Entrada inválida: esperava ${util.stringifyPrimitive(issue.values[0])}`;
89
+ return `Opção inválida: esperava uma das seguintes opções: ${util.joinValues(issue.values, "|")}`;
62
90
  case "too_big": {
63
91
  const adj = issue.inclusive ? "<=" : "<";
64
92
  const sizing = getSizing(issue.origin);
65
93
  if (sizing)
66
- return `Muito grande: esperado que ${issue.origin ?? "valor"} tivesse ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elementos"}`;
67
- return `Muito grande: esperado que ${issue.origin ?? "valor"} fosse ${adj}${issue.maximum.toString()}`;
94
+ return `Demasiado grande: esperava que ${translateOriginWithArticle(issue.origin, "definite")} tivesse ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "elementos"}`;
95
+ return `Demasiado grande: esperava que ${translateOriginWithArticle(issue.origin, "definite")} fosse ${adj} ${issue.maximum.toString()}`;
68
96
  }
69
97
  case "too_small": {
70
98
  const adj = issue.inclusive ? ">=" : ">";
71
99
  const sizing = getSizing(issue.origin);
72
100
  if (sizing) {
73
- return `Muito pequeno: esperado que ${issue.origin} tivesse ${adj}${issue.minimum.toString()} ${sizing.unit}`;
101
+ return `Demasiado pequeno: esperava que ${translateOriginWithArticle(issue.origin, "definite")} tivesse ${adj} ${issue.minimum.toString()} ${sizing.unit ?? "elementos"}`;
74
102
  }
75
- return `Muito pequeno: esperado que ${issue.origin} fosse ${adj}${issue.minimum.toString()}`;
103
+ return `Demasiado pequeno: esperava que ${translateOriginWithArticle(issue.origin, "definite")} fosse ${adj} ${issue.minimum.toString()}`;
76
104
  }
77
105
  case "invalid_format": {
78
106
  const _issue = issue;
79
107
  if (_issue.format === "starts_with")
80
- return `Texto inválido: deve começar com "${_issue.prefix}"`;
108
+ return `Texto inválido: deve começar por "${_issue.prefix}"`;
81
109
  if (_issue.format === "ends_with")
82
- return `Texto inválido: deve terminar com "${_issue.suffix}"`;
110
+ return `Texto inválido: deve terminar em "${_issue.suffix}"`;
83
111
  if (_issue.format === "includes")
84
112
  return `Texto inválido: deve incluir "${_issue.includes}"`;
85
113
  if (_issue.format === "regex")
86
114
  return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`;
87
- return `${FormatDictionary[_issue.format] ?? issue.format} inválido`;
115
+ return `Formato d${FormatDictionary[_issue.format] ?? issue.format} inválido`;
88
116
  }
89
117
  case "not_multiple_of":
90
118
  return `Número inválido: deve ser múltiplo de ${issue.divisor}`;
91
- case "unrecognized_keys":
92
- return `Chave${issue.keys.length > 1 ? "s" : ""} desconhecida${issue.keys.length > 1 ? "s" : ""}: ${util.joinValues(issue.keys, ", ")}`;
119
+ case "unrecognized_keys": {
120
+ const plural = issue.keys.length > 1 ? "s" : "";
121
+ return `Chave${plural} inválida${plural}: ${util.joinValues(issue.keys, ", ")}`;
122
+ }
93
123
  case "invalid_key":
94
- return `Chave inválida em ${issue.origin}`;
124
+ return `Entrada inválida n${translateOriginWithArticle(issue.origin, "definite")}`;
95
125
  case "invalid_union":
126
+ if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
127
+ const opts = issue.options.map((o) => `'${o}'`).join(" | ");
128
+ return `Valor de discriminação inválido. Esperava ${opts}`;
129
+ }
96
130
  return "Entrada inválida";
97
131
  case "invalid_element":
98
- return `Valor inválido em ${issue.origin}`;
132
+ return `Entrada inválida n${translateOriginWithArticle(issue.origin, "definite")}`;
99
133
  default:
100
- return `Campo inválido`;
134
+ return `Entrada inválida`;
101
135
  }
102
136
  };
103
137
  };
@@ -0,0 +1,122 @@
1
+ import * as util from "../core/util.js";
2
+ const error = () => {
3
+ const Sizable = {
4
+ string: { unit: "caractere", verb: "să aibă" },
5
+ file: { unit: "octeți", verb: "să aibă" },
6
+ array: { unit: "elemente", verb: "să aibă" },
7
+ set: { unit: "elemente", verb: "să aibă" },
8
+ map: { unit: "intrări", verb: "să aibă" },
9
+ };
10
+ function getSizing(origin) {
11
+ return Sizable[origin] ?? null;
12
+ }
13
+ const FormatDictionary = {
14
+ regex: "intrare",
15
+ email: "adresă de email",
16
+ url: "URL",
17
+ emoji: "emoji",
18
+ uuid: "UUID",
19
+ uuidv4: "UUIDv4",
20
+ uuidv6: "UUIDv6",
21
+ nanoid: "nanoid",
22
+ guid: "GUID",
23
+ cuid: "cuid",
24
+ cuid2: "cuid2",
25
+ ulid: "ULID",
26
+ xid: "XID",
27
+ ksuid: "KSUID",
28
+ datetime: "dată și oră ISO",
29
+ date: "dată ISO",
30
+ time: "oră ISO",
31
+ duration: "durată ISO",
32
+ ipv4: "adresă IPv4",
33
+ ipv6: "adresă IPv6",
34
+ mac: "adresă MAC",
35
+ cidrv4: "interval IPv4",
36
+ cidrv6: "interval IPv6",
37
+ base64: "șir codat base64",
38
+ base64url: "șir codat base64url",
39
+ json_string: "șir JSON",
40
+ e164: "număr E.164",
41
+ credit_card: "număr de card de credit",
42
+ currency_code: "cod valutar",
43
+ iban: "IBAN",
44
+ jwt: "JWT",
45
+ template_literal: "intrare",
46
+ };
47
+ const TypeDictionary = {
48
+ nan: "NaN",
49
+ string: "șir",
50
+ number: "număr",
51
+ boolean: "boolean",
52
+ function: "funcție",
53
+ array: "matrice",
54
+ object: "obiect",
55
+ undefined: "nedefinit",
56
+ symbol: "simbol",
57
+ bigint: "număr mare",
58
+ void: "void",
59
+ never: "never",
60
+ map: "hartă",
61
+ set: "set",
62
+ };
63
+ return (issue) => {
64
+ switch (issue.code) {
65
+ case "invalid_type": {
66
+ const expected = TypeDictionary[issue.expected] ?? issue.expected;
67
+ const receivedType = util.parsedType(issue.input);
68
+ const received = TypeDictionary[receivedType] ?? receivedType;
69
+ return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
70
+ }
71
+ case "invalid_value":
72
+ if (issue.values.length === 1)
73
+ return `Intrare invalidă: așteptat ${util.stringifyPrimitive(issue.values[0])}`;
74
+ return `Opțiune invalidă: așteptat una dintre ${util.joinValues(issue.values, "|")}`;
75
+ case "too_big": {
76
+ const adj = issue.inclusive ? "<=" : "<";
77
+ const sizing = getSizing(issue.origin);
78
+ if (sizing)
79
+ return `Prea mare: așteptat ca ${issue.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elemente"}`;
80
+ return `Prea mare: așteptat ca ${issue.origin ?? "valoarea"} să fie ${adj}${issue.maximum.toString()}`;
81
+ }
82
+ case "too_small": {
83
+ const adj = issue.inclusive ? ">=" : ">";
84
+ const sizing = getSizing(issue.origin);
85
+ if (sizing) {
86
+ return `Prea mic: așteptat ca ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
87
+ }
88
+ return `Prea mic: așteptat ca ${issue.origin} să fie ${adj}${issue.minimum.toString()}`;
89
+ }
90
+ case "invalid_format": {
91
+ const _issue = issue;
92
+ if (_issue.format === "starts_with") {
93
+ return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
94
+ }
95
+ if (_issue.format === "ends_with")
96
+ return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
97
+ if (_issue.format === "includes")
98
+ return `Șir invalid: trebuie să includă "${_issue.includes}"`;
99
+ if (_issue.format === "regex")
100
+ return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
101
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue.format}`;
102
+ }
103
+ case "not_multiple_of":
104
+ return `Număr invalid: trebuie să fie multiplu de ${issue.divisor}`;
105
+ case "unrecognized_keys":
106
+ return `Chei nerecunoscute: ${util.joinValues(issue.keys, ", ")}`;
107
+ case "invalid_key":
108
+ return `Cheie invalidă în ${issue.origin}`;
109
+ case "invalid_union":
110
+ return "Intrare invalidă";
111
+ case "invalid_element":
112
+ return `Valoare invalidă în ${issue.origin}`;
113
+ default:
114
+ return `Intrare invalidă`;
115
+ }
116
+ };
117
+ };
118
+ export default function () {
119
+ return {
120
+ localeError: error(),
121
+ };
122
+ }
@@ -48,6 +48,14 @@ const error = () => {
48
48
  },
49
49
  verb: "иметь",
50
50
  },
51
+ map: {
52
+ unit: {
53
+ one: "элемент",
54
+ few: "элемента",
55
+ many: "элементов",
56
+ },
57
+ verb: "иметь",
58
+ },
51
59
  };
52
60
  function getSizing(origin) {
53
61
  return Sizable[origin] ?? null;
@@ -73,12 +81,16 @@ const error = () => {
73
81
  duration: "ISO длительность",
74
82
  ipv4: "IPv4 адрес",
75
83
  ipv6: "IPv6 адрес",
84
+ mac: "MAC адрес",
76
85
  cidrv4: "IPv4 диапазон",
77
86
  cidrv6: "IPv6 диапазон",
78
87
  base64: "строка в формате base64",
79
88
  base64url: "строка в формате base64url",
80
89
  json_string: "JSON строка",
81
90
  e164: "номер E.164",
91
+ credit_card: "номер кредитной карты",
92
+ currency_code: "код валюты",
93
+ iban: "IBAN",
82
94
  jwt: "JWT",
83
95
  template_literal: "ввод",
84
96
  };
@@ -0,0 +1,116 @@
1
+ import * as util from "../core/util.js";
2
+ const error = () => {
3
+ const Sizable = {
4
+ string: { unit: "znakov", verb: "mať" },
5
+ file: { unit: "bajtov", verb: "mať" },
6
+ array: { unit: "prvkov", verb: "mať" },
7
+ set: { unit: "prvkov", verb: "mať" },
8
+ map: { unit: "položiek", verb: "mať" },
9
+ };
10
+ function getSizing(origin) {
11
+ return Sizable[origin] ?? null;
12
+ }
13
+ const FormatDictionary = {
14
+ regex: "regulárny výraz",
15
+ email: "e-mailová adresa",
16
+ url: "URL",
17
+ emoji: "emoji",
18
+ uuid: "UUID",
19
+ uuidv4: "UUIDv4",
20
+ uuidv6: "UUIDv6",
21
+ nanoid: "nanoid",
22
+ guid: "GUID",
23
+ cuid: "cuid",
24
+ cuid2: "cuid2",
25
+ ulid: "ULID",
26
+ xid: "XID",
27
+ ksuid: "KSUID",
28
+ datetime: "dátum a čas vo formáte ISO",
29
+ date: "dátum vo formáte ISO",
30
+ time: "čas vo formáte ISO",
31
+ duration: "doba trvania ISO",
32
+ ipv4: "IPv4 adresa",
33
+ ipv6: "IPv6 adresa",
34
+ mac: "MAC adresa",
35
+ cidrv4: "rozsah IPv4",
36
+ cidrv6: "rozsah IPv6",
37
+ base64: "reťazec zakódovaný vo formáte base64",
38
+ base64url: "reťazec zakódovaný vo formáte base64url",
39
+ json_string: "reťazec vo formáte JSON",
40
+ e164: "číslo E.164",
41
+ credit_card: "číslo kreditnej karty",
42
+ currency_code: "kód meny",
43
+ iban: "IBAN",
44
+ jwt: "JWT",
45
+ template_literal: "vstup",
46
+ };
47
+ const TypeDictionary = {
48
+ nan: "NaN",
49
+ number: "číslo",
50
+ string: "reťazec",
51
+ function: "funkcia",
52
+ array: "pole",
53
+ };
54
+ return (issue) => {
55
+ switch (issue.code) {
56
+ case "invalid_type": {
57
+ const expected = TypeDictionary[issue.expected] ?? issue.expected;
58
+ const receivedType = util.parsedType(issue.input);
59
+ const received = TypeDictionary[receivedType] ?? receivedType;
60
+ if (/^[A-Z]/.test(issue.expected)) {
61
+ return `Neplatný vstup: očakávané instanceof ${issue.expected}, obdržané ${received}`;
62
+ }
63
+ return `Neplatný vstup: očakávané ${expected}, obdržané ${received}`;
64
+ }
65
+ case "invalid_value":
66
+ if (issue.values.length === 1)
67
+ return `Neplatný vstup: očakávané ${util.stringifyPrimitive(issue.values[0])}`;
68
+ return `Neplatný vstup: očakávaná jedna z hodnôt ${util.joinValues(issue.values, "|")}`;
69
+ case "too_big": {
70
+ const adj = issue.inclusive ? "<=" : "<";
71
+ const sizing = getSizing(issue.origin);
72
+ if (sizing) {
73
+ return `Hodnota je príliš veľká: ${issue.origin ?? "hodnota"} musí mať ${adj}${issue.maximum.toString()} ${sizing.unit ?? "prvkov"}`;
74
+ }
75
+ return `Hodnota je príliš veľká: ${issue.origin ?? "hodnota"} musí byť ${adj}${issue.maximum.toString()}`;
76
+ }
77
+ case "too_small": {
78
+ const adj = issue.inclusive ? ">=" : ">";
79
+ const sizing = getSizing(issue.origin);
80
+ if (sizing) {
81
+ return `Hodnota je príliš malá: ${issue.origin ?? "hodnota"} musí mať ${adj}${issue.minimum.toString()} ${sizing.unit ?? "prvkov"}`;
82
+ }
83
+ return `Hodnota je príliš malá: ${issue.origin ?? "hodnota"} musí byť ${adj}${issue.minimum.toString()}`;
84
+ }
85
+ case "invalid_format": {
86
+ const _issue = issue;
87
+ if (_issue.format === "starts_with")
88
+ return `Neplatný reťazec: musí začínať na "${_issue.prefix}"`;
89
+ if (_issue.format === "ends_with")
90
+ return `Neplatný reťazec: musí končiť na "${_issue.suffix}"`;
91
+ if (_issue.format === "includes")
92
+ return `Neplatný reťazec: musí obsahovať "${_issue.includes}"`;
93
+ if (_issue.format === "regex")
94
+ return `Neplatný reťazec: musí zodpovedať vzoru ${_issue.pattern}`;
95
+ return `Neplatný formát ${FormatDictionary[_issue.format] ?? issue.format}`;
96
+ }
97
+ case "not_multiple_of":
98
+ return `Neplatné číslo: musí byť násobkom ${issue.divisor}`;
99
+ case "unrecognized_keys":
100
+ return `Neznáme klúče: ${util.joinValues(issue.keys, ", ")}`;
101
+ case "invalid_key":
102
+ return `Neplatný klúč v ${issue.origin}`;
103
+ case "invalid_union":
104
+ return "Neplatný vstup";
105
+ case "invalid_element":
106
+ return `Neplatná hodnota v ${issue.origin}`;
107
+ default:
108
+ return `Neplatný vstup`;
109
+ }
110
+ };
111
+ };
112
+ export default function () {
113
+ return {
114
+ localeError: error(),
115
+ };
116
+ }
@@ -5,6 +5,7 @@ const error = () => {
5
5
  file: { unit: "bajtov", verb: "imeti" },
6
6
  array: { unit: "elementov", verb: "imeti" },
7
7
  set: { unit: "elementov", verb: "imeti" },
8
+ map: { unit: "elementov", verb: "imeti" },
8
9
  };
9
10
  function getSizing(origin) {
10
11
  return Sizable[origin] ?? null;
@@ -30,12 +31,16 @@ const error = () => {
30
31
  duration: "ISO trajanje",
31
32
  ipv4: "IPv4 naslov",
32
33
  ipv6: "IPv6 naslov",
34
+ mac: "MAC naslov",
33
35
  cidrv4: "obseg IPv4",
34
36
  cidrv6: "obseg IPv6",
35
37
  base64: "base64 kodiran niz",
36
38
  base64url: "base64url kodiran niz",
37
39
  json_string: "JSON niz",
38
40
  e164: "E.164 številka",
41
+ credit_card: "številka kreditne kartice",
42
+ currency_code: "koda valute",
43
+ iban: "IBAN",
39
44
  jwt: "JWT",
40
45
  template_literal: "vnos",
41
46
  };
@@ -5,6 +5,7 @@ const error = () => {
5
5
  file: { unit: "bytes", verb: "att ha" },
6
6
  array: { unit: "objekt", verb: "att innehålla" },
7
7
  set: { unit: "objekt", verb: "att innehålla" },
8
+ map: { unit: "objekt", verb: "att innehålla" },
8
9
  };
9
10
  function getSizing(origin) {
10
11
  return Sizable[origin] ?? null;
@@ -28,14 +29,18 @@ const error = () => {
28
29
  date: "ISO-datum",
29
30
  time: "ISO-tid",
30
31
  duration: "ISO-varaktighet",
31
- ipv4: "IPv4-intervall",
32
- ipv6: "IPv6-intervall",
32
+ ipv4: "IPv4-adress",
33
+ ipv6: "IPv6-adress",
34
+ mac: "MAC-adress",
33
35
  cidrv4: "IPv4-spektrum",
34
36
  cidrv6: "IPv6-spektrum",
35
37
  base64: "base64-kodad sträng",
36
38
  base64url: "base64url-kodad sträng",
37
39
  json_string: "JSON-sträng",
38
40
  e164: "E.164-nummer",
41
+ credit_card: "kreditkortsnummer",
42
+ currency_code: "valutakod",
43
+ iban: "IBAN",
39
44
  jwt: "JWT",
40
45
  template_literal: "mall-literal",
41
46
  };
@@ -5,6 +5,7 @@ const error = () => {
5
5
  file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
6
6
  array: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" },
7
7
  set: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" },
8
+ map: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" },
8
9
  };
9
10
  function getSizing(origin) {
10
11
  return Sizable[origin] ?? null;
@@ -30,12 +31,16 @@ const error = () => {
30
31
  duration: "ISO கால அளவு",
31
32
  ipv4: "IPv4 முகவரி",
32
33
  ipv6: "IPv6 முகவரி",
34
+ mac: "MAC முகவரி",
33
35
  cidrv4: "IPv4 வரம்பு",
34
36
  cidrv6: "IPv6 வரம்பு",
35
37
  base64: "base64-encoded சரம்",
36
38
  base64url: "base64url-encoded சரம்",
37
39
  json_string: "JSON சரம்",
38
40
  e164: "E.164 எண்",
41
+ credit_card: "கடன் அட்டை எண்",
42
+ currency_code: "நாணயக் குறியீடு",
43
+ iban: "IBAN",
39
44
  jwt: "JWT",
40
45
  template_literal: "input",
41
46
  };
@@ -0,0 +1,117 @@
1
+ import * as util from "../core/util.js";
2
+ const error = () => {
3
+ // singular units after numerals in Tajik
4
+ const Sizable = {
5
+ string: { unit: "аломат", verb: "дошта бошад" },
6
+ file: { unit: "байт", verb: "дошта бошад" },
7
+ array: { unit: "унсур", verb: "дошта бошад" },
8
+ set: { unit: "унсур", verb: "дошта бошад" },
9
+ map: { unit: "сабт", verb: "дошта бошад" },
10
+ };
11
+ function getSizing(origin) {
12
+ return Sizable[origin] ?? null;
13
+ }
14
+ const FormatDictionary = {
15
+ regex: "вуруд",
16
+ email: "суроғаи email",
17
+ url: "URL",
18
+ emoji: "эмоҷи",
19
+ uuid: "UUID",
20
+ uuidv4: "UUIDv4",
21
+ uuidv6: "UUIDv6",
22
+ nanoid: "nanoid",
23
+ guid: "GUID",
24
+ cuid: "cuid",
25
+ cuid2: "cuid2",
26
+ ulid: "ULID",
27
+ xid: "XID",
28
+ ksuid: "KSUID",
29
+ datetime: "санаву вақти ISO",
30
+ date: "санаи ISO",
31
+ time: "вақти ISO",
32
+ duration: "давомнокии ISO",
33
+ ipv4: "суроғаи IPv4",
34
+ ipv6: "суроғаи IPv6",
35
+ mac: "суроғаи MAC",
36
+ cidrv4: "маҳдудаи IPv4",
37
+ cidrv6: "маҳдудаи IPv6",
38
+ base64: "сатри дар формати base64",
39
+ base64url: "сатри дар формати base64url",
40
+ json_string: "сатри JSON",
41
+ e164: "рақами E.164",
42
+ credit_card: "рақами корти кредитӣ",
43
+ currency_code: "рамзи асъор",
44
+ iban: "IBAN",
45
+ jwt: "JWT",
46
+ template_literal: "вуруд",
47
+ };
48
+ const TypeDictionary = {
49
+ nan: "NaN",
50
+ number: "рақам",
51
+ string: "сатр",
52
+ array: "массив",
53
+ object: "объект",
54
+ date: "сана",
55
+ };
56
+ return (issue) => {
57
+ switch (issue.code) {
58
+ case "invalid_type": {
59
+ const expected = TypeDictionary[issue.expected] ?? issue.expected;
60
+ const receivedType = util.parsedType(issue.input);
61
+ const received = TypeDictionary[receivedType] ?? receivedType;
62
+ return `Вуруди нодуруст: ${expected} интизор мерафт, ${received} гирифта шуд`;
63
+ }
64
+ case "invalid_value":
65
+ if (issue.values.length === 1)
66
+ return `Вуруди нодуруст: ${util.stringifyPrimitive(issue.values[0])} интизор мерафт`;
67
+ return `Интихоби нодуруст: яке аз ${util.joinValues(issue.values, "|")} интизор мерафт`;
68
+ case "too_big": {
69
+ const adj = issue.inclusive ? "<=" : "<";
70
+ const sizing = getSizing(issue.origin);
71
+ if (sizing)
72
+ return `Хеле калон: ${issue.origin ?? "қимат"} бояд ${adj}${issue.maximum.toString()} ${sizing.unit} ${sizing.verb}`;
73
+ return `Хеле калон: ${issue.origin ?? "қимат"} бояд ${adj}${issue.maximum.toString()} бошад`;
74
+ }
75
+ case "too_small": {
76
+ const adj = issue.inclusive ? ">=" : ">";
77
+ const sizing = getSizing(issue.origin);
78
+ if (sizing)
79
+ return `Хеле хурд: ${issue.origin} бояд ${adj}${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
80
+ return `Хеле хурд: ${issue.origin} бояд ${adj}${issue.minimum.toString()} бошад`;
81
+ }
82
+ case "invalid_format": {
83
+ const _issue = issue;
84
+ if (_issue.format === "starts_with")
85
+ return `Сатри нодуруст: бояд бо "${_issue.prefix}" оғоз шавад`;
86
+ if (_issue.format === "ends_with")
87
+ return `Сатри нодуруст: бояд бо "${_issue.suffix}" анҷом ёбад`;
88
+ if (_issue.format === "includes")
89
+ return `Сатри нодуруст: бояд "${_issue.includes}"-ро дар бар гирад`;
90
+ if (_issue.format === "regex")
91
+ return `Сатри нодуруст: бояд ба намунаи ${_issue.pattern} мувофиқат кунад`;
92
+ return `${FormatDictionary[_issue.format] ?? issue.format}-и нодуруст`;
93
+ }
94
+ case "not_multiple_of":
95
+ return `Рақами нодуруст: бояд ба ${issue.divisor} бе бақия тақсим шавад`;
96
+ case "unrecognized_keys":
97
+ return `Калид${issue.keys.length > 1 ? "ҳои" : "и"} номаълум: ${util.joinValues(issue.keys, ", ")}`;
98
+ case "invalid_key":
99
+ return `Калиди нодуруст дар ${issue.origin}`;
100
+ case "invalid_union":
101
+ if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
102
+ const opts = issue.options.map((o) => `'${o}'`).join(" | ");
103
+ return `Қимати нодурусти дискриминатор: ${opts} интизор мерафт`;
104
+ }
105
+ return "Вуруди нодуруст";
106
+ case "invalid_element":
107
+ return `Қимати нодуруст дар ${issue.origin}`;
108
+ default:
109
+ return `Вуруди нодуруст`;
110
+ }
111
+ };
112
+ };
113
+ export default function () {
114
+ return {
115
+ localeError: error(),
116
+ };
117
+ }