@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":"errors.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst util_1 = require(\"./util\");\nconst names_1 = require(\"./names\");\nexports.keywordError = {\n message: ({ keyword }) => (0, codegen_1.str) `must pass \"${keyword}\" keyword validation`,\n};\nexports.keyword$DataError = {\n message: ({ keyword, schemaType }) => schemaType\n ? (0, codegen_1.str) `\"${keyword}\" keyword must be ${schemaType} ($data)`\n : (0, codegen_1.str) `\"${keyword}\" keyword is invalid ($data)`,\n};\nfunction reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {\n const { it } = cxt;\n const { gen, compositeRule, allErrors } = it;\n const errObj = errorObjectCode(cxt, error, errorPaths);\n if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) {\n addError(gen, errObj);\n }\n else {\n returnErrors(it, (0, codegen_1._) `[${errObj}]`);\n }\n}\nexports.reportError = reportError;\nfunction reportExtraError(cxt, error = exports.keywordError, errorPaths) {\n const { it } = cxt;\n const { gen, compositeRule, allErrors } = it;\n const errObj = errorObjectCode(cxt, error, errorPaths);\n addError(gen, errObj);\n if (!(compositeRule || allErrors)) {\n returnErrors(it, names_1.default.vErrors);\n }\n}\nexports.reportExtraError = reportExtraError;\nfunction resetErrorsCount(gen, errsCount) {\n gen.assign(names_1.default.errors, errsCount);\n gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));\n}\nexports.resetErrorsCount = resetErrorsCount;\nfunction extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) {\n /* istanbul ignore if */\n if (errsCount === undefined)\n throw new Error(\"ajv implementation error\");\n const err = gen.name(\"err\");\n gen.forRange(\"i\", errsCount, names_1.default.errors, (i) => {\n gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`);\n gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath)));\n gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`);\n if (it.opts.verbose) {\n gen.assign((0, codegen_1._) `${err}.schema`, schemaValue);\n gen.assign((0, codegen_1._) `${err}.data`, data);\n }\n });\n}\nexports.extendErrors = extendErrors;\nfunction addError(gen, errObj) {\n const err = gen.const(\"err\", errObj);\n gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`);\n gen.code((0, codegen_1._) `${names_1.default.errors}++`);\n}\nfunction returnErrors(it, errs) {\n const { gen, validateName, schemaEnv } = it;\n if (schemaEnv.$async) {\n gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, errs);\n gen.return(false);\n }\n}\nconst E = {\n keyword: new codegen_1.Name(\"keyword\"),\n schemaPath: new codegen_1.Name(\"schemaPath\"), // also used in JTD errors\n params: new codegen_1.Name(\"params\"),\n propertyName: new codegen_1.Name(\"propertyName\"),\n message: new codegen_1.Name(\"message\"),\n schema: new codegen_1.Name(\"schema\"),\n parentSchema: new codegen_1.Name(\"parentSchema\"),\n};\nfunction errorObjectCode(cxt, error, errorPaths) {\n const { createErrors } = cxt.it;\n if (createErrors === false)\n return (0, codegen_1._) `{}`;\n return errorObject(cxt, error, errorPaths);\n}\nfunction errorObject(cxt, error, errorPaths = {}) {\n const { gen, it } = cxt;\n const keyValues = [\n errorInstancePath(it, errorPaths),\n errorSchemaPath(cxt, errorPaths),\n ];\n extraErrorProps(cxt, error, keyValues);\n return gen.object(...keyValues);\n}\nfunction errorInstancePath({ errorPath }, { instancePath }) {\n const instPath = instancePath\n ? (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}`\n : errorPath;\n return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)];\n}\nfunction errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) {\n let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`;\n if (schemaPath) {\n schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`;\n }\n return [E.schemaPath, schPath];\n}\nfunction extraErrorProps(cxt, { params, message }, keyValues) {\n const { keyword, data, schemaValue, it } = cxt;\n const { opts, propertyName, topSchemaRef, schemaPath } = it;\n keyValues.push([E.keyword, keyword], [E.params, typeof params == \"function\" ? params(cxt) : params || (0, codegen_1._) `{}`]);\n if (opts.messages) {\n keyValues.push([E.message, typeof message == \"function\" ? message(cxt) : message]);\n }\n if (opts.verbose) {\n keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]);\n }\n if (propertyName)\n keyValues.push([E.propertyName, propertyName]);\n}\n//# sourceMappingURL=errors.js.map"],"names":["exports","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;AACA,SAAO,eAAcA,WAAU,cAAc,EAAE,OAAO,MAAM;AAC5DA,YAAA,eAAuBA,6BAA2BA,UAAA,mBAA2BA,UAAA,cAAsBA,8BAA4BA,UAAA,eAAuB;AACtJ,QAAM,YAAYC;AAClB,QAAM,SAASC;AACf,QAAM,UAAUC;AAChBH,YAAA,eAAuB;AAAA,IACnB,SAAS,CAAC,EAAE,QAAO,OAAO,GAAI,UAAU,kBAAmB,OAAO;AAAA,EACtE;AACAA,YAAA,oBAA4B;AAAA,IACxB,SAAS,CAAC,EAAE,SAAS,iBAAiB,cAChC,GAAI,UAAU,QAAS,OAAO,qBAAqB,UAAU,cAC7D,GAAI,UAAU,QAAS,OAAO;AAAA,EACxC;AACA,WAAS,YAAY,KAAK,QAAQA,UAAQ,cAAc,YAAY,mBAAmB;AACnF,UAAM,EAAE,GAAE,IAAK;AACf,UAAM,EAAE,KAAK,eAAe,UAAS,IAAK;AAC1C,UAAM,SAAS,gBAAgB,KAAK,OAAO,UAAU;AACrD,QAAI,sBAAsB,QAAQ,sBAAsB,SAAS,oBAAqB,iBAAiB,WAAY;AAC/G,eAAS,KAAK,MAAM;AAAA,IAC5B,OACS;AACD,mBAAa,KAAI,GAAI,UAAU,MAAO,MAAM,GAAG;AAAA,IACvD;AAAA,EACA;AACAA,YAAA,cAAsB;AACtB,WAAS,iBAAiB,KAAK,QAAQA,UAAQ,cAAc,Y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AACI,QAAI,KAAK,SAAS;AACd,gBAAU,KAAK,CAAC,EAAE,QAAQ,WAAW,GAAG,CAAC,EAAE,kBAAkB,UAAU,KAAM,YAAY,GAAG,UAAU,EAAE,GAAG,CAAC,QAAQ,QAAQ,MAAM,IAAI,CAAC;AAAA,IAC/I;AACI,QAAI;AACA,gBAAU,KAAK,CAAC,EAAE,cAAc,YAAY,CAAC;AAAA,EACrD;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"errors.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst util_1 = require(\"./util\");\nconst names_1 = require(\"./names\");\nexports.keywordError = {\n message: ({ keyword }) => (0, codegen_1.str) `must pass \"${keyword}\" keyword validation`,\n};\nexports.keyword$DataError = {\n message: ({ keyword, schemaType }) => schemaType\n ? (0, codegen_1.str) `\"${keyword}\" keyword must be ${schemaType} ($data)`\n : (0, codegen_1.str) `\"${keyword}\" keyword is invalid ($data)`,\n};\nfunction reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {\n const { it } = cxt;\n const { gen, compositeRule, allErrors } = it;\n const errObj = errorObjectCode(cxt, error, errorPaths);\n if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : (compositeRule || allErrors)) {\n addError(gen, errObj);\n }\n else {\n returnErrors(it, (0, codegen_1._) `[${errObj}]`);\n }\n}\nexports.reportError = reportError;\nfunction reportExtraError(cxt, error = exports.keywordError, errorPaths) {\n const { it } = cxt;\n const { gen, compositeRule, allErrors } = it;\n const errObj = errorObjectCode(cxt, error, errorPaths);\n addError(gen, errObj);\n if (!(compositeRule || allErrors)) {\n returnErrors(it, names_1.default.vErrors);\n }\n}\nexports.reportExtraError = reportExtraError;\nfunction resetErrorsCount(gen, errsCount) {\n gen.assign(names_1.default.errors, errsCount);\n gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));\n}\nexports.resetErrorsCount = resetErrorsCount;\nfunction extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) {\n /* istanbul ignore if */\n if (errsCount === undefined)\n throw new Error(\"ajv implementation error\");\n const err = gen.name(\"err\");\n gen.forRange(\"i\", errsCount, names_1.default.errors, (i) => {\n gen.const(err, (0, codegen_1._) `${names_1.default.vErrors}[${i}]`);\n gen.if((0, codegen_1._) `${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._) `${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath)));\n gen.assign((0, codegen_1._) `${err}.schemaPath`, (0, codegen_1.str) `${it.errSchemaPath}/${keyword}`);\n if (it.opts.verbose) {\n gen.assign((0, codegen_1._) `${err}.schema`, schemaValue);\n gen.assign((0, codegen_1._) `${err}.data`, data);\n }\n });\n}\nexports.extendErrors = extendErrors;\nfunction addError(gen, errObj) {\n const err = gen.const(\"err\", errObj);\n gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`);\n gen.code((0, codegen_1._) `${names_1.default.errors}++`);\n}\nfunction returnErrors(it, errs) {\n const { gen, validateName, schemaEnv } = it;\n if (schemaEnv.$async) {\n gen.throw((0, codegen_1._) `new ${it.ValidationError}(${errs})`);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, errs);\n gen.return(false);\n }\n}\nconst E = {\n keyword: new codegen_1.Name(\"keyword\"),\n schemaPath: new codegen_1.Name(\"schemaPath\"), // also used in JTD errors\n params: new codegen_1.Name(\"params\"),\n propertyName: new codegen_1.Name(\"propertyName\"),\n message: new codegen_1.Name(\"message\"),\n schema: new codegen_1.Name(\"schema\"),\n parentSchema: new codegen_1.Name(\"parentSchema\"),\n};\nfunction errorObjectCode(cxt, error, errorPaths) {\n const { createErrors } = cxt.it;\n if (createErrors === false)\n return (0, codegen_1._) `{}`;\n return errorObject(cxt, error, errorPaths);\n}\nfunction errorObject(cxt, error, errorPaths = {}) {\n const { gen, it } = cxt;\n const keyValues = [\n errorInstancePath(it, errorPaths),\n errorSchemaPath(cxt, errorPaths),\n ];\n extraErrorProps(cxt, error, keyValues);\n return gen.object(...keyValues);\n}\nfunction errorInstancePath({ errorPath }, { instancePath }) {\n const instPath = instancePath\n ? (0, codegen_1.str) `${errorPath}${(0, util_1.getErrorPath)(instancePath, util_1.Type.Str)}`\n : errorPath;\n return [names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, instPath)];\n}\nfunction errorSchemaPath({ keyword, it: { errSchemaPath } }, { schemaPath, parentSchema }) {\n let schPath = parentSchema ? errSchemaPath : (0, codegen_1.str) `${errSchemaPath}/${keyword}`;\n if (schemaPath) {\n schPath = (0, codegen_1.str) `${schPath}${(0, util_1.getErrorPath)(schemaPath, util_1.Type.Str)}`;\n }\n return [E.schemaPath, schPath];\n}\nfunction extraErrorProps(cxt, { params, message }, keyValues) {\n const { keyword, data, schemaValue, it } = cxt;\n const { opts, propertyName, topSchemaRef, schemaPath } = it;\n keyValues.push([E.keyword, keyword], [E.params, typeof params == \"function\" ? params(cxt) : params || (0, codegen_1._) `{}`]);\n if (opts.messages) {\n keyValues.push([E.message, typeof message == \"function\" ? message(cxt) : message]);\n }\n if (opts.verbose) {\n keyValues.push([E.schema, schemaValue], [E.parentSchema, (0, codegen_1._) `${topSchemaRef}${schemaPath}`], [names_1.default.data, data]);\n }\n if (propertyName)\n keyValues.push([E.propertyName, propertyName]);\n}\n//# sourceMappingURL=errors.js.map"],"names":["exports","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;AACA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typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "eefa817a-8a43-4909-8528-65c484b15840", e._sentryDebugIdIdentifier = "sentry-dbid-eefa817a-8a43-4909-8528-65c484b15840");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bdb5367a-bc94-4a9f-9810-555bcef086af", e._sentryDebugIdIdentifier = "sentry-dbid-bdb5367a-bc94-4a9f-9810-555bcef086af");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
@@ -14,10 +14,10 @@ import "./resolve.js";
14
14
  import "./util.js";
15
15
  import "./validate/index.js";
16
16
  import { __exports as resolve$1 } from "../../../../../../../_virtual/resolve.js";
17
- import { __exports as codegen } from "../../../../../../../_virtual/index3.js";
17
+ import { __exports as codegen } from "../../../../../../../_virtual/index2.js";
18
18
  import { __exports as validation_error } from "../../../../../../../_virtual/validation_error.js";
19
19
  import { __exports as names } from "../../../../../../../_virtual/names.js";
20
- import { __exports as validate } from "../../../../../../../_virtual/index2.js";
20
+ import { __exports as validate } from "../../../../../../../_virtual/index.js";
21
21
  import { __exports as util } from "../../../../../../../_virtual/util.js";
22
22
  Object.defineProperty(compile, "__esModule", { value: true });
23
23
  compile.resolveSchema = compile.getCompilingSchema = compile.resolveRef = compile.compileSchema = compile.SchemaEnv = void 0;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst validation_error_1 = require(\"../runtime/validation_error\");\nconst names_1 = require(\"./names\");\nconst resolve_1 = require(\"./resolve\");\nconst util_1 = require(\"./util\");\nconst validate_1 = require(\"./validate\");\nclass SchemaEnv {\n constructor(env) {\n var _a;\n this.refs = {};\n this.dynamicAnchors = {};\n let schema;\n if (typeof env.schema == \"object\")\n schema = env.schema;\n this.schema = env.schema;\n this.schemaId = env.schemaId;\n this.root = env.root || this;\n this.baseId = (_a = env.baseId) !== null && _a !== void 0 ? _a : (0, resolve_1.normalizeId)(schema === null || schema === void 0 ? void 0 : schema[env.schemaId || \"$id\"]);\n this.schemaPath = env.schemaPath;\n this.localRefs = env.localRefs;\n this.meta = env.meta;\n this.$async = schema === null || schema === void 0 ? void 0 : schema.$async;\n this.refs = {};\n }\n}\nexports.SchemaEnv = SchemaEnv;\n// let codeSize = 0\n// let nodeCount = 0\n// Compiles schema in SchemaEnv\nfunction compileSchema(sch) {\n // TODO refactor - remove compilations\n const _sch = getCompilingSchema.call(this, sch);\n if (_sch)\n return _sch;\n const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); // TODO if getFullPath removed 1 tests fails\n const { es5, lines } = this.opts.code;\n const { ownProperties } = this.opts;\n const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties });\n let _ValidationError;\n if (sch.$async) {\n _ValidationError = gen.scopeValue(\"Error\", {\n ref: validation_error_1.default,\n code: (0, codegen_1._) `require(\"ajv/dist/runtime/validation_error\").default`,\n });\n }\n const validateName = gen.scopeName(\"validate\");\n sch.validateName = validateName;\n const schemaCxt = {\n gen,\n allErrors: this.opts.allErrors,\n data: names_1.default.data,\n parentData: names_1.default.parentData,\n parentDataProperty: names_1.default.parentDataProperty,\n dataNames: [names_1.default.data],\n dataPathArr: [codegen_1.nil], // TODO can its length be used as dataLevel if nil is removed?\n dataLevel: 0,\n dataTypes: [],\n definedProperties: new Set(),\n topSchemaRef: gen.scopeValue(\"schema\", this.opts.code.source === true\n ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) }\n : { ref: sch.schema }),\n validateName,\n ValidationError: _ValidationError,\n schema: sch.schema,\n schemaEnv: sch,\n rootId,\n baseId: sch.baseId || rootId,\n schemaPath: codegen_1.nil,\n errSchemaPath: sch.schemaPath || (this.opts.jtd ? \"\" : \"#\"),\n errorPath: (0, codegen_1._) `\"\"`,\n opts: this.opts,\n self: this,\n };\n let sourceCode;\n try {\n this._compilations.add(sch);\n (0, validate_1.validateFunctionCode)(schemaCxt);\n gen.optimize(this.opts.code.optimize);\n // gen.optimize(1)\n const validateCode = gen.toString();\n sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`;\n // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount))\n if (this.opts.code.process)\n sourceCode = this.opts.code.process(sourceCode, sch);\n // console.log(\"\\n\\n\\n *** \\n\", sourceCode)\n const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode);\n const validate = makeValidate(this, this.scope.get());\n this.scope.value(validateName, { ref: validate });\n validate.errors = null;\n validate.schema = sch.schema;\n validate.schemaEnv = sch;\n if (sch.$async)\n validate.$async = true;\n if (this.opts.code.source === true) {\n validate.source = { validateName, validateCode, scopeValues: gen._values };\n }\n if (this.opts.unevaluated) {\n const { props, items } = schemaCxt;\n validate.evaluated = {\n props: props instanceof codegen_1.Name ? undefined : props,\n items: items instanceof codegen_1.Name ? undefined : items,\n dynamicProps: props instanceof codegen_1.Name,\n dynamicItems: items instanceof codegen_1.Name,\n };\n if (validate.source)\n validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated);\n }\n sch.validate = validate;\n return sch;\n }\n catch (e) {\n delete sch.validate;\n delete sch.validateName;\n if (sourceCode)\n this.logger.error(\"Error compiling schema, function code:\", sourceCode);\n // console.log(\"\\n\\n\\n *** \\n\", sourceCode, this.opts)\n throw e;\n }\n finally {\n this._compilations.delete(sch);\n }\n}\nexports.compileSchema = compileSchema;\nfunction resolveRef(root, baseId, ref) {\n var _a;\n ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);\n const schOrFunc = root.refs[ref];\n if (schOrFunc)\n return schOrFunc;\n let _sch = resolve.call(this, root, ref);\n if (_sch === undefined) {\n const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref]; // TODO maybe localRefs should hold SchemaEnv\n const { schemaId } = this.opts;\n if (schema)\n _sch = new SchemaEnv({ schema, schemaId, root, baseId });\n }\n if (_sch === undefined)\n return;\n return (root.refs[ref] = inlineOrCompile.call(this, _sch));\n}\nexports.resolveRef = resolveRef;\nfunction inlineOrCompile(sch) {\n if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))\n return sch.schema;\n return sch.validate ? sch : compileSchema.call(this, sch);\n}\n// Index of schema compilation in the currently compiled list\nfunction getCompilingSchema(schEnv) {\n for (const sch of this._compilations) {\n if (sameSchemaEnv(sch, schEnv))\n return sch;\n }\n}\nexports.getCompilingSchema = getCompilingSchema;\nfunction sameSchemaEnv(s1, s2) {\n return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;\n}\n// resolve and compile the references ($ref)\n// TODO returns AnySchemaObject (if the schema can be inlined) or validation function\nfunction resolve(root, // information about the root schema for the current schema\nref // reference to resolve\n) {\n let sch;\n while (typeof (sch = this.refs[ref]) == \"string\")\n ref = sch;\n return sch || this.schemas[ref] || resolveSchema.call(this, root, ref);\n}\n// Resolve schema, its root and baseId\nfunction resolveSchema(root, // root object with properties schema, refs TODO below SchemaEnv is assigned to it\nref // reference to resolve\n) {\n const p = this.opts.uriResolver.parse(ref);\n const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p);\n let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined);\n // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests\n if (Object.keys(root.schema).length > 0 && refPath === baseId) {\n return getJsonPointer.call(this, p, root);\n }\n const id = (0, resolve_1.normalizeId)(refPath);\n const schOrRef = this.refs[id] || this.schemas[id];\n if (typeof schOrRef == \"string\") {\n const sch = resolveSchema.call(this, root, schOrRef);\n if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== \"object\")\n return;\n return getJsonPointer.call(this, p, sch);\n }\n if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== \"object\")\n return;\n if (!schOrRef.validate)\n compileSchema.call(this, schOrRef);\n if (id === (0, resolve_1.normalizeId)(ref)) {\n const { schema } = schOrRef;\n const { schemaId } = this.opts;\n const schId = schema[schemaId];\n if (schId)\n baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);\n return new SchemaEnv({ schema, schemaId, root, baseId });\n }\n return getJsonPointer.call(this, p, schOrRef);\n}\nexports.resolveSchema = resolveSchema;\nconst PREVENT_SCOPE_CHANGE = new Set([\n \"properties\",\n \"patternProperties\",\n \"enum\",\n \"dependencies\",\n \"definitions\",\n]);\nfunction getJsonPointer(parsedRef, { baseId, schema, root }) {\n var _a;\n if (((_a = parsedRef.fragment) === null || _a === void 0 ? void 0 : _a[0]) !== \"/\")\n return;\n for (const part of parsedRef.fragment.slice(1).split(\"/\")) {\n if (typeof schema === \"boolean\")\n return;\n const partSchema = schema[(0, util_1.unescapeFragment)(part)];\n if (partSchema === undefined)\n return;\n schema = partSchema;\n // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def?\n const schId = typeof schema === \"object\" && schema[this.opts.schemaId];\n if (!PREVENT_SCOPE_CHANGE.has(part) && schId) {\n baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);\n }\n }\n let env;\n if (typeof schema != \"boolean\" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) {\n const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref);\n env = resolveSchema.call(this, root, $ref);\n }\n // even though resolution failed we need to return SchemaEnv to throw exception\n // so that compileAsync loads missing schema.\n const { schemaId } = this.opts;\n env = env || new SchemaEnv({ schema, schemaId, root, baseId });\n if (env.schema !== env.root.schema)\n return env;\n return undefined;\n}\n//# sourceMappingURL=index.js.map"],"names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,kBAAkB,IAAI,CAAC;AAC5D,QAAI,eAAe;AACf;AACJ,aAAS;AAET,UAAM,QAAQ,OAAO,WAAW,YAAY,OAAO,KAAK,KAAK,QAAQ;AACrE,QAAI,CAAC,qBAAqB,IAAI,IAAI,KAAK,OAAO;AAC1C,gBAAS,GAAI,UAAU,YAAY,KAAK,KAAK,aAAa,QAAQ,KAAK;AAAA,IACnF;AAAA,EACA;AACI,MAAI;AACJ,MAAI,OAAO,UAAU,aAAa,OAAO,QAAQ,KAAK,OAAO,sBAAsB,QAAQ,KAAK,KAAK,GAAG;AACpG,UAAM,WAAW,UAAU,YAAY,KAAK,KAAK,aAAa,QAAQ,OAAO,IAAI;AACjF,UAAM,cAAc,KAAK,MAAM,MAAM,IAAI;AAAA,EACjD;AAGI,QAAM,EAAE,aAAa,KAAK;AAC1B,QAAM,OAAO,IAAI,UAAU,EAAE,QAAQ,UAAU,MAAM,QAAQ;AAC7D,MAAI,IAAI,WAAW,IAAI,KAAK;AACxB,WAAO;AACX,SAAO;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst validation_error_1 = require(\"../runtime/validation_error\");\nconst names_1 = require(\"./names\");\nconst resolve_1 = require(\"./resolve\");\nconst util_1 = require(\"./util\");\nconst validate_1 = require(\"./validate\");\nclass SchemaEnv {\n constructor(env) {\n var _a;\n this.refs = {};\n this.dynamicAnchors = {};\n let schema;\n if (typeof env.schema == \"object\")\n schema = env.schema;\n this.schema = env.schema;\n this.schemaId = env.schemaId;\n this.root = env.root || this;\n this.baseId = (_a = env.baseId) !== null && _a !== void 0 ? _a : (0, resolve_1.normalizeId)(schema === null || schema === void 0 ? void 0 : schema[env.schemaId || \"$id\"]);\n this.schemaPath = env.schemaPath;\n this.localRefs = env.localRefs;\n this.meta = env.meta;\n this.$async = schema === null || schema === void 0 ? void 0 : schema.$async;\n this.refs = {};\n }\n}\nexports.SchemaEnv = SchemaEnv;\n// let codeSize = 0\n// let nodeCount = 0\n// Compiles schema in SchemaEnv\nfunction compileSchema(sch) {\n // TODO refactor - remove compilations\n const _sch = getCompilingSchema.call(this, sch);\n if (_sch)\n return _sch;\n const rootId = (0, resolve_1.getFullPath)(this.opts.uriResolver, sch.root.baseId); // TODO if getFullPath removed 1 tests fails\n const { es5, lines } = this.opts.code;\n const { ownProperties } = this.opts;\n const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties });\n let _ValidationError;\n if (sch.$async) {\n _ValidationError = gen.scopeValue(\"Error\", {\n ref: validation_error_1.default,\n code: (0, codegen_1._) `require(\"ajv/dist/runtime/validation_error\").default`,\n });\n }\n const validateName = gen.scopeName(\"validate\");\n sch.validateName = validateName;\n const schemaCxt = {\n gen,\n allErrors: this.opts.allErrors,\n data: names_1.default.data,\n parentData: names_1.default.parentData,\n parentDataProperty: names_1.default.parentDataProperty,\n dataNames: [names_1.default.data],\n dataPathArr: [codegen_1.nil], // TODO can its length be used as dataLevel if nil is removed?\n dataLevel: 0,\n dataTypes: [],\n definedProperties: new Set(),\n topSchemaRef: gen.scopeValue(\"schema\", this.opts.code.source === true\n ? { ref: sch.schema, code: (0, codegen_1.stringify)(sch.schema) }\n : { ref: sch.schema }),\n validateName,\n ValidationError: _ValidationError,\n schema: sch.schema,\n schemaEnv: sch,\n rootId,\n baseId: sch.baseId || rootId,\n schemaPath: codegen_1.nil,\n errSchemaPath: sch.schemaPath || (this.opts.jtd ? \"\" : \"#\"),\n errorPath: (0, codegen_1._) `\"\"`,\n opts: this.opts,\n self: this,\n };\n let sourceCode;\n try {\n this._compilations.add(sch);\n (0, validate_1.validateFunctionCode)(schemaCxt);\n gen.optimize(this.opts.code.optimize);\n // gen.optimize(1)\n const validateCode = gen.toString();\n sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${validateCode}`;\n // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount))\n if (this.opts.code.process)\n sourceCode = this.opts.code.process(sourceCode, sch);\n // console.log(\"\\n\\n\\n *** \\n\", sourceCode)\n const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode);\n const validate = makeValidate(this, this.scope.get());\n this.scope.value(validateName, { ref: validate });\n validate.errors = null;\n validate.schema = sch.schema;\n validate.schemaEnv = sch;\n if (sch.$async)\n validate.$async = true;\n if (this.opts.code.source === true) {\n validate.source = { validateName, validateCode, scopeValues: gen._values };\n }\n if (this.opts.unevaluated) {\n const { props, items } = schemaCxt;\n validate.evaluated = {\n props: props instanceof codegen_1.Name ? undefined : props,\n items: items instanceof codegen_1.Name ? undefined : items,\n dynamicProps: props instanceof codegen_1.Name,\n dynamicItems: items instanceof codegen_1.Name,\n };\n if (validate.source)\n validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated);\n }\n sch.validate = validate;\n return sch;\n }\n catch (e) {\n delete sch.validate;\n delete sch.validateName;\n if (sourceCode)\n this.logger.error(\"Error compiling schema, function code:\", sourceCode);\n // console.log(\"\\n\\n\\n *** \\n\", sourceCode, this.opts)\n throw e;\n }\n finally {\n this._compilations.delete(sch);\n }\n}\nexports.compileSchema = compileSchema;\nfunction resolveRef(root, baseId, ref) {\n var _a;\n ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);\n const schOrFunc = root.refs[ref];\n if (schOrFunc)\n return schOrFunc;\n let _sch = resolve.call(this, root, ref);\n if (_sch === undefined) {\n const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref]; // TODO maybe localRefs should hold SchemaEnv\n const { schemaId } = this.opts;\n if (schema)\n _sch = new SchemaEnv({ schema, schemaId, root, baseId });\n }\n if (_sch === undefined)\n return;\n return (root.refs[ref] = inlineOrCompile.call(this, _sch));\n}\nexports.resolveRef = resolveRef;\nfunction inlineOrCompile(sch) {\n if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))\n return sch.schema;\n return sch.validate ? sch : compileSchema.call(this, sch);\n}\n// Index of schema compilation in the currently compiled list\nfunction getCompilingSchema(schEnv) {\n for (const sch of this._compilations) {\n if (sameSchemaEnv(sch, schEnv))\n return sch;\n }\n}\nexports.getCompilingSchema = getCompilingSchema;\nfunction sameSchemaEnv(s1, s2) {\n return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;\n}\n// resolve and compile the references ($ref)\n// TODO returns AnySchemaObject (if the schema can be inlined) or validation function\nfunction resolve(root, // information about the root schema for the current schema\nref // reference to resolve\n) {\n let sch;\n while (typeof (sch = this.refs[ref]) == \"string\")\n ref = sch;\n return sch || this.schemas[ref] || resolveSchema.call(this, root, ref);\n}\n// Resolve schema, its root and baseId\nfunction resolveSchema(root, // root object with properties schema, refs TODO below SchemaEnv is assigned to it\nref // reference to resolve\n) {\n const p = this.opts.uriResolver.parse(ref);\n const refPath = (0, resolve_1._getFullPath)(this.opts.uriResolver, p);\n let baseId = (0, resolve_1.getFullPath)(this.opts.uriResolver, root.baseId, undefined);\n // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests\n if (Object.keys(root.schema).length > 0 && refPath === baseId) {\n return getJsonPointer.call(this, p, root);\n }\n const id = (0, resolve_1.normalizeId)(refPath);\n const schOrRef = this.refs[id] || this.schemas[id];\n if (typeof schOrRef == \"string\") {\n const sch = resolveSchema.call(this, root, schOrRef);\n if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== \"object\")\n return;\n return getJsonPointer.call(this, p, sch);\n }\n if (typeof (schOrRef === null || schOrRef === void 0 ? void 0 : schOrRef.schema) !== \"object\")\n return;\n if (!schOrRef.validate)\n compileSchema.call(this, schOrRef);\n if (id === (0, resolve_1.normalizeId)(ref)) {\n const { schema } = schOrRef;\n const { schemaId } = this.opts;\n const schId = schema[schemaId];\n if (schId)\n baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);\n return new SchemaEnv({ schema, schemaId, root, baseId });\n }\n return getJsonPointer.call(this, p, schOrRef);\n}\nexports.resolveSchema = resolveSchema;\nconst PREVENT_SCOPE_CHANGE = new Set([\n \"properties\",\n \"patternProperties\",\n \"enum\",\n \"dependencies\",\n \"definitions\",\n]);\nfunction getJsonPointer(parsedRef, { baseId, schema, root }) {\n var _a;\n if (((_a = parsedRef.fragment) === null || _a === void 0 ? void 0 : _a[0]) !== \"/\")\n return;\n for (const part of parsedRef.fragment.slice(1).split(\"/\")) {\n if (typeof schema === \"boolean\")\n return;\n const partSchema = schema[(0, util_1.unescapeFragment)(part)];\n if (partSchema === undefined)\n return;\n schema = partSchema;\n // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def?\n const schId = typeof schema === \"object\" && schema[this.opts.schemaId];\n if (!PREVENT_SCOPE_CHANGE.has(part) && schId) {\n baseId = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schId);\n }\n }\n let env;\n if (typeof schema != \"boolean\" && schema.$ref && !(0, util_1.schemaHasRulesButRef)(schema, this.RULES)) {\n const $ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, schema.$ref);\n env = resolveSchema.call(this, root, $ref);\n }\n // even though resolution failed we need to return SchemaEnv to throw exception\n // so that compileAsync loads missing schema.\n const { schemaId } = this.opts;\n env = env || new SchemaEnv({ schema, schemaId, root, baseId });\n if (env.schema !== env.root.schema)\n return env;\n return undefined;\n}\n//# sourceMappingURL=index.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","validate"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,QAAA,gBAAwB,QAAA,qBAA6B,QAAA,aAAqB,QAAA,gBAAwB,QAAA,YAAoB;AACtH,MAAM,YAAYA;AAClB,MAAM,qB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,IACnF;AAAA,EACA;AACI,MAAI;AACJ,MAAI,OAAO,UAAU,aAAa,OAAO,QAAQ,KAAK,OAAO,sBAAsB,QAAQ,KAAK,KAAK,GAAG;AACpG,UAAM,WAAW,UAAU,YAAY,KAAK,KAAK,aAAa,QAAQ,OAAO,IAAI;AACjF,UAAM,cAAc,KAAK,MAAM,MAAM,IAAI;AAAA,EACjD;AAGI,QAAM,EAAE,aAAa,KAAK;AAC1B,QAAM,OAAO,IAAI,UAAU,EAAE,QAAQ,UAAU,MAAM,QAAQ;AAC7D,MAAI,IAAI,WAAW,IAAI,KAAK;AACxB,WAAO;AACX,SAAO;AACX;","x_google_ignoreList":[0]}
@@ -2,13 +2,13 @@
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] = "a1b1114a-57f7-4421-95a9-7b8569b167ba", e._sentryDebugIdIdentifier = "sentry-dbid-a1b1114a-57f7-4421-95a9-7b8569b167ba");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a33503e8-3382-4df5-8cef-50d17b3ae18c", e._sentryDebugIdIdentifier = "sentry-dbid-a33503e8-3382-4df5-8cef-50d17b3ae18c");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as names$1 } from "../../../../../../../_virtual/names.js";
10
10
  import "./codegen/index.js";
11
- import { __exports as codegen } from "../../../../../../../_virtual/index3.js";
11
+ import { __exports as codegen } from "../../../../../../../_virtual/index2.js";
12
12
  Object.defineProperty(names$1, "__esModule", { value: true });
13
13
  const codegen_1 = codegen;
14
14
  const names = {
@@ -1 +1 @@
1
- {"version":3,"file":"names.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"./codegen\");\nconst names = {\n // validation function arguments\n data: new codegen_1.Name(\"data\"), // data passed to validation function\n // args passed from referencing schema\n valCxt: new codegen_1.Name(\"valCxt\"), // validation/data context - should not be used directly, it is destructured to the names below\n instancePath: new codegen_1.Name(\"instancePath\"),\n parentData: new codegen_1.Name(\"parentData\"),\n parentDataProperty: new codegen_1.Name(\"parentDataProperty\"),\n rootData: new codegen_1.Name(\"rootData\"), // root data - same as the data passed to the first/top validation function\n dynamicAnchors: new codegen_1.Name(\"dynamicAnchors\"), // used to support recursiveRef and dynamicRef\n // function scoped variables\n vErrors: new codegen_1.Name(\"vErrors\"), // null or array of validation errors\n errors: new codegen_1.Name(\"errors\"), // counter of validation errors\n this: new codegen_1.Name(\"this\"),\n // \"globals\"\n self: new codegen_1.Name(\"self\"),\n scope: new codegen_1.Name(\"scope\"),\n // JTD serialize/parse name for JSON string and position\n json: new codegen_1.Name(\"json\"),\n jsonPos: new codegen_1.Name(\"jsonPos\"),\n jsonLen: new codegen_1.Name(\"jsonLen\"),\n jsonPart: new codegen_1.Name(\"jsonPart\"),\n};\nexports.default = names;\n//# sourceMappingURL=names.js.map"],"names":["names_1","require$$0"],"mappings":";;;;;;;;;;;AACA,OAAO,eAAeA,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,YAAYC;AAClB,MAAM,QAAQ;AAAA;AAAA,EAEV,MAAM,IAAI,UAAU,KAAK,MAAM;AAAA;AAAA;AAAA,EAE/B,QAAQ,IAAI,UAAU,KAAK,QAAQ;AAAA;AAAA,EACnC,cAAc,IAAI,UAAU,KAAK,cAAc;AAAA,EAC/C,YAAY,IAAI,UAAU,KAAK,YAAY;AAAA,EAC3C,oBAAoB,IAAI,UAAU,KAAK,oBAAoB;AAAA,EAC3D,UAAU,IAAI,UAAU,KAAK,UAAU;AAAA;AAAA,EACvC,gBAAgB,IAAI,UAAU,KAAK,gBAAgB;AAAA;AAAA;AAAA,EAEnD,SAAS,IAAI,UAAU,KAAK,SAAS;AAAA;AAAA,EACrC,QAAQ,IAAI,UAAU,KAAK,QAAQ;AAAA;AAAA,EACnC,MAAM,IAAI,UAAU,KAAK,MAAM;AAAA;AAAA,EAE/B,MAAM,IAAI,UAAU,KAAK,MAAM;AAAA,EAC/B,OAAO,IAAI,UAAU,KAAK,OAAO;AAAA;AAAA,EAEjC,MAAM,IAAI,UAAU,KAAK,MAAM;AAAA,EAC/B,SAAS,IAAI,UAAU,KAAK,SAAS;AAAA,EACrC,SAAS,IAAI,UAAU,KAAK,SAAS;AAAA,EACrC,UAAU,IAAI,UAAU,KAAK,UAAU;AAC3C;AACAD,QAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"names.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"./codegen\");\nconst names = {\n // validation function arguments\n data: new codegen_1.Name(\"data\"), // data passed to validation function\n // args passed from referencing schema\n valCxt: new codegen_1.Name(\"valCxt\"), // validation/data context - should not be used directly, it is destructured to the names below\n instancePath: new codegen_1.Name(\"instancePath\"),\n parentData: new codegen_1.Name(\"parentData\"),\n parentDataProperty: new codegen_1.Name(\"parentDataProperty\"),\n rootData: new codegen_1.Name(\"rootData\"), // root data - same as the data passed to the first/top validation function\n dynamicAnchors: new codegen_1.Name(\"dynamicAnchors\"), // used to support recursiveRef and dynamicRef\n // function scoped variables\n vErrors: new codegen_1.Name(\"vErrors\"), // null or array of validation errors\n errors: new codegen_1.Name(\"errors\"), // counter of validation errors\n this: new codegen_1.Name(\"this\"),\n // \"globals\"\n self: new codegen_1.Name(\"self\"),\n scope: new codegen_1.Name(\"scope\"),\n // JTD serialize/parse name for JSON string and position\n json: new codegen_1.Name(\"json\"),\n jsonPos: new codegen_1.Name(\"jsonPos\"),\n jsonLen: new codegen_1.Name(\"jsonLen\"),\n jsonPart: new codegen_1.Name(\"jsonPart\"),\n};\nexports.default = names;\n//# sourceMappingURL=names.js.map"],"names":["names_1","require$$0"],"mappings":";;;;;;;;;;;AACA,OAAO,eAAeA,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,YAAYC;AAClB,MAAM,QAAQ;AAAA;AAAA,EAEV,MAAM,IAAI,UAAU,KAAK,MAAM;AAAA;AAAA;AAAA,EAE/B,QAAQ,IAAI,UAAU,KAAK,QAAQ;AAAA;AAAA,EACnC,cAAc,IAAI,UAAU,KAAK,cAAc;AAAA,EAC/C,YAAY,IAAI,UAAU,KAAK,YAAY;AAAA,EAC3C,oBAAoB,IAAI,UAAU,KAAK,oBAAoB;AAAA,EAC3D,UAAU,IAAI,UAAU,KAAK,UAAU;AAAA;AAAA,EACvC,gBAAgB,IAAI,UAAU,KAAK,gBAAgB;AAAA;AAAA;AAAA,EAEnD,SAAS,IAAI,UAAU,KAAK,SAAS;AAAA;AAAA,EACrC,QAAQ,IAAI,UAAU,KAAK,QAAQ;AAAA;AAAA,EACnC,MAAM,IAAI,UAAU,KAAK,MAAM;AAAA;AAAA,EAE/B,MAAM,IAAI,UAAU,KAAK,MAAM;AAAA,EAC/B,OAAO,IAAI,UAAU,KAAK,OAAO;AAAA;AAAA,EAEjC,MAAM,IAAI,UAAU,KAAK,MAAM;AAAA,EAC/B,SAAS,IAAI,UAAU,KAAK,SAAS;AAAA,EACrC,SAAS,IAAI,UAAU,KAAK,SAAS;AAAA,EACrC,UAAU,IAAI,UAAU,KAAK,UAAU;AAC3C;AACAD,QAAA,UAAkB;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"ref_error.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst resolve_1 = require(\"./resolve\");\nclass MissingRefError extends Error {\n constructor(resolver, baseId, ref, msg) {\n super(msg || `can't resolve reference ${ref} from id ${baseId}`);\n this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref);\n this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));\n }\n}\nexports.default = MissingRefError;\n//# sourceMappingURL=ref_error.js.map"],"names":["require$$0"],"mappings":";;;;;;;;;;;AACA,OAAO,eAAe,WAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,YAAYA;AAClB,MAAM,wBAAwB,MAAM;AAAA,EAChC,YAAY,UAAU,QAAQ,KAAK,KAAK;AACpC,UAAM,OAAO,2BAA2B,GAAG,YAAY,MAAM,EAAE;AAC/D,SAAK,iBAAiB,UAAU,YAAY,UAAU,QAAQ,GAAG;AACjE,SAAK,oBAAoB,UAAU,cAAa,GAAI,UAAU,aAAa,UAAU,KAAK,UAAU,CAAC;AAAA,EAC7G;AACA;AACA,UAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ref_error.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst resolve_1 = require(\"./resolve\");\nclass MissingRefError extends Error {\n constructor(resolver, baseId, ref, msg) {\n super(msg || `can't resolve reference ${ref} from id ${baseId}`);\n this.missingRef = (0, resolve_1.resolveUrl)(resolver, baseId, ref);\n this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));\n }\n}\nexports.default = MissingRefError;\n//# sourceMappingURL=ref_error.js.map"],"names":["require$$0"],"mappings":";;;;;;;;;;;AACA,OAAO,eAAe,WAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,YAAYA;AAClB,MAAM,wBAAwB,MAAM;AAAA,EAChC,YAAY,UAAU,QAAQ,KAAK,KAAK;AACpC,UAAM,OAAO,2BAA2B,GAAG,YAAY,MAAM,EAAE;AAC/D,SAAK,iBAAiB,UAAU,YAAY,UAAU,QAAQ,GAAG;AACjE,SAAK,oBAAoB,UAAU,cAAa,GAAI,UAAU,aAAa,UAAU,KAAK,UAAU,CAAC;AAAA,EAC7G;AACA;AACA,UAAA,UAAkB;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;\nconst util_1 = require(\"./util\");\nconst equal = require(\"fast-deep-equal\");\nconst traverse = require(\"json-schema-traverse\");\n// TODO refactor to use keyword definitions\nconst SIMPLE_INLINED = new Set([\n \"type\",\n \"format\",\n \"pattern\",\n \"maxLength\",\n \"minLength\",\n \"maxProperties\",\n \"minProperties\",\n \"maxItems\",\n \"minItems\",\n \"maximum\",\n \"minimum\",\n \"uniqueItems\",\n \"multipleOf\",\n \"required\",\n \"enum\",\n \"const\",\n]);\nfunction inlineRef(schema, limit = true) {\n if (typeof schema == \"boolean\")\n return true;\n if (limit === true)\n return !hasRef(schema);\n if (!limit)\n return false;\n return countKeys(schema) <= limit;\n}\nexports.inlineRef = inlineRef;\nconst REF_KEYWORDS = new Set([\n \"$ref\",\n \"$recursiveRef\",\n \"$recursiveAnchor\",\n \"$dynamicRef\",\n \"$dynamicAnchor\",\n]);\nfunction hasRef(schema) {\n for (const key in schema) {\n if (REF_KEYWORDS.has(key))\n return true;\n const sch = schema[key];\n if (Array.isArray(sch) && sch.some(hasRef))\n return true;\n if (typeof sch == \"object\" && hasRef(sch))\n return true;\n }\n return false;\n}\nfunction countKeys(schema) {\n let count = 0;\n for (const key in schema) {\n if (key === \"$ref\")\n return Infinity;\n count++;\n if (SIMPLE_INLINED.has(key))\n continue;\n if (typeof schema[key] == \"object\") {\n (0, util_1.eachItem)(schema[key], (sch) => (count += countKeys(sch)));\n }\n if (count === Infinity)\n return Infinity;\n }\n return count;\n}\nfunction getFullPath(resolver, id = \"\", normalize) {\n if (normalize !== false)\n id = normalizeId(id);\n const p = resolver.parse(id);\n return _getFullPath(resolver, p);\n}\nexports.getFullPath = getFullPath;\nfunction _getFullPath(resolver, p) {\n const serialized = resolver.serialize(p);\n return serialized.split(\"#\")[0] + \"#\";\n}\nexports._getFullPath = _getFullPath;\nconst TRAILING_SLASH_HASH = /#\\/?$/;\nfunction normalizeId(id) {\n return id ? id.replace(TRAILING_SLASH_HASH, \"\") : \"\";\n}\nexports.normalizeId = normalizeId;\nfunction resolveUrl(resolver, baseId, id) {\n id = normalizeId(id);\n return resolver.resolve(baseId, id);\n}\nexports.resolveUrl = resolveUrl;\nconst ANCHOR = /^[a-z_][-a-z0-9._]*$/i;\nfunction getSchemaRefs(schema, baseId) {\n if (typeof schema == \"boolean\")\n return {};\n const { schemaId, uriResolver } = this.opts;\n const schId = normalizeId(schema[schemaId] || baseId);\n const baseIds = { \"\": schId };\n const pathPrefix = getFullPath(uriResolver, schId, false);\n const localRefs = {};\n const schemaRefs = new Set();\n traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => {\n if (parentJsonPtr === undefined)\n return;\n const fullPath = pathPrefix + jsonPtr;\n let innerBaseId = baseIds[parentJsonPtr];\n if (typeof sch[schemaId] == \"string\")\n innerBaseId = addRef.call(this, sch[schemaId]);\n addAnchor.call(this, sch.$anchor);\n addAnchor.call(this, sch.$dynamicAnchor);\n baseIds[jsonPtr] = innerBaseId;\n function addRef(ref) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const _resolve = this.opts.uriResolver.resolve;\n ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref);\n if (schemaRefs.has(ref))\n throw ambiguos(ref);\n schemaRefs.add(ref);\n let schOrRef = this.refs[ref];\n if (typeof schOrRef == \"string\")\n schOrRef = this.refs[schOrRef];\n if (typeof schOrRef == \"object\") {\n checkAmbiguosRef(sch, schOrRef.schema, ref);\n }\n else if (ref !== normalizeId(fullPath)) {\n if (ref[0] === \"#\") {\n checkAmbiguosRef(sch, localRefs[ref], ref);\n localRefs[ref] = sch;\n }\n else {\n this.refs[ref] = fullPath;\n }\n }\n return ref;\n }\n function addAnchor(anchor) {\n if (typeof anchor == \"string\") {\n if (!ANCHOR.test(anchor))\n throw new Error(`invalid anchor \"${anchor}\"`);\n addRef.call(this, `#${anchor}`);\n }\n }\n });\n return localRefs;\n function checkAmbiguosRef(sch1, sch2, ref) {\n if (sch2 !== undefined && !equal(sch1, sch2))\n throw ambiguos(ref);\n }\n function ambiguos(ref) {\n return new Error(`reference \"${ref}\" resolves to more than one schema`);\n }\n}\nexports.getSchemaRefs = getSchemaRefs;\n//# sourceMappingURL=resolve.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;AACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,QAAA,gBAAwB,QAAA,aAAqB,QAAA,cAAsB,QAAA,eAAuB,QAAA,cAAsB,QAAA,YAAoB;AACpI,MAAM,SAASA;AACf,MAAM,QAAQC;AACd,MAAM,WAAWC;AAEjB,MAAM,iBAAiB,oBAAI,IAAI;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AACD,SAAS,UAAU,QAAQ,QAAQ,MAAM;AACrC,MAAI,OAAO,UAAU;AACjB,WAAO;AACX,MAAI,UAAU;AACV,WAAO,CAAC,OAAO,MAAM;AACzB,MAAI,CAAC;AACD,WAAO;AACX,SAAO,UAAU,MAAM,KAAK;AAChC;AACA,Q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AACD,eAAK,KAAK,GAAG,IAAI;AAAA,QACrC;AAAA,MACA;AACY,aAAO;AAAA,IACnB;AACQ,aAAS,UAAU,QAAQ;AACvB,UAAI,OAAO,UAAU,UAAU;AAC3B,YAAI,CAAC,OAAO,KAAK,MAAM;AACnB,gBAAM,IAAI,MAAM,mBAAmB,MAAM,GAAG;AAChD,eAAO,KAAK,MAAM,IAAI,MAAM,EAAE;AAAA,MAC9C;AAAA,IACA;AAAA,EACA,CAAK;AACD,SAAO;AACP,WAAS,iBAAiB,MAAM,MAAM,KAAK;AACvC,QAAI,SAAS,UAAa,CAAC,MAAM,MAAM,IAAI;AACvC,YAAM,SAAS,GAAG;AAAA,EAC9B;AACI,WAAS,SAAS,KAAK;AACnB,WAAO,IAAI,MAAM,cAAc,GAAG,oCAAoC;AAAA,EAC9E;AACA;AACA,QAAA,gBAAwB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"resolve.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;\nconst util_1 = require(\"./util\");\nconst equal = require(\"fast-deep-equal\");\nconst traverse = require(\"json-schema-traverse\");\n// TODO refactor to use keyword definitions\nconst SIMPLE_INLINED = new Set([\n \"type\",\n \"format\",\n \"pattern\",\n \"maxLength\",\n \"minLength\",\n \"maxProperties\",\n \"minProperties\",\n \"maxItems\",\n \"minItems\",\n \"maximum\",\n \"minimum\",\n \"uniqueItems\",\n \"multipleOf\",\n \"required\",\n \"enum\",\n \"const\",\n]);\nfunction inlineRef(schema, limit = true) {\n if (typeof schema == \"boolean\")\n return true;\n if (limit === true)\n return !hasRef(schema);\n if (!limit)\n return false;\n return countKeys(schema) <= limit;\n}\nexports.inlineRef = inlineRef;\nconst REF_KEYWORDS = new Set([\n \"$ref\",\n \"$recursiveRef\",\n \"$recursiveAnchor\",\n \"$dynamicRef\",\n \"$dynamicAnchor\",\n]);\nfunction hasRef(schema) {\n for (const key in schema) {\n if (REF_KEYWORDS.has(key))\n return true;\n const sch = schema[key];\n if (Array.isArray(sch) && sch.some(hasRef))\n return true;\n if (typeof sch == \"object\" && hasRef(sch))\n return true;\n }\n return false;\n}\nfunction countKeys(schema) {\n let count = 0;\n for (const key in schema) {\n if (key === \"$ref\")\n return Infinity;\n count++;\n if (SIMPLE_INLINED.has(key))\n continue;\n if (typeof schema[key] == \"object\") {\n (0, util_1.eachItem)(schema[key], (sch) => (count += countKeys(sch)));\n }\n if (count === Infinity)\n return Infinity;\n }\n return count;\n}\nfunction getFullPath(resolver, id = \"\", normalize) {\n if (normalize !== false)\n id = normalizeId(id);\n const p = resolver.parse(id);\n return _getFullPath(resolver, p);\n}\nexports.getFullPath = getFullPath;\nfunction _getFullPath(resolver, p) {\n const serialized = resolver.serialize(p);\n return serialized.split(\"#\")[0] + \"#\";\n}\nexports._getFullPath = _getFullPath;\nconst TRAILING_SLASH_HASH = /#\\/?$/;\nfunction normalizeId(id) {\n return id ? id.replace(TRAILING_SLASH_HASH, \"\") : \"\";\n}\nexports.normalizeId = normalizeId;\nfunction resolveUrl(resolver, baseId, id) {\n id = normalizeId(id);\n return resolver.resolve(baseId, id);\n}\nexports.resolveUrl = resolveUrl;\nconst ANCHOR = /^[a-z_][-a-z0-9._]*$/i;\nfunction getSchemaRefs(schema, baseId) {\n if (typeof schema == \"boolean\")\n return {};\n const { schemaId, uriResolver } = this.opts;\n const schId = normalizeId(schema[schemaId] || baseId);\n const baseIds = { \"\": schId };\n const pathPrefix = getFullPath(uriResolver, schId, false);\n const localRefs = {};\n const schemaRefs = new Set();\n traverse(schema, { allKeys: true }, (sch, jsonPtr, _, parentJsonPtr) => {\n if (parentJsonPtr === undefined)\n return;\n const fullPath = pathPrefix + jsonPtr;\n let innerBaseId = baseIds[parentJsonPtr];\n if (typeof sch[schemaId] == \"string\")\n innerBaseId = addRef.call(this, sch[schemaId]);\n addAnchor.call(this, sch.$anchor);\n addAnchor.call(this, sch.$dynamicAnchor);\n baseIds[jsonPtr] = innerBaseId;\n function addRef(ref) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const _resolve = this.opts.uriResolver.resolve;\n ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref);\n if (schemaRefs.has(ref))\n throw ambiguos(ref);\n schemaRefs.add(ref);\n let schOrRef = this.refs[ref];\n if (typeof schOrRef == \"string\")\n schOrRef = this.refs[schOrRef];\n if (typeof schOrRef == \"object\") {\n checkAmbiguosRef(sch, schOrRef.schema, ref);\n }\n else if (ref !== normalizeId(fullPath)) {\n if (ref[0] === \"#\") {\n checkAmbiguosRef(sch, localRefs[ref], ref);\n localRefs[ref] = sch;\n }\n else {\n this.refs[ref] = fullPath;\n }\n }\n return ref;\n }\n function addAnchor(anchor) {\n if (typeof anchor == \"string\") {\n if (!ANCHOR.test(anchor))\n throw new Error(`invalid anchor \"${anchor}\"`);\n addRef.call(this, `#${anchor}`);\n }\n }\n });\n return localRefs;\n function checkAmbiguosRef(sch1, sch2, ref) {\n if (sch2 !== undefined && !equal(sch1, sch2))\n throw ambiguos(ref);\n }\n function ambiguos(ref) {\n return new Error(`reference \"${ref}\" resolves to more than one schema`);\n }\n}\nexports.getSchemaRefs = getSchemaRefs;\n//# sourceMappingURL=resolve.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;AACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,QAAA,gBAAwB,QAAA,aAAqB,QAAA,cAAsB,QAAA,eAAuB,QAAA,cAAsB,QAAA,YAAoB;AACpI,MAAM,SAASA;AACf,MAAM,QAAQC;AACd,MAAM,WAAWC;AAEjB,MAAM,iBAAiB,oBAAI,IAAI;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,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AK,KAAK,GAAG;AAC5B,UAAI,OAAO,YAAY;AACnB,mBAAW,KAAK,KAAK,QAAQ;AACjC,UAAI,OAAO,YAAY,UAAU;AAC7B,yBAAiB,KAAK,SAAS,QAAQ,GAAG;AAAA,MAC1D,WACqB,QAAQ,YAAY,QAAQ,GAAG;AACpC,YAAI,IAAI,CAAC,MAAM,KAAK;AAChB,2BAAiB,KAAK,UAAU,GAAG,GAAG,GAAG;AACzC,oBAAU,GAAG,IAAI;AAAA,QACrC,OACqB;AACD,eAAK,KAAK,GAAG,IAAI;AAAA,QACrC;AAAA,MACA;AACY,aAAO;AAAA,IACnB;AACQ,aAAS,UAAU,QAAQ;AACvB,UAAI,OAAO,UAAU,UAAU;AAC3B,YAAI,CAAC,OAAO,KAAK,MAAM;AACnB,gBAAM,IAAI,MAAM,mBAAmB,MAAM,GAAG;AAChD,eAAO,KAAK,MAAM,IAAI,MAAM,EAAE;AAAA,MAC9C;AAAA,IACA;AAAA,EACA,CAAK;AACD,SAAO;AACP,WAAS,iBAAiB,MAAM,MAAM,KAAK;AACvC,QAAI,SAAS,UAAa,CAAC,MAAM,MAAM,IAAI;AACvC,YAAM,SAAS,GAAG;AAAA,EAC9B;AACI,WAAS,SAAS,KAAK;AACnB,WAAO,IAAI,MAAM,cAAc,GAAG,oCAAoC;AAAA,EAC9E;AACA;AACA,QAAA,gBAAwB;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRules = exports.isJSONType = void 0;\nconst _jsonTypes = [\"string\", \"number\", \"integer\", \"boolean\", \"null\", \"object\", \"array\"];\nconst jsonTypes = new Set(_jsonTypes);\nfunction isJSONType(x) {\n return typeof x == \"string\" && jsonTypes.has(x);\n}\nexports.isJSONType = isJSONType;\nfunction getRules() {\n const groups = {\n number: { type: \"number\", rules: [] },\n string: { type: \"string\", rules: [] },\n array: { type: \"array\", rules: [] },\n object: { type: \"object\", rules: [] },\n };\n return {\n types: { ...groups, integer: true, boolean: true, null: true },\n rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object],\n post: { rules: [] },\n all: {},\n keywords: {},\n };\n}\nexports.getRules = getRules;\n//# sourceMappingURL=rules.js.map"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,eAAe,OAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAA,WAAmB,MAAA,aAAqB;AACxC,MAAM,aAAa,CAAC,UAAU,UAAU,WAAW,WAAW,QAAQ,UAAU,OAAO;AACvF,MAAM,YAAY,IAAI,IAAI,UAAU;AACpC,SAAS,WAAW,GAAG;AACnB,SAAO,OAAO,KAAK,YAAY,UAAU,IAAI,CAAC;AAClD;AACA,MAAA,aAAqB;AACrB,SAAS,WAAW;AAChB,QAAM,SAAS;AAAA,IACX,QAAQ,EAAE,MAAM,UAAU,OAAO,CAAA,EAAE;AAAA,IACnC,QAAQ,EAAE,MAAM,UAAU,OAAO,CAAA,EAAE;AAAA,IACnC,OAAO,EAAE,MAAM,SAAS,OAAO,CAAA,EAAE;AAAA,IACjC,QAAQ,EAAE,MAAM,UAAU,OAAO,CAAA,EAAE;AAAA,EAC3C;AACI,SAAO;AAAA,IACH,OAAO,EAAE,GAAG,QAAQ,SAAS,MAAM,SAAS,MAAM,MAAM,KAAI;AAAA,IAC5D,OAAO,CAAC,EAAE,OAAO,CAAA,EAAE,GAAI,OAAO,QAAQ,OAAO,QAAQ,OAAO,OAAO,OAAO,MAAM;AAAA,IAChF,MAAM,EAAE,OAAO,GAAE;AAAA,IACjB,KAAK,CAAA;AAAA,IACL,UAAU,CAAA;AAAA,EAClB;AACA;AACA,MAAA,WAAmB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"rules.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getRules = exports.isJSONType = void 0;\nconst _jsonTypes = [\"string\", \"number\", \"integer\", \"boolean\", \"null\", \"object\", \"array\"];\nconst jsonTypes = new Set(_jsonTypes);\nfunction isJSONType(x) {\n return typeof x == \"string\" && jsonTypes.has(x);\n}\nexports.isJSONType = isJSONType;\nfunction getRules() {\n const groups = {\n number: { type: \"number\", rules: [] },\n string: { type: \"string\", rules: [] },\n array: { type: \"array\", rules: [] },\n object: { type: \"object\", rules: [] },\n };\n return {\n types: { ...groups, integer: true, boolean: true, null: true },\n rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object],\n post: { rules: [] },\n all: {},\n keywords: {},\n };\n}\nexports.getRules = getRules;\n//# sourceMappingURL=rules.js.map"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,eAAe,OAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAA,WAAmB,MAAA,aAAqB;AACxC,MAAM,aAAa,CAAC,UAAU,UAAU,WAAW,WAAW,QAAQ,UAAU,OAAO;AACvF,MAAM,YAAY,IAAI,IAAI,UAAU;AACpC,SAAS,WAAW,GAAG;AACnB,SAAO,OAAO,KAAK,YAAY,UAAU,IAAI,CAAC;AAClD;AACA,MAAA,aAAqB;AACrB,SAAS,WAAW;AAChB,QAAM,SAAS;AAAA,IACX,QAAQ,EAAE,MAAM,UAAU,OAAO,CAAA,EAAE;AAAA,IACnC,QAAQ,EAAE,MAAM,UAAU,OAAO,CAAA,EAAE;AAAA,IACnC,OAAO,EAAE,MAAM,SAAS,OAAO,CAAA,EAAE;AAAA,IACjC,QAAQ,EAAE,MAAM,UAAU,OAAO,CAAA,EAAE;AAAA,EAC3C;AACI,SAAO;AAAA,IACH,OAAO,EAAE,GAAG,QAAQ,SAAS,MAAM,SAAS,MAAM,MAAM,KAAI;AAAA,IAC5D,OAAO,CAAC,EAAE,OAAO,CAAA,EAAE,GAAI,OAAO,QAAQ,OAAO,QAAQ,OAAO,OAAO,OAAO,MAAM;AAAA,IAChF,MAAM,EAAE,OAAO,GAAE;AAAA,IACjB,KAAK,CAAA;AAAA,IACL,UAAU,CAAA;AAAA,EAClB;AACA;AACA,MAAA,WAAmB;","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] = "4d139b4c-5522-43f8-a3c2-db32dd8c58c0", e._sentryDebugIdIdentifier = "sentry-dbid-4d139b4c-5522-43f8-a3c2-db32dd8c58c0");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "880b731f-37f1-4e5f-b967-d7ca4d67607f", e._sentryDebugIdIdentifier = "sentry-dbid-880b731f-37f1-4e5f-b967-d7ca4d67607f");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as util } from "../../../../../../../_virtual/util.js";
10
10
  import "./codegen/index.js";
11
11
  import "./codegen/code.js";
12
- import { __exports as codegen } from "../../../../../../../_virtual/index3.js";
12
+ import { __exports as codegen } from "../../../../../../../_virtual/index2.js";
13
13
  import { __exports as code } from "../../../../../../../_virtual/code.js";
14
14
  Object.defineProperty(util, "__esModule", { value: true });
15
15
  util.checkStrictMode = util.getErrorPath = util.Type = util.useFunc = util.setEvaluated = util.evaluatedPropsToName = util.mergeEvaluated = util.eachItem = util.unescapeJsonPointer = util.escapeJsonPointer = util.escapeFragment = util.unescapeFragment = util.schemaRefOrVal = util.schemaHasRulesButRef = util.schemaHasRules = util.checkUnknownRules = util.alwaysValidSchema = util.toHash = void 0;
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst code_1 = require(\"./codegen/code\");\n// TODO refactor to use Set\nfunction toHash(arr) {\n const hash = {};\n for (const item of arr)\n hash[item] = true;\n return hash;\n}\nexports.toHash = toHash;\nfunction alwaysValidSchema(it, schema) {\n if (typeof schema == \"boolean\")\n return schema;\n if (Object.keys(schema).length === 0)\n return true;\n checkUnknownRules(it, schema);\n return !schemaHasRules(schema, it.self.RULES.all);\n}\nexports.alwaysValidSchema = alwaysValidSchema;\nfunction checkUnknownRules(it, schema = it.schema) {\n const { opts, self } = it;\n if (!opts.strictSchema)\n return;\n if (typeof schema === \"boolean\")\n return;\n const rules = self.RULES.keywords;\n for (const key in schema) {\n if (!rules[key])\n checkStrictMode(it, `unknown keyword: \"${key}\"`);\n }\n}\nexports.checkUnknownRules = checkUnknownRules;\nfunction schemaHasRules(schema, rules) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (rules[key])\n return true;\n return false;\n}\nexports.schemaHasRules = schemaHasRules;\nfunction schemaHasRulesButRef(schema, RULES) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (key !== \"$ref\" && RULES.all[key])\n return true;\n return false;\n}\nexports.schemaHasRulesButRef = schemaHasRulesButRef;\nfunction schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {\n if (!$data) {\n if (typeof schema == \"number\" || typeof schema == \"boolean\")\n return schema;\n if (typeof schema == \"string\")\n return (0, codegen_1._) `${schema}`;\n }\n return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;\n}\nexports.schemaRefOrVal = schemaRefOrVal;\nfunction unescapeFragment(str) {\n return unescapeJsonPointer(decodeURIComponent(str));\n}\nexports.unescapeFragment = unescapeFragment;\nfunction escapeFragment(str) {\n return encodeURIComponent(escapeJsonPointer(str));\n}\nexports.escapeFragment = escapeFragment;\nfunction escapeJsonPointer(str) {\n if (typeof str == \"number\")\n return `${str}`;\n return str.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\nexports.escapeJsonPointer = escapeJsonPointer;\nfunction unescapeJsonPointer(str) {\n return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\nexports.unescapeJsonPointer = unescapeJsonPointer;\nfunction eachItem(xs, f) {\n if (Array.isArray(xs)) {\n for (const x of xs)\n f(x);\n }\n else {\n f(xs);\n }\n}\nexports.eachItem = eachItem;\nfunction makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) {\n return (gen, from, to, toName) => {\n const res = to === undefined\n ? from\n : to instanceof codegen_1.Name\n ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)\n : from instanceof codegen_1.Name\n ? (mergeToName(gen, to, from), from)\n : mergeValues(from, to);\n return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;\n };\n}\nexports.mergeEvaluated = {\n props: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => {\n gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`));\n }),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => {\n if (from === true) {\n gen.assign(to, true);\n }\n else {\n gen.assign(to, (0, codegen_1._) `${to} || {}`);\n setEvaluated(gen, to, from);\n }\n }),\n mergeValues: (from, to) => (from === true ? true : { ...from, ...to }),\n resultToName: evaluatedPropsToName,\n }),\n items: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)),\n mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),\n resultToName: (gen, items) => gen.var(\"items\", items),\n }),\n};\nfunction evaluatedPropsToName(gen, ps) {\n if (ps === true)\n return gen.var(\"props\", true);\n const props = gen.var(\"props\", (0, codegen_1._) `{}`);\n if (ps !== undefined)\n setEvaluated(gen, props, ps);\n return props;\n}\nexports.evaluatedPropsToName = evaluatedPropsToName;\nfunction setEvaluated(gen, props, ps) {\n Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true));\n}\nexports.setEvaluated = setEvaluated;\nconst snippets = {};\nfunction useFunc(gen, f) {\n return gen.scopeValue(\"func\", {\n ref: f,\n code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)),\n });\n}\nexports.useFunc = useFunc;\nvar Type;\n(function (Type) {\n Type[Type[\"Num\"] = 0] = \"Num\";\n Type[Type[\"Str\"] = 1] = \"Str\";\n})(Type || (exports.Type = Type = {}));\nfunction getErrorPath(dataProp, dataPropType, jsPropertySyntax) {\n // let path\n if (dataProp instanceof codegen_1.Name) {\n const isNumber = dataPropType === Type.Num;\n return jsPropertySyntax\n ? isNumber\n ? (0, codegen_1._) `\"[\" + ${dataProp} + \"]\"`\n : (0, codegen_1._) `\"['\" + ${dataProp} + \"']\"`\n : isNumber\n ? (0, codegen_1._) `\"/\" + ${dataProp}`\n : (0, codegen_1._) `\"/\" + ${dataProp}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")`; // TODO maybe use global escapePointer\n }\n return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : \"/\" + escapeJsonPointer(dataProp);\n}\nexports.getErrorPath = getErrorPath;\nfunction checkStrictMode(it, msg, mode = it.opts.strictSchema) {\n if (!mode)\n return;\n msg = `strict mode: ${msg}`;\n if (mode === true)\n throw new Error(msg);\n it.self.logger.warn(msg);\n}\nexports.checkStrictMode = checkStrictMode;\n//# sourceMappingURL=util.js.map"],"names":["require$$0","require$$1","self","Type"],"mappings":";;;;;;;;;;;;;AACA,OAAO,eAAe,MAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,KAAA,kBAA0B,KAAA,eAAuB,KAAA,sBAAiC,KAAA,eAAuB,KAAA,uBAA+B,KAAA,iBAAyB,KAAA,sCAAiD,KAAA,oBAA4B,KAAA,iBAAyB,KAAA,mBAA2B,KAAA,6CAAwD,KAAA,iBAAyB,KAAA,oBAA4B,KAAA,kCAA6C;AAC5b,MAAM,YAAYA;AAClB,MAAM,SAASC;AAEf,SAAS,OAAO,KAAK;AACjB,QAAM,OAAO,CAAA;AACb,aAAW,QAAQ;AACf,SAAK,IAAI,IAAI;AACjB,SAAO;AACX;AACA,KAAA,SAAiB;AACjB,SAAS,kBAAkB,IAAI,QAAQ;AACnC,MAAI,OAAO,UAAU;AACjB,WAAO;AACX,MAAI,OAAO,KAAK,MAAM,EAAE,WAAW;AAC/B,WAAO;AACX,oBAAkB,IAAI,MAAM;AAC5B,SAAO,CAAC,eAAe,QAAQ,GAAG,KAAK,MAAM,GAAG;AACpD;AACA,KAAA,oBAA4B;AAC5B,SAAS,kBAAkB,IAAI,SAAS,GAAG,QAAQ;AAC/C,QAAM,EAAE,MAAM,MAAAC,MAAI,IAAK;AACvB,MAAI,CAAC,KAAK;AACN;AACJ,MAAI,OAAO,WAAW;AAClB;AACJ,QAAM,QAAQA,MAAK,MAAM;AACzB,aAAW,OAAO,QAAQ;AACtB,QAAI,CAAC,MAAM,GAAG;AACV,sBAA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AAS,EAAE,IAAI,IAAI,IAAI,OAAO,MAAM,EAAE,IAAI;AAAA,EAC7E,CAAK;AACL;AACA,KAAA,UAAkB;AAClB,IAAI;AAAA,CACH,SAAUC,OAAM;AACb,EAAAA,MAAKA,MAAK,KAAK,IAAI,CAAC,IAAI;AACxB,EAAAA,MAAKA,MAAK,KAAK,IAAI,CAAC,IAAI;AAC5B,GAAG,SAAS,KAAA,OAAe,OAAO,CAAA,EAAG;AACrC,SAAS,aAAa,UAAU,cAAc,kBAAkB;AAE5D,MAAI,oBAAoB,UAAU,MAAM;AACpC,UAAM,WAAW,iBAAiB,KAAK;AACvC,WAAO,mBACD,YACI,GAAI,UAAU,WAAY,QAAQ,YAClC,GAAI,UAAU,YAAa,QAAQ,YACvC,YACI,GAAI,UAAU,WAAY,QAAQ,MAClC,GAAI,UAAU,WAAY,QAAQ;AAAA,EACpD;AACI,SAAO,uBAAuB,UAAU,aAAa,QAAQ,EAAE,aAAa,MAAM,kBAAkB,QAAQ;AAChH;AACA,KAAA,eAAuB;AACvB,SAAS,gBAAgB,IAAI,KAAK,OAAO,GAAG,KAAK,cAAc;AAC3D,MAAI,CAAC;AACD;AACJ,QAAM,gBAAgB,GAAG;AACzB,MAAI,SAAS;AACT,UAAM,IAAI,MAAM,GAAG;AACvB,KAAG,KAAK,OAAO,KAAK,GAAG;AAC3B;AACA,KAAA,kBAA0B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"util.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;\nconst codegen_1 = require(\"./codegen\");\nconst code_1 = require(\"./codegen/code\");\n// TODO refactor to use Set\nfunction toHash(arr) {\n const hash = {};\n for (const item of arr)\n hash[item] = true;\n return hash;\n}\nexports.toHash = toHash;\nfunction alwaysValidSchema(it, schema) {\n if (typeof schema == \"boolean\")\n return schema;\n if (Object.keys(schema).length === 0)\n return true;\n checkUnknownRules(it, schema);\n return !schemaHasRules(schema, it.self.RULES.all);\n}\nexports.alwaysValidSchema = alwaysValidSchema;\nfunction checkUnknownRules(it, schema = it.schema) {\n const { opts, self } = it;\n if (!opts.strictSchema)\n return;\n if (typeof schema === \"boolean\")\n return;\n const rules = self.RULES.keywords;\n for (const key in schema) {\n if (!rules[key])\n checkStrictMode(it, `unknown keyword: \"${key}\"`);\n }\n}\nexports.checkUnknownRules = checkUnknownRules;\nfunction schemaHasRules(schema, rules) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (rules[key])\n return true;\n return false;\n}\nexports.schemaHasRules = schemaHasRules;\nfunction schemaHasRulesButRef(schema, RULES) {\n if (typeof schema == \"boolean\")\n return !schema;\n for (const key in schema)\n if (key !== \"$ref\" && RULES.all[key])\n return true;\n return false;\n}\nexports.schemaHasRulesButRef = schemaHasRulesButRef;\nfunction schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {\n if (!$data) {\n if (typeof schema == \"number\" || typeof schema == \"boolean\")\n return schema;\n if (typeof schema == \"string\")\n return (0, codegen_1._) `${schema}`;\n }\n return (0, codegen_1._) `${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;\n}\nexports.schemaRefOrVal = schemaRefOrVal;\nfunction unescapeFragment(str) {\n return unescapeJsonPointer(decodeURIComponent(str));\n}\nexports.unescapeFragment = unescapeFragment;\nfunction escapeFragment(str) {\n return encodeURIComponent(escapeJsonPointer(str));\n}\nexports.escapeFragment = escapeFragment;\nfunction escapeJsonPointer(str) {\n if (typeof str == \"number\")\n return `${str}`;\n return str.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\nexports.escapeJsonPointer = escapeJsonPointer;\nfunction unescapeJsonPointer(str) {\n return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\nexports.unescapeJsonPointer = unescapeJsonPointer;\nfunction eachItem(xs, f) {\n if (Array.isArray(xs)) {\n for (const x of xs)\n f(x);\n }\n else {\n f(xs);\n }\n}\nexports.eachItem = eachItem;\nfunction makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName, }) {\n return (gen, from, to, toName) => {\n const res = to === undefined\n ? from\n : to instanceof codegen_1.Name\n ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)\n : from instanceof codegen_1.Name\n ? (mergeToName(gen, to, from), from)\n : mergeValues(from, to);\n return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;\n };\n}\nexports.mergeEvaluated = {\n props: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => {\n gen.if((0, codegen_1._) `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._) `${to} || {}`).code((0, codegen_1._) `Object.assign(${to}, ${from})`));\n }),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => {\n if (from === true) {\n gen.assign(to, true);\n }\n else {\n gen.assign(to, (0, codegen_1._) `${to} || {}`);\n setEvaluated(gen, to, from);\n }\n }),\n mergeValues: (from, to) => (from === true ? true : { ...from, ...to }),\n resultToName: evaluatedPropsToName,\n }),\n items: makeMergeEvaluated({\n mergeNames: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._) `${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)),\n mergeToName: (gen, from, to) => gen.if((0, codegen_1._) `${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._) `${to} > ${from} ? ${to} : ${from}`)),\n mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),\n resultToName: (gen, items) => gen.var(\"items\", items),\n }),\n};\nfunction evaluatedPropsToName(gen, ps) {\n if (ps === true)\n return gen.var(\"props\", true);\n const props = gen.var(\"props\", (0, codegen_1._) `{}`);\n if (ps !== undefined)\n setEvaluated(gen, props, ps);\n return props;\n}\nexports.evaluatedPropsToName = evaluatedPropsToName;\nfunction setEvaluated(gen, props, ps) {\n Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true));\n}\nexports.setEvaluated = setEvaluated;\nconst snippets = {};\nfunction useFunc(gen, f) {\n return gen.scopeValue(\"func\", {\n ref: f,\n code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code)),\n });\n}\nexports.useFunc = useFunc;\nvar Type;\n(function (Type) {\n Type[Type[\"Num\"] = 0] = \"Num\";\n Type[Type[\"Str\"] = 1] = \"Str\";\n})(Type || (exports.Type = Type = {}));\nfunction getErrorPath(dataProp, dataPropType, jsPropertySyntax) {\n // let path\n if (dataProp instanceof codegen_1.Name) {\n const isNumber = dataPropType === Type.Num;\n return jsPropertySyntax\n ? isNumber\n ? (0, codegen_1._) `\"[\" + ${dataProp} + \"]\"`\n : (0, codegen_1._) `\"['\" + ${dataProp} + \"']\"`\n : isNumber\n ? (0, codegen_1._) `\"/\" + ${dataProp}`\n : (0, codegen_1._) `\"/\" + ${dataProp}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")`; // TODO maybe use global escapePointer\n }\n return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : \"/\" + escapeJsonPointer(dataProp);\n}\nexports.getErrorPath = getErrorPath;\nfunction checkStrictMode(it, msg, mode = it.opts.strictSchema) {\n if (!mode)\n return;\n msg = `strict mode: ${msg}`;\n if (mode === true)\n throw new Error(msg);\n it.self.logger.warn(msg);\n}\nexports.checkStrictMode = checkStrictMode;\n//# sour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AAA,EAAG;AACrC,SAAS,aAAa,UAAU,cAAc,kBAAkB;AAE5D,MAAI,oBAAoB,UAAU,MAAM;AACpC,UAAM,WAAW,iBAAiB,KAAK;AACvC,WAAO,mBACD,YACI,GAAI,UAAU,WAAY,QAAQ,YAClC,GAAI,UAAU,YAAa,QAAQ,YACvC,YACI,GAAI,UAAU,WAAY,QAAQ,MAClC,GAAI,UAAU,WAAY,QAAQ;AAAA,EACpD;AACI,SAAO,uBAAuB,UAAU,aAAa,QAAQ,EAAE,aAAa,MAAM,kBAAkB,QAAQ;AAChH;AACA,KAAA,eAAuB;AACvB,SAAS,gBAAgB,IAAI,KAAK,OAAO,GAAG,KAAK,cAAc;AAC3D,MAAI,CAAC;AACD;AACJ,QAAM,gBAAgB,GAAG;AACzB,MAAI,SAAS;AACT,UAAM,IAAI,MAAM,GAAG;AACvB,KAAG,KAAK,OAAO,KAAK,GAAG;AAC3B;AACA,KAAA,kBAA0B;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"applicability.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;\nfunction schemaHasRulesForType({ schema, self }, type) {\n const group = self.RULES.types[type];\n return group && group !== true && shouldUseGroup(schema, group);\n}\nexports.schemaHasRulesForType = schemaHasRulesForType;\nfunction shouldUseGroup(schema, group) {\n return group.rules.some((rule) => shouldUseRule(schema, rule));\n}\nexports.shouldUseGroup = shouldUseGroup;\nfunction shouldUseRule(schema, rule) {\n var _a;\n return (schema[rule.keyword] !== undefined ||\n ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined)));\n}\nexports.shouldUseRule = shouldUseRule;\n//# sourceMappingURL=applicability.js.map"],"names":["self"],"mappings":";;;;;;;;;AACA,OAAO,eAAe,eAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,cAAA,gBAAwB,cAAA,uDAAyD;AACjF,SAAS,sBAAsB,EAAE,QAAQ,MAAAA,MAAI,GAAI,MAAM;AACnD,QAAM,QAAQA,MAAK,MAAM,MAAM,IAAI;AACnC,SAAO,SAAS,UAAU,QAAQ,eAAe,QAAQ,KAAK;AAClE;AACA,cAAA,wBAAgC;AAChC,SAAS,eAAe,QAAQ,OAAO;AACnC,SAAO,MAAM,MAAM,KAAK,CAAC,SAAS,cAAc,QAAQ,IAAI,CAAC;AACjE;AACA,cAAA,iBAAyB;AACzB,SAAS,cAAc,QAAQ,MAAM;AACjC,MAAI;AACJ,SAAQ,OAAO,KAAK,OAAO,MAAM,YAC3B,KAAK,KAAK,WAAW,gBAAgB,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,CAAC,QAAQ,OAAO,GAAG,MAAM,MAAS;AAC1H;AACA,cAAA,gBAAwB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"applicability.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;\nfunction schemaHasRulesForType({ schema, self }, type) {\n const group = self.RULES.types[type];\n return group && group !== true && shouldUseGroup(schema, group);\n}\nexports.schemaHasRulesForType = schemaHasRulesForType;\nfunction shouldUseGroup(schema, group) {\n return group.rules.some((rule) => shouldUseRule(schema, rule));\n}\nexports.shouldUseGroup = shouldUseGroup;\nfunction shouldUseRule(schema, rule) {\n var _a;\n return (schema[rule.keyword] !== undefined ||\n ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined)));\n}\nexports.shouldUseRule = shouldUseRule;\n//# sourceMappingURL=applicability.js.map"],"names":["self"],"mappings":";;;;;;;;;AACA,OAAO,eAAe,eAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,cAAA,gBAAwB,cAAA,uDAAyD;AACjF,SAAS,sBAAsB,EAAE,QAAQ,MAAAA,MAAI,GAAI,MAAM;AACnD,QAAM,QAAQA,MAAK,MAAM,MAAM,IAAI;AACnC,SAAO,SAAS,UAAU,QAAQ,eAAe,QAAQ,KAAK;AAClE;AACA,cAAA,wBAAgC;AAChC,SAAS,eAAe,QAAQ,OAAO;AACnC,SAAO,MAAM,MAAM,KAAK,CAAC,SAAS,cAAc,QAAQ,IAAI,CAAC;AACjE;AACA,cAAA,iBAAyB;AACzB,SAAS,cAAc,QAAQ,MAAM;AACjC,MAAI;AACJ,SAAQ,OAAO,KAAK,OAAO,MAAM,YAC3B,KAAK,KAAK,WAAW,gBAAgB,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,CAAC,QAAQ,OAAO,GAAG,MAAM,MAAS;AAC1H;AACA,cAAA,gBAAwB;","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] = "c108744e-e411-4197-9a53-3ca70797f756", e._sentryDebugIdIdentifier = "sentry-dbid-c108744e-e411-4197-9a53-3ca70797f756");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b9aefc71-f383-48e9-b178-9f6be1ed4fc5", e._sentryDebugIdIdentifier = "sentry-dbid-b9aefc71-f383-48e9-b178-9f6be1ed4fc5");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
@@ -11,7 +11,7 @@ import "../errors.js";
11
11
  import "../codegen/index.js";
12
12
  import "../names.js";
13
13
  import { __exports as names } from "../../../../../../../../_virtual/names.js";
14
- import { __exports as codegen } from "../../../../../../../../_virtual/index3.js";
14
+ import { __exports as codegen } from "../../../../../../../../_virtual/index2.js";
15
15
  import { __exports as errors } from "../../../../../../../../_virtual/errors.js";
16
16
  Object.defineProperty(boolSchema, "__esModule", { value: true });
17
17
  boolSchema.boolOrEmptySchema = boolSchema.topBoolOrEmptySchema = void 0;
@@ -1 +1 @@
1
- {"version":3,"file":"boolSchema.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;\nconst errors_1 = require(\"../errors\");\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst boolError = {\n message: \"boolean schema is false\",\n};\nfunction topBoolOrEmptySchema(it) {\n const { gen, schema, validateName } = it;\n if (schema === false) {\n falseSchemaError(it, false);\n }\n else if (typeof schema == \"object\" && schema.$async === true) {\n gen.return(names_1.default.data);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, null);\n gen.return(true);\n }\n}\nexports.topBoolOrEmptySchema = topBoolOrEmptySchema;\nfunction boolOrEmptySchema(it, valid) {\n const { gen, schema } = it;\n if (schema === false) {\n gen.var(valid, false); // TODO var\n falseSchemaError(it);\n }\n else {\n gen.var(valid, true); // TODO var\n }\n}\nexports.boolOrEmptySchema = boolOrEmptySchema;\nfunction falseSchemaError(it, overrideAllErrors) {\n const { gen, data } = it;\n // TODO maybe some other interface should be used for non-keyword validation errors...\n const cxt = {\n gen,\n keyword: \"false schema\",\n data,\n schema: false,\n schemaCode: false,\n schemaValue: false,\n params: {},\n it,\n };\n (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors);\n}\n//# sourceMappingURL=boolSchema.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;AACA,OAAO,eAAe,YAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,WAAA,oBAA4B,WAAA,uBAA+B;AAC3D,MAAM,WAAWA;AACjB,MAAM,YAAYC;AAClB,MAAM,UAAUC;AAChB,MAAM,YAAY;AAAA,EACd,SAAS;AACb;AACA,SAAS,qBAAqB,IAAI;AAC9B,QAAM,EAAE,KAAK,QAAQ,aAAY,IAAK;AACtC,MAAI,WAAW,OAAO;AAClB,qBAAiB,IAAI,KAAK;AAAA,EAClC,WACa,OAAO,UAAU,YAAY,OAAO,WAAW,MAAM;AAC1D,QAAI,OAAO,QAAQ,QAAQ,IAAI;AAAA,EACvC,OACS;AACD,QAAI,QAAO,GAAI,UAAU,KAAM,YAAY,WAAW,IAAI;AAC1D,QAAI,OAAO,IAAI;AAAA,EACvB;AACA;AACA,WAAA,uBAA+B;AAC/B,SAAS,kBAAkB,IAAI,OAAO;AAClC,QAAM,EAAE,KAAK,OAAM,IAAK;AACxB,MAAI,WAAW,OAAO;AAClB,QAAI,IAAI,OAAO,KAAK;AACpB,qBAAiB,EAAE;AAAA,EAC3B,OACS;AACD,QAAI,IAAI,OAAO,IAAI;AAAA,EAC3B;AACA;AACA,WAAA,oBAA4B;AAC5B,SAAS,iBAAiB,IAAI,mBAAmB;AAC7C,QAAM,EAAE,KAAK,KAAI,IAAK;AAEtB,QAAM,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,QAAQ,CAAA;AAAA,IACR;AAAA,EACR;AACI,GAAA,GAAI,SAAS,aAAa,KAAK,WAAW,QAAW,iBAAiB;AAC1E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"boolSchema.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;\nconst errors_1 = require(\"../errors\");\nconst codegen_1 = require(\"../codegen\");\nconst names_1 = require(\"../names\");\nconst boolError = {\n message: \"boolean schema is false\",\n};\nfunction topBoolOrEmptySchema(it) {\n const { gen, schema, validateName } = it;\n if (schema === false) {\n falseSchemaError(it, false);\n }\n else if (typeof schema == \"object\" && schema.$async === true) {\n gen.return(names_1.default.data);\n }\n else {\n gen.assign((0, codegen_1._) `${validateName}.errors`, null);\n gen.return(true);\n }\n}\nexports.topBoolOrEmptySchema = topBoolOrEmptySchema;\nfunction boolOrEmptySchema(it, valid) {\n const { gen, schema } = it;\n if (schema === false) {\n gen.var(valid, false); // TODO var\n falseSchemaError(it);\n }\n else {\n gen.var(valid, true); // TODO var\n }\n}\nexports.boolOrEmptySchema = boolOrEmptySchema;\nfunction falseSchemaError(it, overrideAllErrors) {\n const { gen, data } = it;\n // TODO maybe some other interface should be used for non-keyword validation errors...\n const cxt = {\n gen,\n keyword: \"false schema\",\n data,\n schema: false,\n schemaCode: false,\n schemaValue: false,\n params: {},\n it,\n };\n (0, errors_1.reportError)(cxt, boolError, undefined, overrideAllErrors);\n}\n//# sourceMappingURL=boolSchema.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;AACA,OAAO,eAAe,YAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,WAAA,oBAA4B,WAAA,uBAA+B;AAC3D,MAAM,WAAWA;AACjB,MAAM,YAAYC;AAClB,MAAM,UAAUC;AAChB,MAAM,YAAY;AAAA,EACd,SAAS;AACb;AACA,SAAS,qBAAqB,IAAI;AAC9B,QAAM,EAAE,KAAK,QAAQ,aAAY,IAAK;AACtC,MAAI,WAAW,OAAO;AAClB,qBAAiB,IAAI,KAAK;AAAA,EAClC,WACa,OAAO,UAAU,YAAY,OAAO,WAAW,MAAM;AAC1D,QAAI,OAAO,QAAQ,QAAQ,IAAI;AAAA,EACvC,OACS;AACD,QAAI,QAAO,GAAI,UAAU,KAAM,YAAY,WAAW,IAAI;AAC1D,QAAI,OAAO,IAAI;AAAA,EACvB;AACA;AACA,WAAA,uBAA+B;AAC/B,SAAS,kBAAkB,IAAI,OAAO;AAClC,QAAM,EAAE,KAAK,OAAM,IAAK;AACxB,MAAI,WAAW,OAAO;AAClB,QAAI,IAAI,OAAO,KAAK;AACpB,qBAAiB,EAAE;AAAA,EAC3B,OACS;AACD,QAAI,IAAI,OAAO,IAAI;AAAA,EAC3B;AACA;AACA,WAAA,oBAA4B;AAC5B,SAAS,iBAAiB,IAAI,mBAAmB;AAC7C,QAAM,EAAE,KAAK,KAAI,IAAK;AAEtB,QAAM,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,QAAQ,CAAA;AAAA,IACR;AAAA,EACR;AACI,GAAA,GAAI,SAAS,aAAa,KAAK,WAAW,QAAW,iBAAiB;AAC1E;","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] = "5e2b8f01-4a71-47c6-8764-818c6a0f0896", e._sentryDebugIdIdentifier = "sentry-dbid-5e2b8f01-4a71-47c6-8764-818c6a0f0896");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fc4e669d-0b67-4ae9-87d6-46410a45398b", e._sentryDebugIdIdentifier = "sentry-dbid-fc4e669d-0b67-4ae9-87d6-46410a45398b");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
@@ -14,7 +14,7 @@ import "../codegen/index.js";
14
14
  import "../util.js";
15
15
  import { __exports as rules } from "../../../../../../../../_virtual/rules.js";
16
16
  import { __exports as applicability } from "../../../../../../../../_virtual/applicability.js";
17
- import { __exports as codegen } from "../../../../../../../../_virtual/index3.js";
17
+ import { __exports as codegen } from "../../../../../../../../_virtual/index2.js";
18
18
  import { __exports as util } from "../../../../../../../../_virtual/util.js";
19
19
  import { __exports as errors } from "../../../../../../../../_virtual/errors.js";
20
20
  Object.defineProperty(dataType, "__esModule", { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"dataType.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;\nconst rules_1 = require(\"../rules\");\nconst applicability_1 = require(\"./applicability\");\nconst errors_1 = require(\"../errors\");\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nvar DataType;\n(function (DataType) {\n DataType[DataType[\"Correct\"] = 0] = \"Correct\";\n DataType[DataType[\"Wrong\"] = 1] = \"Wrong\";\n})(DataType || (exports.DataType = DataType = {}));\nfunction getSchemaTypes(schema) {\n const types = getJSONTypes(schema.type);\n const hasNull = types.includes(\"null\");\n if (hasNull) {\n if (schema.nullable === false)\n throw new Error(\"type: null contradicts nullable: false\");\n }\n else {\n if (!types.length && schema.nullable !== undefined) {\n throw new Error('\"nullable\" cannot be used without \"type\"');\n }\n if (schema.nullable === true)\n types.push(\"null\");\n }\n return types;\n}\nexports.getSchemaTypes = getSchemaTypes;\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nfunction getJSONTypes(ts) {\n const types = Array.isArray(ts) ? ts : ts ? [ts] : [];\n if (types.every(rules_1.isJSONType))\n return types;\n throw new Error(\"type must be JSONType or JSONType[]: \" + types.join(\",\"));\n}\nexports.getJSONTypes = getJSONTypes;\nfunction coerceAndCheckDataType(it, types) {\n const { gen, data, opts } = it;\n const coerceTo = coerceToTypes(types, opts.coerceTypes);\n const checkTypes = types.length > 0 &&\n !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0]));\n if (checkTypes) {\n const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong);\n gen.if(wrongType, () => {\n if (coerceTo.length)\n coerceData(it, types, coerceTo);\n else\n reportTypeError(it);\n });\n }\n return checkTypes;\n}\nexports.coerceAndCheckDataType = coerceAndCheckDataType;\nconst COERCIBLE = new Set([\"string\", \"number\", \"integer\", \"boolean\", \"null\"]);\nfunction coerceToTypes(types, coerceTypes) {\n return coerceTypes\n ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === \"array\" && t === \"array\"))\n : [];\n}\nfunction coerceData(it, types, coerceTo) {\n const { gen, data, opts } = it;\n const dataType = gen.let(\"dataType\", (0, codegen_1._) `typeof ${data}`);\n const coerced = gen.let(\"coerced\", (0, codegen_1._) `undefined`);\n if (opts.coerceTypes === \"array\") {\n gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen\n .assign(data, (0, codegen_1._) `${data}[0]`)\n .assign(dataType, (0, codegen_1._) `typeof ${data}`)\n .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)));\n }\n gen.if((0, codegen_1._) `${coerced} !== undefined`);\n for (const t of coerceTo) {\n if (COERCIBLE.has(t) || (t === \"array\" && opts.coerceTypes === \"array\")) {\n coerceSpecificType(t);\n }\n }\n gen.else();\n reportTypeError(it);\n gen.endIf();\n gen.if((0, codegen_1._) `${coerced} !== undefined`, () => {\n gen.assign(data, coerced);\n assignParentData(it, coerced);\n });\n function coerceSpecificType(t) {\n switch (t) {\n case \"string\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"number\" || ${dataType} == \"boolean\"`)\n .assign(coerced, (0, codegen_1._) `\"\" + ${data}`)\n .elseIf((0, codegen_1._) `${data} === null`)\n .assign(coerced, (0, codegen_1._) `\"\"`);\n return;\n case \"number\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"boolean\" || ${data} === null\n || (${dataType} == \"string\" && ${data} && ${data} == +${data})`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"integer\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"boolean\" || ${data} === null\n || (${dataType} === \"string\" && ${data} && ${data} == +${data} && !(${data} % 1))`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"boolean\":\n gen\n .elseIf((0, codegen_1._) `${data} === \"false\" || ${data} === 0 || ${data} === null`)\n .assign(coerced, false)\n .elseIf((0, codegen_1._) `${data} === \"true\" || ${data} === 1`)\n .assign(coerced, true);\n return;\n case \"null\":\n gen.elseIf((0, codegen_1._) `${data} === \"\" || ${data} === 0 || ${data} === false`);\n gen.assign(coerced, null);\n return;\n case \"array\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"string\" || ${dataType} === \"number\"\n || ${dataType} === \"boolean\" || ${data} === null`)\n .assign(coerced, (0, codegen_1._) `[${data}]`);\n }\n }\n}\nfunction assignParentData({ gen, parentData, parentDataProperty }, expr) {\n // TODO use gen.property\n gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr));\n}\nfunction checkDataType(dataType, data, strictNums, correct = DataType.Correct) {\n const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ;\n let cond;\n switch (dataType) {\n case \"null\":\n return (0, codegen_1._) `${data} ${EQ} null`;\n case \"array\":\n cond = (0, codegen_1._) `Array.isArray(${data})`;\n break;\n case \"object\":\n cond = (0, codegen_1._) `${data} && typeof ${data} == \"object\" && !Array.isArray(${data})`;\n break;\n case \"integer\":\n cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`);\n break;\n case \"number\":\n cond = numCond();\n break;\n default:\n return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`;\n }\n return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond);\n function numCond(_cond = codegen_1.nil) {\n return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == \"number\"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil);\n }\n}\nexports.checkDataType = checkDataType;\nfunction checkDataTypes(dataTypes, data, strictNums, correct) {\n if (dataTypes.length === 1) {\n return checkDataType(dataTypes[0], data, strictNums, correct);\n }\n let cond;\n const types = (0, util_1.toHash)(dataTypes);\n if (types.array && types.object) {\n const notObj = (0, codegen_1._) `typeof ${data} != \"object\"`;\n cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`;\n delete types.null;\n delete types.array;\n delete types.object;\n }\n else {\n cond = codegen_1.nil;\n }\n if (types.number)\n delete types.integer;\n for (const t in types)\n cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));\n return cond;\n}\nexports.checkDataTypes = checkDataTypes;\nconst typeError = {\n message: ({ schema }) => `must be ${schema}`,\n params: ({ schema, schemaValue }) => typeof schema == \"string\" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`,\n};\nfunction reportTypeError(it) {\n const cxt = getTypeErrorContext(it);\n (0, errors_1.reportError)(cxt, typeError);\n}\nexports.reportTypeError = reportTypeError;\nfunction getTypeErrorContext(it) {\n const { gen, data, schema } = it;\n const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, \"type\");\n return {\n gen,\n keyword: \"type\",\n data,\n schema: schema.type,\n schemaCode,\n schemaValue: schemaCode,\n parentSchema: schema,\n params: {},\n it,\n };\n}\n//# sourceMappingURL=dataType.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","DataType","dataType"],"mappings":";;;;;;;;;;;;;;;;;;;AACA,OAAO,eAAe,UAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,SAAA,kBAA0B,SAAA,iBAAyB,SAAA,gBAAwB,SAAA,yBAAiC,SAAA,yCAAgD,SAAA,WAAmB;AAC/K,MAAM,UAAUA;AA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OAAO,UAAS,GAAI,UAAU,MAAO,IAAI,OAAO,MAAM;AACnE,WAAO,MAAM;AACb,WAAO,MAAM;AACb,WAAO,MAAM;AAAA,EACrB,OACS;AACD,WAAO,UAAU;AAAA,EACzB;AACI,MAAI,MAAM;AACN,WAAO,MAAM;AACjB,aAAW,KAAK;AACZ,YAAO,GAAI,UAAU,KAAK,MAAM,cAAc,GAAG,MAAM,YAAY,OAAO,CAAC;AAC/E,SAAO;AACX;AACA,SAAA,iBAAyB;AACzB,MAAM,YAAY;AAAA,EACd,SAAS,CAAC,EAAE,OAAM,MAAO,WAAW,MAAM;AAAA,EAC1C,QAAQ,CAAC,EAAE,QAAQ,YAAW,MAAO,OAAO,UAAU,YAAW,GAAI,UAAU,YAAa,MAAM,OAAM,GAAI,UAAU,YAAa,WAAW;AAClJ;AACA,SAAS,gBAAgB,IAAI;AACzB,QAAM,MAAM,oBAAoB,EAAE;AAClC,GAAA,GAAI,SAAS,aAAa,KAAK,SAAS;AAC5C;AACA,SAAA,kBAA0B;AAC1B,SAAS,oBAAoB,IAAI;AAC7B,QAAM,EAAE,KAAK,MAAM,OAAM,IAAK;AAC9B,QAAM,cAAa,GAAI,OAAO,gBAAgB,IAAI,QAAQ,MAAM;AAChE,SAAO;AAAA,IACH;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,QAAQ,OAAO;AAAA,IACf;AAAA,IACA,aAAa;AAAA,IACb,cAAc;AAAA,IACd,QAAQ,CAAA;AAAA,IACR;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"dataType.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;\nconst rules_1 = require(\"../rules\");\nconst applicability_1 = require(\"./applicability\");\nconst errors_1 = require(\"../errors\");\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nvar DataType;\n(function (DataType) {\n DataType[DataType[\"Correct\"] = 0] = \"Correct\";\n DataType[DataType[\"Wrong\"] = 1] = \"Wrong\";\n})(DataType || (exports.DataType = DataType = {}));\nfunction getSchemaTypes(schema) {\n const types = getJSONTypes(schema.type);\n const hasNull = types.includes(\"null\");\n if (hasNull) {\n if (schema.nullable === false)\n throw new Error(\"type: null contradicts nullable: false\");\n }\n else {\n if (!types.length && schema.nullable !== undefined) {\n throw new Error('\"nullable\" cannot be used without \"type\"');\n }\n if (schema.nullable === true)\n types.push(\"null\");\n }\n return types;\n}\nexports.getSchemaTypes = getSchemaTypes;\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nfunction getJSONTypes(ts) {\n const types = Array.isArray(ts) ? ts : ts ? [ts] : [];\n if (types.every(rules_1.isJSONType))\n return types;\n throw new Error(\"type must be JSONType or JSONType[]: \" + types.join(\",\"));\n}\nexports.getJSONTypes = getJSONTypes;\nfunction coerceAndCheckDataType(it, types) {\n const { gen, data, opts } = it;\n const coerceTo = coerceToTypes(types, opts.coerceTypes);\n const checkTypes = types.length > 0 &&\n !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0]));\n if (checkTypes) {\n const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong);\n gen.if(wrongType, () => {\n if (coerceTo.length)\n coerceData(it, types, coerceTo);\n else\n reportTypeError(it);\n });\n }\n return checkTypes;\n}\nexports.coerceAndCheckDataType = coerceAndCheckDataType;\nconst COERCIBLE = new Set([\"string\", \"number\", \"integer\", \"boolean\", \"null\"]);\nfunction coerceToTypes(types, coerceTypes) {\n return coerceTypes\n ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === \"array\" && t === \"array\"))\n : [];\n}\nfunction coerceData(it, types, coerceTo) {\n const { gen, data, opts } = it;\n const dataType = gen.let(\"dataType\", (0, codegen_1._) `typeof ${data}`);\n const coerced = gen.let(\"coerced\", (0, codegen_1._) `undefined`);\n if (opts.coerceTypes === \"array\") {\n gen.if((0, codegen_1._) `${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen\n .assign(data, (0, codegen_1._) `${data}[0]`)\n .assign(dataType, (0, codegen_1._) `typeof ${data}`)\n .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)));\n }\n gen.if((0, codegen_1._) `${coerced} !== undefined`);\n for (const t of coerceTo) {\n if (COERCIBLE.has(t) || (t === \"array\" && opts.coerceTypes === \"array\")) {\n coerceSpecificType(t);\n }\n }\n gen.else();\n reportTypeError(it);\n gen.endIf();\n gen.if((0, codegen_1._) `${coerced} !== undefined`, () => {\n gen.assign(data, coerced);\n assignParentData(it, coerced);\n });\n function coerceSpecificType(t) {\n switch (t) {\n case \"string\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"number\" || ${dataType} == \"boolean\"`)\n .assign(coerced, (0, codegen_1._) `\"\" + ${data}`)\n .elseIf((0, codegen_1._) `${data} === null`)\n .assign(coerced, (0, codegen_1._) `\"\"`);\n return;\n case \"number\":\n gen\n .elseIf((0, codegen_1._) `${dataType} == \"boolean\" || ${data} === null\n || (${dataType} == \"string\" && ${data} && ${data} == +${data})`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"integer\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"boolean\" || ${data} === null\n || (${dataType} === \"string\" && ${data} && ${data} == +${data} && !(${data} % 1))`)\n .assign(coerced, (0, codegen_1._) `+${data}`);\n return;\n case \"boolean\":\n gen\n .elseIf((0, codegen_1._) `${data} === \"false\" || ${data} === 0 || ${data} === null`)\n .assign(coerced, false)\n .elseIf((0, codegen_1._) `${data} === \"true\" || ${data} === 1`)\n .assign(coerced, true);\n return;\n case \"null\":\n gen.elseIf((0, codegen_1._) `${data} === \"\" || ${data} === 0 || ${data} === false`);\n gen.assign(coerced, null);\n return;\n case \"array\":\n gen\n .elseIf((0, codegen_1._) `${dataType} === \"string\" || ${dataType} === \"number\"\n || ${dataType} === \"boolean\" || ${data} === null`)\n .assign(coerced, (0, codegen_1._) `[${data}]`);\n }\n }\n}\nfunction assignParentData({ gen, parentData, parentDataProperty }, expr) {\n // TODO use gen.property\n gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr));\n}\nfunction checkDataType(dataType, data, strictNums, correct = DataType.Correct) {\n const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ;\n let cond;\n switch (dataType) {\n case \"null\":\n return (0, codegen_1._) `${data} ${EQ} null`;\n case \"array\":\n cond = (0, codegen_1._) `Array.isArray(${data})`;\n break;\n case \"object\":\n cond = (0, codegen_1._) `${data} && typeof ${data} == \"object\" && !Array.isArray(${data})`;\n break;\n case \"integer\":\n cond = numCond((0, codegen_1._) `!(${data} % 1) && !isNaN(${data})`);\n break;\n case \"number\":\n cond = numCond();\n break;\n default:\n return (0, codegen_1._) `typeof ${data} ${EQ} ${dataType}`;\n }\n return correct === DataType.Correct ? cond : (0, codegen_1.not)(cond);\n function numCond(_cond = codegen_1.nil) {\n return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == \"number\"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil);\n }\n}\nexports.checkDataType = checkDataType;\nfunction checkDataTypes(dataTypes, data, strictNums, correct) {\n if (dataTypes.length === 1) {\n return checkDataType(dataTypes[0], data, strictNums, correct);\n }\n let cond;\n const types = (0, util_1.toHash)(dataTypes);\n if (types.array && types.object) {\n const notObj = (0, codegen_1._) `typeof ${data} != \"object\"`;\n cond = types.null ? notObj : (0, codegen_1._) `!${data} || ${notObj}`;\n delete types.null;\n delete types.array;\n delete types.object;\n }\n else {\n cond = codegen_1.nil;\n }\n if (types.number)\n delete types.integer;\n for (const t in types)\n cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));\n return cond;\n}\nexports.checkDataTypes = checkDataTypes;\nconst typeError = {\n message: ({ schema }) => `must be ${schema}`,\n params: ({ schema, schemaValue }) => typeof schema == \"string\" ? (0, codegen_1._) `{type: ${schema}}` : (0, codegen_1._) `{type: ${schemaValue}}`,\n};\nfunction reportTypeError(it) {\n const cxt = getTypeErrorContext(it);\n (0, errors_1.reportError)(cxt, typeError);\n}\nexports.reportTypeError = reportTypeError;\nfunction getTypeErrorContext(it) {\n const { gen, data, schema } = it;\n const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, \"type\");\n return {\n gen,\n keyword: \"type\",\n data,\n schema: schema.type,\n schemaCode,\n schemaValue: schemaCode,\n parentSchema: schema,\n params: {},\n it,\n };\n}\n//# sourceMappingURL=dataType.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","DataType","dataType"],"mappings":";;;;;;;;;;;;;;;;;;;AACA,OAAO,eAAe,UAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,SAAA,kBAA0B,SAAA,iBAAyB,SAAA,gBAAwB,SAAA,yBAAiC,SAAA,yCAAgD,SAAA,WAAmB;AAC/K,MAAM,UAAUA;AAChB,MAAM,kBAAkBC;AACxB,MAAM,WAAWC;AACjB,MAAM,YAAYC;AAClB,MAAM,SAASC;AACf,IAAI;AAAA,CACH,SAAUC,WAAU;AACjB,EAAAA,UAASA,UAAS,SAAS,IAAI,CAAC,IAAI;AACpC,EAAAA,UAASA,UAAS,OAAO,IAAI,CAAC,IAAI;AACtC,GAAG,aAAa,SAAA,WAAmB,WAAW,CAAA,EAAG;AACjD,SAAS,eAAe,QAAQ;AAC5B,QAAM,QAAQ,aAAa,OAAO,IAAI;AACtC,QAAM,UAAU,MAAM,SAAS,MAAM;AACrC,MAAI,SAAS;AACT,QAAI,OAAO,aAAa;AACpB,YAAM,IAAI,MAAM,wCAAwC;AAAA,EACpE,OACS;AACD,QAAI,CAAC,MAAM,UAAU,O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AAI,UAAU,YAAa,WAAW;AAClJ;AACA,SAAS,gBAAgB,IAAI;AACzB,QAAM,MAAM,oBAAoB,EAAE;AAClC,GAAA,GAAI,SAAS,aAAa,KAAK,SAAS;AAC5C;AACA,SAAA,kBAA0B;AAC1B,SAAS,oBAAoB,IAAI;AAC7B,QAAM,EAAE,KAAK,MAAM,OAAM,IAAK;AAC9B,QAAM,cAAa,GAAI,OAAO,gBAAgB,IAAI,QAAQ,MAAM;AAChE,SAAO;AAAA,IACH;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,QAAQ,OAAO;AAAA,IACf;AAAA,IACA,aAAa;AAAA,IACb,cAAc;AAAA,IACd,QAAQ,CAAA;AAAA,IACR;AAAA,EACR;AACA;","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] = "2aa4c99f-55f5-4807-8e71-d2488e91f187", e._sentryDebugIdIdentifier = "sentry-dbid-2aa4c99f-55f5-4807-8e71-d2488e91f187");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f3314bea-8021-4b52-8b00-51e01e49d0c3", e._sentryDebugIdIdentifier = "sentry-dbid-f3314bea-8021-4b52-8b00-51e01e49d0c3");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as defaults } from "../../../../../../../../_virtual/defaults.js";
10
10
  import "../codegen/index.js";
11
11
  import "../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(defaults, "__esModule", { value: true });
15
15
  defaults.assignDefaults = void 0;
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assignDefaults = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nfunction assignDefaults(it, ty) {\n const { properties, items } = it.schema;\n if (ty === \"object\" && properties) {\n for (const key in properties) {\n assignDefault(it, key, properties[key].default);\n }\n }\n else if (ty === \"array\" && Array.isArray(items)) {\n items.forEach((sch, i) => assignDefault(it, i, sch.default));\n }\n}\nexports.assignDefaults = assignDefaults;\nfunction assignDefault(it, prop, defaultValue) {\n const { gen, compositeRule, data, opts } = it;\n if (defaultValue === undefined)\n return;\n const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`;\n if (compositeRule) {\n (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`);\n return;\n }\n let condition = (0, codegen_1._) `${childData} === undefined`;\n if (opts.useDefaults === \"empty\") {\n condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === \"\"`;\n }\n // `${childData} === undefined` +\n // (opts.useDefaults === \"empty\" ? ` || ${childData} === null || ${childData} === \"\"` : \"\")\n gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);\n}\n//# sourceMappingURL=defaults.js.map"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;;;AACA,OAAO,eAAe,UAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,SAAA,iBAAyB;AACzB,MAAM,YAAYA;AAClB,MAAM,SAASC;AACf,SAAS,eAAe,IAAI,IAAI;AAC5B,QAAM,EAAE,YAAY,MAAK,IAAK,GAAG;AACjC,MAAI,OAAO,YAAY,YAAY;AAC/B,eAAW,OAAO,YAAY;AAC1B,oBAAc,IAAI,KAAK,WAAW,GAAG,EAAE,OAAO;AAAA,IAC1D;AAAA,EACA,WACa,OAAO,WAAW,MAAM,QAAQ,KAAK,GAAG;AAC7C,UAAM,QAAQ,CAAC,KAAK,MAAM,cAAc,IAAI,GAAG,IAAI,OAAO,CAAC;AAAA,EACnE;AACA;AACA,SAAA,iBAAyB;AACzB,SAAS,cAAc,IAAI,MAAM,cAAc;AAC3C,QAAM,EAAE,KAAK,eAAe,MAAM,KAAI,IAAK;AAC3C,MAAI,iBAAiB;AACjB;AACJ,QAAM,aAAY,GAAI,UAAU,KAAM,IAAI,OAAO,UAAU,aAAa,IAAI,CAAC;AAC7E,MAAI,eAAe;AACf,KAAA,GAAI,OAAO,iBAAiB,IAAI,2BAA2B,SAAS,EAAE;AACtE;AAAA,EACR;AACI,MAAI,aAAY,GAAI,UAAU,KAAM,SAAS;AAC7C,MAAI,KAAK,gBAAgB,SAAS;AAC9B,iBAAY,GAAI,UAAU,KAAM,SAAS,OAAO,SAAS,gBAAgB,SAAS;AAAA,EAC1F;AAGI,MAAI,GAAG,YAAW,GAAI,UAAU,KAAM,SAAS,OAAM,GAAI,UAAU,WAAW,YAAY,CAAC,EAAE;AACjG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"defaults.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assignDefaults = void 0;\nconst codegen_1 = require(\"../codegen\");\nconst util_1 = require(\"../util\");\nfunction assignDefaults(it, ty) {\n const { properties, items } = it.schema;\n if (ty === \"object\" && properties) {\n for (const key in properties) {\n assignDefault(it, key, properties[key].default);\n }\n }\n else if (ty === \"array\" && Array.isArray(items)) {\n items.forEach((sch, i) => assignDefault(it, i, sch.default));\n }\n}\nexports.assignDefaults = assignDefaults;\nfunction assignDefault(it, prop, defaultValue) {\n const { gen, compositeRule, data, opts } = it;\n if (defaultValue === undefined)\n return;\n const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`;\n if (compositeRule) {\n (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`);\n return;\n }\n let condition = (0, codegen_1._) `${childData} === undefined`;\n if (opts.useDefaults === \"empty\") {\n condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === \"\"`;\n }\n // `${childData} === undefined` +\n // (opts.useDefaults === \"empty\" ? ` || ${childData} === null || ${childData} === \"\"` : \"\")\n gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);\n}\n//# sourceMappingURL=defaults.js.map"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;;;AACA,OAAO,eAAe,UAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,SAAA,iBAAyB;AACzB,MAAM,YAAYA;AAClB,MAAM,SAASC;AACf,SAAS,eAAe,IAAI,IAAI;AAC5B,QAAM,EAAE,YAAY,MAAK,IAAK,GAAG;AACjC,MAAI,OAAO,YAAY,YAAY;AAC/B,eAAW,OAAO,YAAY;AAC1B,oBAAc,IAAI,KAAK,WAAW,GAAG,EAAE,OAAO;AAAA,IAC1D;AAAA,EACA,WACa,OAAO,WAAW,MAAM,QAAQ,KAAK,GAAG;AAC7C,UAAM,QAAQ,CAAC,KAAK,MAAM,cAAc,IAAI,GAAG,IAAI,OAAO,CAAC;AAAA,EACnE;AACA;AACA,SAAA,iBAAyB;AACzB,SAAS,cAAc,IAAI,MAAM,cAAc;AAC3C,QAAM,EAAE,KAAK,eAAe,MAAM,KAAI,IAAK;AAC3C,MAAI,iBAAiB;AACjB;AACJ,QAAM,aAAY,GAAI,UAAU,KAAM,IAAI,OAAO,UAAU,aAAa,IAAI,CAAC;AAC7E,MAAI,eAAe;AACf,KAAA,GAAI,OAAO,iBAAiB,IAAI,2BAA2B,SAAS,EAAE;AACtE;AAAA,EACR;AACI,MAAI,aAAY,GAAI,UAAU,KAAM,SAAS;AAC7C,MAAI,KAAK,gBAAgB,SAAS;AAC9B,iBAAY,GAAI,UAAU,KAAM,SAAS,OAAO,SAAS,gBAAgB,SAAS;AAAA,EAC1F;AAGI,MAAI,GAAG,YAAW,GAAI,UAAU,KAAM,SAAS,OAAM,GAAI,UAAU,WAAW,YAAY,CAAC,EAAE;AACjG;","x_google_ignoreList":[0]}
@@ -2,11 +2,11 @@
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] = "69943ebd-106a-4b6a-89e5-a52f01782044", e._sentryDebugIdIdentifier = "sentry-dbid-69943ebd-106a-4b6a-89e5-a52f01782044");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "77419236-6021-45dd-94e7-3596d97b1cbe", e._sentryDebugIdIdentifier = "sentry-dbid-77419236-6021-45dd-94e7-3596d97b1cbe");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
- import { __exports as validate } from "../../../../../../../../_virtual/index2.js";
9
+ import { __exports as validate } from "../../../../../../../../_virtual/index.js";
10
10
  import "./boolSchema.js";
11
11
  import "./dataType.js";
12
12
  import "./applicability.js";
@@ -21,7 +21,7 @@ import "../errors.js";
21
21
  import { __exports as keyword } from "../../../../../../../../_virtual/keyword.js";
22
22
  import { __exports as util } from "../../../../../../../../_virtual/util.js";
23
23
  import { __exports as names } from "../../../../../../../../_virtual/names.js";
24
- import { __exports as codegen } from "../../../../../../../../_virtual/index3.js";
24
+ import { __exports as codegen } from "../../../../../../../../_virtual/index2.js";
25
25
  import { __exports as errors } from "../../../../../../../../_virtual/errors.js";
26
26
  import { __exports as dataType } from "../../../../../../../../_virtual/dataType.js";
27
27
  import { __exports as subschema } from "../../../../../../../../_virtual/subschema.js";