@spotlightjs/spotlight 4.11.3 → 4.11.5

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 (191) hide show
  1. package/dist/_virtual/ajv.js +6 -3
  2. package/dist/_virtual/ajv2.js +13 -0
  3. package/dist/_virtual/index.js +6 -3
  4. package/dist/_virtual/index10.js +3 -3
  5. package/dist/_virtual/index11.js +3 -3
  6. package/dist/_virtual/index12.js +13 -0
  7. package/dist/_virtual/index2.js +3 -3
  8. package/dist/_virtual/index4.js +3 -3
  9. package/dist/_virtual/index5.js +3 -3
  10. package/dist/_virtual/index6.js +3 -3
  11. package/dist/_virtual/index7.js +3 -3
  12. package/dist/_virtual/index8.js +3 -3
  13. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +1 -1
  14. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -1
  15. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +3 -3
  16. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js +203 -194
  17. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js.map +1 -1
  18. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js +47 -47
  19. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js.map +1 -1
  20. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js +77 -69
  21. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js.map +1 -1
  22. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js +80 -85
  23. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js.map +1 -1
  24. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js +145 -136
  25. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  26. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js +692 -685
  27. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
  28. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js +143 -135
  29. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
  30. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js +122 -116
  31. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js.map +1 -1
  32. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js +218 -218
  33. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js.map +1 -1
  34. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js +43 -35
  35. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js.map +1 -1
  36. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js +19 -11
  37. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
  38. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js +149 -144
  39. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  40. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js +31 -25
  41. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js.map +1 -1
  42. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js +164 -160
  43. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js.map +1 -1
  44. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -17
  45. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -1
  46. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js +52 -49
  47. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
  48. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js +174 -173
  49. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
  50. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js +36 -32
  51. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
  52. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js +473 -478
  53. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
  54. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js +113 -111
  55. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
  56. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js +81 -77
  57. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
  58. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js +573 -574
  59. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js.map +1 -1
  60. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js +3 -17
  61. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js.map +1 -1
  62. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +4 -236
  63. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +1 -1
  64. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js +16 -7
  65. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js.map +1 -1
  66. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js +27 -18
  67. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
  68. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js +16 -7
  69. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  70. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js +17 -8
  71. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js.map +1 -1
  72. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +55 -48
  73. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
  74. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +104 -99
  75. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
  76. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +30 -22
  77. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -1
  78. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +20 -12
  79. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -1
  80. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -88
  81. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
  82. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +94 -88
  83. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
  84. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js +71 -64
  85. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
  86. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js +66 -73
  87. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -1
  88. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js +60 -54
  89. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
  90. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +41 -36
  91. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -1
  92. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js +34 -26
  93. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
  94. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -53
  95. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
  96. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +73 -67
  97. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
  98. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +20 -12
  99. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -1
  100. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +62 -57
  101. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
  102. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +46 -39
  103. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -1
  104. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +21 -13
  105. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -1
  106. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js +132 -129
  107. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
  108. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js +17 -8
  109. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -1
  110. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js +27 -20
  111. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -1
  112. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js +121 -118
  113. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
  114. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +103 -99
  115. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  116. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +15 -9
  117. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
  118. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js +30 -26
  119. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -1
  120. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js +84 -76
  121. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
  122. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js +16 -8
  123. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -1
  124. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js +24 -18
  125. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -1
  126. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js +33 -27
  127. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
  128. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js +53 -47
  129. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
  130. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js +52 -53
  131. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -1
  132. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +32 -24
  133. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -1
  134. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +37 -31
  135. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -1
  136. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +35 -27
  137. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -1
  138. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +32 -24
  139. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
  140. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +31 -23
  141. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -1
  142. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +41 -35
  143. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -1
  144. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js +80 -74
  145. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
  146. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +71 -66
  147. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -1
  148. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +34 -27
  149. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js.map +1 -1
  150. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js +300 -0
  151. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js.map +1 -0
  152. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js +223 -0
  153. package/dist/node_modules/.pnpm/{fast-uri@3.1.0 → fast-uri@3.1.2}/node_modules/fast-uri/lib/schemes.js.map +1 -1
  154. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js +325 -0
  155. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js.map +1 -0
  156. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/helper/streaming/sse.js.map +1 -0
  157. package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/middleware/cors/index.js +8 -8
  158. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/middleware/cors/index.js.map +1 -0
  159. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/html.js.map +1 -0
  160. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/stream.js.map +1 -0
  161. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +83 -78
  162. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js.map +1 -1
  163. package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -1
  164. package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js.map +1 -1
  165. package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js +1 -1
  166. package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js.map +1 -1
  167. package/dist/sentry-config.js +2 -2
  168. package/dist/server/cli/run.js +2 -2
  169. package/dist/server/cli.js +2 -2
  170. package/dist/server/main.js +2 -2
  171. package/dist/server/mcp/mcp.js +2 -2
  172. package/dist/server/routes/stream/streaming.js +2 -2
  173. package/dist/ui/assets/index.js +61 -70
  174. package/dist/ui/assets/index2.js +1 -1
  175. package/dist/ui/assets/instrumentation.js +18 -18
  176. package/dist/ui/assets/main.css +1 -1
  177. package/dist/ui/assets/main.js +1 -1
  178. package/dist/ui/assets/serverTimingMeta.js +23 -30
  179. package/package.json +9 -9
  180. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +0 -264
  181. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js.map +0 -1
  182. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +0 -197
  183. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +0 -261
  184. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js.map +0 -1
  185. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/helper/streaming/sse.js.map +0 -1
  186. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/middleware/cors/index.js.map +0 -1
  187. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/html.js.map +0 -1
  188. package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/stream.js.map +0 -1
  189. /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/helper/streaming/sse.js +0 -0
  190. /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/utils/html.js +0 -0
  191. /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/utils/stream.js +0 -0
@@ -2,64 +2,71 @@
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] = "c066fab8-6649-454a-8c90-3bbe8b90d9b2", e._sentryDebugIdIdentifier = "sentry-dbid-c066fab8-6649-454a-8c90-3bbe8b90d9b2");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8392ef4a-4d22-4ad0-afc9-7c153e3cbf62", e._sentryDebugIdIdentifier = "sentry-dbid-8392ef4a-4d22-4ad0-afc9-7c153e3cbf62");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as oneOf } from "../../../../../../../../_virtual/oneOf.js";
10
- import "../../compile/codegen/index.js";
11
- import "../../compile/util.js";
12
- import { __exports as util } from "../../../../../../../../_virtual/util.js";
13
- import { __exports as codegen } from "../../../../../../../../_virtual/index2.js";
14
- Object.defineProperty(oneOf, "__esModule", { value: true });
15
- const codegen_1 = codegen;
16
- const util_1 = util;
17
- const error = {
18
- message: "must match exactly one schema in oneOf",
19
- params: ({ params }) => (0, codegen_1._)`{passingSchemas: ${params.passing}}`
20
- };
21
- const def = {
22
- keyword: "oneOf",
23
- schemaType: "array",
24
- trackErrors: true,
25
- error,
26
- code(cxt) {
27
- const { gen, schema, parentSchema, it } = cxt;
28
- if (!Array.isArray(schema))
29
- throw new Error("ajv implementation error");
30
- if (it.opts.discriminator && parentSchema.discriminator)
31
- return;
32
- const schArr = schema;
33
- const valid = gen.let("valid", false);
34
- const passing = gen.let("passing", null);
35
- const schValid = gen.name("_valid");
36
- cxt.setParams({ passing });
37
- gen.block(validateOneOf);
38
- cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
39
- function validateOneOf() {
40
- schArr.forEach((sch, i) => {
41
- let schCxt;
42
- if ((0, util_1.alwaysValidSchema)(it, sch)) {
43
- gen.var(schValid, true);
44
- } else {
45
- schCxt = cxt.subschema({
46
- keyword: "oneOf",
47
- schemaProp: i,
48
- compositeRule: true
49
- }, schValid);
50
- }
51
- if (i > 0) {
52
- gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${i}]`).else();
53
- }
54
- gen.if(schValid, () => {
55
- gen.assign(valid, true);
56
- gen.assign(passing, i);
57
- if (schCxt)
58
- cxt.mergeEvaluated(schCxt, codegen_1.Name);
10
+ import { __require as requireCodegen } from "../../compile/codegen/index.js";
11
+ import { __require as requireUtil } from "../../compile/util.js";
12
+ var hasRequiredOneOf;
13
+ function requireOneOf() {
14
+ if (hasRequiredOneOf) return oneOf;
15
+ hasRequiredOneOf = 1;
16
+ Object.defineProperty(oneOf, "__esModule", { value: true });
17
+ const codegen_1 = /* @__PURE__ */ requireCodegen();
18
+ const util_1 = /* @__PURE__ */ requireUtil();
19
+ const error = {
20
+ message: "must match exactly one schema in oneOf",
21
+ params: ({ params }) => (0, codegen_1._)`{passingSchemas: ${params.passing}}`
22
+ };
23
+ const def = {
24
+ keyword: "oneOf",
25
+ schemaType: "array",
26
+ trackErrors: true,
27
+ error,
28
+ code(cxt) {
29
+ const { gen, schema, parentSchema, it } = cxt;
30
+ if (!Array.isArray(schema))
31
+ throw new Error("ajv implementation error");
32
+ if (it.opts.discriminator && parentSchema.discriminator)
33
+ return;
34
+ const schArr = schema;
35
+ const valid = gen.let("valid", false);
36
+ const passing = gen.let("passing", null);
37
+ const schValid = gen.name("_valid");
38
+ cxt.setParams({ passing });
39
+ gen.block(validateOneOf);
40
+ cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
41
+ function validateOneOf() {
42
+ schArr.forEach((sch, i) => {
43
+ let schCxt;
44
+ if ((0, util_1.alwaysValidSchema)(it, sch)) {
45
+ gen.var(schValid, true);
46
+ } else {
47
+ schCxt = cxt.subschema({
48
+ keyword: "oneOf",
49
+ schemaProp: i,
50
+ compositeRule: true
51
+ }, schValid);
52
+ }
53
+ if (i > 0) {
54
+ gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${i}]`).else();
55
+ }
56
+ gen.if(schValid, () => {
57
+ gen.assign(valid, true);
58
+ gen.assign(passing, i);
59
+ if (schCxt)
60
+ cxt.mergeEvaluated(schCxt, codegen_1.Name);
61
+ });
59
62
  });
60
- });
63
+ }
61
64
  }
62
- }
65
+ };
66
+ oneOf.default = def;
67
+ return oneOf;
68
+ }
69
+ export {
70
+ requireOneOf as __require
63
71
  };
64
- oneOf.default = def;
65
72
  //# sourceMappingURL=oneOf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oneOf.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: \"must match exactly one schema in oneOf\",\n params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`,\n};\nconst def = {\n keyword: \"oneOf\",\n schemaType: \"array\",\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, it } = cxt;\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n if (it.opts.discriminator && parentSchema.discriminator)\n return;\n const schArr = schema;\n const valid = gen.let(\"valid\", false);\n const passing = gen.let(\"passing\", null);\n const schValid = gen.name(\"_valid\");\n cxt.setParams({ passing });\n // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas\n gen.block(validateOneOf);\n cxt.result(valid, () => cxt.reset(), () => cxt.error(true));\n function validateOneOf() {\n schArr.forEach((sch, i) => {\n let schCxt;\n if ((0, util_1.alwaysValidSchema)(it, sch)) {\n gen.var(schValid, true);\n }\n else {\n schCxt = cxt.subschema({\n keyword: \"oneOf\",\n schemaProp: i,\n compositeRule: true,\n }, schValid);\n }\n if (i > 0) {\n gen\n .if((0, codegen_1._) `${schValid} && ${valid}`)\n .assign(valid, false)\n .assign(passing, (0, codegen_1._) `[${passing}, ${i}]`)\n .else();\n }\n gen.if(schValid, () => {\n gen.assign(valid, true);\n gen.assign(passing, i);\n if (schCxt)\n cxt.mergeEvaluated(schCxt, codegen_1.Name);\n });\n });\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=oneOf.js.map"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;;;AACA,OAAO,eAAe,OAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,YAAYA;AAClB,MAAM,SAASC;AACf,MAAM,QAAQ;AAAA,EACV,SAAS;AAAA,EACT,QAAQ,CAAC,EAAE,OAAM,UAAW,UAAU,sBAAuB,OAAO,OAAO;AAC/E;AACA,MAAM,MAAM;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EAC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["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: \"must match exactly one schema in oneOf\",\n params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`,\n};\nconst def = {\n keyword: \"oneOf\",\n schemaType: \"array\",\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, it } = cxt;\n /* istanbul ignore if */\n if (!Array.isArray(schema))\n throw new Error(\"ajv implementation error\");\n if (it.opts.discriminator && parentSchema.discriminator)\n return;\n const schArr = schema;\n const valid = gen.let(\"valid\", false);\n const passing = gen.let(\"passing\", null);\n const schValid = gen.name(\"_valid\");\n cxt.setParams({ passing });\n // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas\n gen.block(validateOneOf);\n cxt.result(valid, () => cxt.reset(), () => cxt.error(true));\n function validateOneOf() {\n schArr.forEach((sch, i) => {\n let schCxt;\n if ((0, util_1.alwaysValidSchema)(it, sch)) {\n gen.var(schValid, true);\n }\n else {\n schCxt = cxt.subschema({\n keyword: \"oneOf\",\n schemaProp: i,\n compositeRule: true,\n }, schValid);\n }\n if (i > 0) {\n gen\n .if((0, codegen_1._) `${schValid} && ${valid}`)\n .assign(valid, false)\n .assign(passing, (0, codegen_1._) `[${passing}, ${i}]`)\n .else();\n }\n gen.if(schValid, () => {\n gen.assign(valid, true);\n gen.assign(passing, i);\n if (schCxt)\n cxt.mergeEvaluated(schCxt, codegen_1.Name);\n });\n });\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=oneOf.js.map"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;;;;;AACA,SAAO,eAAe,OAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAM,YAAYA,+BAAA;AAClB,QAAM,SAASC,4BAAA;AACf,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A,kBAAI,eAAe,QAAQ,UAAU,IAAI;AAAA,UACjE,CAAiB;AAAA,QACjB,CAAa;AAAA,MACb;AAAA,IACA;AAAA;AAEA,QAAA,UAAkB;;;","x_google_ignoreList":[0]}
@@ -2,82 +2,88 @@
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] = "99e78bce-b1aa-44f5-9fc4-e3123f910bfb", e._sentryDebugIdIdentifier = "sentry-dbid-99e78bce-b1aa-44f5-9fc4-e3123f910bfb");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fd47526d-9f2d-4873-b985-b3d3a1b2256b", e._sentryDebugIdIdentifier = "sentry-dbid-fd47526d-9f2d-4873-b985-b3d3a1b2256b");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as patternProperties } from "../../../../../../../../_virtual/patternProperties.js";
10
- import "../code.js";
11
- import "../../compile/codegen/index.js";
12
- import "../../compile/util.js";
13
- import { __exports as code } from "../../../../../../../../_virtual/code2.js";
14
- import { __exports as util } from "../../../../../../../../_virtual/util.js";
15
- import { __exports as codegen } from "../../../../../../../../_virtual/index2.js";
16
- Object.defineProperty(patternProperties, "__esModule", { value: true });
17
- const code_1 = code;
18
- const codegen_1 = codegen;
19
- const util_1 = util;
20
- const util_2 = util;
21
- const def = {
22
- keyword: "patternProperties",
23
- type: "object",
24
- schemaType: "object",
25
- code(cxt) {
26
- const { gen, schema, data, parentSchema, it } = cxt;
27
- const { opts } = it;
28
- const patterns = (0, code_1.allSchemaProperties)(schema);
29
- const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));
30
- if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it.opts.unevaluated || it.props === true)) {
31
- return;
32
- }
33
- const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;
34
- const valid = gen.name("valid");
35
- if (it.props !== true && !(it.props instanceof codegen_1.Name)) {
36
- it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);
37
- }
38
- const { props } = it;
39
- validatePatternProperties();
40
- function validatePatternProperties() {
41
- for (const pat of patterns) {
42
- if (checkProperties)
43
- checkMatchingProperties(pat);
44
- if (it.allErrors) {
45
- validateProperties(pat);
46
- } else {
47
- gen.var(valid, true);
48
- validateProperties(pat);
49
- gen.if(valid);
50
- }
10
+ import { __require as requireCode } from "../code.js";
11
+ import { __require as requireCodegen } from "../../compile/codegen/index.js";
12
+ import { __require as requireUtil } from "../../compile/util.js";
13
+ var hasRequiredPatternProperties;
14
+ function requirePatternProperties() {
15
+ if (hasRequiredPatternProperties) return patternProperties;
16
+ hasRequiredPatternProperties = 1;
17
+ Object.defineProperty(patternProperties, "__esModule", { value: true });
18
+ const code_1 = /* @__PURE__ */ requireCode();
19
+ const codegen_1 = /* @__PURE__ */ requireCodegen();
20
+ const util_1 = /* @__PURE__ */ requireUtil();
21
+ const util_2 = /* @__PURE__ */ requireUtil();
22
+ const def = {
23
+ keyword: "patternProperties",
24
+ type: "object",
25
+ schemaType: "object",
26
+ code(cxt) {
27
+ const { gen, schema, data, parentSchema, it } = cxt;
28
+ const { opts } = it;
29
+ const patterns = (0, code_1.allSchemaProperties)(schema);
30
+ const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));
31
+ if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it.opts.unevaluated || it.props === true)) {
32
+ return;
51
33
  }
52
- }
53
- function checkMatchingProperties(pat) {
54
- for (const prop in checkProperties) {
55
- if (new RegExp(pat).test(prop)) {
56
- (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
57
- }
34
+ const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;
35
+ const valid = gen.name("valid");
36
+ if (it.props !== true && !(it.props instanceof codegen_1.Name)) {
37
+ it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);
58
38
  }
59
- }
60
- function validateProperties(pat) {
61
- gen.forIn("key", data, (key) => {
62
- gen.if((0, codegen_1._)`${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {
63
- const alwaysValid = alwaysValidPatterns.includes(pat);
64
- if (!alwaysValid) {
65
- cxt.subschema({
66
- keyword: "patternProperties",
67
- schemaProp: pat,
68
- dataProp: key,
69
- dataPropType: util_2.Type.Str
70
- }, valid);
39
+ const { props } = it;
40
+ validatePatternProperties();
41
+ function validatePatternProperties() {
42
+ for (const pat of patterns) {
43
+ if (checkProperties)
44
+ checkMatchingProperties(pat);
45
+ if (it.allErrors) {
46
+ validateProperties(pat);
47
+ } else {
48
+ gen.var(valid, true);
49
+ validateProperties(pat);
50
+ gen.if(valid);
71
51
  }
72
- if (it.opts.unevaluated && props !== true) {
73
- gen.assign((0, codegen_1._)`${props}[${key}]`, true);
74
- } else if (!alwaysValid && !it.allErrors) {
75
- gen.if((0, codegen_1.not)(valid), () => gen.break());
52
+ }
53
+ }
54
+ function checkMatchingProperties(pat) {
55
+ for (const prop in checkProperties) {
56
+ if (new RegExp(pat).test(prop)) {
57
+ (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
76
58
  }
59
+ }
60
+ }
61
+ function validateProperties(pat) {
62
+ gen.forIn("key", data, (key) => {
63
+ gen.if((0, codegen_1._)`${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {
64
+ const alwaysValid = alwaysValidPatterns.includes(pat);
65
+ if (!alwaysValid) {
66
+ cxt.subschema({
67
+ keyword: "patternProperties",
68
+ schemaProp: pat,
69
+ dataProp: key,
70
+ dataPropType: util_2.Type.Str
71
+ }, valid);
72
+ }
73
+ if (it.opts.unevaluated && props !== true) {
74
+ gen.assign((0, codegen_1._)`${props}[${key}]`, true);
75
+ } else if (!alwaysValid && !it.allErrors) {
76
+ gen.if((0, codegen_1.not)(valid), () => gen.break());
77
+ }
78
+ });
77
79
  });
78
- });
80
+ }
79
81
  }
80
- }
82
+ };
83
+ patternProperties.default = def;
84
+ return patternProperties;
85
+ }
86
+ export {
87
+ requirePatternProperties as __require
81
88
  };
82
- patternProperties.default = def;
83
89
  //# sourceMappingURL=patternProperties.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"patternProperties.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst code_1 = require(\"../code\");\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst util_2 = require(\"../../compile/util\");\nconst def = {\n keyword: \"patternProperties\",\n type: \"object\",\n schemaType: \"object\",\n code(cxt) {\n const { gen, schema, data, parentSchema, it } = cxt;\n const { opts } = it;\n const patterns = (0, code_1.allSchemaProperties)(schema);\n const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));\n if (patterns.length === 0 ||\n (alwaysValidPatterns.length === patterns.length &&\n (!it.opts.unevaluated || it.props === true))) {\n return;\n }\n const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;\n const valid = gen.name(\"valid\");\n if (it.props !== true && !(it.props instanceof codegen_1.Name)) {\n it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);\n }\n const { props } = it;\n validatePatternProperties();\n function validatePatternProperties() {\n for (const pat of patterns) {\n if (checkProperties)\n checkMatchingProperties(pat);\n if (it.allErrors) {\n validateProperties(pat);\n }\n else {\n gen.var(valid, true); // TODO var\n validateProperties(pat);\n gen.if(valid);\n }\n }\n }\n function checkMatchingProperties(pat) {\n for (const prop in checkProperties) {\n if (new RegExp(pat).test(prop)) {\n (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);\n }\n }\n }\n function validateProperties(pat) {\n gen.forIn(\"key\", data, (key) => {\n gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {\n const alwaysValid = alwaysValidPatterns.includes(pat);\n if (!alwaysValid) {\n cxt.subschema({\n keyword: \"patternProperties\",\n schemaProp: pat,\n dataProp: key,\n dataPropType: util_2.Type.Str,\n }, valid);\n }\n if (it.opts.unevaluated && props !== true) {\n gen.assign((0, codegen_1._) `${props}[${key}]`, true);\n }\n else if (!alwaysValid && !it.allErrors) {\n // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)\n // or if all properties were evaluated (props === true)\n gen.if((0, codegen_1.not)(valid), () => gen.break());\n }\n });\n });\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=patternProperties.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;AACA,OAAO,eAAe,mBAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,SAASA;AACf,MAAM,YAAYC;AAClB,MAAM,SAASC;AACf,MAAM,SAASA;AACf,MAAM,MAAM;AAAA,EACR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,KAAK,KAAK;AACN,UAAM,EAAE,KAAK,QAAQ,MAAM,cAAc,GAAE,IAAK;AAChD,UAAM,EAAE,KAAI,IAAK;AACjB,UAAM,YAAW,GAAI,OAAO,qBAAqB,MAAM;AACvD,UAAM,sBAAsB,SAAS,OAAO,CAAC,OAAM,GAAI,OAAO,mBAAmB,IAAI,OAAO,CAAC,CAAC,CAAC;AAC/F,QAAI,SAAS,WAAW,KACnB,oBAAoB,WAAW,SAAS,WACpC,CAAC,GAAG,KAAK,eAAe,GAAG,UAAU,OAAQ;AAClD;AAAA,IACZ;AACQ,UAAM,kBAAkB,KAAK,gBAAgB,CAAC,KAAK,2BAA2B,aAAa;AAC3F,UAAM,QAAQ,IAAI,KAAK,OAAO;A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AC3E;AAAA,QACA,CAAiB;AAAA,MACjB,CAAa;AAAA,IACb;AAAA,EACA;AACA;AACA,kBAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"patternProperties.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst code_1 = require(\"../code\");\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst util_2 = require(\"../../compile/util\");\nconst def = {\n keyword: \"patternProperties\",\n type: \"object\",\n schemaType: \"object\",\n code(cxt) {\n const { gen, schema, data, parentSchema, it } = cxt;\n const { opts } = it;\n const patterns = (0, code_1.allSchemaProperties)(schema);\n const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));\n if (patterns.length === 0 ||\n (alwaysValidPatterns.length === patterns.length &&\n (!it.opts.unevaluated || it.props === true))) {\n return;\n }\n const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;\n const valid = gen.name(\"valid\");\n if (it.props !== true && !(it.props instanceof codegen_1.Name)) {\n it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);\n }\n const { props } = it;\n validatePatternProperties();\n function validatePatternProperties() {\n for (const pat of patterns) {\n if (checkProperties)\n checkMatchingProperties(pat);\n if (it.allErrors) {\n validateProperties(pat);\n }\n else {\n gen.var(valid, true); // TODO var\n validateProperties(pat);\n gen.if(valid);\n }\n }\n }\n function checkMatchingProperties(pat) {\n for (const prop in checkProperties) {\n if (new RegExp(pat).test(prop)) {\n (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);\n }\n }\n }\n function validateProperties(pat) {\n gen.forIn(\"key\", data, (key) => {\n gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {\n const alwaysValid = alwaysValidPatterns.includes(pat);\n if (!alwaysValid) {\n cxt.subschema({\n keyword: \"patternProperties\",\n schemaProp: pat,\n dataProp: key,\n dataPropType: util_2.Type.Str,\n }, valid);\n }\n if (it.opts.unevaluated && props !== true) {\n gen.assign((0, codegen_1._) `${props}[${key}]`, true);\n }\n else if (!alwaysValid && !it.allErrors) {\n // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)\n // or if all properties were evaluated (props === true)\n gen.if((0, codegen_1.not)(valid), () => gen.break());\n }\n });\n });\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=patternProperties.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;AACA,SAAO,eAAe,mBAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAM,SAASA,4BAAA;AACf,QAAM,YAAYC,+BAAA;AAClB,QAAM,SAASC,4BAAA;AACf,QAAM,SAASA,4BAAA;AACf,QAAM,MAAM;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,KAAK,KAAK;AACN,YAAM,EAAE,KAAK,QAAQ,MAAM,cAAc,GAAE,IAAK;AAChD,YAAM,EAAE,KAAI,IAAK;AACjB,YAAM,YAAW,GAAI,OAAO,qBAAqB,MAAM;AACvD,YAAM,sBAAsB,SAAS,OAAO,CAAC,OAAM,GAAI,OAAO,mBAAmB,IAAI,OAAO,CAAC,CAAC,CAAC;AAC/F,UAAI,SAAS,WAAW,KACnB,oBAAoB,WAAW,SAAS,WACpC,CAAC,GAAG,KAAK,eAAe,GAAG,UAAU,OAAQ;AAClD;AAAA,MACZ;AACQ,YAAM,kBAAkB,KAAK,gBAAgB,CAAC,KAAK,2BAA2B,aAAa;AAC3F,YAAM,QAAQ,IAAI,KAAK,OAAO;AAC9B,UAAI,GAAG,UAAU,QAAQ,EAAE,GAAG,iBAAiB,UAAU,OAAO;AAC5D,WAAG,YAAY,OAAO,sBAAsB,KAAK,GAAG,KAAK;AAAA,MACrE;AACQ,YAA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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] = "49a89071-ba55-4e5f-be89-a08e440ed7ac", e._sentryDebugIdIdentifier = "sentry-dbid-49a89071-ba55-4e5f-be89-a08e440ed7ac");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e4f3dd35-ca7e-4d54-963f-ae7469817331", e._sentryDebugIdIdentifier = "sentry-dbid-e4f3dd35-ca7e-4d54-963f-ae7469817331");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as prefixItems } from "../../../../../../../../_virtual/prefixItems.js";
10
- import "./items.js";
11
- import { __exports as items } from "../../../../../../../../_virtual/items.js";
12
- Object.defineProperty(prefixItems, "__esModule", { value: true });
13
- const items_1 = items;
14
- const def = {
15
- keyword: "prefixItems",
16
- type: "array",
17
- schemaType: ["array"],
18
- before: "uniqueItems",
19
- code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
10
+ import { __require as requireItems } from "./items.js";
11
+ var hasRequiredPrefixItems;
12
+ function requirePrefixItems() {
13
+ if (hasRequiredPrefixItems) return prefixItems;
14
+ hasRequiredPrefixItems = 1;
15
+ Object.defineProperty(prefixItems, "__esModule", { value: true });
16
+ const items_1 = /* @__PURE__ */ requireItems();
17
+ const def = {
18
+ keyword: "prefixItems",
19
+ type: "array",
20
+ schemaType: ["array"],
21
+ before: "uniqueItems",
22
+ code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
23
+ };
24
+ prefixItems.default = def;
25
+ return prefixItems;
26
+ }
27
+ export {
28
+ requirePrefixItems as __require
20
29
  };
21
- prefixItems.default = def;
22
30
  //# sourceMappingURL=prefixItems.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prefixItems.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst items_1 = require(\"./items\");\nconst def = {\n keyword: \"prefixItems\",\n type: \"array\",\n schemaType: [\"array\"],\n before: \"uniqueItems\",\n code: (cxt) => (0, items_1.validateTuple)(cxt, \"items\"),\n};\nexports.default = def;\n//# sourceMappingURL=prefixItems.js.map"],"names":["require$$0"],"mappings":";;;;;;;;;;;AACA,OAAO,eAAe,aAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,UAAUA;AAChB,MAAM,MAAM;AAAA,EACR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,YAAY,CAAC,OAAO;AAAA,EACpB,QAAQ;AAAA,EACR,MAAM,CAAC,SAAQ,GAAI,QAAQ,eAAe,KAAK,OAAO;AAC1D;AACA,YAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"prefixItems.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst items_1 = require(\"./items\");\nconst def = {\n keyword: \"prefixItems\",\n type: \"array\",\n schemaType: [\"array\"],\n before: \"uniqueItems\",\n code: (cxt) => (0, items_1.validateTuple)(cxt, \"items\"),\n};\nexports.default = def;\n//# sourceMappingURL=prefixItems.js.map"],"names":["require$$0"],"mappings":";;;;;;;;;;;;;;AACA,SAAO,eAAe,aAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAM,UAAUA,6BAAA;AAChB,QAAM,MAAM;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,YAAY,CAAC,OAAO;AAAA,IACpB,QAAQ;AAAA,IACR,MAAM,CAAC,SAAQ,GAAI,QAAQ,eAAe,KAAK,OAAO;AAAA;AAE1D,cAAA,UAAkB;;;","x_google_ignoreList":[0]}
@@ -2,68 +2,73 @@
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] = "b0bad096-697d-4619-929c-98db89512756", e._sentryDebugIdIdentifier = "sentry-dbid-b0bad096-697d-4619-929c-98db89512756");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "678a269f-02ff-4064-84ad-bc54dc7d9a0f", e._sentryDebugIdIdentifier = "sentry-dbid-678a269f-02ff-4064-84ad-bc54dc7d9a0f");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
9
  import { __exports as properties } from "../../../../../../../../_virtual/properties.js";
10
- import "../../compile/validate/index.js";
11
- import "../code.js";
12
- import "../../compile/util.js";
13
- import "./additionalProperties.js";
14
- import { __exports as additionalProperties } from "../../../../../../../../_virtual/additionalProperties.js";
15
- import { __exports as validate } from "../../../../../../../../_virtual/index.js";
16
- import { __exports as code } from "../../../../../../../../_virtual/code2.js";
17
- import { __exports as util } from "../../../../../../../../_virtual/util.js";
18
- Object.defineProperty(properties, "__esModule", { value: true });
19
- const validate_1 = validate;
20
- const code_1 = code;
21
- const util_1 = util;
22
- const additionalProperties_1 = additionalProperties;
23
- const def = {
24
- keyword: "properties",
25
- type: "object",
26
- schemaType: "object",
27
- code(cxt) {
28
- const { gen, schema, parentSchema, data, it } = cxt;
29
- if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === void 0) {
30
- additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties"));
31
- }
32
- const allProps = (0, code_1.allSchemaProperties)(schema);
33
- for (const prop of allProps) {
34
- it.definedProperties.add(prop);
35
- }
36
- if (it.opts.unevaluated && allProps.length && it.props !== true) {
37
- it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props);
38
- }
39
- const properties2 = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p]));
40
- if (properties2.length === 0)
41
- return;
42
- const valid = gen.name("valid");
43
- for (const prop of properties2) {
44
- if (hasDefault(prop)) {
45
- applyPropertySchema(prop);
46
- } else {
47
- gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties));
48
- applyPropertySchema(prop);
49
- if (!it.allErrors)
50
- gen.else().var(valid, true);
51
- gen.endIf();
10
+ import { __require as requireValidate } from "../../compile/validate/index.js";
11
+ import { __require as requireCode } from "../code.js";
12
+ import { __require as requireUtil } from "../../compile/util.js";
13
+ import { __require as requireAdditionalProperties } from "./additionalProperties.js";
14
+ var hasRequiredProperties;
15
+ function requireProperties() {
16
+ if (hasRequiredProperties) return properties;
17
+ hasRequiredProperties = 1;
18
+ Object.defineProperty(properties, "__esModule", { value: true });
19
+ const validate_1 = /* @__PURE__ */ requireValidate();
20
+ const code_1 = /* @__PURE__ */ requireCode();
21
+ const util_1 = /* @__PURE__ */ requireUtil();
22
+ const additionalProperties_1 = /* @__PURE__ */ requireAdditionalProperties();
23
+ const def = {
24
+ keyword: "properties",
25
+ type: "object",
26
+ schemaType: "object",
27
+ code(cxt) {
28
+ const { gen, schema, parentSchema, data, it } = cxt;
29
+ if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === void 0) {
30
+ additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties"));
31
+ }
32
+ const allProps = (0, code_1.allSchemaProperties)(schema);
33
+ for (const prop of allProps) {
34
+ it.definedProperties.add(prop);
35
+ }
36
+ if (it.opts.unevaluated && allProps.length && it.props !== true) {
37
+ it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props);
38
+ }
39
+ const properties2 = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p]));
40
+ if (properties2.length === 0)
41
+ return;
42
+ const valid = gen.name("valid");
43
+ for (const prop of properties2) {
44
+ if (hasDefault(prop)) {
45
+ applyPropertySchema(prop);
46
+ } else {
47
+ gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties));
48
+ applyPropertySchema(prop);
49
+ if (!it.allErrors)
50
+ gen.else().var(valid, true);
51
+ gen.endIf();
52
+ }
53
+ cxt.it.definedProperties.add(prop);
54
+ cxt.ok(valid);
55
+ }
56
+ function hasDefault(prop) {
57
+ return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== void 0;
58
+ }
59
+ function applyPropertySchema(prop) {
60
+ cxt.subschema({
61
+ keyword: "properties",
62
+ schemaProp: prop,
63
+ dataProp: prop
64
+ }, valid);
52
65
  }
53
- cxt.it.definedProperties.add(prop);
54
- cxt.ok(valid);
55
- }
56
- function hasDefault(prop) {
57
- return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== void 0;
58
- }
59
- function applyPropertySchema(prop) {
60
- cxt.subschema({
61
- keyword: "properties",
62
- schemaProp: prop,
63
- dataProp: prop
64
- }, valid);
65
66
  }
66
- }
67
+ };
68
+ properties.default = def;
69
+ return properties;
70
+ }
71
+ export {
72
+ requireProperties as __require
67
73
  };
68
- properties.default = def;
69
74
  //# sourceMappingURL=properties.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"properties.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst validate_1 = require(\"../../compile/validate\");\nconst code_1 = require(\"../code\");\nconst util_1 = require(\"../../compile/util\");\nconst additionalProperties_1 = require(\"./additionalProperties\");\nconst def = {\n keyword: \"properties\",\n type: \"object\",\n schemaType: \"object\",\n code(cxt) {\n const { gen, schema, parentSchema, data, it } = cxt;\n if (it.opts.removeAdditional === \"all\" && parentSchema.additionalProperties === undefined) {\n additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, \"additionalProperties\"));\n }\n const allProps = (0, code_1.allSchemaProperties)(schema);\n for (const prop of allProps) {\n it.definedProperties.add(prop);\n }\n if (it.opts.unevaluated && allProps.length && it.props !== true) {\n it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props);\n }\n const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p]));\n if (properties.length === 0)\n return;\n const valid = gen.name(\"valid\");\n for (const prop of properties) {\n if (hasDefault(prop)) {\n applyPropertySchema(prop);\n }\n else {\n gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties));\n applyPropertySchema(prop);\n if (!it.allErrors)\n gen.else().var(valid, true);\n gen.endIf();\n }\n cxt.it.definedProperties.add(prop);\n cxt.ok(valid);\n }\n function hasDefault(prop) {\n return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined;\n }\n function applyPropertySchema(prop) {\n cxt.subschema({\n keyword: \"properties\",\n schemaProp: prop,\n dataProp: prop,\n }, valid);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=properties.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","properties"],"mappings":";;;;;;;;;;;;;;;;;AACA,OAAO,eAAe,YAAS,cAAc,EAAE,OAAO,KAAI,CAAE;AAC5D,MAAM,aAAaA;AACnB,MAAM,SAASC;AACf,MAAM,SAASC;AACf,MAAM,yBAAyBC;AAC/B,MAAM,MAAM;AAAA,EACR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,KAAK,KAAK;AACN,UAAM,EAAE,KAAK,QAAQ,cAAc,MAAM,GAAE,IAAK;AAChD,QAAI,GAAG,KAAK,qBAAqB,SAAS,aAAa,yBAAyB,QAAW;AACvF,6BAAuB,QAAQ,KAAK,IAAI,WAAW,WAAW,IAAI,uBAAuB,SAAS,sBAAsB,CAAC;AAAA,IACrI;AACQ,UAAM,YAAW,GAAI,OAAO,qBAAqB,MAAM;AACvD,eAAW,QAAQ,UAAU;AACzB,SAAG,kBAAkB,IAAI,IAAI;AAAA,IACzC;AACQ,QAAI,GAAG,KAAK,eAAe,SAAS,UAAU,GAAG,UAAU,MAAM;AAC7D,SAAG,QAAQ,OAAO,eAAe,MAAM,MAAK,GAAI,OAAO,QAAQ,QAAQ,GAAG,GAAG,KAAK;AAAA,IAC9F;AACQ,UAAMC,cAAa,SAAS,OAAO,CAAC,MAAM,KAAK,OAAO,mBAAmB,IAAI,OAAO,CAAC,CAAC,CAAC;AACvF,QAAIA,YAAW,WAAW;AACtB;AACJ,UAAM,QAAQ,IAAI,KAAK,OAAO;AAC9B,eAAW,QAAQA,aAAY;AAC3B,UAAI,WAAW,IAAI,GAAG;AAClB,4BAAoB,IAAI;AAAA,MACxC,OACiB;AACD,YAAI,OAAO,OAAO,gBAAgB,KAAK,MAAM,MAAM,GAAG,KAAK,aAAa,CAAC;AACzE,4BAAoB,IAAI;AACxB,YAAI,CAAC,GAAG;AACJ,cAAI,KAAI,EAAG,IAAI,OAAO,IAAI;AAC9B,YAAI,MAAK;AAAA,MACzB;AACY,UAAI,GAAG,kBAAkB,IAAI,IAAI;AACjC,UAAI,GAAG,KAAK;AAAA,IACxB;AACQ,aAAS,WAAW,MAAM;AACtB,aAAO,GAAG,KAAK,eAAe,CAAC,GAAG,iBAAiB,OAAO,IAAI,EAAE,YAAY;AAAA,IACxF;AACQ,aAAS,oBAAoB,MAAM;AAC/B,UAAI,UAAU;AAAA,QACV,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,UAAU;AAAA,MAC1B,GAAe,KAAK;AAAA,IACpB;AAAA,EACA;AACA;AACA,WAAA,UAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"properties.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst validate_1 = require(\"../../compile/validate\");\nconst code_1 = require(\"../code\");\nconst util_1 = require(\"../../compile/util\");\nconst additionalProperties_1 = require(\"./additionalProperties\");\nconst def = {\n keyword: \"properties\",\n type: \"object\",\n schemaType: \"object\",\n code(cxt) {\n const { gen, schema, parentSchema, data, it } = cxt;\n if (it.opts.removeAdditional === \"all\" && parentSchema.additionalProperties === undefined) {\n additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, \"additionalProperties\"));\n }\n const allProps = (0, code_1.allSchemaProperties)(schema);\n for (const prop of allProps) {\n it.definedProperties.add(prop);\n }\n if (it.opts.unevaluated && allProps.length && it.props !== true) {\n it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props);\n }\n const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p]));\n if (properties.length === 0)\n return;\n const valid = gen.name(\"valid\");\n for (const prop of properties) {\n if (hasDefault(prop)) {\n applyPropertySchema(prop);\n }\n else {\n gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties));\n applyPropertySchema(prop);\n if (!it.allErrors)\n gen.else().var(valid, true);\n gen.endIf();\n }\n cxt.it.definedProperties.add(prop);\n cxt.ok(valid);\n }\n function hasDefault(prop) {\n return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined;\n }\n function applyPropertySchema(prop) {\n cxt.subschema({\n keyword: \"properties\",\n schemaProp: prop,\n dataProp: prop,\n }, valid);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=properties.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","properties"],"mappings":";;;;;;;;;;;;;;;;;AACA,SAAO,eAAe,YAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAM,aAAaA,gCAAA;AACnB,QAAM,SAASC,4BAAA;AACf,QAAM,SAASC,4BAAA;AACf,QAAM,yBAAyBC,4CAAA;AAC/B,QAAM,MAAM;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,KAAK,KAAK;AACN,YAAM,EAAE,KAAK,QAAQ,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