@mapletip/data 0.1.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.
- package/NOTICE +52 -0
- package/README.md +209 -0
- package/client/contract-compatibility.d.mts +27 -0
- package/client/contract-compatibility.mjs +159 -0
- package/client/core.d.ts +150 -0
- package/client/core.js +359 -0
- package/client/equipment.d.ts +22 -0
- package/client/equipment.js +63 -0
- package/client/items.d.ts +22 -0
- package/client/items.js +63 -0
- package/client/media.d.ts +19 -0
- package/client/media.js +47 -0
- package/client/monster-client.d.ts +35 -0
- package/client/monster-client.js +155 -0
- package/client/monsters.d.ts +24 -0
- package/client/monsters.js +14 -0
- package/client/quests.d.ts +31 -0
- package/client/quests.js +124 -0
- package/client/release.d.ts +63 -0
- package/client/release.js +279 -0
- package/client/static-client.d.ts +40 -0
- package/client/static-client.js +44 -0
- package/client/static-domains.d.ts +48 -0
- package/client/static-domains.js +113 -0
- package/generated/contract-2-catalog-fact.d.ts +51 -0
- package/generated/equipment-catalog-2.d.ts +434 -0
- package/generated/equipment-catalog-2.validator.js +17 -0
- package/generated/equipment-detail-2.d.ts +350 -0
- package/generated/equipment-detail-2.validator.js +17 -0
- package/generated/equipment-evidence-pack-2.d.ts +243 -0
- package/generated/equipment-evidence-pack-2.validator.js +17 -0
- package/generated/equipment-pack-2.validator.js +17 -0
- package/generated/equipment-relationship-pack-2.d.ts +170 -0
- package/generated/equipment-relationship-pack-2.validator.js +17 -0
- package/generated/item-catalog-2.d.ts +366 -0
- package/generated/item-catalog-2.validator.js +17 -0
- package/generated/item-detail-2.d.ts +540 -0
- package/generated/item-detail-2.validator.js +17 -0
- package/generated/item-evidence-pack-2.d.ts +243 -0
- package/generated/item-evidence-pack-2.validator.js +17 -0
- package/generated/item-pack-2.validator.js +17 -0
- package/generated/item-relationship-pack-2.d.ts +170 -0
- package/generated/item-relationship-pack-2.validator.js +17 -0
- package/generated/media-catalog-2.d.ts +133 -0
- package/generated/media-catalog-2.validator.js +17 -0
- package/generated/media-detail-2.d.ts +125 -0
- package/generated/media-detail-2.validator.js +17 -0
- package/generated/media-pack-2.validator.js +17 -0
- package/generated/monster-catalog-2.d.ts +230 -0
- package/generated/monster-catalog-2.validator.js +17 -0
- package/generated/monster-catalog.d.ts +224 -0
- package/generated/monster-catalog.validator.js +1 -0
- package/generated/monster-core-relationship-pack-2.d.ts +208 -0
- package/generated/monster-core-relationship-pack-2.validator.js +17 -0
- package/generated/monster-detail-2.d.ts +372 -0
- package/generated/monster-detail-2.validator.js +17 -0
- package/generated/monster-detail.d.ts +799 -0
- package/generated/monster-detail.validator.js +17 -0
- package/generated/monster-evidence-pack-2.d.ts +378 -0
- package/generated/monster-evidence-pack-2.validator.js +17 -0
- package/generated/monster-evidence-pack.d.ts +269 -0
- package/generated/monster-evidence-pack.validator.js +17 -0
- package/generated/monster-location-pack-2.validator.js +1 -0
- package/generated/monster-pack-2.validator.js +17 -0
- package/generated/monster-pack.validator.js +17 -0
- package/generated/monster-relationship-pack.d.ts +126 -0
- package/generated/monster-relationship-pack.validator.js +1 -0
- package/generated/product-manifest.d.ts +188 -0
- package/generated/product-manifest.validator.js +1 -0
- package/generated/quest-auxiliary-pack-2.d.ts +391 -0
- package/generated/quest-auxiliary-pack-2.validator.js +17 -0
- package/generated/quest-browse-pack-2.d.ts +353 -0
- package/generated/quest-browse-pack-2.validator.js +17 -0
- package/generated/quest-catalog-2.d.ts +501 -0
- package/generated/quest-catalog-2.validator.js +17 -0
- package/generated/quest-evidence-pack-2.d.ts +269 -0
- package/generated/quest-evidence-pack-2.validator.js +17 -0
- package/generated/quest-pack-2.d.ts +410 -0
- package/generated/quest-pack-2.validator.js +17 -0
- package/generated/quest-relationship-pack-2.d.ts +868 -0
- package/generated/quest-relationship-pack-2.validator.js +17 -0
- package/generated/release-build-index.d.ts +42 -0
- package/generated/release-build-index.validator.js +1 -0
- package/generated/release-manifest.d.ts +24 -0
- package/generated/release-manifest.validator.js +1 -0
- package/generated/release-pin.d.ts +12 -0
- package/generated/release-pin.validator.js +1 -0
- package/package.json +155 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","title":"EquipmentDetailRecord","description":"Equipment source facts approved as direct or ID-convention-derived typed values.","type":"object","properties":{"accuracy":{"$ref":"#/$defs/FactState2"},"attack_speed":{"$ref":"#/$defs/FactState2"},"avoidability":{"$ref":"#/$defs/FactState2"},"categoryCode":{"$ref":"#/$defs/FactState2"},"description":{"$ref":"#/$defs/FactState"},"descriptionLocale":{"$ref":"#/$defs/FactState"},"equipSlotCode":{"$ref":"#/$defs/FactState"},"evidencePageKeys":{"$ref":"#/$defs/CollectionState4"},"gender":{"$ref":"#/$defs/FactState2"},"grantedSkills":{"$ref":"#/$defs/CollectionState2"},"growthLevels":{"description":"Raw-evidence/display-only matrix rows are available through lazy evidence pages.","$ref":"#/$defs/CollectionState"},"inc_dex":{"$ref":"#/$defs/FactState2"},"inc_int":{"$ref":"#/$defs/FactState2"},"inc_luk":{"$ref":"#/$defs/FactState2"},"inc_max_hp":{"$ref":"#/$defs/FactState2"},"inc_max_mp":{"$ref":"#/$defs/FactState2"},"inc_str":{"$ref":"#/$defs/FactState2"},"jump":{"$ref":"#/$defs/FactState2"},"key":{"$ref":"#/$defs/EntityKey"},"magic_attack":{"$ref":"#/$defs/FactState2"},"magic_defense":{"$ref":"#/$defs/FactState2"},"name":{"$ref":"#/$defs/FactState"},"nameLocale":{"$ref":"#/$defs/FactState"},"relationshipPageKeys":{"type":"object","additionalProperties":{"$ref":"#/$defs/CollectionState4"}},"replacementOccurrences":{"$ref":"#/$defs/CollectionState3"},"req_dex":{"$ref":"#/$defs/FactState2"},"req_fame":{"$ref":"#/$defs/FactState2"},"req_int":{"$ref":"#/$defs/FactState2"},"req_job_mask":{"$ref":"#/$defs/FactState2"},"req_level":{"$ref":"#/$defs/FactState2"},"req_luk":{"$ref":"#/$defs/FactState2"},"req_str":{"$ref":"#/$defs/FactState2"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"speed":{"$ref":"#/$defs/FactState2"},"upgrade_slots":{"$ref":"#/$defs/FactState2"},"visualSlot":{"$ref":"#/$defs/FactState"},"weaponTypeCode":{"$ref":"#/$defs/FactState2"},"weapon_attack":{"$ref":"#/$defs/FactState2"},"weapon_defense":{"$ref":"#/$defs/FactState2"}},"additionalProperties":false,"required":["key","sourceIdentity","name","nameLocale","description","descriptionLocale","accuracy","attack_speed","avoidability","categoryCode","equipSlotCode","gender","inc_dex","inc_int","inc_luk","inc_max_hp","inc_max_mp","inc_str","jump","magic_attack","magic_defense","req_dex","req_fame","req_int","req_job_mask","req_level","req_luk","req_str","speed","upgrade_slots","visualSlot","weapon_attack","weapon_defense","weaponTypeCode","growthLevels","grantedSkills","replacementOccurrences","relationshipPageKeys","evidencePageKeys"],"$defs":{"Capability":{"type":"string","minLength":1,"pattern":"\\S"},"CollectionState":{"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_EquipmentGrowthLevel"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/EquipmentGrowthLevel"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"CollectionState2":{"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_EquipmentGrantedSkill"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/EquipmentGrantedSkill"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"CollectionState3":{"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_EquipmentReplacementOccurrence"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/EquipmentReplacementOccurrence"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"CollectionState4":{"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_string"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"type":"string"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"CoverageKey":{"type":"string","minLength":1,"pattern":"\\S"},"EntityKey":{"type":"string","minLength":1,"pattern":"\\S"},"EntityRef":{"description":"Shared entity-reference states. The generic parameter brands resolved keys\nfor the target domain without changing their JSON representation.","oneOf":[{"description":"Target has a canonical key in the exact build.","type":"object","properties":{"key":{"$ref":"#/$defs/EntityKey"},"state":{"type":"string","const":"resolved"}},"additionalProperties":false,"required":["state","key"]},{"description":"The source observation exists but does not resolve to a canonical key.","type":"object","properties":{"sourceId":{"$ref":"#/$defs/RawSourceId"},"state":{"type":"string","const":"unresolved"}},"additionalProperties":false,"required":["state","sourceId"]},{"description":"More than one canonical target remains possible; none is selected.","type":"object","properties":{"candidateKeys":{"type":"array","items":{"$ref":"#/$defs/EntityKey"}},"state":{"type":"string","const":"ambiguous"}},"additionalProperties":false,"required":["state","candidateKeys"]},{"description":"The target product or target identity is unavailable for a named reason.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unavailable"}},"additionalProperties":false,"required":["state","reason"]}]},"EntityRef2":{"description":"Shared entity-reference states. The generic parameter brands resolved keys\nfor the target domain without changing their JSON representation.","oneOf":[{"description":"Target has a canonical key in the exact build.","type":"object","properties":{"key":{"$ref":"#/$defs/EntityKey"},"state":{"type":"string","const":"resolved"}},"additionalProperties":false,"required":["state","key"]},{"description":"The source observation exists but does not resolve to a canonical key.","type":"object","properties":{"sourceId":{"$ref":"#/$defs/RawSourceId"},"state":{"type":"string","const":"unresolved"}},"additionalProperties":false,"required":["state","sourceId"]},{"description":"More than one canonical target remains possible; none is selected.","type":"object","properties":{"candidateKeys":{"type":"array","items":{"$ref":"#/$defs/EntityKey"}},"state":{"type":"string","const":"ambiguous"}},"additionalProperties":false,"required":["state","candidateKeys"]},{"description":"The target product or target identity is unavailable for a named reason.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unavailable"}},"additionalProperties":false,"required":["state","reason"]}]},"EquipmentGrantedSkill":{"type":"object","properties":{"evidencePageKey":{"type":"string"},"occurrenceKey":{"type":"string"},"skill_namespace":{"$ref":"#/$defs/FactState"},"skill_resolves":{"$ref":"#/$defs/EntityRef"},"sourceAddress":{"$ref":"#/$defs/EvidenceSourceAddress"}},"additionalProperties":false,"required":["occurrenceKey","sourceAddress","skill_namespace","skill_resolves","evidencePageKey"]},"EquipmentGrowthLevel":{"type":"object","properties":{"accuracy_max":{"$ref":"#/$defs/FactState2"},"accuracy_min":{"$ref":"#/$defs/FactState2"},"avoid_max":{"$ref":"#/$defs/FactState2"},"avoid_min":{"$ref":"#/$defs/FactState2"},"evidencePageKey":{"type":"string"},"inc_max_hp_max":{"$ref":"#/$defs/FactState2"},"inc_max_hp_min":{"$ref":"#/$defs/FactState2"},"inc_max_mp_max":{"$ref":"#/$defs/FactState2"},"inc_max_mp_min":{"$ref":"#/$defs/FactState2"},"jump_max":{"$ref":"#/$defs/FactState2"},"jump_min":{"$ref":"#/$defs/FactState2"},"level":{"$ref":"#/$defs/FactState2"},"magic_attack_max":{"$ref":"#/$defs/FactState2"},"magic_attack_min":{"$ref":"#/$defs/FactState2"},"magic_defense_max":{"$ref":"#/$defs/FactState2"},"magic_defense_min":{"$ref":"#/$defs/FactState2"},"occurrenceKey":{"type":"string"},"sourceAddress":{"$ref":"#/$defs/EvidenceSourceAddress"},"speed_max":{"$ref":"#/$defs/FactState2"},"speed_min":{"$ref":"#/$defs/FactState2"},"weapon_attack_max":{"$ref":"#/$defs/FactState2"},"weapon_attack_min":{"$ref":"#/$defs/FactState2"},"weapon_defense_max":{"$ref":"#/$defs/FactState2"},"weapon_defense_min":{"$ref":"#/$defs/FactState2"}},"additionalProperties":false,"required":["occurrenceKey","sourceAddress","level","accuracy_max","accuracy_min","avoid_max","avoid_min","inc_max_hp_max","inc_max_hp_min","inc_max_mp_max","inc_max_mp_min","jump_max","jump_min","magic_attack_max","magic_attack_min","magic_defense_max","magic_defense_min","speed_max","speed_min","weapon_attack_max","weapon_attack_min","weapon_defense_max","weapon_defense_min","evidencePageKey"]},"EquipmentReplacementOccurrence":{"type":"object","properties":{"evidencePageKey":{"type":"string"},"message":{"$ref":"#/$defs/FactState"},"occurrenceKey":{"type":"string"},"replacement_resolves":{"$ref":"#/$defs/EntityRef2"},"replacement_source_id":{"$ref":"#/$defs/FactState2"},"sourceAddress":{"$ref":"#/$defs/EvidenceSourceAddress"}},"additionalProperties":false,"required":["occurrenceKey","sourceAddress","replacement_source_id","replacement_resolves","message","evidencePageKey"]},"EvidenceSourceAddress":{"description":"Exact, logical `MFv1` source address retained on detail and evidence occurrences.","type":"object","properties":{"imgPath":{"$ref":"#/$defs/LogicalSourceAddress"},"namespace":{"type":"string"},"ordinal":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"propertyPath":{"type":"string"},"recordKey":{"type":["string","null"]},"sourceId":{"type":"string"}},"additionalProperties":false,"required":["namespace","sourceId","imgPath","propertyPath"]},"FactState":{"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"type":"string"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"FactState2":{"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"$ref":"#/$defs/SafeInt64"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]},"LogicalSourceAddress":{"type":"string","minLength":1,"pattern":"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"},"NonEmptyVec_EquipmentGrantedSkill":{"type":"array","items":{"$ref":"#/$defs/EquipmentGrantedSkill"},"minItems":1},"NonEmptyVec_EquipmentGrowthLevel":{"type":"array","items":{"$ref":"#/$defs/EquipmentGrowthLevel"},"minItems":1},"NonEmptyVec_EquipmentReplacementOccurrence":{"type":"array","items":{"$ref":"#/$defs/EquipmentReplacementOccurrence"},"minItems":1},"NonEmptyVec_string":{"type":"array","items":{"type":"string"},"minItems":1},"RawSourceId":{"type":"string","minLength":1,"pattern":"\\S"},"SafeInt64":{"type":"integer","format":"int64","maximum":9007199254740991,"minimum":-9007199254740991},"SourceIdentity":{"description":"Upstream source identity coordinates.","type":"object","properties":{"discriminator":{"description":"Explicit source discriminator when one ID has multiple records (empty or omitted when unused).","type":["string","null"]},"id":{"description":"Exact upstream source identifier (e.g., '0100100').","type":"string"},"namespace":{"description":"Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.","type":["string","null"]}},"required":["id"]},"SourceKind":{"type":"string","minLength":1,"pattern":"\\S"},"SourceRef":{"description":"Source attribution for a fact or raw observation.","type":"object","properties":{"logicalAddress":{"description":"Optional logical address within the source; never a local file path.","anyOf":[{"$ref":"#/$defs/LogicalSourceAddress"},{"type":"null"}]},"sourceKind":{"description":"Source family or source kind, preserved as supplied by the producer.","$ref":"#/$defs/SourceKind"}},"additionalProperties":false,"required":["sourceKind"]},"StateReason":{"type":"string","minLength":1,"pattern":"\\S"}}};const schema54 = {"type":"string","minLength":1,"pattern":"\\S"};const schema85 = {"description":"Upstream source identity coordinates.","type":"object","properties":{"discriminator":{"description":"Explicit source discriminator when one ID has multiple records (empty or omitted when unused).","type":["string","null"]},"id":{"description":"Exact upstream source identifier (e.g., '0100100').","type":"string"},"namespace":{"description":"Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.","type":["string","null"]}},"required":["id"]};const func1 = Object.prototype.hasOwnProperty;const func2 = function ucs2length(str) {
|
|
2
|
+
const len = str.length;
|
|
3
|
+
let length = 0;
|
|
4
|
+
let pos = 0;
|
|
5
|
+
let value;
|
|
6
|
+
while (pos < len) {
|
|
7
|
+
length++;
|
|
8
|
+
value = str.charCodeAt(pos++);
|
|
9
|
+
if (value >= 0xd800 && value <= 0xdbff && pos < len) {
|
|
10
|
+
// high surrogate, and there is a next character
|
|
11
|
+
value = str.charCodeAt(pos);
|
|
12
|
+
if ((value & 0xfc00) === 0xdc00)
|
|
13
|
+
pos++; // low surrogate
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return length;
|
|
17
|
+
};const schema32 = {"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"$ref":"#/$defs/SafeInt64"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema36 = {"type":"integer","format":"int64","maximum":9007199254740991,"minimum":-9007199254740991};const schema37 = {"type":"string","minLength":1,"pattern":"\\S"};const schema38 = {"type":"string","minLength":1,"pattern":"\\S"};const schema39 = {"type":"string","minLength":1,"pattern":"\\S"};const schema33 = {"description":"Source attribution for a fact or raw observation.","type":"object","properties":{"logicalAddress":{"description":"Optional logical address within the source; never a local file path.","anyOf":[{"$ref":"#/$defs/LogicalSourceAddress"},{"type":"null"}]},"sourceKind":{"description":"Source family or source kind, preserved as supplied by the producer.","$ref":"#/$defs/SourceKind"}},"additionalProperties":false,"required":["sourceKind"]};const schema34 = {"type":"string","minLength":1,"pattern":"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"};const schema35 = {"type":"string","minLength":1,"pattern":"\\S"};const pattern4 = new RegExp("^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$", "u");const pattern5 = new RegExp("\\S", "u");function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceKind === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceKind"},message:"must have required property '"+"sourceKind"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}for(const key0 in data){if(!((key0 === "logicalAddress") || (key0 === "sourceKind"))){const err1 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}if(data.logicalAddress !== undefined){let data0 = data.logicalAddress;const _errs3 = errors;let valid1 = false;const _errs4 = errors;if(typeof data0 === "string"){if(func2(data0) < 1){const err2 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/$defs/LogicalSourceAddress/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(!pattern4.test(data0)){const err3 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/$defs/LogicalSourceAddress/pattern",keyword:"pattern",params:{pattern: "^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"},message:"must match pattern \""+"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/$defs/LogicalSourceAddress/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid0 = _errs4 === errors;valid1 = valid1 || _valid0;const _errs7 = errors;if(data0 !== null){const err5 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/properties/logicalAddress/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs7 === errors;valid1 = valid1 || _valid0;if(!valid1){const err6 = {instancePath:instancePath+"/logicalAddress",schemaPath:"#/properties/logicalAddress/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.sourceKind !== undefined){let data1 = data.sourceKind;if(typeof data1 === "string"){if(func2(data1) < 1){const err7 = {instancePath:instancePath+"/sourceKind",schemaPath:"#/$defs/SourceKind/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(!pattern5.test(data1)){const err8 = {instancePath:instancePath+"/sourceKind",schemaPath:"#/$defs/SourceKind/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/sourceKind",schemaPath:"#/$defs/SourceKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}else {const err10 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}validate22.errors = vErrors;return errors === 0;}validate22.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate21.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.value === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "source") || (key0 === "state")) || (key0 === "value"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.source !== undefined){let data0 = data.source;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(!(validate22(data0, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var _valid1 = _errs6 === errors;valid2 = valid2 || _valid1;const _errs7 = errors;if(data0 !== null){const err3 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs7 === errors;valid2 = valid2 || _valid1;if(!valid2){const err4 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err5 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if("known" !== data1){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.value !== undefined){let data2 = data.value;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err7 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 9007199254740991 || isNaN(data2)){const err8 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data2 < -9007199254740991 || isNaN(data2)){const err9 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}else {const err10 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props1 = true;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err11 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.reason === undefined){const err12 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}for(const key1 in data){if(!(((key1 === "reason") || (key1 === "source")) || (key1 === "state"))){const err13 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data.reason !== undefined){let data3 = data.reason;if(typeof data3 === "string"){if(func2(data3) < 1){const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern5.test(data3)){const err15 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.source !== undefined){let data4 = data.source;const _errs21 = errors;let valid6 = false;const _errs22 = errors;if(!(validate22(data4, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var _valid2 = _errs22 === errors;valid6 = valid6 || _valid2;const _errs23 = errors;if(data4 !== null){const err17 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid2 = _errs23 === errors;valid6 = valid6 || _valid2;if(!valid6){const err18 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {errors = _errs21;if(vErrors !== null){if(_errs21){vErrors.length = _errs21;}else {vErrors = null;}}}}if(data.state !== undefined){let data5 = data.state;if(typeof data5 !== "string"){const err19 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("unknown" !== data5){const err20 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid0 = _errs14 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props1 !== true){props1 = true;}}const _errs27 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err22 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.coverageKey === undefined){const err23 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}for(const key2 in data){if(!((key2 === "coverageKey") || (key2 === "state"))){const err24 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.coverageKey !== undefined){let data6 = data.coverageKey;if(typeof data6 === "string"){if(func2(data6) < 1){const err25 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(!pattern5.test(data6)){const err26 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}else {const err27 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err28 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("absent" !== data7){const err29 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid0 = _errs27 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props1 !== true){props1 = true;}}const _errs35 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err31 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data.capability === undefined){const err32 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}for(const key3 in data){if(!(((key3 === "capability") || (key3 === "source")) || (key3 === "state"))){const err33 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.capability !== undefined){let data8 = data.capability;if(typeof data8 === "string"){if(func2(data8) < 1){const err34 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(!pattern5.test(data8)){const err35 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}else {const err36 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data.source !== undefined){let data9 = data.source;const _errs42 = errors;let valid11 = false;const _errs43 = errors;if(!(validate22(data9, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var _valid3 = _errs43 === errors;valid11 = valid11 || _valid3;const _errs44 = errors;if(data9 !== null){const err37 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid3 = _errs44 === errors;valid11 = valid11 || _valid3;if(!valid11){const err38 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}}if(data.state !== undefined){let data10 = data.state;if(typeof data10 !== "string"){const err39 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("unsupported" !== data10){const err40 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid0 = _errs35 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props1 !== true){props1 = true;}}}}}if(!valid0){const err42 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate21.errors = vErrors;evaluated0.props = props1;return errors === 0;}validate21.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema40 = {"description":"Shared fact state. SQL NULL is represented by `Unknown` with reason\n`source-null`; only `Absent` carries a complete-coverage witness.","oneOf":[{"description":"A positively observed value.","type":"object","properties":{"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"known"},"value":{"type":"string"}},"additionalProperties":false,"required":["state","value"]},{"description":"A value that was not observed or could not be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"No value was present under the source scope named by complete coverage.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"The named source or product cannot provide this fact.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"source":{"anyOf":[{"$ref":"#/$defs/SourceRef"},{"type":"null"}]},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.value === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!(((key0 === "source") || (key0 === "state")) || (key0 === "value"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.source !== undefined){let data0 = data.source;const _errs5 = errors;let valid2 = false;const _errs6 = errors;if(!(validate22(data0, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var _valid1 = _errs6 === errors;valid2 = valid2 || _valid1;const _errs7 = errors;if(data0 !== null){const err3 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs7 === errors;valid2 = valid2 || _valid1;if(!valid2){const err4 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/0/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err5 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if("known" !== data1){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.value !== undefined){if(typeof data.value !== "string"){const err7 = {instancePath:instancePath+"/value",schemaPath:"#/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props1 = true;}const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err9 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.reason === undefined){const err10 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data){if(!(((key1 === "reason") || (key1 === "source")) || (key1 === "state"))){const err11 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.reason !== undefined){let data3 = data.reason;if(typeof data3 === "string"){if(func2(data3) < 1){const err12 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(!pattern5.test(data3)){const err13 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.source !== undefined){let data4 = data.source;const _errs20 = errors;let valid5 = false;const _errs21 = errors;if(!(validate22(data4, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var _valid2 = _errs21 === errors;valid5 = valid5 || _valid2;const _errs22 = errors;if(data4 !== null){const err15 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid2 = _errs22 === errors;valid5 = valid5 || _valid2;if(!valid5){const err16 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/1/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}}if(data.state !== undefined){let data5 = data.state;if(typeof data5 !== "string"){const err17 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("unknown" !== data5){const err18 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}else {const err19 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid0 = _errs13 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props1 !== true){props1 = true;}}const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err20 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.coverageKey === undefined){const err21 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key2 in data){if(!((key2 === "coverageKey") || (key2 === "state"))){const err22 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.coverageKey !== undefined){let data6 = data.coverageKey;if(typeof data6 === "string"){if(func2(data6) < 1){const err23 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(!pattern5.test(data6)){const err24 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("absent" !== data7){const err27 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}var _valid0 = _errs26 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props1 !== true){props1 = true;}}const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.capability === undefined){const err30 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}for(const key3 in data){if(!(((key3 === "capability") || (key3 === "source")) || (key3 === "state"))){const err31 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.capability !== undefined){let data8 = data.capability;if(typeof data8 === "string"){if(func2(data8) < 1){const err32 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(!pattern5.test(data8)){const err33 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}else {const err34 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data.source !== undefined){let data9 = data.source;const _errs41 = errors;let valid10 = false;const _errs42 = errors;if(!(validate22(data9, {instancePath:instancePath+"/source",parentData:data,parentDataProperty:"source",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}var _valid3 = _errs42 === errors;valid10 = valid10 || _valid3;const _errs43 = errors;if(data9 !== null){const err35 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid3 = _errs43 === errors;valid10 = valid10 || _valid3;if(!valid10){const err36 = {instancePath:instancePath+"/source",schemaPath:"#/oneOf/3/properties/source/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}}if(data.state !== undefined){let data10 = data.state;if(typeof data10 !== "string"){const err37 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("unsupported" !== data10){const err38 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid0 = _errs34 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props1 !== true){props1 = true;}}}}}if(!valid0){const err40 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate30.errors = vErrors;evaluated0.props = props1;return errors === 0;}validate30.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema44 = {"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_string"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"type":"string"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema45 = {"type":"array","items":{"type":"string"},"minItems":1};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate37.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.items === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "items") || (key0 === "state"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.items !== undefined){let data0 = data.items;if(Array.isArray(data0)){if(data0.length < 1){const err3 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/NonEmptyVec_string/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(typeof data0[i0] !== "string"){const err4 = {instancePath:instancePath+"/items/" + i0,schemaPath:"#/$defs/NonEmptyVec_string/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/items",schemaPath:"#/$defs/NonEmptyVec_string/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.state !== undefined){let data2 = data.state;if(typeof data2 !== "string"){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("known" !== data2){const err7 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs11 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err9 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.coverageKey === undefined){const err10 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data){if(!((key1 === "coverageKey") || (key1 === "state"))){const err11 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.coverageKey !== undefined){let data3 = data.coverageKey;if(typeof data3 === "string"){if(func2(data3) < 1){const err12 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(!pattern5.test(data3)){const err13 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.state !== undefined){let data4 = data.state;if(typeof data4 !== "string"){const err15 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("absent" !== data4){const err16 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid0 = _errs11 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs19 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err18 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.items === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.reason === undefined){const err20 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}for(const key2 in data){if(!(((key2 === "items") || (key2 === "reason")) || (key2 === "state"))){const err21 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.items !== undefined){let data5 = data.items;if(Array.isArray(data5)){const len1 = data5.length;for(let i1=0; i1<len1; i1++){if(typeof data5[i1] !== "string"){const err22 = {instancePath:instancePath+"/items/" + i1,schemaPath:"#/oneOf/2/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/2/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data.reason !== undefined){let data7 = data.reason;if(typeof data7 === "string"){if(func2(data7) < 1){const err24 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(!pattern5.test(data7)){const err25 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}else {const err26 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.state !== undefined){let data8 = data.state;if(typeof data8 !== "string"){const err27 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if("partial" !== data8){const err28 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var _valid0 = _errs19 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs31 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err30 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.reason === undefined){const err31 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err32 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.reason !== undefined){let data9 = data.reason;if(typeof data9 === "string"){if(func2(data9) < 1){const err33 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(!pattern5.test(data9)){const err34 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}else {const err35 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data.state !== undefined){let data10 = data.state;if(typeof data10 !== "string"){const err36 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("unknown" !== data10){const err37 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid0 = _errs31 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}const _errs39 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err39 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data.capability === undefined){const err40 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}for(const key4 in data){if(!((key4 === "capability") || (key4 === "state"))){const err41 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.capability !== undefined){let data11 = data.capability;if(typeof data11 === "string"){if(func2(data11) < 1){const err42 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(!pattern5.test(data11)){const err43 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}else {const err44 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data.state !== undefined){let data12 = data.state;if(typeof data12 !== "string"){const err45 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("unsupported" !== data12){const err46 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}else {const err47 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var _valid0 = _errs39 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;if(props0 !== true){props0 = true;}}}}}}if(!valid0){const err48 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate37.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate37.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema50 = {"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_EquipmentGrantedSkill"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/EquipmentGrantedSkill"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema51 = {"type":"array","items":{"$ref":"#/$defs/EquipmentGrantedSkill"},"minItems":1};const schema52 = {"type":"object","properties":{"evidencePageKey":{"type":"string"},"occurrenceKey":{"type":"string"},"skill_namespace":{"$ref":"#/$defs/FactState"},"skill_resolves":{"$ref":"#/$defs/EntityRef"},"sourceAddress":{"$ref":"#/$defs/EvidenceSourceAddress"}},"additionalProperties":false,"required":["occurrenceKey","sourceAddress","skill_namespace","skill_resolves","evidencePageKey"]};const schema53 = {"description":"Shared entity-reference states. The generic parameter brands resolved keys\nfor the target domain without changing their JSON representation.","oneOf":[{"description":"Target has a canonical key in the exact build.","type":"object","properties":{"key":{"$ref":"#/$defs/EntityKey"},"state":{"type":"string","const":"resolved"}},"additionalProperties":false,"required":["state","key"]},{"description":"The source observation exists but does not resolve to a canonical key.","type":"object","properties":{"sourceId":{"$ref":"#/$defs/RawSourceId"},"state":{"type":"string","const":"unresolved"}},"additionalProperties":false,"required":["state","sourceId"]},{"description":"More than one canonical target remains possible; none is selected.","type":"object","properties":{"candidateKeys":{"type":"array","items":{"$ref":"#/$defs/EntityKey"}},"state":{"type":"string","const":"ambiguous"}},"additionalProperties":false,"required":["state","candidateKeys"]},{"description":"The target product or target identity is unavailable for a named reason.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unavailable"}},"additionalProperties":false,"required":["state","reason"]}]};const schema55 = {"type":"string","minLength":1,"pattern":"\\S"};function validate44(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate44.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.key === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "key") || (key0 === "state"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.key !== undefined){let data0 = data.key;if(typeof data0 === "string"){if(func2(data0) < 1){const err3 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(!pattern5.test(data0)){const err4 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("resolved" !== data1){const err7 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "resolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err9 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.sourceId === undefined){const err10 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "sourceId"},message:"must have required property '"+"sourceId"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data){if(!((key1 === "sourceId") || (key1 === "state"))){const err11 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.sourceId !== undefined){let data2 = data.sourceId;if(typeof data2 === "string"){if(func2(data2) < 1){const err12 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(!pattern5.test(data2)){const err13 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err15 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("unresolved" !== data3){const err16 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unresolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid0 = _errs9 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err18 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.candidateKeys === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "candidateKeys"},message:"must have required property '"+"candidateKeys"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}for(const key2 in data){if(!((key2 === "candidateKeys") || (key2 === "state"))){const err20 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.candidateKeys !== undefined){let data4 = data.candidateKeys;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];if(typeof data5 === "string"){if(func2(data5) < 1){const err21 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(!pattern5.test(data5)){const err22 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}else {const err23 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/candidateKeys",schemaPath:"#/oneOf/2/properties/candidateKeys/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.state !== undefined){let data6 = data.state;if(typeof data6 !== "string"){const err25 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("ambiguous" !== data6){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "ambiguous"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid0 = _errs17 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs27 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err28 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.reason === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err30 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.reason !== undefined){let data7 = data.reason;if(typeof data7 === "string"){if(func2(data7) < 1){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(!pattern5.test(data7)){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.state !== undefined){let data8 = data.state;if(typeof data8 !== "string"){const err34 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("unavailable" !== data8){const err35 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unavailable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}else {const err36 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid0 = _errs27 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}}}}if(!valid0){const err37 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate44.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate44.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema58 = {"description":"Exact, logical `MFv1` source address retained on detail and evidence occurrences.","type":"object","properties":{"imgPath":{"$ref":"#/$defs/LogicalSourceAddress"},"namespace":{"type":"string"},"ordinal":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}]},"propertyPath":{"type":"string"},"recordKey":{"type":["string","null"]},"sourceId":{"type":"string"}},"additionalProperties":false,"required":["namespace","sourceId","imgPath","propertyPath"]};function validate46(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate46.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.namespace === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "namespace"},message:"must have required property '"+"namespace"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.sourceId === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceId"},message:"must have required property '"+"sourceId"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.imgPath === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "imgPath"},message:"must have required property '"+"imgPath"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.propertyPath === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "propertyPath"},message:"must have required property '"+"propertyPath"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((key0 === "imgPath") || (key0 === "namespace")) || (key0 === "ordinal")) || (key0 === "propertyPath")) || (key0 === "recordKey")) || (key0 === "sourceId"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.imgPath !== undefined){let data0 = data.imgPath;if(typeof data0 === "string"){if(func2(data0) < 1){const err5 = {instancePath:instancePath+"/imgPath",schemaPath:"#/$defs/LogicalSourceAddress/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(!pattern4.test(data0)){const err6 = {instancePath:instancePath+"/imgPath",schemaPath:"#/$defs/LogicalSourceAddress/pattern",keyword:"pattern",params:{pattern: "^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"},message:"must match pattern \""+"^(?=.*\\S)(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$)).+$"+"\""};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}else {const err7 = {instancePath:instancePath+"/imgPath",schemaPath:"#/$defs/LogicalSourceAddress/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.namespace !== undefined){if(typeof data.namespace !== "string"){const err8 = {instancePath:instancePath+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.ordinal !== undefined){let data2 = data.ordinal;const _errs8 = errors;let valid2 = false;const _errs9 = errors;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err9 = {instancePath:instancePath+"/ordinal",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 9007199254740991 || isNaN(data2)){const err10 = {instancePath:instancePath+"/ordinal",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data2 < -9007199254740991 || isNaN(data2)){const err11 = {instancePath:instancePath+"/ordinal",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var _valid0 = _errs9 === errors;valid2 = valid2 || _valid0;const _errs12 = errors;if(data2 !== null){const err12 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid0 = _errs12 === errors;valid2 = valid2 || _valid0;if(!valid2){const err13 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}if(data.propertyPath !== undefined){if(typeof data.propertyPath !== "string"){const err14 = {instancePath:instancePath+"/propertyPath",schemaPath:"#/properties/propertyPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.recordKey !== undefined){let data4 = data.recordKey;if((typeof data4 !== "string") && (data4 !== null)){const err15 = {instancePath:instancePath+"/recordKey",schemaPath:"#/properties/recordKey/type",keyword:"type",params:{type: schema58.properties.recordKey.type},message:"must be string,null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.sourceId !== undefined){if(typeof data.sourceId !== "string"){const err16 = {instancePath:instancePath+"/sourceId",schemaPath:"#/properties/sourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate46.errors = vErrors;return errors === 0;}validate46.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate42(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate42.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.occurrenceKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "occurrenceKey"},message:"must have required property '"+"occurrenceKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.sourceAddress === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceAddress"},message:"must have required property '"+"sourceAddress"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.skill_namespace === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "skill_namespace"},message:"must have required property '"+"skill_namespace"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.skill_resolves === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "skill_resolves"},message:"must have required property '"+"skill_resolves"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.evidencePageKey === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidencePageKey"},message:"must have required property '"+"evidencePageKey"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!(((((key0 === "evidencePageKey") || (key0 === "occurrenceKey")) || (key0 === "skill_namespace")) || (key0 === "skill_resolves")) || (key0 === "sourceAddress"))){const err5 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.evidencePageKey !== undefined){if(typeof data.evidencePageKey !== "string"){const err6 = {instancePath:instancePath+"/evidencePageKey",schemaPath:"#/properties/evidencePageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.occurrenceKey !== undefined){if(typeof data.occurrenceKey !== "string"){const err7 = {instancePath:instancePath+"/occurrenceKey",schemaPath:"#/properties/occurrenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.skill_namespace !== undefined){if(!(validate30(data.skill_namespace, {instancePath:instancePath+"/skill_namespace",parentData:data,parentDataProperty:"skill_namespace",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.skill_resolves !== undefined){if(!(validate44(data.skill_resolves, {instancePath:instancePath+"/skill_resolves",parentData:data,parentDataProperty:"skill_resolves",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate44.errors : vErrors.concat(validate44.errors);errors = vErrors.length;}}if(data.sourceAddress !== undefined){if(!(validate46(data.sourceAddress, {instancePath:instancePath+"/sourceAddress",parentData:data,parentDataProperty:"sourceAddress",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}}}else {const err8 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}validate42.errors = vErrors;return errors === 0;}validate42.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate41(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate41.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length < 1){const err0 = {instancePath,schemaPath:"#/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate42(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);errors = vErrors.length;}}}else {const err1 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}validate41.errors = vErrors;return errors === 0;}validate41.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.items === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "items") || (key0 === "state"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.items !== undefined){if(!(validate41(data.items, {instancePath:instancePath+"/items",parentData:data,parentDataProperty:"items",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);errors = vErrors.length;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err3 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("known" !== data1){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err6 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.coverageKey === undefined){const err7 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data){if(!((key1 === "coverageKey") || (key1 === "state"))){const err8 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.coverageKey !== undefined){let data2 = data.coverageKey;if(typeof data2 === "string"){if(func2(data2) < 1){const err9 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!pattern5.test(data2)){const err10 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err12 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("absent" !== data3){const err13 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs7 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.items === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.reason === undefined){const err17 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data){if(!(((key2 === "items") || (key2 === "reason")) || (key2 === "state"))){const err18 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.items !== undefined){let data4 = data.items;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){if(!(validate42(data4[i0], {instancePath:instancePath+"/items/" + i0,parentData:data4,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);errors = vErrors.length;}}}else {const err19 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/2/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.reason !== undefined){let data6 = data.reason;if(typeof data6 === "string"){if(func2(data6) < 1){const err20 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(!pattern5.test(data6)){const err21 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err23 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("partial" !== data7){const err24 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err26 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.reason === undefined){const err27 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err28 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.reason !== undefined){let data8 = data.reason;if(typeof data8 === "string"){if(func2(data8) < 1){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(!pattern5.test(data8)){const err30 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.state !== undefined){let data9 = data.state;if(typeof data9 !== "string"){const err32 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("unknown" !== data9){const err33 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid0 = _errs26 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err35 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.capability === undefined){const err36 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key4 in data){if(!((key4 === "capability") || (key4 === "state"))){const err37 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.capability !== undefined){let data10 = data.capability;if(typeof data10 === "string"){if(func2(data10) < 1){const err38 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(!pattern5.test(data10)){const err39 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data.state !== undefined){let data11 = data.state;if(typeof data11 !== "string"){const err41 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("unsupported" !== data11){const err42 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}else {const err43 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid0 = _errs34 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;if(props0 !== true){props0 = true;}}}}}}if(!valid0){const err44 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate40.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate40.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema65 = {"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_EquipmentGrowthLevel"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/EquipmentGrowthLevel"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema66 = {"type":"array","items":{"$ref":"#/$defs/EquipmentGrowthLevel"},"minItems":1};const schema67 = {"type":"object","properties":{"accuracy_max":{"$ref":"#/$defs/FactState2"},"accuracy_min":{"$ref":"#/$defs/FactState2"},"avoid_max":{"$ref":"#/$defs/FactState2"},"avoid_min":{"$ref":"#/$defs/FactState2"},"evidencePageKey":{"type":"string"},"inc_max_hp_max":{"$ref":"#/$defs/FactState2"},"inc_max_hp_min":{"$ref":"#/$defs/FactState2"},"inc_max_mp_max":{"$ref":"#/$defs/FactState2"},"inc_max_mp_min":{"$ref":"#/$defs/FactState2"},"jump_max":{"$ref":"#/$defs/FactState2"},"jump_min":{"$ref":"#/$defs/FactState2"},"level":{"$ref":"#/$defs/FactState2"},"magic_attack_max":{"$ref":"#/$defs/FactState2"},"magic_attack_min":{"$ref":"#/$defs/FactState2"},"magic_defense_max":{"$ref":"#/$defs/FactState2"},"magic_defense_min":{"$ref":"#/$defs/FactState2"},"occurrenceKey":{"type":"string"},"sourceAddress":{"$ref":"#/$defs/EvidenceSourceAddress"},"speed_max":{"$ref":"#/$defs/FactState2"},"speed_min":{"$ref":"#/$defs/FactState2"},"weapon_attack_max":{"$ref":"#/$defs/FactState2"},"weapon_attack_min":{"$ref":"#/$defs/FactState2"},"weapon_defense_max":{"$ref":"#/$defs/FactState2"},"weapon_defense_min":{"$ref":"#/$defs/FactState2"}},"additionalProperties":false,"required":["occurrenceKey","sourceAddress","level","accuracy_max","accuracy_min","avoid_max","avoid_min","inc_max_hp_max","inc_max_hp_min","inc_max_mp_max","inc_max_mp_min","jump_max","jump_min","magic_attack_max","magic_attack_min","magic_defense_max","magic_defense_min","speed_max","speed_min","weapon_attack_max","weapon_attack_min","weapon_defense_max","weapon_defense_min","evidencePageKey"]};function validate54(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate54.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.occurrenceKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "occurrenceKey"},message:"must have required property '"+"occurrenceKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.sourceAddress === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceAddress"},message:"must have required property '"+"sourceAddress"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.level === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "level"},message:"must have required property '"+"level"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.accuracy_max === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "accuracy_max"},message:"must have required property '"+"accuracy_max"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.accuracy_min === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "accuracy_min"},message:"must have required property '"+"accuracy_min"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.avoid_max === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "avoid_max"},message:"must have required property '"+"avoid_max"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.avoid_min === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "avoid_min"},message:"must have required property '"+"avoid_min"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.inc_max_hp_max === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_max_hp_max"},message:"must have required property '"+"inc_max_hp_max"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.inc_max_hp_min === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_max_hp_min"},message:"must have required property '"+"inc_max_hp_min"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.inc_max_mp_max === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_max_mp_max"},message:"must have required property '"+"inc_max_mp_max"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.inc_max_mp_min === undefined){const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_max_mp_min"},message:"must have required property '"+"inc_max_mp_min"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data.jump_max === undefined){const err11 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "jump_max"},message:"must have required property '"+"jump_max"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.jump_min === undefined){const err12 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "jump_min"},message:"must have required property '"+"jump_min"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data.magic_attack_max === undefined){const err13 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "magic_attack_max"},message:"must have required property '"+"magic_attack_max"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data.magic_attack_min === undefined){const err14 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "magic_attack_min"},message:"must have required property '"+"magic_attack_min"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.magic_defense_max === undefined){const err15 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "magic_defense_max"},message:"must have required property '"+"magic_defense_max"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.magic_defense_min === undefined){const err16 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "magic_defense_min"},message:"must have required property '"+"magic_defense_min"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.speed_max === undefined){const err17 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "speed_max"},message:"must have required property '"+"speed_max"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data.speed_min === undefined){const err18 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "speed_min"},message:"must have required property '"+"speed_min"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.weapon_attack_max === undefined){const err19 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "weapon_attack_max"},message:"must have required property '"+"weapon_attack_max"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.weapon_attack_min === undefined){const err20 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "weapon_attack_min"},message:"must have required property '"+"weapon_attack_min"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.weapon_defense_max === undefined){const err21 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "weapon_defense_max"},message:"must have required property '"+"weapon_defense_max"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data.weapon_defense_min === undefined){const err22 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "weapon_defense_min"},message:"must have required property '"+"weapon_defense_min"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.evidencePageKey === undefined){const err23 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidencePageKey"},message:"must have required property '"+"evidencePageKey"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}for(const key0 in data){if(!(func1.call(schema67.properties, key0))){const err24 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.accuracy_max !== undefined){if(!(validate21(data.accuracy_max, {instancePath:instancePath+"/accuracy_max",parentData:data,parentDataProperty:"accuracy_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.accuracy_min !== undefined){if(!(validate21(data.accuracy_min, {instancePath:instancePath+"/accuracy_min",parentData:data,parentDataProperty:"accuracy_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.avoid_max !== undefined){if(!(validate21(data.avoid_max, {instancePath:instancePath+"/avoid_max",parentData:data,parentDataProperty:"avoid_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.avoid_min !== undefined){if(!(validate21(data.avoid_min, {instancePath:instancePath+"/avoid_min",parentData:data,parentDataProperty:"avoid_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.evidencePageKey !== undefined){if(typeof data.evidencePageKey !== "string"){const err25 = {instancePath:instancePath+"/evidencePageKey",schemaPath:"#/properties/evidencePageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.inc_max_hp_max !== undefined){if(!(validate21(data.inc_max_hp_max, {instancePath:instancePath+"/inc_max_hp_max",parentData:data,parentDataProperty:"inc_max_hp_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.inc_max_hp_min !== undefined){if(!(validate21(data.inc_max_hp_min, {instancePath:instancePath+"/inc_max_hp_min",parentData:data,parentDataProperty:"inc_max_hp_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.inc_max_mp_max !== undefined){if(!(validate21(data.inc_max_mp_max, {instancePath:instancePath+"/inc_max_mp_max",parentData:data,parentDataProperty:"inc_max_mp_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.inc_max_mp_min !== undefined){if(!(validate21(data.inc_max_mp_min, {instancePath:instancePath+"/inc_max_mp_min",parentData:data,parentDataProperty:"inc_max_mp_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.jump_max !== undefined){if(!(validate21(data.jump_max, {instancePath:instancePath+"/jump_max",parentData:data,parentDataProperty:"jump_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.jump_min !== undefined){if(!(validate21(data.jump_min, {instancePath:instancePath+"/jump_min",parentData:data,parentDataProperty:"jump_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.level !== undefined){if(!(validate21(data.level, {instancePath:instancePath+"/level",parentData:data,parentDataProperty:"level",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.magic_attack_max !== undefined){if(!(validate21(data.magic_attack_max, {instancePath:instancePath+"/magic_attack_max",parentData:data,parentDataProperty:"magic_attack_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.magic_attack_min !== undefined){if(!(validate21(data.magic_attack_min, {instancePath:instancePath+"/magic_attack_min",parentData:data,parentDataProperty:"magic_attack_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.magic_defense_max !== undefined){if(!(validate21(data.magic_defense_max, {instancePath:instancePath+"/magic_defense_max",parentData:data,parentDataProperty:"magic_defense_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.magic_defense_min !== undefined){if(!(validate21(data.magic_defense_min, {instancePath:instancePath+"/magic_defense_min",parentData:data,parentDataProperty:"magic_defense_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.occurrenceKey !== undefined){if(typeof data.occurrenceKey !== "string"){const err26 = {instancePath:instancePath+"/occurrenceKey",schemaPath:"#/properties/occurrenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.sourceAddress !== undefined){if(!(validate46(data.sourceAddress, {instancePath:instancePath+"/sourceAddress",parentData:data,parentDataProperty:"sourceAddress",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}}if(data.speed_max !== undefined){if(!(validate21(data.speed_max, {instancePath:instancePath+"/speed_max",parentData:data,parentDataProperty:"speed_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.speed_min !== undefined){if(!(validate21(data.speed_min, {instancePath:instancePath+"/speed_min",parentData:data,parentDataProperty:"speed_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.weapon_attack_max !== undefined){if(!(validate21(data.weapon_attack_max, {instancePath:instancePath+"/weapon_attack_max",parentData:data,parentDataProperty:"weapon_attack_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.weapon_attack_min !== undefined){if(!(validate21(data.weapon_attack_min, {instancePath:instancePath+"/weapon_attack_min",parentData:data,parentDataProperty:"weapon_attack_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.weapon_defense_max !== undefined){if(!(validate21(data.weapon_defense_max, {instancePath:instancePath+"/weapon_defense_max",parentData:data,parentDataProperty:"weapon_defense_max",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.weapon_defense_min !== undefined){if(!(validate21(data.weapon_defense_min, {instancePath:instancePath+"/weapon_defense_min",parentData:data,parentDataProperty:"weapon_defense_min",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}else {const err27 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}validate54.errors = vErrors;return errors === 0;}validate54.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate53(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate53.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length < 1){const err0 = {instancePath,schemaPath:"#/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate54(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);errors = vErrors.length;}}}else {const err1 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}validate53.errors = vErrors;return errors === 0;}validate53.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate52(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate52.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.items === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "items") || (key0 === "state"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.items !== undefined){if(!(validate53(data.items, {instancePath:instancePath+"/items",parentData:data,parentDataProperty:"items",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);errors = vErrors.length;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err3 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("known" !== data1){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err6 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.coverageKey === undefined){const err7 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data){if(!((key1 === "coverageKey") || (key1 === "state"))){const err8 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.coverageKey !== undefined){let data2 = data.coverageKey;if(typeof data2 === "string"){if(func2(data2) < 1){const err9 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!pattern5.test(data2)){const err10 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err12 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("absent" !== data3){const err13 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs7 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.items === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.reason === undefined){const err17 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data){if(!(((key2 === "items") || (key2 === "reason")) || (key2 === "state"))){const err18 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.items !== undefined){let data4 = data.items;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){if(!(validate54(data4[i0], {instancePath:instancePath+"/items/" + i0,parentData:data4,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);errors = vErrors.length;}}}else {const err19 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/2/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.reason !== undefined){let data6 = data.reason;if(typeof data6 === "string"){if(func2(data6) < 1){const err20 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(!pattern5.test(data6)){const err21 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err23 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("partial" !== data7){const err24 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err26 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.reason === undefined){const err27 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err28 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.reason !== undefined){let data8 = data.reason;if(typeof data8 === "string"){if(func2(data8) < 1){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(!pattern5.test(data8)){const err30 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.state !== undefined){let data9 = data.state;if(typeof data9 !== "string"){const err32 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("unknown" !== data9){const err33 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid0 = _errs26 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err35 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.capability === undefined){const err36 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key4 in data){if(!((key4 === "capability") || (key4 === "state"))){const err37 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.capability !== undefined){let data10 = data.capability;if(typeof data10 === "string"){if(func2(data10) < 1){const err38 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(!pattern5.test(data10)){const err39 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data.state !== undefined){let data11 = data.state;if(typeof data11 !== "string"){const err41 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("unsupported" !== data11){const err42 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}else {const err43 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid0 = _errs34 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;if(props0 !== true){props0 = true;}}}}}}if(!valid0){const err44 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate52.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate52.evaluated = {"dynamicProps":true,"dynamicItems":false};const schema73 = {"description":"Shared collection state. `Known` is non-empty; absence requires complete\nsource coverage and is never inferred from a missing row.","oneOf":[{"description":"One or more observed items with complete collection coverage.","type":"object","properties":{"items":{"$ref":"#/$defs/NonEmptyVec_EquipmentReplacementOccurrence"},"state":{"type":"string","const":"known"}},"additionalProperties":false,"required":["state","items"]},{"description":"A complete source scope contained no observations.","type":"object","properties":{"coverageKey":{"$ref":"#/$defs/CoverageKey"},"state":{"type":"string","const":"absent"}},"additionalProperties":false,"required":["state","coverageKey"]},{"description":"One or more observations were retained, but collection coverage is partial.","type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/$defs/EquipmentReplacementOccurrence"}},"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"partial"}},"additionalProperties":false,"required":["state","items","reason"]},{"description":"Completeness cannot be established.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unknown"}},"additionalProperties":false,"required":["state","reason"]},{"description":"The source or product does not provide this collection.","type":"object","properties":{"capability":{"$ref":"#/$defs/Capability"},"state":{"type":"string","const":"unsupported"}},"additionalProperties":false,"required":["state","capability"]}]};const schema74 = {"type":"array","items":{"$ref":"#/$defs/EquipmentReplacementOccurrence"},"minItems":1};const schema75 = {"type":"object","properties":{"evidencePageKey":{"type":"string"},"message":{"$ref":"#/$defs/FactState"},"occurrenceKey":{"type":"string"},"replacement_resolves":{"$ref":"#/$defs/EntityRef2"},"replacement_source_id":{"$ref":"#/$defs/FactState2"},"sourceAddress":{"$ref":"#/$defs/EvidenceSourceAddress"}},"additionalProperties":false,"required":["occurrenceKey","sourceAddress","replacement_source_id","replacement_resolves","message","evidencePageKey"]};const schema76 = {"description":"Shared entity-reference states. The generic parameter brands resolved keys\nfor the target domain without changing their JSON representation.","oneOf":[{"description":"Target has a canonical key in the exact build.","type":"object","properties":{"key":{"$ref":"#/$defs/EntityKey"},"state":{"type":"string","const":"resolved"}},"additionalProperties":false,"required":["state","key"]},{"description":"The source observation exists but does not resolve to a canonical key.","type":"object","properties":{"sourceId":{"$ref":"#/$defs/RawSourceId"},"state":{"type":"string","const":"unresolved"}},"additionalProperties":false,"required":["state","sourceId"]},{"description":"More than one canonical target remains possible; none is selected.","type":"object","properties":{"candidateKeys":{"type":"array","items":{"$ref":"#/$defs/EntityKey"}},"state":{"type":"string","const":"ambiguous"}},"additionalProperties":false,"required":["state","candidateKeys"]},{"description":"The target product or target identity is unavailable for a named reason.","type":"object","properties":{"reason":{"$ref":"#/$defs/StateReason"},"state":{"type":"string","const":"unavailable"}},"additionalProperties":false,"required":["state","reason"]}]};function validate97(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate97.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.key === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "key") || (key0 === "state"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.key !== undefined){let data0 = data.key;if(typeof data0 === "string"){if(func2(data0) < 1){const err3 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(!pattern5.test(data0)){const err4 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err6 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("resolved" !== data1){const err7 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "resolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err9 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.sourceId === undefined){const err10 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "sourceId"},message:"must have required property '"+"sourceId"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data){if(!((key1 === "sourceId") || (key1 === "state"))){const err11 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.sourceId !== undefined){let data2 = data.sourceId;if(typeof data2 === "string"){if(func2(data2) < 1){const err12 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(!pattern5.test(data2)){const err13 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/sourceId",schemaPath:"#/$defs/RawSourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err15 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("unresolved" !== data3){const err16 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unresolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid0 = _errs9 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err18 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.candidateKeys === undefined){const err19 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "candidateKeys"},message:"must have required property '"+"candidateKeys"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}for(const key2 in data){if(!((key2 === "candidateKeys") || (key2 === "state"))){const err20 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.candidateKeys !== undefined){let data4 = data.candidateKeys;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){let data5 = data4[i0];if(typeof data5 === "string"){if(func2(data5) < 1){const err21 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(!pattern5.test(data5)){const err22 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}else {const err23 = {instancePath:instancePath+"/candidateKeys/" + i0,schemaPath:"#/$defs/EntityKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/candidateKeys",schemaPath:"#/oneOf/2/properties/candidateKeys/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.state !== undefined){let data6 = data.state;if(typeof data6 !== "string"){const err25 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("ambiguous" !== data6){const err26 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "ambiguous"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid0 = _errs17 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs27 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err28 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.reason === undefined){const err29 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err30 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.reason !== undefined){let data7 = data.reason;if(typeof data7 === "string"){if(func2(data7) < 1){const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(!pattern5.test(data7)){const err32 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.state !== undefined){let data8 = data.state;if(typeof data8 !== "string"){const err34 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("unavailable" !== data8){const err35 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unavailable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}}else {const err36 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid0 = _errs27 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}}}}if(!valid0){const err37 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate97.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate97.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate95(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate95.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.occurrenceKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "occurrenceKey"},message:"must have required property '"+"occurrenceKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.sourceAddress === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceAddress"},message:"must have required property '"+"sourceAddress"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.replacement_source_id === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "replacement_source_id"},message:"must have required property '"+"replacement_source_id"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.replacement_resolves === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "replacement_resolves"},message:"must have required property '"+"replacement_resolves"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.message === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "message"},message:"must have required property '"+"message"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.evidencePageKey === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidencePageKey"},message:"must have required property '"+"evidencePageKey"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!((((((key0 === "evidencePageKey") || (key0 === "message")) || (key0 === "occurrenceKey")) || (key0 === "replacement_resolves")) || (key0 === "replacement_source_id")) || (key0 === "sourceAddress"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.evidencePageKey !== undefined){if(typeof data.evidencePageKey !== "string"){const err7 = {instancePath:instancePath+"/evidencePageKey",schemaPath:"#/properties/evidencePageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.message !== undefined){if(!(validate30(data.message, {instancePath:instancePath+"/message",parentData:data,parentDataProperty:"message",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.occurrenceKey !== undefined){if(typeof data.occurrenceKey !== "string"){const err8 = {instancePath:instancePath+"/occurrenceKey",schemaPath:"#/properties/occurrenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.replacement_resolves !== undefined){if(!(validate97(data.replacement_resolves, {instancePath:instancePath+"/replacement_resolves",parentData:data,parentDataProperty:"replacement_resolves",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate97.errors : vErrors.concat(validate97.errors);errors = vErrors.length;}}if(data.replacement_source_id !== undefined){if(!(validate21(data.replacement_source_id, {instancePath:instancePath+"/replacement_source_id",parentData:data,parentDataProperty:"replacement_source_id",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.sourceAddress !== undefined){if(!(validate46(data.sourceAddress, {instancePath:instancePath+"/sourceAddress",parentData:data,parentDataProperty:"sourceAddress",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);errors = vErrors.length;}}}else {const err9 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}validate95.errors = vErrors;return errors === 0;}validate95.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate94(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate94.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length < 1){const err0 = {instancePath,schemaPath:"#/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate95(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);errors = vErrors.length;}}}else {const err1 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}validate94.errors = vErrors;return errors === 0;}validate94.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate93(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate93.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.items === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "items") || (key0 === "state"))){const err2 = {instancePath,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.items !== undefined){if(!(validate94(data.items, {instancePath:instancePath+"/items",parentData:data,parentDataProperty:"items",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);errors = vErrors.length;}}if(data.state !== undefined){let data1 = data.state;if(typeof data1 !== "string"){const err3 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("known" !== data1){const err4 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = true;}const _errs7 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err6 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.coverageKey === undefined){const err7 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "coverageKey"},message:"must have required property '"+"coverageKey"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data){if(!((key1 === "coverageKey") || (key1 === "state"))){const err8 = {instancePath,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.coverageKey !== undefined){let data2 = data.coverageKey;if(typeof data2 === "string"){if(func2(data2) < 1){const err9 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(!pattern5.test(data2)){const err10 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/coverageKey",schemaPath:"#/$defs/CoverageKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err12 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("absent" !== data3){const err13 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}else {const err14 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid0 = _errs7 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = true;}}const _errs15 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err15 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.items === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.reason === undefined){const err17 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data){if(!(((key2 === "items") || (key2 === "reason")) || (key2 === "state"))){const err18 = {instancePath,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.items !== undefined){let data4 = data.items;if(Array.isArray(data4)){const len0 = data4.length;for(let i0=0; i0<len0; i0++){if(!(validate95(data4[i0], {instancePath:instancePath+"/items/" + i0,parentData:data4,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);errors = vErrors.length;}}}else {const err19 = {instancePath:instancePath+"/items",schemaPath:"#/oneOf/2/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.reason !== undefined){let data6 = data.reason;if(typeof data6 === "string"){if(func2(data6) < 1){const err20 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(!pattern5.test(data6)){const err21 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data.state !== undefined){let data7 = data.state;if(typeof data7 !== "string"){const err23 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("partial" !== data7){const err24 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid0 = _errs15 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = true;}}const _errs26 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err26 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.reason === undefined){const err27 = {instancePath,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty: "reason"},message:"must have required property '"+"reason"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}for(const key3 in data){if(!((key3 === "reason") || (key3 === "state"))){const err28 = {instancePath,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.reason !== undefined){let data8 = data.reason;if(typeof data8 === "string"){if(func2(data8) < 1){const err29 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(!pattern5.test(data8)){const err30 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}else {const err31 = {instancePath:instancePath+"/reason",schemaPath:"#/$defs/StateReason/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.state !== undefined){let data9 = data.state;if(typeof data9 !== "string"){const err32 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("unknown" !== data9){const err33 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/3/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid0 = _errs26 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 3];}else {if(_valid0){valid0 = true;passing0 = 3;if(props0 !== true){props0 = true;}}const _errs34 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err35 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.capability === undefined){const err36 = {instancePath,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key4 in data){if(!((key4 === "capability") || (key4 === "state"))){const err37 = {instancePath,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.capability !== undefined){let data10 = data.capability;if(typeof data10 === "string"){if(func2(data10) < 1){const err38 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(!pattern5.test(data10)){const err39 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/capability",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data.state !== undefined){let data11 = data.state;if(typeof data11 !== "string"){const err41 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("unsupported" !== data11){const err42 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/4/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}}else {const err43 = {instancePath,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}var _valid0 = _errs34 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 4];}else {if(_valid0){valid0 = true;passing0 = 4;if(props0 !== true){props0 = true;}}}}}}if(!valid0){const err44 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate93.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate93.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.key === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.sourceIdentity === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceIdentity"},message:"must have required property '"+"sourceIdentity"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.name === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.nameLocale === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nameLocale"},message:"must have required property '"+"nameLocale"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.description === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "description"},message:"must have required property '"+"description"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.descriptionLocale === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "descriptionLocale"},message:"must have required property '"+"descriptionLocale"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.accuracy === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "accuracy"},message:"must have required property '"+"accuracy"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.attack_speed === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "attack_speed"},message:"must have required property '"+"attack_speed"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.avoidability === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "avoidability"},message:"must have required property '"+"avoidability"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.categoryCode === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "categoryCode"},message:"must have required property '"+"categoryCode"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.equipSlotCode === undefined){const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "equipSlotCode"},message:"must have required property '"+"equipSlotCode"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data.gender === undefined){const err11 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "gender"},message:"must have required property '"+"gender"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.inc_dex === undefined){const err12 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_dex"},message:"must have required property '"+"inc_dex"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data.inc_int === undefined){const err13 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_int"},message:"must have required property '"+"inc_int"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data.inc_luk === undefined){const err14 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_luk"},message:"must have required property '"+"inc_luk"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.inc_max_hp === undefined){const err15 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_max_hp"},message:"must have required property '"+"inc_max_hp"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data.inc_max_mp === undefined){const err16 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_max_mp"},message:"must have required property '"+"inc_max_mp"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.inc_str === undefined){const err17 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "inc_str"},message:"must have required property '"+"inc_str"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data.jump === undefined){const err18 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "jump"},message:"must have required property '"+"jump"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data.magic_attack === undefined){const err19 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "magic_attack"},message:"must have required property '"+"magic_attack"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data.magic_defense === undefined){const err20 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "magic_defense"},message:"must have required property '"+"magic_defense"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data.req_dex === undefined){const err21 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "req_dex"},message:"must have required property '"+"req_dex"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data.req_fame === undefined){const err22 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "req_fame"},message:"must have required property '"+"req_fame"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data.req_int === undefined){const err23 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "req_int"},message:"must have required property '"+"req_int"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data.req_job_mask === undefined){const err24 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "req_job_mask"},message:"must have required property '"+"req_job_mask"+"'"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(data.req_level === undefined){const err25 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "req_level"},message:"must have required property '"+"req_level"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data.req_luk === undefined){const err26 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "req_luk"},message:"must have required property '"+"req_luk"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data.req_str === undefined){const err27 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "req_str"},message:"must have required property '"+"req_str"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data.speed === undefined){const err28 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "speed"},message:"must have required property '"+"speed"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.upgrade_slots === undefined){const err29 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "upgrade_slots"},message:"must have required property '"+"upgrade_slots"+"'"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data.visualSlot === undefined){const err30 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "visualSlot"},message:"must have required property '"+"visualSlot"+"'"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(data.weapon_attack === undefined){const err31 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "weapon_attack"},message:"must have required property '"+"weapon_attack"+"'"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data.weapon_defense === undefined){const err32 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "weapon_defense"},message:"must have required property '"+"weapon_defense"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data.weaponTypeCode === undefined){const err33 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "weaponTypeCode"},message:"must have required property '"+"weaponTypeCode"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data.growthLevels === undefined){const err34 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "growthLevels"},message:"must have required property '"+"growthLevels"+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data.grantedSkills === undefined){const err35 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "grantedSkills"},message:"must have required property '"+"grantedSkills"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data.replacementOccurrences === undefined){const err36 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "replacementOccurrences"},message:"must have required property '"+"replacementOccurrences"+"'"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if(data.relationshipPageKeys === undefined){const err37 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "relationshipPageKeys"},message:"must have required property '"+"relationshipPageKeys"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data.evidencePageKeys === undefined){const err38 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidencePageKeys"},message:"must have required property '"+"evidencePageKeys"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}for(const key0 in data){if(!(func1.call(schema31.properties, key0))){const err39 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data.accuracy !== undefined){if(!(validate21(data.accuracy, {instancePath:instancePath+"/accuracy",parentData:data,parentDataProperty:"accuracy",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.attack_speed !== undefined){if(!(validate21(data.attack_speed, {instancePath:instancePath+"/attack_speed",parentData:data,parentDataProperty:"attack_speed",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.avoidability !== undefined){if(!(validate21(data.avoidability, {instancePath:instancePath+"/avoidability",parentData:data,parentDataProperty:"avoidability",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.categoryCode !== undefined){if(!(validate21(data.categoryCode, {instancePath:instancePath+"/categoryCode",parentData:data,parentDataProperty:"categoryCode",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.description !== undefined){if(!(validate30(data.description, {instancePath:instancePath+"/description",parentData:data,parentDataProperty:"description",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.descriptionLocale !== undefined){if(!(validate30(data.descriptionLocale, {instancePath:instancePath+"/descriptionLocale",parentData:data,parentDataProperty:"descriptionLocale",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.equipSlotCode !== undefined){if(!(validate30(data.equipSlotCode, {instancePath:instancePath+"/equipSlotCode",parentData:data,parentDataProperty:"equipSlotCode",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.evidencePageKeys !== undefined){if(!(validate37(data.evidencePageKeys, {instancePath:instancePath+"/evidencePageKeys",parentData:data,parentDataProperty:"evidencePageKeys",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.gender !== undefined){if(!(validate21(data.gender, {instancePath:instancePath+"/gender",parentData:data,parentDataProperty:"gender",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.grantedSkills !== undefined){if(!(validate40(data.grantedSkills, {instancePath:instancePath+"/grantedSkills",parentData:data,parentDataProperty:"grantedSkills",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}if(data.growthLevels !== undefined){if(!(validate52(data.growthLevels, {instancePath:instancePath+"/growthLevels",parentData:data,parentDataProperty:"growthLevels",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);errors = vErrors.length;}}if(data.inc_dex !== undefined){if(!(validate21(data.inc_dex, {instancePath:instancePath+"/inc_dex",parentData:data,parentDataProperty:"inc_dex",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.inc_int !== undefined){if(!(validate21(data.inc_int, {instancePath:instancePath+"/inc_int",parentData:data,parentDataProperty:"inc_int",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.inc_luk !== undefined){if(!(validate21(data.inc_luk, {instancePath:instancePath+"/inc_luk",parentData:data,parentDataProperty:"inc_luk",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.inc_max_hp !== undefined){if(!(validate21(data.inc_max_hp, {instancePath:instancePath+"/inc_max_hp",parentData:data,parentDataProperty:"inc_max_hp",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.inc_max_mp !== undefined){if(!(validate21(data.inc_max_mp, {instancePath:instancePath+"/inc_max_mp",parentData:data,parentDataProperty:"inc_max_mp",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.inc_str !== undefined){if(!(validate21(data.inc_str, {instancePath:instancePath+"/inc_str",parentData:data,parentDataProperty:"inc_str",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.jump !== undefined){if(!(validate21(data.jump, {instancePath:instancePath+"/jump",parentData:data,parentDataProperty:"jump",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.key !== undefined){let data18 = data.key;if(typeof data18 === "string"){if(func2(data18) < 1){const err40 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!pattern5.test(data18)){const err41 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/pattern",keyword:"pattern",params:{pattern: "\\S"},message:"must match pattern \""+"\\S"+"\""};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}else {const err42 = {instancePath:instancePath+"/key",schemaPath:"#/$defs/EntityKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.magic_attack !== undefined){if(!(validate21(data.magic_attack, {instancePath:instancePath+"/magic_attack",parentData:data,parentDataProperty:"magic_attack",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.magic_defense !== undefined){if(!(validate21(data.magic_defense, {instancePath:instancePath+"/magic_defense",parentData:data,parentDataProperty:"magic_defense",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.name !== undefined){if(!(validate30(data.name, {instancePath:instancePath+"/name",parentData:data,parentDataProperty:"name",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.nameLocale !== undefined){if(!(validate30(data.nameLocale, {instancePath:instancePath+"/nameLocale",parentData:data,parentDataProperty:"nameLocale",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.relationshipPageKeys !== undefined){let data23 = data.relationshipPageKeys;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){for(const key1 in data23){if(!(validate37(data23[key1], {instancePath:instancePath+"/relationshipPageKeys/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data23,parentDataProperty:key1,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}}else {const err43 = {instancePath:instancePath+"/relationshipPageKeys",schemaPath:"#/properties/relationshipPageKeys/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data.replacementOccurrences !== undefined){if(!(validate93(data.replacementOccurrences, {instancePath:instancePath+"/replacementOccurrences",parentData:data,parentDataProperty:"replacementOccurrences",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);errors = vErrors.length;}}if(data.req_dex !== undefined){if(!(validate21(data.req_dex, {instancePath:instancePath+"/req_dex",parentData:data,parentDataProperty:"req_dex",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.req_fame !== undefined){if(!(validate21(data.req_fame, {instancePath:instancePath+"/req_fame",parentData:data,parentDataProperty:"req_fame",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.req_int !== undefined){if(!(validate21(data.req_int, {instancePath:instancePath+"/req_int",parentData:data,parentDataProperty:"req_int",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.req_job_mask !== undefined){if(!(validate21(data.req_job_mask, {instancePath:instancePath+"/req_job_mask",parentData:data,parentDataProperty:"req_job_mask",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.req_level !== undefined){if(!(validate21(data.req_level, {instancePath:instancePath+"/req_level",parentData:data,parentDataProperty:"req_level",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.req_luk !== undefined){if(!(validate21(data.req_luk, {instancePath:instancePath+"/req_luk",parentData:data,parentDataProperty:"req_luk",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.req_str !== undefined){if(!(validate21(data.req_str, {instancePath:instancePath+"/req_str",parentData:data,parentDataProperty:"req_str",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.sourceIdentity !== undefined){let data33 = data.sourceIdentity;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.id === undefined){const err44 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(data33.discriminator !== undefined){let data34 = data33.discriminator;if((typeof data34 !== "string") && (data34 !== null)){const err45 = {instancePath:instancePath+"/sourceIdentity/discriminator",schemaPath:"#/$defs/SourceIdentity/properties/discriminator/type",keyword:"type",params:{type: schema85.properties.discriminator.type},message:"must be string,null"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data33.id !== undefined){if(typeof data33.id !== "string"){const err46 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data33.namespace !== undefined){let data36 = data33.namespace;if((typeof data36 !== "string") && (data36 !== null)){const err47 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/$defs/SourceIdentity/properties/namespace/type",keyword:"type",params:{type: schema85.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}else {const err48 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data.speed !== undefined){if(!(validate21(data.speed, {instancePath:instancePath+"/speed",parentData:data,parentDataProperty:"speed",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.upgrade_slots !== undefined){if(!(validate21(data.upgrade_slots, {instancePath:instancePath+"/upgrade_slots",parentData:data,parentDataProperty:"upgrade_slots",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.visualSlot !== undefined){if(!(validate30(data.visualSlot, {instancePath:instancePath+"/visualSlot",parentData:data,parentDataProperty:"visualSlot",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);errors = vErrors.length;}}if(data.weaponTypeCode !== undefined){if(!(validate21(data.weaponTypeCode, {instancePath:instancePath+"/weaponTypeCode",parentData:data,parentDataProperty:"weaponTypeCode",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.weapon_attack !== undefined){if(!(validate21(data.weapon_attack, {instancePath:instancePath+"/weapon_attack",parentData:data,parentDataProperty:"weapon_attack",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.weapon_defense !== undefined){if(!(validate21(data.weapon_defense, {instancePath:instancePath+"/weapon_defense",parentData:data,parentDataProperty:"weapon_defense",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}}else {const err49 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
|