@spotlightjs/spotlight 4.10.0 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dist/_virtual/index.js +3 -3
  2. package/dist/_virtual/index2.js +3 -3
  3. package/dist/_virtual/index3.js +3 -3
  4. package/dist/_virtual/index8.js +3 -3
  5. package/dist/_virtual/index9.js +3 -3
  6. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +1 -1
  7. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js.map +1 -1
  8. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js.map +1 -1
  9. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map +1 -1
  10. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js.map +1 -1
  11. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map +1 -1
  12. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -1
  13. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +1 -1
  14. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
  15. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +1 -1
  16. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +1 -1
  17. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +1 -1
  18. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +1 -1
  19. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +1 -1
  20. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js.map +1 -1
  21. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +1 -1
  22. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +3 -3
  23. package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +1 -1
  24. package/dist/node_modules/.pnpm/{ajv-formats@3.0.1_ajv@8.17.1 → ajv-formats@3.0.1_ajv@8.18.0}/node_modules/ajv-formats/dist/formats.js.map +1 -1
  25. package/dist/node_modules/.pnpm/{ajv-formats@3.0.1_ajv@8.17.1 → ajv-formats@3.0.1_ajv@8.18.0}/node_modules/ajv-formats/dist/index.js +3 -3
  26. package/dist/node_modules/.pnpm/{ajv-formats@3.0.1_ajv@8.17.1 → ajv-formats@3.0.1_ajv@8.18.0}/node_modules/ajv-formats/dist/index.js.map +1 -1
  27. package/dist/node_modules/.pnpm/{ajv-formats@3.0.1_ajv@8.17.1 → ajv-formats@3.0.1_ajv@8.18.0}/node_modules/ajv-formats/dist/limit.js +4 -4
  28. package/dist/node_modules/.pnpm/{ajv-formats@3.0.1_ajv@8.17.1 → ajv-formats@3.0.1_ajv@8.18.0}/node_modules/ajv-formats/dist/limit.js.map +1 -1
  29. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/ajv.js +6 -6
  30. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/ajv.js.map +1 -1
  31. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  32. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/codegen/index.js +2 -2
  33. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
  34. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
  35. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/errors.js +2 -2
  36. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/errors.js.map +1 -1
  37. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/index.js +3 -3
  38. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/index.js.map +1 -1
  39. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/names.js +2 -2
  40. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/names.js.map +1 -1
  41. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
  42. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  43. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/rules.js.map +1 -1
  44. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/util.js +2 -2
  45. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/util.js.map +1 -1
  46. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -1
  47. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/boolSchema.js +2 -2
  48. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
  49. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/dataType.js +2 -2
  50. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
  51. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/defaults.js +2 -2
  52. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
  53. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/index.js +3 -3
  54. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
  55. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/keyword.js +2 -2
  56. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
  57. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/subschema.js +2 -2
  58. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
  59. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/core.js +3 -3
  60. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/core.js.map +1 -1
  61. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/runtime/equal.js.map +1 -1
  62. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
  63. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  64. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/runtime/validation_error.js.map +1 -1
  65. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +2 -2
  66. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
  67. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +2 -2
  68. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
  69. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -1
  70. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -1
  71. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/contains.js +2 -2
  72. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
  73. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +2 -2
  74. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
  75. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/if.js +2 -2
  76. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
  77. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/index.js +2 -2
  78. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -1
  79. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/items.js +2 -2
  80. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
  81. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/items2020.js +2 -2
  82. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -1
  83. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
  84. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +2 -2
  85. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
  86. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +2 -2
  87. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
  88. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -1
  89. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/properties.js +2 -2
  90. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
  91. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +2 -2
  92. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -1
  93. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -1
  94. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/code.js +2 -2
  95. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
  96. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -1
  97. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -1
  98. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/core/ref.js +2 -2
  99. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
  100. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/discriminator/index.js +3 -3
  101. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  102. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
  103. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/draft7.js +3 -3
  104. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -1
  105. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/format/format.js +2 -2
  106. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
  107. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/format/index.js +6 -6
  108. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -1
  109. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -1
  110. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/const.js +2 -2
  111. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
  112. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/enum.js +2 -2
  113. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
  114. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -1
  115. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/limitItems.js +2 -2
  116. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -1
  117. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/limitLength.js +2 -2
  118. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -1
  119. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +2 -2
  120. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -1
  121. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +2 -2
  122. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
  123. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +2 -2
  124. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -1
  125. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/pattern.js +16 -5
  126. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  127. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/required.js +2 -2
  128. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
  129. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +2 -2
  130. package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -1
  131. package/dist/node_modules/.pnpm/{hono@4.10.3 → hono@4.12.8}/node_modules/hono/dist/helper/streaming/sse.js +7 -2
  132. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/helper/streaming/sse.js.map +1 -0
  133. package/dist/node_modules/.pnpm/{hono@4.10.3 → hono@4.12.8}/node_modules/hono/dist/middleware/cors/index.js.map +1 -1
  134. package/dist/node_modules/.pnpm/{hono@4.10.3 → hono@4.12.8}/node_modules/hono/dist/utils/html.js.map +1 -1
  135. package/dist/node_modules/.pnpm/{hono@4.10.3 → hono@4.12.8}/node_modules/hono/dist/utils/stream.js +11 -1
  136. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/stream.js.map +1 -0
  137. package/dist/sentry-config.js +2 -2
  138. package/dist/server/cli/help.js +18 -14
  139. package/dist/server/cli/mcp.js +3 -3
  140. package/dist/server/cli/run.js +2 -2
  141. package/dist/server/cli/tail.js +12 -1
  142. package/dist/server/cli.js +2 -2
  143. package/dist/server/main.js +2 -2
  144. package/dist/server/mcp/mcp.js +3 -3
  145. package/dist/server/routes/stream/index.d.ts +32 -4
  146. package/dist/server/routes/stream/streaming.js +2 -2
  147. package/dist/ui/assets/index.js +48 -48
  148. package/dist/ui/assets/instrumentation.js +2 -2
  149. package/dist/ui/assets/main.css +1 -1
  150. package/dist/ui/assets/serverTimingMeta.js +2 -2
  151. package/package.json +3 -3
  152. package/dist/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  153. package/dist/node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/helper/streaming/sse.js.map +0 -1
  154. package/dist/node_modules/.pnpm/hono@4.10.3/node_modules/hono/dist/utils/stream.js.map +0 -1
  155. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +0 -0
  156. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +0 -0
  157. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +0 -0
  158. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +0 -0
  159. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +0 -0
  160. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +0 -0
  161. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +0 -0
  162. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +0 -0
  163. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +0 -0
  164. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +0 -0
  165. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +0 -0
  166. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +0 -0
  167. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +0 -0
  168. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +0 -0
  169. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +0 -0
  170. /package/dist/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.25.2_hono@4.10.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.25.2_hono@4.12.8_zod@4.1.13}/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +0 -0
  171. /package/dist/node_modules/.pnpm/{ajv-formats@3.0.1_ajv@8.17.1 → ajv-formats@3.0.1_ajv@8.18.0}/node_modules/ajv-formats/dist/formats.js +0 -0
  172. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/codegen/code.js +0 -0
  173. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/codegen/scope.js +0 -0
  174. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/ref_error.js +0 -0
  175. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/resolve.js +0 -0
  176. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/rules.js +0 -0
  177. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/compile/validate/applicability.js +0 -0
  178. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/refs/data.json.js +0 -0
  179. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/refs/data.json.js.map +0 -0
  180. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +0 -0
  181. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +0 -0
  182. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/runtime/equal.js +0 -0
  183. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/runtime/ucs2length.js +0 -0
  184. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/runtime/uri.js +0 -0
  185. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/runtime/validation_error.js +0 -0
  186. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -0
  187. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -0
  188. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -0
  189. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -0
  190. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -0
  191. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/core/id.js +0 -0
  192. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/core/index.js +0 -0
  193. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -0
  194. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/metadata.js +0 -0
  195. /package/dist/node_modules/.pnpm/{ajv@8.17.1 → ajv@8.18.0}/node_modules/ajv/dist/vocabularies/validation/index.js +0 -0
  196. /package/dist/node_modules/.pnpm/{hono@4.10.3 → hono@4.12.8}/node_modules/hono/dist/middleware/cors/index.js +0 -0
  197. /package/dist/node_modules/.pnpm/{hono@4.10.3 → hono@4.12.8}/node_modules/hono/dist/utils/html.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;\nconst boolSchema_1 = require(\"./boolSchema\");\nconst dataType_1 = require(\"./dataType\");\nconst applicability_1 = require(\"./applicability\");\nconst dataType_2 = require(\"./dataType\");\nconst defaults_1 = require(\"./defaults\");\nconst keyword_1 = require(\"./keyword\");\nconst subschema_1 = require(\"./subschema\");\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst resolve_1 = require(\"../resolve\");\nconst util_1 = require(\"../util\");\nconst errors_1 = require(\"../errors\");\n// schema compilation - generates validation function, subschemaCode (below) is used for subschemas\nfunction validateFunctionCode(it) {\n if (isSchemaObj(it)) {\n checkKeywords(it);\n if (schemaCxtHasRules(it)) {\n topSchemaObjCode(it);\n return;\n }\n }\n validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));\n}\nexports.validateFunctionCode = validateFunctionCode;\nfunction validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {\n if (opts.code.es5) {\n gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {\n gen.code((0, codegen_1._) `\"use strict\"; ${funcSourceUrl(schema, opts)}`);\n destructureValCxtES5(gen, opts);\n gen.code(body);\n });\n }\n else {\n gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body));\n }\n}\nfunction destructureValCxt(opts) {\n return (0, codegen_1._) `{${names_1.default.instancePath}=\"\", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`;\n}\nfunction destructureValCxtES5(gen, opts) {\n gen.if(names_1.default.valCxt, () => {\n gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`);\n gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentData}`);\n gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentDataProperty}`);\n gen.var(names_1.default.rootData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.rootData}`);\n if (opts.dynamicRef)\n gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`);\n }, () => {\n gen.var(names_1.default.instancePath, (0, codegen_1._) `\"\"`);\n gen.var(names_1.default.parentData, (0, codegen_1._) `undefined`);\n gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `undefined`);\n gen.var(names_1.default.rootData, names_1.default.data);\n if (opts.dynamicRef)\n gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `{}`);\n });\n}\nfunction topSchemaObjCode(it) {\n const { schema, opts, gen } = it;\n validateFunction(it, () => {\n if (opts.$comment && schema.$comment)\n commentKeyword(it);\n checkNoDefault(it);\n gen.let(names_1.default.vErrors, null);\n gen.let(names_1.default.errors, 0);\n if (opts.unevaluated)\n resetEvaluated(it);\n typeAndKeywords(it);\n returnResults(it);\n });\n return;\n}\nfunction resetEvaluated(it) {\n // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated\n const { gen, validateName } = it;\n it.evaluated = gen.const(\"evaluated\", (0, codegen_1._) `${validateName}.evaluated`);\n gen.if((0, codegen_1._) `${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._) `${it.evaluated}.props`, (0, codegen_1._) `undefined`));\n gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`));\n}\nfunction funcSourceUrl(schema, opts) {\n const schId = typeof schema == \"object\" && schema[opts.schemaId];\n return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil;\n}\n// schema compilation - this function is used recursively to generate code for sub-schemas\nfunction subschemaCode(it, valid) {\n if (isSchemaObj(it)) {\n checkKeywords(it);\n if (schemaCxtHasRules(it)) {\n subSchemaObjCode(it, valid);\n return;\n }\n }\n (0, boolSchema_1.boolOrEmptySchema)(it, valid);\n}\nfunction schemaCxtHasRules({ schema, self }) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (self.RULES.all[key])\n return true;\n return false;\n}\nfunction isSchemaObj(it) {\n return typeof it.schema != \"boolean\";\n}\nfunction subSchemaObjCode(it, valid) {\n const { schema, gen, opts } = it;\n if (opts.$comment && schema.$comment)\n commentKeyword(it);\n updateContext(it);\n checkAsyncSchema(it);\n const errsCount = gen.const(\"_errs\", names_1.default.errors);\n typeAndKeywords(it, errsCount);\n // TODO var\n gen.var(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);\n}\nfunction checkKeywords(it) {\n (0, util_1.checkUnknownRules)(it);\n checkRefsAndKeywords(it);\n}\nfunction typeAndKeywords(it, errsCount) {\n if (it.opts.jtd)\n return schemaKeywords(it, [], false, errsCount);\n const types = (0, dataType_1.getSchemaTypes)(it.schema);\n const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types);\n schemaKeywords(it, types, !checkedTypes, errsCount);\n}\nfunction checkRefsAndKeywords(it) {\n const { schema, errSchemaPath, opts, self } = it;\n if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) {\n self.logger.warn(`$ref: keywords ignored in schema at path \"${errSchemaPath}\"`);\n }\n}\nfunction checkNoDefault(it) {\n const { schema, opts } = it;\n if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {\n (0, util_1.checkStrictMode)(it, \"default is ignored in the schema root\");\n }\n}\nfunction updateContext(it) {\n const schId = it.schema[it.opts.schemaId];\n if (schId)\n it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId);\n}\nfunction checkAsyncSchema(it) {\n if (it.schema.$async && !it.schemaEnv.$async)\n throw new Error(\"async schema in sync schema\");\n}\nfunction commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) {\n const msg = schema.$comment;\n if (opts.$comment === true) {\n gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`);\n }\n else if (typeof opts.$comment == \"function\") {\n const schemaPath = (0, codegen_1.str) `${errSchemaPath}/$comment`;\n const rootName = gen.scopeValue(\"root\", { ref: schemaEnv.root });\n gen.code((0, codegen_1._) `${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);\n }\n}\nfunction returnResults(it) {\n const { gen, schemaEnv, validateName, ValidationError, opts } = it;\n if (schemaEnv.$async) {\n // TODO assign unevaluated\n gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${ValidationError}(${names_1.default.vErrors})`));\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, names_1.default.vErrors);\n if (opts.unevaluated)\n assignEvaluated(it);\n gen.return((0, codegen_1._) `${names_1.default.errors} === 0`);\n }\n}\nfunction assignEvaluated({ gen, evaluated, props, items }) {\n if (props instanceof codegen_1.Name)\n gen.assign((0, codegen_1._) `${evaluated}.props`, props);\n if (items instanceof codegen_1.Name)\n gen.assign((0, codegen_1._) `${evaluated}.items`, items);\n}\nfunction schemaKeywords(it, types, typeErrors, errsCount) {\n const { gen, schema, data, allErrors, opts, self } = it;\n const { RULES } = self;\n if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {\n gen.block(() => keywordCode(it, \"$ref\", RULES.all.$ref.definition)); // TODO typecast\n return;\n }\n if (!opts.jtd)\n checkStrictTypes(it, types);\n gen.block(() => {\n for (const group of RULES.rules)\n groupKeywords(group);\n groupKeywords(RULES.post);\n });\n function groupKeywords(group) {\n if (!(0, applicability_1.shouldUseGroup)(schema, group))\n return;\n if (group.type) {\n gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers));\n iterateKeywords(it, group);\n if (types.length === 1 && types[0] === group.type && typeErrors) {\n gen.else();\n (0, dataType_2.reportTypeError)(it);\n }\n gen.endIf();\n }\n else {\n iterateKeywords(it, group);\n }\n // TODO make it \"ok\" call?\n if (!allErrors)\n gen.if((0, codegen_1._) `${names_1.default.errors} === ${errsCount || 0}`);\n }\n}\nfunction iterateKeywords(it, group) {\n const { gen, schema, opts: { useDefaults }, } = it;\n if (useDefaults)\n (0, defaults_1.assignDefaults)(it, group.type);\n gen.block(() => {\n for (const rule of group.rules) {\n if ((0, applicability_1.shouldUseRule)(schema, rule)) {\n keywordCode(it, rule.keyword, rule.definition, group.type);\n }\n }\n });\n}\nfunction checkStrictTypes(it, types) {\n if (it.schemaEnv.meta || !it.opts.strictTypes)\n return;\n checkContextTypes(it, types);\n if (!it.opts.allowUnionTypes)\n checkMultipleTypes(it, types);\n checkKeywordTypes(it, it.dataTypes);\n}\nfunction checkContextTypes(it, types) {\n if (!types.length)\n return;\n if (!it.dataTypes.length) {\n it.dataTypes = types;\n return;\n }\n types.forEach((t) => {\n if (!includesType(it.dataTypes, t)) {\n strictTypesError(it, `type \"${t}\" not allowed by context \"${it.dataTypes.join(\",\")}\"`);\n }\n });\n narrowSchemaTypes(it, types);\n}\nfunction checkMultipleTypes(it, ts) {\n if (ts.length > 1 && !(ts.length === 2 && ts.includes(\"null\"))) {\n strictTypesError(it, \"use allowUnionTypes to allow union type keyword\");\n }\n}\nfunction checkKeywordTypes(it, ts) {\n const rules = it.self.RULES.all;\n for (const keyword in rules) {\n const rule = rules[keyword];\n if (typeof rule == \"object\" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {\n const { type } = rule.definition;\n if (type.length && !type.some((t) => hasApplicableType(ts, t))) {\n strictTypesError(it, `missing type \"${type.join(\",\")}\" for keyword \"${keyword}\"`);\n }\n }\n }\n}\nfunction hasApplicableType(schTs, kwdT) {\n return schTs.includes(kwdT) || (kwdT === \"number\" && schTs.includes(\"integer\"));\n}\nfunction includesType(ts, t) {\n return ts.includes(t) || (t === \"integer\" && ts.includes(\"number\"));\n}\nfunction narrowSchemaTypes(it, withTypes) {\n const ts = [];\n for (const t of it.dataTypes) {\n if (includesType(withTypes, t))\n ts.push(t);\n else if (withTypes.includes(\"integer\") && t === \"number\")\n ts.push(\"integer\");\n }\n it.dataTypes = ts;\n}\nfunction strictTypesError(it, msg) {\n const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;\n msg += ` at \"${schemaPath}\" (strictTypes)`;\n (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes);\n}\nclass KeywordCxt {\n constructor(it, def, keyword) {\n (0, keyword_1.validateKeywordUsage)(it, def, keyword);\n this.gen = it.gen;\n this.allErrors = it.allErrors;\n this.keyword = keyword;\n this.data = it.data;\n this.schema = it.schema[keyword];\n this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data;\n this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data);\n this.schemaType = def.schemaType;\n this.parentSchema = it.schema;\n this.params = {};\n this.it = it;\n this.def = def;\n if (this.$data) {\n this.schemaCode = it.gen.const(\"vSchema\", getData(this.$data, it));\n }\n else {\n this.schemaCode = this.schemaValue;\n if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) {\n throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`);\n }\n }\n if (\"code\" in def ? def.trackErrors : def.errors !== false) {\n this.errsCount = it.gen.const(\"_errs\", names_1.default.errors);\n }\n }\n result(condition, successAction, failAction) {\n this.failResult((0, codegen_1.not)(condition), successAction, failAction);\n }\n failResult(condition, successAction, failAction) {\n this.gen.if(condition);\n if (failAction)\n failAction();\n else\n this.error();\n if (successAction) {\n this.gen.else();\n successAction();\n if (this.allErrors)\n this.gen.endIf();\n }\n else {\n if (this.allErrors)\n this.gen.endIf();\n else\n this.gen.else();\n }\n }\n pass(condition, failAction) {\n this.failResult((0, codegen_1.not)(condition), undefined, failAction);\n }\n fail(condition) {\n if (condition === undefined) {\n this.error();\n if (!this.allErrors)\n this.gen.if(false); // this branch will be removed by gen.optimize\n return;\n }\n this.gen.if(condition);\n this.error();\n if (this.allErrors)\n this.gen.endIf();\n else\n this.gen.else();\n }\n fail$data(condition) {\n if (!this.$data)\n return this.fail(condition);\n const { schemaCode } = this;\n this.fail((0, codegen_1._) `${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`);\n }\n error(append, errorParams, errorPaths) {\n if (errorParams) {\n this.setParams(errorParams);\n this._error(append, errorPaths);\n this.setParams({});\n return;\n }\n this._error(append, errorPaths);\n }\n _error(append, errorPaths) {\n ;\n (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths);\n }\n $dataError() {\n (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError);\n }\n reset() {\n if (this.errsCount === undefined)\n throw new Error('add \"trackErrors\" to keyword definition');\n (0, errors_1.resetErrorsCount)(this.gen, this.errsCount);\n }\n ok(cond) {\n if (!this.allErrors)\n this.gen.if(cond);\n }\n setParams(obj, assign) {\n if (assign)\n Object.assign(this.params, obj);\n else\n this.params = obj;\n }\n block$data(valid, codeBlock, $dataValid = codegen_1.nil) {\n this.gen.block(() => {\n this.check$data(valid, $dataValid);\n codeBlock();\n });\n }\n check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) {\n if (!this.$data)\n return;\n const { gen, schemaCode, schemaType, def } = this;\n gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid));\n if (valid !== codegen_1.nil)\n gen.assign(valid, true);\n if (schemaType.length || def.validateSchema) {\n gen.elseIf(this.invalid$data());\n this.$dataError();\n if (valid !== codegen_1.nil)\n gen.assign(valid, false);\n }\n gen.else();\n }\n invalid$data() {\n const { gen, schemaCode, schemaType, def, it } = this;\n return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema());\n function wrong$DataType() {\n if (schemaType.length) {\n /* istanbul ignore if */\n if (!(schemaCode instanceof codegen_1.Name))\n throw new Error(\"ajv implementation error\");\n const st = Array.isArray(schemaType) ? schemaType : [schemaType];\n return (0, codegen_1._) `${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`;\n }\n return codegen_1.nil;\n }\n function invalid$DataSchema() {\n if (def.validateSchema) {\n const validateSchemaRef = gen.scopeValue(\"validate$data\", { ref: def.validateSchema }); // TODO value.code for standalone\n return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`;\n }\n return codegen_1.nil;\n }\n }\n subschema(appl, valid) {\n const subschema = (0, subschema_1.getSubschema)(this.it, appl);\n (0, subschema_1.extendSubschemaData)(subschema, this.it, appl);\n (0, subschema_1.extendSubschemaMode)(subschema, appl);\n const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined };\n subschemaCode(nextContext, valid);\n return nextContext;\n }\n mergeEvaluated(schemaCxt, toName) {\n const { it, gen } = this;\n if (!it.opts.unevaluated)\n return;\n if (it.props !== true && schemaCxt.props !== undefined) {\n it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName);\n }\n if (it.items !== true && schemaCxt.items !== undefined) {\n it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName);\n }\n }\n mergeValidEvaluated(schemaCxt, valid) {\n const { it, gen } = this;\n if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {\n gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name));\n return true;\n }\n }\n}\nexports.KeywordCxt = KeywordCxt;\nfunction keywordCode(it, keyword, def, ruleType) {\n const cxt = new KeywordCxt(it, def, keyword);\n if (\"code\" in def) {\n def.code(cxt, ruleType);\n }\n else if (cxt.$data && def.validate) {\n (0, keyword_1.funcKeywordCode)(cxt, def);\n }\n else if (\"macro\" in def) {\n (0, keyword_1.macroKeywordCode)(cxt, def);\n }\n else if (def.compile || def.validate) {\n (0, keyword_1.funcKeywordCode)(cxt, def);\n }\n}\nconst JSON_POINTER = /^\\/(?:[^~]|~0|~1)*$/;\nconst RELATIVE_JSON_POINTER = /^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/;\nfunction getData($data, { dataLevel, dataNames, dataPathArr }) {\n let jsonPointer;\n let data;\n if ($data === \"\")\n return names_1.default.rootData;\n if ($data[0] === \"/\") {\n if (!JSON_POINTER.test($data))\n throw new Error(`Invalid JSON-pointer: ${$data}`);\n jsonPointer = $data;\n data = names_1.default.rootData;\n }\n else {\n const matches = RELATIVE_JSON_POINTER.exec($data);\n if (!matches)\n throw new Error(`Invalid JSON-pointer: ${$data}`);\n const up = +matches[1];\n jsonPointer = matches[2];\n if (jsonPointer === \"#\") {\n if (up >= dataLevel)\n throw new Error(errorMsg(\"property/index\", up));\n return dataPathArr[dataLevel - up];\n }\n if (up > dataLevel)\n throw new Error(errorMsg(\"data\", up));\n data = dataNames[dataLevel - up];\n if (!jsonPointer)\n return data;\n }\n let expr = data;\n const segments = jsonPointer.split(\"/\");\n for (const segment of segments) {\n if (segment) {\n data = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`;\n expr = (0, codegen_1._) `${expr} && ${data}`;\n }\n }\n return expr;\n function errorMsg(pointerType, up) {\n return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;\n }\n}\nexports.getData = getData;\n//# sourceMappingURL=index.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9","require$$10","self","keyword","subschema"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,eAAe,UAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,SAAA,UAAkB,SAAA,6CAAoD;AACtE,MAAM,eAAeA;AACrB,MAAM,aAAaC;AACnB,MAAM,kBAAkBC;AACxB,MAAM,aAAaD;AACnB,MAAM,aAAaE;AACnB,MAAM,YAAYC;AAClB,MAAM,cAAcC;AACpB,MAAM,YAAYC;AAClB,MAAM,UAAUC;AAChB,MAAM,YAAYC;AAClB,MAAM,SAASC;AACf,MAAM,WAAWC;AAEjB,SAAS,qBAAqB,IAAI;AAC9B,MAAI,YAAY,EAAE,GAAG;AACjB,kBAAc,EAAE;AAChB,QAAI,kBAAkB,EAAE,GAAG;AACvB,uBAAiB,EAAE;AACnB;AAAA,IACZ;AAAA,EACA;AACI,mBAAiB,IAAI,OAAM,GAAI,aAAa,sBAAsB,EAAE,CAAC;AACzE;AACA,SAAA,uBAA+B;AAC/B,SAAS,iBAAiB,EAAE,KAAK,cAAc,QAAQ,WAAW,KAAI,GAAI,MAAM;AAC5E,MAAI,KAAK,KAAK,KAAK;AACf,QAAI,KAAK,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,EAAE,CAAC;AACxC,WAAO,UAAU,YAAY,EAAE;AAC/B,QAAI,CAAC;AACD,aAAO;AAAA,EACnB;AACI,MAAI,OAAO;AACX,QAAM,WAAW,YAAY,MAAM,GAAG;AACtC,aAAW,WAAW,UAAU;AAC5B,QAAI,SAAS;AACT,cAAO,GAAI,UAAU,KAAM,IAAI,IAAG,GAAI,UAAU,cAAa,GAAI,OAAO,qBAAqB,OAAO,CAAC,CAAC;AACtG,cAAO,GAAI,UAAU,KAAM,IAAI,OAAO,IAAI;AAAA,IACtD;AAAA,EACA;AACI,SAAO;AACP,WAAS,SAAS,aAAa,IAAI;AAC/B,WAAO,iBAAiB,WAAW,IAAI,EAAE,gCAAgC,SAAS;AAAA,EAC1F;AACA;AACA,SAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;\nconst boolSchema_1 = require(\"./boolSchema\");\nconst dataType_1 = require(\"./dataType\");\nconst applicability_1 = require(\"./applicability\");\nconst dataType_2 = require(\"./dataType\");\nconst defaults_1 = require(\"./defaults\");\nconst keyword_1 = require(\"./keyword\");\nconst subschema_1 = require(\"./subschema\");\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst resolve_1 = require(\"../resolve\");\nconst util_1 = require(\"../util\");\nconst errors_1 = require(\"../errors\");\n// schema compilation - generates validation function, subschemaCode (below) is used for subschemas\nfunction validateFunctionCode(it) {\n if (isSchemaObj(it)) {\n checkKeywords(it);\n if (schemaCxtHasRules(it)) {\n topSchemaObjCode(it);\n return;\n }\n }\n validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));\n}\nexports.validateFunctionCode = validateFunctionCode;\nfunction validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {\n if (opts.code.es5) {\n gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {\n gen.code((0, codegen_1._) `\"use strict\"; ${funcSourceUrl(schema, opts)}`);\n destructureValCxtES5(gen, opts);\n gen.code(body);\n });\n }\n else {\n gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () => gen.code(funcSourceUrl(schema, opts)).code(body));\n }\n}\nfunction destructureValCxt(opts) {\n return (0, codegen_1._) `{${names_1.default.instancePath}=\"\", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}`;\n}\nfunction destructureValCxtES5(gen, opts) {\n gen.if(names_1.default.valCxt, () => {\n gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`);\n gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentData}`);\n gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.parentDataProperty}`);\n gen.var(names_1.default.rootData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.rootData}`);\n if (opts.dynamicRef)\n gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.dynamicAnchors}`);\n }, () => {\n gen.var(names_1.default.instancePath, (0, codegen_1._) `\"\"`);\n gen.var(names_1.default.parentData, (0, codegen_1._) `undefined`);\n gen.var(names_1.default.parentDataProperty, (0, codegen_1._) `undefined`);\n gen.var(names_1.default.rootData, names_1.default.data);\n if (opts.dynamicRef)\n gen.var(names_1.default.dynamicAnchors, (0, codegen_1._) `{}`);\n });\n}\nfunction topSchemaObjCode(it) {\n const { schema, opts, gen } = it;\n validateFunction(it, () => {\n if (opts.$comment && schema.$comment)\n commentKeyword(it);\n checkNoDefault(it);\n gen.let(names_1.default.vErrors, null);\n gen.let(names_1.default.errors, 0);\n if (opts.unevaluated)\n resetEvaluated(it);\n typeAndKeywords(it);\n returnResults(it);\n });\n return;\n}\nfunction resetEvaluated(it) {\n // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated\n const { gen, validateName } = it;\n it.evaluated = gen.const(\"evaluated\", (0, codegen_1._) `${validateName}.evaluated`);\n gen.if((0, codegen_1._) `${it.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1._) `${it.evaluated}.props`, (0, codegen_1._) `undefined`));\n gen.if((0, codegen_1._) `${it.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1._) `${it.evaluated}.items`, (0, codegen_1._) `undefined`));\n}\nfunction funcSourceUrl(schema, opts) {\n const schId = typeof schema == \"object\" && schema[opts.schemaId];\n return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil;\n}\n// schema compilation - this function is used recursively to generate code for sub-schemas\nfunction subschemaCode(it, valid) {\n if (isSchemaObj(it)) {\n checkKeywords(it);\n if (schemaCxtHasRules(it)) {\n subSchemaObjCode(it, valid);\n return;\n }\n }\n (0, boolSchema_1.boolOrEmptySchema)(it, valid);\n}\nfunction schemaCxtHasRules({ schema, self }) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (self.RULES.all[key])\n return true;\n return false;\n}\nfunction isSchemaObj(it) {\n return typeof it.schema != \"boolean\";\n}\nfunction subSchemaObjCode(it, valid) {\n const { schema, gen, opts } = it;\n if (opts.$comment && schema.$comment)\n commentKeyword(it);\n updateContext(it);\n checkAsyncSchema(it);\n const errsCount = gen.const(\"_errs\", names_1.default.errors);\n typeAndKeywords(it, errsCount);\n // TODO var\n gen.var(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);\n}\nfunction checkKeywords(it) {\n (0, util_1.checkUnknownRules)(it);\n checkRefsAndKeywords(it);\n}\nfunction typeAndKeywords(it, errsCount) {\n if (it.opts.jtd)\n return schemaKeywords(it, [], false, errsCount);\n const types = (0, dataType_1.getSchemaTypes)(it.schema);\n const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types);\n schemaKeywords(it, types, !checkedTypes, errsCount);\n}\nfunction checkRefsAndKeywords(it) {\n const { schema, errSchemaPath, opts, self } = it;\n if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) {\n self.logger.warn(`$ref: keywords ignored in schema at path \"${errSchemaPath}\"`);\n }\n}\nfunction checkNoDefault(it) {\n const { schema, opts } = it;\n if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {\n (0, util_1.checkStrictMode)(it, \"default is ignored in the schema root\");\n }\n}\nfunction updateContext(it) {\n const schId = it.schema[it.opts.schemaId];\n if (schId)\n it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId);\n}\nfunction checkAsyncSchema(it) {\n if (it.schema.$async && !it.schemaEnv.$async)\n throw new Error(\"async schema in sync schema\");\n}\nfunction commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) {\n const msg = schema.$comment;\n if (opts.$comment === true) {\n gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`);\n }\n else if (typeof opts.$comment == \"function\") {\n const schemaPath = (0, codegen_1.str) `${errSchemaPath}/$comment`;\n const rootName = gen.scopeValue(\"root\", { ref: schemaEnv.root });\n gen.code((0, codegen_1._) `${names_1.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);\n }\n}\nfunction returnResults(it) {\n const { gen, schemaEnv, validateName, ValidationError, opts } = it;\n if (schemaEnv.$async) {\n // TODO assign unevaluated\n gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${ValidationError}(${names_1.default.vErrors})`));\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, names_1.default.vErrors);\n if (opts.unevaluated)\n assignEvaluated(it);\n gen.return((0, codegen_1._) `${names_1.default.errors} === 0`);\n }\n}\nfunction assignEvaluated({ gen, evaluated, props, items }) {\n if (props instanceof codegen_1.Name)\n gen.assign((0, codegen_1._) `${evaluated}.props`, props);\n if (items instanceof codegen_1.Name)\n gen.assign((0, codegen_1._) `${evaluated}.items`, items);\n}\nfunction schemaKeywords(it, types, typeErrors, errsCount) {\n const { gen, schema, data, allErrors, opts, self } = it;\n const { RULES } = self;\n if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {\n gen.block(() => keywordCode(it, \"$ref\", RULES.all.$ref.definition)); // TODO typecast\n return;\n }\n if (!opts.jtd)\n checkStrictTypes(it, types);\n gen.block(() => {\n for (const group of RULES.rules)\n groupKeywords(group);\n groupKeywords(RULES.post);\n });\n function groupKeywords(group) {\n if (!(0, applicability_1.shouldUseGroup)(schema, group))\n return;\n if (group.type) {\n gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers));\n iterateKeywords(it, group);\n if (types.length === 1 && types[0] === group.type && typeErrors) {\n gen.else();\n (0, dataType_2.reportTypeError)(it);\n }\n gen.endIf();\n }\n else {\n iterateKeywords(it, group);\n }\n // TODO make it \"ok\" call?\n if (!allErrors)\n gen.if((0, codegen_1._) `${names_1.default.errors} === ${errsCount || 0}`);\n }\n}\nfunction iterateKeywords(it, group) {\n const { gen, schema, opts: { useDefaults }, } = it;\n if (useDefaults)\n (0, defaults_1.assignDefaults)(it, group.type);\n gen.block(() => {\n for (const rule of group.rules) {\n if ((0, applicability_1.shouldUseRule)(schema, rule)) {\n keywordCode(it, rule.keyword, rule.definition, group.type);\n }\n }\n });\n}\nfunction checkStrictTypes(it, types) {\n if (it.schemaEnv.meta || !it.opts.strictTypes)\n return;\n checkContextTypes(it, types);\n if (!it.opts.allowUnionTypes)\n checkMultipleTypes(it, types);\n checkKeywordTypes(it, it.dataTypes);\n}\nfunction checkContextTypes(it, types) {\n if (!types.length)\n return;\n if (!it.dataTypes.length) {\n it.dataTypes = types;\n return;\n }\n types.forEach((t) => {\n if (!includesType(it.dataTypes, t)) {\n strictTypesError(it, `type \"${t}\" not allowed by context \"${it.dataTypes.join(\",\")}\"`);\n }\n });\n narrowSchemaTypes(it, types);\n}\nfunction checkMultipleTypes(it, ts) {\n if (ts.length > 1 && !(ts.length === 2 && ts.includes(\"null\"))) {\n strictTypesError(it, \"use allowUnionTypes to allow union type keyword\");\n }\n}\nfunction checkKeywordTypes(it, ts) {\n const rules = it.self.RULES.all;\n for (const keyword in rules) {\n const rule = rules[keyword];\n if (typeof rule == \"object\" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {\n const { type } = rule.definition;\n if (type.length && !type.some((t) => hasApplicableType(ts, t))) {\n strictTypesError(it, `missing type \"${type.join(\",\")}\" for keyword \"${keyword}\"`);\n }\n }\n }\n}\nfunction hasApplicableType(schTs, kwdT) {\n return schTs.includes(kwdT) || (kwdT === \"number\" && schTs.includes(\"integer\"));\n}\nfunction includesType(ts, t) {\n return ts.includes(t) || (t === \"integer\" && ts.includes(\"number\"));\n}\nfunction narrowSchemaTypes(it, withTypes) {\n const ts = [];\n for (const t of it.dataTypes) {\n if (includesType(withTypes, t))\n ts.push(t);\n else if (withTypes.includes(\"integer\") && t === \"number\")\n ts.push(\"integer\");\n }\n it.dataTypes = ts;\n}\nfunction strictTypesError(it, msg) {\n const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;\n msg += ` at \"${schemaPath}\" (strictTypes)`;\n (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes);\n}\nclass KeywordCxt {\n constructor(it, def, keyword) {\n (0, keyword_1.validateKeywordUsage)(it, def, keyword);\n this.gen = it.gen;\n this.allErrors = it.allErrors;\n this.keyword = keyword;\n this.data = it.data;\n this.schema = it.schema[keyword];\n this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data;\n this.schemaValue = (0, util_1.schemaRefOrVal)(it, this.schema, keyword, this.$data);\n this.schemaType = def.schemaType;\n this.parentSchema = it.schema;\n this.params = {};\n this.it = it;\n this.def = def;\n if (this.$data) {\n this.schemaCode = it.gen.const(\"vSchema\", getData(this.$data, it));\n }\n else {\n this.schemaCode = this.schemaValue;\n if (!(0, keyword_1.validSchemaType)(this.schema, def.schemaType, def.allowUndefined)) {\n throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`);\n }\n }\n if (\"code\" in def ? def.trackErrors : def.errors !== false) {\n this.errsCount = it.gen.const(\"_errs\", names_1.default.errors);\n }\n }\n result(condition, successAction, failAction) {\n this.failResult((0, codegen_1.not)(condition), successAction, failAction);\n }\n failResult(condition, successAction, failAction) {\n this.gen.if(condition);\n if (failAction)\n failAction();\n else\n this.error();\n if (successAction) {\n this.gen.else();\n successAction();\n if (this.allErrors)\n this.gen.endIf();\n }\n else {\n if (this.allErrors)\n this.gen.endIf();\n else\n this.gen.else();\n }\n }\n pass(condition, failAction) {\n this.failResult((0, codegen_1.not)(condition), undefined, failAction);\n }\n fail(condition) {\n if (condition === undefined) {\n this.error();\n if (!this.allErrors)\n this.gen.if(false); // this branch will be removed by gen.optimize\n return;\n }\n this.gen.if(condition);\n this.error();\n if (this.allErrors)\n this.gen.endIf();\n else\n this.gen.else();\n }\n fail$data(condition) {\n if (!this.$data)\n return this.fail(condition);\n const { schemaCode } = this;\n this.fail((0, codegen_1._) `${schemaCode} !== undefined && (${(0, codegen_1.or)(this.invalid$data(), condition)})`);\n }\n error(append, errorParams, errorPaths) {\n if (errorParams) {\n this.setParams(errorParams);\n this._error(append, errorPaths);\n this.setParams({});\n return;\n }\n this._error(append, errorPaths);\n }\n _error(append, errorPaths) {\n ;\n (append ? errors_1.reportExtraError : errors_1.reportError)(this, this.def.error, errorPaths);\n }\n $dataError() {\n (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError);\n }\n reset() {\n if (this.errsCount === undefined)\n throw new Error('add \"trackErrors\" to keyword definition');\n (0, errors_1.resetErrorsCount)(this.gen, this.errsCount);\n }\n ok(cond) {\n if (!this.allErrors)\n this.gen.if(cond);\n }\n setParams(obj, assign) {\n if (assign)\n Object.assign(this.params, obj);\n else\n this.params = obj;\n }\n block$data(valid, codeBlock, $dataValid = codegen_1.nil) {\n this.gen.block(() => {\n this.check$data(valid, $dataValid);\n codeBlock();\n });\n }\n check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) {\n if (!this.$data)\n return;\n const { gen, schemaCode, schemaType, def } = this;\n gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid));\n if (valid !== codegen_1.nil)\n gen.assign(valid, true);\n if (schemaType.length || def.validateSchema) {\n gen.elseIf(this.invalid$data());\n this.$dataError();\n if (valid !== codegen_1.nil)\n gen.assign(valid, false);\n }\n gen.else();\n }\n invalid$data() {\n const { gen, schemaCode, schemaType, def, it } = this;\n return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema());\n function wrong$DataType() {\n if (schemaType.length) {\n /* istanbul ignore if */\n if (!(schemaCode instanceof codegen_1.Name))\n throw new Error(\"ajv implementation error\");\n const st = Array.isArray(schemaType) ? schemaType : [schemaType];\n return (0, codegen_1._) `${(0, dataType_2.checkDataTypes)(st, schemaCode, it.opts.strictNumbers, dataType_2.DataType.Wrong)}`;\n }\n return codegen_1.nil;\n }\n function invalid$DataSchema() {\n if (def.validateSchema) {\n const validateSchemaRef = gen.scopeValue(\"validate$data\", { ref: def.validateSchema }); // TODO value.code for standalone\n return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`;\n }\n return codegen_1.nil;\n }\n }\n subschema(appl, valid) {\n const subschema = (0, subschema_1.getSubschema)(this.it, appl);\n (0, subschema_1.extendSubschemaData)(subschema, this.it, appl);\n (0, subschema_1.extendSubschemaMode)(subschema, appl);\n const nextContext = { ...this.it, ...subschema, items: undefined, props: undefined };\n subschemaCode(nextContext, valid);\n return nextContext;\n }\n mergeEvaluated(schemaCxt, toName) {\n const { it, gen } = this;\n if (!it.opts.unevaluated)\n return;\n if (it.props !== true && schemaCxt.props !== undefined) {\n it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName);\n }\n if (it.items !== true && schemaCxt.items !== undefined) {\n it.items = util_1.mergeEvaluated.items(gen, schemaCxt.items, it.items, toName);\n }\n }\n mergeValidEvaluated(schemaCxt, valid) {\n const { it, gen } = this;\n if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {\n gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name));\n return true;\n }\n }\n}\nexports.KeywordCxt = KeywordCxt;\nfunction keywordCode(it, keyword, def, ruleType) {\n const cxt = new KeywordCxt(it, def, keyword);\n if (\"code\" in def) {\n def.code(cxt, ruleType);\n }\n else if (cxt.$data && def.validate) {\n (0, keyword_1.funcKeywordCode)(cxt, def);\n }\n else if (\"macro\" in def) {\n (0, keyword_1.macroKeywordCode)(cxt, def);\n }\n else if (def.compile || def.validate) {\n (0, keyword_1.funcKeywordCode)(cxt, def);\n }\n}\nconst JSON_POINTER = /^\\/(?:[^~]|~0|~1)*$/;\nconst RELATIVE_JSON_POINTER = /^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/;\nfunction getData($data, { dataLevel, dataNames, dataPathArr }) {\n let jsonPointer;\n let data;\n if ($data === \"\")\n return names_1.default.rootData;\n if ($data[0] === \"/\") {\n if (!JSON_POINTER.test($data))\n throw new Error(`Invalid JSON-pointer: ${$data}`);\n jsonPointer = $data;\n data = names_1.default.rootData;\n }\n else {\n const matches = RELATIVE_JSON_POINTER.exec($data);\n if (!matches)\n throw new Error(`Invalid JSON-pointer: ${$data}`);\n const up = +matches[1];\n jsonPointer = matches[2];\n if (jsonPointer === \"#\") {\n if (up >= dataLevel)\n throw new Error(errorMsg(\"property/index\", up));\n return dataPathArr[dataLevel - up];\n }\n if (up > dataLevel)\n throw new Error(errorMsg(\"data\", up));\n data = dataNames[dataLevel - up];\n if (!jsonPointer)\n return data;\n }\n let expr = data;\n const segments = jsonPointer.split(\"/\");\n for (const segment of segments) {\n if (segment) {\n data = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`;\n expr = (0, codegen_1._) `${expr} && ${data}`;\n }\n }\n return expr;\n function errorMsg(pointerType, up) {\n return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;\n }\n}\nexports.getData = getData;\n//# sourceMappingURL=index.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9","require$$10","self","keyword","subschema"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,eAAe,UAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,SAAA,UAAkB,SAAA,6CAAoD;AACtE,MAAM,eAAeA;AACrB,MAAM,aAAaC;AACnB,MAAM,kBAAkBC;AACxB,MAAM,aAAaD;AACnB,MAAM,aAAaE;AACnB,MAAM,YAAYC;AAClB,MAAM,cAAcC;AACpB,MAAM,YAAYC;AAClB,MAAM,UAAUC;AAChB,MAAM,YAAYC;AAClB,MAAM,SAASC;AACf,MAAM,WAAWC;AAEjB,SAAS,qBAAqB,IAAI;AAC9B,MAAI,YAAY,EAAE,GAAG;AACjB,kBAAc,EAAE;AAChB,QAAI,kBAAkB,EAAE,GAAG;AACvB,uBAAiB,EAAE;AACnB;AAAA,IACZ;AAAA,EACA;AACI,mBAAiB,IAAI,OAAM,GAAI,aAAa,sBAAsB,EAAE,CAAC;AACzE;AACA,SAAA,uBAA+B;AAC/B,SAAS,iBAAiB,EAAE,KAAK,cAAc,QAAQ,WAAW,KAAI,GAAI,MAAM;AAC5E,MAAI,KAAK,KAAK,KAAK;AACf,QAAI,KAAK,eAAc,GAAI,UAAU,KAAM,QAAQ,QAAQ,IAAI,KAAK,QAAQ,QAAQ,MAAM,IAAI,UAAU,QAAQ,MAAM;AAClH,UAAI,SAAS,UAAU,mBAAoB,cAAc,QAAQ,IAAI,CA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AAW,UAAU;AAC5B,QAAI,SAAS;AACT,cAAO,GAAI,UAAU,KAAM,IAAI,IAAG,GAAI,UAAU,cAAa,GAAI,OAAO,qBAAqB,OAAO,CAAC,CAAC;AACtG,cAAO,GAAI,UAAU,KAAM,IAAI,OAAO,IAAI;AAAA,IACtD;AAAA,EACA;AACI,SAAO;AACP,WAAS,SAAS,aAAa,IAAI;AAC/B,WAAO,iBAAiB,WAAW,IAAI,EAAE,gCAAgC,SAAS;AAAA,EAC1F;AACA;AACA,SAAA,UAAkB;","x_google_ignoreList":[0]}
@@ -2,7 +2,7 @@
2
2
  !(function() {
3
3
  try {
4
4
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "52aad5e8-35ca-4a46-9f15-f1350326d295", e._sentryDebugIdIdentifier = "sentry-dbid-52aad5e8-35ca-4a46-9f15-f1350326d295");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "65e83995-e349-4b2f-a825-1d1445f4db39", e._sentryDebugIdIdentifier = "sentry-dbid-65e83995-e349-4b2f-a825-1d1445f4db39");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
@@ -11,7 +11,7 @@ import "../codegen/index.js";
11
11
  import "../names.js";
12
12
  import "../../vocabularies/code.js";
13
13
  import "../errors.js";
14
- import { __exports as codegen } from "../../../../../../../../_virtual/index3.js";
14
+ import { __exports as codegen } from "../../../../../../../../_virtual/index2.js";
15
15
  import { __exports as names } from "../../../../../../../../_virtual/names.js";
16
16
  import { __exports as code } from "../../../../../../../../_virtual/code2.js";
17
17
  import { __exports as errors } from "../../../../../../../../_virtual/errors.js";
@@ -1 +1 @@
1
- {"version":3,"file":"keyword.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst code_1 = require(\"../../vocabularies/code\");\nconst errors_1 = require(\"../errors\");\nfunction macroKeywordCode(cxt, def) {\n const { gen, keyword, schema, parentSchema, it } = cxt;\n const macroSchema = def.macro.call(it.self, schema, parentSchema, it);\n const schemaRef = useKeyword(gen, keyword, macroSchema);\n if (it.opts.validateSchema !== false)\n it.self.validateSchema(macroSchema, true);\n const valid = gen.name(\"valid\");\n cxt.subschema({\n schema: macroSchema,\n schemaPath: codegen_1.nil,\n errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n topSchemaRef: schemaRef,\n compositeRule: true,\n }, valid);\n cxt.pass(valid, () => cxt.error(true));\n}\nexports.macroKeywordCode = macroKeywordCode;\nfunction funcKeywordCode(cxt, def) {\n var _a;\n const { gen, keyword, schema, parentSchema, $data, it } = cxt;\n checkAsyncKeyword(it, def);\n const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate;\n const validateRef = useKeyword(gen, keyword, validate);\n const valid = gen.let(\"valid\");\n cxt.block$data(valid, validateKeyword);\n cxt.ok((_a = def.valid) !== null && _a !== void 0 ? _a : valid);\n function validateKeyword() {\n if (def.errors === false) {\n assignValid();\n if (def.modifying)\n modifyData(cxt);\n reportErrs(() => cxt.error());\n }\n else {\n const ruleErrs = def.async ? validateAsync() : validateSync();\n if (def.modifying)\n modifyData(cxt);\n reportErrs(() => addErrs(cxt, ruleErrs));\n }\n }\n function validateAsync() {\n const ruleErrs = gen.let(\"ruleErrs\", null);\n gen.try(() => assignValid((0, codegen_1._) `await `), (e) => gen.assign(valid, false).if((0, codegen_1._) `${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._) `${e}.errors`), () => gen.throw(e)));\n return ruleErrs;\n }\n function validateSync() {\n const validateErrs = (0, codegen_1._) `${validateRef}.errors`;\n gen.assign(validateErrs, null);\n assignValid(codegen_1.nil);\n return validateErrs;\n }\n function assignValid(_await = def.async ? (0, codegen_1._) `await ` : codegen_1.nil) {\n const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self;\n const passSchema = !((\"compile\" in def && !$data) || def.schema === false);\n gen.assign(valid, (0, codegen_1._) `${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);\n }\n function reportErrs(errors) {\n var _a;\n gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== void 0 ? _a : valid), errors);\n }\n}\nexports.funcKeywordCode = funcKeywordCode;\nfunction modifyData(cxt) {\n const { gen, data, it } = cxt;\n gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._) `${it.parentData}[${it.parentDataProperty}]`));\n}\nfunction addErrs(cxt, errs) {\n const { gen } = cxt;\n gen.if((0, codegen_1._) `Array.isArray(${errs})`, () => {\n gen\n .assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`)\n .assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`);\n (0, errors_1.extendErrors)(cxt);\n }, () => cxt.error());\n}\nfunction checkAsyncKeyword({ schemaEnv }, def) {\n if (def.async && !schemaEnv.$async)\n throw new Error(\"async keyword in sync schema\");\n}\nfunction useKeyword(gen, keyword, result) {\n if (result === undefined)\n throw new Error(`keyword \"${keyword}\" failed to compile`);\n return gen.scopeValue(\"keyword\", typeof result == \"function\" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) });\n}\nfunction validSchemaType(schema, schemaType, allowUndefined = false) {\n // TODO add tests\n return (!schemaType.length ||\n schemaType.some((st) => st === \"array\"\n ? Array.isArray(schema)\n : st === \"object\"\n ? schema && typeof schema == \"object\" && !Array.isArray(schema)\n : typeof schema == st || (allowUndefined && typeof schema == \"undefined\")));\n}\nexports.validSchemaType = validSchemaType;\nfunction validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {\n /* istanbul ignore if */\n if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {\n throw new Error(\"ajv implementation error\");\n }\n const deps = def.dependencies;\n if (deps === null || deps === void 0 ? void 0 : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) {\n throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(\",\")}`);\n }\n if (def.validateSchema) {\n const valid = def.validateSchema(schema[keyword]);\n if (!valid) {\n const msg = `keyword \"${keyword}\" value is invalid at path \"${errSchemaPath}\": ` +\n self.errorsText(def.validateSchema.errors);\n if (opts.validateSchema === \"log\")\n self.logger.error(msg);\n else\n throw new Error(msg);\n }\n }\n}\nexports.validateKeywordUsage = validateKeywordUsage;\n//# sourceMappingURL=keyword.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","keyword","errors","_a","self"],"mappings":";;;;;;;;;;;;;;;;;AACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,QAAA,iDAAyD,QAAA,kBAA0B,QAAA,mBAA2B;AAC9G,MAAM,YAAYA;AAClB,MAAM,UAAUC;AAChB,MAAM,SAASC;AACf,MAAM,WAAWC;AACjB,SAAS,iBAAiB,KAAK,KAAK;AAChC,QAAM,EAAE,KAAK,SAAAC,UAAS,QAAQ,cAAc,GAAE,IAAK;AACnD,QAAM,cAAc,IAAI,MAAM,KAAK,GAAG,MAAM,QAAQ,cAAc,EAAE;AACpE,QAAM,YAAY,WAAW,KAAKA,UAAS,WAAW;AACtD,MAAI,GAAG,KAAK,mBAAmB;AAC3B,OAAG,KAAK,eAAe,aAAa,IAAI;AAC5C,QAAM,QAAQ,IAAI,KAAK,OAAO;AAC9B,MAAI,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,YAAY,UAAU;AAAA,IACtB,eAAe,GAAG,GAAG,aAAa,IAAIA,QAA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,IAAI,eAAe,MAAM;AAC7C,UAAI,KAAK,mBAAmB;AACxB,QAAAA,MAAK,OAAO,MAAM,GAAG;AAAA;AAErB,cAAM,IAAI,MAAM,GAAG;AAAA,IACnC;AAAA,EACA;AACA;AACA,QAAA,uBAA+B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"keyword.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst code_1 = require(\"../../vocabularies/code\");\nconst errors_1 = require(\"../errors\");\nfunction macroKeywordCode(cxt, def) {\n const { gen, keyword, schema, parentSchema, it } = cxt;\n const macroSchema = def.macro.call(it.self, schema, parentSchema, it);\n const schemaRef = useKeyword(gen, keyword, macroSchema);\n if (it.opts.validateSchema !== false)\n it.self.validateSchema(macroSchema, true);\n const valid = gen.name(\"valid\");\n cxt.subschema({\n schema: macroSchema,\n schemaPath: codegen_1.nil,\n errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n topSchemaRef: schemaRef,\n compositeRule: true,\n }, valid);\n cxt.pass(valid, () => cxt.error(true));\n}\nexports.macroKeywordCode = macroKeywordCode;\nfunction funcKeywordCode(cxt, def) {\n var _a;\n const { gen, keyword, schema, parentSchema, $data, it } = cxt;\n checkAsyncKeyword(it, def);\n const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate;\n const validateRef = useKeyword(gen, keyword, validate);\n const valid = gen.let(\"valid\");\n cxt.block$data(valid, validateKeyword);\n cxt.ok((_a = def.valid) !== null && _a !== void 0 ? _a : valid);\n function validateKeyword() {\n if (def.errors === false) {\n assignValid();\n if (def.modifying)\n modifyData(cxt);\n reportErrs(() => cxt.error());\n }\n else {\n const ruleErrs = def.async ? validateAsync() : validateSync();\n if (def.modifying)\n modifyData(cxt);\n reportErrs(() => addErrs(cxt, ruleErrs));\n }\n }\n function validateAsync() {\n const ruleErrs = gen.let(\"ruleErrs\", null);\n gen.try(() => assignValid((0, codegen_1._) `await `), (e) => gen.assign(valid, false).if((0, codegen_1._) `${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._) `${e}.errors`), () => gen.throw(e)));\n return ruleErrs;\n }\n function validateSync() {\n const validateErrs = (0, codegen_1._) `${validateRef}.errors`;\n gen.assign(validateErrs, null);\n assignValid(codegen_1.nil);\n return validateErrs;\n }\n function assignValid(_await = def.async ? (0, codegen_1._) `await ` : codegen_1.nil) {\n const passCxt = it.opts.passContext ? names_1.default.this : names_1.default.self;\n const passSchema = !((\"compile\" in def && !$data) || def.schema === false);\n gen.assign(valid, (0, codegen_1._) `${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);\n }\n function reportErrs(errors) {\n var _a;\n gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== void 0 ? _a : valid), errors);\n }\n}\nexports.funcKeywordCode = funcKeywordCode;\nfunction modifyData(cxt) {\n const { gen, data, it } = cxt;\n gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._) `${it.parentData}[${it.parentDataProperty}]`));\n}\nfunction addErrs(cxt, errs) {\n const { gen } = cxt;\n gen.if((0, codegen_1._) `Array.isArray(${errs})`, () => {\n gen\n .assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`)\n .assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`);\n (0, errors_1.extendErrors)(cxt);\n }, () => cxt.error());\n}\nfunction checkAsyncKeyword({ schemaEnv }, def) {\n if (def.async && !schemaEnv.$async)\n throw new Error(\"async keyword in sync schema\");\n}\nfunction useKeyword(gen, keyword, result) {\n if (result === undefined)\n throw new Error(`keyword \"${keyword}\" failed to compile`);\n return gen.scopeValue(\"keyword\", typeof result == \"function\" ? { ref: result } : { ref: result, code: (0, codegen_1.stringify)(result) });\n}\nfunction validSchemaType(schema, schemaType, allowUndefined = false) {\n // TODO add tests\n return (!schemaType.length ||\n schemaType.some((st) => st === \"array\"\n ? Array.isArray(schema)\n : st === \"object\"\n ? schema && typeof schema == \"object\" && !Array.isArray(schema)\n : typeof schema == st || (allowUndefined && typeof schema == \"undefined\")));\n}\nexports.validSchemaType = validSchemaType;\nfunction validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {\n /* istanbul ignore if */\n if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {\n throw new Error(\"ajv implementation error\");\n }\n const deps = def.dependencies;\n if (deps === null || deps === void 0 ? void 0 : deps.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) {\n throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(\",\")}`);\n }\n if (def.validateSchema) {\n const valid = def.validateSchema(schema[keyword]);\n if (!valid) {\n const msg = `keyword \"${keyword}\" value is invalid at path \"${errSchemaPath}\": ` +\n self.errorsText(def.validateSchema.errors);\n if (opts.validateSchema === \"log\")\n self.logger.error(msg);\n else\n throw new Error(msg);\n }\n }\n}\nexports.validateKeywordUsage = validateKeywordUsage;\n//# sourceMappingURL=keyword.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","keyword","errors","_a","self"],"mappings":";;;;;;;;;;;;;;;;;AACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,QAAA,iDAAyD,QAAA,kBAA0B,QAAA,mBAA2B;AAC9G,MAAM,YAAYA;AAClB,MAAM,UAAUC;AAChB,MAAM,SAASC;AACf,MAAM,WAAWC;AACjB,SAAS,iBAAiB,KAAK,KAAK;AAChC,QAAM,EAAE,KAAK,SAAAC,UAAS,QAAQ,cAAc,GAAE,IAAK;AACnD,QAAM,cAAc,IAAI,MAAM,KAAK,GAAG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e,KAAK,QAAQ,GAAG,CAAC,GAAG;AACpH,UAAM,IAAI,MAAM,2CAA2CA,QAAO,KAAK,KAAK,KAAK,GAAG,CAAC,EAAE;AAAA,EAC/F;AACI,MAAI,IAAI,gBAAgB;AACpB,UAAM,QAAQ,IAAI,eAAe,OAAOA,QAAO,CAAC;AAChD,QAAI,CAAC,OAAO;AACR,YAAM,MAAM,YAAYA,QAAO,+BAA+B,aAAa,QACvEG,MAAK,WAAW,IAAI,eAAe,MAAM;AAC7C,UAAI,KAAK,mBAAmB;AACxB,QAAAA,MAAK,OAAO,MAAM,GAAG;AAAA;AAErB,cAAM,IAAI,MAAM,GAAG;AAAA,IACnC;AAAA,EACA;AACA;AACA,QAAA,uBAA+B;","x_google_ignoreList":[0]}
@@ -2,15 +2,15 @@
2
2
  !(function() {
3
3
  try {
4
4
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d9cf8daf-5a3a-4b9d-b527-d011130ebb9c", e._sentryDebugIdIdentifier = "sentry-dbid-d9cf8daf-5a3a-4b9d-b527-d011130ebb9c");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b781da35-6235-4099-96ff-cc99fc49dcb0", e._sentryDebugIdIdentifier = "sentry-dbid-b781da35-6235-4099-96ff-cc99fc49dcb0");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as subschema } from "../../../../../../../../_virtual/subschema.js";
10
10
  import "../codegen/index.js";
11
11
  import "../util.js";
12
+ import { __exports as codegen } from "../../../../../../../../_virtual/index2.js";
12
13
  import { __exports as util } from "../../../../../../../../_virtual/util.js";
13
- import { __exports as codegen } from "../../../../../../../../_virtual/index3.js";
14
14
  Object.defineProperty(subschema, "__esModule", { value: true });
15
15
  subschema.extendSubschemaMode = subschema.extendSubschemaData = subschema.getSubschema = void 0;
16
16
  const codegen_1 = codegen;
@@ -1 +1 @@
1
- {"version":3,"file":"subschema.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nfunction getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {\n if (keyword !== undefined && schema !== undefined) {\n throw new Error('both \"keyword\" and \"schema\" passed, only one allowed');\n }\n if (keyword !== undefined) {\n const sch = it.schema[keyword];\n return schemaProp === undefined\n ? {\n schema: sch,\n schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`,\n errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n }\n : {\n schema: sch[schemaProp],\n schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`,\n errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}`,\n };\n }\n if (schema !== undefined) {\n if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) {\n throw new Error('\"schemaPath\", \"errSchemaPath\" and \"topSchemaRef\" are required with \"schema\"');\n }\n return {\n schema,\n schemaPath,\n topSchemaRef,\n errSchemaPath,\n };\n }\n throw new Error('either \"keyword\" or \"schema\" must be passed');\n}\nexports.getSubschema = getSubschema;\nfunction extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {\n if (data !== undefined && dataProp !== undefined) {\n throw new Error('both \"data\" and \"dataProp\" passed, only one allowed');\n }\n const { gen } = it;\n if (dataProp !== undefined) {\n const { errorPath, dataPathArr, opts } = it;\n const nextData = gen.let(\"data\", (0, codegen_1._) `${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true);\n dataContextProps(nextData);\n subschema.errorPath = (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`;\n subschema.parentDataProperty = (0, codegen_1._) `${dataProp}`;\n subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty];\n }\n if (data !== undefined) {\n const nextData = data instanceof codegen_1.Name ? data : gen.let(\"data\", data, true); // replaceable if used once?\n dataContextProps(nextData);\n if (propertyName !== undefined)\n subschema.propertyName = propertyName;\n // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr\n }\n if (dataTypes)\n subschema.dataTypes = dataTypes;\n function dataContextProps(_nextData) {\n subschema.data = _nextData;\n subschema.dataLevel = it.dataLevel + 1;\n subschema.dataTypes = [];\n it.definedProperties = new Set();\n subschema.parentData = it.data;\n subschema.dataNames = [...it.dataNames, _nextData];\n }\n}\nexports.extendSubschemaData = extendSubschemaData;\nfunction extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {\n if (compositeRule !== undefined)\n subschema.compositeRule = compositeRule;\n if (createErrors !== undefined)\n subschema.createErrors = createErrors;\n if (allErrors !== undefined)\n subschema.allErrors = allErrors;\n subschema.jtdDiscriminator = jtdDiscriminator; // not inherited\n subschema.jtdMetadata = jtdMetadata; // not inherited\n}\nexports.extendSubschemaMode = extendSubschemaMode;\n//# sourceMappingURL=subschema.js.map"],"names":["require$$0","require$$1","subschema"],"mappings":";;;;;;;;;;;;;AACA,OAAO,eAAe,WAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,UAAA,sBAA8B,UAAA,+CAAqD;AACnF,MAAM,YAAYA;AAClB,MAAM,SAASC;AACf,SAAS,aAAa,IAAI,EAAE,SAAS,YAAY,QAAQ,YAAY,eAAe,gBAAgB;AAChG,MAAI,YAAY,UAAa,WAAW,QAAW;AAC/C,UAAM,IAAI,MAAM,sDAAsD;AAAA,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Ac,UAAU,QAAQ,KAAK,gBAAgB,CAAC;AACzH,IAAAA,WAAU,sBAAqB,GAAI,UAAU,KAAM,QAAQ;AAC3D,IAAAA,WAAU,cAAc,CAAC,GAAG,aAAaA,WAAU,kBAAkB;AAAA,EAC7E;AACI,MAAI,SAAS,QAAW;AACpB,UAAM,WAAW,gBAAgB,UAAU,OAAO,OAAO,IAAI,IAAI,QAAQ,MAAM,IAAI;AACnF,qBAAiB,QAAQ;AACzB,QAAI,iBAAiB;AACjB,MAAAA,WAAU,eAAe;AAAA,EAErC;AACI,MAAI;AACA,IAAAA,WAAU,YAAY;AAC1B,WAAS,iBAAiB,WAAW;AACjC,IAAAA,WAAU,OAAO;AACjB,IAAAA,WAAU,YAAY,GAAG,YAAY;AACrC,IAAAA,WAAU,YAAY,CAAA;AACtB,OAAG,oBAAoB,oBAAI,IAAG;AAC9B,IAAAA,WAAU,aAAa,GAAG;AAC1B,IAAAA,WAAU,YAAY,CAAC,GAAG,GAAG,WAAW,SAAS;AAAA,EACzD;AACA;AACA,UAAA,sBAA8B;AAC9B,SAAS,oBAAoBA,YAAW,EAAE,kBAAkB,aAAa,eAAe,cAAc,aAAa;AAC/G,MAAI,kBAAkB;AAClB,IAAAA,WAAU,gBAAgB;AAC9B,MAAI,iBAAiB;AACjB,IAAAA,WAAU,eAAe;AAC7B,MAAI,cAAc;AACd,IAAAA,WAAU,YAAY;AAC1B,EAAAA,WAAU,mBAAmB;AAC7B,EAAAA,WAAU,cAAc;AAC5B;AACA,UAAA,sBAA8B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"subschema.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nfunction getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {\n if (keyword !== undefined && schema !== undefined) {\n throw new Error('both \"keyword\" and \"schema\" passed, only one allowed');\n }\n if (keyword !== undefined) {\n const sch = it.schema[keyword];\n return schemaProp === undefined\n ? {\n schema: sch,\n schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}`,\n errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n }\n : {\n schema: sch[schemaProp],\n schemaPath: (0, codegen_1._) `${it.schemaPath}${(0, codegen_1.getProperty)(keyword)}${(0, codegen_1.getProperty)(schemaProp)}`,\n errSchemaPath: `${it.errSchemaPath}/${keyword}/${(0, util_1.escapeFragment)(schemaProp)}`,\n };\n }\n if (schema !== undefined) {\n if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) {\n throw new Error('\"schemaPath\", \"errSchemaPath\" and \"topSchemaRef\" are required with \"schema\"');\n }\n return {\n schema,\n schemaPath,\n topSchemaRef,\n errSchemaPath,\n };\n }\n throw new Error('either \"keyword\" or \"schema\" must be passed');\n}\nexports.getSubschema = getSubschema;\nfunction extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {\n if (data !== undefined && dataProp !== undefined) {\n throw new Error('both \"data\" and \"dataProp\" passed, only one allowed');\n }\n const { gen } = it;\n if (dataProp !== undefined) {\n const { errorPath, dataPathArr, opts } = it;\n const nextData = gen.let(\"data\", (0, codegen_1._) `${it.data}${(0, codegen_1.getProperty)(dataProp)}`, true);\n dataContextProps(nextData);\n subschema.errorPath = (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`;\n subschema.parentDataProperty = (0, codegen_1._) `${dataProp}`;\n subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty];\n }\n if (data !== undefined) {\n const nextData = data instanceof codegen_1.Name ? data : gen.let(\"data\", data, true); // replaceable if used once?\n dataContextProps(nextData);\n if (propertyName !== undefined)\n subschema.propertyName = propertyName;\n // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr\n }\n if (dataTypes)\n subschema.dataTypes = dataTypes;\n function dataContextProps(_nextData) {\n subschema.data = _nextData;\n subschema.dataLevel = it.dataLevel + 1;\n subschema.dataTypes = [];\n it.definedProperties = new Set();\n subschema.parentData = it.data;\n subschema.dataNames = [...it.dataNames, _nextData];\n }\n}\nexports.extendSubschemaData = extendSubschemaData;\nfunction extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {\n if (compositeRule !== undefined)\n subschema.compositeRule = compositeRule;\n if (createErrors !== undefined)\n subschema.createErrors = createErrors;\n if (allErrors !== undefined)\n subschema.allErrors = allErrors;\n subschema.jtdDiscriminator = jtdDiscriminator; // not inherited\n subschema.jtdMetadata = jtdMetadata; // not inherited\n}\nexports.extendSubschemaMode = extendSubschemaMode;\n//# sourceMappingURL=subschema.js.map"],"names":["require$$0","require$$1","subschema"],"mappings":";;;;;;;;;;;;;AACA,OAAO,eAAe,WAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,UAAA,sBAA8B,UAAA,+CAAqD;AACnF,MAAM,YAAYA;AAClB,MAAM,SAASC;AACf,SAAS,aAAa,IAAI,EAAE,SAAS,YAAY,QAAQ,YAAY,eAAe,gBAAgB;AAChG,MAAI,YAAY,UAAa,WAAW,QAAW;AAC/C,UAAM,IAAI,MAAM,sDAAsD;AAAA,EAC9E;AACI,MAAI,YAAY,QAAW;AACvB,UAAM,MAAM,GAAG,OAAO,OAAO;AAC7B,WAAO,eAAe,SAChB;AAAA,MACE,QAAQ;AAAA,MACR,aAAY,GAAI,UAAU,KAAM,GAAG,UAAU,OAAO,UAAU,aAAa,OAAO,CAAC;AAAA,MACnF,eAAe,GAAG,GAAG,aAAa,IAAI,OAAO;AAAA,IAC7D,IACc;AAAA,MACE,QAAQ,IAAI,UAAU;AAAA,MACtB,aAAY,GAAI,UAAU,KAAM,GAAG,U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Ae;AAAA,EAErC;AACI,MAAI;AACA,IAAAA,WAAU,YAAY;AAC1B,WAAS,iBAAiB,WAAW;AACjC,IAAAA,WAAU,OAAO;AACjB,IAAAA,WAAU,YAAY,GAAG,YAAY;AACrC,IAAAA,WAAU,YAAY,CAAA;AACtB,OAAG,oBAAoB,oBAAI,IAAG;AAC9B,IAAAA,WAAU,aAAa,GAAG;AAC1B,IAAAA,WAAU,YAAY,CAAC,GAAG,GAAG,WAAW,SAAS;AAAA,EACzD;AACA;AACA,UAAA,sBAA8B;AAC9B,SAAS,oBAAoBA,YAAW,EAAE,kBAAkB,aAAa,eAAe,cAAc,aAAa;AAC/G,MAAI,kBAAkB;AAClB,IAAAA,WAAU,gBAAgB;AAC9B,MAAI,iBAAiB;AACjB,IAAAA,WAAU,eAAe;AAC7B,MAAI,cAAc;AACd,IAAAA,WAAU,YAAY;AAC1B,EAAAA,WAAU,mBAAmB;AAC7B,EAAAA,WAAU,cAAc;AAC5B;AACA,UAAA,sBAA8B;","x_google_ignoreList":[0]}
@@ -2,7 +2,7 @@
2
2
  !(function() {
3
3
  try {
4
4
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fe8d9854-8580-45a6-996b-eb805897fe5b", e._sentryDebugIdIdentifier = "sentry-dbid-fe8d9854-8580-45a6-996b-eb805897fe5b");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fa6432fa-9b52-414d-bdee-0e4f5c16ebc9", e._sentryDebugIdIdentifier = "sentry-dbid-fa6432fa-9b52-414d-bdee-0e4f5c16ebc9");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
@@ -18,8 +18,8 @@ import "./compile/validate/dataType.js";
18
18
  import "./compile/util.js";
19
19
  import require$$9 from "./refs/data.json.js";
20
20
  import "./runtime/uri.js";
21
- import { __exports as validate } from "../../../../../../_virtual/index2.js";
22
- import { __exports as codegen } from "../../../../../../_virtual/index3.js";
21
+ import { __exports as validate } from "../../../../../../_virtual/index.js";
22
+ import { __exports as codegen } from "../../../../../../_virtual/index2.js";
23
23
  import { __exports as validation_error } from "../../../../../../_virtual/validation_error.js";
24
24
  import { __exports as ref_error } from "../../../../../../_virtual/ref_error.js";
25
25
  import { __exports as rules } from "../../../../../../_virtual/rules.js";
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sources":["../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;\nvar validate_1 = require(\"./compile/validate\");\nObject.defineProperty(exports, \"KeywordCxt\", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });\nvar codegen_1 = require(\"./compile/codegen\");\nObject.defineProperty(exports, \"_\", { enumerable: true, get: function () { return codegen_1._; } });\nObject.defineProperty(exports, \"str\", { enumerable: true, get: function () { return codegen_1.str; } });\nObject.defineProperty(exports, \"stringify\", { enumerable: true, get: function () { return codegen_1.stringify; } });\nObject.defineProperty(exports, \"nil\", { enumerable: true, get: function () { return codegen_1.nil; } });\nObject.defineProperty(exports, \"Name\", { enumerable: true, get: function () { return codegen_1.Name; } });\nObject.defineProperty(exports, \"CodeGen\", { enumerable: true, get: function () { return codegen_1.CodeGen; } });\nconst validation_error_1 = require(\"./runtime/validation_error\");\nconst ref_error_1 = require(\"./compile/ref_error\");\nconst rules_1 = require(\"./compile/rules\");\nconst compile_1 = require(\"./compile\");\nconst codegen_2 = require(\"./compile/codegen\");\nconst resolve_1 = require(\"./compile/resolve\");\nconst dataType_1 = require(\"./compile/validate/dataType\");\nconst util_1 = require(\"./compile/util\");\nconst $dataRefSchema = require(\"./refs/data.json\");\nconst uri_1 = require(\"./runtime/uri\");\nconst defaultRegExp = (str, flags) => new RegExp(str, flags);\ndefaultRegExp.code = \"new RegExp\";\nconst META_IGNORE_OPTIONS = [\"removeAdditional\", \"useDefaults\", \"coerceTypes\"];\nconst EXT_SCOPE_NAMES = new Set([\n \"validate\",\n \"serialize\",\n \"parse\",\n \"wrapper\",\n \"root\",\n \"schema\",\n \"keyword\",\n \"pattern\",\n \"formats\",\n \"validate$data\",\n \"func\",\n \"obj\",\n \"Error\",\n]);\nconst removedOptions = {\n errorDataPath: \"\",\n format: \"`validateFormats: false` can be used instead.\",\n nullable: '\"nullable\" keyword is supported by default.',\n jsonPointers: \"Deprecated jsPropertySyntax can be used instead.\",\n extendRefs: \"Deprecated ignoreKeywordsWithRef can be used instead.\",\n missingRefs: \"Pass empty schema with $id that should be ignored to ajv.addSchema.\",\n processCode: \"Use option `code: {process: (code, schemaEnv: object) => string}`\",\n sourceCode: \"Use option `code: {source: true}`\",\n strictDefaults: \"It is default now, see option `strict`.\",\n strictKeywords: \"It is default now, see option `strict`.\",\n uniqueItems: '\"uniqueItems\" keyword is always validated.',\n unknownFormats: \"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).\",\n cache: \"Map is used as cache, schema object as key.\",\n serialize: \"Map is used as cache, schema object as key.\",\n ajvErrors: \"It is default now.\",\n};\nconst deprecatedOptions = {\n ignoreKeywordsWithRef: \"\",\n jsPropertySyntax: \"\",\n unicode: '\"minLength\"/\"maxLength\" account for unicode characters by default.',\n};\nconst MAX_EXPRESSION = 200;\n// eslint-disable-next-line complexity\nfunction requiredOptions(o) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;\n const s = o.strict;\n const _optz = (_a = o.code) === null || _a === void 0 ? void 0 : _a.optimize;\n const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0;\n const regExp = (_c = (_b = o.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp;\n const uriResolver = (_d = o.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default;\n return {\n strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== void 0 ? _e : s) !== null && _f !== void 0 ? _f : true,\n strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true,\n strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : \"log\",\n strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : \"log\",\n strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false,\n code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp },\n loopRequired: (_q = o.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION,\n loopEnum: (_r = o.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION,\n meta: (_s = o.meta) !== null && _s !== void 0 ? _s : true,\n messages: (_t = o.messages) !== null && _t !== void 0 ? _t : true,\n inlineRefs: (_u = o.inlineRefs) !== null && _u !== void 0 ? _u : true,\n schemaId: (_v = o.schemaId) !== null && _v !== void 0 ? _v : \"$id\",\n addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== void 0 ? _w : true,\n validateSchema: (_x = o.validateSchema) !== null && _x !== void 0 ? _x : true,\n validateFormats: (_y = o.validateFormats) !== null && _y !== void 0 ? _y : true,\n unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== void 0 ? _z : true,\n int32range: (_0 = o.int32range) !== null && _0 !== void 0 ? _0 : true,\n uriResolver: uriResolver,\n };\n}\nclass Ajv {\n constructor(opts = {}) {\n this.schemas = {};\n this.refs = {};\n this.formats = {};\n this._compilations = new Set();\n this._loading = {};\n this._cache = new Map();\n opts = this.opts = { ...opts, ...requiredOptions(opts) };\n const { es5, lines } = this.opts.code;\n this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines });\n this.logger = getLogger(opts.logger);\n const formatOpt = opts.validateFormats;\n opts.validateFormats = false;\n this.RULES = (0, rules_1.getRules)();\n checkOptions.call(this, removedOptions, opts, \"NOT SUPPORTED\");\n checkOptions.call(this, deprecatedOptions, opts, \"DEPRECATED\", \"warn\");\n this._metaOpts = getMetaSchemaOptions.call(this);\n if (opts.formats)\n addInitialFormats.call(this);\n this._addVocabularies();\n this._addDefaultMetaSchema();\n if (opts.keywords)\n addInitialKeywords.call(this, opts.keywords);\n if (typeof opts.meta == \"object\")\n this.addMetaSchema(opts.meta);\n addInitialSchemas.call(this);\n opts.validateFormats = formatOpt;\n }\n _addVocabularies() {\n this.addKeyword(\"$async\");\n }\n _addDefaultMetaSchema() {\n const { $data, meta, schemaId } = this.opts;\n let _dataRefSchema = $dataRefSchema;\n if (schemaId === \"id\") {\n _dataRefSchema = { ...$dataRefSchema };\n _dataRefSchema.id = _dataRefSchema.$id;\n delete _dataRefSchema.$id;\n }\n if (meta && $data)\n this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false);\n }\n defaultMeta() {\n const { meta, schemaId } = this.opts;\n return (this.opts.defaultMeta = typeof meta == \"object\" ? meta[schemaId] || meta : undefined);\n }\n validate(schemaKeyRef, // key, ref or schema object\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n data // to be validated\n ) {\n let v;\n if (typeof schemaKeyRef == \"string\") {\n v = this.getSchema(schemaKeyRef);\n if (!v)\n throw new Error(`no schema with key or ref \"${schemaKeyRef}\"`);\n }\n else {\n v = this.compile(schemaKeyRef);\n }\n const valid = v(data);\n if (!(\"$async\" in v))\n this.errors = v.errors;\n return valid;\n }\n compile(schema, _meta) {\n const sch = this._addSchema(schema, _meta);\n return (sch.validate || this._compileSchemaEnv(sch));\n }\n compileAsync(schema, meta) {\n if (typeof this.opts.loadSchema != \"function\") {\n throw new Error(\"options.loadSchema should be a function\");\n }\n const { loadSchema } = this.opts;\n return runCompileAsync.call(this, schema, meta);\n async function runCompileAsync(_schema, _meta) {\n await loadMetaSchema.call(this, _schema.$schema);\n const sch = this._addSchema(_schema, _meta);\n return sch.validate || _compileAsync.call(this, sch);\n }\n async function loadMetaSchema($ref) {\n if ($ref && !this.getSchema($ref)) {\n await runCompileAsync.call(this, { $ref }, true);\n }\n }\n async function _compileAsync(sch) {\n try {\n return this._compileSchemaEnv(sch);\n }\n catch (e) {\n if (!(e instanceof ref_error_1.default))\n throw e;\n checkLoaded.call(this, e);\n await loadMissingSchema.call(this, e.missingSchema);\n return _compileAsync.call(this, sch);\n }\n }\n function checkLoaded({ missingSchema: ref, missingRef }) {\n if (this.refs[ref]) {\n throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`);\n }\n }\n async function loadMissingSchema(ref) {\n const _schema = await _loadSchema.call(this, ref);\n if (!this.refs[ref])\n await loadMetaSchema.call(this, _schema.$schema);\n if (!this.refs[ref])\n this.addSchema(_schema, ref, meta);\n }\n async function _loadSchema(ref) {\n const p = this._loading[ref];\n if (p)\n return p;\n try {\n return await (this._loading[ref] = loadSchema(ref));\n }\n finally {\n delete this._loading[ref];\n }\n }\n }\n // Adds schema to the instance\n addSchema(schema, // If array is passed, `key` will be ignored\n key, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n _meta, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead.\n ) {\n if (Array.isArray(schema)) {\n for (const sch of schema)\n this.addSchema(sch, undefined, _meta, _validateSchema);\n return this;\n }\n let id;\n if (typeof schema === \"object\") {\n const { schemaId } = this.opts;\n id = schema[schemaId];\n if (id !== undefined && typeof id != \"string\") {\n throw new Error(`schema ${schemaId} must be string`);\n }\n }\n key = (0, resolve_1.normalizeId)(key || id);\n this._checkUnique(key);\n this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true);\n return this;\n }\n // Add schema that will be used to validate other schemas\n // options in META_IGNORE_OPTIONS are alway set to false\n addMetaSchema(schema, key, // schema key\n _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema\n ) {\n this.addSchema(schema, key, true, _validateSchema);\n return this;\n }\n // Validate schema against its meta-schema\n validateSchema(schema, throwOrLogError) {\n if (typeof schema == \"boolean\")\n return true;\n let $schema;\n $schema = schema.$schema;\n if ($schema !== undefined && typeof $schema != \"string\") {\n throw new Error(\"$schema must be a string\");\n }\n $schema = $schema || this.opts.defaultMeta || this.defaultMeta();\n if (!$schema) {\n this.logger.warn(\"meta-schema not available\");\n this.errors = null;\n return true;\n }\n const valid = this.validate($schema, schema);\n if (!valid && throwOrLogError) {\n const message = \"schema is invalid: \" + this.errorsText();\n if (this.opts.validateSchema === \"log\")\n this.logger.error(message);\n else\n throw new Error(message);\n }\n return valid;\n }\n // Get compiled schema by `key` or `ref`.\n // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)\n getSchema(keyRef) {\n let sch;\n while (typeof (sch = getSchEnv.call(this, keyRef)) == \"string\")\n keyRef = sch;\n if (sch === undefined) {\n const { schemaId } = this.opts;\n const root = new compile_1.SchemaEnv({ schema: {}, schemaId });\n sch = compile_1.resolveSchema.call(this, root, keyRef);\n if (!sch)\n return;\n this.refs[keyRef] = sch;\n }\n return (sch.validate || this._compileSchemaEnv(sch));\n }\n // Remove cached schema(s).\n // If no parameter is passed all schemas but meta-schemas are removed.\n // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.\n // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.\n removeSchema(schemaKeyRef) {\n if (schemaKeyRef instanceof RegExp) {\n this._removeAllSchemas(this.schemas, schemaKeyRef);\n this._removeAllSchemas(this.refs, schemaKeyRef);\n return this;\n }\n switch (typeof schemaKeyRef) {\n case \"undefined\":\n this._removeAllSchemas(this.schemas);\n this._removeAllSchemas(this.refs);\n this._cache.clear();\n return this;\n case \"string\": {\n const sch = getSchEnv.call(this, schemaKeyRef);\n if (typeof sch == \"object\")\n this._cache.delete(sch.schema);\n delete this.schemas[schemaKeyRef];\n delete this.refs[schemaKeyRef];\n return this;\n }\n case \"object\": {\n const cacheKey = schemaKeyRef;\n this._cache.delete(cacheKey);\n let id = schemaKeyRef[this.opts.schemaId];\n if (id) {\n id = (0, resolve_1.normalizeId)(id);\n delete this.schemas[id];\n delete this.refs[id];\n }\n return this;\n }\n default:\n throw new Error(\"ajv.removeSchema: invalid parameter\");\n }\n }\n // add \"vocabulary\" - a collection of keywords\n addVocabulary(definitions) {\n for (const def of definitions)\n this.addKeyword(def);\n return this;\n }\n addKeyword(kwdOrDef, def // deprecated\n ) {\n let keyword;\n if (typeof kwdOrDef == \"string\") {\n keyword = kwdOrDef;\n if (typeof def == \"object\") {\n this.logger.warn(\"these parameters are deprecated, see docs for addKeyword\");\n def.keyword = keyword;\n }\n }\n else if (typeof kwdOrDef == \"object\" && def === undefined) {\n def = kwdOrDef;\n keyword = def.keyword;\n if (Array.isArray(keyword) && !keyword.length) {\n throw new Error(\"addKeywords: keyword must be string or non-empty array\");\n }\n }\n else {\n throw new Error(\"invalid addKeywords parameters\");\n }\n checkKeyword.call(this, keyword, def);\n if (!def) {\n (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd));\n return this;\n }\n keywordMetaschema.call(this, def);\n const definition = {\n ...def,\n type: (0, dataType_1.getJSONTypes)(def.type),\n schemaType: (0, dataType_1.getJSONTypes)(def.schemaType),\n };\n (0, util_1.eachItem)(keyword, definition.type.length === 0\n ? (k) => addRule.call(this, k, definition)\n : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)));\n return this;\n }\n getKeyword(keyword) {\n const rule = this.RULES.all[keyword];\n return typeof rule == \"object\" ? rule.definition : !!rule;\n }\n // Remove keyword\n removeKeyword(keyword) {\n // TODO return type should be Ajv\n const { RULES } = this;\n delete RULES.keywords[keyword];\n delete RULES.all[keyword];\n for (const group of RULES.rules) {\n const i = group.rules.findIndex((rule) => rule.keyword === keyword);\n if (i >= 0)\n group.rules.splice(i, 1);\n }\n return this;\n }\n // Add format\n addFormat(name, format) {\n if (typeof format == \"string\")\n format = new RegExp(format);\n this.formats[name] = format;\n return this;\n }\n errorsText(errors = this.errors, // optional array of validation errors\n { separator = \", \", dataVar = \"data\" } = {} // optional options with properties `separator` and `dataVar`\n ) {\n if (!errors || errors.length === 0)\n return \"No errors\";\n return errors\n .map((e) => `${dataVar}${e.instancePath} ${e.message}`)\n .reduce((text, msg) => text + separator + msg);\n }\n $dataMetaSchema(metaSchema, keywordsJsonPointers) {\n const rules = this.RULES.all;\n metaSchema = JSON.parse(JSON.stringify(metaSchema));\n for (const jsonPointer of keywordsJsonPointers) {\n const segments = jsonPointer.split(\"/\").slice(1); // first segment is an empty string\n let keywords = metaSchema;\n for (const seg of segments)\n keywords = keywords[seg];\n for (const key in rules) {\n const rule = rules[key];\n if (typeof rule != \"object\")\n continue;\n const { $data } = rule.definition;\n const schema = keywords[key];\n if ($data && schema)\n keywords[key] = schemaOrData(schema);\n }\n }\n return metaSchema;\n }\n _removeAllSchemas(schemas, regex) {\n for (const keyRef in schemas) {\n const sch = schemas[keyRef];\n if (!regex || regex.test(keyRef)) {\n if (typeof sch == \"string\") {\n delete schemas[keyRef];\n }\n else if (sch && !sch.meta) {\n this._cache.delete(sch.schema);\n delete schemas[keyRef];\n }\n }\n }\n }\n _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {\n let id;\n const { schemaId } = this.opts;\n if (typeof schema == \"object\") {\n id = schema[schemaId];\n }\n else {\n if (this.opts.jtd)\n throw new Error(\"schema must be object\");\n else if (typeof schema != \"boolean\")\n throw new Error(\"schema must be object or boolean\");\n }\n let sch = this._cache.get(schema);\n if (sch !== undefined)\n return sch;\n baseId = (0, resolve_1.normalizeId)(id || baseId);\n const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId);\n sch = new compile_1.SchemaEnv({ schema, schemaId, meta, baseId, localRefs });\n this._cache.set(sch.schema, sch);\n if (addSchema && !baseId.startsWith(\"#\")) {\n // TODO atm it is allowed to overwrite schemas without id (instead of not adding them)\n if (baseId)\n this._checkUnique(baseId);\n this.refs[baseId] = sch;\n }\n if (validateSchema)\n this.validateSchema(schema, true);\n return sch;\n }\n _checkUnique(id) {\n if (this.schemas[id] || this.refs[id]) {\n throw new Error(`schema with key or id \"${id}\" already exists`);\n }\n }\n _compileSchemaEnv(sch) {\n if (sch.meta)\n this._compileMetaSchema(sch);\n else\n compile_1.compileSchema.call(this, sch);\n /* istanbul ignore if */\n if (!sch.validate)\n throw new Error(\"ajv implementation error\");\n return sch.validate;\n }\n _compileMetaSchema(sch) {\n const currentOpts = this.opts;\n this.opts = this._metaOpts;\n try {\n compile_1.compileSchema.call(this, sch);\n }\n finally {\n this.opts = currentOpts;\n }\n }\n}\nAjv.ValidationError = validation_error_1.default;\nAjv.MissingRefError = ref_error_1.default;\nexports.default = Ajv;\nfunction checkOptions(checkOpts, options, msg, log = \"error\") {\n for (const key in checkOpts) {\n const opt = key;\n if (opt in options)\n this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`);\n }\n}\nfunction getSchEnv(keyRef) {\n keyRef = (0, resolve_1.normalizeId)(keyRef); // TODO tests fail without this line\n return this.schemas[keyRef] || this.refs[keyRef];\n}\nfunction addInitialSchemas() {\n const optsSchemas = this.opts.schemas;\n if (!optsSchemas)\n return;\n if (Array.isArray(optsSchemas))\n this.addSchema(optsSchemas);\n else\n for (const key in optsSchemas)\n this.addSchema(optsSchemas[key], key);\n}\nfunction addInitialFormats() {\n for (const name in this.opts.formats) {\n const format = this.opts.formats[name];\n if (format)\n this.addFormat(name, format);\n }\n}\nfunction addInitialKeywords(defs) {\n if (Array.isArray(defs)) {\n this.addVocabulary(defs);\n return;\n }\n this.logger.warn(\"keywords option as map is deprecated, pass array\");\n for (const keyword in defs) {\n const def = defs[keyword];\n if (!def.keyword)\n def.keyword = keyword;\n this.addKeyword(def);\n }\n}\nfunction getMetaSchemaOptions() {\n const metaOpts = { ...this.opts };\n for (const opt of META_IGNORE_OPTIONS)\n delete metaOpts[opt];\n return metaOpts;\n}\nconst noLogs = { log() { }, warn() { }, error() { } };\nfunction getLogger(logger) {\n if (logger === false)\n return noLogs;\n if (logger === undefined)\n return console;\n if (logger.log && logger.warn && logger.error)\n return logger;\n throw new Error(\"logger must implement log, warn and error methods\");\n}\nconst KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;\nfunction checkKeyword(keyword, def) {\n const { RULES } = this;\n (0, util_1.eachItem)(keyword, (kwd) => {\n if (RULES.keywords[kwd])\n throw new Error(`Keyword ${kwd} is already defined`);\n if (!KEYWORD_NAME.test(kwd))\n throw new Error(`Keyword ${kwd} has invalid name`);\n });\n if (!def)\n return;\n if (def.$data && !(\"code\" in def || \"validate\" in def)) {\n throw new Error('$data keyword must have \"code\" or \"validate\" function');\n }\n}\nfunction addRule(keyword, definition, dataType) {\n var _a;\n const post = definition === null || definition === void 0 ? void 0 : definition.post;\n if (dataType && post)\n throw new Error('keyword with \"post\" flag cannot have \"type\"');\n const { RULES } = this;\n let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);\n if (!ruleGroup) {\n ruleGroup = { type: dataType, rules: [] };\n RULES.rules.push(ruleGroup);\n }\n RULES.keywords[keyword] = true;\n if (!definition)\n return;\n const rule = {\n keyword,\n definition: {\n ...definition,\n type: (0, dataType_1.getJSONTypes)(definition.type),\n schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType),\n },\n };\n if (definition.before)\n addBeforeRule.call(this, ruleGroup, rule, definition.before);\n else\n ruleGroup.rules.push(rule);\n RULES.all[keyword] = rule;\n (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));\n}\nfunction addBeforeRule(ruleGroup, rule, before) {\n const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);\n if (i >= 0) {\n ruleGroup.rules.splice(i, 0, rule);\n }\n else {\n ruleGroup.rules.push(rule);\n this.logger.warn(`rule ${before} is not defined`);\n }\n}\nfunction keywordMetaschema(def) {\n let { metaSchema } = def;\n if (metaSchema === undefined)\n return;\n if (def.$data && this.opts.$data)\n metaSchema = schemaOrData(metaSchema);\n def.validateSchema = this.compile(metaSchema, true);\n}\nconst $dataRef = {\n $ref: \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n};\nfunction schemaOrData(schema) {\n return { anyOf: [schema, $dataRef] };\n}\n//# sourceMappingURL=core.js.map"],"names":["exports","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$10","rules","dataType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAO,eAAcA,WAAU,cAAc,EAAE,OAAO,MAAM;AAC5DA,YAAA,UAAkBA,UAAA,OAAeA,gBAAcA,UAAA,YAAoBA,UAAA,MAAcA,cAAYA,UAAA,aAAqB;AAClH,MAAI,aAAaC;AACjB,SAAO,eAAeD,WAAS,cAAc,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,WAAW;AAAA,EAAW,EAAE,CAAE;AACrH,MAAI,YAAYE;AAChB,SAAO,eAAeF,WAAS,KAAK,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,UAAU;AAAA,EAAE,EAAE,CAAE;AAClG,SAAO,eAAeA,WAAS,OAAO,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,UAAU;AAAA,EAAI,EAAE,CAAE;AACtG,SAAO,eAAeA,WAAS,aAAa,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,UAAU;AAAA,EAAU,EAAE,CAAE;AAClH,SAAO,eAAeA,WAAS,OAAO,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,UAAU;AAAA,EAAI,EAAE,CAAE;AACtG,SAAO,eAAeA,WAAS,QA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;AACD,gBAAU,MAAM,KAAK,IAAI;AACzB,WAAK,OAAO,KAAK,QAAQ,MAAM,iBAAiB;AAAA,IACxD;AAAA,EACA;AACA,WAAS,kBAAkB,KAAK;AAC5B,QAAI,EAAE,WAAU,IAAK;AACrB,QAAI,eAAe;AACf;AACJ,QAAI,IAAI,SAAS,KAAK,KAAK;AACvB,mBAAa,aAAa,UAAU;AACxC,QAAI,iBAAiB,KAAK,QAAQ,YAAY,IAAI;AAAA,EACtD;AACA,QAAM,WAAW;AAAA,IACb,MAAM;AAAA,EACV;AACA,WAAS,aAAa,QAAQ;AAC1B,WAAO,EAAE,OAAO,CAAC,QAAQ,QAAQ,EAAC;AAAA,EACtC;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"core.js","sources":["../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;\nvar validate_1 = require(\"./compile/validate\");\nObject.defineProperty(exports, \"KeywordCxt\", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });\nvar codegen_1 = require(\"./compile/codegen\");\nObject.defineProperty(exports, \"_\", { enumerable: true, get: function () { return codegen_1._; } });\nObject.defineProperty(exports, \"str\", { enumerable: true, get: function () { return codegen_1.str; } });\nObject.defineProperty(exports, \"stringify\", { enumerable: true, get: function () { return codegen_1.stringify; } });\nObject.defineProperty(exports, \"nil\", { enumerable: true, get: function () { return codegen_1.nil; } });\nObject.defineProperty(exports, \"Name\", { enumerable: true, get: function () { return codegen_1.Name; } });\nObject.defineProperty(exports, \"CodeGen\", { enumerable: true, get: function () { return codegen_1.CodeGen; } });\nconst validation_error_1 = require(\"./runtime/validation_error\");\nconst ref_error_1 = require(\"./compile/ref_error\");\nconst rules_1 = require(\"./compile/rules\");\nconst compile_1 = require(\"./compile\");\nconst codegen_2 = require(\"./compile/codegen\");\nconst resolve_1 = require(\"./compile/resolve\");\nconst dataType_1 = require(\"./compile/validate/dataType\");\nconst util_1 = require(\"./compile/util\");\nconst $dataRefSchema = require(\"./refs/data.json\");\nconst uri_1 = require(\"./runtime/uri\");\nconst defaultRegExp = (str, flags) => new RegExp(str, flags);\ndefaultRegExp.code = \"new RegExp\";\nconst META_IGNORE_OPTIONS = [\"removeAdditional\", \"useDefaults\", \"coerceTypes\"];\nconst EXT_SCOPE_NAMES = new Set([\n \"validate\",\n \"serialize\",\n \"parse\",\n \"wrapper\",\n \"root\",\n \"schema\",\n \"keyword\",\n \"pattern\",\n \"formats\",\n \"validate$data\",\n \"func\",\n \"obj\",\n \"Error\",\n]);\nconst removedOptions = {\n errorDataPath: \"\",\n format: \"`validateFormats: false` can be used instead.\",\n nullable: '\"nullable\" keyword is supported by default.',\n jsonPointers: \"Deprecated jsPropertySyntax can be used instead.\",\n extendRefs: \"Deprecated ignoreKeywordsWithRef can be used instead.\",\n missingRefs: \"Pass empty schema with $id that should be ignored to ajv.addSchema.\",\n processCode: \"Use option `code: {process: (code, schemaEnv: object) => string}`\",\n sourceCode: \"Use option `code: {source: true}`\",\n strictDefaults: \"It is default now, see option `strict`.\",\n strictKeywords: \"It is default now, see option `strict`.\",\n uniqueItems: '\"uniqueItems\" keyword is always validated.',\n unknownFormats: \"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).\",\n cache: \"Map is used as cache, schema object as key.\",\n serialize: \"Map is used as cache, schema object as key.\",\n ajvErrors: \"It is default now.\",\n};\nconst deprecatedOptions = {\n ignoreKeywordsWithRef: \"\",\n jsPropertySyntax: \"\",\n unicode: '\"minLength\"/\"maxLength\" account for unicode characters by default.',\n};\nconst MAX_EXPRESSION = 200;\n// eslint-disable-next-line complexity\nfunction requiredOptions(o) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;\n const s = o.strict;\n const _optz = (_a = o.code) === null || _a === void 0 ? void 0 : _a.optimize;\n const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0;\n const regExp = (_c = (_b = o.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp;\n const uriResolver = (_d = o.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default;\n return {\n strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== void 0 ? _e : s) !== null && _f !== void 0 ? _f : true,\n strictNumbers: (_h = (_g = o.strictNumbers) !== null && _g !== void 0 ? _g : s) !== null && _h !== void 0 ? _h : true,\n strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== void 0 ? _j : s) !== null && _k !== void 0 ? _k : \"log\",\n strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== void 0 ? _l : s) !== null && _m !== void 0 ? _m : \"log\",\n strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== void 0 ? _o : s) !== null && _p !== void 0 ? _p : false,\n code: o.code ? { ...o.code, optimize, regExp } : { optimize, regExp },\n loopRequired: (_q = o.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION,\n loopEnum: (_r = o.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION,\n meta: (_s = o.meta) !== null && _s !== void 0 ? _s : true,\n messages: (_t = o.messages) !== null && _t !== void 0 ? _t : true,\n inlineRefs: (_u = o.inlineRefs) !== null && _u !== void 0 ? _u : true,\n schemaId: (_v = o.schemaId) !== null && _v !== void 0 ? _v : \"$id\",\n addUsedSchema: (_w = o.addUsedSchema) !== null && _w !== void 0 ? _w : true,\n validateSchema: (_x = o.validateSchema) !== null && _x !== void 0 ? _x : true,\n validateFormats: (_y = o.validateFormats) !== null && _y !== void 0 ? _y : true,\n unicodeRegExp: (_z = o.unicodeRegExp) !== null && _z !== void 0 ? _z : true,\n int32range: (_0 = o.int32range) !== null && _0 !== void 0 ? _0 : true,\n uriResolver: uriResolver,\n };\n}\nclass Ajv {\n constructor(opts = {}) {\n this.schemas = {};\n this.refs = {};\n this.formats = {};\n this._compilations = new Set();\n this._loading = {};\n this._cache = new Map();\n opts = this.opts = { ...opts, ...requiredOptions(opts) };\n const { es5, lines } = this.opts.code;\n this.scope = new codegen_2.ValueScope({ scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines });\n this.logger = getLogger(opts.logger);\n const formatOpt = opts.validateFormats;\n opts.validateFormats = false;\n this.RULES = (0, rules_1.getRules)();\n checkOptions.call(this, removedOptions, opts, \"NOT SUPPORTED\");\n checkOptions.call(this, deprecatedOptions, opts, \"DEPRECATED\", \"warn\");\n this._metaOpts = getMetaSchemaOptions.call(this);\n if (opts.formats)\n addInitialFormats.call(this);\n this._addVocabularies();\n this._addDefaultMetaSchema();\n if (opts.keywords)\n addInitialKeywords.call(this, opts.keywords);\n if (typeof opts.meta == \"object\")\n this.addMetaSchema(opts.meta);\n addInitialSchemas.call(this);\n opts.validateFormats = formatOpt;\n }\n _addVocabularies() {\n this.addKeyword(\"$async\");\n }\n _addDefaultMetaSchema() {\n const { $data, meta, schemaId } = this.opts;\n let _dataRefSchema = $dataRefSchema;\n if (schemaId === \"id\") {\n _dataRefSchema = { ...$dataRefSchema };\n _dataRefSchema.id = _dataRefSchema.$id;\n delete _dataRefSchema.$id;\n }\n if (meta && $data)\n this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false);\n }\n defaultMeta() {\n const { meta, schemaId } = this.opts;\n return (this.opts.defaultMeta = typeof meta == \"object\" ? meta[schemaId] || meta : undefined);\n }\n validate(schemaKeyRef, // key, ref or schema object\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n data // to be validated\n ) {\n let v;\n if (typeof schemaKeyRef == \"string\") {\n v = this.getSchema(schemaKeyRef);\n if (!v)\n throw new Error(`no schema with key or ref \"${schemaKeyRef}\"`);\n }\n else {\n v = this.compile(schemaKeyRef);\n }\n const valid = v(data);\n if (!(\"$async\" in v))\n this.errors = v.errors;\n return valid;\n }\n compile(schema, _meta) {\n const sch = this._addSchema(schema, _meta);\n return (sch.validate || this._compileSchemaEnv(sch));\n }\n compileAsync(schema, meta) {\n if (typeof this.opts.loadSchema != \"function\") {\n throw new Error(\"options.loadSchema should be a function\");\n }\n const { loadSchema } = this.opts;\n return runCompileAsync.call(this, schema, meta);\n async function runCompileAsync(_schema, _meta) {\n await loadMetaSchema.call(this, _schema.$schema);\n const sch = this._addSchema(_schema, _meta);\n return sch.validate || _compileAsync.call(this, sch);\n }\n async function loadMetaSchema($ref) {\n if ($ref && !this.getSchema($ref)) {\n await runCompileAsync.call(this, { $ref }, true);\n }\n }\n async function _compileAsync(sch) {\n try {\n return this._compileSchemaEnv(sch);\n }\n catch (e) {\n if (!(e instanceof ref_error_1.default))\n throw e;\n checkLoaded.call(this, e);\n await loadMissingSchema.call(this, e.missingSchema);\n return _compileAsync.call(this, sch);\n }\n }\n function checkLoaded({ missingSchema: ref, missingRef }) {\n if (this.refs[ref]) {\n throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`);\n }\n }\n async function loadMissingSchema(ref) {\n const _schema = await _loadSchema.call(this, ref);\n if (!this.refs[ref])\n await loadMetaSchema.call(this, _schema.$schema);\n if (!this.refs[ref])\n this.addSchema(_schema, ref, meta);\n }\n async function _loadSchema(ref) {\n const p = this._loading[ref];\n if (p)\n return p;\n try {\n return await (this._loading[ref] = loadSchema(ref));\n }\n finally {\n delete this._loading[ref];\n }\n }\n }\n // Adds schema to the instance\n addSchema(schema, // If array is passed, `key` will be ignored\n key, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n _meta, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead.\n ) {\n if (Array.isArray(schema)) {\n for (const sch of schema)\n this.addSchema(sch, undefined, _meta, _validateSchema);\n return this;\n }\n let id;\n if (typeof schema === \"object\") {\n const { schemaId } = this.opts;\n id = schema[schemaId];\n if (id !== undefined && typeof id != \"string\") {\n throw new Error(`schema ${schemaId} must be string`);\n }\n }\n key = (0, resolve_1.normalizeId)(key || id);\n this._checkUnique(key);\n this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true);\n return this;\n }\n // Add schema that will be used to validate other schemas\n // options in META_IGNORE_OPTIONS are alway set to false\n addMetaSchema(schema, key, // schema key\n _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema\n ) {\n this.addSchema(schema, key, true, _validateSchema);\n return this;\n }\n // Validate schema against its meta-schema\n validateSchema(schema, throwOrLogError) {\n if (typeof schema == \"boolean\")\n return true;\n let $schema;\n $schema = schema.$schema;\n if ($schema !== undefined && typeof $schema != \"string\") {\n throw new Error(\"$schema must be a string\");\n }\n $schema = $schema || this.opts.defaultMeta || this.defaultMeta();\n if (!$schema) {\n this.logger.warn(\"meta-schema not available\");\n this.errors = null;\n return true;\n }\n const valid = this.validate($schema, schema);\n if (!valid && throwOrLogError) {\n const message = \"schema is invalid: \" + this.errorsText();\n if (this.opts.validateSchema === \"log\")\n this.logger.error(message);\n else\n throw new Error(message);\n }\n return valid;\n }\n // Get compiled schema by `key` or `ref`.\n // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)\n getSchema(keyRef) {\n let sch;\n while (typeof (sch = getSchEnv.call(this, keyRef)) == \"string\")\n keyRef = sch;\n if (sch === undefined) {\n const { schemaId } = this.opts;\n const root = new compile_1.SchemaEnv({ schema: {}, schemaId });\n sch = compile_1.resolveSchema.call(this, root, keyRef);\n if (!sch)\n return;\n this.refs[keyRef] = sch;\n }\n return (sch.validate || this._compileSchemaEnv(sch));\n }\n // Remove cached schema(s).\n // If no parameter is passed all schemas but meta-schemas are removed.\n // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.\n // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.\n removeSchema(schemaKeyRef) {\n if (schemaKeyRef instanceof RegExp) {\n this._removeAllSchemas(this.schemas, schemaKeyRef);\n this._removeAllSchemas(this.refs, schemaKeyRef);\n return this;\n }\n switch (typeof schemaKeyRef) {\n case \"undefined\":\n this._removeAllSchemas(this.schemas);\n this._removeAllSchemas(this.refs);\n this._cache.clear();\n return this;\n case \"string\": {\n const sch = getSchEnv.call(this, schemaKeyRef);\n if (typeof sch == \"object\")\n this._cache.delete(sch.schema);\n delete this.schemas[schemaKeyRef];\n delete this.refs[schemaKeyRef];\n return this;\n }\n case \"object\": {\n const cacheKey = schemaKeyRef;\n this._cache.delete(cacheKey);\n let id = schemaKeyRef[this.opts.schemaId];\n if (id) {\n id = (0, resolve_1.normalizeId)(id);\n delete this.schemas[id];\n delete this.refs[id];\n }\n return this;\n }\n default:\n throw new Error(\"ajv.removeSchema: invalid parameter\");\n }\n }\n // add \"vocabulary\" - a collection of keywords\n addVocabulary(definitions) {\n for (const def of definitions)\n this.addKeyword(def);\n return this;\n }\n addKeyword(kwdOrDef, def // deprecated\n ) {\n let keyword;\n if (typeof kwdOrDef == \"string\") {\n keyword = kwdOrDef;\n if (typeof def == \"object\") {\n this.logger.warn(\"these parameters are deprecated, see docs for addKeyword\");\n def.keyword = keyword;\n }\n }\n else if (typeof kwdOrDef == \"object\" && def === undefined) {\n def = kwdOrDef;\n keyword = def.keyword;\n if (Array.isArray(keyword) && !keyword.length) {\n throw new Error(\"addKeywords: keyword must be string or non-empty array\");\n }\n }\n else {\n throw new Error(\"invalid addKeywords parameters\");\n }\n checkKeyword.call(this, keyword, def);\n if (!def) {\n (0, util_1.eachItem)(keyword, (kwd) => addRule.call(this, kwd));\n return this;\n }\n keywordMetaschema.call(this, def);\n const definition = {\n ...def,\n type: (0, dataType_1.getJSONTypes)(def.type),\n schemaType: (0, dataType_1.getJSONTypes)(def.schemaType),\n };\n (0, util_1.eachItem)(keyword, definition.type.length === 0\n ? (k) => addRule.call(this, k, definition)\n : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)));\n return this;\n }\n getKeyword(keyword) {\n const rule = this.RULES.all[keyword];\n return typeof rule == \"object\" ? rule.definition : !!rule;\n }\n // Remove keyword\n removeKeyword(keyword) {\n // TODO return type should be Ajv\n const { RULES } = this;\n delete RULES.keywords[keyword];\n delete RULES.all[keyword];\n for (const group of RULES.rules) {\n const i = group.rules.findIndex((rule) => rule.keyword === keyword);\n if (i >= 0)\n group.rules.splice(i, 1);\n }\n return this;\n }\n // Add format\n addFormat(name, format) {\n if (typeof format == \"string\")\n format = new RegExp(format);\n this.formats[name] = format;\n return this;\n }\n errorsText(errors = this.errors, // optional array of validation errors\n { separator = \", \", dataVar = \"data\" } = {} // optional options with properties `separator` and `dataVar`\n ) {\n if (!errors || errors.length === 0)\n return \"No errors\";\n return errors\n .map((e) => `${dataVar}${e.instancePath} ${e.message}`)\n .reduce((text, msg) => text + separator + msg);\n }\n $dataMetaSchema(metaSchema, keywordsJsonPointers) {\n const rules = this.RULES.all;\n metaSchema = JSON.parse(JSON.stringify(metaSchema));\n for (const jsonPointer of keywordsJsonPointers) {\n const segments = jsonPointer.split(\"/\").slice(1); // first segment is an empty string\n let keywords = metaSchema;\n for (const seg of segments)\n keywords = keywords[seg];\n for (const key in rules) {\n const rule = rules[key];\n if (typeof rule != \"object\")\n continue;\n const { $data } = rule.definition;\n const schema = keywords[key];\n if ($data && schema)\n keywords[key] = schemaOrData(schema);\n }\n }\n return metaSchema;\n }\n _removeAllSchemas(schemas, regex) {\n for (const keyRef in schemas) {\n const sch = schemas[keyRef];\n if (!regex || regex.test(keyRef)) {\n if (typeof sch == \"string\") {\n delete schemas[keyRef];\n }\n else if (sch && !sch.meta) {\n this._cache.delete(sch.schema);\n delete schemas[keyRef];\n }\n }\n }\n }\n _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {\n let id;\n const { schemaId } = this.opts;\n if (typeof schema == \"object\") {\n id = schema[schemaId];\n }\n else {\n if (this.opts.jtd)\n throw new Error(\"schema must be object\");\n else if (typeof schema != \"boolean\")\n throw new Error(\"schema must be object or boolean\");\n }\n let sch = this._cache.get(schema);\n if (sch !== undefined)\n return sch;\n baseId = (0, resolve_1.normalizeId)(id || baseId);\n const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId);\n sch = new compile_1.SchemaEnv({ schema, schemaId, meta, baseId, localRefs });\n this._cache.set(sch.schema, sch);\n if (addSchema && !baseId.startsWith(\"#\")) {\n // TODO atm it is allowed to overwrite schemas without id (instead of not adding them)\n if (baseId)\n this._checkUnique(baseId);\n this.refs[baseId] = sch;\n }\n if (validateSchema)\n this.validateSchema(schema, true);\n return sch;\n }\n _checkUnique(id) {\n if (this.schemas[id] || this.refs[id]) {\n throw new Error(`schema with key or id \"${id}\" already exists`);\n }\n }\n _compileSchemaEnv(sch) {\n if (sch.meta)\n this._compileMetaSchema(sch);\n else\n compile_1.compileSchema.call(this, sch);\n /* istanbul ignore if */\n if (!sch.validate)\n throw new Error(\"ajv implementation error\");\n return sch.validate;\n }\n _compileMetaSchema(sch) {\n const currentOpts = this.opts;\n this.opts = this._metaOpts;\n try {\n compile_1.compileSchema.call(this, sch);\n }\n finally {\n this.opts = currentOpts;\n }\n }\n}\nAjv.ValidationError = validation_error_1.default;\nAjv.MissingRefError = ref_error_1.default;\nexports.default = Ajv;\nfunction checkOptions(checkOpts, options, msg, log = \"error\") {\n for (const key in checkOpts) {\n const opt = key;\n if (opt in options)\n this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`);\n }\n}\nfunction getSchEnv(keyRef) {\n keyRef = (0, resolve_1.normalizeId)(keyRef); // TODO tests fail without this line\n return this.schemas[keyRef] || this.refs[keyRef];\n}\nfunction addInitialSchemas() {\n const optsSchemas = this.opts.schemas;\n if (!optsSchemas)\n return;\n if (Array.isArray(optsSchemas))\n this.addSchema(optsSchemas);\n else\n for (const key in optsSchemas)\n this.addSchema(optsSchemas[key], key);\n}\nfunction addInitialFormats() {\n for (const name in this.opts.formats) {\n const format = this.opts.formats[name];\n if (format)\n this.addFormat(name, format);\n }\n}\nfunction addInitialKeywords(defs) {\n if (Array.isArray(defs)) {\n this.addVocabulary(defs);\n return;\n }\n this.logger.warn(\"keywords option as map is deprecated, pass array\");\n for (const keyword in defs) {\n const def = defs[keyword];\n if (!def.keyword)\n def.keyword = keyword;\n this.addKeyword(def);\n }\n}\nfunction getMetaSchemaOptions() {\n const metaOpts = { ...this.opts };\n for (const opt of META_IGNORE_OPTIONS)\n delete metaOpts[opt];\n return metaOpts;\n}\nconst noLogs = { log() { }, warn() { }, error() { } };\nfunction getLogger(logger) {\n if (logger === false)\n return noLogs;\n if (logger === undefined)\n return console;\n if (logger.log && logger.warn && logger.error)\n return logger;\n throw new Error(\"logger must implement log, warn and error methods\");\n}\nconst KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;\nfunction checkKeyword(keyword, def) {\n const { RULES } = this;\n (0, util_1.eachItem)(keyword, (kwd) => {\n if (RULES.keywords[kwd])\n throw new Error(`Keyword ${kwd} is already defined`);\n if (!KEYWORD_NAME.test(kwd))\n throw new Error(`Keyword ${kwd} has invalid name`);\n });\n if (!def)\n return;\n if (def.$data && !(\"code\" in def || \"validate\" in def)) {\n throw new Error('$data keyword must have \"code\" or \"validate\" function');\n }\n}\nfunction addRule(keyword, definition, dataType) {\n var _a;\n const post = definition === null || definition === void 0 ? void 0 : definition.post;\n if (dataType && post)\n throw new Error('keyword with \"post\" flag cannot have \"type\"');\n const { RULES } = this;\n let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);\n if (!ruleGroup) {\n ruleGroup = { type: dataType, rules: [] };\n RULES.rules.push(ruleGroup);\n }\n RULES.keywords[keyword] = true;\n if (!definition)\n return;\n const rule = {\n keyword,\n definition: {\n ...definition,\n type: (0, dataType_1.getJSONTypes)(definition.type),\n schemaType: (0, dataType_1.getJSONTypes)(definition.schemaType),\n },\n };\n if (definition.before)\n addBeforeRule.call(this, ruleGroup, rule, definition.before);\n else\n ruleGroup.rules.push(rule);\n RULES.all[keyword] = rule;\n (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));\n}\nfunction addBeforeRule(ruleGroup, rule, before) {\n const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);\n if (i >= 0) {\n ruleGroup.rules.splice(i, 0, rule);\n }\n else {\n ruleGroup.rules.push(rule);\n this.logger.warn(`rule ${before} is not defined`);\n }\n}\nfunction keywordMetaschema(def) {\n let { metaSchema } = def;\n if (metaSchema === undefined)\n return;\n if (def.$data && this.opts.$data)\n metaSchema = schemaOrData(metaSchema);\n def.validateSchema = this.compile(metaSchema, true);\n}\nconst $dataRef = {\n $ref: \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n};\nfunction schemaOrData(schema) {\n return { anyOf: [schema, $dataRef] };\n}\n//# sourceMappingURL=core.js.map"],"names":["exports","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$10","rules","dataType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAO,eAAcA,WAAU,cAAc,EAAE,OAAO,MAAM;AAC5DA,YAAA,UAAkBA,UAAA,OAAeA,gBAAcA,UAAA,YAAoBA,UAAA,MAAcA,cAAYA,UAAA,aAAqB;AAClH,MAAI,aAAaC;AACjB,SAAO,eAAeD,WAAS,cAAc,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,WAAW;AAAA,EAAW,EAAE,CAAE;AACrH,MAAI,YAAYE;AAChB,SAAO,eAAeF,WAAS,KAAK,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,UAAU;AAAA,EAAE,EAAE,CAAE;AAClG,SAAO,eAAeA,WAAS,OAAO,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,UAAU;AAAA,EAAI,EAAE,CAAE;AACtG,SAAO,eAAeA,WAAS,aAAa,EAAE,YAAY,MAAM,KAAK,WAAY;AAAE,WAAO,UAAU;AA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Q;AAC5C,UAAM,IAAI,UAAU,MAAM,UAAU,CAAC,UAAU,MAAM,YAAY,MAAM;AACvE,QAAI,KAAK,GAAG;AACR,gBAAU,MAAM,OAAO,GAAG,GAAG,IAAI;AAAA,IACzC,OACS;AACD,gBAAU,MAAM,KAAK,IAAI;AACzB,WAAK,OAAO,KAAK,QAAQ,MAAM,iBAAiB;AAAA,IACxD;AAAA,EACA;AACA,WAAS,kBAAkB,KAAK;AAC5B,QAAI,EAAE,WAAU,IAAK;AACrB,QAAI,eAAe;AACf;AACJ,QAAI,IAAI,SAAS,KAAK,KAAK;AACvB,mBAAa,aAAa,UAAU;AACxC,QAAI,iBAAiB,KAAK,QAAQ,YAAY,IAAI;AAAA,EACtD;AACA,QAAM,WAAW;AAAA,IACb,MAAM;AAAA,EACV;AACA,WAAS,aAAa,QAAQ;AAC1B,WAAO,EAAE,OAAO,CAAC,QAAQ,QAAQ,EAAC;AAAA,EACtC;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"equal.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// https://github.com/ajv-validator/ajv/issues/889\nconst equal = require(\"fast-deep-equal\");\nequal.code = 'require(\"ajv/dist/runtime/equal\").default';\nexports.default = equal;\n//# sourceMappingURL=equal.js.map"],"names":["equal_1","require$$0"],"mappings":";;;;;;;;;;AACA,OAAO,eAAeA,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAE5D,MAAM,QAAQC;AACd,MAAM,OAAO;AACbD,QAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"equal.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// https://github.com/ajv-validator/ajv/issues/889\nconst equal = require(\"fast-deep-equal\");\nequal.code = 'require(\"ajv/dist/runtime/equal\").default';\nexports.default = equal;\n//# sourceMappingURL=equal.js.map"],"names":["equal_1","require$$0"],"mappings":";;;;;;;;;;AACA,OAAO,eAAeA,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAE5D,MAAM,QAAQC;AACd,MAAM,OAAO;AACbD,QAAA,UAAkB;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"ucs2length.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\nfunction ucs2length(str) {\n const len = str.length;\n let length = 0;\n let pos = 0;\n let value;\n while (pos < len) {\n length++;\n value = str.charCodeAt(pos++);\n if (value >= 0xd800 && value <= 0xdbff && pos < len) {\n // high surrogate, and there is a next character\n value = str.charCodeAt(pos);\n if ((value & 0xfc00) === 0xdc00)\n pos++; // low surrogate\n }\n }\n return length;\n}\nexports.default = ucs2length;\nucs2length.code = 'require(\"ajv/dist/runtime/ucs2length\").default';\n//# sourceMappingURL=ucs2length.js.map"],"names":["ucs2length_1"],"mappings":";;;;;;;;;AACA,OAAO,eAAeA,cAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAG5D,SAAS,WAAW,KAAK;AACrB,QAAM,MAAM,IAAI;AAChB,MAAI,SAAS;AACb,MAAI,MAAM;AACV,MAAI;AACJ,SAAO,MAAM,KAAK;AACd;AACA,YAAQ,IAAI,WAAW,KAAK;AAC5B,QAAI,SAAS,SAAU,SAAS,SAAU,MAAM,KAAK;AAEjD,cAAQ,IAAI,WAAW,GAAG;AAC1B,WAAK,QAAQ,WAAY;AACrB;AAAA,IAChB;AAAA,EACA;AACI,SAAO;AACX;AACAA,aAAA,UAAkB;AAClB,WAAW,OAAO;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ucs2length.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\nfunction ucs2length(str) {\n const len = str.length;\n let length = 0;\n let pos = 0;\n let value;\n while (pos < len) {\n length++;\n value = str.charCodeAt(pos++);\n if (value >= 0xd800 && value <= 0xdbff && pos < len) {\n // high surrogate, and there is a next character\n value = str.charCodeAt(pos);\n if ((value & 0xfc00) === 0xdc00)\n pos++; // low surrogate\n }\n }\n return length;\n}\nexports.default = ucs2length;\nucs2length.code = 'require(\"ajv/dist/runtime/ucs2length\").default';\n//# sourceMappingURL=ucs2length.js.map"],"names":["ucs2length_1"],"mappings":";;;;;;;;;AACA,OAAO,eAAeA,cAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAG5D,SAAS,WAAW,KAAK;AACrB,QAAM,MAAM,IAAI;AAChB,MAAI,SAAS;AACb,MAAI,MAAM;AACV,MAAI;AACJ,SAAO,MAAM,KAAK;AACd;AACA,YAAQ,IAAI,WAAW,KAAK;AAC5B,QAAI,SAAS,SAAU,SAAS,SAAU,MAAM,KAAK;AAEjD,cAAQ,IAAI,WAAW,GAAG;AAC1B,WAAK,QAAQ,WAAY;AACrB;AAAA,IAChB;AAAA,EACA;AACI,SAAO;AACX;AACAA,aAAA,UAAkB;AAClB,WAAW,OAAO;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"uri.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst uri = require(\"fast-uri\");\nuri.code = 'require(\"ajv/dist/runtime/uri\").default';\nexports.default = uri;\n//# sourceMappingURL=uri.js.map"],"names":["uri_1","require$$0"],"mappings":";;;;;;;;;;AACA,OAAO,eAAeA,OAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,MAAMC;AACZ,IAAI,OAAO;AACXD,MAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"uri.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst uri = require(\"fast-uri\");\nuri.code = 'require(\"ajv/dist/runtime/uri\").default';\nexports.default = uri;\n//# sourceMappingURL=uri.js.map"],"names":["uri_1","require$$0"],"mappings":";;;;;;;;;;AACA,OAAO,eAAeA,OAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,MAAMC;AACZ,IAAI,OAAO;AACXD,MAAA,UAAkB;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"validation_error.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nclass ValidationError extends Error {\n constructor(errors) {\n super(\"validation failed\");\n this.errors = errors;\n this.ajv = this.validation = true;\n }\n}\nexports.default = ValidationError;\n//# sourceMappingURL=validation_error.js.map"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,eAAe,kBAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,wBAAwB,MAAM;AAAA,EAChC,YAAY,QAAQ;AAChB,UAAM,mBAAmB;AACzB,SAAK,SAAS;AACd,SAAK,MAAM,KAAK,aAAa;AAAA,EACrC;AACA;AACA,iBAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"validation_error.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nclass ValidationError extends Error {\n constructor(errors) {\n super(\"validation failed\");\n this.errors = errors;\n this.ajv = this.validation = true;\n }\n}\nexports.default = ValidationError;\n//# sourceMappingURL=validation_error.js.map"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,eAAe,kBAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,wBAAwB,MAAM;AAAA,EAChC,YAAY,QAAQ;AAChB,UAAM,mBAAmB;AACzB,SAAK,SAAS;AACd,SAAK,MAAM,KAAK,aAAa;AAAA,EACrC;AACA;AACA,iBAAA,UAAkB;","x_google_ignoreList":[0]}
@@ -2,14 +2,14 @@
2
2
  !(function() {
3
3
  try {
4
4
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3388ada8-698e-45f6-90e1-3fd802eda925", e._sentryDebugIdIdentifier = "sentry-dbid-3388ada8-698e-45f6-90e1-3fd802eda925");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e7a2d60c-f75f-4560-a96a-092d7bc4e09b", e._sentryDebugIdIdentifier = "sentry-dbid-e7a2d60c-f75f-4560-a96a-092d7bc4e09b");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as additionalItems } from "../../../../../../../../_virtual/additionalItems.js";
10
10
  import "../../compile/codegen/index.js";
11
11
  import "../../compile/util.js";
12
- import { __exports as codegen } from "../../../../../../../../_virtual/index3.js";
12
+ import { __exports as codegen } from "../../../../../../../../_virtual/index2.js";
13
13
  import { __exports as util } from "../../../../../../../../_virtual/util.js";
14
14
  Object.defineProperty(additionalItems, "__esModule", { value: true });
15
15
  additionalItems.validateAdditionalItems = void 0;